RTEMS 4.11
Annotated Report
Sat Mar 19 19:26:24 2011

0010cc34 <IMFS_Set_handlers>:                                         
#define MAXSYMLINK 5                                                  
                                                                      
int IMFS_Set_handlers(                                                
  rtems_filesystem_location_info_t   *loc                             
)                                                                     
{                                                                     
  10cc34:	55                   	push   %ebp                           
  10cc35:	89 e5                	mov    %esp,%ebp                      
  10cc37:	8b 45 08             	mov    0x8(%ebp),%eax                 
  IMFS_jnode_t    *node = loc->node_access;                           
  IMFS_fs_info_t  *fs_info;                                           
                                                                      
  fs_info = loc->mt_entry->fs_info;                                   
  10cc3a:	8b 50 10             	mov    0x10(%eax),%edx                
  10cc3d:	8b 52 34             	mov    0x34(%edx),%edx                
  switch( node->type ) {                                              
  10cc40:	8b 08                	mov    (%eax),%ecx                    
  10cc42:	8b 49 4c             	mov    0x4c(%ecx),%ecx                
  10cc45:	49                   	dec    %ecx                           
  10cc46:	83 f9 06             	cmp    $0x6,%ecx                      
  10cc49:	77 29                	ja     10cc74 <IMFS_Set_handlers+0x40><== NEVER TAKEN
  10cc4b:	ff 24 8d c8 de 11 00 	jmp    *0x11dec8(,%ecx,4)             
    case IMFS_DIRECTORY:                                              
      loc->handlers = fs_info->directory_handlers;                    
  10cc52:	8b 52 0c             	mov    0xc(%edx),%edx                 
  10cc55:	eb 1a                	jmp    10cc71 <IMFS_Set_handlers+0x3d>
      break;                                                          
    case IMFS_DEVICE:                                                 
      loc->handlers = &IMFS_device_handlers;                          
  10cc57:	c7 40 08 ec de 11 00 	movl   $0x11deec,0x8(%eax)            
      break;                                                          
  10cc5e:	eb 14                	jmp    10cc74 <IMFS_Set_handlers+0x40>
    case IMFS_SYM_LINK:                                               
    case IMFS_HARD_LINK:                                              
      loc->handlers = &IMFS_link_handlers;                            
  10cc60:	c7 40 08 5c df 11 00 	movl   $0x11df5c,0x8(%eax)            
      break;                                                          
  10cc67:	eb 0b                	jmp    10cc74 <IMFS_Set_handlers+0x40>
    case IMFS_LINEAR_FILE:                                            
      loc->handlers = fs_info->memfile_handlers;                      
      break;                                                          
    case IMFS_MEMORY_FILE:                                            
      loc->handlers = fs_info->memfile_handlers;                      
  10cc69:	8b 52 08             	mov    0x8(%edx),%edx                 
  10cc6c:	eb 03                	jmp    10cc71 <IMFS_Set_handlers+0x3d>
      break;                                                          
    case IMFS_FIFO:                                                   
      loc->handlers = fs_info->fifo_handlers;                         
  10cc6e:	8b 52 10             	mov    0x10(%edx),%edx                
  10cc71:	89 50 08             	mov    %edx,0x8(%eax)                 
      break;                                                          
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
  10cc74:	31 c0                	xor    %eax,%eax                      
  10cc76:	c9                   	leave                                 
  10cc77:	c3                   	ret                                   
                                                                      

0010cae9 <IMFS_create_node>: IMFS_jnode_types_t type, const char *name, mode_t mode, const IMFS_types_union *info ) {
  10cae9:	55                   	push   %ebp                           
  10caea:	89 e5                	mov    %esp,%ebp                      
  10caec:	57                   	push   %edi                           
  10caed:	56                   	push   %esi                           
  10caee:	53                   	push   %ebx                           
  10caef:	83 ec 1c             	sub    $0x1c,%esp                     
  10caf2:	8b 4d 08             	mov    0x8(%ebp),%ecx                 
  10caf5:	8b 5d 0c             	mov    0xc(%ebp),%ebx                 
  10caf8:	8b 75 18             	mov    0x18(%ebp),%esi                
                                                                      
  /*                                                                  
   *  MUST have a parent node to call this routine.                   
   */                                                                 
  if ( parent_loc == NULL )                                           
    return NULL;                                                      
  10cafb:	31 c0                	xor    %eax,%eax                      
  IMFS_fs_info_t      *fs_info;                                       
                                                                      
  /*                                                                  
   *  MUST have a parent node to call this routine.                   
   */                                                                 
  if ( parent_loc == NULL )                                           
  10cafd:	85 c9                	test   %ecx,%ecx                      
  10caff:	0f 84 f4 00 00 00    	je     10cbf9 <IMFS_create_node+0x110><== NEVER TAKEN
    return NULL;                                                      
                                                                      
  parent = parent_loc->node_access;                                   
  10cb05:	8b 11                	mov    (%ecx),%edx                    
  fs_info = parent_loc->mt_entry->fs_info;                            
  10cb07:	8b 49 10             	mov    0x10(%ecx),%ecx                
  10cb0a:	8b 79 34             	mov    0x34(%ecx),%edi                
                                                                      
  /*                                                                  
   *  Reject creation of FIFOs if support is disabled.                
   */                                                                 
  if ( type == IMFS_FIFO &&                                           
  10cb0d:	83 fb 07             	cmp    $0x7,%ebx                      
  10cb10:	75 0d                	jne    10cb1f <IMFS_create_node+0x36> 
  10cb12:	81 7f 10 60 de 11 00 	cmpl   $0x11de60,0x10(%edi)           
  10cb19:	0f 84 da 00 00 00    	je     10cbf9 <IMFS_create_node+0x110>
    return NULL;                                                      
                                                                      
  /*                                                                  
   *  Allocate filesystem node and fill in basic information          
   */                                                                 
  node  = IMFS_allocate_node( type, name, mode & ~rtems_filesystem_umask );
  10cb1f:	50                   	push   %eax                           
  10cb20:	a1 44 10 12 00       	mov    0x121044,%eax                  
  10cb25:	8b 40 2c             	mov    0x2c(%eax),%eax                
  10cb28:	f7 d0                	not    %eax                           
  10cb2a:	23 45 14             	and    0x14(%ebp),%eax                
  10cb2d:	50                   	push   %eax                           
  10cb2e:	ff 75 10             	pushl  0x10(%ebp)                     
  10cb31:	53                   	push   %ebx                           
  10cb32:	89 55 e4             	mov    %edx,-0x1c(%ebp)               
  10cb35:	e8 46 ff ff ff       	call   10ca80 <IMFS_allocate_node>    
  if ( !node )                                                        
  10cb3a:	83 c4 10             	add    $0x10,%esp                     
  10cb3d:	85 c0                	test   %eax,%eax                      
  10cb3f:	8b 55 e4             	mov    -0x1c(%ebp),%edx               
  10cb42:	0f 84 b1 00 00 00    	je     10cbf9 <IMFS_create_node+0x110>
    return NULL;                                                      
                                                                      
  /*                                                                  
   *  Set the type specific information                               
   */                                                                 
  if ( type == IMFS_DIRECTORY ) {                                     
  10cb48:	83 fb 01             	cmp    $0x1,%ebx                      
  10cb4b:	75 15                	jne    10cb62 <IMFS_create_node+0x79> 
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  10cb4d:	8d 48 54             	lea    0x54(%eax),%ecx                
  10cb50:	89 48 50             	mov    %ecx,0x50(%eax)                
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
  10cb53:	c7 40 54 00 00 00 00 	movl   $0x0,0x54(%eax)                
 */                                                                   
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  10cb5a:	8d 48 50             	lea    0x50(%eax),%ecx                
  10cb5d:	89 48 58             	mov    %ecx,0x58(%eax)                
  10cb60:	eb 75                	jmp    10cbd7 <IMFS_create_node+0xee> 
    rtems_chain_initialize_empty(&node->info.directory.Entries);      
  } else if ( type == IMFS_HARD_LINK ) {                              
  10cb62:	83 fb 03             	cmp    $0x3,%ebx                      
  10cb65:	74 05                	je     10cb6c <IMFS_create_node+0x83> 
    node->info.hard_link.link_node = info->hard_link.link_node;       
  } else if ( type == IMFS_SYM_LINK ) {                               
  10cb67:	83 fb 04             	cmp    $0x4,%ebx                      
  10cb6a:	75 07                	jne    10cb73 <IMFS_create_node+0x8a> 
    node->info.sym_link.name = info->sym_link.name;                   
  10cb6c:	8b 0e                	mov    (%esi),%ecx                    
  10cb6e:	89 48 50             	mov    %ecx,0x50(%eax)                
  10cb71:	eb 64                	jmp    10cbd7 <IMFS_create_node+0xee> 
  } else if ( type == IMFS_DEVICE ) {                                 
  10cb73:	83 fb 02             	cmp    $0x2,%ebx                      
  10cb76:	75 0d                	jne    10cb85 <IMFS_create_node+0x9c> 
    node->info.device.major = info->device.major;                     
  10cb78:	8b 0e                	mov    (%esi),%ecx                    
  10cb7a:	89 48 50             	mov    %ecx,0x50(%eax)                
    node->info.device.minor = info->device.minor;                     
  10cb7d:	8b 4e 04             	mov    0x4(%esi),%ecx                 
  10cb80:	89 48 54             	mov    %ecx,0x54(%eax)                
  10cb83:	eb 52                	jmp    10cbd7 <IMFS_create_node+0xee> 
  } else if ( type == IMFS_LINEAR_FILE ) {                            
  10cb85:	83 fb 06             	cmp    $0x6,%ebx                      
  10cb88:	75 17                	jne    10cba1 <IMFS_create_node+0xb8> 
    node->info.linearfile.size      = 0;                              
  10cb8a:	c7 40 50 00 00 00 00 	movl   $0x0,0x50(%eax)                
  10cb91:	c7 40 54 00 00 00 00 	movl   $0x0,0x54(%eax)                
    node->info.linearfile.direct    = 0;                              
  10cb98:	c7 40 58 00 00 00 00 	movl   $0x0,0x58(%eax)                
  10cb9f:	eb 36                	jmp    10cbd7 <IMFS_create_node+0xee> 
  } else if ( type == IMFS_MEMORY_FILE ) {                            
  10cba1:	83 fb 05             	cmp    $0x5,%ebx                      
  10cba4:	75 25                	jne    10cbcb <IMFS_create_node+0xe2> 
      node->info.file.size            = 0;                            
  10cba6:	c7 40 50 00 00 00 00 	movl   $0x0,0x50(%eax)                
  10cbad:	c7 40 54 00 00 00 00 	movl   $0x0,0x54(%eax)                
      node->info.file.indirect        = 0;                            
  10cbb4:	c7 40 58 00 00 00 00 	movl   $0x0,0x58(%eax)                
      node->info.file.doubly_indirect = 0;                            
  10cbbb:	c7 40 5c 00 00 00 00 	movl   $0x0,0x5c(%eax)                
      node->info.file.triply_indirect = 0;                            
  10cbc2:	c7 40 60 00 00 00 00 	movl   $0x0,0x60(%eax)                
  10cbc9:	eb 0c                	jmp    10cbd7 <IMFS_create_node+0xee> 
  } else if ( type == IMFS_FIFO ) {                                   
  10cbcb:	83 fb 07             	cmp    $0x7,%ebx                      
  10cbce:	75 07                	jne    10cbd7 <IMFS_create_node+0xee> <== NEVER TAKEN
    node->info.fifo.pipe = NULL;                                      
  10cbd0:	c7 40 50 00 00 00 00 	movl   $0x0,0x50(%eax)                
  }                                                                   
                                                                      
  /*                                                                  
   *  This node MUST have a parent, so put it in that directory list. 
   */                                                                 
  node->Parent = parent;                                              
  10cbd7:	89 50 08             	mov    %edx,0x8(%eax)                 
  node->st_ino = ++fs_info->ino_count;                                
  10cbda:	8b 4f 04             	mov    0x4(%edi),%ecx                 
  10cbdd:	41                   	inc    %ecx                           
  10cbde:	89 4f 04             	mov    %ecx,0x4(%edi)                 
  10cbe1:	89 48 38             	mov    %ecx,0x38(%eax)                
  10cbe4:	53                   	push   %ebx                           
  10cbe5:	53                   	push   %ebx                           
  10cbe6:	50                   	push   %eax                           
                                                                      
  rtems_chain_append( &parent->info.directory.Entries, &node->Node ); 
  10cbe7:	83 c2 50             	add    $0x50,%edx                     
  10cbea:	52                   	push   %edx                           
  10cbeb:	89 45 e4             	mov    %eax,-0x1c(%ebp)               
  10cbee:	e8 71 d3 ff ff       	call   109f64 <_Chain_Append>         
                                                                      
  return node;                                                        
  10cbf3:	83 c4 10             	add    $0x10,%esp                     
  10cbf6:	8b 45 e4             	mov    -0x1c(%ebp),%eax               
}                                                                     
  10cbf9:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  10cbfc:	5b                   	pop    %ebx                           
  10cbfd:	5e                   	pop    %esi                           
  10cbfe:	5f                   	pop    %edi                           
  10cbff:	c9                   	leave                                 
  10cc00:	c3                   	ret                                   
                                                                      

0010ccee <IMFS_eval_path>: const char *pathname, /* IN */ size_t pathnamelen, /* IN */ int flags, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) {
  10ccee:	55                   	push   %ebp                           
  10ccef:	89 e5                	mov    %esp,%ebp                      
  10ccf1:	57                   	push   %edi                           
  10ccf2:	56                   	push   %esi                           
  10ccf3:	53                   	push   %ebx                           
  10ccf4:	83 ec 5c             	sub    $0x5c,%esp                     
  10ccf7:	8b 5d 14             	mov    0x14(%ebp),%ebx                
  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 ) ) {                       
  10ccfa:	f7 45 10 f8 ff ff ff 	testl  $0xfffffff8,0x10(%ebp)         
  10cd01:	74 0d                	je     10cd10 <IMFS_eval_path+0x22>   <== ALWAYS TAKEN
    rtems_set_errno_and_return_minus_one( EIO );                      
  10cd03:	e8 78 30 00 00       	call   10fd80 <__errno>               <== NOT EXECUTED
  10cd08:	c7 00 05 00 00 00    	movl   $0x5,(%eax)                    <== NOT EXECUTED
  10cd0e:	eb 42                	jmp    10cd52 <IMFS_eval_path+0x64>   <== NOT EXECUTED
  /*                                                                  
   *  This was filled in by the caller and is valid in the            
   *  mount table.                                                    
   */                                                                 
                                                                      
  node = pathloc->node_access;                                        
  10cd10:	8b 3b                	mov    (%ebx),%edi                    
  rtems_filesystem_location_info_t  *pathloc       /* IN/OUT */       
                   )                                                  
{                                                                     
  int                                 i = 0;                          
  int                                 len;                            
  IMFS_token_types                    type = IMFS_CURRENT_DIR;        
  10cd12:	be 01 00 00 00       	mov    $0x1,%esi                      
  size_t                             pathnamelen,  /* IN     */       
  int                                flags,        /* IN     */       
  rtems_filesystem_location_info_t  *pathloc       /* IN/OUT */       
                   )                                                  
{                                                                     
  int                                 i = 0;                          
  10cd17:	c7 45 a4 00 00 00 00 	movl   $0x0,-0x5c(%ebp)               
                                                                      
  /*                                                                  
   *  Evaluate all tokens until we are done or an error occurs.       
   */                                                                 
                                                                      
  while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) {
  10cd1e:	e9 29 01 00 00       	jmp    10ce4c <IMFS_eval_path+0x15e>  
                                                                      
    type = IMFS_get_token( &pathname[i], pathnamelen, token, &len );  
  10cd23:	8d 45 e4             	lea    -0x1c(%ebp),%eax               
  10cd26:	50                   	push   %eax                           
  10cd27:	8d 4d af             	lea    -0x51(%ebp),%ecx               
  10cd2a:	51                   	push   %ecx                           
  10cd2b:	ff 75 0c             	pushl  0xc(%ebp)                      
  10cd2e:	8b 45 08             	mov    0x8(%ebp),%eax                 
  10cd31:	03 45 a4             	add    -0x5c(%ebp),%eax               
  10cd34:	50                   	push   %eax                           
  10cd35:	e8 b2 05 00 00       	call   10d2ec <IMFS_get_token>        
  10cd3a:	89 c6                	mov    %eax,%esi                      
    pathnamelen -= len;                                               
  10cd3c:	8b 55 e4             	mov    -0x1c(%ebp),%edx               
    i += len;                                                         
                                                                      
    if ( !pathloc->node_access )                                      
  10cd3f:	83 c4 10             	add    $0x10,%esp                     
  10cd42:	83 3b 00             	cmpl   $0x0,(%ebx)                    
  10cd45:	75 13                	jne    10cd5a <IMFS_eval_path+0x6c>   <== ALWAYS TAKEN
      rtems_set_errno_and_return_minus_one( ENOENT );                 
  10cd47:	e8 34 30 00 00       	call   10fd80 <__errno>               
  10cd4c:	c7 00 02 00 00 00    	movl   $0x2,(%eax)                    
  10cd52:	83 cf ff             	or     $0xffffffff,%edi               
  10cd55:	e9 75 01 00 00       	jmp    10cecf <IMFS_eval_path+0x1e1>  
                                                                      
    /*                                                                
     * I cannot move out of this directory without execute permission.
     */                                                               
    if ( type != IMFS_NO_MORE_PATH )                                  
  10cd5a:	85 c0                	test   %eax,%eax                      
  10cd5c:	74 21                	je     10cd7f <IMFS_eval_path+0x91>   
      if ( node->type == IMFS_DIRECTORY )                             
  10cd5e:	83 7f 4c 01          	cmpl   $0x1,0x4c(%edi)                
  10cd62:	75 1b                	jne    10cd7f <IMFS_eval_path+0x91>   
        if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) )
  10cd64:	57                   	push   %edi                           
  10cd65:	57                   	push   %edi                           
  10cd66:	6a 01                	push   $0x1                           
  10cd68:	53                   	push   %ebx                           
  10cd69:	89 55 a0             	mov    %edx,-0x60(%ebp)               
  10cd6c:	e8 07 ff ff ff       	call   10cc78 <IMFS_evaluate_permission>
  10cd71:	83 c4 10             	add    $0x10,%esp                     
  10cd74:	85 c0                	test   %eax,%eax                      
  10cd76:	8b 55 a0             	mov    -0x60(%ebp),%edx               
  10cd79:	0f 84 3e 01 00 00    	je     10cebd <IMFS_eval_path+0x1cf>  
   */                                                                 
                                                                      
  while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) {
                                                                      
    type = IMFS_get_token( &pathname[i], pathnamelen, token, &len );  
    pathnamelen -= len;                                               
  10cd7f:	29 55 0c             	sub    %edx,0xc(%ebp)                 
    i += len;                                                         
  10cd82:	01 55 a4             	add    %edx,-0x5c(%ebp)               
    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;                                      
  10cd85:	8b 3b                	mov    (%ebx),%edi                    
                                                                      
    switch( type ) {                                                  
  10cd87:	83 fe 03             	cmp    $0x3,%esi                      
  10cd8a:	74 38                	je     10cdc4 <IMFS_eval_path+0xd6>   
  10cd8c:	83 fe 04             	cmp    $0x4,%esi                      
  10cd8f:	0f 84 a7 00 00 00    	je     10ce3c <IMFS_eval_path+0x14e>  
  10cd95:	83 fe 02             	cmp    $0x2,%esi                      
  10cd98:	0f 85 ae 00 00 00    	jne    10ce4c <IMFS_eval_path+0x15e>  
      case IMFS_UP_DIR:                                               
        /*                                                            
         *  Am I at the root of all filesystems? (chroot'ed?)         
         */                                                           
                                                                      
        if ( pathloc->node_access == rtems_filesystem_root.node_access )
  10cd9e:	a1 44 10 12 00       	mov    0x121044,%eax                  
  10cda3:	3b 78 18             	cmp    0x18(%eax),%edi                
  10cda6:	0f 84 a0 00 00 00    	je     10ce4c <IMFS_eval_path+0x15e>  
        /*                                                            
         *  Am I at the root of this mounted filesystem?              
         */                                                           
                                                                      
        if (pathloc->node_access ==                                   
            pathloc->mt_entry->mt_fs_root.node_access) {              
  10cdac:	8b 43 10             	mov    0x10(%ebx),%eax                
                                                                      
        /*                                                            
         *  Am I at the root of this mounted filesystem?              
         */                                                           
                                                                      
        if (pathloc->node_access ==                                   
  10cdaf:	3b 78 1c             	cmp    0x1c(%eax),%edi                
  10cdb2:	75 0b                	jne    10cdbf <IMFS_eval_path+0xd1>   
           */                                                         
                                                                      
          if ( pathloc->node_access == rtems_filesystem_root.node_access ) {
            break;       /* Throw out the .. in this case */          
          } else {                                                    
            newloc = pathloc->mt_entry->mt_point_node;                
  10cdb4:	8d 7d d0             	lea    -0x30(%ebp),%edi               
  10cdb7:	8d 70 08             	lea    0x8(%eax),%esi                 
  10cdba:	e9 ad 00 00 00       	jmp    10ce6c <IMFS_eval_path+0x17e>  
                                               pathnamelen+len,       
                                               flags,pathloc);        
          }                                                           
        } else {                                                      
                                                                      
          if ( !node->Parent )                                        
  10cdbf:	8b 7f 08             	mov    0x8(%edi),%edi                 
  10cdc2:	eb 6c                	jmp    10ce30 <IMFS_eval_path+0x142>  
                                                                      
      case IMFS_NAME:                                                 
        /*                                                            
         *  If we are at a link follow it.                            
         */                                                           
        if ( node->type == IMFS_HARD_LINK ) {                         
  10cdc4:	8b 47 4c             	mov    0x4c(%edi),%eax                
  10cdc7:	83 f8 03             	cmp    $0x3,%eax                      
  10cdca:	75 11                	jne    10cddd <IMFS_eval_path+0xef>   
          IMFS_evaluate_hard_link( pathloc, 0 );                      
  10cdcc:	51                   	push   %ecx                           
  10cdcd:	51                   	push   %ecx                           
  10cdce:	6a 00                	push   $0x0                           
  10cdd0:	53                   	push   %ebx                           
  10cdd1:	e8 d9 fe ff ff       	call   10ccaf <IMFS_evaluate_hard_link>
          node = pathloc->node_access;                                
  10cdd6:	8b 3b                	mov    (%ebx),%edi                    
  10cdd8:	83 c4 10             	add    $0x10,%esp                     
  10cddb:	eb 1d                	jmp    10cdfa <IMFS_eval_path+0x10c>  
	   * It would be a design error if we evaluated the link and         
	   * was broken.                                                     
	   */                                                                
          IMFS_assert( node );                                        
                                                                      
        } else if ( node->type == IMFS_SYM_LINK ) {                   
  10cddd:	83 f8 04             	cmp    $0x4,%eax                      
  10cde0:	75 18                	jne    10cdfa <IMFS_eval_path+0x10c>  
          result = IMFS_evaluate_sym_link( pathloc, 0 );              
  10cde2:	52                   	push   %edx                           
  10cde3:	52                   	push   %edx                           
  10cde4:	6a 00                	push   $0x0                           
  10cde6:	53                   	push   %ebx                           
  10cde7:	e8 ed 00 00 00       	call   10ced9 <IMFS_evaluate_sym_link>
                                                                      
          /*                                                          
           *  In contrast to a hard link, it is possible to have a broken
           *  symbolic link.                                          
           */                                                         
          node = pathloc->node_access;                                
  10cdec:	8b 3b                	mov    (%ebx),%edi                    
          if ( result == -1 )                                         
  10cdee:	83 c4 10             	add    $0x10,%esp                     
  10cdf1:	83 f8 ff             	cmp    $0xffffffff,%eax               
  10cdf4:	0f 84 d3 00 00 00    	je     10cecd <IMFS_eval_path+0x1df>  <== NEVER TAKEN
        }                                                             
                                                                      
        /*                                                            
         *  Only a directory can be decended into.                    
         */                                                           
        if ( node->type != IMFS_DIRECTORY )                           
  10cdfa:	83 7f 4c 01          	cmpl   $0x1,0x4c(%edi)                
  10cdfe:	74 10                	je     10ce10 <IMFS_eval_path+0x122>  
          rtems_set_errno_and_return_minus_one( ENOTDIR );            
  10ce00:	e8 7b 2f 00 00       	call   10fd80 <__errno>               
  10ce05:	c7 00 14 00 00 00    	movl   $0x14,(%eax)                   
  10ce0b:	e9 42 ff ff ff       	jmp    10cd52 <IMFS_eval_path+0x64>   
                                                                      
        /*                                                            
         *  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 ) {                   
  10ce10:	8b 47 5c             	mov    0x5c(%edi),%eax                
  10ce13:	85 c0                	test   %eax,%eax                      
  10ce15:	74 08                	je     10ce1f <IMFS_eval_path+0x131>  
          newloc   = node->info.directory.mt_fs->mt_fs_root;          
  10ce17:	8d 7d d0             	lea    -0x30(%ebp),%edi               
  10ce1a:	8d 70 1c             	lea    0x1c(%eax),%esi                
  10ce1d:	eb 4d                	jmp    10ce6c <IMFS_eval_path+0x17e>  
        }                                                             
                                                                      
        /*                                                            
         *  Otherwise find the token name in the present location.    
         */                                                           
        node = IMFS_find_match_in_dir( node, token );                 
  10ce1f:	50                   	push   %eax                           
  10ce20:	50                   	push   %eax                           
  10ce21:	8d 45 af             	lea    -0x51(%ebp),%eax               
  10ce24:	50                   	push   %eax                           
  10ce25:	57                   	push   %edi                           
  10ce26:	e8 55 04 00 00       	call   10d280 <IMFS_find_match_in_dir>
  10ce2b:	89 c7                	mov    %eax,%edi                      
        if ( !node )                                                  
  10ce2d:	83 c4 10             	add    $0x10,%esp                     
  10ce30:	85 ff                	test   %edi,%edi                      
  10ce32:	0f 84 0f ff ff ff    	je     10cd47 <IMFS_eval_path+0x59>   
                                                                      
        /*                                                            
         *  Set the node access to the point we have found.           
         */                                                           
                                                                      
        pathloc->node_access = node;                                  
  10ce38:	89 3b                	mov    %edi,(%ebx)                    
  10ce3a:	eb 10                	jmp    10ce4c <IMFS_eval_path+0x15e>  
      case IMFS_NO_MORE_PATH:                                         
      case IMFS_CURRENT_DIR:                                          
        break;                                                        
                                                                      
      case IMFS_INVALID_TOKEN:                                        
        rtems_set_errno_and_return_minus_one( ENAMETOOLONG );         
  10ce3c:	e8 3f 2f 00 00       	call   10fd80 <__errno>               
  10ce41:	c7 00 5b 00 00 00    	movl   $0x5b,(%eax)                   
  10ce47:	e9 06 ff ff ff       	jmp    10cd52 <IMFS_eval_path+0x64>   
                                                                      
  /*                                                                  
   *  Evaluate all tokens until we are done or an error occurs.       
   */                                                                 
                                                                      
  while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) {
  10ce4c:	83 fe 04             	cmp    $0x4,%esi                      
  10ce4f:	74 08                	je     10ce59 <IMFS_eval_path+0x16b>  <== NEVER TAKEN
  10ce51:	85 f6                	test   %esi,%esi                      
  10ce53:	0f 85 ca fe ff ff    	jne    10cd23 <IMFS_eval_path+0x35>   
   *  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 ) {                               
  10ce59:	83 7f 4c 01          	cmpl   $0x1,0x4c(%edi)                
  10ce5d:	75 41                	jne    10cea0 <IMFS_eval_path+0x1b2>  
    if ( node->info.directory.mt_fs != NULL ) {                       
  10ce5f:	8b 77 5c             	mov    0x5c(%edi),%esi                
  10ce62:	85 f6                	test   %esi,%esi                      
  10ce64:	74 3a                	je     10cea0 <IMFS_eval_path+0x1b2>  
      newloc   = node->info.directory.mt_fs->mt_fs_root;              
  10ce66:	8d 7d d0             	lea    -0x30(%ebp),%edi               
  10ce69:	83 c6 1c             	add    $0x1c,%esi                     
  10ce6c:	b9 05 00 00 00       	mov    $0x5,%ecx                      
  10ce71:	f3 a5                	rep movsl %ds:(%esi),%es:(%edi)       
      *pathloc = newloc;                                              
  10ce73:	8d 75 d0             	lea    -0x30(%ebp),%esi               
  10ce76:	b1 05                	mov    $0x5,%cl                       
  10ce78:	89 df                	mov    %ebx,%edi                      
  10ce7a:	f3 a5                	rep movsl %ds:(%esi),%es:(%edi)       
      return (*pathloc->ops->evalpath_h)( &pathname[i-len],           
  10ce7c:	8b 45 e4             	mov    -0x1c(%ebp),%eax               
  10ce7f:	8b 53 0c             	mov    0xc(%ebx),%edx                 
  10ce82:	53                   	push   %ebx                           
  10ce83:	ff 75 10             	pushl  0x10(%ebp)                     
  10ce86:	8b 4d 0c             	mov    0xc(%ebp),%ecx                 
  10ce89:	01 c1                	add    %eax,%ecx                      
  10ce8b:	51                   	push   %ecx                           
  10ce8c:	8b 4d a4             	mov    -0x5c(%ebp),%ecx               
  10ce8f:	29 c1                	sub    %eax,%ecx                      
  10ce91:	8b 45 08             	mov    0x8(%ebp),%eax                 
  10ce94:	01 c8                	add    %ecx,%eax                      
  10ce96:	50                   	push   %eax                           
  10ce97:	ff 12                	call   *(%edx)                        
  10ce99:	89 c7                	mov    %eax,%edi                      
  10ce9b:	83 c4 10             	add    $0x10,%esp                     
  10ce9e:	eb 2f                	jmp    10cecf <IMFS_eval_path+0x1e1>  
                                          flags, pathloc );           
    } else {                                                          
      result = IMFS_Set_handlers( pathloc );                          
    }                                                                 
  } else {                                                            
    result = IMFS_Set_handlers( pathloc );                            
  10cea0:	83 ec 0c             	sub    $0xc,%esp                      
  10cea3:	53                   	push   %ebx                           
  10cea4:	e8 8b fd ff ff       	call   10cc34 <IMFS_Set_handlers>     
  10cea9:	89 c7                	mov    %eax,%edi                      
  10ceab:	5a                   	pop    %edx                           
  10ceac:	59                   	pop    %ecx                           
                                                                      
  /*                                                                  
   * Verify we have the correct permissions for this node.            
   */                                                                 
                                                                      
  if ( !IMFS_evaluate_permission( pathloc, flags ) )                  
  10cead:	ff 75 10             	pushl  0x10(%ebp)                     
  10ceb0:	53                   	push   %ebx                           
  10ceb1:	e8 c2 fd ff ff       	call   10cc78 <IMFS_evaluate_permission>
  10ceb6:	83 c4 10             	add    $0x10,%esp                     
  10ceb9:	85 c0                	test   %eax,%eax                      
  10cebb:	75 12                	jne    10cecf <IMFS_eval_path+0x1e1>  
    rtems_set_errno_and_return_minus_one( EACCES );                   
  10cebd:	e8 be 2e 00 00       	call   10fd80 <__errno>               
  10cec2:	c7 00 0d 00 00 00    	movl   $0xd,(%eax)                    
  10cec8:	e9 85 fe ff ff       	jmp    10cd52 <IMFS_eval_path+0x64>   
  10cecd:	89 c7                	mov    %eax,%edi                      <== NOT EXECUTED
                                                                      
  return result;                                                      
}                                                                     
  10cecf:	89 f8                	mov    %edi,%eax                      
  10ced1:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  10ced4:	5b                   	pop    %ebx                           
  10ced5:	5e                   	pop    %esi                           
  10ced6:	5f                   	pop    %edi                           
  10ced7:	c9                   	leave                                 
  10ced8:	c3                   	ret                                   
                                                                      

0010cfcd <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 */ ) {
  10cfcd:	55                   	push   %ebp                           
  10cfce:	89 e5                	mov    %esp,%ebp                      
  10cfd0:	57                   	push   %edi                           
  10cfd1:	56                   	push   %esi                           
  10cfd2:	53                   	push   %ebx                           
  10cfd3:	83 ec 5c             	sub    $0x5c,%esp                     
  10cfd6:	8b 55 0c             	mov    0xc(%ebp),%edx                 
                                                                      
  /*                                                                  
   * This was filled in by the caller and is valid in the             
   * mount table.                                                     
   */                                                                 
  node = pathloc->node_access;                                        
  10cfd9:	8b 1a                	mov    (%edx),%ebx                    
                                                                      
  /*                                                                  
   * Get the path length.                                             
   */                                                                 
  pathlen = strlen( path );                                           
  10cfdb:	31 c0                	xor    %eax,%eax                      
  10cfdd:	83 c9 ff             	or     $0xffffffff,%ecx               
  10cfe0:	8b 7d 08             	mov    0x8(%ebp),%edi                 
  10cfe3:	f2 ae                	repnz scas %es:(%edi),%al             
  10cfe5:	f7 d1                	not    %ecx                           
  10cfe7:	49                   	dec    %ecx                           
  10cfe8:	89 4d a0             	mov    %ecx,-0x60(%ebp)               
   const char                         *path,       /* IN     */       
   rtems_filesystem_location_info_t   *pathloc,    /* IN/OUT */       
   const char                        **name        /* OUT    */       
)                                                                     
{                                                                     
  int                                 i = 0;                          
  10cfeb:	c7 45 a4 00 00 00 00 	movl   $0x0,-0x5c(%ebp)               
   *  Evaluate all tokens until we are done or an error occurs.       
   */                                                                 
                                                                      
  while( !done ) {                                                    
                                                                      
    type = IMFS_get_token( &path[i], pathlen, token, &len );          
  10cff2:	8d 7d af             	lea    -0x51(%ebp),%edi               
  10cff5:	89 d6                	mov    %edx,%esi                      
  10cff7:	8d 45 e4             	lea    -0x1c(%ebp),%eax               
  10cffa:	50                   	push   %eax                           
  10cffb:	57                   	push   %edi                           
  10cffc:	ff 75 a0             	pushl  -0x60(%ebp)                    
  10cfff:	8b 45 08             	mov    0x8(%ebp),%eax                 
  10d002:	03 45 a4             	add    -0x5c(%ebp),%eax               
  10d005:	50                   	push   %eax                           
  10d006:	e8 e1 02 00 00       	call   10d2ec <IMFS_get_token>        
  10d00b:	89 c2                	mov    %eax,%edx                      
    pathlen -= len;                                                   
  10d00d:	8b 4d e4             	mov    -0x1c(%ebp),%ecx               
  10d010:	29 4d a0             	sub    %ecx,-0x60(%ebp)               
    i +=  len;                                                        
                                                                      
    if ( !pathloc->node_access )                                      
  10d013:	83 c4 10             	add    $0x10,%esp                     
  10d016:	83 3e 00             	cmpl   $0x0,(%esi)                    
  10d019:	0f 84 79 01 00 00    	je     10d198 <IMFS_evaluate_for_make+0x1cb><== NEVER TAKEN
                                                                      
    /*                                                                
     * I cannot move out of this directory without execute permission.
     */                                                               
                                                                      
    if ( type != IMFS_NO_MORE_PATH )                                  
  10d01f:	85 c0                	test   %eax,%eax                      
  10d021:	74 36                	je     10d059 <IMFS_evaluate_for_make+0x8c>
      if ( node->type == IMFS_DIRECTORY )                             
  10d023:	83 7b 4c 01          	cmpl   $0x1,0x4c(%ebx)                
  10d027:	75 30                	jne    10d059 <IMFS_evaluate_for_make+0x8c>
        if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) )
  10d029:	53                   	push   %ebx                           
  10d02a:	53                   	push   %ebx                           
  10d02b:	6a 01                	push   $0x1                           
  10d02d:	56                   	push   %esi                           
  10d02e:	89 45 9c             	mov    %eax,-0x64(%ebp)               
  10d031:	89 4d 98             	mov    %ecx,-0x68(%ebp)               
  10d034:	e8 3f fc ff ff       	call   10cc78 <IMFS_evaluate_permission>
  10d039:	83 c4 10             	add    $0x10,%esp                     
  10d03c:	85 c0                	test   %eax,%eax                      
  10d03e:	8b 55 9c             	mov    -0x64(%ebp),%edx               
  10d041:	8b 4d 98             	mov    -0x68(%ebp),%ecx               
  10d044:	75 13                	jne    10d059 <IMFS_evaluate_for_make+0x8c>
           rtems_set_errno_and_return_minus_one( EACCES );            
  10d046:	e8 35 2d 00 00       	call   10fd80 <__errno>               
  10d04b:	c7 00 0d 00 00 00    	movl   $0xd,(%eax)                    
  10d051:	83 cb ff             	or     $0xffffffff,%ebx               
  10d054:	e9 99 01 00 00       	jmp    10d1f2 <IMFS_evaluate_for_make+0x225>
                                                                      
  while( !done ) {                                                    
                                                                      
    type = IMFS_get_token( &path[i], pathlen, token, &len );          
    pathlen -= len;                                                   
    i +=  len;                                                        
  10d059:	01 4d a4             	add    %ecx,-0x5c(%ebp)               
    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;                                      
  10d05c:	8b 1e                	mov    (%esi),%ebx                    
                                                                      
    switch( type ) {                                                  
  10d05e:	83 fa 02             	cmp    $0x2,%edx                      
  10d061:	74 1f                	je     10d082 <IMFS_evaluate_for_make+0xb5>
  10d063:	77 0a                	ja     10d06f <IMFS_evaluate_for_make+0xa2>
  10d065:	85 d2                	test   %edx,%edx                      
  10d067:	0f 84 d9 00 00 00    	je     10d146 <IMFS_evaluate_for_make+0x179>
  10d06d:	eb 88                	jmp    10cff7 <IMFS_evaluate_for_make+0x2a>
  10d06f:	83 fa 03             	cmp    $0x3,%edx                      
  10d072:	74 40                	je     10d0b4 <IMFS_evaluate_for_make+0xe7>
  10d074:	83 fa 04             	cmp    $0x4,%edx                      
  10d077:	0f 85 7a ff ff ff    	jne    10cff7 <IMFS_evaluate_for_make+0x2a><== NEVER TAKEN
  10d07d:	e9 d4 00 00 00       	jmp    10d156 <IMFS_evaluate_for_make+0x189>
      case IMFS_UP_DIR:                                               
       /*                                                             
        *  Am I at the root of all filesystems? (chroot'ed?)          
	*/                                                                   
                                                                      
       if ( pathloc->node_access == rtems_filesystem_root.node_access )
  10d082:	a1 44 10 12 00       	mov    0x121044,%eax                  
  10d087:	3b 58 18             	cmp    0x18(%eax),%ebx                
  10d08a:	0f 84 67 ff ff ff    	je     10cff7 <IMFS_evaluate_for_make+0x2a>
                                                                      
	/*                                                                   
	 * Am I at the root of this mounted filesystem?                      
	 */                                                                  
                                                                      
        if (pathloc->node_access == pathloc->mt_entry->mt_fs_root.node_access){
  10d090:	8b 46 10             	mov    0x10(%esi),%eax                
  10d093:	3b 58 1c             	cmp    0x1c(%eax),%ebx                
  10d096:	75 0c                	jne    10d0a4 <IMFS_evaluate_for_make+0xd7>
  10d098:	89 f2                	mov    %esi,%edx                      
  10d09a:	89 c6                	mov    %eax,%esi                      
                                                                      
          if ( pathloc->node_access == rtems_filesystem_root.node_access ) {
            break;                                                    
                                                                      
	  } else {                                                           
            newloc = pathloc->mt_entry->mt_point_node;                
  10d09c:	8d 7d d0             	lea    -0x30(%ebp),%edi               
  10d09f:	83 c6 08             	add    $0x8,%esi                      
  10d0a2:	eb 5a                	jmp    10d0fe <IMFS_evaluate_for_make+0x131>
            *pathloc = newloc;                                        
            return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name );
	  }                                                                  
	} else {                                                             
                                                                      
          if ( !node->Parent )                                        
  10d0a4:	8b 5b 08             	mov    0x8(%ebx),%ebx                 
  10d0a7:	85 db                	test   %ebx,%ebx                      
  10d0a9:	0f 85 90 00 00 00    	jne    10d13f <IMFS_evaluate_for_make+0x172>
  10d0af:	e9 e4 00 00 00       	jmp    10d198 <IMFS_evaluate_for_make+0x1cb>
        pathloc->node_access = node;                                  
        break;                                                        
                                                                      
      case IMFS_NAME:                                                 
                                                                      
	if ( node->type == IMFS_HARD_LINK ) {                                
  10d0b4:	8b 43 4c             	mov    0x4c(%ebx),%eax                
  10d0b7:	83 f8 03             	cmp    $0x3,%eax                      
  10d0ba:	74 05                	je     10d0c1 <IMFS_evaluate_for_make+0xf4>
                                                                      
          result = IMFS_evaluate_link( pathloc, 0 );                  
          if ( result == -1 )                                         
            return -1;                                                
                                                                      
	} else if ( node->type == IMFS_SYM_LINK ) {                          
  10d0bc:	83 f8 04             	cmp    $0x4,%eax                      
  10d0bf:	75 16                	jne    10d0d7 <IMFS_evaluate_for_make+0x10a>
                                                                      
          result = IMFS_evaluate_link( pathloc, 0 );                  
  10d0c1:	50                   	push   %eax                           
  10d0c2:	50                   	push   %eax                           
  10d0c3:	6a 00                	push   $0x0                           
  10d0c5:	56                   	push   %esi                           
  10d0c6:	e8 7f fe ff ff       	call   10cf4a <IMFS_evaluate_link>    
                                                                      
          if ( result == -1 )                                         
  10d0cb:	83 c4 10             	add    $0x10,%esp                     
  10d0ce:	83 f8 ff             	cmp    $0xffffffff,%eax               
  10d0d1:	0f 84 19 01 00 00    	je     10d1f0 <IMFS_evaluate_for_make+0x223><== NEVER TAKEN
            return -1;                                                
	}                                                                    
                                                                      
        node = pathloc->node_access;                                  
  10d0d7:	8b 06                	mov    (%esi),%eax                    
        if ( !node )                                                  
  10d0d9:	85 c0                	test   %eax,%eax                      
  10d0db:	0f 84 e9 00 00 00    	je     10d1ca <IMFS_evaluate_for_make+0x1fd><== NEVER TAKEN
                                                                      
        /*                                                            
         * Only a directory can be decended into.                     
	 */                                                                  
                                                                      
        if ( node->type != IMFS_DIRECTORY )                           
  10d0e1:	83 78 4c 01          	cmpl   $0x1,0x4c(%eax)                
  10d0e5:	0f 85 df 00 00 00    	jne    10d1ca <IMFS_evaluate_for_make+0x1fd>
	/*                                                                   
	 * 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 ) {                   
  10d0eb:	8b 50 5c             	mov    0x5c(%eax),%edx                
  10d0ee:	85 d2                	test   %edx,%edx                      
  10d0f0:	74 3b                	je     10d12d <IMFS_evaluate_for_make+0x160>
  10d0f2:	89 f0                	mov    %esi,%eax                      
  10d0f4:	89 d6                	mov    %edx,%esi                      
  10d0f6:	89 c2                	mov    %eax,%edx                      
          newloc  = node->info.directory.mt_fs->mt_fs_root;           
  10d0f8:	8d 7d d0             	lea    -0x30(%ebp),%edi               
  10d0fb:	83 c6 1c             	add    $0x1c,%esi                     
  10d0fe:	b9 05 00 00 00       	mov    $0x5,%ecx                      
  10d103:	f3 a5                	rep movsl %ds:(%esi),%es:(%edi)       
          *pathloc = newloc;                                          
  10d105:	8d 75 d0             	lea    -0x30(%ebp),%esi               
  10d108:	b1 05                	mov    $0x5,%cl                       
  10d10a:	89 d7                	mov    %edx,%edi                      
  10d10c:	f3 a5                	rep movsl %ds:(%esi),%es:(%edi)       
          return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name );
  10d10e:	56                   	push   %esi                           
  10d10f:	8b 42 0c             	mov    0xc(%edx),%eax                 
  10d112:	ff 75 10             	pushl  0x10(%ebp)                     
  10d115:	52                   	push   %edx                           
  10d116:	8b 55 a4             	mov    -0x5c(%ebp),%edx               
  10d119:	2b 55 e4             	sub    -0x1c(%ebp),%edx               
  10d11c:	03 55 08             	add    0x8(%ebp),%edx                 
  10d11f:	52                   	push   %edx                           
  10d120:	ff 50 04             	call   *0x4(%eax)                     
  10d123:	89 c3                	mov    %eax,%ebx                      
  10d125:	83 c4 10             	add    $0x10,%esp                     
  10d128:	e9 c5 00 00 00       	jmp    10d1f2 <IMFS_evaluate_for_make+0x225>
                                                                      
	/*                                                                   
	 * Otherwise find the token name in the present location.            
	 */                                                                  
                                                                      
        node = IMFS_find_match_in_dir( node, token );                 
  10d12d:	53                   	push   %ebx                           
  10d12e:	53                   	push   %ebx                           
  10d12f:	57                   	push   %edi                           
  10d130:	50                   	push   %eax                           
  10d131:	e8 4a 01 00 00       	call   10d280 <IMFS_find_match_in_dir>
  10d136:	89 c3                	mov    %eax,%ebx                      
	/*                                                                   
	 * If there is no node we have found the name of the node we         
         * wish to create.                                            
	 */                                                                  
                                                                      
        if ( ! node )                                                 
  10d138:	83 c4 10             	add    $0x10,%esp                     
  10d13b:	85 c0                	test   %eax,%eax                      
  10d13d:	74 27                	je     10d166 <IMFS_evaluate_for_make+0x199>
          done = true;                                                
        else                                                          
          pathloc->node_access = node;                                
  10d13f:	89 1e                	mov    %ebx,(%esi)                    
  10d141:	e9 b1 fe ff ff       	jmp    10cff7 <IMFS_evaluate_for_make+0x2a>
                                                                      
        break;                                                        
                                                                      
      case IMFS_NO_MORE_PATH:                                         
        rtems_set_errno_and_return_minus_one( EEXIST );               
  10d146:	e8 35 2c 00 00       	call   10fd80 <__errno>               
  10d14b:	c7 00 11 00 00 00    	movl   $0x11,(%eax)                   
  10d151:	e9 fb fe ff ff       	jmp    10d051 <IMFS_evaluate_for_make+0x84>
        break;                                                        
                                                                      
      case IMFS_INVALID_TOKEN:                                        
        rtems_set_errno_and_return_minus_one( ENAMETOOLONG );         
  10d156:	e8 25 2c 00 00       	call   10fd80 <__errno>               
  10d15b:	c7 00 5b 00 00 00    	movl   $0x5b,(%eax)                   
  10d161:	e9 eb fe ff ff       	jmp    10d051 <IMFS_evaluate_for_make+0x84>
  10d166:	89 f2                	mov    %esi,%edx                      
      case IMFS_CURRENT_DIR:                                          
        break;                                                        
    }                                                                 
  }                                                                   
                                                                      
  *name = &path[ i - len ];                                           
  10d168:	8b 45 a4             	mov    -0x5c(%ebp),%eax               
  10d16b:	2b 45 e4             	sub    -0x1c(%ebp),%eax               
  10d16e:	03 45 08             	add    0x8(%ebp),%eax                 
  10d171:	8b 4d 10             	mov    0x10(%ebp),%ecx                
  10d174:	89 01                	mov    %eax,(%ecx)                    
 *  pathloc is returned with a pointer to the parent of the new node. 
 *  name is returned with a pointer to the first character in the     
 *  new node name.  The parent node is verified to be a directory.    
 */                                                                   
                                                                      
int IMFS_evaluate_for_make(                                           
  10d176:	8b 5d 08             	mov    0x8(%ebp),%ebx                 
  10d179:	03 5d a4             	add    -0x5c(%ebp),%ebx               
  /*                                                                  
   * 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++) {                                      
  10d17c:	eb 2a                	jmp    10d1a8 <IMFS_evaluate_for_make+0x1db>
    if ( !IMFS_is_separator( path[ i ] ) )                            
  10d17e:	83 ec 0c             	sub    $0xc,%esp                      
  10d181:	0f be c0             	movsbl %al,%eax                       
  10d184:	50                   	push   %eax                           
  10d185:	89 55 9c             	mov    %edx,-0x64(%ebp)               
  10d188:	e8 e7 a4 ff ff       	call   107674 <rtems_filesystem_is_separator>
  10d18d:	43                   	inc    %ebx                           
  10d18e:	83 c4 10             	add    $0x10,%esp                     
  10d191:	85 c0                	test   %eax,%eax                      
  10d193:	8b 55 9c             	mov    -0x64(%ebp),%edx               
  10d196:	75 10                	jne    10d1a8 <IMFS_evaluate_for_make+0x1db>
      rtems_set_errno_and_return_minus_one( ENOENT );                 
  10d198:	e8 e3 2b 00 00       	call   10fd80 <__errno>               
  10d19d:	c7 00 02 00 00 00    	movl   $0x2,(%eax)                    
  10d1a3:	e9 a9 fe ff ff       	jmp    10d051 <IMFS_evaluate_for_make+0x84>
  /*                                                                  
   * 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++) {                                      
  10d1a8:	8a 03                	mov    (%ebx),%al                     
  10d1aa:	84 c0                	test   %al,%al                        
  10d1ac:	75 d0                	jne    10d17e <IMFS_evaluate_for_make+0x1b1>
                                                                      
  /*                                                                  
   * Verify we can execute and write to this directory.               
   */                                                                 
                                                                      
  result = IMFS_Set_handlers( pathloc );                              
  10d1ae:	83 ec 0c             	sub    $0xc,%esp                      
  10d1b1:	52                   	push   %edx                           
  10d1b2:	89 55 9c             	mov    %edx,-0x64(%ebp)               
  10d1b5:	e8 7a fa ff ff       	call   10cc34 <IMFS_Set_handlers>     
  10d1ba:	89 c3                	mov    %eax,%ebx                      
                                                                      
  /*                                                                  
   * The returned node must be a directory                            
   */                                                                 
  node = pathloc->node_access;                                        
  if ( node->type != IMFS_DIRECTORY )                                 
  10d1bc:	8b 55 9c             	mov    -0x64(%ebp),%edx               
  10d1bf:	8b 02                	mov    (%edx),%eax                    
  10d1c1:	83 c4 10             	add    $0x10,%esp                     
  10d1c4:	83 78 4c 01          	cmpl   $0x1,0x4c(%eax)                
  10d1c8:	74 10                	je     10d1da <IMFS_evaluate_for_make+0x20d><== ALWAYS TAKEN
    rtems_set_errno_and_return_minus_one( ENOTDIR );                  
  10d1ca:	e8 b1 2b 00 00       	call   10fd80 <__errno>               
  10d1cf:	c7 00 14 00 00 00    	movl   $0x14,(%eax)                   
  10d1d5:	e9 77 fe ff ff       	jmp    10d051 <IMFS_evaluate_for_make+0x84>
                                                                      
  /*                                                                  
   * We must have Write and execute permission on the returned node.  
   */                                                                 
                                                                      
  if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_WX ) )   
  10d1da:	51                   	push   %ecx                           
  10d1db:	51                   	push   %ecx                           
  10d1dc:	6a 03                	push   $0x3                           
  10d1de:	52                   	push   %edx                           
  10d1df:	e8 94 fa ff ff       	call   10cc78 <IMFS_evaluate_permission>
  10d1e4:	83 c4 10             	add    $0x10,%esp                     
  10d1e7:	85 c0                	test   %eax,%eax                      
  10d1e9:	75 07                	jne    10d1f2 <IMFS_evaluate_for_make+0x225>
  10d1eb:	e9 56 fe ff ff       	jmp    10d046 <IMFS_evaluate_for_make+0x79>
  10d1f0:	89 c3                	mov    %eax,%ebx                      <== NOT EXECUTED
    rtems_set_errno_and_return_minus_one( EACCES );                   
                                                                      
  return result;                                                      
}                                                                     
  10d1f2:	89 d8                	mov    %ebx,%eax                      
  10d1f4:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  10d1f7:	5b                   	pop    %ebx                           
  10d1f8:	5e                   	pop    %esi                           
  10d1f9:	5f                   	pop    %edi                           
  10d1fa:	c9                   	leave                                 
  10d1fb:	c3                   	ret                                   
                                                                      

0010cc78 <IMFS_evaluate_permission>: */ int IMFS_evaluate_permission( rtems_filesystem_location_info_t *node, int flags ) {
  10cc78:	55                   	push   %ebp                           
  10cc79:	89 e5                	mov    %esp,%ebp                      
  10cc7b:	83 ec 08             	sub    $0x8,%esp                      
  10cc7e:	8b 45 0c             	mov    0xc(%ebp),%eax                 
  uid_t         st_uid;                                               
  gid_t         st_gid;                                               
  IMFS_jnode_t *jnode;                                                
  int           flags_to_test;                                        
                                                                      
  if ( !rtems_libio_is_valid_perms( flags ) )                         
  10cc81:	a9 f8 ff ff ff       	test   $0xfffffff8,%eax               
  10cc86:	74 10                	je     10cc98 <IMFS_evaluate_permission+0x20><== ALWAYS TAKEN
    rtems_set_errno_and_return_minus_one( EPERM );                    
  10cc88:	e8 f3 30 00 00       	call   10fd80 <__errno>               <== NOT EXECUTED
  10cc8d:	c7 00 01 00 00 00    	movl   $0x1,(%eax)                    <== NOT EXECUTED
  10cc93:	83 c8 ff             	or     $0xffffffff,%eax               <== NOT EXECUTED
  10cc96:	eb 15                	jmp    10ccad <IMFS_evaluate_permission+0x35><== NOT EXECUTED
   */                                                                 
                                                                      
  flags_to_test = flags;                                              
                                                                      
  if ( st_uid == jnode->st_uid )                                      
    flags_to_test <<= 6;                                              
  10cc98:	c1 e0 06             	shl    $0x6,%eax                      
                                                                      
  /*                                                                  
   * If all of the flags are set we have permission                   
   * to do this.                                                      
   */                                                                 
  if ( ( flags_to_test & jnode->st_mode) == flags_to_test )           
  10cc9b:	8b 55 08             	mov    0x8(%ebp),%edx                 
  10cc9e:	8b 12                	mov    (%edx),%edx                    
  10cca0:	8b 52 30             	mov    0x30(%edx),%edx                
  10cca3:	21 c2                	and    %eax,%edx                      
  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 );                    
  10cca5:	39 c2                	cmp    %eax,%edx                      
  10cca7:	0f 94 c0             	sete   %al                            
  10ccaa:	0f b6 c0             	movzbl %al,%eax                       
   */                                                                 
  if ( ( flags_to_test & jnode->st_mode) == flags_to_test )           
    return 1;                                                         
                                                                      
  return 0;                                                           
}                                                                     
  10ccad:	c9                   	leave                                 
  10ccae:	c3                   	ret                                   
                                                                      

001070e8 <IMFS_fifo_lseek>: rtems_off64_t IMFS_fifo_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) {
  1070e8:	55                   	push   %ebp                           
  1070e9:	89 e5                	mov    %esp,%ebp                      
  1070eb:	53                   	push   %ebx                           
  1070ec:	83 ec 10             	sub    $0x10,%esp                     
  1070ef:	8b 45 08             	mov    0x8(%ebp),%eax                 
  off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop);       
  1070f2:	50                   	push   %eax                           
  1070f3:	ff 75 14             	pushl  0x14(%ebp)                     
  1070f6:	ff 75 10             	pushl  0x10(%ebp)                     
  1070f9:	ff 75 0c             	pushl  0xc(%ebp)                      
  1070fc:	8b 40 18             	mov    0x18(%eax),%eax                
  1070ff:	ff 70 50             	pushl  0x50(%eax)                     
  107102:	e8 1d 85 00 00       	call   10f624 <pipe_lseek>            
  107107:	89 c3                	mov    %eax,%ebx                      
  IMFS_FIFO_RETURN(err);                                              
  107109:	83 c4 20             	add    $0x20,%esp                     
  10710c:	99                   	cltd                                  
  10710d:	85 d2                	test   %edx,%edx                      
  10710f:	79 0e                	jns    10711f <IMFS_fifo_lseek+0x37>  <== NEVER TAKEN
  107111:	e8 12 a5 00 00       	call   111628 <__errno>               
  107116:	f7 db                	neg    %ebx                           
  107118:	89 18                	mov    %ebx,(%eax)                    
  10711a:	83 c8 ff             	or     $0xffffffff,%eax               
  10711d:	89 c2                	mov    %eax,%edx                      
}                                                                     
  10711f:	8b 5d fc             	mov    -0x4(%ebp),%ebx                
  107122:	c9                   	leave                                 
  107123:	c3                   	ret                                   
                                                                      

00107184 <IMFS_fifo_write>: ssize_t IMFS_fifo_write( rtems_libio_t *iop, const void *buffer, size_t count ) {
  107184:	55                   	push   %ebp                           
  107185:	89 e5                	mov    %esp,%ebp                      
  107187:	56                   	push   %esi                           
  107188:	53                   	push   %ebx                           
  107189:	83 ec 10             	sub    $0x10,%esp                     
  10718c:	8b 45 08             	mov    0x8(%ebp),%eax                 
  IMFS_jnode_t *jnode = iop->pathinfo.node_access;                    
  10718f:	8b 70 18             	mov    0x18(%eax),%esi                
                                                                      
  int err = pipe_write(JNODE2PIPE(jnode), buffer, count, iop);        
  107192:	50                   	push   %eax                           
  107193:	ff 75 10             	pushl  0x10(%ebp)                     
  107196:	ff 75 0c             	pushl  0xc(%ebp)                      
  107199:	ff 76 50             	pushl  0x50(%esi)                     
  10719c:	e8 96 82 00 00       	call   10f437 <pipe_write>            
  1071a1:	89 c3                	mov    %eax,%ebx                      
  if (err > 0) {                                                      
  1071a3:	83 c4 10             	add    $0x10,%esp                     
  1071a6:	83 f8 00             	cmp    $0x0,%eax                      
  1071a9:	7e 1d                	jle    1071c8 <IMFS_fifo_write+0x44>  
    IMFS_mtime_ctime_update(jnode);                                   
  1071ab:	50                   	push   %eax                           
  1071ac:	50                   	push   %eax                           
  1071ad:	6a 00                	push   $0x0                           
  1071af:	8d 45 f0             	lea    -0x10(%ebp),%eax               
  1071b2:	50                   	push   %eax                           
  1071b3:	e8 cc 0d 00 00       	call   107f84 <gettimeofday>          
  1071b8:	8b 45 f0             	mov    -0x10(%ebp),%eax               
  1071bb:	89 46 44             	mov    %eax,0x44(%esi)                
  1071be:	89 46 48             	mov    %eax,0x48(%esi)                
  1071c1:	83 c4 10             	add    $0x10,%esp                     
  1071c4:	89 d8                	mov    %ebx,%eax                      
  1071c6:	eb 13                	jmp    1071db <IMFS_fifo_write+0x57>  
  }                                                                   
                                                                      
  IMFS_FIFO_RETURN(err);                                              
  1071c8:	b8 00 00 00 00       	mov    $0x0,%eax                      
  1071cd:	74 0c                	je     1071db <IMFS_fifo_write+0x57>  <== NEVER TAKEN
  1071cf:	e8 54 a4 00 00       	call   111628 <__errno>               
  1071d4:	f7 db                	neg    %ebx                           
  1071d6:	89 18                	mov    %ebx,(%eax)                    
  1071d8:	83 c8 ff             	or     $0xffffffff,%eax               
}                                                                     
  1071db:	8d 65 f8             	lea    -0x8(%ebp),%esp                
  1071de:	5b                   	pop    %ebx                           
  1071df:	5e                   	pop    %esi                           
  1071e0:	c9                   	leave                                 
  1071e1:	c3                   	ret                                   
                                                                      

0010d280 <IMFS_find_match_in_dir>: IMFS_jnode_t *IMFS_find_match_in_dir( IMFS_jnode_t *directory, char *name ) {
  10d280:	55                   	push   %ebp                           
  10d281:	89 e5                	mov    %esp,%ebp                      
  10d283:	57                   	push   %edi                           
  10d284:	56                   	push   %esi                           
  10d285:	53                   	push   %ebx                           
  10d286:	83 ec 14             	sub    $0x14,%esp                     
  10d289:	8b 5d 08             	mov    0x8(%ebp),%ebx                 
  10d28c:	8b 7d 0c             	mov    0xc(%ebp),%edi                 
                                                                      
  /*                                                                  
   *  Check for "." and ".."                                          
   */                                                                 
                                                                      
  if ( !strcmp( name, dotname ) )                                     
  10d28f:	68 e4 de 11 00       	push   $0x11dee4                      
  10d294:	57                   	push   %edi                           
  10d295:	e8 b2 37 00 00       	call   110a4c <strcmp>                
  10d29a:	83 c4 10             	add    $0x10,%esp                     
  10d29d:	85 c0                	test   %eax,%eax                      
  10d29f:	74 40                	je     10d2e1 <IMFS_find_match_in_dir+0x61><== NEVER TAKEN
    return directory;                                                 
                                                                      
  if ( !strcmp( name, dotdotname ) )                                  
  10d2a1:	51                   	push   %ecx                           
  10d2a2:	51                   	push   %ecx                           
  10d2a3:	68 e6 de 11 00       	push   $0x11dee6                      
  10d2a8:	57                   	push   %edi                           
  10d2a9:	e8 9e 37 00 00       	call   110a4c <strcmp>                
  10d2ae:	83 c4 10             	add    $0x10,%esp                     
  10d2b1:	85 c0                	test   %eax,%eax                      
  10d2b3:	75 05                	jne    10d2ba <IMFS_find_match_in_dir+0x3a><== ALWAYS TAKEN
    return directory->Parent;                                         
  10d2b5:	8b 5b 08             	mov    0x8(%ebx),%ebx                 <== NOT EXECUTED
  10d2b8:	eb 27                	jmp    10d2e1 <IMFS_find_match_in_dir+0x61><== NOT EXECUTED
    if ( !strcmp( name, the_jnode->name ) )                           
      return the_jnode;                                               
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
  10d2ba:	8b 73 50             	mov    0x50(%ebx),%esi                
RTEMS_INLINE_ROUTINE bool _Chain_Is_tail(                             
  Chain_Control *the_chain,                                           
  const Chain_Node    *the_node                                       
)                                                                     
{                                                                     
  return (the_node == _Chain_Tail(the_chain));                        
  10d2bd:	83 c3 54             	add    $0x54,%ebx                     
  if ( !strcmp( name, dotdotname ) )                                  
    return directory->Parent;                                         
                                                                      
  the_chain = &directory->info.directory.Entries;                     
                                                                      
  for ( the_node = rtems_chain_first( the_chain );                    
  10d2c0:	eb 15                	jmp    10d2d7 <IMFS_find_match_in_dir+0x57>
        !rtems_chain_is_tail( the_chain, the_node );                  
        the_node = the_node->next ) {                                 
                                                                      
    the_jnode = (IMFS_jnode_t *) the_node;                            
                                                                      
    if ( !strcmp( name, the_jnode->name ) )                           
  10d2c2:	8d 46 0c             	lea    0xc(%esi),%eax                 
  10d2c5:	52                   	push   %edx                           
  10d2c6:	52                   	push   %edx                           
  10d2c7:	50                   	push   %eax                           
  10d2c8:	57                   	push   %edi                           
  10d2c9:	e8 7e 37 00 00       	call   110a4c <strcmp>                
  10d2ce:	83 c4 10             	add    $0x10,%esp                     
  10d2d1:	85 c0                	test   %eax,%eax                      
  10d2d3:	74 0a                	je     10d2df <IMFS_find_match_in_dir+0x5f>
                                                                      
  the_chain = &directory->info.directory.Entries;                     
                                                                      
  for ( the_node = rtems_chain_first( the_chain );                    
        !rtems_chain_is_tail( the_chain, the_node );                  
        the_node = the_node->next ) {                                 
  10d2d5:	8b 36                	mov    (%esi),%esi                    
  if ( !strcmp( name, dotdotname ) )                                  
    return directory->Parent;                                         
                                                                      
  the_chain = &directory->info.directory.Entries;                     
                                                                      
  for ( the_node = rtems_chain_first( the_chain );                    
  10d2d7:	39 de                	cmp    %ebx,%esi                      
  10d2d9:	75 e7                	jne    10d2c2 <IMFS_find_match_in_dir+0x42>
                                                                      
    if ( !strcmp( name, the_jnode->name ) )                           
      return the_jnode;                                               
  }                                                                   
                                                                      
  return 0;                                                           
  10d2db:	31 db                	xor    %ebx,%ebx                      
  10d2dd:	eb 02                	jmp    10d2e1 <IMFS_find_match_in_dir+0x61>
                                                                      
  for ( the_node = rtems_chain_first( the_chain );                    
        !rtems_chain_is_tail( the_chain, the_node );                  
        the_node = the_node->next ) {                                 
                                                                      
    the_jnode = (IMFS_jnode_t *) the_node;                            
  10d2df:	89 f3                	mov    %esi,%ebx                      
    if ( !strcmp( name, the_jnode->name ) )                           
      return the_jnode;                                               
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
  10d2e1:	89 d8                	mov    %ebx,%eax                      
  10d2e3:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  10d2e6:	5b                   	pop    %ebx                           
  10d2e7:	5e                   	pop    %esi                           
  10d2e8:	5f                   	pop    %edi                           
  10d2e9:	c9                   	leave                                 
  10d2ea:	c3                   	ret                                   
                                                                      

0010d1fc <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 ) {
  10d1fc:	55                   	push   %ebp                           
  10d1fd:	89 e5                	mov    %esp,%ebp                      
  10d1ff:	57                   	push   %edi                           
  10d200:	56                   	push   %esi                           
  10d201:	53                   	push   %ebx                           
  10d202:	83 ec 2c             	sub    $0x2c,%esp                     
  10d205:	8b 45 08             	mov    0x8(%ebp),%eax                 
   /*                                                                 
    * 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;     
  10d208:	8b 58 1c             	mov    0x1c(%eax),%ebx                
   loc = temp_mt_entry->mt_fs_root;                                   
  10d20b:	8d 7d d4             	lea    -0x2c(%ebp),%edi               
  10d20e:	8d 70 1c             	lea    0x1c(%eax),%esi                
  10d211:	b9 05 00 00 00       	mov    $0x5,%ecx                      
  10d216:	f3 a5                	rep movsl %ds:(%esi),%es:(%edi)       
                                                                      
   /*                                                                 
    *  Set this to null to indicate that it is being unmounted.       
    */                                                                
                                                                      
   temp_mt_entry->mt_fs_root.node_access = NULL;                      
  10d218:	c7 40 1c 00 00 00 00 	movl   $0x0,0x1c(%eax)                
                                                                      
   do {                                                               
     next = jnode->Parent;                                            
     loc.node_access = (void *)jnode;                                 
     IMFS_Set_handlers( &loc );                                       
  10d21f:	8d 75 d4             	lea    -0x2c(%ebp),%esi               
    */                                                                
                                                                      
   temp_mt_entry->mt_fs_root.node_access = NULL;                      
                                                                      
   do {                                                               
     next = jnode->Parent;                                            
  10d222:	8b 7b 08             	mov    0x8(%ebx),%edi                 
     loc.node_access = (void *)jnode;                                 
  10d225:	89 5d d4             	mov    %ebx,-0x2c(%ebp)               
     IMFS_Set_handlers( &loc );                                       
  10d228:	83 ec 0c             	sub    $0xc,%esp                      
  10d22b:	56                   	push   %esi                           
  10d22c:	e8 03 fa ff ff       	call   10cc34 <IMFS_Set_handlers>     
                                                                      
     if ( jnode->type != IMFS_DIRECTORY ) {                           
  10d231:	83 c4 10             	add    $0x10,%esp                     
  10d234:	83 7b 4c 01          	cmpl   $0x1,0x4c(%ebx)                
  10d238:	75 08                	jne    10d242 <IMFS_fsunmount+0x46>   
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_first( the_chain )                          
    == _Chain_Immutable_tail( the_chain );                            
  10d23a:	8d 43 54             	lea    0x54(%ebx),%eax                
        result = IMFS_unlink( NULL, &loc );                           
        if (result != 0)                                              
          return -1;                                                  
        jnode = next;                                                 
     } else if ( jnode_has_no_children( jnode ) ) {                   
  10d23d:	39 43 50             	cmp    %eax,0x50(%ebx)                
  10d240:	75 13                	jne    10d255 <IMFS_fsunmount+0x59>   
        result = IMFS_unlink( NULL, &loc );                           
  10d242:	50                   	push   %eax                           
  10d243:	50                   	push   %eax                           
  10d244:	56                   	push   %esi                           
  10d245:	6a 00                	push   $0x0                           
  10d247:	e8 e8 92 ff ff       	call   106534 <IMFS_unlink>           
        if (result != 0)                                              
  10d24c:	83 c4 10             	add    $0x10,%esp                     
  10d24f:	85 c0                	test   %eax,%eax                      
  10d251:	75 1e                	jne    10d271 <IMFS_fsunmount+0x75>   <== NEVER TAKEN
          return -1;                                                  
        jnode = next;                                                 
  10d253:	89 fb                	mov    %edi,%ebx                      
     }                                                                
     if ( jnode != NULL ) {                                           
  10d255:	85 db                	test   %ebx,%ebx                      
  10d257:	74 1d                	je     10d276 <IMFS_fsunmount+0x7a>   
       if ( jnode->type == IMFS_DIRECTORY ) {                         
  10d259:	83 7b 4c 01          	cmpl   $0x1,0x4c(%ebx)                
  10d25d:	75 c3                	jne    10d222 <IMFS_fsunmount+0x26>   <== NEVER TAKEN
       }                                                              
     }                                                                
   } while (jnode != NULL);                                           
                                                                      
   return 0;                                                          
}                                                                     
  10d25f:	8b 43 50             	mov    0x50(%ebx),%eax                
  10d262:	8d 53 54             	lea    0x54(%ebx),%edx                
          return -1;                                                  
        jnode = next;                                                 
     }                                                                
     if ( jnode != NULL ) {                                           
       if ( jnode->type == IMFS_DIRECTORY ) {                         
         if ( jnode_has_children( jnode ) )                           
  10d265:	39 d0                	cmp    %edx,%eax                      
  10d267:	74 b9                	je     10d222 <IMFS_fsunmount+0x26>   
           jnode = jnode_get_first_child( jnode );                    
  10d269:	89 c3                	mov    %eax,%ebx                      
       }                                                              
     }                                                                
   } while (jnode != NULL);                                           
  10d26b:	85 c0                	test   %eax,%eax                      
  10d26d:	75 b3                	jne    10d222 <IMFS_fsunmount+0x26>   <== ALWAYS TAKEN
  10d26f:	eb 05                	jmp    10d276 <IMFS_fsunmount+0x7a>   <== NOT EXECUTED
          return -1;                                                  
        jnode = next;                                                 
     } else if ( jnode_has_no_children( jnode ) ) {                   
        result = IMFS_unlink( NULL, &loc );                           
        if (result != 0)                                              
          return -1;                                                  
  10d271:	83 c8 ff             	or     $0xffffffff,%eax               <== NOT EXECUTED
  10d274:	eb 02                	jmp    10d278 <IMFS_fsunmount+0x7c>   <== NOT EXECUTED
           jnode = jnode_get_first_child( jnode );                    
       }                                                              
     }                                                                
   } while (jnode != NULL);                                           
                                                                      
   return 0;                                                          
  10d276:	31 c0                	xor    %eax,%eax                      
}                                                                     
  10d278:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  10d27b:	5b                   	pop    %ebx                           
  10d27c:	5e                   	pop    %esi                           
  10d27d:	5f                   	pop    %edi                           
  10d27e:	c9                   	leave                                 
  10d27f:	c3                   	ret                                   
                                                                      

0010d2ec <IMFS_get_token>: const char *path, int pathlen, char *token, int *token_len ) {
  10d2ec:	55                   	push   %ebp                           
  10d2ed:	89 e5                	mov    %esp,%ebp                      
  10d2ef:	57                   	push   %edi                           
  10d2f0:	56                   	push   %esi                           
  10d2f1:	53                   	push   %ebx                           
  10d2f2:	83 ec 1c             	sub    $0x1c,%esp                     
  10d2f5:	8b 7d 08             	mov    0x8(%ebp),%edi                 
  10d2f8:	8b 75 10             	mov    0x10(%ebp),%esi                
  register char c;                                                    
                                                                      
  /*                                                                  
   *  Copy a name into token.  (Remember NULL is a token.)            
   */                                                                 
  c = path[i];                                                        
  10d2fb:	8a 17                	mov    (%edi),%dl                     
  int               pathlen,                                          
  char             *token,                                            
  int              *token_len                                         
)                                                                     
{                                                                     
  register int i = 0;                                                 
  10d2fd:	31 db                	xor    %ebx,%ebx                      
                                                                      
  /*                                                                  
   *  Copy a name into token.  (Remember NULL is a token.)            
   */                                                                 
  c = path[i];                                                        
  while ( (!IMFS_is_separator(c)) && (i < pathlen) && (i <= IMFS_NAME_MAX) ) {
  10d2ff:	eb 10                	jmp    10d311 <IMFS_get_token+0x25>   
                                                                      
     token[i] = c;                                                    
  10d301:	88 14 1e             	mov    %dl,(%esi,%ebx,1)              
                                                                      
     if ( i == IMFS_NAME_MAX )                                        
  10d304:	83 fb 20             	cmp    $0x20,%ebx                     
  10d307:	0f 84 86 00 00 00    	je     10d393 <IMFS_get_token+0xa7>   
       return IMFS_INVALID_TOKEN;                                     
                                                                      
     if ( !IMFS_is_valid_name_char(c) )                               
       type = IMFS_INVALID_TOKEN;                                     
                                                                      
     c = path [++i];                                                  
  10d30d:	43                   	inc    %ebx                           
  10d30e:	8a 14 1f             	mov    (%edi,%ebx,1),%dl              
                                                                      
  /*                                                                  
   *  Copy a name into token.  (Remember NULL is a token.)            
   */                                                                 
  c = path[i];                                                        
  while ( (!IMFS_is_separator(c)) && (i < pathlen) && (i <= IMFS_NAME_MAX) ) {
  10d311:	83 ec 0c             	sub    $0xc,%esp                      
  10d314:	0f be c2             	movsbl %dl,%eax                       
  10d317:	50                   	push   %eax                           
  10d318:	88 55 e4             	mov    %dl,-0x1c(%ebp)                
  10d31b:	e8 54 a3 ff ff       	call   107674 <rtems_filesystem_is_separator>
  10d320:	83 c4 10             	add    $0x10,%esp                     
  10d323:	85 c0                	test   %eax,%eax                      
  10d325:	8a 55 e4             	mov    -0x1c(%ebp),%dl                
  10d328:	75 05                	jne    10d32f <IMFS_get_token+0x43>   
  10d32a:	3b 5d 0c             	cmp    0xc(%ebp),%ebx                 
  10d32d:	7c d2                	jl     10d301 <IMFS_get_token+0x15>   
                                                                      
  /*                                                                  
   *  Copy a seperator into token.                                    
   */                                                                 
                                                                      
  if ( i == 0 ) {                                                     
  10d32f:	85 db                	test   %ebx,%ebx                      
  10d331:	75 10                	jne    10d343 <IMFS_get_token+0x57>   
    token[i] = c;                                                     
  10d333:	88 16                	mov    %dl,(%esi)                     
                                                                      
    if ( (token[i] != '\0') && pathlen ) {                            
  10d335:	84 d2                	test   %dl,%dl                        
  10d337:	74 06                	je     10d33f <IMFS_get_token+0x53>   
  10d339:	83 7d 0c 00          	cmpl   $0x0,0xc(%ebp)                 
  10d33d:	75 16                	jne    10d355 <IMFS_get_token+0x69>   
      i++;                                                            
      type = IMFS_CURRENT_DIR;                                        
    } else {                                                          
      type = IMFS_NO_MORE_PATH;                                       
  10d33f:	31 ff                	xor    %edi,%edi                      
  10d341:	eb 1c                	jmp    10d35f <IMFS_get_token+0x73>   
  char             *token,                                            
  int              *token_len                                         
)                                                                     
{                                                                     
  register int i = 0;                                                 
  IMFS_token_types  type = IMFS_NAME;                                 
  10d343:	bf 03 00 00 00       	mov    $0x3,%edi                      
      i++;                                                            
      type = IMFS_CURRENT_DIR;                                        
    } else {                                                          
      type = IMFS_NO_MORE_PATH;                                       
    }                                                                 
  } else if (token[ i-1 ] != '\0') {                                  
  10d348:	80 7c 1e ff 00       	cmpb   $0x0,-0x1(%esi,%ebx,1)         
  10d34d:	74 10                	je     10d35f <IMFS_get_token+0x73>   <== NEVER TAKEN
    token[i] = '\0';                                                  
  10d34f:	c6 04 1e 00          	movb   $0x0,(%esi,%ebx,1)             
  10d353:	eb 0a                	jmp    10d35f <IMFS_get_token+0x73>   
  if ( i == 0 ) {                                                     
    token[i] = c;                                                     
                                                                      
    if ( (token[i] != '\0') && pathlen ) {                            
      i++;                                                            
      type = IMFS_CURRENT_DIR;                                        
  10d355:	bf 01 00 00 00       	mov    $0x1,%edi                      
                                                                      
  if ( i == 0 ) {                                                     
    token[i] = c;                                                     
                                                                      
    if ( (token[i] != '\0') && pathlen ) {                            
      i++;                                                            
  10d35a:	bb 01 00 00 00       	mov    $0x1,%ebx                      
                                                                      
  /*                                                                  
   *  Set token_len to the number of characters copied.               
   */                                                                 
                                                                      
  *token_len = i;                                                     
  10d35f:	8b 45 14             	mov    0x14(%ebp),%eax                
  10d362:	89 18                	mov    %ebx,(%eax)                    
  /*                                                                  
   *  If we copied something that was not a seperator see if          
   *  it was a special name.                                          
   */                                                                 
                                                                      
  if ( type == IMFS_NAME ) {                                          
  10d364:	83 ff 03             	cmp    $0x3,%edi                      
  10d367:	75 3d                	jne    10d3a6 <IMFS_get_token+0xba>   
    if ( strcmp( token, "..") == 0 )                                  
  10d369:	52                   	push   %edx                           
  10d36a:	52                   	push   %edx                           
  10d36b:	68 e9 de 11 00       	push   $0x11dee9                      
  10d370:	56                   	push   %esi                           
  10d371:	e8 d6 36 00 00       	call   110a4c <strcmp>                
  10d376:	83 c4 10             	add    $0x10,%esp                     
  10d379:	85 c0                	test   %eax,%eax                      
  10d37b:	74 1d                	je     10d39a <IMFS_get_token+0xae>   
      type = IMFS_UP_DIR;                                             
    else if ( strcmp( token, "." ) == 0 )                             
  10d37d:	50                   	push   %eax                           
  10d37e:	50                   	push   %eax                           
  10d37f:	68 ea de 11 00       	push   $0x11deea                      
  10d384:	56                   	push   %esi                           
  10d385:	e8 c2 36 00 00       	call   110a4c <strcmp>                
  10d38a:	83 c4 10             	add    $0x10,%esp                     
  10d38d:	85 c0                	test   %eax,%eax                      
  10d38f:	74 10                	je     10d3a1 <IMFS_get_token+0xb5>   
  10d391:	eb 13                	jmp    10d3a6 <IMFS_get_token+0xba>   
  while ( (!IMFS_is_separator(c)) && (i < pathlen) && (i <= IMFS_NAME_MAX) ) {
                                                                      
     token[i] = c;                                                    
                                                                      
     if ( i == IMFS_NAME_MAX )                                        
       return IMFS_INVALID_TOKEN;                                     
  10d393:	bf 04 00 00 00       	mov    $0x4,%edi                      
  10d398:	eb 0c                	jmp    10d3a6 <IMFS_get_token+0xba>   
   *  it was a special name.                                          
   */                                                                 
                                                                      
  if ( type == IMFS_NAME ) {                                          
    if ( strcmp( token, "..") == 0 )                                  
      type = IMFS_UP_DIR;                                             
  10d39a:	bf 02 00 00 00       	mov    $0x2,%edi                      
  10d39f:	eb 05                	jmp    10d3a6 <IMFS_get_token+0xba>   
    else if ( strcmp( token, "." ) == 0 )                             
      type = IMFS_CURRENT_DIR;                                        
  10d3a1:	bf 01 00 00 00       	mov    $0x1,%edi                      
  }                                                                   
                                                                      
  return type;                                                        
}                                                                     
  10d3a6:	89 f8                	mov    %edi,%eax                      
  10d3a8:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  10d3ab:	5b                   	pop    %ebx                           
  10d3ac:	5e                   	pop    %esi                           
  10d3ad:	5f                   	pop    %edi                           
  10d3ae:	c9                   	leave                                 
  10d3af:	c3                   	ret                                   
                                                                      

001061cc <IMFS_initialize_support>: const rtems_filesystem_operations_table *op_table, const rtems_filesystem_file_handlers_r *memfile_handlers, const rtems_filesystem_file_handlers_r *directory_handlers, const rtems_filesystem_file_handlers_r *fifo_handlers ) {
  1061cc:	55                   	push   %ebp                           
  1061cd:	89 e5                	mov    %esp,%ebp                      
  1061cf:	57                   	push   %edi                           
  1061d0:	56                   	push   %esi                           
  1061d1:	53                   	push   %ebx                           
  1061d2:	83 ec 1c             	sub    $0x1c,%esp                     
  1061d5:	8b 5d 08             	mov    0x8(%ebp),%ebx                 
  IMFS_jnode_t                          *jnode;                       
                                                                      
  /*                                                                  
   * determine/check value for imfs_memfile_bytes_per_block           
   */                                                                 
  IMFS_determine_bytes_per_block(&imfs_memfile_bytes_per_block,       
  1061d8:	a1 48 f1 11 00       	mov    0x11f148,%eax                  
  1061dd:	b9 06 00 00 00       	mov    $0x6,%ecx                      
  int bit_mask;                                                       
                                                                      
  /*                                                                  
   * check, whether requested bytes per block is valid                
   */                                                                 
  for (bit_mask = 16; !is_valid && (bit_mask <= 512); bit_mask <<= 1) {
  1061e2:	ba 10 00 00 00       	mov    $0x10,%edx                     
    if (bit_mask == requested_bytes_per_block) {                      
  1061e7:	39 c2                	cmp    %eax,%edx                      
  1061e9:	74 0c                	je     1061f7 <IMFS_initialize_support+0x2b>
      is_valid = true;                                                
      break;                                                          
    }                                                                 
    if(bit_mask > requested_bytes_per_block)                          
  1061eb:	7f 05                	jg     1061f2 <IMFS_initialize_support+0x26>
  int bit_mask;                                                       
                                                                      
  /*                                                                  
   * check, whether requested bytes per block is valid                
   */                                                                 
  for (bit_mask = 16; !is_valid && (bit_mask <= 512); bit_mask <<= 1) {
  1061ed:	d1 e2                	shl    %edx                           
  1061ef:	49                   	dec    %ecx                           
  1061f0:	75 f5                	jne    1061e7 <IMFS_initialize_support+0x1b><== ALWAYS TAKEN
    if(bit_mask > requested_bytes_per_block)                          
      break;                                                          
  }                                                                   
  *dest_bytes_per_block = ((is_valid)                                 
			   ? requested_bytes_per_block                                     
			   : default_bytes_per_block);                                     
  1061f2:	b8 80 00 00 00       	mov    $0x80,%eax                     
      break;                                                          
    }                                                                 
    if(bit_mask > requested_bytes_per_block)                          
      break;                                                          
  }                                                                   
  *dest_bytes_per_block = ((is_valid)                                 
  1061f7:	a3 f0 2d 12 00       	mov    %eax,0x122df0                  
  /*                                                                  
   *  Create the root node                                            
   *                                                                  
   *  NOTE: UNIX root is 755 and owned by root/root (0/0).            
   */                                                                 
  temp_mt_entry->mt_fs_root.node_access      = IMFS_create_root_node();
  1061fc:	e8 00 6a 00 00       	call   10cc01 <IMFS_create_root_node> 
  106201:	89 c2                	mov    %eax,%edx                      
  106203:	89 43 1c             	mov    %eax,0x1c(%ebx)                
  temp_mt_entry->mt_fs_root.handlers         = directory_handlers;    
  106206:	8b 45 14             	mov    0x14(%ebp),%eax                
  106209:	89 43 24             	mov    %eax,0x24(%ebx)                
  temp_mt_entry->mt_fs_root.ops              = op_table;              
  10620c:	8b 45 0c             	mov    0xc(%ebp),%eax                 
  10620f:	89 43 28             	mov    %eax,0x28(%ebx)                
  temp_mt_entry->pathconf_limits_and_options = IMFS_LIMITS_AND_OPTIONS;
  106212:	8d 7b 38             	lea    0x38(%ebx),%edi                
  106215:	be 98 de 11 00       	mov    $0x11de98,%esi                 
  10621a:	b9 0c 00 00 00       	mov    $0xc,%ecx                      
  10621f:	f3 a5                	rep movsl %ds:(%esi),%es:(%edi)       
                                                                      
  /*                                                                  
   * Create custom file system data.                                  
   */                                                                 
  fs_info = calloc( 1, sizeof( IMFS_fs_info_t ) );                    
  106221:	50                   	push   %eax                           
  106222:	50                   	push   %eax                           
  106223:	6a 14                	push   $0x14                          
  106225:	6a 01                	push   $0x1                           
  106227:	89 55 e4             	mov    %edx,-0x1c(%ebp)               
  10622a:	e8 fd 05 00 00       	call   10682c <calloc>                
  if ( !fs_info ) {                                                   
  10622f:	83 c4 10             	add    $0x10,%esp                     
  106232:	85 c0                	test   %eax,%eax                      
  106234:	8b 55 e4             	mov    -0x1c(%ebp),%edx               
  106237:	75 1c                	jne    106255 <IMFS_initialize_support+0x89>
    free(temp_mt_entry->mt_fs_root.node_access);                      
  106239:	83 ec 0c             	sub    $0xc,%esp                      
  10623c:	52                   	push   %edx                           
  10623d:	e8 56 07 00 00       	call   106998 <free>                  
    rtems_set_errno_and_return_minus_one(ENOMEM);                     
  106242:	e8 39 9b 00 00       	call   10fd80 <__errno>               
  106247:	c7 00 0c 00 00 00    	movl   $0xc,(%eax)                    
  10624d:	83 c4 10             	add    $0x10,%esp                     
  106250:	83 c8 ff             	or     $0xffffffff,%eax               
  106253:	eb 34                	jmp    106289 <IMFS_initialize_support+0xbd>
  }                                                                   
  temp_mt_entry->fs_info = fs_info;                                   
  106255:	89 43 34             	mov    %eax,0x34(%ebx)                
                                                                      
  /*                                                                  
   * Set st_ino for the root to 1.                                    
   */                                                                 
                                                                      
  fs_info->instance              = imfs_instance++;                   
  106258:	8b 0d f4 2d 12 00    	mov    0x122df4,%ecx                  
  10625e:	89 08                	mov    %ecx,(%eax)                    
  106260:	41                   	inc    %ecx                           
  106261:	89 0d f4 2d 12 00    	mov    %ecx,0x122df4                  
  fs_info->ino_count             = 1;                                 
  106267:	c7 40 04 01 00 00 00 	movl   $0x1,0x4(%eax)                 
  fs_info->memfile_handlers      = memfile_handlers;                  
  10626e:	8b 4d 10             	mov    0x10(%ebp),%ecx                
  106271:	89 48 08             	mov    %ecx,0x8(%eax)                 
  fs_info->directory_handlers    = directory_handlers;                
  106274:	8b 4d 14             	mov    0x14(%ebp),%ecx                
  106277:	89 48 0c             	mov    %ecx,0xc(%eax)                 
  fs_info->fifo_handlers         = fifo_handlers;                     
  10627a:	8b 4d 18             	mov    0x18(%ebp),%ecx                
  10627d:	89 48 10             	mov    %ecx,0x10(%eax)                
                                                                      
  jnode = temp_mt_entry->mt_fs_root.node_access;                      
  jnode->st_ino = fs_info->ino_count;                                 
  106280:	c7 42 38 01 00 00 00 	movl   $0x1,0x38(%edx)                
                                                                      
  return 0;                                                           
  106287:	31 c0                	xor    %eax,%eax                      
}                                                                     
  106289:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  10628c:	5b                   	pop    %ebx                           
  10628d:	5e                   	pop    %esi                           
  10628e:	5f                   	pop    %edi                           
  10628f:	c9                   	leave                                 
  106290:	c3                   	ret                                   
                                                                      

0010f062 <IMFS_memfile_extend>: */ MEMFILE_STATIC int IMFS_memfile_extend( IMFS_jnode_t *the_jnode, off_t new_length ) {
  10f062:	55                   	push   %ebp                           
  10f063:	89 e5                	mov    %esp,%ebp                      
  10f065:	57                   	push   %edi                           
  10f066:	56                   	push   %esi                           
  10f067:	53                   	push   %ebx                           
  10f068:	83 ec 2c             	sub    $0x2c,%esp                     
  10f06b:	8b 7d 08             	mov    0x8(%ebp),%edi                 
  10f06e:	8b 5d 0c             	mov    0xc(%ebp),%ebx                 
  10f071:	8b 75 10             	mov    0x10(%ebp),%esi                
    IMFS_assert( the_jnode->type == IMFS_MEMORY_FILE );               
                                                                      
  /*                                                                  
   *  Verify new file size is supported                               
   */                                                                 
  if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE )                      
  10f074:	a1 f0 2d 12 00       	mov    0x122df0,%eax                  
  10f079:	89 c1                	mov    %eax,%ecx                      
  10f07b:	c1 e9 02             	shr    $0x2,%ecx                      
  10f07e:	8d 51 01             	lea    0x1(%ecx),%edx                 
  10f081:	0f af d1             	imul   %ecx,%edx                      
  10f084:	42                   	inc    %edx                           
  10f085:	0f af d1             	imul   %ecx,%edx                      
  10f088:	4a                   	dec    %edx                           
  10f089:	0f af d0             	imul   %eax,%edx                      
  10f08c:	83 fe 00             	cmp    $0x0,%esi                      
  10f08f:	7c 16                	jl     10f0a7 <IMFS_memfile_extend+0x45><== NEVER TAKEN
  10f091:	7f 04                	jg     10f097 <IMFS_memfile_extend+0x35><== NEVER TAKEN
  10f093:	39 d3                	cmp    %edx,%ebx                      
  10f095:	72 10                	jb     10f0a7 <IMFS_memfile_extend+0x45>
    rtems_set_errno_and_return_minus_one( EINVAL );                   
  10f097:	e8 e4 0c 00 00       	call   10fd80 <__errno>               
  10f09c:	c7 00 16 00 00 00    	movl   $0x16,(%eax)                   
  10f0a2:	e9 92 00 00 00       	jmp    10f139 <IMFS_memfile_extend+0xd7>
                                                                      
  /*                                                                  
   *  Verify new file size is actually larger than current size       
   */                                                                 
  if ( new_length <= the_jnode->info.file.size )                      
  10f0a7:	8b 57 50             	mov    0x50(%edi),%edx                
  10f0aa:	8b 4f 54             	mov    0x54(%edi),%ecx                
  10f0ad:	89 55 e0             	mov    %edx,-0x20(%ebp)               
  10f0b0:	89 4d e4             	mov    %ecx,-0x1c(%ebp)               
  10f0b3:	39 ce                	cmp    %ecx,%esi                      
  10f0b5:	0f 8c 8f 00 00 00    	jl     10f14a <IMFS_memfile_extend+0xe8><== NEVER TAKEN
  10f0bb:	7f 08                	jg     10f0c5 <IMFS_memfile_extend+0x63><== NEVER TAKEN
  10f0bd:	39 d3                	cmp    %edx,%ebx                      
  10f0bf:	0f 86 85 00 00 00    	jbe    10f14a <IMFS_memfile_extend+0xe8>
    return 0;                                                         
                                                                      
  /*                                                                  
   *  Calculate the number of range of blocks to allocate             
   */                                                                 
  new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK;             
  10f0c5:	89 45 d8             	mov    %eax,-0x28(%ebp)               
  10f0c8:	89 c1                	mov    %eax,%ecx                      
  10f0ca:	c1 f9 1f             	sar    $0x1f,%ecx                     
  10f0cd:	89 4d dc             	mov    %ecx,-0x24(%ebp)               
  10f0d0:	ff 75 dc             	pushl  -0x24(%ebp)                    
  10f0d3:	ff 75 d8             	pushl  -0x28(%ebp)                    
  10f0d6:	56                   	push   %esi                           
  10f0d7:	53                   	push   %ebx                           
  10f0d8:	e8 33 c5 00 00       	call   11b610 <__divdi3>              
  10f0dd:	83 c4 10             	add    $0x10,%esp                     
  10f0e0:	89 45 d4             	mov    %eax,-0x2c(%ebp)               
  old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK;
  10f0e3:	ff 75 dc             	pushl  -0x24(%ebp)                    
  10f0e6:	ff 75 d8             	pushl  -0x28(%ebp)                    
  10f0e9:	ff 75 e4             	pushl  -0x1c(%ebp)                    
  10f0ec:	ff 75 e0             	pushl  -0x20(%ebp)                    
  10f0ef:	e8 1c c5 00 00       	call   11b610 <__divdi3>              
  10f0f4:	83 c4 10             	add    $0x10,%esp                     
  10f0f7:	89 45 e0             	mov    %eax,-0x20(%ebp)               
                                                                      
  /*                                                                  
   *  Now allocate each of those blocks.                              
   */                                                                 
  for ( block=old_blocks ; block<=new_blocks ; block++ ) {            
  10f0fa:	89 c2                	mov    %eax,%edx                      
  10f0fc:	eb 41                	jmp    10f13f <IMFS_memfile_extend+0xdd>
    if ( IMFS_memfile_addblock( the_jnode, block ) ) {                
  10f0fe:	51                   	push   %ecx                           
  10f0ff:	51                   	push   %ecx                           
  10f100:	52                   	push   %edx                           
  10f101:	57                   	push   %edi                           
  10f102:	89 55 d0             	mov    %edx,-0x30(%ebp)               
  10f105:	e8 99 fd ff ff       	call   10eea3 <IMFS_memfile_addblock> 
  10f10a:	83 c4 10             	add    $0x10,%esp                     
  10f10d:	85 c0                	test   %eax,%eax                      
  10f10f:	8b 55 d0             	mov    -0x30(%ebp),%edx               
  10f112:	74 2a                	je     10f13e <IMFS_memfile_extend+0xdc>
  10f114:	eb 13                	jmp    10f129 <IMFS_memfile_extend+0xc7>
       for ( ; block>=old_blocks ; block-- ) {                        
         IMFS_memfile_remove_block( the_jnode, block );               
  10f116:	50                   	push   %eax                           
  10f117:	50                   	push   %eax                           
  10f118:	52                   	push   %edx                           
  10f119:	57                   	push   %edi                           
  10f11a:	89 55 d0             	mov    %edx,-0x30(%ebp)               
  10f11d:	e8 16 ff ff ff       	call   10f038 <IMFS_memfile_remove_block>
  /*                                                                  
   *  Now allocate each of those blocks.                              
   */                                                                 
  for ( block=old_blocks ; block<=new_blocks ; block++ ) {            
    if ( IMFS_memfile_addblock( the_jnode, block ) ) {                
       for ( ; block>=old_blocks ; block-- ) {                        
  10f122:	8b 55 d0             	mov    -0x30(%ebp),%edx               
  10f125:	4a                   	dec    %edx                           
  10f126:	83 c4 10             	add    $0x10,%esp                     
  10f129:	3b 55 e0             	cmp    -0x20(%ebp),%edx               
  10f12c:	73 e8                	jae    10f116 <IMFS_memfile_extend+0xb4>
         IMFS_memfile_remove_block( the_jnode, block );               
       }                                                              
       rtems_set_errno_and_return_minus_one( ENOSPC );                
  10f12e:	e8 4d 0c 00 00       	call   10fd80 <__errno>               
  10f133:	c7 00 1c 00 00 00    	movl   $0x1c,(%eax)                   
  10f139:	83 c8 ff             	or     $0xffffffff,%eax               
  10f13c:	eb 0e                	jmp    10f14c <IMFS_memfile_extend+0xea>
  old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK;
                                                                      
  /*                                                                  
   *  Now allocate each of those blocks.                              
   */                                                                 
  for ( block=old_blocks ; block<=new_blocks ; block++ ) {            
  10f13e:	42                   	inc    %edx                           
  10f13f:	3b 55 d4             	cmp    -0x2c(%ebp),%edx               
  10f142:	76 ba                	jbe    10f0fe <IMFS_memfile_extend+0x9c>
  }                                                                   
                                                                      
  /*                                                                  
   *  Set the new length of the file.                                 
   */                                                                 
  the_jnode->info.file.size = new_length;                             
  10f144:	89 5f 50             	mov    %ebx,0x50(%edi)                
  10f147:	89 77 54             	mov    %esi,0x54(%edi)                
                                                                      
  /*                                                                  
   *  Verify new file size is actually larger than current size       
   */                                                                 
  if ( new_length <= the_jnode->info.file.size )                      
    return 0;                                                         
  10f14a:	31 c0                	xor    %eax,%eax                      
  /*                                                                  
   *  Set the new length of the file.                                 
   */                                                                 
  the_jnode->info.file.size = new_length;                             
  return 0;                                                           
}                                                                     
  10f14c:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  10f14f:	5b                   	pop    %ebx                           
  10f150:	5e                   	pop    %esi                           
  10f151:	5f                   	pop    %edi                           
  10f152:	c9                   	leave                                 
  10f153:	c3                   	ret                                   
                                                                      

0010eba8 <IMFS_memfile_get_block_pointer>: #endif IMFS_jnode_t *the_jnode, unsigned int block, int malloc_it ) {
  10eba8:	55                   	push   %ebp                           
  10eba9:	89 e5                	mov    %esp,%ebp                      
  10ebab:	57                   	push   %edi                           
  10ebac:	56                   	push   %esi                           
  10ebad:	53                   	push   %ebx                           
  10ebae:	83 ec 1c             	sub    $0x1c,%esp                     
  10ebb1:	8b 75 08             	mov    0x8(%ebp),%esi                 
  10ebb4:	8b 7d 0c             	mov    0xc(%ebp),%edi                 
  my_block = block;                                                   
                                                                      
  /*                                                                  
   *  Is the block number in the simple indirect portion?             
   */                                                                 
  if ( my_block <= LAST_INDIRECT ) {                                  
  10ebb7:	8b 0d f0 2d 12 00    	mov    0x122df0,%ecx                  
  10ebbd:	c1 e9 02             	shr    $0x2,%ecx                      
  10ebc0:	8d 41 ff             	lea    -0x1(%ecx),%eax                
  10ebc3:	39 c7                	cmp    %eax,%edi                      
  10ebc5:	77 40                	ja     10ec07 <IMFS_memfile_get_block_pointer+0x5f>
    p = info->indirect;                                               
  10ebc7:	8b 46 58             	mov    0x58(%esi),%eax                
                                                                      
    if ( malloc_it ) {                                                
  10ebca:	83 7d 10 00          	cmpl   $0x0,0x10(%ebp)                
  10ebce:	74 25                	je     10ebf5 <IMFS_memfile_get_block_pointer+0x4d>
                                                                      
      if ( !p ) {                                                     
  10ebd0:	85 c0                	test   %eax,%eax                      
  10ebd2:	75 12                	jne    10ebe6 <IMFS_memfile_get_block_pointer+0x3e>
        p = memfile_alloc_block();                                    
  10ebd4:	e8 ad ff ff ff       	call   10eb86 <memfile_alloc_block>   
        if ( !p )                                                     
           return 0;                                                  
  10ebd9:	31 db                	xor    %ebx,%ebx                      
                                                                      
    if ( malloc_it ) {                                                
                                                                      
      if ( !p ) {                                                     
        p = memfile_alloc_block();                                    
        if ( !p )                                                     
  10ebdb:	85 c0                	test   %eax,%eax                      
  10ebdd:	0f 84 f7 00 00 00    	je     10ecda <IMFS_memfile_get_block_pointer+0x132><== NEVER TAKEN
           return 0;                                                  
        info->indirect = p;                                           
  10ebe3:	89 46 58             	mov    %eax,0x58(%esi)                
      }                                                               
      return &info->indirect[ my_block ];                             
  10ebe6:	8d 1c bd 00 00 00 00 	lea    0x0(,%edi,4),%ebx              
  10ebed:	03 5e 58             	add    0x58(%esi),%ebx                
  10ebf0:	e9 e5 00 00 00       	jmp    10ecda <IMFS_memfile_get_block_pointer+0x132>
    }                                                                 
                                                                      
    if ( !p )                                                         
      return 0;                                                       
  10ebf5:	31 db                	xor    %ebx,%ebx                      
        info->indirect = p;                                           
      }                                                               
      return &info->indirect[ my_block ];                             
    }                                                                 
                                                                      
    if ( !p )                                                         
  10ebf7:	85 c0                	test   %eax,%eax                      
  10ebf9:	0f 84 db 00 00 00    	je     10ecda <IMFS_memfile_get_block_pointer+0x132><== NEVER TAKEN
      return 0;                                                       
                                                                      
    return &info->indirect[ my_block ];                               
  10ebff:	8d 1c b8             	lea    (%eax,%edi,4),%ebx             
  10ec02:	e9 d3 00 00 00       	jmp    10ecda <IMFS_memfile_get_block_pointer+0x132>
                                                                      
  /*                                                                  
   *  Is the block number in the doubly indirect portion?             
   */                                                                 
                                                                      
  if ( my_block <= LAST_DOUBLY_INDIRECT ) {                           
  10ec07:	8d 41 01             	lea    0x1(%ecx),%eax                 
  10ec0a:	0f af c1             	imul   %ecx,%eax                      
  10ec0d:	8d 50 ff             	lea    -0x1(%eax),%edx                
  10ec10:	39 d7                	cmp    %edx,%edi                      
  10ec12:	77 40                	ja     10ec54 <IMFS_memfile_get_block_pointer+0xac>
    my_block -= FIRST_DOUBLY_INDIRECT;                                
  10ec14:	29 cf                	sub    %ecx,%edi                      
                                                                      
    singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;                     
  10ec16:	89 f8                	mov    %edi,%eax                      
  10ec18:	31 d2                	xor    %edx,%edx                      
  10ec1a:	f7 f1                	div    %ecx                           
  10ec1c:	89 55 e4             	mov    %edx,-0x1c(%ebp)               
  10ec1f:	89 c7                	mov    %eax,%edi                      
    doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;                     
                                                                      
    p = info->doubly_indirect;                                        
  10ec21:	8b 46 5c             	mov    0x5c(%esi),%eax                
    if ( malloc_it ) {                                                
  10ec24:	83 7d 10 00          	cmpl   $0x0,0x10(%ebp)                
  10ec28:	74 1b                	je     10ec45 <IMFS_memfile_get_block_pointer+0x9d>
                                                                      
      if ( !p ) {                                                     
  10ec2a:	85 c0                	test   %eax,%eax                      
  10ec2c:	75 12                	jne    10ec40 <IMFS_memfile_get_block_pointer+0x98>
        p = memfile_alloc_block();                                    
  10ec2e:	e8 53 ff ff ff       	call   10eb86 <memfile_alloc_block>   
        if ( !p )                                                     
           return 0;                                                  
  10ec33:	31 db                	xor    %ebx,%ebx                      
    p = info->doubly_indirect;                                        
    if ( malloc_it ) {                                                
                                                                      
      if ( !p ) {                                                     
        p = memfile_alloc_block();                                    
        if ( !p )                                                     
  10ec35:	85 c0                	test   %eax,%eax                      
  10ec37:	0f 84 9d 00 00 00    	je     10ecda <IMFS_memfile_get_block_pointer+0x132><== NEVER TAKEN
           return 0;                                                  
        info->doubly_indirect = p;                                    
  10ec3d:	89 46 5c             	mov    %eax,0x5c(%esi)                
      }                                                               
                                                                      
      p1 = (block_p *)p[ doubly ];                                    
  10ec40:	8d 34 b8             	lea    (%eax,%edi,4),%esi             
  10ec43:	eb 65                	jmp    10ecaa <IMFS_memfile_get_block_pointer+0x102>
                                                                      
      return (block_p *)&p1[ singly ];                                
    }                                                                 
                                                                      
    if ( !p )                                                         
      return 0;                                                       
  10ec45:	31 db                	xor    %ebx,%ebx                      
      }                                                               
                                                                      
      return (block_p *)&p1[ singly ];                                
    }                                                                 
                                                                      
    if ( !p )                                                         
  10ec47:	85 c0                	test   %eax,%eax                      
  10ec49:	0f 84 8b 00 00 00    	je     10ecda <IMFS_memfile_get_block_pointer+0x132><== NEVER TAKEN
      return 0;                                                       
                                                                      
    p = (block_p *)p[ doubly ];                                       
  10ec4f:	8b 04 b8             	mov    (%eax,%edi,4),%eax             
  10ec52:	eb 7c                	jmp    10ecd0 <IMFS_memfile_get_block_pointer+0x128>
  }                                                                   
                                                                      
  /*                                                                  
   *  Is the block number in the triply indirect portion?             
   */                                                                 
  if ( my_block <= LAST_TRIPLY_INDIRECT ) {                           
  10ec54:	8d 50 01             	lea    0x1(%eax),%edx                 
  10ec57:	0f af d1             	imul   %ecx,%edx                      
  10ec5a:	4a                   	dec    %edx                           
  }                                                                   
                                                                      
  /*                                                                  
   *  This means the requested block number is out of range.          
   */                                                                 
  return 0;                                                           
  10ec5b:	31 db                	xor    %ebx,%ebx                      
  }                                                                   
                                                                      
  /*                                                                  
   *  Is the block number in the triply indirect portion?             
   */                                                                 
  if ( my_block <= LAST_TRIPLY_INDIRECT ) {                           
  10ec5d:	39 d7                	cmp    %edx,%edi                      
  10ec5f:	77 79                	ja     10ecda <IMFS_memfile_get_block_pointer+0x132><== NEVER TAKEN
    my_block -= FIRST_TRIPLY_INDIRECT;                                
  10ec61:	29 c7                	sub    %eax,%edi                      
  10ec63:	89 f8                	mov    %edi,%eax                      
                                                                      
    singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;                     
  10ec65:	31 d2                	xor    %edx,%edx                      
  10ec67:	f7 f1                	div    %ecx                           
  10ec69:	89 55 e4             	mov    %edx,-0x1c(%ebp)               
    doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;                     
    triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS;                       
  10ec6c:	31 d2                	xor    %edx,%edx                      
  10ec6e:	f7 f1                	div    %ecx                           
  10ec70:	89 55 e0             	mov    %edx,-0x20(%ebp)               
  10ec73:	89 c7                	mov    %eax,%edi                      
    doubly %= IMFS_MEMFILE_BLOCK_SLOTS;                               
                                                                      
    p = info->triply_indirect;                                        
  10ec75:	8b 46 60             	mov    0x60(%esi),%eax                
                                                                      
    if ( malloc_it ) {                                                
  10ec78:	83 7d 10 00          	cmpl   $0x0,0x10(%ebp)                
  10ec7c:	74 41                	je     10ecbf <IMFS_memfile_get_block_pointer+0x117>
      if ( !p ) {                                                     
  10ec7e:	85 c0                	test   %eax,%eax                      
  10ec80:	75 0c                	jne    10ec8e <IMFS_memfile_get_block_pointer+0xe6>
        p = memfile_alloc_block();                                    
  10ec82:	e8 ff fe ff ff       	call   10eb86 <memfile_alloc_block>   
        if ( !p )                                                     
  10ec87:	85 c0                	test   %eax,%eax                      
  10ec89:	74 4f                	je     10ecda <IMFS_memfile_get_block_pointer+0x132><== NEVER TAKEN
           return 0;                                                  
        info->triply_indirect = p;                                    
  10ec8b:	89 46 60             	mov    %eax,0x60(%esi)                
      }                                                               
                                                                      
      p1 = (block_p *) p[ triply ];                                   
  10ec8e:	8d 34 b8             	lea    (%eax,%edi,4),%esi             
  10ec91:	8b 06                	mov    (%esi),%eax                    
      if ( !p1 ) {                                                    
  10ec93:	85 c0                	test   %eax,%eax                      
  10ec95:	75 0d                	jne    10eca4 <IMFS_memfile_get_block_pointer+0xfc>
        p1 = memfile_alloc_block();                                   
  10ec97:	e8 ea fe ff ff       	call   10eb86 <memfile_alloc_block>   
        if ( !p1 )                                                    
           return 0;                                                  
  10ec9c:	31 db                	xor    %ebx,%ebx                      
      }                                                               
                                                                      
      p1 = (block_p *) p[ triply ];                                   
      if ( !p1 ) {                                                    
        p1 = memfile_alloc_block();                                   
        if ( !p1 )                                                    
  10ec9e:	85 c0                	test   %eax,%eax                      
  10eca0:	74 38                	je     10ecda <IMFS_memfile_get_block_pointer+0x132><== NEVER TAKEN
           return 0;                                                  
        p[ triply ] = (block_p) p1;                                   
  10eca2:	89 06                	mov    %eax,(%esi)                    
      }                                                               
                                                                      
      p2 = (block_p *)p1[ doubly ];                                   
  10eca4:	8b 55 e0             	mov    -0x20(%ebp),%edx               
  10eca7:	8d 34 90             	lea    (%eax,%edx,4),%esi             
  10ecaa:	8b 06                	mov    (%esi),%eax                    
      if ( !p2 ) {                                                    
  10ecac:	85 c0                	test   %eax,%eax                      
  10ecae:	75 24                	jne    10ecd4 <IMFS_memfile_get_block_pointer+0x12c>
        p2 = memfile_alloc_block();                                   
  10ecb0:	e8 d1 fe ff ff       	call   10eb86 <memfile_alloc_block>   
        if ( !p2 )                                                    
           return 0;                                                  
  10ecb5:	31 db                	xor    %ebx,%ebx                      
      }                                                               
                                                                      
      p2 = (block_p *)p1[ doubly ];                                   
      if ( !p2 ) {                                                    
        p2 = memfile_alloc_block();                                   
        if ( !p2 )                                                    
  10ecb7:	85 c0                	test   %eax,%eax                      
  10ecb9:	74 1f                	je     10ecda <IMFS_memfile_get_block_pointer+0x132><== NEVER TAKEN
           return 0;                                                  
        p1[ doubly ] = (block_p) p2;                                  
  10ecbb:	89 06                	mov    %eax,(%esi)                    
  10ecbd:	eb 15                	jmp    10ecd4 <IMFS_memfile_get_block_pointer+0x12c>
      }                                                               
      return (block_p *)&p2[ singly ];                                
    }                                                                 
                                                                      
    if ( !p )                                                         
  10ecbf:	85 c0                	test   %eax,%eax                      
  10ecc1:	74 17                	je     10ecda <IMFS_memfile_get_block_pointer+0x132><== NEVER TAKEN
      return 0;                                                       
                                                                      
    p1 = (block_p *) p[ triply ];                                     
  10ecc3:	8b 04 b8             	mov    (%eax,%edi,4),%eax             
    if ( !p1 )                                                        
  10ecc6:	85 c0                	test   %eax,%eax                      
  10ecc8:	74 10                	je     10ecda <IMFS_memfile_get_block_pointer+0x132><== NEVER TAKEN
      return 0;                                                       
                                                                      
    p2 = (block_p *)p1[ doubly ];                                     
  10ecca:	8b 55 e0             	mov    -0x20(%ebp),%edx               
  10eccd:	8b 04 90             	mov    (%eax,%edx,4),%eax             
    if ( !p2 )                                                        
  10ecd0:	85 c0                	test   %eax,%eax                      
  10ecd2:	74 06                	je     10ecda <IMFS_memfile_get_block_pointer+0x132><== NEVER TAKEN
      return 0;                                                       
                                                                      
    return (block_p *)&p2[ singly ];                                  
  10ecd4:	8b 55 e4             	mov    -0x1c(%ebp),%edx               
  10ecd7:	8d 1c 90             	lea    (%eax,%edx,4),%ebx             
                                                                      
  /*                                                                  
   *  This means the requested block number is out of range.          
   */                                                                 
  return 0;                                                           
}                                                                     
  10ecda:	89 d8                	mov    %ebx,%eax                      
  10ecdc:	83 c4 1c             	add    $0x1c,%esp                     
  10ecdf:	5b                   	pop    %ebx                           
  10ece0:	5e                   	pop    %esi                           
  10ece1:	5f                   	pop    %edi                           
  10ece2:	c9                   	leave                                 
  10ece3:	c3                   	ret                                   
                                                                      

0010ece4 <IMFS_memfile_read>: IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) {
  10ece4:	55                   	push   %ebp                           
  10ece5:	89 e5                	mov    %esp,%ebp                      
  10ece7:	57                   	push   %edi                           
  10ece8:	56                   	push   %esi                           
  10ece9:	53                   	push   %ebx                           
  10ecea:	83 ec 4c             	sub    $0x4c,%esp                     
  10eced:	8b 75 0c             	mov    0xc(%ebp),%esi                 
  10ecf0:	8b 7d 10             	mov    0x10(%ebp),%edi                
  10ecf3:	8b 5d 18             	mov    0x18(%ebp),%ebx                
   *  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) {                          
  10ecf6:	8b 45 08             	mov    0x8(%ebp),%eax                 
  10ecf9:	83 78 4c 06          	cmpl   $0x6,0x4c(%eax)                
  10ecfd:	75 3f                	jne    10ed3e <IMFS_memfile_read+0x5a>
    unsigned char  *file_ptr;                                         
                                                                      
    file_ptr = (unsigned char *)the_jnode->info.linearfile.direct;    
  10ecff:	8b 48 58             	mov    0x58(%eax),%ecx                
                                                                      
    if (my_length > (the_jnode->info.linearfile.size - start))        
  10ed02:	89 c2                	mov    %eax,%edx                      
  10ed04:	8b 40 50             	mov    0x50(%eax),%eax                
  10ed07:	8b 52 54             	mov    0x54(%edx),%edx                
  10ed0a:	89 45 b0             	mov    %eax,-0x50(%ebp)               
  10ed0d:	89 55 b4             	mov    %edx,-0x4c(%ebp)               
  10ed10:	29 f0                	sub    %esi,%eax                      
  10ed12:	19 fa                	sbb    %edi,%edx                      
  10ed14:	89 45 d0             	mov    %eax,-0x30(%ebp)               
  10ed17:	89 55 d4             	mov    %edx,-0x2c(%ebp)               
  10ed1a:	31 c0                	xor    %eax,%eax                      
  10ed1c:	39 d0                	cmp    %edx,%eax                      
  10ed1e:	7c 0e                	jl     10ed2e <IMFS_memfile_read+0x4a><== NEVER TAKEN
  10ed20:	7f 05                	jg     10ed27 <IMFS_memfile_read+0x43><== NEVER TAKEN
  10ed22:	3b 5d d0             	cmp    -0x30(%ebp),%ebx               
  10ed25:	76 07                	jbe    10ed2e <IMFS_memfile_read+0x4a><== NEVER TAKEN
      my_length = the_jnode->info.linearfile.size - start;            
  10ed27:	8b 55 b0             	mov    -0x50(%ebp),%edx               
  10ed2a:	29 f2                	sub    %esi,%edx                      
  10ed2c:	eb 02                	jmp    10ed30 <IMFS_memfile_read+0x4c>
                                                                      
  /*                                                                  
   *  Linear files (as created from a tar file are easier to handle   
   *  than block files).                                              
   */                                                                 
  my_length = length;                                                 
  10ed2e:	89 da                	mov    %ebx,%edx                      <== NOT EXECUTED
    file_ptr = (unsigned char *)the_jnode->info.linearfile.direct;    
                                                                      
    if (my_length > (the_jnode->info.linearfile.size - start))        
      my_length = the_jnode->info.linearfile.size - start;            
                                                                      
    memcpy(dest, &file_ptr[start], my_length);                        
  10ed30:	01 ce                	add    %ecx,%esi                      
  10ed32:	8b 7d 14             	mov    0x14(%ebp),%edi                
  10ed35:	89 d1                	mov    %edx,%ecx                      
  10ed37:	f3 a4                	rep movsb %ds:(%esi),%es:(%edi)       
  10ed39:	e9 1d 01 00 00       	jmp    10ee5b <IMFS_memfile_read+0x177>
                                                                      
  /*                                                                  
   *  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;                                         
  10ed3e:	89 f0                	mov    %esi,%eax                      
  if ( last_byte > the_jnode->info.file.size )                        
  10ed40:	8b 55 08             	mov    0x8(%ebp),%edx                 
  10ed43:	8b 52 50             	mov    0x50(%edx),%edx                
  10ed46:	89 55 cc             	mov    %edx,-0x34(%ebp)               
                                                                      
  /*                                                                  
   *  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;                                         
  10ed49:	8d 0c 33             	lea    (%ebx,%esi,1),%ecx             
  10ed4c:	89 4d d0             	mov    %ecx,-0x30(%ebp)               
  if ( last_byte > the_jnode->info.file.size )                        
  10ed4f:	31 c9                	xor    %ecx,%ecx                      
  10ed51:	8b 55 08             	mov    0x8(%ebp),%edx                 
  10ed54:	3b 4a 54             	cmp    0x54(%edx),%ecx                
  10ed57:	7c 14                	jl     10ed6d <IMFS_memfile_read+0x89><== NEVER TAKEN
  10ed59:	7f 08                	jg     10ed63 <IMFS_memfile_read+0x7f><== NEVER TAKEN
  10ed5b:	8b 4d cc             	mov    -0x34(%ebp),%ecx               
  10ed5e:	39 4d d0             	cmp    %ecx,-0x30(%ebp)               
  10ed61:	76 0a                	jbe    10ed6d <IMFS_memfile_read+0x89>
    my_length = the_jnode->info.file.size - start;                    
  10ed63:	8b 55 cc             	mov    -0x34(%ebp),%edx               
  10ed66:	29 c2                	sub    %eax,%edx                      
  10ed68:	89 55 d0             	mov    %edx,-0x30(%ebp)               
  10ed6b:	eb 03                	jmp    10ed70 <IMFS_memfile_read+0x8c>
                                                                      
  /*                                                                  
   *  Linear files (as created from a tar file are easier to handle   
   *  than block files).                                              
   */                                                                 
  my_length = length;                                                 
  10ed6d:	89 5d d0             	mov    %ebx,-0x30(%ebp)               
   */                                                                 
                                                                      
  /*                                                                  
   *  Phase 1: possibly the last part of one block                    
   */                                                                 
  start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;                
  10ed70:	8b 0d f0 2d 12 00    	mov    0x122df0,%ecx                  
  10ed76:	89 4d c4             	mov    %ecx,-0x3c(%ebp)               
  10ed79:	89 c8                	mov    %ecx,%eax                      
  10ed7b:	99                   	cltd                                  
  10ed7c:	89 d3                	mov    %edx,%ebx                      
  10ed7e:	52                   	push   %edx                           
  10ed7f:	51                   	push   %ecx                           
  10ed80:	57                   	push   %edi                           
  10ed81:	56                   	push   %esi                           
  10ed82:	89 4d c0             	mov    %ecx,-0x40(%ebp)               
  10ed85:	e8 d2 c9 00 00       	call   11b75c <__moddi3>              
  10ed8a:	83 c4 10             	add    $0x10,%esp                     
  10ed8d:	89 45 cc             	mov    %eax,-0x34(%ebp)               
  block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;                       
  10ed90:	8b 4d c0             	mov    -0x40(%ebp),%ecx               
  10ed93:	53                   	push   %ebx                           
  10ed94:	51                   	push   %ecx                           
  10ed95:	57                   	push   %edi                           
  10ed96:	56                   	push   %esi                           
  10ed97:	e8 74 c8 00 00       	call   11b610 <__divdi3>              
  10ed9c:	83 c4 10             	add    $0x10,%esp                     
  10ed9f:	89 c3                	mov    %eax,%ebx                      
  if ( start_offset )  {                                              
  10eda1:	83 7d cc 00          	cmpl   $0x0,-0x34(%ebp)               
  10eda5:	74 3d                	je     10ede4 <IMFS_memfile_read+0x100>
    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 );
  10eda7:	57                   	push   %edi                           
  10eda8:	6a 00                	push   $0x0                           
  10edaa:	50                   	push   %eax                           
  10edab:	ff 75 08             	pushl  0x8(%ebp)                      
  10edae:	e8 f5 fd ff ff       	call   10eba8 <IMFS_memfile_get_block_pointer>
    if ( !block_ptr )                                                 
  10edb3:	83 c4 10             	add    $0x10,%esp                     
      return copied;                                                  
  10edb6:	31 d2                	xor    %edx,%edx                      
  if ( start_offset )  {                                              
    to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK - start_offset;            
    if ( to_copy > my_length )                                        
      to_copy = my_length;                                            
    block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
    if ( !block_ptr )                                                 
  10edb8:	85 c0                	test   %eax,%eax                      
  10edba:	0f 84 ba 00 00 00    	je     10ee7a <IMFS_memfile_read+0x196><== NEVER TAKEN
   *  Phase 1: possibly the last part of one block                    
   */                                                                 
  start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;                
  block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;                       
  if ( start_offset )  {                                              
    to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK - start_offset;            
  10edc0:	8b 4d c4             	mov    -0x3c(%ebp),%ecx               
  10edc3:	2b 4d cc             	sub    -0x34(%ebp),%ecx               
  10edc6:	8b 55 d0             	mov    -0x30(%ebp),%edx               
  10edc9:	39 ca                	cmp    %ecx,%edx                      
  10edcb:	76 02                	jbe    10edcf <IMFS_memfile_read+0xeb>
  10edcd:	89 ca                	mov    %ecx,%edx                      
    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 );           
  10edcf:	8b 75 cc             	mov    -0x34(%ebp),%esi               
  10edd2:	03 30                	add    (%eax),%esi                    
    dest += to_copy;                                                  
  10edd4:	8b 7d 14             	mov    0x14(%ebp),%edi                
  10edd7:	89 d1                	mov    %edx,%ecx                      
  10edd9:	f3 a4                	rep movsb %ds:(%esi),%es:(%edi)       
  10eddb:	89 7d cc             	mov    %edi,-0x34(%ebp)               
    block++;                                                          
  10edde:	43                   	inc    %ebx                           
    my_length -= to_copy;                                             
  10eddf:	29 55 d0             	sub    %edx,-0x30(%ebp)               
  10ede2:	eb 08                	jmp    10edec <IMFS_memfile_read+0x108>
  unsigned int         last_byte;                                     
  unsigned int         copied;                                        
  unsigned int         start_offset;                                  
  unsigned char       *dest;                                          
                                                                      
  dest = destination;                                                 
  10ede4:	8b 45 14             	mov    0x14(%ebp),%eax                
  10ede7:	89 45 cc             	mov    %eax,-0x34(%ebp)               
   */                                                                 
  last_byte = start + length;                                         
  if ( last_byte > the_jnode->info.file.size )                        
    my_length = the_jnode->info.file.size - start;                    
                                                                      
  copied = 0;                                                         
  10edea:	31 d2                	xor    %edx,%edx                      
  }                                                                   
                                                                      
  /*                                                                  
   *  Phase 2: all of zero of more blocks                             
   */                                                                 
  to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;                             
  10edec:	8b 0d f0 2d 12 00    	mov    0x122df0,%ecx                  
  10edf2:	89 4d c8             	mov    %ecx,-0x38(%ebp)               
  while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {               
  10edf5:	eb 2f                	jmp    10ee26 <IMFS_memfile_read+0x142>
    block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
  10edf7:	56                   	push   %esi                           
  10edf8:	6a 00                	push   $0x0                           
  10edfa:	53                   	push   %ebx                           
  10edfb:	ff 75 08             	pushl  0x8(%ebp)                      
  10edfe:	89 55 c0             	mov    %edx,-0x40(%ebp)               
  10ee01:	e8 a2 fd ff ff       	call   10eba8 <IMFS_memfile_get_block_pointer>
    if ( !block_ptr )                                                 
  10ee06:	83 c4 10             	add    $0x10,%esp                     
  10ee09:	85 c0                	test   %eax,%eax                      
  10ee0b:	8b 55 c0             	mov    -0x40(%ebp),%edx               
  10ee0e:	74 6a                	je     10ee7a <IMFS_memfile_read+0x196><== NEVER TAKEN
      return copied;                                                  
    memcpy( dest, &(*block_ptr)[ 0 ], to_copy );                      
  10ee10:	8b 30                	mov    (%eax),%esi                    
  10ee12:	8b 7d cc             	mov    -0x34(%ebp),%edi               
  10ee15:	8b 4d c8             	mov    -0x38(%ebp),%ecx               
  10ee18:	f3 a4                	rep movsb %ds:(%esi),%es:(%edi)       
    dest += to_copy;                                                  
  10ee1a:	89 7d cc             	mov    %edi,-0x34(%ebp)               
    block++;                                                          
  10ee1d:	43                   	inc    %ebx                           
    my_length -= to_copy;                                             
  10ee1e:	8b 7d c8             	mov    -0x38(%ebp),%edi               
  10ee21:	29 7d d0             	sub    %edi,-0x30(%ebp)               
    copied += to_copy;                                                
  10ee24:	01 fa                	add    %edi,%edx                      
                                                                      
  /*                                                                  
   *  Phase 2: all of zero of more blocks                             
   */                                                                 
  to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;                             
  while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {               
  10ee26:	8b 45 d0             	mov    -0x30(%ebp),%eax               
  10ee29:	3b 05 f0 2d 12 00    	cmp    0x122df0,%eax                  
  10ee2f:	73 c6                	jae    10edf7 <IMFS_memfile_read+0x113>
  /*                                                                  
   *  Phase 3: possibly the first part of one block                   
   */                                                                 
  IMFS_assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK );            
                                                                      
  if ( my_length ) {                                                  
  10ee31:	85 c0                	test   %eax,%eax                      
  10ee33:	74 26                	je     10ee5b <IMFS_memfile_read+0x177>
    block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
  10ee35:	51                   	push   %ecx                           
  10ee36:	6a 00                	push   $0x0                           
  10ee38:	53                   	push   %ebx                           
  10ee39:	ff 75 08             	pushl  0x8(%ebp)                      
  10ee3c:	89 55 c0             	mov    %edx,-0x40(%ebp)               
  10ee3f:	e8 64 fd ff ff       	call   10eba8 <IMFS_memfile_get_block_pointer>
    if ( !block_ptr )                                                 
  10ee44:	83 c4 10             	add    $0x10,%esp                     
  10ee47:	85 c0                	test   %eax,%eax                      
  10ee49:	8b 55 c0             	mov    -0x40(%ebp),%edx               
  10ee4c:	74 2c                	je     10ee7a <IMFS_memfile_read+0x196><== NEVER TAKEN
      return copied;                                                  
    memcpy( dest, &(*block_ptr)[ 0 ], my_length );                    
  10ee4e:	8b 30                	mov    (%eax),%esi                    
  10ee50:	8b 7d cc             	mov    -0x34(%ebp),%edi               
  10ee53:	8b 4d d0             	mov    -0x30(%ebp),%ecx               
  10ee56:	f3 a4                	rep movsb %ds:(%esi),%es:(%edi)       
    copied += my_length;                                              
  10ee58:	03 55 d0             	add    -0x30(%ebp),%edx               
  }                                                                   
                                                                      
  IMFS_update_atime( the_jnode );                                     
  10ee5b:	50                   	push   %eax                           
  10ee5c:	50                   	push   %eax                           
  10ee5d:	6a 00                	push   $0x0                           
  10ee5f:	8d 45 e0             	lea    -0x20(%ebp),%eax               
  10ee62:	50                   	push   %eax                           
  10ee63:	89 55 c0             	mov    %edx,-0x40(%ebp)               
  10ee66:	e8 a5 7b ff ff       	call   106a10 <gettimeofday>          
  10ee6b:	8b 45 e0             	mov    -0x20(%ebp),%eax               
  10ee6e:	8b 4d 08             	mov    0x8(%ebp),%ecx                 
  10ee71:	89 41 40             	mov    %eax,0x40(%ecx)                
                                                                      
  return copied;                                                      
  10ee74:	8b 55 c0             	mov    -0x40(%ebp),%edx               
  10ee77:	83 c4 10             	add    $0x10,%esp                     
}                                                                     
  10ee7a:	89 d0                	mov    %edx,%eax                      
  10ee7c:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  10ee7f:	5b                   	pop    %ebx                           
  10ee80:	5e                   	pop    %esi                           
  10ee81:	5f                   	pop    %edi                           
  10ee82:	c9                   	leave                                 
  10ee83:	c3                   	ret                                   
                                                                      

0010ef42 <IMFS_memfile_remove>: * is better to stick to simple, easy to understand algorithms. */ int IMFS_memfile_remove( IMFS_jnode_t *the_jnode ) {
  10ef42:	55                   	push   %ebp                           
  10ef43:	89 e5                	mov    %esp,%ebp                      
  10ef45:	57                   	push   %edi                           
  10ef46:	56                   	push   %esi                           
  10ef47:	53                   	push   %ebx                           
  10ef48:	83 ec 1c             	sub    $0x1c,%esp                     
  10ef4b:	8b 5d 08             	mov    0x8(%ebp),%ebx                 
                                                                      
  /*                                                                  
   *  Eventually this could be set smarter at each call to            
   *  memfile_free_blocks_in_table to greatly speed this up.          
   */                                                                 
  to_free = IMFS_MEMFILE_BLOCK_SLOTS;                                 
  10ef4e:	8b 35 f0 2d 12 00    	mov    0x122df0,%esi                  
  10ef54:	c1 ee 02             	shr    $0x2,%esi                      
   *    + doubly indirect                                             
   *    + triply indirect                                             
   */                                                                 
  info = &the_jnode->info.file;                                       
                                                                      
  if ( info->indirect ) {                                             
  10ef57:	83 7b 58 00          	cmpl   $0x0,0x58(%ebx)                
  10ef5b:	74 0f                	je     10ef6c <IMFS_memfile_remove+0x2a>
    memfile_free_blocks_in_table( &info->indirect, to_free );         
  10ef5d:	57                   	push   %edi                           
  10ef5e:	57                   	push   %edi                           
  10ef5f:	56                   	push   %esi                           
  10ef60:	8d 43 58             	lea    0x58(%ebx),%eax                
  10ef63:	50                   	push   %eax                           
  10ef64:	e8 8c ff ff ff       	call   10eef5 <memfile_free_blocks_in_table>
  10ef69:	83 c4 10             	add    $0x10,%esp                     
  }                                                                   
                                                                      
  if ( info->doubly_indirect ) {                                      
  10ef6c:	83 7b 5c 00          	cmpl   $0x0,0x5c(%ebx)                
  10ef70:	74 3e                	je     10efb0 <IMFS_memfile_remove+0x6e>
  10ef72:	31 ff                	xor    %edi,%edi                      
  10ef74:	eb 1f                	jmp    10ef95 <IMFS_memfile_remove+0x53>
    for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {                  
      if ( info->doubly_indirect[i] ) {                               
  10ef76:	8b 43 5c             	mov    0x5c(%ebx),%eax                
  10ef79:	8d 14 bd 00 00 00 00 	lea    0x0(,%edi,4),%edx              
  10ef80:	83 3c b8 00          	cmpl   $0x0,(%eax,%edi,4)             
  10ef84:	74 0e                	je     10ef94 <IMFS_memfile_remove+0x52><== NEVER TAKEN
        memfile_free_blocks_in_table(                                 
  10ef86:	51                   	push   %ecx                           
  10ef87:	51                   	push   %ecx                           
  10ef88:	56                   	push   %esi                           
  10ef89:	01 d0                	add    %edx,%eax                      
  10ef8b:	50                   	push   %eax                           
  10ef8c:	e8 64 ff ff ff       	call   10eef5 <memfile_free_blocks_in_table>
  10ef91:	83 c4 10             	add    $0x10,%esp                     
  if ( info->indirect ) {                                             
    memfile_free_blocks_in_table( &info->indirect, to_free );         
  }                                                                   
                                                                      
  if ( info->doubly_indirect ) {                                      
    for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {                  
  10ef94:	47                   	inc    %edi                           
  10ef95:	a1 f0 2d 12 00       	mov    0x122df0,%eax                  
  10ef9a:	c1 e8 02             	shr    $0x2,%eax                      
  10ef9d:	39 c7                	cmp    %eax,%edi                      
  10ef9f:	72 d5                	jb     10ef76 <IMFS_memfile_remove+0x34>
      if ( info->doubly_indirect[i] ) {                               
        memfile_free_blocks_in_table(                                 
         (block_p **)&info->doubly_indirect[i], to_free );            
      }                                                               
    }                                                                 
    memfile_free_blocks_in_table( &info->doubly_indirect, to_free );  
  10efa1:	57                   	push   %edi                           
  10efa2:	57                   	push   %edi                           
  10efa3:	56                   	push   %esi                           
  10efa4:	8d 43 5c             	lea    0x5c(%ebx),%eax                
  10efa7:	50                   	push   %eax                           
  10efa8:	e8 48 ff ff ff       	call   10eef5 <memfile_free_blocks_in_table>
  10efad:	83 c4 10             	add    $0x10,%esp                     
                                                                      
  }                                                                   
                                                                      
  if ( info->triply_indirect ) {                                      
  10efb0:	83 7b 60 00          	cmpl   $0x0,0x60(%ebx)                
  10efb4:	74 78                	je     10f02e <IMFS_memfile_remove+0xec>
  10efb6:	31 ff                	xor    %edi,%edi                      
  10efb8:	eb 59                	jmp    10f013 <IMFS_memfile_remove+0xd1>
  10efba:	8d 04 bd 00 00 00 00 	lea    0x0(,%edi,4),%eax              
  10efc1:	89 45 e4             	mov    %eax,-0x1c(%ebp)               
    for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {                  
      p = (block_p *) info->triply_indirect[i];                       
  10efc4:	8b 43 60             	mov    0x60(%ebx),%eax                
  10efc7:	8b 04 b8             	mov    (%eax,%edi,4),%eax             
      if ( !p )  /* ensure we have a valid pointer */                 
  10efca:	85 c0                	test   %eax,%eax                      
  10efcc:	74 51                	je     10f01f <IMFS_memfile_remove+0xdd><== NEVER TAKEN
  10efce:	31 d2                	xor    %edx,%edx                      
  10efd0:	eb 21                	jmp    10eff3 <IMFS_memfile_remove+0xb1>
         break;                                                       
      for ( j=0 ; j<IMFS_MEMFILE_BLOCK_SLOTS ; j++ ) {                
        if ( p[j] ) {                                                 
  10efd2:	83 38 00             	cmpl   $0x0,(%eax)                    
  10efd5:	74 18                	je     10efef <IMFS_memfile_remove+0xad><== NEVER TAKEN
          memfile_free_blocks_in_table( (block_p **)&p[j], to_free);  
  10efd7:	51                   	push   %ecx                           
  10efd8:	51                   	push   %ecx                           
  10efd9:	56                   	push   %esi                           
  10efda:	50                   	push   %eax                           
  10efdb:	89 45 dc             	mov    %eax,-0x24(%ebp)               
  10efde:	89 55 e0             	mov    %edx,-0x20(%ebp)               
  10efe1:	e8 0f ff ff ff       	call   10eef5 <memfile_free_blocks_in_table>
  10efe6:	83 c4 10             	add    $0x10,%esp                     
  10efe9:	8b 55 e0             	mov    -0x20(%ebp),%edx               
  10efec:	8b 45 dc             	mov    -0x24(%ebp),%eax               
  if ( info->triply_indirect ) {                                      
    for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {                  
      p = (block_p *) info->triply_indirect[i];                       
      if ( !p )  /* ensure we have a valid pointer */                 
         break;                                                       
      for ( j=0 ; j<IMFS_MEMFILE_BLOCK_SLOTS ; j++ ) {                
  10efef:	42                   	inc    %edx                           
  10eff0:	83 c0 04             	add    $0x4,%eax                      
  10eff3:	8b 0d f0 2d 12 00    	mov    0x122df0,%ecx                  
  10eff9:	c1 e9 02             	shr    $0x2,%ecx                      
  10effc:	39 ca                	cmp    %ecx,%edx                      
  10effe:	72 d2                	jb     10efd2 <IMFS_memfile_remove+0x90>
        if ( p[j] ) {                                                 
          memfile_free_blocks_in_table( (block_p **)&p[j], to_free);  
        }                                                             
      }                                                               
      memfile_free_blocks_in_table(                                   
  10f000:	52                   	push   %edx                           
  10f001:	52                   	push   %edx                           
  10f002:	56                   	push   %esi                           
  10f003:	8b 45 e4             	mov    -0x1c(%ebp),%eax               
  10f006:	03 43 60             	add    0x60(%ebx),%eax                
  10f009:	50                   	push   %eax                           
  10f00a:	e8 e6 fe ff ff       	call   10eef5 <memfile_free_blocks_in_table>
    memfile_free_blocks_in_table( &info->doubly_indirect, to_free );  
                                                                      
  }                                                                   
                                                                      
  if ( info->triply_indirect ) {                                      
    for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {                  
  10f00f:	47                   	inc    %edi                           
  10f010:	83 c4 10             	add    $0x10,%esp                     
  10f013:	a1 f0 2d 12 00       	mov    0x122df0,%eax                  
  10f018:	c1 e8 02             	shr    $0x2,%eax                      
  10f01b:	39 c7                	cmp    %eax,%edi                      
  10f01d:	72 9b                	jb     10efba <IMFS_memfile_remove+0x78>
        }                                                             
      }                                                               
      memfile_free_blocks_in_table(                                   
        (block_p **)&info->triply_indirect[i], to_free );             
    }                                                                 
    memfile_free_blocks_in_table(                                     
  10f01f:	50                   	push   %eax                           
  10f020:	50                   	push   %eax                           
  10f021:	56                   	push   %esi                           
        (block_p **)&info->triply_indirect, to_free );                
  10f022:	83 c3 60             	add    $0x60,%ebx                     
        }                                                             
      }                                                               
      memfile_free_blocks_in_table(                                   
        (block_p **)&info->triply_indirect[i], to_free );             
    }                                                                 
    memfile_free_blocks_in_table(                                     
  10f025:	53                   	push   %ebx                           
  10f026:	e8 ca fe ff ff       	call   10eef5 <memfile_free_blocks_in_table>
  10f02b:	83 c4 10             	add    $0x10,%esp                     
        (block_p **)&info->triply_indirect, to_free );                
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
  10f02e:	31 c0                	xor    %eax,%eax                      
  10f030:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  10f033:	5b                   	pop    %ebx                           
  10f034:	5e                   	pop    %esi                           
  10f035:	5f                   	pop    %edi                           
  10f036:	c9                   	leave                                 
  10f037:	c3                   	ret                                   
                                                                      

0010f154 <IMFS_memfile_write>: IMFS_jnode_t *the_jnode, off_t start, const unsigned char *source, unsigned int length ) {
  10f154:	55                   	push   %ebp                           
  10f155:	89 e5                	mov    %esp,%ebp                      
  10f157:	57                   	push   %edi                           
  10f158:	56                   	push   %esi                           
  10f159:	53                   	push   %ebx                           
  10f15a:	83 ec 2c             	sub    $0x2c,%esp                     
  10f15d:	8b 75 0c             	mov    0xc(%ebp),%esi                 
  10f160:	8b 7d 10             	mov    0x10(%ebp),%edi                
  /*                                                                  
   *  If the last byte we are supposed to write is past the end of this
   *  in memory file, then extend the length.                         
   */                                                                 
                                                                      
  last_byte = start + my_length;                                      
  10f163:	8b 4d 18             	mov    0x18(%ebp),%ecx                
  10f166:	01 f1                	add    %esi,%ecx                      
  if ( last_byte > the_jnode->info.file.size ) {                      
  10f168:	89 c8                	mov    %ecx,%eax                      
  10f16a:	31 d2                	xor    %edx,%edx                      
  10f16c:	8b 5d 08             	mov    0x8(%ebp),%ebx                 
  10f16f:	3b 53 54             	cmp    0x54(%ebx),%edx                
  10f172:	7c 2c                	jl     10f1a0 <IMFS_memfile_write+0x4c><== NEVER TAKEN
  10f174:	7f 05                	jg     10f17b <IMFS_memfile_write+0x27><== NEVER TAKEN
  10f176:	3b 4b 50             	cmp    0x50(%ebx),%ecx                
  10f179:	76 25                	jbe    10f1a0 <IMFS_memfile_write+0x4c><== NEVER TAKEN
    status = IMFS_memfile_extend( the_jnode, last_byte );             
  10f17b:	51                   	push   %ecx                           
  10f17c:	52                   	push   %edx                           
  10f17d:	50                   	push   %eax                           
  10f17e:	ff 75 08             	pushl  0x8(%ebp)                      
  10f181:	e8 dc fe ff ff       	call   10f062 <IMFS_memfile_extend>   
    if ( status )                                                     
  10f186:	83 c4 10             	add    $0x10,%esp                     
  10f189:	85 c0                	test   %eax,%eax                      
  10f18b:	74 13                	je     10f1a0 <IMFS_memfile_write+0x4c>
      rtems_set_errno_and_return_minus_one( ENOSPC );                 
  10f18d:	e8 ee 0b 00 00       	call   10fd80 <__errno>               
  10f192:	c7 00 1c 00 00 00    	movl   $0x1c,(%eax)                   
  10f198:	83 c9 ff             	or     $0xffffffff,%ecx               
  10f19b:	e9 0f 01 00 00       	jmp    10f2af <IMFS_memfile_write+0x15b>
   */                                                                 
                                                                      
  /*                                                                  
   *  Phase 1: possibly the last part of one block                    
   */                                                                 
  start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;                
  10f1a0:	a1 f0 2d 12 00       	mov    0x122df0,%eax                  
  10f1a5:	89 45 cc             	mov    %eax,-0x34(%ebp)               
  10f1a8:	99                   	cltd                                  
  10f1a9:	89 d3                	mov    %edx,%ebx                      
  10f1ab:	52                   	push   %edx                           
  10f1ac:	50                   	push   %eax                           
  10f1ad:	57                   	push   %edi                           
  10f1ae:	56                   	push   %esi                           
  10f1af:	89 45 c8             	mov    %eax,-0x38(%ebp)               
  10f1b2:	e8 a5 c5 00 00       	call   11b75c <__moddi3>              
  10f1b7:	83 c4 10             	add    $0x10,%esp                     
  10f1ba:	89 45 d0             	mov    %eax,-0x30(%ebp)               
  block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;                       
  10f1bd:	8b 4d c8             	mov    -0x38(%ebp),%ecx               
  10f1c0:	53                   	push   %ebx                           
  10f1c1:	51                   	push   %ecx                           
  10f1c2:	57                   	push   %edi                           
  10f1c3:	56                   	push   %esi                           
  10f1c4:	e8 47 c4 00 00       	call   11b610 <__divdi3>              
  10f1c9:	83 c4 10             	add    $0x10,%esp                     
  10f1cc:	89 c3                	mov    %eax,%ebx                      
  if ( start_offset )  {                                              
  10f1ce:	83 7d d0 00          	cmpl   $0x0,-0x30(%ebp)               
  10f1d2:	74 40                	je     10f214 <IMFS_memfile_write+0xc0>
    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 );
  10f1d4:	52                   	push   %edx                           
  10f1d5:	6a 00                	push   $0x0                           
  10f1d7:	53                   	push   %ebx                           
  10f1d8:	ff 75 08             	pushl  0x8(%ebp)                      
  10f1db:	e8 c8 f9 ff ff       	call   10eba8 <IMFS_memfile_get_block_pointer>
    if ( !block_ptr )                                                 
  10f1e0:	83 c4 10             	add    $0x10,%esp                     
      return copied;                                                  
  10f1e3:	31 c9                	xor    %ecx,%ecx                      
  if ( start_offset )  {                                              
    to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK - start_offset;            
    if ( to_copy > my_length )                                        
      to_copy = my_length;                                            
    block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
    if ( !block_ptr )                                                 
  10f1e5:	85 c0                	test   %eax,%eax                      
  10f1e7:	0f 84 c2 00 00 00    	je     10f2af <IMFS_memfile_write+0x15b><== NEVER TAKEN
   *  Phase 1: possibly the last part of one block                    
   */                                                                 
  start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;                
  block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;                       
  if ( start_offset )  {                                              
    to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK - start_offset;            
  10f1ed:	8b 55 cc             	mov    -0x34(%ebp),%edx               
  10f1f0:	2b 55 d0             	sub    -0x30(%ebp),%edx               
  10f1f3:	3b 55 18             	cmp    0x18(%ebp),%edx                
  10f1f6:	76 03                	jbe    10f1fb <IMFS_memfile_write+0xa7>
  10f1f8:	8b 55 18             	mov    0x18(%ebp),%edx                
        block,                                                        
        to_copy,                                                      
        src                                                           
      );                                                              
    #endif                                                            
    memcpy( &(*block_ptr)[ start_offset ], src, to_copy );            
  10f1fb:	8b 00                	mov    (%eax),%eax                    
  10f1fd:	03 45 d0             	add    -0x30(%ebp),%eax               
    src += to_copy;                                                   
  10f200:	89 c7                	mov    %eax,%edi                      
  10f202:	8b 75 14             	mov    0x14(%ebp),%esi                
  10f205:	89 d1                	mov    %edx,%ecx                      
  10f207:	f3 a4                	rep movsb %ds:(%esi),%es:(%edi)       
    block++;                                                          
  10f209:	43                   	inc    %ebx                           
    my_length -= to_copy;                                             
  10f20a:	8b 4d 18             	mov    0x18(%ebp),%ecx                
  10f20d:	29 d1                	sub    %edx,%ecx                      
  10f20f:	89 4d d4             	mov    %ecx,-0x2c(%ebp)               
  10f212:	eb 0b                	jmp    10f21f <IMFS_memfile_write+0xcb>
  unsigned int         last_byte;                                     
  unsigned int         start_offset;                                  
  int                  copied;                                        
  const unsigned char *src;                                           
                                                                      
  src = source;                                                       
  10f214:	8b 75 14             	mov    0x14(%ebp),%esi                
  /*                                                                  
   *  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 )  {                                              
  10f217:	8b 45 18             	mov    0x18(%ebp),%eax                
  10f21a:	89 45 d4             	mov    %eax,-0x2c(%ebp)               
    status = IMFS_memfile_extend( the_jnode, last_byte );             
    if ( status )                                                     
      rtems_set_errno_and_return_minus_one( ENOSPC );                 
  }                                                                   
                                                                      
  copied = 0;                                                         
  10f21d:	31 d2                	xor    %edx,%edx                      
                                                                      
  /*                                                                  
   *  Phase 2: all of zero of more blocks                             
   */                                                                 
                                                                      
  to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;                             
  10f21f:	8b 0d f0 2d 12 00    	mov    0x122df0,%ecx                  
  10f225:	89 4d d0             	mov    %ecx,-0x30(%ebp)               
  while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {               
  10f228:	eb 2b                	jmp    10f255 <IMFS_memfile_write+0x101>
    block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
  10f22a:	50                   	push   %eax                           
  10f22b:	6a 00                	push   $0x0                           
  10f22d:	53                   	push   %ebx                           
  10f22e:	ff 75 08             	pushl  0x8(%ebp)                      
  10f231:	89 55 c8             	mov    %edx,-0x38(%ebp)               
  10f234:	e8 6f f9 ff ff       	call   10eba8 <IMFS_memfile_get_block_pointer>
    if ( !block_ptr )                                                 
  10f239:	83 c4 10             	add    $0x10,%esp                     
  10f23c:	85 c0                	test   %eax,%eax                      
  10f23e:	8b 55 c8             	mov    -0x38(%ebp),%edx               
  10f241:	74 6a                	je     10f2ad <IMFS_memfile_write+0x159><== NEVER TAKEN
      return copied;                                                  
    #if 0                                                             
      fprintf(stdout, "write %d in %d: %*s\n", to_copy, block, to_copy, src );
    #endif                                                            
    memcpy( &(*block_ptr)[ 0 ], src, to_copy );                       
  10f243:	8b 00                	mov    (%eax),%eax                    
    src += to_copy;                                                   
  10f245:	89 c7                	mov    %eax,%edi                      
  10f247:	8b 4d d0             	mov    -0x30(%ebp),%ecx               
  10f24a:	f3 a4                	rep movsb %ds:(%esi),%es:(%edi)       
    block++;                                                          
  10f24c:	43                   	inc    %ebx                           
    my_length -= to_copy;                                             
  10f24d:	8b 45 d0             	mov    -0x30(%ebp),%eax               
  10f250:	29 45 d4             	sub    %eax,-0x2c(%ebp)               
 *  IMFS_memfile_write                                                
 *                                                                    
 *  This routine writes the specified data buffer into the in memory  
 *  file pointed to by the_jnode.  The file is extended as needed.    
 */                                                                   
MEMFILE_STATIC ssize_t IMFS_memfile_write(                            
  10f253:	01 c2                	add    %eax,%edx                      
  /*                                                                  
   *  Phase 2: all of zero of more blocks                             
   */                                                                 
                                                                      
  to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;                             
  while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {               
  10f255:	8b 4d d4             	mov    -0x2c(%ebp),%ecx               
  10f258:	3b 0d f0 2d 12 00    	cmp    0x122df0,%ecx                  
  10f25e:	73 ca                	jae    10f22a <IMFS_memfile_write+0xd6>
   *  Phase 3: possibly the first part of one block                   
   */                                                                 
  IMFS_assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK );            
                                                                      
  to_copy = my_length;                                                
  if ( my_length ) {                                                  
  10f260:	85 c9                	test   %ecx,%ecx                      
  10f262:	74 27                	je     10f28b <IMFS_memfile_write+0x137>
    block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
  10f264:	57                   	push   %edi                           
  10f265:	6a 00                	push   $0x0                           
  10f267:	53                   	push   %ebx                           
  10f268:	ff 75 08             	pushl  0x8(%ebp)                      
  10f26b:	89 55 c8             	mov    %edx,-0x38(%ebp)               
  10f26e:	e8 35 f9 ff ff       	call   10eba8 <IMFS_memfile_get_block_pointer>
    if ( !block_ptr )                                                 
  10f273:	83 c4 10             	add    $0x10,%esp                     
  10f276:	8b 55 c8             	mov    -0x38(%ebp),%edx               
  10f279:	89 d1                	mov    %edx,%ecx                      
  10f27b:	85 c0                	test   %eax,%eax                      
  10f27d:	74 30                	je     10f2af <IMFS_memfile_write+0x15b><== NEVER TAKEN
      return copied;                                                  
    #if 0                                                             
    fprintf(stdout, "write %d in %d: %*s\n", to_copy, block, to_copy, src );
    #endif                                                            
    memcpy( &(*block_ptr)[ 0 ], src, my_length );                     
  10f27f:	8b 00                	mov    (%eax),%eax                    
  10f281:	89 c7                	mov    %eax,%edi                      
  10f283:	8b 4d d4             	mov    -0x2c(%ebp),%ecx               
  10f286:	f3 a4                	rep movsb %ds:(%esi),%es:(%edi)       
    my_length = 0;                                                    
    copied += to_copy;                                                
  10f288:	03 55 d4             	add    -0x2c(%ebp),%edx               
  }                                                                   
                                                                      
  IMFS_mtime_ctime_update( the_jnode );                               
  10f28b:	53                   	push   %ebx                           
  10f28c:	53                   	push   %ebx                           
  10f28d:	6a 00                	push   $0x0                           
  10f28f:	8d 45 e0             	lea    -0x20(%ebp),%eax               
  10f292:	50                   	push   %eax                           
  10f293:	89 55 c8             	mov    %edx,-0x38(%ebp)               
  10f296:	e8 75 77 ff ff       	call   106a10 <gettimeofday>          
  10f29b:	8b 45 e0             	mov    -0x20(%ebp),%eax               
  10f29e:	8b 5d 08             	mov    0x8(%ebp),%ebx                 
  10f2a1:	89 43 44             	mov    %eax,0x44(%ebx)                
  10f2a4:	89 43 48             	mov    %eax,0x48(%ebx)                
                                                                      
  return copied;                                                      
  10f2a7:	83 c4 10             	add    $0x10,%esp                     
  10f2aa:	8b 55 c8             	mov    -0x38(%ebp),%edx               
   */                                                                 
                                                                      
  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 )                                                 
  10f2ad:	89 d1                	mov    %edx,%ecx                      
  }                                                                   
                                                                      
  IMFS_mtime_ctime_update( the_jnode );                               
                                                                      
  return copied;                                                      
}                                                                     
  10f2af:	89 c8                	mov    %ecx,%eax                      
  10f2b1:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  10f2b4:	5b                   	pop    %ebx                           
  10f2b5:	5e                   	pop    %esi                           
  10f2b6:	5f                   	pop    %edi                           
  10f2b7:	c9                   	leave                                 
  10f2b8:	c3                   	ret                                   
                                                                      

001063e0 <IMFS_mount>: #include <rtems/seterr.h> int IMFS_mount( rtems_filesystem_mount_table_entry_t *mt_entry ) {
  1063e0:	55                   	push   %ebp                           
  1063e1:	89 e5                	mov    %esp,%ebp                      
  1063e3:	83 ec 08             	sub    $0x8,%esp                      
  1063e6:	8b 55 08             	mov    0x8(%ebp),%edx                 
  IMFS_jnode_t  *node;                                                
                                                                      
  node = mt_entry->mt_point_node.node_access;                         
  1063e9:	8b 42 08             	mov    0x8(%edx),%eax                 
                                                                      
  /*                                                                  
   *  Is the node that we are mounting onto a directory node ?        
   */                                                                 
                                                                      
  if ( node->type != IMFS_DIRECTORY )                                 
  1063ec:	83 78 4c 01          	cmpl   $0x1,0x4c(%eax)                
  1063f0:	74 10                	je     106402 <IMFS_mount+0x22>       <== ALWAYS TAKEN
    rtems_set_errno_and_return_minus_one( ENOTDIR );                  
  1063f2:	e8 89 99 00 00       	call   10fd80 <__errno>               <== NOT EXECUTED
  1063f7:	c7 00 14 00 00 00    	movl   $0x14,(%eax)                   <== NOT EXECUTED
  1063fd:	83 c8 ff             	or     $0xffffffff,%eax               <== NOT EXECUTED
  106400:	eb 05                	jmp    106407 <IMFS_mount+0x27>       <== NOT EXECUTED
  /*                                                                  
   *  Set mt_fs pointer to point to the mount table entry for         
   *  the mounted file system.                                        
   */                                                                 
                                                                      
  node->info.directory.mt_fs = mt_entry;                              
  106402:	89 50 5c             	mov    %edx,0x5c(%eax)                
  return 0;                                                           
  106405:	31 c0                	xor    %eax,%eax                      
}                                                                     
  106407:	c9                   	leave                                 
  106408:	c3                   	ret                                   
                                                                      

00108b88 <IMFS_print_jnode>: * This routine prints the contents of the specified jnode. */ void IMFS_print_jnode( IMFS_jnode_t *the_jnode ) {
  108b88:	55                   	push   %ebp                           
  108b89:	89 e5                	mov    %esp,%ebp                      
  108b8b:	53                   	push   %ebx                           
  108b8c:	83 ec 0c             	sub    $0xc,%esp                      
  108b8f:	8b 5d 08             	mov    0x8(%ebp),%ebx                 
  IMFS_assert( the_jnode );                                           
                                                                      
  fprintf(stdout, "%s", the_jnode->name );                            
  108b92:	a1 00 81 12 00       	mov    0x128100,%eax                  
  108b97:	ff 70 08             	pushl  0x8(%eax)                      
  108b9a:	8d 43 0c             	lea    0xc(%ebx),%eax                 
  108b9d:	50                   	push   %eax                           
  108b9e:	e8 ad b3 00 00       	call   113f50 <fputs>                 
  switch( the_jnode->type ) {                                         
  108ba3:	8b 43 4c             	mov    0x4c(%ebx),%eax                
  108ba6:	83 c4 10             	add    $0x10,%esp                     
  108ba9:	8d 50 ff             	lea    -0x1(%eax),%edx                
  108bac:	83 fa 06             	cmp    $0x6,%edx                      
  108baf:	77 75                	ja     108c26 <IMFS_print_jnode+0x9e> <== NEVER TAKEN
  108bb1:	a1 00 81 12 00       	mov    0x128100,%eax                  
  108bb6:	ff 24 95 70 33 12 00 	jmp    *0x123370(,%edx,4)             
    case IMFS_DIRECTORY:                                              
      fprintf(stdout, "/" );                                          
  108bbd:	51                   	push   %ecx                           
  108bbe:	51                   	push   %ecx                           
  108bbf:	ff 70 08             	pushl  0x8(%eax)                      
  108bc2:	6a 2f                	push   $0x2f                          
  108bc4:	e8 db b2 00 00       	call   113ea4 <fputc>                 
  108bc9:	eb 2b                	jmp    108bf6 <IMFS_print_jnode+0x6e> 
      break;                                                          
                                                                      
    case IMFS_DEVICE:                                                 
      fprintf(stdout, " (device %" PRId32 ", %" PRId32 ")",           
  108bcb:	ff 73 54             	pushl  0x54(%ebx)                     
  108bce:	ff 73 50             	pushl  0x50(%ebx)                     
  108bd1:	68 95 32 12 00       	push   $0x123295                      
  108bd6:	eb 16                	jmp    108bee <IMFS_print_jnode+0x66> 
        the_jnode->info.device.major, the_jnode->info.device.minor ); 
      break;                                                          
                                                                      
    case IMFS_LINEAR_FILE:                                            
      fprintf(stdout, " (file %" PRId32 " %p)",                       
  108bd8:	ff 73 58             	pushl  0x58(%ebx)                     
  108bdb:	ff 73 50             	pushl  0x50(%ebx)                     
  108bde:	68 a8 32 12 00       	push   $0x1232a8                      
  108be3:	eb 09                	jmp    108bee <IMFS_print_jnode+0x66> 
        the_jnode->info.file.indirect,                                
        the_jnode->info.file.doubly_indirect,                         
        the_jnode->info.file.triply_indirect                          
      );                                                              
#else                                                                 
      fprintf(stdout, " (file %" PRId32 ")",                          
  108be5:	52                   	push   %edx                           
  108be6:	ff 73 50             	pushl  0x50(%ebx)                     
  108be9:	68 b7 32 12 00       	push   $0x1232b7                      
  108bee:	ff 70 08             	pushl  0x8(%eax)                      
  108bf1:	e8 4e b2 00 00       	call   113e44 <fprintf>               
        (uint32_t)the_jnode->info.file.size );                        
#endif                                                                
      break;                                                          
  108bf6:	83 c4 10             	add    $0x10,%esp                     
                                                                      
    default:                                                          
      fprintf(stdout, " bad type %d\n", the_jnode->type );            
      return;                                                         
  }                                                                   
  puts("");                                                           
  108bf9:	c7 45 08 a1 35 12 00 	movl   $0x1235a1,0x8(%ebp)            
}                                                                     
  108c00:	8b 5d fc             	mov    -0x4(%ebp),%ebx                
  108c03:	c9                   	leave                                 
                                                                      
    default:                                                          
      fprintf(stdout, " bad type %d\n", the_jnode->type );            
      return;                                                         
  }                                                                   
  puts("");                                                           
  108c04:	e9 0f cb 00 00       	jmp    115718 <puts>                  
    case IMFS_HARD_LINK:                                              
      fprintf(stdout, " links not printed\n" );                       
      return;                                                         
                                                                      
    case IMFS_SYM_LINK:                                               
      fprintf(stdout, " links not printed\n" );                       
  108c09:	53                   	push   %ebx                           
  108c0a:	53                   	push   %ebx                           
  108c0b:	ff 70 08             	pushl  0x8(%eax)                      
  108c0e:	68 c3 32 12 00       	push   $0x1232c3                      
  108c13:	eb 0a                	jmp    108c1f <IMFS_print_jnode+0x97> 
      return;                                                         
                                                                      
    case IMFS_FIFO:                                                   
      fprintf(stdout, " FIFO not printed\n" );                        
  108c15:	51                   	push   %ecx                           
  108c16:	51                   	push   %ecx                           
  108c17:	ff 70 08             	pushl  0x8(%eax)                      
  108c1a:	68 d7 32 12 00       	push   $0x1232d7                      
  108c1f:	e8 2c b3 00 00       	call   113f50 <fputs>                 
  108c24:	eb 14                	jmp    108c3a <IMFS_print_jnode+0xb2> 
      return;                                                         
                                                                      
    default:                                                          
      fprintf(stdout, " bad type %d\n", the_jnode->type );            
  108c26:	52                   	push   %edx                           <== NOT EXECUTED
  108c27:	50                   	push   %eax                           <== NOT EXECUTED
  108c28:	68 ea 32 12 00       	push   $0x1232ea                      <== NOT EXECUTED
  108c2d:	a1 00 81 12 00       	mov    0x128100,%eax                  <== NOT EXECUTED
  108c32:	ff 70 08             	pushl  0x8(%eax)                      <== NOT EXECUTED
  108c35:	e8 0a b2 00 00       	call   113e44 <fprintf>               <== NOT EXECUTED
      return;                                                         
  108c3a:	83 c4 10             	add    $0x10,%esp                     
  }                                                                   
  puts("");                                                           
}                                                                     
  108c3d:	8b 5d fc             	mov    -0x4(%ebp),%ebx                
  108c40:	c9                   	leave                                 
  108c41:	c3                   	ret                                   
                                                                      

00106448 <IMFS_rename>: rtems_filesystem_location_info_t *old_parent_loc, /* IN */ rtems_filesystem_location_info_t *old_loc, /* IN */ rtems_filesystem_location_info_t *new_parent_loc, /* IN */ const char *new_name /* IN */ ) {
  106448:	55                   	push   %ebp                           
  106449:	89 e5                	mov    %esp,%ebp                      
  10644b:	53                   	push   %ebx                           
  10644c:	83 ec 18             	sub    $0x18,%esp                     
  IMFS_jnode_t *the_jnode;                                            
  IMFS_jnode_t *new_parent;                                           
                                                                      
  the_jnode = old_loc->node_access;                                   
  10644f:	8b 45 0c             	mov    0xc(%ebp),%eax                 
  106452:	8b 18                	mov    (%eax),%ebx                    
                                                                      
  strncpy( the_jnode->name, new_name, IMFS_NAME_MAX );                
  106454:	6a 20                	push   $0x20                          
  106456:	ff 75 14             	pushl  0x14(%ebp)                     
  106459:	8d 43 0c             	lea    0xc(%ebx),%eax                 
  10645c:	50                   	push   %eax                           
  10645d:	e8 fa a7 00 00       	call   110c5c <strncpy>               
                                                                      
  if ( the_jnode->Parent != NULL )                                    
  106462:	83 c4 10             	add    $0x10,%esp                     
  106465:	83 7b 08 00          	cmpl   $0x0,0x8(%ebx)                 
  106469:	74 0c                	je     106477 <IMFS_rename+0x2f>      <== NEVER TAKEN
 */                                                                   
RTEMS_INLINE_ROUTINE void rtems_chain_extract(                        
  rtems_chain_node *the_node                                          
)                                                                     
{                                                                     
  _Chain_Extract( the_node );                                         
  10646b:	83 ec 0c             	sub    $0xc,%esp                      
  10646e:	53                   	push   %ebx                           
  10646f:	e8 14 3b 00 00       	call   109f88 <_Chain_Extract>        
  106474:	83 c4 10             	add    $0x10,%esp                     
    rtems_chain_extract( (rtems_chain_node *) the_jnode );            
                                                                      
  new_parent = new_parent_loc->node_access;                           
  106477:	8b 45 10             	mov    0x10(%ebp),%eax                
  10647a:	8b 00                	mov    (%eax),%eax                    
  the_jnode->Parent = new_parent;                                     
  10647c:	89 43 08             	mov    %eax,0x8(%ebx)                 
RTEMS_INLINE_ROUTINE void rtems_chain_append(                         
  rtems_chain_control *the_chain,                                     
  rtems_chain_node    *the_node                                       
)                                                                     
{                                                                     
  _Chain_Append( the_chain, the_node );                               
  10647f:	51                   	push   %ecx                           
  106480:	51                   	push   %ecx                           
  106481:	53                   	push   %ebx                           
                                                                      
  rtems_chain_append( &new_parent->info.directory.Entries, &the_jnode->Node );
  106482:	83 c0 50             	add    $0x50,%eax                     
  106485:	50                   	push   %eax                           
  106486:	e8 d9 3a 00 00       	call   109f64 <_Chain_Append>         
                                                                      
  /*                                                                  
   * Update the time.                                                 
   */                                                                 
  IMFS_update_ctime( the_jnode );                                     
  10648b:	58                   	pop    %eax                           
  10648c:	5a                   	pop    %edx                           
  10648d:	6a 00                	push   $0x0                           
  10648f:	8d 45 f0             	lea    -0x10(%ebp),%eax               
  106492:	50                   	push   %eax                           
  106493:	e8 78 05 00 00       	call   106a10 <gettimeofday>          
  106498:	8b 45 f0             	mov    -0x10(%ebp),%eax               
  10649b:	89 43 48             	mov    %eax,0x48(%ebx)                
                                                                      
  return 0;                                                           
}                                                                     
  10649e:	31 c0                	xor    %eax,%eax                      
  1064a0:	8b 5d fc             	mov    -0x4(%ebp),%ebx                
  1064a3:	c9                   	leave                                 
  1064a4:	c3                   	ret                                   
                                                                      

0010d47c <IMFS_stat>: int IMFS_stat( rtems_filesystem_location_info_t *loc, struct stat *buf ) {
  10d47c:	55                   	push   %ebp                           
  10d47d:	89 e5                	mov    %esp,%ebp                      
  10d47f:	56                   	push   %esi                           
  10d480:	53                   	push   %ebx                           
  10d481:	8b 4d 08             	mov    0x8(%ebp),%ecx                 
  10d484:	8b 45 0c             	mov    0xc(%ebp),%eax                 
  IMFS_fs_info_t *fs_info;                                            
  IMFS_jnode_t   *the_jnode;                                          
  IMFS_device_t  *io;                                                 
                                                                      
  the_jnode = loc->node_access;                                       
  10d487:	8b 11                	mov    (%ecx),%edx                    
                                                                      
                                                                      
  switch ( the_jnode->type ) {                                        
  10d489:	8b 5a 4c             	mov    0x4c(%edx),%ebx                
  10d48c:	83 eb 02             	sub    $0x2,%ebx                      
  10d48f:	83 fb 05             	cmp    $0x5,%ebx                      
  10d492:	77 33                	ja     10d4c7 <IMFS_stat+0x4b>        <== NEVER TAKEN
  10d494:	ff 24 9d cc df 11 00 	jmp    *0x11dfcc(,%ebx,4)             
                                                                      
    case IMFS_DEVICE:                                                 
      io           = &the_jnode->info.device;                         
      buf->st_rdev = rtems_filesystem_make_dev_t( io->major, io->minor );
  10d49b:	8b 5a 54             	mov    0x54(%edx),%ebx                
  rtems_device_minor_number _minor                                    
)                                                                     
{                                                                     
  union __rtems_dev_t temp;                                           
                                                                      
  temp.__overlay.major = _major;                                      
  10d49e:	8b 72 50             	mov    0x50(%edx),%esi                
  10d4a1:	89 70 18             	mov    %esi,0x18(%eax)                
  10d4a4:	89 58 1c             	mov    %ebx,0x1c(%eax)                
      break;                                                          
  10d4a7:	eb 2e                	jmp    10d4d7 <IMFS_stat+0x5b>        
                                                                      
    case IMFS_LINEAR_FILE:                                            
    case IMFS_MEMORY_FILE:                                            
      buf->st_size = the_jnode->info.file.size;                       
  10d4a9:	8b 5a 50             	mov    0x50(%edx),%ebx                
  10d4ac:	8b 72 54             	mov    0x54(%edx),%esi                
  10d4af:	89 58 20             	mov    %ebx,0x20(%eax)                
  10d4b2:	89 70 24             	mov    %esi,0x24(%eax)                
      break;                                                          
  10d4b5:	eb 20                	jmp    10d4d7 <IMFS_stat+0x5b>        
    case IMFS_SYM_LINK:                                               
      buf->st_size = 0;                                               
      break;                                                          
                                                                      
    case IMFS_FIFO:                                                   
      buf->st_size = 0;                                               
  10d4b7:	c7 40 20 00 00 00 00 	movl   $0x0,0x20(%eax)                
  10d4be:	c7 40 24 00 00 00 00 	movl   $0x0,0x24(%eax)                
      break;                                                          
  10d4c5:	eb 10                	jmp    10d4d7 <IMFS_stat+0x5b>        
                                                                      
    default:                                                          
      rtems_set_errno_and_return_minus_one( ENOTSUP );                
  10d4c7:	e8 b4 28 00 00       	call   10fd80 <__errno>               
  10d4cc:	c7 00 86 00 00 00    	movl   $0x86,(%eax)                   
  10d4d2:	83 c8 ff             	or     $0xffffffff,%eax               
  10d4d5:	eb 47                	jmp    10d51e <IMFS_stat+0xa2>        
                                                                      
  /*                                                                  
   * The device number of the IMFS is the major number and the minor is the
   * instance.                                                        
   */                                                                 
  fs_info = loc->mt_entry->fs_info;                                   
  10d4d7:	8b 49 10             	mov    0x10(%ecx),%ecx                
  buf->st_dev =                                                       
    rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance );
  10d4da:	8b 49 34             	mov    0x34(%ecx),%ecx                
  10d4dd:	8b 09                	mov    (%ecx),%ecx                    
  /*                                                                  
   * 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 =                                                       
  10d4df:	c7 00 fe ff 00 00    	movl   $0xfffe,(%eax)                 
  10d4e5:	89 48 04             	mov    %ecx,0x4(%eax)                 
    rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance );
                                                                      
  buf->st_mode  = the_jnode->st_mode;                                 
  10d4e8:	8b 4a 30             	mov    0x30(%edx),%ecx                
  10d4eb:	89 48 0c             	mov    %ecx,0xc(%eax)                 
  buf->st_nlink = the_jnode->st_nlink;                                
  10d4ee:	8b 4a 34             	mov    0x34(%edx),%ecx                
  10d4f1:	66 89 48 10          	mov    %cx,0x10(%eax)                 
  buf->st_ino   = the_jnode->st_ino;                                  
  10d4f5:	8b 4a 38             	mov    0x38(%edx),%ecx                
  10d4f8:	89 48 08             	mov    %ecx,0x8(%eax)                 
  buf->st_uid   = the_jnode->st_uid;                                  
  10d4fb:	8b 4a 3c             	mov    0x3c(%edx),%ecx                
  10d4fe:	66 89 48 12          	mov    %cx,0x12(%eax)                 
  buf->st_gid   = the_jnode->st_gid;                                  
  10d502:	66 8b 4a 3e          	mov    0x3e(%edx),%cx                 
  10d506:	66 89 48 14          	mov    %cx,0x14(%eax)                 
                                                                      
  buf->st_atime = the_jnode->stat_atime;                              
  10d50a:	8b 4a 40             	mov    0x40(%edx),%ecx                
  10d50d:	89 48 28             	mov    %ecx,0x28(%eax)                
  buf->st_mtime = the_jnode->stat_mtime;                              
  10d510:	8b 4a 44             	mov    0x44(%edx),%ecx                
  10d513:	89 48 30             	mov    %ecx,0x30(%eax)                
  buf->st_ctime = the_jnode->stat_ctime;                              
  10d516:	8b 52 48             	mov    0x48(%edx),%edx                
  10d519:	89 50 38             	mov    %edx,0x38(%eax)                
                                                                      
  return 0;                                                           
  10d51c:	31 c0                	xor    %eax,%eax                      
}                                                                     
  10d51e:	5b                   	pop    %ebx                           
  10d51f:	5e                   	pop    %esi                           
  10d520:	c9                   	leave                                 
  10d521:	c3                   	ret                                   
                                                                      

00106534 <IMFS_unlink>: int IMFS_unlink( rtems_filesystem_location_info_t *parentloc, /* IN */ rtems_filesystem_location_info_t *loc /* IN */ ) {
  106534:	55                   	push   %ebp                           
  106535:	89 e5                	mov    %esp,%ebp                      
  106537:	57                   	push   %edi                           
  106538:	56                   	push   %esi                           
  106539:	53                   	push   %ebx                           
  10653a:	83 ec 2c             	sub    $0x2c,%esp                     
  IMFS_jnode_t                      *node;                            
  rtems_filesystem_location_info_t   the_link;                        
  int                                result = 0;                      
                                                                      
  node = loc->node_access;                                            
  10653d:	8b 45 0c             	mov    0xc(%ebp),%eax                 
  106540:	8b 18                	mov    (%eax),%ebx                    
  /*                                                                  
   * If this is the last last pointer to the node                     
   * free the node.                                                   
   */                                                                 
                                                                      
  if ( node->type == IMFS_HARD_LINK ) {                               
  106542:	83 7b 4c 03          	cmpl   $0x3,0x4c(%ebx)                
  106546:	75 7a                	jne    1065c2 <IMFS_unlink+0x8e>      
                                                                      
    if ( !node->info.hard_link.link_node )                            
  106548:	8b 43 50             	mov    0x50(%ebx),%eax                
  10654b:	85 c0                	test   %eax,%eax                      
  10654d:	75 10                	jne    10655f <IMFS_unlink+0x2b>      <== ALWAYS TAKEN
      rtems_set_errno_and_return_minus_one( EINVAL );                 
  10654f:	e8 2c 98 00 00       	call   10fd80 <__errno>               <== NOT EXECUTED
  106554:	c7 00 16 00 00 00    	movl   $0x16,(%eax)                   <== NOT EXECUTED
  10655a:	83 c8 ff             	or     $0xffffffff,%eax               <== NOT EXECUTED
  10655d:	eb 75                	jmp    1065d4 <IMFS_unlink+0xa0>      <== NOT EXECUTED
                                                                      
    the_link = *loc;                                                  
  10655f:	8d 7d cc             	lea    -0x34(%ebp),%edi               
  106562:	b9 05 00 00 00       	mov    $0x5,%ecx                      
  106567:	8b 75 0c             	mov    0xc(%ebp),%esi                 
  10656a:	f3 a5                	rep movsl %ds:(%esi),%es:(%edi)       
    the_link.node_access = node->info.hard_link.link_node;            
  10656c:	89 45 cc             	mov    %eax,-0x34(%ebp)               
    IMFS_Set_handlers( &the_link );                                   
  10656f:	83 ec 0c             	sub    $0xc,%esp                      
  106572:	8d 75 cc             	lea    -0x34(%ebp),%esi               
  106575:	56                   	push   %esi                           
  106576:	e8 b9 66 00 00       	call   10cc34 <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)               
  10657b:	8b 43 50             	mov    0x50(%ebx),%eax                
  10657e:	8b 50 34             	mov    0x34(%eax),%edx                
  106581:	83 c4 10             	add    $0x10,%esp                     
  106584:	66 83 fa 01          	cmp    $0x1,%dx                       
  106588:	75 1a                	jne    1065a4 <IMFS_unlink+0x70>      
    {                                                                 
        result = (*the_link.handlers->rmnod_h)( parentloc, &the_link );
  10658a:	51                   	push   %ecx                           
  10658b:	51                   	push   %ecx                           
  10658c:	56                   	push   %esi                           
  10658d:	ff 75 08             	pushl  0x8(%ebp)                      
  106590:	8b 45 d4             	mov    -0x2c(%ebp),%eax               
  106593:	ff 50 34             	call   *0x34(%eax)                    
  106596:	89 c2                	mov    %eax,%edx                      
        if ( result != 0 )                                            
  106598:	83 c4 10             	add    $0x10,%esp                     
            return -1;                                                
  10659b:	83 c8 ff             	or     $0xffffffff,%eax               
     */                                                               
                                                                      
    if ( node->info.hard_link.link_node->st_nlink == 1)               
    {                                                                 
        result = (*the_link.handlers->rmnod_h)( parentloc, &the_link );
        if ( result != 0 )                                            
  10659e:	85 d2                	test   %edx,%edx                      
  1065a0:	74 20                	je     1065c2 <IMFS_unlink+0x8e>      
  1065a2:	eb 30                	jmp    1065d4 <IMFS_unlink+0xa0>      
            return -1;                                                
    }                                                                 
    else                                                              
    {                                                                 
        node->info.hard_link.link_node->st_nlink --;                  
  1065a4:	4a                   	dec    %edx                           
  1065a5:	66 89 50 34          	mov    %dx,0x34(%eax)                 
        IMFS_update_ctime( node->info.hard_link.link_node );          
  1065a9:	52                   	push   %edx                           
  1065aa:	52                   	push   %edx                           
  1065ab:	6a 00                	push   $0x0                           
  1065ad:	8d 45 e0             	lea    -0x20(%ebp),%eax               
  1065b0:	50                   	push   %eax                           
  1065b1:	e8 5a 04 00 00       	call   106a10 <gettimeofday>          
  1065b6:	8b 43 50             	mov    0x50(%ebx),%eax                
  1065b9:	8b 55 e0             	mov    -0x20(%ebp),%edx               
  1065bc:	89 50 48             	mov    %edx,0x48(%eax)                
  1065bf:	83 c4 10             	add    $0x10,%esp                     
                                                                      
  /*                                                                  
   *  Now actually free the node we were asked to free.               
   */                                                                 
                                                                      
  result = (*loc->handlers->rmnod_h)( parentloc, loc );               
  1065c2:	50                   	push   %eax                           
  1065c3:	50                   	push   %eax                           
  1065c4:	8b 55 0c             	mov    0xc(%ebp),%edx                 
  1065c7:	8b 42 08             	mov    0x8(%edx),%eax                 
  1065ca:	52                   	push   %edx                           
  1065cb:	ff 75 08             	pushl  0x8(%ebp)                      
  1065ce:	ff 50 34             	call   *0x34(%eax)                    
                                                                      
  return result;                                                      
  1065d1:	83 c4 10             	add    $0x10,%esp                     
}                                                                     
  1065d4:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  1065d7:	5b                   	pop    %ebx                           
  1065d8:	5e                   	pop    %esi                           
  1065d9:	5f                   	pop    %edi                           
  1065da:	c9                   	leave                                 
  1065db:	c3                   	ret                                   
                                                                      

001065dc <IMFS_unmount>: #include <rtems/seterr.h> int IMFS_unmount( rtems_filesystem_mount_table_entry_t *mt_entry ) {
  1065dc:	55                   	push   %ebp                           
  1065dd:	89 e5                	mov    %esp,%ebp                      
  1065df:	83 ec 08             	sub    $0x8,%esp                      
  IMFS_jnode_t  *node;                                                
                                                                      
  node = mt_entry->mt_point_node.node_access;                         
  1065e2:	8b 45 08             	mov    0x8(%ebp),%eax                 
  1065e5:	8b 40 08             	mov    0x8(%eax),%eax                 
                                                                      
  /*                                                                  
   * Is the node that we are mounting onto a directory node ?         
   */                                                                 
                                                                      
  if ( node->type != IMFS_DIRECTORY )                                 
  1065e8:	83 78 4c 01          	cmpl   $0x1,0x4c(%eax)                
  1065ec:	74 0d                	je     1065fb <IMFS_unmount+0x1f>     <== ALWAYS TAKEN
    rtems_set_errno_and_return_minus_one( ENOTDIR );                  
  1065ee:	e8 8d 97 00 00       	call   10fd80 <__errno>               <== NOT EXECUTED
  1065f3:	c7 00 14 00 00 00    	movl   $0x14,(%eax)                   <== NOT EXECUTED
  1065f9:	eb 11                	jmp    10660c <IMFS_unmount+0x30>     <== NOT EXECUTED
                                                                      
  /*                                                                  
   * Did the node indicate that there was a directory mounted here?   
   */                                                                 
                                                                      
  if ( node->info.directory.mt_fs == NULL )                           
  1065fb:	83 78 5c 00          	cmpl   $0x0,0x5c(%eax)                
  1065ff:	75 10                	jne    106611 <IMFS_unmount+0x35>     <== ALWAYS TAKEN
    rtems_set_errno_and_return_minus_one( EINVAL );  /* XXX */        
  106601:	e8 7a 97 00 00       	call   10fd80 <__errno>               <== NOT EXECUTED
  106606:	c7 00 16 00 00 00    	movl   $0x16,(%eax)                   <== NOT EXECUTED
  10660c:	83 c8 ff             	or     $0xffffffff,%eax               <== NOT EXECUTED
  10660f:	eb 09                	jmp    10661a <IMFS_unmount+0x3e>     <== NOT EXECUTED
  /*                                                                  
   * Set the mt_fs pointer to indicate that there is no longer        
   * a file system mounted to this point.                             
   */                                                                 
                                                                      
  node->info.directory.mt_fs = NULL;                                  
  106611:	c7 40 5c 00 00 00 00 	movl   $0x0,0x5c(%eax)                
                                                                      
  return 0;                                                           
  106618:	31 c0                	xor    %eax,%eax                      
}                                                                     
  10661a:	c9                   	leave                                 
  10661b:	c3                   	ret                                   
                                                                      

00106188 <Stack_check_Dump_threads_usage>: static rtems_printk_plugin_t print_handler; void Stack_check_Dump_threads_usage( Thread_Control *the_thread ) {
  106188:	55                   	push   %ebp                           <== NOT EXECUTED
  106189:	89 e5                	mov    %esp,%ebp                      <== NOT EXECUTED
  10618b:	57                   	push   %edi                           <== NOT EXECUTED
  10618c:	56                   	push   %esi                           <== NOT EXECUTED
  10618d:	53                   	push   %ebx                           <== NOT EXECUTED
  10618e:	83 ec 2c             	sub    $0x2c,%esp                     <== NOT EXECUTED
  106191:	8b 5d 08             	mov    0x8(%ebp),%ebx                 <== NOT EXECUTED
                                                                      
  /*                                                                  
   *  Obtain interrupt stack information                              
   */                                                                 
  #if (CPU_ALLOCATE_INTERRUPT_STACK == TRUE)                          
    if (the_thread == (Thread_Control *) -1) {                        
  106194:	83 fb ff             	cmp    $0xffffffff,%ebx               <== NOT EXECUTED
  106197:	75 1d                	jne    1061b6 <Stack_check_Dump_threads_usage+0x2e><== NOT EXECUTED
      if (!Stack_check_Interrupt_stack.area)                          
  106199:	83 3d 24 43 12 00 00 	cmpl   $0x0,0x124324                  <== NOT EXECUTED
  1061a0:	0f 84 f5 00 00 00    	je     10629b <Stack_check_Dump_threads_usage+0x113><== NOT EXECUTED
        return;                                                       
      stack = &Stack_check_Interrupt_stack;                           
  1061a6:	ba 20 43 12 00       	mov    $0x124320,%edx                 <== NOT EXECUTED
      the_thread = 0;                                                 
      current = 0;                                                    
  1061ab:	c7 45 d0 00 00 00 00 	movl   $0x0,-0x30(%ebp)               <== NOT EXECUTED
  #if (CPU_ALLOCATE_INTERRUPT_STACK == TRUE)                          
    if (the_thread == (Thread_Control *) -1) {                        
      if (!Stack_check_Interrupt_stack.area)                          
        return;                                                       
      stack = &Stack_check_Interrupt_stack;                           
      the_thread = 0;                                                 
  1061b2:	31 db                	xor    %ebx,%ebx                      <== NOT EXECUTED
  1061b4:	eb 0f                	jmp    1061c5 <Stack_check_Dump_threads_usage+0x3d><== NOT EXECUTED
      current = 0;                                                    
    } else                                                            
  #endif                                                              
    {                                                                 
      stack  = &the_thread->Start.Initial_stack;                      
  1061b6:	8d 93 b4 00 00 00    	lea    0xb4(%ebx),%edx                <== NOT EXECUTED
      current = (void *)_CPU_Context_Get_SP( &the_thread->Registers );
  1061bc:	8b 83 c8 00 00 00    	mov    0xc8(%ebx),%eax                <== NOT EXECUTED
  1061c2:	89 45 d0             	mov    %eax,-0x30(%ebp)               <== NOT EXECUTED
    }                                                                 
                                                                      
  low  = Stack_check_usable_stack_start(stack);                       
  1061c5:	8b 42 04             	mov    0x4(%edx),%eax                 <== NOT EXECUTED
  1061c8:	8d 48 10             	lea    0x10(%eax),%ecx                <== NOT EXECUTED
  size = Stack_check_usable_stack_size(stack);                        
  1061cb:	8b 32                	mov    (%edx),%esi                    <== NOT EXECUTED
  1061cd:	83 ee 10             	sub    $0x10,%esi                     <== NOT EXECUTED
  1061d0:	89 75 d4             	mov    %esi,-0x2c(%ebp)               <== NOT EXECUTED
    /*                                                                
     * start at lower memory and find first word that does not        
     * match pattern                                                  
     */                                                               
                                                                      
    base += PATTERN_SIZE_WORDS;                                       
  1061d3:	83 c0 20             	add    $0x20,%eax                     <== NOT EXECUTED
    for (ebase = base + length; base < ebase; base++)                 
  1061d6:	83 e6 fc             	and    $0xfffffffc,%esi               <== NOT EXECUTED
  1061d9:	8d 34 30             	lea    (%eax,%esi,1),%esi             <== NOT EXECUTED
  1061dc:	eb 0b                	jmp    1061e9 <Stack_check_Dump_threads_usage+0x61><== NOT EXECUTED
      if (*base != U32_PATTERN)                                       
  1061de:	81 38 a5 a5 a5 a5    	cmpl   $0xa5a5a5a5,(%eax)             <== NOT EXECUTED
  1061e4:	75 0b                	jne    1061f1 <Stack_check_Dump_threads_usage+0x69><== NOT EXECUTED
     * start at lower memory and find first word that does not        
     * match pattern                                                  
     */                                                               
                                                                      
    base += PATTERN_SIZE_WORDS;                                       
    for (ebase = base + length; base < ebase; base++)                 
  1061e6:	83 c0 04             	add    $0x4,%eax                      <== NOT EXECUTED
  1061e9:	39 f0                	cmp    %esi,%eax                      <== NOT EXECUTED
  1061eb:	72 f1                	jb     1061de <Stack_check_Dump_threads_usage+0x56><== NOT EXECUTED
  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;                                                         
  1061ed:	31 ff                	xor    %edi,%edi                      <== NOT EXECUTED
  1061ef:	eb 0e                	jmp    1061ff <Stack_check_Dump_threads_usage+0x77><== NOT EXECUTED
  1061f1:	31 ff                	xor    %edi,%edi                      <== NOT EXECUTED
  low  = Stack_check_usable_stack_start(stack);                       
  size = Stack_check_usable_stack_size(stack);                        
                                                                      
  high_water_mark = Stack_check_find_high_water_mark(low, size);      
                                                                      
  if ( high_water_mark )                                              
  1061f3:	85 c0                	test   %eax,%eax                      <== NOT EXECUTED
  1061f5:	74 08                	je     1061ff <Stack_check_Dump_threads_usage+0x77><== NOT EXECUTED
    used = Stack_check_Calculate_used( low, size, high_water_mark );  
  1061f7:	8b 7d d4             	mov    -0x2c(%ebp),%edi               <== NOT EXECUTED
  1061fa:	8d 3c 39             	lea    (%ecx,%edi,1),%edi             <== NOT EXECUTED
  1061fd:	29 c7                	sub    %eax,%edi                      <== NOT EXECUTED
  else                                                                
    used = 0;                                                         
                                                                      
                                                                      
  #if (CPU_ALLOCATE_INTERRUPT_STACK == TRUE)                          
    if ( the_thread )                                                 
  1061ff:	85 db                	test   %ebx,%ebx                      <== NOT EXECUTED
  106201:	8b 35 f4 3f 12 00    	mov    0x123ff4,%esi                  <== NOT EXECUTED
  106207:	74 28                	je     106231 <Stack_check_Dump_threads_usage+0xa9><== NOT EXECUTED
  #endif                                                              
    {                                                                 
      (*print_handler)(                                               
  106209:	50                   	push   %eax                           <== NOT EXECUTED
  10620a:	8d 45 e3             	lea    -0x1d(%ebp),%eax               <== NOT EXECUTED
  10620d:	50                   	push   %eax                           <== NOT EXECUTED
  10620e:	6a 05                	push   $0x5                           <== NOT EXECUTED
  106210:	ff 73 08             	pushl  0x8(%ebx)                      <== NOT EXECUTED
  106213:	89 55 cc             	mov    %edx,-0x34(%ebp)               <== NOT EXECUTED
  106216:	e8 b5 36 00 00       	call   1098d0 <rtems_object_get_name> <== NOT EXECUTED
  10621b:	50                   	push   %eax                           <== NOT EXECUTED
  10621c:	ff 73 08             	pushl  0x8(%ebx)                      <== NOT EXECUTED
  10621f:	68 62 dd 11 00       	push   $0x11dd62                      <== NOT EXECUTED
  106224:	ff 35 f0 3f 12 00    	pushl  0x123ff0                       <== NOT EXECUTED
  10622a:	ff d6                	call   *%esi                          <== NOT EXECUTED
  10622c:	83 c4 20             	add    $0x20,%esp                     <== NOT EXECUTED
  10622f:	eb 16                	jmp    106247 <Stack_check_Dump_threads_usage+0xbf><== NOT EXECUTED
        rtems_object_get_name( the_thread->Object.id, sizeof(name), name )
      );                                                              
    }                                                                 
    #if (CPU_ALLOCATE_INTERRUPT_STACK == TRUE)                        
      else {                                                          
        (*print_handler)( print_context, "0x%08" PRIx32 "  INTR", ~0 );
  106231:	53                   	push   %ebx                           <== NOT EXECUTED
  106232:	6a ff                	push   $0xffffffff                    <== NOT EXECUTED
  106234:	68 6f dd 11 00       	push   $0x11dd6f                      <== NOT EXECUTED
  106239:	ff 35 f0 3f 12 00    	pushl  0x123ff0                       <== NOT EXECUTED
  10623f:	89 55 cc             	mov    %edx,-0x34(%ebp)               <== NOT EXECUTED
  106242:	ff d6                	call   *%esi                          <== NOT EXECUTED
  106244:	83 c4 10             	add    $0x10,%esp                     <== NOT EXECUTED
  106247:	8b 55 cc             	mov    -0x34(%ebp),%edx               <== NOT EXECUTED
                                                                      
  (*print_handler)(                                                   
    print_context,                                                    
    " %010p - %010p %010p  %8" PRId32 "   ",                          
    stack->area,                                                      
    stack->area + stack->size - 1,                                    
  10624a:	8b 42 04             	mov    0x4(%edx),%eax                 <== NOT EXECUTED
      else {                                                          
        (*print_handler)( print_context, "0x%08" PRIx32 "  INTR", ~0 );
      }                                                               
    #endif                                                            
                                                                      
  (*print_handler)(                                                   
  10624d:	51                   	push   %ecx                           <== NOT EXECUTED
  10624e:	51                   	push   %ecx                           <== NOT EXECUTED
  10624f:	ff 75 d4             	pushl  -0x2c(%ebp)                    <== NOT EXECUTED
  106252:	ff 75 d0             	pushl  -0x30(%ebp)                    <== NOT EXECUTED
    print_context,                                                    
    " %010p - %010p %010p  %8" PRId32 "   ",                          
    stack->area,                                                      
    stack->area + stack->size - 1,                                    
  106255:	8b 12                	mov    (%edx),%edx                    <== NOT EXECUTED
      else {                                                          
        (*print_handler)( print_context, "0x%08" PRIx32 "  INTR", ~0 );
      }                                                               
    #endif                                                            
                                                                      
  (*print_handler)(                                                   
  106257:	8d 54 10 ff          	lea    -0x1(%eax,%edx,1),%edx         <== NOT EXECUTED
  10625b:	52                   	push   %edx                           <== NOT EXECUTED
  10625c:	50                   	push   %eax                           <== NOT EXECUTED
  10625d:	68 7d dd 11 00       	push   $0x11dd7d                      <== NOT EXECUTED
  106262:	ff 35 f0 3f 12 00    	pushl  0x123ff0                       <== NOT EXECUTED
  106268:	ff 15 f4 3f 12 00    	call   *0x123ff4                      <== NOT EXECUTED
    stack->area + stack->size - 1,                                    
    current,                                                          
    size                                                              
  );                                                                  
                                                                      
  if (Stack_check_Initialized == 0) {                                 
  10626e:	83 c4 20             	add    $0x20,%esp                     <== NOT EXECUTED
  106271:	83 3d f8 3f 12 00 00 	cmpl   $0x0,0x123ff8                  <== NOT EXECUTED
  106278:	8b 35 f4 3f 12 00    	mov    0x123ff4,%esi                  <== NOT EXECUTED
  10627e:	75 09                	jne    106289 <Stack_check_Dump_threads_usage+0x101><== NOT EXECUTED
    (*print_handler)( print_context, "Unavailable\n" );               
  106280:	52                   	push   %edx                           <== NOT EXECUTED
  106281:	52                   	push   %edx                           <== NOT EXECUTED
  106282:	68 9b dd 11 00       	push   $0x11dd9b                      <== NOT EXECUTED
  106287:	eb 07                	jmp    106290 <Stack_check_Dump_threads_usage+0x108><== NOT EXECUTED
  } else {                                                            
    (*print_handler)( print_context, "%8" PRId32 "\n", used );        
  106289:	50                   	push   %eax                           <== NOT EXECUTED
  10628a:	57                   	push   %edi                           <== NOT EXECUTED
  10628b:	68 a8 dd 11 00       	push   $0x11dda8                      <== NOT EXECUTED
  106290:	ff 35 f0 3f 12 00    	pushl  0x123ff0                       <== NOT EXECUTED
  106296:	ff d6                	call   *%esi                          <== NOT EXECUTED
  106298:	83 c4 10             	add    $0x10,%esp                     <== NOT EXECUTED
  }                                                                   
                                                                      
                                                                      
}                                                                     
  10629b:	8d 65 f4             	lea    -0xc(%ebp),%esp                <== NOT EXECUTED
  10629e:	5b                   	pop    %ebx                           <== NOT EXECUTED
  10629f:	5e                   	pop    %esi                           <== NOT EXECUTED
  1062a0:	5f                   	pop    %edi                           <== NOT EXECUTED
  1062a1:	c9                   	leave                                 <== NOT EXECUTED
  1062a2:	c3                   	ret                                   <== NOT EXECUTED
                                                                      

001062a3 <Stack_check_Initialize>: /* * Stack_check_Initialize */ void Stack_check_Initialize( void ) {
  1062a3:	55                   	push   %ebp                           
  1062a4:	89 e5                	mov    %esp,%ebp                      
  1062a6:	57                   	push   %edi                           
  static    uint32_t pattern[ 4 ] = {                                 
    0xFEEDF00D, 0x0BAD0D06,  /* FEED FOOD to  BAD DOG */              
    0xDEADF00D, 0x600D0D06   /* DEAD FOOD but GOOD DOG */             
  };                                                                  
                                                                      
  if ( Stack_check_Initialized )                                      
  1062a7:	83 3d f8 3f 12 00 00 	cmpl   $0x0,0x123ff8                  
  1062ae:	75 5a                	jne    10630a <Stack_check_Initialize+0x67>
  /*                                                                  
   * Dope the pattern and fill areas                                  
   */                                                                 
  p = Stack_check_Pattern.pattern;                                    
  for ( i = 0; i < PATTERN_SIZE_WORDS; i++ ) {                        
      p[i] = pattern[ i%4 ];                                          
  1062b0:	c7 05 10 43 12 00 0d 	movl   $0xfeedf00d,0x124310           
  1062b7:	f0 ed fe                                                    
  1062ba:	c7 05 14 43 12 00 06 	movl   $0xbad0d06,0x124314            
  1062c1:	0d ad 0b                                                    
  1062c4:	c7 05 18 43 12 00 0d 	movl   $0xdeadf00d,0x124318           
  1062cb:	f0 ad de                                                    
  1062ce:	c7 05 1c 43 12 00 06 	movl   $0x600d0d06,0x12431c           
  1062d5:	0d 0d 60                                                    
  /*                                                                  
   * If appropriate, setup the interrupt stack for high water testing 
   * also.                                                            
   */                                                                 
  #if (CPU_ALLOCATE_INTERRUPT_STACK == TRUE)                          
    if (_CPU_Interrupt_stack_low && _CPU_Interrupt_stack_high) {      
  1062d8:	8b 15 78 46 12 00    	mov    0x124678,%edx                  
  1062de:	85 d2                	test   %edx,%edx                      
  1062e0:	74 1e                	je     106300 <Stack_check_Initialize+0x5d><== NEVER TAKEN
  1062e2:	8b 0d 7c 46 12 00    	mov    0x12467c,%ecx                  
  1062e8:	85 c9                	test   %ecx,%ecx                      
  1062ea:	74 14                	je     106300 <Stack_check_Initialize+0x5d><== NEVER TAKEN
      Stack_check_Interrupt_stack.area = _CPU_Interrupt_stack_low;    
  1062ec:	89 15 24 43 12 00    	mov    %edx,0x124324                  
      Stack_check_Interrupt_stack.size = (char *) _CPU_Interrupt_stack_high -
  1062f2:	29 d1                	sub    %edx,%ecx                      
  1062f4:	89 0d 20 43 12 00    	mov    %ecx,0x124320                  
                                  (char *) _CPU_Interrupt_stack_low;  
      Stack_check_Dope_stack(&Stack_check_Interrupt_stack);           
  1062fa:	b0 a5                	mov    $0xa5,%al                      
  1062fc:	89 d7                	mov    %edx,%edi                      
  1062fe:	f3 aa                	rep stos %al,%es:(%edi)               
   }                                                                  
  #endif                                                              
                                                                      
  Stack_check_Initialized = 1;                                        
  106300:	c7 05 f8 3f 12 00 01 	movl   $0x1,0x123ff8                  
  106307:	00 00 00                                                    
}                                                                     
  10630a:	5f                   	pop    %edi                           
  10630b:	c9                   	leave                                 
  10630c:	c3                   	ret                                   
                                                                      

0010635b <Stack_check_report_blown_task>: Thread_Control *running, bool pattern_ok ) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE; void Stack_check_report_blown_task(Thread_Control *running, bool pattern_ok) {
  10635b:	55                   	push   %ebp                           <== NOT EXECUTED
  10635c:	89 e5                	mov    %esp,%ebp                      <== NOT EXECUTED
  10635e:	56                   	push   %esi                           <== NOT EXECUTED
  10635f:	53                   	push   %ebx                           <== NOT EXECUTED
  106360:	83 ec 3c             	sub    $0x3c,%esp                     <== NOT EXECUTED
  106363:	8b 5d 08             	mov    0x8(%ebp),%ebx                 <== NOT EXECUTED
  106366:	8a 55 0c             	mov    0xc(%ebp),%dl                  <== NOT EXECUTED
  Stack_Control *stack = &running->Start.Initial_stack;               
  void          *pattern_area = Stack_check_Get_pattern(stack);       
  106369:	8b b3 b8 00 00 00    	mov    0xb8(%ebx),%esi                <== NOT EXECUTED
  char           name[32];                                            
                                                                      
  printk("BLOWN STACK!!!\n");                                         
  10636f:	68 ae dd 11 00       	push   $0x11ddae                      <== NOT EXECUTED
  106374:	88 55 d4             	mov    %dl,-0x2c(%ebp)                <== NOT EXECUTED
  106377:	e8 30 16 00 00       	call   1079ac <printk>                <== NOT EXECUTED
  printk("task control block: 0x%08" PRIxPTR "\n", running);          
  10637c:	5a                   	pop    %edx                           <== NOT EXECUTED
  10637d:	59                   	pop    %ecx                           <== NOT EXECUTED
  10637e:	53                   	push   %ebx                           <== NOT EXECUTED
  10637f:	68 be dd 11 00       	push   $0x11ddbe                      <== NOT EXECUTED
  106384:	e8 23 16 00 00       	call   1079ac <printk>                <== NOT EXECUTED
  printk("task ID: 0x%08lx\n", (unsigned long) running->Object.id);   
  106389:	59                   	pop    %ecx                           <== NOT EXECUTED
  10638a:	58                   	pop    %eax                           <== NOT EXECUTED
  10638b:	ff 73 08             	pushl  0x8(%ebx)                      <== NOT EXECUTED
  10638e:	68 db dd 11 00       	push   $0x11dddb                      <== NOT EXECUTED
  106393:	e8 14 16 00 00       	call   1079ac <printk>                <== NOT EXECUTED
  printk(                                                             
  106398:	58                   	pop    %eax                           <== NOT EXECUTED
  106399:	5a                   	pop    %edx                           <== NOT EXECUTED
  10639a:	ff 73 0c             	pushl  0xc(%ebx)                      <== NOT EXECUTED
  10639d:	68 ed dd 11 00       	push   $0x11dded                      <== NOT EXECUTED
  1063a2:	e8 05 16 00 00       	call   1079ac <printk>                <== NOT EXECUTED
    "task name: 0x%08" PRIx32 "\n",                                   
    running->Object.name.name_u32                                     
  );                                                                  
  printk(                                                             
  1063a7:	83 c4 0c             	add    $0xc,%esp                      <== NOT EXECUTED
  1063aa:	8d 45 d8             	lea    -0x28(%ebp),%eax               <== NOT EXECUTED
  1063ad:	50                   	push   %eax                           <== NOT EXECUTED
  1063ae:	6a 20                	push   $0x20                          <== NOT EXECUTED
  1063b0:	ff 73 08             	pushl  0x8(%ebx)                      <== NOT EXECUTED
  1063b3:	e8 18 35 00 00       	call   1098d0 <rtems_object_get_name> <== NOT EXECUTED
  1063b8:	5a                   	pop    %edx                           <== NOT EXECUTED
  1063b9:	59                   	pop    %ecx                           <== NOT EXECUTED
  1063ba:	50                   	push   %eax                           <== NOT EXECUTED
  1063bb:	68 01 de 11 00       	push   $0x11de01                      <== NOT EXECUTED
  1063c0:	e8 e7 15 00 00       	call   1079ac <printk>                <== NOT EXECUTED
  );                                                                  
  printk(                                                             
    "task stack area (%lu Bytes): 0x%08" PRIxPTR " .. 0x%08" PRIxPTR "\n",
    (unsigned long) stack->size,                                      
    stack->area,                                                      
    ((char *) stack->area + stack->size)                              
  1063c5:	8b 8b b8 00 00 00    	mov    0xb8(%ebx),%ecx                <== NOT EXECUTED
  1063cb:	8b 83 b4 00 00 00    	mov    0xb4(%ebx),%eax                <== NOT EXECUTED
  );                                                                  
  printk(                                                             
    "task name string: %s\n",                                         
    rtems_object_get_name(running->Object.id, sizeof(name), name)     
  );                                                                  
  printk(                                                             
  1063d1:	8d 1c 01             	lea    (%ecx,%eax,1),%ebx             <== NOT EXECUTED
  1063d4:	53                   	push   %ebx                           <== NOT EXECUTED
  1063d5:	51                   	push   %ecx                           <== NOT EXECUTED
  1063d6:	50                   	push   %eax                           <== NOT EXECUTED
  1063d7:	68 17 de 11 00       	push   $0x11de17                      <== NOT EXECUTED
  1063dc:	e8 cb 15 00 00       	call   1079ac <printk>                <== NOT EXECUTED
    "task stack area (%lu Bytes): 0x%08" PRIxPTR " .. 0x%08" PRIxPTR "\n",
    (unsigned long) stack->size,                                      
    stack->area,                                                      
    ((char *) stack->area + stack->size)                              
  );                                                                  
  if (!pattern_ok) {                                                  
  1063e1:	83 c4 20             	add    $0x20,%esp                     <== NOT EXECUTED
  1063e4:	8a 55 d4             	mov    -0x2c(%ebp),%dl                <== NOT EXECUTED
  1063e7:	84 d2                	test   %dl,%dl                        <== NOT EXECUTED
  1063e9:	75 17                	jne    106402 <Stack_check_report_blown_task+0xa7><== NOT EXECUTED
) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;                                 
                                                                      
void Stack_check_report_blown_task(Thread_Control *running, bool pattern_ok)
{                                                                     
  Stack_Control *stack = &running->Start.Initial_stack;               
  void          *pattern_area = Stack_check_Get_pattern(stack);       
  1063eb:	8d 46 08             	lea    0x8(%esi),%eax                 <== NOT EXECUTED
    (unsigned long) stack->size,                                      
    stack->area,                                                      
    ((char *) stack->area + stack->size)                              
  );                                                                  
  if (!pattern_ok) {                                                  
    printk(                                                           
  1063ee:	83 c6 18             	add    $0x18,%esi                     <== NOT EXECUTED
  1063f1:	56                   	push   %esi                           <== NOT EXECUTED
  1063f2:	50                   	push   %eax                           <== NOT EXECUTED
  1063f3:	6a 10                	push   $0x10                          <== NOT EXECUTED
  1063f5:	68 48 de 11 00       	push   $0x11de48                      <== NOT EXECUTED
  1063fa:	e8 ad 15 00 00       	call   1079ac <printk>                <== NOT EXECUTED
  1063ff:	83 c4 10             	add    $0x10,%esp                     <== NOT EXECUTED
          rtems_configuration_get_user_multiprocessing_table()->node  
      );                                                              
    }                                                                 
  #endif                                                              
                                                                      
  rtems_fatal_error_occurred(0x81);                                   
  106402:	83 ec 0c             	sub    $0xc,%esp                      <== NOT EXECUTED
  106405:	68 81 00 00 00       	push   $0x81                          <== NOT EXECUTED
  10640a:	e8 79 3c 00 00       	call   10a088 <rtems_fatal_error_occurred><== NOT EXECUTED
                                                                      

0010e26c <_CORE_message_queue_Initialize>: CORE_message_queue_Control *the_message_queue, CORE_message_queue_Attributes *the_message_queue_attributes, uint32_t maximum_pending_messages, size_t maximum_message_size ) {
  10e26c:	55                   	push   %ebp                           
  10e26d:	89 e5                	mov    %esp,%ebp                      
  10e26f:	57                   	push   %edi                           
  10e270:	56                   	push   %esi                           
  10e271:	53                   	push   %ebx                           
  10e272:	83 ec 1c             	sub    $0x1c,%esp                     
  10e275:	8b 5d 08             	mov    0x8(%ebp),%ebx                 
  10e278:	8b 7d 10             	mov    0x10(%ebp),%edi                
  10e27b:	8b 55 14             	mov    0x14(%ebp),%edx                
  size_t message_buffering_required;                                  
  size_t allocated_message_size;                                      
                                                                      
  the_message_queue->maximum_pending_messages   = maximum_pending_messages;
  10e27e:	89 7b 44             	mov    %edi,0x44(%ebx)                
  the_message_queue->number_of_pending_messages = 0;                  
  10e281:	c7 43 48 00 00 00 00 	movl   $0x0,0x48(%ebx)                
  the_message_queue->maximum_message_size       = maximum_message_size;
  10e288:	89 53 4c             	mov    %edx,0x4c(%ebx)                
  /*                                                                  
   *  Round size up to multiple of a pointer for chain init and       
   *  check for overflow on adding overhead to each message.          
   */                                                                 
  allocated_message_size = maximum_message_size;                      
  if (allocated_message_size & (sizeof(uint32_t) - 1)) {              
  10e28b:	89 d0                	mov    %edx,%eax                      
  10e28d:	f6 c2 03             	test   $0x3,%dl                       
  10e290:	74 0c                	je     10e29e <_CORE_message_queue_Initialize+0x32>
    allocated_message_size += sizeof(uint32_t);                       
  10e292:	83 c0 04             	add    $0x4,%eax                      
    allocated_message_size &= ~(sizeof(uint32_t) - 1);                
  10e295:	83 e0 fc             	and    $0xfffffffc,%eax               
  }                                                                   
                                                                      
  if (allocated_message_size < maximum_message_size)                  
    return false;                                                     
  10e298:	31 f6                	xor    %esi,%esi                      
  if (allocated_message_size & (sizeof(uint32_t) - 1)) {              
    allocated_message_size += sizeof(uint32_t);                       
    allocated_message_size &= ~(sizeof(uint32_t) - 1);                
  }                                                                   
                                                                      
  if (allocated_message_size < maximum_message_size)                  
  10e29a:	39 d0                	cmp    %edx,%eax                      
  10e29c:	72 68                	jb     10e306 <_CORE_message_queue_Initialize+0x9a><== NEVER TAKEN
  /*                                                                  
   *  Calculate how much total memory is required for message buffering and
   *  check for overflow on the multiplication.                       
   */                                                                 
  message_buffering_required = (size_t) maximum_pending_messages *    
       (allocated_message_size + sizeof(CORE_message_queue_Buffer_control));
  10e29e:	8d 50 10             	lea    0x10(%eax),%edx                
                                                                      
  /*                                                                  
   *  Calculate how much total memory is required for message buffering and
   *  check for overflow on the multiplication.                       
   */                                                                 
  message_buffering_required = (size_t) maximum_pending_messages *    
  10e2a1:	89 d1                	mov    %edx,%ecx                      
  10e2a3:	0f af cf             	imul   %edi,%ecx                      
       (allocated_message_size + sizeof(CORE_message_queue_Buffer_control));
                                                                      
  if (message_buffering_required < allocated_message_size)            
    return false;                                                     
  10e2a6:	31 f6                	xor    %esi,%esi                      
   *  check for overflow on the multiplication.                       
   */                                                                 
  message_buffering_required = (size_t) maximum_pending_messages *    
       (allocated_message_size + sizeof(CORE_message_queue_Buffer_control));
                                                                      
  if (message_buffering_required < allocated_message_size)            
  10e2a8:	39 c1                	cmp    %eax,%ecx                      
  10e2aa:	72 5a                	jb     10e306 <_CORE_message_queue_Initialize+0x9a><== NEVER TAKEN
                                                                      
  /*                                                                  
   *  Attempt to allocate the message memory                          
   */                                                                 
  the_message_queue->message_buffers = (CORE_message_queue_Buffer *)  
     _Workspace_Allocate( message_buffering_required );               
  10e2ac:	83 ec 0c             	sub    $0xc,%esp                      
  10e2af:	51                   	push   %ecx                           
  10e2b0:	89 55 e4             	mov    %edx,-0x1c(%ebp)               
  10e2b3:	e8 36 e1 ff ff       	call   10c3ee <_Workspace_Allocate>   
    return false;                                                     
                                                                      
  /*                                                                  
   *  Attempt to allocate the message memory                          
   */                                                                 
  the_message_queue->message_buffers = (CORE_message_queue_Buffer *)  
  10e2b8:	89 43 5c             	mov    %eax,0x5c(%ebx)                
     _Workspace_Allocate( message_buffering_required );               
                                                                      
  if (the_message_queue->message_buffers == 0)                        
  10e2bb:	83 c4 10             	add    $0x10,%esp                     
  10e2be:	85 c0                	test   %eax,%eax                      
  10e2c0:	8b 55 e4             	mov    -0x1c(%ebp),%edx               
  10e2c3:	74 41                	je     10e306 <_CORE_message_queue_Initialize+0x9a>
                                                                      
  /*                                                                  
   *  Initialize the pool of inactive messages, pending messages,     
   *  and set of waiting threads.                                     
   */                                                                 
  _Chain_Initialize (                                                 
  10e2c5:	52                   	push   %edx                           
  10e2c6:	57                   	push   %edi                           
  10e2c7:	50                   	push   %eax                           
  10e2c8:	8d 43 60             	lea    0x60(%ebx),%eax                
  10e2cb:	50                   	push   %eax                           
  10e2cc:	e8 df fe ff ff       	call   10e1b0 <_Chain_Initialize>     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  10e2d1:	8d 43 54             	lea    0x54(%ebx),%eax                
  10e2d4:	89 43 50             	mov    %eax,0x50(%ebx)                
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
  10e2d7:	c7 43 54 00 00 00 00 	movl   $0x0,0x54(%ebx)                
 */                                                                   
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  10e2de:	8d 43 50             	lea    0x50(%ebx),%eax                
  10e2e1:	89 43 58             	mov    %eax,0x58(%ebx)                
    allocated_message_size + sizeof( CORE_message_queue_Buffer_control )
  );                                                                  
                                                                      
  _Chain_Initialize_empty( &the_message_queue->Pending_messages );    
                                                                      
  _Thread_queue_Initialize(                                           
  10e2e4:	6a 06                	push   $0x6                           
  10e2e6:	68 80 00 00 00       	push   $0x80                          
  10e2eb:	8b 45 0c             	mov    0xc(%ebp),%eax                 
  10e2ee:	83 38 01             	cmpl   $0x1,(%eax)                    
  10e2f1:	0f 94 c0             	sete   %al                            
  10e2f4:	0f b6 c0             	movzbl %al,%eax                       
  10e2f7:	50                   	push   %eax                           
  10e2f8:	53                   	push   %ebx                           
  10e2f9:	e8 4e d9 ff ff       	call   10bc4c <_Thread_queue_Initialize>
       THREAD_QUEUE_DISCIPLINE_PRIORITY : THREAD_QUEUE_DISCIPLINE_FIFO,
    STATES_WAITING_FOR_MESSAGE,                                       
    CORE_MESSAGE_QUEUE_STATUS_TIMEOUT                                 
  );                                                                  
                                                                      
  return true;                                                        
  10e2fe:	83 c4 20             	add    $0x20,%esp                     
  10e301:	be 01 00 00 00       	mov    $0x1,%esi                      
}                                                                     
  10e306:	89 f0                	mov    %esi,%eax                      
  10e308:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  10e30b:	5b                   	pop    %ebx                           
  10e30c:	5e                   	pop    %esi                           
  10e30d:	5f                   	pop    %edi                           
  10e30e:	c9                   	leave                                 
  10e30f:	c3                   	ret                                   
                                                                      

0010e310 <_CORE_message_queue_Seize>: void *buffer, size_t *size_p, bool wait, Watchdog_Interval timeout ) {
  10e310:	55                   	push   %ebp                           
  10e311:	89 e5                	mov    %esp,%ebp                      
  10e313:	57                   	push   %edi                           
  10e314:	56                   	push   %esi                           
  10e315:	53                   	push   %ebx                           
  10e316:	83 ec 2c             	sub    $0x2c,%esp                     
  10e319:	8b 45 08             	mov    0x8(%ebp),%eax                 
  10e31c:	8b 55 0c             	mov    0xc(%ebp),%edx                 
  10e31f:	89 55 dc             	mov    %edx,-0x24(%ebp)               
  10e322:	8b 55 10             	mov    0x10(%ebp),%edx                
  10e325:	89 55 e4             	mov    %edx,-0x1c(%ebp)               
  10e328:	8b 7d 14             	mov    0x14(%ebp),%edi                
  10e32b:	8b 55 1c             	mov    0x1c(%ebp),%edx                
  10e32e:	89 55 d4             	mov    %edx,-0x2c(%ebp)               
  10e331:	8a 55 18             	mov    0x18(%ebp),%dl                 
  10e334:	88 55 db             	mov    %dl,-0x25(%ebp)                
  ISR_Level                          level;                           
  CORE_message_queue_Buffer_control *the_message;                     
  Thread_Control                    *executing;                       
                                                                      
  executing = _Thread_Executing;                                      
  10e337:	8b 0d 5c 34 12 00    	mov    0x12345c,%ecx                  
  executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; 
  10e33d:	c7 41 34 00 00 00 00 	movl   $0x0,0x34(%ecx)                
  _ISR_Disable( level );                                              
  10e344:	9c                   	pushf                                 
  10e345:	fa                   	cli                                   
  10e346:	8f 45 e0             	popl   -0x20(%ebp)                    
  executing->Wait.return_argument = size_p;                           
  /* Wait.count will be filled in with the message priority */        
  _ISR_Enable( level );                                               
                                                                      
  _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout );   
}                                                                     
  10e349:	8b 50 50             	mov    0x50(%eax),%edx                
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_first( the_chain )                          
    == _Chain_Immutable_tail( the_chain );                            
  10e34c:	8d 58 54             	lea    0x54(%eax),%ebx                
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected(              
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  if ( !_Chain_Is_empty(the_chain))                                   
  10e34f:	39 da                	cmp    %ebx,%edx                      
  10e351:	74 47                	je     10e39a <_CORE_message_queue_Seize+0x8a>
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *old_first = head->next;                                 
  Chain_Node *new_first = old_first->next;                            
  10e353:	8b 32                	mov    (%edx),%esi                    
                                                                      
  head->next = new_first;                                             
  10e355:	89 70 50             	mov    %esi,0x50(%eax)                
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_first_unprotected(        
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  10e358:	8d 58 50             	lea    0x50(%eax),%ebx                
  10e35b:	89 5e 04             	mov    %ebx,0x4(%esi)                 
                                                                      
  executing = _Thread_Executing;                                      
  executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; 
  _ISR_Disable( level );                                              
  the_message = _CORE_message_queue_Get_pending_message( the_message_queue );
  if ( the_message != NULL ) {                                        
  10e35e:	85 d2                	test   %edx,%edx                      
  10e360:	74 38                	je     10e39a <_CORE_message_queue_Seize+0x8a><== NEVER TAKEN
    the_message_queue->number_of_pending_messages -= 1;               
  10e362:	ff 48 48             	decl   0x48(%eax)                     
    _ISR_Enable( level );                                             
  10e365:	ff 75 e0             	pushl  -0x20(%ebp)                    
  10e368:	9d                   	popf                                  
                                                                      
    *size_p = the_message->Contents.size;                             
  10e369:	8b 4a 08             	mov    0x8(%edx),%ecx                 
  10e36c:	89 0f                	mov    %ecx,(%edi)                    
    _Thread_Executing->Wait.count =                                   
  10e36e:	8b 0d 5c 34 12 00    	mov    0x12345c,%ecx                  
  10e374:	c7 41 24 00 00 00 00 	movl   $0x0,0x24(%ecx)                
      _CORE_message_queue_Get_message_priority( the_message );        
    _CORE_message_queue_Copy_buffer(                                  
      the_message->Contents.buffer,                                   
  10e37b:	8d 72 0c             	lea    0xc(%edx),%esi                 
  const void *source,                                                 
  void       *destination,                                            
  size_t      size                                                    
)                                                                     
{                                                                     
  memcpy(destination, source, size);                                  
  10e37e:	8b 0f                	mov    (%edi),%ecx                    
  10e380:	8b 7d e4             	mov    -0x1c(%ebp),%edi               
  10e383:	f3 a4                	rep movsb %ds:(%esi),%es:(%edi)       
RTEMS_INLINE_ROUTINE void _CORE_message_queue_Free_message_buffer (   
  CORE_message_queue_Control        *the_message_queue,               
  CORE_message_queue_Buffer_control *the_message                      
)                                                                     
{                                                                     
  _Chain_Append( &the_message_queue->Inactive_messages, &the_message->Node );
  10e385:	89 55 0c             	mov    %edx,0xc(%ebp)                 
  10e388:	83 c0 60             	add    $0x60,%eax                     
  10e38b:	89 45 08             	mov    %eax,0x8(%ebp)                 
  executing->Wait.return_argument = size_p;                           
  /* Wait.count will be filled in with the message priority */        
  _ISR_Enable( level );                                               
                                                                      
  _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout );   
}                                                                     
  10e38e:	83 c4 2c             	add    $0x2c,%esp                     
  10e391:	5b                   	pop    %ebx                           
  10e392:	5e                   	pop    %esi                           
  10e393:	5f                   	pop    %edi                           
  10e394:	c9                   	leave                                 
  10e395:	e9 ca bb ff ff       	jmp    109f64 <_Chain_Append>         
      return;                                                         
    }                                                                 
    #endif                                                            
  }                                                                   
                                                                      
  if ( !wait ) {                                                      
  10e39a:	80 7d db 00          	cmpb   $0x0,-0x25(%ebp)               
  10e39e:	75 13                	jne    10e3b3 <_CORE_message_queue_Seize+0xa3>
    _ISR_Enable( level );                                             
  10e3a0:	ff 75 e0             	pushl  -0x20(%ebp)                    
  10e3a3:	9d                   	popf                                  
    executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_NOWAIT;
  10e3a4:	c7 41 34 04 00 00 00 	movl   $0x4,0x34(%ecx)                
  executing->Wait.return_argument = size_p;                           
  /* Wait.count will be filled in with the message priority */        
  _ISR_Enable( level );                                               
                                                                      
  _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout );   
}                                                                     
  10e3ab:	83 c4 2c             	add    $0x2c,%esp                     
  10e3ae:	5b                   	pop    %ebx                           
  10e3af:	5e                   	pop    %esi                           
  10e3b0:	5f                   	pop    %edi                           
  10e3b1:	c9                   	leave                                 
  10e3b2:	c3                   	ret                                   
  10e3b3:	c7 40 30 01 00 00 00 	movl   $0x1,0x30(%eax)                
    executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_NOWAIT;
    return;                                                           
  }                                                                   
                                                                      
  _Thread_queue_Enter_critical_section( &the_message_queue->Wait_queue );
  executing->Wait.queue = &the_message_queue->Wait_queue;             
  10e3ba:	89 41 44             	mov    %eax,0x44(%ecx)                
  executing->Wait.id = id;                                            
  10e3bd:	8b 55 dc             	mov    -0x24(%ebp),%edx               
  10e3c0:	89 51 20             	mov    %edx,0x20(%ecx)                
  executing->Wait.return_argument_second.mutable_object = buffer;     
  10e3c3:	8b 55 e4             	mov    -0x1c(%ebp),%edx               
  10e3c6:	89 51 2c             	mov    %edx,0x2c(%ecx)                
  executing->Wait.return_argument = size_p;                           
  10e3c9:	89 79 28             	mov    %edi,0x28(%ecx)                
  /* Wait.count will be filled in with the message priority */        
  _ISR_Enable( level );                                               
  10e3cc:	ff 75 e0             	pushl  -0x20(%ebp)                    
  10e3cf:	9d                   	popf                                  
                                                                      
  _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout );   
  10e3d0:	c7 45 10 fc bc 10 00 	movl   $0x10bcfc,0x10(%ebp)           
  10e3d7:	8b 55 d4             	mov    -0x2c(%ebp),%edx               
  10e3da:	89 55 0c             	mov    %edx,0xc(%ebp)                 
  10e3dd:	89 45 08             	mov    %eax,0x8(%ebp)                 
}                                                                     
  10e3e0:	83 c4 2c             	add    $0x2c,%esp                     
  10e3e3:	5b                   	pop    %ebx                           
  10e3e4:	5e                   	pop    %esi                           
  10e3e5:	5f                   	pop    %edi                           
  10e3e6:	c9                   	leave                                 
  executing->Wait.return_argument_second.mutable_object = buffer;     
  executing->Wait.return_argument = size_p;                           
  /* Wait.count will be filled in with the message priority */        
  _ISR_Enable( level );                                               
                                                                      
  _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout );   
  10e3e7:	e9 34 d6 ff ff       	jmp    10ba20 <_Thread_queue_Enqueue_with_handler>
                                                                      

0010a0b9 <_CORE_mutex_Seize>: Objects_Id _id, bool _wait, Watchdog_Interval _timeout, ISR_Level _level ) {
  10a0b9:	55                   	push   %ebp                           
  10a0ba:	89 e5                	mov    %esp,%ebp                      
  10a0bc:	53                   	push   %ebx                           
  10a0bd:	83 ec 14             	sub    $0x14,%esp                     
  10a0c0:	8b 5d 08             	mov    0x8(%ebp),%ebx                 
  10a0c3:	8a 55 10             	mov    0x10(%ebp),%dl                 
  _CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level ); 
  10a0c6:	a1 44 32 12 00       	mov    0x123244,%eax                  
  10a0cb:	85 c0                	test   %eax,%eax                      
  10a0cd:	74 19                	je     10a0e8 <_CORE_mutex_Seize+0x2f>
  10a0cf:	84 d2                	test   %dl,%dl                        
  10a0d1:	74 15                	je     10a0e8 <_CORE_mutex_Seize+0x2f><== NEVER TAKEN
  10a0d3:	83 3d 9c 33 12 00 01 	cmpl   $0x1,0x12339c                  
  10a0da:	76 0c                	jbe    10a0e8 <_CORE_mutex_Seize+0x2f>
  10a0dc:	53                   	push   %ebx                           
  10a0dd:	6a 12                	push   $0x12                          
  10a0df:	6a 00                	push   $0x0                           
  10a0e1:	6a 00                	push   $0x0                           
  10a0e3:	e8 dc 05 00 00       	call   10a6c4 <_Internal_error_Occurred>
  10a0e8:	51                   	push   %ecx                           
  10a0e9:	51                   	push   %ecx                           
  10a0ea:	8d 45 18             	lea    0x18(%ebp),%eax                
  10a0ed:	50                   	push   %eax                           
  10a0ee:	53                   	push   %ebx                           
  10a0ef:	88 55 f4             	mov    %dl,-0xc(%ebp)                 
  10a0f2:	e8 89 43 00 00       	call   10e480 <_CORE_mutex_Seize_interrupt_trylock>
  10a0f7:	83 c4 10             	add    $0x10,%esp                     
  10a0fa:	85 c0                	test   %eax,%eax                      
  10a0fc:	8a 55 f4             	mov    -0xc(%ebp),%dl                 
  10a0ff:	74 48                	je     10a149 <_CORE_mutex_Seize+0x90>
  10a101:	84 d2                	test   %dl,%dl                        
  10a103:	75 12                	jne    10a117 <_CORE_mutex_Seize+0x5e>
  10a105:	ff 75 18             	pushl  0x18(%ebp)                     
  10a108:	9d                   	popf                                  
  10a109:	a1 5c 34 12 00       	mov    0x12345c,%eax                  
  10a10e:	c7 40 34 01 00 00 00 	movl   $0x1,0x34(%eax)                
  10a115:	eb 32                	jmp    10a149 <_CORE_mutex_Seize+0x90>
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_queue_Enter_critical_section (      
  Thread_queue_Control *the_thread_queue                              
)                                                                     
{                                                                     
  the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;
  10a117:	c7 43 30 01 00 00 00 	movl   $0x1,0x30(%ebx)                
  10a11e:	a1 5c 34 12 00       	mov    0x12345c,%eax                  
  10a123:	89 58 44             	mov    %ebx,0x44(%eax)                
  10a126:	8b 55 0c             	mov    0xc(%ebp),%edx                 
  10a129:	89 50 20             	mov    %edx,0x20(%eax)                
  10a12c:	a1 44 32 12 00       	mov    0x123244,%eax                  
  10a131:	40                   	inc    %eax                           
  10a132:	a3 44 32 12 00       	mov    %eax,0x123244                  
  10a137:	ff 75 18             	pushl  0x18(%ebp)                     
  10a13a:	9d                   	popf                                  
  10a13b:	50                   	push   %eax                           
  10a13c:	50                   	push   %eax                           
  10a13d:	ff 75 14             	pushl  0x14(%ebp)                     
  10a140:	53                   	push   %ebx                           
  10a141:	e8 26 ff ff ff       	call   10a06c <_CORE_mutex_Seize_interrupt_blocking>
  10a146:	83 c4 10             	add    $0x10,%esp                     
}                                                                     
  10a149:	8b 5d fc             	mov    -0x4(%ebp),%ebx                
  10a14c:	c9                   	leave                                 
  10a14d:	c3                   	ret                                   
                                                                      

0010a274 <_CORE_semaphore_Surrender>: CORE_semaphore_Status _CORE_semaphore_Surrender( CORE_semaphore_Control *the_semaphore, Objects_Id id, CORE_semaphore_API_mp_support_callout api_semaphore_mp_support ) {
  10a274:	55                   	push   %ebp                           
  10a275:	89 e5                	mov    %esp,%ebp                      
  10a277:	53                   	push   %ebx                           
  10a278:	83 ec 10             	sub    $0x10,%esp                     
  10a27b:	8b 5d 08             	mov    0x8(%ebp),%ebx                 
  ISR_Level       level;                                              
  CORE_semaphore_Status status;                                       
                                                                      
  status = CORE_SEMAPHORE_STATUS_SUCCESSFUL;                          
                                                                      
  if ( (the_thread = _Thread_queue_Dequeue(&the_semaphore->Wait_queue)) ) {
  10a27e:	53                   	push   %ebx                           
  10a27f:	e8 90 16 00 00       	call   10b914 <_Thread_queue_Dequeue> 
  10a284:	89 c2                	mov    %eax,%edx                      
  10a286:	83 c4 10             	add    $0x10,%esp                     
{                                                                     
  Thread_Control *the_thread;                                         
  ISR_Level       level;                                              
  CORE_semaphore_Status status;                                       
                                                                      
  status = CORE_SEMAPHORE_STATUS_SUCCESSFUL;                          
  10a289:	31 c0                	xor    %eax,%eax                      
                                                                      
  if ( (the_thread = _Thread_queue_Dequeue(&the_semaphore->Wait_queue)) ) {
  10a28b:	85 d2                	test   %edx,%edx                      
  10a28d:	75 15                	jne    10a2a4 <_CORE_semaphore_Surrender+0x30>
    if ( !_Objects_Is_local_id( the_thread->Object.id ) )             
      (*api_semaphore_mp_support) ( the_thread, id );                 
#endif                                                                
                                                                      
  } else {                                                            
    _ISR_Disable( level );                                            
  10a28f:	9c                   	pushf                                 
  10a290:	fa                   	cli                                   
  10a291:	59                   	pop    %ecx                           
      if ( the_semaphore->count < the_semaphore->Attributes.maximum_count )
  10a292:	8b 53 48             	mov    0x48(%ebx),%edx                
        the_semaphore->count += 1;                                    
      else                                                            
        status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED;               
  10a295:	b0 04                	mov    $0x4,%al                       
      (*api_semaphore_mp_support) ( the_thread, id );                 
#endif                                                                
                                                                      
  } else {                                                            
    _ISR_Disable( level );                                            
      if ( the_semaphore->count < the_semaphore->Attributes.maximum_count )
  10a297:	3b 53 40             	cmp    0x40(%ebx),%edx                
  10a29a:	73 06                	jae    10a2a2 <_CORE_semaphore_Surrender+0x2e><== NEVER TAKEN
        the_semaphore->count += 1;                                    
  10a29c:	42                   	inc    %edx                           
  10a29d:	89 53 48             	mov    %edx,0x48(%ebx)                
{                                                                     
  Thread_Control *the_thread;                                         
  ISR_Level       level;                                              
  CORE_semaphore_Status status;                                       
                                                                      
  status = CORE_SEMAPHORE_STATUS_SUCCESSFUL;                          
  10a2a0:	30 c0                	xor    %al,%al                        
    _ISR_Disable( level );                                            
      if ( the_semaphore->count < the_semaphore->Attributes.maximum_count )
        the_semaphore->count += 1;                                    
      else                                                            
        status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED;               
    _ISR_Enable( level );                                             
  10a2a2:	51                   	push   %ecx                           
  10a2a3:	9d                   	popf                                  
  }                                                                   
                                                                      
  return status;                                                      
}                                                                     
  10a2a4:	8b 5d fc             	mov    -0x4(%ebp),%ebx                
  10a2a7:	c9                   	leave                                 
  10a2a8:	c3                   	ret                                   
                                                                      

001093c0 <_Event_Surrender>: */ void _Event_Surrender( Thread_Control *the_thread ) {
  1093c0:	55                   	push   %ebp                           
  1093c1:	89 e5                	mov    %esp,%ebp                      
  1093c3:	57                   	push   %edi                           
  1093c4:	56                   	push   %esi                           
  1093c5:	53                   	push   %ebx                           
  1093c6:	83 ec 2c             	sub    $0x2c,%esp                     
  1093c9:	8b 5d 08             	mov    0x8(%ebp),%ebx                 
  rtems_event_set     event_condition;                                
  rtems_event_set     seized_events;                                  
  rtems_option        option_set;                                     
  RTEMS_API_Control  *api;                                            
                                                                      
  api = the_thread->API_Extensions[ THREAD_API_RTEMS ];               
  1093cc:	8b bb e4 00 00 00    	mov    0xe4(%ebx),%edi                
                                                                      
  option_set = (rtems_option) the_thread->Wait.option;                
  1093d2:	8b 43 30             	mov    0x30(%ebx),%eax                
  1093d5:	89 45 e0             	mov    %eax,-0x20(%ebp)               
                                                                      
  _ISR_Disable( level );                                              
  1093d8:	9c                   	pushf                                 
  1093d9:	fa                   	cli                                   
  1093da:	58                   	pop    %eax                           
  pending_events  = api->pending_events;                              
  1093db:	8b 17                	mov    (%edi),%edx                    
  1093dd:	89 55 d4             	mov    %edx,-0x2c(%ebp)               
  event_condition = (rtems_event_set) the_thread->Wait.count;         
  1093e0:	8b 73 24             	mov    0x24(%ebx),%esi                
  seized_events = _Event_sets_Get( pending_events, event_condition ); 
                                                                      
  /*                                                                  
   *  No events were seized in this operation                         
   */                                                                 
  if ( _Event_sets_Is_empty( seized_events ) ) {                      
  1093e3:	21 f2                	and    %esi,%edx                      
  1093e5:	75 07                	jne    1093ee <_Event_Surrender+0x2e> 
    _ISR_Enable( level );                                             
  1093e7:	50                   	push   %eax                           
  1093e8:	9d                   	popf                                  
    return;                                                           
  1093e9:	e9 af 00 00 00       	jmp    10949d <_Event_Surrender+0xdd> 
                                                                      
  /*                                                                  
   *  If we are in an ISR and sending to the current thread, then     
   *  we have a critical section issue to deal with.                  
   */                                                                 
  if ( _ISR_Is_in_progress() &&                                       
  1093ee:	83 3d 58 34 12 00 00 	cmpl   $0x0,0x123458                  
  1093f5:	74 49                	je     109440 <_Event_Surrender+0x80> 
  1093f7:	3b 1d 5c 34 12 00    	cmp    0x12345c,%ebx                  
  1093fd:	75 41                	jne    109440 <_Event_Surrender+0x80> 
       _Thread_Is_executing( the_thread ) &&                          
       ((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) ||   
  1093ff:	8b 0d 90 34 12 00    	mov    0x123490,%ecx                  
  /*                                                                  
   *  If we are in an ISR and sending to the current thread, then     
   *  we have a critical section issue to deal with.                  
   */                                                                 
  if ( _ISR_Is_in_progress() &&                                       
       _Thread_Is_executing( the_thread ) &&                          
  109405:	83 f9 02             	cmp    $0x2,%ecx                      
  109408:	74 09                	je     109413 <_Event_Surrender+0x53> <== NEVER TAKEN
       ((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) ||   
        (_Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED)) ) {
  10940a:	8b 0d 90 34 12 00    	mov    0x123490,%ecx                  
   *  If we are in an ISR and sending to the current thread, then     
   *  we have a critical section issue to deal with.                  
   */                                                                 
  if ( _ISR_Is_in_progress() &&                                       
       _Thread_Is_executing( the_thread ) &&                          
       ((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) ||   
  109410:	49                   	dec    %ecx                           
  109411:	75 2d                	jne    109440 <_Event_Surrender+0x80> 
        (_Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED)) ) {
    if ( seized_events == event_condition || _Options_Is_any(option_set) ) {
  109413:	39 f2                	cmp    %esi,%edx                      
  109415:	74 06                	je     10941d <_Event_Surrender+0x5d> 
  109417:	f6 45 e0 02          	testb  $0x2,-0x20(%ebp)               
  10941b:	74 1f                	je     10943c <_Event_Surrender+0x7c> <== NEVER TAKEN
RTEMS_INLINE_ROUTINE rtems_event_set _Event_sets_Clear(               
 rtems_event_set the_event_set,                                       
 rtems_event_set the_mask                                             
)                                                                     
{                                                                     
   return ( the_event_set & ~(the_mask) );                            
  10941d:	89 d6                	mov    %edx,%esi                      
  10941f:	f7 d6                	not    %esi                           
  109421:	23 75 d4             	and    -0x2c(%ebp),%esi               
  109424:	89 37                	mov    %esi,(%edi)                    
      api->pending_events = _Event_sets_Clear( pending_events,seized_events );
      the_thread->Wait.count = 0;                                     
  109426:	c7 43 24 00 00 00 00 	movl   $0x0,0x24(%ebx)                
      *(rtems_event_set *)the_thread->Wait.return_argument = seized_events;
  10942d:	8b 4b 28             	mov    0x28(%ebx),%ecx                
  109430:	89 11                	mov    %edx,(%ecx)                    
      _Event_Sync_state = THREAD_BLOCKING_OPERATION_SATISFIED;        
  109432:	c7 05 90 34 12 00 03 	movl   $0x3,0x123490                  
  109439:	00 00 00                                                    
    }                                                                 
    _ISR_Enable( level );                                             
  10943c:	50                   	push   %eax                           
  10943d:	9d                   	popf                                  
    return;                                                           
  10943e:	eb 5d                	jmp    10949d <_Event_Surrender+0xdd> 
  }                                                                   
                                                                      
  /*                                                                  
   *  Otherwise, this is a normal send to another thread              
   */                                                                 
  if ( _States_Is_waiting_for_event( the_thread->current_state ) ) {  
  109440:	f6 43 11 01          	testb  $0x1,0x11(%ebx)                
  109444:	74 55                	je     10949b <_Event_Surrender+0xdb> 
    if ( seized_events == event_condition || _Options_Is_any( option_set ) ) {
  109446:	39 f2                	cmp    %esi,%edx                      
  109448:	74 06                	je     109450 <_Event_Surrender+0x90> 
  10944a:	f6 45 e0 02          	testb  $0x2,-0x20(%ebp)               
  10944e:	74 4b                	je     10949b <_Event_Surrender+0xdb> <== NEVER TAKEN
  109450:	89 d6                	mov    %edx,%esi                      
  109452:	f7 d6                	not    %esi                           
  109454:	23 75 d4             	and    -0x2c(%ebp),%esi               
  109457:	89 37                	mov    %esi,(%edi)                    
      api->pending_events = _Event_sets_Clear( pending_events, seized_events );
      the_thread->Wait.count = 0;                                     
  109459:	c7 43 24 00 00 00 00 	movl   $0x0,0x24(%ebx)                
      *(rtems_event_set *)the_thread->Wait.return_argument = seized_events;
  109460:	8b 4b 28             	mov    0x28(%ebx),%ecx                
  109463:	89 11                	mov    %edx,(%ecx)                    
                                                                      
      _ISR_Flash( level );                                            
  109465:	50                   	push   %eax                           
  109466:	9d                   	popf                                  
  109467:	fa                   	cli                                   
                                                                      
      if ( !_Watchdog_Is_active( &the_thread->Timer ) ) {             
  109468:	83 7b 50 02          	cmpl   $0x2,0x50(%ebx)                
  10946c:	74 06                	je     109474 <_Event_Surrender+0xb4> 
        _ISR_Enable( level );                                         
  10946e:	50                   	push   %eax                           
  10946f:	9d                   	popf                                  
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Unblock (                           
  Thread_Control *the_thread                                          
)                                                                     
{                                                                     
  _Thread_Clear_state( the_thread, STATES_BLOCKED );                  
  109470:	51                   	push   %ecx                           
  109471:	51                   	push   %ecx                           
  109472:	eb 17                	jmp    10948b <_Event_Surrender+0xcb> 
RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate(                       
  Watchdog_Control *the_watchdog                                      
)                                                                     
{                                                                     
                                                                      
  the_watchdog->state = WATCHDOG_REMOVE_IT;                           
  109474:	c7 43 50 03 00 00 00 	movl   $0x3,0x50(%ebx)                
        _Thread_Unblock( the_thread );                                
      } else {                                                        
        _Watchdog_Deactivate( &the_thread->Timer );                   
        _ISR_Enable( level );                                         
  10947b:	50                   	push   %eax                           
  10947c:	9d                   	popf                                  
        (void) _Watchdog_Remove( &the_thread->Timer );                
  10947d:	83 ec 0c             	sub    $0xc,%esp                      
  109480:	8d 43 48             	lea    0x48(%ebx),%eax                
  109483:	50                   	push   %eax                           
  109484:	e8 4b 2e 00 00       	call   10c2d4 <_Watchdog_Remove>      
  109489:	58                   	pop    %eax                           
  10948a:	5a                   	pop    %edx                           
  10948b:	68 f8 ff 03 10       	push   $0x1003fff8                    
  109490:	53                   	push   %ebx                           
  109491:	e8 52 1e 00 00       	call   10b2e8 <_Thread_Clear_state>   
  109496:	83 c4 10             	add    $0x10,%esp                     
  109499:	eb 02                	jmp    10949d <_Event_Surrender+0xdd> 
        _Thread_Unblock( the_thread );                                
      }                                                               
      return;                                                         
    }                                                                 
  }                                                                   
  _ISR_Enable( level );                                               
  10949b:	50                   	push   %eax                           
  10949c:	9d                   	popf                                  
}                                                                     
  10949d:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  1094a0:	5b                   	pop    %ebx                           
  1094a1:	5e                   	pop    %esi                           
  1094a2:	5f                   	pop    %edi                           
  1094a3:	c9                   	leave                                 
  1094a4:	c3                   	ret                                   
                                                                      

001094a8 <_Event_Timeout>: void _Event_Timeout( Objects_Id id, void *ignored ) {
  1094a8:	55                   	push   %ebp                           
  1094a9:	89 e5                	mov    %esp,%ebp                      
  1094ab:	83 ec 20             	sub    $0x20,%esp                     
  Thread_Control    *the_thread;                                      
  Objects_Locations  location;                                        
  ISR_Level          level;                                           
                                                                      
  the_thread = _Thread_Get( id, &location );                          
  1094ae:	8d 45 f4             	lea    -0xc(%ebp),%eax                
  1094b1:	50                   	push   %eax                           
  1094b2:	ff 75 08             	pushl  0x8(%ebp)                      
  1094b5:	e8 66 21 00 00       	call   10b620 <_Thread_Get>           
  switch ( location ) {                                               
  1094ba:	83 c4 10             	add    $0x10,%esp                     
  1094bd:	83 7d f4 00          	cmpl   $0x0,-0xc(%ebp)                
  1094c1:	75 49                	jne    10950c <_Event_Timeout+0x64>   <== NEVER TAKEN
       *                                                              
       *  If it is not satisfied, then it is "nothing happened" and   
       *  this is the "timeout" transition.  After a request is satisfied,
       *  a timeout is not allowed to occur.                          
       */                                                             
      _ISR_Disable( level );                                          
  1094c3:	9c                   	pushf                                 
  1094c4:	fa                   	cli                                   
  1094c5:	5a                   	pop    %edx                           
            _ISR_Enable( level );                                     
            return;                                                   
          }                                                           
        #endif                                                        
                                                                      
        the_thread->Wait.count = 0;                                   
  1094c6:	c7 40 24 00 00 00 00 	movl   $0x0,0x24(%eax)                
        if ( _Thread_Is_executing( the_thread ) ) {                   
  1094cd:	3b 05 5c 34 12 00    	cmp    0x12345c,%eax                  
  1094d3:	75 13                	jne    1094e8 <_Event_Timeout+0x40>   
          if ( _Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )
  1094d5:	8b 0d 90 34 12 00    	mov    0x123490,%ecx                  
  1094db:	49                   	dec    %ecx                           
  1094dc:	75 0a                	jne    1094e8 <_Event_Timeout+0x40>   
            _Event_Sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT;    
  1094de:	c7 05 90 34 12 00 02 	movl   $0x2,0x123490                  
  1094e5:	00 00 00                                                    
        }                                                             
                                                                      
        the_thread->Wait.return_code = RTEMS_TIMEOUT;                 
  1094e8:	c7 40 34 06 00 00 00 	movl   $0x6,0x34(%eax)                
      _ISR_Enable( level );                                           
  1094ef:	52                   	push   %edx                           
  1094f0:	9d                   	popf                                  
  1094f1:	52                   	push   %edx                           
  1094f2:	52                   	push   %edx                           
  1094f3:	68 f8 ff 03 10       	push   $0x1003fff8                    
  1094f8:	50                   	push   %eax                           
  1094f9:	e8 ea 1d 00 00       	call   10b2e8 <_Thread_Clear_state>   
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void )             
{                                                                     
  RTEMS_COMPILER_MEMORY_BARRIER();                                    
  _Thread_Dispatch_disable_level -= 1;                                
  1094fe:	a1 44 32 12 00       	mov    0x123244,%eax                  
  109503:	48                   	dec    %eax                           
  109504:	a3 44 32 12 00       	mov    %eax,0x123244                  
      _Thread_Unblock( the_thread );                                  
      _Thread_Unnest_dispatch();                                      
      break;                                                          
  109509:	83 c4 10             	add    $0x10,%esp                     
    case OBJECTS_REMOTE:  /* impossible */                            
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
}                                                                     
  10950c:	c9                   	leave                                 
  10950d:	c3                   	ret                                   
                                                                      

0010ea57 <_Heap_Extend>: Heap_Control *heap, void *extend_area_begin_ptr, uintptr_t extend_area_size, uintptr_t *extended_size_ptr ) {
  10ea57:	55                   	push   %ebp                           
  10ea58:	89 e5                	mov    %esp,%ebp                      
  10ea5a:	57                   	push   %edi                           
  10ea5b:	56                   	push   %esi                           
  10ea5c:	53                   	push   %ebx                           
  10ea5d:	83 ec 4c             	sub    $0x4c,%esp                     
  10ea60:	8b 5d 08             	mov    0x8(%ebp),%ebx                 
  10ea63:	8b 4d 10             	mov    0x10(%ebp),%ecx                
  Heap_Statistics *const stats = &heap->stats;                        
  Heap_Block *const first_block = heap->first_block;                  
  10ea66:	8b 43 20             	mov    0x20(%ebx),%eax                
  10ea69:	89 45 c0             	mov    %eax,-0x40(%ebp)               
  Heap_Block *start_block = first_block;                              
  Heap_Block *merge_below_block = NULL;                               
  Heap_Block *merge_above_block = NULL;                               
  Heap_Block *link_below_block = NULL;                                
  Heap_Block *link_above_block = NULL;                                
  Heap_Block *extend_first_block = NULL;                              
  10ea6c:	c7 45 e4 00 00 00 00 	movl   $0x0,-0x1c(%ebp)               
  Heap_Block *extend_last_block = NULL;                               
  10ea73:	c7 45 e0 00 00 00 00 	movl   $0x0,-0x20(%ebp)               
  uintptr_t const page_size = heap->page_size;                        
  10ea7a:	8b 53 10             	mov    0x10(%ebx),%edx                
  10ea7d:	89 55 c4             	mov    %edx,-0x3c(%ebp)               
  uintptr_t const min_block_size = heap->min_block_size;              
  10ea80:	8b 43 14             	mov    0x14(%ebx),%eax                
  uintptr_t const extend_area_begin = (uintptr_t) extend_area_begin_ptr;
  uintptr_t const extend_area_end = extend_area_begin + extend_area_size;
  uintptr_t const free_size = stats->free_size;                       
  10ea83:	8b 7b 30             	mov    0x30(%ebx),%edi                
  10ea86:	89 7d bc             	mov    %edi,-0x44(%ebp)               
  uintptr_t extend_first_block_size = 0;                              
  uintptr_t extended_size = 0;                                        
  bool extend_area_ok = false;                                        
                                                                      
  if ( extend_area_end < extend_area_begin ) {                        
    return false;                                                     
  10ea89:	31 f6                	xor    %esi,%esi                      
  uintptr_t const free_size = stats->free_size;                       
  uintptr_t extend_first_block_size = 0;                              
  uintptr_t extended_size = 0;                                        
  bool extend_area_ok = false;                                        
                                                                      
  if ( extend_area_end < extend_area_begin ) {                        
  10ea8b:	8b 7d 0c             	mov    0xc(%ebp),%edi                 
  10ea8e:	01 cf                	add    %ecx,%edi                      
  10ea90:	0f 82 d4 01 00 00    	jb     10ec6a <_Heap_Extend+0x213>    
    return false;                                                     
  }                                                                   
                                                                      
  extend_area_ok = _Heap_Get_first_and_last_block(                    
  10ea96:	52                   	push   %edx                           
  10ea97:	52                   	push   %edx                           
  10ea98:	8d 55 e0             	lea    -0x20(%ebp),%edx               
  10ea9b:	52                   	push   %edx                           
  10ea9c:	8d 55 e4             	lea    -0x1c(%ebp),%edx               
  10ea9f:	52                   	push   %edx                           
  10eaa0:	50                   	push   %eax                           
  10eaa1:	ff 75 c4             	pushl  -0x3c(%ebp)                    
  10eaa4:	51                   	push   %ecx                           
  10eaa5:	ff 75 0c             	pushl  0xc(%ebp)                      
  10eaa8:	e8 3a bd ff ff       	call   10a7e7 <_Heap_Get_first_and_last_block>
    page_size,                                                        
    min_block_size,                                                   
    &extend_first_block,                                              
    &extend_last_block                                                
  );                                                                  
  if (!extend_area_ok ) {                                             
  10eaad:	83 c4 20             	add    $0x20,%esp                     
  10eab0:	84 c0                	test   %al,%al                        
  10eab2:	0f 84 b2 01 00 00    	je     10ec6a <_Heap_Extend+0x213>    
  10eab8:	8b 4d c0             	mov    -0x40(%ebp),%ecx               
  10eabb:	c7 45 cc 00 00 00 00 	movl   $0x0,-0x34(%ebp)               
  10eac2:	c7 45 c8 00 00 00 00 	movl   $0x0,-0x38(%ebp)               
  10eac9:	31 f6                	xor    %esi,%esi                      
  10eacb:	c7 45 d0 00 00 00 00 	movl   $0x0,-0x30(%ebp)               
    return false;                                                     
  }                                                                   
                                                                      
  do {                                                                
    uintptr_t const sub_area_begin = (start_block != first_block) ?   
      (uintptr_t) start_block : heap->area_begin;                     
  10ead2:	8b 43 18             	mov    0x18(%ebx),%eax                
  10ead5:	89 5d b8             	mov    %ebx,-0x48(%ebp)               
  10ead8:	eb 02                	jmp    10eadc <_Heap_Extend+0x85>     
  10eada:	89 c8                	mov    %ecx,%eax                      
    uintptr_t const sub_area_end = start_block->prev_size;            
  10eadc:	8b 19                	mov    (%ecx),%ebx                    
    Heap_Block *const end_block =                                     
      _Heap_Block_of_alloc_area( sub_area_end, page_size );           
                                                                      
    if (                                                              
  10eade:	39 c7                	cmp    %eax,%edi                      
  10eae0:	76 09                	jbe    10eaeb <_Heap_Extend+0x94>     
  10eae2:	39 5d 0c             	cmp    %ebx,0xc(%ebp)                 
  10eae5:	0f 82 7d 01 00 00    	jb     10ec68 <_Heap_Extend+0x211>    
      sub_area_end > extend_area_begin && extend_area_end > sub_area_begin
    ) {                                                               
      return false;                                                   
    }                                                                 
                                                                      
    if ( extend_area_end == sub_area_begin ) {                        
  10eaeb:	39 c7                	cmp    %eax,%edi                      
  10eaed:	74 06                	je     10eaf5 <_Heap_Extend+0x9e>     
      merge_below_block = start_block;                                
    } else if ( extend_area_end < sub_area_end ) {                    
  10eaef:	39 df                	cmp    %ebx,%edi                      
  10eaf1:	72 07                	jb     10eafa <_Heap_Extend+0xa3>     
  10eaf3:	eb 08                	jmp    10eafd <_Heap_Extend+0xa6>     
      sub_area_end > extend_area_begin && extend_area_end > sub_area_begin
    ) {                                                               
      return false;                                                   
    }                                                                 
                                                                      
    if ( extend_area_end == sub_area_begin ) {                        
  10eaf5:	89 4d d0             	mov    %ecx,-0x30(%ebp)               
  10eaf8:	eb 03                	jmp    10eafd <_Heap_Extend+0xa6>     
      merge_below_block = start_block;                                
    } else if ( extend_area_end < sub_area_end ) {                    
  10eafa:	89 4d c8             	mov    %ecx,-0x38(%ebp)               
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(                      
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return value - (value % alignment);                                 
  10eafd:	8d 43 f8             	lea    -0x8(%ebx),%eax                
  10eb00:	89 45 d4             	mov    %eax,-0x2c(%ebp)               
  10eb03:	89 d8                	mov    %ebx,%eax                      
  10eb05:	31 d2                	xor    %edx,%edx                      
  10eb07:	f7 75 c4             	divl   -0x3c(%ebp)                    
  uintptr_t alloc_begin,                                              
  uintptr_t page_size                                                 
)                                                                     
{                                                                     
  return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size )   
    - HEAP_BLOCK_HEADER_SIZE);                                        
  10eb0a:	29 55 d4             	sub    %edx,-0x2c(%ebp)               
      link_below_block = start_block;                                 
    }                                                                 
                                                                      
    if ( sub_area_end == extend_area_begin ) {                        
  10eb0d:	3b 5d 0c             	cmp    0xc(%ebp),%ebx                 
  10eb10:	75 07                	jne    10eb19 <_Heap_Extend+0xc2>     
      start_block->prev_size = extend_area_end;                       
  10eb12:	89 39                	mov    %edi,(%ecx)                    
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_of_alloc_area(           
  uintptr_t alloc_begin,                                              
  uintptr_t page_size                                                 
)                                                                     
{                                                                     
  return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size )   
  10eb14:	8b 75 d4             	mov    -0x2c(%ebp),%esi               
  10eb17:	eb 08                	jmp    10eb21 <_Heap_Extend+0xca>     
                                                                      
      merge_above_block = end_block;                                  
    } else if ( sub_area_end < extend_area_begin ) {                  
  10eb19:	73 06                	jae    10eb21 <_Heap_Extend+0xca>     
  10eb1b:	8b 55 d4             	mov    -0x2c(%ebp),%edx               
  10eb1e:	89 55 cc             	mov    %edx,-0x34(%ebp)               
    - 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;                
  10eb21:	8b 45 d4             	mov    -0x2c(%ebp),%eax               
  10eb24:	8b 48 04             	mov    0x4(%eax),%ecx                 
  10eb27:	83 e1 fe             	and    $0xfffffffe,%ecx               
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(                      
  const Heap_Block *block,                                            
  uintptr_t offset                                                    
)                                                                     
{                                                                     
  return (Heap_Block *) ((uintptr_t) block + offset);                 
  10eb2a:	01 c1                	add    %eax,%ecx                      
      link_above_block = end_block;                                   
    }                                                                 
                                                                      
    start_block = _Heap_Block_at( end_block, _Heap_Block_size( end_block ) );
  } while ( start_block != first_block );                             
  10eb2c:	3b 4d c0             	cmp    -0x40(%ebp),%ecx               
  10eb2f:	75 a9                	jne    10eada <_Heap_Extend+0x83>     
  10eb31:	8b 5d b8             	mov    -0x48(%ebp),%ebx               
                                                                      
  if ( extend_area_begin < heap->area_begin ) {                       
  10eb34:	8b 55 0c             	mov    0xc(%ebp),%edx                 
  10eb37:	3b 53 18             	cmp    0x18(%ebx),%edx                
  10eb3a:	73 05                	jae    10eb41 <_Heap_Extend+0xea>     
    heap->area_begin = extend_area_begin;                             
  10eb3c:	89 53 18             	mov    %edx,0x18(%ebx)                
  10eb3f:	eb 08                	jmp    10eb49 <_Heap_Extend+0xf2>     
  } else if ( heap->area_end < extend_area_end ) {                    
  10eb41:	39 7b 1c             	cmp    %edi,0x1c(%ebx)                
  10eb44:	73 03                	jae    10eb49 <_Heap_Extend+0xf2>     
    heap->area_end = extend_area_end;                                 
  10eb46:	89 7b 1c             	mov    %edi,0x1c(%ebx)                
  }                                                                   
                                                                      
  extend_first_block_size =                                           
    (uintptr_t) extend_last_block - (uintptr_t) extend_first_block;   
  10eb49:	8b 45 e0             	mov    -0x20(%ebp),%eax               
  10eb4c:	8b 55 e4             	mov    -0x1c(%ebp),%edx               
    heap->area_begin = extend_area_begin;                             
  } else if ( heap->area_end < extend_area_end ) {                    
    heap->area_end = extend_area_end;                                 
  }                                                                   
                                                                      
  extend_first_block_size =                                           
  10eb4f:	89 c1                	mov    %eax,%ecx                      
  10eb51:	29 d1                	sub    %edx,%ecx                      
  10eb53:	89 4d d4             	mov    %ecx,-0x2c(%ebp)               
    (uintptr_t) extend_last_block - (uintptr_t) extend_first_block;   
                                                                      
  extend_first_block->prev_size = extend_area_end;                    
  10eb56:	89 3a                	mov    %edi,(%edx)                    
  extend_first_block->size_and_flag =                                 
    extend_first_block_size | HEAP_PREV_BLOCK_USED;                   
  10eb58:	83 c9 01             	or     $0x1,%ecx                      
  10eb5b:	89 4a 04             	mov    %ecx,0x4(%edx)                 
  _Heap_Protection_block_initialize( heap, extend_first_block );      
                                                                      
  extend_last_block->prev_size = extend_first_block_size;             
  10eb5e:	8b 4d d4             	mov    -0x2c(%ebp),%ecx               
  10eb61:	89 08                	mov    %ecx,(%eax)                    
  extend_last_block->size_and_flag = 0;                               
  10eb63:	c7 40 04 00 00 00 00 	movl   $0x0,0x4(%eax)                 
  _Heap_Protection_block_initialize( heap, extend_last_block );       
                                                                      
  if ( (uintptr_t) extend_first_block < (uintptr_t) heap->first_block ) {
  10eb6a:	39 53 20             	cmp    %edx,0x20(%ebx)                
  10eb6d:	76 05                	jbe    10eb74 <_Heap_Extend+0x11d>    
    heap->first_block = extend_first_block;                           
  10eb6f:	89 53 20             	mov    %edx,0x20(%ebx)                
  10eb72:	eb 08                	jmp    10eb7c <_Heap_Extend+0x125>    
  } else if ( (uintptr_t) extend_last_block > (uintptr_t) heap->last_block ) {
  10eb74:	39 43 24             	cmp    %eax,0x24(%ebx)                
  10eb77:	73 03                	jae    10eb7c <_Heap_Extend+0x125>    
    heap->last_block = extend_last_block;                             
  10eb79:	89 43 24             	mov    %eax,0x24(%ebx)                
  }                                                                   
                                                                      
  if ( merge_below_block != NULL ) {                                  
  10eb7c:	83 7d d0 00          	cmpl   $0x0,-0x30(%ebp)               
  10eb80:	74 3b                	je     10ebbd <_Heap_Extend+0x166>    
  Heap_Control *heap,                                                 
  uintptr_t extend_area_begin,                                        
  Heap_Block *first_block                                             
)                                                                     
{                                                                     
  uintptr_t const page_size = heap->page_size;                        
  10eb82:	8b 43 10             	mov    0x10(%ebx),%eax                
  10eb85:	89 45 d4             	mov    %eax,-0x2c(%ebp)               
  uintptr_t const new_first_block_alloc_begin =                       
    _Heap_Align_up( extend_area_begin + HEAP_BLOCK_HEADER_SIZE, page_size );
  10eb88:	8b 4d 0c             	mov    0xc(%ebp),%ecx                 
  10eb8b:	83 c1 08             	add    $0x8,%ecx                      
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_up(                        
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  uintptr_t remainder = value % alignment;                            
  10eb8e:	89 c8                	mov    %ecx,%eax                      
  10eb90:	31 d2                	xor    %edx,%edx                      
  10eb92:	f7 75 d4             	divl   -0x2c(%ebp)                    
                                                                      
  if ( remainder != 0 ) {                                             
  10eb95:	85 d2                	test   %edx,%edx                      
  10eb97:	74 05                	je     10eb9e <_Heap_Extend+0x147>    
    return value - remainder + alignment;                             
  10eb99:	03 4d d4             	add    -0x2c(%ebp),%ecx               
  10eb9c:	29 d1                	sub    %edx,%ecx                      
  uintptr_t const new_first_block_begin =                             
  10eb9e:	8d 51 f8             	lea    -0x8(%ecx),%edx                
  uintptr_t const first_block_begin = (uintptr_t) first_block;        
  uintptr_t const new_first_block_size =                              
    first_block_begin - new_first_block_begin;                        
  Heap_Block *const new_first_block = (Heap_Block *) new_first_block_begin;
                                                                      
  new_first_block->prev_size = first_block->prev_size;                
  10eba1:	8b 45 d0             	mov    -0x30(%ebp),%eax               
  10eba4:	8b 00                	mov    (%eax),%eax                    
  10eba6:	89 41 f8             	mov    %eax,-0x8(%ecx)                
  uintptr_t const new_first_block_alloc_begin =                       
    _Heap_Align_up( extend_area_begin + HEAP_BLOCK_HEADER_SIZE, page_size );
  uintptr_t const new_first_block_begin =                             
    new_first_block_alloc_begin - HEAP_BLOCK_HEADER_SIZE;             
  uintptr_t const first_block_begin = (uintptr_t) first_block;        
  uintptr_t const new_first_block_size =                              
  10eba9:	8b 45 d0             	mov    -0x30(%ebp),%eax               
  10ebac:	29 d0                	sub    %edx,%eax                      
    first_block_begin - new_first_block_begin;                        
  Heap_Block *const new_first_block = (Heap_Block *) new_first_block_begin;
                                                                      
  new_first_block->prev_size = first_block->prev_size;                
  new_first_block->size_and_flag = new_first_block_size | HEAP_PREV_BLOCK_USED;
  10ebae:	83 c8 01             	or     $0x1,%eax                      
  10ebb1:	89 42 04             	mov    %eax,0x4(%edx)                 
                                                                      
  _Heap_Free_block( heap, new_first_block );                          
  10ebb4:	89 d8                	mov    %ebx,%eax                      
  10ebb6:	e8 81 fe ff ff       	call   10ea3c <_Heap_Free_block>      
  10ebbb:	eb 14                	jmp    10ebd1 <_Heap_Extend+0x17a>    
    heap->last_block = extend_last_block;                             
  }                                                                   
                                                                      
  if ( merge_below_block != NULL ) {                                  
    _Heap_Merge_below( heap, extend_area_begin, merge_below_block );  
  } else if ( link_below_block != NULL ) {                            
  10ebbd:	83 7d c8 00          	cmpl   $0x0,-0x38(%ebp)               
  10ebc1:	74 0e                	je     10ebd1 <_Heap_Extend+0x17a>    
    _Heap_Link_below(                                                 
  10ebc3:	8b 55 e0             	mov    -0x20(%ebp),%edx               
{                                                                     
  uintptr_t const last_block_begin = (uintptr_t) last_block;          
  uintptr_t const link_begin = (uintptr_t) link;                      
                                                                      
  last_block->size_and_flag =                                         
    (link_begin - last_block_begin) | HEAP_PREV_BLOCK_USED;           
  10ebc6:	8b 45 c8             	mov    -0x38(%ebp),%eax               
  10ebc9:	29 d0                	sub    %edx,%eax                      
  10ebcb:	83 c8 01             	or     $0x1,%eax                      
  10ebce:	89 42 04             	mov    %eax,0x4(%edx)                 
      link_below_block,                                               
      extend_last_block                                               
    );                                                                
  }                                                                   
                                                                      
  if ( merge_above_block != NULL ) {                                  
  10ebd1:	85 f6                	test   %esi,%esi                      
  10ebd3:	74 30                	je     10ec05 <_Heap_Extend+0x1ae>    
)                                                                     
{                                                                     
  uintptr_t const page_size = heap->page_size;                        
  uintptr_t const last_block_begin = (uintptr_t) last_block;          
  uintptr_t const last_block_new_size = _Heap_Align_down(             
    extend_area_end - last_block_begin - HEAP_BLOCK_HEADER_SIZE,      
  10ebd5:	83 ef 08             	sub    $0x8,%edi                      
  uintptr_t extend_area_end                                           
)                                                                     
{                                                                     
  uintptr_t const page_size = heap->page_size;                        
  uintptr_t const last_block_begin = (uintptr_t) last_block;          
  uintptr_t const last_block_new_size = _Heap_Align_down(             
  10ebd8:	29 f7                	sub    %esi,%edi                      
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(                      
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return value - (value % alignment);                                 
  10ebda:	89 f8                	mov    %edi,%eax                      
  10ebdc:	31 d2                	xor    %edx,%edx                      
  10ebde:	f7 73 10             	divl   0x10(%ebx)                     
  10ebe1:	29 d7                	sub    %edx,%edi                      
  );                                                                  
  Heap_Block *const new_last_block =                                  
    _Heap_Block_at( last_block, last_block_new_size );                
                                                                      
  new_last_block->size_and_flag =                                     
    (last_block->size_and_flag - last_block_new_size)                 
  10ebe3:	8b 46 04             	mov    0x4(%esi),%eax                 
  10ebe6:	29 f8                	sub    %edi,%eax                      
      | HEAP_PREV_BLOCK_USED;                                         
  10ebe8:	83 c8 01             	or     $0x1,%eax                      
  10ebeb:	89 44 37 04          	mov    %eax,0x4(%edi,%esi,1)          
RTEMS_INLINE_ROUTINE void _Heap_Block_set_size(                       
  Heap_Block *block,                                                  
  uintptr_t size                                                      
)                                                                     
{                                                                     
  uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED;       
  10ebef:	8b 46 04             	mov    0x4(%esi),%eax                 
  10ebf2:	83 e0 01             	and    $0x1,%eax                      
                                                                      
  block->size_and_flag = size | flag;                                 
  10ebf5:	09 f8                	or     %edi,%eax                      
  10ebf7:	89 46 04             	mov    %eax,0x4(%esi)                 
                                                                      
  _Heap_Block_set_size( last_block, last_block_new_size );            
                                                                      
  _Heap_Free_block( heap, last_block );                               
  10ebfa:	89 f2                	mov    %esi,%edx                      
  10ebfc:	89 d8                	mov    %ebx,%eax                      
  10ebfe:	e8 39 fe ff ff       	call   10ea3c <_Heap_Free_block>      
  10ec03:	eb 21                	jmp    10ec26 <_Heap_Extend+0x1cf>    
    );                                                                
  }                                                                   
                                                                      
  if ( merge_above_block != NULL ) {                                  
    _Heap_Merge_above( heap, merge_above_block, extend_area_end );    
  } else if ( link_above_block != NULL ) {                            
  10ec05:	83 7d cc 00          	cmpl   $0x0,-0x34(%ebp)               
  10ec09:	74 1b                	je     10ec26 <_Heap_Extend+0x1cf>    
    _Heap_Link_above(                                                 
  10ec0b:	8b 4d e0             	mov    -0x20(%ebp),%ecx               
)                                                                     
{                                                                     
  uintptr_t const link_begin = (uintptr_t) link;                      
  uintptr_t const first_block_begin = (uintptr_t) first_block;        
                                                                      
  _Heap_Block_set_size( link, first_block_begin - link_begin );       
  10ec0e:	8b 45 e4             	mov    -0x1c(%ebp),%eax               
  10ec11:	2b 45 cc             	sub    -0x34(%ebp),%eax               
RTEMS_INLINE_ROUTINE void _Heap_Block_set_size(                       
  Heap_Block *block,                                                  
  uintptr_t size                                                      
)                                                                     
{                                                                     
  uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED;       
  10ec14:	8b 7d cc             	mov    -0x34(%ebp),%edi               
  10ec17:	8b 57 04             	mov    0x4(%edi),%edx                 
  10ec1a:	83 e2 01             	and    $0x1,%edx                      
                                                                      
  block->size_and_flag = size | flag;                                 
  10ec1d:	09 d0                	or     %edx,%eax                      
  10ec1f:	89 47 04             	mov    %eax,0x4(%edi)                 
                                                                      
  last_block->size_and_flag |= HEAP_PREV_BLOCK_USED;                  
  10ec22:	83 49 04 01          	orl    $0x1,0x4(%ecx)                 
      extend_first_block,                                             
      extend_last_block                                               
    );                                                                
  }                                                                   
                                                                      
  if ( merge_below_block == NULL && merge_above_block == NULL ) {     
  10ec26:	85 f6                	test   %esi,%esi                      
  10ec28:	75 10                	jne    10ec3a <_Heap_Extend+0x1e3>    
  10ec2a:	83 7d d0 00          	cmpl   $0x0,-0x30(%ebp)               
  10ec2e:	75 0a                	jne    10ec3a <_Heap_Extend+0x1e3>    
    _Heap_Free_block( heap, extend_first_block );                     
  10ec30:	8b 55 e4             	mov    -0x1c(%ebp),%edx               
  10ec33:	89 d8                	mov    %ebx,%eax                      
  10ec35:	e8 02 fe ff ff       	call   10ea3c <_Heap_Free_block>      
 */                                                                   
RTEMS_INLINE_ROUTINE void _Heap_Set_last_block_size( Heap_Control *heap )
{                                                                     
  _Heap_Block_set_size(                                               
    heap->last_block,                                                 
    (uintptr_t) heap->first_block - (uintptr_t) heap->last_block      
  10ec3a:	8b 53 24             	mov    0x24(%ebx),%edx                
 * This feature will be used to terminate the scattered heap area list.  See
 * also _Heap_Extend().                                               
 */                                                                   
RTEMS_INLINE_ROUTINE void _Heap_Set_last_block_size( Heap_Control *heap )
{                                                                     
  _Heap_Block_set_size(                                               
  10ec3d:	8b 43 20             	mov    0x20(%ebx),%eax                
  10ec40:	29 d0                	sub    %edx,%eax                      
RTEMS_INLINE_ROUTINE void _Heap_Block_set_size(                       
  Heap_Block *block,                                                  
  uintptr_t size                                                      
)                                                                     
{                                                                     
  uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED;       
  10ec42:	8b 4a 04             	mov    0x4(%edx),%ecx                 
  10ec45:	83 e1 01             	and    $0x1,%ecx                      
                                                                      
  block->size_and_flag = size | flag;                                 
  10ec48:	09 c8                	or     %ecx,%eax                      
  10ec4a:	89 42 04             	mov    %eax,0x4(%edx)                 
  }                                                                   
                                                                      
  _Heap_Set_last_block_size( heap );                                  
                                                                      
  extended_size = stats->free_size - free_size;                       
  10ec4d:	8b 43 30             	mov    0x30(%ebx),%eax                
  10ec50:	2b 45 bc             	sub    -0x44(%ebp),%eax               
                                                                      
  /* Statistics */                                                    
  stats->size += extended_size;                                       
  10ec53:	01 43 2c             	add    %eax,0x2c(%ebx)                
                                                                      
  if ( extended_size_ptr != NULL )                                    
    *extended_size_ptr = extended_size;                               
                                                                      
  return true;                                                        
  10ec56:	be 01 00 00 00       	mov    $0x1,%esi                      
  extended_size = stats->free_size - free_size;                       
                                                                      
  /* Statistics */                                                    
  stats->size += extended_size;                                       
                                                                      
  if ( extended_size_ptr != NULL )                                    
  10ec5b:	83 7d 14 00          	cmpl   $0x0,0x14(%ebp)                
  10ec5f:	74 09                	je     10ec6a <_Heap_Extend+0x213>    <== NEVER TAKEN
    *extended_size_ptr = extended_size;                               
  10ec61:	8b 55 14             	mov    0x14(%ebp),%edx                
  10ec64:	89 02                	mov    %eax,(%edx)                    
  10ec66:	eb 02                	jmp    10ec6a <_Heap_Extend+0x213>    
      _Heap_Block_of_alloc_area( sub_area_end, page_size );           
                                                                      
    if (                                                              
      sub_area_end > extend_area_begin && extend_area_end > sub_area_begin
    ) {                                                               
      return false;                                                   
  10ec68:	31 f6                	xor    %esi,%esi                      
                                                                      
  if ( extended_size_ptr != NULL )                                    
    *extended_size_ptr = extended_size;                               
                                                                      
  return true;                                                        
}                                                                     
  10ec6a:	89 f0                	mov    %esi,%eax                      
  10ec6c:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  10ec6f:	5b                   	pop    %ebx                           
  10ec70:	5e                   	pop    %esi                           
  10ec71:	5f                   	pop    %edi                           
  10ec72:	c9                   	leave                                 
  10ec73:	c3                   	ret                                   
                                                                      

0010e70c <_Heap_Free>: return do_free; } #endif bool _Heap_Free( Heap_Control *heap, void *alloc_begin_ptr ) {
  10e70c:	55                   	push   %ebp                           
  10e70d:	89 e5                	mov    %esp,%ebp                      
  10e70f:	57                   	push   %edi                           
  10e710:	56                   	push   %esi                           
  10e711:	53                   	push   %ebx                           
  10e712:	83 ec 14             	sub    $0x14,%esp                     
  10e715:	8b 4d 08             	mov    0x8(%ebp),%ecx                 
  10e718:	8b 55 0c             	mov    0xc(%ebp),%edx                 
   * If NULL return true so a free on NULL is considered a valid release. This
   * is a special case that could be handled by the in heap check how-ever that
   * would result in false being returned which is wrong.             
   */                                                                 
  if ( alloc_begin_ptr == NULL ) {                                    
    return true;                                                      
  10e71b:	b0 01                	mov    $0x1,%al                       
  /*                                                                  
   * If NULL return true so a free on NULL is considered a valid release. This
   * is a special case that could be handled by the in heap check how-ever that
   * would result in false being returned which is wrong.             
   */                                                                 
  if ( alloc_begin_ptr == NULL ) {                                    
  10e71d:	85 d2                	test   %edx,%edx                      
  10e71f:	0f 84 4b 01 00 00    	je     10e870 <_Heap_Free+0x164>      
  10e725:	8d 5a f8             	lea    -0x8(%edx),%ebx                
  10e728:	89 d0                	mov    %edx,%eax                      
  10e72a:	31 d2                	xor    %edx,%edx                      
  10e72c:	f7 71 10             	divl   0x10(%ecx)                     
  uintptr_t alloc_begin,                                              
  uintptr_t page_size                                                 
)                                                                     
{                                                                     
  return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size )   
    - HEAP_BLOCK_HEADER_SIZE);                                        
  10e72f:	29 d3                	sub    %edx,%ebx                      
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           
  10e731:	8b 41 20             	mov    0x20(%ecx),%eax                
  10e734:	89 45 ec             	mov    %eax,-0x14(%ebp)               
    && (uintptr_t) block <= (uintptr_t) heap->last_block;             
  10e737:	31 d2                	xor    %edx,%edx                      
  10e739:	39 c3                	cmp    %eax,%ebx                      
  10e73b:	72 08                	jb     10e745 <_Heap_Free+0x39>       
  10e73d:	31 d2                	xor    %edx,%edx                      
  10e73f:	39 59 24             	cmp    %ebx,0x24(%ecx)                
  10e742:	0f 93 c2             	setae  %dl                            
                                                                      
  alloc_begin = (uintptr_t) alloc_begin_ptr;                          
  block = _Heap_Block_of_alloc_area( alloc_begin, heap->page_size );  
                                                                      
  if ( !_Heap_Is_block_in_heap( heap, block ) ) {                     
    return false;                                                     
  10e745:	31 c0                	xor    %eax,%eax                      
  }                                                                   
                                                                      
  alloc_begin = (uintptr_t) alloc_begin_ptr;                          
  block = _Heap_Block_of_alloc_area( alloc_begin, heap->page_size );  
                                                                      
  if ( !_Heap_Is_block_in_heap( heap, block ) ) {                     
  10e747:	85 d2                	test   %edx,%edx                      
  10e749:	0f 84 21 01 00 00    	je     10e870 <_Heap_Free+0x164>      
  --stats->used_blocks;                                               
  ++stats->frees;                                                     
  stats->free_size += block_size;                                     
                                                                      
  return( true );                                                     
}                                                                     
  10e74f:	8b 43 04             	mov    0x4(%ebx),%eax                 
  10e752:	89 45 f0             	mov    %eax,-0x10(%ebp)               
    - 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;                
  10e755:	89 c6                	mov    %eax,%esi                      
  10e757:	83 e6 fe             	and    $0xfffffffe,%esi               
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(                      
  const Heap_Block *block,                                            
  uintptr_t offset                                                    
)                                                                     
{                                                                     
  return (Heap_Block *) ((uintptr_t) block + offset);                 
  10e75a:	8d 14 33             	lea    (%ebx,%esi,1),%edx             
  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;             
  10e75d:	31 ff                	xor    %edi,%edi                      
  10e75f:	3b 55 ec             	cmp    -0x14(%ebp),%edx               
  10e762:	72 0a                	jb     10e76e <_Heap_Free+0x62>       <== NEVER TAKEN
  10e764:	31 c0                	xor    %eax,%eax                      
  10e766:	39 51 24             	cmp    %edx,0x24(%ecx)                
  10e769:	0f 93 c0             	setae  %al                            
  10e76c:	89 c7                	mov    %eax,%edi                      
                                                                      
  block_size = _Heap_Block_size( block );                             
  next_block = _Heap_Block_at( block, block_size );                   
                                                                      
  if ( !_Heap_Is_block_in_heap( heap, next_block ) ) {                
    return false;                                                     
  10e76e:	31 c0                	xor    %eax,%eax                      
  _Heap_Protection_block_check( heap, block );                        
                                                                      
  block_size = _Heap_Block_size( block );                             
  next_block = _Heap_Block_at( block, block_size );                   
                                                                      
  if ( !_Heap_Is_block_in_heap( heap, next_block ) ) {                
  10e770:	85 ff                	test   %edi,%edi                      
  10e772:	0f 84 f8 00 00 00    	je     10e870 <_Heap_Free+0x164>      <== NEVER TAKEN
  --stats->used_blocks;                                               
  ++stats->frees;                                                     
  stats->free_size += block_size;                                     
                                                                      
  return( true );                                                     
}                                                                     
  10e778:	8b 7a 04             	mov    0x4(%edx),%edi                 
    return false;                                                     
  }                                                                   
                                                                      
  _Heap_Protection_block_check( heap, next_block );                   
                                                                      
  if ( !_Heap_Is_prev_used( next_block ) ) {                          
  10e77b:	f7 c7 01 00 00 00    	test   $0x1,%edi                      
  10e781:	0f 84 e9 00 00 00    	je     10e870 <_Heap_Free+0x164>      <== NEVER TAKEN
    - HEAP_BLOCK_HEADER_SIZE);                                        
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block )
{                                                                     
  return block->size_and_flag & ~HEAP_PREV_BLOCK_USED;                
  10e787:	83 e7 fe             	and    $0xfffffffe,%edi               
  10e78a:	89 7d e8             	mov    %edi,-0x18(%ebp)               
  if ( !_Heap_Protection_determine_block_free( heap, block ) ) {      
    return true;                                                      
  }                                                                   
                                                                      
  next_block_size = _Heap_Block_size( next_block );                   
  next_is_free = next_block != heap->last_block                       
  10e78d:	8b 41 24             	mov    0x24(%ecx),%eax                
  10e790:	89 45 e4             	mov    %eax,-0x1c(%ebp)               
    && !_Heap_Is_prev_used( _Heap_Block_at( next_block, next_block_size ));
  10e793:	31 c0                	xor    %eax,%eax                      
  10e795:	3b 55 e4             	cmp    -0x1c(%ebp),%edx               
  10e798:	74 0a                	je     10e7a4 <_Heap_Free+0x98>       
  10e79a:	31 c0                	xor    %eax,%eax                      
  10e79c:	f6 44 3a 04 01       	testb  $0x1,0x4(%edx,%edi,1)          
  10e7a1:	0f 94 c0             	sete   %al                            
  if ( !_Heap_Protection_determine_block_free( heap, block ) ) {      
    return true;                                                      
  }                                                                   
                                                                      
  next_block_size = _Heap_Block_size( next_block );                   
  next_is_free = next_block != heap->last_block                       
  10e7a4:	88 45 e3             	mov    %al,-0x1d(%ebp)                
    && !_Heap_Is_prev_used( _Heap_Block_at( next_block, next_block_size ));
                                                                      
  if ( !_Heap_Is_prev_used( block ) ) {                               
  10e7a7:	f6 45 f0 01          	testb  $0x1,-0x10(%ebp)               
  10e7ab:	75 62                	jne    10e80f <_Heap_Free+0x103>      
    uintptr_t const prev_size = block->prev_size;                     
  10e7ad:	8b 03                	mov    (%ebx),%eax                    
  10e7af:	89 45 f0             	mov    %eax,-0x10(%ebp)               
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(                      
  const Heap_Block *block,                                            
  uintptr_t offset                                                    
)                                                                     
{                                                                     
  return (Heap_Block *) ((uintptr_t) block + offset);                 
  10e7b2:	29 c3                	sub    %eax,%ebx                      
  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;             
  10e7b4:	31 ff                	xor    %edi,%edi                      
  10e7b6:	3b 5d ec             	cmp    -0x14(%ebp),%ebx               
  10e7b9:	72 0a                	jb     10e7c5 <_Heap_Free+0xb9>       <== NEVER TAKEN
  10e7bb:	31 c0                	xor    %eax,%eax                      
  10e7bd:	39 5d e4             	cmp    %ebx,-0x1c(%ebp)               
  10e7c0:	0f 93 c0             	setae  %al                            
  10e7c3:	89 c7                	mov    %eax,%edi                      
    Heap_Block * const prev_block = _Heap_Block_at( block, -prev_size );
                                                                      
    if ( !_Heap_Is_block_in_heap( heap, prev_block ) ) {              
      _HAssert( false );                                              
      return( false );                                                
  10e7c5:	31 c0                	xor    %eax,%eax                      
                                                                      
  if ( !_Heap_Is_prev_used( block ) ) {                               
    uintptr_t const prev_size = block->prev_size;                     
    Heap_Block * const prev_block = _Heap_Block_at( block, -prev_size );
                                                                      
    if ( !_Heap_Is_block_in_heap( heap, prev_block ) ) {              
  10e7c7:	85 ff                	test   %edi,%edi                      
  10e7c9:	0f 84 a1 00 00 00    	je     10e870 <_Heap_Free+0x164>      <== NEVER TAKEN
      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) ) {                        
  10e7cf:	f6 43 04 01          	testb  $0x1,0x4(%ebx)                 
  10e7d3:	0f 84 97 00 00 00    	je     10e870 <_Heap_Free+0x164>      <== NEVER TAKEN
      _HAssert( false );                                              
      return( false );                                                
    }                                                                 
                                                                      
    if ( next_is_free ) {       /* coalesce both */                   
  10e7d9:	80 7d e3 00          	cmpb   $0x0,-0x1d(%ebp)               
  10e7dd:	74 1a                	je     10e7f9 <_Heap_Free+0xed>       
      uintptr_t const size = block_size + prev_size + next_block_size;
  10e7df:	8b 45 e8             	mov    -0x18(%ebp),%eax               
  10e7e2:	8d 04 06             	lea    (%esi,%eax,1),%eax             
  10e7e5:	03 45 f0             	add    -0x10(%ebp),%eax               
  return _Heap_Free_list_tail(heap)->prev;                            
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE void _Heap_Free_list_remove( Heap_Block *block ) 
{                                                                     
  Heap_Block *next = block->next;                                     
  10e7e8:	8b 7a 08             	mov    0x8(%edx),%edi                 
  Heap_Block *prev = block->prev;                                     
  10e7eb:	8b 52 0c             	mov    0xc(%edx),%edx                 
                                                                      
  prev->next = next;                                                  
  10e7ee:	89 7a 08             	mov    %edi,0x8(%edx)                 
  next->prev = prev;                                                  
  10e7f1:	89 57 0c             	mov    %edx,0xc(%edi)                 
      _Heap_Free_list_remove( next_block );                           
      stats->free_blocks -= 1;                                        
  10e7f4:	ff 49 38             	decl   0x38(%ecx)                     
  10e7f7:	eb 33                	jmp    10e82c <_Heap_Free+0x120>      
      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;                  
  10e7f9:	8b 45 f0             	mov    -0x10(%ebp),%eax               
  10e7fc:	8d 04 06             	lea    (%esi,%eax,1),%eax             
      prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED;        
  10e7ff:	89 c7                	mov    %eax,%edi                      
  10e801:	83 cf 01             	or     $0x1,%edi                      
  10e804:	89 7b 04             	mov    %edi,0x4(%ebx)                 
      next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;             
  10e807:	83 62 04 fe          	andl   $0xfffffffe,0x4(%edx)          
      next_block->prev_size = size;                                   
  10e80b:	89 02                	mov    %eax,(%edx)                    
  10e80d:	eb 56                	jmp    10e865 <_Heap_Free+0x159>      
    }                                                                 
  } else if ( next_is_free ) {    /* coalesce next */                 
  10e80f:	80 7d e3 00          	cmpb   $0x0,-0x1d(%ebp)               
  10e813:	74 24                	je     10e839 <_Heap_Free+0x12d>      
    uintptr_t const size = block_size + next_block_size;              
  10e815:	8b 45 e8             	mov    -0x18(%ebp),%eax               
  10e818:	01 f0                	add    %esi,%eax                      
RTEMS_INLINE_ROUTINE void _Heap_Free_list_replace(                    
  Heap_Block *old_block,                                              
  Heap_Block *new_block                                               
)                                                                     
{                                                                     
  Heap_Block *next = old_block->next;                                 
  10e81a:	8b 7a 08             	mov    0x8(%edx),%edi                 
  Heap_Block *prev = old_block->prev;                                 
  10e81d:	8b 52 0c             	mov    0xc(%edx),%edx                 
                                                                      
  new_block->next = next;                                             
  10e820:	89 7b 08             	mov    %edi,0x8(%ebx)                 
  new_block->prev = prev;                                             
  10e823:	89 53 0c             	mov    %edx,0xc(%ebx)                 
                                                                      
  next->prev = new_block;                                             
  10e826:	89 5f 0c             	mov    %ebx,0xc(%edi)                 
  prev->next = new_block;                                             
  10e829:	89 5a 08             	mov    %ebx,0x8(%edx)                 
    _Heap_Free_list_replace( next_block, block );                     
    block->size_and_flag = size | HEAP_PREV_BLOCK_USED;               
  10e82c:	89 c2                	mov    %eax,%edx                      
  10e82e:	83 ca 01             	or     $0x1,%edx                      
  10e831:	89 53 04             	mov    %edx,0x4(%ebx)                 
    next_block  = _Heap_Block_at( block, size );                      
    next_block->prev_size = size;                                     
  10e834:	89 04 03             	mov    %eax,(%ebx,%eax,1)             
  10e837:	eb 2c                	jmp    10e865 <_Heap_Free+0x159>      
RTEMS_INLINE_ROUTINE void _Heap_Free_list_insert_after(               
  Heap_Block *block_before,                                           
  Heap_Block *new_block                                               
)                                                                     
{                                                                     
  Heap_Block *next = block_before->next;                              
  10e839:	8b 41 08             	mov    0x8(%ecx),%eax                 
                                                                      
  new_block->next = next;                                             
  10e83c:	89 43 08             	mov    %eax,0x8(%ebx)                 
  new_block->prev = block_before;                                     
  10e83f:	89 4b 0c             	mov    %ecx,0xc(%ebx)                 
  block_before->next = new_block;                                     
  10e842:	89 59 08             	mov    %ebx,0x8(%ecx)                 
  next->prev = new_block;                                             
  10e845:	89 58 0c             	mov    %ebx,0xc(%eax)                 
  } 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;         
  10e848:	89 f0                	mov    %esi,%eax                      
  10e84a:	83 c8 01             	or     $0x1,%eax                      
  10e84d:	89 43 04             	mov    %eax,0x4(%ebx)                 
    next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;               
  10e850:	83 62 04 fe          	andl   $0xfffffffe,0x4(%edx)          
    next_block->prev_size = block_size;                               
  10e854:	89 32                	mov    %esi,(%edx)                    
                                                                      
    /* Statistics */                                                  
    ++stats->free_blocks;                                             
  10e856:	8b 41 38             	mov    0x38(%ecx),%eax                
  10e859:	40                   	inc    %eax                           
  10e85a:	89 41 38             	mov    %eax,0x38(%ecx)                
    if ( stats->max_free_blocks < stats->free_blocks ) {              
  10e85d:	39 41 3c             	cmp    %eax,0x3c(%ecx)                
  10e860:	73 03                	jae    10e865 <_Heap_Free+0x159>      
      stats->max_free_blocks = stats->free_blocks;                    
  10e862:	89 41 3c             	mov    %eax,0x3c(%ecx)                
    }                                                                 
  }                                                                   
                                                                      
  /* Statistics */                                                    
  --stats->used_blocks;                                               
  10e865:	ff 49 40             	decl   0x40(%ecx)                     
  ++stats->frees;                                                     
  10e868:	ff 41 50             	incl   0x50(%ecx)                     
  stats->free_size += block_size;                                     
  10e86b:	01 71 30             	add    %esi,0x30(%ecx)                
                                                                      
  return( true );                                                     
  10e86e:	b0 01                	mov    $0x1,%al                       
}                                                                     
  10e870:	83 c4 14             	add    $0x14,%esp                     
  10e873:	5b                   	pop    %ebx                           
  10e874:	5e                   	pop    %esi                           
  10e875:	5f                   	pop    %edi                           
  10e876:	c9                   	leave                                 
  10e877:	c3                   	ret                                   
                                                                      

0011c048 <_Heap_Resize_block>: void *alloc_begin_ptr, uintptr_t new_alloc_size, uintptr_t *old_size, uintptr_t *new_size ) {
  11c048:	55                   	push   %ebp                           
  11c049:	89 e5                	mov    %esp,%ebp                      
  11c04b:	57                   	push   %edi                           
  11c04c:	56                   	push   %esi                           
  11c04d:	53                   	push   %ebx                           
  11c04e:	83 ec 2c             	sub    $0x2c,%esp                     
  11c051:	8b 5d 08             	mov    0x8(%ebp),%ebx                 
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(                      
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return value - (value % alignment);                                 
  11c054:	8b 4d 0c             	mov    0xc(%ebp),%ecx                 
  11c057:	83 e9 08             	sub    $0x8,%ecx                      
  11c05a:	8b 45 0c             	mov    0xc(%ebp),%eax                 
  11c05d:	31 d2                	xor    %edx,%edx                      
  11c05f:	f7 73 10             	divl   0x10(%ebx)                     
  uintptr_t alloc_begin,                                              
  uintptr_t page_size                                                 
)                                                                     
{                                                                     
  return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size )   
    - HEAP_BLOCK_HEADER_SIZE);                                        
  11c062:	29 d1                	sub    %edx,%ecx                      
                                                                      
  uintptr_t const alloc_begin = (uintptr_t) alloc_begin_ptr;          
                                                                      
  Heap_Block *const block = _Heap_Block_of_alloc_area( alloc_begin, page_size );
                                                                      
  *old_size = 0;                                                      
  11c064:	8b 45 14             	mov    0x14(%ebp),%eax                
  11c067:	c7 00 00 00 00 00    	movl   $0x0,(%eax)                    
  *new_size = 0;                                                      
  11c06d:	8b 55 18             	mov    0x18(%ebp),%edx                
  11c070:	c7 02 00 00 00 00    	movl   $0x0,(%edx)                    
      new_alloc_size,                                                 
      old_size,                                                       
      new_size                                                        
    );                                                                
  }                                                                   
  return HEAP_RESIZE_FATAL_ERROR;                                     
  11c076:	b8 02 00 00 00       	mov    $0x2,%eax                      
  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;             
  11c07b:	39 4b 20             	cmp    %ecx,0x20(%ebx)                
  11c07e:	0f 87 a4 00 00 00    	ja     11c128 <_Heap_Resize_block+0xe0>
  11c084:	39 4b 24             	cmp    %ecx,0x24(%ebx)                
  11c087:	0f 82 9b 00 00 00    	jb     11c128 <_Heap_Resize_block+0xe0><== NEVER TAKEN
    - HEAP_BLOCK_HEADER_SIZE);                                        
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block )
{                                                                     
  return block->size_and_flag & ~HEAP_PREV_BLOCK_USED;                
  11c08d:	8b 51 04             	mov    0x4(%ecx),%edx                 
  11c090:	83 e2 fe             	and    $0xfffffffe,%edx               
{                                                                     
  Heap_Statistics *const stats = &heap->stats;                        
                                                                      
  uintptr_t const block_begin = (uintptr_t) block;                    
  uintptr_t block_size = _Heap_Block_size( block );                   
  uintptr_t block_end = block_begin + block_size;                     
  11c093:	8d 3c 11             	lea    (%ecx,%edx,1),%edi             
                                                                      
  uintptr_t alloc_size = block_end - alloc_begin + HEAP_ALLOC_BONUS;  
  11c096:	89 f8                	mov    %edi,%eax                      
  11c098:	2b 45 0c             	sub    0xc(%ebp),%eax                 
  11c09b:	83 c0 04             	add    $0x4,%eax                      
  11c09e:	89 45 e4             	mov    %eax,-0x1c(%ebp)               
  11c0a1:	8b 77 04             	mov    0x4(%edi),%esi                 
  11c0a4:	83 e6 fe             	and    $0xfffffffe,%esi               
  11c0a7:	89 75 d4             	mov    %esi,-0x2c(%ebp)               
                                                                      
RTEMS_INLINE_ROUTINE bool _Heap_Is_free(                              
  const Heap_Block *block                                             
)                                                                     
{                                                                     
  return !_Heap_Is_used( block );                                     
  11c0aa:	f6 44 37 04 01       	testb  $0x1,0x4(%edi,%esi,1)          
  11c0af:	0f 94 45 e3          	sete   -0x1d(%ebp)                    
  bool next_block_is_free = _Heap_Is_free( next_block );;             
                                                                      
  _HAssert( _Heap_Is_block_in_heap( heap, next_block ) );             
  _HAssert( _Heap_Is_prev_used( next_block ) );                       
                                                                      
  *old_size = alloc_size;                                             
  11c0b3:	8b 75 14             	mov    0x14(%ebp),%esi                
  11c0b6:	89 06                	mov    %eax,(%esi)                    
                                                                      
  if ( next_block_is_free ) {                                         
  11c0b8:	80 7d e3 00          	cmpb   $0x0,-0x1d(%ebp)               
  11c0bc:	74 0b                	je     11c0c9 <_Heap_Resize_block+0x81>
    block_size += next_block_size;                                    
  11c0be:	03 55 d4             	add    -0x2c(%ebp),%edx               
    alloc_size += next_block_size;                                    
  11c0c1:	8b 75 d4             	mov    -0x2c(%ebp),%esi               
  11c0c4:	01 f0                	add    %esi,%eax                      
  11c0c6:	89 45 e4             	mov    %eax,-0x1c(%ebp)               
  }                                                                   
                                                                      
  if ( new_alloc_size > alloc_size ) {                                
    return HEAP_RESIZE_UNSATISFIED;                                   
  11c0c9:	b8 01 00 00 00       	mov    $0x1,%eax                      
  if ( next_block_is_free ) {                                         
    block_size += next_block_size;                                    
    alloc_size += next_block_size;                                    
  }                                                                   
                                                                      
  if ( new_alloc_size > alloc_size ) {                                
  11c0ce:	8b 75 e4             	mov    -0x1c(%ebp),%esi               
  11c0d1:	39 75 10             	cmp    %esi,0x10(%ebp)                
  11c0d4:	77 52                	ja     11c128 <_Heap_Resize_block+0xe0>
    return HEAP_RESIZE_UNSATISFIED;                                   
  }                                                                   
                                                                      
  if ( next_block_is_free ) {                                         
  11c0d6:	80 7d e3 00          	cmpb   $0x0,-0x1d(%ebp)               
  11c0da:	74 25                	je     11c101 <_Heap_Resize_block+0xb9>
RTEMS_INLINE_ROUTINE void _Heap_Block_set_size(                       
  Heap_Block *block,                                                  
  uintptr_t size                                                      
)                                                                     
{                                                                     
  uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED;       
  11c0dc:	8b 41 04             	mov    0x4(%ecx),%eax                 
  11c0df:	83 e0 01             	and    $0x1,%eax                      
                                                                      
  block->size_and_flag = size | flag;                                 
  11c0e2:	09 d0                	or     %edx,%eax                      
  11c0e4:	89 41 04             	mov    %eax,0x4(%ecx)                 
  return _Heap_Free_list_tail(heap)->prev;                            
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE void _Heap_Free_list_remove( Heap_Block *block ) 
{                                                                     
  Heap_Block *next = block->next;                                     
  11c0e7:	8b 47 08             	mov    0x8(%edi),%eax                 
  Heap_Block *prev = block->prev;                                     
  11c0ea:	8b 7f 0c             	mov    0xc(%edi),%edi                 
                                                                      
  prev->next = next;                                                  
  11c0ed:	89 47 08             	mov    %eax,0x8(%edi)                 
  next->prev = prev;                                                  
  11c0f0:	89 78 0c             	mov    %edi,0xc(%eax)                 
    _Heap_Block_set_size( block, block_size );                        
                                                                      
    _Heap_Free_list_remove( next_block );                             
                                                                      
    next_block = _Heap_Block_at( block, block_size );                 
    next_block->size_and_flag |= HEAP_PREV_BLOCK_USED;                
  11c0f3:	83 4c 11 04 01       	orl    $0x1,0x4(%ecx,%edx,1)          
                                                                      
    /* Statistics */                                                  
    --stats->free_blocks;                                             
  11c0f8:	ff 4b 38             	decl   0x38(%ebx)                     
    stats->free_size -= next_block_size;                              
  11c0fb:	8b 45 d4             	mov    -0x2c(%ebp),%eax               
  11c0fe:	29 43 30             	sub    %eax,0x30(%ebx)                
  }                                                                   
                                                                      
  block = _Heap_Block_allocate( heap, block, alloc_begin, new_alloc_size );
  11c101:	ff 75 10             	pushl  0x10(%ebp)                     
  11c104:	ff 75 0c             	pushl  0xc(%ebp)                      
  11c107:	51                   	push   %ecx                           
  11c108:	53                   	push   %ebx                           
  11c109:	e8 d8 e4 fe ff       	call   10a5e6 <_Heap_Block_allocate>  
    - 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;                
  11c10e:	8b 50 04             	mov    0x4(%eax),%edx                 
  11c111:	83 e2 fe             	and    $0xfffffffe,%edx               
                                                                      
  block_size = _Heap_Block_size( block );                             
  next_block = _Heap_Block_at( block, block_size );                   
  *new_size = (uintptr_t) next_block - alloc_begin + HEAP_ALLOC_BONUS;
  11c114:	2b 45 0c             	sub    0xc(%ebp),%eax                 
  11c117:	8d 44 10 04          	lea    0x4(%eax,%edx,1),%eax          
  11c11b:	8b 55 18             	mov    0x18(%ebp),%edx                
  11c11e:	89 02                	mov    %eax,(%edx)                    
                                                                      
  /* Statistics */                                                    
  ++stats->resizes;                                                   
  11c120:	ff 43 54             	incl   0x54(%ebx)                     
  11c123:	83 c4 10             	add    $0x10,%esp                     
                                                                      
  return HEAP_RESIZE_SUCCESSFUL;                                      
  11c126:	31 c0                	xor    %eax,%eax                      
      old_size,                                                       
      new_size                                                        
    );                                                                
  }                                                                   
  return HEAP_RESIZE_FATAL_ERROR;                                     
}                                                                     
  11c128:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  11c12b:	5b                   	pop    %ebx                           
  11c12c:	5e                   	pop    %esi                           
  11c12d:	5f                   	pop    %edi                           
  11c12e:	c9                   	leave                                 
  11c12f:	c3                   	ret                                   
                                                                      

0011c130 <_Heap_Size_of_alloc_area>: bool _Heap_Size_of_alloc_area( Heap_Control *heap, void *alloc_begin_ptr, uintptr_t *alloc_size ) {
  11c130:	55                   	push   %ebp                           
  11c131:	89 e5                	mov    %esp,%ebp                      
  11c133:	57                   	push   %edi                           
  11c134:	56                   	push   %esi                           
  11c135:	53                   	push   %ebx                           
  11c136:	8b 5d 08             	mov    0x8(%ebp),%ebx                 
  11c139:	8b 75 0c             	mov    0xc(%ebp),%esi                 
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(                      
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return value - (value % alignment);                                 
  11c13c:	8d 4e f8             	lea    -0x8(%esi),%ecx                
  11c13f:	89 f0                	mov    %esi,%eax                      
  11c141:	31 d2                	xor    %edx,%edx                      
  11c143:	f7 73 10             	divl   0x10(%ebx)                     
  uintptr_t alloc_begin,                                              
  uintptr_t page_size                                                 
)                                                                     
{                                                                     
  return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size )   
    - HEAP_BLOCK_HEADER_SIZE);                                        
  11c146:	29 d1                	sub    %edx,%ecx                      
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           
  11c148:	8b 53 20             	mov    0x20(%ebx),%edx                
    && (uintptr_t) block <= (uintptr_t) heap->last_block;             
  11c14b:	31 ff                	xor    %edi,%edi                      
  11c14d:	39 d1                	cmp    %edx,%ecx                      
  11c14f:	72 0a                	jb     11c15b <_Heap_Size_of_alloc_area+0x2b>
  11c151:	31 c0                	xor    %eax,%eax                      
  11c153:	39 4b 24             	cmp    %ecx,0x24(%ebx)                
  11c156:	0f 93 c0             	setae  %al                            
  11c159:	89 c7                	mov    %eax,%edi                      
  Heap_Block *block = _Heap_Block_of_alloc_area( alloc_begin, page_size );
  Heap_Block *next_block = NULL;                                      
  uintptr_t block_size = 0;                                           
                                                                      
  if ( !_Heap_Is_block_in_heap( heap, block ) ) {                     
    return false;                                                     
  11c15b:	31 c0                	xor    %eax,%eax                      
  uintptr_t const alloc_begin = (uintptr_t) alloc_begin_ptr;          
  Heap_Block *block = _Heap_Block_of_alloc_area( alloc_begin, page_size );
  Heap_Block *next_block = NULL;                                      
  uintptr_t block_size = 0;                                           
                                                                      
  if ( !_Heap_Is_block_in_heap( heap, block ) ) {                     
  11c15d:	85 ff                	test   %edi,%edi                      
  11c15f:	74 30                	je     11c191 <_Heap_Size_of_alloc_area+0x61>
    - 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;                
  11c161:	8b 41 04             	mov    0x4(%ecx),%eax                 
  11c164:	83 e0 fe             	and    $0xfffffffe,%eax               
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(                      
  const Heap_Block *block,                                            
  uintptr_t offset                                                    
)                                                                     
{                                                                     
  return (Heap_Block *) ((uintptr_t) block + offset);                 
  11c167:	01 c1                	add    %eax,%ecx                      
  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;             
  11c169:	31 ff                	xor    %edi,%edi                      
  11c16b:	39 d1                	cmp    %edx,%ecx                      
  11c16d:	72 0a                	jb     11c179 <_Heap_Size_of_alloc_area+0x49><== NEVER TAKEN
  11c16f:	31 c0                	xor    %eax,%eax                      
  11c171:	39 4b 24             	cmp    %ecx,0x24(%ebx)                
  11c174:	0f 93 c0             	setae  %al                            
  11c177:	89 c7                	mov    %eax,%edi                      
                                                                      
  if (                                                                
    !_Heap_Is_block_in_heap( heap, next_block )                       
      || !_Heap_Is_prev_used( next_block )                            
  ) {                                                                 
    return false;                                                     
  11c179:	31 c0                	xor    %eax,%eax                      
  }                                                                   
                                                                      
  block_size = _Heap_Block_size( block );                             
  next_block = _Heap_Block_at( block, block_size );                   
                                                                      
  if (                                                                
  11c17b:	85 ff                	test   %edi,%edi                      
  11c17d:	74 12                	je     11c191 <_Heap_Size_of_alloc_area+0x61><== NEVER TAKEN
    !_Heap_Is_block_in_heap( heap, next_block )                       
      || !_Heap_Is_prev_used( next_block )                            
  11c17f:	f6 41 04 01          	testb  $0x1,0x4(%ecx)                 
  11c183:	74 0c                	je     11c191 <_Heap_Size_of_alloc_area+0x61><== NEVER TAKEN
  ) {                                                                 
    return false;                                                     
  }                                                                   
                                                                      
  *alloc_size = (uintptr_t) next_block + HEAP_ALLOC_BONUS - alloc_begin;
  11c185:	29 f1                	sub    %esi,%ecx                      
  11c187:	8d 51 04             	lea    0x4(%ecx),%edx                 
  11c18a:	8b 45 10             	mov    0x10(%ebp),%eax                
  11c18d:	89 10                	mov    %edx,(%eax)                    
                                                                      
  return true;                                                        
  11c18f:	b0 01                	mov    $0x1,%al                       
}                                                                     
  11c191:	5b                   	pop    %ebx                           
  11c192:	5e                   	pop    %esi                           
  11c193:	5f                   	pop    %edi                           
  11c194:	c9                   	leave                                 
  11c195:	c3                   	ret                                   
                                                                      

0010b0de <_Heap_Walk>: bool _Heap_Walk( Heap_Control *heap, int source, bool dump ) {
  10b0de:	55                   	push   %ebp                           
  10b0df:	89 e5                	mov    %esp,%ebp                      
  10b0e1:	57                   	push   %edi                           
  10b0e2:	56                   	push   %esi                           
  10b0e3:	53                   	push   %ebx                           
  10b0e4:	83 ec 4c             	sub    $0x4c,%esp                     
  10b0e7:	8b 75 08             	mov    0x8(%ebp),%esi                 
  10b0ea:	8b 5d 0c             	mov    0xc(%ebp),%ebx                 
  uintptr_t const page_size = heap->page_size;                        
  10b0ed:	8b 46 10             	mov    0x10(%esi),%eax                
  10b0f0:	89 45 d8             	mov    %eax,-0x28(%ebp)               
  uintptr_t const min_block_size = heap->min_block_size;              
  10b0f3:	8b 4e 14             	mov    0x14(%esi),%ecx                
  10b0f6:	89 4d d4             	mov    %ecx,-0x2c(%ebp)               
  Heap_Block *const first_block = heap->first_block;                  
  10b0f9:	8b 46 20             	mov    0x20(%esi),%eax                
  10b0fc:	89 45 d0             	mov    %eax,-0x30(%ebp)               
  Heap_Block *const last_block = heap->last_block;                    
  10b0ff:	8b 4e 24             	mov    0x24(%esi),%ecx                
  10b102:	89 4d c8             	mov    %ecx,-0x38(%ebp)               
  Heap_Block *block = first_block;                                    
  Heap_Walk_printer printer = dump ?                                  
    _Heap_Walk_print : _Heap_Walk_print_nothing;                      
  10b105:	c7 45 e4 a0 b0 10 00 	movl   $0x10b0a0,-0x1c(%ebp)          
  10b10c:	80 7d 10 00          	cmpb   $0x0,0x10(%ebp)                
  10b110:	74 07                	je     10b119 <_Heap_Walk+0x3b>       
  10b112:	c7 45 e4 a5 b0 10 00 	movl   $0x10b0a5,-0x1c(%ebp)          
                                                                      
  if ( !_System_state_Is_up( _System_state_Get() ) ) {                
    return true;                                                      
  10b119:	b0 01                	mov    $0x1,%al                       
  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() ) ) {                
  10b11b:	83 3d 44 64 12 00 03 	cmpl   $0x3,0x126444                  
  10b122:	0f 85 e8 02 00 00    	jne    10b410 <_Heap_Walk+0x332>      
  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)(                                                         
  10b128:	52                   	push   %edx                           
  10b129:	ff 76 0c             	pushl  0xc(%esi)                      
  10b12c:	ff 76 08             	pushl  0x8(%esi)                      
  10b12f:	ff 75 c8             	pushl  -0x38(%ebp)                    
  10b132:	ff 75 d0             	pushl  -0x30(%ebp)                    
  10b135:	ff 76 1c             	pushl  0x1c(%esi)                     
  10b138:	ff 76 18             	pushl  0x18(%esi)                     
  10b13b:	ff 75 d4             	pushl  -0x2c(%ebp)                    
  10b13e:	ff 75 d8             	pushl  -0x28(%ebp)                    
  10b141:	68 4d eb 11 00       	push   $0x11eb4d                      
  10b146:	6a 00                	push   $0x0                           
  10b148:	53                   	push   %ebx                           
  10b149:	ff 55 e4             	call   *-0x1c(%ebp)                   
    heap->area_begin, heap->area_end,                                 
    first_block, last_block,                                          
    first_free_block, last_free_block                                 
  );                                                                  
                                                                      
  if ( page_size == 0 ) {                                             
  10b14c:	83 c4 30             	add    $0x30,%esp                     
  10b14f:	83 7d d8 00          	cmpl   $0x0,-0x28(%ebp)               
  10b153:	75 0b                	jne    10b160 <_Heap_Walk+0x82>       
    (*printer)( source, true, "page size is zero\n" );                
  10b155:	50                   	push   %eax                           
  10b156:	68 de eb 11 00       	push   $0x11ebde                      
  10b15b:	e9 6b 02 00 00       	jmp    10b3cb <_Heap_Walk+0x2ed>      
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Addresses_Is_aligned( (void *) page_size ) ) {               
  10b160:	f6 45 d8 03          	testb  $0x3,-0x28(%ebp)               
  10b164:	74 0d                	je     10b173 <_Heap_Walk+0x95>       
    (*printer)(                                                       
  10b166:	ff 75 d8             	pushl  -0x28(%ebp)                    
  10b169:	68 f1 eb 11 00       	push   $0x11ebf1                      
  10b16e:	e9 58 02 00 00       	jmp    10b3cb <_Heap_Walk+0x2ed>      
RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned(                           
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return (value % alignment) == 0;                                    
  10b173:	8b 45 d4             	mov    -0x2c(%ebp),%eax               
  10b176:	31 d2                	xor    %edx,%edx                      
  10b178:	f7 75 d8             	divl   -0x28(%ebp)                    
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Heap_Is_aligned( min_block_size, page_size ) ) {             
  10b17b:	85 d2                	test   %edx,%edx                      
  10b17d:	74 0d                	je     10b18c <_Heap_Walk+0xae>       
    (*printer)(                                                       
  10b17f:	ff 75 d4             	pushl  -0x2c(%ebp)                    
  10b182:	68 0f ec 11 00       	push   $0x11ec0f                      
  10b187:	e9 3f 02 00 00       	jmp    10b3cb <_Heap_Walk+0x2ed>      
                                                                      
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Alloc_area_of_block(             
  const Heap_Block *block                                             
)                                                                     
{                                                                     
  return (uintptr_t) block + HEAP_BLOCK_HEADER_SIZE;                  
  10b18c:	8b 45 d0             	mov    -0x30(%ebp),%eax               
  10b18f:	83 c0 08             	add    $0x8,%eax                      
RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned(                           
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return (value % alignment) == 0;                                    
  10b192:	31 d2                	xor    %edx,%edx                      
  10b194:	f7 75 d8             	divl   -0x28(%ebp)                    
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if (                                                                
  10b197:	85 d2                	test   %edx,%edx                      
  10b199:	74 0d                	je     10b1a8 <_Heap_Walk+0xca>       
    !_Heap_Is_aligned( _Heap_Alloc_area_of_block( first_block ), page_size )
  ) {                                                                 
    (*printer)(                                                       
  10b19b:	ff 75 d0             	pushl  -0x30(%ebp)                    
  10b19e:	68 33 ec 11 00       	push   $0x11ec33                      
  10b1a3:	e9 23 02 00 00       	jmp    10b3cb <_Heap_Walk+0x2ed>      
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Heap_Is_prev_used( first_block ) ) {                         
  10b1a8:	8b 45 d0             	mov    -0x30(%ebp),%eax               
  10b1ab:	f6 40 04 01          	testb  $0x1,0x4(%eax)                 
  10b1af:	75 0b                	jne    10b1bc <_Heap_Walk+0xde>       
    (*printer)(                                                       
  10b1b1:	57                   	push   %edi                           
  10b1b2:	68 64 ec 11 00       	push   $0x11ec64                      
  10b1b7:	e9 0f 02 00 00       	jmp    10b3cb <_Heap_Walk+0x2ed>      
    - 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;                
  10b1bc:	8b 4d c8             	mov    -0x38(%ebp),%ecx               
  10b1bf:	8b 79 04             	mov    0x4(%ecx),%edi                 
  10b1c2:	83 e7 fe             	and    $0xfffffffe,%edi               
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(                      
  const Heap_Block *block,                                            
  uintptr_t offset                                                    
)                                                                     
{                                                                     
  return (Heap_Block *) ((uintptr_t) block + offset);                 
  10b1c5:	01 cf                	add    %ecx,%edi                      
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( _Heap_Is_free( last_block ) ) {                                
  10b1c7:	f6 47 04 01          	testb  $0x1,0x4(%edi)                 
  10b1cb:	75 0b                	jne    10b1d8 <_Heap_Walk+0xfa>       
    (*printer)(                                                       
  10b1cd:	56                   	push   %esi                           
  10b1ce:	68 92 ec 11 00       	push   $0x11ec92                      
  10b1d3:	e9 f3 01 00 00       	jmp    10b3cb <_Heap_Walk+0x2ed>      
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if (                                                                
  10b1d8:	3b 7d d0             	cmp    -0x30(%ebp),%edi               
  10b1db:	74 0b                	je     10b1e8 <_Heap_Walk+0x10a>      
    _Heap_Block_at( last_block, _Heap_Block_size( last_block ) ) != first_block
  ) {                                                                 
    (*printer)(                                                       
  10b1dd:	51                   	push   %ecx                           
  10b1de:	68 a7 ec 11 00       	push   $0x11eca7                      
  10b1e3:	e9 e3 01 00 00       	jmp    10b3cb <_Heap_Walk+0x2ed>      
  int source,                                                         
  Heap_Walk_printer printer,                                          
  Heap_Control *heap                                                  
)                                                                     
{                                                                     
  uintptr_t const page_size = heap->page_size;                        
  10b1e8:	8b 46 10             	mov    0x10(%esi),%eax                
  10b1eb:	89 45 e0             	mov    %eax,-0x20(%ebp)               
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
                                                                      
  return true;                                                        
}                                                                     
  10b1ee:	8b 4e 08             	mov    0x8(%esi),%ecx                 
  Heap_Walk_printer printer,                                          
  Heap_Control *heap                                                  
)                                                                     
{                                                                     
  uintptr_t const page_size = heap->page_size;                        
  const Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );
  10b1f1:	89 75 dc             	mov    %esi,-0x24(%ebp)               
  10b1f4:	eb 75                	jmp    10b26b <_Heap_Walk+0x18d>      
  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;             
  10b1f6:	31 c0                	xor    %eax,%eax                      
  10b1f8:	39 4e 20             	cmp    %ecx,0x20(%esi)                
  10b1fb:	77 08                	ja     10b205 <_Heap_Walk+0x127>      
  10b1fd:	31 c0                	xor    %eax,%eax                      
  10b1ff:	39 4e 24             	cmp    %ecx,0x24(%esi)                
  10b202:	0f 93 c0             	setae  %al                            
  const Heap_Block *const first_free_block = _Heap_Free_list_first( heap );
  const Heap_Block *prev_block = free_list_tail;                      
  const Heap_Block *free_block = first_free_block;                    
                                                                      
  while ( free_block != free_list_tail ) {                            
    if ( !_Heap_Is_block_in_heap( heap, free_block ) ) {              
  10b205:	85 c0                	test   %eax,%eax                      
  10b207:	75 0b                	jne    10b214 <_Heap_Walk+0x136>      
      (*printer)(                                                     
  10b209:	51                   	push   %ecx                           
  10b20a:	68 d6 ec 11 00       	push   $0x11ecd6                      
  10b20f:	e9 b7 01 00 00       	jmp    10b3cb <_Heap_Walk+0x2ed>      
                                                                      
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Alloc_area_of_block(             
  const Heap_Block *block                                             
)                                                                     
{                                                                     
  return (uintptr_t) block + HEAP_BLOCK_HEADER_SIZE;                  
  10b214:	8d 41 08             	lea    0x8(%ecx),%eax                 
RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned(                           
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return (value % alignment) == 0;                                    
  10b217:	31 d2                	xor    %edx,%edx                      
  10b219:	f7 75 e0             	divl   -0x20(%ebp)                    
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if (                                                              
  10b21c:	85 d2                	test   %edx,%edx                      
  10b21e:	74 0b                	je     10b22b <_Heap_Walk+0x14d>      
      !_Heap_Is_aligned( _Heap_Alloc_area_of_block( free_block ), page_size )
    ) {                                                               
      (*printer)(                                                     
  10b220:	51                   	push   %ecx                           
  10b221:	68 f6 ec 11 00       	push   $0x11ecf6                      
  10b226:	e9 a0 01 00 00       	jmp    10b3cb <_Heap_Walk+0x2ed>      
    - 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;                
  10b22b:	8b 41 04             	mov    0x4(%ecx),%eax                 
  10b22e:	83 e0 fe             	and    $0xfffffffe,%eax               
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( _Heap_Is_used( free_block ) ) {                              
  10b231:	f6 44 01 04 01       	testb  $0x1,0x4(%ecx,%eax,1)          
  10b236:	74 0b                	je     10b243 <_Heap_Walk+0x165>      
      (*printer)(                                                     
  10b238:	51                   	push   %ecx                           
  10b239:	68 26 ed 11 00       	push   $0x11ed26                      
  10b23e:	e9 88 01 00 00       	jmp    10b3cb <_Heap_Walk+0x2ed>      
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( free_block->prev != prev_block ) {                           
  10b243:	8b 41 0c             	mov    0xc(%ecx),%eax                 
  10b246:	3b 45 dc             	cmp    -0x24(%ebp),%eax               
  10b249:	74 1a                	je     10b265 <_Heap_Walk+0x187>      
      (*printer)(                                                     
  10b24b:	83 ec 0c             	sub    $0xc,%esp                      
  10b24e:	50                   	push   %eax                           
  10b24f:	51                   	push   %ecx                           
  10b250:	68 42 ed 11 00       	push   $0x11ed42                      
  10b255:	6a 01                	push   $0x1                           
  10b257:	53                   	push   %ebx                           
  10b258:	ff 55 e4             	call   *-0x1c(%ebp)                   
  10b25b:	83 c4 20             	add    $0x20,%esp                     
  if ( !_System_state_Is_up( _System_state_Get() ) ) {                
    return true;                                                      
  }                                                                   
                                                                      
  if ( !_Heap_Walk_check_control( source, printer, heap ) ) {         
    return false;                                                     
  10b25e:	31 c0                	xor    %eax,%eax                      
  10b260:	e9 ab 01 00 00       	jmp    10b410 <_Heap_Walk+0x332>      
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    prev_block = free_block;                                          
    free_block = free_block->next;                                    
  10b265:	89 4d dc             	mov    %ecx,-0x24(%ebp)               
  10b268:	8b 49 08             	mov    0x8(%ecx),%ecx                 
  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 ) {                            
  10b26b:	39 f1                	cmp    %esi,%ecx                      
  10b26d:	75 87                	jne    10b1f6 <_Heap_Walk+0x118>      
  10b26f:	89 5d dc             	mov    %ebx,-0x24(%ebp)               
  10b272:	eb 02                	jmp    10b276 <_Heap_Walk+0x198>      
        block->prev_size                                              
      );                                                              
    }                                                                 
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
  10b274:	89 df                	mov    %ebx,%edi                      
                                                                      
  return true;                                                        
}                                                                     
  10b276:	8b 4f 04             	mov    0x4(%edi),%ecx                 
  10b279:	89 4d cc             	mov    %ecx,-0x34(%ebp)               
  10b27c:	83 e1 fe             	and    $0xfffffffe,%ecx               
  10b27f:	89 4d e0             	mov    %ecx,-0x20(%ebp)               
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(                      
  const Heap_Block *block,                                            
  uintptr_t offset                                                    
)                                                                     
{                                                                     
  return (Heap_Block *) ((uintptr_t) block + offset);                 
  10b282:	8d 1c 0f             	lea    (%edi,%ecx,1),%ebx             
  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;             
  10b285:	31 c0                	xor    %eax,%eax                      
  10b287:	39 5e 20             	cmp    %ebx,0x20(%esi)                
  10b28a:	77 08                	ja     10b294 <_Heap_Walk+0x1b6>      <== NEVER TAKEN
  10b28c:	31 c0                	xor    %eax,%eax                      
  10b28e:	39 5e 24             	cmp    %ebx,0x24(%esi)                
  10b291:	0f 93 c0             	setae  %al                            
    bool const prev_used = _Heap_Is_prev_used( block );               
    Heap_Block *const next_block = _Heap_Block_at( block, block_size );
    uintptr_t const next_block_begin = (uintptr_t) next_block;        
    bool const is_not_last_block = block != last_block;               
                                                                      
    if ( !_Heap_Is_block_in_heap( heap, next_block ) ) {              
  10b294:	85 c0                	test   %eax,%eax                      
  10b296:	75 11                	jne    10b2a9 <_Heap_Walk+0x1cb>      
  10b298:	89 d9                	mov    %ebx,%ecx                      
  10b29a:	8b 5d dc             	mov    -0x24(%ebp),%ebx               
      (*printer)(                                                     
  10b29d:	83 ec 0c             	sub    $0xc,%esp                      
  10b2a0:	51                   	push   %ecx                           
  10b2a1:	57                   	push   %edi                           
  10b2a2:	68 74 ed 11 00       	push   $0x11ed74                      
  10b2a7:	eb ac                	jmp    10b255 <_Heap_Walk+0x177>      
    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;               
  10b2a9:	3b 7d c8             	cmp    -0x38(%ebp),%edi               
  10b2ac:	0f 95 c1             	setne  %cl                            
RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned(                           
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return (value % alignment) == 0;                                    
  10b2af:	8b 45 e0             	mov    -0x20(%ebp),%eax               
  10b2b2:	31 d2                	xor    %edx,%edx                      
  10b2b4:	f7 75 d8             	divl   -0x28(%ebp)                    
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( !_Heap_Is_aligned( block_size, page_size ) && is_not_last_block ) {
  10b2b7:	85 d2                	test   %edx,%edx                      
  10b2b9:	74 15                	je     10b2d0 <_Heap_Walk+0x1f2>      
  10b2bb:	84 c9                	test   %cl,%cl                        
  10b2bd:	74 11                	je     10b2d0 <_Heap_Walk+0x1f2>      
  10b2bf:	8b 5d dc             	mov    -0x24(%ebp),%ebx               
      (*printer)(                                                     
  10b2c2:	83 ec 0c             	sub    $0xc,%esp                      
  10b2c5:	ff 75 e0             	pushl  -0x20(%ebp)                    
  10b2c8:	57                   	push   %edi                           
  10b2c9:	68 a1 ed 11 00       	push   $0x11eda1                      
  10b2ce:	eb 85                	jmp    10b255 <_Heap_Walk+0x177>      
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( block_size < min_block_size && is_not_last_block ) {         
  10b2d0:	8b 45 d4             	mov    -0x2c(%ebp),%eax               
  10b2d3:	39 45 e0             	cmp    %eax,-0x20(%ebp)               
  10b2d6:	73 18                	jae    10b2f0 <_Heap_Walk+0x212>      
  10b2d8:	84 c9                	test   %cl,%cl                        
  10b2da:	74 14                	je     10b2f0 <_Heap_Walk+0x212>      <== NEVER TAKEN
  10b2dc:	8b 5d dc             	mov    -0x24(%ebp),%ebx               
      (*printer)(                                                     
  10b2df:	52                   	push   %edx                           
  10b2e0:	52                   	push   %edx                           
  10b2e1:	50                   	push   %eax                           
  10b2e2:	ff 75 e0             	pushl  -0x20(%ebp)                    
  10b2e5:	57                   	push   %edi                           
  10b2e6:	68 cf ed 11 00       	push   $0x11edcf                      
  10b2eb:	e9 65 ff ff ff       	jmp    10b255 <_Heap_Walk+0x177>      
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( next_block_begin <= block_begin && is_not_last_block ) {     
  10b2f0:	39 fb                	cmp    %edi,%ebx                      
  10b2f2:	77 18                	ja     10b30c <_Heap_Walk+0x22e>      
  10b2f4:	84 c9                	test   %cl,%cl                        
  10b2f6:	74 14                	je     10b30c <_Heap_Walk+0x22e>      
  10b2f8:	89 d9                	mov    %ebx,%ecx                      
  10b2fa:	8b 5d dc             	mov    -0x24(%ebp),%ebx               
      (*printer)(                                                     
  10b2fd:	83 ec 0c             	sub    $0xc,%esp                      
  10b300:	51                   	push   %ecx                           
  10b301:	57                   	push   %edi                           
  10b302:	68 fa ed 11 00       	push   $0x11edfa                      
  10b307:	e9 49 ff ff ff       	jmp    10b255 <_Heap_Walk+0x177>      
  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;                 
  10b30c:	8b 4d cc             	mov    -0x34(%ebp),%ecx               
  10b30f:	83 e1 01             	and    $0x1,%ecx                      
  10b312:	89 4d c4             	mov    %ecx,-0x3c(%ebp)               
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( !_Heap_Is_prev_used( next_block ) ) {                        
  10b315:	f6 43 04 01          	testb  $0x1,0x4(%ebx)                 
  10b319:	0f 85 ba 00 00 00    	jne    10b3d9 <_Heap_Walk+0x2fb>      
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
                                                                      
  return true;                                                        
}                                                                     
  10b31f:	8b 46 08             	mov    0x8(%esi),%eax                 
  10b322:	89 45 c0             	mov    %eax,-0x40(%ebp)               
    block->prev,                                                      
    block->prev == first_free_block ?                                 
      " (= first free)"                                               
        : (block->prev == free_list_head ? " (= head)" : ""),         
    block->next,                                                      
    block->next == last_free_block ?                                  
  10b325:	8b 4f 08             	mov    0x8(%edi),%ecx                 
  10b328:	89 4d b4             	mov    %ecx,-0x4c(%ebp)               
  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)(                                                         
  10b32b:	ba 1a eb 11 00       	mov    $0x11eb1a,%edx                 
  10b330:	3b 4e 0c             	cmp    0xc(%esi),%ecx                 
  10b333:	74 0e                	je     10b343 <_Heap_Walk+0x265>      
      " (= first free)"                                               
        : (block->prev == free_list_head ? " (= head)" : ""),         
    block->next,                                                      
    block->next == last_free_block ?                                  
      " (= last free)"                                                
        : (block->next == free_list_tail ? " (= tail)" : "")          
  10b335:	ba 65 ea 11 00       	mov    $0x11ea65,%edx                 
  10b33a:	39 f1                	cmp    %esi,%ecx                      
  10b33c:	75 05                	jne    10b343 <_Heap_Walk+0x265>      
  10b33e:	ba 29 eb 11 00       	mov    $0x11eb29,%edx                 
    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 ?                                 
  10b343:	8b 47 0c             	mov    0xc(%edi),%eax                 
  10b346:	89 45 cc             	mov    %eax,-0x34(%ebp)               
  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)(                                                         
  10b349:	b8 33 eb 11 00       	mov    $0x11eb33,%eax                 
  10b34e:	8b 4d c0             	mov    -0x40(%ebp),%ecx               
  10b351:	39 4d cc             	cmp    %ecx,-0x34(%ebp)               
  10b354:	74 0f                	je     10b365 <_Heap_Walk+0x287>      
    block,                                                            
    block_size,                                                       
    block->prev,                                                      
    block->prev == first_free_block ?                                 
      " (= first free)"                                               
        : (block->prev == free_list_head ? " (= head)" : ""),         
  10b356:	b8 65 ea 11 00       	mov    $0x11ea65,%eax                 
  10b35b:	39 75 cc             	cmp    %esi,-0x34(%ebp)               
  10b35e:	75 05                	jne    10b365 <_Heap_Walk+0x287>      
  10b360:	b8 43 eb 11 00       	mov    $0x11eb43,%eax                 
  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)(                                                         
  10b365:	83 ec 0c             	sub    $0xc,%esp                      
  10b368:	52                   	push   %edx                           
  10b369:	ff 75 b4             	pushl  -0x4c(%ebp)                    
  10b36c:	50                   	push   %eax                           
  10b36d:	ff 75 cc             	pushl  -0x34(%ebp)                    
  10b370:	ff 75 e0             	pushl  -0x20(%ebp)                    
  10b373:	57                   	push   %edi                           
  10b374:	68 2e ee 11 00       	push   $0x11ee2e                      
  10b379:	6a 00                	push   $0x0                           
  10b37b:	ff 75 dc             	pushl  -0x24(%ebp)                    
  10b37e:	ff 55 e4             	call   *-0x1c(%ebp)                   
    block->next == last_free_block ?                                  
      " (= last free)"                                                
        : (block->next == free_list_tail ? " (= tail)" : "")          
  );                                                                  
                                                                      
  if ( block_size != next_block->prev_size ) {                        
  10b381:	8b 03                	mov    (%ebx),%eax                    
  10b383:	83 c4 30             	add    $0x30,%esp                     
  10b386:	39 45 e0             	cmp    %eax,-0x20(%ebp)               
  10b389:	74 16                	je     10b3a1 <_Heap_Walk+0x2c3>      
  10b38b:	89 d9                	mov    %ebx,%ecx                      
  10b38d:	8b 5d dc             	mov    -0x24(%ebp),%ebx               
    (*printer)(                                                       
  10b390:	56                   	push   %esi                           
  10b391:	51                   	push   %ecx                           
  10b392:	50                   	push   %eax                           
  10b393:	ff 75 e0             	pushl  -0x20(%ebp)                    
  10b396:	57                   	push   %edi                           
  10b397:	68 63 ee 11 00       	push   $0x11ee63                      
  10b39c:	e9 b4 fe ff ff       	jmp    10b255 <_Heap_Walk+0x177>      
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !prev_used ) {                                                 
  10b3a1:	83 7d c4 00          	cmpl   $0x0,-0x3c(%ebp)               
  10b3a5:	75 0b                	jne    10b3b2 <_Heap_Walk+0x2d4>      
  10b3a7:	8b 5d dc             	mov    -0x24(%ebp),%ebx               
    (*printer)(                                                       
  10b3aa:	57                   	push   %edi                           
  10b3ab:	68 9c ee 11 00       	push   $0x11ee9c                      
  10b3b0:	eb 19                	jmp    10b3cb <_Heap_Walk+0x2ed>      
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
                                                                      
  return true;                                                        
}                                                                     
  10b3b2:	8b 46 08             	mov    0x8(%esi),%eax                 
  10b3b5:	eb 07                	jmp    10b3be <_Heap_Walk+0x2e0>      
{                                                                     
  const Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );
  const Heap_Block *free_block = _Heap_Free_list_first( heap );       
                                                                      
  while ( free_block != free_list_tail ) {                            
    if ( free_block == block ) {                                      
  10b3b7:	39 f8                	cmp    %edi,%eax                      
  10b3b9:	74 4a                	je     10b405 <_Heap_Walk+0x327>      
      return true;                                                    
    }                                                                 
    free_block = free_block->next;                                    
  10b3bb:	8b 40 08             	mov    0x8(%eax),%eax                 
)                                                                     
{                                                                     
  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 ) {                            
  10b3be:	39 f0                	cmp    %esi,%eax                      
  10b3c0:	75 f5                	jne    10b3b7 <_Heap_Walk+0x2d9>      
  10b3c2:	8b 5d dc             	mov    -0x24(%ebp),%ebx               
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Heap_Walk_is_in_free_list( heap, block ) ) {                 
    (*printer)(                                                       
  10b3c5:	57                   	push   %edi                           
  10b3c6:	68 07 ef 11 00       	push   $0x11ef07                      
  10b3cb:	6a 01                	push   $0x1                           
  10b3cd:	53                   	push   %ebx                           
  10b3ce:	ff 55 e4             	call   *-0x1c(%ebp)                   
  10b3d1:	83 c4 10             	add    $0x10,%esp                     
  10b3d4:	e9 85 fe ff ff       	jmp    10b25e <_Heap_Walk+0x180>      
                                                                      
    if ( !_Heap_Is_prev_used( next_block ) ) {                        
      if ( !_Heap_Walk_check_free_block( source, printer, heap, block ) ) {
        return false;                                                 
      }                                                               
    } else if (prev_used) {                                           
  10b3d9:	83 7d c4 00          	cmpl   $0x0,-0x3c(%ebp)               
  10b3dd:	74 0e                	je     10b3ed <_Heap_Walk+0x30f>      
      (*printer)(                                                     
  10b3df:	83 ec 0c             	sub    $0xc,%esp                      
  10b3e2:	ff 75 e0             	pushl  -0x20(%ebp)                    
  10b3e5:	57                   	push   %edi                           
  10b3e6:	68 cb ee 11 00       	push   $0x11eecb                      
  10b3eb:	eb 0d                	jmp    10b3fa <_Heap_Walk+0x31c>      
        "block 0x%08x: size %u\n",                                    
        block,                                                        
        block_size                                                    
      );                                                              
    } else {                                                          
      (*printer)(                                                     
  10b3ed:	51                   	push   %ecx                           
  10b3ee:	51                   	push   %ecx                           
  10b3ef:	ff 37                	pushl  (%edi)                         
  10b3f1:	ff 75 e0             	pushl  -0x20(%ebp)                    
  10b3f4:	57                   	push   %edi                           
  10b3f5:	68 e2 ee 11 00       	push   $0x11eee2                      
  10b3fa:	6a 00                	push   $0x0                           
  10b3fc:	ff 75 dc             	pushl  -0x24(%ebp)                    
  10b3ff:	ff 55 e4             	call   *-0x1c(%ebp)                   
  10b402:	83 c4 20             	add    $0x20,%esp                     
        block->prev_size                                              
      );                                                              
    }                                                                 
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
  10b405:	3b 5d d0             	cmp    -0x30(%ebp),%ebx               
  10b408:	0f 85 66 fe ff ff    	jne    10b274 <_Heap_Walk+0x196>      
                                                                      
  return true;                                                        
  10b40e:	b0 01                	mov    $0x1,%al                       
}                                                                     
  10b410:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  10b413:	5b                   	pop    %ebx                           
  10b414:	5e                   	pop    %esi                           
  10b415:	5f                   	pop    %edi                           
  10b416:	c9                   	leave                                 
  10b417:	c3                   	ret                                   
                                                                      

0010a6c4 <_Internal_error_Occurred>: void _Internal_error_Occurred( Internal_errors_Source the_source, bool is_internal, Internal_errors_t the_error ) {
  10a6c4:	55                   	push   %ebp                           
  10a6c5:	89 e5                	mov    %esp,%ebp                      
  10a6c7:	53                   	push   %ebx                           
  10a6c8:	83 ec 08             	sub    $0x8,%esp                      
  10a6cb:	8b 45 08             	mov    0x8(%ebp),%eax                 
  10a6ce:	8b 55 0c             	mov    0xc(%ebp),%edx                 
  10a6d1:	8b 5d 10             	mov    0x10(%ebp),%ebx                
                                                                      
  _Internal_errors_What_happened.the_source  = the_source;            
  10a6d4:	a3 d8 32 12 00       	mov    %eax,0x1232d8                  
  _Internal_errors_What_happened.is_internal = is_internal;           
  10a6d9:	88 15 dc 32 12 00    	mov    %dl,0x1232dc                   
  _Internal_errors_What_happened.the_error   = the_error;             
  10a6df:	89 1d e0 32 12 00    	mov    %ebx,0x1232e0                  
                                                                      
  _User_extensions_Fatal( the_source, is_internal, the_error );       
  10a6e5:	53                   	push   %ebx                           
  10a6e6:	0f b6 d2             	movzbl %dl,%edx                       
  10a6e9:	52                   	push   %edx                           
  10a6ea:	50                   	push   %eax                           
  10a6eb:	e8 a3 19 00 00       	call   10c093 <_User_extensions_Fatal>
                                                                      
RTEMS_INLINE_ROUTINE void _System_state_Set (                         
  System_state_Codes state                                            
)                                                                     
{                                                                     
  _System_state_Current = state;                                      
  10a6f0:	c7 05 9c 33 12 00 05 	movl   $0x5,0x12339c                  <== NOT EXECUTED
  10a6f7:	00 00 00                                                    
                                                                      
  _System_state_Set( SYSTEM_STATE_FAILED );                           
                                                                      
  _CPU_Fatal_halt( the_error );                                       
  10a6fa:	fa                   	cli                                   <== NOT EXECUTED
  10a6fb:	89 d8                	mov    %ebx,%eax                      <== NOT EXECUTED
  10a6fd:	f4                   	hlt                                   <== NOT EXECUTED
  10a6fe:	83 c4 10             	add    $0x10,%esp                     <== NOT EXECUTED
  10a701:	eb fe                	jmp    10a701 <_Internal_error_Occurred+0x3d><== NOT EXECUTED
                                                                      

0010a754 <_Objects_Allocate>: */ Objects_Control *_Objects_Allocate( Objects_Information *information ) {
  10a754:	55                   	push   %ebp                           
  10a755:	89 e5                	mov    %esp,%ebp                      
  10a757:	56                   	push   %esi                           
  10a758:	53                   	push   %ebx                           
  10a759:	8b 5d 08             	mov    0x8(%ebp),%ebx                 
   *  still attempts to create the object, the information block      
   *  should be all zeroed out because it is in the BSS.  So let's    
   *  check that code for this manager is even present.               
   */                                                                 
  if ( information->size == 0 )                                       
    return NULL;                                                      
  10a75c:	31 c9                	xor    %ecx,%ecx                      
   *  If the application is using the optional manager stubs and      
   *  still attempts to create the object, the information block      
   *  should be all zeroed out because it is in the BSS.  So let's    
   *  check that code for this manager is even present.               
   */                                                                 
  if ( information->size == 0 )                                       
  10a75e:	83 7b 18 00          	cmpl   $0x0,0x18(%ebx)                
  10a762:	74 53                	je     10a7b7 <_Objects_Allocate+0x63><== NEVER TAKEN
                                                                      
  /*                                                                  
   *  OK.  The manager should be initialized and configured to have objects.
   *  With any luck, it is safe to attempt to allocate an object.     
   */                                                                 
  the_object = (Objects_Control *) _Chain_Get( &information->Inactive );
  10a764:	8d 73 20             	lea    0x20(%ebx),%esi                
  10a767:	83 ec 0c             	sub    $0xc,%esp                      
  10a76a:	56                   	push   %esi                           
  10a76b:	e8 30 f8 ff ff       	call   109fa0 <_Chain_Get>            
  10a770:	89 c1                	mov    %eax,%ecx                      
                                                                      
  if ( information->auto_extend ) {                                   
  10a772:	83 c4 10             	add    $0x10,%esp                     
  10a775:	80 7b 12 00          	cmpb   $0x0,0x12(%ebx)                
  10a779:	74 3c                	je     10a7b7 <_Objects_Allocate+0x63>
    /*                                                                
     *  If the list is empty then we are out of objects and need to   
     *  extend information base.                                      
     */                                                               
                                                                      
    if ( !the_object ) {                                              
  10a77b:	85 c0                	test   %eax,%eax                      
  10a77d:	75 1a                	jne    10a799 <_Objects_Allocate+0x45>
      _Objects_Extend_information( information );                     
  10a77f:	83 ec 0c             	sub    $0xc,%esp                      
  10a782:	53                   	push   %ebx                           
  10a783:	e8 60 00 00 00       	call   10a7e8 <_Objects_Extend_information>
      the_object =  (Objects_Control *) _Chain_Get( &information->Inactive );
  10a788:	89 34 24             	mov    %esi,(%esp)                    
  10a78b:	e8 10 f8 ff ff       	call   109fa0 <_Chain_Get>            
  10a790:	89 c1                	mov    %eax,%ecx                      
    }                                                                 
                                                                      
    if ( the_object ) {                                               
  10a792:	83 c4 10             	add    $0x10,%esp                     
  10a795:	85 c0                	test   %eax,%eax                      
  10a797:	74 1e                	je     10a7b7 <_Objects_Allocate+0x63>
      uint32_t   block;                                               
                                                                      
      block = (uint32_t) _Objects_Get_index( the_object->id ) -       
  10a799:	0f b7 41 08          	movzwl 0x8(%ecx),%eax                 
  10a79d:	0f b7 53 08          	movzwl 0x8(%ebx),%edx                 
  10a7a1:	29 d0                	sub    %edx,%eax                      
              _Objects_Get_index( information->minimum_id );          
      block /= information->allocation_size;                          
  10a7a3:	0f b7 73 14          	movzwl 0x14(%ebx),%esi                
  10a7a7:	31 d2                	xor    %edx,%edx                      
  10a7a9:	f7 f6                	div    %esi                           
                                                                      
      information->inactive_per_block[ block ]--;                     
  10a7ab:	c1 e0 02             	shl    $0x2,%eax                      
  10a7ae:	03 43 30             	add    0x30(%ebx),%eax                
  10a7b1:	ff 08                	decl   (%eax)                         
      information->inactive--;                                        
  10a7b3:	66 ff 4b 2c          	decw   0x2c(%ebx)                     
    );                                                                
  }                                                                   
#endif                                                                
                                                                      
  return the_object;                                                  
}                                                                     
  10a7b7:	89 c8                	mov    %ecx,%eax                      
  10a7b9:	8d 65 f8             	lea    -0x8(%ebp),%esp                
  10a7bc:	5b                   	pop    %ebx                           
  10a7bd:	5e                   	pop    %esi                           
  10a7be:	c9                   	leave                                 
  10a7bf:	c3                   	ret                                   
                                                                      

0010aad8 <_Objects_Get_information>: Objects_Information *_Objects_Get_information( Objects_APIs the_api, uint16_t the_class ) {
  10aad8:	55                   	push   %ebp                           
  10aad9:	89 e5                	mov    %esp,%ebp                      
  10aadb:	57                   	push   %edi                           
  10aadc:	56                   	push   %esi                           
  10aadd:	53                   	push   %ebx                           
  10aade:	83 ec 0c             	sub    $0xc,%esp                      
  10aae1:	8b 75 08             	mov    0x8(%ebp),%esi                 
  10aae4:	8b 7d 0c             	mov    0xc(%ebp),%edi                 
  Objects_Information *info;                                          
  int the_class_api_maximum;                                          
                                                                      
  if ( !the_class )                                                   
    return NULL;                                                      
  10aae7:	31 db                	xor    %ebx,%ebx                      
)                                                                     
{                                                                     
  Objects_Information *info;                                          
  int the_class_api_maximum;                                          
                                                                      
  if ( !the_class )                                                   
  10aae9:	66 85 ff             	test   %di,%di                        
  10aaec:	74 37                	je     10ab25 <_Objects_Get_information+0x4d>
                                                                      
  /*                                                                  
   *  This call implicitly validates the_api so we do not call        
   *  _Objects_Is_api_valid above here.                               
   */                                                                 
  the_class_api_maximum = _Objects_API_maximum_class( the_api );      
  10aaee:	83 ec 0c             	sub    $0xc,%esp                      
  10aaf1:	56                   	push   %esi                           
  10aaf2:	e8 81 3d 00 00       	call   10e878 <_Objects_API_maximum_class>
  if ( the_class_api_maximum == 0 )                                   
  10aaf7:	83 c4 10             	add    $0x10,%esp                     
  10aafa:	85 c0                	test   %eax,%eax                      
  10aafc:	74 27                	je     10ab25 <_Objects_Get_information+0x4d>
    return NULL;                                                      
                                                                      
  if ( the_class > (uint32_t) the_class_api_maximum )                 
  10aafe:	0f b7 ff             	movzwl %di,%edi                       
  10ab01:	39 c7                	cmp    %eax,%edi                      
  10ab03:	77 20                	ja     10ab25 <_Objects_Get_information+0x4d>
    return NULL;                                                      
                                                                      
  if ( !_Objects_Information_table[ the_api ] )                       
  10ab05:	8b 04 b5 1c 32 12 00 	mov    0x12321c(,%esi,4),%eax         
  10ab0c:	85 c0                	test   %eax,%eax                      
  10ab0e:	74 15                	je     10ab25 <_Objects_Get_information+0x4d><== NEVER TAKEN
    return NULL;                                                      
                                                                      
  info = _Objects_Information_table[ the_api ][ the_class ];          
  10ab10:	8b 1c b8             	mov    (%eax,%edi,4),%ebx             
  if ( !info )                                                        
  10ab13:	85 db                	test   %ebx,%ebx                      
  10ab15:	74 0e                	je     10ab25 <_Objects_Get_information+0x4d><== NEVER TAKEN
   *  Thus we may have 0 local instances and still have a valid object
   *  pointer.                                                        
   */                                                                 
  #if !defined(RTEMS_MULTIPROCESSING)                                 
    if ( info->maximum == 0 )                                         
      return NULL;                                                    
  10ab17:	31 c0                	xor    %eax,%eax                      
  10ab19:	66 83 7b 10 00       	cmpw   $0x0,0x10(%ebx)                
  10ab1e:	0f 95 c0             	setne  %al                            
  10ab21:	f7 d8                	neg    %eax                           
  10ab23:	21 c3                	and    %eax,%ebx                      
  #endif                                                              
                                                                      
  return info;                                                        
}                                                                     
  10ab25:	89 d8                	mov    %ebx,%eax                      
  10ab27:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  10ab2a:	5b                   	pop    %ebx                           
  10ab2b:	5e                   	pop    %esi                           
  10ab2c:	5f                   	pop    %edi                           
  10ab2d:	c9                   	leave                                 
  10ab2e:	c3                   	ret                                   
                                                                      

001180c8 <_Objects_Get_no_protection>: Objects_Control *_Objects_Get_no_protection( Objects_Information *information, Objects_Id id, Objects_Locations *location ) {
  1180c8:	55                   	push   %ebp                           
  1180c9:	89 e5                	mov    %esp,%ebp                      
  1180cb:	53                   	push   %ebx                           
  1180cc:	8b 55 08             	mov    0x8(%ebp),%edx                 
  1180cf:	8b 4d 10             	mov    0x10(%ebp),%ecx                
                                                                      
  /*                                                                  
   * You can't just extract the index portion or you can get tricked  
   * by a value between 1 and maximum.                                
   */                                                                 
  index = id - information->minimum_id + 1;                           
  1180d2:	b8 01 00 00 00       	mov    $0x1,%eax                      
  1180d7:	2b 42 08             	sub    0x8(%edx),%eax                 
  1180da:	03 45 0c             	add    0xc(%ebp),%eax                 
                                                                      
  if ( information->maximum >= index ) {                              
  1180dd:	0f b7 5a 10          	movzwl 0x10(%edx),%ebx                
  1180e1:	39 c3                	cmp    %eax,%ebx                      
  1180e3:	72 12                	jb     1180f7 <_Objects_Get_no_protection+0x2f>
    if ( (the_object = information->local_table[ index ]) != NULL ) { 
  1180e5:	8b 52 1c             	mov    0x1c(%edx),%edx                
  1180e8:	8b 04 82             	mov    (%edx,%eax,4),%eax             
  1180eb:	85 c0                	test   %eax,%eax                      
  1180ed:	74 08                	je     1180f7 <_Objects_Get_no_protection+0x2f><== NEVER TAKEN
      *location = OBJECTS_LOCAL;                                      
  1180ef:	c7 01 00 00 00 00    	movl   $0x0,(%ecx)                    
      return the_object;                                              
  1180f5:	eb 08                	jmp    1180ff <_Objects_Get_no_protection+0x37>
                                                                      
  /*                                                                  
   *  This isn't supported or required yet for Global objects so      
   *  if it isn't local, we don't find it.                            
   */                                                                 
  *location = OBJECTS_ERROR;                                          
  1180f7:	c7 01 01 00 00 00    	movl   $0x1,(%ecx)                    
  return NULL;                                                        
  1180fd:	31 c0                	xor    %eax,%eax                      
}                                                                     
  1180ff:	5b                   	pop    %ebx                           
  118100:	c9                   	leave                                 
  118101:	c3                   	ret                                   
                                                                      

0010bcf4 <_Objects_Id_to_name>: */ Objects_Name_or_id_lookup_errors _Objects_Id_to_name ( Objects_Id id, Objects_Name *name ) {
  10bcf4:	55                   	push   %ebp                           
  10bcf5:	89 e5                	mov    %esp,%ebp                      
  10bcf7:	53                   	push   %ebx                           
  10bcf8:	83 ec 14             	sub    $0x14,%esp                     
                                                                      
  /*                                                                  
   *  Caller is trusted for name != NULL.                             
   */                                                                 
                                                                      
  tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id;
  10bcfb:	8b 45 08             	mov    0x8(%ebp),%eax                 
  10bcfe:	85 c0                	test   %eax,%eax                      
  10bd00:	75 08                	jne    10bd0a <_Objects_Id_to_name+0x16>
  10bd02:	a1 88 67 12 00       	mov    0x126788,%eax                  
  10bd07:	8b 40 08             	mov    0x8(%eax),%eax                 
  10bd0a:	89 c2                	mov    %eax,%edx                      
  10bd0c:	c1 ea 18             	shr    $0x18,%edx                     
  10bd0f:	83 e2 07             	and    $0x7,%edx                      
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Objects_Is_api_valid(                      
  uint32_t   the_api                                                  
)                                                                     
{                                                                     
  if ( !the_api || the_api > OBJECTS_APIS_LAST )                      
  10bd12:	8d 4a ff             	lea    -0x1(%edx),%ecx                
                                                                      
  the_api = _Objects_Get_API( tmpId );                                
  if ( !_Objects_Is_api_valid( the_api ) )                            
    return OBJECTS_INVALID_ID;                                        
  10bd15:	bb 03 00 00 00       	mov    $0x3,%ebx                      
  10bd1a:	83 f9 02             	cmp    $0x2,%ecx                      
  10bd1d:	77 30                	ja     10bd4f <_Objects_Id_to_name+0x5b>
  10bd1f:	eb 35                	jmp    10bd56 <_Objects_Id_to_name+0x62>
 */                                                                   
RTEMS_INLINE_ROUTINE uint32_t _Objects_Get_class(                     
  Objects_Id id                                                       
)                                                                     
{                                                                     
  return (uint32_t)                                                   
  10bd21:	89 c1                	mov    %eax,%ecx                      
  10bd23:	c1 e9 1b             	shr    $0x1b,%ecx                     
  if ( !_Objects_Information_table[ the_api ] )                       
    return OBJECTS_INVALID_ID;                                        
                                                                      
  the_class = _Objects_Get_class( tmpId );                            
                                                                      
  information = _Objects_Information_table[ the_api ][ the_class ];   
  10bd26:	8b 14 8a             	mov    (%edx,%ecx,4),%edx             
  if ( !information )                                                 
  10bd29:	85 d2                	test   %edx,%edx                      
  10bd2b:	74 22                	je     10bd4f <_Objects_Id_to_name+0x5b><== NEVER TAKEN
  #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES)                 
    if ( information->is_string )                                     
      return OBJECTS_INVALID_ID;                                      
  #endif                                                              
                                                                      
  the_object = _Objects_Get( information, tmpId, &ignored_location ); 
  10bd2d:	51                   	push   %ecx                           
  10bd2e:	8d 4d f4             	lea    -0xc(%ebp),%ecx                
  10bd31:	51                   	push   %ecx                           
  10bd32:	50                   	push   %eax                           
  10bd33:	52                   	push   %edx                           
  10bd34:	e8 63 ff ff ff       	call   10bc9c <_Objects_Get>          
  if ( !the_object )                                                  
  10bd39:	83 c4 10             	add    $0x10,%esp                     
  10bd3c:	85 c0                	test   %eax,%eax                      
  10bd3e:	74 0f                	je     10bd4f <_Objects_Id_to_name+0x5b>
    return OBJECTS_INVALID_ID;                                        
                                                                      
  *name = the_object->name;                                           
  10bd40:	8b 50 0c             	mov    0xc(%eax),%edx                 
  10bd43:	8b 45 0c             	mov    0xc(%ebp),%eax                 
  10bd46:	89 10                	mov    %edx,(%eax)                    
  _Thread_Enable_dispatch();                                          
  10bd48:	e8 3d 0a 00 00       	call   10c78a <_Thread_Enable_dispatch>
  return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL;                        
  10bd4d:	31 db                	xor    %ebx,%ebx                      
}                                                                     
  10bd4f:	89 d8                	mov    %ebx,%eax                      
  10bd51:	8b 5d fc             	mov    -0x4(%ebp),%ebx                
  10bd54:	c9                   	leave                                 
  10bd55:	c3                   	ret                                   
                                                                      
  the_api = _Objects_Get_API( tmpId );                                
  if ( !_Objects_Is_api_valid( the_api ) )                            
    return OBJECTS_INVALID_ID;                                        
                                                                      
  if ( !_Objects_Information_table[ the_api ] )                       
  10bd56:	8b 14 95 48 65 12 00 	mov    0x126548(,%edx,4),%edx         
  10bd5d:	85 d2                	test   %edx,%edx                      
  10bd5f:	75 c0                	jne    10bd21 <_Objects_Id_to_name+0x2d>
  10bd61:	eb ec                	jmp    10bd4f <_Objects_Id_to_name+0x5b>
                                                                      

0010df2d <_RTEMS_tasks_Post_switch_extension>: */ void _RTEMS_tasks_Post_switch_extension( Thread_Control *executing ) {
  10df2d:	55                   	push   %ebp                           
  10df2e:	89 e5                	mov    %esp,%ebp                      
  10df30:	57                   	push   %edi                           
  10df31:	56                   	push   %esi                           
  10df32:	53                   	push   %ebx                           
  10df33:	83 ec 1c             	sub    $0x1c,%esp                     
  RTEMS_API_Control *api;                                             
  ASR_Information   *asr;                                             
  rtems_signal_set   signal_set;                                      
  Modes_Control      prev_mode;                                       
                                                                      
  api = executing->API_Extensions[ THREAD_API_RTEMS ];                
  10df36:	8b 45 08             	mov    0x8(%ebp),%eax                 
  10df39:	8b 98 e4 00 00 00    	mov    0xe4(%eax),%ebx                
  if ( !api )                                                         
  10df3f:	85 db                	test   %ebx,%ebx                      
  10df41:	74 45                	je     10df88 <_RTEMS_tasks_Post_switch_extension+0x5b><== NEVER TAKEN
   *  Signal Processing                                               
   */                                                                 
                                                                      
  asr = &api->Signal;                                                 
                                                                      
  _ISR_Disable( level );                                              
  10df43:	9c                   	pushf                                 
  10df44:	fa                   	cli                                   
  10df45:	58                   	pop    %eax                           
    signal_set = asr->signals_posted;                                 
  10df46:	8b 7b 14             	mov    0x14(%ebx),%edi                
    asr->signals_posted = 0;                                          
  10df49:	c7 43 14 00 00 00 00 	movl   $0x0,0x14(%ebx)                
  _ISR_Enable( level );                                               
  10df50:	50                   	push   %eax                           
  10df51:	9d                   	popf                                  
                                                                      
                                                                      
  if ( !signal_set ) /* similar to _ASR_Are_signals_pending( asr ) */ 
  10df52:	85 ff                	test   %edi,%edi                      
  10df54:	74 32                	je     10df88 <_RTEMS_tasks_Post_switch_extension+0x5b>
    return;                                                           
                                                                      
  asr->nest_level += 1;                                               
  10df56:	ff 43 1c             	incl   0x1c(%ebx)                     
  rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode ); 
  10df59:	50                   	push   %eax                           
  10df5a:	8d 75 e4             	lea    -0x1c(%ebp),%esi               
  10df5d:	56                   	push   %esi                           
  10df5e:	68 ff ff 00 00       	push   $0xffff                        
  10df63:	ff 73 10             	pushl  0x10(%ebx)                     
  10df66:	e8 5d 1a 00 00       	call   10f9c8 <rtems_task_mode>       
                                                                      
  (*asr->handler)( signal_set );                                      
  10df6b:	89 3c 24             	mov    %edi,(%esp)                    
  10df6e:	ff 53 0c             	call   *0xc(%ebx)                     
                                                                      
  asr->nest_level -= 1;                                               
  10df71:	ff 4b 1c             	decl   0x1c(%ebx)                     
  rtems_task_mode( prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode );     
  10df74:	83 c4 0c             	add    $0xc,%esp                      
  10df77:	56                   	push   %esi                           
  10df78:	68 ff ff 00 00       	push   $0xffff                        
  10df7d:	ff 75 e4             	pushl  -0x1c(%ebp)                    
  10df80:	e8 43 1a 00 00       	call   10f9c8 <rtems_task_mode>       
  10df85:	83 c4 10             	add    $0x10,%esp                     
                                                                      
}                                                                     
  10df88:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  10df8b:	5b                   	pop    %ebx                           
  10df8c:	5e                   	pop    %esi                           
  10df8d:	5f                   	pop    %edi                           
  10df8e:	c9                   	leave                                 
  10df8f:	c3                   	ret                                   
                                                                      

0010a978 <_Rate_monotonic_Timeout>: void _Rate_monotonic_Timeout( Objects_Id id, void *ignored ) {
  10a978:	55                   	push   %ebp                           
  10a979:	89 e5                	mov    %esp,%ebp                      
  10a97b:	53                   	push   %ebx                           
  10a97c:	83 ec 18             	sub    $0x18,%esp                     
                                                                      
  /*                                                                  
   *  When we get here, the Timer is already off the chain so we do not
   *  have to worry about that -- hence no _Watchdog_Remove().        
   */                                                                 
  the_period = _Rate_monotonic_Get( id, &location );                  
  10a97f:	8d 45 f4             	lea    -0xc(%ebp),%eax                
  10a982:	50                   	push   %eax                           
  10a983:	ff 75 08             	pushl  0x8(%ebp)                      
  10a986:	68 bc 6a 12 00       	push   $0x126abc                      
  10a98b:	e8 5c 19 00 00       	call   10c2ec <_Objects_Get>          
  10a990:	89 c3                	mov    %eax,%ebx                      
  switch ( location ) {                                               
  10a992:	83 c4 10             	add    $0x10,%esp                     
  10a995:	83 7d f4 00          	cmpl   $0x0,-0xc(%ebp)                
  10a999:	75 64                	jne    10a9ff <_Rate_monotonic_Timeout+0x87><== NEVER TAKEN
                                                                      
    case OBJECTS_LOCAL:                                               
      the_thread = the_period->owner;                                 
  10a99b:	8b 40 40             	mov    0x40(%eax),%eax                
      if ( _States_Is_waiting_for_period( the_thread->current_state ) &&
  10a99e:	f6 40 11 40          	testb  $0x40,0x11(%eax)               
  10a9a2:	74 18                	je     10a9bc <_Rate_monotonic_Timeout+0x44>
  10a9a4:	8b 53 08             	mov    0x8(%ebx),%edx                 
  10a9a7:	39 50 20             	cmp    %edx,0x20(%eax)                
  10a9aa:	75 10                	jne    10a9bc <_Rate_monotonic_Timeout+0x44>
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Unblock (                           
  Thread_Control *the_thread                                          
)                                                                     
{                                                                     
  _Thread_Clear_state( the_thread, STATES_BLOCKED );                  
  10a9ac:	52                   	push   %edx                           
  10a9ad:	52                   	push   %edx                           
  10a9ae:	68 f8 ff 03 10       	push   $0x1003fff8                    
  10a9b3:	50                   	push   %eax                           
  10a9b4:	e8 9b 20 00 00       	call   10ca54 <_Thread_Clear_state>   
            the_thread->Wait.id == the_period->Object.id ) {          
        _Thread_Unblock( the_thread );                                
                                                                      
        _Rate_monotonic_Initiate_statistics( the_period );            
  10a9b9:	59                   	pop    %ecx                           
  10a9ba:	eb 10                	jmp    10a9cc <_Rate_monotonic_Timeout+0x54>
                                                                      
        _Watchdog_Insert_ticks( &the_period->Timer, the_period->next_length );
      } else if ( the_period->state == RATE_MONOTONIC_OWNER_IS_BLOCKING ) {
  10a9bc:	83 7b 38 01          	cmpl   $0x1,0x38(%ebx)                
  10a9c0:	75 2b                	jne    10a9ed <_Rate_monotonic_Timeout+0x75>
        the_period->state = RATE_MONOTONIC_EXPIRED_WHILE_BLOCKING;    
  10a9c2:	c7 43 38 03 00 00 00 	movl   $0x3,0x38(%ebx)                
                                                                      
        _Rate_monotonic_Initiate_statistics( the_period );            
  10a9c9:	83 ec 0c             	sub    $0xc,%esp                      
  10a9cc:	53                   	push   %ebx                           
  10a9cd:	e8 ec fa ff ff       	call   10a4be <_Rate_monotonic_Initiate_statistics>
  Watchdog_Control      *the_watchdog,                                
  Watchdog_Interval      units                                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
  10a9d2:	8b 43 3c             	mov    0x3c(%ebx),%eax                
  10a9d5:	89 43 1c             	mov    %eax,0x1c(%ebx)                
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
  10a9d8:	58                   	pop    %eax                           
  10a9d9:	5a                   	pop    %edx                           
                                                                      
        _Watchdog_Insert_ticks( &the_period->Timer, the_period->next_length );
  10a9da:	83 c3 10             	add    $0x10,%ebx                     
  10a9dd:	53                   	push   %ebx                           
  10a9de:	68 68 6c 12 00       	push   $0x126c68                      
  10a9e3:	e8 f8 2f 00 00       	call   10d9e0 <_Watchdog_Insert>      
  10a9e8:	83 c4 10             	add    $0x10,%esp                     
  10a9eb:	eb 07                	jmp    10a9f4 <_Rate_monotonic_Timeout+0x7c>
      } else                                                          
        the_period->state = RATE_MONOTONIC_EXPIRED;                   
  10a9ed:	c7 43 38 04 00 00 00 	movl   $0x4,0x38(%ebx)                
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void )             
{                                                                     
  RTEMS_COMPILER_MEMORY_BARRIER();                                    
  _Thread_Dispatch_disable_level -= 1;                                
  10a9f4:	a1 a8 6b 12 00       	mov    0x126ba8,%eax                  
  10a9f9:	48                   	dec    %eax                           
  10a9fa:	a3 a8 6b 12 00       	mov    %eax,0x126ba8                  
    case OBJECTS_REMOTE:  /* impossible */                            
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
}                                                                     
  10a9ff:	8b 5d fc             	mov    -0x4(%ebp),%ebx                
  10aa02:	c9                   	leave                                 
  10aa03:	c3                   	ret                                   
                                                                      

0010ae70 <_Scheduler_priority_Block>: #include <rtems/score/thread.h> void _Scheduler_priority_Block( Thread_Control *the_thread ) {
  10ae70:	55                   	push   %ebp                           
  10ae71:	89 e5                	mov    %esp,%ebp                      
  10ae73:	56                   	push   %esi                           
  10ae74:	53                   	push   %ebx                           
  10ae75:	8b 55 08             	mov    0x8(%ebp),%edx                 
)                                                                     
{                                                                     
  Scheduler_priority_Per_thread *sched_info;                          
  Chain_Control                 *ready;                               
                                                                      
  sched_info = (Scheduler_priority_Per_thread *) the_thread->scheduler_info;
  10ae78:	8b 8a 8c 00 00 00    	mov    0x8c(%edx),%ecx                
  ready      = sched_info->ready_chain;                               
  10ae7e:	8b 01                	mov    (%ecx),%eax                    
                                                                      
  if ( _Chain_Has_only_one_node( ready ) ) {                          
  10ae80:	8b 58 08             	mov    0x8(%eax),%ebx                 
  10ae83:	39 18                	cmp    %ebx,(%eax)                    
  10ae85:	75 32                	jne    10aeb9 <_Scheduler_priority_Block+0x49>
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  10ae87:	8d 58 04             	lea    0x4(%eax),%ebx                 
  10ae8a:	89 18                	mov    %ebx,(%eax)                    
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
  10ae8c:	c7 40 04 00 00 00 00 	movl   $0x0,0x4(%eax)                 
  tail->previous = head;                                              
  10ae93:	89 40 08             	mov    %eax,0x8(%eax)                 
                                                                      
RTEMS_INLINE_ROUTINE void _Priority_bit_map_Remove (                  
  Priority_bit_map_Information *the_priority_map                      
)                                                                     
{                                                                     
  *the_priority_map->minor &= the_priority_map->block_minor;          
  10ae96:	8b 59 04             	mov    0x4(%ecx),%ebx                 
  10ae99:	66 8b 03             	mov    (%ebx),%ax                     
  10ae9c:	66 23 41 0e          	and    0xe(%ecx),%ax                  
  10aea0:	66 89 03             	mov    %ax,(%ebx)                     
  if ( *the_priority_map->minor == 0 )                                
  10aea3:	66 85 c0             	test   %ax,%ax                        
  10aea6:	75 1b                	jne    10aec3 <_Scheduler_priority_Block+0x53>
    _Priority_Major_bit_map &= the_priority_map->block_major;         
  10aea8:	66 a1 6c 34 12 00    	mov    0x12346c,%ax                   
  10aeae:	23 41 0c             	and    0xc(%ecx),%eax                 
  10aeb1:	66 a3 6c 34 12 00    	mov    %ax,0x12346c                   
  10aeb7:	eb 0a                	jmp    10aec3 <_Scheduler_priority_Block+0x53>
)                                                                     
{                                                                     
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
  10aeb9:	8b 0a                	mov    (%edx),%ecx                    
  previous       = the_node->previous;                                
  10aebb:	8b 42 04             	mov    0x4(%edx),%eax                 
  next->previous = previous;                                          
  10aebe:	89 41 04             	mov    %eax,0x4(%ecx)                 
  previous->next = next;                                              
  10aec1:	89 08                	mov    %ecx,(%eax)                    
  _Scheduler_priority_Ready_queue_extract( the_thread );              
                                                                      
  /* TODO: flash critical section? */                                 
                                                                      
  if ( _Thread_Is_heir( the_thread ) )                                
  10aec3:	3b 15 60 34 12 00    	cmp    0x123460,%edx                  
  10aec9:	75 43                	jne    10af0e <_Scheduler_priority_Block+0x9e>
RTEMS_INLINE_ROUTINE Priority_Control _Priority_bit_map_Get_highest( void )
{                                                                     
  Priority_bit_map_Control minor;                                     
  Priority_bit_map_Control major;                                     
                                                                      
  _Bitfield_Find_first_bit( _Priority_Major_bit_map, major );         
  10aecb:	66 8b 35 6c 34 12 00 	mov    0x12346c,%si                   
  10aed2:	31 c9                	xor    %ecx,%ecx                      
  10aed4:	89 cb                	mov    %ecx,%ebx                      
  10aed6:	66 0f bc de          	bsf    %si,%bx                        
  _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor );        
  10aeda:	0f b7 db             	movzwl %bx,%ebx                       
  10aedd:	66 8b b4 1b 70 34 12 	mov    0x123470(%ebx,%ebx,1),%si      
  10aee4:	00                                                          
  10aee5:	66 0f bc ce          	bsf    %si,%cx                        
                                                                      
  return (_Priority_Bits_index( major ) << 4) +                       
  10aee9:	c1 e3 04             	shl    $0x4,%ebx                      
  10aeec:	0f b7 c9             	movzwl %cx,%ecx                       
  10aeef:	8d 04 0b             	lea    (%ebx,%ecx,1),%eax             
  Chain_Control       *the_ready_queue                                
)                                                                     
{                                                                     
  Priority_Control index = _Priority_bit_map_Get_highest();           
                                                                      
  if ( !_Chain_Is_empty( &the_ready_queue[ index ] ) )                
  10aef2:	6b c0 0c             	imul   $0xc,%eax,%eax                 
  10aef5:	03 05 50 f1 11 00    	add    0x11f150,%eax                  
     _Scheduler_priority_Schedule_body();                             
                                                                      
  if ( _Thread_Is_executing( the_thread ) )                           
    _Thread_Dispatch_necessary = true;                                
                                                                      
}                                                                     
  10aefb:	8b 18                	mov    (%eax),%ebx                    
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_first( the_chain )                          
    == _Chain_Immutable_tail( the_chain );                            
  10aefd:	83 c0 04             	add    $0x4,%eax                      
    return (Thread_Control *) _Chain_First( &the_ready_queue[ index ] );
                                                                      
  return NULL;                                                        
  10af00:	31 c9                	xor    %ecx,%ecx                      
  Chain_Control       *the_ready_queue                                
)                                                                     
{                                                                     
  Priority_Control index = _Priority_bit_map_Get_highest();           
                                                                      
  if ( !_Chain_Is_empty( &the_ready_queue[ index ] ) )                
  10af02:	39 c3                	cmp    %eax,%ebx                      
  10af04:	74 02                	je     10af08 <_Scheduler_priority_Block+0x98><== NEVER TAKEN
    return (Thread_Control *) _Chain_First( &the_ready_queue[ index ] );
  10af06:	89 d9                	mov    %ebx,%ecx                      
 *                                                                    
 *  @param[in] the_thread  - pointer to thread                        
 */                                                                   
RTEMS_INLINE_ROUTINE void _Scheduler_priority_Schedule_body(void)     
{                                                                     
  _Thread_Heir = _Scheduler_priority_Ready_queue_first(               
  10af08:	89 0d 60 34 12 00    	mov    %ecx,0x123460                  
  /* TODO: flash critical section? */                                 
                                                                      
  if ( _Thread_Is_heir( the_thread ) )                                
     _Scheduler_priority_Schedule_body();                             
                                                                      
  if ( _Thread_Is_executing( the_thread ) )                           
  10af0e:	3b 15 5c 34 12 00    	cmp    0x12345c,%edx                  
  10af14:	75 07                	jne    10af1d <_Scheduler_priority_Block+0xad>
    _Thread_Dispatch_necessary = true;                                
  10af16:	c6 05 68 34 12 00 01 	movb   $0x1,0x123468                  
                                                                      
}                                                                     
  10af1d:	5b                   	pop    %ebx                           
  10af1e:	5e                   	pop    %esi                           
  10af1f:	c9                   	leave                                 
  10af20:	c3                   	ret                                   
                                                                      

0010b070 <_Scheduler_priority_Schedule>: #include <rtems/system.h> #include <rtems/score/scheduler.h> #include <rtems/score/schedulerpriority.h> void _Scheduler_priority_Schedule(void) {
  10b070:	55                   	push   %ebp                           
  10b071:	89 e5                	mov    %esp,%ebp                      
  10b073:	53                   	push   %ebx                           
RTEMS_INLINE_ROUTINE Priority_Control _Priority_bit_map_Get_highest( void )
{                                                                     
  Priority_bit_map_Control minor;                                     
  Priority_bit_map_Control major;                                     
                                                                      
  _Bitfield_Find_first_bit( _Priority_Major_bit_map, major );         
  10b074:	66 8b 1d 6c 34 12 00 	mov    0x12346c,%bx                   
  10b07b:	31 d2                	xor    %edx,%edx                      
  10b07d:	89 d1                	mov    %edx,%ecx                      
  10b07f:	66 0f bc cb          	bsf    %bx,%cx                        
  _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor );        
  10b083:	0f b7 c9             	movzwl %cx,%ecx                       
  10b086:	66 8b 9c 09 70 34 12 	mov    0x123470(%ecx,%ecx,1),%bx      
  10b08d:	00                                                          
  10b08e:	66 0f bc d3          	bsf    %bx,%dx                        
                                                                      
  return (_Priority_Bits_index( major ) << 4) +                       
  10b092:	c1 e1 04             	shl    $0x4,%ecx                      
  10b095:	0f b7 d2             	movzwl %dx,%edx                       
  10b098:	8d 04 11             	lea    (%ecx,%edx,1),%eax             
  Chain_Control       *the_ready_queue                                
)                                                                     
{                                                                     
  Priority_Control index = _Priority_bit_map_Get_highest();           
                                                                      
  if ( !_Chain_Is_empty( &the_ready_queue[ index ] ) )                
  10b09b:	6b c0 0c             	imul   $0xc,%eax,%eax                 
  10b09e:	03 05 50 f1 11 00    	add    0x11f150,%eax                  
  _Scheduler_priority_Schedule_body();                                
}                                                                     
  10b0a4:	8b 08                	mov    (%eax),%ecx                    
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_first( the_chain )                          
    == _Chain_Immutable_tail( the_chain );                            
  10b0a6:	83 c0 04             	add    $0x4,%eax                      
    return (Thread_Control *) _Chain_First( &the_ready_queue[ index ] );
                                                                      
  return NULL;                                                        
  10b0a9:	31 d2                	xor    %edx,%edx                      
  Chain_Control       *the_ready_queue                                
)                                                                     
{                                                                     
  Priority_Control index = _Priority_bit_map_Get_highest();           
                                                                      
  if ( !_Chain_Is_empty( &the_ready_queue[ index ] ) )                
  10b0ab:	39 c1                	cmp    %eax,%ecx                      
  10b0ad:	74 02                	je     10b0b1 <_Scheduler_priority_Schedule+0x41><== NEVER TAKEN
    return (Thread_Control *) _Chain_First( &the_ready_queue[ index ] );
  10b0af:	89 ca                	mov    %ecx,%edx                      
 *                                                                    
 *  @param[in] the_thread  - pointer to thread                        
 */                                                                   
RTEMS_INLINE_ROUTINE void _Scheduler_priority_Schedule_body(void)     
{                                                                     
  _Thread_Heir = _Scheduler_priority_Ready_queue_first(               
  10b0b1:	89 15 60 34 12 00    	mov    %edx,0x123460                  
  10b0b7:	5b                   	pop    %ebx                           
  10b0b8:	c9                   	leave                                 
  10b0b9:	c3                   	ret                                   
                                                                      

0010b17c <_Scheduler_priority_Yield>: * ready chain * select heir */ void _Scheduler_priority_Yield(void) {
  10b17c:	55                   	push   %ebp                           
  10b17d:	89 e5                	mov    %esp,%ebp                      
  10b17f:	56                   	push   %esi                           
  10b180:	53                   	push   %ebx                           
  Scheduler_priority_Per_thread *sched_info;                          
  ISR_Level                      level;                               
  Thread_Control                *executing;                           
  Chain_Control                 *ready;                               
                                                                      
  executing  = _Thread_Executing;                                     
  10b181:	a1 5c 34 12 00       	mov    0x12345c,%eax                  
  sched_info = (Scheduler_priority_Per_thread *) executing->scheduler_info;
  ready      = sched_info->ready_chain;                               
  10b186:	8b 90 8c 00 00 00    	mov    0x8c(%eax),%edx                
  10b18c:	8b 12                	mov    (%edx),%edx                    
  _ISR_Disable( level );                                              
  10b18e:	9c                   	pushf                                 
  10b18f:	fa                   	cli                                   
  10b190:	59                   	pop    %ecx                           
    if ( !_Chain_Has_only_one_node( ready ) ) {                       
  10b191:	8b 5a 08             	mov    0x8(%edx),%ebx                 
  10b194:	39 1a                	cmp    %ebx,(%edx)                    
  10b196:	74 2e                	je     10b1c6 <_Scheduler_priority_Yield+0x4a>
)                                                                     
{                                                                     
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
  10b198:	8b 30                	mov    (%eax),%esi                    
  previous       = the_node->previous;                                
  10b19a:	8b 58 04             	mov    0x4(%eax),%ebx                 
  next->previous = previous;                                          
  10b19d:	89 5e 04             	mov    %ebx,0x4(%esi)                 
  previous->next = next;                                              
  10b1a0:	89 33                	mov    %esi,(%ebx)                    
  Chain_Control *the_chain,                                           
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
  10b1a2:	8b 5a 08             	mov    0x8(%edx),%ebx                 
RTEMS_INLINE_ROUTINE void _Chain_Append_unprotected(                  
  Chain_Control *the_chain,                                           
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  10b1a5:	8d 72 04             	lea    0x4(%edx),%esi                 
  10b1a8:	89 30                	mov    %esi,(%eax)                    
  Chain_Node *old_last = tail->previous;                              
                                                                      
  the_node->next = tail;                                              
  tail->previous = the_node;                                          
  10b1aa:	89 42 08             	mov    %eax,0x8(%edx)                 
  old_last->next = the_node;                                          
  10b1ad:	89 03                	mov    %eax,(%ebx)                    
  the_node->previous = old_last;                                      
  10b1af:	89 58 04             	mov    %ebx,0x4(%eax)                 
      _Chain_Extract_unprotected( &executing->Object.Node );          
      _Chain_Append_unprotected( ready, &executing->Object.Node );    
                                                                      
      _ISR_Flash( level );                                            
  10b1b2:	51                   	push   %ecx                           
  10b1b3:	9d                   	popf                                  
  10b1b4:	fa                   	cli                                   
                                                                      
      if ( _Thread_Is_heir( executing ) )                             
  10b1b5:	3b 05 60 34 12 00    	cmp    0x123460,%eax                  
  10b1bb:	75 11                	jne    10b1ce <_Scheduler_priority_Yield+0x52><== NEVER TAKEN
        _Thread_Heir = (Thread_Control *) _Chain_First( ready );      
  10b1bd:	8b 02                	mov    (%edx),%eax                    
  10b1bf:	a3 60 34 12 00       	mov    %eax,0x123460                  
  10b1c4:	eb 08                	jmp    10b1ce <_Scheduler_priority_Yield+0x52>
      _Thread_Dispatch_necessary = true;                              
    }                                                                 
    else if ( !_Thread_Is_heir( executing ) )                         
  10b1c6:	3b 05 60 34 12 00    	cmp    0x123460,%eax                  
  10b1cc:	74 07                	je     10b1d5 <_Scheduler_priority_Yield+0x59><== ALWAYS TAKEN
      _Thread_Dispatch_necessary = true;                              
  10b1ce:	c6 05 68 34 12 00 01 	movb   $0x1,0x123468                  
                                                                      
  _ISR_Enable( level );                                               
  10b1d5:	51                   	push   %ecx                           
  10b1d6:	9d                   	popf                                  
}                                                                     
  10b1d7:	5b                   	pop    %ebx                           
  10b1d8:	5e                   	pop    %esi                           
  10b1d9:	c9                   	leave                                 
  10b1da:	c3                   	ret                                   
                                                                      

0010a370 <_TOD_Validate>: */ bool _TOD_Validate( const rtems_time_of_day *the_tod ) {
  10a370:	55                   	push   %ebp                           
  10a371:	89 e5                	mov    %esp,%ebp                      
  10a373:	56                   	push   %esi                           
  10a374:	53                   	push   %ebx                           
  10a375:	8b 4d 08             	mov    0x8(%ebp),%ecx                 
  uint32_t   days_in_month;                                           
  uint32_t   ticks_per_second;                                        
                                                                      
  ticks_per_second = TOD_MICROSECONDS_PER_SECOND /                    
	    rtems_configuration_get_microseconds_per_tick();                 
  10a378:	8b 35 34 22 12 00    	mov    0x122234,%esi                  
      (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;                                                    
  10a37e:	31 db                	xor    %ebx,%ebx                      
  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)                                  ||                  
  10a380:	85 c9                	test   %ecx,%ecx                      
  10a382:	74 57                	je     10a3db <_TOD_Validate+0x6b>    <== NEVER TAKEN
)                                                                     
{                                                                     
  uint32_t   days_in_month;                                           
  uint32_t   ticks_per_second;                                        
                                                                      
  ticks_per_second = TOD_MICROSECONDS_PER_SECOND /                    
  10a384:	b8 40 42 0f 00       	mov    $0xf4240,%eax                  
  10a389:	31 d2                	xor    %edx,%edx                      
  10a38b:	f7 f6                	div    %esi                           
	    rtems_configuration_get_microseconds_per_tick();                 
  if ((!the_tod)                                  ||                  
  10a38d:	39 41 18             	cmp    %eax,0x18(%ecx)                
  10a390:	73 49                	jae    10a3db <_TOD_Validate+0x6b>    
      (the_tod->ticks  >= ticks_per_second)       ||                  
  10a392:	83 79 14 3b          	cmpl   $0x3b,0x14(%ecx)               
  10a396:	77 43                	ja     10a3db <_TOD_Validate+0x6b>    
      (the_tod->second >= TOD_SECONDS_PER_MINUTE) ||                  
  10a398:	83 79 10 3b          	cmpl   $0x3b,0x10(%ecx)               
  10a39c:	77 3d                	ja     10a3db <_TOD_Validate+0x6b>    
      (the_tod->minute >= TOD_MINUTES_PER_HOUR)   ||                  
  10a39e:	83 79 0c 17          	cmpl   $0x17,0xc(%ecx)                
  10a3a2:	77 37                	ja     10a3db <_TOD_Validate+0x6b>    
      (the_tod->hour   >= TOD_HOURS_PER_DAY)      ||                  
      (the_tod->month  == 0)                      ||                  
  10a3a4:	8b 41 04             	mov    0x4(%ecx),%eax                 
	    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)      ||                  
  10a3a7:	85 c0                	test   %eax,%eax                      
  10a3a9:	74 30                	je     10a3db <_TOD_Validate+0x6b>    <== NEVER TAKEN
      (the_tod->month  == 0)                      ||                  
  10a3ab:	83 f8 0c             	cmp    $0xc,%eax                      
  10a3ae:	77 2b                	ja     10a3db <_TOD_Validate+0x6b>    
      (the_tod->month  >  TOD_MONTHS_PER_YEAR)    ||                  
      (the_tod->year   <  TOD_BASE_YEAR)          ||                  
  10a3b0:	8b 31                	mov    (%ecx),%esi                    
      (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)    ||                  
  10a3b2:	81 fe c3 07 00 00    	cmp    $0x7c3,%esi                    
  10a3b8:	76 21                	jbe    10a3db <_TOD_Validate+0x6b>    
      (the_tod->year   <  TOD_BASE_YEAR)          ||                  
      (the_tod->day    == 0) )                                        
  10a3ba:	8b 51 08             	mov    0x8(%ecx),%edx                 
      (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)          ||                  
  10a3bd:	85 d2                	test   %edx,%edx                      
  10a3bf:	74 1a                	je     10a3db <_TOD_Validate+0x6b>    <== NEVER TAKEN
      (the_tod->day    == 0) )                                        
     return false;                                                    
                                                                      
  if ( (the_tod->year % 4) == 0 )                                     
  10a3c1:	83 e6 03             	and    $0x3,%esi                      
  10a3c4:	75 09                	jne    10a3cf <_TOD_Validate+0x5f>    
    days_in_month = _TOD_Days_per_month[ 1 ][ the_tod->month ];       
  10a3c6:	8b 04 85 c4 03 12 00 	mov    0x1203c4(,%eax,4),%eax         
  10a3cd:	eb 07                	jmp    10a3d6 <_TOD_Validate+0x66>    
  else                                                                
    days_in_month = _TOD_Days_per_month[ 0 ][ the_tod->month ];       
  10a3cf:	8b 04 85 90 03 12 00 	mov    0x120390(,%eax,4),%eax         
 *    false - if the the_tod is invalid                               
 *                                                                    
 *  NOTE: This routine only works for leap-years through 2099.        
 */                                                                   
                                                                      
bool _TOD_Validate(                                                   
  10a3d6:	39 c2                	cmp    %eax,%edx                      
  10a3d8:	0f 96 c3             	setbe  %bl                            
                                                                      
  if ( the_tod->day > days_in_month )                                 
    return false;                                                     
                                                                      
  return true;                                                        
}                                                                     
  10a3db:	88 d8                	mov    %bl,%al                        
  10a3dd:	5b                   	pop    %ebx                           
  10a3de:	5e                   	pop    %esi                           
  10a3df:	c9                   	leave                                 
  10a3e0:	c3                   	ret                                   
                                                                      

0010b228 <_Thread_Change_priority>: void _Thread_Change_priority( Thread_Control *the_thread, Priority_Control new_priority, bool prepend_it ) {
  10b228:	55                   	push   %ebp                           
  10b229:	89 e5                	mov    %esp,%ebp                      
  10b22b:	57                   	push   %edi                           
  10b22c:	56                   	push   %esi                           
  10b22d:	53                   	push   %ebx                           
  10b22e:	83 ec 28             	sub    $0x28,%esp                     
  10b231:	8b 5d 08             	mov    0x8(%ebp),%ebx                 
  10b234:	8b 75 0c             	mov    0xc(%ebp),%esi                 
  10b237:	8a 45 10             	mov    0x10(%ebp),%al                 
  10b23a:	88 45 e7             	mov    %al,-0x19(%ebp)                
  States_Control state, original_state;                               
                                                                      
  /*                                                                  
   * Save original state                                              
   */                                                                 
  original_state = the_thread->current_state;                         
  10b23d:	8b 7b 10             	mov    0x10(%ebx),%edi                
  /*                                                                  
   * Set a transient state for the thread so it is pulled off the Ready chains.
   * This will prevent it from being scheduled no matter what happens in an
   * ISR.                                                             
   */                                                                 
  _Thread_Set_transient( the_thread );                                
  10b240:	53                   	push   %ebx                           
  10b241:	e8 3a 0b 00 00       	call   10bd80 <_Thread_Set_transient> 
                                                                      
  /*                                                                  
   *  Do not bother recomputing all the priority related information if
   *  we are not REALLY changing priority.                            
   */                                                                 
 if ( the_thread->current_priority != new_priority )                  
  10b246:	83 c4 10             	add    $0x10,%esp                     
  10b249:	39 73 14             	cmp    %esi,0x14(%ebx)                
  10b24c:	74 0c                	je     10b25a <_Thread_Change_priority+0x32>
    _Thread_Set_priority( the_thread, new_priority );                 
  10b24e:	50                   	push   %eax                           
  10b24f:	50                   	push   %eax                           
  10b250:	56                   	push   %esi                           
  10b251:	53                   	push   %ebx                           
  10b252:	e8 d9 0a 00 00       	call   10bd30 <_Thread_Set_priority>  
  10b257:	83 c4 10             	add    $0x10,%esp                     
                                                                      
  _ISR_Disable( level );                                              
  10b25a:	9c                   	pushf                                 
  10b25b:	fa                   	cli                                   
  10b25c:	5e                   	pop    %esi                           
                                                                      
  /*                                                                  
   *  If the thread has more than STATES_TRANSIENT set, then it is blocked,
   *  If it is blocked on a thread queue, then we need to requeue it. 
   */                                                                 
  state = the_thread->current_state;                                  
  10b25d:	8b 43 10             	mov    0x10(%ebx),%eax                
  if ( state != STATES_TRANSIENT ) {                                  
  10b260:	83 f8 04             	cmp    $0x4,%eax                      
  10b263:	74 2b                	je     10b290 <_Thread_Change_priority+0x68>
    /* Only clear the transient state if it wasn't set already */     
    if ( ! _States_Is_transient( original_state ) )                   
  10b265:	83 e7 04             	and    $0x4,%edi                      
  10b268:	75 08                	jne    10b272 <_Thread_Change_priority+0x4a><== NEVER TAKEN
RTEMS_INLINE_ROUTINE States_Control _States_Clear (                   
  States_Control states_to_clear,                                     
  States_Control current_state                                        
)                                                                     
{                                                                     
   return (current_state & ~states_to_clear);                         
  10b26a:	89 c2                	mov    %eax,%edx                      
  10b26c:	83 e2 fb             	and    $0xfffffffb,%edx               
  10b26f:	89 53 10             	mov    %edx,0x10(%ebx)                
      the_thread->current_state = _States_Clear( STATES_TRANSIENT, state );
    _ISR_Enable( level );                                             
  10b272:	56                   	push   %esi                           
  10b273:	9d                   	popf                                  
    if ( _States_Is_waiting_on_thread_queue( state ) ) {              
  10b274:	a9 e0 be 03 00       	test   $0x3bee0,%eax                  
  10b279:	74 65                	je     10b2e0 <_Thread_Change_priority+0xb8>
      _Thread_queue_Requeue( the_thread->Wait.queue, the_thread );    
  10b27b:	89 5d 0c             	mov    %ebx,0xc(%ebp)                 
  10b27e:	8b 43 44             	mov    0x44(%ebx),%eax                
  10b281:	89 45 08             	mov    %eax,0x8(%ebp)                 
                                                                      
  if ( !_Thread_Is_executing_also_the_heir() &&                       
       _Thread_Executing->is_preemptible )                            
    _Thread_Dispatch_necessary = true;                                
  _ISR_Enable( level );                                               
}                                                                     
  10b284:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  10b287:	5b                   	pop    %ebx                           
  10b288:	5e                   	pop    %esi                           
  10b289:	5f                   	pop    %edi                           
  10b28a:	c9                   	leave                                 
    /* Only clear the transient state if it wasn't set already */     
    if ( ! _States_Is_transient( original_state ) )                   
      the_thread->current_state = _States_Clear( STATES_TRANSIENT, state );
    _ISR_Enable( level );                                             
    if ( _States_Is_waiting_on_thread_queue( state ) ) {              
      _Thread_queue_Requeue( the_thread->Wait.queue, the_thread );    
  10b28b:	e9 18 0a 00 00       	jmp    10bca8 <_Thread_queue_Requeue> 
    }                                                                 
    return;                                                           
  }                                                                   
                                                                      
  /* Only clear the transient state if it wasn't set already */       
  if ( ! _States_Is_transient( original_state ) ) {                   
  10b290:	83 e7 04             	and    $0x4,%edi                      
  10b293:	75 26                	jne    10b2bb <_Thread_Change_priority+0x93><== NEVER TAKEN
     *  Interrupts are STILL disabled.                                
     *  We now know the thread will be in the READY state when we remove
     *  the TRANSIENT state.  So we have to place it on the appropriate
     *  Ready Queue with interrupts off.                              
     */                                                               
    the_thread->current_state = _States_Clear( STATES_TRANSIENT, state );
  10b295:	c7 43 10 00 00 00 00 	movl   $0x0,0x10(%ebx)                
                                                                      
    if ( prepend_it )                                                 
  10b29c:	80 7d e7 00          	cmpb   $0x0,-0x19(%ebp)               
  10b2a0:	74 0c                	je     10b2ae <_Thread_Change_priority+0x86>
 */                                                                   
RTEMS_INLINE_ROUTINE void _Scheduler_Enqueue_first(                   
  Thread_Control    *the_thread                                       
)                                                                     
{                                                                     
  _Scheduler.Operations.enqueue_first( the_thread );                  
  10b2a2:	83 ec 0c             	sub    $0xc,%esp                      
  10b2a5:	53                   	push   %ebx                           
  10b2a6:	ff 15 78 f1 11 00    	call   *0x11f178                      
  10b2ac:	eb 0a                	jmp    10b2b8 <_Thread_Change_priority+0x90>
 */                                                                   
RTEMS_INLINE_ROUTINE void _Scheduler_Enqueue(                         
  Thread_Control    *the_thread                                       
)                                                                     
{                                                                     
  _Scheduler.Operations.enqueue( the_thread );                        
  10b2ae:	83 ec 0c             	sub    $0xc,%esp                      
  10b2b1:	53                   	push   %ebx                           
  10b2b2:	ff 15 74 f1 11 00    	call   *0x11f174                      
  10b2b8:	83 c4 10             	add    $0x10,%esp                     
      _Scheduler_Enqueue_first( the_thread );                         
    else                                                              
      _Scheduler_Enqueue( the_thread );                               
  }                                                                   
                                                                      
  _ISR_Flash( level );                                                
  10b2bb:	56                   	push   %esi                           
  10b2bc:	9d                   	popf                                  
  10b2bd:	fa                   	cli                                   
 *  This kernel routine implements the scheduling decision logic for  
 *  the scheduler. It does NOT dispatch.                              
 */                                                                   
RTEMS_INLINE_ROUTINE void _Scheduler_Schedule( void )                 
{                                                                     
  _Scheduler.Operations.schedule();                                   
  10b2be:	ff 15 58 f1 11 00    	call   *0x11f158                      
 *  is also the heir thread, and false otherwise.                     
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE bool _Thread_Is_executing_also_the_heir( void )  
{                                                                     
  return ( _Thread_Executing == _Thread_Heir );                       
  10b2c4:	a1 5c 34 12 00       	mov    0x12345c,%eax                  
   *  We altered the set of thread priorities.  So let's figure out   
   *  who is the heir and if we need to switch to them.               
   */                                                                 
  _Scheduler_Schedule();                                              
                                                                      
  if ( !_Thread_Is_executing_also_the_heir() &&                       
  10b2c9:	3b 05 60 34 12 00    	cmp    0x123460,%eax                  
  10b2cf:	74 0d                	je     10b2de <_Thread_Change_priority+0xb6>
  10b2d1:	80 78 74 00          	cmpb   $0x0,0x74(%eax)                
  10b2d5:	74 07                	je     10b2de <_Thread_Change_priority+0xb6>
       _Thread_Executing->is_preemptible )                            
    _Thread_Dispatch_necessary = true;                                
  10b2d7:	c6 05 68 34 12 00 01 	movb   $0x1,0x123468                  
  _ISR_Enable( level );                                               
  10b2de:	56                   	push   %esi                           
  10b2df:	9d                   	popf                                  
}                                                                     
  10b2e0:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  10b2e3:	5b                   	pop    %ebx                           
  10b2e4:	5e                   	pop    %esi                           
  10b2e5:	5f                   	pop    %edi                           
  10b2e6:	c9                   	leave                                 
  10b2e7:	c3                   	ret                                   
                                                                      

0010b48c <_Thread_Delay_ended>: void _Thread_Delay_ended( Objects_Id id, void *ignored __attribute__((unused)) ) {
  10b48c:	55                   	push   %ebp                           
  10b48d:	89 e5                	mov    %esp,%ebp                      
  10b48f:	83 ec 20             	sub    $0x20,%esp                     
  Thread_Control    *the_thread;                                      
  Objects_Locations  location;                                        
                                                                      
  the_thread = _Thread_Get( id, &location );                          
  10b492:	8d 45 f4             	lea    -0xc(%ebp),%eax                
  10b495:	50                   	push   %eax                           
  10b496:	ff 75 08             	pushl  0x8(%ebp)                      
  10b499:	e8 82 01 00 00       	call   10b620 <_Thread_Get>           
  switch ( location ) {                                               
  10b49e:	83 c4 10             	add    $0x10,%esp                     
  10b4a1:	83 7d f4 00          	cmpl   $0x0,-0xc(%ebp)                
  10b4a5:	75 1b                	jne    10b4c2 <_Thread_Delay_ended+0x36><== NEVER TAKEN
#if defined(RTEMS_MULTIPROCESSING)                                    
    case OBJECTS_REMOTE:  /* impossible */                            
#endif                                                                
      break;                                                          
    case OBJECTS_LOCAL:                                               
      _Thread_Clear_state(                                            
  10b4a7:	52                   	push   %edx                           
  10b4a8:	52                   	push   %edx                           
  10b4a9:	68 18 00 00 10       	push   $0x10000018                    
  10b4ae:	50                   	push   %eax                           
  10b4af:	e8 34 fe ff ff       	call   10b2e8 <_Thread_Clear_state>   
  10b4b4:	a1 44 32 12 00       	mov    0x123244,%eax                  
  10b4b9:	48                   	dec    %eax                           
  10b4ba:	a3 44 32 12 00       	mov    %eax,0x123244                  
  10b4bf:	83 c4 10             	add    $0x10,%esp                     
          | STATES_INTERRUPTIBLE_BY_SIGNAL                            
      );                                                              
      _Thread_Unnest_dispatch();                                      
      break;                                                          
  }                                                                   
}                                                                     
  10b4c2:	c9                   	leave                                 
  10b4c3:	c3                   	ret                                   
                                                                      

0010b4c4 <_Thread_Dispatch>: * dispatch thread * no dispatch thread */ void _Thread_Dispatch( void ) {
  10b4c4:	55                   	push   %ebp                           
  10b4c5:	89 e5                	mov    %esp,%ebp                      
  10b4c7:	57                   	push   %edi                           
  10b4c8:	56                   	push   %esi                           
  10b4c9:	53                   	push   %ebx                           
  10b4ca:	83 ec 1c             	sub    $0x1c,%esp                     
  Thread_Control   *executing;                                        
  Thread_Control   *heir;                                             
  ISR_Level         level;                                            
                                                                      
  executing   = _Thread_Executing;                                    
  10b4cd:	8b 1d 5c 34 12 00    	mov    0x12345c,%ebx                  
  _ISR_Disable( level );                                              
  10b4d3:	9c                   	pushf                                 
  10b4d4:	fa                   	cli                                   
  10b4d5:	58                   	pop    %eax                           
                                                                      
    #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                        
      {                                                               
        Timestamp_Control uptime, ran;                                
        _TOD_Get_uptime( &uptime );                                   
        _Timestamp_Subtract(                                          
  10b4d6:	8d 7d d8             	lea    -0x28(%ebp),%edi               
  Thread_Control   *heir;                                             
  ISR_Level         level;                                            
                                                                      
  executing   = _Thread_Executing;                                    
  _ISR_Disable( level );                                              
  while ( _Thread_Dispatch_necessary == true ) {                      
  10b4d9:	e9 f9 00 00 00       	jmp    10b5d7 <_Thread_Dispatch+0x113>
    heir = _Thread_Heir;                                              
  10b4de:	8b 35 60 34 12 00    	mov    0x123460,%esi                  
    _Thread_Dispatch_disable_level = 1;                               
  10b4e4:	c7 05 44 32 12 00 01 	movl   $0x1,0x123244                  
  10b4eb:	00 00 00                                                    
    _Thread_Dispatch_necessary = false;                               
  10b4ee:	c6 05 68 34 12 00 00 	movb   $0x0,0x123468                  
    _Thread_Executing = heir;                                         
  10b4f5:	89 35 5c 34 12 00    	mov    %esi,0x12345c                  
    /*                                                                
     *  When the heir and executing are the same, then we are being   
     *  requested to do the post switch dispatching.  This is normally
     *  done to dispatch signals.                                     
     */                                                               
    if ( heir == executing )                                          
  10b4fb:	39 de                	cmp    %ebx,%esi                      
  10b4fd:	0f 84 e2 00 00 00    	je     10b5e5 <_Thread_Dispatch+0x121>
     */                                                               
#if __RTEMS_ADA__                                                     
    executing->rtems_ada_self = rtems_ada_self;                       
    rtems_ada_self = heir->rtems_ada_self;                            
#endif                                                                
    if ( heir->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE )
  10b503:	83 7e 7c 01          	cmpl   $0x1,0x7c(%esi)                
  10b507:	75 09                	jne    10b512 <_Thread_Dispatch+0x4e> 
      heir->cpu_time_budget = _Thread_Ticks_per_timeslice;            
  10b509:	8b 15 18 32 12 00    	mov    0x123218,%edx                  
  10b50f:	89 56 78             	mov    %edx,0x78(%esi)                
                                                                      
    _ISR_Enable( level );                                             
  10b512:	50                   	push   %eax                           
  10b513:	9d                   	popf                                  
                                                                      
    #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                        
      {                                                               
        Timestamp_Control uptime, ran;                                
        _TOD_Get_uptime( &uptime );                                   
  10b514:	83 ec 0c             	sub    $0xc,%esp                      
  10b517:	8d 45 e0             	lea    -0x20(%ebp),%eax               
  10b51a:	50                   	push   %eax                           
  10b51b:	e8 34 30 00 00       	call   10e554 <_TOD_Get_uptime>       
        _Timestamp_Subtract(                                          
  10b520:	83 c4 0c             	add    $0xc,%esp                      
  10b523:	57                   	push   %edi                           
  10b524:	8d 45 e0             	lea    -0x20(%ebp),%eax               
  10b527:	50                   	push   %eax                           
  10b528:	68 f0 32 12 00       	push   $0x1232f0                      
  10b52d:	e8 16 0a 00 00       	call   10bf48 <_Timespec_Subtract>    
          &_Thread_Time_of_last_context_switch,                       
          &uptime,                                                    
          &ran                                                        
        );                                                            
        _Timestamp_Add_to( &executing->cpu_time_used, &ran );         
  10b532:	58                   	pop    %eax                           
  10b533:	5a                   	pop    %edx                           
  10b534:	57                   	push   %edi                           
  10b535:	8d 83 84 00 00 00    	lea    0x84(%ebx),%eax                
  10b53b:	50                   	push   %eax                           
  10b53c:	e8 d7 09 00 00       	call   10bf18 <_Timespec_Add_to>      
        _Thread_Time_of_last_context_switch = uptime;                 
  10b541:	8b 45 e0             	mov    -0x20(%ebp),%eax               
  10b544:	8b 55 e4             	mov    -0x1c(%ebp),%edx               
  10b547:	a3 f0 32 12 00       	mov    %eax,0x1232f0                  
  10b54c:	89 15 f4 32 12 00    	mov    %edx,0x1232f4                  
    #endif                                                            
                                                                      
    /*                                                                
     * Switch libc's task specific data.                              
     */                                                               
    if ( _Thread_libc_reent ) {                                       
  10b552:	a1 c8 32 12 00       	mov    0x1232c8,%eax                  
  10b557:	83 c4 10             	add    $0x10,%esp                     
  10b55a:	85 c0                	test   %eax,%eax                      
  10b55c:	74 10                	je     10b56e <_Thread_Dispatch+0xaa> <== NEVER TAKEN
      executing->libc_reent = *_Thread_libc_reent;                    
  10b55e:	8b 10                	mov    (%eax),%edx                    
  10b560:	89 93 e0 00 00 00    	mov    %edx,0xe0(%ebx)                
      *_Thread_libc_reent = heir->libc_reent;                         
  10b566:	8b 96 e0 00 00 00    	mov    0xe0(%esi),%edx                
  10b56c:	89 10                	mov    %edx,(%eax)                    
    }                                                                 
                                                                      
    _User_extensions_Thread_switch( executing, heir );                
  10b56e:	51                   	push   %ecx                           
  10b56f:	51                   	push   %ecx                           
  10b570:	56                   	push   %esi                           
  10b571:	53                   	push   %ebx                           
  10b572:	e8 09 0c 00 00       	call   10c180 <_User_extensions_Thread_switch>
    if ( executing->fp_context != NULL )                              
      _Context_Save_fp( &executing->fp_context );                     
#endif                                                                
#endif                                                                
                                                                      
    _Context_Switch( &executing->Registers, &heir->Registers );       
  10b577:	58                   	pop    %eax                           
  10b578:	5a                   	pop    %edx                           
  10b579:	81 c6 c4 00 00 00    	add    $0xc4,%esi                     
  10b57f:	56                   	push   %esi                           
  10b580:	8d 83 c4 00 00 00    	lea    0xc4(%ebx),%eax                
  10b586:	50                   	push   %eax                           
  10b587:	e8 c4 0e 00 00       	call   10c450 <_CPU_Context_switch>   
                                                                      
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )        
#if ( CPU_USE_DEFERRED_FP_SWITCH == TRUE )                            
    if ( (executing->fp_context != NULL) &&                           
  10b58c:	83 c4 10             	add    $0x10,%esp                     
  10b58f:	83 bb dc 00 00 00 00 	cmpl   $0x0,0xdc(%ebx)                
  10b596:	74 36                	je     10b5ce <_Thread_Dispatch+0x10a>
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )        
RTEMS_INLINE_ROUTINE bool _Thread_Is_allocated_fp (                   
  const Thread_Control *the_thread                                    
)                                                                     
{                                                                     
  return ( the_thread == _Thread_Allocated_fp );                      
  10b598:	a1 c4 32 12 00       	mov    0x1232c4,%eax                  
  10b59d:	39 c3                	cmp    %eax,%ebx                      
  10b59f:	74 2d                	je     10b5ce <_Thread_Dispatch+0x10a>
         !_Thread_Is_allocated_fp( executing ) ) {                    
      if ( _Thread_Allocated_fp != NULL )                             
  10b5a1:	85 c0                	test   %eax,%eax                      
  10b5a3:	74 11                	je     10b5b6 <_Thread_Dispatch+0xf2> 
        _Context_Save_fp( &_Thread_Allocated_fp->fp_context );        
  10b5a5:	83 ec 0c             	sub    $0xc,%esp                      
  10b5a8:	05 dc 00 00 00       	add    $0xdc,%eax                     
  10b5ad:	50                   	push   %eax                           
  10b5ae:	e8 d1 0e 00 00       	call   10c484 <_CPU_Context_save_fp>  
  10b5b3:	83 c4 10             	add    $0x10,%esp                     
      _Context_Restore_fp( &executing->fp_context );                  
  10b5b6:	83 ec 0c             	sub    $0xc,%esp                      
  10b5b9:	8d 83 dc 00 00 00    	lea    0xdc(%ebx),%eax                
  10b5bf:	50                   	push   %eax                           
  10b5c0:	e8 c9 0e 00 00       	call   10c48e <_CPU_Context_restore_fp>
      _Thread_Allocated_fp = executing;                               
  10b5c5:	89 1d c4 32 12 00    	mov    %ebx,0x1232c4                  
  10b5cb:	83 c4 10             	add    $0x10,%esp                     
    if ( executing->fp_context != NULL )                              
      _Context_Restore_fp( &executing->fp_context );                  
#endif                                                                
#endif                                                                
                                                                      
    executing = _Thread_Executing;                                    
  10b5ce:	8b 1d 5c 34 12 00    	mov    0x12345c,%ebx                  
                                                                      
    _ISR_Disable( level );                                            
  10b5d4:	9c                   	pushf                                 
  10b5d5:	fa                   	cli                                   
  10b5d6:	58                   	pop    %eax                           
  Thread_Control   *heir;                                             
  ISR_Level         level;                                            
                                                                      
  executing   = _Thread_Executing;                                    
  _ISR_Disable( level );                                              
  while ( _Thread_Dispatch_necessary == true ) {                      
  10b5d7:	8a 15 68 34 12 00    	mov    0x123468,%dl                   
  10b5dd:	84 d2                	test   %dl,%dl                        
  10b5df:	0f 85 f9 fe ff ff    	jne    10b4de <_Thread_Dispatch+0x1a> 
                                                                      
    _ISR_Disable( level );                                            
  }                                                                   
                                                                      
post_switch:                                                          
  _Thread_Dispatch_disable_level = 0;                                 
  10b5e5:	c7 05 44 32 12 00 00 	movl   $0x0,0x123244                  
  10b5ec:	00 00 00                                                    
                                                                      
  _ISR_Enable( level );                                               
  10b5ef:	50                   	push   %eax                           
  10b5f0:	9d                   	popf                                  
                                                                      
  _API_extensions_Run_postswitch();                                   
  10b5f1:	e8 69 e8 ff ff       	call   109e5f <_API_extensions_Run_postswitch>
}                                                                     
  10b5f6:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  10b5f9:	5b                   	pop    %ebx                           
  10b5fa:	5e                   	pop    %esi                           
  10b5fb:	5f                   	pop    %edi                           
  10b5fc:	c9                   	leave                                 
  10b5fd:	c3                   	ret                                   
                                                                      

0010fc2c <_Thread_Handler>: * * Output parameters: NONE */ void _Thread_Handler( void ) {
  10fc2c:	55                   	push   %ebp                           
  10fc2d:	89 e5                	mov    %esp,%ebp                      
  10fc2f:	53                   	push   %ebx                           
  10fc30:	83 ec 14             	sub    $0x14,%esp                     
  #if defined(EXECUTE_GLOBAL_CONSTRUCTORS)                            
    static char doneConstructors;                                     
    char doneCons;                                                    
  #endif                                                              
                                                                      
  executing = _Thread_Executing;                                      
  10fc33:	8b 1d 5c 34 12 00    	mov    0x12345c,%ebx                  
  /*                                                                  
   * have to put level into a register for those cpu's that use       
   * inline asm here                                                  
   */                                                                 
                                                                      
  level = executing->Start.isr_level;                                 
  10fc39:	8b 83 ac 00 00 00    	mov    0xac(%ebx),%eax                
  _ISR_Set_level(level);                                              
  10fc3f:	85 c0                	test   %eax,%eax                      
  10fc41:	74 03                	je     10fc46 <_Thread_Handler+0x1a>  
  10fc43:	fa                   	cli                                   
  10fc44:	eb 01                	jmp    10fc47 <_Thread_Handler+0x1b>  
  10fc46:	fb                   	sti                                   
                                                                      
  #if defined(EXECUTE_GLOBAL_CONSTRUCTORS)                            
    doneCons = doneConstructors;                                      
  10fc47:	a0 0c 2f 12 00       	mov    0x122f0c,%al                   
  10fc4c:	88 45 f7             	mov    %al,-0x9(%ebp)                 
    doneConstructors = 1;                                             
  10fc4f:	c6 05 0c 2f 12 00 01 	movb   $0x1,0x122f0c                  
  #endif                                                              
                                                                      
  #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )      
    #if ( CPU_USE_DEFERRED_FP_SWITCH == TRUE )                        
      if ( (executing->fp_context != NULL) &&                         
  10fc56:	83 bb dc 00 00 00 00 	cmpl   $0x0,0xdc(%ebx)                
  10fc5d:	74 24                	je     10fc83 <_Thread_Handler+0x57>  
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )        
RTEMS_INLINE_ROUTINE bool _Thread_Is_allocated_fp (                   
  const Thread_Control *the_thread                                    
)                                                                     
{                                                                     
  return ( the_thread == _Thread_Allocated_fp );                      
  10fc5f:	a1 c4 32 12 00       	mov    0x1232c4,%eax                  
  10fc64:	39 c3                	cmp    %eax,%ebx                      
  10fc66:	74 1b                	je     10fc83 <_Thread_Handler+0x57>  
            !_Thread_Is_allocated_fp( executing ) ) {                 
        if ( _Thread_Allocated_fp != NULL )                           
  10fc68:	85 c0                	test   %eax,%eax                      
  10fc6a:	74 11                	je     10fc7d <_Thread_Handler+0x51>  
          _Context_Save_fp( &_Thread_Allocated_fp->fp_context );      
  10fc6c:	83 ec 0c             	sub    $0xc,%esp                      
  10fc6f:	05 dc 00 00 00       	add    $0xdc,%eax                     
  10fc74:	50                   	push   %eax                           
  10fc75:	e8 0a c8 ff ff       	call   10c484 <_CPU_Context_save_fp>  
  10fc7a:	83 c4 10             	add    $0x10,%esp                     
        _Thread_Allocated_fp = executing;                             
  10fc7d:	89 1d c4 32 12 00    	mov    %ebx,0x1232c4                  
  /*                                                                  
   * Take care that 'begin' extensions get to complete before         
   * 'switch' extensions can run.  This means must keep dispatch      
   * disabled until all 'begin' extensions complete.                  
   */                                                                 
  _User_extensions_Thread_begin( executing );                         
  10fc83:	83 ec 0c             	sub    $0xc,%esp                      
  10fc86:	53                   	push   %ebx                           
  10fc87:	e8 a4 c3 ff ff       	call   10c030 <_User_extensions_Thread_begin>
                                                                      
  /*                                                                  
   *  At this point, the dispatch disable level BETTER be 1.          
   */                                                                 
  _Thread_Enable_dispatch();                                          
  10fc8c:	e8 6d b9 ff ff       	call   10b5fe <_Thread_Enable_dispatch>
    /*                                                                
     *  _init could be a weak symbol and we SHOULD test it but it isn't
     *  in any configuration I know of and it generates a warning on every
     *  RTEMS target configuration.  --joel (12 May 2007)             
     */                                                               
    if (!doneCons) /* && (volatile void *)_init) */ {                 
  10fc91:	83 c4 10             	add    $0x10,%esp                     
  10fc94:	80 7d f7 00          	cmpb   $0x0,-0x9(%ebp)                
  10fc98:	75 05                	jne    10fc9f <_Thread_Handler+0x73>  
      INIT_NAME ();                                                   
  10fc9a:	e8 f1 c6 00 00       	call   11c390 <__start_set_sysctl_set>
    }                                                                 
  #endif                                                              
                                                                      
  if ( executing->Start.prototype == THREAD_START_NUMERIC ) {         
  10fc9f:	83 bb 94 00 00 00 00 	cmpl   $0x0,0x94(%ebx)                
  10fca6:	75 15                	jne    10fcbd <_Thread_Handler+0x91>  <== NEVER TAKEN
    executing->Wait.return_argument =                                 
      (*(Thread_Entry_numeric) executing->Start.entry_point)(         
  10fca8:	83 ec 0c             	sub    $0xc,%esp                      
  10fcab:	ff b3 9c 00 00 00    	pushl  0x9c(%ebx)                     
  10fcb1:	ff 93 90 00 00 00    	call   *0x90(%ebx)                    
      INIT_NAME ();                                                   
    }                                                                 
  #endif                                                              
                                                                      
  if ( executing->Start.prototype == THREAD_START_NUMERIC ) {         
    executing->Wait.return_argument =                                 
  10fcb7:	89 43 28             	mov    %eax,0x28(%ebx)                
  10fcba:	83 c4 10             	add    $0x10,%esp                     
   *  was placed in return_argument.  This assumed that if it returned
   *  anything (which is not supporting in all APIs), then it would be
   *  able to fit in a (void *).                                      
   */                                                                 
                                                                      
  _User_extensions_Thread_exitted( executing );                       
  10fcbd:	83 ec 0c             	sub    $0xc,%esp                      
  10fcc0:	53                   	push   %ebx                           
  10fcc1:	e8 9b c3 ff ff       	call   10c061 <_User_extensions_Thread_exitted>
                                                                      
  _Internal_error_Occurred(                                           
  10fcc6:	83 c4 0c             	add    $0xc,%esp                      
  10fcc9:	6a 05                	push   $0x5                           
  10fccb:	6a 01                	push   $0x1                           
  10fccd:	6a 00                	push   $0x0                           
  10fccf:	e8 f0 a9 ff ff       	call   10a6c4 <_Internal_error_Occurred>
                                                                      

0010b694 <_Thread_Initialize>: Thread_CPU_budget_algorithms budget_algorithm, Thread_CPU_budget_algorithm_callout budget_callout, uint32_t isr_level, Objects_Name name ) {
  10b694:	55                   	push   %ebp                           
  10b695:	89 e5                	mov    %esp,%ebp                      
  10b697:	57                   	push   %edi                           
  10b698:	56                   	push   %esi                           
  10b699:	53                   	push   %ebx                           
  10b69a:	83 ec 24             	sub    $0x24,%esp                     
  10b69d:	8b 5d 0c             	mov    0xc(%ebp),%ebx                 
  10b6a0:	8b 75 14             	mov    0x14(%ebp),%esi                
  10b6a3:	8a 55 18             	mov    0x18(%ebp),%dl                 
  10b6a6:	8a 45 20             	mov    0x20(%ebp),%al                 
  10b6a9:	88 45 e7             	mov    %al,-0x19(%ebp)                
                                                                      
  /*                                                                  
   *  Zero out all the allocated memory fields                        
   */                                                                 
  for ( i=0 ; i <= THREAD_API_LAST ; i++ )                            
    the_thread->API_Extensions[i] = NULL;                             
  10b6ac:	c7 83 e4 00 00 00 00 	movl   $0x0,0xe4(%ebx)                
  10b6b3:	00 00 00                                                    
  10b6b6:	c7 83 e8 00 00 00 00 	movl   $0x0,0xe8(%ebx)                
  10b6bd:	00 00 00                                                    
                                                                      
  extensions_area = NULL;                                             
  the_thread->libc_reent = NULL;                                      
  10b6c0:	c7 83 e0 00 00 00 00 	movl   $0x0,0xe0(%ebx)                
  10b6c7:	00 00 00                                                    
                                                                      
  /*                                                                  
   *  Allocate and Initialize the stack for this thread.              
   */                                                                 
  #if !defined(RTEMS_SCORE_THREAD_ENABLE_USER_PROVIDED_STACK_VIA_API) 
    actual_stack_size = _Thread_Stack_Allocate( the_thread, stack_size );
  10b6ca:	56                   	push   %esi                           
  10b6cb:	53                   	push   %ebx                           
  10b6cc:	88 55 e0             	mov    %dl,-0x20(%ebp)                
  10b6cf:	e8 dc 06 00 00       	call   10bdb0 <_Thread_Stack_Allocate>
    if ( !actual_stack_size || actual_stack_size < stack_size )       
  10b6d4:	83 c4 10             	add    $0x10,%esp                     
  10b6d7:	39 f0                	cmp    %esi,%eax                      
  10b6d9:	8a 55 e0             	mov    -0x20(%ebp),%dl                
  10b6dc:	0f 82 9f 01 00 00    	jb     10b881 <_Thread_Initialize+0x1ed>
  10b6e2:	85 c0                	test   %eax,%eax                      
  10b6e4:	0f 84 97 01 00 00    	je     10b881 <_Thread_Initialize+0x1ed><== NEVER TAKEN
  Stack_Control *the_stack,                                           
  void          *starting_address,                                    
  size_t         size                                                 
)                                                                     
{                                                                     
  the_stack->area = starting_address;                                 
  10b6ea:	8b 8b c0 00 00 00    	mov    0xc0(%ebx),%ecx                
  10b6f0:	89 8b b8 00 00 00    	mov    %ecx,0xb8(%ebx)                
  the_stack->size = size;                                             
  10b6f6:	89 83 b4 00 00 00    	mov    %eax,0xb4(%ebx)                
                                                                      
  extensions_area = NULL;                                             
  the_thread->libc_reent = NULL;                                      
                                                                      
  #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )      
    fp_area = NULL;                                                   
  10b6fc:	31 ff                	xor    %edi,%edi                      
                                                                      
  /*                                                                  
   *  Allocate the floating point area for this thread                
   */                                                                 
  #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )      
    if ( is_fp ) {                                                    
  10b6fe:	84 d2                	test   %dl,%dl                        
  10b700:	74 17                	je     10b719 <_Thread_Initialize+0x85>
      fp_area = _Workspace_Allocate( CONTEXT_FP_SIZE );               
  10b702:	83 ec 0c             	sub    $0xc,%esp                      
  10b705:	6a 6c                	push   $0x6c                          
  10b707:	e8 e2 0c 00 00       	call   10c3ee <_Workspace_Allocate>   
  10b70c:	89 c7                	mov    %eax,%edi                      
      if ( !fp_area )                                                 
  10b70e:	83 c4 10             	add    $0x10,%esp                     
  10b711:	85 c0                	test   %eax,%eax                      
  10b713:	0f 84 15 01 00 00    	je     10b82e <_Thread_Initialize+0x19a>
        goto failed;                                                  
      fp_area = _Context_Fp_start( fp_area, 0 );                      
    }                                                                 
    the_thread->fp_context       = fp_area;                           
  10b719:	89 bb dc 00 00 00    	mov    %edi,0xdc(%ebx)                
    the_thread->Start.fp_context = fp_area;                           
  10b71f:	89 bb bc 00 00 00    	mov    %edi,0xbc(%ebx)                
  Watchdog_Service_routine_entry  routine,                            
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
  10b725:	c7 43 50 00 00 00 00 	movl   $0x0,0x50(%ebx)                
  the_watchdog->routine   = routine;                                  
  10b72c:	c7 43 64 00 00 00 00 	movl   $0x0,0x64(%ebx)                
  the_watchdog->id        = id;                                       
  10b733:	c7 43 68 00 00 00 00 	movl   $0x0,0x68(%ebx)                
  the_watchdog->user_data = user_data;                                
  10b73a:	c7 43 6c 00 00 00 00 	movl   $0x0,0x6c(%ebx)                
  #endif                                                              
                                                                      
  /*                                                                  
   *  Allocate the extensions area for this thread                    
   */                                                                 
  if ( _Thread_Maximum_extensions ) {                                 
  10b741:	a1 d4 32 12 00       	mov    0x1232d4,%eax                  
   *  Zero out all the allocated memory fields                        
   */                                                                 
  for ( i=0 ; i <= THREAD_API_LAST ; i++ )                            
    the_thread->API_Extensions[i] = NULL;                             
                                                                      
  extensions_area = NULL;                                             
  10b746:	31 f6                	xor    %esi,%esi                      
  #endif                                                              
                                                                      
  /*                                                                  
   *  Allocate the extensions area for this thread                    
   */                                                                 
  if ( _Thread_Maximum_extensions ) {                                 
  10b748:	85 c0                	test   %eax,%eax                      
  10b74a:	74 1d                	je     10b769 <_Thread_Initialize+0xd5>
    extensions_area = _Workspace_Allocate(                            
  10b74c:	83 ec 0c             	sub    $0xc,%esp                      
  10b74f:	8d 04 85 04 00 00 00 	lea    0x4(,%eax,4),%eax              
  10b756:	50                   	push   %eax                           
  10b757:	e8 92 0c 00 00       	call   10c3ee <_Workspace_Allocate>   
  10b75c:	89 c6                	mov    %eax,%esi                      
      (_Thread_Maximum_extensions + 1) * sizeof( void * )             
    );                                                                
    if ( !extensions_area )                                           
  10b75e:	83 c4 10             	add    $0x10,%esp                     
  10b761:	85 c0                	test   %eax,%eax                      
  10b763:	0f 84 c7 00 00 00    	je     10b830 <_Thread_Initialize+0x19c>
      goto failed;                                                    
  }                                                                   
  the_thread->extensions = (void **) extensions_area;                 
  10b769:	89 b3 ec 00 00 00    	mov    %esi,0xec(%ebx)                
   * if they are linked to the thread. An extension user may          
   * create the extension long after tasks have been created          
   * so they cannot rely on the thread create user extension          
   * call.                                                            
   */                                                                 
  if ( the_thread->extensions ) {                                     
  10b76f:	85 f6                	test   %esi,%esi                      
  10b771:	74 16                	je     10b789 <_Thread_Initialize+0xf5>
    for ( i = 0; i <= _Thread_Maximum_extensions ; i++ )              
  10b773:	8b 15 d4 32 12 00    	mov    0x1232d4,%edx                  
  10b779:	31 c0                	xor    %eax,%eax                      
  10b77b:	eb 08                	jmp    10b785 <_Thread_Initialize+0xf1>
      the_thread->extensions[i] = NULL;                               
  10b77d:	c7 04 86 00 00 00 00 	movl   $0x0,(%esi,%eax,4)             
   * create the extension long after tasks have been created          
   * so they cannot rely on the thread create user extension          
   * call.                                                            
   */                                                                 
  if ( the_thread->extensions ) {                                     
    for ( i = 0; i <= _Thread_Maximum_extensions ; i++ )              
  10b784:	40                   	inc    %eax                           
  10b785:	39 d0                	cmp    %edx,%eax                      
  10b787:	76 f4                	jbe    10b77d <_Thread_Initialize+0xe9>
                                                                      
  /*                                                                  
   *  General initialization                                          
   */                                                                 
                                                                      
  the_thread->Start.is_preemptible   = is_preemptible;                
  10b789:	8a 45 e7             	mov    -0x19(%ebp),%al                
  10b78c:	88 83 a0 00 00 00    	mov    %al,0xa0(%ebx)                 
  the_thread->Start.budget_algorithm = budget_algorithm;              
  10b792:	8b 45 24             	mov    0x24(%ebp),%eax                
  10b795:	89 83 a4 00 00 00    	mov    %eax,0xa4(%ebx)                
  the_thread->Start.budget_callout   = budget_callout;                
  10b79b:	8b 45 28             	mov    0x28(%ebp),%eax                
  10b79e:	89 83 a8 00 00 00    	mov    %eax,0xa8(%ebx)                
      case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT:                       
	break;                                                               
    #endif                                                            
  }                                                                   
                                                                      
  the_thread->Start.isr_level         = isr_level;                    
  10b7a4:	8b 45 2c             	mov    0x2c(%ebp),%eax                
  10b7a7:	89 83 ac 00 00 00    	mov    %eax,0xac(%ebx)                
                                                                      
  the_thread->current_state           = STATES_DORMANT;               
  10b7ad:	c7 43 10 01 00 00 00 	movl   $0x1,0x10(%ebx)                
  the_thread->Wait.queue              = NULL;                         
  10b7b4:	c7 43 44 00 00 00 00 	movl   $0x0,0x44(%ebx)                
  the_thread->resource_count          = 0;                            
  10b7bb:	c7 43 1c 00 00 00 00 	movl   $0x0,0x1c(%ebx)                
  the_thread->real_priority           = priority;                     
  10b7c2:	8b 45 1c             	mov    0x1c(%ebp),%eax                
  10b7c5:	89 43 18             	mov    %eax,0x18(%ebx)                
  the_thread->Start.initial_priority  = priority;                     
  10b7c8:	89 83 b0 00 00 00    	mov    %eax,0xb0(%ebx)                
 */                                                                   
RTEMS_INLINE_ROUTINE void* _Scheduler_Allocate(                       
  Thread_Control    *the_thread                                       
)                                                                     
{                                                                     
  return _Scheduler.Operations.allocate( the_thread );                
  10b7ce:	83 ec 0c             	sub    $0xc,%esp                      
  10b7d1:	53                   	push   %ebx                           
  10b7d2:	ff 15 68 f1 11 00    	call   *0x11f168                      
  10b7d8:	89 c2                	mov    %eax,%edx                      
  sched =_Scheduler_Allocate( the_thread );                           
  if ( !sched )                                                       
  10b7da:	83 c4 10             	add    $0x10,%esp                     
  10b7dd:	85 c0                	test   %eax,%eax                      
  10b7df:	74 51                	je     10b832 <_Thread_Initialize+0x19e>
    goto failed;                                                      
  _Thread_Set_priority( the_thread, priority );                       
  10b7e1:	51                   	push   %ecx                           
  10b7e2:	51                   	push   %ecx                           
  10b7e3:	ff 75 1c             	pushl  0x1c(%ebp)                     
  10b7e6:	53                   	push   %ebx                           
  10b7e7:	89 45 e0             	mov    %eax,-0x20(%ebp)               
  10b7ea:	e8 41 05 00 00       	call   10bd30 <_Thread_Set_priority>  
                                                                      
  /*                                                                  
   *  Initialize the CPU usage statistics                             
   */                                                                 
  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                          
    _Timestamp_Set_to_zero( &the_thread->cpu_time_used );             
  10b7ef:	c7 83 84 00 00 00 00 	movl   $0x0,0x84(%ebx)                
  10b7f6:	00 00 00                                                    
  10b7f9:	c7 83 88 00 00 00 00 	movl   $0x0,0x88(%ebx)                
  10b800:	00 00 00                                                    
                                                                      
   _Workspace_Free( sched );                                          
                                                                      
   _Thread_Stack_Free( the_thread );                                  
  return false;                                                       
}                                                                     
  10b803:	8b 45 08             	mov    0x8(%ebp),%eax                 
  10b806:	8b 40 1c             	mov    0x1c(%eax),%eax                
  Objects_Information *information,                                   
  Objects_Control     *the_object,                                    
  Objects_Name         name                                           
)                                                                     
{                                                                     
  _Objects_Set_local_object(                                          
  10b809:	0f b7 4b 08          	movzwl 0x8(%ebx),%ecx                 
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
  10b80d:	89 1c 88             	mov    %ebx,(%eax,%ecx,4)             
    information,                                                      
    _Objects_Get_index( the_object->id ),                             
    the_object                                                        
  );                                                                  
                                                                      
  the_object->name = name;                                            
  10b810:	8b 45 30             	mov    0x30(%ebp),%eax                
  10b813:	89 43 0c             	mov    %eax,0xc(%ebx)                 
   *  enabled when we get here.  We want to be able to run the        
   *  user extensions with dispatching enabled.  The Allocator        
   *  Mutex provides sufficient protection to let the user extensions 
   *  run safely.                                                     
   */                                                                 
  extension_status = _User_extensions_Thread_create( the_thread );    
  10b816:	89 1c 24             	mov    %ebx,(%esp)                    
  10b819:	e8 b2 08 00 00       	call   10c0d0 <_User_extensions_Thread_create>
  10b81e:	88 c1                	mov    %al,%cl                        
  if ( extension_status )                                             
  10b820:	83 c4 10             	add    $0x10,%esp                     
    return true;                                                      
  10b823:	b0 01                	mov    $0x1,%al                       
   *  user extensions with dispatching enabled.  The Allocator        
   *  Mutex provides sufficient protection to let the user extensions 
   *  run safely.                                                     
   */                                                                 
  extension_status = _User_extensions_Thread_create( the_thread );    
  if ( extension_status )                                             
  10b825:	84 c9                	test   %cl,%cl                        
  10b827:	8b 55 e0             	mov    -0x20(%ebp),%edx               
  10b82a:	74 06                	je     10b832 <_Thread_Initialize+0x19e>
  10b82c:	eb 55                	jmp    10b883 <_Thread_Initialize+0x1ef>
   *  Zero out all the allocated memory fields                        
   */                                                                 
  for ( i=0 ; i <= THREAD_API_LAST ; i++ )                            
    the_thread->API_Extensions[i] = NULL;                             
                                                                      
  extensions_area = NULL;                                             
  10b82e:	31 f6                	xor    %esi,%esi                      
  size_t               actual_stack_size = 0;                         
  void                *stack = NULL;                                  
  #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )      
    void              *fp_area;                                       
  #endif                                                              
  void                *sched = NULL;                                  
  10b830:	31 d2                	xor    %edx,%edx                      
  extension_status = _User_extensions_Thread_create( the_thread );    
  if ( extension_status )                                             
    return true;                                                      
                                                                      
failed:                                                               
  _Workspace_Free( the_thread->libc_reent );                          
  10b832:	83 ec 0c             	sub    $0xc,%esp                      
  10b835:	ff b3 e0 00 00 00    	pushl  0xe0(%ebx)                     
  10b83b:	89 55 e0             	mov    %edx,-0x20(%ebp)               
  10b83e:	e8 c4 0b 00 00       	call   10c407 <_Workspace_Free>       
                                                                      
  for ( i=0 ; i <= THREAD_API_LAST ; i++ )                            
    _Workspace_Free( the_thread->API_Extensions[i] );                 
  10b843:	5a                   	pop    %edx                           
  10b844:	ff b3 e4 00 00 00    	pushl  0xe4(%ebx)                     
  10b84a:	e8 b8 0b 00 00       	call   10c407 <_Workspace_Free>       
  10b84f:	58                   	pop    %eax                           
  10b850:	ff b3 e8 00 00 00    	pushl  0xe8(%ebx)                     
  10b856:	e8 ac 0b 00 00       	call   10c407 <_Workspace_Free>       
                                                                      
  _Workspace_Free( extensions_area );                                 
  10b85b:	89 34 24             	mov    %esi,(%esp)                    
  10b85e:	e8 a4 0b 00 00       	call   10c407 <_Workspace_Free>       
                                                                      
  #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )      
    _Workspace_Free( fp_area );                                       
  10b863:	89 3c 24             	mov    %edi,(%esp)                    
  10b866:	e8 9c 0b 00 00       	call   10c407 <_Workspace_Free>       
  #endif                                                              
                                                                      
   _Workspace_Free( sched );                                          
  10b86b:	8b 55 e0             	mov    -0x20(%ebp),%edx               
  10b86e:	89 14 24             	mov    %edx,(%esp)                    
  10b871:	e8 91 0b 00 00       	call   10c407 <_Workspace_Free>       
                                                                      
   _Thread_Stack_Free( the_thread );                                  
  10b876:	89 1c 24             	mov    %ebx,(%esp)                    
  10b879:	e8 82 05 00 00       	call   10be00 <_Thread_Stack_Free>    
  return false;                                                       
  10b87e:	83 c4 10             	add    $0x10,%esp                     
   *  Allocate and Initialize the stack for this thread.              
   */                                                                 
  #if !defined(RTEMS_SCORE_THREAD_ENABLE_USER_PROVIDED_STACK_VIA_API) 
    actual_stack_size = _Thread_Stack_Allocate( the_thread, stack_size );
    if ( !actual_stack_size || actual_stack_size < stack_size )       
      return false;                     /* stack allocation failed */ 
  10b881:	31 c0                	xor    %eax,%eax                      
                                                                      
   _Workspace_Free( sched );                                          
                                                                      
   _Thread_Stack_Free( the_thread );                                  
  return false;                                                       
}                                                                     
  10b883:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  10b886:	5b                   	pop    %ebx                           
  10b887:	5e                   	pop    %esi                           
  10b888:	5f                   	pop    %edi                           
  10b889:	c9                   	leave                                 
  10b88a:	c3                   	ret                                   
                                                                      

0010eaa8 <_Thread_queue_Process_timeout>: #include <rtems/score/tqdata.h> void _Thread_queue_Process_timeout( Thread_Control *the_thread ) {
  10eaa8:	55                   	push   %ebp                           
  10eaa9:	89 e5                	mov    %esp,%ebp                      
  10eaab:	83 ec 08             	sub    $0x8,%esp                      
  10eaae:	8b 55 08             	mov    0x8(%ebp),%edx                 
  Thread_queue_Control *the_thread_queue = the_thread->Wait.queue;    
  10eab1:	8b 42 44             	mov    0x44(%edx),%eax                
   *  If it is not satisfied, then it is "nothing happened" and       
   *  this is the "timeout" transition.  After a request is satisfied,
   *  a timeout is not allowed to occur.                              
   */                                                                 
                                                                      
  if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_SYNCHRONIZED &&
  10eab4:	8b 48 30             	mov    0x30(%eax),%ecx                
  10eab7:	85 c9                	test   %ecx,%ecx                      
  10eab9:	74 1c                	je     10ead7 <_Thread_queue_Process_timeout+0x2f>
  10eabb:	3b 15 5c 34 12 00    	cmp    0x12345c,%edx                  
  10eac1:	75 14                	jne    10ead7 <_Thread_queue_Process_timeout+0x2f><== NEVER TAKEN
       _Thread_Is_executing( the_thread ) ) {                         
    if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_SATISFIED ) {
  10eac3:	83 f9 03             	cmp    $0x3,%ecx                      
  10eac6:	74 21                	je     10eae9 <_Thread_queue_Process_timeout+0x41>
      the_thread->Wait.return_code = the_thread->Wait.queue->timeout_status;
  10eac8:	8b 48 3c             	mov    0x3c(%eax),%ecx                
  10eacb:	89 4a 34             	mov    %ecx,0x34(%edx)                
      the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT;
  10eace:	c7 40 30 02 00 00 00 	movl   $0x2,0x30(%eax)                
  10ead5:	eb 12                	jmp    10eae9 <_Thread_queue_Process_timeout+0x41>
    }                                                                 
  } else {                                                            
    the_thread->Wait.return_code = the_thread->Wait.queue->timeout_status;
  10ead7:	8b 48 3c             	mov    0x3c(%eax),%ecx                
  10eada:	89 4a 34             	mov    %ecx,0x34(%edx)                
    _Thread_queue_Extract( the_thread->Wait.queue, the_thread );      
  10eadd:	51                   	push   %ecx                           
  10eade:	51                   	push   %ecx                           
  10eadf:	52                   	push   %edx                           
  10eae0:	50                   	push   %eax                           
  10eae1:	e8 da fe ff ff       	call   10e9c0 <_Thread_queue_Extract> 
  10eae6:	83 c4 10             	add    $0x10,%esp                     
  }                                                                   
}                                                                     
  10eae9:	c9                   	leave                                 
  10eaea:	c3                   	ret                                   
                                                                      

0010bca8 <_Thread_queue_Requeue>: void _Thread_queue_Requeue( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread ) {
  10bca8:	55                   	push   %ebp                           
  10bca9:	89 e5                	mov    %esp,%ebp                      
  10bcab:	57                   	push   %edi                           
  10bcac:	56                   	push   %esi                           
  10bcad:	53                   	push   %ebx                           
  10bcae:	83 ec 1c             	sub    $0x1c,%esp                     
  10bcb1:	8b 75 08             	mov    0x8(%ebp),%esi                 
  10bcb4:	8b 7d 0c             	mov    0xc(%ebp),%edi                 
  /*                                                                  
   * Just in case the thread really wasn't blocked on a thread queue  
   * when we get here.                                                
   */                                                                 
  if ( !the_thread_queue )                                            
  10bcb7:	85 f6                	test   %esi,%esi                      
  10bcb9:	74 36                	je     10bcf1 <_Thread_queue_Requeue+0x49><== NEVER TAKEN
                                                                      
  /*                                                                  
   * If queueing by FIFO, there is nothing to do. This only applies to
   * priority blocking discipline.                                    
   */                                                                 
  if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) {
  10bcbb:	83 7e 34 01          	cmpl   $0x1,0x34(%esi)                
  10bcbf:	75 30                	jne    10bcf1 <_Thread_queue_Requeue+0x49><== NEVER TAKEN
    Thread_queue_Control *tq = the_thread_queue;                      
    ISR_Level             level;                                      
    ISR_Level             level_ignored;                              
                                                                      
    _ISR_Disable( level );                                            
  10bcc1:	9c                   	pushf                                 
  10bcc2:	fa                   	cli                                   
  10bcc3:	5b                   	pop    %ebx                           
    if ( _States_Is_waiting_on_thread_queue( the_thread->current_state ) ) {
  10bcc4:	f7 47 10 e0 be 03 00 	testl  $0x3bee0,0x10(%edi)            
  10bccb:	74 22                	je     10bcef <_Thread_queue_Requeue+0x47><== NEVER TAKEN
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_queue_Enter_critical_section (      
  Thread_queue_Control *the_thread_queue                              
)                                                                     
{                                                                     
  the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;
  10bccd:	c7 46 30 01 00 00 00 	movl   $0x1,0x30(%esi)                
      _Thread_queue_Enter_critical_section( tq );                     
      _Thread_queue_Extract_priority_helper( tq, the_thread, true );  
  10bcd4:	50                   	push   %eax                           
  10bcd5:	6a 01                	push   $0x1                           
  10bcd7:	57                   	push   %edi                           
  10bcd8:	56                   	push   %esi                           
  10bcd9:	e8 12 2d 00 00       	call   10e9f0 <_Thread_queue_Extract_priority_helper>
      (void) _Thread_queue_Enqueue_priority( tq, the_thread, &level_ignored );
  10bcde:	83 c4 0c             	add    $0xc,%esp                      
  10bce1:	8d 45 e4             	lea    -0x1c(%ebp),%eax               
  10bce4:	50                   	push   %eax                           
  10bce5:	57                   	push   %edi                           
  10bce6:	56                   	push   %esi                           
  10bce7:	e8 c0 fd ff ff       	call   10baac <_Thread_queue_Enqueue_priority>
  10bcec:	83 c4 10             	add    $0x10,%esp                     
    }                                                                 
    _ISR_Enable( level );                                             
  10bcef:	53                   	push   %ebx                           
  10bcf0:	9d                   	popf                                  
  }                                                                   
}                                                                     
  10bcf1:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  10bcf4:	5b                   	pop    %ebx                           
  10bcf5:	5e                   	pop    %esi                           
  10bcf6:	5f                   	pop    %edi                           
  10bcf7:	c9                   	leave                                 
  10bcf8:	c3                   	ret                                   
                                                                      

0010bcfc <_Thread_queue_Timeout>: void _Thread_queue_Timeout( Objects_Id id, void *ignored __attribute__((unused)) ) {
  10bcfc:	55                   	push   %ebp                           
  10bcfd:	89 e5                	mov    %esp,%ebp                      
  10bcff:	83 ec 20             	sub    $0x20,%esp                     
  Thread_Control       *the_thread;                                   
  Objects_Locations     location;                                     
                                                                      
  the_thread = _Thread_Get( id, &location );                          
  10bd02:	8d 45 f4             	lea    -0xc(%ebp),%eax                
  10bd05:	50                   	push   %eax                           
  10bd06:	ff 75 08             	pushl  0x8(%ebp)                      
  10bd09:	e8 12 f9 ff ff       	call   10b620 <_Thread_Get>           
  switch ( location ) {                                               
  10bd0e:	83 c4 10             	add    $0x10,%esp                     
  10bd11:	83 7d f4 00          	cmpl   $0x0,-0xc(%ebp)                
  10bd15:	75 17                	jne    10bd2e <_Thread_queue_Timeout+0x32><== NEVER TAKEN
#if defined(RTEMS_MULTIPROCESSING)                                    
    case OBJECTS_REMOTE:  /* impossible */                            
#endif                                                                
      break;                                                          
    case OBJECTS_LOCAL:                                               
      _Thread_queue_Process_timeout( the_thread );                    
  10bd17:	83 ec 0c             	sub    $0xc,%esp                      
  10bd1a:	50                   	push   %eax                           
  10bd1b:	e8 88 2d 00 00       	call   10eaa8 <_Thread_queue_Process_timeout>
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void )             
{                                                                     
  RTEMS_COMPILER_MEMORY_BARRIER();                                    
  _Thread_Dispatch_disable_level -= 1;                                
  10bd20:	a1 44 32 12 00       	mov    0x123244,%eax                  
  10bd25:	48                   	dec    %eax                           
  10bd26:	a3 44 32 12 00       	mov    %eax,0x123244                  
  10bd2b:	83 c4 10             	add    $0x10,%esp                     
      _Thread_Unnest_dispatch();                                      
      break;                                                          
  }                                                                   
}                                                                     
  10bd2e:	c9                   	leave                                 
  10bd2f:	c3                   	ret                                   
                                                                      

00116084 <_Timer_server_Body>: * @a arg points to the corresponding timer server control block. */ static rtems_task _Timer_server_Body( rtems_task_argument arg ) {
  116084:	55                   	push   %ebp                           
  116085:	89 e5                	mov    %esp,%ebp                      
  116087:	57                   	push   %edi                           
  116088:	56                   	push   %esi                           
  116089:	53                   	push   %ebx                           
  11608a:	83 ec 4c             	sub    $0x4c,%esp                     
  11608d:	8b 5d 08             	mov    0x8(%ebp),%ebx                 
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
  116090:	8d 55 dc             	lea    -0x24(%ebp),%edx               
  116093:	8d 45 e0             	lea    -0x20(%ebp),%eax               
  116096:	89 45 dc             	mov    %eax,-0x24(%ebp)               
  head->previous = NULL;                                              
  116099:	c7 45 e0 00 00 00 00 	movl   $0x0,-0x20(%ebp)               
  tail->previous = head;                                              
  1160a0:	89 55 e4             	mov    %edx,-0x1c(%ebp)               
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
  1160a3:	8d 7d d0             	lea    -0x30(%ebp),%edi               
  1160a6:	8d 4d d4             	lea    -0x2c(%ebp),%ecx               
  1160a9:	89 4d d0             	mov    %ecx,-0x30(%ebp)               
  head->previous = NULL;                                              
  1160ac:	c7 45 d4 00 00 00 00 	movl   $0x0,-0x2c(%ebp)               
  tail->previous = head;                                              
  1160b3:	89 7d d8             	mov    %edi,-0x28(%ebp)               
   */                                                                 
  Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;      
                                                                      
  watchdogs->last_snapshot = snapshot;                                
                                                                      
  _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );  
  1160b6:	8d 53 30             	lea    0x30(%ebx),%edx                
  1160b9:	89 55 c0             	mov    %edx,-0x40(%ebp)               
     /*                                                               
      *  The current TOD is before the last TOD which indicates that  
      *  TOD has been set backwards.                                  
      */                                                              
     delta = last_snapshot - snapshot;                                
     _Watchdog_Adjust( &watchdogs->Chain, WATCHDOG_BACKWARD, delta ); 
  1160bc:	8d 73 68             	lea    0x68(%ebx),%esi                
 */                                                                   
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_tail(         
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return &the_chain->Tail.Node;                                       
  1160bf:	89 45 b4             	mov    %eax,-0x4c(%ebp)               
{                                                                     
  /*                                                                  
   *  Afterwards all timer inserts are directed to this chain and the interval
   *  and TOD chains will be no more modified by other parties.       
   */                                                                 
  ts->insert_chain = insert_chain;                                    
  1160c2:	8d 45 dc             	lea    -0x24(%ebp),%eax               
  1160c5:	89 43 78             	mov    %eax,0x78(%ebx)                
static void _Timer_server_Process_interval_watchdogs(                 
  Timer_server_Watchdogs *watchdogs,                                  
  Chain_Control *fire_chain                                           
)                                                                     
{                                                                     
  Watchdog_Interval snapshot = _Watchdog_Ticks_since_boot;            
  1160c8:	a1 48 c7 13 00       	mov    0x13c748,%eax                  
                                                                      
  /*                                                                  
   *  We assume adequate unsigned arithmetic here.                    
   */                                                                 
  Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;      
  1160cd:	8b 53 3c             	mov    0x3c(%ebx),%edx                
                                                                      
  watchdogs->last_snapshot = snapshot;                                
  1160d0:	89 43 3c             	mov    %eax,0x3c(%ebx)                
                                                                      
  _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );  
  1160d3:	51                   	push   %ecx                           
  1160d4:	57                   	push   %edi                           
  Watchdog_Interval snapshot = _Watchdog_Ticks_since_boot;            
                                                                      
  /*                                                                  
   *  We assume adequate unsigned arithmetic here.                    
   */                                                                 
  Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;      
  1160d5:	29 d0                	sub    %edx,%eax                      
                                                                      
  watchdogs->last_snapshot = snapshot;                                
                                                                      
  _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );  
  1160d7:	50                   	push   %eax                           
  1160d8:	ff 75 c0             	pushl  -0x40(%ebp)                    
  1160db:	e8 c8 37 00 00       	call   1198a8 <_Watchdog_Adjust_to_chain>
static void _Timer_server_Process_tod_watchdogs(                      
  Timer_server_Watchdogs *watchdogs,                                  
  Chain_Control *fire_chain                                           
)                                                                     
{                                                                     
  Watchdog_Interval snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();
  1160e0:	8b 15 c0 c6 13 00    	mov    0x13c6c0,%edx                  
  1160e6:	89 55 c4             	mov    %edx,-0x3c(%ebp)               
  Watchdog_Interval last_snapshot = watchdogs->last_snapshot;         
  1160e9:	8b 43 74             	mov    0x74(%ebx),%eax                
  /*                                                                  
   *  Process the seconds chain.  Start by checking that the Time     
   *  of Day (TOD) has not been set backwards.  If it has then        
   *  we want to adjust the watchdogs->Chain to indicate this.        
   */                                                                 
  if ( snapshot > last_snapshot ) {                                   
  1160ec:	83 c4 10             	add    $0x10,%esp                     
  1160ef:	39 c2                	cmp    %eax,%edx                      
  1160f1:	76 0d                	jbe    116100 <_Timer_server_Body+0x7c>
    /*                                                                
     *  This path is for normal forward movement and cases where the  
     *  TOD has been set forward.                                     
     */                                                               
    delta = snapshot - last_snapshot;                                 
    _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );
  1160f3:	51                   	push   %ecx                           
  1160f4:	57                   	push   %edi                           
  if ( snapshot > last_snapshot ) {                                   
    /*                                                                
     *  This path is for normal forward movement and cases where the  
     *  TOD has been set forward.                                     
     */                                                               
    delta = snapshot - last_snapshot;                                 
  1160f5:	29 c2                	sub    %eax,%edx                      
    _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );
  1160f7:	52                   	push   %edx                           
  1160f8:	56                   	push   %esi                           
  1160f9:	e8 aa 37 00 00       	call   1198a8 <_Watchdog_Adjust_to_chain>
  1160fe:	eb 0f                	jmp    11610f <_Timer_server_Body+0x8b>
                                                                      
  } else if ( snapshot < last_snapshot ) {                            
  116100:	73 10                	jae    116112 <_Timer_server_Body+0x8e>
     /*                                                               
      *  The current TOD is before the last TOD which indicates that  
      *  TOD has been set backwards.                                  
      */                                                              
     delta = last_snapshot - snapshot;                                
     _Watchdog_Adjust( &watchdogs->Chain, WATCHDOG_BACKWARD, delta ); 
  116102:	52                   	push   %edx                           
  } else if ( snapshot < last_snapshot ) {                            
     /*                                                               
      *  The current TOD is before the last TOD which indicates that  
      *  TOD has been set backwards.                                  
      */                                                              
     delta = last_snapshot - snapshot;                                
  116103:	2b 45 c4             	sub    -0x3c(%ebp),%eax               
     _Watchdog_Adjust( &watchdogs->Chain, WATCHDOG_BACKWARD, delta ); 
  116106:	50                   	push   %eax                           
  116107:	6a 01                	push   $0x1                           
  116109:	56                   	push   %esi                           
  11610a:	e8 2d 37 00 00       	call   11983c <_Watchdog_Adjust>      
  11610f:	83 c4 10             	add    $0x10,%esp                     
  }                                                                   
                                                                      
  watchdogs->last_snapshot = snapshot;                                
  116112:	8b 45 c4             	mov    -0x3c(%ebp),%eax               
  116115:	89 43 74             	mov    %eax,0x74(%ebx)                
}                                                                     
                                                                      
static void _Timer_server_Process_insertions( Timer_server_Control *ts )
{                                                                     
  while ( true ) {                                                    
    Timer_Control *timer = (Timer_Control *) _Chain_Get( ts->insert_chain );
  116118:	8b 43 78             	mov    0x78(%ebx),%eax                
  11611b:	83 ec 0c             	sub    $0xc,%esp                      
  11611e:	50                   	push   %eax                           
  11611f:	e8 b4 08 00 00       	call   1169d8 <_Chain_Get>            
                                                                      
    if ( timer == NULL ) {                                            
  116124:	83 c4 10             	add    $0x10,%esp                     
  116127:	85 c0                	test   %eax,%eax                      
  116129:	74 29                	je     116154 <_Timer_server_Body+0xd0><== ALWAYS TAKEN
static void _Timer_server_Insert_timer(                               
  Timer_server_Control *ts,                                           
  Timer_Control *timer                                                
)                                                                     
{                                                                     
  if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) {                 
  11612b:	8b 50 38             	mov    0x38(%eax),%edx                <== NOT EXECUTED
  11612e:	83 fa 01             	cmp    $0x1,%edx                      <== NOT EXECUTED
  116131:	75 0b                	jne    11613e <_Timer_server_Body+0xba><== NOT EXECUTED
    _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker );
  116133:	51                   	push   %ecx                           <== NOT EXECUTED
  116134:	51                   	push   %ecx                           <== NOT EXECUTED
  116135:	83 c0 10             	add    $0x10,%eax                     <== NOT EXECUTED
  116138:	50                   	push   %eax                           <== NOT EXECUTED
  116139:	ff 75 c0             	pushl  -0x40(%ebp)                    <== NOT EXECUTED
  11613c:	eb 0c                	jmp    11614a <_Timer_server_Body+0xc6><== NOT EXECUTED
  } else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) {       
  11613e:	83 fa 03             	cmp    $0x3,%edx                      <== NOT EXECUTED
  116141:	75 d5                	jne    116118 <_Timer_server_Body+0x94><== NOT EXECUTED
    _Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker );     
  116143:	52                   	push   %edx                           <== NOT EXECUTED
  116144:	52                   	push   %edx                           <== NOT EXECUTED
  116145:	83 c0 10             	add    $0x10,%eax                     <== NOT EXECUTED
  116148:	50                   	push   %eax                           <== NOT EXECUTED
  116149:	56                   	push   %esi                           <== NOT EXECUTED
  11614a:	e8 e1 37 00 00       	call   119930 <_Watchdog_Insert>      <== NOT EXECUTED
  11614f:	83 c4 10             	add    $0x10,%esp                     <== NOT EXECUTED
  116152:	eb c4                	jmp    116118 <_Timer_server_Body+0x94><== NOT EXECUTED
     *  of zero it will be processed in the next iteration of the timer server
     *  body loop.                                                    
     */                                                               
    _Timer_server_Process_insertions( ts );                           
                                                                      
    _ISR_Disable( level );                                            
  116154:	9c                   	pushf                                 
  116155:	fa                   	cli                                   
  116156:	58                   	pop    %eax                           
    if ( _Chain_Is_empty( insert_chain ) ) {                          
  116157:	8b 55 b4             	mov    -0x4c(%ebp),%edx               
  11615a:	39 55 dc             	cmp    %edx,-0x24(%ebp)               
  11615d:	75 13                	jne    116172 <_Timer_server_Body+0xee><== NEVER TAKEN
      ts->insert_chain = NULL;                                        
  11615f:	c7 43 78 00 00 00 00 	movl   $0x0,0x78(%ebx)                
      _ISR_Enable( level );                                           
  116166:	50                   	push   %eax                           
  116167:	9d                   	popf                                  
  116168:	8d 55 d4             	lea    -0x2c(%ebp),%edx               
  _Chain_Initialize_empty( &fire_chain );                             
                                                                      
  while ( true ) {                                                    
    _Timer_server_Get_watchdogs_that_fire_now( ts, &insert_chain, &fire_chain );
                                                                      
    if ( !_Chain_Is_empty( &fire_chain ) ) {                          
  11616b:	39 55 d0             	cmp    %edx,-0x30(%ebp)               
  11616e:	75 09                	jne    116179 <_Timer_server_Body+0xf5>
  116170:	eb 49                	jmp    1161bb <_Timer_server_Body+0x137>
      ts->insert_chain = NULL;                                        
      _ISR_Enable( level );                                           
                                                                      
      break;                                                          
    } else {                                                          
      _ISR_Enable( level );                                           
  116172:	50                   	push   %eax                           <== NOT EXECUTED
  116173:	9d                   	popf                                  <== NOT EXECUTED
  116174:	e9 4f ff ff ff       	jmp    1160c8 <_Timer_server_Body+0x44><== NOT EXECUTED
                                                                      
        /*                                                            
         *  It is essential that interrupts are disable here since an interrupt
         *  service routine may remove a watchdog from the chain.     
         */                                                           
        _ISR_Disable( level );                                        
  116179:	9c                   	pushf                                 
  11617a:	fa                   	cli                                   
  11617b:	8f 45 c4             	popl   -0x3c(%ebp)                    
      initialized = false;                                            
    }                                                                 
  #endif                                                              
                                                                      
  return status;                                                      
}                                                                     
  11617e:	8b 45 d0             	mov    -0x30(%ebp),%eax               
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected(              
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  if ( !_Chain_Is_empty(the_chain))                                   
  116181:	39 d0                	cmp    %edx,%eax                      
  116183:	74 2d                	je     1161b2 <_Timer_server_Body+0x12e>
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *old_first = head->next;                                 
  Chain_Node *new_first = old_first->next;                            
  116185:	8b 08                	mov    (%eax),%ecx                    
                                                                      
  head->next = new_first;                                             
  116187:	89 4d d0             	mov    %ecx,-0x30(%ebp)               
  new_first->previous = head;                                         
  11618a:	89 79 04             	mov    %edi,0x4(%ecx)                 
         *  It is essential that interrupts are disable here since an interrupt
         *  service routine may remove a watchdog from the chain.     
         */                                                           
        _ISR_Disable( level );                                        
        watchdog = (Watchdog_Control *) _Chain_Get_unprotected( &fire_chain );
        if ( watchdog != NULL ) {                                     
  11618d:	85 c0                	test   %eax,%eax                      
  11618f:	74 21                	je     1161b2 <_Timer_server_Body+0x12e><== NEVER TAKEN
          watchdog->state = WATCHDOG_INACTIVE;                        
  116191:	c7 40 08 00 00 00 00 	movl   $0x0,0x8(%eax)                 
          _ISR_Enable( level );                                       
  116198:	ff 75 c4             	pushl  -0x3c(%ebp)                    
  11619b:	9d                   	popf                                  
        /*                                                            
         *  The timer server may block here and wait for resources or time.
         *  The system watchdogs are inactive and will remain inactive since
         *  the active flag of the timer server is true.              
         */                                                           
        (*watchdog->routine)( watchdog->id, watchdog->user_data );    
  11619c:	51                   	push   %ecx                           
  11619d:	51                   	push   %ecx                           
  11619e:	ff 70 24             	pushl  0x24(%eax)                     
  1161a1:	ff 70 20             	pushl  0x20(%eax)                     
  1161a4:	89 55 bc             	mov    %edx,-0x44(%ebp)               
  1161a7:	ff 50 1c             	call   *0x1c(%eax)                    
      }                                                               
  1161aa:	83 c4 10             	add    $0x10,%esp                     
  1161ad:	8b 55 bc             	mov    -0x44(%ebp),%edx               
  1161b0:	eb c7                	jmp    116179 <_Timer_server_Body+0xf5>
        watchdog = (Watchdog_Control *) _Chain_Get_unprotected( &fire_chain );
        if ( watchdog != NULL ) {                                     
          watchdog->state = WATCHDOG_INACTIVE;                        
          _ISR_Enable( level );                                       
        } else {                                                      
          _ISR_Enable( level );                                       
  1161b2:	ff 75 c4             	pushl  -0x3c(%ebp)                    
  1161b5:	9d                   	popf                                  
  1161b6:	e9 07 ff ff ff       	jmp    1160c2 <_Timer_server_Body+0x3e>
         *  the active flag of the timer server is true.              
         */                                                           
        (*watchdog->routine)( watchdog->id, watchdog->user_data );    
      }                                                               
    } else {                                                          
      ts->active = false;                                             
  1161bb:	c6 43 7c 00          	movb   $0x0,0x7c(%ebx)                
                                                                      
      /*                                                              
       *  Block until there is something to do.                       
       */                                                             
      _Thread_Disable_dispatch();                                     
  1161bf:	e8 24 fe ff ff       	call   115fe8 <_Thread_Disable_dispatch>
        _Thread_Set_state( ts->thread, STATES_DELAYING );             
  1161c4:	51                   	push   %ecx                           
  1161c5:	51                   	push   %ecx                           
  1161c6:	6a 08                	push   $0x8                           
  1161c8:	ff 33                	pushl  (%ebx)                         
  1161ca:	e8 81 31 00 00       	call   119350 <_Thread_Set_state>     
        _Timer_server_Reset_interval_system_watchdog( ts );           
  1161cf:	89 d8                	mov    %ebx,%eax                      
  1161d1:	e8 22 fe ff ff       	call   115ff8 <_Timer_server_Reset_interval_system_watchdog>
        _Timer_server_Reset_tod_system_watchdog( ts );                
  1161d6:	89 d8                	mov    %ebx,%eax                      
  1161d8:	e8 61 fe ff ff       	call   11603e <_Timer_server_Reset_tod_system_watchdog>
      _Thread_Enable_dispatch();                                      
  1161dd:	e8 a0 29 00 00       	call   118b82 <_Thread_Enable_dispatch>
                                                                      
      ts->active = true;                                              
  1161e2:	c6 43 7c 01          	movb   $0x1,0x7c(%ebx)                
                                                                      
static void _Timer_server_Stop_interval_system_watchdog(              
  Timer_server_Control *ts                                            
)                                                                     
{                                                                     
  _Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog );        
  1161e6:	8d 43 08             	lea    0x8(%ebx),%eax                 
  1161e9:	89 04 24             	mov    %eax,(%esp)                    
  1161ec:	e8 5f 38 00 00       	call   119a50 <_Watchdog_Remove>      
                                                                      
static void _Timer_server_Stop_tod_system_watchdog(                   
  Timer_server_Control *ts                                            
)                                                                     
{                                                                     
  _Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog );             
  1161f1:	8d 43 40             	lea    0x40(%ebx),%eax                
  1161f4:	89 04 24             	mov    %eax,(%esp)                    
  1161f7:	e8 54 38 00 00       	call   119a50 <_Watchdog_Remove>      
  1161fc:	83 c4 10             	add    $0x10,%esp                     
  1161ff:	e9 be fe ff ff       	jmp    1160c2 <_Timer_server_Body+0x3e>
                                                                      

00116204 <_Timer_server_Schedule_operation_method>: static void _Timer_server_Schedule_operation_method( Timer_server_Control *ts, Timer_Control *timer ) {
  116204:	55                   	push   %ebp                           
  116205:	89 e5                	mov    %esp,%ebp                      
  116207:	57                   	push   %edi                           
  116208:	56                   	push   %esi                           
  116209:	53                   	push   %ebx                           
  11620a:	83 ec 2c             	sub    $0x2c,%esp                     
  11620d:	8b 5d 08             	mov    0x8(%ebp),%ebx                 
  116210:	8b 75 0c             	mov    0xc(%ebp),%esi                 
  if ( ts->insert_chain == NULL ) {                                   
  116213:	8b 43 78             	mov    0x78(%ebx),%eax                
  116216:	85 c0                	test   %eax,%eax                      
  116218:	0f 85 de 00 00 00    	jne    1162fc <_Timer_server_Schedule_operation_method+0xf8><== NEVER TAKEN
   *  is the reference point for the delta chain.  Thus if we do not update the
   *  reference point we have to add DT to the initial delta of the watchdog
   *  being inserted.  This could result in an integer overflow.      
   */                                                                 
                                                                      
  _Thread_Disable_dispatch();                                         
  11621e:	e8 c5 fd ff ff       	call   115fe8 <_Thread_Disable_dispatch>
                                                                      
  if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) {                 
  116223:	8b 46 38             	mov    0x38(%esi),%eax                
  116226:	83 f8 01             	cmp    $0x1,%eax                      
  116229:	75 5a                	jne    116285 <_Timer_server_Schedule_operation_method+0x81>
    /*                                                                
     *  We have to advance the last known ticks value of the server and update
     *  the watchdog chain accordingly.                               
     */                                                               
    _ISR_Disable( level );                                            
  11622b:	9c                   	pushf                                 
  11622c:	fa                   	cli                                   
  11622d:	8f 45 e0             	popl   -0x20(%ebp)                    
    snapshot = _Watchdog_Ticks_since_boot;                            
  116230:	8b 15 48 c7 13 00    	mov    0x13c748,%edx                  
    last_snapshot = ts->Interval_watchdogs.last_snapshot;             
  116236:	8b 4b 3c             	mov    0x3c(%ebx),%ecx                
      initialized = false;                                            
    }                                                                 
  #endif                                                              
                                                                      
  return status;                                                      
}                                                                     
  116239:	8b 43 30             	mov    0x30(%ebx),%eax                
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_first( the_chain )                          
    == _Chain_Immutable_tail( the_chain );                            
  11623c:	8d 7b 34             	lea    0x34(%ebx),%edi                
     *  the watchdog chain accordingly.                               
     */                                                               
    _ISR_Disable( level );                                            
    snapshot = _Watchdog_Ticks_since_boot;                            
    last_snapshot = ts->Interval_watchdogs.last_snapshot;             
    if ( !_Chain_Is_empty( &ts->Interval_watchdogs.Chain ) ) {        
  11623f:	39 f8                	cmp    %edi,%eax                      
  116241:	74 19                	je     11625c <_Timer_server_Schedule_operation_method+0x58>
      first_watchdog = _Watchdog_First( &ts->Interval_watchdogs.Chain );
                                                                      
      /*                                                              
       *  We assume adequate unsigned arithmetic here.                
       */                                                             
      delta = snapshot - last_snapshot;                               
  116243:	89 d7                	mov    %edx,%edi                      
  116245:	29 cf                	sub    %ecx,%edi                      
  116247:	89 7d e4             	mov    %edi,-0x1c(%ebp)               
                                                                      
      delta_interval = first_watchdog->delta_interval;                
  11624a:	8b 78 10             	mov    0x10(%eax),%edi                
      if (delta_interval > delta) {                                   
        delta_interval -= delta;                                      
      } else {                                                        
        delta_interval = 0;                                           
  11624d:	31 c9                	xor    %ecx,%ecx                      
       *  We assume adequate unsigned arithmetic here.                
       */                                                             
      delta = snapshot - last_snapshot;                               
                                                                      
      delta_interval = first_watchdog->delta_interval;                
      if (delta_interval > delta) {                                   
  11624f:	3b 7d e4             	cmp    -0x1c(%ebp),%edi               
  116252:	76 05                	jbe    116259 <_Timer_server_Schedule_operation_method+0x55>
        delta_interval -= delta;                                      
  116254:	89 f9                	mov    %edi,%ecx                      
  116256:	2b 4d e4             	sub    -0x1c(%ebp),%ecx               
      } else {                                                        
        delta_interval = 0;                                           
      }                                                               
      first_watchdog->delta_interval = delta_interval;                
  116259:	89 48 10             	mov    %ecx,0x10(%eax)                
    }                                                                 
    ts->Interval_watchdogs.last_snapshot = snapshot;                  
  11625c:	89 53 3c             	mov    %edx,0x3c(%ebx)                
    _ISR_Enable( level );                                             
  11625f:	ff 75 e0             	pushl  -0x20(%ebp)                    
  116262:	9d                   	popf                                  
                                                                      
    _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker );
  116263:	50                   	push   %eax                           
  116264:	50                   	push   %eax                           
  116265:	83 c6 10             	add    $0x10,%esi                     
  116268:	56                   	push   %esi                           
  116269:	8d 43 30             	lea    0x30(%ebx),%eax                
  11626c:	50                   	push   %eax                           
  11626d:	e8 be 36 00 00       	call   119930 <_Watchdog_Insert>      
                                                                      
    if ( !ts->active ) {                                              
  116272:	8a 43 7c             	mov    0x7c(%ebx),%al                 
  116275:	83 c4 10             	add    $0x10,%esp                     
  116278:	84 c0                	test   %al,%al                        
  11627a:	75 74                	jne    1162f0 <_Timer_server_Schedule_operation_method+0xec>
      _Timer_server_Reset_interval_system_watchdog( ts );             
  11627c:	89 d8                	mov    %ebx,%eax                      
  11627e:	e8 75 fd ff ff       	call   115ff8 <_Timer_server_Reset_interval_system_watchdog>
  116283:	eb 6b                	jmp    1162f0 <_Timer_server_Schedule_operation_method+0xec>
    }                                                                 
  } else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) {       
  116285:	83 f8 03             	cmp    $0x3,%eax                      
  116288:	75 66                	jne    1162f0 <_Timer_server_Schedule_operation_method+0xec>
    /*                                                                
     *  We have to advance the last known seconds value of the server and update
     *  the watchdog chain accordingly.                               
     */                                                               
    _ISR_Disable( level );                                            
  11628a:	9c                   	pushf                                 
  11628b:	fa                   	cli                                   
  11628c:	8f 45 e0             	popl   -0x20(%ebp)                    
    snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();        
  11628f:	8b 15 c0 c6 13 00    	mov    0x13c6c0,%edx                  
    last_snapshot = ts->TOD_watchdogs.last_snapshot;                  
  116295:	8b 43 74             	mov    0x74(%ebx),%eax                
      initialized = false;                                            
    }                                                                 
  #endif                                                              
                                                                      
  return status;                                                      
}                                                                     
  116298:	8b 4b 68             	mov    0x68(%ebx),%ecx                
  11629b:	8d 7b 6c             	lea    0x6c(%ebx),%edi                
     *  the watchdog chain accordingly.                               
     */                                                               
    _ISR_Disable( level );                                            
    snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();        
    last_snapshot = ts->TOD_watchdogs.last_snapshot;                  
    if ( !_Chain_Is_empty( &ts->TOD_watchdogs.Chain ) ) {             
  11629e:	39 f9                	cmp    %edi,%ecx                      
  1162a0:	74 27                	je     1162c9 <_Timer_server_Schedule_operation_method+0xc5>
      first_watchdog = _Watchdog_First( &ts->TOD_watchdogs.Chain );   
      delta_interval = first_watchdog->delta_interval;                
  1162a2:	8b 79 10             	mov    0x10(%ecx),%edi                
  1162a5:	89 7d d4             	mov    %edi,-0x2c(%ebp)               
      if ( snapshot > last_snapshot ) {                               
  1162a8:	39 c2                	cmp    %eax,%edx                      
  1162aa:	76 15                	jbe    1162c1 <_Timer_server_Schedule_operation_method+0xbd>
        /*                                                            
         *  We advanced in time.                                      
         */                                                           
        delta = snapshot - last_snapshot;                             
  1162ac:	89 d7                	mov    %edx,%edi                      
  1162ae:	29 c7                	sub    %eax,%edi                      
  1162b0:	89 7d e4             	mov    %edi,-0x1c(%ebp)               
        if (delta_interval > delta) {                                 
          delta_interval -= delta;                                    
        } else {                                                      
          delta_interval = 0;                                         
  1162b3:	31 c0                	xor    %eax,%eax                      
      if ( snapshot > last_snapshot ) {                               
        /*                                                            
         *  We advanced in time.                                      
         */                                                           
        delta = snapshot - last_snapshot;                             
        if (delta_interval > delta) {                                 
  1162b5:	39 7d d4             	cmp    %edi,-0x2c(%ebp)               
  1162b8:	76 0c                	jbe    1162c6 <_Timer_server_Schedule_operation_method+0xc2><== NEVER TAKEN
          delta_interval -= delta;                                    
  1162ba:	8b 45 d4             	mov    -0x2c(%ebp),%eax               
  1162bd:	29 f8                	sub    %edi,%eax                      
  1162bf:	eb 05                	jmp    1162c6 <_Timer_server_Schedule_operation_method+0xc2>
        }                                                             
      } else {                                                        
        /*                                                            
         *  Someone put us in the past.                               
         */                                                           
        delta = last_snapshot - snapshot;                             
  1162c1:	03 45 d4             	add    -0x2c(%ebp),%eax               
        delta_interval += delta;                                      
  1162c4:	29 d0                	sub    %edx,%eax                      
      }                                                               
      first_watchdog->delta_interval = delta_interval;                
  1162c6:	89 41 10             	mov    %eax,0x10(%ecx)                
    }                                                                 
    ts->TOD_watchdogs.last_snapshot = snapshot;                       
  1162c9:	89 53 74             	mov    %edx,0x74(%ebx)                
    _ISR_Enable( level );                                             
  1162cc:	ff 75 e0             	pushl  -0x20(%ebp)                    
  1162cf:	9d                   	popf                                  
                                                                      
    _Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker );     
  1162d0:	57                   	push   %edi                           
  1162d1:	57                   	push   %edi                           
  1162d2:	83 c6 10             	add    $0x10,%esi                     
  1162d5:	56                   	push   %esi                           
  1162d6:	8d 43 68             	lea    0x68(%ebx),%eax                
  1162d9:	50                   	push   %eax                           
  1162da:	e8 51 36 00 00       	call   119930 <_Watchdog_Insert>      
                                                                      
    if ( !ts->active ) {                                              
  1162df:	8a 43 7c             	mov    0x7c(%ebx),%al                 
  1162e2:	83 c4 10             	add    $0x10,%esp                     
  1162e5:	84 c0                	test   %al,%al                        
  1162e7:	75 07                	jne    1162f0 <_Timer_server_Schedule_operation_method+0xec>
      _Timer_server_Reset_tod_system_watchdog( ts );                  
  1162e9:	89 d8                	mov    %ebx,%eax                      
  1162eb:	e8 4e fd ff ff       	call   11603e <_Timer_server_Reset_tod_system_watchdog>
     *  critical section.  We have to use the protected chain methods because
     *  we may be interrupted by a higher priority interrupt.         
     */                                                               
    _Chain_Append( ts->insert_chain, &timer->Object.Node );           
  }                                                                   
}                                                                     
  1162f0:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  1162f3:	5b                   	pop    %ebx                           
  1162f4:	5e                   	pop    %esi                           
  1162f5:	5f                   	pop    %edi                           
  1162f6:	c9                   	leave                                 
    if ( !ts->active ) {                                              
      _Timer_server_Reset_tod_system_watchdog( ts );                  
    }                                                                 
  }                                                                   
                                                                      
  _Thread_Enable_dispatch();                                          
  1162f7:	e9 86 28 00 00       	jmp    118b82 <_Thread_Enable_dispatch>
     *  server is not preemptible, so we must be in interrupt context here.  No
     *  thread dispatch will happen until the timer server finishes its
     *  critical section.  We have to use the protected chain methods because
     *  we may be interrupted by a higher priority interrupt.         
     */                                                               
    _Chain_Append( ts->insert_chain, &timer->Object.Node );           
  1162fc:	8b 43 78             	mov    0x78(%ebx),%eax                <== NOT EXECUTED
  1162ff:	89 75 0c             	mov    %esi,0xc(%ebp)                 <== NOT EXECUTED
  116302:	89 45 08             	mov    %eax,0x8(%ebp)                 <== NOT EXECUTED
  }                                                                   
}                                                                     
  116305:	8d 65 f4             	lea    -0xc(%ebp),%esp                <== NOT EXECUTED
  116308:	5b                   	pop    %ebx                           <== NOT EXECUTED
  116309:	5e                   	pop    %esi                           <== NOT EXECUTED
  11630a:	5f                   	pop    %edi                           <== NOT EXECUTED
  11630b:	c9                   	leave                                 <== NOT EXECUTED
     *  server is not preemptible, so we must be in interrupt context here.  No
     *  thread dispatch will happen until the timer server finishes its
     *  critical section.  We have to use the protected chain methods because
     *  we may be interrupted by a higher priority interrupt.         
     */                                                               
    _Chain_Append( ts->insert_chain, &timer->Object.Node );           
  11630c:	e9 8b 06 00 00       	jmp    11699c <_Chain_Append>         <== NOT EXECUTED
                                                                      

0010c093 <_User_extensions_Fatal>: void _User_extensions_Fatal ( Internal_errors_Source the_source, bool is_internal, Internal_errors_t the_error ) {
  10c093:	55                   	push   %ebp                           
  10c094:	89 e5                	mov    %esp,%ebp                      
  10c096:	57                   	push   %edi                           
  10c097:	56                   	push   %esi                           
  10c098:	53                   	push   %ebx                           
  10c099:	83 ec 0c             	sub    $0xc,%esp                      
  10c09c:	8b 7d 10             	mov    0x10(%ebp),%edi                
    the_extension = (User_extensions_Control *) the_node;             
                                                                      
    if ( the_extension->Callouts.fatal != NULL )                      
      (*the_extension->Callouts.fatal)( the_source, is_internal, the_error );
  }                                                                   
}                                                                     
  10c09f:	8b 1d 14 34 12 00    	mov    0x123414,%ebx                  
        the_node = the_node->previous ) {                             
                                                                      
    the_extension = (User_extensions_Control *) the_node;             
                                                                      
    if ( the_extension->Callouts.fatal != NULL )                      
      (*the_extension->Callouts.fatal)( the_source, is_internal, the_error );
  10c0a5:	0f b6 75 0c          	movzbl 0xc(%ebp),%esi                 
)                                                                     
{                                                                     
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
                                                                      
  for ( the_node = _Chain_Last( &_User_extensions_List );             
  10c0a9:	eb 15                	jmp    10c0c0 <_User_extensions_Fatal+0x2d>
        !_Chain_Is_head( &_User_extensions_List, the_node ) ;         
        the_node = the_node->previous ) {                             
                                                                      
    the_extension = (User_extensions_Control *) the_node;             
                                                                      
    if ( the_extension->Callouts.fatal != NULL )                      
  10c0ab:	8b 43 30             	mov    0x30(%ebx),%eax                
  10c0ae:	85 c0                	test   %eax,%eax                      
  10c0b0:	74 0b                	je     10c0bd <_User_extensions_Fatal+0x2a>
      (*the_extension->Callouts.fatal)( the_source, is_internal, the_error );
  10c0b2:	52                   	push   %edx                           
  10c0b3:	57                   	push   %edi                           
  10c0b4:	56                   	push   %esi                           
  10c0b5:	ff 75 08             	pushl  0x8(%ebp)                      
  10c0b8:	ff d0                	call   *%eax                          
  10c0ba:	83 c4 10             	add    $0x10,%esp                     <== NOT EXECUTED
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
                                                                      
  for ( the_node = _Chain_Last( &_User_extensions_List );             
        !_Chain_Is_head( &_User_extensions_List, the_node ) ;         
        the_node = the_node->previous ) {                             
  10c0bd:	8b 5b 04             	mov    0x4(%ebx),%ebx                 
)                                                                     
{                                                                     
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
                                                                      
  for ( the_node = _Chain_Last( &_User_extensions_List );             
  10c0c0:	81 fb 0c 34 12 00    	cmp    $0x12340c,%ebx                 
  10c0c6:	75 e3                	jne    10c0ab <_User_extensions_Fatal+0x18><== ALWAYS TAKEN
    the_extension = (User_extensions_Control *) the_node;             
                                                                      
    if ( the_extension->Callouts.fatal != NULL )                      
      (*the_extension->Callouts.fatal)( the_source, is_internal, the_error );
  }                                                                   
}                                                                     
  10c0c8:	8d 65 f4             	lea    -0xc(%ebp),%esp                <== NOT EXECUTED
  10c0cb:	5b                   	pop    %ebx                           <== NOT EXECUTED
  10c0cc:	5e                   	pop    %esi                           <== NOT EXECUTED
  10c0cd:	5f                   	pop    %edi                           <== NOT EXECUTED
  10c0ce:	c9                   	leave                                 <== NOT EXECUTED
  10c0cf:	c3                   	ret                                   <== NOT EXECUTED
                                                                      

0010bf7c <_User_extensions_Handler_initialization>: #include <rtems/score/userext.h> #include <rtems/score/wkspace.h> #include <string.h> void _User_extensions_Handler_initialization(void) {
  10bf7c:	55                   	push   %ebp                           
  10bf7d:	89 e5                	mov    %esp,%ebp                      
  10bf7f:	57                   	push   %edi                           
  10bf80:	56                   	push   %esi                           
  10bf81:	53                   	push   %ebx                           
  10bf82:	83 ec 1c             	sub    $0x1c,%esp                     
  User_extensions_Control *extension;                                 
  uint32_t                 i;                                         
  uint32_t                 number_of_extensions;                      
  User_extensions_Table   *initial_extensions;                        
                                                                      
  number_of_extensions = Configuration.number_of_initial_extensions;  
  10bf85:	a1 60 f2 11 00       	mov    0x11f260,%eax                  
  10bf8a:	89 45 e4             	mov    %eax,-0x1c(%ebp)               
  initial_extensions   = Configuration.User_extension_table;          
  10bf8d:	8b 35 64 f2 11 00    	mov    0x11f264,%esi                  
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
  10bf93:	c7 05 0c 34 12 00 10 	movl   $0x123410,0x12340c             
  10bf9a:	34 12 00                                                    
  head->previous = NULL;                                              
  10bf9d:	c7 05 10 34 12 00 00 	movl   $0x0,0x123410                  
  10bfa4:	00 00 00                                                    
  tail->previous = head;                                              
  10bfa7:	c7 05 14 34 12 00 0c 	movl   $0x12340c,0x123414             
  10bfae:	34 12 00                                                    
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
  10bfb1:	c7 05 48 32 12 00 4c 	movl   $0x12324c,0x123248             
  10bfb8:	32 12 00                                                    
  head->previous = NULL;                                              
  10bfbb:	c7 05 4c 32 12 00 00 	movl   $0x0,0x12324c                  
  10bfc2:	00 00 00                                                    
  tail->previous = head;                                              
  10bfc5:	c7 05 50 32 12 00 48 	movl   $0x123248,0x123250             
  10bfcc:	32 12 00                                                    
                                                                      
  _Chain_Initialize_empty( &_User_extensions_List );                  
  _Chain_Initialize_empty( &_User_extensions_Switches_list );         
                                                                      
  if ( initial_extensions ) {                                         
  10bfcf:	85 f6                	test   %esi,%esi                      
  10bfd1:	74 53                	je     10c026 <_User_extensions_Handler_initialization+0xaa><== NEVER TAKEN
    extension = (User_extensions_Control *)                           
      _Workspace_Allocate_or_fatal_error(                             
  10bfd3:	6b c8 34             	imul   $0x34,%eax,%ecx                
  10bfd6:	83 ec 0c             	sub    $0xc,%esp                      
  10bfd9:	51                   	push   %ecx                           
  10bfda:	89 4d e0             	mov    %ecx,-0x20(%ebp)               
  10bfdd:	e8 3d 04 00 00       	call   10c41f <_Workspace_Allocate_or_fatal_error>
  10bfe2:	89 c3                	mov    %eax,%ebx                      
        number_of_extensions * sizeof( User_extensions_Control )      
      );                                                              
                                                                      
    memset (                                                          
  10bfe4:	31 c0                	xor    %eax,%eax                      
  10bfe6:	8b 4d e0             	mov    -0x20(%ebp),%ecx               
  10bfe9:	89 df                	mov    %ebx,%edi                      
  10bfeb:	f3 aa                	rep stos %al,%es:(%edi)               
  10bfed:	89 f0                	mov    %esi,%eax                      
      extension,                                                      
      0,                                                              
      number_of_extensions * sizeof( User_extensions_Control )        
    );                                                                
                                                                      
    for ( i = 0 ; i < number_of_extensions ; i++ ) {                  
  10bfef:	83 c4 10             	add    $0x10,%esp                     
  10bff2:	31 d2                	xor    %edx,%edx                      
  10bff4:	eb 2b                	jmp    10c021 <_User_extensions_Handler_initialization+0xa5>
RTEMS_INLINE_ROUTINE void _User_extensions_Add_set_with_table(        
  User_extensions_Control     *extension,                             
  const User_extensions_Table *extension_table                        
)                                                                     
{                                                                     
  extension->Callouts = *extension_table;                             
  10bff6:	8d 7b 14             	lea    0x14(%ebx),%edi                
  10bff9:	89 c6                	mov    %eax,%esi                      
  10bffb:	b9 08 00 00 00       	mov    $0x8,%ecx                      
  10c000:	f3 a5                	rep movsl %ds:(%esi),%es:(%edi)       
                                                                      
  _User_extensions_Add_set( extension );                              
  10c002:	83 ec 0c             	sub    $0xc,%esp                      
  10c005:	53                   	push   %ebx                           
  10c006:	89 45 dc             	mov    %eax,-0x24(%ebp)               
  10c009:	89 55 e0             	mov    %edx,-0x20(%ebp)               
  10c00c:	e8 03 2b 00 00       	call   10eb14 <_User_extensions_Add_set>
      _User_extensions_Add_set_with_table (extension, &initial_extensions[i]);
      extension++;                                                    
  10c011:	83 c3 34             	add    $0x34,%ebx                     
      extension,                                                      
      0,                                                              
      number_of_extensions * sizeof( User_extensions_Control )        
    );                                                                
                                                                      
    for ( i = 0 ; i < number_of_extensions ; i++ ) {                  
  10c014:	8b 55 e0             	mov    -0x20(%ebp),%edx               
  10c017:	42                   	inc    %edx                           
  10c018:	8b 45 dc             	mov    -0x24(%ebp),%eax               
  10c01b:	83 c0 20             	add    $0x20,%eax                     
  10c01e:	83 c4 10             	add    $0x10,%esp                     
  10c021:	3b 55 e4             	cmp    -0x1c(%ebp),%edx               
  10c024:	72 d0                	jb     10bff6 <_User_extensions_Handler_initialization+0x7a>
      _User_extensions_Add_set_with_table (extension, &initial_extensions[i]);
      extension++;                                                    
    }                                                                 
  }                                                                   
}                                                                     
  10c026:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  10c029:	5b                   	pop    %ebx                           
  10c02a:	5e                   	pop    %esi                           
  10c02b:	5f                   	pop    %edi                           
  10c02c:	c9                   	leave                                 
  10c02d:	c3                   	ret                                   
                                                                      

0010d818 <_Watchdog_Adjust>: void _Watchdog_Adjust( Chain_Control *header, Watchdog_Adjust_directions direction, Watchdog_Interval units ) {
  10d818:	55                   	push   %ebp                           
  10d819:	89 e5                	mov    %esp,%ebp                      
  10d81b:	57                   	push   %edi                           
  10d81c:	56                   	push   %esi                           
  10d81d:	53                   	push   %ebx                           
  10d81e:	83 ec 1c             	sub    $0x1c,%esp                     
  10d821:	8b 75 08             	mov    0x8(%ebp),%esi                 
  10d824:	8b 7d 0c             	mov    0xc(%ebp),%edi                 
  10d827:	8b 5d 10             	mov    0x10(%ebp),%ebx                
  ISR_Level level;                                                    
                                                                      
  _ISR_Disable( level );                                              
  10d82a:	9c                   	pushf                                 
  10d82b:	fa                   	cli                                   
  10d82c:	58                   	pop    %eax                           
    }                                                                 
  }                                                                   
                                                                      
  _ISR_Enable( level );                                               
                                                                      
}                                                                     
  10d82d:	8b 16                	mov    (%esi),%edx                    
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_first( the_chain )                          
    == _Chain_Immutable_tail( the_chain );                            
  10d82f:	8d 4e 04             	lea    0x4(%esi),%ecx                 
   *       hence the compiler must not assume *header to remain       
   *       unmodified across that call.                               
   *                                                                  
   *       Till Straumann, 7/2003                                     
   */                                                                 
  if ( !_Chain_Is_empty( header ) ) {                                 
  10d832:	39 ca                	cmp    %ecx,%edx                      
  10d834:	74 44                	je     10d87a <_Watchdog_Adjust+0x62> 
    switch ( direction ) {                                            
  10d836:	85 ff                	test   %edi,%edi                      
  10d838:	74 3c                	je     10d876 <_Watchdog_Adjust+0x5e> 
  10d83a:	4f                   	dec    %edi                           
  10d83b:	75 3d                	jne    10d87a <_Watchdog_Adjust+0x62> <== NEVER TAKEN
      case WATCHDOG_BACKWARD:                                         
        _Watchdog_First( header )->delta_interval += units;           
  10d83d:	01 5a 10             	add    %ebx,0x10(%edx)                
        break;                                                        
  10d840:	eb 38                	jmp    10d87a <_Watchdog_Adjust+0x62> 
RTEMS_INLINE_ROUTINE Watchdog_Control *_Watchdog_First(               
  Chain_Control *header                                               
)                                                                     
{                                                                     
                                                                      
  return ( (Watchdog_Control *) _Chain_First( header ) );             
  10d842:	8b 16                	mov    (%esi),%edx                    
      case WATCHDOG_FORWARD:                                          
        while ( units ) {                                             
          if ( units < _Watchdog_First( header )->delta_interval ) {  
  10d844:	8b 7a 10             	mov    0x10(%edx),%edi                
  10d847:	39 fb                	cmp    %edi,%ebx                      
  10d849:	73 07                	jae    10d852 <_Watchdog_Adjust+0x3a> 
            _Watchdog_First( header )->delta_interval -= units;       
  10d84b:	29 df                	sub    %ebx,%edi                      
  10d84d:	89 7a 10             	mov    %edi,0x10(%edx)                
            break;                                                    
  10d850:	eb 28                	jmp    10d87a <_Watchdog_Adjust+0x62> 
          } else {                                                    
            units -= _Watchdog_First( header )->delta_interval;       
            _Watchdog_First( header )->delta_interval = 1;            
  10d852:	c7 42 10 01 00 00 00 	movl   $0x1,0x10(%edx)                
                                                                      
            _ISR_Enable( level );                                     
  10d859:	50                   	push   %eax                           
  10d85a:	9d                   	popf                                  
                                                                      
            _Watchdog_Tickle( header );                               
  10d85b:	83 ec 0c             	sub    $0xc,%esp                      
  10d85e:	56                   	push   %esi                           
  10d85f:	89 4d e4             	mov    %ecx,-0x1c(%ebp)               
  10d862:	e8 a5 01 00 00       	call   10da0c <_Watchdog_Tickle>      
                                                                      
            _ISR_Disable( level );                                    
  10d867:	9c                   	pushf                                 
  10d868:	fa                   	cli                                   
  10d869:	58                   	pop    %eax                           
                                                                      
            if ( _Chain_Is_empty( header ) )                          
  10d86a:	83 c4 10             	add    $0x10,%esp                     
  10d86d:	8b 4d e4             	mov    -0x1c(%ebp),%ecx               
  10d870:	39 0e                	cmp    %ecx,(%esi)                    
  10d872:	74 06                	je     10d87a <_Watchdog_Adjust+0x62> 
        while ( units ) {                                             
          if ( units < _Watchdog_First( header )->delta_interval ) {  
            _Watchdog_First( header )->delta_interval -= units;       
            break;                                                    
          } else {                                                    
            units -= _Watchdog_First( header )->delta_interval;       
  10d874:	29 fb                	sub    %edi,%ebx                      
    switch ( direction ) {                                            
      case WATCHDOG_BACKWARD:                                         
        _Watchdog_First( header )->delta_interval += units;           
        break;                                                        
      case WATCHDOG_FORWARD:                                          
        while ( units ) {                                             
  10d876:	85 db                	test   %ebx,%ebx                      
  10d878:	75 c8                	jne    10d842 <_Watchdog_Adjust+0x2a> <== ALWAYS TAKEN
        }                                                             
        break;                                                        
    }                                                                 
  }                                                                   
                                                                      
  _ISR_Enable( level );                                               
  10d87a:	50                   	push   %eax                           
  10d87b:	9d                   	popf                                  
                                                                      
}                                                                     
  10d87c:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  10d87f:	5b                   	pop    %ebx                           
  10d880:	5e                   	pop    %esi                           
  10d881:	5f                   	pop    %edi                           
  10d882:	c9                   	leave                                 
  10d883:	c3                   	ret                                   
                                                                      

0010c2d4 <_Watchdog_Remove>: */ Watchdog_States _Watchdog_Remove( Watchdog_Control *the_watchdog ) {
  10c2d4:	55                   	push   %ebp                           
  10c2d5:	89 e5                	mov    %esp,%ebp                      
  10c2d7:	56                   	push   %esi                           
  10c2d8:	53                   	push   %ebx                           
  10c2d9:	8b 55 08             	mov    0x8(%ebp),%edx                 
  ISR_Level         level;                                            
  Watchdog_States   previous_state;                                   
  Watchdog_Control *next_watchdog;                                    
                                                                      
  _ISR_Disable( level );                                              
  10c2dc:	9c                   	pushf                                 
  10c2dd:	fa                   	cli                                   
  10c2de:	5e                   	pop    %esi                           
  previous_state = the_watchdog->state;                               
  10c2df:	8b 42 08             	mov    0x8(%edx),%eax                 
  switch ( previous_state ) {                                         
  10c2e2:	83 f8 01             	cmp    $0x1,%eax                      
  10c2e5:	74 09                	je     10c2f0 <_Watchdog_Remove+0x1c> 
  10c2e7:	72 42                	jb     10c32b <_Watchdog_Remove+0x57> 
  10c2e9:	83 f8 03             	cmp    $0x3,%eax                      
  10c2ec:	77 3d                	ja     10c32b <_Watchdog_Remove+0x57> <== NEVER TAKEN
  10c2ee:	eb 09                	jmp    10c2f9 <_Watchdog_Remove+0x25> 
                                                                      
      /*                                                              
       *  It is not actually on the chain so just change the state and
       *  the Insert operation we interrupted will be aborted.        
       */                                                             
      the_watchdog->state = WATCHDOG_INACTIVE;                        
  10c2f0:	c7 42 08 00 00 00 00 	movl   $0x0,0x8(%edx)                 
      break;                                                          
  10c2f7:	eb 32                	jmp    10c32b <_Watchdog_Remove+0x57> 
                                                                      
    case WATCHDOG_ACTIVE:                                             
    case WATCHDOG_REMOVE_IT:                                          
                                                                      
      the_watchdog->state = WATCHDOG_INACTIVE;                        
  10c2f9:	c7 42 08 00 00 00 00 	movl   $0x0,0x8(%edx)                 
  }                                                                   
  the_watchdog->stop_time = _Watchdog_Ticks_since_boot;               
                                                                      
  _ISR_Enable( level );                                               
  return( previous_state );                                           
}                                                                     
  10c300:	8b 0a                	mov    (%edx),%ecx                    
    case WATCHDOG_REMOVE_IT:                                          
                                                                      
      the_watchdog->state = WATCHDOG_INACTIVE;                        
      next_watchdog = _Watchdog_Next( the_watchdog );                 
                                                                      
      if ( _Watchdog_Next(next_watchdog) )                            
  10c302:	83 39 00             	cmpl   $0x0,(%ecx)                    
  10c305:	74 06                	je     10c30d <_Watchdog_Remove+0x39> 
        next_watchdog->delta_interval += the_watchdog->delta_interval;
  10c307:	8b 5a 10             	mov    0x10(%edx),%ebx                
  10c30a:	01 59 10             	add    %ebx,0x10(%ecx)                
                                                                      
      if ( _Watchdog_Sync_count )                                     
  10c30d:	8b 1d 50 33 12 00    	mov    0x123350,%ebx                  
  10c313:	85 db                	test   %ebx,%ebx                      
  10c315:	74 0c                	je     10c323 <_Watchdog_Remove+0x4f> 
        _Watchdog_Sync_level = _ISR_Nest_level;                       
  10c317:	8b 1d 58 34 12 00    	mov    0x123458,%ebx                  
  10c31d:	89 1d e8 32 12 00    	mov    %ebx,0x1232e8                  
{                                                                     
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
  previous       = the_node->previous;                                
  10c323:	8b 5a 04             	mov    0x4(%edx),%ebx                 
  next->previous = previous;                                          
  10c326:	89 59 04             	mov    %ebx,0x4(%ecx)                 
  previous->next = next;                                              
  10c329:	89 0b                	mov    %ecx,(%ebx)                    
                                                                      
      _Chain_Extract_unprotected( &the_watchdog->Node );              
      break;                                                          
  }                                                                   
  the_watchdog->stop_time = _Watchdog_Ticks_since_boot;               
  10c32b:	8b 0d 54 33 12 00    	mov    0x123354,%ecx                  
  10c331:	89 4a 18             	mov    %ecx,0x18(%edx)                
                                                                      
  _ISR_Enable( level );                                               
  10c334:	56                   	push   %esi                           
  10c335:	9d                   	popf                                  
  return( previous_state );                                           
}                                                                     
  10c336:	5b                   	pop    %ebx                           
  10c337:	5e                   	pop    %esi                           
  10c338:	c9                   	leave                                 
  10c339:	c3                   	ret                                   
                                                                      

0010d400 <_Watchdog_Report_chain>: void _Watchdog_Report_chain( const char *name, Chain_Control *header ) {
  10d400:	55                   	push   %ebp                           
  10d401:	89 e5                	mov    %esp,%ebp                      
  10d403:	57                   	push   %edi                           
  10d404:	56                   	push   %esi                           
  10d405:	53                   	push   %ebx                           
  10d406:	83 ec 20             	sub    $0x20,%esp                     
  10d409:	8b 7d 08             	mov    0x8(%ebp),%edi                 
  10d40c:	8b 75 0c             	mov    0xc(%ebp),%esi                 
  ISR_Level          level;                                           
  Chain_Node        *node;                                            
                                                                      
  _ISR_Disable( level );                                              
  10d40f:	9c                   	pushf                                 
  10d410:	fa                   	cli                                   
  10d411:	8f 45 e4             	popl   -0x1c(%ebp)                    
    printk( "Watchdog Chain: %s %p\n", name, header );                
  10d414:	56                   	push   %esi                           
  10d415:	57                   	push   %edi                           
  10d416:	68 4c ff 11 00       	push   $0x11ff4c                      
  10d41b:	e8 3c ad ff ff       	call   10815c <printk>                
      printk( "== end of %s \n", name );                              
    } else {                                                          
      printk( "Chain is empty\n" );                                   
    }                                                                 
  _ISR_Enable( level );                                               
}                                                                     
  10d420:	8b 1e                	mov    (%esi),%ebx                    
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_first( the_chain )                          
    == _Chain_Immutable_tail( the_chain );                            
  10d422:	83 c6 04             	add    $0x4,%esi                      
  ISR_Level          level;                                           
  Chain_Node        *node;                                            
                                                                      
  _ISR_Disable( level );                                              
    printk( "Watchdog Chain: %s %p\n", name, header );                
    if ( !_Chain_Is_empty( header ) ) {                               
  10d425:	83 c4 10             	add    $0x10,%esp                     
  10d428:	39 f3                	cmp    %esi,%ebx                      
  10d42a:	74 1d                	je     10d449 <_Watchdog_Report_chain+0x49>
            node != _Chain_Tail(header) ;                             
            node = node->next )                                       
      {                                                               
        Watchdog_Control *watch = (Watchdog_Control *) node;          
                                                                      
        _Watchdog_Report( NULL, watch );                              
  10d42c:	52                   	push   %edx                           
  10d42d:	52                   	push   %edx                           
  10d42e:	53                   	push   %ebx                           
  10d42f:	6a 00                	push   $0x0                           
  10d431:	e8 32 00 00 00       	call   10d468 <_Watchdog_Report>      
  _ISR_Disable( level );                                              
    printk( "Watchdog Chain: %s %p\n", name, header );                
    if ( !_Chain_Is_empty( header ) ) {                               
      for ( node = _Chain_First( header ) ;                           
            node != _Chain_Tail(header) ;                             
            node = node->next )                                       
  10d436:	8b 1b                	mov    (%ebx),%ebx                    
  Chain_Node        *node;                                            
                                                                      
  _ISR_Disable( level );                                              
    printk( "Watchdog Chain: %s %p\n", name, header );                
    if ( !_Chain_Is_empty( header ) ) {                               
      for ( node = _Chain_First( header ) ;                           
  10d438:	83 c4 10             	add    $0x10,%esp                     
  10d43b:	39 f3                	cmp    %esi,%ebx                      
  10d43d:	75 ed                	jne    10d42c <_Watchdog_Report_chain+0x2c><== NEVER TAKEN
      {                                                               
        Watchdog_Control *watch = (Watchdog_Control *) node;          
                                                                      
        _Watchdog_Report( NULL, watch );                              
      }                                                               
      printk( "== end of %s \n", name );                              
  10d43f:	50                   	push   %eax                           
  10d440:	50                   	push   %eax                           
  10d441:	57                   	push   %edi                           
  10d442:	68 63 ff 11 00       	push   $0x11ff63                      
  10d447:	eb 08                	jmp    10d451 <_Watchdog_Report_chain+0x51>
    } else {                                                          
      printk( "Chain is empty\n" );                                   
  10d449:	83 ec 0c             	sub    $0xc,%esp                      
  10d44c:	68 72 ff 11 00       	push   $0x11ff72                      
  10d451:	e8 06 ad ff ff       	call   10815c <printk>                
  10d456:	83 c4 10             	add    $0x10,%esp                     
    }                                                                 
  _ISR_Enable( level );                                               
  10d459:	ff 75 e4             	pushl  -0x1c(%ebp)                    
  10d45c:	9d                   	popf                                  
}                                                                     
  10d45d:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  10d460:	5b                   	pop    %ebx                           
  10d461:	5e                   	pop    %esi                           
  10d462:	5f                   	pop    %edi                           
  10d463:	c9                   	leave                                 
  10d464:	c3                   	ret                                   
                                                                      

0010c33c <_Watchdog_Tickle>: */ void _Watchdog_Tickle( Chain_Control *header ) {
  10c33c:	55                   	push   %ebp                           
  10c33d:	89 e5                	mov    %esp,%ebp                      
  10c33f:	57                   	push   %edi                           
  10c340:	56                   	push   %esi                           
  10c341:	53                   	push   %ebx                           
  10c342:	83 ec 1c             	sub    $0x1c,%esp                     
  10c345:	8b 7d 08             	mov    0x8(%ebp),%edi                 
   * See the comment in watchdoginsert.c and watchdogadjust.c         
   * about why it's safe not to declare header a pointer to           
   * volatile data - till, 2003/7                                     
   */                                                                 
                                                                      
  _ISR_Disable( level );                                              
  10c348:	9c                   	pushf                                 
  10c349:	fa                   	cli                                   
  10c34a:	5e                   	pop    %esi                           
   } while ( !_Chain_Is_empty( header ) &&                            
             (the_watchdog->delta_interval == 0) );                   
                                                                      
leave:                                                                
   _ISR_Enable(level);                                                
}                                                                     
  10c34b:	8b 1f                	mov    (%edi),%ebx                    
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_first( the_chain )                          
    == _Chain_Immutable_tail( the_chain );                            
  10c34d:	8d 47 04             	lea    0x4(%edi),%eax                 
  10c350:	89 45 e4             	mov    %eax,-0x1c(%ebp)               
   * volatile data - till, 2003/7                                     
   */                                                                 
                                                                      
  _ISR_Disable( level );                                              
                                                                      
  if ( _Chain_Is_empty( header ) )                                    
  10c353:	39 c3                	cmp    %eax,%ebx                      
  10c355:	74 40                	je     10c397 <_Watchdog_Tickle+0x5b> 
   * to be inserted has already had its delta_interval adjusted to 0, and
   * so is added to the head of the chain with a delta_interval of 0. 
   *                                                                  
   * Steven Johnson - 12/2005 (gcc-3.2.3 -O3 on powerpc)              
   */                                                                 
  if (the_watchdog->delta_interval != 0) {                            
  10c357:	8b 43 10             	mov    0x10(%ebx),%eax                
  10c35a:	85 c0                	test   %eax,%eax                      
  10c35c:	74 08                	je     10c366 <_Watchdog_Tickle+0x2a> 
    the_watchdog->delta_interval--;                                   
  10c35e:	48                   	dec    %eax                           
  10c35f:	89 43 10             	mov    %eax,0x10(%ebx)                
    if ( the_watchdog->delta_interval != 0 )                          
  10c362:	85 c0                	test   %eax,%eax                      
  10c364:	75 31                	jne    10c397 <_Watchdog_Tickle+0x5b> 
      goto leave;                                                     
  }                                                                   
                                                                      
  do {                                                                
     watchdog_state = _Watchdog_Remove( the_watchdog );               
  10c366:	83 ec 0c             	sub    $0xc,%esp                      
  10c369:	53                   	push   %ebx                           
  10c36a:	e8 65 ff ff ff       	call   10c2d4 <_Watchdog_Remove>      
                                                                      
     _ISR_Enable( level );                                            
  10c36f:	56                   	push   %esi                           
  10c370:	9d                   	popf                                  
                                                                      
     switch( watchdog_state ) {                                       
  10c371:	83 c4 10             	add    $0x10,%esp                     
  10c374:	83 f8 02             	cmp    $0x2,%eax                      
  10c377:	75 0e                	jne    10c387 <_Watchdog_Tickle+0x4b> <== NEVER TAKEN
       case WATCHDOG_ACTIVE:                                          
         (*the_watchdog->routine)(                                    
  10c379:	50                   	push   %eax                           
  10c37a:	50                   	push   %eax                           
  10c37b:	ff 73 24             	pushl  0x24(%ebx)                     
  10c37e:	ff 73 20             	pushl  0x20(%ebx)                     
  10c381:	ff 53 1c             	call   *0x1c(%ebx)                    
           the_watchdog->id,                                          
           the_watchdog->user_data                                    
         );                                                           
         break;                                                       
  10c384:	83 c4 10             	add    $0x10,%esp                     
                                                                      
       case WATCHDOG_REMOVE_IT:                                       
         break;                                                       
     }                                                                
                                                                      
     _ISR_Disable( level );                                           
  10c387:	9c                   	pushf                                 
  10c388:	fa                   	cli                                   
  10c389:	5e                   	pop    %esi                           
   } while ( !_Chain_Is_empty( header ) &&                            
             (the_watchdog->delta_interval == 0) );                   
                                                                      
leave:                                                                
   _ISR_Enable(level);                                                
}                                                                     
  10c38a:	8b 1f                	mov    (%edi),%ebx                    
                                                                      
     _ISR_Disable( level );                                           
                                                                      
     the_watchdog = _Watchdog_First( header );                        
   } while ( !_Chain_Is_empty( header ) &&                            
             (the_watchdog->delta_interval == 0) );                   
  10c38c:	3b 5d e4             	cmp    -0x1c(%ebp),%ebx               
  10c38f:	74 06                	je     10c397 <_Watchdog_Tickle+0x5b> 
     }                                                                
                                                                      
     _ISR_Disable( level );                                           
                                                                      
     the_watchdog = _Watchdog_First( header );                        
   } while ( !_Chain_Is_empty( header ) &&                            
  10c391:	83 7b 10 00          	cmpl   $0x0,0x10(%ebx)                
  10c395:	eb cd                	jmp    10c364 <_Watchdog_Tickle+0x28> 
             (the_watchdog->delta_interval == 0) );                   
                                                                      
leave:                                                                
   _ISR_Enable(level);                                                
  10c397:	56                   	push   %esi                           
  10c398:	9d                   	popf                                  
}                                                                     
  10c399:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  10c39c:	5b                   	pop    %ebx                           
  10c39d:	5e                   	pop    %esi                           
  10c39e:	5f                   	pop    %edi                           
  10c39f:	c9                   	leave                                 
  10c3a0:	c3                   	ret                                   
                                                                      

001208e6 <__kill>: #endif int __kill( pid_t pid, int sig ) {
  1208e6:	55                   	push   %ebp                           <== NOT EXECUTED
  1208e7:	89 e5                	mov    %esp,%ebp                      <== NOT EXECUTED
  return 0;                                                           
}                                                                     
  1208e9:	31 c0                	xor    %eax,%eax                      <== NOT EXECUTED
  1208eb:	c9                   	leave                                 <== NOT EXECUTED
  1208ec:	c3                   	ret                                   <== NOT EXECUTED
                                                                      

00106a77 <_gettimeofday>: int _gettimeofday( struct timeval *tp, struct timezone *tzp ) {
  106a77:	55                   	push   %ebp                           <== NOT EXECUTED
  106a78:	89 e5                	mov    %esp,%ebp                      <== NOT EXECUTED
  106a7a:	83 ec 08             	sub    $0x8,%esp                      <== NOT EXECUTED
  return gettimeofday( tp, tzp );                                     
}                                                                     
  106a7d:	c9                   	leave                                 <== NOT EXECUTED
int _gettimeofday(                                                    
  struct timeval  *tp,                                                
  struct timezone *tzp                                                
)                                                                     
{                                                                     
  return gettimeofday( tp, tzp );                                     
  106a7e:	e9 8d ff ff ff       	jmp    106a10 <gettimeofday>          <== NOT EXECUTED
                                                                      

0010a84c <_rename_r>: int _rename_r( struct _reent *ptr __attribute__((unused)), const char *old, const char *new ) {
  10a84c:	55                   	push   %ebp                           
  10a84d:	89 e5                	mov    %esp,%ebp                      
  10a84f:	57                   	push   %edi                           
  10a850:	56                   	push   %esi                           
  10a851:	53                   	push   %ebx                           
  10a852:	83 ec 78             	sub    $0x78,%esp                     
                                                                      
  /*                                                                  
   *  Get the parent node of the old path to be renamed. Find the parent path.
   */                                                                 
                                                                      
  old_parent_pathlen = rtems_filesystem_dirname ( old );              
  10a855:	ff 75 0c             	pushl  0xc(%ebp)                      
  10a858:	e8 3a ed ff ff       	call   109597 <rtems_filesystem_dirname>
  10a85d:	89 45 94             	mov    %eax,-0x6c(%ebp)               
                                                                      
  if ( old_parent_pathlen == 0 )                                      
  10a860:	83 c4 10             	add    $0x10,%esp                     
  10a863:	85 c0                	test   %eax,%eax                      
  10a865:	8d 45 b8             	lea    -0x48(%ebp),%eax               
  10a868:	75 15                	jne    10a87f <_rename_r+0x33>        
    rtems_filesystem_get_start_loc( old, &i, &old_parent_loc );       
  10a86a:	51                   	push   %ecx                           
  10a86b:	50                   	push   %eax                           
  10a86c:	8d 45 e4             	lea    -0x1c(%ebp),%eax               
  10a86f:	50                   	push   %eax                           
  10a870:	ff 75 0c             	pushl  0xc(%ebp)                      
  10a873:	e8 48 03 00 00       	call   10abc0 <rtems_filesystem_get_start_loc>
  10a878:	83 c4 10             	add    $0x10,%esp                     
  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;     
  10a87b:	31 db                	xor    %ebx,%ebx                      
  10a87d:	eb 23                	jmp    10a8a2 <_rename_r+0x56>        
  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, 
  10a87f:	83 ec 0c             	sub    $0xc,%esp                      
  10a882:	6a 00                	push   $0x0                           
  10a884:	50                   	push   %eax                           
  10a885:	6a 02                	push   $0x2                           
  10a887:	ff 75 94             	pushl  -0x6c(%ebp)                    
  10a88a:	ff 75 0c             	pushl  0xc(%ebp)                      
  10a88d:	e8 c4 ec ff ff       	call   109556 <rtems_filesystem_evaluate_path>
                                             RTEMS_LIBIO_PERMS_WRITE, 
                                             &old_parent_loc,         
                                             false );                 
    if ( result != 0 )                                                
  10a892:	83 c4 20             	add    $0x20,%esp                     
      return -1;                                                      
  10a895:	83 cf ff             	or     $0xffffffff,%edi               
  else {                                                              
    result = rtems_filesystem_evaluate_path( old, old_parent_pathlen, 
                                             RTEMS_LIBIO_PERMS_WRITE, 
                                             &old_parent_loc,         
                                             false );                 
    if ( result != 0 )                                                
  10a898:	85 c0                	test   %eax,%eax                      
  10a89a:	0f 85 50 01 00 00    	jne    10a9f0 <_rename_r+0x1a4>       <== NEVER TAKEN
      return -1;                                                      
                                                                      
    free_old_parentloc = true;                                        
  10a8a0:	b3 01                	mov    $0x1,%bl                       
                                                                      
  /*                                                                  
   * Start from the parent to find the node that should be under it.  
   */                                                                 
                                                                      
  old_loc = old_parent_loc;                                           
  10a8a2:	8d 7d cc             	lea    -0x34(%ebp),%edi               
  10a8a5:	8d 75 b8             	lea    -0x48(%ebp),%esi               
  10a8a8:	b9 05 00 00 00       	mov    $0x5,%ecx                      
  10a8ad:	f3 a5                	rep movsl %ds:(%esi),%es:(%edi)       
  name = old + old_parent_pathlen;                                    
  10a8af:	8b 75 0c             	mov    0xc(%ebp),%esi                 
  10a8b2:	03 75 94             	add    -0x6c(%ebp),%esi               
  10a8b5:	89 75 e0             	mov    %esi,-0x20(%ebp)               
  name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 
  10a8b8:	83 c9 ff             	or     $0xffffffff,%ecx               
  10a8bb:	89 f7                	mov    %esi,%edi                      
  10a8bd:	31 c0                	xor    %eax,%eax                      
  10a8bf:	f2 ae                	repnz scas %es:(%edi),%al             
  10a8c1:	f7 d1                	not    %ecx                           
  10a8c3:	49                   	dec    %ecx                           
  10a8c4:	52                   	push   %edx                           
  10a8c5:	52                   	push   %edx                           
  10a8c6:	51                   	push   %ecx                           
  10a8c7:	56                   	push   %esi                           
  10a8c8:	e8 09 ed ff ff       	call   1095d6 <rtems_filesystem_prefix_separators>
  10a8cd:	01 c6                	add    %eax,%esi                      
  10a8cf:	89 75 e0             	mov    %esi,-0x20(%ebp)               
                                                                      
  result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
  10a8d2:	83 c9 ff             	or     $0xffffffff,%ecx               
  10a8d5:	89 f7                	mov    %esi,%edi                      
  10a8d7:	31 c0                	xor    %eax,%eax                      
  10a8d9:	f2 ae                	repnz scas %es:(%edi),%al             
  10a8db:	f7 d1                	not    %ecx                           
  10a8dd:	49                   	dec    %ecx                           
  10a8de:	c7 04 24 00 00 00 00 	movl   $0x0,(%esp)                    
  10a8e5:	8d 7d cc             	lea    -0x34(%ebp),%edi               
  10a8e8:	57                   	push   %edi                           
  10a8e9:	6a 00                	push   $0x0                           
  10a8eb:	51                   	push   %ecx                           
  10a8ec:	56                   	push   %esi                           
  10a8ed:	e8 06 ec ff ff       	call   1094f8 <rtems_filesystem_evaluate_relative_path>
                                                    0, &old_loc, false );
  if ( result != 0 ) {                                                
  10a8f2:	83 c4 20             	add    $0x20,%esp                     
  10a8f5:	85 c0                	test   %eax,%eax                      
  10a8f7:	74 16                	je     10a90f <_rename_r+0xc3>        
    if ( free_old_parentloc )                                         
      rtems_filesystem_freenode( &old_parent_loc );                   
    return -1;                                                        
  10a8f9:	83 cf ff             	or     $0xffffffff,%edi               
  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 )                                         
  10a8fc:	84 db                	test   %bl,%bl                        
  10a8fe:	0f 84 ec 00 00 00    	je     10a9f0 <_rename_r+0x1a4>       <== NEVER TAKEN
      rtems_filesystem_freenode( &old_parent_loc );                   
  10a904:	83 ec 0c             	sub    $0xc,%esp                      
  10a907:	8d 45 b8             	lea    -0x48(%ebp),%eax               
  10a90a:	e9 d8 00 00 00       	jmp    10a9e7 <_rename_r+0x19b>       
                                                                      
  /*                                                                  
   * Get the parent of the new node we are renaming to.               
   */                                                                 
                                                                      
  rtems_filesystem_get_start_loc( new, &i, &new_parent_loc );         
  10a90f:	50                   	push   %eax                           
  10a910:	8d 75 a4             	lea    -0x5c(%ebp),%esi               
  10a913:	56                   	push   %esi                           
  10a914:	8d 45 e4             	lea    -0x1c(%ebp),%eax               
  10a917:	50                   	push   %eax                           
  10a918:	ff 75 10             	pushl  0x10(%ebp)                     
  10a91b:	e8 a0 02 00 00       	call   10abc0 <rtems_filesystem_get_start_loc>
                                                                      
  result = (*new_parent_loc.ops->evalformake_h)( &new[i], &new_parent_loc, &name );
  10a920:	83 c4 0c             	add    $0xc,%esp                      
  10a923:	8d 45 e0             	lea    -0x20(%ebp),%eax               
  10a926:	50                   	push   %eax                           
  10a927:	56                   	push   %esi                           
  10a928:	8b 45 10             	mov    0x10(%ebp),%eax                
  10a92b:	03 45 e4             	add    -0x1c(%ebp),%eax               
  10a92e:	50                   	push   %eax                           
  10a92f:	8b 45 b0             	mov    -0x50(%ebp),%eax               
  10a932:	ff 50 04             	call   *0x4(%eax)                     
  if ( result != 0 ) {                                                
  10a935:	83 c4 10             	add    $0x10,%esp                     
  10a938:	85 c0                	test   %eax,%eax                      
  10a93a:	74 2d                	je     10a969 <_rename_r+0x11d>       
    rtems_filesystem_freenode( &new_parent_loc );                     
  10a93c:	83 ec 0c             	sub    $0xc,%esp                      
  10a93f:	56                   	push   %esi                           
  10a940:	e8 1f ee ff ff       	call   109764 <rtems_filesystem_freenode>
    if ( free_old_parentloc )                                         
  10a945:	83 c4 10             	add    $0x10,%esp                     
  10a948:	84 db                	test   %bl,%bl                        
  10a94a:	74 0f                	je     10a95b <_rename_r+0x10f>       <== NEVER TAKEN
      rtems_filesystem_freenode( &old_parent_loc );                   
  10a94c:	83 ec 0c             	sub    $0xc,%esp                      
  10a94f:	8d 45 b8             	lea    -0x48(%ebp),%eax               
  10a952:	50                   	push   %eax                           
  10a953:	e8 0c ee ff ff       	call   109764 <rtems_filesystem_freenode>
  10a958:	83 c4 10             	add    $0x10,%esp                     
    rtems_filesystem_freenode( &old_loc );                            
  10a95b:	83 ec 0c             	sub    $0xc,%esp                      
  10a95e:	8d 45 cc             	lea    -0x34(%ebp),%eax               
  10a961:	50                   	push   %eax                           
  10a962:	e8 fd ed ff ff       	call   109764 <rtems_filesystem_freenode>
  10a967:	eb 3e                	jmp    10a9a7 <_rename_r+0x15b>       
  /*                                                                  
   *  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 ) {         
  10a969:	8b 45 b4             	mov    -0x4c(%ebp),%eax               
  10a96c:	39 45 c8             	cmp    %eax,-0x38(%ebp)               
  10a96f:	74 3e                	je     10a9af <_rename_r+0x163>       
    rtems_filesystem_freenode( &new_parent_loc );                     
  10a971:	83 ec 0c             	sub    $0xc,%esp                      
  10a974:	56                   	push   %esi                           
  10a975:	e8 ea ed ff ff       	call   109764 <rtems_filesystem_freenode>
    if ( free_old_parentloc )                                         
  10a97a:	83 c4 10             	add    $0x10,%esp                     
  10a97d:	84 db                	test   %bl,%bl                        
  10a97f:	74 0f                	je     10a990 <_rename_r+0x144>       
      rtems_filesystem_freenode( &old_parent_loc );                   
  10a981:	83 ec 0c             	sub    $0xc,%esp                      
  10a984:	8d 45 b8             	lea    -0x48(%ebp),%eax               
  10a987:	50                   	push   %eax                           
  10a988:	e8 d7 ed ff ff       	call   109764 <rtems_filesystem_freenode>
  10a98d:	83 c4 10             	add    $0x10,%esp                     
    rtems_filesystem_freenode( &old_loc );                            
  10a990:	83 ec 0c             	sub    $0xc,%esp                      
  10a993:	8d 45 cc             	lea    -0x34(%ebp),%eax               
  10a996:	50                   	push   %eax                           
  10a997:	e8 c8 ed ff ff       	call   109764 <rtems_filesystem_freenode>
    rtems_set_errno_and_return_minus_one( EXDEV );                    
  10a99c:	e8 d3 8a 00 00       	call   113474 <__errno>               
  10a9a1:	c7 00 12 00 00 00    	movl   $0x12,(%eax)                   
  10a9a7:	83 c4 10             	add    $0x10,%esp                     
  10a9aa:	83 cf ff             	or     $0xffffffff,%edi               
  10a9ad:	eb 41                	jmp    10a9f0 <_rename_r+0x1a4>       
  }                                                                   
                                                                      
  result = (*new_parent_loc.ops->rename_h)( &old_parent_loc, &old_loc, &new_parent_loc, name );
  10a9af:	ff 75 e0             	pushl  -0x20(%ebp)                    
  10a9b2:	56                   	push   %esi                           
  10a9b3:	57                   	push   %edi                           
  10a9b4:	8d 55 b8             	lea    -0x48(%ebp),%edx               
  10a9b7:	52                   	push   %edx                           
  10a9b8:	8b 45 b0             	mov    -0x50(%ebp),%eax               
  10a9bb:	89 55 90             	mov    %edx,-0x70(%ebp)               
  10a9be:	ff 50 40             	call   *0x40(%eax)                    
  10a9c1:	89 c7                	mov    %eax,%edi                      
                                                                      
  rtems_filesystem_freenode( &new_parent_loc );                       
  10a9c3:	89 34 24             	mov    %esi,(%esp)                    
  10a9c6:	e8 99 ed ff ff       	call   109764 <rtems_filesystem_freenode>
  if ( free_old_parentloc )                                           
  10a9cb:	83 c4 10             	add    $0x10,%esp                     
  10a9ce:	84 db                	test   %bl,%bl                        
  10a9d0:	8b 55 90             	mov    -0x70(%ebp),%edx               
  10a9d3:	74 0c                	je     10a9e1 <_rename_r+0x195>       
    rtems_filesystem_freenode( &old_parent_loc );                     
  10a9d5:	83 ec 0c             	sub    $0xc,%esp                      
  10a9d8:	52                   	push   %edx                           
  10a9d9:	e8 86 ed ff ff       	call   109764 <rtems_filesystem_freenode>
  10a9de:	83 c4 10             	add    $0x10,%esp                     
  rtems_filesystem_freenode( &old_loc );                              
  10a9e1:	83 ec 0c             	sub    $0xc,%esp                      
  10a9e4:	8d 45 cc             	lea    -0x34(%ebp),%eax               
  10a9e7:	50                   	push   %eax                           
  10a9e8:	e8 77 ed ff ff       	call   109764 <rtems_filesystem_freenode>
                                                                      
  return result;                                                      
  10a9ed:	83 c4 10             	add    $0x10,%esp                     
}                                                                     
  10a9f0:	89 f8                	mov    %edi,%eax                      
  10a9f2:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  10a9f5:	5b                   	pop    %ebx                           
  10a9f6:	5e                   	pop    %esi                           
  10a9f7:	5f                   	pop    %edi                           
  10a9f8:	c9                   	leave                                 
  10a9f9:	c3                   	ret                                   
                                                                      

00106b78 <chroot>: #include <rtems/seterr.h> int chroot( const char *pathname ) {
  106b78:	55                   	push   %ebp                           
  106b79:	89 e5                	mov    %esp,%ebp                      
  106b7b:	57                   	push   %edi                           
  106b7c:	56                   	push   %esi                           
  106b7d:	83 ec 20             	sub    $0x20,%esp                     
  int                               result;                           
  rtems_filesystem_location_info_t  loc;                              
                                                                      
  /* an automatic call to new private env the first time */           
  if (rtems_current_user_env == &rtems_global_user_env) {             
  106b80:	81 3d f0 24 12 00 10 	cmpl   $0x124610,0x1224f0             
  106b87:	46 12 00                                                    
  106b8a:	75 1e                	jne    106baa <chroot+0x32>           
   rtems_libio_set_private_env(); /* try to set a new private env*/   
  106b8c:	e8 f0 10 00 00       	call   107c81 <rtems_libio_set_private_env>
   if (rtems_current_user_env == &rtems_global_user_env) /* not ok */ 
  106b91:	81 3d f0 24 12 00 10 	cmpl   $0x124610,0x1224f0             
  106b98:	46 12 00                                                    
  106b9b:	75 0d                	jne    106baa <chroot+0x32>           
    rtems_set_errno_and_return_minus_one( ENOTSUP );                  
  106b9d:	e8 46 99 00 00       	call   1104e8 <__errno>               
  106ba2:	c7 00 86 00 00 00    	movl   $0x86,(%eax)                   
  106ba8:	eb 22                	jmp    106bcc <chroot+0x54>           
  }                                                                   
                                                                      
  result = chdir(pathname);                                           
  106baa:	83 ec 0c             	sub    $0xc,%esp                      
  106bad:	ff 75 08             	pushl  0x8(%ebp)                      
  106bb0:	e8 fb 72 00 00       	call   10deb0 <chdir>                 
  if (result) {                                                       
  106bb5:	83 c4 10             	add    $0x10,%esp                     
  106bb8:	85 c0                	test   %eax,%eax                      
  106bba:	74 15                	je     106bd1 <chroot+0x59>           
    rtems_set_errno_and_return_minus_one( errno );                    
  106bbc:	e8 27 99 00 00       	call   1104e8 <__errno>               
  106bc1:	89 c6                	mov    %eax,%esi                      
  106bc3:	e8 20 99 00 00       	call   1104e8 <__errno>               
  106bc8:	8b 00                	mov    (%eax),%eax                    
  106bca:	89 06                	mov    %eax,(%esi)                    
  106bcc:	83 c8 ff             	or     $0xffffffff,%eax               
  106bcf:	eb 44                	jmp    106c15 <chroot+0x9d>           
  }                                                                   
                                                                      
  /* clone the new root location */                                   
  if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) {           
  106bd1:	83 ec 0c             	sub    $0xc,%esp                      
  106bd4:	6a 00                	push   $0x0                           
  106bd6:	8d 75 e4             	lea    -0x1c(%ebp),%esi               
  106bd9:	56                   	push   %esi                           
  106bda:	6a 00                	push   $0x0                           
  106bdc:	6a 01                	push   $0x1                           
  106bde:	68 5a e7 11 00       	push   $0x11e75a                      
  106be3:	e8 02 01 00 00       	call   106cea <rtems_filesystem_evaluate_path>
  106be8:	83 c4 20             	add    $0x20,%esp                     
  106beb:	85 c0                	test   %eax,%eax                      
  106bed:	75 cd                	jne    106bbc <chroot+0x44>           <== NEVER TAKEN
    /* our cwd has changed, though - but there is no easy way of return :-( */
    rtems_set_errno_and_return_minus_one( errno );                    
  }                                                                   
  rtems_filesystem_freenode(&rtems_filesystem_root);                  
  106bef:	83 ec 0c             	sub    $0xc,%esp                      
  106bf2:	a1 f0 24 12 00       	mov    0x1224f0,%eax                  
  106bf7:	83 c0 18             	add    $0x18,%eax                     
  106bfa:	50                   	push   %eax                           
  106bfb:	e8 a8 01 00 00       	call   106da8 <rtems_filesystem_freenode>
  rtems_filesystem_root = loc;                                        
  106c00:	8b 3d f0 24 12 00    	mov    0x1224f0,%edi                  
  106c06:	83 c7 18             	add    $0x18,%edi                     
  106c09:	b9 05 00 00 00       	mov    $0x5,%ecx                      
  106c0e:	f3 a5                	rep movsl %ds:(%esi),%es:(%edi)       
                                                                      
  return 0;                                                           
  106c10:	83 c4 10             	add    $0x10,%esp                     
  106c13:	31 c0                	xor    %eax,%eax                      
}                                                                     
  106c15:	8d 65 f8             	lea    -0x8(%ebp),%esp                
  106c18:	5e                   	pop    %esi                           
  106c19:	5f                   	pop    %edi                           
  106c1a:	c9                   	leave                                 
  106c1b:	c3                   	ret                                   
                                                                      

0010d68c <devFS_evaluate_path>: const char *pathname, size_t pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc ) {
  10d68c:	55                   	push   %ebp                           
  10d68d:	89 e5                	mov    %esp,%ebp                      
  10d68f:	57                   	push   %edi                           
  10d690:	56                   	push   %esi                           
  10d691:	53                   	push   %ebx                           
  10d692:	83 ec 1c             	sub    $0x1c,%esp                     
  10d695:	8b 4d 0c             	mov    0xc(%ebp),%ecx                 
  10d698:	8b 5d 14             	mov    0x14(%ebp),%ebx                
  int                   i;                                            
  rtems_device_name_t  *device_name_table;                            
                                                                      
  /* see if 'flags' is valid */                                       
  if ( !rtems_libio_is_valid_perms( flags ) )                         
  10d69b:	f7 45 10 f8 ff ff ff 	testl  $0xfffffff8,0x10(%ebp)         
  10d6a2:	74 0d                	je     10d6b1 <devFS_evaluate_path+0x25><== ALWAYS TAKEN
    rtems_set_errno_and_return_minus_one( EPERM );                    
  10d6a4:	e8 0b 1a 00 00       	call   10f0b4 <__errno>               <== NOT EXECUTED
  10d6a9:	c7 00 01 00 00 00    	movl   $0x1,(%eax)                    <== NOT EXECUTED
  10d6af:	eb 77                	jmp    10d728 <devFS_evaluate_path+0x9c><== NOT EXECUTED
                                                                      
  /* get the device name table */                                     
  device_name_table = (rtems_device_name_t *)pathloc->node_access;    
  10d6b1:	8b 33                	mov    (%ebx),%esi                    
  if (!device_name_table)                                             
  10d6b3:	85 f6                	test   %esi,%esi                      
  10d6b5:	74 04                	je     10d6bb <devFS_evaluate_path+0x2f>
  10d6b7:	31 ff                	xor    %edi,%edi                      
  10d6b9:	eb 5a                	jmp    10d715 <devFS_evaluate_path+0x89>
    rtems_set_errno_and_return_minus_one( EFAULT );                   
  10d6bb:	e8 f4 19 00 00       	call   10f0b4 <__errno>               
  10d6c0:	c7 00 0e 00 00 00    	movl   $0xe,(%eax)                    
  10d6c6:	eb 60                	jmp    10d728 <devFS_evaluate_path+0x9c>
                                                                      
  for (i = 0; i < rtems_device_table_size; i++) {                     
    if (!device_name_table[i].device_name)                            
  10d6c8:	8b 16                	mov    (%esi),%edx                    
  10d6ca:	85 d2                	test   %edx,%edx                      
  10d6cc:	74 43                	je     10d711 <devFS_evaluate_path+0x85>
      continue;                                                       
                                                                      
    if (strncmp(pathname, device_name_table[i].device_name, pathnamelen) != 0)
  10d6ce:	50                   	push   %eax                           
  10d6cf:	51                   	push   %ecx                           
  10d6d0:	52                   	push   %edx                           
  10d6d1:	ff 75 08             	pushl  0x8(%ebp)                      
  10d6d4:	89 55 e4             	mov    %edx,-0x1c(%ebp)               
  10d6d7:	89 4d e0             	mov    %ecx,-0x20(%ebp)               
  10d6da:	e8 8d 2d 00 00       	call   11046c <strncmp>               
  10d6df:	83 c4 10             	add    $0x10,%esp                     
  10d6e2:	85 c0                	test   %eax,%eax                      
  10d6e4:	8b 55 e4             	mov    -0x1c(%ebp),%edx               
  10d6e7:	8b 4d e0             	mov    -0x20(%ebp),%ecx               
  10d6ea:	75 25                	jne    10d711 <devFS_evaluate_path+0x85>
      continue;                                                       
                                                                      
    if (device_name_table[i].device_name[pathnamelen] != '\0')        
  10d6ec:	80 3c 0a 00          	cmpb   $0x0,(%edx,%ecx,1)             
  10d6f0:	75 1f                	jne    10d711 <devFS_evaluate_path+0x85><== NEVER TAKEN
      continue;                                                       
                                                                      
    /* find the device, set proper values */                          
    pathloc->node_access = (void *)&device_name_table[i];             
  10d6f2:	89 33                	mov    %esi,(%ebx)                    
    pathloc->handlers = &devFS_file_handlers;                         
  10d6f4:	c7 43 08 5c ff 11 00 	movl   $0x11ff5c,0x8(%ebx)            
    pathloc->ops = &devFS_ops;                                        
  10d6fb:	c7 43 0c 14 ff 11 00 	movl   $0x11ff14,0xc(%ebx)            
    pathloc->mt_entry = rtems_filesystem_root.mt_entry;               
  10d702:	a1 b0 00 12 00       	mov    0x1200b0,%eax                  
  10d707:	8b 40 28             	mov    0x28(%eax),%eax                
  10d70a:	89 43 10             	mov    %eax,0x10(%ebx)                
    return 0;                                                         
  10d70d:	31 c0                	xor    %eax,%eax                      
  10d70f:	eb 1a                	jmp    10d72b <devFS_evaluate_path+0x9f>
  /* 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++) {                     
  10d711:	47                   	inc    %edi                           
  10d712:	83 c6 14             	add    $0x14,%esi                     
  10d715:	3b 3d 48 e1 11 00    	cmp    0x11e148,%edi                  
  10d71b:	72 ab                	jb     10d6c8 <devFS_evaluate_path+0x3c>
    pathloc->mt_entry = rtems_filesystem_root.mt_entry;               
    return 0;                                                         
  }                                                                   
                                                                      
  /* no such file or directory */                                     
  rtems_set_errno_and_return_minus_one( ENOENT );                     
  10d71d:	e8 92 19 00 00       	call   10f0b4 <__errno>               
  10d722:	c7 00 02 00 00 00    	movl   $0x2,(%eax)                    
  10d728:	83 c8 ff             	or     $0xffffffff,%eax               
}                                                                     
  10d72b:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  10d72e:	5b                   	pop    %ebx                           
  10d72f:	5e                   	pop    %esi                           
  10d730:	5f                   	pop    %edi                           
  10d731:	c9                   	leave                                 
  10d732:	c3                   	ret                                   
                                                                      

00106fe0 <devFS_mknod>: const char *path, mode_t mode, dev_t dev, rtems_filesystem_location_info_t *pathloc ) {
  106fe0:	55                   	push   %ebp                           
  106fe1:	89 e5                	mov    %esp,%ebp                      
  106fe3:	57                   	push   %edi                           
  106fe4:	56                   	push   %esi                           
  106fe5:	53                   	push   %ebx                           
  106fe6:	83 ec 1c             	sub    $0x1c,%esp                     
  106fe9:	8b 7d 08             	mov    0x8(%ebp),%edi                 
  106fec:	8b 4d 10             	mov    0x10(%ebp),%ecx                
  106fef:	8b 55 14             	mov    0x14(%ebp),%edx                
   * condition and do not create the '/dev' and the 'path'            
   * actually passed in is 'dev', not '/dev'. Just return 0 to        
   * indicate we are OK.                                              
   */                                                                 
                                                                      
  if ((path[0] == 'd') && (path[1] == 'e') &&                         
  106ff2:	80 3f 64             	cmpb   $0x64,(%edi)                   
  106ff5:	75 18                	jne    10700f <devFS_mknod+0x2f>      
  106ff7:	80 7f 01 65          	cmpb   $0x65,0x1(%edi)                
  106ffb:	75 12                	jne    10700f <devFS_mknod+0x2f>      <== NEVER TAKEN
  106ffd:	80 7f 02 76          	cmpb   $0x76,0x2(%edi)                
  107001:	75 0c                	jne    10700f <devFS_mknod+0x2f>      <== NEVER TAKEN
      (path[2] == 'v') && (path[3] == '\0'))                          
      return 0;                                                       
  107003:	31 c0                	xor    %eax,%eax                      
   * actually passed in is 'dev', not '/dev'. Just return 0 to        
   * indicate we are OK.                                              
   */                                                                 
                                                                      
  if ((path[0] == 'd') && (path[1] == 'e') &&                         
      (path[2] == 'v') && (path[3] == '\0'))                          
  107005:	80 7f 03 00          	cmpb   $0x0,0x3(%edi)                 
  107009:	0f 84 c9 00 00 00    	je     1070d8 <devFS_mknod+0xf8>      
      return 0;                                                       
                                                                      
  /* must be a character device or a block device */                  
  if (!S_ISBLK(mode) && !S_ISCHR(mode))                               
  10700f:	8b 45 0c             	mov    0xc(%ebp),%eax                 
  107012:	25 00 f0 00 00       	and    $0xf000,%eax                   
  107017:	3d 00 20 00 00       	cmp    $0x2000,%eax                   
  10701c:	74 14                	je     107032 <devFS_mknod+0x52>      
  10701e:	3d 00 60 00 00       	cmp    $0x6000,%eax                   
  107023:	74 0d                	je     107032 <devFS_mknod+0x52>      
    rtems_set_errno_and_return_minus_one( EINVAL );                   
  107025:	e8 8a 80 00 00       	call   10f0b4 <__errno>               
  10702a:	c7 00 16 00 00 00    	movl   $0x16,(%eax)                   
  107030:	eb 23                	jmp    107055 <devFS_mknod+0x75>      
)                                                                     
{                                                                     
  union __rtems_dev_t temp;                                           
                                                                      
  temp.device = device;                                               
  return temp.__overlay.major;                                        
  107032:	89 4d e4             	mov    %ecx,-0x1c(%ebp)               
  dev_t device                                                        
)                                                                     
{                                                                     
  union __rtems_dev_t temp;                                           
                                                                      
  temp.device = device;                                               
  107035:	89 55 e0             	mov    %edx,-0x20(%ebp)               
  else                                                                
    rtems_filesystem_split_dev_t(dev, major, minor);                  
                                                                      
  /* Find an empty slot in device name table */                       
  device_name_table = (rtems_device_name_t *)pathloc->node_access;    
  107038:	8b 45 18             	mov    0x18(%ebp),%eax                
  10703b:	8b 08                	mov    (%eax),%ecx                    
  if (!device_name_table)                                             
  10703d:	85 c9                	test   %ecx,%ecx                      
  10703f:	74 09                	je     10704a <devFS_mknod+0x6a>      
  107041:	89 ca                	mov    %ecx,%edx                      
  107043:	83 ce ff             	or     $0xffffffff,%esi               
  107046:	31 db                	xor    %ebx,%ebx                      
  107048:	eb 46                	jmp    107090 <devFS_mknod+0xb0>      
    rtems_set_errno_and_return_minus_one( EFAULT );                   
  10704a:	e8 65 80 00 00       	call   10f0b4 <__errno>               
  10704f:	c7 00 0e 00 00 00    	movl   $0xe,(%eax)                    
  107055:	83 c8 ff             	or     $0xffffffff,%eax               
  107058:	eb 7e                	jmp    1070d8 <devFS_mknod+0xf8>      
                                                                      
  for (slot = -1, i = 0; i < rtems_device_table_size; i++){           
      if (device_name_table[i].device_name == NULL)                   
  10705a:	8b 02                	mov    (%edx),%eax                    
  10705c:	85 c0                	test   %eax,%eax                      
  10705e:	74 2a                	je     10708a <devFS_mknod+0xaa>      
          slot = i;                                                   
      else                                                            
          if (strcmp(path, device_name_table[i].device_name) == 0)    
  107060:	83 ec 08             	sub    $0x8,%esp                      
  107063:	50                   	push   %eax                           
  107064:	57                   	push   %edi                           
  107065:	89 55 d8             	mov    %edx,-0x28(%ebp)               
  107068:	89 4d dc             	mov    %ecx,-0x24(%ebp)               
  10706b:	e8 cc 92 00 00       	call   11033c <strcmp>                
  107070:	83 c4 10             	add    $0x10,%esp                     
  107073:	85 c0                	test   %eax,%eax                      
  107075:	8b 55 d8             	mov    -0x28(%ebp),%edx               
  107078:	8b 4d dc             	mov    -0x24(%ebp),%ecx               
  10707b:	75 0f                	jne    10708c <devFS_mknod+0xac>      
              rtems_set_errno_and_return_minus_one( EEXIST );         
  10707d:	e8 32 80 00 00       	call   10f0b4 <__errno>               
  107082:	c7 00 11 00 00 00    	movl   $0x11,(%eax)                   
  107088:	eb cb                	jmp    107055 <devFS_mknod+0x75>      
  if (!device_name_table)                                             
    rtems_set_errno_and_return_minus_one( EFAULT );                   
                                                                      
  for (slot = -1, i = 0; i < rtems_device_table_size; i++){           
      if (device_name_table[i].device_name == NULL)                   
          slot = i;                                                   
  10708a:	89 de                	mov    %ebx,%esi                      
  /* Find an empty slot in device name table */                       
  device_name_table = (rtems_device_name_t *)pathloc->node_access;    
  if (!device_name_table)                                             
    rtems_set_errno_and_return_minus_one( EFAULT );                   
                                                                      
  for (slot = -1, i = 0; i < rtems_device_table_size; i++){           
  10708c:	43                   	inc    %ebx                           
  10708d:	83 c2 14             	add    $0x14,%edx                     
  107090:	3b 1d 48 e1 11 00    	cmp    0x11e148,%ebx                  
  107096:	72 c2                	jb     10705a <devFS_mknod+0x7a>      
      else                                                            
          if (strcmp(path, device_name_table[i].device_name) == 0)    
              rtems_set_errno_and_return_minus_one( EEXIST );         
  }                                                                   
                                                                      
  if (slot == -1)                                                     
  107098:	83 fe ff             	cmp    $0xffffffff,%esi               
  10709b:	75 0d                	jne    1070aa <devFS_mknod+0xca>      
      rtems_set_errno_and_return_minus_one( ENOMEM );                 
  10709d:	e8 12 80 00 00       	call   10f0b4 <__errno>               
  1070a2:	c7 00 0c 00 00 00    	movl   $0xc,(%eax)                    
  1070a8:	eb ab                	jmp    107055 <devFS_mknod+0x75>      
                                                                      
  _ISR_Disable(level);                                                
  1070aa:	9c                   	pushf                                 
  1070ab:	fa                   	cli                                   
  1070ac:	5b                   	pop    %ebx                           
  device_name_table[slot].device_name  = (char *)path;                
  1070ad:	6b d6 14             	imul   $0x14,%esi,%edx                
  1070b0:	8d 14 11             	lea    (%ecx,%edx,1),%edx             
  1070b3:	89 3a                	mov    %edi,(%edx)                    
  device_name_table[slot].device_name_length = strlen(path);          
  1070b5:	31 c0                	xor    %eax,%eax                      
  1070b7:	83 c9 ff             	or     $0xffffffff,%ecx               
  1070ba:	f2 ae                	repnz scas %es:(%edi),%al             
  1070bc:	f7 d1                	not    %ecx                           
  1070be:	49                   	dec    %ecx                           
  1070bf:	89 4a 04             	mov    %ecx,0x4(%edx)                 
  device_name_table[slot].major = major;                              
  1070c2:	8b 45 e4             	mov    -0x1c(%ebp),%eax               
  1070c5:	89 42 08             	mov    %eax,0x8(%edx)                 
  device_name_table[slot].minor = minor;                              
  1070c8:	8b 45 e0             	mov    -0x20(%ebp),%eax               
  1070cb:	89 42 0c             	mov    %eax,0xc(%edx)                 
  device_name_table[slot].mode  = mode;                               
  1070ce:	8b 45 0c             	mov    0xc(%ebp),%eax                 
  1070d1:	89 42 10             	mov    %eax,0x10(%edx)                
  _ISR_Enable(level);                                                 
  1070d4:	53                   	push   %ebx                           
  1070d5:	9d                   	popf                                  
                                                                      
  return 0;                                                           
  1070d6:	31 c0                	xor    %eax,%eax                      
}                                                                     
  1070d8:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  1070db:	5b                   	pop    %ebx                           
  1070dc:	5e                   	pop    %esi                           
  1070dd:	5f                   	pop    %edi                           
  1070de:	c9                   	leave                                 
  1070df:	c3                   	ret                                   
                                                                      

001076f8 <drainOutput>: /* * Drain output queue */ static void drainOutput (struct rtems_termios_tty *tty) {
  1076f8:	55                   	push   %ebp                           
  1076f9:	89 e5                	mov    %esp,%ebp                      
  1076fb:	53                   	push   %ebx                           
  1076fc:	83 ec 04             	sub    $0x4,%esp                      
  1076ff:	89 c3                	mov    %eax,%ebx                      
  rtems_interrupt_level level;                                        
  rtems_status_code sc;                                               
                                                                      
  if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) {           
  107701:	83 b8 b4 00 00 00 00 	cmpl   $0x0,0xb4(%eax)                
  107708:	74 46                	je     107750 <drainOutput+0x58>      
    rtems_interrupt_disable (level);                                  
  10770a:	9c                   	pushf                                 
  10770b:	fa                   	cli                                   
  10770c:	58                   	pop    %eax                           
    while (tty->rawOutBuf.Tail != tty->rawOutBuf.Head) {              
  10770d:	eb 2f                	jmp    10773e <drainOutput+0x46>      
      tty->rawOutBufState = rob_wait;                                 
  10770f:	c7 83 94 00 00 00 02 	movl   $0x2,0x94(%ebx)                
  107716:	00 00 00                                                    
      rtems_interrupt_enable (level);                                 
  107719:	50                   	push   %eax                           
  10771a:	9d                   	popf                                  
      sc = rtems_semaphore_obtain(                                    
  10771b:	50                   	push   %eax                           
  10771c:	6a 00                	push   $0x0                           
  10771e:	6a 00                	push   $0x0                           
  107720:	ff b3 8c 00 00 00    	pushl  0x8c(%ebx)                     
  107726:	e8 0d 20 00 00       	call   109738 <rtems_semaphore_obtain>
        tty->rawOutBuf.Semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT);      
      if (sc != RTEMS_SUCCESSFUL)                                     
  10772b:	83 c4 10             	add    $0x10,%esp                     
  10772e:	85 c0                	test   %eax,%eax                      
  107730:	74 09                	je     10773b <drainOutput+0x43>      <== ALWAYS TAKEN
        rtems_fatal_error_occurred (sc);                              
  107732:	83 ec 0c             	sub    $0xc,%esp                      <== NOT EXECUTED
  107735:	50                   	push   %eax                           <== NOT EXECUTED
  107736:	e8 c5 25 00 00       	call   109d00 <rtems_fatal_error_occurred><== NOT EXECUTED
      rtems_interrupt_disable (level);                                
  10773b:	9c                   	pushf                                 
  10773c:	fa                   	cli                                   
  10773d:	58                   	pop    %eax                           
  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) {              
  10773e:	8b 8b 84 00 00 00    	mov    0x84(%ebx),%ecx                
  107744:	8b 93 80 00 00 00    	mov    0x80(%ebx),%edx                
  10774a:	39 d1                	cmp    %edx,%ecx                      
  10774c:	75 c1                	jne    10770f <drainOutput+0x17>      
        tty->rawOutBuf.Semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT);      
      if (sc != RTEMS_SUCCESSFUL)                                     
        rtems_fatal_error_occurred (sc);                              
      rtems_interrupt_disable (level);                                
    }                                                                 
    rtems_interrupt_enable (level);                                   
  10774e:	50                   	push   %eax                           
  10774f:	9d                   	popf                                  
  }                                                                   
}                                                                     
  107750:	8b 5d fc             	mov    -0x4(%ebp),%ebx                
  107753:	c9                   	leave                                 
  107754:	c3                   	ret                                   
                                                                      

001082af <echo>: /* * Echo a typed character */ static void echo (unsigned char c, struct rtems_termios_tty *tty) {
  1082af:	55                   	push   %ebp                           
  1082b0:	89 e5                	mov    %esp,%ebp                      
  1082b2:	53                   	push   %ebx                           
  1082b3:	83 ec 24             	sub    $0x24,%esp                     
  if ((tty->termios.c_lflag & ECHOCTL) &&                             
  1082b6:	f6 42 3d 02          	testb  $0x2,0x3d(%edx)                
  1082ba:	74 3e                	je     1082fa <echo+0x4b>             <== NEVER TAKEN
       iscntrl(c) && (c != '\t') && (c != '\n')) {                    
  1082bc:	0f b6 c8             	movzbl %al,%ecx                       
  1082bf:	8b 1d bc 10 12 00    	mov    0x1210bc,%ebx                  
  1082c5:	f6 44 0b 01 20       	testb  $0x20,0x1(%ebx,%ecx,1)         
  1082ca:	74 2e                	je     1082fa <echo+0x4b>             
  1082cc:	3c 09                	cmp    $0x9,%al                       
  1082ce:	74 2a                	je     1082fa <echo+0x4b>             
  1082d0:	3c 0a                	cmp    $0xa,%al                       
  1082d2:	74 26                	je     1082fa <echo+0x4b>             
    char echobuf[2];                                                  
                                                                      
    echobuf[0] = '^';                                                 
  1082d4:	c6 45 f6 5e          	movb   $0x5e,-0xa(%ebp)               
    echobuf[1] = c ^ 0x40;                                            
  1082d8:	83 f0 40             	xor    $0x40,%eax                     
  1082db:	88 45 f7             	mov    %al,-0x9(%ebp)                 
    rtems_termios_puts (echobuf, 2, tty);                             
  1082de:	50                   	push   %eax                           
  1082df:	52                   	push   %edx                           
  1082e0:	6a 02                	push   $0x2                           
  1082e2:	8d 45 f6             	lea    -0xa(%ebp),%eax                
  1082e5:	50                   	push   %eax                           
  1082e6:	89 55 e4             	mov    %edx,-0x1c(%ebp)               
  1082e9:	e8 84 fd ff ff       	call   108072 <rtems_termios_puts>    
    tty->column += 2;                                                 
  1082ee:	8b 55 e4             	mov    -0x1c(%ebp),%edx               
  1082f1:	83 42 28 02          	addl   $0x2,0x28(%edx)                
 */                                                                   
static void                                                           
echo (unsigned char c, struct rtems_termios_tty *tty)                 
{                                                                     
  if ((tty->termios.c_lflag & ECHOCTL) &&                             
       iscntrl(c) && (c != '\t') && (c != '\n')) {                    
  1082f5:	83 c4 10             	add    $0x10,%esp                     
  1082f8:	eb 08                	jmp    108302 <echo+0x53>             
    echobuf[0] = '^';                                                 
    echobuf[1] = c ^ 0x40;                                            
    rtems_termios_puts (echobuf, 2, tty);                             
    tty->column += 2;                                                 
  } else {                                                            
    oproc (c, tty);                                                   
  1082fa:	0f b6 c0             	movzbl %al,%eax                       
  1082fd:	e8 90 fe ff ff       	call   108192 <oproc>                 
  }                                                                   
}                                                                     
  108302:	8b 5d fc             	mov    -0x4(%ebp),%ebx                
  108305:	c9                   	leave                                 
  108306:	c3                   	ret                                   
                                                                      

0010776e <endgrent>: void endgrent(void) {
  10776e:	55                   	push   %ebp                           
  10776f:	89 e5                	mov    %esp,%ebp                      
  107771:	83 ec 08             	sub    $0x8,%esp                      
  if (group_fp != NULL)                                               
  107774:	a1 9c 53 12 00       	mov    0x12539c,%eax                  
  107779:	85 c0                	test   %eax,%eax                      
  10777b:	74 0c                	je     107789 <endgrent+0x1b>         <== NEVER TAKEN
    fclose(group_fp);                                                 
  10777d:	83 ec 0c             	sub    $0xc,%esp                      
  107780:	50                   	push   %eax                           
  107781:	e8 92 94 00 00       	call   110c18 <fclose>                
  107786:	83 c4 10             	add    $0x10,%esp                     
}                                                                     
  107789:	c9                   	leave                                 
  10778a:	c3                   	ret                                   
                                                                      

00107621 <endpwent>: void endpwent(void) {
  107621:	55                   	push   %ebp                           
  107622:	89 e5                	mov    %esp,%ebp                      
  107624:	83 ec 08             	sub    $0x8,%esp                      
  if (passwd_fp != NULL)                                              
  107627:	a1 78 54 12 00       	mov    0x125478,%eax                  
  10762c:	85 c0                	test   %eax,%eax                      
  10762e:	74 0c                	je     10763c <endpwent+0x1b>         <== NEVER TAKEN
    fclose(passwd_fp);                                                
  107630:	83 ec 0c             	sub    $0xc,%esp                      
  107633:	50                   	push   %eax                           
  107634:	e8 df 95 00 00       	call   110c18 <fclose>                
  107639:	83 c4 10             	add    $0x10,%esp                     
}                                                                     
  10763c:	c9                   	leave                                 
  10763d:	c3                   	ret                                   
                                                                      

00108307 <erase>: * FIXME: Needs support for WERASE and ECHOPRT. * FIXME: Some of the tests should check for IEXTEN, too. */ static void erase (struct rtems_termios_tty *tty, int lineFlag) {
  108307:	55                   	push   %ebp                           
  108308:	89 e5                	mov    %esp,%ebp                      
  10830a:	57                   	push   %edi                           
  10830b:	56                   	push   %esi                           
  10830c:	53                   	push   %ebx                           
  10830d:	83 ec 2c             	sub    $0x2c,%esp                     
  108310:	89 c3                	mov    %eax,%ebx                      
  108312:	89 55 e4             	mov    %edx,-0x1c(%ebp)               
  if (tty->ccount == 0)                                               
  108315:	83 78 20 00          	cmpl   $0x0,0x20(%eax)                
  108319:	0f 84 59 01 00 00    	je     108478 <erase+0x171>           
    return;                                                           
  if (lineFlag) {                                                     
  10831f:	85 d2                	test   %edx,%edx                      
  108321:	0f 84 46 01 00 00    	je     10846d <erase+0x166>           
    if (!(tty->termios.c_lflag & ECHO)) {                             
  108327:	8b 40 3c             	mov    0x3c(%eax),%eax                
  10832a:	a8 08                	test   $0x8,%al                       
  10832c:	75 0c                	jne    10833a <erase+0x33>            <== ALWAYS TAKEN
      tty->ccount = 0;                                                
  10832e:	c7 43 20 00 00 00 00 	movl   $0x0,0x20(%ebx)                <== NOT EXECUTED
      return;                                                         
  108335:	e9 3e 01 00 00       	jmp    108478 <erase+0x171>           <== NOT EXECUTED
    }                                                                 
    if (!(tty->termios.c_lflag & ECHOE)) {                            
  10833a:	a8 10                	test   $0x10,%al                      
  10833c:	0f 85 2b 01 00 00    	jne    10846d <erase+0x166>           <== ALWAYS TAKEN
      tty->ccount = 0;                                                
  108342:	c7 43 20 00 00 00 00 	movl   $0x0,0x20(%ebx)                <== NOT EXECUTED
      echo (tty->termios.c_cc[VKILL], tty);                           
  108349:	0f b6 43 44          	movzbl 0x44(%ebx),%eax                <== NOT EXECUTED
  10834d:	89 da                	mov    %ebx,%edx                      <== NOT EXECUTED
  10834f:	e8 5b ff ff ff       	call   1082af <echo>                  <== NOT EXECUTED
      if (tty->termios.c_lflag & ECHOK)                               
  108354:	f6 43 3c 20          	testb  $0x20,0x3c(%ebx)               <== NOT EXECUTED
  108358:	0f 84 1a 01 00 00    	je     108478 <erase+0x171>           <== NOT EXECUTED
        echo ('\n', tty);                                             
  10835e:	89 da                	mov    %ebx,%edx                      <== NOT EXECUTED
  108360:	b8 0a 00 00 00       	mov    $0xa,%eax                      <== NOT EXECUTED
  108365:	eb 2a                	jmp    108391 <erase+0x8a>            <== NOT EXECUTED
      return;                                                         
    }                                                                 
  }                                                                   
                                                                      
  while (tty->ccount) {                                               
    unsigned char c = tty->cbuf[--tty->ccount];                       
  108367:	8b 7b 1c             	mov    0x1c(%ebx),%edi                
  10836a:	8d 50 ff             	lea    -0x1(%eax),%edx                
  10836d:	89 53 20             	mov    %edx,0x20(%ebx)                
  108370:	8a 4c 07 ff          	mov    -0x1(%edi,%eax,1),%cl          
                                                                      
    if (tty->termios.c_lflag & ECHO) {                                
  108374:	8b 53 3c             	mov    0x3c(%ebx),%edx                
  108377:	f6 c2 08             	test   $0x8,%dl                       
  10837a:	0f 84 e7 00 00 00    	je     108467 <erase+0x160>           <== NEVER TAKEN
      if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) {             
  108380:	83 7d e4 00          	cmpl   $0x0,-0x1c(%ebp)               
  108384:	75 17                	jne    10839d <erase+0x96>            
  108386:	f6 c2 10             	test   $0x10,%dl                      
  108389:	75 12                	jne    10839d <erase+0x96>            <== ALWAYS TAKEN
        echo (tty->termios.c_cc[VERASE], tty);                        
  10838b:	0f b6 43 43          	movzbl 0x43(%ebx),%eax                <== NOT EXECUTED
  10838f:	89 da                	mov    %ebx,%edx                      <== NOT EXECUTED
      }                                                               
    }                                                                 
    if (!lineFlag)                                                    
      break;                                                          
  }                                                                   
}                                                                     
  108391:	8d 65 f4             	lea    -0xc(%ebp),%esp                <== NOT EXECUTED
  108394:	5b                   	pop    %ebx                           <== NOT EXECUTED
  108395:	5e                   	pop    %esi                           <== NOT EXECUTED
  108396:	5f                   	pop    %edi                           <== NOT EXECUTED
  108397:	c9                   	leave                                 <== 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);                        
  108398:	e9 12 ff ff ff       	jmp    1082af <echo>                  <== NOT EXECUTED
      } else if (c == '\t') {                                         
  10839d:	80 f9 09             	cmp    $0x9,%cl                       
  1083a0:	8b 35 bc 10 12 00    	mov    0x1210bc,%esi                  
  1083a6:	89 75 e0             	mov    %esi,-0x20(%ebp)               
  1083a9:	75 60                	jne    10840b <erase+0x104>           
        int col = tty->read_start_column;                             
  1083ab:	8b 73 2c             	mov    0x2c(%ebx),%esi                
        int i = 0;                                                    
                                                                      
        /*                                                            
         * Find the character before the tab                          
         */                                                           
        while (i != tty->ccount) {                                    
  1083ae:	b9 01 00 00 00       	mov    $0x1,%ecx                      
          c = tty->cbuf[i++];                                         
          if (c == '\t') {                                            
            col = (col | 7) + 1;                                      
          } else if (iscntrl (c)) {                                   
            if (tty->termios.c_lflag & ECHOCTL)                       
  1083b3:	81 e2 00 02 00 00    	and    $0x200,%edx                    
  1083b9:	89 55 dc             	mov    %edx,-0x24(%ebp)               
  1083bc:	89 45 d4             	mov    %eax,-0x2c(%ebp)               
        int i = 0;                                                    
                                                                      
        /*                                                            
         * Find the character before the tab                          
         */                                                           
        while (i != tty->ccount) {                                    
  1083bf:	eb 28                	jmp    1083e9 <erase+0xe2>            
          c = tty->cbuf[i++];                                         
  1083c1:	8a 54 0f ff          	mov    -0x1(%edi,%ecx,1),%dl          
          if (c == '\t') {                                            
  1083c5:	80 fa 09             	cmp    $0x9,%dl                       
  1083c8:	75 05                	jne    1083cf <erase+0xc8>            
            col = (col | 7) + 1;                                      
  1083ca:	83 ce 07             	or     $0x7,%esi                      
  1083cd:	eb 18                	jmp    1083e7 <erase+0xe0>            
          } else if (iscntrl (c)) {                                   
  1083cf:	0f b6 d2             	movzbl %dl,%edx                       
  1083d2:	8b 45 e0             	mov    -0x20(%ebp),%eax               
  1083d5:	f6 44 10 01 20       	testb  $0x20,0x1(%eax,%edx,1)         
  1083da:	74 0b                	je     1083e7 <erase+0xe0>            <== ALWAYS TAKEN
            if (tty->termios.c_lflag & ECHOCTL)                       
  1083dc:	83 7d dc 00          	cmpl   $0x0,-0x24(%ebp)               <== NOT EXECUTED
  1083e0:	74 06                	je     1083e8 <erase+0xe1>            <== NOT EXECUTED
              col += 2;                                               
  1083e2:	83 c6 02             	add    $0x2,%esi                      <== NOT EXECUTED
  1083e5:	eb 01                	jmp    1083e8 <erase+0xe1>            <== NOT EXECUTED
          } else {                                                    
            col++;                                                    
  1083e7:	46                   	inc    %esi                           
  1083e8:	41                   	inc    %ecx                           
        int i = 0;                                                    
                                                                      
        /*                                                            
         * Find the character before the tab                          
         */                                                           
        while (i != tty->ccount) {                                    
  1083e9:	3b 4d d4             	cmp    -0x2c(%ebp),%ecx               
  1083ec:	75 d3                	jne    1083c1 <erase+0xba>            
  1083ee:	eb 14                	jmp    108404 <erase+0xfd>            
                                                                      
        /*                                                            
         * Back up over the tab                                       
         */                                                           
        while (tty->column > col) {                                   
          rtems_termios_puts ("\b", 1, tty);                          
  1083f0:	57                   	push   %edi                           
  1083f1:	53                   	push   %ebx                           
  1083f2:	6a 01                	push   $0x1                           
  1083f4:	68 5c db 11 00       	push   $0x11db5c                      
  1083f9:	e8 74 fc ff ff       	call   108072 <rtems_termios_puts>    
          tty->column--;                                              
  1083fe:	ff 4b 28             	decl   0x28(%ebx)                     
  108401:	83 c4 10             	add    $0x10,%esp                     
        }                                                             
                                                                      
        /*                                                            
         * Back up over the tab                                       
         */                                                           
        while (tty->column > col) {                                   
  108404:	39 73 28             	cmp    %esi,0x28(%ebx)                
  108407:	7f e7                	jg     1083f0 <erase+0xe9>            
  108409:	eb 5c                	jmp    108467 <erase+0x160>           
          rtems_termios_puts ("\b", 1, tty);                          
          tty->column--;                                              
        }                                                             
      }                                                               
      else {                                                          
        if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) {        
  10840b:	0f b6 f1             	movzbl %cl,%esi                       
  10840e:	8b 45 e0             	mov    -0x20(%ebp),%eax               
  108411:	f6 44 30 01 20       	testb  $0x20,0x1(%eax,%esi,1)         
  108416:	74 21                	je     108439 <erase+0x132>           <== ALWAYS TAKEN
  108418:	80 e6 02             	and    $0x2,%dh                       <== NOT EXECUTED
  10841b:	74 1c                	je     108439 <erase+0x132>           <== NOT EXECUTED
          rtems_termios_puts ("\b \b", 3, tty);                       
  10841d:	51                   	push   %ecx                           <== NOT EXECUTED
  10841e:	53                   	push   %ebx                           <== NOT EXECUTED
  10841f:	6a 03                	push   $0x3                           <== NOT EXECUTED
  108421:	68 5a db 11 00       	push   $0x11db5a                      <== NOT EXECUTED
  108426:	e8 47 fc ff ff       	call   108072 <rtems_termios_puts>    <== NOT EXECUTED
          if (tty->column)                                            
  10842b:	8b 43 28             	mov    0x28(%ebx),%eax                <== NOT EXECUTED
  10842e:	83 c4 10             	add    $0x10,%esp                     <== NOT EXECUTED
  108431:	85 c0                	test   %eax,%eax                      <== NOT EXECUTED
  108433:	74 04                	je     108439 <erase+0x132>           <== NOT EXECUTED
            tty->column--;                                            
  108435:	48                   	dec    %eax                           <== NOT EXECUTED
  108436:	89 43 28             	mov    %eax,0x28(%ebx)                <== NOT EXECUTED
        }                                                             
        if (!iscntrl (c) || (tty->termios.c_lflag & ECHOCTL)) {       
  108439:	a1 bc 10 12 00       	mov    0x1210bc,%eax                  
  10843e:	f6 44 30 01 20       	testb  $0x20,0x1(%eax,%esi,1)         
  108443:	74 06                	je     10844b <erase+0x144>           <== ALWAYS TAKEN
  108445:	f6 43 3d 02          	testb  $0x2,0x3d(%ebx)                <== NOT EXECUTED
  108449:	74 1c                	je     108467 <erase+0x160>           <== NOT EXECUTED
          rtems_termios_puts ("\b \b", 3, tty);                       
  10844b:	52                   	push   %edx                           
  10844c:	53                   	push   %ebx                           
  10844d:	6a 03                	push   $0x3                           
  10844f:	68 5a db 11 00       	push   $0x11db5a                      
  108454:	e8 19 fc ff ff       	call   108072 <rtems_termios_puts>    
          if (tty->column)                                            
  108459:	8b 43 28             	mov    0x28(%ebx),%eax                
  10845c:	83 c4 10             	add    $0x10,%esp                     
  10845f:	85 c0                	test   %eax,%eax                      
  108461:	74 04                	je     108467 <erase+0x160>           <== NEVER TAKEN
            tty->column--;                                            
  108463:	48                   	dec    %eax                           
  108464:	89 43 28             	mov    %eax,0x28(%ebx)                
        }                                                             
      }                                                               
    }                                                                 
    if (!lineFlag)                                                    
  108467:	83 7d e4 00          	cmpl   $0x0,-0x1c(%ebp)               
  10846b:	74 0b                	je     108478 <erase+0x171>           
        echo ('\n', tty);                                             
      return;                                                         
    }                                                                 
  }                                                                   
                                                                      
  while (tty->ccount) {                                               
  10846d:	8b 43 20             	mov    0x20(%ebx),%eax                
  108470:	85 c0                	test   %eax,%eax                      
  108472:	0f 85 ef fe ff ff    	jne    108367 <erase+0x60>            
      }                                                               
    }                                                                 
    if (!lineFlag)                                                    
      break;                                                          
  }                                                                   
}                                                                     
  108478:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  10847b:	5b                   	pop    %ebx                           
  10847c:	5e                   	pop    %esi                           
  10847d:	5f                   	pop    %edi                           
  10847e:	c9                   	leave                                 
  10847f:	c3                   	ret                                   
                                                                      

00107228 <fcntl>: int fcntl( int fd, int cmd, ... ) {
  107228:	55                   	push   %ebp                           
  107229:	89 e5                	mov    %esp,%ebp                      
  10722b:	57                   	push   %edi                           
  10722c:	56                   	push   %esi                           
  10722d:	53                   	push   %ebx                           
  10722e:	83 ec 0c             	sub    $0xc,%esp                      
  107231:	8b 5d 08             	mov    0x8(%ebp),%ebx                 
  int            ret;                                                 
  va_list        ap;                                                  
  va_start( ap, cmd );                                                
  107234:	8d 75 10             	lea    0x10(%ebp),%esi                
  int            fd2;                                                 
  int            flags;                                               
  int            mask;                                                
  int            ret = 0;                                             
                                                                      
  rtems_libio_check_fd( fd );                                         
  107237:	8b 0d 24 17 12 00    	mov    0x121724,%ecx                  
  10723d:	39 cb                	cmp    %ecx,%ebx                      
  10723f:	73 14                	jae    107255 <fcntl+0x2d>            
  iop = rtems_libio_iop( fd );                                        
  107241:	8b 15 e0 56 12 00    	mov    0x1256e0,%edx                  
  107247:	6b db 38             	imul   $0x38,%ebx,%ebx                
  10724a:	8d 1c 1a             	lea    (%edx,%ebx,1),%ebx             
  rtems_libio_check_is_open(iop);                                     
  10724d:	8b 43 14             	mov    0x14(%ebx),%eax                
  107250:	f6 c4 01             	test   $0x1,%ah                       
  107253:	75 10                	jne    107265 <fcntl+0x3d>            
  107255:	e8 1e 99 00 00       	call   110b78 <__errno>               
  10725a:	c7 00 09 00 00 00    	movl   $0x9,(%eax)                    
  107260:	e9 e6 00 00 00       	jmp    10734b <fcntl+0x123>           
                                                                      
  /*                                                                  
   *  This switch should contain all the cases from POSIX.            
   */                                                                 
                                                                      
  switch ( cmd ) {                                                    
  107265:	83 7d 0c 09          	cmpl   $0x9,0xc(%ebp)                 
  107269:	0f 87 af 00 00 00    	ja     10731e <fcntl+0xf6>            
  10726f:	8b 7d 0c             	mov    0xc(%ebp),%edi                 
  107272:	ff 24 bd 28 f3 11 00 	jmp    *0x11f328(,%edi,4)             
    case F_DUPFD:        /* dup */                                    
      fd2 = va_arg( ap, int );                                        
  107279:	8b 36                	mov    (%esi),%esi                    
      if ( fd2 )                                                      
  10727b:	85 f6                	test   %esi,%esi                      
  10727d:	74 0e                	je     10728d <fcntl+0x65>            
        diop = rtems_libio_iop( fd2 );                                
  10727f:	31 c0                	xor    %eax,%eax                      
  107281:	39 ce                	cmp    %ecx,%esi                      
  107283:	73 15                	jae    10729a <fcntl+0x72>            <== NEVER TAKEN
  107285:	6b c6 38             	imul   $0x38,%esi,%eax                
  107288:	8d 04 02             	lea    (%edx,%eax,1),%eax             
  10728b:	eb 0d                	jmp    10729a <fcntl+0x72>            
      else {                                                          
        /* allocate a file control block */                           
        diop = rtems_libio_allocate();                                
  10728d:	e8 d1 04 00 00       	call   107763 <rtems_libio_allocate>  
        if ( diop == 0 ) {                                            
  107292:	85 c0                	test   %eax,%eax                      
  107294:	0f 84 b1 00 00 00    	je     10734b <fcntl+0x123>           <== NEVER TAKEN
          ret = -1;                                                   
          break;                                                      
        }                                                             
      }                                                               
                                                                      
      diop->flags      = iop->flags;                                  
  10729a:	8b 53 14             	mov    0x14(%ebx),%edx                
  10729d:	89 50 14             	mov    %edx,0x14(%eax)                
      diop->pathinfo   = iop->pathinfo;                               
  1072a0:	8d 78 18             	lea    0x18(%eax),%edi                
  1072a3:	8d 73 18             	lea    0x18(%ebx),%esi                
  1072a6:	b9 05 00 00 00       	mov    $0x5,%ecx                      
  1072ab:	f3 a5                	rep movsl %ds:(%esi),%es:(%edi)       
      ret = (int) (diop - rtems_libio_iops);                          
  1072ad:	2b 05 e0 56 12 00    	sub    0x1256e0,%eax                  
  1072b3:	c1 f8 03             	sar    $0x3,%eax                      
  1072b6:	69 f0 b7 6d db b6    	imul   $0xb6db6db7,%eax,%esi          
  1072bc:	eb 6d                	jmp    10732b <fcntl+0x103>           
      break;                                                          
                                                                      
    case F_GETFD:        /* get f_flags */                            
      ret = ((iop->flags & LIBIO_FLAGS_CLOSE_ON_EXEC) != 0);          
  1072be:	f6 c4 08             	test   $0x8,%ah                       
  1072c1:	0f 95 c0             	setne  %al                            
  1072c4:	0f b6 c0             	movzbl %al,%eax                       
  1072c7:	89 c6                	mov    %eax,%esi                      
  1072c9:	eb 64                	jmp    10732f <fcntl+0x107>           
       *  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 ) )                                        
  1072cb:	83 3e 00             	cmpl   $0x0,(%esi)                    
  1072ce:	74 05                	je     1072d5 <fcntl+0xad>            
        iop->flags |= LIBIO_FLAGS_CLOSE_ON_EXEC;                      
  1072d0:	80 cc 08             	or     $0x8,%ah                       
  1072d3:	eb 03                	jmp    1072d8 <fcntl+0xb0>            
      else                                                            
        iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC;                     
  1072d5:	80 e4 f7             	and    $0xf7,%ah                      
  1072d8:	89 43 14             	mov    %eax,0x14(%ebx)                
  1072db:	eb 30                	jmp    10730d <fcntl+0xe5>            
      break;                                                          
                                                                      
    case F_GETFL:        /* more flags (cloexec) */                   
      ret = rtems_libio_to_fcntl_flags( iop->flags );                 
  1072dd:	83 ec 0c             	sub    $0xc,%esp                      
  1072e0:	50                   	push   %eax                           
  1072e1:	e8 3f 04 00 00       	call   107725 <rtems_libio_to_fcntl_flags>
  1072e6:	89 c6                	mov    %eax,%esi                      
  1072e8:	83 c4 10             	add    $0x10,%esp                     
  1072eb:	eb 3e                	jmp    10732b <fcntl+0x103>           
      break;                                                          
                                                                      
    case F_SETFL:                                                     
      flags = rtems_libio_fcntl_flags( va_arg( ap, int ) );           
  1072ed:	83 ec 0c             	sub    $0xc,%esp                      
  1072f0:	ff 36                	pushl  (%esi)                         
  1072f2:	e8 f9 03 00 00       	call   1076f0 <rtems_libio_fcntl_flags>
                                                                      
      /*                                                              
       *  XXX If we are turning on append, should we seek to the end? 
       */                                                             
                                                                      
      iop->flags = (iop->flags & ~mask) | (flags & mask);             
  1072f7:	25 01 02 00 00       	and    $0x201,%eax                    
  1072fc:	8b 53 14             	mov    0x14(%ebx),%edx                
  1072ff:	81 e2 fe fd ff ff    	and    $0xfffffdfe,%edx               
  107305:	09 d0                	or     %edx,%eax                      
  107307:	89 43 14             	mov    %eax,0x14(%ebx)                
  10730a:	83 c4 10             	add    $0x10,%esp                     
  rtems_libio_t *iop;                                                 
  rtems_libio_t *diop;                                                
  int            fd2;                                                 
  int            flags;                                               
  int            mask;                                                
  int            ret = 0;                                             
  10730d:	31 f6                	xor    %esi,%esi                      
  10730f:	eb 1e                	jmp    10732f <fcntl+0x107>           
      errno = ENOTSUP;                                                
      ret = -1;                                                       
      break;                                                          
                                                                      
    case F_GETOWN:       /*  for sockets. */                          
      errno = ENOTSUP;                                                
  107311:	e8 62 98 00 00       	call   110b78 <__errno>               
  107316:	c7 00 86 00 00 00    	movl   $0x86,(%eax)                   
  10731c:	eb 2d                	jmp    10734b <fcntl+0x123>           
      ret = -1;                                                       
      break;                                                          
                                                                      
    default:                                                          
      errno = EINVAL;                                                 
  10731e:	e8 55 98 00 00       	call   110b78 <__errno>               
  107323:	c7 00 16 00 00 00    	movl   $0x16,(%eax)                   
  107329:	eb 20                	jmp    10734b <fcntl+0x123>           
  /*                                                                  
   *  If we got this far successfully, then we give the optional      
   *  filesystem specific handler a chance to process this.           
   */                                                                 
                                                                      
  if (ret >= 0) {                                                     
  10732b:	85 f6                	test   %esi,%esi                      
  10732d:	78 1f                	js     10734e <fcntl+0x126>           <== NEVER TAKEN
    int err = (*iop->pathinfo.handlers->fcntl_h)( cmd, iop );         
  10732f:	50                   	push   %eax                           
  107330:	50                   	push   %eax                           
  107331:	8b 43 20             	mov    0x20(%ebx),%eax                
  107334:	53                   	push   %ebx                           
  107335:	ff 75 0c             	pushl  0xc(%ebp)                      
  107338:	ff 50 30             	call   *0x30(%eax)                    
  10733b:	89 c3                	mov    %eax,%ebx                      
    if (err) {                                                        
  10733d:	83 c4 10             	add    $0x10,%esp                     
  107340:	85 c0                	test   %eax,%eax                      
  107342:	74 0a                	je     10734e <fcntl+0x126>           <== ALWAYS TAKEN
      errno = err;                                                    
  107344:	e8 2f 98 00 00       	call   110b78 <__errno>               <== NOT EXECUTED
  107349:	89 18                	mov    %ebx,(%eax)                    <== NOT EXECUTED
      ret = -1;                                                       
  10734b:	83 ce ff             	or     $0xffffffff,%esi               
  va_list        ap;                                                  
  va_start( ap, cmd );                                                
  ret = vfcntl(fd,cmd,ap);                                            
  va_end(ap);                                                         
  return ret;                                                         
}                                                                     
  10734e:	89 f0                	mov    %esi,%eax                      
  107350:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  107353:	5b                   	pop    %ebx                           
  107354:	5e                   	pop    %esi                           
  107355:	5f                   	pop    %edi                           
  107356:	c9                   	leave                                 
  107357:	c3                   	ret                                   
                                                                      

0010ef4f <fifo_open>: */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) {
  10ef4f:	55                   	push   %ebp                           
  10ef50:	89 e5                	mov    %esp,%ebp                      
  10ef52:	57                   	push   %edi                           
  10ef53:	56                   	push   %esi                           
  10ef54:	53                   	push   %ebx                           
  10ef55:	83 ec 2c             	sub    $0x2c,%esp                     
                                                                      
static rtems_status_code pipe_lock(void)                              
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  if (pipe_semaphore == RTEMS_ID_NONE) {                              
  10ef58:	83 3d 2c 4f 12 00 00 	cmpl   $0x0,0x124f2c                  
  10ef5f:	75 50                	jne    10efb1 <fifo_open+0x62>        
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 );
  10ef61:	51                   	push   %ecx                           
  10ef62:	6a 00                	push   $0x0                           
  10ef64:	6a 00                	push   $0x0                           
  10ef66:	ff 35 30 51 12 00    	pushl  0x125130                       
  10ef6c:	e8 7b c1 ff ff       	call   10b0ec <rtems_semaphore_obtain>
    rtems_libio_lock();                                               
                                                                      
    if (pipe_semaphore == RTEMS_ID_NONE) {                            
  10ef71:	83 c4 10             	add    $0x10,%esp                     
  free(pipe);                                                         
}                                                                     
                                                                      
static rtems_status_code pipe_lock(void)                              
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  10ef74:	31 db                	xor    %ebx,%ebx                      
                                                                      
  if (pipe_semaphore == RTEMS_ID_NONE) {                              
    rtems_libio_lock();                                               
                                                                      
    if (pipe_semaphore == RTEMS_ID_NONE) {                            
  10ef76:	83 3d 2c 4f 12 00 00 	cmpl   $0x0,0x124f2c                  
  10ef7d:	75 1d                	jne    10ef9c <fifo_open+0x4d>        <== NEVER TAKEN
      sc = rtems_semaphore_create(                                    
  10ef7f:	83 ec 0c             	sub    $0xc,%esp                      
  10ef82:	68 2c 4f 12 00       	push   $0x124f2c                      
  10ef87:	6a 00                	push   $0x0                           
  10ef89:	6a 54                	push   $0x54                          
  10ef8b:	6a 01                	push   $0x1                           
  10ef8d:	68 45 50 49 50       	push   $0x50495045                    
  10ef92:	e8 2d bf ff ff       	call   10aec4 <rtems_semaphore_create>
  10ef97:	89 c3                	mov    %eax,%ebx                      
  10ef99:	83 c4 20             	add    $0x20,%esp                     
}                                                                     
                                                                      
static inline void rtems_libio_unlock( void )                         
{                                                                     
  rtems_semaphore_release( rtems_libio_semaphore );                   
  10ef9c:	83 ec 0c             	sub    $0xc,%esp                      
  10ef9f:	ff 35 30 51 12 00    	pushl  0x125130                       
  10efa5:	e8 2e c2 ff ff       	call   10b1d8 <rtems_semaphore_release>
    }                                                                 
                                                                      
    rtems_libio_unlock();                                             
  }                                                                   
                                                                      
  if (sc == RTEMS_SUCCESSFUL) {                                       
  10efaa:	83 c4 10             	add    $0x10,%esp                     
  10efad:	85 db                	test   %ebx,%ebx                      
  10efaf:	75 19                	jne    10efca <fifo_open+0x7b>        
    sc = rtems_semaphore_obtain(pipe_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
  10efb1:	52                   	push   %edx                           
  10efb2:	6a 00                	push   $0x0                           
  10efb4:	6a 00                	push   $0x0                           
  10efb6:	ff 35 2c 4f 12 00    	pushl  0x124f2c                       
  10efbc:	e8 2b c1 ff ff       	call   10b0ec <rtems_semaphore_obtain>
  }                                                                   
                                                                      
  if (sc == RTEMS_SUCCESSFUL) {                                       
  10efc1:	83 c4 10             	add    $0x10,%esp                     
    return 0;                                                         
  10efc4:	31 f6                	xor    %esi,%esi                      
                                                                      
  if (sc == RTEMS_SUCCESSFUL) {                                       
    sc = rtems_semaphore_obtain(pipe_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
  }                                                                   
                                                                      
  if (sc == RTEMS_SUCCESSFUL) {                                       
  10efc6:	85 c0                	test   %eax,%eax                      
  10efc8:	74 05                	je     10efcf <fifo_open+0x80>        <== ALWAYS TAKEN
    return 0;                                                         
  } else {                                                            
    return -ENOMEM;                                                   
  10efca:	be f4 ff ff ff       	mov    $0xfffffff4,%esi               
{                                                                     
  pipe_control_t *pipe;                                               
  int err = 0;                                                        
                                                                      
  err = pipe_lock();                                                  
  if (err)                                                            
  10efcf:	85 f6                	test   %esi,%esi                      
  10efd1:	0f 85 f5 02 00 00    	jne    10f2cc <fifo_open+0x37d>       <== NEVER TAKEN
    return err;                                                       
                                                                      
  pipe = *pipep;                                                      
  10efd7:	8b 45 08             	mov    0x8(%ebp),%eax                 
  10efda:	8b 18                	mov    (%eax),%ebx                    
  if (pipe == NULL) {                                                 
  10efdc:	85 db                	test   %ebx,%ebx                      
  10efde:	0f 85 14 01 00 00    	jne    10f0f8 <fifo_open+0x1a9>       
{                                                                     
  static char c = 'a';                                                
  pipe_control_t *pipe;                                               
  int err = -ENOMEM;                                                  
                                                                      
  pipe = malloc(sizeof(pipe_control_t));                              
  10efe4:	83 ec 0c             	sub    $0xc,%esp                      
  10efe7:	6a 34                	push   $0x34                          
  10efe9:	e8 22 95 ff ff       	call   108510 <malloc>                
  10efee:	89 c3                	mov    %eax,%ebx                      
  10eff0:	89 45 d4             	mov    %eax,-0x2c(%ebp)               
  if (pipe == NULL)                                                   
  10eff3:	83 c4 10             	add    $0x10,%esp                     
  10eff6:	85 c0                	test   %eax,%eax                      
  10eff8:	0f 84 f3 00 00 00    	je     10f0f1 <fifo_open+0x1a2>       
    return err;                                                       
  memset(pipe, 0, sizeof(pipe_control_t));                            
  10effe:	b9 0d 00 00 00       	mov    $0xd,%ecx                      
  10f003:	89 c7                	mov    %eax,%edi                      
  10f005:	89 f0                	mov    %esi,%eax                      
  10f007:	f3 ab                	rep stos %eax,%es:(%edi)              
                                                                      
  pipe->Size = PIPE_BUF;                                              
  10f009:	c7 43 04 00 02 00 00 	movl   $0x200,0x4(%ebx)               
  pipe->Buffer = malloc(pipe->Size);                                  
  10f010:	83 ec 0c             	sub    $0xc,%esp                      
  10f013:	68 00 02 00 00       	push   $0x200                         
  10f018:	e8 f3 94 ff ff       	call   108510 <malloc>                
  10f01d:	89 03                	mov    %eax,(%ebx)                    
  if (! pipe->Buffer)                                                 
  10f01f:	83 c4 10             	add    $0x10,%esp                     
  10f022:	85 c0                	test   %eax,%eax                      
  10f024:	0f 84 b9 00 00 00    	je     10f0e3 <fifo_open+0x194>       <== NEVER TAKEN
    goto err_buf;                                                     
                                                                      
  err = -ENOMEM;                                                      
                                                                      
  if (rtems_barrier_create(                                           
  10f02a:	8d 43 2c             	lea    0x2c(%ebx),%eax                
  10f02d:	50                   	push   %eax                           
  10f02e:	6a 00                	push   $0x0                           
  10f030:	6a 00                	push   $0x0                           
        rtems_build_name ('P', 'I', 'r', c),                          
  10f032:	0f be 05 50 30 12 00 	movsbl 0x123050,%eax                  
  if (! pipe->Buffer)                                                 
    goto err_buf;                                                     
                                                                      
  err = -ENOMEM;                                                      
                                                                      
  if (rtems_barrier_create(                                           
  10f039:	0d 00 72 49 50       	or     $0x50497200,%eax               
  10f03e:	50                   	push   %eax                           
  10f03f:	e8 c4 0e 00 00       	call   10ff08 <rtems_barrier_create>  
  10f044:	83 c4 10             	add    $0x10,%esp                     
  10f047:	85 c0                	test   %eax,%eax                      
  10f049:	0f 85 84 00 00 00    	jne    10f0d3 <fifo_open+0x184>       
        rtems_build_name ('P', 'I', 'r', c),                          
        RTEMS_BARRIER_MANUAL_RELEASE, 0,                              
        &pipe->readBarrier) != RTEMS_SUCCESSFUL)                      
    goto err_rbar;                                                    
  if (rtems_barrier_create(                                           
  10f04f:	8d 43 30             	lea    0x30(%ebx),%eax                
  10f052:	50                   	push   %eax                           
  10f053:	6a 00                	push   $0x0                           
  10f055:	6a 00                	push   $0x0                           
        rtems_build_name ('P', 'I', 'w', c),                          
  10f057:	0f be 05 50 30 12 00 	movsbl 0x123050,%eax                  
  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(                                           
  10f05e:	0d 00 77 49 50       	or     $0x50497700,%eax               
  10f063:	50                   	push   %eax                           
  10f064:	e8 9f 0e 00 00       	call   10ff08 <rtems_barrier_create>  
  10f069:	83 c4 10             	add    $0x10,%esp                     
  10f06c:	85 c0                	test   %eax,%eax                      
  10f06e:	75 52                	jne    10f0c2 <fifo_open+0x173>       
        rtems_build_name ('P', 'I', 'w', c),                          
        RTEMS_BARRIER_MANUAL_RELEASE, 0,                              
        &pipe->writeBarrier) != RTEMS_SUCCESSFUL)                     
    goto err_wbar;                                                    
  if (rtems_semaphore_create(                                         
  10f070:	83 ec 0c             	sub    $0xc,%esp                      
  10f073:	8d 43 28             	lea    0x28(%ebx),%eax                
  10f076:	50                   	push   %eax                           
  10f077:	6a 00                	push   $0x0                           
  10f079:	6a 10                	push   $0x10                          
  10f07b:	6a 01                	push   $0x1                           
        rtems_build_name ('P', 'I', 's', c), 1,                       
  10f07d:	0f be 05 50 30 12 00 	movsbl 0x123050,%eax                  
  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(                                         
  10f084:	0d 00 73 49 50       	or     $0x50497300,%eax               
  10f089:	50                   	push   %eax                           
  10f08a:	e8 35 be ff ff       	call   10aec4 <rtems_semaphore_create>
  10f08f:	83 c4 20             	add    $0x20,%esp                     
  10f092:	85 c0                	test   %eax,%eax                      
  10f094:	75 1b                	jne    10f0b1 <fifo_open+0x162>       
#ifdef RTEMS_POSIX_API                                                
  pipe_interruptible(pipe);                                           
#endif                                                                
                                                                      
  *pipep = pipe;                                                      
  if (c ++ == 'z')                                                    
  10f096:	a0 50 30 12 00       	mov    0x123050,%al                   
  10f09b:	8d 50 01             	lea    0x1(%eax),%edx                 
  10f09e:	88 15 50 30 12 00    	mov    %dl,0x123050                   
  10f0a4:	3c 7a                	cmp    $0x7a,%al                      
  10f0a6:	75 50                	jne    10f0f8 <fifo_open+0x1a9>       
    c = 'a';                                                          
  10f0a8:	c6 05 50 30 12 00 61 	movb   $0x61,0x123050                 
  10f0af:	eb 47                	jmp    10f0f8 <fifo_open+0x1a9>       
  return 0;                                                           
                                                                      
err_sem:                                                              
  rtems_barrier_delete(pipe->writeBarrier);                           
  10f0b1:	83 ec 0c             	sub    $0xc,%esp                      
  10f0b4:	8b 55 d4             	mov    -0x2c(%ebp),%edx               
  10f0b7:	ff 72 30             	pushl  0x30(%edx)                     
  10f0ba:	e8 01 0f 00 00       	call   10ffc0 <rtems_barrier_delete>  
  10f0bf:	83 c4 10             	add    $0x10,%esp                     
err_wbar:                                                             
  rtems_barrier_delete(pipe->readBarrier);                            
  10f0c2:	83 ec 0c             	sub    $0xc,%esp                      
  10f0c5:	8b 45 d4             	mov    -0x2c(%ebp),%eax               
  10f0c8:	ff 70 2c             	pushl  0x2c(%eax)                     
  10f0cb:	e8 f0 0e 00 00       	call   10ffc0 <rtems_barrier_delete>  
  10f0d0:	83 c4 10             	add    $0x10,%esp                     
err_rbar:                                                             
  free(pipe->Buffer);                                                 
  10f0d3:	83 ec 0c             	sub    $0xc,%esp                      
  10f0d6:	8b 55 d4             	mov    -0x2c(%ebp),%edx               
  10f0d9:	ff 32                	pushl  (%edx)                         
  10f0db:	e8 2c 8e ff ff       	call   107f0c <free>                  
  10f0e0:	83 c4 10             	add    $0x10,%esp                     
err_buf:                                                              
  free(pipe);                                                         
  10f0e3:	83 ec 0c             	sub    $0xc,%esp                      
  10f0e6:	ff 75 d4             	pushl  -0x2c(%ebp)                    
  10f0e9:	e8 1e 8e ff ff       	call   107f0c <free>                  
  10f0ee:	83 c4 10             	add    $0x10,%esp                     
    if (err)                                                          
      goto out;                                                       
  }                                                                   
                                                                      
  if (! PIPE_LOCK(pipe))                                              
    err = -EINTR;                                                     
  10f0f1:	be f4 ff ff ff       	mov    $0xfffffff4,%esi               
  10f0f6:	eb 33                	jmp    10f12b <fifo_open+0x1dc>       
    err = pipe_alloc(&pipe);                                          
    if (err)                                                          
      goto out;                                                       
  }                                                                   
                                                                      
  if (! PIPE_LOCK(pipe))                                              
  10f0f8:	50                   	push   %eax                           
  10f0f9:	6a 00                	push   $0x0                           
  10f0fb:	6a 00                	push   $0x0                           
  10f0fd:	ff 73 28             	pushl  0x28(%ebx)                     
  10f100:	e8 e7 bf ff ff       	call   10b0ec <rtems_semaphore_obtain>
  10f105:	83 c4 10             	add    $0x10,%esp                     
  10f108:	85 c0                	test   %eax,%eax                      
  10f10a:	74 05                	je     10f111 <fifo_open+0x1c2>       <== ALWAYS TAKEN
    err = -EINTR;                                                     
  10f10c:	be fc ff ff ff       	mov    $0xfffffffc,%esi               <== NOT EXECUTED
                                                                      
  if (*pipep == NULL) {                                               
  10f111:	8b 45 08             	mov    0x8(%ebp),%eax                 
  10f114:	83 38 00             	cmpl   $0x0,(%eax)                    
  10f117:	75 12                	jne    10f12b <fifo_open+0x1dc>       
    if (err)                                                          
  10f119:	85 f6                	test   %esi,%esi                      
  10f11b:	74 09                	je     10f126 <fifo_open+0x1d7>       <== ALWAYS TAKEN
      pipe_free(pipe);                                                
  10f11d:	89 d8                	mov    %ebx,%eax                      <== NOT EXECUTED
  10f11f:	e8 5e fd ff ff       	call   10ee82 <pipe_free>             <== NOT EXECUTED
  10f124:	eb 05                	jmp    10f12b <fifo_open+0x1dc>       <== NOT EXECUTED
    else                                                              
      *pipep = pipe;                                                  
  10f126:	8b 55 08             	mov    0x8(%ebp),%edx                 
  10f129:	89 1a                	mov    %ebx,(%edx)                    
  }                                                                   
                                                                      
out:                                                                  
  pipe_unlock();                                                      
  10f12b:	e8 3c fd ff ff       	call   10ee6c <pipe_unlock>           
  pipe_control_t *pipe;                                               
  unsigned int prevCounter;                                           
  int err;                                                            
                                                                      
  err = pipe_new(pipep);                                              
  if (err)                                                            
  10f130:	85 f6                	test   %esi,%esi                      
  10f132:	0f 85 94 01 00 00    	jne    10f2cc <fifo_open+0x37d>       <== NEVER TAKEN
    return err;                                                       
  pipe = *pipep;                                                      
  10f138:	8b 45 08             	mov    0x8(%ebp),%eax                 
  10f13b:	8b 18                	mov    (%eax),%ebx                    
                                                                      
  switch (LIBIO_ACCMODE(iop)) {                                       
  10f13d:	8b 55 0c             	mov    0xc(%ebp),%edx                 
  10f140:	8b 42 14             	mov    0x14(%edx),%eax                
  10f143:	83 e0 06             	and    $0x6,%eax                      
  10f146:	83 f8 04             	cmp    $0x4,%eax                      
  10f149:	0f 84 91 00 00 00    	je     10f1e0 <fifo_open+0x291>       
  10f14f:	83 f8 06             	cmp    $0x6,%eax                      
  10f152:	0f 84 10 01 00 00    	je     10f268 <fifo_open+0x319>       <== NEVER TAKEN
  10f158:	83 f8 02             	cmp    $0x2,%eax                      
  10f15b:	0f 85 49 01 00 00    	jne    10f2aa <fifo_open+0x35b>       <== NEVER TAKEN
    case LIBIO_FLAGS_READ:                                            
      pipe->readerCounter ++;                                         
  10f161:	ff 43 20             	incl   0x20(%ebx)                     
      if (pipe->Readers ++ == 0)                                      
  10f164:	8b 43 10             	mov    0x10(%ebx),%eax                
  10f167:	8d 50 01             	lea    0x1(%eax),%edx                 
  10f16a:	89 53 10             	mov    %edx,0x10(%ebx)                
  10f16d:	85 c0                	test   %eax,%eax                      
  10f16f:	75 11                	jne    10f182 <fifo_open+0x233>       <== NEVER TAKEN
        PIPE_WAKEUPWRITERS(pipe);                                     
  10f171:	57                   	push   %edi                           
  10f172:	57                   	push   %edi                           
  10f173:	8d 45 e4             	lea    -0x1c(%ebp),%eax               
  10f176:	50                   	push   %eax                           
  10f177:	ff 73 30             	pushl  0x30(%ebx)                     
  10f17a:	e8 c9 0e 00 00       	call   110048 <rtems_barrier_release> 
  10f17f:	83 c4 10             	add    $0x10,%esp                     
                                                                      
      if (pipe->Writers == 0) {                                       
  10f182:	83 7b 14 00          	cmpl   $0x0,0x14(%ebx)                
  10f186:	0f 85 1e 01 00 00    	jne    10f2aa <fifo_open+0x35b>       
        /* Not an error */                                            
        if (LIBIO_NODELAY(iop))                                       
  10f18c:	8b 45 0c             	mov    0xc(%ebp),%eax                 
  10f18f:	f6 40 14 01          	testb  $0x1,0x14(%eax)                
  10f193:	0f 85 11 01 00 00    	jne    10f2aa <fifo_open+0x35b>       
          break;                                                      
                                                                      
        prevCounter = pipe->writerCounter;                            
  10f199:	8b 7b 24             	mov    0x24(%ebx),%edi                
        err = -EINTR;                                                 
        /* Wait until a writer opens the pipe */                      
        do {                                                          
          PIPE_UNLOCK(pipe);                                          
  10f19c:	83 ec 0c             	sub    $0xc,%esp                      
  10f19f:	ff 73 28             	pushl  0x28(%ebx)                     
  10f1a2:	e8 31 c0 ff ff       	call   10b1d8 <rtems_semaphore_release>
          if (! PIPE_READWAIT(pipe))                                  
  10f1a7:	5a                   	pop    %edx                           
  10f1a8:	59                   	pop    %ecx                           
  10f1a9:	6a 00                	push   $0x0                           
  10f1ab:	ff 73 2c             	pushl  0x2c(%ebx)                     
  10f1ae:	e8 ed 0e 00 00       	call   1100a0 <rtems_barrier_wait>    
  10f1b3:	83 c4 10             	add    $0x10,%esp                     
  10f1b6:	85 c0                	test   %eax,%eax                      
  10f1b8:	0f 85 f9 00 00 00    	jne    10f2b7 <fifo_open+0x368>       <== NEVER TAKEN
            goto out_error;                                           
          if (! PIPE_LOCK(pipe))                                      
  10f1be:	50                   	push   %eax                           
  10f1bf:	6a 00                	push   $0x0                           
  10f1c1:	6a 00                	push   $0x0                           
  10f1c3:	ff 73 28             	pushl  0x28(%ebx)                     
  10f1c6:	e8 21 bf ff ff       	call   10b0ec <rtems_semaphore_obtain>
  10f1cb:	83 c4 10             	add    $0x10,%esp                     
  10f1ce:	85 c0                	test   %eax,%eax                      
  10f1d0:	0f 85 e1 00 00 00    	jne    10f2b7 <fifo_open+0x368>       <== NEVER TAKEN
            goto out_error;                                           
        } while (prevCounter == pipe->writerCounter);                 
  10f1d6:	3b 7b 24             	cmp    0x24(%ebx),%edi                
  10f1d9:	74 c1                	je     10f19c <fifo_open+0x24d>       <== NEVER TAKEN
  10f1db:	e9 ca 00 00 00       	jmp    10f2aa <fifo_open+0x35b>       
      }                                                               
      break;                                                          
                                                                      
    case LIBIO_FLAGS_WRITE:                                           
      pipe->writerCounter ++;                                         
  10f1e0:	ff 43 24             	incl   0x24(%ebx)                     
                                                                      
      if (pipe->Writers ++ == 0)                                      
  10f1e3:	8b 43 14             	mov    0x14(%ebx),%eax                
  10f1e6:	8d 50 01             	lea    0x1(%eax),%edx                 
  10f1e9:	89 53 14             	mov    %edx,0x14(%ebx)                
  10f1ec:	85 c0                	test   %eax,%eax                      
  10f1ee:	75 11                	jne    10f201 <fifo_open+0x2b2>       <== NEVER TAKEN
        PIPE_WAKEUPREADERS(pipe);                                     
  10f1f0:	57                   	push   %edi                           
  10f1f1:	57                   	push   %edi                           
  10f1f2:	8d 45 e4             	lea    -0x1c(%ebp),%eax               
  10f1f5:	50                   	push   %eax                           
  10f1f6:	ff 73 2c             	pushl  0x2c(%ebx)                     
  10f1f9:	e8 4a 0e 00 00       	call   110048 <rtems_barrier_release> 
  10f1fe:	83 c4 10             	add    $0x10,%esp                     
                                                                      
      if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) {                 
  10f201:	83 7b 10 00          	cmpl   $0x0,0x10(%ebx)                
  10f205:	0f 85 9f 00 00 00    	jne    10f2aa <fifo_open+0x35b>       
  10f20b:	8b 55 0c             	mov    0xc(%ebp),%edx                 
  10f20e:	f6 42 14 01          	testb  $0x1,0x14(%edx)                
  10f212:	74 18                	je     10f22c <fifo_open+0x2dd>       
	PIPE_UNLOCK(pipe);                                                   
  10f214:	83 ec 0c             	sub    $0xc,%esp                      
  10f217:	ff 73 28             	pushl  0x28(%ebx)                     
  10f21a:	e8 b9 bf ff ff       	call   10b1d8 <rtems_semaphore_release>
        err = -ENXIO;                                                 
        goto out_error;                                               
  10f21f:	83 c4 10             	add    $0x10,%esp                     
      if (pipe->Writers ++ == 0)                                      
        PIPE_WAKEUPREADERS(pipe);                                     
                                                                      
      if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) {                 
	PIPE_UNLOCK(pipe);                                                   
        err = -ENXIO;                                                 
  10f222:	be fa ff ff ff       	mov    $0xfffffffa,%esi               
        goto out_error;                                               
  10f227:	e9 90 00 00 00       	jmp    10f2bc <fifo_open+0x36d>       
      }                                                               
                                                                      
      if (pipe->Readers == 0) {                                       
        prevCounter = pipe->readerCounter;                            
  10f22c:	8b 7b 20             	mov    0x20(%ebx),%edi                
        err = -EINTR;                                                 
        do {                                                          
          PIPE_UNLOCK(pipe);                                          
  10f22f:	83 ec 0c             	sub    $0xc,%esp                      
  10f232:	ff 73 28             	pushl  0x28(%ebx)                     
  10f235:	e8 9e bf ff ff       	call   10b1d8 <rtems_semaphore_release>
          if (! PIPE_WRITEWAIT(pipe))                                 
  10f23a:	5a                   	pop    %edx                           
  10f23b:	59                   	pop    %ecx                           
  10f23c:	6a 00                	push   $0x0                           
  10f23e:	ff 73 30             	pushl  0x30(%ebx)                     
  10f241:	e8 5a 0e 00 00       	call   1100a0 <rtems_barrier_wait>    
  10f246:	83 c4 10             	add    $0x10,%esp                     
  10f249:	85 c0                	test   %eax,%eax                      
  10f24b:	75 6a                	jne    10f2b7 <fifo_open+0x368>       <== NEVER TAKEN
            goto out_error;                                           
          if (! PIPE_LOCK(pipe))                                      
  10f24d:	50                   	push   %eax                           
  10f24e:	6a 00                	push   $0x0                           
  10f250:	6a 00                	push   $0x0                           
  10f252:	ff 73 28             	pushl  0x28(%ebx)                     
  10f255:	e8 92 be ff ff       	call   10b0ec <rtems_semaphore_obtain>
  10f25a:	83 c4 10             	add    $0x10,%esp                     
  10f25d:	85 c0                	test   %eax,%eax                      
  10f25f:	75 56                	jne    10f2b7 <fifo_open+0x368>       <== NEVER TAKEN
            goto out_error;                                           
        } while (prevCounter == pipe->readerCounter);                 
  10f261:	3b 7b 20             	cmp    0x20(%ebx),%edi                
  10f264:	74 c9                	je     10f22f <fifo_open+0x2e0>       <== NEVER TAKEN
  10f266:	eb 42                	jmp    10f2aa <fifo_open+0x35b>       
      }                                                               
      break;                                                          
                                                                      
    case LIBIO_FLAGS_READ_WRITE:                                      
      pipe->readerCounter ++;                                         
  10f268:	ff 43 20             	incl   0x20(%ebx)                     
      if (pipe->Readers ++ == 0)                                      
  10f26b:	8b 43 10             	mov    0x10(%ebx),%eax                
  10f26e:	8d 50 01             	lea    0x1(%eax),%edx                 
  10f271:	89 53 10             	mov    %edx,0x10(%ebx)                
  10f274:	85 c0                	test   %eax,%eax                      
  10f276:	75 11                	jne    10f289 <fifo_open+0x33a>       <== NEVER TAKEN
        PIPE_WAKEUPWRITERS(pipe);                                     
  10f278:	51                   	push   %ecx                           
  10f279:	51                   	push   %ecx                           
  10f27a:	8d 45 e4             	lea    -0x1c(%ebp),%eax               
  10f27d:	50                   	push   %eax                           
  10f27e:	ff 73 30             	pushl  0x30(%ebx)                     
  10f281:	e8 c2 0d 00 00       	call   110048 <rtems_barrier_release> 
  10f286:	83 c4 10             	add    $0x10,%esp                     
      pipe->writerCounter ++;                                         
  10f289:	ff 43 24             	incl   0x24(%ebx)                     
      if (pipe->Writers ++ == 0)                                      
  10f28c:	8b 43 14             	mov    0x14(%ebx),%eax                
  10f28f:	8d 50 01             	lea    0x1(%eax),%edx                 
  10f292:	89 53 14             	mov    %edx,0x14(%ebx)                
  10f295:	85 c0                	test   %eax,%eax                      
  10f297:	75 11                	jne    10f2aa <fifo_open+0x35b>       <== NEVER TAKEN
        PIPE_WAKEUPREADERS(pipe);                                     
  10f299:	52                   	push   %edx                           
  10f29a:	52                   	push   %edx                           
  10f29b:	8d 45 e4             	lea    -0x1c(%ebp),%eax               
  10f29e:	50                   	push   %eax                           
  10f29f:	ff 73 2c             	pushl  0x2c(%ebx)                     
  10f2a2:	e8 a1 0d 00 00       	call   110048 <rtems_barrier_release> 
  10f2a7:	83 c4 10             	add    $0x10,%esp                     
      break;                                                          
  }                                                                   
                                                                      
  PIPE_UNLOCK(pipe);                                                  
  10f2aa:	83 ec 0c             	sub    $0xc,%esp                      
  10f2ad:	ff 73 28             	pushl  0x28(%ebx)                     
  10f2b0:	e8 23 bf ff ff       	call   10b1d8 <rtems_semaphore_release>
  10f2b5:	eb 12                	jmp    10f2c9 <fifo_open+0x37a>       
        goto out_error;                                               
      }                                                               
                                                                      
      if (pipe->Readers == 0) {                                       
        prevCounter = pipe->readerCounter;                            
        err = -EINTR;                                                 
  10f2b7:	be fc ff ff ff       	mov    $0xfffffffc,%esi               <== NOT EXECUTED
                                                                      
  PIPE_UNLOCK(pipe);                                                  
  return 0;                                                           
                                                                      
out_error:                                                            
  pipe_release(pipep, iop);                                           
  10f2bc:	50                   	push   %eax                           
  10f2bd:	50                   	push   %eax                           
  10f2be:	ff 75 0c             	pushl  0xc(%ebp)                      
  10f2c1:	ff 75 08             	pushl  0x8(%ebp)                      
  10f2c4:	e8 f4 fb ff ff       	call   10eebd <pipe_release>          
  return err;                                                         
  10f2c9:	83 c4 10             	add    $0x10,%esp                     
}                                                                     
  10f2cc:	89 f0                	mov    %esi,%eax                      
  10f2ce:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  10f2d1:	5b                   	pop    %ebx                           
  10f2d2:	5e                   	pop    %esi                           
  10f2d3:	5f                   	pop    %edi                           
  10f2d4:	c9                   	leave                                 
  10f2d5:	c3                   	ret                                   
                                                                      

001073cc <fpathconf>: long fpathconf( int fd, int name ) {
  1073cc:	55                   	push   %ebp                           
  1073cd:	89 e5                	mov    %esp,%ebp                      
  1073cf:	83 ec 08             	sub    $0x8,%esp                      
  1073d2:	8b 45 08             	mov    0x8(%ebp),%eax                 
  1073d5:	8b 55 0c             	mov    0xc(%ebp),%edx                 
  long                                    return_value;               
  rtems_libio_t                          *iop;                        
  rtems_filesystem_limits_and_options_t  *the_limits;                 
                                                                      
  rtems_libio_check_fd(fd);                                           
  1073d8:	3b 05 24 17 12 00    	cmp    0x121724,%eax                  
  1073de:	73 11                	jae    1073f1 <fpathconf+0x25>        
  iop = rtems_libio_iop(fd);                                          
  1073e0:	6b c0 38             	imul   $0x38,%eax,%eax                
  1073e3:	03 05 e0 56 12 00    	add    0x1256e0,%eax                  
  rtems_libio_check_is_open(iop);                                     
  1073e9:	8b 48 14             	mov    0x14(%eax),%ecx                
  1073ec:	f6 c5 01             	test   $0x1,%ch                       
  1073ef:	75 0d                	jne    1073fe <fpathconf+0x32>        <== ALWAYS TAKEN
  1073f1:	e8 82 97 00 00       	call   110b78 <__errno>               
  1073f6:	c7 00 09 00 00 00    	movl   $0x9,(%eax)                    
  1073fc:	eb 5b                	jmp    107459 <fpathconf+0x8d>        
  rtems_libio_check_permissions(iop, LIBIO_FLAGS_READ);               
  1073fe:	80 e1 02             	and    $0x2,%cl                       
  107401:	74 4b                	je     10744e <fpathconf+0x82>        
                                                                      
  /*                                                                  
   *  Now process the information request.                            
   */                                                                 
                                                                      
  the_limits = &iop->pathinfo.mt_entry->pathconf_limits_and_options;  
  107403:	8b 40 28             	mov    0x28(%eax),%eax                
                                                                      
  switch ( name ) {                                                   
  107406:	83 fa 0b             	cmp    $0xb,%edx                      
  107409:	77 43                	ja     10744e <fpathconf+0x82>        
  10740b:	ff 24 95 50 f3 11 00 	jmp    *0x11f350(,%edx,4)             
    case _PC_LINK_MAX:                                                
      return_value = the_limits->link_max;                            
  107412:	8b 40 38             	mov    0x38(%eax),%eax                
      break;                                                          
  107415:	eb 45                	jmp    10745c <fpathconf+0x90>        
    case _PC_MAX_CANON:                                               
      return_value = the_limits->max_canon;                           
  107417:	8b 40 3c             	mov    0x3c(%eax),%eax                
      break;                                                          
  10741a:	eb 40                	jmp    10745c <fpathconf+0x90>        
    case _PC_MAX_INPUT:                                               
      return_value = the_limits->max_input;                           
  10741c:	8b 40 40             	mov    0x40(%eax),%eax                
      break;                                                          
  10741f:	eb 3b                	jmp    10745c <fpathconf+0x90>        
    case _PC_NAME_MAX:                                                
      return_value = the_limits->name_max;                            
  107421:	8b 40 44             	mov    0x44(%eax),%eax                
      break;                                                          
  107424:	eb 36                	jmp    10745c <fpathconf+0x90>        
    case _PC_PATH_MAX:                                                
      return_value = the_limits->path_max;                            
  107426:	8b 40 48             	mov    0x48(%eax),%eax                
      break;                                                          
  107429:	eb 31                	jmp    10745c <fpathconf+0x90>        
    case _PC_PIPE_BUF:                                                
      return_value = the_limits->pipe_buf;                            
  10742b:	8b 40 4c             	mov    0x4c(%eax),%eax                
      break;                                                          
  10742e:	eb 2c                	jmp    10745c <fpathconf+0x90>        
    case _PC_CHOWN_RESTRICTED:                                        
      return_value = the_limits->posix_chown_restrictions;            
  107430:	8b 40 54             	mov    0x54(%eax),%eax                
      break;                                                          
  107433:	eb 27                	jmp    10745c <fpathconf+0x90>        
    case _PC_NO_TRUNC:                                                
      return_value = the_limits->posix_no_trunc;                      
  107435:	8b 40 58             	mov    0x58(%eax),%eax                
      break;                                                          
  107438:	eb 22                	jmp    10745c <fpathconf+0x90>        
    case _PC_VDISABLE:                                                
      return_value = the_limits->posix_vdisable;                      
  10743a:	8b 40 64             	mov    0x64(%eax),%eax                
      break;                                                          
  10743d:	eb 1d                	jmp    10745c <fpathconf+0x90>        
    case _PC_ASYNC_IO:                                                
      return_value = the_limits->posix_async_io;                      
  10743f:	8b 40 50             	mov    0x50(%eax),%eax                
      break;                                                          
  107442:	eb 18                	jmp    10745c <fpathconf+0x90>        
    case _PC_PRIO_IO:                                                 
      return_value = the_limits->posix_prio_io;                       
  107444:	8b 40 5c             	mov    0x5c(%eax),%eax                
      break;                                                          
  107447:	eb 13                	jmp    10745c <fpathconf+0x90>        
    case _PC_SYNC_IO:                                                 
      return_value = the_limits->posix_sync_io;                       
  107449:	8b 40 60             	mov    0x60(%eax),%eax                
      break;                                                          
  10744c:	eb 0e                	jmp    10745c <fpathconf+0x90>        
    default:                                                          
      rtems_set_errno_and_return_minus_one( EINVAL );                 
  10744e:	e8 25 97 00 00       	call   110b78 <__errno>               
  107453:	c7 00 16 00 00 00    	movl   $0x16,(%eax)                   
  107459:	83 c8 ff             	or     $0xffffffff,%eax               
      break;                                                          
  }                                                                   
                                                                      
  return return_value;                                                
}                                                                     
  10745c:	c9                   	leave                                 
  10745d:	c3                   	ret                                   
                                                                      

00106998 <free>: #include <stdlib.h> void free( void *ptr ) {
  106998:	55                   	push   %ebp                           
  106999:	89 e5                	mov    %esp,%ebp                      
  10699b:	53                   	push   %ebx                           
  10699c:	83 ec 04             	sub    $0x4,%esp                      
  10699f:	8b 5d 08             	mov    0x8(%ebp),%ebx                 
  MSBUMP(free_calls, 1);                                              
  1069a2:	ff 05 24 31 12 00    	incl   0x123124                       
                                                                      
  if ( !ptr )                                                         
  1069a8:	85 db                	test   %ebx,%ebx                      
  1069aa:	74 5f                	je     106a0b <free+0x73>             
    return;                                                           
                                                                      
  /*                                                                  
   *  Do not attempt to free memory if in a critical section or ISR.  
   */                                                                 
  if ( _System_state_Is_up(_System_state_Get()) &&                    
  1069ac:	83 3d 9c 33 12 00 03 	cmpl   $0x3,0x12339c                  
  1069b3:	75 15                	jne    1069ca <free+0x32>             <== NEVER TAKEN
       !malloc_is_system_state_OK() ) {                               
  1069b5:	e8 56 01 00 00       	call   106b10 <malloc_is_system_state_OK>
    return;                                                           
                                                                      
  /*                                                                  
   *  Do not attempt to free memory if in a critical section or ISR.  
   */                                                                 
  if ( _System_state_Is_up(_System_state_Get()) &&                    
  1069ba:	84 c0                	test   %al,%al                        
  1069bc:	75 0c                	jne    1069ca <free+0x32>             
       !malloc_is_system_state_OK() ) {                               
      malloc_deferred_free(ptr);                                      
  1069be:	89 5d 08             	mov    %ebx,0x8(%ebp)                 
      RTEMS_Malloc_Heap->area_begin,                                  
      RTEMS_Malloc_Heap->area_end                                     
    );                                                                
  }                                                                   
                                                                      
}                                                                     
  1069c1:	8b 5d fc             	mov    -0x4(%ebp),%ebx                
  1069c4:	c9                   	leave                                 
  /*                                                                  
   *  Do not attempt to free memory if in a critical section or ISR.  
   */                                                                 
  if ( _System_state_Is_up(_System_state_Get()) &&                    
       !malloc_is_system_state_OK() ) {                               
      malloc_deferred_free(ptr);                                      
  1069c5:	e9 ae 01 00 00       	jmp    106b78 <malloc_deferred_free>  
  }                                                                   
                                                                      
  /*                                                                  
   *  If configured, update the statistics                            
   */                                                                 
  if ( rtems_malloc_statistics_helpers )                              
  1069ca:	a1 f0 15 12 00       	mov    0x1215f0,%eax                  
  1069cf:	85 c0                	test   %eax,%eax                      
  1069d1:	74 0a                	je     1069dd <free+0x45>             
    (*rtems_malloc_statistics_helpers->at_free)(ptr);                 
  1069d3:	83 ec 0c             	sub    $0xc,%esp                      
  1069d6:	53                   	push   %ebx                           
  1069d7:	ff 50 08             	call   *0x8(%eax)                     
  1069da:	83 c4 10             	add    $0x10,%esp                     
                                                                      
  if ( !_Protected_heap_Free( RTEMS_Malloc_Heap, ptr ) ) {            
  1069dd:	50                   	push   %eax                           
  1069de:	50                   	push   %eax                           
  1069df:	53                   	push   %ebx                           
  1069e0:	ff 35 80 f1 11 00    	pushl  0x11f180                       
  1069e6:	e8 1d 44 00 00       	call   10ae08 <_Protected_heap_Free>  
  1069eb:	83 c4 10             	add    $0x10,%esp                     
  1069ee:	84 c0                	test   %al,%al                        
  1069f0:	75 19                	jne    106a0b <free+0x73>             
    printk( "Program heap: free of bad pointer %p -- range %p - %p \n",
      ptr,                                                            
      RTEMS_Malloc_Heap->area_begin,                                  
      RTEMS_Malloc_Heap->area_end                                     
  1069f2:	a1 80 f1 11 00       	mov    0x11f180,%eax                  
   */                                                                 
  if ( rtems_malloc_statistics_helpers )                              
    (*rtems_malloc_statistics_helpers->at_free)(ptr);                 
                                                                      
  if ( !_Protected_heap_Free( RTEMS_Malloc_Heap, ptr ) ) {            
    printk( "Program heap: free of bad pointer %p -- range %p - %p \n",
  1069f7:	ff 70 1c             	pushl  0x1c(%eax)                     
  1069fa:	ff 70 18             	pushl  0x18(%eax)                     
  1069fd:	53                   	push   %ebx                           
  1069fe:	68 7b da 11 00       	push   $0x11da7b                      
  106a03:	e8 fc 0b 00 00       	call   107604 <printk>                
  106a08:	83 c4 10             	add    $0x10,%esp                     
      RTEMS_Malloc_Heap->area_begin,                                  
      RTEMS_Malloc_Heap->area_end                                     
    );                                                                
  }                                                                   
                                                                      
}                                                                     
  106a0b:	8b 5d fc             	mov    -0x4(%ebp),%ebx                
  106a0e:	c9                   	leave                                 
  106a0f:	c3                   	ret                                   
                                                                      

00107c44 <free_user_env>: * NOTE: this must be called with * thread dispatching disabled! */ static void free_user_env(void *venv) {
  107c44:	55                   	push   %ebp                           
  107c45:	89 e5                	mov    %esp,%ebp                      
  107c47:	53                   	push   %ebx                           
  107c48:	83 ec 04             	sub    $0x4,%esp                      
  107c4b:	8b 5d 08             	mov    0x8(%ebp),%ebx                 
  rtems_user_env_t *env = (rtems_user_env_t*) venv ;                  
                                                                      
  if (env != &rtems_global_user_env                                   
  107c4e:	81 fb 10 46 12 00    	cmp    $0x124610,%ebx                 
  107c54:	74 26                	je     107c7c <free_user_env+0x38>    <== NEVER TAKEN
  #ifdef HAVE_USERENV_REFCNT                                          
      && --env->refcnt <= 0                                           
  #endif                                                              
  ) {                                                                 
    rtems_filesystem_freenode( &env->current_directory);              
  107c56:	83 ec 0c             	sub    $0xc,%esp                      
  107c59:	8d 43 04             	lea    0x4(%ebx),%eax                 
  107c5c:	50                   	push   %eax                           
  107c5d:	e8 46 f1 ff ff       	call   106da8 <rtems_filesystem_freenode>
    rtems_filesystem_freenode( &env->root_directory);                 
  107c62:	8d 43 18             	lea    0x18(%ebx),%eax                
  107c65:	89 04 24             	mov    %eax,(%esp)                    
  107c68:	e8 3b f1 ff ff       	call   106da8 <rtems_filesystem_freenode>
    free(env);                                                        
  107c6d:	83 c4 10             	add    $0x10,%esp                     
  107c70:	89 5d 08             	mov    %ebx,0x8(%ebp)                 
  }                                                                   
}                                                                     
  107c73:	8b 5d fc             	mov    -0x4(%ebp),%ebx                
  107c76:	c9                   	leave                                 
      && --env->refcnt <= 0                                           
  #endif                                                              
  ) {                                                                 
    rtems_filesystem_freenode( &env->current_directory);              
    rtems_filesystem_freenode( &env->root_directory);                 
    free(env);                                                        
  107c77:	e9 40 f1 ff ff       	jmp    106dbc <free>                  
  }                                                                   
}                                                                     
  107c7c:	8b 5d fc             	mov    -0x4(%ebp),%ebx                <== NOT EXECUTED
  107c7f:	c9                   	leave                                 <== NOT EXECUTED
  107c80:	c3                   	ret                                   <== NOT EXECUTED
                                                                      

0011d378 <getdents>: int getdents( int dd_fd, char *dd_buf, int dd_len ) {
  11d378:	55                   	push   %ebp                           
  11d379:	89 e5                	mov    %esp,%ebp                      
  11d37b:	57                   	push   %edi                           
  11d37c:	56                   	push   %esi                           
  11d37d:	53                   	push   %ebx                           
  11d37e:	83 ec 2c             	sub    $0x2c,%esp                     
  11d381:	8b 45 08             	mov    0x8(%ebp),%eax                 
  rtems_filesystem_location_info_t  loc;                              
                                                                      
  /*                                                                  
   *  Get the file control block structure associated with the file descriptor
   */                                                                 
  iop = rtems_libio_iop( dd_fd );                                     
  11d384:	31 db                	xor    %ebx,%ebx                      
  11d386:	3b 05 24 27 12 00    	cmp    0x122724,%eax                  
  11d38c:	73 09                	jae    11d397 <getdents+0x1f>         <== NEVER TAKEN
  11d38e:	6b d8 38             	imul   $0x38,%eax,%ebx                
  11d391:	03 1d 40 68 12 00    	add    0x126840,%ebx                  
                                                                      
  /*                                                                  
   *  Make sure we are working on a directory                         
   */                                                                 
  loc = iop->pathinfo;                                                
  11d397:	8d 7d d4             	lea    -0x2c(%ebp),%edi               
  11d39a:	8d 73 18             	lea    0x18(%ebx),%esi                
  11d39d:	b9 05 00 00 00       	mov    $0x5,%ecx                      
  11d3a2:	f3 a5                	rep movsl %ds:(%esi),%es:(%edi)       
  if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY )
  11d3a4:	83 ec 0c             	sub    $0xc,%esp                      
  11d3a7:	8d 45 d4             	lea    -0x2c(%ebp),%eax               
  11d3aa:	50                   	push   %eax                           
  11d3ab:	8b 45 e0             	mov    -0x20(%ebp),%eax               
  11d3ae:	ff 50 10             	call   *0x10(%eax)                    
  11d3b1:	83 c4 10             	add    $0x10,%esp                     
  11d3b4:	48                   	dec    %eax                           
  11d3b5:	74 10                	je     11d3c7 <getdents+0x4f>         
    rtems_set_errno_and_return_minus_one( ENOTDIR );                  
  11d3b7:	e8 dc 38 ff ff       	call   110c98 <__errno>               
  11d3bc:	c7 00 14 00 00 00    	movl   $0x14,(%eax)                   
  11d3c2:	83 c8 ff             	or     $0xffffffff,%eax               
  11d3c5:	eb 11                	jmp    11d3d8 <getdents+0x60>         
                                                                      
  /*                                                                  
   *  Return the number of bytes that were actually transfered as a result
   *  of the read attempt.                                            
   */                                                                 
  return (*iop->pathinfo.handlers->read_h)( iop, dd_buf, dd_len  );   
  11d3c7:	50                   	push   %eax                           
  11d3c8:	8b 43 20             	mov    0x20(%ebx),%eax                
  11d3cb:	ff 75 10             	pushl  0x10(%ebp)                     
  11d3ce:	ff 75 0c             	pushl  0xc(%ebp)                      
  11d3d1:	53                   	push   %ebx                           
  11d3d2:	ff 50 08             	call   *0x8(%eax)                     
  11d3d5:	83 c4 10             	add    $0x10,%esp                     
}                                                                     
  11d3d8:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  11d3db:	5b                   	pop    %ebx                           
  11d3dc:	5e                   	pop    %esi                           
  11d3dd:	5f                   	pop    %edi                           
  11d3de:	c9                   	leave                                 
  11d3df:	c3                   	ret                                   
                                                                      

00106a10 <gettimeofday>: */ int gettimeofday( struct timeval *tp, void * __tz __attribute__((unused)) ) {
  106a10:	55                   	push   %ebp                           
  106a11:	89 e5                	mov    %esp,%ebp                      
  106a13:	56                   	push   %esi                           
  106a14:	53                   	push   %ebx                           
  106a15:	83 ec 10             	sub    $0x10,%esp                     
  106a18:	8b 5d 08             	mov    0x8(%ebp),%ebx                 
  /* struct timezone* tzp = (struct timezone*) __tz; */               
  if ( !tp )                                                          
  106a1b:	85 db                	test   %ebx,%ebx                      
  106a1d:	75 10                	jne    106a2f <gettimeofday+0x1f>     <== ALWAYS TAKEN
    rtems_set_errno_and_return_minus_one( EFAULT );                   
  106a1f:	e8 5c 93 00 00       	call   10fd80 <__errno>               <== NOT EXECUTED
  106a24:	c7 00 0e 00 00 00    	movl   $0xe,(%eax)                    <== NOT EXECUTED
  106a2a:	83 c8 ff             	or     $0xffffffff,%eax               <== NOT EXECUTED
  106a2d:	eb 29                	jmp    106a58 <gettimeofday+0x48>     <== NOT EXECUTED
{                                                                     
  ISR_Level       level;                                              
  struct timespec now;                                                
  suseconds_t     useconds;                                           
                                                                      
  _ISR_Disable(level);                                                
  106a2f:	9c                   	pushf                                 
  106a30:	fa                   	cli                                   
  106a31:	5e                   	pop    %esi                           
    _TOD_Get( &now );                                                 
  106a32:	83 ec 0c             	sub    $0xc,%esp                      
  106a35:	8d 45 f0             	lea    -0x10(%ebp),%eax               
  106a38:	50                   	push   %eax                           
  106a39:	e8 6e 38 00 00       	call   10a2ac <_TOD_Get>              
  _ISR_Enable(level);                                                 
  106a3e:	56                   	push   %esi                           
  106a3f:	9d                   	popf                                  
                                                                      
  useconds = (suseconds_t)now.tv_nsec;                                
  106a40:	8b 45 f4             	mov    -0xc(%ebp),%eax                
  useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND;           
                                                                      
  time->tv_sec  = now.tv_sec;                                         
  106a43:	8b 55 f0             	mov    -0x10(%ebp),%edx               
  106a46:	89 13                	mov    %edx,(%ebx)                    
  _ISR_Disable(level);                                                
    _TOD_Get( &now );                                                 
  _ISR_Enable(level);                                                 
                                                                      
  useconds = (suseconds_t)now.tv_nsec;                                
  useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND;           
  106a48:	b9 e8 03 00 00       	mov    $0x3e8,%ecx                    
  106a4d:	99                   	cltd                                  
  106a4e:	f7 f9                	idiv   %ecx                           
                                                                      
  time->tv_sec  = now.tv_sec;                                         
  time->tv_usec = useconds;                                           
  106a50:	89 43 04             	mov    %eax,0x4(%ebx)                 
   *  Timezone information ignored by the OS proper.   Per email      
   *  with Eric Norum, this is how GNU/Linux, Solaris, and MacOS X    
   *  do it.  This puts us in good company.                           
   */                                                                 
                                                                      
  return 0;                                                           
  106a53:	83 c4 10             	add    $0x10,%esp                     
  106a56:	31 c0                	xor    %eax,%eax                      
}                                                                     
  106a58:	8d 65 f8             	lea    -0x8(%ebp),%esp                
  106a5b:	5b                   	pop    %ebx                           
  106a5c:	5e                   	pop    %esi                           
  106a5d:	c9                   	leave                                 
  106a5e:	c3                   	ret                                   
                                                                      

0010f670 <imfs_dir_open>: rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) {
  10f670:	55                   	push   %ebp                           
  10f671:	89 e5                	mov    %esp,%ebp                      
  10f673:	8b 55 08             	mov    0x8(%ebp),%edx                 
  IMFS_jnode_t      *the_jnode;                                       
                                                                      
  /* Is the node a directory ? */                                     
  the_jnode = (IMFS_jnode_t *) iop->pathinfo.node_access;             
                                                                      
  if ( the_jnode->type != IMFS_DIRECTORY )                            
  10f676:	8b 4a 18             	mov    0x18(%edx),%ecx                
     return -1;      /* It wasn't a directory --> return error */     
  10f679:	83 c8 ff             	or     $0xffffffff,%eax               
  IMFS_jnode_t      *the_jnode;                                       
                                                                      
  /* Is the node a directory ? */                                     
  the_jnode = (IMFS_jnode_t *) iop->pathinfo.node_access;             
                                                                      
  if ( the_jnode->type != IMFS_DIRECTORY )                            
  10f67c:	83 79 4c 01          	cmpl   $0x1,0x4c(%ecx)                
  10f680:	75 10                	jne    10f692 <imfs_dir_open+0x22>    <== NEVER TAKEN
     return -1;      /* It wasn't a directory --> return error */     
                                                                      
  iop->offset = 0;                                                    
  10f682:	c7 42 0c 00 00 00 00 	movl   $0x0,0xc(%edx)                 
  10f689:	c7 42 10 00 00 00 00 	movl   $0x0,0x10(%edx)                
  return 0;                                                           
  10f690:	31 c0                	xor    %eax,%eax                      
}                                                                     
  10f692:	c9                   	leave                                 
  10f693:	c3                   	ret                                   
                                                                      

0010f8d9 <imfs_dir_rmnod>: int imfs_dir_rmnod( rtems_filesystem_location_info_t *parent_pathloc, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN */ ) {
  10f8d9:	55                   	push   %ebp                           
  10f8da:	89 e5                	mov    %esp,%ebp                      
  10f8dc:	53                   	push   %ebx                           
  10f8dd:	83 ec 04             	sub    $0x4,%esp                      
  10f8e0:	8b 45 0c             	mov    0xc(%ebp),%eax                 
  IMFS_jnode_t *the_jnode;                                            
                                                                      
  the_jnode = (IMFS_jnode_t *) pathloc->node_access;                  
  10f8e3:	8b 18                	mov    (%eax),%ebx                    
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_first( the_chain )                          
    == _Chain_Immutable_tail( the_chain );                            
  10f8e5:	8d 53 54             	lea    0x54(%ebx),%edx                
                                                                      
  /*                                                                  
   * You cannot remove a node that still has children                 
   */                                                                 
                                                                      
  if ( ! rtems_chain_is_empty( &the_jnode->info.directory.Entries ) ) 
  10f8e8:	39 53 50             	cmp    %edx,0x50(%ebx)                
  10f8eb:	74 0d                	je     10f8fa <imfs_dir_rmnod+0x21>   
     rtems_set_errno_and_return_minus_one( ENOTEMPTY );               
  10f8ed:	e8 8e 04 00 00       	call   10fd80 <__errno>               
  10f8f2:	c7 00 5a 00 00 00    	movl   $0x5a,(%eax)                   
  10f8f8:	eb 13                	jmp    10f90d <imfs_dir_rmnod+0x34>   
                                                                      
  /*                                                                  
   * You cannot remove the file system root node.                     
   */                                                                 
                                                                      
  if ( pathloc->mt_entry->mt_fs_root.node_access == pathloc->node_access )
  10f8fa:	8b 40 10             	mov    0x10(%eax),%eax                
  10f8fd:	39 58 1c             	cmp    %ebx,0x1c(%eax)                
  10f900:	75 10                	jne    10f912 <imfs_dir_rmnod+0x39>   
     rtems_set_errno_and_return_minus_one( EBUSY );                   
  10f902:	e8 79 04 00 00       	call   10fd80 <__errno>               
  10f907:	c7 00 10 00 00 00    	movl   $0x10,(%eax)                   
  10f90d:	83 c8 ff             	or     $0xffffffff,%eax               
  10f910:	eb 1c                	jmp    10f92e <imfs_dir_rmnod+0x55>   
                                                                      
  /*                                                                  
   * You cannot remove a mountpoint.                                  
   */                                                                 
                                                                      
   if ( the_jnode->info.directory.mt_fs != NULL )                     
  10f912:	83 7b 5c 00          	cmpl   $0x0,0x5c(%ebx)                
  10f916:	75 ea                	jne    10f902 <imfs_dir_rmnod+0x29>   <== NEVER TAKEN
     rtems_set_errno_and_return_minus_one( EBUSY );                   
                                                                      
  IMFS_create_orphan( the_jnode );                                    
  10f918:	83 ec 0c             	sub    $0xc,%esp                      
  10f91b:	53                   	push   %ebx                           
  10f91c:	e8 8f da ff ff       	call   10d3b0 <IMFS_create_orphan>    
  IMFS_check_node_remove( the_jnode );                                
  10f921:	89 1c 24             	mov    %ebx,(%esp)                    
  10f924:	e8 c9 da ff ff       	call   10d3f2 <IMFS_check_node_remove>
                                                                      
  return 0;                                                           
  10f929:	83 c4 10             	add    $0x10,%esp                     
  10f92c:	31 c0                	xor    %eax,%eax                      
}                                                                     
  10f92e:	8b 5d fc             	mov    -0x4(%ebp),%ebx                
  10f931:	c9                   	leave                                 
  10f932:	c3                   	ret                                   
                                                                      

001072bc <init_etc_passwd_group>: /* * Initialize useable but dummy databases */ void init_etc_passwd_group(void) {
  1072bc:	55                   	push   %ebp                           
  1072bd:	89 e5                	mov    %esp,%ebp                      
  1072bf:	53                   	push   %ebx                           
  1072c0:	83 ec 04             	sub    $0x4,%esp                      
  FILE *fp;                                                           
  static char etc_passwd_initted = 0;                                 
                                                                      
  if (etc_passwd_initted)                                             
  1072c3:	80 3d 60 55 12 00 00 	cmpb   $0x0,0x125560                  
  1072ca:	0f 85 b8 00 00 00    	jne    107388 <init_etc_passwd_group+0xcc>
    return;                                                           
  etc_passwd_initted = 1;                                             
  1072d0:	c6 05 60 55 12 00 01 	movb   $0x1,0x125560                  
  mkdir("/etc", 0777);                                                
  1072d7:	50                   	push   %eax                           
  1072d8:	50                   	push   %eax                           
  1072d9:	68 ff 01 00 00       	push   $0x1ff                         
  1072de:	68 c7 f2 11 00       	push   $0x11f2c7                      
  1072e3:	e8 7c 07 00 00       	call   107a64 <mkdir>                 
                                                                      
  /*                                                                  
   *  Initialize /etc/passwd                                          
   */                                                                 
  if ((fp = fopen("/etc/passwd", "r")) != NULL) {                     
  1072e8:	59                   	pop    %ecx                           
  1072e9:	5b                   	pop    %ebx                           
  1072ea:	68 32 e1 11 00       	push   $0x11e132                      
  1072ef:	68 cc f2 11 00       	push   $0x11f2cc                      
  1072f4:	e8 23 a0 00 00       	call   11131c <fopen>                 
  1072f9:	83 c4 10             	add    $0x10,%esp                     
  1072fc:	85 c0                	test   %eax,%eax                      
  1072fe:	74 06                	je     107306 <init_etc_passwd_group+0x4a>
    fclose(fp);                                                       
  107300:	83 ec 0c             	sub    $0xc,%esp                      
  107303:	50                   	push   %eax                           
  107304:	eb 2a                	jmp    107330 <init_etc_passwd_group+0x74>
  }                                                                   
  else if ((fp = fopen("/etc/passwd", "w")) != NULL) {                
  107306:	52                   	push   %edx                           
  107307:	52                   	push   %edx                           
  107308:	68 4c e0 11 00       	push   $0x11e04c                      
  10730d:	68 cc f2 11 00       	push   $0x11f2cc                      
  107312:	e8 05 a0 00 00       	call   11131c <fopen>                 
  107317:	89 c3                	mov    %eax,%ebx                      
  107319:	83 c4 10             	add    $0x10,%esp                     
  10731c:	85 c0                	test   %eax,%eax                      
  10731e:	74 18                	je     107338 <init_etc_passwd_group+0x7c><== NEVER TAKEN
    fprintf(fp, "root:*:0:0:root::/:/bin/sh\n"                        
  107320:	50                   	push   %eax                           
  107321:	50                   	push   %eax                           
  107322:	53                   	push   %ebx                           
  107323:	68 d8 f2 11 00       	push   $0x11f2d8                      
  107328:	e8 bb a0 00 00       	call   1113e8 <fputs>                 
                 "rtems:*:1:1:RTEMS Application::/:/bin/sh\n"         
                 "tty:!:2:2:tty owner::/:/bin/false\n" );             
    fclose(fp);                                                       
  10732d:	89 1c 24             	mov    %ebx,(%esp)                    
  107330:	e8 e3 98 00 00       	call   110c18 <fclose>                
  107335:	83 c4 10             	add    $0x10,%esp                     
  }                                                                   
                                                                      
  /*                                                                  
   *  Initialize /etc/group                                           
   */                                                                 
  if ((fp = fopen("/etc/group", "r")) != NULL) {                      
  107338:	51                   	push   %ecx                           
  107339:	51                   	push   %ecx                           
  10733a:	68 32 e1 11 00       	push   $0x11e132                      
  10733f:	68 3f f3 11 00       	push   $0x11f33f                      
  107344:	e8 d3 9f 00 00       	call   11131c <fopen>                 
  107349:	83 c4 10             	add    $0x10,%esp                     
  10734c:	85 c0                	test   %eax,%eax                      
  10734e:	74 06                	je     107356 <init_etc_passwd_group+0x9a>
    fclose(fp);                                                       
  107350:	83 ec 0c             	sub    $0xc,%esp                      
  107353:	50                   	push   %eax                           
  107354:	eb 2a                	jmp    107380 <init_etc_passwd_group+0xc4>
  }                                                                   
  else if ((fp = fopen("/etc/group", "w")) != NULL) {                 
  107356:	52                   	push   %edx                           
  107357:	52                   	push   %edx                           
  107358:	68 4c e0 11 00       	push   $0x11e04c                      
  10735d:	68 3f f3 11 00       	push   $0x11f33f                      
  107362:	e8 b5 9f 00 00       	call   11131c <fopen>                 
  107367:	89 c3                	mov    %eax,%ebx                      
  107369:	83 c4 10             	add    $0x10,%esp                     
  10736c:	85 c0                	test   %eax,%eax                      
  10736e:	74 18                	je     107388 <init_etc_passwd_group+0xcc><== NEVER TAKEN
    fprintf( fp, "root:x:0:root\n"                                    
  107370:	50                   	push   %eax                           
  107371:	50                   	push   %eax                           
  107372:	53                   	push   %ebx                           
  107373:	68 4a f3 11 00       	push   $0x11f34a                      
  107378:	e8 6b a0 00 00       	call   1113e8 <fputs>                 
                 "rtems:x:1:rtems\n"                                  
                 "tty:x:2:tty\n" );                                   
    fclose(fp);                                                       
  10737d:	89 1c 24             	mov    %ebx,(%esp)                    
  107380:	e8 93 98 00 00       	call   110c18 <fclose>                
  107385:	83 c4 10             	add    $0x10,%esp                     
  }                                                                   
}                                                                     
  107388:	8b 5d fc             	mov    -0x4(%ebp),%ebx                
  10738b:	c9                   	leave                                 
  10738c:	c3                   	ret                                   
                                                                      

00108480 <iproc>: /* * Process a single input character */ static int iproc (unsigned char c, struct rtems_termios_tty *tty) {
  108480:	55                   	push   %ebp                           
  108481:	89 e5                	mov    %esp,%ebp                      
  108483:	53                   	push   %ebx                           
  108484:	83 ec 14             	sub    $0x14,%esp                     
  108487:	89 d3                	mov    %edx,%ebx                      
  108489:	88 c1                	mov    %al,%cl                        
  if (tty->termios.c_iflag & ISTRIP)                                  
  10848b:	8b 52 30             	mov    0x30(%edx),%edx                
  10848e:	f6 c2 20             	test   $0x20,%dl                      
  108491:	74 03                	je     108496 <iproc+0x16>            <== ALWAYS TAKEN
    c &= 0x7f;                                                        
  108493:	83 e1 7f             	and    $0x7f,%ecx                     <== NOT EXECUTED
                                                                      
  if (tty->termios.c_iflag & IUCLC)                                   
  108496:	f6 c6 02             	test   $0x2,%dh                       
  108499:	74 16                	je     1084b1 <iproc+0x31>            
    c = tolower (c);                                                  
  10849b:	0f b6 c9             	movzbl %cl,%ecx                       
  10849e:	a1 bc 10 12 00       	mov    0x1210bc,%eax                  
  1084a3:	0f be 44 08 01       	movsbl 0x1(%eax,%ecx,1),%eax          
  1084a8:	83 e0 03             	and    $0x3,%eax                      
  1084ab:	48                   	dec    %eax                           
  1084ac:	75 03                	jne    1084b1 <iproc+0x31>            
  1084ae:	83 c1 20             	add    $0x20,%ecx                     
                                                                      
  if (c == '\r') {                                                    
  1084b1:	80 f9 0d             	cmp    $0xd,%cl                       
  1084b4:	75 14                	jne    1084ca <iproc+0x4a>            
    if (tty->termios.c_iflag & IGNCR)                                 
      return 0;                                                       
  1084b6:	31 c0                	xor    %eax,%eax                      
                                                                      
  if (tty->termios.c_iflag & IUCLC)                                   
    c = tolower (c);                                                  
                                                                      
  if (c == '\r') {                                                    
    if (tty->termios.c_iflag & IGNCR)                                 
  1084b8:	f6 c2 80             	test   $0x80,%dl                      
  1084bb:	0f 85 d9 00 00 00    	jne    10859a <iproc+0x11a>           <== NEVER TAKEN
      return 0;                                                       
    if (tty->termios.c_iflag & ICRNL)                                 
  1084c1:	80 e6 01             	and    $0x1,%dh                       
  1084c4:	74 1a                	je     1084e0 <iproc+0x60>            <== NEVER TAKEN
      c = '\n';                                                       
  1084c6:	b1 0a                	mov    $0xa,%cl                       
  1084c8:	eb 16                	jmp    1084e0 <iproc+0x60>            
  } else if ((c == '\n') && (tty->termios.c_iflag & INLCR)) {         
  1084ca:	80 f9 0a             	cmp    $0xa,%cl                       
  1084cd:	75 09                	jne    1084d8 <iproc+0x58>            
  1084cf:	80 e2 40             	and    $0x40,%dl                      
  1084d2:	74 0c                	je     1084e0 <iproc+0x60>            <== ALWAYS TAKEN
    c = '\r';                                                         
  1084d4:	b1 0d                	mov    $0xd,%cl                       <== NOT EXECUTED
  1084d6:	eb 08                	jmp    1084e0 <iproc+0x60>            <== NOT EXECUTED
  }                                                                   
                                                                      
  if ((c != '\0') && (tty->termios.c_lflag & ICANON)) {               
  1084d8:	84 c9                	test   %cl,%cl                        
  1084da:	0f 84 87 00 00 00    	je     108567 <iproc+0xe7>            <== NEVER TAKEN
  1084e0:	8b 53 3c             	mov    0x3c(%ebx),%edx                
  1084e3:	f6 c2 02             	test   $0x2,%dl                       
  1084e6:	74 7f                	je     108567 <iproc+0xe7>            
    if (c == tty->termios.c_cc[VERASE]) {                             
  1084e8:	3a 4b 43             	cmp    0x43(%ebx),%cl                 
  1084eb:	75 04                	jne    1084f1 <iproc+0x71>            
      erase (tty, 0);                                                 
  1084ed:	31 d2                	xor    %edx,%edx                      
  1084ef:	eb 0a                	jmp    1084fb <iproc+0x7b>            
      return 0;                                                       
    }                                                                 
    else if (c == tty->termios.c_cc[VKILL]) {                         
  1084f1:	3a 4b 44             	cmp    0x44(%ebx),%cl                 
  1084f4:	75 11                	jne    108507 <iproc+0x87>            
      erase (tty, 1);                                                 
  1084f6:	ba 01 00 00 00       	mov    $0x1,%edx                      
  1084fb:	89 d8                	mov    %ebx,%eax                      
  1084fd:	e8 05 fe ff ff       	call   108307 <erase>                 
  108502:	e9 91 00 00 00       	jmp    108598 <iproc+0x118>           
      return 0;                                                       
    }                                                                 
    else if (c == tty->termios.c_cc[VEOF]) {                          
      return 1;                                                       
  108507:	b8 01 00 00 00       	mov    $0x1,%eax                      
    }                                                                 
    else if (c == tty->termios.c_cc[VKILL]) {                         
      erase (tty, 1);                                                 
      return 0;                                                       
    }                                                                 
    else if (c == tty->termios.c_cc[VEOF]) {                          
  10850c:	3a 4b 45             	cmp    0x45(%ebx),%cl                 
  10850f:	0f 84 85 00 00 00    	je     10859a <iproc+0x11a>           <== NEVER TAKEN
      return 1;                                                       
    } else if (c == '\n') {                                           
  108515:	80 f9 0a             	cmp    $0xa,%cl                       
  108518:	75 1a                	jne    108534 <iproc+0xb4>            
      if (tty->termios.c_lflag & (ECHO | ECHONL))                     
  10851a:	80 e2 48             	and    $0x48,%dl                      
  10851d:	74 09                	je     108528 <iproc+0xa8>            <== NEVER TAKEN
        echo (c, tty);                                                
  10851f:	89 da                	mov    %ebx,%edx                      
  108521:	b0 0a                	mov    $0xa,%al                       
  108523:	e8 87 fd ff ff       	call   1082af <echo>                  
      tty->cbuf[tty->ccount++] = c;                                   
  108528:	8b 43 20             	mov    0x20(%ebx),%eax                
  10852b:	8b 53 1c             	mov    0x1c(%ebx),%edx                
  10852e:	c6 04 02 0a          	movb   $0xa,(%edx,%eax,1)             
  108532:	eb 28                	jmp    10855c <iproc+0xdc>            
      return 1;                                                       
    } else if ((c == tty->termios.c_cc[VEOL]) ||                      
  108534:	3a 4b 4c             	cmp    0x4c(%ebx),%cl                 
  108537:	74 05                	je     10853e <iproc+0xbe>            <== NEVER TAKEN
  108539:	3a 4b 51             	cmp    0x51(%ebx),%cl                 
  10853c:	75 29                	jne    108567 <iproc+0xe7>            <== ALWAYS TAKEN
               (c == tty->termios.c_cc[VEOL2])) {                     
      if (tty->termios.c_lflag & ECHO)                                
  10853e:	80 e2 08             	and    $0x8,%dl                       <== NOT EXECUTED
  108541:	74 10                	je     108553 <iproc+0xd3>            <== NOT EXECUTED
        echo (c, tty);                                                
  108543:	0f b6 c1             	movzbl %cl,%eax                       <== NOT EXECUTED
  108546:	89 da                	mov    %ebx,%edx                      <== NOT EXECUTED
  108548:	88 4d f4             	mov    %cl,-0xc(%ebp)                 <== NOT EXECUTED
  10854b:	e8 5f fd ff ff       	call   1082af <echo>                  <== NOT EXECUTED
  108550:	8a 4d f4             	mov    -0xc(%ebp),%cl                 <== NOT EXECUTED
      tty->cbuf[tty->ccount++] = c;                                   
  108553:	8b 43 20             	mov    0x20(%ebx),%eax                <== NOT EXECUTED
  108556:	8b 53 1c             	mov    0x1c(%ebx),%edx                <== NOT EXECUTED
  108559:	88 0c 02             	mov    %cl,(%edx,%eax,1)              <== NOT EXECUTED
  10855c:	40                   	inc    %eax                           
  10855d:	89 43 20             	mov    %eax,0x20(%ebx)                
      return 1;                                                       
  108560:	b8 01 00 00 00       	mov    $0x1,%eax                      
  108565:	eb 33                	jmp    10859a <iproc+0x11a>           
  }                                                                   
                                                                      
  /*                                                                  
   * FIXME: Should do IMAXBEL handling somehow                        
   */                                                                 
  if (tty->ccount < (CBUFSIZE-1)) {                                   
  108567:	8b 15 34 10 12 00    	mov    0x121034,%edx                  
  10856d:	4a                   	dec    %edx                           
    if (tty->termios.c_lflag & ECHO)                                  
      echo (c, tty);                                                  
    tty->cbuf[tty->ccount++] = c;                                     
  }                                                                   
  return 0;                                                           
  10856e:	31 c0                	xor    %eax,%eax                      
  }                                                                   
                                                                      
  /*                                                                  
   * FIXME: Should do IMAXBEL handling somehow                        
   */                                                                 
  if (tty->ccount < (CBUFSIZE-1)) {                                   
  108570:	39 53 20             	cmp    %edx,0x20(%ebx)                
  108573:	7d 25                	jge    10859a <iproc+0x11a>           <== NEVER TAKEN
    if (tty->termios.c_lflag & ECHO)                                  
  108575:	f6 43 3c 08          	testb  $0x8,0x3c(%ebx)                
  108579:	74 10                	je     10858b <iproc+0x10b>           <== NEVER TAKEN
      echo (c, tty);                                                  
  10857b:	0f b6 c1             	movzbl %cl,%eax                       
  10857e:	89 da                	mov    %ebx,%edx                      
  108580:	88 4d f4             	mov    %cl,-0xc(%ebp)                 
  108583:	e8 27 fd ff ff       	call   1082af <echo>                  
  108588:	8a 4d f4             	mov    -0xc(%ebp),%cl                 
    tty->cbuf[tty->ccount++] = c;                                     
  10858b:	8b 43 20             	mov    0x20(%ebx),%eax                
  10858e:	8b 53 1c             	mov    0x1c(%ebx),%edx                
  108591:	88 0c 02             	mov    %cl,(%edx,%eax,1)              
  108594:	40                   	inc    %eax                           
  108595:	89 43 20             	mov    %eax,0x20(%ebx)                
  }                                                                   
  return 0;                                                           
  108598:	31 c0                	xor    %eax,%eax                      
}                                                                     
  10859a:	83 c4 14             	add    $0x14,%esp                     
  10859d:	5b                   	pop    %ebx                           
  10859e:	c9                   	leave                                 
  10859f:	c3                   	ret                                   
                                                                      

001208d8 <kill>: * These are directly supported (and completely correct) in the posix api. */ #if !defined(RTEMS_POSIX_API) int kill( pid_t pid, int sig ) {
  1208d8:	55                   	push   %ebp                           <== NOT EXECUTED
  1208d9:	89 e5                	mov    %esp,%ebp                      <== NOT EXECUTED
  return 0;                                                           
}                                                                     
  1208db:	31 c0                	xor    %eax,%eax                      <== NOT EXECUTED
  1208dd:	c9                   	leave                                 <== NOT EXECUTED
  1208de:	c3                   	ret                                   <== NOT EXECUTED
                                                                      

0011bce4 <libc_wrapup>: extern void _wrapup_reent(struct _reent *); extern void _reclaim_reent(struct _reent *); void libc_wrapup(void) {
  11bce4:	55                   	push   %ebp                           
  11bce5:	89 e5                	mov    %esp,%ebp                      
  11bce7:	53                   	push   %ebx                           
  11bce8:	83 ec 04             	sub    $0x4,%esp                      
  /*                                                                  
   *  In case RTEMS is already down, don't do this.  It could be      
   *  dangerous.                                                      
   */                                                                 
                                                                      
  if (!_System_state_Is_up(_System_state_Get()))                      
  11bceb:	83 3d 9c 33 12 00 03 	cmpl   $0x3,0x12339c                  
  11bcf2:	75 4f                	jne    11bd43 <libc_wrapup+0x5f>      <== NEVER TAKEN
  /*                                                                  
   *  This was already done if the user called exit() directly .      
  _wrapup_reent(0);                                                   
   */                                                                 
                                                                      
  if (_REENT != _global_impure_ptr) {                                 
  11bcf4:	8b 1d a0 e3 11 00    	mov    0x11e3a0,%ebx                  
  11bcfa:	39 1d c0 10 12 00    	cmp    %ebx,0x1210c0                  
  11bd00:	74 12                	je     11bd14 <libc_wrapup+0x30>      
      _wrapup_reent(_global_impure_ptr);                              
  11bd02:	83 ec 0c             	sub    $0xc,%esp                      
  11bd05:	53                   	push   %ebx                           
  11bd06:	e8 b5 05 00 00       	call   11c2c0 <_wrapup_reent>         
      /*  Don't reclaim this one, just in case we do printfs          
       *  on the way out to ROM.                                      
       */                                                             
      _reclaim_reent(&libc_global_reent);                             
#endif                                                                
      _REENT = _global_impure_ptr;                                    
  11bd0b:	89 1d c0 10 12 00    	mov    %ebx,0x1210c0                  
  11bd11:	83 c4 10             	add    $0x10,%esp                     
   *                                                                  
   * Should this be changed to do *all* file streams?                 
   *    _fwalk (_REENT, fclose);                                      
   */                                                                 
                                                                      
  fclose (stdin);                                                     
  11bd14:	83 ec 0c             	sub    $0xc,%esp                      
  11bd17:	a1 c0 10 12 00       	mov    0x1210c0,%eax                  
  11bd1c:	ff 70 04             	pushl  0x4(%eax)                      
  11bd1f:	e8 b4 41 ff ff       	call   10fed8 <fclose>                
  fclose (stdout);                                                    
  11bd24:	5a                   	pop    %edx                           
  11bd25:	a1 c0 10 12 00       	mov    0x1210c0,%eax                  
  11bd2a:	ff 70 08             	pushl  0x8(%eax)                      
  11bd2d:	e8 a6 41 ff ff       	call   10fed8 <fclose>                
  fclose (stderr);                                                    
  11bd32:	58                   	pop    %eax                           
  11bd33:	a1 c0 10 12 00       	mov    0x1210c0,%eax                  
  11bd38:	ff 70 0c             	pushl  0xc(%eax)                      
  11bd3b:	e8 98 41 ff ff       	call   10fed8 <fclose>                
  11bd40:	83 c4 10             	add    $0x10,%esp                     
}                                                                     
  11bd43:	8b 5d fc             	mov    -0x4(%ebp),%ebx                
  11bd46:	c9                   	leave                                 
  11bd47:	c3                   	ret                                   
                                                                      

0011bbf0 <lseek>: off_t lseek( int fd, off_t offset, int whence ) {
  11bbf0:	55                   	push   %ebp                           
  11bbf1:	89 e5                	mov    %esp,%ebp                      
  11bbf3:	57                   	push   %edi                           
  11bbf4:	56                   	push   %esi                           
  11bbf5:	53                   	push   %ebx                           
  11bbf6:	83 ec 1c             	sub    $0x1c,%esp                     
  11bbf9:	8b 5d 08             	mov    0x8(%ebp),%ebx                 
  11bbfc:	8b 45 0c             	mov    0xc(%ebp),%eax                 
  11bbff:	8b 55 10             	mov    0x10(%ebp),%edx                
  11bc02:	8b 4d 14             	mov    0x14(%ebp),%ecx                
  rtems_libio_t *iop;                                                 
  off_t          old_offset;                                          
  off_t          status;                                              
                                                                      
  rtems_libio_check_fd( fd );                                         
  11bc05:	3b 1d 44 f1 11 00    	cmp    0x11f144,%ebx                  
  11bc0b:	73 0f                	jae    11bc1c <lseek+0x2c>            
  iop = rtems_libio_iop( fd );                                        
  11bc0d:	6b db 38             	imul   $0x38,%ebx,%ebx                
  11bc10:	03 1d 00 31 12 00    	add    0x123100,%ebx                  
  rtems_libio_check_is_open(iop);                                     
  11bc16:	f6 43 15 01          	testb  $0x1,0x15(%ebx)                
  11bc1a:	75 0d                	jne    11bc29 <lseek+0x39>            
  11bc1c:	e8 5f 41 ff ff       	call   10fd80 <__errno>               
  11bc21:	c7 00 09 00 00 00    	movl   $0x9,(%eax)                    
  11bc27:	eb 4b                	jmp    11bc74 <lseek+0x84>            
                                                                      
  /*                                                                  
   *  Now process the lseek().                                        
   */                                                                 
                                                                      
  old_offset = iop->offset;                                           
  11bc29:	8b 73 0c             	mov    0xc(%ebx),%esi                 
  11bc2c:	8b 7b 10             	mov    0x10(%ebx),%edi                
  11bc2f:	89 75 e0             	mov    %esi,-0x20(%ebp)               
  11bc32:	89 7d e4             	mov    %edi,-0x1c(%ebp)               
  switch ( whence ) {                                                 
  11bc35:	83 f9 01             	cmp    $0x1,%ecx                      
  11bc38:	74 11                	je     11bc4b <lseek+0x5b>            
  11bc3a:	83 f9 02             	cmp    $0x2,%ecx                      
  11bc3d:	74 18                	je     11bc57 <lseek+0x67>            
  11bc3f:	85 c9                	test   %ecx,%ecx                      
  11bc41:	75 26                	jne    11bc69 <lseek+0x79>            
    case SEEK_SET:                                                    
      iop->offset = offset;                                           
  11bc43:	89 43 0c             	mov    %eax,0xc(%ebx)                 
  11bc46:	89 53 10             	mov    %edx,0x10(%ebx)                
      break;                                                          
  11bc49:	eb 30                	jmp    11bc7b <lseek+0x8b>            
                                                                      
    case SEEK_CUR:                                                    
      iop->offset += offset;                                          
  11bc4b:	8b 75 e0             	mov    -0x20(%ebp),%esi               
  11bc4e:	8b 7d e4             	mov    -0x1c(%ebp),%edi               
  11bc51:	01 c6                	add    %eax,%esi                      
  11bc53:	11 d7                	adc    %edx,%edi                      
  11bc55:	eb 0a                	jmp    11bc61 <lseek+0x71>            
      break;                                                          
                                                                      
    case SEEK_END:                                                    
      iop->offset = iop->size + offset;                               
  11bc57:	89 c6                	mov    %eax,%esi                      
  11bc59:	89 d7                	mov    %edx,%edi                      
  11bc5b:	03 73 04             	add    0x4(%ebx),%esi                 
  11bc5e:	13 7b 08             	adc    0x8(%ebx),%edi                 
  11bc61:	89 73 0c             	mov    %esi,0xc(%ebx)                 
  11bc64:	89 7b 10             	mov    %edi,0x10(%ebx)                
      break;                                                          
  11bc67:	eb 12                	jmp    11bc7b <lseek+0x8b>            
                                                                      
    default:                                                          
      rtems_set_errno_and_return_minus_one( EINVAL );                 
  11bc69:	e8 12 41 ff ff       	call   10fd80 <__errno>               
  11bc6e:	c7 00 16 00 00 00    	movl   $0x16,(%eax)                   
  11bc74:	83 c8 ff             	or     $0xffffffff,%eax               
  11bc77:	89 c2                	mov    %eax,%edx                      
  11bc79:	eb 23                	jmp    11bc9e <lseek+0xae>            
  /*                                                                  
   *  At this time, handlers assume iop->offset has the desired       
   *  new offset.                                                     
   */                                                                 
                                                                      
  status = (*iop->pathinfo.handlers->lseek_h)( iop, offset, whence ); 
  11bc7b:	8b 73 20             	mov    0x20(%ebx),%esi                
  11bc7e:	51                   	push   %ecx                           
  11bc7f:	52                   	push   %edx                           
  11bc80:	50                   	push   %eax                           
  11bc81:	53                   	push   %ebx                           
  11bc82:	ff 56 14             	call   *0x14(%esi)                    
  if ( status == (off_t) -1 )                                         
  11bc85:	83 c4 10             	add    $0x10,%esp                     
  11bc88:	83 fa ff             	cmp    $0xffffffff,%edx               
  11bc8b:	75 11                	jne    11bc9e <lseek+0xae>            
  11bc8d:	83 f8 ff             	cmp    $0xffffffff,%eax               
  11bc90:	75 0c                	jne    11bc9e <lseek+0xae>            <== NEVER TAKEN
    iop->offset = old_offset;                                         
  11bc92:	8b 75 e0             	mov    -0x20(%ebp),%esi               
  11bc95:	8b 7d e4             	mov    -0x1c(%ebp),%edi               
  11bc98:	89 73 0c             	mov    %esi,0xc(%ebx)                 
  11bc9b:	89 7b 10             	mov    %edi,0x10(%ebx)                
  /*                                                                  
   *  So if the operation failed, we have to restore iop->offset.     
   */                                                                 
                                                                      
  return status;                                                      
}                                                                     
  11bc9e:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  11bca1:	5b                   	pop    %ebx                           
  11bca2:	5e                   	pop    %esi                           
  11bca3:	5f                   	pop    %edi                           
  11bca4:	c9                   	leave                                 
  11bca5:	c3                   	ret                                   
                                                                      

00106c34 <malloc>: #include "malloc_p.h" void *malloc( size_t size ) {
  106c34:	55                   	push   %ebp                           
  106c35:	89 e5                	mov    %esp,%ebp                      
  106c37:	56                   	push   %esi                           
  106c38:	53                   	push   %ebx                           
  106c39:	8b 75 08             	mov    0x8(%ebp),%esi                 
  void        *return_this;                                           
                                                                      
  MSBUMP(malloc_calls, 1);                                            
  106c3c:	ff 05 1c 31 12 00    	incl   0x12311c                       
                                                                      
  /*                                                                  
   *  If some free's have been deferred, then do them now.            
   */                                                                 
  malloc_deferred_frees_process();                                    
  106c42:	e8 07 ff ff ff       	call   106b4e <malloc_deferred_frees_process>
                                                                      
  /*                                                                  
   * Validate the parameters                                          
   */                                                                 
  if ( !size )                                                        
    return (void *) 0;                                                
  106c47:	31 db                	xor    %ebx,%ebx                      
  malloc_deferred_frees_process();                                    
                                                                      
  /*                                                                  
   * Validate the parameters                                          
   */                                                                 
  if ( !size )                                                        
  106c49:	85 f6                	test   %esi,%esi                      
  106c4b:	74 78                	je     106cc5 <malloc+0x91>           
    return (void *) 0;                                                
                                                                      
  /*                                                                  
   *  Do not attempt to allocate memory if not in correct system state.
   */                                                                 
  if ( _System_state_Is_up(_System_state_Get()) &&                    
  106c4d:	83 3d 9c 33 12 00 03 	cmpl   $0x3,0x12339c                  
  106c54:	75 09                	jne    106c5f <malloc+0x2b>           
       !malloc_is_system_state_OK() )                                 
  106c56:	e8 b5 fe ff ff       	call   106b10 <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()) &&                    
  106c5b:	84 c0                	test   %al,%al                        
  106c5d:	74 66                	je     106cc5 <malloc+0x91>           <== NEVER TAKEN
RTEMS_INLINE_ROUTINE void *_Protected_heap_Allocate(                  
  Heap_Control *heap,                                                 
  uintptr_t size                                                      
)                                                                     
{                                                                     
  return _Protected_heap_Allocate_aligned_with_boundary( heap, size, 0, 0 );
  106c5f:	6a 00                	push   $0x0                           
  106c61:	6a 00                	push   $0x0                           
  106c63:	56                   	push   %esi                           
  106c64:	ff 35 80 f1 11 00    	pushl  0x11f180                       
  106c6a:	e8 61 41 00 00       	call   10add0 <_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 ) {                                               
  106c6f:	83 c4 10             	add    $0x10,%esp                     
  106c72:	89 c3                	mov    %eax,%ebx                      
  106c74:	85 c0                	test   %eax,%eax                      
  106c76:	75 28                	jne    106ca0 <malloc+0x6c>           
    if (rtems_malloc_sbrk_helpers)                                    
  106c78:	a1 f4 15 12 00       	mov    0x1215f4,%eax                  
  106c7d:	85 c0                	test   %eax,%eax                      
  106c7f:	74 10                	je     106c91 <malloc+0x5d>           
      return_this = (*rtems_malloc_sbrk_helpers->extend)( size );     
  106c81:	83 ec 0c             	sub    $0xc,%esp                      
  106c84:	56                   	push   %esi                           
  106c85:	ff 50 04             	call   *0x4(%eax)                     
  106c88:	89 c3                	mov    %eax,%ebx                      
    if ( !return_this ) {                                             
  106c8a:	83 c4 10             	add    $0x10,%esp                     
  106c8d:	85 c0                	test   %eax,%eax                      
  106c8f:	75 0f                	jne    106ca0 <malloc+0x6c>           
      errno = ENOMEM;                                                 
  106c91:	e8 ea 90 00 00       	call   10fd80 <__errno>               
  106c96:	c7 00 0c 00 00 00    	movl   $0xc,(%eax)                    
      return (void *) 0;                                              
  106c9c:	31 db                	xor    %ebx,%ebx                      
  106c9e:	eb 25                	jmp    106cc5 <malloc+0x91>           
  }                                                                   
                                                                      
  /*                                                                  
   *  If the user wants us to dirty the allocated memory, then do it. 
   */                                                                 
  if ( rtems_malloc_dirty_helper )                                    
  106ca0:	a1 f8 15 12 00       	mov    0x1215f8,%eax                  
  106ca5:	85 c0                	test   %eax,%eax                      
  106ca7:	74 09                	je     106cb2 <malloc+0x7e>           
    (*rtems_malloc_dirty_helper)( return_this, size );                
  106ca9:	52                   	push   %edx                           
  106caa:	52                   	push   %edx                           
  106cab:	56                   	push   %esi                           
  106cac:	53                   	push   %ebx                           
  106cad:	ff d0                	call   *%eax                          
  106caf:	83 c4 10             	add    $0x10,%esp                     
                                                                      
  /*                                                                  
   *  If configured, update the statistics                            
   */                                                                 
  if ( rtems_malloc_statistics_helpers )                              
  106cb2:	a1 f0 15 12 00       	mov    0x1215f0,%eax                  
  106cb7:	85 c0                	test   %eax,%eax                      
  106cb9:	74 0a                	je     106cc5 <malloc+0x91>           
    (*rtems_malloc_statistics_helpers->at_malloc)(return_this);       
  106cbb:	83 ec 0c             	sub    $0xc,%esp                      
  106cbe:	53                   	push   %ebx                           
  106cbf:	ff 50 04             	call   *0x4(%eax)                     
  106cc2:	83 c4 10             	add    $0x10,%esp                     
                                                                      
  return return_this;                                                 
}                                                                     
  106cc5:	89 d8                	mov    %ebx,%eax                      
  106cc7:	8d 65 f8             	lea    -0x8(%ebp),%esp                
  106cca:	5b                   	pop    %ebx                           
  106ccb:	5e                   	pop    %esi                           
  106ccc:	c9                   	leave                                 
  106ccd:	c3                   	ret                                   
                                                                      

00106f9c <malloc_sbrk_extend_and_allocate>: } void *malloc_sbrk_extend_and_allocate( size_t size ) {
  106f9c:	55                   	push   %ebp                           
  106f9d:	89 e5                	mov    %esp,%ebp                      
  106f9f:	57                   	push   %edi                           
  106fa0:	56                   	push   %esi                           
  106fa1:	53                   	push   %ebx                           
  106fa2:	83 ec 0c             	sub    $0xc,%esp                      
  106fa5:	8b 7d 08             	mov    0x8(%ebp),%edi                 
   *  Round to the "requested sbrk amount" so hopefully we won't have 
   *  to grow again for a while.  This effectively does sbrk() calls  
   *  in "page" amounts.                                              
   */                                                                 
                                                                      
  sbrk_amount = RTEMS_Malloc_Sbrk_amount;                             
  106fa8:	8b 0d fc 44 12 00    	mov    0x1244fc,%ecx                  
                                                                      
  if ( sbrk_amount == 0 )                                             
    return (void *) 0;                                                
  106fae:	31 f6                	xor    %esi,%esi                      
   *  in "page" amounts.                                              
   */                                                                 
                                                                      
  sbrk_amount = RTEMS_Malloc_Sbrk_amount;                             
                                                                      
  if ( sbrk_amount == 0 )                                             
  106fb0:	85 c9                	test   %ecx,%ecx                      
  106fb2:	74 67                	je     10701b <malloc_sbrk_extend_and_allocate+0x7f><== NEVER TAKEN
    return (void *) 0;                                                
                                                                      
  the_size = ((size + sbrk_amount) / sbrk_amount * sbrk_amount);      
  106fb4:	8d 1c 0f             	lea    (%edi,%ecx,1),%ebx             
  106fb7:	89 d8                	mov    %ebx,%eax                      
  106fb9:	31 d2                	xor    %edx,%edx                      
  106fbb:	f7 f1                	div    %ecx                           
  106fbd:	89 c3                	mov    %eax,%ebx                      
  106fbf:	0f af d9             	imul   %ecx,%ebx                      
                                                                      
  starting_address = (void *) sbrk(the_size);                         
  106fc2:	83 ec 0c             	sub    $0xc,%esp                      
  106fc5:	53                   	push   %ebx                           
  106fc6:	e8 88 94 ff ff       	call   100453 <sbrk>                  
  if ( starting_address == (void*) -1 )                               
  106fcb:	83 c4 10             	add    $0x10,%esp                     
  106fce:	83 f8 ff             	cmp    $0xffffffff,%eax               
  106fd1:	74 48                	je     10701b <malloc_sbrk_extend_and_allocate+0x7f><== NEVER TAKEN
    return (void *) 0;                                                
                                                                      
  if ( !_Protected_heap_Extend(                                       
  106fd3:	52                   	push   %edx                           
  106fd4:	53                   	push   %ebx                           
  106fd5:	50                   	push   %eax                           
  106fd6:	ff 35 e0 03 12 00    	pushl  0x1203e0                       
  106fdc:	e8 1b 41 00 00       	call   10b0fc <_Protected_heap_Extend>
  106fe1:	83 c4 10             	add    $0x10,%esp                     
  106fe4:	84 c0                	test   %al,%al                        
  106fe6:	75 18                	jne    107000 <malloc_sbrk_extend_and_allocate+0x64><== NEVER TAKEN
          RTEMS_Malloc_Heap, starting_address, the_size) ) {          
    sbrk(-the_size);                                                  
  106fe8:	83 ec 0c             	sub    $0xc,%esp                      
  106feb:	f7 db                	neg    %ebx                           
  106fed:	53                   	push   %ebx                           
  106fee:	e8 60 94 ff ff       	call   100453 <sbrk>                  
    errno = ENOMEM;                                                   
  106ff3:	e8 f0 92 00 00       	call   1102e8 <__errno>               
  106ff8:	c7 00 0c 00 00 00    	movl   $0xc,(%eax)                    
  106ffe:	eb 18                	jmp    107018 <malloc_sbrk_extend_and_allocate+0x7c>
    return (void *) 0;                                                
  }                                                                   
                                                                      
  MSBUMP(space_available, the_size);                                  
  107000:	01 1d d0 44 12 00    	add    %ebx,0x1244d0                  
  107006:	6a 00                	push   $0x0                           
  107008:	6a 00                	push   $0x0                           
  10700a:	57                   	push   %edi                           
  10700b:	ff 35 e0 03 12 00    	pushl  0x1203e0                       
  107011:	e8 ae 40 00 00       	call   10b0c4 <_Protected_heap_Allocate_aligned_with_boundary>
  107016:	89 c6                	mov    %eax,%esi                      
                                                                      
  return_this = _Protected_heap_Allocate( RTEMS_Malloc_Heap, size );  
  return return_this;                                                 
  107018:	83 c4 10             	add    $0x10,%esp                     
}                                                                     
  10701b:	89 f0                	mov    %esi,%eax                      
  10701d:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  107020:	5b                   	pop    %ebx                           
  107021:	5e                   	pop    %esi                           
  107022:	5f                   	pop    %edi                           
  107023:	c9                   	leave                                 
  107024:	c3                   	ret                                   
                                                                      

0010f37b <memfile_ftruncate>: */ int memfile_ftruncate( rtems_libio_t *iop, rtems_off64_t length ) {
  10f37b:	55                   	push   %ebp                           
  10f37c:	89 e5                	mov    %esp,%ebp                      
  10f37e:	53                   	push   %ebx                           
  10f37f:	83 ec 14             	sub    $0x14,%esp                     
  10f382:	8b 4d 08             	mov    0x8(%ebp),%ecx                 
  10f385:	8b 45 0c             	mov    0xc(%ebp),%eax                 
  10f388:	8b 55 10             	mov    0x10(%ebp),%edx                
  IMFS_jnode_t   *the_jnode;                                          
                                                                      
  the_jnode = iop->pathinfo.node_access;                              
  10f38b:	8b 59 18             	mov    0x18(%ecx),%ebx                
   *  POSIX 1003.1b does not specify what happens if you truncate a file
   *  and the new length is greater than the current size.  We treat this
   *  as an extend operation.                                         
   */                                                                 
                                                                      
  if ( length > the_jnode->info.file.size )                           
  10f38e:	3b 53 54             	cmp    0x54(%ebx),%edx                
  10f391:	7c 15                	jl     10f3a8 <memfile_ftruncate+0x2d><== NEVER TAKEN
  10f393:	7f 05                	jg     10f39a <memfile_ftruncate+0x1f><== NEVER TAKEN
  10f395:	3b 43 50             	cmp    0x50(%ebx),%eax                
  10f398:	76 0e                	jbe    10f3a8 <memfile_ftruncate+0x2d>
    return IMFS_memfile_extend( the_jnode, length );                  
  10f39a:	51                   	push   %ecx                           
  10f39b:	52                   	push   %edx                           
  10f39c:	50                   	push   %eax                           
  10f39d:	53                   	push   %ebx                           
  10f39e:	e8 bf fc ff ff       	call   10f062 <IMFS_memfile_extend>   
  10f3a3:	83 c4 10             	add    $0x10,%esp                     
  10f3a6:	eb 24                	jmp    10f3cc <memfile_ftruncate+0x51>
  /*                                                                  
   *  The in-memory files do not currently reclaim memory until the file is
   *  deleted.  So we leave the previously allocated blocks in place for
   *  future use and just set the length.                             
   */                                                                 
  the_jnode->info.file.size = length;                                 
  10f3a8:	89 43 50             	mov    %eax,0x50(%ebx)                
  10f3ab:	89 53 54             	mov    %edx,0x54(%ebx)                
  iop->size = the_jnode->info.file.size;                              
  10f3ae:	89 41 04             	mov    %eax,0x4(%ecx)                 
  10f3b1:	89 51 08             	mov    %edx,0x8(%ecx)                 
                                                                      
  IMFS_update_atime( the_jnode );                                     
  10f3b4:	50                   	push   %eax                           
  10f3b5:	50                   	push   %eax                           
  10f3b6:	6a 00                	push   $0x0                           
  10f3b8:	8d 45 f0             	lea    -0x10(%ebp),%eax               
  10f3bb:	50                   	push   %eax                           
  10f3bc:	e8 4f 76 ff ff       	call   106a10 <gettimeofday>          
  10f3c1:	8b 45 f0             	mov    -0x10(%ebp),%eax               
  10f3c4:	89 43 40             	mov    %eax,0x40(%ebx)                
                                                                      
  return 0;                                                           
  10f3c7:	83 c4 10             	add    $0x10,%esp                     
  10f3ca:	31 c0                	xor    %eax,%eax                      
}                                                                     
  10f3cc:	8b 5d fc             	mov    -0x4(%ebp),%ebx                
  10f3cf:	c9                   	leave                                 
  10f3d0:	c3                   	ret                                   
                                                                      

0010f3d1 <memfile_lseek>: rtems_off64_t memfile_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) {
  10f3d1:	55                   	push   %ebp                           
  10f3d2:	89 e5                	mov    %esp,%ebp                      
  10f3d4:	56                   	push   %esi                           
  10f3d5:	53                   	push   %ebx                           
  10f3d6:	8b 5d 08             	mov    0x8(%ebp),%ebx                 
  IMFS_jnode_t   *the_jnode;                                          
                                                                      
  the_jnode = iop->pathinfo.node_access;                              
  10f3d9:	8b 73 18             	mov    0x18(%ebx),%esi                
                                                                      
  if (the_jnode->type == IMFS_LINEAR_FILE) {                          
  10f3dc:	83 7e 4c 06          	cmpl   $0x6,0x4c(%esi)                
  10f3e0:	75 1a                	jne    10f3fc <memfile_lseek+0x2b>    
    if (iop->offset > the_jnode->info.linearfile.size)                
  10f3e2:	8b 56 50             	mov    0x50(%esi),%edx                
  10f3e5:	8b 46 54             	mov    0x54(%esi),%eax                
  10f3e8:	39 43 10             	cmp    %eax,0x10(%ebx)                
  10f3eb:	7c 41                	jl     10f42e <memfile_lseek+0x5d>    <== NEVER TAKEN
  10f3ed:	7f 05                	jg     10f3f4 <memfile_lseek+0x23>    <== NEVER TAKEN
  10f3ef:	39 53 0c             	cmp    %edx,0xc(%ebx)                 
  10f3f2:	76 3a                	jbe    10f42e <memfile_lseek+0x5d>    <== ALWAYS TAKEN
      iop->offset = the_jnode->info.linearfile.size;                  
  10f3f4:	89 53 0c             	mov    %edx,0xc(%ebx)                 <== NOT EXECUTED
  10f3f7:	89 43 10             	mov    %eax,0x10(%ebx)                <== NOT EXECUTED
  10f3fa:	eb 32                	jmp    10f42e <memfile_lseek+0x5d>    <== NOT EXECUTED
  }                                                                   
  else {  /* Must be a block file (IMFS_MEMORY_FILE). */              
    if (IMFS_memfile_extend( the_jnode, iop->offset ))                
  10f3fc:	50                   	push   %eax                           
  10f3fd:	ff 73 10             	pushl  0x10(%ebx)                     
  10f400:	ff 73 0c             	pushl  0xc(%ebx)                      
  10f403:	56                   	push   %esi                           
  10f404:	e8 59 fc ff ff       	call   10f062 <IMFS_memfile_extend>   
  10f409:	83 c4 10             	add    $0x10,%esp                     
  10f40c:	85 c0                	test   %eax,%eax                      
  10f40e:	74 12                	je     10f422 <memfile_lseek+0x51>    
      rtems_set_errno_and_return_minus_one( ENOSPC );                 
  10f410:	e8 6b 09 00 00       	call   10fd80 <__errno>               
  10f415:	c7 00 1c 00 00 00    	movl   $0x1c,(%eax)                   
  10f41b:	83 c8 ff             	or     $0xffffffff,%eax               
  10f41e:	89 c2                	mov    %eax,%edx                      
  10f420:	eb 12                	jmp    10f434 <memfile_lseek+0x63>    
                                                                      
    iop->size = the_jnode->info.file.size;                            
  10f422:	8b 46 50             	mov    0x50(%esi),%eax                
  10f425:	8b 56 54             	mov    0x54(%esi),%edx                
  10f428:	89 43 04             	mov    %eax,0x4(%ebx)                 
  10f42b:	89 53 08             	mov    %edx,0x8(%ebx)                 
  }                                                                   
  return iop->offset;                                                 
  10f42e:	8b 43 0c             	mov    0xc(%ebx),%eax                 
  10f431:	8b 53 10             	mov    0x10(%ebx),%edx                
}                                                                     
  10f434:	8d 65 f8             	lea    -0x8(%ebp),%esp                
  10f437:	5b                   	pop    %ebx                           
  10f438:	5e                   	pop    %esi                           
  10f439:	c9                   	leave                                 
  10f43a:	c3                   	ret                                   
                                                                      

0010f2ec <memfile_open>: rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) {
  10f2ec:	55                   	push   %ebp                           
  10f2ed:	89 e5                	mov    %esp,%ebp                      
  10f2ef:	56                   	push   %esi                           
  10f2f0:	53                   	push   %ebx                           
  10f2f1:	8b 75 08             	mov    0x8(%ebp),%esi                 
  IMFS_jnode_t  *the_jnode;                                           
                                                                      
  the_jnode = iop->pathinfo.node_access;                              
  10f2f4:	8b 5e 18             	mov    0x18(%esi),%ebx                
                                                                      
  /*                                                                  
   * Perform 'copy on write' for linear files                         
   */                                                                 
  if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND))         
  10f2f7:	f7 46 14 04 02 00 00 	testl  $0x204,0x14(%esi)              
  10f2fe:	74 54                	je     10f354 <memfile_open+0x68>     
   && (the_jnode->type == IMFS_LINEAR_FILE)) {                        
  10f300:	83 7b 4c 06          	cmpl   $0x6,0x4c(%ebx)                
  10f304:	75 4e                	jne    10f354 <memfile_open+0x68>     <== ALWAYS TAKEN
    uint32_t   count = the_jnode->info.linearfile.size;               
  10f306:	8b 43 50             	mov    0x50(%ebx),%eax                <== NOT EXECUTED
    const unsigned char *buffer = the_jnode->info.linearfile.direct;  
  10f309:	8b 53 58             	mov    0x58(%ebx),%edx                <== NOT EXECUTED
                                                                      
    the_jnode->type = IMFS_MEMORY_FILE;                               
  10f30c:	c7 43 4c 05 00 00 00 	movl   $0x5,0x4c(%ebx)                <== NOT EXECUTED
    the_jnode->info.file.size            = 0;                         
  10f313:	c7 43 50 00 00 00 00 	movl   $0x0,0x50(%ebx)                <== NOT EXECUTED
  10f31a:	c7 43 54 00 00 00 00 	movl   $0x0,0x54(%ebx)                <== NOT EXECUTED
    the_jnode->info.file.indirect        = 0;                         
  10f321:	c7 43 58 00 00 00 00 	movl   $0x0,0x58(%ebx)                <== NOT EXECUTED
    the_jnode->info.file.doubly_indirect = 0;                         
  10f328:	c7 43 5c 00 00 00 00 	movl   $0x0,0x5c(%ebx)                <== NOT EXECUTED
    the_jnode->info.file.triply_indirect = 0;                         
  10f32f:	c7 43 60 00 00 00 00 	movl   $0x0,0x60(%ebx)                <== NOT EXECUTED
    if ((count != 0)                                                  
  10f336:	85 c0                	test   %eax,%eax                      <== NOT EXECUTED
  10f338:	74 1a                	je     10f354 <memfile_open+0x68>     <== NOT EXECUTED
     && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1))      
  10f33a:	83 ec 0c             	sub    $0xc,%esp                      <== NOT EXECUTED
  10f33d:	50                   	push   %eax                           <== NOT EXECUTED
  10f33e:	52                   	push   %edx                           <== NOT EXECUTED
  10f33f:	6a 00                	push   $0x0                           <== NOT EXECUTED
  10f341:	6a 00                	push   $0x0                           <== NOT EXECUTED
  10f343:	53                   	push   %ebx                           <== NOT EXECUTED
  10f344:	e8 0b fe ff ff       	call   10f154 <IMFS_memfile_write>    <== NOT EXECUTED
  10f349:	89 c2                	mov    %eax,%edx                      <== NOT EXECUTED
  10f34b:	83 c4 20             	add    $0x20,%esp                     <== NOT EXECUTED
        return -1;                                                    
  10f34e:	83 c8 ff             	or     $0xffffffff,%eax               <== NOT EXECUTED
    the_jnode->info.file.size            = 0;                         
    the_jnode->info.file.indirect        = 0;                         
    the_jnode->info.file.doubly_indirect = 0;                         
    the_jnode->info.file.triply_indirect = 0;                         
    if ((count != 0)                                                  
     && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1))      
  10f351:	42                   	inc    %edx                           <== NOT EXECUTED
  10f352:	74 20                	je     10f374 <memfile_open+0x88>     <== NOT EXECUTED
        return -1;                                                    
  }                                                                   
  if (iop->flags & LIBIO_FLAGS_APPEND)                                
  10f354:	f6 46 15 02          	testb  $0x2,0x15(%esi)                
  10f358:	74 0c                	je     10f366 <memfile_open+0x7a>     
    iop->offset = the_jnode->info.file.size;                          
  10f35a:	8b 43 50             	mov    0x50(%ebx),%eax                
  10f35d:	8b 53 54             	mov    0x54(%ebx),%edx                
  10f360:	89 46 0c             	mov    %eax,0xc(%esi)                 
  10f363:	89 56 10             	mov    %edx,0x10(%esi)                
                                                                      
  iop->size = the_jnode->info.file.size;                              
  10f366:	8b 43 50             	mov    0x50(%ebx),%eax                
  10f369:	8b 53 54             	mov    0x54(%ebx),%edx                
  10f36c:	89 46 04             	mov    %eax,0x4(%esi)                 
  10f36f:	89 56 08             	mov    %edx,0x8(%esi)                 
  return 0;                                                           
  10f372:	31 c0                	xor    %eax,%eax                      
}                                                                     
  10f374:	8d 65 f8             	lea    -0x8(%ebp),%esp                
  10f377:	5b                   	pop    %ebx                           
  10f378:	5e                   	pop    %esi                           
  10f379:	c9                   	leave                                 
  10f37a:	c3                   	ret                                   
                                                                      

00106e29 <mount>: const char *target, const char *filesystemtype, rtems_filesystem_options_t options, const void *data ) {
  106e29:	55                   	push   %ebp                           
  106e2a:	89 e5                	mov    %esp,%ebp                      
  106e2c:	57                   	push   %edi                           
  106e2d:	56                   	push   %esi                           
  106e2e:	53                   	push   %ebx                           
  106e2f:	83 ec 4c             	sub    $0x4c,%esp                     
  106e32:	8b 75 10             	mov    0x10(%ebp),%esi                
                                                                      
  /*                                                                  
   *  Are the file system options valid?                              
   */                                                                 
                                                                      
  if ( options != RTEMS_FILESYSTEM_READ_ONLY &&                       
  106e35:	83 7d 14 01          	cmpl   $0x1,0x14(%ebp)                
  106e39:	77 13                	ja     106e4e <mount+0x25>            
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  /*                                                                  
   *  Get mount handler                                               
   */                                                                 
  mount_h = rtems_filesystem_get_mount_handler( filesystemtype );     
  106e3b:	83 ec 0c             	sub    $0xc,%esp                      
  106e3e:	56                   	push   %esi                           
  106e3f:	e8 5b 6b 00 00       	call   10d99f <rtems_filesystem_get_mount_handler>
  106e44:	89 45 b0             	mov    %eax,-0x50(%ebp)               
  if ( !mount_h )                                                     
  106e47:	83 c4 10             	add    $0x10,%esp                     
  106e4a:	85 c0                	test   %eax,%eax                      
  106e4c:	75 10                	jne    106e5e <mount+0x35>            
    rtems_set_errno_and_return_minus_one( EINVAL );                   
  106e4e:	e8 2d 8f 00 00       	call   10fd80 <__errno>               
  106e53:	c7 00 16 00 00 00    	movl   $0x16,(%eax)                   
  106e59:	e9 ca 00 00 00       	jmp    106f28 <mount+0xff>            
{                                                                     
  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;                                   
  106e5e:	83 7d 0c 00          	cmpl   $0x0,0xc(%ebp)                 
  106e62:	0f 95 45 b7          	setne  -0x49(%ebp)                    
  const char *target_or_null,                                         
  const char *filesystemtype,                                         
  size_t *target_length_ptr                                           
)                                                                     
{                                                                     
  const char *target = target_or_null != NULL ? target_or_null : "/"; 
  106e66:	8b 45 0c             	mov    0xc(%ebp),%eax                 
  106e69:	89 45 b8             	mov    %eax,-0x48(%ebp)               
  106e6c:	80 7d b7 00          	cmpb   $0x0,-0x49(%ebp)               
  106e70:	75 07                	jne    106e79 <mount+0x50>            
  106e72:	c7 45 b8 74 da 11 00 	movl   $0x11da74,-0x48(%ebp)          
  size_t filesystemtype_size = strlen( filesystemtype ) + 1;          
  106e79:	83 ca ff             	or     $0xffffffff,%edx               
  106e7c:	31 c0                	xor    %eax,%eax                      
  106e7e:	89 d1                	mov    %edx,%ecx                      
  106e80:	89 f7                	mov    %esi,%edi                      
  106e82:	f2 ae                	repnz scas %es:(%edi),%al             
  106e84:	f7 d1                	not    %ecx                           
  106e86:	89 4d bc             	mov    %ecx,-0x44(%ebp)               
  size_t source_size = source_or_null != NULL ?                       
    strlen( source_or_null ) + 1 : 0;                                 
  106e89:	c7 45 c4 00 00 00 00 	movl   $0x0,-0x3c(%ebp)               
  106e90:	83 7d 08 00          	cmpl   $0x0,0x8(%ebp)                 
  106e94:	74 0c                	je     106ea2 <mount+0x79>            
  106e96:	89 d1                	mov    %edx,%ecx                      
  106e98:	8b 7d 08             	mov    0x8(%ebp),%edi                 
  106e9b:	f2 ae                	repnz scas %es:(%edi),%al             
  106e9d:	f7 d1                	not    %ecx                           
  106e9f:	89 4d c4             	mov    %ecx,-0x3c(%ebp)               
  size_t target_size = strlen( target ) + 1;                          
  106ea2:	31 c0                	xor    %eax,%eax                      
  106ea4:	83 c9 ff             	or     $0xffffffff,%ecx               
  106ea7:	8b 7d b8             	mov    -0x48(%ebp),%edi               
  106eaa:	f2 ae                	repnz scas %es:(%edi),%al             
  106eac:	f7 d1                	not    %ecx                           
  106eae:	89 4d c0             	mov    %ecx,-0x40(%ebp)               
  106eb1:	49                   	dec    %ecx                           
  106eb2:	89 4d ac             	mov    %ecx,-0x54(%ebp)               
  size_t size = sizeof( rtems_filesystem_mount_table_entry_t )        
    + filesystemtype_size + source_size + target_size;                
  rtems_filesystem_mount_table_entry_t *mt_entry = calloc( 1, size ); 
  106eb5:	50                   	push   %eax                           
  106eb6:	50                   	push   %eax                           
  size_t filesystemtype_size = strlen( filesystemtype ) + 1;          
  size_t source_size = source_or_null != NULL ?                       
    strlen( source_or_null ) + 1 : 0;                                 
  size_t target_size = strlen( target ) + 1;                          
  size_t size = sizeof( rtems_filesystem_mount_table_entry_t )        
    + filesystemtype_size + source_size + target_size;                
  106eb7:	8b 55 c4             	mov    -0x3c(%ebp),%edx               
  106eba:	8b 7d bc             	mov    -0x44(%ebp),%edi               
  106ebd:	8d 44 3a 74          	lea    0x74(%edx,%edi,1),%eax         
  const char *target = target_or_null != NULL ? target_or_null : "/"; 
  size_t filesystemtype_size = strlen( filesystemtype ) + 1;          
  size_t source_size = source_or_null != NULL ?                       
    strlen( source_or_null ) + 1 : 0;                                 
  size_t target_size = strlen( target ) + 1;                          
  size_t size = sizeof( rtems_filesystem_mount_table_entry_t )        
  106ec1:	03 45 c0             	add    -0x40(%ebp),%eax               
    + filesystemtype_size + source_size + target_size;                
  rtems_filesystem_mount_table_entry_t *mt_entry = calloc( 1, size ); 
  106ec4:	50                   	push   %eax                           
  106ec5:	6a 01                	push   $0x1                           
  106ec7:	e8 60 f9 ff ff       	call   10682c <calloc>                
  106ecc:	89 c3                	mov    %eax,%ebx                      
                                                                      
  if ( mt_entry != NULL ) {                                           
  106ece:	83 c4 10             	add    $0x10,%esp                     
  106ed1:	85 c0                	test   %eax,%eax                      
  106ed3:	74 48                	je     106f1d <mount+0xf4>            <== NEVER TAKEN
    char *str = (char *) mt_entry + sizeof( *mt_entry );              
  106ed5:	8d 40 74             	lea    0x74(%eax),%eax                
                                                                      
    memcpy( str, filesystemtype, filesystemtype_size );               
  106ed8:	89 c7                	mov    %eax,%edi                      
  106eda:	8b 4d bc             	mov    -0x44(%ebp),%ecx               
  106edd:	f3 a4                	rep movsb %ds:(%esi),%es:(%edi)       
  106edf:	89 fa                	mov    %edi,%edx                      
    mt_entry->type = str;                                             
  106ee1:	89 43 6c             	mov    %eax,0x6c(%ebx)                
    str += filesystemtype_size;                                       
                                                                      
    memcpy( str, source_or_null, source_size );                       
  106ee4:	8b 75 08             	mov    0x8(%ebp),%esi                 
  106ee7:	8b 4d c4             	mov    -0x3c(%ebp),%ecx               
  106eea:	f3 a4                	rep movsb %ds:(%esi),%es:(%edi)       
  106eec:	89 f8                	mov    %edi,%eax                      
    mt_entry->dev = str;                                              
  106eee:	89 53 70             	mov    %edx,0x70(%ebx)                
    str += source_size;                                               
                                                                      
    memcpy( str, target, target_size );                               
  106ef1:	8b 75 b8             	mov    -0x48(%ebp),%esi               
  106ef4:	8b 4d c0             	mov    -0x40(%ebp),%ecx               
  106ef7:	f3 a4                	rep movsb %ds:(%esi),%es:(%edi)       
    mt_entry->target = str;                                           
  106ef9:	89 43 68             	mov    %eax,0x68(%ebx)                
    &target_length                                                    
  );                                                                  
  if ( !mt_entry )                                                    
    rtems_set_errno_and_return_minus_one( ENOMEM );                   
                                                                      
  mt_entry->mt_fs_root.mt_entry = mt_entry;                           
  106efc:	89 5b 2c             	mov    %ebx,0x2c(%ebx)                
  mt_entry->options = options;                                        
  106eff:	8b 45 14             	mov    0x14(%ebp),%eax                
  106f02:	89 43 30             	mov    %eax,0x30(%ebx)                
  mt_entry->pathconf_limits_and_options = rtems_filesystem_default_pathconf;
  106f05:	8d 7b 38             	lea    0x38(%ebx),%edi                
  106f08:	be b4 da 11 00       	mov    $0x11dab4,%esi                 
  106f0d:	b1 0c                	mov    $0xc,%cl                       
  106f0f:	f3 a5                	rep movsl %ds:(%esi),%es:(%edi)       
  /*                                                                  
   *  The mount_point should be a directory with read/write/execute   
   *  permissions in the existing tree.                               
   */                                                                 
                                                                      
  if ( has_target ) {                                                 
  106f11:	80 7d b7 00          	cmpb   $0x0,-0x49(%ebp)               
  106f15:	0f 84 a3 00 00 00    	je     106fbe <mount+0x195>           
  106f1b:	eb 13                	jmp    106f30 <mount+0x107>           
    target,                                                           
    filesystemtype,                                                   
    &target_length                                                    
  );                                                                  
  if ( !mt_entry )                                                    
    rtems_set_errno_and_return_minus_one( ENOMEM );                   
  106f1d:	e8 5e 8e 00 00       	call   10fd80 <__errno>               <== NOT EXECUTED
  106f22:	c7 00 0c 00 00 00    	movl   $0xc,(%eax)                    <== NOT EXECUTED
  106f28:	83 c8 ff             	or     $0xffffffff,%eax               
  106f2b:	e9 26 01 00 00       	jmp    107056 <mount+0x22d>           
   *  The mount_point should be a directory with read/write/execute   
   *  permissions in the existing tree.                               
   */                                                                 
                                                                      
  if ( has_target ) {                                                 
    if ( rtems_filesystem_evaluate_path(                              
  106f30:	83 ec 0c             	sub    $0xc,%esp                      
  106f33:	6a 01                	push   $0x1                           
  106f35:	8d 75 d4             	lea    -0x2c(%ebp),%esi               
  106f38:	56                   	push   %esi                           
  106f39:	6a 07                	push   $0x7                           
  106f3b:	ff 75 ac             	pushl  -0x54(%ebp)                    
  106f3e:	ff 75 0c             	pushl  0xc(%ebp)                      
  106f41:	e8 80 f9 ff ff       	call   1068c6 <rtems_filesystem_evaluate_path>
  106f46:	83 c4 20             	add    $0x20,%esp                     
  106f49:	40                   	inc    %eax                           
  106f4a:	0f 84 df 00 00 00    	je     10702f <mount+0x206>           <== NEVER TAKEN
                                                                      
    /*                                                                
     *  Test to see if it is a directory                              
     */                                                               
                                                                      
    if ( loc.ops->node_type_h( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) {
  106f50:	83 ec 0c             	sub    $0xc,%esp                      
  106f53:	56                   	push   %esi                           
  106f54:	8b 45 e0             	mov    -0x20(%ebp),%eax               
  106f57:	ff 50 10             	call   *0x10(%eax)                    
  106f5a:	83 c4 10             	add    $0x10,%esp                     
  106f5d:	48                   	dec    %eax                           
  106f5e:	74 10                	je     106f70 <mount+0x147>           
      errno = ENOTDIR;                                                
  106f60:	e8 1b 8e 00 00       	call   10fd80 <__errno>               
  106f65:	c7 00 14 00 00 00    	movl   $0x14,(%eax)                   
      goto cleanup_and_bail;                                          
  106f6b:	e9 c1 00 00 00       	jmp    107031 <mount+0x208>           
                                                                      
    /*                                                                
     *  You can only mount one file system onto a single mount point. 
     */                                                               
                                                                      
    if ( rtems_filesystem_mount_iterate( is_node_fs_root, loc.node_access ) ) {
  106f70:	57                   	push   %edi                           
  106f71:	57                   	push   %edi                           
  106f72:	ff 75 d4             	pushl  -0x2c(%ebp)                    
  106f75:	68 a0 6d 10 00       	push   $0x106da0                      
  106f7a:	e8 62 fe ff ff       	call   106de1 <rtems_filesystem_mount_iterate>
  106f7f:	83 c4 10             	add    $0x10,%esp                     
  106f82:	84 c0                	test   %al,%al                        
  106f84:	74 10                	je     106f96 <mount+0x16d>           
      errno = EBUSY;                                                  
  106f86:	e8 f5 8d 00 00       	call   10fd80 <__errno>               
  106f8b:	c7 00 10 00 00 00    	movl   $0x10,(%eax)                   
      goto cleanup_and_bail;                                          
  106f91:	e9 9b 00 00 00       	jmp    107031 <mount+0x208>           
     *  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;            
  106f96:	8b 45 d4             	mov    -0x2c(%ebp),%eax               
  106f99:	89 43 08             	mov    %eax,0x8(%ebx)                 
    mt_entry->mt_point_node.handlers = loc.handlers;                  
  106f9c:	8b 45 dc             	mov    -0x24(%ebp),%eax               
  106f9f:	89 43 10             	mov    %eax,0x10(%ebx)                
    mt_entry->mt_point_node.ops = loc.ops;                            
  106fa2:	8b 45 e0             	mov    -0x20(%ebp),%eax               
  106fa5:	89 43 14             	mov    %eax,0x14(%ebx)                
    mt_entry->mt_point_node.mt_entry = loc.mt_entry;                  
  106fa8:	8b 55 e4             	mov    -0x1c(%ebp),%edx               
  106fab:	89 53 18             	mov    %edx,0x18(%ebx)                
    /*                                                                
     *  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 ) ) {                             
  106fae:	83 ec 0c             	sub    $0xc,%esp                      
  106fb1:	53                   	push   %ebx                           
  106fb2:	ff 50 20             	call   *0x20(%eax)                    
  106fb5:	83 c4 10             	add    $0x10,%esp                     
  106fb8:	85 c0                	test   %eax,%eax                      
  106fba:	74 1d                	je     106fd9 <mount+0x1b0>           <== ALWAYS TAKEN
  106fbc:	eb 73                	jmp    107031 <mount+0x208>           <== NOT EXECUTED
)                                                                     
{                                                                     
  rtems_filesystem_fsmount_me_t mount_h = NULL;                       
  rtems_filesystem_location_info_t      loc;                          
  rtems_filesystem_mount_table_entry_t *mt_entry = NULL;              
  rtems_filesystem_location_info_t     *loc_to_free = NULL;           
  106fbe:	31 f6                	xor    %esi,%esi                      
    }                                                                 
  } else {                                                            
    /*                                                                
     * Do we already have a base file system ?                        
     */                                                               
    if ( !rtems_chain_is_empty( &mount_chain ) ) {                    
  106fc0:	81 3d 28 0f 12 00 2c 	cmpl   $0x120f2c,0x120f28             
  106fc7:	0f 12 00                                                    
  106fca:	74 0d                	je     106fd9 <mount+0x1b0>           <== ALWAYS TAKEN
      errno = EINVAL;                                                 
  106fcc:	e8 af 8d 00 00       	call   10fd80 <__errno>               <== NOT EXECUTED
  106fd1:	c7 00 16 00 00 00    	movl   $0x16,(%eax)                   <== NOT EXECUTED
      goto cleanup_and_bail;                                          
  106fd7:	eb 58                	jmp    107031 <mount+0x208>           <== NOT EXECUTED
     *  mt_point_node.node_access will be left to null to indicate that this
     *  is the root of the entire file system.                        
     */                                                               
  }                                                                   
                                                                      
  if ( (*mount_h)( mt_entry, data ) ) {                               
  106fd9:	51                   	push   %ecx                           
  106fda:	51                   	push   %ecx                           
  106fdb:	ff 75 18             	pushl  0x18(%ebp)                     
  106fde:	53                   	push   %ebx                           
  106fdf:	ff 55 b0             	call   *-0x50(%ebp)                   
  106fe2:	83 c4 10             	add    $0x10,%esp                     
  106fe5:	85 c0                	test   %eax,%eax                      
  106fe7:	74 0f                	je     106ff8 <mount+0x1cf>           
    /*                                                                
     * Try to undo the mount operation                                
     */                                                               
    loc.ops->unmount_h( mt_entry );                                   
  106fe9:	83 ec 0c             	sub    $0xc,%esp                      
  106fec:	53                   	push   %ebx                           
  106fed:	8b 45 e0             	mov    -0x20(%ebp),%eax               
  106ff0:	ff 50 28             	call   *0x28(%eax)                    
    goto cleanup_and_bail;                                            
  106ff3:	83 c4 10             	add    $0x10,%esp                     
  106ff6:	eb 39                	jmp    107031 <mount+0x208>           
  }                                                                   
                                                                      
  /*                                                                  
   *  Add the mount table entry to the mount table chain              
   */                                                                 
  rtems_libio_lock();                                                 
  106ff8:	e8 b4 fd ff ff       	call   106db1 <rtems_libio_lock>      
  106ffd:	52                   	push   %edx                           
  106ffe:	52                   	push   %edx                           
  106fff:	53                   	push   %ebx                           
  107000:	68 28 0f 12 00       	push   $0x120f28                      
  107005:	e8 5a 2f 00 00       	call   109f64 <_Chain_Append>         
  rtems_chain_append( &mount_chain, &mt_entry->Node );                
  rtems_libio_unlock();                                               
  10700a:	e8 bc fd ff ff       	call   106dcb <rtems_libio_unlock>    
                                                                      
  if ( !has_target )                                                  
  10700f:	83 c4 10             	add    $0x10,%esp                     
    rtems_filesystem_root = mt_entry->mt_fs_root;                     
                                                                      
  return 0;                                                           
  107012:	31 c0                	xor    %eax,%eax                      
   */                                                                 
  rtems_libio_lock();                                                 
  rtems_chain_append( &mount_chain, &mt_entry->Node );                
  rtems_libio_unlock();                                               
                                                                      
  if ( !has_target )                                                  
  107014:	80 7d b7 00          	cmpb   $0x0,-0x49(%ebp)               
  107018:	75 3c                	jne    107056 <mount+0x22d>           
    rtems_filesystem_root = mt_entry->mt_fs_root;                     
  10701a:	8b 3d 44 10 12 00    	mov    0x121044,%edi                  
  107020:	83 c7 18             	add    $0x18,%edi                     
  107023:	8d 73 1c             	lea    0x1c(%ebx),%esi                
  107026:	b9 05 00 00 00       	mov    $0x5,%ecx                      
  10702b:	f3 a5                	rep movsl %ds:(%esi),%es:(%edi)       
  10702d:	eb 27                	jmp    107056 <mount+0x22d>           
)                                                                     
{                                                                     
  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;           
  10702f:	31 f6                	xor    %esi,%esi                      
                                                                      
  return 0;                                                           
                                                                      
cleanup_and_bail:                                                     
                                                                      
  free( mt_entry );                                                   
  107031:	83 ec 0c             	sub    $0xc,%esp                      
  107034:	53                   	push   %ebx                           
  107035:	e8 5e f9 ff ff       	call   106998 <free>                  
                                                                      
  if ( loc_to_free )                                                  
  10703a:	83 c4 10             	add    $0x10,%esp                     
    rtems_filesystem_freenode( loc_to_free );                         
                                                                      
  return -1;                                                          
  10703d:	83 c8 ff             	or     $0xffffffff,%eax               
                                                                      
cleanup_and_bail:                                                     
                                                                      
  free( mt_entry );                                                   
                                                                      
  if ( loc_to_free )                                                  
  107040:	85 f6                	test   %esi,%esi                      
  107042:	74 12                	je     107056 <mount+0x22d>           <== NEVER TAKEN
    rtems_filesystem_freenode( loc_to_free );                         
  107044:	83 ec 0c             	sub    $0xc,%esp                      
  107047:	56                   	push   %esi                           
  107048:	89 45 a8             	mov    %eax,-0x58(%ebp)               
  10704b:	e8 34 f9 ff ff       	call   106984 <rtems_filesystem_freenode>
  107050:	83 c4 10             	add    $0x10,%esp                     
  107053:	8b 45 a8             	mov    -0x58(%ebp),%eax               
                                                                      
  return -1;                                                          
}                                                                     
  107056:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  107059:	5b                   	pop    %ebx                           
  10705a:	5e                   	pop    %esi                           
  10705b:	5f                   	pop    %edi                           
  10705c:	c9                   	leave                                 
  10705d:	c3                   	ret                                   
                                                                      

001073b0 <mount_and_make_target_path>: const char *target, const char *filesystemtype, rtems_filesystem_options_t options, const void *data ) {
  1073b0:	55                   	push   %ebp                           
  1073b1:	89 e5                	mov    %esp,%ebp                      
  1073b3:	57                   	push   %edi                           
  1073b4:	56                   	push   %esi                           
  1073b5:	53                   	push   %ebx                           
  1073b6:	83 ec 1c             	sub    $0x1c,%esp                     
  1073b9:	8b 4d 08             	mov    0x8(%ebp),%ecx                 
  1073bc:	8b 5d 0c             	mov    0xc(%ebp),%ebx                 
  1073bf:	8b 75 10             	mov    0x10(%ebp),%esi                
  1073c2:	8b 7d 14             	mov    0x14(%ebp),%edi                
  1073c5:	8b 55 18             	mov    0x18(%ebp),%edx                
  int rv = -1;                                                        
                                                                      
  if (target != NULL) {                                               
  1073c8:	85 db                	test   %ebx,%ebx                      
  1073ca:	74 3b                	je     107407 <mount_and_make_target_path+0x57>
    rv = rtems_mkdir(target, S_IRWXU | S_IRWXG | S_IRWXO);            
  1073cc:	50                   	push   %eax                           
  1073cd:	50                   	push   %eax                           
  1073ce:	68 ff 01 00 00       	push   $0x1ff                         
  1073d3:	53                   	push   %ebx                           
  1073d4:	89 55 e0             	mov    %edx,-0x20(%ebp)               
  1073d7:	89 4d e4             	mov    %ecx,-0x1c(%ebp)               
  1073da:	e8 bd 08 00 00       	call   107c9c <rtems_mkdir>           
    if (rv == 0) {                                                    
  1073df:	83 c4 10             	add    $0x10,%esp                     
  1073e2:	85 c0                	test   %eax,%eax                      
  1073e4:	8b 55 e0             	mov    -0x20(%ebp),%edx               
  1073e7:	8b 4d e4             	mov    -0x1c(%ebp),%ecx               
  1073ea:	75 29                	jne    107415 <mount_and_make_target_path+0x65><== NEVER TAKEN
      rv = mount(                                                     
  1073ec:	89 55 18             	mov    %edx,0x18(%ebp)                
  1073ef:	89 7d 14             	mov    %edi,0x14(%ebp)                
  1073f2:	89 75 10             	mov    %esi,0x10(%ebp)                
  1073f5:	89 5d 0c             	mov    %ebx,0xc(%ebp)                 
  1073f8:	89 4d 08             	mov    %ecx,0x8(%ebp)                 
  } else {                                                            
    errno = EINVAL;                                                   
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
  1073fb:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  1073fe:	5b                   	pop    %ebx                           
  1073ff:	5e                   	pop    %esi                           
  107400:	5f                   	pop    %edi                           
  107401:	c9                   	leave                                 
  int rv = -1;                                                        
                                                                      
  if (target != NULL) {                                               
    rv = rtems_mkdir(target, S_IRWXU | S_IRWXG | S_IRWXO);            
    if (rv == 0) {                                                    
      rv = mount(                                                     
  107402:	e9 a2 00 00 00       	jmp    1074a9 <mount>                 
        options,                                                      
        data                                                          
      );                                                              
    }                                                                 
  } else {                                                            
    errno = EINVAL;                                                   
  107407:	e8 90 8f 00 00       	call   11039c <__errno>               
  10740c:	c7 00 16 00 00 00    	movl   $0x16,(%eax)                   
  const char *filesystemtype,                                         
  rtems_filesystem_options_t options,                                 
  const void *data                                                    
)                                                                     
{                                                                     
  int rv = -1;                                                        
  107412:	83 c8 ff             	or     $0xffffffff,%eax               
  } else {                                                            
    errno = EINVAL;                                                   
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
  107415:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  107418:	5b                   	pop    %ebx                           
  107419:	5e                   	pop    %esi                           
  10741a:	5f                   	pop    %edi                           
  10741b:	c9                   	leave                                 
  10741c:	c3                   	ret                                   
                                                                      

0010732b <newlib_delete_hook>: void newlib_delete_hook( rtems_tcb *current_task, rtems_tcb *deleted_task ) {
  10732b:	55                   	push   %ebp                           
  10732c:	89 e5                	mov    %esp,%ebp                      
  10732e:	57                   	push   %edi                           
  10732f:	56                   	push   %esi                           
  107330:	53                   	push   %ebx                           
  107331:	83 ec 0c             	sub    $0xc,%esp                      
  107334:	8b 7d 08             	mov    0x8(%ebp),%edi                 
  107337:	8b 75 0c             	mov    0xc(%ebp),%esi                 
                                                                      
  /*                                                                  
   * The reentrancy structure was allocated by newlib using malloc()  
   */                                                                 
                                                                      
  if (current_task == deleted_task) {                                 
  10733a:	39 f7                	cmp    %esi,%edi                      
  10733c:	75 08                	jne    107346 <newlib_delete_hook+0x1b>
    ptr = _REENT;                                                     
  10733e:	8b 1d c0 10 12 00    	mov    0x1210c0,%ebx                  
  107344:	eb 06                	jmp    10734c <newlib_delete_hook+0x21>
  } else {                                                            
    ptr = deleted_task->libc_reent;                                   
  107346:	8b 9e e0 00 00 00    	mov    0xe0(%esi),%ebx                
  }                                                                   
                                                                      
  if (ptr && ptr != _global_impure_ptr) {                             
  10734c:	85 db                	test   %ebx,%ebx                      
  10734e:	74 20                	je     107370 <newlib_delete_hook+0x45><== NEVER TAKEN
  107350:	3b 1d a0 e3 11 00    	cmp    0x11e3a0,%ebx                  
  107356:	74 18                	je     107370 <newlib_delete_hook+0x45>
    _reclaim_reent(ptr);                                              
*/                                                                    
    /*                                                                
     *  Just in case there are some buffers lying around.             
     */                                                               
    _fwalk(ptr, newlib_free_buffers);                                 
  107358:	50                   	push   %eax                           
  107359:	50                   	push   %eax                           
  10735a:	68 68 70 10 00       	push   $0x107068                      
  10735f:	53                   	push   %ebx                           
  107360:	e8 03 92 00 00       	call   110568 <_fwalk>                
#if REENT_MALLOCED                                                    
    free(ptr);                                                        
#else                                                                 
    _Workspace_Free(ptr);                                             
  107365:	89 1c 24             	mov    %ebx,(%esp)                    
  107368:	e8 9a 50 00 00       	call   10c407 <_Workspace_Free>       
  10736d:	83 c4 10             	add    $0x10,%esp                     
#endif                                                                
  }                                                                   
                                                                      
  deleted_task->libc_reent = NULL;                                    
  107370:	c7 86 e0 00 00 00 00 	movl   $0x0,0xe0(%esi)                
  107377:	00 00 00                                                    
                                                                      
  /*                                                                  
   * Require the switch back to another task to install its own       
   */                                                                 
                                                                      
  if ( current_task == deleted_task ) {                               
  10737a:	39 f7                	cmp    %esi,%edi                      
  10737c:	75 0a                	jne    107388 <newlib_delete_hook+0x5d>
    _REENT = 0;                                                       
  10737e:	c7 05 c0 10 12 00 00 	movl   $0x0,0x1210c0                  
  107385:	00 00 00                                                    
  }                                                                   
}                                                                     
  107388:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  10738b:	5b                   	pop    %ebx                           
  10738c:	5e                   	pop    %esi                           
  10738d:	5f                   	pop    %edi                           
  10738e:	c9                   	leave                                 
  10738f:	c3                   	ret                                   
                                                                      

00107068 <newlib_free_buffers>: */ int newlib_free_buffers( FILE *fp ) {
  107068:	55                   	push   %ebp                           
  107069:	89 e5                	mov    %esp,%ebp                      
  10706b:	53                   	push   %ebx                           
  10706c:	83 ec 10             	sub    $0x10,%esp                     
  10706f:	8b 5d 08             	mov    0x8(%ebp),%ebx                 
  switch ( fileno(fp) ) {                                             
  107072:	53                   	push   %ebx                           
  107073:	e8 dc 90 00 00       	call   110154 <fileno>                
  107078:	83 c4 10             	add    $0x10,%esp                     
  10707b:	83 f8 02             	cmp    $0x2,%eax                      
  10707e:	77 26                	ja     1070a6 <newlib_free_buffers+0x3e><== NEVER TAKEN
    case 0:                                                           
    case 1:                                                           
    case 2:                                                           
      if (fp->_flags & __SMBF) {                                      
  107080:	f6 43 0c 80          	testb  $0x80,0xc(%ebx)                
  107084:	74 2c                	je     1070b2 <newlib_free_buffers+0x4a><== ALWAYS TAKEN
        free( fp->_bf._base );                                        
  107086:	83 ec 0c             	sub    $0xc,%esp                      <== NOT EXECUTED
  107089:	ff 73 10             	pushl  0x10(%ebx)                     <== NOT EXECUTED
  10708c:	e8 07 f9 ff ff       	call   106998 <free>                  <== NOT EXECUTED
        fp->_flags &= ~__SMBF;                                        
  107091:	66 81 63 0c 7f ff    	andw   $0xff7f,0xc(%ebx)              <== NOT EXECUTED
        fp->_bf._base = fp->_p = (unsigned char *) NULL;              
  107097:	c7 03 00 00 00 00    	movl   $0x0,(%ebx)                    <== NOT EXECUTED
  10709d:	c7 43 10 00 00 00 00 	movl   $0x0,0x10(%ebx)                <== NOT EXECUTED
  1070a4:	eb 09                	jmp    1070af <newlib_free_buffers+0x47><== NOT EXECUTED
      }                                                               
      break;                                                          
    default:                                                          
     fclose(fp);                                                      
  1070a6:	83 ec 0c             	sub    $0xc,%esp                      <== NOT EXECUTED
  1070a9:	53                   	push   %ebx                           <== NOT EXECUTED
  1070aa:	e8 29 8e 00 00       	call   10fed8 <fclose>                <== NOT EXECUTED
  1070af:	83 c4 10             	add    $0x10,%esp                     <== NOT EXECUTED
  }                                                                   
  return 0;                                                           
}                                                                     
  1070b2:	31 c0                	xor    %eax,%eax                      
  1070b4:	8b 5d fc             	mov    -0x4(%ebp),%ebx                
  1070b7:	c9                   	leave                                 
  1070b8:	c3                   	ret                                   
                                                                      

001073f0 <open>: int open( const char *pathname, int flags, ... ) {
  1073f0:	55                   	push   %ebp                           
  1073f1:	89 e5                	mov    %esp,%ebp                      
  1073f3:	57                   	push   %edi                           
  1073f4:	56                   	push   %esi                           
  1073f5:	53                   	push   %ebx                           
  1073f6:	83 ec 3c             	sub    $0x3c,%esp                     
                                                                      
  /*                                                                  
   * Set the Evaluation flags                                         
   */                                                                 
  eval_flags = 0;                                                     
  status = flags + 1;                                                 
  1073f9:	8b 45 0c             	mov    0xc(%ebp),%eax                 
  1073fc:	40                   	inc    %eax                           
  if ( ( status & _FREAD ) == _FREAD )                                
  1073fd:	89 c6                	mov    %eax,%esi                      
  1073ff:	83 e6 01             	and    $0x1,%esi                      
    eval_flags |= RTEMS_LIBIO_PERMS_READ;                             
  107402:	f7 de                	neg    %esi                           
  107404:	83 e6 04             	and    $0x4,%esi                      
  if ( ( status & _FWRITE ) == _FWRITE )                              
  107407:	a8 02                	test   $0x2,%al                       
  107409:	74 03                	je     10740e <open+0x1e>             
    eval_flags |= RTEMS_LIBIO_PERMS_WRITE;                            
  10740b:	83 ce 02             	or     $0x2,%esi                      
                                                                      
  va_start(ap, flags);                                                
                                                                      
  mode = va_arg( ap, int );                                           
  10740e:	8b 45 10             	mov    0x10(%ebp),%eax                
  107411:	89 45 c4             	mov    %eax,-0x3c(%ebp)               
   *             code does not require changes here since network file
   *             descriptors are obtained using socket(), not open(). 
   */                                                                 
                                                                      
  /* allocate a file control block */                                 
  iop = rtems_libio_allocate();                                       
  107414:	e8 6a 63 00 00       	call   10d783 <rtems_libio_allocate>  
  107419:	89 c3                	mov    %eax,%ebx                      
  if ( iop == 0 ) {                                                   
  10741b:	85 c0                	test   %eax,%eax                      
  10741d:	0f 84 56 01 00 00    	je     107579 <open+0x189>            
  }                                                                   
                                                                      
  /*                                                                  
   *  See if the file exists.                                         
   */                                                                 
  status = rtems_filesystem_evaluate_path(                            
  107423:	83 c9 ff             	or     $0xffffffff,%ecx               
  107426:	8b 7d 08             	mov    0x8(%ebp),%edi                 
  107429:	31 c0                	xor    %eax,%eax                      
  10742b:	f2 ae                	repnz scas %es:(%edi),%al             
  10742d:	f7 d1                	not    %ecx                           
  10742f:	49                   	dec    %ecx                           
  107430:	83 ec 0c             	sub    $0xc,%esp                      
  107433:	6a 01                	push   $0x1                           
  107435:	8d 45 d4             	lea    -0x2c(%ebp),%eax               
  107438:	50                   	push   %eax                           
  107439:	56                   	push   %esi                           
  10743a:	51                   	push   %ecx                           
  10743b:	ff 75 08             	pushl  0x8(%ebp)                      
  10743e:	e8 83 f4 ff ff       	call   1068c6 <rtems_filesystem_evaluate_path>
  107443:	89 c6                	mov    %eax,%esi                      
    pathname, strlen( pathname ), eval_flags, &loc, true );           
                                                                      
  if ( status == -1 ) {                                               
  107445:	83 c4 20             	add    $0x20,%esp                     
  107448:	83 f8 ff             	cmp    $0xffffffff,%eax               
  10744b:	75 6c                	jne    1074b9 <open+0xc9>             
    if ( errno != ENOENT ) {                                          
  10744d:	e8 2e 89 00 00       	call   10fd80 <__errno>               
  107452:	83 38 02             	cmpl   $0x2,(%eax)                    
  107455:	75 27                	jne    10747e <open+0x8e>             
      rc = errno;                                                     
      goto done;                                                      
    }                                                                 
                                                                      
    /* If the file does not exist and we are not trying to create it--> error */
    if ( !(flags & O_CREAT) ) {                                       
  107457:	f7 45 0c 00 02 00 00 	testl  $0x200,0xc(%ebp)               
  10745e:	0f 84 1c 01 00 00    	je     107580 <open+0x190>            
      rc = ENOENT;                                                    
      goto done;                                                      
    }                                                                 
                                                                      
    /* Create the node for the new regular file */                    
    rc = mknod( pathname, S_IFREG | mode, 0LL );                      
  107464:	6a 00                	push   $0x0                           
  107466:	6a 00                	push   $0x0                           
  107468:	8b 45 c4             	mov    -0x3c(%ebp),%eax               
  10746b:	80 cc 80             	or     $0x80,%ah                      
  10746e:	50                   	push   %eax                           
  10746f:	ff 75 08             	pushl  0x8(%ebp)                      
  107472:	e8 75 f8 ff ff       	call   106cec <mknod>                 
    if ( rc ) {                                                       
  107477:	83 c4 10             	add    $0x10,%esp                     
  10747a:	85 c0                	test   %eax,%eax                      
  10747c:	74 0e                	je     10748c <open+0x9c>             <== ALWAYS TAKEN
      rc = errno;                                                     
  10747e:	e8 fd 88 00 00       	call   10fd80 <__errno>               
  107483:	8b 30                	mov    (%eax),%esi                    
  int                                 mode;                           
  int                                 rc;                             
  rtems_libio_t                      *iop = 0;                        
  int                                 status;                         
  rtems_filesystem_location_info_t    loc;                            
  rtems_filesystem_location_info_t   *loc_to_free = NULL;             
  107485:	31 ff                	xor    %edi,%edi                      
                                                                      
    /* Create the node for the new regular file */                    
    rc = mknod( pathname, S_IFREG | mode, 0LL );                      
    if ( rc ) {                                                       
      rc = errno;                                                     
      goto done;                                                      
  107487:	e9 10 01 00 00       	jmp    10759c <open+0x1ac>            
    /*                                                                
     * After we do the mknod(), we have to evaluate the path to get the
     * "loc" structure needed to actually have the file itself open.  
     * So we created it, and then we need to have "look it up."       
     */                                                               
    status = rtems_filesystem_evaluate_path(                          
  10748c:	89 f1                	mov    %esi,%ecx                      
  10748e:	8b 7d 08             	mov    0x8(%ebp),%edi                 
  107491:	31 c0                	xor    %eax,%eax                      
  107493:	f2 ae                	repnz scas %es:(%edi),%al             
  107495:	f7 d1                	not    %ecx                           
  107497:	49                   	dec    %ecx                           
  107498:	83 ec 0c             	sub    $0xc,%esp                      
  10749b:	6a 01                	push   $0x1                           
  10749d:	8d 45 d4             	lea    -0x2c(%ebp),%eax               
  1074a0:	50                   	push   %eax                           
  1074a1:	6a 00                	push   $0x0                           
  1074a3:	51                   	push   %ecx                           
  1074a4:	ff 75 08             	pushl  0x8(%ebp)                      
  1074a7:	e8 1a f4 ff ff       	call   1068c6 <rtems_filesystem_evaluate_path>
      pathname, strlen( pathname ), 0x0, &loc, true );                
    if ( status != 0 ) {   /* The file did not exist */               
  1074ac:	83 c4 20             	add    $0x20,%esp                     
  1074af:	85 c0                	test   %eax,%eax                      
  1074b1:	0f 85 d2 00 00 00    	jne    107589 <open+0x199>            <== NEVER TAKEN
  1074b7:	eb 13                	jmp    1074cc <open+0xdc>             
      rc = EACCES;                                                    
      goto done;                                                      
    }                                                                 
                                                                      
  } else if ((flags & (O_EXCL|O_CREAT)) == (O_EXCL|O_CREAT)) {        
  1074b9:	8b 45 0c             	mov    0xc(%ebp),%eax                 
  1074bc:	25 00 0a 00 00       	and    $0xa00,%eax                    
  1074c1:	3d 00 0a 00 00       	cmp    $0xa00,%eax                    
  1074c6:	0f 84 c6 00 00 00    	je     107592 <open+0x1a2>            
                                                                      
  /*                                                                  
   *  Fill in the file control block based on the loc structure       
   *  returned by successful path evaluation.                         
   */                                                                 
  iop->flags     |= rtems_libio_fcntl_flags( flags );                 
  1074cc:	8b 73 14             	mov    0x14(%ebx),%esi                
  1074cf:	83 ec 0c             	sub    $0xc,%esp                      
  1074d2:	ff 75 0c             	pushl  0xc(%ebp)                      
  1074d5:	e8 36 62 00 00       	call   10d710 <rtems_libio_fcntl_flags>
  1074da:	09 f0                	or     %esi,%eax                      
  1074dc:	89 43 14             	mov    %eax,0x14(%ebx)                
  iop->pathinfo   = loc;                                              
  1074df:	8d 7b 18             	lea    0x18(%ebx),%edi                
  1074e2:	8d 75 d4             	lea    -0x2c(%ebp),%esi               
  1074e5:	b9 05 00 00 00       	mov    $0x5,%ecx                      
  1074ea:	f3 a5                	rep movsl %ds:(%esi),%es:(%edi)       
                                                                      
  rc = (*iop->pathinfo.handlers->open_h)( iop, pathname, flags, mode );
  1074ec:	8b 43 20             	mov    0x20(%ebx),%eax                
  1074ef:	ff 75 c4             	pushl  -0x3c(%ebp)                    
  1074f2:	ff 75 0c             	pushl  0xc(%ebp)                      
  1074f5:	ff 75 08             	pushl  0x8(%ebp)                      
  1074f8:	53                   	push   %ebx                           
  1074f9:	ff 10                	call   *(%eax)                        
  if ( rc ) {                                                         
  1074fb:	83 c4 20             	add    $0x20,%esp                     
  1074fe:	85 c0                	test   %eax,%eax                      
  107500:	74 0f                	je     107511 <open+0x121>            
    rc = errno;                                                       
  107502:	e8 79 88 00 00       	call   10fd80 <__errno>               
  107507:	8b 30                	mov    (%eax),%esi                    
    rc = EEXIST;                                                      
    loc_to_free = &loc;                                               
    goto done;                                                        
  }                                                                   
                                                                      
  loc_to_free = &loc;                                                 
  107509:	8d 7d d4             	lea    -0x2c(%ebp),%edi               
  iop->pathinfo   = loc;                                              
                                                                      
  rc = (*iop->pathinfo.handlers->open_h)( iop, pathname, flags, mode );
  if ( rc ) {                                                         
    rc = errno;                                                       
    goto done;                                                        
  10750c:	e9 8b 00 00 00       	jmp    10759c <open+0x1ac>            
  }                                                                   
                                                                      
  /*                                                                  
   *  Optionally truncate the file.                                   
   */                                                                 
  if ( (flags & O_TRUNC) == O_TRUNC ) {                               
  107511:	f7 45 0c 00 04 00 00 	testl  $0x400,0xc(%ebp)               
  107518:	0f 84 ae 00 00 00    	je     1075cc <open+0x1dc>            
    rc = ftruncate( iop - rtems_libio_iops, 0 );                      
  10751e:	50                   	push   %eax                           
  10751f:	6a 00                	push   $0x0                           
  107521:	6a 00                	push   $0x0                           
  107523:	89 d8                	mov    %ebx,%eax                      
  107525:	2b 05 00 31 12 00    	sub    0x123100,%eax                  
  10752b:	c1 f8 03             	sar    $0x3,%eax                      
  10752e:	69 c0 b7 6d db b6    	imul   $0xb6db6db7,%eax,%eax          
  107534:	50                   	push   %eax                           
  107535:	e8 ca 60 00 00       	call   10d604 <ftruncate>             
  10753a:	89 c6                	mov    %eax,%esi                      
    if ( rc ) {                                                       
  10753c:	83 c4 10             	add    $0x10,%esp                     
  10753f:	85 c0                	test   %eax,%eax                      
  107541:	0f 84 85 00 00 00    	je     1075cc <open+0x1dc>            
      if(errno) rc = errno;                                           
  107547:	e8 34 88 00 00       	call   10fd80 <__errno>               
  10754c:	83 38 00             	cmpl   $0x0,(%eax)                    
  10754f:	74 07                	je     107558 <open+0x168>            <== NEVER TAKEN
  107551:	e8 2a 88 00 00       	call   10fd80 <__errno>               
  107556:	8b 30                	mov    (%eax),%esi                    
      close( iop - rtems_libio_iops );                                
  107558:	83 ec 0c             	sub    $0xc,%esp                      
  10755b:	2b 1d 00 31 12 00    	sub    0x123100,%ebx                  
  107561:	c1 fb 03             	sar    $0x3,%ebx                      
  107564:	69 db b7 6d db b6    	imul   $0xb6db6db7,%ebx,%ebx          
  10756a:	53                   	push   %ebx                           
  10756b:	e8 24 60 00 00       	call   10d594 <close>                 
  107570:	83 c4 10             	add    $0x10,%esp                     
      /* those are released by close(): */                            
      iop = 0;                                                        
      loc_to_free = NULL;                                             
  107573:	31 ff                	xor    %edi,%edi                      
    rc = ftruncate( iop - rtems_libio_iops, 0 );                      
    if ( rc ) {                                                       
      if(errno) rc = errno;                                           
      close( iop - rtems_libio_iops );                                
      /* those are released by close(): */                            
      iop = 0;                                                        
  107575:	31 db                	xor    %ebx,%ebx                      
  107577:	eb 23                	jmp    10759c <open+0x1ac>            
   */                                                                 
                                                                      
  /* allocate a file control block */                                 
  iop = rtems_libio_allocate();                                       
  if ( iop == 0 ) {                                                   
    rc = ENFILE;                                                      
  107579:	be 17 00 00 00       	mov    $0x17,%esi                     
  10757e:	eb 40                	jmp    1075c0 <open+0x1d0>            
  int                                 mode;                           
  int                                 rc;                             
  rtems_libio_t                      *iop = 0;                        
  int                                 status;                         
  rtems_filesystem_location_info_t    loc;                            
  rtems_filesystem_location_info_t   *loc_to_free = NULL;             
  107580:	31 ff                	xor    %edi,%edi                      
      goto done;                                                      
    }                                                                 
                                                                      
    /* If the file does not exist and we are not trying to create it--> error */
    if ( !(flags & O_CREAT) ) {                                       
      rc = ENOENT;                                                    
  107582:	be 02 00 00 00       	mov    $0x2,%esi                      
  107587:	eb 17                	jmp    1075a0 <open+0x1b0>            
  int                                 mode;                           
  int                                 rc;                             
  rtems_libio_t                      *iop = 0;                        
  int                                 status;                         
  rtems_filesystem_location_info_t    loc;                            
  rtems_filesystem_location_info_t   *loc_to_free = NULL;             
  107589:	31 ff                	xor    %edi,%edi                      <== NOT EXECUTED
     * So we created it, and then we need to have "look it up."       
     */                                                               
    status = rtems_filesystem_evaluate_path(                          
      pathname, strlen( pathname ), 0x0, &loc, true );                
    if ( status != 0 ) {   /* The file did not exist */               
      rc = EACCES;                                                    
  10758b:	be 0d 00 00 00       	mov    $0xd,%esi                      <== NOT EXECUTED
  107590:	eb 0e                	jmp    1075a0 <open+0x1b0>            <== NOT EXECUTED
    }                                                                 
                                                                      
  } else if ((flags & (O_EXCL|O_CREAT)) == (O_EXCL|O_CREAT)) {        
    /* We were trying to create a file that already exists */         
    rc = EEXIST;                                                      
    loc_to_free = &loc;                                               
  107592:	8d 7d d4             	lea    -0x2c(%ebp),%edi               
      goto done;                                                      
    }                                                                 
                                                                      
  } else if ((flags & (O_EXCL|O_CREAT)) == (O_EXCL|O_CREAT)) {        
    /* We were trying to create a file that already exists */         
    rc = EEXIST;                                                      
  107595:	be 11 00 00 00       	mov    $0x11,%esi                     
  10759a:	eb 04                	jmp    1075a0 <open+0x1b0>            
   *  Single exit and clean up path.                                  
   */                                                                 
done:                                                                 
  va_end(ap);                                                         
                                                                      
  if ( rc ) {                                                         
  10759c:	85 f6                	test   %esi,%esi                      
  10759e:	74 2c                	je     1075cc <open+0x1dc>            <== NEVER TAKEN
    if ( iop )                                                        
  1075a0:	85 db                	test   %ebx,%ebx                      
  1075a2:	74 0c                	je     1075b0 <open+0x1c0>            
      rtems_libio_free( iop );                                        
  1075a4:	83 ec 0c             	sub    $0xc,%esp                      
  1075a7:	53                   	push   %ebx                           
  1075a8:	e8 4f 62 00 00       	call   10d7fc <rtems_libio_free>      
  1075ad:	83 c4 10             	add    $0x10,%esp                     
    if ( loc_to_free )                                                
  1075b0:	85 ff                	test   %edi,%edi                      
  1075b2:	74 0c                	je     1075c0 <open+0x1d0>            
      rtems_filesystem_freenode( loc_to_free );                       
  1075b4:	83 ec 0c             	sub    $0xc,%esp                      
  1075b7:	57                   	push   %edi                           
  1075b8:	e8 c7 f3 ff ff       	call   106984 <rtems_filesystem_freenode>
  1075bd:	83 c4 10             	add    $0x10,%esp                     
    rtems_set_errno_and_return_minus_one( rc );                       
  1075c0:	e8 bb 87 00 00       	call   10fd80 <__errno>               
  1075c5:	89 30                	mov    %esi,(%eax)                    
  1075c7:	83 c8 ff             	or     $0xffffffff,%eax               
  1075ca:	eb 0f                	jmp    1075db <open+0x1eb>            
  }                                                                   
                                                                      
  return iop - rtems_libio_iops;                                      
  1075cc:	2b 1d 00 31 12 00    	sub    0x123100,%ebx                  
  1075d2:	c1 fb 03             	sar    $0x3,%ebx                      
  1075d5:	69 c3 b7 6d db b6    	imul   $0xb6db6db7,%ebx,%eax          
}                                                                     
  1075db:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  1075de:	5b                   	pop    %ebx                           
  1075df:	5e                   	pop    %esi                           
  1075e0:	5f                   	pop    %edi                           
  1075e1:	c9                   	leave                                 
  1075e2:	c3                   	ret                                   
                                                                      

00108192 <oproc>: /* * Handle output processing */ static void oproc (unsigned char c, struct rtems_termios_tty *tty) {
  108192:	55                   	push   %ebp                           
  108193:	89 e5                	mov    %esp,%ebp                      
  108195:	56                   	push   %esi                           
  108196:	53                   	push   %ebx                           
  108197:	83 ec 10             	sub    $0x10,%esp                     
  10819a:	89 d3                	mov    %edx,%ebx                      
  10819c:	88 45 f4             	mov    %al,-0xc(%ebp)                 
  int  i;                                                             
                                                                      
  if (tty->termios.c_oflag & OPOST) {                                 
  10819f:	8b 52 34             	mov    0x34(%edx),%edx                
  1081a2:	f6 c2 01             	test   $0x1,%dl                       
  1081a5:	0f 84 ed 00 00 00    	je     108298 <oproc+0x106>           <== NEVER TAKEN
    switch (c) {                                                      
  1081ab:	3c 09                	cmp    $0x9,%al                       
  1081ad:	74 75                	je     108224 <oproc+0x92>            
  1081af:	77 0d                	ja     1081be <oproc+0x2c>            <== ALWAYS TAKEN
  1081b1:	3c 08                	cmp    $0x8,%al                       <== NOT EXECUTED
  1081b3:	0f 85 aa 00 00 00    	jne    108263 <oproc+0xd1>            <== NOT EXECUTED
  1081b9:	e9 98 00 00 00       	jmp    108256 <oproc+0xc4>            <== NOT EXECUTED
  1081be:	3c 0a                	cmp    $0xa,%al                       
  1081c0:	74 0a                	je     1081cc <oproc+0x3a>            
  1081c2:	3c 0d                	cmp    $0xd,%al                       
  1081c4:	0f 85 99 00 00 00    	jne    108263 <oproc+0xd1>            <== ALWAYS TAKEN
  1081ca:	eb 32                	jmp    1081fe <oproc+0x6c>            <== NOT EXECUTED
    case '\n':                                                        
      if (tty->termios.c_oflag & ONLRET)                              
  1081cc:	f6 c2 20             	test   $0x20,%dl                      
  1081cf:	74 07                	je     1081d8 <oproc+0x46>            <== ALWAYS TAKEN
        tty->column = 0;                                              
  1081d1:	c7 43 28 00 00 00 00 	movl   $0x0,0x28(%ebx)                <== NOT EXECUTED
      if (tty->termios.c_oflag & ONLCR) {                             
  1081d8:	80 e2 04             	and    $0x4,%dl                       
  1081db:	0f 84 b7 00 00 00    	je     108298 <oproc+0x106>           <== NEVER TAKEN
        rtems_termios_puts ("\r", 1, tty);                            
  1081e1:	56                   	push   %esi                           
  1081e2:	53                   	push   %ebx                           
  1081e3:	6a 01                	push   $0x1                           
  1081e5:	68 58 db 11 00       	push   $0x11db58                      
  1081ea:	e8 83 fe ff ff       	call   108072 <rtems_termios_puts>    
        tty->column = 0;                                              
  1081ef:	c7 43 28 00 00 00 00 	movl   $0x0,0x28(%ebx)                
  1081f6:	83 c4 10             	add    $0x10,%esp                     
  1081f9:	e9 9a 00 00 00       	jmp    108298 <oproc+0x106>           
      }                                                               
      break;                                                          
                                                                      
    case '\r':                                                        
      if ((tty->termios.c_oflag & ONOCR) && (tty->column == 0))       
  1081fe:	f6 c2 10             	test   $0x10,%dl                      <== NOT EXECUTED
  108201:	74 0a                	je     10820d <oproc+0x7b>            <== NOT EXECUTED
  108203:	83 7b 28 00          	cmpl   $0x0,0x28(%ebx)                <== NOT EXECUTED
  108207:	0f 84 9b 00 00 00    	je     1082a8 <oproc+0x116>           <== NOT EXECUTED
        return;                                                       
      if (tty->termios.c_oflag & OCRNL) {                             
  10820d:	f6 c2 08             	test   $0x8,%dl                       <== NOT EXECUTED
  108210:	74 09                	je     10821b <oproc+0x89>            <== NOT EXECUTED
        c = '\n';                                                     
  108212:	c6 45 f4 0a          	movb   $0xa,-0xc(%ebp)                <== NOT EXECUTED
        if (tty->termios.c_oflag & ONLRET)                            
  108216:	80 e2 20             	and    $0x20,%dl                      <== NOT EXECUTED
  108219:	74 7d                	je     108298 <oproc+0x106>           <== NOT EXECUTED
          tty->column = 0;                                            
        break;                                                        
      }                                                               
      tty->column = 0;                                                
  10821b:	c7 43 28 00 00 00 00 	movl   $0x0,0x28(%ebx)                <== NOT EXECUTED
      break;                                                          
  108222:	eb 74                	jmp    108298 <oproc+0x106>           <== NOT EXECUTED
                                                                      
    case '\t':                                                        
      i = 8 - (tty->column & 7);                                      
  108224:	8b 4b 28             	mov    0x28(%ebx),%ecx                
  108227:	89 ce                	mov    %ecx,%esi                      
  108229:	83 e6 07             	and    $0x7,%esi                      
  10822c:	b8 08 00 00 00       	mov    $0x8,%eax                      
  108231:	29 f0                	sub    %esi,%eax                      
      if ((tty->termios.c_oflag & TABDLY) == XTABS) {                 
  108233:	81 e2 00 18 00 00    	and    $0x1800,%edx                   
  108239:	81 fa 00 18 00 00    	cmp    $0x1800,%edx                   
  10823f:	8d 14 08             	lea    (%eax,%ecx,1),%edx             
  108242:	75 0d                	jne    108251 <oproc+0xbf>            <== NEVER TAKEN
        tty->column += i;                                             
  108244:	89 53 28             	mov    %edx,0x28(%ebx)                
        rtems_termios_puts ( "        ",  i, tty);                    
  108247:	51                   	push   %ecx                           
  108248:	53                   	push   %ebx                           
  108249:	50                   	push   %eax                           
  10824a:	68 18 d7 11 00       	push   $0x11d718                      
  10824f:	eb 4f                	jmp    1082a0 <oproc+0x10e>           
        return;                                                       
      }                                                               
      tty->column += i;                                               
  108251:	89 53 28             	mov    %edx,0x28(%ebx)                <== NOT EXECUTED
      break;                                                          
  108254:	eb 42                	jmp    108298 <oproc+0x106>           <== NOT EXECUTED
                                                                      
    case '\b':                                                        
      if (tty->column > 0)                                            
  108256:	8b 43 28             	mov    0x28(%ebx),%eax                <== NOT EXECUTED
  108259:	85 c0                	test   %eax,%eax                      <== NOT EXECUTED
  10825b:	7e 3b                	jle    108298 <oproc+0x106>           <== NOT EXECUTED
        tty->column--;                                                
  10825d:	48                   	dec    %eax                           <== NOT EXECUTED
  10825e:	89 43 28             	mov    %eax,0x28(%ebx)                <== NOT EXECUTED
  108261:	eb 35                	jmp    108298 <oproc+0x106>           <== NOT EXECUTED
      break;                                                          
                                                                      
    default:                                                          
      if (tty->termios.c_oflag & OLCUC)                               
  108263:	80 e2 02             	and    $0x2,%dl                       
  108266:	74 1c                	je     108284 <oproc+0xf2>            <== ALWAYS TAKEN
        c = toupper(c);                                               
  108268:	0f b6 c0             	movzbl %al,%eax                       <== NOT EXECUTED
  10826b:	8b 15 bc 10 12 00    	mov    0x1210bc,%edx                  <== NOT EXECUTED
  108271:	0f be 54 02 01       	movsbl 0x1(%edx,%eax,1),%edx          <== NOT EXECUTED
  108276:	83 e2 03             	and    $0x3,%edx                      <== NOT EXECUTED
  108279:	83 fa 02             	cmp    $0x2,%edx                      <== NOT EXECUTED
  10827c:	75 03                	jne    108281 <oproc+0xef>            <== NOT EXECUTED
  10827e:	83 e8 20             	sub    $0x20,%eax                     <== NOT EXECUTED
  108281:	88 45 f4             	mov    %al,-0xc(%ebp)                 <== NOT EXECUTED
      if (!iscntrl(c))                                                
  108284:	0f b6 45 f4          	movzbl -0xc(%ebp),%eax                
  108288:	8b 15 bc 10 12 00    	mov    0x1210bc,%edx                  
  10828e:	f6 44 02 01 20       	testb  $0x20,0x1(%edx,%eax,1)         
  108293:	75 03                	jne    108298 <oproc+0x106>           <== NEVER TAKEN
        tty->column++;                                                
  108295:	ff 43 28             	incl   0x28(%ebx)                     
      break;                                                          
    }                                                                 
  }                                                                   
  rtems_termios_puts (&c, 1, tty);                                    
  108298:	52                   	push   %edx                           
  108299:	53                   	push   %ebx                           
  10829a:	6a 01                	push   $0x1                           
  10829c:	8d 45 f4             	lea    -0xc(%ebp),%eax                
  10829f:	50                   	push   %eax                           
  1082a0:	e8 cd fd ff ff       	call   108072 <rtems_termios_puts>    
  1082a5:	83 c4 10             	add    $0x10,%esp                     
}                                                                     
  1082a8:	8d 65 f8             	lea    -0x8(%ebp),%esp                
  1082ab:	5b                   	pop    %ebx                           
  1082ac:	5e                   	pop    %esi                           
  1082ad:	c9                   	leave                                 
  1082ae:	c3                   	ret                                   
                                                                      

0010e3b8 <pipe_create>: * Called by pipe() to create an anonymous pipe. */ int pipe_create( int filsdes[2] ) {
  10e3b8:	55                   	push   %ebp                           
  10e3b9:	89 e5                	mov    %esp,%ebp                      
  10e3bb:	57                   	push   %edi                           
  10e3bc:	56                   	push   %esi                           
  10e3bd:	53                   	push   %ebx                           
  10e3be:	83 ec 34             	sub    $0x34,%esp                     
  rtems_libio_t *iop;                                                 
  int err = 0;                                                        
                                                                      
  if (rtems_mkdir("/tmp", S_IRWXU | S_IRWXG | S_IRWXO) != 0)          
  10e3c1:	68 ff 01 00 00       	push   $0x1ff                         
  10e3c6:	68 ec f3 11 00       	push   $0x11f3ec                      
  10e3cb:	e8 04 14 00 00       	call   10f7d4 <rtems_mkdir>           
  10e3d0:	83 c4 10             	add    $0x10,%esp                     
    return -1;                                                        
  10e3d3:	c7 45 d4 ff ff ff ff 	movl   $0xffffffff,-0x2c(%ebp)        
)                                                                     
{                                                                     
  rtems_libio_t *iop;                                                 
  int err = 0;                                                        
                                                                      
  if (rtems_mkdir("/tmp", S_IRWXU | S_IRWXG | S_IRWXO) != 0)          
  10e3da:	85 c0                	test   %eax,%eax                      
  10e3dc:	0f 85 e8 00 00 00    	jne    10e4ca <pipe_create+0x112>     <== NEVER TAKEN
    return -1;                                                        
                                                                      
  /* /tmp/.fifoXXXX */                                                
  char fifopath[15];                                                  
  memcpy(fifopath, "/tmp/.fifo", 10);                                 
  10e3e2:	8d 5d d9             	lea    -0x27(%ebp),%ebx               
  10e3e5:	be f1 f3 11 00       	mov    $0x11f3f1,%esi                 
  10e3ea:	b9 0a 00 00 00       	mov    $0xa,%ecx                      
  10e3ef:	89 df                	mov    %ebx,%edi                      
  10e3f1:	f3 a4                	rep movsb %ds:(%esi),%es:(%edi)       
  sprintf(fifopath + 10, "%04x", rtems_pipe_no ++);                   
  10e3f3:	0f b7 05 0c 50 12 00 	movzwl 0x12500c,%eax                  
  10e3fa:	8d 50 01             	lea    0x1(%eax),%edx                 
  10e3fd:	66 89 15 0c 50 12 00 	mov    %dx,0x12500c                   
  10e404:	57                   	push   %edi                           
  10e405:	50                   	push   %eax                           
  10e406:	68 fc f3 11 00       	push   $0x11f3fc                      
  10e40b:	8d 45 e3             	lea    -0x1d(%ebp),%eax               
  10e40e:	50                   	push   %eax                           
  10e40f:	e8 c8 36 00 00       	call   111adc <sprintf>               
                                                                      
  /* Try creating FIFO file until find an available file name */      
  while (mkfifo(fifopath, S_IRUSR|S_IWUSR) != 0) {                    
  10e414:	59                   	pop    %ecx                           
  10e415:	5e                   	pop    %esi                           
  10e416:	68 80 01 00 00       	push   $0x180                         
  10e41b:	53                   	push   %ebx                           
  10e41c:	e8 73 11 00 00       	call   10f594 <mkfifo>                
  10e421:	83 c4 10             	add    $0x10,%esp                     
  10e424:	85 c0                	test   %eax,%eax                      
  10e426:	74 0a                	je     10e432 <pipe_create+0x7a>      
    if (errno != EEXIST){                                             
  10e428:	e8 c3 2c 00 00       	call   1110f0 <__errno>               
  10e42d:	e9 98 00 00 00       	jmp    10e4ca <pipe_create+0x112>     
    return -1;                                                        
    /* sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); */           
  }                                                                   
                                                                      
  /* Non-blocking open to avoid waiting for writers */                
  filsdes[0] = open(fifopath, O_RDONLY | O_NONBLOCK);                 
  10e432:	52                   	push   %edx                           
  10e433:	52                   	push   %edx                           
  10e434:	68 00 40 00 00       	push   $0x4000                        
  10e439:	53                   	push   %ebx                           
  10e43a:	e8 a1 9f ff ff       	call   1083e0 <open>                  
  10e43f:	8b 55 08             	mov    0x8(%ebp),%edx                 
  10e442:	89 02                	mov    %eax,(%edx)                    
  if (filsdes[0] < 0) {                                               
  10e444:	83 c4 10             	add    $0x10,%esp                     
  10e447:	85 c0                	test   %eax,%eax                      
  10e449:	79 0d                	jns    10e458 <pipe_create+0xa0>      
    err = errno;                                                      
  10e44b:	e8 a0 2c 00 00       	call   1110f0 <__errno>               
  10e450:	8b 30                	mov    (%eax),%esi                    
    /* Delete file at errors, or else if pipe is successfully created 
     the file node will be deleted after it is closed by all. */      
    unlink(fifopath);                                                 
  10e452:	83 ec 0c             	sub    $0xc,%esp                      
  10e455:	53                   	push   %ebx                           
  10e456:	eb 51                	jmp    10e4a9 <pipe_create+0xf1>      
  }                                                                   
  else {                                                              
  /* Reset open file to blocking mode */                              
    iop = rtems_libio_iop(filsdes[0]);                                
  10e458:	31 d2                	xor    %edx,%edx                      
  10e45a:	3b 05 24 12 12 00    	cmp    0x121224,%eax                  
  10e460:	73 09                	jae    10e46b <pipe_create+0xb3>      <== NEVER TAKEN
  10e462:	6b d0 38             	imul   $0x38,%eax,%edx                
  10e465:	03 15 08 52 12 00    	add    0x125208,%edx                  
    iop->flags &= ~LIBIO_FLAGS_NO_DELAY;                              
  10e46b:	83 62 14 fe          	andl   $0xfffffffe,0x14(%edx)         
                                                                      
    filsdes[1] = open(fifopath, O_WRONLY);                            
  10e46f:	50                   	push   %eax                           
  10e470:	50                   	push   %eax                           
  10e471:	6a 01                	push   $0x1                           
  10e473:	8d 45 d9             	lea    -0x27(%ebp),%eax               
  10e476:	50                   	push   %eax                           
  10e477:	e8 64 9f ff ff       	call   1083e0 <open>                  
  10e47c:	8b 55 08             	mov    0x8(%ebp),%edx                 
  10e47f:	89 42 04             	mov    %eax,0x4(%edx)                 
                                                                      
    if (filsdes[1] < 0) {                                             
  10e482:	83 c4 10             	add    $0x10,%esp                     
int pipe_create(                                                      
  int filsdes[2]                                                      
)                                                                     
{                                                                     
  rtems_libio_t *iop;                                                 
  int err = 0;                                                        
  10e485:	31 f6                	xor    %esi,%esi                      
    iop = rtems_libio_iop(filsdes[0]);                                
    iop->flags &= ~LIBIO_FLAGS_NO_DELAY;                              
                                                                      
    filsdes[1] = open(fifopath, O_WRONLY);                            
                                                                      
    if (filsdes[1] < 0) {                                             
  10e487:	85 c0                	test   %eax,%eax                      
  10e489:	79 17                	jns    10e4a2 <pipe_create+0xea>      
    err = errno;                                                      
  10e48b:	e8 60 2c 00 00       	call   1110f0 <__errno>               
  10e490:	8b 30                	mov    (%eax),%esi                    
    close(filsdes[0]);                                                
  10e492:	83 ec 0c             	sub    $0xc,%esp                      
  10e495:	8b 45 08             	mov    0x8(%ebp),%eax                 
  10e498:	ff 30                	pushl  (%eax)                         
  10e49a:	e8 45 91 ff ff       	call   1075e4 <close>                 
  10e49f:	83 c4 10             	add    $0x10,%esp                     
    }                                                                 
  unlink(fifopath);                                                   
  10e4a2:	83 ec 0c             	sub    $0xc,%esp                      
  10e4a5:	8d 45 d9             	lea    -0x27(%ebp),%eax               
  10e4a8:	50                   	push   %eax                           
  10e4a9:	e8 ce ba ff ff       	call   109f7c <unlink>                
  10e4ae:	83 c4 10             	add    $0x10,%esp                     
  }                                                                   
  if(err != 0)                                                        
    rtems_set_errno_and_return_minus_one(err);                        
  return 0;                                                           
  10e4b1:	c7 45 d4 00 00 00 00 	movl   $0x0,-0x2c(%ebp)               
    err = errno;                                                      
    close(filsdes[0]);                                                
    }                                                                 
  unlink(fifopath);                                                   
  }                                                                   
  if(err != 0)                                                        
  10e4b8:	85 f6                	test   %esi,%esi                      
  10e4ba:	74 0e                	je     10e4ca <pipe_create+0x112>     
    rtems_set_errno_and_return_minus_one(err);                        
  10e4bc:	e8 2f 2c 00 00       	call   1110f0 <__errno>               
  10e4c1:	89 30                	mov    %esi,(%eax)                    
  10e4c3:	c7 45 d4 ff ff ff ff 	movl   $0xffffffff,-0x2c(%ebp)        
  return 0;                                                           
}                                                                     
  10e4ca:	8b 45 d4             	mov    -0x2c(%ebp),%eax               
  10e4cd:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  10e4d0:	5b                   	pop    %ebx                           
  10e4d1:	5e                   	pop    %esi                           
  10e4d2:	5f                   	pop    %edi                           
  10e4d3:	c9                   	leave                                 
  10e4d4:	c3                   	ret                                   
                                                                      

0010f5ce <pipe_ioctl>: pipe_control_t *pipe, uint32_t cmd, void *buffer, rtems_libio_t *iop ) {
  10f5ce:	55                   	push   %ebp                           
  10f5cf:	89 e5                	mov    %esp,%ebp                      
  10f5d1:	56                   	push   %esi                           
  10f5d2:	53                   	push   %ebx                           
  10f5d3:	8b 5d 08             	mov    0x8(%ebp),%ebx                 
  10f5d6:	8b 75 10             	mov    0x10(%ebp),%esi                
    *(unsigned int *)buffer = pipe->Length;                           
    PIPE_UNLOCK(pipe);                                                
    return 0;                                                         
  }                                                                   
                                                                      
  return -EINVAL;                                                     
  10f5d9:	b8 ea ff ff ff       	mov    $0xffffffea,%eax               
  uint32_t        cmd,                                                
  void           *buffer,                                             
  rtems_libio_t  *iop                                                 
)                                                                     
{                                                                     
  if (cmd == FIONREAD) {                                              
  10f5de:	81 7d 0c 7f 66 04 40 	cmpl   $0x4004667f,0xc(%ebp)          
  10f5e5:	75 36                	jne    10f61d <pipe_ioctl+0x4f>       
    if (buffer == NULL)                                               
      return -EFAULT;                                                 
  10f5e7:	b0 f2                	mov    $0xf2,%al                      
  void           *buffer,                                             
  rtems_libio_t  *iop                                                 
)                                                                     
{                                                                     
  if (cmd == FIONREAD) {                                              
    if (buffer == NULL)                                               
  10f5e9:	85 f6                	test   %esi,%esi                      
  10f5eb:	74 30                	je     10f61d <pipe_ioctl+0x4f>       
      return -EFAULT;                                                 
                                                                      
    if (! PIPE_LOCK(pipe))                                            
  10f5ed:	50                   	push   %eax                           
  10f5ee:	6a 00                	push   $0x0                           
  10f5f0:	6a 00                	push   $0x0                           
  10f5f2:	ff 73 28             	pushl  0x28(%ebx)                     
  10f5f5:	e8 f2 ba ff ff       	call   10b0ec <rtems_semaphore_obtain>
  10f5fa:	89 c2                	mov    %eax,%edx                      
  10f5fc:	83 c4 10             	add    $0x10,%esp                     
      return -EINTR;                                                  
  10f5ff:	b8 fc ff ff ff       	mov    $0xfffffffc,%eax               
{                                                                     
  if (cmd == FIONREAD) {                                              
    if (buffer == NULL)                                               
      return -EFAULT;                                                 
                                                                      
    if (! PIPE_LOCK(pipe))                                            
  10f604:	85 d2                	test   %edx,%edx                      
  10f606:	75 15                	jne    10f61d <pipe_ioctl+0x4f>       <== NEVER TAKEN
      return -EINTR;                                                  
                                                                      
    /* Return length of pipe */                                       
    *(unsigned int *)buffer = pipe->Length;                           
  10f608:	8b 43 0c             	mov    0xc(%ebx),%eax                 
  10f60b:	89 06                	mov    %eax,(%esi)                    
    PIPE_UNLOCK(pipe);                                                
  10f60d:	83 ec 0c             	sub    $0xc,%esp                      
  10f610:	ff 73 28             	pushl  0x28(%ebx)                     
  10f613:	e8 c0 bb ff ff       	call   10b1d8 <rtems_semaphore_release>
    return 0;                                                         
  10f618:	83 c4 10             	add    $0x10,%esp                     
  10f61b:	31 c0                	xor    %eax,%eax                      
  }                                                                   
                                                                      
  return -EINVAL;                                                     
}                                                                     
  10f61d:	8d 65 f8             	lea    -0x8(%ebp),%esp                
  10f620:	5b                   	pop    %ebx                           
  10f621:	5e                   	pop    %esi                           
  10f622:	c9                   	leave                                 
  10f623:	c3                   	ret                                   
                                                                      

0010f2d6 <pipe_read>: pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) {
  10f2d6:	55                   	push   %ebp                           
  10f2d7:	89 e5                	mov    %esp,%ebp                      
  10f2d9:	57                   	push   %edi                           
  10f2da:	56                   	push   %esi                           
  10f2db:	53                   	push   %ebx                           
  10f2dc:	83 ec 30             	sub    $0x30,%esp                     
  10f2df:	8b 5d 08             	mov    0x8(%ebp),%ebx                 
  int chunk, chunk1, read = 0, ret = 0;                               
                                                                      
  if (! PIPE_LOCK(pipe))                                              
  10f2e2:	6a 00                	push   $0x0                           
  10f2e4:	6a 00                	push   $0x0                           
  10f2e6:	ff 73 28             	pushl  0x28(%ebx)                     
  10f2e9:	e8 fe bd ff ff       	call   10b0ec <rtems_semaphore_obtain>
  10f2ee:	83 c4 10             	add    $0x10,%esp                     
    return -EINTR;                                                    
  10f2f1:	be fc ff ff ff       	mov    $0xfffffffc,%esi               
  rtems_libio_t  *iop                                                 
)                                                                     
{                                                                     
  int chunk, chunk1, read = 0, ret = 0;                               
                                                                      
  if (! PIPE_LOCK(pipe))                                              
  10f2f6:	85 c0                	test   %eax,%eax                      
  10f2f8:	0f 85 2f 01 00 00    	jne    10f42d <pipe_read+0x157>       <== NEVER TAKEN
  10f2fe:	c7 45 d0 00 00 00 00 	movl   $0x0,-0x30(%ebp)               
  10f305:	e9 f0 00 00 00       	jmp    10f3fa <pipe_read+0x124>       
    return -EINTR;                                                    
                                                                      
  while (read < count) {                                              
    while (PIPE_EMPTY(pipe)) {                                        
      /* Not an error */                                              
      if (pipe->Writers == 0)                                         
  10f30a:	83 7b 14 00          	cmpl   $0x0,0x14(%ebx)                
  10f30e:	0f 84 f2 00 00 00    	je     10f406 <pipe_read+0x130>       
        goto out_locked;                                              
                                                                      
      if (LIBIO_NODELAY(iop)) {                                       
  10f314:	8b 45 14             	mov    0x14(%ebp),%eax                
  10f317:	f6 40 14 01          	testb  $0x1,0x14(%eax)                
  10f31b:	0f 85 e9 00 00 00    	jne    10f40a <pipe_read+0x134>       
        ret = -EAGAIN;                                                
        goto out_locked;                                              
      }                                                               
                                                                      
      /* Wait until pipe is no more empty or no writer exists */      
      pipe->waitingReaders ++;                                        
  10f321:	ff 43 18             	incl   0x18(%ebx)                     
      PIPE_UNLOCK(pipe);                                              
  10f324:	83 ec 0c             	sub    $0xc,%esp                      
  10f327:	ff 73 28             	pushl  0x28(%ebx)                     
  10f32a:	e8 a9 be ff ff       	call   10b1d8 <rtems_semaphore_release>
      if (! PIPE_READWAIT(pipe))                                      
  10f32f:	5f                   	pop    %edi                           
  10f330:	58                   	pop    %eax                           
  10f331:	6a 00                	push   $0x0                           
  10f333:	ff 73 2c             	pushl  0x2c(%ebx)                     
  10f336:	e8 65 0d 00 00       	call   1100a0 <rtems_barrier_wait>    
  10f33b:	83 c4 0c             	add    $0xc,%esp                      
  10f33e:	83 f8 01             	cmp    $0x1,%eax                      
  10f341:	19 f6                	sbb    %esi,%esi                      
  10f343:	f7 d6                	not    %esi                           
  10f345:	83 e6 fc             	and    $0xfffffffc,%esi               
        ret = -EINTR;                                                 
      if (! PIPE_LOCK(pipe)) {                                        
  10f348:	6a 00                	push   $0x0                           
  10f34a:	6a 00                	push   $0x0                           
  10f34c:	ff 73 28             	pushl  0x28(%ebx)                     
  10f34f:	e8 98 bd ff ff       	call   10b0ec <rtems_semaphore_obtain>
  10f354:	83 c4 10             	add    $0x10,%esp                     
  10f357:	85 c0                	test   %eax,%eax                      
  10f359:	0f 85 c0 00 00 00    	jne    10f41f <pipe_read+0x149>       <== NEVER TAKEN
        /* WARN waitingReaders not restored! */                       
        ret = -EINTR;                                                 
        goto out_nolock;                                              
      }                                                               
      pipe->waitingReaders --;                                        
  10f35f:	ff 4b 18             	decl   0x18(%ebx)                     
      if (ret != 0)                                                   
  10f362:	85 f6                	test   %esi,%esi                      
  10f364:	0f 85 a5 00 00 00    	jne    10f40f <pipe_read+0x139>       <== NEVER TAKEN
                                                                      
  if (! PIPE_LOCK(pipe))                                              
    return -EINTR;                                                    
                                                                      
  while (read < count) {                                              
    while (PIPE_EMPTY(pipe)) {                                        
  10f36a:	8b 53 0c             	mov    0xc(%ebx),%edx                 
  10f36d:	85 d2                	test   %edx,%edx                      
  10f36f:	74 99                	je     10f30a <pipe_read+0x34>        
      if (ret != 0)                                                   
        goto out_locked;                                              
    }                                                                 
                                                                      
    /* Read chunk bytes */                                            
    chunk = MIN(count - read,  pipe->Length);                         
  10f371:	8b 45 10             	mov    0x10(%ebp),%eax                
  10f374:	2b 45 d0             	sub    -0x30(%ebp),%eax               
  10f377:	89 55 d4             	mov    %edx,-0x2c(%ebp)               
  10f37a:	39 c2                	cmp    %eax,%edx                      
  10f37c:	76 03                	jbe    10f381 <pipe_read+0xab>        
  10f37e:	89 45 d4             	mov    %eax,-0x2c(%ebp)               
    chunk1 = pipe->Size - pipe->Start;                                
  10f381:	8b 73 08             	mov    0x8(%ebx),%esi                 
  10f384:	8b 43 04             	mov    0x4(%ebx),%eax                 
  10f387:	29 f0                	sub    %esi,%eax                      
    if (chunk > chunk1) {                                             
  10f389:	39 45 d4             	cmp    %eax,-0x2c(%ebp)               
  10f38c:	8b 7d 0c             	mov    0xc(%ebp),%edi                 
  10f38f:	8b 4d d0             	mov    -0x30(%ebp),%ecx               
  10f392:	8d 14 0f             	lea    (%edi,%ecx,1),%edx             
  10f395:	7e 1b                	jle    10f3b2 <pipe_read+0xdc>        
      memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk1);      
  10f397:	03 33                	add    (%ebx),%esi                    
  10f399:	89 d7                	mov    %edx,%edi                      
  10f39b:	89 c1                	mov    %eax,%ecx                      
  10f39d:	f3 a4                	rep movsb %ds:(%esi),%es:(%edi)       
      memcpy(buffer + read + chunk1, pipe->Buffer, chunk - chunk1);   
  10f39f:	8b 55 d0             	mov    -0x30(%ebp),%edx               
  10f3a2:	01 c2                	add    %eax,%edx                      
  10f3a4:	03 55 0c             	add    0xc(%ebp),%edx                 
  10f3a7:	8b 4d d4             	mov    -0x2c(%ebp),%ecx               
  10f3aa:	29 c1                	sub    %eax,%ecx                      
  10f3ac:	8b 33                	mov    (%ebx),%esi                    
  10f3ae:	89 d7                	mov    %edx,%edi                      
  10f3b0:	eb 07                	jmp    10f3b9 <pipe_read+0xe3>        
    }                                                                 
    else                                                              
      memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk);       
  10f3b2:	03 33                	add    (%ebx),%esi                    
  10f3b4:	89 d7                	mov    %edx,%edi                      
  10f3b6:	8b 4d d4             	mov    -0x2c(%ebp),%ecx               
  10f3b9:	f3 a4                	rep movsb %ds:(%esi),%es:(%edi)       
                                                                      
    pipe->Start += chunk;                                             
  10f3bb:	8b 45 d4             	mov    -0x2c(%ebp),%eax               
  10f3be:	03 43 08             	add    0x8(%ebx),%eax                 
    pipe->Start %= pipe->Size;                                        
  10f3c1:	31 d2                	xor    %edx,%edx                      
  10f3c3:	f7 73 04             	divl   0x4(%ebx)                      
  10f3c6:	89 53 08             	mov    %edx,0x8(%ebx)                 
    pipe->Length -= chunk;                                            
  10f3c9:	8b 43 0c             	mov    0xc(%ebx),%eax                 
  10f3cc:	2b 45 d4             	sub    -0x2c(%ebp),%eax               
  10f3cf:	89 43 0c             	mov    %eax,0xc(%ebx)                 
    /* For buffering optimization */                                  
    if (PIPE_EMPTY(pipe))                                             
  10f3d2:	85 c0                	test   %eax,%eax                      
  10f3d4:	75 07                	jne    10f3dd <pipe_read+0x107>       
      pipe->Start = 0;                                                
  10f3d6:	c7 43 08 00 00 00 00 	movl   $0x0,0x8(%ebx)                 
                                                                      
    if (pipe->waitingWriters > 0)                                     
  10f3dd:	83 7b 1c 00          	cmpl   $0x0,0x1c(%ebx)                
  10f3e1:	74 11                	je     10f3f4 <pipe_read+0x11e>       
      PIPE_WAKEUPWRITERS(pipe);                                       
  10f3e3:	56                   	push   %esi                           
  10f3e4:	56                   	push   %esi                           
  10f3e5:	8d 45 e4             	lea    -0x1c(%ebp),%eax               
  10f3e8:	50                   	push   %eax                           
  10f3e9:	ff 73 30             	pushl  0x30(%ebx)                     
  10f3ec:	e8 57 0c 00 00       	call   110048 <rtems_barrier_release> 
  10f3f1:	83 c4 10             	add    $0x10,%esp                     
    read += chunk;                                                    
  10f3f4:	8b 4d d4             	mov    -0x2c(%ebp),%ecx               
  10f3f7:	01 4d d0             	add    %ecx,-0x30(%ebp)               
  int chunk, chunk1, read = 0, ret = 0;                               
                                                                      
  if (! PIPE_LOCK(pipe))                                              
    return -EINTR;                                                    
                                                                      
  while (read < count) {                                              
  10f3fa:	8b 7d 10             	mov    0x10(%ebp),%edi                
  10f3fd:	39 7d d0             	cmp    %edi,-0x30(%ebp)               
  10f400:	0f 82 64 ff ff ff    	jb     10f36a <pipe_read+0x94>        
    while (PIPE_EMPTY(pipe)) {                                        
      /* Not an error */                                              
      if (pipe->Writers == 0)                                         
  10f406:	31 f6                	xor    %esi,%esi                      
  10f408:	eb 05                	jmp    10f40f <pipe_read+0x139>       
        goto out_locked;                                              
                                                                      
      if (LIBIO_NODELAY(iop)) {                                       
        ret = -EAGAIN;                                                
  10f40a:	be f5 ff ff ff       	mov    $0xfffffff5,%esi               
      PIPE_WAKEUPWRITERS(pipe);                                       
    read += chunk;                                                    
  }                                                                   
                                                                      
out_locked:                                                           
  PIPE_UNLOCK(pipe);                                                  
  10f40f:	83 ec 0c             	sub    $0xc,%esp                      
  10f412:	ff 73 28             	pushl  0x28(%ebx)                     
  10f415:	e8 be bd ff ff       	call   10b1d8 <rtems_semaphore_release>
  10f41a:	83 c4 10             	add    $0x10,%esp                     
  10f41d:	eb 05                	jmp    10f424 <pipe_read+0x14e>       
      PIPE_UNLOCK(pipe);                                              
      if (! PIPE_READWAIT(pipe))                                      
        ret = -EINTR;                                                 
      if (! PIPE_LOCK(pipe)) {                                        
        /* WARN waitingReaders not restored! */                       
        ret = -EINTR;                                                 
  10f41f:	be fc ff ff ff       	mov    $0xfffffffc,%esi               <== NOT EXECUTED
                                                                      
out_locked:                                                           
  PIPE_UNLOCK(pipe);                                                  
                                                                      
out_nolock:                                                           
  if (read > 0)                                                       
  10f424:	83 7d d0 00          	cmpl   $0x0,-0x30(%ebp)               
  10f428:	7e 03                	jle    10f42d <pipe_read+0x157>       
  10f42a:	8b 75 d0             	mov    -0x30(%ebp),%esi               
    return read;                                                      
  return ret;                                                         
}                                                                     
  10f42d:	89 f0                	mov    %esi,%eax                      
  10f42f:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  10f432:	5b                   	pop    %ebx                           
  10f433:	5e                   	pop    %esi                           
  10f434:	5f                   	pop    %edi                           
  10f435:	c9                   	leave                                 
  10f436:	c3                   	ret                                   
                                                                      

0010eebd <pipe_release>: */ void pipe_release( pipe_control_t **pipep, rtems_libio_t *iop ) {
  10eebd:	55                   	push   %ebp                           
  10eebe:	89 e5                	mov    %esp,%ebp                      
  10eec0:	57                   	push   %edi                           
  10eec1:	56                   	push   %esi                           
  10eec2:	53                   	push   %ebx                           
  10eec3:	83 ec 1c             	sub    $0x1c,%esp                     
  10eec6:	8b 7d 08             	mov    0x8(%ebp),%edi                 
  pipe_control_t *pipe = *pipep;                                      
  10eec9:	8b 1f                	mov    (%edi),%ebx                    
    /* WARN pipe not released! */                                     
    if (!PIPE_LOCK(pipe))                                             
      rtems_fatal_error_occurred(0xdeadbeef);                         
  #endif                                                              
                                                                      
  mode = LIBIO_ACCMODE(iop);                                          
  10eecb:	8b 45 0c             	mov    0xc(%ebp),%eax                 
  10eece:	8b 40 14             	mov    0x14(%eax),%eax                
  10eed1:	89 c6                	mov    %eax,%esi                      
  10eed3:	83 e6 06             	and    $0x6,%esi                      
  if (mode & LIBIO_FLAGS_READ)                                        
  10eed6:	a8 02                	test   $0x2,%al                       
  10eed8:	74 03                	je     10eedd <pipe_release+0x20>     
     pipe->Readers --;                                                
  10eeda:	ff 4b 10             	decl   0x10(%ebx)                     
  if (mode & LIBIO_FLAGS_WRITE)                                       
  10eedd:	f7 c6 04 00 00 00    	test   $0x4,%esi                      
  10eee3:	74 03                	je     10eee8 <pipe_release+0x2b>     
     pipe->Writers --;                                                
  10eee5:	ff 4b 14             	decl   0x14(%ebx)                     
                                                                      
  PIPE_UNLOCK(pipe);                                                  
  10eee8:	83 ec 0c             	sub    $0xc,%esp                      
  10eeeb:	ff 73 28             	pushl  0x28(%ebx)                     
  10eeee:	e8 e5 c2 ff ff       	call   10b1d8 <rtems_semaphore_release>
                                                                      
  if (pipe->Readers == 0 && pipe->Writers == 0) {                     
  10eef3:	8b 43 10             	mov    0x10(%ebx),%eax                
  10eef6:	83 c4 10             	add    $0x10,%esp                     
  10eef9:	85 c0                	test   %eax,%eax                      
  10eefb:	75 15                	jne    10ef12 <pipe_release+0x55>     
  10eefd:	83 7b 14 00          	cmpl   $0x0,0x14(%ebx)                
  10ef01:	75 0f                	jne    10ef12 <pipe_release+0x55>     
#if 0                                                                 
    /* To delete an anonymous pipe file when all users closed it */   
    if (pipe->Anonymous)                                              
      delfile = TRUE;                                                 
#endif                                                                
    pipe_free(pipe);                                                  
  10ef03:	89 d8                	mov    %ebx,%eax                      
  10ef05:	e8 78 ff ff ff       	call   10ee82 <pipe_free>             
    *pipep = NULL;                                                    
  10ef0a:	c7 07 00 00 00 00    	movl   $0x0,(%edi)                    
  10ef10:	eb 30                	jmp    10ef42 <pipe_release+0x85>     
  }                                                                   
  else if (pipe->Readers == 0 && mode != LIBIO_FLAGS_WRITE)           
  10ef12:	83 fe 04             	cmp    $0x4,%esi                      
  10ef15:	74 0f                	je     10ef26 <pipe_release+0x69>     
  10ef17:	85 c0                	test   %eax,%eax                      
  10ef19:	75 0b                	jne    10ef26 <pipe_release+0x69>     <== NEVER TAKEN
    /* Notify waiting Writers that all their partners left */         
    PIPE_WAKEUPWRITERS(pipe);                                         
  10ef1b:	57                   	push   %edi                           
  10ef1c:	57                   	push   %edi                           
  10ef1d:	8d 45 e4             	lea    -0x1c(%ebp),%eax               
  10ef20:	50                   	push   %eax                           
  10ef21:	ff 73 30             	pushl  0x30(%ebx)                     
  10ef24:	eb 14                	jmp    10ef3a <pipe_release+0x7d>     
  else if (pipe->Writers == 0 && mode != LIBIO_FLAGS_READ)            
  10ef26:	83 fe 02             	cmp    $0x2,%esi                      
  10ef29:	74 17                	je     10ef42 <pipe_release+0x85>     <== NEVER TAKEN
  10ef2b:	83 7b 14 00          	cmpl   $0x0,0x14(%ebx)                
  10ef2f:	75 11                	jne    10ef42 <pipe_release+0x85>     <== NEVER TAKEN
    PIPE_WAKEUPREADERS(pipe);                                         
  10ef31:	56                   	push   %esi                           
  10ef32:	56                   	push   %esi                           
  10ef33:	8d 45 e4             	lea    -0x1c(%ebp),%eax               
  10ef36:	50                   	push   %eax                           
  10ef37:	ff 73 2c             	pushl  0x2c(%ebx)                     
  10ef3a:	e8 09 11 00 00       	call   110048 <rtems_barrier_release> 
  10ef3f:	83 c4 10             	add    $0x10,%esp                     
                                                                      
  pipe_unlock();                                                      
  10ef42:	e8 25 ff ff ff       	call   10ee6c <pipe_unlock>           
  iop->flags &= ~LIBIO_FLAGS_OPEN;                                    
  if(iop->pathinfo.ops->unlink_h(&iop->pathinfo))                     
    return;                                                           
#endif                                                                
                                                                      
}                                                                     
  10ef47:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  10ef4a:	5b                   	pop    %ebx                           
  10ef4b:	5e                   	pop    %esi                           
  10ef4c:	5f                   	pop    %edi                           
  10ef4d:	c9                   	leave                                 
  10ef4e:	c3                   	ret                                   
                                                                      

0010f437 <pipe_write>: pipe_control_t *pipe, const void *buffer, size_t count, rtems_libio_t *iop ) {
  10f437:	55                   	push   %ebp                           
  10f438:	89 e5                	mov    %esp,%ebp                      
  10f43a:	57                   	push   %edi                           
  10f43b:	56                   	push   %esi                           
  10f43c:	53                   	push   %ebx                           
  10f43d:	83 ec 2c             	sub    $0x2c,%esp                     
  10f440:	8b 5d 08             	mov    0x8(%ebp),%ebx                 
  int chunk, chunk1, written = 0, ret = 0;                            
                                                                      
  /* Write nothing */                                                 
  if (count == 0)                                                     
    return 0;                                                         
  10f443:	31 f6                	xor    %esi,%esi                      
)                                                                     
{                                                                     
  int chunk, chunk1, written = 0, ret = 0;                            
                                                                      
  /* Write nothing */                                                 
  if (count == 0)                                                     
  10f445:	83 7d 10 00          	cmpl   $0x0,0x10(%ebp)                
  10f449:	0f 84 75 01 00 00    	je     10f5c4 <pipe_write+0x18d>      <== NEVER TAKEN
    return 0;                                                         
                                                                      
  if (! PIPE_LOCK(pipe))                                              
  10f44f:	57                   	push   %edi                           
  10f450:	6a 00                	push   $0x0                           
  10f452:	6a 00                	push   $0x0                           
  10f454:	ff 73 28             	pushl  0x28(%ebx)                     
  10f457:	e8 90 bc ff ff       	call   10b0ec <rtems_semaphore_obtain>
  10f45c:	83 c4 10             	add    $0x10,%esp                     
    return -EINTR;                                                    
  10f45f:	be fc ff ff ff       	mov    $0xfffffffc,%esi               
                                                                      
  /* Write nothing */                                                 
  if (count == 0)                                                     
    return 0;                                                         
                                                                      
  if (! PIPE_LOCK(pipe))                                              
  10f464:	85 c0                	test   %eax,%eax                      
  10f466:	0f 85 58 01 00 00    	jne    10f5c4 <pipe_write+0x18d>      <== NEVER TAKEN
    return -EINTR;                                                    
                                                                      
  if (pipe->Readers == 0) {                                           
  10f46c:	83 7b 10 00          	cmpl   $0x0,0x10(%ebx)                
  10f470:	0f 84 16 01 00 00    	je     10f58c <pipe_write+0x155>      
    ret = -EPIPE;                                                     
    goto out_locked;                                                  
  }                                                                   
                                                                      
  /* Write of PIPE_BUF bytes or less shall not be interleaved */      
  chunk = count <= pipe->Size ? count : 1;                            
  10f476:	bf 01 00 00 00       	mov    $0x1,%edi                      
  10f47b:	8b 45 10             	mov    0x10(%ebp),%eax                
  10f47e:	3b 43 04             	cmp    0x4(%ebx),%eax                 
  10f481:	77 02                	ja     10f485 <pipe_write+0x4e>       <== NEVER TAKEN
  10f483:	89 c7                	mov    %eax,%edi                      
                                                                      
      /* Wait until there is chunk bytes space or no reader exists */ 
      pipe->waitingWriters ++;                                        
      PIPE_UNLOCK(pipe);                                              
      if (! PIPE_WRITEWAIT(pipe))                                     
        ret = -EINTR;                                                 
  10f485:	c7 45 d4 00 00 00 00 	movl   $0x0,-0x2c(%ebp)               
  10f48c:	e9 eb 00 00 00       	jmp    10f57c <pipe_write+0x145>      
  /* Write of PIPE_BUF bytes or less shall not be interleaved */      
  chunk = count <= pipe->Size ? count : 1;                            
                                                                      
  while (written < count) {                                           
    while (PIPE_SPACE(pipe) < chunk) {                                
      if (LIBIO_NODELAY(iop)) {                                       
  10f491:	8b 4d 14             	mov    0x14(%ebp),%ecx                
  10f494:	f6 41 14 01          	testb  $0x1,0x14(%ecx)                
  10f498:	0f 85 fc 00 00 00    	jne    10f59a <pipe_write+0x163>      
        ret = -EAGAIN;                                                
        goto out_locked;                                              
      }                                                               
                                                                      
      /* Wait until there is chunk bytes space or no reader exists */ 
      pipe->waitingWriters ++;                                        
  10f49e:	ff 43 1c             	incl   0x1c(%ebx)                     
      PIPE_UNLOCK(pipe);                                              
  10f4a1:	83 ec 0c             	sub    $0xc,%esp                      
  10f4a4:	ff 73 28             	pushl  0x28(%ebx)                     
  10f4a7:	e8 2c bd ff ff       	call   10b1d8 <rtems_semaphore_release>
      if (! PIPE_WRITEWAIT(pipe))                                     
  10f4ac:	59                   	pop    %ecx                           
  10f4ad:	5e                   	pop    %esi                           
  10f4ae:	6a 00                	push   $0x0                           
  10f4b0:	ff 73 30             	pushl  0x30(%ebx)                     
  10f4b3:	e8 e8 0b 00 00       	call   1100a0 <rtems_barrier_wait>    
  10f4b8:	83 c4 0c             	add    $0xc,%esp                      
  10f4bb:	83 f8 01             	cmp    $0x1,%eax                      
  10f4be:	19 f6                	sbb    %esi,%esi                      
  10f4c0:	f7 d6                	not    %esi                           
  10f4c2:	83 e6 fc             	and    $0xfffffffc,%esi               
        ret = -EINTR;                                                 
      if (! PIPE_LOCK(pipe)) {                                        
  10f4c5:	6a 00                	push   $0x0                           
  10f4c7:	6a 00                	push   $0x0                           
  10f4c9:	ff 73 28             	pushl  0x28(%ebx)                     
  10f4cc:	e8 1b bc ff ff       	call   10b0ec <rtems_semaphore_obtain>
  10f4d1:	83 c4 10             	add    $0x10,%esp                     
  10f4d4:	85 c0                	test   %eax,%eax                      
  10f4d6:	0f 85 da 00 00 00    	jne    10f5b6 <pipe_write+0x17f>      <== NEVER TAKEN
        /* WARN waitingWriters not restored! */                       
        ret = -EINTR;                                                 
        goto out_nolock;                                              
      }                                                               
      pipe->waitingWriters --;                                        
  10f4dc:	ff 4b 1c             	decl   0x1c(%ebx)                     
      if (ret != 0)                                                   
  10f4df:	85 f6                	test   %esi,%esi                      
  10f4e1:	0f 85 bf 00 00 00    	jne    10f5a6 <pipe_write+0x16f>      <== NEVER TAKEN
        goto out_locked;                                              
                                                                      
      if (pipe->Readers == 0) {                                       
  10f4e7:	83 7b 10 00          	cmpl   $0x0,0x10(%ebx)                
  10f4eb:	0f 84 b0 00 00 00    	je     10f5a1 <pipe_write+0x16a>      <== NEVER TAKEN
                                                                      
  /* Write of PIPE_BUF bytes or less shall not be interleaved */      
  chunk = count <= pipe->Size ? count : 1;                            
                                                                      
  while (written < count) {                                           
    while (PIPE_SPACE(pipe) < chunk) {                                
  10f4f1:	8b 73 04             	mov    0x4(%ebx),%esi                 
  10f4f4:	8b 43 0c             	mov    0xc(%ebx),%eax                 
  10f4f7:	89 f1                	mov    %esi,%ecx                      
  10f4f9:	29 c1                	sub    %eax,%ecx                      
  10f4fb:	39 f9                	cmp    %edi,%ecx                      
  10f4fd:	72 92                	jb     10f491 <pipe_write+0x5a>       
        ret = -EPIPE;                                                 
        goto out_locked;                                              
      }                                                               
    }                                                                 
                                                                      
    chunk = MIN(count - written, PIPE_SPACE(pipe));                   
  10f4ff:	8b 55 10             	mov    0x10(%ebp),%edx                
  10f502:	2b 55 d4             	sub    -0x2c(%ebp),%edx               
  10f505:	89 4d d0             	mov    %ecx,-0x30(%ebp)               
  10f508:	39 d1                	cmp    %edx,%ecx                      
  10f50a:	76 03                	jbe    10f50f <pipe_write+0xd8>       
  10f50c:	89 55 d0             	mov    %edx,-0x30(%ebp)               
    chunk1 = pipe->Size - PIPE_WSTART(pipe);                          
  10f50f:	03 43 08             	add    0x8(%ebx),%eax                 
  10f512:	31 d2                	xor    %edx,%edx                      
  10f514:	f7 f6                	div    %esi                           
  10f516:	29 d6                	sub    %edx,%esi                      
  10f518:	89 75 cc             	mov    %esi,-0x34(%ebp)               
    if (chunk > chunk1) {                                             
  10f51b:	39 75 d0             	cmp    %esi,-0x30(%ebp)               
  10f51e:	8b 4d 0c             	mov    0xc(%ebp),%ecx                 
  10f521:	8b 45 d4             	mov    -0x2c(%ebp),%eax               
  10f524:	8d 34 01             	lea    (%ecx,%eax,1),%esi             
  10f527:	7e 20                	jle    10f549 <pipe_write+0x112>      
      memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk1);
  10f529:	8b 03                	mov    (%ebx),%eax                    
  10f52b:	01 d0                	add    %edx,%eax                      
  10f52d:	89 c7                	mov    %eax,%edi                      
  10f52f:	8b 4d cc             	mov    -0x34(%ebp),%ecx               
  10f532:	f3 a4                	rep movsb %ds:(%esi),%es:(%edi)       
      memcpy(pipe->Buffer, buffer + written + chunk1, chunk - chunk1);
  10f534:	8b 03                	mov    (%ebx),%eax                    
  10f536:	8b 4d d0             	mov    -0x30(%ebp),%ecx               
  10f539:	2b 4d cc             	sub    -0x34(%ebp),%ecx               
  10f53c:	8b 75 cc             	mov    -0x34(%ebp),%esi               
  10f53f:	03 75 d4             	add    -0x2c(%ebp),%esi               
  10f542:	03 75 0c             	add    0xc(%ebp),%esi                 
  10f545:	89 c7                	mov    %eax,%edi                      
  10f547:	eb 09                	jmp    10f552 <pipe_write+0x11b>      
    }                                                                 
    else                                                              
      memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk);
  10f549:	8b 03                	mov    (%ebx),%eax                    
  10f54b:	01 d0                	add    %edx,%eax                      
  10f54d:	89 c7                	mov    %eax,%edi                      
  10f54f:	8b 4d d0             	mov    -0x30(%ebp),%ecx               
  10f552:	f3 a4                	rep movsb %ds:(%esi),%es:(%edi)       
                                                                      
    pipe->Length += chunk;                                            
  10f554:	8b 45 d0             	mov    -0x30(%ebp),%eax               
  10f557:	01 43 0c             	add    %eax,0xc(%ebx)                 
    if (pipe->waitingReaders > 0)                                     
  10f55a:	83 7b 18 00          	cmpl   $0x0,0x18(%ebx)                
  10f55e:	74 11                	je     10f571 <pipe_write+0x13a>      
      PIPE_WAKEUPREADERS(pipe);                                       
  10f560:	52                   	push   %edx                           
  10f561:	52                   	push   %edx                           
  10f562:	8d 4d e4             	lea    -0x1c(%ebp),%ecx               
  10f565:	51                   	push   %ecx                           
  10f566:	ff 73 2c             	pushl  0x2c(%ebx)                     
  10f569:	e8 da 0a 00 00       	call   110048 <rtems_barrier_release> 
  10f56e:	83 c4 10             	add    $0x10,%esp                     
    written += chunk;                                                 
  10f571:	8b 45 d0             	mov    -0x30(%ebp),%eax               
  10f574:	01 45 d4             	add    %eax,-0x2c(%ebp)               
    /* Write of more than PIPE_BUF bytes can be interleaved */        
    chunk = 1;                                                        
  10f577:	bf 01 00 00 00       	mov    $0x1,%edi                      
  }                                                                   
                                                                      
  /* Write of PIPE_BUF bytes or less shall not be interleaved */      
  chunk = count <= pipe->Size ? count : 1;                            
                                                                      
  while (written < count) {                                           
  10f57c:	8b 4d 10             	mov    0x10(%ebp),%ecx                
  10f57f:	39 4d d4             	cmp    %ecx,-0x2c(%ebp)               
  10f582:	0f 82 69 ff ff ff    	jb     10f4f1 <pipe_write+0xba>       
  10f588:	31 f6                	xor    %esi,%esi                      
  10f58a:	eb 1a                	jmp    10f5a6 <pipe_write+0x16f>      
                                                                      
  if (! PIPE_LOCK(pipe))                                              
    return -EINTR;                                                    
                                                                      
  if (pipe->Readers == 0) {                                           
    ret = -EPIPE;                                                     
  10f58c:	be e0 ff ff ff       	mov    $0xffffffe0,%esi               
  const void     *buffer,                                             
  size_t          count,                                              
  rtems_libio_t  *iop                                                 
)                                                                     
{                                                                     
  int chunk, chunk1, written = 0, ret = 0;                            
  10f591:	c7 45 d4 00 00 00 00 	movl   $0x0,-0x2c(%ebp)               
  10f598:	eb 0c                	jmp    10f5a6 <pipe_write+0x16f>      
  chunk = count <= pipe->Size ? count : 1;                            
                                                                      
  while (written < count) {                                           
    while (PIPE_SPACE(pipe) < chunk) {                                
      if (LIBIO_NODELAY(iop)) {                                       
        ret = -EAGAIN;                                                
  10f59a:	be f5 ff ff ff       	mov    $0xfffffff5,%esi               
  10f59f:	eb 05                	jmp    10f5a6 <pipe_write+0x16f>      
      pipe->waitingWriters --;                                        
      if (ret != 0)                                                   
        goto out_locked;                                              
                                                                      
      if (pipe->Readers == 0) {                                       
        ret = -EPIPE;                                                 
  10f5a1:	be e0 ff ff ff       	mov    $0xffffffe0,%esi               <== NOT EXECUTED
    /* Write of more than PIPE_BUF bytes can be interleaved */        
    chunk = 1;                                                        
  }                                                                   
                                                                      
out_locked:                                                           
  PIPE_UNLOCK(pipe);                                                  
  10f5a6:	83 ec 0c             	sub    $0xc,%esp                      
  10f5a9:	ff 73 28             	pushl  0x28(%ebx)                     
  10f5ac:	e8 27 bc ff ff       	call   10b1d8 <rtems_semaphore_release>
  10f5b1:	83 c4 10             	add    $0x10,%esp                     
  10f5b4:	eb 05                	jmp    10f5bb <pipe_write+0x184>      
      PIPE_UNLOCK(pipe);                                              
      if (! PIPE_WRITEWAIT(pipe))                                     
        ret = -EINTR;                                                 
      if (! PIPE_LOCK(pipe)) {                                        
        /* WARN waitingWriters not restored! */                       
        ret = -EINTR;                                                 
  10f5b6:	be fc ff ff ff       	mov    $0xfffffffc,%esi               <== NOT EXECUTED
  /* Signal SIGPIPE */                                                
  if (ret == -EPIPE)                                                  
    kill(getpid(), SIGPIPE);                                          
#endif                                                                
                                                                      
  if (written > 0)                                                    
  10f5bb:	83 7d d4 00          	cmpl   $0x0,-0x2c(%ebp)               
  10f5bf:	7e 03                	jle    10f5c4 <pipe_write+0x18d>      
  10f5c1:	8b 75 d4             	mov    -0x2c(%ebp),%esi               
    return written;                                                   
  return ret;                                                         
}                                                                     
  10f5c4:	89 f0                	mov    %esi,%eax                      
  10f5c6:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  10f5c9:	5b                   	pop    %ebx                           
  10f5ca:	5e                   	pop    %esi                           
  10f5cb:	5f                   	pop    %edi                           
  10f5cc:	c9                   	leave                                 
  10f5cd:	c3                   	ret                                   
                                                                      

00109ea8 <posix_memalign>: int posix_memalign( void **pointer, size_t alignment, size_t size ) {
  109ea8:	55                   	push   %ebp                           
  109ea9:	89 e5                	mov    %esp,%ebp                      
  109eab:	53                   	push   %ebx                           
  109eac:	83 ec 04             	sub    $0x4,%esp                      
  109eaf:	8b 45 0c             	mov    0xc(%ebp),%eax                 
  /*                                                                  
   *  Update call statistics                                          
   */                                                                 
  MSBUMP(memalign_calls, 1);                                          
  109eb2:	ff 05 54 9a 12 00    	incl   0x129a54                       
                                                                      
  if (((alignment - 1) & alignment) != 0 || (alignment < sizeof(void *)))
  109eb8:	8d 58 ff             	lea    -0x1(%eax),%ebx                
  109ebb:	85 c3                	test   %eax,%ebx                      
  109ebd:	75 0d                	jne    109ecc <posix_memalign+0x24>   <== NEVER TAKEN
  109ebf:	83 f8 03             	cmp    $0x3,%eax                      
  109ec2:	76 08                	jbe    109ecc <posix_memalign+0x24>   
  /*                                                                  
   *  rtems_memalign does all of the error checking work EXCEPT       
   *  for adding restrictionso on the alignment.                      
   */                                                                 
  return rtems_memalign( pointer, alignment, size );                  
}                                                                     
  109ec4:	59                   	pop    %ecx                           
  109ec5:	5b                   	pop    %ebx                           
  109ec6:	c9                   	leave                                 
                                                                      
  /*                                                                  
   *  rtems_memalign does all of the error checking work EXCEPT       
   *  for adding restrictionso on the alignment.                      
   */                                                                 
  return rtems_memalign( pointer, alignment, size );                  
  109ec7:	e9 74 01 00 00       	jmp    10a040 <rtems_memalign>        
}                                                                     
  109ecc:	b8 16 00 00 00       	mov    $0x16,%eax                     
  109ed1:	5a                   	pop    %edx                           
  109ed2:	5b                   	pop    %ebx                           
  109ed3:	c9                   	leave                                 
  109ed4:	c3                   	ret                                   
                                                                      

0011bd64 <read>: ssize_t read( int fd, void *buffer, size_t count ) {
  11bd64:	55                   	push   %ebp                           
  11bd65:	89 e5                	mov    %esp,%ebp                      
  11bd67:	56                   	push   %esi                           
  11bd68:	53                   	push   %ebx                           
  11bd69:	8b 5d 08             	mov    0x8(%ebp),%ebx                 
  11bd6c:	8b 55 0c             	mov    0xc(%ebp),%edx                 
  11bd6f:	8b 4d 10             	mov    0x10(%ebp),%ecx                
  ssize_t      rc;                                                    
  rtems_libio_t *iop;                                                 
                                                                      
  rtems_libio_check_fd( fd );                                         
  11bd72:	3b 1d 44 f1 11 00    	cmp    0x11f144,%ebx                  
  11bd78:	73 14                	jae    11bd8e <read+0x2a>             <== NEVER TAKEN
  iop = rtems_libio_iop( fd );                                        
  11bd7a:	6b db 38             	imul   $0x38,%ebx,%ebx                
  11bd7d:	03 1d 00 31 12 00    	add    0x123100,%ebx                  
  rtems_libio_check_is_open( iop );                                   
  11bd83:	8b 73 14             	mov    0x14(%ebx),%esi                
  11bd86:	f7 c6 00 01 00 00    	test   $0x100,%esi                    
  11bd8c:	75 0d                	jne    11bd9b <read+0x37>             
  11bd8e:	e8 ed 3f ff ff       	call   10fd80 <__errno>               
  11bd93:	c7 00 09 00 00 00    	movl   $0x9,(%eax)                    
  11bd99:	eb 1a                	jmp    11bdb5 <read+0x51>             
  rtems_libio_check_buffer( buffer );                                 
  11bd9b:	85 d2                	test   %edx,%edx                      
  11bd9d:	74 0b                	je     11bdaa <read+0x46>             <== NEVER TAKEN
  rtems_libio_check_count( count );                                   
  11bd9f:	31 c0                	xor    %eax,%eax                      
  11bda1:	85 c9                	test   %ecx,%ecx                      
  11bda3:	74 31                	je     11bdd6 <read+0x72>             
  rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ );             
  11bda5:	83 e6 02             	and    $0x2,%esi                      
  11bda8:	75 10                	jne    11bdba <read+0x56>             
  11bdaa:	e8 d1 3f ff ff       	call   10fd80 <__errno>               
  11bdaf:	c7 00 16 00 00 00    	movl   $0x16,(%eax)                   
  11bdb5:	83 c8 ff             	or     $0xffffffff,%eax               
  11bdb8:	eb 1c                	jmp    11bdd6 <read+0x72>             
                                                                      
  /*                                                                  
   *  Now process the read().                                         
   */                                                                 
  rc = (*iop->pathinfo.handlers->read_h)( iop, buffer, count );       
  11bdba:	50                   	push   %eax                           
  11bdbb:	8b 43 20             	mov    0x20(%ebx),%eax                
  11bdbe:	51                   	push   %ecx                           
  11bdbf:	52                   	push   %edx                           
  11bdc0:	53                   	push   %ebx                           
  11bdc1:	ff 50 08             	call   *0x8(%eax)                     
                                                                      
  if ( rc > 0 )                                                       
  11bdc4:	83 c4 10             	add    $0x10,%esp                     
  11bdc7:	85 c0                	test   %eax,%eax                      
  11bdc9:	7e 0b                	jle    11bdd6 <read+0x72>             
    iop->offset += rc;                                                
  11bdcb:	89 c1                	mov    %eax,%ecx                      
  11bdcd:	c1 f9 1f             	sar    $0x1f,%ecx                     
  11bdd0:	01 43 0c             	add    %eax,0xc(%ebx)                 
  11bdd3:	11 4b 10             	adc    %ecx,0x10(%ebx)                
                                                                      
  return rc;                                                          
}                                                                     
  11bdd6:	8d 65 f8             	lea    -0x8(%ebp),%esp                
  11bdd9:	5b                   	pop    %ebx                           
  11bdda:	5e                   	pop    %esi                           
  11bddb:	c9                   	leave                                 
  11bddc:	c3                   	ret                                   
                                                                      

00109518 <readlink>: ssize_t readlink( const char *pathname, char *buf, size_t bufsize ) {
  109518:	55                   	push   %ebp                           
  109519:	89 e5                	mov    %esp,%ebp                      
  10951b:	57                   	push   %edi                           
  10951c:	56                   	push   %esi                           
  10951d:	53                   	push   %ebx                           
  10951e:	83 ec 2c             	sub    $0x2c,%esp                     
  109521:	8b 55 08             	mov    0x8(%ebp),%edx                 
  109524:	8b 5d 0c             	mov    0xc(%ebp),%ebx                 
  rtems_filesystem_location_info_t  loc;                              
  int                               result;                           
                                                                      
  if (!buf)                                                           
  109527:	85 db                	test   %ebx,%ebx                      
  109529:	75 10                	jne    10953b <readlink+0x23>         
    rtems_set_errno_and_return_minus_one( EFAULT );                   
  10952b:	e8 0c 8f 00 00       	call   11243c <__errno>               
  109530:	c7 00 0e 00 00 00    	movl   $0xe,(%eax)                    
  109536:	83 cf ff             	or     $0xffffffff,%edi               
  109539:	eb 69                	jmp    1095a4 <readlink+0x8c>         
                                                                      
  result = rtems_filesystem_evaluate_path( pathname, strlen( pathname ),
  10953b:	31 c0                	xor    %eax,%eax                      
  10953d:	83 c9 ff             	or     $0xffffffff,%ecx               
  109540:	89 d7                	mov    %edx,%edi                      
  109542:	f2 ae                	repnz scas %es:(%edi),%al             
  109544:	f7 d1                	not    %ecx                           
  109546:	49                   	dec    %ecx                           
  109547:	83 ec 0c             	sub    $0xc,%esp                      
  10954a:	6a 00                	push   $0x0                           
  10954c:	8d 75 d4             	lea    -0x2c(%ebp),%esi               
  10954f:	56                   	push   %esi                           
  109550:	6a 00                	push   $0x0                           
  109552:	51                   	push   %ecx                           
  109553:	52                   	push   %edx                           
  109554:	e8 49 f0 ff ff       	call   1085a2 <rtems_filesystem_evaluate_path>
                                           0, &loc, false );          
  if ( result != 0 )                                                  
  109559:	83 c4 20             	add    $0x20,%esp                     
     return -1;                                                       
  10955c:	83 cf ff             	or     $0xffffffff,%edi               
  if (!buf)                                                           
    rtems_set_errno_and_return_minus_one( EFAULT );                   
                                                                      
  result = rtems_filesystem_evaluate_path( pathname, strlen( pathname ),
                                           0, &loc, false );          
  if ( result != 0 )                                                  
  10955f:	85 c0                	test   %eax,%eax                      
  109561:	75 41                	jne    1095a4 <readlink+0x8c>         <== NEVER TAKEN
     return -1;                                                       
                                                                      
  if (  (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_SYM_LINK ){
  109563:	83 ec 0c             	sub    $0xc,%esp                      
  109566:	56                   	push   %esi                           
  109567:	8b 45 e0             	mov    -0x20(%ebp),%eax               
  10956a:	ff 50 10             	call   *0x10(%eax)                    
  10956d:	83 c4 10             	add    $0x10,%esp                     
  109570:	83 f8 04             	cmp    $0x4,%eax                      
  109573:	74 16                	je     10958b <readlink+0x73>         
    rtems_filesystem_freenode( &loc );                                
  109575:	83 ec 0c             	sub    $0xc,%esp                      
  109578:	56                   	push   %esi                           
  109579:	e8 e2 f0 ff ff       	call   108660 <rtems_filesystem_freenode>
    rtems_set_errno_and_return_minus_one( EINVAL );                   
  10957e:	e8 b9 8e 00 00       	call   11243c <__errno>               
  109583:	c7 00 16 00 00 00    	movl   $0x16,(%eax)                   
  109589:	eb 16                	jmp    1095a1 <readlink+0x89>         
  }                                                                   
                                                                      
  result =  (*loc.ops->readlink_h)( &loc, buf, bufsize );             
  10958b:	50                   	push   %eax                           
  10958c:	ff 75 10             	pushl  0x10(%ebp)                     
  10958f:	53                   	push   %ebx                           
  109590:	56                   	push   %esi                           
  109591:	8b 45 e0             	mov    -0x20(%ebp),%eax               
  109594:	ff 50 3c             	call   *0x3c(%eax)                    
  109597:	89 c7                	mov    %eax,%edi                      
                                                                      
  rtems_filesystem_freenode( &loc );                                  
  109599:	89 34 24             	mov    %esi,(%esp)                    
  10959c:	e8 bf f0 ff ff       	call   108660 <rtems_filesystem_freenode>
                                                                      
  return result;                                                      
  1095a1:	83 c4 10             	add    $0x10,%esp                     
}                                                                     
  1095a4:	89 f8                	mov    %edi,%eax                      
  1095a6:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  1095a9:	5b                   	pop    %ebx                           
  1095aa:	5e                   	pop    %esi                           
  1095ab:	5f                   	pop    %edi                           
  1095ac:	c9                   	leave                                 
  1095ad:	c3                   	ret                                   
                                                                      

001082d8 <readv>: ssize_t readv( int fd, const struct iovec *iov, int iovcnt ) {
  1082d8:	55                   	push   %ebp                           
  1082d9:	89 e5                	mov    %esp,%ebp                      
  1082db:	57                   	push   %edi                           
  1082dc:	56                   	push   %esi                           
  1082dd:	53                   	push   %ebx                           
  1082de:	83 ec 2c             	sub    $0x2c,%esp                     
  1082e1:	8b 75 08             	mov    0x8(%ebp),%esi                 
  1082e4:	8b 7d 0c             	mov    0xc(%ebp),%edi                 
  int            v;                                                   
  int            bytes;                                               
  rtems_libio_t *iop;                                                 
  bool           all_zeros;                                           
                                                                      
  rtems_libio_check_fd( fd );                                         
  1082e7:	3b 35 64 12 12 00    	cmp    0x121264,%esi                  
  1082ed:	73 11                	jae    108300 <readv+0x28>            
  iop = rtems_libio_iop( fd );                                        
  1082ef:	6b f6 38             	imul   $0x38,%esi,%esi                
  1082f2:	03 35 20 52 12 00    	add    0x125220,%esi                  
  rtems_libio_check_is_open( iop );                                   
  1082f8:	8b 46 14             	mov    0x14(%esi),%eax                
  1082fb:	f6 c4 01             	test   $0x1,%ah                       
  1082fe:	75 10                	jne    108310 <readv+0x38>            
  108300:	e8 b7 85 00 00       	call   1108bc <__errno>               
  108305:	c7 00 09 00 00 00    	movl   $0x9,(%eax)                    
  10830b:	e9 a4 00 00 00       	jmp    1083b4 <readv+0xdc>            
  rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ );             
  108310:	a8 02                	test   $0x2,%al                       
  108312:	74 35                	je     108349 <readv+0x71>            <== NEVER TAKEN
                                                                      
  /*                                                                  
   *  Argument validation on IO vector                                
   */                                                                 
  if ( !iov )                                                         
  108314:	85 ff                	test   %edi,%edi                      
  108316:	74 31                	je     108349 <readv+0x71>            
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( iovcnt <= 0 )                                                  
  108318:	83 7d 10 00          	cmpl   $0x0,0x10(%ebp)                
  10831c:	7e 2b                	jle    108349 <readv+0x71>            
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( iovcnt > IOV_MAX )                                             
  10831e:	81 7d 10 00 04 00 00 	cmpl   $0x400,0x10(%ebp)              
  108325:	7f 22                	jg     108349 <readv+0x71>            <== NEVER TAKEN
  108327:	b2 01                	mov    $0x1,%dl                       
  108329:	31 c0                	xor    %eax,%eax                      
  10832b:	31 c9                	xor    %ecx,%ecx                      
  10832d:	89 75 d4             	mov    %esi,-0x2c(%ebp)               
  108330:	eb 03                	jmp    108335 <readv+0x5d>            
    if ( iov[v].iov_base == 0 )                                       
      rtems_set_errno_and_return_minus_one( EINVAL );                 
                                                                      
    /* check for wrap */                                              
    old    = total;                                                   
    total += iov[v].iov_len;                                          
  108332:	8b 4d e4             	mov    -0x1c(%ebp),%ecx               
                                                                      
    /*                                                                
     *  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 )                                       
  108335:	83 3c c7 00          	cmpl   $0x0,(%edi,%eax,8)             
  108339:	74 0e                	je     108349 <readv+0x71>            
      rtems_set_errno_and_return_minus_one( EINVAL );                 
                                                                      
    /* check for wrap */                                              
    old    = total;                                                   
    total += iov[v].iov_len;                                          
  10833b:	8b 5c c7 04          	mov    0x4(%edi,%eax,8),%ebx          
  10833f:	8d 34 19             	lea    (%ecx,%ebx,1),%esi             
  108342:	89 75 e4             	mov    %esi,-0x1c(%ebp)               
    if ( total < old )                                                
  108345:	39 ce                	cmp    %ecx,%esi                      
  108347:	7d 0d                	jge    108356 <readv+0x7e>            
      rtems_set_errno_and_return_minus_one( EINVAL );                 
  108349:	e8 6e 85 00 00       	call   1108bc <__errno>               
  10834e:	c7 00 16 00 00 00    	movl   $0x16,(%eax)                   
  108354:	eb 5e                	jmp    1083b4 <readv+0xdc>            
                                                                      
    if ( iov[v].iov_len )                                             
      all_zeros = false;                                              
  108356:	85 db                	test   %ebx,%ebx                      
  108358:	0f 94 c1             	sete   %cl                            
  10835b:	f7 d9                	neg    %ecx                           
  10835d:	21 ca                	and    %ecx,%edx                      
   *  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++ ) {                           
  10835f:	40                   	inc    %eax                           
  108360:	3b 45 10             	cmp    0x10(%ebp),%eax                
  108363:	7c cd                	jl     108332 <readv+0x5a>            
  108365:	8b 75 d4             	mov    -0x2c(%ebp),%esi               
   *  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 ) {                                          
    return 0;                                                         
  108368:	31 db                	xor    %ebx,%ebx                      
  /*                                                                  
   *  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 ) {                                          
  10836a:	84 d2                	test   %dl,%dl                        
  10836c:	75 49                	jne    1083b7 <readv+0xdf>            
  10836e:	c7 45 e4 00 00 00 00 	movl   $0x0,-0x1c(%ebp)               
                                                                      
  /*                                                                  
   *  Now process the readv().                                        
   */                                                                 
  for ( total=0, v=0 ; v < iovcnt ; v++ ) {                           
    bytes = (*iop->pathinfo.handlers->read_h)(                        
  108375:	50                   	push   %eax                           
  108376:	8b 46 20             	mov    0x20(%esi),%eax                
  108379:	8b 55 e4             	mov    -0x1c(%ebp),%edx               
  10837c:	ff 74 d7 04          	pushl  0x4(%edi,%edx,8)               
  108380:	ff 34 d7             	pushl  (%edi,%edx,8)                  
  108383:	56                   	push   %esi                           
  108384:	ff 50 08             	call   *0x8(%eax)                     
      iop,                                                            
      iov[v].iov_base,                                                
      iov[v].iov_len                                                  
    );                                                                
                                                                      
    if ( bytes < 0 )                                                  
  108387:	83 c4 10             	add    $0x10,%esp                     
  10838a:	83 f8 00             	cmp    $0x0,%eax                      
  10838d:	7c 25                	jl     1083b4 <readv+0xdc>            <== NEVER TAKEN
      return -1;                                                      
                                                                      
    if ( bytes > 0 ) {                                                
  10838f:	74 0d                	je     10839e <readv+0xc6>            <== NEVER TAKEN
      iop->offset += bytes;                                           
  108391:	89 c1                	mov    %eax,%ecx                      
  108393:	c1 f9 1f             	sar    $0x1f,%ecx                     
  108396:	01 46 0c             	add    %eax,0xc(%esi)                 
  108399:	11 4e 10             	adc    %ecx,0x10(%esi)                
      total       += bytes;                                           
  10839c:	01 c3                	add    %eax,%ebx                      
    }                                                                 
                                                                      
    if (bytes != iov[ v ].iov_len)                                    
  10839e:	8b 55 e4             	mov    -0x1c(%ebp),%edx               
  1083a1:	3b 44 d7 04          	cmp    0x4(%edi,%edx,8),%eax          
  1083a5:	75 10                	jne    1083b7 <readv+0xdf>            <== NEVER TAKEN
  }                                                                   
                                                                      
  /*                                                                  
   *  Now process the readv().                                        
   */                                                                 
  for ( total=0, v=0 ; v < iovcnt ; v++ ) {                           
  1083a7:	42                   	inc    %edx                           
  1083a8:	89 55 e4             	mov    %edx,-0x1c(%ebp)               
  1083ab:	8b 45 10             	mov    0x10(%ebp),%eax                
  1083ae:	39 c2                	cmp    %eax,%edx                      
  1083b0:	7c c3                	jl     108375 <readv+0x9d>            
  1083b2:	eb 03                	jmp    1083b7 <readv+0xdf>            
      iov[v].iov_base,                                                
      iov[v].iov_len                                                  
    );                                                                
                                                                      
    if ( bytes < 0 )                                                  
      return -1;                                                      
  1083b4:	83 cb ff             	or     $0xffffffff,%ebx               
    if (bytes != iov[ v ].iov_len)                                    
      break;                                                          
  }                                                                   
                                                                      
  return total;                                                       
}                                                                     
  1083b7:	89 d8                	mov    %ebx,%eax                      
  1083b9:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  1083bc:	5b                   	pop    %ebx                           
  1083bd:	5e                   	pop    %esi                           
  1083be:	5f                   	pop    %edi                           
  1083bf:	c9                   	leave                                 
  1083c0:	c3                   	ret                                   
                                                                      

0011be68 <realloc>: void *realloc( void *ptr, size_t size ) {
  11be68:	55                   	push   %ebp                           
  11be69:	89 e5                	mov    %esp,%ebp                      
  11be6b:	57                   	push   %edi                           
  11be6c:	56                   	push   %esi                           
  11be6d:	53                   	push   %ebx                           
  11be6e:	83 ec 2c             	sub    $0x2c,%esp                     
  11be71:	8b 5d 08             	mov    0x8(%ebp),%ebx                 
  11be74:	8b 75 0c             	mov    0xc(%ebp),%esi                 
  uintptr_t old_size;                                                 
  char    *new_area;                                                  
                                                                      
  MSBUMP(realloc_calls, 1);                                           
  11be77:	ff 05 28 31 12 00    	incl   0x123128                       
                                                                      
  /*                                                                  
   *  Do not attempt to allocate memory if in a critical section or ISR.
   */                                                                 
                                                                      
  if (_System_state_Is_up(_System_state_Get())) {                     
  11be7d:	83 3d 9c 33 12 00 03 	cmpl   $0x3,0x12339c                  
  11be84:	75 1a                	jne    11bea0 <realloc+0x38>          <== NEVER TAKEN
    if (_Thread_Dispatch_disable_level > 0)                           
  11be86:	a1 44 32 12 00       	mov    0x123244,%eax                  
  11be8b:	85 c0                	test   %eax,%eax                      
  11be8d:	0f 85 ad 00 00 00    	jne    11bf40 <realloc+0xd8>          <== NEVER TAKEN
      return (void *) 0;                                              
                                                                      
    if (_ISR_Nest_level > 0)                                          
  11be93:	83 3d 58 34 12 00 00 	cmpl   $0x0,0x123458                  
  11be9a:	0f 85 a0 00 00 00    	jne    11bf40 <realloc+0xd8>          <== NEVER TAKEN
  }                                                                   
                                                                      
  /*                                                                  
   * Continue with realloc().                                         
   */                                                                 
  if ( !ptr )                                                         
  11bea0:	85 db                	test   %ebx,%ebx                      
  11bea2:	75 13                	jne    11beb7 <realloc+0x4f>          
    return malloc( size );                                            
  11bea4:	83 ec 0c             	sub    $0xc,%esp                      
  11bea7:	56                   	push   %esi                           
  11bea8:	e8 87 ad fe ff       	call   106c34 <malloc>                
  11bead:	89 c3                	mov    %eax,%ebx                      
  11beaf:	83 c4 10             	add    $0x10,%esp                     
  11beb2:	e9 8b 00 00 00       	jmp    11bf42 <realloc+0xda>          
                                                                      
  if ( !size ) {                                                      
  11beb7:	85 f6                	test   %esi,%esi                      
  11beb9:	75 0e                	jne    11bec9 <realloc+0x61>          <== ALWAYS TAKEN
    free( ptr );                                                      
  11bebb:	83 ec 0c             	sub    $0xc,%esp                      <== NOT EXECUTED
  11bebe:	53                   	push   %ebx                           <== NOT EXECUTED
  11bebf:	e8 d4 aa fe ff       	call   106998 <free>                  <== NOT EXECUTED
    return (void *) 0;                                                
  11bec4:	83 c4 10             	add    $0x10,%esp                     <== NOT EXECUTED
  11bec7:	eb 77                	jmp    11bf40 <realloc+0xd8>          <== NOT EXECUTED
  }                                                                   
                                                                      
  if ( !_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, ptr, &old_size) ) {
  11bec9:	52                   	push   %edx                           
  11beca:	8d 45 e4             	lea    -0x1c(%ebp),%eax               
  11becd:	50                   	push   %eax                           
  11bece:	53                   	push   %ebx                           
  11becf:	ff 35 80 f1 11 00    	pushl  0x11f180                       
  11bed5:	e8 ee 00 00 00       	call   11bfc8 <_Protected_heap_Get_block_size>
  11beda:	83 c4 10             	add    $0x10,%esp                     
  11bedd:	84 c0                	test   %al,%al                        
  11bedf:	75 0d                	jne    11beee <realloc+0x86>          
    errno = EINVAL;                                                   
  11bee1:	e8 9a 3e ff ff       	call   10fd80 <__errno>               
  11bee6:	c7 00 16 00 00 00    	movl   $0x16,(%eax)                   
  11beec:	eb 52                	jmp    11bf40 <realloc+0xd8>          
  }                                                                   
                                                                      
  /*                                                                  
   *  Now resize it.                                                  
   */                                                                 
  if ( _Protected_heap_Resize_block( RTEMS_Malloc_Heap, ptr, size ) ) {
  11beee:	50                   	push   %eax                           
  11beef:	56                   	push   %esi                           
  11bef0:	53                   	push   %ebx                           
  11bef1:	ff 35 80 f1 11 00    	pushl  0x11f180                       
  11bef7:	e8 04 01 00 00       	call   11c000 <_Protected_heap_Resize_block>
  11befc:	83 c4 10             	add    $0x10,%esp                     
  11beff:	84 c0                	test   %al,%al                        
  11bf01:	75 3f                	jne    11bf42 <realloc+0xda>          
   *  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 );                                          
  11bf03:	83 ec 0c             	sub    $0xc,%esp                      
  11bf06:	56                   	push   %esi                           
  11bf07:	e8 28 ad fe ff       	call   106c34 <malloc>                
                                                                      
  MSBUMP(malloc_calls, (uint32_t) -1);   /* subtract off the malloc */
  11bf0c:	ff 0d 1c 31 12 00    	decl   0x12311c                       
                                                                      
  if ( !new_area ) {                                                  
  11bf12:	83 c4 10             	add    $0x10,%esp                     
  11bf15:	85 c0                	test   %eax,%eax                      
  11bf17:	74 27                	je     11bf40 <realloc+0xd8>          
    return (void *) 0;                                                
  }                                                                   
                                                                      
  memcpy( new_area, ptr, (size < old_size) ? size : old_size );       
  11bf19:	8b 55 e4             	mov    -0x1c(%ebp),%edx               
  11bf1c:	89 f1                	mov    %esi,%ecx                      
  11bf1e:	39 d6                	cmp    %edx,%esi                      
  11bf20:	76 02                	jbe    11bf24 <realloc+0xbc>          <== NEVER TAKEN
  11bf22:	89 d1                	mov    %edx,%ecx                      
  11bf24:	89 c7                	mov    %eax,%edi                      
  11bf26:	89 de                	mov    %ebx,%esi                      
  11bf28:	f3 a4                	rep movsb %ds:(%esi),%es:(%edi)       
  free( ptr );                                                        
  11bf2a:	83 ec 0c             	sub    $0xc,%esp                      
  11bf2d:	53                   	push   %ebx                           
  11bf2e:	89 45 d4             	mov    %eax,-0x2c(%ebp)               
  11bf31:	e8 62 aa fe ff       	call   106998 <free>                  
                                                                      
  return new_area;                                                    
  11bf36:	83 c4 10             	add    $0x10,%esp                     
  11bf39:	8b 45 d4             	mov    -0x2c(%ebp),%eax               
  11bf3c:	89 c3                	mov    %eax,%ebx                      
  11bf3e:	eb 02                	jmp    11bf42 <realloc+0xda>          
  new_area = malloc( size );                                          
                                                                      
  MSBUMP(malloc_calls, (uint32_t) -1);   /* subtract off the malloc */
                                                                      
  if ( !new_area ) {                                                  
    return (void *) 0;                                                
  11bf40:	31 db                	xor    %ebx,%ebx                      
  memcpy( new_area, ptr, (size < old_size) ? size : old_size );       
  free( ptr );                                                        
                                                                      
  return new_area;                                                    
                                                                      
}                                                                     
  11bf42:	89 d8                	mov    %ebx,%eax                      
  11bf44:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  11bf47:	5b                   	pop    %ebx                           
  11bf48:	5e                   	pop    %esi                           
  11bf49:	5f                   	pop    %edi                           
  11bf4a:	c9                   	leave                                 
  11bf4b:	c3                   	ret                                   
                                                                      

00107a04 <rmdir>: #include <rtems/seterr.h> int rmdir( const char *pathname ) {
  107a04:	55                   	push   %ebp                           
  107a05:	89 e5                	mov    %esp,%ebp                      
  107a07:	57                   	push   %edi                           
  107a08:	56                   	push   %esi                           
  107a09:	53                   	push   %ebx                           
  107a0a:	83 ec 58             	sub    $0x58,%esp                     
                                                                      
  /*                                                                  
   *  Get the parent node of the node we wish to remove. Find the parent path.
   */                                                                 
                                                                      
  parentpathlen = rtems_filesystem_dirname ( pathname );              
  107a0d:	ff 75 08             	pushl  0x8(%ebp)                      
  107a10:	e8 da f2 ff ff       	call   106cef <rtems_filesystem_dirname>
  107a15:	89 45 b4             	mov    %eax,-0x4c(%ebp)               
                                                                      
  if ( parentpathlen == 0 )                                           
  107a18:	83 c4 10             	add    $0x10,%esp                     
  107a1b:	85 c0                	test   %eax,%eax                      
  107a1d:	8d 45 d0             	lea    -0x30(%ebp),%eax               
  107a20:	75 15                	jne    107a37 <rmdir+0x33>            
    rtems_filesystem_get_start_loc( pathname, &i, &parentloc );       
  107a22:	51                   	push   %ecx                           
  107a23:	50                   	push   %eax                           
  107a24:	8d 45 e4             	lea    -0x1c(%ebp),%eax               
  107a27:	50                   	push   %eax                           
  107a28:	ff 75 08             	pushl  0x8(%ebp)                      
  107a2b:	e8 08 01 00 00       	call   107b38 <rtems_filesystem_get_start_loc>
  107a30:	83 c4 10             	add    $0x10,%esp                     
  const char                       *name;                             
  rtems_filesystem_location_info_t  parentloc;                        
  rtems_filesystem_location_info_t  loc;                              
  int                               i;                                
  int                               result;                           
  bool                              free_parentloc = false;           
  107a33:	31 db                	xor    %ebx,%ebx                      
  107a35:	eb 25                	jmp    107a5c <rmdir+0x58>            
  parentpathlen = rtems_filesystem_dirname ( pathname );              
                                                                      
  if ( parentpathlen == 0 )                                           
    rtems_filesystem_get_start_loc( pathname, &i, &parentloc );       
  else {                                                              
    result = rtems_filesystem_evaluate_path(pathname, parentpathlen,  
  107a37:	83 ec 0c             	sub    $0xc,%esp                      
  107a3a:	6a 00                	push   $0x0                           
  107a3c:	50                   	push   %eax                           
  107a3d:	6a 02                	push   $0x2                           
  107a3f:	ff 75 b4             	pushl  -0x4c(%ebp)                    
  107a42:	ff 75 08             	pushl  0x8(%ebp)                      
  107a45:	e8 64 f2 ff ff       	call   106cae <rtems_filesystem_evaluate_path>
  107a4a:	89 c2                	mov    %eax,%edx                      
                                            RTEMS_LIBIO_PERMS_WRITE,  
                                            &parentloc,               
                                            false );                  
    if ( result != 0 )                                                
  107a4c:	83 c4 20             	add    $0x20,%esp                     
      return -1;                                                      
  107a4f:	83 c8 ff             	or     $0xffffffff,%eax               
  else {                                                              
    result = rtems_filesystem_evaluate_path(pathname, parentpathlen,  
                                            RTEMS_LIBIO_PERMS_WRITE,  
                                            &parentloc,               
                                            false );                  
    if ( result != 0 )                                                
  107a52:	85 d2                	test   %edx,%edx                      
  107a54:	0f 85 d6 00 00 00    	jne    107b30 <rmdir+0x12c>           <== NEVER TAKEN
      return -1;                                                      
                                                                      
    free_parentloc = true;                                            
  107a5a:	b3 01                	mov    $0x1,%bl                       
                                                                      
  /*                                                                  
   * Start from the parent to find the node that should be under it.  
   */                                                                 
                                                                      
  loc = parentloc;                                                    
  107a5c:	8d 7d bc             	lea    -0x44(%ebp),%edi               
  107a5f:	8d 75 d0             	lea    -0x30(%ebp),%esi               
  107a62:	b9 05 00 00 00       	mov    $0x5,%ecx                      
  107a67:	f3 a5                	rep movsl %ds:(%esi),%es:(%edi)       
  name = pathname + parentpathlen;                                    
  107a69:	8b 75 08             	mov    0x8(%ebp),%esi                 
  107a6c:	03 75 b4             	add    -0x4c(%ebp),%esi               
  name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 
  107a6f:	83 c9 ff             	or     $0xffffffff,%ecx               
  107a72:	89 f7                	mov    %esi,%edi                      
  107a74:	31 c0                	xor    %eax,%eax                      
  107a76:	f2 ae                	repnz scas %es:(%edi),%al             
  107a78:	f7 d1                	not    %ecx                           
  107a7a:	49                   	dec    %ecx                           
  107a7b:	52                   	push   %edx                           
  107a7c:	52                   	push   %edx                           
  107a7d:	51                   	push   %ecx                           
  107a7e:	56                   	push   %esi                           
  107a7f:	e8 aa f2 ff ff       	call   106d2e <rtems_filesystem_prefix_separators>
  107a84:	01 c6                	add    %eax,%esi                      
                                                                      
  result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
  107a86:	83 c9 ff             	or     $0xffffffff,%ecx               
  107a89:	89 f7                	mov    %esi,%edi                      
  107a8b:	31 c0                	xor    %eax,%eax                      
  107a8d:	f2 ae                	repnz scas %es:(%edi),%al             
  107a8f:	f7 d1                	not    %ecx                           
  107a91:	49                   	dec    %ecx                           
  107a92:	c7 04 24 00 00 00 00 	movl   $0x0,(%esp)                    
  107a99:	8d 7d bc             	lea    -0x44(%ebp),%edi               
  107a9c:	57                   	push   %edi                           
  107a9d:	6a 00                	push   $0x0                           
  107a9f:	51                   	push   %ecx                           
  107aa0:	56                   	push   %esi                           
  107aa1:	e8 aa f1 ff ff       	call   106c50 <rtems_filesystem_evaluate_relative_path>
                                                    0, &loc, false ); 
  if ( result != 0 ) {                                                
  107aa6:	83 c4 20             	add    $0x20,%esp                     
  107aa9:	85 c0                	test   %eax,%eax                      
  107aab:	74 13                	je     107ac0 <rmdir+0xbc>            
    if ( free_parentloc )                                             
      rtems_filesystem_freenode( &parentloc );                        
    return -1;                                                        
  107aad:	83 c8 ff             	or     $0xffffffff,%eax               
  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 )                                             
  107ab0:	84 db                	test   %bl,%bl                        
  107ab2:	74 7c                	je     107b30 <rmdir+0x12c>           
      rtems_filesystem_freenode( &parentloc );                        
  107ab4:	83 ec 0c             	sub    $0xc,%esp                      
  107ab7:	8d 55 d0             	lea    -0x30(%ebp),%edx               
  107aba:	52                   	push   %edx                           
  107abb:	89 45 b0             	mov    %eax,-0x50(%ebp)               
  107abe:	eb 65                	jmp    107b25 <rmdir+0x121>           
  }                                                                   
                                                                      
  /*                                                                  
   * Verify you can remove this node as a directory.                  
   */                                                                 
  if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) {
  107ac0:	83 ec 0c             	sub    $0xc,%esp                      
  107ac3:	57                   	push   %edi                           
  107ac4:	8b 45 c8             	mov    -0x38(%ebp),%eax               
  107ac7:	ff 50 10             	call   *0x10(%eax)                    
  107aca:	83 c4 10             	add    $0x10,%esp                     
  107acd:	48                   	dec    %eax                           
  107ace:	74 2f                	je     107aff <rmdir+0xfb>            
    rtems_filesystem_freenode( &loc );                                
  107ad0:	83 ec 0c             	sub    $0xc,%esp                      
  107ad3:	57                   	push   %edi                           
  107ad4:	e8 93 f2 ff ff       	call   106d6c <rtems_filesystem_freenode>
    if ( free_parentloc )                                             
  107ad9:	83 c4 10             	add    $0x10,%esp                     
  107adc:	84 db                	test   %bl,%bl                        
  107ade:	74 0f                	je     107aef <rmdir+0xeb>            <== NEVER TAKEN
      rtems_filesystem_freenode( &parentloc );                        
  107ae0:	83 ec 0c             	sub    $0xc,%esp                      
  107ae3:	8d 45 d0             	lea    -0x30(%ebp),%eax               
  107ae6:	50                   	push   %eax                           
  107ae7:	e8 80 f2 ff ff       	call   106d6c <rtems_filesystem_freenode>
  107aec:	83 c4 10             	add    $0x10,%esp                     
    rtems_set_errno_and_return_minus_one( ENOTDIR );                  
  107aef:	e8 bc 89 00 00       	call   1104b0 <__errno>               
  107af4:	c7 00 14 00 00 00    	movl   $0x14,(%eax)                   
  107afa:	83 c8 ff             	or     $0xffffffff,%eax               
  107afd:	eb 31                	jmp    107b30 <rmdir+0x12c>           
                                                                      
  /*                                                                  
   * Use the filesystems rmnod to remove the node.                    
   */                                                                 
                                                                      
  result =  (*loc.handlers->rmnod_h)( &parentloc, &loc );             
  107aff:	50                   	push   %eax                           
  107b00:	50                   	push   %eax                           
  107b01:	57                   	push   %edi                           
  107b02:	8d 75 d0             	lea    -0x30(%ebp),%esi               
  107b05:	56                   	push   %esi                           
  107b06:	8b 45 c4             	mov    -0x3c(%ebp),%eax               
  107b09:	ff 50 34             	call   *0x34(%eax)                    
                                                                      
  rtems_filesystem_freenode( &loc );                                  
  107b0c:	89 3c 24             	mov    %edi,(%esp)                    
  107b0f:	89 45 b0             	mov    %eax,-0x50(%ebp)               
  107b12:	e8 55 f2 ff ff       	call   106d6c <rtems_filesystem_freenode>
  if ( free_parentloc )                                               
  107b17:	83 c4 10             	add    $0x10,%esp                     
  107b1a:	84 db                	test   %bl,%bl                        
  107b1c:	8b 45 b0             	mov    -0x50(%ebp),%eax               
  107b1f:	74 0f                	je     107b30 <rmdir+0x12c>           
    rtems_filesystem_freenode( &parentloc );                          
  107b21:	83 ec 0c             	sub    $0xc,%esp                      
  107b24:	56                   	push   %esi                           
  107b25:	e8 42 f2 ff ff       	call   106d6c <rtems_filesystem_freenode>
  107b2a:	83 c4 10             	add    $0x10,%esp                     
  107b2d:	8b 45 b0             	mov    -0x50(%ebp),%eax               
                                                                      
  return result;                                                      
}                                                                     
  107b30:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  107b33:	5b                   	pop    %ebx                           
  107b34:	5e                   	pop    %esi                           
  107b35:	5f                   	pop    %edi                           
  107b36:	c9                   	leave                                 
  107b37:	c3                   	ret                                   
                                                                      

0010a244 <rtems_chain_get_with_wait>: rtems_chain_control *chain, rtems_event_set events, rtems_interval timeout, rtems_chain_node **node_ptr ) {
  10a244:	55                   	push   %ebp                           
  10a245:	89 e5                	mov    %esp,%ebp                      
  10a247:	57                   	push   %edi                           
  10a248:	56                   	push   %esi                           
  10a249:	53                   	push   %ebx                           
  10a24a:	83 ec 1c             	sub    $0x1c,%esp                     
  10a24d:	8b 7d 0c             	mov    0xc(%ebp),%edi                 
  while (                                                             
    sc == RTEMS_SUCCESSFUL                                            
      && (node = rtems_chain_get( chain )) == NULL                    
  ) {                                                                 
    rtems_event_set out;                                              
    sc = rtems_event_receive(                                         
  10a250:	8d 75 e4             	lea    -0x1c(%ebp),%esi               
  10a253:	eb 13                	jmp    10a268 <rtems_chain_get_with_wait+0x24>
  10a255:	56                   	push   %esi                           
  10a256:	ff 75 10             	pushl  0x10(%ebp)                     
  10a259:	6a 00                	push   $0x0                           
  10a25b:	57                   	push   %edi                           
  10a25c:	e8 b3 f5 ff ff       	call   109814 <rtems_event_receive>   
)                                                                     
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_chain_node *node = NULL;                                      
                                                                      
  while (                                                             
  10a261:	83 c4 10             	add    $0x10,%esp                     
  10a264:	85 c0                	test   %eax,%eax                      
  10a266:	75 16                	jne    10a27e <rtems_chain_get_with_wait+0x3a><== ALWAYS TAKEN
 */                                                                   
RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get(               
  rtems_chain_control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Get( the_chain );                                     
  10a268:	83 ec 0c             	sub    $0xc,%esp                      
  10a26b:	ff 75 08             	pushl  0x8(%ebp)                      
  10a26e:	e8 59 04 00 00       	call   10a6cc <_Chain_Get>            
  10a273:	89 c3                	mov    %eax,%ebx                      
    sc == RTEMS_SUCCESSFUL                                            
      && (node = rtems_chain_get( chain )) == NULL                    
  10a275:	83 c4 10             	add    $0x10,%esp                     
  10a278:	85 c0                	test   %eax,%eax                      
  10a27a:	74 d9                	je     10a255 <rtems_chain_get_with_wait+0x11>
  10a27c:	31 c0                	xor    %eax,%eax                      
      timeout,                                                        
      &out                                                            
    );                                                                
  }                                                                   
                                                                      
  *node_ptr = node;                                                   
  10a27e:	8b 55 14             	mov    0x14(%ebp),%edx                
  10a281:	89 1a                	mov    %ebx,(%edx)                    
                                                                      
  return sc;                                                          
}                                                                     
  10a283:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  10a286:	5b                   	pop    %ebx                           
  10a287:	5e                   	pop    %esi                           
  10a288:	5f                   	pop    %edi                           
  10a289:	c9                   	leave                                 
  10a28a:	c3                   	ret                                   
                                                                      

00106cf8 <rtems_cpu_usage_report_with_plugin>: void rtems_cpu_usage_report_with_plugin( void *context, rtems_printk_plugin_t print ) {
  106cf8:	55                   	push   %ebp                           
  106cf9:	89 e5                	mov    %esp,%ebp                      
  106cfb:	57                   	push   %edi                           
  106cfc:	56                   	push   %esi                           
  106cfd:	53                   	push   %ebx                           
  106cfe:	83 ec 6c             	sub    $0x6c,%esp                     
  106d01:	8b 7d 08             	mov    0x8(%ebp),%edi                 
    Timestamp_Control  uptime, total, ran, uptime_at_last_reset;      
  #else                                                               
    uint32_t           total_units = 0;                               
  #endif                                                              
                                                                      
  if ( !print )                                                       
  106d04:	83 7d 0c 00          	cmpl   $0x0,0xc(%ebp)                 
  106d08:	0f 84 8a 01 00 00    	je     106e98 <rtems_cpu_usage_report_with_plugin+0x1a0><== NEVER TAKEN
   *  When not using nanosecond CPU usage resolution, we have to count
   *  the number of "ticks" we gave credit for to give the user a rough
   *  guideline as to what each number means proportionally.          
   */                                                                 
  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                          
    _Timestamp_Set_to_zero( &total );                                 
  106d0e:	c7 45 d0 00 00 00 00 	movl   $0x0,-0x30(%ebp)               
  106d15:	c7 45 d4 00 00 00 00 	movl   $0x0,-0x2c(%ebp)               
    uptime_at_last_reset = CPU_usage_Uptime_at_last_reset;            
  106d1c:	a1 f4 68 12 00       	mov    0x1268f4,%eax                  
  106d21:	8b 15 f8 68 12 00    	mov    0x1268f8,%edx                  
  106d27:	89 45 c0             	mov    %eax,-0x40(%ebp)               
  106d2a:	89 55 c4             	mov    %edx,-0x3c(%ebp)               
        }                                                             
      }                                                               
    }                                                                 
  #endif                                                              
                                                                      
  (*print)(                                                           
  106d2d:	53                   	push   %ebx                           
  106d2e:	53                   	push   %ebx                           
  106d2f:	68 d5 fa 11 00       	push   $0x11fad5                      
  106d34:	57                   	push   %edi                           
  106d35:	ff 55 0c             	call   *0xc(%ebp)                     
  106d38:	83 c4 10             	add    $0x10,%esp                     
       " ID         | NAME                                   | TICKS         | PERCENT\n"
     #endif                                                           
     "------------+----------------------------------------+---------------+---------\n"
  );                                                                  
                                                                      
  for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) {
  106d3b:	c7 45 90 01 00 00 00 	movl   $0x1,-0x70(%ebp)               
    #if !defined(RTEMS_POSIX_API) || defined(RTEMS_DEBUG)             
      if ( !_Objects_Information_table[ api_index ] )                 
  106d42:	8b 55 90             	mov    -0x70(%ebp),%edx               
  106d45:	8b 04 95 40 66 12 00 	mov    0x126640(,%edx,4),%eax         
  106d4c:	85 c0                	test   %eax,%eax                      
  106d4e:	0f 84 1b 01 00 00    	je     106e6f <rtems_cpu_usage_report_with_plugin+0x177>
        continue;                                                     
    #endif                                                            
                                                                      
    information = _Objects_Information_table[ api_index ][ 1 ];       
  106d54:	8b 70 04             	mov    0x4(%eax),%esi                 
    if ( information ) {                                              
  106d57:	85 f6                	test   %esi,%esi                      
  106d59:	0f 84 10 01 00 00    	je     106e6f <rtems_cpu_usage_report_with_plugin+0x177><== NEVER TAKEN
  106d5f:	c7 45 94 01 00 00 00 	movl   $0x1,-0x6c(%ebp)               
  106d66:	e9 f7 00 00 00       	jmp    106e62 <rtems_cpu_usage_report_with_plugin+0x16a>
      for ( i=1 ; i <= information->maximum ; i++ ) {                 
        the_thread = (Thread_Control *)information->local_table[ i ]; 
  106d6b:	8b 46 1c             	mov    0x1c(%esi),%eax                
  106d6e:	8b 4d 94             	mov    -0x6c(%ebp),%ecx               
  106d71:	8b 14 88             	mov    (%eax,%ecx,4),%edx             
                                                                      
        if ( !the_thread )                                            
  106d74:	85 d2                	test   %edx,%edx                      
  106d76:	0f 84 e3 00 00 00    	je     106e5f <rtems_cpu_usage_report_with_plugin+0x167><== NEVER TAKEN
          continue;                                                   
                                                                      
        rtems_object_get_name( the_thread->Object.id, sizeof(name), name );
  106d7c:	51                   	push   %ecx                           
  106d7d:	8d 5d a3             	lea    -0x5d(%ebp),%ebx               
  106d80:	53                   	push   %ebx                           
  106d81:	6a 0d                	push   $0xd                           
  106d83:	ff 72 08             	pushl  0x8(%edx)                      
  106d86:	89 55 8c             	mov    %edx,-0x74(%ebp)               
  106d89:	e8 52 39 00 00       	call   10a6e0 <rtems_object_get_name> 
                                                                      
        (*print)(                                                     
  106d8e:	53                   	push   %ebx                           
  106d8f:	8b 55 8c             	mov    -0x74(%ebp),%edx               
  106d92:	ff 72 08             	pushl  0x8(%edx)                      
  106d95:	68 47 fc 11 00       	push   $0x11fc47                      
  106d9a:	57                   	push   %edi                           
  106d9b:	ff 55 0c             	call   *0xc(%ebp)                     
        #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                    
          /*                                                          
           * If this is the currently executing thread, account for time
           * since the last context switch.                           
           */                                                         
          ran = the_thread->cpu_time_used;                            
  106d9e:	8b 55 8c             	mov    -0x74(%ebp),%edx               
  106da1:	8b 8a 84 00 00 00    	mov    0x84(%edx),%ecx                
  106da7:	8b 9a 88 00 00 00    	mov    0x88(%edx),%ebx                
  106dad:	89 4d c8             	mov    %ecx,-0x38(%ebp)               
  106db0:	89 5d cc             	mov    %ebx,-0x34(%ebp)               
          if ( _Thread_Executing->Object.id == the_thread->Object.id ) {
  106db3:	83 c4 20             	add    $0x20,%esp                     
  106db6:	a1 c0 68 12 00       	mov    0x1268c0,%eax                  
  106dbb:	8b 5a 08             	mov    0x8(%edx),%ebx                 
  106dbe:	39 58 08             	cmp    %ebx,0x8(%eax)                 
  106dc1:	75 45                	jne    106e08 <rtems_cpu_usage_report_with_plugin+0x110>
            Timestamp_Control used;                                   
            Timestamp_Control last = _Thread_Time_of_last_context_switch;
  106dc3:	a1 14 67 12 00       	mov    0x126714,%eax                  
  106dc8:	8b 15 18 67 12 00    	mov    0x126718,%edx                  
  106dce:	89 45 b0             	mov    %eax,-0x50(%ebp)               
  106dd1:	89 55 b4             	mov    %edx,-0x4c(%ebp)               
            _TOD_Get_uptime( &uptime );                               
  106dd4:	83 ec 0c             	sub    $0xc,%esp                      
  106dd7:	8d 45 d8             	lea    -0x28(%ebp),%eax               
  106dda:	50                   	push   %eax                           
  106ddb:	e8 30 49 00 00       	call   10b710 <_TOD_Get_uptime>       
            _Timestamp_Subtract( &last, &uptime, &used );             
  106de0:	83 c4 0c             	add    $0xc,%esp                      
  106de3:	8d 45 b8             	lea    -0x48(%ebp),%eax               
  106de6:	50                   	push   %eax                           
  106de7:	8d 55 d8             	lea    -0x28(%ebp),%edx               
  106dea:	52                   	push   %edx                           
  106deb:	8d 55 b0             	lea    -0x50(%ebp),%edx               
  106dee:	52                   	push   %edx                           
  106def:	89 45 8c             	mov    %eax,-0x74(%ebp)               
  106df2:	e8 79 67 00 00       	call   10d570 <_Timespec_Subtract>    
            _Timestamp_Add_to( &ran, &used );                         
  106df7:	58                   	pop    %eax                           
  106df8:	5a                   	pop    %edx                           
  106df9:	8b 45 8c             	mov    -0x74(%ebp),%eax               
  106dfc:	50                   	push   %eax                           
  106dfd:	8d 45 c8             	lea    -0x38(%ebp),%eax               
  106e00:	50                   	push   %eax                           
  106e01:	e8 7e 66 00 00       	call   10d484 <_Timespec_Add_to>      
  106e06:	eb 0c                	jmp    106e14 <rtems_cpu_usage_report_with_plugin+0x11c>
          } else {                                                    
            _TOD_Get_uptime( &uptime );                               
  106e08:	83 ec 0c             	sub    $0xc,%esp                      
  106e0b:	8d 4d d8             	lea    -0x28(%ebp),%ecx               
  106e0e:	51                   	push   %ecx                           
  106e0f:	e8 fc 48 00 00       	call   10b710 <_TOD_Get_uptime>       
  106e14:	83 c4 0c             	add    $0xc,%esp                      
          }                                                           
          _Timestamp_Subtract( &uptime_at_last_reset, &uptime, &total );
  106e17:	8d 5d d0             	lea    -0x30(%ebp),%ebx               
  106e1a:	53                   	push   %ebx                           
  106e1b:	8d 45 d8             	lea    -0x28(%ebp),%eax               
  106e1e:	50                   	push   %eax                           
  106e1f:	8d 55 c0             	lea    -0x40(%ebp),%edx               
  106e22:	52                   	push   %edx                           
  106e23:	e8 48 67 00 00       	call   10d570 <_Timespec_Subtract>    
          _Timestamp_Divide( &ran, &total, &ival, &fval );            
  106e28:	8d 4d e0             	lea    -0x20(%ebp),%ecx               
  106e2b:	51                   	push   %ecx                           
  106e2c:	8d 45 e4             	lea    -0x1c(%ebp),%eax               
  106e2f:	50                   	push   %eax                           
  106e30:	53                   	push   %ebx                           
  106e31:	8d 45 c8             	lea    -0x38(%ebp),%eax               
  106e34:	50                   	push   %eax                           
  106e35:	e8 7a 66 00 00       	call   10d4b4 <_Timespec_Divide>      
                                                                      
          /*                                                          
           * Print the information                                    
           */                                                         
                                                                      
          (*print)( context,                                          
  106e3a:	83 c4 18             	add    $0x18,%esp                     
  106e3d:	ff 75 e0             	pushl  -0x20(%ebp)                    
  106e40:	ff 75 e4             	pushl  -0x1c(%ebp)                    
  106e43:	8b 45 cc             	mov    -0x34(%ebp),%eax               
  106e46:	b9 e8 03 00 00       	mov    $0x3e8,%ecx                    
  106e4b:	31 d2                	xor    %edx,%edx                      
  106e4d:	f7 f1                	div    %ecx                           
  106e4f:	50                   	push   %eax                           
  106e50:	ff 75 c8             	pushl  -0x38(%ebp)                    
  106e53:	68 5a fc 11 00       	push   $0x11fc5a                      
  106e58:	57                   	push   %edi                           
  106e59:	ff 55 0c             	call   *0xc(%ebp)                     
  106e5c:	83 c4 20             	add    $0x20,%esp                     
        continue;                                                     
    #endif                                                            
                                                                      
    information = _Objects_Information_table[ api_index ][ 1 ];       
    if ( information ) {                                              
      for ( i=1 ; i <= information->maximum ; i++ ) {                 
  106e5f:	ff 45 94             	incl   -0x6c(%ebp)                    
  106e62:	0f b7 46 10          	movzwl 0x10(%esi),%eax                
  106e66:	39 45 94             	cmp    %eax,-0x6c(%ebp)               
  106e69:	0f 86 fc fe ff ff    	jbe    106d6b <rtems_cpu_usage_report_with_plugin+0x73>
       " ID         | NAME                                   | TICKS         | PERCENT\n"
     #endif                                                           
     "------------+----------------------------------------+---------------+---------\n"
  );                                                                  
                                                                      
  for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) {
  106e6f:	ff 45 90             	incl   -0x70(%ebp)                    
  106e72:	83 7d 90 04          	cmpl   $0x4,-0x70(%ebp)               
  106e76:	0f 85 c6 fe ff ff    	jne    106d42 <rtems_cpu_usage_report_with_plugin+0x4a>
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                          
    (*print)(                                                         
  106e7c:	8b 45 d4             	mov    -0x2c(%ebp),%eax               
  106e7f:	b9 e8 03 00 00       	mov    $0x3e8,%ecx                    
  106e84:	31 d2                	xor    %edx,%edx                      
  106e86:	f7 f1                	div    %ecx                           
  106e88:	50                   	push   %eax                           
  106e89:	ff 75 d0             	pushl  -0x30(%ebp)                    
  106e8c:	68 72 fc 11 00       	push   $0x11fc72                      
  106e91:	57                   	push   %edi                           
  106e92:	ff 55 0c             	call   *0xc(%ebp)                     
  106e95:	83 c4 10             	add    $0x10,%esp                     
       "-------------------------------------------------------------------------------\n",
       _Watchdog_Ticks_since_boot - CPU_usage_Ticks_at_last_reset,    
       total_units                                                    
    );                                                                
  #endif                                                              
}                                                                     
  106e98:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  106e9b:	5b                   	pop    %ebx                           
  106e9c:	5e                   	pop    %esi                           
  106e9d:	5f                   	pop    %edi                           
  106e9e:	c9                   	leave                                 
  106e9f:	c3                   	ret                                   
                                                                      

0010fd38 <rtems_deviceio_errno>: [RTEMS_IO_ERROR] = EIO, [RTEMS_PROXY_BLOCKING] = EIO }; int rtems_deviceio_errno(rtems_status_code sc) {
  10fd38:	55                   	push   %ebp                           
  10fd39:	89 e5                	mov    %esp,%ebp                      
  10fd3b:	53                   	push   %ebx                           
  10fd3c:	83 ec 04             	sub    $0x4,%esp                      
  10fd3f:	8b 55 08             	mov    0x8(%ebp),%edx                 
  if (sc == RTEMS_SUCCESSFUL) {                                       
    return 0;                                                         
  10fd42:	31 c0                	xor    %eax,%eax                      
  [RTEMS_PROXY_BLOCKING]           = EIO                              
};                                                                    
                                                                      
int rtems_deviceio_errno(rtems_status_code sc)                        
{                                                                     
  if (sc == RTEMS_SUCCESSFUL) {                                       
  10fd44:	85 d2                	test   %edx,%edx                      
  10fd46:	74 1b                	je     10fd63 <rtems_deviceio_errno+0x2b>
    return 0;                                                         
  } else {                                                            
    int eno = EINVAL;                                                 
  10fd48:	bb 16 00 00 00       	mov    $0x16,%ebx                     
                                                                      
    if ((unsigned) sc <= RTEMS_STATUS_CODES_LAST) {                   
  10fd4d:	83 fa 1c             	cmp    $0x1c,%edx                     
  10fd50:	77 07                	ja     10fd59 <rtems_deviceio_errno+0x21><== NEVER TAKEN
      eno = status_code_to_errno [sc];                                
  10fd52:	8b 1c 95 84 e0 11 00 	mov    0x11e084(,%edx,4),%ebx         
    }                                                                 
                                                                      
    errno = eno;                                                      
  10fd59:	e8 22 00 00 00       	call   10fd80 <__errno>               
  10fd5e:	89 18                	mov    %ebx,(%eax)                    
                                                                      
    return -1;                                                        
  10fd60:	83 c8 ff             	or     $0xffffffff,%eax               
  }                                                                   
}                                                                     
  10fd63:	5a                   	pop    %edx                           
  10fd64:	5b                   	pop    %ebx                           
  10fd65:	c9                   	leave                                 
  10fd66:	c3                   	ret                                   
                                                                      

0010d99f <rtems_filesystem_get_mount_handler>: rtems_filesystem_fsmount_me_t rtems_filesystem_get_mount_handler( const char *type ) {
  10d99f:	55                   	push   %ebp                           
  10d9a0:	89 e5                	mov    %esp,%ebp                      
  10d9a2:	83 ec 18             	sub    $0x18,%esp                     
  10d9a5:	8b 45 08             	mov    0x8(%ebp),%eax                 
  find_arg fa = {                                                     
  10d9a8:	89 45 f0             	mov    %eax,-0x10(%ebp)               
  10d9ab:	c7 45 f4 00 00 00 00 	movl   $0x0,-0xc(%ebp)                
    .type = type,                                                     
    .mount_h = NULL                                                   
  };                                                                  
                                                                      
  if ( type != NULL ) {                                               
  10d9b2:	85 c0                	test   %eax,%eax                      
  10d9b4:	74 13                	je     10d9c9 <rtems_filesystem_get_mount_handler+0x2a><== NEVER TAKEN
    rtems_filesystem_iterate( find_handler, &fa );                    
  10d9b6:	50                   	push   %eax                           
  10d9b7:	50                   	push   %eax                           
  10d9b8:	8d 45 f0             	lea    -0x10(%ebp),%eax               
  10d9bb:	50                   	push   %eax                           
  10d9bc:	68 c8 d8 10 00       	push   $0x10d8c8                      
  10d9c1:	e8 62 ff ff ff       	call   10d928 <rtems_filesystem_iterate>
  10d9c6:	83 c4 10             	add    $0x10,%esp                     
  }                                                                   
                                                                      
  return fa.mount_h;                                                  
}                                                                     
  10d9c9:	8b 45 f4             	mov    -0xc(%ebp),%eax                
  10d9cc:	c9                   	leave                                 
  10d9cd:	c3                   	ret                                   
                                                                      

0010674c <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 ) {
  10674c:	55                   	push   %ebp                           
  10674d:	89 e5                	mov    %esp,%ebp                      
  10674f:	57                   	push   %edi                           
  106750:	56                   	push   %esi                           
  106751:	53                   	push   %ebx                           
  106752:	83 ec 2c             	sub    $0x2c,%esp                     
                                                                      
  /*                                                                  
   *  Set the default umask to "022".                                 
   */                                                                 
                                                                      
  rtems_filesystem_umask = 022;                                       
  106755:	a1 44 10 12 00       	mov    0x121044,%eax                  
  10675a:	c7 40 2c 12 00 00 00 	movl   $0x12,0x2c(%eax)               
                                                                      
  /*                                                                  
   *  mount the first filesystem.                                     
   */                                                                 
  if ( rtems_filesystem_mount_table_size == 0 )                       
  106761:	83 3d 40 c4 11 00 00 	cmpl   $0x0,0x11c440                  
  106768:	75 0a                	jne    106774 <rtems_filesystem_initialize+0x28><== ALWAYS TAKEN
    rtems_fatal_error_occurred( 0xABCD0001 );                         
  10676a:	83 ec 0c             	sub    $0xc,%esp                      <== NOT EXECUTED
  10676d:	68 01 00 cd ab       	push   $0xabcd0001                    <== NOT EXECUTED
  106772:	eb 28                	jmp    10679c <rtems_filesystem_initialize+0x50><== NOT EXECUTED
                                                                      
  mt = &rtems_filesystem_mount_table[0];                              
  106774:	a1 4c f1 11 00       	mov    0x11f14c,%eax                  
                                                                      
  status = mount( mt->device, mt->mount_point, mt->type, mt->fsoptions, NULL );
  106779:	83 ec 0c             	sub    $0xc,%esp                      
  10677c:	6a 00                	push   $0x0                           
  10677e:	ff 70 04             	pushl  0x4(%eax)                      
  106781:	ff 30                	pushl  (%eax)                         
  106783:	ff 70 0c             	pushl  0xc(%eax)                      
  106786:	ff 70 08             	pushl  0x8(%eax)                      
  106789:	e8 9b 06 00 00       	call   106e29 <mount>                 
  if ( status == -1 )                                                 
  10678e:	83 c4 20             	add    $0x20,%esp                     
  106791:	40                   	inc    %eax                           
  106792:	75 0d                	jne    1067a1 <rtems_filesystem_initialize+0x55><== ALWAYS TAKEN
    rtems_fatal_error_occurred( 0xABCD0002 );                         
  106794:	83 ec 0c             	sub    $0xc,%esp                      <== NOT EXECUTED
  106797:	68 02 00 cd ab       	push   $0xabcd0002                    <== NOT EXECUTED
  10679c:	e8 5f 35 00 00       	call   109d00 <rtems_fatal_error_occurred><== NOT EXECUTED
                                                                      
  rtems_filesystem_link_counts = 0;                                   
  1067a1:	a1 44 10 12 00       	mov    0x121044,%eax                  
  1067a6:	66 c7 40 30 00 00    	movw   $0x0,0x30(%eax)                
   *       gonna hit performance.                                     
   *                                                                  
   *       Till Straumann, 10/25/2002                                 
   */                                                                 
  /* Clone the root pathloc */                                        
  rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);                 
  1067ac:	83 ec 0c             	sub    $0xc,%esp                      
  1067af:	6a 00                	push   $0x0                           
  1067b1:	8d 5d d4             	lea    -0x2c(%ebp),%ebx               
  1067b4:	53                   	push   %ebx                           
  1067b5:	6a 00                	push   $0x0                           
  1067b7:	6a 01                	push   $0x1                           
  1067b9:	68 74 da 11 00       	push   $0x11da74                      
  1067be:	e8 03 01 00 00       	call   1068c6 <rtems_filesystem_evaluate_path>
  rtems_filesystem_root        = loc;                                 
  1067c3:	8b 3d 44 10 12 00    	mov    0x121044,%edi                  
  1067c9:	83 c7 18             	add    $0x18,%edi                     
  1067cc:	b9 05 00 00 00       	mov    $0x5,%ecx                      
  1067d1:	89 de                	mov    %ebx,%esi                      
  1067d3:	f3 a5                	rep movsl %ds:(%esi),%es:(%edi)       
  /* One more clone for the current node */                           
  rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);                 
  1067d5:	83 c4 14             	add    $0x14,%esp                     
  1067d8:	6a 00                	push   $0x0                           
  1067da:	53                   	push   %ebx                           
  1067db:	6a 00                	push   $0x0                           
  1067dd:	6a 01                	push   $0x1                           
  1067df:	68 74 da 11 00       	push   $0x11da74                      
  1067e4:	e8 dd 00 00 00       	call   1068c6 <rtems_filesystem_evaluate_path>
  rtems_filesystem_current     = loc;                                 
  1067e9:	8b 3d 44 10 12 00    	mov    0x121044,%edi                  
  1067ef:	83 c7 04             	add    $0x4,%edi                      
  1067f2:	b9 05 00 00 00       	mov    $0x5,%ecx                      
  1067f7:	89 de                	mov    %ebx,%esi                      
  1067f9:	f3 a5                	rep movsl %ds:(%esi),%es:(%edi)       
   *                                                                  
   *  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);                                      
  1067fb:	83 c4 18             	add    $0x18,%esp                     
  1067fe:	68 ff 01 00 00       	push   $0x1ff                         
  106803:	68 76 da 11 00       	push   $0x11da76                      
  106808:	e8 c3 04 00 00       	call   106cd0 <mkdir>                 
  if ( status != 0 )                                                  
  10680d:	83 c4 10             	add    $0x10,%esp                     
  106810:	85 c0                	test   %eax,%eax                      
  106812:	74 0d                	je     106821 <rtems_filesystem_initialize+0xd5><== ALWAYS TAKEN
    rtems_fatal_error_occurred( 0xABCD0003 );                         
  106814:	83 ec 0c             	sub    $0xc,%esp                      <== NOT EXECUTED
  106817:	68 03 00 cd ab       	push   $0xabcd0003                    <== NOT EXECUTED
  10681c:	e9 7b ff ff ff       	jmp    10679c <rtems_filesystem_initialize+0x50><== NOT EXECUTED
   *  it will be mounted onto is created.  Moreover, if it is going to
   *  use a device, then it is REALLY unfair to attempt this          
   *  before device drivers are initialized.  So we return via a base 
   *  filesystem image and nothing auto-mounted at this point.        
   */                                                                 
}                                                                     
  106821:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  106824:	5b                   	pop    %ebx                           
  106825:	5e                   	pop    %esi                           
  106826:	5f                   	pop    %edi                           
  106827:	c9                   	leave                                 
  106828:	c3                   	ret                                   
                                                                      

0010d928 <rtems_filesystem_iterate>: bool rtems_filesystem_iterate( rtems_per_filesystem_routine routine, void *routine_arg ) {
  10d928:	55                   	push   %ebp                           
  10d929:	89 e5                	mov    %esp,%ebp                      
  10d92b:	57                   	push   %edi                           
  10d92c:	56                   	push   %esi                           
  10d92d:	53                   	push   %ebx                           
  10d92e:	83 ec 1c             	sub    $0x1c,%esp                     
  10d931:	8b 75 08             	mov    0x8(%ebp),%esi                 
  10d934:	8b 7d 0c             	mov    0xc(%ebp),%edi                 
  const rtems_filesystem_table_t *table_entry = &rtems_filesystem_table [0];
  rtems_chain_node *node = NULL;                                      
  bool stop = false;                                                  
  10d937:	31 c0                	xor    %eax,%eax                      
bool rtems_filesystem_iterate(                                        
  rtems_per_filesystem_routine routine,                               
  void *routine_arg                                                   
)                                                                     
{                                                                     
  const rtems_filesystem_table_t *table_entry = &rtems_filesystem_table [0];
  10d939:	bb 20 c4 11 00       	mov    $0x11c420,%ebx                 
  rtems_chain_node *node = NULL;                                      
  bool stop = false;                                                  
                                                                      
  while ( table_entry->type && !stop ) {                              
  10d93e:	eb 0c                	jmp    10d94c <rtems_filesystem_iterate+0x24>
    stop = (*routine)( table_entry, routine_arg );                    
  10d940:	51                   	push   %ecx                           
  10d941:	51                   	push   %ecx                           
  10d942:	57                   	push   %edi                           
  10d943:	53                   	push   %ebx                           
  10d944:	ff d6                	call   *%esi                          
    ++table_entry;                                                    
  10d946:	83 c3 08             	add    $0x8,%ebx                      
  10d949:	83 c4 10             	add    $0x10,%esp                     
{                                                                     
  const rtems_filesystem_table_t *table_entry = &rtems_filesystem_table [0];
  rtems_chain_node *node = NULL;                                      
  bool stop = false;                                                  
                                                                      
  while ( table_entry->type && !stop ) {                              
  10d94c:	83 3b 00             	cmpl   $0x0,(%ebx)                    
  10d94f:	74 06                	je     10d957 <rtems_filesystem_iterate+0x2f>
  10d951:	84 c0                	test   %al,%al                        
  10d953:	74 eb                	je     10d940 <rtems_filesystem_iterate+0x18>
  10d955:	eb 40                	jmp    10d997 <rtems_filesystem_iterate+0x6f>
    stop = (*routine)( table_entry, routine_arg );                    
    ++table_entry;                                                    
  }                                                                   
                                                                      
  if ( !stop ) {                                                      
  10d957:	84 c0                	test   %al,%al                        
  10d959:	75 3c                	jne    10d997 <rtems_filesystem_iterate+0x6f>
    rtems_libio_lock();                                               
  10d95b:	88 45 e4             	mov    %al,-0x1c(%ebp)                
  10d95e:	e8 95 ff ff ff       	call   10d8f8 <rtems_libio_lock>      
    }                                                                 
  }                                                                   
  rtems_libio_unlock();                                               
                                                                      
  rtems_set_errno_and_return_minus_one( ENOENT );                     
}                                                                     
  10d963:	8b 1d 50 10 12 00    	mov    0x121050,%ebx                  
    ++table_entry;                                                    
  }                                                                   
                                                                      
  if ( !stop ) {                                                      
    rtems_libio_lock();                                               
    for (                                                             
  10d969:	8a 55 e4             	mov    -0x1c(%ebp),%dl                
  10d96c:	eb 10                	jmp    10d97e <rtems_filesystem_iterate+0x56>
      !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 );                  
  10d96e:	52                   	push   %edx                           
  10d96f:	52                   	push   %edx                           
  10d970:	57                   	push   %edi                           
  10d971:	8d 43 08             	lea    0x8(%ebx),%eax                 
  10d974:	50                   	push   %eax                           
  10d975:	ff d6                	call   *%esi                          
  10d977:	88 c2                	mov    %al,%dl                        
    }                                                                 
  }                                                                   
  rtems_libio_unlock();                                               
                                                                      
  rtems_set_errno_and_return_minus_one( ENOENT );                     
}                                                                     
  10d979:	8b 1b                	mov    (%ebx),%ebx                    
  if ( !stop ) {                                                      
    rtems_libio_lock();                                               
    for (                                                             
      node = rtems_chain_first( &filesystem_chain );                  
      !rtems_chain_is_tail( &filesystem_chain, node ) && !stop;       
      node = rtems_chain_next( node )                                 
  10d97b:	83 c4 10             	add    $0x10,%esp                     
    ++table_entry;                                                    
  }                                                                   
                                                                      
  if ( !stop ) {                                                      
    rtems_libio_lock();                                               
    for (                                                             
  10d97e:	81 fb 54 10 12 00    	cmp    $0x121054,%ebx                 
  10d984:	74 04                	je     10d98a <rtems_filesystem_iterate+0x62>
      node = rtems_chain_first( &filesystem_chain );                  
      !rtems_chain_is_tail( &filesystem_chain, node ) && !stop;       
  10d986:	84 d2                	test   %dl,%dl                        
  10d988:	74 e4                	je     10d96e <rtems_filesystem_iterate+0x46><== ALWAYS TAKEN
    ) {                                                               
      const filesystem_node *fsn = (filesystem_node *) node;          
                                                                      
      stop = (*routine)( &fsn->entry, routine_arg );                  
    }                                                                 
    rtems_libio_unlock();                                             
  10d98a:	88 55 e4             	mov    %dl,-0x1c(%ebp)                
  10d98d:	e8 80 ff ff ff       	call   10d912 <rtems_libio_unlock>    
  10d992:	8a 55 e4             	mov    -0x1c(%ebp),%dl                
  10d995:	88 d0                	mov    %dl,%al                        
  }                                                                   
                                                                      
  return stop;                                                        
}                                                                     
  10d997:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  10d99a:	5b                   	pop    %ebx                           
  10d99b:	5e                   	pop    %esi                           
  10d99c:	5f                   	pop    %edi                           
  10d99d:	c9                   	leave                                 
  10d99e:	c3                   	ret                                   
                                                                      

00106de1 <rtems_filesystem_mount_iterate>: bool rtems_filesystem_mount_iterate( rtems_per_filesystem_mount_routine routine, void *routine_arg ) {
  106de1:	55                   	push   %ebp                           
  106de2:	89 e5                	mov    %esp,%ebp                      
  106de4:	57                   	push   %edi                           
  106de5:	56                   	push   %esi                           
  106de6:	53                   	push   %ebx                           
  106de7:	83 ec 1c             	sub    $0x1c,%esp                     
  106dea:	8b 7d 08             	mov    0x8(%ebp),%edi                 
  106ded:	8b 75 0c             	mov    0xc(%ebp),%esi                 
  rtems_chain_node *node = NULL;                                      
  bool stop = false;                                                  
                                                                      
  rtems_libio_lock();                                                 
  106df0:	e8 bc ff ff ff       	call   106db1 <rtems_libio_lock>      
    stop = (*routine)( mt_entry, routine_arg );                       
  }                                                                   
  rtems_libio_unlock();                                               
                                                                      
  return stop;                                                        
}                                                                     
  106df5:	8b 1d 28 0f 12 00    	mov    0x120f28,%ebx                  
  rtems_per_filesystem_mount_routine routine,                         
  void *routine_arg                                                   
)                                                                     
{                                                                     
  rtems_chain_node *node = NULL;                                      
  bool stop = false;                                                  
  106dfb:	31 c0                	xor    %eax,%eax                      
                                                                      
  rtems_libio_lock();                                                 
  for (                                                               
  106dfd:	eb 0b                	jmp    106e0a <rtems_filesystem_mount_iterate+0x29>
    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 );                       
  106dff:	50                   	push   %eax                           
  106e00:	50                   	push   %eax                           
  106e01:	56                   	push   %esi                           
  106e02:	53                   	push   %ebx                           
  106e03:	ff d7                	call   *%edi                          
  }                                                                   
  rtems_libio_unlock();                                               
                                                                      
  return stop;                                                        
}                                                                     
  106e05:	8b 1b                	mov    (%ebx),%ebx                    
                                                                      
  rtems_libio_lock();                                                 
  for (                                                               
    node = rtems_chain_first( &mount_chain );                         
    !rtems_chain_is_tail( &mount_chain, node ) && !stop;              
    node = rtems_chain_next( node )                                   
  106e07:	83 c4 10             	add    $0x10,%esp                     
{                                                                     
  rtems_chain_node *node = NULL;                                      
  bool stop = false;                                                  
                                                                      
  rtems_libio_lock();                                                 
  for (                                                               
  106e0a:	81 fb 2c 0f 12 00    	cmp    $0x120f2c,%ebx                 
  106e10:	74 04                	je     106e16 <rtems_filesystem_mount_iterate+0x35>
    node = rtems_chain_first( &mount_chain );                         
    !rtems_chain_is_tail( &mount_chain, node ) && !stop;              
  106e12:	84 c0                	test   %al,%al                        
  106e14:	74 e9                	je     106dff <rtems_filesystem_mount_iterate+0x1e><== ALWAYS TAKEN
    const rtems_filesystem_mount_table_entry_t *mt_entry =            
      (rtems_filesystem_mount_table_entry_t *) node;                  
                                                                      
    stop = (*routine)( mt_entry, routine_arg );                       
  }                                                                   
  rtems_libio_unlock();                                               
  106e16:	88 45 e4             	mov    %al,-0x1c(%ebp)                
  106e19:	e8 ad ff ff ff       	call   106dcb <rtems_libio_unlock>    
                                                                      
  return stop;                                                        
}                                                                     
  106e1e:	8a 45 e4             	mov    -0x1c(%ebp),%al                
  106e21:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  106e24:	5b                   	pop    %ebx                           
  106e25:	5e                   	pop    %esi                           
  106e26:	5f                   	pop    %edi                           
  106e27:	c9                   	leave                                 
  106e28:	c3                   	ret                                   
                                                                      

00106946 <rtems_filesystem_prefix_separators>: int rtems_filesystem_prefix_separators( const char *pathname, int pathnamelen ) {
  106946:	55                   	push   %ebp                           
  106947:	89 e5                	mov    %esp,%ebp                      
  106949:	57                   	push   %edi                           
  10694a:	56                   	push   %esi                           
  10694b:	53                   	push   %ebx                           
  10694c:	83 ec 0c             	sub    $0xc,%esp                      
  10694f:	8b 7d 08             	mov    0x8(%ebp),%edi                 
  106952:	8b 75 0c             	mov    0xc(%ebp),%esi                 
  /*                                                                  
   * Eat any separators at start of the path.                         
   */                                                                 
  int stripped = 0;                                                   
  106955:	31 db                	xor    %ebx,%ebx                      
  while ( *pathname && pathnamelen && rtems_filesystem_is_separator( *pathname ) )
  106957:	eb 01                	jmp    10695a <rtems_filesystem_prefix_separators+0x14>
  {                                                                   
    pathname++;                                                       
    pathnamelen--;                                                    
    stripped++;                                                       
  106959:	43                   	inc    %ebx                           
{                                                                     
  /*                                                                  
   * Eat any separators at start of the path.                         
   */                                                                 
  int stripped = 0;                                                   
  while ( *pathname && pathnamelen && rtems_filesystem_is_separator( *pathname ) )
  10695a:	8a 04 1f             	mov    (%edi,%ebx,1),%al              
  10695d:	39 de                	cmp    %ebx,%esi                      
  10695f:	74 17                	je     106978 <rtems_filesystem_prefix_separators+0x32><== NEVER TAKEN
  106961:	84 c0                	test   %al,%al                        
  106963:	74 13                	je     106978 <rtems_filesystem_prefix_separators+0x32><== NEVER TAKEN
  106965:	83 ec 0c             	sub    $0xc,%esp                      
  106968:	0f be c0             	movsbl %al,%eax                       
  10696b:	50                   	push   %eax                           
  10696c:	e8 03 0d 00 00       	call   107674 <rtems_filesystem_is_separator>
  106971:	83 c4 10             	add    $0x10,%esp                     
  106974:	85 c0                	test   %eax,%eax                      
  106976:	75 e1                	jne    106959 <rtems_filesystem_prefix_separators+0x13>
    pathname++;                                                       
    pathnamelen--;                                                    
    stripped++;                                                       
  }                                                                   
  return stripped;                                                    
}                                                                     
  106978:	89 d8                	mov    %ebx,%eax                      
  10697a:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  10697d:	5b                   	pop    %ebx                           
  10697e:	5e                   	pop    %esi                           
  10697f:	5f                   	pop    %edi                           
  106980:	c9                   	leave                                 
  106981:	c3                   	ret                                   
                                                                      

0010721d <rtems_gxx_key_create>: int rtems_gxx_key_create (__gthread_key_t *key, void (*dtor) (void *)) {
  10721d:	55                   	push   %ebp                           
  10721e:	89 e5                	mov    %esp,%ebp                      
  107220:	56                   	push   %esi                           
  107221:	53                   	push   %ebx                           
  107222:	8b 75 0c             	mov    0xc(%ebp),%esi                 
   * 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 ) );
  107225:	83 ec 0c             	sub    $0xc,%esp                      
  107228:	6a 08                	push   $0x8                           
  10722a:	e8 89 03 00 00       	call   1075b8 <malloc>                
  10722f:	89 c3                	mov    %eax,%ebx                      
  *key = new_key;                                                     
  107231:	8b 45 08             	mov    0x8(%ebp),%eax                 
  107234:	89 18                	mov    %ebx,(%eax)                    
  new_key->val  = NULL;                                               
  107236:	c7 03 00 00 00 00    	movl   $0x0,(%ebx)                    
  new_key->dtor = dtor;                                               
  10723c:	89 73 04             	mov    %esi,0x4(%ebx)                 
      "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 );
  10723f:	83 c4 0c             	add    $0xc,%esp                      
  107242:	56                   	push   %esi                           
  107243:	53                   	push   %ebx                           
  107244:	6a 00                	push   $0x0                           
  107246:	e8 9d 33 00 00       	call   10a5e8 <rtems_task_variable_add>
  10724b:	89 c2                	mov    %eax,%edx                      
  if ( status == RTEMS_SUCCESSFUL )                                   
  10724d:	83 c4 10             	add    $0x10,%esp                     
    return 0;                                                         
  107250:	31 c0                	xor    %eax,%eax                      
    );                                                                
  #endif                                                              
                                                                      
  /* register with RTEMS the buffer that will hold the key values */  
  status = rtems_task_variable_add( RTEMS_SELF, (void **)new_key, dtor );
  if ( status == RTEMS_SUCCESSFUL )                                   
  107252:	85 d2                	test   %edx,%edx                      
  107254:	74 0f                	je     107265 <rtems_gxx_key_create+0x48><== ALWAYS TAKEN
    return 0;                                                         
                                                                      
  free( new_key );                                                    
  107256:	83 ec 0c             	sub    $0xc,%esp                      <== NOT EXECUTED
  107259:	53                   	push   %ebx                           <== NOT EXECUTED
  10725a:	e8 79 fe ff ff       	call   1070d8 <free>                  <== NOT EXECUTED
  return -1;                                                          
  10725f:	83 c4 10             	add    $0x10,%esp                     <== NOT EXECUTED
  107262:	83 c8 ff             	or     $0xffffffff,%eax               <== NOT EXECUTED
}                                                                     
  107265:	8d 65 f8             	lea    -0x8(%ebp),%esp                
  107268:	5b                   	pop    %ebx                           
  107269:	5e                   	pop    %esi                           
  10726a:	c9                   	leave                                 
  10726b:	c3                   	ret                                   
                                                                      

0010727c <rtems_gxx_key_delete>: int rtems_gxx_key_delete (__gthread_key_t key) {
  10727c:	55                   	push   %ebp                           
  10727d:	89 e5                	mov    %esp,%ebp                      
  10727f:	53                   	push   %ebx                           
  107280:	83 ec 0c             	sub    $0xc,%esp                      
  107283:	8b 5d 08             	mov    0x8(%ebp),%ebx                 
  #ifdef DEBUG_GXX_WRAPPERS                                           
    printk( "gxx_wrappers: delete key=%x\n", key );                   
  #endif                                                              
                                                                      
  /* register with RTEMS the buffer that will hold the key values */  
  status = rtems_task_variable_delete( RTEMS_SELF, (void **)key );    
  107286:	53                   	push   %ebx                           
  107287:	6a 00                	push   $0x0                           
  107289:	e8 ee 33 00 00       	call   10a67c <rtems_task_variable_delete>
  if ( status == RTEMS_SUCCESSFUL ) {                                 
  10728e:	83 c4 10             	add    $0x10,%esp                     
  107291:	85 c0                	test   %eax,%eax                      
  107293:	75 11                	jne    1072a6 <rtems_gxx_key_delete+0x2a><== NEVER TAKEN
    /* Hmm - hopefully all tasks using this key have gone away... */  
    if ( key ) free( *(void **)key );                                 
  107295:	85 db                	test   %ebx,%ebx                      
  107297:	74 0d                	je     1072a6 <rtems_gxx_key_delete+0x2a><== NEVER TAKEN
  107299:	83 ec 0c             	sub    $0xc,%esp                      
  10729c:	ff 33                	pushl  (%ebx)                         
  10729e:	e8 35 fe ff ff       	call   1070d8 <free>                  
  1072a3:	83 c4 10             	add    $0x10,%esp                     
    return 0;                                                         
  }                                                                   
  key = NULL;                                                         
  return 0;                                                           
}                                                                     
  1072a6:	31 c0                	xor    %eax,%eax                      
  1072a8:	8b 5d fc             	mov    -0x4(%ebp),%ebx                
  1072ab:	c9                   	leave                                 
  1072ac:	c3                   	ret                                   
                                                                      

001071c4 <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)) {
  1071c4:	55                   	push   %ebp                           
  1071c5:	89 e5                	mov    %esp,%ebp                      
  1071c7:	56                   	push   %esi                           
  1071c8:	53                   	push   %ebx                           
  1071c9:	83 ec 10             	sub    $0x10,%esp                     
  1071cc:	8b 5d 08             	mov    0x8(%ebp),%ebx                 
  #ifdef DEBUG_GXX_WRAPPERS                                           
    printk( "gxx_wrappers: once=%x, func=%x\n", *once, func );        
  #endif                                                              
                                                                      
  if ( *(volatile __gthread_once_t *)once == 0 ) {                    
  1071cf:	8b 03                	mov    (%ebx),%eax                    
  1071d1:	85 c0                	test   %eax,%eax                      
  1071d3:	75 3f                	jne    107214 <rtems_gxx_once+0x50>   
    rtems_mode saveMode;                                              
    __gthread_once_t o;                                               
                                                                      
    rtems_task_mode(RTEMS_NO_PREEMPT, RTEMS_PREEMPT_MASK, &saveMode); 
  1071d5:	52                   	push   %edx                           
  1071d6:	8d 45 f4             	lea    -0xc(%ebp),%eax                
  1071d9:	50                   	push   %eax                           
  1071da:	68 00 01 00 00       	push   $0x100                         
  1071df:	68 00 01 00 00       	push   $0x100                         
  1071e4:	e8 7f 32 00 00       	call   10a468 <rtems_task_mode>       
    if ( (o = *(volatile __gthread_once_t *)once) == 0 ) {            
  1071e9:	8b 33                	mov    (%ebx),%esi                    
  1071eb:	83 c4 10             	add    $0x10,%esp                     
  1071ee:	85 f6                	test   %esi,%esi                      
  1071f0:	75 06                	jne    1071f8 <rtems_gxx_once+0x34>   <== NEVER TAKEN
      *(volatile __gthread_once_t *)once = 1;                         
  1071f2:	c7 03 01 00 00 00    	movl   $0x1,(%ebx)                    
    }                                                                 
    rtems_task_mode(saveMode, RTEMS_PREEMPT_MASK, &saveMode);         
  1071f8:	50                   	push   %eax                           
  1071f9:	8d 45 f4             	lea    -0xc(%ebp),%eax                
  1071fc:	50                   	push   %eax                           
  1071fd:	68 00 01 00 00       	push   $0x100                         
  107202:	ff 75 f4             	pushl  -0xc(%ebp)                     
  107205:	e8 5e 32 00 00       	call   10a468 <rtems_task_mode>       
    if ( o == 0 )                                                     
  10720a:	83 c4 10             	add    $0x10,%esp                     
  10720d:	85 f6                	test   %esi,%esi                      
  10720f:	75 03                	jne    107214 <rtems_gxx_once+0x50>   <== NEVER TAKEN
      (*func)();                                                      
  107211:	ff 55 0c             	call   *0xc(%ebp)                     
  }                                                                   
  return 0;                                                           
}                                                                     
  107214:	31 c0                	xor    %eax,%eax                      
  107216:	8d 65 f8             	lea    -0x8(%ebp),%esp                
  107219:	5b                   	pop    %ebx                           
  10721a:	5e                   	pop    %esi                           
  10721b:	c9                   	leave                                 
  10721c:	c3                   	ret                                   
                                                                      

00107305 <rtems_gxx_setspecific>: int rtems_gxx_setspecific(__gthread_key_t key, const void *ptr) {
  107305:	55                   	push   %ebp                           
  107306:	89 e5                	mov    %esp,%ebp                      
  107308:	53                   	push   %ebx                           
  107309:	83 ec 08             	sub    $0x8,%esp                      
  10730c:	8b 5d 08             	mov    0x8(%ebp),%ebx                 
      rtems_task_self()                                               
      );                                                              
  #endif                                                              
                                                                      
  /* register with RTEMS the buffer that will hold the key values */  
  status = rtems_task_variable_add( RTEMS_SELF, (void **)key, key->dtor );
  10730f:	ff 73 04             	pushl  0x4(%ebx)                      
  107312:	53                   	push   %ebx                           
  107313:	6a 00                	push   $0x0                           
  107315:	e8 ce 32 00 00       	call   10a5e8 <rtems_task_variable_add>
  10731a:	89 c2                	mov    %eax,%edx                      
  if ( status == RTEMS_SUCCESSFUL ) {                                 
  10731c:	83 c4 10             	add    $0x10,%esp                     
    /* now let's set the proper value */                              
    key->val =  (void *)ptr;                                          
    return 0;                                                         
  }                                                                   
  return -1;                                                          
  10731f:	83 c8 ff             	or     $0xffffffff,%eax               
      );                                                              
  #endif                                                              
                                                                      
  /* register with RTEMS the buffer that will hold the key values */  
  status = rtems_task_variable_add( RTEMS_SELF, (void **)key, key->dtor );
  if ( status == RTEMS_SUCCESSFUL ) {                                 
  107322:	85 d2                	test   %edx,%edx                      
  107324:	75 07                	jne    10732d <rtems_gxx_setspecific+0x28><== NEVER TAKEN
    /* now let's set the proper value */                              
    key->val =  (void *)ptr;                                          
  107326:	8b 45 0c             	mov    0xc(%ebp),%eax                 
  107329:	89 03                	mov    %eax,(%ebx)                    
    return 0;                                                         
  10732b:	31 c0                	xor    %eax,%eax                      
  }                                                                   
  return -1;                                                          
}                                                                     
  10732d:	8b 5d fc             	mov    -0x4(%ebp),%ebx                
  107330:	c9                   	leave                                 
  107331:	c3                   	ret                                   
                                                                      

0010a004 <rtems_heap_allocate_aligned_with_boundary>: void *rtems_heap_allocate_aligned_with_boundary( size_t size, uintptr_t alignment, uintptr_t boundary ) {
  10a004:	55                   	push   %ebp                           
  10a005:	89 e5                	mov    %esp,%ebp                      
  10a007:	83 ec 08             	sub    $0x8,%esp                      
  if (                                                                
  10a00a:	83 3d d0 9c 12 00 03 	cmpl   $0x3,0x129cd0                  
  10a011:	75 0d                	jne    10a020 <rtems_heap_allocate_aligned_with_boundary+0x1c><== NEVER TAKEN
    _System_state_Is_up( _System_state_Get() )                        
      && !malloc_is_system_state_OK()                                 
  10a013:	e8 10 f1 ff ff       	call   109128 <malloc_is_system_state_OK>
  10a018:	88 c2                	mov    %al,%dl                        
  ) {                                                                 
    return NULL;                                                      
  10a01a:	31 c0                	xor    %eax,%eax                      
  uintptr_t boundary                                                  
)                                                                     
{                                                                     
  if (                                                                
    _System_state_Is_up( _System_state_Get() )                        
      && !malloc_is_system_state_OK()                                 
  10a01c:	84 d2                	test   %dl,%dl                        
  10a01e:	74 1c                	je     10a03c <rtems_heap_allocate_aligned_with_boundary+0x38>
  ) {                                                                 
    return NULL;                                                      
  }                                                                   
                                                                      
  malloc_deferred_frees_process();                                    
  10a020:	e8 41 f1 ff ff       	call   109166 <malloc_deferred_frees_process>
                                                                      
  /* FIXME: Statistics, boundary checks */                            
                                                                      
  return _Protected_heap_Allocate_aligned_with_boundary(              
  10a025:	ff 75 10             	pushl  0x10(%ebp)                     
  10a028:	ff 75 0c             	pushl  0xc(%ebp)                      
  10a02b:	ff 75 08             	pushl  0x8(%ebp)                      
  10a02e:	ff 35 80 51 12 00    	pushl  0x125180                       
  10a034:	e8 d3 41 00 00       	call   10e20c <_Protected_heap_Allocate_aligned_with_boundary>
  10a039:	83 c4 10             	add    $0x10,%esp                     
    RTEMS_Malloc_Heap,                                                
    size,                                                             
    alignment,                                                        
    boundary                                                          
  );                                                                  
}                                                                     
  10a03c:	c9                   	leave                                 
  10a03d:	c3                   	ret                                   
                                                                      

0010fae4 <rtems_io_close>: rtems_status_code rtems_io_close( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) {
  10fae4:	55                   	push   %ebp                           
  10fae5:	89 e5                	mov    %esp,%ebp                      
  10fae7:	53                   	push   %ebx                           
  10fae8:	83 ec 04             	sub    $0x4,%esp                      
  10faeb:	8b 45 08             	mov    0x8(%ebp),%eax                 
  rtems_device_driver_entry callout;                                  
                                                                      
  if ( major >= _IO_Number_of_drivers )                               
  10faee:	3b 05 d4 34 12 00    	cmp    0x1234d4,%eax                  
  10faf4:	73 15                	jae    10fb0b <rtems_io_close+0x27>   <== NEVER TAKEN
    return RTEMS_INVALID_NUMBER;                                      
                                                                      
  callout = _IO_Driver_address_table[major].close_entry;              
  10faf6:	6b d0 18             	imul   $0x18,%eax,%edx                
  10faf9:	03 15 d8 34 12 00    	add    0x1234d8,%edx                  
  10faff:	8b 52 08             	mov    0x8(%edx),%edx                 
  return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
  10fb02:	85 d2                	test   %edx,%edx                      
  10fb04:	74 0c                	je     10fb12 <rtems_io_close+0x2e>   
}                                                                     
  10fb06:	59                   	pop    %ecx                           
  10fb07:	5b                   	pop    %ebx                           
  10fb08:	c9                   	leave                                 
                                                                      
  if ( major >= _IO_Number_of_drivers )                               
    return RTEMS_INVALID_NUMBER;                                      
                                                                      
  callout = _IO_Driver_address_table[major].close_entry;              
  return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
  10fb09:	ff e2                	jmp    *%edx                          
)                                                                     
{                                                                     
  rtems_device_driver_entry callout;                                  
                                                                      
  if ( major >= _IO_Number_of_drivers )                               
    return RTEMS_INVALID_NUMBER;                                      
  10fb0b:	b8 0a 00 00 00       	mov    $0xa,%eax                      <== NOT EXECUTED
  10fb10:	eb 02                	jmp    10fb14 <rtems_io_close+0x30>   <== NOT EXECUTED
                                                                      
  callout = _IO_Driver_address_table[major].close_entry;              
  return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
  10fb12:	31 c0                	xor    %eax,%eax                      
}                                                                     
  10fb14:	5a                   	pop    %edx                           
  10fb15:	5b                   	pop    %ebx                           
  10fb16:	c9                   	leave                                 
  10fb17:	c3                   	ret                                   
                                                                      

0010fb18 <rtems_io_control>: rtems_status_code rtems_io_control( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) {
  10fb18:	55                   	push   %ebp                           
  10fb19:	89 e5                	mov    %esp,%ebp                      
  10fb1b:	53                   	push   %ebx                           
  10fb1c:	83 ec 04             	sub    $0x4,%esp                      
  10fb1f:	8b 45 08             	mov    0x8(%ebp),%eax                 
  rtems_device_driver_entry callout;                                  
                                                                      
  if ( major >= _IO_Number_of_drivers )                               
  10fb22:	3b 05 d4 34 12 00    	cmp    0x1234d4,%eax                  
  10fb28:	73 15                	jae    10fb3f <rtems_io_control+0x27> <== NEVER TAKEN
    return RTEMS_INVALID_NUMBER;                                      
                                                                      
  callout = _IO_Driver_address_table[major].control_entry;            
  10fb2a:	6b d0 18             	imul   $0x18,%eax,%edx                
  10fb2d:	03 15 d8 34 12 00    	add    0x1234d8,%edx                  
  10fb33:	8b 52 14             	mov    0x14(%edx),%edx                
  return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
  10fb36:	85 d2                	test   %edx,%edx                      
  10fb38:	74 0c                	je     10fb46 <rtems_io_control+0x2e> 
}                                                                     
  10fb3a:	59                   	pop    %ecx                           
  10fb3b:	5b                   	pop    %ebx                           
  10fb3c:	c9                   	leave                                 
                                                                      
  if ( major >= _IO_Number_of_drivers )                               
    return RTEMS_INVALID_NUMBER;                                      
                                                                      
  callout = _IO_Driver_address_table[major].control_entry;            
  return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
  10fb3d:	ff e2                	jmp    *%edx                          
)                                                                     
{                                                                     
  rtems_device_driver_entry callout;                                  
                                                                      
  if ( major >= _IO_Number_of_drivers )                               
    return RTEMS_INVALID_NUMBER;                                      
  10fb3f:	b8 0a 00 00 00       	mov    $0xa,%eax                      <== NOT EXECUTED
  10fb44:	eb 02                	jmp    10fb48 <rtems_io_control+0x30> <== NOT EXECUTED
                                                                      
  callout = _IO_Driver_address_table[major].control_entry;            
  return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
  10fb46:	31 c0                	xor    %eax,%eax                      
}                                                                     
  10fb48:	5a                   	pop    %edx                           
  10fb49:	5b                   	pop    %ebx                           
  10fb4a:	c9                   	leave                                 
  10fb4b:	c3                   	ret                                   
                                                                      

00106672 <rtems_io_lookup_name>: rtems_status_code rtems_io_lookup_name( const char *name, rtems_driver_name_t *device_info ) {
  106672:	55                   	push   %ebp                           
  106673:	89 e5                	mov    %esp,%ebp                      
  106675:	57                   	push   %edi                           
  106676:	56                   	push   %esi                           
  106677:	53                   	push   %ebx                           
  106678:	83 ec 48             	sub    $0x48,%esp                     
  10667b:	8b 75 08             	mov    0x8(%ebp),%esi                 
  IMFS_jnode_t                      *the_jnode;                       
  rtems_filesystem_location_info_t   loc;                             
  int                                result;                          
  rtems_filesystem_node_types_t      node_type;                       
                                                                      
  result = rtems_filesystem_evaluate_path(                            
  10667e:	31 c0                	xor    %eax,%eax                      
  106680:	83 c9 ff             	or     $0xffffffff,%ecx               
  106683:	89 f7                	mov    %esi,%edi                      
  106685:	f2 ae                	repnz scas %es:(%edi),%al             
  106687:	f7 d1                	not    %ecx                           
  106689:	49                   	dec    %ecx                           
  10668a:	6a 01                	push   $0x1                           
  10668c:	8d 55 d4             	lea    -0x2c(%ebp),%edx               
  10668f:	52                   	push   %edx                           
  106690:	6a 00                	push   $0x0                           
  106692:	51                   	push   %ecx                           
  106693:	56                   	push   %esi                           
  106694:	89 55 c4             	mov    %edx,-0x3c(%ebp)               
  106697:	e8 2a 02 00 00       	call   1068c6 <rtems_filesystem_evaluate_path>
  10669c:	89 c7                	mov    %eax,%edi                      
      name, strlen( name ), 0x00, &loc, true );                       
  the_jnode = loc.node_access;                                        
  10669e:	8b 5d d4             	mov    -0x2c(%ebp),%ebx               
                                                                      
  node_type = (*loc.ops->node_type_h)( &loc );                        
  1066a1:	83 c4 14             	add    $0x14,%esp                     
  1066a4:	8b 55 c4             	mov    -0x3c(%ebp),%edx               
  1066a7:	52                   	push   %edx                           
  1066a8:	8b 45 e0             	mov    -0x20(%ebp),%eax               
  1066ab:	ff 50 10             	call   *0x10(%eax)                    
                                                                      
  if ( (result != 0) || node_type != RTEMS_FILESYSTEM_DEVICE ) {      
  1066ae:	83 c4 10             	add    $0x10,%esp                     
  1066b1:	83 f8 02             	cmp    $0x2,%eax                      
  1066b4:	8b 55 c4             	mov    -0x3c(%ebp),%edx               
  1066b7:	75 07                	jne    1066c0 <rtems_io_lookup_name+0x4e>
  1066b9:	85 ff                	test   %edi,%edi                      
  1066bb:	0f 95 c0             	setne  %al                            
  1066be:	74 16                	je     1066d6 <rtems_io_lookup_name+0x64><== ALWAYS TAKEN
    rtems_filesystem_freenode( &loc );                                
  1066c0:	83 ec 0c             	sub    $0xc,%esp                      
  1066c3:	8d 45 d4             	lea    -0x2c(%ebp),%eax               
  1066c6:	50                   	push   %eax                           
  1066c7:	e8 b8 02 00 00       	call   106984 <rtems_filesystem_freenode>
    return RTEMS_UNSATISFIED;                                         
  1066cc:	83 c4 10             	add    $0x10,%esp                     
  1066cf:	b8 0d 00 00 00       	mov    $0xd,%eax                      
  1066d4:	eb 32                	jmp    106708 <rtems_io_lookup_name+0x96>
  }                                                                   
                                                                      
  device_info->device_name        = (char *) name;                    
  1066d6:	8b 4d 0c             	mov    0xc(%ebp),%ecx                 
  1066d9:	89 31                	mov    %esi,(%ecx)                    
  device_info->device_name_length = strlen( name );                   
  1066db:	83 c9 ff             	or     $0xffffffff,%ecx               
  1066de:	89 f7                	mov    %esi,%edi                      
  1066e0:	f2 ae                	repnz scas %es:(%edi),%al             
  1066e2:	f7 d1                	not    %ecx                           
  1066e4:	49                   	dec    %ecx                           
  1066e5:	8b 45 0c             	mov    0xc(%ebp),%eax                 
  1066e8:	89 48 04             	mov    %ecx,0x4(%eax)                 
  device_info->major              = the_jnode->info.device.major;     
  1066eb:	8b 43 50             	mov    0x50(%ebx),%eax                
  1066ee:	8b 4d 0c             	mov    0xc(%ebp),%ecx                 
  1066f1:	89 41 08             	mov    %eax,0x8(%ecx)                 
  device_info->minor              = the_jnode->info.device.minor;     
  1066f4:	8b 43 54             	mov    0x54(%ebx),%eax                
  1066f7:	89 41 0c             	mov    %eax,0xc(%ecx)                 
                                                                      
  rtems_filesystem_freenode( &loc );                                  
  1066fa:	83 ec 0c             	sub    $0xc,%esp                      
  1066fd:	52                   	push   %edx                           
  1066fe:	e8 81 02 00 00       	call   106984 <rtems_filesystem_freenode>
                                                                      
  return RTEMS_SUCCESSFUL;                                            
  106703:	83 c4 10             	add    $0x10,%esp                     
  106706:	31 c0                	xor    %eax,%eax                      
}                                                                     
  106708:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  10670b:	5b                   	pop    %ebx                           
  10670c:	5e                   	pop    %esi                           
  10670d:	5f                   	pop    %edi                           
  10670e:	c9                   	leave                                 
  10670f:	c3                   	ret                                   
                                                                      

0010fb80 <rtems_io_read>: rtems_status_code rtems_io_read( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) {
  10fb80:	55                   	push   %ebp                           
  10fb81:	89 e5                	mov    %esp,%ebp                      
  10fb83:	53                   	push   %ebx                           
  10fb84:	83 ec 04             	sub    $0x4,%esp                      
  10fb87:	8b 45 08             	mov    0x8(%ebp),%eax                 
  rtems_device_driver_entry callout;                                  
                                                                      
  if ( major >= _IO_Number_of_drivers )                               
  10fb8a:	3b 05 d4 34 12 00    	cmp    0x1234d4,%eax                  
  10fb90:	73 15                	jae    10fba7 <rtems_io_read+0x27>    <== NEVER TAKEN
    return RTEMS_INVALID_NUMBER;                                      
                                                                      
  callout = _IO_Driver_address_table[major].read_entry;               
  10fb92:	6b d0 18             	imul   $0x18,%eax,%edx                
  10fb95:	03 15 d8 34 12 00    	add    0x1234d8,%edx                  
  10fb9b:	8b 52 0c             	mov    0xc(%edx),%edx                 
  return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
  10fb9e:	85 d2                	test   %edx,%edx                      
  10fba0:	74 0c                	je     10fbae <rtems_io_read+0x2e>    
}                                                                     
  10fba2:	59                   	pop    %ecx                           
  10fba3:	5b                   	pop    %ebx                           
  10fba4:	c9                   	leave                                 
                                                                      
  if ( major >= _IO_Number_of_drivers )                               
    return RTEMS_INVALID_NUMBER;                                      
                                                                      
  callout = _IO_Driver_address_table[major].read_entry;               
  return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
  10fba5:	ff e2                	jmp    *%edx                          
)                                                                     
{                                                                     
  rtems_device_driver_entry callout;                                  
                                                                      
  if ( major >= _IO_Number_of_drivers )                               
    return RTEMS_INVALID_NUMBER;                                      
  10fba7:	b8 0a 00 00 00       	mov    $0xa,%eax                      <== NOT EXECUTED
  10fbac:	eb 02                	jmp    10fbb0 <rtems_io_read+0x30>    <== NOT EXECUTED
                                                                      
  callout = _IO_Driver_address_table[major].read_entry;               
  return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
  10fbae:	31 c0                	xor    %eax,%eax                      
}                                                                     
  10fbb0:	5a                   	pop    %edx                           
  10fbb1:	5b                   	pop    %ebx                           
  10fbb2:	c9                   	leave                                 
  10fbb3:	c3                   	ret                                   
                                                                      

0010fbb4 <rtems_io_write>: rtems_status_code rtems_io_write( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) {
  10fbb4:	55                   	push   %ebp                           
  10fbb5:	89 e5                	mov    %esp,%ebp                      
  10fbb7:	53                   	push   %ebx                           
  10fbb8:	83 ec 04             	sub    $0x4,%esp                      
  10fbbb:	8b 45 08             	mov    0x8(%ebp),%eax                 
  rtems_device_driver_entry callout;                                  
                                                                      
  if ( major >= _IO_Number_of_drivers )                               
  10fbbe:	3b 05 d4 34 12 00    	cmp    0x1234d4,%eax                  
  10fbc4:	73 15                	jae    10fbdb <rtems_io_write+0x27>   <== NEVER TAKEN
    return RTEMS_INVALID_NUMBER;                                      
                                                                      
  callout = _IO_Driver_address_table[major].write_entry;              
  10fbc6:	6b d0 18             	imul   $0x18,%eax,%edx                
  10fbc9:	03 15 d8 34 12 00    	add    0x1234d8,%edx                  
  10fbcf:	8b 52 10             	mov    0x10(%edx),%edx                
  return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
  10fbd2:	85 d2                	test   %edx,%edx                      
  10fbd4:	74 0c                	je     10fbe2 <rtems_io_write+0x2e>   
}                                                                     
  10fbd6:	59                   	pop    %ecx                           
  10fbd7:	5b                   	pop    %ebx                           
  10fbd8:	c9                   	leave                                 
                                                                      
  if ( major >= _IO_Number_of_drivers )                               
    return RTEMS_INVALID_NUMBER;                                      
                                                                      
  callout = _IO_Driver_address_table[major].write_entry;              
  return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
  10fbd9:	ff e2                	jmp    *%edx                          
)                                                                     
{                                                                     
  rtems_device_driver_entry callout;                                  
                                                                      
  if ( major >= _IO_Number_of_drivers )                               
    return RTEMS_INVALID_NUMBER;                                      
  10fbdb:	b8 0a 00 00 00       	mov    $0xa,%eax                      <== NOT EXECUTED
  10fbe0:	eb 02                	jmp    10fbe4 <rtems_io_write+0x30>   <== NOT EXECUTED
                                                                      
  callout = _IO_Driver_address_table[major].write_entry;              
  return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
  10fbe2:	31 c0                	xor    %eax,%eax                      
}                                                                     
  10fbe4:	5a                   	pop    %edx                           
  10fbe5:	5b                   	pop    %ebx                           
  10fbe6:	c9                   	leave                                 
  10fbe7:	c3                   	ret                                   
                                                                      

0010bc14 <rtems_iterate_over_all_threads>: #include <rtems/system.h> #include <rtems/score/thread.h> void rtems_iterate_over_all_threads(rtems_per_thread_routine routine) {
  10bc14:	55                   	push   %ebp                           
  10bc15:	89 e5                	mov    %esp,%ebp                      
  10bc17:	57                   	push   %edi                           
  10bc18:	56                   	push   %esi                           
  10bc19:	53                   	push   %ebx                           
  10bc1a:	83 ec 0c             	sub    $0xc,%esp                      
  uint32_t             i;                                             
  uint32_t             api_index;                                     
  Thread_Control      *the_thread;                                    
  Objects_Information *information;                                   
                                                                      
  if ( !routine )                                                     
  10bc1d:	83 7d 08 00          	cmpl   $0x0,0x8(%ebp)                 
  10bc21:	74 41                	je     10bc64 <rtems_iterate_over_all_threads+0x50><== NEVER TAKEN
  10bc23:	bb 01 00 00 00       	mov    $0x1,%ebx                      
    return;                                                           
                                                                      
  for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) {
    #if !defined(RTEMS_POSIX_API) || defined(RTEMS_DEBUG)             
      if ( !_Objects_Information_table[ api_index ] )                 
  10bc28:	8b 04 9d 40 66 12 00 	mov    0x126640(,%ebx,4),%eax         
  10bc2f:	85 c0                	test   %eax,%eax                      
  10bc31:	74 2b                	je     10bc5e <rtems_iterate_over_all_threads+0x4a>
        continue;                                                     
    #endif                                                            
                                                                      
    information = _Objects_Information_table[ api_index ][ 1 ];       
  10bc33:	8b 78 04             	mov    0x4(%eax),%edi                 
    if ( !information )                                               
  10bc36:	be 01 00 00 00       	mov    $0x1,%esi                      
  10bc3b:	85 ff                	test   %edi,%edi                      
  10bc3d:	75 17                	jne    10bc56 <rtems_iterate_over_all_threads+0x42>
  10bc3f:	eb 1d                	jmp    10bc5e <rtems_iterate_over_all_threads+0x4a>
      continue;                                                       
                                                                      
    for ( i=1 ; i <= information->maximum ; i++ ) {                   
      the_thread = (Thread_Control *)information->local_table[ i ];   
  10bc41:	8b 47 1c             	mov    0x1c(%edi),%eax                
  10bc44:	8b 04 b0             	mov    (%eax,%esi,4),%eax             
                                                                      
      if ( !the_thread )                                              
  10bc47:	85 c0                	test   %eax,%eax                      
  10bc49:	74 0a                	je     10bc55 <rtems_iterate_over_all_threads+0x41><== NEVER TAKEN
	continue;                                                            
                                                                      
      (*routine)(the_thread);                                         
  10bc4b:	83 ec 0c             	sub    $0xc,%esp                      
  10bc4e:	50                   	push   %eax                           
  10bc4f:	ff 55 08             	call   *0x8(%ebp)                     
  10bc52:	83 c4 10             	add    $0x10,%esp                     
                                                                      
    information = _Objects_Information_table[ api_index ][ 1 ];       
    if ( !information )                                               
      continue;                                                       
                                                                      
    for ( i=1 ; i <= information->maximum ; i++ ) {                   
  10bc55:	46                   	inc    %esi                           
  10bc56:	0f b7 47 10          	movzwl 0x10(%edi),%eax                
  10bc5a:	39 c6                	cmp    %eax,%esi                      
  10bc5c:	76 e3                	jbe    10bc41 <rtems_iterate_over_all_threads+0x2d>
  Objects_Information *information;                                   
                                                                      
  if ( !routine )                                                     
    return;                                                           
                                                                      
  for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) {
  10bc5e:	43                   	inc    %ebx                           
  10bc5f:	83 fb 04             	cmp    $0x4,%ebx                      
  10bc62:	75 c4                	jne    10bc28 <rtems_iterate_over_all_threads+0x14>
                                                                      
      (*routine)(the_thread);                                         
    }                                                                 
  }                                                                   
                                                                      
}                                                                     
  10bc64:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  10bc67:	5b                   	pop    %ebx                           
  10bc68:	5e                   	pop    %esi                           
  10bc69:	5f                   	pop    %edi                           
  10bc6a:	c9                   	leave                                 
  10bc6b:	c3                   	ret                                   
                                                                      

0010d7fc <rtems_libio_free>: */ void rtems_libio_free( rtems_libio_t *iop ) {
  10d7fc:	55                   	push   %ebp                           
  10d7fd:	89 e5                	mov    %esp,%ebp                      
  10d7ff:	53                   	push   %ebx                           
  10d800:	83 ec 04             	sub    $0x4,%esp                      
  10d803:	8b 5d 08             	mov    0x8(%ebp),%ebx                 
  rtems_libio_lock();                                                 
  10d806:	e8 d5 fe ff ff       	call   10d6e0 <rtems_libio_lock>      
                                                                      
    if (iop->sem)                                                     
  10d80b:	8b 43 2c             	mov    0x2c(%ebx),%eax                
  10d80e:	85 c0                	test   %eax,%eax                      
  10d810:	74 0c                	je     10d81e <rtems_libio_free+0x22> <== NEVER TAKEN
      rtems_semaphore_delete(iop->sem);                               
  10d812:	83 ec 0c             	sub    $0xc,%esp                      
  10d815:	50                   	push   %eax                           
  10d816:	e8 8d be ff ff       	call   1096a8 <rtems_semaphore_delete>
  10d81b:	83 c4 10             	add    $0x10,%esp                     
                                                                      
    iop->flags &= ~LIBIO_FLAGS_OPEN;                                  
  10d81e:	81 63 14 ff fe ff ff 	andl   $0xfffffeff,0x14(%ebx)         
    iop->data1 = rtems_libio_iop_freelist;                            
  10d825:	a1 04 31 12 00       	mov    0x123104,%eax                  
  10d82a:	89 43 34             	mov    %eax,0x34(%ebx)                
    rtems_libio_iop_freelist = iop;                                   
  10d82d:	89 1d 04 31 12 00    	mov    %ebx,0x123104                  
                                                                      
  rtems_libio_unlock();                                               
}                                                                     
  10d833:	8b 5d fc             	mov    -0x4(%ebp),%ebx                
  10d836:	c9                   	leave                                 
                                                                      
    iop->flags &= ~LIBIO_FLAGS_OPEN;                                  
    iop->data1 = rtems_libio_iop_freelist;                            
    rtems_libio_iop_freelist = iop;                                   
                                                                      
  rtems_libio_unlock();                                               
  10d837:	e9 be fe ff ff       	jmp    10d6fa <rtems_libio_unlock>    
                                                                      

00106a84 <rtems_libio_init>: * * Called by BSP startup code to initialize the libio subsystem. */ void rtems_libio_init( void ) {
  106a84:	55                   	push   %ebp                           
  106a85:	89 e5                	mov    %esp,%ebp                      
  106a87:	53                   	push   %ebx                           
  106a88:	83 ec 04             	sub    $0x4,%esp                      
    rtems_status_code rc;                                             
    uint32_t i;                                                       
    rtems_libio_t *iop;                                               
                                                                      
    if (rtems_libio_number_iops > 0)                                  
  106a8b:	8b 1d 44 f1 11 00    	mov    0x11f144,%ebx                  
  106a91:	85 db                	test   %ebx,%ebx                      
  106a93:	74 3e                	je     106ad3 <rtems_libio_init+0x4f> <== NEVER TAKEN
    {                                                                 
        rtems_libio_iops = (rtems_libio_t *) calloc(rtems_libio_number_iops,
  106a95:	50                   	push   %eax                           
  106a96:	50                   	push   %eax                           
  106a97:	6a 38                	push   $0x38                          
  106a99:	53                   	push   %ebx                           
  106a9a:	e8 8d fd ff ff       	call   10682c <calloc>                
  106a9f:	a3 00 31 12 00       	mov    %eax,0x123100                  
                                                    sizeof(rtems_libio_t));
        if (rtems_libio_iops == NULL)                                 
  106aa4:	83 c4 10             	add    $0x10,%esp                     
  106aa7:	85 c0                	test   %eax,%eax                      
  106aa9:	75 07                	jne    106ab2 <rtems_libio_init+0x2e> 
            rtems_fatal_error_occurred(RTEMS_NO_MEMORY);              
  106aab:	83 ec 0c             	sub    $0xc,%esp                      
  106aae:	6a 1a                	push   $0x1a                          
  106ab0:	eb 44                	jmp    106af6 <rtems_libio_init+0x72> 
                                                                      
        iop = rtems_libio_iop_freelist = rtems_libio_iops;            
  106ab2:	a3 04 31 12 00       	mov    %eax,0x123104                  
  106ab7:	89 c2                	mov    %eax,%edx                      
        for (i = 0 ; (i + 1) < rtems_libio_number_iops ; i++, iop++)  
  106ab9:	31 c9                	xor    %ecx,%ecx                      
  106abb:	eb 03                	jmp    106ac0 <rtems_libio_init+0x3c> 
          iop->data1 = iop + 1;                                       
  106abd:	89 52 fc             	mov    %edx,-0x4(%edx)                
                                                    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++)  
  106ac0:	41                   	inc    %ecx                           
  106ac1:	83 c2 38             	add    $0x38,%edx                     
  106ac4:	39 d9                	cmp    %ebx,%ecx                      
  106ac6:	72 f5                	jb     106abd <rtems_libio_init+0x39> 
          iop->data1 = iop + 1;                                       
        iop->data1 = NULL;                                            
  106ac8:	6b db 38             	imul   $0x38,%ebx,%ebx                
  106acb:	c7 44 18 fc 00 00 00 	movl   $0x0,-0x4(%eax,%ebx,1)         
  106ad2:	00                                                          
  /*                                                                  
   *  Create the binary semaphore used to provide mutual exclusion    
   *  on the IOP Table.                                               
   */                                                                 
                                                                      
  rc = rtems_semaphore_create(                                        
  106ad3:	83 ec 0c             	sub    $0xc,%esp                      
  106ad6:	68 08 31 12 00       	push   $0x123108                      
  106adb:	6a 00                	push   $0x0                           
  106add:	6a 54                	push   $0x54                          
  106adf:	6a 01                	push   $0x1                           
  106ae1:	68 4f 49 42 4c       	push   $0x4c42494f                    
  106ae6:	e8 25 2a 00 00       	call   109510 <rtems_semaphore_create>
    1,                                                                
    RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY, 
    RTEMS_NO_PRIORITY,                                                
    &rtems_libio_semaphore                                            
  );                                                                  
  if ( rc != RTEMS_SUCCESSFUL )                                       
  106aeb:	83 c4 20             	add    $0x20,%esp                     
  106aee:	85 c0                	test   %eax,%eax                      
  106af0:	74 09                	je     106afb <rtems_libio_init+0x77> <== ALWAYS TAKEN
    rtems_fatal_error_occurred( rc );                                 
  106af2:	83 ec 0c             	sub    $0xc,%esp                      <== NOT EXECUTED
  106af5:	50                   	push   %eax                           <== NOT EXECUTED
  106af6:	e8 05 32 00 00       	call   109d00 <rtems_fatal_error_occurred>
                                                                      
  /*                                                                  
   *  Initialize the base file system infrastructure.                 
   */                                                                 
                                                                      
  if (rtems_fs_init_helper)                                           
  106afb:	a1 40 f1 11 00       	mov    0x11f140,%eax                  
  106b00:	85 c0                	test   %eax,%eax                      
  106b02:	74 06                	je     106b0a <rtems_libio_init+0x86> <== NEVER TAKEN
     (* rtems_fs_init_helper)();                                      
}                                                                     
  106b04:	8b 5d fc             	mov    -0x4(%ebp),%ebx                
  106b07:	c9                   	leave                                 
  /*                                                                  
   *  Initialize the base file system infrastructure.                 
   */                                                                 
                                                                      
  if (rtems_fs_init_helper)                                           
     (* rtems_fs_init_helper)();                                      
  106b08:	ff e0                	jmp    *%eax                          
}                                                                     
  106b0a:	8b 5d fc             	mov    -0x4(%ebp),%ebx                <== NOT EXECUTED
  106b0d:	c9                   	leave                                 <== NOT EXECUTED
  106b0e:	c3                   	ret                                   <== NOT EXECUTED
                                                                      

00107c81 <rtems_libio_set_private_env>: rtems_status_code rtems_libio_set_private_env(void) {
  107c81:	55                   	push   %ebp                           
  107c82:	89 e5                	mov    %esp,%ebp                      
  107c84:	57                   	push   %edi                           
  107c85:	56                   	push   %esi                           
  107c86:	53                   	push   %ebx                           
  107c87:	83 ec 3c             	sub    $0x3c,%esp                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_id task_id = rtems_task_self();                               
  107c8a:	e8 a9 26 00 00       	call   10a338 <rtems_task_self>       
  107c8f:	89 c3                	mov    %eax,%ebx                      
  rtems_filesystem_location_info_t root_loc;                          
  rtems_filesystem_location_info_t current_loc;                       
  rtems_user_env_t *new_env = NULL;                                   
  int rv = 0;                                                         
                                                                      
  rv = rtems_filesystem_evaluate_path("/", 1, 0, &root_loc, 0);       
  107c91:	83 ec 0c             	sub    $0xc,%esp                      
  107c94:	6a 00                	push   $0x0                           
  107c96:	8d 45 d4             	lea    -0x2c(%ebp),%eax               
  107c99:	50                   	push   %eax                           
  107c9a:	6a 00                	push   $0x0                           
  107c9c:	6a 01                	push   $0x1                           
  107c9e:	68 5c e2 11 00       	push   $0x11e25c                      
  107ca3:	e8 42 f0 ff ff       	call   106cea <rtems_filesystem_evaluate_path>
  107ca8:	89 c2                	mov    %eax,%edx                      
  if (rv != 0)                                                        
  107caa:	83 c4 20             	add    $0x20,%esp                     
                                                                      
error_1:                                                              
  rtems_filesystem_freenode(&root_loc);                               
                                                                      
error_0:                                                              
  return RTEMS_NO_MEMORY;                                             
  107cad:	b8 1a 00 00 00       	mov    $0x1a,%eax                     
  rtems_filesystem_location_info_t current_loc;                       
  rtems_user_env_t *new_env = NULL;                                   
  int rv = 0;                                                         
                                                                      
  rv = rtems_filesystem_evaluate_path("/", 1, 0, &root_loc, 0);       
  if (rv != 0)                                                        
  107cb2:	85 d2                	test   %edx,%edx                      
  107cb4:	0f 85 c0 00 00 00    	jne    107d7a <rtems_libio_set_private_env+0xf9><== NEVER TAKEN
    goto error_0;                                                     
                                                                      
  rv = rtems_filesystem_evaluate_path("/", 1, 0, ¤t_loc, 0);    
  107cba:	83 ec 0c             	sub    $0xc,%esp                      
  107cbd:	6a 00                	push   $0x0                           
  107cbf:	8d 45 c0             	lea    -0x40(%ebp),%eax               
  107cc2:	50                   	push   %eax                           
  107cc3:	6a 00                	push   $0x0                           
  107cc5:	6a 01                	push   $0x1                           
  107cc7:	68 5c e2 11 00       	push   $0x11e25c                      
  107ccc:	e8 19 f0 ff ff       	call   106cea <rtems_filesystem_evaluate_path>
  if (rv != 0)                                                        
  107cd1:	83 c4 20             	add    $0x20,%esp                     
  107cd4:	85 c0                	test   %eax,%eax                      
  107cd6:	0f 85 8a 00 00 00    	jne    107d66 <rtems_libio_set_private_env+0xe5><== NEVER TAKEN
   * Bharath: I'm not sure if the check can be reduced to             
   * if( rtems_current_user_env->task_id != task_id ) {               
   */                                                                 
                                                                      
  if (                                                                
    rtems_current_user_env == &rtems_global_user_env                  
  107cdc:	a1 f0 24 12 00       	mov    0x1224f0,%eax                  
  /*                                                                  
   * Bharath: I'm not sure if the check can be reduced to             
   * if( rtems_current_user_env->task_id != task_id ) {               
   */                                                                 
                                                                      
  if (                                                                
  107ce1:	3d 10 46 12 00       	cmp    $0x124610,%eax                 
  107ce6:	74 04                	je     107cec <rtems_libio_set_private_env+0x6b>
    rtems_current_user_env == &rtems_global_user_env                  
      || rtems_current_user_env->task_id != task_id                   
  107ce8:	39 18                	cmp    %ebx,(%eax)                    
  107cea:	74 32                	je     107d1e <rtems_libio_set_private_env+0x9d>
  ) {                                                                 
    new_env = malloc(sizeof(rtems_user_env_t));                       
  107cec:	83 ec 0c             	sub    $0xc,%esp                      
  107cef:	6a 48                	push   $0x48                          
  107cf1:	e8 66 f5 ff ff       	call   10725c <malloc>                
  107cf6:	89 c6                	mov    %eax,%esi                      
    if (new_env == NULL)                                              
  107cf8:	83 c4 10             	add    $0x10,%esp                     
  107cfb:	85 c0                	test   %eax,%eax                      
  107cfd:	74 58                	je     107d57 <rtems_libio_set_private_env+0xd6>
                                                                      
    #ifdef HAVE_USERENV_REFCNT                                        
      new_env->refcnt = 1;                                            
    #endif                                                            
                                                                      
    sc = rtems_task_variable_add(                                     
  107cff:	50                   	push   %eax                           
  107d00:	68 44 7c 10 00       	push   $0x107c44                      
  107d05:	68 f0 24 12 00       	push   $0x1224f0                      
  107d0a:	6a 00                	push   $0x0                           
  107d0c:	e8 9b 26 00 00       	call   10a3ac <rtems_task_variable_add>
      RTEMS_SELF,                                                     
      (void*)&rtems_current_user_env,                                 
      (void(*)(void *))free_user_env                                  
    );                                                                
    if (sc != RTEMS_SUCCESSFUL)                                       
  107d11:	83 c4 10             	add    $0x10,%esp                     
  107d14:	85 c0                	test   %eax,%eax                      
  107d16:	75 33                	jne    107d4b <rtems_libio_set_private_env+0xca>
      goto error_3;                                                   
                                                                      
    rtems_current_user_env = new_env;                                 
  107d18:	89 35 f0 24 12 00    	mov    %esi,0x1224f0                  
  }                                                                   
                                                                      
  /* Inherit the global values */                                     
  *rtems_current_user_env = rtems_global_user_env;                    
  107d1e:	a1 f0 24 12 00       	mov    0x1224f0,%eax                  
  107d23:	be 10 46 12 00       	mov    $0x124610,%esi                 
  107d28:	b9 12 00 00 00       	mov    $0x12,%ecx                     
  107d2d:	89 c7                	mov    %eax,%edi                      
  107d2f:	f3 a5                	rep movsl %ds:(%esi),%es:(%edi)       
                                                                      
  rtems_current_user_env->task_id = task_id;                          
  107d31:	89 18                	mov    %ebx,(%eax)                    
   * Clone the pathlocs. In contrast to most other code we must _not_ free the
   * original locs because what we are trying to do here is forking off clones.
   * The reason is a pathloc can be allocated by the file system and needs to
   * be freed when deleting the environment.                          
   */                                                                 
  rtems_filesystem_root = root_loc;                                   
  107d33:	8d 78 18             	lea    0x18(%eax),%edi                
  107d36:	8d 75 d4             	lea    -0x2c(%ebp),%esi               
  107d39:	b1 05                	mov    $0x5,%cl                       
  107d3b:	f3 a5                	rep movsl %ds:(%esi),%es:(%edi)       
  rtems_filesystem_current = current_loc;                             
  107d3d:	8d 78 04             	lea    0x4(%eax),%edi                 
  107d40:	8d 75 c0             	lea    -0x40(%ebp),%esi               
  107d43:	b1 05                	mov    $0x5,%cl                       
  107d45:	f3 a5                	rep movsl %ds:(%esi),%es:(%edi)       
                                                                      
  return RTEMS_SUCCESSFUL;                                            
  107d47:	31 c0                	xor    %eax,%eax                      
  107d49:	eb 2f                	jmp    107d7a <rtems_libio_set_private_env+0xf9>
                                                                      
error_3:                                                              
  free(new_env);                                                      
  107d4b:	83 ec 0c             	sub    $0xc,%esp                      
  107d4e:	56                   	push   %esi                           
  107d4f:	e8 68 f0 ff ff       	call   106dbc <free>                  
  107d54:	83 c4 10             	add    $0x10,%esp                     
                                                                      
error_2:                                                              
  rtems_filesystem_freenode(¤t_loc);                            
  107d57:	83 ec 0c             	sub    $0xc,%esp                      
  107d5a:	8d 45 c0             	lea    -0x40(%ebp),%eax               
  107d5d:	50                   	push   %eax                           
  107d5e:	e8 45 f0 ff ff       	call   106da8 <rtems_filesystem_freenode>
  107d63:	83 c4 10             	add    $0x10,%esp                     
                                                                      
error_1:                                                              
  rtems_filesystem_freenode(&root_loc);                               
  107d66:	83 ec 0c             	sub    $0xc,%esp                      
  107d69:	8d 45 d4             	lea    -0x2c(%ebp),%eax               
  107d6c:	50                   	push   %eax                           
  107d6d:	e8 36 f0 ff ff       	call   106da8 <rtems_filesystem_freenode>
  107d72:	83 c4 10             	add    $0x10,%esp                     
                                                                      
error_0:                                                              
  return RTEMS_NO_MEMORY;                                             
  107d75:	b8 1a 00 00 00       	mov    $0x1a,%eax                     
}                                                                     
  107d7a:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  107d7d:	5b                   	pop    %ebx                           
  107d7e:	5e                   	pop    %esi                           
  107d7f:	5f                   	pop    %edi                           
  107d80:	c9                   	leave                                 
  107d81:	c3                   	ret                                   
                                                                      

00107d82 <rtems_libio_share_private_env>: * b) mutex access to rtems_filesystem_current, rtems_filesytem_root * while changing any of those (chdir(), chroot()). */ rtems_status_code rtems_libio_share_private_env(rtems_id task_id) {
  107d82:	55                   	push   %ebp                           
  107d83:	89 e5                	mov    %esp,%ebp                      
  107d85:	56                   	push   %esi                           
  107d86:	53                   	push   %ebx                           
  107d87:	83 ec 20             	sub    $0x20,%esp                     
  107d8a:	8b 75 08             	mov    0x8(%ebp),%esi                 
  rtems_id           current_task_id;                                 
                                                                      
  /*                                                                  
   * get current task id                                              
   */                                                                 
  current_task_id = rtems_task_self();                                
  107d8d:	e8 a6 25 00 00       	call   10a338 <rtems_task_self>       
  107d92:	89 c3                	mov    %eax,%ebx                      
   * If this was an attempt to share the task with self,              
   * if somebody wanted to do it... Lets tell them, its shared        
   */                                                                 
                                                                      
  if( task_id == current_task_id )                                    
    return RTEMS_SUCCESSFUL;                                          
  107d94:	31 c0                	xor    %eax,%eax                      
  /*                                                                  
   * If this was an attempt to share the task with self,              
   * if somebody wanted to do it... Lets tell them, its shared        
   */                                                                 
                                                                      
  if( task_id == current_task_id )                                    
  107d96:	39 de                	cmp    %ebx,%esi                      
  107d98:	74 3c                	je     107dd6 <rtems_libio_share_private_env+0x54><== NEVER TAKEN
    return RTEMS_SUCCESSFUL;                                          
  /*                                                                  
   * Try to get the requested user environment                        
   */                                                                 
  sc = rtems_task_variable_get(                                       
  107d9a:	52                   	push   %edx                           
	 task_id,                                                            
	 (void*)&rtems_current_user_env,                                     
	 (void*)&shared_user_env );                                          
  107d9b:	8d 45 f4             	lea    -0xc(%ebp),%eax                
  if( task_id == current_task_id )                                    
    return RTEMS_SUCCESSFUL;                                          
  /*                                                                  
   * Try to get the requested user environment                        
   */                                                                 
  sc = rtems_task_variable_get(                                       
  107d9e:	50                   	push   %eax                           
  107d9f:	68 f0 24 12 00       	push   $0x1224f0                      
  107da4:	56                   	push   %esi                           
  107da5:	e8 96 26 00 00       	call   10a440 <rtems_task_variable_get>
	 (void*)&shared_user_env );                                          
                                                                      
  /*                                                                  
   * If it was not successful, return the error code                  
   */                                                                 
    if (sc != RTEMS_SUCCESSFUL)                                       
  107daa:	83 c4 10             	add    $0x10,%esp                     
  107dad:	85 c0                	test   %eax,%eax                      
  107daf:	75 25                	jne    107dd6 <rtems_libio_share_private_env+0x54>
     * If we have a current environment in place, we need to          
     * free it, since we will be sharing the variable with the        
     * shared_user_env                                                
     */                                                               
                                                                      
  if (rtems_current_user_env->task_id==current_task_id) {             
  107db1:	8b 15 f0 24 12 00    	mov    0x1224f0,%edx                  
  107db7:	39 1a                	cmp    %ebx,(%edx)                    
  107db9:	75 12                	jne    107dcd <rtems_libio_share_private_env+0x4b>
    rtems_user_env_t  *tmp = rtems_current_user_env;                  
    free_user_env( tmp );                                             
  107dbb:	83 ec 0c             	sub    $0xc,%esp                      
  107dbe:	52                   	push   %edx                           
  107dbf:	89 45 e4             	mov    %eax,-0x1c(%ebp)               
  107dc2:	e8 7d fe ff ff       	call   107c44 <free_user_env>         
  107dc7:	83 c4 10             	add    $0x10,%esp                     
  107dca:	8b 45 e4             	mov    -0x1c(%ebp),%eax               
  }                                                                   
                                                                      
  /* the current_user_env is the same pointer that remote env */      
  rtems_current_user_env = shared_user_env;                           
  107dcd:	8b 55 f4             	mov    -0xc(%ebp),%edx                
  107dd0:	89 15 f0 24 12 00    	mov    %edx,0x1224f0                  
#ifdef HAVE_USERENV_REFCNT                                            
  rtems_current_user_env->refcnt++;                                   
#endif                                                                
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
  107dd6:	8d 65 f8             	lea    -0x8(%ebp),%esp                
  107dd9:	5b                   	pop    %ebx                           
  107dda:	5e                   	pop    %esi                           
  107ddb:	c9                   	leave                                 
  107ddc:	c3                   	ret                                   
                                                                      

0010d745 <rtems_libio_to_fcntl_flags>: */ uint32_t rtems_libio_to_fcntl_flags( uint32_t flags ) {
  10d745:	55                   	push   %ebp                           
  10d746:	89 e5                	mov    %esp,%ebp                      
  10d748:	8b 55 08             	mov    0x8(%ebp),%edx                 
  uint32_t   fcntl_flags = 0;                                         
                                                                      
  if ( (flags & LIBIO_FLAGS_READ_WRITE) == LIBIO_FLAGS_READ_WRITE ) { 
  10d74b:	89 d1                	mov    %edx,%ecx                      
  10d74d:	83 e1 06             	and    $0x6,%ecx                      
    fcntl_flags |= O_RDWR;                                            
  10d750:	b8 02 00 00 00       	mov    $0x2,%eax                      
  uint32_t   flags                                                    
)                                                                     
{                                                                     
  uint32_t   fcntl_flags = 0;                                         
                                                                      
  if ( (flags & LIBIO_FLAGS_READ_WRITE) == LIBIO_FLAGS_READ_WRITE ) { 
  10d755:	83 f9 06             	cmp    $0x6,%ecx                      
  10d758:	74 0f                	je     10d769 <rtems_libio_to_fcntl_flags+0x24><== NEVER TAKEN
    fcntl_flags |= O_RDWR;                                            
  } else if ( (flags & LIBIO_FLAGS_READ) == LIBIO_FLAGS_READ) {       
    fcntl_flags |= O_RDONLY;                                          
  10d75a:	30 c0                	xor    %al,%al                        
{                                                                     
  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) {       
  10d75c:	f6 c2 02             	test   $0x2,%dl                       
  10d75f:	75 08                	jne    10d769 <rtems_libio_to_fcntl_flags+0x24><== ALWAYS TAKEN
)                                                                     
{                                                                     
  uint32_t   fcntl_flags = 0;                                         
                                                                      
  if ( (flags & LIBIO_FLAGS_READ_WRITE) == LIBIO_FLAGS_READ_WRITE ) { 
    fcntl_flags |= O_RDWR;                                            
  10d761:	31 c0                	xor    %eax,%eax                      
  10d763:	f6 c2 04             	test   $0x4,%dl                       <== NOT EXECUTED
  10d766:	0f 95 c0             	setne  %al                            <== NOT EXECUTED
    fcntl_flags |= O_RDONLY;                                          
  } else if ( (flags & LIBIO_FLAGS_WRITE) == LIBIO_FLAGS_WRITE) {     
    fcntl_flags |= O_WRONLY;                                          
  }                                                                   
                                                                      
  if ( (flags & LIBIO_FLAGS_NO_DELAY) == LIBIO_FLAGS_NO_DELAY ) {     
  10d769:	f6 c2 01             	test   $0x1,%dl                       
  10d76c:	74 03                	je     10d771 <rtems_libio_to_fcntl_flags+0x2c>
    fcntl_flags |= O_NONBLOCK;                                        
  10d76e:	80 cc 40             	or     $0x40,%ah                      
  }                                                                   
                                                                      
  if ( (flags & LIBIO_FLAGS_APPEND) == LIBIO_FLAGS_APPEND ) {         
  10d771:	f6 c6 02             	test   $0x2,%dh                       
  10d774:	74 03                	je     10d779 <rtems_libio_to_fcntl_flags+0x34>
    fcntl_flags |= O_APPEND;                                          
  10d776:	83 c8 08             	or     $0x8,%eax                      
  }                                                                   
                                                                      
  if ( (flags & LIBIO_FLAGS_CREATE) == LIBIO_FLAGS_CREATE ) {         
  10d779:	80 e6 04             	and    $0x4,%dh                       
  10d77c:	74 03                	je     10d781 <rtems_libio_to_fcntl_flags+0x3c>
    fcntl_flags |= O_CREAT;                                           
  10d77e:	80 cc 02             	or     $0x2,%ah                       
  }                                                                   
                                                                      
  return fcntl_flags;                                                 
}                                                                     
  10d781:	c9                   	leave                                 
  10d782:	c3                   	ret                                   
                                                                      

0010942c <rtems_malloc_statistics_at_free>: * size and thus we skip updating the statistics. */ static void rtems_malloc_statistics_at_free( void *pointer ) {
  10942c:	55                   	push   %ebp                           
  10942d:	89 e5                	mov    %esp,%ebp                      
  10942f:	83 ec 1c             	sub    $0x1c,%esp                     
  uintptr_t size;                                                     
                                                                      
  if (_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &size) ) {
  109432:	8d 45 f4             	lea    -0xc(%ebp),%eax                
  109435:	50                   	push   %eax                           
  109436:	ff 75 08             	pushl  0x8(%ebp)                      
  109439:	ff 35 80 51 12 00    	pushl  0x125180                       
  10943f:	e8 70 4e 00 00       	call   10e2b4 <_Protected_heap_Get_block_size>
  109444:	83 c4 10             	add    $0x10,%esp                     
  109447:	84 c0                	test   %al,%al                        
  109449:	74 11                	je     10945c <rtems_malloc_statistics_at_free+0x30><== NEVER TAKEN
    MSBUMP(lifetime_freed, size);                                     
  10944b:	8b 45 f4             	mov    -0xc(%ebp),%eax                
  10944e:	31 d2                	xor    %edx,%edx                      
  109450:	01 05 70 9a 12 00    	add    %eax,0x129a70                  
  109456:	11 15 74 9a 12 00    	adc    %edx,0x129a74                  
  }                                                                   
}                                                                     
  10945c:	c9                   	leave                                 
  10945d:	c3                   	ret                                   
                                                                      

0010945e <rtems_malloc_statistics_at_malloc>: } static void rtems_malloc_statistics_at_malloc( void *pointer ) {
  10945e:	55                   	push   %ebp                           
  10945f:	89 e5                	mov    %esp,%ebp                      
  109461:	83 ec 18             	sub    $0x18,%esp                     
  109464:	8b 45 08             	mov    0x8(%ebp),%eax                 
  uintptr_t actual_size = 0;                                          
  109467:	c7 45 f4 00 00 00 00 	movl   $0x0,-0xc(%ebp)                
  uint32_t current_depth;                                             
  rtems_malloc_statistics_t *s = &rtems_malloc_statistics;            
                                                                      
  if ( !pointer )                                                     
  10946e:	85 c0                	test   %eax,%eax                      
  109470:	74 43                	je     1094b5 <rtems_malloc_statistics_at_malloc+0x57><== NEVER TAKEN
    return;                                                           
                                                                      
  _Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &actual_size);
  109472:	52                   	push   %edx                           
  109473:	8d 55 f4             	lea    -0xc(%ebp),%edx                
  109476:	52                   	push   %edx                           
  109477:	50                   	push   %eax                           
  109478:	ff 35 80 51 12 00    	pushl  0x125180                       
  10947e:	e8 31 4e 00 00       	call   10e2b4 <_Protected_heap_Get_block_size>
                                                                      
  MSBUMP(lifetime_allocated, actual_size);                            
  109483:	8b 45 f4             	mov    -0xc(%ebp),%eax                
  109486:	31 d2                	xor    %edx,%edx                      
  109488:	03 05 68 9a 12 00    	add    0x129a68,%eax                  
  10948e:	13 15 6c 9a 12 00    	adc    0x129a6c,%edx                  
  109494:	a3 68 9a 12 00       	mov    %eax,0x129a68                  
  109499:	89 15 6c 9a 12 00    	mov    %edx,0x129a6c                  
                                                                      
  current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed);
  10949f:	2b 05 70 9a 12 00    	sub    0x129a70,%eax                  
  if (current_depth > s->max_depth)                                   
  1094a5:	83 c4 10             	add    $0x10,%esp                     
  1094a8:	3b 05 64 9a 12 00    	cmp    0x129a64,%eax                  
  1094ae:	76 05                	jbe    1094b5 <rtems_malloc_statistics_at_malloc+0x57>
      s->max_depth = current_depth;                                   
  1094b0:	a3 64 9a 12 00       	mov    %eax,0x129a64                  
}                                                                     
  1094b5:	c9                   	leave                                 
  1094b6:	c3                   	ret                                   
                                                                      

00110f44 <rtems_memalign>: int rtems_memalign( void **pointer, size_t alignment, size_t size ) {
  110f44:	55                   	push   %ebp                           
  110f45:	89 e5                	mov    %esp,%ebp                      
  110f47:	57                   	push   %edi                           
  110f48:	56                   	push   %esi                           
  110f49:	53                   	push   %ebx                           
  110f4a:	83 ec 0c             	sub    $0xc,%esp                      
  110f4d:	8b 5d 08             	mov    0x8(%ebp),%ebx                 
                                                                      
  /*                                                                  
   *  Parameter error checks                                          
   */                                                                 
  if ( !pointer )                                                     
    return EINVAL;                                                    
  110f50:	be 16 00 00 00       	mov    $0x16,%esi                     
  void *return_this;                                                  
                                                                      
  /*                                                                  
   *  Parameter error checks                                          
   */                                                                 
  if ( !pointer )                                                     
  110f55:	85 db                	test   %ebx,%ebx                      
  110f57:	74 55                	je     110fae <rtems_memalign+0x6a>   
    return EINVAL;                                                    
                                                                      
  *pointer = NULL;                                                    
  110f59:	c7 03 00 00 00 00    	movl   $0x0,(%ebx)                    
                                                                      
  /*                                                                  
   *  Do not attempt to allocate memory if not in correct system state.
   */                                                                 
  if ( _System_state_Is_up(_System_state_Get()) &&                    
  110f5f:	83 3d 1c 76 12 00 03 	cmpl   $0x3,0x12761c                  
  110f66:	75 09                	jne    110f71 <rtems_memalign+0x2d>   <== NEVER TAKEN
       !malloc_is_system_state_OK() )                                 
  110f68:	e8 ef 68 ff ff       	call   10785c <malloc_is_system_state_OK>
  *pointer = NULL;                                                    
                                                                      
  /*                                                                  
   *  Do not attempt to allocate memory if not in correct system state.
   */                                                                 
  if ( _System_state_Is_up(_System_state_Get()) &&                    
  110f6d:	84 c0                	test   %al,%al                        
  110f6f:	74 3d                	je     110fae <rtems_memalign+0x6a>   <== NEVER TAKEN
    return EINVAL;                                                    
                                                                      
  /*                                                                  
   *  If some free's have been deferred, then do them now.            
   */                                                                 
  malloc_deferred_frees_process();                                    
  110f71:	e8 24 69 ff ff       	call   10789a <malloc_deferred_frees_process>
  Heap_Control *heap,                                                 
  uintptr_t size,                                                     
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return                                                              
  110f76:	6a 00                	push   $0x0                           
  110f78:	ff 75 0c             	pushl  0xc(%ebp)                      
  110f7b:	ff 75 10             	pushl  0x10(%ebp)                     
  110f7e:	ff 35 40 33 12 00    	pushl  0x123340                       
  110f84:	e8 87 ae ff ff       	call   10be10 <_Protected_heap_Allocate_aligned_with_boundary>
  110f89:	89 c7                	mov    %eax,%edi                      
  return_this = _Protected_heap_Allocate_aligned(                     
    RTEMS_Malloc_Heap,                                                
    size,                                                             
    alignment                                                         
  );                                                                  
  if ( !return_this )                                                 
  110f8b:	83 c4 10             	add    $0x10,%esp                     
    return ENOMEM;                                                    
  110f8e:	be 0c 00 00 00       	mov    $0xc,%esi                      
  return_this = _Protected_heap_Allocate_aligned(                     
    RTEMS_Malloc_Heap,                                                
    size,                                                             
    alignment                                                         
  );                                                                  
  if ( !return_this )                                                 
  110f93:	85 c0                	test   %eax,%eax                      
  110f95:	74 17                	je     110fae <rtems_memalign+0x6a>   
    return ENOMEM;                                                    
                                                                      
  /*                                                                  
   *  If configured, update the more involved statistics              
   */                                                                 
  if ( rtems_malloc_statistics_helpers )                              
  110f97:	a1 d0 57 12 00       	mov    0x1257d0,%eax                  
  110f9c:	85 c0                	test   %eax,%eax                      
  110f9e:	74 0a                	je     110faa <rtems_memalign+0x66>   
    (*rtems_malloc_statistics_helpers->at_malloc)(pointer);           
  110fa0:	83 ec 0c             	sub    $0xc,%esp                      
  110fa3:	53                   	push   %ebx                           
  110fa4:	ff 50 04             	call   *0x4(%eax)                     
  110fa7:	83 c4 10             	add    $0x10,%esp                     
                                                                      
  *pointer = return_this;                                             
  110faa:	89 3b                	mov    %edi,(%ebx)                    
  return 0;                                                           
  110fac:	31 f6                	xor    %esi,%esi                      
}                                                                     
  110fae:	89 f0                	mov    %esi,%eax                      
  110fb0:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  110fb3:	5b                   	pop    %ebx                           
  110fb4:	5e                   	pop    %esi                           
  110fb5:	5f                   	pop    %edi                           
  110fb6:	c9                   	leave                                 
  110fb7:	c3                   	ret                                   
                                                                      

0010f7d4 <rtems_mkdir>: return (retval); } int rtems_mkdir(const char *path, mode_t mode) {
  10f7d4:	55                   	push   %ebp                           
  10f7d5:	89 e5                	mov    %esp,%ebp                      
  10f7d7:	57                   	push   %edi                           
  10f7d8:	56                   	push   %esi                           
  10f7d9:	53                   	push   %ebx                           
  10f7da:	83 ec 78             	sub    $0x78,%esp                     
  int success = 0;                                                    
  char *dup_path = strdup(path);                                      
  10f7dd:	ff 75 08             	pushl  0x8(%ebp)                      
  10f7e0:	e8 df 25 00 00       	call   111dc4 <strdup>                
  10f7e5:	89 c3                	mov    %eax,%ebx                      
                                                                      
  if (dup_path != NULL) {                                             
  10f7e7:	83 c4 10             	add    $0x10,%esp                     
    success = build(dup_path, mode);                                  
    free(dup_path);                                                   
  }                                                                   
                                                                      
  return success != 0 ? 0 : -1;                                       
  10f7ea:	83 c8 ff             	or     $0xffffffff,%eax               
rtems_mkdir(const char *path, mode_t mode)                            
{                                                                     
  int success = 0;                                                    
  char *dup_path = strdup(path);                                      
                                                                      
  if (dup_path != NULL) {                                             
  10f7ed:	85 db                	test   %ebx,%ebx                      
  10f7ef:	0f 84 1e 01 00 00    	je     10f913 <rtems_mkdir+0x13f>     <== NEVER TAKEN
                                                                      
  p = path;                                                           
  oumask = 0;                                                         
  retval = 1;                                                         
  if (p[0] == '/')    /* Skip leading '/'. */                         
    ++p;                                                              
  10f7f5:	31 c0                	xor    %eax,%eax                      
  10f7f7:	80 3b 2f             	cmpb   $0x2f,(%ebx)                   
  10f7fa:	0f 94 c0             	sete   %al                            
  10f7fd:	8d 3c 03             	lea    (%ebx,%eax,1),%edi             
  char *p;                                                            
                                                                      
  p = path;                                                           
  oumask = 0;                                                         
  retval = 1;                                                         
  if (p[0] == '/')    /* Skip leading '/'. */                         
  10f800:	c7 45 94 00 00 00 00 	movl   $0x0,-0x6c(%ebp)               
  10f807:	b8 01 00 00 00       	mov    $0x1,%eax                      
    ++p;                                                              
  for (first = 1, last = 0; !last ; ++p) {                            
    if (p[0] == '\0')                                                 
  10f80c:	8a 0f                	mov    (%edi),%cl                     
      last = 1;                                                       
  10f80e:	ba 01 00 00 00       	mov    $0x1,%edx                      
  oumask = 0;                                                         
  retval = 1;                                                         
  if (p[0] == '/')    /* Skip leading '/'. */                         
    ++p;                                                              
  for (first = 1, last = 0; !last ; ++p) {                            
    if (p[0] == '\0')                                                 
  10f813:	84 c9                	test   %cl,%cl                        
  10f815:	74 0b                	je     10f822 <rtems_mkdir+0x4e>      
      last = 1;                                                       
    else if (p[0] != '/')                                             
  10f817:	80 f9 2f             	cmp    $0x2f,%cl                      
  10f81a:	0f 85 c8 00 00 00    	jne    10f8e8 <rtems_mkdir+0x114>     
  10f820:	30 d2                	xor    %dl,%dl                        
      continue;                                                       
    *p = '\0';                                                        
  10f822:	c6 07 00             	movb   $0x0,(%edi)                    
    if (!last && p[1] == '\0')                                        
  10f825:	be 01 00 00 00       	mov    $0x1,%esi                      
  10f82a:	85 d2                	test   %edx,%edx                      
  10f82c:	75 0b                	jne    10f839 <rtems_mkdir+0x65>      
  10f82e:	31 d2                	xor    %edx,%edx                      
  10f830:	80 7f 01 00          	cmpb   $0x0,0x1(%edi)                 
  10f834:	0f 94 c2             	sete   %dl                            
  10f837:	89 d6                	mov    %edx,%esi                      
      last = 1;                                                       
    if (first) {                                                      
  10f839:	85 c0                	test   %eax,%eax                      
  10f83b:	74 1a                	je     10f857 <rtems_mkdir+0x83>      
       *    mkdir [-m mode] dir                                       
       *                                                              
       * We change the user's umask and then restore it,              
       * instead of doing chmod's.                                    
       */                                                             
      oumask = umask(0);                                              
  10f83d:	83 ec 0c             	sub    $0xc,%esp                      
  10f840:	6a 00                	push   $0x0                           
  10f842:	e8 75 01 00 00       	call   10f9bc <umask>                 
  10f847:	89 45 94             	mov    %eax,-0x6c(%ebp)               
      numask = oumask & ~(S_IWUSR | S_IXUSR);                         
  10f84a:	24 3f                	and    $0x3f,%al                      
      (void)umask(numask);                                            
  10f84c:	89 04 24             	mov    %eax,(%esp)                    
  10f84f:	e8 68 01 00 00       	call   10f9bc <umask>                 
  10f854:	83 c4 10             	add    $0x10,%esp                     
      first = 0;                                                      
    }                                                                 
    if (last)                                                         
      (void)umask(oumask);                                            
    if (mkdir(path, last ? omode : S_IRWXU | S_IRWXG | S_IRWXO) < 0) {
  10f857:	b8 ff 01 00 00       	mov    $0x1ff,%eax                    
      oumask = umask(0);                                              
      numask = oumask & ~(S_IWUSR | S_IXUSR);                         
      (void)umask(numask);                                            
      first = 0;                                                      
    }                                                                 
    if (last)                                                         
  10f85c:	85 f6                	test   %esi,%esi                      
  10f85e:	74 11                	je     10f871 <rtems_mkdir+0x9d>      
      (void)umask(oumask);                                            
  10f860:	83 ec 0c             	sub    $0xc,%esp                      
  10f863:	ff 75 94             	pushl  -0x6c(%ebp)                    
  10f866:	e8 51 01 00 00       	call   10f9bc <umask>                 
  10f86b:	83 c4 10             	add    $0x10,%esp                     
    if (mkdir(path, last ? omode : S_IRWXU | S_IRWXG | S_IRWXO) < 0) {
  10f86e:	8b 45 0c             	mov    0xc(%ebp),%eax                 
  10f871:	52                   	push   %edx                           
  10f872:	52                   	push   %edx                           
  10f873:	50                   	push   %eax                           
  10f874:	53                   	push   %ebx                           
  10f875:	e8 46 84 ff ff       	call   107cc0 <mkdir>                 
  10f87a:	83 c4 10             	add    $0x10,%esp                     
  10f87d:	85 c0                	test   %eax,%eax                      
  10f87f:	79 5e                	jns    10f8df <rtems_mkdir+0x10b>     
      if (errno == EEXIST || errno == EISDIR) {                       
  10f881:	e8 6a 18 00 00       	call   1110f0 <__errno>               
  10f886:	83 38 11             	cmpl   $0x11,(%eax)                   
  10f889:	74 0a                	je     10f895 <rtems_mkdir+0xc1>      
  10f88b:	e8 60 18 00 00       	call   1110f0 <__errno>               
  10f890:	83 38 15             	cmpl   $0x15,(%eax)                   
  10f893:	75 59                	jne    10f8ee <rtems_mkdir+0x11a>     <== ALWAYS TAKEN
        if (stat(path, &sb) < 0) {                                    
  10f895:	50                   	push   %eax                           
  10f896:	50                   	push   %eax                           
  10f897:	8d 45 a0             	lea    -0x60(%ebp),%eax               
  10f89a:	50                   	push   %eax                           
  10f89b:	53                   	push   %ebx                           
  10f89c:	e8 8b 00 00 00       	call   10f92c <stat>                  
  10f8a1:	83 c4 10             	add    $0x10,%esp                     
  10f8a4:	85 c0                	test   %eax,%eax                      
  10f8a6:	78 46                	js     10f8ee <rtems_mkdir+0x11a>     <== NEVER TAKEN
          retval = 0;                                                 
          break;                                                      
        } else if (!S_ISDIR(sb.st_mode)) {                            
  10f8a8:	8b 45 ac             	mov    -0x54(%ebp),%eax               
  10f8ab:	25 00 f0 00 00       	and    $0xf000,%eax                   
  10f8b0:	3d 00 40 00 00       	cmp    $0x4000,%eax                   
  10f8b5:	74 22                	je     10f8d9 <rtems_mkdir+0x105>     
          if (last)                                                   
  10f8b7:	85 f6                	test   %esi,%esi                      
  10f8b9:	74 0f                	je     10f8ca <rtems_mkdir+0xf6>      
            errno = EEXIST;                                           
  10f8bb:	e8 30 18 00 00       	call   1110f0 <__errno>               
  10f8c0:	c7 00 11 00 00 00    	movl   $0x11,(%eax)                   
          else                                                        
            errno = ENOTDIR;                                          
          retval = 0;                                                 
  10f8c6:	31 ff                	xor    %edi,%edi                      
  10f8c8:	eb 38                	jmp    10f902 <rtems_mkdir+0x12e>     
          break;                                                      
        } else if (!S_ISDIR(sb.st_mode)) {                            
          if (last)                                                   
            errno = EEXIST;                                           
          else                                                        
            errno = ENOTDIR;                                          
  10f8ca:	e8 21 18 00 00       	call   1110f0 <__errno>               
  10f8cf:	c7 00 14 00 00 00    	movl   $0x14,(%eax)                   
          retval = 0;                                                 
  10f8d5:	31 ff                	xor    %edi,%edi                      
  10f8d7:	eb 1b                	jmp    10f8f4 <rtems_mkdir+0x120>     
          break;                                                      
        }                                                             
        if (last)                                                     
  10f8d9:	85 f6                	test   %esi,%esi                      
  10f8db:	75 3e                	jne    10f91b <rtems_mkdir+0x147>     
  10f8dd:	eb 04                	jmp    10f8e3 <rtems_mkdir+0x10f>     
      } else {                                                        
        retval = 0;                                                   
        break;                                                        
      }                                                               
    }                                                                 
    if (!last)                                                        
  10f8df:	85 f6                	test   %esi,%esi                      
  10f8e1:	75 3f                	jne    10f922 <rtems_mkdir+0x14e>     
        *p = '/';                                                     
  10f8e3:	c6 07 2f             	movb   $0x2f,(%edi)                   
  10f8e6:	31 c0                	xor    %eax,%eax                      
  p = path;                                                           
  oumask = 0;                                                         
  retval = 1;                                                         
  if (p[0] == '/')    /* Skip leading '/'. */                         
    ++p;                                                              
  for (first = 1, last = 0; !last ; ++p) {                            
  10f8e8:	47                   	inc    %edi                           
  10f8e9:	e9 1e ff ff ff       	jmp    10f80c <rtems_mkdir+0x38>      
    if (last)                                                         
      (void)umask(oumask);                                            
    if (mkdir(path, last ? omode : S_IRWXU | S_IRWXG | S_IRWXO) < 0) {
      if (errno == EEXIST || errno == EISDIR) {                       
        if (stat(path, &sb) < 0) {                                    
          retval = 0;                                                 
  10f8ee:	31 ff                	xor    %edi,%edi                      
      }                                                               
    }                                                                 
    if (!last)                                                        
        *p = '/';                                                     
  }                                                                   
  if (!first && !last)                                                
  10f8f0:	85 f6                	test   %esi,%esi                      
  10f8f2:	75 0e                	jne    10f902 <rtems_mkdir+0x12e>     <== ALWAYS TAKEN
    (void)umask(oumask);                                              
  10f8f4:	83 ec 0c             	sub    $0xc,%esp                      
  10f8f7:	ff 75 94             	pushl  -0x6c(%ebp)                    
  10f8fa:	e8 bd 00 00 00       	call   10f9bc <umask>                 
  10f8ff:	83 c4 10             	add    $0x10,%esp                     
  int success = 0;                                                    
  char *dup_path = strdup(path);                                      
                                                                      
  if (dup_path != NULL) {                                             
    success = build(dup_path, mode);                                  
    free(dup_path);                                                   
  10f902:	83 ec 0c             	sub    $0xc,%esp                      
  10f905:	53                   	push   %ebx                           
  10f906:	e8 79 7e ff ff       	call   107784 <free>                  
  }                                                                   
                                                                      
  return success != 0 ? 0 : -1;                                       
  10f90b:	83 c4 10             	add    $0x10,%esp                     
  10f90e:	83 ff 01             	cmp    $0x1,%edi                      
  10f911:	19 c0                	sbb    %eax,%eax                      
}                                                                     
  10f913:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  10f916:	5b                   	pop    %ebx                           
  10f917:	5e                   	pop    %esi                           
  10f918:	5f                   	pop    %edi                           
  10f919:	c9                   	leave                                 
  10f91a:	c3                   	ret                                   
            errno = ENOTDIR;                                          
          retval = 0;                                                 
          break;                                                      
        }                                                             
        if (last)                                                     
          retval = 2;                                                 
  10f91b:	bf 02 00 00 00       	mov    $0x2,%edi                      
  10f920:	eb e0                	jmp    10f902 <rtems_mkdir+0x12e>     
      } else {                                                        
        retval = 0;                                                   
        break;                                                        
      }                                                               
    }                                                                 
    if (!last)                                                        
  10f922:	bf 01 00 00 00       	mov    $0x1,%edi                      
  10f927:	eb d9                	jmp    10f902 <rtems_mkdir+0x12e>     
                                                                      

0010afec <rtems_object_get_api_class_name>: const char *rtems_object_get_api_class_name( int the_api, int the_class ) {
  10afec:	55                   	push   %ebp                           
  10afed:	89 e5                	mov    %esp,%ebp                      
  10afef:	83 ec 08             	sub    $0x8,%esp                      
  10aff2:	8b 55 08             	mov    0x8(%ebp),%edx                 
  const rtems_assoc_t *api_assoc;                                     
  const rtems_assoc_t *class_assoc;                                   
                                                                      
  if ( the_api == OBJECTS_INTERNAL_API )                              
  10aff5:	83 fa 01             	cmp    $0x1,%edx                      
  10aff8:	74 11                	je     10b00b <rtems_object_get_api_class_name+0x1f><== NEVER TAKEN
#ifdef RTEMS_POSIX_API                                                
  else if ( the_api == OBJECTS_POSIX_API )                            
    api_assoc = rtems_object_api_posix_assoc;                         
#endif                                                                
  else                                                                
    return "BAD API";                                                 
  10affa:	b8 2f 0f 12 00       	mov    $0x120f2f,%eax                 
  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;                      
  else if ( the_api == OBJECTS_CLASSIC_API )                          
  10afff:	83 fa 02             	cmp    $0x2,%edx                      
  10b002:	75 27                	jne    10b02b <rtems_object_get_api_class_name+0x3f>
    api_assoc = rtems_object_api_classic_assoc;                       
  10b004:	b8 60 50 12 00       	mov    $0x125060,%eax                 
  10b009:	eb 05                	jmp    10b010 <rtems_object_get_api_class_name+0x24>
{                                                                     
  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;                      
  10b00b:	b8 48 50 12 00       	mov    $0x125048,%eax                 
  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 );     
  10b010:	52                   	push   %edx                           
  10b011:	52                   	push   %edx                           
  10b012:	ff 75 0c             	pushl  0xc(%ebp)                      
  10b015:	50                   	push   %eax                           
  10b016:	e8 dd 43 00 00       	call   10f3f8 <rtems_assoc_ptr_by_local>
  10b01b:	89 c2                	mov    %eax,%edx                      
  if ( class_assoc )                                                  
  10b01d:	83 c4 10             	add    $0x10,%esp                     
    return class_assoc->name;                                         
  return "BAD CLASS";                                                 
  10b020:	b8 37 0f 12 00       	mov    $0x120f37,%eax                 
    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 )                                                  
  10b025:	85 d2                	test   %edx,%edx                      
  10b027:	74 02                	je     10b02b <rtems_object_get_api_class_name+0x3f>
    return class_assoc->name;                                         
  10b029:	8b 02                	mov    (%edx),%eax                    
  return "BAD CLASS";                                                 
}                                                                     
  10b02b:	c9                   	leave                                 
  10b02c:	c3                   	ret                                   
                                                                      

00113f00 <rtems_partition_create>: uint32_t length, uint32_t buffer_size, rtems_attribute attribute_set, rtems_id *id ) {
  113f00:	55                   	push   %ebp                           
  113f01:	89 e5                	mov    %esp,%ebp                      
  113f03:	57                   	push   %edi                           
  113f04:	56                   	push   %esi                           
  113f05:	53                   	push   %ebx                           
  113f06:	83 ec 1c             	sub    $0x1c,%esp                     
  113f09:	8b 75 0c             	mov    0xc(%ebp),%esi                 
  113f0c:	8b 55 10             	mov    0x10(%ebp),%edx                
  113f0f:	8b 7d 14             	mov    0x14(%ebp),%edi                
  register Partition_Control *the_partition;                          
                                                                      
  if ( !rtems_is_name_valid( name ) )                                 
    return RTEMS_INVALID_NAME;                                        
  113f12:	b8 03 00 00 00       	mov    $0x3,%eax                      
  rtems_id        *id                                                 
)                                                                     
{                                                                     
  register Partition_Control *the_partition;                          
                                                                      
  if ( !rtems_is_name_valid( name ) )                                 
  113f17:	83 7d 08 00          	cmpl   $0x0,0x8(%ebp)                 
  113f1b:	0f 84 ce 00 00 00    	je     113fef <rtems_partition_create+0xef>
    return RTEMS_INVALID_NAME;                                        
                                                                      
  if ( !starting_address )                                            
    return RTEMS_INVALID_ADDRESS;                                     
  113f21:	b0 09                	mov    $0x9,%al                       
  register Partition_Control *the_partition;                          
                                                                      
  if ( !rtems_is_name_valid( name ) )                                 
    return RTEMS_INVALID_NAME;                                        
                                                                      
  if ( !starting_address )                                            
  113f23:	85 f6                	test   %esi,%esi                      
  113f25:	0f 84 c4 00 00 00    	je     113fef <rtems_partition_create+0xef>
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( !id )                                                          
  113f2b:	83 7d 1c 00          	cmpl   $0x0,0x1c(%ebp)                
  113f2f:	0f 84 ba 00 00 00    	je     113fef <rtems_partition_create+0xef><== NEVER TAKEN
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( length == 0 || buffer_size == 0 || length < buffer_size ||     
  113f35:	85 ff                	test   %edi,%edi                      
  113f37:	0f 84 ad 00 00 00    	je     113fea <rtems_partition_create+0xea>
  113f3d:	85 d2                	test   %edx,%edx                      
  113f3f:	0f 84 a5 00 00 00    	je     113fea <rtems_partition_create+0xea>
         !_Partition_Is_buffer_size_aligned( buffer_size ) )          
    return RTEMS_INVALID_SIZE;                                        
  113f45:	b0 08                	mov    $0x8,%al                       
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( !id )                                                          
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( length == 0 || buffer_size == 0 || length < buffer_size ||     
  113f47:	39 fa                	cmp    %edi,%edx                      
  113f49:	0f 82 a0 00 00 00    	jb     113fef <rtems_partition_create+0xef>
  113f4f:	f7 c7 03 00 00 00    	test   $0x3,%edi                      
  113f55:	0f 85 94 00 00 00    	jne    113fef <rtems_partition_create+0xef>
         !_Partition_Is_buffer_size_aligned( buffer_size ) )          
    return RTEMS_INVALID_SIZE;                                        
                                                                      
  if ( !_Addresses_Is_aligned( starting_address ) )                   
     return RTEMS_INVALID_ADDRESS;                                    
  113f5b:	b0 09                	mov    $0x9,%al                       
                                                                      
  if ( length == 0 || buffer_size == 0 || length < buffer_size ||     
         !_Partition_Is_buffer_size_aligned( buffer_size ) )          
    return RTEMS_INVALID_SIZE;                                        
                                                                      
  if ( !_Addresses_Is_aligned( starting_address ) )                   
  113f5d:	f7 c6 03 00 00 00    	test   $0x3,%esi                      
  113f63:	0f 85 86 00 00 00    	jne    113fef <rtems_partition_create+0xef>
  113f69:	a1 38 c6 13 00       	mov    0x13c638,%eax                  
  113f6e:	40                   	inc    %eax                           
  113f6f:	a3 38 c6 13 00       	mov    %eax,0x13c638                  
 *  This function allocates a partition control block from            
 *  the inactive chain of free partition control blocks.              
 */                                                                   
RTEMS_INLINE_ROUTINE Partition_Control *_Partition_Allocate ( void )  
{                                                                     
  return (Partition_Control *) _Objects_Allocate( &_Partition_Information );
  113f74:	83 ec 0c             	sub    $0xc,%esp                      
  113f77:	68 cc c4 13 00       	push   $0x13c4cc                      
  113f7c:	89 55 e4             	mov    %edx,-0x1c(%ebp)               
  113f7f:	e8 18 3d 00 00       	call   117c9c <_Objects_Allocate>     
  113f84:	89 c3                	mov    %eax,%ebx                      
                                                                      
  _Thread_Disable_dispatch();               /* prevents deletion */   
                                                                      
  the_partition = _Partition_Allocate();                              
                                                                      
  if ( !the_partition ) {                                             
  113f86:	83 c4 10             	add    $0x10,%esp                     
  113f89:	85 c0                	test   %eax,%eax                      
  113f8b:	8b 55 e4             	mov    -0x1c(%ebp),%edx               
  113f8e:	75 0c                	jne    113f9c <rtems_partition_create+0x9c>
    _Thread_Enable_dispatch();                                        
  113f90:	e8 ed 4b 00 00       	call   118b82 <_Thread_Enable_dispatch>
    return RTEMS_TOO_MANY;                                            
  113f95:	b8 05 00 00 00       	mov    $0x5,%eax                      
  113f9a:	eb 53                	jmp    113fef <rtems_partition_create+0xef>
    _Thread_Enable_dispatch();                                        
    return RTEMS_TOO_MANY;                                            
  }                                                                   
#endif                                                                
                                                                      
  the_partition->starting_address      = starting_address;            
  113f9c:	89 70 10             	mov    %esi,0x10(%eax)                
  the_partition->length                = length;                      
  113f9f:	89 50 14             	mov    %edx,0x14(%eax)                
  the_partition->buffer_size           = buffer_size;                 
  113fa2:	89 78 18             	mov    %edi,0x18(%eax)                
  the_partition->attribute_set         = attribute_set;               
  113fa5:	8b 45 18             	mov    0x18(%ebp),%eax                
  113fa8:	89 43 1c             	mov    %eax,0x1c(%ebx)                
  the_partition->number_of_used_blocks = 0;                           
  113fab:	c7 43 20 00 00 00 00 	movl   $0x0,0x20(%ebx)                
                                                                      
  _Chain_Initialize( &the_partition->Memory, starting_address,        
  113fb2:	57                   	push   %edi                           
  113fb3:	89 d0                	mov    %edx,%eax                      
  113fb5:	31 d2                	xor    %edx,%edx                      
  113fb7:	f7 f7                	div    %edi                           
  113fb9:	50                   	push   %eax                           
  113fba:	56                   	push   %esi                           
  113fbb:	8d 43 24             	lea    0x24(%ebx),%eax                
  113fbe:	50                   	push   %eax                           
  113fbf:	e8 38 2a 00 00       	call   1169fc <_Chain_Initialize>     
  Objects_Name         name                                           
)                                                                     
{                                                                     
  _Objects_Set_local_object(                                          
    information,                                                      
    _Objects_Get_index( the_object->id ),                             
  113fc4:	8b 43 08             	mov    0x8(%ebx),%eax                 
  Objects_Information *information,                                   
  Objects_Control     *the_object,                                    
  Objects_Name         name                                           
)                                                                     
{                                                                     
  _Objects_Set_local_object(                                          
  113fc7:	0f b7 c8             	movzwl %ax,%ecx                       
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
  113fca:	8b 15 e8 c4 13 00    	mov    0x13c4e8,%edx                  
  113fd0:	89 1c 8a             	mov    %ebx,(%edx,%ecx,4)             
    information,                                                      
    _Objects_Get_index( the_object->id ),                             
    the_object                                                        
  );                                                                  
                                                                      
  the_object->name = name;                                            
  113fd3:	8b 55 08             	mov    0x8(%ebp),%edx                 
  113fd6:	89 53 0c             	mov    %edx,0xc(%ebx)                 
    &_Partition_Information,                                          
    &the_partition->Object,                                           
    (Objects_Name) name                                               
  );                                                                  
                                                                      
  *id = the_partition->Object.id;                                     
  113fd9:	8b 55 1c             	mov    0x1c(%ebp),%edx                
  113fdc:	89 02                	mov    %eax,(%edx)                    
      name,                                                           
      0                  /* Not used */                               
    );                                                                
#endif                                                                
                                                                      
  _Thread_Enable_dispatch();                                          
  113fde:	e8 9f 4b 00 00       	call   118b82 <_Thread_Enable_dispatch>
  return RTEMS_SUCCESSFUL;                                            
  113fe3:	83 c4 10             	add    $0x10,%esp                     
  113fe6:	31 c0                	xor    %eax,%eax                      
  113fe8:	eb 05                	jmp    113fef <rtems_partition_create+0xef>
  if ( !id )                                                          
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( length == 0 || buffer_size == 0 || length < buffer_size ||     
         !_Partition_Is_buffer_size_aligned( buffer_size ) )          
    return RTEMS_INVALID_SIZE;                                        
  113fea:	b8 08 00 00 00       	mov    $0x8,%eax                      
    );                                                                
#endif                                                                
                                                                      
  _Thread_Enable_dispatch();                                          
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
  113fef:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  113ff2:	5b                   	pop    %ebx                           
  113ff3:	5e                   	pop    %esi                           
  113ff4:	5f                   	pop    %edi                           
  113ff5:	c9                   	leave                                 
  113ff6:	c3                   	ret                                   
                                                                      

0010a601 <rtems_rate_monotonic_period>: rtems_status_code rtems_rate_monotonic_period( rtems_id id, rtems_interval length ) {
  10a601:	55                   	push   %ebp                           
  10a602:	89 e5                	mov    %esp,%ebp                      
  10a604:	57                   	push   %edi                           
  10a605:	56                   	push   %esi                           
  10a606:	53                   	push   %ebx                           
  10a607:	83 ec 30             	sub    $0x30,%esp                     
  10a60a:	8b 75 08             	mov    0x8(%ebp),%esi                 
  10a60d:	8b 5d 0c             	mov    0xc(%ebp),%ebx                 
  Objects_Locations                    location;                      
  rtems_status_code                    return_value;                  
  rtems_rate_monotonic_period_states   local_state;                   
  ISR_Level                            level;                         
                                                                      
  the_period = _Rate_monotonic_Get( id, &location );                  
  10a610:	8d 45 e4             	lea    -0x1c(%ebp),%eax               
  Objects_Id         id,                                              
  Objects_Locations *location                                         
)                                                                     
{                                                                     
  return (Rate_monotonic_Control *)                                   
    _Objects_Get( &_Rate_monotonic_Information, id, location );       
  10a613:	50                   	push   %eax                           
  10a614:	56                   	push   %esi                           
  10a615:	68 bc 6a 12 00       	push   $0x126abc                      
  10a61a:	e8 cd 1c 00 00       	call   10c2ec <_Objects_Get>          
  10a61f:	89 c7                	mov    %eax,%edi                      
                                                                      
  switch ( location ) {                                               
  10a621:	83 c4 10             	add    $0x10,%esp                     
  10a624:	83 7d e4 00          	cmpl   $0x0,-0x1c(%ebp)               
  10a628:	0f 85 3b 01 00 00    	jne    10a769 <rtems_rate_monotonic_period+0x168>
    case OBJECTS_LOCAL:                                               
      if ( !_Thread_Is_executing( the_period->owner ) ) {             
  10a62e:	a1 c0 6d 12 00       	mov    0x126dc0,%eax                  
  10a633:	39 47 40             	cmp    %eax,0x40(%edi)                
  10a636:	74 0f                	je     10a647 <rtems_rate_monotonic_period+0x46>
        _Thread_Enable_dispatch();                                    
  10a638:	e8 2d 27 00 00       	call   10cd6a <_Thread_Enable_dispatch>
        return RTEMS_NOT_OWNER_OF_RESOURCE;                           
  10a63d:	be 17 00 00 00       	mov    $0x17,%esi                     
  10a642:	e9 27 01 00 00       	jmp    10a76e <rtems_rate_monotonic_period+0x16d>
      }                                                               
                                                                      
      if ( length == RTEMS_PERIOD_STATUS ) {                          
  10a647:	85 db                	test   %ebx,%ebx                      
  10a649:	75 1b                	jne    10a666 <rtems_rate_monotonic_period+0x65>
        switch ( the_period->state ) {                                
  10a64b:	8b 47 38             	mov    0x38(%edi),%eax                
  10a64e:	31 f6                	xor    %esi,%esi                      
  10a650:	83 f8 04             	cmp    $0x4,%eax                      
  10a653:	77 07                	ja     10a65c <rtems_rate_monotonic_period+0x5b><== NEVER TAKEN
  10a655:	8b 34 85 40 fd 11 00 	mov    0x11fd40(,%eax,4),%esi         
          case RATE_MONOTONIC_ACTIVE:                                 
          default:              /* unreached -- only to remove warnings */
            return_value = RTEMS_SUCCESSFUL;                          
            break;                                                    
        }                                                             
        _Thread_Enable_dispatch();                                    
  10a65c:	e8 09 27 00 00       	call   10cd6a <_Thread_Enable_dispatch>
        return( return_value );                                       
  10a661:	e9 08 01 00 00       	jmp    10a76e <rtems_rate_monotonic_period+0x16d>
      }                                                               
                                                                      
      _ISR_Disable( level );                                          
  10a666:	9c                   	pushf                                 
  10a667:	fa                   	cli                                   
  10a668:	8f 45 d4             	popl   -0x2c(%ebp)                    
      if ( the_period->state == RATE_MONOTONIC_INACTIVE ) {           
  10a66b:	8b 47 38             	mov    0x38(%edi),%eax                
  10a66e:	85 c0                	test   %eax,%eax                      
  10a670:	75 4c                	jne    10a6be <rtems_rate_monotonic_period+0xbd>
        _ISR_Enable( level );                                         
  10a672:	ff 75 d4             	pushl  -0x2c(%ebp)                    
  10a675:	9d                   	popf                                  
                                                                      
        /*                                                            
         *  Baseline statistics information for the beginning of a period.
         */                                                           
        _Rate_monotonic_Initiate_statistics( the_period );            
  10a676:	83 ec 0c             	sub    $0xc,%esp                      
  10a679:	57                   	push   %edi                           
  10a67a:	e8 3f fe ff ff       	call   10a4be <_Rate_monotonic_Initiate_statistics>
                                                                      
        the_period->state = RATE_MONOTONIC_ACTIVE;                    
  10a67f:	c7 47 38 02 00 00 00 	movl   $0x2,0x38(%edi)                
  Watchdog_Service_routine_entry  routine,                            
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
  10a686:	c7 47 18 00 00 00 00 	movl   $0x0,0x18(%edi)                
  the_watchdog->routine   = routine;                                  
  10a68d:	c7 47 2c 78 a9 10 00 	movl   $0x10a978,0x2c(%edi)           
  the_watchdog->id        = id;                                       
  10a694:	89 77 30             	mov    %esi,0x30(%edi)                
  the_watchdog->user_data = user_data;                                
  10a697:	c7 47 34 00 00 00 00 	movl   $0x0,0x34(%edi)                
          _Rate_monotonic_Timeout,                                    
          id,                                                         
          NULL                                                        
        );                                                            
                                                                      
        the_period->next_length = length;                             
  10a69e:	89 5f 3c             	mov    %ebx,0x3c(%edi)                
  Watchdog_Control      *the_watchdog,                                
  Watchdog_Interval      units                                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
  10a6a1:	89 5f 1c             	mov    %ebx,0x1c(%edi)                
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
  10a6a4:	58                   	pop    %eax                           
  10a6a5:	5a                   	pop    %edx                           
                                                                      
        _Watchdog_Insert_ticks( &the_period->Timer, length );         
  10a6a6:	83 c7 10             	add    $0x10,%edi                     
  10a6a9:	57                   	push   %edi                           
  10a6aa:	68 68 6c 12 00       	push   $0x126c68                      
  10a6af:	e8 2c 33 00 00       	call   10d9e0 <_Watchdog_Insert>      
        _Thread_Enable_dispatch();                                    
  10a6b4:	e8 b1 26 00 00       	call   10cd6a <_Thread_Enable_dispatch>
        return RTEMS_SUCCESSFUL;                                      
  10a6b9:	83 c4 10             	add    $0x10,%esp                     
  10a6bc:	eb 65                	jmp    10a723 <rtems_rate_monotonic_period+0x122>
      }                                                               
                                                                      
      if ( the_period->state == RATE_MONOTONIC_ACTIVE ) {             
  10a6be:	83 f8 02             	cmp    $0x2,%eax                      
  10a6c1:	75 64                	jne    10a727 <rtems_rate_monotonic_period+0x126>
        /*                                                            
         *  Update statistics from the concluding period.             
         */                                                           
        _Rate_monotonic_Update_statistics( the_period );              
  10a6c3:	83 ec 0c             	sub    $0xc,%esp                      
  10a6c6:	57                   	push   %edi                           
  10a6c7:	e8 5a fe ff ff       	call   10a526 <_Rate_monotonic_Update_statistics>
        /*                                                            
         *  This tells the _Rate_monotonic_Timeout that this task is  
         *  in the process of blocking on the period and that we      
         *  may be changing the length of the next period.            
         */                                                           
        the_period->state = RATE_MONOTONIC_OWNER_IS_BLOCKING;         
  10a6cc:	c7 47 38 01 00 00 00 	movl   $0x1,0x38(%edi)                
        the_period->next_length = length;                             
  10a6d3:	89 5f 3c             	mov    %ebx,0x3c(%edi)                
                                                                      
        _ISR_Enable( level );                                         
  10a6d6:	ff 75 d4             	pushl  -0x2c(%ebp)                    
  10a6d9:	9d                   	popf                                  
                                                                      
        _Thread_Executing->Wait.id = the_period->Object.id;           
  10a6da:	a1 c0 6d 12 00       	mov    0x126dc0,%eax                  
  10a6df:	8b 57 08             	mov    0x8(%edi),%edx                 
  10a6e2:	89 50 20             	mov    %edx,0x20(%eax)                
        _Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD );
  10a6e5:	5b                   	pop    %ebx                           
  10a6e6:	5e                   	pop    %esi                           
  10a6e7:	68 00 40 00 00       	push   $0x4000                        
  10a6ec:	50                   	push   %eax                           
  10a6ed:	e8 c2 2d 00 00       	call   10d4b4 <_Thread_Set_state>     
                                                                      
        /*                                                            
         *  Did the watchdog timer expire while we were actually blocking
         *  on it?                                                    
         */                                                           
        _ISR_Disable( level );                                        
  10a6f2:	9c                   	pushf                                 
  10a6f3:	fa                   	cli                                   
  10a6f4:	5a                   	pop    %edx                           
          local_state = the_period->state;                            
  10a6f5:	8b 47 38             	mov    0x38(%edi),%eax                
          the_period->state = RATE_MONOTONIC_ACTIVE;                  
  10a6f8:	c7 47 38 02 00 00 00 	movl   $0x2,0x38(%edi)                
        _ISR_Enable( level );                                         
  10a6ff:	52                   	push   %edx                           
  10a700:	9d                   	popf                                  
                                                                      
        /*                                                            
         *  If it did, then we want to unblock ourself and continue as
         *  if nothing happen.  The period was reset in the timeout routine.
         */                                                           
        if ( local_state == RATE_MONOTONIC_EXPIRED_WHILE_BLOCKING )   
  10a701:	83 c4 10             	add    $0x10,%esp                     
  10a704:	83 f8 03             	cmp    $0x3,%eax                      
  10a707:	75 15                	jne    10a71e <rtems_rate_monotonic_period+0x11d>
          _Thread_Clear_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD );
  10a709:	51                   	push   %ecx                           
  10a70a:	51                   	push   %ecx                           
  10a70b:	68 00 40 00 00       	push   $0x4000                        
  10a710:	ff 35 c0 6d 12 00    	pushl  0x126dc0                       
  10a716:	e8 39 23 00 00       	call   10ca54 <_Thread_Clear_state>   
  10a71b:	83 c4 10             	add    $0x10,%esp                     
                                                                      
        _Thread_Enable_dispatch();                                    
  10a71e:	e8 47 26 00 00       	call   10cd6a <_Thread_Enable_dispatch>
        return RTEMS_SUCCESSFUL;                                      
  10a723:	31 f6                	xor    %esi,%esi                      
  10a725:	eb 47                	jmp    10a76e <rtems_rate_monotonic_period+0x16d>
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
  10a727:	be 04 00 00 00       	mov    $0x4,%esi                      
                                                                      
        _Thread_Enable_dispatch();                                    
        return RTEMS_SUCCESSFUL;                                      
      }                                                               
                                                                      
      if ( the_period->state == RATE_MONOTONIC_EXPIRED ) {            
  10a72c:	83 f8 04             	cmp    $0x4,%eax                      
  10a72f:	75 3d                	jne    10a76e <rtems_rate_monotonic_period+0x16d><== NEVER TAKEN
        /*                                                            
         *  Update statistics from the concluding period              
         */                                                           
        _Rate_monotonic_Update_statistics( the_period );              
  10a731:	83 ec 0c             	sub    $0xc,%esp                      
  10a734:	57                   	push   %edi                           
  10a735:	e8 ec fd ff ff       	call   10a526 <_Rate_monotonic_Update_statistics>
                                                                      
        _ISR_Enable( level );                                         
  10a73a:	ff 75 d4             	pushl  -0x2c(%ebp)                    
  10a73d:	9d                   	popf                                  
                                                                      
        the_period->state = RATE_MONOTONIC_ACTIVE;                    
  10a73e:	c7 47 38 02 00 00 00 	movl   $0x2,0x38(%edi)                
        the_period->next_length = length;                             
  10a745:	89 5f 3c             	mov    %ebx,0x3c(%edi)                
  Watchdog_Control      *the_watchdog,                                
  Watchdog_Interval      units                                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
  10a748:	89 5f 1c             	mov    %ebx,0x1c(%edi)                
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
  10a74b:	58                   	pop    %eax                           
  10a74c:	5a                   	pop    %edx                           
                                                                      
        _Watchdog_Insert_ticks( &the_period->Timer, length );         
  10a74d:	83 c7 10             	add    $0x10,%edi                     
  10a750:	57                   	push   %edi                           
  10a751:	68 68 6c 12 00       	push   $0x126c68                      
  10a756:	e8 85 32 00 00       	call   10d9e0 <_Watchdog_Insert>      
        _Thread_Enable_dispatch();                                    
  10a75b:	e8 0a 26 00 00       	call   10cd6a <_Thread_Enable_dispatch>
        return RTEMS_TIMEOUT;                                         
  10a760:	83 c4 10             	add    $0x10,%esp                     
  10a763:	66 be 06 00          	mov    $0x6,%si                       
  10a767:	eb 05                	jmp    10a76e <rtems_rate_monotonic_period+0x16d>
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
  10a769:	be 04 00 00 00       	mov    $0x4,%esi                      
}                                                                     
  10a76e:	89 f0                	mov    %esi,%eax                      
  10a770:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  10a773:	5b                   	pop    %ebx                           
  10a774:	5e                   	pop    %esi                           
  10a775:	5f                   	pop    %edi                           
  10a776:	c9                   	leave                                 
  10a777:	c3                   	ret                                   
                                                                      

0010a778 <rtems_rate_monotonic_report_statistics_with_plugin>: */ void rtems_rate_monotonic_report_statistics_with_plugin( void *context, rtems_printk_plugin_t print ) {
  10a778:	55                   	push   %ebp                           
  10a779:	89 e5                	mov    %esp,%ebp                      
  10a77b:	57                   	push   %edi                           
  10a77c:	56                   	push   %esi                           
  10a77d:	53                   	push   %ebx                           
  10a77e:	83 ec 7c             	sub    $0x7c,%esp                     
  10a781:	8b 5d 08             	mov    0x8(%ebp),%ebx                 
  10a784:	8b 7d 0c             	mov    0xc(%ebp),%edi                 
  rtems_id                               id;                          
  rtems_rate_monotonic_period_statistics the_stats;                   
  rtems_rate_monotonic_period_status     the_status;                  
  char                                   name[5];                     
                                                                      
  if ( !print )                                                       
  10a787:	85 ff                	test   %edi,%edi                      
  10a789:	0f 84 2b 01 00 00    	je     10a8ba <rtems_rate_monotonic_report_statistics_with_plugin+0x142><== NEVER TAKEN
    return;                                                           
                                                                      
  (*print)( context, "Period information by period\n" );              
  10a78f:	52                   	push   %edx                           
  10a790:	52                   	push   %edx                           
  10a791:	68 54 fd 11 00       	push   $0x11fd54                      
  10a796:	53                   	push   %ebx                           
  10a797:	ff d7                	call   *%edi                          
  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                          
    (*print)( context, "--- CPU times are in seconds ---\n" );        
  10a799:	5e                   	pop    %esi                           
  10a79a:	58                   	pop    %eax                           
  10a79b:	68 72 fd 11 00       	push   $0x11fd72                      
  10a7a0:	53                   	push   %ebx                           
  10a7a1:	ff d7                	call   *%edi                          
    (*print)( context, "--- Wall times are in seconds ---\n" );       
  10a7a3:	5a                   	pop    %edx                           
  10a7a4:	59                   	pop    %ecx                           
  10a7a5:	68 94 fd 11 00       	push   $0x11fd94                      
  10a7aa:	53                   	push   %ebx                           
  10a7ab:	ff d7                	call   *%edi                          
  Be sure to test the various cases.                                  
  (*print)( context,"\                                                
1234567890123456789012345678901234567890123456789012345678901234567890123456789\
\n");                                                                 
*/                                                                    
  (*print)( context, "   ID     OWNER COUNT MISSED     "              
  10a7ad:	5e                   	pop    %esi                           
  10a7ae:	58                   	pop    %eax                           
  10a7af:	68 b7 fd 11 00       	push   $0x11fdb7                      
  10a7b4:	53                   	push   %ebx                           
  10a7b5:	ff d7                	call   *%edi                          
       #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                     
          "          "                                                
       #endif                                                         
          "   WALL TIME\n"                                            
  );                                                                  
  (*print)( context, "                               "                
  10a7b7:	5a                   	pop    %edx                           
  10a7b8:	59                   	pop    %ecx                           
  10a7b9:	68 02 fe 11 00       	push   $0x11fe02                      
  10a7be:	53                   	push   %ebx                           
  10a7bf:	ff d7                	call   *%edi                          
                                                                      
  /*                                                                  
   * Cycle through all possible ids and try to report on each one.  If it
   * is a period that is inactive, we just get an error back.  No big deal.
   */                                                                 
  for ( id=_Rate_monotonic_Information.minimum_id ;                   
  10a7c1:	8b 35 c4 6a 12 00    	mov    0x126ac4,%esi                  
  10a7c7:	83 c4 10             	add    $0x10,%esp                     
  10a7ca:	e9 df 00 00 00       	jmp    10a8ae <rtems_rate_monotonic_report_statistics_with_plugin+0x136>
        id <= _Rate_monotonic_Information.maximum_id ;                
        id++ ) {                                                      
    status = rtems_rate_monotonic_get_statistics( id, &the_stats );   
  10a7cf:	50                   	push   %eax                           
  10a7d0:	50                   	push   %eax                           
  10a7d1:	8d 45 88             	lea    -0x78(%ebp),%eax               
  10a7d4:	50                   	push   %eax                           
  10a7d5:	56                   	push   %esi                           
  10a7d6:	e8 fd 4e 00 00       	call   10f6d8 <rtems_rate_monotonic_get_statistics>
    if ( status != RTEMS_SUCCESSFUL )                                 
  10a7db:	83 c4 10             	add    $0x10,%esp                     
  10a7de:	85 c0                	test   %eax,%eax                      
  10a7e0:	0f 85 c7 00 00 00    	jne    10a8ad <rtems_rate_monotonic_report_statistics_with_plugin+0x135>
    #if defined(RTEMS_DEBUG)                                          
      status = rtems_rate_monotonic_get_status( id, &the_status );    
      if ( status != RTEMS_SUCCESSFUL )                               
        continue;                                                     
    #else                                                             
      (void) rtems_rate_monotonic_get_status( id, &the_status );      
  10a7e6:	51                   	push   %ecx                           
  10a7e7:	51                   	push   %ecx                           
  10a7e8:	8d 55 c0             	lea    -0x40(%ebp),%edx               
  10a7eb:	52                   	push   %edx                           
  10a7ec:	56                   	push   %esi                           
  10a7ed:	e8 8a 4f 00 00       	call   10f77c <rtems_rate_monotonic_get_status>
    #endif                                                            
                                                                      
    rtems_object_get_name( the_status.owner, sizeof(name), name );    
  10a7f2:	83 c4 0c             	add    $0xc,%esp                      
  10a7f5:	8d 45 e3             	lea    -0x1d(%ebp),%eax               
  10a7f8:	50                   	push   %eax                           
  10a7f9:	6a 05                	push   $0x5                           
  10a7fb:	ff 75 c0             	pushl  -0x40(%ebp)                    
  10a7fe:	e8 01 02 00 00       	call   10aa04 <rtems_object_get_name> 
                                                                      
    /*                                                                
     *  Print part of report line that is not dependent on granularity
     */                                                               
    (*print)( context,                                                
  10a803:	58                   	pop    %eax                           
  10a804:	5a                   	pop    %edx                           
  10a805:	ff 75 8c             	pushl  -0x74(%ebp)                    
  10a808:	ff 75 88             	pushl  -0x78(%ebp)                    
  10a80b:	8d 55 e3             	lea    -0x1d(%ebp),%edx               
  10a80e:	52                   	push   %edx                           
  10a80f:	56                   	push   %esi                           
  10a810:	68 4e fe 11 00       	push   $0x11fe4e                      
  10a815:	53                   	push   %ebx                           
  10a816:	ff d7                	call   *%edi                          
    );                                                                
                                                                      
    /*                                                                
     *  If the count is zero, don't print statistics                  
     */                                                               
    if (the_stats.count == 0) {                                       
  10a818:	8b 45 88             	mov    -0x78(%ebp),%eax               
  10a81b:	83 c4 20             	add    $0x20,%esp                     
  10a81e:	85 c0                	test   %eax,%eax                      
  10a820:	75 0f                	jne    10a831 <rtems_rate_monotonic_report_statistics_with_plugin+0xb9>
      (*print)( context, "\n" );                                      
  10a822:	51                   	push   %ecx                           
  10a823:	51                   	push   %ecx                           
  10a824:	68 b4 00 12 00       	push   $0x1200b4                      
  10a829:	53                   	push   %ebx                           
  10a82a:	ff d7                	call   *%edi                          
      continue;                                                       
  10a82c:	83 c4 10             	add    $0x10,%esp                     
  10a82f:	eb 7c                	jmp    10a8ad <rtems_rate_monotonic_report_statistics_with_plugin+0x135>
      struct timespec  cpu_average;                                   
      struct timespec *min_cpu = &the_stats.min_cpu_time;             
      struct timespec *max_cpu = &the_stats.max_cpu_time;             
      struct timespec *total_cpu = &the_stats.total_cpu_time;         
                                                                      
      _Timespec_Divide_by_integer( total_cpu, the_stats.count, &cpu_average );
  10a831:	52                   	push   %edx                           
  10a832:	8d 55 d8             	lea    -0x28(%ebp),%edx               
  10a835:	52                   	push   %edx                           
  10a836:	50                   	push   %eax                           
  10a837:	8d 45 a0             	lea    -0x60(%ebp),%eax               
  10a83a:	50                   	push   %eax                           
  10a83b:	e8 74 2e 00 00       	call   10d6b4 <_Timespec_Divide_by_integer>
      (*print)( context,                                              
  10a840:	8b 45 dc             	mov    -0x24(%ebp),%eax               
  10a843:	b9 e8 03 00 00       	mov    $0x3e8,%ecx                    
  10a848:	99                   	cltd                                  
  10a849:	f7 f9                	idiv   %ecx                           
  10a84b:	50                   	push   %eax                           
  10a84c:	ff 75 d8             	pushl  -0x28(%ebp)                    
  10a84f:	8b 45 9c             	mov    -0x64(%ebp),%eax               
  10a852:	99                   	cltd                                  
  10a853:	f7 f9                	idiv   %ecx                           
  10a855:	50                   	push   %eax                           
  10a856:	ff 75 98             	pushl  -0x68(%ebp)                    
  10a859:	8b 45 94             	mov    -0x6c(%ebp),%eax               
  10a85c:	99                   	cltd                                  
  10a85d:	f7 f9                	idiv   %ecx                           
  10a85f:	50                   	push   %eax                           
  10a860:	ff 75 90             	pushl  -0x70(%ebp)                    
  10a863:	68 65 fe 11 00       	push   $0x11fe65                      
  10a868:	53                   	push   %ebx                           
  10a869:	89 4d 84             	mov    %ecx,-0x7c(%ebp)               
  10a86c:	ff d7                	call   *%edi                          
      struct timespec  wall_average;                                  
      struct timespec *min_wall = &the_stats.min_wall_time;           
      struct timespec *max_wall = &the_stats.max_wall_time;           
      struct timespec *total_wall = &the_stats.total_wall_time;       
                                                                      
      _Timespec_Divide_by_integer(total_wall, the_stats.count, &wall_average);
  10a86e:	83 c4 2c             	add    $0x2c,%esp                     
  10a871:	8d 55 d8             	lea    -0x28(%ebp),%edx               
  10a874:	52                   	push   %edx                           
  10a875:	ff 75 88             	pushl  -0x78(%ebp)                    
    {                                                                 
    #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                        
      struct timespec  wall_average;                                  
      struct timespec *min_wall = &the_stats.min_wall_time;           
      struct timespec *max_wall = &the_stats.max_wall_time;           
      struct timespec *total_wall = &the_stats.total_wall_time;       
  10a878:	8d 45 b8             	lea    -0x48(%ebp),%eax               
                                                                      
      _Timespec_Divide_by_integer(total_wall, the_stats.count, &wall_average);
  10a87b:	50                   	push   %eax                           
  10a87c:	e8 33 2e 00 00       	call   10d6b4 <_Timespec_Divide_by_integer>
      (*print)( context,                                              
  10a881:	8b 45 dc             	mov    -0x24(%ebp),%eax               
  10a884:	8b 4d 84             	mov    -0x7c(%ebp),%ecx               
  10a887:	99                   	cltd                                  
  10a888:	f7 f9                	idiv   %ecx                           
  10a88a:	50                   	push   %eax                           
  10a88b:	ff 75 d8             	pushl  -0x28(%ebp)                    
  10a88e:	8b 45 b4             	mov    -0x4c(%ebp),%eax               
  10a891:	99                   	cltd                                  
  10a892:	f7 f9                	idiv   %ecx                           
  10a894:	50                   	push   %eax                           
  10a895:	ff 75 b0             	pushl  -0x50(%ebp)                    
  10a898:	8b 45 ac             	mov    -0x54(%ebp),%eax               
  10a89b:	99                   	cltd                                  
  10a89c:	f7 f9                	idiv   %ecx                           
  10a89e:	50                   	push   %eax                           
  10a89f:	ff 75 a8             	pushl  -0x58(%ebp)                    
  10a8a2:	68 84 fe 11 00       	push   $0x11fe84                      
  10a8a7:	53                   	push   %ebx                           
  10a8a8:	ff d7                	call   *%edi                          
  10a8aa:	83 c4 30             	add    $0x30,%esp                     
   * Cycle through all possible ids and try to report on each one.  If it
   * is a period that is inactive, we just get an error back.  No big deal.
   */                                                                 
  for ( id=_Rate_monotonic_Information.minimum_id ;                   
        id <= _Rate_monotonic_Information.maximum_id ;                
        id++ ) {                                                      
  10a8ad:	46                   	inc    %esi                           
                                                                      
  /*                                                                  
   * Cycle through all possible ids and try to report on each one.  If it
   * is a period that is inactive, we just get an error back.  No big deal.
   */                                                                 
  for ( id=_Rate_monotonic_Information.minimum_id ;                   
  10a8ae:	3b 35 c8 6a 12 00    	cmp    0x126ac8,%esi                  
  10a8b4:	0f 86 15 ff ff ff    	jbe    10a7cf <rtems_rate_monotonic_report_statistics_with_plugin+0x57>
        the_stats.min_wall_time, the_stats.max_wall_time, ival_wall, fval_wall
      );                                                              
    #endif                                                            
    }                                                                 
  }                                                                   
}                                                                     
  10a8ba:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  10a8bd:	5b                   	pop    %ebx                           
  10a8be:	5e                   	pop    %esi                           
  10a8bf:	5f                   	pop    %edi                           
  10a8c0:	c9                   	leave                                 
  10a8c1:	c3                   	ret                                   
                                                                      

0011494c <rtems_region_delete>: */ rtems_status_code rtems_region_delete( rtems_id id ) {
  11494c:	55                   	push   %ebp                           
  11494d:	89 e5                	mov    %esp,%ebp                      
  11494f:	56                   	push   %esi                           
  114950:	53                   	push   %ebx                           
  114951:	83 ec 1c             	sub    $0x1c,%esp                     
  Objects_Locations   location;                                       
  rtems_status_code   return_status;                                  
  Region_Control     *the_region;                                     
                                                                      
  _RTEMS_Lock_allocator();                                            
  114954:	ff 35 d8 c6 13 00    	pushl  0x13c6d8                       
  11495a:	e8 c5 1f 00 00       	call   116924 <_API_Mutex_Lock>       
  Objects_Id         id,                                              
  Objects_Locations *location                                         
)                                                                     
{                                                                     
  return (Region_Control *)                                           
    _Objects_Get_no_protection( &_Region_Information, id, location ); 
  11495f:	83 c4 0c             	add    $0xc,%esp                      
                                                                      
    the_region = _Region_Get( id, &location );                        
  114962:	8d 45 f4             	lea    -0xc(%ebp),%eax                
  114965:	50                   	push   %eax                           
  114966:	ff 75 08             	pushl  0x8(%ebp)                      
  114969:	68 4c c5 13 00       	push   $0x13c54c                      
  11496e:	e8 55 37 00 00       	call   1180c8 <_Objects_Get_no_protection>
  114973:	89 c6                	mov    %eax,%esi                      
    switch ( location ) {                                             
  114975:	83 c4 10             	add    $0x10,%esp                     
        break;                                                        
#endif                                                                
                                                                      
      case OBJECTS_ERROR:                                             
      default:                                                        
        return_status = RTEMS_INVALID_ID;                             
  114978:	bb 04 00 00 00       	mov    $0x4,%ebx                      
  Region_Control     *the_region;                                     
                                                                      
  _RTEMS_Lock_allocator();                                            
                                                                      
    the_region = _Region_Get( id, &location );                        
    switch ( location ) {                                             
  11497d:	83 7d f4 00          	cmpl   $0x0,-0xc(%ebp)                
  114981:	75 2a                	jne    1149ad <rtems_region_delete+0x61>
                                                                      
      case OBJECTS_LOCAL:                                             
        _Region_Debug_Walk( the_region, 5 );                          
        if ( the_region->number_of_used_blocks != 0 )                 
          return_status = RTEMS_RESOURCE_IN_USE;                      
  114983:	bb 0c 00 00 00       	mov    $0xc,%ebx                      
    the_region = _Region_Get( id, &location );                        
    switch ( location ) {                                             
                                                                      
      case OBJECTS_LOCAL:                                             
        _Region_Debug_Walk( the_region, 5 );                          
        if ( the_region->number_of_used_blocks != 0 )                 
  114988:	83 78 64 00          	cmpl   $0x0,0x64(%eax)                
  11498c:	75 1f                	jne    1149ad <rtems_region_delete+0x61><== NEVER TAKEN
          return_status = RTEMS_RESOURCE_IN_USE;                      
        else {                                                        
          _Objects_Close( &_Region_Information, &the_region->Object );
  11498e:	51                   	push   %ecx                           
  11498f:	51                   	push   %ecx                           
  114990:	50                   	push   %eax                           
  114991:	68 4c c5 13 00       	push   $0x13c54c                      
  114996:	e8 6d 33 00 00       	call   117d08 <_Objects_Close>        
 */                                                                   
RTEMS_INLINE_ROUTINE void _Region_Free (                              
  Region_Control *the_region                                          
)                                                                     
{                                                                     
  _Objects_Free( &_Region_Information, &the_region->Object );         
  11499b:	58                   	pop    %eax                           
  11499c:	5a                   	pop    %edx                           
  11499d:	56                   	push   %esi                           
  11499e:	68 4c c5 13 00       	push   $0x13c54c                      
  1149a3:	e8 e8 35 00 00       	call   117f90 <_Objects_Free>         
  1149a8:	83 c4 10             	add    $0x10,%esp                     
          _Region_Free( the_region );                                 
          return_status = RTEMS_SUCCESSFUL;                           
  1149ab:	30 db                	xor    %bl,%bl                        
      default:                                                        
        return_status = RTEMS_INVALID_ID;                             
        break;                                                        
    }                                                                 
                                                                      
  _RTEMS_Unlock_allocator();                                          
  1149ad:	83 ec 0c             	sub    $0xc,%esp                      
  1149b0:	ff 35 d8 c6 13 00    	pushl  0x13c6d8                       
  1149b6:	e8 b1 1f 00 00       	call   11696c <_API_Mutex_Unlock>     
  return return_status;                                               
}                                                                     
  1149bb:	89 d8                	mov    %ebx,%eax                      
  1149bd:	8d 65 f8             	lea    -0x8(%ebp),%esp                
  1149c0:	5b                   	pop    %ebx                           
  1149c1:	5e                   	pop    %esi                           
  1149c2:	c9                   	leave                                 
  1149c3:	c3                   	ret                                   
                                                                      

001149c4 <rtems_region_extend>: rtems_status_code rtems_region_extend( rtems_id id, void *starting_address, uintptr_t length ) {
  1149c4:	55                   	push   %ebp                           
  1149c5:	89 e5                	mov    %esp,%ebp                      
  1149c7:	57                   	push   %edi                           
  1149c8:	56                   	push   %esi                           
  1149c9:	53                   	push   %ebx                           
  1149ca:	83 ec 1c             	sub    $0x1c,%esp                     
  1149cd:	8b 7d 0c             	mov    0xc(%ebp),%edi                 
  Objects_Locations   location;                                       
  rtems_status_code   return_status;                                  
  Region_Control     *the_region;                                     
                                                                      
  if ( !starting_address )                                            
    return RTEMS_INVALID_ADDRESS;                                     
  1149d0:	be 09 00 00 00       	mov    $0x9,%esi                      
  bool                extend_ok;                                      
  Objects_Locations   location;                                       
  rtems_status_code   return_status;                                  
  Region_Control     *the_region;                                     
                                                                      
  if ( !starting_address )                                            
  1149d5:	85 ff                	test   %edi,%edi                      
  1149d7:	74 69                	je     114a42 <rtems_region_extend+0x7e>
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  _RTEMS_Lock_allocator();                      /* to prevent deletion */
  1149d9:	83 ec 0c             	sub    $0xc,%esp                      
  1149dc:	ff 35 d8 c6 13 00    	pushl  0x13c6d8                       
  1149e2:	e8 3d 1f 00 00       	call   116924 <_API_Mutex_Lock>       
  Objects_Id         id,                                              
  Objects_Locations *location                                         
)                                                                     
{                                                                     
  return (Region_Control *)                                           
    _Objects_Get_no_protection( &_Region_Information, id, location ); 
  1149e7:	83 c4 0c             	add    $0xc,%esp                      
                                                                      
    the_region = _Region_Get( id, &location );                        
  1149ea:	8d 45 e0             	lea    -0x20(%ebp),%eax               
  1149ed:	50                   	push   %eax                           
  1149ee:	ff 75 08             	pushl  0x8(%ebp)                      
  1149f1:	68 4c c5 13 00       	push   $0x13c54c                      
  1149f6:	e8 cd 36 00 00       	call   1180c8 <_Objects_Get_no_protection>
  1149fb:	89 c3                	mov    %eax,%ebx                      
    switch ( location ) {                                             
  1149fd:	83 c4 10             	add    $0x10,%esp                     
  114a00:	83 7d e0 00          	cmpl   $0x0,-0x20(%ebp)               
  114a04:	75 26                	jne    114a2c <rtems_region_extend+0x68><== NEVER TAKEN
                                                                      
      case OBJECTS_LOCAL:                                             
                                                                      
        extend_ok = _Heap_Extend(                                     
  114a06:	8d 45 e4             	lea    -0x1c(%ebp),%eax               
  114a09:	50                   	push   %eax                           
  114a0a:	ff 75 10             	pushl  0x10(%ebp)                     
  114a0d:	57                   	push   %edi                           
  114a0e:	8d 43 68             	lea    0x68(%ebx),%eax                
  114a11:	50                   	push   %eax                           
  114a12:	e8 74 29 00 00       	call   11738b <_Heap_Extend>          
          starting_address,                                           
          length,                                                     
          &amount_extended                                            
        );                                                            
                                                                      
        if ( extend_ok ) {                                            
  114a17:	83 c4 10             	add    $0x10,%esp                     
  114a1a:	84 c0                	test   %al,%al                        
  114a1c:	74 13                	je     114a31 <rtems_region_extend+0x6d>
          the_region->length                += amount_extended;       
  114a1e:	8b 45 e4             	mov    -0x1c(%ebp),%eax               
  114a21:	01 43 54             	add    %eax,0x54(%ebx)                
          the_region->maximum_segment_size  += amount_extended;       
  114a24:	01 43 5c             	add    %eax,0x5c(%ebx)                
          return_status = RTEMS_SUCCESSFUL;                           
  114a27:	66 31 f6             	xor    %si,%si                        
  114a2a:	eb 05                	jmp    114a31 <rtems_region_extend+0x6d>
        break;                                                        
#endif                                                                
                                                                      
      case OBJECTS_ERROR:                                             
      default:                                                        
        return_status = RTEMS_INVALID_ID;                             
  114a2c:	be 04 00 00 00       	mov    $0x4,%esi                      <== NOT EXECUTED
        break;                                                        
    }                                                                 
                                                                      
  _RTEMS_Unlock_allocator();                                          
  114a31:	83 ec 0c             	sub    $0xc,%esp                      
  114a34:	ff 35 d8 c6 13 00    	pushl  0x13c6d8                       
  114a3a:	e8 2d 1f 00 00       	call   11696c <_API_Mutex_Unlock>     
  return return_status;                                               
  114a3f:	83 c4 10             	add    $0x10,%esp                     
}                                                                     
  114a42:	89 f0                	mov    %esi,%eax                      
  114a44:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  114a47:	5b                   	pop    %ebx                           
  114a48:	5e                   	pop    %esi                           
  114a49:	5f                   	pop    %edi                           
  114a4a:	c9                   	leave                                 
  114a4b:	c3                   	ret                                   
                                                                      

00114c58 <rtems_region_get_segment_size>: rtems_status_code rtems_region_get_segment_size( rtems_id id, void *segment, uintptr_t *size ) {
  114c58:	55                   	push   %ebp                           
  114c59:	89 e5                	mov    %esp,%ebp                      
  114c5b:	56                   	push   %esi                           
  114c5c:	53                   	push   %ebx                           
  114c5d:	83 ec 20             	sub    $0x20,%esp                     
  114c60:	8b 5d 0c             	mov    0xc(%ebp),%ebx                 
  114c63:	8b 75 10             	mov    0x10(%ebp),%esi                
  Objects_Locations        location;                                  
  rtems_status_code        return_status = RTEMS_SUCCESSFUL;          
  register Region_Control *the_region;                                
                                                                      
  if ( !segment )                                                     
    return RTEMS_INVALID_ADDRESS;                                     
  114c66:	b8 09 00 00 00       	mov    $0x9,%eax                      
{                                                                     
  Objects_Locations        location;                                  
  rtems_status_code        return_status = RTEMS_SUCCESSFUL;          
  register Region_Control *the_region;                                
                                                                      
  if ( !segment )                                                     
  114c6b:	85 db                	test   %ebx,%ebx                      
  114c6d:	74 6a                	je     114cd9 <rtems_region_get_segment_size+0x81><== NEVER TAKEN
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( !size )                                                        
  114c6f:	85 f6                	test   %esi,%esi                      
  114c71:	74 66                	je     114cd9 <rtems_region_get_segment_size+0x81><== NEVER TAKEN
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  _RTEMS_Lock_allocator();                                            
  114c73:	83 ec 0c             	sub    $0xc,%esp                      
  114c76:	ff 35 d8 c6 13 00    	pushl  0x13c6d8                       
  114c7c:	e8 a3 1c 00 00       	call   116924 <_API_Mutex_Lock>       
  Objects_Id         id,                                              
  Objects_Locations *location                                         
)                                                                     
{                                                                     
  return (Region_Control *)                                           
    _Objects_Get_no_protection( &_Region_Information, id, location ); 
  114c81:	83 c4 0c             	add    $0xc,%esp                      
                                                                      
    the_region = _Region_Get( id, &location );                        
  114c84:	8d 45 f4             	lea    -0xc(%ebp),%eax                
  114c87:	50                   	push   %eax                           
  114c88:	ff 75 08             	pushl  0x8(%ebp)                      
  114c8b:	68 4c c5 13 00       	push   $0x13c54c                      
  114c90:	e8 33 34 00 00       	call   1180c8 <_Objects_Get_no_protection>
    switch ( location ) {                                             
  114c95:	83 c4 10             	add    $0x10,%esp                     
  114c98:	8b 55 f4             	mov    -0xc(%ebp),%edx                
  114c9b:	85 d2                	test   %edx,%edx                      
  114c9d:	74 0d                	je     114cac <rtems_region_get_segment_size+0x54><== ALWAYS TAKEN
  void      *segment,                                                 
  uintptr_t *size                                                     
)                                                                     
{                                                                     
  Objects_Locations        location;                                  
  rtems_status_code        return_status = RTEMS_SUCCESSFUL;          
  114c9f:	31 c0                	xor    %eax,%eax                      
  114ca1:	83 fa 01             	cmp    $0x1,%edx                      <== NOT EXECUTED
  114ca4:	0f 94 c0             	sete   %al                            <== NOT EXECUTED
  114ca7:	c1 e0 02             	shl    $0x2,%eax                      <== NOT EXECUTED
  114caa:	eb 16                	jmp    114cc2 <rtems_region_get_segment_size+0x6a><== NOT EXECUTED
                                                                      
    the_region = _Region_Get( id, &location );                        
    switch ( location ) {                                             
                                                                      
      case OBJECTS_LOCAL:                                             
        if ( !_Heap_Size_of_alloc_area( &the_region->Memory, segment, size ) )
  114cac:	52                   	push   %edx                           
  114cad:	56                   	push   %esi                           
  114cae:	53                   	push   %ebx                           
  114caf:	83 c0 68             	add    $0x68,%eax                     
  114cb2:	50                   	push   %eax                           
  114cb3:	e8 ec 2e 00 00       	call   117ba4 <_Heap_Size_of_alloc_area>
  114cb8:	83 c4 10             	add    $0x10,%esp                     
  void      *segment,                                                 
  uintptr_t *size                                                     
)                                                                     
{                                                                     
  Objects_Locations        location;                                  
  rtems_status_code        return_status = RTEMS_SUCCESSFUL;          
  114cbb:	3c 01                	cmp    $0x1,%al                       
  114cbd:	19 c0                	sbb    %eax,%eax                      
  114cbf:	83 e0 09             	and    $0x9,%eax                      
      case OBJECTS_ERROR:                                             
        return_status = RTEMS_INVALID_ID;                             
        break;                                                        
    }                                                                 
                                                                      
  _RTEMS_Unlock_allocator();                                          
  114cc2:	83 ec 0c             	sub    $0xc,%esp                      
  114cc5:	ff 35 d8 c6 13 00    	pushl  0x13c6d8                       
  114ccb:	89 45 e4             	mov    %eax,-0x1c(%ebp)               
  114cce:	e8 99 1c 00 00       	call   11696c <_API_Mutex_Unlock>     
  return return_status;                                               
  114cd3:	83 c4 10             	add    $0x10,%esp                     
  114cd6:	8b 45 e4             	mov    -0x1c(%ebp),%eax               
}                                                                     
  114cd9:	8d 65 f8             	lea    -0x8(%ebp),%esp                
  114cdc:	5b                   	pop    %ebx                           
  114cdd:	5e                   	pop    %esi                           
  114cde:	c9                   	leave                                 
  114cdf:	c3                   	ret                                   
                                                                      

00114d04 <rtems_region_resize_segment>: rtems_id id, void *segment, uintptr_t size, uintptr_t *old_size ) {
  114d04:	55                   	push   %ebp                           
  114d05:	89 e5                	mov    %esp,%ebp                      
  114d07:	57                   	push   %edi                           
  114d08:	56                   	push   %esi                           
  114d09:	53                   	push   %ebx                           
  114d0a:	83 ec 1c             	sub    $0x1c,%esp                     
  114d0d:	8b 75 14             	mov    0x14(%ebp),%esi                
  rtems_status_code        return_status;                             
  Heap_Resize_status       status;                                    
  register Region_Control *the_region;                                
                                                                      
  if ( !old_size )                                                    
    return RTEMS_INVALID_ADDRESS;                                     
  114d10:	b8 09 00 00 00       	mov    $0x9,%eax                      
  uintptr_t                osize;                                     
  rtems_status_code        return_status;                             
  Heap_Resize_status       status;                                    
  register Region_Control *the_region;                                
                                                                      
  if ( !old_size )                                                    
  114d15:	85 f6                	test   %esi,%esi                      
  114d17:	0f 84 9d 00 00 00    	je     114dba <rtems_region_resize_segment+0xb6><== NEVER TAKEN
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  _RTEMS_Lock_allocator();                                            
  114d1d:	83 ec 0c             	sub    $0xc,%esp                      
  114d20:	ff 35 d8 c6 13 00    	pushl  0x13c6d8                       
  114d26:	e8 f9 1b 00 00       	call   116924 <_API_Mutex_Lock>       
  114d2b:	83 c4 0c             	add    $0xc,%esp                      
                                                                      
    the_region = _Region_Get( id, &location );                        
  114d2e:	8d 45 e0             	lea    -0x20(%ebp),%eax               
  114d31:	50                   	push   %eax                           
  114d32:	ff 75 08             	pushl  0x8(%ebp)                      
  114d35:	68 4c c5 13 00       	push   $0x13c54c                      
  114d3a:	e8 89 33 00 00       	call   1180c8 <_Objects_Get_no_protection>
  114d3f:	89 c3                	mov    %eax,%ebx                      
    switch ( location ) {                                             
  114d41:	83 c4 10             	add    $0x10,%esp                     
  114d44:	83 7d e0 00          	cmpl   $0x0,-0x20(%ebp)               
  114d48:	75 5a                	jne    114da4 <rtems_region_resize_segment+0xa0><== NEVER TAKEN
                                                                      
      case OBJECTS_LOCAL:                                             
                                                                      
        _Region_Debug_Walk( the_region, 7 );                          
                                                                      
        status = _Heap_Resize_block(                                  
  114d4a:	83 ec 0c             	sub    $0xc,%esp                      
  114d4d:	8d 45 e4             	lea    -0x1c(%ebp),%eax               
  114d50:	50                   	push   %eax                           
  114d51:	8d 45 dc             	lea    -0x24(%ebp),%eax               
  114d54:	50                   	push   %eax                           
  114d55:	ff 75 10             	pushl  0x10(%ebp)                     
  114d58:	ff 75 0c             	pushl  0xc(%ebp)                      
  114d5b:	8d 43 68             	lea    0x68(%ebx),%eax                
  114d5e:	50                   	push   %eax                           
  114d5f:	e8 58 2d 00 00       	call   117abc <_Heap_Resize_block>    
  114d64:	89 c7                	mov    %eax,%edi                      
          segment,                                                    
          (uint32_t) size,                                            
          &osize,                                                     
          &avail_size                                                 
        );                                                            
        *old_size = (uint32_t) osize;                                 
  114d66:	8b 45 dc             	mov    -0x24(%ebp),%eax               
  114d69:	89 06                	mov    %eax,(%esi)                    
                                                                      
        _Region_Debug_Walk( the_region, 8 );                          
                                                                      
        if ( status == HEAP_RESIZE_SUCCESSFUL )                       
  114d6b:	83 c4 20             	add    $0x20,%esp                     
  114d6e:	85 ff                	test   %edi,%edi                      
  114d70:	75 10                	jne    114d82 <rtems_region_resize_segment+0x7e>
          _Region_Process_queue( the_region );    /* unlocks allocator */
  114d72:	83 ec 0c             	sub    $0xc,%esp                      
  114d75:	53                   	push   %ebx                           
  114d76:	e8 c9 66 00 00       	call   11b444 <_Region_Process_queue> 
  114d7b:	83 c4 10             	add    $0x10,%esp                     
        else                                                          
          _RTEMS_Unlock_allocator();                                  
                                                                      
                                                                      
        if (status == HEAP_RESIZE_SUCCESSFUL)                         
          return RTEMS_SUCCESSFUL;                                    
  114d7e:	31 c0                	xor    %eax,%eax                      
  114d80:	eb 38                	jmp    114dba <rtems_region_resize_segment+0xb6>
        _Region_Debug_Walk( the_region, 8 );                          
                                                                      
        if ( status == HEAP_RESIZE_SUCCESSFUL )                       
          _Region_Process_queue( the_region );    /* unlocks allocator */
        else                                                          
          _RTEMS_Unlock_allocator();                                  
  114d82:	83 ec 0c             	sub    $0xc,%esp                      
  114d85:	ff 35 d8 c6 13 00    	pushl  0x13c6d8                       
  114d8b:	e8 dc 1b 00 00       	call   11696c <_API_Mutex_Unlock>     
                                                                      
                                                                      
        if (status == HEAP_RESIZE_SUCCESSFUL)                         
          return RTEMS_SUCCESSFUL;                                    
        if (status == HEAP_RESIZE_UNSATISFIED)                        
  114d90:	83 c4 10             	add    $0x10,%esp                     
          return RTEMS_UNSATISFIED;                                   
  114d93:	31 c0                	xor    %eax,%eax                      
  114d95:	83 ff 01             	cmp    $0x1,%edi                      
  114d98:	0f 94 c0             	sete   %al                            
  114d9b:	8d 04 85 09 00 00 00 	lea    0x9(,%eax,4),%eax              
  114da2:	eb 16                	jmp    114dba <rtems_region_resize_segment+0xb6>
      default:                                                        
        return_status = RTEMS_INVALID_ID;                             
        break;                                                        
    }                                                                 
                                                                      
  _RTEMS_Unlock_allocator();                                          
  114da4:	83 ec 0c             	sub    $0xc,%esp                      <== NOT EXECUTED
  114da7:	ff 35 d8 c6 13 00    	pushl  0x13c6d8                       <== NOT EXECUTED
  114dad:	e8 ba 1b 00 00       	call   11696c <_API_Mutex_Unlock>     <== NOT EXECUTED
  return return_status;                                               
  114db2:	83 c4 10             	add    $0x10,%esp                     <== NOT EXECUTED
  114db5:	b8 04 00 00 00       	mov    $0x4,%eax                      <== NOT EXECUTED
}                                                                     
  114dba:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  114dbd:	5b                   	pop    %ebx                           
  114dbe:	5e                   	pop    %esi                           
  114dbf:	5f                   	pop    %edi                           
  114dc0:	c9                   	leave                                 
  114dc1:	c3                   	ret                                   
                                                                      

00114dc4 <rtems_region_return_segment>: rtems_status_code rtems_region_return_segment( rtems_id id, void *segment ) {
  114dc4:	55                   	push   %ebp                           
  114dc5:	89 e5                	mov    %esp,%ebp                      
  114dc7:	56                   	push   %esi                           
  114dc8:	53                   	push   %ebx                           
  114dc9:	83 ec 1c             	sub    $0x1c,%esp                     
  uint32_t                 size;                                      
#endif                                                                
  int                      status;                                    
  register Region_Control *the_region;                                
                                                                      
  _RTEMS_Lock_allocator();                                            
  114dcc:	ff 35 d8 c6 13 00    	pushl  0x13c6d8                       
  114dd2:	e8 4d 1b 00 00       	call   116924 <_API_Mutex_Lock>       
  114dd7:	83 c4 0c             	add    $0xc,%esp                      
                                                                      
    the_region = _Region_Get( id, &location );                        
  114dda:	8d 45 f4             	lea    -0xc(%ebp),%eax                
  114ddd:	50                   	push   %eax                           
  114dde:	ff 75 08             	pushl  0x8(%ebp)                      
  114de1:	68 4c c5 13 00       	push   $0x13c54c                      
  114de6:	e8 dd 32 00 00       	call   1180c8 <_Objects_Get_no_protection>
  114deb:	89 c3                	mov    %eax,%ebx                      
    switch ( location ) {                                             
  114ded:	83 c4 10             	add    $0x10,%esp                     
        break;                                                        
#endif                                                                
                                                                      
      case OBJECTS_ERROR:                                             
      default:                                                        
        return_status = RTEMS_INVALID_ID;                             
  114df0:	be 04 00 00 00       	mov    $0x4,%esi                      
  register Region_Control *the_region;                                
                                                                      
  _RTEMS_Lock_allocator();                                            
                                                                      
    the_region = _Region_Get( id, &location );                        
    switch ( location ) {                                             
  114df5:	83 7d f4 00          	cmpl   $0x0,-0xc(%ebp)                
  114df9:	75 2e                	jne    114e29 <rtems_region_return_segment+0x65><== NEVER TAKEN
RTEMS_INLINE_ROUTINE bool _Region_Free_segment (                      
  Region_Control *the_region,                                         
  void           *the_segment                                         
)                                                                     
{                                                                     
  return _Heap_Free( &the_region->Memory, the_segment );              
  114dfb:	50                   	push   %eax                           
  114dfc:	50                   	push   %eax                           
  114dfd:	ff 75 0c             	pushl  0xc(%ebp)                      
  114e00:	8d 43 68             	lea    0x68(%ebx),%eax                
  114e03:	50                   	push   %eax                           
  114e04:	e8 9f 27 00 00       	call   1175a8 <_Heap_Free>            
#endif                                                                
          status = _Region_Free_segment( the_region, segment );       
                                                                      
          _Region_Debug_Walk( the_region, 4 );                        
                                                                      
          if ( !status )                                              
  114e09:	83 c4 10             	add    $0x10,%esp                     
            return_status = RTEMS_INVALID_ADDRESS;                    
  114e0c:	be 09 00 00 00       	mov    $0x9,%esi                      
#endif                                                                
          status = _Region_Free_segment( the_region, segment );       
                                                                      
          _Region_Debug_Walk( the_region, 4 );                        
                                                                      
          if ( !status )                                              
  114e11:	84 c0                	test   %al,%al                        
  114e13:	74 14                	je     114e29 <rtems_region_return_segment+0x65><== NEVER TAKEN
            return_status = RTEMS_INVALID_ADDRESS;                    
          else {                                                      
            the_region->number_of_used_blocks -= 1;                   
  114e15:	ff 4b 64             	decl   0x64(%ebx)                     
                                                                      
            _Region_Process_queue(the_region); /* unlocks allocator */
  114e18:	83 ec 0c             	sub    $0xc,%esp                      
  114e1b:	53                   	push   %ebx                           
  114e1c:	e8 23 66 00 00       	call   11b444 <_Region_Process_queue> 
                                                                      
            return RTEMS_SUCCESSFUL;                                  
  114e21:	83 c4 10             	add    $0x10,%esp                     
  114e24:	66 31 f6             	xor    %si,%si                        
  114e27:	eb 11                	jmp    114e3a <rtems_region_return_segment+0x76>
      default:                                                        
        return_status = RTEMS_INVALID_ID;                             
        break;                                                        
    }                                                                 
                                                                      
  _RTEMS_Unlock_allocator();                                          
  114e29:	83 ec 0c             	sub    $0xc,%esp                      <== NOT EXECUTED
  114e2c:	ff 35 d8 c6 13 00    	pushl  0x13c6d8                       <== NOT EXECUTED
  114e32:	e8 35 1b 00 00       	call   11696c <_API_Mutex_Unlock>     <== NOT EXECUTED
  return return_status;                                               
  114e37:	83 c4 10             	add    $0x10,%esp                     <== NOT EXECUTED
}                                                                     
  114e3a:	89 f0                	mov    %esi,%eax                      
  114e3c:	8d 65 f8             	lea    -0x8(%ebp),%esp                
  114e3f:	5b                   	pop    %ebx                           
  114e40:	5e                   	pop    %esi                           
  114e41:	c9                   	leave                                 
  114e42:	c3                   	ret                                   
                                                                      

00115260 <rtems_signal_send>: rtems_status_code rtems_signal_send( rtems_id id, rtems_signal_set signal_set ) {
  115260:	55                   	push   %ebp                           
  115261:	89 e5                	mov    %esp,%ebp                      
  115263:	53                   	push   %ebx                           
  115264:	83 ec 14             	sub    $0x14,%esp                     
  115267:	8b 5d 0c             	mov    0xc(%ebp),%ebx                 
  Objects_Locations        location;                                  
  RTEMS_API_Control       *api;                                       
  ASR_Information         *asr;                                       
                                                                      
  if ( !signal_set )                                                  
    return RTEMS_INVALID_NUMBER;                                      
  11526a:	b8 0a 00 00 00       	mov    $0xa,%eax                      
  register Thread_Control *the_thread;                                
  Objects_Locations        location;                                  
  RTEMS_API_Control       *api;                                       
  ASR_Information         *asr;                                       
                                                                      
  if ( !signal_set )                                                  
  11526f:	85 db                	test   %ebx,%ebx                      
  115271:	74 6d                	je     1152e0 <rtems_signal_send+0x80>
    return RTEMS_INVALID_NUMBER;                                      
                                                                      
  the_thread = _Thread_Get( id, &location );                          
  115273:	50                   	push   %eax                           
  115274:	50                   	push   %eax                           
  115275:	8d 45 f4             	lea    -0xc(%ebp),%eax                
  115278:	50                   	push   %eax                           
  115279:	ff 75 08             	pushl  0x8(%ebp)                      
  11527c:	e8 23 39 00 00       	call   118ba4 <_Thread_Get>           
  switch ( location ) {                                               
  115281:	83 c4 10             	add    $0x10,%esp                     
  115284:	83 7d f4 00          	cmpl   $0x0,-0xc(%ebp)                
  115288:	75 51                	jne    1152db <rtems_signal_send+0x7b>
                                                                      
    case OBJECTS_LOCAL:                                               
      api = the_thread->API_Extensions[ THREAD_API_RTEMS ];           
  11528a:	8b 90 e4 00 00 00    	mov    0xe4(%eax),%edx                
      asr = &api->Signal;                                             
                                                                      
      if ( ! _ASR_Is_null_handler( asr->handler ) ) {                 
  115290:	83 7a 0c 00          	cmpl   $0x0,0xc(%edx)                 
  115294:	74 39                	je     1152cf <rtems_signal_send+0x6f>
        if ( asr->is_enabled ) {                                      
  115296:	80 7a 08 00          	cmpb   $0x0,0x8(%edx)                 
  11529a:	74 22                	je     1152be <rtems_signal_send+0x5e>
  rtems_signal_set *signal_set                                        
)                                                                     
{                                                                     
  ISR_Level              _level;                                      
                                                                      
  _ISR_Disable( _level );                                             
  11529c:	9c                   	pushf                                 
  11529d:	fa                   	cli                                   
  11529e:	59                   	pop    %ecx                           
    *signal_set |= signals;                                           
  11529f:	09 5a 14             	or     %ebx,0x14(%edx)                
  _ISR_Enable( _level );                                              
  1152a2:	51                   	push   %ecx                           
  1152a3:	9d                   	popf                                  
          _ASR_Post_signals( signal_set, &asr->signals_posted );      
                                                                      
          if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) )
  1152a4:	83 3d 54 c8 13 00 00 	cmpl   $0x0,0x13c854                  
  1152ab:	74 19                	je     1152c6 <rtems_signal_send+0x66>
  1152ad:	3b 05 58 c8 13 00    	cmp    0x13c858,%eax                  
  1152b3:	75 11                	jne    1152c6 <rtems_signal_send+0x66><== NEVER TAKEN
            _Thread_Dispatch_necessary = true;                        
  1152b5:	c6 05 64 c8 13 00 01 	movb   $0x1,0x13c864                  
  1152bc:	eb 08                	jmp    1152c6 <rtems_signal_send+0x66>
  rtems_signal_set *signal_set                                        
)                                                                     
{                                                                     
  ISR_Level              _level;                                      
                                                                      
  _ISR_Disable( _level );                                             
  1152be:	9c                   	pushf                                 
  1152bf:	fa                   	cli                                   
  1152c0:	58                   	pop    %eax                           
    *signal_set |= signals;                                           
  1152c1:	09 5a 18             	or     %ebx,0x18(%edx)                
  _ISR_Enable( _level );                                              
  1152c4:	50                   	push   %eax                           
  1152c5:	9d                   	popf                                  
        } else {                                                      
          _ASR_Post_signals( signal_set, &asr->signals_pending );     
        }                                                             
        _Thread_Enable_dispatch();                                    
  1152c6:	e8 b7 38 00 00       	call   118b82 <_Thread_Enable_dispatch>
        return RTEMS_SUCCESSFUL;                                      
  1152cb:	31 c0                	xor    %eax,%eax                      
  1152cd:	eb 11                	jmp    1152e0 <rtems_signal_send+0x80>
      }                                                               
      _Thread_Enable_dispatch();                                      
  1152cf:	e8 ae 38 00 00       	call   118b82 <_Thread_Enable_dispatch>
      return RTEMS_NOT_DEFINED;                                       
  1152d4:	b8 0b 00 00 00       	mov    $0xb,%eax                      
  1152d9:	eb 05                	jmp    1152e0 <rtems_signal_send+0x80>
                                                                      
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
  1152db:	b8 04 00 00 00       	mov    $0x4,%eax                      
}                                                                     
  1152e0:	8b 5d fc             	mov    -0x4(%ebp),%ebx                
  1152e3:	c9                   	leave                                 
  1152e4:	c3                   	ret                                   
                                                                      

00106334 <rtems_stack_checker_begin_extension>: * rtems_stack_checker_Begin_extension */ void rtems_stack_checker_begin_extension( Thread_Control *the_thread ) {
  106334:	55                   	push   %ebp                           
  106335:	89 e5                	mov    %esp,%ebp                      
  106337:	57                   	push   %edi                           
  106338:	56                   	push   %esi                           
  106339:	8b 45 08             	mov    0x8(%ebp),%eax                 
  Stack_check_Control  *the_pattern;                                  
                                                                      
  if ( the_thread->Object.id == 0 )        /* skip system tasks */    
  10633c:	83 78 08 00          	cmpl   $0x0,0x8(%eax)                 
  106340:	74 15                	je     106357 <rtems_stack_checker_begin_extension+0x23><== NEVER TAKEN
    return;                                                           
                                                                      
  the_pattern = Stack_check_Get_pattern_area(&the_thread->Start.Initial_stack);
                                                                      
  *the_pattern = Stack_check_Pattern;                                 
  106342:	8b b8 b8 00 00 00    	mov    0xb8(%eax),%edi                
  106348:	83 c7 08             	add    $0x8,%edi                      
  10634b:	be 10 43 12 00       	mov    $0x124310,%esi                 
  106350:	b9 04 00 00 00       	mov    $0x4,%ecx                      
  106355:	f3 a5                	rep movsl %ds:(%esi),%es:(%edi)       
}                                                                     
  106357:	5e                   	pop    %esi                           
  106358:	5f                   	pop    %edi                           
  106359:	c9                   	leave                                 
  10635a:	c3                   	ret                                   
                                                                      

0010630d <rtems_stack_checker_create_extension>: */ bool rtems_stack_checker_create_extension( Thread_Control *running __attribute__((unused)), Thread_Control *the_thread ) {
  10630d:	55                   	push   %ebp                           
  10630e:	89 e5                	mov    %esp,%ebp                      
  106310:	57                   	push   %edi                           
  106311:	8b 7d 0c             	mov    0xc(%ebp),%edi                 
  Stack_check_Initialize();                                           
  106314:	e8 8a ff ff ff       	call   1062a3 <Stack_check_Initialize>
                                                                      
  if (the_thread)                                                     
  106319:	85 ff                	test   %edi,%edi                      
  10631b:	74 12                	je     10632f <rtems_stack_checker_create_extension+0x22><== NEVER TAKEN
    Stack_check_Dope_stack(&the_thread->Start.Initial_stack);         
  10631d:	8b 8f b4 00 00 00    	mov    0xb4(%edi),%ecx                
  106323:	8b 97 b8 00 00 00    	mov    0xb8(%edi),%edx                
  106329:	b0 a5                	mov    $0xa5,%al                      
  10632b:	89 d7                	mov    %edx,%edi                      
  10632d:	f3 aa                	rep stos %al,%es:(%edi)               
                                                                      
  return true;                                                        
}                                                                     
  10632f:	b0 01                	mov    $0x1,%al                       
  106331:	5f                   	pop    %edi                           
  106332:	c9                   	leave                                 
  106333:	c3                   	ret                                   
                                                                      

00106468 <rtems_stack_checker_is_blown>: /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) {
  106468:	55                   	push   %ebp                           
  106469:	89 e5                	mov    %esp,%ebp                      
  10646b:	53                   	push   %ebx                           
  10646c:	83 ec 04             	sub    $0x4,%esp                      
  Stack_Control *the_stack = &_Thread_Executing->Start.Initial_stack; 
  10646f:	a1 84 46 12 00       	mov    0x124684,%eax                  
)                                                                     
{                                                                     
  #if defined(__GNUC__)                                               
    void *sp = __builtin_frame_address(0);                            
                                                                      
    if ( sp < the_stack->area ) {                                     
  106474:	8b 90 b8 00 00 00    	mov    0xb8(%eax),%edx                
      return false;                                                   
  10647a:	31 db                	xor    %ebx,%ebx                      
)                                                                     
{                                                                     
  #if defined(__GNUC__)                                               
    void *sp = __builtin_frame_address(0);                            
                                                                      
    if ( sp < the_stack->area ) {                                     
  10647c:	39 d5                	cmp    %edx,%ebp                      
  10647e:	72 0e                	jb     10648e <rtems_stack_checker_is_blown+0x26><== NEVER TAKEN
      return false;                                                   
    }                                                                 
    if ( sp > (the_stack->area + the_stack->size) ) {                 
  106480:	8b 80 b4 00 00 00    	mov    0xb4(%eax),%eax                
  106486:	8d 04 02             	lea    (%edx,%eax,1),%eax             
}                                                                     
                                                                      
/*                                                                    
 *  Check if blown                                                    
 */                                                                   
bool rtems_stack_checker_is_blown( void )                             
  106489:	39 c5                	cmp    %eax,%ebp                      
  10648b:	0f 96 c3             	setbe  %bl                            
{                                                                     
  Stack_Control *the_stack = &_Thread_Executing->Start.Initial_stack; 
  bool           sp_ok;                                               
  bool           pattern_ok = true;                                   
  10648e:	b0 01                	mov    $0x1,%al                       
                                                                      
  /*                                                                  
   * The stack checker must be initialized before the pattern is there
   * to check.                                                        
   */                                                                 
  if ( Stack_check_Initialized ) {                                    
  106490:	83 3d f8 3f 12 00 00 	cmpl   $0x0,0x123ff8                  
  106497:	74 19                	je     1064b2 <rtems_stack_checker_is_blown+0x4a><== NEVER TAKEN
    pattern_ok = (!memcmp(                                            
  106499:	83 c2 08             	add    $0x8,%edx                      
  10649c:	51                   	push   %ecx                           
  10649d:	6a 10                	push   $0x10                          
  10649f:	68 10 43 12 00       	push   $0x124310                      
  1064a4:	52                   	push   %edx                           
  1064a5:	e8 d2 a5 00 00       	call   110a7c <memcmp>                
  1064aa:	83 c4 10             	add    $0x10,%esp                     
  1064ad:	85 c0                	test   %eax,%eax                      
  1064af:	0f 94 c0             	sete   %al                            
                                                                      
                                                                      
  /*                                                                  
   * Let's report as much as we can.                                  
   */                                                                 
  if ( !sp_ok || !pattern_ok ) {                                      
  1064b2:	84 db                	test   %bl,%bl                        
  1064b4:	74 04                	je     1064ba <rtems_stack_checker_is_blown+0x52><== NEVER TAKEN
  1064b6:	84 c0                	test   %al,%al                        
  1064b8:	75 11                	jne    1064cb <rtems_stack_checker_is_blown+0x63><== ALWAYS TAKEN
    Stack_check_report_blown_task( _Thread_Executing, pattern_ok );   
  1064ba:	52                   	push   %edx                           <== NOT EXECUTED
  1064bb:	52                   	push   %edx                           <== NOT EXECUTED
  1064bc:	0f b6 c0             	movzbl %al,%eax                       <== NOT EXECUTED
  1064bf:	50                   	push   %eax                           <== NOT EXECUTED
  1064c0:	ff 35 84 46 12 00    	pushl  0x124684                       <== NOT EXECUTED
  1064c6:	e8 90 fe ff ff       	call   10635b <Stack_check_report_blown_task><== NOT EXECUTED
                                                                      
  /*                                                                  
   * The Stack Pointer and the Pattern Area are OK so return false.   
   */                                                                 
  return false;                                                       
}                                                                     
  1064cb:	31 c0                	xor    %eax,%eax                      
  1064cd:	8b 5d fc             	mov    -0x4(%ebp),%ebx                
  1064d0:	c9                   	leave                                 
  1064d1:	c3                   	ret                                   
                                                                      

00106537 <rtems_stack_checker_report_usage>: void rtems_stack_checker_report_usage( void ) {
  106537:	55                   	push   %ebp                           <== NOT EXECUTED
  106538:	89 e5                	mov    %esp,%ebp                      <== NOT EXECUTED
  10653a:	83 ec 10             	sub    $0x10,%esp                     <== NOT EXECUTED
  rtems_stack_checker_report_usage_with_plugin( NULL, printk_plugin );
  10653d:	68 c4 79 10 00       	push   $0x1079c4                      <== NOT EXECUTED
  106542:	6a 00                	push   $0x0                           <== NOT EXECUTED
  106544:	e8 89 ff ff ff       	call   1064d2 <rtems_stack_checker_report_usage_with_plugin><== NOT EXECUTED
  106549:	83 c4 10             	add    $0x10,%esp                     <== NOT EXECUTED
}                                                                     
  10654c:	c9                   	leave                                 <== NOT EXECUTED
  10654d:	c3                   	ret                                   <== NOT EXECUTED
                                                                      

001064d2 <rtems_stack_checker_report_usage_with_plugin>: void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) {
  1064d2:	55                   	push   %ebp                           <== NOT EXECUTED
  1064d3:	89 e5                	mov    %esp,%ebp                      <== NOT EXECUTED
  1064d5:	56                   	push   %esi                           <== NOT EXECUTED
  1064d6:	53                   	push   %ebx                           <== NOT EXECUTED
  1064d7:	8b 75 08             	mov    0x8(%ebp),%esi                 <== NOT EXECUTED
  1064da:	8b 5d 0c             	mov    0xc(%ebp),%ebx                 <== NOT EXECUTED
  if ( !print )                                                       
  1064dd:	85 db                	test   %ebx,%ebx                      <== NOT EXECUTED
  1064df:	74 4f                	je     106530 <rtems_stack_checker_report_usage_with_plugin+0x5e><== NOT EXECUTED
    return;                                                           
                                                                      
  print_context = context;                                            
  1064e1:	89 35 f0 3f 12 00    	mov    %esi,0x123ff0                  <== NOT EXECUTED
  print_handler = print;                                              
  1064e7:	89 1d f4 3f 12 00    	mov    %ebx,0x123ff4                  <== NOT EXECUTED
                                                                      
  (*print)( context, "Stack usage by thread\n");                      
  1064ed:	51                   	push   %ecx                           <== NOT EXECUTED
  1064ee:	51                   	push   %ecx                           <== NOT EXECUTED
  1064ef:	68 7e de 11 00       	push   $0x11de7e                      <== NOT EXECUTED
  1064f4:	56                   	push   %esi                           <== NOT EXECUTED
  1064f5:	ff d3                	call   *%ebx                          <== NOT EXECUTED
  (*print)( context,                                                  
  1064f7:	58                   	pop    %eax                           <== NOT EXECUTED
  1064f8:	5a                   	pop    %edx                           <== NOT EXECUTED
  1064f9:	68 95 de 11 00       	push   $0x11de95                      <== NOT EXECUTED
  1064fe:	56                   	push   %esi                           <== NOT EXECUTED
  1064ff:	ff d3                	call   *%ebx                          <== NOT EXECUTED
"    ID      NAME    LOW          HIGH     CURRENT     AVAILABLE     USED\n"
  );                                                                  
                                                                      
  /* iterate over all threads and dump the usage */                   
  rtems_iterate_over_all_threads( Stack_check_Dump_threads_usage );   
  106501:	c7 04 24 88 61 10 00 	movl   $0x106188,(%esp)               <== NOT EXECUTED
  106508:	e8 cf 45 00 00       	call   10aadc <rtems_iterate_over_all_threads><== NOT EXECUTED
                                                                      
  #if (CPU_ALLOCATE_INTERRUPT_STACK == TRUE)                          
    /* dump interrupt stack info if any */                            
    Stack_check_Dump_threads_usage((Thread_Control *) -1);            
  10650d:	c7 04 24 ff ff ff ff 	movl   $0xffffffff,(%esp)             <== NOT EXECUTED
  106514:	e8 6f fc ff ff       	call   106188 <Stack_check_Dump_threads_usage><== NOT EXECUTED
  #endif                                                              
                                                                      
  print_context = NULL;                                               
  106519:	c7 05 f0 3f 12 00 00 	movl   $0x0,0x123ff0                  <== NOT EXECUTED
  106520:	00 00 00                                                    
  print_handler = NULL;                                               
  106523:	c7 05 f4 3f 12 00 00 	movl   $0x0,0x123ff4                  <== NOT EXECUTED
  10652a:	00 00 00                                                    
  10652d:	83 c4 10             	add    $0x10,%esp                     <== NOT EXECUTED
}                                                                     
  106530:	8d 65 f8             	lea    -0x8(%ebp),%esp                <== NOT EXECUTED
  106533:	5b                   	pop    %ebx                           <== NOT EXECUTED
  106534:	5e                   	pop    %esi                           <== NOT EXECUTED
  106535:	c9                   	leave                                 <== NOT EXECUTED
  106536:	c3                   	ret                                   <== NOT EXECUTED
                                                                      

0010640f <rtems_stack_checker_switch_extension>: */ void rtems_stack_checker_switch_extension( Thread_Control *running __attribute__((unused)), Thread_Control *heir __attribute__((unused)) ) {
  10640f:	55                   	push   %ebp                           
  106410:	89 e5                	mov    %esp,%ebp                      
  106412:	53                   	push   %ebx                           
  106413:	83 ec 14             	sub    $0x14,%esp                     
  106416:	8b 5d 08             	mov    0x8(%ebp),%ebx                 
  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);                  
  106419:	8b 83 b8 00 00 00    	mov    0xb8(%ebx),%eax                
  10641f:	8d 48 08             	lea    0x8(%eax),%ecx                 
{                                                                     
  #if defined(__GNUC__)                                               
    void *sp = __builtin_frame_address(0);                            
                                                                      
    if ( sp < the_stack->area ) {                                     
      return false;                                                   
  106422:	31 d2                	xor    %edx,%edx                      
)                                                                     
{                                                                     
  #if defined(__GNUC__)                                               
    void *sp = __builtin_frame_address(0);                            
                                                                      
    if ( sp < the_stack->area ) {                                     
  106424:	39 c5                	cmp    %eax,%ebp                      
  106426:	72 0b                	jb     106433 <rtems_stack_checker_switch_extension+0x24><== NEVER TAKEN
      return false;                                                   
    }                                                                 
    if ( sp > (the_stack->area + the_stack->size) ) {                 
  106428:	03 83 b4 00 00 00    	add    0xb4(%ebx),%eax                
}                                                                     
                                                                      
/*                                                                    
 *  rtems_stack_checker_switch_extension                              
 */                                                                   
void rtems_stack_checker_switch_extension(                            
  10642e:	39 c5                	cmp    %eax,%ebp                      
  106430:	0f 96 c2             	setbe  %dl                            
  /*                                                                  
   *  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,                                     
  106433:	50                   	push   %eax                           
  106434:	6a 10                	push   $0x10                          
  106436:	68 10 43 12 00       	push   $0x124310                      
  10643b:	51                   	push   %ecx                           
  10643c:	88 55 f4             	mov    %dl,-0xc(%ebp)                 
  10643f:	e8 38 a6 00 00       	call   110a7c <memcmp>                
  106444:	83 c4 10             	add    $0x10,%esp                     
  106447:	85 c0                	test   %eax,%eax                      
  106449:	0f 94 c0             	sete   %al                            
            (void *) Stack_check_Pattern.pattern, PATTERN_SIZE_BYTES));
                                                                      
  if ( !sp_ok || !pattern_ok ) {                                      
  10644c:	8a 55 f4             	mov    -0xc(%ebp),%dl                 
  10644f:	84 d2                	test   %dl,%dl                        
  106451:	74 04                	je     106457 <rtems_stack_checker_switch_extension+0x48><== NEVER TAKEN
  106453:	84 c0                	test   %al,%al                        
  106455:	75 0c                	jne    106463 <rtems_stack_checker_switch_extension+0x54><== ALWAYS TAKEN
    Stack_check_report_blown_task( running, pattern_ok );             
  106457:	52                   	push   %edx                           <== NOT EXECUTED
  106458:	52                   	push   %edx                           <== NOT EXECUTED
  106459:	0f b6 c0             	movzbl %al,%eax                       <== NOT EXECUTED
  10645c:	50                   	push   %eax                           <== NOT EXECUTED
  10645d:	53                   	push   %ebx                           <== NOT EXECUTED
  10645e:	e8 f8 fe ff ff       	call   10635b <Stack_check_report_blown_task><== NOT EXECUTED
  }                                                                   
}                                                                     
  106463:	8b 5d fc             	mov    -0x4(%ebp),%ebx                
  106466:	c9                   	leave                                 
  106467:	c3                   	ret                                   
                                                                      

0010e3c0 <rtems_string_to_double>: rtems_status_code rtems_string_to_double ( const char *s, double *n, char **endptr ) {
  10e3c0:	55                   	push   %ebp                           
  10e3c1:	89 e5                	mov    %esp,%ebp                      
  10e3c3:	57                   	push   %edi                           
  10e3c4:	56                   	push   %esi                           
  10e3c5:	53                   	push   %ebx                           
  10e3c6:	83 ec 2c             	sub    $0x2c,%esp                     
  10e3c9:	8b 75 08             	mov    0x8(%ebp),%esi                 
  10e3cc:	8b 5d 0c             	mov    0xc(%ebp),%ebx                 
  10e3cf:	8b 7d 10             	mov    0x10(%ebp),%edi                
  double result;                                                      
  char *end;                                                          
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
  10e3d2:	ba 09 00 00 00       	mov    $0x9,%edx                      
)                                                                     
{                                                                     
  double result;                                                      
  char *end;                                                          
                                                                      
  if ( !n )                                                           
  10e3d7:	85 db                	test   %ebx,%ebx                      
  10e3d9:	0f 84 95 00 00 00    	je     10e474 <rtems_string_to_double+0xb4>
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  10e3df:	e8 98 23 00 00       	call   11077c <__errno>               
  10e3e4:	c7 00 00 00 00 00    	movl   $0x0,(%eax)                    
  *n = 0;                                                             
  10e3ea:	c7 03 00 00 00 00    	movl   $0x0,(%ebx)                    
  10e3f0:	c7 43 04 00 00 00 00 	movl   $0x0,0x4(%ebx)                 
                                                                      
  result = strtod( s, &end );                                         
  10e3f7:	50                   	push   %eax                           
  10e3f8:	50                   	push   %eax                           
  10e3f9:	8d 45 e4             	lea    -0x1c(%ebp),%eax               
  10e3fc:	50                   	push   %eax                           
  10e3fd:	56                   	push   %esi                           
  10e3fe:	e8 25 4e 00 00       	call   113228 <strtod>                
                                                                      
  if ( endptr )                                                       
  10e403:	83 c4 10             	add    $0x10,%esp                     
  10e406:	85 ff                	test   %edi,%edi                      
  10e408:	74 05                	je     10e40f <rtems_string_to_double+0x4f>
    *endptr = end;                                                    
  10e40a:	8b 45 e4             	mov    -0x1c(%ebp),%eax               
  10e40d:	89 07                	mov    %eax,(%edi)                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
  10e40f:	ba 0b 00 00 00       	mov    $0xb,%edx                      
  result = strtod( s, &end );                                         
                                                                      
  if ( endptr )                                                       
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
  10e414:	39 75 e4             	cmp    %esi,-0x1c(%ebp)               
  10e417:	74 4d                	je     10e466 <rtems_string_to_double+0xa6>
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
  10e419:	dd 5d c8             	fstpl  -0x38(%ebp)                    
  10e41c:	e8 5b 23 00 00       	call   11077c <__errno>               
  10e421:	83 38 22             	cmpl   $0x22,(%eax)                   
  10e424:	dd 45 c8             	fldl   -0x38(%ebp)                    
  10e427:	75 37                	jne    10e460 <rtems_string_to_double+0xa0>
  10e429:	d9 ee                	fldz                                  
  10e42b:	d9 c9                	fxch   %st(1)                         
  10e42d:	dd e1                	fucom  %st(1)                         
  10e42f:	df e0                	fnstsw %ax                            
  10e431:	dd d9                	fstp   %st(1)                         
  10e433:	9e                   	sahf                                  
  10e434:	7a 07                	jp     10e43d <rtems_string_to_double+0x7d><== NEVER TAKEN
    (( result == 0 ) || ( result == HUGE_VAL ) || ( result == -HUGE_VAL )))
      return RTEMS_INVALID_NUMBER;                                    
  10e436:	ba 0a 00 00 00       	mov    $0xa,%edx                      
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
  10e43b:	74 2d                	je     10e46a <rtems_string_to_double+0xaa><== NEVER TAKEN
    (( result == 0 ) || ( result == HUGE_VAL ) || ( result == -HUGE_VAL )))
      return RTEMS_INVALID_NUMBER;                                    
  10e43d:	ba 0a 00 00 00       	mov    $0xa,%edx                      
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
    (( result == 0 ) || ( result == HUGE_VAL ) || ( result == -HUGE_VAL )))
  10e442:	dd 05 40 25 12 00    	fldl   0x122540                       
  10e448:	d9 c9                	fxch   %st(1)                         
  10e44a:	dd e1                	fucom  %st(1)                         
  10e44c:	df e0                	fnstsw %ax                            
  10e44e:	dd d9                	fstp   %st(1)                         
  10e450:	9e                   	sahf                                  
  10e451:	77 1b                	ja     10e46e <rtems_string_to_double+0xae><== ALWAYS TAKEN
  10e453:	dd 05 48 25 12 00    	fldl   0x122548                       <== NOT EXECUTED
  10e459:	dd e9                	fucomp %st(1)                         <== NOT EXECUTED
  10e45b:	df e0                	fnstsw %ax                            <== NOT EXECUTED
  10e45d:	9e                   	sahf                                  <== NOT EXECUTED
  10e45e:	77 12                	ja     10e472 <rtems_string_to_double+0xb2><== NOT EXECUTED
      return RTEMS_INVALID_NUMBER;                                    
                                                                      
  *n = result;                                                        
  10e460:	dd 1b                	fstpl  (%ebx)                         
                                                                      
  return RTEMS_SUCCESSFUL;                                            
  10e462:	31 d2                	xor    %edx,%edx                      
  10e464:	eb 0e                	jmp    10e474 <rtems_string_to_double+0xb4>
  10e466:	dd d8                	fstp   %st(0)                         
  10e468:	eb 0a                	jmp    10e474 <rtems_string_to_double+0xb4>
  10e46a:	dd d8                	fstp   %st(0)                         <== NOT EXECUTED
  10e46c:	eb 06                	jmp    10e474 <rtems_string_to_double+0xb4><== NOT EXECUTED
  10e46e:	dd d8                	fstp   %st(0)                         
  10e470:	eb 02                	jmp    10e474 <rtems_string_to_double+0xb4>
  10e472:	dd d8                	fstp   %st(0)                         <== NOT EXECUTED
}                                                                     
  10e474:	89 d0                	mov    %edx,%eax                      
  10e476:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  10e479:	5b                   	pop    %ebx                           
  10e47a:	5e                   	pop    %esi                           
  10e47b:	5f                   	pop    %edi                           
  10e47c:	c9                   	leave                                 
  10e47d:	c3                   	ret                                   
                                                                      

0010e480 <rtems_string_to_float>: rtems_status_code rtems_string_to_float ( const char *s, float *n, char **endptr ) {
  10e480:	55                   	push   %ebp                           
  10e481:	89 e5                	mov    %esp,%ebp                      
  10e483:	57                   	push   %edi                           
  10e484:	56                   	push   %esi                           
  10e485:	53                   	push   %ebx                           
  10e486:	83 ec 2c             	sub    $0x2c,%esp                     
  10e489:	8b 75 08             	mov    0x8(%ebp),%esi                 
  10e48c:	8b 5d 0c             	mov    0xc(%ebp),%ebx                 
  10e48f:	8b 7d 10             	mov    0x10(%ebp),%edi                
  float result;                                                       
  char *end;                                                          
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
  10e492:	ba 09 00 00 00       	mov    $0x9,%edx                      
)                                                                     
{                                                                     
  float result;                                                       
  char *end;                                                          
                                                                      
  if ( !n )                                                           
  10e497:	85 db                	test   %ebx,%ebx                      
  10e499:	0f 84 8e 00 00 00    	je     10e52d <rtems_string_to_float+0xad>
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  10e49f:	e8 d8 22 00 00       	call   11077c <__errno>               
  10e4a4:	c7 00 00 00 00 00    	movl   $0x0,(%eax)                    
  *n = 0;                                                             
  10e4aa:	c7 03 00 00 00 00    	movl   $0x0,(%ebx)                    
                                                                      
  result = strtof( s, &end );                                         
  10e4b0:	50                   	push   %eax                           
  10e4b1:	50                   	push   %eax                           
  10e4b2:	8d 45 e4             	lea    -0x1c(%ebp),%eax               
  10e4b5:	50                   	push   %eax                           
  10e4b6:	56                   	push   %esi                           
  10e4b7:	e8 88 4d 00 00       	call   113244 <strtof>                
                                                                      
  if ( endptr )                                                       
  10e4bc:	83 c4 10             	add    $0x10,%esp                     
  10e4bf:	85 ff                	test   %edi,%edi                      
  10e4c1:	74 05                	je     10e4c8 <rtems_string_to_float+0x48>
    *endptr = end;                                                    
  10e4c3:	8b 45 e4             	mov    -0x1c(%ebp),%eax               
  10e4c6:	89 07                	mov    %eax,(%edi)                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
  10e4c8:	ba 0b 00 00 00       	mov    $0xb,%edx                      
  result = strtof( s, &end );                                         
                                                                      
  if ( endptr )                                                       
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
  10e4cd:	39 75 e4             	cmp    %esi,-0x1c(%ebp)               
  10e4d0:	74 4d                	je     10e51f <rtems_string_to_float+0x9f>
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
  10e4d2:	d9 5d c8             	fstps  -0x38(%ebp)                    
  10e4d5:	e8 a2 22 00 00       	call   11077c <__errno>               
  10e4da:	83 38 22             	cmpl   $0x22,(%eax)                   
  10e4dd:	d9 45 c8             	flds   -0x38(%ebp)                    
  10e4e0:	75 37                	jne    10e519 <rtems_string_to_float+0x99>
  10e4e2:	d9 ee                	fldz                                  
  10e4e4:	d9 c9                	fxch   %st(1)                         
  10e4e6:	dd e1                	fucom  %st(1)                         
  10e4e8:	df e0                	fnstsw %ax                            
  10e4ea:	dd d9                	fstp   %st(1)                         
  10e4ec:	9e                   	sahf                                  
  10e4ed:	7a 07                	jp     10e4f6 <rtems_string_to_float+0x76><== NEVER TAKEN
    (( result == 0 ) || ( result == HUGE_VALF ) || ( result == -HUGE_VALF )))
      return RTEMS_INVALID_NUMBER;                                    
  10e4ef:	ba 0a 00 00 00       	mov    $0xa,%edx                      
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
  10e4f4:	74 2d                	je     10e523 <rtems_string_to_float+0xa3><== NEVER TAKEN
    (( result == 0 ) || ( result == HUGE_VALF ) || ( result == -HUGE_VALF )))
      return RTEMS_INVALID_NUMBER;                                    
  10e4f6:	ba 0a 00 00 00       	mov    $0xa,%edx                      
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
    (( result == 0 ) || ( result == HUGE_VALF ) || ( result == -HUGE_VALF )))
  10e4fb:	d9 05 50 25 12 00    	flds   0x122550                       
  10e501:	d9 c9                	fxch   %st(1)                         
  10e503:	dd e1                	fucom  %st(1)                         
  10e505:	df e0                	fnstsw %ax                            
  10e507:	dd d9                	fstp   %st(1)                         
  10e509:	9e                   	sahf                                  
  10e50a:	77 1b                	ja     10e527 <rtems_string_to_float+0xa7><== ALWAYS TAKEN
  10e50c:	d9 05 54 25 12 00    	flds   0x122554                       <== NOT EXECUTED
  10e512:	dd e9                	fucomp %st(1)                         <== NOT EXECUTED
  10e514:	df e0                	fnstsw %ax                            <== NOT EXECUTED
  10e516:	9e                   	sahf                                  <== NOT EXECUTED
  10e517:	77 12                	ja     10e52b <rtems_string_to_float+0xab><== NOT EXECUTED
      return RTEMS_INVALID_NUMBER;                                    
                                                                      
  *n = result;                                                        
  10e519:	d9 1b                	fstps  (%ebx)                         
                                                                      
  return RTEMS_SUCCESSFUL;                                            
  10e51b:	31 d2                	xor    %edx,%edx                      
  10e51d:	eb 0e                	jmp    10e52d <rtems_string_to_float+0xad>
  10e51f:	dd d8                	fstp   %st(0)                         
  10e521:	eb 0a                	jmp    10e52d <rtems_string_to_float+0xad>
  10e523:	dd d8                	fstp   %st(0)                         <== NOT EXECUTED
  10e525:	eb 06                	jmp    10e52d <rtems_string_to_float+0xad><== NOT EXECUTED
  10e527:	dd d8                	fstp   %st(0)                         
  10e529:	eb 02                	jmp    10e52d <rtems_string_to_float+0xad>
  10e52b:	dd d8                	fstp   %st(0)                         <== NOT EXECUTED
}                                                                     
  10e52d:	89 d0                	mov    %edx,%eax                      
  10e52f:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  10e532:	5b                   	pop    %ebx                           
  10e533:	5e                   	pop    %esi                           
  10e534:	5f                   	pop    %edi                           
  10e535:	c9                   	leave                                 
  10e536:	c3                   	ret                                   
                                                                      

0010e538 <rtems_string_to_int>: const char *s, int *n, char **endptr, int base ) {
  10e538:	55                   	push   %ebp                           
  10e539:	89 e5                	mov    %esp,%ebp                      
  10e53b:	57                   	push   %edi                           
  10e53c:	56                   	push   %esi                           
  10e53d:	53                   	push   %ebx                           
  10e53e:	83 ec 2c             	sub    $0x2c,%esp                     
  10e541:	8b 7d 08             	mov    0x8(%ebp),%edi                 
  10e544:	8b 75 0c             	mov    0xc(%ebp),%esi                 
  10e547:	8b 55 10             	mov    0x10(%ebp),%edx                
  long result;                                                        
  char *end;                                                          
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
  10e54a:	b8 09 00 00 00       	mov    $0x9,%eax                      
)                                                                     
{                                                                     
  long result;                                                        
  char *end;                                                          
                                                                      
  if ( !n )                                                           
  10e54f:	85 f6                	test   %esi,%esi                      
  10e551:	74 6b                	je     10e5be <rtems_string_to_int+0x86>
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  10e553:	89 55 d4             	mov    %edx,-0x2c(%ebp)               
  10e556:	e8 21 22 00 00       	call   11077c <__errno>               
  10e55b:	c7 00 00 00 00 00    	movl   $0x0,(%eax)                    
  *n = 0;                                                             
  10e561:	c7 06 00 00 00 00    	movl   $0x0,(%esi)                    
                                                                      
  result = strtol( s, &end, base );                                   
  10e567:	50                   	push   %eax                           
  10e568:	ff 75 14             	pushl  0x14(%ebp)                     
  10e56b:	8d 45 e4             	lea    -0x1c(%ebp),%eax               
  10e56e:	50                   	push   %eax                           
  10e56f:	57                   	push   %edi                           
  10e570:	e8 8f 4e 00 00       	call   113404 <strtol>                
  10e575:	89 c3                	mov    %eax,%ebx                      
                                                                      
  if ( endptr )                                                       
  10e577:	83 c4 10             	add    $0x10,%esp                     
  10e57a:	8b 55 d4             	mov    -0x2c(%ebp),%edx               
  10e57d:	85 d2                	test   %edx,%edx                      
  10e57f:	74 05                	je     10e586 <rtems_string_to_int+0x4e>
    *endptr = end;                                                    
  10e581:	8b 45 e4             	mov    -0x1c(%ebp),%eax               
  10e584:	89 02                	mov    %eax,(%edx)                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
  10e586:	b8 0b 00 00 00       	mov    $0xb,%eax                      
  result = strtol( s, &end, base );                                   
                                                                      
  if ( endptr )                                                       
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
  10e58b:	39 7d e4             	cmp    %edi,-0x1c(%ebp)               
  10e58e:	74 2e                	je     10e5be <rtems_string_to_int+0x86>
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
  10e590:	e8 e7 21 00 00       	call   11077c <__errno>               
  10e595:	83 38 22             	cmpl   $0x22,(%eax)                   
  10e598:	75 19                	jne    10e5b3 <rtems_string_to_int+0x7b>
  10e59a:	81 fb ff ff ff 7f    	cmp    $0x7fffffff,%ebx               
  10e5a0:	74 17                	je     10e5b9 <rtems_string_to_int+0x81><== ALWAYS TAKEN
  10e5a2:	85 db                	test   %ebx,%ebx                      <== NOT EXECUTED
  10e5a4:	74 13                	je     10e5b9 <rtems_string_to_int+0x81><== NOT EXECUTED
    (( result == 0 ) || ( result == LONG_MAX ) || ( result == LONG_MIN )))
      return RTEMS_INVALID_NUMBER;                                    
  10e5a6:	b8 0a 00 00 00       	mov    $0xa,%eax                      <== NOT EXECUTED
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
    (( result == 0 ) || ( result == LONG_MAX ) || ( result == LONG_MIN )))
  10e5ab:	81 fb 00 00 00 80    	cmp    $0x80000000,%ebx               <== NOT EXECUTED
  10e5b1:	74 0b                	je     10e5be <rtems_string_to_int+0x86><== NOT EXECUTED
    errno = ERANGE;                                                   
    return RTEMS_INVALID_NUMBER;                                      
  }                                                                   
#endif                                                                
                                                                      
  *n = result;                                                        
  10e5b3:	89 1e                	mov    %ebx,(%esi)                    
                                                                      
  return RTEMS_SUCCESSFUL;                                            
  10e5b5:	31 c0                	xor    %eax,%eax                      
  10e5b7:	eb 05                	jmp    10e5be <rtems_string_to_int+0x86>
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
    (( result == 0 ) || ( result == LONG_MAX ) || ( result == LONG_MIN )))
      return RTEMS_INVALID_NUMBER;                                    
  10e5b9:	b8 0a 00 00 00       	mov    $0xa,%eax                      
#endif                                                                
                                                                      
  *n = result;                                                        
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
  10e5be:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  10e5c1:	5b                   	pop    %ebx                           
  10e5c2:	5e                   	pop    %esi                           
  10e5c3:	5f                   	pop    %edi                           
  10e5c4:	c9                   	leave                                 
  10e5c5:	c3                   	ret                                   
                                                                      

0010e674 <rtems_string_to_long>: const char *s, long *n, char **endptr, int base ) {
  10e674:	55                   	push   %ebp                           
  10e675:	89 e5                	mov    %esp,%ebp                      
  10e677:	57                   	push   %edi                           
  10e678:	56                   	push   %esi                           
  10e679:	53                   	push   %ebx                           
  10e67a:	83 ec 2c             	sub    $0x2c,%esp                     
  10e67d:	8b 7d 08             	mov    0x8(%ebp),%edi                 
  10e680:	8b 75 0c             	mov    0xc(%ebp),%esi                 
  10e683:	8b 55 10             	mov    0x10(%ebp),%edx                
  long result;                                                        
  char *end;                                                          
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
  10e686:	b8 09 00 00 00       	mov    $0x9,%eax                      
)                                                                     
{                                                                     
  long result;                                                        
  char *end;                                                          
                                                                      
  if ( !n )                                                           
  10e68b:	85 f6                	test   %esi,%esi                      
  10e68d:	74 6b                	je     10e6fa <rtems_string_to_long+0x86>
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  10e68f:	89 55 d4             	mov    %edx,-0x2c(%ebp)               
  10e692:	e8 e5 20 00 00       	call   11077c <__errno>               
  10e697:	c7 00 00 00 00 00    	movl   $0x0,(%eax)                    
  *n = 0;                                                             
  10e69d:	c7 06 00 00 00 00    	movl   $0x0,(%esi)                    
                                                                      
  result = strtol( s, &end, base );                                   
  10e6a3:	50                   	push   %eax                           
  10e6a4:	ff 75 14             	pushl  0x14(%ebp)                     
  10e6a7:	8d 45 e4             	lea    -0x1c(%ebp),%eax               
  10e6aa:	50                   	push   %eax                           
  10e6ab:	57                   	push   %edi                           
  10e6ac:	e8 53 4d 00 00       	call   113404 <strtol>                
  10e6b1:	89 c3                	mov    %eax,%ebx                      
                                                                      
  if ( endptr )                                                       
  10e6b3:	83 c4 10             	add    $0x10,%esp                     
  10e6b6:	8b 55 d4             	mov    -0x2c(%ebp),%edx               
  10e6b9:	85 d2                	test   %edx,%edx                      
  10e6bb:	74 05                	je     10e6c2 <rtems_string_to_long+0x4e>
    *endptr = end;                                                    
  10e6bd:	8b 45 e4             	mov    -0x1c(%ebp),%eax               
  10e6c0:	89 02                	mov    %eax,(%edx)                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
  10e6c2:	b8 0b 00 00 00       	mov    $0xb,%eax                      
  result = strtol( s, &end, base );                                   
                                                                      
  if ( endptr )                                                       
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
  10e6c7:	39 7d e4             	cmp    %edi,-0x1c(%ebp)               
  10e6ca:	74 2e                	je     10e6fa <rtems_string_to_long+0x86>
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
  10e6cc:	e8 ab 20 00 00       	call   11077c <__errno>               
  10e6d1:	83 38 22             	cmpl   $0x22,(%eax)                   
  10e6d4:	75 19                	jne    10e6ef <rtems_string_to_long+0x7b>
  10e6d6:	81 fb ff ff ff 7f    	cmp    $0x7fffffff,%ebx               
  10e6dc:	74 17                	je     10e6f5 <rtems_string_to_long+0x81>
  10e6de:	85 db                	test   %ebx,%ebx                      
  10e6e0:	74 13                	je     10e6f5 <rtems_string_to_long+0x81><== NEVER TAKEN
    (( result == 0 ) || ( result == LONG_MAX ) || ( result == LONG_MIN )))
      return RTEMS_INVALID_NUMBER;                                    
  10e6e2:	b8 0a 00 00 00       	mov    $0xa,%eax                      
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
    (( result == 0 ) || ( result == LONG_MAX ) || ( result == LONG_MIN )))
  10e6e7:	81 fb 00 00 00 80    	cmp    $0x80000000,%ebx               
  10e6ed:	74 0b                	je     10e6fa <rtems_string_to_long+0x86><== ALWAYS TAKEN
      return RTEMS_INVALID_NUMBER;                                    
                                                                      
  *n = result;                                                        
  10e6ef:	89 1e                	mov    %ebx,(%esi)                    
                                                                      
  return RTEMS_SUCCESSFUL;                                            
  10e6f1:	31 c0                	xor    %eax,%eax                      
  10e6f3:	eb 05                	jmp    10e6fa <rtems_string_to_long+0x86>
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
    (( result == 0 ) || ( result == LONG_MAX ) || ( result == LONG_MIN )))
      return RTEMS_INVALID_NUMBER;                                    
  10e6f5:	b8 0a 00 00 00       	mov    $0xa,%eax                      
                                                                      
  *n = result;                                                        
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
  10e6fa:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  10e6fd:	5b                   	pop    %ebx                           
  10e6fe:	5e                   	pop    %esi                           
  10e6ff:	5f                   	pop    %edi                           
  10e700:	c9                   	leave                                 
  10e701:	c3                   	ret                                   
                                                                      

0010e5c8 <rtems_string_to_long_long>: const char *s, long long *n, char **endptr, int base ) {
  10e5c8:	55                   	push   %ebp                           
  10e5c9:	89 e5                	mov    %esp,%ebp                      
  10e5cb:	57                   	push   %edi                           
  10e5cc:	56                   	push   %esi                           
  10e5cd:	53                   	push   %ebx                           
  10e5ce:	83 ec 2c             	sub    $0x2c,%esp                     
  10e5d1:	8b 5d 0c             	mov    0xc(%ebp),%ebx                 
  10e5d4:	8b 7d 10             	mov    0x10(%ebp),%edi                
  long long result;                                                   
  char *end;                                                          
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
  10e5d7:	b8 09 00 00 00       	mov    $0x9,%eax                      
)                                                                     
{                                                                     
  long long result;                                                   
  char *end;                                                          
                                                                      
  if ( !n )                                                           
  10e5dc:	85 db                	test   %ebx,%ebx                      
  10e5de:	0f 84 85 00 00 00    	je     10e669 <rtems_string_to_long_long+0xa1>
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  10e5e4:	e8 93 21 00 00       	call   11077c <__errno>               
  10e5e9:	c7 00 00 00 00 00    	movl   $0x0,(%eax)                    
  *n = 0;                                                             
  10e5ef:	c7 03 00 00 00 00    	movl   $0x0,(%ebx)                    
  10e5f5:	c7 43 04 00 00 00 00 	movl   $0x0,0x4(%ebx)                 
                                                                      
  result = strtoll( s, &end, base );                                  
  10e5fc:	50                   	push   %eax                           
  10e5fd:	ff 75 14             	pushl  0x14(%ebp)                     
  10e600:	8d 45 e4             	lea    -0x1c(%ebp),%eax               
  10e603:	50                   	push   %eax                           
  10e604:	ff 75 08             	pushl  0x8(%ebp)                      
  10e607:	e8 14 4e 00 00       	call   113420 <strtoll>               
  10e60c:	89 c6                	mov    %eax,%esi                      
                                                                      
  if ( endptr )                                                       
  10e60e:	83 c4 10             	add    $0x10,%esp                     
  10e611:	85 ff                	test   %edi,%edi                      
  10e613:	74 05                	je     10e61a <rtems_string_to_long_long+0x52>
    *endptr = end;                                                    
  10e615:	8b 45 e4             	mov    -0x1c(%ebp),%eax               
  10e618:	89 07                	mov    %eax,(%edi)                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
  10e61a:	b8 0b 00 00 00       	mov    $0xb,%eax                      
  result = strtoll( s, &end, base );                                  
                                                                      
  if ( endptr )                                                       
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
  10e61f:	8b 4d 08             	mov    0x8(%ebp),%ecx                 
  10e622:	39 4d e4             	cmp    %ecx,-0x1c(%ebp)               
  10e625:	74 42                	je     10e669 <rtems_string_to_long_long+0xa1>
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
  10e627:	89 55 d4             	mov    %edx,-0x2c(%ebp)               
  10e62a:	e8 4d 21 00 00       	call   11077c <__errno>               
  10e62f:	83 38 22             	cmpl   $0x22,(%eax)                   
  10e632:	8b 55 d4             	mov    -0x2c(%ebp),%edx               
  10e635:	75 24                	jne    10e65b <rtems_string_to_long_long+0x93>
    (( result == 0 ) || ( result == LONG_LONG_MAX ) || ( result == LONG_LONG_MIN )))
  10e637:	89 f1                	mov    %esi,%ecx                      
  10e639:	f7 d1                	not    %ecx                           
  10e63b:	89 d0                	mov    %edx,%eax                      
  10e63d:	35 ff ff ff 7f       	xor    $0x7fffffff,%eax               
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
  10e642:	09 c1                	or     %eax,%ecx                      
  10e644:	74 1e                	je     10e664 <rtems_string_to_long_long+0x9c>
  10e646:	89 f0                	mov    %esi,%eax                      
  10e648:	09 d0                	or     %edx,%eax                      
  10e64a:	74 18                	je     10e664 <rtems_string_to_long_long+0x9c><== NEVER TAKEN
    (( result == 0 ) || ( result == LONG_LONG_MAX ) || ( result == LONG_LONG_MIN )))
  10e64c:	8d 8a 00 00 00 80    	lea    -0x80000000(%edx),%ecx         
      return RTEMS_INVALID_NUMBER;                                    
  10e652:	b8 0a 00 00 00       	mov    $0xa,%eax                      
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
    (( result == 0 ) || ( result == LONG_LONG_MAX ) || ( result == LONG_LONG_MIN )))
  10e657:	09 f1                	or     %esi,%ecx                      
  10e659:	74 0e                	je     10e669 <rtems_string_to_long_long+0xa1><== ALWAYS TAKEN
      return RTEMS_INVALID_NUMBER;                                    
                                                                      
  *n = result;                                                        
  10e65b:	89 33                	mov    %esi,(%ebx)                    
  10e65d:	89 53 04             	mov    %edx,0x4(%ebx)                 
                                                                      
  return RTEMS_SUCCESSFUL;                                            
  10e660:	31 c0                	xor    %eax,%eax                      
  10e662:	eb 05                	jmp    10e669 <rtems_string_to_long_long+0xa1>
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
    (( result == 0 ) || ( result == LONG_LONG_MAX ) || ( result == LONG_LONG_MIN )))
      return RTEMS_INVALID_NUMBER;                                    
  10e664:	b8 0a 00 00 00       	mov    $0xa,%eax                      
                                                                      
  *n = result;                                                        
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
  10e669:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  10e66c:	5b                   	pop    %ebx                           
  10e66d:	5e                   	pop    %esi                           
  10e66e:	5f                   	pop    %edi                           
  10e66f:	c9                   	leave                                 
  10e670:	c3                   	ret                                   
                                                                      

0010e71c <rtems_string_to_unsigned_char>: const char *s, unsigned char *n, char **endptr, int base ) {
  10e71c:	55                   	push   %ebp                           
  10e71d:	89 e5                	mov    %esp,%ebp                      
  10e71f:	57                   	push   %edi                           
  10e720:	56                   	push   %esi                           
  10e721:	53                   	push   %ebx                           
  10e722:	83 ec 2c             	sub    $0x2c,%esp                     
  10e725:	8b 7d 08             	mov    0x8(%ebp),%edi                 
  10e728:	8b 5d 0c             	mov    0xc(%ebp),%ebx                 
  10e72b:	8b 55 10             	mov    0x10(%ebp),%edx                
  unsigned long result;                                               
  char *end;                                                          
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
  10e72e:	b8 09 00 00 00       	mov    $0x9,%eax                      
)                                                                     
{                                                                     
  unsigned long result;                                               
  char *end;                                                          
                                                                      
  if ( !n )                                                           
  10e733:	85 db                	test   %ebx,%ebx                      
  10e735:	74 71                	je     10e7a8 <rtems_string_to_unsigned_char+0x8c>
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  10e737:	89 55 d4             	mov    %edx,-0x2c(%ebp)               
  10e73a:	e8 3d 20 00 00       	call   11077c <__errno>               
  10e73f:	c7 00 00 00 00 00    	movl   $0x0,(%eax)                    
  *n = 0;                                                             
  10e745:	c6 03 00             	movb   $0x0,(%ebx)                    
                                                                      
  result = strtoul( s, &end, base );                                  
  10e748:	50                   	push   %eax                           
  10e749:	ff 75 14             	pushl  0x14(%ebp)                     
  10e74c:	8d 45 e4             	lea    -0x1c(%ebp),%eax               
  10e74f:	50                   	push   %eax                           
  10e750:	57                   	push   %edi                           
  10e751:	e8 6a 51 00 00       	call   1138c0 <strtoul>               
  10e756:	89 c6                	mov    %eax,%esi                      
                                                                      
  if ( endptr )                                                       
  10e758:	83 c4 10             	add    $0x10,%esp                     
  10e75b:	8b 55 d4             	mov    -0x2c(%ebp),%edx               
  10e75e:	85 d2                	test   %edx,%edx                      
  10e760:	74 05                	je     10e767 <rtems_string_to_unsigned_char+0x4b>
    *endptr = end;                                                    
  10e762:	8b 45 e4             	mov    -0x1c(%ebp),%eax               
  10e765:	89 02                	mov    %eax,(%edx)                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
  10e767:	b8 0b 00 00 00       	mov    $0xb,%eax                      
  result = strtoul( s, &end, base );                                  
                                                                      
  if ( endptr )                                                       
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
  10e76c:	39 7d e4             	cmp    %edi,-0x1c(%ebp)               
  10e76f:	74 37                	je     10e7a8 <rtems_string_to_unsigned_char+0x8c>
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
  10e771:	e8 06 20 00 00       	call   11077c <__errno>               
  10e776:	83 38 22             	cmpl   $0x22,(%eax)                   
  10e779:	75 0d                	jne    10e788 <rtems_string_to_unsigned_char+0x6c><== ALWAYS TAKEN
    (( result == 0 ) || ( result == ULONG_MAX )))                     
  10e77b:	8d 56 ff             	lea    -0x1(%esi),%edx                <== NOT EXECUTED
      return RTEMS_INVALID_NUMBER;                                    
  10e77e:	b8 0a 00 00 00       	mov    $0xa,%eax                      <== NOT EXECUTED
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
  10e783:	83 fa fd             	cmp    $0xfffffffd,%edx               <== NOT EXECUTED
  10e786:	77 20                	ja     10e7a8 <rtems_string_to_unsigned_char+0x8c><== NOT EXECUTED
    (( result == 0 ) || ( result == ULONG_MAX )))                     
      return RTEMS_INVALID_NUMBER;                                    
                                                                      
#if (UCHAR_MAX < ULONG_MAX)                                           
  if ( result > UCHAR_MAX ) {                                         
  10e788:	81 fe ff 00 00 00    	cmp    $0xff,%esi                     
  10e78e:	76 12                	jbe    10e7a2 <rtems_string_to_unsigned_char+0x86><== ALWAYS TAKEN
    errno = ERANGE;                                                   
  10e790:	e8 e7 1f 00 00       	call   11077c <__errno>               <== NOT EXECUTED
  10e795:	c7 00 22 00 00 00    	movl   $0x22,(%eax)                   <== NOT EXECUTED
    return RTEMS_INVALID_NUMBER;                                      
  10e79b:	b8 0a 00 00 00       	mov    $0xa,%eax                      <== NOT EXECUTED
  10e7a0:	eb 06                	jmp    10e7a8 <rtems_string_to_unsigned_char+0x8c><== NOT EXECUTED
  }                                                                   
#endif                                                                
                                                                      
  *n = result;                                                        
  10e7a2:	89 f0                	mov    %esi,%eax                      
  10e7a4:	88 03                	mov    %al,(%ebx)                     
                                                                      
  return RTEMS_SUCCESSFUL;                                            
  10e7a6:	31 c0                	xor    %eax,%eax                      
}                                                                     
  10e7a8:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  10e7ab:	5b                   	pop    %ebx                           
  10e7ac:	5e                   	pop    %esi                           
  10e7ad:	5f                   	pop    %edi                           
  10e7ae:	c9                   	leave                                 
  10e7af:	c3                   	ret                                   
                                                                      

0010e7b0 <rtems_string_to_unsigned_int>: const char *s, unsigned int *n, char **endptr, int base ) {
  10e7b0:	55                   	push   %ebp                           
  10e7b1:	89 e5                	mov    %esp,%ebp                      
  10e7b3:	57                   	push   %edi                           
  10e7b4:	56                   	push   %esi                           
  10e7b5:	53                   	push   %ebx                           
  10e7b6:	83 ec 2c             	sub    $0x2c,%esp                     
  10e7b9:	8b 7d 08             	mov    0x8(%ebp),%edi                 
  10e7bc:	8b 5d 0c             	mov    0xc(%ebp),%ebx                 
  10e7bf:	8b 55 10             	mov    0x10(%ebp),%edx                
  unsigned long result;                                               
  char *end;                                                          
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
  10e7c2:	b8 09 00 00 00       	mov    $0x9,%eax                      
)                                                                     
{                                                                     
  unsigned long result;                                               
  char *end;                                                          
                                                                      
  if ( !n )                                                           
  10e7c7:	85 db                	test   %ebx,%ebx                      
  10e7c9:	74 58                	je     10e823 <rtems_string_to_unsigned_int+0x73>
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  10e7cb:	89 55 d4             	mov    %edx,-0x2c(%ebp)               
  10e7ce:	e8 a9 1f 00 00       	call   11077c <__errno>               
  10e7d3:	c7 00 00 00 00 00    	movl   $0x0,(%eax)                    
  *n = 0;                                                             
  10e7d9:	c7 03 00 00 00 00    	movl   $0x0,(%ebx)                    
                                                                      
  result = strtoul( s, &end, base );                                  
  10e7df:	50                   	push   %eax                           
  10e7e0:	ff 75 14             	pushl  0x14(%ebp)                     
  10e7e3:	8d 45 e4             	lea    -0x1c(%ebp),%eax               
  10e7e6:	50                   	push   %eax                           
  10e7e7:	57                   	push   %edi                           
  10e7e8:	e8 d3 50 00 00       	call   1138c0 <strtoul>               
  10e7ed:	89 c6                	mov    %eax,%esi                      
                                                                      
  if ( endptr )                                                       
  10e7ef:	83 c4 10             	add    $0x10,%esp                     
  10e7f2:	8b 55 d4             	mov    -0x2c(%ebp),%edx               
  10e7f5:	85 d2                	test   %edx,%edx                      
  10e7f7:	74 05                	je     10e7fe <rtems_string_to_unsigned_int+0x4e>
    *endptr = end;                                                    
  10e7f9:	8b 45 e4             	mov    -0x1c(%ebp),%eax               
  10e7fc:	89 02                	mov    %eax,(%edx)                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
  10e7fe:	b8 0b 00 00 00       	mov    $0xb,%eax                      
  result = strtoul( s, &end, base );                                  
                                                                      
  if ( endptr )                                                       
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
  10e803:	39 7d e4             	cmp    %edi,-0x1c(%ebp)               
  10e806:	74 1b                	je     10e823 <rtems_string_to_unsigned_int+0x73>
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
  10e808:	e8 6f 1f 00 00       	call   11077c <__errno>               
  10e80d:	83 38 22             	cmpl   $0x22,(%eax)                   
  10e810:	75 0d                	jne    10e81f <rtems_string_to_unsigned_int+0x6f>
    (( result == 0 ) || ( result == ULONG_MAX )))                     
  10e812:	8d 56 ff             	lea    -0x1(%esi),%edx                
      return RTEMS_INVALID_NUMBER;                                    
  10e815:	b8 0a 00 00 00       	mov    $0xa,%eax                      
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
  10e81a:	83 fa fd             	cmp    $0xfffffffd,%edx               
  10e81d:	77 04                	ja     10e823 <rtems_string_to_unsigned_int+0x73><== ALWAYS TAKEN
    errno = ERANGE;                                                   
    return RTEMS_INVALID_NUMBER;                                      
  }                                                                   
#endif                                                                
                                                                      
  *n = result;                                                        
  10e81f:	89 33                	mov    %esi,(%ebx)                    
                                                                      
  return RTEMS_SUCCESSFUL;                                            
  10e821:	31 c0                	xor    %eax,%eax                      
}                                                                     
  10e823:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  10e826:	5b                   	pop    %ebx                           
  10e827:	5e                   	pop    %esi                           
  10e828:	5f                   	pop    %edi                           
  10e829:	c9                   	leave                                 
  10e82a:	c3                   	ret                                   
                                                                      

0010e8c8 <rtems_string_to_unsigned_long>: const char *s, unsigned long *n, char **endptr, int base ) {
  10e8c8:	55                   	push   %ebp                           
  10e8c9:	89 e5                	mov    %esp,%ebp                      
  10e8cb:	57                   	push   %edi                           
  10e8cc:	56                   	push   %esi                           
  10e8cd:	53                   	push   %ebx                           
  10e8ce:	83 ec 2c             	sub    $0x2c,%esp                     
  10e8d1:	8b 7d 08             	mov    0x8(%ebp),%edi                 
  10e8d4:	8b 5d 0c             	mov    0xc(%ebp),%ebx                 
  10e8d7:	8b 55 10             	mov    0x10(%ebp),%edx                
  unsigned long result;                                               
  char *end;                                                          
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
  10e8da:	b8 09 00 00 00       	mov    $0x9,%eax                      
)                                                                     
{                                                                     
  unsigned long result;                                               
  char *end;                                                          
                                                                      
  if ( !n )                                                           
  10e8df:	85 db                	test   %ebx,%ebx                      
  10e8e1:	74 58                	je     10e93b <rtems_string_to_unsigned_long+0x73>
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  10e8e3:	89 55 d4             	mov    %edx,-0x2c(%ebp)               
  10e8e6:	e8 91 1e 00 00       	call   11077c <__errno>               
  10e8eb:	c7 00 00 00 00 00    	movl   $0x0,(%eax)                    
  *n = 0;                                                             
  10e8f1:	c7 03 00 00 00 00    	movl   $0x0,(%ebx)                    
                                                                      
  result = strtoul( s, &end, base );                                  
  10e8f7:	50                   	push   %eax                           
  10e8f8:	ff 75 14             	pushl  0x14(%ebp)                     
  10e8fb:	8d 45 e4             	lea    -0x1c(%ebp),%eax               
  10e8fe:	50                   	push   %eax                           
  10e8ff:	57                   	push   %edi                           
  10e900:	e8 bb 4f 00 00       	call   1138c0 <strtoul>               
  10e905:	89 c6                	mov    %eax,%esi                      
                                                                      
  if ( endptr )                                                       
  10e907:	83 c4 10             	add    $0x10,%esp                     
  10e90a:	8b 55 d4             	mov    -0x2c(%ebp),%edx               
  10e90d:	85 d2                	test   %edx,%edx                      
  10e90f:	74 05                	je     10e916 <rtems_string_to_unsigned_long+0x4e>
    *endptr = end;                                                    
  10e911:	8b 45 e4             	mov    -0x1c(%ebp),%eax               
  10e914:	89 02                	mov    %eax,(%edx)                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
  10e916:	b8 0b 00 00 00       	mov    $0xb,%eax                      
  result = strtoul( s, &end, base );                                  
                                                                      
  if ( endptr )                                                       
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
  10e91b:	39 7d e4             	cmp    %edi,-0x1c(%ebp)               
  10e91e:	74 1b                	je     10e93b <rtems_string_to_unsigned_long+0x73>
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
  10e920:	e8 57 1e 00 00       	call   11077c <__errno>               
  10e925:	83 38 22             	cmpl   $0x22,(%eax)                   
  10e928:	75 0d                	jne    10e937 <rtems_string_to_unsigned_long+0x6f>
    (( result == 0 ) || ( result == ULONG_MAX )))                     
  10e92a:	8d 56 ff             	lea    -0x1(%esi),%edx                
      return RTEMS_INVALID_NUMBER;                                    
  10e92d:	b8 0a 00 00 00       	mov    $0xa,%eax                      
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
  10e932:	83 fa fd             	cmp    $0xfffffffd,%edx               
  10e935:	77 04                	ja     10e93b <rtems_string_to_unsigned_long+0x73><== ALWAYS TAKEN
    (( result == 0 ) || ( result == ULONG_MAX )))                     
      return RTEMS_INVALID_NUMBER;                                    
                                                                      
  *n = result;                                                        
  10e937:	89 33                	mov    %esi,(%ebx)                    
                                                                      
  return RTEMS_SUCCESSFUL;                                            
  10e939:	31 c0                	xor    %eax,%eax                      
}                                                                     
  10e93b:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  10e93e:	5b                   	pop    %ebx                           
  10e93f:	5e                   	pop    %esi                           
  10e940:	5f                   	pop    %edi                           
  10e941:	c9                   	leave                                 
  10e942:	c3                   	ret                                   
                                                                      

0010e82c <rtems_string_to_unsigned_long_long>: const char *s, unsigned long long *n, char **endptr, int base ) {
  10e82c:	55                   	push   %ebp                           
  10e82d:	89 e5                	mov    %esp,%ebp                      
  10e82f:	57                   	push   %edi                           
  10e830:	56                   	push   %esi                           
  10e831:	53                   	push   %ebx                           
  10e832:	83 ec 2c             	sub    $0x2c,%esp                     
  10e835:	8b 7d 08             	mov    0x8(%ebp),%edi                 
  10e838:	8b 5d 0c             	mov    0xc(%ebp),%ebx                 
  10e83b:	8b 75 10             	mov    0x10(%ebp),%esi                
  unsigned long long result;                                          
  char *end;                                                          
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
  10e83e:	b8 09 00 00 00       	mov    $0x9,%eax                      
)                                                                     
{                                                                     
  unsigned long long result;                                          
  char *end;                                                          
                                                                      
  if ( !n )                                                           
  10e843:	85 db                	test   %ebx,%ebx                      
  10e845:	74 76                	je     10e8bd <rtems_string_to_unsigned_long_long+0x91>
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  10e847:	e8 30 1f 00 00       	call   11077c <__errno>               
  10e84c:	c7 00 00 00 00 00    	movl   $0x0,(%eax)                    
  *n = 0;                                                             
  10e852:	c7 03 00 00 00 00    	movl   $0x0,(%ebx)                    
  10e858:	c7 43 04 00 00 00 00 	movl   $0x0,0x4(%ebx)                 
                                                                      
  result = strtoull( s, &end, base );                                 
  10e85f:	50                   	push   %eax                           
  10e860:	ff 75 14             	pushl  0x14(%ebp)                     
  10e863:	8d 45 e4             	lea    -0x1c(%ebp),%eax               
  10e866:	50                   	push   %eax                           
  10e867:	57                   	push   %edi                           
  10e868:	e8 6f 50 00 00       	call   1138dc <strtoull>              
  10e86d:	89 d1                	mov    %edx,%ecx                      
  10e86f:	89 c2                	mov    %eax,%edx                      
                                                                      
  if ( endptr )                                                       
  10e871:	83 c4 10             	add    $0x10,%esp                     
  10e874:	85 f6                	test   %esi,%esi                      
  10e876:	74 05                	je     10e87d <rtems_string_to_unsigned_long_long+0x51>
    *endptr = end;                                                    
  10e878:	8b 45 e4             	mov    -0x1c(%ebp),%eax               
  10e87b:	89 06                	mov    %eax,(%esi)                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
  10e87d:	b8 0b 00 00 00       	mov    $0xb,%eax                      
  result = strtoull( s, &end, base );                                 
                                                                      
  if ( endptr )                                                       
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
  10e882:	39 7d e4             	cmp    %edi,-0x1c(%ebp)               
  10e885:	74 36                	je     10e8bd <rtems_string_to_unsigned_long_long+0x91>
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
  10e887:	89 55 d4             	mov    %edx,-0x2c(%ebp)               
  10e88a:	89 4d d0             	mov    %ecx,-0x30(%ebp)               
  10e88d:	e8 ea 1e 00 00       	call   11077c <__errno>               
  10e892:	83 38 22             	cmpl   $0x22,(%eax)                   
  10e895:	8b 55 d4             	mov    -0x2c(%ebp),%edx               
  10e898:	8b 4d d0             	mov    -0x30(%ebp),%ecx               
  10e89b:	75 19                	jne    10e8b6 <rtems_string_to_unsigned_long_long+0x8a>
    (( result == 0 ) || ( result == ULONG_LONG_MAX )))                
  10e89d:	89 d6                	mov    %edx,%esi                      
  10e89f:	89 cf                	mov    %ecx,%edi                      
  10e8a1:	83 c6 ff             	add    $0xffffffff,%esi               
  10e8a4:	83 d7 ff             	adc    $0xffffffff,%edi               
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
  10e8a7:	83 ff ff             	cmp    $0xffffffff,%edi               
  10e8aa:	72 0a                	jb     10e8b6 <rtems_string_to_unsigned_long_long+0x8a><== NEVER TAKEN
    (( result == 0 ) || ( result == ULONG_LONG_MAX )))                
      return RTEMS_INVALID_NUMBER;                                    
  10e8ac:	b8 0a 00 00 00       	mov    $0xa,%eax                      
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
  10e8b1:	83 fe fd             	cmp    $0xfffffffd,%esi               
  10e8b4:	77 07                	ja     10e8bd <rtems_string_to_unsigned_long_long+0x91><== ALWAYS TAKEN
    (( result == 0 ) || ( result == ULONG_LONG_MAX )))                
      return RTEMS_INVALID_NUMBER;                                    
                                                                      
  *n = result;                                                        
  10e8b6:	89 13                	mov    %edx,(%ebx)                    
  10e8b8:	89 4b 04             	mov    %ecx,0x4(%ebx)                 
                                                                      
  return RTEMS_SUCCESSFUL;                                            
  10e8bb:	31 c0                	xor    %eax,%eax                      
}                                                                     
  10e8bd:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  10e8c0:	5b                   	pop    %ebx                           
  10e8c1:	5e                   	pop    %esi                           
  10e8c2:	5f                   	pop    %edi                           
  10e8c3:	c9                   	leave                                 
  10e8c4:	c3                   	ret                                   
                                                                      

001066cc <rtems_tarfs_load>: int rtems_tarfs_load( char *mountpoint, uint8_t *tar_image, size_t tar_size ) {
  1066cc:	55                   	push   %ebp                           
  1066cd:	89 e5                	mov    %esp,%ebp                      
  1066cf:	57                   	push   %edi                           
  1066d0:	56                   	push   %esi                           
  1066d1:	53                   	push   %ebx                           
  1066d2:	81 ec d8 01 00 00    	sub    $0x1d8,%esp                    
   int                              offset;                           
   unsigned long                    nblocks;                          
   IMFS_jnode_t                    *node;                             
   int                              status;                           
                                                                      
   status = rtems_filesystem_evaluate_path(                           
  1066d8:	31 c0                	xor    %eax,%eax                      
  1066da:	83 c9 ff             	or     $0xffffffff,%ecx               
  1066dd:	8b 7d 08             	mov    0x8(%ebp),%edi                 
  1066e0:	f2 ae                	repnz scas %es:(%edi),%al             
  1066e2:	f7 d1                	not    %ecx                           
  1066e4:	49                   	dec    %ecx                           
  1066e5:	6a 00                	push   $0x0                           
  1066e7:	8d 45 d0             	lea    -0x30(%ebp),%eax               
  1066ea:	50                   	push   %eax                           
  1066eb:	6a 00                	push   $0x0                           
  1066ed:	51                   	push   %ecx                           
  1066ee:	ff 75 08             	pushl  0x8(%ebp)                      
  1066f1:	e8 d4 09 00 00       	call   1070ca <rtems_filesystem_evaluate_path>
  1066f6:	89 85 54 fe ff ff    	mov    %eax,-0x1ac(%ebp)              
      strlen(mountpoint),                                             
      0,                                                              
      &root_loc,                                                      
      0                                                               
   );                                                                 
   if (status != 0)                                                   
  1066fc:	83 c4 20             	add    $0x20,%esp                     
  1066ff:	85 c0                	test   %eax,%eax                      
  106701:	0f 85 d9 01 00 00    	jne    1068e0 <rtems_tarfs_load+0x214>
     return -1;                                                       
                                                                      
   if (root_loc.ops != &IMFS_ops && root_loc.ops != &fifoIMFS_ops)    
  106707:	8b 45 dc             	mov    -0x24(%ebp),%eax               
  10670a:	31 f6                	xor    %esi,%esi                      
  10670c:	3d c4 2b 12 00       	cmp    $0x122bc4,%eax                 
  106711:	74 1b                	je     10672e <rtems_tarfs_load+0x62> 
  106713:	3d a8 35 12 00       	cmp    $0x1235a8,%eax                 
  106718:	0f 85 c2 01 00 00    	jne    1068e0 <rtems_tarfs_load+0x214><== ALWAYS TAKEN
  10671e:	8b b5 54 fe ff ff    	mov    -0x1ac(%ebp),%esi              <== NOT EXECUTED
  106724:	eb 08                	jmp    10672e <rtems_tarfs_load+0x62> <== NOT EXECUTED
  106726:	8b b5 50 fe ff ff    	mov    -0x1b0(%ebp),%esi              
  10672c:	eb 18                	jmp    106746 <rtems_tarfs_load+0x7a> 
     *        should not have this path.                              
     */                                                               
    else if (linkflag == REGTYPE) {                                   
      const char  *name;                                              
                                                                      
      loc = root_loc;                                                 
  10672e:	8d 45 bc             	lea    -0x44(%ebp),%eax               
  106731:	89 85 34 fe ff ff    	mov    %eax,-0x1cc(%ebp)              
  106737:	8d 55 d0             	lea    -0x30(%ebp),%edx               
  10673a:	89 95 30 fe ff ff    	mov    %edx,-0x1d0(%ebp)              
     * - 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);                              
  106740:	8d 9d 58 fe ff ff    	lea    -0x1a8(%ebp),%ebx              
   /*                                                                 
    * Create an IMFS node structure pointing to tar image memory.     
    */                                                                
   offset = 0;                                                        
   while (1) {                                                        
    if (offset + 512 > tar_size)                                      
  106746:	8d 86 00 02 00 00    	lea    0x200(%esi),%eax               
  10674c:	89 85 50 fe ff ff    	mov    %eax,-0x1b0(%ebp)              
  106752:	8b 55 10             	mov    0x10(%ebp),%edx                
  106755:	39 d0                	cmp    %edx,%eax                      
  106757:	0f 87 8d 01 00 00    	ja     1068ea <rtems_tarfs_load+0x21e><== NEVER TAKEN
      break;                                                          
                                                                      
    /*                                                                
     * Read a header.                                                 
     */                                                               
    hdr_ptr = (char *) &tar_image[offset];                            
  10675d:	03 75 0c             	add    0xc(%ebp),%esi                 
    offset += 512;                                                    
    if (strncmp(&hdr_ptr[257], "ustar", 5))                           
  106760:	8d 86 01 01 00 00    	lea    0x101(%esi),%eax               
  106766:	52                   	push   %edx                           
  106767:	6a 05                	push   $0x5                           
  106769:	68 0c 2c 12 00       	push   $0x122c0c                      
  10676e:	50                   	push   %eax                           
  10676f:	e8 f8 d6 00 00       	call   113e6c <strncmp>               
  106774:	83 c4 10             	add    $0x10,%esp                     
  106777:	85 c0                	test   %eax,%eax                      
  106779:	0f 85 6b 01 00 00    	jne    1068ea <rtems_tarfs_load+0x21e>
      break;                                                          
                                                                      
    strncpy(filename, hdr_ptr, MAX_NAME_FIELD_SIZE);                  
  10677f:	50                   	push   %eax                           
  106780:	6a 63                	push   $0x63                          
  106782:	56                   	push   %esi                           
  106783:	8d 85 58 ff ff ff    	lea    -0xa8(%ebp),%eax               
  106789:	50                   	push   %eax                           
  10678a:	e8 6d d7 00 00       	call   113efc <strncpy>               
    filename[MAX_NAME_FIELD_SIZE] = '\0';                             
  10678f:	c6 45 bb 00          	movb   $0x0,-0x45(%ebp)               
                                                                      
    linkflag   = hdr_ptr[156];                                        
  106793:	8a 96 9c 00 00 00    	mov    0x9c(%esi),%dl                 
    file_mode  = _rtems_octal2ulong(&hdr_ptr[100], 8);                
  106799:	59                   	pop    %ecx                           
  10679a:	5f                   	pop    %edi                           
  10679b:	6a 08                	push   $0x8                           
  10679d:	8d 46 64             	lea    0x64(%esi),%eax                
  1067a0:	50                   	push   %eax                           
  1067a1:	88 95 44 fe ff ff    	mov    %dl,-0x1bc(%ebp)               
  1067a7:	e8 60 6d 00 00       	call   10d50c <_rtems_octal2ulong>    
  1067ac:	89 85 48 fe ff ff    	mov    %eax,-0x1b8(%ebp)              
    file_size  = _rtems_octal2ulong(&hdr_ptr[124], 12);               
  1067b2:	5f                   	pop    %edi                           
  1067b3:	58                   	pop    %eax                           
  1067b4:	6a 0c                	push   $0xc                           
  1067b6:	8d 46 7c             	lea    0x7c(%esi),%eax                
  1067b9:	50                   	push   %eax                           
  1067ba:	e8 4d 6d 00 00       	call   10d50c <_rtems_octal2ulong>    
  1067bf:	89 85 4c fe ff ff    	mov    %eax,-0x1b4(%ebp)              
    hdr_chksum = _rtems_octal2ulong(&hdr_ptr[148], 8);                
  1067c5:	5a                   	pop    %edx                           
  1067c6:	59                   	pop    %ecx                           
  1067c7:	6a 08                	push   $0x8                           
  1067c9:	8d 86 94 00 00 00    	lea    0x94(%esi),%eax                
  1067cf:	50                   	push   %eax                           
  1067d0:	e8 37 6d 00 00       	call   10d50c <_rtems_octal2ulong>    
  1067d5:	89 c7                	mov    %eax,%edi                      
                                                                      
    if (_rtems_tar_header_checksum(hdr_ptr) != hdr_chksum)            
  1067d7:	89 34 24             	mov    %esi,(%esp)                    
  1067da:	e8 5b 6d 00 00       	call   10d53a <_rtems_tar_header_checksum>
  1067df:	83 c4 10             	add    $0x10,%esp                     
  1067e2:	39 f8                	cmp    %edi,%eax                      
  1067e4:	8a 95 44 fe ff ff    	mov    -0x1bc(%ebp),%dl               
  1067ea:	0f 85 fa 00 00 00    	jne    1068ea <rtems_tarfs_load+0x21e><== NEVER TAKEN
     * Generate an IMFS node depending on the file type.              
     * - For directories, just create directories as usual.  IMFS     
     *   will take care of the rest.                                  
     * - For files, create a file node with special tarfs properties. 
     */                                                               
    if (linkflag == DIRTYPE) {                                        
  1067f0:	80 fa 35             	cmp    $0x35,%dl                      
  1067f3:	75 57                	jne    10684c <rtems_tarfs_load+0x180>
      strcpy(full_filename, mountpoint);                              
  1067f5:	50                   	push   %eax                           
  1067f6:	50                   	push   %eax                           
  1067f7:	ff 75 08             	pushl  0x8(%ebp)                      
  1067fa:	53                   	push   %ebx                           
  1067fb:	e8 04 d3 00 00       	call   113b04 <strcpy>                
      if (full_filename[strlen(full_filename)-1] != '/')              
  106800:	31 c0                	xor    %eax,%eax                      
  106802:	83 c9 ff             	or     $0xffffffff,%ecx               
  106805:	89 df                	mov    %ebx,%edi                      
  106807:	f2 ae                	repnz scas %es:(%edi),%al             
  106809:	f7 d1                	not    %ecx                           
  10680b:	83 c4 10             	add    $0x10,%esp                     
  10680e:	80 bc 0d 56 fe ff ff 	cmpb   $0x2f,-0x1aa(%ebp,%ecx,1)      
  106815:	2f                                                          
  106816:	74 10                	je     106828 <rtems_tarfs_load+0x15c><== ALWAYS TAKEN
        strcat(full_filename, "/");                                   
  106818:	57                   	push   %edi                           <== NOT EXECUTED
  106819:	57                   	push   %edi                           <== NOT EXECUTED
  10681a:	68 d9 eb 11 00       	push   $0x11ebd9                      <== NOT EXECUTED
  10681f:	53                   	push   %ebx                           <== NOT EXECUTED
  106820:	e8 2b d1 00 00       	call   113950 <strcat>                <== NOT EXECUTED
  106825:	83 c4 10             	add    $0x10,%esp                     <== NOT EXECUTED
      strcat(full_filename, filename);                                
  106828:	56                   	push   %esi                           
  106829:	56                   	push   %esi                           
  10682a:	8d 95 58 ff ff ff    	lea    -0xa8(%ebp),%edx               
  106830:	52                   	push   %edx                           
  106831:	53                   	push   %ebx                           
  106832:	e8 19 d1 00 00       	call   113950 <strcat>                
      mkdir(full_filename, S_IRWXU | S_IRWXG | S_IRWXO);              
  106837:	5a                   	pop    %edx                           
  106838:	59                   	pop    %ecx                           
  106839:	68 ff 01 00 00       	push   $0x1ff                         
  10683e:	53                   	push   %ebx                           
  10683f:	e8 58 0f 00 00       	call   10779c <mkdir>                 
  106844:	83 c4 10             	add    $0x10,%esp                     
  106847:	e9 da fe ff ff       	jmp    106726 <rtems_tarfs_load+0x5a> 
     *        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) {                                   
  10684c:	80 fa 30             	cmp    $0x30,%dl                      
  10684f:	0f 85 d1 fe ff ff    	jne    106726 <rtems_tarfs_load+0x5a> 
      const char  *name;                                              
                                                                      
      loc = root_loc;                                                 
  106855:	b9 05 00 00 00       	mov    $0x5,%ecx                      
  10685a:	8b bd 34 fe ff ff    	mov    -0x1cc(%ebp),%edi              
  106860:	8b b5 30 fe ff ff    	mov    -0x1d0(%ebp),%esi              
  106866:	f3 a5                	rep movsl %ds:(%esi),%es:(%edi)       
      if (IMFS_evaluate_for_make(filename, &loc, &name) == 0) {       
  106868:	50                   	push   %eax                           
  106869:	8d 45 e4             	lea    -0x1c(%ebp),%eax               
  10686c:	50                   	push   %eax                           
  10686d:	8d 55 bc             	lea    -0x44(%ebp),%edx               
  106870:	52                   	push   %edx                           
  106871:	8d 85 58 ff ff ff    	lea    -0xa8(%ebp),%eax               
  106877:	50                   	push   %eax                           
  106878:	e8 64 77 00 00       	call   10dfe1 <IMFS_evaluate_for_make>
  10687d:	83 c4 10             	add    $0x10,%esp                     
  106880:	85 c0                	test   %eax,%eax                      
  106882:	75 41                	jne    1068c5 <rtems_tarfs_load+0x1f9><== NEVER TAKEN
        node = IMFS_create_node(                                      
  106884:	83 ec 0c             	sub    $0xc,%esp                      
  106887:	6a 00                	push   $0x0                           
          &loc,                                                       
          IMFS_LINEAR_FILE, (char *)name,                             
          (file_mode & (S_IRWXU | S_IRWXG | S_IRWXO)) | S_IFREG,      
  106889:	8b 85 48 fe ff ff    	mov    -0x1b8(%ebp),%eax              
  10688f:	25 ff 01 00 00       	and    $0x1ff,%eax                    
    else if (linkflag == REGTYPE) {                                   
      const char  *name;                                              
                                                                      
      loc = root_loc;                                                 
      if (IMFS_evaluate_for_make(filename, &loc, &name) == 0) {       
        node = IMFS_create_node(                                      
  106894:	80 cc 80             	or     $0x80,%ah                      
  106897:	50                   	push   %eax                           
  106898:	ff 75 e4             	pushl  -0x1c(%ebp)                    
  10689b:	6a 06                	push   $0x6                           
  10689d:	8d 55 bc             	lea    -0x44(%ebp),%edx               
  1068a0:	52                   	push   %edx                           
  1068a1:	e8 57 72 00 00       	call   10dafd <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;                     
  1068a6:	8b 95 4c fe ff ff    	mov    -0x1b4(%ebp),%edx              
  1068ac:	89 50 50             	mov    %edx,0x50(%eax)                
  1068af:	c7 40 54 00 00 00 00 	movl   $0x0,0x54(%eax)                
        node->info.linearfile.direct = &tar_image[offset];            
  1068b6:	8b 55 0c             	mov    0xc(%ebp),%edx                 
  1068b9:	03 95 50 fe ff ff    	add    -0x1b0(%ebp),%edx              
  1068bf:	89 50 58             	mov    %edx,0x58(%eax)                
  1068c2:	83 c4 20             	add    $0x20,%esp                     
      }                                                               
                                                                      
      nblocks = (((file_size) + 511) & ~511) / 512;                   
  1068c5:	8b 85 4c fe ff ff    	mov    -0x1b4(%ebp),%eax              
  1068cb:	05 ff 01 00 00       	add    $0x1ff,%eax                    
      offset += 512 * nblocks;                                        
  1068d0:	25 00 fe ff ff       	and    $0xfffffe00,%eax               
  1068d5:	01 85 50 fe ff ff    	add    %eax,-0x1b0(%ebp)              
  1068db:	e9 46 fe ff ff       	jmp    106726 <rtems_tarfs_load+0x5a> 
   );                                                                 
   if (status != 0)                                                   
     return -1;                                                       
                                                                      
   if (root_loc.ops != &IMFS_ops && root_loc.ops != &fifoIMFS_ops)    
     return -1;                                                       
  1068e0:	c7 85 54 fe ff ff ff 	movl   $0xffffffff,-0x1ac(%ebp)       
  1068e7:	ff ff ff                                                    
      nblocks = (((file_size) + 511) & ~511) / 512;                   
      offset += 512 * nblocks;                                        
    }                                                                 
  }                                                                   
  return status;                                                      
}                                                                     
  1068ea:	8b 85 54 fe ff ff    	mov    -0x1ac(%ebp),%eax              
  1068f0:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  1068f3:	5b                   	pop    %ebx                           
  1068f4:	5e                   	pop    %esi                           
  1068f5:	5f                   	pop    %edi                           
  1068f6:	c9                   	leave                                 
  1068f7:	c3                   	ret                                   
                                                                      

0010f9c8 <rtems_task_mode>: rtems_status_code rtems_task_mode( rtems_mode mode_set, rtems_mode mask, rtems_mode *previous_mode_set ) {
  10f9c8:	55                   	push   %ebp                           
  10f9c9:	89 e5                	mov    %esp,%ebp                      
  10f9cb:	57                   	push   %edi                           
  10f9cc:	56                   	push   %esi                           
  10f9cd:	53                   	push   %ebx                           
  10f9ce:	83 ec 1c             	sub    $0x1c,%esp                     
  10f9d1:	8b 4d 10             	mov    0x10(%ebp),%ecx                
  bool                is_asr_enabled = false;                         
  bool                needs_asr_dispatching = false;                  
  rtems_mode          old_mode;                                       
                                                                      
  if ( !previous_mode_set )                                           
    return RTEMS_INVALID_ADDRESS;                                     
  10f9d4:	b8 09 00 00 00       	mov    $0x9,%eax                      
  ASR_Information    *asr;                                            
  bool                is_asr_enabled = false;                         
  bool                needs_asr_dispatching = false;                  
  rtems_mode          old_mode;                                       
                                                                      
  if ( !previous_mode_set )                                           
  10f9d9:	85 c9                	test   %ecx,%ecx                      
  10f9db:	0f 84 fb 00 00 00    	je     10fadc <rtems_task_mode+0x114> 
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  executing     = _Thread_Executing;                                  
  10f9e1:	8b 35 5c 34 12 00    	mov    0x12345c,%esi                  
  api = executing->API_Extensions[ THREAD_API_RTEMS ];                
  10f9e7:	8b 9e e4 00 00 00    	mov    0xe4(%esi),%ebx                
  asr = &api->Signal;                                                 
                                                                      
  old_mode  = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT;
  10f9ed:	80 7e 74 01          	cmpb   $0x1,0x74(%esi)                
  10f9f1:	19 ff                	sbb    %edi,%edi                      
  10f9f3:	81 e7 00 01 00 00    	and    $0x100,%edi                    
                                                                      
  if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE )
  10f9f9:	83 7e 7c 00          	cmpl   $0x0,0x7c(%esi)                
  10f9fd:	74 06                	je     10fa05 <rtems_task_mode+0x3d>  
    old_mode |= RTEMS_NO_TIMESLICE;                                   
  else                                                                
    old_mode |= RTEMS_TIMESLICE;                                      
  10f9ff:	81 cf 00 02 00 00    	or     $0x200,%edi                    
                                                                      
  old_mode |= (asr->is_enabled) ? RTEMS_ASR : RTEMS_NO_ASR;           
  10fa05:	80 7b 08 01          	cmpb   $0x1,0x8(%ebx)                 
  10fa09:	19 d2                	sbb    %edx,%edx                      
  10fa0b:	81 e2 00 04 00 00    	and    $0x400,%edx                    
  old_mode |= _ISR_Get_level();                                       
  10fa11:	89 55 e4             	mov    %edx,-0x1c(%ebp)               
  10fa14:	89 4d e0             	mov    %ecx,-0x20(%ebp)               
  10fa17:	e8 99 cd ff ff       	call   10c7b5 <_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;           
  10fa1c:	8b 55 e4             	mov    -0x1c(%ebp),%edx               
  10fa1f:	09 d0                	or     %edx,%eax                      
  old_mode |= _ISR_Get_level();                                       
  10fa21:	09 f8                	or     %edi,%eax                      
  10fa23:	8b 4d e0             	mov    -0x20(%ebp),%ecx               
  10fa26:	89 01                	mov    %eax,(%ecx)                    
  *previous_mode_set = old_mode;                                      
                                                                      
  /*                                                                  
   *  These are generic thread scheduling characteristics.            
   */                                                                 
  if ( mask & RTEMS_PREEMPT_MASK )                                    
  10fa28:	f7 45 0c 00 01 00 00 	testl  $0x100,0xc(%ebp)               
  10fa2f:	74 0b                	je     10fa3c <rtems_task_mode+0x74>  
    executing->is_preemptible = _Modes_Is_preempt(mode_set) ? true : false;
  10fa31:	f7 45 08 00 01 00 00 	testl  $0x100,0x8(%ebp)               
  10fa38:	0f 94 46 74          	sete   0x74(%esi)                     
                                                                      
  if ( mask & RTEMS_TIMESLICE_MASK ) {                                
  10fa3c:	f7 45 0c 00 02 00 00 	testl  $0x200,0xc(%ebp)               
  10fa43:	74 21                	je     10fa66 <rtems_task_mode+0x9e>  
    if ( _Modes_Is_timeslice(mode_set) ) {                            
  10fa45:	f7 45 08 00 02 00 00 	testl  $0x200,0x8(%ebp)               
  10fa4c:	74 11                	je     10fa5f <rtems_task_mode+0x97>  
      executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE;
  10fa4e:	c7 46 7c 01 00 00 00 	movl   $0x1,0x7c(%esi)                
      executing->cpu_time_budget  = _Thread_Ticks_per_timeslice;      
  10fa55:	a1 18 32 12 00       	mov    0x123218,%eax                  
  10fa5a:	89 46 78             	mov    %eax,0x78(%esi)                
  10fa5d:	eb 07                	jmp    10fa66 <rtems_task_mode+0x9e>  
    } else                                                            
      executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_NONE; 
  10fa5f:	c7 46 7c 00 00 00 00 	movl   $0x0,0x7c(%esi)                
  }                                                                   
                                                                      
  /*                                                                  
   *  Set the new interrupt level                                     
   */                                                                 
  if ( mask & RTEMS_INTERRUPT_MASK )                                  
  10fa66:	f6 45 0c 01          	testb  $0x1,0xc(%ebp)                 
  10fa6a:	74 0a                	je     10fa76 <rtems_task_mode+0xae>  
 */                                                                   
RTEMS_INLINE_ROUTINE void _Modes_Set_interrupt_level (                
  Modes_Control mode_set                                              
)                                                                     
{                                                                     
  _ISR_Set_level( _Modes_Get_interrupt_level( mode_set ) );           
  10fa6c:	f6 45 08 01          	testb  $0x1,0x8(%ebp)                 
  10fa70:	74 03                	je     10fa75 <rtems_task_mode+0xad>  
  10fa72:	fa                   	cli                                   
  10fa73:	eb 01                	jmp    10fa76 <rtems_task_mode+0xae>  
  10fa75:	fb                   	sti                                   
                                                                      
  /*                                                                  
   *  This is specific to the RTEMS API                               
   */                                                                 
  is_asr_enabled = false;                                             
  needs_asr_dispatching = false;                                      
  10fa76:	31 c9                	xor    %ecx,%ecx                      
                                                                      
  if ( mask & RTEMS_ASR_MASK ) {                                      
  10fa78:	f7 45 0c 00 04 00 00 	testl  $0x400,0xc(%ebp)               
  10fa7f:	74 2a                	je     10faab <rtems_task_mode+0xe3>  
 *  Output:                                                           
 *    *previous_mode_set - previous mode set                          
 *     always return RTEMS_SUCCESSFUL;                                
 */                                                                   
                                                                      
rtems_status_code rtems_task_mode(                                    
  10fa81:	f7 45 08 00 04 00 00 	testl  $0x400,0x8(%ebp)               
  10fa88:	0f 94 c0             	sete   %al                            
  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 ) {                        
  10fa8b:	3a 43 08             	cmp    0x8(%ebx),%al                  
  10fa8e:	74 1b                	je     10faab <rtems_task_mode+0xe3>  
      asr->is_enabled = is_asr_enabled;                               
  10fa90:	88 43 08             	mov    %al,0x8(%ebx)                  
)                                                                     
{                                                                     
  rtems_signal_set _signals;                                          
  ISR_Level        _level;                                            
                                                                      
  _ISR_Disable( _level );                                             
  10fa93:	9c                   	pushf                                 
  10fa94:	fa                   	cli                                   
  10fa95:	58                   	pop    %eax                           
    _signals                     = information->signals_pending;      
  10fa96:	8b 53 18             	mov    0x18(%ebx),%edx                
    information->signals_pending = information->signals_posted;       
  10fa99:	8b 4b 14             	mov    0x14(%ebx),%ecx                
  10fa9c:	89 4b 18             	mov    %ecx,0x18(%ebx)                
    information->signals_posted  = _signals;                          
  10fa9f:	89 53 14             	mov    %edx,0x14(%ebx)                
  _ISR_Enable( _level );                                              
  10faa2:	50                   	push   %eax                           
  10faa3:	9d                   	popf                                  
                                                                      
  /*                                                                  
   *  This is specific to the RTEMS API                               
   */                                                                 
  is_asr_enabled = false;                                             
  needs_asr_dispatching = false;                                      
  10faa4:	83 7b 14 00          	cmpl   $0x0,0x14(%ebx)                
  10faa8:	0f 95 c1             	setne  %cl                            
  if ( _System_state_Is_up( _System_state_Get() ) ) {                 
     if (_Thread_Evaluate_is_dispatch_needed( needs_asr_dispatching ) )
      _Thread_Dispatch();                                             
  }                                                                   
                                                                      
  return RTEMS_SUCCESSFUL;                                            
  10faab:	31 c0                	xor    %eax,%eax                      
        needs_asr_dispatching = true;                                 
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  if ( _System_state_Is_up( _System_state_Get() ) ) {                 
  10faad:	83 3d 9c 33 12 00 03 	cmpl   $0x3,0x12339c                  
  10fab4:	75 26                	jne    10fadc <rtems_task_mode+0x114> 
  bool are_signals_pending                                            
)                                                                     
{                                                                     
  Thread_Control     *executing;                                      
                                                                      
  executing = _Thread_Executing;                                      
  10fab6:	8b 15 5c 34 12 00    	mov    0x12345c,%edx                  
                                                                      
  if ( are_signals_pending ||                                         
  10fabc:	84 c9                	test   %cl,%cl                        
  10fabe:	75 0e                	jne    10face <rtems_task_mode+0x106> 
  10fac0:	3b 15 60 34 12 00    	cmp    0x123460,%edx                  
  10fac6:	74 14                	je     10fadc <rtems_task_mode+0x114> 
       (!_Thread_Is_heir( executing ) && executing->is_preemptible) ) {
  10fac8:	80 7a 74 00          	cmpb   $0x0,0x74(%edx)                
  10facc:	74 0e                	je     10fadc <rtems_task_mode+0x114> <== NEVER TAKEN
    _Thread_Dispatch_necessary = true;                                
  10face:	c6 05 68 34 12 00 01 	movb   $0x1,0x123468                  
     if (_Thread_Evaluate_is_dispatch_needed( needs_asr_dispatching ) )
      _Thread_Dispatch();                                             
  10fad5:	e8 ea b9 ff ff       	call   10b4c4 <_Thread_Dispatch>      
  }                                                                   
                                                                      
  return RTEMS_SUCCESSFUL;                                            
  10fada:	31 c0                	xor    %eax,%eax                      
}                                                                     
  10fadc:	83 c4 1c             	add    $0x1c,%esp                     
  10fadf:	5b                   	pop    %ebx                           
  10fae0:	5e                   	pop    %esi                           
  10fae1:	5f                   	pop    %edi                           
  10fae2:	c9                   	leave                                 
  10fae3:	c3                   	ret                                   
                                                                      

0010d300 <rtems_task_set_priority>: rtems_status_code rtems_task_set_priority( rtems_id id, rtems_task_priority new_priority, rtems_task_priority *old_priority ) {
  10d300:	55                   	push   %ebp                           
  10d301:	89 e5                	mov    %esp,%ebp                      
  10d303:	56                   	push   %esi                           
  10d304:	53                   	push   %ebx                           
  10d305:	83 ec 10             	sub    $0x10,%esp                     
  10d308:	8b 5d 0c             	mov    0xc(%ebp),%ebx                 
  10d30b:	8b 75 10             	mov    0x10(%ebp),%esi                
  register Thread_Control *the_thread;                                
  Objects_Locations        location;                                  
                                                                      
  if ( new_priority != RTEMS_CURRENT_PRIORITY &&                      
  10d30e:	85 db                	test   %ebx,%ebx                      
  10d310:	74 10                	je     10d322 <rtems_task_set_priority+0x22>
RTEMS_INLINE_ROUTINE bool _RTEMS_tasks_Priority_is_valid (            
  rtems_task_priority the_priority                                    
)                                                                     
{                                                                     
  return (  ( the_priority >= RTEMS_MINIMUM_PRIORITY ) &&             
            ( the_priority <= RTEMS_MAXIMUM_PRIORITY ) );             
  10d312:	0f b6 15 64 37 12 00 	movzbl 0x123764,%edx                  
       !_RTEMS_tasks_Priority_is_valid( new_priority ) )              
    return RTEMS_INVALID_PRIORITY;                                    
  10d319:	b8 13 00 00 00       	mov    $0x13,%eax                     
)                                                                     
{                                                                     
  register Thread_Control *the_thread;                                
  Objects_Locations        location;                                  
                                                                      
  if ( new_priority != RTEMS_CURRENT_PRIORITY &&                      
  10d31e:	39 d3                	cmp    %edx,%ebx                      
  10d320:	77 52                	ja     10d374 <rtems_task_set_priority+0x74>
       !_RTEMS_tasks_Priority_is_valid( new_priority ) )              
    return RTEMS_INVALID_PRIORITY;                                    
                                                                      
  if ( !old_priority )                                                
    return RTEMS_INVALID_ADDRESS;                                     
  10d322:	b8 09 00 00 00       	mov    $0x9,%eax                      
                                                                      
  if ( new_priority != RTEMS_CURRENT_PRIORITY &&                      
       !_RTEMS_tasks_Priority_is_valid( new_priority ) )              
    return RTEMS_INVALID_PRIORITY;                                    
                                                                      
  if ( !old_priority )                                                
  10d327:	85 f6                	test   %esi,%esi                      
  10d329:	74 49                	je     10d374 <rtems_task_set_priority+0x74>
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  the_thread = _Thread_Get( id, &location );                          
  10d32b:	51                   	push   %ecx                           
  10d32c:	51                   	push   %ecx                           
  10d32d:	8d 45 f4             	lea    -0xc(%ebp),%eax                
  10d330:	50                   	push   %eax                           
  10d331:	ff 75 08             	pushl  0x8(%ebp)                      
  10d334:	e8 e7 1c 00 00       	call   10f020 <_Thread_Get>           
  switch ( location ) {                                               
  10d339:	83 c4 10             	add    $0x10,%esp                     
  10d33c:	83 7d f4 00          	cmpl   $0x0,-0xc(%ebp)                
  10d340:	75 2d                	jne    10d36f <rtems_task_set_priority+0x6f>
                                                                      
    case OBJECTS_LOCAL:                                               
      /* XXX need helper to "convert" from core priority */           
      *old_priority = the_thread->current_priority;                   
  10d342:	8b 50 14             	mov    0x14(%eax),%edx                
  10d345:	89 16                	mov    %edx,(%esi)                    
      if ( new_priority != RTEMS_CURRENT_PRIORITY ) {                 
  10d347:	85 db                	test   %ebx,%ebx                      
  10d349:	74 1b                	je     10d366 <rtems_task_set_priority+0x66>
        the_thread->real_priority = new_priority;                     
  10d34b:	89 58 18             	mov    %ebx,0x18(%eax)                
        if ( the_thread->resource_count == 0 ||                       
  10d34e:	83 78 1c 00          	cmpl   $0x0,0x1c(%eax)                
  10d352:	74 05                	je     10d359 <rtems_task_set_priority+0x59>
  10d354:	39 58 14             	cmp    %ebx,0x14(%eax)                
  10d357:	76 0d                	jbe    10d366 <rtems_task_set_priority+0x66><== ALWAYS TAKEN
             the_thread->current_priority > new_priority )            
          _Thread_Change_priority( the_thread, new_priority, false ); 
  10d359:	52                   	push   %edx                           
  10d35a:	6a 00                	push   $0x0                           
  10d35c:	53                   	push   %ebx                           
  10d35d:	50                   	push   %eax                           
  10d35e:	e8 c5 18 00 00       	call   10ec28 <_Thread_Change_priority>
  10d363:	83 c4 10             	add    $0x10,%esp                     
      }                                                               
      _Thread_Enable_dispatch();                                      
  10d366:	e8 93 1c 00 00       	call   10effe <_Thread_Enable_dispatch>
      return RTEMS_SUCCESSFUL;                                        
  10d36b:	31 c0                	xor    %eax,%eax                      
  10d36d:	eb 05                	jmp    10d374 <rtems_task_set_priority+0x74>
                                                                      
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
  10d36f:	b8 04 00 00 00       	mov    $0x4,%eax                      
}                                                                     
  10d374:	8d 65 f8             	lea    -0x8(%ebp),%esp                
  10d377:	5b                   	pop    %ebx                           
  10d378:	5e                   	pop    %esi                           
  10d379:	c9                   	leave                                 
  10d37a:	c3                   	ret                                   
                                                                      

00107b7b <rtems_termios_close>: } } rtems_status_code rtems_termios_close (void *arg) {
  107b7b:	55                   	push   %ebp                           
  107b7c:	89 e5                	mov    %esp,%ebp                      
  107b7e:	56                   	push   %esi                           
  107b7f:	53                   	push   %ebx                           
  107b80:	8b 75 08             	mov    0x8(%ebp),%esi                 
  rtems_libio_open_close_args_t *args = arg;                          
  struct rtems_termios_tty *tty = args->iop->data1;                   
  107b83:	8b 06                	mov    (%esi),%eax                    
  107b85:	8b 58 34             	mov    0x34(%eax),%ebx                
  rtems_status_code sc;                                               
                                                                      
  sc = rtems_semaphore_obtain(                                        
  107b88:	51                   	push   %ecx                           
  107b89:	6a 00                	push   $0x0                           
  107b8b:	6a 00                	push   $0x0                           
  107b8d:	ff 35 44 31 12 00    	pushl  0x123144                       
  107b93:	e8 a0 1b 00 00       	call   109738 <rtems_semaphore_obtain>
    rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT);            
  if (sc != RTEMS_SUCCESSFUL)                                         
  107b98:	83 c4 10             	add    $0x10,%esp                     
  107b9b:	85 c0                	test   %eax,%eax                      
  107b9d:	0f 85 88 00 00 00    	jne    107c2b <rtems_termios_close+0xb0><== NEVER TAKEN
    rtems_fatal_error_occurred (sc);                                  
  if (--tty->refcount == 0) {                                         
  107ba3:	8b 43 08             	mov    0x8(%ebx),%eax                 
  107ba6:	48                   	dec    %eax                           
  107ba7:	89 43 08             	mov    %eax,0x8(%ebx)                 
  107baa:	85 c0                	test   %eax,%eax                      
  107bac:	0f 85 3e 01 00 00    	jne    107cf0 <rtems_termios_close+0x175>
    if (rtems_termios_linesw[tty->t_line].l_close != NULL) {          
  107bb2:	8b 83 cc 00 00 00    	mov    0xcc(%ebx),%eax                
  107bb8:	c1 e0 05             	shl    $0x5,%eax                      
  107bbb:	8b 80 fc 2d 12 00    	mov    0x122dfc(%eax),%eax            
  107bc1:	85 c0                	test   %eax,%eax                      
  107bc3:	74 08                	je     107bcd <rtems_termios_close+0x52>
      /*                                                              
       * call discipline-specific close                               
       */                                                             
      sc = rtems_termios_linesw[tty->t_line].l_close(tty);            
  107bc5:	83 ec 0c             	sub    $0xc,%esp                      
  107bc8:	53                   	push   %ebx                           
  107bc9:	ff d0                	call   *%eax                          
  107bcb:	eb 26                	jmp    107bf3 <rtems_termios_close+0x78>
    } else {                                                          
      /*                                                              
       * default: just flush output buffer                            
       */                                                             
      sc = rtems_semaphore_obtain(tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
  107bcd:	52                   	push   %edx                           
  107bce:	6a 00                	push   $0x0                           
  107bd0:	6a 00                	push   $0x0                           
  107bd2:	ff 73 18             	pushl  0x18(%ebx)                     
  107bd5:	e8 5e 1b 00 00       	call   109738 <rtems_semaphore_obtain>
      if (sc != RTEMS_SUCCESSFUL) {                                   
  107bda:	83 c4 10             	add    $0x10,%esp                     
  107bdd:	85 c0                	test   %eax,%eax                      
  107bdf:	75 4a                	jne    107c2b <rtems_termios_close+0xb0><== NEVER TAKEN
        rtems_fatal_error_occurred (sc);                              
      }                                                               
      drainOutput (tty);                                              
  107be1:	89 d8                	mov    %ebx,%eax                      
  107be3:	e8 10 fb ff ff       	call   1076f8 <drainOutput>           
      rtems_semaphore_release (tty->osem);                            
  107be8:	83 ec 0c             	sub    $0xc,%esp                      
  107beb:	ff 73 18             	pushl  0x18(%ebx)                     
  107bee:	e8 31 1c 00 00       	call   109824 <rtems_semaphore_release>
  107bf3:	83 c4 10             	add    $0x10,%esp                     
    }                                                                 
                                                                      
    if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {    
  107bf6:	83 bb b4 00 00 00 02 	cmpl   $0x2,0xb4(%ebx)                
  107bfd:	75 35                	jne    107c34 <rtems_termios_close+0xb9>
      /*                                                              
       * send "terminate" to I/O tasks                                
       */                                                             
      sc = rtems_event_send( tty->rxTaskId, TERMIOS_RX_TERMINATE_EVENT );
  107bff:	50                   	push   %eax                           
  107c00:	50                   	push   %eax                           
  107c01:	6a 01                	push   $0x1                           
  107c03:	ff b3 c4 00 00 00    	pushl  0xc4(%ebx)                     
  107c09:	e8 66 17 00 00       	call   109374 <rtems_event_send>      
      if (sc != RTEMS_SUCCESSFUL)                                     
  107c0e:	83 c4 10             	add    $0x10,%esp                     
  107c11:	85 c0                	test   %eax,%eax                      
  107c13:	75 16                	jne    107c2b <rtems_termios_close+0xb0><== NEVER TAKEN
        rtems_fatal_error_occurred (sc);                              
      sc = rtems_event_send( tty->txTaskId, TERMIOS_TX_TERMINATE_EVENT );
  107c15:	51                   	push   %ecx                           
  107c16:	51                   	push   %ecx                           
  107c17:	6a 01                	push   $0x1                           
  107c19:	ff b3 c8 00 00 00    	pushl  0xc8(%ebx)                     
  107c1f:	e8 50 17 00 00       	call   109374 <rtems_event_send>      
      if (sc != RTEMS_SUCCESSFUL)                                     
  107c24:	83 c4 10             	add    $0x10,%esp                     
  107c27:	85 c0                	test   %eax,%eax                      
  107c29:	74 09                	je     107c34 <rtems_termios_close+0xb9><== ALWAYS TAKEN
        rtems_fatal_error_occurred (sc);                              
  107c2b:	83 ec 0c             	sub    $0xc,%esp                      <== NOT EXECUTED
  107c2e:	50                   	push   %eax                           <== NOT EXECUTED
  107c2f:	e8 cc 20 00 00       	call   109d00 <rtems_fatal_error_occurred><== NOT EXECUTED
    }                                                                 
    if (tty->device.lastClose)                                        
  107c34:	8b 83 9c 00 00 00    	mov    0x9c(%ebx),%eax                
  107c3a:	85 c0                	test   %eax,%eax                      
  107c3c:	74 0d                	je     107c4b <rtems_termios_close+0xd0>
       (*tty->device.lastClose)(tty->major, tty->minor, arg);         
  107c3e:	52                   	push   %edx                           
  107c3f:	56                   	push   %esi                           
  107c40:	ff 73 10             	pushl  0x10(%ebx)                     
  107c43:	ff 73 0c             	pushl  0xc(%ebx)                      
  107c46:	ff d0                	call   *%eax                          
  107c48:	83 c4 10             	add    $0x10,%esp                     
    if (tty->forw == NULL) {                                          
  107c4b:	8b 13                	mov    (%ebx),%edx                    
  107c4d:	85 d2                	test   %edx,%edx                      
  107c4f:	8b 43 04             	mov    0x4(%ebx),%eax                 
  107c52:	75 11                	jne    107c65 <rtems_termios_close+0xea>
      rtems_termios_ttyTail = tty->back;                              
  107c54:	a3 48 31 12 00       	mov    %eax,0x123148                  
      if ( rtems_termios_ttyTail != NULL ) {                          
  107c59:	85 c0                	test   %eax,%eax                      
  107c5b:	74 0b                	je     107c68 <rtems_termios_close+0xed>
        rtems_termios_ttyTail->forw = NULL;                           
  107c5d:	c7 00 00 00 00 00    	movl   $0x0,(%eax)                    
  107c63:	eb 03                	jmp    107c68 <rtems_termios_close+0xed>
      }                                                               
    } else {                                                          
      tty->forw->back = tty->back;                                    
  107c65:	89 42 04             	mov    %eax,0x4(%edx)                 
    }                                                                 
                                                                      
    if (tty->back == NULL) {                                          
  107c68:	8b 53 04             	mov    0x4(%ebx),%edx                 
  107c6b:	85 d2                	test   %edx,%edx                      
  107c6d:	8b 03                	mov    (%ebx),%eax                    
  107c6f:	75 12                	jne    107c83 <rtems_termios_close+0x108>
      rtems_termios_ttyHead = tty->forw;                              
  107c71:	a3 4c 31 12 00       	mov    %eax,0x12314c                  
      if ( rtems_termios_ttyHead != NULL ) {                          
  107c76:	85 c0                	test   %eax,%eax                      
  107c78:	74 0b                	je     107c85 <rtems_termios_close+0x10a>
        rtems_termios_ttyHead->back = NULL;                           
  107c7a:	c7 40 04 00 00 00 00 	movl   $0x0,0x4(%eax)                 
  107c81:	eb 02                	jmp    107c85 <rtems_termios_close+0x10a>
      }                                                               
    } else {                                                          
      tty->back->forw = tty->forw;                                    
  107c83:	89 02                	mov    %eax,(%edx)                    
    }                                                                 
                                                                      
    rtems_semaphore_delete (tty->isem);                               
  107c85:	83 ec 0c             	sub    $0xc,%esp                      
  107c88:	ff 73 14             	pushl  0x14(%ebx)                     
  107c8b:	e8 18 1a 00 00       	call   1096a8 <rtems_semaphore_delete>
    rtems_semaphore_delete (tty->osem);                               
  107c90:	59                   	pop    %ecx                           
  107c91:	ff 73 18             	pushl  0x18(%ebx)                     
  107c94:	e8 0f 1a 00 00       	call   1096a8 <rtems_semaphore_delete>
    rtems_semaphore_delete (tty->rawOutBuf.Semaphore);                
  107c99:	5a                   	pop    %edx                           
  107c9a:	ff b3 8c 00 00 00    	pushl  0x8c(%ebx)                     
  107ca0:	e8 03 1a 00 00       	call   1096a8 <rtems_semaphore_delete>
    if ((tty->device.pollRead == NULL) ||                             
  107ca5:	83 c4 10             	add    $0x10,%esp                     
  107ca8:	83 bb a0 00 00 00 00 	cmpl   $0x0,0xa0(%ebx)                
  107caf:	74 09                	je     107cba <rtems_termios_close+0x13f>
  107cb1:	83 bb b4 00 00 00 02 	cmpl   $0x2,0xb4(%ebx)                
  107cb8:	75 0e                	jne    107cc8 <rtems_termios_close+0x14d>
        (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN))    
      rtems_semaphore_delete (tty->rawInBuf.Semaphore);               
  107cba:	83 ec 0c             	sub    $0xc,%esp                      
  107cbd:	ff 73 68             	pushl  0x68(%ebx)                     
  107cc0:	e8 e3 19 00 00       	call   1096a8 <rtems_semaphore_delete>
  107cc5:	83 c4 10             	add    $0x10,%esp                     
    free (tty->rawInBuf.theBuf);                                      
  107cc8:	83 ec 0c             	sub    $0xc,%esp                      
  107ccb:	ff 73 58             	pushl  0x58(%ebx)                     
  107cce:	e8 c5 ec ff ff       	call   106998 <free>                  
    free (tty->rawOutBuf.theBuf);                                     
  107cd3:	58                   	pop    %eax                           
  107cd4:	ff 73 7c             	pushl  0x7c(%ebx)                     
  107cd7:	e8 bc ec ff ff       	call   106998 <free>                  
    free (tty->cbuf);                                                 
  107cdc:	5e                   	pop    %esi                           
  107cdd:	ff 73 1c             	pushl  0x1c(%ebx)                     
  107ce0:	e8 b3 ec ff ff       	call   106998 <free>                  
    free (tty);                                                       
  107ce5:	89 1c 24             	mov    %ebx,(%esp)                    
  107ce8:	e8 ab ec ff ff       	call   106998 <free>                  
  107ced:	83 c4 10             	add    $0x10,%esp                     
  }                                                                   
  rtems_semaphore_release (rtems_termios_ttyMutex);                   
  107cf0:	83 ec 0c             	sub    $0xc,%esp                      
  107cf3:	ff 35 44 31 12 00    	pushl  0x123144                       
  107cf9:	e8 26 1b 00 00       	call   109824 <rtems_semaphore_release>
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
  107cfe:	31 c0                	xor    %eax,%eax                      
  107d00:	8d 65 f8             	lea    -0x8(%ebp),%esp                
  107d03:	5b                   	pop    %ebx                           
  107d04:	5e                   	pop    %esi                           
  107d05:	c9                   	leave                                 
  107d06:	c3                   	ret                                   
                                                                      

00108eb4 <rtems_termios_dequeue_characters>: * for each transmitted character. * It returns number of characters left to transmit */ int rtems_termios_dequeue_characters (void *ttyp, int len) {
  108eb4:	55                   	push   %ebp                           
  108eb5:	89 e5                	mov    %esp,%ebp                      
  108eb7:	83 ec 08             	sub    $0x8,%esp                      
  108eba:	8b 45 08             	mov    0x8(%ebp),%eax                 
  rtems_status_code sc;                                               
                                                                      
  /*                                                                  
   * sum up character count already sent                              
   */                                                                 
  tty->t_dqlen += len;                                                
  108ebd:	8b 55 0c             	mov    0xc(%ebp),%edx                 
  108ec0:	01 90 90 00 00 00    	add    %edx,0x90(%eax)                
                                                                      
  if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {      
  108ec6:	83 b8 b4 00 00 00 02 	cmpl   $0x2,0xb4(%eax)                
  108ecd:	75 1f                	jne    108eee <rtems_termios_dequeue_characters+0x3a>
    /*                                                                
     * send wake up to transmitter task                               
     */                                                               
    sc = rtems_event_send(tty->txTaskId, TERMIOS_TX_START_EVENT);     
  108ecf:	52                   	push   %edx                           
  108ed0:	52                   	push   %edx                           
  108ed1:	6a 02                	push   $0x2                           
  108ed3:	ff b0 c8 00 00 00    	pushl  0xc8(%eax)                     
  108ed9:	e8 96 04 00 00       	call   109374 <rtems_event_send>      
    if (sc != RTEMS_SUCCESSFUL)                                       
  108ede:	83 c4 10             	add    $0x10,%esp                     
  108ee1:	85 c0                	test   %eax,%eax                      
  108ee3:	74 30                	je     108f15 <rtems_termios_dequeue_characters+0x61><== ALWAYS TAKEN
      rtems_fatal_error_occurred (sc);                                
  108ee5:	83 ec 0c             	sub    $0xc,%esp                      <== NOT EXECUTED
  108ee8:	50                   	push   %eax                           <== NOT EXECUTED
  108ee9:	e8 12 0e 00 00       	call   109d00 <rtems_fatal_error_occurred><== NOT EXECUTED
    return 0; /* nothing to output in IRQ... */                       
  }                                                                   
                                                                      
  if (tty->t_line == PPPDISC ) {                                      
  108eee:	83 b8 cc 00 00 00 05 	cmpl   $0x5,0xcc(%eax)                
  108ef5:	75 15                	jne    108f0c <rtems_termios_dequeue_characters+0x58>
    /*                                                                
     * call any line discipline start function                        
     */                                                               
    if (rtems_termios_linesw[tty->t_line].l_start != NULL) {          
  108ef7:	8b 15 ac 2e 12 00    	mov    0x122eac,%edx                  
  108efd:	85 d2                	test   %edx,%edx                      
  108eff:	74 14                	je     108f15 <rtems_termios_dequeue_characters+0x61><== NEVER TAKEN
      rtems_termios_linesw[tty->t_line].l_start(tty);                 
  108f01:	83 ec 0c             	sub    $0xc,%esp                      
  108f04:	50                   	push   %eax                           
  108f05:	ff d2                	call   *%edx                          
  108f07:	83 c4 10             	add    $0x10,%esp                     
  108f0a:	eb 09                	jmp    108f15 <rtems_termios_dequeue_characters+0x61>
    }                                                                 
    return 0; /* nothing to output in IRQ... */                       
  }                                                                   
                                                                      
  return rtems_termios_refill_transmitter(tty);                       
  108f0c:	89 45 08             	mov    %eax,0x8(%ebp)                 
}                                                                     
  108f0f:	c9                   	leave                                 
      rtems_termios_linesw[tty->t_line].l_start(tty);                 
    }                                                                 
    return 0; /* nothing to output in IRQ... */                       
  }                                                                   
                                                                      
  return rtems_termios_refill_transmitter(tty);                       
  108f10:	e9 6d fd ff ff       	jmp    108c82 <rtems_termios_refill_transmitter>
}                                                                     
  108f15:	31 c0                	xor    %eax,%eax                      
  108f17:	c9                   	leave                                 
  108f18:	c3                   	ret                                   
                                                                      

00108993 <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) {
  108993:	55                   	push   %ebp                           
  108994:	89 e5                	mov    %esp,%ebp                      
  108996:	57                   	push   %edi                           
  108997:	56                   	push   %esi                           
  108998:	53                   	push   %ebx                           
  108999:	83 ec 2c             	sub    $0x2c,%esp                     
  10899c:	8b 5d 08             	mov    0x8(%ebp),%ebx                 
  10899f:	8b 7d 0c             	mov    0xc(%ebp),%edi                 
  1089a2:	8b 4d 10             	mov    0x10(%ebp),%ecx                
  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) {             
  1089a5:	8b 83 cc 00 00 00    	mov    0xcc(%ebx),%eax                
  1089ab:	c1 e0 05             	shl    $0x5,%eax                      
  1089ae:	89 ca                	mov    %ecx,%edx                      
  1089b0:	83 b8 08 2e 12 00 00 	cmpl   $0x0,0x122e08(%eax)            
  1089b7:	75 3b                	jne    1089f4 <rtems_termios_enqueue_raw_characters+0x61>
  1089b9:	89 4d e0             	mov    %ecx,-0x20(%ebp)               
  1089bc:	c6 45 df 00          	movb   $0x0,-0x21(%ebp)               
  1089c0:	31 f6                	xor    %esi,%esi                      
                                                                      
        /*                                                            
         * 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); 
  1089c2:	8d 43 30             	lea    0x30(%ebx),%eax                
  1089c5:	89 45 d4             	mov    %eax,-0x2c(%ebp)               
          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,                          
  1089c8:	8d 53 4a             	lea    0x4a(%ebx),%edx                
  1089cb:	89 55 d0             	mov    %edx,-0x30(%ebp)               
  1089ce:	e9 26 02 00 00       	jmp    108bf9 <rtems_termios_enqueue_raw_characters+0x266>
  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--) {                                                   
      c = *buf++;                                                     
  1089d3:	0f be 0f             	movsbl (%edi),%ecx                    
  1089d6:	47                   	inc    %edi                           
      rtems_termios_linesw[tty->t_line].l_rint(c,tty);                
  1089d7:	56                   	push   %esi                           
  1089d8:	56                   	push   %esi                           
  1089d9:	8b 83 cc 00 00 00    	mov    0xcc(%ebx),%eax                
  1089df:	c1 e0 05             	shl    $0x5,%eax                      
  1089e2:	53                   	push   %ebx                           
  1089e3:	51                   	push   %ecx                           
  1089e4:	89 55 cc             	mov    %edx,-0x34(%ebp)               
  1089e7:	ff 90 08 2e 12 00    	call   *0x122e08(%eax)                
  1089ed:	8b 55 cc             	mov    -0x34(%ebp),%edx               
  1089f0:	4a                   	dec    %edx                           
  1089f1:	83 c4 10             	add    $0x10,%esp                     
  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--) {                                                   
  1089f4:	85 d2                	test   %edx,%edx                      
  1089f6:	75 db                	jne    1089d3 <rtems_termios_enqueue_raw_characters+0x40>
     */                                                               
    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;                                         
        }                                                             
    return 0;                                                         
  1089f8:	31 f6                	xor    %esi,%esi                      
    }                                                                 
                                                                      
    /*                                                                
     * check to see if rcv wakeup callback was set                    
     */                                                               
    if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) { 
  1089fa:	83 bb e4 00 00 00 00 	cmpl   $0x0,0xe4(%ebx)                
  108a01:	0f 85 0d 02 00 00    	jne    108c14 <rtems_termios_enqueue_raw_characters+0x281><== NEVER TAKEN
  108a07:	8b 83 dc 00 00 00    	mov    0xdc(%ebx),%eax                
      (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg);     
      tty->tty_rcvwakeup = 1;                                         
        }                                                             
    return 0;                                                         
  108a0d:	89 d6                	mov    %edx,%esi                      
    }                                                                 
                                                                      
    /*                                                                
     * check to see if rcv wakeup callback was set                    
     */                                                               
    if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) { 
  108a0f:	85 c0                	test   %eax,%eax                      
  108a11:	0f 84 fd 01 00 00    	je     108c14 <rtems_termios_enqueue_raw_characters+0x281><== NEVER TAKEN
      (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg);     
  108a17:	51                   	push   %ecx                           
  108a18:	51                   	push   %ecx                           
  108a19:	ff b3 e0 00 00 00    	pushl  0xe0(%ebx)                     
  108a1f:	8d 53 30             	lea    0x30(%ebx),%edx                
  108a22:	52                   	push   %edx                           
  108a23:	ff d0                	call   *%eax                          
      tty->tty_rcvwakeup = 1;                                         
  108a25:	c7 83 e4 00 00 00 01 	movl   $0x1,0xe4(%ebx)                
  108a2c:	00 00 00                                                    
  108a2f:	e9 dd 01 00 00       	jmp    108c11 <rtems_termios_enqueue_raw_characters+0x27e>
        }                                                             
    return 0;                                                         
  }                                                                   
                                                                      
  while (len--) {                                                     
    c = *buf++;                                                       
  108a34:	8a 0f                	mov    (%edi),%cl                     
  108a36:	88 4d de             	mov    %cl,-0x22(%ebp)                
  108a39:	47                   	inc    %edi                           
    /* FIXME: implement IXANY: any character restarts output */       
    /* if incoming XON/XOFF controls outgoing stream: */              
    if (tty->flow_ctrl & FL_MDXON) {                                  
  108a3a:	8b 83 b8 00 00 00    	mov    0xb8(%ebx),%eax                
  108a40:	f6 c4 02             	test   $0x2,%ah                       
  108a43:	74 46                	je     108a8b <rtems_termios_enqueue_raw_characters+0xf8>
      /* if received char is V_STOP and V_START (both are equal value) */
      if (c == tty->termios.c_cc[VSTOP]) {                            
  108a45:	0f be c1             	movsbl %cl,%eax                       
  108a48:	0f b6 53 4a          	movzbl 0x4a(%ebx),%edx                
  108a4c:	39 d0                	cmp    %edx,%eax                      
  108a4e:	75 28                	jne    108a78 <rtems_termios_enqueue_raw_characters+0xe5>
        if (c == tty->termios.c_cc[VSTART]) {                         
  108a50:	0f b6 53 49          	movzbl 0x49(%ebx),%edx                
  108a54:	39 d0                	cmp    %edx,%eax                      
  108a56:	75 0b                	jne    108a63 <rtems_termios_enqueue_raw_characters+0xd0><== ALWAYS TAKEN
          /* received VSTOP and VSTART==VSTOP? */                     
          /* then toggle "stop output" status  */                     
          tty->flow_ctrl = tty->flow_ctrl ^ FL_ORCVXOF;               
  108a58:	8b 83 b8 00 00 00    	mov    0xb8(%ebx),%eax                <== NOT EXECUTED
  108a5e:	83 f0 10             	xor    $0x10,%eax                     <== NOT EXECUTED
  108a61:	eb 09                	jmp    108a6c <rtems_termios_enqueue_raw_characters+0xd9><== NOT EXECUTED
        }                                                             
        else {                                                        
          /* VSTOP received (other code than VSTART) */               
          /* stop output                             */               
          tty->flow_ctrl |= FL_ORCVXOF;                               
  108a63:	8b 83 b8 00 00 00    	mov    0xb8(%ebx),%eax                
  108a69:	83 c8 10             	or     $0x10,%eax                     
  108a6c:	89 83 b8 00 00 00    	mov    %eax,0xb8(%ebx)                
 *       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) 
{                                                                     
  108a72:	c6 45 df 01          	movb   $0x1,-0x21(%ebp)               
  108a76:	eb 19                	jmp    108a91 <rtems_termios_enqueue_raw_characters+0xfe>
          /* stop output                             */               
          tty->flow_ctrl |= FL_ORCVXOF;                               
        }                                                             
        flow_rcv = true;                                              
      }                                                               
      else if (c == tty->termios.c_cc[VSTART]) {                      
  108a78:	0f b6 53 49          	movzbl 0x49(%ebx),%edx                
  108a7c:	39 d0                	cmp    %edx,%eax                      
  108a7e:	75 0b                	jne    108a8b <rtems_termios_enqueue_raw_characters+0xf8><== ALWAYS TAKEN
        /* VSTART received */                                         
        /* restart output  */                                         
        tty->flow_ctrl &= ~FL_ORCVXOF;                                
  108a80:	8b 83 b8 00 00 00    	mov    0xb8(%ebx),%eax                <== NOT EXECUTED
  108a86:	83 e0 ef             	and    $0xffffffef,%eax               <== NOT EXECUTED
  108a89:	eb e1                	jmp    108a6c <rtems_termios_enqueue_raw_characters+0xd9><== NOT EXECUTED
        flow_rcv = true;                                              
      }                                                               
    }                                                                 
    if (flow_rcv) {                                                   
  108a8b:	80 7d df 00          	cmpb   $0x0,-0x21(%ebp)               
  108a8f:	74 51                	je     108ae2 <rtems_termios_enqueue_raw_characters+0x14f><== ALWAYS TAKEN
      /* restart output according to FL_ORCVXOF flag */               
      if ((tty->flow_ctrl & (FL_ORCVXOF | FL_OSTOP)) == FL_OSTOP) {   
  108a91:	8b 83 b8 00 00 00    	mov    0xb8(%ebx),%eax                
  108a97:	83 e0 30             	and    $0x30,%eax                     
  108a9a:	83 f8 20             	cmp    $0x20,%eax                     
  108a9d:	0f 85 53 01 00 00    	jne    108bf6 <rtems_termios_enqueue_raw_characters+0x263><== ALWAYS TAKEN
        /* disable interrupts    */                                   
        rtems_interrupt_disable(level);                               
  108aa3:	9c                   	pushf                                 <== NOT EXECUTED
  108aa4:	fa                   	cli                                   <== NOT EXECUTED
  108aa5:	8f 45 e4             	popl   -0x1c(%ebp)                    <== NOT EXECUTED
        tty->flow_ctrl &= ~FL_OSTOP;                                  
  108aa8:	8b 83 b8 00 00 00    	mov    0xb8(%ebx),%eax                <== NOT EXECUTED
  108aae:	83 e0 df             	and    $0xffffffdf,%eax               <== NOT EXECUTED
  108ab1:	89 83 b8 00 00 00    	mov    %eax,0xb8(%ebx)                <== NOT EXECUTED
        /* check for chars in output buffer (or rob_state?) */        
        if (tty->rawOutBufState != rob_idle) {                        
  108ab7:	83 bb 94 00 00 00 00 	cmpl   $0x0,0x94(%ebx)                <== NOT EXECUTED
  108abe:	74 19                	je     108ad9 <rtems_termios_enqueue_raw_characters+0x146><== NOT EXECUTED
          /* if chars available, call write function... */            
          (*tty->device.write)(                                       
            tty->minor, &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail], 1);
  108ac0:	8b 83 84 00 00 00    	mov    0x84(%ebx),%eax                <== 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)(                                       
  108ac6:	52                   	push   %edx                           <== NOT EXECUTED
  108ac7:	6a 01                	push   $0x1                           <== NOT EXECUTED
  108ac9:	03 43 7c             	add    0x7c(%ebx),%eax                <== NOT EXECUTED
  108acc:	50                   	push   %eax                           <== NOT EXECUTED
  108acd:	ff 73 10             	pushl  0x10(%ebx)                     <== NOT EXECUTED
  108ad0:	ff 93 a4 00 00 00    	call   *0xa4(%ebx)                    <== NOT EXECUTED
  108ad6:	83 c4 10             	add    $0x10,%esp                     <== NOT EXECUTED
            tty->minor, &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail], 1);
        }                                                             
        /* reenable interrupts */                                     
        rtems_interrupt_enable(level);                                
  108ad9:	ff 75 e4             	pushl  -0x1c(%ebp)                    <== NOT EXECUTED
  108adc:	9d                   	popf                                  <== NOT EXECUTED
  108add:	e9 14 01 00 00       	jmp    108bf6 <rtems_termios_enqueue_raw_characters+0x263><== NOT EXECUTED
      }                                                               
    } else {                                                          
      newTail = (tty->rawInBuf.Tail + 1) % tty->rawInBuf.Size;        
  108ae2:	8b 43 60             	mov    0x60(%ebx),%eax                
  108ae5:	8b 4b 64             	mov    0x64(%ebx),%ecx                
  108ae8:	40                   	inc    %eax                           
  108ae9:	31 d2                	xor    %edx,%edx                      
  108aeb:	f7 f1                	div    %ecx                           
  108aed:	89 55 e4             	mov    %edx,-0x1c(%ebp)               
      /* if chars_in_buffer > highwater                */             
      rtems_interrupt_disable(level);                                 
  108af0:	9c                   	pushf                                 
  108af1:	fa                   	cli                                   
  108af2:	8f 45 d8             	popl   -0x28(%ebp)                    
      if ((((newTail - tty->rawInBuf.Head + tty->rawInBuf.Size)       
  108af5:	8b 53 5c             	mov    0x5c(%ebx),%edx                
  108af8:	8b 43 64             	mov    0x64(%ebx),%eax                
            % tty->rawInBuf.Size) > tty->highwater) &&                
  108afb:	8b 4b 64             	mov    0x64(%ebx),%ecx                
      }                                                               
    } 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)       
  108afe:	29 d0                	sub    %edx,%eax                      
  108b00:	03 45 e4             	add    -0x1c(%ebp),%eax               
            % tty->rawInBuf.Size) > tty->highwater) &&                
  108b03:	31 d2                	xor    %edx,%edx                      
  108b05:	f7 f1                	div    %ecx                           
      }                                                               
    } 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)       
  108b07:	3b 93 c0 00 00 00    	cmp    0xc0(%ebx),%edx                
  108b0d:	0f 86 98 00 00 00    	jbe    108bab <rtems_termios_enqueue_raw_characters+0x218><== ALWAYS TAKEN
            % tty->rawInBuf.Size) > tty->highwater) &&                
          !(tty->flow_ctrl & FL_IREQXOF)) {                           
  108b13:	8b 83 b8 00 00 00    	mov    0xb8(%ebx),%eax                <== 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) &&                
  108b19:	a8 01                	test   $0x1,%al                       <== NOT EXECUTED
  108b1b:	0f 85 8a 00 00 00    	jne    108bab <rtems_termios_enqueue_raw_characters+0x218><== NOT EXECUTED
          !(tty->flow_ctrl & FL_IREQXOF)) {                           
        /* incoming data stream should be stopped */                  
        tty->flow_ctrl |= FL_IREQXOF;                                 
  108b21:	8b 83 b8 00 00 00    	mov    0xb8(%ebx),%eax                <== NOT EXECUTED
  108b27:	83 c8 01             	or     $0x1,%eax                      <== NOT EXECUTED
  108b2a:	89 83 b8 00 00 00    	mov    %eax,0xb8(%ebx)                <== NOT EXECUTED
        if ((tty->flow_ctrl & (FL_MDXOF | FL_ISNTXOF))                
  108b30:	8b 83 b8 00 00 00    	mov    0xb8(%ebx),%eax                <== NOT EXECUTED
  108b36:	25 02 04 00 00       	and    $0x402,%eax                    <== NOT EXECUTED
  108b3b:	3d 00 04 00 00       	cmp    $0x400,%eax                    <== NOT EXECUTED
  108b40:	75 33                	jne    108b75 <rtems_termios_enqueue_raw_characters+0x1e2><== NOT EXECUTED
            ==                (FL_MDXOF             ) ) {             
          if ((tty->flow_ctrl & FL_OSTOP) ||                          
  108b42:	8b 83 b8 00 00 00    	mov    0xb8(%ebx),%eax                <== NOT EXECUTED
  108b48:	a8 20                	test   $0x20,%al                      <== NOT EXECUTED
  108b4a:	75 09                	jne    108b55 <rtems_termios_enqueue_raw_characters+0x1c2><== NOT EXECUTED
  108b4c:	83 bb 94 00 00 00 00 	cmpl   $0x0,0x94(%ebx)                <== NOT EXECUTED
  108b53:	75 56                	jne    108bab <rtems_termios_enqueue_raw_characters+0x218><== 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;                             
  108b55:	8b 83 b8 00 00 00    	mov    0xb8(%ebx),%eax                <== NOT EXECUTED
  108b5b:	83 c8 02             	or     $0x2,%eax                      <== NOT EXECUTED
  108b5e:	89 83 b8 00 00 00    	mov    %eax,0xb8(%ebx)                <== NOT EXECUTED
            (*tty->device.write)(tty->minor,                          
  108b64:	51                   	push   %ecx                           <== NOT EXECUTED
  108b65:	6a 01                	push   $0x1                           <== NOT EXECUTED
  108b67:	ff 75 d0             	pushl  -0x30(%ebp)                    <== NOT EXECUTED
  108b6a:	ff 73 10             	pushl  0x10(%ebx)                     <== NOT EXECUTED
  108b6d:	ff 93 a4 00 00 00    	call   *0xa4(%ebx)                    <== NOT EXECUTED
  108b73:	eb 33                	jmp    108ba8 <rtems_termios_enqueue_raw_characters+0x215><== NOT EXECUTED
                (void *)&(tty->termios.c_cc[VSTOP]), 1);              
          }                                                           
        } else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF)) == (FL_MDRTS) ) {
  108b75:	8b 83 b8 00 00 00    	mov    0xb8(%ebx),%eax                <== NOT EXECUTED
  108b7b:	25 04 01 00 00       	and    $0x104,%eax                    <== NOT EXECUTED
  108b80:	3d 00 01 00 00       	cmp    $0x100,%eax                    <== NOT EXECUTED
  108b85:	75 24                	jne    108bab <rtems_termios_enqueue_raw_characters+0x218><== NOT EXECUTED
          tty->flow_ctrl |= FL_IRTSOFF;                               
  108b87:	8b 83 b8 00 00 00    	mov    0xb8(%ebx),%eax                <== NOT EXECUTED
  108b8d:	83 c8 04             	or     $0x4,%eax                      <== NOT EXECUTED
  108b90:	89 83 b8 00 00 00    	mov    %eax,0xb8(%ebx)                <== NOT EXECUTED
          /* deactivate RTS line */                                   
          if (tty->device.stopRemoteTx != NULL) {                     
  108b96:	8b 83 ac 00 00 00    	mov    0xac(%ebx),%eax                <== NOT EXECUTED
  108b9c:	85 c0                	test   %eax,%eax                      <== NOT EXECUTED
  108b9e:	74 0b                	je     108bab <rtems_termios_enqueue_raw_characters+0x218><== NOT EXECUTED
            tty->device.stopRemoteTx(tty->minor);                     
  108ba0:	83 ec 0c             	sub    $0xc,%esp                      <== NOT EXECUTED
  108ba3:	ff 73 10             	pushl  0x10(%ebx)                     <== NOT EXECUTED
  108ba6:	ff d0                	call   *%eax                          <== NOT EXECUTED
  108ba8:	83 c4 10             	add    $0x10,%esp                     <== NOT EXECUTED
          }                                                           
        }                                                             
      }                                                               
                                                                      
      /* reenable interrupts */                                       
      rtems_interrupt_enable(level);                                  
  108bab:	ff 75 d8             	pushl  -0x28(%ebp)                    
  108bae:	9d                   	popf                                  
                                                                      
      if (newTail == tty->rawInBuf.Head) {                            
  108baf:	8b 43 5c             	mov    0x5c(%ebx),%eax                
  108bb2:	39 45 e4             	cmp    %eax,-0x1c(%ebp)               
  108bb5:	75 03                	jne    108bba <rtems_termios_enqueue_raw_characters+0x227><== ALWAYS TAKEN
        dropped++;                                                    
  108bb7:	46                   	inc    %esi                           <== NOT EXECUTED
  108bb8:	eb 3c                	jmp    108bf6 <rtems_termios_enqueue_raw_characters+0x263><== NOT EXECUTED
      } else {                                                        
        tty->rawInBuf.theBuf[newTail] = c;                            
  108bba:	8b 43 58             	mov    0x58(%ebx),%eax                
  108bbd:	8a 4d de             	mov    -0x22(%ebp),%cl                
  108bc0:	8b 55 e4             	mov    -0x1c(%ebp),%edx               
  108bc3:	88 0c 10             	mov    %cl,(%eax,%edx,1)              
        tty->rawInBuf.Tail = newTail;                                 
  108bc6:	89 53 60             	mov    %edx,0x60(%ebx)                
                                                                      
        /*                                                            
         * check to see if rcv wakeup callback was set                
         */                                                           
        if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) {
  108bc9:	83 bb e4 00 00 00 00 	cmpl   $0x0,0xe4(%ebx)                
  108bd0:	75 24                	jne    108bf6 <rtems_termios_enqueue_raw_characters+0x263><== NEVER TAKEN
  108bd2:	8b 83 dc 00 00 00    	mov    0xdc(%ebx),%eax                
  108bd8:	85 c0                	test   %eax,%eax                      
  108bda:	74 1a                	je     108bf6 <rtems_termios_enqueue_raw_characters+0x263><== ALWAYS TAKEN
          (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg); 
  108bdc:	52                   	push   %edx                           <== NOT EXECUTED
  108bdd:	52                   	push   %edx                           <== NOT EXECUTED
  108bde:	ff b3 e0 00 00 00    	pushl  0xe0(%ebx)                     <== NOT EXECUTED
  108be4:	ff 75 d4             	pushl  -0x2c(%ebp)                    <== NOT EXECUTED
  108be7:	ff d0                	call   *%eax                          <== NOT EXECUTED
          tty->tty_rcvwakeup = 1;                                     
  108be9:	c7 83 e4 00 00 00 01 	movl   $0x1,0xe4(%ebx)                <== NOT EXECUTED
  108bf0:	00 00 00                                                    
  108bf3:	83 c4 10             	add    $0x10,%esp                     <== NOT EXECUTED
  108bf6:	ff 4d e0             	decl   -0x20(%ebp)                    
      tty->tty_rcvwakeup = 1;                                         
        }                                                             
    return 0;                                                         
  }                                                                   
                                                                      
  while (len--) {                                                     
  108bf9:	83 7d e0 00          	cmpl   $0x0,-0x20(%ebp)               
  108bfd:	0f 85 31 fe ff ff    	jne    108a34 <rtems_termios_enqueue_raw_characters+0xa1>
        }                                                             
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  tty->rawInBufDropped += dropped;                                    
  108c03:	01 73 78             	add    %esi,0x78(%ebx)                
  rtems_semaphore_release (tty->rawInBuf.Semaphore);                  
  108c06:	83 ec 0c             	sub    $0xc,%esp                      
  108c09:	ff 73 68             	pushl  0x68(%ebx)                     
  108c0c:	e8 13 0c 00 00       	call   109824 <rtems_semaphore_release>
  return dropped;                                                     
  108c11:	83 c4 10             	add    $0x10,%esp                     
}                                                                     
  108c14:	89 f0                	mov    %esi,%eax                      
  108c16:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  108c19:	5b                   	pop    %ebx                           
  108c1a:	5e                   	pop    %esi                           
  108c1b:	5f                   	pop    %edi                           
  108c1c:	c9                   	leave                                 
  108c1d:	c3                   	ret                                   
                                                                      

00107d26 <rtems_termios_ioctl>: } } rtems_status_code rtems_termios_ioctl (void *arg) {
  107d26:	55                   	push   %ebp                           
  107d27:	89 e5                	mov    %esp,%ebp                      
  107d29:	57                   	push   %edi                           
  107d2a:	56                   	push   %esi                           
  107d2b:	53                   	push   %ebx                           
  107d2c:	83 ec 20             	sub    $0x20,%esp                     
  rtems_libio_ioctl_args_t *args = arg;                               
  struct rtems_termios_tty *tty = args->iop->data1;                   
  107d2f:	8b 55 08             	mov    0x8(%ebp),%edx                 
  107d32:	8b 02                	mov    (%edx),%eax                    
  107d34:	8b 58 34             	mov    0x34(%eax),%ebx                
  struct ttywakeup         *wakeup = (struct ttywakeup *)args->buffer;
  107d37:	8b 72 08             	mov    0x8(%edx),%esi                 
  rtems_status_code sc;                                               
                                                                      
   args->ioctl_return = 0;                                            
  107d3a:	c7 42 0c 00 00 00 00 	movl   $0x0,0xc(%edx)                 
  sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
  107d41:	6a 00                	push   $0x0                           
  107d43:	6a 00                	push   $0x0                           
  107d45:	ff 73 18             	pushl  0x18(%ebx)                     
  107d48:	e8 eb 19 00 00       	call   109738 <rtems_semaphore_obtain>
  107d4d:	89 45 e4             	mov    %eax,-0x1c(%ebp)               
  if (sc != RTEMS_SUCCESSFUL) {                                       
  107d50:	83 c4 10             	add    $0x10,%esp                     
  107d53:	85 c0                	test   %eax,%eax                      
  107d55:	74 0b                	je     107d62 <rtems_termios_ioctl+0x3c><== ALWAYS TAKEN
    args->ioctl_return = sc;                                          
  107d57:	8b 4d 08             	mov    0x8(%ebp),%ecx                 <== NOT EXECUTED
  107d5a:	89 41 0c             	mov    %eax,0xc(%ecx)                 <== NOT EXECUTED
    return sc;                                                        
  107d5d:	e9 05 03 00 00       	jmp    108067 <rtems_termios_ioctl+0x341><== NOT EXECUTED
  }                                                                   
  switch (args->command) {                                            
  107d62:	8b 55 08             	mov    0x8(%ebp),%edx                 
  107d65:	8b 42 04             	mov    0x4(%edx),%eax                 
  107d68:	83 f8 04             	cmp    $0x4,%eax                      
  107d6b:	0f 84 4d 02 00 00    	je     107fbe <rtems_termios_ioctl+0x298>
  107d71:	77 10                	ja     107d83 <rtems_termios_ioctl+0x5d>
  107d73:	83 f8 02             	cmp    $0x2,%eax                      
  107d76:	74 77                	je     107def <rtems_termios_ioctl+0xc9>
  107d78:	0f 87 1e 02 00 00    	ja     107f9c <rtems_termios_ioctl+0x276>
  107d7e:	48                   	dec    %eax                           
  107d7f:	75 2f                	jne    107db0 <rtems_termios_ioctl+0x8a><== NEVER TAKEN
  107d81:	eb 55                	jmp    107dd8 <rtems_termios_ioctl+0xb2>
  107d83:	3d 7f 66 04 40       	cmp    $0x4004667f,%eax               
  107d88:	0f 84 a5 02 00 00    	je     108033 <rtems_termios_ioctl+0x30d><== NEVER TAKEN
  107d8e:	77 0a                	ja     107d9a <rtems_termios_ioctl+0x74>
  107d90:	83 f8 05             	cmp    $0x5,%eax                      
  107d93:	75 1b                	jne    107db0 <rtems_termios_ioctl+0x8a>
  107d95:	e9 0e 02 00 00       	jmp    107fa8 <rtems_termios_ioctl+0x282>
  107d9a:	3d 1a 74 04 40       	cmp    $0x4004741a,%eax               
  107d9f:	0f 84 7e 02 00 00    	je     108023 <rtems_termios_ioctl+0x2fd>
  107da5:	3d 1b 74 04 80       	cmp    $0x8004741b,%eax               
  107daa:	0f 84 21 02 00 00    	je     107fd1 <rtems_termios_ioctl+0x2ab><== ALWAYS TAKEN
  default:                                                            
    if (rtems_termios_linesw[tty->t_line].l_ioctl != NULL) {          
  107db0:	8b 83 cc 00 00 00    	mov    0xcc(%ebx),%eax                
  107db6:	c1 e0 05             	shl    $0x5,%eax                      
  107db9:	8b 80 10 2e 12 00    	mov    0x122e10(%eax),%eax            
      sc = rtems_termios_linesw[tty->t_line].l_ioctl(tty,args);       
    }                                                                 
    else {                                                            
      sc = RTEMS_INVALID_NUMBER;                                      
  107dbf:	c7 45 e4 0a 00 00 00 	movl   $0xa,-0x1c(%ebp)               
    args->ioctl_return = sc;                                          
    return sc;                                                        
  }                                                                   
  switch (args->command) {                                            
  default:                                                            
    if (rtems_termios_linesw[tty->t_line].l_ioctl != NULL) {          
  107dc6:	85 c0                	test   %eax,%eax                      
  107dc8:	0f 84 82 02 00 00    	je     108050 <rtems_termios_ioctl+0x32a><== NEVER TAKEN
      sc = rtems_termios_linesw[tty->t_line].l_ioctl(tty,args);       
  107dce:	52                   	push   %edx                           
  107dcf:	52                   	push   %edx                           
  107dd0:	ff 75 08             	pushl  0x8(%ebp)                      
  107dd3:	e9 40 02 00 00       	jmp    108018 <rtems_termios_ioctl+0x2f2>
      sc = RTEMS_INVALID_NUMBER;                                      
    }                                                                 
    break;                                                            
                                                                      
  case RTEMS_IO_GET_ATTRIBUTES:                                       
    *(struct termios *)args->buffer = tty->termios;                   
  107dd8:	8b 4d 08             	mov    0x8(%ebp),%ecx                 
  107ddb:	8b 41 08             	mov    0x8(%ecx),%eax                 
  107dde:	8d 73 30             	lea    0x30(%ebx),%esi                
  107de1:	b9 09 00 00 00       	mov    $0x9,%ecx                      
  107de6:	89 c7                	mov    %eax,%edi                      
  107de8:	f3 a5                	rep movsl %ds:(%esi),%es:(%edi)       
    break;                                                            
  107dea:	e9 61 02 00 00       	jmp    108050 <rtems_termios_ioctl+0x32a>
                                                                      
  case RTEMS_IO_SET_ATTRIBUTES:                                       
    tty->termios = *(struct termios *)args->buffer;                   
  107def:	8b 45 08             	mov    0x8(%ebp),%eax                 
  107df2:	8b 70 08             	mov    0x8(%eax),%esi                 
  107df5:	8d 7b 30             	lea    0x30(%ebx),%edi                
  107df8:	b9 09 00 00 00       	mov    $0x9,%ecx                      
  107dfd:	f3 a5                	rep movsl %ds:(%esi),%es:(%edi)       
  /*                                                                  
   * check for flow control options to be switched off                
   */                                                                 
                                                                      
  /* check for outgoing XON/XOFF flow control switched off */         
  if (( tty->flow_ctrl & FL_MDXON) &&                                 
  107dff:	8b 83 b8 00 00 00    	mov    0xb8(%ebx),%eax                
  107e05:	f6 c4 02             	test   $0x2,%ah                       
  107e08:	74 57                	je     107e61 <rtems_termios_ioctl+0x13b>
  107e0a:	f6 43 31 04          	testb  $0x4,0x31(%ebx)                
  107e0e:	75 51                	jne    107e61 <rtems_termios_ioctl+0x13b>
      !(tty->termios.c_iflag & IXON)) {                               
    /* clear related flags in flow_ctrl */                            
    tty->flow_ctrl &= ~(FL_MDXON | FL_ORCVXOF);                       
  107e10:	8b 83 b8 00 00 00    	mov    0xb8(%ebx),%eax                
  107e16:	25 ef fd ff ff       	and    $0xfffffdef,%eax               
  107e1b:	89 83 b8 00 00 00    	mov    %eax,0xb8(%ebx)                
                                                                      
    /* has output been stopped due to received XOFF? */               
    if (tty->flow_ctrl & FL_OSTOP) {                                  
  107e21:	8b 83 b8 00 00 00    	mov    0xb8(%ebx),%eax                
  107e27:	a8 20                	test   $0x20,%al                      
  107e29:	74 36                	je     107e61 <rtems_termios_ioctl+0x13b><== ALWAYS TAKEN
      /* disable interrupts    */                                     
      rtems_interrupt_disable(level);                                 
  107e2b:	9c                   	pushf                                 <== NOT EXECUTED
  107e2c:	fa                   	cli                                   <== NOT EXECUTED
  107e2d:	5e                   	pop    %esi                           <== NOT EXECUTED
      tty->flow_ctrl &= ~FL_OSTOP;                                    
  107e2e:	8b 83 b8 00 00 00    	mov    0xb8(%ebx),%eax                <== NOT EXECUTED
  107e34:	83 e0 df             	and    $0xffffffdf,%eax               <== NOT EXECUTED
  107e37:	89 83 b8 00 00 00    	mov    %eax,0xb8(%ebx)                <== NOT EXECUTED
      /* check for chars in output buffer (or rob_state?) */          
      if (tty->rawOutBufState != rob_idle) {                          
  107e3d:	83 bb 94 00 00 00 00 	cmpl   $0x0,0x94(%ebx)                <== NOT EXECUTED
  107e44:	74 19                	je     107e5f <rtems_termios_ioctl+0x139><== NOT EXECUTED
        /* if chars available, call write function... */              
        (*tty->device.write)(                                         
          tty->minor, &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1); 
  107e46:	8b 83 84 00 00 00    	mov    0x84(%ebx),%eax                <== 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)(                                         
  107e4c:	57                   	push   %edi                           <== NOT EXECUTED
  107e4d:	6a 01                	push   $0x1                           <== NOT EXECUTED
  107e4f:	03 43 7c             	add    0x7c(%ebx),%eax                <== NOT EXECUTED
  107e52:	50                   	push   %eax                           <== NOT EXECUTED
  107e53:	ff 73 10             	pushl  0x10(%ebx)                     <== NOT EXECUTED
  107e56:	ff 93 a4 00 00 00    	call   *0xa4(%ebx)                    <== NOT EXECUTED
  107e5c:	83 c4 10             	add    $0x10,%esp                     <== NOT EXECUTED
          tty->minor, &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1); 
      }                                                               
      /* reenable interrupts */                                       
      rtems_interrupt_enable(level);                                  
  107e5f:	56                   	push   %esi                           <== NOT EXECUTED
  107e60:	9d                   	popf                                  <== NOT EXECUTED
    }                                                                 
  }                                                                   
  /* check for incoming XON/XOFF flow control switched off */         
  if (( tty->flow_ctrl & FL_MDXOF) && !(tty->termios.c_iflag & IXOFF)) {
  107e61:	8b 83 b8 00 00 00    	mov    0xb8(%ebx),%eax                
  107e67:	f6 c4 04             	test   $0x4,%ah                       
  107e6a:	74 24                	je     107e90 <rtems_termios_ioctl+0x16a>
  107e6c:	f6 43 31 10          	testb  $0x10,0x31(%ebx)               
  107e70:	75 1e                	jne    107e90 <rtems_termios_ioctl+0x16a><== NEVER TAKEN
    /* clear related flags in flow_ctrl */                            
    tty->flow_ctrl &= ~(FL_MDXOF);                                    
  107e72:	8b 83 b8 00 00 00    	mov    0xb8(%ebx),%eax                
  107e78:	80 e4 fb             	and    $0xfb,%ah                      
  107e7b:	89 83 b8 00 00 00    	mov    %eax,0xb8(%ebx)                
    /* FIXME: what happens, if we had sent XOFF but not yet XON? */   
    tty->flow_ctrl &= ~(FL_ISNTXOF);                                  
  107e81:	8b 83 b8 00 00 00    	mov    0xb8(%ebx),%eax                
  107e87:	83 e0 fd             	and    $0xfffffffd,%eax               
  107e8a:	89 83 b8 00 00 00    	mov    %eax,0xb8(%ebx)                
  }                                                                   
                                                                      
  /* check for incoming RTS/CTS flow control switched off */          
  if (( tty->flow_ctrl & FL_MDRTS) && !(tty->termios.c_cflag & CRTSCTS)) {
  107e90:	8b 83 b8 00 00 00    	mov    0xb8(%ebx),%eax                
  107e96:	f6 c4 01             	test   $0x1,%ah                       
  107e99:	74 43                	je     107ede <rtems_termios_ioctl+0x1b8><== ALWAYS TAKEN
  107e9b:	83 7b 38 00          	cmpl   $0x0,0x38(%ebx)                <== NOT EXECUTED
  107e9f:	78 3d                	js     107ede <rtems_termios_ioctl+0x1b8><== NOT EXECUTED
    /* clear related flags in flow_ctrl */                            
    tty->flow_ctrl &= ~(FL_MDRTS);                                    
  107ea1:	8b 83 b8 00 00 00    	mov    0xb8(%ebx),%eax                <== NOT EXECUTED
  107ea7:	80 e4 fe             	and    $0xfe,%ah                      <== NOT EXECUTED
  107eaa:	89 83 b8 00 00 00    	mov    %eax,0xb8(%ebx)                <== NOT EXECUTED
                                                                      
    /* restart remote Tx, if it was stopped */                        
    if ((tty->flow_ctrl & FL_IRTSOFF) && (tty->device.startRemoteTx != NULL)) {
  107eb0:	8b 83 b8 00 00 00    	mov    0xb8(%ebx),%eax                <== NOT EXECUTED
  107eb6:	a8 04                	test   $0x4,%al                       <== NOT EXECUTED
  107eb8:	74 15                	je     107ecf <rtems_termios_ioctl+0x1a9><== NOT EXECUTED
  107eba:	8b 83 b0 00 00 00    	mov    0xb0(%ebx),%eax                <== NOT EXECUTED
  107ec0:	85 c0                	test   %eax,%eax                      <== NOT EXECUTED
  107ec2:	74 0b                	je     107ecf <rtems_termios_ioctl+0x1a9><== NOT EXECUTED
      tty->device.startRemoteTx(tty->minor);                          
  107ec4:	83 ec 0c             	sub    $0xc,%esp                      <== NOT EXECUTED
  107ec7:	ff 73 10             	pushl  0x10(%ebx)                     <== NOT EXECUTED
  107eca:	ff d0                	call   *%eax                          <== NOT EXECUTED
  107ecc:	83 c4 10             	add    $0x10,%esp                     <== NOT EXECUTED
    }                                                                 
    tty->flow_ctrl &= ~(FL_IRTSOFF);                                  
  107ecf:	8b 83 b8 00 00 00    	mov    0xb8(%ebx),%eax                <== NOT EXECUTED
  107ed5:	83 e0 fb             	and    $0xfffffffb,%eax               <== NOT EXECUTED
  107ed8:	89 83 b8 00 00 00    	mov    %eax,0xb8(%ebx)                <== 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) {                               
  107ede:	83 7b 38 00          	cmpl   $0x0,0x38(%ebx)                
  107ee2:	79 0f                	jns    107ef3 <rtems_termios_ioctl+0x1cd><== ALWAYS TAKEN
    tty->flow_ctrl |= FL_MDRTS;                                       
  107ee4:	8b 83 b8 00 00 00    	mov    0xb8(%ebx),%eax                <== NOT EXECUTED
  107eea:	80 cc 01             	or     $0x1,%ah                       <== NOT EXECUTED
  107eed:	89 83 b8 00 00 00    	mov    %eax,0xb8(%ebx)                <== NOT EXECUTED
  }                                                                   
  /* check for incoming XON/XOF flow control switched on */           
  if (tty->termios.c_iflag & IXOFF) {                                 
  107ef3:	8b 53 30             	mov    0x30(%ebx),%edx                
  107ef6:	f6 c6 10             	test   $0x10,%dh                      
  107ef9:	74 0f                	je     107f0a <rtems_termios_ioctl+0x1e4>
    tty->flow_ctrl |= FL_MDXOF;                                       
  107efb:	8b 83 b8 00 00 00    	mov    0xb8(%ebx),%eax                
  107f01:	80 cc 04             	or     $0x4,%ah                       
  107f04:	89 83 b8 00 00 00    	mov    %eax,0xb8(%ebx)                
  }                                                                   
  /* check for outgoing XON/XOF flow control switched on */           
  if (tty->termios.c_iflag & IXON) {                                  
  107f0a:	80 e6 04             	and    $0x4,%dh                       
  107f0d:	74 0f                	je     107f1e <rtems_termios_ioctl+0x1f8>
    tty->flow_ctrl |= FL_MDXON;                                       
  107f0f:	8b 83 b8 00 00 00    	mov    0xb8(%ebx),%eax                
  107f15:	80 cc 02             	or     $0x2,%ah                       
  107f18:	89 83 b8 00 00 00    	mov    %eax,0xb8(%ebx)                
    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) {                              
  107f1e:	f6 43 3c 02          	testb  $0x2,0x3c(%ebx)                
  107f22:	75 39                	jne    107f5d <rtems_termios_ioctl+0x237>
      tty->rawInBufSemaphoreOptions = RTEMS_WAIT;                     
      tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT;               
      tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;          
    } else {                                                          
      tty->vtimeTicks = tty->termios.c_cc[VTIME] *                    
  107f24:	0f b6 73 46          	movzbl 0x46(%ebx),%esi                
                    rtems_clock_get_ticks_per_second() / 10;          
  107f28:	e8 6f 12 00 00       	call   10919c <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] *                    
  107f2d:	0f af c6             	imul   %esi,%eax                      
                    rtems_clock_get_ticks_per_second() / 10;          
  107f30:	b9 0a 00 00 00       	mov    $0xa,%ecx                      
  107f35:	31 d2                	xor    %edx,%edx                      
  107f37:	f7 f1                	div    %ecx                           
    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] *                    
  107f39:	89 43 54             	mov    %eax,0x54(%ebx)                
                    rtems_clock_get_ticks_per_second() / 10;          
      if (tty->termios.c_cc[VTIME]) {                                 
  107f3c:	80 7b 46 00          	cmpb   $0x0,0x46(%ebx)                
  107f40:	74 15                	je     107f57 <rtems_termios_ioctl+0x231>
        tty->rawInBufSemaphoreOptions = RTEMS_WAIT;                   
  107f42:	c7 43 6c 00 00 00 00 	movl   $0x0,0x6c(%ebx)                
        tty->rawInBufSemaphoreTimeout = tty->vtimeTicks;              
  107f49:	89 43 70             	mov    %eax,0x70(%ebx)                
        if (tty->termios.c_cc[VMIN])                                  
  107f4c:	80 7b 47 00          	cmpb   $0x0,0x47(%ebx)                
  107f50:	75 19                	jne    107f6b <rtems_termios_ioctl+0x245>
          tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;      
        else                                                          
          tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks;       
  107f52:	89 43 74             	mov    %eax,0x74(%ebx)                
  107f55:	eb 24                	jmp    107f7b <rtems_termios_ioctl+0x255>
      } else {                                                        
        if (tty->termios.c_cc[VMIN]) {                                
  107f57:	80 7b 47 00          	cmpb   $0x0,0x47(%ebx)                
  107f5b:	74 17                	je     107f74 <rtems_termios_ioctl+0x24e><== ALWAYS TAKEN
          tty->rawInBufSemaphoreOptions = RTEMS_WAIT;                 
  107f5d:	c7 43 6c 00 00 00 00 	movl   $0x0,0x6c(%ebx)                
          tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT;           
  107f64:	c7 43 70 00 00 00 00 	movl   $0x0,0x70(%ebx)                
          tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;      
  107f6b:	c7 43 74 00 00 00 00 	movl   $0x0,0x74(%ebx)                
  107f72:	eb 07                	jmp    107f7b <rtems_termios_ioctl+0x255>
        } else {                                                      
          tty->rawInBufSemaphoreOptions = RTEMS_NO_WAIT;              
  107f74:	c7 43 6c 01 00 00 00 	movl   $0x1,0x6c(%ebx)                
        }                                                             
      }                                                               
    }                                                                 
    if (tty->device.setAttributes)                                    
  107f7b:	8b 83 a8 00 00 00    	mov    0xa8(%ebx),%eax                
  107f81:	85 c0                	test   %eax,%eax                      
  107f83:	0f 84 c7 00 00 00    	je     108050 <rtems_termios_ioctl+0x32a><== NEVER TAKEN
      (*tty->device.setAttributes)(tty->minor, &tty->termios);        
  107f89:	56                   	push   %esi                           
  107f8a:	56                   	push   %esi                           
  107f8b:	8d 53 30             	lea    0x30(%ebx),%edx                
  107f8e:	52                   	push   %edx                           
  107f8f:	ff 73 10             	pushl  0x10(%ebx)                     
  107f92:	ff d0                	call   *%eax                          
  107f94:	83 c4 10             	add    $0x10,%esp                     
  107f97:	e9 b4 00 00 00       	jmp    108050 <rtems_termios_ioctl+0x32a>
    break;                                                            
                                                                      
  case RTEMS_IO_TCDRAIN:                                              
    drainOutput (tty);                                                
  107f9c:	89 d8                	mov    %ebx,%eax                      
  107f9e:	e8 55 f7 ff ff       	call   1076f8 <drainOutput>           
    break;                                                            
  107fa3:	e9 a8 00 00 00       	jmp    108050 <rtems_termios_ioctl+0x32a>
                                                                      
  case RTEMS_IO_SNDWAKEUP:                                            
    tty->tty_snd = *wakeup;                                           
  107fa8:	8b 06                	mov    (%esi),%eax                    
  107faa:	8b 56 04             	mov    0x4(%esi),%edx                 
  107fad:	89 83 d4 00 00 00    	mov    %eax,0xd4(%ebx)                
  107fb3:	89 93 d8 00 00 00    	mov    %edx,0xd8(%ebx)                
    break;                                                            
  107fb9:	e9 92 00 00 00       	jmp    108050 <rtems_termios_ioctl+0x32a>
                                                                      
  case RTEMS_IO_RCVWAKEUP:                                            
    tty->tty_rcv = *wakeup;                                           
  107fbe:	8b 06                	mov    (%esi),%eax                    
  107fc0:	8b 56 04             	mov    0x4(%esi),%edx                 
  107fc3:	89 83 dc 00 00 00    	mov    %eax,0xdc(%ebx)                
  107fc9:	89 93 e0 00 00 00    	mov    %edx,0xe0(%ebx)                
    break;                                                            
  107fcf:	eb 7f                	jmp    108050 <rtems_termios_ioctl+0x32a>
#if 1 /* FIXME */                                                     
  case TIOCSETD:                                                      
    /*                                                                
     * close old line discipline                                      
     */                                                               
    if (rtems_termios_linesw[tty->t_line].l_close != NULL) {          
  107fd1:	8b 83 cc 00 00 00    	mov    0xcc(%ebx),%eax                
  107fd7:	c1 e0 05             	shl    $0x5,%eax                      
  107fda:	8b 80 fc 2d 12 00    	mov    0x122dfc(%eax),%eax            
  107fe0:	85 c0                	test   %eax,%eax                      
  107fe2:	74 0c                	je     107ff0 <rtems_termios_ioctl+0x2ca>
      sc = rtems_termios_linesw[tty->t_line].l_close(tty);            
  107fe4:	83 ec 0c             	sub    $0xc,%esp                      
  107fe7:	53                   	push   %ebx                           
  107fe8:	ff d0                	call   *%eax                          
  107fea:	89 45 e4             	mov    %eax,-0x1c(%ebp)               
  107fed:	83 c4 10             	add    $0x10,%esp                     
    }                                                                 
    tty->t_line=*(int*)(args->buffer);                                
  107ff0:	8b 55 08             	mov    0x8(%ebp),%edx                 
  107ff3:	8b 42 08             	mov    0x8(%edx),%eax                 
  107ff6:	8b 00                	mov    (%eax),%eax                    
  107ff8:	89 83 cc 00 00 00    	mov    %eax,0xcc(%ebx)                
    tty->t_sc = NULL; /* ensure that no more valid data */            
  107ffe:	c7 83 d0 00 00 00 00 	movl   $0x0,0xd0(%ebx)                
  108005:	00 00 00                                                    
    /*                                                                
     * open new line discipline                                       
     */                                                               
    if (rtems_termios_linesw[tty->t_line].l_open != NULL) {           
  108008:	c1 e0 05             	shl    $0x5,%eax                      
  10800b:	8b 80 f8 2d 12 00    	mov    0x122df8(%eax),%eax            
  108011:	85 c0                	test   %eax,%eax                      
  108013:	74 3b                	je     108050 <rtems_termios_ioctl+0x32a>
      sc = rtems_termios_linesw[tty->t_line].l_open(tty);             
  108015:	83 ec 0c             	sub    $0xc,%esp                      
  108018:	53                   	push   %ebx                           
  108019:	ff d0                	call   *%eax                          
  10801b:	89 45 e4             	mov    %eax,-0x1c(%ebp)               
  10801e:	e9 71 ff ff ff       	jmp    107f94 <rtems_termios_ioctl+0x26e>
    }                                                                 
    break;                                                            
  case TIOCGETD:                                                      
    *(int*)(args->buffer)=tty->t_line;                                
  108023:	8b 4d 08             	mov    0x8(%ebp),%ecx                 
  108026:	8b 41 08             	mov    0x8(%ecx),%eax                 
  108029:	8b 93 cc 00 00 00    	mov    0xcc(%ebx),%edx                
  10802f:	89 10                	mov    %edx,(%eax)                    
    break;                                                            
  108031:	eb 1d                	jmp    108050 <rtems_termios_ioctl+0x32a>
#endif                                                                
   case FIONREAD: {                                                   
      int rawnc = tty->rawInBuf.Tail - tty->rawInBuf.Head;            
  108033:	8b 43 60             	mov    0x60(%ebx),%eax                <== NOT EXECUTED
  108036:	8b 53 5c             	mov    0x5c(%ebx),%edx                <== NOT EXECUTED
      if ( rawnc < 0 )                                                
  108039:	29 d0                	sub    %edx,%eax                      <== NOT EXECUTED
  10803b:	79 05                	jns    108042 <rtems_termios_ioctl+0x31c><== NOT EXECUTED
        rawnc += tty->rawInBuf.Size;                                  
  10803d:	8b 53 64             	mov    0x64(%ebx),%edx                <== NOT EXECUTED
  108040:	01 d0                	add    %edx,%eax                      <== NOT EXECUTED
      /* Half guess that this is the right operation */               
      *(int *)args->buffer = tty->ccount - tty->cindex + rawnc;       
  108042:	8b 4d 08             	mov    0x8(%ebp),%ecx                 <== NOT EXECUTED
  108045:	8b 51 08             	mov    0x8(%ecx),%edx                 <== NOT EXECUTED
  108048:	03 43 20             	add    0x20(%ebx),%eax                <== NOT EXECUTED
  10804b:	2b 43 24             	sub    0x24(%ebx),%eax                <== NOT EXECUTED
  10804e:	89 02                	mov    %eax,(%edx)                    <== NOT EXECUTED
    }                                                                 
    break;                                                            
  }                                                                   
                                                                      
  rtems_semaphore_release (tty->osem);                                
  108050:	83 ec 0c             	sub    $0xc,%esp                      
  108053:	ff 73 18             	pushl  0x18(%ebx)                     
  108056:	e8 c9 17 00 00       	call   109824 <rtems_semaphore_release>
  args->ioctl_return = sc;                                            
  10805b:	8b 55 e4             	mov    -0x1c(%ebp),%edx               
  10805e:	8b 45 08             	mov    0x8(%ebp),%eax                 
  108061:	89 50 0c             	mov    %edx,0xc(%eax)                 
  return sc;                                                          
  108064:	83 c4 10             	add    $0x10,%esp                     
}                                                                     
  108067:	8b 45 e4             	mov    -0x1c(%ebp),%eax               
  10806a:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  10806d:	5b                   	pop    %ebx                           
  10806e:	5e                   	pop    %esi                           
  10806f:	5f                   	pop    %edi                           
  108070:	c9                   	leave                                 
  108071:	c3                   	ret                                   
                                                                      

00107755 <rtems_termios_open>: rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) {
  107755:	55                   	push   %ebp                           
  107756:	89 e5                	mov    %esp,%ebp                      
  107758:	57                   	push   %edi                           
  107759:	56                   	push   %esi                           
  10775a:	53                   	push   %ebx                           
  10775b:	83 ec 20             	sub    $0x20,%esp                     
  struct rtems_termios_tty *tty;                                      
                                                                      
  /*                                                                  
   * See if the device has already been opened                        
   */                                                                 
  sc = rtems_semaphore_obtain(                                        
  10775e:	6a 00                	push   $0x0                           
  107760:	6a 00                	push   $0x0                           
  107762:	ff 35 44 31 12 00    	pushl  0x123144                       
  107768:	e8 cb 1f 00 00       	call   109738 <rtems_semaphore_obtain>
  10776d:	89 45 e4             	mov    %eax,-0x1c(%ebp)               
    rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT);            
  if (sc != RTEMS_SUCCESSFUL)                                         
  107770:	83 c4 10             	add    $0x10,%esp                     
  107773:	85 c0                	test   %eax,%eax                      
  107775:	0f 85 d3 03 00 00    	jne    107b4e <rtems_termios_open+0x3f9><== NEVER TAKEN
    return sc;                                                        
                                                                      
  for (tty = rtems_termios_ttyHead ; tty != NULL ; tty = tty->forw) { 
  10777b:	8b 35 4c 31 12 00    	mov    0x12314c,%esi                  
  107781:	89 f2                	mov    %esi,%edx                      
  107783:	eb 16                	jmp    10779b <rtems_termios_open+0x46>
    if ((tty->major == major) && (tty->minor == minor))               
  107785:	8b 45 08             	mov    0x8(%ebp),%eax                 
  107788:	39 42 0c             	cmp    %eax,0xc(%edx)                 
  10778b:	75 0c                	jne    107799 <rtems_termios_open+0x44>
  10778d:	8b 4d 0c             	mov    0xc(%ebp),%ecx                 
  107790:	39 4a 10             	cmp    %ecx,0x10(%edx)                
  107793:	0f 84 26 03 00 00    	je     107abf <rtems_termios_open+0x36a><== ALWAYS TAKEN
  sc = rtems_semaphore_obtain(                                        
    rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT);            
  if (sc != RTEMS_SUCCESSFUL)                                         
    return sc;                                                        
                                                                      
  for (tty = rtems_termios_ttyHead ; tty != NULL ; tty = tty->forw) { 
  107799:	8b 12                	mov    (%edx),%edx                    
  10779b:	85 d2                	test   %edx,%edx                      
  10779d:	75 e6                	jne    107785 <rtems_termios_open+0x30>
  10779f:	e9 b5 03 00 00       	jmp    107b59 <rtems_termios_open+0x404>
    /*                                                                
     * Create a new device                                            
     */                                                               
    tty = calloc (1, sizeof (struct rtems_termios_tty));              
    if (tty == NULL) {                                                
      rtems_semaphore_release (rtems_termios_ttyMutex);               
  1077a4:	83 ec 0c             	sub    $0xc,%esp                      
  1077a7:	eb 30                	jmp    1077d9 <rtems_termios_open+0x84>
      return RTEMS_NO_MEMORY;                                         
    }                                                                 
    /*                                                                
     * allocate raw input buffer                                      
     */                                                               
    tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE;                       
  1077a9:	a1 38 10 12 00       	mov    0x121038,%eax                  
  1077ae:	89 42 64             	mov    %eax,0x64(%edx)                
    tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size);               
  1077b1:	8b 42 64             	mov    0x64(%edx),%eax                
  1077b4:	83 ec 0c             	sub    $0xc,%esp                      
  1077b7:	50                   	push   %eax                           
  1077b8:	89 55 e0             	mov    %edx,-0x20(%ebp)               
  1077bb:	e8 74 f4 ff ff       	call   106c34 <malloc>                
  1077c0:	89 c7                	mov    %eax,%edi                      
  1077c2:	8b 55 e0             	mov    -0x20(%ebp),%edx               
  1077c5:	89 42 58             	mov    %eax,0x58(%edx)                
    if (tty->rawInBuf.theBuf == NULL) {                               
  1077c8:	83 c4 10             	add    $0x10,%esp                     
  1077cb:	85 c0                	test   %eax,%eax                      
  1077cd:	75 24                	jne    1077f3 <rtems_termios_open+0x9e>
            free(tty);                                                
  1077cf:	83 ec 0c             	sub    $0xc,%esp                      
  1077d2:	52                   	push   %edx                           
  1077d3:	e8 c0 f1 ff ff       	call   106998 <free>                  
      rtems_semaphore_release (rtems_termios_ttyMutex);               
  1077d8:	5b                   	pop    %ebx                           
  1077d9:	ff 35 44 31 12 00    	pushl  0x123144                       
  1077df:	e8 40 20 00 00       	call   109824 <rtems_semaphore_release>
      return RTEMS_NO_MEMORY;                                         
  1077e4:	83 c4 10             	add    $0x10,%esp                     
  1077e7:	c7 45 e4 1a 00 00 00 	movl   $0x1a,-0x1c(%ebp)              
  1077ee:	e9 5b 03 00 00       	jmp    107b4e <rtems_termios_open+0x3f9>
    }                                                                 
    /*                                                                
     * allocate raw output buffer                                     
     */                                                               
    tty->rawOutBuf.Size = RAW_OUTPUT_BUFFER_SIZE;                     
  1077f3:	a1 3c 10 12 00       	mov    0x12103c,%eax                  
  1077f8:	89 82 88 00 00 00    	mov    %eax,0x88(%edx)                
    tty->rawOutBuf.theBuf = malloc (tty->rawOutBuf.Size);             
  1077fe:	8b 82 88 00 00 00    	mov    0x88(%edx),%eax                
  107804:	83 ec 0c             	sub    $0xc,%esp                      
  107807:	50                   	push   %eax                           
  107808:	89 55 e0             	mov    %edx,-0x20(%ebp)               
  10780b:	e8 24 f4 ff ff       	call   106c34 <malloc>                
  107810:	8b 55 e0             	mov    -0x20(%ebp),%edx               
  107813:	89 42 7c             	mov    %eax,0x7c(%edx)                
    if (tty->rawOutBuf.theBuf == NULL) {                              
  107816:	83 c4 10             	add    $0x10,%esp                     
  107819:	85 c0                	test   %eax,%eax                      
  10781b:	75 05                	jne    107822 <rtems_termios_open+0xcd><== ALWAYS TAKEN
            free((void *)(tty->rawInBuf.theBuf));                     
  10781d:	83 ec 0c             	sub    $0xc,%esp                      <== NOT EXECUTED
  107820:	eb 2e                	jmp    107850 <rtems_termios_open+0xfb><== NOT EXECUTED
      return RTEMS_NO_MEMORY;                                         
    }                                                                 
    /*                                                                
     * allocate cooked buffer                                         
     */                                                               
    tty->cbuf  = malloc (CBUFSIZE);                                   
  107822:	83 ec 0c             	sub    $0xc,%esp                      
  107825:	ff 35 34 10 12 00    	pushl  0x121034                       
  10782b:	89 55 e0             	mov    %edx,-0x20(%ebp)               
  10782e:	89 45 dc             	mov    %eax,-0x24(%ebp)               
  107831:	e8 fe f3 ff ff       	call   106c34 <malloc>                
  107836:	8b 55 e0             	mov    -0x20(%ebp),%edx               
  107839:	89 42 1c             	mov    %eax,0x1c(%edx)                
    if (tty->cbuf == NULL) {                                          
  10783c:	83 c4 10             	add    $0x10,%esp                     
  10783f:	85 c0                	test   %eax,%eax                      
  107841:	8b 4d dc             	mov    -0x24(%ebp),%ecx               
  107844:	75 19                	jne    10785f <rtems_termios_open+0x10a>
            free((void *)(tty->rawOutBuf.theBuf));                    
  107846:	83 ec 0c             	sub    $0xc,%esp                      
  107849:	51                   	push   %ecx                           
  10784a:	e8 49 f1 ff ff       	call   106998 <free>                  
            free((void *)(tty->rawInBuf.theBuf));                     
  10784f:	59                   	pop    %ecx                           
  107850:	57                   	push   %edi                           
  107851:	e8 42 f1 ff ff       	call   106998 <free>                  
            free(tty);                                                
  107856:	5a                   	pop    %edx                           
  107857:	8b 55 e0             	mov    -0x20(%ebp),%edx               
  10785a:	e9 73 ff ff ff       	jmp    1077d2 <rtems_termios_open+0x7d>
      return RTEMS_NO_MEMORY;                                         
    }                                                                 
    /*                                                                
     * Initialize wakeup callbacks                                    
     */                                                               
    tty->tty_snd.sw_pfn = NULL;                                       
  10785f:	c7 82 d4 00 00 00 00 	movl   $0x0,0xd4(%edx)                
  107866:	00 00 00                                                    
    tty->tty_snd.sw_arg = NULL;                                       
  107869:	c7 82 d8 00 00 00 00 	movl   $0x0,0xd8(%edx)                
  107870:	00 00 00                                                    
    tty->tty_rcv.sw_pfn = NULL;                                       
  107873:	c7 82 dc 00 00 00 00 	movl   $0x0,0xdc(%edx)                
  10787a:	00 00 00                                                    
    tty->tty_rcv.sw_arg = NULL;                                       
  10787d:	c7 82 e0 00 00 00 00 	movl   $0x0,0xe0(%edx)                
  107884:	00 00 00                                                    
    tty->tty_rcvwakeup  = 0;                                          
  107887:	c7 82 e4 00 00 00 00 	movl   $0x0,0xe4(%edx)                
  10788e:	00 00 00                                                    
                                                                      
    /*                                                                
     * link tty                                                       
     */                                                               
    tty->forw = rtems_termios_ttyHead;                                
  107891:	89 32                	mov    %esi,(%edx)                    
    tty->back = NULL;                                                 
  107893:	c7 42 04 00 00 00 00 	movl   $0x0,0x4(%edx)                 
    if (rtems_termios_ttyHead != NULL)                                
  10789a:	85 f6                	test   %esi,%esi                      
  10789c:	74 03                	je     1078a1 <rtems_termios_open+0x14c>
      rtems_termios_ttyHead->back = tty;                              
  10789e:	89 56 04             	mov    %edx,0x4(%esi)                 
    rtems_termios_ttyHead = tty;                                      
  1078a1:	89 1d 4c 31 12 00    	mov    %ebx,0x12314c                  
    if (rtems_termios_ttyTail == NULL)                                
  1078a7:	83 3d 48 31 12 00 00 	cmpl   $0x0,0x123148                  
  1078ae:	75 06                	jne    1078b6 <rtems_termios_open+0x161>
      rtems_termios_ttyTail = tty;                                    
  1078b0:	89 1d 48 31 12 00    	mov    %ebx,0x123148                  
                                                                      
    tty->minor = minor;                                               
  1078b6:	8b 45 0c             	mov    0xc(%ebp),%eax                 
  1078b9:	89 43 10             	mov    %eax,0x10(%ebx)                
    tty->major = major;                                               
  1078bc:	8b 4d 08             	mov    0x8(%ebp),%ecx                 
  1078bf:	89 4b 0c             	mov    %ecx,0xc(%ebx)                 
                                                                      
    /*                                                                
     * Set up mutex semaphores                                        
     */                                                               
    sc = rtems_semaphore_create (                                     
  1078c2:	83 ec 0c             	sub    $0xc,%esp                      
  1078c5:	8d 43 14             	lea    0x14(%ebx),%eax                
  1078c8:	50                   	push   %eax                           
  1078c9:	6a 00                	push   $0x0                           
  1078cb:	6a 54                	push   $0x54                          
  1078cd:	6a 01                	push   $0x1                           
      rtems_build_name ('T', 'R', 'i', c),                            
  1078cf:	0f be 05 40 10 12 00 	movsbl 0x121040,%eax                  
    tty->major = major;                                               
                                                                      
    /*                                                                
     * Set up mutex semaphores                                        
     */                                                               
    sc = rtems_semaphore_create (                                     
  1078d6:	0d 00 69 52 54       	or     $0x54526900,%eax               
  1078db:	50                   	push   %eax                           
  1078dc:	89 55 e0             	mov    %edx,-0x20(%ebp)               
  1078df:	e8 2c 1c 00 00       	call   109510 <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)                                       
  1078e4:	83 c4 20             	add    $0x20,%esp                     
  1078e7:	85 c0                	test   %eax,%eax                      
  1078e9:	8b 55 e0             	mov    -0x20(%ebp),%edx               
  1078ec:	0f 85 42 02 00 00    	jne    107b34 <rtems_termios_open+0x3df>
      rtems_fatal_error_occurred (sc);                                
    sc = rtems_semaphore_create (                                     
  1078f2:	83 ec 0c             	sub    $0xc,%esp                      
  1078f5:	8d 43 18             	lea    0x18(%ebx),%eax                
  1078f8:	50                   	push   %eax                           
  1078f9:	6a 00                	push   $0x0                           
  1078fb:	6a 54                	push   $0x54                          
  1078fd:	6a 01                	push   $0x1                           
      rtems_build_name ('T', 'R', 'o', c),                            
  1078ff:	0f be 05 40 10 12 00 	movsbl 0x121040,%eax                  
      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 (                                     
  107906:	0d 00 6f 52 54       	or     $0x54526f00,%eax               
  10790b:	50                   	push   %eax                           
  10790c:	89 55 e0             	mov    %edx,-0x20(%ebp)               
  10790f:	e8 fc 1b 00 00       	call   109510 <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)                                       
  107914:	83 c4 20             	add    $0x20,%esp                     
  107917:	85 c0                	test   %eax,%eax                      
  107919:	8b 55 e0             	mov    -0x20(%ebp),%edx               
  10791c:	0f 85 12 02 00 00    	jne    107b34 <rtems_termios_open+0x3df>
      rtems_fatal_error_occurred (sc);                                
    sc = rtems_semaphore_create (                                     
  107922:	83 ec 0c             	sub    $0xc,%esp                      
  107925:	8d 83 8c 00 00 00    	lea    0x8c(%ebx),%eax                
  10792b:	50                   	push   %eax                           
  10792c:	6a 00                	push   $0x0                           
  10792e:	6a 20                	push   $0x20                          
  107930:	6a 00                	push   $0x0                           
      rtems_build_name ('T', 'R', 'x', c),                            
  107932:	0f be 05 40 10 12 00 	movsbl 0x121040,%eax                  
      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 (                                     
  107939:	0d 00 78 52 54       	or     $0x54527800,%eax               
  10793e:	50                   	push   %eax                           
  10793f:	89 55 e0             	mov    %edx,-0x20(%ebp)               
  107942:	e8 c9 1b 00 00       	call   109510 <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)                                       
  107947:	83 c4 20             	add    $0x20,%esp                     
  10794a:	85 c0                	test   %eax,%eax                      
  10794c:	8b 55 e0             	mov    -0x20(%ebp),%edx               
  10794f:	0f 85 df 01 00 00    	jne    107b34 <rtems_termios_open+0x3df>
      rtems_fatal_error_occurred (sc);                                
    tty->rawOutBufState = rob_idle;                                   
  107955:	c7 83 94 00 00 00 00 	movl   $0x0,0x94(%ebx)                
  10795c:	00 00 00                                                    
                                                                      
    /*                                                                
     * Set callbacks                                                  
     */                                                               
    tty->device = *callbacks;                                         
  10795f:	8d bb 98 00 00 00    	lea    0x98(%ebx),%edi                
  107965:	b9 08 00 00 00       	mov    $0x8,%ecx                      
  10796a:	8b 75 14             	mov    0x14(%ebp),%esi                
  10796d:	f3 a5                	rep movsl %ds:(%esi),%es:(%edi)       
                                                                      
    /*                                                                
     * Create I/O tasks                                               
     */                                                               
    if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {    
  10796f:	83 bb b4 00 00 00 02 	cmpl   $0x2,0xb4(%ebx)                
  107976:	75 74                	jne    1079ec <rtems_termios_open+0x297>
      sc = rtems_task_create (                                        
  107978:	50                   	push   %eax                           
  107979:	50                   	push   %eax                           
  10797a:	8d 83 c8 00 00 00    	lea    0xc8(%ebx),%eax                
  107980:	50                   	push   %eax                           
  107981:	6a 00                	push   $0x0                           
  107983:	68 00 05 00 00       	push   $0x500                         
  107988:	68 00 04 00 00       	push   $0x400                         
  10798d:	6a 0a                	push   $0xa                           
                                   rtems_build_name ('T', 'x', 'T', c),
  10798f:	0f be 05 40 10 12 00 	movsbl 0x121040,%eax                  
                                                                      
    /*                                                                
     * Create I/O tasks                                               
     */                                                               
    if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {    
      sc = rtems_task_create (                                        
  107996:	0d 00 54 78 54       	or     $0x54785400,%eax               
  10799b:	50                   	push   %eax                           
  10799c:	89 55 e0             	mov    %edx,-0x20(%ebp)               
  10799f:	e8 10 1f 00 00       	call   1098b4 <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)                                     
  1079a4:	83 c4 20             	add    $0x20,%esp                     
  1079a7:	85 c0                	test   %eax,%eax                      
  1079a9:	8b 55 e0             	mov    -0x20(%ebp),%edx               
  1079ac:	0f 85 82 01 00 00    	jne    107b34 <rtems_termios_open+0x3df><== NEVER TAKEN
        rtems_fatal_error_occurred (sc);                              
      sc = rtems_task_create (                                        
  1079b2:	57                   	push   %edi                           
  1079b3:	57                   	push   %edi                           
  1079b4:	8d 83 c4 00 00 00    	lea    0xc4(%ebx),%eax                
  1079ba:	50                   	push   %eax                           
  1079bb:	6a 00                	push   $0x0                           
  1079bd:	68 00 05 00 00       	push   $0x500                         
  1079c2:	68 00 04 00 00       	push   $0x400                         
  1079c7:	6a 09                	push   $0x9                           
                                   rtems_build_name ('R', 'x', 'T', c),
  1079c9:	0f be 05 40 10 12 00 	movsbl 0x121040,%eax                  
           RTEMS_NO_ASR,                                              
           RTEMS_NO_FLOATING_POINT | RTEMS_LOCAL,                     
           &tty->txTaskId);                                           
      if (sc != RTEMS_SUCCESSFUL)                                     
        rtems_fatal_error_occurred (sc);                              
      sc = rtems_task_create (                                        
  1079d0:	0d 00 54 78 52       	or     $0x52785400,%eax               
  1079d5:	50                   	push   %eax                           
  1079d6:	89 55 e0             	mov    %edx,-0x20(%ebp)               
  1079d9:	e8 d6 1e 00 00       	call   1098b4 <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)                                     
  1079de:	83 c4 20             	add    $0x20,%esp                     
  1079e1:	85 c0                	test   %eax,%eax                      
  1079e3:	8b 55 e0             	mov    -0x20(%ebp),%edx               
  1079e6:	0f 85 48 01 00 00    	jne    107b34 <rtems_termios_open+0x3df><== NEVER TAKEN
        rtems_fatal_error_occurred (sc);                              
                                                                      
    }                                                                 
    if ((tty->device.pollRead == NULL) ||                             
  1079ec:	83 bb a0 00 00 00 00 	cmpl   $0x0,0xa0(%ebx)                
  1079f3:	74 09                	je     1079fe <rtems_termios_open+0x2a9>
  1079f5:	83 bb b4 00 00 00 02 	cmpl   $0x2,0xb4(%ebx)                
  1079fc:	75 30                	jne    107a2e <rtems_termios_open+0x2d9>
        (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)){   
      sc = rtems_semaphore_create (                                   
  1079fe:	83 ec 0c             	sub    $0xc,%esp                      
  107a01:	8d 43 68             	lea    0x68(%ebx),%eax                
  107a04:	50                   	push   %eax                           
  107a05:	6a 00                	push   $0x0                           
  107a07:	6a 24                	push   $0x24                          
  107a09:	6a 00                	push   $0x0                           
        rtems_build_name ('T', 'R', 'r', c),                          
  107a0b:	0f be 05 40 10 12 00 	movsbl 0x121040,%eax                  
        rtems_fatal_error_occurred (sc);                              
                                                                      
    }                                                                 
    if ((tty->device.pollRead == NULL) ||                             
        (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)){   
      sc = rtems_semaphore_create (                                   
  107a12:	0d 00 72 52 54       	or     $0x54527200,%eax               
  107a17:	50                   	push   %eax                           
  107a18:	89 55 e0             	mov    %edx,-0x20(%ebp)               
  107a1b:	e8 f0 1a 00 00       	call   109510 <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)                                     
  107a20:	83 c4 20             	add    $0x20,%esp                     
  107a23:	85 c0                	test   %eax,%eax                      
  107a25:	8b 55 e0             	mov    -0x20(%ebp),%edx               
  107a28:	0f 85 06 01 00 00    	jne    107b34 <rtems_termios_open+0x3df>
    }                                                                 
                                                                      
    /*                                                                
     * Set default parameters                                         
     */                                                               
    tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL;           
  107a2e:	c7 43 30 02 25 00 00 	movl   $0x2502,0x30(%ebx)             
    tty->termios.c_oflag = OPOST | ONLCR | XTABS;                     
  107a35:	c7 43 34 05 18 00 00 	movl   $0x1805,0x34(%ebx)             
    tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL;              
  107a3c:	c7 43 38 bd 08 00 00 	movl   $0x8bd,0x38(%ebx)              
    tty->termios.c_lflag =                                            
  107a43:	c7 43 3c 3b 82 00 00 	movl   $0x823b,0x3c(%ebx)             
       ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL;       
                                                                      
    tty->termios.c_cc[VINTR] = '\003';                                
  107a4a:	c6 43 41 03          	movb   $0x3,0x41(%ebx)                
    tty->termios.c_cc[VQUIT] = '\034';                                
  107a4e:	c6 43 42 1c          	movb   $0x1c,0x42(%ebx)               
    tty->termios.c_cc[VERASE] = '\177';                               
  107a52:	c6 43 43 7f          	movb   $0x7f,0x43(%ebx)               
    tty->termios.c_cc[VKILL] = '\025';                                
  107a56:	c6 43 44 15          	movb   $0x15,0x44(%ebx)               
    tty->termios.c_cc[VEOF] = '\004';                                 
  107a5a:	c6 43 45 04          	movb   $0x4,0x45(%ebx)                
    tty->termios.c_cc[VEOL] = '\000';                                 
  107a5e:	c6 43 4c 00          	movb   $0x0,0x4c(%ebx)                
    tty->termios.c_cc[VEOL2] = '\000';                                
  107a62:	c6 43 51 00          	movb   $0x0,0x51(%ebx)                
    tty->termios.c_cc[VSTART] = '\021';                               
  107a66:	c6 43 49 11          	movb   $0x11,0x49(%ebx)               
    tty->termios.c_cc[VSTOP] = '\023';                                
  107a6a:	c6 43 4a 13          	movb   $0x13,0x4a(%ebx)               
    tty->termios.c_cc[VSUSP] = '\032';                                
  107a6e:	c6 43 4b 1a          	movb   $0x1a,0x4b(%ebx)               
    tty->termios.c_cc[VREPRINT] = '\022';                             
  107a72:	c6 43 4d 12          	movb   $0x12,0x4d(%ebx)               
    tty->termios.c_cc[VDISCARD] = '\017';                             
  107a76:	c6 43 4e 0f          	movb   $0xf,0x4e(%ebx)                
    tty->termios.c_cc[VWERASE] = '\027';                              
  107a7a:	c6 43 4f 17          	movb   $0x17,0x4f(%ebx)               
    tty->termios.c_cc[VLNEXT] = '\026';                               
  107a7e:	c6 43 50 16          	movb   $0x16,0x50(%ebx)               
                                                                      
    /* start with no flow control, clear flow control flags */        
    tty->flow_ctrl = 0;                                               
  107a82:	c7 83 b8 00 00 00 00 	movl   $0x0,0xb8(%ebx)                
  107a89:	00 00 00                                                    
    /*                                                                
     * set low/highwater mark for XON/XOFF support                    
     */                                                               
    tty->lowwater  = tty->rawInBuf.Size * 1/2;                        
  107a8c:	8b 43 64             	mov    0x64(%ebx),%eax                
  107a8f:	d1 e8                	shr    %eax                           
  107a91:	89 83 bc 00 00 00    	mov    %eax,0xbc(%ebx)                
    tty->highwater = tty->rawInBuf.Size * 3/4;                        
  107a97:	8b 43 64             	mov    0x64(%ebx),%eax                
  107a9a:	8d 04 40             	lea    (%eax,%eax,2),%eax             
  107a9d:	c1 e8 02             	shr    $0x2,%eax                      
  107aa0:	89 83 c0 00 00 00    	mov    %eax,0xc0(%ebx)                
    /*                                                                
     * Bump name characer                                             
     */                                                               
    if (c++ == 'z')                                                   
  107aa6:	a0 40 10 12 00       	mov    0x121040,%al                   
  107aab:	8d 48 01             	lea    0x1(%eax),%ecx                 
  107aae:	88 0d 40 10 12 00    	mov    %cl,0x121040                   
  107ab4:	3c 7a                	cmp    $0x7a,%al                      
  107ab6:	75 07                	jne    107abf <rtems_termios_open+0x36a>
      c = 'a';                                                        
  107ab8:	c6 05 40 10 12 00 61 	movb   $0x61,0x121040                 
                                                                      
  }                                                                   
  args->iop->data1 = tty;                                             
  107abf:	8b 4d 10             	mov    0x10(%ebp),%ecx                
  107ac2:	8b 01                	mov    (%ecx),%eax                    
  107ac4:	89 50 34             	mov    %edx,0x34(%eax)                
  if (!tty->refcount++) {                                             
  107ac7:	8b 42 08             	mov    0x8(%edx),%eax                 
  107aca:	8d 48 01             	lea    0x1(%eax),%ecx                 
  107acd:	89 4a 08             	mov    %ecx,0x8(%edx)                 
  107ad0:	85 c0                	test   %eax,%eax                      
  107ad2:	75 69                	jne    107b3d <rtems_termios_open+0x3e8>
    if (tty->device.firstOpen)                                        
  107ad4:	8b 82 98 00 00 00    	mov    0x98(%edx),%eax                
  107ada:	85 c0                	test   %eax,%eax                      
  107adc:	74 15                	je     107af3 <rtems_termios_open+0x39e>
      (*tty->device.firstOpen)(major, minor, arg);                    
  107ade:	56                   	push   %esi                           
  107adf:	ff 75 10             	pushl  0x10(%ebp)                     
  107ae2:	ff 75 0c             	pushl  0xc(%ebp)                      
  107ae5:	ff 75 08             	pushl  0x8(%ebp)                      
  107ae8:	89 55 e0             	mov    %edx,-0x20(%ebp)               
  107aeb:	ff d0                	call   *%eax                          
  107aed:	83 c4 10             	add    $0x10,%esp                     
  107af0:	8b 55 e0             	mov    -0x20(%ebp),%edx               
                                                                      
    /*                                                                
     * start I/O tasks, if needed                                     
     */                                                               
    if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {    
  107af3:	83 ba b4 00 00 00 02 	cmpl   $0x2,0xb4(%edx)                
  107afa:	75 41                	jne    107b3d <rtems_termios_open+0x3e8>
      sc = rtems_task_start(                                          
  107afc:	53                   	push   %ebx                           
  107afd:	52                   	push   %edx                           
  107afe:	68 1e 8c 10 00       	push   $0x108c1e                      
  107b03:	ff b2 c4 00 00 00    	pushl  0xc4(%edx)                     
  107b09:	89 55 e0             	mov    %edx,-0x20(%ebp)               
  107b0c:	e8 17 20 00 00       	call   109b28 <rtems_task_start>      
        tty->rxTaskId, rtems_termios_rxdaemon, (rtems_task_argument)tty);
      if (sc != RTEMS_SUCCESSFUL)                                     
  107b11:	83 c4 10             	add    $0x10,%esp                     
  107b14:	85 c0                	test   %eax,%eax                      
  107b16:	8b 55 e0             	mov    -0x20(%ebp),%edx               
  107b19:	75 19                	jne    107b34 <rtems_termios_open+0x3df><== NEVER TAKEN
        rtems_fatal_error_occurred (sc);                              
                                                                      
      sc = rtems_task_start(                                          
  107b1b:	51                   	push   %ecx                           
  107b1c:	52                   	push   %edx                           
  107b1d:	68 50 8e 10 00       	push   $0x108e50                      
  107b22:	ff b2 c8 00 00 00    	pushl  0xc8(%edx)                     
  107b28:	e8 fb 1f 00 00       	call   109b28 <rtems_task_start>      
        tty->txTaskId, rtems_termios_txdaemon, (rtems_task_argument)tty);
      if (sc != RTEMS_SUCCESSFUL)                                     
  107b2d:	83 c4 10             	add    $0x10,%esp                     
  107b30:	85 c0                	test   %eax,%eax                      
  107b32:	74 09                	je     107b3d <rtems_termios_open+0x3e8><== ALWAYS TAKEN
        rtems_fatal_error_occurred (sc);                              
  107b34:	83 ec 0c             	sub    $0xc,%esp                      
  107b37:	50                   	push   %eax                           
  107b38:	e8 c3 21 00 00       	call   109d00 <rtems_fatal_error_occurred>
    }                                                                 
  }                                                                   
  rtems_semaphore_release (rtems_termios_ttyMutex);                   
  107b3d:	83 ec 0c             	sub    $0xc,%esp                      
  107b40:	ff 35 44 31 12 00    	pushl  0x123144                       
  107b46:	e8 d9 1c 00 00       	call   109824 <rtems_semaphore_release>
  return RTEMS_SUCCESSFUL;                                            
  107b4b:	83 c4 10             	add    $0x10,%esp                     
}                                                                     
  107b4e:	8b 45 e4             	mov    -0x1c(%ebp),%eax               
  107b51:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  107b54:	5b                   	pop    %ebx                           
  107b55:	5e                   	pop    %esi                           
  107b56:	5f                   	pop    %edi                           
  107b57:	c9                   	leave                                 
  107b58:	c3                   	ret                                   
    static char c = 'a';                                              
                                                                      
    /*                                                                
     * Create a new device                                            
     */                                                               
    tty = calloc (1, sizeof (struct rtems_termios_tty));              
  107b59:	52                   	push   %edx                           
  107b5a:	52                   	push   %edx                           
  107b5b:	68 e8 00 00 00       	push   $0xe8                          
  107b60:	6a 01                	push   $0x1                           
  107b62:	e8 c5 ec ff ff       	call   10682c <calloc>                
  107b67:	89 c2                	mov    %eax,%edx                      
  107b69:	89 c3                	mov    %eax,%ebx                      
    if (tty == NULL) {                                                
  107b6b:	83 c4 10             	add    $0x10,%esp                     
  107b6e:	85 c0                	test   %eax,%eax                      
  107b70:	0f 85 33 fc ff ff    	jne    1077a9 <rtems_termios_open+0x54>
  107b76:	e9 29 fc ff ff       	jmp    1077a4 <rtems_termios_open+0x4f>
                                                                      

00108072 <rtems_termios_puts>: * Send characters to device-specific code */ void rtems_termios_puts ( const void *_buf, int len, struct rtems_termios_tty *tty) {
  108072:	55                   	push   %ebp                           
  108073:	89 e5                	mov    %esp,%ebp                      
  108075:	57                   	push   %edi                           
  108076:	56                   	push   %esi                           
  108077:	53                   	push   %ebx                           
  108078:	83 ec 3c             	sub    $0x3c,%esp                     
  10807b:	8b 45 08             	mov    0x8(%ebp),%eax                 
  10807e:	8b 75 0c             	mov    0xc(%ebp),%esi                 
  108081:	8b 5d 10             	mov    0x10(%ebp),%ebx                
  const unsigned char *buf = _buf;                                    
  108084:	89 c7                	mov    %eax,%edi                      
  unsigned int newHead;                                               
  rtems_interrupt_level level;                                        
  rtems_status_code sc;                                               
                                                                      
  if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) {           
  108086:	83 bb b4 00 00 00 00 	cmpl   $0x0,0xb4(%ebx)                
  10808d:	75 1b                	jne    1080aa <rtems_termios_puts+0x38>
    (*tty->device.write)(tty->minor, (void *)buf, len);               
  10808f:	89 75 10             	mov    %esi,0x10(%ebp)                
  108092:	89 45 0c             	mov    %eax,0xc(%ebp)                 
  108095:	8b 43 10             	mov    0x10(%ebx),%eax                
  108098:	89 45 08             	mov    %eax,0x8(%ebp)                 
  10809b:	8b 83 a4 00 00 00    	mov    0xa4(%ebx),%eax                
      tty->rawOutBufState = rob_busy;                                 
    }                                                                 
    rtems_interrupt_enable (level);                                   
    len--;                                                            
  }                                                                   
}                                                                     
  1080a1:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  1080a4:	5b                   	pop    %ebx                           
  1080a5:	5e                   	pop    %esi                           
  1080a6:	5f                   	pop    %edi                           
  1080a7:	c9                   	leave                                 
  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);               
  1080a8:	ff e0                	jmp    *%eax                          
    return;                                                           
  }                                                                   
  newHead = tty->rawOutBuf.Head;                                      
  1080aa:	8b 83 80 00 00 00    	mov    0x80(%ebx),%eax                
  1080b0:	89 45 e4             	mov    %eax,-0x1c(%ebp)               
  while (len) {                                                       
  1080b3:	e9 ca 00 00 00       	jmp    108182 <rtems_termios_puts+0x110>
     *  len -= ncopy                                                  
     *                                                                
     * To minimize latency, the memcpy should be done                 
     * with interrupts enabled.                                       
     */                                                               
    newHead = (newHead + 1) % tty->rawOutBuf.Size;                    
  1080b8:	8b 45 e4             	mov    -0x1c(%ebp),%eax               
  1080bb:	40                   	inc    %eax                           
  1080bc:	8b 8b 88 00 00 00    	mov    0x88(%ebx),%ecx                
  1080c2:	31 d2                	xor    %edx,%edx                      
  1080c4:	f7 f1                	div    %ecx                           
  1080c6:	89 55 c4             	mov    %edx,-0x3c(%ebp)               
  1080c9:	89 55 e4             	mov    %edx,-0x1c(%ebp)               
    rtems_interrupt_disable (level);                                  
  1080cc:	9c                   	pushf                                 
  1080cd:	fa                   	cli                                   
  1080ce:	8f 45 d4             	popl   -0x2c(%ebp)                    
  1080d1:	8b 55 d4             	mov    -0x2c(%ebp),%edx               
  1080d4:	8b 4d c4             	mov    -0x3c(%ebp),%ecx               
    while (newHead == tty->rawOutBuf.Tail) {                          
  1080d7:	eb 35                	jmp    10810e <rtems_termios_puts+0x9c>
      tty->rawOutBufState = rob_wait;                                 
  1080d9:	c7 83 94 00 00 00 02 	movl   $0x2,0x94(%ebx)                
  1080e0:	00 00 00                                                    
      rtems_interrupt_enable (level);                                 
  1080e3:	52                   	push   %edx                           
  1080e4:	9d                   	popf                                  
      sc = rtems_semaphore_obtain(                                    
  1080e5:	50                   	push   %eax                           
  1080e6:	6a 00                	push   $0x0                           
  1080e8:	6a 00                	push   $0x0                           
  1080ea:	ff b3 8c 00 00 00    	pushl  0x8c(%ebx)                     
  1080f0:	89 4d e0             	mov    %ecx,-0x20(%ebp)               
  1080f3:	e8 40 16 00 00       	call   109738 <rtems_semaphore_obtain>
        tty->rawOutBuf.Semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT);      
      if (sc != RTEMS_SUCCESSFUL)                                     
  1080f8:	83 c4 10             	add    $0x10,%esp                     
  1080fb:	85 c0                	test   %eax,%eax                      
  1080fd:	8b 4d e0             	mov    -0x20(%ebp),%ecx               
  108100:	74 09                	je     10810b <rtems_termios_puts+0x99><== ALWAYS TAKEN
        rtems_fatal_error_occurred (sc);                              
  108102:	83 ec 0c             	sub    $0xc,%esp                      <== NOT EXECUTED
  108105:	50                   	push   %eax                           <== NOT EXECUTED
  108106:	e8 f5 1b 00 00       	call   109d00 <rtems_fatal_error_occurred><== NOT EXECUTED
      rtems_interrupt_disable (level);                                
  10810b:	9c                   	pushf                                 
  10810c:	fa                   	cli                                   
  10810d:	5a                   	pop    %edx                           
     * 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) {                          
  10810e:	8b 83 84 00 00 00    	mov    0x84(%ebx),%eax                
  108114:	39 c1                	cmp    %eax,%ecx                      
  108116:	74 c1                	je     1080d9 <rtems_termios_puts+0x67>
  108118:	89 55 d4             	mov    %edx,-0x2c(%ebp)               
  10811b:	89 4d c4             	mov    %ecx,-0x3c(%ebp)               
        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++;              
  10811e:	8b 8b 80 00 00 00    	mov    0x80(%ebx),%ecx                
  108124:	8a 07                	mov    (%edi),%al                     
  108126:	8b 53 7c             	mov    0x7c(%ebx),%edx                
  108129:	88 04 0a             	mov    %al,(%edx,%ecx,1)              
  10812c:	47                   	inc    %edi                           
    tty->rawOutBuf.Head = newHead;                                    
  10812d:	8b 4d c4             	mov    -0x3c(%ebp),%ecx               
  108130:	89 8b 80 00 00 00    	mov    %ecx,0x80(%ebx)                
    if (tty->rawOutBufState == rob_idle) {                            
  108136:	83 bb 94 00 00 00 00 	cmpl   $0x0,0x94(%ebx)                
  10813d:	75 3e                	jne    10817d <rtems_termios_puts+0x10b>
      /* check, whether XOFF has been received */                     
      if (!(tty->flow_ctrl & FL_ORCVXOF)) {                           
  10813f:	8b 83 b8 00 00 00    	mov    0xb8(%ebx),%eax                
  108145:	a8 10                	test   $0x10,%al                      
  108147:	75 1b                	jne    108164 <rtems_termios_puts+0xf2><== NEVER TAKEN
        (*tty->device.write)(tty->minor,                              
      (char *)&tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1);         
  108149:	8b 83 84 00 00 00    	mov    0x84(%ebx),%eax                
    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,                              
  10814f:	51                   	push   %ecx                           
  108150:	6a 01                	push   $0x1                           
  108152:	03 43 7c             	add    0x7c(%ebx),%eax                
  108155:	50                   	push   %eax                           
  108156:	ff 73 10             	pushl  0x10(%ebx)                     
  108159:	ff 93 a4 00 00 00    	call   *0xa4(%ebx)                    
  10815f:	83 c4 10             	add    $0x10,%esp                     
  108162:	eb 0f                	jmp    108173 <rtems_termios_puts+0x101>
      (char *)&tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1);         
      } else {                                                        
        /* remember that output has been stopped due to flow ctrl*/   
        tty->flow_ctrl |= FL_OSTOP;                                   
  108164:	8b 83 b8 00 00 00    	mov    0xb8(%ebx),%eax                <== NOT EXECUTED
  10816a:	83 c8 20             	or     $0x20,%eax                     <== NOT EXECUTED
  10816d:	89 83 b8 00 00 00    	mov    %eax,0xb8(%ebx)                <== NOT EXECUTED
      }                                                               
      tty->rawOutBufState = rob_busy;                                 
  108173:	c7 83 94 00 00 00 01 	movl   $0x1,0x94(%ebx)                
  10817a:	00 00 00                                                    
    }                                                                 
    rtems_interrupt_enable (level);                                   
  10817d:	ff 75 d4             	pushl  -0x2c(%ebp)                    
  108180:	9d                   	popf                                  
    len--;                                                            
  108181:	4e                   	dec    %esi                           
  if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) {           
    (*tty->device.write)(tty->minor, (void *)buf, len);               
    return;                                                           
  }                                                                   
  newHead = tty->rawOutBuf.Head;                                      
  while (len) {                                                       
  108182:	85 f6                	test   %esi,%esi                      
  108184:	0f 85 2e ff ff ff    	jne    1080b8 <rtems_termios_puts+0x46>
      tty->rawOutBufState = rob_busy;                                 
    }                                                                 
    rtems_interrupt_enable (level);                                   
    len--;                                                            
  }                                                                   
}                                                                     
  10818a:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  10818d:	5b                   	pop    %ebx                           
  10818e:	5e                   	pop    %esi                           
  10818f:	5f                   	pop    %edi                           
  108190:	c9                   	leave                                 
  108191:	c3                   	ret                                   
                                                                      

00108699 <rtems_termios_read>: return RTEMS_SUCCESSFUL; } rtems_status_code rtems_termios_read (void *arg) {
  108699:	55                   	push   %ebp                           
  10869a:	89 e5                	mov    %esp,%ebp                      
  10869c:	57                   	push   %edi                           
  10869d:	56                   	push   %esi                           
  10869e:	53                   	push   %ebx                           
  10869f:	83 ec 40             	sub    $0x40,%esp                     
  1086a2:	8b 75 08             	mov    0x8(%ebp),%esi                 
  rtems_libio_rw_args_t *args = arg;                                  
  struct rtems_termios_tty *tty = args->iop->data1;                   
  1086a5:	8b 06                	mov    (%esi),%eax                    
  1086a7:	8b 58 34             	mov    0x34(%eax),%ebx                
  uint32_t   count = args->count;                                     
  1086aa:	8b 46 10             	mov    0x10(%esi),%eax                
  1086ad:	89 45 e4             	mov    %eax,-0x1c(%ebp)               
  char      *buffer = args->buffer;                                   
  1086b0:	8b 46 0c             	mov    0xc(%esi),%eax                 
  1086b3:	89 45 e0             	mov    %eax,-0x20(%ebp)               
  rtems_status_code sc;                                               
                                                                      
  sc = rtems_semaphore_obtain (tty->isem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
  1086b6:	6a 00                	push   $0x0                           
  1086b8:	6a 00                	push   $0x0                           
  1086ba:	ff 73 14             	pushl  0x14(%ebx)                     
  1086bd:	e8 76 10 00 00       	call   109738 <rtems_semaphore_obtain>
  1086c2:	89 45 dc             	mov    %eax,-0x24(%ebp)               
  if (sc != RTEMS_SUCCESSFUL)                                         
  1086c5:	83 c4 10             	add    $0x10,%esp                     
  1086c8:	85 c0                	test   %eax,%eax                      
  1086ca:	0f 85 9d 02 00 00    	jne    10896d <rtems_termios_read+0x2d4><== NEVER TAKEN
    return sc;                                                        
                                                                      
  if (rtems_termios_linesw[tty->t_line].l_read != NULL) {             
  1086d0:	8b 83 cc 00 00 00    	mov    0xcc(%ebx),%eax                
  1086d6:	c1 e0 05             	shl    $0x5,%eax                      
  1086d9:	8b 80 00 2e 12 00    	mov    0x122e00(%eax),%eax            
  1086df:	85 c0                	test   %eax,%eax                      
  1086e1:	74 19                	je     1086fc <rtems_termios_read+0x63>
    sc = rtems_termios_linesw[tty->t_line].l_read(tty,args);          
  1086e3:	57                   	push   %edi                           
  1086e4:	57                   	push   %edi                           
  1086e5:	56                   	push   %esi                           
  1086e6:	53                   	push   %ebx                           
  1086e7:	ff d0                	call   *%eax                          
  1086e9:	89 45 dc             	mov    %eax,-0x24(%ebp)               
    tty->tty_rcvwakeup = 0;                                           
  1086ec:	c7 83 e4 00 00 00 00 	movl   $0x0,0xe4(%ebx)                
  1086f3:	00 00 00                                                    
    rtems_semaphore_release (tty->isem);                              
  1086f6:	59                   	pop    %ecx                           
  1086f7:	e9 66 02 00 00       	jmp    108962 <rtems_termios_read+0x2c9>
    return sc;                                                        
  }                                                                   
                                                                      
  if (tty->cindex == tty->ccount) {                                   
  1086fc:	8b 43 20             	mov    0x20(%ebx),%eax                
  1086ff:	39 43 24             	cmp    %eax,0x24(%ebx)                
  108702:	0f 85 2d 02 00 00    	jne    108935 <rtems_termios_read+0x29c><== NEVER TAKEN
    tty->cindex = tty->ccount = 0;                                    
  108708:	c7 43 20 00 00 00 00 	movl   $0x0,0x20(%ebx)                
  10870f:	c7 43 24 00 00 00 00 	movl   $0x0,0x24(%ebx)                
    tty->read_start_column = tty->column;                             
  108716:	8b 43 28             	mov    0x28(%ebx),%eax                
  108719:	89 43 2c             	mov    %eax,0x2c(%ebx)                
    if (tty->device.pollRead != NULL &&                               
  10871c:	83 bb a0 00 00 00 00 	cmpl   $0x0,0xa0(%ebx)                
  108723:	0f 84 c4 00 00 00    	je     1087ed <rtems_termios_read+0x154>
  108729:	83 bb b4 00 00 00 00 	cmpl   $0x0,0xb4(%ebx)                
  108730:	0f 85 b7 00 00 00    	jne    1087ed <rtems_termios_read+0x154>
static rtems_status_code                                              
fillBufferPoll (struct rtems_termios_tty *tty)                        
{                                                                     
  int n;                                                              
                                                                      
  if (tty->termios.c_lflag & ICANON) {                                
  108736:	f6 43 3c 02          	testb  $0x2,0x3c(%ebx)                
  10873a:	74 35                	je     108771 <rtems_termios_read+0xd8>
    for (;;) {                                                        
      n = (*tty->device.pollRead)(tty->minor);                        
  10873c:	83 ec 0c             	sub    $0xc,%esp                      
  10873f:	ff 73 10             	pushl  0x10(%ebx)                     
  108742:	ff 93 a0 00 00 00    	call   *0xa0(%ebx)                    
      if (n < 0) {                                                    
  108748:	83 c4 10             	add    $0x10,%esp                     
  10874b:	85 c0                	test   %eax,%eax                      
  10874d:	79 0f                	jns    10875e <rtems_termios_read+0xc5>
        rtems_task_wake_after (1);                                    
  10874f:	83 ec 0c             	sub    $0xc,%esp                      
  108752:	6a 01                	push   $0x1                           
  108754:	e8 33 14 00 00       	call   109b8c <rtems_task_wake_after> 
  108759:	83 c4 10             	add    $0x10,%esp                     
  10875c:	eb de                	jmp    10873c <rtems_termios_read+0xa3>
      } else {                                                        
        if  (siproc (n, tty))                                         
  10875e:	0f b6 c0             	movzbl %al,%eax                       
  108761:	89 da                	mov    %ebx,%edx                      
  108763:	e8 38 fe ff ff       	call   1085a0 <siproc>                
  108768:	85 c0                	test   %eax,%eax                      
  10876a:	74 d0                	je     10873c <rtems_termios_read+0xa3>
  10876c:	e9 c4 01 00 00       	jmp    108935 <rtems_termios_read+0x29c>
      }                                                               
    }                                                                 
  } else {                                                            
    rtems_interval then, now;                                         
                                                                      
    then = rtems_clock_get_ticks_since_boot();                        
  108771:	e8 3a 0a 00 00       	call   1091b0 <rtems_clock_get_ticks_since_boot>
  108776:	89 c7                	mov    %eax,%edi                      
    for (;;) {                                                        
      n = (*tty->device.pollRead)(tty->minor);                        
  108778:	83 ec 0c             	sub    $0xc,%esp                      
  10877b:	ff 73 10             	pushl  0x10(%ebx)                     
  10877e:	ff 93 a0 00 00 00    	call   *0xa0(%ebx)                    
      if (n < 0) {                                                    
  108784:	83 c4 10             	add    $0x10,%esp                     
  108787:	85 c0                	test   %eax,%eax                      
  108789:	79 3d                	jns    1087c8 <rtems_termios_read+0x12f>
        if (tty->termios.c_cc[VMIN]) {                                
  10878b:	80 7b 47 00          	cmpb   $0x0,0x47(%ebx)                
  10878f:	74 0e                	je     10879f <rtems_termios_read+0x106><== NEVER TAKEN
          if (tty->termios.c_cc[VTIME] && tty->ccount) {              
  108791:	80 7b 46 00          	cmpb   $0x0,0x46(%ebx)                
  108795:	74 22                	je     1087b9 <rtems_termios_read+0x120><== NEVER TAKEN
  108797:	83 7b 20 00          	cmpl   $0x0,0x20(%ebx)                
  10879b:	74 1c                	je     1087b9 <rtems_termios_read+0x120>
  10879d:	eb 0a                	jmp    1087a9 <rtems_termios_read+0x110>
            if ((now - then) > tty->vtimeTicks) {                     
              break;                                                  
            }                                                         
          }                                                           
        } else {                                                      
          if (!tty->termios.c_cc[VTIME])                              
  10879f:	80 7b 46 00          	cmpb   $0x0,0x46(%ebx)                <== NOT EXECUTED
  1087a3:	0f 84 8c 01 00 00    	je     108935 <rtems_termios_read+0x29c><== NOT EXECUTED
            break;                                                    
          now = rtems_clock_get_ticks_since_boot();                   
  1087a9:	e8 02 0a 00 00       	call   1091b0 <rtems_clock_get_ticks_since_boot>
          if ((now - then) > tty->vtimeTicks) {                       
  1087ae:	29 f8                	sub    %edi,%eax                      
  1087b0:	3b 43 54             	cmp    0x54(%ebx),%eax                
  1087b3:	0f 87 7c 01 00 00    	ja     108935 <rtems_termios_read+0x29c>
            break;                                                    
          }                                                           
        }                                                             
        rtems_task_wake_after (1);                                    
  1087b9:	83 ec 0c             	sub    $0xc,%esp                      
  1087bc:	6a 01                	push   $0x1                           
  1087be:	e8 c9 13 00 00       	call   109b8c <rtems_task_wake_after> 
  1087c3:	83 c4 10             	add    $0x10,%esp                     
  1087c6:	eb b0                	jmp    108778 <rtems_termios_read+0xdf>
      } else {                                                        
        siproc (n, tty);                                              
  1087c8:	0f b6 c0             	movzbl %al,%eax                       
  1087cb:	89 da                	mov    %ebx,%edx                      
  1087cd:	e8 ce fd ff ff       	call   1085a0 <siproc>                
        if (tty->ccount >= tty->termios.c_cc[VMIN])                   
  1087d2:	8a 43 47             	mov    0x47(%ebx),%al                 
  1087d5:	0f b6 d0             	movzbl %al,%edx                       
  1087d8:	39 53 20             	cmp    %edx,0x20(%ebx)                
  1087db:	0f 8d 54 01 00 00    	jge    108935 <rtems_termios_read+0x29c><== NEVER TAKEN
          break;                                                      
        if (tty->termios.c_cc[VMIN] && tty->termios.c_cc[VTIME])      
  1087e1:	84 c0                	test   %al,%al                        
  1087e3:	74 93                	je     108778 <rtems_termios_read+0xdf><== NEVER TAKEN
  1087e5:	80 7b 46 00          	cmpb   $0x0,0x46(%ebx)                
  1087e9:	74 8d                	je     108778 <rtems_termios_read+0xdf><== NEVER TAKEN
  1087eb:	eb 84                	jmp    108771 <rtems_termios_read+0xd8>
 * Fill the input buffer from the raw input queue                     
 */                                                                   
static rtems_status_code                                              
fillBufferQueue (struct rtems_termios_tty *tty)                       
{                                                                     
  rtems_interval timeout = tty->rawInBufSemaphoreFirstTimeout;        
  1087ed:	8b 53 74             	mov    0x74(%ebx),%edx                
  rtems_status_code sc;                                               
  int               wait = (int)1;                                    
  1087f0:	bf 01 00 00 00       	mov    $0x1,%edi                      
        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)(                                       
  1087f5:	8d 43 49             	lea    0x49(%ebx),%eax                
  1087f8:	89 45 d0             	mov    %eax,-0x30(%ebp)               
  1087fb:	e9 e6 00 00 00       	jmp    1088e6 <rtems_termios_read+0x24d>
    while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&              
                       (tty->ccount < (CBUFSIZE-1))) {                
      unsigned char c;                                                
      unsigned int newHead;                                           
                                                                      
      newHead = (tty->rawInBuf.Head + 1) % tty->rawInBuf.Size;        
  108800:	8b 43 5c             	mov    0x5c(%ebx),%eax                
  108803:	8b 4b 64             	mov    0x64(%ebx),%ecx                
  108806:	40                   	inc    %eax                           
  108807:	31 d2                	xor    %edx,%edx                      
  108809:	f7 f1                	div    %ecx                           
      c = tty->rawInBuf.theBuf[newHead];                              
  10880b:	8b 43 58             	mov    0x58(%ebx),%eax                
  10880e:	8a 04 10             	mov    (%eax,%edx,1),%al              
  108811:	88 45 db             	mov    %al,-0x25(%ebp)                
      tty->rawInBuf.Head = newHead;                                   
  108814:	89 53 5c             	mov    %edx,0x5c(%ebx)                
      if(((tty->rawInBuf.Tail-newHead+tty->rawInBuf.Size)             
  108817:	8b 43 60             	mov    0x60(%ebx),%eax                
  10881a:	89 45 c4             	mov    %eax,-0x3c(%ebp)               
  10881d:	8b 4b 64             	mov    0x64(%ebx),%ecx                
          % tty->rawInBuf.Size)                                       
  108820:	8b 43 64             	mov    0x64(%ebx),%eax                
  108823:	89 45 d4             	mov    %eax,-0x2c(%ebp)               
      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)             
  108826:	8b 45 c4             	mov    -0x3c(%ebp),%eax               
  108829:	8d 04 01             	lea    (%ecx,%eax,1),%eax             
  10882c:	29 d0                	sub    %edx,%eax                      
          % tty->rawInBuf.Size)                                       
  10882e:	31 d2                	xor    %edx,%edx                      
  108830:	f7 75 d4             	divl   -0x2c(%ebp)                    
      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)             
  108833:	3b 93 bc 00 00 00    	cmp    0xbc(%ebx),%edx                
  108839:	73 74                	jae    1088af <rtems_termios_read+0x216><== NEVER TAKEN
          % tty->rawInBuf.Size)                                       
         < tty->lowwater) {                                           
        tty->flow_ctrl &= ~FL_IREQXOF;                                
  10883b:	8b 83 b8 00 00 00    	mov    0xb8(%ebx),%eax                
  108841:	83 e0 fe             	and    $0xfffffffe,%eax               
  108844:	89 83 b8 00 00 00    	mov    %eax,0xb8(%ebx)                
        /* if tx stopped and XON should be sent... */                 
        if (((tty->flow_ctrl & (FL_MDXON | FL_ISNTXOF))               
  10884a:	8b 83 b8 00 00 00    	mov    0xb8(%ebx),%eax                
  108850:	25 02 02 00 00       	and    $0x202,%eax                    
  108855:	3d 02 02 00 00       	cmp    $0x202,%eax                    
  10885a:	75 24                	jne    108880 <rtems_termios_read+0x1e7><== ALWAYS TAKEN
             ==                (FL_MDXON | FL_ISNTXOF))               
            && ((tty->rawOutBufState == rob_idle)                     
  10885c:	83 bb 94 00 00 00 00 	cmpl   $0x0,0x94(%ebx)                <== NOT EXECUTED
  108863:	74 0a                	je     10886f <rtems_termios_read+0x1d6><== NOT EXECUTED
          || (tty->flow_ctrl & FL_OSTOP))) {                          
  108865:	8b 83 b8 00 00 00    	mov    0xb8(%ebx),%eax                <== NOT EXECUTED
  10886b:	a8 20                	test   $0x20,%al                      <== NOT EXECUTED
  10886d:	74 11                	je     108880 <rtems_termios_read+0x1e7><== NOT EXECUTED
          /* XON should be sent now... */                             
          (*tty->device.write)(                                       
  10886f:	52                   	push   %edx                           <== NOT EXECUTED
  108870:	6a 01                	push   $0x1                           <== NOT EXECUTED
  108872:	ff 75 d0             	pushl  -0x30(%ebp)                    <== NOT EXECUTED
  108875:	ff 73 10             	pushl  0x10(%ebx)                     <== NOT EXECUTED
  108878:	ff 93 a4 00 00 00    	call   *0xa4(%ebx)                    <== NOT EXECUTED
  10887e:	eb 2c                	jmp    1088ac <rtems_termios_read+0x213><== NOT EXECUTED
            tty->minor, (void *)&(tty->termios.c_cc[VSTART]), 1);     
        } else if (tty->flow_ctrl & FL_MDRTS) {                       
  108880:	8b 83 b8 00 00 00    	mov    0xb8(%ebx),%eax                
  108886:	f6 c4 01             	test   $0x1,%ah                       
  108889:	74 24                	je     1088af <rtems_termios_read+0x216><== ALWAYS TAKEN
          tty->flow_ctrl &= ~FL_IRTSOFF;                              
  10888b:	8b 83 b8 00 00 00    	mov    0xb8(%ebx),%eax                <== NOT EXECUTED
  108891:	83 e0 fb             	and    $0xfffffffb,%eax               <== NOT EXECUTED
  108894:	89 83 b8 00 00 00    	mov    %eax,0xb8(%ebx)                <== NOT EXECUTED
          /* activate RTS line */                                     
          if (tty->device.startRemoteTx != NULL) {                    
  10889a:	8b 83 b0 00 00 00    	mov    0xb0(%ebx),%eax                <== NOT EXECUTED
  1088a0:	85 c0                	test   %eax,%eax                      <== NOT EXECUTED
  1088a2:	74 0b                	je     1088af <rtems_termios_read+0x216><== NOT EXECUTED
            tty->device.startRemoteTx(tty->minor);                    
  1088a4:	83 ec 0c             	sub    $0xc,%esp                      <== NOT EXECUTED
  1088a7:	ff 73 10             	pushl  0x10(%ebx)                     <== NOT EXECUTED
  1088aa:	ff d0                	call   *%eax                          <== NOT EXECUTED
  1088ac:	83 c4 10             	add    $0x10,%esp                     <== NOT EXECUTED
          }                                                           
        }                                                             
      }                                                               
                                                                      
      /* continue processing new character */                         
      if (tty->termios.c_lflag & ICANON) {                            
  1088af:	f6 43 3c 02          	testb  $0x2,0x3c(%ebx)                
  1088b3:	74 12                	je     1088c7 <rtems_termios_read+0x22e><== NEVER TAKEN
        if (siproc (c, tty))                                          
  1088b5:	0f b6 45 db          	movzbl -0x25(%ebp),%eax               
  1088b9:	89 da                	mov    %ebx,%edx                      
  1088bb:	e8 e0 fc ff ff       	call   1085a0 <siproc>                
          wait = 0;                                                   
  1088c0:	85 c0                	test   %eax,%eax                      
  1088c2:	0f 94 c0             	sete   %al                            
  1088c5:	eb 15                	jmp    1088dc <rtems_termios_read+0x243>
      } else {                                                        
        siproc (c, tty);                                              
  1088c7:	0f b6 45 db          	movzbl -0x25(%ebp),%eax               <== NOT EXECUTED
  1088cb:	89 da                	mov    %ebx,%edx                      <== NOT EXECUTED
  1088cd:	e8 ce fc ff ff       	call   1085a0 <siproc>                <== NOT EXECUTED
        if (tty->ccount >= tty->termios.c_cc[VMIN])                   
  1088d2:	0f b6 43 47          	movzbl 0x47(%ebx),%eax                <== NOT EXECUTED
          wait = 0;                                                   
  1088d6:	39 43 20             	cmp    %eax,0x20(%ebx)                <== NOT EXECUTED
  1088d9:	0f 9c c0             	setl   %al                            <== NOT EXECUTED
  1088dc:	0f b6 c0             	movzbl %al,%eax                       
  1088df:	f7 d8                	neg    %eax                           
  1088e1:	21 c7                	and    %eax,%edi                      
      }                                                               
      timeout = tty->rawInBufSemaphoreTimeout;                        
  1088e3:	8b 53 70             	mov    0x70(%ebx),%edx                
                                                                      
  while ( wait ) {                                                    
    /*                                                                
     * Process characters read from raw queue                         
     */                                                               
    while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&              
  1088e6:	8b 4b 5c             	mov    0x5c(%ebx),%ecx                
  1088e9:	8b 43 60             	mov    0x60(%ebx),%eax                
  1088ec:	39 c1                	cmp    %eax,%ecx                      
  1088ee:	74 0f                	je     1088ff <rtems_termios_read+0x266>
                       (tty->ccount < (CBUFSIZE-1))) {                
  1088f0:	a1 34 10 12 00       	mov    0x121034,%eax                  
  1088f5:	48                   	dec    %eax                           
                                                                      
  while ( wait ) {                                                    
    /*                                                                
     * Process characters read from raw queue                         
     */                                                               
    while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&              
  1088f6:	39 43 20             	cmp    %eax,0x20(%ebx)                
  1088f9:	0f 8c 01 ff ff ff    	jl     108800 <rtems_termios_read+0x167><== ALWAYS TAKEN
    }                                                                 
                                                                      
    /*                                                                
     * Wait for characters                                            
     */                                                               
    if ( wait ) {                                                     
  1088ff:	85 ff                	test   %edi,%edi                      
  108901:	74 32                	je     108935 <rtems_termios_read+0x29c>
      sc = rtems_semaphore_obtain(                                    
  108903:	50                   	push   %eax                           
  108904:	52                   	push   %edx                           
  108905:	ff 73 6c             	pushl  0x6c(%ebx)                     
  108908:	ff 73 68             	pushl  0x68(%ebx)                     
  10890b:	89 55 cc             	mov    %edx,-0x34(%ebp)               
  10890e:	e8 25 0e 00 00       	call   109738 <rtems_semaphore_obtain>
        tty->rawInBuf.Semaphore, tty->rawInBufSemaphoreOptions, timeout);
      if (sc != RTEMS_SUCCESSFUL)                                     
  108913:	83 c4 10             	add    $0x10,%esp                     
  108916:	85 c0                	test   %eax,%eax                      
  108918:	8b 55 cc             	mov    -0x34(%ebp),%edx               
  10891b:	74 c9                	je     1088e6 <rtems_termios_read+0x24d><== ALWAYS TAKEN
  10891d:	eb 16                	jmp    108935 <rtems_termios_read+0x29c><== NOT EXECUTED
                                                                      
    if (sc != RTEMS_SUCCESSFUL)                                       
      tty->cindex = tty->ccount = 0;                                  
  }                                                                   
  while (count && (tty->cindex < tty->ccount)) {                      
    *buffer++ = tty->cbuf[tty->cindex++];                             
  10891f:	8b 7b 1c             	mov    0x1c(%ebx),%edi                
  108922:	8b 45 e4             	mov    -0x1c(%ebp),%eax               
  108925:	8a 04 07             	mov    (%edi,%eax,1),%al              
  108928:	88 01                	mov    %al,(%ecx)                     
  10892a:	41                   	inc    %ecx                           
  10892b:	8b 45 e4             	mov    -0x1c(%ebp),%eax               
  10892e:	40                   	inc    %eax                           
  10892f:	89 43 24             	mov    %eax,0x24(%ebx)                
    count--;                                                          
  108932:	4a                   	dec    %edx                           
  108933:	eb 06                	jmp    10893b <rtems_termios_read+0x2a2>
  108935:	8b 55 e4             	mov    -0x1c(%ebp),%edx               
  108938:	8b 4d e0             	mov    -0x20(%ebp),%ecx               
      sc = fillBufferQueue (tty);                                     
                                                                      
    if (sc != RTEMS_SUCCESSFUL)                                       
      tty->cindex = tty->ccount = 0;                                  
  }                                                                   
  while (count && (tty->cindex < tty->ccount)) {                      
  10893b:	85 d2                	test   %edx,%edx                      
  10893d:	74 0b                	je     10894a <rtems_termios_read+0x2b1>
  10893f:	8b 43 24             	mov    0x24(%ebx),%eax                
  108942:	89 45 e4             	mov    %eax,-0x1c(%ebp)               
  108945:	3b 43 20             	cmp    0x20(%ebx),%eax                
  108948:	7c d5                	jl     10891f <rtems_termios_read+0x286>
  10894a:	89 55 e4             	mov    %edx,-0x1c(%ebp)               
    *buffer++ = tty->cbuf[tty->cindex++];                             
    count--;                                                          
  }                                                                   
  args->bytes_moved = args->count - count;                            
  10894d:	8b 46 10             	mov    0x10(%esi),%eax                
  108950:	29 d0                	sub    %edx,%eax                      
  108952:	89 46 18             	mov    %eax,0x18(%esi)                
  tty->tty_rcvwakeup = 0;                                             
  108955:	c7 83 e4 00 00 00 00 	movl   $0x0,0xe4(%ebx)                
  10895c:	00 00 00                                                    
  rtems_semaphore_release (tty->isem);                                
  10895f:	83 ec 0c             	sub    $0xc,%esp                      
  108962:	ff 73 14             	pushl  0x14(%ebx)                     
  108965:	e8 ba 0e 00 00       	call   109824 <rtems_semaphore_release>
  return sc;                                                          
  10896a:	83 c4 10             	add    $0x10,%esp                     
}                                                                     
  10896d:	8b 45 dc             	mov    -0x24(%ebp),%eax               
  108970:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  108973:	5b                   	pop    %ebx                           
  108974:	5e                   	pop    %esi                           
  108975:	5f                   	pop    %edi                           
  108976:	c9                   	leave                                 
  108977:	c3                   	ret                                   
                                                                      

00108c82 <rtems_termios_refill_transmitter>: * in task-driven mode, this function is called in Tx task context * in interrupt-driven mode, this function is called in TxIRQ context */ int rtems_termios_refill_transmitter (struct rtems_termios_tty *tty) {
  108c82:	55                   	push   %ebp                           
  108c83:	89 e5                	mov    %esp,%ebp                      
  108c85:	57                   	push   %edi                           
  108c86:	56                   	push   %esi                           
  108c87:	53                   	push   %ebx                           
  108c88:	83 ec 0c             	sub    $0xc,%esp                      
  108c8b:	8b 5d 08             	mov    0x8(%ebp),%ebx                 
  int nToSend;                                                        
  rtems_interrupt_level level;                                        
  int len;                                                            
                                                                      
  /* check for XOF/XON to send */                                     
  if ((tty->flow_ctrl & (FL_MDXOF | FL_IREQXOF | FL_ISNTXOF))         
  108c8e:	8b 83 b8 00 00 00    	mov    0xb8(%ebx),%eax                
  108c94:	25 03 04 00 00       	and    $0x403,%eax                    
  108c99:	3d 01 04 00 00       	cmp    $0x401,%eax                    
  108c9e:	75 2c                	jne    108ccc <rtems_termios_refill_transmitter+0x4a><== ALWAYS TAKEN
      == (FL_MDXOF | FL_IREQXOF)) {                                   
    /* XOFF should be sent now... */                                  
    (*tty->device.write)(tty->minor, (void *)&(tty->termios.c_cc[VSTOP]), 1);
  108ca0:	57                   	push   %edi                           <== NOT EXECUTED
  108ca1:	6a 01                	push   $0x1                           <== NOT EXECUTED
  108ca3:	8d 43 4a             	lea    0x4a(%ebx),%eax                <== NOT EXECUTED
  108ca6:	50                   	push   %eax                           <== NOT EXECUTED
  108ca7:	ff 73 10             	pushl  0x10(%ebx)                     <== NOT EXECUTED
  108caa:	ff 93 a4 00 00 00    	call   *0xa4(%ebx)                    <== NOT EXECUTED
                                                                      
    rtems_interrupt_disable(level);                                   
  108cb0:	9c                   	pushf                                 <== NOT EXECUTED
  108cb1:	fa                   	cli                                   <== NOT EXECUTED
  108cb2:	5a                   	pop    %edx                           <== NOT EXECUTED
    tty->t_dqlen--;                                                   
  108cb3:	ff 8b 90 00 00 00    	decl   0x90(%ebx)                     <== NOT EXECUTED
    tty->flow_ctrl |= FL_ISNTXOF;                                     
  108cb9:	8b 83 b8 00 00 00    	mov    0xb8(%ebx),%eax                <== NOT EXECUTED
  108cbf:	83 c8 02             	or     $0x2,%eax                      <== NOT EXECUTED
  108cc2:	89 83 b8 00 00 00    	mov    %eax,0xb8(%ebx)                <== NOT EXECUTED
    rtems_interrupt_enable(level);                                    
  108cc8:	52                   	push   %edx                           <== NOT EXECUTED
  108cc9:	9d                   	popf                                  <== NOT EXECUTED
  108cca:	eb 38                	jmp    108d04 <rtems_termios_refill_transmitter+0x82><== NOT EXECUTED
                                                                      
    nToSend = 1;                                                      
                                                                      
  } else if ((tty->flow_ctrl & (FL_IREQXOF | FL_ISNTXOF)) == FL_ISNTXOF) {
  108ccc:	8b 83 b8 00 00 00    	mov    0xb8(%ebx),%eax                
  108cd2:	83 e0 03             	and    $0x3,%eax                      
  108cd5:	83 f8 02             	cmp    $0x2,%eax                      
  108cd8:	75 37                	jne    108d11 <rtems_termios_refill_transmitter+0x8f><== ALWAYS TAKEN
     * FIXME: this .write call will generate another                  
     * dequeue callback. This will advance the "Tail" in the data     
     * buffer, although the corresponding data is not yet out!        
     * Therefore the dequeue "length" should be reduced by 1          
     */                                                               
    (*tty->device.write)(tty->minor, (void *)&(tty->termios.c_cc[VSTART]), 1);
  108cda:	56                   	push   %esi                           <== NOT EXECUTED
  108cdb:	6a 01                	push   $0x1                           <== NOT EXECUTED
  108cdd:	8d 43 49             	lea    0x49(%ebx),%eax                <== NOT EXECUTED
  108ce0:	50                   	push   %eax                           <== NOT EXECUTED
  108ce1:	ff 73 10             	pushl  0x10(%ebx)                     <== NOT EXECUTED
  108ce4:	ff 93 a4 00 00 00    	call   *0xa4(%ebx)                    <== NOT EXECUTED
                                                                      
    rtems_interrupt_disable(level);                                   
  108cea:	9c                   	pushf                                 <== NOT EXECUTED
  108ceb:	fa                   	cli                                   <== NOT EXECUTED
  108cec:	5a                   	pop    %edx                           <== NOT EXECUTED
    tty->t_dqlen--;                                                   
  108ced:	ff 8b 90 00 00 00    	decl   0x90(%ebx)                     <== NOT EXECUTED
    tty->flow_ctrl &= ~FL_ISNTXOF;                                    
  108cf3:	8b 83 b8 00 00 00    	mov    0xb8(%ebx),%eax                <== NOT EXECUTED
  108cf9:	83 e0 fd             	and    $0xfffffffd,%eax               <== NOT EXECUTED
  108cfc:	89 83 b8 00 00 00    	mov    %eax,0xb8(%ebx)                <== NOT EXECUTED
    rtems_interrupt_enable(level);                                    
  108d02:	52                   	push   %edx                           <== NOT EXECUTED
  108d03:	9d                   	popf                                  <== NOT EXECUTED
  108d04:	83 c4 10             	add    $0x10,%esp                     <== NOT EXECUTED
                                                                      
    nToSend = 1;                                                      
  108d07:	be 01 00 00 00       	mov    $0x1,%esi                      <== NOT EXECUTED
  108d0c:	e9 35 01 00 00       	jmp    108e46 <rtems_termios_refill_transmitter+0x1c4><== NOT EXECUTED
  } else {                                                            
    if ( tty->rawOutBuf.Head == tty->rawOutBuf.Tail ) {               
  108d11:	8b 93 80 00 00 00    	mov    0x80(%ebx),%edx                
  108d17:	8b 83 84 00 00 00    	mov    0x84(%ebx),%eax                
  108d1d:	39 c2                	cmp    %eax,%edx                      
  108d1f:	75 25                	jne    108d46 <rtems_termios_refill_transmitter+0xc4>
        /*                                                            
         * this should never happen...                                
         */                                                           
        rtems_semaphore_release (tty->rawOutBuf.Semaphore);           
      }                                                               
      return 0;                                                       
  108d21:	31 f6                	xor    %esi,%esi                      
  } else {                                                            
    if ( tty->rawOutBuf.Head == tty->rawOutBuf.Tail ) {               
      /*                                                              
       * buffer was empty                                             
       */                                                             
      if (tty->rawOutBufState == rob_wait) {                          
  108d23:	83 bb 94 00 00 00 02 	cmpl   $0x2,0x94(%ebx)                
  108d2a:	0f 85 16 01 00 00    	jne    108e46 <rtems_termios_refill_transmitter+0x1c4><== ALWAYS TAKEN
        /*                                                            
         * this should never happen...                                
         */                                                           
        rtems_semaphore_release (tty->rawOutBuf.Semaphore);           
  108d30:	83 ec 0c             	sub    $0xc,%esp                      <== NOT EXECUTED
  108d33:	ff b3 8c 00 00 00    	pushl  0x8c(%ebx)                     <== NOT EXECUTED
  108d39:	e8 e6 0a 00 00       	call   109824 <rtems_semaphore_release><== NOT EXECUTED
  108d3e:	83 c4 10             	add    $0x10,%esp                     <== NOT EXECUTED
  108d41:	e9 00 01 00 00       	jmp    108e46 <rtems_termios_refill_transmitter+0x1c4><== NOT EXECUTED
      }                                                               
      return 0;                                                       
    }                                                                 
                                                                      
    rtems_interrupt_disable(level);                                   
  108d46:	9c                   	pushf                                 
  108d47:	fa                   	cli                                   
  108d48:	58                   	pop    %eax                           
    len = tty->t_dqlen;                                               
  108d49:	8b bb 90 00 00 00    	mov    0x90(%ebx),%edi                
    tty->t_dqlen = 0;                                                 
  108d4f:	c7 83 90 00 00 00 00 	movl   $0x0,0x90(%ebx)                
  108d56:	00 00 00                                                    
    rtems_interrupt_enable(level);                                    
  108d59:	50                   	push   %eax                           
  108d5a:	9d                   	popf                                  
                                                                      
    newTail = (tty->rawOutBuf.Tail + len) % tty->rawOutBuf.Size;      
  108d5b:	8b 83 84 00 00 00    	mov    0x84(%ebx),%eax                
  108d61:	8b 8b 88 00 00 00    	mov    0x88(%ebx),%ecx                
  108d67:	8d 04 07             	lea    (%edi,%eax,1),%eax             
  108d6a:	31 d2                	xor    %edx,%edx                      
  108d6c:	f7 f1                	div    %ecx                           
  108d6e:	89 d7                	mov    %edx,%edi                      
    tty->rawOutBuf.Tail = newTail;                                    
  108d70:	89 93 84 00 00 00    	mov    %edx,0x84(%ebx)                
    if (tty->rawOutBufState == rob_wait) {                            
  108d76:	83 bb 94 00 00 00 02 	cmpl   $0x2,0x94(%ebx)                
  108d7d:	75 11                	jne    108d90 <rtems_termios_refill_transmitter+0x10e>
      /*                                                              
       * wake up any pending writer task                              
       */                                                             
      rtems_semaphore_release (tty->rawOutBuf.Semaphore);             
  108d7f:	83 ec 0c             	sub    $0xc,%esp                      
  108d82:	ff b3 8c 00 00 00    	pushl  0x8c(%ebx)                     
  108d88:	e8 97 0a 00 00       	call   109824 <rtems_semaphore_release>
  108d8d:	83 c4 10             	add    $0x10,%esp                     
    }                                                                 
                                                                      
    if (newTail == tty->rawOutBuf.Head) {                             
  108d90:	8b 83 80 00 00 00    	mov    0x80(%ebx),%eax                
  108d96:	39 c7                	cmp    %eax,%edi                      
  108d98:	75 2a                	jne    108dc4 <rtems_termios_refill_transmitter+0x142>
      /*                                                              
       * Buffer has become empty                                      
       */                                                             
      tty->rawOutBufState = rob_idle;                                 
  108d9a:	c7 83 94 00 00 00 00 	movl   $0x0,0x94(%ebx)                
  108da1:	00 00 00                                                    
      nToSend = 0;                                                    
                                                                      
      /*                                                              
       * check to see if snd wakeup callback was set                  
       */                                                             
      if ( tty->tty_snd.sw_pfn != NULL) {                             
  108da4:	8b 83 d4 00 00 00    	mov    0xd4(%ebx),%eax                
    if (newTail == tty->rawOutBuf.Head) {                             
      /*                                                              
       * Buffer has become empty                                      
       */                                                             
      tty->rawOutBufState = rob_idle;                                 
      nToSend = 0;                                                    
  108daa:	31 f6                	xor    %esi,%esi                      
                                                                      
      /*                                                              
       * check to see if snd wakeup callback was set                  
       */                                                             
      if ( tty->tty_snd.sw_pfn != NULL) {                             
  108dac:	85 c0                	test   %eax,%eax                      
  108dae:	0f 84 8c 00 00 00    	je     108e40 <rtems_termios_refill_transmitter+0x1be><== ALWAYS TAKEN
        (*tty->tty_snd.sw_pfn)(&tty->termios, tty->tty_snd.sw_arg);   
  108db4:	51                   	push   %ecx                           <== NOT EXECUTED
  108db5:	51                   	push   %ecx                           <== NOT EXECUTED
  108db6:	ff b3 d8 00 00 00    	pushl  0xd8(%ebx)                     <== NOT EXECUTED
  108dbc:	8d 53 30             	lea    0x30(%ebx),%edx                <== NOT EXECUTED
  108dbf:	52                   	push   %edx                           <== NOT EXECUTED
  108dc0:	ff d0                	call   *%eax                          <== NOT EXECUTED
  108dc2:	eb 79                	jmp    108e3d <rtems_termios_refill_transmitter+0x1bb><== NOT EXECUTED
      }                                                               
    }                                                                 
    /* check, whether output should stop due to received XOFF */      
    else if ((tty->flow_ctrl & (FL_MDXON | FL_ORCVXOF))               
  108dc4:	8b 83 b8 00 00 00    	mov    0xb8(%ebx),%eax                
  108dca:	25 10 02 00 00       	and    $0x210,%eax                    
  108dcf:	3d 10 02 00 00       	cmp    $0x210,%eax                    
  108dd4:	75 22                	jne    108df8 <rtems_termios_refill_transmitter+0x176><== ALWAYS TAKEN
       ==                (FL_MDXON | FL_ORCVXOF)) {                   
      /* Buffer not empty, but output stops due to XOFF */            
      /* set flag, that output has been stopped */                    
      rtems_interrupt_disable(level);                                 
  108dd6:	9c                   	pushf                                 <== NOT EXECUTED
  108dd7:	fa                   	cli                                   <== NOT EXECUTED
  108dd8:	5a                   	pop    %edx                           <== NOT EXECUTED
      tty->flow_ctrl |= FL_OSTOP;                                     
  108dd9:	8b 83 b8 00 00 00    	mov    0xb8(%ebx),%eax                <== NOT EXECUTED
  108ddf:	83 c8 20             	or     $0x20,%eax                     <== NOT EXECUTED
  108de2:	89 83 b8 00 00 00    	mov    %eax,0xb8(%ebx)                <== NOT EXECUTED
      tty->rawOutBufState = rob_busy; /*apm*/                         
  108de8:	c7 83 94 00 00 00 01 	movl   $0x1,0x94(%ebx)                <== NOT EXECUTED
  108def:	00 00 00                                                    
      rtems_interrupt_enable(level);                                  
  108df2:	52                   	push   %edx                           <== NOT EXECUTED
  108df3:	9d                   	popf                                  <== NOT EXECUTED
      nToSend = 0;                                                    
  108df4:	31 f6                	xor    %esi,%esi                      <== NOT EXECUTED
  108df6:	eb 48                	jmp    108e40 <rtems_termios_refill_transmitter+0x1be><== NOT EXECUTED
    } else {                                                          
      /*                                                              
       * Buffer not empty, start tranmitter                           
       */                                                             
      if (newTail > tty->rawOutBuf.Head)                              
  108df8:	8b 83 80 00 00 00    	mov    0x80(%ebx),%eax                
  108dfe:	39 c7                	cmp    %eax,%edi                      
  108e00:	76 08                	jbe    108e0a <rtems_termios_refill_transmitter+0x188>
        nToSend = tty->rawOutBuf.Size - newTail;                      
  108e02:	8b b3 88 00 00 00    	mov    0x88(%ebx),%esi                
  108e08:	eb 06                	jmp    108e10 <rtems_termios_refill_transmitter+0x18e>
      else                                                            
        nToSend = tty->rawOutBuf.Head - newTail;                      
  108e0a:	8b b3 80 00 00 00    	mov    0x80(%ebx),%esi                
  108e10:	29 fe                	sub    %edi,%esi                      
      /* 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)) {                   
  108e12:	8b 83 b8 00 00 00    	mov    0xb8(%ebx),%eax                
  108e18:	f6 c4 06             	test   $0x6,%ah                       
  108e1b:	74 05                	je     108e22 <rtems_termios_refill_transmitter+0x1a0>
        nToSend = 1;                                                  
  108e1d:	be 01 00 00 00       	mov    $0x1,%esi                      
      }                                                               
      tty->rawOutBufState = rob_busy; /*apm*/                         
  108e22:	c7 83 94 00 00 00 01 	movl   $0x1,0x94(%ebx)                
  108e29:	00 00 00                                                    
      (*tty->device.write)(                                           
  108e2c:	52                   	push   %edx                           
  108e2d:	56                   	push   %esi                           
  108e2e:	8b 43 7c             	mov    0x7c(%ebx),%eax                
  108e31:	01 f8                	add    %edi,%eax                      
  108e33:	50                   	push   %eax                           
  108e34:	ff 73 10             	pushl  0x10(%ebx)                     
  108e37:	ff 93 a4 00 00 00    	call   *0xa4(%ebx)                    
  108e3d:	83 c4 10             	add    $0x10,%esp                     
        tty->minor, &tty->rawOutBuf.theBuf[newTail], nToSend);        
    }                                                                 
    tty->rawOutBuf.Tail = newTail; /*apm*/                            
  108e40:	89 bb 84 00 00 00    	mov    %edi,0x84(%ebx)                
  }                                                                   
  return nToSend;                                                     
}                                                                     
  108e46:	89 f0                	mov    %esi,%eax                      
  108e48:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  108e4b:	5b                   	pop    %ebx                           
  108e4c:	5e                   	pop    %esi                           
  108e4d:	5f                   	pop    %edi                           
  108e4e:	c9                   	leave                                 
  108e4f:	c3                   	ret                                   
                                                                      

00108c1e <rtems_termios_rxdaemon>: /* * this task actually processes any receive events */ static rtems_task rtems_termios_rxdaemon(rtems_task_argument argument) {
  108c1e:	55                   	push   %ebp                           
  108c1f:	89 e5                	mov    %esp,%ebp                      
  108c21:	57                   	push   %edi                           
  108c22:	56                   	push   %esi                           
  108c23:	53                   	push   %ebx                           
  108c24:	83 ec 1c             	sub    $0x1c,%esp                     
  108c27:	8b 5d 08             	mov    0x8(%ebp),%ebx                 
                                                                      
  while (1) {                                                         
    /*                                                                
     * wait for rtems event                                           
     */                                                               
    rtems_event_receive(                                              
  108c2a:	8d 7d e0             	lea    -0x20(%ebp),%edi               
    if (c != EOF) {                                                   
      /*                                                              
       * pollRead did call enqueue on its own                         
       */                                                             
      c_buf = c;                                                      
      rtems_termios_enqueue_raw_characters ( tty,&c_buf,1);           
  108c2d:	8d 75 e7             	lea    -0x19(%ebp),%esi               
                                                                      
  while (1) {                                                         
    /*                                                                
     * wait for rtems event                                           
     */                                                               
    rtems_event_receive(                                              
  108c30:	57                   	push   %edi                           
  108c31:	6a 00                	push   $0x0                           
  108c33:	6a 02                	push   $0x2                           
  108c35:	6a 03                	push   $0x3                           
  108c37:	e8 d8 05 00 00       	call   109214 <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) {              
  108c3c:	83 c4 10             	add    $0x10,%esp                     
  108c3f:	f6 45 e0 01          	testb  $0x1,-0x20(%ebp)               
  108c43:	74 17                	je     108c5c <rtems_termios_rxdaemon+0x3e><== ALWAYS TAKEN
      tty->rxTaskId = 0;                                              
  108c45:	c7 83 c4 00 00 00 00 	movl   $0x0,0xc4(%ebx)                <== NOT EXECUTED
  108c4c:	00 00 00                                                    
      rtems_task_delete(RTEMS_SELF);                                  
  108c4f:	83 ec 0c             	sub    $0xc,%esp                      <== NOT EXECUTED
  108c52:	6a 00                	push   $0x0                           <== NOT EXECUTED
  108c54:	e8 93 0d 00 00       	call   1099ec <rtems_task_delete>     <== NOT EXECUTED
  108c59:	83 c4 10             	add    $0x10,%esp                     <== NOT EXECUTED
    }                                                                 
                                                                      
    /*                                                                
     * do something                                                   
     */                                                               
    c = tty->device.pollRead(tty->minor);                             
  108c5c:	83 ec 0c             	sub    $0xc,%esp                      
  108c5f:	ff 73 10             	pushl  0x10(%ebx)                     
  108c62:	ff 93 a0 00 00 00    	call   *0xa0(%ebx)                    
    if (c != EOF) {                                                   
  108c68:	83 c4 10             	add    $0x10,%esp                     
  108c6b:	83 f8 ff             	cmp    $0xffffffff,%eax               
  108c6e:	74 c0                	je     108c30 <rtems_termios_rxdaemon+0x12>
      /*                                                              
       * pollRead did call enqueue on its own                         
       */                                                             
      c_buf = c;                                                      
  108c70:	88 45 e7             	mov    %al,-0x19(%ebp)                
      rtems_termios_enqueue_raw_characters ( tty,&c_buf,1);           
  108c73:	50                   	push   %eax                           
  108c74:	6a 01                	push   $0x1                           
  108c76:	56                   	push   %esi                           
  108c77:	53                   	push   %ebx                           
  108c78:	e8 16 fd ff ff       	call   108993 <rtems_termios_enqueue_raw_characters>
  108c7d:	83 c4 10             	add    $0x10,%esp                     
  108c80:	eb ae                	jmp    108c30 <rtems_termios_rxdaemon+0x12>
                                                                      

00108e50 <rtems_termios_txdaemon>: /* * this task actually processes any transmit events */ static rtems_task rtems_termios_txdaemon(rtems_task_argument argument) {
  108e50:	55                   	push   %ebp                           
  108e51:	89 e5                	mov    %esp,%ebp                      
  108e53:	56                   	push   %esi                           
  108e54:	53                   	push   %ebx                           
  108e55:	83 ec 10             	sub    $0x10,%esp                     
  108e58:	8b 5d 08             	mov    0x8(%ebp),%ebx                 
                                                                      
  while (1) {                                                         
    /*                                                                
     * wait for rtems event                                           
     */                                                               
    rtems_event_receive(                                              
  108e5b:	8d 75 f4             	lea    -0xc(%ebp),%esi                
  108e5e:	56                   	push   %esi                           
  108e5f:	6a 00                	push   $0x0                           
  108e61:	6a 02                	push   $0x2                           
  108e63:	6a 03                	push   $0x3                           
  108e65:	e8 aa 03 00 00       	call   109214 <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) {              
  108e6a:	83 c4 10             	add    $0x10,%esp                     
  108e6d:	f6 45 f4 01          	testb  $0x1,-0xc(%ebp)                
  108e71:	74 17                	je     108e8a <rtems_termios_txdaemon+0x3a><== ALWAYS TAKEN
      tty->txTaskId = 0;                                              
  108e73:	c7 83 c8 00 00 00 00 	movl   $0x0,0xc8(%ebx)                <== NOT EXECUTED
  108e7a:	00 00 00                                                    
      rtems_task_delete(RTEMS_SELF);                                  
  108e7d:	83 ec 0c             	sub    $0xc,%esp                      <== NOT EXECUTED
  108e80:	6a 00                	push   $0x0                           <== NOT EXECUTED
  108e82:	e8 65 0b 00 00       	call   1099ec <rtems_task_delete>     <== NOT EXECUTED
  108e87:	83 c4 10             	add    $0x10,%esp                     <== NOT EXECUTED
    }                                                                 
                                                                      
    /*                                                                
     * call any line discipline start function                        
     */                                                               
    if (rtems_termios_linesw[tty->t_line].l_start != NULL) {          
  108e8a:	8b 83 cc 00 00 00    	mov    0xcc(%ebx),%eax                
  108e90:	c1 e0 05             	shl    $0x5,%eax                      
  108e93:	8b 80 0c 2e 12 00    	mov    0x122e0c(%eax),%eax            
  108e99:	85 c0                	test   %eax,%eax                      
  108e9b:	74 09                	je     108ea6 <rtems_termios_txdaemon+0x56><== ALWAYS TAKEN
      rtems_termios_linesw[tty->t_line].l_start(tty);                 
  108e9d:	83 ec 0c             	sub    $0xc,%esp                      <== NOT EXECUTED
  108ea0:	53                   	push   %ebx                           <== NOT EXECUTED
  108ea1:	ff d0                	call   *%eax                          <== NOT EXECUTED
  108ea3:	83 c4 10             	add    $0x10,%esp                     <== NOT EXECUTED
    }                                                                 
                                                                      
    /*                                                                
     * try to push further characters to device                       
     */                                                               
    rtems_termios_refill_transmitter(tty);                            
  108ea6:	83 ec 0c             	sub    $0xc,%esp                      
  108ea9:	53                   	push   %ebx                           
  108eaa:	e8 d3 fd ff ff       	call   108c82 <rtems_termios_refill_transmitter>
  }                                                                   
  108eaf:	83 c4 10             	add    $0x10,%esp                     
  108eb2:	eb aa                	jmp    108e5e <rtems_termios_txdaemon+0xe>
                                                                      

001085f2 <rtems_termios_write>: rtems_termios_puts (&c, 1, tty); } rtems_status_code rtems_termios_write (void *arg) {
  1085f2:	55                   	push   %ebp                           
  1085f3:	89 e5                	mov    %esp,%ebp                      
  1085f5:	57                   	push   %edi                           
  1085f6:	56                   	push   %esi                           
  1085f7:	53                   	push   %ebx                           
  1085f8:	83 ec 20             	sub    $0x20,%esp                     
  1085fb:	8b 5d 08             	mov    0x8(%ebp),%ebx                 
  rtems_libio_rw_args_t *args = arg;                                  
  struct rtems_termios_tty *tty = args->iop->data1;                   
  1085fe:	8b 03                	mov    (%ebx),%eax                    
  108600:	8b 70 34             	mov    0x34(%eax),%esi                
  rtems_status_code sc;                                               
                                                                      
  sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
  108603:	6a 00                	push   $0x0                           
  108605:	6a 00                	push   $0x0                           
  108607:	ff 76 18             	pushl  0x18(%esi)                     
  10860a:	e8 29 11 00 00       	call   109738 <rtems_semaphore_obtain>
  10860f:	89 c7                	mov    %eax,%edi                      
  if (sc != RTEMS_SUCCESSFUL)                                         
  108611:	83 c4 10             	add    $0x10,%esp                     
  108614:	85 c0                	test   %eax,%eax                      
  108616:	75 77                	jne    10868f <rtems_termios_write+0x9d><== NEVER TAKEN
    return sc;                                                        
  if (rtems_termios_linesw[tty->t_line].l_write != NULL) {            
  108618:	8b 86 cc 00 00 00    	mov    0xcc(%esi),%eax                
  10861e:	c1 e0 05             	shl    $0x5,%eax                      
  108621:	8b 80 04 2e 12 00    	mov    0x122e04(%eax),%eax            
  108627:	85 c0                	test   %eax,%eax                      
  108629:	74 0b                	je     108636 <rtems_termios_write+0x44>
    sc = rtems_termios_linesw[tty->t_line].l_write(tty,args);         
  10862b:	57                   	push   %edi                           
  10862c:	57                   	push   %edi                           
  10862d:	53                   	push   %ebx                           
  10862e:	56                   	push   %esi                           
  10862f:	ff d0                	call   *%eax                          
  108631:	89 c7                	mov    %eax,%edi                      
    rtems_semaphore_release (tty->osem);                              
  108633:	5b                   	pop    %ebx                           
  108634:	eb 4e                	jmp    108684 <rtems_termios_write+0x92>
    return sc;                                                        
  }                                                                   
  if (tty->termios.c_oflag & OPOST) {                                 
  108636:	f6 46 34 01          	testb  $0x1,0x34(%esi)                
  10863a:	74 2f                	je     10866b <rtems_termios_write+0x79><== NEVER TAKEN
    uint32_t   count = args->count;                                   
  10863c:	8b 4b 10             	mov    0x10(%ebx),%ecx                
    char      *buffer = args->buffer;                                 
  10863f:	8b 43 0c             	mov    0xc(%ebx),%eax                 
  108642:	89 45 e4             	mov    %eax,-0x1c(%ebp)               
    while (count--)                                                   
  108645:	eb 18                	jmp    10865f <rtems_termios_write+0x6d>
      oproc (*buffer++, tty);                                         
  108647:	8b 55 e4             	mov    -0x1c(%ebp),%edx               
  10864a:	0f b6 02             	movzbl (%edx),%eax                    
  10864d:	42                   	inc    %edx                           
  10864e:	89 55 e4             	mov    %edx,-0x1c(%ebp)               
  108651:	89 f2                	mov    %esi,%edx                      
  108653:	89 4d e0             	mov    %ecx,-0x20(%ebp)               
  108656:	e8 37 fb ff ff       	call   108192 <oproc>                 
  10865b:	8b 4d e0             	mov    -0x20(%ebp),%ecx               
  10865e:	49                   	dec    %ecx                           
    return sc;                                                        
  }                                                                   
  if (tty->termios.c_oflag & OPOST) {                                 
    uint32_t   count = args->count;                                   
    char      *buffer = args->buffer;                                 
    while (count--)                                                   
  10865f:	85 c9                	test   %ecx,%ecx                      
  108661:	75 e4                	jne    108647 <rtems_termios_write+0x55>
      oproc (*buffer++, tty);                                         
    args->bytes_moved = args->count;                                  
  108663:	8b 43 10             	mov    0x10(%ebx),%eax                
  108666:	89 43 18             	mov    %eax,0x18(%ebx)                
  108669:	eb 16                	jmp    108681 <rtems_termios_write+0x8f>
  } else {                                                            
    rtems_termios_puts (args->buffer, args->count, tty);              
  10866b:	51                   	push   %ecx                           <== NOT EXECUTED
  10866c:	56                   	push   %esi                           <== NOT EXECUTED
  10866d:	ff 73 10             	pushl  0x10(%ebx)                     <== NOT EXECUTED
  108670:	ff 73 0c             	pushl  0xc(%ebx)                      <== NOT EXECUTED
  108673:	e8 fa f9 ff ff       	call   108072 <rtems_termios_puts>    <== NOT EXECUTED
    args->bytes_moved = args->count;                                  
  108678:	8b 43 10             	mov    0x10(%ebx),%eax                <== NOT EXECUTED
  10867b:	89 43 18             	mov    %eax,0x18(%ebx)                <== NOT EXECUTED
  10867e:	83 c4 10             	add    $0x10,%esp                     <== NOT EXECUTED
  }                                                                   
  rtems_semaphore_release (tty->osem);                                
  108681:	83 ec 0c             	sub    $0xc,%esp                      
  108684:	ff 76 18             	pushl  0x18(%esi)                     
  108687:	e8 98 11 00 00       	call   109824 <rtems_semaphore_release>
  return sc;                                                          
  10868c:	83 c4 10             	add    $0x10,%esp                     
}                                                                     
  10868f:	89 f8                	mov    %edi,%eax                      
  108691:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  108694:	5b                   	pop    %ebx                           
  108695:	5e                   	pop    %esi                           
  108696:	5f                   	pop    %edi                           
  108697:	c9                   	leave                                 
  108698:	c3                   	ret                                   
                                                                      

00115aac <rtems_timer_cancel>: */ rtems_status_code rtems_timer_cancel( rtems_id id ) {
  115aac:	55                   	push   %ebp                           
  115aad:	89 e5                	mov    %esp,%ebp                      
  115aaf:	83 ec 1c             	sub    $0x1c,%esp                     
  Timer_Control   *the_timer;                                         
  Objects_Locations       location;                                   
                                                                      
  the_timer = _Timer_Get( id, &location );                            
  115ab2:	8d 45 f4             	lea    -0xc(%ebp),%eax                
  Objects_Id         id,                                              
  Objects_Locations *location                                         
)                                                                     
{                                                                     
  return (Timer_Control *)                                            
    _Objects_Get( &_Timer_Information, id, location );                
  115ab5:	50                   	push   %eax                           
  115ab6:	ff 75 08             	pushl  0x8(%ebp)                      
  115ab9:	68 d0 c8 13 00       	push   $0x13c8d0                      
  115abe:	e8 41 26 00 00       	call   118104 <_Objects_Get>          
  switch ( location ) {                                               
  115ac3:	83 c4 10             	add    $0x10,%esp                     
  115ac6:	83 7d f4 00          	cmpl   $0x0,-0xc(%ebp)                
  115aca:	75 1e                	jne    115aea <rtems_timer_cancel+0x3e><== NEVER TAKEN
                                                                      
    case OBJECTS_LOCAL:                                               
      if ( !_Timer_Is_dormant_class( the_timer->the_class ) )         
  115acc:	83 78 38 04          	cmpl   $0x4,0x38(%eax)                
  115ad0:	74 0f                	je     115ae1 <rtems_timer_cancel+0x35><== NEVER TAKEN
        (void) _Watchdog_Remove( &the_timer->Ticker );                
  115ad2:	83 ec 0c             	sub    $0xc,%esp                      
  115ad5:	83 c0 10             	add    $0x10,%eax                     
  115ad8:	50                   	push   %eax                           
  115ad9:	e8 72 3f 00 00       	call   119a50 <_Watchdog_Remove>      
  115ade:	83 c4 10             	add    $0x10,%esp                     
      _Thread_Enable_dispatch();                                      
  115ae1:	e8 9c 30 00 00       	call   118b82 <_Thread_Enable_dispatch>
      return RTEMS_SUCCESSFUL;                                        
  115ae6:	31 c0                	xor    %eax,%eax                      
  115ae8:	eb 05                	jmp    115aef <rtems_timer_cancel+0x43>
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
  115aea:	b8 04 00 00 00       	mov    $0x4,%eax                      <== NOT EXECUTED
}                                                                     
  115aef:	c9                   	leave                                 
  115af0:	c3                   	ret                                   
                                                                      

00109fb8 <rtems_timer_create>: rtems_status_code rtems_timer_create( rtems_name name, rtems_id *id ) {
  109fb8:	55                   	push   %ebp                           
  109fb9:	89 e5                	mov    %esp,%ebp                      
  109fbb:	57                   	push   %edi                           
  109fbc:	56                   	push   %esi                           
  109fbd:	53                   	push   %ebx                           
  109fbe:	83 ec 0c             	sub    $0xc,%esp                      
  109fc1:	8b 75 08             	mov    0x8(%ebp),%esi                 
  109fc4:	8b 5d 0c             	mov    0xc(%ebp),%ebx                 
  Timer_Control *the_timer;                                           
                                                                      
  if ( !rtems_is_name_valid( name ) )                                 
    return RTEMS_INVALID_NAME;                                        
  109fc7:	b8 03 00 00 00       	mov    $0x3,%eax                      
  rtems_id   *id                                                      
)                                                                     
{                                                                     
  Timer_Control *the_timer;                                           
                                                                      
  if ( !rtems_is_name_valid( name ) )                                 
  109fcc:	85 f6                	test   %esi,%esi                      
  109fce:	74 6f                	je     10a03f <rtems_timer_create+0x87><== NEVER TAKEN
    return RTEMS_INVALID_NAME;                                        
                                                                      
  if ( !id )                                                          
    return RTEMS_INVALID_ADDRESS;                                     
  109fd0:	b0 09                	mov    $0x9,%al                       
  Timer_Control *the_timer;                                           
                                                                      
  if ( !rtems_is_name_valid( name ) )                                 
    return RTEMS_INVALID_NAME;                                        
                                                                      
  if ( !id )                                                          
  109fd2:	85 db                	test   %ebx,%ebx                      
  109fd4:	74 69                	je     10a03f <rtems_timer_create+0x87><== NEVER TAKEN
  109fd6:	a1 b0 53 12 00       	mov    0x1253b0,%eax                  
  109fdb:	40                   	inc    %eax                           
  109fdc:	a3 b0 53 12 00       	mov    %eax,0x1253b0                  
 *  This function allocates a timer control block from                
 *  the inactive chain of free timer control blocks.                  
 */                                                                   
RTEMS_INLINE_ROUTINE Timer_Control *_Timer_Allocate( void )           
{                                                                     
  return (Timer_Control *) _Objects_Allocate( &_Timer_Information );  
  109fe1:	83 ec 0c             	sub    $0xc,%esp                      
  109fe4:	68 00 56 12 00       	push   $0x125600                      
  109fe9:	e8 8a 0c 00 00       	call   10ac78 <_Objects_Allocate>     
                                                                      
  _Thread_Disable_dispatch();         /* to prevent deletion */       
                                                                      
  the_timer = _Timer_Allocate();                                      
                                                                      
  if ( !the_timer ) {                                                 
  109fee:	83 c4 10             	add    $0x10,%esp                     
  109ff1:	85 c0                	test   %eax,%eax                      
  109ff3:	75 0c                	jne    10a001 <rtems_timer_create+0x49><== ALWAYS TAKEN
    _Thread_Enable_dispatch();                                        
  109ff5:	e8 bc 1a 00 00       	call   10bab6 <_Thread_Enable_dispatch><== NOT EXECUTED
    return RTEMS_TOO_MANY;                                            
  109ffa:	b8 05 00 00 00       	mov    $0x5,%eax                      <== NOT EXECUTED
  109fff:	eb 3e                	jmp    10a03f <rtems_timer_create+0x87><== NOT EXECUTED
  }                                                                   
                                                                      
  the_timer->the_class = TIMER_DORMANT;                               
  10a001:	c7 40 38 04 00 00 00 	movl   $0x4,0x38(%eax)                
  Watchdog_Service_routine_entry  routine,                            
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
  10a008:	c7 40 18 00 00 00 00 	movl   $0x0,0x18(%eax)                
  the_watchdog->routine   = routine;                                  
  10a00f:	c7 40 2c 00 00 00 00 	movl   $0x0,0x2c(%eax)                
  the_watchdog->id        = id;                                       
  10a016:	c7 40 30 00 00 00 00 	movl   $0x0,0x30(%eax)                
  the_watchdog->user_data = user_data;                                
  10a01d:	c7 40 34 00 00 00 00 	movl   $0x0,0x34(%eax)                
  Objects_Name         name                                           
)                                                                     
{                                                                     
  _Objects_Set_local_object(                                          
    information,                                                      
    _Objects_Get_index( the_object->id ),                             
  10a024:	8b 50 08             	mov    0x8(%eax),%edx                 
  Objects_Information *information,                                   
  Objects_Control     *the_object,                                    
  Objects_Name         name                                           
)                                                                     
{                                                                     
  _Objects_Set_local_object(                                          
  10a027:	0f b7 fa             	movzwl %dx,%edi                       
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
  10a02a:	8b 0d 1c 56 12 00    	mov    0x12561c,%ecx                  
  10a030:	89 04 b9             	mov    %eax,(%ecx,%edi,4)             
    information,                                                      
    _Objects_Get_index( the_object->id ),                             
    the_object                                                        
  );                                                                  
                                                                      
  the_object->name = name;                                            
  10a033:	89 70 0c             	mov    %esi,0xc(%eax)                 
    &_Timer_Information,                                              
    &the_timer->Object,                                               
    (Objects_Name) name                                               
  );                                                                  
                                                                      
  *id = the_timer->Object.id;                                         
  10a036:	89 13                	mov    %edx,(%ebx)                    
  _Thread_Enable_dispatch();                                          
  10a038:	e8 79 1a 00 00       	call   10bab6 <_Thread_Enable_dispatch>
  return RTEMS_SUCCESSFUL;                                            
  10a03d:	31 c0                	xor    %eax,%eax                      
}                                                                     
  10a03f:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  10a042:	5b                   	pop    %ebx                           
  10a043:	5e                   	pop    %esi                           
  10a044:	5f                   	pop    %edi                           
  10a045:	c9                   	leave                                 
  10a046:	c3                   	ret                                   
                                                                      

00115b84 <rtems_timer_delete>: */ rtems_status_code rtems_timer_delete( rtems_id id ) {
  115b84:	55                   	push   %ebp                           
  115b85:	89 e5                	mov    %esp,%ebp                      
  115b87:	53                   	push   %ebx                           
  115b88:	83 ec 18             	sub    $0x18,%esp                     
  Timer_Control     *the_timer;                                       
  Objects_Locations  location;                                        
                                                                      
  the_timer = _Timer_Get( id, &location );                            
  115b8b:	8d 45 f4             	lea    -0xc(%ebp),%eax                
  Objects_Id         id,                                              
  Objects_Locations *location                                         
)                                                                     
{                                                                     
  return (Timer_Control *)                                            
    _Objects_Get( &_Timer_Information, id, location );                
  115b8e:	50                   	push   %eax                           
  115b8f:	ff 75 08             	pushl  0x8(%ebp)                      
  115b92:	68 d0 c8 13 00       	push   $0x13c8d0                      
  115b97:	e8 68 25 00 00       	call   118104 <_Objects_Get>          
  115b9c:	89 c3                	mov    %eax,%ebx                      
  switch ( location ) {                                               
  115b9e:	83 c4 10             	add    $0x10,%esp                     
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
  115ba1:	b8 04 00 00 00       	mov    $0x4,%eax                      
{                                                                     
  Timer_Control     *the_timer;                                       
  Objects_Locations  location;                                        
                                                                      
  the_timer = _Timer_Get( id, &location );                            
  switch ( location ) {                                               
  115ba6:	83 7d f4 00          	cmpl   $0x0,-0xc(%ebp)                
  115baa:	75 2f                	jne    115bdb <rtems_timer_delete+0x57><== NEVER TAKEN
                                                                      
    case OBJECTS_LOCAL:                                               
      _Objects_Close( &_Timer_Information, &the_timer->Object );      
  115bac:	51                   	push   %ecx                           
  115bad:	51                   	push   %ecx                           
  115bae:	53                   	push   %ebx                           
  115baf:	68 d0 c8 13 00       	push   $0x13c8d0                      
  115bb4:	e8 4f 21 00 00       	call   117d08 <_Objects_Close>        
      (void) _Watchdog_Remove( &the_timer->Ticker );                  
  115bb9:	8d 43 10             	lea    0x10(%ebx),%eax                
  115bbc:	89 04 24             	mov    %eax,(%esp)                    
  115bbf:	e8 8c 3e 00 00       	call   119a50 <_Watchdog_Remove>      
 */                                                                   
RTEMS_INLINE_ROUTINE void _Timer_Free (                               
  Timer_Control *the_timer                                            
)                                                                     
{                                                                     
  _Objects_Free( &_Timer_Information, &the_timer->Object );           
  115bc4:	58                   	pop    %eax                           
  115bc5:	5a                   	pop    %edx                           
  115bc6:	53                   	push   %ebx                           
  115bc7:	68 d0 c8 13 00       	push   $0x13c8d0                      
  115bcc:	e8 bf 23 00 00       	call   117f90 <_Objects_Free>         
      _Timer_Free( the_timer );                                       
      _Thread_Enable_dispatch();                                      
  115bd1:	e8 ac 2f 00 00       	call   118b82 <_Thread_Enable_dispatch>
      return RTEMS_SUCCESSFUL;                                        
  115bd6:	83 c4 10             	add    $0x10,%esp                     
  115bd9:	31 c0                	xor    %eax,%eax                      
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
}                                                                     
  115bdb:	8b 5d fc             	mov    -0x4(%ebp),%ebx                
  115bde:	c9                   	leave                                 
  115bdf:	c3                   	ret                                   
                                                                      

0010a048 <rtems_timer_fire_after>: rtems_id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data ) {
  10a048:	55                   	push   %ebp                           
  10a049:	89 e5                	mov    %esp,%ebp                      
  10a04b:	57                   	push   %edi                           
  10a04c:	56                   	push   %esi                           
  10a04d:	53                   	push   %ebx                           
  10a04e:	83 ec 1c             	sub    $0x1c,%esp                     
  10a051:	8b 7d 08             	mov    0x8(%ebp),%edi                 
  Timer_Control      *the_timer;                                      
  Objects_Locations   location;                                       
  ISR_Level           level;                                          
                                                                      
  if ( ticks == 0 )                                                   
    return RTEMS_INVALID_NUMBER;                                      
  10a054:	b8 0a 00 00 00       	mov    $0xa,%eax                      
{                                                                     
  Timer_Control      *the_timer;                                      
  Objects_Locations   location;                                       
  ISR_Level           level;                                          
                                                                      
  if ( ticks == 0 )                                                   
  10a059:	83 7d 0c 00          	cmpl   $0x0,0xc(%ebp)                 
  10a05d:	0f 84 85 00 00 00    	je     10a0e8 <rtems_timer_fire_after+0xa0><== NEVER TAKEN
    return RTEMS_INVALID_NUMBER;                                      
                                                                      
  if ( !routine )                                                     
    return RTEMS_INVALID_ADDRESS;                                     
  10a063:	b0 09                	mov    $0x9,%al                       
  ISR_Level           level;                                          
                                                                      
  if ( ticks == 0 )                                                   
    return RTEMS_INVALID_NUMBER;                                      
                                                                      
  if ( !routine )                                                     
  10a065:	83 7d 10 00          	cmpl   $0x0,0x10(%ebp)                
  10a069:	74 7d                	je     10a0e8 <rtems_timer_fire_after+0xa0><== NEVER TAKEN
  Objects_Id         id,                                              
  Objects_Locations *location                                         
)                                                                     
{                                                                     
  return (Timer_Control *)                                            
    _Objects_Get( &_Timer_Information, id, location );                
  10a06b:	52                   	push   %edx                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  the_timer = _Timer_Get( id, &location );                            
  10a06c:	8d 45 e4             	lea    -0x1c(%ebp),%eax               
  10a06f:	50                   	push   %eax                           
  10a070:	57                   	push   %edi                           
  10a071:	68 00 56 12 00       	push   $0x125600                      
  10a076:	e8 29 10 00 00       	call   10b0a4 <_Objects_Get>          
  10a07b:	89 c3                	mov    %eax,%ebx                      
  switch ( location ) {                                               
  10a07d:	83 c4 10             	add    $0x10,%esp                     
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
  10a080:	b8 04 00 00 00       	mov    $0x4,%eax                      
                                                                      
  if ( !routine )                                                     
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  the_timer = _Timer_Get( id, &location );                            
  switch ( location ) {                                               
  10a085:	83 7d e4 00          	cmpl   $0x0,-0x1c(%ebp)               
  10a089:	75 5d                	jne    10a0e8 <rtems_timer_fire_after+0xa0><== NEVER TAKEN
                                                                      
    case OBJECTS_LOCAL:                                               
      (void) _Watchdog_Remove( &the_timer->Ticker );                  
  10a08b:	8d 73 10             	lea    0x10(%ebx),%esi                
  10a08e:	83 ec 0c             	sub    $0xc,%esp                      
  10a091:	56                   	push   %esi                           
  10a092:	e8 f5 26 00 00       	call   10c78c <_Watchdog_Remove>      
                                                                      
      _ISR_Disable( level );                                          
  10a097:	9c                   	pushf                                 
  10a098:	fa                   	cli                                   
  10a099:	58                   	pop    %eax                           
        /*                                                            
         *  Check to see if the watchdog has just been inserted by a  
         *  higher priority interrupt.  If so, abandon this insert.   
         */                                                           
                                                                      
        if ( the_timer->Ticker.state != WATCHDOG_INACTIVE ) {         
  10a09a:	83 c4 10             	add    $0x10,%esp                     
  10a09d:	83 7b 18 00          	cmpl   $0x0,0x18(%ebx)                
  10a0a1:	74 09                	je     10a0ac <rtems_timer_fire_after+0x64>
          _ISR_Enable( level );                                       
  10a0a3:	50                   	push   %eax                           
  10a0a4:	9d                   	popf                                  
          _Thread_Enable_dispatch();                                  
  10a0a5:	e8 0c 1a 00 00       	call   10bab6 <_Thread_Enable_dispatch>
  10a0aa:	eb 3a                	jmp    10a0e6 <rtems_timer_fire_after+0x9e>
        /*                                                            
         *  OK.  Now we now the timer was not rescheduled by an interrupt
         *  so we can atomically initialize it as in use.             
         */                                                           
                                                                      
        the_timer->the_class = TIMER_INTERVAL;                        
  10a0ac:	c7 43 38 00 00 00 00 	movl   $0x0,0x38(%ebx)                
  Watchdog_Service_routine_entry  routine,                            
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
  10a0b3:	c7 43 18 00 00 00 00 	movl   $0x0,0x18(%ebx)                
  the_watchdog->routine   = routine;                                  
  10a0ba:	8b 55 10             	mov    0x10(%ebp),%edx                
  10a0bd:	89 53 2c             	mov    %edx,0x2c(%ebx)                
  the_watchdog->id        = id;                                       
  10a0c0:	89 7b 30             	mov    %edi,0x30(%ebx)                
  the_watchdog->user_data = user_data;                                
  10a0c3:	8b 55 14             	mov    0x14(%ebp),%edx                
  10a0c6:	89 53 34             	mov    %edx,0x34(%ebx)                
        _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data );
      _ISR_Enable( level );                                           
  10a0c9:	50                   	push   %eax                           
  10a0ca:	9d                   	popf                                  
  Watchdog_Control      *the_watchdog,                                
  Watchdog_Interval      units                                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
  10a0cb:	8b 45 0c             	mov    0xc(%ebp),%eax                 
  10a0ce:	89 43 1c             	mov    %eax,0x1c(%ebx)                
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
  10a0d1:	50                   	push   %eax                           
  10a0d2:	50                   	push   %eax                           
  10a0d3:	56                   	push   %esi                           
  10a0d4:	68 70 54 12 00       	push   $0x125470                      
  10a0d9:	e8 8e 25 00 00       	call   10c66c <_Watchdog_Insert>      
                                                                      
                                                                      
      _Watchdog_Insert_ticks( &the_timer->Ticker, ticks );            
      _Thread_Enable_dispatch();                                      
  10a0de:	e8 d3 19 00 00       	call   10bab6 <_Thread_Enable_dispatch>
      return RTEMS_SUCCESSFUL;                                        
  10a0e3:	83 c4 10             	add    $0x10,%esp                     
  10a0e6:	31 c0                	xor    %eax,%eax                      
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
}                                                                     
  10a0e8:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  10a0eb:	5b                   	pop    %ebx                           
  10a0ec:	5e                   	pop    %esi                           
  10a0ed:	5f                   	pop    %edi                           
  10a0ee:	c9                   	leave                                 
  10a0ef:	c3                   	ret                                   
                                                                      

00115c88 <rtems_timer_fire_when>: rtems_id id, rtems_time_of_day *wall_time, rtems_timer_service_routine_entry routine, void *user_data ) {
  115c88:	55                   	push   %ebp                           
  115c89:	89 e5                	mov    %esp,%ebp                      
  115c8b:	57                   	push   %edi                           
  115c8c:	56                   	push   %esi                           
  115c8d:	53                   	push   %ebx                           
  115c8e:	83 ec 1c             	sub    $0x1c,%esp                     
  115c91:	8b 5d 0c             	mov    0xc(%ebp),%ebx                 
  Timer_Control       *the_timer;                                     
  Objects_Locations    location;                                      
  rtems_interval       seconds;                                       
                                                                      
  if ( !_TOD_Is_set )                                                 
    return RTEMS_NOT_DEFINED;                                         
  115c94:	b8 0b 00 00 00       	mov    $0xb,%eax                      
{                                                                     
  Timer_Control       *the_timer;                                     
  Objects_Locations    location;                                      
  rtems_interval       seconds;                                       
                                                                      
  if ( !_TOD_Is_set )                                                 
  115c99:	80 3d 48 c6 13 00 00 	cmpb   $0x0,0x13c648                  
  115ca0:	0f 84 b0 00 00 00    	je     115d56 <rtems_timer_fire_when+0xce>
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( !_TOD_Validate( wall_time ) )                                  
  115ca6:	83 ec 0c             	sub    $0xc,%esp                      
  115ca9:	53                   	push   %ebx                           
  115caa:	e8 55 d9 ff ff       	call   113604 <_TOD_Validate>         
  115caf:	88 c2                	mov    %al,%dl                        
  115cb1:	83 c4 10             	add    $0x10,%esp                     
    return RTEMS_INVALID_CLOCK;                                       
  115cb4:	b8 14 00 00 00       	mov    $0x14,%eax                     
  rtems_interval       seconds;                                       
                                                                      
  if ( !_TOD_Is_set )                                                 
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( !_TOD_Validate( wall_time ) )                                  
  115cb9:	84 d2                	test   %dl,%dl                        
  115cbb:	0f 84 95 00 00 00    	je     115d56 <rtems_timer_fire_when+0xce><== NEVER TAKEN
    return RTEMS_INVALID_CLOCK;                                       
                                                                      
  if ( !routine )                                                     
    return RTEMS_INVALID_ADDRESS;                                     
  115cc1:	b0 09                	mov    $0x9,%al                       
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( !_TOD_Validate( wall_time ) )                                  
    return RTEMS_INVALID_CLOCK;                                       
                                                                      
  if ( !routine )                                                     
  115cc3:	83 7d 10 00          	cmpl   $0x0,0x10(%ebp)                
  115cc7:	0f 84 89 00 00 00    	je     115d56 <rtems_timer_fire_when+0xce><== NEVER TAKEN
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  seconds = _TOD_To_seconds( wall_time );                             
  115ccd:	83 ec 0c             	sub    $0xc,%esp                      
  115cd0:	53                   	push   %ebx                           
  115cd1:	e8 c6 d8 ff ff       	call   11359c <_TOD_To_seconds>       
  115cd6:	89 c7                	mov    %eax,%edi                      
  if ( seconds <= _TOD_Seconds_since_epoch() )                        
  115cd8:	83 c4 10             	add    $0x10,%esp                     
    return RTEMS_INVALID_CLOCK;                                       
  115cdb:	b8 14 00 00 00       	mov    $0x14,%eax                     
                                                                      
  if ( !routine )                                                     
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  seconds = _TOD_To_seconds( wall_time );                             
  if ( seconds <= _TOD_Seconds_since_epoch() )                        
  115ce0:	3b 3d c0 c6 13 00    	cmp    0x13c6c0,%edi                  
  115ce6:	76 6e                	jbe    115d56 <rtems_timer_fire_when+0xce><== NEVER TAKEN
  115ce8:	51                   	push   %ecx                           
    return RTEMS_INVALID_CLOCK;                                       
                                                                      
  the_timer = _Timer_Get( id, &location );                            
  115ce9:	8d 45 e4             	lea    -0x1c(%ebp),%eax               
  115cec:	50                   	push   %eax                           
  115ced:	ff 75 08             	pushl  0x8(%ebp)                      
  115cf0:	68 d0 c8 13 00       	push   $0x13c8d0                      
  115cf5:	e8 0a 24 00 00       	call   118104 <_Objects_Get>          
  115cfa:	89 c3                	mov    %eax,%ebx                      
  switch ( location ) {                                               
  115cfc:	83 c4 10             	add    $0x10,%esp                     
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
  115cff:	b8 04 00 00 00       	mov    $0x4,%eax                      
  seconds = _TOD_To_seconds( wall_time );                             
  if ( seconds <= _TOD_Seconds_since_epoch() )                        
    return RTEMS_INVALID_CLOCK;                                       
                                                                      
  the_timer = _Timer_Get( id, &location );                            
  switch ( location ) {                                               
  115d04:	83 7d e4 00          	cmpl   $0x0,-0x1c(%ebp)               
  115d08:	75 4c                	jne    115d56 <rtems_timer_fire_when+0xce><== NEVER TAKEN
                                                                      
    case OBJECTS_LOCAL:                                               
      (void) _Watchdog_Remove( &the_timer->Ticker );                  
  115d0a:	8d 73 10             	lea    0x10(%ebx),%esi                
  115d0d:	83 ec 0c             	sub    $0xc,%esp                      
  115d10:	56                   	push   %esi                           
  115d11:	e8 3a 3d 00 00       	call   119a50 <_Watchdog_Remove>      
      the_timer->the_class = TIMER_TIME_OF_DAY;                       
  115d16:	c7 43 38 02 00 00 00 	movl   $0x2,0x38(%ebx)                
  Watchdog_Service_routine_entry  routine,                            
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
  115d1d:	c7 43 18 00 00 00 00 	movl   $0x0,0x18(%ebx)                
  the_watchdog->routine   = routine;                                  
  115d24:	8b 45 10             	mov    0x10(%ebp),%eax                
  115d27:	89 43 2c             	mov    %eax,0x2c(%ebx)                
  the_watchdog->id        = id;                                       
  115d2a:	8b 45 08             	mov    0x8(%ebp),%eax                 
  115d2d:	89 43 30             	mov    %eax,0x30(%ebx)                
  the_watchdog->user_data = user_data;                                
  115d30:	8b 45 14             	mov    0x14(%ebp),%eax                
  115d33:	89 43 34             	mov    %eax,0x34(%ebx)                
      _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data );
      _Watchdog_Insert_seconds(                                       
  115d36:	2b 3d c0 c6 13 00    	sub    0x13c6c0,%edi                  
  115d3c:	89 7b 1c             	mov    %edi,0x1c(%ebx)                
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
                                                                      
  _Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog );         
  115d3f:	58                   	pop    %eax                           
  115d40:	5a                   	pop    %edx                           
  115d41:	56                   	push   %esi                           
  115d42:	68 ec c6 13 00       	push   $0x13c6ec                      
  115d47:	e8 e4 3b 00 00       	call   119930 <_Watchdog_Insert>      
         &the_timer->Ticker,                                          
         seconds - _TOD_Seconds_since_epoch()                         
       );                                                             
      _Thread_Enable_dispatch();                                      
  115d4c:	e8 31 2e 00 00       	call   118b82 <_Thread_Enable_dispatch>
      return RTEMS_SUCCESSFUL;                                        
  115d51:	83 c4 10             	add    $0x10,%esp                     
  115d54:	31 c0                	xor    %eax,%eax                      
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
}                                                                     
  115d56:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  115d59:	5b                   	pop    %ebx                           
  115d5a:	5e                   	pop    %esi                           
  115d5b:	5f                   	pop    %edi                           
  115d5c:	c9                   	leave                                 
  115d5d:	c3                   	ret                                   
                                                                      

00115d60 <rtems_timer_get_information>: rtems_status_code rtems_timer_get_information( rtems_id id, rtems_timer_information *the_info ) {
  115d60:	55                   	push   %ebp                           
  115d61:	89 e5                	mov    %esp,%ebp                      
  115d63:	53                   	push   %ebx                           
  115d64:	83 ec 14             	sub    $0x14,%esp                     
  115d67:	8b 5d 0c             	mov    0xc(%ebp),%ebx                 
  Timer_Control     *the_timer;                                       
  Objects_Locations  location;                                        
                                                                      
  if ( !the_info )                                                    
    return RTEMS_INVALID_ADDRESS;                                     
  115d6a:	b8 09 00 00 00       	mov    $0x9,%eax                      
)                                                                     
{                                                                     
  Timer_Control     *the_timer;                                       
  Objects_Locations  location;                                        
                                                                      
  if ( !the_info )                                                    
  115d6f:	85 db                	test   %ebx,%ebx                      
  115d71:	74 40                	je     115db3 <rtems_timer_get_information+0x53><== NEVER TAKEN
  115d73:	50                   	push   %eax                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  the_timer = _Timer_Get( id, &location );                            
  115d74:	8d 45 f4             	lea    -0xc(%ebp),%eax                
  115d77:	50                   	push   %eax                           
  115d78:	ff 75 08             	pushl  0x8(%ebp)                      
  115d7b:	68 d0 c8 13 00       	push   $0x13c8d0                      
  115d80:	e8 7f 23 00 00       	call   118104 <_Objects_Get>          
  switch ( location ) {                                               
  115d85:	83 c4 10             	add    $0x10,%esp                     
  115d88:	83 7d f4 00          	cmpl   $0x0,-0xc(%ebp)                
  115d8c:	75 20                	jne    115dae <rtems_timer_get_information+0x4e><== NEVER TAKEN
                                                                      
    case OBJECTS_LOCAL:                                               
      the_info->the_class  = the_timer->the_class;                    
  115d8e:	8b 50 38             	mov    0x38(%eax),%edx                
  115d91:	89 13                	mov    %edx,(%ebx)                    
      the_info->initial    = the_timer->Ticker.initial;               
  115d93:	8b 50 1c             	mov    0x1c(%eax),%edx                
  115d96:	89 53 04             	mov    %edx,0x4(%ebx)                 
      the_info->start_time = the_timer->Ticker.start_time;            
  115d99:	8b 50 24             	mov    0x24(%eax),%edx                
  115d9c:	89 53 08             	mov    %edx,0x8(%ebx)                 
      the_info->stop_time  = the_timer->Ticker.stop_time;             
  115d9f:	8b 40 28             	mov    0x28(%eax),%eax                
  115da2:	89 43 0c             	mov    %eax,0xc(%ebx)                 
      _Thread_Enable_dispatch();                                      
  115da5:	e8 d8 2d 00 00       	call   118b82 <_Thread_Enable_dispatch>
      return RTEMS_SUCCESSFUL;                                        
  115daa:	31 c0                	xor    %eax,%eax                      
  115dac:	eb 05                	jmp    115db3 <rtems_timer_get_information+0x53>
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
  115dae:	b8 04 00 00 00       	mov    $0x4,%eax                      <== NOT EXECUTED
}                                                                     
  115db3:	8b 5d fc             	mov    -0x4(%ebp),%ebx                
  115db6:	c9                   	leave                                 
  115db7:	c3                   	ret                                   
                                                                      

00116311 <rtems_timer_initiate_server>: rtems_status_code rtems_timer_initiate_server( uint32_t priority, uint32_t stack_size, rtems_attribute attribute_set ) {
  116311:	55                   	push   %ebp                           
  116312:	89 e5                	mov    %esp,%ebp                      
  116314:	53                   	push   %ebx                           
  116315:	83 ec 24             	sub    $0x24,%esp                     
  116318:	8b 55 08             	mov    0x8(%ebp),%edx                 
 */                                                                   
RTEMS_INLINE_ROUTINE bool _RTEMS_tasks_Priority_is_valid (            
  rtems_task_priority the_priority                                    
)                                                                     
{                                                                     
  return (  ( the_priority >= RTEMS_MINIMUM_PRIORITY ) &&             
  11631b:	31 c0                	xor    %eax,%eax                      
  11631d:	85 d2                	test   %edx,%edx                      
  11631f:	74 0f                	je     116330 <rtems_timer_initiate_server+0x1f><== NEVER TAKEN
            ( the_priority <= RTEMS_MAXIMUM_PRIORITY ) );             
  116321:	0f b6 05 24 42 13 00 	movzbl 0x134224,%eax                  
 */                                                                   
RTEMS_INLINE_ROUTINE bool _RTEMS_tasks_Priority_is_valid (            
  rtems_task_priority the_priority                                    
)                                                                     
{                                                                     
  return (  ( the_priority >= RTEMS_MINIMUM_PRIORITY ) &&             
  116328:	39 c2                	cmp    %eax,%edx                      
  11632a:	0f 96 c0             	setbe  %al                            
  11632d:	0f b6 c0             	movzbl %al,%eax                       
   *  Make sure the requested priority is valid.  The if is           
   *  structured so we check it is invalid before looking for         
   *  a specific invalid value as the default.                        
   */                                                                 
  _priority = priority;                                               
  if ( !_RTEMS_tasks_Priority_is_valid( priority ) ) {                
  116330:	85 c0                	test   %eax,%eax                      
  116332:	75 0d                	jne    116341 <rtems_timer_initiate_server+0x30>
    if ( priority != RTEMS_TIMER_SERVER_DEFAULT_PRIORITY )            
      return RTEMS_INVALID_PRIORITY;                                  
  116334:	b0 13                	mov    $0x13,%al                      
   *  structured so we check it is invalid before looking for         
   *  a specific invalid value as the default.                        
   */                                                                 
  _priority = priority;                                               
  if ( !_RTEMS_tasks_Priority_is_valid( priority ) ) {                
    if ( priority != RTEMS_TIMER_SERVER_DEFAULT_PRIORITY )            
  116336:	42                   	inc    %edx                           
  116337:	0f 85 4b 01 00 00    	jne    116488 <rtems_timer_initiate_server+0x177>
      return RTEMS_INVALID_PRIORITY;                                  
    _priority = 0;                                                    
  11633d:	31 db                	xor    %ebx,%ebx                      
  11633f:	eb 02                	jmp    116343 <rtems_timer_initiate_server+0x32>
   *  Make sure the requested priority is valid.  The if is           
   *  structured so we check it is invalid before looking for         
   *  a specific invalid value as the default.                        
   */                                                                 
  _priority = priority;                                               
  if ( !_RTEMS_tasks_Priority_is_valid( priority ) ) {                
  116341:	89 d3                	mov    %edx,%ebx                      
  }                                                                   
                                                                      
  /*                                                                  
   *  Just to make sure this is only called once.                     
   */                                                                 
  _Thread_Disable_dispatch();                                         
  116343:	e8 a0 fc ff ff       	call   115fe8 <_Thread_Disable_dispatch>
    tmpInitialized  = initialized;                                    
  116348:	8a 15 f8 7f 13 00    	mov    0x137ff8,%dl                   
    initialized = true;                                               
  11634e:	c6 05 f8 7f 13 00 01 	movb   $0x1,0x137ff8                  
  _Thread_Enable_dispatch();                                          
  116355:	88 55 e4             	mov    %dl,-0x1c(%ebp)                
  116358:	e8 25 28 00 00       	call   118b82 <_Thread_Enable_dispatch>
                                                                      
  if ( tmpInitialized )                                               
    return RTEMS_INCORRECT_STATE;                                     
  11635d:	b8 0e 00 00 00       	mov    $0xe,%eax                      
  _Thread_Disable_dispatch();                                         
    tmpInitialized  = initialized;                                    
    initialized = true;                                               
  _Thread_Enable_dispatch();                                          
                                                                      
  if ( tmpInitialized )                                               
  116362:	8a 55 e4             	mov    -0x1c(%ebp),%dl                
  116365:	84 d2                	test   %dl,%dl                        
  116367:	0f 85 1b 01 00 00    	jne    116488 <rtems_timer_initiate_server+0x177>
   *  other library rules.  For example, if using a TSR written in Ada the
   *  Server should run at the same priority as the priority Ada task.
   *  Otherwise, the priority ceiling for the mutex used to protect the
   *  GNAT run-time is violated.                                      
   */                                                                 
  status = rtems_task_create(                                         
  11636d:	51                   	push   %ecx                           
  11636e:	51                   	push   %ecx                           
  11636f:	8d 45 f4             	lea    -0xc(%ebp),%eax                
  116372:	50                   	push   %eax                           
  116373:	8b 45 10             	mov    0x10(%ebp),%eax                
  116376:	80 cc 80             	or     $0x80,%ah                      
  116379:	50                   	push   %eax                           
  11637a:	68 00 01 00 00       	push   $0x100                         
  11637f:	ff 75 0c             	pushl  0xc(%ebp)                      
  116382:	53                   	push   %ebx                           
  116383:	68 45 4d 49 54       	push   $0x54494d45                    
  116388:	e8 5b ef ff ff       	call   1152e8 <rtems_task_create>     
                          /* user may want floating point but we need */
                          /*   system task specified for 0 priority */
    attribute_set | RTEMS_SYSTEM_TASK,                                
    &id                   /* get the id back */                       
  );                                                                  
  if (status) {                                                       
  11638d:	83 c4 20             	add    $0x20,%esp                     
  116390:	85 c0                	test   %eax,%eax                      
  116392:	74 0c                	je     1163a0 <rtems_timer_initiate_server+0x8f><== ALWAYS TAKEN
    initialized = false;                                              
  116394:	c6 05 f8 7f 13 00 00 	movb   $0x0,0x137ff8                  <== NOT EXECUTED
    return status;                                                    
  11639b:	e9 e8 00 00 00       	jmp    116488 <rtems_timer_initiate_server+0x177><== NOT EXECUTED
   *  We work with the TCB pointer, not the ID, so we need to convert 
   *  to a TCB pointer from here out.                                 
   */                                                                 
  ts->thread = (Thread_Control *)_Objects_Get_local_object(           
    &_RTEMS_tasks_Information,                                        
    _Objects_Get_index(id)                                            
  1163a0:	8b 45 f4             	mov    -0xc(%ebp),%eax                
   */                                                                 
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return NULL;                                                    
  #endif                                                              
  return information->local_table[ index ];                           
  1163a3:	0f b7 c8             	movzwl %ax,%ecx                       
  1163a6:	8b 15 e8 c5 13 00    	mov    0x13c5e8,%edx                  
                                                                      
  /*                                                                  
   *  We work with the TCB pointer, not the ID, so we need to convert 
   *  to a TCB pointer from here out.                                 
   */                                                                 
  ts->thread = (Thread_Control *)_Objects_Get_local_object(           
  1163ac:	8b 14 8a             	mov    (%edx,%ecx,4),%edx             
  1163af:	89 15 78 7f 13 00    	mov    %edx,0x137f78                  
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
  1163b5:	c7 05 a8 7f 13 00 ac 	movl   $0x137fac,0x137fa8             
  1163bc:	7f 13 00                                                    
  head->previous = NULL;                                              
  1163bf:	c7 05 ac 7f 13 00 00 	movl   $0x0,0x137fac                  
  1163c6:	00 00 00                                                    
  tail->previous = head;                                              
  1163c9:	c7 05 b0 7f 13 00 a8 	movl   $0x137fa8,0x137fb0             
  1163d0:	7f 13 00                                                    
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
  1163d3:	c7 05 e0 7f 13 00 e4 	movl   $0x137fe4,0x137fe0             
  1163da:	7f 13 00                                                    
  head->previous = NULL;                                              
  1163dd:	c7 05 e4 7f 13 00 00 	movl   $0x0,0x137fe4                  
  1163e4:	00 00 00                                                    
  tail->previous = head;                                              
  1163e7:	c7 05 e8 7f 13 00 e0 	movl   $0x137fe0,0x137fe8             
  1163ee:	7f 13 00                                                    
  Watchdog_Service_routine_entry  routine,                            
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
  1163f1:	c7 05 88 7f 13 00 00 	movl   $0x0,0x137f88                  
  1163f8:	00 00 00                                                    
  the_watchdog->routine   = routine;                                  
  1163fb:	c7 05 9c 7f 13 00 10 	movl   $0x118a10,0x137f9c             
  116402:	8a 11 00                                                    
  the_watchdog->id        = id;                                       
  116405:	a3 a0 7f 13 00       	mov    %eax,0x137fa0                  
  the_watchdog->user_data = user_data;                                
  11640a:	c7 05 a4 7f 13 00 00 	movl   $0x0,0x137fa4                  
  116411:	00 00 00                                                    
  Watchdog_Service_routine_entry  routine,                            
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
  116414:	c7 05 c0 7f 13 00 00 	movl   $0x0,0x137fc0                  
  11641b:	00 00 00                                                    
  the_watchdog->routine   = routine;                                  
  11641e:	c7 05 d4 7f 13 00 10 	movl   $0x118a10,0x137fd4             
  116425:	8a 11 00                                                    
  the_watchdog->id        = id;                                       
  116428:	a3 d8 7f 13 00       	mov    %eax,0x137fd8                  
  the_watchdog->user_data = user_data;                                
  11642d:	c7 05 dc 7f 13 00 00 	movl   $0x0,0x137fdc                  
  116434:	00 00 00                                                    
                                                                      
  /*                                                                  
   *  Initialize the pointer to the timer schedule method so applications that
   *  do not use the Timer Server do not have to pull it in.          
   */                                                                 
  ts->schedule_operation = _Timer_server_Schedule_operation_method;   
  116437:	c7 05 7c 7f 13 00 04 	movl   $0x116204,0x137f7c             
  11643e:	62 11 00                                                    
                                                                      
  ts->Interval_watchdogs.last_snapshot = _Watchdog_Ticks_since_boot;  
  116441:	8b 15 48 c7 13 00    	mov    0x13c748,%edx                  
  116447:	89 15 b4 7f 13 00    	mov    %edx,0x137fb4                  
  ts->TOD_watchdogs.last_snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();
  11644d:	8b 15 c0 c6 13 00    	mov    0x13c6c0,%edx                  
  116453:	89 15 ec 7f 13 00    	mov    %edx,0x137fec                  
                                                                      
  ts->insert_chain = NULL;                                            
  116459:	c7 05 f0 7f 13 00 00 	movl   $0x0,0x137ff0                  
  116460:	00 00 00                                                    
  ts->active = false;                                                 
  116463:	c6 05 f4 7f 13 00 00 	movb   $0x0,0x137ff4                  
                                                                      
  /*                                                                  
   * The default timer server is now available.                       
   */                                                                 
  _Timer_server = ts;                                                 
  11646a:	c7 05 10 c9 13 00 78 	movl   $0x137f78,0x13c910             
  116471:	7f 13 00                                                    
                                                                      
  /*                                                                  
   *  Start the timer server                                          
   */                                                                 
  status = rtems_task_start(                                          
  116474:	52                   	push   %edx                           
  116475:	68 78 7f 13 00       	push   $0x137f78                      
  11647a:	68 84 60 11 00       	push   $0x116084                      
  11647f:	50                   	push   %eax                           
  116480:	e8 47 f4 ff ff       	call   1158cc <rtems_task_start>      
    if (status) {                                                     
      initialized = false;                                            
    }                                                                 
  #endif                                                              
                                                                      
  return status;                                                      
  116485:	83 c4 10             	add    $0x10,%esp                     
}                                                                     
  116488:	8b 5d fc             	mov    -0x4(%ebp),%ebx                
  11648b:	c9                   	leave                                 
  11648c:	c3                   	ret                                   
                                                                      

00115ddc <rtems_timer_reset>: */ rtems_status_code rtems_timer_reset( rtems_id id ) {
  115ddc:	55                   	push   %ebp                           
  115ddd:	89 e5                	mov    %esp,%ebp                      
  115ddf:	56                   	push   %esi                           
  115de0:	53                   	push   %ebx                           
  115de1:	83 ec 14             	sub    $0x14,%esp                     
  Timer_Control     *the_timer;                                       
  Objects_Locations  location;                                        
  rtems_status_code  status = RTEMS_SUCCESSFUL;                       
                                                                      
  the_timer = _Timer_Get( id, &location );                            
  115de4:	8d 45 f4             	lea    -0xc(%ebp),%eax                
  115de7:	50                   	push   %eax                           
  115de8:	ff 75 08             	pushl  0x8(%ebp)                      
  115deb:	68 d0 c8 13 00       	push   $0x13c8d0                      
  115df0:	e8 0f 23 00 00       	call   118104 <_Objects_Get>          
  115df5:	89 c3                	mov    %eax,%ebx                      
  switch ( location ) {                                               
  115df7:	83 c4 10             	add    $0x10,%esp                     
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
  115dfa:	be 04 00 00 00       	mov    $0x4,%esi                      
  Timer_Control     *the_timer;                                       
  Objects_Locations  location;                                        
  rtems_status_code  status = RTEMS_SUCCESSFUL;                       
                                                                      
  the_timer = _Timer_Get( id, &location );                            
  switch ( location ) {                                               
  115dff:	83 7d f4 00          	cmpl   $0x0,-0xc(%ebp)                
  115e03:	75 4d                	jne    115e52 <rtems_timer_reset+0x76><== NEVER TAKEN
                                                                      
    case OBJECTS_LOCAL:                                               
      if ( the_timer->the_class == TIMER_INTERVAL ) {                 
  115e05:	8b 40 38             	mov    0x38(%eax),%eax                
  115e08:	85 c0                	test   %eax,%eax                      
  115e0a:	75 1b                	jne    115e27 <rtems_timer_reset+0x4b>
        _Watchdog_Remove( &the_timer->Ticker );                       
  115e0c:	83 c3 10             	add    $0x10,%ebx                     
  115e0f:	83 ec 0c             	sub    $0xc,%esp                      
  115e12:	53                   	push   %ebx                           
  115e13:	e8 38 3c 00 00       	call   119a50 <_Watchdog_Remove>      
        _Watchdog_Insert( &_Watchdog_Ticks_chain, &the_timer->Ticker );
  115e18:	59                   	pop    %ecx                           
  115e19:	5e                   	pop    %esi                           
  115e1a:	53                   	push   %ebx                           
  115e1b:	68 f8 c6 13 00       	push   $0x13c6f8                      
  115e20:	e8 0b 3b 00 00       	call   119930 <_Watchdog_Insert>      
  115e25:	eb 21                	jmp    115e48 <rtems_timer_reset+0x6c>
        /*                                                            
         *  Must be dormant or time of day timer (e.g. TIMER_DORMANT, 
         *  TIMER_TIME_OF_DAY, or TIMER_TIME_OF_DAY_ON_TASK).  We     
         *  can only reset active interval timers.                    
         */                                                           
        status = RTEMS_NOT_DEFINED;                                   
  115e27:	be 0b 00 00 00       	mov    $0xb,%esi                      
                                                                      
    case OBJECTS_LOCAL:                                               
      if ( the_timer->the_class == TIMER_INTERVAL ) {                 
        _Watchdog_Remove( &the_timer->Ticker );                       
        _Watchdog_Insert( &_Watchdog_Ticks_chain, &the_timer->Ticker );
      } else if ( the_timer->the_class == TIMER_INTERVAL_ON_TASK ) {  
  115e2c:	48                   	dec    %eax                           
  115e2d:	75 1e                	jne    115e4d <rtems_timer_reset+0x71><== NEVER TAKEN
        Timer_server_Control *timer_server = _Timer_server;           
  115e2f:	8b 35 10 c9 13 00    	mov    0x13c910,%esi                  
          if ( !timer_server ) {                                      
            _Thread_Enable_dispatch();                                
            return RTEMS_INCORRECT_STATE;                             
          }                                                           
        #endif                                                        
        _Watchdog_Remove( &the_timer->Ticker );                       
  115e35:	83 ec 0c             	sub    $0xc,%esp                      
  115e38:	8d 43 10             	lea    0x10(%ebx),%eax                
  115e3b:	50                   	push   %eax                           
  115e3c:	e8 0f 3c 00 00       	call   119a50 <_Watchdog_Remove>      
        (*timer_server->schedule_operation)( timer_server, the_timer );
  115e41:	58                   	pop    %eax                           
  115e42:	5a                   	pop    %edx                           
  115e43:	53                   	push   %ebx                           
  115e44:	56                   	push   %esi                           
  115e45:	ff 56 04             	call   *0x4(%esi)                     
  115e48:	83 c4 10             	add    $0x10,%esp                     
  rtems_id id                                                         
)                                                                     
{                                                                     
  Timer_Control     *the_timer;                                       
  Objects_Locations  location;                                        
  rtems_status_code  status = RTEMS_SUCCESSFUL;                       
  115e4b:	31 f6                	xor    %esi,%esi                      
         *  TIMER_TIME_OF_DAY, or TIMER_TIME_OF_DAY_ON_TASK).  We     
         *  can only reset active interval timers.                    
         */                                                           
        status = RTEMS_NOT_DEFINED;                                   
      }                                                               
      _Thread_Enable_dispatch();                                      
  115e4d:	e8 30 2d 00 00       	call   118b82 <_Thread_Enable_dispatch>
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
}                                                                     
  115e52:	89 f0                	mov    %esi,%eax                      
  115e54:	8d 65 f8             	lea    -0x8(%ebp),%esp                
  115e57:	5b                   	pop    %ebx                           
  115e58:	5e                   	pop    %esi                           
  115e59:	c9                   	leave                                 
  115e5a:	c3                   	ret                                   
                                                                      

00115e5c <rtems_timer_server_fire_after>: rtems_id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data ) {
  115e5c:	55                   	push   %ebp                           
  115e5d:	89 e5                	mov    %esp,%ebp                      
  115e5f:	57                   	push   %edi                           
  115e60:	56                   	push   %esi                           
  115e61:	53                   	push   %ebx                           
  115e62:	83 ec 1c             	sub    $0x1c,%esp                     
  115e65:	8b 7d 08             	mov    0x8(%ebp),%edi                 
  Timer_Control        *the_timer;                                    
  Objects_Locations     location;                                     
  ISR_Level             level;                                        
  Timer_server_Control *timer_server = _Timer_server;                 
  115e68:	8b 35 10 c9 13 00    	mov    0x13c910,%esi                  
                                                                      
  if ( !timer_server )                                                
    return RTEMS_INCORRECT_STATE;                                     
  115e6e:	b8 0e 00 00 00       	mov    $0xe,%eax                      
  Timer_Control        *the_timer;                                    
  Objects_Locations     location;                                     
  ISR_Level             level;                                        
  Timer_server_Control *timer_server = _Timer_server;                 
                                                                      
  if ( !timer_server )                                                
  115e73:	85 f6                	test   %esi,%esi                      
  115e75:	0f 84 87 00 00 00    	je     115f02 <rtems_timer_server_fire_after+0xa6><== NEVER TAKEN
    return RTEMS_INCORRECT_STATE;                                     
                                                                      
  if ( !routine )                                                     
    return RTEMS_INVALID_ADDRESS;                                     
  115e7b:	b0 09                	mov    $0x9,%al                       
  Timer_server_Control *timer_server = _Timer_server;                 
                                                                      
  if ( !timer_server )                                                
    return RTEMS_INCORRECT_STATE;                                     
                                                                      
  if ( !routine )                                                     
  115e7d:	83 7d 10 00          	cmpl   $0x0,0x10(%ebp)                
  115e81:	74 7f                	je     115f02 <rtems_timer_server_fire_after+0xa6><== NEVER TAKEN
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( ticks == 0 )                                                   
    return RTEMS_INVALID_NUMBER;                                      
  115e83:	b0 0a                	mov    $0xa,%al                       
    return RTEMS_INCORRECT_STATE;                                     
                                                                      
  if ( !routine )                                                     
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( ticks == 0 )                                                   
  115e85:	83 7d 0c 00          	cmpl   $0x0,0xc(%ebp)                 
  115e89:	74 77                	je     115f02 <rtems_timer_server_fire_after+0xa6><== NEVER TAKEN
  115e8b:	52                   	push   %edx                           
    return RTEMS_INVALID_NUMBER;                                      
                                                                      
  the_timer = _Timer_Get( id, &location );                            
  115e8c:	8d 45 e4             	lea    -0x1c(%ebp),%eax               
  115e8f:	50                   	push   %eax                           
  115e90:	57                   	push   %edi                           
  115e91:	68 d0 c8 13 00       	push   $0x13c8d0                      
  115e96:	e8 69 22 00 00       	call   118104 <_Objects_Get>          
  115e9b:	89 c3                	mov    %eax,%ebx                      
  switch ( location ) {                                               
  115e9d:	83 c4 10             	add    $0x10,%esp                     
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
  115ea0:	b8 04 00 00 00       	mov    $0x4,%eax                      
                                                                      
  if ( ticks == 0 )                                                   
    return RTEMS_INVALID_NUMBER;                                      
                                                                      
  the_timer = _Timer_Get( id, &location );                            
  switch ( location ) {                                               
  115ea5:	83 7d e4 00          	cmpl   $0x0,-0x1c(%ebp)               
  115ea9:	75 57                	jne    115f02 <rtems_timer_server_fire_after+0xa6><== NEVER TAKEN
                                                                      
    case OBJECTS_LOCAL:                                               
      (void) _Watchdog_Remove( &the_timer->Ticker );                  
  115eab:	83 ec 0c             	sub    $0xc,%esp                      
  115eae:	8d 43 10             	lea    0x10(%ebx),%eax                
  115eb1:	50                   	push   %eax                           
  115eb2:	e8 99 3b 00 00       	call   119a50 <_Watchdog_Remove>      
                                                                      
      _ISR_Disable( level );                                          
  115eb7:	9c                   	pushf                                 
  115eb8:	fa                   	cli                                   
  115eb9:	58                   	pop    %eax                           
        /*                                                            
         *  Check to see if the watchdog has just been inserted by a  
         *  higher priority interrupt.  If so, abandon this insert.   
         */                                                           
                                                                      
        if ( the_timer->Ticker.state != WATCHDOG_INACTIVE ) {         
  115eba:	83 c4 10             	add    $0x10,%esp                     
  115ebd:	83 7b 18 00          	cmpl   $0x0,0x18(%ebx)                
  115ec1:	74 09                	je     115ecc <rtems_timer_server_fire_after+0x70>
          _ISR_Enable( level );                                       
  115ec3:	50                   	push   %eax                           
  115ec4:	9d                   	popf                                  
          _Thread_Enable_dispatch();                                  
  115ec5:	e8 b8 2c 00 00       	call   118b82 <_Thread_Enable_dispatch>
  115eca:	eb 34                	jmp    115f00 <rtems_timer_server_fire_after+0xa4>
        /*                                                            
         *  OK.  Now we now the timer was not rescheduled by an interrupt
         *  so we can atomically initialize it as in use.             
         */                                                           
                                                                      
        the_timer->the_class = TIMER_INTERVAL_ON_TASK;                
  115ecc:	c7 43 38 01 00 00 00 	movl   $0x1,0x38(%ebx)                
  Watchdog_Service_routine_entry  routine,                            
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
  115ed3:	c7 43 18 00 00 00 00 	movl   $0x0,0x18(%ebx)                
  the_watchdog->routine   = routine;                                  
  115eda:	8b 55 10             	mov    0x10(%ebp),%edx                
  115edd:	89 53 2c             	mov    %edx,0x2c(%ebx)                
  the_watchdog->id        = id;                                       
  115ee0:	89 7b 30             	mov    %edi,0x30(%ebx)                
  the_watchdog->user_data = user_data;                                
  115ee3:	8b 55 14             	mov    0x14(%ebp),%edx                
  115ee6:	89 53 34             	mov    %edx,0x34(%ebx)                
        _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data );
        the_timer->Ticker.initial = ticks;                            
  115ee9:	8b 55 0c             	mov    0xc(%ebp),%edx                 
  115eec:	89 53 1c             	mov    %edx,0x1c(%ebx)                
      _ISR_Enable( level );                                           
  115eef:	50                   	push   %eax                           
  115ef0:	9d                   	popf                                  
                                                                      
      (*timer_server->schedule_operation)( timer_server, the_timer ); 
  115ef1:	50                   	push   %eax                           
  115ef2:	50                   	push   %eax                           
  115ef3:	53                   	push   %ebx                           
  115ef4:	56                   	push   %esi                           
  115ef5:	ff 56 04             	call   *0x4(%esi)                     
                                                                      
      _Thread_Enable_dispatch();                                      
  115ef8:	e8 85 2c 00 00       	call   118b82 <_Thread_Enable_dispatch>
      return RTEMS_SUCCESSFUL;                                        
  115efd:	83 c4 10             	add    $0x10,%esp                     
  115f00:	31 c0                	xor    %eax,%eax                      
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
}                                                                     
  115f02:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  115f05:	5b                   	pop    %ebx                           
  115f06:	5e                   	pop    %esi                           
  115f07:	5f                   	pop    %edi                           
  115f08:	c9                   	leave                                 
  115f09:	c3                   	ret                                   
                                                                      

00115f0c <rtems_timer_server_fire_when>: rtems_id id, rtems_time_of_day *wall_time, rtems_timer_service_routine_entry routine, void *user_data ) {
  115f0c:	55                   	push   %ebp                           
  115f0d:	89 e5                	mov    %esp,%ebp                      
  115f0f:	57                   	push   %edi                           
  115f10:	56                   	push   %esi                           
  115f11:	53                   	push   %ebx                           
  115f12:	83 ec 1c             	sub    $0x1c,%esp                     
  115f15:	8b 7d 0c             	mov    0xc(%ebp),%edi                 
  Timer_Control        *the_timer;                                    
  Objects_Locations     location;                                     
  rtems_interval        seconds;                                      
  Timer_server_Control *timer_server = _Timer_server;                 
  115f18:	8b 35 10 c9 13 00    	mov    0x13c910,%esi                  
                                                                      
  if ( !timer_server )                                                
    return RTEMS_INCORRECT_STATE;                                     
  115f1e:	bb 0e 00 00 00       	mov    $0xe,%ebx                      
  Timer_Control        *the_timer;                                    
  Objects_Locations     location;                                     
  rtems_interval        seconds;                                      
  Timer_server_Control *timer_server = _Timer_server;                 
                                                                      
  if ( !timer_server )                                                
  115f23:	85 f6                	test   %esi,%esi                      
  115f25:	0f 84 b1 00 00 00    	je     115fdc <rtems_timer_server_fire_when+0xd0><== NEVER TAKEN
    return RTEMS_INCORRECT_STATE;                                     
                                                                      
  if ( !_TOD_Is_set )                                                 
    return RTEMS_NOT_DEFINED;                                         
  115f2b:	b3 0b                	mov    $0xb,%bl                       
  Timer_server_Control *timer_server = _Timer_server;                 
                                                                      
  if ( !timer_server )                                                
    return RTEMS_INCORRECT_STATE;                                     
                                                                      
  if ( !_TOD_Is_set )                                                 
  115f2d:	80 3d 48 c6 13 00 00 	cmpb   $0x0,0x13c648                  
  115f34:	0f 84 a2 00 00 00    	je     115fdc <rtems_timer_server_fire_when+0xd0><== NEVER TAKEN
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( !routine )                                                     
    return RTEMS_INVALID_ADDRESS;                                     
  115f3a:	b3 09                	mov    $0x9,%bl                       
    return RTEMS_INCORRECT_STATE;                                     
                                                                      
  if ( !_TOD_Is_set )                                                 
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( !routine )                                                     
  115f3c:	83 7d 10 00          	cmpl   $0x0,0x10(%ebp)                
  115f40:	0f 84 96 00 00 00    	je     115fdc <rtems_timer_server_fire_when+0xd0><== NEVER TAKEN
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( !_TOD_Validate( wall_time ) )                                  
  115f46:	83 ec 0c             	sub    $0xc,%esp                      
  115f49:	57                   	push   %edi                           
  115f4a:	e8 b5 d6 ff ff       	call   113604 <_TOD_Validate>         
  115f4f:	83 c4 10             	add    $0x10,%esp                     
    return RTEMS_INVALID_CLOCK;                                       
  115f52:	b3 14                	mov    $0x14,%bl                      
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( !routine )                                                     
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( !_TOD_Validate( wall_time ) )                                  
  115f54:	84 c0                	test   %al,%al                        
  115f56:	0f 84 80 00 00 00    	je     115fdc <rtems_timer_server_fire_when+0xd0><== NEVER TAKEN
    return RTEMS_INVALID_CLOCK;                                       
                                                                      
  seconds = _TOD_To_seconds( wall_time );                             
  115f5c:	83 ec 0c             	sub    $0xc,%esp                      
  115f5f:	57                   	push   %edi                           
  115f60:	e8 37 d6 ff ff       	call   11359c <_TOD_To_seconds>       
  115f65:	89 c7                	mov    %eax,%edi                      
  if ( seconds <= _TOD_Seconds_since_epoch() )                        
  115f67:	83 c4 10             	add    $0x10,%esp                     
  115f6a:	3b 05 c0 c6 13 00    	cmp    0x13c6c0,%eax                  
  115f70:	76 6a                	jbe    115fdc <rtems_timer_server_fire_when+0xd0><== NEVER TAKEN
  115f72:	51                   	push   %ecx                           
    return RTEMS_INVALID_CLOCK;                                       
                                                                      
  the_timer = _Timer_Get( id, &location );                            
  115f73:	8d 45 e4             	lea    -0x1c(%ebp),%eax               
  115f76:	50                   	push   %eax                           
  115f77:	ff 75 08             	pushl  0x8(%ebp)                      
  115f7a:	68 d0 c8 13 00       	push   $0x13c8d0                      
  115f7f:	e8 80 21 00 00       	call   118104 <_Objects_Get>          
  115f84:	89 c3                	mov    %eax,%ebx                      
  switch ( location ) {                                               
  115f86:	83 c4 10             	add    $0x10,%esp                     
  115f89:	83 7d e4 00          	cmpl   $0x0,-0x1c(%ebp)               
  115f8d:	75 48                	jne    115fd7 <rtems_timer_server_fire_when+0xcb><== NEVER TAKEN
                                                                      
    case OBJECTS_LOCAL:                                               
      (void) _Watchdog_Remove( &the_timer->Ticker );                  
  115f8f:	83 ec 0c             	sub    $0xc,%esp                      
  115f92:	8d 40 10             	lea    0x10(%eax),%eax                
  115f95:	50                   	push   %eax                           
  115f96:	e8 b5 3a 00 00       	call   119a50 <_Watchdog_Remove>      
      the_timer->the_class = TIMER_TIME_OF_DAY_ON_TASK;               
  115f9b:	c7 43 38 03 00 00 00 	movl   $0x3,0x38(%ebx)                
  Watchdog_Service_routine_entry  routine,                            
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
  115fa2:	c7 43 18 00 00 00 00 	movl   $0x0,0x18(%ebx)                
  the_watchdog->routine   = routine;                                  
  115fa9:	8b 45 10             	mov    0x10(%ebp),%eax                
  115fac:	89 43 2c             	mov    %eax,0x2c(%ebx)                
  the_watchdog->id        = id;                                       
  115faf:	8b 45 08             	mov    0x8(%ebp),%eax                 
  115fb2:	89 43 30             	mov    %eax,0x30(%ebx)                
  the_watchdog->user_data = user_data;                                
  115fb5:	8b 45 14             	mov    0x14(%ebp),%eax                
  115fb8:	89 43 34             	mov    %eax,0x34(%ebx)                
      _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data );
      the_timer->Ticker.initial = seconds - _TOD_Seconds_since_epoch();
  115fbb:	2b 3d c0 c6 13 00    	sub    0x13c6c0,%edi                  
  115fc1:	89 7b 1c             	mov    %edi,0x1c(%ebx)                
                                                                      
      (*timer_server->schedule_operation)( timer_server, the_timer ); 
  115fc4:	58                   	pop    %eax                           
  115fc5:	5a                   	pop    %edx                           
  115fc6:	53                   	push   %ebx                           
  115fc7:	56                   	push   %esi                           
  115fc8:	ff 56 04             	call   *0x4(%esi)                     
                                                                      
      _Thread_Enable_dispatch();                                      
  115fcb:	e8 b2 2b 00 00       	call   118b82 <_Thread_Enable_dispatch>
      return RTEMS_SUCCESSFUL;                                        
  115fd0:	83 c4 10             	add    $0x10,%esp                     
  115fd3:	31 db                	xor    %ebx,%ebx                      
  115fd5:	eb 05                	jmp    115fdc <rtems_timer_server_fire_when+0xd0>
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
  115fd7:	bb 04 00 00 00       	mov    $0x4,%ebx                      <== NOT EXECUTED
}                                                                     
  115fdc:	89 d8                	mov    %ebx,%eax                      
  115fde:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  115fe1:	5b                   	pop    %ebx                           
  115fe2:	5e                   	pop    %esi                           
  115fe3:	5f                   	pop    %edi                           
  115fe4:	c9                   	leave                                 
  115fe5:	c3                   	ret                                   
                                                                      

0010a79d <rtems_verror>: static int rtems_verror( rtems_error_code_t error_flag, const char *printf_format, va_list arglist ) {
  10a79d:	55                   	push   %ebp                           
  10a79e:	89 e5                	mov    %esp,%ebp                      
  10a7a0:	57                   	push   %edi                           
  10a7a1:	56                   	push   %esi                           
  10a7a2:	53                   	push   %ebx                           
  10a7a3:	83 ec 1c             	sub    $0x1c,%esp                     
  10a7a6:	89 c3                	mov    %eax,%ebx                      
  10a7a8:	89 55 e4             	mov    %edx,-0x1c(%ebp)               
  10a7ab:	89 4d e0             	mov    %ecx,-0x20(%ebp)               
  int               local_errno = 0;                                  
  int               chars_written = 0;                                
  rtems_status_code status;                                           
                                                                      
  if (error_flag & RTEMS_ERROR_PANIC) {                               
  10a7ae:	a9 00 00 00 20       	test   $0x20000000,%eax               
  10a7b3:	74 2c                	je     10a7e1 <rtems_verror+0x44>     
    if (rtems_panic_in_progress++)                                    
  10a7b5:	a1 78 92 12 00       	mov    0x129278,%eax                  
  10a7ba:	8d 50 01             	lea    0x1(%eax),%edx                 
  10a7bd:	89 15 78 92 12 00    	mov    %edx,0x129278                  
  10a7c3:	85 c0                	test   %eax,%eax                      
  10a7c5:	74 0b                	je     10a7d2 <rtems_verror+0x35>     <== ALWAYS TAKEN
	rtems_fatal_error_occurred( 99 );                                    
      }                                                               
    }                                                                 
  #endif                                                              
                                                                      
  _Thread_Dispatch_disable_level += 1;                                
  10a7c7:	a1 c0 93 12 00       	mov    0x1293c0,%eax                  <== NOT EXECUTED
  10a7cc:	40                   	inc    %eax                           <== NOT EXECUTED
  10a7cd:	a3 c0 93 12 00       	mov    %eax,0x1293c0                  <== NOT EXECUTED
      _Thread_Disable_dispatch();       /* disable task switches */   
                                                                      
    /* don't aggravate things */                                      
    if (rtems_panic_in_progress > 2)                                  
      return 0;                                                       
  10a7d2:	31 f6                	xor    %esi,%esi                      
  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)                                  
  10a7d4:	83 3d 78 92 12 00 02 	cmpl   $0x2,0x129278                  
  10a7db:	0f 8f da 00 00 00    	jg     10a8bb <rtems_verror+0x11e>    <== NEVER TAKEN
      return 0;                                                       
  }                                                                   
                                                                      
  (void) fflush(stdout);            /* in case stdout/stderr same */  
  10a7e1:	83 ec 0c             	sub    $0xc,%esp                      
  10a7e4:	a1 40 71 12 00       	mov    0x127140,%eax                  
  10a7e9:	ff 70 08             	pushl  0x8(%eax)                      
  10a7ec:	e8 4f a1 00 00       	call   114940 <fflush>                
                                                                      
  status = error_flag & ~RTEMS_ERROR_MASK;                            
  10a7f1:	89 df                	mov    %ebx,%edi                      
  10a7f3:	81 e7 ff ff ff 8f    	and    $0x8fffffff,%edi               
  if (error_flag & RTEMS_ERROR_ERRNO)     /* include errno? */        
  10a7f9:	83 c4 10             	add    $0x10,%esp                     
  rtems_error_code_t  error_flag,                                     
  const char         *printf_format,                                  
  va_list             arglist                                         
)                                                                     
{                                                                     
  int               local_errno = 0;                                  
  10a7fc:	31 f6                	xor    %esi,%esi                      
  }                                                                   
                                                                      
  (void) fflush(stdout);            /* in case stdout/stderr same */  
                                                                      
  status = error_flag & ~RTEMS_ERROR_MASK;                            
  if (error_flag & RTEMS_ERROR_ERRNO)     /* include errno? */        
  10a7fe:	81 e3 00 00 00 40    	and    $0x40000000,%ebx               
  10a804:	74 07                	je     10a80d <rtems_verror+0x70>     
    local_errno = errno;                                              
  10a806:	e8 9d 9d 00 00       	call   1145a8 <__errno>               
  10a80b:	8b 30                	mov    (%eax),%esi                    
  #if defined(RTEMS_MULTIPROCESSING)                                  
    if (_System_state_Is_multiprocessing)                             
      fprintf(stderr, "[%" PRIu32 "] ", _Configuration_MP_table->node);
  #endif                                                              
                                                                      
  chars_written += vfprintf(stderr, printf_format, arglist);          
  10a80d:	53                   	push   %ebx                           
  10a80e:	ff 75 e0             	pushl  -0x20(%ebp)                    
  10a811:	ff 75 e4             	pushl  -0x1c(%ebp)                    
  10a814:	a1 40 71 12 00       	mov    0x127140,%eax                  
  10a819:	ff 70 0c             	pushl  0xc(%eax)                      
  10a81c:	e8 c3 06 01 00       	call   11aee4 <vfprintf>              
  10a821:	89 c3                	mov    %eax,%ebx                      
                                                                      
  if (status)                                                         
  10a823:	83 c4 10             	add    $0x10,%esp                     
  10a826:	85 ff                	test   %edi,%edi                      
  10a828:	74 24                	je     10a84e <rtems_verror+0xb1>     
    chars_written +=                                                  
      fprintf(stderr, " (status: %s)", rtems_status_text(status));    
  10a82a:	83 ec 0c             	sub    $0xc,%esp                      
  10a82d:	57                   	push   %edi                           
  10a82e:	e8 55 ff ff ff       	call   10a788 <rtems_status_text>     
  10a833:	83 c4 0c             	add    $0xc,%esp                      
  10a836:	50                   	push   %eax                           
  10a837:	68 07 2b 12 00       	push   $0x122b07                      
  10a83c:	a1 40 71 12 00       	mov    0x127140,%eax                  
  10a841:	ff 70 0c             	pushl  0xc(%eax)                      
  10a844:	e8 eb a4 00 00       	call   114d34 <fprintf>               
  #endif                                                              
                                                                      
  chars_written += vfprintf(stderr, printf_format, arglist);          
                                                                      
  if (status)                                                         
    chars_written +=                                                  
  10a849:	01 c3                	add    %eax,%ebx                      
  10a84b:	83 c4 10             	add    $0x10,%esp                     
      fprintf(stderr, " (status: %s)", rtems_status_text(status));    
                                                                      
  if (local_errno) {                                                  
  10a84e:	83 fe 00             	cmp    $0x0,%esi                      
  10a851:	74 40                	je     10a893 <rtems_verror+0xf6>     
    if ((local_errno > 0) && *strerror(local_errno))                  
  10a853:	7e 25                	jle    10a87a <rtems_verror+0xdd>     
  10a855:	83 ec 0c             	sub    $0xc,%esp                      
  10a858:	56                   	push   %esi                           
  10a859:	e8 7e ad 00 00       	call   1155dc <strerror>              
  10a85e:	83 c4 10             	add    $0x10,%esp                     
  10a861:	80 38 00             	cmpb   $0x0,(%eax)                    
  10a864:	74 14                	je     10a87a <rtems_verror+0xdd>     <== NEVER TAKEN
      chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno));
  10a866:	83 ec 0c             	sub    $0xc,%esp                      
  10a869:	56                   	push   %esi                           
  10a86a:	e8 6d ad 00 00       	call   1155dc <strerror>              
  10a86f:	83 c4 0c             	add    $0xc,%esp                      
  10a872:	50                   	push   %eax                           
  10a873:	68 15 2b 12 00       	push   $0x122b15                      
  10a878:	eb 07                	jmp    10a881 <rtems_verror+0xe4>     
    else                                                              
      chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno);
  10a87a:	51                   	push   %ecx                           
  10a87b:	56                   	push   %esi                           
  10a87c:	68 22 2b 12 00       	push   $0x122b22                      
  10a881:	a1 40 71 12 00       	mov    0x127140,%eax                  
  10a886:	ff 70 0c             	pushl  0xc(%eax)                      
  10a889:	e8 a6 a4 00 00       	call   114d34 <fprintf>               
  10a88e:	01 c3                	add    %eax,%ebx                      
  10a890:	83 c4 10             	add    $0x10,%esp                     
  }                                                                   
                                                                      
  chars_written += fprintf(stderr, "\n");                             
  10a893:	52                   	push   %edx                           
  10a894:	52                   	push   %edx                           
  10a895:	68 80 32 12 00       	push   $0x123280                      
  10a89a:	a1 40 71 12 00       	mov    0x127140,%eax                  
  10a89f:	ff 70 0c             	pushl  0xc(%eax)                      
  10a8a2:	e8 8d a4 00 00       	call   114d34 <fprintf>               
  10a8a7:	8d 34 18             	lea    (%eax,%ebx,1),%esi             
                                                                      
  (void) fflush(stderr);                                              
  10a8aa:	58                   	pop    %eax                           
  10a8ab:	a1 40 71 12 00       	mov    0x127140,%eax                  
  10a8b0:	ff 70 0c             	pushl  0xc(%eax)                      
  10a8b3:	e8 88 a0 00 00       	call   114940 <fflush>                
                                                                      
  return chars_written;                                               
  10a8b8:	83 c4 10             	add    $0x10,%esp                     
}                                                                     
  10a8bb:	89 f0                	mov    %esi,%eax                      
  10a8bd:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  10a8c0:	5b                   	pop    %ebx                           
  10a8c1:	5e                   	pop    %esi                           
  10a8c2:	5f                   	pop    %edi                           
  10a8c3:	c9                   	leave                                 
  10a8c4:	c3                   	ret                                   
                                                                      

00106f80 <scanInt>: /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) {
  106f80:	55                   	push   %ebp                           
  106f81:	89 e5                	mov    %esp,%ebp                      
  106f83:	57                   	push   %edi                           
  106f84:	56                   	push   %esi                           
  106f85:	53                   	push   %ebx                           
  106f86:	83 ec 3c             	sub    $0x3c,%esp                     
  106f89:	89 c3                	mov    %eax,%ebx                      
  106f8b:	89 55 e0             	mov    %edx,-0x20(%ebp)               
  int c;                                                              
  unsigned int i = 0;                                                 
  unsigned int limit = INT_MAX;                                       
  int sign = 0;                                                       
  106f8e:	31 f6                	xor    %esi,%esi                      
static int                                                            
scanInt(FILE *fp, int *val)                                           
{                                                                     
  int c;                                                              
  unsigned int i = 0;                                                 
  unsigned int limit = INT_MAX;                                       
  106f90:	c7 45 e4 ff ff ff 7f 	movl   $0x7fffffff,-0x1c(%ebp)        
 */                                                                   
static int                                                            
scanInt(FILE *fp, int *val)                                           
{                                                                     
  int c;                                                              
  unsigned int i = 0;                                                 
  106f97:	31 ff                	xor    %edi,%edi                      
      sign = 1;                                                       
    }                                                                 
    if (!isdigit(c))                                                  
      return 0;                                                       
    d = c - '0';                                                      
    if ((i > (limit / 10))                                            
  106f99:	89 7d c4             	mov    %edi,-0x3c(%ebp)               
  unsigned int limit = INT_MAX;                                       
  int sign = 0;                                                       
  int d;                                                              
                                                                      
  for (;;) {                                                          
    c = getc(fp);                                                     
  106f9c:	8b 43 04             	mov    0x4(%ebx),%eax                 
  106f9f:	48                   	dec    %eax                           
  106fa0:	89 43 04             	mov    %eax,0x4(%ebx)                 
  106fa3:	85 c0                	test   %eax,%eax                      
  106fa5:	79 15                	jns    106fbc <scanInt+0x3c>          <== ALWAYS TAKEN
  106fa7:	50                   	push   %eax                           <== NOT EXECUTED
  106fa8:	50                   	push   %eax                           <== NOT EXECUTED
  106fa9:	53                   	push   %ebx                           <== NOT EXECUTED
  106faa:	ff 35 60 36 12 00    	pushl  0x123660                       <== NOT EXECUTED
  106fb0:	e8 1f b5 00 00       	call   1124d4 <__srget_r>             <== NOT EXECUTED
  106fb5:	89 c1                	mov    %eax,%ecx                      <== NOT EXECUTED
  106fb7:	83 c4 10             	add    $0x10,%esp                     <== NOT EXECUTED
  106fba:	eb 08                	jmp    106fc4 <scanInt+0x44>          <== NOT EXECUTED
  106fbc:	8b 03                	mov    (%ebx),%eax                    
  106fbe:	0f b6 08             	movzbl (%eax),%ecx                    
  106fc1:	40                   	inc    %eax                           
  106fc2:	89 03                	mov    %eax,(%ebx)                    
    if (c == ':')                                                     
  106fc4:	83 f9 3a             	cmp    $0x3a,%ecx                     
  106fc7:	74 4a                	je     107013 <scanInt+0x93>          
      break;                                                          
    if (sign == 0) {                                                  
  106fc9:	85 f6                	test   %esi,%esi                      
  106fcb:	75 11                	jne    106fde <scanInt+0x5e>          
      if (c == '-') {                                                 
        sign = -1;                                                    
        limit++;                                                      
        continue;                                                     
      }                                                               
      sign = 1;                                                       
  106fcd:	66 be 01 00          	mov    $0x1,%si                       
  for (;;) {                                                          
    c = getc(fp);                                                     
    if (c == ':')                                                     
      break;                                                          
    if (sign == 0) {                                                  
      if (c == '-') {                                                 
  106fd1:	83 f9 2d             	cmp    $0x2d,%ecx                     
  106fd4:	75 08                	jne    106fde <scanInt+0x5e>          
        sign = -1;                                                    
        limit++;                                                      
  106fd6:	ff 45 e4             	incl   -0x1c(%ebp)                    
    c = getc(fp);                                                     
    if (c == ':')                                                     
      break;                                                          
    if (sign == 0) {                                                  
      if (c == '-') {                                                 
        sign = -1;                                                    
  106fd9:	83 ce ff             	or     $0xffffffff,%esi               
        limit++;                                                      
        continue;                                                     
  106fdc:	eb be                	jmp    106f9c <scanInt+0x1c>          
      }                                                               
      sign = 1;                                                       
    }                                                                 
    if (!isdigit(c))                                                  
  106fde:	a1 5c 36 12 00       	mov    0x12365c,%eax                  
  106fe3:	f6 44 08 01 04       	testb  $0x4,0x1(%eax,%ecx,1)          
  106fe8:	74 41                	je     10702b <scanInt+0xab>          
      return 0;                                                       
    d = c - '0';                                                      
    if ((i > (limit / 10))                                            
  106fea:	8b 45 e4             	mov    -0x1c(%ebp),%eax               
  106fed:	bf 0a 00 00 00       	mov    $0xa,%edi                      
  106ff2:	31 d2                	xor    %edx,%edx                      
  106ff4:	f7 f7                	div    %edi                           
  106ff6:	89 55 d4             	mov    %edx,-0x2c(%ebp)               
  106ff9:	39 45 c4             	cmp    %eax,-0x3c(%ebp)               
  106ffc:	77 2d                	ja     10702b <scanInt+0xab>          
      }                                                               
      sign = 1;                                                       
    }                                                                 
    if (!isdigit(c))                                                  
      return 0;                                                       
    d = c - '0';                                                      
  106ffe:	83 e9 30             	sub    $0x30,%ecx                     
    if ((i > (limit / 10))                                            
     || ((i == (limit / 10)) && (d > (limit % 10))))                  
  107001:	39 45 c4             	cmp    %eax,-0x3c(%ebp)               
  107004:	75 04                	jne    10700a <scanInt+0x8a>          
  107006:	39 d1                	cmp    %edx,%ecx                      
  107008:	77 21                	ja     10702b <scanInt+0xab>          <== ALWAYS TAKEN
      return 0;                                                       
    i = i * 10 + d;                                                   
  10700a:	6b 7d c4 0a          	imul   $0xa,-0x3c(%ebp),%edi          
  10700e:	8d 3c 39             	lea    (%ecx,%edi,1),%edi             
  107011:	eb 86                	jmp    106f99 <scanInt+0x19>          
  107013:	8b 7d c4             	mov    -0x3c(%ebp),%edi               
  }                                                                   
  if (sign == 0)                                                      
    return 0;                                                         
  107016:	31 c0                	xor    %eax,%eax                      
    if ((i > (limit / 10))                                            
     || ((i == (limit / 10)) && (d > (limit % 10))))                  
      return 0;                                                       
    i = i * 10 + d;                                                   
  }                                                                   
  if (sign == 0)                                                      
  107018:	85 f6                	test   %esi,%esi                      
  10701a:	74 11                	je     10702d <scanInt+0xad>          <== NEVER TAKEN
    return 0;                                                         
  *val = i * sign;                                                    
  10701c:	0f af f7             	imul   %edi,%esi                      
  10701f:	8b 45 e0             	mov    -0x20(%ebp),%eax               
  107022:	89 30                	mov    %esi,(%eax)                    
  return 1;                                                           
  107024:	b8 01 00 00 00       	mov    $0x1,%eax                      
  107029:	eb 02                	jmp    10702d <scanInt+0xad>          
    if (!isdigit(c))                                                  
      return 0;                                                       
    d = c - '0';                                                      
    if ((i > (limit / 10))                                            
     || ((i == (limit / 10)) && (d > (limit % 10))))                  
      return 0;                                                       
  10702b:	31 c0                	xor    %eax,%eax                      
  }                                                                   
  if (sign == 0)                                                      
    return 0;                                                         
  *val = i * sign;                                                    
  return 1;                                                           
}                                                                     
  10702d:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  107030:	5b                   	pop    %ebx                           
  107031:	5e                   	pop    %esi                           
  107032:	5f                   	pop    %edi                           
  107033:	c9                   	leave                                 
  107034:	c3                   	ret                                   
                                                                      

001070c0 <scangr>: FILE *fp, struct group *grp, char *buffer, size_t bufsize ) {
  1070c0:	55                   	push   %ebp                           
  1070c1:	89 e5                	mov    %esp,%ebp                      
  1070c3:	57                   	push   %edi                           
  1070c4:	56                   	push   %esi                           
  1070c5:	53                   	push   %ebx                           
  1070c6:	83 ec 34             	sub    $0x34,%esp                     
  1070c9:	89 c7                	mov    %eax,%edi                      
  1070cb:	89 d3                	mov    %edx,%ebx                      
  1070cd:	89 4d d4             	mov    %ecx,-0x2c(%ebp)               
  int grgid;                                                          
  char *grmem, *cp;                                                   
  int memcount;                                                       
                                                                      
  if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)            
  1070d0:	6a 00                	push   $0x0                           
  1070d2:	8d 45 08             	lea    0x8(%ebp),%eax                 
  1070d5:	50                   	push   %eax                           
  1070d6:	8d 4d d4             	lea    -0x2c(%ebp),%ecx               
  1070d9:	89 f8                	mov    %edi,%eax                      
  1070db:	e8 55 ff ff ff       	call   107035 <scanString>            
  1070e0:	83 c4 10             	add    $0x10,%esp                     
   || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0)          
   || !scanInt(fp, &grgid)                                            
   || !scanString(fp, &grmem, &buffer, &bufsize, 1))                  
    return 0;                                                         
  1070e3:	31 f6                	xor    %esi,%esi                      
{                                                                     
  int grgid;                                                          
  char *grmem, *cp;                                                   
  int memcount;                                                       
                                                                      
  if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)            
  1070e5:	85 c0                	test   %eax,%eax                      
  1070e7:	0f 84 c2 00 00 00    	je     1071af <scangr+0xef>           
   || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0)          
  1070ed:	50                   	push   %eax                           
  1070ee:	50                   	push   %eax                           
  1070ef:	8d 53 04             	lea    0x4(%ebx),%edx                 
  1070f2:	6a 00                	push   $0x0                           
  1070f4:	8d 45 08             	lea    0x8(%ebp),%eax                 
  1070f7:	50                   	push   %eax                           
  1070f8:	8d 4d d4             	lea    -0x2c(%ebp),%ecx               
  1070fb:	89 f8                	mov    %edi,%eax                      
  1070fd:	e8 33 ff ff ff       	call   107035 <scanString>            
  107102:	83 c4 10             	add    $0x10,%esp                     
  107105:	85 c0                	test   %eax,%eax                      
  107107:	0f 84 a2 00 00 00    	je     1071af <scangr+0xef>           <== NEVER TAKEN
   || !scanInt(fp, &grgid)                                            
  10710d:	8d 55 e4             	lea    -0x1c(%ebp),%edx               
  107110:	89 f8                	mov    %edi,%eax                      
  107112:	e8 69 fe ff ff       	call   106f80 <scanInt>               
  107117:	85 c0                	test   %eax,%eax                      
  107119:	0f 84 90 00 00 00    	je     1071af <scangr+0xef>           <== NEVER TAKEN
   || !scanString(fp, &grmem, &buffer, &bufsize, 1))                  
  10711f:	51                   	push   %ecx                           
  107120:	51                   	push   %ecx                           
  107121:	8d 55 e0             	lea    -0x20(%ebp),%edx               
  107124:	6a 01                	push   $0x1                           
  107126:	8d 45 08             	lea    0x8(%ebp),%eax                 
  107129:	50                   	push   %eax                           
  10712a:	8d 4d d4             	lea    -0x2c(%ebp),%ecx               
  10712d:	89 f8                	mov    %edi,%eax                      
  10712f:	e8 01 ff ff ff       	call   107035 <scanString>            
  107134:	83 c4 10             	add    $0x10,%esp                     
  107137:	85 c0                	test   %eax,%eax                      
  107139:	74 74                	je     1071af <scangr+0xef>           <== NEVER TAKEN
    return 0;                                                         
  grp->gr_gid = grgid;                                                
  10713b:	8b 45 e4             	mov    -0x1c(%ebp),%eax               
  10713e:	66 89 43 08          	mov    %ax,0x8(%ebx)                  
                                                                      
  /*                                                                  
   * Determine number of members                                      
   */                                                                 
  for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {                  
  107142:	8b 4d e0             	mov    -0x20(%ebp),%ecx               
  107145:	89 ca                	mov    %ecx,%edx                      
  107147:	b8 01 00 00 00       	mov    $0x1,%eax                      
  10714c:	89 c6                	mov    %eax,%esi                      
  10714e:	eb 0b                	jmp    10715b <scangr+0x9b>           
    if(*cp == ',')                                                    
      memcount++;                                                     
  107150:	3c 2c                	cmp    $0x2c,%al                      
  107152:	0f 94 c0             	sete   %al                            
  107155:	0f b6 c0             	movzbl %al,%eax                       
  107158:	01 c6                	add    %eax,%esi                      
  grp->gr_gid = grgid;                                                
                                                                      
  /*                                                                  
   * Determine number of members                                      
   */                                                                 
  for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {                  
  10715a:	42                   	inc    %edx                           
  10715b:	8a 02                	mov    (%edx),%al                     
  10715d:	84 c0                	test   %al,%al                        
  10715f:	75 ef                	jne    107150 <scangr+0x90>           
  }                                                                   
                                                                      
  /*                                                                  
   * Hack to produce (hopefully) a suitably-aligned array of pointers 
   */                                                                 
  if (bufsize < (((memcount+1)*sizeof(char *)) + 15))                 
  107161:	8d 04 b5 13 00 00 00 	lea    0x13(,%esi,4),%eax             
    return 0;                                                         
  107168:	31 f6                	xor    %esi,%esi                      
  }                                                                   
                                                                      
  /*                                                                  
   * Hack to produce (hopefully) a suitably-aligned array of pointers 
   */                                                                 
  if (bufsize < (((memcount+1)*sizeof(char *)) + 15))                 
  10716a:	39 45 08             	cmp    %eax,0x8(%ebp)                 
  10716d:	72 40                	jb     1071af <scangr+0xef>           <== NEVER TAKEN
    return 0;                                                         
  grp->gr_mem = (char **)(((uintptr_t)buffer + 15) & ~15);            
  10716f:	8b 45 d4             	mov    -0x2c(%ebp),%eax               
  107172:	83 c0 0f             	add    $0xf,%eax                      
  107175:	83 e0 f0             	and    $0xfffffff0,%eax               
  107178:	89 43 0c             	mov    %eax,0xc(%ebx)                 
                                                                      
  /*                                                                  
   * Fill in pointer array                                            
   */                                                                 
  grp->gr_mem[0] = grmem;                                             
  10717b:	89 08                	mov    %ecx,(%eax)                    
}                                                                     
                                                                      
/*                                                                    
 * Extract a single group record from the database                    
 */                                                                   
static int scangr(                                                    
  10717d:	8b 45 e0             	mov    -0x20(%ebp),%eax               
  107180:	40                   	inc    %eax                           
                                                                      
  /*                                                                  
   * Fill in pointer array                                            
   */                                                                 
  grp->gr_mem[0] = grmem;                                             
  for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {                  
  107181:	ba 01 00 00 00       	mov    $0x1,%edx                      
  107186:	eb 11                	jmp    107199 <scangr+0xd9>           
    if(*cp == ',') {                                                  
  107188:	80 f9 2c             	cmp    $0x2c,%cl                      
  10718b:	75 0b                	jne    107198 <scangr+0xd8>           
      *cp = '\0';                                                     
  10718d:	c6 40 ff 00          	movb   $0x0,-0x1(%eax)                
      grp->gr_mem[memcount++] = cp + 1;                               
  107191:	8b 4b 0c             	mov    0xc(%ebx),%ecx                 
  107194:	89 04 91             	mov    %eax,(%ecx,%edx,4)             
  107197:	42                   	inc    %edx                           
  107198:	40                   	inc    %eax                           
                                                                      
  /*                                                                  
   * Fill in pointer array                                            
   */                                                                 
  grp->gr_mem[0] = grmem;                                             
  for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {                  
  107199:	8a 48 ff             	mov    -0x1(%eax),%cl                 
  10719c:	84 c9                	test   %cl,%cl                        
  10719e:	75 e8                	jne    107188 <scangr+0xc8>           
    if(*cp == ',') {                                                  
      *cp = '\0';                                                     
      grp->gr_mem[memcount++] = cp + 1;                               
    }                                                                 
  }                                                                   
  grp->gr_mem[memcount] = NULL;                                       
  1071a0:	8b 43 0c             	mov    0xc(%ebx),%eax                 
  1071a3:	c7 04 90 00 00 00 00 	movl   $0x0,(%eax,%edx,4)             
  return 1;                                                           
  1071aa:	be 01 00 00 00       	mov    $0x1,%esi                      
}                                                                     
  1071af:	89 f0                	mov    %esi,%eax                      
  1071b1:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  1071b4:	5b                   	pop    %ebx                           
  1071b5:	5e                   	pop    %esi                           
  1071b6:	5f                   	pop    %edi                           
  1071b7:	c9                   	leave                                 
  1071b8:	c3                   	ret                                   
                                                                      

001071b9 <scanpw>: FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) {
  1071b9:	55                   	push   %ebp                           
  1071ba:	89 e5                	mov    %esp,%ebp                      
  1071bc:	57                   	push   %edi                           
  1071bd:	56                   	push   %esi                           
  1071be:	53                   	push   %ebx                           
  1071bf:	83 ec 34             	sub    $0x34,%esp                     
  1071c2:	89 c6                	mov    %eax,%esi                      
  1071c4:	89 d3                	mov    %edx,%ebx                      
  1071c6:	89 4d d4             	mov    %ecx,-0x2c(%ebp)               
  int pwuid, pwgid;                                                   
                                                                      
  if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)            
  1071c9:	8d 7d d4             	lea    -0x2c(%ebp),%edi               
  1071cc:	6a 00                	push   $0x0                           
  1071ce:	8d 45 08             	lea    0x8(%ebp),%eax                 
  1071d1:	50                   	push   %eax                           
  1071d2:	89 f9                	mov    %edi,%ecx                      
  1071d4:	89 f0                	mov    %esi,%eax                      
  1071d6:	e8 5a fe ff ff       	call   107035 <scanString>            
  1071db:	83 c4 10             	add    $0x10,%esp                     
   || !scanInt(fp, &pwgid)                                            
   || !scanString(fp, &pwd->pw_comment, &buffer, &bufsize, 0)         
   || !scanString(fp, &pwd->pw_gecos, &buffer, &bufsize, 0)           
   || !scanString(fp, &pwd->pw_dir, &buffer, &bufsize, 0)             
   || !scanString(fp, &pwd->pw_shell, &buffer, &bufsize, 1))          
    return 0;                                                         
  1071de:	c7 45 d0 00 00 00 00 	movl   $0x0,-0x30(%ebp)               
  size_t bufsize                                                      
)                                                                     
{                                                                     
  int pwuid, pwgid;                                                   
                                                                      
  if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)            
  1071e5:	85 c0                	test   %eax,%eax                      
  1071e7:	0f 84 c4 00 00 00    	je     1072b1 <scanpw+0xf8>           
   || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0)          
  1071ed:	51                   	push   %ecx                           
  1071ee:	51                   	push   %ecx                           
  1071ef:	8d 53 04             	lea    0x4(%ebx),%edx                 
  1071f2:	6a 00                	push   $0x0                           
  1071f4:	8d 45 08             	lea    0x8(%ebp),%eax                 
  1071f7:	50                   	push   %eax                           
  1071f8:	89 f9                	mov    %edi,%ecx                      
  1071fa:	89 f0                	mov    %esi,%eax                      
  1071fc:	e8 34 fe ff ff       	call   107035 <scanString>            
  107201:	83 c4 10             	add    $0x10,%esp                     
  107204:	85 c0                	test   %eax,%eax                      
  107206:	0f 84 a5 00 00 00    	je     1072b1 <scanpw+0xf8>           <== NEVER TAKEN
   || !scanInt(fp, &pwuid)                                            
  10720c:	8d 55 e4             	lea    -0x1c(%ebp),%edx               
  10720f:	89 f0                	mov    %esi,%eax                      
  107211:	e8 6a fd ff ff       	call   106f80 <scanInt>               
  107216:	85 c0                	test   %eax,%eax                      
  107218:	0f 84 93 00 00 00    	je     1072b1 <scanpw+0xf8>           
   || !scanInt(fp, &pwgid)                                            
  10721e:	8d 55 e0             	lea    -0x20(%ebp),%edx               
  107221:	89 f0                	mov    %esi,%eax                      
  107223:	e8 58 fd ff ff       	call   106f80 <scanInt>               
  107228:	85 c0                	test   %eax,%eax                      
  10722a:	0f 84 81 00 00 00    	je     1072b1 <scanpw+0xf8>           
   || !scanString(fp, &pwd->pw_comment, &buffer, &bufsize, 0)         
  107230:	52                   	push   %edx                           
  107231:	52                   	push   %edx                           
  107232:	8d 53 0c             	lea    0xc(%ebx),%edx                 
  107235:	6a 00                	push   $0x0                           
  107237:	8d 45 08             	lea    0x8(%ebp),%eax                 
  10723a:	50                   	push   %eax                           
  10723b:	89 f9                	mov    %edi,%ecx                      
  10723d:	89 f0                	mov    %esi,%eax                      
  10723f:	e8 f1 fd ff ff       	call   107035 <scanString>            
  107244:	83 c4 10             	add    $0x10,%esp                     
  107247:	85 c0                	test   %eax,%eax                      
  107249:	74 66                	je     1072b1 <scanpw+0xf8>           <== NEVER TAKEN
   || !scanString(fp, &pwd->pw_gecos, &buffer, &bufsize, 0)           
  10724b:	50                   	push   %eax                           
  10724c:	50                   	push   %eax                           
  10724d:	8d 53 10             	lea    0x10(%ebx),%edx                
  107250:	6a 00                	push   $0x0                           
  107252:	8d 45 08             	lea    0x8(%ebp),%eax                 
  107255:	50                   	push   %eax                           
  107256:	89 f9                	mov    %edi,%ecx                      
  107258:	89 f0                	mov    %esi,%eax                      
  10725a:	e8 d6 fd ff ff       	call   107035 <scanString>            
  10725f:	83 c4 10             	add    $0x10,%esp                     
  107262:	85 c0                	test   %eax,%eax                      
  107264:	74 4b                	je     1072b1 <scanpw+0xf8>           <== NEVER TAKEN
   || !scanString(fp, &pwd->pw_dir, &buffer, &bufsize, 0)             
  107266:	51                   	push   %ecx                           
  107267:	51                   	push   %ecx                           
  107268:	8d 53 14             	lea    0x14(%ebx),%edx                
  10726b:	6a 00                	push   $0x0                           
  10726d:	8d 45 08             	lea    0x8(%ebp),%eax                 
  107270:	50                   	push   %eax                           
  107271:	89 f9                	mov    %edi,%ecx                      
  107273:	89 f0                	mov    %esi,%eax                      
  107275:	e8 bb fd ff ff       	call   107035 <scanString>            
  10727a:	83 c4 10             	add    $0x10,%esp                     
  10727d:	85 c0                	test   %eax,%eax                      
  10727f:	74 30                	je     1072b1 <scanpw+0xf8>           <== NEVER TAKEN
   || !scanString(fp, &pwd->pw_shell, &buffer, &bufsize, 1))          
  107281:	52                   	push   %edx                           
  107282:	52                   	push   %edx                           
  107283:	8d 53 18             	lea    0x18(%ebx),%edx                
  107286:	6a 01                	push   $0x1                           
  107288:	8d 45 08             	lea    0x8(%ebp),%eax                 
  10728b:	50                   	push   %eax                           
  10728c:	89 f9                	mov    %edi,%ecx                      
  10728e:	89 f0                	mov    %esi,%eax                      
  107290:	e8 a0 fd ff ff       	call   107035 <scanString>            
  107295:	83 c4 10             	add    $0x10,%esp                     
  107298:	85 c0                	test   %eax,%eax                      
  10729a:	74 15                	je     1072b1 <scanpw+0xf8>           
    return 0;                                                         
  pwd->pw_uid = pwuid;                                                
  10729c:	8b 45 e4             	mov    -0x1c(%ebp),%eax               
  10729f:	66 89 43 08          	mov    %ax,0x8(%ebx)                  
  pwd->pw_gid = pwgid;                                                
  1072a3:	8b 45 e0             	mov    -0x20(%ebp),%eax               
  1072a6:	66 89 43 0a          	mov    %ax,0xa(%ebx)                  
  return 1;                                                           
  1072aa:	c7 45 d0 01 00 00 00 	movl   $0x1,-0x30(%ebp)               
}                                                                     
  1072b1:	8b 45 d0             	mov    -0x30(%ebp),%eax               
  1072b4:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  1072b7:	5b                   	pop    %ebx                           
  1072b8:	5e                   	pop    %esi                           
  1072b9:	5f                   	pop    %edi                           
  1072ba:	c9                   	leave                                 
  1072bb:	c3                   	ret                                   
                                                                      

001085a0 <siproc>: /* * Process input character, with semaphore. */ static int siproc (unsigned char c, struct rtems_termios_tty *tty) {
  1085a0:	55                   	push   %ebp                           
  1085a1:	89 e5                	mov    %esp,%ebp                      
  1085a3:	56                   	push   %esi                           
  1085a4:	53                   	push   %ebx                           
  1085a5:	89 d3                	mov    %edx,%ebx                      
  1085a7:	89 c6                	mov    %eax,%esi                      
  int i;                                                              
                                                                      
  /*                                                                  
   * Obtain output semaphore if character will be echoed              
   */                                                                 
  if (tty->termios.c_lflag & (ECHO|ECHOE|ECHOK|ECHONL|ECHOPRT|ECHOCTL|ECHOKE)) {
  1085a9:	f7 42 3c 78 0e 00 00 	testl  $0xe78,0x3c(%edx)              
  1085b0:	74 30                	je     1085e2 <siproc+0x42>           <== NEVER TAKEN
    rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 
  1085b2:	52                   	push   %edx                           
  1085b3:	6a 00                	push   $0x0                           
  1085b5:	6a 00                	push   $0x0                           
  1085b7:	ff 73 18             	pushl  0x18(%ebx)                     
  1085ba:	e8 79 11 00 00       	call   109738 <rtems_semaphore_obtain>
    i = iproc (c, tty);                                               
  1085bf:	89 f2                	mov    %esi,%edx                      
  1085c1:	0f b6 c2             	movzbl %dl,%eax                       
  1085c4:	89 da                	mov    %ebx,%edx                      
  1085c6:	e8 b5 fe ff ff       	call   108480 <iproc>                 
  1085cb:	89 c6                	mov    %eax,%esi                      
    rtems_semaphore_release (tty->osem);                              
  1085cd:	58                   	pop    %eax                           
  1085ce:	ff 73 18             	pushl  0x18(%ebx)                     
  1085d1:	e8 4e 12 00 00       	call   109824 <rtems_semaphore_release>
  1085d6:	83 c4 10             	add    $0x10,%esp                     
  }                                                                   
  else {                                                              
    i = iproc (c, tty);                                               
  }                                                                   
  return i;                                                           
}                                                                     
  1085d9:	89 f0                	mov    %esi,%eax                      
  1085db:	8d 65 f8             	lea    -0x8(%ebp),%esp                
  1085de:	5b                   	pop    %ebx                           
  1085df:	5e                   	pop    %esi                           
  1085e0:	c9                   	leave                                 
  1085e1:	c3                   	ret                                   
    rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 
    i = iproc (c, tty);                                               
    rtems_semaphore_release (tty->osem);                              
  }                                                                   
  else {                                                              
    i = iproc (c, tty);                                               
  1085e2:	0f b6 c0             	movzbl %al,%eax                       <== NOT EXECUTED
  1085e5:	89 da                	mov    %ebx,%edx                      <== NOT EXECUTED
  }                                                                   
  return i;                                                           
}                                                                     
  1085e7:	8d 65 f8             	lea    -0x8(%ebp),%esp                <== NOT EXECUTED
  1085ea:	5b                   	pop    %ebx                           <== NOT EXECUTED
  1085eb:	5e                   	pop    %esi                           <== NOT EXECUTED
  1085ec:	c9                   	leave                                 <== 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);                                               
  1085ed:	e9 8e fe ff ff       	jmp    108480 <iproc>                 <== NOT EXECUTED
                                                                      

00109774 <statvfs>: #include <sys/statvfs.h> int statvfs (const char *path, struct statvfs *sb) {
  109774:	55                   	push   %ebp                           
  109775:	89 e5                	mov    %esp,%ebp                      
  109777:	57                   	push   %edi                           
  109778:	56                   	push   %esi                           
  109779:	53                   	push   %ebx                           
  10977a:	83 ec 38             	sub    $0x38,%esp                     
  10977d:	8b 55 08             	mov    0x8(%ebp),%edx                 
  109780:	8b 75 0c             	mov    0xc(%ebp),%esi                 
   *    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 ) )
  109783:	31 c0                	xor    %eax,%eax                      
  109785:	83 c9 ff             	or     $0xffffffff,%ecx               
  109788:	89 d7                	mov    %edx,%edi                      
  10978a:	f2 ae                	repnz scas %es:(%edi),%al             
  10978c:	f7 d1                	not    %ecx                           
  10978e:	49                   	dec    %ecx                           
  10978f:	6a 01                	push   $0x1                           
  109791:	8d 5d d4             	lea    -0x2c(%ebp),%ebx               
  109794:	53                   	push   %ebx                           
  109795:	6a 00                	push   $0x0                           
  109797:	51                   	push   %ecx                           
  109798:	52                   	push   %edx                           
  109799:	e8 04 ee ff ff       	call   1085a2 <rtems_filesystem_evaluate_path>
  10979e:	83 c4 20             	add    $0x20,%esp                     
    return -1;                                                        
  1097a1:	83 cf ff             	or     $0xffffffff,%edi               
   *    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 ) )
  1097a4:	85 c0                	test   %eax,%eax                      
  1097a6:	75 26                	jne    1097ce <statvfs+0x5a>          <== NEVER TAKEN
    return -1;                                                        
                                                                      
  mt_entry      = loc.mt_entry;                                       
  1097a8:	8b 55 e4             	mov    -0x1c(%ebp),%edx               
  fs_mount_root = &mt_entry->mt_fs_root;                              
                                                                      
  memset (sb, 0, sizeof (struct statvfs));                            
  1097ab:	b9 0e 00 00 00       	mov    $0xe,%ecx                      
  1097b0:	89 f7                	mov    %esi,%edi                      
  1097b2:	f3 ab                	rep stos %eax,%es:(%edi)              
                                                                      
  result = ( fs_mount_root->ops->statvfs_h )( fs_mount_root, sb );    
  1097b4:	50                   	push   %eax                           
  1097b5:	50                   	push   %eax                           
  1097b6:	8b 42 28             	mov    0x28(%edx),%eax                
  1097b9:	56                   	push   %esi                           
                                                                      
  if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x0, &loc, true ) )
    return -1;                                                        
                                                                      
  mt_entry      = loc.mt_entry;                                       
  fs_mount_root = &mt_entry->mt_fs_root;                              
  1097ba:	83 c2 1c             	add    $0x1c,%edx                     
                                                                      
  memset (sb, 0, sizeof (struct statvfs));                            
                                                                      
  result = ( fs_mount_root->ops->statvfs_h )( fs_mount_root, sb );    
  1097bd:	52                   	push   %edx                           
  1097be:	ff 50 44             	call   *0x44(%eax)                    
  1097c1:	89 c7                	mov    %eax,%edi                      
                                                                      
  rtems_filesystem_freenode( &loc );                                  
  1097c3:	89 1c 24             	mov    %ebx,(%esp)                    
  1097c6:	e8 95 ee ff ff       	call   108660 <rtems_filesystem_freenode>
                                                                      
  return result;                                                      
  1097cb:	83 c4 10             	add    $0x10,%esp                     
}                                                                     
  1097ce:	89 f8                	mov    %edi,%eax                      
  1097d0:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  1097d3:	5b                   	pop    %ebx                           
  1097d4:	5e                   	pop    %esi                           
  1097d5:	5f                   	pop    %edi                           
  1097d6:	c9                   	leave                                 
  1097d7:	c3                   	ret                                   
                                                                      

001085dc <sync_per_thread>: fdatasync(fn); } /* iterate over all FILE *'s for this thread */ static void sync_per_thread(Thread_Control *t) {
  1085dc:	55                   	push   %ebp                           
  1085dd:	89 e5                	mov    %esp,%ebp                      
  1085df:	53                   	push   %ebx                           
  1085e0:	83 ec 04             	sub    $0x4,%esp                      
  1085e3:	8b 45 08             	mov    0x8(%ebp),%eax                 
                                                                      
   /*                                                                 
    *  The sync_wrapper() function will operate on the current thread's
    *  reent structure so we will temporarily use that.               
    */                                                                
   this_reent = t->libc_reent;                                        
  1085e6:	8b 88 e0 00 00 00    	mov    0xe0(%eax),%ecx                
   if ( this_reent ) {                                                
  1085ec:	85 c9                	test   %ecx,%ecx                      
  1085ee:	74 32                	je     108622 <sync_per_thread+0x46>  <== NEVER TAKEN
     current_reent = _Thread_Executing->libc_reent;                   
  1085f0:	8b 15 3c 5a 12 00    	mov    0x125a3c,%edx                  
  1085f6:	8b 9a e0 00 00 00    	mov    0xe0(%edx),%ebx                
     _Thread_Executing->libc_reent = this_reent;                      
  1085fc:	89 8a e0 00 00 00    	mov    %ecx,0xe0(%edx)                
     _fwalk (t->libc_reent, sync_wrapper);                            
  108602:	52                   	push   %edx                           
  108603:	52                   	push   %edx                           
  108604:	68 27 86 10 00       	push   $0x108627                      
  108609:	ff b0 e0 00 00 00    	pushl  0xe0(%eax)                     
  10860f:	e8 8c 94 00 00       	call   111aa0 <_fwalk>                
     _Thread_Executing->libc_reent = current_reent;                   
  108614:	a1 3c 5a 12 00       	mov    0x125a3c,%eax                  
  108619:	89 98 e0 00 00 00    	mov    %ebx,0xe0(%eax)                
  10861f:	83 c4 10             	add    $0x10,%esp                     
   }                                                                  
}                                                                     
  108622:	8b 5d fc             	mov    -0x4(%ebp),%ebx                
  108625:	c9                   	leave                                 
  108626:	c3                   	ret                                   
                                                                      

0010e550 <tcsetattr>: int tcsetattr( int fd, int opt, struct termios *tp ) {
  10e550:	55                   	push   %ebp                           
  10e551:	89 e5                	mov    %esp,%ebp                      
  10e553:	56                   	push   %esi                           
  10e554:	53                   	push   %ebx                           
  10e555:	8b 5d 08             	mov    0x8(%ebp),%ebx                 
  10e558:	8b 45 0c             	mov    0xc(%ebp),%eax                 
  10e55b:	8b 75 10             	mov    0x10(%ebp),%esi                
  switch (opt) {                                                      
  10e55e:	85 c0                	test   %eax,%eax                      
  10e560:	74 22                	je     10e584 <tcsetattr+0x34>        
  10e562:	48                   	dec    %eax                           
  10e563:	74 0d                	je     10e572 <tcsetattr+0x22>        
  default:                                                            
    rtems_set_errno_and_return_minus_one( ENOTSUP );                  
  10e565:	e8 b2 26 00 00       	call   110c1c <__errno>               
  10e56a:	c7 00 86 00 00 00    	movl   $0x86,(%eax)                   
  10e570:	eb 2a                	jmp    10e59c <tcsetattr+0x4c>        
                                                                      
  case TCSADRAIN:                                                     
    if (ioctl( fd, RTEMS_IO_TCDRAIN, NULL ) < 0)                      
  10e572:	50                   	push   %eax                           
  10e573:	6a 00                	push   $0x0                           
  10e575:	6a 03                	push   $0x3                           
  10e577:	53                   	push   %ebx                           
  10e578:	e8 f3 fc ff ff       	call   10e270 <ioctl>                 
  10e57d:	83 c4 10             	add    $0x10,%esp                     
  10e580:	85 c0                	test   %eax,%eax                      
  10e582:	78 18                	js     10e59c <tcsetattr+0x4c>        <== NEVER TAKEN
    	return -1;                                                       
    /*                                                                
     * Fall through to....                                            
     */                                                               
  case TCSANOW:                                                       
    return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp );                  
  10e584:	89 75 10             	mov    %esi,0x10(%ebp)                
  10e587:	c7 45 0c 02 00 00 00 	movl   $0x2,0xc(%ebp)                 
  10e58e:	89 5d 08             	mov    %ebx,0x8(%ebp)                 
  }                                                                   
}                                                                     
  10e591:	8d 65 f8             	lea    -0x8(%ebp),%esp                
  10e594:	5b                   	pop    %ebx                           
  10e595:	5e                   	pop    %esi                           
  10e596:	c9                   	leave                                 
    	return -1;                                                       
    /*                                                                
     * Fall through to....                                            
     */                                                               
  case TCSANOW:                                                       
    return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp );                  
  10e597:	e9 d4 fc ff ff       	jmp    10e270 <ioctl>                 
  }                                                                   
}                                                                     
  10e59c:	83 c8 ff             	or     $0xffffffff,%eax               
  10e59f:	8d 65 f8             	lea    -0x8(%ebp),%esp                
  10e5a2:	5b                   	pop    %ebx                           
  10e5a3:	5e                   	pop    %esi                           
  10e5a4:	c9                   	leave                                 
  10e5a5:	c3                   	ret                                   
                                                                      

00109d4c <unlink>: #include <rtems/seterr.h> int unlink( const char *path ) {
  109d4c:	55                   	push   %ebp                           
  109d4d:	89 e5                	mov    %esp,%ebp                      
  109d4f:	57                   	push   %edi                           
  109d50:	56                   	push   %esi                           
  109d51:	53                   	push   %ebx                           
  109d52:	83 ec 58             	sub    $0x58,%esp                     
                                                                      
  /*                                                                  
   * Get the node to be unlinked. Find the parent path first.         
   */                                                                 
                                                                      
  parentpathlen = rtems_filesystem_dirname ( path );                  
  109d55:	ff 75 08             	pushl  0x8(%ebp)                      
  109d58:	e8 f6 d8 ff ff       	call   107653 <rtems_filesystem_dirname>
  109d5d:	89 45 b4             	mov    %eax,-0x4c(%ebp)               
                                                                      
  if ( parentpathlen == 0 )                                           
  109d60:	83 c4 10             	add    $0x10,%esp                     
  109d63:	85 c0                	test   %eax,%eax                      
  109d65:	8d 45 d0             	lea    -0x30(%ebp),%eax               
  109d68:	75 15                	jne    109d7f <unlink+0x33>           
    rtems_filesystem_get_start_loc( path, &i, &parentloc );           
  109d6a:	51                   	push   %ecx                           
  109d6b:	50                   	push   %eax                           
  109d6c:	8d 45 e4             	lea    -0x1c(%ebp),%eax               
  109d6f:	50                   	push   %eax                           
  109d70:	ff 75 08             	pushl  0x8(%ebp)                      
  109d73:	e8 d4 e6 ff ff       	call   10844c <rtems_filesystem_get_start_loc>
  109d78:	83 c4 10             	add    $0x10,%esp                     
  const char                       *name;                             
  rtems_filesystem_location_info_t  parentloc;                        
  rtems_filesystem_location_info_t  loc;                              
  int                               i;                                
  int                               result;                           
  bool                              free_parentloc = false;           
  109d7b:	31 db                	xor    %ebx,%ebx                      
  109d7d:	eb 25                	jmp    109da4 <unlink+0x58>           
  parentpathlen = rtems_filesystem_dirname ( path );                  
                                                                      
  if ( parentpathlen == 0 )                                           
    rtems_filesystem_get_start_loc( path, &i, &parentloc );           
  else {                                                              
    result = rtems_filesystem_evaluate_path( path, parentpathlen,     
  109d7f:	83 ec 0c             	sub    $0xc,%esp                      
  109d82:	6a 00                	push   $0x0                           
  109d84:	50                   	push   %eax                           
  109d85:	6a 02                	push   $0x2                           
  109d87:	ff 75 b4             	pushl  -0x4c(%ebp)                    
  109d8a:	ff 75 08             	pushl  0x8(%ebp)                      
  109d8d:	e8 80 d8 ff ff       	call   107612 <rtems_filesystem_evaluate_path>
  109d92:	89 c2                	mov    %eax,%edx                      
                                             RTEMS_LIBIO_PERMS_WRITE, 
                                             &parentloc,              
                                             false );                 
    if ( result != 0 )                                                
  109d94:	83 c4 20             	add    $0x20,%esp                     
      return -1;                                                      
  109d97:	83 c8 ff             	or     $0xffffffff,%eax               
  else {                                                              
    result = rtems_filesystem_evaluate_path( path, parentpathlen,     
                                             RTEMS_LIBIO_PERMS_WRITE, 
                                             &parentloc,              
                                             false );                 
    if ( result != 0 )                                                
  109d9a:	85 d2                	test   %edx,%edx                      
  109d9c:	0f 85 d6 00 00 00    	jne    109e78 <unlink+0x12c>          <== NEVER TAKEN
      return -1;                                                      
                                                                      
    free_parentloc = true;                                            
  109da2:	b3 01                	mov    $0x1,%bl                       
                                                                      
  /*                                                                  
   * Start from the parent to find the node that should be under it.  
   */                                                                 
                                                                      
  loc = parentloc;                                                    
  109da4:	8d 7d bc             	lea    -0x44(%ebp),%edi               
  109da7:	8d 75 d0             	lea    -0x30(%ebp),%esi               
  109daa:	b9 05 00 00 00       	mov    $0x5,%ecx                      
  109daf:	f3 a5                	rep movsl %ds:(%esi),%es:(%edi)       
  name = path + parentpathlen;                                        
  109db1:	8b 75 08             	mov    0x8(%ebp),%esi                 
  109db4:	03 75 b4             	add    -0x4c(%ebp),%esi               
  name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 
  109db7:	83 c9 ff             	or     $0xffffffff,%ecx               
  109dba:	89 f7                	mov    %esi,%edi                      
  109dbc:	31 c0                	xor    %eax,%eax                      
  109dbe:	f2 ae                	repnz scas %es:(%edi),%al             
  109dc0:	f7 d1                	not    %ecx                           
  109dc2:	49                   	dec    %ecx                           
  109dc3:	52                   	push   %edx                           
  109dc4:	52                   	push   %edx                           
  109dc5:	51                   	push   %ecx                           
  109dc6:	56                   	push   %esi                           
  109dc7:	e8 c6 d8 ff ff       	call   107692 <rtems_filesystem_prefix_separators>
  109dcc:	01 c6                	add    %eax,%esi                      
                                                                      
  result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
  109dce:	83 c9 ff             	or     $0xffffffff,%ecx               
  109dd1:	89 f7                	mov    %esi,%edi                      
  109dd3:	31 c0                	xor    %eax,%eax                      
  109dd5:	f2 ae                	repnz scas %es:(%edi),%al             
  109dd7:	f7 d1                	not    %ecx                           
  109dd9:	49                   	dec    %ecx                           
  109dda:	c7 04 24 00 00 00 00 	movl   $0x0,(%esp)                    
  109de1:	8d 7d bc             	lea    -0x44(%ebp),%edi               
  109de4:	57                   	push   %edi                           
  109de5:	6a 00                	push   $0x0                           
  109de7:	51                   	push   %ecx                           
  109de8:	56                   	push   %esi                           
  109de9:	e8 c6 d7 ff ff       	call   1075b4 <rtems_filesystem_evaluate_relative_path>
                                                    0, &loc, false ); 
  if ( result != 0 ) {                                                
  109dee:	83 c4 20             	add    $0x20,%esp                     
  109df1:	85 c0                	test   %eax,%eax                      
  109df3:	74 13                	je     109e08 <unlink+0xbc>           
    if ( free_parentloc )                                             
      rtems_filesystem_freenode( &parentloc );                        
    return -1;                                                        
  109df5:	83 c8 ff             	or     $0xffffffff,%eax               
  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 )                                             
  109df8:	84 db                	test   %bl,%bl                        
  109dfa:	74 7c                	je     109e78 <unlink+0x12c>          <== NEVER TAKEN
      rtems_filesystem_freenode( &parentloc );                        
  109dfc:	83 ec 0c             	sub    $0xc,%esp                      
  109dff:	8d 55 d0             	lea    -0x30(%ebp),%edx               
  109e02:	52                   	push   %edx                           
  109e03:	89 45 b0             	mov    %eax,-0x50(%ebp)               
  109e06:	eb 65                	jmp    109e6d <unlink+0x121>          
    return -1;                                                        
  }                                                                   
                                                                      
  if (  (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) {
  109e08:	83 ec 0c             	sub    $0xc,%esp                      
  109e0b:	57                   	push   %edi                           
  109e0c:	8b 45 c8             	mov    -0x38(%ebp),%eax               
  109e0f:	ff 50 10             	call   *0x10(%eax)                    
  109e12:	83 c4 10             	add    $0x10,%esp                     
  109e15:	48                   	dec    %eax                           
  109e16:	75 2f                	jne    109e47 <unlink+0xfb>           
    rtems_filesystem_freenode( &loc );                                
  109e18:	83 ec 0c             	sub    $0xc,%esp                      
  109e1b:	57                   	push   %edi                           
  109e1c:	e8 af d8 ff ff       	call   1076d0 <rtems_filesystem_freenode>
    if ( free_parentloc )                                             
  109e21:	83 c4 10             	add    $0x10,%esp                     
  109e24:	84 db                	test   %bl,%bl                        
  109e26:	74 0f                	je     109e37 <unlink+0xeb>           
      rtems_filesystem_freenode( &parentloc );                        
  109e28:	83 ec 0c             	sub    $0xc,%esp                      
  109e2b:	8d 45 d0             	lea    -0x30(%ebp),%eax               
  109e2e:	50                   	push   %eax                           
  109e2f:	e8 9c d8 ff ff       	call   1076d0 <rtems_filesystem_freenode>
  109e34:	83 c4 10             	add    $0x10,%esp                     
    rtems_set_errno_and_return_minus_one( EISDIR );                   
  109e37:	e8 e4 95 00 00       	call   113420 <__errno>               
  109e3c:	c7 00 15 00 00 00    	movl   $0x15,(%eax)                   
  109e42:	83 c8 ff             	or     $0xffffffff,%eax               
  109e45:	eb 31                	jmp    109e78 <unlink+0x12c>          
  }                                                                   
                                                                      
  result = (*loc.ops->unlink_h)( &parentloc, &loc );                  
  109e47:	50                   	push   %eax                           
  109e48:	50                   	push   %eax                           
  109e49:	57                   	push   %edi                           
  109e4a:	8d 75 d0             	lea    -0x30(%ebp),%esi               
  109e4d:	56                   	push   %esi                           
  109e4e:	8b 45 c8             	mov    -0x38(%ebp),%eax               
  109e51:	ff 50 0c             	call   *0xc(%eax)                     
                                                                      
  rtems_filesystem_freenode( &loc );                                  
  109e54:	89 3c 24             	mov    %edi,(%esp)                    
  109e57:	89 45 b0             	mov    %eax,-0x50(%ebp)               
  109e5a:	e8 71 d8 ff ff       	call   1076d0 <rtems_filesystem_freenode>
  if ( free_parentloc )                                               
  109e5f:	83 c4 10             	add    $0x10,%esp                     
  109e62:	84 db                	test   %bl,%bl                        
  109e64:	8b 45 b0             	mov    -0x50(%ebp),%eax               
  109e67:	74 0f                	je     109e78 <unlink+0x12c>          
    rtems_filesystem_freenode( &parentloc );                          
  109e69:	83 ec 0c             	sub    $0xc,%esp                      
  109e6c:	56                   	push   %esi                           
  109e6d:	e8 5e d8 ff ff       	call   1076d0 <rtems_filesystem_freenode>
  109e72:	83 c4 10             	add    $0x10,%esp                     
  109e75:	8b 45 b0             	mov    -0x50(%ebp),%eax               
                                                                      
  return result;                                                      
}                                                                     
  109e78:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  109e7b:	5b                   	pop    %ebx                           
  109e7c:	5e                   	pop    %esi                           
  109e7d:	5f                   	pop    %edi                           
  109e7e:	c9                   	leave                                 
  109e7f:	c3                   	ret                                   
                                                                      

00109fa9 <unmount>: */ int unmount( const char *path ) {
  109fa9:	55                   	push   %ebp                           
  109faa:	89 e5                	mov    %esp,%ebp                      
  109fac:	57                   	push   %edi                           
  109fad:	56                   	push   %esi                           
  109fae:	53                   	push   %ebx                           
  109faf:	83 ec 38             	sub    $0x38,%esp                     
  109fb2:	8b 55 08             	mov    0x8(%ebp),%edx                 
   *    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 ) )
  109fb5:	83 cb ff             	or     $0xffffffff,%ebx               
  109fb8:	31 c0                	xor    %eax,%eax                      
  109fba:	89 d9                	mov    %ebx,%ecx                      
  109fbc:	89 d7                	mov    %edx,%edi                      
  109fbe:	f2 ae                	repnz scas %es:(%edi),%al             
  109fc0:	f7 d1                	not    %ecx                           
  109fc2:	49                   	dec    %ecx                           
  109fc3:	6a 01                	push   $0x1                           
  109fc5:	8d 7d d4             	lea    -0x2c(%ebp),%edi               
  109fc8:	57                   	push   %edi                           
  109fc9:	6a 00                	push   $0x0                           
  109fcb:	51                   	push   %ecx                           
  109fcc:	52                   	push   %edx                           
  109fcd:	e8 c4 d5 ff ff       	call   107596 <rtems_filesystem_evaluate_path>
  109fd2:	83 c4 20             	add    $0x20,%esp                     
  109fd5:	85 c0                	test   %eax,%eax                      
  109fd7:	0f 85 f2 00 00 00    	jne    10a0cf <unmount+0x126>         <== NEVER TAKEN
    return -1;                                                        
                                                                      
  mt_entry     = loc.mt_entry;                                        
  109fdd:	8b 75 e4             	mov    -0x1c(%ebp),%esi               
                                                                      
  /*                                                                  
   * Verify this is the root node for the file system to be unmounted.
   */                                                                 
                                                                      
  if ( fs_root_loc->node_access != loc.node_access ){                 
  109fe0:	8b 45 d4             	mov    -0x2c(%ebp),%eax               
  109fe3:	39 46 1c             	cmp    %eax,0x1c(%esi)                
  109fe6:	74 1c                	je     10a004 <unmount+0x5b>          
    rtems_filesystem_freenode( &loc );                                
  109fe8:	83 ec 0c             	sub    $0xc,%esp                      
  109feb:	57                   	push   %edi                           
  109fec:	e8 63 d6 ff ff       	call   107654 <rtems_filesystem_freenode>
    rtems_set_errno_and_return_minus_one( EACCES );                   
  109ff1:	e8 a2 6c 00 00       	call   110c98 <__errno>               
  109ff6:	c7 00 0d 00 00 00    	movl   $0xd,(%eax)                    
  109ffc:	83 c4 10             	add    $0x10,%esp                     
  109fff:	e9 cb 00 00 00       	jmp    10a0cf <unmount+0x126>         
                                                                      
  /*                                                                  
   * Free the loc node and just use the nodes from the mt_entry .     
   */                                                                 
                                                                      
  rtems_filesystem_freenode( &loc );                                  
  10a004:	83 ec 0c             	sub    $0xc,%esp                      
  10a007:	57                   	push   %edi                           
  10a008:	e8 47 d6 ff ff       	call   107654 <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 )                
  10a00d:	83 c4 10             	add    $0x10,%esp                     
  10a010:	a1 b0 46 12 00       	mov    0x1246b0,%eax                  
  10a015:	39 70 14             	cmp    %esi,0x14(%eax)                
  10a018:	74 25                	je     10a03f <unmount+0x96>          
                                                                      
  /*                                                                  
   *  Verify there are no file systems below the path specified       
   */                                                                 
                                                                      
  if ( rtems_filesystem_mount_iterate( is_fs_below_mount_point,       
  10a01a:	51                   	push   %ecx                           
  10a01b:	51                   	push   %ecx                           
  10a01c:	ff 76 2c             	pushl  0x2c(%esi)                     
  10a01f:	68 98 9f 10 00       	push   $0x109f98                      
  10a024:	e8 44 dd ff ff       	call   107d6d <rtems_filesystem_mount_iterate>
  10a029:	83 c4 10             	add    $0x10,%esp                     
  10a02c:	84 c0                	test   %al,%al                        
  10a02e:	75 0f                	jne    10a03f <unmount+0x96>          
   *  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 )             
  10a030:	83 ec 0c             	sub    $0xc,%esp                      
  10a033:	56                   	push   %esi                           
  10a034:	e8 03 d9 ff ff       	call   10793c <rtems_libio_is_open_files_in_fs>
  10a039:	83 c4 10             	add    $0x10,%esp                     
  10a03c:	48                   	dec    %eax                           
  10a03d:	75 10                	jne    10a04f <unmount+0xa6>          
    rtems_set_errno_and_return_minus_one( EBUSY );                    
  10a03f:	e8 54 6c 00 00       	call   110c98 <__errno>               
  10a044:	c7 00 10 00 00 00    	movl   $0x10,(%eax)                   
  10a04a:	e9 80 00 00 00       	jmp    10a0cf <unmount+0x126>         
   * 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 )             
  10a04f:	83 ec 0c             	sub    $0xc,%esp                      
  10a052:	8b 46 14             	mov    0x14(%esi),%eax                
  10a055:	56                   	push   %esi                           
  10a056:	ff 50 28             	call   *0x28(%eax)                    
  10a059:	83 c4 10             	add    $0x10,%esp                     
    return -1;                                                        
  10a05c:	83 ca ff             	or     $0xffffffff,%edx               
   * 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 )             
  10a05f:	85 c0                	test   %eax,%eax                      
  10a061:	75 6f                	jne    10a0d2 <unmount+0x129>         <== NEVER TAKEN
   *  NOTE:  Fatal error is called in a case which should never happen
   *         This was response was questionable but the best we could 
   *         come up with.                                            
   */                                                                 
                                                                      
  if ((fs_root_loc->ops->fsunmount_me_h )( mt_entry ) != 0){          
  10a063:	83 ec 0c             	sub    $0xc,%esp                      
  10a066:	8b 46 28             	mov    0x28(%esi),%eax                
  10a069:	56                   	push   %esi                           
  10a06a:	ff 50 2c             	call   *0x2c(%eax)                    
  10a06d:	83 c4 10             	add    $0x10,%esp                     
  10a070:	85 c0                	test   %eax,%eax                      
  10a072:	74 1d                	je     10a091 <unmount+0xe8>          <== ALWAYS TAKEN
    if (( fs_mount_loc->ops->mount_h )( mt_entry ) != 0 )             
  10a074:	83 ec 0c             	sub    $0xc,%esp                      <== NOT EXECUTED
  10a077:	8b 46 14             	mov    0x14(%esi),%eax                <== NOT EXECUTED
  10a07a:	56                   	push   %esi                           <== NOT EXECUTED
  10a07b:	ff 50 20             	call   *0x20(%eax)                    <== NOT EXECUTED
  10a07e:	83 c4 10             	add    $0x10,%esp                     <== NOT EXECUTED
      rtems_fatal_error_occurred( 0 );                                
    return -1;                                                        
  10a081:	89 da                	mov    %ebx,%edx                      <== NOT EXECUTED
   *         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 )             
  10a083:	85 c0                	test   %eax,%eax                      <== NOT EXECUTED
  10a085:	74 4b                	je     10a0d2 <unmount+0x129>         <== NOT EXECUTED
      rtems_fatal_error_occurred( 0 );                                
  10a087:	83 ec 0c             	sub    $0xc,%esp                      <== NOT EXECUTED
  10a08a:	6a 00                	push   $0x0                           <== NOT EXECUTED
  10a08c:	e8 eb 0d 00 00       	call   10ae7c <rtems_fatal_error_occurred><== NOT EXECUTED
rtems_status_code rtems_libio_set_private_env(void);                  
rtems_status_code rtems_libio_share_private_env(rtems_id task_id) ;   
                                                                      
static inline void rtems_libio_lock( void )                           
{                                                                     
  rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT );
  10a091:	52                   	push   %edx                           
  10a092:	6a 00                	push   $0x0                           
  10a094:	6a 00                	push   $0x0                           
  10a096:	ff 35 48 68 12 00    	pushl  0x126848                       
  10a09c:	e8 57 08 00 00       	call   10a8f8 <rtems_semaphore_obtain>
 */                                                                   
RTEMS_INLINE_ROUTINE void rtems_chain_extract(                        
  rtems_chain_node *the_node                                          
)                                                                     
{                                                                     
  _Chain_Extract( the_node );                                         
  10a0a1:	89 34 24             	mov    %esi,(%esp)                    
  10a0a4:	e8 5b 10 00 00       	call   10b104 <_Chain_Extract>        
}                                                                     
                                                                      
static inline void rtems_libio_unlock( void )                         
{                                                                     
  rtems_semaphore_release( rtems_libio_semaphore );                   
  10a0a9:	58                   	pop    %eax                           
  10a0aa:	ff 35 48 68 12 00    	pushl  0x126848                       
  10a0b0:	e8 2f 09 00 00       	call   10a9e4 <rtems_semaphore_release>
                                                                      
  if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x0, &loc, true ) )
    return -1;                                                        
                                                                      
  mt_entry     = loc.mt_entry;                                        
  fs_mount_loc = &mt_entry->mt_point_node;                            
  10a0b5:	8d 46 08             	lea    0x8(%esi),%eax                 
  /*                                                                  
   *  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 );                          
  10a0b8:	89 04 24             	mov    %eax,(%esp)                    
  10a0bb:	e8 94 d5 ff ff       	call   107654 <rtems_filesystem_freenode>
  free( mt_entry );                                                   
  10a0c0:	89 34 24             	mov    %esi,(%esp)                    
  10a0c3:	e8 a0 d5 ff ff       	call   107668 <free>                  
                                                                      
  return 0;                                                           
  10a0c8:	83 c4 10             	add    $0x10,%esp                     
  10a0cb:	31 d2                	xor    %edx,%edx                      
  10a0cd:	eb 03                	jmp    10a0d2 <unmount+0x129>         
   *    The node for the directory that the fileystem is mounted on.  
   *    The mount entry that is being refered to.                     
   */                                                                 
                                                                      
  if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x0, &loc, true ) )
    return -1;                                                        
  10a0cf:	83 ca ff             	or     $0xffffffff,%edx               
                                                                      
  rtems_filesystem_freenode( fs_mount_loc );                          
  free( mt_entry );                                                   
                                                                      
  return 0;                                                           
}                                                                     
  10a0d2:	89 d0                	mov    %edx,%eax                      
  10a0d4:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  10a0d7:	5b                   	pop    %ebx                           
  10a0d8:	5e                   	pop    %esi                           
  10a0d9:	5f                   	pop    %edi                           
  10a0da:	c9                   	leave                                 
  10a0db:	c3                   	ret                                   
                                                                      

0011bf4c <write>: ssize_t write( int fd, const void *buffer, size_t count ) {
  11bf4c:	55                   	push   %ebp                           
  11bf4d:	89 e5                	mov    %esp,%ebp                      
  11bf4f:	56                   	push   %esi                           
  11bf50:	53                   	push   %ebx                           
  11bf51:	8b 5d 08             	mov    0x8(%ebp),%ebx                 
  11bf54:	8b 55 0c             	mov    0xc(%ebp),%edx                 
  11bf57:	8b 4d 10             	mov    0x10(%ebp),%ecx                
  ssize_t  rc;                                                        
  rtems_libio_t     *iop;                                             
                                                                      
  rtems_libio_check_fd( fd );                                         
  11bf5a:	3b 1d 44 f1 11 00    	cmp    0x11f144,%ebx                  
  11bf60:	73 14                	jae    11bf76 <write+0x2a>            
  iop = rtems_libio_iop( fd );                                        
  11bf62:	6b db 38             	imul   $0x38,%ebx,%ebx                
  11bf65:	03 1d 00 31 12 00    	add    0x123100,%ebx                  
  rtems_libio_check_is_open( iop );                                   
  11bf6b:	8b 73 14             	mov    0x14(%ebx),%esi                
  11bf6e:	f7 c6 00 01 00 00    	test   $0x100,%esi                    
  11bf74:	75 0d                	jne    11bf83 <write+0x37>            
  11bf76:	e8 05 3e ff ff       	call   10fd80 <__errno>               
  11bf7b:	c7 00 09 00 00 00    	movl   $0x9,(%eax)                    
  11bf81:	eb 1a                	jmp    11bf9d <write+0x51>            
  rtems_libio_check_buffer( buffer );                                 
  11bf83:	85 d2                	test   %edx,%edx                      
  11bf85:	74 0b                	je     11bf92 <write+0x46>            <== NEVER TAKEN
  rtems_libio_check_count( count );                                   
  11bf87:	31 c0                	xor    %eax,%eax                      
  11bf89:	85 c9                	test   %ecx,%ecx                      
  11bf8b:	74 31                	je     11bfbe <write+0x72>            
  rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );            
  11bf8d:	83 e6 04             	and    $0x4,%esi                      
  11bf90:	75 10                	jne    11bfa2 <write+0x56>            
  11bf92:	e8 e9 3d ff ff       	call   10fd80 <__errno>               
  11bf97:	c7 00 16 00 00 00    	movl   $0x16,(%eax)                   
  11bf9d:	83 c8 ff             	or     $0xffffffff,%eax               
  11bfa0:	eb 1c                	jmp    11bfbe <write+0x72>            
                                                                      
  /*                                                                  
   *  Now process the write() request.                                
   */                                                                 
  rc = (*iop->pathinfo.handlers->write_h)( iop, buffer, count );      
  11bfa2:	50                   	push   %eax                           
  11bfa3:	8b 43 20             	mov    0x20(%ebx),%eax                
  11bfa6:	51                   	push   %ecx                           
  11bfa7:	52                   	push   %edx                           
  11bfa8:	53                   	push   %ebx                           
  11bfa9:	ff 50 0c             	call   *0xc(%eax)                     
                                                                      
  if ( rc > 0 )                                                       
  11bfac:	83 c4 10             	add    $0x10,%esp                     
  11bfaf:	85 c0                	test   %eax,%eax                      
  11bfb1:	7e 0b                	jle    11bfbe <write+0x72>            
    iop->offset += rc;                                                
  11bfb3:	89 c1                	mov    %eax,%ecx                      
  11bfb5:	c1 f9 1f             	sar    $0x1f,%ecx                     
  11bfb8:	01 43 0c             	add    %eax,0xc(%ebx)                 
  11bfbb:	11 4b 10             	adc    %ecx,0x10(%ebx)                
                                                                      
  return rc;                                                          
}                                                                     
  11bfbe:	8d 65 f8             	lea    -0x8(%ebp),%esp                
  11bfc1:	5b                   	pop    %ebx                           
  11bfc2:	5e                   	pop    %esi                           
  11bfc3:	c9                   	leave                                 
  11bfc4:	c3                   	ret                                   
                                                                      

00109fc0 <writev>: ssize_t writev( int fd, const struct iovec *iov, int iovcnt ) {
  109fc0:	55                   	push   %ebp                           
  109fc1:	89 e5                	mov    %esp,%ebp                      
  109fc3:	57                   	push   %edi                           
  109fc4:	56                   	push   %esi                           
  109fc5:	53                   	push   %ebx                           
  109fc6:	83 ec 1c             	sub    $0x1c,%esp                     
  109fc9:	8b 75 08             	mov    0x8(%ebp),%esi                 
  109fcc:	8b 7d 0c             	mov    0xc(%ebp),%edi                 
  int            bytes;                                               
  rtems_libio_t *iop;                                                 
  ssize_t        old;                                                 
  bool           all_zeros;                                           
                                                                      
  rtems_libio_check_fd( fd );                                         
  109fcf:	3b 35 64 12 12 00    	cmp    0x121264,%esi                  
  109fd5:	73 11                	jae    109fe8 <writev+0x28>           
  iop = rtems_libio_iop( fd );                                        
  109fd7:	6b f6 38             	imul   $0x38,%esi,%esi                
  109fda:	03 35 20 52 12 00    	add    0x125220,%esi                  
  rtems_libio_check_is_open( iop );                                   
  109fe0:	8b 46 14             	mov    0x14(%esi),%eax                
  109fe3:	f6 c4 01             	test   $0x1,%ah                       
  109fe6:	75 10                	jne    109ff8 <writev+0x38>           
  109fe8:	e8 cf 68 00 00       	call   1108bc <__errno>               
  109fed:	c7 00 09 00 00 00    	movl   $0x9,(%eax)                    
  109ff3:	e9 ad 00 00 00       	jmp    10a0a5 <writev+0xe5>           
  rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );            
  109ff8:	a8 04                	test   $0x4,%al                       
  109ffa:	74 42                	je     10a03e <writev+0x7e>           <== NEVER TAKEN
                                                                      
  /*                                                                  
   *  Argument validation on IO vector                                
   */                                                                 
  if ( !iov )                                                         
  109ffc:	85 ff                	test   %edi,%edi                      
  109ffe:	74 3e                	je     10a03e <writev+0x7e>           
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( iovcnt <= 0 )                                                  
  10a000:	83 7d 10 00          	cmpl   $0x0,0x10(%ebp)                
  10a004:	7e 38                	jle    10a03e <writev+0x7e>           
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( iovcnt > IOV_MAX )                                             
  10a006:	81 7d 10 00 04 00 00 	cmpl   $0x400,0x10(%ebp)              
  10a00d:	7f 2f                	jg     10a03e <writev+0x7e>           <== NEVER TAKEN
  10a00f:	b2 01                	mov    $0x1,%dl                       
  10a011:	31 c0                	xor    %eax,%eax                      
  10a013:	31 c9                	xor    %ecx,%ecx                      
  10a015:	eb 02                	jmp    10a019 <writev+0x59>           
    if ( iov[v].iov_len )                                             
      all_zeros = false;                                              
                                                                      
    /* check for wrap */                                              
    old    = total;                                                   
    total += iov[v].iov_len;                                          
  10a017:	89 d9                	mov    %ebx,%ecx                      
                                                                      
    /*                                                                
     *  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 )                                       
  10a019:	83 3c c7 00          	cmpl   $0x0,(%edi,%eax,8)             
  10a01d:	74 1f                	je     10a03e <writev+0x7e>           
      rtems_set_errno_and_return_minus_one( EINVAL );                 
                                                                      
    if ( iov[v].iov_len )                                             
      all_zeros = false;                                              
  10a01f:	83 7c c7 04 00       	cmpl   $0x0,0x4(%edi,%eax,8)          
  10a024:	0f 94 c3             	sete   %bl                            
  10a027:	f7 db                	neg    %ebx                           
  10a029:	21 da                	and    %ebx,%edx                      
                                                                      
    /* check for wrap */                                              
    old    = total;                                                   
    total += iov[v].iov_len;                                          
  10a02b:	8b 5c c7 04          	mov    0x4(%edi,%eax,8),%ebx          
  10a02f:	8d 1c 19             	lea    (%ecx,%ebx,1),%ebx             
    if ( total < old || total > SSIZE_MAX )                           
  10a032:	81 fb ff 7f 00 00    	cmp    $0x7fff,%ebx                   
  10a038:	7f 04                	jg     10a03e <writev+0x7e>           <== NEVER TAKEN
  10a03a:	39 cb                	cmp    %ecx,%ebx                      
  10a03c:	7d 0d                	jge    10a04b <writev+0x8b>           
      rtems_set_errno_and_return_minus_one( EINVAL );                 
  10a03e:	e8 79 68 00 00       	call   1108bc <__errno>               
  10a043:	c7 00 16 00 00 00    	movl   $0x16,(%eax)                   
  10a049:	eb 5a                	jmp    10a0a5 <writev+0xe5>           
   *  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++ ) {                    
  10a04b:	40                   	inc    %eax                           
  10a04c:	3b 45 10             	cmp    0x10(%ebp),%eax                
  10a04f:	7c c6                	jl     10a017 <writev+0x57>           
                                                                      
  /*                                                                  
   * A writev with all zeros is supposed to have no effect per OpenGroup.
   */                                                                 
  if ( all_zeros == true ) {                                          
    return 0;                                                         
  10a051:	31 db                	xor    %ebx,%ebx                      
  }                                                                   
                                                                      
  /*                                                                  
   * A writev with all zeros is supposed to have no effect per OpenGroup.
   */                                                                 
  if ( all_zeros == true ) {                                          
  10a053:	84 d2                	test   %dl,%dl                        
  10a055:	75 51                	jne    10a0a8 <writev+0xe8>           
  10a057:	c7 45 e4 00 00 00 00 	movl   $0x0,-0x1c(%ebp)               
  /*                                                                  
   *  Now process the writev().                                       
   */                                                                 
  for ( total=0, v=0 ; v < iovcnt ; v++ ) {                           
    /* all zero lengths has no effect */                              
    if ( iov[v].iov_len == 0 )                                        
  10a05e:	8b 55 e4             	mov    -0x1c(%ebp),%edx               
  10a061:	8b 44 d7 04          	mov    0x4(%edi,%edx,8),%eax          
  10a065:	85 c0                	test   %eax,%eax                      
  10a067:	74 2f                	je     10a098 <writev+0xd8>           <== NEVER TAKEN
      continue;                                                       
                                                                      
    bytes = (*iop->pathinfo.handlers->write_h)(                       
  10a069:	52                   	push   %edx                           
  10a06a:	8b 56 20             	mov    0x20(%esi),%edx                
  10a06d:	50                   	push   %eax                           
  10a06e:	8b 45 e4             	mov    -0x1c(%ebp),%eax               
  10a071:	ff 34 c7             	pushl  (%edi,%eax,8)                  
  10a074:	56                   	push   %esi                           
  10a075:	ff 52 0c             	call   *0xc(%edx)                     
      iop,                                                            
      iov[v].iov_base,                                                
      iov[v].iov_len                                                  
    );                                                                
                                                                      
    if ( bytes < 0 )                                                  
  10a078:	83 c4 10             	add    $0x10,%esp                     
  10a07b:	83 f8 00             	cmp    $0x0,%eax                      
  10a07e:	7c 25                	jl     10a0a5 <writev+0xe5>           <== NEVER TAKEN
      return -1;                                                      
                                                                      
    if ( bytes > 0 ) {                                                
  10a080:	74 0d                	je     10a08f <writev+0xcf>           <== NEVER TAKEN
      iop->offset += bytes;                                           
  10a082:	89 c1                	mov    %eax,%ecx                      
  10a084:	c1 f9 1f             	sar    $0x1f,%ecx                     
  10a087:	01 46 0c             	add    %eax,0xc(%esi)                 
  10a08a:	11 4e 10             	adc    %ecx,0x10(%esi)                
      total       += bytes;                                           
  10a08d:	01 c3                	add    %eax,%ebx                      
    }                                                                 
                                                                      
    if (bytes != iov[ v ].iov_len)                                    
  10a08f:	8b 55 e4             	mov    -0x1c(%ebp),%edx               
  10a092:	3b 44 d7 04          	cmp    0x4(%edi,%edx,8),%eax          
  10a096:	75 10                	jne    10a0a8 <writev+0xe8>           <== NEVER TAKEN
  }                                                                   
                                                                      
  /*                                                                  
   *  Now process the writev().                                       
   */                                                                 
  for ( total=0, v=0 ; v < iovcnt ; v++ ) {                           
  10a098:	ff 45 e4             	incl   -0x1c(%ebp)                    
  10a09b:	8b 45 10             	mov    0x10(%ebp),%eax                
  10a09e:	39 45 e4             	cmp    %eax,-0x1c(%ebp)               
  10a0a1:	7c bb                	jl     10a05e <writev+0x9e>           
  10a0a3:	eb 03                	jmp    10a0a8 <writev+0xe8>           
      iov[v].iov_base,                                                
      iov[v].iov_len                                                  
    );                                                                
                                                                      
    if ( bytes < 0 )                                                  
      return -1;                                                      
  10a0a5:	83 cb ff             	or     $0xffffffff,%ebx               
    if (bytes != iov[ v ].iov_len)                                    
      break;                                                          
  }                                                                   
                                                                      
  return total;                                                       
}                                                                     
  10a0a8:	89 d8                	mov    %ebx,%eax                      
  10a0aa:	8d 65 f4             	lea    -0xc(%ebp),%esp                
  10a0ad:	5b                   	pop    %ebx                           
  10a0ae:	5e                   	pop    %esi                           
  10a0af:	5f                   	pop    %edi                           
  10a0b0:	c9                   	leave                                 
  10a0b1:	c3                   	ret