RTEMS 4.10.2Annotated Report
Tue Dec 13 15:55:53 2011
0010e168 <IMFS_Set_handlers>:
#define MAXSYMLINK 5
int IMFS_Set_handlers(
rtems_filesystem_location_info_t *loc
)
{
10e168: 55 push %ebp
10e169: 89 e5 mov %esp,%ebp
10e16b: 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;
10e16e: 8b 50 10 mov 0x10(%eax),%edx
10e171: 8b 52 34 mov 0x34(%edx),%edx
switch( node->type ) {
10e174: 8b 08 mov (%eax),%ecx
10e176: 8b 49 4c mov 0x4c(%ecx),%ecx
10e179: 49 dec %ecx
10e17a: 83 f9 06 cmp $0x6,%ecx
10e17d: 77 2d ja 10e1ac <IMFS_Set_handlers+0x44><== NEVER TAKEN
10e17f: ff 24 8d 4c 05 12 00 jmp *0x12054c(,%ecx,4)
case IMFS_DIRECTORY:
loc->handlers = fs_info->directory_handlers;
10e186: 8b 52 0c mov 0xc(%edx),%edx
10e189: eb 15 jmp 10e1a0 <IMFS_Set_handlers+0x38>
break;
case IMFS_DEVICE:
loc->handlers = &IMFS_device_handlers;
10e18b: c7 40 08 84 06 12 00 movl $0x120684,0x8(%eax)
break;
10e192: eb 18 jmp 10e1ac <IMFS_Set_handlers+0x44>
case IMFS_SYM_LINK:
case IMFS_HARD_LINK:
loc->handlers = &IMFS_link_handlers;
10e194: c7 40 08 f4 06 12 00 movl $0x1206f4,0x8(%eax)
break;
10e19b: eb 0f jmp 10e1ac <IMFS_Set_handlers+0x44>
case IMFS_LINEAR_FILE:
loc->handlers = fs_info->memfile_handlers;
10e19d: 8b 52 08 mov 0x8(%edx),%edx
10e1a0: 89 50 08 mov %edx,0x8(%eax)
break;
10e1a3: eb 07 jmp 10e1ac <IMFS_Set_handlers+0x44>
case IMFS_MEMORY_FILE:
loc->handlers = fs_info->memfile_handlers;
break;
case IMFS_FIFO:
loc->handlers = &IMFS_fifo_handlers;
10e1a5: c7 40 08 c8 05 12 00 movl $0x1205c8,0x8(%eax)
break;
}
return 0;
}
10e1ac: 31 c0 xor %eax,%eax
10e1ae: c9 leave
10e1af: c3 ret
0010dfc4 <IMFS_allocate_node>:
IMFS_jnode_t *IMFS_allocate_node(
IMFS_jnode_types_t type,
const char *name,
mode_t mode
)
{
10dfc4: 55 push %ebp
10dfc5: 89 e5 mov %esp,%ebp
10dfc7: 53 push %ebx
10dfc8: 83 ec 1c sub $0x1c,%esp
struct timeval tv;
/*
* Allocate an IMFS jnode
*/
node = calloc( 1, sizeof( IMFS_jnode_t ) );
10dfcb: 6a 64 push $0x64
10dfcd: 6a 01 push $0x1
10dfcf: e8 e8 94 ff ff call 1074bc <calloc>
10dfd4: 89 c3 mov %eax,%ebx
if ( !node )
10dfd6: 83 c4 10 add $0x10,%esp
10dfd9: 85 c0 test %eax,%eax
10dfdb: 74 4f je 10e02c <IMFS_allocate_node+0x68><== NEVER TAKEN
return NULL;
/*
* Fill in the basic information
*/
node->st_nlink = 1;
10dfdd: 66 c7 40 34 01 00 movw $0x1,0x34(%eax)
node->type = type;
10dfe3: 8b 45 08 mov 0x8(%ebp),%eax
10dfe6: 89 43 4c mov %eax,0x4c(%ebx)
strncpy( node->name, name, IMFS_NAME_MAX );
10dfe9: 51 push %ecx
10dfea: 6a 20 push $0x20
10dfec: ff 75 0c pushl 0xc(%ebp)
10dfef: 8d 43 0c lea 0xc(%ebx),%eax
10dff2: 50 push %eax
10dff3: e8 30 57 00 00 call 113728 <strncpy>
/*
* Fill in the mode and permission information for the jnode structure.
*/
node->st_mode = mode;
10dff8: 8b 45 10 mov 0x10(%ebp),%eax
10dffb: 89 43 30 mov %eax,0x30(%ebx)
#if defined(RTEMS_POSIX_API)
node->st_uid = geteuid();
10dffe: e8 bd 0e 00 00 call 10eec0 <geteuid>
10e003: 66 89 43 3c mov %ax,0x3c(%ebx)
node->st_gid = getegid();
10e007: e8 a4 0e 00 00 call 10eeb0 <getegid>
10e00c: 66 89 43 3e mov %ax,0x3e(%ebx)
#endif
/*
* Now set all the times.
*/
gettimeofday( &tv, 0 );
10e010: 58 pop %eax
10e011: 5a pop %edx
10e012: 6a 00 push $0x0
10e014: 8d 45 f0 lea -0x10(%ebp),%eax
10e017: 50 push %eax
10e018: e8 f7 96 ff ff call 107714 <gettimeofday>
node->stat_atime = (time_t) tv.tv_sec;
10e01d: 8b 45 f0 mov -0x10(%ebp),%eax
10e020: 89 43 40 mov %eax,0x40(%ebx)
node->stat_mtime = (time_t) tv.tv_sec;
10e023: 89 43 44 mov %eax,0x44(%ebx)
node->stat_ctime = (time_t) tv.tv_sec;
10e026: 89 43 48 mov %eax,0x48(%ebx)
return node;
10e029: 83 c4 10 add $0x10,%esp
}
10e02c: 89 d8 mov %ebx,%eax
10e02e: 8b 5d fc mov -0x4(%ebp),%ebx
10e031: c9 leave
10e032: c3 ret
0010df68 <IMFS_chown>:
int IMFS_chown(
rtems_filesystem_location_info_t *pathloc, /* IN */
uid_t owner, /* IN */
gid_t group /* IN */
)
{
10df68: 55 push %ebp
10df69: 89 e5 mov %esp,%ebp
10df6b: 57 push %edi
10df6c: 56 push %esi
10df6d: 53 push %ebx
10df6e: 83 ec 1c sub $0x1c,%esp
10df71: 8b 7d 0c mov 0xc(%ebp),%edi
10df74: 8b 75 10 mov 0x10(%ebp),%esi
IMFS_jnode_t *jnode;
#if defined(RTEMS_POSIX_API)
uid_t st_uid;
#endif
jnode = (IMFS_jnode_t *) pathloc->node_access;
10df77: 8b 45 08 mov 0x8(%ebp),%eax
10df7a: 8b 18 mov (%eax),%ebx
/*
* Verify I am the owner of the node or the super user.
*/
#if defined(RTEMS_POSIX_API)
st_uid = geteuid();
10df7c: e8 3f 0f 00 00 call 10eec0 <geteuid>
if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) )
10df81: 66 85 c0 test %ax,%ax
10df84: 74 16 je 10df9c <IMFS_chown+0x34> <== ALWAYS TAKEN
10df86: 66 3b 43 3c cmp 0x3c(%ebx),%ax <== NOT EXECUTED
10df8a: 74 10 je 10df9c <IMFS_chown+0x34> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EPERM );
10df8c: e8 83 4a 00 00 call 112a14 <__errno> <== NOT EXECUTED
10df91: c7 00 01 00 00 00 movl $0x1,(%eax) <== NOT EXECUTED
10df97: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
10df9a: eb 20 jmp 10dfbc <IMFS_chown+0x54> <== NOT EXECUTED
#endif
jnode->st_uid = owner;
10df9c: 66 89 7b 3c mov %di,0x3c(%ebx)
jnode->st_gid = group;
10dfa0: 66 89 73 3e mov %si,0x3e(%ebx)
IMFS_update_ctime( jnode );
10dfa4: 50 push %eax
10dfa5: 50 push %eax
10dfa6: 6a 00 push $0x0
10dfa8: 8d 45 e0 lea -0x20(%ebp),%eax
10dfab: 50 push %eax
10dfac: e8 63 97 ff ff call 107714 <gettimeofday>
10dfb1: 8b 45 e0 mov -0x20(%ebp),%eax
10dfb4: 89 43 48 mov %eax,0x48(%ebx)
10dfb7: 31 c0 xor %eax,%eax
return 0;
10dfb9: 83 c4 10 add $0x10,%esp
}
10dfbc: 8d 65 f4 lea -0xc(%ebp),%esp
10dfbf: 5b pop %ebx
10dfc0: 5e pop %esi
10dfc1: 5f pop %edi
10dfc2: c9 leave
10dfc3: c3 ret
0010e066 <IMFS_create_node>:
IMFS_jnode_types_t type,
const char *name,
mode_t mode,
const IMFS_types_union *info
)
{
10e066: 55 push %ebp
10e067: 89 e5 mov %esp,%ebp
10e069: 57 push %edi
10e06a: 56 push %esi
10e06b: 53 push %ebx
10e06c: 83 ec 1c sub $0x1c,%esp
10e06f: 8b 75 08 mov 0x8(%ebp),%esi
10e072: 8b 7d 0c mov 0xc(%ebp),%edi
10e075: 8b 5d 18 mov 0x18(%ebp),%ebx
IMFS_fs_info_t *fs_info;
/*
* MUST have a parent node to call this routine.
*/
if ( parent_loc == NULL )
10e078: 31 c0 xor %eax,%eax
10e07a: 85 f6 test %esi,%esi
10e07c: 0f 84 dc 00 00 00 je 10e15e <IMFS_create_node+0xf8> <== NEVER TAKEN
return NULL;
/*
* Allocate filesystem node and fill in basic information
*/
node = IMFS_allocate_node( type, name, mode & ~rtems_filesystem_umask );
10e082: 50 push %eax
10e083: a1 54 3f 12 00 mov 0x123f54,%eax
10e088: 8b 40 2c mov 0x2c(%eax),%eax
10e08b: f7 d0 not %eax
10e08d: 23 45 14 and 0x14(%ebp),%eax
10e090: 50 push %eax
10e091: ff 75 10 pushl 0x10(%ebp)
10e094: 57 push %edi
10e095: e8 2a ff ff ff call 10dfc4 <IMFS_allocate_node>
if ( !node )
10e09a: 83 c4 10 add $0x10,%esp
10e09d: 85 c0 test %eax,%eax
10e09f: 0f 84 b9 00 00 00 je 10e15e <IMFS_create_node+0xf8> <== NEVER TAKEN
return NULL;
/*
* Set the type specific information
*/
switch (type) {
10e0a5: 4f dec %edi
10e0a6: 83 ff 06 cmp $0x6,%edi
10e0a9: 77 73 ja 10e11e <IMFS_create_node+0xb8> <== NEVER TAKEN
10e0ab: ff 24 bd 1c 05 12 00 jmp *0x12051c(,%edi,4)
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
10e0b2: 8d 50 54 lea 0x54(%eax),%edx
10e0b5: 89 50 50 mov %edx,0x50(%eax)
the_chain->permanent_null = NULL;
10e0b8: c7 40 54 00 00 00 00 movl $0x0,0x54(%eax)
the_chain->last = _Chain_Head(the_chain);
10e0bf: 8d 50 50 lea 0x50(%eax),%edx
10e0c2: 89 50 58 mov %edx,0x58(%eax)
10e0c5: eb 6d jmp 10e134 <IMFS_create_node+0xce>
case IMFS_HARD_LINK:
node->info.hard_link.link_node = info->hard_link.link_node;
break;
case IMFS_SYM_LINK:
node->info.sym_link.name = info->sym_link.name;
10e0c7: 8b 13 mov (%ebx),%edx
10e0c9: 89 50 50 mov %edx,0x50(%eax)
break;
10e0cc: eb 66 jmp 10e134 <IMFS_create_node+0xce>
case IMFS_DEVICE:
node->info.device.major = info->device.major;
10e0ce: 8b 13 mov (%ebx),%edx
10e0d0: 89 50 50 mov %edx,0x50(%eax)
node->info.device.minor = info->device.minor;
10e0d3: 8b 53 04 mov 0x4(%ebx),%edx
10e0d6: 89 50 54 mov %edx,0x54(%eax)
break;
10e0d9: eb 59 jmp 10e134 <IMFS_create_node+0xce>
case IMFS_LINEAR_FILE:
node->info.linearfile.size = 0;
10e0db: c7 40 50 00 00 00 00 movl $0x0,0x50(%eax) <== NOT EXECUTED
10e0e2: c7 40 54 00 00 00 00 movl $0x0,0x54(%eax) <== NOT EXECUTED
node->info.linearfile.direct = 0;
10e0e9: c7 40 58 00 00 00 00 movl $0x0,0x58(%eax) <== NOT EXECUTED
case IMFS_MEMORY_FILE:
node->info.file.size = 0;
10e0f0: c7 40 50 00 00 00 00 movl $0x0,0x50(%eax)
10e0f7: c7 40 54 00 00 00 00 movl $0x0,0x54(%eax)
node->info.file.indirect = 0;
10e0fe: c7 40 58 00 00 00 00 movl $0x0,0x58(%eax)
node->info.file.doubly_indirect = 0;
10e105: c7 40 5c 00 00 00 00 movl $0x0,0x5c(%eax)
node->info.file.triply_indirect = 0;
10e10c: c7 40 60 00 00 00 00 movl $0x0,0x60(%eax)
break;
10e113: eb 1f jmp 10e134 <IMFS_create_node+0xce>
case IMFS_FIFO:
node->info.fifo.pipe = NULL;
10e115: c7 40 50 00 00 00 00 movl $0x0,0x50(%eax)
break;
10e11c: eb 16 jmp 10e134 <IMFS_create_node+0xce>
default:
assert(0);
10e11e: 68 d7 f8 11 00 push $0x11f8d7 <== NOT EXECUTED
10e123: 68 38 05 12 00 push $0x120538 <== NOT EXECUTED
10e128: 6a 5c push $0x5c <== NOT EXECUTED
10e12a: 68 cc 04 12 00 push $0x1204cc <== NOT EXECUTED
10e12f: e8 6c 92 ff ff call 1073a0 <__assert_func> <== NOT EXECUTED
}
/*
* This node MUST have a parent, so put it in that directory list.
*/
parent = parent_loc->node_access;
10e134: 8b 16 mov (%esi),%edx
fs_info = parent_loc->mt_entry->fs_info;
10e136: 8b 4e 10 mov 0x10(%esi),%ecx
10e139: 8b 59 34 mov 0x34(%ecx),%ebx
node->Parent = parent;
10e13c: 89 50 08 mov %edx,0x8(%eax)
node->st_ino = ++fs_info->ino_count;
10e13f: 8b 4b 04 mov 0x4(%ebx),%ecx
10e142: 41 inc %ecx
10e143: 89 4b 04 mov %ecx,0x4(%ebx)
10e146: 89 48 38 mov %ecx,0x38(%eax)
10e149: 53 push %ebx
10e14a: 53 push %ebx
10e14b: 50 push %eax
10e14c: 83 c2 50 add $0x50,%edx
10e14f: 52 push %edx
10e150: 89 45 e4 mov %eax,-0x1c(%ebp)
10e153: e8 dc cc ff ff call 10ae34 <_Chain_Append>
rtems_chain_append( &parent->info.directory.Entries, &node->Node );
return node;
10e158: 83 c4 10 add $0x10,%esp
10e15b: 8b 45 e4 mov -0x1c(%ebp),%eax
}
10e15e: 8d 65 f4 lea -0xc(%ebp),%esp
10e161: 5b pop %ebx
10e162: 5e pop %esi
10e163: 5f pop %edi
10e164: c9 leave
10e165: c3 ret
0010e033 <IMFS_create_root_node>:
IMFS_jnode_t *IMFS_create_root_node(void)
{
10e033: 55 push %ebp
10e034: 89 e5 mov %esp,%ebp
10e036: 83 ec 0c sub $0xc,%esp
IMFS_jnode_t *node;
/*
* Allocate filesystem node and fill in basic information
*/
node = IMFS_allocate_node( IMFS_DIRECTORY, "", (S_IFDIR | 0755) );
10e039: 68 ed 41 00 00 push $0x41ed
10e03e: 68 85 01 12 00 push $0x120185
10e043: 6a 01 push $0x1
10e045: e8 7a ff ff ff call 10dfc4 <IMFS_allocate_node>
if ( !node )
10e04a: 83 c4 10 add $0x10,%esp
10e04d: 85 c0 test %eax,%eax
10e04f: 74 13 je 10e064 <IMFS_create_root_node+0x31><== NEVER TAKEN
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
10e051: 8d 50 54 lea 0x54(%eax),%edx
10e054: 89 50 50 mov %edx,0x50(%eax)
the_chain->permanent_null = NULL;
10e057: c7 40 54 00 00 00 00 movl $0x0,0x54(%eax)
the_chain->last = _Chain_Head(the_chain);
10e05e: 8d 50 50 lea 0x50(%eax),%edx
10e061: 89 50 58 mov %edx,0x58(%eax)
* NOTE: Root node is always a directory.
*/
rtems_chain_initialize_empty(&node->info.directory.Entries);
return node;
}
10e064: c9 leave
10e065: c3 ret
00108e4b <IMFS_dump_directory>:
void IMFS_dump_directory(
IMFS_jnode_t *the_directory,
int level
)
{
108e4b: 55 push %ebp
108e4c: 89 e5 mov %esp,%ebp
108e4e: 57 push %edi
108e4f: 56 push %esi
108e50: 53 push %ebx
108e51: 83 ec 1c sub $0x1c,%esp
108e54: 8b 45 08 mov 0x8(%ebp),%eax
108e57: 8b 75 0c mov 0xc(%ebp),%esi
rtems_chain_node *the_node;
rtems_chain_control *the_chain;
IMFS_jnode_t *the_jnode;
int i;
assert( the_directory );
108e5a: 85 c0 test %eax,%eax
108e5c: 75 11 jne 108e6f <IMFS_dump_directory+0x24><== ALWAYS TAKEN
108e5e: 68 39 52 12 00 push $0x125239 <== NOT EXECUTED
108e63: 68 24 53 12 00 push $0x125324 <== NOT EXECUTED
108e68: 68 84 00 00 00 push $0x84 <== NOT EXECUTED
108e6d: eb 13 jmp 108e82 <IMFS_dump_directory+0x37><== NOT EXECUTED
assert( level >= 0 );
108e6f: 85 f6 test %esi,%esi
108e71: 79 19 jns 108e8c <IMFS_dump_directory+0x41><== ALWAYS TAKEN
108e73: 68 47 52 12 00 push $0x125247 <== NOT EXECUTED
108e78: 68 24 53 12 00 push $0x125324 <== NOT EXECUTED
108e7d: 68 86 00 00 00 push $0x86 <== NOT EXECUTED
108e82: 68 86 51 12 00 push $0x125186 <== NOT EXECUTED
108e87: e8 2c 07 00 00 call 1095b8 <__assert_func> <== NOT EXECUTED
assert( the_directory->type == IMFS_DIRECTORY );
108e8c: 83 78 4c 01 cmpl $0x1,0x4c(%eax)
108e90: 74 11 je 108ea3 <IMFS_dump_directory+0x58><== ALWAYS TAKEN
108e92: 68 52 52 12 00 push $0x125252 <== NOT EXECUTED
108e97: 68 24 53 12 00 push $0x125324 <== NOT EXECUTED
108e9c: 68 88 00 00 00 push $0x88 <== NOT EXECUTED
108ea1: eb df jmp 108e82 <IMFS_dump_directory+0x37><== NOT EXECUTED
the_chain = &the_directory->info.directory.Entries;
for ( the_node = the_chain->first;
108ea3: 8b 58 50 mov 0x50(%eax),%ebx
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
108ea6: 83 c0 54 add $0x54,%eax
108ea9: 89 45 e4 mov %eax,-0x1c(%ebp)
for ( i=0 ; i<=level ; i++ )
fprintf(stdout, "...." );
IMFS_print_jnode( the_jnode );
if ( the_jnode->type == IMFS_DIRECTORY )
IMFS_dump_directory( the_jnode, level + 1 );
108eac: 8d 46 01 lea 0x1(%esi),%eax
108eaf: 89 45 e0 mov %eax,-0x20(%ebp)
assert( the_directory->type == IMFS_DIRECTORY );
the_chain = &the_directory->info.directory.Entries;
for ( the_node = the_chain->first;
108eb2: eb 40 jmp 108ef4 <IMFS_dump_directory+0xa9>
!rtems_chain_is_tail( the_chain, the_node );
the_node = the_node->next ) {
the_jnode = (IMFS_jnode_t *) the_node;
108eb4: 31 ff xor %edi,%edi
for ( i=0 ; i<=level ; i++ )
fprintf(stdout, "...." );
108eb6: 51 push %ecx
108eb7: 51 push %ecx
108eb8: a1 e0 a4 12 00 mov 0x12a4e0,%eax
108ebd: ff 70 08 pushl 0x8(%eax)
108ec0: 68 78 52 12 00 push $0x125278
108ec5: e8 ae d4 00 00 call 116378 <fputs>
!rtems_chain_is_tail( the_chain, the_node );
the_node = the_node->next ) {
the_jnode = (IMFS_jnode_t *) the_node;
for ( i=0 ; i<=level ; i++ )
108eca: 47 inc %edi
108ecb: 83 c4 10 add $0x10,%esp
108ece: 39 f7 cmp %esi,%edi
108ed0: 7e e4 jle 108eb6 <IMFS_dump_directory+0x6b>
fprintf(stdout, "...." );
IMFS_print_jnode( the_jnode );
108ed2: 83 ec 0c sub $0xc,%esp
108ed5: 53 push %ebx
108ed6: e8 53 fe ff ff call 108d2e <IMFS_print_jnode>
if ( the_jnode->type == IMFS_DIRECTORY )
108edb: 83 c4 10 add $0x10,%esp
108ede: 83 7b 4c 01 cmpl $0x1,0x4c(%ebx)
108ee2: 75 0e jne 108ef2 <IMFS_dump_directory+0xa7>
IMFS_dump_directory( the_jnode, level + 1 );
108ee4: 52 push %edx
108ee5: 52 push %edx
108ee6: ff 75 e0 pushl -0x20(%ebp)
108ee9: 53 push %ebx
108eea: e8 5c ff ff ff call 108e4b <IMFS_dump_directory>
108eef: 83 c4 10 add $0x10,%esp
the_chain = &the_directory->info.directory.Entries;
for ( the_node = the_chain->first;
!rtems_chain_is_tail( the_chain, the_node );
the_node = the_node->next ) {
108ef2: 8b 1b mov (%ebx),%ebx
assert( the_directory->type == IMFS_DIRECTORY );
the_chain = &the_directory->info.directory.Entries;
for ( the_node = the_chain->first;
108ef4: 3b 5d e4 cmp -0x1c(%ebp),%ebx
108ef7: 75 bb jne 108eb4 <IMFS_dump_directory+0x69>
fprintf(stdout, "...." );
IMFS_print_jnode( the_jnode );
if ( the_jnode->type == IMFS_DIRECTORY )
IMFS_dump_directory( the_jnode, level + 1 );
}
}
108ef9: 8d 65 f4 lea -0xc(%ebp),%esp
108efc: 5b pop %ebx
108efd: 5e pop %esi
108efe: 5f pop %edi
108eff: c9 leave
108f00: c3 ret
0010e2ff <IMFS_eval_path>:
const char *pathname, /* IN */
size_t pathnamelen, /* IN */
int flags, /* IN */
rtems_filesystem_location_info_t *pathloc /* IN/OUT */
)
{
10e2ff: 55 push %ebp
10e300: 89 e5 mov %esp,%ebp
10e302: 57 push %edi
10e303: 56 push %esi
10e304: 53 push %ebx
10e305: 83 ec 4c sub $0x4c,%esp
10e308: 8b 5d 14 mov 0x14(%ebp),%ebx
IMFS_token_types type = IMFS_CURRENT_DIR;
char token[ IMFS_NAME_MAX + 1 ];
IMFS_jnode_t *node;
int result;
if ( !rtems_libio_is_valid_perms( flags ) ) {
10e30b: f7 45 10 f8 ff ff ff testl $0xfffffff8,0x10(%ebp)
10e312: 74 19 je 10e32d <IMFS_eval_path+0x2e> <== ALWAYS TAKEN
assert( 0 );
10e314: 68 d7 f8 11 00 push $0x11f8d7 <== NOT EXECUTED
10e319: 68 68 05 12 00 push $0x120568 <== NOT EXECUTED
10e31e: 68 08 02 00 00 push $0x208 <== NOT EXECUTED
10e323: 68 77 05 12 00 push $0x120577 <== NOT EXECUTED
10e328: e8 73 90 ff ff call 1073a0 <__assert_func> <== NOT EXECUTED
/*
* This was filled in by the caller and is valid in the
* mount table.
*/
node = pathloc->node_access;
10e32d: 8b 3b mov (%ebx),%edi
10e32f: c7 45 b4 00 00 00 00 movl $0x0,-0x4c(%ebp)
10e336: be 01 00 00 00 mov $0x1,%esi
/*
* Evaluate all tokens until we are done or an error occurs.
*/
while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) {
10e33b: e9 98 01 00 00 jmp 10e4d8 <IMFS_eval_path+0x1d9>
type = IMFS_get_token( &pathname[i], pathnamelen, token, &len );
10e340: 8d 45 e4 lea -0x1c(%ebp),%eax
10e343: 50 push %eax
10e344: 8d 4d c3 lea -0x3d(%ebp),%ecx
10e347: 51 push %ecx
10e348: ff 75 0c pushl 0xc(%ebp)
10e34b: 8b 45 08 mov 0x8(%ebp),%eax
10e34e: 03 45 b4 add -0x4c(%ebp),%eax
10e351: 50 push %eax
10e352: e8 15 08 00 00 call 10eb6c <IMFS_get_token>
10e357: 89 c6 mov %eax,%esi
pathnamelen -= len;
10e359: 8b 55 e4 mov -0x1c(%ebp),%edx
i += len;
if ( !pathloc->node_access )
10e35c: 83 c4 10 add $0x10,%esp
10e35f: 83 3b 00 cmpl $0x0,(%ebx)
10e362: 0f 84 d2 00 00 00 je 10e43a <IMFS_eval_path+0x13b> <== NEVER TAKEN
rtems_set_errno_and_return_minus_one( ENOENT );
/*
* I cannot move out of this directory without execute permission.
*/
if ( type != IMFS_NO_MORE_PATH )
10e368: 85 c0 test %eax,%eax
10e36a: 74 21 je 10e38d <IMFS_eval_path+0x8e>
if ( node->type == IMFS_DIRECTORY )
10e36c: 83 7f 4c 01 cmpl $0x1,0x4c(%edi)
10e370: 75 1b jne 10e38d <IMFS_eval_path+0x8e>
if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) )
10e372: 57 push %edi
10e373: 57 push %edi
10e374: 6a 01 push $0x1
10e376: 53 push %ebx
10e377: 89 55 b0 mov %edx,-0x50(%ebp)
10e37a: e8 31 fe ff ff call 10e1b0 <IMFS_evaluate_permission>
10e37f: 83 c4 10 add $0x10,%esp
10e382: 85 c0 test %eax,%eax
10e384: 8b 55 b0 mov -0x50(%ebp),%edx
10e387: 0f 84 b2 01 00 00 je 10e53f <IMFS_eval_path+0x240>
*/
while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) {
type = IMFS_get_token( &pathname[i], pathnamelen, token, &len );
pathnamelen -= len;
10e38d: 29 55 0c sub %edx,0xc(%ebp)
i += len;
10e390: 01 55 b4 add %edx,-0x4c(%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;
10e393: 8b 3b mov (%ebx),%edi
switch( type ) {
10e395: 83 fe 03 cmp $0x3,%esi
10e398: 74 39 je 10e3d3 <IMFS_eval_path+0xd4>
10e39a: 83 fe 04 cmp $0x4,%esi
10e39d: 0f 84 28 01 00 00 je 10e4cb <IMFS_eval_path+0x1cc>
10e3a3: 83 fe 02 cmp $0x2,%esi
10e3a6: 0f 85 2c 01 00 00 jne 10e4d8 <IMFS_eval_path+0x1d9>
case IMFS_UP_DIR:
/*
* Am I at the root of all filesystems? (chroot'ed?)
*/
if ( pathloc->node_access == rtems_filesystem_root.node_access )
10e3ac: a1 54 3f 12 00 mov 0x123f54,%eax
10e3b1: 3b 78 18 cmp 0x18(%eax),%edi
10e3b4: 74 8a je 10e340 <IMFS_eval_path+0x41>
/*
* Am I at the root of this mounted filesystem?
*/
if (pathloc->node_access ==
pathloc->mt_entry->mt_fs_root.node_access) {
10e3b6: 8b 73 10 mov 0x10(%ebx),%esi
/*
* Am I at the root of this mounted filesystem?
*/
if (pathloc->node_access ==
10e3b9: 3b 7e 1c cmp 0x1c(%esi),%edi
10e3bc: 75 08 jne 10e3c6 <IMFS_eval_path+0xc7>
*/
if ( pathloc->node_access == rtems_filesystem_root.node_access ) {
break; /* Throw out the .. in this case */
} else {
*pathloc = pathloc->mt_entry->mt_point_node;
10e3be: 83 c6 08 add $0x8,%esi
10e3c1: e9 2f 01 00 00 jmp 10e4f5 <IMFS_eval_path+0x1f6>
return (*pathloc->ops->evalpath_h)(&(pathname[i-len]),
pathnamelen+len,
flags,pathloc);
}
} else {
if ( !node->Parent )
10e3c6: 8b 7f 08 mov 0x8(%edi),%edi
10e3c9: 85 ff test %edi,%edi
10e3cb: 0f 85 f3 00 00 00 jne 10e4c4 <IMFS_eval_path+0x1c5>
10e3d1: eb 67 jmp 10e43a <IMFS_eval_path+0x13b>
case IMFS_NAME:
/*
* If we are at a link follow it.
*/
if ( node->type == IMFS_HARD_LINK ) {
10e3d3: 8b 47 4c mov 0x4c(%edi),%eax
10e3d6: 83 f8 03 cmp $0x3,%eax
10e3d9: 75 15 jne 10e3f0 <IMFS_eval_path+0xf1>
IMFS_evaluate_hard_link( pathloc, 0 );
10e3db: 51 push %ecx
10e3dc: 51 push %ecx
10e3dd: 6a 00 push $0x0
10e3df: 53 push %ebx
10e3e0: e8 31 fe ff ff call 10e216 <IMFS_evaluate_hard_link>
node = pathloc->node_access;
10e3e5: 8b 3b mov (%ebx),%edi
if ( !node )
10e3e7: 83 c4 10 add $0x10,%esp
10e3ea: 85 ff test %edi,%edi
10e3ec: 75 21 jne 10e40f <IMFS_eval_path+0x110> <== ALWAYS TAKEN
10e3ee: eb 25 jmp 10e415 <IMFS_eval_path+0x116> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTDIR );
} else if ( node->type == IMFS_SYM_LINK ) {
10e3f0: 83 f8 04 cmp $0x4,%eax
10e3f3: 75 1a jne 10e40f <IMFS_eval_path+0x110>
result = IMFS_evaluate_sym_link( pathloc, 0 );
10e3f5: 52 push %edx
10e3f6: 52 push %edx
10e3f7: 6a 00 push $0x0
10e3f9: 53 push %ebx
10e3fa: e8 6d fe ff ff call 10e26c <IMFS_evaluate_sym_link>
10e3ff: 89 c6 mov %eax,%esi
node = pathloc->node_access;
10e401: 8b 3b mov (%ebx),%edi
if ( result == -1 )
10e403: 83 c4 10 add $0x10,%esp
10e406: 83 f8 ff cmp $0xffffffff,%eax
10e409: 0f 84 3e 01 00 00 je 10e54d <IMFS_eval_path+0x24e> <== NEVER TAKEN
/*
* Only a directory can be decended into.
*/
if ( node->type != IMFS_DIRECTORY )
10e40f: 83 7f 4c 01 cmpl $0x1,0x4c(%edi)
10e413: 74 10 je 10e425 <IMFS_eval_path+0x126>
rtems_set_errno_and_return_minus_one( ENOTDIR );
10e415: e8 fa 45 00 00 call 112a14 <__errno>
10e41a: c7 00 14 00 00 00 movl $0x14,(%eax)
10e420: e9 25 01 00 00 jmp 10e54a <IMFS_eval_path+0x24b>
/*
* Find the token name in the current node.
*/
node = IMFS_find_match_in_dir( node, token );
10e425: 50 push %eax
10e426: 50 push %eax
10e427: 8d 45 c3 lea -0x3d(%ebp),%eax
10e42a: 50 push %eax
10e42b: 57 push %edi
10e42c: e8 af 06 00 00 call 10eae0 <IMFS_find_match_in_dir>
10e431: 89 c7 mov %eax,%edi
if ( !node )
10e433: 83 c4 10 add $0x10,%esp
10e436: 85 c0 test %eax,%eax
10e438: 75 10 jne 10e44a <IMFS_eval_path+0x14b>
rtems_set_errno_and_return_minus_one( ENOENT );
10e43a: e8 d5 45 00 00 call 112a14 <__errno>
10e43f: c7 00 02 00 00 00 movl $0x2,(%eax)
10e445: e9 00 01 00 00 jmp 10e54a <IMFS_eval_path+0x24b>
* file system and not the IMFS. For example the IMFS length is
* limited. If the token is a parent directory move back up otherwise
* set loc to the new fs root node and let them finish evaluating the
* path.
*/
if (( node->type == IMFS_DIRECTORY ) && ( node->info.directory.mt_fs != NULL )) {
10e44a: 83 78 4c 01 cmpl $0x1,0x4c(%eax)
10e44e: 75 74 jne 10e4c4 <IMFS_eval_path+0x1c5>
10e450: 83 78 5c 00 cmpl $0x0,0x5c(%eax)
10e454: 74 6e je 10e4c4 <IMFS_eval_path+0x1c5>
10e456: 8b 75 08 mov 0x8(%ebp),%esi
10e459: 03 75 b4 add -0x4c(%ebp),%esi
10e45c: eb 06 jmp 10e464 <IMFS_eval_path+0x165>
size_t *len, /* IN/OUT */
int *index /* IN/OUT */
)
{
while ( IMFS_is_separator( path[*index] ) && path[*index] && *len ) {
++(*index);
10e45e: ff 45 b4 incl -0x4c(%ebp)
--(*len);
10e461: ff 4d 0c decl 0xc(%ebp)
const char *path, /* IN */
size_t *len, /* IN/OUT */
int *index /* IN/OUT */
)
{
while ( IMFS_is_separator( path[*index] ) && path[*index] && *len ) {
10e464: 83 ec 0c sub $0xc,%esp
10e467: 0f be 06 movsbl (%esi),%eax
10e46a: 50 push %eax
10e46b: 89 75 b0 mov %esi,-0x50(%ebp)
10e46e: e8 95 9f ff ff call 108408 <rtems_filesystem_is_separator>
10e473: 83 c4 10 add $0x10,%esp
10e476: 85 c0 test %eax,%eax
10e478: 8b 55 b0 mov -0x50(%ebp),%edx
10e47b: 74 0c je 10e489 <IMFS_eval_path+0x18a>
10e47d: 80 3e 00 cmpb $0x0,(%esi)
10e480: 74 07 je 10e489 <IMFS_eval_path+0x18a>
10e482: 46 inc %esi
10e483: 83 7d 0c 00 cmpl $0x0,0xc(%ebp)
10e487: 75 d5 jne 10e45e <IMFS_eval_path+0x15f> <== ALWAYS TAKEN
* set loc to the new fs root node and let them finish evaluating the
* path.
*/
if (( node->type == IMFS_DIRECTORY ) && ( node->info.directory.mt_fs != NULL )) {
IMFS_skip_separator( pathname, &pathnamelen, &i);
if ((pathname[i] != '.') || (pathname[i + 1] != '.')) {
10e489: 80 3a 2e cmpb $0x2e,(%edx)
10e48c: 75 0d jne 10e49b <IMFS_eval_path+0x19c>
10e48e: 8b 45 08 mov 0x8(%ebp),%eax
10e491: 8b 4d b4 mov -0x4c(%ebp),%ecx
10e494: 80 7c 08 01 2e cmpb $0x2e,0x1(%eax,%ecx,1)
10e499: 74 1e je 10e4b9 <IMFS_eval_path+0x1ba>
*pathloc = node->info.directory.mt_fs->mt_fs_root;
10e49b: 8b 77 5c mov 0x5c(%edi),%esi
10e49e: 83 c6 1c add $0x1c,%esi
10e4a1: b9 05 00 00 00 mov $0x5,%ecx
10e4a6: 89 df mov %ebx,%edi
10e4a8: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
return (*pathloc->ops->evalpath_h)( &pathname[i],
10e4aa: 8b 43 0c mov 0xc(%ebx),%eax
10e4ad: 53 push %ebx
10e4ae: ff 75 10 pushl 0x10(%ebp)
10e4b1: ff 75 0c pushl 0xc(%ebp)
10e4b4: 52 push %edx
10e4b5: ff 10 call *(%eax)
10e4b7: eb 62 jmp 10e51b <IMFS_eval_path+0x21c>
pathnamelen,
flags, pathloc );
}
i += 2;
10e4b9: 83 45 b4 02 addl $0x2,-0x4c(%ebp)
pathnamelen -= 2;
10e4bd: 83 6d 0c 02 subl $0x2,0xc(%ebp)
node = node->Parent;
10e4c1: 8b 7f 08 mov 0x8(%edi),%edi
/*
* Set the node access to the point we have found.
*/
pathloc->node_access = node;
10e4c4: 89 3b mov %edi,(%ebx)
10e4c6: e9 75 fe ff ff jmp 10e340 <IMFS_eval_path+0x41>
case IMFS_NO_MORE_PATH:
case IMFS_CURRENT_DIR:
break;
case IMFS_INVALID_TOKEN:
rtems_set_errno_and_return_minus_one( ENAMETOOLONG );
10e4cb: e8 44 45 00 00 call 112a14 <__errno>
10e4d0: c7 00 5b 00 00 00 movl $0x5b,(%eax)
10e4d6: eb 72 jmp 10e54a <IMFS_eval_path+0x24b>
/*
* Evaluate all tokens until we are done or an error occurs.
*/
while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) {
10e4d8: 83 fe 04 cmp $0x4,%esi
10e4db: 74 08 je 10e4e5 <IMFS_eval_path+0x1e6> <== NEVER TAKEN
10e4dd: 85 f6 test %esi,%esi
10e4df: 0f 85 5b fe ff ff jne 10e340 <IMFS_eval_path+0x41>
* 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 ) {
10e4e5: 83 7f 4c 01 cmpl $0x1,0x4c(%edi)
10e4e9: 75 37 jne 10e522 <IMFS_eval_path+0x223>
if ( node->info.directory.mt_fs != NULL ) {
10e4eb: 8b 77 5c mov 0x5c(%edi),%esi
10e4ee: 85 f6 test %esi,%esi
10e4f0: 74 30 je 10e522 <IMFS_eval_path+0x223> <== ALWAYS TAKEN
*pathloc = node->info.directory.mt_fs->mt_fs_root;
10e4f2: 83 c6 1c add $0x1c,%esi <== NOT EXECUTED
10e4f5: b9 05 00 00 00 mov $0x5,%ecx
10e4fa: 89 df mov %ebx,%edi
10e4fc: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
return (*pathloc->ops->evalpath_h)( &pathname[i-len],
10e4fe: 8b 45 e4 mov -0x1c(%ebp),%eax
10e501: 8b 53 0c mov 0xc(%ebx),%edx
10e504: 53 push %ebx
10e505: ff 75 10 pushl 0x10(%ebp)
10e508: 8b 4d 0c mov 0xc(%ebp),%ecx
10e50b: 01 c1 add %eax,%ecx
10e50d: 51 push %ecx
10e50e: 8b 4d b4 mov -0x4c(%ebp),%ecx
10e511: 29 c1 sub %eax,%ecx
10e513: 8b 45 08 mov 0x8(%ebp),%eax
10e516: 01 c8 add %ecx,%eax
10e518: 50 push %eax
10e519: ff 12 call *(%edx)
10e51b: 89 c6 mov %eax,%esi
10e51d: 83 c4 10 add $0x10,%esp
10e520: eb 2b jmp 10e54d <IMFS_eval_path+0x24e>
flags, pathloc );
} else {
result = IMFS_Set_handlers( pathloc );
}
} else {
result = IMFS_Set_handlers( pathloc );
10e522: 83 ec 0c sub $0xc,%esp
10e525: 53 push %ebx
10e526: e8 3d fc ff ff call 10e168 <IMFS_Set_handlers>
10e52b: 89 c6 mov %eax,%esi
10e52d: 59 pop %ecx
10e52e: 5f pop %edi
/*
* Verify we have the correct permissions for this node.
*/
if ( !IMFS_evaluate_permission( pathloc, flags ) )
10e52f: ff 75 10 pushl 0x10(%ebp)
10e532: 53 push %ebx
10e533: e8 78 fc ff ff call 10e1b0 <IMFS_evaluate_permission>
10e538: 83 c4 10 add $0x10,%esp
10e53b: 85 c0 test %eax,%eax
10e53d: 75 0e jne 10e54d <IMFS_eval_path+0x24e>
rtems_set_errno_and_return_minus_one( EACCES );
10e53f: e8 d0 44 00 00 call 112a14 <__errno>
10e544: c7 00 0d 00 00 00 movl $0xd,(%eax)
10e54a: 83 ce ff or $0xffffffff,%esi
return result;
}
10e54d: 89 f0 mov %esi,%eax
10e54f: 8d 65 f4 lea -0xc(%ebp),%esp
10e552: 5b pop %ebx
10e553: 5e pop %esi
10e554: 5f pop %edi
10e555: c9 leave
10e556: c3 ret
0010e5da <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 */
)
{
10e5da: 55 push %ebp
10e5db: 89 e5 mov %esp,%ebp
10e5dd: 57 push %edi
10e5de: 56 push %esi
10e5df: 53 push %ebx
10e5e0: 83 ec 4c sub $0x4c,%esp
10e5e3: 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;
10e5e6: 8b 1a mov (%edx),%ebx
/*
* Get the path length.
*/
pathlen = strlen( path );
10e5e8: 31 c0 xor %eax,%eax
10e5ea: 83 c9 ff or $0xffffffff,%ecx
10e5ed: 8b 7d 08 mov 0x8(%ebp),%edi
10e5f0: f2 ae repnz scas %es:(%edi),%al
10e5f2: f7 d1 not %ecx
10e5f4: 8d 79 ff lea -0x1(%ecx),%edi
10e5f7: c7 45 b4 00 00 00 00 movl $0x0,-0x4c(%ebp)
* Evaluate all tokens until we are done or an error occurs.
*/
while( !done ) {
type = IMFS_get_token( &path[i], pathlen, token, &len );
10e5fe: 89 d6 mov %edx,%esi
10e600: 8d 45 e4 lea -0x1c(%ebp),%eax
10e603: 50 push %eax
10e604: 8d 55 c3 lea -0x3d(%ebp),%edx
10e607: 52 push %edx
10e608: 57 push %edi
10e609: 8b 45 08 mov 0x8(%ebp),%eax
10e60c: 03 45 b4 add -0x4c(%ebp),%eax
10e60f: 50 push %eax
10e610: e8 57 05 00 00 call 10eb6c <IMFS_get_token>
10e615: 89 c2 mov %eax,%edx
pathlen -= len;
10e617: 8b 4d e4 mov -0x1c(%ebp),%ecx
i += len;
if ( !pathloc->node_access )
10e61a: 83 c4 10 add $0x10,%esp
10e61d: 83 3e 00 cmpl $0x0,(%esi)
10e620: 0f 84 e5 01 00 00 je 10e80b <IMFS_evaluate_for_make+0x231><== NEVER TAKEN
/*
* I cannot move out of this directory without execute permission.
*/
if ( type != IMFS_NO_MORE_PATH )
10e626: 85 c0 test %eax,%eax
10e628: 74 36 je 10e660 <IMFS_evaluate_for_make+0x86>
if ( node->type == IMFS_DIRECTORY )
10e62a: 83 7b 4c 01 cmpl $0x1,0x4c(%ebx)
10e62e: 75 30 jne 10e660 <IMFS_evaluate_for_make+0x86>
if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) )
10e630: 50 push %eax
10e631: 50 push %eax
10e632: 6a 01 push $0x1
10e634: 56 push %esi
10e635: 89 55 ac mov %edx,-0x54(%ebp)
10e638: 89 4d a8 mov %ecx,-0x58(%ebp)
10e63b: e8 70 fb ff ff call 10e1b0 <IMFS_evaluate_permission>
10e640: 83 c4 10 add $0x10,%esp
10e643: 85 c0 test %eax,%eax
10e645: 8b 55 ac mov -0x54(%ebp),%edx
10e648: 8b 4d a8 mov -0x58(%ebp),%ecx
10e64b: 75 13 jne 10e660 <IMFS_evaluate_for_make+0x86>
rtems_set_errno_and_return_minus_one( EACCES );
10e64d: e8 c2 43 00 00 call 112a14 <__errno>
10e652: c7 00 0d 00 00 00 movl $0xd,(%eax)
10e658: 83 cb ff or $0xffffffff,%ebx
10e65b: e9 05 02 00 00 jmp 10e865 <IMFS_evaluate_for_make+0x28b>
*/
while( !done ) {
type = IMFS_get_token( &path[i], pathlen, token, &len );
pathlen -= len;
10e660: 29 cf sub %ecx,%edi
i += len;
10e662: 01 4d b4 add %ecx,-0x4c(%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;
10e665: 8b 1e mov (%esi),%ebx
switch( type ) {
10e667: 83 fa 02 cmp $0x2,%edx
10e66a: 74 1f je 10e68b <IMFS_evaluate_for_make+0xb1>
10e66c: 77 0a ja 10e678 <IMFS_evaluate_for_make+0x9e>
10e66e: 85 d2 test %edx,%edx
10e670: 0f 84 43 01 00 00 je 10e7b9 <IMFS_evaluate_for_make+0x1df>
10e676: eb 88 jmp 10e600 <IMFS_evaluate_for_make+0x26>
10e678: 83 fa 03 cmp $0x3,%edx
10e67b: 74 5b je 10e6d8 <IMFS_evaluate_for_make+0xfe>
10e67d: 83 fa 04 cmp $0x4,%edx
10e680: 0f 85 7a ff ff ff jne 10e600 <IMFS_evaluate_for_make+0x26><== NEVER TAKEN
10e686: e9 3e 01 00 00 jmp 10e7c9 <IMFS_evaluate_for_make+0x1ef>
case IMFS_UP_DIR:
/*
* Am I at the root of all filesystems? (chroot'ed?)
*/
if ( pathloc->node_access == rtems_filesystem_root.node_access )
10e68b: a1 54 3f 12 00 mov 0x123f54,%eax
10e690: 3b 58 18 cmp 0x18(%eax),%ebx
10e693: 0f 84 67 ff ff ff je 10e600 <IMFS_evaluate_for_make+0x26>
/*
* Am I at the root of this mounted filesystem?
*/
if (pathloc->node_access == pathloc->mt_entry->mt_fs_root.node_access){
10e699: 8b 46 10 mov 0x10(%esi),%eax
10e69c: 3b 58 1c cmp 0x1c(%eax),%ebx
10e69f: 75 27 jne 10e6c8 <IMFS_evaluate_for_make+0xee>
10e6a1: 89 f2 mov %esi,%edx
10e6a3: 89 c6 mov %eax,%esi
if ( pathloc->node_access == rtems_filesystem_root.node_access ) {
break;
} else {
*pathloc = pathloc->mt_entry->mt_point_node;
10e6a5: 83 c6 08 add $0x8,%esi
10e6a8: b9 05 00 00 00 mov $0x5,%ecx
10e6ad: 89 d7 mov %edx,%edi
10e6af: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name );
10e6b1: 53 push %ebx
10e6b2: 8b 42 0c mov 0xc(%edx),%eax
10e6b5: ff 75 10 pushl 0x10(%ebp)
10e6b8: 52 push %edx
10e6b9: 8b 55 b4 mov -0x4c(%ebp),%edx
10e6bc: 2b 55 e4 sub -0x1c(%ebp),%edx
10e6bf: 03 55 08 add 0x8(%ebp),%edx
10e6c2: 52 push %edx
10e6c3: e9 d3 00 00 00 jmp 10e79b <IMFS_evaluate_for_make+0x1c1>
}
} else {
if ( !node->Parent )
10e6c8: 8b 5b 08 mov 0x8(%ebx),%ebx
10e6cb: 85 db test %ebx,%ebx
10e6cd: 0f 85 df 00 00 00 jne 10e7b2 <IMFS_evaluate_for_make+0x1d8>
10e6d3: e9 33 01 00 00 jmp 10e80b <IMFS_evaluate_for_make+0x231>
case IMFS_NAME:
/*
* If we are at a link follow it.
*/
if ( node->type == IMFS_HARD_LINK ) {
10e6d8: 8b 43 4c mov 0x4c(%ebx),%eax
10e6db: 83 f8 03 cmp $0x3,%eax
10e6de: 74 05 je 10e6e5 <IMFS_evaluate_for_make+0x10b>
result = IMFS_evaluate_link( pathloc, 0 );
if ( result == -1 )
return -1;
} else if ( node->type == IMFS_SYM_LINK ) {
10e6e0: 83 f8 04 cmp $0x4,%eax
10e6e3: 75 16 jne 10e6fb <IMFS_evaluate_for_make+0x121>
result = IMFS_evaluate_link( pathloc, 0 );
10e6e5: 51 push %ecx
10e6e6: 51 push %ecx
10e6e7: 6a 00 push $0x0
10e6e9: 56 push %esi
10e6ea: e8 68 fe ff ff call 10e557 <IMFS_evaluate_link>
if ( result == -1 )
10e6ef: 83 c4 10 add $0x10,%esp
10e6f2: 83 f8 ff cmp $0xffffffff,%eax
10e6f5: 0f 84 68 01 00 00 je 10e863 <IMFS_evaluate_for_make+0x289><== NEVER TAKEN
return -1;
}
node = pathloc->node_access;
10e6fb: 8b 06 mov (%esi),%eax
if ( !node )
10e6fd: 85 c0 test %eax,%eax
10e6ff: 0f 84 38 01 00 00 je 10e83d <IMFS_evaluate_for_make+0x263><== NEVER TAKEN
/*
* Only a directory can be decended into.
*/
if ( node->type != IMFS_DIRECTORY )
10e705: 83 78 4c 01 cmpl $0x1,0x4c(%eax)
10e709: 0f 85 2e 01 00 00 jne 10e83d <IMFS_evaluate_for_make+0x263>
/*
* Find the token name in the present location.
*/
node = IMFS_find_match_in_dir( node, token );
10e70f: 52 push %edx
10e710: 52 push %edx
10e711: 8d 4d c3 lea -0x3d(%ebp),%ecx
10e714: 51 push %ecx
10e715: 50 push %eax
10e716: e8 c5 03 00 00 call 10eae0 <IMFS_find_match_in_dir>
10e71b: 89 c3 mov %eax,%ebx
/*
* If there is no node we have found the name of the node we
* wish to create.
*/
if ( ! node )
10e71d: 83 c4 10 add $0x10,%esp
10e720: 85 c0 test %eax,%eax
10e722: 0f 84 b1 00 00 00 je 10e7d9 <IMFS_evaluate_for_make+0x1ff>
done = true;
else {
if (( node->type == IMFS_DIRECTORY ) && ( node->info.directory.mt_fs != NULL )) {
10e728: 83 78 4c 01 cmpl $0x1,0x4c(%eax)
10e72c: 0f 85 80 00 00 00 jne 10e7b2 <IMFS_evaluate_for_make+0x1d8>
10e732: 83 78 5c 00 cmpl $0x0,0x5c(%eax)
10e736: 74 7a je 10e7b2 <IMFS_evaluate_for_make+0x1d8>
10e738: 8b 55 08 mov 0x8(%ebp),%edx
10e73b: 03 55 b4 add -0x4c(%ebp),%edx
10e73e: eb 04 jmp 10e744 <IMFS_evaluate_for_make+0x16a>
size_t *len, /* IN/OUT */
int *index /* IN/OUT */
)
{
while ( IMFS_is_separator( path[*index] ) && path[*index] && *len ) {
++(*index);
10e740: ff 45 b4 incl -0x4c(%ebp)
--(*len);
10e743: 4f dec %edi
10e744: 89 55 b0 mov %edx,-0x50(%ebp)
const char *path, /* IN */
size_t *len, /* IN/OUT */
int *index /* IN/OUT */
)
{
while ( IMFS_is_separator( path[*index] ) && path[*index] && *len ) {
10e747: 83 ec 0c sub $0xc,%esp
10e74a: 0f be 02 movsbl (%edx),%eax
10e74d: 50 push %eax
10e74e: 89 55 ac mov %edx,-0x54(%ebp)
10e751: e8 b2 9c ff ff call 108408 <rtems_filesystem_is_separator>
10e756: 83 c4 10 add $0x10,%esp
10e759: 85 c0 test %eax,%eax
10e75b: 8b 55 ac mov -0x54(%ebp),%edx
10e75e: 74 0a je 10e76a <IMFS_evaluate_for_make+0x190>
10e760: 80 3a 00 cmpb $0x0,(%edx)
10e763: 74 05 je 10e76a <IMFS_evaluate_for_make+0x190><== NEVER TAKEN
10e765: 42 inc %edx
10e766: 85 ff test %edi,%edi
10e768: 75 d6 jne 10e740 <IMFS_evaluate_for_make+0x166><== ALWAYS TAKEN
if ( ! node )
done = true;
else {
if (( node->type == IMFS_DIRECTORY ) && ( node->info.directory.mt_fs != NULL )) {
IMFS_skip_separator( path, &pathlen, &i);
if ((path[i] != '.') || (path[i + 1] != '.')) {
10e76a: 8b 45 b0 mov -0x50(%ebp),%eax
10e76d: 80 38 2e cmpb $0x2e,(%eax)
10e770: 75 0d jne 10e77f <IMFS_evaluate_for_make+0x1a5>
10e772: 8b 4d 08 mov 0x8(%ebp),%ecx
10e775: 8b 55 b4 mov -0x4c(%ebp),%edx
10e778: 80 7c 11 01 2e cmpb $0x2e,0x1(%ecx,%edx,1)
10e77d: 74 29 je 10e7a8 <IMFS_evaluate_for_make+0x1ce><== ALWAYS TAKEN
10e77f: 89 f2 mov %esi,%edx
*pathloc = node->info.directory.mt_fs->mt_fs_root;
10e781: 8b 73 5c mov 0x5c(%ebx),%esi
10e784: 83 c6 1c add $0x1c,%esi
10e787: b9 05 00 00 00 mov $0x5,%ecx
10e78c: 89 d7 mov %edx,%edi
10e78e: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
return (*pathloc->ops->evalformake_h)( &path[i],
10e790: 53 push %ebx
10e791: 8b 42 0c mov 0xc(%edx),%eax
10e794: ff 75 10 pushl 0x10(%ebp)
10e797: 52 push %edx
10e798: ff 75 b0 pushl -0x50(%ebp)
10e79b: ff 50 04 call *0x4(%eax)
10e79e: 89 c3 mov %eax,%ebx
10e7a0: 83 c4 10 add $0x10,%esp
10e7a3: e9 bd 00 00 00 jmp 10e865 <IMFS_evaluate_for_make+0x28b>
pathloc,
name );
}
i += 2;
10e7a8: 83 45 b4 02 addl $0x2,-0x4c(%ebp)
pathlen -= 2;
10e7ac: 83 ef 02 sub $0x2,%edi
node = node->Parent;
10e7af: 8b 5b 08 mov 0x8(%ebx),%ebx
}
pathloc->node_access = node;
10e7b2: 89 1e mov %ebx,(%esi)
10e7b4: e9 47 fe ff ff jmp 10e600 <IMFS_evaluate_for_make+0x26>
}
break;
case IMFS_NO_MORE_PATH:
rtems_set_errno_and_return_minus_one( EEXIST );
10e7b9: e8 56 42 00 00 call 112a14 <__errno>
10e7be: c7 00 11 00 00 00 movl $0x11,(%eax)
10e7c4: e9 8f fe ff ff jmp 10e658 <IMFS_evaluate_for_make+0x7e>
break;
case IMFS_INVALID_TOKEN:
rtems_set_errno_and_return_minus_one( ENAMETOOLONG );
10e7c9: e8 46 42 00 00 call 112a14 <__errno>
10e7ce: c7 00 5b 00 00 00 movl $0x5b,(%eax)
10e7d4: e9 7f fe ff ff jmp 10e658 <IMFS_evaluate_for_make+0x7e>
10e7d9: 89 f2 mov %esi,%edx
case IMFS_CURRENT_DIR:
break;
}
}
*name = &path[ i - len ];
10e7db: 8b 45 b4 mov -0x4c(%ebp),%eax
10e7de: 2b 45 e4 sub -0x1c(%ebp),%eax
10e7e1: 03 45 08 add 0x8(%ebp),%eax
10e7e4: 8b 4d 10 mov 0x10(%ebp),%ecx
10e7e7: 89 01 mov %eax,(%ecx)
10e7e9: 8b 5d 08 mov 0x8(%ebp),%ebx
10e7ec: 03 5d b4 add -0x4c(%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++) {
10e7ef: eb 2a jmp 10e81b <IMFS_evaluate_for_make+0x241>
if ( !IMFS_is_separator( path[ i ] ) )
10e7f1: 83 ec 0c sub $0xc,%esp
10e7f4: 0f be c0 movsbl %al,%eax
10e7f7: 50 push %eax
10e7f8: 89 55 ac mov %edx,-0x54(%ebp)
10e7fb: e8 08 9c ff ff call 108408 <rtems_filesystem_is_separator>
10e800: 43 inc %ebx
10e801: 83 c4 10 add $0x10,%esp
10e804: 85 c0 test %eax,%eax
10e806: 8b 55 ac mov -0x54(%ebp),%edx
10e809: 75 10 jne 10e81b <IMFS_evaluate_for_make+0x241>
rtems_set_errno_and_return_minus_one( ENOENT );
10e80b: e8 04 42 00 00 call 112a14 <__errno>
10e810: c7 00 02 00 00 00 movl $0x2,(%eax)
10e816: e9 3d fe ff ff jmp 10e658 <IMFS_evaluate_for_make+0x7e>
/*
* 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++) {
10e81b: 8a 03 mov (%ebx),%al
10e81d: 84 c0 test %al,%al
10e81f: 75 d0 jne 10e7f1 <IMFS_evaluate_for_make+0x217>
/*
* Verify we can execute and write to this directory.
*/
result = IMFS_Set_handlers( pathloc );
10e821: 83 ec 0c sub $0xc,%esp
10e824: 52 push %edx
10e825: 89 55 ac mov %edx,-0x54(%ebp)
10e828: e8 3b f9 ff ff call 10e168 <IMFS_Set_handlers>
10e82d: 89 c3 mov %eax,%ebx
/*
* The returned node must be a directory
*/
node = pathloc->node_access;
10e82f: 8b 55 ac mov -0x54(%ebp),%edx
10e832: 8b 02 mov (%edx),%eax
10e834: 83 c4 10 add $0x10,%esp
10e837: 83 78 4c 01 cmpl $0x1,0x4c(%eax)
10e83b: 74 10 je 10e84d <IMFS_evaluate_for_make+0x273><== ALWAYS TAKEN
if ( node->type != IMFS_DIRECTORY )
rtems_set_errno_and_return_minus_one( ENOTDIR );
10e83d: e8 d2 41 00 00 call 112a14 <__errno>
10e842: c7 00 14 00 00 00 movl $0x14,(%eax)
10e848: e9 0b fe ff ff jmp 10e658 <IMFS_evaluate_for_make+0x7e>
/*
* We must have Write and execute permission on the returned node.
*/
if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_WX ) )
10e84d: 51 push %ecx
10e84e: 51 push %ecx
10e84f: 6a 03 push $0x3
10e851: 52 push %edx
10e852: e8 59 f9 ff ff call 10e1b0 <IMFS_evaluate_permission>
10e857: 83 c4 10 add $0x10,%esp
10e85a: 85 c0 test %eax,%eax
10e85c: 75 07 jne 10e865 <IMFS_evaluate_for_make+0x28b>
10e85e: e9 ea fd ff ff jmp 10e64d <IMFS_evaluate_for_make+0x73>
10e863: 89 c3 mov %eax,%ebx <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EACCES );
return result;
}
10e865: 89 d8 mov %ebx,%eax
10e867: 8d 65 f4 lea -0xc(%ebp),%esp
10e86a: 5b pop %ebx
10e86b: 5e pop %esi
10e86c: 5f pop %edi
10e86d: c9 leave
10e86e: c3 ret
0010e216 <IMFS_evaluate_hard_link>:
int IMFS_evaluate_hard_link(
rtems_filesystem_location_info_t *node, /* IN/OUT */
int flags /* IN */
)
{
10e216: 55 push %ebp
10e217: 89 e5 mov %esp,%ebp
10e219: 53 push %ebx
10e21a: 83 ec 04 sub $0x4,%esp
10e21d: 8b 5d 08 mov 0x8(%ebp),%ebx
IMFS_jnode_t *jnode = node->node_access;
10e220: 8b 03 mov (%ebx),%eax
/*
* Check for things that should never happen.
*/
if ( jnode->type != IMFS_HARD_LINK )
10e222: 83 78 4c 03 cmpl $0x3,0x4c(%eax)
10e226: 74 0d je 10e235 <IMFS_evaluate_hard_link+0x1f><== ALWAYS TAKEN
rtems_fatal_error_occurred (0xABCD0000);
10e228: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10e22b: 68 00 00 cd ab push $0xabcd0000 <== NOT EXECUTED
10e230: e8 5b c9 ff ff call 10ab90 <rtems_fatal_error_occurred><== NOT EXECUTED
/*
* Set the hard link value and the handlers.
*/
node->node_access = jnode->info.hard_link.link_node;
10e235: 8b 40 50 mov 0x50(%eax),%eax
10e238: 89 03 mov %eax,(%ebx)
IMFS_Set_handlers( node );
10e23a: 83 ec 0c sub $0xc,%esp
10e23d: 53 push %ebx
10e23e: e8 25 ff ff ff call 10e168 <IMFS_Set_handlers>
/*
* Verify we have the correct permissions for this node.
*/
if ( !IMFS_evaluate_permission( node, flags ) )
10e243: 58 pop %eax
10e244: 5a pop %edx
10e245: ff 75 0c pushl 0xc(%ebp)
10e248: 53 push %ebx
10e249: e8 62 ff ff ff call 10e1b0 <IMFS_evaluate_permission>
10e24e: 89 c2 mov %eax,%edx
10e250: 83 c4 10 add $0x10,%esp
10e253: 31 c0 xor %eax,%eax
10e255: 85 d2 test %edx,%edx
10e257: 75 0e jne 10e267 <IMFS_evaluate_hard_link+0x51><== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( EACCES );
10e259: e8 b6 47 00 00 call 112a14 <__errno> <== NOT EXECUTED
10e25e: c7 00 0d 00 00 00 movl $0xd,(%eax) <== NOT EXECUTED
10e264: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
return result;
}
10e267: 8b 5d fc mov -0x4(%ebp),%ebx
10e26a: c9 leave
10e26b: c3 ret
0010e1b0 <IMFS_evaluate_permission>:
int IMFS_evaluate_permission(
rtems_filesystem_location_info_t *node,
int flags
)
{
10e1b0: 55 push %ebp
10e1b1: 89 e5 mov %esp,%ebp
10e1b3: 57 push %edi
10e1b4: 56 push %esi
10e1b5: 53 push %ebx
10e1b6: 83 ec 0c sub $0xc,%esp
10e1b9: 8b 5d 0c mov 0xc(%ebp),%ebx
uid_t st_uid;
gid_t st_gid;
IMFS_jnode_t *jnode;
int flags_to_test;
if ( !rtems_libio_is_valid_perms( flags ) )
10e1bc: f7 c3 f8 ff ff ff test $0xfffffff8,%ebx
10e1c2: 74 10 je 10e1d4 <IMFS_evaluate_permission+0x24><== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( EPERM );
10e1c4: e8 4b 48 00 00 call 112a14 <__errno> <== NOT EXECUTED
10e1c9: c7 00 01 00 00 00 movl $0x1,(%eax) <== NOT EXECUTED
10e1cf: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
10e1d2: eb 3a jmp 10e20e <IMFS_evaluate_permission+0x5e><== NOT EXECUTED
jnode = node->node_access;
10e1d4: 8b 45 08 mov 0x8(%ebp),%eax
10e1d7: 8b 30 mov (%eax),%esi
#if defined(RTEMS_POSIX_API)
st_uid = geteuid();
10e1d9: e8 e2 0c 00 00 call 10eec0 <geteuid>
10e1de: 89 c7 mov %eax,%edi
st_gid = getegid();
10e1e0: e8 cb 0c 00 00 call 10eeb0 <getegid>
* Check if I am owner or a group member or someone else.
*/
flags_to_test = flags;
if ( st_uid == jnode->st_uid )
10e1e5: 66 3b 7e 3c cmp 0x3c(%esi),%di
10e1e9: 75 07 jne 10e1f2 <IMFS_evaluate_permission+0x42>
flags_to_test <<= 6;
10e1eb: 89 da mov %ebx,%edx
10e1ed: c1 e2 06 shl $0x6,%edx
10e1f0: eb 0f jmp 10e201 <IMFS_evaluate_permission+0x51>
else if ( st_gid == jnode->st_gid )
10e1f2: 89 da mov %ebx,%edx
10e1f4: 66 3b 46 3e cmp 0x3e(%esi),%ax
10e1f8: 75 07 jne 10e201 <IMFS_evaluate_permission+0x51><== NEVER TAKEN
flags_to_test <<= 3;
10e1fa: 8d 14 dd 00 00 00 00 lea 0x0(,%ebx,8),%edx
/*
* If all of the flags are set we have permission
* to do this.
*/
if ( ( flags_to_test & jnode->st_mode) == flags_to_test )
10e201: 8b 46 30 mov 0x30(%esi),%eax
10e204: 21 d0 and %edx,%eax
10e206: 39 d0 cmp %edx,%eax
10e208: 0f 94 c0 sete %al
10e20b: 0f b6 c0 movzbl %al,%eax
return 1;
return 0;
}
10e20e: 83 c4 0c add $0xc,%esp
10e211: 5b pop %ebx
10e212: 5e pop %esi
10e213: 5f pop %edi
10e214: c9 leave
10e215: c3 ret
0010e26c <IMFS_evaluate_sym_link>:
int IMFS_evaluate_sym_link(
rtems_filesystem_location_info_t *node, /* IN/OUT */
int flags /* IN */
)
{
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 75 0c mov 0xc(%ebp),%esi
IMFS_jnode_t *jnode = node->node_access;
10e27b: 8b 3b mov (%ebx),%edi
/*
* Check for things that should never happen.
*/
if ( jnode->type != IMFS_SYM_LINK )
10e27d: 83 7f 4c 04 cmpl $0x4,0x4c(%edi)
10e281: 74 0a je 10e28d <IMFS_evaluate_sym_link+0x21><== ALWAYS TAKEN
rtems_fatal_error_occurred (0xABCD0000);
10e283: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10e286: 68 00 00 cd ab push $0xabcd0000 <== NOT EXECUTED
10e28b: eb 0f jmp 10e29c <IMFS_evaluate_sym_link+0x30><== NOT EXECUTED
if ( !jnode->Parent )
10e28d: 8b 47 08 mov 0x8(%edi),%eax
10e290: 85 c0 test %eax,%eax
10e292: 75 0d jne 10e2a1 <IMFS_evaluate_sym_link+0x35><== ALWAYS TAKEN
rtems_fatal_error_occurred( 0xBAD00000 );
10e294: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10e297: 68 00 00 d0 ba push $0xbad00000 <== NOT EXECUTED
10e29c: e8 ef c8 ff ff call 10ab90 <rtems_fatal_error_occurred><== NOT EXECUTED
/*
* Move the node_access to either the symbolic links parent or
* root depending on the symbolic links path.
*/
node->node_access = jnode->Parent;
10e2a1: 89 03 mov %eax,(%ebx)
rtems_filesystem_get_sym_start_loc(
10e2a3: 52 push %edx
10e2a4: 53 push %ebx
10e2a5: 8d 45 e4 lea -0x1c(%ebp),%eax
10e2a8: 50 push %eax
10e2a9: ff 77 50 pushl 0x50(%edi)
10e2ac: e8 7b 10 00 00 call 10f32c <rtems_filesystem_get_sym_start_loc>
/*
* Use eval path to evaluate the path of the symbolic link.
*/
result = IMFS_eval_path(
10e2b1: 8b 57 50 mov 0x50(%edi),%edx
10e2b4: 03 55 e4 add -0x1c(%ebp),%edx
10e2b7: 31 c0 xor %eax,%eax
10e2b9: 83 c9 ff or $0xffffffff,%ecx
10e2bc: 89 d7 mov %edx,%edi
10e2be: f2 ae repnz scas %es:(%edi),%al
10e2c0: f7 d1 not %ecx
10e2c2: 49 dec %ecx
10e2c3: 53 push %ebx
10e2c4: 56 push %esi
10e2c5: 51 push %ecx
10e2c6: 52 push %edx
10e2c7: e8 33 00 00 00 call 10e2ff <IMFS_eval_path>
10e2cc: 89 c7 mov %eax,%edi
strlen( &jnode->info.sym_link.name[i] ),
flags,
node
);
IMFS_Set_handlers( node );
10e2ce: 83 c4 14 add $0x14,%esp
10e2d1: 53 push %ebx
10e2d2: e8 91 fe ff ff call 10e168 <IMFS_Set_handlers>
/*
* Verify we have the correct permissions for this node.
*/
if ( !IMFS_evaluate_permission( node, flags ) )
10e2d7: 59 pop %ecx
10e2d8: 58 pop %eax
10e2d9: 56 push %esi
10e2da: 53 push %ebx
10e2db: e8 d0 fe ff ff call 10e1b0 <IMFS_evaluate_permission>
10e2e0: 83 c4 10 add $0x10,%esp
10e2e3: 85 c0 test %eax,%eax
10e2e5: 75 0e jne 10e2f5 <IMFS_evaluate_sym_link+0x89><== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( EACCES );
10e2e7: e8 28 47 00 00 call 112a14 <__errno> <== NOT EXECUTED
10e2ec: c7 00 0d 00 00 00 movl $0xd,(%eax) <== NOT EXECUTED
10e2f2: 83 cf ff or $0xffffffff,%edi <== NOT EXECUTED
return result;
}
10e2f5: 89 f8 mov %edi,%eax
10e2f7: 8d 65 f4 lea -0xc(%ebp),%esp
10e2fa: 5b pop %ebx
10e2fb: 5e pop %esi
10e2fc: 5f pop %edi
10e2fd: c9 leave
10e2fe: c3 ret
00111b58 <IMFS_fchmod>:
int IMFS_fchmod(
rtems_filesystem_location_info_t *loc,
mode_t mode
)
{
111b58: 55 push %ebp
111b59: 89 e5 mov %esp,%ebp
111b5b: 53 push %ebx
111b5c: 83 ec 14 sub $0x14,%esp
IMFS_jnode_t *jnode;
#if defined(RTEMS_POSIX_API)
uid_t st_uid;
#endif
jnode = loc->node_access;
111b5f: 8b 45 08 mov 0x8(%ebp),%eax
111b62: 8b 18 mov (%eax),%ebx
/*
* Verify I am the owner of the node or the super user.
*/
#if defined(RTEMS_POSIX_API)
st_uid = geteuid();
111b64: e8 57 d3 ff ff call 10eec0 <geteuid>
if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) )
111b69: 66 85 c0 test %ax,%ax
111b6c: 74 16 je 111b84 <IMFS_fchmod+0x2c> <== ALWAYS TAKEN
111b6e: 66 3b 43 3c cmp 0x3c(%ebx),%ax <== NOT EXECUTED
111b72: 74 10 je 111b84 <IMFS_fchmod+0x2c> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EPERM );
111b74: e8 9b 0e 00 00 call 112a14 <__errno> <== NOT EXECUTED
111b79: c7 00 01 00 00 00 movl $0x1,(%eax) <== NOT EXECUTED
111b7f: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
111b82: eb 2e jmp 111bb2 <IMFS_fchmod+0x5a> <== NOT EXECUTED
/*
* Change only the RWX permissions on the jnode to mode.
*/
jnode->st_mode &= ~(S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX);
jnode->st_mode |= mode & (S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX);
111b84: 8b 45 0c mov 0xc(%ebp),%eax
111b87: 25 ff 0f 00 00 and $0xfff,%eax
111b8c: 8b 53 30 mov 0x30(%ebx),%edx
111b8f: 81 e2 00 f0 ff ff and $0xfffff000,%edx
111b95: 09 d0 or %edx,%eax
111b97: 89 43 30 mov %eax,0x30(%ebx)
IMFS_update_ctime( jnode );
111b9a: 50 push %eax
111b9b: 50 push %eax
111b9c: 6a 00 push $0x0
111b9e: 8d 45 f0 lea -0x10(%ebp),%eax
111ba1: 50 push %eax
111ba2: e8 6d 5b ff ff call 107714 <gettimeofday>
111ba7: 8b 45 f0 mov -0x10(%ebp),%eax
111baa: 89 43 48 mov %eax,0x48(%ebx)
111bad: 31 c0 xor %eax,%eax
return 0;
111baf: 83 c4 10 add $0x10,%esp
}
111bb2: 8b 5d fc mov -0x4(%ebp),%ebx
111bb5: c9 leave
111bb6: c3 ret
0010e9b9 <IMFS_fifo_close>:
}
int IMFS_fifo_close(
rtems_libio_t *iop
)
{
10e9b9: 55 push %ebp <== NOT EXECUTED
10e9ba: 89 e5 mov %esp,%ebp <== NOT EXECUTED
10e9bc: 57 push %edi <== NOT EXECUTED
10e9bd: 56 push %esi <== NOT EXECUTED
10e9be: 53 push %ebx <== NOT EXECUTED
10e9bf: 83 ec 14 sub $0x14,%esp <== NOT EXECUTED
10e9c2: 8b 7d 08 mov 0x8(%ebp),%edi <== NOT EXECUTED
IMFS_jnode_t *jnode = iop->file_info;
10e9c5: 8b 77 38 mov 0x38(%edi),%esi <== NOT EXECUTED
int err = pipe_release(&JNODE2PIPE(jnode), iop);
10e9c8: 57 push %edi <== NOT EXECUTED
10e9c9: 8d 46 50 lea 0x50(%esi),%eax <== NOT EXECUTED
10e9cc: 50 push %eax <== NOT EXECUTED
10e9cd: e8 51 f1 ff ff call 10db23 <pipe_release> <== NOT EXECUTED
10e9d2: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (! err) {
10e9d4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10e9d7: 83 f8 00 cmp $0x0,%eax <== NOT EXECUTED
10e9da: 75 2c jne 10ea08 <IMFS_fifo_close+0x4f> <== NOT EXECUTED
iop->flags &= ~LIBIO_FLAGS_OPEN;
10e9dc: 81 67 14 ff fe ff ff andl $0xfffffeff,0x14(%edi) <== NOT EXECUTED
/* Free jnode if file is already unlinked and no one opens it */
if (! rtems_libio_is_file_open(jnode) && jnode->st_nlink < 1)
10e9e3: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10e9e6: 56 push %esi <== NOT EXECUTED
10e9e7: e8 36 05 00 00 call 10ef22 <rtems_libio_is_file_open><== NOT EXECUTED
10e9ec: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10e9ef: 85 c0 test %eax,%eax <== NOT EXECUTED
10e9f1: 75 23 jne 10ea16 <IMFS_fifo_close+0x5d> <== NOT EXECUTED
10e9f3: 66 83 7e 34 00 cmpw $0x0,0x34(%esi) <== NOT EXECUTED
10e9f8: 75 1c jne 10ea16 <IMFS_fifo_close+0x5d> <== NOT EXECUTED
free(jnode);
10e9fa: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10e9fd: 56 push %esi <== NOT EXECUTED
10e9fe: e8 99 8c ff ff call 10769c <free> <== NOT EXECUTED
10ea03: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10ea06: eb 0e jmp 10ea16 <IMFS_fifo_close+0x5d> <== NOT EXECUTED
}
IMFS_FIFO_RETURN(err);
10ea08: 7d 0c jge 10ea16 <IMFS_fifo_close+0x5d> <== NOT EXECUTED
10ea0a: e8 05 40 00 00 call 112a14 <__errno> <== NOT EXECUTED
10ea0f: f7 db neg %ebx <== NOT EXECUTED
10ea11: 89 18 mov %ebx,(%eax) <== NOT EXECUTED
10ea13: 83 cb ff or $0xffffffff,%ebx <== NOT EXECUTED
}
10ea16: 89 d8 mov %ebx,%eax <== NOT EXECUTED
10ea18: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
10ea1b: 5b pop %ebx <== NOT EXECUTED
10ea1c: 5e pop %esi <== NOT EXECUTED
10ea1d: 5f pop %edi <== NOT EXECUTED
10ea1e: c9 leave <== NOT EXECUTED
10ea1f: c3 ret <== NOT EXECUTED
0010e8ac <IMFS_fifo_ioctl>:
int IMFS_fifo_ioctl(
rtems_libio_t *iop,
uint32_t command,
void *buffer
)
{
10e8ac: 55 push %ebp <== NOT EXECUTED
10e8ad: 89 e5 mov %esp,%ebp <== NOT EXECUTED
10e8af: 53 push %ebx <== NOT EXECUTED
10e8b0: 83 ec 04 sub $0x4,%esp <== NOT EXECUTED
10e8b3: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
10e8b6: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED
10e8b9: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
int err;
if (command == FIONBIO) {
10e8bc: 81 f9 7e 66 04 80 cmp $0x8004667e,%ecx <== NOT EXECUTED
10e8c2: 75 1c jne 10e8e0 <IMFS_fifo_ioctl+0x34> <== NOT EXECUTED
if (buffer == NULL)
10e8c4: bb f2 ff ff ff mov $0xfffffff2,%ebx <== NOT EXECUTED
10e8c9: 85 d2 test %edx,%edx <== NOT EXECUTED
10e8cb: 74 2a je 10e8f7 <IMFS_fifo_ioctl+0x4b> <== NOT EXECUTED
err = -EFAULT;
else {
if (*(int *)buffer)
10e8cd: 83 3a 00 cmpl $0x0,(%edx) <== NOT EXECUTED
10e8d0: 74 06 je 10e8d8 <IMFS_fifo_ioctl+0x2c> <== NOT EXECUTED
iop->flags |= LIBIO_FLAGS_NO_DELAY;
10e8d2: 83 48 14 01 orl $0x1,0x14(%eax) <== NOT EXECUTED
10e8d6: eb 04 jmp 10e8dc <IMFS_fifo_ioctl+0x30> <== NOT EXECUTED
else
iop->flags &= ~LIBIO_FLAGS_NO_DELAY;
10e8d8: 83 60 14 fe andl $0xfffffffe,0x14(%eax) <== NOT EXECUTED
10e8dc: 31 db xor %ebx,%ebx <== NOT EXECUTED
10e8de: eb 23 jmp 10e903 <IMFS_fifo_ioctl+0x57> <== NOT EXECUTED
return 0;
}
}
else
err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop);
10e8e0: 50 push %eax <== NOT EXECUTED
10e8e1: 52 push %edx <== NOT EXECUTED
10e8e2: 51 push %ecx <== NOT EXECUTED
10e8e3: 8b 40 38 mov 0x38(%eax),%eax <== NOT EXECUTED
10e8e6: ff 70 50 pushl 0x50(%eax) <== NOT EXECUTED
10e8e9: e8 99 ee ff ff call 10d787 <pipe_ioctl> <== NOT EXECUTED
10e8ee: 89 c3 mov %eax,%ebx <== NOT EXECUTED
IMFS_FIFO_RETURN(err);
10e8f0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10e8f3: 85 c0 test %eax,%eax <== NOT EXECUTED
10e8f5: 79 0c jns 10e903 <IMFS_fifo_ioctl+0x57> <== NOT EXECUTED
10e8f7: e8 18 41 00 00 call 112a14 <__errno> <== NOT EXECUTED
10e8fc: f7 db neg %ebx <== NOT EXECUTED
10e8fe: 89 18 mov %ebx,(%eax) <== NOT EXECUTED
10e900: 83 cb ff or $0xffffffff,%ebx <== NOT EXECUTED
}
10e903: 89 d8 mov %ebx,%eax <== NOT EXECUTED
10e905: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
10e908: c9 leave <== NOT EXECUTED
10e909: c3 ret <== NOT EXECUTED
0010e870 <IMFS_fifo_lseek>:
rtems_off64_t IMFS_fifo_lseek(
rtems_libio_t *iop,
rtems_off64_t offset,
int whence
)
{
10e870: 55 push %ebp <== NOT EXECUTED
10e871: 89 e5 mov %esp,%ebp <== NOT EXECUTED
10e873: 53 push %ebx <== NOT EXECUTED
10e874: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED
10e877: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop);
10e87a: 50 push %eax <== NOT EXECUTED
10e87b: ff 75 14 pushl 0x14(%ebp) <== NOT EXECUTED
10e87e: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
10e881: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
10e884: 8b 40 38 mov 0x38(%eax),%eax <== NOT EXECUTED
10e887: ff 70 50 pushl 0x50(%eax) <== NOT EXECUTED
10e88a: e8 a1 ee ff ff call 10d730 <pipe_lseek> <== NOT EXECUTED
10e88f: 89 c3 mov %eax,%ebx <== NOT EXECUTED
10e891: 99 cltd <== NOT EXECUTED
IMFS_FIFO_RETURN(err);
10e892: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
10e895: 85 d2 test %edx,%edx <== NOT EXECUTED
10e897: 79 0e jns 10e8a7 <IMFS_fifo_lseek+0x37> <== NOT EXECUTED
10e899: e8 76 41 00 00 call 112a14 <__errno> <== NOT EXECUTED
10e89e: f7 db neg %ebx <== NOT EXECUTED
10e8a0: 89 18 mov %ebx,(%eax) <== NOT EXECUTED
10e8a2: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
10e8a5: 89 c2 mov %eax,%edx <== NOT EXECUTED
}
10e8a7: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
10e8aa: c9 leave <== NOT EXECUTED
10e8ab: c3 ret <== NOT EXECUTED
0010ea20 <IMFS_fifo_open>:
rtems_libio_t *iop,
const char *pathname,
uint32_t flag,
uint32_t mode
)
{
10ea20: 55 push %ebp
10ea21: 89 e5 mov %esp,%ebp
10ea23: 53 push %ebx
10ea24: 83 ec 0c sub $0xc,%esp
10ea27: 8b 45 08 mov 0x8(%ebp),%eax
IMFS_jnode_t *jnode = iop->file_info;
int err = fifo_open(&JNODE2PIPE(jnode), iop);
10ea2a: 50 push %eax
10ea2b: 8b 40 38 mov 0x38(%eax),%eax
10ea2e: 83 c0 50 add $0x50,%eax
10ea31: 50 push %eax
10ea32: e8 bc f1 ff ff call 10dbf3 <fifo_open>
10ea37: 89 c3 mov %eax,%ebx
IMFS_FIFO_RETURN(err);
10ea39: 83 c4 10 add $0x10,%esp
10ea3c: 85 c0 test %eax,%eax
10ea3e: 79 0c jns 10ea4c <IMFS_fifo_open+0x2c> <== NEVER TAKEN
10ea40: e8 cf 3f 00 00 call 112a14 <__errno>
10ea45: f7 db neg %ebx
10ea47: 89 18 mov %ebx,(%eax)
10ea49: 83 cb ff or $0xffffffff,%ebx
}
10ea4c: 89 d8 mov %ebx,%eax
10ea4e: 8b 5d fc mov -0x4(%ebp),%ebx
10ea51: c9 leave
10ea52: c3 ret
0010e963 <IMFS_fifo_read>:
ssize_t IMFS_fifo_read(
rtems_libio_t *iop,
void *buffer,
size_t count
)
{
10e963: 55 push %ebp <== NOT EXECUTED
10e964: 89 e5 mov %esp,%ebp <== NOT EXECUTED
10e966: 56 push %esi <== NOT EXECUTED
10e967: 53 push %ebx <== NOT EXECUTED
10e968: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED
10e96b: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
IMFS_jnode_t *jnode = iop->file_info;
10e96e: 8b 70 38 mov 0x38(%eax),%esi <== NOT EXECUTED
int err = pipe_read(JNODE2PIPE(jnode), buffer, count, iop);
10e971: 50 push %eax <== NOT EXECUTED
10e972: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
10e975: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
10e978: ff 76 50 pushl 0x50(%esi) <== NOT EXECUTED
10e97b: e8 5d ee ff ff call 10d7dd <pipe_read> <== NOT EXECUTED
10e980: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (err > 0)
10e982: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10e985: 83 f8 00 cmp $0x0,%eax <== NOT EXECUTED
10e988: 7e 18 jle 10e9a2 <IMFS_fifo_read+0x3f> <== NOT EXECUTED
IMFS_update_atime(jnode);
10e98a: 52 push %edx <== NOT EXECUTED
10e98b: 52 push %edx <== NOT EXECUTED
10e98c: 6a 00 push $0x0 <== NOT EXECUTED
10e98e: 8d 45 f0 lea -0x10(%ebp),%eax <== NOT EXECUTED
10e991: 50 push %eax <== NOT EXECUTED
10e992: e8 7d 8d ff ff call 107714 <gettimeofday> <== NOT EXECUTED
10e997: 8b 45 f0 mov -0x10(%ebp),%eax <== NOT EXECUTED
10e99a: 89 46 40 mov %eax,0x40(%esi) <== NOT EXECUTED
10e99d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10e9a0: eb 0e jmp 10e9b0 <IMFS_fifo_read+0x4d> <== NOT EXECUTED
IMFS_FIFO_RETURN(err);
10e9a2: 74 0c je 10e9b0 <IMFS_fifo_read+0x4d> <== NOT EXECUTED
10e9a4: e8 6b 40 00 00 call 112a14 <__errno> <== NOT EXECUTED
10e9a9: f7 db neg %ebx <== NOT EXECUTED
10e9ab: 89 18 mov %ebx,(%eax) <== NOT EXECUTED
10e9ad: 83 cb ff or $0xffffffff,%ebx <== NOT EXECUTED
}
10e9b0: 89 d8 mov %ebx,%eax <== NOT EXECUTED
10e9b2: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
10e9b5: 5b pop %ebx <== NOT EXECUTED
10e9b6: 5e pop %esi <== NOT EXECUTED
10e9b7: c9 leave <== NOT EXECUTED
10e9b8: c3 ret <== NOT EXECUTED
0010e90a <IMFS_fifo_write>:
ssize_t IMFS_fifo_write(
rtems_libio_t *iop,
const void *buffer,
size_t count
)
{
10e90a: 55 push %ebp <== NOT EXECUTED
10e90b: 89 e5 mov %esp,%ebp <== NOT EXECUTED
10e90d: 56 push %esi <== NOT EXECUTED
10e90e: 53 push %ebx <== NOT EXECUTED
10e90f: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED
10e912: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
IMFS_jnode_t *jnode = iop->file_info;
10e915: 8b 70 38 mov 0x38(%eax),%esi <== NOT EXECUTED
int err = pipe_write(JNODE2PIPE(jnode), buffer, count, iop);
10e918: 50 push %eax <== NOT EXECUTED
10e919: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
10e91c: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
10e91f: ff 76 50 pushl 0x50(%esi) <== NOT EXECUTED
10e922: e8 18 f0 ff ff call 10d93f <pipe_write> <== NOT EXECUTED
10e927: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (err > 0) {
10e929: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10e92c: 83 f8 00 cmp $0x0,%eax <== NOT EXECUTED
10e92f: 7e 1b jle 10e94c <IMFS_fifo_write+0x42> <== NOT EXECUTED
IMFS_mtime_ctime_update(jnode);
10e931: 50 push %eax <== NOT EXECUTED
10e932: 50 push %eax <== NOT EXECUTED
10e933: 6a 00 push $0x0 <== NOT EXECUTED
10e935: 8d 45 f0 lea -0x10(%ebp),%eax <== NOT EXECUTED
10e938: 50 push %eax <== NOT EXECUTED
10e939: e8 d6 8d ff ff call 107714 <gettimeofday> <== NOT EXECUTED
10e93e: 8b 45 f0 mov -0x10(%ebp),%eax <== NOT EXECUTED
10e941: 89 46 44 mov %eax,0x44(%esi) <== NOT EXECUTED
10e944: 89 46 48 mov %eax,0x48(%esi) <== NOT EXECUTED
10e947: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10e94a: eb 0e jmp 10e95a <IMFS_fifo_write+0x50> <== NOT EXECUTED
}
IMFS_FIFO_RETURN(err);
10e94c: 74 0c je 10e95a <IMFS_fifo_write+0x50> <== NOT EXECUTED
10e94e: e8 c1 40 00 00 call 112a14 <__errno> <== NOT EXECUTED
10e953: f7 db neg %ebx <== NOT EXECUTED
10e955: 89 18 mov %ebx,(%eax) <== NOT EXECUTED
10e957: 83 cb ff or $0xffffffff,%ebx <== NOT EXECUTED
}
10e95a: 89 d8 mov %ebx,%eax <== NOT EXECUTED
10e95c: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
10e95f: 5b pop %ebx <== NOT EXECUTED
10e960: 5e pop %esi <== NOT EXECUTED
10e961: c9 leave <== NOT EXECUTED
10e962: c3 ret <== NOT EXECUTED
0010eae0 <IMFS_find_match_in_dir>:
IMFS_jnode_t *IMFS_find_match_in_dir(
IMFS_jnode_t *directory,
char *name
)
{
10eae0: 55 push %ebp
10eae1: 89 e5 mov %esp,%ebp
10eae3: 57 push %edi
10eae4: 56 push %esi
10eae5: 53 push %ebx
10eae6: 83 ec 0c sub $0xc,%esp
10eae9: 8b 5d 08 mov 0x8(%ebp),%ebx
10eaec: 8b 7d 0c mov 0xc(%ebp),%edi
/*
* Check for fatal errors. A NULL directory show a problem in the
* the IMFS code.
*/
assert( directory );
10eaef: 85 db test %ebx,%ebx
10eaf1: 75 16 jne 10eb09 <IMFS_find_match_in_dir+0x29><== ALWAYS TAKEN
10eaf3: 68 00 06 12 00 push $0x120600 <== NOT EXECUTED
10eaf8: 68 68 06 12 00 push $0x120668 <== NOT EXECUTED
10eafd: 6a 2a push $0x2a <== NOT EXECUTED
10eaff: 68 0a 06 12 00 push $0x12060a <== NOT EXECUTED
10eb04: e8 97 88 ff ff call 1073a0 <__assert_func> <== NOT EXECUTED
if ( !name )
10eb09: 85 ff test %edi,%edi
10eb0b: 74 52 je 10eb5f <IMFS_find_match_in_dir+0x7f><== NEVER TAKEN
/*
* Check for "." and ".."
*/
if ( !strcmp( name, dotname ) )
10eb0d: 56 push %esi
10eb0e: 56 push %esi
10eb0f: 68 60 06 12 00 push $0x120660
10eb14: 57 push %edi
10eb15: e8 16 4a 00 00 call 113530 <strcmp>
10eb1a: 83 c4 10 add $0x10,%esp
10eb1d: 85 c0 test %eax,%eax
10eb1f: 74 40 je 10eb61 <IMFS_find_match_in_dir+0x81><== NEVER TAKEN
return directory;
if ( !strcmp( name, dotdotname ) )
10eb21: 51 push %ecx
10eb22: 51 push %ecx
10eb23: 68 62 06 12 00 push $0x120662
10eb28: 57 push %edi
10eb29: e8 02 4a 00 00 call 113530 <strcmp>
10eb2e: 83 c4 10 add $0x10,%esp
10eb31: 85 c0 test %eax,%eax
10eb33: 75 05 jne 10eb3a <IMFS_find_match_in_dir+0x5a><== ALWAYS TAKEN
return directory->Parent;
10eb35: 8b 5b 08 mov 0x8(%ebx),%ebx <== NOT EXECUTED
10eb38: eb 27 jmp 10eb61 <IMFS_find_match_in_dir+0x81><== NOT EXECUTED
the_chain = &directory->info.directory.Entries;
for ( the_node = the_chain->first;
10eb3a: 8b 73 50 mov 0x50(%ebx),%esi
10eb3d: 83 c3 54 add $0x54,%ebx
10eb40: eb 19 jmp 10eb5b <IMFS_find_match_in_dir+0x7b>
!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 ) )
10eb42: 8d 46 0c lea 0xc(%esi),%eax
10eb45: 52 push %edx
10eb46: 52 push %edx
10eb47: 50 push %eax
10eb48: 57 push %edi
10eb49: e8 e2 49 00 00 call 113530 <strcmp>
10eb4e: 83 c4 10 add $0x10,%esp
10eb51: 85 c0 test %eax,%eax
10eb53: 75 04 jne 10eb59 <IMFS_find_match_in_dir+0x79>
10eb55: 89 f3 mov %esi,%ebx
10eb57: eb 08 jmp 10eb61 <IMFS_find_match_in_dir+0x81>
the_chain = &directory->info.directory.Entries;
for ( the_node = the_chain->first;
!rtems_chain_is_tail( the_chain, the_node );
the_node = the_node->next ) {
10eb59: 8b 36 mov (%esi),%esi
if ( !strcmp( name, dotdotname ) )
return directory->Parent;
the_chain = &directory->info.directory.Entries;
for ( the_node = the_chain->first;
10eb5b: 39 de cmp %ebx,%esi
10eb5d: 75 e3 jne 10eb42 <IMFS_find_match_in_dir+0x62>
10eb5f: 31 db xor %ebx,%ebx
if ( !strcmp( name, the_jnode->name ) )
return the_jnode;
}
return 0;
}
10eb61: 89 d8 mov %ebx,%eax
10eb63: 8d 65 f4 lea -0xc(%ebp),%esp
10eb66: 5b pop %ebx
10eb67: 5e pop %esi
10eb68: 5f pop %edi
10eb69: c9 leave
10eb6a: c3 ret
0010ea5c <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
)
{
10ea5c: 55 push %ebp
10ea5d: 89 e5 mov %esp,%ebp
10ea5f: 57 push %edi
10ea60: 56 push %esi
10ea61: 53 push %ebx
10ea62: 83 ec 2c sub $0x2c,%esp
10ea65: 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;
10ea68: 8b 58 1c mov 0x1c(%eax),%ebx
loc = temp_mt_entry->mt_fs_root;
10ea6b: 8d 7d d4 lea -0x2c(%ebp),%edi
10ea6e: 8d 70 1c lea 0x1c(%eax),%esi
10ea71: b9 05 00 00 00 mov $0x5,%ecx
10ea76: 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;
10ea78: c7 40 1c 00 00 00 00 movl $0x0,0x1c(%eax)
do {
next = jnode->Parent;
loc.node_access = (void *)jnode;
IMFS_Set_handlers( &loc );
10ea7f: 8d 75 d4 lea -0x2c(%ebp),%esi
*/
temp_mt_entry->mt_fs_root.node_access = NULL;
do {
next = jnode->Parent;
10ea82: 8b 7b 08 mov 0x8(%ebx),%edi
loc.node_access = (void *)jnode;
10ea85: 89 5d d4 mov %ebx,-0x2c(%ebp)
IMFS_Set_handlers( &loc );
10ea88: 83 ec 0c sub $0xc,%esp
10ea8b: 56 push %esi
10ea8c: e8 d7 f6 ff ff call 10e168 <IMFS_Set_handlers>
if ( jnode->type != IMFS_DIRECTORY ) {
10ea91: 83 c4 10 add $0x10,%esp
10ea94: 83 7b 4c 01 cmpl $0x1,0x4c(%ebx)
10ea98: 75 08 jne 10eaa2 <IMFS_fsunmount+0x46>
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
10ea9a: 8d 43 54 lea 0x54(%ebx),%eax
10ea9d: 39 43 50 cmp %eax,0x50(%ebx)
10eaa0: 75 13 jne 10eab5 <IMFS_fsunmount+0x59>
result = IMFS_unlink( NULL, &loc );
if (result != 0)
return -1;
jnode = next;
} else if ( jnode_has_no_children( jnode ) ) {
result = IMFS_unlink( NULL, &loc );
10eaa2: 50 push %eax
10eaa3: 50 push %eax
10eaa4: 56 push %esi
10eaa5: 6a 00 push $0x0
10eaa7: e8 e4 86 ff ff call 107190 <IMFS_unlink>
if (result != 0)
10eaac: 83 c4 10 add $0x10,%esp
10eaaf: 85 c0 test %eax,%eax
10eab1: 75 1d jne 10ead0 <IMFS_fsunmount+0x74> <== NEVER TAKEN
10eab3: 89 fb mov %edi,%ebx
return -1;
jnode = next;
}
if ( jnode != NULL ) {
10eab5: 85 db test %ebx,%ebx
10eab7: 74 1c je 10ead5 <IMFS_fsunmount+0x79>
if ( jnode->type == IMFS_DIRECTORY ) {
10eab9: 83 7b 4c 01 cmpl $0x1,0x4c(%ebx)
10eabd: 75 c3 jne 10ea82 <IMFS_fsunmount+0x26> <== NEVER TAKEN
10eabf: 8d 43 54 lea 0x54(%ebx),%eax
10eac2: 39 43 50 cmp %eax,0x50(%ebx)
10eac5: 74 bb je 10ea82 <IMFS_fsunmount+0x26>
if ( jnode_has_children( jnode ) )
jnode = jnode_get_first_child( jnode );
10eac7: 8b 5b 50 mov 0x50(%ebx),%ebx
}
}
} while (jnode != NULL);
10eaca: 85 db test %ebx,%ebx
10eacc: 75 b4 jne 10ea82 <IMFS_fsunmount+0x26> <== ALWAYS TAKEN
10eace: eb 05 jmp 10ead5 <IMFS_fsunmount+0x79> <== NOT EXECUTED
10ead0: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
10ead3: eb 02 jmp 10ead7 <IMFS_fsunmount+0x7b> <== NOT EXECUTED
10ead5: 31 c0 xor %eax,%eax
return 0;
}
10ead7: 8d 65 f4 lea -0xc(%ebp),%esp
10eada: 5b pop %ebx
10eadb: 5e pop %esi
10eadc: 5f pop %edi
10eadd: c9 leave
10eade: c3 ret
0010eb6c <IMFS_get_token>:
const char *path,
int pathlen,
char *token,
int *token_len
)
{
10eb6c: 55 push %ebp
10eb6d: 89 e5 mov %esp,%ebp
10eb6f: 57 push %edi
10eb70: 56 push %esi
10eb71: 53 push %ebx
10eb72: 83 ec 1c sub $0x1c,%esp
10eb75: 8b 7d 08 mov 0x8(%ebp),%edi
10eb78: 8b 75 10 mov 0x10(%ebp),%esi
register char c;
/*
* Copy a name into token. (Remember NULL is a token.)
*/
c = path[i];
10eb7b: 8a 17 mov (%edi),%dl
10eb7d: 31 db xor %ebx,%ebx
while ( (!IMFS_is_separator(c)) && (i < pathlen) && (i <= IMFS_NAME_MAX) ) {
10eb7f: eb 16 jmp 10eb97 <IMFS_get_token+0x2b>
token[i] = c;
10eb81: 88 14 1e mov %dl,(%esi,%ebx,1)
if ( i == IMFS_NAME_MAX )
10eb84: 83 fb 20 cmp $0x20,%ebx
10eb87: 75 0a jne 10eb93 <IMFS_get_token+0x27>
10eb89: bf 04 00 00 00 mov $0x4,%edi
10eb8e: e9 8c 00 00 00 jmp 10ec1f <IMFS_get_token+0xb3>
return IMFS_INVALID_TOKEN;
if ( !IMFS_is_valid_name_char(c) )
type = IMFS_INVALID_TOKEN;
c = path [++i];
10eb93: 43 inc %ebx
10eb94: 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) ) {
10eb97: 83 ec 0c sub $0xc,%esp
10eb9a: 0f be c2 movsbl %dl,%eax
10eb9d: 50 push %eax
10eb9e: 88 55 e4 mov %dl,-0x1c(%ebp)
10eba1: e8 62 98 ff ff call 108408 <rtems_filesystem_is_separator>
10eba6: 83 c4 10 add $0x10,%esp
10eba9: 85 c0 test %eax,%eax
10ebab: 8a 55 e4 mov -0x1c(%ebp),%dl
10ebae: 75 05 jne 10ebb5 <IMFS_get_token+0x49>
10ebb0: 3b 5d 0c cmp 0xc(%ebp),%ebx
10ebb3: 7c cc jl 10eb81 <IMFS_get_token+0x15>
/*
* Copy a seperator into token.
*/
if ( i == 0 ) {
10ebb5: 85 db test %ebx,%ebx
10ebb7: 75 19 jne 10ebd2 <IMFS_get_token+0x66>
token[i] = c;
10ebb9: 88 16 mov %dl,(%esi)
if ( (token[i] != '\0') && pathlen ) {
10ebbb: 84 d2 test %dl,%dl
10ebbd: 74 0f je 10ebce <IMFS_get_token+0x62>
10ebbf: 83 7d 0c 00 cmpl $0x0,0xc(%ebp)
10ebc3: 74 09 je 10ebce <IMFS_get_token+0x62>
10ebc5: bf 01 00 00 00 mov $0x1,%edi
10ebca: b3 01 mov $0x1,%bl
10ebcc: eb 14 jmp 10ebe2 <IMFS_get_token+0x76>
10ebce: 31 ff xor %edi,%edi
10ebd0: eb 10 jmp 10ebe2 <IMFS_get_token+0x76>
i++;
type = IMFS_CURRENT_DIR;
} else {
type = IMFS_NO_MORE_PATH;
}
} else if (token[ i-1 ] != '\0') {
10ebd2: bf 03 00 00 00 mov $0x3,%edi
10ebd7: 80 7c 1e ff 00 cmpb $0x0,-0x1(%esi,%ebx,1)
10ebdc: 74 04 je 10ebe2 <IMFS_get_token+0x76> <== NEVER TAKEN
token[i] = '\0';
10ebde: c6 04 1e 00 movb $0x0,(%esi,%ebx,1)
/*
* Set token_len to the number of characters copied.
*/
*token_len = i;
10ebe2: 8b 45 14 mov 0x14(%ebp),%eax
10ebe5: 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 ) {
10ebe7: 83 ff 03 cmp $0x3,%edi
10ebea: 75 33 jne 10ec1f <IMFS_get_token+0xb3>
if ( strcmp( token, "..") == 0 )
10ebec: 52 push %edx
10ebed: 52 push %edx
10ebee: 68 7f 06 12 00 push $0x12067f
10ebf3: 56 push %esi
10ebf4: e8 37 49 00 00 call 113530 <strcmp>
10ebf9: 83 c4 10 add $0x10,%esp
10ebfc: 85 c0 test %eax,%eax
10ebfe: 75 06 jne 10ec06 <IMFS_get_token+0x9a>
10ec00: 66 bf 02 00 mov $0x2,%di
10ec04: eb 19 jmp 10ec1f <IMFS_get_token+0xb3>
type = IMFS_UP_DIR;
else if ( strcmp( token, "." ) == 0 )
10ec06: 50 push %eax
10ec07: 50 push %eax
10ec08: 68 80 06 12 00 push $0x120680
10ec0d: 56 push %esi
10ec0e: e8 1d 49 00 00 call 113530 <strcmp>
10ec13: 83 c4 10 add $0x10,%esp
10ec16: 85 c0 test %eax,%eax
10ec18: 75 05 jne 10ec1f <IMFS_get_token+0xb3>
10ec1a: bf 01 00 00 00 mov $0x1,%edi
type = IMFS_CURRENT_DIR;
}
return type;
}
10ec1f: 89 f8 mov %edi,%eax
10ec21: 8d 65 f4 lea -0xc(%ebp),%esp
10ec24: 5b pop %ebx
10ec25: 5e pop %esi
10ec26: 5f pop %edi
10ec27: c9 leave
10ec28: c3 ret
00106e10 <IMFS_initialize_support>:
rtems_filesystem_mount_table_entry_t *temp_mt_entry,
const rtems_filesystem_operations_table *op_table,
const rtems_filesystem_file_handlers_r *memfile_handlers,
const rtems_filesystem_file_handlers_r *directory_handlers
)
{
106e10: 55 push %ebp
106e11: 89 e5 mov %esp,%ebp
106e13: 57 push %edi
106e14: 56 push %esi
106e15: 53 push %ebx
106e16: 83 ec 0c sub $0xc,%esp
106e19: 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,
106e1c: 8b 0d 48 21 12 00 mov 0x122148,%ecx
106e22: 31 d2 xor %edx,%edx
106e24: b8 10 00 00 00 mov $0x10,%eax
int bit_mask;
/*
* check, whether requested bytes per block is valid
*/
for (bit_mask = 16; !is_valid && (bit_mask <= 512); bit_mask <<= 1) {
106e29: 39 c8 cmp %ecx,%eax
106e2b: 74 0d je 106e3a <IMFS_initialize_support+0x2a>
106e2d: d1 e0 shl %eax
106e2f: 42 inc %edx
106e30: 83 fa 06 cmp $0x6,%edx
106e33: 75 f4 jne 106e29 <IMFS_initialize_support+0x19><== ALWAYS TAKEN
106e35: b8 80 00 00 00 mov $0x80,%eax <== NOT EXECUTED
if (bit_mask == requested_bytes_per_block) {
is_valid = true;
}
}
*dest_bytes_per_block = ((is_valid)
106e3a: a3 a8 5d 12 00 mov %eax,0x125da8
/*
* 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();
106e3f: e8 ef 71 00 00 call 10e033 <IMFS_create_root_node>
106e44: 89 43 1c mov %eax,0x1c(%ebx)
temp_mt_entry->mt_fs_root.handlers = directory_handlers;
106e47: 8b 45 14 mov 0x14(%ebp),%eax
106e4a: 89 43 24 mov %eax,0x24(%ebx)
temp_mt_entry->mt_fs_root.ops = op_table;
106e4d: 8b 45 0c mov 0xc(%ebp),%eax
106e50: 89 43 28 mov %eax,0x28(%ebx)
temp_mt_entry->pathconf_limits_and_options = IMFS_LIMITS_AND_OPTIONS;
106e53: 8d 7b 38 lea 0x38(%ebx),%edi
106e56: be 9c 04 12 00 mov $0x12049c,%esi
106e5b: b9 0c 00 00 00 mov $0xc,%ecx
106e60: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
/*
* Create custom file system data.
*/
fs_info = calloc( 1, sizeof( IMFS_fs_info_t ) );
106e62: 50 push %eax
106e63: 50 push %eax
106e64: 6a 10 push $0x10
106e66: 6a 01 push $0x1
106e68: e8 4f 06 00 00 call 1074bc <calloc>
if ( !fs_info ) {
106e6d: 83 c4 10 add $0x10,%esp
106e70: 85 c0 test %eax,%eax
106e72: 75 1e jne 106e92 <IMFS_initialize_support+0x82><== ALWAYS TAKEN
free(temp_mt_entry->mt_fs_root.node_access);
106e74: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
106e77: ff 73 1c pushl 0x1c(%ebx) <== NOT EXECUTED
106e7a: e8 1d 08 00 00 call 10769c <free> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(ENOMEM);
106e7f: e8 90 bb 00 00 call 112a14 <__errno> <== NOT EXECUTED
106e84: c7 00 0c 00 00 00 movl $0xc,(%eax) <== NOT EXECUTED
106e8a: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
106e8d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
106e90: eb 36 jmp 106ec8 <IMFS_initialize_support+0xb8><== NOT EXECUTED
}
temp_mt_entry->fs_info = fs_info;
106e92: 89 43 34 mov %eax,0x34(%ebx)
/*
* Set st_ino for the root to 1.
*/
fs_info->instance = imfs_instance++;
106e95: 8b 15 ac 5d 12 00 mov 0x125dac,%edx
106e9b: 89 10 mov %edx,(%eax)
106e9d: 42 inc %edx
106e9e: 89 15 ac 5d 12 00 mov %edx,0x125dac
fs_info->ino_count = 1;
106ea4: c7 40 04 01 00 00 00 movl $0x1,0x4(%eax)
fs_info->memfile_handlers = memfile_handlers;
106eab: 8b 55 10 mov 0x10(%ebp),%edx
106eae: 89 50 08 mov %edx,0x8(%eax)
fs_info->directory_handlers = directory_handlers;
106eb1: 8b 55 14 mov 0x14(%ebp),%edx
106eb4: 89 50 0c mov %edx,0xc(%eax)
jnode = temp_mt_entry->mt_fs_root.node_access;
jnode->st_ino = fs_info->ino_count;
106eb7: 8b 43 1c mov 0x1c(%ebx),%eax
106eba: c7 40 38 01 00 00 00 movl $0x1,0x38(%eax)
/* Initialize POSIX FIFO/pipe module */
rtems_pipe_initialize();
106ec1: e8 74 68 00 00 call 10d73a <rtems_pipe_initialize>
106ec6: 31 c0 xor %eax,%eax
return 0;
}
106ec8: 8d 65 f4 lea -0xc(%ebp),%esp
106ecb: 5b pop %ebx
106ecc: 5e pop %esi
106ecd: 5f pop %edi
106ece: c9 leave
106ecf: c3 ret
00106ed0 <IMFS_link>:
int IMFS_link(
rtems_filesystem_location_info_t *to_loc, /* IN */
rtems_filesystem_location_info_t *parent_loc, /* IN */
const char *token /* IN */
)
{
106ed0: 55 push %ebp
106ed1: 89 e5 mov %esp,%ebp
106ed3: 57 push %edi
106ed4: 53 push %ebx
106ed5: 83 ec 50 sub $0x50,%esp
106ed8: 8b 55 10 mov 0x10(%ebp),%edx
int i;
/*
* Verify this node can be linked to.
*/
info.hard_link.link_node = to_loc->node_access;
106edb: 8b 45 08 mov 0x8(%ebp),%eax
106ede: 8b 00 mov (%eax),%eax
106ee0: 89 45 d8 mov %eax,-0x28(%ebp)
if ( info.hard_link.link_node->st_nlink >= LINK_MAX )
106ee3: 66 83 78 34 07 cmpw $0x7,0x34(%eax)
106ee8: 76 0d jbe 106ef7 <IMFS_link+0x27>
rtems_set_errno_and_return_minus_one( EMLINK );
106eea: e8 25 bb 00 00 call 112a14 <__errno>
106eef: c7 00 1f 00 00 00 movl $0x1f,(%eax)
106ef5: eb 43 jmp 106f3a <IMFS_link+0x6a>
/*
* Remove any separators at the end of the string.
*/
IMFS_get_token( token, strlen( token ), new_name, &i );
106ef7: 31 c0 xor %eax,%eax
106ef9: 83 c9 ff or $0xffffffff,%ecx
106efc: 89 d7 mov %edx,%edi
106efe: f2 ae repnz scas %es:(%edi),%al
106f00: f7 d1 not %ecx
106f02: 49 dec %ecx
106f03: 8d 45 f4 lea -0xc(%ebp),%eax
106f06: 50 push %eax
106f07: 8d 5d b7 lea -0x49(%ebp),%ebx
106f0a: 53 push %ebx
106f0b: 51 push %ecx
106f0c: 52 push %edx
106f0d: e8 5a 7c 00 00 call 10eb6c <IMFS_get_token>
* was ONLY passed a NULL when we created the root node. We
* added a new IMFS_create_root_node() so this path no longer
* existed. The result was simpler code which should not have
* this path.
*/
new_node = IMFS_create_node(
106f12: 8d 45 d8 lea -0x28(%ebp),%eax
106f15: 89 04 24 mov %eax,(%esp)
106f18: 68 ff a1 00 00 push $0xa1ff
106f1d: 53 push %ebx
106f1e: 6a 03 push $0x3
106f20: ff 75 0c pushl 0xc(%ebp)
106f23: e8 3e 71 00 00 call 10e066 <IMFS_create_node>
new_name,
( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )),
&info
);
if ( !new_node )
106f28: 83 c4 20 add $0x20,%esp
106f2b: 85 c0 test %eax,%eax
106f2d: 75 10 jne 106f3f <IMFS_link+0x6f> <== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( ENOMEM );
106f2f: e8 e0 ba 00 00 call 112a14 <__errno> <== NOT EXECUTED
106f34: c7 00 0c 00 00 00 movl $0xc,(%eax) <== NOT EXECUTED
106f3a: 83 c8 ff or $0xffffffff,%eax
106f3d: eb 22 jmp 106f61 <IMFS_link+0x91>
/*
* Increment the link count of the node being pointed to.
*/
info.hard_link.link_node->st_nlink++;
106f3f: 8b 45 d8 mov -0x28(%ebp),%eax
106f42: 66 ff 40 34 incw 0x34(%eax)
IMFS_update_ctime( info.hard_link.link_node );
106f46: 50 push %eax
106f47: 50 push %eax
106f48: 6a 00 push $0x0
106f4a: 8d 45 ec lea -0x14(%ebp),%eax
106f4d: 50 push %eax
106f4e: e8 c1 07 00 00 call 107714 <gettimeofday>
106f53: 8b 55 ec mov -0x14(%ebp),%edx
106f56: 8b 45 d8 mov -0x28(%ebp),%eax
106f59: 89 50 48 mov %edx,0x48(%eax)
106f5c: 31 c0 xor %eax,%eax
return 0;
106f5e: 83 c4 10 add $0x10,%esp
}
106f61: 8d 65 f8 lea -0x8(%ebp),%esp
106f64: 5b pop %ebx
106f65: 5f pop %edi
106f66: c9 leave
106f67: c3 ret
00110ddc <IMFS_memfile_addblock>:
MEMFILE_STATIC int IMFS_memfile_addblock(
IMFS_jnode_t *the_jnode,
unsigned int block
)
{
110ddc: 55 push %ebp
110ddd: 89 e5 mov %esp,%ebp
110ddf: 53 push %ebx
110de0: 83 ec 04 sub $0x4,%esp
110de3: 8b 45 08 mov 0x8(%ebp),%eax
block_p memory;
block_p *block_entry_ptr;
assert( the_jnode );
110de6: 85 c0 test %eax,%eax
110de8: 75 11 jne 110dfb <IMFS_memfile_addblock+0x1f><== ALWAYS TAKEN
110dea: 68 d0 09 12 00 push $0x1209d0 <== NOT EXECUTED
110def: 68 7c 0b 12 00 push $0x120b7c <== NOT EXECUTED
110df4: 68 69 01 00 00 push $0x169 <== NOT EXECUTED
110df9: eb 15 jmp 110e10 <IMFS_memfile_addblock+0x34><== NOT EXECUTED
if ( !the_jnode )
rtems_set_errno_and_return_minus_one( EIO );
assert( the_jnode->type == IMFS_MEMORY_FILE );
110dfb: 83 78 4c 05 cmpl $0x5,0x4c(%eax)
110dff: 74 19 je 110e1a <IMFS_memfile_addblock+0x3e><== ALWAYS TAKEN
110e01: 68 27 0a 12 00 push $0x120a27 <== NOT EXECUTED
110e06: 68 7c 0b 12 00 push $0x120b7c <== NOT EXECUTED
110e0b: 68 6d 01 00 00 push $0x16d <== NOT EXECUTED
110e10: 68 da 09 12 00 push $0x1209da <== NOT EXECUTED
110e15: e8 86 65 ff ff call 1073a0 <__assert_func> <== NOT EXECUTED
if ( the_jnode->type != IMFS_MEMORY_FILE )
rtems_set_errno_and_return_minus_one( EIO );
block_entry_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 1 );
110e1a: 52 push %edx
110e1b: 6a 01 push $0x1
110e1d: ff 75 0c pushl 0xc(%ebp)
110e20: 50 push %eax
110e21: e8 90 fb ff ff call 1109b6 <IMFS_memfile_get_block_pointer>
110e26: 89 c3 mov %eax,%ebx
if ( *block_entry_ptr )
110e28: 83 c4 10 add $0x10,%esp
110e2b: 31 c0 xor %eax,%eax
110e2d: 83 3b 00 cmpl $0x0,(%ebx)
110e30: 75 14 jne 110e46 <IMFS_memfile_addblock+0x6a>
#if 0
fprintf(stdout, "%d %p", block, block_entry_ptr );
fflush(stdout);
#endif
memory = memfile_alloc_block();
110e32: e8 5d fb ff ff call 110994 <memfile_alloc_block>
110e37: 89 c2 mov %eax,%edx
if ( !memory )
110e39: b8 01 00 00 00 mov $0x1,%eax
110e3e: 85 d2 test %edx,%edx
110e40: 74 04 je 110e46 <IMFS_memfile_addblock+0x6a><== NEVER TAKEN
return 1;
*block_entry_ptr = memory;
110e42: 89 13 mov %edx,(%ebx)
110e44: 30 c0 xor %al,%al
return 0;
}
110e46: 8b 5d fc mov -0x4(%ebp),%ebx
110e49: c9 leave
110e4a: c3 ret
00110e4b <IMFS_memfile_extend>:
MEMFILE_STATIC int IMFS_memfile_extend(
IMFS_jnode_t *the_jnode,
off_t new_length
)
{
110e4b: 55 push %ebp
110e4c: 89 e5 mov %esp,%ebp
110e4e: 57 push %edi
110e4f: 56 push %esi
110e50: 53 push %ebx
110e51: 83 ec 2c sub $0x2c,%esp
110e54: 8b 5d 08 mov 0x8(%ebp),%ebx
110e57: 8b 75 0c mov 0xc(%ebp),%esi
110e5a: 8b 7d 10 mov 0x10(%ebp),%edi
/*
* Perform internal consistency checks
*/
assert( the_jnode );
110e5d: 85 db test %ebx,%ebx
110e5f: 75 11 jne 110e72 <IMFS_memfile_extend+0x27><== ALWAYS TAKEN
110e61: 68 d0 09 12 00 push $0x1209d0 <== NOT EXECUTED
110e66: 68 94 0b 12 00 push $0x120b94 <== NOT EXECUTED
110e6b: 68 31 01 00 00 push $0x131 <== NOT EXECUTED
110e70: eb 15 jmp 110e87 <IMFS_memfile_extend+0x3c><== NOT EXECUTED
if ( !the_jnode )
rtems_set_errno_and_return_minus_one( EIO );
assert( the_jnode->type == IMFS_MEMORY_FILE );
110e72: 83 7b 4c 05 cmpl $0x5,0x4c(%ebx)
110e76: 74 19 je 110e91 <IMFS_memfile_extend+0x46><== ALWAYS TAKEN
110e78: 68 27 0a 12 00 push $0x120a27 <== NOT EXECUTED
110e7d: 68 94 0b 12 00 push $0x120b94 <== NOT EXECUTED
110e82: 68 35 01 00 00 push $0x135 <== NOT EXECUTED
110e87: 68 da 09 12 00 push $0x1209da <== NOT EXECUTED
110e8c: e8 0f 65 ff ff call 1073a0 <__assert_func> <== NOT EXECUTED
if ( the_jnode->type != IMFS_MEMORY_FILE )
rtems_set_errno_and_return_minus_one( EIO );
if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE )
110e91: a1 a8 5d 12 00 mov 0x125da8,%eax
110e96: 89 c1 mov %eax,%ecx
110e98: c1 e9 02 shr $0x2,%ecx
110e9b: 8d 51 01 lea 0x1(%ecx),%edx
110e9e: 0f af d1 imul %ecx,%edx
110ea1: 42 inc %edx
110ea2: 0f af d1 imul %ecx,%edx
110ea5: 4a dec %edx
110ea6: 0f af d0 imul %eax,%edx
110ea9: 83 ff 00 cmp $0x0,%edi
110eac: 7c 16 jl 110ec4 <IMFS_memfile_extend+0x79><== NEVER TAKEN
110eae: 7f 04 jg 110eb4 <IMFS_memfile_extend+0x69><== NEVER TAKEN
110eb0: 39 d6 cmp %edx,%esi
110eb2: 72 10 jb 110ec4 <IMFS_memfile_extend+0x79><== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( EINVAL );
110eb4: e8 5b 1b 00 00 call 112a14 <__errno> <== NOT EXECUTED
110eb9: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
110ebf: e9 92 00 00 00 jmp 110f56 <IMFS_memfile_extend+0x10b><== NOT EXECUTED
if ( new_length <= the_jnode->info.file.size )
110ec4: 8b 53 50 mov 0x50(%ebx),%edx
110ec7: 8b 4b 54 mov 0x54(%ebx),%ecx
110eca: 89 55 e0 mov %edx,-0x20(%ebp)
110ecd: 89 4d e4 mov %ecx,-0x1c(%ebp)
110ed0: 39 cf cmp %ecx,%edi
110ed2: 7f 0e jg 110ee2 <IMFS_memfile_extend+0x97><== NEVER TAKEN
110ed4: 0f 8c 8d 00 00 00 jl 110f67 <IMFS_memfile_extend+0x11c><== NEVER TAKEN
110eda: 39 d6 cmp %edx,%esi
110edc: 0f 86 85 00 00 00 jbe 110f67 <IMFS_memfile_extend+0x11c>
/*
* Calculate the number of range of blocks to allocate
*/
new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK;
110ee2: 89 45 d8 mov %eax,-0x28(%ebp)
110ee5: 89 c1 mov %eax,%ecx
110ee7: c1 f9 1f sar $0x1f,%ecx
110eea: 89 4d dc mov %ecx,-0x24(%ebp)
110eed: ff 75 dc pushl -0x24(%ebp)
110ef0: ff 75 d8 pushl -0x28(%ebp)
110ef3: 57 push %edi
110ef4: 56 push %esi
110ef5: e8 b2 cb 00 00 call 11daac <__divdi3>
110efa: 83 c4 10 add $0x10,%esp
110efd: 89 45 d4 mov %eax,-0x2c(%ebp)
old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK;
110f00: ff 75 dc pushl -0x24(%ebp)
110f03: ff 75 d8 pushl -0x28(%ebp)
110f06: ff 75 e4 pushl -0x1c(%ebp)
110f09: ff 75 e0 pushl -0x20(%ebp)
110f0c: e8 9b cb 00 00 call 11daac <__divdi3>
110f11: 83 c4 10 add $0x10,%esp
110f14: 89 45 e0 mov %eax,-0x20(%ebp)
110f17: 89 c2 mov %eax,%edx
/*
* Now allocate each of those blocks.
*/
for ( block=old_blocks ; block<=new_blocks ; block++ ) {
110f19: eb 41 jmp 110f5c <IMFS_memfile_extend+0x111>
if ( IMFS_memfile_addblock( the_jnode, block ) ) {
110f1b: 50 push %eax
110f1c: 50 push %eax
110f1d: 52 push %edx
110f1e: 53 push %ebx
110f1f: 89 55 d0 mov %edx,-0x30(%ebp)
110f22: e8 b5 fe ff ff call 110ddc <IMFS_memfile_addblock>
110f27: 83 c4 10 add $0x10,%esp
110f2a: 85 c0 test %eax,%eax
110f2c: 8b 55 d0 mov -0x30(%ebp),%edx
110f2f: 74 2a je 110f5b <IMFS_memfile_extend+0x110><== ALWAYS TAKEN
110f31: eb 13 jmp 110f46 <IMFS_memfile_extend+0xfb><== NOT EXECUTED
for ( ; block>=old_blocks ; block-- ) {
IMFS_memfile_remove_block( the_jnode, block );
110f33: 51 push %ecx <== NOT EXECUTED
110f34: 51 push %ecx <== NOT EXECUTED
110f35: 52 push %edx <== NOT EXECUTED
110f36: 53 push %ebx <== NOT EXECUTED
110f37: 89 55 d0 mov %edx,-0x30(%ebp) <== NOT EXECUTED
110f3a: e8 5c fc ff ff call 110b9b <IMFS_memfile_remove_block><== NOT EXECUTED
* Now allocate each of those blocks.
*/
for ( block=old_blocks ; block<=new_blocks ; block++ ) {
if ( IMFS_memfile_addblock( the_jnode, block ) ) {
for ( ; block>=old_blocks ; block-- ) {
110f3f: 8b 55 d0 mov -0x30(%ebp),%edx <== NOT EXECUTED
110f42: 4a dec %edx <== NOT EXECUTED
110f43: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
110f46: 3b 55 e0 cmp -0x20(%ebp),%edx <== NOT EXECUTED
110f49: 73 e8 jae 110f33 <IMFS_memfile_extend+0xe8><== NOT EXECUTED
IMFS_memfile_remove_block( the_jnode, block );
}
rtems_set_errno_and_return_minus_one( ENOSPC );
110f4b: e8 c4 1a 00 00 call 112a14 <__errno> <== NOT EXECUTED
110f50: c7 00 1c 00 00 00 movl $0x1c,(%eax) <== NOT EXECUTED
110f56: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
110f59: eb 0e jmp 110f69 <IMFS_memfile_extend+0x11e><== NOT EXECUTED
/*
* Now allocate each of those blocks.
*/
for ( block=old_blocks ; block<=new_blocks ; block++ ) {
110f5b: 42 inc %edx
110f5c: 3b 55 d4 cmp -0x2c(%ebp),%edx
110f5f: 76 ba jbe 110f1b <IMFS_memfile_extend+0xd0>
/*
* Set the new length of the file.
*/
the_jnode->info.file.size = new_length;
110f61: 89 73 50 mov %esi,0x50(%ebx)
110f64: 89 7b 54 mov %edi,0x54(%ebx)
110f67: 31 c0 xor %eax,%eax
return 0;
}
110f69: 8d 65 f4 lea -0xc(%ebp),%esp
110f6c: 5b pop %ebx
110f6d: 5e pop %esi
110f6e: 5f pop %edi
110f6f: c9 leave
110f70: c3 ret
001109b6 <IMFS_memfile_get_block_pointer>:
#endif
IMFS_jnode_t *the_jnode,
unsigned int block,
int malloc_it
)
{
1109b6: 55 push %ebp
1109b7: 89 e5 mov %esp,%ebp
1109b9: 57 push %edi
1109ba: 56 push %esi
1109bb: 53 push %ebx
1109bc: 83 ec 1c sub $0x1c,%esp
1109bf: 8b 5d 08 mov 0x8(%ebp),%ebx
1109c2: 8b 7d 0c mov 0xc(%ebp),%edi
1109c5: 8b 75 10 mov 0x10(%ebp),%esi
/*
* Perform internal consistency checks
*/
assert( the_jnode );
1109c8: 85 db test %ebx,%ebx
1109ca: 75 11 jne 1109dd <IMFS_memfile_get_block_pointer+0x27><== ALWAYS TAKEN
1109cc: 68 d0 09 12 00 push $0x1209d0 <== NOT EXECUTED
1109d1: 68 e4 0a 12 00 push $0x120ae4 <== NOT EXECUTED
1109d6: 68 88 03 00 00 push $0x388 <== NOT EXECUTED
1109db: eb 15 jmp 1109f2 <IMFS_memfile_get_block_pointer+0x3c><== NOT EXECUTED
if ( !the_jnode )
return NULL;
assert( the_jnode->type == IMFS_MEMORY_FILE );
1109dd: 83 7b 4c 05 cmpl $0x5,0x4c(%ebx)
1109e1: 74 19 je 1109fc <IMFS_memfile_get_block_pointer+0x46><== ALWAYS TAKEN
1109e3: 68 27 0a 12 00 push $0x120a27 <== NOT EXECUTED
1109e8: 68 e4 0a 12 00 push $0x120ae4 <== NOT EXECUTED
1109ed: 68 8c 03 00 00 push $0x38c <== NOT EXECUTED
1109f2: 68 da 09 12 00 push $0x1209da <== NOT EXECUTED
1109f7: e8 a4 69 ff ff call 1073a0 <__assert_func> <== NOT EXECUTED
/*
* Is the block number in the simple indirect portion?
*/
if ( my_block <= LAST_INDIRECT ) {
1109fc: 8b 0d a8 5d 12 00 mov 0x125da8,%ecx
110a02: c1 e9 02 shr $0x2,%ecx
110a05: 8d 41 ff lea -0x1(%ecx),%eax
110a08: 39 c7 cmp %eax,%edi
110a0a: 77 32 ja 110a3e <IMFS_memfile_get_block_pointer+0x88><== NEVER TAKEN
#if 0
fprintf(stdout, "(s %d) ", block );
fflush(stdout);
#endif
p = info->indirect;
110a0c: 8b 53 58 mov 0x58(%ebx),%edx
if ( malloc_it ) {
110a0f: 85 f6 test %esi,%esi
110a11: 74 23 je 110a36 <IMFS_memfile_get_block_pointer+0x80>
if ( !p ) {
110a13: 85 d2 test %edx,%edx
110a15: 75 10 jne 110a27 <IMFS_memfile_get_block_pointer+0x71>
p = memfile_alloc_block();
110a17: e8 78 ff ff ff call 110994 <memfile_alloc_block>
if ( !p )
110a1c: 85 c0 test %eax,%eax
110a1e: 0f 84 03 01 00 00 je 110b27 <IMFS_memfile_get_block_pointer+0x171><== NEVER TAKEN
return 0;
info->indirect = p;
110a24: 89 43 58 mov %eax,0x58(%ebx)
}
return &info->indirect[ my_block ];
110a27: 8d 04 bd 00 00 00 00 lea 0x0(,%edi,4),%eax
110a2e: 03 43 58 add 0x58(%ebx),%eax
110a31: e9 f3 00 00 00 jmp 110b29 <IMFS_memfile_get_block_pointer+0x173>
}
if ( !p )
return 0;
return &info->indirect[ my_block ];
110a36: 8d 04 ba lea (%edx,%edi,4),%eax
110a39: e9 e5 00 00 00 jmp 110b23 <IMFS_memfile_get_block_pointer+0x16d>
/*
* Is the block number in the doubly indirect portion?
*/
if ( my_block <= LAST_DOUBLY_INDIRECT ) {
110a3e: 8d 41 01 lea 0x1(%ecx),%eax <== NOT EXECUTED
110a41: 0f af c1 imul %ecx,%eax <== NOT EXECUTED
110a44: 8d 50 ff lea -0x1(%eax),%edx <== NOT EXECUTED
110a47: 39 d7 cmp %edx,%edi <== NOT EXECUTED
110a49: 77 58 ja 110aa3 <IMFS_memfile_get_block_pointer+0xed><== NOT EXECUTED
#if 0
fprintf(stdout, "(d %d) ", block );
fflush(stdout);
#endif
my_block -= FIRST_DOUBLY_INDIRECT;
110a4b: 29 cf sub %ecx,%edi <== NOT EXECUTED
singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;
110a4d: 89 f8 mov %edi,%eax <== NOT EXECUTED
110a4f: 31 d2 xor %edx,%edx <== NOT EXECUTED
110a51: f7 f1 div %ecx <== NOT EXECUTED
110a53: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED
110a56: 89 c7 mov %eax,%edi <== NOT EXECUTED
doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;
p = info->doubly_indirect;
110a58: 8b 43 5c mov 0x5c(%ebx),%eax <== NOT EXECUTED
if ( malloc_it ) {
110a5b: 85 f6 test %esi,%esi <== NOT EXECUTED
110a5d: 74 37 je 110a96 <IMFS_memfile_get_block_pointer+0xe0><== NOT EXECUTED
if ( !p ) {
110a5f: 85 c0 test %eax,%eax <== NOT EXECUTED
110a61: 75 10 jne 110a73 <IMFS_memfile_get_block_pointer+0xbd><== NOT EXECUTED
p = memfile_alloc_block();
110a63: e8 2c ff ff ff call 110994 <memfile_alloc_block> <== NOT EXECUTED
if ( !p )
110a68: 85 c0 test %eax,%eax <== NOT EXECUTED
110a6a: 0f 84 b7 00 00 00 je 110b27 <IMFS_memfile_get_block_pointer+0x171><== NOT EXECUTED
return 0;
info->doubly_indirect = p;
110a70: 89 43 5c mov %eax,0x5c(%ebx) <== NOT EXECUTED
}
p1 = (block_p *)p[ doubly ];
110a73: 8d 1c b8 lea (%eax,%edi,4),%ebx <== NOT EXECUTED
110a76: 8b 03 mov (%ebx),%eax <== NOT EXECUTED
if ( !p1 ) {
110a78: 85 c0 test %eax,%eax <== NOT EXECUTED
110a7a: 75 0f jne 110a8b <IMFS_memfile_get_block_pointer+0xd5><== NOT EXECUTED
p1 = memfile_alloc_block();
110a7c: e8 13 ff ff ff call 110994 <memfile_alloc_block> <== NOT EXECUTED
if ( !p1 )
110a81: 85 c0 test %eax,%eax <== NOT EXECUTED
110a83: 0f 84 9e 00 00 00 je 110b27 <IMFS_memfile_get_block_pointer+0x171><== NOT EXECUTED
return 0;
p[ doubly ] = (block_p) p1;
110a89: 89 03 mov %eax,(%ebx) <== NOT EXECUTED
}
return (block_p *)&p1[ singly ];
110a8b: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED
110a8e: 8d 04 88 lea (%eax,%ecx,4),%eax <== NOT EXECUTED
110a91: e9 93 00 00 00 jmp 110b29 <IMFS_memfile_get_block_pointer+0x173><== NOT EXECUTED
}
if ( !p )
110a96: 85 c0 test %eax,%eax <== NOT EXECUTED
110a98: 0f 84 89 00 00 00 je 110b27 <IMFS_memfile_get_block_pointer+0x171><== NOT EXECUTED
return 0;
p = (block_p *)p[ doubly ];
110a9e: 8b 14 b8 mov (%eax,%edi,4),%edx <== NOT EXECUTED
110aa1: eb 7a jmp 110b1d <IMFS_memfile_get_block_pointer+0x167><== NOT EXECUTED
#endif
/*
* Is the block number in the triply indirect portion?
*/
if ( my_block <= LAST_TRIPLY_INDIRECT ) {
110aa3: 8d 50 01 lea 0x1(%eax),%edx <== NOT EXECUTED
110aa6: 0f af d1 imul %ecx,%edx <== NOT EXECUTED
110aa9: 4a dec %edx <== NOT EXECUTED
110aaa: 39 d7 cmp %edx,%edi <== NOT EXECUTED
110aac: 77 79 ja 110b27 <IMFS_memfile_get_block_pointer+0x171><== NOT EXECUTED
my_block -= FIRST_TRIPLY_INDIRECT;
110aae: 29 c7 sub %eax,%edi <== NOT EXECUTED
110ab0: 89 f8 mov %edi,%eax <== NOT EXECUTED
singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;
110ab2: 31 d2 xor %edx,%edx <== NOT EXECUTED
110ab4: f7 f1 div %ecx <== NOT EXECUTED
110ab6: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED
doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;
triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS;
110ab9: 31 d2 xor %edx,%edx <== NOT EXECUTED
110abb: f7 f1 div %ecx <== NOT EXECUTED
110abd: 89 55 e0 mov %edx,-0x20(%ebp) <== NOT EXECUTED
110ac0: 89 c7 mov %eax,%edi <== NOT EXECUTED
doubly %= IMFS_MEMFILE_BLOCK_SLOTS;
p = info->triply_indirect;
110ac2: 8b 43 60 mov 0x60(%ebx),%eax <== NOT EXECUTED
if ( malloc_it ) {
110ac5: 85 f6 test %esi,%esi <== NOT EXECUTED
110ac7: 74 43 je 110b0c <IMFS_memfile_get_block_pointer+0x156><== NOT EXECUTED
if ( !p ) {
110ac9: 85 c0 test %eax,%eax <== NOT EXECUTED
110acb: 75 0c jne 110ad9 <IMFS_memfile_get_block_pointer+0x123><== NOT EXECUTED
p = memfile_alloc_block();
110acd: e8 c2 fe ff ff call 110994 <memfile_alloc_block> <== NOT EXECUTED
if ( !p )
110ad2: 85 c0 test %eax,%eax <== NOT EXECUTED
110ad4: 74 51 je 110b27 <IMFS_memfile_get_block_pointer+0x171><== NOT EXECUTED
return 0;
info->triply_indirect = p;
110ad6: 89 43 60 mov %eax,0x60(%ebx) <== NOT EXECUTED
}
p1 = (block_p *) p[ triply ];
110ad9: 8d 1c b8 lea (%eax,%edi,4),%ebx <== NOT EXECUTED
110adc: 8b 03 mov (%ebx),%eax <== NOT EXECUTED
if ( !p1 ) {
110ade: 85 c0 test %eax,%eax <== NOT EXECUTED
110ae0: 75 0b jne 110aed <IMFS_memfile_get_block_pointer+0x137><== NOT EXECUTED
p1 = memfile_alloc_block();
110ae2: e8 ad fe ff ff call 110994 <memfile_alloc_block> <== NOT EXECUTED
if ( !p1 )
110ae7: 85 c0 test %eax,%eax <== NOT EXECUTED
110ae9: 74 3c je 110b27 <IMFS_memfile_get_block_pointer+0x171><== NOT EXECUTED
return 0;
p[ triply ] = (block_p) p1;
110aeb: 89 03 mov %eax,(%ebx) <== NOT EXECUTED
}
p2 = (block_p *)p1[ doubly ];
110aed: 8b 4d e0 mov -0x20(%ebp),%ecx <== NOT EXECUTED
110af0: 8d 1c 88 lea (%eax,%ecx,4),%ebx <== NOT EXECUTED
110af3: 8b 03 mov (%ebx),%eax <== NOT EXECUTED
if ( !p2 ) {
110af5: 85 c0 test %eax,%eax <== NOT EXECUTED
110af7: 75 0b jne 110b04 <IMFS_memfile_get_block_pointer+0x14e><== NOT EXECUTED
p2 = memfile_alloc_block();
110af9: e8 96 fe ff ff call 110994 <memfile_alloc_block> <== NOT EXECUTED
if ( !p2 )
110afe: 85 c0 test %eax,%eax <== NOT EXECUTED
110b00: 74 25 je 110b27 <IMFS_memfile_get_block_pointer+0x171><== NOT EXECUTED
return 0;
p1[ doubly ] = (block_p) p2;
110b02: 89 03 mov %eax,(%ebx) <== NOT EXECUTED
}
return (block_p *)&p2[ singly ];
110b04: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
110b07: 8d 04 90 lea (%eax,%edx,4),%eax <== NOT EXECUTED
110b0a: eb 1d jmp 110b29 <IMFS_memfile_get_block_pointer+0x173><== NOT EXECUTED
}
if ( !p )
110b0c: 85 c0 test %eax,%eax <== NOT EXECUTED
110b0e: 74 17 je 110b27 <IMFS_memfile_get_block_pointer+0x171><== NOT EXECUTED
#if 0
fprintf(stdout, "(t %d %d %d %d %d) ", block, my_block, triply, doubly, singly );
fflush(stdout);
#endif
p1 = (block_p *) p[ triply ];
110b10: 8b 04 b8 mov (%eax,%edi,4),%eax <== NOT EXECUTED
if ( !p1 )
110b13: 85 c0 test %eax,%eax <== NOT EXECUTED
110b15: 74 10 je 110b27 <IMFS_memfile_get_block_pointer+0x171><== NOT EXECUTED
return 0;
p2 = (block_p *)p1[ doubly ];
110b17: 8b 4d e0 mov -0x20(%ebp),%ecx <== NOT EXECUTED
110b1a: 8b 14 88 mov (%eax,%ecx,4),%edx <== NOT EXECUTED
if ( !p2 )
return 0;
return (block_p *)&p2[ singly ];
110b1d: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED
110b20: 8d 04 8a lea (%edx,%ecx,4),%eax <== NOT EXECUTED
p1 = (block_p *) p[ triply ];
if ( !p1 )
return 0;
p2 = (block_p *)p1[ doubly ];
if ( !p2 )
110b23: 85 d2 test %edx,%edx
110b25: 75 02 jne 110b29 <IMFS_memfile_get_block_pointer+0x173><== ALWAYS TAKEN
return 0;
return (block_p *)&p2[ singly ];
110b27: 31 c0 xor %eax,%eax
/*
* This means the requested block number is out of range.
*/
return 0;
}
110b29: 8d 65 f4 lea -0xc(%ebp),%esp
110b2c: 5b pop %ebx
110b2d: 5e pop %esi
110b2e: 5f pop %edi
110b2f: c9 leave
110b30: c3 ret
001112e2 <IMFS_memfile_read>:
IMFS_jnode_t *the_jnode,
off_t start,
unsigned char *destination,
unsigned int length
)
{
1112e2: 55 push %ebp
1112e3: 89 e5 mov %esp,%ebp
1112e5: 57 push %edi
1112e6: 56 push %esi
1112e7: 53 push %ebx
1112e8: 83 ec 3c sub $0x3c,%esp
1112eb: 8b 75 0c mov 0xc(%ebp),%esi
1112ee: 8b 7d 10 mov 0x10(%ebp),%edi
/*
* Perform internal consistency checks
*/
assert( the_jnode );
1112f1: 83 7d 08 00 cmpl $0x0,0x8(%ebp)
1112f5: 75 11 jne 111308 <IMFS_memfile_read+0x26><== ALWAYS TAKEN
1112f7: 68 d0 09 12 00 push $0x1209d0 <== NOT EXECUTED
1112fc: 68 18 0b 12 00 push $0x120b18 <== NOT EXECUTED
111301: 68 4c 02 00 00 push $0x24c <== NOT EXECUTED
111306: eb 1d jmp 111325 <IMFS_memfile_read+0x43><== NOT EXECUTED
if ( !the_jnode )
rtems_set_errno_and_return_minus_one( EIO );
assert( the_jnode->type == IMFS_MEMORY_FILE ||
111308: 8b 55 08 mov 0x8(%ebp),%edx
11130b: 8b 42 4c mov 0x4c(%edx),%eax
11130e: 8d 48 fb lea -0x5(%eax),%ecx
111311: 83 f9 01 cmp $0x1,%ecx
111314: 76 19 jbe 11132f <IMFS_memfile_read+0x4d><== ALWAYS TAKEN
111316: 68 91 0a 12 00 push $0x120a91 <== NOT EXECUTED
11131b: 68 18 0b 12 00 push $0x120b18 <== NOT EXECUTED
111320: 68 51 02 00 00 push $0x251 <== NOT EXECUTED
111325: 68 da 09 12 00 push $0x1209da <== NOT EXECUTED
11132a: e8 71 60 ff ff call 1073a0 <__assert_func> <== NOT EXECUTED
/*
* Error checks on arguments
*/
assert( dest );
11132f: 83 7d 14 00 cmpl $0x0,0x14(%ebp)
111333: 75 11 jne 111346 <IMFS_memfile_read+0x64><== ALWAYS TAKEN
111335: 68 dc 0a 12 00 push $0x120adc <== NOT EXECUTED
11133a: 68 18 0b 12 00 push $0x120b18 <== NOT EXECUTED
11133f: 68 5a 02 00 00 push $0x25a <== NOT EXECUTED
111344: eb df jmp 111325 <IMFS_memfile_read+0x43><== NOT EXECUTED
/*
* If there is nothing to read, then quick exit.
*/
my_length = length;
if ( !my_length )
111346: 83 7d 18 00 cmpl $0x0,0x18(%ebp)
11134a: 75 13 jne 11135f <IMFS_memfile_read+0x7d><== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( EINVAL );
11134c: e8 c3 16 00 00 call 112a14 <__errno> <== NOT EXECUTED
111351: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
111357: 83 ca ff or $0xffffffff,%edx <== NOT EXECUTED
11135a: e9 d0 01 00 00 jmp 11152f <IMFS_memfile_read+0x24d><== NOT EXECUTED
/*
* Linear files (as created from a tar file are easier to handle
* than block files).
*/
if (the_jnode->type == IMFS_LINEAR_FILE) {
11135f: 83 f8 06 cmp $0x6,%eax
111362: 75 64 jne 1113c8 <IMFS_memfile_read+0xe6><== ALWAYS TAKEN
unsigned char *file_ptr;
file_ptr = (unsigned char *)the_jnode->info.linearfile.direct;
111364: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
111367: 8b 49 58 mov 0x58(%ecx),%ecx <== NOT EXECUTED
11136a: 89 4d c8 mov %ecx,-0x38(%ebp) <== NOT EXECUTED
if (my_length > (the_jnode->info.linearfile.size - start))
11136d: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
111370: 8b 48 50 mov 0x50(%eax),%ecx <== NOT EXECUTED
111373: 8b 58 54 mov 0x54(%eax),%ebx <== NOT EXECUTED
111376: 89 c8 mov %ecx,%eax <== NOT EXECUTED
111378: 89 da mov %ebx,%edx <== NOT EXECUTED
11137a: 29 f0 sub %esi,%eax <== NOT EXECUTED
11137c: 19 fa sbb %edi,%edx <== NOT EXECUTED
11137e: 89 45 d0 mov %eax,-0x30(%ebp) <== NOT EXECUTED
111381: 89 55 d4 mov %edx,-0x2c(%ebp) <== NOT EXECUTED
111384: 31 c0 xor %eax,%eax <== NOT EXECUTED
111386: 39 d0 cmp %edx,%eax <== NOT EXECUTED
111388: 7f 0f jg 111399 <IMFS_memfile_read+0xb7><== NOT EXECUTED
11138a: 7c 08 jl 111394 <IMFS_memfile_read+0xb2><== NOT EXECUTED
11138c: 8b 55 d0 mov -0x30(%ebp),%edx <== NOT EXECUTED
11138f: 39 55 18 cmp %edx,0x18(%ebp) <== NOT EXECUTED
111392: 77 05 ja 111399 <IMFS_memfile_read+0xb7><== NOT EXECUTED
111394: 8b 55 18 mov 0x18(%ebp),%edx <== NOT EXECUTED
111397: eb 04 jmp 11139d <IMFS_memfile_read+0xbb><== NOT EXECUTED
my_length = the_jnode->info.linearfile.size - start;
111399: 89 ca mov %ecx,%edx <== NOT EXECUTED
11139b: 29 f2 sub %esi,%edx <== NOT EXECUTED
memcpy(dest, &file_ptr[start], my_length);
11139d: 03 75 c8 add -0x38(%ebp),%esi <== NOT EXECUTED
1113a0: 8b 7d 14 mov 0x14(%ebp),%edi <== NOT EXECUTED
1113a3: 89 d1 mov %edx,%ecx <== NOT EXECUTED
1113a5: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
IMFS_update_atime( the_jnode );
1113a7: 51 push %ecx <== NOT EXECUTED
1113a8: 51 push %ecx <== NOT EXECUTED
1113a9: 6a 00 push $0x0 <== NOT EXECUTED
1113ab: 8d 45 e0 lea -0x20(%ebp),%eax <== NOT EXECUTED
1113ae: 50 push %eax <== NOT EXECUTED
1113af: 89 55 c0 mov %edx,-0x40(%ebp) <== NOT EXECUTED
1113b2: e8 5d 63 ff ff call 107714 <gettimeofday> <== NOT EXECUTED
1113b7: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
1113ba: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
1113bd: 89 41 40 mov %eax,0x40(%ecx) <== NOT EXECUTED
return my_length;
1113c0: 8b 55 c0 mov -0x40(%ebp),%edx <== NOT EXECUTED
1113c3: e9 64 01 00 00 jmp 11152c <IMFS_memfile_read+0x24a><== NOT EXECUTED
/*
* 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;
1113c8: 89 f0 mov %esi,%eax
if ( last_byte > the_jnode->info.file.size )
1113ca: 8b 55 08 mov 0x8(%ebp),%edx
1113cd: 8b 5a 50 mov 0x50(%edx),%ebx
1113d0: 8b 4d 18 mov 0x18(%ebp),%ecx
1113d3: 01 f1 add %esi,%ecx
1113d5: 89 4d d0 mov %ecx,-0x30(%ebp)
1113d8: 31 c9 xor %ecx,%ecx
1113da: 3b 4a 54 cmp 0x54(%edx),%ecx
1113dd: 7f 0f jg 1113ee <IMFS_memfile_read+0x10c><== NEVER TAKEN
1113df: 7c 05 jl 1113e6 <IMFS_memfile_read+0x104><== NEVER TAKEN
1113e1: 39 5d d0 cmp %ebx,-0x30(%ebp)
1113e4: 77 08 ja 1113ee <IMFS_memfile_read+0x10c>
1113e6: 8b 45 18 mov 0x18(%ebp),%eax
1113e9: 89 45 d0 mov %eax,-0x30(%ebp)
1113ec: eb 05 jmp 1113f3 <IMFS_memfile_read+0x111>
my_length = the_jnode->info.file.size - start;
1113ee: 29 c3 sub %eax,%ebx
1113f0: 89 5d d0 mov %ebx,-0x30(%ebp)
/*
* Phase 1: possibly the last part of one block
*/
start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;
1113f3: 8b 15 a8 5d 12 00 mov 0x125da8,%edx
1113f9: 89 55 c4 mov %edx,-0x3c(%ebp)
1113fc: 89 d0 mov %edx,%eax
1113fe: 99 cltd
1113ff: 89 d3 mov %edx,%ebx
111401: 52 push %edx
111402: 50 push %eax
111403: 57 push %edi
111404: 56 push %esi
111405: 89 45 c0 mov %eax,-0x40(%ebp)
111408: e8 ef c7 00 00 call 11dbfc <__moddi3>
11140d: 83 c4 10 add $0x10,%esp
111410: 89 45 c8 mov %eax,-0x38(%ebp)
block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;
111413: 8b 4d c0 mov -0x40(%ebp),%ecx
111416: 53 push %ebx
111417: 51 push %ecx
111418: 57 push %edi
111419: 56 push %esi
11141a: e8 8d c6 00 00 call 11daac <__divdi3>
11141f: 83 c4 10 add $0x10,%esp
111422: 89 c3 mov %eax,%ebx
if ( start_offset ) {
111424: 83 7d c8 00 cmpl $0x0,-0x38(%ebp)
111428: 75 0f jne 111439 <IMFS_memfile_read+0x157>
11142a: 8b 55 14 mov 0x14(%ebp),%edx
11142d: 89 55 c8 mov %edx,-0x38(%ebp)
111430: c7 45 cc 00 00 00 00 movl $0x0,-0x34(%ebp)
111437: eb 4c jmp 111485 <IMFS_memfile_read+0x1a3>
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 );
111439: 50 push %eax
11143a: 6a 00 push $0x0
11143c: 53 push %ebx
11143d: ff 75 08 pushl 0x8(%ebp)
111440: e8 71 f5 ff ff call 1109b6 <IMFS_memfile_get_block_pointer>
assert( block_ptr );
111445: 83 c4 10 add $0x10,%esp
111448: 85 c0 test %eax,%eax
11144a: 75 14 jne 111460 <IMFS_memfile_read+0x17e><== ALWAYS TAKEN
11144c: 68 57 0a 12 00 push $0x120a57 <== NOT EXECUTED
111451: 68 18 0b 12 00 push $0x120b18 <== NOT EXECUTED
111456: 68 96 02 00 00 push $0x296 <== NOT EXECUTED
11145b: e9 c5 fe ff ff jmp 111325 <IMFS_memfile_read+0x43><== NOT EXECUTED
*/
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;
111460: 8b 4d c4 mov -0x3c(%ebp),%ecx
111463: 2b 4d c8 sub -0x38(%ebp),%ecx
111466: 8b 55 d0 mov -0x30(%ebp),%edx
111469: 39 ca cmp %ecx,%edx
11146b: 76 02 jbe 11146f <IMFS_memfile_read+0x18d>
11146d: 89 ca mov %ecx,%edx
to_copy = my_length;
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
assert( block_ptr );
if ( !block_ptr )
return copied;
memcpy( dest, &(*block_ptr)[ start_offset ], to_copy );
11146f: 8b 75 c8 mov -0x38(%ebp),%esi
111472: 03 30 add (%eax),%esi
dest += to_copy;
111474: 8b 7d 14 mov 0x14(%ebp),%edi
111477: 89 d1 mov %edx,%ecx
111479: f3 a4 rep movsb %ds:(%esi),%es:(%edi)
11147b: 89 7d c8 mov %edi,-0x38(%ebp)
block++;
11147e: 43 inc %ebx
my_length -= to_copy;
11147f: 29 55 d0 sub %edx,-0x30(%ebp)
111482: 89 55 cc mov %edx,-0x34(%ebp)
/*
* Phase 2: all of zero of more blocks
*/
to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;
111485: 8b 15 a8 5d 12 00 mov 0x125da8,%edx
while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {
11148b: eb 40 jmp 1114cd <IMFS_memfile_read+0x1eb>
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
11148d: 57 push %edi
11148e: 6a 00 push $0x0
111490: 53 push %ebx
111491: ff 75 08 pushl 0x8(%ebp)
111494: 89 55 c0 mov %edx,-0x40(%ebp)
111497: e8 1a f5 ff ff call 1109b6 <IMFS_memfile_get_block_pointer>
assert( block_ptr );
11149c: 83 c4 10 add $0x10,%esp
11149f: 85 c0 test %eax,%eax
1114a1: 8b 55 c0 mov -0x40(%ebp),%edx
1114a4: 75 14 jne 1114ba <IMFS_memfile_read+0x1d8><== ALWAYS TAKEN
1114a6: 68 57 0a 12 00 push $0x120a57 <== NOT EXECUTED
1114ab: 68 18 0b 12 00 push $0x120b18 <== NOT EXECUTED
1114b0: 68 a7 02 00 00 push $0x2a7 <== NOT EXECUTED
1114b5: e9 6b fe ff ff jmp 111325 <IMFS_memfile_read+0x43><== NOT EXECUTED
if ( !block_ptr )
return copied;
memcpy( dest, &(*block_ptr)[ 0 ], to_copy );
1114ba: 8b 30 mov (%eax),%esi
1114bc: 8b 7d c8 mov -0x38(%ebp),%edi
1114bf: 89 d1 mov %edx,%ecx
1114c1: f3 a4 rep movsb %ds:(%esi),%es:(%edi)
dest += to_copy;
1114c3: 89 7d c8 mov %edi,-0x38(%ebp)
block++;
1114c6: 43 inc %ebx
my_length -= to_copy;
1114c7: 29 55 d0 sub %edx,-0x30(%ebp)
copied += to_copy;
1114ca: 01 55 cc add %edx,-0x34(%ebp)
/*
* Phase 2: all of zero of more blocks
*/
to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;
while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {
1114cd: 8b 45 d0 mov -0x30(%ebp),%eax
1114d0: 3b 05 a8 5d 12 00 cmp 0x125da8,%eax
1114d6: 73 b5 jae 11148d <IMFS_memfile_read+0x1ab>
* Phase 3: possibly the first part of one block
*/
assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK );
if ( my_length ) {
1114d8: 85 c0 test %eax,%eax
1114da: 74 37 je 111513 <IMFS_memfile_read+0x231>
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
1114dc: 56 push %esi
1114dd: 6a 00 push $0x0
1114df: 53 push %ebx
1114e0: ff 75 08 pushl 0x8(%ebp)
1114e3: e8 ce f4 ff ff call 1109b6 <IMFS_memfile_get_block_pointer>
assert( block_ptr );
1114e8: 83 c4 10 add $0x10,%esp
1114eb: 85 c0 test %eax,%eax
1114ed: 75 14 jne 111503 <IMFS_memfile_read+0x221><== ALWAYS TAKEN
1114ef: 68 57 0a 12 00 push $0x120a57 <== NOT EXECUTED
1114f4: 68 18 0b 12 00 push $0x120b18 <== NOT EXECUTED
1114f9: 68 b9 02 00 00 push $0x2b9 <== NOT EXECUTED
1114fe: e9 22 fe ff ff jmp 111325 <IMFS_memfile_read+0x43><== NOT EXECUTED
if ( !block_ptr )
return copied;
memcpy( dest, &(*block_ptr)[ 0 ], my_length );
111503: 8b 30 mov (%eax),%esi
111505: 8b 7d c8 mov -0x38(%ebp),%edi
111508: 8b 4d d0 mov -0x30(%ebp),%ecx
11150b: f3 a4 rep movsb %ds:(%esi),%es:(%edi)
copied += my_length;
11150d: 8b 55 d0 mov -0x30(%ebp),%edx
111510: 01 55 cc add %edx,-0x34(%ebp)
}
IMFS_update_atime( the_jnode );
111513: 53 push %ebx
111514: 53 push %ebx
111515: 6a 00 push $0x0
111517: 8d 45 e0 lea -0x20(%ebp),%eax
11151a: 50 push %eax
11151b: e8 f4 61 ff ff call 107714 <gettimeofday>
111520: 8b 45 e0 mov -0x20(%ebp),%eax
111523: 8b 4d 08 mov 0x8(%ebp),%ecx
111526: 89 41 40 mov %eax,0x40(%ecx)
return copied;
111529: 8b 55 cc mov -0x34(%ebp),%edx
11152c: 83 c4 10 add $0x10,%esp
}
11152f: 89 d0 mov %edx,%eax
111531: 8d 65 f4 lea -0xc(%ebp),%esp
111534: 5b pop %ebx
111535: 5e pop %esi
111536: 5f pop %edi
111537: c9 leave
111538: c3 ret
00110be6 <IMFS_memfile_remove>:
*/
int IMFS_memfile_remove(
IMFS_jnode_t *the_jnode
)
{
110be6: 55 push %ebp
110be7: 89 e5 mov %esp,%ebp
110be9: 57 push %edi
110bea: 56 push %esi
110beb: 53 push %ebx
110bec: 83 ec 1c sub $0x1c,%esp
110bef: 8b 5d 08 mov 0x8(%ebp),%ebx
/*
* Perform internal consistency checks
*/
assert( the_jnode );
110bf2: 85 db test %ebx,%ebx
110bf4: 75 11 jne 110c07 <IMFS_memfile_remove+0x21><== ALWAYS TAKEN
110bf6: 68 d0 09 12 00 push $0x1209d0 <== NOT EXECUTED
110bfb: 68 2c 0b 12 00 push $0x120b2c <== NOT EXECUTED
110c00: 68 ee 01 00 00 push $0x1ee <== NOT EXECUTED
110c05: eb 15 jmp 110c1c <IMFS_memfile_remove+0x36><== NOT EXECUTED
if ( !the_jnode )
rtems_set_errno_and_return_minus_one( EIO );
assert( the_jnode->type == IMFS_MEMORY_FILE );
110c07: 83 7b 4c 05 cmpl $0x5,0x4c(%ebx)
110c0b: 74 19 je 110c26 <IMFS_memfile_remove+0x40><== ALWAYS TAKEN
110c0d: 68 27 0a 12 00 push $0x120a27 <== NOT EXECUTED
110c12: 68 2c 0b 12 00 push $0x120b2c <== NOT EXECUTED
110c17: 68 f2 01 00 00 push $0x1f2 <== NOT EXECUTED
110c1c: 68 da 09 12 00 push $0x1209da <== NOT EXECUTED
110c21: e8 7a 67 ff ff call 1073a0 <__assert_func> <== NOT EXECUTED
/*
* 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;
110c26: 8b 35 a8 5d 12 00 mov 0x125da8,%esi
110c2c: c1 ee 02 shr $0x2,%esi
* + indirect
* + doubly indirect
* + triply indirect
*/
info = &the_jnode->info.file;
110c2f: 83 7b 58 00 cmpl $0x0,0x58(%ebx)
110c33: 74 0f je 110c44 <IMFS_memfile_remove+0x5e>
if ( info->indirect ) {
memfile_free_blocks_in_table( &info->indirect, to_free );
110c35: 57 push %edi
110c36: 57 push %edi
110c37: 56 push %esi
110c38: 8d 43 58 lea 0x58(%ebx),%eax
110c3b: 50 push %eax
110c3c: e8 f0 fe ff ff call 110b31 <memfile_free_blocks_in_table>
110c41: 83 c4 10 add $0x10,%esp
* + indirect
* + doubly indirect
* + triply indirect
*/
info = &the_jnode->info.file;
110c44: 31 ff xor %edi,%edi
110c46: 83 7b 5c 00 cmpl $0x0,0x5c(%ebx)
110c4a: 75 21 jne 110c6d <IMFS_memfile_remove+0x87><== NEVER TAKEN
110c4c: eb 3a jmp 110c88 <IMFS_memfile_remove+0xa2>
}
if ( info->doubly_indirect ) {
for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {
if ( info->doubly_indirect[i] ) {
110c4e: 8b 43 5c mov 0x5c(%ebx),%eax <== NOT EXECUTED
110c51: 8d 14 bd 00 00 00 00 lea 0x0(,%edi,4),%edx <== NOT EXECUTED
110c58: 83 3c b8 00 cmpl $0x0,(%eax,%edi,4) <== NOT EXECUTED
110c5c: 74 0e je 110c6c <IMFS_memfile_remove+0x86><== NOT EXECUTED
memfile_free_blocks_in_table(
110c5e: 51 push %ecx <== NOT EXECUTED
110c5f: 51 push %ecx <== NOT EXECUTED
110c60: 56 push %esi <== NOT EXECUTED
110c61: 01 d0 add %edx,%eax <== NOT EXECUTED
110c63: 50 push %eax <== NOT EXECUTED
110c64: e8 c8 fe ff ff call 110b31 <memfile_free_blocks_in_table><== NOT EXECUTED
110c69: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
memfile_free_blocks_in_table( &info->indirect, to_free );
}
if ( info->doubly_indirect ) {
for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {
110c6c: 47 inc %edi <== NOT EXECUTED
110c6d: a1 a8 5d 12 00 mov 0x125da8,%eax <== NOT EXECUTED
110c72: c1 e8 02 shr $0x2,%eax <== NOT EXECUTED
110c75: 39 c7 cmp %eax,%edi <== NOT EXECUTED
110c77: 72 d5 jb 110c4e <IMFS_memfile_remove+0x68><== NOT EXECUTED
if ( info->doubly_indirect[i] ) {
memfile_free_blocks_in_table(
(block_p **)&info->doubly_indirect[i], to_free );
}
}
memfile_free_blocks_in_table( &info->doubly_indirect, to_free );
110c79: 57 push %edi <== NOT EXECUTED
110c7a: 57 push %edi <== NOT EXECUTED
110c7b: 56 push %esi <== NOT EXECUTED
110c7c: 8d 43 5c lea 0x5c(%ebx),%eax <== NOT EXECUTED
110c7f: 50 push %eax <== NOT EXECUTED
110c80: e8 ac fe ff ff call 110b31 <memfile_free_blocks_in_table><== NOT EXECUTED
110c85: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
* + indirect
* + doubly indirect
* + triply indirect
*/
info = &the_jnode->info.file;
110c88: 31 ff xor %edi,%edi
110c8a: 83 7b 60 00 cmpl $0x0,0x60(%ebx)
110c8e: 75 5b jne 110ceb <IMFS_memfile_remove+0x105><== NEVER TAKEN
110c90: eb 74 jmp 110d06 <IMFS_memfile_remove+0x120>
110c92: 8d 04 bd 00 00 00 00 lea 0x0(,%edi,4),%eax <== NOT EXECUTED
110c99: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
}
if ( info->triply_indirect ) {
for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {
p = (block_p *) info->triply_indirect[i];
110c9c: 8b 43 60 mov 0x60(%ebx),%eax <== NOT EXECUTED
110c9f: 8b 04 b8 mov (%eax,%edi,4),%eax <== NOT EXECUTED
if ( !p ) /* ensure we have a valid pointer */
110ca2: 85 c0 test %eax,%eax <== NOT EXECUTED
110ca4: 74 51 je 110cf7 <IMFS_memfile_remove+0x111><== NOT EXECUTED
110ca6: 31 d2 xor %edx,%edx <== NOT EXECUTED
110ca8: eb 21 jmp 110ccb <IMFS_memfile_remove+0xe5><== NOT EXECUTED
break;
for ( j=0 ; j<IMFS_MEMFILE_BLOCK_SLOTS ; j++ ) {
if ( p[j] ) {
110caa: 83 38 00 cmpl $0x0,(%eax) <== NOT EXECUTED
110cad: 74 18 je 110cc7 <IMFS_memfile_remove+0xe1><== NOT EXECUTED
memfile_free_blocks_in_table( (block_p **)&p[j], to_free);
110caf: 51 push %ecx <== NOT EXECUTED
110cb0: 51 push %ecx <== NOT EXECUTED
110cb1: 56 push %esi <== NOT EXECUTED
110cb2: 50 push %eax <== NOT EXECUTED
110cb3: 89 45 e0 mov %eax,-0x20(%ebp) <== NOT EXECUTED
110cb6: 89 55 dc mov %edx,-0x24(%ebp) <== NOT EXECUTED
110cb9: e8 73 fe ff ff call 110b31 <memfile_free_blocks_in_table><== NOT EXECUTED
110cbe: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
110cc1: 8b 55 dc mov -0x24(%ebp),%edx <== NOT EXECUTED
110cc4: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
if ( info->triply_indirect ) {
for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {
p = (block_p *) info->triply_indirect[i];
if ( !p ) /* ensure we have a valid pointer */
break;
for ( j=0 ; j<IMFS_MEMFILE_BLOCK_SLOTS ; j++ ) {
110cc7: 42 inc %edx <== NOT EXECUTED
110cc8: 83 c0 04 add $0x4,%eax <== NOT EXECUTED
110ccb: 8b 0d a8 5d 12 00 mov 0x125da8,%ecx <== NOT EXECUTED
110cd1: c1 e9 02 shr $0x2,%ecx <== NOT EXECUTED
110cd4: 39 ca cmp %ecx,%edx <== NOT EXECUTED
110cd6: 72 d2 jb 110caa <IMFS_memfile_remove+0xc4><== NOT EXECUTED
if ( p[j] ) {
memfile_free_blocks_in_table( (block_p **)&p[j], to_free);
}
}
memfile_free_blocks_in_table(
110cd8: 52 push %edx <== NOT EXECUTED
110cd9: 52 push %edx <== NOT EXECUTED
110cda: 56 push %esi <== NOT EXECUTED
110cdb: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
110cde: 03 43 60 add 0x60(%ebx),%eax <== NOT EXECUTED
110ce1: 50 push %eax <== NOT EXECUTED
110ce2: e8 4a fe ff ff call 110b31 <memfile_free_blocks_in_table><== NOT EXECUTED
memfile_free_blocks_in_table( &info->doubly_indirect, to_free );
}
if ( info->triply_indirect ) {
for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {
110ce7: 47 inc %edi <== NOT EXECUTED
110ce8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
110ceb: a1 a8 5d 12 00 mov 0x125da8,%eax <== NOT EXECUTED
110cf0: c1 e8 02 shr $0x2,%eax <== NOT EXECUTED
110cf3: 39 c7 cmp %eax,%edi <== NOT EXECUTED
110cf5: 72 9b jb 110c92 <IMFS_memfile_remove+0xac><== NOT EXECUTED
}
}
memfile_free_blocks_in_table(
(block_p **)&info->triply_indirect[i], to_free );
}
memfile_free_blocks_in_table(
110cf7: 50 push %eax <== NOT EXECUTED
110cf8: 50 push %eax <== NOT EXECUTED
110cf9: 56 push %esi <== NOT EXECUTED
110cfa: 83 c3 60 add $0x60,%ebx <== NOT EXECUTED
110cfd: 53 push %ebx <== NOT EXECUTED
110cfe: e8 2e fe ff ff call 110b31 <memfile_free_blocks_in_table><== NOT EXECUTED
110d03: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
(block_p **)&info->triply_indirect, to_free );
}
return 0;
}
110d06: 31 c0 xor %eax,%eax
110d08: 8d 65 f4 lea -0xc(%ebp),%esp
110d0b: 5b pop %ebx
110d0c: 5e pop %esi
110d0d: 5f pop %edi
110d0e: c9 leave
110d0f: c3 ret
00110b9b <IMFS_memfile_remove_block>:
MEMFILE_STATIC int IMFS_memfile_remove_block(
IMFS_jnode_t *the_jnode,
unsigned int block
)
{
110b9b: 55 push %ebp <== NOT EXECUTED
110b9c: 89 e5 mov %esp,%ebp <== NOT EXECUTED
110b9e: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
block_p *block_ptr;
block_p ptr;
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
110ba1: 6a 00 push $0x0 <== NOT EXECUTED
110ba3: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
110ba6: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
110ba9: e8 08 fe ff ff call 1109b6 <IMFS_memfile_get_block_pointer><== NOT EXECUTED
assert( block_ptr );
110bae: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
110bb1: 85 c0 test %eax,%eax <== NOT EXECUTED
110bb3: 75 19 jne 110bce <IMFS_memfile_remove_block+0x33><== NOT EXECUTED
110bb5: 68 57 0a 12 00 push $0x120a57 <== NOT EXECUTED
110bba: 68 60 0b 12 00 push $0x120b60 <== NOT EXECUTED
110bbf: 68 96 01 00 00 push $0x196 <== NOT EXECUTED
110bc4: 68 da 09 12 00 push $0x1209da <== NOT EXECUTED
110bc9: e8 d2 67 ff ff call 1073a0 <__assert_func> <== NOT EXECUTED
if ( block_ptr ) {
ptr = *block_ptr;
110bce: 8b 10 mov (%eax),%edx <== NOT EXECUTED
*block_ptr = 0;
110bd0: c7 00 00 00 00 00 movl $0x0,(%eax) <== NOT EXECUTED
memfile_free_block( ptr );
110bd6: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
110bd9: 52 push %edx <== NOT EXECUTED
110bda: e8 9c fd ff ff call 11097b <memfile_free_block> <== NOT EXECUTED
}
return 1;
}
110bdf: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
110be4: c9 leave <== NOT EXECUTED
110be5: c3 ret <== NOT EXECUTED
0011102e <IMFS_memfile_write>:
IMFS_jnode_t *the_jnode,
off_t start,
const unsigned char *source,
unsigned int length
)
{
11102e: 55 push %ebp
11102f: 89 e5 mov %esp,%ebp
111031: 57 push %edi
111032: 56 push %esi
111033: 53 push %ebx
111034: 83 ec 3c sub $0x3c,%esp
111037: 8b 75 0c mov 0xc(%ebp),%esi
11103a: 8b 7d 10 mov 0x10(%ebp),%edi
/*
* Perform internal consistency checks
*/
assert( the_jnode );
11103d: 83 7d 08 00 cmpl $0x0,0x8(%ebp)
111041: 75 11 jne 111054 <IMFS_memfile_write+0x26><== ALWAYS TAKEN
111043: 68 d0 09 12 00 push $0x1209d0 <== NOT EXECUTED
111048: 68 04 0b 12 00 push $0x120b04 <== NOT EXECUTED
11104d: 68 e3 02 00 00 push $0x2e3 <== NOT EXECUTED
111052: eb 18 jmp 11106c <IMFS_memfile_write+0x3e><== NOT EXECUTED
if ( !the_jnode )
rtems_set_errno_and_return_minus_one( EIO );
assert( the_jnode->type == IMFS_MEMORY_FILE );
111054: 8b 45 08 mov 0x8(%ebp),%eax
111057: 83 78 4c 05 cmpl $0x5,0x4c(%eax)
11105b: 74 19 je 111076 <IMFS_memfile_write+0x48><== ALWAYS TAKEN
11105d: 68 27 0a 12 00 push $0x120a27 <== NOT EXECUTED
111062: 68 04 0b 12 00 push $0x120b04 <== NOT EXECUTED
111067: 68 e7 02 00 00 push $0x2e7 <== NOT EXECUTED
11106c: 68 da 09 12 00 push $0x1209da <== NOT EXECUTED
111071: e8 2a 63 ff ff call 1073a0 <__assert_func> <== NOT EXECUTED
/*
* Error check arguments
*/
assert( source );
111076: 83 7d 14 00 cmpl $0x0,0x14(%ebp)
11107a: 75 11 jne 11108d <IMFS_memfile_write+0x5f><== ALWAYS TAKEN
11107c: 68 61 0a 12 00 push $0x120a61 <== NOT EXECUTED
111081: 68 04 0b 12 00 push $0x120b04 <== NOT EXECUTED
111086: 68 ef 02 00 00 push $0x2ef <== NOT EXECUTED
11108b: eb df jmp 11106c <IMFS_memfile_write+0x3e><== NOT EXECUTED
/*
* If there is nothing to write, then quick exit.
*/
my_length = length;
if ( !my_length )
11108d: 83 7d 18 00 cmpl $0x0,0x18(%ebp)
111091: 75 0d jne 1110a0 <IMFS_memfile_write+0x72><== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( EINVAL );
111093: e8 7c 19 00 00 call 112a14 <__errno> <== NOT EXECUTED
111098: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
11109e: eb 33 jmp 1110d3 <IMFS_memfile_write+0xa5><== NOT EXECUTED
* If the last byte we are supposed to write is past the end of this
* in memory file, then extend the length.
*/
last_byte = start + length;
if ( last_byte > the_jnode->info.file.size ) {
1110a0: 8b 45 18 mov 0x18(%ebp),%eax
1110a3: 01 f0 add %esi,%eax
1110a5: 31 d2 xor %edx,%edx
1110a7: 8b 4d 08 mov 0x8(%ebp),%ecx
1110aa: 3b 51 54 cmp 0x54(%ecx),%edx
1110ad: 7c 2c jl 1110db <IMFS_memfile_write+0xad><== NEVER TAKEN
1110af: 7f 05 jg 1110b6 <IMFS_memfile_write+0x88><== NEVER TAKEN
1110b1: 3b 41 50 cmp 0x50(%ecx),%eax
1110b4: 76 25 jbe 1110db <IMFS_memfile_write+0xad><== NEVER TAKEN
status = IMFS_memfile_extend( the_jnode, last_byte );
1110b6: 51 push %ecx
1110b7: 52 push %edx
1110b8: 50 push %eax
1110b9: ff 75 08 pushl 0x8(%ebp)
1110bc: e8 8a fd ff ff call 110e4b <IMFS_memfile_extend>
if ( status )
1110c1: 83 c4 10 add $0x10,%esp
1110c4: 85 c0 test %eax,%eax
1110c6: 74 13 je 1110db <IMFS_memfile_write+0xad><== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( ENOSPC );
1110c8: e8 47 19 00 00 call 112a14 <__errno> <== NOT EXECUTED
1110cd: c7 00 1c 00 00 00 movl $0x1c,(%eax) <== NOT EXECUTED
1110d3: 83 cb ff or $0xffffffff,%ebx <== NOT EXECUTED
1110d6: e9 3b 01 00 00 jmp 111216 <IMFS_memfile_write+0x1e8><== NOT EXECUTED
/*
* Phase 1: possibly the last part of one block
*/
start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;
1110db: a1 a8 5d 12 00 mov 0x125da8,%eax
1110e0: 89 45 c8 mov %eax,-0x38(%ebp)
1110e3: 99 cltd
1110e4: 89 d3 mov %edx,%ebx
1110e6: 52 push %edx
1110e7: 50 push %eax
1110e8: 57 push %edi
1110e9: 56 push %esi
1110ea: 89 45 c4 mov %eax,-0x3c(%ebp)
1110ed: e8 0a cb 00 00 call 11dbfc <__moddi3>
1110f2: 83 c4 10 add $0x10,%esp
1110f5: 89 45 cc mov %eax,-0x34(%ebp)
block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;
1110f8: 8b 4d c4 mov -0x3c(%ebp),%ecx
1110fb: 53 push %ebx
1110fc: 51 push %ecx
1110fd: 57 push %edi
1110fe: 56 push %esi
1110ff: e8 a8 c9 00 00 call 11daac <__divdi3>
111104: 83 c4 10 add $0x10,%esp
111107: 89 45 d0 mov %eax,-0x30(%ebp)
if ( start_offset ) {
11110a: 83 7d cc 00 cmpl $0x0,-0x34(%ebp)
11110e: 75 0d jne 11111d <IMFS_memfile_write+0xef>
111110: 8b 75 14 mov 0x14(%ebp),%esi
111113: 8b 55 18 mov 0x18(%ebp),%edx
111116: 89 55 d4 mov %edx,-0x2c(%ebp)
111119: 31 db xor %ebx,%ebx
11111b: eb 52 jmp 11116f <IMFS_memfile_write+0x141>
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 );
11111d: 50 push %eax
11111e: 6a 00 push $0x0
111120: ff 75 d0 pushl -0x30(%ebp)
111123: ff 75 08 pushl 0x8(%ebp)
111126: e8 8b f8 ff ff call 1109b6 <IMFS_memfile_get_block_pointer>
assert( block_ptr );
11112b: 83 c4 10 add $0x10,%esp
11112e: 85 c0 test %eax,%eax
111130: 75 14 jne 111146 <IMFS_memfile_write+0x118><== ALWAYS TAKEN
111132: 68 57 0a 12 00 push $0x120a57 <== NOT EXECUTED
111137: 68 04 0b 12 00 push $0x120b04 <== NOT EXECUTED
11113c: 68 1c 03 00 00 push $0x31c <== NOT EXECUTED
111141: e9 26 ff ff ff jmp 11106c <IMFS_memfile_write+0x3e><== NOT EXECUTED
*/
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;
111146: 8b 55 c8 mov -0x38(%ebp),%edx
111149: 2b 55 cc sub -0x34(%ebp),%edx
11114c: 3b 55 18 cmp 0x18(%ebp),%edx
11114f: 76 03 jbe 111154 <IMFS_memfile_write+0x126>
111151: 8b 55 18 mov 0x18(%ebp),%edx
if ( !block_ptr )
return copied;
#if 0
fprintf(stdout, "write %d at %d in %d: %*s\n", to_copy, start_offset, block, to_copy, src );
#endif
memcpy( &(*block_ptr)[ start_offset ], src, to_copy );
111154: 8b 00 mov (%eax),%eax
111156: 03 45 cc add -0x34(%ebp),%eax
src += to_copy;
111159: 89 c7 mov %eax,%edi
11115b: 8b 75 14 mov 0x14(%ebp),%esi
11115e: 89 d1 mov %edx,%ecx
111160: f3 a4 rep movsb %ds:(%esi),%es:(%edi)
block++;
111162: ff 45 d0 incl -0x30(%ebp)
my_length -= to_copy;
111165: 8b 4d 18 mov 0x18(%ebp),%ecx
111168: 29 d1 sub %edx,%ecx
11116a: 89 4d d4 mov %ecx,-0x2c(%ebp)
copied += to_copy;
11116d: 89 d3 mov %edx,%ebx
/*
* Phase 2: all of zero of more blocks
*/
to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;
11116f: 8b 15 a8 5d 12 00 mov 0x125da8,%edx
while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {
111175: eb 3f jmp 1111b6 <IMFS_memfile_write+0x188>
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
111177: 57 push %edi
111178: 6a 00 push $0x0
11117a: ff 75 d0 pushl -0x30(%ebp)
11117d: ff 75 08 pushl 0x8(%ebp)
111180: 89 55 c4 mov %edx,-0x3c(%ebp)
111183: e8 2e f8 ff ff call 1109b6 <IMFS_memfile_get_block_pointer>
assert( block_ptr );
111188: 83 c4 10 add $0x10,%esp
11118b: 85 c0 test %eax,%eax
11118d: 8b 55 c4 mov -0x3c(%ebp),%edx
111190: 75 14 jne 1111a6 <IMFS_memfile_write+0x178><== ALWAYS TAKEN
111192: 68 57 0a 12 00 push $0x120a57 <== NOT EXECUTED
111197: 68 04 0b 12 00 push $0x120b04 <== NOT EXECUTED
11119c: 68 30 03 00 00 push $0x330 <== NOT EXECUTED
1111a1: e9 c6 fe ff ff jmp 11106c <IMFS_memfile_write+0x3e><== NOT EXECUTED
if ( !block_ptr )
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 );
1111a6: 8b 00 mov (%eax),%eax
src += to_copy;
1111a8: 89 c7 mov %eax,%edi
1111aa: 89 d1 mov %edx,%ecx
1111ac: f3 a4 rep movsb %ds:(%esi),%es:(%edi)
block++;
1111ae: ff 45 d0 incl -0x30(%ebp)
my_length -= to_copy;
1111b1: 29 55 d4 sub %edx,-0x2c(%ebp)
*
* 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(
1111b4: 01 d3 add %edx,%ebx
/*
* Phase 2: all of zero of more blocks
*/
to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;
while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {
1111b6: 8b 45 d4 mov -0x2c(%ebp),%eax
1111b9: 3b 05 a8 5d 12 00 cmp 0x125da8,%eax
1111bf: 73 b6 jae 111177 <IMFS_memfile_write+0x149>
*/
assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK );
to_copy = my_length;
if ( my_length ) {
1111c1: 85 c0 test %eax,%eax
1111c3: 74 35 je 1111fa <IMFS_memfile_write+0x1cc>
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
1111c5: 51 push %ecx
1111c6: 6a 00 push $0x0
1111c8: ff 75 d0 pushl -0x30(%ebp)
1111cb: ff 75 08 pushl 0x8(%ebp)
1111ce: e8 e3 f7 ff ff call 1109b6 <IMFS_memfile_get_block_pointer>
assert( block_ptr );
1111d3: 83 c4 10 add $0x10,%esp
1111d6: 85 c0 test %eax,%eax
1111d8: 75 14 jne 1111ee <IMFS_memfile_write+0x1c0><== ALWAYS TAKEN
1111da: 68 57 0a 12 00 push $0x120a57 <== NOT EXECUTED
1111df: 68 04 0b 12 00 push $0x120b04 <== NOT EXECUTED
1111e4: 68 46 03 00 00 push $0x346 <== NOT EXECUTED
1111e9: e9 7e fe ff ff jmp 11106c <IMFS_memfile_write+0x3e><== NOT EXECUTED
if ( !block_ptr )
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 );
1111ee: 8b 00 mov (%eax),%eax
1111f0: 89 c7 mov %eax,%edi
1111f2: 8b 4d d4 mov -0x2c(%ebp),%ecx
1111f5: f3 a4 rep movsb %ds:(%esi),%es:(%edi)
my_length = 0;
copied += to_copy;
1111f7: 03 5d d4 add -0x2c(%ebp),%ebx
}
IMFS_mtime_ctime_update( the_jnode );
1111fa: 52 push %edx
1111fb: 52 push %edx
1111fc: 6a 00 push $0x0
1111fe: 8d 45 e0 lea -0x20(%ebp),%eax
111201: 50 push %eax
111202: e8 0d 65 ff ff call 107714 <gettimeofday>
111207: 8b 45 e0 mov -0x20(%ebp),%eax
11120a: 8b 55 08 mov 0x8(%ebp),%edx
11120d: 89 42 44 mov %eax,0x44(%edx)
111210: 89 42 48 mov %eax,0x48(%edx)
return copied;
111213: 83 c4 10 add $0x10,%esp
}
111216: 89 d8 mov %ebx,%eax
111218: 8d 65 f4 lea -0xc(%ebp),%esp
11121b: 5b pop %ebx
11121c: 5e pop %esi
11121d: 5f pop %edi
11121e: c9 leave
11121f: c3 ret
00106f68 <IMFS_mknod>:
const char *token, /* IN */
mode_t mode, /* IN */
dev_t dev, /* IN */
rtems_filesystem_location_info_t *pathloc /* IN/OUT */
)
{
106f68: 55 push %ebp
106f69: 89 e5 mov %esp,%ebp
106f6b: 57 push %edi
106f6c: 56 push %esi
106f6d: 53 push %ebx
106f6e: 83 ec 4c sub $0x4c,%esp
106f71: 8b 55 08 mov 0x8(%ebp),%edx
106f74: 8b 5d 10 mov 0x10(%ebp),%ebx
106f77: 8b 75 14 mov 0x14(%ebp),%esi
IMFS_jnode_t *new_node;
int result;
char new_name[ IMFS_NAME_MAX + 1 ];
IMFS_types_union info;
IMFS_get_token( token, strlen( token ), new_name, &result );
106f7a: 31 c0 xor %eax,%eax
106f7c: 83 c9 ff or $0xffffffff,%ecx
106f7f: 89 d7 mov %edx,%edi
106f81: f2 ae repnz scas %es:(%edi),%al
106f83: f7 d1 not %ecx
106f85: 49 dec %ecx
106f86: 8d 45 e4 lea -0x1c(%ebp),%eax
106f89: 50 push %eax
106f8a: 8d 45 af lea -0x51(%ebp),%eax
106f8d: 50 push %eax
106f8e: 51 push %ecx
106f8f: 52 push %edx
106f90: e8 d7 7b 00 00 call 10eb6c <IMFS_get_token>
/*
* Figure out what type of IMFS node this is.
*/
if ( S_ISDIR(mode) )
106f95: 8b 45 0c mov 0xc(%ebp),%eax
106f98: 25 00 f0 00 00 and $0xf000,%eax
106f9d: 83 c4 10 add $0x10,%esp
106fa0: 3d 00 40 00 00 cmp $0x4000,%eax
106fa5: 74 40 je 106fe7 <IMFS_mknod+0x7f>
type = IMFS_DIRECTORY;
else if ( S_ISREG(mode) )
106fa7: ba 05 00 00 00 mov $0x5,%edx
106fac: 3d 00 80 00 00 cmp $0x8000,%eax
106fb1: 74 39 je 106fec <IMFS_mknod+0x84>
type = IMFS_MEMORY_FILE;
else if ( S_ISBLK(mode) || S_ISCHR(mode) ) {
106fb3: 3d 00 20 00 00 cmp $0x2000,%eax
106fb8: 74 07 je 106fc1 <IMFS_mknod+0x59>
106fba: 3d 00 60 00 00 cmp $0x6000,%eax
106fbf: 75 0d jne 106fce <IMFS_mknod+0x66>
type = IMFS_DEVICE;
rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor );
106fc1: 89 5d d0 mov %ebx,-0x30(%ebp)
106fc4: 89 75 d4 mov %esi,-0x2c(%ebp)
106fc7: ba 02 00 00 00 mov $0x2,%edx
106fcc: eb 1e jmp 106fec <IMFS_mknod+0x84>
}
else if (S_ISFIFO(mode))
106fce: ba 07 00 00 00 mov $0x7,%edx
106fd3: 3d 00 10 00 00 cmp $0x1000,%eax
106fd8: 74 12 je 106fec <IMFS_mknod+0x84> <== ALWAYS TAKEN
type = IMFS_FIFO;
else {
rtems_set_errno_and_return_minus_one( EINVAL );
106fda: e8 35 ba 00 00 call 112a14 <__errno> <== NOT EXECUTED
106fdf: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
106fe5: eb 32 jmp 107019 <IMFS_mknod+0xb1> <== NOT EXECUTED
106fe7: ba 01 00 00 00 mov $0x1,%edx
* was ONLY passed a NULL when we created the root node. We
* added a new IMFS_create_root_node() so this path no longer
* existed. The result was simpler code which should not have
* this path.
*/
new_node = IMFS_create_node(
106fec: 83 ec 0c sub $0xc,%esp
106fef: 8d 45 d0 lea -0x30(%ebp),%eax
106ff2: 50 push %eax
106ff3: ff 75 0c pushl 0xc(%ebp)
106ff6: 8d 45 af lea -0x51(%ebp),%eax
106ff9: 50 push %eax
106ffa: 52 push %edx
106ffb: ff 75 18 pushl 0x18(%ebp)
106ffe: e8 63 70 00 00 call 10e066 <IMFS_create_node>
107003: 89 c2 mov %eax,%edx
new_name,
mode,
&info
);
if ( !new_node )
107005: 83 c4 20 add $0x20,%esp
107008: 31 c0 xor %eax,%eax
10700a: 85 d2 test %edx,%edx
10700c: 75 0e jne 10701c <IMFS_mknod+0xb4> <== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( ENOMEM );
10700e: e8 01 ba 00 00 call 112a14 <__errno> <== NOT EXECUTED
107013: c7 00 0c 00 00 00 movl $0xc,(%eax) <== NOT EXECUTED
107019: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
return 0;
}
10701c: 8d 65 f4 lea -0xc(%ebp),%esp
10701f: 5b pop %ebx
107020: 5e pop %esi
107021: 5f pop %edi
107022: c9 leave
107023: c3 ret
00107024 <IMFS_mount>:
#include <rtems/seterr.h>
int IMFS_mount(
rtems_filesystem_mount_table_entry_t *mt_entry
)
{
107024: 55 push %ebp
107025: 89 e5 mov %esp,%ebp
107027: 83 ec 08 sub $0x8,%esp
10702a: 8b 55 08 mov 0x8(%ebp),%edx
IMFS_jnode_t *node;
node = mt_entry->mt_point_node.node_access;
10702d: 8b 42 08 mov 0x8(%edx),%eax
/*
* Is the node that we are mounting onto a directory node ?
*/
if ( node->type != IMFS_DIRECTORY )
107030: 83 78 4c 01 cmpl $0x1,0x4c(%eax)
107034: 74 10 je 107046 <IMFS_mount+0x22> <== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( ENOTDIR );
107036: e8 d9 b9 00 00 call 112a14 <__errno> <== NOT EXECUTED
10703b: c7 00 14 00 00 00 movl $0x14,(%eax) <== NOT EXECUTED
107041: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
107044: eb 05 jmp 10704b <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;
107046: 89 50 5c mov %edx,0x5c(%eax)
107049: 31 c0 xor %eax,%eax
return 0;
}
10704b: c9 leave
10704c: c3 ret
00108d2e <IMFS_print_jnode>:
*/
void IMFS_print_jnode(
IMFS_jnode_t *the_jnode
)
{
108d2e: 55 push %ebp
108d2f: 89 e5 mov %esp,%ebp
108d31: 53 push %ebx
108d32: 83 ec 04 sub $0x4,%esp
108d35: 8b 5d 08 mov 0x8(%ebp),%ebx
assert( the_jnode );
108d38: 85 db test %ebx,%ebx
108d3a: 75 11 jne 108d4d <IMFS_print_jnode+0x1f> <== ALWAYS TAKEN
108d3c: 68 7c 51 12 00 push $0x12517c <== NOT EXECUTED
108d41: 68 38 53 12 00 push $0x125338 <== NOT EXECUTED
108d46: 6a 38 push $0x38 <== NOT EXECUTED
108d48: e9 98 00 00 00 jmp 108de5 <IMFS_print_jnode+0xb7> <== NOT EXECUTED
fprintf(stdout, "%s", the_jnode->name );
108d4d: 50 push %eax
108d4e: 50 push %eax
108d4f: a1 e0 a4 12 00 mov 0x12a4e0,%eax
108d54: ff 70 08 pushl 0x8(%eax)
108d57: 8d 43 0c lea 0xc(%ebx),%eax
108d5a: 50 push %eax
108d5b: e8 18 d6 00 00 call 116378 <fputs>
switch( the_jnode->type ) {
108d60: 8b 43 4c mov 0x4c(%ebx),%eax
108d63: 83 c4 10 add $0x10,%esp
108d66: 8d 50 ff lea -0x1(%eax),%edx
108d69: 83 fa 06 cmp $0x6,%edx
108d6c: 0f 87 b7 00 00 00 ja 108e29 <IMFS_print_jnode+0xfb> <== NEVER TAKEN
108d72: a1 e0 a4 12 00 mov 0x12a4e0,%eax
108d77: ff 24 95 08 53 12 00 jmp *0x125308(,%edx,4)
case IMFS_DIRECTORY:
fprintf(stdout, "/" );
108d7e: 53 push %ebx
108d7f: 53 push %ebx
108d80: ff 70 08 pushl 0x8(%eax)
108d83: 6a 2f push $0x2f
108d85: e8 02 d5 00 00 call 11628c <fputc>
108d8a: eb 2b jmp 108db7 <IMFS_print_jnode+0x89>
break;
case IMFS_DEVICE:
fprintf(stdout, " (device %" PRId32 ", %" PRId32 ")",
108d8c: ff 73 54 pushl 0x54(%ebx)
108d8f: ff 73 50 pushl 0x50(%ebx)
108d92: 68 d6 51 12 00 push $0x1251d6
108d97: eb 16 jmp 108daf <IMFS_print_jnode+0x81>
the_jnode->info.device.major, the_jnode->info.device.minor );
break;
case IMFS_LINEAR_FILE:
fprintf(stdout, " (file %" PRId32 " %p)",
108d99: ff 73 58 pushl 0x58(%ebx) <== NOT EXECUTED
108d9c: ff 73 50 pushl 0x50(%ebx) <== NOT EXECUTED
108d9f: 68 e9 51 12 00 push $0x1251e9 <== NOT EXECUTED
108da4: eb 09 jmp 108daf <IMFS_print_jnode+0x81> <== NOT EXECUTED
the_jnode->info.file.indirect,
the_jnode->info.file.doubly_indirect,
the_jnode->info.file.triply_indirect
);
#else
fprintf(stdout, " (file %" PRId32 ")",
108da6: 51 push %ecx
108da7: ff 73 50 pushl 0x50(%ebx)
108daa: 68 f8 51 12 00 push $0x1251f8
108daf: ff 70 08 pushl 0x8(%eax)
108db2: e8 99 d4 00 00 call 116250 <fprintf>
(uint32_t)the_jnode->info.file.size );
#endif
break;
108db7: 83 c4 10 add $0x10,%esp
default:
fprintf(stdout, " bad type %d\n", the_jnode->type );
assert(0);
break;
}
puts("");
108dba: c7 45 08 4d 55 12 00 movl $0x12554d,0x8(%ebp)
}
108dc1: 8b 5d fc mov -0x4(%ebp),%ebx
108dc4: c9 leave
default:
fprintf(stdout, " bad type %d\n", the_jnode->type );
assert(0);
break;
}
puts("");
108dc5: e9 e6 ed 00 00 jmp 117bb0 <puts>
(uint32_t)the_jnode->info.file.size );
#endif
break;
case IMFS_HARD_LINK:
fprintf(stdout, " links not printed\n" );
108dca: 52 push %edx <== NOT EXECUTED
108dcb: 52 push %edx <== NOT EXECUTED
108dcc: ff 70 08 pushl 0x8(%eax) <== NOT EXECUTED
108dcf: 68 04 52 12 00 push $0x125204 <== NOT EXECUTED
108dd4: e8 9f d5 00 00 call 116378 <fputs> <== NOT EXECUTED
assert(0);
108dd9: 68 cf 49 12 00 push $0x1249cf <== NOT EXECUTED
108dde: 68 38 53 12 00 push $0x125338 <== NOT EXECUTED
108de3: 6a 5d push $0x5d <== NOT EXECUTED
108de5: 68 86 51 12 00 push $0x125186 <== NOT EXECUTED
108dea: e8 c9 07 00 00 call 1095b8 <__assert_func> <== NOT EXECUTED
break;
case IMFS_SYM_LINK:
fprintf(stdout, " links not printed\n" );
108def: 53 push %ebx <== NOT EXECUTED
108df0: 53 push %ebx <== NOT EXECUTED
108df1: ff 70 08 pushl 0x8(%eax) <== NOT EXECUTED
108df4: 68 04 52 12 00 push $0x125204 <== NOT EXECUTED
108df9: e8 7a d5 00 00 call 116378 <fputs> <== NOT EXECUTED
assert(0);
108dfe: 68 cf 49 12 00 push $0x1249cf <== NOT EXECUTED
108e03: 68 38 53 12 00 push $0x125338 <== NOT EXECUTED
108e08: 6a 62 push $0x62 <== NOT EXECUTED
108e0a: eb d9 jmp 108de5 <IMFS_print_jnode+0xb7> <== NOT EXECUTED
break;
case IMFS_FIFO:
fprintf(stdout, " FIFO not printed\n" );
108e0c: 51 push %ecx <== NOT EXECUTED
108e0d: 51 push %ecx <== NOT EXECUTED
108e0e: ff 70 08 pushl 0x8(%eax) <== NOT EXECUTED
108e11: 68 18 52 12 00 push $0x125218 <== NOT EXECUTED
108e16: e8 5d d5 00 00 call 116378 <fputs> <== NOT EXECUTED
assert(0);
108e1b: 68 cf 49 12 00 push $0x1249cf <== NOT EXECUTED
108e20: 68 38 53 12 00 push $0x125338 <== NOT EXECUTED
108e25: 6a 67 push $0x67 <== NOT EXECUTED
108e27: eb bc jmp 108de5 <IMFS_print_jnode+0xb7> <== NOT EXECUTED
break;
default:
fprintf(stdout, " bad type %d\n", the_jnode->type );
108e29: 52 push %edx <== NOT EXECUTED
108e2a: 50 push %eax <== NOT EXECUTED
108e2b: 68 2b 52 12 00 push $0x12522b <== NOT EXECUTED
108e30: a1 e0 a4 12 00 mov 0x12a4e0,%eax <== NOT EXECUTED
108e35: ff 70 08 pushl 0x8(%eax) <== NOT EXECUTED
108e38: e8 13 d4 00 00 call 116250 <fprintf> <== NOT EXECUTED
assert(0);
108e3d: 68 cf 49 12 00 push $0x1249cf <== NOT EXECUTED
108e42: 68 38 53 12 00 push $0x125338 <== NOT EXECUTED
108e47: 6a 6c push $0x6c <== NOT EXECUTED
108e49: eb 9a jmp 108de5 <IMFS_print_jnode+0xb7> <== NOT EXECUTED
00107060 <IMFS_readlink>:
int IMFS_readlink(
rtems_filesystem_location_info_t *loc,
char *buf, /* OUT */
size_t bufsize
)
{
107060: 55 push %ebp
107061: 89 e5 mov %esp,%ebp
107063: 56 push %esi
107064: 53 push %ebx
107065: 8b 75 0c mov 0xc(%ebp),%esi
107068: 8b 5d 10 mov 0x10(%ebp),%ebx
IMFS_jnode_t *node;
int i;
node = loc->node_access;
10706b: 8b 45 08 mov 0x8(%ebp),%eax
10706e: 8b 10 mov (%eax),%edx
if ( node->type != IMFS_SYM_LINK )
107070: 31 c0 xor %eax,%eax
107072: 83 7a 4c 04 cmpl $0x4,0x4c(%edx)
107076: 74 14 je 10708c <IMFS_readlink+0x2c> <== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( EINVAL );
107078: e8 97 b9 00 00 call 112a14 <__errno> <== NOT EXECUTED
10707d: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
107083: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
107086: eb 12 jmp 10709a <IMFS_readlink+0x3a> <== NOT EXECUTED
for( i=0; ((i<bufsize) && (node->info.sym_link.name[i] != '\0')); i++ )
buf[i] = node->info.sym_link.name[i];
107088: 88 0c 06 mov %cl,(%esi,%eax,1)
node = loc->node_access;
if ( node->type != IMFS_SYM_LINK )
rtems_set_errno_and_return_minus_one( EINVAL );
for( i=0; ((i<bufsize) && (node->info.sym_link.name[i] != '\0')); i++ )
10708b: 40 inc %eax
10708c: 39 d8 cmp %ebx,%eax
10708e: 73 0a jae 10709a <IMFS_readlink+0x3a>
107090: 8b 4a 50 mov 0x50(%edx),%ecx
107093: 8a 0c 01 mov (%ecx,%eax,1),%cl
107096: 84 c9 test %cl,%cl
107098: 75 ee jne 107088 <IMFS_readlink+0x28>
buf[i] = node->info.sym_link.name[i];
return i;
}
10709a: 5b pop %ebx
10709b: 5e pop %esi
10709c: c9 leave
10709d: c3 ret
001070a0 <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 */
)
{
1070a0: 55 push %ebp
1070a1: 89 e5 mov %esp,%ebp
1070a3: 53 push %ebx
1070a4: 83 ec 18 sub $0x18,%esp
IMFS_jnode_t *the_jnode;
IMFS_jnode_t *new_parent;
the_jnode = old_loc->node_access;
1070a7: 8b 45 0c mov 0xc(%ebp),%eax
1070aa: 8b 18 mov (%eax),%ebx
strncpy( the_jnode->name, new_name, IMFS_NAME_MAX );
1070ac: 6a 20 push $0x20
1070ae: ff 75 14 pushl 0x14(%ebp)
1070b1: 8d 43 0c lea 0xc(%ebx),%eax
1070b4: 50 push %eax
1070b5: e8 6e c6 00 00 call 113728 <strncpy>
if ( the_jnode->Parent != NULL )
1070ba: 83 c4 10 add $0x10,%esp
1070bd: 83 7b 08 00 cmpl $0x0,0x8(%ebx)
1070c1: 74 0c je 1070cf <IMFS_rename+0x2f> <== NEVER TAKEN
*/
RTEMS_INLINE_ROUTINE void rtems_chain_extract(
rtems_chain_node *the_node
)
{
_Chain_Extract( the_node );
1070c3: 83 ec 0c sub $0xc,%esp
1070c6: 53 push %ebx
1070c7: e8 8c 3d 00 00 call 10ae58 <_Chain_Extract>
1070cc: 83 c4 10 add $0x10,%esp
rtems_chain_extract( (rtems_chain_node *) the_jnode );
new_parent = new_parent_loc->node_access;
1070cf: 8b 45 10 mov 0x10(%ebp),%eax
1070d2: 8b 00 mov (%eax),%eax
the_jnode->Parent = new_parent;
1070d4: 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 );
1070d7: 51 push %ecx
1070d8: 51 push %ecx
1070d9: 53 push %ebx
1070da: 83 c0 50 add $0x50,%eax
1070dd: 50 push %eax
1070de: e8 51 3d 00 00 call 10ae34 <_Chain_Append>
rtems_chain_append( &new_parent->info.directory.Entries, &the_jnode->Node );
/*
* Update the time.
*/
IMFS_update_ctime( the_jnode );
1070e3: 58 pop %eax
1070e4: 5a pop %edx
1070e5: 6a 00 push $0x0
1070e7: 8d 45 f0 lea -0x10(%ebp),%eax
1070ea: 50 push %eax
1070eb: e8 24 06 00 00 call 107714 <gettimeofday>
1070f0: 8b 45 f0 mov -0x10(%ebp),%eax
1070f3: 89 43 48 mov %eax,0x48(%ebx)
return 0;
}
1070f6: 31 c0 xor %eax,%eax
1070f8: 8b 5d fc mov -0x4(%ebp),%ebx
1070fb: c9 leave
1070fc: c3 ret
0010ec2c <IMFS_rmnod>:
int IMFS_rmnod(
rtems_filesystem_location_info_t *parent_pathloc, /* IN */
rtems_filesystem_location_info_t *pathloc /* IN */
)
{
10ec2c: 55 push %ebp
10ec2d: 89 e5 mov %esp,%ebp
10ec2f: 56 push %esi
10ec30: 53 push %ebx
10ec31: 83 ec 10 sub $0x10,%esp
10ec34: 8b 75 0c mov 0xc(%ebp),%esi
IMFS_jnode_t *the_jnode;
the_jnode = (IMFS_jnode_t *) pathloc->node_access;
10ec37: 8b 1e mov (%esi),%ebx
/*
* Take the node out of the parent's chain that contains this node
*/
if ( the_jnode->Parent != NULL ) {
10ec39: 83 7b 08 00 cmpl $0x0,0x8(%ebx)
10ec3d: 74 13 je 10ec52 <IMFS_rmnod+0x26> <== NEVER TAKEN
*/
RTEMS_INLINE_ROUTINE void rtems_chain_extract(
rtems_chain_node *the_node
)
{
_Chain_Extract( the_node );
10ec3f: 83 ec 0c sub $0xc,%esp
10ec42: 53 push %ebx
10ec43: e8 10 c2 ff ff call 10ae58 <_Chain_Extract>
rtems_chain_extract( (rtems_chain_node *) the_jnode );
the_jnode->Parent = NULL;
10ec48: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx)
10ec4f: 83 c4 10 add $0x10,%esp
/*
* Decrement the link counter and see if we can free the space.
*/
the_jnode->st_nlink--;
10ec52: 66 ff 4b 34 decw 0x34(%ebx)
IMFS_update_ctime( the_jnode );
10ec56: 50 push %eax
10ec57: 50 push %eax
10ec58: 6a 00 push $0x0
10ec5a: 8d 45 f0 lea -0x10(%ebp),%eax
10ec5d: 50 push %eax
10ec5e: e8 b1 8a ff ff call 107714 <gettimeofday>
10ec63: 8b 45 f0 mov -0x10(%ebp),%eax
10ec66: 89 43 48 mov %eax,0x48(%ebx)
/*
* The file cannot be open and the link must be less than 1 to free.
*/
if ( !rtems_libio_is_file_open( the_jnode ) && (the_jnode->st_nlink < 1) ) {
10ec69: 89 1c 24 mov %ebx,(%esp)
10ec6c: e8 b1 02 00 00 call 10ef22 <rtems_libio_is_file_open>
10ec71: 83 c4 10 add $0x10,%esp
10ec74: 85 c0 test %eax,%eax
10ec76: 75 3f jne 10ecb7 <IMFS_rmnod+0x8b> <== NEVER TAKEN
10ec78: 66 83 7b 34 00 cmpw $0x0,0x34(%ebx)
10ec7d: 75 38 jne 10ecb7 <IMFS_rmnod+0x8b> <== NEVER TAKEN
/*
* Is rtems_filesystem_current this node?
*/
if ( rtems_filesystem_current.node_access == pathloc->node_access )
10ec7f: a1 54 3f 12 00 mov 0x123f54,%eax
10ec84: 8b 50 04 mov 0x4(%eax),%edx
10ec87: 3b 16 cmp (%esi),%edx
10ec89: 75 07 jne 10ec92 <IMFS_rmnod+0x66> <== ALWAYS TAKEN
rtems_filesystem_current.node_access = NULL;
10ec8b: c7 40 04 00 00 00 00 movl $0x0,0x4(%eax) <== NOT EXECUTED
/*
* Free memory associated with a memory file.
*/
if ( the_jnode->type == IMFS_SYM_LINK ) {
10ec92: 83 7b 4c 04 cmpl $0x4,0x4c(%ebx)
10ec96: 75 13 jne 10ecab <IMFS_rmnod+0x7f>
if ( the_jnode->info.sym_link.name )
10ec98: 8b 43 50 mov 0x50(%ebx),%eax
10ec9b: 85 c0 test %eax,%eax
10ec9d: 74 0c je 10ecab <IMFS_rmnod+0x7f> <== NEVER TAKEN
free( (void*) the_jnode->info.sym_link.name );
10ec9f: 83 ec 0c sub $0xc,%esp
10eca2: 50 push %eax
10eca3: e8 f4 89 ff ff call 10769c <free>
10eca8: 83 c4 10 add $0x10,%esp
}
free( the_jnode );
10ecab: 83 ec 0c sub $0xc,%esp
10ecae: 53 push %ebx
10ecaf: e8 e8 89 ff ff call 10769c <free>
10ecb4: 83 c4 10 add $0x10,%esp
}
return 0;
}
10ecb7: 31 c0 xor %eax,%eax
10ecb9: 8d 65 f8 lea -0x8(%ebp),%esp
10ecbc: 5b pop %ebx
10ecbd: 5e pop %esi
10ecbe: c9 leave
10ecbf: c3 ret
0010ecc0 <IMFS_stat>:
int IMFS_stat(
rtems_filesystem_location_info_t *loc,
struct stat *buf
)
{
10ecc0: 55 push %ebp
10ecc1: 89 e5 mov %esp,%ebp
10ecc3: 56 push %esi
10ecc4: 53 push %ebx
10ecc5: 8b 4d 08 mov 0x8(%ebp),%ecx
10ecc8: 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;
10eccb: 8b 11 mov (%ecx),%edx
switch ( the_jnode->type ) {
10eccd: 8b 5a 4c mov 0x4c(%edx),%ebx
10ecd0: 83 eb 02 sub $0x2,%ebx
10ecd3: 83 fb 05 cmp $0x5,%ebx
10ecd6: 77 33 ja 10ed0b <IMFS_stat+0x4b> <== NEVER TAKEN
10ecd8: ff 24 9d 64 07 12 00 jmp *0x120764(,%ebx,4)
case IMFS_DEVICE:
io = &the_jnode->info.device;
buf->st_rdev = rtems_filesystem_make_dev_t( io->major, io->minor );
10ecdf: 8b 5a 54 mov 0x54(%edx),%ebx
rtems_device_minor_number _minor
)
{
union __rtems_dev_t temp;
temp.__overlay.major = _major;
10ece2: 8b 72 50 mov 0x50(%edx),%esi
10ece5: 89 70 18 mov %esi,0x18(%eax)
10ece8: 89 58 1c mov %ebx,0x1c(%eax)
break;
10eceb: eb 2e jmp 10ed1b <IMFS_stat+0x5b>
case IMFS_LINEAR_FILE:
case IMFS_MEMORY_FILE:
buf->st_size = the_jnode->info.file.size;
10eced: 8b 5a 50 mov 0x50(%edx),%ebx
10ecf0: 8b 72 54 mov 0x54(%edx),%esi
10ecf3: 89 58 20 mov %ebx,0x20(%eax)
10ecf6: 89 70 24 mov %esi,0x24(%eax)
break;
10ecf9: eb 20 jmp 10ed1b <IMFS_stat+0x5b>
case IMFS_SYM_LINK:
buf->st_size = 0;
break;
case IMFS_FIFO:
buf->st_size = 0;
10ecfb: c7 40 20 00 00 00 00 movl $0x0,0x20(%eax) <== NOT EXECUTED
10ed02: c7 40 24 00 00 00 00 movl $0x0,0x24(%eax) <== NOT EXECUTED
break;
10ed09: eb 10 jmp 10ed1b <IMFS_stat+0x5b> <== NOT EXECUTED
default:
rtems_set_errno_and_return_minus_one( ENOTSUP );
10ed0b: e8 04 3d 00 00 call 112a14 <__errno> <== NOT EXECUTED
10ed10: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
10ed16: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
10ed19: eb 50 jmp 10ed6b <IMFS_stat+0xab> <== NOT EXECUTED
* The device number of the IMFS is the major number and the minor is the
* instance.
*/
fs_info = loc->mt_entry->fs_info;
buf->st_dev =
rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance );
10ed1b: 8b 49 10 mov 0x10(%ecx),%ecx
10ed1e: 8b 49 34 mov 0x34(%ecx),%ecx
10ed21: 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 =
10ed23: c7 00 fe ff 00 00 movl $0xfffe,(%eax)
10ed29: 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;
10ed2c: 8b 4a 30 mov 0x30(%edx),%ecx
10ed2f: 89 48 0c mov %ecx,0xc(%eax)
buf->st_nlink = the_jnode->st_nlink;
10ed32: 8b 4a 34 mov 0x34(%edx),%ecx
10ed35: 66 89 48 10 mov %cx,0x10(%eax)
buf->st_ino = the_jnode->st_ino;
10ed39: 8b 4a 38 mov 0x38(%edx),%ecx
10ed3c: 89 48 08 mov %ecx,0x8(%eax)
buf->st_uid = the_jnode->st_uid;
10ed3f: 8b 4a 3c mov 0x3c(%edx),%ecx
10ed42: 66 89 48 12 mov %cx,0x12(%eax)
buf->st_gid = the_jnode->st_gid;
10ed46: 66 8b 4a 3e mov 0x3e(%edx),%cx
10ed4a: 66 89 48 14 mov %cx,0x14(%eax)
buf->st_atime = the_jnode->stat_atime;
10ed4e: 8b 4a 40 mov 0x40(%edx),%ecx
10ed51: 89 48 28 mov %ecx,0x28(%eax)
buf->st_mtime = the_jnode->stat_mtime;
10ed54: 8b 4a 44 mov 0x44(%edx),%ecx
10ed57: 89 48 30 mov %ecx,0x30(%eax)
buf->st_ctime = the_jnode->stat_ctime;
10ed5a: 8b 52 48 mov 0x48(%edx),%edx
10ed5d: 89 50 38 mov %edx,0x38(%eax)
buf->st_blksize = imfs_rq_memfile_bytes_per_block;
10ed60: 8b 15 48 21 12 00 mov 0x122148,%edx
10ed66: 89 50 40 mov %edx,0x40(%eax)
10ed69: 31 c0 xor %eax,%eax
return 0;
}
10ed6b: 5b pop %ebx
10ed6c: 5e pop %esi
10ed6d: c9 leave
10ed6e: c3 ret
00107100 <IMFS_symlink>:
int IMFS_symlink(
rtems_filesystem_location_info_t *parent_loc,
const char *link_name,
const char *node_name
)
{
107100: 55 push %ebp
107101: 89 e5 mov %esp,%ebp
107103: 57 push %edi
107104: 53 push %ebx
107105: 83 ec 40 sub $0x40,%esp
107108: 8b 55 10 mov 0x10(%ebp),%edx
int i;
/*
* Remove any separators at the end of the string.
*/
IMFS_get_token( node_name, strlen( node_name ), new_name, &i );
10710b: 31 c0 xor %eax,%eax
10710d: 83 c9 ff or $0xffffffff,%ecx
107110: 89 d7 mov %edx,%edi
107112: f2 ae repnz scas %es:(%edi),%al
107114: f7 d1 not %ecx
107116: 49 dec %ecx
107117: 8d 45 f4 lea -0xc(%ebp),%eax
10711a: 50 push %eax
10711b: 8d 5d bf lea -0x41(%ebp),%ebx
10711e: 53 push %ebx
10711f: 51 push %ecx
107120: 52 push %edx
107121: e8 46 7a 00 00 call 10eb6c <IMFS_get_token>
/*
* Duplicate link name
*/
info.sym_link.name = strdup(link_name);
107126: 58 pop %eax
107127: ff 75 0c pushl 0xc(%ebp)
10712a: e8 a9 c4 00 00 call 1135d8 <strdup>
10712f: 89 45 e0 mov %eax,-0x20(%ebp)
if (info.sym_link.name == NULL) {
107132: 83 c4 10 add $0x10,%esp
107135: 85 c0 test %eax,%eax
107137: 75 10 jne 107149 <IMFS_symlink+0x49> <== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one(ENOMEM);
107139: e8 d6 b8 00 00 call 112a14 <__errno> <== NOT EXECUTED
10713e: c7 00 0c 00 00 00 movl $0xc,(%eax) <== NOT EXECUTED
107144: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
107147: eb 3e jmp 107187 <IMFS_symlink+0x87> <== NOT EXECUTED
* was ONLY passed a NULL when we created the root node. We
* added a new IMFS_create_root_node() so this path no longer
* existed. The result was simpler code which should not have
* this path.
*/
new_node = IMFS_create_node(
107149: 83 ec 0c sub $0xc,%esp
10714c: 8d 45 e0 lea -0x20(%ebp),%eax
10714f: 50 push %eax
107150: 68 ff a1 00 00 push $0xa1ff
107155: 53 push %ebx
107156: 6a 04 push $0x4
107158: ff 75 08 pushl 0x8(%ebp)
10715b: e8 06 6f 00 00 call 10e066 <IMFS_create_node>
107160: 89 c2 mov %eax,%edx
new_name,
( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )),
&info
);
if (new_node == NULL) {
107162: 83 c4 20 add $0x20,%esp
107165: 31 c0 xor %eax,%eax
107167: 85 d2 test %edx,%edx
107169: 75 1c jne 107187 <IMFS_symlink+0x87> <== ALWAYS TAKEN
free(info.sym_link.name);
10716b: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10716e: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
107171: e8 26 05 00 00 call 10769c <free> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(ENOMEM);
107176: e8 99 b8 00 00 call 112a14 <__errno> <== NOT EXECUTED
10717b: c7 00 0c 00 00 00 movl $0xc,(%eax) <== NOT EXECUTED
107181: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
107184: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
return 0;
}
107187: 8d 65 f8 lea -0x8(%ebp),%esp
10718a: 5b pop %ebx
10718b: 5f pop %edi
10718c: c9 leave
10718d: c3 ret
00107190 <IMFS_unlink>:
int IMFS_unlink(
rtems_filesystem_location_info_t *parentloc, /* IN */
rtems_filesystem_location_info_t *loc /* IN */
)
{
107190: 55 push %ebp
107191: 89 e5 mov %esp,%ebp
107193: 57 push %edi
107194: 56 push %esi
107195: 53 push %ebx
107196: 83 ec 2c sub $0x2c,%esp
IMFS_jnode_t *node;
rtems_filesystem_location_info_t the_link;
int result = 0;
node = loc->node_access;
107199: 8b 45 0c mov 0xc(%ebp),%eax
10719c: 8b 18 mov (%eax),%ebx
/*
* If this is the last last pointer to the node
* free the node.
*/
if ( node->type == IMFS_HARD_LINK ) {
10719e: 83 7b 4c 03 cmpl $0x3,0x4c(%ebx)
1071a2: 75 7a jne 10721e <IMFS_unlink+0x8e>
if ( !node->info.hard_link.link_node )
1071a4: 8b 43 50 mov 0x50(%ebx),%eax
1071a7: 85 c0 test %eax,%eax
1071a9: 75 10 jne 1071bb <IMFS_unlink+0x2b> <== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( EINVAL );
1071ab: e8 64 b8 00 00 call 112a14 <__errno> <== NOT EXECUTED
1071b0: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
1071b6: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
1071b9: eb 75 jmp 107230 <IMFS_unlink+0xa0> <== NOT EXECUTED
the_link = *loc;
1071bb: 8d 7d cc lea -0x34(%ebp),%edi
1071be: b9 05 00 00 00 mov $0x5,%ecx
1071c3: 8b 75 0c mov 0xc(%ebp),%esi
1071c6: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
the_link.node_access = node->info.hard_link.link_node;
1071c8: 89 45 cc mov %eax,-0x34(%ebp)
IMFS_Set_handlers( &the_link );
1071cb: 83 ec 0c sub $0xc,%esp
1071ce: 8d 75 cc lea -0x34(%ebp),%esi
1071d1: 56 push %esi
1071d2: e8 91 6f 00 00 call 10e168 <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)
1071d7: 8b 43 50 mov 0x50(%ebx),%eax
1071da: 8b 50 34 mov 0x34(%eax),%edx
1071dd: 83 c4 10 add $0x10,%esp
1071e0: 66 83 fa 01 cmp $0x1,%dx
1071e4: 75 1a jne 107200 <IMFS_unlink+0x70>
{
result = (*the_link.handlers->rmnod_h)( parentloc, &the_link );
1071e6: 51 push %ecx
1071e7: 51 push %ecx
1071e8: 56 push %esi
1071e9: ff 75 08 pushl 0x8(%ebp)
1071ec: 8b 45 d4 mov -0x2c(%ebp),%eax
1071ef: ff 50 34 call *0x34(%eax)
1071f2: 89 c2 mov %eax,%edx
if ( result != 0 )
1071f4: 83 c4 10 add $0x10,%esp
1071f7: 83 c8 ff or $0xffffffff,%eax
1071fa: 85 d2 test %edx,%edx
1071fc: 74 20 je 10721e <IMFS_unlink+0x8e>
1071fe: eb 30 jmp 107230 <IMFS_unlink+0xa0>
return -1;
}
else
{
node->info.hard_link.link_node->st_nlink --;
107200: 4a dec %edx
107201: 66 89 50 34 mov %dx,0x34(%eax)
IMFS_update_ctime( node->info.hard_link.link_node );
107205: 52 push %edx
107206: 52 push %edx
107207: 6a 00 push $0x0
107209: 8d 45 e0 lea -0x20(%ebp),%eax
10720c: 50 push %eax
10720d: e8 02 05 00 00 call 107714 <gettimeofday>
107212: 8b 43 50 mov 0x50(%ebx),%eax
107215: 8b 55 e0 mov -0x20(%ebp),%edx
107218: 89 50 48 mov %edx,0x48(%eax)
10721b: 83 c4 10 add $0x10,%esp
/*
* Now actually free the node we were asked to free.
*/
result = (*loc->handlers->rmnod_h)( parentloc, loc );
10721e: 50 push %eax
10721f: 50 push %eax
107220: 8b 55 0c mov 0xc(%ebp),%edx
107223: 8b 42 08 mov 0x8(%edx),%eax
107226: 52 push %edx
107227: ff 75 08 pushl 0x8(%ebp)
10722a: ff 50 34 call *0x34(%eax)
return result;
10722d: 83 c4 10 add $0x10,%esp
}
107230: 8d 65 f4 lea -0xc(%ebp),%esp
107233: 5b pop %ebx
107234: 5e pop %esi
107235: 5f pop %edi
107236: c9 leave
107237: c3 ret
00107238 <IMFS_unmount>:
#include <rtems/seterr.h>
int IMFS_unmount(
rtems_filesystem_mount_table_entry_t *mt_entry
)
{
107238: 55 push %ebp
107239: 89 e5 mov %esp,%ebp
10723b: 83 ec 08 sub $0x8,%esp
IMFS_jnode_t *node;
node = mt_entry->mt_point_node.node_access;
10723e: 8b 45 08 mov 0x8(%ebp),%eax
107241: 8b 40 08 mov 0x8(%eax),%eax
/*
* Is the node that we are mounting onto a directory node ?
*/
if ( node->type != IMFS_DIRECTORY )
107244: 83 78 4c 01 cmpl $0x1,0x4c(%eax)
107248: 74 0d je 107257 <IMFS_unmount+0x1f> <== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( ENOTDIR );
10724a: e8 c5 b7 00 00 call 112a14 <__errno> <== NOT EXECUTED
10724f: c7 00 14 00 00 00 movl $0x14,(%eax) <== NOT EXECUTED
107255: eb 11 jmp 107268 <IMFS_unmount+0x30> <== NOT EXECUTED
/*
* Did the node indicate that there was a directory mounted here?
*/
if ( node->info.directory.mt_fs == NULL )
107257: 83 78 5c 00 cmpl $0x0,0x5c(%eax)
10725b: 75 10 jne 10726d <IMFS_unmount+0x35> <== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( EINVAL ); /* XXX */
10725d: e8 b2 b7 00 00 call 112a14 <__errno> <== NOT EXECUTED
107262: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
107268: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
10726b: eb 09 jmp 107276 <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;
10726d: c7 40 5c 00 00 00 00 movl $0x0,0x5c(%eax)
107274: 31 c0 xor %eax,%eax
return 0;
}
107276: c9 leave
107277: c3 ret
00107894 <RTEMS_Malloc_Initialize>:
void RTEMS_Malloc_Initialize(
void *heap_begin,
uintptr_t heap_size,
size_t sbrk_amount
)
{
107894: 55 push %ebp
107895: 89 e5 mov %esp,%ebp
107897: 57 push %edi
107898: 56 push %esi
107899: 53 push %ebx
10789a: 83 ec 0c sub $0xc,%esp
10789d: 8b 5d 08 mov 0x8(%ebp),%ebx
1078a0: 8b 75 0c mov 0xc(%ebp),%esi
#endif
/*
* If configured, initialize the statistics support
*/
if ( rtems_malloc_statistics_helpers != NULL ) {
1078a3: a1 30 45 12 00 mov 0x124530,%eax
1078a8: 85 c0 test %eax,%eax
1078aa: 74 02 je 1078ae <RTEMS_Malloc_Initialize+0x1a>
(*rtems_malloc_statistics_helpers->initialize)();
1078ac: ff 10 call *(%eax)
}
/*
* Initialize the garbage collection list to start with nothing on it.
*/
malloc_deferred_frees_initialize();
1078ae: e8 7c ff ff ff call 10782f <malloc_deferred_frees_initialize>
/*
* Initialize the optional sbrk support for extending the heap
*/
if ( rtems_malloc_sbrk_helpers != NULL ) {
1078b3: a1 34 45 12 00 mov 0x124534,%eax
1078b8: 85 c0 test %eax,%eax
1078ba: 74 12 je 1078ce <RTEMS_Malloc_Initialize+0x3a><== ALWAYS TAKEN
void *new_heap_begin = (*rtems_malloc_sbrk_helpers->initialize)(
1078bc: 52 push %edx <== NOT EXECUTED
1078bd: 52 push %edx <== NOT EXECUTED
1078be: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
1078c1: 53 push %ebx <== NOT EXECUTED
1078c2: ff 10 call *(%eax) <== NOT EXECUTED
heap_begin,
sbrk_amount
);
heap_size -= (uintptr_t) new_heap_begin - (uintptr_t) heap_begin;
1078c4: 8d 34 33 lea (%ebx,%esi,1),%esi <== NOT EXECUTED
1078c7: 29 c6 sub %eax,%esi <== NOT EXECUTED
1078c9: 89 c3 mov %eax,%ebx <== NOT EXECUTED
1078cb: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
* of the time under UNIX because zero'ing memory when it is first
* given to a process eliminates the chance of a process seeing data
* left over from another process. This would be a security violation.
*/
if (
1078ce: 80 3d 2d 45 12 00 00 cmpb $0x0,0x12452d
1078d5: 75 11 jne 1078e8 <RTEMS_Malloc_Initialize+0x54>
!rtems_unified_work_area
&& rtems_configuration_get_do_zero_of_workspace()
1078d7: 80 3d 20 22 12 00 00 cmpb $0x0,0x122220
1078de: 74 08 je 1078e8 <RTEMS_Malloc_Initialize+0x54>
) {
memset( heap_begin, 0, heap_size );
1078e0: 31 c0 xor %eax,%eax
1078e2: 89 df mov %ebx,%edi
1078e4: 89 f1 mov %esi,%ecx
1078e6: f3 aa rep stos %al,%es:(%edi)
* Unfortunately we cannot use assert if this fails because if this
* has failed we do not have a heap and if we do not have a heap
* STDIO cannot work because there will be no buffers.
*/
if ( !rtems_unified_work_area ) {
1078e8: 80 3d 2d 45 12 00 00 cmpb $0x0,0x12452d
1078ef: 75 20 jne 107911 <RTEMS_Malloc_Initialize+0x7d>
void *area_begin,
uintptr_t area_size,
uintptr_t page_size
)
{
return _Heap_Initialize( heap, area_begin, area_size, page_size );
1078f1: 6a 04 push $0x4
1078f3: 56 push %esi
1078f4: 53 push %ebx
1078f5: ff 35 50 21 12 00 pushl 0x122150
1078fb: e8 84 3a 00 00 call 10b384 <_Heap_Initialize>
RTEMS_Malloc_Heap,
heap_begin,
heap_size,
CPU_HEAP_ALIGNMENT
);
if ( status == 0 ) {
107900: 83 c4 10 add $0x10,%esp
107903: 85 c0 test %eax,%eax
107905: 75 0a jne 107911 <RTEMS_Malloc_Initialize+0x7d><== ALWAYS TAKEN
rtems_fatal_error_occurred( RTEMS_NO_MEMORY );
107907: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10790a: 6a 1a push $0x1a <== NOT EXECUTED
10790c: e8 7f 32 00 00 call 10ab90 <rtems_fatal_error_occurred><== NOT EXECUTED
}
}
MSBUMP( space_available, _Protected_heap_Get_size(RTEMS_Malloc_Heap) );
107911: 8b 1d d0 60 12 00 mov 0x1260d0,%ebx
107917: 83 ec 0c sub $0xc,%esp
10791a: ff 35 50 21 12 00 pushl 0x122150
107920: e8 f7 44 00 00 call 10be1c <_Protected_heap_Get_size>
107925: 8d 1c 18 lea (%eax,%ebx,1),%ebx
107928: 89 1d d0 60 12 00 mov %ebx,0x1260d0
10792e: 83 c4 10 add $0x10,%esp
printk( "\n" );
rtems_print_buffer( (heap_begin + heap_size) - 48, 48 );
rtems_fatal_error_occurred( RTEMS_NO_MEMORY );
}
#endif
}
107931: 8d 65 f4 lea -0xc(%ebp),%esp
107934: 5b pop %ebx
107935: 5e pop %esi
107936: 5f pop %edi
107937: c9 leave
107938: c3 ret
0010b6a2 <Stack_check_Dump_threads_usage>:
static rtems_printk_plugin_t print_handler;
void Stack_check_Dump_threads_usage(
Thread_Control *the_thread
)
{
10b6a2: 55 push %ebp <== NOT EXECUTED
10b6a3: 89 e5 mov %esp,%ebp <== NOT EXECUTED
10b6a5: 57 push %edi <== NOT EXECUTED
10b6a6: 56 push %esi <== NOT EXECUTED
10b6a7: 53 push %ebx <== NOT EXECUTED
10b6a8: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED
10b6ab: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
void *high_water_mark;
void *current;
Stack_Control *stack;
char name[5];
if ( !the_thread )
10b6ae: 85 db test %ebx,%ebx <== NOT EXECUTED
10b6b0: 0f 84 fa 00 00 00 je 10b7b0 <Stack_check_Dump_threads_usage+0x10e><== NOT EXECUTED
return;
if ( !print_handler )
10b6b6: a1 a8 73 16 00 mov 0x1673a8,%eax <== NOT EXECUTED
10b6bb: 89 45 d0 mov %eax,-0x30(%ebp) <== NOT EXECUTED
10b6be: 85 c0 test %eax,%eax <== NOT EXECUTED
10b6c0: 0f 84 ea 00 00 00 je 10b7b0 <Stack_check_Dump_threads_usage+0x10e><== NOT EXECUTED
/*
* Obtain interrupt stack information
*/
if (the_thread == (Thread_Control *) -1) {
10b6c6: 83 fb ff cmp $0xffffffff,%ebx <== NOT EXECUTED
10b6c9: 75 1d jne 10b6e8 <Stack_check_Dump_threads_usage+0x46><== NOT EXECUTED
if (Stack_check_Interrupt_stack.area) {
10b6cb: 83 3d cc 9f 16 00 00 cmpl $0x0,0x169fcc <== NOT EXECUTED
10b6d2: 0f 84 d8 00 00 00 je 10b7b0 <Stack_check_Dump_threads_usage+0x10e><== NOT EXECUTED
10b6d8: be c8 9f 16 00 mov $0x169fc8,%esi <== NOT EXECUTED
10b6dd: c7 45 cc 00 00 00 00 movl $0x0,-0x34(%ebp) <== NOT EXECUTED
10b6e4: 31 db xor %ebx,%ebx <== NOT EXECUTED
10b6e6: eb 0f jmp 10b6f7 <Stack_check_Dump_threads_usage+0x55><== NOT EXECUTED
current = 0;
}
else
return;
} else {
stack = &the_thread->Start.Initial_stack;
10b6e8: 8d b3 c4 00 00 00 lea 0xc4(%ebx),%esi <== NOT EXECUTED
current = (void *)_CPU_Context_Get_SP( &the_thread->Registers );
10b6ee: 8b 8b d8 00 00 00 mov 0xd8(%ebx),%ecx <== NOT EXECUTED
10b6f4: 89 4d cc mov %ecx,-0x34(%ebp) <== NOT EXECUTED
}
low = Stack_check_usable_stack_start(stack);
10b6f7: 8b 56 04 mov 0x4(%esi),%edx <== NOT EXECUTED
10b6fa: 83 c2 10 add $0x10,%edx <== NOT EXECUTED
size = Stack_check_usable_stack_size(stack);
10b6fd: 8b 06 mov (%esi),%eax <== NOT EXECUTED
10b6ff: 83 e8 10 sub $0x10,%eax <== NOT EXECUTED
10b702: 89 45 d4 mov %eax,-0x2c(%ebp) <== NOT EXECUTED
high_water_mark = Stack_check_find_high_water_mark(low, size);
10b705: 50 push %eax <== NOT EXECUTED
10b706: 52 push %edx <== NOT EXECUTED
10b707: 89 55 c8 mov %edx,-0x38(%ebp) <== NOT EXECUTED
10b70a: e8 6c ff ff ff call 10b67b <Stack_check_find_high_water_mark><== NOT EXECUTED
if ( high_water_mark )
10b70f: 59 pop %ecx <== NOT EXECUTED
10b710: 5f pop %edi <== NOT EXECUTED
10b711: 31 ff xor %edi,%edi <== NOT EXECUTED
10b713: 85 c0 test %eax,%eax <== NOT EXECUTED
10b715: 8b 55 c8 mov -0x38(%ebp),%edx <== NOT EXECUTED
10b718: 74 08 je 10b722 <Stack_check_Dump_threads_usage+0x80><== NOT EXECUTED
used = Stack_check_Calculate_used( low, size, high_water_mark );
10b71a: 8b 4d d4 mov -0x2c(%ebp),%ecx <== NOT EXECUTED
10b71d: 8d 3c 0a lea (%edx,%ecx,1),%edi <== NOT EXECUTED
10b720: 29 c7 sub %eax,%edi <== NOT EXECUTED
else
used = 0;
if ( the_thread ) {
10b722: 85 db test %ebx,%ebx <== NOT EXECUTED
10b724: 74 26 je 10b74c <Stack_check_Dump_threads_usage+0xaa><== NOT EXECUTED
(*print_handler)(
10b726: 52 push %edx <== NOT EXECUTED
10b727: 8d 45 e3 lea -0x1d(%ebp),%eax <== NOT EXECUTED
10b72a: 50 push %eax <== NOT EXECUTED
10b72b: 6a 05 push $0x5 <== NOT EXECUTED
10b72d: ff 73 08 pushl 0x8(%ebx) <== NOT EXECUTED
10b730: e8 47 52 00 00 call 11097c <rtems_object_get_name> <== NOT EXECUTED
10b735: 50 push %eax <== NOT EXECUTED
10b736: ff 73 08 pushl 0x8(%ebx) <== NOT EXECUTED
10b739: 68 5c 6a 15 00 push $0x156a5c <== NOT EXECUTED
10b73e: ff 35 a4 73 16 00 pushl 0x1673a4 <== NOT EXECUTED
10b744: ff 55 d0 call *-0x30(%ebp) <== NOT EXECUTED
10b747: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
10b74a: eb 14 jmp 10b760 <Stack_check_Dump_threads_usage+0xbe><== NOT EXECUTED
"0x%08" PRIx32 " %4s",
the_thread->Object.id,
rtems_object_get_name( the_thread->Object.id, sizeof(name), name )
);
} else {
(*print_handler)( print_context, "0x%08" PRIx32 " INTR", ~0 );
10b74c: 50 push %eax <== NOT EXECUTED
10b74d: 6a ff push $0xffffffff <== NOT EXECUTED
10b74f: 68 69 6a 15 00 push $0x156a69 <== NOT EXECUTED
10b754: ff 35 a4 73 16 00 pushl 0x1673a4 <== NOT EXECUTED
10b75a: ff 55 d0 call *-0x30(%ebp) <== NOT EXECUTED
10b75d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
(*print_handler)(
10b760: 8b 46 04 mov 0x4(%esi),%eax <== NOT EXECUTED
10b763: 53 push %ebx <== NOT EXECUTED
10b764: 53 push %ebx <== NOT EXECUTED
10b765: ff 75 d4 pushl -0x2c(%ebp) <== NOT EXECUTED
10b768: ff 75 cc pushl -0x34(%ebp) <== NOT EXECUTED
10b76b: 8b 16 mov (%esi),%edx <== NOT EXECUTED
10b76d: 8d 54 10 ff lea -0x1(%eax,%edx,1),%edx <== NOT EXECUTED
10b771: 52 push %edx <== NOT EXECUTED
10b772: 50 push %eax <== NOT EXECUTED
10b773: 68 77 6a 15 00 push $0x156a77 <== NOT EXECUTED
10b778: ff 35 a4 73 16 00 pushl 0x1673a4 <== NOT EXECUTED
10b77e: ff 15 a8 73 16 00 call *0x1673a8 <== NOT EXECUTED
stack->area + stack->size - 1,
current,
size
);
if (Stack_check_Initialized == 0) {
10b784: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
10b787: 83 3d a0 73 16 00 00 cmpl $0x0,0x1673a0 <== NOT EXECUTED
10b78e: a1 a8 73 16 00 mov 0x1673a8,%eax <== NOT EXECUTED
10b793: 75 09 jne 10b79e <Stack_check_Dump_threads_usage+0xfc><== NOT EXECUTED
(*print_handler)( print_context, "Unavailable\n" );
10b795: 51 push %ecx <== NOT EXECUTED
10b796: 51 push %ecx <== NOT EXECUTED
10b797: 68 95 6a 15 00 push $0x156a95 <== NOT EXECUTED
10b79c: eb 07 jmp 10b7a5 <Stack_check_Dump_threads_usage+0x103><== NOT EXECUTED
} else {
(*print_handler)( print_context, "%8" PRId32 "\n", used );
10b79e: 52 push %edx <== NOT EXECUTED
10b79f: 57 push %edi <== NOT EXECUTED
10b7a0: 68 a2 6a 15 00 push $0x156aa2 <== NOT EXECUTED
10b7a5: ff 35 a4 73 16 00 pushl 0x1673a4 <== NOT EXECUTED
10b7ab: ff d0 call *%eax <== NOT EXECUTED
10b7ad: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
}
10b7b0: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
10b7b3: 5b pop %ebx <== NOT EXECUTED
10b7b4: 5e pop %esi <== NOT EXECUTED
10b7b5: 5f pop %edi <== NOT EXECUTED
10b7b6: c9 leave <== NOT EXECUTED
10b7b7: c3 ret <== NOT EXECUTED
0010b9b5 <Stack_check_Initialize>:
/*
* Stack_check_Initialize
*/
void Stack_check_Initialize( void )
{
10b9b5: 55 push %ebp
10b9b6: 89 e5 mov %esp,%ebp
10b9b8: 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)
10b9b9: 83 3d a0 73 16 00 00 cmpl $0x0,0x1673a0
10b9c0: 75 4d jne 10ba0f <Stack_check_Initialize+0x5a>
10b9c2: 31 c0 xor %eax,%eax
/*
* Dope the pattern and fill areas
*/
p = Stack_check_Pattern.pattern;
for ( i = 0; i < PATTERN_SIZE_WORDS; i++ ) {
p[i] = pattern[ i%4 ];
10b9c4: 89 c2 mov %eax,%edx
10b9c6: 83 e2 03 and $0x3,%edx
10b9c9: 8b 14 95 dc 6b 15 00 mov 0x156bdc(,%edx,4),%edx
10b9d0: 89 14 85 b8 9f 16 00 mov %edx,0x169fb8(,%eax,4)
/*
* Dope the pattern and fill areas
*/
p = Stack_check_Pattern.pattern;
for ( i = 0; i < PATTERN_SIZE_WORDS; i++ ) {
10b9d7: 40 inc %eax
10b9d8: 83 f8 04 cmp $0x4,%eax
10b9db: 75 e7 jne 10b9c4 <Stack_check_Initialize+0xf>
/*
* 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) {
10b9dd: 8b 15 34 a1 16 00 mov 0x16a134,%edx
10b9e3: 85 d2 test %edx,%edx
10b9e5: 74 1e je 10ba05 <Stack_check_Initialize+0x50><== NEVER TAKEN
10b9e7: 8b 0d f4 a0 16 00 mov 0x16a0f4,%ecx
10b9ed: 85 c9 test %ecx,%ecx
10b9ef: 74 14 je 10ba05 <Stack_check_Initialize+0x50><== NEVER TAKEN
Stack_check_Interrupt_stack.area = _CPU_Interrupt_stack_low;
10b9f1: 89 15 cc 9f 16 00 mov %edx,0x169fcc
Stack_check_Interrupt_stack.size = (char *) _CPU_Interrupt_stack_high -
10b9f7: 29 d1 sub %edx,%ecx
10b9f9: 89 0d c8 9f 16 00 mov %ecx,0x169fc8
(char *) _CPU_Interrupt_stack_low;
Stack_check_Dope_stack(&Stack_check_Interrupt_stack);
10b9ff: b0 a5 mov $0xa5,%al
10ba01: 89 d7 mov %edx,%edi
10ba03: f3 aa rep stos %al,%es:(%edi)
}
#endif
Stack_check_Initialized = 1;
10ba05: c7 05 a0 73 16 00 01 movl $0x1,0x1673a0
10ba0c: 00 00 00
}
10ba0f: 5f pop %edi
10ba10: c9 leave
10ba11: c3 ret
0010b67b <Stack_check_find_high_water_mark>:
*/
void *Stack_check_find_high_water_mark(
const void *s,
size_t n
)
{
10b67b: 55 push %ebp <== NOT EXECUTED
10b67c: 89 e5 mov %esp,%ebp <== NOT EXECUTED
10b67e: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
/*
* start at lower memory and find first word that does not
* match pattern
*/
base += PATTERN_SIZE_WORDS;
10b681: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
10b684: 83 c0 10 add $0x10,%eax <== NOT EXECUTED
for (ebase = base + length; base < ebase; base++)
10b687: 83 e2 fc and $0xfffffffc,%edx <== NOT EXECUTED
10b68a: 8d 14 10 lea (%eax,%edx,1),%edx <== NOT EXECUTED
10b68d: eb 0b jmp 10b69a <Stack_check_find_high_water_mark+0x1f><== NOT EXECUTED
if (*base != U32_PATTERN)
10b68f: 81 38 a5 a5 a5 a5 cmpl $0xa5a5a5a5,(%eax) <== NOT EXECUTED
10b695: 75 09 jne 10b6a0 <Stack_check_find_high_water_mark+0x25><== 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++)
10b697: 83 c0 04 add $0x4,%eax <== NOT EXECUTED
10b69a: 39 d0 cmp %edx,%eax <== NOT EXECUTED
10b69c: 72 f1 jb 10b68f <Stack_check_find_high_water_mark+0x14><== NOT EXECUTED
10b69e: 31 c0 xor %eax,%eax <== NOT EXECUTED
if (*base != U32_PATTERN)
return (void *) base;
#endif
return (void *)0;
}
10b6a0: c9 leave <== NOT EXECUTED
10b6a1: c3 ret <== NOT EXECUTED
0010b830 <Stack_check_report_blown_task>:
*
* NOTE: The system is in a questionable state... we may not get
* the following message out.
*/
void Stack_check_report_blown_task(Thread_Control *running, bool pattern_ok)
{
10b830: 55 push %ebp <== NOT EXECUTED
10b831: 89 e5 mov %esp,%ebp <== NOT EXECUTED
10b833: 56 push %esi <== NOT EXECUTED
10b834: 53 push %ebx <== NOT EXECUTED
10b835: 83 ec 3c sub $0x3c,%esp <== NOT EXECUTED
10b838: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
10b83b: 8a 55 0c mov 0xc(%ebp),%dl <== NOT EXECUTED
Stack_Control *stack = &running->Start.Initial_stack;
void *pattern_area = Stack_check_Get_pattern_area(stack);
10b83e: 8b b3 c8 00 00 00 mov 0xc8(%ebx),%esi <== NOT EXECUTED
char name [32];
printk("BLOWN STACK!!!\n");
10b844: 68 09 6b 15 00 push $0x156b09 <== NOT EXECUTED
10b849: 88 55 d4 mov %dl,-0x2c(%ebp) <== NOT EXECUTED
10b84c: e8 1b 27 00 00 call 10df6c <printk> <== NOT EXECUTED
printk("task control block: 0x%08" PRIxPTR "\n", running);
10b851: 5a pop %edx <== NOT EXECUTED
10b852: 59 pop %ecx <== NOT EXECUTED
10b853: 53 push %ebx <== NOT EXECUTED
10b854: 68 19 6b 15 00 push $0x156b19 <== NOT EXECUTED
10b859: e8 0e 27 00 00 call 10df6c <printk> <== NOT EXECUTED
printk("task ID: 0x%08lx\n", (unsigned long) running->Object.id);
10b85e: 59 pop %ecx <== NOT EXECUTED
10b85f: 58 pop %eax <== NOT EXECUTED
10b860: ff 73 08 pushl 0x8(%ebx) <== NOT EXECUTED
10b863: 68 36 6b 15 00 push $0x156b36 <== NOT EXECUTED
10b868: e8 ff 26 00 00 call 10df6c <printk> <== NOT EXECUTED
printk(
10b86d: 58 pop %eax <== NOT EXECUTED
10b86e: 5a pop %edx <== NOT EXECUTED
10b86f: ff 73 0c pushl 0xc(%ebx) <== NOT EXECUTED
10b872: 68 48 6b 15 00 push $0x156b48 <== NOT EXECUTED
10b877: e8 f0 26 00 00 call 10df6c <printk> <== NOT EXECUTED
"task name: 0x%08" PRIx32 "\n",
running->Object.name.name_u32
);
printk(
10b87c: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
10b87f: 8d 45 d8 lea -0x28(%ebp),%eax <== NOT EXECUTED
10b882: 50 push %eax <== NOT EXECUTED
10b883: 6a 20 push $0x20 <== NOT EXECUTED
10b885: ff 73 08 pushl 0x8(%ebx) <== NOT EXECUTED
10b888: e8 ef 50 00 00 call 11097c <rtems_object_get_name> <== NOT EXECUTED
10b88d: 5a pop %edx <== NOT EXECUTED
10b88e: 59 pop %ecx <== NOT EXECUTED
10b88f: 50 push %eax <== NOT EXECUTED
10b890: 68 5c 6b 15 00 push $0x156b5c <== NOT EXECUTED
10b895: e8 d2 26 00 00 call 10df6c <printk> <== NOT EXECUTED
"task name string: %s\n",
rtems_object_get_name(running->Object.id, sizeof(name), name)
);
printk(
10b89a: 8b 8b c8 00 00 00 mov 0xc8(%ebx),%ecx <== NOT EXECUTED
10b8a0: 8b 83 c4 00 00 00 mov 0xc4(%ebx),%eax <== NOT EXECUTED
10b8a6: 8d 1c 01 lea (%ecx,%eax,1),%ebx <== NOT EXECUTED
10b8a9: 53 push %ebx <== NOT EXECUTED
10b8aa: 51 push %ecx <== NOT EXECUTED
10b8ab: 50 push %eax <== NOT EXECUTED
10b8ac: 68 72 6b 15 00 push $0x156b72 <== NOT EXECUTED
10b8b1: e8 b6 26 00 00 call 10df6c <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) {
10b8b6: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
10b8b9: 8a 55 d4 mov -0x2c(%ebp),%dl <== NOT EXECUTED
10b8bc: 84 d2 test %dl,%dl <== NOT EXECUTED
10b8be: 75 17 jne 10b8d7 <Stack_check_report_blown_task+0xa7><== NOT EXECUTED
* the following message out.
*/
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_area(stack);
10b8c0: 8d 46 08 lea 0x8(%esi),%eax <== NOT EXECUTED
(unsigned long) stack->size,
stack->area,
((char *) stack->area + stack->size)
);
if (!pattern_ok) {
printk(
10b8c3: 83 c6 18 add $0x18,%esi <== NOT EXECUTED
10b8c6: 56 push %esi <== NOT EXECUTED
10b8c7: 50 push %eax <== NOT EXECUTED
10b8c8: 6a 10 push $0x10 <== NOT EXECUTED
10b8ca: 68 a3 6b 15 00 push $0x156ba3 <== NOT EXECUTED
10b8cf: e8 98 26 00 00 call 10df6c <printk> <== NOT EXECUTED
10b8d4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_configuration_get_user_multiprocessing_table()->node
);
}
#endif
rtems_fatal_error_occurred(0x81);
10b8d7: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10b8da: 68 81 00 00 00 push $0x81 <== NOT EXECUTED
10b8df: e8 c8 59 00 00 call 1112ac <rtems_fatal_error_occurred><== NOT EXECUTED
0013d61a <T.57>:
return 0;
}
static int
rtems_rfs_search_map_for_clear_bit (rtems_rfs_bitmap_control* control,
13d61a: 55 push %ebp <== NOT EXECUTED
13d61b: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13d61d: 57 push %edi <== NOT EXECUTED
13d61e: 56 push %esi <== NOT EXECUTED
13d61f: 53 push %ebx <== NOT EXECUTED
13d620: 83 ec 6c sub $0x6c,%esp <== NOT EXECUTED
13d623: 89 45 c8 mov %eax,-0x38(%ebp) <== NOT EXECUTED
13d626: 89 55 b0 mov %edx,-0x50(%ebp) <== NOT EXECUTED
13d629: 89 4d ac mov %ecx,-0x54(%ebp) <== NOT EXECUTED
13d62c: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
rtems_rfs_bitmap_element* map_bits;
int map_index;
int map_offset;
int rc;
*found = false;
13d62f: c6 01 00 movb $0x0,(%ecx) <== NOT EXECUTED
/*
* Load the bitmap.
*/
rc = rtems_rfs_bitmap_load_map (control, &map);
13d632: 8d 55 e4 lea -0x1c(%ebp),%edx <== NOT EXECUTED
13d635: e8 8c fc ff ff call 13d2c6 <rtems_rfs_bitmap_load_map><== NOT EXECUTED
if (rc > 0)
13d63a: 85 c0 test %eax,%eax <== NOT EXECUTED
13d63c: 0f 8f aa 01 00 00 jg 13d7ec <T.57+0x1d2> <== NOT EXECUTED
return rc;
/*
* Calculate the bit we are testing plus the end point we search over.
*/
test_bit = *bit;
13d642: 8b 55 b0 mov -0x50(%ebp),%edx <== NOT EXECUTED
13d645: 8b 02 mov (%edx),%eax <== NOT EXECUTED
end_bit = test_bit + (window * direction);
13d647: 89 da mov %ebx,%edx <== NOT EXECUTED
13d649: c1 e2 0b shl $0xb,%edx <== NOT EXECUTED
if (end_bit < 0)
13d64c: 01 c2 add %eax,%edx <== NOT EXECUTED
13d64e: 89 55 d4 mov %edx,-0x2c(%ebp) <== NOT EXECUTED
13d651: 79 09 jns 13d65c <T.57+0x42> <== NOT EXECUTED
13d653: c7 45 d4 00 00 00 00 movl $0x0,-0x2c(%ebp) <== NOT EXECUTED
13d65a: eb 0f jmp 13d66b <T.57+0x51> <== NOT EXECUTED
end_bit = 0;
else if (end_bit >= control->size)
13d65c: 8b 4d c8 mov -0x38(%ebp),%ecx <== NOT EXECUTED
13d65f: 8b 51 0c mov 0xc(%ecx),%edx <== NOT EXECUTED
13d662: 39 55 d4 cmp %edx,-0x2c(%ebp) <== NOT EXECUTED
13d665: 72 04 jb 13d66b <T.57+0x51> <== NOT EXECUTED
end_bit = control->size - 1;
13d667: 4a dec %edx <== NOT EXECUTED
13d668: 89 55 d4 mov %edx,-0x2c(%ebp) <== NOT EXECUTED
map_index = rtems_rfs_bitmap_map_index (test_bit);
13d66b: 89 c2 mov %eax,%edx <== NOT EXECUTED
13d66d: c1 fa 05 sar $0x5,%edx <== NOT EXECUTED
13d670: 89 55 cc mov %edx,-0x34(%ebp) <== NOT EXECUTED
map_offset = rtems_rfs_bitmap_map_offset (test_bit);
13d673: 89 c6 mov %eax,%esi <== NOT EXECUTED
13d675: 83 e6 1f and $0x1f,%esi <== NOT EXECUTED
search_index = rtems_rfs_bitmap_map_index (map_index);
search_offset = rtems_rfs_bitmap_map_offset (map_index);
13d678: 83 e2 1f and $0x1f,%edx <== NOT EXECUTED
search_bits = &control->search_bits[search_index];
13d67b: 89 c1 mov %eax,%ecx <== NOT EXECUTED
13d67d: c1 f9 0a sar $0xa,%ecx <== NOT EXECUTED
13d680: c1 e1 02 shl $0x2,%ecx <== NOT EXECUTED
13d683: 89 4d d0 mov %ecx,-0x30(%ebp) <== NOT EXECUTED
13d686: 8b 4d c8 mov -0x38(%ebp),%ecx <== NOT EXECUTED
13d689: 8b 49 14 mov 0x14(%ecx),%ecx <== NOT EXECUTED
13d68c: 01 4d d0 add %ecx,-0x30(%ebp) <== NOT EXECUTED
map_bits = &map[map_index];
13d68f: 8b 7d cc mov -0x34(%ebp),%edi <== NOT EXECUTED
13d692: c1 e7 02 shl $0x2,%edi <== NOT EXECUTED
13d695: 03 7d e4 add -0x1c(%ebp),%edi <== NOT EXECUTED
map_offset += direction;
test_bit += direction;
}
}
map_bits += direction;
13d698: 8d 0c 9d 00 00 00 00 lea 0x0(,%ebx,4),%ecx <== NOT EXECUTED
13d69f: 89 4d b4 mov %ecx,-0x4c(%ebp) <== NOT EXECUTED
return 0;
}
static int
rtems_rfs_search_map_for_clear_bit (rtems_rfs_bitmap_control* control,
13d6a2: 89 d9 mov %ebx,%ecx <== NOT EXECUTED
13d6a4: c1 e1 05 shl $0x5,%ecx <== NOT EXECUTED
13d6a7: 89 4d a8 mov %ecx,-0x58(%ebp) <== NOT EXECUTED
/*
* If any bit is clear find that bit and then search the map element. If
* all bits are set there are no map bits so move to the next search
* element.
*/
if (!rtems_rfs_bitmap_match (*search_bits, RTEMS_RFS_BITMAP_ELEMENT_SET))
13d6aa: 8b 4d d0 mov -0x30(%ebp),%ecx <== NOT EXECUTED
13d6ad: 8b 09 mov (%ecx),%ecx <== NOT EXECUTED
13d6af: 89 4d c0 mov %ecx,-0x40(%ebp) <== NOT EXECUTED
13d6b2: 85 c9 test %ecx,%ecx <== NOT EXECUTED
13d6b4: 0f 84 d2 00 00 00 je 13d78c <T.57+0x172> <== NOT EXECUTED
return 0;
}
static int
rtems_rfs_search_map_for_clear_bit (rtems_rfs_bitmap_control* control,
13d6ba: 8b 4d cc mov -0x34(%ebp),%ecx <== NOT EXECUTED
13d6bd: 01 d9 add %ebx,%ecx <== NOT EXECUTED
13d6bf: c1 e1 05 shl $0x5,%ecx <== NOT EXECUTED
13d6c2: 89 4d c4 mov %ecx,-0x3c(%ebp) <== NOT EXECUTED
13d6c5: 89 55 bc mov %edx,-0x44(%ebp) <== NOT EXECUTED
13d6c8: e9 b3 00 00 00 jmp 13d780 <T.57+0x166> <== NOT EXECUTED
*/
static bool
rtems_rfs_bitmap_test (rtems_rfs_bitmap_element target,
rtems_rfs_bitmap_bit bit)
{
return RTEMS_RFS_BITMAP_TEST_BIT (target, bit);
13d6cd: ba 01 00 00 00 mov $0x1,%edx <== NOT EXECUTED
13d6d2: 8a 4d bc mov -0x44(%ebp),%cl <== NOT EXECUTED
13d6d5: d3 e2 shl %cl,%edx <== NOT EXECUTED
13d6d7: 89 55 b8 mov %edx,-0x48(%ebp) <== NOT EXECUTED
if (!rtems_rfs_bitmap_match (*search_bits, RTEMS_RFS_BITMAP_ELEMENT_SET))
{
while ((search_offset >= 0)
&& (search_offset < rtems_rfs_bitmap_element_bits ()))
{
if (!rtems_rfs_bitmap_test (*search_bits, search_offset))
13d6da: 8b 4d c0 mov -0x40(%ebp),%ecx <== NOT EXECUTED
13d6dd: 85 ca test %ecx,%edx <== NOT EXECUTED
13d6df: 75 53 jne 13d734 <T.57+0x11a> <== NOT EXECUTED
13d6e1: eb 6a jmp 13d74d <T.57+0x133> <== NOT EXECUTED
* found. We may find none are spare if searching up from the seed.
*/
while ((map_offset >= 0)
&& (map_offset < rtems_rfs_bitmap_element_bits ()))
{
if (!rtems_rfs_bitmap_test (*map_bits, map_offset))
13d6e3: 8b 17 mov (%edi),%edx <== NOT EXECUTED
13d6e5: 89 55 bc mov %edx,-0x44(%ebp) <== NOT EXECUTED
*/
static bool
rtems_rfs_bitmap_test (rtems_rfs_bitmap_element target,
rtems_rfs_bitmap_bit bit)
{
return RTEMS_RFS_BITMAP_TEST_BIT (target, bit);
13d6e8: ba 01 00 00 00 mov $0x1,%edx <== NOT EXECUTED
13d6ed: 89 f1 mov %esi,%ecx <== NOT EXECUTED
13d6ef: d3 e2 shl %cl,%edx <== NOT EXECUTED
13d6f1: 89 55 a4 mov %edx,-0x5c(%ebp) <== NOT EXECUTED
* found. We may find none are spare if searching up from the seed.
*/
while ((map_offset >= 0)
&& (map_offset < rtems_rfs_bitmap_element_bits ()))
{
if (!rtems_rfs_bitmap_test (*map_bits, map_offset))
13d6f4: 85 55 bc test %edx,-0x44(%ebp) <== NOT EXECUTED
13d6f7: 74 30 je 13d729 <T.57+0x10f> <== NOT EXECUTED
*/
static rtems_rfs_bitmap_element
rtems_rfs_bitmap_set (rtems_rfs_bitmap_element target,
rtems_rfs_bitmap_element bits)
{
return RTEMS_RFS_BITMAP_SET_BITS (target, bits);
13d6f9: f7 d2 not %edx <== NOT EXECUTED
13d6fb: 23 55 bc and -0x44(%ebp),%edx <== NOT EXECUTED
while ((map_offset >= 0)
&& (map_offset < rtems_rfs_bitmap_element_bits ()))
{
if (!rtems_rfs_bitmap_test (*map_bits, map_offset))
{
*map_bits = rtems_rfs_bitmap_set (*map_bits, 1 << map_offset);
13d6fe: 89 17 mov %edx,(%edi) <== NOT EXECUTED
if (rtems_rfs_bitmap_match(*map_bits,
13d700: 85 d2 test %edx,%edx <== NOT EXECUTED
13d702: 75 0a jne 13d70e <T.57+0xf4> <== NOT EXECUTED
RTEMS_RFS_BITMAP_ELEMENT_SET))
*search_bits = rtems_rfs_bitmap_set (*search_bits,
13d704: 8b 55 b8 mov -0x48(%ebp),%edx <== NOT EXECUTED
13d707: f7 d2 not %edx <== NOT EXECUTED
13d709: 8b 4d d0 mov -0x30(%ebp),%ecx <== NOT EXECUTED
13d70c: 21 11 and %edx,(%ecx) <== NOT EXECUTED
1 << search_offset);
control->free--;
13d70e: 8b 55 c8 mov -0x38(%ebp),%edx <== NOT EXECUTED
13d711: ff 4a 10 decl 0x10(%edx) <== NOT EXECUTED
*bit = test_bit;
13d714: 8b 4d b0 mov -0x50(%ebp),%ecx <== NOT EXECUTED
13d717: 89 01 mov %eax,(%ecx) <== NOT EXECUTED
*found = true;
13d719: 8b 45 ac mov -0x54(%ebp),%eax <== NOT EXECUTED
13d71c: c6 00 01 movb $0x1,(%eax) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (control->buffer);
13d71f: 8b 02 mov (%edx),%eax <== NOT EXECUTED
13d721: c6 00 01 movb $0x1,(%eax) <== NOT EXECUTED
13d724: e9 c1 00 00 00 jmp 13d7ea <T.57+0x1d0> <== NOT EXECUTED
return 0;
}
if (test_bit == end_bit)
13d729: 3b 45 d4 cmp -0x2c(%ebp),%eax <== NOT EXECUTED
13d72c: 74 19 je 13d747 <T.57+0x12d> <== NOT EXECUTED
13d72e: 01 de add %ebx,%esi <== NOT EXECUTED
return 0;
}
static int
rtems_rfs_search_map_for_clear_bit (rtems_rfs_bitmap_control* control,
13d730: 01 d8 add %ebx,%eax <== NOT EXECUTED
13d732: eb 06 jmp 13d73a <T.57+0x120> <== NOT EXECUTED
13d734: 8b 55 bc mov -0x44(%ebp),%edx <== NOT EXECUTED
13d737: 89 55 94 mov %edx,-0x6c(%ebp) <== NOT EXECUTED
{
/*
* Find the clear bit in the map. Update the search map and map if
* found. We may find none are spare if searching up from the seed.
*/
while ((map_offset >= 0)
13d73a: 83 fe 1f cmp $0x1f,%esi <== NOT EXECUTED
13d73d: 76 a4 jbe 13d6e3 <T.57+0xc9> <== NOT EXECUTED
13d73f: 8b 4d 94 mov -0x6c(%ebp),%ecx <== NOT EXECUTED
13d742: 89 4d bc mov %ecx,-0x44(%ebp) <== NOT EXECUTED
13d745: eb 06 jmp 13d74d <T.57+0x133> <== NOT EXECUTED
13d747: 8b 45 94 mov -0x6c(%ebp),%eax <== NOT EXECUTED
13d74a: 89 45 bc mov %eax,-0x44(%ebp) <== NOT EXECUTED
map_offset += direction;
test_bit += direction;
}
}
map_bits += direction;
13d74d: 03 7d b4 add -0x4c(%ebp),%edi <== NOT EXECUTED
return 0;
}
static int
rtems_rfs_search_map_for_clear_bit (rtems_rfs_bitmap_control* control,
13d750: 01 5d cc add %ebx,-0x34(%ebp) <== NOT EXECUTED
}
}
map_bits += direction;
map_index += direction;
map_offset = direction > 0 ? 0 : rtems_rfs_bitmap_element_bits () - 1;
13d753: 85 db test %ebx,%ebx <== NOT EXECUTED
13d755: 0f 9f c0 setg %al <== NOT EXECUTED
13d758: 0f b6 f0 movzbl %al,%esi <== NOT EXECUTED
13d75b: 4e dec %esi <== NOT EXECUTED
13d75c: 83 e6 1f and $0x1f,%esi <== NOT EXECUTED
test_bit = (map_index * rtems_rfs_bitmap_element_bits ()) + map_offset;
13d75f: 8b 55 c4 mov -0x3c(%ebp),%edx <== NOT EXECUTED
13d762: 8d 04 16 lea (%esi,%edx,1),%eax <== NOT EXECUTED
search_offset += direction;
if (((direction < 0) && (test_bit <= end_bit))
13d765: 3b 45 d4 cmp -0x2c(%ebp),%eax <== NOT EXECUTED
13d768: 7f 04 jg 13d76e <T.57+0x154> <== NOT EXECUTED
13d76a: 85 db test %ebx,%ebx <== NOT EXECUTED
13d76c: 78 51 js 13d7bf <T.57+0x1a5> <== NOT EXECUTED
13d76e: 8b 4d a8 mov -0x58(%ebp),%ecx <== NOT EXECUTED
13d771: 01 4d c4 add %ecx,-0x3c(%ebp) <== NOT EXECUTED
13d774: 3b 45 d4 cmp -0x2c(%ebp),%eax <== NOT EXECUTED
13d777: 7c 04 jl 13d77d <T.57+0x163> <== NOT EXECUTED
13d779: 85 db test %ebx,%ebx <== NOT EXECUTED
13d77b: 7f 42 jg 13d7bf <T.57+0x1a5> <== NOT EXECUTED
13d77d: 01 5d bc add %ebx,-0x44(%ebp) <== NOT EXECUTED
* all bits are set there are no map bits so move to the next search
* element.
*/
if (!rtems_rfs_bitmap_match (*search_bits, RTEMS_RFS_BITMAP_ELEMENT_SET))
{
while ((search_offset >= 0)
13d780: 83 7d bc 1f cmpl $0x1f,-0x44(%ebp) <== NOT EXECUTED
13d784: 0f 86 43 ff ff ff jbe 13d6cd <T.57+0xb3> <== NOT EXECUTED
13d78a: eb 33 jmp 13d7bf <T.57+0x1a5> <== NOT EXECUTED
*
* Align test_bit either up or down depending on the direction to next 32
* bit boundary.
*/
rtems_rfs_bitmap_bit bits_skipped;
test_bit &= ~((1 << RTEMS_RFS_ELEMENT_BITS_POWER_2) - 1);
13d78c: 83 e0 e0 and $0xffffffe0,%eax <== NOT EXECUTED
if (direction > 0)
13d78f: 85 db test %ebx,%ebx <== NOT EXECUTED
13d791: 7e 13 jle 13d7a6 <T.57+0x18c> <== NOT EXECUTED
{
bits_skipped = rtems_rfs_bitmap_element_bits () - search_offset;
13d793: b9 20 00 00 00 mov $0x20,%ecx <== NOT EXECUTED
13d798: 29 d1 sub %edx,%ecx <== NOT EXECUTED
test_bit += bits_skipped * rtems_rfs_bitmap_element_bits ();
13d79a: 89 ca mov %ecx,%edx <== NOT EXECUTED
13d79c: c1 e2 05 shl $0x5,%edx <== NOT EXECUTED
13d79f: 8d 04 02 lea (%edx,%eax,1),%eax <== NOT EXECUTED
13d7a2: 31 f6 xor %esi,%esi <== NOT EXECUTED
13d7a4: eb 10 jmp 13d7b6 <T.57+0x19c> <== NOT EXECUTED
map_offset = 0;
}
else
{
bits_skipped = search_offset + 1;
13d7a6: 8d 4a 01 lea 0x1(%edx),%ecx <== NOT EXECUTED
/*
* Need to remove 1 for the rounding up. The above rounds down and
* adds 1. Remember the logic is for subtraction.
*/
test_bit -= ((bits_skipped - 1) * rtems_rfs_bitmap_element_bits ()) + 1;
13d7a9: c1 e2 05 shl $0x5,%edx <== NOT EXECUTED
13d7ac: f7 d2 not %edx <== NOT EXECUTED
13d7ae: 8d 04 02 lea (%edx,%eax,1),%eax <== NOT EXECUTED
13d7b1: be 1f 00 00 00 mov $0x1f,%esi <== NOT EXECUTED
map_offset = rtems_rfs_bitmap_element_bits () - 1;
}
map_bits += direction * bits_skipped;
13d7b6: 0f af cb imul %ebx,%ecx <== NOT EXECUTED
13d7b9: 8d 3c 8f lea (%edi,%ecx,4),%edi <== NOT EXECUTED
map_index += direction * bits_skipped;
13d7bc: 01 4d cc add %ecx,-0x34(%ebp) <== NOT EXECUTED
}
search_bits += direction;
13d7bf: 8b 55 b4 mov -0x4c(%ebp),%edx <== NOT EXECUTED
13d7c2: 01 55 d0 add %edx,-0x30(%ebp) <== NOT EXECUTED
search_offset = direction > 0 ? 0 : rtems_rfs_bitmap_element_bits () - 1;
13d7c5: 31 d2 xor %edx,%edx <== NOT EXECUTED
13d7c7: 85 db test %ebx,%ebx <== NOT EXECUTED
13d7c9: 0f 9f c2 setg %dl <== NOT EXECUTED
13d7cc: 4a dec %edx <== NOT EXECUTED
13d7cd: 83 e2 1f and $0x1f,%edx <== NOT EXECUTED
}
while (((direction < 0) && (test_bit >= end_bit))
|| ((direction > 0) && (test_bit <= end_bit)));
13d7d0: 3b 45 d4 cmp -0x2c(%ebp),%eax <== NOT EXECUTED
13d7d3: 7c 0d jl 13d7e2 <T.57+0x1c8> <== NOT EXECUTED
13d7d5: 85 db test %ebx,%ebx <== NOT EXECUTED
13d7d7: 0f 88 cd fe ff ff js 13d6aa <T.57+0x90> <== NOT EXECUTED
13d7dd: 3b 45 d4 cmp -0x2c(%ebp),%eax <== NOT EXECUTED
13d7e0: 7f 08 jg 13d7ea <T.57+0x1d0> <== NOT EXECUTED
13d7e2: 85 db test %ebx,%ebx <== NOT EXECUTED
13d7e4: 0f 8f c0 fe ff ff jg 13d6aa <T.57+0x90> <== NOT EXECUTED
13d7ea: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
}
13d7ec: 83 c4 6c add $0x6c,%esp <== NOT EXECUTED
13d7ef: 5b pop %ebx <== NOT EXECUTED
13d7f0: 5e pop %esi <== NOT EXECUTED
13d7f1: 5f pop %edi <== NOT EXECUTED
13d7f2: c9 leave <== NOT EXECUTED
13d7f3: c3 ret <== NOT EXECUTED
00100200 <_Barrier_Manager_initialization>:
#include <rtems/rtems/support.h>
#include <rtems/score/object.h>
#include <rtems/rtems/barrier.h>
void _Barrier_Manager_initialization(void)
{
100200: 55 push %ebp
100201: 89 e5 mov %esp,%ebp
}
100203: c9 leave
100204: c3 ret
0010cedc <_CORE_RWLock_Obtain_for_reading>:
Objects_Id id,
bool wait,
Watchdog_Interval timeout,
CORE_RWLock_API_mp_support_callout api_rwlock_mp_support
)
{
10cedc: 55 push %ebp
10cedd: 89 e5 mov %esp,%ebp
10cedf: 57 push %edi
10cee0: 56 push %esi
10cee1: 53 push %ebx
10cee2: 83 ec 1c sub $0x1c,%esp
10cee5: 8b 5d 08 mov 0x8(%ebp),%ebx
10cee8: 8b 4d 0c mov 0xc(%ebp),%ecx
10ceeb: 8b 45 14 mov 0x14(%ebp),%eax
10ceee: 89 45 e4 mov %eax,-0x1c(%ebp)
10cef1: 8a 55 10 mov 0x10(%ebp),%dl
ISR_Level level;
Thread_Control *executing = _Thread_Executing;
10cef4: 8b 35 dc 92 12 00 mov 0x1292dc,%esi
* If unlocked, then OK to read.
* If locked for reading and no waiters, then OK to read.
* If any thread is waiting, then we wait.
*/
_ISR_Disable( level );
10cefa: 9c pushf
10cefb: fa cli
10cefc: 5f pop %edi
switch ( the_rwlock->current_state ) {
10cefd: 8b 43 44 mov 0x44(%ebx),%eax
10cf00: 85 c0 test %eax,%eax
10cf02: 74 05 je 10cf09 <_CORE_RWLock_Obtain_for_reading+0x2d>
10cf04: 48 dec %eax
10cf05: 75 35 jne 10cf3c <_CORE_RWLock_Obtain_for_reading+0x60>
10cf07: eb 09 jmp 10cf12 <_CORE_RWLock_Obtain_for_reading+0x36>
case CORE_RWLOCK_UNLOCKED:
the_rwlock->current_state = CORE_RWLOCK_LOCKED_FOR_READING;
10cf09: c7 43 44 01 00 00 00 movl $0x1,0x44(%ebx)
10cf10: eb 1c jmp 10cf2e <_CORE_RWLock_Obtain_for_reading+0x52>
executing->Wait.return_code = CORE_RWLOCK_SUCCESSFUL;
return;
case CORE_RWLOCK_LOCKED_FOR_READING: {
Thread_Control *waiter;
waiter = _Thread_queue_First( &the_rwlock->Wait_queue );
10cf12: 83 ec 0c sub $0xc,%esp
10cf15: 53 push %ebx
10cf16: 88 55 dc mov %dl,-0x24(%ebp)
10cf19: 89 4d e0 mov %ecx,-0x20(%ebp)
10cf1c: e8 77 1a 00 00 call 10e998 <_Thread_queue_First>
if ( !waiter ) {
10cf21: 83 c4 10 add $0x10,%esp
10cf24: 85 c0 test %eax,%eax
10cf26: 8a 55 dc mov -0x24(%ebp),%dl
10cf29: 8b 4d e0 mov -0x20(%ebp),%ecx
10cf2c: 75 0e jne 10cf3c <_CORE_RWLock_Obtain_for_reading+0x60><== NEVER TAKEN
the_rwlock->number_of_readers += 1;
10cf2e: ff 43 48 incl 0x48(%ebx)
_ISR_Enable( level );
10cf31: 57 push %edi
10cf32: 9d popf
executing->Wait.return_code = CORE_RWLOCK_SUCCESSFUL;
10cf33: c7 46 34 00 00 00 00 movl $0x0,0x34(%esi)
return;
10cf3a: eb 48 jmp 10cf84 <_CORE_RWLock_Obtain_for_reading+0xa8>
/*
* If the thread is not willing to wait, then return immediately.
*/
if ( !wait ) {
10cf3c: 84 d2 test %dl,%dl
10cf3e: 75 0b jne 10cf4b <_CORE_RWLock_Obtain_for_reading+0x6f>
_ISR_Enable( level );
10cf40: 57 push %edi
10cf41: 9d popf
executing->Wait.return_code = CORE_RWLOCK_UNAVAILABLE;
10cf42: c7 46 34 02 00 00 00 movl $0x2,0x34(%esi)
10cf49: eb 39 jmp 10cf84 <_CORE_RWLock_Obtain_for_reading+0xa8>
10cf4b: c7 43 30 01 00 00 00 movl $0x1,0x30(%ebx)
/*
* We need to wait to enter this critical section
*/
_Thread_queue_Enter_critical_section( &the_rwlock->Wait_queue );
executing->Wait.queue = &the_rwlock->Wait_queue;
10cf52: 89 5e 44 mov %ebx,0x44(%esi)
executing->Wait.id = id;
10cf55: 89 4e 20 mov %ecx,0x20(%esi)
executing->Wait.option = CORE_RWLOCK_THREAD_WAITING_FOR_READ;
10cf58: c7 46 30 00 00 00 00 movl $0x0,0x30(%esi)
executing->Wait.return_code = CORE_RWLOCK_SUCCESSFUL;
10cf5f: c7 46 34 00 00 00 00 movl $0x0,0x34(%esi)
_ISR_Enable( level );
10cf66: 57 push %edi
10cf67: 9d popf
_Thread_queue_Enqueue_with_handler(
10cf68: c7 45 10 b0 d0 10 00 movl $0x10d0b0,0x10(%ebp)
10cf6f: 8b 45 e4 mov -0x1c(%ebp),%eax
10cf72: 89 45 0c mov %eax,0xc(%ebp)
10cf75: 89 5d 08 mov %ebx,0x8(%ebp)
timeout,
_CORE_RWLock_Timeout
);
/* return to API level so it can dispatch and we block */
}
10cf78: 8d 65 f4 lea -0xc(%ebp),%esp
10cf7b: 5b pop %ebx
10cf7c: 5e pop %esi
10cf7d: 5f pop %edi
10cf7e: c9 leave
executing->Wait.id = id;
executing->Wait.option = CORE_RWLOCK_THREAD_WAITING_FOR_READ;
executing->Wait.return_code = CORE_RWLOCK_SUCCESSFUL;
_ISR_Enable( level );
_Thread_queue_Enqueue_with_handler(
10cf7f: e9 54 17 00 00 jmp 10e6d8 <_Thread_queue_Enqueue_with_handler>
timeout,
_CORE_RWLock_Timeout
);
/* return to API level so it can dispatch and we block */
}
10cf84: 8d 65 f4 lea -0xc(%ebp),%esp
10cf87: 5b pop %ebx
10cf88: 5e pop %esi
10cf89: 5f pop %edi
10cf8a: c9 leave
10cf8b: c3 ret
0010d010 <_CORE_RWLock_Release>:
*/
CORE_RWLock_Status _CORE_RWLock_Release(
CORE_RWLock_Control *the_rwlock
)
{
10d010: 55 push %ebp
10d011: 89 e5 mov %esp,%ebp
10d013: 53 push %ebx
10d014: 83 ec 04 sub $0x4,%esp
10d017: 8b 5d 08 mov 0x8(%ebp),%ebx
ISR_Level level;
Thread_Control *executing = _Thread_Executing;
10d01a: 8b 15 dc 92 12 00 mov 0x1292dc,%edx
* Otherwise, we have to block.
* If locked for reading and no waiters, then OK to read.
* If any thread is waiting, then we wait.
*/
_ISR_Disable( level );
10d020: 9c pushf
10d021: fa cli
10d022: 58 pop %eax
if ( the_rwlock->current_state == CORE_RWLOCK_UNLOCKED){
10d023: 8b 4b 44 mov 0x44(%ebx),%ecx
10d026: 85 c9 test %ecx,%ecx
10d028: 75 0b jne 10d035 <_CORE_RWLock_Release+0x25>
_ISR_Enable( level );
10d02a: 50 push %eax
10d02b: 9d popf
executing->Wait.return_code = CORE_RWLOCK_UNAVAILABLE;
10d02c: c7 42 34 02 00 00 00 movl $0x2,0x34(%edx)
return CORE_RWLOCK_SUCCESSFUL;
10d033: eb 72 jmp 10d0a7 <_CORE_RWLock_Release+0x97>
}
if ( the_rwlock->current_state == CORE_RWLOCK_LOCKED_FOR_READING ) {
10d035: 49 dec %ecx
10d036: 75 0f jne 10d047 <_CORE_RWLock_Release+0x37>
the_rwlock->number_of_readers -= 1;
10d038: 8b 4b 48 mov 0x48(%ebx),%ecx
10d03b: 49 dec %ecx
10d03c: 89 4b 48 mov %ecx,0x48(%ebx)
if ( the_rwlock->number_of_readers != 0 ) {
10d03f: 85 c9 test %ecx,%ecx
10d041: 74 04 je 10d047 <_CORE_RWLock_Release+0x37>
/* must be unlocked again */
_ISR_Enable( level );
10d043: 50 push %eax
10d044: 9d popf
return CORE_RWLOCK_SUCCESSFUL;
10d045: eb 60 jmp 10d0a7 <_CORE_RWLock_Release+0x97>
}
}
/* CORE_RWLOCK_LOCKED_FOR_WRITING or READING with readers */
executing->Wait.return_code = CORE_RWLOCK_SUCCESSFUL;
10d047: c7 42 34 00 00 00 00 movl $0x0,0x34(%edx)
/*
* Implicitly transition to "unlocked" and find another thread interested
* in obtaining this rwlock.
*/
the_rwlock->current_state = CORE_RWLOCK_UNLOCKED;
10d04e: c7 43 44 00 00 00 00 movl $0x0,0x44(%ebx)
_ISR_Enable( level );
10d055: 50 push %eax
10d056: 9d popf
next = _Thread_queue_Dequeue( &the_rwlock->Wait_queue );
10d057: 83 ec 0c sub $0xc,%esp
10d05a: 53 push %ebx
10d05b: e8 74 15 00 00 call 10e5d4 <_Thread_queue_Dequeue>
if ( next ) {
10d060: 83 c4 10 add $0x10,%esp
10d063: 85 c0 test %eax,%eax
10d065: 74 40 je 10d0a7 <_CORE_RWLock_Release+0x97>
if ( next->Wait.option == CORE_RWLOCK_THREAD_WAITING_FOR_WRITE ) {
10d067: 83 78 30 01 cmpl $0x1,0x30(%eax)
10d06b: 75 09 jne 10d076 <_CORE_RWLock_Release+0x66>
the_rwlock->current_state = CORE_RWLOCK_LOCKED_FOR_WRITING;
10d06d: c7 43 44 02 00 00 00 movl $0x2,0x44(%ebx)
return CORE_RWLOCK_SUCCESSFUL;
10d074: eb 31 jmp 10d0a7 <_CORE_RWLock_Release+0x97>
}
/*
* Must be CORE_RWLOCK_THREAD_WAITING_FOR_READING
*/
the_rwlock->number_of_readers += 1;
10d076: ff 43 48 incl 0x48(%ebx)
the_rwlock->current_state = CORE_RWLOCK_LOCKED_FOR_READING;
10d079: c7 43 44 01 00 00 00 movl $0x1,0x44(%ebx)
/*
* Now see if more readers can be let go.
*/
while ( 1 ) {
next = _Thread_queue_First( &the_rwlock->Wait_queue );
10d080: 83 ec 0c sub $0xc,%esp
10d083: 53 push %ebx
10d084: e8 0f 19 00 00 call 10e998 <_Thread_queue_First>
if ( !next ||
10d089: 83 c4 10 add $0x10,%esp
10d08c: 85 c0 test %eax,%eax
10d08e: 74 17 je 10d0a7 <_CORE_RWLock_Release+0x97>
next->Wait.option == CORE_RWLOCK_THREAD_WAITING_FOR_WRITE )
10d090: 83 78 30 01 cmpl $0x1,0x30(%eax)
10d094: 74 11 je 10d0a7 <_CORE_RWLock_Release+0x97><== NEVER TAKEN
return CORE_RWLOCK_SUCCESSFUL;
the_rwlock->number_of_readers += 1;
10d096: ff 43 48 incl 0x48(%ebx)
_Thread_queue_Extract( &the_rwlock->Wait_queue, next );
10d099: 52 push %edx
10d09a: 52 push %edx
10d09b: 50 push %eax
10d09c: 53 push %ebx
10d09d: e8 f2 17 00 00 call 10e894 <_Thread_queue_Extract>
}
10d0a2: 83 c4 10 add $0x10,%esp
10d0a5: eb d9 jmp 10d080 <_CORE_RWLock_Release+0x70>
}
/* indentation is to match _ISR_Disable at top */
return CORE_RWLOCK_SUCCESSFUL;
}
10d0a7: 31 c0 xor %eax,%eax
10d0a9: 8b 5d fc mov -0x4(%ebp),%ebx
10d0ac: c9 leave
10d0ad: c3 ret
0010d0b0 <_CORE_RWLock_Timeout>:
void _CORE_RWLock_Timeout(
Objects_Id id,
void *ignored
)
{
10d0b0: 55 push %ebp
10d0b1: 89 e5 mov %esp,%ebp
10d0b3: 83 ec 20 sub $0x20,%esp
Thread_Control *the_thread;
Objects_Locations location;
the_thread = _Thread_Get( id, &location );
10d0b6: 8d 45 f4 lea -0xc(%ebp),%eax
10d0b9: 50 push %eax
10d0ba: ff 75 08 pushl 0x8(%ebp)
10d0bd: e8 82 11 00 00 call 10e244 <_Thread_Get>
switch ( location ) {
10d0c2: 83 c4 10 add $0x10,%esp
10d0c5: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
10d0c9: 75 17 jne 10d0e2 <_CORE_RWLock_Timeout+0x32><== NEVER TAKEN
#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE: /* impossible */
#endif
break;
case OBJECTS_LOCAL:
_Thread_queue_Process_timeout( the_thread );
10d0cb: 83 ec 0c sub $0xc,%esp
10d0ce: 50 push %eax
10d0cf: e8 84 19 00 00 call 10ea58 <_Thread_queue_Process_timeout>
*/
RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void )
{
RTEMS_COMPILER_MEMORY_BARRIER();
_Thread_Dispatch_disable_level -= 1;
10d0d4: a1 20 92 12 00 mov 0x129220,%eax
10d0d9: 48 dec %eax
10d0da: a3 20 92 12 00 mov %eax,0x129220
10d0df: 83 c4 10 add $0x10,%esp
_Thread_Unnest_dispatch();
break;
}
}
10d0e2: c9 leave
10d0e3: c3 ret
00117a5c <_CORE_message_queue_Broadcast>:
Objects_Id id __attribute__((unused)),
CORE_message_queue_API_mp_support_callout api_message_queue_mp_support __attribute__((unused)),
#endif
uint32_t *count
)
{
117a5c: 55 push %ebp
117a5d: 89 e5 mov %esp,%ebp
117a5f: 57 push %edi
117a60: 56 push %esi
117a61: 53 push %ebx
117a62: 83 ec 1c sub $0x1c,%esp
117a65: 8b 5d 08 mov 0x8(%ebp),%ebx
Thread_Control *the_thread;
uint32_t number_broadcasted;
Thread_Wait_information *waitp;
if ( size > the_message_queue->maximum_message_size ) {
117a68: b8 01 00 00 00 mov $0x1,%eax
117a6d: 8b 55 10 mov 0x10(%ebp),%edx
117a70: 3b 53 4c cmp 0x4c(%ebx),%edx
117a73: 77 4c ja 117ac1 <_CORE_message_queue_Broadcast+0x65><== NEVER TAKEN
* There must be no pending messages if there is a thread waiting to
* receive a message.
*/
number_broadcasted = 0;
while ((the_thread =
_Thread_queue_Dequeue(&the_message_queue->Wait_queue))) {
117a75: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp)
* NOTE: This check is critical because threads can block on
* send and receive and this ensures that we are broadcasting
* the message to threads waiting to receive -- not to send.
*/
if ( the_message_queue->number_of_pending_messages != 0 ) {
117a7c: 83 7b 48 00 cmpl $0x0,0x48(%ebx)
117a80: 74 23 je 117aa5 <_CORE_message_queue_Broadcast+0x49>
*count = 0;
117a82: 8b 45 1c mov 0x1c(%ebp),%eax
117a85: c7 00 00 00 00 00 movl $0x0,(%eax)
117a8b: eb 32 jmp 117abf <_CORE_message_queue_Broadcast+0x63>
*/
number_broadcasted = 0;
while ((the_thread =
_Thread_queue_Dequeue(&the_message_queue->Wait_queue))) {
waitp = &the_thread->Wait;
number_broadcasted += 1;
117a8d: ff 45 e4 incl -0x1c(%ebp)
const void *source,
void *destination,
size_t size
)
{
memcpy(destination, source, size);
117a90: 8b 42 2c mov 0x2c(%edx),%eax
117a93: 89 c7 mov %eax,%edi
117a95: 8b 75 0c mov 0xc(%ebp),%esi
117a98: 8b 4d 10 mov 0x10(%ebp),%ecx
117a9b: f3 a4 rep movsb %ds:(%esi),%es:(%edi)
buffer,
waitp->return_argument_second.mutable_object,
size
);
*(size_t *) the_thread->Wait.return_argument = size;
117a9d: 8b 42 28 mov 0x28(%edx),%eax
117aa0: 8b 55 10 mov 0x10(%ebp),%edx
117aa3: 89 10 mov %edx,(%eax)
* There must be no pending messages if there is a thread waiting to
* receive a message.
*/
number_broadcasted = 0;
while ((the_thread =
_Thread_queue_Dequeue(&the_message_queue->Wait_queue))) {
117aa5: 83 ec 0c sub $0xc,%esp
117aa8: 53 push %ebx
117aa9: e8 ca 21 00 00 call 119c78 <_Thread_queue_Dequeue>
117aae: 89 c2 mov %eax,%edx
/*
* There must be no pending messages if there is a thread waiting to
* receive a message.
*/
number_broadcasted = 0;
while ((the_thread =
117ab0: 83 c4 10 add $0x10,%esp
117ab3: 85 c0 test %eax,%eax
117ab5: 75 d6 jne 117a8d <_CORE_message_queue_Broadcast+0x31>
if ( !_Objects_Is_local_id( the_thread->Object.id ) )
(*api_message_queue_mp_support) ( the_thread, id );
#endif
}
*count = number_broadcasted;
117ab7: 8b 55 e4 mov -0x1c(%ebp),%edx
117aba: 8b 45 1c mov 0x1c(%ebp),%eax
117abd: 89 10 mov %edx,(%eax)
117abf: 31 c0 xor %eax,%eax
return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL;
}
117ac1: 8d 65 f4 lea -0xc(%ebp),%esp
117ac4: 5b pop %ebx
117ac5: 5e pop %esi
117ac6: 5f pop %edi
117ac7: c9 leave
117ac8: c3 ret
001128e4 <_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
)
{
1128e4: 55 push %ebp
1128e5: 89 e5 mov %esp,%ebp
1128e7: 57 push %edi
1128e8: 56 push %esi
1128e9: 53 push %ebx
1128ea: 83 ec 0c sub $0xc,%esp
1128ed: 8b 5d 08 mov 0x8(%ebp),%ebx
1128f0: 8b 75 10 mov 0x10(%ebp),%esi
1128f3: 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;
1128f6: 89 73 44 mov %esi,0x44(%ebx)
the_message_queue->number_of_pending_messages = 0;
1128f9: c7 43 48 00 00 00 00 movl $0x0,0x48(%ebx)
the_message_queue->maximum_message_size = maximum_message_size;
112900: 89 53 4c mov %edx,0x4c(%ebx)
CORE_message_queue_Control *the_message_queue,
CORE_message_queue_Notify_Handler the_handler,
void *the_argument
)
{
the_message_queue->notify_handler = the_handler;
112903: c7 43 60 00 00 00 00 movl $0x0,0x60(%ebx)
the_message_queue->notify_argument = the_argument;
11290a: c7 43 64 00 00 00 00 movl $0x0,0x64(%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)) {
112911: 89 d0 mov %edx,%eax
112913: f6 c2 03 test $0x3,%dl
112916: 74 0a je 112922 <_CORE_message_queue_Initialize+0x3e>
allocated_message_size += sizeof(uint32_t);
112918: 8d 42 04 lea 0x4(%edx),%eax
allocated_message_size &= ~(sizeof(uint32_t) - 1);
11291b: 83 e0 fc and $0xfffffffc,%eax
}
if (allocated_message_size < maximum_message_size)
11291e: 39 d0 cmp %edx,%eax
112920: 72 5f jb 112981 <_CORE_message_queue_Initialize+0x9d><== 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));
112922: 8d 78 14 lea 0x14(%eax),%edi
/*
* 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 *
112925: 89 fa mov %edi,%edx
112927: 0f af d6 imul %esi,%edx
(allocated_message_size + sizeof(CORE_message_queue_Buffer_control));
if (message_buffering_required < allocated_message_size)
11292a: 39 c2 cmp %eax,%edx
11292c: 72 53 jb 112981 <_CORE_message_queue_Initialize+0x9d><== NEVER TAKEN
return false;
/*
* Attempt to allocate the message memory
*/
the_message_queue->message_buffers = (CORE_message_queue_Buffer *)
11292e: 83 ec 0c sub $0xc,%esp
112931: 52 push %edx
112932: e8 85 26 00 00 call 114fbc <_Workspace_Allocate>
112937: 89 43 5c mov %eax,0x5c(%ebx)
_Workspace_Allocate( message_buffering_required );
if (the_message_queue->message_buffers == 0)
11293a: 83 c4 10 add $0x10,%esp
11293d: 85 c0 test %eax,%eax
11293f: 74 40 je 112981 <_CORE_message_queue_Initialize+0x9d>
/*
* Initialize the pool of inactive messages, pending messages,
* and set of waiting threads.
*/
_Chain_Initialize (
112941: 57 push %edi
112942: 56 push %esi
112943: 50 push %eax
112944: 8d 43 68 lea 0x68(%ebx),%eax
112947: 50 push %eax
112948: e8 db 53 00 00 call 117d28 <_Chain_Initialize>
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
11294d: 8d 43 54 lea 0x54(%ebx),%eax
112950: 89 43 50 mov %eax,0x50(%ebx)
the_chain->permanent_null = NULL;
112953: c7 43 54 00 00 00 00 movl $0x0,0x54(%ebx)
the_chain->last = _Chain_Head(the_chain);
11295a: 8d 43 50 lea 0x50(%ebx),%eax
11295d: 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(
112960: 6a 06 push $0x6
112962: 68 80 00 00 00 push $0x80
112967: 8b 45 0c mov 0xc(%ebp),%eax
11296a: 83 38 01 cmpl $0x1,(%eax)
11296d: 0f 94 c0 sete %al
112970: 0f b6 c0 movzbl %al,%eax
112973: 50 push %eax
112974: 53 push %ebx
112975: e8 22 1d 00 00 call 11469c <_Thread_queue_Initialize>
11297a: b0 01 mov $0x1,%al
THREAD_QUEUE_DISCIPLINE_PRIORITY : THREAD_QUEUE_DISCIPLINE_FIFO,
STATES_WAITING_FOR_MESSAGE,
CORE_MESSAGE_QUEUE_STATUS_TIMEOUT
);
return true;
11297c: 83 c4 20 add $0x20,%esp
11297f: eb 02 jmp 112983 <_CORE_message_queue_Initialize+0x9f>
112981: 31 c0 xor %eax,%eax
}
112983: 8d 65 f4 lea -0xc(%ebp),%esp
112986: 5b pop %ebx
112987: 5e pop %esi
112988: 5f pop %edi
112989: c9 leave
11298a: c3 ret
0011298c <_CORE_message_queue_Seize>:
void *buffer,
size_t *size_p,
bool wait,
Watchdog_Interval timeout
)
{
11298c: 55 push %ebp
11298d: 89 e5 mov %esp,%ebp
11298f: 57 push %edi
112990: 56 push %esi
112991: 53 push %ebx
112992: 83 ec 2c sub $0x2c,%esp
112995: 8b 55 08 mov 0x8(%ebp),%edx
112998: 8b 45 0c mov 0xc(%ebp),%eax
11299b: 89 45 dc mov %eax,-0x24(%ebp)
11299e: 8b 5d 10 mov 0x10(%ebp),%ebx
1129a1: 89 5d e0 mov %ebx,-0x20(%ebp)
1129a4: 8b 4d 14 mov 0x14(%ebp),%ecx
1129a7: 8b 75 1c mov 0x1c(%ebp),%esi
1129aa: 89 75 d4 mov %esi,-0x2c(%ebp)
1129ad: 8a 45 18 mov 0x18(%ebp),%al
1129b0: 88 45 db mov %al,-0x25(%ebp)
ISR_Level level;
CORE_message_queue_Buffer_control *the_message;
Thread_Control *executing;
executing = _Thread_Executing;
1129b3: a1 34 e4 12 00 mov 0x12e434,%eax
executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL;
1129b8: c7 40 34 00 00 00 00 movl $0x0,0x34(%eax)
_ISR_Disable( level );
1129bf: 9c pushf
1129c0: fa cli
1129c1: 8f 45 e4 popl -0x1c(%ebp)
*/
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
Chain_Control *the_chain
)
{
return (the_chain->first == _Chain_Tail(the_chain));
1129c4: 8b 5a 50 mov 0x50(%edx),%ebx
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
1129c7: 8d 72 54 lea 0x54(%edx),%esi
1129ca: 39 f3 cmp %esi,%ebx
1129cc: 0f 84 8a 00 00 00 je 112a5c <_CORE_message_queue_Seize+0xd0>
{
Chain_Node *return_node;
Chain_Node *new_first;
return_node = the_chain->first;
new_first = return_node->next;
1129d2: 8b 33 mov (%ebx),%esi
the_chain->first = new_first;
1129d4: 89 72 50 mov %esi,0x50(%edx)
new_first->previous = _Chain_Head(the_chain);
1129d7: 8d 7a 50 lea 0x50(%edx),%edi
1129da: 89 7e 04 mov %edi,0x4(%esi)
the_message = _CORE_message_queue_Get_pending_message( the_message_queue );
if ( the_message != NULL ) {
1129dd: 85 db test %ebx,%ebx
1129df: 74 7b je 112a5c <_CORE_message_queue_Seize+0xd0><== NEVER TAKEN
the_message_queue->number_of_pending_messages -= 1;
1129e1: ff 4a 48 decl 0x48(%edx)
_ISR_Enable( level );
1129e4: ff 75 e4 pushl -0x1c(%ebp)
1129e7: 9d popf
*size_p = the_message->Contents.size;
1129e8: 8b 43 0c mov 0xc(%ebx),%eax
1129eb: 89 01 mov %eax,(%ecx)
_Thread_Executing->Wait.count =
1129ed: 8b 73 08 mov 0x8(%ebx),%esi
1129f0: a1 34 e4 12 00 mov 0x12e434,%eax
1129f5: 89 70 24 mov %esi,0x24(%eax)
_CORE_message_queue_Get_message_priority( the_message );
_CORE_message_queue_Copy_buffer(
the_message->Contents.buffer,
1129f8: 8d 73 10 lea 0x10(%ebx),%esi
1129fb: 89 75 e4 mov %esi,-0x1c(%ebp)
const void *source,
void *destination,
size_t size
)
{
memcpy(destination, source, size);
1129fe: 8b 09 mov (%ecx),%ecx
112a00: 8b 7d e0 mov -0x20(%ebp),%edi
112a03: f3 a4 rep movsb %ds:(%esi),%es:(%edi)
* is not, then we can go ahead and free the buffer.
*
* NOTE: If we note that the queue was not full before this receive,
* then we can avoid this dequeue.
*/
the_thread = _Thread_queue_Dequeue( &the_message_queue->Wait_queue );
112a05: 83 ec 0c sub $0xc,%esp
112a08: 52 push %edx
112a09: 89 55 d0 mov %edx,-0x30(%ebp)
112a0c: e8 7b 19 00 00 call 11438c <_Thread_queue_Dequeue>
if ( !the_thread ) {
112a11: 83 c4 10 add $0x10,%esp
112a14: 85 c0 test %eax,%eax
112a16: 8b 55 d0 mov -0x30(%ebp),%edx
112a19: 75 15 jne 112a30 <_CORE_message_queue_Seize+0xa4>
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 );
112a1b: 89 5d 0c mov %ebx,0xc(%ebp)
112a1e: 83 c2 68 add $0x68,%edx
112a21: 89 55 08 mov %edx,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 );
}
112a24: 8d 65 f4 lea -0xc(%ebp),%esp
112a27: 5b pop %ebx
112a28: 5e pop %esi
112a29: 5f pop %edi
112a2a: c9 leave
112a2b: e9 34 fe ff ff jmp 112864 <_Chain_Append>
CORE_message_queue_Buffer_control *the_message,
int priority
)
{
#if defined(RTEMS_SCORE_COREMSG_ENABLE_MESSAGE_PRIORITY)
the_message->priority = priority;
112a30: 8b 48 24 mov 0x24(%eax),%ecx
112a33: 89 4b 08 mov %ecx,0x8(%ebx)
*/
_CORE_message_queue_Set_message_priority(
the_message,
the_thread->Wait.count
);
the_message->Contents.size = (size_t) the_thread->Wait.option;
112a36: 8b 48 30 mov 0x30(%eax),%ecx
112a39: 89 4b 0c mov %ecx,0xc(%ebx)
const void *source,
void *destination,
size_t size
)
{
memcpy(destination, source, size);
112a3c: 8b 70 2c mov 0x2c(%eax),%esi
112a3f: 8b 7d e4 mov -0x1c(%ebp),%edi
112a42: f3 a4 rep movsb %ds:(%esi),%es:(%edi)
the_thread->Wait.return_argument_second.immutable_object,
the_message->Contents.buffer,
the_message->Contents.size
);
_CORE_message_queue_Insert_message(
112a44: 8b 43 08 mov 0x8(%ebx),%eax
112a47: 89 45 10 mov %eax,0x10(%ebp)
112a4a: 89 5d 0c mov %ebx,0xc(%ebp)
112a4d: 89 55 08 mov %edx,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 );
}
112a50: 8d 65 f4 lea -0xc(%ebp),%esp
112a53: 5b pop %ebx
112a54: 5e pop %esi
112a55: 5f pop %edi
112a56: c9 leave
the_thread->Wait.return_argument_second.immutable_object,
the_message->Contents.buffer,
the_message->Contents.size
);
_CORE_message_queue_Insert_message(
112a57: e9 ec 53 00 00 jmp 117e48 <_CORE_message_queue_Insert_message>
return;
}
#endif
}
if ( !wait ) {
112a5c: 80 7d db 00 cmpb $0x0,-0x25(%ebp)
112a60: 75 13 jne 112a75 <_CORE_message_queue_Seize+0xe9>
_ISR_Enable( level );
112a62: ff 75 e4 pushl -0x1c(%ebp)
112a65: 9d popf
executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_NOWAIT;
112a66: c7 40 34 04 00 00 00 movl $0x4,0x34(%eax)
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 );
}
112a6d: 8d 65 f4 lea -0xc(%ebp),%esp
112a70: 5b pop %ebx
112a71: 5e pop %esi
112a72: 5f pop %edi
112a73: c9 leave
112a74: c3 ret
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;
112a75: c7 42 30 01 00 00 00 movl $0x1,0x30(%edx)
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;
112a7c: 89 50 44 mov %edx,0x44(%eax)
executing->Wait.id = id;
112a7f: 8b 5d dc mov -0x24(%ebp),%ebx
112a82: 89 58 20 mov %ebx,0x20(%eax)
executing->Wait.return_argument_second.mutable_object = buffer;
112a85: 8b 75 e0 mov -0x20(%ebp),%esi
112a88: 89 70 2c mov %esi,0x2c(%eax)
executing->Wait.return_argument = size_p;
112a8b: 89 48 28 mov %ecx,0x28(%eax)
/* Wait.count will be filled in with the message priority */
_ISR_Enable( level );
112a8e: ff 75 e4 pushl -0x1c(%ebp)
112a91: 9d popf
_Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout );
112a92: c7 45 10 40 47 11 00 movl $0x114740,0x10(%ebp)
112a99: 8b 45 d4 mov -0x2c(%ebp),%eax
112a9c: 89 45 0c mov %eax,0xc(%ebp)
112a9f: 89 55 08 mov %edx,0x8(%ebp)
}
112aa2: 8d 65 f4 lea -0xc(%ebp),%esp
112aa5: 5b pop %ebx
112aa6: 5e pop %esi
112aa7: 5f pop %edi
112aa8: 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 );
112aa9: e9 e2 19 00 00 jmp 114490 <_Thread_queue_Enqueue_with_handler>
0010b081 <_CORE_mutex_Seize>:
Objects_Id _id,
bool _wait,
Watchdog_Interval _timeout,
ISR_Level _level
)
{
10b081: 55 push %ebp
10b082: 89 e5 mov %esp,%ebp
10b084: 53 push %ebx
10b085: 83 ec 14 sub $0x14,%esp
10b088: 8b 5d 08 mov 0x8(%ebp),%ebx
10b08b: 8a 55 10 mov 0x10(%ebp),%dl
_CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level );
10b08e: a1 08 62 12 00 mov 0x126208,%eax
10b093: 85 c0 test %eax,%eax
10b095: 74 19 je 10b0b0 <_CORE_mutex_Seize+0x2f>
10b097: 84 d2 test %dl,%dl
10b099: 74 15 je 10b0b0 <_CORE_mutex_Seize+0x2f><== NEVER TAKEN
10b09b: 83 3d a0 63 12 00 01 cmpl $0x1,0x1263a0
10b0a2: 76 0c jbe 10b0b0 <_CORE_mutex_Seize+0x2f>
10b0a4: 53 push %ebx
10b0a5: 6a 13 push $0x13
10b0a7: 6a 00 push $0x0
10b0a9: 6a 00 push $0x0
10b0ab: e8 c4 05 00 00 call 10b674 <_Internal_error_Occurred>
10b0b0: 51 push %ecx
10b0b1: 51 push %ecx
10b0b2: 8d 45 18 lea 0x18(%ebp),%eax
10b0b5: 50 push %eax
10b0b6: 53 push %ebx
10b0b7: 88 55 f4 mov %dl,-0xc(%ebp)
10b0ba: e8 01 50 00 00 call 1100c0 <_CORE_mutex_Seize_interrupt_trylock>
10b0bf: 83 c4 10 add $0x10,%esp
10b0c2: 85 c0 test %eax,%eax
10b0c4: 8a 55 f4 mov -0xc(%ebp),%dl
10b0c7: 74 48 je 10b111 <_CORE_mutex_Seize+0x90>
10b0c9: 84 d2 test %dl,%dl
10b0cb: 75 12 jne 10b0df <_CORE_mutex_Seize+0x5e>
10b0cd: ff 75 18 pushl 0x18(%ebp)
10b0d0: 9d popf
10b0d1: a1 c4 62 12 00 mov 0x1262c4,%eax
10b0d6: c7 40 34 01 00 00 00 movl $0x1,0x34(%eax)
10b0dd: eb 32 jmp 10b111 <_CORE_mutex_Seize+0x90>
10b0df: c7 43 30 01 00 00 00 movl $0x1,0x30(%ebx)
10b0e6: a1 c4 62 12 00 mov 0x1262c4,%eax
10b0eb: 89 58 44 mov %ebx,0x44(%eax)
10b0ee: 8b 55 0c mov 0xc(%ebp),%edx
10b0f1: 89 50 20 mov %edx,0x20(%eax)
10b0f4: a1 08 62 12 00 mov 0x126208,%eax
10b0f9: 40 inc %eax
10b0fa: a3 08 62 12 00 mov %eax,0x126208
10b0ff: ff 75 18 pushl 0x18(%ebp)
10b102: 9d popf
10b103: 50 push %eax
10b104: 50 push %eax
10b105: ff 75 14 pushl 0x14(%ebp)
10b108: 53 push %ebx
10b109: e8 26 ff ff ff call 10b034 <_CORE_mutex_Seize_interrupt_blocking>
10b10e: 83 c4 10 add $0x10,%esp
}
10b111: 8b 5d fc mov -0x4(%ebp),%ebx
10b114: c9 leave
10b115: c3 ret
0010b244 <_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
)
{
10b244: 55 push %ebp
10b245: 89 e5 mov %esp,%ebp
10b247: 53 push %ebx
10b248: 83 ec 10 sub $0x10,%esp
10b24b: 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)) ) {
10b24e: 53 push %ebx
10b24f: e8 70 14 00 00 call 10c6c4 <_Thread_queue_Dequeue>
10b254: 89 c2 mov %eax,%edx
10b256: 83 c4 10 add $0x10,%esp
10b259: 31 c0 xor %eax,%eax
10b25b: 85 d2 test %edx,%edx
10b25d: 75 15 jne 10b274 <_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 );
10b25f: 9c pushf
10b260: fa cli
10b261: 59 pop %ecx
if ( the_semaphore->count < the_semaphore->Attributes.maximum_count )
10b262: 8b 53 48 mov 0x48(%ebx),%edx
10b265: b0 04 mov $0x4,%al
10b267: 3b 53 40 cmp 0x40(%ebx),%edx
10b26a: 73 06 jae 10b272 <_CORE_semaphore_Surrender+0x2e><== NEVER TAKEN
the_semaphore->count += 1;
10b26c: 42 inc %edx
10b26d: 89 53 48 mov %edx,0x48(%ebx)
10b270: 30 c0 xor %al,%al
else
status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED;
_ISR_Enable( level );
10b272: 51 push %ecx
10b273: 9d popf
}
return status;
}
10b274: 8b 5d fc mov -0x4(%ebp),%ebx
10b277: c9 leave
10b278: c3 ret
00100208 <_Dual_ported_memory_Manager_initialization>:
#include <rtems/rtems/status.h>
#include <rtems/rtems/types.h>
#include <rtems/rtems/dpmem.h>
void _Dual_ported_memory_Manager_initialization(void)
{
100208: 55 push %ebp
100209: 89 e5 mov %esp,%ebp
}
10020b: c9 leave
10020c: c3 ret
00100210 <_Event_Manager_initialization>:
#include <rtems/score/states.h>
#include <rtems/score/thread.h>
#include <rtems/score/interr.h>
void _Event_Manager_initialization(void)
{
100210: 55 push %ebp
100211: 89 e5 mov %esp,%ebp
}
100213: c9 leave
100214: c3 ret
0010a088 <_Event_Seize>:
rtems_event_set event_in,
rtems_option option_set,
rtems_interval ticks,
rtems_event_set *event_out
)
{
10a088: 55 push %ebp
10a089: 89 e5 mov %esp,%ebp
10a08b: 57 push %edi
10a08c: 56 push %esi
10a08d: 53 push %ebx
10a08e: 83 ec 1c sub $0x1c,%esp
10a091: 8b 45 08 mov 0x8(%ebp),%eax
10a094: 8b 75 0c mov 0xc(%ebp),%esi
10a097: 8b 55 10 mov 0x10(%ebp),%edx
10a09a: 89 55 dc mov %edx,-0x24(%ebp)
10a09d: 8b 4d 14 mov 0x14(%ebp),%ecx
rtems_event_set pending_events;
ISR_Level level;
RTEMS_API_Control *api;
Thread_blocking_operation_States sync_state;
executing = _Thread_Executing;
10a0a0: 8b 1d c4 62 12 00 mov 0x1262c4,%ebx
executing->Wait.return_code = RTEMS_SUCCESSFUL;
10a0a6: c7 43 34 00 00 00 00 movl $0x0,0x34(%ebx)
api = executing->API_Extensions[ THREAD_API_RTEMS ];
10a0ad: 8b bb f4 00 00 00 mov 0xf4(%ebx),%edi
_ISR_Disable( level );
10a0b3: 9c pushf
10a0b4: fa cli
10a0b5: 8f 45 e4 popl -0x1c(%ebp)
pending_events = api->pending_events;
10a0b8: 8b 17 mov (%edi),%edx
10a0ba: 89 55 e0 mov %edx,-0x20(%ebp)
seized_events = _Event_sets_Get( pending_events, event_in );
if ( !_Event_sets_Is_empty( seized_events ) &&
10a0bd: 21 c2 and %eax,%edx
10a0bf: 74 1b je 10a0dc <_Event_Seize+0x54>
10a0c1: 39 c2 cmp %eax,%edx
10a0c3: 74 08 je 10a0cd <_Event_Seize+0x45>
10a0c5: f7 c6 02 00 00 00 test $0x2,%esi
10a0cb: 74 0f je 10a0dc <_Event_Seize+0x54> <== NEVER TAKEN
(seized_events == event_in || _Options_Is_any( option_set )) ) {
api->pending_events =
10a0cd: 89 d0 mov %edx,%eax
10a0cf: f7 d0 not %eax
10a0d1: 23 45 e0 and -0x20(%ebp),%eax
10a0d4: 89 07 mov %eax,(%edi)
_Event_sets_Clear( pending_events, seized_events );
_ISR_Enable( level );
10a0d6: ff 75 e4 pushl -0x1c(%ebp)
10a0d9: 9d popf
10a0da: eb 13 jmp 10a0ef <_Event_Seize+0x67>
*event_out = seized_events;
return;
}
if ( _Options_Is_no_wait( option_set ) ) {
10a0dc: f7 c6 01 00 00 00 test $0x1,%esi
10a0e2: 74 12 je 10a0f6 <_Event_Seize+0x6e>
_ISR_Enable( level );
10a0e4: ff 75 e4 pushl -0x1c(%ebp)
10a0e7: 9d popf
executing->Wait.return_code = RTEMS_UNSATISFIED;
10a0e8: c7 43 34 0d 00 00 00 movl $0xd,0x34(%ebx)
*event_out = seized_events;
10a0ef: 89 11 mov %edx,(%ecx)
return;
10a0f1: e9 91 00 00 00 jmp 10a187 <_Event_Seize+0xff>
* set properly when we are marked as in the event critical section.
*
* NOTE: Since interrupts are disabled, this isn't that much of an
* issue but better safe than sorry.
*/
executing->Wait.option = (uint32_t) option_set;
10a0f6: 89 73 30 mov %esi,0x30(%ebx)
executing->Wait.count = (uint32_t) event_in;
10a0f9: 89 43 24 mov %eax,0x24(%ebx)
executing->Wait.return_argument = event_out;
10a0fc: 89 4b 28 mov %ecx,0x28(%ebx)
_Event_Sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;
10a0ff: c7 05 48 6b 12 00 01 movl $0x1,0x126b48
10a106: 00 00 00
_ISR_Enable( level );
10a109: ff 75 e4 pushl -0x1c(%ebp)
10a10c: 9d popf
if ( ticks ) {
10a10d: 83 7d dc 00 cmpl $0x0,-0x24(%ebp)
10a111: 74 34 je 10a147 <_Event_Seize+0xbf>
_Watchdog_Initialize(
10a113: 8b 43 08 mov 0x8(%ebx),%eax
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
10a116: c7 43 50 00 00 00 00 movl $0x0,0x50(%ebx)
the_watchdog->routine = routine;
10a11d: c7 43 64 c0 a2 10 00 movl $0x10a2c0,0x64(%ebx)
the_watchdog->id = id;
10a124: 89 43 68 mov %eax,0x68(%ebx)
the_watchdog->user_data = user_data;
10a127: c7 43 6c 00 00 00 00 movl $0x0,0x6c(%ebx)
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
10a12e: 8b 45 dc mov -0x24(%ebp),%eax
10a131: 89 43 54 mov %eax,0x54(%ebx)
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
10a134: 52 push %edx
10a135: 52 push %edx
10a136: 8d 43 48 lea 0x48(%ebx),%eax
10a139: 50 push %eax
10a13a: 68 e4 62 12 00 push $0x1262e4
10a13f: e8 a0 2f 00 00 call 10d0e4 <_Watchdog_Insert>
10a144: 83 c4 10 add $0x10,%esp
NULL
);
_Watchdog_Insert_ticks( &executing->Timer, ticks );
}
_Thread_Set_state( executing, STATES_WAITING_FOR_EVENT );
10a147: 50 push %eax
10a148: 50 push %eax
10a149: 68 00 01 00 00 push $0x100
10a14e: 53 push %ebx
10a14f: e8 c0 29 00 00 call 10cb14 <_Thread_Set_state>
_ISR_Disable( level );
10a154: 9c pushf
10a155: fa cli
10a156: 5a pop %edx
sync_state = _Event_Sync_state;
10a157: a1 48 6b 12 00 mov 0x126b48,%eax
_Event_Sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
10a15c: c7 05 48 6b 12 00 00 movl $0x0,0x126b48
10a163: 00 00 00
if ( sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) {
10a166: 83 c4 10 add $0x10,%esp
10a169: 83 f8 01 cmp $0x1,%eax
10a16c: 75 04 jne 10a172 <_Event_Seize+0xea>
_ISR_Enable( level );
10a16e: 52 push %edx
10a16f: 9d popf
10a170: eb 15 jmp 10a187 <_Event_Seize+0xff>
* An interrupt completed the thread's blocking request.
* The blocking thread was satisfied by an ISR or timed out.
*
* WARNING! Returning with interrupts disabled!
*/
_Thread_blocking_operation_Cancel( sync_state, executing, level );
10a172: 89 55 10 mov %edx,0x10(%ebp)
10a175: 89 5d 0c mov %ebx,0xc(%ebp)
10a178: 89 45 08 mov %eax,0x8(%ebp)
}
10a17b: 8d 65 f4 lea -0xc(%ebp),%esp
10a17e: 5b pop %ebx
10a17f: 5e pop %esi
10a180: 5f pop %edi
10a181: c9 leave
* An interrupt completed the thread's blocking request.
* The blocking thread was satisfied by an ISR or timed out.
*
* WARNING! Returning with interrupts disabled!
*/
_Thread_blocking_operation_Cancel( sync_state, executing, level );
10a182: e9 a1 1c 00 00 jmp 10be28 <_Thread_blocking_operation_Cancel>
}
10a187: 8d 65 f4 lea -0xc(%ebp),%esp
10a18a: 5b pop %ebx
10a18b: 5e pop %esi
10a18c: 5f pop %edi
10a18d: c9 leave
10a18e: c3 ret
0010a1dc <_Event_Surrender>:
*/
void _Event_Surrender(
Thread_Control *the_thread
)
{
10a1dc: 55 push %ebp
10a1dd: 89 e5 mov %esp,%ebp
10a1df: 57 push %edi
10a1e0: 56 push %esi
10a1e1: 53 push %ebx
10a1e2: 83 ec 2c sub $0x2c,%esp
10a1e5: 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 ];
10a1e8: 8b bb f4 00 00 00 mov 0xf4(%ebx),%edi
option_set = (rtems_option) the_thread->Wait.option;
10a1ee: 8b 43 30 mov 0x30(%ebx),%eax
10a1f1: 89 45 e0 mov %eax,-0x20(%ebp)
_ISR_Disable( level );
10a1f4: 9c pushf
10a1f5: fa cli
10a1f6: 58 pop %eax
pending_events = api->pending_events;
10a1f7: 8b 17 mov (%edi),%edx
10a1f9: 89 55 d4 mov %edx,-0x2c(%ebp)
event_condition = (rtems_event_set) the_thread->Wait.count;
10a1fc: 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 ) ) {
10a1ff: 21 f2 and %esi,%edx
10a201: 0f 84 ac 00 00 00 je 10a2b3 <_Event_Surrender+0xd7>
/*
* 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() &&
10a207: 8b 0d a0 62 12 00 mov 0x1262a0,%ecx
10a20d: 85 c9 test %ecx,%ecx
10a20f: 74 47 je 10a258 <_Event_Surrender+0x7c>
10a211: 3b 1d c4 62 12 00 cmp 0x1262c4,%ebx
10a217: 75 3f jne 10a258 <_Event_Surrender+0x7c>
_Thread_Is_executing( the_thread ) &&
((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) ||
10a219: 8b 0d 48 6b 12 00 mov 0x126b48,%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() &&
10a21f: 83 f9 02 cmp $0x2,%ecx
10a222: 74 09 je 10a22d <_Event_Surrender+0x51> <== NEVER TAKEN
_Thread_Is_executing( the_thread ) &&
((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) ||
(_Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED)) ) {
10a224: 8b 0d 48 6b 12 00 mov 0x126b48,%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() &&
10a22a: 49 dec %ecx
10a22b: 75 2b jne 10a258 <_Event_Surrender+0x7c>
_Thread_Is_executing( the_thread ) &&
((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) ||
(_Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED)) ) {
if ( seized_events == event_condition || _Options_Is_any(option_set) ) {
10a22d: 39 f2 cmp %esi,%edx
10a22f: 74 06 je 10a237 <_Event_Surrender+0x5b>
10a231: f6 45 e0 02 testb $0x2,-0x20(%ebp)
10a235: 74 7c je 10a2b3 <_Event_Surrender+0xd7> <== NEVER TAKEN
api->pending_events = _Event_sets_Clear( pending_events,seized_events );
10a237: 89 d6 mov %edx,%esi
10a239: f7 d6 not %esi
10a23b: 23 75 d4 and -0x2c(%ebp),%esi
10a23e: 89 37 mov %esi,(%edi)
the_thread->Wait.count = 0;
10a240: c7 43 24 00 00 00 00 movl $0x0,0x24(%ebx)
*(rtems_event_set *)the_thread->Wait.return_argument = seized_events;
10a247: 8b 4b 28 mov 0x28(%ebx),%ecx
10a24a: 89 11 mov %edx,(%ecx)
_Event_Sync_state = THREAD_BLOCKING_OPERATION_SATISFIED;
10a24c: c7 05 48 6b 12 00 03 movl $0x3,0x126b48
10a253: 00 00 00
10a256: eb 5b jmp 10a2b3 <_Event_Surrender+0xd7>
}
/*
* Otherwise, this is a normal send to another thread
*/
if ( _States_Is_waiting_for_event( the_thread->current_state ) ) {
10a258: f6 43 11 01 testb $0x1,0x11(%ebx)
10a25c: 74 55 je 10a2b3 <_Event_Surrender+0xd7>
if ( seized_events == event_condition || _Options_Is_any( option_set ) ) {
10a25e: 39 f2 cmp %esi,%edx
10a260: 74 06 je 10a268 <_Event_Surrender+0x8c>
10a262: f6 45 e0 02 testb $0x2,-0x20(%ebp)
10a266: 74 4b je 10a2b3 <_Event_Surrender+0xd7> <== NEVER TAKEN
api->pending_events = _Event_sets_Clear( pending_events, seized_events );
10a268: 89 d6 mov %edx,%esi
10a26a: f7 d6 not %esi
10a26c: 23 75 d4 and -0x2c(%ebp),%esi
10a26f: 89 37 mov %esi,(%edi)
the_thread->Wait.count = 0;
10a271: c7 43 24 00 00 00 00 movl $0x0,0x24(%ebx)
*(rtems_event_set *)the_thread->Wait.return_argument = seized_events;
10a278: 8b 4b 28 mov 0x28(%ebx),%ecx
10a27b: 89 11 mov %edx,(%ecx)
_ISR_Flash( level );
10a27d: 50 push %eax
10a27e: 9d popf
10a27f: fa cli
if ( !_Watchdog_Is_active( &the_thread->Timer ) ) {
10a280: 83 7b 50 02 cmpl $0x2,0x50(%ebx)
10a284: 74 06 je 10a28c <_Event_Surrender+0xb0>
_ISR_Enable( level );
10a286: 50 push %eax
10a287: 9d popf
RTEMS_INLINE_ROUTINE void _Thread_Unblock (
Thread_Control *the_thread
)
{
_Thread_Clear_state( the_thread, STATES_BLOCKED );
10a288: 51 push %ecx
10a289: 51 push %ecx
10a28a: eb 17 jmp 10a2a3 <_Event_Surrender+0xc7>
RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate(
Watchdog_Control *the_watchdog
)
{
the_watchdog->state = WATCHDOG_REMOVE_IT;
10a28c: c7 43 50 03 00 00 00 movl $0x3,0x50(%ebx)
_Thread_Unblock( the_thread );
} else {
_Watchdog_Deactivate( &the_thread->Timer );
_ISR_Enable( level );
10a293: 50 push %eax
10a294: 9d popf
(void) _Watchdog_Remove( &the_thread->Timer );
10a295: 83 ec 0c sub $0xc,%esp
10a298: 8d 43 48 lea 0x48(%ebx),%eax
10a29b: 50 push %eax
10a29c: e8 57 2f 00 00 call 10d1f8 <_Watchdog_Remove>
10a2a1: 58 pop %eax
10a2a2: 5a pop %edx
10a2a3: 68 f8 ff 03 10 push $0x1003fff8
10a2a8: 53 push %ebx
10a2a9: e8 e6 1c 00 00 call 10bf94 <_Thread_Clear_state>
10a2ae: 83 c4 10 add $0x10,%esp
10a2b1: eb 02 jmp 10a2b5 <_Event_Surrender+0xd9>
_Thread_Unblock( the_thread );
}
return;
}
}
_ISR_Enable( level );
10a2b3: 50 push %eax
10a2b4: 9d popf
}
10a2b5: 8d 65 f4 lea -0xc(%ebp),%esp
10a2b8: 5b pop %ebx
10a2b9: 5e pop %esi
10a2ba: 5f pop %edi
10a2bb: c9 leave
10a2bc: c3 ret
0010a2c0 <_Event_Timeout>:
void _Event_Timeout(
Objects_Id id,
void *ignored
)
{
10a2c0: 55 push %ebp
10a2c1: 89 e5 mov %esp,%ebp
10a2c3: 83 ec 20 sub $0x20,%esp
Thread_Control *the_thread;
Objects_Locations location;
ISR_Level level;
the_thread = _Thread_Get( id, &location );
10a2c6: 8d 45 f4 lea -0xc(%ebp),%eax
10a2c9: 50 push %eax
10a2ca: ff 75 08 pushl 0x8(%ebp)
10a2cd: e8 62 20 00 00 call 10c334 <_Thread_Get>
switch ( location ) {
10a2d2: 83 c4 10 add $0x10,%esp
10a2d5: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
10a2d9: 75 49 jne 10a324 <_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 );
10a2db: 9c pushf
10a2dc: fa cli
10a2dd: 5a pop %edx
_ISR_Enable( level );
return;
}
#endif
the_thread->Wait.count = 0;
10a2de: c7 40 24 00 00 00 00 movl $0x0,0x24(%eax)
if ( _Thread_Is_executing( the_thread ) ) {
10a2e5: 3b 05 c4 62 12 00 cmp 0x1262c4,%eax
10a2eb: 75 13 jne 10a300 <_Event_Timeout+0x40>
if ( _Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )
10a2ed: 8b 0d 48 6b 12 00 mov 0x126b48,%ecx
10a2f3: 49 dec %ecx
10a2f4: 75 0a jne 10a300 <_Event_Timeout+0x40>
_Event_Sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT;
10a2f6: c7 05 48 6b 12 00 02 movl $0x2,0x126b48
10a2fd: 00 00 00
}
the_thread->Wait.return_code = RTEMS_TIMEOUT;
10a300: c7 40 34 06 00 00 00 movl $0x6,0x34(%eax)
_ISR_Enable( level );
10a307: 52 push %edx
10a308: 9d popf
10a309: 52 push %edx
10a30a: 52 push %edx
10a30b: 68 f8 ff 03 10 push $0x1003fff8
10a310: 50 push %eax
10a311: e8 7e 1c 00 00 call 10bf94 <_Thread_Clear_state>
*/
RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void )
{
RTEMS_COMPILER_MEMORY_BARRIER();
_Thread_Dispatch_disable_level -= 1;
10a316: a1 08 62 12 00 mov 0x126208,%eax
10a31b: 48 dec %eax
10a31c: a3 08 62 12 00 mov %eax,0x126208
10a321: 83 c4 10 add $0x10,%esp
case OBJECTS_REMOTE: /* impossible */
#endif
case OBJECTS_ERROR:
break;
}
}
10a324: c9 leave
10a325: c3 ret
00100248 <_Extension_Manager_initialization>:
#include <rtems/score/thread.h>
#include <rtems/extension.h>
#include <rtems/score/interr.h>
void _Extension_Manager_initialization(void)
{
100248: 55 push %ebp
100249: 89 e5 mov %esp,%ebp
}
10024b: c9 leave
10024c: c3 ret
001101e8 <_Heap_Allocate_aligned_with_boundary>:
Heap_Control *heap,
uintptr_t alloc_size,
uintptr_t alignment,
uintptr_t boundary
)
{
1101e8: 55 push %ebp
1101e9: 89 e5 mov %esp,%ebp
1101eb: 57 push %edi
1101ec: 56 push %esi
1101ed: 53 push %ebx
1101ee: 83 ec 2c sub $0x2c,%esp
1101f1: 8b 75 08 mov 0x8(%ebp),%esi
return &heap->free_list;
}
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap )
{
return _Heap_Free_list_head(heap)->next;
1101f4: 8b 4e 08 mov 0x8(%esi),%ecx
Heap_Statistics *const stats = &heap->stats;
Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );
Heap_Block *block = _Heap_Free_list_first( heap );
uintptr_t const block_size_floor = alloc_size + HEAP_BLOCK_HEADER_SIZE
- HEAP_BLOCK_SIZE_OFFSET;
uintptr_t const page_size = heap->page_size;
1101f7: 8b 46 10 mov 0x10(%esi),%eax
1101fa: 89 45 e0 mov %eax,-0x20(%ebp)
uintptr_t alloc_begin = 0;
uint32_t search_count = 0;
if ( block_size_floor < alloc_size ) {
1101fd: 8b 45 0c mov 0xc(%ebp),%eax
110200: 83 c0 04 add $0x4,%eax
110203: 89 45 cc mov %eax,-0x34(%ebp)
110206: 0f 82 2f 01 00 00 jb 11033b <_Heap_Allocate_aligned_with_boundary+0x153>
/* Integer overflow occured */
return NULL;
}
if ( boundary != 0 ) {
11020c: 83 7d 14 00 cmpl $0x0,0x14(%ebp)
110210: 74 18 je 11022a <_Heap_Allocate_aligned_with_boundary+0x42>
if ( boundary < alloc_size ) {
110212: 8b 45 0c mov 0xc(%ebp),%eax
110215: 39 45 14 cmp %eax,0x14(%ebp)
110218: 0f 82 1d 01 00 00 jb 11033b <_Heap_Allocate_aligned_with_boundary+0x153>
return NULL;
}
if ( alignment == 0 ) {
11021e: 83 7d 10 00 cmpl $0x0,0x10(%ebp)
110222: 75 06 jne 11022a <_Heap_Allocate_aligned_with_boundary+0x42>
110224: 8b 45 e0 mov -0x20(%ebp),%eax
110227: 89 45 10 mov %eax,0x10(%ebp)
11022a: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp)
uintptr_t const block_size = _Heap_Block_size( block );
uintptr_t const block_end = block_begin + block_size;
uintptr_t const alloc_begin_floor = _Heap_Alloc_area_of_block( block );
uintptr_t const alloc_begin_ceiling = block_end - min_block_size
+ HEAP_BLOCK_HEADER_SIZE + page_size - 1;
110231: 8b 45 e0 mov -0x20(%ebp),%eax
110234: 83 c0 07 add $0x7,%eax
110237: 89 45 c8 mov %eax,-0x38(%ebp)
uintptr_t alloc_end = block_end + HEAP_BLOCK_SIZE_OFFSET;
uintptr_t alloc_begin = alloc_end - alloc_size;
11023a: c7 45 d8 04 00 00 00 movl $0x4,-0x28(%ebp)
110241: 8b 45 0c mov 0xc(%ebp),%eax
110244: 29 45 d8 sub %eax,-0x28(%ebp)
110247: 89 f7 mov %esi,%edi
110249: e9 ba 00 00 00 jmp 110308 <_Heap_Allocate_aligned_with_boundary+0x120>
while ( block != free_list_tail ) {
_HAssert( _Heap_Is_prev_used( block ) );
/* Statistics */
++search_count;
11024e: ff 45 e4 incl -0x1c(%ebp)
/*
* The HEAP_PREV_BLOCK_USED flag is always set in the block size_and_flag
* field. Thus the value is about one unit larger than the real block
* size. The greater than operator takes this into account.
*/
if ( block->size_and_flag > block_size_floor ) {
110251: 8b 59 04 mov 0x4(%ecx),%ebx
110254: 3b 5d cc cmp -0x34(%ebp),%ebx
110257: 0f 86 a8 00 00 00 jbe 110305 <_Heap_Allocate_aligned_with_boundary+0x11d>
if ( alignment == 0 ) {
11025d: 83 7d 10 00 cmpl $0x0,0x10(%ebp)
110261: 8d 41 08 lea 0x8(%ecx),%eax
110264: 89 45 dc mov %eax,-0x24(%ebp)
110267: 75 07 jne 110270 <_Heap_Allocate_aligned_with_boundary+0x88>
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Alloc_area_of_block(
const Heap_Block *block
)
{
return (uintptr_t) block + HEAP_BLOCK_HEADER_SIZE;
110269: 89 c3 mov %eax,%ebx
11026b: e9 91 00 00 00 jmp 110301 <_Heap_Allocate_aligned_with_boundary+0x119>
uintptr_t alignment,
uintptr_t boundary
)
{
uintptr_t const page_size = heap->page_size;
uintptr_t const min_block_size = heap->min_block_size;
110270: 8b 47 14 mov 0x14(%edi),%eax
110273: 89 45 d4 mov %eax,-0x2c(%ebp)
uintptr_t const block_begin = (uintptr_t) block;
uintptr_t const block_size = _Heap_Block_size( block );
uintptr_t const block_end = block_begin + block_size;
110276: 83 e3 fe and $0xfffffffe,%ebx
110279: 8d 1c 19 lea (%ecx,%ebx,1),%ebx
uintptr_t const alloc_begin_floor = _Heap_Alloc_area_of_block( block );
uintptr_t const alloc_begin_ceiling = block_end - min_block_size
+ HEAP_BLOCK_HEADER_SIZE + page_size - 1;
11027c: 8b 75 c8 mov -0x38(%ebp),%esi
11027f: 29 c6 sub %eax,%esi
110281: 01 de add %ebx,%esi
uintptr_t alloc_end = block_end + HEAP_BLOCK_SIZE_OFFSET;
uintptr_t alloc_begin = alloc_end - alloc_size;
110283: 03 5d d8 add -0x28(%ebp),%ebx
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(
uintptr_t value,
uintptr_t alignment
)
{
return value - (value % alignment);
110286: 89 d8 mov %ebx,%eax
110288: 31 d2 xor %edx,%edx
11028a: f7 75 10 divl 0x10(%ebp)
11028d: 29 d3 sub %edx,%ebx
alloc_begin = _Heap_Align_down( alloc_begin, alignment );
/* Ensure that the we have a valid new block at the end */
if ( alloc_begin > alloc_begin_ceiling ) {
11028f: 39 f3 cmp %esi,%ebx
110291: 76 0b jbe 11029e <_Heap_Allocate_aligned_with_boundary+0xb6>
110293: 89 f0 mov %esi,%eax
110295: 31 d2 xor %edx,%edx
110297: f7 75 10 divl 0x10(%ebp)
11029a: 89 f3 mov %esi,%ebx
11029c: 29 d3 sub %edx,%ebx
}
alloc_end = alloc_begin + alloc_size;
/* Ensure boundary constaint */
if ( boundary != 0 ) {
11029e: 83 7d 14 00 cmpl $0x0,0x14(%ebp)
1102a2: 74 3f je 1102e3 <_Heap_Allocate_aligned_with_boundary+0xfb>
/* Ensure that the we have a valid new block at the end */
if ( alloc_begin > alloc_begin_ceiling ) {
alloc_begin = _Heap_Align_down( alloc_begin_ceiling, alignment );
}
alloc_end = alloc_begin + alloc_size;
1102a4: 8b 45 0c mov 0xc(%ebp),%eax
1102a7: 8d 34 03 lea (%ebx,%eax,1),%esi
/* Ensure boundary constaint */
if ( boundary != 0 ) {
uintptr_t const boundary_floor = alloc_begin_floor + alloc_size;
1102aa: 8b 45 dc mov -0x24(%ebp),%eax
1102ad: 03 45 0c add 0xc(%ebp),%eax
1102b0: 89 45 d0 mov %eax,-0x30(%ebp)
1102b3: eb 19 jmp 1102ce <_Heap_Allocate_aligned_with_boundary+0xe6>
uintptr_t boundary_line = _Heap_Align_down( alloc_end, boundary );
while ( alloc_begin < boundary_line && boundary_line < alloc_end ) {
if ( boundary_line < boundary_floor ) {
1102b5: 3b 55 d0 cmp -0x30(%ebp),%edx
1102b8: 72 4b jb 110305 <_Heap_Allocate_aligned_with_boundary+0x11d>
return 0;
}
alloc_begin = boundary_line - alloc_size;
1102ba: 89 d3 mov %edx,%ebx
1102bc: 2b 5d 0c sub 0xc(%ebp),%ebx
1102bf: 89 d8 mov %ebx,%eax
1102c1: 31 d2 xor %edx,%edx
1102c3: f7 75 10 divl 0x10(%ebp)
1102c6: 29 d3 sub %edx,%ebx
alloc_begin = _Heap_Align_down( alloc_begin, alignment );
alloc_end = alloc_begin + alloc_size;
1102c8: 8b 45 0c mov 0xc(%ebp),%eax
1102cb: 8d 34 03 lea (%ebx,%eax,1),%esi
1102ce: 89 f0 mov %esi,%eax
1102d0: 31 d2 xor %edx,%edx
1102d2: f7 75 14 divl 0x14(%ebp)
1102d5: 89 f0 mov %esi,%eax
1102d7: 29 d0 sub %edx,%eax
1102d9: 89 c2 mov %eax,%edx
/* Ensure boundary constaint */
if ( boundary != 0 ) {
uintptr_t const boundary_floor = alloc_begin_floor + alloc_size;
uintptr_t boundary_line = _Heap_Align_down( alloc_end, boundary );
while ( alloc_begin < boundary_line && boundary_line < alloc_end ) {
1102db: 39 f0 cmp %esi,%eax
1102dd: 73 04 jae 1102e3 <_Heap_Allocate_aligned_with_boundary+0xfb>
1102df: 39 c3 cmp %eax,%ebx
1102e1: 72 d2 jb 1102b5 <_Heap_Allocate_aligned_with_boundary+0xcd>
boundary_line = _Heap_Align_down( alloc_end, boundary );
}
}
/* Ensure that the we have a valid new block at the beginning */
if ( alloc_begin >= alloc_begin_floor ) {
1102e3: 3b 5d dc cmp -0x24(%ebp),%ebx
1102e6: 72 1d jb 110305 <_Heap_Allocate_aligned_with_boundary+0x11d>
uintptr_t const alloc_block_begin =
(uintptr_t) _Heap_Block_of_alloc_area( alloc_begin, page_size );
uintptr_t const free_size = alloc_block_begin - block_begin;
1102e8: be f8 ff ff ff mov $0xfffffff8,%esi
1102ed: 29 ce sub %ecx,%esi
1102ef: 01 de add %ebx,%esi
1102f1: 89 d8 mov %ebx,%eax
1102f3: 31 d2 xor %edx,%edx
1102f5: f7 75 e0 divl -0x20(%ebp)
if ( free_size >= min_block_size || free_size == 0 ) {
1102f8: 29 d6 sub %edx,%esi
1102fa: 74 05 je 110301 <_Heap_Allocate_aligned_with_boundary+0x119>
1102fc: 3b 75 d4 cmp -0x2c(%ebp),%esi
1102ff: 72 04 jb 110305 <_Heap_Allocate_aligned_with_boundary+0x11d>
boundary
);
}
}
if ( alloc_begin != 0 ) {
110301: 85 db test %ebx,%ebx
110303: 75 11 jne 110316 <_Heap_Allocate_aligned_with_boundary+0x12e><== ALWAYS TAKEN
break;
}
block = block->next;
110305: 8b 49 08 mov 0x8(%ecx),%ecx
if ( alignment == 0 ) {
alignment = page_size;
}
}
while ( block != free_list_tail ) {
110308: 39 f9 cmp %edi,%ecx
11030a: 0f 85 3e ff ff ff jne 11024e <_Heap_Allocate_aligned_with_boundary+0x66>
110310: 89 fe mov %edi,%esi
110312: 31 db xor %ebx,%ebx
110314: eb 16 jmp 11032c <_Heap_Allocate_aligned_with_boundary+0x144>
110316: 89 fe mov %edi,%esi
block = block->next;
}
if ( alloc_begin != 0 ) {
/* Statistics */
stats->searches += search_count;
110318: 8b 45 e4 mov -0x1c(%ebp),%eax
11031b: 01 47 4c add %eax,0x4c(%edi)
block = _Heap_Block_allocate( heap, block, alloc_begin, alloc_size );
11031e: ff 75 0c pushl 0xc(%ebp)
110321: 53 push %ebx
110322: 51 push %ecx
110323: 57 push %edi
110324: e8 6f b2 ff ff call 10b598 <_Heap_Block_allocate>
110329: 83 c4 10 add $0x10,%esp
uintptr_t alloc_size,
uintptr_t alignment,
uintptr_t boundary
)
{
Heap_Statistics *const stats = &heap->stats;
11032c: 8b 45 e4 mov -0x1c(%ebp),%eax
11032f: 39 46 44 cmp %eax,0x44(%esi)
110332: 73 03 jae 110337 <_Heap_Allocate_aligned_with_boundary+0x14f>
);
}
/* Statistics */
if ( stats->max_search < search_count ) {
stats->max_search = search_count;
110334: 89 46 44 mov %eax,0x44(%esi)
}
return (void *) alloc_begin;
110337: 89 d8 mov %ebx,%eax
110339: eb 02 jmp 11033d <_Heap_Allocate_aligned_with_boundary+0x155>
11033b: 31 c0 xor %eax,%eax
}
11033d: 8d 65 f4 lea -0xc(%ebp),%esp
110340: 5b pop %ebx
110341: 5e pop %esi
110342: 5f pop %edi
110343: c9 leave
110344: c3 ret
00113640 <_Heap_Extend>:
Heap_Control *heap,
void *area_begin_ptr,
uintptr_t area_size,
uintptr_t *amount_extended
)
{
113640: 55 push %ebp
113641: 89 e5 mov %esp,%ebp
113643: 56 push %esi
113644: 53 push %ebx
113645: 8b 4d 08 mov 0x8(%ebp),%ecx
113648: 8b 55 0c mov 0xc(%ebp),%edx
Heap_Statistics *const stats = &heap->stats;
uintptr_t const area_begin = (uintptr_t) area_begin_ptr;
uintptr_t const heap_area_begin = heap->area_begin;
uintptr_t const heap_area_end = heap->area_end;
11364b: 8b 71 1c mov 0x1c(%ecx),%esi
uintptr_t const new_heap_area_end = heap_area_end + area_size;
uintptr_t extend_size = 0;
Heap_Block *const last_block = heap->last_block;
11364e: 8b 59 24 mov 0x24(%ecx),%ebx
* 5. non-contiguous higher address (NOT SUPPORTED)
*
* As noted, this code only supports (4).
*/
if ( area_begin >= heap_area_begin && area_begin < heap_area_end ) {
113651: 39 f2 cmp %esi,%edx
113653: 73 0a jae 11365f <_Heap_Extend+0x1f>
uintptr_t *amount_extended
)
{
Heap_Statistics *const stats = &heap->stats;
uintptr_t const area_begin = (uintptr_t) area_begin_ptr;
uintptr_t const heap_area_begin = heap->area_begin;
113655: b8 01 00 00 00 mov $0x1,%eax
11365a: 3b 51 18 cmp 0x18(%ecx),%edx
11365d: 73 5f jae 1136be <_Heap_Extend+0x7e>
* As noted, this code only supports (4).
*/
if ( area_begin >= heap_area_begin && area_begin < heap_area_end ) {
return HEAP_EXTEND_ERROR; /* case 3 */
} else if ( area_begin != heap_area_end ) {
11365f: b8 02 00 00 00 mov $0x2,%eax
113664: 39 f2 cmp %esi,%edx
113666: 75 56 jne 1136be <_Heap_Extend+0x7e>
{
Heap_Statistics *const stats = &heap->stats;
uintptr_t const area_begin = (uintptr_t) area_begin_ptr;
uintptr_t const heap_area_begin = heap->area_begin;
uintptr_t const heap_area_end = heap->area_end;
uintptr_t const new_heap_area_end = heap_area_end + area_size;
113668: 03 55 10 add 0x10(%ebp),%edx
* Currently only case 4 should make it to this point.
* The basic trick is to make the extend area look like a used
* block and free it.
*/
heap->area_end = new_heap_area_end;
11366b: 89 51 1c mov %edx,0x1c(%ecx)
extend_size = new_heap_area_end
11366e: 29 da sub %ebx,%edx
113670: 8d 72 f8 lea -0x8(%edx),%esi
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(
uintptr_t value,
uintptr_t alignment
)
{
return value - (value % alignment);
113673: 89 f0 mov %esi,%eax
113675: 31 d2 xor %edx,%edx
113677: f7 71 10 divl 0x10(%ecx)
11367a: 29 d6 sub %edx,%esi
- (uintptr_t) last_block - HEAP_BLOCK_HEADER_SIZE;
extend_size = _Heap_Align_down( extend_size, heap->page_size );
*amount_extended = extend_size;
11367c: 8b 45 14 mov 0x14(%ebp),%eax
11367f: 89 30 mov %esi,(%eax)
if( extend_size >= heap->min_block_size ) {
113681: 31 c0 xor %eax,%eax
113683: 3b 71 14 cmp 0x14(%ecx),%esi
113686: 72 36 jb 1136be <_Heap_Extend+0x7e> <== NEVER TAKEN
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(
const Heap_Block *block,
uintptr_t offset
)
{
return (Heap_Block *) ((uintptr_t) block + offset);
113688: 8d 14 1e lea (%esi,%ebx,1),%edx
uintptr_t size
)
{
uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED;
block->size_and_flag = size | flag;
11368b: 8b 43 04 mov 0x4(%ebx),%eax
11368e: 83 e0 01 and $0x1,%eax
113691: 09 f0 or %esi,%eax
113693: 89 43 04 mov %eax,0x4(%ebx)
Heap_Block *const new_last_block = _Heap_Block_at( last_block, extend_size );
_Heap_Block_set_size( last_block, extend_size );
new_last_block->size_and_flag =
113696: 8b 41 20 mov 0x20(%ecx),%eax
113699: 29 d0 sub %edx,%eax
11369b: 83 c8 01 or $0x1,%eax
11369e: 89 42 04 mov %eax,0x4(%edx)
((uintptr_t) heap->first_block - (uintptr_t) new_last_block)
| HEAP_PREV_BLOCK_USED;
heap->last_block = new_last_block;
1136a1: 89 51 24 mov %edx,0x24(%ecx)
/* Statistics */
stats->size += extend_size;
1136a4: 01 71 2c add %esi,0x2c(%ecx)
++stats->used_blocks;
1136a7: ff 41 40 incl 0x40(%ecx)
--stats->frees; /* Do not count subsequent call as actual free() */
1136aa: ff 49 50 decl 0x50(%ecx)
_Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( last_block ));
1136ad: 50 push %eax
1136ae: 50 push %eax
1136af: 83 c3 08 add $0x8,%ebx
1136b2: 53 push %ebx
1136b3: 51 push %ecx
1136b4: e8 df a8 ff ff call 10df98 <_Heap_Free>
1136b9: 31 c0 xor %eax,%eax
1136bb: 83 c4 10 add $0x10,%esp
}
return HEAP_EXTEND_SUCCESSFUL;
}
1136be: 8d 65 f8 lea -0x8(%ebp),%esp
1136c1: 5b pop %ebx
1136c2: 5e pop %esi
1136c3: c9 leave
1136c4: c3 ret
00110348 <_Heap_Free>:
#include <rtems/system.h>
#include <rtems/score/sysstate.h>
#include <rtems/score/heap.h>
bool _Heap_Free( Heap_Control *heap, void *alloc_begin_ptr )
{
110348: 55 push %ebp
110349: 89 e5 mov %esp,%ebp
11034b: 57 push %edi
11034c: 56 push %esi
11034d: 53 push %ebx
11034e: 83 ec 14 sub $0x14,%esp
110351: 8b 4d 08 mov 0x8(%ebp),%ecx
110354: 8b 45 0c mov 0xc(%ebp),%eax
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 )
110357: 8d 58 f8 lea -0x8(%eax),%ebx
11035a: 31 d2 xor %edx,%edx
11035c: f7 71 10 divl 0x10(%ecx)
11035f: 29 d3 sub %edx,%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;
110361: 8b 41 20 mov 0x20(%ecx),%eax
110364: 89 45 f0 mov %eax,-0x10(%ebp)
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
110367: 31 c0 xor %eax,%eax
110369: 3b 5d f0 cmp -0x10(%ebp),%ebx
11036c: 72 08 jb 110376 <_Heap_Free+0x2e>
11036e: 31 c0 xor %eax,%eax
110370: 39 59 24 cmp %ebx,0x24(%ecx)
110373: 0f 93 c0 setae %al
Heap_Block *next_block = NULL;
uintptr_t block_size = 0;
uintptr_t next_block_size = 0;
bool next_is_free = false;
if ( !_Heap_Is_block_in_heap( heap, block ) ) {
110376: 85 c0 test %eax,%eax
110378: 0f 84 2d 01 00 00 je 1104ab <_Heap_Free+0x163>
- 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;
11037e: 8b 7b 04 mov 0x4(%ebx),%edi
110381: 89 fa mov %edi,%edx
110383: 83 e2 fe and $0xfffffffe,%edx
110386: 89 55 e0 mov %edx,-0x20(%ebp)
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(
const Heap_Block *block,
uintptr_t offset
)
{
return (Heap_Block *) ((uintptr_t) block + offset);
110389: 8d 04 13 lea (%ebx,%edx,1),%eax
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
11038c: 31 f6 xor %esi,%esi
11038e: 3b 45 f0 cmp -0x10(%ebp),%eax
110391: 72 0e jb 1103a1 <_Heap_Free+0x59> <== NEVER TAKEN
110393: 39 41 24 cmp %eax,0x24(%ecx)
110396: 0f 93 c2 setae %dl
110399: 89 d6 mov %edx,%esi
11039b: 81 e6 ff 00 00 00 and $0xff,%esi
}
block_size = _Heap_Block_size( block );
next_block = _Heap_Block_at( block, block_size );
if ( !_Heap_Is_block_in_heap( heap, next_block ) ) {
1103a1: 85 f6 test %esi,%esi
1103a3: 0f 84 02 01 00 00 je 1104ab <_Heap_Free+0x163> <== NEVER TAKEN
block->size_and_flag = size | flag;
}
RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used( const Heap_Block *block )
{
return block->size_and_flag & HEAP_PREV_BLOCK_USED;
1103a9: 8b 70 04 mov 0x4(%eax),%esi
_HAssert( false );
return false;
}
if ( !_Heap_Is_prev_used( next_block ) ) {
1103ac: f7 c6 01 00 00 00 test $0x1,%esi
1103b2: 0f 84 f3 00 00 00 je 1104ab <_Heap_Free+0x163> <== 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;
1103b8: 83 e6 fe and $0xfffffffe,%esi
1103bb: 89 75 e8 mov %esi,-0x18(%ebp)
return false;
}
next_block_size = _Heap_Block_size( next_block );
next_is_free = next_block != heap->last_block
&& !_Heap_Is_prev_used( _Heap_Block_at( next_block, next_block_size ));
1103be: 8b 51 24 mov 0x24(%ecx),%edx
1103c1: 89 55 e4 mov %edx,-0x1c(%ebp)
_HAssert( false );
return false;
}
next_block_size = _Heap_Block_size( next_block );
next_is_free = next_block != heap->last_block
1103c4: 31 f6 xor %esi,%esi
1103c6: 39 d0 cmp %edx,%eax
1103c8: 74 0d je 1103d7 <_Heap_Free+0x8f>
1103ca: 8b 55 e8 mov -0x18(%ebp),%edx
1103cd: 8b 74 10 04 mov 0x4(%eax,%edx,1),%esi
1103d1: 83 e6 01 and $0x1,%esi
1103d4: 83 f6 01 xor $0x1,%esi
&& !_Heap_Is_prev_used( _Heap_Block_at( next_block, next_block_size ));
if ( !_Heap_Is_prev_used( block ) ) {
1103d7: 83 e7 01 and $0x1,%edi
1103da: 75 64 jne 110440 <_Heap_Free+0xf8>
uintptr_t const prev_size = block->prev_size;
1103dc: 8b 13 mov (%ebx),%edx
1103de: 89 55 ec mov %edx,-0x14(%ebp)
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(
const Heap_Block *block,
uintptr_t offset
)
{
return (Heap_Block *) ((uintptr_t) block + offset);
1103e1: 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
1103e3: 31 ff xor %edi,%edi
1103e5: 3b 5d f0 cmp -0x10(%ebp),%ebx
1103e8: 72 0e jb 1103f8 <_Heap_Free+0xb0> <== NEVER TAKEN
1103ea: 39 5d e4 cmp %ebx,-0x1c(%ebp)
1103ed: 0f 93 c2 setae %dl
1103f0: 89 d7 mov %edx,%edi
1103f2: 81 e7 ff 00 00 00 and $0xff,%edi
Heap_Block * const prev_block = _Heap_Block_at( block, -prev_size );
if ( !_Heap_Is_block_in_heap( heap, prev_block ) ) {
1103f8: 85 ff test %edi,%edi
1103fa: 0f 84 ab 00 00 00 je 1104ab <_Heap_Free+0x163> <== 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) ) {
110400: f6 43 04 01 testb $0x1,0x4(%ebx)
110404: 0f 84 a1 00 00 00 je 1104ab <_Heap_Free+0x163> <== NEVER TAKEN
_HAssert( false );
return( false );
}
if ( next_is_free ) { /* coalesce both */
11040a: 89 f2 mov %esi,%edx
11040c: 84 d2 test %dl,%dl
11040e: 74 1a je 11042a <_Heap_Free+0xe2>
uintptr_t const size = block_size + prev_size + next_block_size;
110410: 8b 75 e0 mov -0x20(%ebp),%esi
110413: 03 75 e8 add -0x18(%ebp),%esi
110416: 03 75 ec add -0x14(%ebp),%esi
return _Heap_Free_list_tail(heap)->prev;
}
RTEMS_INLINE_ROUTINE void _Heap_Free_list_remove( Heap_Block *block )
{
Heap_Block *next = block->next;
110419: 8b 78 08 mov 0x8(%eax),%edi
Heap_Block *prev = block->prev;
11041c: 8b 40 0c mov 0xc(%eax),%eax
prev->next = next;
11041f: 89 78 08 mov %edi,0x8(%eax)
next->prev = prev;
110422: 89 47 0c mov %eax,0xc(%edi)
_Heap_Free_list_remove( next_block );
stats->free_blocks -= 1;
110425: ff 49 38 decl 0x38(%ecx)
110428: eb 34 jmp 11045e <_Heap_Free+0x116>
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;
11042a: 8b 75 e0 mov -0x20(%ebp),%esi
11042d: 03 75 ec add -0x14(%ebp),%esi
prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED;
110430: 89 f7 mov %esi,%edi
110432: 83 cf 01 or $0x1,%edi
110435: 89 7b 04 mov %edi,0x4(%ebx)
next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;
110438: 83 60 04 fe andl $0xfffffffe,0x4(%eax)
next_block->prev_size = size;
11043c: 89 30 mov %esi,(%eax)
11043e: eb 5b jmp 11049b <_Heap_Free+0x153>
}
} else if ( next_is_free ) { /* coalesce next */
110440: 89 f2 mov %esi,%edx
110442: 84 d2 test %dl,%dl
110444: 74 25 je 11046b <_Heap_Free+0x123>
uintptr_t const size = block_size + next_block_size;
110446: 8b 75 e8 mov -0x18(%ebp),%esi
110449: 03 75 e0 add -0x20(%ebp),%esi
RTEMS_INLINE_ROUTINE void _Heap_Free_list_replace(
Heap_Block *old_block,
Heap_Block *new_block
)
{
Heap_Block *next = old_block->next;
11044c: 8b 78 08 mov 0x8(%eax),%edi
Heap_Block *prev = old_block->prev;
11044f: 8b 40 0c mov 0xc(%eax),%eax
new_block->next = next;
110452: 89 7b 08 mov %edi,0x8(%ebx)
new_block->prev = prev;
110455: 89 43 0c mov %eax,0xc(%ebx)
next->prev = new_block;
110458: 89 5f 0c mov %ebx,0xc(%edi)
prev->next = new_block;
11045b: 89 58 08 mov %ebx,0x8(%eax)
_Heap_Free_list_replace( next_block, block );
block->size_and_flag = size | HEAP_PREV_BLOCK_USED;
11045e: 89 f0 mov %esi,%eax
110460: 83 c8 01 or $0x1,%eax
110463: 89 43 04 mov %eax,0x4(%ebx)
next_block = _Heap_Block_at( block, size );
next_block->prev_size = size;
110466: 89 34 33 mov %esi,(%ebx,%esi,1)
110469: eb 30 jmp 11049b <_Heap_Free+0x153>
RTEMS_INLINE_ROUTINE void _Heap_Free_list_insert_after(
Heap_Block *block_before,
Heap_Block *new_block
)
{
Heap_Block *next = block_before->next;
11046b: 8b 71 08 mov 0x8(%ecx),%esi
new_block->next = next;
11046e: 89 73 08 mov %esi,0x8(%ebx)
new_block->prev = block_before;
110471: 89 4b 0c mov %ecx,0xc(%ebx)
block_before->next = new_block;
110474: 89 59 08 mov %ebx,0x8(%ecx)
next->prev = new_block;
110477: 89 5e 0c mov %ebx,0xc(%esi)
} 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;
11047a: 8b 75 e0 mov -0x20(%ebp),%esi
11047d: 83 ce 01 or $0x1,%esi
110480: 89 73 04 mov %esi,0x4(%ebx)
next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;
110483: 83 60 04 fe andl $0xfffffffe,0x4(%eax)
next_block->prev_size = block_size;
110487: 8b 55 e0 mov -0x20(%ebp),%edx
11048a: 89 10 mov %edx,(%eax)
/* Statistics */
++stats->free_blocks;
11048c: 8b 41 38 mov 0x38(%ecx),%eax
11048f: 40 inc %eax
110490: 89 41 38 mov %eax,0x38(%ecx)
#include <rtems/score/sysstate.h>
#include <rtems/score/heap.h>
bool _Heap_Free( Heap_Control *heap, void *alloc_begin_ptr )
{
Heap_Statistics *const stats = &heap->stats;
110493: 39 41 3c cmp %eax,0x3c(%ecx)
110496: 73 03 jae 11049b <_Heap_Free+0x153>
next_block->prev_size = block_size;
/* Statistics */
++stats->free_blocks;
if ( stats->max_free_blocks < stats->free_blocks ) {
stats->max_free_blocks = stats->free_blocks;
110498: 89 41 3c mov %eax,0x3c(%ecx)
}
}
/* Statistics */
--stats->used_blocks;
11049b: ff 49 40 decl 0x40(%ecx)
++stats->frees;
11049e: ff 41 50 incl 0x50(%ecx)
stats->free_size += block_size;
1104a1: 8b 45 e0 mov -0x20(%ebp),%eax
1104a4: 01 41 30 add %eax,0x30(%ecx)
1104a7: b0 01 mov $0x1,%al
return( true );
1104a9: eb 02 jmp 1104ad <_Heap_Free+0x165>
1104ab: 31 c0 xor %eax,%eax
}
1104ad: 83 c4 14 add $0x14,%esp
1104b0: 5b pop %ebx
1104b1: 5e pop %esi
1104b2: 5f pop %edi
1104b3: c9 leave
1104b4: c3 ret
0011e5e4 <_Heap_Size_of_alloc_area>:
bool _Heap_Size_of_alloc_area(
Heap_Control *heap,
void *alloc_begin_ptr,
uintptr_t *alloc_size
)
{
11e5e4: 55 push %ebp
11e5e5: 89 e5 mov %esp,%ebp
11e5e7: 56 push %esi
11e5e8: 53 push %ebx
11e5e9: 8b 5d 08 mov 0x8(%ebp),%ebx
11e5ec: 8b 75 0c mov 0xc(%ebp),%esi
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 )
11e5ef: 8d 4e f8 lea -0x8(%esi),%ecx
11e5f2: 89 f0 mov %esi,%eax
11e5f4: 31 d2 xor %edx,%edx
11e5f6: f7 73 10 divl 0x10(%ebx)
11e5f9: 29 d1 sub %edx,%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;
11e5fb: 8b 53 20 mov 0x20(%ebx),%edx
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
11e5fe: 31 c0 xor %eax,%eax
11e600: 39 d1 cmp %edx,%ecx
11e602: 72 08 jb 11e60c <_Heap_Size_of_alloc_area+0x28>
11e604: 31 c0 xor %eax,%eax
11e606: 39 4b 24 cmp %ecx,0x24(%ebx)
11e609: 0f 93 c0 setae %al
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 ) ) {
11e60c: 85 c0 test %eax,%eax
11e60e: 74 2e je 11e63e <_Heap_Size_of_alloc_area+0x5a>
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(
const Heap_Block *block,
uintptr_t offset
)
{
return (Heap_Block *) ((uintptr_t) block + offset);
11e610: 8b 41 04 mov 0x4(%ecx),%eax
11e613: 83 e0 fe and $0xfffffffe,%eax
11e616: 01 c1 add %eax,%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
11e618: 31 c0 xor %eax,%eax
11e61a: 39 d1 cmp %edx,%ecx
11e61c: 72 08 jb 11e626 <_Heap_Size_of_alloc_area+0x42><== NEVER TAKEN
11e61e: 31 c0 xor %eax,%eax
11e620: 39 4b 24 cmp %ecx,0x24(%ebx)
11e623: 0f 93 c0 setae %al
}
block_size = _Heap_Block_size( block );
next_block = _Heap_Block_at( block, block_size );
if (
11e626: 85 c0 test %eax,%eax
11e628: 74 14 je 11e63e <_Heap_Size_of_alloc_area+0x5a><== NEVER TAKEN
11e62a: f6 41 04 01 testb $0x1,0x4(%ecx)
11e62e: 74 0e je 11e63e <_Heap_Size_of_alloc_area+0x5a><== NEVER TAKEN
|| !_Heap_Is_prev_used( next_block )
) {
return false;
}
*alloc_size = (uintptr_t) next_block + HEAP_BLOCK_SIZE_OFFSET - alloc_begin;
11e630: 29 f1 sub %esi,%ecx
11e632: 8d 51 04 lea 0x4(%ecx),%edx
11e635: 8b 45 10 mov 0x10(%ebp),%eax
11e638: 89 10 mov %edx,(%eax)
11e63a: b0 01 mov $0x1,%al
return true;
11e63c: eb 02 jmp 11e640 <_Heap_Size_of_alloc_area+0x5c>
11e63e: 31 c0 xor %eax,%eax
}
11e640: 5b pop %ebx
11e641: 5e pop %esi
11e642: c9 leave
11e643: c3 ret
0010c06d <_Heap_Walk>:
bool _Heap_Walk(
Heap_Control *heap,
int source,
bool dump
)
{
10c06d: 55 push %ebp
10c06e: 89 e5 mov %esp,%ebp
10c070: 57 push %edi
10c071: 56 push %esi
10c072: 53 push %ebx
10c073: 83 ec 4c sub $0x4c,%esp
10c076: 8b 7d 08 mov 0x8(%ebp),%edi
10c079: 8b 75 0c mov 0xc(%ebp),%esi
uintptr_t const page_size = heap->page_size;
10c07c: 8b 4f 10 mov 0x10(%edi),%ecx
uintptr_t const min_block_size = heap->min_block_size;
10c07f: 8b 47 14 mov 0x14(%edi),%eax
10c082: 89 45 dc mov %eax,-0x24(%ebp)
Heap_Block *const last_block = heap->last_block;
10c085: 8b 57 24 mov 0x24(%edi),%edx
10c088: 89 55 d0 mov %edx,-0x30(%ebp)
Heap_Block *block = heap->first_block;
10c08b: 8b 5f 20 mov 0x20(%edi),%ebx
Heap_Walk_printer printer = dump ?
_Heap_Walk_print : _Heap_Walk_print_nothing;
10c08e: c7 45 e4 7f c3 10 00 movl $0x10c37f,-0x1c(%ebp)
10c095: 80 7d 10 00 cmpb $0x0,0x10(%ebp)
10c099: 75 07 jne 10c0a2 <_Heap_Walk+0x35>
10c09b: c7 45 e4 68 c0 10 00 movl $0x10c068,-0x1c(%ebp)
if ( !_System_state_Is_up( _System_state_Get() ) ) {
10c0a2: 83 3d 28 84 12 00 03 cmpl $0x3,0x128428
10c0a9: 0f 85 c6 02 00 00 jne 10c375 <_Heap_Walk+0x308>
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)(
10c0af: 50 push %eax
10c0b0: ff 77 0c pushl 0xc(%edi)
10c0b3: ff 77 08 pushl 0x8(%edi)
10c0b6: ff 75 d0 pushl -0x30(%ebp)
10c0b9: 53 push %ebx
10c0ba: ff 77 1c pushl 0x1c(%edi)
10c0bd: ff 77 18 pushl 0x18(%edi)
10c0c0: ff 75 dc pushl -0x24(%ebp)
10c0c3: 51 push %ecx
10c0c4: 68 f4 12 12 00 push $0x1212f4
10c0c9: 6a 00 push $0x0
10c0cb: 56 push %esi
10c0cc: 89 4d bc mov %ecx,-0x44(%ebp)
10c0cf: 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 ) {
10c0d2: 83 c4 30 add $0x30,%esp
10c0d5: 8b 4d bc mov -0x44(%ebp),%ecx
10c0d8: 85 c9 test %ecx,%ecx
10c0da: 75 0b jne 10c0e7 <_Heap_Walk+0x7a>
(*printer)( source, true, "page size is zero\n" );
10c0dc: 53 push %ebx
10c0dd: 68 85 13 12 00 push $0x121385
10c0e2: e9 5b 02 00 00 jmp 10c342 <_Heap_Walk+0x2d5>
return false;
}
if ( !_Addresses_Is_aligned( (void *) page_size ) ) {
10c0e7: f6 c1 03 test $0x3,%cl
10c0ea: 74 0b je 10c0f7 <_Heap_Walk+0x8a>
(*printer)(
10c0ec: 51 push %ecx
10c0ed: 68 98 13 12 00 push $0x121398
10c0f2: e9 4b 02 00 00 jmp 10c342 <_Heap_Walk+0x2d5>
);
return false;
}
if ( !_Heap_Is_aligned( min_block_size, page_size ) ) {
10c0f7: 8b 45 dc mov -0x24(%ebp),%eax
10c0fa: 31 d2 xor %edx,%edx
10c0fc: f7 f1 div %ecx
10c0fe: 85 d2 test %edx,%edx
10c100: 74 0d je 10c10f <_Heap_Walk+0xa2>
(*printer)(
10c102: ff 75 dc pushl -0x24(%ebp)
10c105: 68 b6 13 12 00 push $0x1213b6
10c10a: e9 33 02 00 00 jmp 10c342 <_Heap_Walk+0x2d5>
);
return false;
}
if (
10c10f: 8d 43 08 lea 0x8(%ebx),%eax
10c112: 31 d2 xor %edx,%edx
10c114: f7 f1 div %ecx
10c116: 85 d2 test %edx,%edx
10c118: 74 0b je 10c125 <_Heap_Walk+0xb8>
!_Heap_Is_aligned( _Heap_Alloc_area_of_block( first_block ), page_size )
) {
(*printer)(
10c11a: 53 push %ebx
10c11b: 68 da 13 12 00 push $0x1213da
10c120: e9 1d 02 00 00 jmp 10c342 <_Heap_Walk+0x2d5>
);
return false;
}
if ( !_Heap_Is_prev_used( first_block ) ) {
10c125: f6 43 04 01 testb $0x1,0x4(%ebx)
10c129: 75 0b jne 10c136 <_Heap_Walk+0xc9>
(*printer)(
10c12b: 51 push %ecx
10c12c: 68 0b 14 12 00 push $0x12140b
10c131: e9 0c 02 00 00 jmp 10c342 <_Heap_Walk+0x2d5>
);
return false;
}
if ( first_block->prev_size != page_size ) {
10c136: 8b 03 mov (%ebx),%eax
10c138: 89 45 d4 mov %eax,-0x2c(%ebp)
10c13b: 39 c8 cmp %ecx,%eax
10c13d: 74 0f je 10c14e <_Heap_Walk+0xe1>
(*printer)(
10c13f: 83 ec 0c sub $0xc,%esp
10c142: 51 push %ecx
10c143: 50 push %eax
10c144: 68 39 14 12 00 push $0x121439
10c149: e9 3d 01 00 00 jmp 10c28b <_Heap_Walk+0x21e>
);
return false;
}
if ( _Heap_Is_free( last_block ) ) {
10c14e: 8b 55 d0 mov -0x30(%ebp),%edx
10c151: 8b 42 04 mov 0x4(%edx),%eax
10c154: 83 e0 fe and $0xfffffffe,%eax
10c157: f6 44 02 04 01 testb $0x1,0x4(%edx,%eax,1)
10c15c: 75 0b jne 10c169 <_Heap_Walk+0xfc>
(*printer)(
10c15e: 52 push %edx
10c15f: 68 64 14 12 00 push $0x121464
10c164: e9 d9 01 00 00 jmp 10c342 <_Heap_Walk+0x2d5>
int source,
Heap_Walk_printer printer,
Heap_Control *heap
)
{
uintptr_t const page_size = heap->page_size;
10c169: 8b 4f 10 mov 0x10(%edi),%ecx
10c16c: 89 4d d8 mov %ecx,-0x28(%ebp)
return &heap->free_list;
}
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap )
{
return _Heap_Free_list_head(heap)->next;
10c16f: 8b 4f 08 mov 0x8(%edi),%ecx
10c172: 89 7d e0 mov %edi,-0x20(%ebp)
10c175: eb 6a jmp 10c1e1 <_Heap_Walk+0x174>
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
10c177: 31 c0 xor %eax,%eax
10c179: 39 4f 20 cmp %ecx,0x20(%edi)
10c17c: 77 08 ja 10c186 <_Heap_Walk+0x119>
10c17e: 31 c0 xor %eax,%eax
10c180: 39 4f 24 cmp %ecx,0x24(%edi)
10c183: 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 ) ) {
10c186: 85 c0 test %eax,%eax
10c188: 75 0b jne 10c195 <_Heap_Walk+0x128>
(*printer)(
10c18a: 51 push %ecx
10c18b: 68 79 14 12 00 push $0x121479
10c190: e9 ad 01 00 00 jmp 10c342 <_Heap_Walk+0x2d5>
);
return false;
}
if (
10c195: 8d 41 08 lea 0x8(%ecx),%eax
10c198: 31 d2 xor %edx,%edx
10c19a: f7 75 d8 divl -0x28(%ebp)
10c19d: 85 d2 test %edx,%edx
10c19f: 74 0b je 10c1ac <_Heap_Walk+0x13f>
!_Heap_Is_aligned( _Heap_Alloc_area_of_block( free_block ), page_size )
) {
(*printer)(
10c1a1: 51 push %ecx
10c1a2: 68 99 14 12 00 push $0x121499
10c1a7: e9 96 01 00 00 jmp 10c342 <_Heap_Walk+0x2d5>
);
return false;
}
if ( _Heap_Is_used( free_block ) ) {
10c1ac: 8b 41 04 mov 0x4(%ecx),%eax
10c1af: 83 e0 fe and $0xfffffffe,%eax
10c1b2: f6 44 01 04 01 testb $0x1,0x4(%ecx,%eax,1)
10c1b7: 74 0b je 10c1c4 <_Heap_Walk+0x157>
(*printer)(
10c1b9: 51 push %ecx
10c1ba: 68 c9 14 12 00 push $0x1214c9
10c1bf: e9 7e 01 00 00 jmp 10c342 <_Heap_Walk+0x2d5>
);
return false;
}
if ( free_block->prev != prev_block ) {
10c1c4: 8b 41 0c mov 0xc(%ecx),%eax
10c1c7: 3b 45 e0 cmp -0x20(%ebp),%eax
10c1ca: 74 0f je 10c1db <_Heap_Walk+0x16e>
(*printer)(
10c1cc: 83 ec 0c sub $0xc,%esp
10c1cf: 50 push %eax
10c1d0: 51 push %ecx
10c1d1: 68 e5 14 12 00 push $0x1214e5
10c1d6: e9 b0 00 00 00 jmp 10c28b <_Heap_Walk+0x21e>
return false;
}
prev_block = free_block;
free_block = free_block->next;
10c1db: 89 4d e0 mov %ecx,-0x20(%ebp)
10c1de: 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 ) {
10c1e1: 39 f9 cmp %edi,%ecx
10c1e3: 75 92 jne 10c177 <_Heap_Walk+0x10a>
10c1e5: 89 75 e0 mov %esi,-0x20(%ebp)
10c1e8: e9 7f 01 00 00 jmp 10c36c <_Heap_Walk+0x2ff>
- 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;
10c1ed: 8b 43 04 mov 0x4(%ebx),%eax
10c1f0: 89 c1 mov %eax,%ecx
10c1f2: 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);
10c1f5: 8d 34 0b lea (%ebx,%ecx,1),%esi
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;
if ( prev_used ) {
10c1f8: a8 01 test $0x1,%al
10c1fa: 74 0c je 10c208 <_Heap_Walk+0x19b>
(*printer)(
10c1fc: 83 ec 0c sub $0xc,%esp
10c1ff: 51 push %ecx
10c200: 53 push %ebx
10c201: 68 17 15 12 00 push $0x121517
10c206: eb 0b jmp 10c213 <_Heap_Walk+0x1a6>
"block 0x%08x: size %u\n",
block,
block_size
);
} else {
(*printer)(
10c208: 50 push %eax
10c209: 50 push %eax
10c20a: ff 33 pushl (%ebx)
10c20c: 51 push %ecx
10c20d: 53 push %ebx
10c20e: 68 2e 15 12 00 push $0x12152e
10c213: 6a 00 push $0x0
10c215: ff 75 e0 pushl -0x20(%ebp)
10c218: 89 4d bc mov %ecx,-0x44(%ebp)
10c21b: ff 55 e4 call *-0x1c(%ebp)
10c21e: 83 c4 20 add $0x20,%esp
10c221: 8b 4d bc mov -0x44(%ebp),%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
10c224: 31 c0 xor %eax,%eax
10c226: 39 77 20 cmp %esi,0x20(%edi)
10c229: 77 08 ja 10c233 <_Heap_Walk+0x1c6> <== NEVER TAKEN
10c22b: 31 c0 xor %eax,%eax
10c22d: 39 77 24 cmp %esi,0x24(%edi)
10c230: 0f 93 c0 setae %al
block_size,
block->prev_size
);
}
if ( !_Heap_Is_block_in_heap( heap, next_block ) ) {
10c233: 85 c0 test %eax,%eax
10c235: 75 11 jne 10c248 <_Heap_Walk+0x1db>
10c237: 89 f1 mov %esi,%ecx
10c239: 8b 75 e0 mov -0x20(%ebp),%esi
(*printer)(
10c23c: 83 ec 0c sub $0xc,%esp
10c23f: 51 push %ecx
10c240: 53 push %ebx
10c241: 68 53 15 12 00 push $0x121553
10c246: eb 43 jmp 10c28b <_Heap_Walk+0x21e>
);
return false;
}
if ( !_Heap_Is_aligned( block_size, page_size ) ) {
10c248: 89 c8 mov %ecx,%eax
10c24a: 31 d2 xor %edx,%edx
10c24c: f7 75 d4 divl -0x2c(%ebp)
10c24f: 85 d2 test %edx,%edx
10c251: 74 0f je 10c262 <_Heap_Walk+0x1f5>
10c253: 8b 75 e0 mov -0x20(%ebp),%esi
(*printer)(
10c256: 83 ec 0c sub $0xc,%esp
10c259: 51 push %ecx
10c25a: 53 push %ebx
10c25b: 68 80 15 12 00 push $0x121580
10c260: eb 29 jmp 10c28b <_Heap_Walk+0x21e>
);
return false;
}
if ( block_size < min_block_size ) {
10c262: 3b 4d dc cmp -0x24(%ebp),%ecx
10c265: 73 11 jae 10c278 <_Heap_Walk+0x20b>
10c267: 8b 75 e0 mov -0x20(%ebp),%esi
(*printer)(
10c26a: 57 push %edi
10c26b: 57 push %edi
10c26c: ff 75 dc pushl -0x24(%ebp)
10c26f: 51 push %ecx
10c270: 53 push %ebx
10c271: 68 ae 15 12 00 push $0x1215ae
10c276: eb 13 jmp 10c28b <_Heap_Walk+0x21e>
);
return false;
}
if ( next_block_begin <= block_begin ) {
10c278: 39 de cmp %ebx,%esi
10c27a: 77 1f ja 10c29b <_Heap_Walk+0x22e>
10c27c: 89 f1 mov %esi,%ecx
10c27e: 8b 75 e0 mov -0x20(%ebp),%esi
(*printer)(
10c281: 83 ec 0c sub $0xc,%esp
10c284: 51 push %ecx
10c285: 53 push %ebx
10c286: 68 d9 15 12 00 push $0x1215d9
10c28b: 6a 01 push $0x1
10c28d: 56 push %esi
10c28e: ff 55 e4 call *-0x1c(%ebp)
10c291: 31 c0 xor %eax,%eax
"block 0x%08x: next block 0x%08x is not a successor\n",
block,
next_block
);
return false;
10c293: 83 c4 20 add $0x20,%esp
10c296: e9 dc 00 00 00 jmp 10c377 <_Heap_Walk+0x30a>
}
if ( !_Heap_Is_prev_used( next_block ) ) {
10c29b: f6 46 04 01 testb $0x1,0x4(%esi)
10c29f: 0f 85 c5 00 00 00 jne 10c36a <_Heap_Walk+0x2fd>
return &heap->free_list;
}
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap )
{
return _Heap_Free_list_head(heap)->next;
10c2a5: 8b 47 08 mov 0x8(%edi),%eax
10c2a8: 89 45 c0 mov %eax,-0x40(%ebp)
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;
10c2ab: 8b 53 04 mov 0x4(%ebx),%edx
10c2ae: 89 55 c4 mov %edx,-0x3c(%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;
10c2b1: 83 e2 fe and $0xfffffffe,%edx
10c2b4: 89 55 cc mov %edx,-0x34(%ebp)
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(
const Heap_Block *block,
uintptr_t offset
)
{
return (Heap_Block *) ((uintptr_t) block + offset);
10c2b7: 01 da add %ebx,%edx
10c2b9: 89 55 c8 mov %edx,-0x38(%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)(
10c2bc: 8b 4b 08 mov 0x8(%ebx),%ecx
10c2bf: 89 4d b4 mov %ecx,-0x4c(%ebp)
return _Heap_Free_list_head(heap)->next;
}
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_last( Heap_Control *heap )
{
return _Heap_Free_list_tail(heap)->prev;
10c2c2: ba 0d 16 12 00 mov $0x12160d,%edx
10c2c7: 3b 4f 0c cmp 0xc(%edi),%ecx
10c2ca: 74 0e je 10c2da <_Heap_Walk+0x26d>
" (= first)"
: (block->prev == free_list_head ? " (= head)" : ""),
block->next,
block->next == last_free_block ?
" (= last)"
: (block->next == free_list_tail ? " (= tail)" : "")
10c2cc: ba 17 16 12 00 mov $0x121617,%edx
10c2d1: 39 f9 cmp %edi,%ecx
10c2d3: 74 05 je 10c2da <_Heap_Walk+0x26d>
10c2d5: ba 41 12 12 00 mov $0x121241,%edx
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)(
10c2da: 8b 43 0c mov 0xc(%ebx),%eax
10c2dd: 89 45 d8 mov %eax,-0x28(%ebp)
10c2e0: b8 21 16 12 00 mov $0x121621,%eax
10c2e5: 8b 4d c0 mov -0x40(%ebp),%ecx
10c2e8: 39 4d d8 cmp %ecx,-0x28(%ebp)
10c2eb: 74 0f je 10c2fc <_Heap_Walk+0x28f>
"block 0x%08x: prev 0x%08x%s, next 0x%08x%s\n",
block,
block->prev,
block->prev == first_free_block ?
" (= first)"
: (block->prev == free_list_head ? " (= head)" : ""),
10c2ed: b8 2c 16 12 00 mov $0x12162c,%eax
10c2f2: 39 7d d8 cmp %edi,-0x28(%ebp)
10c2f5: 74 05 je 10c2fc <_Heap_Walk+0x28f>
10c2f7: b8 41 12 12 00 mov $0x121241,%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)(
10c2fc: 52 push %edx
10c2fd: ff 75 b4 pushl -0x4c(%ebp)
10c300: 50 push %eax
10c301: ff 75 d8 pushl -0x28(%ebp)
10c304: 53 push %ebx
10c305: 68 36 16 12 00 push $0x121636
10c30a: 6a 00 push $0x0
10c30c: ff 75 e0 pushl -0x20(%ebp)
10c30f: ff 55 e4 call *-0x1c(%ebp)
block->next == last_free_block ?
" (= last)"
: (block->next == free_list_tail ? " (= tail)" : "")
);
if ( block_size != next_block->prev_size ) {
10c312: 8b 55 c8 mov -0x38(%ebp),%edx
10c315: 8b 02 mov (%edx),%eax
10c317: 83 c4 20 add $0x20,%esp
10c31a: 39 45 cc cmp %eax,-0x34(%ebp)
10c31d: 74 14 je 10c333 <_Heap_Walk+0x2c6>
10c31f: 8b 75 e0 mov -0x20(%ebp),%esi
(*printer)(
10c322: 51 push %ecx
10c323: 52 push %edx
10c324: 50 push %eax
10c325: ff 75 cc pushl -0x34(%ebp)
10c328: 53 push %ebx
10c329: 68 62 16 12 00 push $0x121662
10c32e: e9 58 ff ff ff jmp 10c28b <_Heap_Walk+0x21e>
);
return false;
}
if ( !prev_used ) {
10c333: f6 45 c4 01 testb $0x1,-0x3c(%ebp)
10c337: 75 16 jne 10c34f <_Heap_Walk+0x2e2>
10c339: 8b 75 e0 mov -0x20(%ebp),%esi
(*printer)(
10c33c: 53 push %ebx
10c33d: 68 9b 16 12 00 push $0x12169b
10c342: 6a 01 push $0x1
10c344: 56 push %esi
10c345: ff 55 e4 call *-0x1c(%ebp)
10c348: 31 c0 xor %eax,%eax
10c34a: 83 c4 10 add $0x10,%esp
10c34d: eb 28 jmp 10c377 <_Heap_Walk+0x30a>
return &heap->free_list;
}
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap )
{
return _Heap_Free_list_head(heap)->next;
10c34f: 8b 47 08 mov 0x8(%edi),%eax
10c352: eb 07 jmp 10c35b <_Heap_Walk+0x2ee>
{
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 ) {
10c354: 39 d8 cmp %ebx,%eax
10c356: 74 12 je 10c36a <_Heap_Walk+0x2fd>
return true;
}
free_block = free_block->next;
10c358: 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 ) {
10c35b: 39 f8 cmp %edi,%eax
10c35d: 75 f5 jne 10c354 <_Heap_Walk+0x2e7>
10c35f: 8b 75 e0 mov -0x20(%ebp),%esi
return false;
}
if ( !_Heap_Walk_is_in_free_list( heap, block ) ) {
(*printer)(
10c362: 53 push %ebx
10c363: 68 ca 16 12 00 push $0x1216ca
10c368: eb d8 jmp 10c342 <_Heap_Walk+0x2d5>
)
{
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 ) {
10c36a: 89 f3 mov %esi,%ebx
if ( !_Heap_Walk_check_control( source, printer, heap ) ) {
return false;
}
while ( block != last_block ) {
10c36c: 3b 5d d0 cmp -0x30(%ebp),%ebx
10c36f: 0f 85 78 fe ff ff jne 10c1ed <_Heap_Walk+0x180>
10c375: b0 01 mov $0x1,%al
block = next_block;
}
return true;
}
10c377: 8d 65 f4 lea -0xc(%ebp),%esp
10c37a: 5b pop %ebx
10c37b: 5e pop %esi
10c37c: 5f pop %edi
10c37d: c9 leave
10c37e: c3 ret
0010b674 <_Internal_error_Occurred>:
void _Internal_error_Occurred(
Internal_errors_Source the_source,
bool is_internal,
Internal_errors_t the_error
)
{
10b674: 55 push %ebp
10b675: 89 e5 mov %esp,%ebp
10b677: 53 push %ebx
10b678: 83 ec 08 sub $0x8,%esp
10b67b: 8b 45 08 mov 0x8(%ebp),%eax
10b67e: 8b 55 0c mov 0xc(%ebp),%edx
10b681: 8b 5d 10 mov 0x10(%ebp),%ebx
_Internal_errors_What_happened.the_source = the_source;
10b684: a3 ac 62 12 00 mov %eax,0x1262ac
_Internal_errors_What_happened.is_internal = is_internal;
10b689: 88 15 b0 62 12 00 mov %dl,0x1262b0
_Internal_errors_What_happened.the_error = the_error;
10b68f: 89 1d b4 62 12 00 mov %ebx,0x1262b4
_User_extensions_Fatal( the_source, is_internal, the_error );
10b695: 53 push %ebx
10b696: 0f b6 d2 movzbl %dl,%edx
10b699: 52 push %edx
10b69a: 50 push %eax
10b69b: e8 27 19 00 00 call 10cfc7 <_User_extensions_Fatal>
RTEMS_INLINE_ROUTINE void _System_state_Set (
System_state_Codes state
)
{
_System_state_Current = state;
10b6a0: c7 05 a0 63 12 00 05 movl $0x5,0x1263a0 <== NOT EXECUTED
10b6a7: 00 00 00
_System_state_Set( SYSTEM_STATE_FAILED );
_CPU_Fatal_halt( the_error );
10b6aa: fa cli <== NOT EXECUTED
10b6ab: 89 d8 mov %ebx,%eax <== NOT EXECUTED
10b6ad: f4 hlt <== NOT EXECUTED
10b6ae: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10b6b1: eb fe jmp 10b6b1 <_Internal_error_Occurred+0x3d><== NOT EXECUTED
00100218 <_Message_queue_Manager_initialization>:
#include <rtems/score/thread.h>
#include <rtems/score/wkspace.h>
#include <rtems/score/interr.h>
void _Message_queue_Manager_initialization(void)
{
100218: 55 push %ebp
100219: 89 e5 mov %esp,%ebp
}
10021b: c9 leave
10021c: c3 ret
0010b70c <_Objects_Allocate>:
*/
Objects_Control *_Objects_Allocate(
Objects_Information *information
)
{
10b70c: 55 push %ebp
10b70d: 89 e5 mov %esp,%ebp
10b70f: 56 push %esi
10b710: 53 push %ebx
10b711: 8b 5d 08 mov 0x8(%ebp),%ebx
* 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 )
10b714: 31 c9 xor %ecx,%ecx
10b716: 83 7b 18 00 cmpl $0x0,0x18(%ebx)
10b71a: 74 53 je 10b76f <_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 );
10b71c: 8d 73 20 lea 0x20(%ebx),%esi
10b71f: 83 ec 0c sub $0xc,%esp
10b722: 56 push %esi
10b723: e8 48 f7 ff ff call 10ae70 <_Chain_Get>
10b728: 89 c1 mov %eax,%ecx
if ( information->auto_extend ) {
10b72a: 83 c4 10 add $0x10,%esp
10b72d: 80 7b 12 00 cmpb $0x0,0x12(%ebx)
10b731: 74 3c je 10b76f <_Objects_Allocate+0x63>
/*
* If the list is empty then we are out of objects and need to
* extend information base.
*/
if ( !the_object ) {
10b733: 85 c0 test %eax,%eax
10b735: 75 1a jne 10b751 <_Objects_Allocate+0x45>
_Objects_Extend_information( information );
10b737: 83 ec 0c sub $0xc,%esp
10b73a: 53 push %ebx
10b73b: e8 60 00 00 00 call 10b7a0 <_Objects_Extend_information>
the_object = (Objects_Control *) _Chain_Get( &information->Inactive );
10b740: 89 34 24 mov %esi,(%esp)
10b743: e8 28 f7 ff ff call 10ae70 <_Chain_Get>
10b748: 89 c1 mov %eax,%ecx
}
if ( the_object ) {
10b74a: 83 c4 10 add $0x10,%esp
10b74d: 85 c0 test %eax,%eax
10b74f: 74 1e je 10b76f <_Objects_Allocate+0x63>
uint32_t block;
block = (uint32_t) _Objects_Get_index( the_object->id ) -
10b751: 0f b7 41 08 movzwl 0x8(%ecx),%eax
10b755: 0f b7 53 08 movzwl 0x8(%ebx),%edx
10b759: 29 d0 sub %edx,%eax
_Objects_Get_index( information->minimum_id );
block /= information->allocation_size;
information->inactive_per_block[ block ]--;
10b75b: 0f b7 73 14 movzwl 0x14(%ebx),%esi
10b75f: 31 d2 xor %edx,%edx
10b761: f7 f6 div %esi
10b763: c1 e0 02 shl $0x2,%eax
10b766: 03 43 30 add 0x30(%ebx),%eax
10b769: ff 08 decl (%eax)
information->inactive--;
10b76b: 66 ff 4b 2c decw 0x2c(%ebx)
}
}
return the_object;
}
10b76f: 89 c8 mov %ecx,%eax
10b771: 8d 65 f8 lea -0x8(%ebp),%esp
10b774: 5b pop %ebx
10b775: 5e pop %esi
10b776: c9 leave
10b777: c3 ret
0010b7a0 <_Objects_Extend_information>:
*/
void _Objects_Extend_information(
Objects_Information *information
)
{
10b7a0: 55 push %ebp
10b7a1: 89 e5 mov %esp,%ebp
10b7a3: 57 push %edi
10b7a4: 56 push %esi
10b7a5: 53 push %ebx
10b7a6: 83 ec 4c sub $0x4c,%esp
10b7a9: 8b 5d 08 mov 0x8(%ebp),%ebx
/*
* Search for a free block of indexes. The block variable ends up set
* to block_count + 1 if the table needs to be extended.
*/
minimum_index = _Objects_Get_index( information->minimum_id );
10b7ac: 0f b7 43 08 movzwl 0x8(%ebx),%eax
10b7b0: 89 45 c8 mov %eax,-0x38(%ebp)
index_base = minimum_index;
block = 0;
/* if ( information->maximum < minimum_index ) */
if ( information->object_blocks == NULL )
10b7b3: 8b 4b 34 mov 0x34(%ebx),%ecx
10b7b6: 85 c9 test %ecx,%ecx
10b7b8: 75 0e jne 10b7c8 <_Objects_Extend_information+0x28>
10b7ba: 89 45 d4 mov %eax,-0x2c(%ebp)
10b7bd: c7 45 cc 00 00 00 00 movl $0x0,-0x34(%ebp)
10b7c4: 31 d2 xor %edx,%edx
10b7c6: eb 31 jmp 10b7f9 <_Objects_Extend_information+0x59>
block_count = 0;
else {
block_count = information->maximum / information->allocation_size;
10b7c8: 0f b7 73 14 movzwl 0x14(%ebx),%esi
10b7cc: 8b 43 10 mov 0x10(%ebx),%eax
10b7cf: 31 d2 xor %edx,%edx
10b7d1: 66 f7 f6 div %si
10b7d4: 0f b7 d0 movzwl %ax,%edx
10b7d7: 8b 7d c8 mov -0x38(%ebp),%edi
10b7da: 89 7d d4 mov %edi,-0x2c(%ebp)
10b7dd: c7 45 cc 00 00 00 00 movl $0x0,-0x34(%ebp)
10b7e4: 31 c0 xor %eax,%eax
for ( ; block < block_count; block++ ) {
10b7e6: eb 0a jmp 10b7f2 <_Objects_Extend_information+0x52>
if ( information->object_blocks[ block ] == NULL )
10b7e8: 83 3c 81 00 cmpl $0x0,(%ecx,%eax,4)
10b7ec: 74 08 je 10b7f6 <_Objects_Extend_information+0x56>
10b7ee: 01 75 d4 add %esi,-0x2c(%ebp)
if ( information->object_blocks == NULL )
block_count = 0;
else {
block_count = information->maximum / information->allocation_size;
for ( ; block < block_count; block++ ) {
10b7f1: 40 inc %eax
10b7f2: 39 d0 cmp %edx,%eax
10b7f4: 72 f2 jb 10b7e8 <_Objects_Extend_information+0x48>
10b7f6: 89 45 cc mov %eax,-0x34(%ebp)
else
index_base += information->allocation_size;
}
}
maximum = (uint32_t) information->maximum + information->allocation_size;
10b7f9: 0f b7 43 14 movzwl 0x14(%ebx),%eax
10b7fd: 0f b7 4b 10 movzwl 0x10(%ebx),%ecx
10b801: 8d 0c 08 lea (%eax,%ecx,1),%ecx
10b804: 89 4d b8 mov %ecx,-0x48(%ebp)
/*
* We need to limit the number of objects to the maximum number
* representable in the index portion of the object Id. In the
* case of 16-bit Ids, this is only 256 object instances.
*/
if ( maximum > OBJECTS_ID_FINAL_INDEX ) {
10b807: 81 f9 ff ff 00 00 cmp $0xffff,%ecx
10b80d: 0f 87 db 01 00 00 ja 10b9ee <_Objects_Extend_information+0x24e><== NEVER TAKEN
/*
* Allocate the name table, and the objects and if it fails either return or
* generate a fatal error depending on auto-extending being active.
*/
block_size = information->allocation_size * information->size;
10b813: 0f af 43 18 imul 0x18(%ebx),%eax
if ( information->auto_extend ) {
10b817: 80 7b 12 00 cmpb $0x0,0x12(%ebx)
10b81b: 74 1e je 10b83b <_Objects_Extend_information+0x9b>
new_object_block = _Workspace_Allocate( block_size );
10b81d: 83 ec 0c sub $0xc,%esp
10b820: 50 push %eax
10b821: 89 55 b4 mov %edx,-0x4c(%ebp)
10b824: e8 cb 1a 00 00 call 10d2f4 <_Workspace_Allocate>
10b829: 89 45 bc mov %eax,-0x44(%ebp)
if ( !new_object_block )
10b82c: 83 c4 10 add $0x10,%esp
10b82f: 85 c0 test %eax,%eax
10b831: 8b 55 b4 mov -0x4c(%ebp),%edx
10b834: 75 1a jne 10b850 <_Objects_Extend_information+0xb0>
10b836: e9 b3 01 00 00 jmp 10b9ee <_Objects_Extend_information+0x24e>
return;
} else {
new_object_block = _Workspace_Allocate_or_fatal_error( block_size );
10b83b: 83 ec 0c sub $0xc,%esp
10b83e: 50 push %eax
10b83f: 89 55 b4 mov %edx,-0x4c(%ebp)
10b842: e8 81 1a 00 00 call 10d2c8 <_Workspace_Allocate_or_fatal_error>
10b847: 89 45 bc mov %eax,-0x44(%ebp)
10b84a: 83 c4 10 add $0x10,%esp
10b84d: 8b 55 b4 mov -0x4c(%ebp),%edx
}
/*
* If the index_base is the maximum we need to grow the tables.
*/
if (index_base >= information->maximum ) {
10b850: 0f b7 43 10 movzwl 0x10(%ebx),%eax
10b854: 39 45 d4 cmp %eax,-0x2c(%ebp)
10b857: 0f 82 14 01 00 00 jb 10b971 <_Objects_Extend_information+0x1d1>
*/
/*
* Up the block count and maximum
*/
block_count++;
10b85d: 8d 72 01 lea 0x1(%edx),%esi
* Allocate the tables and break it up.
*/
block_size = block_count *
(sizeof(void *) + sizeof(uint32_t) + sizeof(Objects_Name *)) +
((maximum + minimum_index) * sizeof(Objects_Control *));
object_blocks = (void**) _Workspace_Allocate( block_size );
10b860: 83 ec 0c sub $0xc,%esp
10b863: 8b 4d b8 mov -0x48(%ebp),%ecx
10b866: 03 4d c8 add -0x38(%ebp),%ecx
10b869: 8d 04 76 lea (%esi,%esi,2),%eax
10b86c: 8d 04 01 lea (%ecx,%eax,1),%eax
10b86f: c1 e0 02 shl $0x2,%eax
10b872: 50 push %eax
10b873: 89 55 b4 mov %edx,-0x4c(%ebp)
10b876: e8 79 1a 00 00 call 10d2f4 <_Workspace_Allocate>
if ( !object_blocks ) {
10b87b: 83 c4 10 add $0x10,%esp
10b87e: 85 c0 test %eax,%eax
10b880: 8b 55 b4 mov -0x4c(%ebp),%edx
10b883: 75 13 jne 10b898 <_Objects_Extend_information+0xf8>
_Workspace_Free( new_object_block );
10b885: 83 ec 0c sub $0xc,%esp
10b888: ff 75 bc pushl -0x44(%ebp)
10b88b: e8 7d 1a 00 00 call 10d30d <_Workspace_Free>
return;
10b890: 83 c4 10 add $0x10,%esp
10b893: e9 56 01 00 00 jmp 10b9ee <_Objects_Extend_information+0x24e>
RTEMS_INLINE_ROUTINE void *_Addresses_Add_offset (
const void *base,
uintptr_t offset
)
{
return (void *)((uintptr_t)base + offset);
10b898: 8d 0c b0 lea (%eax,%esi,4),%ecx
10b89b: 89 4d c0 mov %ecx,-0x40(%ebp)
10b89e: 8d 34 f0 lea (%eax,%esi,8),%esi
10b8a1: 89 75 c4 mov %esi,-0x3c(%ebp)
* Take the block count down. Saves all the (block_count - 1)
* in the copies.
*/
block_count--;
if ( information->maximum > minimum_index ) {
10b8a4: 0f b7 73 10 movzwl 0x10(%ebx),%esi
10b8a8: 31 c9 xor %ecx,%ecx
10b8aa: 3b 75 c8 cmp -0x38(%ebp),%esi
10b8ad: 76 3e jbe 10b8ed <_Objects_Extend_information+0x14d>
/*
* Copy each section of the table over. This has to be performed as
* separate parts as size of each block has changed.
*/
memcpy( object_blocks,
10b8af: 8d 34 95 00 00 00 00 lea 0x0(,%edx,4),%esi
10b8b6: 89 75 d0 mov %esi,-0x30(%ebp)
10b8b9: 8b 73 34 mov 0x34(%ebx),%esi
10b8bc: 89 c7 mov %eax,%edi
10b8be: 8b 4d d0 mov -0x30(%ebp),%ecx
10b8c1: f3 a4 rep movsb %ds:(%esi),%es:(%edi)
information->object_blocks,
block_count * sizeof(void*) );
memcpy( inactive_per_block,
10b8c3: 8b 73 30 mov 0x30(%ebx),%esi
10b8c6: 8b 7d c0 mov -0x40(%ebp),%edi
10b8c9: 8b 4d d0 mov -0x30(%ebp),%ecx
10b8cc: f3 a4 rep movsb %ds:(%esi),%es:(%edi)
information->inactive_per_block,
block_count * sizeof(uint32_t) );
memcpy( local_table,
10b8ce: 0f b7 4b 10 movzwl 0x10(%ebx),%ecx
10b8d2: 03 4d c8 add -0x38(%ebp),%ecx
10b8d5: c1 e1 02 shl $0x2,%ecx
10b8d8: 8b 73 1c mov 0x1c(%ebx),%esi
10b8db: 8b 7d c4 mov -0x3c(%ebp),%edi
10b8de: f3 a4 rep movsb %ds:(%esi),%es:(%edi)
10b8e0: eb 10 jmp 10b8f2 <_Objects_Extend_information+0x152>
/*
* Deal with the special case of the 0 to minimum_index
*/
for ( index = 0; index < minimum_index; index++ ) {
local_table[ index ] = NULL;
10b8e2: 8b 7d c4 mov -0x3c(%ebp),%edi
10b8e5: c7 04 8f 00 00 00 00 movl $0x0,(%edi,%ecx,4)
} else {
/*
* Deal with the special case of the 0 to minimum_index
*/
for ( index = 0; index < minimum_index; index++ ) {
10b8ec: 41 inc %ecx
10b8ed: 3b 4d c8 cmp -0x38(%ebp),%ecx
10b8f0: 72 f0 jb 10b8e2 <_Objects_Extend_information+0x142>
}
/*
* Initialise the new entries in the table.
*/
object_blocks[block_count] = NULL;
10b8f2: c7 04 90 00 00 00 00 movl $0x0,(%eax,%edx,4)
inactive_per_block[block_count] = 0;
10b8f9: 8b 4d c0 mov -0x40(%ebp),%ecx
10b8fc: c7 04 91 00 00 00 00 movl $0x0,(%ecx,%edx,4)
for ( index=index_base ;
index < ( information->allocation_size + index_base );
10b903: 0f b7 53 14 movzwl 0x14(%ebx),%edx
10b907: 8b 75 d4 mov -0x2c(%ebp),%esi
10b90a: 01 d6 add %edx,%esi
10b90c: 8b 7d d4 mov -0x2c(%ebp),%edi
10b90f: 8b 55 c4 mov -0x3c(%ebp),%edx
10b912: 8d 0c ba lea (%edx,%edi,4),%ecx
10b915: 89 fa mov %edi,%edx
* Initialise the new entries in the table.
*/
object_blocks[block_count] = NULL;
inactive_per_block[block_count] = 0;
for ( index=index_base ;
10b917: eb 0a jmp 10b923 <_Objects_Extend_information+0x183>
index < ( information->allocation_size + index_base );
index++ ) {
local_table[ index ] = NULL;
10b919: c7 01 00 00 00 00 movl $0x0,(%ecx)
object_blocks[block_count] = NULL;
inactive_per_block[block_count] = 0;
for ( index=index_base ;
index < ( information->allocation_size + index_base );
index++ ) {
10b91f: 42 inc %edx
10b920: 83 c1 04 add $0x4,%ecx
* Initialise the new entries in the table.
*/
object_blocks[block_count] = NULL;
inactive_per_block[block_count] = 0;
for ( index=index_base ;
10b923: 39 f2 cmp %esi,%edx
10b925: 72 f2 jb 10b919 <_Objects_Extend_information+0x179>
index < ( information->allocation_size + index_base );
index++ ) {
local_table[ index ] = NULL;
}
_ISR_Disable( level );
10b927: 9c pushf
10b928: fa cli
10b929: 5e pop %esi
old_tables = information->object_blocks;
10b92a: 8b 53 34 mov 0x34(%ebx),%edx
information->object_blocks = object_blocks;
10b92d: 89 43 34 mov %eax,0x34(%ebx)
information->inactive_per_block = inactive_per_block;
10b930: 8b 4d c0 mov -0x40(%ebp),%ecx
10b933: 89 4b 30 mov %ecx,0x30(%ebx)
information->local_table = local_table;
10b936: 8b 7d c4 mov -0x3c(%ebp),%edi
10b939: 89 7b 1c mov %edi,0x1c(%ebx)
information->maximum = (Objects_Maximum) maximum;
10b93c: 8b 45 b8 mov -0x48(%ebp),%eax
10b93f: 66 89 43 10 mov %ax,0x10(%ebx)
information->maximum_id = _Objects_Build_id(
10b943: 8b 03 mov (%ebx),%eax
10b945: c1 e0 18 shl $0x18,%eax
10b948: 0d 00 00 01 00 or $0x10000,%eax
10b94d: 0f b7 4b 04 movzwl 0x4(%ebx),%ecx
10b951: c1 e1 1b shl $0x1b,%ecx
10b954: 09 c8 or %ecx,%eax
10b956: 0f b7 4d b8 movzwl -0x48(%ebp),%ecx
10b95a: 09 c8 or %ecx,%eax
10b95c: 89 43 0c mov %eax,0xc(%ebx)
information->the_class,
_Objects_Local_node,
information->maximum
);
_ISR_Enable( level );
10b95f: 56 push %esi
10b960: 9d popf
if ( old_tables )
10b961: 85 d2 test %edx,%edx
10b963: 74 0c je 10b971 <_Objects_Extend_information+0x1d1>
_Workspace_Free( old_tables );
10b965: 83 ec 0c sub $0xc,%esp
10b968: 52 push %edx
10b969: e8 9f 19 00 00 call 10d30d <_Workspace_Free>
10b96e: 83 c4 10 add $0x10,%esp
}
/*
* Assign the new object block to the object block table.
*/
information->object_blocks[ block ] = new_object_block;
10b971: 8b 55 cc mov -0x34(%ebp),%edx
10b974: c1 e2 02 shl $0x2,%edx
10b977: 89 55 d0 mov %edx,-0x30(%ebp)
10b97a: 8b 43 34 mov 0x34(%ebx),%eax
10b97d: 8b 75 bc mov -0x44(%ebp),%esi
10b980: 8b 4d cc mov -0x34(%ebp),%ecx
10b983: 89 34 88 mov %esi,(%eax,%ecx,4)
/*
* Initialize objects .. add to a local chain first.
*/
_Chain_Initialize(
10b986: ff 73 18 pushl 0x18(%ebx)
10b989: 0f b7 53 14 movzwl 0x14(%ebx),%edx
10b98d: 52 push %edx
10b98e: ff 34 88 pushl (%eax,%ecx,4)
10b991: 8d 45 dc lea -0x24(%ebp),%eax
10b994: 50 push %eax
10b995: 89 45 b4 mov %eax,-0x4c(%ebp)
10b998: e8 6f 45 00 00 call 10ff0c <_Chain_Initialize>
information->the_class,
_Objects_Local_node,
index
);
_Chain_Append( &information->Inactive, &the_object->Node );
10b99d: 8d 7b 20 lea 0x20(%ebx),%edi
10b9a0: 8b 75 d4 mov -0x2c(%ebp),%esi
10b9a3: eb 23 jmp 10b9c8 <_Objects_Extend_information+0x228>
*/
index = index_base;
while ((the_object = (Objects_Control *) _Chain_Get( &Inactive )) != NULL ) {
the_object->id = _Objects_Build_id(
10b9a5: 8b 13 mov (%ebx),%edx
10b9a7: c1 e2 18 shl $0x18,%edx
10b9aa: 81 ca 00 00 01 00 or $0x10000,%edx
10b9b0: 0f b7 4b 04 movzwl 0x4(%ebx),%ecx
10b9b4: c1 e1 1b shl $0x1b,%ecx
10b9b7: 09 ca or %ecx,%edx
10b9b9: 09 f2 or %esi,%edx
10b9bb: 89 50 08 mov %edx,0x8(%eax)
information->the_class,
_Objects_Local_node,
index
);
_Chain_Append( &information->Inactive, &the_object->Node );
10b9be: 52 push %edx
10b9bf: 52 push %edx
10b9c0: 50 push %eax
10b9c1: 57 push %edi
10b9c2: e8 6d f4 ff ff call 10ae34 <_Chain_Append>
index++;
10b9c7: 46 inc %esi
/*
* Move from the local chain, initialise, then append to the inactive chain
*/
index = index_base;
while ((the_object = (Objects_Control *) _Chain_Get( &Inactive )) != NULL ) {
10b9c8: 8d 45 dc lea -0x24(%ebp),%eax
10b9cb: 89 04 24 mov %eax,(%esp)
10b9ce: e8 9d f4 ff ff call 10ae70 <_Chain_Get>
10b9d3: 83 c4 10 add $0x10,%esp
10b9d6: 85 c0 test %eax,%eax
10b9d8: 75 cb jne 10b9a5 <_Objects_Extend_information+0x205>
_Chain_Append( &information->Inactive, &the_object->Node );
index++;
}
information->inactive_per_block[ block ] = information->allocation_size;
10b9da: 8b 43 30 mov 0x30(%ebx),%eax
10b9dd: 0f b7 53 14 movzwl 0x14(%ebx),%edx
10b9e1: 8b 4d d0 mov -0x30(%ebp),%ecx
10b9e4: 89 14 08 mov %edx,(%eax,%ecx,1)
information->inactive =
10b9e7: 8b 43 14 mov 0x14(%ebx),%eax
10b9ea: 66 01 43 2c add %ax,0x2c(%ebx)
(Objects_Maximum)(information->inactive + information->allocation_size);
}
10b9ee: 8d 65 f4 lea -0xc(%ebp),%esp
10b9f1: 5b pop %ebx
10b9f2: 5e pop %esi
10b9f3: 5f pop %edi
10b9f4: c9 leave
10b9f5: c3 ret
0010ba88 <_Objects_Get_information>:
Objects_Information *_Objects_Get_information(
Objects_APIs the_api,
uint32_t the_class
)
{
10ba88: 55 push %ebp
10ba89: 89 e5 mov %esp,%ebp
10ba8b: 56 push %esi
10ba8c: 53 push %ebx
10ba8d: 8b 75 08 mov 0x8(%ebp),%esi
10ba90: 8b 5d 0c mov 0xc(%ebp),%ebx
Objects_Information *info;
int the_class_api_maximum;
if ( !the_class )
10ba93: 85 db test %ebx,%ebx
10ba95: 74 2d je 10bac4 <_Objects_Get_information+0x3c>
/*
* 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 );
10ba97: 83 ec 0c sub $0xc,%esp
10ba9a: 56 push %esi
10ba9b: e8 18 4a 00 00 call 1104b8 <_Objects_API_maximum_class>
if ( the_class_api_maximum == 0 )
10baa0: 83 c4 10 add $0x10,%esp
10baa3: 85 c0 test %eax,%eax
10baa5: 74 1d je 10bac4 <_Objects_Get_information+0x3c>
return NULL;
if ( the_class > (uint32_t) the_class_api_maximum )
10baa7: 39 c3 cmp %eax,%ebx
10baa9: 77 19 ja 10bac4 <_Objects_Get_information+0x3c>
return NULL;
if ( !_Objects_Information_table[ the_api ] )
10baab: 8b 04 b5 dc 61 12 00 mov 0x1261dc(,%esi,4),%eax
10bab2: 85 c0 test %eax,%eax
10bab4: 74 0e je 10bac4 <_Objects_Get_information+0x3c><== NEVER TAKEN
return NULL;
info = _Objects_Information_table[ the_api ][ the_class ];
10bab6: 8b 04 98 mov (%eax,%ebx,4),%eax
if ( !info )
10bab9: 85 c0 test %eax,%eax
10babb: 74 09 je 10bac6 <_Objects_Get_information+0x3e><== NEVER TAKEN
* In a multprocessing configuration, we may access remote objects.
* Thus we may have 0 local instances and still have a valid object
* pointer.
*/
#if !defined(RTEMS_MULTIPROCESSING)
if ( info->maximum == 0 )
10babd: 66 83 78 10 00 cmpw $0x0,0x10(%eax)
10bac2: 75 02 jne 10bac6 <_Objects_Get_information+0x3e>
10bac4: 31 c0 xor %eax,%eax
return NULL;
#endif
return info;
}
10bac6: 8d 65 f8 lea -0x8(%ebp),%esp
10bac9: 5b pop %ebx
10baca: 5e pop %esi
10bacb: c9 leave
10bacc: c3 ret
00118ff8 <_Objects_Get_no_protection>:
Objects_Control *_Objects_Get_no_protection(
Objects_Information *information,
Objects_Id id,
Objects_Locations *location
)
{
118ff8: 55 push %ebp
118ff9: 89 e5 mov %esp,%ebp
118ffb: 53 push %ebx
118ffc: 8b 55 08 mov 0x8(%ebp),%edx
118fff: 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;
119002: b8 01 00 00 00 mov $0x1,%eax
119007: 2b 42 08 sub 0x8(%edx),%eax
11900a: 03 45 0c add 0xc(%ebp),%eax
if ( information->maximum >= index ) {
11900d: 0f b7 5a 10 movzwl 0x10(%edx),%ebx
119011: 39 c3 cmp %eax,%ebx
119013: 72 12 jb 119027 <_Objects_Get_no_protection+0x2f>
if ( (the_object = information->local_table[ index ]) != NULL ) {
119015: 8b 52 1c mov 0x1c(%edx),%edx
119018: 8b 04 82 mov (%edx,%eax,4),%eax
11901b: 85 c0 test %eax,%eax
11901d: 74 08 je 119027 <_Objects_Get_no_protection+0x2f><== NEVER TAKEN
*location = OBJECTS_LOCAL;
11901f: c7 01 00 00 00 00 movl $0x0,(%ecx)
return the_object;
119025: eb 08 jmp 11902f <_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;
119027: c7 01 01 00 00 00 movl $0x1,(%ecx)
11902d: 31 c0 xor %eax,%eax
return NULL;
}
11902f: 5b pop %ebx
119030: c9 leave
119031: c3 ret
0010f120 <_Objects_Id_to_name>:
*/
Objects_Name_or_id_lookup_errors _Objects_Id_to_name (
Objects_Id id,
Objects_Name *name
)
{
10f120: 55 push %ebp
10f121: 89 e5 mov %esp,%ebp
10f123: 83 ec 18 sub $0x18,%esp
/*
* Caller is trusted for name != NULL.
*/
tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id;
10f126: 8b 45 08 mov 0x8(%ebp),%eax
10f129: 85 c0 test %eax,%eax
10f12b: 75 08 jne 10f135 <_Objects_Id_to_name+0x15>
10f12d: a1 a8 1b 13 00 mov 0x131ba8,%eax
10f132: 8b 40 08 mov 0x8(%eax),%eax
*/
RTEMS_INLINE_ROUTINE Objects_APIs _Objects_Get_API(
Objects_Id id
)
{
return (Objects_APIs) ((id >> OBJECTS_API_START_BIT) & OBJECTS_API_VALID_BITS);
10f135: 89 c2 mov %eax,%edx
10f137: c1 ea 18 shr $0x18,%edx
10f13a: 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 )
10f13d: 8d 4a ff lea -0x1(%edx),%ecx
10f140: 83 f9 03 cmp $0x3,%ecx
10f143: 77 38 ja 10f17d <_Objects_Id_to_name+0x5d>
10f145: eb 3d jmp 10f184 <_Objects_Id_to_name+0x64>
if ( !_Objects_Information_table[ the_api ] )
return OBJECTS_INVALID_ID;
the_class = _Objects_Get_class( tmpId );
information = _Objects_Information_table[ the_api ][ the_class ];
10f147: 89 c1 mov %eax,%ecx
10f149: c1 e9 1b shr $0x1b,%ecx
10f14c: 8b 14 8a mov (%edx,%ecx,4),%edx
if ( !information )
10f14f: 85 d2 test %edx,%edx
10f151: 74 2a je 10f17d <_Objects_Id_to_name+0x5d><== NEVER TAKEN
return OBJECTS_INVALID_ID;
#if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES)
if ( information->is_string )
10f153: 80 7a 38 00 cmpb $0x0,0x38(%edx)
10f157: 75 24 jne 10f17d <_Objects_Id_to_name+0x5d><== NEVER TAKEN
return OBJECTS_INVALID_ID;
#endif
the_object = _Objects_Get( information, tmpId, &ignored_location );
10f159: 51 push %ecx
10f15a: 8d 4d f4 lea -0xc(%ebp),%ecx
10f15d: 51 push %ecx
10f15e: 50 push %eax
10f15f: 52 push %edx
10f160: e8 63 ff ff ff call 10f0c8 <_Objects_Get>
if ( !the_object )
10f165: 83 c4 10 add $0x10,%esp
10f168: 85 c0 test %eax,%eax
10f16a: 74 11 je 10f17d <_Objects_Id_to_name+0x5d>
return OBJECTS_INVALID_ID;
*name = the_object->name;
10f16c: 8b 50 0c mov 0xc(%eax),%edx
10f16f: 8b 45 0c mov 0xc(%ebp),%eax
10f172: 89 10 mov %edx,(%eax)
_Thread_Enable_dispatch();
10f174: e8 b4 07 00 00 call 10f92d <_Thread_Enable_dispatch>
10f179: 31 c0 xor %eax,%eax
return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL;
10f17b: eb 05 jmp 10f182 <_Objects_Id_to_name+0x62>
10f17d: b8 03 00 00 00 mov $0x3,%eax
}
10f182: c9 leave
10f183: 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 ] )
10f184: 8b 14 95 c0 1a 13 00 mov 0x131ac0(,%edx,4),%edx
10f18b: 85 d2 test %edx,%edx
10f18d: 75 b8 jne 10f147 <_Objects_Id_to_name+0x27>
10f18f: eb ec jmp 10f17d <_Objects_Id_to_name+0x5d>
0010c2e0 <_Objects_Set_name>:
bool _Objects_Set_name(
Objects_Information *information,
Objects_Control *the_object,
const char *name
)
{
10c2e0: 55 push %ebp
10c2e1: 89 e5 mov %esp,%ebp
10c2e3: 57 push %edi
10c2e4: 56 push %esi
10c2e5: 53 push %ebx
10c2e6: 83 ec 34 sub $0x34,%esp
10c2e9: 8b 55 08 mov 0x8(%ebp),%edx
10c2ec: 8b 7d 0c mov 0xc(%ebp),%edi
10c2ef: 8b 5d 10 mov 0x10(%ebp),%ebx
size_t length;
const char *s;
s = name;
length = strnlen( name, information->name_length );
10c2f2: 0f b7 42 3a movzwl 0x3a(%edx),%eax
10c2f6: 50 push %eax
10c2f7: 53 push %ebx
10c2f8: 89 55 d4 mov %edx,-0x2c(%ebp)
10c2fb: e8 c4 83 00 00 call 1146c4 <strnlen>
10c300: 89 c6 mov %eax,%esi
#if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES)
if ( information->is_string ) {
10c302: 83 c4 10 add $0x10,%esp
10c305: 8b 55 d4 mov -0x2c(%ebp),%edx
10c308: 80 7a 38 00 cmpb $0x0,0x38(%edx)
10c30c: 74 54 je 10c362 <_Objects_Set_name+0x82>
char *d;
d = _Workspace_Allocate( length + 1 );
10c30e: 83 ec 0c sub $0xc,%esp
10c311: 8d 40 01 lea 0x1(%eax),%eax
10c314: 50 push %eax
10c315: e8 8e 16 00 00 call 10d9a8 <_Workspace_Allocate>
10c31a: 89 c2 mov %eax,%edx
if ( !d )
10c31c: 83 c4 10 add $0x10,%esp
10c31f: 31 c0 xor %eax,%eax
10c321: 85 d2 test %edx,%edx
10c323: 74 79 je 10c39e <_Objects_Set_name+0xbe><== NEVER TAKEN
return false;
if ( the_object->name.name_p ) {
10c325: 8b 47 0c mov 0xc(%edi),%eax
10c328: 85 c0 test %eax,%eax
10c32a: 74 19 je 10c345 <_Objects_Set_name+0x65>
_Workspace_Free( (void *)the_object->name.name_p );
10c32c: 83 ec 0c sub $0xc,%esp
10c32f: 50 push %eax
10c330: 89 55 d4 mov %edx,-0x2c(%ebp)
10c333: e8 89 16 00 00 call 10d9c1 <_Workspace_Free>
the_object->name.name_p = NULL;
10c338: c7 47 0c 00 00 00 00 movl $0x0,0xc(%edi)
10c33f: 83 c4 10 add $0x10,%esp
10c342: 8b 55 d4 mov -0x2c(%ebp),%edx
}
strncpy( d, name, length );
10c345: 50 push %eax
10c346: 56 push %esi
10c347: 53 push %ebx
10c348: 52 push %edx
10c349: 89 55 d4 mov %edx,-0x2c(%ebp)
10c34c: e8 f7 82 00 00 call 114648 <strncpy>
d[length] = '\0';
10c351: 8b 55 d4 mov -0x2c(%ebp),%edx
10c354: c6 04 32 00 movb $0x0,(%edx,%esi,1)
the_object->name.name_p = d;
10c358: 89 57 0c mov %edx,0xc(%edi)
10c35b: b0 01 mov $0x1,%al
10c35d: 83 c4 10 add $0x10,%esp
10c360: eb 3c jmp 10c39e <_Objects_Set_name+0xbe>
} else
#endif
{
the_object->name.name_u32 = _Objects_Build_name(
10c362: 8a 03 mov (%ebx),%al
10c364: 88 45 d8 mov %al,-0x28(%ebp)
10c367: 83 fe 01 cmp $0x1,%esi
10c36a: 76 3a jbe 10c3a6 <_Objects_Set_name+0xc6>
10c36c: 0f be 53 01 movsbl 0x1(%ebx),%edx
10c370: c1 e2 10 shl $0x10,%edx
10c373: 83 fe 02 cmp $0x2,%esi
10c376: 76 33 jbe 10c3ab <_Objects_Set_name+0xcb>
10c378: 0f be 43 02 movsbl 0x2(%ebx),%eax
10c37c: c1 e0 08 shl $0x8,%eax
10c37f: b9 20 00 00 00 mov $0x20,%ecx
10c384: 83 fe 03 cmp $0x3,%esi
10c387: 76 04 jbe 10c38d <_Objects_Set_name+0xad>
10c389: 0f be 4b 03 movsbl 0x3(%ebx),%ecx
10c38d: 8a 5d d8 mov -0x28(%ebp),%bl
10c390: c1 e3 18 shl $0x18,%ebx
10c393: 09 d3 or %edx,%ebx
10c395: 09 c3 or %eax,%ebx
10c397: 09 cb or %ecx,%ebx
10c399: 89 5f 0c mov %ebx,0xc(%edi)
10c39c: b0 01 mov $0x1,%al
);
}
return true;
}
10c39e: 8d 65 f4 lea -0xc(%ebp),%esp
10c3a1: 5b pop %ebx
10c3a2: 5e pop %esi
10c3a3: 5f pop %edi
10c3a4: c9 leave
10c3a5: c3 ret
d[length] = '\0';
the_object->name.name_p = d;
} else
#endif
{
the_object->name.name_u32 = _Objects_Build_name(
10c3a6: ba 00 00 20 00 mov $0x200000,%edx
10c3ab: b8 00 20 00 00 mov $0x2000,%eax
10c3b0: b9 20 00 00 00 mov $0x20,%ecx
10c3b5: eb d6 jmp 10c38d <_Objects_Set_name+0xad>
0010b1e4 <_POSIX_Condition_variables_Wait_support>:
pthread_cond_t *cond,
pthread_mutex_t *mutex,
Watchdog_Interval timeout,
bool already_timedout
)
{
10b1e4: 55 push %ebp
10b1e5: 89 e5 mov %esp,%ebp
10b1e7: 57 push %edi
10b1e8: 56 push %esi
10b1e9: 53 push %ebx
10b1ea: 83 ec 34 sub $0x34,%esp
10b1ed: 8b 7d 08 mov 0x8(%ebp),%edi
10b1f0: 8b 75 0c mov 0xc(%ebp),%esi
10b1f3: 8a 45 14 mov 0x14(%ebp),%al
10b1f6: 88 45 d7 mov %al,-0x29(%ebp)
register POSIX_Condition_variables_Control *the_cond;
Objects_Locations location;
int status;
int mutex_status;
if ( !_POSIX_Mutex_Get( mutex, &location ) ) {
10b1f9: 8d 5d e4 lea -0x1c(%ebp),%ebx
10b1fc: 53 push %ebx
10b1fd: 56 push %esi
10b1fe: e8 82 01 00 00 call 10b385 <_POSIX_Mutex_Get>
10b203: 83 c4 10 add $0x10,%esp
10b206: 85 c0 test %eax,%eax
10b208: 0f 84 ae 00 00 00 je 10b2bc <_POSIX_Condition_variables_Wait_support+0xd8>
*/
RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void )
{
RTEMS_COMPILER_MEMORY_BARRIER();
_Thread_Dispatch_disable_level -= 1;
10b20e: a1 08 82 12 00 mov 0x128208,%eax
10b213: 48 dec %eax
10b214: a3 08 82 12 00 mov %eax,0x128208
return EINVAL;
}
_Thread_Unnest_dispatch();
the_cond = _POSIX_Condition_variables_Get( cond, &location );
10b219: 52 push %edx
10b21a: 52 push %edx
10b21b: 53 push %ebx
10b21c: 57 push %edi
10b21d: e8 16 fe ff ff call 10b038 <_POSIX_Condition_variables_Get>
10b222: 89 c3 mov %eax,%ebx
switch ( location ) {
10b224: 83 c4 10 add $0x10,%esp
10b227: 83 7d e4 00 cmpl $0x0,-0x1c(%ebp)
10b22b: 0f 85 8b 00 00 00 jne 10b2bc <_POSIX_Condition_variables_Wait_support+0xd8>
case OBJECTS_LOCAL:
if ( the_cond->Mutex && ( the_cond->Mutex != *mutex ) ) {
10b231: 8b 40 14 mov 0x14(%eax),%eax
10b234: 85 c0 test %eax,%eax
10b236: 74 0b je 10b243 <_POSIX_Condition_variables_Wait_support+0x5f>
10b238: 3b 06 cmp (%esi),%eax
10b23a: 74 07 je 10b243 <_POSIX_Condition_variables_Wait_support+0x5f>
_Thread_Enable_dispatch();
10b23c: e8 b4 2d 00 00 call 10dff5 <_Thread_Enable_dispatch>
10b241: eb 79 jmp 10b2bc <_POSIX_Condition_variables_Wait_support+0xd8>
return EINVAL;
}
(void) pthread_mutex_unlock( mutex );
10b243: 83 ec 0c sub $0xc,%esp
10b246: 56 push %esi
10b247: e8 20 03 00 00 call 10b56c <pthread_mutex_unlock>
_Thread_Enable_dispatch();
return EINVAL;
}
*/
if ( !already_timedout ) {
10b24c: 83 c4 10 add $0x10,%esp
10b24f: 80 7d d7 00 cmpb $0x0,-0x29(%ebp)
10b253: 75 4d jne 10b2a2 <_POSIX_Condition_variables_Wait_support+0xbe>
the_cond->Mutex = *mutex;
10b255: 8b 06 mov (%esi),%eax
10b257: 89 43 14 mov %eax,0x14(%ebx)
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;
10b25a: c7 43 48 01 00 00 00 movl $0x1,0x48(%ebx)
_Thread_queue_Enter_critical_section( &the_cond->Wait_queue );
_Thread_Executing->Wait.return_code = 0;
10b261: a1 c4 82 12 00 mov 0x1282c4,%eax
10b266: c7 40 34 00 00 00 00 movl $0x0,0x34(%eax)
_Thread_Executing->Wait.queue = &the_cond->Wait_queue;
10b26d: 83 c3 18 add $0x18,%ebx
10b270: 89 58 44 mov %ebx,0x44(%eax)
_Thread_Executing->Wait.id = *cond;
10b273: 8b 17 mov (%edi),%edx
10b275: 89 50 20 mov %edx,0x20(%eax)
_Thread_queue_Enqueue( &the_cond->Wait_queue, timeout );
10b278: 50 push %eax
10b279: 68 a4 e7 10 00 push $0x10e7a4
10b27e: ff 75 10 pushl 0x10(%ebp)
10b281: 53 push %ebx
10b282: e8 25 32 00 00 call 10e4ac <_Thread_queue_Enqueue_with_handler>
_Thread_Enable_dispatch();
10b287: e8 69 2d 00 00 call 10dff5 <_Thread_Enable_dispatch>
/*
* Switch ourself out because we blocked as a result of the
* _Thread_queue_Enqueue.
*/
status = _Thread_Executing->Wait.return_code;
10b28c: a1 c4 82 12 00 mov 0x1282c4,%eax
10b291: 8b 58 34 mov 0x34(%eax),%ebx
if ( status && status != ETIMEDOUT )
10b294: 83 c4 10 add $0x10,%esp
10b297: 83 fb 74 cmp $0x74,%ebx
10b29a: 74 10 je 10b2ac <_POSIX_Condition_variables_Wait_support+0xc8>
10b29c: 85 db test %ebx,%ebx
10b29e: 74 0c je 10b2ac <_POSIX_Condition_variables_Wait_support+0xc8><== ALWAYS TAKEN
10b2a0: eb 1f jmp 10b2c1 <_POSIX_Condition_variables_Wait_support+0xdd><== NOT EXECUTED
return status;
} else {
_Thread_Enable_dispatch();
10b2a2: e8 4e 2d 00 00 call 10dff5 <_Thread_Enable_dispatch>
10b2a7: bb 74 00 00 00 mov $0x74,%ebx
/*
* When we get here the dispatch disable level is 0.
*/
mutex_status = pthread_mutex_lock( mutex );
10b2ac: 83 ec 0c sub $0xc,%esp
10b2af: 56 push %esi
10b2b0: e8 37 02 00 00 call 10b4ec <pthread_mutex_lock>
if ( mutex_status )
10b2b5: 83 c4 10 add $0x10,%esp
10b2b8: 85 c0 test %eax,%eax
10b2ba: 74 05 je 10b2c1 <_POSIX_Condition_variables_Wait_support+0xdd>
10b2bc: bb 16 00 00 00 mov $0x16,%ebx
case OBJECTS_ERROR:
break;
}
return EINVAL;
}
10b2c1: 89 d8 mov %ebx,%eax
10b2c3: 8d 65 f4 lea -0xc(%ebp),%esp
10b2c6: 5b pop %ebx
10b2c7: 5e pop %esi
10b2c8: 5f pop %edi
10b2c9: c9 leave
10b2ca: c3 ret
00111ec4 <_POSIX_Keys_Run_destructors>:
*/
void _POSIX_Keys_Run_destructors(
Thread_Control *thread
)
{
111ec4: 55 push %ebp
111ec5: 89 e5 mov %esp,%ebp
111ec7: 57 push %edi
111ec8: 56 push %esi
111ec9: 53 push %ebx
111eca: 83 ec 1c sub $0x1c,%esp
Objects_Maximum thread_index = _Objects_Get_index( thread->Object.id );
111ecd: 8b 45 08 mov 0x8(%ebp),%eax
111ed0: 8b 50 08 mov 0x8(%eax),%edx
*/
RTEMS_INLINE_ROUTINE Objects_APIs _Objects_Get_API(
Objects_Id id
)
{
return (Objects_APIs) ((id >> OBJECTS_API_START_BIT) & OBJECTS_API_VALID_BITS);
111ed3: 89 d0 mov %edx,%eax
111ed5: c1 e8 18 shr $0x18,%eax
111ed8: 83 e0 07 and $0x7,%eax
for ( index = 1 ; index <= max ; ++index ) {
POSIX_Keys_Control *key = (POSIX_Keys_Control *)
_POSIX_Keys_Information.local_table [ index ];
if ( key != NULL && key->destructor != NULL ) {
void *value = key->Values [ thread_api ][ thread_index ];
111edb: 0f b7 d2 movzwl %dx,%edx
111ede: c1 e2 02 shl $0x2,%edx
111ee1: 89 55 e4 mov %edx,-0x1c(%ebp)
111ee4: 83 c0 04 add $0x4,%eax
111ee7: 89 45 e0 mov %eax,-0x20(%ebp)
*
* Reference: 17.1.1.2 P1003.1c/Draft 10, p. 163, line 99.
*/
while ( !done ) {
Objects_Maximum index = 0;
Objects_Maximum max = _POSIX_Keys_Information.maximum;
111eea: 8b 3d 58 66 12 00 mov 0x126658,%edi
111ef0: bb 01 00 00 00 mov $0x1,%ebx
111ef5: b2 01 mov $0x1,%dl
done = true;
for ( index = 1 ; index <= max ; ++index ) {
111ef7: eb 38 jmp 111f31 <_POSIX_Keys_Run_destructors+0x6d>
POSIX_Keys_Control *key = (POSIX_Keys_Control *)
_POSIX_Keys_Information.local_table [ index ];
111ef9: 0f b7 cb movzwl %bx,%ecx
111efc: a1 64 66 12 00 mov 0x126664,%eax
111f01: 8b 04 88 mov (%eax,%ecx,4),%eax
if ( key != NULL && key->destructor != NULL ) {
111f04: 85 c0 test %eax,%eax
111f06: 74 28 je 111f30 <_POSIX_Keys_Run_destructors+0x6c>
111f08: 83 78 10 00 cmpl $0x0,0x10(%eax)
111f0c: 74 22 je 111f30 <_POSIX_Keys_Run_destructors+0x6c>
void *value = key->Values [ thread_api ][ thread_index ];
111f0e: 8b 75 e4 mov -0x1c(%ebp),%esi
111f11: 8b 4d e0 mov -0x20(%ebp),%ecx
111f14: 03 74 88 04 add 0x4(%eax,%ecx,4),%esi
111f18: 8b 0e mov (%esi),%ecx
if ( value != NULL ) {
111f1a: 85 c9 test %ecx,%ecx
111f1c: 74 12 je 111f30 <_POSIX_Keys_Run_destructors+0x6c><== ALWAYS TAKEN
key->Values [ thread_api ][ thread_index ] = NULL;
111f1e: c7 06 00 00 00 00 movl $0x0,(%esi) <== NOT EXECUTED
(*key->destructor)( value );
111f24: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
111f27: 51 push %ecx <== NOT EXECUTED
111f28: ff 50 10 call *0x10(%eax) <== NOT EXECUTED
111f2b: 31 d2 xor %edx,%edx <== NOT EXECUTED
111f2d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
Objects_Maximum index = 0;
Objects_Maximum max = _POSIX_Keys_Information.maximum;
done = true;
for ( index = 1 ; index <= max ; ++index ) {
111f30: 43 inc %ebx
111f31: 66 39 fb cmp %di,%bx
111f34: 76 c3 jbe 111ef9 <_POSIX_Keys_Run_destructors+0x35>
* number of iterations. An infinite loop may happen if destructors set
* thread specific data. This can be considered dubious.
*
* Reference: 17.1.1.2 P1003.1c/Draft 10, p. 163, line 99.
*/
while ( !done ) {
111f36: 84 d2 test %dl,%dl
111f38: 74 b0 je 111eea <_POSIX_Keys_Run_destructors+0x26><== NEVER TAKEN
done = false;
}
}
}
}
}
111f3a: 8d 65 f4 lea -0xc(%ebp),%esp
111f3d: 5b pop %ebx
111f3e: 5e pop %esi
111f3f: 5f pop %edi
111f40: c9 leave
111f41: c3 ret
0010e6e0 <_POSIX_Message_queue_Receive_support>:
size_t msg_len,
unsigned int *msg_prio,
bool wait,
Watchdog_Interval timeout
)
{
10e6e0: 55 push %ebp
10e6e1: 89 e5 mov %esp,%ebp
10e6e3: 57 push %edi
10e6e4: 56 push %esi
10e6e5: 53 push %ebx
10e6e6: 83 ec 30 sub $0x30,%esp
10e6e9: 8b 75 08 mov 0x8(%ebp),%esi
10e6ec: 8b 5d 14 mov 0x14(%ebp),%ebx
10e6ef: 8a 55 18 mov 0x18(%ebp),%dl
RTEMS_INLINE_ROUTINE POSIX_Message_queue_Control_fd *_POSIX_Message_queue_Get_fd (
mqd_t id,
Objects_Locations *location
)
{
return (POSIX_Message_queue_Control_fd *) _Objects_Get(
10e6f2: 8d 45 e4 lea -0x1c(%ebp),%eax
10e6f5: 50 push %eax
10e6f6: 56 push %esi
10e6f7: 68 3c f3 12 00 push $0x12f33c
10e6fc: 88 55 d4 mov %dl,-0x2c(%ebp)
10e6ff: e8 1c 2b 00 00 call 111220 <_Objects_Get>
Objects_Locations location;
size_t length_out;
bool do_wait;
the_mq_fd = _POSIX_Message_queue_Get_fd( mqdes, &location );
switch ( location ) {
10e704: 83 c4 10 add $0x10,%esp
10e707: 83 7d e4 00 cmpl $0x0,-0x1c(%ebp)
10e70b: 8a 55 d4 mov -0x2c(%ebp),%dl
10e70e: 0f 85 b9 00 00 00 jne 10e7cd <_POSIX_Message_queue_Receive_support+0xed>
case OBJECTS_LOCAL:
if ( (the_mq_fd->oflag & O_ACCMODE) == O_WRONLY ) {
10e714: 8b 78 14 mov 0x14(%eax),%edi
10e717: 89 f9 mov %edi,%ecx
10e719: 83 e1 03 and $0x3,%ecx
10e71c: 49 dec %ecx
10e71d: 75 0a jne 10e729 <_POSIX_Message_queue_Receive_support+0x49>
_Thread_Enable_dispatch();
10e71f: e8 35 33 00 00 call 111a59 <_Thread_Enable_dispatch>
10e724: e9 a4 00 00 00 jmp 10e7cd <_POSIX_Message_queue_Receive_support+0xed>
rtems_set_errno_and_return_minus_one( EBADF );
}
the_mq = the_mq_fd->Queue;
10e729: 8b 48 10 mov 0x10(%eax),%ecx
if ( msg_len < the_mq->Message_queue.maximum_message_size ) {
10e72c: 8b 45 10 mov 0x10(%ebp),%eax
10e72f: 3b 41 68 cmp 0x68(%ecx),%eax
10e732: 73 15 jae 10e749 <_POSIX_Message_queue_Receive_support+0x69>
_Thread_Enable_dispatch();
10e734: e8 20 33 00 00 call 111a59 <_Thread_Enable_dispatch>
rtems_set_errno_and_return_minus_one( EMSGSIZE );
10e739: e8 6a 9c 00 00 call 1183a8 <__errno>
10e73e: c7 00 7a 00 00 00 movl $0x7a,(%eax)
10e744: e9 8f 00 00 00 jmp 10e7d8 <_POSIX_Message_queue_Receive_support+0xf8>
length_out = -1;
/*
* A timed receive with a bad time will do a poll regardless.
*/
if ( wait )
10e749: 31 c0 xor %eax,%eax
10e74b: 84 d2 test %dl,%dl
10e74d: 74 0b je 10e75a <_POSIX_Message_queue_Receive_support+0x7a><== NEVER TAKEN
do_wait = (the_mq_fd->oflag & O_NONBLOCK) ? false : true;
10e74f: 89 f8 mov %edi,%eax
10e751: c1 e8 0e shr $0xe,%eax
10e754: 83 f0 01 xor $0x1,%eax
10e757: 83 e0 01 and $0x1,%eax
/*
* Now if something goes wrong, we return a "length" of -1
* to indicate an error.
*/
length_out = -1;
10e75a: c7 45 e0 ff ff ff ff movl $0xffffffff,-0x20(%ebp)
do_wait = wait;
/*
* Now perform the actual message receive
*/
_CORE_message_queue_Seize(
10e761: 52 push %edx
10e762: 52 push %edx
10e763: ff 75 1c pushl 0x1c(%ebp)
10e766: 0f b6 c0 movzbl %al,%eax
10e769: 50 push %eax
10e76a: 8d 45 e0 lea -0x20(%ebp),%eax
10e76d: 50 push %eax
10e76e: ff 75 0c pushl 0xc(%ebp)
10e771: 56 push %esi
10e772: 83 c1 1c add $0x1c,%ecx
10e775: 51 push %ecx
10e776: e8 d1 1c 00 00 call 11044c <_CORE_message_queue_Seize>
&length_out,
do_wait,
timeout
);
_Thread_Enable_dispatch();
10e77b: 83 c4 20 add $0x20,%esp
10e77e: e8 d6 32 00 00 call 111a59 <_Thread_Enable_dispatch>
if (msg_prio) {
10e783: 85 db test %ebx,%ebx
10e785: 74 15 je 10e79c <_POSIX_Message_queue_Receive_support+0xbc><== NEVER TAKEN
*msg_prio = _POSIX_Message_queue_Priority_from_core(
10e787: 8b 15 04 ef 12 00 mov 0x12ef04,%edx
10e78d: 8b 42 24 mov 0x24(%edx),%eax
10e790: c1 f8 1f sar $0x1f,%eax
10e793: 8b 52 24 mov 0x24(%edx),%edx
10e796: 31 c2 xor %eax,%edx
10e798: 89 13 mov %edx,(%ebx)
10e79a: 29 03 sub %eax,(%ebx)
_Thread_Executing->Wait.count
);
}
if ( !_Thread_Executing->Wait.return_code )
10e79c: a1 04 ef 12 00 mov 0x12ef04,%eax
10e7a1: 83 78 34 00 cmpl $0x0,0x34(%eax)
10e7a5: 75 05 jne 10e7ac <_POSIX_Message_queue_Receive_support+0xcc>
return length_out;
10e7a7: 8b 45 e0 mov -0x20(%ebp),%eax
10e7aa: eb 2f jmp 10e7db <_POSIX_Message_queue_Receive_support+0xfb>
rtems_set_errno_and_return_minus_one(
10e7ac: e8 f7 9b 00 00 call 1183a8 <__errno>
10e7b1: 89 c3 mov %eax,%ebx
10e7b3: 83 ec 0c sub $0xc,%esp
10e7b6: a1 04 ef 12 00 mov 0x12ef04,%eax
10e7bb: ff 70 34 pushl 0x34(%eax)
10e7be: e8 fd 01 00 00 call 10e9c0 <_POSIX_Message_queue_Translate_core_message_queue_return_code>
10e7c3: 89 03 mov %eax,(%ebx)
10e7c5: 83 c8 ff or $0xffffffff,%eax
10e7c8: 83 c4 10 add $0x10,%esp
10e7cb: eb 0e jmp 10e7db <_POSIX_Message_queue_Receive_support+0xfb>
#endif
case OBJECTS_ERROR:
break;
}
rtems_set_errno_and_return_minus_one( EBADF );
10e7cd: e8 d6 9b 00 00 call 1183a8 <__errno>
10e7d2: c7 00 09 00 00 00 movl $0x9,(%eax)
10e7d8: 83 c8 ff or $0xffffffff,%eax
}
10e7db: 8d 65 f4 lea -0xc(%ebp),%esp
10e7de: 5b pop %ebx
10e7df: 5e pop %esi
10e7e0: 5f pop %edi
10e7e1: c9 leave
10e7e2: c3 ret
0010f704 <_POSIX_Thread_Evaluate_cancellation_and_enable_dispatch>:
#include <rtems/posix/pthread.h>
void _POSIX_Thread_Evaluate_cancellation_and_enable_dispatch(
Thread_Control *the_thread
)
{
10f704: 55 push %ebp
10f705: 89 e5 mov %esp,%ebp
10f707: 83 ec 08 sub $0x8,%esp
10f70a: 8b 55 08 mov 0x8(%ebp),%edx
POSIX_API_Control *thread_support;
thread_support = the_thread->API_Extensions[ THREAD_API_POSIX ];
10f70d: 8b 82 f8 00 00 00 mov 0xf8(%edx),%eax
if ( thread_support->cancelability_state == PTHREAD_CANCEL_ENABLE &&
10f713: 83 b8 d4 00 00 00 00 cmpl $0x0,0xd4(%eax)
10f71a: 75 2c jne 10f748 <_POSIX_Thread_Evaluate_cancellation_and_enable_dispatch+0x44><== NEVER TAKEN
thread_support->cancelability_type == PTHREAD_CANCEL_ASYNCHRONOUS &&
10f71c: 83 b8 d8 00 00 00 01 cmpl $0x1,0xd8(%eax)
10f723: 75 23 jne 10f748 <_POSIX_Thread_Evaluate_cancellation_and_enable_dispatch+0x44>
thread_support->cancelation_requested ) {
10f725: 83 b8 dc 00 00 00 00 cmpl $0x0,0xdc(%eax)
10f72c: 74 1a je 10f748 <_POSIX_Thread_Evaluate_cancellation_and_enable_dispatch+0x44>
*/
RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void )
{
RTEMS_COMPILER_MEMORY_BARRIER();
_Thread_Dispatch_disable_level -= 1;
10f72e: a1 00 72 12 00 mov 0x127200,%eax
10f733: 48 dec %eax
10f734: a3 00 72 12 00 mov %eax,0x127200
_Thread_Unnest_dispatch();
_POSIX_Thread_Exit( the_thread, PTHREAD_CANCELED );
10f739: 50 push %eax
10f73a: 50 push %eax
10f73b: 6a ff push $0xffffffff
10f73d: 52 push %edx
10f73e: e8 fd 05 00 00 call 10fd40 <_POSIX_Thread_Exit>
{
POSIX_API_Control *thread_support;
thread_support = the_thread->API_Extensions[ THREAD_API_POSIX ];
if ( thread_support->cancelability_state == PTHREAD_CANCEL_ENABLE &&
10f743: 83 c4 10 add $0x10,%esp
_Thread_Unnest_dispatch();
_POSIX_Thread_Exit( the_thread, PTHREAD_CANCELED );
} else
_Thread_Enable_dispatch();
}
10f746: c9 leave
10f747: c3 ret
10f748: c9 leave
thread_support->cancelability_type == PTHREAD_CANCEL_ASYNCHRONOUS &&
thread_support->cancelation_requested ) {
_Thread_Unnest_dispatch();
_POSIX_Thread_Exit( the_thread, PTHREAD_CANCELED );
} else
_Thread_Enable_dispatch();
10f749: e9 53 cf ff ff jmp 10c6a1 <_Thread_Enable_dispatch>
001107b0 <_POSIX_Thread_Translate_sched_param>:
int policy,
struct sched_param *param,
Thread_CPU_budget_algorithms *budget_algorithm,
Thread_CPU_budget_algorithm_callout *budget_callout
)
{
1107b0: 55 push %ebp
1107b1: 89 e5 mov %esp,%ebp
1107b3: 57 push %edi
1107b4: 56 push %esi
1107b5: 53 push %ebx
1107b6: 83 ec 18 sub $0x18,%esp
1107b9: 8b 7d 08 mov 0x8(%ebp),%edi
1107bc: 8b 5d 0c mov 0xc(%ebp),%ebx
1107bf: 8b 75 10 mov 0x10(%ebp),%esi
if ( !_POSIX_Priority_Is_valid( param->sched_priority ) )
1107c2: ff 33 pushl (%ebx)
1107c4: e8 c7 ff ff ff call 110790 <_POSIX_Priority_Is_valid>
1107c9: 83 c4 10 add $0x10,%esp
1107cc: 84 c0 test %al,%al
1107ce: 0f 84 97 00 00 00 je 11086b <_POSIX_Thread_Translate_sched_param+0xbb><== NEVER TAKEN
return EINVAL;
*budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_NONE;
1107d4: c7 06 00 00 00 00 movl $0x0,(%esi)
*budget_callout = NULL;
1107da: 8b 45 14 mov 0x14(%ebp),%eax
1107dd: c7 00 00 00 00 00 movl $0x0,(%eax)
if ( policy == SCHED_OTHER ) {
1107e3: 85 ff test %edi,%edi
1107e5: 75 08 jne 1107ef <_POSIX_Thread_Translate_sched_param+0x3f>
*budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE;
1107e7: c7 06 01 00 00 00 movl $0x1,(%esi)
1107ed: eb 18 jmp 110807 <_POSIX_Thread_Translate_sched_param+0x57>
return 0;
}
if ( policy == SCHED_FIFO ) {
1107ef: 83 ff 01 cmp $0x1,%edi
1107f2: 75 08 jne 1107fc <_POSIX_Thread_Translate_sched_param+0x4c>
*budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_NONE;
1107f4: c7 06 00 00 00 00 movl $0x0,(%esi)
1107fa: eb 0b jmp 110807 <_POSIX_Thread_Translate_sched_param+0x57>
return 0;
}
if ( policy == SCHED_RR ) {
1107fc: 83 ff 02 cmp $0x2,%edi
1107ff: 75 0a jne 11080b <_POSIX_Thread_Translate_sched_param+0x5b>
*budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_EXHAUST_TIMESLICE;
110801: c7 06 02 00 00 00 movl $0x2,(%esi)
110807: 31 c0 xor %eax,%eax
return 0;
110809: eb 65 jmp 110870 <_POSIX_Thread_Translate_sched_param+0xc0>
}
if ( policy == SCHED_SPORADIC ) {
11080b: 83 ff 04 cmp $0x4,%edi
11080e: 75 5b jne 11086b <_POSIX_Thread_Translate_sched_param+0xbb>
if ( (param->sched_ss_repl_period.tv_sec == 0) &&
110810: 83 7b 08 00 cmpl $0x0,0x8(%ebx)
110814: 75 06 jne 11081c <_POSIX_Thread_Translate_sched_param+0x6c>
(param->sched_ss_repl_period.tv_nsec == 0) )
110816: 83 7b 0c 00 cmpl $0x0,0xc(%ebx)
11081a: 74 4f je 11086b <_POSIX_Thread_Translate_sched_param+0xbb>
return EINVAL;
if ( (param->sched_ss_init_budget.tv_sec == 0) &&
11081c: 83 7b 10 00 cmpl $0x0,0x10(%ebx)
110820: 75 06 jne 110828 <_POSIX_Thread_Translate_sched_param+0x78>
(param->sched_ss_init_budget.tv_nsec == 0) )
110822: 83 7b 14 00 cmpl $0x0,0x14(%ebx)
110826: 74 43 je 11086b <_POSIX_Thread_Translate_sched_param+0xbb>
return EINVAL;
if ( _Timespec_To_ticks( ¶m->sched_ss_repl_period ) <
110828: 83 ec 0c sub $0xc,%esp
11082b: 8d 43 08 lea 0x8(%ebx),%eax
11082e: 50 push %eax
11082f: e8 14 d6 ff ff call 10de48 <_Timespec_To_ticks>
110834: 89 c7 mov %eax,%edi
110836: 8d 43 10 lea 0x10(%ebx),%eax
110839: 89 04 24 mov %eax,(%esp)
11083c: e8 07 d6 ff ff call 10de48 <_Timespec_To_ticks>
110841: 83 c4 10 add $0x10,%esp
110844: 39 c7 cmp %eax,%edi
110846: 72 23 jb 11086b <_POSIX_Thread_Translate_sched_param+0xbb>
_Timespec_To_ticks( ¶m->sched_ss_init_budget ) )
return EINVAL;
if ( !_POSIX_Priority_Is_valid( param->sched_ss_low_priority ) )
110848: 83 ec 0c sub $0xc,%esp
11084b: ff 73 04 pushl 0x4(%ebx)
11084e: e8 3d ff ff ff call 110790 <_POSIX_Priority_Is_valid>
110853: 83 c4 10 add $0x10,%esp
110856: 84 c0 test %al,%al
110858: 74 11 je 11086b <_POSIX_Thread_Translate_sched_param+0xbb>
return EINVAL;
*budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_CALLOUT;
11085a: c7 06 03 00 00 00 movl $0x3,(%esi)
*budget_callout = _POSIX_Threads_Sporadic_budget_callout;
110860: 8b 45 14 mov 0x14(%ebp),%eax
110863: c7 00 57 ac 10 00 movl $0x10ac57,(%eax)
110869: eb 9c jmp 110807 <_POSIX_Thread_Translate_sched_param+0x57>
return 0;
11086b: b8 16 00 00 00 mov $0x16,%eax
}
return EINVAL;
}
110870: 8d 65 f4 lea -0xc(%ebp),%esp
110873: 5b pop %ebx
110874: 5e pop %esi
110875: 5f pop %edi
110876: c9 leave
110877: c3 ret
0010f723 <_POSIX_Threads_Delete_extension>:
*/
void _POSIX_Threads_Delete_extension(
Thread_Control *executing __attribute__((unused)),
Thread_Control *deleted
)
{
10f723: 55 push %ebp
10f724: 89 e5 mov %esp,%ebp
10f726: 57 push %edi
10f727: 56 push %esi
10f728: 53 push %ebx
10f729: 83 ec 28 sub $0x28,%esp
10f72c: 8b 5d 0c mov 0xc(%ebp),%ebx
Thread_Control *the_thread;
POSIX_API_Control *api;
void **value_ptr;
api = deleted->API_Extensions[ THREAD_API_POSIX ];
10f72f: 8b b3 f8 00 00 00 mov 0xf8(%ebx),%esi
/*
* Run the POSIX cancellation handlers
*/
_POSIX_Threads_cancel_run( deleted );
10f735: 53 push %ebx
10f736: e8 2d 27 00 00 call 111e68 <_POSIX_Threads_cancel_run>
/*
* Run all the key destructors
*/
_POSIX_Keys_Run_destructors( deleted );
10f73b: 89 1c 24 mov %ebx,(%esp)
10f73e: e8 81 27 00 00 call 111ec4 <_POSIX_Keys_Run_destructors>
/*
* Wakeup all the tasks which joined with this one
*/
value_ptr = (void **) deleted->Wait.return_argument;
10f743: 8b 53 28 mov 0x28(%ebx),%edx
while ( (the_thread = _Thread_queue_Dequeue( &api->Join_List )) )
10f746: 8d 7e 40 lea 0x40(%esi),%edi
10f749: 83 c4 10 add $0x10,%esp
10f74c: eb 05 jmp 10f753 <_POSIX_Threads_Delete_extension+0x30>
*(void **)the_thread->Wait.return_argument = value_ptr;
10f74e: 8b 40 28 mov 0x28(%eax),%eax <== NOT EXECUTED
10f751: 89 10 mov %edx,(%eax) <== NOT EXECUTED
/*
* Wakeup all the tasks which joined with this one
*/
value_ptr = (void **) deleted->Wait.return_argument;
while ( (the_thread = _Thread_queue_Dequeue( &api->Join_List )) )
10f753: 83 ec 0c sub $0xc,%esp
10f756: 57 push %edi
10f757: 89 55 e4 mov %edx,-0x1c(%ebp)
10f75a: e8 65 cf ff ff call 10c6c4 <_Thread_queue_Dequeue>
10f75f: 83 c4 10 add $0x10,%esp
10f762: 85 c0 test %eax,%eax
10f764: 8b 55 e4 mov -0x1c(%ebp),%edx
10f767: 75 e5 jne 10f74e <_POSIX_Threads_Delete_extension+0x2b><== NEVER TAKEN
*(void **)the_thread->Wait.return_argument = value_ptr;
if ( api->schedpolicy == SCHED_SPORADIC )
10f769: 83 be 80 00 00 00 04 cmpl $0x4,0x80(%esi)
10f770: 75 12 jne 10f784 <_POSIX_Threads_Delete_extension+0x61>
(void) _Watchdog_Remove( &api->Sporadic_timer );
10f772: 83 ec 0c sub $0xc,%esp
10f775: 8d 86 a4 00 00 00 lea 0xa4(%esi),%eax
10f77b: 50 push %eax
10f77c: e8 77 da ff ff call 10d1f8 <_Watchdog_Remove>
10f781: 83 c4 10 add $0x10,%esp
deleted->API_Extensions[ THREAD_API_POSIX ] = NULL;
10f784: c7 83 f8 00 00 00 00 movl $0x0,0xf8(%ebx)
10f78b: 00 00 00
(void) _Workspace_Free( api );
10f78e: 89 75 08 mov %esi,0x8(%ebp)
}
10f791: 8d 65 f4 lea -0xc(%ebp),%esp
10f794: 5b pop %ebx
10f795: 5e pop %esi
10f796: 5f pop %edi
10f797: c9 leave
if ( api->schedpolicy == SCHED_SPORADIC )
(void) _Watchdog_Remove( &api->Sporadic_timer );
deleted->API_Extensions[ THREAD_API_POSIX ] = NULL;
(void) _Workspace_Free( api );
10f798: e9 70 db ff ff jmp 10d30d <_Workspace_Free>
0010a994 <_POSIX_Threads_Initialize_user_threads_body>:
*
* Output parameters: NONE
*/
void _POSIX_Threads_Initialize_user_threads_body(void)
{
10a994: 55 push %ebp
10a995: 89 e5 mov %esp,%ebp
10a997: 57 push %edi
10a998: 56 push %esi
10a999: 53 push %ebx
10a99a: 83 ec 5c sub $0x5c,%esp
uint32_t maximum;
posix_initialization_threads_table *user_threads;
pthread_t thread_id;
pthread_attr_t attr;
user_threads = Configuration_POSIX_API.User_initialization_threads_table;
10a99d: 8b 3d 10 32 12 00 mov 0x123210,%edi
maximum = Configuration_POSIX_API.number_of_initialization_threads;
10a9a3: 8b 15 0c 32 12 00 mov 0x12320c,%edx
if ( !user_threads || maximum == 0 )
10a9a9: 85 d2 test %edx,%edx
10a9ab: 74 54 je 10aa01 <_POSIX_Threads_Initialize_user_threads_body+0x6d><== NEVER TAKEN
10a9ad: 85 ff test %edi,%edi
10a9af: 74 50 je 10aa01 <_POSIX_Threads_Initialize_user_threads_body+0x6d><== NEVER TAKEN
10a9b1: 31 db xor %ebx,%ebx
for ( index=0 ; index < maximum ; index++ ) {
/*
* There is no way for these calls to fail in this situation.
*/
(void) pthread_attr_init( &attr );
10a9b3: 8d 75 a8 lea -0x58(%ebp),%esi
10a9b6: 83 ec 0c sub $0xc,%esp
10a9b9: 56 push %esi
10a9ba: 89 55 a4 mov %edx,-0x5c(%ebp)
10a9bd: e8 b6 5e 00 00 call 110878 <pthread_attr_init>
(void) pthread_attr_setinheritsched( &attr, PTHREAD_EXPLICIT_SCHED );
10a9c2: 5a pop %edx
10a9c3: 59 pop %ecx
10a9c4: 6a 02 push $0x2
10a9c6: 56 push %esi
10a9c7: e8 d4 5e 00 00 call 1108a0 <pthread_attr_setinheritsched>
(void) pthread_attr_setstacksize(&attr, user_threads[ index ].stack_size);
10a9cc: 59 pop %ecx
10a9cd: 58 pop %eax
10a9ce: ff 74 df 04 pushl 0x4(%edi,%ebx,8)
10a9d2: 56 push %esi
10a9d3: e8 f8 5e 00 00 call 1108d0 <pthread_attr_setstacksize>
status = pthread_create(
10a9d8: 6a 00 push $0x0
10a9da: ff 34 df pushl (%edi,%ebx,8)
10a9dd: 56 push %esi
10a9de: 8d 45 e4 lea -0x1c(%ebp),%eax
10a9e1: 50 push %eax
10a9e2: e8 75 fc ff ff call 10a65c <pthread_create>
&thread_id,
&attr,
user_threads[ index ].thread_entry,
NULL
);
if ( status )
10a9e7: 83 c4 20 add $0x20,%esp
10a9ea: 85 c0 test %eax,%eax
10a9ec: 8b 55 a4 mov -0x5c(%ebp),%edx
10a9ef: 74 0b je 10a9fc <_POSIX_Threads_Initialize_user_threads_body+0x68>
_Internal_error_Occurred( INTERNAL_ERROR_POSIX_API, true, status );
10a9f1: 52 push %edx
10a9f2: 50 push %eax
10a9f3: 6a 01 push $0x1
10a9f5: 6a 02 push $0x2
10a9f7: e8 b8 1b 00 00 call 10c5b4 <_Internal_error_Occurred>
*
* Setting the attributes explicitly is critical, since we don't want
* to inherit the idle tasks attributes.
*/
for ( index=0 ; index < maximum ; index++ ) {
10a9fc: 43 inc %ebx
10a9fd: 39 d3 cmp %edx,%ebx
10a9ff: 72 b5 jb 10a9b6 <_POSIX_Threads_Initialize_user_threads_body+0x22><== NEVER TAKEN
NULL
);
if ( status )
_Internal_error_Occurred( INTERNAL_ERROR_POSIX_API, true, status );
}
}
10aa01: 8d 65 f4 lea -0xc(%ebp),%esp
10aa04: 5b pop %ebx
10aa05: 5e pop %esi
10aa06: 5f pop %edi
10aa07: c9 leave
10aa08: c3 ret
0010f933 <_POSIX_Threads_Sporadic_budget_TSR>:
*/
void _POSIX_Threads_Sporadic_budget_TSR(
Objects_Id id __attribute__((unused)),
void *argument
)
{
10f933: 55 push %ebp
10f934: 89 e5 mov %esp,%ebp
10f936: 56 push %esi
10f937: 53 push %ebx
10f938: 8b 5d 0c mov 0xc(%ebp),%ebx
Thread_Control *the_thread;
POSIX_API_Control *api;
the_thread = argument;
api = the_thread->API_Extensions[ THREAD_API_POSIX ];
10f93b: 8b b3 f8 00 00 00 mov 0xf8(%ebx),%esi
/* ticks is guaranteed to be at least one */
ticks = _Timespec_To_ticks( &api->schedparam.sched_ss_init_budget );
10f941: 83 ec 0c sub $0xc,%esp
10f944: 8d 86 94 00 00 00 lea 0x94(%esi),%eax
10f94a: 50 push %eax
10f94b: e8 a0 0f 00 00 call 1108f0 <_Timespec_To_ticks>
the_thread->cpu_time_budget = ticks;
10f950: 89 43 78 mov %eax,0x78(%ebx)
10f953: 0f b6 05 f4 21 12 00 movzbl 0x1221f4,%eax
10f95a: 2b 86 84 00 00 00 sub 0x84(%esi),%eax
new_priority = _POSIX_Priority_To_core( api->schedparam.sched_priority );
the_thread->real_priority = new_priority;
10f960: 89 43 18 mov %eax,0x18(%ebx)
*/
#if 0
printk( "TSR %d %d %d\n", the_thread->resource_count,
the_thread->current_priority, new_priority );
#endif
if ( the_thread->resource_count == 0 ) {
10f963: 83 c4 10 add $0x10,%esp
10f966: 83 7b 1c 00 cmpl $0x0,0x1c(%ebx)
10f96a: 75 12 jne 10f97e <_POSIX_Threads_Sporadic_budget_TSR+0x4b><== NEVER TAKEN
/*
* If this would make them less important, then do not change it.
*/
if ( the_thread->current_priority > new_priority ) {
10f96c: 39 43 14 cmp %eax,0x14(%ebx)
10f96f: 76 0d jbe 10f97e <_POSIX_Threads_Sporadic_budget_TSR+0x4b>
_Thread_Change_priority( the_thread, new_priority, true );
10f971: 52 push %edx
10f972: 6a 01 push $0x1
10f974: 50 push %eax
10f975: 53 push %ebx
10f976: e8 f9 c4 ff ff call 10be74 <_Thread_Change_priority>
10f97b: 83 c4 10 add $0x10,%esp
#endif
}
}
/* ticks is guaranteed to be at least one */
ticks = _Timespec_To_ticks( &api->schedparam.sched_ss_repl_period );
10f97e: 83 ec 0c sub $0xc,%esp
10f981: 8d 86 8c 00 00 00 lea 0x8c(%esi),%eax
10f987: 50 push %eax
10f988: e8 63 0f 00 00 call 1108f0 <_Timespec_To_ticks>
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
10f98d: 89 86 b0 00 00 00 mov %eax,0xb0(%esi)
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
10f993: 83 c4 10 add $0x10,%esp
10f996: 81 c6 a4 00 00 00 add $0xa4,%esi
10f99c: 89 75 0c mov %esi,0xc(%ebp)
10f99f: c7 45 08 e4 62 12 00 movl $0x1262e4,0x8(%ebp)
_Watchdog_Insert_ticks( &api->Sporadic_timer, ticks );
}
10f9a6: 8d 65 f8 lea -0x8(%ebp),%esp
10f9a9: 5b pop %ebx
10f9aa: 5e pop %esi
10f9ab: c9 leave
10f9ac: e9 33 d7 ff ff jmp 10d0e4 <_Watchdog_Insert>
0010f8f3 <_POSIX_Threads_Sporadic_budget_callout>:
* _POSIX_Threads_Sporadic_budget_callout
*/
void _POSIX_Threads_Sporadic_budget_callout(
Thread_Control *the_thread
)
{
10f8f3: 55 push %ebp
10f8f4: 89 e5 mov %esp,%ebp
10f8f6: 83 ec 08 sub $0x8,%esp
10f8f9: 8b 45 08 mov 0x8(%ebp),%eax
POSIX_API_Control *api;
uint32_t new_priority;
api = the_thread->API_Extensions[ THREAD_API_POSIX ];
10f8fc: 8b 88 f8 00 00 00 mov 0xf8(%eax),%ecx
/*
* This will prevent the thread from consuming its entire "budget"
* while at low priority.
*/
the_thread->cpu_time_budget = 0xFFFFFFFF; /* XXX should be based on MAX_U32 */
10f902: c7 40 78 ff ff ff ff movl $0xffffffff,0x78(%eax)
RTEMS_INLINE_ROUTINE Priority_Control _POSIX_Priority_To_core(
int priority
)
{
return (Priority_Control) (POSIX_SCHEDULER_MAXIMUM_PRIORITY - priority + 1);
10f909: 0f b6 15 f4 21 12 00 movzbl 0x1221f4,%edx
10f910: 2b 91 88 00 00 00 sub 0x88(%ecx),%edx
new_priority = _POSIX_Priority_To_core(api->schedparam.sched_ss_low_priority);
the_thread->real_priority = new_priority;
10f916: 89 50 18 mov %edx,0x18(%eax)
*/
#if 0
printk( "callout %d %d %d\n", the_thread->resource_count,
the_thread->current_priority, new_priority );
#endif
if ( the_thread->resource_count == 0 ) {
10f919: 83 78 1c 00 cmpl $0x0,0x1c(%eax)
10f91d: 75 12 jne 10f931 <_POSIX_Threads_Sporadic_budget_callout+0x3e><== NEVER TAKEN
/*
* Make sure we are actually lowering it. If they have lowered it
* to logically lower than sched_ss_low_priority, then we do not want to
* change it.
*/
if ( the_thread->current_priority < new_priority ) {
10f91f: 39 50 14 cmp %edx,0x14(%eax)
10f922: 73 0d jae 10f931 <_POSIX_Threads_Sporadic_budget_callout+0x3e><== NEVER TAKEN
_Thread_Change_priority( the_thread, new_priority, true );
10f924: 51 push %ecx
10f925: 6a 01 push $0x1
10f927: 52 push %edx
10f928: 50 push %eax
10f929: e8 46 c5 ff ff call 10be74 <_Thread_Change_priority>
10f92e: 83 c4 10 add $0x10,%esp
#if 0
printk( "lower priority\n" );
#endif
}
}
}
10f931: c9 leave
10f932: c3 ret
0010a6cc <_POSIX_Timer_TSR>:
* This is the operation that is run when a timer expires
*/
void _POSIX_Timer_TSR(
Objects_Id timer __attribute__((unused)),
void *data)
{
10a6cc: 55 push %ebp
10a6cd: 89 e5 mov %esp,%ebp
10a6cf: 53 push %ebx
10a6d0: 83 ec 04 sub $0x4,%esp
10a6d3: 8b 5d 0c mov 0xc(%ebp),%ebx
bool activated;
ptimer = (POSIX_Timer_Control *)data;
/* Increment the number of expirations. */
ptimer->overrun = ptimer->overrun + 1;
10a6d6: ff 43 68 incl 0x68(%ebx)
/* The timer must be reprogrammed */
if ( ( ptimer->timer_data.it_interval.tv_sec != 0 ) ||
10a6d9: 83 7b 54 00 cmpl $0x0,0x54(%ebx)
10a6dd: 75 06 jne 10a6e5 <_POSIX_Timer_TSR+0x19>
( ptimer->timer_data.it_interval.tv_nsec != 0 ) ) {
10a6df: 83 7b 58 00 cmpl $0x0,0x58(%ebx)
10a6e3: 74 34 je 10a719 <_POSIX_Timer_TSR+0x4d> <== NEVER TAKEN
activated = _POSIX_Timer_Insert_helper(
10a6e5: 83 ec 0c sub $0xc,%esp
10a6e8: 53 push %ebx
10a6e9: 68 cc a6 10 00 push $0x10a6cc
10a6ee: ff 73 08 pushl 0x8(%ebx)
10a6f1: ff 73 64 pushl 0x64(%ebx)
10a6f4: 8d 43 10 lea 0x10(%ebx),%eax
10a6f7: 50 push %eax
10a6f8: e8 9f 5d 00 00 call 11049c <_POSIX_Timer_Insert_helper>
ptimer->ticks,
ptimer->Object.id,
_POSIX_Timer_TSR,
ptimer
);
if ( !activated )
10a6fd: 83 c4 20 add $0x20,%esp
10a700: 84 c0 test %al,%al
10a702: 74 30 je 10a734 <_POSIX_Timer_TSR+0x68> <== NEVER TAKEN
return;
/* Store the time when the timer was started again */
_TOD_Get( &ptimer->time );
10a704: 83 ec 0c sub $0xc,%esp
10a707: 8d 43 6c lea 0x6c(%ebx),%eax
10a70a: 50 push %eax
10a70b: e8 48 14 00 00 call 10bb58 <_TOD_Get>
/* The state really did not change but just to be safe */
ptimer->state = POSIX_TIMER_STATE_CREATE_RUN;
10a710: c6 43 3c 03 movb $0x3,0x3c(%ebx)
/* Increment the number of expirations. */
ptimer->overrun = ptimer->overrun + 1;
/* The timer must be reprogrammed */
if ( ( ptimer->timer_data.it_interval.tv_sec != 0 ) ||
10a714: 83 c4 10 add $0x10,%esp
10a717: eb 04 jmp 10a71d <_POSIX_Timer_TSR+0x51>
/* The state really did not change but just to be safe */
ptimer->state = POSIX_TIMER_STATE_CREATE_RUN;
} else {
/* Indicates that the timer is stopped */
ptimer->state = POSIX_TIMER_STATE_CREATE_STOP;
10a719: c6 43 3c 04 movb $0x4,0x3c(%ebx) <== NOT EXECUTED
/*
* The sending of the signal to the process running the handling function
* specified for that signal is simulated
*/
if ( pthread_kill ( ptimer->thread_id, ptimer->inf.sigev_signo ) ) {
10a71d: 50 push %eax
10a71e: 50 push %eax
10a71f: ff 73 44 pushl 0x44(%ebx)
10a722: ff 73 38 pushl 0x38(%ebx)
10a725: e8 46 59 00 00 call 110070 <pthread_kill>
}
/* After the signal handler returns, the count of expirations of the
* timer must be set to 0.
*/
ptimer->overrun = 0;
10a72a: c7 43 68 00 00 00 00 movl $0x0,0x68(%ebx)
10a731: 83 c4 10 add $0x10,%esp
}
10a734: 8b 5d fc mov -0x4(%ebp),%ebx
10a737: c9 leave
10a738: c3 ret
00112170 <_POSIX_signals_Check_signal>:
bool _POSIX_signals_Check_signal(
POSIX_API_Control *api,
int signo,
bool is_global
)
{
112170: 55 push %ebp
112171: 89 e5 mov %esp,%ebp
112173: 57 push %edi
112174: 56 push %esi
112175: 53 push %ebx
112176: 83 ec 38 sub $0x38,%esp
112179: 8b 5d 08 mov 0x8(%ebp),%ebx
11217c: 8b 75 0c mov 0xc(%ebp),%esi
siginfo_t siginfo_struct;
sigset_t saved_signals_blocked;
if ( ! _POSIX_signals_Clear_signals( api, signo, &siginfo_struct,
11217f: 6a 01 push $0x1
112181: 0f b6 45 10 movzbl 0x10(%ebp),%eax
112185: 50 push %eax
112186: 8d 7d dc lea -0x24(%ebp),%edi
112189: 57 push %edi
11218a: 56 push %esi
11218b: 53 push %ebx
11218c: e8 5b 00 00 00 call 1121ec <_POSIX_signals_Clear_signals>
112191: 83 c4 20 add $0x20,%esp
112194: 84 c0 test %al,%al
112196: 74 48 je 1121e0 <_POSIX_signals_Check_signal+0x70>
#endif
/*
* Just to prevent sending a signal which is currently being ignored.
*/
if ( _POSIX_signals_Vectors[ signo ].sa_handler == SIG_IGN )
112198: 6b d6 0c imul $0xc,%esi,%edx
11219b: 8b 82 70 67 12 00 mov 0x126770(%edx),%eax
1121a1: 83 f8 01 cmp $0x1,%eax
1121a4: 74 3a je 1121e0 <_POSIX_signals_Check_signal+0x70><== NEVER TAKEN
return false;
/*
* Block the signals requested in sa_mask
*/
saved_signals_blocked = api->signals_blocked;
1121a6: 8b 8b cc 00 00 00 mov 0xcc(%ebx),%ecx
1121ac: 89 4d d4 mov %ecx,-0x2c(%ebp)
api->signals_blocked |= _POSIX_signals_Vectors[ signo ].sa_mask;
1121af: 0b 8a 6c 67 12 00 or 0x12676c(%edx),%ecx
1121b5: 89 8b cc 00 00 00 mov %ecx,0xcc(%ebx)
/*
* Here, the signal handler function executes
*/
switch ( _POSIX_signals_Vectors[ signo ].sa_flags ) {
1121bb: 83 ba 68 67 12 00 02 cmpl $0x2,0x126768(%edx)
1121c2: 75 06 jne 1121ca <_POSIX_signals_Check_signal+0x5a>
case SA_SIGINFO:
(*_POSIX_signals_Vectors[ signo ].sa_sigaction)(
1121c4: 52 push %edx
1121c5: 6a 00 push $0x0
1121c7: 57 push %edi
1121c8: eb 03 jmp 1121cd <_POSIX_signals_Check_signal+0x5d>
&siginfo_struct,
NULL /* context is undefined per 1003.1b-1993, p. 66 */
);
break;
default:
(*_POSIX_signals_Vectors[ signo ].sa_handler)( signo );
1121ca: 83 ec 0c sub $0xc,%esp
1121cd: 56 push %esi
1121ce: ff d0 call *%eax
1121d0: 83 c4 10 add $0x10,%esp
}
/*
* Restore the previous set of blocked signals
*/
api->signals_blocked = saved_signals_blocked;
1121d3: 8b 45 d4 mov -0x2c(%ebp),%eax
1121d6: 89 83 cc 00 00 00 mov %eax,0xcc(%ebx)
1121dc: b0 01 mov $0x1,%al
return true;
1121de: eb 02 jmp 1121e2 <_POSIX_signals_Check_signal+0x72>
1121e0: 31 c0 xor %eax,%eax
}
1121e2: 8d 65 f4 lea -0xc(%ebp),%esp
1121e5: 5b pop %ebx
1121e6: 5e pop %esi
1121e7: 5f pop %edi
1121e8: c9 leave
1121e9: c3 ret
0011296c <_POSIX_signals_Clear_process_signals>:
*/
void _POSIX_signals_Clear_process_signals(
int signo
)
{
11296c: 55 push %ebp
11296d: 89 e5 mov %esp,%ebp
11296f: 53 push %ebx
112970: 8b 4d 08 mov 0x8(%ebp),%ecx
clear_signal = true;
mask = signo_to_mask( signo );
ISR_Level level;
_ISR_Disable( level );
112973: 9c pushf
112974: fa cli
112975: 5a pop %edx
if ( _POSIX_signals_Vectors[ signo ].sa_flags == SA_SIGINFO ) {
112976: 6b c1 0c imul $0xc,%ecx,%eax
112979: 83 b8 68 67 12 00 02 cmpl $0x2,0x126768(%eax)
112980: 75 0e jne 112990 <_POSIX_signals_Clear_process_signals+0x24>
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
112982: 8d 98 64 69 12 00 lea 0x126964(%eax),%ebx
112988: 39 98 60 69 12 00 cmp %ebx,0x126960(%eax)
11298e: 75 1d jne 1129ad <_POSIX_signals_Clear_process_signals+0x41><== NEVER TAKEN
if ( !_Chain_Is_empty( &_POSIX_signals_Siginfo[ signo ] ) )
clear_signal = false;
}
if ( clear_signal ) {
_POSIX_signals_Pending &= ~mask;
112990: 49 dec %ecx
112991: b8 fe ff ff ff mov $0xfffffffe,%eax
112996: d3 c0 rol %cl,%eax
112998: 23 05 5c 69 12 00 and 0x12695c,%eax
11299e: a3 5c 69 12 00 mov %eax,0x12695c
if ( !_POSIX_signals_Pending )
1129a3: 85 c0 test %eax,%eax
1129a5: 75 06 jne 1129ad <_POSIX_signals_Clear_process_signals+0x41><== NEVER TAKEN
_Thread_Do_post_task_switch_extension--;
1129a7: ff 0d a8 62 12 00 decl 0x1262a8
}
_ISR_Enable( level );
1129ad: 52 push %edx
1129ae: 9d popf
}
1129af: 5b pop %ebx
1129b0: c9 leave
1129b1: c3 ret
0010b014 <_POSIX_signals_Get_highest>:
#include <rtems/score/isr.h>
int _POSIX_signals_Get_highest(
sigset_t set
)
{
10b014: 55 push %ebp
10b015: 89 e5 mov %esp,%ebp
10b017: 56 push %esi
10b018: 53 push %ebx
10b019: 8b 55 08 mov 0x8(%ebp),%edx
10b01c: b8 1b 00 00 00 mov $0x1b,%eax
int signo;
for ( signo = SIGRTMIN ; signo <= SIGRTMAX ; signo++ ) {
if ( set & signo_to_mask( signo ) ) {
10b021: bb 01 00 00 00 mov $0x1,%ebx
10b026: 8d 48 ff lea -0x1(%eax),%ecx
10b029: 89 de mov %ebx,%esi
10b02b: d3 e6 shl %cl,%esi
10b02d: 85 d6 test %edx,%esi
10b02f: 75 1e jne 10b04f <_POSIX_signals_Get_highest+0x3b><== NEVER TAKEN
sigset_t set
)
{
int signo;
for ( signo = SIGRTMIN ; signo <= SIGRTMAX ; signo++ ) {
10b031: 40 inc %eax
10b032: 83 f8 20 cmp $0x20,%eax
10b035: 75 ef jne 10b026 <_POSIX_signals_Get_highest+0x12>
10b037: b0 01 mov $0x1,%al
#if (SIGHUP != 1)
#error "Assumption that SIGHUP==1 violated!!"
#endif
for ( signo = SIGHUP ; signo <= __SIGLASTNOTRT ; signo++ ) {
if ( set & signo_to_mask( signo ) ) {
10b039: bb 01 00 00 00 mov $0x1,%ebx
10b03e: 8d 48 ff lea -0x1(%eax),%ecx
10b041: 89 de mov %ebx,%esi
10b043: d3 e6 shl %cl,%esi
10b045: 85 d6 test %edx,%esi
10b047: 75 06 jne 10b04f <_POSIX_signals_Get_highest+0x3b>
*/
#if (SIGHUP != 1)
#error "Assumption that SIGHUP==1 violated!!"
#endif
for ( signo = SIGHUP ; signo <= __SIGLASTNOTRT ; signo++ ) {
10b049: 40 inc %eax
10b04a: 83 f8 1b cmp $0x1b,%eax
10b04d: 75 ef jne 10b03e <_POSIX_signals_Get_highest+0x2a><== ALWAYS TAKEN
* a return 0. This routine will NOT be called unless a signal
* is pending in the set passed in.
*/
found_it:
return signo;
}
10b04f: 5b pop %ebx
10b050: 5e pop %esi
10b051: c9 leave
10b052: c3 ret
0010f5d9 <_POSIX_signals_Post_switch_extension>:
*/
void _POSIX_signals_Post_switch_extension(
Thread_Control *the_thread
)
{
10f5d9: 55 push %ebp
10f5da: 89 e5 mov %esp,%ebp
10f5dc: 57 push %edi
10f5dd: 56 push %esi
10f5de: 53 push %ebx
10f5df: 83 ec 0c sub $0xc,%esp
POSIX_API_Control *api;
int signo;
ISR_Level level;
int hold_errno;
api = the_thread->API_Extensions[ THREAD_API_POSIX ];
10f5e2: 8b 45 08 mov 0x8(%ebp),%eax
10f5e5: 8b 98 f8 00 00 00 mov 0xf8(%eax),%ebx
/*
* We need to ensure that if the signal handler executes a call
* which overwrites the unblocking status, we restore it.
*/
hold_errno = _Thread_Executing->Wait.return_code;
10f5eb: a1 c4 62 12 00 mov 0x1262c4,%eax
10f5f0: 8b 78 34 mov 0x34(%eax),%edi
/*
* api may be NULL in case of a thread close in progress
*/
if ( !api )
10f5f3: 85 db test %ebx,%ebx
10f5f5: 74 72 je 10f669 <_POSIX_signals_Post_switch_extension+0x90><== NEVER TAKEN
*
* The first thing done is to check there are any signals to be
* processed at all. No point in doing this loop otherwise.
*/
while (1) {
_ISR_Disable( level );
10f5f7: 9c pushf
10f5f8: fa cli
10f5f9: 59 pop %ecx
if ( !(~api->signals_blocked &
(api->signals_pending | _POSIX_signals_Pending)) ) {
10f5fa: 8b 15 5c 69 12 00 mov 0x12695c,%edx
10f600: 0b 93 d0 00 00 00 or 0xd0(%ebx),%edx
* The first thing done is to check there are any signals to be
* processed at all. No point in doing this loop otherwise.
*/
while (1) {
_ISR_Disable( level );
if ( !(~api->signals_blocked &
10f606: 8b 83 cc 00 00 00 mov 0xcc(%ebx),%eax
10f60c: f7 d0 not %eax
10f60e: 85 c2 test %eax,%edx
10f610: 75 0c jne 10f61e <_POSIX_signals_Post_switch_extension+0x45>
(api->signals_pending | _POSIX_signals_Pending)) ) {
_ISR_Enable( level );
10f612: 51 push %ecx
10f613: 9d popf
_POSIX_signals_Check_signal( api, signo, false );
_POSIX_signals_Check_signal( api, signo, true );
}
}
_Thread_Executing->Wait.return_code = hold_errno;
10f614: a1 c4 62 12 00 mov 0x1262c4,%eax
10f619: 89 78 34 mov %edi,0x34(%eax)
10f61c: eb 4b jmp 10f669 <_POSIX_signals_Post_switch_extension+0x90>
if ( !(~api->signals_blocked &
(api->signals_pending | _POSIX_signals_Pending)) ) {
_ISR_Enable( level );
break;
}
_ISR_Enable( level );
10f61e: 51 push %ecx
10f61f: 9d popf
10f620: be 1b 00 00 00 mov $0x1b,%esi
for ( signo = SIGRTMIN ; signo <= SIGRTMAX ; signo++ ) {
_POSIX_signals_Check_signal( api, signo, false );
10f625: 52 push %edx
10f626: 6a 00 push $0x0
10f628: 56 push %esi
10f629: 53 push %ebx
10f62a: e8 41 2b 00 00 call 112170 <_POSIX_signals_Check_signal>
_POSIX_signals_Check_signal( api, signo, true );
10f62f: 83 c4 0c add $0xc,%esp
10f632: 6a 01 push $0x1
10f634: 56 push %esi
10f635: 53 push %ebx
10f636: e8 35 2b 00 00 call 112170 <_POSIX_signals_Check_signal>
_ISR_Enable( level );
break;
}
_ISR_Enable( level );
for ( signo = SIGRTMIN ; signo <= SIGRTMAX ; signo++ ) {
10f63b: 46 inc %esi
10f63c: 83 c4 10 add $0x10,%esp
10f63f: 83 fe 20 cmp $0x20,%esi
10f642: 75 e1 jne 10f625 <_POSIX_signals_Post_switch_extension+0x4c>
10f644: 66 be 01 00 mov $0x1,%si
_POSIX_signals_Check_signal( api, signo, true );
}
/* Unfortunately - nothing like __SIGFIRSTNOTRT in newlib signal .h */
for ( signo = SIGHUP ; signo <= __SIGLASTNOTRT ; signo++ ) {
_POSIX_signals_Check_signal( api, signo, false );
10f648: 50 push %eax
10f649: 6a 00 push $0x0
10f64b: 56 push %esi
10f64c: 53 push %ebx
10f64d: e8 1e 2b 00 00 call 112170 <_POSIX_signals_Check_signal>
_POSIX_signals_Check_signal( api, signo, true );
10f652: 83 c4 0c add $0xc,%esp
10f655: 6a 01 push $0x1
10f657: 56 push %esi
10f658: 53 push %ebx
10f659: e8 12 2b 00 00 call 112170 <_POSIX_signals_Check_signal>
_POSIX_signals_Check_signal( api, signo, false );
_POSIX_signals_Check_signal( api, signo, true );
}
/* Unfortunately - nothing like __SIGFIRSTNOTRT in newlib signal .h */
for ( signo = SIGHUP ; signo <= __SIGLASTNOTRT ; signo++ ) {
10f65e: 46 inc %esi
10f65f: 83 c4 10 add $0x10,%esp
10f662: 83 fe 1b cmp $0x1b,%esi
10f665: 75 e1 jne 10f648 <_POSIX_signals_Post_switch_extension+0x6f>
10f667: eb 8e jmp 10f5f7 <_POSIX_signals_Post_switch_extension+0x1e>
_POSIX_signals_Check_signal( api, signo, true );
}
}
_Thread_Executing->Wait.return_code = hold_errno;
}
10f669: 8d 65 f4 lea -0xc(%ebp),%esp
10f66c: 5b pop %ebx
10f66d: 5e pop %esi
10f66e: 5f pop %edi
10f66f: c9 leave
10f670: c3 ret
001122fc <_POSIX_signals_Unblock_thread>:
bool _POSIX_signals_Unblock_thread(
Thread_Control *the_thread,
int signo,
siginfo_t *info
)
{
1122fc: 55 push %ebp
1122fd: 89 e5 mov %esp,%ebp
1122ff: 57 push %edi
112300: 56 push %esi
112301: 53 push %ebx
112302: 83 ec 0c sub $0xc,%esp
112305: 8b 5d 08 mov 0x8(%ebp),%ebx
112308: 8b 55 0c mov 0xc(%ebp),%edx
POSIX_API_Control *api;
sigset_t mask;
siginfo_t *the_info = NULL;
api = the_thread->API_Extensions[ THREAD_API_POSIX ];
11230b: 8b b3 f8 00 00 00 mov 0xf8(%ebx),%esi
112311: 8d 4a ff lea -0x1(%edx),%ecx
112314: b8 01 00 00 00 mov $0x1,%eax
112319: d3 e0 shl %cl,%eax
/*
* Is the thread is specifically waiting for a signal?
*/
if ( _States_Is_interruptible_signal( the_thread->current_state ) ) {
11231b: 8b 4b 10 mov 0x10(%ebx),%ecx
11231e: 89 cf mov %ecx,%edi
112320: 81 e7 00 80 00 10 and $0x10008000,%edi
112326: 81 ff 00 80 00 10 cmp $0x10008000,%edi
11232c: 75 50 jne 11237e <_POSIX_signals_Unblock_thread+0x82>
if ( (the_thread->Wait.option & mask) || (~api->signals_blocked & mask) ) {
11232e: 85 43 30 test %eax,0x30(%ebx)
112331: 75 10 jne 112343 <_POSIX_signals_Unblock_thread+0x47>
112333: 8b 8e cc 00 00 00 mov 0xcc(%esi),%ecx
112339: f7 d1 not %ecx
11233b: 85 c8 test %ecx,%eax
11233d: 0f 84 ae 00 00 00 je 1123f1 <_POSIX_signals_Unblock_thread+0xf5>
the_thread->Wait.return_code = EINTR;
112343: c7 43 34 04 00 00 00 movl $0x4,0x34(%ebx)
the_info = (siginfo_t *) the_thread->Wait.return_argument;
11234a: 8b 43 28 mov 0x28(%ebx),%eax
if ( !info ) {
11234d: 83 7d 10 00 cmpl $0x0,0x10(%ebp)
112351: 75 12 jne 112365 <_POSIX_signals_Unblock_thread+0x69>
the_info->si_signo = signo;
112353: 89 10 mov %edx,(%eax)
the_info->si_code = SI_USER;
112355: c7 40 04 01 00 00 00 movl $0x1,0x4(%eax)
the_info->si_value.sival_int = 0;
11235c: c7 40 08 00 00 00 00 movl $0x0,0x8(%eax)
112363: eb 0c jmp 112371 <_POSIX_signals_Unblock_thread+0x75>
} else {
*the_info = *info;
112365: b9 03 00 00 00 mov $0x3,%ecx
11236a: 89 c7 mov %eax,%edi
11236c: 8b 75 10 mov 0x10(%ebp),%esi
11236f: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
}
_Thread_queue_Extract_with_proxy( the_thread );
112371: 83 ec 0c sub $0xc,%esp
112374: 53 push %ebx
112375: e8 0a a6 ff ff call 10c984 <_Thread_queue_Extract_with_proxy>
11237a: b0 01 mov $0x1,%al
11237c: eb 52 jmp 1123d0 <_POSIX_signals_Unblock_thread+0xd4>
}
/*
* Thread is not waiting due to a sigwait.
*/
if ( ~api->signals_blocked & mask ) {
11237e: 8b 96 cc 00 00 00 mov 0xcc(%esi),%edx
112384: f7 d2 not %edx
112386: 85 d0 test %edx,%eax
112388: 74 67 je 1123f1 <_POSIX_signals_Unblock_thread+0xf5>
* it is not blocked, THEN
* we need to dispatch at the end of this ISR.
* + Any other combination, do nothing.
*/
the_thread->do_post_task_switch_extension = true;
11238a: c6 43 74 01 movb $0x1,0x74(%ebx)
if ( _States_Is_interruptible_by_signal( the_thread->current_state ) ) {
11238e: f7 c1 00 00 00 10 test $0x10000000,%ecx
112394: 74 3f je 1123d5 <_POSIX_signals_Unblock_thread+0xd9>
the_thread->Wait.return_code = EINTR;
112396: c7 43 34 04 00 00 00 movl $0x4,0x34(%ebx)
/*
* In pthread_cond_wait, a thread will be blocking on a thread
* queue, but is also interruptible by a POSIX signal.
*/
if ( _States_Is_waiting_on_thread_queue(the_thread->current_state) )
11239d: f7 c1 e0 be 03 00 test $0x3bee0,%ecx
1123a3: 74 0b je 1123b0 <_POSIX_signals_Unblock_thread+0xb4>
_Thread_queue_Extract_with_proxy( the_thread );
1123a5: 83 ec 0c sub $0xc,%esp
1123a8: 53 push %ebx
1123a9: e8 d6 a5 ff ff call 10c984 <_Thread_queue_Extract_with_proxy>
1123ae: eb 1e jmp 1123ce <_POSIX_signals_Unblock_thread+0xd2>
else if ( _States_Is_delaying(the_thread->current_state) ){
1123b0: 80 e1 08 and $0x8,%cl
1123b3: 74 3c je 1123f1 <_POSIX_signals_Unblock_thread+0xf5><== NEVER TAKEN
(void) _Watchdog_Remove( &the_thread->Timer );
1123b5: 83 ec 0c sub $0xc,%esp
1123b8: 8d 43 48 lea 0x48(%ebx),%eax
1123bb: 50 push %eax
1123bc: e8 37 ae ff ff call 10d1f8 <_Watchdog_Remove>
RTEMS_INLINE_ROUTINE void _Thread_Unblock (
Thread_Control *the_thread
)
{
_Thread_Clear_state( the_thread, STATES_BLOCKED );
1123c1: 58 pop %eax
1123c2: 5a pop %edx
1123c3: 68 f8 ff 03 10 push $0x1003fff8
1123c8: 53 push %ebx
1123c9: e8 c6 9b ff ff call 10bf94 <_Thread_Clear_state>
1123ce: 31 c0 xor %eax,%eax
1123d0: 83 c4 10 add $0x10,%esp
1123d3: eb 1e jmp 1123f3 <_POSIX_signals_Unblock_thread+0xf7>
_Thread_Unblock( the_thread );
}
} else if ( the_thread->current_state == STATES_READY ) {
1123d5: 85 c9 test %ecx,%ecx
1123d7: 75 18 jne 1123f1 <_POSIX_signals_Unblock_thread+0xf5><== NEVER TAKEN
if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) )
1123d9: a1 a0 62 12 00 mov 0x1262a0,%eax
1123de: 85 c0 test %eax,%eax
1123e0: 74 0f je 1123f1 <_POSIX_signals_Unblock_thread+0xf5>
1123e2: 3b 1d c4 62 12 00 cmp 0x1262c4,%ebx
1123e8: 75 07 jne 1123f1 <_POSIX_signals_Unblock_thread+0xf5><== NEVER TAKEN
_ISR_Signals_to_thread_executing = true;
1123ea: c6 05 58 63 12 00 01 movb $0x1,0x126358
1123f1: 31 c0 xor %eax,%eax
}
}
return false;
}
1123f3: 8d 65 f4 lea -0xc(%ebp),%esp
1123f6: 5b pop %ebx
1123f7: 5e pop %esi
1123f8: 5f pop %edi
1123f9: c9 leave
1123fa: c3 ret
00100220 <_Partition_Manager_initialization>:
#include <rtems/rtems/part.h>
#include <rtems/score/thread.h>
#include <rtems/score/interr.h>
void _Partition_Manager_initialization(void)
{
100220: 55 push %ebp
100221: 89 e5 mov %esp,%ebp
}
100223: c9 leave
100224: c3 ret
0010fcce <_RTEMS_tasks_Post_switch_extension>:
*/
void _RTEMS_tasks_Post_switch_extension(
Thread_Control *executing
)
{
10fcce: 55 push %ebp
10fccf: 89 e5 mov %esp,%ebp
10fcd1: 57 push %edi
10fcd2: 56 push %esi
10fcd3: 53 push %ebx
10fcd4: 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 ];
10fcd7: 8b 45 08 mov 0x8(%ebp),%eax
10fcda: 8b 98 f4 00 00 00 mov 0xf4(%eax),%ebx
if ( !api )
10fce0: 85 db test %ebx,%ebx
10fce2: 74 45 je 10fd29 <_RTEMS_tasks_Post_switch_extension+0x5b><== NEVER TAKEN
* Signal Processing
*/
asr = &api->Signal;
_ISR_Disable( level );
10fce4: 9c pushf
10fce5: fa cli
10fce6: 58 pop %eax
signal_set = asr->signals_posted;
10fce7: 8b 7b 14 mov 0x14(%ebx),%edi
asr->signals_posted = 0;
10fcea: c7 43 14 00 00 00 00 movl $0x0,0x14(%ebx)
_ISR_Enable( level );
10fcf1: 50 push %eax
10fcf2: 9d popf
if ( !signal_set ) /* similar to _ASR_Are_signals_pending( asr ) */
10fcf3: 85 ff test %edi,%edi
10fcf5: 74 32 je 10fd29 <_RTEMS_tasks_Post_switch_extension+0x5b>
return;
asr->nest_level += 1;
10fcf7: ff 43 1c incl 0x1c(%ebx)
rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode );
10fcfa: 50 push %eax
10fcfb: 8d 75 e4 lea -0x1c(%ebp),%esi
10fcfe: 56 push %esi
10fcff: 68 ff ff 00 00 push $0xffff
10fd04: ff 73 10 pushl 0x10(%ebx)
10fd07: e8 ac 28 00 00 call 1125b8 <rtems_task_mode>
(*asr->handler)( signal_set );
10fd0c: 89 3c 24 mov %edi,(%esp)
10fd0f: ff 53 0c call *0xc(%ebx)
asr->nest_level -= 1;
10fd12: ff 4b 1c decl 0x1c(%ebx)
rtems_task_mode( prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode );
10fd15: 83 c4 0c add $0xc,%esp
10fd18: 56 push %esi
10fd19: 68 ff ff 00 00 push $0xffff
10fd1e: ff 75 e4 pushl -0x1c(%ebp)
10fd21: e8 92 28 00 00 call 1125b8 <rtems_task_mode>
10fd26: 83 c4 10 add $0x10,%esp
}
10fd29: 8d 65 f4 lea -0xc(%ebp),%esp
10fd2c: 5b pop %ebx
10fd2d: 5e pop %esi
10fd2e: 5f pop %edi
10fd2f: c9 leave
10fd30: c3 ret
00100240 <_Rate_monotonic_Manager_initialization>:
#include <rtems/rtems/types.h>
#include <rtems/rtems/ratemon.h>
void _Rate_monotonic_Manager_initialization(void)
{
100240: 55 push %ebp
100241: 89 e5 mov %esp,%ebp
}
100243: c9 leave
100244: c3 ret
0013b98c <_Rate_monotonic_Timeout>:
void _Rate_monotonic_Timeout(
Objects_Id id,
void *ignored
)
{
13b98c: 55 push %ebp
13b98d: 89 e5 mov %esp,%ebp
13b98f: 53 push %ebx
13b990: 83 ec 18 sub $0x18,%esp
13b993: 8d 45 f4 lea -0xc(%ebp),%eax
13b996: 50 push %eax
13b997: ff 75 08 pushl 0x8(%ebp)
13b99a: 68 24 ac 16 00 push $0x16ac24
13b99f: e8 64 6d fd ff call 112708 <_Objects_Get>
13b9a4: 89 c3 mov %eax,%ebx
/*
* When we get here, the Timer is already off the chain so we do not
* have to worry about that -- hence no _Watchdog_Remove().
*/
the_period = _Rate_monotonic_Get( id, &location );
switch ( location ) {
13b9a6: 83 c4 10 add $0x10,%esp
13b9a9: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
13b9ad: 75 64 jne 13ba13 <_Rate_monotonic_Timeout+0x87><== NEVER TAKEN
case OBJECTS_LOCAL:
the_thread = the_period->owner;
13b9af: 8b 40 40 mov 0x40(%eax),%eax
if ( _States_Is_waiting_for_period( the_thread->current_state ) &&
13b9b2: f6 40 11 40 testb $0x40,0x11(%eax)
13b9b6: 74 18 je 13b9d0 <_Rate_monotonic_Timeout+0x44>
the_thread->Wait.id == the_period->Object.id ) {
13b9b8: 8b 50 20 mov 0x20(%eax),%edx
13b9bb: 3b 53 08 cmp 0x8(%ebx),%edx
13b9be: 75 10 jne 13b9d0 <_Rate_monotonic_Timeout+0x44>
RTEMS_INLINE_ROUTINE void _Thread_Unblock (
Thread_Control *the_thread
)
{
_Thread_Clear_state( the_thread, STATES_BLOCKED );
13b9c0: 52 push %edx
13b9c1: 52 push %edx
13b9c2: 68 f8 ff 03 10 push $0x1003fff8
13b9c7: 50 push %eax
13b9c8: e8 5f 72 fd ff call 112c2c <_Thread_Clear_state>
_Thread_Unblock( the_thread );
_Rate_monotonic_Initiate_statistics( the_period );
13b9cd: 59 pop %ecx
13b9ce: eb 10 jmp 13b9e0 <_Rate_monotonic_Timeout+0x54>
_Watchdog_Insert_ticks( &the_period->Timer, the_period->next_length );
} else if ( the_period->state == RATE_MONOTONIC_OWNER_IS_BLOCKING ) {
13b9d0: 83 7b 38 01 cmpl $0x1,0x38(%ebx)
13b9d4: 75 2b jne 13ba01 <_Rate_monotonic_Timeout+0x75>
the_period->state = RATE_MONOTONIC_EXPIRED_WHILE_BLOCKING;
13b9d6: c7 43 38 03 00 00 00 movl $0x3,0x38(%ebx)
_Rate_monotonic_Initiate_statistics( the_period );
13b9dd: 83 ec 0c sub $0xc,%esp
13b9e0: 53 push %ebx
13b9e1: e8 52 fc ff ff call 13b638 <_Rate_monotonic_Initiate_statistics>
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
13b9e6: 8b 43 3c mov 0x3c(%ebx),%eax
13b9e9: 89 43 1c mov %eax,0x1c(%ebx)
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
13b9ec: 58 pop %eax
13b9ed: 5a pop %edx
13b9ee: 83 c3 10 add $0x10,%ebx
13b9f1: 53 push %ebx
13b9f2: 68 00 a2 16 00 push $0x16a200
13b9f7: e8 ac 83 fd ff call 113da8 <_Watchdog_Insert>
13b9fc: 83 c4 10 add $0x10,%esp
13b9ff: eb 07 jmp 13ba08 <_Rate_monotonic_Timeout+0x7c>
_Watchdog_Insert_ticks( &the_period->Timer, the_period->next_length );
} else
the_period->state = RATE_MONOTONIC_EXPIRED;
13ba01: 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;
13ba08: a1 24 a1 16 00 mov 0x16a124,%eax
13ba0d: 48 dec %eax
13ba0e: a3 24 a1 16 00 mov %eax,0x16a124
case OBJECTS_REMOTE: /* impossible */
#endif
case OBJECTS_ERROR:
break;
}
}
13ba13: 8b 5d fc mov -0x4(%ebp),%ebx
13ba16: c9 leave
13ba17: c3 ret
00100228 <_Region_Manager_initialization>:
#include <rtems/score/states.h>
#include <rtems/score/thread.h>
#include <rtems/score/interr.h>
void _Region_Manager_initialization(void)
{
100228: 55 push %ebp
100229: 89 e5 mov %esp,%ebp
}
10022b: c9 leave
10022c: c3 ret
0010b120 <_TOD_Validate>:
*/
bool _TOD_Validate(
const rtems_time_of_day *the_tod
)
{
10b120: 55 push %ebp
10b121: 89 e5 mov %esp,%ebp
10b123: 53 push %ebx
10b124: 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();
10b127: 8b 1d 64 5c 12 00 mov 0x125c64,%ebx
if ((!the_tod) ||
10b12d: 85 c9 test %ecx,%ecx
10b12f: 74 59 je 10b18a <_TOD_Validate+0x6a> <== NEVER TAKEN
(the_tod->ticks >= ticks_per_second) ||
10b131: b8 40 42 0f 00 mov $0xf4240,%eax
10b136: 31 d2 xor %edx,%edx
10b138: f7 f3 div %ebx
10b13a: 39 41 18 cmp %eax,0x18(%ecx)
10b13d: 73 4b jae 10b18a <_TOD_Validate+0x6a>
(the_tod->second >= TOD_SECONDS_PER_MINUTE) ||
10b13f: 83 79 14 3b cmpl $0x3b,0x14(%ecx)
10b143: 77 45 ja 10b18a <_TOD_Validate+0x6a>
(the_tod->minute >= TOD_MINUTES_PER_HOUR) ||
10b145: 83 79 10 3b cmpl $0x3b,0x10(%ecx)
10b149: 77 3f ja 10b18a <_TOD_Validate+0x6a>
(the_tod->hour >= TOD_HOURS_PER_DAY) ||
10b14b: 83 79 0c 17 cmpl $0x17,0xc(%ecx)
10b14f: 77 39 ja 10b18a <_TOD_Validate+0x6a>
(the_tod->month == 0) ||
10b151: 8b 41 04 mov 0x4(%ecx),%eax
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) ||
10b154: 85 c0 test %eax,%eax
10b156: 74 32 je 10b18a <_TOD_Validate+0x6a> <== NEVER TAKEN
10b158: 83 f8 0c cmp $0xc,%eax
10b15b: 77 2d ja 10b18a <_TOD_Validate+0x6a>
(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) ||
10b15d: 8b 19 mov (%ecx),%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) ||
10b15f: 81 fb c3 07 00 00 cmp $0x7c3,%ebx
10b165: 76 23 jbe 10b18a <_TOD_Validate+0x6a>
(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) ||
(the_tod->day == 0) )
10b167: 8b 51 08 mov 0x8(%ecx),%edx
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) ||
10b16a: 85 d2 test %edx,%edx
10b16c: 74 1c je 10b18a <_TOD_Validate+0x6a> <== NEVER TAKEN
(the_tod->month > TOD_MONTHS_PER_YEAR) ||
(the_tod->year < TOD_BASE_YEAR) ||
(the_tod->day == 0) )
return false;
if ( (the_tod->year % 4) == 0 )
10b16e: 80 e3 03 and $0x3,%bl
10b171: 75 09 jne 10b17c <_TOD_Validate+0x5c>
days_in_month = _TOD_Days_per_month[ 1 ][ the_tod->month ];
10b173: 8b 04 85 20 2b 12 00 mov 0x122b20(,%eax,4),%eax
10b17a: eb 07 jmp 10b183 <_TOD_Validate+0x63>
else
days_in_month = _TOD_Days_per_month[ 0 ][ the_tod->month ];
10b17c: 8b 04 85 ec 2a 12 00 mov 0x122aec(,%eax,4),%eax
* false - if the the_tod is invalid
*
* NOTE: This routine only works for leap-years through 2099.
*/
bool _TOD_Validate(
10b183: 39 c2 cmp %eax,%edx
10b185: 0f 96 c0 setbe %al
10b188: eb 02 jmp 10b18c <_TOD_Validate+0x6c>
10b18a: 31 c0 xor %eax,%eax
if ( the_tod->day > days_in_month )
return false;
return true;
}
10b18c: 5b pop %ebx
10b18d: c9 leave
10b18e: c3 ret
0010be74 <_Thread_Change_priority>:
void _Thread_Change_priority(
Thread_Control *the_thread,
Priority_Control new_priority,
bool prepend_it
)
{
10be74: 55 push %ebp
10be75: 89 e5 mov %esp,%ebp
10be77: 57 push %edi
10be78: 56 push %esi
10be79: 53 push %ebx
10be7a: 83 ec 28 sub $0x28,%esp
10be7d: 8b 5d 08 mov 0x8(%ebp),%ebx
10be80: 8b 7d 0c mov 0xc(%ebp),%edi
10be83: 8a 45 10 mov 0x10(%ebp),%al
10be86: 88 45 e7 mov %al,-0x19(%ebp)
*/
/*
* Save original state
*/
original_state = the_thread->current_state;
10be89: 8b 73 10 mov 0x10(%ebx),%esi
/*
* 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 );
10be8c: 53 push %ebx
10be8d: e8 4e 0d 00 00 call 10cbe0 <_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 )
10be92: 83 c4 10 add $0x10,%esp
10be95: 39 7b 14 cmp %edi,0x14(%ebx)
10be98: 74 0c je 10bea6 <_Thread_Change_priority+0x32>
_Thread_Set_priority( the_thread, new_priority );
10be9a: 50 push %eax
10be9b: 50 push %eax
10be9c: 57 push %edi
10be9d: 53 push %ebx
10be9e: e8 09 0c 00 00 call 10caac <_Thread_Set_priority>
10bea3: 83 c4 10 add $0x10,%esp
_ISR_Disable( level );
10bea6: 9c pushf
10bea7: fa cli
10bea8: 59 pop %ecx
/*
* 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;
10bea9: 8b 43 10 mov 0x10(%ebx),%eax
if ( state != STATES_TRANSIENT ) {
10beac: 83 f8 04 cmp $0x4,%eax
10beaf: 74 2f je 10bee0 <_Thread_Change_priority+0x6c>
/* Only clear the transient state if it wasn't set already */
if ( ! _States_Is_transient( original_state ) )
10beb1: 83 e6 04 and $0x4,%esi
10beb4: 75 08 jne 10bebe <_Thread_Change_priority+0x4a><== NEVER TAKEN
the_thread->current_state = _States_Clear( STATES_TRANSIENT, state );
10beb6: 89 c2 mov %eax,%edx
10beb8: 83 e2 fb and $0xfffffffb,%edx
10bebb: 89 53 10 mov %edx,0x10(%ebx)
_ISR_Enable( level );
10bebe: 51 push %ecx
10bebf: 9d popf
if ( _States_Is_waiting_on_thread_queue( state ) ) {
10bec0: a9 e0 be 03 00 test $0x3bee0,%eax
10bec5: 0f 84 c0 00 00 00 je 10bf8b <_Thread_Change_priority+0x117>
_Thread_queue_Requeue( the_thread->Wait.queue, the_thread );
10becb: 89 5d 0c mov %ebx,0xc(%ebp)
10bece: 8b 43 44 mov 0x44(%ebx),%eax
10bed1: 89 45 08 mov %eax,0x8(%ebp)
if ( !_Thread_Is_executing_also_the_heir() &&
_Thread_Executing->is_preemptible )
_Context_Switch_necessary = true;
_ISR_Enable( level );
}
10bed4: 8d 65 f4 lea -0xc(%ebp),%esp
10bed7: 5b pop %ebx
10bed8: 5e pop %esi
10bed9: 5f pop %edi
10beda: 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 );
10bedb: e9 44 0b 00 00 jmp 10ca24 <_Thread_queue_Requeue>
}
return;
}
/* Only clear the transient state if it wasn't set already */
if ( ! _States_Is_transient( original_state ) ) {
10bee0: 83 e6 04 and $0x4,%esi
10bee3: 75 53 jne 10bf38 <_Thread_Change_priority+0xc4><== 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 );
10bee5: c7 43 10 00 00 00 00 movl $0x0,0x10(%ebx)
RTEMS_INLINE_ROUTINE void _Priority_Add_to_bit_map (
Priority_Information *the_priority_map
)
{
*the_priority_map->minor |= the_priority_map->ready_minor;
10beec: 8b 83 90 00 00 00 mov 0x90(%ebx),%eax
10bef2: 66 8b 93 96 00 00 00 mov 0x96(%ebx),%dx
10bef9: 66 09 10 or %dx,(%eax)
_Priority_Major_bit_map |= the_priority_map->ready_major;
10befc: 66 a1 b8 62 12 00 mov 0x1262b8,%ax
10bf02: 0b 83 94 00 00 00 or 0x94(%ebx),%eax
10bf08: 66 a3 b8 62 12 00 mov %ax,0x1262b8
_Priority_Add_to_bit_map( &the_thread->Priority_map );
if ( prepend_it )
10bf0e: 80 7d e7 00 cmpb $0x0,-0x19(%ebp)
10bf12: 8b 83 8c 00 00 00 mov 0x8c(%ebx),%eax
10bf18: 74 0e je 10bf28 <_Thread_Change_priority+0xb4>
Chain_Node *the_node
)
{
Chain_Node *before_node;
the_node->previous = after_node;
10bf1a: 89 43 04 mov %eax,0x4(%ebx)
before_node = after_node->next;
10bf1d: 8b 10 mov (%eax),%edx
after_node->next = the_node;
10bf1f: 89 18 mov %ebx,(%eax)
the_node->next = before_node;
10bf21: 89 13 mov %edx,(%ebx)
before_node->previous = the_node;
10bf23: 89 5a 04 mov %ebx,0x4(%edx)
10bf26: eb 10 jmp 10bf38 <_Thread_Change_priority+0xc4>
Chain_Node *the_node
)
{
Chain_Node *old_last_node;
the_node->next = _Chain_Tail(the_chain);
10bf28: 8d 50 04 lea 0x4(%eax),%edx
10bf2b: 89 13 mov %edx,(%ebx)
old_last_node = the_chain->last;
10bf2d: 8b 50 08 mov 0x8(%eax),%edx
the_chain->last = the_node;
10bf30: 89 58 08 mov %ebx,0x8(%eax)
old_last_node->next = the_node;
10bf33: 89 1a mov %ebx,(%edx)
the_node->previous = old_last_node;
10bf35: 89 53 04 mov %edx,0x4(%ebx)
_Chain_Prepend_unprotected( the_thread->ready, &the_thread->Object.Node );
else
_Chain_Append_unprotected( the_thread->ready, &the_thread->Object.Node );
}
_ISR_Flash( level );
10bf38: 51 push %ecx
10bf39: 9d popf
10bf3a: fa cli
RTEMS_INLINE_ROUTINE Priority_Control _Priority_Get_highest( void )
{
Priority_Bit_map_control minor;
Priority_Bit_map_control major;
_Bitfield_Find_first_bit( _Priority_Major_bit_map, major );
10bf3b: 66 8b 1d b8 62 12 00 mov 0x1262b8,%bx
10bf42: 31 c0 xor %eax,%eax
10bf44: 89 c2 mov %eax,%edx
10bf46: 66 0f bc d3 bsf %bx,%dx
_Bitfield_Find_first_bit( _Priority_Bit_map[major], minor );
10bf4a: 0f b7 d2 movzwl %dx,%edx
10bf4d: 66 8b 9c 12 30 63 12 mov 0x126330(%edx,%edx,1),%bx
10bf54: 00
10bf55: 66 0f bc c3 bsf %bx,%ax
* ready thread.
*/
RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void )
{
_Thread_Heir = (Thread_Control *)
10bf59: c1 e2 04 shl $0x4,%edx
10bf5c: 0f b7 c0 movzwl %ax,%eax
10bf5f: 01 c2 add %eax,%edx
10bf61: 6b d2 0c imul $0xc,%edx,%edx
10bf64: 8b 1d d0 61 12 00 mov 0x1261d0,%ebx
10bf6a: 8b 14 1a mov (%edx,%ebx,1),%edx
10bf6d: 89 15 94 62 12 00 mov %edx,0x126294
* is also the heir thread, and false otherwise.
*/
RTEMS_INLINE_ROUTINE bool _Thread_Is_executing_also_the_heir( void )
{
return ( _Thread_Executing == _Thread_Heir );
10bf73: a1 c4 62 12 00 mov 0x1262c4,%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.
*/
_Thread_Calculate_heir();
if ( !_Thread_Is_executing_also_the_heir() &&
10bf78: 39 d0 cmp %edx,%eax
10bf7a: 74 0d je 10bf89 <_Thread_Change_priority+0x115>
_Thread_Executing->is_preemptible )
10bf7c: 80 78 75 00 cmpb $0x0,0x75(%eax)
10bf80: 74 07 je 10bf89 <_Thread_Change_priority+0x115>
_Context_Switch_necessary = true;
10bf82: c6 05 d4 62 12 00 01 movb $0x1,0x1262d4
_ISR_Enable( level );
10bf89: 51 push %ecx
10bf8a: 9d popf
}
10bf8b: 8d 65 f4 lea -0xc(%ebp),%esp
10bf8e: 5b pop %ebx
10bf8f: 5e pop %esi
10bf90: 5f pop %edi
10bf91: c9 leave
10bf92: c3 ret
0010bf94 <_Thread_Clear_state>:
void _Thread_Clear_state(
Thread_Control *the_thread,
States_Control state
)
{
10bf94: 55 push %ebp
10bf95: 89 e5 mov %esp,%ebp
10bf97: 53 push %ebx
10bf98: 8b 45 08 mov 0x8(%ebp),%eax
10bf9b: 8b 55 0c mov 0xc(%ebp),%edx
ISR_Level level;
States_Control current_state;
_ISR_Disable( level );
10bf9e: 9c pushf
10bf9f: fa cli
10bfa0: 59 pop %ecx
current_state = the_thread->current_state;
10bfa1: 8b 58 10 mov 0x10(%eax),%ebx
if ( current_state & state ) {
10bfa4: 85 da test %ebx,%edx
10bfa6: 74 71 je 10c019 <_Thread_Clear_state+0x85>
RTEMS_INLINE_ROUTINE States_Control _States_Clear (
States_Control states_to_clear,
States_Control current_state
)
{
return (current_state & ~states_to_clear);
10bfa8: f7 d2 not %edx
10bfaa: 21 da and %ebx,%edx
current_state =
10bfac: 89 50 10 mov %edx,0x10(%eax)
the_thread->current_state = _States_Clear( state, current_state );
if ( _States_Is_ready( current_state ) ) {
10bfaf: 85 d2 test %edx,%edx
10bfb1: 75 66 jne 10c019 <_Thread_Clear_state+0x85>
RTEMS_INLINE_ROUTINE void _Priority_Add_to_bit_map (
Priority_Information *the_priority_map
)
{
*the_priority_map->minor |= the_priority_map->ready_minor;
10bfb3: 8b 90 90 00 00 00 mov 0x90(%eax),%edx
10bfb9: 66 8b 98 96 00 00 00 mov 0x96(%eax),%bx
10bfc0: 66 09 1a or %bx,(%edx)
_Priority_Major_bit_map |= the_priority_map->ready_major;
10bfc3: 66 8b 15 b8 62 12 00 mov 0x1262b8,%dx
10bfca: 0b 90 94 00 00 00 or 0x94(%eax),%edx
10bfd0: 66 89 15 b8 62 12 00 mov %dx,0x1262b8
_Priority_Add_to_bit_map( &the_thread->Priority_map );
_Chain_Append_unprotected(the_thread->ready, &the_thread->Object.Node);
10bfd7: 8b 90 8c 00 00 00 mov 0x8c(%eax),%edx
Chain_Node *the_node
)
{
Chain_Node *old_last_node;
the_node->next = _Chain_Tail(the_chain);
10bfdd: 8d 5a 04 lea 0x4(%edx),%ebx
10bfe0: 89 18 mov %ebx,(%eax)
old_last_node = the_chain->last;
10bfe2: 8b 5a 08 mov 0x8(%edx),%ebx
the_chain->last = the_node;
10bfe5: 89 42 08 mov %eax,0x8(%edx)
old_last_node->next = the_node;
10bfe8: 89 03 mov %eax,(%ebx)
the_node->previous = old_last_node;
10bfea: 89 58 04 mov %ebx,0x4(%eax)
_ISR_Flash( level );
10bfed: 51 push %ecx
10bfee: 9d popf
10bfef: fa cli
* a context switch.
* Pseudo-ISR case:
* Even if the thread isn't preemptible, if the new heir is
* a pseudo-ISR system task, we need to do a context switch.
*/
if ( the_thread->current_priority < _Thread_Heir->current_priority ) {
10bff0: 8b 50 14 mov 0x14(%eax),%edx
10bff3: 8b 1d 94 62 12 00 mov 0x126294,%ebx
10bff9: 3b 53 14 cmp 0x14(%ebx),%edx
10bffc: 73 1b jae 10c019 <_Thread_Clear_state+0x85>
_Thread_Heir = the_thread;
10bffe: a3 94 62 12 00 mov %eax,0x126294
if ( _Thread_Executing->is_preemptible ||
10c003: a1 c4 62 12 00 mov 0x1262c4,%eax
10c008: 80 78 75 00 cmpb $0x0,0x75(%eax)
10c00c: 75 04 jne 10c012 <_Thread_Clear_state+0x7e>
10c00e: 85 d2 test %edx,%edx
10c010: 75 07 jne 10c019 <_Thread_Clear_state+0x85><== ALWAYS TAKEN
the_thread->current_priority == 0 )
_Context_Switch_necessary = true;
10c012: c6 05 d4 62 12 00 01 movb $0x1,0x1262d4
}
}
}
_ISR_Enable( level );
10c019: 51 push %ecx
10c01a: 9d popf
}
10c01b: 5b pop %ebx
10c01c: c9 leave
10c01d: c3 ret
0010c194 <_Thread_Delay_ended>:
void _Thread_Delay_ended(
Objects_Id id,
void *ignored __attribute__((unused))
)
{
10c194: 55 push %ebp
10c195: 89 e5 mov %esp,%ebp
10c197: 83 ec 20 sub $0x20,%esp
Thread_Control *the_thread;
Objects_Locations location;
the_thread = _Thread_Get( id, &location );
10c19a: 8d 45 f4 lea -0xc(%ebp),%eax
10c19d: 50 push %eax
10c19e: ff 75 08 pushl 0x8(%ebp)
10c1a1: e8 8e 01 00 00 call 10c334 <_Thread_Get>
switch ( location ) {
10c1a6: 83 c4 10 add $0x10,%esp
10c1a9: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
10c1ad: 75 1b jne 10c1ca <_Thread_Delay_ended+0x36><== NEVER TAKEN
#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE: /* impossible */
#endif
break;
case OBJECTS_LOCAL:
_Thread_Clear_state(
10c1af: 52 push %edx
10c1b0: 52 push %edx
10c1b1: 68 18 00 00 10 push $0x10000018
10c1b6: 50 push %eax
10c1b7: e8 d8 fd ff ff call 10bf94 <_Thread_Clear_state>
10c1bc: a1 08 62 12 00 mov 0x126208,%eax
10c1c1: 48 dec %eax
10c1c2: a3 08 62 12 00 mov %eax,0x126208
10c1c7: 83 c4 10 add $0x10,%esp
| STATES_INTERRUPTIBLE_BY_SIGNAL
);
_Thread_Unnest_dispatch();
break;
}
}
10c1ca: c9 leave
10c1cb: c3 ret
0010c1cc <_Thread_Dispatch>:
* dispatch thread
* no dispatch thread
*/
void _Thread_Dispatch( void )
{
10c1cc: 55 push %ebp
10c1cd: 89 e5 mov %esp,%ebp
10c1cf: 57 push %edi
10c1d0: 56 push %esi
10c1d1: 53 push %ebx
10c1d2: 83 ec 1c sub $0x1c,%esp
Thread_Control *executing;
Thread_Control *heir;
ISR_Level level;
executing = _Thread_Executing;
10c1d5: 8b 1d c4 62 12 00 mov 0x1262c4,%ebx
_ISR_Disable( level );
10c1db: 9c pushf
10c1dc: fa cli
10c1dd: 58 pop %eax
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
{
Timestamp_Control uptime, ran;
_TOD_Get_uptime( &uptime );
_Timestamp_Subtract(
10c1de: 8d 7d d8 lea -0x28(%ebp),%edi
Thread_Control *heir;
ISR_Level level;
executing = _Thread_Executing;
_ISR_Disable( level );
while ( _Context_Switch_necessary == true ) {
10c1e1: e9 f1 00 00 00 jmp 10c2d7 <_Thread_Dispatch+0x10b>
heir = _Thread_Heir;
10c1e6: 8b 35 94 62 12 00 mov 0x126294,%esi
_Thread_Dispatch_disable_level = 1;
10c1ec: c7 05 08 62 12 00 01 movl $0x1,0x126208
10c1f3: 00 00 00
_Context_Switch_necessary = false;
10c1f6: c6 05 d4 62 12 00 00 movb $0x0,0x1262d4
_Thread_Executing = heir;
10c1fd: 89 35 c4 62 12 00 mov %esi,0x1262c4
#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 )
10c203: 83 7e 7c 01 cmpl $0x1,0x7c(%esi)
10c207: 75 09 jne 10c212 <_Thread_Dispatch+0x46>
heir->cpu_time_budget = _Thread_Ticks_per_timeslice;
10c209: 8b 15 d4 61 12 00 mov 0x1261d4,%edx
10c20f: 89 56 78 mov %edx,0x78(%esi)
_ISR_Enable( level );
10c212: 50 push %eax
10c213: 9d popf
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
{
Timestamp_Control uptime, ran;
_TOD_Get_uptime( &uptime );
10c214: 83 ec 0c sub $0xc,%esp
10c217: 8d 45 e0 lea -0x20(%ebp),%eax
10c21a: 50 push %eax
10c21b: e8 6c 3f 00 00 call 11018c <_TOD_Get_uptime>
_Timestamp_Subtract(
10c220: 83 c4 0c add $0xc,%esp
10c223: 57 push %edi
10c224: 8d 45 e0 lea -0x20(%ebp),%eax
10c227: 50 push %eax
10c228: 68 cc 62 12 00 push $0x1262cc
10c22d: e8 4e 0c 00 00 call 10ce80 <_Timespec_Subtract>
&_Thread_Time_of_last_context_switch,
&uptime,
&ran
);
_Timestamp_Add_to( &executing->cpu_time_used, &ran );
10c232: 58 pop %eax
10c233: 5a pop %edx
10c234: 57 push %edi
10c235: 8d 83 84 00 00 00 lea 0x84(%ebx),%eax
10c23b: 50 push %eax
10c23c: e8 0f 0c 00 00 call 10ce50 <_Timespec_Add_to>
_Thread_Time_of_last_context_switch = uptime;
10c241: 8b 45 e0 mov -0x20(%ebp),%eax
10c244: 8b 55 e4 mov -0x1c(%ebp),%edx
10c247: a3 cc 62 12 00 mov %eax,0x1262cc
10c24c: 89 15 d0 62 12 00 mov %edx,0x1262d0
#endif
/*
* Switch libc's task specific data.
*/
if ( _Thread_libc_reent ) {
10c252: a1 90 62 12 00 mov 0x126290,%eax
10c257: 83 c4 10 add $0x10,%esp
10c25a: 85 c0 test %eax,%eax
10c25c: 74 10 je 10c26e <_Thread_Dispatch+0xa2> <== NEVER TAKEN
executing->libc_reent = *_Thread_libc_reent;
10c25e: 8b 10 mov (%eax),%edx
10c260: 89 93 f0 00 00 00 mov %edx,0xf0(%ebx)
*_Thread_libc_reent = heir->libc_reent;
10c266: 8b 96 f0 00 00 00 mov 0xf0(%esi),%edx
10c26c: 89 10 mov %edx,(%eax)
}
_User_extensions_Thread_switch( executing, heir );
10c26e: 51 push %ecx
10c26f: 51 push %ecx
10c270: 56 push %esi
10c271: 53 push %ebx
10c272: e8 39 0e 00 00 call 10d0b0 <_User_extensions_Thread_switch>
if ( executing->fp_context != NULL )
_Context_Save_fp( &executing->fp_context );
#endif
#endif
_Context_Switch( &executing->Registers, &heir->Registers );
10c277: 58 pop %eax
10c278: 5a pop %edx
10c279: 81 c6 d4 00 00 00 add $0xd4,%esi
10c27f: 56 push %esi
10c280: 8d 83 d4 00 00 00 lea 0xd4(%ebx),%eax
10c286: 50 push %eax
10c287: e8 e4 10 00 00 call 10d370 <_CPU_Context_switch>
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
#if ( CPU_USE_DEFERRED_FP_SWITCH == TRUE )
if ( (executing->fp_context != NULL) &&
10c28c: 83 c4 10 add $0x10,%esp
10c28f: 83 bb ec 00 00 00 00 cmpl $0x0,0xec(%ebx)
10c296: 74 36 je 10c2ce <_Thread_Dispatch+0x102>
#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 );
10c298: a1 8c 62 12 00 mov 0x12628c,%eax
10c29d: 39 c3 cmp %eax,%ebx
10c29f: 74 2d je 10c2ce <_Thread_Dispatch+0x102>
!_Thread_Is_allocated_fp( executing ) ) {
if ( _Thread_Allocated_fp != NULL )
10c2a1: 85 c0 test %eax,%eax
10c2a3: 74 11 je 10c2b6 <_Thread_Dispatch+0xea>
_Context_Save_fp( &_Thread_Allocated_fp->fp_context );
10c2a5: 83 ec 0c sub $0xc,%esp
10c2a8: 05 ec 00 00 00 add $0xec,%eax
10c2ad: 50 push %eax
10c2ae: e8 f1 10 00 00 call 10d3a4 <_CPU_Context_save_fp>
10c2b3: 83 c4 10 add $0x10,%esp
_Context_Restore_fp( &executing->fp_context );
10c2b6: 83 ec 0c sub $0xc,%esp
10c2b9: 8d 83 ec 00 00 00 lea 0xec(%ebx),%eax
10c2bf: 50 push %eax
10c2c0: e8 e9 10 00 00 call 10d3ae <_CPU_Context_restore_fp>
_Thread_Allocated_fp = executing;
10c2c5: 89 1d 8c 62 12 00 mov %ebx,0x12628c
10c2cb: 83 c4 10 add $0x10,%esp
if ( executing->fp_context != NULL )
_Context_Restore_fp( &executing->fp_context );
#endif
#endif
executing = _Thread_Executing;
10c2ce: 8b 1d c4 62 12 00 mov 0x1262c4,%ebx
_ISR_Disable( level );
10c2d4: 9c pushf
10c2d5: fa cli
10c2d6: 58 pop %eax
Thread_Control *heir;
ISR_Level level;
executing = _Thread_Executing;
_ISR_Disable( level );
while ( _Context_Switch_necessary == true ) {
10c2d7: 8a 15 d4 62 12 00 mov 0x1262d4,%dl
10c2dd: 84 d2 test %dl,%dl
10c2df: 0f 85 01 ff ff ff jne 10c1e6 <_Thread_Dispatch+0x1a>
executing = _Thread_Executing;
_ISR_Disable( level );
}
_Thread_Dispatch_disable_level = 0;
10c2e5: c7 05 08 62 12 00 00 movl $0x0,0x126208
10c2ec: 00 00 00
_ISR_Enable( level );
10c2ef: 50 push %eax
10c2f0: 9d popf
if ( _Thread_Do_post_task_switch_extension ||
10c2f1: 83 3d a8 62 12 00 00 cmpl $0x0,0x1262a8
10c2f8: 75 06 jne 10c300 <_Thread_Dispatch+0x134>
executing->do_post_task_switch_extension ) {
10c2fa: 80 7b 74 00 cmpb $0x0,0x74(%ebx)
10c2fe: 74 09 je 10c309 <_Thread_Dispatch+0x13d>
executing->do_post_task_switch_extension = false;
10c300: c6 43 74 00 movb $0x0,0x74(%ebx)
_API_extensions_Run_postswitch();
10c304: e8 16 ea ff ff call 10ad1f <_API_extensions_Run_postswitch>
}
}
10c309: 8d 65 f4 lea -0xc(%ebp),%esp
10c30c: 5b pop %ebx
10c30d: 5e pop %esi
10c30e: 5f pop %edi
10c30f: c9 leave
10c310: c3 ret
001127d4 <_Thread_Evaluate_mode>:
*
* XXX
*/
bool _Thread_Evaluate_mode( void )
{
1127d4: 55 push %ebp
1127d5: 89 e5 mov %esp,%ebp
Thread_Control *executing;
executing = _Thread_Executing;
1127d7: a1 c4 62 12 00 mov 0x1262c4,%eax
if ( !_States_Is_ready( executing->current_state ) ||
1127dc: 83 78 10 00 cmpl $0x0,0x10(%eax)
1127e0: 75 0e jne 1127f0 <_Thread_Evaluate_mode+0x1c><== NEVER TAKEN
1127e2: 3b 05 94 62 12 00 cmp 0x126294,%eax
1127e8: 74 11 je 1127fb <_Thread_Evaluate_mode+0x27>
( !_Thread_Is_heir( executing ) && executing->is_preemptible ) ) {
1127ea: 80 78 75 00 cmpb $0x0,0x75(%eax)
1127ee: 74 0b je 1127fb <_Thread_Evaluate_mode+0x27><== NEVER TAKEN
_Context_Switch_necessary = true;
1127f0: c6 05 d4 62 12 00 01 movb $0x1,0x1262d4
1127f7: b0 01 mov $0x1,%al
return true;
1127f9: eb 02 jmp 1127fd <_Thread_Evaluate_mode+0x29>
1127fb: 31 c0 xor %eax,%eax
}
return false;
}
1127fd: c9 leave
1127fe: c3 ret
00112800 <_Thread_Handler>:
*
* Output parameters: NONE
*/
void _Thread_Handler( void )
{
112800: 55 push %ebp
112801: 89 e5 mov %esp,%ebp
112803: 53 push %ebx
112804: 83 ec 14 sub $0x14,%esp
#if defined(EXECUTE_GLOBAL_CONSTRUCTORS)
static char doneConstructors;
char doneCons;
#endif
executing = _Thread_Executing;
112807: 8b 1d c4 62 12 00 mov 0x1262c4,%ebx
/*
* have to put level into a register for those cpu's that use
* inline asm here
*/
level = executing->Start.isr_level;
11280d: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax
_ISR_Set_level(level);
112813: 85 c0 test %eax,%eax
112815: 74 03 je 11281a <_Thread_Handler+0x1a>
112817: fa cli
112818: eb 01 jmp 11281b <_Thread_Handler+0x1b>
11281a: fb sti
#if defined(EXECUTE_GLOBAL_CONSTRUCTORS)
doneCons = doneConstructors;
11281b: a0 c4 5e 12 00 mov 0x125ec4,%al
112820: 88 45 f7 mov %al,-0x9(%ebp)
doneConstructors = 1;
112823: c6 05 c4 5e 12 00 01 movb $0x1,0x125ec4
#endif
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
#if ( CPU_USE_DEFERRED_FP_SWITCH == TRUE )
if ( (executing->fp_context != NULL) &&
11282a: 83 bb ec 00 00 00 00 cmpl $0x0,0xec(%ebx)
112831: 74 24 je 112857 <_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 );
112833: a1 8c 62 12 00 mov 0x12628c,%eax
112838: 39 c3 cmp %eax,%ebx
11283a: 74 1b je 112857 <_Thread_Handler+0x57>
!_Thread_Is_allocated_fp( executing ) ) {
if ( _Thread_Allocated_fp != NULL )
11283c: 85 c0 test %eax,%eax
11283e: 74 11 je 112851 <_Thread_Handler+0x51>
_Context_Save_fp( &_Thread_Allocated_fp->fp_context );
112840: 83 ec 0c sub $0xc,%esp
112843: 05 ec 00 00 00 add $0xec,%eax
112848: 50 push %eax
112849: e8 56 ab ff ff call 10d3a4 <_CPU_Context_save_fp>
11284e: 83 c4 10 add $0x10,%esp
_Thread_Allocated_fp = executing;
112851: 89 1d 8c 62 12 00 mov %ebx,0x12628c
/*
* 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 );
112857: 83 ec 0c sub $0xc,%esp
11285a: 53 push %ebx
11285b: e8 04 a7 ff ff call 10cf64 <_User_extensions_Thread_begin>
/*
* At this point, the dispatch disable level BETTER be 1.
*/
_Thread_Enable_dispatch();
112860: e8 ac 9a ff ff call 10c311 <_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) */ {
112865: 83 c4 10 add $0x10,%esp
112868: 80 7d f7 00 cmpb $0x0,-0x9(%ebp)
11286c: 75 05 jne 112873 <_Thread_Handler+0x73>
INIT_NAME ();
11286e: e8 dd bf 00 00 call 11e850 <__start_set_sysctl_set>
}
#endif
if ( executing->Start.prototype == THREAD_START_NUMERIC ) {
112873: 8b 83 a0 00 00 00 mov 0xa0(%ebx),%eax
112879: 85 c0 test %eax,%eax
11287b: 75 0b jne 112888 <_Thread_Handler+0x88>
executing->Wait.return_argument =
(*(Thread_Entry_numeric) executing->Start.entry_point)(
11287d: 83 ec 0c sub $0xc,%esp
112880: ff b3 a8 00 00 00 pushl 0xa8(%ebx)
112886: eb 0c jmp 112894 <_Thread_Handler+0x94>
executing->Start.numeric_argument
);
}
#if defined(RTEMS_POSIX_API)
else if ( executing->Start.prototype == THREAD_START_POINTER ) {
112888: 48 dec %eax
112889: 75 15 jne 1128a0 <_Thread_Handler+0xa0> <== NEVER TAKEN
executing->Wait.return_argument =
(*(Thread_Entry_pointer) executing->Start.entry_point)(
11288b: 83 ec 0c sub $0xc,%esp
11288e: ff b3 a4 00 00 00 pushl 0xa4(%ebx)
112894: ff 93 9c 00 00 00 call *0x9c(%ebx)
executing->Start.numeric_argument
);
}
#if defined(RTEMS_POSIX_API)
else if ( executing->Start.prototype == THREAD_START_POINTER ) {
executing->Wait.return_argument =
11289a: 89 43 28 mov %eax,0x28(%ebx)
11289d: 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 );
1128a0: 83 ec 0c sub $0xc,%esp
1128a3: 53 push %ebx
1128a4: e8 ec a6 ff ff call 10cf95 <_User_extensions_Thread_exitted>
_Internal_error_Occurred(
1128a9: 83 c4 0c add $0xc,%esp
1128ac: 6a 06 push $0x6
1128ae: 6a 01 push $0x1
1128b0: 6a 00 push $0x0
1128b2: e8 bd 8d ff ff call 10b674 <_Internal_error_Occurred>
0010c3a8 <_Thread_Initialize>:
Thread_CPU_budget_algorithms budget_algorithm,
Thread_CPU_budget_algorithm_callout budget_callout,
uint32_t isr_level,
Objects_Name name
)
{
10c3a8: 55 push %ebp
10c3a9: 89 e5 mov %esp,%ebp
10c3ab: 57 push %edi
10c3ac: 56 push %esi
10c3ad: 53 push %ebx
10c3ae: 83 ec 1c sub $0x1c,%esp
10c3b1: 8b 5d 0c mov 0xc(%ebp),%ebx
10c3b4: 8b 4d 10 mov 0x10(%ebp),%ecx
10c3b7: 8b 75 14 mov 0x14(%ebp),%esi
10c3ba: 8a 55 18 mov 0x18(%ebp),%dl
10c3bd: 8a 45 20 mov 0x20(%ebp),%al
10c3c0: 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;
10c3c3: c7 83 f4 00 00 00 00 movl $0x0,0xf4(%ebx)
10c3ca: 00 00 00
10c3cd: c7 83 f8 00 00 00 00 movl $0x0,0xf8(%ebx)
10c3d4: 00 00 00
10c3d7: c7 83 fc 00 00 00 00 movl $0x0,0xfc(%ebx)
10c3de: 00 00 00
extensions_area = NULL;
the_thread->libc_reent = NULL;
10c3e1: c7 83 f0 00 00 00 00 movl $0x0,0xf0(%ebx)
10c3e8: 00 00 00
if ( !actual_stack_size || actual_stack_size < stack_size )
return false; /* stack allocation failed */
stack = the_thread->Start.stack;
#else
if ( !stack_area ) {
10c3eb: 85 c9 test %ecx,%ecx
10c3ed: 75 30 jne 10c41f <_Thread_Initialize+0x77>
actual_stack_size = _Thread_Stack_Allocate( the_thread, stack_size );
10c3ef: 51 push %ecx
10c3f0: 51 push %ecx
10c3f1: 56 push %esi
10c3f2: 53 push %ebx
10c3f3: 88 55 e0 mov %dl,-0x20(%ebp)
10c3f6: e8 59 08 00 00 call 10cc54 <_Thread_Stack_Allocate>
if ( !actual_stack_size || actual_stack_size < stack_size )
10c3fb: 83 c4 10 add $0x10,%esp
10c3fe: 39 f0 cmp %esi,%eax
10c400: 8a 55 e0 mov -0x20(%ebp),%dl
10c403: 72 04 jb 10c409 <_Thread_Initialize+0x61>
10c405: 85 c0 test %eax,%eax
10c407: 75 07 jne 10c410 <_Thread_Initialize+0x68><== ALWAYS TAKEN
10c409: 31 c0 xor %eax,%eax
10c40b: e9 d9 01 00 00 jmp 10c5e9 <_Thread_Initialize+0x241>
return false; /* stack allocation failed */
stack = the_thread->Start.stack;
10c410: 8b 8b d0 00 00 00 mov 0xd0(%ebx),%ecx
the_thread->Start.core_allocated_stack = true;
10c416: c6 83 c0 00 00 00 01 movb $0x1,0xc0(%ebx)
10c41d: eb 09 jmp 10c428 <_Thread_Initialize+0x80>
} else {
stack = stack_area;
actual_stack_size = stack_size;
the_thread->Start.core_allocated_stack = false;
10c41f: c6 83 c0 00 00 00 00 movb $0x0,0xc0(%ebx)
10c426: 89 f0 mov %esi,%eax
Stack_Control *the_stack,
void *starting_address,
size_t size
)
{
the_stack->area = starting_address;
10c428: 89 8b c8 00 00 00 mov %ecx,0xc8(%ebx)
the_stack->size = size;
10c42e: 89 83 c4 00 00 00 mov %eax,0xc4(%ebx)
/*
* Allocate the floating point area for this thread
*/
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
if ( is_fp ) {
10c434: 31 ff xor %edi,%edi
10c436: 84 d2 test %dl,%dl
10c438: 74 19 je 10c453 <_Thread_Initialize+0xab>
fp_area = _Workspace_Allocate( CONTEXT_FP_SIZE );
10c43a: 83 ec 0c sub $0xc,%esp
10c43d: 6a 6c push $0x6c
10c43f: e8 b0 0e 00 00 call 10d2f4 <_Workspace_Allocate>
10c444: 89 c7 mov %eax,%edi
if ( !fp_area )
10c446: 83 c4 10 add $0x10,%esp
10c449: 31 f6 xor %esi,%esi
10c44b: 85 c0 test %eax,%eax
10c44d: 0f 84 10 01 00 00 je 10c563 <_Thread_Initialize+0x1bb>
goto failed;
fp_area = _Context_Fp_start( fp_area, 0 );
}
the_thread->fp_context = fp_area;
10c453: 89 bb ec 00 00 00 mov %edi,0xec(%ebx)
the_thread->Start.fp_context = fp_area;
10c459: 89 bb cc 00 00 00 mov %edi,0xcc(%ebx)
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
10c45f: c7 43 50 00 00 00 00 movl $0x0,0x50(%ebx)
the_watchdog->routine = routine;
10c466: c7 43 64 00 00 00 00 movl $0x0,0x64(%ebx)
the_watchdog->id = id;
10c46d: c7 43 68 00 00 00 00 movl $0x0,0x68(%ebx)
the_watchdog->user_data = user_data;
10c474: c7 43 6c 00 00 00 00 movl $0x0,0x6c(%ebx)
#endif
/*
* Allocate the extensions area for this thread
*/
if ( _Thread_Maximum_extensions ) {
10c47b: a1 a4 62 12 00 mov 0x1262a4,%eax
10c480: 31 f6 xor %esi,%esi
10c482: 85 c0 test %eax,%eax
10c484: 74 1d je 10c4a3 <_Thread_Initialize+0xfb>
extensions_area = _Workspace_Allocate(
10c486: 83 ec 0c sub $0xc,%esp
10c489: 8d 04 85 04 00 00 00 lea 0x4(,%eax,4),%eax
10c490: 50 push %eax
10c491: e8 5e 0e 00 00 call 10d2f4 <_Workspace_Allocate>
10c496: 89 c6 mov %eax,%esi
(_Thread_Maximum_extensions + 1) * sizeof( void * )
);
if ( !extensions_area )
10c498: 83 c4 10 add $0x10,%esp
10c49b: 85 c0 test %eax,%eax
10c49d: 0f 84 c0 00 00 00 je 10c563 <_Thread_Initialize+0x1bb>
goto failed;
}
the_thread->extensions = (void **) extensions_area;
10c4a3: 89 b3 00 01 00 00 mov %esi,0x100(%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 ) {
10c4a9: 85 f6 test %esi,%esi
10c4ab: 74 1c je 10c4c9 <_Thread_Initialize+0x121>
for ( i = 0; i <= _Thread_Maximum_extensions ; i++ )
10c4ad: 8b 0d a4 62 12 00 mov 0x1262a4,%ecx
10c4b3: 31 c0 xor %eax,%eax
10c4b5: eb 0e jmp 10c4c5 <_Thread_Initialize+0x11d>
the_thread->extensions[i] = NULL;
10c4b7: 8b 93 00 01 00 00 mov 0x100(%ebx),%edx
10c4bd: c7 04 82 00 00 00 00 movl $0x0,(%edx,%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++ )
10c4c4: 40 inc %eax
10c4c5: 39 c8 cmp %ecx,%eax
10c4c7: 76 ee jbe 10c4b7 <_Thread_Initialize+0x10f>
/*
* General initialization
*/
the_thread->Start.is_preemptible = is_preemptible;
10c4c9: 8a 45 e7 mov -0x19(%ebp),%al
10c4cc: 88 83 ac 00 00 00 mov %al,0xac(%ebx)
the_thread->Start.budget_algorithm = budget_algorithm;
10c4d2: 8b 45 24 mov 0x24(%ebp),%eax
10c4d5: 89 83 b0 00 00 00 mov %eax,0xb0(%ebx)
the_thread->Start.budget_callout = budget_callout;
10c4db: 8b 45 28 mov 0x28(%ebp),%eax
10c4de: 89 83 b4 00 00 00 mov %eax,0xb4(%ebx)
switch ( budget_algorithm ) {
10c4e4: 83 7d 24 02 cmpl $0x2,0x24(%ebp)
10c4e8: 75 08 jne 10c4f2 <_Thread_Initialize+0x14a>
case THREAD_CPU_BUDGET_ALGORITHM_NONE:
case THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE:
break;
#if defined(RTEMS_SCORE_THREAD_ENABLE_EXHAUST_TIMESLICE)
case THREAD_CPU_BUDGET_ALGORITHM_EXHAUST_TIMESLICE:
the_thread->cpu_time_budget = _Thread_Ticks_per_timeslice;
10c4ea: a1 d4 61 12 00 mov 0x1261d4,%eax
10c4ef: 89 43 78 mov %eax,0x78(%ebx)
case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT:
break;
#endif
}
the_thread->Start.isr_level = isr_level;
10c4f2: 8b 45 2c mov 0x2c(%ebp),%eax
10c4f5: 89 83 b8 00 00 00 mov %eax,0xb8(%ebx)
the_thread->current_state = STATES_DORMANT;
10c4fb: c7 43 10 01 00 00 00 movl $0x1,0x10(%ebx)
the_thread->Wait.queue = NULL;
10c502: c7 43 44 00 00 00 00 movl $0x0,0x44(%ebx)
the_thread->resource_count = 0;
10c509: c7 43 1c 00 00 00 00 movl $0x0,0x1c(%ebx)
#if defined(RTEMS_ITRON_API)
the_thread->suspend_count = 0;
#endif
the_thread->real_priority = priority;
10c510: 8b 45 1c mov 0x1c(%ebp),%eax
10c513: 89 43 18 mov %eax,0x18(%ebx)
the_thread->Start.initial_priority = priority;
10c516: 89 83 bc 00 00 00 mov %eax,0xbc(%ebx)
_Thread_Set_priority( the_thread, priority );
10c51c: 52 push %edx
10c51d: 52 push %edx
10c51e: 50 push %eax
10c51f: 53 push %ebx
10c520: e8 87 05 00 00 call 10caac <_Thread_Set_priority>
/*
* Initialize the CPU usage statistics
*/
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
_Timestamp_Set_to_zero( &the_thread->cpu_time_used );
10c525: c7 83 84 00 00 00 00 movl $0x0,0x84(%ebx)
10c52c: 00 00 00
10c52f: c7 83 88 00 00 00 00 movl $0x0,0x88(%ebx)
10c536: 00 00 00
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
10c539: 0f b7 53 08 movzwl 0x8(%ebx),%edx
10c53d: 8b 45 08 mov 0x8(%ebp),%eax
10c540: 8b 40 1c mov 0x1c(%eax),%eax
10c543: 89 1c 90 mov %ebx,(%eax,%edx,4)
information,
_Objects_Get_index( the_object->id ),
the_object
);
the_object->name = name;
10c546: 8b 45 30 mov 0x30(%ebp),%eax
10c549: 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 );
10c54c: 89 1c 24 mov %ebx,(%esp)
10c54f: e8 b0 0a 00 00 call 10d004 <_User_extensions_Thread_create>
10c554: 88 c2 mov %al,%dl
if ( extension_status )
10c556: 83 c4 10 add $0x10,%esp
10c559: b0 01 mov $0x1,%al
10c55b: 84 d2 test %dl,%dl
10c55d: 0f 85 86 00 00 00 jne 10c5e9 <_Thread_Initialize+0x241>
return true;
failed:
if ( the_thread->libc_reent )
10c563: 8b 83 f0 00 00 00 mov 0xf0(%ebx),%eax
10c569: 85 c0 test %eax,%eax
10c56b: 74 0c je 10c579 <_Thread_Initialize+0x1d1>
_Workspace_Free( the_thread->libc_reent );
10c56d: 83 ec 0c sub $0xc,%esp
10c570: 50 push %eax
10c571: e8 97 0d 00 00 call 10d30d <_Workspace_Free>
10c576: 83 c4 10 add $0x10,%esp
for ( i=0 ; i <= THREAD_API_LAST ; i++ )
if ( the_thread->API_Extensions[i] )
10c579: 8b 83 f4 00 00 00 mov 0xf4(%ebx),%eax
10c57f: 85 c0 test %eax,%eax
10c581: 74 0c je 10c58f <_Thread_Initialize+0x1e7>
_Workspace_Free( the_thread->API_Extensions[i] );
10c583: 83 ec 0c sub $0xc,%esp
10c586: 50 push %eax
10c587: e8 81 0d 00 00 call 10d30d <_Workspace_Free>
10c58c: 83 c4 10 add $0x10,%esp
failed:
if ( the_thread->libc_reent )
_Workspace_Free( the_thread->libc_reent );
for ( i=0 ; i <= THREAD_API_LAST ; i++ )
if ( the_thread->API_Extensions[i] )
10c58f: 8b 83 f8 00 00 00 mov 0xf8(%ebx),%eax
10c595: 85 c0 test %eax,%eax
10c597: 74 0c je 10c5a5 <_Thread_Initialize+0x1fd>
_Workspace_Free( the_thread->API_Extensions[i] );
10c599: 83 ec 0c sub $0xc,%esp
10c59c: 50 push %eax
10c59d: e8 6b 0d 00 00 call 10d30d <_Workspace_Free>
10c5a2: 83 c4 10 add $0x10,%esp
failed:
if ( the_thread->libc_reent )
_Workspace_Free( the_thread->libc_reent );
for ( i=0 ; i <= THREAD_API_LAST ; i++ )
if ( the_thread->API_Extensions[i] )
10c5a5: 8b 83 fc 00 00 00 mov 0xfc(%ebx),%eax
10c5ab: 85 c0 test %eax,%eax
10c5ad: 74 0c je 10c5bb <_Thread_Initialize+0x213><== ALWAYS TAKEN
_Workspace_Free( the_thread->API_Extensions[i] );
10c5af: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10c5b2: 50 push %eax <== NOT EXECUTED
10c5b3: e8 55 0d 00 00 call 10d30d <_Workspace_Free> <== NOT EXECUTED
10c5b8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
if ( extensions_area )
10c5bb: 85 f6 test %esi,%esi
10c5bd: 74 0c je 10c5cb <_Thread_Initialize+0x223>
(void) _Workspace_Free( extensions_area );
10c5bf: 83 ec 0c sub $0xc,%esp
10c5c2: 56 push %esi
10c5c3: e8 45 0d 00 00 call 10d30d <_Workspace_Free>
10c5c8: 83 c4 10 add $0x10,%esp
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
if ( fp_area )
10c5cb: 85 ff test %edi,%edi
10c5cd: 74 0c je 10c5db <_Thread_Initialize+0x233>
(void) _Workspace_Free( fp_area );
10c5cf: 83 ec 0c sub $0xc,%esp
10c5d2: 57 push %edi
10c5d3: e8 35 0d 00 00 call 10d30d <_Workspace_Free>
10c5d8: 83 c4 10 add $0x10,%esp
#endif
_Thread_Stack_Free( the_thread );
10c5db: 83 ec 0c sub $0xc,%esp
10c5de: 53 push %ebx
10c5df: e8 c0 06 00 00 call 10cca4 <_Thread_Stack_Free>
10c5e4: 31 c0 xor %eax,%eax
return false;
10c5e6: 83 c4 10 add $0x10,%esp
}
10c5e9: 8d 65 f4 lea -0xc(%ebp),%esp
10c5ec: 5b pop %ebx
10c5ed: 5e pop %esi
10c5ee: 5f pop %edi
10c5ef: c9 leave
10c5f0: c3 ret
0010f8bc <_Thread_Resume>:
void _Thread_Resume(
Thread_Control *the_thread,
bool force
)
{
10f8bc: 55 push %ebp
10f8bd: 89 e5 mov %esp,%ebp
10f8bf: 53 push %ebx
10f8c0: 8b 45 08 mov 0x8(%ebp),%eax
ISR_Level level;
States_Control current_state;
_ISR_Disable( level );
10f8c3: 9c pushf
10f8c4: fa cli
10f8c5: 59 pop %ecx
_ISR_Enable( level );
return;
}
#endif
current_state = the_thread->current_state;
10f8c6: 8b 50 10 mov 0x10(%eax),%edx
if ( current_state & STATES_SUSPENDED ) {
10f8c9: f6 c2 02 test $0x2,%dl
10f8cc: 74 70 je 10f93e <_Thread_Resume+0x82> <== NEVER TAKEN
10f8ce: 83 e2 fd and $0xfffffffd,%edx
current_state =
10f8d1: 89 50 10 mov %edx,0x10(%eax)
the_thread->current_state = _States_Clear(STATES_SUSPENDED, current_state);
if ( _States_Is_ready( current_state ) ) {
10f8d4: 85 d2 test %edx,%edx
10f8d6: 75 66 jne 10f93e <_Thread_Resume+0x82>
RTEMS_INLINE_ROUTINE void _Priority_Add_to_bit_map (
Priority_Information *the_priority_map
)
{
*the_priority_map->minor |= the_priority_map->ready_minor;
10f8d8: 8b 90 90 00 00 00 mov 0x90(%eax),%edx
10f8de: 66 8b 98 96 00 00 00 mov 0x96(%eax),%bx
10f8e5: 66 09 1a or %bx,(%edx)
_Priority_Major_bit_map |= the_priority_map->ready_major;
10f8e8: 66 8b 15 88 93 12 00 mov 0x129388,%dx
10f8ef: 0b 90 94 00 00 00 or 0x94(%eax),%edx
10f8f5: 66 89 15 88 93 12 00 mov %dx,0x129388
_Priority_Add_to_bit_map( &the_thread->Priority_map );
_Chain_Append_unprotected(the_thread->ready, &the_thread->Object.Node);
10f8fc: 8b 90 8c 00 00 00 mov 0x8c(%eax),%edx
Chain_Node *the_node
)
{
Chain_Node *old_last_node;
the_node->next = _Chain_Tail(the_chain);
10f902: 8d 5a 04 lea 0x4(%edx),%ebx
10f905: 89 18 mov %ebx,(%eax)
old_last_node = the_chain->last;
10f907: 8b 5a 08 mov 0x8(%edx),%ebx
the_chain->last = the_node;
10f90a: 89 42 08 mov %eax,0x8(%edx)
old_last_node->next = the_node;
10f90d: 89 03 mov %eax,(%ebx)
the_node->previous = old_last_node;
10f90f: 89 58 04 mov %ebx,0x4(%eax)
_ISR_Flash( level );
10f912: 51 push %ecx
10f913: 9d popf
10f914: fa cli
if ( the_thread->current_priority < _Thread_Heir->current_priority ) {
10f915: 8b 50 14 mov 0x14(%eax),%edx
10f918: 8b 1d 64 93 12 00 mov 0x129364,%ebx
10f91e: 3b 53 14 cmp 0x14(%ebx),%edx
10f921: 73 1b jae 10f93e <_Thread_Resume+0x82>
_Thread_Heir = the_thread;
10f923: a3 64 93 12 00 mov %eax,0x129364
if ( _Thread_Executing->is_preemptible ||
10f928: a1 94 93 12 00 mov 0x129394,%eax
10f92d: 80 78 75 00 cmpb $0x0,0x75(%eax)
10f931: 75 04 jne 10f937 <_Thread_Resume+0x7b>
10f933: 85 d2 test %edx,%edx
10f935: 75 07 jne 10f93e <_Thread_Resume+0x82> <== ALWAYS TAKEN
the_thread->current_priority == 0 )
_Context_Switch_necessary = true;
10f937: c6 05 a4 93 12 00 01 movb $0x1,0x1293a4
}
}
}
_ISR_Enable( level );
10f93e: 51 push %ecx
10f93f: 9d popf
}
10f940: 5b pop %ebx
10f941: c9 leave
10f942: c3 ret
0010cca4 <_Thread_Stack_Free>:
*/
void _Thread_Stack_Free(
Thread_Control *the_thread
)
{
10cca4: 55 push %ebp
10cca5: 89 e5 mov %esp,%ebp
10cca7: 83 ec 08 sub $0x8,%esp
10ccaa: 8b 45 08 mov 0x8(%ebp),%eax
#if defined(RTEMS_SCORE_THREAD_ENABLE_USER_PROVIDED_STACK_VIA_API)
/*
* If the API provided the stack space, then don't free it.
*/
if ( !the_thread->Start.core_allocated_stack )
10ccad: 80 b8 c0 00 00 00 00 cmpb $0x0,0xc0(%eax)
10ccb4: 74 1f je 10ccd5 <_Thread_Stack_Free+0x31><== NEVER TAKEN
* Call ONLY the CPU table stack free hook, or the
* the RTEMS workspace free. This is so the free
* routine properly matches the allocation of the stack.
*/
if ( Configuration.stack_free_hook )
10ccb6: 8b 15 1c 22 12 00 mov 0x12221c,%edx
10ccbc: 85 d2 test %edx,%edx
10ccbe: 8b 80 c8 00 00 00 mov 0xc8(%eax),%eax
10ccc4: 74 06 je 10cccc <_Thread_Stack_Free+0x28>
(*Configuration.stack_free_hook)( the_thread->Start.Initial_stack.area );
10ccc6: 89 45 08 mov %eax,0x8(%ebp)
else
_Workspace_Free( the_thread->Start.Initial_stack.area );
}
10ccc9: c9 leave
* the RTEMS workspace free. This is so the free
* routine properly matches the allocation of the stack.
*/
if ( Configuration.stack_free_hook )
(*Configuration.stack_free_hook)( the_thread->Start.Initial_stack.area );
10ccca: ff e2 jmp *%edx
else
_Workspace_Free( the_thread->Start.Initial_stack.area );
10cccc: 89 45 08 mov %eax,0x8(%ebp)
}
10cccf: c9 leave
*/
if ( Configuration.stack_free_hook )
(*Configuration.stack_free_hook)( the_thread->Start.Initial_stack.area );
else
_Workspace_Free( the_thread->Start.Initial_stack.area );
10ccd0: e9 38 06 00 00 jmp 10d30d <_Workspace_Free>
}
10ccd5: c9 leave <== NOT EXECUTED
10ccd6: c3 ret <== NOT EXECUTED
0010cd8c <_Thread_Tickle_timeslice>:
*
* Output parameters: NONE
*/
void _Thread_Tickle_timeslice( void )
{
10cd8c: 55 push %ebp
10cd8d: 89 e5 mov %esp,%ebp
10cd8f: 53 push %ebx
10cd90: 83 ec 04 sub $0x4,%esp
Thread_Control *executing;
executing = _Thread_Executing;
10cd93: 8b 1d c4 62 12 00 mov 0x1262c4,%ebx
/*
* If the thread is not preemptible or is not ready, then
* just return.
*/
if ( !executing->is_preemptible )
10cd99: 80 7b 75 00 cmpb $0x0,0x75(%ebx)
10cd9d: 74 4c je 10cdeb <_Thread_Tickle_timeslice+0x5f>
return;
if ( !_States_Is_ready( executing->current_state ) )
10cd9f: 83 7b 10 00 cmpl $0x0,0x10(%ebx)
10cda3: 75 46 jne 10cdeb <_Thread_Tickle_timeslice+0x5f>
/*
* The cpu budget algorithm determines what happens next.
*/
switch ( executing->budget_algorithm ) {
10cda5: 8b 43 7c mov 0x7c(%ebx),%eax
10cda8: 83 f8 01 cmp $0x1,%eax
10cdab: 72 3e jb 10cdeb <_Thread_Tickle_timeslice+0x5f>
10cdad: 83 f8 02 cmp $0x2,%eax
10cdb0: 76 07 jbe 10cdb9 <_Thread_Tickle_timeslice+0x2d>
10cdb2: 83 f8 03 cmp $0x3,%eax
10cdb5: 75 34 jne 10cdeb <_Thread_Tickle_timeslice+0x5f><== NEVER TAKEN
10cdb7: eb 1a jmp 10cdd3 <_Thread_Tickle_timeslice+0x47>
case THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE:
#if defined(RTEMS_SCORE_THREAD_ENABLE_EXHAUST_TIMESLICE)
case THREAD_CPU_BUDGET_ALGORITHM_EXHAUST_TIMESLICE:
#endif
if ( (int)(--executing->cpu_time_budget) <= 0 ) {
10cdb9: 8b 43 78 mov 0x78(%ebx),%eax
10cdbc: 48 dec %eax
10cdbd: 89 43 78 mov %eax,0x78(%ebx)
10cdc0: 85 c0 test %eax,%eax
10cdc2: 7f 27 jg 10cdeb <_Thread_Tickle_timeslice+0x5f>
_Thread_Reset_timeslice();
10cdc4: e8 03 3a 00 00 call 1107cc <_Thread_Reset_timeslice>
executing->cpu_time_budget = _Thread_Ticks_per_timeslice;
10cdc9: a1 d4 61 12 00 mov 0x1261d4,%eax
10cdce: 89 43 78 mov %eax,0x78(%ebx)
10cdd1: eb 18 jmp 10cdeb <_Thread_Tickle_timeslice+0x5f>
}
break;
#if defined(RTEMS_SCORE_THREAD_ENABLE_SCHEDULER_CALLOUT)
case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT:
if ( --executing->cpu_time_budget == 0 )
10cdd3: 8b 43 78 mov 0x78(%ebx),%eax
10cdd6: 48 dec %eax
10cdd7: 89 43 78 mov %eax,0x78(%ebx)
10cdda: 85 c0 test %eax,%eax
10cddc: 75 0d jne 10cdeb <_Thread_Tickle_timeslice+0x5f>
(*executing->budget_callout)( executing );
10cdde: 83 ec 0c sub $0xc,%esp
10cde1: 53 push %ebx
10cde2: ff 93 80 00 00 00 call *0x80(%ebx)
10cde8: 83 c4 10 add $0x10,%esp
break;
#endif
}
}
10cdeb: 8b 5d fc mov -0x4(%ebp),%ebx
10cdee: c9 leave
10cdef: c3 ret
0010cdf0 <_Thread_Yield_processor>:
* ready chain
* select heir
*/
void _Thread_Yield_processor( void )
{
10cdf0: 55 push %ebp
10cdf1: 89 e5 mov %esp,%ebp
10cdf3: 56 push %esi
10cdf4: 53 push %ebx
ISR_Level level;
Thread_Control *executing;
Chain_Control *ready;
executing = _Thread_Executing;
10cdf5: a1 c4 62 12 00 mov 0x1262c4,%eax
ready = executing->ready;
10cdfa: 8b 90 8c 00 00 00 mov 0x8c(%eax),%edx
_ISR_Disable( level );
10ce00: 9c pushf
10ce01: fa cli
10ce02: 59 pop %ecx
if ( !_Chain_Has_only_one_node( ready ) ) {
10ce03: 8b 1a mov (%edx),%ebx
10ce05: 3b 5a 08 cmp 0x8(%edx),%ebx
10ce08: 74 2e je 10ce38 <_Thread_Yield_processor+0x48>
)
{
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
10ce0a: 8b 30 mov (%eax),%esi
previous = the_node->previous;
10ce0c: 8b 58 04 mov 0x4(%eax),%ebx
next->previous = previous;
10ce0f: 89 5e 04 mov %ebx,0x4(%esi)
previous->next = next;
10ce12: 89 33 mov %esi,(%ebx)
Chain_Node *the_node
)
{
Chain_Node *old_last_node;
the_node->next = _Chain_Tail(the_chain);
10ce14: 8d 5a 04 lea 0x4(%edx),%ebx
10ce17: 89 18 mov %ebx,(%eax)
old_last_node = the_chain->last;
10ce19: 8b 5a 08 mov 0x8(%edx),%ebx
the_chain->last = the_node;
10ce1c: 89 42 08 mov %eax,0x8(%edx)
old_last_node->next = the_node;
10ce1f: 89 03 mov %eax,(%ebx)
the_node->previous = old_last_node;
10ce21: 89 58 04 mov %ebx,0x4(%eax)
_Chain_Extract_unprotected( &executing->Object.Node );
_Chain_Append_unprotected( ready, &executing->Object.Node );
_ISR_Flash( level );
10ce24: 51 push %ecx
10ce25: 9d popf
10ce26: fa cli
if ( _Thread_Is_heir( executing ) )
10ce27: 3b 05 94 62 12 00 cmp 0x126294,%eax
10ce2d: 75 11 jne 10ce40 <_Thread_Yield_processor+0x50><== NEVER TAKEN
_Thread_Heir = (Thread_Control *) ready->first;
10ce2f: 8b 02 mov (%edx),%eax
10ce31: a3 94 62 12 00 mov %eax,0x126294
10ce36: eb 08 jmp 10ce40 <_Thread_Yield_processor+0x50>
_Context_Switch_necessary = true;
}
else if ( !_Thread_Is_heir( executing ) )
10ce38: 3b 05 94 62 12 00 cmp 0x126294,%eax
10ce3e: 74 07 je 10ce47 <_Thread_Yield_processor+0x57><== ALWAYS TAKEN
_Context_Switch_necessary = true;
10ce40: c6 05 d4 62 12 00 01 movb $0x1,0x1262d4
_ISR_Enable( level );
10ce47: 51 push %ecx
10ce48: 9d popf
}
10ce49: 5b pop %ebx
10ce4a: 5e pop %esi
10ce4b: c9 leave
10ce4c: c3 ret
0010c854 <_Thread_queue_Enqueue_priority>:
Thread_blocking_operation_States _Thread_queue_Enqueue_priority (
Thread_queue_Control *the_thread_queue,
Thread_Control *the_thread,
ISR_Level *level_p
)
{
10c854: 55 push %ebp
10c855: 89 e5 mov %esp,%ebp
10c857: 57 push %edi
10c858: 56 push %esi
10c859: 53 push %ebx
10c85a: 83 ec 10 sub $0x10,%esp
10c85d: 8b 4d 08 mov 0x8(%ebp),%ecx
10c860: 8b 45 0c mov 0xc(%ebp),%eax
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
10c863: 8d 50 3c lea 0x3c(%eax),%edx
10c866: 89 50 38 mov %edx,0x38(%eax)
the_chain->permanent_null = NULL;
10c869: c7 40 3c 00 00 00 00 movl $0x0,0x3c(%eax)
the_chain->last = _Chain_Head(the_chain);
10c870: 8d 50 38 lea 0x38(%eax),%edx
10c873: 89 50 40 mov %edx,0x40(%eax)
Priority_Control priority;
States_Control block_state;
_Chain_Initialize_empty( &the_thread->Wait.Block2n );
priority = the_thread->current_priority;
10c876: 8b 58 14 mov 0x14(%eax),%ebx
header_index = _Thread_queue_Header_number( priority );
header = &the_thread_queue->Queues.Priority[ header_index ];
10c879: 89 de mov %ebx,%esi
10c87b: c1 ee 06 shr $0x6,%esi
10c87e: 6b f6 0c imul $0xc,%esi,%esi
10c881: 8d 34 31 lea (%ecx,%esi,1),%esi
block_state = the_thread_queue->state;
10c884: 8b 79 38 mov 0x38(%ecx),%edi
if ( _Thread_queue_Is_reverse_search( priority ) )
10c887: f6 c3 20 test $0x20,%bl
10c88a: 75 65 jne 10c8f1 <_Thread_queue_Enqueue_priority+0x9d>
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
10c88c: 8d 56 04 lea 0x4(%esi),%edx
10c88f: 89 55 e8 mov %edx,-0x18(%ebp)
goto restart_reverse_search;
restart_forward_search:
search_priority = PRIORITY_MINIMUM - 1;
_ISR_Disable( level );
10c892: 9c pushf
10c893: fa cli
10c894: 8f 45 f0 popl -0x10(%ebp)
search_thread = (Thread_Control *) header->first;
10c897: 8b 16 mov (%esi),%edx
10c899: c7 45 ec ff ff ff ff movl $0xffffffff,-0x14(%ebp)
10c8a0: 89 75 e4 mov %esi,-0x1c(%ebp)
while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) {
10c8a3: eb 1f jmp 10c8c4 <_Thread_queue_Enqueue_priority+0x70>
search_priority = search_thread->current_priority;
10c8a5: 8b 72 14 mov 0x14(%edx),%esi
10c8a8: 89 75 ec mov %esi,-0x14(%ebp)
if ( priority <= search_priority )
10c8ab: 39 f3 cmp %esi,%ebx
10c8ad: 76 1a jbe 10c8c9 <_Thread_queue_Enqueue_priority+0x75>
break;
search_priority = search_thread->current_priority;
if ( priority <= search_priority )
break;
#endif
_ISR_Flash( level );
10c8af: ff 75 f0 pushl -0x10(%ebp)
10c8b2: 9d popf
10c8b3: fa cli
if ( !_States_Are_set( search_thread->current_state, block_state) ) {
10c8b4: 85 7a 10 test %edi,0x10(%edx)
10c8b7: 75 09 jne 10c8c2 <_Thread_queue_Enqueue_priority+0x6e><== ALWAYS TAKEN
10c8b9: 8b 75 e4 mov -0x1c(%ebp),%esi <== NOT EXECUTED
_ISR_Enable( level );
10c8bc: ff 75 f0 pushl -0x10(%ebp) <== NOT EXECUTED
10c8bf: 9d popf <== NOT EXECUTED
goto restart_forward_search;
10c8c0: eb d0 jmp 10c892 <_Thread_queue_Enqueue_priority+0x3e><== NOT EXECUTED
}
search_thread =
(Thread_Control *)search_thread->Object.Node.next;
10c8c2: 8b 12 mov (%edx),%edx
restart_forward_search:
search_priority = PRIORITY_MINIMUM - 1;
_ISR_Disable( level );
search_thread = (Thread_Control *) header->first;
while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) {
10c8c4: 3b 55 e8 cmp -0x18(%ebp),%edx
10c8c7: 75 dc jne 10c8a5 <_Thread_queue_Enqueue_priority+0x51>
10c8c9: 8b 75 f0 mov -0x10(%ebp),%esi
}
search_thread =
(Thread_Control *)search_thread->Object.Node.next;
}
if ( the_thread_queue->sync_state !=
10c8cc: 83 79 30 01 cmpl $0x1,0x30(%ecx)
10c8d0: 0f 85 9e 00 00 00 jne 10c974 <_Thread_queue_Enqueue_priority+0x120><== NEVER TAKEN
THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )
goto synchronize;
the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
10c8d6: c7 41 30 00 00 00 00 movl $0x0,0x30(%ecx)
if ( priority == search_priority )
10c8dd: 3b 5d ec cmp -0x14(%ebp),%ebx
10c8e0: 74 7b je 10c95d <_Thread_queue_Enqueue_priority+0x109>
goto equal_priority;
search_node = (Chain_Node *) search_thread;
previous_node = search_node->previous;
10c8e2: 8b 5a 04 mov 0x4(%edx),%ebx
the_node = (Chain_Node *) the_thread;
the_node->next = search_node;
10c8e5: 89 10 mov %edx,(%eax)
the_node->previous = previous_node;
10c8e7: 89 58 04 mov %ebx,0x4(%eax)
previous_node->next = the_node;
10c8ea: 89 03 mov %eax,(%ebx)
search_node->previous = the_node;
10c8ec: 89 42 04 mov %eax,0x4(%edx)
10c8ef: eb 5e jmp 10c94f <_Thread_queue_Enqueue_priority+0xfb>
the_thread->Wait.queue = the_thread_queue;
_ISR_Enable( level );
return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;
restart_reverse_search:
search_priority = PRIORITY_MAXIMUM + 1;
10c8f1: 0f b6 15 f4 21 12 00 movzbl 0x1221f4,%edx
10c8f8: 42 inc %edx
10c8f9: 89 55 ec mov %edx,-0x14(%ebp)
_ISR_Disable( level );
10c8fc: 9c pushf
10c8fd: fa cli
10c8fe: 8f 45 f0 popl -0x10(%ebp)
search_thread = (Thread_Control *) header->last;
10c901: 8b 56 08 mov 0x8(%esi),%edx
10c904: 89 75 e8 mov %esi,-0x18(%ebp)
while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) {
10c907: eb 20 jmp 10c929 <_Thread_queue_Enqueue_priority+0xd5>
search_priority = search_thread->current_priority;
10c909: 8b 72 14 mov 0x14(%edx),%esi
10c90c: 89 75 ec mov %esi,-0x14(%ebp)
if ( priority >= search_priority )
10c90f: 39 f3 cmp %esi,%ebx
10c911: 73 1b jae 10c92e <_Thread_queue_Enqueue_priority+0xda>
break;
search_priority = search_thread->current_priority;
if ( priority >= search_priority )
break;
#endif
_ISR_Flash( level );
10c913: ff 75 f0 pushl -0x10(%ebp)
10c916: 9d popf
10c917: fa cli
if ( !_States_Are_set( search_thread->current_state, block_state) ) {
10c918: 85 7a 10 test %edi,0x10(%edx)
10c91b: 75 09 jne 10c926 <_Thread_queue_Enqueue_priority+0xd2>
10c91d: 8b 75 e8 mov -0x18(%ebp),%esi
_ISR_Enable( level );
10c920: ff 75 f0 pushl -0x10(%ebp)
10c923: 9d popf
goto restart_reverse_search;
10c924: eb cb jmp 10c8f1 <_Thread_queue_Enqueue_priority+0x9d>
}
search_thread = (Thread_Control *)
10c926: 8b 52 04 mov 0x4(%edx),%edx
restart_reverse_search:
search_priority = PRIORITY_MAXIMUM + 1;
_ISR_Disable( level );
search_thread = (Thread_Control *) header->last;
while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) {
10c929: 3b 55 e8 cmp -0x18(%ebp),%edx
10c92c: 75 db jne 10c909 <_Thread_queue_Enqueue_priority+0xb5>
10c92e: 8b 75 f0 mov -0x10(%ebp),%esi
}
search_thread = (Thread_Control *)
search_thread->Object.Node.previous;
}
if ( the_thread_queue->sync_state !=
10c931: 83 79 30 01 cmpl $0x1,0x30(%ecx)
10c935: 75 3d jne 10c974 <_Thread_queue_Enqueue_priority+0x120>
THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )
goto synchronize;
the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
10c937: c7 41 30 00 00 00 00 movl $0x0,0x30(%ecx)
if ( priority == search_priority )
10c93e: 3b 5d ec cmp -0x14(%ebp),%ebx
10c941: 74 1a je 10c95d <_Thread_queue_Enqueue_priority+0x109>
goto equal_priority;
search_node = (Chain_Node *) search_thread;
next_node = search_node->next;
10c943: 8b 1a mov (%edx),%ebx
the_node = (Chain_Node *) the_thread;
the_node->next = next_node;
10c945: 89 18 mov %ebx,(%eax)
the_node->previous = search_node;
10c947: 89 50 04 mov %edx,0x4(%eax)
search_node->next = the_node;
10c94a: 89 02 mov %eax,(%edx)
next_node->previous = the_node;
10c94c: 89 43 04 mov %eax,0x4(%ebx)
the_thread->Wait.queue = the_thread_queue;
10c94f: 89 48 44 mov %ecx,0x44(%eax)
_ISR_Enable( level );
10c952: ff 75 f0 pushl -0x10(%ebp)
10c955: 9d popf
10c956: b8 01 00 00 00 mov $0x1,%eax
return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;
10c95b: eb 1f jmp 10c97c <_Thread_queue_Enqueue_priority+0x128>
10c95d: 83 c2 3c add $0x3c,%edx
equal_priority: /* add at end of priority group */
search_node = _Chain_Tail( &search_thread->Wait.Block2n );
previous_node = search_node->previous;
10c960: 8b 5a 04 mov 0x4(%edx),%ebx
the_node = (Chain_Node *) the_thread;
the_node->next = search_node;
10c963: 89 10 mov %edx,(%eax)
the_node->previous = previous_node;
10c965: 89 58 04 mov %ebx,0x4(%eax)
previous_node->next = the_node;
10c968: 89 03 mov %eax,(%ebx)
search_node->previous = the_node;
10c96a: 89 42 04 mov %eax,0x4(%edx)
the_thread->Wait.queue = the_thread_queue;
10c96d: 89 48 44 mov %ecx,0x44(%eax)
_ISR_Enable( level );
10c970: 56 push %esi
10c971: 9d popf
10c972: eb e2 jmp 10c956 <_Thread_queue_Enqueue_priority+0x102>
* For example, the blocking thread could have been given
* the mutex by an ISR or timed out.
*
* WARNING! Returning with interrupts disabled!
*/
*level_p = level;
10c974: 8b 45 10 mov 0x10(%ebp),%eax
10c977: 89 30 mov %esi,(%eax)
return the_thread_queue->sync_state;
10c979: 8b 41 30 mov 0x30(%ecx),%eax
}
10c97c: 83 c4 10 add $0x10,%esp
10c97f: 5b pop %ebx
10c980: 5e pop %esi
10c981: 5f pop %edi
10c982: c9 leave
10c983: c3 ret
0010ca24 <_Thread_queue_Requeue>:
void _Thread_queue_Requeue(
Thread_queue_Control *the_thread_queue,
Thread_Control *the_thread
)
{
10ca24: 55 push %ebp
10ca25: 89 e5 mov %esp,%ebp
10ca27: 57 push %edi
10ca28: 56 push %esi
10ca29: 53 push %ebx
10ca2a: 83 ec 1c sub $0x1c,%esp
10ca2d: 8b 75 08 mov 0x8(%ebp),%esi
10ca30: 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 )
10ca33: 85 f6 test %esi,%esi
10ca35: 74 36 je 10ca6d <_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 ) {
10ca37: 83 7e 34 01 cmpl $0x1,0x34(%esi)
10ca3b: 75 30 jne 10ca6d <_Thread_queue_Requeue+0x49><== NEVER TAKEN
Thread_queue_Control *tq = the_thread_queue;
ISR_Level level;
ISR_Level level_ignored;
_ISR_Disable( level );
10ca3d: 9c pushf
10ca3e: fa cli
10ca3f: 5b pop %ebx
if ( _States_Is_waiting_on_thread_queue( the_thread->current_state ) ) {
10ca40: f7 47 10 e0 be 03 00 testl $0x3bee0,0x10(%edi)
10ca47: 74 22 je 10ca6b <_Thread_queue_Requeue+0x47><== NEVER TAKEN
10ca49: 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 );
10ca50: 50 push %eax
10ca51: 6a 01 push $0x1
10ca53: 57 push %edi
10ca54: 56 push %esi
10ca55: e8 da 3b 00 00 call 110634 <_Thread_queue_Extract_priority_helper>
(void) _Thread_queue_Enqueue_priority( tq, the_thread, &level_ignored );
10ca5a: 83 c4 0c add $0xc,%esp
10ca5d: 8d 45 e4 lea -0x1c(%ebp),%eax
10ca60: 50 push %eax
10ca61: 57 push %edi
10ca62: 56 push %esi
10ca63: e8 ec fd ff ff call 10c854 <_Thread_queue_Enqueue_priority>
10ca68: 83 c4 10 add $0x10,%esp
}
_ISR_Enable( level );
10ca6b: 53 push %ebx
10ca6c: 9d popf
}
}
10ca6d: 8d 65 f4 lea -0xc(%ebp),%esp
10ca70: 5b pop %ebx
10ca71: 5e pop %esi
10ca72: 5f pop %edi
10ca73: c9 leave
10ca74: c3 ret
0010ca78 <_Thread_queue_Timeout>:
void _Thread_queue_Timeout(
Objects_Id id,
void *ignored __attribute__((unused))
)
{
10ca78: 55 push %ebp
10ca79: 89 e5 mov %esp,%ebp
10ca7b: 83 ec 20 sub $0x20,%esp
Thread_Control *the_thread;
Objects_Locations location;
the_thread = _Thread_Get( id, &location );
10ca7e: 8d 45 f4 lea -0xc(%ebp),%eax
10ca81: 50 push %eax
10ca82: ff 75 08 pushl 0x8(%ebp)
10ca85: e8 aa f8 ff ff call 10c334 <_Thread_Get>
switch ( location ) {
10ca8a: 83 c4 10 add $0x10,%esp
10ca8d: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
10ca91: 75 17 jne 10caaa <_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 );
10ca93: 83 ec 0c sub $0xc,%esp
10ca96: 50 push %eax
10ca97: e8 44 3c 00 00 call 1106e0 <_Thread_queue_Process_timeout>
*/
RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void )
{
RTEMS_COMPILER_MEMORY_BARRIER();
_Thread_Dispatch_disable_level -= 1;
10ca9c: a1 08 62 12 00 mov 0x126208,%eax
10caa1: 48 dec %eax
10caa2: a3 08 62 12 00 mov %eax,0x126208
10caa7: 83 c4 10 add $0x10,%esp
_Thread_Unnest_dispatch();
break;
}
}
10caaa: c9 leave
10caab: c3 ret
00100238 <_Timer_Manager_initialization>:
#include <rtems/rtems/types.h>
#include <rtems/rtems/timer.h>
void _Timer_Manager_initialization(void)
{
100238: 55 push %ebp
100239: 89 e5 mov %esp,%ebp
}
10023b: c9 leave
10023c: c3 ret
0011721c <_Timer_server_Body>:
* @a arg points to the corresponding timer server control block.
*/
static rtems_task _Timer_server_Body(
rtems_task_argument arg
)
{
11721c: 55 push %ebp
11721d: 89 e5 mov %esp,%ebp
11721f: 57 push %edi
117220: 56 push %esi
117221: 53 push %ebx
117222: 83 ec 4c sub $0x4c,%esp
117225: 8b 5d 08 mov 0x8(%ebp),%ebx
117228: 8d 45 dc lea -0x24(%ebp),%eax
11722b: 8d 55 e0 lea -0x20(%ebp),%edx
11722e: 89 55 b4 mov %edx,-0x4c(%ebp)
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
117231: 89 55 dc mov %edx,-0x24(%ebp)
the_chain->permanent_null = NULL;
117234: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp)
the_chain->last = _Chain_Head(the_chain);
11723b: 89 45 e4 mov %eax,-0x1c(%ebp)
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
11723e: 8d 75 d0 lea -0x30(%ebp),%esi
117241: 8d 55 d4 lea -0x2c(%ebp),%edx
117244: 89 55 b0 mov %edx,-0x50(%ebp)
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
117247: 89 55 d0 mov %edx,-0x30(%ebp)
the_chain->permanent_null = NULL;
11724a: c7 45 d4 00 00 00 00 movl $0x0,-0x2c(%ebp)
the_chain->last = _Chain_Head(the_chain);
117251: 89 75 d8 mov %esi,-0x28(%ebp)
*/
Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;
watchdogs->last_snapshot = snapshot;
_Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );
117254: 8d 53 30 lea 0x30(%ebx),%edx
117257: 89 55 c0 mov %edx,-0x40(%ebp)
/*
* 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 );
11725a: 8d 7b 68 lea 0x68(%ebx),%edi
static void _Timer_server_Stop_interval_system_watchdog(
Timer_server_Control *ts
)
{
_Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog );
11725d: 8d 4b 08 lea 0x8(%ebx),%ecx
117260: 89 4d b8 mov %ecx,-0x48(%ebp)
static void _Timer_server_Stop_tod_system_watchdog(
Timer_server_Control *ts
)
{
_Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog );
117263: 8d 53 40 lea 0x40(%ebx),%edx
117266: 89 55 bc mov %edx,-0x44(%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;
117269: 8d 4d dc lea -0x24(%ebp),%ecx
11726c: 89 4b 78 mov %ecx,0x78(%ebx)
static void _Timer_server_Process_interval_watchdogs(
Timer_server_Watchdogs *watchdogs,
Chain_Control *fire_chain
)
{
Watchdog_Interval snapshot = _Watchdog_Ticks_since_boot;
11726f: a1 28 f7 13 00 mov 0x13f728,%eax
/*
* We assume adequate unsigned arithmetic here.
*/
Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;
117274: 8b 53 3c mov 0x3c(%ebx),%edx
watchdogs->last_snapshot = snapshot;
117277: 89 43 3c mov %eax,0x3c(%ebx)
_Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );
11727a: 51 push %ecx
11727b: 8d 4d d0 lea -0x30(%ebp),%ecx
11727e: 51 push %ecx
11727f: 29 d0 sub %edx,%eax
117281: 50 push %eax
117282: ff 75 c0 pushl -0x40(%ebp)
117285: e8 d6 36 00 00 call 11a960 <_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();
11728a: a1 6c f6 13 00 mov 0x13f66c,%eax
11728f: 89 45 c4 mov %eax,-0x3c(%ebp)
Watchdog_Interval last_snapshot = watchdogs->last_snapshot;
117292: 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 ) {
117295: 83 c4 10 add $0x10,%esp
117298: 39 45 c4 cmp %eax,-0x3c(%ebp)
11729b: 76 13 jbe 1172b0 <_Timer_server_Body+0x94>
/*
* 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 );
11729d: 52 push %edx
11729e: 8d 55 d0 lea -0x30(%ebp),%edx
1172a1: 52 push %edx
1172a2: 8b 4d c4 mov -0x3c(%ebp),%ecx
1172a5: 29 c1 sub %eax,%ecx
1172a7: 51 push %ecx
1172a8: 57 push %edi
1172a9: e8 b2 36 00 00 call 11a960 <_Watchdog_Adjust_to_chain>
1172ae: eb 0f jmp 1172bf <_Timer_server_Body+0xa3>
} else if ( snapshot < last_snapshot ) {
1172b0: 73 10 jae 1172c2 <_Timer_server_Body+0xa6>
/*
* 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 );
1172b2: 51 push %ecx
1172b3: 2b 45 c4 sub -0x3c(%ebp),%eax
1172b6: 50 push %eax
1172b7: 6a 01 push $0x1
1172b9: 57 push %edi
1172ba: e8 35 36 00 00 call 11a8f4 <_Watchdog_Adjust>
1172bf: 83 c4 10 add $0x10,%esp
}
watchdogs->last_snapshot = snapshot;
1172c2: 8b 45 c4 mov -0x3c(%ebp),%eax
1172c5: 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 );
1172c8: 8b 43 78 mov 0x78(%ebx),%eax
1172cb: 83 ec 0c sub $0xc,%esp
1172ce: 50 push %eax
1172cf: e8 2c 07 00 00 call 117a00 <_Chain_Get>
if ( timer == NULL ) {
1172d4: 83 c4 10 add $0x10,%esp
1172d7: 85 c0 test %eax,%eax
1172d9: 74 29 je 117304 <_Timer_server_Body+0xe8><== ALWAYS TAKEN
static void _Timer_server_Insert_timer(
Timer_server_Control *ts,
Timer_Control *timer
)
{
if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) {
1172db: 8b 50 38 mov 0x38(%eax),%edx <== NOT EXECUTED
1172de: 83 fa 01 cmp $0x1,%edx <== NOT EXECUTED
1172e1: 75 0b jne 1172ee <_Timer_server_Body+0xd2><== NOT EXECUTED
_Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker );
1172e3: 52 push %edx <== NOT EXECUTED
1172e4: 52 push %edx <== NOT EXECUTED
1172e5: 83 c0 10 add $0x10,%eax <== NOT EXECUTED
1172e8: 50 push %eax <== NOT EXECUTED
1172e9: ff 75 c0 pushl -0x40(%ebp) <== NOT EXECUTED
1172ec: eb 0c jmp 1172fa <_Timer_server_Body+0xde><== NOT EXECUTED
} else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) {
1172ee: 83 fa 03 cmp $0x3,%edx <== NOT EXECUTED
1172f1: 75 d5 jne 1172c8 <_Timer_server_Body+0xac><== NOT EXECUTED
_Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker );
1172f3: 51 push %ecx <== NOT EXECUTED
1172f4: 51 push %ecx <== NOT EXECUTED
1172f5: 83 c0 10 add $0x10,%eax <== NOT EXECUTED
1172f8: 50 push %eax <== NOT EXECUTED
1172f9: 57 push %edi <== NOT EXECUTED
1172fa: e8 e9 36 00 00 call 11a9e8 <_Watchdog_Insert> <== NOT EXECUTED
1172ff: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
117302: eb c4 jmp 1172c8 <_Timer_server_Body+0xac><== 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 );
117304: 9c pushf
117305: fa cli
117306: 58 pop %eax
if ( _Chain_Is_empty( insert_chain ) ) {
117307: 8b 55 b4 mov -0x4c(%ebp),%edx
11730a: 39 55 dc cmp %edx,-0x24(%ebp)
11730d: 75 13 jne 117322 <_Timer_server_Body+0x106><== NEVER TAKEN
ts->insert_chain = NULL;
11730f: c7 43 78 00 00 00 00 movl $0x0,0x78(%ebx)
_ISR_Enable( level );
117316: 50 push %eax
117317: 9d popf
_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 ) ) {
117318: 8b 4d b0 mov -0x50(%ebp),%ecx
11731b: 39 4d d0 cmp %ecx,-0x30(%ebp)
11731e: 75 09 jne 117329 <_Timer_server_Body+0x10d>
117320: eb 3e jmp 117360 <_Timer_server_Body+0x144>
ts->insert_chain = NULL;
_ISR_Enable( level );
break;
} else {
_ISR_Enable( level );
117322: 50 push %eax <== NOT EXECUTED
117323: 9d popf <== NOT EXECUTED
117324: e9 46 ff ff ff jmp 11726f <_Timer_server_Body+0x53><== 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 );
117329: 9c pushf
11732a: fa cli
11732b: 5a pop %edx
*/
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
Chain_Control *the_chain
)
{
return (the_chain->first == _Chain_Tail(the_chain));
11732c: 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))
11732f: 3b 45 b0 cmp -0x50(%ebp),%eax
117332: 74 25 je 117359 <_Timer_server_Body+0x13d>
{
Chain_Node *return_node;
Chain_Node *new_first;
return_node = the_chain->first;
new_first = return_node->next;
117334: 8b 08 mov (%eax),%ecx
the_chain->first = new_first;
117336: 89 4d d0 mov %ecx,-0x30(%ebp)
new_first->previous = _Chain_Head(the_chain);
117339: 89 71 04 mov %esi,0x4(%ecx)
watchdog = (Watchdog_Control *) _Chain_Get_unprotected( &fire_chain );
if ( watchdog != NULL ) {
11733c: 85 c0 test %eax,%eax
11733e: 74 19 je 117359 <_Timer_server_Body+0x13d><== NEVER TAKEN
watchdog->state = WATCHDOG_INACTIVE;
117340: c7 40 08 00 00 00 00 movl $0x0,0x8(%eax)
_ISR_Enable( level );
117347: 52 push %edx
117348: 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 );
117349: 52 push %edx
11734a: 52 push %edx
11734b: ff 70 24 pushl 0x24(%eax)
11734e: ff 70 20 pushl 0x20(%eax)
117351: ff 50 1c call *0x1c(%eax)
}
117354: 83 c4 10 add $0x10,%esp
117357: eb d0 jmp 117329 <_Timer_server_Body+0x10d>
watchdog = (Watchdog_Control *) _Chain_Get_unprotected( &fire_chain );
if ( watchdog != NULL ) {
watchdog->state = WATCHDOG_INACTIVE;
_ISR_Enable( level );
} else {
_ISR_Enable( level );
117359: 52 push %edx
11735a: 9d popf
11735b: e9 09 ff ff ff jmp 117269 <_Timer_server_Body+0x4d>
* the active flag of the timer server is true.
*/
(*watchdog->routine)( watchdog->id, watchdog->user_data );
}
} else {
ts->active = false;
117360: c6 43 7c 00 movb $0x0,0x7c(%ebx)
117364: a1 dc f5 13 00 mov 0x13f5dc,%eax
117369: 40 inc %eax
11736a: a3 dc f5 13 00 mov %eax,0x13f5dc
/*
* Block until there is something to do.
*/
_Thread_Disable_dispatch();
_Thread_Set_state( ts->thread, STATES_DELAYING );
11736f: 50 push %eax
117370: 50 push %eax
117371: 6a 08 push $0x8
117373: ff 33 pushl (%ebx)
117375: e8 5a 2e 00 00 call 11a1d4 <_Thread_Set_state>
_Timer_server_Reset_interval_system_watchdog( ts );
11737a: 89 d8 mov %ebx,%eax
11737c: e8 0f fe ff ff call 117190 <_Timer_server_Reset_interval_system_watchdog>
_Timer_server_Reset_tod_system_watchdog( ts );
117381: 89 d8 mov %ebx,%eax
117383: e8 4e fe ff ff call 1171d6 <_Timer_server_Reset_tod_system_watchdog>
_Thread_Enable_dispatch();
117388: e8 0c 25 00 00 call 119899 <_Thread_Enable_dispatch>
ts->active = true;
11738d: 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 );
117391: 59 pop %ecx
117392: ff 75 b8 pushl -0x48(%ebp)
117395: e8 62 37 00 00 call 11aafc <_Watchdog_Remove>
static void _Timer_server_Stop_tod_system_watchdog(
Timer_server_Control *ts
)
{
_Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog );
11739a: 5a pop %edx
11739b: ff 75 bc pushl -0x44(%ebp)
11739e: e8 59 37 00 00 call 11aafc <_Watchdog_Remove>
1173a3: 83 c4 10 add $0x10,%esp
1173a6: e9 be fe ff ff jmp 117269 <_Timer_server_Body+0x4d>
001173ab <_Timer_server_Schedule_operation_method>:
static void _Timer_server_Schedule_operation_method(
Timer_server_Control *ts,
Timer_Control *timer
)
{
1173ab: 55 push %ebp
1173ac: 89 e5 mov %esp,%ebp
1173ae: 57 push %edi
1173af: 56 push %esi
1173b0: 53 push %ebx
1173b1: 83 ec 2c sub $0x2c,%esp
1173b4: 8b 5d 08 mov 0x8(%ebp),%ebx
1173b7: 8b 45 0c mov 0xc(%ebp),%eax
if ( ts->insert_chain == NULL ) {
1173ba: 8b 53 78 mov 0x78(%ebx),%edx
1173bd: 85 d2 test %edx,%edx
1173bf: 0f 85 e6 00 00 00 jne 1174ab <_Timer_server_Schedule_operation_method+0x100><== NEVER TAKEN
1173c5: 8b 15 dc f5 13 00 mov 0x13f5dc,%edx
1173cb: 42 inc %edx
1173cc: 89 15 dc f5 13 00 mov %edx,0x13f5dc
* being inserted. This could result in an integer overflow.
*/
_Thread_Disable_dispatch();
if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) {
1173d2: 8b 50 38 mov 0x38(%eax),%edx
1173d5: 83 fa 01 cmp $0x1,%edx
1173d8: 75 5a jne 117434 <_Timer_server_Schedule_operation_method+0x89>
/*
* We have to advance the last known ticks value of the server and update
* the watchdog chain accordingly.
*/
_ISR_Disable( level );
1173da: 9c pushf
1173db: fa cli
1173dc: 8f 45 e0 popl -0x20(%ebp)
snapshot = _Watchdog_Ticks_since_boot;
1173df: 8b 0d 28 f7 13 00 mov 0x13f728,%ecx
last_snapshot = ts->Interval_watchdogs.last_snapshot;
1173e5: 8b 73 3c mov 0x3c(%ebx),%esi
*/
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
Chain_Control *the_chain
)
{
return (the_chain->first == _Chain_Tail(the_chain));
1173e8: 8b 53 30 mov 0x30(%ebx),%edx
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
1173eb: 8d 7b 34 lea 0x34(%ebx),%edi
1173ee: 39 fa cmp %edi,%edx
1173f0: 74 19 je 11740b <_Timer_server_Schedule_operation_method+0x60>
first_watchdog = _Watchdog_First( &ts->Interval_watchdogs.Chain );
/*
* We assume adequate unsigned arithmetic here.
*/
delta = snapshot - last_snapshot;
1173f2: 89 cf mov %ecx,%edi
1173f4: 29 f7 sub %esi,%edi
1173f6: 89 7d e4 mov %edi,-0x1c(%ebp)
delta_interval = first_watchdog->delta_interval;
1173f9: 8b 7a 10 mov 0x10(%edx),%edi
if (delta_interval > delta) {
1173fc: 31 f6 xor %esi,%esi
1173fe: 3b 7d e4 cmp -0x1c(%ebp),%edi
117401: 76 05 jbe 117408 <_Timer_server_Schedule_operation_method+0x5d>
delta_interval -= delta;
117403: 89 fe mov %edi,%esi
117405: 2b 75 e4 sub -0x1c(%ebp),%esi
} else {
delta_interval = 0;
}
first_watchdog->delta_interval = delta_interval;
117408: 89 72 10 mov %esi,0x10(%edx)
}
ts->Interval_watchdogs.last_snapshot = snapshot;
11740b: 89 4b 3c mov %ecx,0x3c(%ebx)
_ISR_Enable( level );
11740e: ff 75 e0 pushl -0x20(%ebp)
117411: 9d popf
_Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker );
117412: 57 push %edi
117413: 57 push %edi
117414: 83 c0 10 add $0x10,%eax
117417: 50 push %eax
117418: 8d 43 30 lea 0x30(%ebx),%eax
11741b: 50 push %eax
11741c: e8 c7 35 00 00 call 11a9e8 <_Watchdog_Insert>
if ( !ts->active ) {
117421: 8a 43 7c mov 0x7c(%ebx),%al
117424: 83 c4 10 add $0x10,%esp
117427: 84 c0 test %al,%al
117429: 75 74 jne 11749f <_Timer_server_Schedule_operation_method+0xf4>
_Timer_server_Reset_interval_system_watchdog( ts );
11742b: 89 d8 mov %ebx,%eax
11742d: e8 5e fd ff ff call 117190 <_Timer_server_Reset_interval_system_watchdog>
117432: eb 6b jmp 11749f <_Timer_server_Schedule_operation_method+0xf4>
}
} else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) {
117434: 83 fa 03 cmp $0x3,%edx
117437: 75 66 jne 11749f <_Timer_server_Schedule_operation_method+0xf4>
/*
* We have to advance the last known seconds value of the server and update
* the watchdog chain accordingly.
*/
_ISR_Disable( level );
117439: 9c pushf
11743a: fa cli
11743b: 8f 45 e0 popl -0x20(%ebp)
snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();
11743e: 8b 0d 6c f6 13 00 mov 0x13f66c,%ecx
last_snapshot = ts->TOD_watchdogs.last_snapshot;
117444: 8b 53 74 mov 0x74(%ebx),%edx
*/
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
Chain_Control *the_chain
)
{
return (the_chain->first == _Chain_Tail(the_chain));
117447: 8b 73 68 mov 0x68(%ebx),%esi
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
11744a: 8d 7b 6c lea 0x6c(%ebx),%edi
11744d: 39 fe cmp %edi,%esi
11744f: 74 27 je 117478 <_Timer_server_Schedule_operation_method+0xcd>
if ( !_Chain_Is_empty( &ts->TOD_watchdogs.Chain ) ) {
first_watchdog = _Watchdog_First( &ts->TOD_watchdogs.Chain );
delta_interval = first_watchdog->delta_interval;
117451: 8b 7e 10 mov 0x10(%esi),%edi
117454: 89 7d d4 mov %edi,-0x2c(%ebp)
if ( snapshot > last_snapshot ) {
117457: 39 d1 cmp %edx,%ecx
117459: 76 15 jbe 117470 <_Timer_server_Schedule_operation_method+0xc5>
/*
* We advanced in time.
*/
delta = snapshot - last_snapshot;
11745b: 89 cf mov %ecx,%edi
11745d: 29 d7 sub %edx,%edi
11745f: 89 7d e4 mov %edi,-0x1c(%ebp)
if (delta_interval > delta) {
117462: 31 d2 xor %edx,%edx
117464: 39 7d d4 cmp %edi,-0x2c(%ebp)
117467: 76 0c jbe 117475 <_Timer_server_Schedule_operation_method+0xca><== NEVER TAKEN
delta_interval -= delta;
117469: 8b 55 d4 mov -0x2c(%ebp),%edx
11746c: 29 fa sub %edi,%edx
11746e: eb 05 jmp 117475 <_Timer_server_Schedule_operation_method+0xca>
}
} else {
/*
* Someone put us in the past.
*/
delta = last_snapshot - snapshot;
117470: 03 55 d4 add -0x2c(%ebp),%edx
delta_interval += delta;
117473: 29 ca sub %ecx,%edx
}
first_watchdog->delta_interval = delta_interval;
117475: 89 56 10 mov %edx,0x10(%esi)
}
ts->TOD_watchdogs.last_snapshot = snapshot;
117478: 89 4b 74 mov %ecx,0x74(%ebx)
_ISR_Enable( level );
11747b: ff 75 e0 pushl -0x20(%ebp)
11747e: 9d popf
_Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker );
11747f: 56 push %esi
117480: 56 push %esi
117481: 83 c0 10 add $0x10,%eax
117484: 50 push %eax
117485: 8d 43 68 lea 0x68(%ebx),%eax
117488: 50 push %eax
117489: e8 5a 35 00 00 call 11a9e8 <_Watchdog_Insert>
if ( !ts->active ) {
11748e: 8a 43 7c mov 0x7c(%ebx),%al
117491: 83 c4 10 add $0x10,%esp
117494: 84 c0 test %al,%al
117496: 75 07 jne 11749f <_Timer_server_Schedule_operation_method+0xf4>
_Timer_server_Reset_tod_system_watchdog( ts );
117498: 89 d8 mov %ebx,%eax
11749a: e8 37 fd ff ff call 1171d6 <_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 );
}
}
11749f: 8d 65 f4 lea -0xc(%ebp),%esp
1174a2: 5b pop %ebx
1174a3: 5e pop %esi
1174a4: 5f pop %edi
1174a5: c9 leave
if ( !ts->active ) {
_Timer_server_Reset_tod_system_watchdog( ts );
}
}
_Thread_Enable_dispatch();
1174a6: e9 ee 23 00 00 jmp 119899 <_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 );
1174ab: 8b 53 78 mov 0x78(%ebx),%edx <== NOT EXECUTED
1174ae: 89 45 0c mov %eax,0xc(%ebp) <== NOT EXECUTED
1174b1: 89 55 08 mov %edx,0x8(%ebp) <== NOT EXECUTED
}
}
1174b4: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1174b7: 5b pop %ebx <== NOT EXECUTED
1174b8: 5e pop %esi <== NOT EXECUTED
1174b9: 5f pop %edi <== NOT EXECUTED
1174ba: 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 );
1174bb: e9 04 05 00 00 jmp 1179c4 <_Chain_Append> <== NOT EXECUTED
0010e918 <_Watchdog_Adjust>:
void _Watchdog_Adjust(
Chain_Control *header,
Watchdog_Adjust_directions direction,
Watchdog_Interval units
)
{
10e918: 55 push %ebp
10e919: 89 e5 mov %esp,%ebp
10e91b: 57 push %edi
10e91c: 56 push %esi
10e91d: 53 push %ebx
10e91e: 83 ec 1c sub $0x1c,%esp
10e921: 8b 75 08 mov 0x8(%ebp),%esi
10e924: 8b 7d 0c mov 0xc(%ebp),%edi
10e927: 8b 5d 10 mov 0x10(%ebp),%ebx
ISR_Level level;
_ISR_Disable( level );
10e92a: 9c pushf
10e92b: fa cli
10e92c: 58 pop %eax
*/
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
Chain_Control *the_chain
)
{
return (the_chain->first == _Chain_Tail(the_chain));
10e92d: 8b 16 mov (%esi),%edx
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
10e92f: 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 ) ) {
10e932: 39 ca cmp %ecx,%edx
10e934: 74 44 je 10e97a <_Watchdog_Adjust+0x62>
switch ( direction ) {
10e936: 85 ff test %edi,%edi
10e938: 74 3c je 10e976 <_Watchdog_Adjust+0x5e>
10e93a: 4f dec %edi
10e93b: 75 3d jne 10e97a <_Watchdog_Adjust+0x62> <== NEVER TAKEN
case WATCHDOG_BACKWARD:
_Watchdog_First( header )->delta_interval += units;
10e93d: 01 5a 10 add %ebx,0x10(%edx)
break;
10e940: eb 38 jmp 10e97a <_Watchdog_Adjust+0x62>
RTEMS_INLINE_ROUTINE Watchdog_Control *_Watchdog_First(
Chain_Control *header
)
{
return ( (Watchdog_Control *) header->first );
10e942: 8b 16 mov (%esi),%edx
case WATCHDOG_FORWARD:
while ( units ) {
if ( units < _Watchdog_First( header )->delta_interval ) {
10e944: 8b 7a 10 mov 0x10(%edx),%edi
10e947: 39 fb cmp %edi,%ebx
10e949: 73 07 jae 10e952 <_Watchdog_Adjust+0x3a>
_Watchdog_First( header )->delta_interval -= units;
10e94b: 29 df sub %ebx,%edi
10e94d: 89 7a 10 mov %edi,0x10(%edx)
break;
10e950: eb 28 jmp 10e97a <_Watchdog_Adjust+0x62>
} else {
units -= _Watchdog_First( header )->delta_interval;
_Watchdog_First( header )->delta_interval = 1;
10e952: c7 42 10 01 00 00 00 movl $0x1,0x10(%edx)
_ISR_Enable( level );
10e959: 50 push %eax
10e95a: 9d popf
_Watchdog_Tickle( header );
10e95b: 83 ec 0c sub $0xc,%esp
10e95e: 56 push %esi
10e95f: 89 4d e4 mov %ecx,-0x1c(%ebp)
10e962: e8 99 01 00 00 call 10eb00 <_Watchdog_Tickle>
_ISR_Disable( level );
10e967: 9c pushf
10e968: fa cli
10e969: 58 pop %eax
if ( _Chain_Is_empty( header ) )
10e96a: 83 c4 10 add $0x10,%esp
10e96d: 8b 4d e4 mov -0x1c(%ebp),%ecx
10e970: 39 0e cmp %ecx,(%esi)
10e972: 74 06 je 10e97a <_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;
10e974: 29 fb sub %edi,%ebx
switch ( direction ) {
case WATCHDOG_BACKWARD:
_Watchdog_First( header )->delta_interval += units;
break;
case WATCHDOG_FORWARD:
while ( units ) {
10e976: 85 db test %ebx,%ebx
10e978: 75 c8 jne 10e942 <_Watchdog_Adjust+0x2a> <== ALWAYS TAKEN
}
break;
}
}
_ISR_Enable( level );
10e97a: 50 push %eax
10e97b: 9d popf
}
10e97c: 8d 65 f4 lea -0xc(%ebp),%esp
10e97f: 5b pop %ebx
10e980: 5e pop %esi
10e981: 5f pop %edi
10e982: c9 leave
10e983: c3 ret
0010d1f8 <_Watchdog_Remove>:
*/
Watchdog_States _Watchdog_Remove(
Watchdog_Control *the_watchdog
)
{
10d1f8: 55 push %ebp
10d1f9: 89 e5 mov %esp,%ebp
10d1fb: 56 push %esi
10d1fc: 53 push %ebx
10d1fd: 8b 55 08 mov 0x8(%ebp),%edx
ISR_Level level;
Watchdog_States previous_state;
Watchdog_Control *next_watchdog;
_ISR_Disable( level );
10d200: 9c pushf
10d201: fa cli
10d202: 5e pop %esi
previous_state = the_watchdog->state;
10d203: 8b 42 08 mov 0x8(%edx),%eax
switch ( previous_state ) {
10d206: 83 f8 01 cmp $0x1,%eax
10d209: 74 09 je 10d214 <_Watchdog_Remove+0x1c>
10d20b: 72 44 jb 10d251 <_Watchdog_Remove+0x59>
10d20d: 83 f8 03 cmp $0x3,%eax
10d210: 77 3f ja 10d251 <_Watchdog_Remove+0x59> <== NEVER TAKEN
10d212: eb 09 jmp 10d21d <_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;
10d214: c7 42 08 00 00 00 00 movl $0x0,0x8(%edx)
break;
10d21b: eb 34 jmp 10d251 <_Watchdog_Remove+0x59>
case WATCHDOG_ACTIVE:
case WATCHDOG_REMOVE_IT:
the_watchdog->state = WATCHDOG_INACTIVE;
10d21d: c7 42 08 00 00 00 00 movl $0x0,0x8(%edx)
RTEMS_INLINE_ROUTINE Watchdog_Control *_Watchdog_Next(
Watchdog_Control *the_watchdog
)
{
return ( (Watchdog_Control *) the_watchdog->Node.next );
10d224: 8b 0a mov (%edx),%ecx
next_watchdog = _Watchdog_Next( the_watchdog );
if ( _Watchdog_Next(next_watchdog) )
10d226: 83 39 00 cmpl $0x0,(%ecx)
10d229: 74 06 je 10d231 <_Watchdog_Remove+0x39>
next_watchdog->delta_interval += the_watchdog->delta_interval;
10d22b: 8b 5a 10 mov 0x10(%edx),%ebx
10d22e: 01 59 10 add %ebx,0x10(%ecx)
if ( _Watchdog_Sync_count )
10d231: 8b 0d 50 63 12 00 mov 0x126350,%ecx
10d237: 85 c9 test %ecx,%ecx
10d239: 74 0c je 10d247 <_Watchdog_Remove+0x4f>
_Watchdog_Sync_level = _ISR_Nest_level;
10d23b: 8b 0d a0 62 12 00 mov 0x1262a0,%ecx
10d241: 89 0d c0 62 12 00 mov %ecx,0x1262c0
)
{
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
10d247: 8b 1a mov (%edx),%ebx
previous = the_node->previous;
10d249: 8b 4a 04 mov 0x4(%edx),%ecx
next->previous = previous;
10d24c: 89 4b 04 mov %ecx,0x4(%ebx)
previous->next = next;
10d24f: 89 19 mov %ebx,(%ecx)
_Chain_Extract_unprotected( &the_watchdog->Node );
break;
}
the_watchdog->stop_time = _Watchdog_Ticks_since_boot;
10d251: 8b 0d 54 63 12 00 mov 0x126354,%ecx
10d257: 89 4a 18 mov %ecx,0x18(%edx)
_ISR_Enable( level );
10d25a: 56 push %esi
10d25b: 9d popf
return( previous_state );
}
10d25c: 5b pop %ebx
10d25d: 5e pop %esi
10d25e: c9 leave
10d25f: c3 ret
0010e428 <_Watchdog_Report_chain>:
void _Watchdog_Report_chain(
const char *name,
Chain_Control *header
)
{
10e428: 55 push %ebp
10e429: 89 e5 mov %esp,%ebp
10e42b: 57 push %edi
10e42c: 56 push %esi
10e42d: 53 push %ebx
10e42e: 83 ec 20 sub $0x20,%esp
10e431: 8b 7d 08 mov 0x8(%ebp),%edi
10e434: 8b 75 0c mov 0xc(%ebp),%esi
ISR_Level level;
Chain_Node *node;
_ISR_Disable( level );
10e437: 9c pushf
10e438: fa cli
10e439: 8f 45 e4 popl -0x1c(%ebp)
printk( "Watchdog Chain: %s %p\n", name, header );
10e43c: 56 push %esi
10e43d: 57 push %edi
10e43e: 68 24 27 12 00 push $0x122724
10e443: e8 34 aa ff ff call 108e7c <printk>
*/
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
Chain_Control *the_chain
)
{
return (the_chain->first == _Chain_Tail(the_chain));
10e448: 8b 1e mov (%esi),%ebx
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
10e44a: 83 c6 04 add $0x4,%esi
if ( !_Chain_Is_empty( header ) ) {
10e44d: 83 c4 10 add $0x10,%esp
10e450: 39 f3 cmp %esi,%ebx
10e452: 74 1d je 10e471 <_Watchdog_Report_chain+0x49>
node != _Chain_Tail(header) ;
node = node->next )
{
Watchdog_Control *watch = (Watchdog_Control *) node;
_Watchdog_Report( NULL, watch );
10e454: 52 push %edx
10e455: 52 push %edx
10e456: 53 push %ebx
10e457: 6a 00 push $0x0
10e459: e8 32 00 00 00 call 10e490 <_Watchdog_Report>
_ISR_Disable( level );
printk( "Watchdog Chain: %s %p\n", name, header );
if ( !_Chain_Is_empty( header ) ) {
for ( node = header->first ;
node != _Chain_Tail(header) ;
node = node->next )
10e45e: 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 = header->first ;
10e460: 83 c4 10 add $0x10,%esp
10e463: 39 f3 cmp %esi,%ebx
10e465: 75 ed jne 10e454 <_Watchdog_Report_chain+0x2c><== NEVER TAKEN
{
Watchdog_Control *watch = (Watchdog_Control *) node;
_Watchdog_Report( NULL, watch );
}
printk( "== end of %s \n", name );
10e467: 50 push %eax
10e468: 50 push %eax
10e469: 57 push %edi
10e46a: 68 3b 27 12 00 push $0x12273b
10e46f: eb 08 jmp 10e479 <_Watchdog_Report_chain+0x51>
} else {
printk( "Chain is empty\n" );
10e471: 83 ec 0c sub $0xc,%esp
10e474: 68 4a 27 12 00 push $0x12274a
10e479: e8 fe a9 ff ff call 108e7c <printk>
10e47e: 83 c4 10 add $0x10,%esp
}
_ISR_Enable( level );
10e481: ff 75 e4 pushl -0x1c(%ebp)
10e484: 9d popf
}
10e485: 8d 65 f4 lea -0xc(%ebp),%esp
10e488: 5b pop %ebx
10e489: 5e pop %esi
10e48a: 5f pop %edi
10e48b: c9 leave
10e48c: c3 ret
0011e1dc <_exit>:
/*
* If the toolset uses init/fini sections, then we need to
* run the global destructors now.
*/
#if defined(__USE_INIT_FINI__)
FINI_SYMBOL();
11e1dc: 55 push %ebp
11e1dd: 89 e5 mov %esp,%ebp
11e1df: 83 ec 08 sub $0x8,%esp
11e1e2: e8 76 06 00 00 call 11e85d <_fini>
* We need to do the exit processing on the global reentrancy structure.
* This has already been done on the per task reentrancy structure
* associated with this task.
*/
libc_wrapup();
11e1e7: e8 8c ff ff ff call 11e178 <libc_wrapup>
rtems_shutdown_executive(status);
11e1ec: 83 ec 0c sub $0xc,%esp
11e1ef: ff 75 08 pushl 0x8(%ebp)
11e1f2: e8 e9 00 00 00 call 11e2e0 <rtems_shutdown_executive>
11e1f7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
11e1fa: eb fe jmp 11e1fa <_exit+0x1e> <== NOT EXECUTED
00125f6a <_fat_block_read>:
uint32_t start,
uint32_t offset,
uint32_t count,
void *buff
)
{
125f6a: 55 push %ebp <== NOT EXECUTED
125f6b: 89 e5 mov %esp,%ebp <== NOT EXECUTED
125f6d: 57 push %edi <== NOT EXECUTED
125f6e: 56 push %esi <== NOT EXECUTED
125f6f: 53 push %ebx <== NOT EXECUTED
125f70: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED
125f73: 8b 55 14 mov 0x14(%ebp),%edx <== NOT EXECUTED
int rc = RC_OK;
register fat_fs_info_t *fs_info = mt_entry->fs_info;
125f76: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
125f79: 8b 40 34 mov 0x34(%eax),%eax <== NOT EXECUTED
125f7c: 89 45 d0 mov %eax,-0x30(%ebp) <== NOT EXECUTED
ssize_t cmpltd = 0;
uint32_t blk = start;
uint32_t ofs = offset;
rtems_bdbuf_buffer *block = NULL;
125f7f: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) <== NOT EXECUTED
125f86: 8b 75 10 mov 0x10(%ebp),%esi <== NOT EXECUTED
125f89: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
125f8c: 89 45 d4 mov %eax,-0x2c(%ebp) <== NOT EXECUTED
125f8f: 31 db xor %ebx,%ebx <== NOT EXECUTED
uint32_t c = 0;
while (count > 0)
125f91: eb 50 jmp 125fe3 <_fat_block_read+0x79> <== NOT EXECUTED
{
rc = fat_buf_access(fs_info, blk, FAT_OP_TYPE_READ, &block);
125f93: 8d 4d e4 lea -0x1c(%ebp),%ecx <== NOT EXECUTED
125f96: 51 push %ecx <== NOT EXECUTED
125f97: 6a 01 push $0x1 <== NOT EXECUTED
125f99: ff 75 d4 pushl -0x2c(%ebp) <== NOT EXECUTED
125f9c: ff 75 d0 pushl -0x30(%ebp) <== NOT EXECUTED
125f9f: 89 55 c8 mov %edx,-0x38(%ebp) <== NOT EXECUTED
125fa2: e8 ff fa ff ff call 125aa6 <fat_buf_access> <== NOT EXECUTED
if (rc != RC_OK)
125fa7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
125faa: 85 c0 test %eax,%eax <== NOT EXECUTED
125fac: 8b 55 c8 mov -0x38(%ebp),%edx <== NOT EXECUTED
125faf: 74 05 je 125fb6 <_fat_block_read+0x4c> <== NOT EXECUTED
125fb1: 83 cb ff or $0xffffffff,%ebx <== NOT EXECUTED
125fb4: eb 31 jmp 125fe7 <_fat_block_read+0x7d> <== NOT EXECUTED
return -1;
c = MIN(count, (fs_info->vol.bps - ofs));
125fb6: 8b 4d d0 mov -0x30(%ebp),%ecx <== NOT EXECUTED
125fb9: 0f b7 01 movzwl (%ecx),%eax <== NOT EXECUTED
125fbc: 29 f0 sub %esi,%eax <== NOT EXECUTED
125fbe: 39 d0 cmp %edx,%eax <== NOT EXECUTED
125fc0: 76 02 jbe 125fc4 <_fat_block_read+0x5a> <== NOT EXECUTED
125fc2: 89 d0 mov %edx,%eax <== NOT EXECUTED
memcpy((buff + cmpltd), (block->buffer + ofs), c);
125fc4: 8b 4d 18 mov 0x18(%ebp),%ecx <== NOT EXECUTED
125fc7: 01 d9 add %ebx,%ecx <== NOT EXECUTED
125fc9: 89 4d cc mov %ecx,-0x34(%ebp) <== NOT EXECUTED
125fcc: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED
125fcf: 03 71 20 add 0x20(%ecx),%esi <== NOT EXECUTED
125fd2: 8b 7d cc mov -0x34(%ebp),%edi <== NOT EXECUTED
125fd5: 89 c1 mov %eax,%ecx <== NOT EXECUTED
125fd7: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
count -= c;
125fd9: 29 c2 sub %eax,%edx <== NOT EXECUTED
cmpltd += c;
125fdb: 8d 1c 18 lea (%eax,%ebx,1),%ebx <== NOT EXECUTED
blk++;
125fde: ff 45 d4 incl -0x2c(%ebp) <== NOT EXECUTED
125fe1: 31 f6 xor %esi,%esi <== NOT EXECUTED
uint32_t blk = start;
uint32_t ofs = offset;
rtems_bdbuf_buffer *block = NULL;
uint32_t c = 0;
while (count > 0)
125fe3: 85 d2 test %edx,%edx <== NOT EXECUTED
125fe5: 75 ac jne 125f93 <_fat_block_read+0x29> <== NOT EXECUTED
cmpltd += c;
blk++;
ofs = 0;
}
return cmpltd;
}
125fe7: 89 d8 mov %ebx,%eax <== NOT EXECUTED
125fe9: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
125fec: 5b pop %ebx <== NOT EXECUTED
125fed: 5e pop %esi <== NOT EXECUTED
125fee: 5f pop %edi <== NOT EXECUTED
125fef: c9 leave <== NOT EXECUTED
125ff0: c3 ret <== NOT EXECUTED
00125a91 <_fat_block_release>:
* 0 on success, or -1 if error occured and errno set appropriately
*/
int
_fat_block_release(
rtems_filesystem_mount_table_entry_t *mt_entry)
{
125a91: 55 push %ebp <== NOT EXECUTED
125a92: 89 e5 mov %esp,%ebp <== NOT EXECUTED
125a94: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
fat_fs_info_t *fs_info = mt_entry->fs_info;
return fat_buf_release(fs_info);
125a97: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
125a9a: 8b 40 34 mov 0x34(%eax),%eax <== NOT EXECUTED
125a9d: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED
}
125aa0: c9 leave <== NOT EXECUTED
int
_fat_block_release(
rtems_filesystem_mount_table_entry_t *mt_entry)
{
fat_fs_info_t *fs_info = mt_entry->fs_info;
return fat_buf_release(fs_info);
125aa1: e9 b9 fe ff ff jmp 12595f <fat_buf_release> <== NOT EXECUTED
00125c78 <_fat_block_write>:
rtems_filesystem_mount_table_entry_t *mt_entry,
uint32_t start,
uint32_t offset,
uint32_t count,
const void *buff)
{
125c78: 55 push %ebp <== NOT EXECUTED
125c79: 89 e5 mov %esp,%ebp <== NOT EXECUTED
125c7b: 57 push %edi <== NOT EXECUTED
125c7c: 56 push %esi <== NOT EXECUTED
125c7d: 53 push %ebx <== NOT EXECUTED
125c7e: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED
int rc = RC_OK;
fat_fs_info_t *fs_info = mt_entry->fs_info;
125c81: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
125c84: 8b 58 34 mov 0x34(%eax),%ebx <== NOT EXECUTED
ssize_t cmpltd = 0;
uint32_t blk = start;
uint32_t ofs = offset;
rtems_bdbuf_buffer *block = NULL;
125c87: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) <== NOT EXECUTED
125c8e: 8b 75 10 mov 0x10(%ebp),%esi <== NOT EXECUTED
125c91: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
125c94: 89 45 d0 mov %eax,-0x30(%ebp) <== NOT EXECUTED
125c97: 31 d2 xor %edx,%edx <== NOT EXECUTED
uint32_t c = 0;
while(count > 0)
125c99: eb 6b jmp 125d06 <_fat_block_write+0x8e> <== NOT EXECUTED
{
c = MIN(count, (fs_info->vol.bps - ofs));
125c9b: 0f b7 03 movzwl (%ebx),%eax <== NOT EXECUTED
125c9e: 89 c1 mov %eax,%ecx <== NOT EXECUTED
125ca0: 29 f1 sub %esi,%ecx <== NOT EXECUTED
125ca2: 89 4d d4 mov %ecx,-0x2c(%ebp) <== NOT EXECUTED
125ca5: 8b 4d 14 mov 0x14(%ebp),%ecx <== NOT EXECUTED
125ca8: 39 4d d4 cmp %ecx,-0x2c(%ebp) <== NOT EXECUTED
125cab: 76 03 jbe 125cb0 <_fat_block_write+0x38> <== NOT EXECUTED
125cad: 89 4d d4 mov %ecx,-0x2c(%ebp) <== NOT EXECUTED
if (c == fs_info->vol.bps)
125cb0: 39 45 d4 cmp %eax,-0x2c(%ebp) <== NOT EXECUTED
125cb3: 75 08 jne 125cbd <_fat_block_write+0x45> <== NOT EXECUTED
rc = fat_buf_access(fs_info, blk, FAT_OP_TYPE_GET, &block);
125cb5: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
125cb8: 50 push %eax <== NOT EXECUTED
125cb9: 6a 02 push $0x2 <== NOT EXECUTED
125cbb: eb 06 jmp 125cc3 <_fat_block_write+0x4b> <== NOT EXECUTED
else
rc = fat_buf_access(fs_info, blk, FAT_OP_TYPE_READ, &block);
125cbd: 8d 4d e4 lea -0x1c(%ebp),%ecx <== NOT EXECUTED
125cc0: 51 push %ecx <== NOT EXECUTED
125cc1: 6a 01 push $0x1 <== NOT EXECUTED
125cc3: ff 75 d0 pushl -0x30(%ebp) <== NOT EXECUTED
125cc6: 53 push %ebx <== NOT EXECUTED
125cc7: 89 55 cc mov %edx,-0x34(%ebp) <== NOT EXECUTED
125cca: e8 d7 fd ff ff call 125aa6 <fat_buf_access> <== NOT EXECUTED
125ccf: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
125cd2: 8b 55 cc mov -0x34(%ebp),%edx <== NOT EXECUTED
if (rc != RC_OK)
125cd5: 85 c0 test %eax,%eax <== NOT EXECUTED
125cd7: 74 05 je 125cde <_fat_block_write+0x66> <== NOT EXECUTED
125cd9: 83 ca ff or $0xffffffff,%edx <== NOT EXECUTED
125cdc: eb 2e jmp 125d0c <_fat_block_write+0x94> <== NOT EXECUTED
return -1;
memcpy((block->buffer + ofs), (buff + cmpltd), c);
125cde: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
125ce1: 03 70 20 add 0x20(%eax),%esi <== NOT EXECUTED
125ce4: 89 f0 mov %esi,%eax <== NOT EXECUTED
125ce6: 8b 75 18 mov 0x18(%ebp),%esi <== NOT EXECUTED
125ce9: 01 d6 add %edx,%esi <== NOT EXECUTED
125ceb: 89 c7 mov %eax,%edi <== NOT EXECUTED
125ced: 8b 4d d4 mov -0x2c(%ebp),%ecx <== NOT EXECUTED
125cf0: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
}
static inline void
fat_buf_mark_modified(fat_fs_info_t *fs_info)
{
fs_info->c.modified = true;
125cf2: c6 83 80 00 00 00 01 movb $0x1,0x80(%ebx) <== NOT EXECUTED
fat_buf_mark_modified(fs_info);
count -= c;
125cf9: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED
125cfc: 29 45 14 sub %eax,0x14(%ebp) <== NOT EXECUTED
cmpltd +=c;
125cff: 01 c2 add %eax,%edx <== NOT EXECUTED
blk++;
125d01: ff 45 d0 incl -0x30(%ebp) <== NOT EXECUTED
125d04: 31 f6 xor %esi,%esi <== NOT EXECUTED
uint32_t blk = start;
uint32_t ofs = offset;
rtems_bdbuf_buffer *block = NULL;
uint32_t c = 0;
while(count > 0)
125d06: 83 7d 14 00 cmpl $0x0,0x14(%ebp) <== NOT EXECUTED
125d0a: 75 8f jne 125c9b <_fat_block_write+0x23> <== NOT EXECUTED
cmpltd +=c;
blk++;
ofs = 0;
}
return cmpltd;
}
125d0c: 89 d0 mov %edx,%eax <== NOT EXECUTED
125d0e: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
125d11: 5b pop %ebx <== NOT EXECUTED
125d12: 5e pop %esi <== NOT EXECUTED
125d13: 5f pop %edi <== NOT EXECUTED
125d14: c9 leave <== NOT EXECUTED
125d15: c3 ret <== NOT EXECUTED
0013ad76 <_fcntl_r>:
struct _reent *ptr __attribute__((unused)),
int fd,
int cmd,
int arg
)
{
13ad76: 55 push %ebp <== NOT EXECUTED
13ad77: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13ad79: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13ad7c: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
13ad7f: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
return fcntl( fd, cmd, arg );
13ad82: 8b 4d 14 mov 0x14(%ebp),%ecx <== NOT EXECUTED
13ad85: 89 4d 10 mov %ecx,0x10(%ebp) <== NOT EXECUTED
13ad88: 89 55 0c mov %edx,0xc(%ebp) <== NOT EXECUTED
13ad8b: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED
}
13ad8e: c9 leave <== NOT EXECUTED
int fd,
int cmd,
int arg
)
{
return fcntl( fd, cmd, arg );
13ad8f: e9 98 fe ff ff jmp 13ac2c <fcntl> <== NOT EXECUTED
0010eeda <_getpid_r>:
#include <reent.h>
pid_t _getpid_r(
struct _reent *ptr __attribute__((unused))
)
{
10eeda: 55 push %ebp <== NOT EXECUTED
10eedb: 89 e5 mov %esp,%ebp <== NOT EXECUTED
return getpid();
}
10eedd: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
10eee2: c9 leave <== NOT EXECUTED
10eee3: c3 ret <== NOT EXECUTED
00107763 <_gettimeofday>:
int _gettimeofday(
struct timeval *tp,
struct timezone *tzp
)
{
107763: 55 push %ebp <== NOT EXECUTED
107764: 89 e5 mov %esp,%ebp <== NOT EXECUTED
107766: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
return gettimeofday( tp, tzp );
}
107769: c9 leave <== NOT EXECUTED
int _gettimeofday(
struct timeval *tp,
struct timezone *tzp
)
{
return gettimeofday( tp, tzp );
10776a: e9 a5 ff ff ff jmp 107714 <gettimeofday> <== NOT EXECUTED
00128c63 <_link_r>:
int _link_r(
struct _reent *ptr __attribute__((unused)),
const char *existing,
const char *new
)
{
128c63: 55 push %ebp <== NOT EXECUTED
128c64: 89 e5 mov %esp,%ebp <== NOT EXECUTED
128c66: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
128c69: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
return link( existing, new );
128c6c: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
128c6f: 89 55 0c mov %edx,0xc(%ebp) <== NOT EXECUTED
128c72: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED
}
128c75: c9 leave <== NOT EXECUTED
struct _reent *ptr __attribute__((unused)),
const char *existing,
const char *new
)
{
return link( existing, new );
128c76: e9 61 fe ff ff jmp 128adc <link> <== NOT EXECUTED
00128e1e <_lstat_r>:
int _STAT_R_NAME(
struct _reent *ptr __attribute__((unused)),
const char *path,
struct stat *buf
)
{
128e1e: 55 push %ebp <== NOT EXECUTED
128e1f: 89 e5 mov %esp,%ebp <== NOT EXECUTED
128e21: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
128e24: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
return _STAT_NAME( path, buf );
128e27: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
128e2a: 89 55 0c mov %edx,0xc(%ebp) <== NOT EXECUTED
128e2d: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED
}
128e30: c9 leave <== NOT EXECUTED
struct _reent *ptr __attribute__((unused)),
const char *path,
struct stat *buf
)
{
return _STAT_NAME( path, buf );
128e31: e9 3a ff ff ff jmp 128d70 <lstat> <== NOT EXECUTED
0011e2a8 <_realloc_r>:
void *_realloc_r(
struct _reent *ignored __attribute__((unused)),
void *ptr,
size_t size
)
{
11e2a8: 55 push %ebp <== NOT EXECUTED
11e2a9: 89 e5 mov %esp,%ebp <== NOT EXECUTED
11e2ab: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
11e2ae: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
return realloc( ptr, size );
11e2b1: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
11e2b4: 89 55 0c mov %edx,0xc(%ebp) <== NOT EXECUTED
11e2b7: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED
}
11e2ba: c9 leave <== NOT EXECUTED
struct _reent *ignored __attribute__((unused)),
void *ptr,
size_t size
)
{
return realloc( ptr, size );
11e2bb: e9 48 00 00 00 jmp 11e308 <realloc> <== NOT EXECUTED
00154000 <_rename_r>:
int _rename_r(
struct _reent *ptr __attribute__((unused)),
const char *old,
const char *new
)
{
154000: 55 push %ebp
154001: 89 e5 mov %esp,%ebp
154003: 57 push %edi
154004: 56 push %esi
154005: 53 push %ebx
154006: 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 );
154009: ff 75 0c pushl 0xc(%ebp)
15400c: e8 23 8d fb ff call 10cd34 <rtems_filesystem_dirname>
154011: 89 45 94 mov %eax,-0x6c(%ebp)
if ( old_parent_pathlen == 0 )
154014: 83 c4 10 add $0x10,%esp
154017: 85 c0 test %eax,%eax
154019: 8d 45 b8 lea -0x48(%ebp),%eax
15401c: 75 15 jne 154033 <_rename_r+0x33>
rtems_filesystem_get_start_loc( old, &i, &old_parent_loc );
15401e: 52 push %edx
15401f: 50 push %eax
154020: 8d 45 e4 lea -0x1c(%ebp),%eax
154023: 50 push %eax
154024: ff 75 0c pushl 0xc(%ebp)
154027: e8 88 a3 fb ff call 10e3b4 <rtems_filesystem_get_start_loc>
15402c: 31 db xor %ebx,%ebx
15402e: 83 c4 10 add $0x10,%esp
154031: eb 20 jmp 154053 <_rename_r+0x53>
else {
result = rtems_filesystem_evaluate_path( old, old_parent_pathlen,
154033: 83 ec 0c sub $0xc,%esp
154036: 6a 00 push $0x0
154038: 50 push %eax
154039: 6a 02 push $0x2
15403b: ff 75 94 pushl -0x6c(%ebp)
15403e: ff 75 0c pushl 0xc(%ebp)
154041: e8 eb 8d fb ff call 10ce31 <rtems_filesystem_evaluate_path>
RTEMS_LIBIO_PERMS_WRITE,
&old_parent_loc,
false );
if ( result != 0 )
154046: 83 c4 20 add $0x20,%esp
154049: 85 c0 test %eax,%eax
15404b: 0f 85 3d 02 00 00 jne 15428e <_rename_r+0x28e> <== NEVER TAKEN
154051: b3 01 mov $0x1,%bl
/*
* Start from the parent to find the node that should be under it.
*/
old_loc = old_parent_loc;
154053: 8d 7d cc lea -0x34(%ebp),%edi
154056: 8d 75 b8 lea -0x48(%ebp),%esi
154059: b9 05 00 00 00 mov $0x5,%ecx
15405e: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
name = old + old_parent_pathlen;
154060: 8b 75 0c mov 0xc(%ebp),%esi
154063: 03 75 94 add -0x6c(%ebp),%esi
154066: 89 75 e0 mov %esi,-0x20(%ebp)
name += rtems_filesystem_prefix_separators( name, strlen( name ) );
154069: 83 c9 ff or $0xffffffff,%ecx
15406c: 89 f7 mov %esi,%edi
15406e: 31 c0 xor %eax,%eax
154070: f2 ae repnz scas %es:(%edi),%al
154072: f7 d1 not %ecx
154074: 49 dec %ecx
154075: 57 push %edi
154076: 57 push %edi
154077: 51 push %ecx
154078: 56 push %esi
154079: e8 7a 8c fb ff call 10ccf8 <rtems_filesystem_prefix_separators>
15407e: 01 c6 add %eax,%esi
154080: 89 75 e0 mov %esi,-0x20(%ebp)
result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
154083: 83 c9 ff or $0xffffffff,%ecx
154086: 89 f7 mov %esi,%edi
154088: 31 c0 xor %eax,%eax
15408a: f2 ae repnz scas %es:(%edi),%al
15408c: f7 d1 not %ecx
15408e: 49 dec %ecx
15408f: c7 04 24 00 00 00 00 movl $0x0,(%esp)
154096: 8d 7d cc lea -0x34(%ebp),%edi
154099: 57 push %edi
15409a: 6a 00 push $0x0
15409c: 51 push %ecx
15409d: 56 push %esi
15409e: e8 d4 8c fb ff call 10cd77 <rtems_filesystem_evaluate_relative_path>
0, &old_loc, false );
if ( result != 0 ) {
1540a3: 83 c4 20 add $0x20,%esp
1540a6: 85 c0 test %eax,%eax
1540a8: 74 29 je 1540d3 <_rename_r+0xd3>
if ( free_old_parentloc )
1540aa: 84 db test %bl,%bl
1540ac: 0f 84 dc 01 00 00 je 15428e <_rename_r+0x28e> <== NEVER TAKEN
rtems_filesystem_freenode( &old_parent_loc );
1540b2: 8b 45 c4 mov -0x3c(%ebp),%eax
1540b5: 85 c0 test %eax,%eax
1540b7: 0f 84 d1 01 00 00 je 15428e <_rename_r+0x28e> <== NEVER TAKEN
1540bd: 8b 40 1c mov 0x1c(%eax),%eax
1540c0: 85 c0 test %eax,%eax
1540c2: 0f 84 c6 01 00 00 je 15428e <_rename_r+0x28e> <== NEVER TAKEN
1540c8: 83 ec 0c sub $0xc,%esp
1540cb: 8d 55 b8 lea -0x48(%ebp),%edx
1540ce: e9 89 00 00 00 jmp 15415c <_rename_r+0x15c>
/*
* Get the parent of the new node we are renaming to.
*/
rtems_filesystem_get_start_loc( new, &i, &new_parent_loc );
1540d3: 51 push %ecx
1540d4: 8d 75 a4 lea -0x5c(%ebp),%esi
1540d7: 56 push %esi
1540d8: 8d 45 e4 lea -0x1c(%ebp),%eax
1540db: 50 push %eax
1540dc: ff 75 10 pushl 0x10(%ebp)
1540df: e8 d0 a2 fb ff call 10e3b4 <rtems_filesystem_get_start_loc>
if ( !new_parent_loc.ops->evalformake_h ) {
1540e4: 8b 45 b0 mov -0x50(%ebp),%eax
1540e7: 8b 40 04 mov 0x4(%eax),%eax
1540ea: 83 c4 10 add $0x10,%esp
1540ed: 85 c0 test %eax,%eax
1540ef: 0f 84 f3 00 00 00 je 1541e8 <_rename_r+0x1e8>
rtems_filesystem_freenode( &old_parent_loc );
rtems_filesystem_freenode( &old_loc );
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
result = (*new_parent_loc.ops->evalformake_h)( &new[i], &new_parent_loc, &name );
1540f5: 52 push %edx
1540f6: 8d 55 e0 lea -0x20(%ebp),%edx
1540f9: 52 push %edx
1540fa: 56 push %esi
1540fb: 8b 55 10 mov 0x10(%ebp),%edx
1540fe: 03 55 e4 add -0x1c(%ebp),%edx
154101: 52 push %edx
154102: ff d0 call *%eax
if ( result != 0 ) {
154104: 83 c4 10 add $0x10,%esp
154107: 85 c0 test %eax,%eax
154109: 74 5f je 15416a <_rename_r+0x16a>
rtems_filesystem_freenode( &new_parent_loc );
15410b: 8b 45 b0 mov -0x50(%ebp),%eax
15410e: 85 c0 test %eax,%eax
154110: 74 10 je 154122 <_rename_r+0x122> <== NEVER TAKEN
154112: 8b 40 1c mov 0x1c(%eax),%eax
154115: 85 c0 test %eax,%eax
154117: 74 09 je 154122 <_rename_r+0x122> <== NEVER TAKEN
154119: 83 ec 0c sub $0xc,%esp
15411c: 56 push %esi
15411d: ff d0 call *%eax
15411f: 83 c4 10 add $0x10,%esp
if ( free_old_parentloc )
154122: 84 db test %bl,%bl
154124: 74 1a je 154140 <_rename_r+0x140> <== NEVER TAKEN
rtems_filesystem_freenode( &old_parent_loc );
154126: 8b 45 c4 mov -0x3c(%ebp),%eax
154129: 85 c0 test %eax,%eax
15412b: 74 13 je 154140 <_rename_r+0x140> <== NEVER TAKEN
15412d: 8b 40 1c mov 0x1c(%eax),%eax
154130: 85 c0 test %eax,%eax
154132: 74 0c je 154140 <_rename_r+0x140> <== NEVER TAKEN
154134: 83 ec 0c sub $0xc,%esp
154137: 8d 55 b8 lea -0x48(%ebp),%edx
15413a: 52 push %edx
15413b: ff d0 call *%eax
15413d: 83 c4 10 add $0x10,%esp
rtems_filesystem_freenode( &old_loc );
154140: 8b 45 d8 mov -0x28(%ebp),%eax
154143: 85 c0 test %eax,%eax
154145: 0f 84 43 01 00 00 je 15428e <_rename_r+0x28e> <== NEVER TAKEN
15414b: 8b 40 1c mov 0x1c(%eax),%eax
15414e: 85 c0 test %eax,%eax
154150: 0f 84 38 01 00 00 je 15428e <_rename_r+0x28e> <== NEVER TAKEN
154156: 83 ec 0c sub $0xc,%esp
154159: 8d 55 cc lea -0x34(%ebp),%edx
15415c: 52 push %edx
15415d: ff d0 call *%eax
15415f: 83 cf ff or $0xffffffff,%edi
154162: 83 c4 10 add $0x10,%esp
154165: e9 27 01 00 00 jmp 154291 <_rename_r+0x291>
/*
* 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 ) {
15416a: 8b 45 c8 mov -0x38(%ebp),%eax
15416d: 3b 45 b4 cmp -0x4c(%ebp),%eax
154170: 8b 45 b0 mov -0x50(%ebp),%eax
154173: 74 5c je 1541d1 <_rename_r+0x1d1>
rtems_filesystem_freenode( &new_parent_loc );
154175: 85 c0 test %eax,%eax
154177: 74 10 je 154189 <_rename_r+0x189> <== NEVER TAKEN
154179: 8b 40 1c mov 0x1c(%eax),%eax
15417c: 85 c0 test %eax,%eax
15417e: 74 09 je 154189 <_rename_r+0x189> <== NEVER TAKEN
154180: 83 ec 0c sub $0xc,%esp
154183: 56 push %esi
154184: ff d0 call *%eax
154186: 83 c4 10 add $0x10,%esp
if ( free_old_parentloc )
154189: 84 db test %bl,%bl
15418b: 74 1a je 1541a7 <_rename_r+0x1a7>
rtems_filesystem_freenode( &old_parent_loc );
15418d: 8b 45 c4 mov -0x3c(%ebp),%eax
154190: 85 c0 test %eax,%eax
154192: 74 13 je 1541a7 <_rename_r+0x1a7> <== NEVER TAKEN
154194: 8b 40 1c mov 0x1c(%eax),%eax
154197: 85 c0 test %eax,%eax
154199: 74 0c je 1541a7 <_rename_r+0x1a7> <== NEVER TAKEN
15419b: 83 ec 0c sub $0xc,%esp
15419e: 8d 55 b8 lea -0x48(%ebp),%edx
1541a1: 52 push %edx
1541a2: ff d0 call *%eax
1541a4: 83 c4 10 add $0x10,%esp
rtems_filesystem_freenode( &old_loc );
1541a7: 8b 45 d8 mov -0x28(%ebp),%eax
1541aa: 85 c0 test %eax,%eax
1541ac: 74 13 je 1541c1 <_rename_r+0x1c1> <== NEVER TAKEN
1541ae: 8b 40 1c mov 0x1c(%eax),%eax
1541b1: 85 c0 test %eax,%eax
1541b3: 74 0c je 1541c1 <_rename_r+0x1c1> <== NEVER TAKEN
1541b5: 83 ec 0c sub $0xc,%esp
1541b8: 8d 55 cc lea -0x34(%ebp),%edx
1541bb: 52 push %edx
1541bc: ff d0 call *%eax
1541be: 83 c4 10 add $0x10,%esp
rtems_set_errno_and_return_minus_one( EXDEV );
1541c1: e8 4e 9e fe ff call 13e014 <__errno>
1541c6: c7 00 12 00 00 00 movl $0x12,(%eax)
1541cc: e9 bd 00 00 00 jmp 15428e <_rename_r+0x28e>
}
if ( !new_parent_loc.ops->rename_h ) {
1541d1: 8b 50 40 mov 0x40(%eax),%edx
1541d4: 85 d2 test %edx,%edx
1541d6: 75 55 jne 15422d <_rename_r+0x22d>
rtems_filesystem_freenode( &new_parent_loc );
1541d8: 8b 40 1c mov 0x1c(%eax),%eax
1541db: 85 c0 test %eax,%eax
1541dd: 74 09 je 1541e8 <_rename_r+0x1e8> <== NEVER TAKEN
1541df: 83 ec 0c sub $0xc,%esp
1541e2: 56 push %esi
1541e3: ff d0 call *%eax
1541e5: 83 c4 10 add $0x10,%esp
if ( free_old_parentloc )
1541e8: 84 db test %bl,%bl
1541ea: 74 1a je 154206 <_rename_r+0x206> <== NEVER TAKEN
rtems_filesystem_freenode( &old_parent_loc );
1541ec: 8b 45 c4 mov -0x3c(%ebp),%eax
1541ef: 85 c0 test %eax,%eax
1541f1: 74 13 je 154206 <_rename_r+0x206> <== NEVER TAKEN
1541f3: 8b 40 1c mov 0x1c(%eax),%eax
1541f6: 85 c0 test %eax,%eax
1541f8: 74 0c je 154206 <_rename_r+0x206> <== NEVER TAKEN
1541fa: 83 ec 0c sub $0xc,%esp
1541fd: 8d 55 b8 lea -0x48(%ebp),%edx
154200: 52 push %edx
154201: ff d0 call *%eax
154203: 83 c4 10 add $0x10,%esp
rtems_filesystem_freenode( &old_loc );
154206: 8b 45 d8 mov -0x28(%ebp),%eax
154209: 85 c0 test %eax,%eax
15420b: 74 13 je 154220 <_rename_r+0x220> <== NEVER TAKEN
15420d: 8b 40 1c mov 0x1c(%eax),%eax
154210: 85 c0 test %eax,%eax
154212: 74 0c je 154220 <_rename_r+0x220> <== NEVER TAKEN
154214: 83 ec 0c sub $0xc,%esp
154217: 8d 55 cc lea -0x34(%ebp),%edx
15421a: 52 push %edx
15421b: ff d0 call *%eax
15421d: 83 c4 10 add $0x10,%esp
rtems_set_errno_and_return_minus_one( ENOTSUP );
154220: e8 ef 9d fe ff call 13e014 <__errno>
154225: c7 00 86 00 00 00 movl $0x86,(%eax)
15422b: eb 61 jmp 15428e <_rename_r+0x28e>
}
result = (*new_parent_loc.ops->rename_h)( &old_parent_loc, &old_loc, &new_parent_loc, name );
15422d: ff 75 e0 pushl -0x20(%ebp)
154230: 56 push %esi
154231: 57 push %edi
154232: 8d 45 b8 lea -0x48(%ebp),%eax
154235: 50 push %eax
154236: ff d2 call *%edx
154238: 89 c7 mov %eax,%edi
rtems_filesystem_freenode( &new_parent_loc );
15423a: 8b 45 b0 mov -0x50(%ebp),%eax
15423d: 83 c4 10 add $0x10,%esp
154240: 85 c0 test %eax,%eax
154242: 74 10 je 154254 <_rename_r+0x254> <== NEVER TAKEN
154244: 8b 40 1c mov 0x1c(%eax),%eax
154247: 85 c0 test %eax,%eax
154249: 74 09 je 154254 <_rename_r+0x254> <== NEVER TAKEN
15424b: 83 ec 0c sub $0xc,%esp
15424e: 56 push %esi
15424f: ff d0 call *%eax
154251: 83 c4 10 add $0x10,%esp
if ( free_old_parentloc )
154254: 84 db test %bl,%bl
154256: 74 1a je 154272 <_rename_r+0x272>
rtems_filesystem_freenode( &old_parent_loc );
154258: 8b 45 c4 mov -0x3c(%ebp),%eax
15425b: 85 c0 test %eax,%eax
15425d: 74 13 je 154272 <_rename_r+0x272> <== NEVER TAKEN
15425f: 8b 40 1c mov 0x1c(%eax),%eax
154262: 85 c0 test %eax,%eax
154264: 74 0c je 154272 <_rename_r+0x272> <== NEVER TAKEN
154266: 83 ec 0c sub $0xc,%esp
154269: 8d 55 b8 lea -0x48(%ebp),%edx
15426c: 52 push %edx
15426d: ff d0 call *%eax
15426f: 83 c4 10 add $0x10,%esp
rtems_filesystem_freenode( &old_loc );
154272: 8b 45 d8 mov -0x28(%ebp),%eax
154275: 85 c0 test %eax,%eax
154277: 74 18 je 154291 <_rename_r+0x291> <== NEVER TAKEN
154279: 8b 40 1c mov 0x1c(%eax),%eax
15427c: 85 c0 test %eax,%eax
15427e: 74 11 je 154291 <_rename_r+0x291> <== NEVER TAKEN
154280: 83 ec 0c sub $0xc,%esp
154283: 8d 55 cc lea -0x34(%ebp),%edx
154286: 52 push %edx
154287: ff d0 call *%eax
154289: e9 d4 fe ff ff jmp 154162 <_rename_r+0x162>
15428e: 83 cf ff or $0xffffffff,%edi
return result;
}
154291: 89 f8 mov %edi,%eax
154293: 8d 65 f4 lea -0xc(%ebp),%esp
154296: 5b pop %ebx
154297: 5e pop %esi
154298: 5f pop %edi
154299: c9 leave
15429a: c3 ret
0010e39a <_stat_r>:
int _STAT_R_NAME(
struct _reent *ptr __attribute__((unused)),
const char *path,
struct stat *buf
)
{
10e39a: 55 push %ebp <== NOT EXECUTED
10e39b: 89 e5 mov %esp,%ebp <== NOT EXECUTED
10e39d: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
10e3a0: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
return _STAT_NAME( path, buf );
10e3a3: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
10e3a6: 89 55 0c mov %edx,0xc(%ebp) <== NOT EXECUTED
10e3a9: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED
}
10e3ac: c9 leave <== NOT EXECUTED
struct _reent *ptr __attribute__((unused)),
const char *path,
struct stat *buf
)
{
return _STAT_NAME( path, buf );
10e3ad: e9 3a ff ff ff jmp 10e2ec <stat> <== NOT EXECUTED
00111e53 <_unlink_r>:
int _unlink_r(
struct _reent *ptr __attribute__((unused)),
const char *path
)
{
111e53: 55 push %ebp <== NOT EXECUTED
111e54: 89 e5 mov %esp,%ebp <== NOT EXECUTED
111e56: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
return unlink( path );
111e59: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
111e5c: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED
}
111e5f: c9 leave <== NOT EXECUTED
int _unlink_r(
struct _reent *ptr __attribute__((unused)),
const char *path
)
{
return unlink( path );
111e60: e9 27 fe ff ff jmp 111c8c <unlink> <== NOT EXECUTED
0010a458 <adjtime>:
int adjtime(
struct timeval *delta,
struct timeval *olddelta
)
{
10a458: 55 push %ebp
10a459: 89 e5 mov %esp,%ebp
10a45b: 56 push %esi
10a45c: 53 push %ebx
10a45d: 83 ec 10 sub $0x10,%esp
10a460: 8b 5d 08 mov 0x8(%ebp),%ebx
10a463: 8b 75 0c mov 0xc(%ebp),%esi
long adjustment;
/*
* Simple validations
*/
if ( !delta )
10a466: 85 db test %ebx,%ebx
10a468: 74 09 je 10a473 <adjtime+0x1b>
rtems_set_errno_and_return_minus_one( EINVAL );
if ( delta->tv_usec >= TOD_MICROSECONDS_PER_SECOND )
10a46a: 81 7b 04 3f 42 0f 00 cmpl $0xf423f,0x4(%ebx)
10a471: 76 13 jbe 10a486 <adjtime+0x2e>
rtems_set_errno_and_return_minus_one( EINVAL );
10a473: e8 58 8f 00 00 call 1133d0 <__errno>
10a478: c7 00 16 00 00 00 movl $0x16,(%eax)
10a47e: 83 c8 ff or $0xffffffff,%eax
10a481: e9 9a 00 00 00 jmp 10a520 <adjtime+0xc8>
if ( olddelta ) {
10a486: 85 f6 test %esi,%esi
10a488: 74 0d je 10a497 <adjtime+0x3f>
olddelta->tv_sec = 0;
10a48a: c7 06 00 00 00 00 movl $0x0,(%esi)
olddelta->tv_usec = 0;
10a490: c7 46 04 00 00 00 00 movl $0x0,0x4(%esi)
}
/* convert delta to microseconds */
adjustment = (delta->tv_sec * TOD_MICROSECONDS_PER_SECOND);
10a497: 69 03 40 42 0f 00 imul $0xf4240,(%ebx),%eax
adjustment += delta->tv_usec;
10a49d: 03 43 04 add 0x4(%ebx),%eax
/* too small to account for */
if ( adjustment < rtems_configuration_get_microseconds_per_tick() )
10a4a0: 3b 05 04 32 12 00 cmp 0x123204,%eax
10a4a6: 72 76 jb 10a51e <adjtime+0xc6>
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
10a4a8: a1 30 73 12 00 mov 0x127330,%eax
10a4ad: 40 inc %eax
10a4ae: a3 30 73 12 00 mov %eax,0x127330
* This prevents context switches while we are adjusting the TOD
*/
_Thread_Disable_dispatch();
_TOD_Get( &ts );
10a4b3: 83 ec 0c sub $0xc,%esp
10a4b6: 8d 45 f0 lea -0x10(%ebp),%eax
10a4b9: 50 push %eax
10a4ba: e8 f1 14 00 00 call 10b9b0 <_TOD_Get>
ts.tv_sec += delta->tv_sec;
10a4bf: 8b 03 mov (%ebx),%eax
10a4c1: 01 45 f0 add %eax,-0x10(%ebp)
ts.tv_nsec += delta->tv_usec * TOD_NANOSECONDS_PER_MICROSECOND;
10a4c4: 69 43 04 e8 03 00 00 imul $0x3e8,0x4(%ebx),%eax
10a4cb: 8b 4d f0 mov -0x10(%ebp),%ecx
10a4ce: 03 45 f4 add -0xc(%ebp),%eax
/* if adjustment is too much positive */
while ( ts.tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) {
10a4d1: 83 c4 10 add $0x10,%esp
10a4d4: eb 05 jmp 10a4db <adjtime+0x83>
10a4d6: 2d 00 ca 9a 3b sub $0x3b9aca00,%eax
10a4db: 89 ca mov %ecx,%edx
10a4dd: 41 inc %ecx
10a4de: 3d ff c9 9a 3b cmp $0x3b9ac9ff,%eax
10a4e3: 77 f1 ja 10a4d6 <adjtime+0x7e>
10a4e5: eb 05 jmp 10a4ec <adjtime+0x94>
10a4e7: 05 00 ca 9a 3b add $0x3b9aca00,%eax
10a4ec: 89 d1 mov %edx,%ecx
10a4ee: 4a dec %edx
ts.tv_nsec -= TOD_NANOSECONDS_PER_SECOND;
ts.tv_sec++;
}
/* if adjustment is too much negative */
while ( ts.tv_nsec <= (-1 * TOD_NANOSECONDS_PER_SECOND) ) {
10a4ef: 3d 00 36 65 c4 cmp $0xc4653600,%eax
10a4f4: 76 f1 jbe 10a4e7 <adjtime+0x8f>
10a4f6: 89 45 f4 mov %eax,-0xc(%ebp)
10a4f9: 89 4d f0 mov %ecx,-0x10(%ebp)
ts.tv_nsec += TOD_NANOSECONDS_PER_SECOND;
ts.tv_sec--;
}
_TOD_Set( &ts );
10a4fc: 83 ec 0c sub $0xc,%esp
10a4ff: 8d 45 f0 lea -0x10(%ebp),%eax
10a502: 50 push %eax
10a503: e8 38 15 00 00 call 10ba40 <_TOD_Set>
_Thread_Enable_dispatch();
10a508: e8 94 25 00 00 call 10caa1 <_Thread_Enable_dispatch>
/* set the user's output */
if ( olddelta )
10a50d: 83 c4 10 add $0x10,%esp
10a510: 85 f6 test %esi,%esi
10a512: 74 0a je 10a51e <adjtime+0xc6> <== NEVER TAKEN
*olddelta = *delta;
10a514: 8b 03 mov (%ebx),%eax
10a516: 8b 53 04 mov 0x4(%ebx),%edx
10a519: 89 06 mov %eax,(%esi)
10a51b: 89 56 04 mov %edx,0x4(%esi)
10a51e: 31 c0 xor %eax,%eax
return 0;
}
10a520: 8d 65 f8 lea -0x8(%ebp),%esp
10a523: 5b pop %ebx
10a524: 5e pop %esi
10a525: c9 leave
10a526: c3 ret
001074bc <calloc>:
)
{
register char *cptr;
size_t length;
MSBUMP(calloc_calls, 1);
1074bc: 55 push %ebp
1074bd: 89 e5 mov %esp,%ebp
1074bf: 57 push %edi
1074c0: 53 push %ebx
1074c1: 8b 5d 0c mov 0xc(%ebp),%ebx
1074c4: ff 05 e4 60 12 00 incl 0x1260e4
length = nelem * elsize;
1074ca: 0f af 5d 08 imul 0x8(%ebp),%ebx
cptr = malloc( length );
1074ce: 83 ec 0c sub $0xc,%esp
1074d1: 53 push %ebx
1074d2: e8 65 04 00 00 call 10793c <malloc>
1074d7: 89 c2 mov %eax,%edx
if ( cptr )
1074d9: 83 c4 10 add $0x10,%esp
1074dc: 85 c0 test %eax,%eax
1074de: 74 08 je 1074e8 <calloc+0x2c> <== NEVER TAKEN
memset( cptr, '\0', length );
1074e0: 31 c0 xor %eax,%eax
1074e2: 89 d7 mov %edx,%edi
1074e4: 89 d9 mov %ebx,%ecx
1074e6: f3 aa rep stos %al,%es:(%edi)
MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */
1074e8: ff 0d d4 60 12 00 decl 0x1260d4
return cptr;
}
1074ee: 89 d0 mov %edx,%eax
1074f0: 8d 65 f8 lea -0x8(%ebp),%esp
1074f3: 5b pop %ebx
1074f4: 5f pop %edi
1074f5: c9 leave
1074f6: c3 ret
00127ddc <chdir>:
#include <rtems/seterr.h>
int chdir(
const char *pathname
)
{
127ddc: 55 push %ebp
127ddd: 89 e5 mov %esp,%ebp
127ddf: 57 push %edi
127de0: 56 push %esi
127de1: 83 ec 20 sub $0x20,%esp
127de4: 8b 55 08 mov 0x8(%ebp),%edx
rtems_filesystem_location_info_t loc;
int result;
if ( !pathname )
127de7: 85 d2 test %edx,%edx
127de9: 75 0d jne 127df8 <chdir+0x1c>
rtems_set_errno_and_return_minus_one( EFAULT );
127deb: e8 24 62 01 00 call 13e014 <__errno>
127df0: c7 00 0e 00 00 00 movl $0xe,(%eax)
127df6: eb 53 jmp 127e4b <chdir+0x6f>
/*
* Get the node where we wish to go.
*/
result = rtems_filesystem_evaluate_path(
127df8: 31 c0 xor %eax,%eax
127dfa: 83 c9 ff or $0xffffffff,%ecx
127dfd: 89 d7 mov %edx,%edi
127dff: f2 ae repnz scas %es:(%edi),%al
127e01: f7 d1 not %ecx
127e03: 49 dec %ecx
127e04: 83 ec 0c sub $0xc,%esp
127e07: 6a 01 push $0x1
127e09: 8d 75 e4 lea -0x1c(%ebp),%esi
127e0c: 56 push %esi
127e0d: 6a 01 push $0x1
127e0f: 51 push %ecx
127e10: 52 push %edx
127e11: e8 1b 50 fe ff call 10ce31 <rtems_filesystem_evaluate_path>
127e16: 89 c2 mov %eax,%edx
pathname, strlen( pathname ), RTEMS_LIBIO_PERMS_SEARCH, &loc, true );
if ( result != 0 )
127e18: 83 c4 20 add $0x20,%esp
127e1b: 83 c8 ff or $0xffffffff,%eax
127e1e: 85 d2 test %edx,%edx
127e20: 0f 85 8f 00 00 00 jne 127eb5 <chdir+0xd9>
return -1;
/*
* Verify you can change directory into this node.
*/
if ( !loc.ops->node_type_h ) {
127e26: 8b 55 f0 mov -0x10(%ebp),%edx
127e29: 8b 42 10 mov 0x10(%edx),%eax
127e2c: 85 c0 test %eax,%eax
127e2e: 75 20 jne 127e50 <chdir+0x74> <== ALWAYS TAKEN
rtems_filesystem_freenode( &loc );
127e30: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED
127e33: 85 c0 test %eax,%eax <== NOT EXECUTED
127e35: 74 09 je 127e40 <chdir+0x64> <== NOT EXECUTED
127e37: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
127e3a: 56 push %esi <== NOT EXECUTED
127e3b: ff d0 call *%eax <== NOT EXECUTED
127e3d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
127e40: e8 cf 61 01 00 call 13e014 <__errno> <== NOT EXECUTED
127e45: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
127e4b: 83 c8 ff or $0xffffffff,%eax
127e4e: eb 65 jmp 127eb5 <chdir+0xd9>
}
if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) {
127e50: 83 ec 0c sub $0xc,%esp
127e53: 56 push %esi
127e54: ff d0 call *%eax
127e56: 83 c4 10 add $0x10,%esp
127e59: 48 dec %eax
127e5a: 74 24 je 127e80 <chdir+0xa4>
rtems_filesystem_freenode( &loc );
127e5c: 8b 45 f0 mov -0x10(%ebp),%eax
127e5f: 85 c0 test %eax,%eax
127e61: 74 10 je 127e73 <chdir+0x97> <== NEVER TAKEN
127e63: 8b 40 1c mov 0x1c(%eax),%eax
127e66: 85 c0 test %eax,%eax
127e68: 74 09 je 127e73 <chdir+0x97> <== NEVER TAKEN
127e6a: 83 ec 0c sub $0xc,%esp
127e6d: 56 push %esi
127e6e: ff d0 call *%eax
127e70: 83 c4 10 add $0x10,%esp
rtems_set_errno_and_return_minus_one( ENOTDIR );
127e73: e8 9c 61 01 00 call 13e014 <__errno>
127e78: c7 00 14 00 00 00 movl $0x14,(%eax)
127e7e: eb cb jmp 127e4b <chdir+0x6f>
}
rtems_filesystem_freenode( &rtems_filesystem_current );
127e80: 8b 15 fc 46 16 00 mov 0x1646fc,%edx
127e86: 8b 42 10 mov 0x10(%edx),%eax
127e89: 85 c0 test %eax,%eax
127e8b: 74 13 je 127ea0 <chdir+0xc4> <== NEVER TAKEN
127e8d: 8b 40 1c mov 0x1c(%eax),%eax
127e90: 85 c0 test %eax,%eax
127e92: 74 0c je 127ea0 <chdir+0xc4> <== NEVER TAKEN
127e94: 83 ec 0c sub $0xc,%esp
127e97: 83 c2 04 add $0x4,%edx
127e9a: 52 push %edx
127e9b: ff d0 call *%eax
127e9d: 83 c4 10 add $0x10,%esp
rtems_filesystem_current = loc;
127ea0: 8b 3d fc 46 16 00 mov 0x1646fc,%edi
127ea6: 83 c7 04 add $0x4,%edi
127ea9: 8d 75 e4 lea -0x1c(%ebp),%esi
127eac: b9 05 00 00 00 mov $0x5,%ecx
127eb1: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
127eb3: 31 c0 xor %eax,%eax
return 0;
}
127eb5: 8d 65 f8 lea -0x8(%ebp),%esp
127eb8: 5e pop %esi
127eb9: 5f pop %edi
127eba: c9 leave
127ebb: c3 ret
0010ca08 <chmod>:
int chmod(
const char *path,
mode_t mode
)
{
10ca08: 55 push %ebp
10ca09: 89 e5 mov %esp,%ebp
10ca0b: 57 push %edi
10ca0c: 56 push %esi
10ca0d: 53 push %ebx
10ca0e: 83 ec 38 sub $0x38,%esp
10ca11: 8b 55 08 mov 0x8(%ebp),%edx
int status;
rtems_filesystem_location_info_t loc;
int result;
status = rtems_filesystem_evaluate_path( path, strlen( path ), 0, &loc, true );
10ca14: 31 c0 xor %eax,%eax
10ca16: 83 c9 ff or $0xffffffff,%ecx
10ca19: 89 d7 mov %edx,%edi
10ca1b: f2 ae repnz scas %es:(%edi),%al
10ca1d: f7 d1 not %ecx
10ca1f: 49 dec %ecx
10ca20: 6a 01 push $0x1
10ca22: 8d 5d d4 lea -0x2c(%ebp),%ebx
10ca25: 53 push %ebx
10ca26: 6a 00 push $0x0
10ca28: 51 push %ecx
10ca29: 52 push %edx
10ca2a: e8 02 04 00 00 call 10ce31 <rtems_filesystem_evaluate_path>
if ( status != 0 )
10ca2f: 83 c4 20 add $0x20,%esp
10ca32: 83 ce ff or $0xffffffff,%esi
10ca35: 85 c0 test %eax,%eax
10ca37: 75 7d jne 10cab6 <chmod+0xae>
return -1;
if ( !loc.handlers ){
10ca39: 8b 45 dc mov -0x24(%ebp),%eax
10ca3c: 85 c0 test %eax,%eax
10ca3e: 75 24 jne 10ca64 <chmod+0x5c> <== ALWAYS TAKEN
rtems_filesystem_freenode( &loc );
10ca40: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
10ca43: 85 c0 test %eax,%eax <== NOT EXECUTED
10ca45: 74 10 je 10ca57 <chmod+0x4f> <== NOT EXECUTED
10ca47: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED
10ca4a: 85 c0 test %eax,%eax <== NOT EXECUTED
10ca4c: 74 09 je 10ca57 <chmod+0x4f> <== NOT EXECUTED
10ca4e: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10ca51: 53 push %ebx <== NOT EXECUTED
10ca52: ff d0 call *%eax <== NOT EXECUTED
10ca54: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EBADF );
10ca57: e8 b8 15 03 00 call 13e014 <__errno> <== NOT EXECUTED
10ca5c: c7 00 09 00 00 00 movl $0x9,(%eax) <== NOT EXECUTED
10ca62: eb 29 jmp 10ca8d <chmod+0x85> <== NOT EXECUTED
}
if ( !loc.handlers->fchmod_h ){
10ca64: 8b 40 1c mov 0x1c(%eax),%eax
10ca67: 85 c0 test %eax,%eax
10ca69: 75 27 jne 10ca92 <chmod+0x8a> <== ALWAYS TAKEN
rtems_filesystem_freenode( &loc );
10ca6b: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
10ca6e: 85 c0 test %eax,%eax <== NOT EXECUTED
10ca70: 74 10 je 10ca82 <chmod+0x7a> <== NOT EXECUTED
10ca72: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED
10ca75: 85 c0 test %eax,%eax <== NOT EXECUTED
10ca77: 74 09 je 10ca82 <chmod+0x7a> <== NOT EXECUTED
10ca79: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10ca7c: 53 push %ebx <== NOT EXECUTED
10ca7d: ff d0 call *%eax <== NOT EXECUTED
10ca7f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
10ca82: e8 8d 15 03 00 call 13e014 <__errno> <== NOT EXECUTED
10ca87: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
10ca8d: 83 ce ff or $0xffffffff,%esi <== NOT EXECUTED
10ca90: eb 24 jmp 10cab6 <chmod+0xae> <== NOT EXECUTED
}
result = (*loc.handlers->fchmod_h)( &loc, mode );
10ca92: 52 push %edx
10ca93: 52 push %edx
10ca94: ff 75 0c pushl 0xc(%ebp)
10ca97: 53 push %ebx
10ca98: ff d0 call *%eax
10ca9a: 89 c6 mov %eax,%esi
rtems_filesystem_freenode( &loc );
10ca9c: 8b 45 e0 mov -0x20(%ebp),%eax
10ca9f: 83 c4 10 add $0x10,%esp
10caa2: 85 c0 test %eax,%eax
10caa4: 74 10 je 10cab6 <chmod+0xae> <== NEVER TAKEN
10caa6: 8b 40 1c mov 0x1c(%eax),%eax
10caa9: 85 c0 test %eax,%eax
10caab: 74 09 je 10cab6 <chmod+0xae> <== NEVER TAKEN
10caad: 83 ec 0c sub $0xc,%esp
10cab0: 53 push %ebx
10cab1: ff d0 call *%eax
10cab3: 83 c4 10 add $0x10,%esp
return result;
}
10cab6: 89 f0 mov %esi,%eax
10cab8: 8d 65 f4 lea -0xc(%ebp),%esp
10cabb: 5b pop %ebx
10cabc: 5e pop %esi
10cabd: 5f pop %edi
10cabe: c9 leave
10cabf: c3 ret
00127ebc <chown>:
int chown(
const char *path,
uid_t owner,
gid_t group
)
{
127ebc: 55 push %ebp
127ebd: 89 e5 mov %esp,%ebp
127ebf: 57 push %edi
127ec0: 56 push %esi
127ec1: 53 push %ebx
127ec2: 83 ec 48 sub $0x48,%esp
127ec5: 8b 55 08 mov 0x8(%ebp),%edx
127ec8: 8b 75 0c mov 0xc(%ebp),%esi
127ecb: 8b 5d 10 mov 0x10(%ebp),%ebx
rtems_filesystem_location_info_t loc;
int result;
if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x00, &loc, true ) )
127ece: 31 c0 xor %eax,%eax
127ed0: 83 c9 ff or $0xffffffff,%ecx
127ed3: 89 d7 mov %edx,%edi
127ed5: f2 ae repnz scas %es:(%edi),%al
127ed7: f7 d1 not %ecx
127ed9: 49 dec %ecx
127eda: 6a 01 push $0x1
127edc: 8d 7d d4 lea -0x2c(%ebp),%edi
127edf: 57 push %edi
127ee0: 6a 00 push $0x0
127ee2: 51 push %ecx
127ee3: 52 push %edx
127ee4: e8 48 4f fe ff call 10ce31 <rtems_filesystem_evaluate_path>
127ee9: 83 c4 20 add $0x20,%esp
127eec: 83 ca ff or $0xffffffff,%edx
127eef: 85 c0 test %eax,%eax
127ef1: 75 58 jne 127f4b <chown+0x8f>
return -1;
if ( !loc.ops->chown_h ) {
127ef3: 8b 55 e0 mov -0x20(%ebp),%edx
127ef6: 8b 42 18 mov 0x18(%edx),%eax
127ef9: 85 c0 test %eax,%eax
127efb: 75 20 jne 127f1d <chown+0x61> <== ALWAYS TAKEN
rtems_filesystem_freenode( &loc );
127efd: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED
127f00: 85 c0 test %eax,%eax <== NOT EXECUTED
127f02: 74 09 je 127f0d <chown+0x51> <== NOT EXECUTED
127f04: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
127f07: 57 push %edi <== NOT EXECUTED
127f08: ff d0 call *%eax <== NOT EXECUTED
127f0a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
127f0d: e8 02 61 01 00 call 13e014 <__errno> <== NOT EXECUTED
127f12: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
127f18: 83 ca ff or $0xffffffff,%edx <== NOT EXECUTED
127f1b: eb 2e jmp 127f4b <chown+0x8f> <== NOT EXECUTED
}
result = (*loc.ops->chown_h)( &loc, owner, group );
127f1d: 52 push %edx
127f1e: 0f b7 db movzwl %bx,%ebx
127f21: 53 push %ebx
127f22: 0f b7 f6 movzwl %si,%esi
127f25: 56 push %esi
127f26: 57 push %edi
127f27: ff d0 call *%eax
127f29: 89 c2 mov %eax,%edx
rtems_filesystem_freenode( &loc );
127f2b: 8b 45 e0 mov -0x20(%ebp),%eax
127f2e: 83 c4 10 add $0x10,%esp
127f31: 85 c0 test %eax,%eax
127f33: 74 16 je 127f4b <chown+0x8f> <== NEVER TAKEN
127f35: 8b 40 1c mov 0x1c(%eax),%eax
127f38: 85 c0 test %eax,%eax
127f3a: 74 0f je 127f4b <chown+0x8f> <== NEVER TAKEN
127f3c: 83 ec 0c sub $0xc,%esp
127f3f: 57 push %edi
127f40: 89 55 c4 mov %edx,-0x3c(%ebp)
127f43: ff d0 call *%eax
127f45: 83 c4 10 add $0x10,%esp
127f48: 8b 55 c4 mov -0x3c(%ebp),%edx
return result;
}
127f4b: 89 d0 mov %edx,%eax
127f4d: 8d 65 f4 lea -0xc(%ebp),%esp
127f50: 5b pop %ebx
127f51: 5e pop %esi
127f52: 5f pop %edi
127f53: c9 leave
127f54: c3 ret
00127f58 <chroot>:
#include <rtems/seterr.h>
int chroot(
const char *pathname
)
{
127f58: 55 push %ebp
127f59: 89 e5 mov %esp,%ebp
127f5b: 57 push %edi
127f5c: 56 push %esi
127f5d: 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) {
127f60: 81 3d fc 46 16 00 24 cmpl $0x16a024,0x1646fc
127f67: a0 16 00
127f6a: 75 1e jne 127f8a <chroot+0x32> <== NEVER TAKEN
rtems_libio_set_private_env(); /* try to set a new private env*/
127f6c: e8 1b 13 00 00 call 12928c <rtems_libio_set_private_env>
if (rtems_current_user_env == &rtems_global_user_env) /* not ok */
127f71: 81 3d fc 46 16 00 24 cmpl $0x16a024,0x1646fc
127f78: a0 16 00
127f7b: 75 0d jne 127f8a <chroot+0x32> <== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( ENOTSUP );
127f7d: e8 92 60 01 00 call 13e014 <__errno> <== NOT EXECUTED
127f82: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
127f88: eb 22 jmp 127fac <chroot+0x54> <== NOT EXECUTED
}
result = chdir(pathname);
127f8a: 83 ec 0c sub $0xc,%esp
127f8d: ff 75 08 pushl 0x8(%ebp)
127f90: e8 47 fe ff ff call 127ddc <chdir>
if (result) {
127f95: 83 c4 10 add $0x10,%esp
127f98: 85 c0 test %eax,%eax
127f9a: 74 15 je 127fb1 <chroot+0x59> <== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( errno );
127f9c: e8 73 60 01 00 call 13e014 <__errno> <== NOT EXECUTED
127fa1: 89 c6 mov %eax,%esi <== NOT EXECUTED
127fa3: e8 6c 60 01 00 call 13e014 <__errno> <== NOT EXECUTED
127fa8: 8b 00 mov (%eax),%eax <== NOT EXECUTED
127faa: 89 06 mov %eax,(%esi) <== NOT EXECUTED
127fac: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
127faf: eb 53 jmp 128004 <chroot+0xac> <== NOT EXECUTED
}
/* clone the new root location */
if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) {
127fb1: 83 ec 0c sub $0xc,%esp
127fb4: 6a 00 push $0x0
127fb6: 8d 45 e4 lea -0x1c(%ebp),%eax
127fb9: 50 push %eax
127fba: 6a 00 push $0x0
127fbc: 6a 01 push $0x1
127fbe: 68 be 87 15 00 push $0x1587be
127fc3: e8 69 4e fe ff call 10ce31 <rtems_filesystem_evaluate_path>
127fc8: 83 c4 20 add $0x20,%esp
127fcb: 85 c0 test %eax,%eax
127fcd: 75 cd jne 127f9c <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);
127fcf: 8b 15 fc 46 16 00 mov 0x1646fc,%edx
127fd5: 8b 42 24 mov 0x24(%edx),%eax
127fd8: 85 c0 test %eax,%eax
127fda: 74 13 je 127fef <chroot+0x97> <== NEVER TAKEN
127fdc: 8b 40 1c mov 0x1c(%eax),%eax
127fdf: 85 c0 test %eax,%eax
127fe1: 74 0c je 127fef <chroot+0x97> <== NEVER TAKEN
127fe3: 83 ec 0c sub $0xc,%esp
127fe6: 83 c2 18 add $0x18,%edx
127fe9: 52 push %edx
127fea: ff d0 call *%eax
127fec: 83 c4 10 add $0x10,%esp
rtems_filesystem_root = loc;
127fef: 8b 3d fc 46 16 00 mov 0x1646fc,%edi
127ff5: 83 c7 18 add $0x18,%edi
127ff8: 8d 75 e4 lea -0x1c(%ebp),%esi
127ffb: b9 05 00 00 00 mov $0x5,%ecx
128000: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
128002: 31 c0 xor %eax,%eax
return 0;
}
128004: 8d 65 f8 lea -0x8(%ebp),%esp
128007: 5e pop %esi
128008: 5f pop %edi
128009: c9 leave
12800a: c3 ret
0010a3e8 <clock_gettime>:
int clock_gettime(
clockid_t clock_id,
struct timespec *tp
)
{
10a3e8: 55 push %ebp
10a3e9: 89 e5 mov %esp,%ebp
10a3eb: 83 ec 08 sub $0x8,%esp
10a3ee: 8b 45 08 mov 0x8(%ebp),%eax
10a3f1: 8b 55 0c mov 0xc(%ebp),%edx
if ( !tp )
10a3f4: 85 d2 test %edx,%edx
10a3f6: 74 3c je 10a434 <clock_gettime+0x4c>
rtems_set_errno_and_return_minus_one( EINVAL );
if ( clock_id == CLOCK_REALTIME ) {
10a3f8: 83 f8 01 cmp $0x1,%eax
10a3fb: 75 0b jne 10a408 <clock_gettime+0x20>
_TOD_Get(tp);
10a3fd: 83 ec 0c sub $0xc,%esp
10a400: 52 push %edx
10a401: e8 96 1b 00 00 call 10bf9c <_TOD_Get>
10a406: eb 13 jmp 10a41b <clock_gettime+0x33>
return 0;
}
#ifdef CLOCK_MONOTONIC
if ( clock_id == CLOCK_MONOTONIC ) {
10a408: 83 f8 04 cmp $0x4,%eax
10a40b: 74 05 je 10a412 <clock_gettime+0x2a> <== NEVER TAKEN
return 0;
}
#endif
#ifdef _POSIX_CPUTIME
if ( clock_id == CLOCK_PROCESS_CPUTIME_ID ) {
10a40d: 83 f8 02 cmp $0x2,%eax
10a410: 75 10 jne 10a422 <clock_gettime+0x3a>
_TOD_Get_uptime_as_timespec( tp );
10a412: 83 ec 0c sub $0xc,%esp
10a415: 52 push %edx
10a416: e8 dd 1b 00 00 call 10bff8 <_TOD_Get_uptime_as_timespec>
10a41b: 31 c0 xor %eax,%eax
return 0;
10a41d: 83 c4 10 add $0x10,%esp
10a420: eb 20 jmp 10a442 <clock_gettime+0x5a>
}
#endif
#ifdef _POSIX_THREAD_CPUTIME
if ( clock_id == CLOCK_THREAD_CPUTIME_ID )
10a422: 83 f8 03 cmp $0x3,%eax
10a425: 75 0d jne 10a434 <clock_gettime+0x4c>
rtems_set_errno_and_return_minus_one( ENOSYS );
10a427: e8 d0 93 00 00 call 1137fc <__errno>
10a42c: c7 00 58 00 00 00 movl $0x58,(%eax)
10a432: eb 0b jmp 10a43f <clock_gettime+0x57>
#endif
rtems_set_errno_and_return_minus_one( EINVAL );
10a434: e8 c3 93 00 00 call 1137fc <__errno>
10a439: c7 00 16 00 00 00 movl $0x16,(%eax)
10a43f: 83 c8 ff or $0xffffffff,%eax
return 0;
}
10a442: c9 leave
10a443: c3 ret
00129a40 <clock_settime>:
int clock_settime(
clockid_t clock_id,
const struct timespec *tp
)
{
129a40: 55 push %ebp
129a41: 89 e5 mov %esp,%ebp
129a43: 83 ec 08 sub $0x8,%esp
129a46: 8b 45 08 mov 0x8(%ebp),%eax
129a49: 8b 55 0c mov 0xc(%ebp),%edx
if ( !tp )
129a4c: 85 d2 test %edx,%edx
129a4e: 74 44 je 129a94 <clock_settime+0x54> <== NEVER TAKEN
rtems_set_errno_and_return_minus_one( EINVAL );
if ( clock_id == CLOCK_REALTIME ) {
129a50: 83 f8 01 cmp $0x1,%eax
129a53: 75 28 jne 129a7d <clock_settime+0x3d>
if ( tp->tv_sec < TOD_SECONDS_1970_THROUGH_1988 )
129a55: 81 3a ff e4 da 21 cmpl $0x21dae4ff,(%edx)
129a5b: 76 37 jbe 129a94 <clock_settime+0x54>
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
129a5d: a1 24 a1 16 00 mov 0x16a124,%eax
129a62: 40 inc %eax
129a63: a3 24 a1 16 00 mov %eax,0x16a124
rtems_set_errno_and_return_minus_one( EINVAL );
_Thread_Disable_dispatch();
_TOD_Set( tp );
129a68: 83 ec 0c sub $0xc,%esp
129a6b: 52 push %edx
129a6c: e8 33 15 00 00 call 12afa4 <_TOD_Set>
_Thread_Enable_dispatch();
129a71: e8 33 95 fe ff call 112fa9 <_Thread_Enable_dispatch>
129a76: 31 c0 xor %eax,%eax
rtems_set_errno_and_return_minus_one( ENOSYS );
#endif
else
rtems_set_errno_and_return_minus_one( EINVAL );
return 0;
129a78: 83 c4 10 add $0x10,%esp
129a7b: eb 25 jmp 129aa2 <clock_settime+0x62>
_Thread_Disable_dispatch();
_TOD_Set( tp );
_Thread_Enable_dispatch();
}
#ifdef _POSIX_CPUTIME
else if ( clock_id == CLOCK_PROCESS_CPUTIME_ID )
129a7d: 83 f8 02 cmp $0x2,%eax
129a80: 74 05 je 129a87 <clock_settime+0x47>
rtems_set_errno_and_return_minus_one( ENOSYS );
#endif
#ifdef _POSIX_THREAD_CPUTIME
else if ( clock_id == CLOCK_THREAD_CPUTIME_ID )
129a82: 83 f8 03 cmp $0x3,%eax
129a85: 75 0d jne 129a94 <clock_settime+0x54>
rtems_set_errno_and_return_minus_one( ENOSYS );
129a87: e8 88 45 01 00 call 13e014 <__errno>
129a8c: c7 00 58 00 00 00 movl $0x58,(%eax)
129a92: eb 0b jmp 129a9f <clock_settime+0x5f>
#endif
else
rtems_set_errno_and_return_minus_one( EINVAL );
129a94: e8 7b 45 01 00 call 13e014 <__errno>
129a99: c7 00 16 00 00 00 movl $0x16,(%eax)
129a9f: 83 c8 ff or $0xffffffff,%eax
return 0;
}
129aa2: c9 leave
129aa3: c3 ret
0010ed70 <close>:
#include <rtems/libio_.h>
int close(
int fd
)
{
10ed70: 55 push %ebp
10ed71: 89 e5 mov %esp,%ebp
10ed73: 56 push %esi
10ed74: 53 push %ebx
10ed75: 8b 5d 08 mov 0x8(%ebp),%ebx
rtems_libio_t *iop;
rtems_status_code rc;
rtems_libio_check_fd(fd);
10ed78: 3b 1d 44 21 12 00 cmp 0x122144,%ebx
10ed7e: 73 0f jae 10ed8f <close+0x1f>
iop = rtems_libio_iop(fd);
10ed80: c1 e3 06 shl $0x6,%ebx
10ed83: 03 1d b8 60 12 00 add 0x1260b8,%ebx
rtems_libio_check_is_open(iop);
10ed89: f6 43 15 01 testb $0x1,0x15(%ebx)
10ed8d: 75 10 jne 10ed9f <close+0x2f>
10ed8f: e8 80 3c 00 00 call 112a14 <__errno>
10ed94: c7 00 09 00 00 00 movl $0x9,(%eax)
10ed9a: 83 c8 ff or $0xffffffff,%eax
10ed9d: eb 3f jmp 10edde <close+0x6e>
rc = RTEMS_SUCCESSFUL;
if ( iop->handlers->close_h )
10ed9f: 8b 43 3c mov 0x3c(%ebx),%eax
10eda2: 8b 40 04 mov 0x4(%eax),%eax
10eda5: 31 f6 xor %esi,%esi
10eda7: 85 c0 test %eax,%eax
10eda9: 74 0b je 10edb6 <close+0x46> <== NEVER TAKEN
rc = (*iop->handlers->close_h)( iop );
10edab: 83 ec 0c sub $0xc,%esp
10edae: 53 push %ebx
10edaf: ff d0 call *%eax
10edb1: 89 c6 mov %eax,%esi
10edb3: 83 c4 10 add $0x10,%esp
rtems_filesystem_freenode( &iop->pathinfo );
10edb6: 8b 43 24 mov 0x24(%ebx),%eax
10edb9: 85 c0 test %eax,%eax
10edbb: 74 13 je 10edd0 <close+0x60> <== NEVER TAKEN
10edbd: 8b 40 1c mov 0x1c(%eax),%eax
10edc0: 85 c0 test %eax,%eax
10edc2: 74 0c je 10edd0 <close+0x60>
10edc4: 83 ec 0c sub $0xc,%esp
10edc7: 8d 53 18 lea 0x18(%ebx),%edx
10edca: 52 push %edx
10edcb: ff d0 call *%eax
10edcd: 83 c4 10 add $0x10,%esp
rtems_libio_free( iop );
10edd0: 83 ec 0c sub $0xc,%esp
10edd3: 53 push %ebx
10edd4: e8 01 02 00 00 call 10efda <rtems_libio_free>
return rc;
10edd9: 89 f0 mov %esi,%eax
10eddb: 83 c4 10 add $0x10,%esp
}
10edde: 8d 65 f8 lea -0x8(%ebp),%esp
10ede1: 5b pop %ebx
10ede2: 5e pop %esi
10ede3: c9 leave
10ede4: c3 ret
001077a1 <create_disk>:
return disktab [major].minor + minor;
}
static rtems_status_code
create_disk(dev_t dev, const char *name, rtems_disk_device **dd_ptr)
{
1077a1: 55 push %ebp
1077a2: 89 e5 mov %esp,%ebp
1077a4: 57 push %edi
1077a5: 56 push %esi
1077a6: 53 push %ebx
1077a7: 83 ec 2c sub $0x2c,%esp
1077aa: 89 c3 mov %eax,%ebx
1077ac: 89 d6 mov %edx,%esi
1077ae: 89 4d d4 mov %ecx,-0x2c(%ebp)
)
{
union __rtems_dev_t temp;
temp.device = device;
return temp.__overlay.major;
1077b1: 89 45 e4 mov %eax,-0x1c(%ebp)
dev_t device
)
{
union __rtems_dev_t temp;
temp.device = device;
1077b4: 89 55 d8 mov %edx,-0x28(%ebp)
rtems_device_major_number major = 0;
rtems_device_minor_number minor = 0;
rtems_filesystem_split_dev_t(dev, major, minor);
if (major >= disktab_size) {
1077b7: 8b 3d cc 8d 12 00 mov 0x128dcc,%edi
1077bd: 39 f8 cmp %edi,%eax
1077bf: 72 4e jb 10780f <create_disk+0x6e>
rtems_disk_device_table *table = disktab;
1077c1: a1 c8 8d 12 00 mov 0x128dc8,%eax
rtems_device_major_number old_size = disktab_size;
rtems_device_major_number new_size = 2 * old_size;
1077c6: 8d 14 3f lea (%edi,%edi,1),%edx
1077c9: 89 55 e0 mov %edx,-0x20(%ebp)
if (major >= new_size) {
1077cc: 39 d3 cmp %edx,%ebx
1077ce: 72 06 jb 1077d6 <create_disk+0x35> <== NEVER TAKEN
new_size = major + 1;
1077d0: 89 d9 mov %ebx,%ecx
1077d2: 41 inc %ecx
1077d3: 89 4d e0 mov %ecx,-0x20(%ebp)
}
table = realloc(table, new_size * sizeof(*table));
1077d6: 52 push %edx
1077d7: 52 push %edx
1077d8: 8b 55 e0 mov -0x20(%ebp),%edx
1077db: c1 e2 03 shl $0x3,%edx
1077de: 52 push %edx
1077df: 50 push %eax
1077e0: e8 b7 18 00 00 call 10909c <realloc>
1077e5: 89 c2 mov %eax,%edx
if (table == NULL) {
1077e7: 83 c4 10 add $0x10,%esp
1077ea: 85 c0 test %eax,%eax
1077ec: 0f 84 35 01 00 00 je 107927 <create_disk+0x186> <== ALWAYS TAKEN
return NULL;
}
memset(table + old_size, 0, (new_size - old_size) * sizeof(*table));
1077f2: 8b 4d e0 mov -0x20(%ebp),%ecx <== NOT EXECUTED
1077f5: 29 f9 sub %edi,%ecx <== NOT EXECUTED
1077f7: c1 e1 03 shl $0x3,%ecx <== NOT EXECUTED
1077fa: 8d 3c f8 lea (%eax,%edi,8),%edi <== NOT EXECUTED
1077fd: 31 c0 xor %eax,%eax <== NOT EXECUTED
1077ff: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED
disktab = table;
107801: 89 15 c8 8d 12 00 mov %edx,0x128dc8 <== NOT EXECUTED
disktab_size = new_size;
107807: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
10780a: a3 cc 8d 12 00 mov %eax,0x128dcc <== NOT EXECUTED
}
if (disktab [major].minor == NULL || minor >= disktab[major].size) {
10780f: 8b 55 e4 mov -0x1c(%ebp),%edx
107812: c1 e2 03 shl $0x3,%edx
107815: 89 55 dc mov %edx,-0x24(%ebp)
107818: 03 15 c8 8d 12 00 add 0x128dc8,%edx
10781e: 8b 02 mov (%edx),%eax
107820: 85 c0 test %eax,%eax
107822: 74 08 je 10782c <create_disk+0x8b>
107824: 8b 4d d8 mov -0x28(%ebp),%ecx
107827: 3b 4a 04 cmp 0x4(%edx),%ecx
10782a: 72 5e jb 10788a <create_disk+0xe9> <== ALWAYS TAKEN
rtems_disk_device **table = disktab [major].minor;
rtems_device_minor_number old_size = disktab [major].size;
10782c: 8b 7a 04 mov 0x4(%edx),%edi
rtems_device_minor_number new_size = 0;
if (old_size == 0) {
10782f: ba 08 00 00 00 mov $0x8,%edx
107834: 85 ff test %edi,%edi
107836: 74 03 je 10783b <create_disk+0x9a> <== ALWAYS TAKEN
new_size = DISKTAB_INITIAL_SIZE;
} else {
new_size = 2 * old_size;
107838: 8d 14 3f lea (%edi,%edi,1),%edx <== NOT EXECUTED
}
if (minor >= new_size) {
10783b: 39 55 d8 cmp %edx,-0x28(%ebp)
10783e: 72 04 jb 107844 <create_disk+0xa3>
new_size = minor + 1;
107840: 8b 55 d8 mov -0x28(%ebp),%edx
107843: 42 inc %edx
}
table = realloc(table, new_size * sizeof(*table));
107844: 51 push %ecx
107845: 51 push %ecx
107846: 8d 0c 95 00 00 00 00 lea 0x0(,%edx,4),%ecx
10784d: 51 push %ecx
10784e: 50 push %eax
10784f: 89 55 cc mov %edx,-0x34(%ebp)
107852: e8 45 18 00 00 call 10909c <realloc>
107857: 89 45 e0 mov %eax,-0x20(%ebp)
if (table == NULL) {
10785a: 83 c4 10 add $0x10,%esp
10785d: 85 c0 test %eax,%eax
10785f: 8b 55 cc mov -0x34(%ebp),%edx
107862: 0f 84 bf 00 00 00 je 107927 <create_disk+0x186>
return NULL;
}
memset(table + old_size, 0, (new_size - old_size) * sizeof(*table));
107868: 89 d1 mov %edx,%ecx
10786a: 29 f9 sub %edi,%ecx
10786c: c1 e1 02 shl $0x2,%ecx
10786f: 8d 3c b8 lea (%eax,%edi,4),%edi
107872: 89 7d d0 mov %edi,-0x30(%ebp)
107875: 31 c0 xor %eax,%eax
107877: f3 aa rep stos %al,%es:(%edi)
disktab [major].minor = table;
107879: 8b 45 dc mov -0x24(%ebp),%eax
10787c: 03 05 c8 8d 12 00 add 0x128dc8,%eax
107882: 8b 4d e0 mov -0x20(%ebp),%ecx
107885: 89 08 mov %ecx,(%eax)
disktab [major].size = new_size;
107887: 89 50 04 mov %edx,0x4(%eax)
}
return disktab [major].minor + minor;
10788a: a1 c8 8d 12 00 mov 0x128dc8,%eax
10788f: 8b 55 d8 mov -0x28(%ebp),%edx
107892: c1 e2 02 shl $0x2,%edx
{
rtems_disk_device **dd_entry = create_disk_table_entry(dev);
rtems_disk_device *dd = NULL;
char *alloc_name = NULL;
if (dd_entry == NULL) {
107895: 8b 4d e4 mov -0x1c(%ebp),%ecx
107898: 03 14 c8 add (%eax,%ecx,8),%edx
10789b: 89 55 e4 mov %edx,-0x1c(%ebp)
10789e: 0f 84 83 00 00 00 je 107927 <create_disk+0x186> <== NEVER TAKEN
return RTEMS_NO_MEMORY;
}
if (*dd_entry != NULL) {
1078a4: b8 0c 00 00 00 mov $0xc,%eax
1078a9: 83 3a 00 cmpl $0x0,(%edx)
1078ac: 75 7e jne 10792c <create_disk+0x18b>
return RTEMS_RESOURCE_IN_USE;
}
dd = malloc(sizeof(*dd));
1078ae: 83 ec 0c sub $0xc,%esp
1078b1: 6a 34 push $0x34
1078b3: e8 70 0d 00 00 call 108628 <malloc>
1078b8: 89 c7 mov %eax,%edi
if (dd == NULL) {
1078ba: 83 c4 10 add $0x10,%esp
1078bd: 85 c0 test %eax,%eax
1078bf: 74 66 je 107927 <create_disk+0x186> <== NEVER TAKEN
return RTEMS_NO_MEMORY;
}
if (name != NULL) {
1078c1: 83 7d d4 00 cmpl $0x0,-0x2c(%ebp)
1078c5: 74 3d je 107904 <create_disk+0x163>
alloc_name = strdup(name);
1078c7: 83 ec 0c sub $0xc,%esp
1078ca: ff 75 d4 pushl -0x2c(%ebp)
1078cd: e8 fe f1 00 00 call 116ad0 <strdup>
if (alloc_name == NULL) {
1078d2: 83 c4 10 add $0x10,%esp
1078d5: 85 c0 test %eax,%eax
1078d7: 75 5b jne 107934 <create_disk+0x193> <== ALWAYS TAKEN
free(dd);
1078d9: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1078dc: 57 push %edi <== NOT EXECUTED
1078dd: e8 a6 0a 00 00 call 108388 <free> <== NOT EXECUTED
1078e2: b8 1a 00 00 00 mov $0x1a,%eax <== NOT EXECUTED
1078e7: eb 16 jmp 1078ff <create_disk+0x15e> <== NOT EXECUTED
}
}
if (name != NULL) {
if (mknod(alloc_name, 0777 | S_IFBLK, dev) < 0) {
free(alloc_name);
1078e9: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1078ec: 52 push %edx <== NOT EXECUTED
1078ed: e8 96 0a 00 00 call 108388 <free> <== NOT EXECUTED
free(dd);
1078f2: 89 3c 24 mov %edi,(%esp) <== NOT EXECUTED
1078f5: e8 8e 0a 00 00 call 108388 <free> <== NOT EXECUTED
1078fa: b8 0d 00 00 00 mov $0xd,%eax <== NOT EXECUTED
return RTEMS_UNSATISFIED;
1078ff: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
107902: eb 28 jmp 10792c <create_disk+0x18b> <== NOT EXECUTED
107904: 31 c9 xor %ecx,%ecx
}
}
dd->dev = dev;
107906: 89 1f mov %ebx,(%edi)
107908: 89 77 04 mov %esi,0x4(%edi)
dd->name = alloc_name;
10790b: 89 4f 10 mov %ecx,0x10(%edi)
dd->uses = 0;
10790e: c7 47 14 00 00 00 00 movl $0x0,0x14(%edi)
dd->deleted = false;
107915: c6 47 30 00 movb $0x0,0x30(%edi)
*dd_entry = dd;
107919: 8b 45 e4 mov -0x1c(%ebp),%eax
10791c: 89 38 mov %edi,(%eax)
*dd_ptr = dd;
10791e: 8b 45 08 mov 0x8(%ebp),%eax
107921: 89 38 mov %edi,(%eax)
107923: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
107925: eb 05 jmp 10792c <create_disk+0x18b>
107927: b8 1a 00 00 00 mov $0x1a,%eax
}
10792c: 8d 65 f4 lea -0xc(%ebp),%esp
10792f: 5b pop %ebx
107930: 5e pop %esi
107931: 5f pop %edi
107932: c9 leave
107933: c3 ret
return RTEMS_NO_MEMORY;
}
}
if (name != NULL) {
if (mknod(alloc_name, 0777 | S_IFBLK, dev) < 0) {
107934: 56 push %esi
107935: 53 push %ebx
107936: 68 ff 61 00 00 push $0x61ff
10793b: 50 push %eax
10793c: 89 45 cc mov %eax,-0x34(%ebp)
10793f: 89 45 c8 mov %eax,-0x38(%ebp)
107942: e8 a1 0d 00 00 call 1086e8 <mknod>
107947: 83 c4 10 add $0x10,%esp
10794a: 85 c0 test %eax,%eax
10794c: 8b 55 cc mov -0x34(%ebp),%edx
10794f: 8b 4d c8 mov -0x38(%ebp),%ecx
107952: 79 b2 jns 107906 <create_disk+0x165> <== ALWAYS TAKEN
107954: eb 93 jmp 1078e9 <create_disk+0x148> <== NOT EXECUTED
0010d470 <devFS_close>:
#include "devfs.h"
int devFS_close(
rtems_libio_t *iop
)
{
10d470: 55 push %ebp
10d471: 89 e5 mov %esp,%ebp
10d473: 83 ec 1c sub $0x1c,%esp
10d476: 8b 55 08 mov 0x8(%ebp),%edx
rtems_libio_open_close_args_t args;
rtems_status_code status;
rtems_device_name_t *np;
np = (rtems_device_name_t *)iop->file_info;
10d479: 8b 42 38 mov 0x38(%edx),%eax
args.iop = iop;
10d47c: 89 55 ec mov %edx,-0x14(%ebp)
args.flags = 0;
10d47f: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp)
args.mode = 0;
10d486: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
status = rtems_io_close(
10d48d: 8d 55 ec lea -0x14(%ebp),%edx
10d490: 52 push %edx
10d491: ff 70 0c pushl 0xc(%eax)
10d494: ff 70 08 pushl 0x8(%eax)
10d497: e8 68 10 00 00 call 10e504 <rtems_io_close>
10d49c: 89 c2 mov %eax,%edx
np->major,
np->minor,
(void *) &args
);
if ( status ) {
10d49e: 83 c4 10 add $0x10,%esp
10d4a1: 31 c0 xor %eax,%eax
10d4a3: 85 d2 test %edx,%edx
10d4a5: 74 0c je 10d4b3 <devFS_close+0x43> <== ALWAYS TAKEN
return rtems_deviceio_errno(status);
10d4a7: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10d4aa: 52 push %edx <== NOT EXECUTED
10d4ab: e8 c0 00 00 00 call 10d570 <rtems_deviceio_errno> <== NOT EXECUTED
10d4b0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
return 0;
}
10d4b3: c9 leave
10d4b4: c3 ret
0010d4c7 <devFS_evaluate_path>:
const char *pathname,
size_t pathnamelen,
int flags,
rtems_filesystem_location_info_t *pathloc
)
{
10d4c7: 55 push %ebp
10d4c8: 89 e5 mov %esp,%ebp
10d4ca: 57 push %edi
10d4cb: 56 push %esi
10d4cc: 53 push %ebx
10d4cd: 83 ec 1c sub $0x1c,%esp
10d4d0: 8b 4d 0c mov 0xc(%ebp),%ecx
10d4d3: 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 ) )
10d4d6: f7 45 10 f8 ff ff ff testl $0xfffffff8,0x10(%ebp)
10d4dd: 74 0d je 10d4ec <devFS_evaluate_path+0x25><== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( EPERM );
10d4df: e8 14 21 00 00 call 10f5f8 <__errno> <== NOT EXECUTED
10d4e4: c7 00 01 00 00 00 movl $0x1,(%eax) <== NOT EXECUTED
10d4ea: eb 77 jmp 10d563 <devFS_evaluate_path+0x9c><== NOT EXECUTED
/* get the device name table */
device_name_table = (rtems_device_name_t *)pathloc->node_access;
10d4ec: 8b 33 mov (%ebx),%esi
if (!device_name_table)
10d4ee: 85 f6 test %esi,%esi
10d4f0: 74 04 je 10d4f6 <devFS_evaluate_path+0x2f><== NEVER TAKEN
10d4f2: 31 ff xor %edi,%edi
10d4f4: eb 5a jmp 10d550 <devFS_evaluate_path+0x89>
rtems_set_errno_and_return_minus_one( EFAULT );
10d4f6: e8 fd 20 00 00 call 10f5f8 <__errno> <== NOT EXECUTED
10d4fb: c7 00 0e 00 00 00 movl $0xe,(%eax) <== NOT EXECUTED
10d501: eb 60 jmp 10d563 <devFS_evaluate_path+0x9c><== NOT EXECUTED
for (i = 0; i < rtems_device_table_size; i++) {
if (!device_name_table[i].device_name)
10d503: 8b 16 mov (%esi),%edx
10d505: 85 d2 test %edx,%edx
10d507: 74 43 je 10d54c <devFS_evaluate_path+0x85>
continue;
if (strncmp(pathname, device_name_table[i].device_name, pathnamelen) != 0)
10d509: 50 push %eax
10d50a: 51 push %ecx
10d50b: 52 push %edx
10d50c: ff 75 08 pushl 0x8(%ebp)
10d50f: 89 55 e4 mov %edx,-0x1c(%ebp)
10d512: 89 4d e0 mov %ecx,-0x20(%ebp)
10d515: e8 e2 2c 00 00 call 1101fc <strncmp>
10d51a: 83 c4 10 add $0x10,%esp
10d51d: 85 c0 test %eax,%eax
10d51f: 8b 55 e4 mov -0x1c(%ebp),%edx
10d522: 8b 4d e0 mov -0x20(%ebp),%ecx
10d525: 75 25 jne 10d54c <devFS_evaluate_path+0x85><== NEVER TAKEN
continue;
if (device_name_table[i].device_name[pathnamelen] != '\0')
10d527: 80 3c 0a 00 cmpb $0x0,(%edx,%ecx,1)
10d52b: 75 1f jne 10d54c <devFS_evaluate_path+0x85><== NEVER TAKEN
continue;
/* find the device, set proper values */
pathloc->node_access = (void *)&device_name_table[i];
10d52d: 89 33 mov %esi,(%ebx)
pathloc->handlers = &devFS_file_handlers;
10d52f: c7 43 08 68 ff 11 00 movl $0x11ff68,0x8(%ebx)
pathloc->ops = &devFS_ops;
10d536: c7 43 0c 20 ff 11 00 movl $0x11ff20,0xc(%ebx)
pathloc->mt_entry = rtems_filesystem_root.mt_entry;
10d53d: a1 c0 ff 11 00 mov 0x11ffc0,%eax
10d542: 8b 40 28 mov 0x28(%eax),%eax
10d545: 89 43 10 mov %eax,0x10(%ebx)
10d548: 31 c0 xor %eax,%eax
return 0;
10d54a: eb 1a jmp 10d566 <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++) {
10d54c: 47 inc %edi
10d54d: 83 c6 14 add $0x14,%esi
10d550: 3b 3d 48 e1 11 00 cmp 0x11e148,%edi
10d556: 72 ab jb 10d503 <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 );
10d558: e8 9b 20 00 00 call 10f5f8 <__errno>
10d55d: c7 00 02 00 00 00 movl $0x2,(%eax)
10d563: 83 c8 ff or $0xffffffff,%eax
}
10d566: 8d 65 f4 lea -0xc(%ebp),%esp
10d569: 5b pop %ebx
10d56a: 5e pop %esi
10d56b: 5f pop %edi
10d56c: c9 leave
10d56d: c3 ret
00106d80 <devFS_initialize>:
int devFS_initialize(
rtems_filesystem_mount_table_entry_t *temp_mt_entry,
const void *data
)
{
106d80: 55 push %ebp
106d81: 89 e5 mov %esp,%ebp
106d83: 57 push %edi
106d84: 53 push %ebx
106d85: 8b 5d 08 mov 0x8(%ebp),%ebx
rtems_device_name_t *device_name_table;
/* allocate device only filesystem name table */
device_name_table = (rtems_device_name_t *)_Workspace_Allocate(
106d88: 83 ec 0c sub $0xc,%esp
106d8b: 6b 05 48 e1 11 00 14 imul $0x14,0x11e148,%eax
106d92: 50 push %eax
106d93: e8 94 62 00 00 call 10d02c <_Workspace_Allocate>
106d98: 89 c2 mov %eax,%edx
sizeof( rtems_device_name_t ) * ( rtems_device_table_size )
);
/* no memory for device filesystem */
if (!device_name_table)
106d9a: 83 c4 10 add $0x10,%esp
106d9d: 85 c0 test %eax,%eax
106d9f: 75 10 jne 106db1 <devFS_initialize+0x31> <== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( ENOMEM );
106da1: e8 52 88 00 00 call 10f5f8 <__errno> <== NOT EXECUTED
106da6: c7 00 0c 00 00 00 movl $0xc,(%eax) <== NOT EXECUTED
106dac: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
106daf: eb 20 jmp 106dd1 <devFS_initialize+0x51> <== NOT EXECUTED
memset(
106db1: 6b 0d 48 e1 11 00 14 imul $0x14,0x11e148,%ecx
106db8: 31 c0 xor %eax,%eax
106dba: 89 d7 mov %edx,%edi
106dbc: f3 aa rep stos %al,%es:(%edi)
device_name_table, 0,
sizeof( rtems_device_name_t ) * ( rtems_device_table_size )
);
/* set file handlers */
temp_mt_entry->mt_fs_root.handlers = &devFS_file_handlers;
106dbe: c7 43 24 68 ff 11 00 movl $0x11ff68,0x24(%ebx)
temp_mt_entry->mt_fs_root.ops = &devFS_ops;
106dc5: c7 43 28 20 ff 11 00 movl $0x11ff20,0x28(%ebx)
/* Set the node_access to device name table */
temp_mt_entry->mt_fs_root.node_access = (void *)device_name_table;
106dcc: 89 53 1c mov %edx,0x1c(%ebx)
106dcf: 31 c0 xor %eax,%eax
return 0;
}
106dd1: 8d 65 f8 lea -0x8(%ebp),%esp
106dd4: 5b pop %ebx
106dd5: 5f pop %edi
106dd6: c9 leave
106dd7: c3 ret
00106ee4 <devFS_ioctl>:
int devFS_ioctl(
rtems_libio_t *iop,
uint32_t command,
void *buffer
)
{
106ee4: 55 push %ebp
106ee5: 89 e5 mov %esp,%ebp
106ee7: 83 ec 1c sub $0x1c,%esp
106eea: 8b 55 08 mov 0x8(%ebp),%edx
rtems_libio_ioctl_args_t args;
rtems_status_code status;
rtems_device_name_t *np;
np = (rtems_device_name_t *)iop->file_info;
106eed: 8b 42 38 mov 0x38(%edx),%eax
args.iop = iop;
106ef0: 89 55 e8 mov %edx,-0x18(%ebp)
args.command = command;
106ef3: 8b 55 0c mov 0xc(%ebp),%edx
106ef6: 89 55 ec mov %edx,-0x14(%ebp)
args.buffer = buffer;
106ef9: 8b 55 10 mov 0x10(%ebp),%edx
106efc: 89 55 f0 mov %edx,-0x10(%ebp)
status = rtems_io_control(
106eff: 8d 55 e8 lea -0x18(%ebp),%edx
106f02: 52 push %edx
106f03: ff 70 0c pushl 0xc(%eax)
106f06: ff 70 08 pushl 0x8(%eax)
106f09: e8 82 39 00 00 call 10a890 <rtems_io_control>
np->major,
np->minor,
(void *) &args
);
if ( status )
106f0e: 83 c4 10 add $0x10,%esp
106f11: 85 c0 test %eax,%eax
106f13: 74 0e je 106f23 <devFS_ioctl+0x3f> <== ALWAYS TAKEN
return rtems_deviceio_errno(status);
106f15: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
106f18: 50 push %eax <== NOT EXECUTED
106f19: e8 52 66 00 00 call 10d570 <rtems_deviceio_errno> <== NOT EXECUTED
106f1e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
106f21: eb 03 jmp 106f26 <devFS_ioctl+0x42> <== NOT EXECUTED
return args.ioctl_return;
106f23: 8b 45 f4 mov -0xc(%ebp),%eax
}
106f26: c9 leave
106f27: c3 ret
00106dd8 <devFS_mknod>:
const char *path,
mode_t mode,
dev_t dev,
rtems_filesystem_location_info_t *pathloc
)
{
106dd8: 55 push %ebp
106dd9: 89 e5 mov %esp,%ebp
106ddb: 57 push %edi
106ddc: 56 push %esi
106ddd: 53 push %ebx
106dde: 83 ec 1c sub $0x1c,%esp
106de1: 8b 7d 08 mov 0x8(%ebp),%edi
106de4: 8b 4d 10 mov 0x10(%ebp),%ecx
106de7: 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') &&
106dea: 80 3f 64 cmpb $0x64,(%edi)
106ded: 75 18 jne 106e07 <devFS_mknod+0x2f> <== NEVER TAKEN
106def: 80 7f 01 65 cmpb $0x65,0x1(%edi)
106df3: 75 12 jne 106e07 <devFS_mknod+0x2f> <== NEVER TAKEN
(path[2] == 'v') && (path[3] == '\0'))
106df5: 80 7f 02 76 cmpb $0x76,0x2(%edi)
106df9: 75 0c jne 106e07 <devFS_mknod+0x2f> <== NEVER TAKEN
106dfb: 31 c0 xor %eax,%eax
106dfd: 80 7f 03 00 cmpb $0x0,0x3(%edi)
106e01: 0f 84 c9 00 00 00 je 106ed0 <devFS_mknod+0xf8>
return 0;
/* must be a character device or a block device */
if (!S_ISBLK(mode) && !S_ISCHR(mode))
106e07: 8b 45 0c mov 0xc(%ebp),%eax
106e0a: 25 00 f0 00 00 and $0xf000,%eax
106e0f: 3d 00 20 00 00 cmp $0x2000,%eax
106e14: 74 14 je 106e2a <devFS_mknod+0x52> <== ALWAYS TAKEN
106e16: 3d 00 60 00 00 cmp $0x6000,%eax <== NOT EXECUTED
106e1b: 74 0d je 106e2a <devFS_mknod+0x52> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
106e1d: e8 d6 87 00 00 call 10f5f8 <__errno> <== NOT EXECUTED
106e22: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
106e28: eb 23 jmp 106e4d <devFS_mknod+0x75> <== NOT EXECUTED
)
{
union __rtems_dev_t temp;
temp.device = device;
return temp.__overlay.major;
106e2a: 89 4d e0 mov %ecx,-0x20(%ebp)
dev_t device
)
{
union __rtems_dev_t temp;
temp.device = device;
106e2d: 89 55 e4 mov %edx,-0x1c(%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;
106e30: 8b 45 18 mov 0x18(%ebp),%eax
106e33: 8b 08 mov (%eax),%ecx
if (!device_name_table)
106e35: 85 c9 test %ecx,%ecx
106e37: 74 09 je 106e42 <devFS_mknod+0x6a> <== NEVER TAKEN
106e39: 89 ca mov %ecx,%edx
106e3b: 83 ce ff or $0xffffffff,%esi
106e3e: 31 db xor %ebx,%ebx
106e40: eb 46 jmp 106e88 <devFS_mknod+0xb0>
rtems_set_errno_and_return_minus_one( EFAULT );
106e42: e8 b1 87 00 00 call 10f5f8 <__errno> <== NOT EXECUTED
106e47: c7 00 0e 00 00 00 movl $0xe,(%eax) <== NOT EXECUTED
106e4d: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
106e50: eb 7e jmp 106ed0 <devFS_mknod+0xf8> <== NOT EXECUTED
for (slot = -1, i = 0; i < rtems_device_table_size; i++){
if (device_name_table[i].device_name == NULL)
106e52: 8b 02 mov (%edx),%eax
106e54: 85 c0 test %eax,%eax
106e56: 74 2a je 106e82 <devFS_mknod+0xaa> <== ALWAYS TAKEN
slot = i;
else
if (strcmp(path, device_name_table[i].device_name) == 0)
106e58: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
106e5b: 50 push %eax <== NOT EXECUTED
106e5c: 57 push %edi <== NOT EXECUTED
106e5d: 89 55 dc mov %edx,-0x24(%ebp) <== NOT EXECUTED
106e60: 89 4d d8 mov %ecx,-0x28(%ebp) <== NOT EXECUTED
106e63: e8 70 92 00 00 call 1100d8 <strcmp> <== NOT EXECUTED
106e68: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
106e6b: 85 c0 test %eax,%eax <== NOT EXECUTED
106e6d: 8b 55 dc mov -0x24(%ebp),%edx <== NOT EXECUTED
106e70: 8b 4d d8 mov -0x28(%ebp),%ecx <== NOT EXECUTED
106e73: 75 0f jne 106e84 <devFS_mknod+0xac> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EEXIST );
106e75: e8 7e 87 00 00 call 10f5f8 <__errno> <== NOT EXECUTED
106e7a: c7 00 11 00 00 00 movl $0x11,(%eax) <== NOT EXECUTED
106e80: eb cb jmp 106e4d <devFS_mknod+0x75> <== NOT EXECUTED
106e82: 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++){
106e84: 43 inc %ebx
106e85: 83 c2 14 add $0x14,%edx
106e88: 3b 1d 48 e1 11 00 cmp 0x11e148,%ebx
106e8e: 72 c2 jb 106e52 <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)
106e90: 83 fe ff cmp $0xffffffff,%esi
106e93: 75 0d jne 106ea2 <devFS_mknod+0xca> <== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( ENOMEM );
106e95: e8 5e 87 00 00 call 10f5f8 <__errno> <== NOT EXECUTED
106e9a: c7 00 0c 00 00 00 movl $0xc,(%eax) <== NOT EXECUTED
106ea0: eb ab jmp 106e4d <devFS_mknod+0x75> <== NOT EXECUTED
_ISR_Disable(level);
106ea2: 9c pushf
106ea3: fa cli
106ea4: 5b pop %ebx
device_name_table[slot].device_name = (char *)path;
106ea5: 6b d6 14 imul $0x14,%esi,%edx
106ea8: 8d 14 11 lea (%ecx,%edx,1),%edx
106eab: 89 3a mov %edi,(%edx)
device_name_table[slot].device_name_length = strlen(path);
106ead: 31 c0 xor %eax,%eax
106eaf: 83 c9 ff or $0xffffffff,%ecx
106eb2: f2 ae repnz scas %es:(%edi),%al
106eb4: f7 d1 not %ecx
106eb6: 49 dec %ecx
106eb7: 89 4a 04 mov %ecx,0x4(%edx)
device_name_table[slot].major = major;
106eba: 8b 45 e0 mov -0x20(%ebp),%eax
106ebd: 89 42 08 mov %eax,0x8(%edx)
device_name_table[slot].minor = minor;
106ec0: 8b 45 e4 mov -0x1c(%ebp),%eax
106ec3: 89 42 0c mov %eax,0xc(%edx)
device_name_table[slot].mode = mode;
106ec6: 8b 45 0c mov 0xc(%ebp),%eax
106ec9: 89 42 10 mov %eax,0x10(%edx)
_ISR_Enable(level);
106ecc: 53 push %ebx
106ecd: 9d popf
106ece: 31 c0 xor %eax,%eax
return 0;
}
106ed0: 8d 65 f4 lea -0xc(%ebp),%esp
106ed3: 5b pop %ebx
106ed4: 5e pop %esi
106ed5: 5f pop %edi
106ed6: c9 leave
106ed7: c3 ret
00106f28 <devFS_open>:
rtems_libio_t *iop,
const char *pathname,
uint32_t flag,
uint32_t mode
)
{
106f28: 55 push %ebp
106f29: 89 e5 mov %esp,%ebp
106f2b: 83 ec 1c sub $0x1c,%esp
106f2e: 8b 45 08 mov 0x8(%ebp),%eax
rtems_libio_open_close_args_t args;
rtems_status_code status;
rtems_device_name_t *np;
np = (rtems_device_name_t *)iop->file_info;
106f31: 8b 50 38 mov 0x38(%eax),%edx
args.iop = iop;
106f34: 89 45 ec mov %eax,-0x14(%ebp)
args.flags = iop->flags;
106f37: 8b 40 14 mov 0x14(%eax),%eax
106f3a: 89 45 f0 mov %eax,-0x10(%ebp)
args.mode = mode;
106f3d: 8b 45 14 mov 0x14(%ebp),%eax
106f40: 89 45 f4 mov %eax,-0xc(%ebp)
status = rtems_io_open(
106f43: 8d 45 ec lea -0x14(%ebp),%eax
106f46: 50 push %eax
106f47: ff 72 0c pushl 0xc(%edx)
106f4a: ff 72 08 pushl 0x8(%edx)
106f4d: e8 16 3a 00 00 call 10a968 <rtems_io_open>
106f52: 89 c2 mov %eax,%edx
np->major,
np->minor,
(void *) &args
);
if ( status )
106f54: 83 c4 10 add $0x10,%esp
106f57: 31 c0 xor %eax,%eax
106f59: 85 d2 test %edx,%edx
106f5b: 74 0c je 106f69 <devFS_open+0x41> <== ALWAYS TAKEN
return rtems_deviceio_errno(status);
106f5d: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
106f60: 52 push %edx <== NOT EXECUTED
106f61: e8 0a 66 00 00 call 10d570 <rtems_deviceio_errno> <== NOT EXECUTED
106f66: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
return 0;
}
106f69: c9 leave
106f6a: c3 ret
00106f6c <devFS_read>:
ssize_t devFS_read(
rtems_libio_t *iop,
void *buffer,
size_t count
)
{
106f6c: 55 push %ebp <== NOT EXECUTED
106f6d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
106f6f: 53 push %ebx <== NOT EXECUTED
106f70: 83 ec 28 sub $0x28,%esp <== NOT EXECUTED
106f73: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
rtems_libio_rw_args_t args;
rtems_status_code status;
rtems_device_name_t *np;
np = (rtems_device_name_t *)iop->file_info;
106f76: 8b 50 38 mov 0x38(%eax),%edx <== NOT EXECUTED
args.iop = iop;
106f79: 89 45 dc mov %eax,-0x24(%ebp) <== NOT EXECUTED
args.offset = iop->offset;
106f7c: 8b 48 0c mov 0xc(%eax),%ecx <== NOT EXECUTED
106f7f: 8b 58 10 mov 0x10(%eax),%ebx <== NOT EXECUTED
106f82: 89 4d e0 mov %ecx,-0x20(%ebp) <== NOT EXECUTED
106f85: 89 5d e4 mov %ebx,-0x1c(%ebp) <== NOT EXECUTED
args.buffer = buffer;
106f88: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED
106f8b: 89 4d e8 mov %ecx,-0x18(%ebp) <== NOT EXECUTED
args.count = count;
106f8e: 8b 4d 10 mov 0x10(%ebp),%ecx <== NOT EXECUTED
106f91: 89 4d ec mov %ecx,-0x14(%ebp) <== NOT EXECUTED
args.flags = iop->flags;
106f94: 8b 40 14 mov 0x14(%eax),%eax <== NOT EXECUTED
106f97: 89 45 f0 mov %eax,-0x10(%ebp) <== NOT EXECUTED
args.bytes_moved = 0;
106f9a: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) <== NOT EXECUTED
status = rtems_io_read(
106fa1: 8d 45 dc lea -0x24(%ebp),%eax <== NOT EXECUTED
106fa4: 50 push %eax <== NOT EXECUTED
106fa5: ff 72 0c pushl 0xc(%edx) <== NOT EXECUTED
106fa8: ff 72 08 pushl 0x8(%edx) <== NOT EXECUTED
106fab: e8 e8 39 00 00 call 10a998 <rtems_io_read> <== NOT EXECUTED
np->major,
np->minor,
(void *) &args
);
if ( status )
106fb0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
106fb3: 85 c0 test %eax,%eax <== NOT EXECUTED
106fb5: 74 0e je 106fc5 <devFS_read+0x59> <== NOT EXECUTED
return rtems_deviceio_errno(status);
106fb7: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
106fba: 50 push %eax <== NOT EXECUTED
106fbb: e8 b0 65 00 00 call 10d570 <rtems_deviceio_errno> <== NOT EXECUTED
106fc0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
106fc3: eb 03 jmp 106fc8 <devFS_read+0x5c> <== NOT EXECUTED
return (ssize_t) args.bytes_moved;
106fc5: 8b 45 f4 mov -0xc(%ebp),%eax <== NOT EXECUTED
}
106fc8: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
106fcb: c9 leave <== NOT EXECUTED
106fcc: c3 ret <== NOT EXECUTED
00106fd0 <devFS_stat>:
int devFS_stat(
rtems_filesystem_location_info_t *loc,
struct stat *buf
)
{
106fd0: 55 push %ebp
106fd1: 89 e5 mov %esp,%ebp
106fd3: 53 push %ebx
106fd4: 83 ec 04 sub $0x4,%esp
106fd7: 8b 55 0c mov 0xc(%ebp),%edx
rtems_device_name_t *the_dev;
the_dev = (rtems_device_name_t *)loc->node_access;
106fda: 8b 45 08 mov 0x8(%ebp),%eax
106fdd: 8b 00 mov (%eax),%eax
if (!the_dev)
106fdf: 85 c0 test %eax,%eax
106fe1: 75 10 jne 106ff3 <devFS_stat+0x23> <== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( EFAULT );
106fe3: e8 10 86 00 00 call 10f5f8 <__errno> <== NOT EXECUTED
106fe8: c7 00 0e 00 00 00 movl $0xe,(%eax) <== NOT EXECUTED
106fee: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
106ff1: eb 14 jmp 107007 <devFS_stat+0x37> <== NOT EXECUTED
buf->st_rdev = rtems_filesystem_make_dev_t( the_dev->major, the_dev->minor );
106ff3: 8b 48 0c mov 0xc(%eax),%ecx
rtems_device_minor_number _minor
)
{
union __rtems_dev_t temp;
temp.__overlay.major = _major;
106ff6: 8b 58 08 mov 0x8(%eax),%ebx
106ff9: 89 5a 18 mov %ebx,0x18(%edx)
106ffc: 89 4a 1c mov %ecx,0x1c(%edx)
buf->st_mode = the_dev->mode;
106fff: 8b 40 10 mov 0x10(%eax),%eax
107002: 89 42 0c mov %eax,0xc(%edx)
107005: 31 c0 xor %eax,%eax
return 0;
}
107007: 5a pop %edx
107008: 5b pop %ebx
107009: c9 leave
10700a: c3 ret
0010700c <devFS_write>:
ssize_t devFS_write(
rtems_libio_t *iop,
const void *buffer,
size_t count
)
{
10700c: 55 push %ebp
10700d: 89 e5 mov %esp,%ebp
10700f: 53 push %ebx
107010: 83 ec 28 sub $0x28,%esp
107013: 8b 45 08 mov 0x8(%ebp),%eax
rtems_libio_rw_args_t args;
rtems_status_code status;
rtems_device_name_t *np;
np = (rtems_device_name_t *)iop->file_info;
107016: 8b 50 38 mov 0x38(%eax),%edx
args.iop = iop;
107019: 89 45 dc mov %eax,-0x24(%ebp)
args.offset = iop->offset;
10701c: 8b 48 0c mov 0xc(%eax),%ecx
10701f: 8b 58 10 mov 0x10(%eax),%ebx
107022: 89 4d e0 mov %ecx,-0x20(%ebp)
107025: 89 5d e4 mov %ebx,-0x1c(%ebp)
args.buffer = (void *) buffer;
107028: 8b 4d 0c mov 0xc(%ebp),%ecx
10702b: 89 4d e8 mov %ecx,-0x18(%ebp)
args.count = count;
10702e: 8b 4d 10 mov 0x10(%ebp),%ecx
107031: 89 4d ec mov %ecx,-0x14(%ebp)
args.flags = iop->flags;
107034: 8b 40 14 mov 0x14(%eax),%eax
107037: 89 45 f0 mov %eax,-0x10(%ebp)
args.bytes_moved = 0;
10703a: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
status = rtems_io_write(
107041: 8d 45 dc lea -0x24(%ebp),%eax
107044: 50 push %eax
107045: ff 72 0c pushl 0xc(%edx)
107048: ff 72 08 pushl 0x8(%edx)
10704b: e8 78 39 00 00 call 10a9c8 <rtems_io_write>
np->major,
np->minor,
(void *) &args
);
if ( status )
107050: 83 c4 10 add $0x10,%esp
107053: 85 c0 test %eax,%eax
107055: 74 0e je 107065 <devFS_write+0x59> <== ALWAYS TAKEN
return rtems_deviceio_errno(status);
107057: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10705a: 50 push %eax <== NOT EXECUTED
10705b: e8 10 65 00 00 call 10d570 <rtems_deviceio_errno> <== NOT EXECUTED
107060: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
107063: eb 03 jmp 107068 <devFS_write+0x5c> <== NOT EXECUTED
return (ssize_t) args.bytes_moved;
107065: 8b 45 f4 mov -0xc(%ebp),%eax
}
107068: 8b 5d fc mov -0x4(%ebp),%ebx
10706b: c9 leave
10706c: c3 ret
001117bc <device_close>:
*/
int device_close(
rtems_libio_t *iop
)
{
1117bc: 55 push %ebp
1117bd: 89 e5 mov %esp,%ebp
1117bf: 83 ec 1c sub $0x1c,%esp
1117c2: 8b 55 08 mov 0x8(%ebp),%edx
rtems_libio_open_close_args_t args;
rtems_status_code status;
IMFS_jnode_t *the_jnode;
the_jnode = iop->file_info;
1117c5: 8b 42 38 mov 0x38(%edx),%eax
args.iop = iop;
1117c8: 89 55 ec mov %edx,-0x14(%ebp)
args.flags = 0;
1117cb: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp)
args.mode = 0;
1117d2: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
status = rtems_io_close(
1117d9: 8d 55 ec lea -0x14(%ebp),%edx
1117dc: 52 push %edx
1117dd: ff 70 54 pushl 0x54(%eax)
1117e0: ff 70 50 pushl 0x50(%eax)
1117e3: e8 e8 0e 00 00 call 1126d0 <rtems_io_close>
1117e8: 89 c2 mov %eax,%edx
the_jnode->info.device.major,
the_jnode->info.device.minor,
(void *) &args
);
if ( status ) {
1117ea: 83 c4 10 add $0x10,%esp
1117ed: 31 c0 xor %eax,%eax
1117ef: 85 d2 test %edx,%edx
1117f1: 74 0c je 1117ff <device_close+0x43> <== ALWAYS TAKEN
return rtems_deviceio_errno(status);
1117f3: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1117f6: 52 push %edx <== NOT EXECUTED
1117f7: e8 20 11 00 00 call 11291c <rtems_deviceio_errno> <== NOT EXECUTED
1117fc: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
return 0;
}
1117ff: c9 leave
111800: c3 ret
001116b6 <device_ioctl>:
int device_ioctl(
rtems_libio_t *iop,
uint32_t command,
void *buffer
)
{
1116b6: 55 push %ebp
1116b7: 89 e5 mov %esp,%ebp
1116b9: 83 ec 1c sub $0x1c,%esp
1116bc: 8b 45 08 mov 0x8(%ebp),%eax
rtems_libio_ioctl_args_t args;
rtems_status_code status;
IMFS_jnode_t *the_jnode;
args.iop = iop;
1116bf: 89 45 e8 mov %eax,-0x18(%ebp)
args.command = command;
1116c2: 8b 55 0c mov 0xc(%ebp),%edx
1116c5: 89 55 ec mov %edx,-0x14(%ebp)
args.buffer = buffer;
1116c8: 8b 55 10 mov 0x10(%ebp),%edx
1116cb: 89 55 f0 mov %edx,-0x10(%ebp)
the_jnode = iop->file_info;
1116ce: 8b 40 38 mov 0x38(%eax),%eax
status = rtems_io_control(
1116d1: 8d 55 e8 lea -0x18(%ebp),%edx
1116d4: 52 push %edx
1116d5: ff 70 54 pushl 0x54(%eax)
1116d8: ff 70 50 pushl 0x50(%eax)
1116db: e8 20 10 00 00 call 112700 <rtems_io_control>
the_jnode->info.device.major,
the_jnode->info.device.minor,
(void *) &args
);
if ( status )
1116e0: 83 c4 10 add $0x10,%esp
1116e3: 85 c0 test %eax,%eax
1116e5: 74 0e je 1116f5 <device_ioctl+0x3f> <== ALWAYS TAKEN
return rtems_deviceio_errno(status);
1116e7: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1116ea: 50 push %eax <== NOT EXECUTED
1116eb: e8 2c 12 00 00 call 11291c <rtems_deviceio_errno> <== NOT EXECUTED
1116f0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1116f3: eb 03 jmp 1116f8 <device_ioctl+0x42> <== NOT EXECUTED
return args.ioctl_return;
1116f5: 8b 45 f4 mov -0xc(%ebp),%eax
}
1116f8: c9 leave
1116f9: c3 ret
00111801 <device_open>:
rtems_libio_t *iop,
const char *pathname,
uint32_t flag,
uint32_t mode
)
{
111801: 55 push %ebp
111802: 89 e5 mov %esp,%ebp
111804: 83 ec 1c sub $0x1c,%esp
111807: 8b 45 08 mov 0x8(%ebp),%eax
rtems_libio_open_close_args_t args;
rtems_status_code status;
IMFS_jnode_t *the_jnode;
the_jnode = iop->file_info;
11180a: 8b 50 38 mov 0x38(%eax),%edx
args.iop = iop;
11180d: 89 45 ec mov %eax,-0x14(%ebp)
args.flags = iop->flags;
111810: 8b 40 14 mov 0x14(%eax),%eax
111813: 89 45 f0 mov %eax,-0x10(%ebp)
args.mode = mode;
111816: 8b 45 14 mov 0x14(%ebp),%eax
111819: 89 45 f4 mov %eax,-0xc(%ebp)
status = rtems_io_open(
11181c: 8d 45 ec lea -0x14(%ebp),%eax
11181f: 50 push %eax
111820: ff 72 54 pushl 0x54(%edx)
111823: ff 72 50 pushl 0x50(%edx)
111826: e8 05 0f 00 00 call 112730 <rtems_io_open>
11182b: 89 c2 mov %eax,%edx
the_jnode->info.device.major,
the_jnode->info.device.minor,
(void *) &args
);
if ( status )
11182d: 83 c4 10 add $0x10,%esp
111830: 31 c0 xor %eax,%eax
111832: 85 d2 test %edx,%edx
111834: 74 0c je 111842 <device_open+0x41> <== ALWAYS TAKEN
return rtems_deviceio_errno(status);
111836: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
111839: 52 push %edx <== NOT EXECUTED
11183a: e8 dd 10 00 00 call 11291c <rtems_deviceio_errno> <== NOT EXECUTED
11183f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
return 0;
}
111842: c9 leave
111843: c3 ret
0011175b <device_read>:
ssize_t device_read(
rtems_libio_t *iop,
void *buffer,
size_t count
)
{
11175b: 55 push %ebp
11175c: 89 e5 mov %esp,%ebp
11175e: 53 push %ebx
11175f: 83 ec 28 sub $0x28,%esp
111762: 8b 45 08 mov 0x8(%ebp),%eax
rtems_libio_rw_args_t args;
rtems_status_code status;
IMFS_jnode_t *the_jnode;
the_jnode = iop->file_info;
111765: 8b 50 38 mov 0x38(%eax),%edx
args.iop = iop;
111768: 89 45 dc mov %eax,-0x24(%ebp)
args.offset = iop->offset;
11176b: 8b 48 0c mov 0xc(%eax),%ecx
11176e: 8b 58 10 mov 0x10(%eax),%ebx
111771: 89 4d e0 mov %ecx,-0x20(%ebp)
111774: 89 5d e4 mov %ebx,-0x1c(%ebp)
args.buffer = buffer;
111777: 8b 4d 0c mov 0xc(%ebp),%ecx
11177a: 89 4d e8 mov %ecx,-0x18(%ebp)
args.count = count;
11177d: 8b 4d 10 mov 0x10(%ebp),%ecx
111780: 89 4d ec mov %ecx,-0x14(%ebp)
args.flags = iop->flags;
111783: 8b 40 14 mov 0x14(%eax),%eax
111786: 89 45 f0 mov %eax,-0x10(%ebp)
args.bytes_moved = 0;
111789: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
status = rtems_io_read(
111790: 8d 45 dc lea -0x24(%ebp),%eax
111793: 50 push %eax
111794: ff 72 54 pushl 0x54(%edx)
111797: ff 72 50 pushl 0x50(%edx)
11179a: e8 c1 0f 00 00 call 112760 <rtems_io_read>
the_jnode->info.device.major,
the_jnode->info.device.minor,
(void *) &args
);
if ( status )
11179f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1117a2: 85 c0 test %eax,%eax <== NOT EXECUTED
1117a4: 74 0e je 1117b4 <device_read+0x59> <== NOT EXECUTED
return rtems_deviceio_errno(status);
1117a6: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1117a9: 50 push %eax <== NOT EXECUTED
1117aa: e8 6d 11 00 00 call 11291c <rtems_deviceio_errno> <== NOT EXECUTED
1117af: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1117b2: eb 03 jmp 1117b7 <device_read+0x5c> <== NOT EXECUTED
return (ssize_t) args.bytes_moved;
1117b4: 8b 45 f4 mov -0xc(%ebp),%eax <== NOT EXECUTED
}
1117b7: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
1117ba: c9 leave <== NOT EXECUTED
1117bb: c3 ret <== NOT EXECUTED
001116fa <device_write>:
ssize_t device_write(
rtems_libio_t *iop,
const void *buffer,
size_t count
)
{
1116fa: 55 push %ebp
1116fb: 89 e5 mov %esp,%ebp
1116fd: 53 push %ebx
1116fe: 83 ec 28 sub $0x28,%esp
111701: 8b 45 08 mov 0x8(%ebp),%eax
rtems_libio_rw_args_t args;
rtems_status_code status;
IMFS_jnode_t *the_jnode;
the_jnode = iop->file_info;
111704: 8b 50 38 mov 0x38(%eax),%edx
args.iop = iop;
111707: 89 45 dc mov %eax,-0x24(%ebp)
args.offset = iop->offset;
11170a: 8b 48 0c mov 0xc(%eax),%ecx
11170d: 8b 58 10 mov 0x10(%eax),%ebx
111710: 89 4d e0 mov %ecx,-0x20(%ebp)
111713: 89 5d e4 mov %ebx,-0x1c(%ebp)
args.buffer = (void *) buffer;
111716: 8b 4d 0c mov 0xc(%ebp),%ecx
111719: 89 4d e8 mov %ecx,-0x18(%ebp)
args.count = count;
11171c: 8b 4d 10 mov 0x10(%ebp),%ecx
11171f: 89 4d ec mov %ecx,-0x14(%ebp)
args.flags = iop->flags;
111722: 8b 40 14 mov 0x14(%eax),%eax
111725: 89 45 f0 mov %eax,-0x10(%ebp)
args.bytes_moved = 0;
111728: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
status = rtems_io_write(
11172f: 8d 45 dc lea -0x24(%ebp),%eax
111732: 50 push %eax
111733: ff 72 54 pushl 0x54(%edx)
111736: ff 72 50 pushl 0x50(%edx)
111739: e8 52 10 00 00 call 112790 <rtems_io_write>
the_jnode->info.device.major,
the_jnode->info.device.minor,
(void *) &args
);
if ( status )
11173e: 83 c4 10 add $0x10,%esp
111741: 85 c0 test %eax,%eax
111743: 74 0e je 111753 <device_write+0x59> <== ALWAYS TAKEN
return rtems_deviceio_errno(status);
111745: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
111748: 50 push %eax <== NOT EXECUTED
111749: e8 ce 11 00 00 call 11291c <rtems_deviceio_errno> <== NOT EXECUTED
11174e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
111751: eb 03 jmp 111756 <device_write+0x5c> <== NOT EXECUTED
return (ssize_t) args.bytes_moved;
111753: 8b 45 f4 mov -0xc(%ebp),%eax
}
111756: 8b 5d fc mov -0x4(%ebp),%ebx
111759: c9 leave
11175a: c3 ret
001074ec <disk_lock>:
*/
static volatile bool diskdevs_protected;
static rtems_status_code
disk_lock(void)
{
1074ec: 55 push %ebp
1074ed: 89 e5 mov %esp,%ebp
1074ef: 83 ec 0c sub $0xc,%esp
rtems_status_code sc = RTEMS_SUCCESSFUL;
sc = rtems_semaphore_obtain(diskdevs_mutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
1074f2: 6a 00 push $0x0
1074f4: 6a 00 push $0x0
1074f6: ff 35 d0 8d 12 00 pushl 0x128dd0
1074fc: e8 9f 40 00 00 call 10b5a0 <rtems_semaphore_obtain>
107501: 89 c2 mov %eax,%edx
if (sc == RTEMS_SUCCESSFUL) {
107503: 83 c4 10 add $0x10,%esp
107506: b8 16 00 00 00 mov $0x16,%eax
10750b: 85 d2 test %edx,%edx
10750d: 75 09 jne 107518 <disk_lock+0x2c> <== NEVER TAKEN
diskdevs_protected = true;
10750f: c6 05 d4 8d 12 00 01 movb $0x1,0x128dd4
107516: 30 c0 xor %al,%al
return RTEMS_SUCCESSFUL;
} else {
return RTEMS_NOT_CONFIGURED;
}
}
107518: c9 leave
107519: c3 ret
0010751a <disk_unlock>:
static void
disk_unlock(void)
{
10751a: 55 push %ebp
10751b: 89 e5 mov %esp,%ebp
10751d: 83 ec 14 sub $0x14,%esp
rtems_status_code sc = RTEMS_SUCCESSFUL;
diskdevs_protected = false;
107520: c6 05 d4 8d 12 00 00 movb $0x0,0x128dd4
sc = rtems_semaphore_release(diskdevs_mutex);
107527: ff 35 d0 8d 12 00 pushl 0x128dd0
10752d: e8 5a 41 00 00 call 10b68c <rtems_semaphore_release>
if (sc != RTEMS_SUCCESSFUL) {
107532: 83 c4 10 add $0x10,%esp
107535: 85 c0 test %eax,%eax
107537: 74 0d je 107546 <disk_unlock+0x2c> <== ALWAYS TAKEN
/* FIXME: Error number */
rtems_fatal_error_occurred(0xdeadbeef);
107539: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10753c: 68 ef be ad de push $0xdeadbeef <== NOT EXECUTED
107541: e8 ae 45 00 00 call 10baf4 <rtems_fatal_error_occurred><== NOT EXECUTED
}
}
107546: c9 leave
107547: c3 ret
00109056 <drainOutput>:
/*
* Drain output queue
*/
static void
drainOutput (struct rtems_termios_tty *tty)
{
109056: 55 push %ebp
109057: 89 e5 mov %esp,%ebp
109059: 53 push %ebx
10905a: 83 ec 04 sub $0x4,%esp
10905d: 89 c3 mov %eax,%ebx
rtems_interrupt_level level;
rtems_status_code sc;
if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) {
10905f: 83 b8 b4 00 00 00 00 cmpl $0x0,0xb4(%eax)
109066: 75 2e jne 109096 <drainOutput+0x40>
109068: eb 41 jmp 1090ab <drainOutput+0x55>
rtems_interrupt_disable (level);
while (tty->rawOutBuf.Tail != tty->rawOutBuf.Head) {
tty->rawOutBufState = rob_wait;
10906a: c7 83 94 00 00 00 02 movl $0x2,0x94(%ebx)
109071: 00 00 00
rtems_interrupt_enable (level);
109074: 50 push %eax
109075: 9d popf
sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore,
109076: 50 push %eax
109077: 6a 00 push $0x0
109079: 6a 00 push $0x0
10907b: ff b3 8c 00 00 00 pushl 0x8c(%ebx)
109081: e8 72 15 00 00 call 10a5f8 <rtems_semaphore_obtain>
RTEMS_WAIT,
RTEMS_NO_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
109086: 83 c4 10 add $0x10,%esp
109089: 85 c0 test %eax,%eax
10908b: 74 09 je 109096 <drainOutput+0x40> <== ALWAYS TAKEN
rtems_fatal_error_occurred (sc);
10908d: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
109090: 50 push %eax <== NOT EXECUTED
109091: e8 fa 1a 00 00 call 10ab90 <rtems_fatal_error_occurred><== NOT EXECUTED
rtems_interrupt_disable (level);
109096: 9c pushf
109097: fa cli
109098: 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) {
109099: 8b 8b 84 00 00 00 mov 0x84(%ebx),%ecx
10909f: 8b 93 80 00 00 00 mov 0x80(%ebx),%edx
1090a5: 39 d1 cmp %edx,%ecx
1090a7: 75 c1 jne 10906a <drainOutput+0x14>
RTEMS_NO_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred (sc);
rtems_interrupt_disable (level);
}
rtems_interrupt_enable (level);
1090a9: 50 push %eax
1090aa: 9d popf
}
}
1090ab: 8b 5d fc mov -0x4(%ebp),%ebx
1090ae: c9 leave
1090af: c3 ret
00107ca0 <dup2>:
int dup2(
int fildes,
int fildes2
)
{
107ca0: 55 push %ebp
107ca1: 89 e5 mov %esp,%ebp
107ca3: 57 push %edi
107ca4: 56 push %esi
107ca5: 53 push %ebx
107ca6: 83 ec 64 sub $0x64,%esp
107ca9: 8b 5d 08 mov 0x8(%ebp),%ebx
107cac: 8b 75 0c mov 0xc(%ebp),%esi
/*
* If fildes is not valid, then fildes2 should not be closed.
*/
status = fstat( fildes, &buf );
107caf: 8d 7d a0 lea -0x60(%ebp),%edi
107cb2: 57 push %edi
107cb3: 53 push %ebx
107cb4: e8 ab 04 00 00 call 108164 <fstat>
if ( status == -1 )
107cb9: 83 c4 10 add $0x10,%esp
107cbc: 40 inc %eax
107cbd: 74 1e je 107cdd <dup2+0x3d> <== NEVER TAKEN
/*
* If fildes2 is not valid, then we should not do anything either.
*/
status = fstat( fildes2, &buf );
107cbf: 52 push %edx
107cc0: 52 push %edx
107cc1: 57 push %edi
107cc2: 56 push %esi
107cc3: e8 9c 04 00 00 call 108164 <fstat>
if ( status == -1 )
107cc8: 83 c4 10 add $0x10,%esp
107ccb: 40 inc %eax
107ccc: 74 0f je 107cdd <dup2+0x3d> <== ALWAYS TAKEN
/*
* This fcntl handles everything else.
*/
return fcntl( fildes, F_DUPFD, fildes2 );
107cce: 50 push %eax <== NOT EXECUTED
107ccf: 56 push %esi <== NOT EXECUTED
107cd0: 6a 00 push $0x0 <== NOT EXECUTED
107cd2: 53 push %ebx <== NOT EXECUTED
107cd3: e8 c8 01 00 00 call 107ea0 <fcntl> <== NOT EXECUTED
107cd8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
107cdb: eb 03 jmp 107ce0 <dup2+0x40> <== NOT EXECUTED
107cdd: 83 c8 ff or $0xffffffff,%eax
}
107ce0: 8d 65 f4 lea -0xc(%ebp),%esp
107ce3: 5b pop %ebx
107ce4: 5e pop %esi
107ce5: 5f pop %edi
107ce6: c9 leave
107ce7: c3 ret
00108c73 <echo>:
/*
* Echo a typed character
*/
static void
echo (unsigned char c, struct rtems_termios_tty *tty)
{
108c73: 55 push %ebp <== NOT EXECUTED
108c74: 89 e5 mov %esp,%ebp <== NOT EXECUTED
108c76: 53 push %ebx <== NOT EXECUTED
108c77: 83 ec 24 sub $0x24,%esp <== NOT EXECUTED
if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) {
108c7a: f6 42 3d 02 testb $0x2,0x3d(%edx) <== NOT EXECUTED
108c7e: 74 3e je 108cbe <echo+0x4b> <== NOT EXECUTED
108c80: 0f b6 c8 movzbl %al,%ecx <== NOT EXECUTED
108c83: 8b 1d 20 40 12 00 mov 0x124020,%ebx <== NOT EXECUTED
108c89: f6 44 0b 01 20 testb $0x20,0x1(%ebx,%ecx,1) <== NOT EXECUTED
108c8e: 74 2e je 108cbe <echo+0x4b> <== NOT EXECUTED
108c90: 3c 09 cmp $0x9,%al <== NOT EXECUTED
108c92: 74 2a je 108cbe <echo+0x4b> <== NOT EXECUTED
108c94: 3c 0a cmp $0xa,%al <== NOT EXECUTED
108c96: 74 26 je 108cbe <echo+0x4b> <== NOT EXECUTED
char echobuf[2];
echobuf[0] = '^';
108c98: c6 45 f6 5e movb $0x5e,-0xa(%ebp) <== NOT EXECUTED
echobuf[1] = c ^ 0x40;
108c9c: 83 f0 40 xor $0x40,%eax <== NOT EXECUTED
108c9f: 88 45 f7 mov %al,-0x9(%ebp) <== NOT EXECUTED
rtems_termios_puts (echobuf, 2, tty);
108ca2: 50 push %eax <== NOT EXECUTED
108ca3: 52 push %edx <== NOT EXECUTED
108ca4: 6a 02 push $0x2 <== NOT EXECUTED
108ca6: 8d 45 f6 lea -0xa(%ebp),%eax <== NOT EXECUTED
108ca9: 50 push %eax <== NOT EXECUTED
108caa: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED
108cad: e8 83 fd ff ff call 108a35 <rtems_termios_puts> <== NOT EXECUTED
tty->column += 2;
108cb2: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
108cb5: 83 42 28 02 addl $0x2,0x28(%edx) <== NOT EXECUTED
* Echo a typed character
*/
static void
echo (unsigned char c, struct rtems_termios_tty *tty)
{
if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) {
108cb9: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
108cbc: eb 08 jmp 108cc6 <echo+0x53> <== NOT EXECUTED
echobuf[1] = c ^ 0x40;
rtems_termios_puts (echobuf, 2, tty);
tty->column += 2;
}
else {
oproc (c, tty);
108cbe: 0f b6 c0 movzbl %al,%eax <== NOT EXECUTED
108cc1: e8 8f fe ff ff call 108b55 <oproc> <== NOT EXECUTED
}
}
108cc6: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
108cc9: c9 leave <== NOT EXECUTED
108cca: c3 ret <== NOT EXECUTED
001282e4 <endgrent>:
fclose(group_fp);
group_fp = fopen("/etc/group", "r");
}
void endgrent(void)
{
1282e4: 55 push %ebp <== NOT EXECUTED
1282e5: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1282e7: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
if (group_fp != NULL)
1282ea: a1 0c 9c 16 00 mov 0x169c0c,%eax <== NOT EXECUTED
1282ef: 85 c0 test %eax,%eax <== NOT EXECUTED
1282f1: 74 0c je 1282ff <endgrent+0x1b> <== NOT EXECUTED
fclose(group_fp);
1282f3: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1282f6: 50 push %eax <== NOT EXECUTED
1282f7: e8 64 5e 01 00 call 13e160 <fclose> <== NOT EXECUTED
1282fc: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
1282ff: c9 leave <== NOT EXECUTED
128300: c3 ret <== NOT EXECUTED
00128301 <endpwent>:
fclose(passwd_fp);
passwd_fp = fopen("/etc/passwd", "r");
}
void endpwent(void)
{
128301: 55 push %ebp <== NOT EXECUTED
128302: 89 e5 mov %esp,%ebp <== NOT EXECUTED
128304: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
if (passwd_fp != NULL)
128307: a1 24 9b 16 00 mov 0x169b24,%eax <== NOT EXECUTED
12830c: 85 c0 test %eax,%eax <== NOT EXECUTED
12830e: 74 0c je 12831c <endpwent+0x1b> <== NOT EXECUTED
fclose(passwd_fp);
128310: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
128313: 50 push %eax <== NOT EXECUTED
128314: e8 47 5e 01 00 call 13e160 <fclose> <== NOT EXECUTED
128319: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
12831c: c9 leave <== NOT EXECUTED
12831d: c3 ret <== NOT EXECUTED
00108ccb <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)
{
108ccb: 55 push %ebp <== NOT EXECUTED
108ccc: 89 e5 mov %esp,%ebp <== NOT EXECUTED
108cce: 57 push %edi <== NOT EXECUTED
108ccf: 56 push %esi <== NOT EXECUTED
108cd0: 53 push %ebx <== NOT EXECUTED
108cd1: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
108cd4: 89 c3 mov %eax,%ebx <== NOT EXECUTED
108cd6: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED
if (tty->ccount == 0)
108cd9: 83 78 20 00 cmpl $0x0,0x20(%eax) <== NOT EXECUTED
108cdd: 0f 84 59 01 00 00 je 108e3c <erase+0x171> <== NOT EXECUTED
return;
if (lineFlag) {
108ce3: 85 d2 test %edx,%edx <== NOT EXECUTED
108ce5: 0f 84 46 01 00 00 je 108e31 <erase+0x166> <== NOT EXECUTED
if (!(tty->termios.c_lflag & ECHO)) {
108ceb: 8b 40 3c mov 0x3c(%eax),%eax <== NOT EXECUTED
108cee: a8 08 test $0x8,%al <== NOT EXECUTED
108cf0: 75 0c jne 108cfe <erase+0x33> <== NOT EXECUTED
tty->ccount = 0;
108cf2: c7 43 20 00 00 00 00 movl $0x0,0x20(%ebx) <== NOT EXECUTED
return;
108cf9: e9 3e 01 00 00 jmp 108e3c <erase+0x171> <== NOT EXECUTED
}
if (!(tty->termios.c_lflag & ECHOE)) {
108cfe: a8 10 test $0x10,%al <== NOT EXECUTED
108d00: 0f 85 2b 01 00 00 jne 108e31 <erase+0x166> <== NOT EXECUTED
tty->ccount = 0;
108d06: c7 43 20 00 00 00 00 movl $0x0,0x20(%ebx) <== NOT EXECUTED
echo (tty->termios.c_cc[VKILL], tty);
108d0d: 0f b6 43 44 movzbl 0x44(%ebx),%eax <== NOT EXECUTED
108d11: 89 da mov %ebx,%edx <== NOT EXECUTED
108d13: e8 5b ff ff ff call 108c73 <echo> <== NOT EXECUTED
if (tty->termios.c_lflag & ECHOK)
108d18: f6 43 3c 20 testb $0x20,0x3c(%ebx) <== NOT EXECUTED
108d1c: 0f 84 1a 01 00 00 je 108e3c <erase+0x171> <== NOT EXECUTED
echo ('\n', tty);
108d22: 89 da mov %ebx,%edx <== NOT EXECUTED
108d24: b8 0a 00 00 00 mov $0xa,%eax <== NOT EXECUTED
108d29: eb 30 jmp 108d5b <erase+0x90> <== NOT EXECUTED
return;
}
}
while (tty->ccount) {
unsigned char c = tty->cbuf[--tty->ccount];
108d2b: 8b 53 1c mov 0x1c(%ebx),%edx <== NOT EXECUTED
108d2e: 8d 48 ff lea -0x1(%eax),%ecx <== NOT EXECUTED
108d31: 89 4b 20 mov %ecx,0x20(%ebx) <== NOT EXECUTED
108d34: 8a 54 02 ff mov -0x1(%edx,%eax,1),%dl <== NOT EXECUTED
if (tty->termios.c_lflag & ECHO) {
108d38: 8b 7b 3c mov 0x3c(%ebx),%edi <== NOT EXECUTED
108d3b: f7 c7 08 00 00 00 test $0x8,%edi <== NOT EXECUTED
108d41: 0f 84 e4 00 00 00 je 108e2b <erase+0x160> <== NOT EXECUTED
if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) {
108d47: 83 7d e4 00 cmpl $0x0,-0x1c(%ebp) <== NOT EXECUTED
108d4b: 75 1a jne 108d67 <erase+0x9c> <== NOT EXECUTED
108d4d: f7 c7 10 00 00 00 test $0x10,%edi <== NOT EXECUTED
108d53: 75 12 jne 108d67 <erase+0x9c> <== NOT EXECUTED
echo (tty->termios.c_cc[VERASE], tty);
108d55: 0f b6 43 43 movzbl 0x43(%ebx),%eax <== NOT EXECUTED
108d59: 89 da mov %ebx,%edx <== NOT EXECUTED
}
}
if (!lineFlag)
break;
}
}
108d5b: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
108d5e: 5b pop %ebx <== NOT EXECUTED
108d5f: 5e pop %esi <== NOT EXECUTED
108d60: 5f pop %edi <== NOT EXECUTED
108d61: 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);
108d62: e9 0c ff ff ff jmp 108c73 <echo> <== NOT EXECUTED
}
else if (c == '\t') {
108d67: 80 fa 09 cmp $0x9,%dl <== NOT EXECUTED
108d6a: 8b 0d 20 40 12 00 mov 0x124020,%ecx <== NOT EXECUTED
108d70: 75 5d jne 108dcf <erase+0x104> <== NOT EXECUTED
int col = tty->read_start_column;
108d72: 8b 73 2c mov 0x2c(%ebx),%esi <== NOT EXECUTED
* Erase a character or line
* 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)
108d75: ba 01 00 00 00 mov $0x1,%edx <== NOT EXECUTED
c = tty->cbuf[i++];
if (c == '\t') {
col = (col | 7) + 1;
}
else if (iscntrl (c)) {
if (tty->termios.c_lflag & ECHOCTL)
108d7a: 81 e7 00 02 00 00 and $0x200,%edi <== NOT EXECUTED
108d80: 89 7d e0 mov %edi,-0x20(%ebp) <== NOT EXECUTED
108d83: 89 c7 mov %eax,%edi <== NOT EXECUTED
int i = 0;
/*
* Find the character before the tab
*/
while (i != tty->ccount) {
108d85: eb 27 jmp 108dae <erase+0xe3> <== NOT EXECUTED
c = tty->cbuf[i++];
108d87: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
108d8a: 8a 44 10 ff mov -0x1(%eax,%edx,1),%al <== NOT EXECUTED
if (c == '\t') {
108d8e: 3c 09 cmp $0x9,%al <== NOT EXECUTED
108d90: 75 05 jne 108d97 <erase+0xcc> <== NOT EXECUTED
col = (col | 7) + 1;
108d92: 83 ce 07 or $0x7,%esi <== NOT EXECUTED
108d95: eb 15 jmp 108dac <erase+0xe1> <== NOT EXECUTED
}
else if (iscntrl (c)) {
108d97: 0f b6 c0 movzbl %al,%eax <== NOT EXECUTED
108d9a: f6 44 01 01 20 testb $0x20,0x1(%ecx,%eax,1) <== NOT EXECUTED
108d9f: 74 0b je 108dac <erase+0xe1> <== NOT EXECUTED
if (tty->termios.c_lflag & ECHOCTL)
108da1: 83 7d e0 00 cmpl $0x0,-0x20(%ebp) <== NOT EXECUTED
108da5: 74 06 je 108dad <erase+0xe2> <== NOT EXECUTED
col += 2;
108da7: 83 c6 02 add $0x2,%esi <== NOT EXECUTED
108daa: eb 01 jmp 108dad <erase+0xe2> <== NOT EXECUTED
}
else {
col++;
108dac: 46 inc %esi <== NOT EXECUTED
108dad: 42 inc %edx <== NOT EXECUTED
int i = 0;
/*
* Find the character before the tab
*/
while (i != tty->ccount) {
108dae: 39 fa cmp %edi,%edx <== NOT EXECUTED
108db0: 75 d5 jne 108d87 <erase+0xbc> <== NOT EXECUTED
108db2: eb 14 jmp 108dc8 <erase+0xfd> <== NOT EXECUTED
/*
* Back up over the tab
*/
while (tty->column > col) {
rtems_termios_puts ("\b", 1, tty);
108db4: 57 push %edi <== NOT EXECUTED
108db5: 53 push %ebx <== NOT EXECUTED
108db6: 6a 01 push $0x1 <== NOT EXECUTED
108db8: 68 84 01 12 00 push $0x120184 <== NOT EXECUTED
108dbd: e8 73 fc ff ff call 108a35 <rtems_termios_puts> <== NOT EXECUTED
tty->column--;
108dc2: ff 4b 28 decl 0x28(%ebx) <== NOT EXECUTED
108dc5: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
/*
* Back up over the tab
*/
while (tty->column > col) {
108dc8: 39 73 28 cmp %esi,0x28(%ebx) <== NOT EXECUTED
108dcb: 7f e7 jg 108db4 <erase+0xe9> <== NOT EXECUTED
108dcd: eb 5c jmp 108e2b <erase+0x160> <== NOT EXECUTED
rtems_termios_puts ("\b", 1, tty);
tty->column--;
}
}
else {
if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) {
108dcf: 0f b6 f2 movzbl %dl,%esi <== NOT EXECUTED
108dd2: f6 44 31 01 20 testb $0x20,0x1(%ecx,%esi,1) <== NOT EXECUTED
108dd7: 74 24 je 108dfd <erase+0x132> <== NOT EXECUTED
108dd9: 81 e7 00 02 00 00 and $0x200,%edi <== NOT EXECUTED
108ddf: 74 1c je 108dfd <erase+0x132> <== NOT EXECUTED
rtems_termios_puts ("\b \b", 3, tty);
108de1: 51 push %ecx <== NOT EXECUTED
108de2: 53 push %ebx <== NOT EXECUTED
108de3: 6a 03 push $0x3 <== NOT EXECUTED
108de5: 68 82 01 12 00 push $0x120182 <== NOT EXECUTED
108dea: e8 46 fc ff ff call 108a35 <rtems_termios_puts> <== NOT EXECUTED
if (tty->column)
108def: 8b 43 28 mov 0x28(%ebx),%eax <== NOT EXECUTED
108df2: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
108df5: 85 c0 test %eax,%eax <== NOT EXECUTED
108df7: 74 04 je 108dfd <erase+0x132> <== NOT EXECUTED
tty->column--;
108df9: 48 dec %eax <== NOT EXECUTED
108dfa: 89 43 28 mov %eax,0x28(%ebx) <== NOT EXECUTED
}
if (!iscntrl (c) || (tty->termios.c_lflag & ECHOCTL)) {
108dfd: a1 20 40 12 00 mov 0x124020,%eax <== NOT EXECUTED
108e02: f6 44 30 01 20 testb $0x20,0x1(%eax,%esi,1) <== NOT EXECUTED
108e07: 74 06 je 108e0f <erase+0x144> <== NOT EXECUTED
108e09: f6 43 3d 02 testb $0x2,0x3d(%ebx) <== NOT EXECUTED
108e0d: 74 1c je 108e2b <erase+0x160> <== NOT EXECUTED
rtems_termios_puts ("\b \b", 3, tty);
108e0f: 52 push %edx <== NOT EXECUTED
108e10: 53 push %ebx <== NOT EXECUTED
108e11: 6a 03 push $0x3 <== NOT EXECUTED
108e13: 68 82 01 12 00 push $0x120182 <== NOT EXECUTED
108e18: e8 18 fc ff ff call 108a35 <rtems_termios_puts> <== NOT EXECUTED
if (tty->column)
108e1d: 8b 43 28 mov 0x28(%ebx),%eax <== NOT EXECUTED
108e20: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
108e23: 85 c0 test %eax,%eax <== NOT EXECUTED
108e25: 74 04 je 108e2b <erase+0x160> <== NOT EXECUTED
tty->column--;
108e27: 48 dec %eax <== NOT EXECUTED
108e28: 89 43 28 mov %eax,0x28(%ebx) <== NOT EXECUTED
}
}
}
if (!lineFlag)
108e2b: 83 7d e4 00 cmpl $0x0,-0x1c(%ebp) <== NOT EXECUTED
108e2f: 74 0b je 108e3c <erase+0x171> <== NOT EXECUTED
if (tty->termios.c_lflag & ECHOK)
echo ('\n', tty);
return;
}
}
while (tty->ccount) {
108e31: 8b 43 20 mov 0x20(%ebx),%eax <== NOT EXECUTED
108e34: 85 c0 test %eax,%eax <== NOT EXECUTED
108e36: 0f 85 ef fe ff ff jne 108d2b <erase+0x60> <== NOT EXECUTED
}
}
if (!lineFlag)
break;
}
}
108e3c: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
108e3f: 5b pop %ebx <== NOT EXECUTED
108e40: 5e pop %esi <== NOT EXECUTED
108e41: 5f pop %edi <== NOT EXECUTED
108e42: c9 leave <== NOT EXECUTED
108e43: c3 ret <== NOT EXECUTED
00125aa6 <fat_buf_access>:
#include "fat_fat_operations.h"
int
fat_buf_access(fat_fs_info_t *fs_info, uint32_t blk, int op_type,
rtems_bdbuf_buffer **buf)
{
125aa6: 55 push %ebp <== NOT EXECUTED
125aa7: 89 e5 mov %esp,%ebp <== NOT EXECUTED
125aa9: 57 push %edi <== NOT EXECUTED
125aaa: 56 push %esi <== NOT EXECUTED
125aab: 53 push %ebx <== NOT EXECUTED
125aac: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED
125aaf: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
rtems_status_code sc = RTEMS_SUCCESSFUL;
uint8_t i;
bool sec_of_fat;
if (fs_info->c.state == FAT_CACHE_EMPTY)
125ab2: 80 bb 81 00 00 00 00 cmpb $0x0,0x81(%ebx) <== NOT EXECUTED
125ab9: 75 4b jne 125b06 <fat_buf_access+0x60> <== NOT EXECUTED
{
if (op_type == FAT_OP_TYPE_READ)
125abb: 83 7d 10 01 cmpl $0x1,0x10(%ebp) <== NOT EXECUTED
125abf: 8d 83 84 00 00 00 lea 0x84(%ebx),%eax <== NOT EXECUTED
125ac5: 75 11 jne 125ad8 <fat_buf_access+0x32> <== NOT EXECUTED
sc = rtems_bdbuf_read(fs_info->vol.dev, blk, &fs_info->c.buf);
125ac7: 50 push %eax <== NOT EXECUTED
125ac8: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
125acb: ff 73 58 pushl 0x58(%ebx) <== NOT EXECUTED
125ace: ff 73 54 pushl 0x54(%ebx) <== NOT EXECUTED
125ad1: e8 3e 54 fe ff call 10af14 <rtems_bdbuf_read> <== NOT EXECUTED
125ad6: eb 0f jmp 125ae7 <fat_buf_access+0x41> <== NOT EXECUTED
else
sc = rtems_bdbuf_get(fs_info->vol.dev, blk, &fs_info->c.buf);
125ad8: 50 push %eax <== NOT EXECUTED
125ad9: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
125adc: ff 73 58 pushl 0x58(%ebx) <== NOT EXECUTED
125adf: ff 73 54 pushl 0x54(%ebx) <== NOT EXECUTED
125ae2: e8 6f 53 fe ff call 10ae56 <rtems_bdbuf_get> <== NOT EXECUTED
125ae7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
125aea: 85 c0 test %eax,%eax <== NOT EXECUTED
125aec: 0f 85 54 01 00 00 jne 125c46 <fat_buf_access+0x1a0> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
fs_info->c.blk_num = blk;
125af2: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
125af5: 89 43 7c mov %eax,0x7c(%ebx) <== NOT EXECUTED
fs_info->c.modified = 0;
125af8: c6 83 80 00 00 00 00 movb $0x0,0x80(%ebx) <== NOT EXECUTED
fs_info->c.state = FAT_CACHE_ACTUAL;
125aff: c6 83 81 00 00 00 01 movb $0x1,0x81(%ebx) <== NOT EXECUTED
}
sec_of_fat = ((fs_info->c.blk_num >= fs_info->vol.fat_loc) &&
125b06: 8b 43 7c mov 0x7c(%ebx),%eax <== NOT EXECUTED
125b09: 0f b7 4b 14 movzwl 0x14(%ebx),%ecx <== NOT EXECUTED
125b0d: 31 d2 xor %edx,%edx <== NOT EXECUTED
125b0f: 39 c8 cmp %ecx,%eax <== NOT EXECUTED
125b11: 72 08 jb 125b1b <fat_buf_access+0x75> <== NOT EXECUTED
125b13: 31 d2 xor %edx,%edx <== NOT EXECUTED
125b15: 3b 43 1c cmp 0x1c(%ebx),%eax <== NOT EXECUTED
125b18: 0f 92 c2 setb %dl <== NOT EXECUTED
(fs_info->c.blk_num < fs_info->vol.rdir_loc));
if (fs_info->c.blk_num != blk)
125b1b: 3b 45 0c cmp 0xc(%ebp),%eax <== NOT EXECUTED
125b1e: 0f 84 3f 01 00 00 je 125c63 <fat_buf_access+0x1bd> <== NOT EXECUTED
{
if (fs_info->c.modified)
125b24: 80 bb 80 00 00 00 00 cmpb $0x0,0x80(%ebx) <== NOT EXECUTED
125b2b: 0f 84 c6 00 00 00 je 125bf7 <fat_buf_access+0x151> <== NOT EXECUTED
{
if (sec_of_fat && !fs_info->vol.mirror)
125b31: 84 d2 test %dl,%dl <== NOT EXECUTED
125b33: 74 1c je 125b51 <fat_buf_access+0xab> <== NOT EXECUTED
125b35: 80 7b 48 00 cmpb $0x0,0x48(%ebx) <== NOT EXECUTED
125b39: 75 16 jne 125b51 <fat_buf_access+0xab> <== NOT EXECUTED
memcpy(fs_info->sec_buf, fs_info->c.buf->buffer,
125b3b: 8b 83 88 00 00 00 mov 0x88(%ebx),%eax <== NOT EXECUTED
125b41: 0f b7 0b movzwl (%ebx),%ecx <== NOT EXECUTED
125b44: 8b b3 84 00 00 00 mov 0x84(%ebx),%esi <== NOT EXECUTED
125b4a: 8b 76 20 mov 0x20(%esi),%esi <== NOT EXECUTED
125b4d: 89 c7 mov %eax,%edi <== NOT EXECUTED
125b4f: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
fs_info->vol.bps);
sc = rtems_bdbuf_release_modified(fs_info->c.buf);
125b51: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
125b54: ff b3 84 00 00 00 pushl 0x84(%ebx) <== NOT EXECUTED
125b5a: 88 55 d0 mov %dl,-0x30(%ebp) <== NOT EXECUTED
125b5d: e8 ac 44 fe ff call 10a00e <rtems_bdbuf_release_modified><== NOT EXECUTED
fs_info->c.state = FAT_CACHE_EMPTY;
125b62: c6 83 81 00 00 00 00 movb $0x0,0x81(%ebx) <== NOT EXECUTED
fs_info->c.modified = 0;
125b69: c6 83 80 00 00 00 00 movb $0x0,0x80(%ebx) <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
125b70: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
125b73: 85 c0 test %eax,%eax <== NOT EXECUTED
125b75: 8a 55 d0 mov -0x30(%ebp),%dl <== NOT EXECUTED
125b78: 0f 85 c8 00 00 00 jne 125c46 <fat_buf_access+0x1a0> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
if (sec_of_fat && !fs_info->vol.mirror)
125b7e: 84 d2 test %dl,%dl <== NOT EXECUTED
125b80: 0f 84 8d 00 00 00 je 125c13 <fat_buf_access+0x16d> <== NOT EXECUTED
125b86: 80 7b 48 00 cmpb $0x0,0x48(%ebx) <== NOT EXECUTED
125b8a: 0f 85 83 00 00 00 jne 125c13 <fat_buf_access+0x16d> <== NOT EXECUTED
125b90: c6 45 d7 01 movb $0x1,-0x29(%ebp) <== NOT EXECUTED
125b94: eb 57 jmp 125bed <fat_buf_access+0x147> <== NOT EXECUTED
{
rtems_bdbuf_buffer *b;
for (i = 1; i < fs_info->vol.fats; i++)
{
sc = rtems_bdbuf_get(fs_info->vol.dev,
125b96: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
125b99: 50 push %eax <== NOT EXECUTED
125b9a: 0f b6 45 d7 movzbl -0x29(%ebp),%eax <== NOT EXECUTED
125b9e: 0f af 43 18 imul 0x18(%ebx),%eax <== NOT EXECUTED
125ba2: 03 43 7c add 0x7c(%ebx),%eax <== NOT EXECUTED
125ba5: 50 push %eax <== NOT EXECUTED
125ba6: ff 73 58 pushl 0x58(%ebx) <== NOT EXECUTED
125ba9: ff 73 54 pushl 0x54(%ebx) <== NOT EXECUTED
125bac: e8 a5 52 fe ff call 10ae56 <rtems_bdbuf_get> <== NOT EXECUTED
fs_info->c.blk_num +
fs_info->vol.fat_length * i,
&b);
if ( sc != RTEMS_SUCCESSFUL)
125bb1: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
125bb4: 85 c0 test %eax,%eax <== NOT EXECUTED
125bb6: 75 25 jne 125bdd <fat_buf_access+0x137> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(ENOMEM);
memcpy(b->buffer, fs_info->sec_buf, fs_info->vol.bps);
125bb8: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
125bbb: 8b 40 20 mov 0x20(%eax),%eax <== NOT EXECUTED
125bbe: 0f b7 0b movzwl (%ebx),%ecx <== NOT EXECUTED
125bc1: 8b b3 88 00 00 00 mov 0x88(%ebx),%esi <== NOT EXECUTED
125bc7: 89 c7 mov %eax,%edi <== NOT EXECUTED
125bc9: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
sc = rtems_bdbuf_release_modified(b);
125bcb: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
125bce: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
125bd1: e8 38 44 fe ff call 10a00e <rtems_bdbuf_release_modified><== NOT EXECUTED
if ( sc != RTEMS_SUCCESSFUL)
125bd6: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
125bd9: 85 c0 test %eax,%eax <== NOT EXECUTED
125bdb: 74 0d je 125bea <fat_buf_access+0x144> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(ENOMEM);
125bdd: e8 32 84 01 00 call 13e014 <__errno> <== NOT EXECUTED
125be2: c7 00 0c 00 00 00 movl $0xc,(%eax) <== NOT EXECUTED
125be8: eb 67 jmp 125c51 <fat_buf_access+0x1ab> <== NOT EXECUTED
if (sec_of_fat && !fs_info->vol.mirror)
{
rtems_bdbuf_buffer *b;
for (i = 1; i < fs_info->vol.fats; i++)
125bea: fe 45 d7 incb -0x29(%ebp) <== NOT EXECUTED
125bed: 8a 45 d7 mov -0x29(%ebp),%al <== NOT EXECUTED
125bf0: 3a 43 09 cmp 0x9(%ebx),%al <== NOT EXECUTED
125bf3: 72 a1 jb 125b96 <fat_buf_access+0xf0> <== NOT EXECUTED
125bf5: eb 1c jmp 125c13 <fat_buf_access+0x16d> <== NOT EXECUTED
}
}
}
else
{
sc = rtems_bdbuf_release(fs_info->c.buf);
125bf7: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
125bfa: ff b3 84 00 00 00 pushl 0x84(%ebx) <== NOT EXECUTED
125c00: e8 72 44 fe ff call 10a077 <rtems_bdbuf_release> <== NOT EXECUTED
fs_info->c.state = FAT_CACHE_EMPTY;
125c05: c6 83 81 00 00 00 00 movb $0x0,0x81(%ebx) <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
125c0c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
125c0f: 85 c0 test %eax,%eax <== NOT EXECUTED
125c11: 75 33 jne 125c46 <fat_buf_access+0x1a0> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
}
if (op_type == FAT_OP_TYPE_READ)
125c13: 83 7d 10 01 cmpl $0x1,0x10(%ebp) <== NOT EXECUTED
125c17: 8d 83 84 00 00 00 lea 0x84(%ebx),%eax <== NOT EXECUTED
125c1d: 75 11 jne 125c30 <fat_buf_access+0x18a> <== NOT EXECUTED
sc = rtems_bdbuf_read(fs_info->vol.dev, blk, &fs_info->c.buf);
125c1f: 50 push %eax <== NOT EXECUTED
125c20: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
125c23: ff 73 58 pushl 0x58(%ebx) <== NOT EXECUTED
125c26: ff 73 54 pushl 0x54(%ebx) <== NOT EXECUTED
125c29: e8 e6 52 fe ff call 10af14 <rtems_bdbuf_read> <== NOT EXECUTED
125c2e: eb 0f jmp 125c3f <fat_buf_access+0x199> <== NOT EXECUTED
else
sc = rtems_bdbuf_get(fs_info->vol.dev, blk, &fs_info->c.buf);
125c30: 50 push %eax <== NOT EXECUTED
125c31: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
125c34: ff 73 58 pushl 0x58(%ebx) <== NOT EXECUTED
125c37: ff 73 54 pushl 0x54(%ebx) <== NOT EXECUTED
125c3a: e8 17 52 fe ff call 10ae56 <rtems_bdbuf_get> <== NOT EXECUTED
125c3f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
125c42: 85 c0 test %eax,%eax <== NOT EXECUTED
125c44: 74 10 je 125c56 <fat_buf_access+0x1b0> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
125c46: e8 c9 83 01 00 call 13e014 <__errno> <== NOT EXECUTED
125c4b: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
125c51: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
125c54: eb 1a jmp 125c70 <fat_buf_access+0x1ca> <== NOT EXECUTED
fs_info->c.blk_num = blk;
125c56: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
125c59: 89 43 7c mov %eax,0x7c(%ebx) <== NOT EXECUTED
fs_info->c.state = FAT_CACHE_ACTUAL;
125c5c: c6 83 81 00 00 00 01 movb $0x1,0x81(%ebx) <== NOT EXECUTED
}
*buf = fs_info->c.buf;
125c63: 8b 93 84 00 00 00 mov 0x84(%ebx),%edx <== NOT EXECUTED
125c69: 8b 45 14 mov 0x14(%ebp),%eax <== NOT EXECUTED
125c6c: 89 10 mov %edx,(%eax) <== NOT EXECUTED
125c6e: 31 c0 xor %eax,%eax <== NOT EXECUTED
return RC_OK;
}
125c70: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
125c73: 5b pop %ebx <== NOT EXECUTED
125c74: 5e pop %esi <== NOT EXECUTED
125c75: 5f pop %edi <== NOT EXECUTED
125c76: c9 leave <== NOT EXECUTED
125c77: c3 ret <== NOT EXECUTED
0012595f <fat_buf_release>:
return RC_OK;
}
int
fat_buf_release(fat_fs_info_t *fs_info)
{
12595f: 55 push %ebp <== NOT EXECUTED
125960: 89 e5 mov %esp,%ebp <== NOT EXECUTED
125962: 57 push %edi <== NOT EXECUTED
125963: 56 push %esi <== NOT EXECUTED
125964: 53 push %ebx <== NOT EXECUTED
125965: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED
125968: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
rtems_status_code sc = RTEMS_SUCCESSFUL;
uint8_t i;
bool sec_of_fat;
if (fs_info->c.state == FAT_CACHE_EMPTY)
12596b: 31 c0 xor %eax,%eax <== NOT EXECUTED
12596d: 80 bb 81 00 00 00 00 cmpb $0x0,0x81(%ebx) <== NOT EXECUTED
125974: 0f 84 0f 01 00 00 je 125a89 <fat_buf_release+0x12a> <== NOT EXECUTED
return RC_OK;
sec_of_fat = ((fs_info->c.blk_num >= fs_info->vol.fat_loc) &&
12597a: 8b 43 7c mov 0x7c(%ebx),%eax <== NOT EXECUTED
12597d: 0f b7 4b 14 movzwl 0x14(%ebx),%ecx <== NOT EXECUTED
125981: 31 d2 xor %edx,%edx <== NOT EXECUTED
125983: 39 c8 cmp %ecx,%eax <== NOT EXECUTED
125985: 72 08 jb 12598f <fat_buf_release+0x30> <== NOT EXECUTED
125987: 31 d2 xor %edx,%edx <== NOT EXECUTED
125989: 3b 43 1c cmp 0x1c(%ebx),%eax <== NOT EXECUTED
12598c: 0f 92 c2 setb %dl <== NOT EXECUTED
(fs_info->c.blk_num < fs_info->vol.rdir_loc));
if (fs_info->c.modified)
12598f: 80 bb 80 00 00 00 00 cmpb $0x0,0x80(%ebx) <== NOT EXECUTED
125996: 0f 84 c2 00 00 00 je 125a5e <fat_buf_release+0xff> <== NOT EXECUTED
{
if (sec_of_fat && !fs_info->vol.mirror)
12599c: 84 d2 test %dl,%dl <== NOT EXECUTED
12599e: 74 1c je 1259bc <fat_buf_release+0x5d> <== NOT EXECUTED
1259a0: 80 7b 48 00 cmpb $0x0,0x48(%ebx) <== NOT EXECUTED
1259a4: 75 16 jne 1259bc <fat_buf_release+0x5d> <== NOT EXECUTED
memcpy(fs_info->sec_buf, fs_info->c.buf->buffer, fs_info->vol.bps);
1259a6: 8b 83 88 00 00 00 mov 0x88(%ebx),%eax <== NOT EXECUTED
1259ac: 0f b7 0b movzwl (%ebx),%ecx <== NOT EXECUTED
1259af: 8b b3 84 00 00 00 mov 0x84(%ebx),%esi <== NOT EXECUTED
1259b5: 8b 76 20 mov 0x20(%esi),%esi <== NOT EXECUTED
1259b8: 89 c7 mov %eax,%edi <== NOT EXECUTED
1259ba: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
sc = rtems_bdbuf_release_modified(fs_info->c.buf);
1259bc: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1259bf: ff b3 84 00 00 00 pushl 0x84(%ebx) <== NOT EXECUTED
1259c5: 88 55 d0 mov %dl,-0x30(%ebp) <== NOT EXECUTED
1259c8: e8 41 46 fe ff call 10a00e <rtems_bdbuf_release_modified><== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
1259cd: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1259d0: 85 c0 test %eax,%eax <== NOT EXECUTED
1259d2: 8a 55 d0 mov -0x30(%ebp),%dl <== NOT EXECUTED
1259d5: 0f 85 98 00 00 00 jne 125a73 <fat_buf_release+0x114> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
fs_info->c.modified = 0;
1259db: c6 83 80 00 00 00 00 movb $0x0,0x80(%ebx) <== NOT EXECUTED
if (sec_of_fat && !fs_info->vol.mirror)
1259e2: 84 d2 test %dl,%dl <== NOT EXECUTED
1259e4: 0f 84 96 00 00 00 je 125a80 <fat_buf_release+0x121> <== NOT EXECUTED
1259ea: 80 7b 48 00 cmpb $0x0,0x48(%ebx) <== NOT EXECUTED
1259ee: 0f 85 8c 00 00 00 jne 125a80 <fat_buf_release+0x121> <== NOT EXECUTED
1259f4: c6 45 d7 01 movb $0x1,-0x29(%ebp) <== NOT EXECUTED
1259f8: eb 5a jmp 125a54 <fat_buf_release+0xf5> <== NOT EXECUTED
{
rtems_bdbuf_buffer *b;
for (i = 1; i < fs_info->vol.fats; i++)
{
sc = rtems_bdbuf_get(fs_info->vol.dev,
1259fa: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
1259fd: 50 push %eax <== NOT EXECUTED
1259fe: 0f b6 45 d7 movzbl -0x29(%ebp),%eax <== NOT EXECUTED
125a02: 0f af 43 18 imul 0x18(%ebx),%eax <== NOT EXECUTED
125a06: 03 43 7c add 0x7c(%ebx),%eax <== NOT EXECUTED
125a09: 50 push %eax <== NOT EXECUTED
125a0a: ff 73 58 pushl 0x58(%ebx) <== NOT EXECUTED
125a0d: ff 73 54 pushl 0x54(%ebx) <== NOT EXECUTED
125a10: e8 41 54 fe ff call 10ae56 <rtems_bdbuf_get> <== NOT EXECUTED
fs_info->c.blk_num +
fs_info->vol.fat_length * i,
&b);
if ( sc != RTEMS_SUCCESSFUL)
125a15: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
125a18: 85 c0 test %eax,%eax <== NOT EXECUTED
125a1a: 74 10 je 125a2c <fat_buf_release+0xcd> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(ENOMEM);
125a1c: e8 f3 85 01 00 call 13e014 <__errno> <== NOT EXECUTED
125a21: c7 00 0c 00 00 00 movl $0xc,(%eax) <== NOT EXECUTED
125a27: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
125a2a: eb 5d jmp 125a89 <fat_buf_release+0x12a> <== NOT EXECUTED
memcpy(b->buffer, fs_info->sec_buf, fs_info->vol.bps);
125a2c: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
125a2f: 8b 40 20 mov 0x20(%eax),%eax <== NOT EXECUTED
125a32: 0f b7 0b movzwl (%ebx),%ecx <== NOT EXECUTED
125a35: 8b b3 88 00 00 00 mov 0x88(%ebx),%esi <== NOT EXECUTED
125a3b: 89 c7 mov %eax,%edi <== NOT EXECUTED
125a3d: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
sc = rtems_bdbuf_release_modified(b);
125a3f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
125a42: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
125a45: e8 c4 45 fe ff call 10a00e <rtems_bdbuf_release_modified><== NOT EXECUTED
if ( sc != RTEMS_SUCCESSFUL)
125a4a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
125a4d: 85 c0 test %eax,%eax <== NOT EXECUTED
125a4f: 75 cb jne 125a1c <fat_buf_release+0xbd> <== NOT EXECUTED
if (sec_of_fat && !fs_info->vol.mirror)
{
rtems_bdbuf_buffer *b;
for (i = 1; i < fs_info->vol.fats; i++)
125a51: fe 45 d7 incb -0x29(%ebp) <== NOT EXECUTED
125a54: 8a 45 d7 mov -0x29(%ebp),%al <== NOT EXECUTED
125a57: 3a 43 09 cmp 0x9(%ebx),%al <== NOT EXECUTED
125a5a: 72 9e jb 1259fa <fat_buf_release+0x9b> <== NOT EXECUTED
125a5c: eb 22 jmp 125a80 <fat_buf_release+0x121> <== NOT EXECUTED
}
}
}
else
{
sc = rtems_bdbuf_release(fs_info->c.buf);
125a5e: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
125a61: ff b3 84 00 00 00 pushl 0x84(%ebx) <== NOT EXECUTED
125a67: e8 0b 46 fe ff call 10a077 <rtems_bdbuf_release> <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
125a6c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
125a6f: 85 c0 test %eax,%eax <== NOT EXECUTED
125a71: 74 0d je 125a80 <fat_buf_release+0x121> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
125a73: e8 9c 85 01 00 call 13e014 <__errno> <== NOT EXECUTED
125a78: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
125a7e: eb a7 jmp 125a27 <fat_buf_release+0xc8> <== NOT EXECUTED
}
fs_info->c.state = FAT_CACHE_EMPTY;
125a80: c6 83 81 00 00 00 00 movb $0x0,0x81(%ebx) <== NOT EXECUTED
125a87: 31 c0 xor %eax,%eax <== NOT EXECUTED
return RC_OK;
}
125a89: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
125a8c: 5b pop %ebx <== NOT EXECUTED
125a8d: 5e pop %esi <== NOT EXECUTED
125a8e: 5f pop %edi <== NOT EXECUTED
125a8f: c9 leave <== NOT EXECUTED
125a90: c3 ret <== NOT EXECUTED
001265e3 <fat_cluster_read>:
fat_cluster_read(
rtems_filesystem_mount_table_entry_t *mt_entry,
uint32_t cln,
void *buff
)
{
1265e3: 55 push %ebp <== NOT EXECUTED
1265e4: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1265e6: 56 push %esi <== NOT EXECUTED
1265e7: 53 push %ebx <== NOT EXECUTED
1265e8: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
1265eb: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
fat_fs_info_t *fs_info = mt_entry->fs_info;
1265ee: 8b 56 34 mov 0x34(%esi),%edx <== NOT EXECUTED
uint32_t cln
)
{
register fat_fs_info_t *fs_info = mt_entry->fs_info;
if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) )
1265f1: 85 c0 test %eax,%eax <== NOT EXECUTED
1265f3: 75 0b jne 126600 <fat_cluster_read+0x1d> <== NOT EXECUTED
1265f5: f6 42 0a 03 testb $0x3,0xa(%edx) <== NOT EXECUTED
1265f9: 74 05 je 126600 <fat_cluster_read+0x1d> <== NOT EXECUTED
return fs_info->vol.rdir_loc;
1265fb: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED
1265fe: eb 0c jmp 12660c <fat_cluster_read+0x29> <== NOT EXECUTED
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
126600: 83 e8 02 sub $0x2,%eax <== NOT EXECUTED
126603: 0f b6 4a 05 movzbl 0x5(%edx),%ecx <== NOT EXECUTED
126607: d3 e0 shl %cl,%eax <== NOT EXECUTED
126609: 03 42 30 add 0x30(%edx),%eax <== NOT EXECUTED
uint32_t fsec = 0;
fsec = fat_cluster_num_to_sector_num(mt_entry, cln);
return _fat_block_read(mt_entry, fsec, 0,
12660c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12660f: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
126612: 0f b6 5a 04 movzbl 0x4(%edx),%ebx <== NOT EXECUTED
126616: 0f b6 4a 02 movzbl 0x2(%edx),%ecx <== NOT EXECUTED
12661a: d3 e3 shl %cl,%ebx <== NOT EXECUTED
12661c: 53 push %ebx <== NOT EXECUTED
12661d: 6a 00 push $0x0 <== NOT EXECUTED
12661f: 50 push %eax <== NOT EXECUTED
126620: 56 push %esi <== NOT EXECUTED
126621: e8 44 f9 ff ff call 125f6a <_fat_block_read> <== NOT EXECUTED
fs_info->vol.spc << fs_info->vol.sec_log2, buff);
}
126626: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
126629: 5b pop %ebx <== NOT EXECUTED
12662a: 5e pop %esi <== NOT EXECUTED
12662b: c9 leave <== NOT EXECUTED
12662c: c3 ret <== NOT EXECUTED
00125e7d <fat_cluster_write>:
fat_cluster_write(
rtems_filesystem_mount_table_entry_t *mt_entry,
uint32_t cln,
const void *buff
)
{
125e7d: 55 push %ebp <== NOT EXECUTED
125e7e: 89 e5 mov %esp,%ebp <== NOT EXECUTED
125e80: 56 push %esi <== NOT EXECUTED
125e81: 53 push %ebx <== NOT EXECUTED
125e82: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
125e85: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
fat_fs_info_t *fs_info = mt_entry->fs_info;
125e88: 8b 56 34 mov 0x34(%esi),%edx <== NOT EXECUTED
uint32_t cln
)
{
register fat_fs_info_t *fs_info = mt_entry->fs_info;
if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) )
125e8b: 85 c0 test %eax,%eax <== NOT EXECUTED
125e8d: 75 0b jne 125e9a <fat_cluster_write+0x1d><== NOT EXECUTED
125e8f: f6 42 0a 03 testb $0x3,0xa(%edx) <== NOT EXECUTED
125e93: 74 05 je 125e9a <fat_cluster_write+0x1d><== NOT EXECUTED
return fs_info->vol.rdir_loc;
125e95: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED
125e98: eb 0c jmp 125ea6 <fat_cluster_write+0x29><== NOT EXECUTED
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
125e9a: 83 e8 02 sub $0x2,%eax <== NOT EXECUTED
125e9d: 0f b6 4a 05 movzbl 0x5(%edx),%ecx <== NOT EXECUTED
125ea1: d3 e0 shl %cl,%eax <== NOT EXECUTED
125ea3: 03 42 30 add 0x30(%edx),%eax <== NOT EXECUTED
uint32_t fsec = 0;
fsec = fat_cluster_num_to_sector_num(mt_entry, cln);
return _fat_block_write(mt_entry, fsec, 0,
125ea6: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
125ea9: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
125eac: 0f b6 5a 04 movzbl 0x4(%edx),%ebx <== NOT EXECUTED
125eb0: 0f b6 4a 02 movzbl 0x2(%edx),%ecx <== NOT EXECUTED
125eb4: d3 e3 shl %cl,%ebx <== NOT EXECUTED
125eb6: 53 push %ebx <== NOT EXECUTED
125eb7: 6a 00 push $0x0 <== NOT EXECUTED
125eb9: 50 push %eax <== NOT EXECUTED
125eba: 56 push %esi <== NOT EXECUTED
125ebb: e8 b8 fd ff ff call 125c78 <_fat_block_write> <== NOT EXECUTED
fs_info->vol.spc << fs_info->vol.sec_log2, buff);
}
125ec0: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
125ec3: 5b pop %ebx <== NOT EXECUTED
125ec4: 5e pop %esi <== NOT EXECUTED
125ec5: c9 leave <== NOT EXECUTED
125ec6: c3 ret <== NOT EXECUTED
00125d16 <fat_fat32_update_fsinfo_sector>:
fat_fat32_update_fsinfo_sector(
rtems_filesystem_mount_table_entry_t *mt_entry,
uint32_t free_count,
uint32_t next_free
)
{
125d16: 55 push %ebp <== NOT EXECUTED
125d17: 89 e5 mov %esp,%ebp <== NOT EXECUTED
125d19: 57 push %edi <== NOT EXECUTED
125d1a: 56 push %esi <== NOT EXECUTED
125d1b: 53 push %ebx <== NOT EXECUTED
125d1c: 83 ec 28 sub $0x28,%esp <== NOT EXECUTED
125d1f: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
ssize_t ret1 = 0, ret2 = 0;
register fat_fs_info_t *fs_info = mt_entry->fs_info;
125d22: 8b 73 34 mov 0x34(%ebx),%esi <== NOT EXECUTED
uint32_t le_free_count = 0;
uint32_t le_next_free = 0;
le_free_count = CT_LE_L(free_count);
125d25: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
125d28: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
le_next_free = CT_LE_L(next_free);
125d2b: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
125d2e: 89 45 e0 mov %eax,-0x20(%ebp) <== NOT EXECUTED
ret1 = _fat_block_write(mt_entry,
125d31: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
125d34: 50 push %eax <== NOT EXECUTED
125d35: 6a 04 push $0x4 <== NOT EXECUTED
125d37: 68 e8 01 00 00 push $0x1e8 <== NOT EXECUTED
125d3c: 0f b7 46 3c movzwl 0x3c(%esi),%eax <== NOT EXECUTED
125d40: 50 push %eax <== NOT EXECUTED
125d41: 53 push %ebx <== NOT EXECUTED
125d42: e8 31 ff ff ff call 125c78 <_fat_block_write> <== NOT EXECUTED
125d47: 89 c7 mov %eax,%edi <== NOT EXECUTED
fs_info->vol.info_sec,
FAT_FSINFO_FREE_CLUSTER_COUNT_OFFSET,
4,
(char *)(&le_free_count));
ret2 = _fat_block_write(mt_entry,
125d49: 83 c4 14 add $0x14,%esp <== NOT EXECUTED
125d4c: 8d 45 e0 lea -0x20(%ebp),%eax <== NOT EXECUTED
125d4f: 50 push %eax <== NOT EXECUTED
125d50: 6a 04 push $0x4 <== NOT EXECUTED
125d52: 68 ec 01 00 00 push $0x1ec <== NOT EXECUTED
125d57: 0f b7 46 3c movzwl 0x3c(%esi),%eax <== NOT EXECUTED
125d5b: 50 push %eax <== NOT EXECUTED
125d5c: 53 push %ebx <== NOT EXECUTED
125d5d: e8 16 ff ff ff call 125c78 <_fat_block_write> <== NOT EXECUTED
fs_info->vol.info_sec,
FAT_FSINFO_NEXT_FREE_CLUSTER_OFFSET,
4,
(char *)(&le_next_free));
if ( (ret1 < 0) || (ret2 < 0) )
125d62: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
125d65: 85 c0 test %eax,%eax <== NOT EXECUTED
125d67: 78 06 js 125d6f <fat_fat32_update_fsinfo_sector+0x59><== NOT EXECUTED
125d69: 31 c0 xor %eax,%eax <== NOT EXECUTED
125d6b: 85 ff test %edi,%edi <== NOT EXECUTED
125d6d: 79 03 jns 125d72 <fat_fat32_update_fsinfo_sector+0x5c><== NOT EXECUTED
125d6f: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
return -1;
return RC_OK;
}
125d72: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
125d75: 5b pop %ebx <== NOT EXECUTED
125d76: 5e pop %esi <== NOT EXECUTED
125d77: 5f pop %edi <== NOT EXECUTED
125d78: c9 leave <== NOT EXECUTED
125d79: c3 ret <== NOT EXECUTED
001255cd <fat_file_close>:
int
fat_file_close(
rtems_filesystem_mount_table_entry_t *mt_entry,
fat_file_fd_t *fat_fd
)
{
1255cd: 55 push %ebp <== NOT EXECUTED
1255ce: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1255d0: 57 push %edi <== NOT EXECUTED
1255d1: 56 push %esi <== NOT EXECUTED
1255d2: 53 push %ebx <== NOT EXECUTED
1255d3: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1255d6: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
1255d9: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
int rc = RC_OK;
fat_fs_info_t *fs_info = mt_entry->fs_info;
1255dc: 8b 7e 34 mov 0x34(%esi),%edi <== NOT EXECUTED
/*
* if links_num field of fat-file descriptor is greater than 1
* decrement the count of links and return
*/
if (fat_fd->links_num > 1)
1255df: 8b 43 08 mov 0x8(%ebx),%eax <== NOT EXECUTED
1255e2: 83 f8 01 cmp $0x1,%eax <== NOT EXECUTED
1255e5: 76 0b jbe 1255f2 <fat_file_close+0x25> <== NOT EXECUTED
{
fat_fd->links_num--;
1255e7: 48 dec %eax <== NOT EXECUTED
1255e8: 89 43 08 mov %eax,0x8(%ebx) <== NOT EXECUTED
1255eb: 31 c0 xor %eax,%eax <== NOT EXECUTED
return rc;
1255ed: e9 82 00 00 00 jmp 125674 <fat_file_close+0xa7> <== NOT EXECUTED
}
key = fat_construct_key(mt_entry, &fat_fd->dir_pos.sname);
if (fat_fd->flags & FAT_FILE_REMOVED)
1255f2: f6 43 30 01 testb $0x1,0x30(%ebx) <== NOT EXECUTED
1255f6: 74 3f je 125637 <fat_file_close+0x6a> <== NOT EXECUTED
{
rc = fat_file_truncate(mt_entry, fat_fd, 0);
1255f8: 50 push %eax <== NOT EXECUTED
1255f9: 6a 00 push $0x0 <== NOT EXECUTED
1255fb: 53 push %ebx <== NOT EXECUTED
1255fc: 56 push %esi <== NOT EXECUTED
1255fd: e8 9d f9 ff ff call 124f9f <fat_file_truncate> <== NOT EXECUTED
if ( rc != RC_OK )
125602: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
125605: 85 c0 test %eax,%eax <== NOT EXECUTED
125607: 75 6b jne 125674 <fat_file_close+0xa7> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void rtems_chain_extract(
rtems_chain_node *the_node
)
{
_Chain_Extract( the_node );
125609: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12560c: 53 push %ebx <== NOT EXECUTED
12560d: e8 86 c0 fe ff call 111698 <_Chain_Extract> <== NOT EXECUTED
return rc;
_hash_delete(fs_info->rhash, key, fat_fd->ino, fat_fd);
if ( fat_ino_is_unique(mt_entry, fat_fd->ino) )
125612: 5a pop %edx <== NOT EXECUTED
125613: 59 pop %ecx <== NOT EXECUTED
125614: ff 73 0c pushl 0xc(%ebx) <== NOT EXECUTED
125617: 56 push %esi <== NOT EXECUTED
125618: e8 92 02 00 00 call 1258af <fat_ino_is_unique> <== NOT EXECUTED
12561d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
125620: 84 c0 test %al,%al <== NOT EXECUTED
125622: 74 0e je 125632 <fat_file_close+0x65> <== NOT EXECUTED
fat_free_unique_ino(mt_entry, fat_fd->ino);
125624: 50 push %eax <== NOT EXECUTED
125625: 50 push %eax <== NOT EXECUTED
125626: ff 73 0c pushl 0xc(%ebx) <== NOT EXECUTED
125629: 56 push %esi <== NOT EXECUTED
12562a: e8 59 02 00 00 call 125888 <fat_free_unique_ino> <== NOT EXECUTED
12562f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
free(fat_fd);
125632: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
125635: eb 25 jmp 12565c <fat_file_close+0x8f> <== NOT EXECUTED
}
else
{
if (fat_ino_is_unique(mt_entry, fat_fd->ino))
125637: 51 push %ecx <== NOT EXECUTED
125638: 51 push %ecx <== NOT EXECUTED
125639: ff 73 0c pushl 0xc(%ebx) <== NOT EXECUTED
12563c: 56 push %esi <== NOT EXECUTED
12563d: e8 6d 02 00 00 call 1258af <fat_ino_is_unique> <== NOT EXECUTED
125642: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
125645: 84 c0 test %al,%al <== NOT EXECUTED
125647: 74 09 je 125652 <fat_file_close+0x85> <== NOT EXECUTED
{
fat_fd->links_num = 0;
125649: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx) <== NOT EXECUTED
125650: eb 13 jmp 125665 <fat_file_close+0x98> <== NOT EXECUTED
125652: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
125655: 53 push %ebx <== NOT EXECUTED
125656: e8 3d c0 fe ff call 111698 <_Chain_Extract> <== NOT EXECUTED
}
else
{
_hash_delete(fs_info->vhash, key, fat_fd->ino, fat_fd);
free(fat_fd);
12565b: 5a pop %edx <== NOT EXECUTED
12565c: 53 push %ebx <== NOT EXECUTED
12565d: e8 3a 78 fe ff call 10ce9c <free> <== NOT EXECUTED
125662: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
}
/*
* flush any modified "cached" buffer back to disk
*/
rc = fat_buf_release(fs_info);
125665: 89 7d 08 mov %edi,0x8(%ebp) <== NOT EXECUTED
return rc;
}
125668: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
12566b: 5b pop %ebx <== NOT EXECUTED
12566c: 5e pop %esi <== NOT EXECUTED
12566d: 5f pop %edi <== NOT EXECUTED
12566e: c9 leave <== NOT EXECUTED
}
}
/*
* flush any modified "cached" buffer back to disk
*/
rc = fat_buf_release(fs_info);
12566f: e9 eb 02 00 00 jmp 12595f <fat_buf_release> <== NOT EXECUTED
return rc;
}
125674: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
125677: 5b pop %ebx <== NOT EXECUTED
125678: 5e pop %esi <== NOT EXECUTED
125679: 5f pop %edi <== NOT EXECUTED
12567a: c9 leave <== NOT EXECUTED
12567b: c3 ret <== NOT EXECUTED
00124dd4 <fat_file_datasync>:
int
fat_file_datasync(
rtems_filesystem_mount_table_entry_t *mt_entry,
fat_file_fd_t *fat_fd
)
{
124dd4: 55 push %ebp <== NOT EXECUTED
124dd5: 89 e5 mov %esp,%ebp <== NOT EXECUTED
124dd7: 57 push %edi <== NOT EXECUTED
124dd8: 56 push %esi <== NOT EXECUTED
124dd9: 53 push %ebx <== NOT EXECUTED
124dda: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED
124ddd: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
int rc = RC_OK;
rtems_status_code sc = RTEMS_SUCCESSFUL;
fat_fs_info_t *fs_info = mt_entry->fs_info;
124de0: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
124de3: 8b 72 34 mov 0x34(%edx),%esi <== NOT EXECUTED
uint32_t cur_cln = fat_fd->cln;
124de6: 8b 50 1c mov 0x1c(%eax),%edx <== NOT EXECUTED
rtems_bdbuf_buffer *block = NULL;
uint32_t sec = 0;
uint32_t i = 0;
if (fat_fd->fat_file_size == 0)
124de9: 31 db xor %ebx,%ebx <== NOT EXECUTED
124deb: 83 78 18 00 cmpl $0x0,0x18(%eax) <== NOT EXECUTED
124def: 0f 84 c9 00 00 00 je 124ebe <fat_file_datasync+0xea><== NOT EXECUTED
{
int rc = RC_OK;
rtems_status_code sc = RTEMS_SUCCESSFUL;
fat_fs_info_t *fs_info = mt_entry->fs_info;
uint32_t cur_cln = fat_fd->cln;
rtems_bdbuf_buffer *block = NULL;
124df5: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp) <== NOT EXECUTED
)
{
int rc = RC_OK;
rtems_status_code sc = RTEMS_SUCCESSFUL;
fat_fs_info_t *fs_info = mt_entry->fs_info;
uint32_t cur_cln = fat_fd->cln;
124dfc: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED
/*
* we can use only one bdbuf :( and we also know that cache is useless
* for sync operation, so don't use it
*/
rc = fat_buf_release(fs_info);
124dff: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
124e02: 56 push %esi <== NOT EXECUTED
124e03: e8 57 0b 00 00 call 12595f <fat_buf_release> <== NOT EXECUTED
124e08: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc != RC_OK)
124e0a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
sc = rtems_bdbuf_sync(block);
if ( sc != RTEMS_SUCCESSFUL )
rtems_set_errno_and_return_minus_one( EIO );
}
rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln);
124e0d: 89 c7 mov %eax,%edi <== NOT EXECUTED
/*
* we can use only one bdbuf :( and we also know that cache is useless
* for sync operation, so don't use it
*/
rc = fat_buf_release(fs_info);
if (rc != RC_OK)
124e0f: 85 c0 test %eax,%eax <== NOT EXECUTED
124e11: 0f 84 94 00 00 00 je 124eab <fat_file_datasync+0xd7><== NOT EXECUTED
124e17: e9 a2 00 00 00 jmp 124ebe <fat_file_datasync+0xea><== NOT EXECUTED
fat_cluster_num_to_sector_num(
rtems_filesystem_mount_table_entry_t *mt_entry,
uint32_t cln
)
{
register fat_fs_info_t *fs_info = mt_entry->fs_info;
124e1c: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
124e1f: 8b 42 34 mov 0x34(%edx),%eax <== NOT EXECUTED
if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) )
124e22: 85 db test %ebx,%ebx <== NOT EXECUTED
124e24: 75 0b jne 124e31 <fat_file_datasync+0x5d><== NOT EXECUTED
124e26: f6 40 0a 03 testb $0x3,0xa(%eax) <== NOT EXECUTED
124e2a: 74 05 je 124e31 <fat_file_datasync+0x5d><== NOT EXECUTED
return fs_info->vol.rdir_loc;
124e2c: 8b 58 1c mov 0x1c(%eax),%ebx <== NOT EXECUTED
124e2f: eb 0c jmp 124e3d <fat_file_datasync+0x69><== NOT EXECUTED
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
124e31: 83 eb 02 sub $0x2,%ebx <== NOT EXECUTED
124e34: 0f b6 48 05 movzbl 0x5(%eax),%ecx <== NOT EXECUTED
124e38: d3 e3 shl %cl,%ebx <== NOT EXECUTED
124e3a: 03 58 30 add 0x30(%eax),%ebx <== NOT EXECUTED
124e3d: c7 45 d4 00 00 00 00 movl $0x0,-0x2c(%ebp) <== NOT EXECUTED
/* for each cluster of the file ... */
while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val)
{
sec = fat_cluster_num_to_sector_num(mt_entry, cur_cln);
/* for each sector in cluster ... */
for ( i = 0; i < fs_info->vol.spc; i++ )
124e44: eb 41 jmp 124e87 <fat_file_datasync+0xb3><== NOT EXECUTED
{
/* ... sync it */
sc = rtems_bdbuf_read(fs_info->vol.dev, (sec + i), &block);
124e46: 8d 45 e0 lea -0x20(%ebp),%eax <== NOT EXECUTED
124e49: 50 push %eax <== NOT EXECUTED
124e4a: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED
124e4d: 01 d8 add %ebx,%eax <== NOT EXECUTED
124e4f: 50 push %eax <== NOT EXECUTED
124e50: ff 76 58 pushl 0x58(%esi) <== NOT EXECUTED
124e53: ff 76 54 pushl 0x54(%esi) <== NOT EXECUTED
124e56: e8 b9 60 fe ff call 10af14 <rtems_bdbuf_read> <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
124e5b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
124e5e: 85 c0 test %eax,%eax <== NOT EXECUTED
124e60: 75 12 jne 124e74 <fat_file_datasync+0xa0><== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EIO );
sc = rtems_bdbuf_sync(block);
124e62: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
124e65: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
124e68: e8 18 5a fe ff call 10a885 <rtems_bdbuf_sync> <== NOT EXECUTED
if ( sc != RTEMS_SUCCESSFUL )
124e6d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
124e70: 85 c0 test %eax,%eax <== NOT EXECUTED
124e72: 74 10 je 124e84 <fat_file_datasync+0xb0><== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EIO );
124e74: e8 9b 91 01 00 call 13e014 <__errno> <== NOT EXECUTED
124e79: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
124e7f: 83 cb ff or $0xffffffff,%ebx <== NOT EXECUTED
124e82: eb 3a jmp 124ebe <fat_file_datasync+0xea><== NOT EXECUTED
/* for each cluster of the file ... */
while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val)
{
sec = fat_cluster_num_to_sector_num(mt_entry, cur_cln);
/* for each sector in cluster ... */
for ( i = 0; i < fs_info->vol.spc; i++ )
124e84: ff 45 d4 incl -0x2c(%ebp) <== NOT EXECUTED
124e87: 0f b6 46 04 movzbl 0x4(%esi),%eax <== NOT EXECUTED
124e8b: 39 45 d4 cmp %eax,-0x2c(%ebp) <== NOT EXECUTED
124e8e: 72 b6 jb 124e46 <fat_file_datasync+0x72><== NOT EXECUTED
sc = rtems_bdbuf_sync(block);
if ( sc != RTEMS_SUCCESSFUL )
rtems_set_errno_and_return_minus_one( EIO );
}
rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln);
124e90: 52 push %edx <== NOT EXECUTED
124e91: 8d 55 e4 lea -0x1c(%ebp),%edx <== NOT EXECUTED
124e94: 52 push %edx <== NOT EXECUTED
124e95: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
124e98: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
124e9b: e8 51 55 01 00 call 13a3f1 <fat_get_fat_cluster> <== NOT EXECUTED
if ( rc != RC_OK )
124ea0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
124ea3: 85 c0 test %eax,%eax <== NOT EXECUTED
124ea5: 74 04 je 124eab <fat_file_datasync+0xd7><== NOT EXECUTED
124ea7: 89 c3 mov %eax,%ebx <== NOT EXECUTED
124ea9: eb 13 jmp 124ebe <fat_file_datasync+0xea><== NOT EXECUTED
rc = fat_buf_release(fs_info);
if (rc != RC_OK)
return rc;
/* for each cluster of the file ... */
while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val)
124eab: 8b 5d e4 mov -0x1c(%ebp),%ebx <== NOT EXECUTED
124eae: 8b 46 0c mov 0xc(%esi),%eax <== NOT EXECUTED
124eb1: 21 d8 and %ebx,%eax <== NOT EXECUTED
124eb3: 3b 46 10 cmp 0x10(%esi),%eax <== NOT EXECUTED
124eb6: 0f 82 60 ff ff ff jb 124e1c <fat_file_datasync+0x48><== NOT EXECUTED
124ebc: 89 fb mov %edi,%ebx <== NOT EXECUTED
rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln);
if ( rc != RC_OK )
return rc;
}
return rc;
}
124ebe: 89 d8 mov %ebx,%eax <== NOT EXECUTED
124ec0: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
124ec3: 5b pop %ebx <== NOT EXECUTED
124ec4: 5e pop %esi <== NOT EXECUTED
124ec5: 5f pop %edi <== NOT EXECUTED
124ec6: c9 leave <== NOT EXECUTED
124ec7: c3 ret <== NOT EXECUTED
00125079 <fat_file_extend>:
rtems_filesystem_mount_table_entry_t *mt_entry,
fat_file_fd_t *fat_fd,
uint32_t new_length,
uint32_t *a_length
)
{
125079: 55 push %ebp <== NOT EXECUTED
12507a: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12507c: 57 push %edi <== NOT EXECUTED
12507d: 56 push %esi <== NOT EXECUTED
12507e: 53 push %ebx <== NOT EXECUTED
12507f: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED
125082: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
125085: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
int rc = RC_OK;
fat_fs_info_t *fs_info = mt_entry->fs_info;
125088: 8b 7e 34 mov 0x34(%esi),%edi <== NOT EXECUTED
uint32_t chain = 0;
12508b: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) <== NOT EXECUTED
uint32_t bytes2add = 0;
uint32_t cls2add = 0;
uint32_t old_last_cl;
uint32_t last_cl = 0;
125092: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp) <== NOT EXECUTED
uint32_t bytes_remain = 0;
uint32_t cls_added;
*a_length = new_length;
125099: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
12509c: 8b 45 14 mov 0x14(%ebp),%eax <== NOT EXECUTED
12509f: 89 10 mov %edx,(%eax) <== NOT EXECUTED
if (new_length <= fat_fd->fat_file_size)
1250a1: 8b 43 18 mov 0x18(%ebx),%eax <== NOT EXECUTED
1250a4: 39 c2 cmp %eax,%edx <== NOT EXECUTED
1250a6: 0f 86 61 01 00 00 jbe 12520d <fat_file_extend+0x194> <== NOT EXECUTED
return RC_OK;
if ((FAT_FD_OF_ROOT_DIR(fat_fd)) &&
1250ac: 83 7b 20 01 cmpl $0x1,0x20(%ebx) <== NOT EXECUTED
1250b0: 75 0c jne 1250be <fat_file_extend+0x45> <== NOT EXECUTED
1250b2: 83 7b 24 00 cmpl $0x0,0x24(%ebx) <== NOT EXECUTED
1250b6: 75 06 jne 1250be <fat_file_extend+0x45> <== NOT EXECUTED
(fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)))
1250b8: f6 47 0a 03 testb $0x3,0xa(%edi) <== NOT EXECUTED
1250bc: 75 73 jne 125131 <fat_file_extend+0xb8> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOSPC );
bytes_remain = (fs_info->vol.bpc -
(fat_fd->fat_file_size & (fs_info->vol.bpc - 1))) &
1250be: 0f b7 4f 06 movzwl 0x6(%edi),%ecx <== NOT EXECUTED
1250c2: 8d 51 ff lea -0x1(%ecx),%edx <== NOT EXECUTED
1250c5: 89 55 d0 mov %edx,-0x30(%ebp) <== NOT EXECUTED
if ((FAT_FD_OF_ROOT_DIR(fat_fd)) &&
(fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)))
rtems_set_errno_and_return_minus_one( ENOSPC );
bytes_remain = (fs_info->vol.bpc -
1250c8: 21 c2 and %eax,%edx <== NOT EXECUTED
1250ca: 29 d1 sub %edx,%ecx <== NOT EXECUTED
1250cc: 89 4d d4 mov %ecx,-0x2c(%ebp) <== NOT EXECUTED
1250cf: 8b 55 d0 mov -0x30(%ebp),%edx <== NOT EXECUTED
1250d2: 21 55 d4 and %edx,-0x2c(%ebp) <== NOT EXECUTED
(fat_fd->fat_file_size & (fs_info->vol.bpc - 1))) &
(fs_info->vol.bpc - 1);
bytes2add = new_length - fat_fd->fat_file_size;
1250d5: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
1250d8: 29 c2 sub %eax,%edx <== NOT EXECUTED
1250da: 89 d0 mov %edx,%eax <== NOT EXECUTED
if (bytes2add > bytes_remain)
1250dc: 3b 55 d4 cmp -0x2c(%ebp),%edx <== NOT EXECUTED
1250df: 0f 86 28 01 00 00 jbe 12520d <fat_file_extend+0x194> <== NOT EXECUTED
/*
* if in last cluster allocated for the file there is enough room to
* handle extention (hence we don't need to add even one cluster to the
* file ) - return
*/
if (bytes2add == 0)
1250e5: 2b 45 d4 sub -0x2c(%ebp),%eax <== NOT EXECUTED
1250e8: 89 45 d0 mov %eax,-0x30(%ebp) <== NOT EXECUTED
1250eb: 0f 84 1c 01 00 00 je 12520d <fat_file_extend+0x194> <== NOT EXECUTED
return RC_OK;
cls2add = ((bytes2add - 1) >> fs_info->vol.bpc_log2) + 1;
1250f1: 48 dec %eax <== NOT EXECUTED
1250f2: 0f b6 4f 08 movzbl 0x8(%edi),%ecx <== NOT EXECUTED
1250f6: d3 e8 shr %cl,%eax <== NOT EXECUTED
1250f8: 8d 48 01 lea 0x1(%eax),%ecx <== NOT EXECUTED
rc = fat_scan_fat_for_free_clusters(mt_entry, &chain, cls2add,
1250fb: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1250fe: 8d 45 dc lea -0x24(%ebp),%eax <== NOT EXECUTED
125101: 50 push %eax <== NOT EXECUTED
125102: 8d 45 d8 lea -0x28(%ebp),%eax <== NOT EXECUTED
125105: 50 push %eax <== NOT EXECUTED
125106: 51 push %ecx <== NOT EXECUTED
125107: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
12510a: 50 push %eax <== NOT EXECUTED
12510b: 56 push %esi <== NOT EXECUTED
12510c: 89 4d cc mov %ecx,-0x34(%ebp) <== NOT EXECUTED
12510f: e8 f3 54 01 00 call 13a607 <fat_scan_fat_for_free_clusters><== NOT EXECUTED
&cls_added, &last_cl);
/* this means that low level I/O error occured */
if (rc != RC_OK)
125114: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
125117: 89 c2 mov %eax,%edx <== NOT EXECUTED
125119: 85 c0 test %eax,%eax <== NOT EXECUTED
12511b: 8b 4d cc mov -0x34(%ebp),%ecx <== NOT EXECUTED
12511e: 0f 85 eb 00 00 00 jne 12520f <fat_file_extend+0x196> <== NOT EXECUTED
return rc;
/* this means that no space left on device */
if ((cls_added == 0) && (bytes_remain == 0))
125124: 8b 45 d8 mov -0x28(%ebp),%eax <== NOT EXECUTED
125127: 83 7d d4 00 cmpl $0x0,-0x2c(%ebp) <== NOT EXECUTED
12512b: 75 17 jne 125144 <fat_file_extend+0xcb> <== NOT EXECUTED
12512d: 85 c0 test %eax,%eax <== NOT EXECUTED
12512f: 75 13 jne 125144 <fat_file_extend+0xcb> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(ENOSPC);
125131: e8 de 8e 01 00 call 13e014 <__errno> <== NOT EXECUTED
125136: c7 00 1c 00 00 00 movl $0x1c,(%eax) <== NOT EXECUTED
12513c: 83 ca ff or $0xffffffff,%edx <== NOT EXECUTED
12513f: e9 cb 00 00 00 jmp 12520f <fat_file_extend+0x196> <== NOT EXECUTED
/* check wether we satisfied request for 'cls2add' clusters */
if (cls2add != cls_added)
125144: 39 c1 cmp %eax,%ecx <== NOT EXECUTED
125146: 74 20 je 125168 <fat_file_extend+0xef> <== NOT EXECUTED
*a_length = new_length -
125148: f7 d0 not %eax <== NOT EXECUTED
12514a: 01 c8 add %ecx,%eax <== NOT EXECUTED
12514c: 0f b6 4f 08 movzbl 0x8(%edi),%ecx <== NOT EXECUTED
125150: d3 e0 shl %cl,%eax <== NOT EXECUTED
125152: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
125155: 29 c2 sub %eax,%edx <== NOT EXECUTED
125157: 89 d0 mov %edx,%eax <== NOT EXECUTED
125159: 0f b7 57 06 movzwl 0x6(%edi),%edx <== NOT EXECUTED
12515d: 4a dec %edx <== NOT EXECUTED
12515e: 23 55 d0 and -0x30(%ebp),%edx <== NOT EXECUTED
125161: 29 d0 sub %edx,%eax <== NOT EXECUTED
125163: 8b 55 14 mov 0x14(%ebp),%edx <== NOT EXECUTED
125166: 89 02 mov %eax,(%edx) <== NOT EXECUTED
((cls2add - cls_added - 1) << fs_info->vol.bpc_log2) -
(bytes2add & (fs_info->vol.bpc - 1));
/* add new chain to the end of existed */
if ( fat_fd->fat_file_size == 0 )
125168: 8b 43 18 mov 0x18(%ebx),%eax <== NOT EXECUTED
12516b: 85 c0 test %eax,%eax <== NOT EXECUTED
12516d: 75 12 jne 125181 <fat_file_extend+0x108> <== NOT EXECUTED
{
fat_fd->map.disk_cln = fat_fd->cln = chain;
12516f: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
125172: 89 43 1c mov %eax,0x1c(%ebx) <== NOT EXECUTED
125175: 89 43 38 mov %eax,0x38(%ebx) <== NOT EXECUTED
fat_fd->map.file_cln = 0;
125178: c7 43 34 00 00 00 00 movl $0x0,0x34(%ebx) <== NOT EXECUTED
12517f: eb 4a jmp 1251cb <fat_file_extend+0x152> <== NOT EXECUTED
}
else
{
if (fat_fd->map.last_cln != FAT_UNDEFINED_VALUE)
125181: 8b 53 3c mov 0x3c(%ebx),%edx <== NOT EXECUTED
125184: 83 fa ff cmp $0xffffffff,%edx <== NOT EXECUTED
125187: 74 05 je 12518e <fat_file_extend+0x115> <== NOT EXECUTED
{
old_last_cl = fat_fd->map.last_cln;
125189: 89 55 e0 mov %edx,-0x20(%ebp) <== NOT EXECUTED
12518c: eb 1b jmp 1251a9 <fat_file_extend+0x130> <== NOT EXECUTED
}
else
{
rc = fat_file_ioctl(mt_entry, fat_fd, F_CLU_NUM,
12518e: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
125191: 8d 55 e0 lea -0x20(%ebp),%edx <== NOT EXECUTED
125194: 52 push %edx <== NOT EXECUTED
125195: 48 dec %eax <== NOT EXECUTED
125196: 50 push %eax <== NOT EXECUTED
125197: 6a 01 push $0x1 <== NOT EXECUTED
125199: 53 push %ebx <== NOT EXECUTED
12519a: 56 push %esi <== NOT EXECUTED
12519b: e8 76 fd ff ff call 124f16 <fat_file_ioctl> <== NOT EXECUTED
1251a0: 89 c2 mov %eax,%edx <== NOT EXECUTED
(fat_fd->fat_file_size - 1), &old_last_cl);
if ( rc != RC_OK )
1251a2: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
1251a5: 85 c0 test %eax,%eax <== NOT EXECUTED
1251a7: 75 48 jne 1251f1 <fat_file_extend+0x178> <== NOT EXECUTED
fat_free_fat_clusters_chain(mt_entry, chain);
return rc;
}
}
rc = fat_set_fat_cluster(mt_entry, old_last_cl, chain);
1251a9: 50 push %eax <== NOT EXECUTED
1251aa: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
1251ad: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
1251b0: 56 push %esi <== NOT EXECUTED
1251b1: e8 22 50 01 00 call 13a1d8 <fat_set_fat_cluster> <== NOT EXECUTED
1251b6: 89 c2 mov %eax,%edx <== NOT EXECUTED
if ( rc != RC_OK )
1251b8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1251bb: 85 c0 test %eax,%eax <== NOT EXECUTED
1251bd: 75 32 jne 1251f1 <fat_file_extend+0x178> <== NOT EXECUTED
{
fat_free_fat_clusters_chain(mt_entry, chain);
return rc;
}
fat_buf_release(fs_info);
1251bf: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1251c2: 57 push %edi <== NOT EXECUTED
1251c3: e8 97 07 00 00 call 12595f <fat_buf_release> <== NOT EXECUTED
1251c8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
/* update number of the last cluster of the file if it changed */
if (cls_added != 0)
1251cb: 83 7d d8 00 cmpl $0x0,-0x28(%ebp) <== NOT EXECUTED
1251cf: 74 36 je 125207 <fat_file_extend+0x18e> <== NOT EXECUTED
{
fat_fd->map.last_cln = last_cl;
1251d1: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED
1251d4: 89 43 3c mov %eax,0x3c(%ebx) <== NOT EXECUTED
if (fat_fd->fat_file_type == FAT_DIRECTORY)
1251d7: 83 7b 10 01 cmpl $0x1,0x10(%ebx) <== NOT EXECUTED
1251db: 75 2a jne 125207 <fat_file_extend+0x18e> <== NOT EXECUTED
{
rc = fat_init_clusters_chain(mt_entry, chain);
1251dd: 57 push %edi <== NOT EXECUTED
1251de: 57 push %edi <== NOT EXECUTED
1251df: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
1251e2: 56 push %esi <== NOT EXECUTED
1251e3: e8 df 0c 00 00 call 125ec7 <fat_init_clusters_chain><== NOT EXECUTED
1251e8: 89 c2 mov %eax,%edx <== NOT EXECUTED
if ( rc != RC_OK )
1251ea: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1251ed: 85 c0 test %eax,%eax <== NOT EXECUTED
1251ef: 74 16 je 125207 <fat_file_extend+0x18e> <== NOT EXECUTED
{
fat_free_fat_clusters_chain(mt_entry, chain);
1251f1: 53 push %ebx <== NOT EXECUTED
1251f2: 53 push %ebx <== NOT EXECUTED
1251f3: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
1251f6: 56 push %esi <== NOT EXECUTED
1251f7: 89 55 cc mov %edx,-0x34(%ebp) <== NOT EXECUTED
1251fa: e8 5c 53 01 00 call 13a55b <fat_free_fat_clusters_chain><== NOT EXECUTED
return rc;
1251ff: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
125202: 8b 55 cc mov -0x34(%ebp),%edx <== NOT EXECUTED
125205: eb 08 jmp 12520f <fat_file_extend+0x196> <== NOT EXECUTED
}
}
}
fat_fd->fat_file_size = new_length;
125207: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
12520a: 89 43 18 mov %eax,0x18(%ebx) <== NOT EXECUTED
return RC_OK;
12520d: 31 d2 xor %edx,%edx <== NOT EXECUTED
}
12520f: 89 d0 mov %edx,%eax <== NOT EXECUTED
125211: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
125214: 5b pop %ebx <== NOT EXECUTED
125215: 5e pop %esi <== NOT EXECUTED
125216: 5f pop %edi <== NOT EXECUTED
125217: c9 leave <== NOT EXECUTED
125218: c3 ret <== NOT EXECUTED
00124f16 <fat_file_ioctl>:
fat_file_ioctl(
rtems_filesystem_mount_table_entry_t *mt_entry,
fat_file_fd_t *fat_fd,
int cmd,
...)
{
124f16: 55 push %ebp <== NOT EXECUTED
124f17: 89 e5 mov %esp,%ebp <== NOT EXECUTED
124f19: 56 push %esi <== NOT EXECUTED
124f1a: 53 push %ebx <== NOT EXECUTED
124f1b: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED
124f1e: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
124f21: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
int rc = RC_OK;
fat_fs_info_t *fs_info = mt_entry->fs_info;
124f24: 8b 48 34 mov 0x34(%eax),%ecx <== NOT EXECUTED
uint32_t cur_cln = 0;
124f27: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) <== NOT EXECUTED
uint32_t *ret;
va_list ap;
va_start(ap, cmd);
switch (cmd)
124f2e: 83 7d 10 01 cmpl $0x1,0x10(%ebp) <== NOT EXECUTED
124f32: 75 56 jne 124f8a <fat_file_ioctl+0x74> <== NOT EXECUTED
{
case F_CLU_NUM:
pos = va_arg(ap, uint32_t );
124f34: 8b 75 14 mov 0x14(%ebp),%esi <== NOT EXECUTED
ret = va_arg(ap, uint32_t *);
124f37: 8b 5d 18 mov 0x18(%ebp),%ebx <== NOT EXECUTED
/* sanity check */
if ( pos >= fat_fd->fat_file_size )
124f3a: 3b 72 18 cmp 0x18(%edx),%esi <== NOT EXECUTED
124f3d: 72 0d jb 124f4c <fat_file_ioctl+0x36> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EIO );
124f3f: e8 d0 90 01 00 call 13e014 <__errno> <== NOT EXECUTED
124f44: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
124f4a: eb 49 jmp 124f95 <fat_file_ioctl+0x7f> <== NOT EXECUTED
if ((FAT_FD_OF_ROOT_DIR(fat_fd)) &&
124f4c: 83 7a 20 01 cmpl $0x1,0x20(%edx) <== NOT EXECUTED
124f50: 75 16 jne 124f68 <fat_file_ioctl+0x52> <== NOT EXECUTED
124f52: 83 7a 24 00 cmpl $0x0,0x24(%edx) <== NOT EXECUTED
124f56: 75 10 jne 124f68 <fat_file_ioctl+0x52> <== NOT EXECUTED
(fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)))
124f58: f6 41 0a 03 testb $0x3,0xa(%ecx) <== NOT EXECUTED
124f5c: 74 0a je 124f68 <fat_file_ioctl+0x52> <== NOT EXECUTED
{
/* cluster 0 (zero) reserved for root dir */
*ret = 0;
124f5e: c7 03 00 00 00 00 movl $0x0,(%ebx) <== NOT EXECUTED
124f64: 31 c0 xor %eax,%eax <== NOT EXECUTED
return RC_OK;
124f66: eb 30 jmp 124f98 <fat_file_ioctl+0x82> <== NOT EXECUTED
}
cl_start = pos >> fs_info->vol.bpc_log2;
rc = fat_file_lseek(mt_entry, fat_fd, cl_start, &cur_cln);
124f68: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
124f6b: 0f b6 49 08 movzbl 0x8(%ecx),%ecx <== NOT EXECUTED
124f6f: d3 ee shr %cl,%esi <== NOT EXECUTED
124f71: 89 f1 mov %esi,%ecx <== NOT EXECUTED
124f73: 8d 75 f4 lea -0xc(%ebp),%esi <== NOT EXECUTED
124f76: 56 push %esi <== NOT EXECUTED
124f77: e8 db fd ff ff call 124d57 <fat_file_lseek> <== NOT EXECUTED
if ( rc != RC_OK )
124f7c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
124f7f: 85 c0 test %eax,%eax <== NOT EXECUTED
124f81: 75 15 jne 124f98 <fat_file_ioctl+0x82> <== NOT EXECUTED
return rc;
*ret = cur_cln;
124f83: 8b 55 f4 mov -0xc(%ebp),%edx <== NOT EXECUTED
124f86: 89 13 mov %edx,(%ebx) <== NOT EXECUTED
break;
124f88: eb 0e jmp 124f98 <fat_file_ioctl+0x82> <== NOT EXECUTED
default:
errno = EINVAL;
124f8a: e8 85 90 01 00 call 13e014 <__errno> <== NOT EXECUTED
124f8f: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
124f95: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
rc = -1;
break;
}
return rc;
}
124f98: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
124f9b: 5b pop %ebx <== NOT EXECUTED
124f9c: 5e pop %esi <== NOT EXECUTED
124f9d: c9 leave <== NOT EXECUTED
124f9e: c3 ret <== NOT EXECUTED
00124d57 <fat_file_lseek>:
rtems_filesystem_mount_table_entry_t *mt_entry,
fat_file_fd_t *fat_fd,
uint32_t file_cln,
uint32_t *disk_cln
)
{
124d57: 55 push %ebp <== NOT EXECUTED
124d58: 89 e5 mov %esp,%ebp <== NOT EXECUTED
124d5a: 57 push %edi <== NOT EXECUTED
124d5b: 56 push %esi <== NOT EXECUTED
124d5c: 53 push %ebx <== NOT EXECUTED
124d5d: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED
124d60: 89 45 d4 mov %eax,-0x2c(%ebp) <== NOT EXECUTED
124d63: 89 d3 mov %edx,%ebx <== NOT EXECUTED
124d65: 89 ce mov %ecx,%esi <== NOT EXECUTED
int rc = RC_OK;
if (file_cln == fat_fd->map.file_cln)
124d67: 8b 52 34 mov 0x34(%edx),%edx <== NOT EXECUTED
124d6a: 39 d1 cmp %edx,%ecx <== NOT EXECUTED
124d6c: 75 05 jne 124d73 <fat_file_lseek+0x1c> <== NOT EXECUTED
*disk_cln = fat_fd->map.disk_cln;
124d6e: 8b 43 38 mov 0x38(%ebx),%eax <== NOT EXECUTED
124d71: eb 50 jmp 124dc3 <fat_file_lseek+0x6c> <== NOT EXECUTED
{
uint32_t cur_cln;
uint32_t count;
uint32_t i;
if (file_cln > fat_fd->map.file_cln)
124d73: 76 0e jbe 124d83 <fat_file_lseek+0x2c> <== NOT EXECUTED
{
cur_cln = fat_fd->map.disk_cln;
124d75: 8b 43 38 mov 0x38(%ebx),%eax <== NOT EXECUTED
124d78: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
count = file_cln - fat_fd->map.file_cln;
124d7b: 89 c8 mov %ecx,%eax <== NOT EXECUTED
124d7d: 29 d0 sub %edx,%eax <== NOT EXECUTED
124d7f: 89 c2 mov %eax,%edx <== NOT EXECUTED
124d81: eb 08 jmp 124d8b <fat_file_lseek+0x34> <== NOT EXECUTED
}
else
{
cur_cln = fat_fd->cln;
124d83: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
124d86: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
124d89: 89 ca mov %ecx,%edx <== NOT EXECUTED
124d8b: 31 ff xor %edi,%edi <== NOT EXECUTED
}
/* skip over the clusters */
for (i = 0; i < count; i++)
{
rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln);
124d8d: 8d 4d e4 lea -0x1c(%ebp),%ecx <== NOT EXECUTED
cur_cln = fat_fd->cln;
count = file_cln;
}
/* skip over the clusters */
for (i = 0; i < count; i++)
124d90: eb 24 jmp 124db6 <fat_file_lseek+0x5f> <== NOT EXECUTED
{
rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln);
124d92: 50 push %eax <== NOT EXECUTED
124d93: 51 push %ecx <== NOT EXECUTED
124d94: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
124d97: ff 75 d4 pushl -0x2c(%ebp) <== NOT EXECUTED
124d9a: 89 55 cc mov %edx,-0x34(%ebp) <== NOT EXECUTED
124d9d: 89 4d d0 mov %ecx,-0x30(%ebp) <== NOT EXECUTED
124da0: e8 4c 56 01 00 call 13a3f1 <fat_get_fat_cluster> <== NOT EXECUTED
if ( rc != RC_OK )
124da5: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
124da8: 85 c0 test %eax,%eax <== NOT EXECUTED
124daa: 8b 55 cc mov -0x34(%ebp),%edx <== NOT EXECUTED
124dad: 8b 4d d0 mov -0x30(%ebp),%ecx <== NOT EXECUTED
124db0: 74 03 je 124db5 <fat_file_lseek+0x5e> <== NOT EXECUTED
return rc;
124db2: 99 cltd <== NOT EXECUTED
124db3: eb 17 jmp 124dcc <fat_file_lseek+0x75> <== NOT EXECUTED
cur_cln = fat_fd->cln;
count = file_cln;
}
/* skip over the clusters */
for (i = 0; i < count; i++)
124db5: 47 inc %edi <== NOT EXECUTED
124db6: 39 d7 cmp %edx,%edi <== NOT EXECUTED
124db8: 72 d8 jb 124d92 <fat_file_lseek+0x3b> <== NOT EXECUTED
if ( rc != RC_OK )
return rc;
}
/* update cache */
fat_fd->map.file_cln = file_cln;
124dba: 89 73 34 mov %esi,0x34(%ebx) <== NOT EXECUTED
fat_fd->map.disk_cln = cur_cln;
124dbd: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
124dc0: 89 43 38 mov %eax,0x38(%ebx) <== NOT EXECUTED
*disk_cln = cur_cln;
124dc3: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
124dc6: 89 02 mov %eax,(%edx) <== NOT EXECUTED
124dc8: 31 c0 xor %eax,%eax <== NOT EXECUTED
124dca: 31 d2 xor %edx,%edx <== NOT EXECUTED
}
return RC_OK;
}
124dcc: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
124dcf: 5b pop %ebx <== NOT EXECUTED
124dd0: 5e pop %esi <== NOT EXECUTED
124dd1: 5f pop %edi <== NOT EXECUTED
124dd2: c9 leave <== NOT EXECUTED
124dd3: c3 ret <== NOT EXECUTED
00124ec8 <fat_file_mark_removed>:
void
fat_file_mark_removed(
rtems_filesystem_mount_table_entry_t *mt_entry,
fat_file_fd_t *fat_fd
)
{
124ec8: 55 push %ebp <== NOT EXECUTED
124ec9: 89 e5 mov %esp,%ebp <== NOT EXECUTED
124ecb: 57 push %edi <== NOT EXECUTED
124ecc: 56 push %esi <== NOT EXECUTED
124ecd: 53 push %ebx <== NOT EXECUTED
124ece: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
124ed1: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
fat_fs_info_t *fs_info = mt_entry->fs_info;
124ed4: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
124ed7: 8b 70 34 mov 0x34(%eax),%esi <== NOT EXECUTED
static inline uint32_t
fat_construct_key(
rtems_filesystem_mount_table_entry_t *mt_entry,
fat_pos_t *pos)
{
return ( ((fat_cluster_num_to_sector512_num(mt_entry, pos->cln) +
124eda: 8b 43 20 mov 0x20(%ebx),%eax <== NOT EXECUTED
uint32_t cln
)
{
fat_fs_info_t *fs_info = mt_entry->fs_info;
if (cln == 1)
124edd: 83 f8 01 cmp $0x1,%eax <== NOT EXECUTED
124ee0: 74 02 je 124ee4 <fat_file_mark_removed+0x1c><== NOT EXECUTED
uint32_t cln
)
{
register fat_fs_info_t *fs_info = mt_entry->fs_info;
if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) )
124ee2: 85 c0 test %eax,%eax <== NOT EXECUTED
(pos->ofs >> FAT_SECTOR512_BITS)) << 4) +
124ee4: 8b 7b 24 mov 0x24(%ebx),%edi <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void rtems_chain_extract(
rtems_chain_node *the_node
)
{
_Chain_Extract( the_node );
124ee7: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
124eea: 53 push %ebx <== NOT EXECUTED
124eeb: e8 a8 c7 fe ff call 111698 <_Chain_Extract> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void rtems_chain_append(
rtems_chain_control *the_chain,
rtems_chain_node *the_node
)
{
_Chain_Append( the_chain, the_node );
124ef0: 59 pop %ecx <== NOT EXECUTED
124ef1: 58 pop %eax <== NOT EXECUTED
124ef2: 53 push %ebx <== NOT EXECUTED
124ef3: 89 f8 mov %edi,%eax <== NOT EXECUTED
124ef5: c1 e8 05 shr $0x5,%eax <== NOT EXECUTED
124ef8: 83 e0 01 and $0x1,%eax <== NOT EXECUTED
124efb: 6b c0 0c imul $0xc,%eax,%eax <== NOT EXECUTED
124efe: 03 46 68 add 0x68(%esi),%eax <== NOT EXECUTED
124f01: 50 push %eax <== NOT EXECUTED
124f02: e8 6d c7 fe ff call 111674 <_Chain_Append> <== NOT EXECUTED
_hash_delete(fs_info->vhash, key, fat_fd->ino, fat_fd);
_hash_insert(fs_info->rhash, key, fat_fd->ino, fat_fd);
fat_fd->flags |= FAT_FILE_REMOVED;
124f07: 80 4b 30 01 orb $0x1,0x30(%ebx) <== NOT EXECUTED
124f0b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
124f0e: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
124f11: 5b pop %ebx <== NOT EXECUTED
124f12: 5e pop %esi <== NOT EXECUTED
124f13: 5f pop %edi <== NOT EXECUTED
124f14: c9 leave <== NOT EXECUTED
124f15: c3 ret <== NOT EXECUTED
0012567c <fat_file_open>:
fat_file_open(
rtems_filesystem_mount_table_entry_t *mt_entry,
fat_dir_pos_t *dir_pos,
fat_file_fd_t **fat_fd
)
{
12567c: 55 push %ebp <== NOT EXECUTED
12567d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12567f: 57 push %edi <== NOT EXECUTED
125680: 56 push %esi <== NOT EXECUTED
125681: 53 push %ebx <== NOT EXECUTED
125682: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
125685: 8b 75 0c mov 0xc(%ebp),%esi <== NOT EXECUTED
int rc = RC_OK;
fat_fs_info_t *fs_info = mt_entry->fs_info;
125688: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
12568b: 8b 58 34 mov 0x34(%eax),%ebx <== NOT EXECUTED
static inline uint32_t
fat_construct_key(
rtems_filesystem_mount_table_entry_t *mt_entry,
fat_pos_t *pos)
{
return ( ((fat_cluster_num_to_sector512_num(mt_entry, pos->cln) +
12568e: 8b 06 mov (%esi),%eax <== NOT EXECUTED
uint32_t cln
)
{
fat_fs_info_t *fs_info = mt_entry->fs_info;
if (cln == 1)
125690: b9 01 00 00 00 mov $0x1,%ecx <== NOT EXECUTED
125695: 83 f8 01 cmp $0x1,%eax <== NOT EXECUTED
125698: 74 23 je 1256bd <fat_file_open+0x41> <== NOT EXECUTED
uint32_t cln
)
{
register fat_fs_info_t *fs_info = mt_entry->fs_info;
if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) )
12569a: 85 c0 test %eax,%eax <== NOT EXECUTED
12569c: 75 0b jne 1256a9 <fat_file_open+0x2d> <== NOT EXECUTED
12569e: f6 43 0a 03 testb $0x3,0xa(%ebx) <== NOT EXECUTED
1256a2: 74 05 je 1256a9 <fat_file_open+0x2d> <== NOT EXECUTED
return fs_info->vol.rdir_loc;
1256a4: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
1256a7: eb 0c jmp 1256b5 <fat_file_open+0x39> <== NOT EXECUTED
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
1256a9: 83 e8 02 sub $0x2,%eax <== NOT EXECUTED
1256ac: 0f b6 4b 05 movzbl 0x5(%ebx),%ecx <== NOT EXECUTED
1256b0: d3 e0 shl %cl,%eax <== NOT EXECUTED
1256b2: 03 43 30 add 0x30(%ebx),%eax <== NOT EXECUTED
fat_fs_info_t *fs_info = mt_entry->fs_info;
if (cln == 1)
return 1;
return (fat_cluster_num_to_sector_num(mt_entry, cln) <<
1256b5: 0f b6 4b 03 movzbl 0x3(%ebx),%ecx <== NOT EXECUTED
1256b9: d3 e0 shl %cl,%eax <== NOT EXECUTED
1256bb: 89 c1 mov %eax,%ecx <== NOT EXECUTED
(pos->ofs >> FAT_SECTOR512_BITS)) << 4) +
1256bd: 8b 56 04 mov 0x4(%esi),%edx <== NOT EXECUTED
static inline uint32_t
fat_construct_key(
rtems_filesystem_mount_table_entry_t *mt_entry,
fat_pos_t *pos)
{
return ( ((fat_cluster_num_to_sector512_num(mt_entry, pos->cln) +
1256c0: 89 d0 mov %edx,%eax <== NOT EXECUTED
1256c2: c1 e8 09 shr $0x9,%eax <== NOT EXECUTED
1256c5: 8d 04 01 lea (%ecx,%eax,1),%eax <== NOT EXECUTED
1256c8: c1 e0 04 shl $0x4,%eax <== NOT EXECUTED
1256cb: c1 ea 05 shr $0x5,%edx <== NOT EXECUTED
1256ce: 83 e2 0f and $0xf,%edx <== NOT EXECUTED
1256d1: 8d 14 10 lea (%eax,%edx,1),%edx <== NOT EXECUTED
1256d4: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED
uint32_t key2,
fat_file_fd_t **ret
)
{
uint32_t mod = (key1) % FAT_HASH_MODULE;
rtems_chain_node *the_node = ((rtems_chain_control *)((hash) + mod))->first;
1256d7: 89 d0 mov %edx,%eax <== NOT EXECUTED
1256d9: 83 e0 01 and $0x1,%eax <== NOT EXECUTED
1256dc: 6b c0 0c imul $0xc,%eax,%eax <== NOT EXECUTED
1256df: 89 45 dc mov %eax,-0x24(%ebp) <== NOT EXECUTED
1256e2: 8b 53 64 mov 0x64(%ebx),%edx <== NOT EXECUTED
1256e5: 01 c2 add %eax,%edx <== NOT EXECUTED
1256e7: 8b 02 mov (%edx),%eax <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
1256e9: 83 c2 04 add $0x4,%edx <== NOT EXECUTED
1256ec: 89 55 e0 mov %edx,-0x20(%ebp) <== NOT EXECUTED
1256ef: eb 5c jmp 12574d <fat_file_open+0xd1> <== NOT EXECUTED
1256f1: 8b 50 20 mov 0x20(%eax),%edx <== NOT EXECUTED
uint32_t cln
)
{
fat_fs_info_t *fs_info = mt_entry->fs_info;
if (cln == 1)
1256f4: b9 01 00 00 00 mov $0x1,%ecx <== NOT EXECUTED
1256f9: 83 fa 01 cmp $0x1,%edx <== NOT EXECUTED
1256fc: 74 23 je 125721 <fat_file_open+0xa5> <== NOT EXECUTED
uint32_t cln
)
{
register fat_fs_info_t *fs_info = mt_entry->fs_info;
if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) )
1256fe: 85 d2 test %edx,%edx <== NOT EXECUTED
125700: 75 0b jne 12570d <fat_file_open+0x91> <== NOT EXECUTED
125702: f6 43 0a 03 testb $0x3,0xa(%ebx) <== NOT EXECUTED
125706: 74 05 je 12570d <fat_file_open+0x91> <== NOT EXECUTED
return fs_info->vol.rdir_loc;
125708: 8b 53 1c mov 0x1c(%ebx),%edx <== NOT EXECUTED
12570b: eb 0c jmp 125719 <fat_file_open+0x9d> <== NOT EXECUTED
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
12570d: 83 ea 02 sub $0x2,%edx <== NOT EXECUTED
125710: 0f b6 4b 05 movzbl 0x5(%ebx),%ecx <== NOT EXECUTED
125714: d3 e2 shl %cl,%edx <== NOT EXECUTED
125716: 03 53 30 add 0x30(%ebx),%edx <== NOT EXECUTED
fat_fs_info_t *fs_info = mt_entry->fs_info;
if (cln == 1)
return 1;
return (fat_cluster_num_to_sector_num(mt_entry, cln) <<
125719: 0f b6 4b 03 movzbl 0x3(%ebx),%ecx <== NOT EXECUTED
12571d: d3 e2 shl %cl,%edx <== NOT EXECUTED
12571f: 89 d1 mov %edx,%ecx <== NOT EXECUTED
(pos->ofs >> FAT_SECTOR512_BITS)) << 4) +
125721: 8b 78 24 mov 0x24(%eax),%edi <== NOT EXECUTED
for ( ; !rtems_chain_is_tail((hash) + mod, the_node) ; )
{
fat_file_fd_t *ffd = (fat_file_fd_t *)the_node;
uint32_t ck = fat_construct_key(mt_entry, &ffd->dir_pos.sname);
if ( (key1) == ck)
125724: 89 fa mov %edi,%edx <== NOT EXECUTED
125726: c1 ea 09 shr $0x9,%edx <== NOT EXECUTED
125729: 8d 14 11 lea (%ecx,%edx,1),%edx <== NOT EXECUTED
12572c: c1 e2 04 shl $0x4,%edx <== NOT EXECUTED
12572f: c1 ef 05 shr $0x5,%edi <== NOT EXECUTED
125732: 83 e7 0f and $0xf,%edi <== NOT EXECUTED
125735: 01 fa add %edi,%edx <== NOT EXECUTED
125737: 39 55 e4 cmp %edx,-0x1c(%ebp) <== NOT EXECUTED
12573a: 75 0f jne 12574b <fat_file_open+0xcf> <== NOT EXECUTED
/* access "valid" hash table */
rc = _hash_search(mt_entry, fs_info->vhash, key, 0, &lfat_fd);
if ( rc == RC_OK )
{
/* return pointer to fat_file_descriptor allocated before */
(*fat_fd) = lfat_fd;
12573c: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
12573f: 89 02 mov %eax,(%edx) <== NOT EXECUTED
lfat_fd->links_num++;
125741: ff 40 08 incl 0x8(%eax) <== NOT EXECUTED
125744: 31 c0 xor %eax,%eax <== NOT EXECUTED
return rc;
125746: e9 22 01 00 00 jmp 12586d <fat_file_open+0x1f1> <== NOT EXECUTED
{
*ret = (void *)the_node;
return 0;
}
}
the_node = the_node->next;
12574b: 8b 00 mov (%eax),%eax <== NOT EXECUTED
)
{
uint32_t mod = (key1) % FAT_HASH_MODULE;
rtems_chain_node *the_node = ((rtems_chain_control *)((hash) + mod))->first;
for ( ; !rtems_chain_is_tail((hash) + mod, the_node) ; )
12574d: 3b 45 e0 cmp -0x20(%ebp),%eax <== NOT EXECUTED
125750: 75 9f jne 1256f1 <fat_file_open+0x75> <== NOT EXECUTED
125752: e9 1e 01 00 00 jmp 125875 <fat_file_open+0x1f9> <== NOT EXECUTED
static inline uint32_t
fat_construct_key(
rtems_filesystem_mount_table_entry_t *mt_entry,
fat_pos_t *pos)
{
return ( ((fat_cluster_num_to_sector512_num(mt_entry, pos->cln) +
125757: 8b 50 20 mov 0x20(%eax),%edx <== NOT EXECUTED
uint32_t cln
)
{
fat_fs_info_t *fs_info = mt_entry->fs_info;
if (cln == 1)
12575a: b9 01 00 00 00 mov $0x1,%ecx <== NOT EXECUTED
12575f: 83 fa 01 cmp $0x1,%edx <== NOT EXECUTED
125762: 74 23 je 125787 <fat_file_open+0x10b> <== NOT EXECUTED
uint32_t cln
)
{
register fat_fs_info_t *fs_info = mt_entry->fs_info;
if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) )
125764: 85 d2 test %edx,%edx <== NOT EXECUTED
125766: 75 0b jne 125773 <fat_file_open+0xf7> <== NOT EXECUTED
125768: f6 43 0a 03 testb $0x3,0xa(%ebx) <== NOT EXECUTED
12576c: 74 05 je 125773 <fat_file_open+0xf7> <== NOT EXECUTED
return fs_info->vol.rdir_loc;
12576e: 8b 53 1c mov 0x1c(%ebx),%edx <== NOT EXECUTED
125771: eb 0c jmp 12577f <fat_file_open+0x103> <== NOT EXECUTED
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
125773: 83 ea 02 sub $0x2,%edx <== NOT EXECUTED
125776: 0f b6 4b 05 movzbl 0x5(%ebx),%ecx <== NOT EXECUTED
12577a: d3 e2 shl %cl,%edx <== NOT EXECUTED
12577c: 03 53 30 add 0x30(%ebx),%edx <== NOT EXECUTED
fat_fs_info_t *fs_info = mt_entry->fs_info;
if (cln == 1)
return 1;
return (fat_cluster_num_to_sector_num(mt_entry, cln) <<
12577f: 0f b6 4b 03 movzbl 0x3(%ebx),%ecx <== NOT EXECUTED
125783: d3 e2 shl %cl,%edx <== NOT EXECUTED
125785: 89 d1 mov %edx,%ecx <== NOT EXECUTED
(pos->ofs >> FAT_SECTOR512_BITS)) << 4) +
125787: 8b 78 24 mov 0x24(%eax),%edi <== NOT EXECUTED
{
fat_file_fd_t *ffd = (fat_file_fd_t *)the_node;
uint32_t ck = fat_construct_key(mt_entry, &ffd->dir_pos.sname);
if ( (key1) == ck)
12578a: 89 fa mov %edi,%edx <== NOT EXECUTED
12578c: c1 ea 09 shr $0x9,%edx <== NOT EXECUTED
12578f: 8d 14 11 lea (%ecx,%edx,1),%edx <== NOT EXECUTED
125792: c1 e2 04 shl $0x4,%edx <== NOT EXECUTED
125795: c1 ef 05 shr $0x5,%edi <== NOT EXECUTED
125798: 83 e7 0f and $0xf,%edi <== NOT EXECUTED
12579b: 01 fa add %edi,%edx <== NOT EXECUTED
12579d: 39 55 e4 cmp %edx,-0x1c(%ebp) <== NOT EXECUTED
1257a0: 75 0e jne 1257b0 <fat_file_open+0x134> <== NOT EXECUTED
{
if ( ((key2) == 0) || ((key2) == ffd->ino) )
1257a2: 83 7d e4 00 cmpl $0x0,-0x1c(%ebp) <== NOT EXECUTED
1257a6: 74 18 je 1257c0 <fat_file_open+0x144> <== NOT EXECUTED
1257a8: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
1257ab: 3b 50 0c cmp 0xc(%eax),%edx <== NOT EXECUTED
1257ae: 74 10 je 1257c0 <fat_file_open+0x144> <== NOT EXECUTED
{
*ret = (void *)the_node;
return 0;
}
}
the_node = the_node->next;
1257b0: 8b 00 mov (%eax),%eax <== NOT EXECUTED
)
{
uint32_t mod = (key1) % FAT_HASH_MODULE;
rtems_chain_node *the_node = ((rtems_chain_control *)((hash) + mod))->first;
for ( ; !rtems_chain_is_tail((hash) + mod, the_node) ; )
1257b2: 3b 45 e0 cmp -0x20(%ebp),%eax <== NOT EXECUTED
1257b5: 75 a0 jne 125757 <fat_file_open+0xdb> <== NOT EXECUTED
1257b7: c7 45 e0 ff ff ff ff movl $0xffffffff,-0x20(%ebp) <== NOT EXECUTED
1257be: eb 07 jmp 1257c7 <fat_file_open+0x14b> <== NOT EXECUTED
1257c0: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp) <== NOT EXECUTED
}
/* access "removed-but-still-open" hash table */
rc = _hash_search(mt_entry, fs_info->rhash, key, key, &lfat_fd);
lfat_fd = (*fat_fd) = (fat_file_fd_t*)malloc(sizeof(fat_file_fd_t));
1257c7: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1257ca: 6a 44 push $0x44 <== NOT EXECUTED
1257cc: e8 17 7c fe ff call 10d3e8 <malloc> <== NOT EXECUTED
1257d1: 89 c2 mov %eax,%edx <== NOT EXECUTED
1257d3: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
1257d6: 89 10 mov %edx,(%eax) <== NOT EXECUTED
if ( lfat_fd == NULL )
1257d8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1257db: 85 d2 test %edx,%edx <== NOT EXECUTED
1257dd: 75 10 jne 1257ef <fat_file_open+0x173> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOMEM );
1257df: e8 30 88 01 00 call 13e014 <__errno> <== NOT EXECUTED
1257e4: c7 00 0c 00 00 00 movl $0xc,(%eax) <== NOT EXECUTED
1257ea: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
1257ed: eb 7e jmp 12586d <fat_file_open+0x1f1> <== NOT EXECUTED
memset(lfat_fd, 0, sizeof(fat_file_fd_t));
1257ef: b9 11 00 00 00 mov $0x11,%ecx <== NOT EXECUTED
1257f4: 31 c0 xor %eax,%eax <== NOT EXECUTED
1257f6: 89 d7 mov %edx,%edi <== NOT EXECUTED
1257f8: f3 ab rep stos %eax,%es:(%edi) <== NOT EXECUTED
lfat_fd->links_num = 1;
1257fa: c7 42 08 01 00 00 00 movl $0x1,0x8(%edx) <== NOT EXECUTED
lfat_fd->flags &= ~FAT_FILE_REMOVED;
125801: 80 62 30 fe andb $0xfe,0x30(%edx) <== NOT EXECUTED
lfat_fd->map.last_cln = FAT_UNDEFINED_VALUE;
125805: c7 42 3c ff ff ff ff movl $0xffffffff,0x3c(%edx) <== NOT EXECUTED
lfat_fd->dir_pos = *dir_pos;
12580c: 8d 7a 20 lea 0x20(%edx),%edi <== NOT EXECUTED
12580f: b1 04 mov $0x4,%cl <== NOT EXECUTED
125811: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED
if ( rc != RC_OK )
125813: 83 7d e0 00 cmpl $0x0,-0x20(%ebp) <== NOT EXECUTED
125817: 74 08 je 125821 <fat_file_open+0x1a5> <== NOT EXECUTED
lfat_fd->ino = key;
125819: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
12581c: 89 42 0c mov %eax,0xc(%edx) <== NOT EXECUTED
12581f: eb 38 jmp 125859 <fat_file_open+0x1dd> <== NOT EXECUTED
else
{
lfat_fd->ino = fat_get_unique_ino(mt_entry);
125821: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
125824: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
125827: 89 55 d8 mov %edx,-0x28(%ebp) <== NOT EXECUTED
12582a: e8 94 00 00 00 call 1258c3 <fat_get_unique_ino> <== NOT EXECUTED
12582f: 8b 55 d8 mov -0x28(%ebp),%edx <== NOT EXECUTED
125832: 89 42 0c mov %eax,0xc(%edx) <== NOT EXECUTED
if ( lfat_fd->ino == 0 )
125835: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
125838: 85 c0 test %eax,%eax <== NOT EXECUTED
12583a: 75 1d jne 125859 <fat_file_open+0x1dd> <== NOT EXECUTED
{
free((*fat_fd));
12583c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12583f: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
125842: ff 32 pushl (%edx) <== NOT EXECUTED
125844: e8 53 76 fe ff call 10ce9c <free> <== NOT EXECUTED
/*
* XXX: kernel resource is unsufficient, but not the memory,
* but there is no suitable errno :(
*/
rtems_set_errno_and_return_minus_one( ENOMEM );
125849: e8 c6 87 01 00 call 13e014 <__errno> <== NOT EXECUTED
12584e: c7 00 0c 00 00 00 movl $0xc,(%eax) <== NOT EXECUTED
125854: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
125857: eb 11 jmp 12586a <fat_file_open+0x1ee> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void rtems_chain_append(
rtems_chain_control *the_chain,
rtems_chain_node *the_node
)
{
_Chain_Append( the_chain, the_node );
125859: 51 push %ecx <== NOT EXECUTED
12585a: 51 push %ecx <== NOT EXECUTED
12585b: 52 push %edx <== NOT EXECUTED
12585c: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED
12585f: 03 43 64 add 0x64(%ebx),%eax <== NOT EXECUTED
125862: 50 push %eax <== NOT EXECUTED
125863: e8 0c be fe ff call 111674 <_Chain_Append> <== NOT EXECUTED
125868: 31 c0 xor %eax,%eax <== NOT EXECUTED
/*
* other fields of fat-file descriptor will be initialized on upper
* level
*/
return RC_OK;
12586a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
12586d: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
125870: 5b pop %ebx <== NOT EXECUTED
125871: 5e pop %esi <== NOT EXECUTED
125872: 5f pop %edi <== NOT EXECUTED
125873: c9 leave <== NOT EXECUTED
125874: c3 ret <== NOT EXECUTED
uint32_t key2,
fat_file_fd_t **ret
)
{
uint32_t mod = (key1) % FAT_HASH_MODULE;
rtems_chain_node *the_node = ((rtems_chain_control *)((hash) + mod))->first;
125875: 8b 55 dc mov -0x24(%ebp),%edx <== NOT EXECUTED
125878: 03 53 68 add 0x68(%ebx),%edx <== NOT EXECUTED
12587b: 8b 02 mov (%edx),%eax <== NOT EXECUTED
12587d: 83 c2 04 add $0x4,%edx <== NOT EXECUTED
125880: 89 55 e0 mov %edx,-0x20(%ebp) <== NOT EXECUTED
125883: e9 2a ff ff ff jmp 1257b2 <fat_file_open+0x136> <== NOT EXECUTED
0012541b <fat_file_read>:
fat_file_fd_t *fat_fd,
uint32_t start,
uint32_t count,
uint8_t *buf
)
{
12541b: 55 push %ebp <== NOT EXECUTED
12541c: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12541e: 57 push %edi <== NOT EXECUTED
12541f: 56 push %esi <== NOT EXECUTED
125420: 53 push %ebx <== NOT EXECUTED
125421: 83 ec 3c sub $0x3c,%esp <== NOT EXECUTED
125424: 8b 7d 0c mov 0xc(%ebp),%edi <== NOT EXECUTED
125427: 8b 75 14 mov 0x14(%ebp),%esi <== NOT EXECUTED
int rc = RC_OK;
ssize_t ret = 0;
fat_fs_info_t *fs_info = mt_entry->fs_info;
12542a: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
12542d: 8b 58 34 mov 0x34(%eax),%ebx <== NOT EXECUTED
uint32_t sec = 0;
uint32_t byte = 0;
uint32_t c = 0;
/* it couldn't be removed - otherwise cache update will be broken */
if (count == 0)
125430: 85 f6 test %esi,%esi <== NOT EXECUTED
125432: 0f 84 86 01 00 00 je 1255be <fat_file_read+0x1a3> <== NOT EXECUTED
/*
* >= because start is offset and computed from 0 and file_size
* computed from 1
*/
if ( start >= fat_fd->fat_file_size )
125438: 8b 47 18 mov 0x18(%edi),%eax <== NOT EXECUTED
12543b: 39 45 10 cmp %eax,0x10(%ebp) <== NOT EXECUTED
12543e: 0f 83 7a 01 00 00 jae 1255be <fat_file_read+0x1a3> <== NOT EXECUTED
return FAT_EOF;
if ((count > fat_fd->fat_file_size) ||
125444: 39 c6 cmp %eax,%esi <== NOT EXECUTED
125446: 77 09 ja 125451 <fat_file_read+0x36> <== NOT EXECUTED
125448: 89 c2 mov %eax,%edx <== NOT EXECUTED
12544a: 29 f2 sub %esi,%edx <== NOT EXECUTED
12544c: 39 55 10 cmp %edx,0x10(%ebp) <== NOT EXECUTED
12544f: 76 05 jbe 125456 <fat_file_read+0x3b> <== NOT EXECUTED
(start > fat_fd->fat_file_size - count))
count = fat_fd->fat_file_size - start;
125451: 89 c6 mov %eax,%esi <== NOT EXECUTED
125453: 2b 75 10 sub 0x10(%ebp),%esi <== NOT EXECUTED
{
int rc = RC_OK;
ssize_t ret = 0;
fat_fs_info_t *fs_info = mt_entry->fs_info;
uint32_t cmpltd = 0;
uint32_t cur_cln = 0;
125456: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) <== NOT EXECUTED
if ((count > fat_fd->fat_file_size) ||
(start > fat_fd->fat_file_size - count))
count = fat_fd->fat_file_size - start;
if ((FAT_FD_OF_ROOT_DIR(fat_fd)) &&
12545d: 83 7f 20 01 cmpl $0x1,0x20(%edi) <== NOT EXECUTED
125461: 75 57 jne 1254ba <fat_file_read+0x9f> <== NOT EXECUTED
125463: 83 7f 24 00 cmpl $0x0,0x24(%edi) <== NOT EXECUTED
125467: 75 51 jne 1254ba <fat_file_read+0x9f> <== NOT EXECUTED
(fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)))
125469: f6 43 0a 03 testb $0x3,0xa(%ebx) <== NOT EXECUTED
12546d: 74 4b je 1254ba <fat_file_read+0x9f> <== NOT EXECUTED
{
sec = fat_cluster_num_to_sector_num(mt_entry, fat_fd->cln);
12546f: 8b 47 1c mov 0x1c(%edi),%eax <== NOT EXECUTED
uint32_t cln
)
{
register fat_fs_info_t *fs_info = mt_entry->fs_info;
if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) )
125472: 85 c0 test %eax,%eax <== NOT EXECUTED
125474: 75 05 jne 12547b <fat_file_read+0x60> <== NOT EXECUTED
return fs_info->vol.rdir_loc;
125476: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
125479: eb 0c jmp 125487 <fat_file_read+0x6c> <== NOT EXECUTED
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
12547b: 83 e8 02 sub $0x2,%eax <== NOT EXECUTED
12547e: 0f b6 4b 05 movzbl 0x5(%ebx),%ecx <== NOT EXECUTED
125482: d3 e0 shl %cl,%eax <== NOT EXECUTED
125484: 03 43 30 add 0x30(%ebx),%eax <== NOT EXECUTED
sec += (start >> fs_info->vol.sec_log2);
byte = start & (fs_info->vol.bps - 1);
ret = _fat_block_read(mt_entry, sec, byte, count, buf);
125487: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12548a: ff 75 18 pushl 0x18(%ebp) <== NOT EXECUTED
12548d: 56 push %esi <== NOT EXECUTED
12548e: 0f b7 13 movzwl (%ebx),%edx <== NOT EXECUTED
125491: 4a dec %edx <== NOT EXECUTED
125492: 23 55 10 and 0x10(%ebp),%edx <== NOT EXECUTED
125495: 52 push %edx <== NOT EXECUTED
125496: 0f b6 4b 02 movzbl 0x2(%ebx),%ecx <== NOT EXECUTED
12549a: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
12549d: d3 ea shr %cl,%edx <== NOT EXECUTED
12549f: 01 d0 add %edx,%eax <== NOT EXECUTED
1254a1: 50 push %eax <== NOT EXECUTED
1254a2: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
1254a5: e8 c0 0a 00 00 call 125f6a <_fat_block_read> <== NOT EXECUTED
if ( ret < 0 )
1254aa: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
1254ad: 85 c0 test %eax,%eax <== NOT EXECUTED
1254af: 0f 89 10 01 00 00 jns 1255c5 <fat_file_read+0x1aa> <== NOT EXECUTED
1254b5: e9 08 01 00 00 jmp 1255c2 <fat_file_read+0x1a7> <== NOT EXECUTED
return -1;
return ret;
}
cl_start = start >> fs_info->vol.bpc_log2;
1254ba: 0f b6 4b 08 movzbl 0x8(%ebx),%ecx <== NOT EXECUTED
1254be: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
1254c1: d3 e8 shr %cl,%eax <== NOT EXECUTED
1254c3: 89 45 c8 mov %eax,-0x38(%ebp) <== NOT EXECUTED
save_ofs = ofs = start & (fs_info->vol.bpc - 1);
1254c6: 66 8b 53 06 mov 0x6(%ebx),%dx <== NOT EXECUTED
1254ca: 66 89 55 d0 mov %dx,-0x30(%ebp) <== NOT EXECUTED
rc = fat_file_lseek(mt_entry, fat_fd, cl_start, &cur_cln);
1254ce: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1254d1: 8d 4d e4 lea -0x1c(%ebp),%ecx <== NOT EXECUTED
1254d4: 51 push %ecx <== NOT EXECUTED
1254d5: 89 c1 mov %eax,%ecx <== NOT EXECUTED
1254d7: 89 fa mov %edi,%edx <== NOT EXECUTED
1254d9: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
1254dc: e8 76 f8 ff ff call 124d57 <fat_file_lseek> <== NOT EXECUTED
if (rc != RC_OK)
1254e1: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1254e4: 85 c0 test %eax,%eax <== NOT EXECUTED
1254e6: 0f 85 d9 00 00 00 jne 1255c5 <fat_file_read+0x1aa> <== NOT EXECUTED
return ret;
}
cl_start = start >> fs_info->vol.bpc_log2;
save_ofs = ofs = start & (fs_info->vol.bpc - 1);
1254ec: 0f b7 45 d0 movzwl -0x30(%ebp),%eax <== NOT EXECUTED
1254f0: 48 dec %eax <== NOT EXECUTED
1254f1: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
1254f4: 21 d0 and %edx,%eax <== NOT EXECUTED
1254f6: 89 45 d0 mov %eax,-0x30(%ebp) <== NOT EXECUTED
1254f9: 89 45 cc mov %eax,-0x34(%ebp) <== NOT EXECUTED
1254fc: 31 d2 xor %edx,%edx <== NOT EXECUTED
1254fe: c7 45 d4 00 00 00 00 movl $0x0,-0x2c(%ebp) <== NOT EXECUTED
125505: 89 7d c4 mov %edi,-0x3c(%ebp) <== NOT EXECUTED
125508: e9 89 00 00 00 jmp 125596 <fat_file_read+0x17b> <== NOT EXECUTED
if (rc != RC_OK)
return rc;
while (count > 0)
{
c = MIN(count, (fs_info->vol.bpc - ofs));
12550d: 0f b7 7b 06 movzwl 0x6(%ebx),%edi <== NOT EXECUTED
125511: 2b 7d cc sub -0x34(%ebp),%edi <== NOT EXECUTED
125514: 39 f7 cmp %esi,%edi <== NOT EXECUTED
125516: 76 02 jbe 12551a <fat_file_read+0xff> <== NOT EXECUTED
125518: 89 f7 mov %esi,%edi <== NOT EXECUTED
sec = fat_cluster_num_to_sector_num(mt_entry, cur_cln);
12551a: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
fat_cluster_num_to_sector_num(
rtems_filesystem_mount_table_entry_t *mt_entry,
uint32_t cln
)
{
register fat_fs_info_t *fs_info = mt_entry->fs_info;
12551d: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
125520: 8b 51 34 mov 0x34(%ecx),%edx <== NOT EXECUTED
if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) )
125523: 85 c0 test %eax,%eax <== NOT EXECUTED
125525: 75 0b jne 125532 <fat_file_read+0x117> <== NOT EXECUTED
125527: f6 42 0a 03 testb $0x3,0xa(%edx) <== NOT EXECUTED
12552b: 74 05 je 125532 <fat_file_read+0x117> <== NOT EXECUTED
return fs_info->vol.rdir_loc;
12552d: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED
125530: eb 0c jmp 12553e <fat_file_read+0x123> <== NOT EXECUTED
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
125532: 83 e8 02 sub $0x2,%eax <== NOT EXECUTED
125535: 0f b6 4a 05 movzbl 0x5(%edx),%ecx <== NOT EXECUTED
125539: d3 e0 shl %cl,%eax <== NOT EXECUTED
12553b: 03 42 30 add 0x30(%edx),%eax <== NOT EXECUTED
sec += (ofs >> fs_info->vol.sec_log2);
byte = ofs & (fs_info->vol.bps - 1);
ret = _fat_block_read(mt_entry, sec, byte, c, buf + cmpltd);
12553e: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
125541: 8b 55 18 mov 0x18(%ebp),%edx <== NOT EXECUTED
125544: 03 55 d4 add -0x2c(%ebp),%edx <== NOT EXECUTED
125547: 52 push %edx <== NOT EXECUTED
125548: 57 push %edi <== NOT EXECUTED
125549: 0f b7 13 movzwl (%ebx),%edx <== NOT EXECUTED
12554c: 4a dec %edx <== NOT EXECUTED
12554d: 23 55 cc and -0x34(%ebp),%edx <== NOT EXECUTED
125550: 52 push %edx <== NOT EXECUTED
125551: 0f b6 4b 02 movzbl 0x2(%ebx),%ecx <== NOT EXECUTED
125555: 8b 55 cc mov -0x34(%ebp),%edx <== NOT EXECUTED
125558: d3 ea shr %cl,%edx <== NOT EXECUTED
12555a: 01 d0 add %edx,%eax <== NOT EXECUTED
12555c: 50 push %eax <== NOT EXECUTED
12555d: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
125560: e8 05 0a 00 00 call 125f6a <_fat_block_read> <== NOT EXECUTED
if ( ret < 0 )
125565: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
125568: 85 c0 test %eax,%eax <== NOT EXECUTED
12556a: 78 56 js 1255c2 <fat_file_read+0x1a7> <== NOT EXECUTED
return -1;
count -= c;
cmpltd += c;
save_cln = cur_cln;
12556c: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln);
12556f: 50 push %eax <== NOT EXECUTED
125570: 8d 4d e4 lea -0x1c(%ebp),%ecx <== NOT EXECUTED
125573: 51 push %ecx <== NOT EXECUTED
125574: 52 push %edx <== NOT EXECUTED
125575: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
125578: 89 55 c0 mov %edx,-0x40(%ebp) <== NOT EXECUTED
12557b: e8 71 4e 01 00 call 13a3f1 <fat_get_fat_cluster> <== NOT EXECUTED
if ( rc != RC_OK )
125580: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
125583: 85 c0 test %eax,%eax <== NOT EXECUTED
125585: 8b 55 c0 mov -0x40(%ebp),%edx <== NOT EXECUTED
125588: 75 3b jne 1255c5 <fat_file_read+0x1aa> <== NOT EXECUTED
ret = _fat_block_read(mt_entry, sec, byte, c, buf + cmpltd);
if ( ret < 0 )
return -1;
count -= c;
12558a: 29 fe sub %edi,%esi <== NOT EXECUTED
cmpltd += c;
12558c: 01 7d d4 add %edi,-0x2c(%ebp) <== NOT EXECUTED
12558f: c7 45 cc 00 00 00 00 movl $0x0,-0x34(%ebp) <== NOT EXECUTED
rc = fat_file_lseek(mt_entry, fat_fd, cl_start, &cur_cln);
if (rc != RC_OK)
return rc;
while (count > 0)
125596: 85 f6 test %esi,%esi <== NOT EXECUTED
125598: 0f 85 6f ff ff ff jne 12550d <fat_file_read+0xf2> <== NOT EXECUTED
12559e: 8b 7d c4 mov -0x3c(%ebp),%edi <== NOT EXECUTED
ofs = 0;
}
/* update cache */
/* XXX: check this - I'm not sure :( */
fat_fd->map.file_cln = cl_start +
1255a1: 8b 4d d0 mov -0x30(%ebp),%ecx <== NOT EXECUTED
1255a4: 8b 75 d4 mov -0x2c(%ebp),%esi <== NOT EXECUTED
1255a7: 8d 44 31 ff lea -0x1(%ecx,%esi,1),%eax <== NOT EXECUTED
1255ab: 0f b6 4b 08 movzbl 0x8(%ebx),%ecx <== NOT EXECUTED
1255af: d3 e8 shr %cl,%eax <== NOT EXECUTED
1255b1: 03 45 c8 add -0x38(%ebp),%eax <== NOT EXECUTED
1255b4: 89 47 34 mov %eax,0x34(%edi) <== NOT EXECUTED
((save_ofs + cmpltd - 1) >> fs_info->vol.bpc_log2);
fat_fd->map.disk_cln = save_cln;
1255b7: 89 57 38 mov %edx,0x38(%edi) <== NOT EXECUTED
return cmpltd;
1255ba: 89 f0 mov %esi,%eax <== NOT EXECUTED
1255bc: eb 07 jmp 1255c5 <fat_file_read+0x1aa> <== NOT EXECUTED
1255be: 31 c0 xor %eax,%eax <== NOT EXECUTED
1255c0: eb 03 jmp 1255c5 <fat_file_read+0x1aa> <== NOT EXECUTED
1255c2: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
}
1255c5: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1255c8: 5b pop %ebx <== NOT EXECUTED
1255c9: 5e pop %esi <== NOT EXECUTED
1255ca: 5f pop %edi <== NOT EXECUTED
1255cb: c9 leave <== NOT EXECUTED
1255cc: c3 ret <== NOT EXECUTED
00124ccc <fat_file_reopen>:
* RETURNS:
* RC_OK
*/
int
fat_file_reopen(fat_file_fd_t *fat_fd)
{
124ccc: 55 push %ebp <== NOT EXECUTED
124ccd: 89 e5 mov %esp,%ebp <== NOT EXECUTED
124ccf: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
fat_fd->links_num++;
124cd2: ff 40 08 incl 0x8(%eax) <== NOT EXECUTED
return RC_OK;
}
124cd5: 31 c0 xor %eax,%eax <== NOT EXECUTED
124cd7: c9 leave <== NOT EXECUTED
124cd8: c3 ret <== NOT EXECUTED
00124cd9 <fat_file_size>:
int
fat_file_size(
rtems_filesystem_mount_table_entry_t *mt_entry,
fat_file_fd_t *fat_fd
)
{
124cd9: 55 push %ebp <== NOT EXECUTED
124cda: 89 e5 mov %esp,%ebp <== NOT EXECUTED
124cdc: 57 push %edi <== NOT EXECUTED
124cdd: 56 push %esi <== NOT EXECUTED
124cde: 53 push %ebx <== NOT EXECUTED
124cdf: 83 ec 3c sub $0x3c,%esp <== NOT EXECUTED
124ce2: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
124ce5: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
int rc = RC_OK;
fat_fs_info_t *fs_info = mt_entry->fs_info;
124ce8: 8b 72 34 mov 0x34(%edx),%esi <== NOT EXECUTED
uint32_t cur_cln = fat_fd->cln;
124ceb: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
uint32_t save_cln = 0;
/* Have we requested root dir size for FAT12/16? */
if ((FAT_FD_OF_ROOT_DIR(fat_fd)) &&
124cee: 83 7b 20 01 cmpl $0x1,0x20(%ebx) <== NOT EXECUTED
124cf2: 75 14 jne 124d08 <fat_file_size+0x2f> <== NOT EXECUTED
124cf4: 83 7b 24 00 cmpl $0x0,0x24(%ebx) <== NOT EXECUTED
124cf8: 75 0e jne 124d08 <fat_file_size+0x2f> <== NOT EXECUTED
(fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)))
124cfa: f6 46 0a 03 testb $0x3,0xa(%esi) <== NOT EXECUTED
124cfe: 74 08 je 124d08 <fat_file_size+0x2f> <== NOT EXECUTED
{
fat_fd->fat_file_size = fs_info->vol.rdir_size;
124d00: 8b 46 28 mov 0x28(%esi),%eax <== NOT EXECUTED
124d03: 89 43 18 mov %eax,0x18(%ebx) <== NOT EXECUTED
124d06: eb 45 jmp 124d4d <fat_file_size+0x74> <== NOT EXECUTED
fat_file_fd_t *fat_fd
)
{
int rc = RC_OK;
fat_fs_info_t *fs_info = mt_entry->fs_info;
uint32_t cur_cln = fat_fd->cln;
124d08: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
{
fat_fd->fat_file_size = fs_info->vol.rdir_size;
return rc;
}
fat_fd->fat_file_size = 0;
124d0b: c7 43 18 00 00 00 00 movl $0x0,0x18(%ebx) <== NOT EXECUTED
124d12: 31 c0 xor %eax,%eax <== NOT EXECUTED
while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val)
{
save_cln = cur_cln;
rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln);
124d14: 8d 4d e4 lea -0x1c(%ebp),%ecx <== NOT EXECUTED
124d17: 89 55 c4 mov %edx,-0x3c(%ebp) <== NOT EXECUTED
return rc;
}
fat_fd->fat_file_size = 0;
while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val)
124d1a: eb 21 jmp 124d3d <fat_file_size+0x64> <== NOT EXECUTED
{
save_cln = cur_cln;
rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln);
124d1c: 50 push %eax <== NOT EXECUTED
124d1d: 51 push %ecx <== NOT EXECUTED
124d1e: 57 push %edi <== NOT EXECUTED
124d1f: ff 75 c4 pushl -0x3c(%ebp) <== NOT EXECUTED
124d22: 89 4d d0 mov %ecx,-0x30(%ebp) <== NOT EXECUTED
124d25: e8 c7 56 01 00 call 13a3f1 <fat_get_fat_cluster> <== NOT EXECUTED
if ( rc != RC_OK )
124d2a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
124d2d: 85 c0 test %eax,%eax <== NOT EXECUTED
124d2f: 8b 4d d0 mov -0x30(%ebp),%ecx <== NOT EXECUTED
124d32: 75 1b jne 124d4f <fat_file_size+0x76> <== NOT EXECUTED
return rc;
fat_fd->fat_file_size += fs_info->vol.bpc;
124d34: 0f b7 46 06 movzwl 0x6(%esi),%eax <== NOT EXECUTED
124d38: 01 43 18 add %eax,0x18(%ebx) <== NOT EXECUTED
124d3b: 89 f8 mov %edi,%eax <== NOT EXECUTED
return rc;
}
fat_fd->fat_file_size = 0;
while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val)
124d3d: 8b 7d e4 mov -0x1c(%ebp),%edi <== NOT EXECUTED
124d40: 8b 56 0c mov 0xc(%esi),%edx <== NOT EXECUTED
124d43: 21 fa and %edi,%edx <== NOT EXECUTED
124d45: 3b 56 10 cmp 0x10(%esi),%edx <== NOT EXECUTED
124d48: 72 d2 jb 124d1c <fat_file_size+0x43> <== NOT EXECUTED
if ( rc != RC_OK )
return rc;
fat_fd->fat_file_size += fs_info->vol.bpc;
}
fat_fd->map.last_cln = save_cln;
124d4a: 89 43 3c mov %eax,0x3c(%ebx) <== NOT EXECUTED
124d4d: 31 c0 xor %eax,%eax <== NOT EXECUTED
return rc;
}
124d4f: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
124d52: 5b pop %ebx <== NOT EXECUTED
124d53: 5e pop %esi <== NOT EXECUTED
124d54: 5f pop %edi <== NOT EXECUTED
124d55: c9 leave <== NOT EXECUTED
124d56: c3 ret <== NOT EXECUTED
00124f9f <fat_file_truncate>:
fat_file_truncate(
rtems_filesystem_mount_table_entry_t *mt_entry,
fat_file_fd_t *fat_fd,
uint32_t new_length
)
{
124f9f: 55 push %ebp <== NOT EXECUTED
124fa0: 89 e5 mov %esp,%ebp <== NOT EXECUTED
124fa2: 57 push %edi <== NOT EXECUTED
124fa3: 56 push %esi <== NOT EXECUTED
124fa4: 53 push %ebx <== NOT EXECUTED
124fa5: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
124fa8: 8b 7d 08 mov 0x8(%ebp),%edi <== NOT EXECUTED
124fab: 8b 75 0c mov 0xc(%ebp),%esi <== NOT EXECUTED
124fae: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
int rc = RC_OK;
fat_fs_info_t *fs_info = mt_entry->fs_info;
124fb1: 8b 5f 34 mov 0x34(%edi),%ebx <== NOT EXECUTED
uint32_t cur_cln = 0;
uint32_t cl_start = 0;
uint32_t new_last_cln = FAT_UNDEFINED_VALUE;
if ( new_length >= fat_fd->fat_file_size )
124fb4: 8b 46 18 mov 0x18(%esi),%eax <== NOT EXECUTED
124fb7: 39 c2 cmp %eax,%edx <== NOT EXECUTED
124fb9: 0f 83 b0 00 00 00 jae 12506f <fat_file_truncate+0xd0><== NOT EXECUTED
uint32_t new_length
)
{
int rc = RC_OK;
fat_fs_info_t *fs_info = mt_entry->fs_info;
uint32_t cur_cln = 0;
124fbf: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) <== NOT EXECUTED
uint32_t cl_start = 0;
uint32_t new_last_cln = FAT_UNDEFINED_VALUE;
124fc6: c7 45 e0 ff ff ff ff movl $0xffffffff,-0x20(%ebp) <== NOT EXECUTED
if ( new_length >= fat_fd->fat_file_size )
return rc;
assert(fat_fd->fat_file_size);
124fcd: 85 c0 test %eax,%eax <== NOT EXECUTED
124fcf: 75 19 jne 124fea <fat_file_truncate+0x4b><== NOT EXECUTED
124fd1: 68 8d ad 15 00 push $0x15ad8d <== NOT EXECUTED
124fd6: 68 f4 ad 15 00 push $0x15adf4 <== NOT EXECUTED
124fdb: 68 6d 02 00 00 push $0x26d <== NOT EXECUTED
124fe0: 68 a3 ad 15 00 push $0x15ada3 <== NOT EXECUTED
124fe5: e8 c6 78 fe ff call 10c8b0 <__assert_func> <== NOT EXECUTED
cl_start = (new_length + fs_info->vol.bpc - 1) >> fs_info->vol.bpc_log2;
124fea: 0f b6 4b 08 movzbl 0x8(%ebx),%ecx <== NOT EXECUTED
124fee: 0f b7 5b 06 movzwl 0x6(%ebx),%ebx <== NOT EXECUTED
124ff2: 8d 5c 1a ff lea -0x1(%edx,%ebx,1),%ebx <== NOT EXECUTED
124ff6: d3 eb shr %cl,%ebx <== NOT EXECUTED
if ((cl_start << fs_info->vol.bpc_log2) >= fat_fd->fat_file_size)
124ff8: 89 da mov %ebx,%edx <== NOT EXECUTED
124ffa: d3 e2 shl %cl,%edx <== NOT EXECUTED
124ffc: 39 c2 cmp %eax,%edx <== NOT EXECUTED
124ffe: 73 6f jae 12506f <fat_file_truncate+0xd0><== NOT EXECUTED
return RC_OK;
if (cl_start != 0)
125000: 85 db test %ebx,%ebx <== NOT EXECUTED
125002: 74 1a je 12501e <fat_file_truncate+0x7f><== NOT EXECUTED
{
rc = fat_file_lseek(mt_entry, fat_fd, cl_start - 1, &new_last_cln);
125004: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
125007: 8d 4b ff lea -0x1(%ebx),%ecx <== NOT EXECUTED
12500a: 8d 45 e0 lea -0x20(%ebp),%eax <== NOT EXECUTED
12500d: 50 push %eax <== NOT EXECUTED
12500e: 89 f2 mov %esi,%edx <== NOT EXECUTED
125010: 89 f8 mov %edi,%eax <== NOT EXECUTED
125012: e8 40 fd ff ff call 124d57 <fat_file_lseek> <== NOT EXECUTED
if (rc != RC_OK)
125017: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12501a: 85 c0 test %eax,%eax <== NOT EXECUTED
12501c: 75 53 jne 125071 <fat_file_truncate+0xd2><== NOT EXECUTED
return rc;
}
rc = fat_file_lseek(mt_entry, fat_fd, cl_start, &cur_cln);
12501e: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
125021: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
125024: 50 push %eax <== NOT EXECUTED
125025: 89 d9 mov %ebx,%ecx <== NOT EXECUTED
125027: 89 f2 mov %esi,%edx <== NOT EXECUTED
125029: 89 f8 mov %edi,%eax <== NOT EXECUTED
12502b: e8 27 fd ff ff call 124d57 <fat_file_lseek> <== NOT EXECUTED
if (rc != RC_OK)
125030: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
125033: 85 c0 test %eax,%eax <== NOT EXECUTED
125035: 75 3a jne 125071 <fat_file_truncate+0xd2><== NOT EXECUTED
return rc;
rc = fat_free_fat_clusters_chain(mt_entry, cur_cln);
125037: 51 push %ecx <== NOT EXECUTED
125038: 51 push %ecx <== NOT EXECUTED
125039: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
12503c: 57 push %edi <== NOT EXECUTED
12503d: e8 19 55 01 00 call 13a55b <fat_free_fat_clusters_chain><== NOT EXECUTED
if (rc != RC_OK)
125042: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
125045: 85 c0 test %eax,%eax <== NOT EXECUTED
125047: 75 28 jne 125071 <fat_file_truncate+0xd2><== NOT EXECUTED
return rc;
if (cl_start != 0)
125049: 85 db test %ebx,%ebx <== NOT EXECUTED
12504b: 74 24 je 125071 <fat_file_truncate+0xd2><== NOT EXECUTED
{
rc = fat_set_fat_cluster(mt_entry, new_last_cln, FAT_GENFAT_EOC);
12504d: 52 push %edx <== NOT EXECUTED
12504e: 6a ff push $0xffffffff <== NOT EXECUTED
125050: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
125053: 57 push %edi <== NOT EXECUTED
125054: e8 7f 51 01 00 call 13a1d8 <fat_set_fat_cluster> <== NOT EXECUTED
if ( rc != RC_OK )
125059: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12505c: 85 c0 test %eax,%eax <== NOT EXECUTED
12505e: 75 11 jne 125071 <fat_file_truncate+0xd2><== NOT EXECUTED
return rc;
fat_fd->map.file_cln = cl_start - 1;
125060: 4b dec %ebx <== NOT EXECUTED
125061: 89 5e 34 mov %ebx,0x34(%esi) <== NOT EXECUTED
fat_fd->map.disk_cln = new_last_cln;
125064: 8b 55 e0 mov -0x20(%ebp),%edx <== NOT EXECUTED
125067: 89 56 38 mov %edx,0x38(%esi) <== NOT EXECUTED
fat_fd->map.last_cln = new_last_cln;
12506a: 89 56 3c mov %edx,0x3c(%esi) <== NOT EXECUTED
12506d: eb 02 jmp 125071 <fat_file_truncate+0xd2><== NOT EXECUTED
12506f: 31 c0 xor %eax,%eax <== NOT EXECUTED
}
return RC_OK;
}
125071: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
125074: 5b pop %ebx <== NOT EXECUTED
125075: 5e pop %esi <== NOT EXECUTED
125076: 5f pop %edi <== NOT EXECUTED
125077: c9 leave <== NOT EXECUTED
125078: c3 ret <== NOT EXECUTED
00125219 <fat_file_write>:
fat_file_fd_t *fat_fd,
uint32_t start,
uint32_t count,
const uint8_t *buf
)
{
125219: 55 push %ebp <== NOT EXECUTED
12521a: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12521c: 57 push %edi <== NOT EXECUTED
12521d: 56 push %esi <== NOT EXECUTED
12521e: 53 push %ebx <== NOT EXECUTED
12521f: 83 ec 3c sub $0x3c,%esp <== NOT EXECUTED
125222: 8b 75 0c mov 0xc(%ebp),%esi <== NOT EXECUTED
125225: 8b 7d 14 mov 0x14(%ebp),%edi <== NOT EXECUTED
int rc = 0;
ssize_t ret = 0;
fat_fs_info_t *fs_info = mt_entry->fs_info;
125228: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
12522b: 8b 58 34 mov 0x34(%eax),%ebx <== NOT EXECUTED
uint32_t save_ofs;
uint32_t sec = 0;
uint32_t byte = 0;
uint32_t c = 0;
if ( count == 0 )
12522e: 31 c0 xor %eax,%eax <== NOT EXECUTED
125230: 85 ff test %edi,%edi <== NOT EXECUTED
125232: 0f 84 db 01 00 00 je 125413 <fat_file_write+0x1fa> <== NOT EXECUTED
{
int rc = 0;
ssize_t ret = 0;
fat_fs_info_t *fs_info = mt_entry->fs_info;
uint32_t cmpltd = 0;
uint32_t cur_cln = 0;
125238: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) <== NOT EXECUTED
uint32_t cl_start = 0;
uint32_t ofs = 0;
uint32_t save_ofs;
uint32_t sec = 0;
uint32_t byte = 0;
uint32_t c = 0;
12523f: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp) <== NOT EXECUTED
if ( count == 0 )
return cmpltd;
if ( start > fat_fd->fat_file_size )
125246: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
125249: 3b 56 18 cmp 0x18(%esi),%edx <== NOT EXECUTED
12524c: 77 0e ja 12525c <fat_file_write+0x43> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EIO );
if ((count > fat_fd->size_limit) ||
12524e: 8b 46 14 mov 0x14(%esi),%eax <== NOT EXECUTED
125251: 39 c7 cmp %eax,%edi <== NOT EXECUTED
125253: 77 07 ja 12525c <fat_file_write+0x43> <== NOT EXECUTED
125255: 29 f8 sub %edi,%eax <== NOT EXECUTED
125257: 39 45 10 cmp %eax,0x10(%ebp) <== NOT EXECUTED
12525a: 76 10 jbe 12526c <fat_file_write+0x53> <== NOT EXECUTED
(start > fat_fd->size_limit - count))
rtems_set_errno_and_return_minus_one( EIO );
12525c: e8 b3 8d 01 00 call 13e014 <__errno> <== NOT EXECUTED
125261: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
125267: e9 a4 01 00 00 jmp 125410 <fat_file_write+0x1f7> <== NOT EXECUTED
rc = fat_file_extend(mt_entry, fat_fd, start + count, &c);
12526c: 8b 4d 10 mov 0x10(%ebp),%ecx <== NOT EXECUTED
12526f: 8d 14 0f lea (%edi,%ecx,1),%edx <== NOT EXECUTED
125272: 8d 45 e0 lea -0x20(%ebp),%eax <== NOT EXECUTED
125275: 50 push %eax <== NOT EXECUTED
125276: 52 push %edx <== NOT EXECUTED
125277: 56 push %esi <== NOT EXECUTED
125278: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
12527b: 89 55 c0 mov %edx,-0x40(%ebp) <== NOT EXECUTED
12527e: e8 f6 fd ff ff call 125079 <fat_file_extend> <== NOT EXECUTED
if (rc != RC_OK)
125283: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
125286: 85 c0 test %eax,%eax <== NOT EXECUTED
125288: 8b 55 c0 mov -0x40(%ebp),%edx <== NOT EXECUTED
12528b: 0f 85 82 01 00 00 jne 125413 <fat_file_write+0x1fa> <== NOT EXECUTED
/*
* check whether there was enough room on device to locate
* file of 'start + count' bytes
*/
if (c != (start + count))
125291: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
125294: 39 d0 cmp %edx,%eax <== NOT EXECUTED
125296: 74 05 je 12529d <fat_file_write+0x84> <== NOT EXECUTED
count = c - start;
125298: 89 c7 mov %eax,%edi <== NOT EXECUTED
12529a: 2b 7d 10 sub 0x10(%ebp),%edi <== NOT EXECUTED
if ((FAT_FD_OF_ROOT_DIR(fat_fd)) &&
12529d: 83 7e 20 01 cmpl $0x1,0x20(%esi) <== NOT EXECUTED
1252a1: 75 63 jne 125306 <fat_file_write+0xed> <== NOT EXECUTED
1252a3: 83 7e 24 00 cmpl $0x0,0x24(%esi) <== NOT EXECUTED
1252a7: 75 5d jne 125306 <fat_file_write+0xed> <== NOT EXECUTED
(fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)))
1252a9: f6 43 0a 03 testb $0x3,0xa(%ebx) <== NOT EXECUTED
1252ad: 74 57 je 125306 <fat_file_write+0xed> <== NOT EXECUTED
{
sec = fat_cluster_num_to_sector_num(mt_entry, fat_fd->cln);
1252af: 8b 46 1c mov 0x1c(%esi),%eax <== NOT EXECUTED
fat_cluster_num_to_sector_num(
rtems_filesystem_mount_table_entry_t *mt_entry,
uint32_t cln
)
{
register fat_fs_info_t *fs_info = mt_entry->fs_info;
1252b2: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
1252b5: 8b 51 34 mov 0x34(%ecx),%edx <== NOT EXECUTED
if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) )
1252b8: 85 c0 test %eax,%eax <== NOT EXECUTED
1252ba: 75 0b jne 1252c7 <fat_file_write+0xae> <== NOT EXECUTED
1252bc: f6 42 0a 03 testb $0x3,0xa(%edx) <== NOT EXECUTED
1252c0: 74 05 je 1252c7 <fat_file_write+0xae> <== NOT EXECUTED
return fs_info->vol.rdir_loc;
1252c2: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED
1252c5: eb 0c jmp 1252d3 <fat_file_write+0xba> <== NOT EXECUTED
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
1252c7: 83 e8 02 sub $0x2,%eax <== NOT EXECUTED
1252ca: 0f b6 4a 05 movzbl 0x5(%edx),%ecx <== NOT EXECUTED
1252ce: d3 e0 shl %cl,%eax <== NOT EXECUTED
1252d0: 03 42 30 add 0x30(%edx),%eax <== NOT EXECUTED
sec += (start >> fs_info->vol.sec_log2);
byte = start & (fs_info->vol.bps - 1);
ret = _fat_block_write(mt_entry, sec, byte, count, buf);
1252d3: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1252d6: ff 75 18 pushl 0x18(%ebp) <== NOT EXECUTED
1252d9: 57 push %edi <== NOT EXECUTED
1252da: 0f b7 13 movzwl (%ebx),%edx <== NOT EXECUTED
1252dd: 4a dec %edx <== NOT EXECUTED
1252de: 23 55 10 and 0x10(%ebp),%edx <== NOT EXECUTED
1252e1: 52 push %edx <== NOT EXECUTED
1252e2: 0f b6 4b 02 movzbl 0x2(%ebx),%ecx <== NOT EXECUTED
1252e6: 8b 7d 10 mov 0x10(%ebp),%edi <== NOT EXECUTED
1252e9: d3 ef shr %cl,%edi <== NOT EXECUTED
1252eb: 01 f8 add %edi,%eax <== NOT EXECUTED
1252ed: 50 push %eax <== NOT EXECUTED
1252ee: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
1252f1: e8 82 09 00 00 call 125c78 <_fat_block_write> <== NOT EXECUTED
if ( ret < 0 )
1252f6: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
1252f9: 85 c0 test %eax,%eax <== NOT EXECUTED
1252fb: 0f 89 12 01 00 00 jns 125413 <fat_file_write+0x1fa> <== NOT EXECUTED
125301: e9 0a 01 00 00 jmp 125410 <fat_file_write+0x1f7> <== NOT EXECUTED
return -1;
return ret;
}
cl_start = start >> fs_info->vol.bpc_log2;
125306: 0f b6 4b 08 movzbl 0x8(%ebx),%ecx <== NOT EXECUTED
12530a: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
12530d: d3 e8 shr %cl,%eax <== NOT EXECUTED
12530f: 89 45 c8 mov %eax,-0x38(%ebp) <== NOT EXECUTED
save_ofs = ofs = start & (fs_info->vol.bpc - 1);
125312: 66 8b 53 06 mov 0x6(%ebx),%dx <== NOT EXECUTED
125316: 66 89 55 d0 mov %dx,-0x30(%ebp) <== NOT EXECUTED
rc = fat_file_lseek(mt_entry, fat_fd, cl_start, &cur_cln);
12531a: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12531d: 8d 4d e4 lea -0x1c(%ebp),%ecx <== NOT EXECUTED
125320: 51 push %ecx <== NOT EXECUTED
125321: 89 c1 mov %eax,%ecx <== NOT EXECUTED
125323: 89 f2 mov %esi,%edx <== NOT EXECUTED
125325: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
125328: e8 2a fa ff ff call 124d57 <fat_file_lseek> <== NOT EXECUTED
if (rc != RC_OK)
12532d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
125330: 85 c0 test %eax,%eax <== NOT EXECUTED
125332: 0f 85 db 00 00 00 jne 125413 <fat_file_write+0x1fa> <== NOT EXECUTED
return ret;
}
cl_start = start >> fs_info->vol.bpc_log2;
save_ofs = ofs = start & (fs_info->vol.bpc - 1);
125338: 0f b7 45 d0 movzwl -0x30(%ebp),%eax <== NOT EXECUTED
12533c: 48 dec %eax <== NOT EXECUTED
12533d: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
125340: 21 d0 and %edx,%eax <== NOT EXECUTED
125342: 89 45 d0 mov %eax,-0x30(%ebp) <== NOT EXECUTED
125345: 89 45 cc mov %eax,-0x34(%ebp) <== NOT EXECUTED
125348: 31 d2 xor %edx,%edx <== NOT EXECUTED
12534a: c7 45 d4 00 00 00 00 movl $0x0,-0x2c(%ebp) <== NOT EXECUTED
125351: 89 75 c4 mov %esi,-0x3c(%ebp) <== NOT EXECUTED
125354: e9 8f 00 00 00 jmp 1253e8 <fat_file_write+0x1cf> <== NOT EXECUTED
if (rc != RC_OK)
return rc;
while (count > 0)
{
c = MIN(count, (fs_info->vol.bpc - ofs));
125359: 0f b7 43 06 movzwl 0x6(%ebx),%eax <== NOT EXECUTED
12535d: 2b 45 cc sub -0x34(%ebp),%eax <== NOT EXECUTED
125360: 39 f8 cmp %edi,%eax <== NOT EXECUTED
125362: 76 02 jbe 125366 <fat_file_write+0x14d> <== NOT EXECUTED
125364: 89 f8 mov %edi,%eax <== NOT EXECUTED
sec = fat_cluster_num_to_sector_num(mt_entry, cur_cln);
125366: 8b 75 e4 mov -0x1c(%ebp),%esi <== NOT EXECUTED
fat_cluster_num_to_sector_num(
rtems_filesystem_mount_table_entry_t *mt_entry,
uint32_t cln
)
{
register fat_fs_info_t *fs_info = mt_entry->fs_info;
125369: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
12536c: 8b 51 34 mov 0x34(%ecx),%edx <== NOT EXECUTED
if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) )
12536f: 85 f6 test %esi,%esi <== NOT EXECUTED
125371: 75 0b jne 12537e <fat_file_write+0x165> <== NOT EXECUTED
125373: f6 42 0a 03 testb $0x3,0xa(%edx) <== NOT EXECUTED
125377: 74 05 je 12537e <fat_file_write+0x165> <== NOT EXECUTED
return fs_info->vol.rdir_loc;
125379: 8b 72 1c mov 0x1c(%edx),%esi <== NOT EXECUTED
12537c: eb 0c jmp 12538a <fat_file_write+0x171> <== NOT EXECUTED
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
12537e: 83 ee 02 sub $0x2,%esi <== NOT EXECUTED
125381: 0f b6 4a 05 movzbl 0x5(%edx),%ecx <== NOT EXECUTED
125385: d3 e6 shl %cl,%esi <== NOT EXECUTED
125387: 03 72 30 add 0x30(%edx),%esi <== NOT EXECUTED
sec += (ofs >> fs_info->vol.sec_log2);
12538a: 0f b6 4b 02 movzbl 0x2(%ebx),%ecx <== NOT EXECUTED
12538e: 8b 55 cc mov -0x34(%ebp),%edx <== NOT EXECUTED
125391: d3 ea shr %cl,%edx <== NOT EXECUTED
125393: 01 d6 add %edx,%esi <== NOT EXECUTED
byte = ofs & (fs_info->vol.bps - 1);
125395: 0f b7 13 movzwl (%ebx),%edx <== NOT EXECUTED
125398: 4a dec %edx <== NOT EXECUTED
125399: 23 55 cc and -0x34(%ebp),%edx <== NOT EXECUTED
if (rc != RC_OK)
return rc;
while (count > 0)
{
c = MIN(count, (fs_info->vol.bpc - ofs));
12539c: 89 45 e0 mov %eax,-0x20(%ebp) <== NOT EXECUTED
sec = fat_cluster_num_to_sector_num(mt_entry, cur_cln);
sec += (ofs >> fs_info->vol.sec_log2);
byte = ofs & (fs_info->vol.bps - 1);
ret = _fat_block_write(mt_entry, sec, byte, c, buf + cmpltd);
12539f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1253a2: 8b 4d 18 mov 0x18(%ebp),%ecx <== NOT EXECUTED
1253a5: 03 4d d4 add -0x2c(%ebp),%ecx <== NOT EXECUTED
1253a8: 51 push %ecx <== NOT EXECUTED
1253a9: 50 push %eax <== NOT EXECUTED
1253aa: 52 push %edx <== NOT EXECUTED
1253ab: 56 push %esi <== NOT EXECUTED
1253ac: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
1253af: e8 c4 08 00 00 call 125c78 <_fat_block_write> <== NOT EXECUTED
if ( ret < 0 )
1253b4: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
1253b7: 85 c0 test %eax,%eax <== NOT EXECUTED
1253b9: 78 55 js 125410 <fat_file_write+0x1f7> <== NOT EXECUTED
return -1;
count -= c;
1253bb: 8b 75 e0 mov -0x20(%ebp),%esi <== NOT EXECUTED
cmpltd += c;
save_cln = cur_cln;
1253be: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln);
1253c1: 51 push %ecx <== NOT EXECUTED
1253c2: 8d 4d e4 lea -0x1c(%ebp),%ecx <== NOT EXECUTED
1253c5: 51 push %ecx <== NOT EXECUTED
1253c6: 52 push %edx <== NOT EXECUTED
1253c7: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
1253ca: 89 55 c0 mov %edx,-0x40(%ebp) <== NOT EXECUTED
1253cd: e8 1f 50 01 00 call 13a3f1 <fat_get_fat_cluster> <== NOT EXECUTED
if ( rc != RC_OK )
1253d2: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1253d5: 85 c0 test %eax,%eax <== NOT EXECUTED
1253d7: 8b 55 c0 mov -0x40(%ebp),%edx <== NOT EXECUTED
1253da: 75 37 jne 125413 <fat_file_write+0x1fa> <== NOT EXECUTED
ret = _fat_block_write(mt_entry, sec, byte, c, buf + cmpltd);
if ( ret < 0 )
return -1;
count -= c;
1253dc: 29 f7 sub %esi,%edi <== NOT EXECUTED
cmpltd += c;
1253de: 01 75 d4 add %esi,-0x2c(%ebp) <== NOT EXECUTED
1253e1: c7 45 cc 00 00 00 00 movl $0x0,-0x34(%ebp) <== NOT EXECUTED
rc = fat_file_lseek(mt_entry, fat_fd, cl_start, &cur_cln);
if (rc != RC_OK)
return rc;
while (count > 0)
1253e8: 85 ff test %edi,%edi <== NOT EXECUTED
1253ea: 0f 85 69 ff ff ff jne 125359 <fat_file_write+0x140> <== NOT EXECUTED
1253f0: 8b 75 c4 mov -0x3c(%ebp),%esi <== NOT EXECUTED
ofs = 0;
}
/* update cache */
/* XXX: check this - I'm not sure :( */
fat_fd->map.file_cln = cl_start +
1253f3: 8b 4d d0 mov -0x30(%ebp),%ecx <== NOT EXECUTED
1253f6: 8b 7d d4 mov -0x2c(%ebp),%edi <== NOT EXECUTED
1253f9: 8d 44 39 ff lea -0x1(%ecx,%edi,1),%eax <== NOT EXECUTED
1253fd: 0f b6 4b 08 movzbl 0x8(%ebx),%ecx <== NOT EXECUTED
125401: d3 e8 shr %cl,%eax <== NOT EXECUTED
125403: 03 45 c8 add -0x38(%ebp),%eax <== NOT EXECUTED
125406: 89 46 34 mov %eax,0x34(%esi) <== NOT EXECUTED
((save_ofs + cmpltd - 1) >> fs_info->vol.bpc_log2);
fat_fd->map.disk_cln = save_cln;
125409: 89 56 38 mov %edx,0x38(%esi) <== NOT EXECUTED
return cmpltd;
12540c: 89 f8 mov %edi,%eax <== NOT EXECUTED
12540e: eb 03 jmp 125413 <fat_file_write+0x1fa> <== NOT EXECUTED
125410: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
}
125413: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
125416: 5b pop %ebx <== NOT EXECUTED
125417: 5e pop %esi <== NOT EXECUTED
125418: 5f pop %edi <== NOT EXECUTED
125419: c9 leave <== NOT EXECUTED
12541a: c3 ret <== NOT EXECUTED
0013a55b <fat_free_fat_clusters_chain>:
int
fat_free_fat_clusters_chain(
rtems_filesystem_mount_table_entry_t *mt_entry,
uint32_t chain
)
{
13a55b: 55 push %ebp <== NOT EXECUTED
13a55c: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13a55e: 57 push %edi <== NOT EXECUTED
13a55f: 56 push %esi <== NOT EXECUTED
13a560: 53 push %ebx <== NOT EXECUTED
13a561: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED
int rc = RC_OK, rc1 = RC_OK;
fat_fs_info_t *fs_info = mt_entry->fs_info;
13a564: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
13a567: 8b 58 34 mov 0x34(%eax),%ebx <== NOT EXECUTED
uint32_t cur_cln = chain;
uint32_t next_cln = 0;
13a56a: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) <== NOT EXECUTED
13a571: 8b 75 0c mov 0xc(%ebp),%esi <== NOT EXECUTED
13a574: c7 45 d4 00 00 00 00 movl $0x0,-0x2c(%ebp) <== NOT EXECUTED
13a57b: c7 45 d0 00 00 00 00 movl $0x0,-0x30(%ebp) <== NOT EXECUTED
uint32_t freed_cls_cnt = 0;
while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val)
13a582: eb 4c jmp 13a5d0 <fat_free_fat_clusters_chain+0x75><== NOT EXECUTED
{
rc = fat_get_fat_cluster(mt_entry, cur_cln, &next_cln);
13a584: 52 push %edx <== NOT EXECUTED
13a585: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
13a588: 50 push %eax <== NOT EXECUTED
13a589: 56 push %esi <== NOT EXECUTED
13a58a: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
13a58d: e8 5f fe ff ff call 13a3f1 <fat_get_fat_cluster> <== NOT EXECUTED
13a592: 89 c7 mov %eax,%edi <== NOT EXECUTED
if ( rc != RC_OK )
13a594: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13a597: 85 c0 test %eax,%eax <== NOT EXECUTED
13a599: 74 19 je 13a5b4 <fat_free_fat_clusters_chain+0x59><== NOT EXECUTED
{
if(fs_info->vol.free_cls != FAT_UNDEFINED_VALUE)
13a59b: 8b 43 40 mov 0x40(%ebx),%eax <== NOT EXECUTED
13a59e: 83 f8 ff cmp $0xffffffff,%eax <== NOT EXECUTED
13a5a1: 74 06 je 13a5a9 <fat_free_fat_clusters_chain+0x4e><== NOT EXECUTED
fs_info->vol.free_cls += freed_cls_cnt;
13a5a3: 03 45 d4 add -0x2c(%ebp),%eax <== NOT EXECUTED
13a5a6: 89 43 40 mov %eax,0x40(%ebx) <== NOT EXECUTED
fat_buf_release(fs_info);
13a5a9: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13a5ac: 53 push %ebx <== NOT EXECUTED
13a5ad: e8 ad b3 fe ff call 12595f <fat_buf_release> <== NOT EXECUTED
13a5b2: eb 46 jmp 13a5fa <fat_free_fat_clusters_chain+0x9f><== NOT EXECUTED
return rc;
}
rc = fat_set_fat_cluster(mt_entry, cur_cln, FAT_GENFAT_FREE);
13a5b4: 50 push %eax <== NOT EXECUTED
13a5b5: 6a 00 push $0x0 <== NOT EXECUTED
13a5b7: 56 push %esi <== NOT EXECUTED
13a5b8: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
13a5bb: e8 18 fc ff ff call 13a1d8 <fat_set_fat_cluster> <== NOT EXECUTED
if ( rc != RC_OK )
13a5c0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13a5c3: 85 c0 test %eax,%eax <== NOT EXECUTED
13a5c5: 74 03 je 13a5ca <fat_free_fat_clusters_chain+0x6f><== NOT EXECUTED
13a5c7: 89 45 d0 mov %eax,-0x30(%ebp) <== NOT EXECUTED
rc1 = rc;
freed_cls_cnt++;
13a5ca: ff 45 d4 incl -0x2c(%ebp) <== NOT EXECUTED
cur_cln = next_cln;
13a5cd: 8b 75 e4 mov -0x1c(%ebp),%esi <== NOT EXECUTED
fat_fs_info_t *fs_info = mt_entry->fs_info;
uint32_t cur_cln = chain;
uint32_t next_cln = 0;
uint32_t freed_cls_cnt = 0;
while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val)
13a5d0: 8b 43 0c mov 0xc(%ebx),%eax <== NOT EXECUTED
13a5d3: 21 f0 and %esi,%eax <== NOT EXECUTED
13a5d5: 3b 43 10 cmp 0x10(%ebx),%eax <== NOT EXECUTED
13a5d8: 72 aa jb 13a584 <fat_free_fat_clusters_chain+0x29><== NOT EXECUTED
freed_cls_cnt++;
cur_cln = next_cln;
}
fs_info->vol.next_cl = chain;
13a5da: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
13a5dd: 89 43 44 mov %eax,0x44(%ebx) <== NOT EXECUTED
if (fs_info->vol.free_cls != FAT_UNDEFINED_VALUE)
13a5e0: 8b 43 40 mov 0x40(%ebx),%eax <== NOT EXECUTED
13a5e3: 83 f8 ff cmp $0xffffffff,%eax <== NOT EXECUTED
13a5e6: 74 06 je 13a5ee <fat_free_fat_clusters_chain+0x93><== NOT EXECUTED
fs_info->vol.free_cls += freed_cls_cnt;
13a5e8: 03 45 d4 add -0x2c(%ebp),%eax <== NOT EXECUTED
13a5eb: 89 43 40 mov %eax,0x40(%ebx) <== NOT EXECUTED
fat_buf_release(fs_info);
13a5ee: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13a5f1: 53 push %ebx <== NOT EXECUTED
13a5f2: e8 68 b3 fe ff call 12595f <fat_buf_release> <== NOT EXECUTED
13a5f7: 8b 7d d0 mov -0x30(%ebp),%edi <== NOT EXECUTED
13a5fa: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
if (rc1 != RC_OK)
return rc1;
return RC_OK;
}
13a5fd: 89 f8 mov %edi,%eax <== NOT EXECUTED
13a5ff: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13a602: 5b pop %ebx <== NOT EXECUTED
13a603: 5e pop %esi <== NOT EXECUTED
13a604: 5f pop %edi <== NOT EXECUTED
13a605: c9 leave <== NOT EXECUTED
13a606: c3 ret <== NOT EXECUTED
00125888 <fat_free_unique_ino>:
void
fat_free_unique_ino(
rtems_filesystem_mount_table_entry_t *mt_entry,
uint32_t ino
)
{
125888: 55 push %ebp <== NOT EXECUTED
125889: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12588b: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED
fat_fs_info_t *fs_info = mt_entry->fs_info;
12588e: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
125891: 8b 50 34 mov 0x34(%eax),%edx <== NOT EXECUTED
FAT_SET_UNIQ_INO_FREE((ino - fs_info->uino_base), fs_info->uino);
125894: 2b 4a 78 sub 0x78(%edx),%ecx <== NOT EXECUTED
125897: 89 c8 mov %ecx,%eax <== NOT EXECUTED
125899: c1 e8 03 shr $0x3,%eax <== NOT EXECUTED
12589c: 03 42 6c add 0x6c(%edx),%eax <== NOT EXECUTED
12589f: 83 e1 07 and $0x7,%ecx <== NOT EXECUTED
1258a2: ba 01 00 00 00 mov $0x1,%edx <== NOT EXECUTED
1258a7: d3 e2 shl %cl,%edx <== NOT EXECUTED
1258a9: f7 d2 not %edx <== NOT EXECUTED
1258ab: 20 10 and %dl,(%eax) <== NOT EXECUTED
}
1258ad: c9 leave <== NOT EXECUTED
1258ae: c3 ret <== NOT EXECUTED
0013a3f1 <fat_get_fat_cluster>:
fat_get_fat_cluster(
rtems_filesystem_mount_table_entry_t *mt_entry,
uint32_t cln,
uint32_t *ret_val
)
{
13a3f1: 55 push %ebp <== NOT EXECUTED
13a3f2: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13a3f4: 57 push %edi <== NOT EXECUTED
13a3f5: 56 push %esi <== NOT EXECUTED
13a3f6: 53 push %ebx <== NOT EXECUTED
13a3f7: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED
13a3fa: 8b 7d 0c mov 0xc(%ebp),%edi <== NOT EXECUTED
13a3fd: 8b 5d 10 mov 0x10(%ebp),%ebx <== NOT EXECUTED
int rc = RC_OK;
register fat_fs_info_t *fs_info = mt_entry->fs_info;
13a400: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
13a403: 8b 70 34 mov 0x34(%eax),%esi <== NOT EXECUTED
rtems_bdbuf_buffer *block0 = NULL;
13a406: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) <== NOT EXECUTED
uint32_t sec = 0;
uint32_t ofs = 0;
/* sanity check */
if ( (cln < 2) || (cln > (fs_info->vol.data_cls + 1)) )
13a40d: 83 ff 01 cmp $0x1,%edi <== NOT EXECUTED
13a410: 0f 86 2d 01 00 00 jbe 13a543 <fat_get_fat_cluster+0x152><== NOT EXECUTED
13a416: 8b 46 34 mov 0x34(%esi),%eax <== NOT EXECUTED
13a419: 40 inc %eax <== NOT EXECUTED
13a41a: 39 c7 cmp %eax,%edi <== NOT EXECUTED
13a41c: 0f 87 21 01 00 00 ja 13a543 <fat_get_fat_cluster+0x152><== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
sec = (FAT_FAT_OFFSET(fs_info->vol.type, cln) >> fs_info->vol.sec_log2) +
13a422: 0f b6 56 0a movzbl 0xa(%esi),%edx <== NOT EXECUTED
13a426: 89 d0 mov %edx,%eax <== NOT EXECUTED
13a428: 83 e0 01 and $0x1,%eax <== NOT EXECUTED
13a42b: 89 45 d4 mov %eax,-0x2c(%ebp) <== NOT EXECUTED
13a42e: 74 08 je 13a438 <fat_get_fat_cluster+0x47><== NOT EXECUTED
13a430: 89 f8 mov %edi,%eax <== NOT EXECUTED
13a432: d1 e8 shr %eax <== NOT EXECUTED
13a434: 01 f8 add %edi,%eax <== NOT EXECUTED
13a436: eb 0f jmp 13a447 <fat_get_fat_cluster+0x56><== NOT EXECUTED
13a438: 8d 04 3f lea (%edi,%edi,1),%eax <== NOT EXECUTED
13a43b: f6 c2 02 test $0x2,%dl <== NOT EXECUTED
13a43e: 75 07 jne 13a447 <fat_get_fat_cluster+0x56><== NOT EXECUTED
13a440: 8d 04 bd 00 00 00 00 lea 0x0(,%edi,4),%eax <== NOT EXECUTED
13a447: 0f b6 4e 02 movzbl 0x2(%esi),%ecx <== NOT EXECUTED
13a44b: d3 e8 shr %cl,%eax <== NOT EXECUTED
13a44d: 8b 4e 4c mov 0x4c(%esi),%ecx <== NOT EXECUTED
13a450: 01 c8 add %ecx,%eax <== NOT EXECUTED
13a452: 89 45 d0 mov %eax,-0x30(%ebp) <== NOT EXECUTED
fs_info->vol.afat_loc;
ofs = FAT_FAT_OFFSET(fs_info->vol.type, cln) & (fs_info->vol.bps - 1);
13a455: 83 7d d4 00 cmpl $0x0,-0x2c(%ebp) <== NOT EXECUTED
13a459: 74 08 je 13a463 <fat_get_fat_cluster+0x72><== NOT EXECUTED
13a45b: 89 f9 mov %edi,%ecx <== NOT EXECUTED
13a45d: d1 e9 shr %ecx <== NOT EXECUTED
13a45f: 01 f9 add %edi,%ecx <== NOT EXECUTED
13a461: eb 11 jmp 13a474 <fat_get_fat_cluster+0x83><== NOT EXECUTED
13a463: 80 e2 02 and $0x2,%dl <== NOT EXECUTED
13a466: 74 05 je 13a46d <fat_get_fat_cluster+0x7c><== NOT EXECUTED
13a468: 8d 0c 3f lea (%edi,%edi,1),%ecx <== NOT EXECUTED
13a46b: eb 07 jmp 13a474 <fat_get_fat_cluster+0x83><== NOT EXECUTED
13a46d: 8d 0c bd 00 00 00 00 lea 0x0(,%edi,4),%ecx <== NOT EXECUTED
13a474: 8b 06 mov (%esi),%eax <== NOT EXECUTED
13a476: 66 89 45 d4 mov %ax,-0x2c(%ebp) <== NOT EXECUTED
rc = fat_buf_access(fs_info, sec, FAT_OP_TYPE_READ, &block0);
13a47a: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
13a47d: 50 push %eax <== NOT EXECUTED
13a47e: 6a 01 push $0x1 <== NOT EXECUTED
13a480: ff 75 d0 pushl -0x30(%ebp) <== NOT EXECUTED
13a483: 56 push %esi <== NOT EXECUTED
13a484: 89 4d c8 mov %ecx,-0x38(%ebp) <== NOT EXECUTED
13a487: e8 1a b6 fe ff call 125aa6 <fat_buf_access> <== NOT EXECUTED
13a48c: 89 c2 mov %eax,%edx <== NOT EXECUTED
if (rc != RC_OK)
13a48e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13a491: 85 c0 test %eax,%eax <== NOT EXECUTED
13a493: 8b 4d c8 mov -0x38(%ebp),%ecx <== NOT EXECUTED
13a496: 0f 85 b5 00 00 00 jne 13a551 <fat_get_fat_cluster+0x160><== NOT EXECUTED
if ( (cln < 2) || (cln > (fs_info->vol.data_cls + 1)) )
rtems_set_errno_and_return_minus_one(EIO);
sec = (FAT_FAT_OFFSET(fs_info->vol.type, cln) >> fs_info->vol.sec_log2) +
fs_info->vol.afat_loc;
ofs = FAT_FAT_OFFSET(fs_info->vol.type, cln) & (fs_info->vol.bps - 1);
13a49c: 0f b7 45 d4 movzwl -0x2c(%ebp),%eax <== NOT EXECUTED
13a4a0: 48 dec %eax <== NOT EXECUTED
13a4a1: 21 c8 and %ecx,%eax <== NOT EXECUTED
rc = fat_buf_access(fs_info, sec, FAT_OP_TYPE_READ, &block0);
if (rc != RC_OK)
return rc;
switch ( fs_info->vol.type )
13a4a3: 8a 4e 0a mov 0xa(%esi),%cl <== NOT EXECUTED
13a4a6: 80 f9 02 cmp $0x2,%cl <== NOT EXECUTED
13a4a9: 74 7f je 13a52a <fat_get_fat_cluster+0x139><== NOT EXECUTED
13a4ab: 80 f9 04 cmp $0x4,%cl <== NOT EXECUTED
13a4ae: 0f 84 82 00 00 00 je 13a536 <fat_get_fat_cluster+0x145><== NOT EXECUTED
13a4b4: fe c9 dec %cl <== NOT EXECUTED
13a4b6: 0f 85 87 00 00 00 jne 13a543 <fat_get_fat_cluster+0x152><== NOT EXECUTED
case FAT_FAT12:
/*
* we are enforced in complex computations for FAT12 to escape CPU
* align problems for some architectures
*/
*ret_val = (*((uint8_t *)(block0->buffer + ofs)));
13a4bc: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED
13a4bf: 8b 49 20 mov 0x20(%ecx),%ecx <== NOT EXECUTED
13a4c2: 89 4d cc mov %ecx,-0x34(%ebp) <== NOT EXECUTED
13a4c5: 0f b6 0c 01 movzbl (%ecx,%eax,1),%ecx <== NOT EXECUTED
13a4c9: 89 4d d4 mov %ecx,-0x2c(%ebp) <== NOT EXECUTED
13a4cc: 89 0b mov %ecx,(%ebx) <== NOT EXECUTED
if ( ofs == (fs_info->vol.bps - 1) )
13a4ce: 0f b7 0e movzwl (%esi),%ecx <== NOT EXECUTED
13a4d1: 49 dec %ecx <== NOT EXECUTED
13a4d2: 39 c8 cmp %ecx,%eax <== NOT EXECUTED
13a4d4: 75 32 jne 13a508 <fat_get_fat_cluster+0x117><== NOT EXECUTED
{
rc = fat_buf_access(fs_info, sec + 1, FAT_OP_TYPE_READ,
13a4d6: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
13a4d9: 50 push %eax <== NOT EXECUTED
13a4da: 6a 01 push $0x1 <== NOT EXECUTED
13a4dc: 8b 45 d0 mov -0x30(%ebp),%eax <== NOT EXECUTED
13a4df: 40 inc %eax <== NOT EXECUTED
13a4e0: 50 push %eax <== NOT EXECUTED
13a4e1: 56 push %esi <== NOT EXECUTED
13a4e2: 89 55 c8 mov %edx,-0x38(%ebp) <== NOT EXECUTED
13a4e5: e8 bc b5 fe ff call 125aa6 <fat_buf_access> <== NOT EXECUTED
&block0);
if (rc != RC_OK)
13a4ea: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13a4ed: 85 c0 test %eax,%eax <== NOT EXECUTED
13a4ef: 8b 55 c8 mov -0x38(%ebp),%edx <== NOT EXECUTED
13a4f2: 74 04 je 13a4f8 <fat_get_fat_cluster+0x107><== NOT EXECUTED
13a4f4: 89 c2 mov %eax,%edx <== NOT EXECUTED
13a4f6: eb 59 jmp 13a551 <fat_get_fat_cluster+0x160><== NOT EXECUTED
return rc;
*ret_val |= (*((uint8_t *)(block0->buffer)))<<8;
13a4f8: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
13a4fb: 8b 40 20 mov 0x20(%eax),%eax <== NOT EXECUTED
13a4fe: 0f b6 00 movzbl (%eax),%eax <== NOT EXECUTED
13a501: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
13a504: 09 03 or %eax,(%ebx) <== NOT EXECUTED
13a506: eb 10 jmp 13a518 <fat_get_fat_cluster+0x127><== NOT EXECUTED
}
else
{
*ret_val |= (*((uint8_t *)(block0->buffer + ofs + 1)))<<8;
13a508: 8b 4d cc mov -0x34(%ebp),%ecx <== NOT EXECUTED
13a50b: 0f b6 44 01 01 movzbl 0x1(%ecx,%eax,1),%eax <== NOT EXECUTED
13a510: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
13a513: 0b 45 d4 or -0x2c(%ebp),%eax <== NOT EXECUTED
13a516: 89 03 mov %eax,(%ebx) <== NOT EXECUTED
}
if ( FAT_CLUSTER_IS_ODD(cln) )
13a518: 83 e7 01 and $0x1,%edi <== NOT EXECUTED
13a51b: 74 05 je 13a522 <fat_get_fat_cluster+0x131><== NOT EXECUTED
*ret_val = (*ret_val) >> FAT12_SHIFT;
13a51d: c1 2b 04 shrl $0x4,(%ebx) <== NOT EXECUTED
13a520: eb 2f jmp 13a551 <fat_get_fat_cluster+0x160><== NOT EXECUTED
else
*ret_val = (*ret_val) & FAT_FAT12_MASK;
13a522: 81 23 ff 0f 00 00 andl $0xfff,(%ebx) <== NOT EXECUTED
13a528: eb 27 jmp 13a551 <fat_get_fat_cluster+0x160><== NOT EXECUTED
break;
case FAT_FAT16:
*ret_val = *((uint16_t *)(block0->buffer + ofs));
*ret_val = CF_LE_W(*ret_val);
13a52a: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED
13a52d: 8b 49 20 mov 0x20(%ecx),%ecx <== NOT EXECUTED
13a530: 0f b7 04 01 movzwl (%ecx,%eax,1),%eax <== NOT EXECUTED
13a534: eb 09 jmp 13a53f <fat_get_fat_cluster+0x14e><== NOT EXECUTED
break;
case FAT_FAT32:
*ret_val = *((uint32_t *)(block0->buffer + ofs));
*ret_val = CF_LE_L(*ret_val);
13a536: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED
13a539: 8b 49 20 mov 0x20(%ecx),%ecx <== NOT EXECUTED
13a53c: 8b 04 01 mov (%ecx,%eax,1),%eax <== NOT EXECUTED
13a53f: 89 03 mov %eax,(%ebx) <== NOT EXECUTED
break;
13a541: eb 0e jmp 13a551 <fat_get_fat_cluster+0x160><== NOT EXECUTED
default:
rtems_set_errno_and_return_minus_one(EIO);
13a543: e8 cc 3a 00 00 call 13e014 <__errno> <== NOT EXECUTED
13a548: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
13a54e: 83 ca ff or $0xffffffff,%edx <== NOT EXECUTED
break;
}
return RC_OK;
}
13a551: 89 d0 mov %edx,%eax <== NOT EXECUTED
13a553: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13a556: 5b pop %ebx <== NOT EXECUTED
13a557: 5e pop %esi <== NOT EXECUTED
13a558: 5f pop %edi <== NOT EXECUTED
13a559: c9 leave <== NOT EXECUTED
13a55a: c3 ret <== NOT EXECUTED
001258c3 <fat_get_unique_ino>:
* 0 means FAILED !!!
*
*/
uint32_t
fat_get_unique_ino(rtems_filesystem_mount_table_entry_t *mt_entry)
{
1258c3: 55 push %ebp <== NOT EXECUTED
1258c4: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1258c6: 57 push %edi <== NOT EXECUTED
1258c7: 56 push %esi <== NOT EXECUTED
1258c8: 53 push %ebx <== NOT EXECUTED
1258c9: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
register fat_fs_info_t *fs_info = mt_entry->fs_info;
1258cc: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
1258cf: 8b 58 34 mov 0x34(%eax),%ebx <== NOT EXECUTED
1258d2: eb 77 jmp 12594b <fat_get_unique_ino+0x88><== NOT EXECUTED
while (!resrc_unsuff)
{
for (j = 0; j < fs_info->uino_pool_size; j++)
{
if (!FAT_UNIQ_INO_IS_BUSY(fs_info->index, fs_info->uino))
1258d4: 8b 73 70 mov 0x70(%ebx),%esi <== NOT EXECUTED
1258d7: 89 f0 mov %esi,%eax <== NOT EXECUTED
1258d9: c1 e8 03 shr $0x3,%eax <== NOT EXECUTED
1258dc: 03 43 6c add 0x6c(%ebx),%eax <== NOT EXECUTED
1258df: 8a 08 mov (%eax),%cl <== NOT EXECUTED
1258e1: 88 4d e3 mov %cl,-0x1d(%ebp) <== NOT EXECUTED
1258e4: 89 f1 mov %esi,%ecx <== NOT EXECUTED
1258e6: 83 e1 07 and $0x7,%ecx <== NOT EXECUTED
1258e9: 0f be 7d e3 movsbl -0x1d(%ebp),%edi <== NOT EXECUTED
1258ed: 0f a3 cf bt %ecx,%edi <== NOT EXECUTED
1258f0: 72 14 jb 125906 <fat_get_unique_ino+0x43><== NOT EXECUTED
{
FAT_SET_UNIQ_INO_BUSY(fs_info->index, fs_info->uino);
1258f2: ba 01 00 00 00 mov $0x1,%edx <== NOT EXECUTED
1258f7: d3 e2 shl %cl,%edx <== NOT EXECUTED
1258f9: 0a 55 e3 or -0x1d(%ebp),%dl <== NOT EXECUTED
1258fc: 88 10 mov %dl,(%eax) <== NOT EXECUTED
return (fs_info->uino_base + fs_info->index);
1258fe: 8b 43 70 mov 0x70(%ebx),%eax <== NOT EXECUTED
125901: 03 43 78 add 0x78(%ebx),%eax <== NOT EXECUTED
125904: eb 51 jmp 125957 <fat_get_unique_ino+0x94><== NOT EXECUTED
}
fs_info->index++;
125906: 46 inc %esi <== NOT EXECUTED
125907: 89 73 70 mov %esi,0x70(%ebx) <== NOT EXECUTED
if (fs_info->index >= fs_info->uino_pool_size)
12590a: 3b 73 74 cmp 0x74(%ebx),%esi <== NOT EXECUTED
12590d: 72 07 jb 125916 <fat_get_unique_ino+0x53><== NOT EXECUTED
fs_info->index = 0;
12590f: c7 43 70 00 00 00 00 movl $0x0,0x70(%ebx) <== NOT EXECUTED
uint32_t j = 0;
bool resrc_unsuff = false;
while (!resrc_unsuff)
{
for (j = 0; j < fs_info->uino_pool_size; j++)
125916: 42 inc %edx <== NOT EXECUTED
125917: 3b 55 e4 cmp -0x1c(%ebp),%edx <== NOT EXECUTED
12591a: 72 b8 jb 1258d4 <fat_get_unique_ino+0x11><== NOT EXECUTED
fs_info->index++;
if (fs_info->index >= fs_info->uino_pool_size)
fs_info->index = 0;
}
if ((fs_info->uino_pool_size << 1) < (0x0FFFFFFF - fs_info->uino_base))
12591c: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
12591f: d1 e0 shl %eax <== NOT EXECUTED
125921: ba ff ff ff 0f mov $0xfffffff,%edx <== NOT EXECUTED
125926: 2b 53 78 sub 0x78(%ebx),%edx <== NOT EXECUTED
125929: 39 d0 cmp %edx,%eax <== NOT EXECUTED
12592b: 73 28 jae 125955 <fat_get_unique_ino+0x92><== NOT EXECUTED
{
fs_info->uino_pool_size <<= 1;
12592d: 89 43 74 mov %eax,0x74(%ebx) <== NOT EXECUTED
fs_info->uino = realloc(fs_info->uino, fs_info->uino_pool_size);
125930: 52 push %edx <== NOT EXECUTED
125931: 52 push %edx <== NOT EXECUTED
125932: 50 push %eax <== NOT EXECUTED
125933: ff 73 6c pushl 0x6c(%ebx) <== NOT EXECUTED
125936: e8 0d 87 fe ff call 10e048 <realloc> <== NOT EXECUTED
12593b: 89 43 6c mov %eax,0x6c(%ebx) <== NOT EXECUTED
if (fs_info->uino != NULL)
12593e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
125941: 85 c0 test %eax,%eax <== NOT EXECUTED
125943: 74 10 je 125955 <fat_get_unique_ino+0x92><== NOT EXECUTED
fs_info->index = fs_info->uino_pool_size;
125945: 8b 43 74 mov 0x74(%ebx),%eax <== NOT EXECUTED
125948: 89 43 70 mov %eax,0x70(%ebx) <== NOT EXECUTED
uint32_t j = 0;
bool resrc_unsuff = false;
while (!resrc_unsuff)
{
for (j = 0; j < fs_info->uino_pool_size; j++)
12594b: 8b 43 74 mov 0x74(%ebx),%eax <== NOT EXECUTED
12594e: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
125951: 31 d2 xor %edx,%edx <== NOT EXECUTED
125953: eb c2 jmp 125917 <fat_get_unique_ino+0x54><== NOT EXECUTED
125955: 31 c0 xor %eax,%eax <== NOT EXECUTED
}
else
resrc_unsuff = true;
}
return 0;
}
125957: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
12595a: 5b pop %ebx <== NOT EXECUTED
12595b: 5e pop %esi <== NOT EXECUTED
12595c: 5f pop %edi <== NOT EXECUTED
12595d: c9 leave <== NOT EXECUTED
12595e: c3 ret <== NOT EXECUTED
00125ec7 <fat_init_clusters_chain>:
int
fat_init_clusters_chain(
rtems_filesystem_mount_table_entry_t *mt_entry,
uint32_t start_cln
)
{
125ec7: 55 push %ebp <== NOT EXECUTED
125ec8: 89 e5 mov %esp,%ebp <== NOT EXECUTED
125eca: 57 push %edi <== NOT EXECUTED
125ecb: 56 push %esi <== NOT EXECUTED
125ecc: 53 push %ebx <== NOT EXECUTED
125ecd: 83 ec 34 sub $0x34,%esp <== NOT EXECUTED
125ed0: 8b 7d 08 mov 0x8(%ebp),%edi <== NOT EXECUTED
int rc = RC_OK;
ssize_t ret = 0;
register fat_fs_info_t *fs_info = mt_entry->fs_info;
125ed3: 8b 77 34 mov 0x34(%edi),%esi <== NOT EXECUTED
uint32_t cur_cln = start_cln;
125ed6: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
125ed9: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
char *buf;
buf = calloc(fs_info->vol.bpc, sizeof(char));
125edc: 6a 01 push $0x1 <== NOT EXECUTED
125ede: 0f b7 46 06 movzwl 0x6(%esi),%eax <== NOT EXECUTED
125ee2: 50 push %eax <== NOT EXECUTED
125ee3: e8 e4 6a fe ff call 10c9cc <calloc> <== NOT EXECUTED
125ee8: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if ( buf == NULL )
125eea: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
125eed: 85 c0 test %eax,%eax <== NOT EXECUTED
125eef: 75 56 jne 125f47 <fat_init_clusters_chain+0x80><== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EIO );
125ef1: e8 1e 81 01 00 call 13e014 <__errno> <== NOT EXECUTED
125ef6: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
125efc: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
125eff: eb 61 jmp 125f62 <fat_init_clusters_chain+0x9b><== NOT EXECUTED
while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val)
{
ret = fat_cluster_write(mt_entry, cur_cln, buf);
125f01: 52 push %edx <== NOT EXECUTED
125f02: 53 push %ebx <== NOT EXECUTED
125f03: 50 push %eax <== NOT EXECUTED
125f04: 57 push %edi <== NOT EXECUTED
125f05: e8 73 ff ff ff call 125e7d <fat_cluster_write> <== NOT EXECUTED
if ( ret == -1 )
125f0a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
125f0d: 40 inc %eax <== NOT EXECUTED
125f0e: 75 0e jne 125f1e <fat_init_clusters_chain+0x57><== NOT EXECUTED
{
free(buf);
125f10: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
125f13: 53 push %ebx <== NOT EXECUTED
125f14: e8 83 6f fe ff call 10ce9c <free> <== NOT EXECUTED
125f19: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
125f1c: eb 41 jmp 125f5f <fat_init_clusters_chain+0x98><== NOT EXECUTED
return -1;
}
rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln);
125f1e: 51 push %ecx <== NOT EXECUTED
125f1f: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
125f22: 50 push %eax <== NOT EXECUTED
125f23: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
125f26: 57 push %edi <== NOT EXECUTED
125f27: e8 c5 44 01 00 call 13a3f1 <fat_get_fat_cluster> <== NOT EXECUTED
if ( rc != RC_OK )
125f2c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
125f2f: 85 c0 test %eax,%eax <== NOT EXECUTED
125f31: 74 14 je 125f47 <fat_init_clusters_chain+0x80><== NOT EXECUTED
{
free(buf);
125f33: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
125f36: 53 push %ebx <== NOT EXECUTED
125f37: 89 45 d4 mov %eax,-0x2c(%ebp) <== NOT EXECUTED
125f3a: e8 5d 6f fe ff call 10ce9c <free> <== NOT EXECUTED
return rc;
125f3f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
125f42: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED
125f45: eb 1b jmp 125f62 <fat_init_clusters_chain+0x9b><== NOT EXECUTED
buf = calloc(fs_info->vol.bpc, sizeof(char));
if ( buf == NULL )
rtems_set_errno_and_return_minus_one( EIO );
while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val)
125f47: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
125f4a: 8b 56 0c mov 0xc(%esi),%edx <== NOT EXECUTED
125f4d: 21 c2 and %eax,%edx <== NOT EXECUTED
125f4f: 3b 56 10 cmp 0x10(%esi),%edx <== NOT EXECUTED
125f52: 72 ad jb 125f01 <fat_init_clusters_chain+0x3a><== NOT EXECUTED
free(buf);
return rc;
}
}
free(buf);
125f54: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
125f57: 53 push %ebx <== NOT EXECUTED
125f58: e8 3f 6f fe ff call 10ce9c <free> <== NOT EXECUTED
125f5d: 31 c0 xor %eax,%eax <== NOT EXECUTED
return rc;
125f5f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
125f62: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
125f65: 5b pop %ebx <== NOT EXECUTED
125f66: 5e pop %esi <== NOT EXECUTED
125f67: 5f pop %edi <== NOT EXECUTED
125f68: c9 leave <== NOT EXECUTED
125f69: c3 ret <== NOT EXECUTED
00125ff1 <fat_init_volume_info>:
* RC_OK on success, or -1 if error occured
* and errno set appropriately
*/
int
fat_init_volume_info(rtems_filesystem_mount_table_entry_t *mt_entry)
{
125ff1: 55 push %ebp <== NOT EXECUTED
125ff2: 89 e5 mov %esp,%ebp <== NOT EXECUTED
125ff4: 57 push %edi <== NOT EXECUTED
125ff5: 56 push %esi <== NOT EXECUTED
125ff6: 53 push %ebx <== NOT EXECUTED
125ff7: 81 ec d4 00 00 00 sub $0xd4,%esp <== NOT EXECUTED
rtems_status_code sc = RTEMS_SUCCESSFUL;
int rc = RC_OK;
fat_fs_info_t *fs_info = mt_entry->fs_info;
125ffd: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
126000: 8b 58 34 mov 0x34(%eax),%ebx <== NOT EXECUTED
char boot_rec[FAT_MAX_BPB_SIZE];
char fs_info_sector[FAT_USEFUL_INFO_SIZE];
ssize_t ret = 0;
struct stat stat_buf;
int i = 0;
rtems_bdbuf_buffer *block = NULL;
126003: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) <== NOT EXECUTED
rc = stat(mt_entry->dev, &stat_buf);
12600a: 8d 45 90 lea -0x70(%ebp),%eax <== NOT EXECUTED
12600d: 50 push %eax <== NOT EXECUTED
12600e: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
126011: ff 70 70 pushl 0x70(%eax) <== NOT EXECUTED
126014: e8 d3 82 fe ff call 10e2ec <stat> <== NOT EXECUTED
126019: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc == -1)
12601b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12601e: 83 f8 ff cmp $0xffffffff,%eax <== NOT EXECUTED
126021: 0f 84 b2 05 00 00 je 1265d9 <fat_init_volume_info+0x5e8><== NOT EXECUTED
return rc;
/* Must be a block device. */
if (!S_ISBLK(stat_buf.st_mode))
126027: 8b 45 9c mov -0x64(%ebp),%eax <== NOT EXECUTED
12602a: 25 00 f0 00 00 and $0xf000,%eax <== NOT EXECUTED
12602f: 3d 00 60 00 00 cmp $0x6000,%eax <== NOT EXECUTED
126034: 74 0d je 126043 <fat_init_volume_info+0x52><== NOT EXECUTED
rtems_set_errno_and_return_minus_one(ENOTTY);
126036: e8 d9 7f 01 00 call 13e014 <__errno> <== NOT EXECUTED
12603b: c7 00 19 00 00 00 movl $0x19,(%eax) <== NOT EXECUTED
126041: eb 22 jmp 126065 <fat_init_volume_info+0x74><== NOT EXECUTED
/* check that device is registred as block device and lock it */
vol->dd = rtems_disk_obtain(stat_buf.st_rdev);
126043: 56 push %esi <== NOT EXECUTED
126044: 56 push %esi <== NOT EXECUTED
126045: ff 75 ac pushl -0x54(%ebp) <== NOT EXECUTED
126048: ff 75 a8 pushl -0x58(%ebp) <== NOT EXECUTED
12604b: e8 9d 5c fe ff call 10bced <rtems_disk_obtain> <== NOT EXECUTED
126050: 89 43 5c mov %eax,0x5c(%ebx) <== NOT EXECUTED
if (vol->dd == NULL)
126053: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
126056: 85 c0 test %eax,%eax <== NOT EXECUTED
126058: 75 13 jne 12606d <fat_init_volume_info+0x7c><== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
12605a: e8 b5 7f 01 00 call 13e014 <__errno> <== NOT EXECUTED
12605f: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
126065: 83 ce ff or $0xffffffff,%esi <== NOT EXECUTED
126068: e9 6c 05 00 00 jmp 1265d9 <fat_init_volume_info+0x5e8><== NOT EXECUTED
vol->dev = stat_buf.st_rdev;
12606d: 8b 45 a8 mov -0x58(%ebp),%eax <== NOT EXECUTED
126070: 8b 55 ac mov -0x54(%ebp),%edx <== NOT EXECUTED
126073: 89 43 54 mov %eax,0x54(%ebx) <== NOT EXECUTED
126076: 89 53 58 mov %edx,0x58(%ebx) <== NOT EXECUTED
/* Read boot record */
/* FIXME: Asserts FAT_MAX_BPB_SIZE < bdbuf block size */
sc = rtems_bdbuf_read( vol->dev, 0, &block);
126079: 8d 4d e4 lea -0x1c(%ebp),%ecx <== NOT EXECUTED
12607c: 51 push %ecx <== NOT EXECUTED
12607d: 6a 00 push $0x0 <== NOT EXECUTED
12607f: 52 push %edx <== NOT EXECUTED
126080: 50 push %eax <== NOT EXECUTED
126081: e8 8e 4e fe ff call 10af14 <rtems_bdbuf_read> <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
126086: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
126089: 85 c0 test %eax,%eax <== NOT EXECUTED
12608b: 75 25 jne 1260b2 <fat_init_volume_info+0xc1><== NOT EXECUTED
{
rtems_disk_release(vol->dd);
rtems_set_errno_and_return_minus_one( EIO);
}
memcpy( boot_rec, block->buffer, FAT_MAX_BPB_SIZE);
12608d: 8d 95 36 ff ff ff lea -0xca(%ebp),%edx <== NOT EXECUTED
126093: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
126096: 8b 70 20 mov 0x20(%eax),%esi <== NOT EXECUTED
126099: b9 5a 00 00 00 mov $0x5a,%ecx <== NOT EXECUTED
12609e: 89 d7 mov %edx,%edi <== NOT EXECUTED
1260a0: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
sc = rtems_bdbuf_release( block);
1260a2: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1260a5: 50 push %eax <== NOT EXECUTED
1260a6: e8 cc 3f fe ff call 10a077 <rtems_bdbuf_release> <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
1260ab: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1260ae: 85 c0 test %eax,%eax <== NOT EXECUTED
1260b0: 74 1b je 1260cd <fat_init_volume_info+0xdc><== NOT EXECUTED
{
rtems_disk_release(vol->dd);
1260b2: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1260b5: ff 73 5c pushl 0x5c(%ebx) <== NOT EXECUTED
1260b8: e8 b7 5d fe ff call 10be74 <rtems_disk_release> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EIO );
1260bd: e8 52 7f 01 00 call 13e014 <__errno> <== NOT EXECUTED
1260c2: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
1260c8: e9 06 05 00 00 jmp 1265d3 <fat_init_volume_info+0x5e2><== NOT EXECUTED
}
/* Evaluate boot record */
vol->bps = FAT_GET_BR_BYTES_PER_SECTOR(boot_rec);
1260cd: 0f b6 95 42 ff ff ff movzbl -0xbe(%ebp),%edx <== NOT EXECUTED
1260d4: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
1260d7: 0f b6 85 41 ff ff ff movzbl -0xbf(%ebp),%eax <== NOT EXECUTED
1260de: 09 d0 or %edx,%eax <== NOT EXECUTED
1260e0: 66 89 03 mov %ax,(%ebx) <== NOT EXECUTED
if ( (vol->bps != 512) &&
1260e3: 66 3d 00 04 cmp $0x400,%ax <== NOT EXECUTED
1260e7: 74 16 je 1260ff <fat_init_volume_info+0x10e><== NOT EXECUTED
1260e9: 66 3d 00 02 cmp $0x200,%ax <== NOT EXECUTED
1260ed: 74 10 je 1260ff <fat_init_volume_info+0x10e><== NOT EXECUTED
1260ef: 66 3d 00 08 cmp $0x800,%ax <== NOT EXECUTED
1260f3: 74 0a je 1260ff <fat_init_volume_info+0x10e><== NOT EXECUTED
1260f5: 66 3d 00 10 cmp $0x1000,%ax <== NOT EXECUTED
1260f9: 0f 85 43 02 00 00 jne 126342 <fat_init_volume_info+0x351><== NOT EXECUTED
{
rtems_disk_release(vol->dd);
rtems_set_errno_and_return_minus_one( EINVAL );
}
for (vol->sec_mul = 0, i = (vol->bps >> FAT_SECTOR512_BITS); (i & 1) == 0;
1260ff: c6 43 03 00 movb $0x0,0x3(%ebx) <== NOT EXECUTED
126103: 66 c1 e8 09 shr $0x9,%ax <== NOT EXECUTED
126107: 0f b7 c0 movzwl %ax,%eax <== NOT EXECUTED
12610a: eb 05 jmp 126111 <fat_init_volume_info+0x120><== NOT EXECUTED
i >>= 1, vol->sec_mul++);
12610c: d1 f8 sar %eax <== NOT EXECUTED
12610e: fe 43 03 incb 0x3(%ebx) <== NOT EXECUTED
{
rtems_disk_release(vol->dd);
rtems_set_errno_and_return_minus_one( EINVAL );
}
for (vol->sec_mul = 0, i = (vol->bps >> FAT_SECTOR512_BITS); (i & 1) == 0;
126111: a8 01 test $0x1,%al <== NOT EXECUTED
126113: 74 f7 je 12610c <fat_init_volume_info+0x11b><== NOT EXECUTED
i >>= 1, vol->sec_mul++);
for (vol->sec_log2 = 0, i = vol->bps; (i & 1) == 0;
126115: c6 43 02 00 movb $0x0,0x2(%ebx) <== NOT EXECUTED
126119: 0f b7 03 movzwl (%ebx),%eax <== NOT EXECUTED
12611c: eb 05 jmp 126123 <fat_init_volume_info+0x132><== NOT EXECUTED
i >>= 1, vol->sec_log2++);
12611e: d1 f8 sar %eax <== NOT EXECUTED
126120: fe 43 02 incb 0x2(%ebx) <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
}
for (vol->sec_mul = 0, i = (vol->bps >> FAT_SECTOR512_BITS); (i & 1) == 0;
i >>= 1, vol->sec_mul++);
for (vol->sec_log2 = 0, i = vol->bps; (i & 1) == 0;
126123: a8 01 test $0x1,%al <== NOT EXECUTED
126125: 74 f7 je 12611e <fat_init_volume_info+0x12d><== NOT EXECUTED
if ( (ret1 < 0) || (ret2 < 0) )
return -1;
return RC_OK;
}
126127: 8a 85 43 ff ff ff mov -0xbd(%ebp),%al <== NOT EXECUTED
for (vol->sec_mul = 0, i = (vol->bps >> FAT_SECTOR512_BITS); (i & 1) == 0;
i >>= 1, vol->sec_mul++);
for (vol->sec_log2 = 0, i = vol->bps; (i & 1) == 0;
i >>= 1, vol->sec_log2++);
vol->spc = FAT_GET_BR_SECTORS_PER_CLUSTER(boot_rec);
12612d: 88 43 04 mov %al,0x4(%ebx) <== NOT EXECUTED
/*
* "sectors per cluster" of zero is invalid
* (and would hang the following loop)
*/
if (vol->spc == 0)
126130: 84 c0 test %al,%al <== NOT EXECUTED
126132: 0f 84 0a 02 00 00 je 126342 <fat_init_volume_info+0x351><== NOT EXECUTED
{
rtems_disk_release(vol->dd);
rtems_set_errno_and_return_minus_one(EINVAL);
}
for (vol->spc_log2 = 0, i = vol->spc; (i & 1) == 0;
126138: c6 43 05 00 movb $0x0,0x5(%ebx) <== NOT EXECUTED
12613c: 0f b6 c0 movzbl %al,%eax <== NOT EXECUTED
12613f: eb 05 jmp 126146 <fat_init_volume_info+0x155><== NOT EXECUTED
i >>= 1, vol->spc_log2++);
126141: d1 f8 sar %eax <== NOT EXECUTED
126143: fe 43 05 incb 0x5(%ebx) <== NOT EXECUTED
{
rtems_disk_release(vol->dd);
rtems_set_errno_and_return_minus_one(EINVAL);
}
for (vol->spc_log2 = 0, i = vol->spc; (i & 1) == 0;
126146: a8 01 test $0x1,%al <== NOT EXECUTED
126148: 74 f7 je 126141 <fat_init_volume_info+0x150><== NOT EXECUTED
i >>= 1, vol->spc_log2++);
/*
* "bytes per cluster" value greater than 32K is invalid
*/
if ((vol->bpc = vol->bps << vol->spc_log2) > MS_BYTES_PER_CLUSTER_LIMIT)
12614a: 0f b7 03 movzwl (%ebx),%eax <== NOT EXECUTED
12614d: 0f b6 4b 05 movzbl 0x5(%ebx),%ecx <== NOT EXECUTED
126151: d3 e0 shl %cl,%eax <== NOT EXECUTED
126153: 66 89 43 06 mov %ax,0x6(%ebx) <== NOT EXECUTED
126157: 66 3d 00 80 cmp $0x8000,%ax <== NOT EXECUTED
12615b: 0f 87 e1 01 00 00 ja 126342 <fat_init_volume_info+0x351><== NOT EXECUTED
{
rtems_disk_release(vol->dd);
rtems_set_errno_and_return_minus_one(EINVAL);
}
for (vol->bpc_log2 = 0, i = vol->bpc; (i & 1) == 0;
126161: c6 43 08 00 movb $0x0,0x8(%ebx) <== NOT EXECUTED
126165: 0f b7 c0 movzwl %ax,%eax <== NOT EXECUTED
126168: eb 05 jmp 12616f <fat_init_volume_info+0x17e><== NOT EXECUTED
i >>= 1, vol->bpc_log2++);
12616a: d1 f8 sar %eax <== NOT EXECUTED
12616c: fe 43 08 incb 0x8(%ebx) <== NOT EXECUTED
{
rtems_disk_release(vol->dd);
rtems_set_errno_and_return_minus_one(EINVAL);
}
for (vol->bpc_log2 = 0, i = vol->bpc; (i & 1) == 0;
12616f: a8 01 test $0x1,%al <== NOT EXECUTED
126171: 74 f7 je 12616a <fat_init_volume_info+0x179><== NOT EXECUTED
i >>= 1, vol->bpc_log2++);
vol->fats = FAT_GET_BR_FAT_NUM(boot_rec);
126173: 8a 85 46 ff ff ff mov -0xba(%ebp),%al <== NOT EXECUTED
126179: 88 43 09 mov %al,0x9(%ebx) <== NOT EXECUTED
vol->fat_loc = FAT_GET_BR_RESERVED_SECTORS_NUM(boot_rec);
12617c: 0f b6 95 45 ff ff ff movzbl -0xbb(%ebp),%edx <== NOT EXECUTED
126183: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
126186: 0f b6 85 44 ff ff ff movzbl -0xbc(%ebp),%eax <== NOT EXECUTED
12618d: 09 d0 or %edx,%eax <== NOT EXECUTED
12618f: 66 89 43 14 mov %ax,0x14(%ebx) <== NOT EXECUTED
vol->rdir_entrs = FAT_GET_BR_FILES_PER_ROOT_DIR(boot_rec);
126193: 0f b6 95 48 ff ff ff movzbl -0xb8(%ebp),%edx <== NOT EXECUTED
12619a: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
12619d: 0f b6 85 47 ff ff ff movzbl -0xb9(%ebp),%eax <== NOT EXECUTED
1261a4: 09 d0 or %edx,%eax <== NOT EXECUTED
1261a6: 66 89 43 20 mov %ax,0x20(%ebx) <== NOT EXECUTED
/* calculate the count of sectors occupied by the root directory */
vol->rdir_secs = ((vol->rdir_entrs * FAT_DIRENTRY_SIZE) + (vol->bps - 1)) /
1261aa: 0f b7 0b movzwl (%ebx),%ecx <== NOT EXECUTED
1261ad: 0f b7 c0 movzwl %ax,%eax <== NOT EXECUTED
1261b0: c1 e0 05 shl $0x5,%eax <== NOT EXECUTED
1261b3: 8d 44 01 ff lea -0x1(%ecx,%eax,1),%eax <== NOT EXECUTED
1261b7: 99 cltd <== NOT EXECUTED
1261b8: f7 f9 idiv %ecx <== NOT EXECUTED
1261ba: 89 43 24 mov %eax,0x24(%ebx) <== NOT EXECUTED
vol->bps;
vol->rdir_size = vol->rdir_secs << vol->sec_log2;
1261bd: 0f b6 4b 02 movzbl 0x2(%ebx),%ecx <== NOT EXECUTED
1261c1: d3 e0 shl %cl,%eax <== NOT EXECUTED
1261c3: 89 43 28 mov %eax,0x28(%ebx) <== NOT EXECUTED
if ( (FAT_GET_BR_SECTORS_PER_FAT(boot_rec)) != 0)
1261c6: 0f b6 85 4d ff ff ff movzbl -0xb3(%ebp),%eax <== NOT EXECUTED
1261cd: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
1261d0: 0f b6 95 4c ff ff ff movzbl -0xb4(%ebp),%edx <== NOT EXECUTED
1261d7: 66 09 d0 or %dx,%ax <== NOT EXECUTED
1261da: 74 05 je 1261e1 <fat_init_volume_info+0x1f0><== NOT EXECUTED
vol->fat_length = FAT_GET_BR_SECTORS_PER_FAT(boot_rec);
1261dc: 0f b7 c0 movzwl %ax,%eax <== NOT EXECUTED
1261df: eb 2b jmp 12620c <fat_init_volume_info+0x21b><== NOT EXECUTED
else
vol->fat_length = FAT_GET_BR_SECTORS_PER_FAT32(boot_rec);
1261e1: 0f b6 85 5b ff ff ff movzbl -0xa5(%ebp),%eax <== NOT EXECUTED
1261e8: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
1261eb: 0f b6 95 5c ff ff ff movzbl -0xa4(%ebp),%edx <== NOT EXECUTED
1261f2: c1 e2 10 shl $0x10,%edx <== NOT EXECUTED
1261f5: 09 d0 or %edx,%eax <== NOT EXECUTED
1261f7: 0f b6 95 5a ff ff ff movzbl -0xa6(%ebp),%edx <== NOT EXECUTED
1261fe: 09 d0 or %edx,%eax <== NOT EXECUTED
126200: 0f b6 95 5d ff ff ff movzbl -0xa3(%ebp),%edx <== NOT EXECUTED
126207: c1 e2 18 shl $0x18,%edx <== NOT EXECUTED
12620a: 09 d0 or %edx,%eax <== NOT EXECUTED
12620c: 89 43 18 mov %eax,0x18(%ebx) <== NOT EXECUTED
vol->data_fsec = vol->fat_loc + vol->fats * vol->fat_length +
12620f: 0f b7 53 14 movzwl 0x14(%ebx),%edx <== NOT EXECUTED
126213: 8b 4b 24 mov 0x24(%ebx),%ecx <== NOT EXECUTED
126216: 01 d1 add %edx,%ecx <== NOT EXECUTED
126218: 0f b6 43 09 movzbl 0x9(%ebx),%eax <== NOT EXECUTED
12621c: 0f af 43 18 imul 0x18(%ebx),%eax <== NOT EXECUTED
126220: 01 c1 add %eax,%ecx <== NOT EXECUTED
126222: 89 4b 30 mov %ecx,0x30(%ebx) <== NOT EXECUTED
vol->rdir_secs;
/* for FAT12/16 root dir starts at(sector) */
vol->rdir_loc = vol->fat_loc + vol->fats * vol->fat_length;
126225: 01 d0 add %edx,%eax <== NOT EXECUTED
126227: 89 43 1c mov %eax,0x1c(%ebx) <== NOT EXECUTED
if ( (FAT_GET_BR_TOTAL_SECTORS_NUM16(boot_rec)) != 0)
12622a: 0f b6 85 4a ff ff ff movzbl -0xb6(%ebp),%eax <== NOT EXECUTED
126231: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
126234: 0f b6 95 49 ff ff ff movzbl -0xb7(%ebp),%edx <== NOT EXECUTED
12623b: 66 09 d0 or %dx,%ax <== NOT EXECUTED
12623e: 74 05 je 126245 <fat_init_volume_info+0x254><== NOT EXECUTED
vol->tot_secs = FAT_GET_BR_TOTAL_SECTORS_NUM16(boot_rec);
126240: 0f b7 c0 movzwl %ax,%eax <== NOT EXECUTED
126243: eb 2b jmp 126270 <fat_init_volume_info+0x27f><== NOT EXECUTED
else
vol->tot_secs = FAT_GET_BR_TOTAL_SECTORS_NUM32(boot_rec);
126245: 0f b6 85 57 ff ff ff movzbl -0xa9(%ebp),%eax <== NOT EXECUTED
12624c: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
12624f: 0f b6 95 58 ff ff ff movzbl -0xa8(%ebp),%edx <== NOT EXECUTED
126256: c1 e2 10 shl $0x10,%edx <== NOT EXECUTED
126259: 09 d0 or %edx,%eax <== NOT EXECUTED
12625b: 0f b6 95 56 ff ff ff movzbl -0xaa(%ebp),%edx <== NOT EXECUTED
126262: 09 d0 or %edx,%eax <== NOT EXECUTED
126264: 0f b6 95 59 ff ff ff movzbl -0xa7(%ebp),%edx <== NOT EXECUTED
12626b: c1 e2 18 shl $0x18,%edx <== NOT EXECUTED
12626e: 09 d0 or %edx,%eax <== NOT EXECUTED
126270: 89 43 2c mov %eax,0x2c(%ebx) <== NOT EXECUTED
data_secs = vol->tot_secs - vol->data_fsec;
vol->data_cls = data_secs / vol->spc;
126273: 8b 43 2c mov 0x2c(%ebx),%eax <== NOT EXECUTED
126276: 2b 43 30 sub 0x30(%ebx),%eax <== NOT EXECUTED
126279: 0f b6 4b 04 movzbl 0x4(%ebx),%ecx <== NOT EXECUTED
12627d: 31 d2 xor %edx,%edx <== NOT EXECUTED
12627f: f7 f1 div %ecx <== NOT EXECUTED
126281: 89 43 34 mov %eax,0x34(%ebx) <== NOT EXECUTED
/* determine FAT type at least */
if ( vol->data_cls < FAT_FAT12_MAX_CLN)
126284: 3d f4 0f 00 00 cmp $0xff4,%eax <== NOT EXECUTED
126289: 77 14 ja 12629f <fat_init_volume_info+0x2ae><== NOT EXECUTED
{
vol->type = FAT_FAT12;
12628b: c6 43 0a 01 movb $0x1,0xa(%ebx) <== NOT EXECUTED
vol->mask = FAT_FAT12_MASK;
12628f: c7 43 0c ff 0f 00 00 movl $0xfff,0xc(%ebx) <== NOT EXECUTED
vol->eoc_val = FAT_FAT12_EOC;
126296: c7 43 10 f8 0f 00 00 movl $0xff8,0x10(%ebx) <== NOT EXECUTED
12629d: eb 2d jmp 1262cc <fat_init_volume_info+0x2db><== NOT EXECUTED
}
else
{
if ( vol->data_cls < FAT_FAT16_MAX_CLN)
12629f: 3d f4 ff 00 00 cmp $0xfff4,%eax <== NOT EXECUTED
1262a4: 77 14 ja 1262ba <fat_init_volume_info+0x2c9><== NOT EXECUTED
{
vol->type = FAT_FAT16;
1262a6: c6 43 0a 02 movb $0x2,0xa(%ebx) <== NOT EXECUTED
vol->mask = FAT_FAT16_MASK;
1262aa: c7 43 0c ff ff 00 00 movl $0xffff,0xc(%ebx) <== NOT EXECUTED
vol->eoc_val = FAT_FAT16_EOC;
1262b1: c7 43 10 f8 ff 00 00 movl $0xfff8,0x10(%ebx) <== NOT EXECUTED
1262b8: eb 12 jmp 1262cc <fat_init_volume_info+0x2db><== NOT EXECUTED
}
else
{
vol->type = FAT_FAT32;
1262ba: c6 43 0a 04 movb $0x4,0xa(%ebx) <== NOT EXECUTED
vol->mask = FAT_FAT32_MASK;
1262be: c7 43 0c ff ff ff 0f movl $0xfffffff,0xc(%ebx) <== NOT EXECUTED
vol->eoc_val = FAT_FAT32_EOC;
1262c5: c7 43 10 f8 ff ff 0f movl $0xffffff8,0x10(%ebx) <== NOT EXECUTED
fat_init_volume_info(rtems_filesystem_mount_table_entry_t *mt_entry)
{
rtems_status_code sc = RTEMS_SUCCESSFUL;
int rc = RC_OK;
fat_fs_info_t *fs_info = mt_entry->fs_info;
register fat_vol_t *vol = &fs_info->vol;
1262cc: 80 7b 0a 04 cmpb $0x4,0xa(%ebx) <== NOT EXECUTED
1262d0: 0f 85 92 01 00 00 jne 126468 <fat_init_volume_info+0x477><== NOT EXECUTED
}
}
if (vol->type == FAT_FAT32)
{
vol->rdir_cl = FAT_GET_BR_FAT32_ROOT_CLUSTER(boot_rec);
1262d6: 0f b6 85 63 ff ff ff movzbl -0x9d(%ebp),%eax <== NOT EXECUTED
1262dd: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
1262e0: 0f b6 95 64 ff ff ff movzbl -0x9c(%ebp),%edx <== NOT EXECUTED
1262e7: c1 e2 10 shl $0x10,%edx <== NOT EXECUTED
1262ea: 09 d0 or %edx,%eax <== NOT EXECUTED
1262ec: 0f b6 95 62 ff ff ff movzbl -0x9e(%ebp),%edx <== NOT EXECUTED
1262f3: 09 d0 or %edx,%eax <== NOT EXECUTED
1262f5: 0f b6 95 65 ff ff ff movzbl -0x9b(%ebp),%edx <== NOT EXECUTED
1262fc: c1 e2 18 shl $0x18,%edx <== NOT EXECUTED
1262ff: 09 d0 or %edx,%eax <== NOT EXECUTED
126301: 89 43 38 mov %eax,0x38(%ebx) <== NOT EXECUTED
vol->mirror = FAT_GET_BR_EXT_FLAGS(boot_rec) & FAT_BR_EXT_FLAGS_MIRROR;
126304: 8a 85 5e ff ff ff mov -0xa2(%ebp),%al <== NOT EXECUTED
12630a: 83 e0 80 and $0xffffff80,%eax <== NOT EXECUTED
12630d: 88 43 48 mov %al,0x48(%ebx) <== NOT EXECUTED
if (vol->mirror)
126310: 84 c0 test %al,%al <== NOT EXECUTED
126312: 74 0e je 126322 <fat_init_volume_info+0x331><== NOT EXECUTED
vol->afat = FAT_GET_BR_EXT_FLAGS(boot_rec) & FAT_BR_EXT_FLAGS_FAT_NUM;
126314: 8a 85 5e ff ff ff mov -0xa2(%ebp),%al <== NOT EXECUTED
12631a: 83 e0 0f and $0xf,%eax <== NOT EXECUTED
12631d: 88 43 50 mov %al,0x50(%ebx) <== NOT EXECUTED
126320: eb 04 jmp 126326 <fat_init_volume_info+0x335><== NOT EXECUTED
else
vol->afat = 0;
126322: c6 43 50 00 movb $0x0,0x50(%ebx) <== NOT EXECUTED
vol->info_sec = FAT_GET_BR_FAT32_FS_INFO_SECTOR(boot_rec);
126326: 0f b6 95 67 ff ff ff movzbl -0x99(%ebp),%edx <== NOT EXECUTED
12632d: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
126330: 0f b6 85 66 ff ff ff movzbl -0x9a(%ebp),%eax <== NOT EXECUTED
126337: 09 d0 or %edx,%eax <== NOT EXECUTED
126339: 66 89 43 3c mov %ax,0x3c(%ebx) <== NOT EXECUTED
if( vol->info_sec == 0 )
12633d: 66 85 c0 test %ax,%ax <== NOT EXECUTED
126340: 75 05 jne 126347 <fat_init_volume_info+0x356><== NOT EXECUTED
{
rtems_disk_release(vol->dd);
126342: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
126345: eb 58 jmp 12639f <fat_init_volume_info+0x3ae><== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
}
else
{
ret = _fat_block_read(mt_entry, vol->info_sec , 0,
126347: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12634a: 8d 75 d8 lea -0x28(%ebp),%esi <== NOT EXECUTED
12634d: 56 push %esi <== NOT EXECUTED
12634e: 6a 04 push $0x4 <== NOT EXECUTED
126350: 6a 00 push $0x0 <== NOT EXECUTED
126352: 0f b7 c0 movzwl %ax,%eax <== NOT EXECUTED
126355: 50 push %eax <== NOT EXECUTED
126356: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
126359: e8 0c fc ff ff call 125f6a <_fat_block_read> <== NOT EXECUTED
FAT_FSI_LEADSIG_SIZE, fs_info_sector);
if ( ret < 0 )
12635e: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
126361: 85 c0 test %eax,%eax <== NOT EXECUTED
126363: 79 05 jns 12636a <fat_init_volume_info+0x379><== NOT EXECUTED
{
rtems_disk_release(vol->dd);
126365: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
126368: eb 7b jmp 1263e5 <fat_init_volume_info+0x3f4><== NOT EXECUTED
return -1;
}
if (FAT_GET_FSINFO_LEAD_SIGNATURE(fs_info_sector) !=
12636a: 0f b6 45 d9 movzbl -0x27(%ebp),%eax <== NOT EXECUTED
12636e: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
126371: 0f b6 55 da movzbl -0x26(%ebp),%edx <== NOT EXECUTED
126375: c1 e2 10 shl $0x10,%edx <== NOT EXECUTED
126378: 09 d0 or %edx,%eax <== NOT EXECUTED
12637a: 0f b6 55 d8 movzbl -0x28(%ebp),%edx <== NOT EXECUTED
12637e: 09 d0 or %edx,%eax <== NOT EXECUTED
126380: 0f b6 55 db movzbl -0x25(%ebp),%edx <== NOT EXECUTED
126384: c1 e2 18 shl $0x18,%edx <== NOT EXECUTED
126387: 09 d0 or %edx,%eax <== NOT EXECUTED
126389: 3d 52 52 61 41 cmp $0x41615252,%eax <== NOT EXECUTED
12638e: 74 27 je 1263b7 <fat_init_volume_info+0x3c6><== NOT EXECUTED
int
_fat_block_release(
rtems_filesystem_mount_table_entry_t *mt_entry)
{
fat_fs_info_t *fs_info = mt_entry->fs_info;
return fat_buf_release(fs_info);
126390: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
126393: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
126396: ff 70 34 pushl 0x34(%eax) <== NOT EXECUTED
126399: e8 c1 f5 ff ff call 12595f <fat_buf_release> <== NOT EXECUTED
if (FAT_GET_FSINFO_LEAD_SIGNATURE(fs_info_sector) !=
FAT_FSINFO_LEAD_SIGNATURE_VALUE)
{
_fat_block_release(mt_entry);
rtems_disk_release(vol->dd);
12639e: 59 pop %ecx <== NOT EXECUTED
12639f: ff 73 5c pushl 0x5c(%ebx) <== NOT EXECUTED
1263a2: e8 cd 5a fe ff call 10be74 <rtems_disk_release> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
1263a7: e8 68 7c 01 00 call 13e014 <__errno> <== NOT EXECUTED
1263ac: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
1263b2: e9 1c 02 00 00 jmp 1265d3 <fat_init_volume_info+0x5e2><== NOT EXECUTED
}
else
{
ret = _fat_block_read(mt_entry, vol->info_sec , FAT_FSI_INFO,
1263b7: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1263ba: 56 push %esi <== NOT EXECUTED
1263bb: 6a 0c push $0xc <== NOT EXECUTED
1263bd: 68 e4 01 00 00 push $0x1e4 <== NOT EXECUTED
1263c2: 0f b7 43 3c movzwl 0x3c(%ebx),%eax <== NOT EXECUTED
1263c6: 50 push %eax <== NOT EXECUTED
1263c7: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
1263ca: e8 9b fb ff ff call 125f6a <_fat_block_read> <== NOT EXECUTED
FAT_USEFUL_INFO_SIZE, fs_info_sector);
if ( ret < 0 )
1263cf: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
1263d2: 85 c0 test %eax,%eax <== NOT EXECUTED
1263d4: 79 1c jns 1263f2 <fat_init_volume_info+0x401><== NOT EXECUTED
int
_fat_block_release(
rtems_filesystem_mount_table_entry_t *mt_entry)
{
fat_fs_info_t *fs_info = mt_entry->fs_info;
return fat_buf_release(fs_info);
1263d6: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1263d9: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
1263dc: ff 70 34 pushl 0x34(%eax) <== NOT EXECUTED
1263df: e8 7b f5 ff ff call 12595f <fat_buf_release> <== NOT EXECUTED
ret = _fat_block_read(mt_entry, vol->info_sec , FAT_FSI_INFO,
FAT_USEFUL_INFO_SIZE, fs_info_sector);
if ( ret < 0 )
{
_fat_block_release(mt_entry);
rtems_disk_release(vol->dd);
1263e4: 5a pop %edx <== NOT EXECUTED
1263e5: ff 73 5c pushl 0x5c(%ebx) <== NOT EXECUTED
1263e8: e8 87 5a fe ff call 10be74 <rtems_disk_release> <== NOT EXECUTED
1263ed: e9 e1 01 00 00 jmp 1265d3 <fat_init_volume_info+0x5e2><== NOT EXECUTED
return -1;
}
vol->free_cls = FAT_GET_FSINFO_FREE_CLUSTER_COUNT(fs_info_sector);
1263f2: 0f b6 45 dd movzbl -0x23(%ebp),%eax <== NOT EXECUTED
1263f6: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
1263f9: 0f b6 55 de movzbl -0x22(%ebp),%edx <== NOT EXECUTED
1263fd: c1 e2 10 shl $0x10,%edx <== NOT EXECUTED
126400: 09 d0 or %edx,%eax <== NOT EXECUTED
126402: 0f b6 55 dc movzbl -0x24(%ebp),%edx <== NOT EXECUTED
126406: 09 d0 or %edx,%eax <== NOT EXECUTED
126408: 0f b6 55 df movzbl -0x21(%ebp),%edx <== NOT EXECUTED
12640c: c1 e2 18 shl $0x18,%edx <== NOT EXECUTED
12640f: 09 d0 or %edx,%eax <== NOT EXECUTED
126411: 89 43 40 mov %eax,0x40(%ebx) <== NOT EXECUTED
vol->next_cl = FAT_GET_FSINFO_NEXT_FREE_CLUSTER(fs_info_sector);
126414: 0f b6 45 e1 movzbl -0x1f(%ebp),%eax <== NOT EXECUTED
126418: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
12641b: 0f b6 55 e2 movzbl -0x1e(%ebp),%edx <== NOT EXECUTED
12641f: c1 e2 10 shl $0x10,%edx <== NOT EXECUTED
126422: 09 d0 or %edx,%eax <== NOT EXECUTED
126424: 0f b6 55 e0 movzbl -0x20(%ebp),%edx <== NOT EXECUTED
126428: 09 d0 or %edx,%eax <== NOT EXECUTED
12642a: 0f b6 55 e3 movzbl -0x1d(%ebp),%edx <== NOT EXECUTED
12642e: c1 e2 18 shl $0x18,%edx <== NOT EXECUTED
126431: 09 d0 or %edx,%eax <== NOT EXECUTED
126433: 89 43 44 mov %eax,0x44(%ebx) <== NOT EXECUTED
rc = fat_fat32_update_fsinfo_sector(mt_entry, 0xFFFFFFFF,
126436: 50 push %eax <== NOT EXECUTED
126437: 6a ff push $0xffffffff <== NOT EXECUTED
126439: 6a ff push $0xffffffff <== NOT EXECUTED
12643b: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
12643e: e8 d3 f8 ff ff call 125d16 <fat_fat32_update_fsinfo_sector><== NOT EXECUTED
126443: 89 c6 mov %eax,%esi <== NOT EXECUTED
0xFFFFFFFF);
if ( rc != RC_OK )
126445: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
126448: 85 c0 test %eax,%eax <== NOT EXECUTED
12644a: 74 39 je 126485 <fat_init_volume_info+0x494><== NOT EXECUTED
int
_fat_block_release(
rtems_filesystem_mount_table_entry_t *mt_entry)
{
fat_fs_info_t *fs_info = mt_entry->fs_info;
return fat_buf_release(fs_info);
12644c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12644f: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
126452: ff 70 34 pushl 0x34(%eax) <== NOT EXECUTED
126455: e8 05 f5 ff ff call 12595f <fat_buf_release> <== NOT EXECUTED
rc = fat_fat32_update_fsinfo_sector(mt_entry, 0xFFFFFFFF,
0xFFFFFFFF);
if ( rc != RC_OK )
{
_fat_block_release(mt_entry);
rtems_disk_release(vol->dd);
12645a: 5f pop %edi <== NOT EXECUTED
12645b: ff 73 5c pushl 0x5c(%ebx) <== NOT EXECUTED
12645e: e8 11 5a fe ff call 10be74 <rtems_disk_release> <== NOT EXECUTED
126463: e9 6e 01 00 00 jmp 1265d6 <fat_init_volume_info+0x5e5><== NOT EXECUTED
}
}
}
else
{
vol->rdir_cl = 0;
126468: c7 43 38 00 00 00 00 movl $0x0,0x38(%ebx) <== NOT EXECUTED
vol->mirror = 0;
12646f: c6 43 48 00 movb $0x0,0x48(%ebx) <== NOT EXECUTED
vol->afat = 0;
126473: c6 43 50 00 movb $0x0,0x50(%ebx) <== NOT EXECUTED
vol->free_cls = 0xFFFFFFFF;
126477: c7 43 40 ff ff ff ff movl $0xffffffff,0x40(%ebx) <== NOT EXECUTED
vol->next_cl = 0xFFFFFFFF;
12647e: c7 43 44 ff ff ff ff movl $0xffffffff,0x44(%ebx) <== NOT EXECUTED
int
_fat_block_release(
rtems_filesystem_mount_table_entry_t *mt_entry)
{
fat_fs_info_t *fs_info = mt_entry->fs_info;
return fat_buf_release(fs_info);
126485: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
126488: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
12648b: ff 70 34 pushl 0x34(%eax) <== NOT EXECUTED
12648e: e8 cc f4 ff ff call 12595f <fat_buf_release> <== NOT EXECUTED
vol->next_cl = 0xFFFFFFFF;
}
_fat_block_release(mt_entry);
vol->afat_loc = vol->fat_loc + vol->fat_length * vol->afat;
126493: 0f b6 43 50 movzbl 0x50(%ebx),%eax <== NOT EXECUTED
126497: 0f af 43 18 imul 0x18(%ebx),%eax <== NOT EXECUTED
12649b: 0f b7 53 14 movzwl 0x14(%ebx),%edx <== NOT EXECUTED
12649f: 01 d0 add %edx,%eax <== NOT EXECUTED
1264a1: 89 43 4c mov %eax,0x4c(%ebx) <== NOT EXECUTED
/* set up collection of fat-files fd */
fs_info->vhash = calloc(FAT_HASH_SIZE, sizeof(rtems_chain_control));
1264a4: 5a pop %edx <== NOT EXECUTED
1264a5: 59 pop %ecx <== NOT EXECUTED
1264a6: 6a 0c push $0xc <== NOT EXECUTED
1264a8: 6a 02 push $0x2 <== NOT EXECUTED
1264aa: e8 1d 65 fe ff call 10c9cc <calloc> <== NOT EXECUTED
1264af: 89 43 64 mov %eax,0x64(%ebx) <== NOT EXECUTED
if ( fs_info->vhash == NULL )
1264b2: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1264b5: 85 c0 test %eax,%eax <== NOT EXECUTED
1264b7: 74 39 je 1264f2 <fat_init_volume_info+0x501><== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
1264b9: 8d 50 04 lea 0x4(%eax),%edx <== NOT EXECUTED
1264bc: 89 10 mov %edx,(%eax) <== NOT EXECUTED
the_chain->permanent_null = NULL;
1264be: c7 40 04 00 00 00 00 movl $0x0,0x4(%eax) <== NOT EXECUTED
the_chain->last = _Chain_Head(the_chain);
1264c5: 89 40 08 mov %eax,0x8(%eax) <== NOT EXECUTED
rtems_disk_release(vol->dd);
rtems_set_errno_and_return_minus_one( ENOMEM );
}
for (i = 0; i < FAT_HASH_SIZE; i++)
rtems_chain_initialize_empty(fs_info->vhash + i);
1264c8: 8d 50 0c lea 0xc(%eax),%edx <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
1264cb: 8d 48 10 lea 0x10(%eax),%ecx <== NOT EXECUTED
1264ce: 89 48 0c mov %ecx,0xc(%eax) <== NOT EXECUTED
the_chain->permanent_null = NULL;
1264d1: c7 42 04 00 00 00 00 movl $0x0,0x4(%edx) <== NOT EXECUTED
the_chain->last = _Chain_Head(the_chain);
1264d8: 89 52 08 mov %edx,0x8(%edx) <== NOT EXECUTED
fs_info->rhash = calloc(FAT_HASH_SIZE, sizeof(rtems_chain_control));
1264db: 50 push %eax <== NOT EXECUTED
1264dc: 50 push %eax <== NOT EXECUTED
1264dd: 6a 0c push $0xc <== NOT EXECUTED
1264df: 6a 02 push $0x2 <== NOT EXECUTED
1264e1: e8 e6 64 fe ff call 10c9cc <calloc> <== NOT EXECUTED
1264e6: 89 43 68 mov %eax,0x68(%ebx) <== NOT EXECUTED
if ( fs_info->rhash == NULL )
1264e9: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1264ec: 85 c0 test %eax,%eax <== NOT EXECUTED
1264ee: 75 12 jne 126502 <fat_init_volume_info+0x511><== NOT EXECUTED
1264f0: eb 69 jmp 12655b <fat_init_volume_info+0x56a><== NOT EXECUTED
/* set up collection of fat-files fd */
fs_info->vhash = calloc(FAT_HASH_SIZE, sizeof(rtems_chain_control));
if ( fs_info->vhash == NULL )
{
rtems_disk_release(vol->dd);
1264f2: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1264f5: ff 73 5c pushl 0x5c(%ebx) <== NOT EXECUTED
1264f8: e8 77 59 fe ff call 10be74 <rtems_disk_release> <== NOT EXECUTED
1264fd: e9 c6 00 00 00 jmp 1265c8 <fat_init_volume_info+0x5d7><== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
126502: 8d 50 04 lea 0x4(%eax),%edx <== NOT EXECUTED
126505: 89 10 mov %edx,(%eax) <== NOT EXECUTED
the_chain->permanent_null = NULL;
126507: c7 40 04 00 00 00 00 movl $0x0,0x4(%eax) <== NOT EXECUTED
the_chain->last = _Chain_Head(the_chain);
12650e: 89 40 08 mov %eax,0x8(%eax) <== NOT EXECUTED
rtems_disk_release(vol->dd);
free(fs_info->vhash);
rtems_set_errno_and_return_minus_one( ENOMEM );
}
for (i = 0; i < FAT_HASH_SIZE; i++)
rtems_chain_initialize_empty(fs_info->rhash + i);
126511: 8d 50 0c lea 0xc(%eax),%edx <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
126514: 8d 48 10 lea 0x10(%eax),%ecx <== NOT EXECUTED
126517: 89 48 0c mov %ecx,0xc(%eax) <== NOT EXECUTED
the_chain->permanent_null = NULL;
12651a: c7 42 04 00 00 00 00 movl $0x0,0x4(%edx) <== NOT EXECUTED
the_chain->last = _Chain_Head(the_chain);
126521: 89 52 08 mov %edx,0x8(%edx) <== NOT EXECUTED
fs_info->uino_pool_size = FAT_UINO_POOL_INIT_SIZE;
126524: c7 43 74 00 01 00 00 movl $0x100,0x74(%ebx) <== NOT EXECUTED
fs_info->uino_base = (vol->tot_secs << vol->sec_mul) << 4;
12652b: 0f b6 4b 03 movzbl 0x3(%ebx),%ecx <== NOT EXECUTED
12652f: 8b 43 2c mov 0x2c(%ebx),%eax <== NOT EXECUTED
126532: d3 e0 shl %cl,%eax <== NOT EXECUTED
126534: c1 e0 04 shl $0x4,%eax <== NOT EXECUTED
126537: 89 43 78 mov %eax,0x78(%ebx) <== NOT EXECUTED
fs_info->index = 0;
12653a: c7 43 70 00 00 00 00 movl $0x0,0x70(%ebx) <== NOT EXECUTED
fs_info->uino = (char *)calloc(fs_info->uino_pool_size, sizeof(char));
126541: 57 push %edi <== NOT EXECUTED
126542: 57 push %edi <== NOT EXECUTED
126543: 6a 01 push $0x1 <== NOT EXECUTED
126545: 68 00 01 00 00 push $0x100 <== NOT EXECUTED
12654a: e8 7d 64 fe ff call 10c9cc <calloc> <== NOT EXECUTED
12654f: 89 43 6c mov %eax,0x6c(%ebx) <== NOT EXECUTED
if ( fs_info->uino == NULL )
126552: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
126555: 85 c0 test %eax,%eax <== NOT EXECUTED
126557: 75 2d jne 126586 <fat_init_volume_info+0x595><== NOT EXECUTED
126559: eb 11 jmp 12656c <fat_init_volume_info+0x57b><== NOT EXECUTED
rtems_chain_initialize_empty(fs_info->vhash + i);
fs_info->rhash = calloc(FAT_HASH_SIZE, sizeof(rtems_chain_control));
if ( fs_info->rhash == NULL )
{
rtems_disk_release(vol->dd);
12655b: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12655e: ff 73 5c pushl 0x5c(%ebx) <== NOT EXECUTED
126561: e8 0e 59 fe ff call 10be74 <rtems_disk_release> <== NOT EXECUTED
free(fs_info->vhash);
126566: 5e pop %esi <== NOT EXECUTED
126567: ff 73 64 pushl 0x64(%ebx) <== NOT EXECUTED
12656a: eb 57 jmp 1265c3 <fat_init_volume_info+0x5d2><== NOT EXECUTED
fs_info->uino_base = (vol->tot_secs << vol->sec_mul) << 4;
fs_info->index = 0;
fs_info->uino = (char *)calloc(fs_info->uino_pool_size, sizeof(char));
if ( fs_info->uino == NULL )
{
rtems_disk_release(vol->dd);
12656c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12656f: ff 73 5c pushl 0x5c(%ebx) <== NOT EXECUTED
126572: e8 fd 58 fe ff call 10be74 <rtems_disk_release> <== NOT EXECUTED
free(fs_info->vhash);
126577: 59 pop %ecx <== NOT EXECUTED
126578: ff 73 64 pushl 0x64(%ebx) <== NOT EXECUTED
12657b: e8 1c 69 fe ff call 10ce9c <free> <== NOT EXECUTED
free(fs_info->rhash);
126580: 5a pop %edx <== NOT EXECUTED
126581: ff 73 68 pushl 0x68(%ebx) <== NOT EXECUTED
126584: eb 3d jmp 1265c3 <fat_init_volume_info+0x5d2><== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOMEM );
}
fs_info->sec_buf = (uint8_t *)calloc(vol->bps, sizeof(uint8_t));
126586: 50 push %eax <== NOT EXECUTED
126587: 50 push %eax <== NOT EXECUTED
126588: 6a 01 push $0x1 <== NOT EXECUTED
12658a: 0f b7 03 movzwl (%ebx),%eax <== NOT EXECUTED
12658d: 50 push %eax <== NOT EXECUTED
12658e: e8 39 64 fe ff call 10c9cc <calloc> <== NOT EXECUTED
126593: 89 83 88 00 00 00 mov %eax,0x88(%ebx) <== NOT EXECUTED
if (fs_info->sec_buf == NULL)
126599: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12659c: 31 f6 xor %esi,%esi <== NOT EXECUTED
12659e: 85 c0 test %eax,%eax <== NOT EXECUTED
1265a0: 75 37 jne 1265d9 <fat_init_volume_info+0x5e8><== NOT EXECUTED
{
rtems_disk_release(vol->dd);
1265a2: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1265a5: ff 73 5c pushl 0x5c(%ebx) <== NOT EXECUTED
1265a8: e8 c7 58 fe ff call 10be74 <rtems_disk_release> <== NOT EXECUTED
free(fs_info->vhash);
1265ad: 5f pop %edi <== NOT EXECUTED
1265ae: ff 73 64 pushl 0x64(%ebx) <== NOT EXECUTED
1265b1: e8 e6 68 fe ff call 10ce9c <free> <== NOT EXECUTED
free(fs_info->rhash);
1265b6: 5e pop %esi <== NOT EXECUTED
1265b7: ff 73 68 pushl 0x68(%ebx) <== NOT EXECUTED
1265ba: e8 dd 68 fe ff call 10ce9c <free> <== NOT EXECUTED
free(fs_info->uino);
1265bf: 59 pop %ecx <== NOT EXECUTED
1265c0: ff 73 6c pushl 0x6c(%ebx) <== NOT EXECUTED
1265c3: e8 d4 68 fe ff call 10ce9c <free> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOMEM );
1265c8: e8 47 7a 01 00 call 13e014 <__errno> <== NOT EXECUTED
1265cd: c7 00 0c 00 00 00 movl $0xc,(%eax) <== NOT EXECUTED
1265d3: 83 ce ff or $0xffffffff,%esi <== NOT EXECUTED
1265d6: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
return RC_OK;
}
1265d9: 89 f0 mov %esi,%eax <== NOT EXECUTED
1265db: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1265de: 5b pop %ebx <== NOT EXECUTED
1265df: 5e pop %esi <== NOT EXECUTED
1265e0: 5f pop %edi <== NOT EXECUTED
1265e1: c9 leave <== NOT EXECUTED
1265e2: c3 ret <== NOT EXECUTED
001258af <fat_ino_is_unique>:
inline bool
fat_ino_is_unique(
rtems_filesystem_mount_table_entry_t *mt_entry,
uint32_t ino
)
{
1258af: 55 push %ebp <== NOT EXECUTED
1258b0: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1258b2: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
1258b5: 8b 40 34 mov 0x34(%eax),%eax <== NOT EXECUTED
1258b8: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
1258bb: 3b 50 78 cmp 0x78(%eax),%edx <== NOT EXECUTED
1258be: 0f 93 c0 setae %al <== NOT EXECUTED
fat_fs_info_t *fs_info = mt_entry->fs_info;
return (ino >= fs_info->uino_base);
}
1258c1: c9 leave <== NOT EXECUTED
1258c2: c3 ret <== NOT EXECUTED
0013a607 <fat_scan_fat_for_free_clusters>:
uint32_t *chain,
uint32_t count,
uint32_t *cls_added,
uint32_t *last_cl
)
{
13a607: 55 push %ebp <== NOT EXECUTED
13a608: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13a60a: 57 push %edi <== NOT EXECUTED
13a60b: 56 push %esi <== NOT EXECUTED
13a60c: 53 push %ebx <== NOT EXECUTED
13a60d: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED
13a610: 8b 55 14 mov 0x14(%ebp),%edx <== NOT EXECUTED
int rc = RC_OK;
fat_fs_info_t *fs_info = mt_entry->fs_info;
13a613: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
13a616: 8b 78 34 mov 0x34(%eax),%edi <== NOT EXECUTED
uint32_t cl4find = 2;
uint32_t next_cln = 0;
13a619: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) <== NOT EXECUTED
uint32_t save_cln = 0;
uint32_t data_cls_val = fs_info->vol.data_cls + 2;
13a620: 8b 47 34 mov 0x34(%edi),%eax <== NOT EXECUTED
13a623: 83 c0 02 add $0x2,%eax <== NOT EXECUTED
13a626: 89 45 d0 mov %eax,-0x30(%ebp) <== NOT EXECUTED
uint32_t i = 2;
*cls_added = 0;
13a629: c7 02 00 00 00 00 movl $0x0,(%edx) <== NOT EXECUTED
if (count == 0)
13a62f: 31 f6 xor %esi,%esi <== NOT EXECUTED
13a631: 83 7d 10 00 cmpl $0x0,0x10(%ebp) <== NOT EXECUTED
13a635: 0f 84 3f 01 00 00 je 13a77a <fat_scan_fat_for_free_clusters+0x173><== NOT EXECUTED
return rc;
if (fs_info->vol.next_cl != FAT_UNDEFINED_VALUE)
13a63b: 8b 5f 44 mov 0x44(%edi),%ebx <== NOT EXECUTED
13a63e: 83 fb ff cmp $0xffffffff,%ebx <== NOT EXECUTED
13a641: 75 05 jne 13a648 <fat_scan_fat_for_free_clusters+0x41><== NOT EXECUTED
13a643: bb 02 00 00 00 mov $0x2,%ebx <== NOT EXECUTED
13a648: c7 45 d4 02 00 00 00 movl $0x2,-0x2c(%ebp) <== NOT EXECUTED
13a64f: 31 c9 xor %ecx,%ecx <== NOT EXECUTED
13a651: 89 d6 mov %edx,%esi <== NOT EXECUTED
13a653: e9 f3 00 00 00 jmp 13a74b <fat_scan_fat_for_free_clusters+0x144><== NOT EXECUTED
* starting at cluster 2, so the maximum valid cluster number is
* (fs_info->vol.data_cls + 1)
*/
while (i < data_cls_val)
{
rc = fat_get_fat_cluster(mt_entry, cl4find, &next_cln);
13a658: 50 push %eax <== NOT EXECUTED
13a659: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
13a65c: 50 push %eax <== NOT EXECUTED
13a65d: 53 push %ebx <== NOT EXECUTED
13a65e: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
13a661: 89 4d cc mov %ecx,-0x34(%ebp) <== NOT EXECUTED
13a664: e8 88 fd ff ff call 13a3f1 <fat_get_fat_cluster> <== NOT EXECUTED
if ( rc != RC_OK )
13a669: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13a66c: 85 c0 test %eax,%eax <== NOT EXECUTED
13a66e: 8b 4d cc mov -0x34(%ebp),%ecx <== NOT EXECUTED
13a671: 74 0f je 13a682 <fat_scan_fat_for_free_clusters+0x7b><== NOT EXECUTED
13a673: 89 f2 mov %esi,%edx <== NOT EXECUTED
{
if (*cls_added != 0)
13a675: 89 c6 mov %eax,%esi <== NOT EXECUTED
13a677: 83 3a 00 cmpl $0x0,(%edx) <== NOT EXECUTED
13a67a: 0f 84 fa 00 00 00 je 13a77a <fat_scan_fat_for_free_clusters+0x173><== NOT EXECUTED
13a680: eb 49 jmp 13a6cb <fat_scan_fat_for_free_clusters+0xc4><== NOT EXECUTED
fat_free_fat_clusters_chain(mt_entry, (*chain));
return rc;
}
if (next_cln == FAT_GENFAT_FREE)
13a682: 83 7d e4 00 cmpl $0x0,-0x1c(%ebp) <== NOT EXECUTED
13a686: 0f 85 b1 00 00 00 jne 13a73d <fat_scan_fat_for_free_clusters+0x136><== NOT EXECUTED
/*
* We are enforced to process allocation of the first free cluster
* by separate 'if' statement because otherwise undo function
* wouldn't work properly
*/
if (*cls_added == 0)
13a68c: 83 3e 00 cmpl $0x0,(%esi) <== NOT EXECUTED
13a68f: 75 1f jne 13a6b0 <fat_scan_fat_for_free_clusters+0xa9><== NOT EXECUTED
{
*chain = cl4find;
13a691: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
13a694: 89 18 mov %ebx,(%eax) <== NOT EXECUTED
rc = fat_set_fat_cluster(mt_entry, cl4find, FAT_GENFAT_EOC);
13a696: 52 push %edx <== NOT EXECUTED
13a697: 6a ff push $0xffffffff <== NOT EXECUTED
13a699: 53 push %ebx <== NOT EXECUTED
13a69a: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
13a69d: e8 36 fb ff ff call 13a1d8 <fat_set_fat_cluster> <== NOT EXECUTED
if ( rc != RC_OK )
13a6a2: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13a6a5: 85 c0 test %eax,%eax <== NOT EXECUTED
13a6a7: 74 71 je 13a71a <fat_scan_fat_for_free_clusters+0x113><== NOT EXECUTED
13a6a9: 89 c6 mov %eax,%esi <== NOT EXECUTED
13a6ab: e9 ca 00 00 00 jmp 13a77a <fat_scan_fat_for_free_clusters+0x173><== NOT EXECUTED
}
}
else
{
/* set EOC value to new allocated cluster */
rc = fat_set_fat_cluster(mt_entry, cl4find, FAT_GENFAT_EOC);
13a6b0: 50 push %eax <== NOT EXECUTED
13a6b1: 6a ff push $0xffffffff <== NOT EXECUTED
13a6b3: 53 push %ebx <== NOT EXECUTED
13a6b4: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
13a6b7: 89 4d cc mov %ecx,-0x34(%ebp) <== NOT EXECUTED
13a6ba: e8 19 fb ff ff call 13a1d8 <fat_set_fat_cluster> <== NOT EXECUTED
if ( rc != RC_OK )
13a6bf: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13a6c2: 85 c0 test %eax,%eax <== NOT EXECUTED
13a6c4: 8b 4d cc mov -0x34(%ebp),%ecx <== NOT EXECUTED
13a6c7: 74 16 je 13a6df <fat_scan_fat_for_free_clusters+0xd8><== NOT EXECUTED
13a6c9: 89 c6 mov %eax,%esi <== NOT EXECUTED
{
/* cleanup activity */
fat_free_fat_clusters_chain(mt_entry, (*chain));
13a6cb: 52 push %edx <== NOT EXECUTED
13a6cc: 52 push %edx <== NOT EXECUTED
13a6cd: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
13a6d0: ff 30 pushl (%eax) <== NOT EXECUTED
13a6d2: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
13a6d5: e8 81 fe ff ff call 13a55b <fat_free_fat_clusters_chain><== NOT EXECUTED
13a6da: e9 98 00 00 00 jmp 13a777 <fat_scan_fat_for_free_clusters+0x170><== NOT EXECUTED
return rc;
}
rc = fat_set_fat_cluster(mt_entry, save_cln, cl4find);
13a6df: 50 push %eax <== NOT EXECUTED
13a6e0: 53 push %ebx <== NOT EXECUTED
13a6e1: 51 push %ecx <== NOT EXECUTED
13a6e2: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
13a6e5: e8 ee fa ff ff call 13a1d8 <fat_set_fat_cluster> <== NOT EXECUTED
if ( rc != RC_OK )
13a6ea: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13a6ed: 85 c0 test %eax,%eax <== NOT EXECUTED
13a6ef: 74 29 je 13a71a <fat_scan_fat_for_free_clusters+0x113><== NOT EXECUTED
13a6f1: 89 c6 mov %eax,%esi <== NOT EXECUTED
{
/* cleanup activity */
fat_free_fat_clusters_chain(mt_entry, (*chain));
13a6f3: 51 push %ecx <== NOT EXECUTED
13a6f4: 51 push %ecx <== NOT EXECUTED
13a6f5: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
13a6f8: ff 30 pushl (%eax) <== NOT EXECUTED
13a6fa: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
13a6fd: e8 59 fe ff ff call 13a55b <fat_free_fat_clusters_chain><== NOT EXECUTED
/* trying to save last allocated cluster for future use */
fat_set_fat_cluster(mt_entry, cl4find, FAT_GENFAT_FREE);
13a702: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
13a705: 6a 00 push $0x0 <== NOT EXECUTED
13a707: 53 push %ebx <== NOT EXECUTED
13a708: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
13a70b: e8 c8 fa ff ff call 13a1d8 <fat_set_fat_cluster> <== NOT EXECUTED
fat_buf_release(fs_info);
13a710: 89 3c 24 mov %edi,(%esp) <== NOT EXECUTED
13a713: e8 47 b2 fe ff call 12595f <fat_buf_release> <== NOT EXECUTED
13a718: eb 5d jmp 13a777 <fat_scan_fat_for_free_clusters+0x170><== NOT EXECUTED
return rc;
}
}
save_cln = cl4find;
(*cls_added)++;
13a71a: 8b 06 mov (%esi),%eax <== NOT EXECUTED
13a71c: 40 inc %eax <== NOT EXECUTED
13a71d: 89 06 mov %eax,(%esi) <== NOT EXECUTED
/* have we satisfied request ? */
if (*cls_added == count)
13a71f: 3b 45 10 cmp 0x10(%ebp),%eax <== NOT EXECUTED
13a722: 75 17 jne 13a73b <fat_scan_fat_for_free_clusters+0x134><== NOT EXECUTED
{
fs_info->vol.next_cl = save_cln;
13a724: 89 5f 44 mov %ebx,0x44(%edi) <== NOT EXECUTED
if (fs_info->vol.free_cls != 0xFFFFFFFF)
13a727: 8b 47 40 mov 0x40(%edi),%eax <== NOT EXECUTED
13a72a: 83 f8 ff cmp $0xffffffff,%eax <== NOT EXECUTED
13a72d: 74 05 je 13a734 <fat_scan_fat_for_free_clusters+0x12d><== NOT EXECUTED
fs_info->vol.free_cls -= (*cls_added);
13a72f: 2b 06 sub (%esi),%eax <== NOT EXECUTED
13a731: 89 47 40 mov %eax,0x40(%edi) <== NOT EXECUTED
*last_cl = save_cln;
13a734: 8b 45 18 mov 0x18(%ebp),%eax <== NOT EXECUTED
13a737: 89 18 mov %ebx,(%eax) <== NOT EXECUTED
13a739: eb 31 jmp 13a76c <fat_scan_fat_for_free_clusters+0x165><== NOT EXECUTED
fat_buf_release(fs_info);
return rc;
13a73b: 89 d9 mov %ebx,%ecx <== NOT EXECUTED
}
}
i++;
cl4find++;
13a73d: 43 inc %ebx <== NOT EXECUTED
if (cl4find >= data_cls_val)
13a73e: 3b 5d d0 cmp -0x30(%ebp),%ebx <== NOT EXECUTED
13a741: 72 05 jb 13a748 <fat_scan_fat_for_free_clusters+0x141><== NOT EXECUTED
13a743: bb 02 00 00 00 mov $0x2,%ebx <== NOT EXECUTED
*last_cl = save_cln;
fat_buf_release(fs_info);
return rc;
}
}
i++;
13a748: ff 45 d4 incl -0x2c(%ebp) <== NOT EXECUTED
/*
* fs_info->vol.data_cls is exactly the count of data clusters
* starting at cluster 2, so the maximum valid cluster number is
* (fs_info->vol.data_cls + 1)
*/
while (i < data_cls_val)
13a74b: 8b 45 d0 mov -0x30(%ebp),%eax <== NOT EXECUTED
13a74e: 39 45 d4 cmp %eax,-0x2c(%ebp) <== NOT EXECUTED
13a751: 0f 82 01 ff ff ff jb 13a658 <fat_scan_fat_for_free_clusters+0x51><== NOT EXECUTED
cl4find++;
if (cl4find >= data_cls_val)
cl4find = 2;
}
fs_info->vol.next_cl = save_cln;
13a757: 89 4f 44 mov %ecx,0x44(%edi) <== NOT EXECUTED
if (fs_info->vol.free_cls != 0xFFFFFFFF)
13a75a: 8b 47 40 mov 0x40(%edi),%eax <== NOT EXECUTED
13a75d: 83 f8 ff cmp $0xffffffff,%eax <== NOT EXECUTED
13a760: 74 05 je 13a767 <fat_scan_fat_for_free_clusters+0x160><== NOT EXECUTED
fs_info->vol.free_cls -= (*cls_added);
13a762: 2b 06 sub (%esi),%eax <== NOT EXECUTED
13a764: 89 47 40 mov %eax,0x40(%edi) <== NOT EXECUTED
*last_cl = save_cln;
13a767: 8b 45 18 mov 0x18(%ebp),%eax <== NOT EXECUTED
13a76a: 89 08 mov %ecx,(%eax) <== NOT EXECUTED
fat_buf_release(fs_info);
13a76c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13a76f: 57 push %edi <== NOT EXECUTED
13a770: e8 ea b1 fe ff call 12595f <fat_buf_release> <== NOT EXECUTED
13a775: 31 f6 xor %esi,%esi <== NOT EXECUTED
return RC_OK;
13a777: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
13a77a: 89 f0 mov %esi,%eax <== NOT EXECUTED
13a77c: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13a77f: 5b pop %ebx <== NOT EXECUTED
13a780: 5e pop %esi <== NOT EXECUTED
13a781: 5f pop %edi <== NOT EXECUTED
13a782: c9 leave <== NOT EXECUTED
13a783: c3 ret <== NOT EXECUTED
0013a1d8 <fat_set_fat_cluster>:
fat_set_fat_cluster(
rtems_filesystem_mount_table_entry_t *mt_entry,
uint32_t cln,
uint32_t in_val
)
{
13a1d8: 55 push %ebp <== NOT EXECUTED
13a1d9: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13a1db: 57 push %edi <== NOT EXECUTED
13a1dc: 56 push %esi <== NOT EXECUTED
13a1dd: 53 push %ebx <== NOT EXECUTED
13a1de: 83 ec 3c sub $0x3c,%esp <== NOT EXECUTED
13a1e1: 8b 75 0c mov 0xc(%ebp),%esi <== NOT EXECUTED
int rc = RC_OK;
fat_fs_info_t *fs_info = mt_entry->fs_info;
13a1e4: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
13a1e7: 8b 58 34 mov 0x34(%eax),%ebx <== NOT EXECUTED
uint32_t sec = 0;
uint32_t ofs = 0;
uint16_t fat16_clv = 0;
uint32_t fat32_clv = 0;
rtems_bdbuf_buffer *block0 = NULL;
13a1ea: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) <== NOT EXECUTED
/* sanity check */
if ( (cln < 2) || (cln > (fs_info->vol.data_cls + 1)) )
13a1f1: 83 fe 01 cmp $0x1,%esi <== NOT EXECUTED
13a1f4: 0f 86 e1 01 00 00 jbe 13a3db <fat_set_fat_cluster+0x203><== NOT EXECUTED
13a1fa: 8b 43 34 mov 0x34(%ebx),%eax <== NOT EXECUTED
13a1fd: 40 inc %eax <== NOT EXECUTED
13a1fe: 39 c6 cmp %eax,%esi <== NOT EXECUTED
13a200: 0f 87 d5 01 00 00 ja 13a3db <fat_set_fat_cluster+0x203><== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
sec = (FAT_FAT_OFFSET(fs_info->vol.type, cln) >> fs_info->vol.sec_log2) +
13a206: 0f b6 43 0a movzbl 0xa(%ebx),%eax <== NOT EXECUTED
13a20a: 89 c2 mov %eax,%edx <== NOT EXECUTED
13a20c: 83 e2 01 and $0x1,%edx <== NOT EXECUTED
13a20f: 74 08 je 13a219 <fat_set_fat_cluster+0x41><== NOT EXECUTED
13a211: 89 f7 mov %esi,%edi <== NOT EXECUTED
13a213: d1 ef shr %edi <== NOT EXECUTED
13a215: 01 f7 add %esi,%edi <== NOT EXECUTED
13a217: eb 0e jmp 13a227 <fat_set_fat_cluster+0x4f><== NOT EXECUTED
13a219: 8d 3c 36 lea (%esi,%esi,1),%edi <== NOT EXECUTED
13a21c: a8 02 test $0x2,%al <== NOT EXECUTED
13a21e: 75 07 jne 13a227 <fat_set_fat_cluster+0x4f><== NOT EXECUTED
13a220: 8d 3c b5 00 00 00 00 lea 0x0(,%esi,4),%edi <== NOT EXECUTED
13a227: 0f b6 4b 02 movzbl 0x2(%ebx),%ecx <== NOT EXECUTED
13a22b: d3 ef shr %cl,%edi <== NOT EXECUTED
13a22d: 03 7b 4c add 0x4c(%ebx),%edi <== NOT EXECUTED
fs_info->vol.afat_loc;
ofs = FAT_FAT_OFFSET(fs_info->vol.type, cln) & (fs_info->vol.bps - 1);
13a230: 85 d2 test %edx,%edx <== NOT EXECUTED
13a232: 74 08 je 13a23c <fat_set_fat_cluster+0x64><== NOT EXECUTED
13a234: 89 f2 mov %esi,%edx <== NOT EXECUTED
13a236: d1 ea shr %edx <== NOT EXECUTED
13a238: 01 f2 add %esi,%edx <== NOT EXECUTED
13a23a: eb 0e jmp 13a24a <fat_set_fat_cluster+0x72><== NOT EXECUTED
13a23c: 8d 14 36 lea (%esi,%esi,1),%edx <== NOT EXECUTED
13a23f: a8 02 test $0x2,%al <== NOT EXECUTED
13a241: 75 07 jne 13a24a <fat_set_fat_cluster+0x72><== NOT EXECUTED
13a243: 8d 14 b5 00 00 00 00 lea 0x0(,%esi,4),%edx <== NOT EXECUTED
13a24a: 8b 03 mov (%ebx),%eax <== NOT EXECUTED
13a24c: 66 89 45 d6 mov %ax,-0x2a(%ebp) <== NOT EXECUTED
rc = fat_buf_access(fs_info, sec, FAT_OP_TYPE_READ, &block0);
13a250: 8d 4d e4 lea -0x1c(%ebp),%ecx <== NOT EXECUTED
13a253: 51 push %ecx <== NOT EXECUTED
13a254: 6a 01 push $0x1 <== NOT EXECUTED
13a256: 57 push %edi <== NOT EXECUTED
13a257: 53 push %ebx <== NOT EXECUTED
13a258: 89 55 d0 mov %edx,-0x30(%ebp) <== NOT EXECUTED
13a25b: e8 46 b8 fe ff call 125aa6 <fat_buf_access> <== NOT EXECUTED
if (rc != RC_OK)
13a260: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13a263: 85 c0 test %eax,%eax <== NOT EXECUTED
13a265: 8b 55 d0 mov -0x30(%ebp),%edx <== NOT EXECUTED
13a268: 0f 85 7b 01 00 00 jne 13a3e9 <fat_set_fat_cluster+0x211><== NOT EXECUTED
if ( (cln < 2) || (cln > (fs_info->vol.data_cls + 1)) )
rtems_set_errno_and_return_minus_one(EIO);
sec = (FAT_FAT_OFFSET(fs_info->vol.type, cln) >> fs_info->vol.sec_log2) +
fs_info->vol.afat_loc;
ofs = FAT_FAT_OFFSET(fs_info->vol.type, cln) & (fs_info->vol.bps - 1);
13a26e: 0f b7 4d d6 movzwl -0x2a(%ebp),%ecx <== NOT EXECUTED
13a272: 49 dec %ecx <== NOT EXECUTED
13a273: 21 d1 and %edx,%ecx <== NOT EXECUTED
rc = fat_buf_access(fs_info, sec, FAT_OP_TYPE_READ, &block0);
if (rc != RC_OK)
return rc;
switch ( fs_info->vol.type )
13a275: 8a 53 0a mov 0xa(%ebx),%dl <== NOT EXECUTED
13a278: 80 fa 02 cmp $0x2,%dl <== NOT EXECUTED
13a27b: 0f 84 2b 01 00 00 je 13a3ac <fat_set_fat_cluster+0x1d4><== NOT EXECUTED
13a281: 80 fa 04 cmp $0x4,%dl <== NOT EXECUTED
13a284: 0f 84 31 01 00 00 je 13a3bb <fat_set_fat_cluster+0x1e3><== NOT EXECUTED
13a28a: fe ca dec %dl <== NOT EXECUTED
13a28c: 0f 85 49 01 00 00 jne 13a3db <fat_set_fat_cluster+0x203><== NOT EXECUTED
{
case FAT_FAT12:
if ( FAT_CLUSTER_IS_ODD(cln) )
13a292: 83 e6 01 and $0x1,%esi <== NOT EXECUTED
13a295: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
13a298: 0f 84 89 00 00 00 je 13a327 <fat_set_fat_cluster+0x14f><== NOT EXECUTED
{
fat16_clv = ((uint16_t )in_val) << FAT_FAT12_SHIFT;
13a29e: 8b 75 10 mov 0x10(%ebp),%esi <== NOT EXECUTED
13a2a1: c1 e6 04 shl $0x4,%esi <== NOT EXECUTED
13a2a4: 66 89 75 d6 mov %si,-0x2a(%ebp) <== NOT EXECUTED
*((uint8_t *)(block0->buffer + ofs)) =
(*((uint8_t *)(block0->buffer + ofs))) & 0x0F;
13a2a8: 8b 52 20 mov 0x20(%edx),%edx <== NOT EXECUTED
13a2ab: 01 ca add %ecx,%edx <== NOT EXECUTED
{
case FAT_FAT12:
if ( FAT_CLUSTER_IS_ODD(cln) )
{
fat16_clv = ((uint16_t )in_val) << FAT_FAT12_SHIFT;
*((uint8_t *)(block0->buffer + ofs)) =
13a2ad: 80 22 0f andb $0xf,(%edx) <== NOT EXECUTED
(*((uint8_t *)(block0->buffer + ofs))) & 0x0F;
*((uint8_t *)(block0->buffer + ofs)) =
(*((uint8_t *)(block0->buffer + ofs))) |
13a2b0: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
13a2b3: 8b 72 20 mov 0x20(%edx),%esi <== NOT EXECUTED
13a2b6: 01 ce add %ecx,%esi <== NOT EXECUTED
13a2b8: 89 75 c4 mov %esi,-0x3c(%ebp) <== NOT EXECUTED
{
fat16_clv = ((uint16_t )in_val) << FAT_FAT12_SHIFT;
*((uint8_t *)(block0->buffer + ofs)) =
(*((uint8_t *)(block0->buffer + ofs))) & 0x0F;
*((uint8_t *)(block0->buffer + ofs)) =
13a2bb: 8a 55 d6 mov -0x2a(%ebp),%dl <== NOT EXECUTED
13a2be: 08 16 or %dl,(%esi) <== NOT EXECUTED
}
static inline void
fat_buf_mark_modified(fat_fs_info_t *fs_info)
{
fs_info->c.modified = true;
13a2c0: c6 83 80 00 00 00 01 movb $0x1,0x80(%ebx) <== NOT EXECUTED
(*((uint8_t *)(block0->buffer + ofs))) |
(uint8_t )(fat16_clv & 0x00FF);
fat_buf_mark_modified(fs_info);
if ( ofs == (fs_info->vol.bps - 1) )
13a2c7: 0f b7 13 movzwl (%ebx),%edx <== NOT EXECUTED
13a2ca: 4a dec %edx <== NOT EXECUTED
13a2cb: 39 d1 cmp %edx,%ecx <== NOT EXECUTED
13a2cd: 75 35 jne 13a304 <fat_set_fat_cluster+0x12c><== NOT EXECUTED
{
rc = fat_buf_access(fs_info, sec + 1, FAT_OP_TYPE_READ,
13a2cf: 8d 4d e4 lea -0x1c(%ebp),%ecx <== NOT EXECUTED
13a2d2: 51 push %ecx <== NOT EXECUTED
13a2d3: 6a 01 push $0x1 <== NOT EXECUTED
13a2d5: 47 inc %edi <== NOT EXECUTED
13a2d6: 57 push %edi <== NOT EXECUTED
13a2d7: 53 push %ebx <== NOT EXECUTED
13a2d8: e8 c9 b7 fe ff call 125aa6 <fat_buf_access> <== NOT EXECUTED
&block0);
if (rc != RC_OK)
13a2dd: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13a2e0: 85 c0 test %eax,%eax <== NOT EXECUTED
13a2e2: 0f 85 01 01 00 00 jne 13a3e9 <fat_set_fat_cluster+0x211><== NOT EXECUTED
return rc;
*((uint8_t *)(block0->buffer)) &= 0x00;
13a2e8: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
13a2eb: 8b 52 20 mov 0x20(%edx),%edx <== NOT EXECUTED
13a2ee: c6 02 00 movb $0x0,(%edx) <== NOT EXECUTED
*((uint8_t *)(block0->buffer)) =
(*((uint8_t *)(block0->buffer))) |
13a2f1: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
13a2f4: 8b 52 20 mov 0x20(%edx),%edx <== NOT EXECUTED
if (rc != RC_OK)
return rc;
*((uint8_t *)(block0->buffer)) &= 0x00;
*((uint8_t *)(block0->buffer)) =
13a2f7: 66 8b 4d d6 mov -0x2a(%ebp),%cx <== NOT EXECUTED
13a2fb: 66 c1 e9 08 shr $0x8,%cx <== NOT EXECUTED
13a2ff: e9 83 00 00 00 jmp 13a387 <fat_set_fat_cluster+0x1af><== NOT EXECUTED
fat_buf_mark_modified(fs_info);
}
else
{
*((uint8_t *)(block0->buffer + ofs + 1)) &= 0x00;
13a304: 8d 51 01 lea 0x1(%ecx),%edx <== NOT EXECUTED
13a307: 8b 5d e4 mov -0x1c(%ebp),%ebx <== NOT EXECUTED
13a30a: 8b 5b 20 mov 0x20(%ebx),%ebx <== NOT EXECUTED
13a30d: c6 44 0b 01 00 movb $0x0,0x1(%ebx,%ecx,1) <== NOT EXECUTED
*((uint8_t *)(block0->buffer + ofs + 1)) =
(*((uint8_t *)(block0->buffer + ofs + 1))) |
13a312: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED
13a315: 03 51 20 add 0x20(%ecx),%edx <== NOT EXECUTED
}
else
{
*((uint8_t *)(block0->buffer + ofs + 1)) &= 0x00;
*((uint8_t *)(block0->buffer + ofs + 1)) =
13a318: 66 8b 4d d6 mov -0x2a(%ebp),%cx <== NOT EXECUTED
13a31c: 66 c1 e9 08 shr $0x8,%cx <== NOT EXECUTED
13a320: 08 0a or %cl,(%edx) <== NOT EXECUTED
13a322: e9 c2 00 00 00 jmp 13a3e9 <fat_set_fat_cluster+0x211><== NOT EXECUTED
(uint8_t )((fat16_clv & 0xFF00)>>8);
}
}
else
{
fat16_clv = ((uint16_t )in_val) & FAT_FAT12_MASK;
13a327: 8b 75 10 mov 0x10(%ebp),%esi <== NOT EXECUTED
13a32a: 66 81 e6 ff 0f and $0xfff,%si <== NOT EXECUTED
13a32f: 66 89 75 d6 mov %si,-0x2a(%ebp) <== NOT EXECUTED
*((uint8_t *)(block0->buffer + ofs)) &= 0x00;
13a333: 8b 52 20 mov 0x20(%edx),%edx <== NOT EXECUTED
13a336: c6 04 0a 00 movb $0x0,(%edx,%ecx,1) <== NOT EXECUTED
*((uint8_t *)(block0->buffer + ofs)) =
(*((uint8_t *)(block0->buffer + ofs))) |
13a33a: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
13a33d: 8b 72 20 mov 0x20(%edx),%esi <== NOT EXECUTED
13a340: 01 ce add %ecx,%esi <== NOT EXECUTED
13a342: 89 75 c4 mov %esi,-0x3c(%ebp) <== NOT EXECUTED
else
{
fat16_clv = ((uint16_t )in_val) & FAT_FAT12_MASK;
*((uint8_t *)(block0->buffer + ofs)) &= 0x00;
*((uint8_t *)(block0->buffer + ofs)) =
13a345: 8a 55 d6 mov -0x2a(%ebp),%dl <== NOT EXECUTED
13a348: 08 16 or %dl,(%esi) <== NOT EXECUTED
13a34a: c6 83 80 00 00 00 01 movb $0x1,0x80(%ebx) <== NOT EXECUTED
(*((uint8_t *)(block0->buffer + ofs))) |
(uint8_t )(fat16_clv & 0x00FF);
fat_buf_mark_modified(fs_info);
if ( ofs == (fs_info->vol.bps - 1) )
13a351: 0f b7 13 movzwl (%ebx),%edx <== NOT EXECUTED
13a354: 4a dec %edx <== NOT EXECUTED
13a355: 39 d1 cmp %edx,%ecx <== NOT EXECUTED
13a357: 75 32 jne 13a38b <fat_set_fat_cluster+0x1b3><== NOT EXECUTED
{
rc = fat_buf_access(fs_info, sec + 1, FAT_OP_TYPE_READ,
13a359: 8d 4d e4 lea -0x1c(%ebp),%ecx <== NOT EXECUTED
13a35c: 51 push %ecx <== NOT EXECUTED
13a35d: 6a 01 push $0x1 <== NOT EXECUTED
13a35f: 47 inc %edi <== NOT EXECUTED
13a360: 57 push %edi <== NOT EXECUTED
13a361: 53 push %ebx <== NOT EXECUTED
13a362: e8 3f b7 fe ff call 125aa6 <fat_buf_access> <== NOT EXECUTED
&block0);
if (rc != RC_OK)
13a367: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13a36a: 85 c0 test %eax,%eax <== NOT EXECUTED
13a36c: 75 7b jne 13a3e9 <fat_set_fat_cluster+0x211><== NOT EXECUTED
return rc;
*((uint8_t *)(block0->buffer)) =
(*((uint8_t *)(block0->buffer))) & 0xF0;
13a36e: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
13a371: 8b 52 20 mov 0x20(%edx),%edx <== NOT EXECUTED
rc = fat_buf_access(fs_info, sec + 1, FAT_OP_TYPE_READ,
&block0);
if (rc != RC_OK)
return rc;
*((uint8_t *)(block0->buffer)) =
13a374: 80 22 f0 andb $0xf0,(%edx) <== NOT EXECUTED
(*((uint8_t *)(block0->buffer))) & 0xF0;
*((uint8_t *)(block0->buffer)) =
(*((uint8_t *)(block0->buffer))) |
13a377: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
13a37a: 8b 52 20 mov 0x20(%edx),%edx <== NOT EXECUTED
return rc;
*((uint8_t *)(block0->buffer)) =
(*((uint8_t *)(block0->buffer))) & 0xF0;
*((uint8_t *)(block0->buffer)) =
13a37d: 66 8b 75 d6 mov -0x2a(%ebp),%si <== NOT EXECUTED
13a381: 66 c1 ee 08 shr $0x8,%si <== NOT EXECUTED
13a385: 89 f1 mov %esi,%ecx <== NOT EXECUTED
13a387: 08 0a or %cl,(%edx) <== NOT EXECUTED
13a389: eb 47 jmp 13a3d2 <fat_set_fat_cluster+0x1fa><== NOT EXECUTED
fat_buf_mark_modified(fs_info);
}
else
{
*((uint8_t *)(block0->buffer + ofs + 1)) =
(*((uint8_t *)(block0->buffer + ofs + 1))) & 0xF0;
13a38b: 41 inc %ecx <== NOT EXECUTED
13a38c: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
13a38f: 8b 5a 20 mov 0x20(%edx),%ebx <== NOT EXECUTED
13a392: 8d 14 19 lea (%ecx,%ebx,1),%edx <== NOT EXECUTED
fat_buf_mark_modified(fs_info);
}
else
{
*((uint8_t *)(block0->buffer + ofs + 1)) =
13a395: 80 22 f0 andb $0xf0,(%edx) <== NOT EXECUTED
(*((uint8_t *)(block0->buffer + ofs + 1))) & 0xF0;
*((uint8_t *)(block0->buffer + ofs+1)) =
(*((uint8_t *)(block0->buffer + ofs+1))) |
13a398: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
13a39b: 03 4a 20 add 0x20(%edx),%ecx <== NOT EXECUTED
else
{
*((uint8_t *)(block0->buffer + ofs + 1)) =
(*((uint8_t *)(block0->buffer + ofs + 1))) & 0xF0;
*((uint8_t *)(block0->buffer + ofs+1)) =
13a39e: 66 8b 75 d6 mov -0x2a(%ebp),%si <== NOT EXECUTED
13a3a2: 66 c1 ee 08 shr $0x8,%si <== NOT EXECUTED
13a3a6: 89 f2 mov %esi,%edx <== NOT EXECUTED
13a3a8: 08 11 or %dl,(%ecx) <== NOT EXECUTED
13a3aa: eb 3d jmp 13a3e9 <fat_set_fat_cluster+0x211><== NOT EXECUTED
}
}
break;
case FAT_FAT16:
*((uint16_t *)(block0->buffer + ofs)) =
13a3ac: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
13a3af: 8b 52 20 mov 0x20(%edx),%edx <== NOT EXECUTED
13a3b2: 8b 75 10 mov 0x10(%ebp),%esi <== NOT EXECUTED
13a3b5: 66 89 34 0a mov %si,(%edx,%ecx,1) <== NOT EXECUTED
13a3b9: eb 17 jmp 13a3d2 <fat_set_fat_cluster+0x1fa><== NOT EXECUTED
case FAT_FAT32:
fat32_clv = CT_LE_L((in_val & FAT_FAT32_MASK));
*((uint32_t *)(block0->buffer + ofs)) =
(*((uint32_t *)(block0->buffer + ofs))) & (CT_LE_L(0xF0000000));
13a3bb: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
13a3be: 03 4a 20 add 0x20(%edx),%ecx <== NOT EXECUTED
break;
case FAT_FAT32:
fat32_clv = CT_LE_L((in_val & FAT_FAT32_MASK));
*((uint32_t *)(block0->buffer + ofs)) =
13a3c1: 81 21 00 00 00 f0 andl $0xf0000000,(%ecx) <== NOT EXECUTED
(*((uint32_t *)(block0->buffer + ofs))) & (CT_LE_L(0xF0000000));
*((uint32_t *)(block0->buffer + ofs)) =
13a3c7: 8b 75 10 mov 0x10(%ebp),%esi <== NOT EXECUTED
13a3ca: 81 e6 ff ff ff 0f and $0xfffffff,%esi <== NOT EXECUTED
13a3d0: 09 31 or %esi,(%ecx) <== NOT EXECUTED
13a3d2: c6 83 80 00 00 00 01 movb $0x1,0x80(%ebx) <== NOT EXECUTED
13a3d9: eb 0e jmp 13a3e9 <fat_set_fat_cluster+0x211><== NOT EXECUTED
fat_buf_mark_modified(fs_info);
break;
default:
rtems_set_errno_and_return_minus_one(EIO);
13a3db: e8 34 3c 00 00 call 13e014 <__errno> <== NOT EXECUTED
13a3e0: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
13a3e6: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
break;
}
return RC_OK;
}
13a3e9: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13a3ec: 5b pop %ebx <== NOT EXECUTED
13a3ed: 5e pop %esi <== NOT EXECUTED
13a3ee: 5f pop %edi <== NOT EXECUTED
13a3ef: c9 leave <== NOT EXECUTED
13a3f0: c3 ret <== NOT EXECUTED
00125d7a <fat_shutdown_drive>:
* RC_OK on success, or -1 if error occured
* and errno set appropriately
*/
int
fat_shutdown_drive(rtems_filesystem_mount_table_entry_t *mt_entry)
{
125d7a: 55 push %ebp <== NOT EXECUTED
125d7b: 89 e5 mov %esp,%ebp <== NOT EXECUTED
125d7d: 57 push %edi <== NOT EXECUTED
125d7e: 56 push %esi <== NOT EXECUTED
125d7f: 53 push %ebx <== NOT EXECUTED
125d80: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
125d83: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
int rc = RC_OK;
fat_fs_info_t *fs_info = mt_entry->fs_info;
125d86: 8b 58 34 mov 0x34(%eax),%ebx <== NOT EXECUTED
int i = 0;
if (fs_info->vol.type & FAT_FAT32)
125d89: 31 f6 xor %esi,%esi <== NOT EXECUTED
125d8b: f6 43 0a 04 testb $0x4,0xa(%ebx) <== NOT EXECUTED
125d8f: 74 19 je 125daa <fat_shutdown_drive+0x30><== NOT EXECUTED
{
rc = fat_fat32_update_fsinfo_sector(mt_entry, fs_info->vol.free_cls,
125d91: 52 push %edx <== NOT EXECUTED
125d92: ff 73 44 pushl 0x44(%ebx) <== NOT EXECUTED
125d95: ff 73 40 pushl 0x40(%ebx) <== NOT EXECUTED
125d98: 50 push %eax <== NOT EXECUTED
125d99: e8 78 ff ff ff call 125d16 <fat_fat32_update_fsinfo_sector><== NOT EXECUTED
125d9e: 89 c6 mov %eax,%esi <== NOT EXECUTED
fs_info->vol.next_cl);
if ( rc != RC_OK )
125da0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
125da3: 85 c0 test %eax,%eax <== NOT EXECUTED
125da5: 74 03 je 125daa <fat_shutdown_drive+0x30><== NOT EXECUTED
125da7: 83 ce ff or $0xffffffff,%esi <== NOT EXECUTED
rc = -1;
}
fat_buf_release(fs_info);
125daa: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
125dad: 53 push %ebx <== NOT EXECUTED
125dae: e8 ac fb ff ff call 12595f <fat_buf_release> <== NOT EXECUTED
if (rtems_bdbuf_syncdev(fs_info->vol.dev) != RTEMS_SUCCESSFUL)
125db3: 59 pop %ecx <== NOT EXECUTED
125db4: 5f pop %edi <== NOT EXECUTED
125db5: ff 73 58 pushl 0x58(%ebx) <== NOT EXECUTED
125db8: ff 73 54 pushl 0x54(%ebx) <== NOT EXECUTED
125dbb: e8 62 39 fe ff call 109722 <rtems_bdbuf_syncdev> <== NOT EXECUTED
125dc0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
125dc3: 85 c0 test %eax,%eax <== NOT EXECUTED
125dc5: 74 03 je 125dca <fat_shutdown_drive+0x50><== NOT EXECUTED
125dc7: 83 ce ff or $0xffffffff,%esi <== NOT EXECUTED
125dca: 31 ff xor %edi,%edi <== NOT EXECUTED
rc = -1;
for (i = 0; i < FAT_HASH_SIZE; i++)
{
rtems_chain_node *node = NULL;
rtems_chain_control *the_chain = fs_info->vhash + i;
125dcc: 8b 43 64 mov 0x64(%ebx),%eax <== NOT EXECUTED
125dcf: 01 f8 add %edi,%eax <== NOT EXECUTED
125dd1: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
while ( (node = rtems_chain_get(the_chain)) != NULL )
125dd4: eb 0c jmp 125de2 <fat_shutdown_drive+0x68><== NOT EXECUTED
free(node);
125dd6: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
125dd9: 50 push %eax <== NOT EXECUTED
125dda: e8 bd 70 fe ff call 10ce9c <free> <== NOT EXECUTED
125ddf: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get(
rtems_chain_control *the_chain
)
{
return _Chain_Get( the_chain );
125de2: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
125de5: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
125de8: e8 c3 b8 fe ff call 1116b0 <_Chain_Get> <== NOT EXECUTED
for (i = 0; i < FAT_HASH_SIZE; i++)
{
rtems_chain_node *node = NULL;
rtems_chain_control *the_chain = fs_info->vhash + i;
while ( (node = rtems_chain_get(the_chain)) != NULL )
125ded: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
125df0: 85 c0 test %eax,%eax <== NOT EXECUTED
125df2: 75 e2 jne 125dd6 <fat_shutdown_drive+0x5c><== NOT EXECUTED
125df4: 83 c7 0c add $0xc,%edi <== NOT EXECUTED
fat_buf_release(fs_info);
if (rtems_bdbuf_syncdev(fs_info->vol.dev) != RTEMS_SUCCESSFUL)
rc = -1;
for (i = 0; i < FAT_HASH_SIZE; i++)
125df7: 83 ff 18 cmp $0x18,%edi <== NOT EXECUTED
125dfa: 75 d0 jne 125dcc <fat_shutdown_drive+0x52><== NOT EXECUTED
125dfc: 66 31 ff xor %di,%di <== NOT EXECUTED
}
for (i = 0; i < FAT_HASH_SIZE; i++)
{
rtems_chain_node *node = NULL;
rtems_chain_control *the_chain = fs_info->rhash + i;
125dff: 8b 43 68 mov 0x68(%ebx),%eax <== NOT EXECUTED
125e02: 01 f8 add %edi,%eax <== NOT EXECUTED
125e04: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
while ( (node = rtems_chain_get(the_chain)) != NULL )
125e07: eb 0c jmp 125e15 <fat_shutdown_drive+0x9b><== NOT EXECUTED
free(node);
125e09: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
125e0c: 50 push %eax <== NOT EXECUTED
125e0d: e8 8a 70 fe ff call 10ce9c <free> <== NOT EXECUTED
125e12: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
125e15: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
125e18: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
125e1b: e8 90 b8 fe ff call 1116b0 <_Chain_Get> <== NOT EXECUTED
for (i = 0; i < FAT_HASH_SIZE; i++)
{
rtems_chain_node *node = NULL;
rtems_chain_control *the_chain = fs_info->rhash + i;
while ( (node = rtems_chain_get(the_chain)) != NULL )
125e20: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
125e23: 85 c0 test %eax,%eax <== NOT EXECUTED
125e25: 75 e2 jne 125e09 <fat_shutdown_drive+0x8f><== NOT EXECUTED
125e27: 83 c7 0c add $0xc,%edi <== NOT EXECUTED
while ( (node = rtems_chain_get(the_chain)) != NULL )
free(node);
}
for (i = 0; i < FAT_HASH_SIZE; i++)
125e2a: 83 ff 18 cmp $0x18,%edi <== NOT EXECUTED
125e2d: 75 d0 jne 125dff <fat_shutdown_drive+0x85><== NOT EXECUTED
while ( (node = rtems_chain_get(the_chain)) != NULL )
free(node);
}
free(fs_info->vhash);
125e2f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
125e32: ff 73 64 pushl 0x64(%ebx) <== NOT EXECUTED
125e35: e8 62 70 fe ff call 10ce9c <free> <== NOT EXECUTED
free(fs_info->rhash);
125e3a: 5a pop %edx <== NOT EXECUTED
125e3b: ff 73 68 pushl 0x68(%ebx) <== NOT EXECUTED
125e3e: e8 59 70 fe ff call 10ce9c <free> <== NOT EXECUTED
free(fs_info->uino);
125e43: 58 pop %eax <== NOT EXECUTED
125e44: ff 73 6c pushl 0x6c(%ebx) <== NOT EXECUTED
125e47: e8 50 70 fe ff call 10ce9c <free> <== NOT EXECUTED
free(fs_info->sec_buf);
125e4c: 5f pop %edi <== NOT EXECUTED
125e4d: ff b3 88 00 00 00 pushl 0x88(%ebx) <== NOT EXECUTED
125e53: e8 44 70 fe ff call 10ce9c <free> <== NOT EXECUTED
rtems_disk_release(fs_info->vol.dd);
125e58: 59 pop %ecx <== NOT EXECUTED
125e59: ff 73 5c pushl 0x5c(%ebx) <== NOT EXECUTED
125e5c: e8 13 60 fe ff call 10be74 <rtems_disk_release> <== NOT EXECUTED
if (rc)
125e61: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
125e64: 85 f6 test %esi,%esi <== NOT EXECUTED
125e66: 74 0b je 125e73 <fat_shutdown_drive+0xf9><== NOT EXECUTED
errno = EIO;
125e68: e8 a7 81 01 00 call 13e014 <__errno> <== NOT EXECUTED
125e6d: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
return rc;
}
125e73: 89 f0 mov %esi,%eax <== NOT EXECUTED
125e75: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
125e78: 5b pop %ebx <== NOT EXECUTED
125e79: 5e pop %esi <== NOT EXECUTED
125e7a: 5f pop %edi <== NOT EXECUTED
125e7b: c9 leave <== NOT EXECUTED
125e7c: c3 ret <== NOT EXECUTED
0013ab38 <fchdir>:
#include <rtems/seterr.h>
int fchdir(
int fd
)
{
13ab38: 55 push %ebp <== NOT EXECUTED
13ab39: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13ab3b: 57 push %edi <== NOT EXECUTED
13ab3c: 56 push %esi <== NOT EXECUTED
13ab3d: 53 push %ebx <== NOT EXECUTED
13ab3e: 83 ec 3c sub $0x3c,%esp <== NOT EXECUTED
13ab41: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
rtems_libio_t *iop;
rtems_filesystem_location_info_t loc, saved;
rtems_libio_check_fd( fd );
13ab44: 3b 1d 44 26 16 00 cmp 0x162644,%ebx <== NOT EXECUTED
13ab4a: 73 0f jae 13ab5b <fchdir+0x23> <== NOT EXECUTED
iop = rtems_libio_iop( fd );
13ab4c: c1 e3 06 shl $0x6,%ebx <== NOT EXECUTED
13ab4f: 03 1d d4 9f 16 00 add 0x169fd4,%ebx <== NOT EXECUTED
rtems_libio_check_is_open(iop);
13ab55: f6 43 15 01 testb $0x1,0x15(%ebx) <== NOT EXECUTED
13ab59: 75 10 jne 13ab6b <fchdir+0x33> <== NOT EXECUTED
13ab5b: e8 b4 34 00 00 call 13e014 <__errno> <== NOT EXECUTED
13ab60: c7 00 09 00 00 00 movl $0x9,(%eax) <== NOT EXECUTED
13ab66: e9 83 00 00 00 jmp 13abee <fchdir+0xb6> <== NOT EXECUTED
/*
* Verify you can change directory into this node.
*/
if ( !iop->pathinfo.ops ) {
13ab6b: 8b 43 24 mov 0x24(%ebx),%eax <== NOT EXECUTED
13ab6e: 85 c0 test %eax,%eax <== NOT EXECUTED
13ab70: 74 07 je 13ab79 <fchdir+0x41> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
if ( !iop->pathinfo.ops->node_type_h ) {
13ab72: 8b 40 10 mov 0x10(%eax),%eax <== NOT EXECUTED
13ab75: 85 c0 test %eax,%eax <== NOT EXECUTED
13ab77: 75 0d jne 13ab86 <fchdir+0x4e> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
13ab79: e8 96 34 00 00 call 13e014 <__errno> <== NOT EXECUTED
13ab7e: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
13ab84: eb 68 jmp 13abee <fchdir+0xb6> <== NOT EXECUTED
}
if ( (*iop->pathinfo.ops->node_type_h)( &iop->pathinfo ) !=
13ab86: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13ab89: 83 c3 18 add $0x18,%ebx <== NOT EXECUTED
13ab8c: 53 push %ebx <== NOT EXECUTED
13ab8d: ff d0 call *%eax <== NOT EXECUTED
13ab8f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13ab92: 48 dec %eax <== NOT EXECUTED
13ab93: 74 0d je 13aba2 <fchdir+0x6a> <== NOT EXECUTED
RTEMS_FILESYSTEM_DIRECTORY ) {
rtems_set_errno_and_return_minus_one( ENOTDIR );
13ab95: e8 7a 34 00 00 call 13e014 <__errno> <== NOT EXECUTED
13ab9a: c7 00 14 00 00 00 movl $0x14,(%eax) <== NOT EXECUTED
13aba0: eb 4c jmp 13abee <fchdir+0xb6> <== NOT EXECUTED
* but note the race condition. Threads who
* share their rtems_filesystem_current better
* be synchronized!
*/
saved = rtems_filesystem_current;
13aba2: a1 fc 46 16 00 mov 0x1646fc,%eax <== NOT EXECUTED
13aba7: 8d 7d c0 lea -0x40(%ebp),%edi <== NOT EXECUTED
13abaa: 8d 70 04 lea 0x4(%eax),%esi <== NOT EXECUTED
13abad: b9 05 00 00 00 mov $0x5,%ecx <== NOT EXECUTED
13abb2: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED
rtems_filesystem_current = iop->pathinfo;
13abb4: 8d 78 04 lea 0x4(%eax),%edi <== NOT EXECUTED
13abb7: b1 05 mov $0x5,%cl <== NOT EXECUTED
13abb9: 89 de mov %ebx,%esi <== NOT EXECUTED
13abbb: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED
/* clone the current node */
if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) {
13abbd: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13abc0: 6a 00 push $0x0 <== NOT EXECUTED
13abc2: 8d 45 d4 lea -0x2c(%ebp),%eax <== NOT EXECUTED
13abc5: 50 push %eax <== NOT EXECUTED
13abc6: 6a 00 push $0x0 <== NOT EXECUTED
13abc8: 6a 01 push $0x1 <== NOT EXECUTED
13abca: 68 be 87 15 00 push $0x1587be <== NOT EXECUTED
13abcf: e8 5d 22 fd ff call 10ce31 <rtems_filesystem_evaluate_path><== NOT EXECUTED
13abd4: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
13abd7: 85 c0 test %eax,%eax <== NOT EXECUTED
13abd9: 74 18 je 13abf3 <fchdir+0xbb> <== NOT EXECUTED
/* cloning failed; restore original and bail out */
rtems_filesystem_current = saved;
13abdb: 8b 3d fc 46 16 00 mov 0x1646fc,%edi <== NOT EXECUTED
13abe1: 83 c7 04 add $0x4,%edi <== NOT EXECUTED
13abe4: 8d 75 c0 lea -0x40(%ebp),%esi <== NOT EXECUTED
13abe7: b9 05 00 00 00 mov $0x5,%ecx <== NOT EXECUTED
13abec: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED
13abee: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
return -1;
13abf1: eb 2f jmp 13ac22 <fchdir+0xea> <== NOT EXECUTED
}
/* release the old one */
rtems_filesystem_freenode( &saved );
13abf3: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED
13abf6: 85 c0 test %eax,%eax <== NOT EXECUTED
13abf8: 74 13 je 13ac0d <fchdir+0xd5> <== NOT EXECUTED
13abfa: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED
13abfd: 85 c0 test %eax,%eax <== NOT EXECUTED
13abff: 74 0c je 13ac0d <fchdir+0xd5> <== NOT EXECUTED
13ac01: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13ac04: 8d 55 c0 lea -0x40(%ebp),%edx <== NOT EXECUTED
13ac07: 52 push %edx <== NOT EXECUTED
13ac08: ff d0 call *%eax <== NOT EXECUTED
13ac0a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_filesystem_current = loc;
13ac0d: 8b 3d fc 46 16 00 mov 0x1646fc,%edi <== NOT EXECUTED
13ac13: 83 c7 04 add $0x4,%edi <== NOT EXECUTED
13ac16: 8d 75 d4 lea -0x2c(%ebp),%esi <== NOT EXECUTED
13ac19: b9 05 00 00 00 mov $0x5,%ecx <== NOT EXECUTED
13ac1e: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED
13ac20: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
}
13ac22: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13ac25: 5b pop %ebx <== NOT EXECUTED
13ac26: 5e pop %esi <== NOT EXECUTED
13ac27: 5f pop %edi <== NOT EXECUTED
13ac28: c9 leave <== NOT EXECUTED
13ac29: c3 ret <== NOT EXECUTED
0012800c <fchmod>:
int fchmod(
int fd,
mode_t mode
)
{
12800c: 55 push %ebp <== NOT EXECUTED
12800d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12800f: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
128012: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
128015: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
128018: 3b 05 44 26 16 00 cmp 0x162644,%eax <== NOT EXECUTED
12801e: 73 0f jae 12802f <fchmod+0x23> <== NOT EXECUTED
iop = rtems_libio_iop( fd );
128020: c1 e0 06 shl $0x6,%eax <== NOT EXECUTED
128023: 03 05 d4 9f 16 00 add 0x169fd4,%eax <== NOT EXECUTED
rtems_libio_check_is_open(iop);
128029: f6 40 15 01 testb $0x1,0x15(%eax) <== NOT EXECUTED
12802d: 75 0d jne 12803c <fchmod+0x30> <== NOT EXECUTED
12802f: e8 e0 5f 01 00 call 13e014 <__errno> <== NOT EXECUTED
128034: c7 00 09 00 00 00 movl $0x9,(%eax) <== NOT EXECUTED
12803a: eb 28 jmp 128064 <fchmod+0x58> <== NOT EXECUTED
/*
* Now process the fchmod().
*/
if ( !iop->handlers->fchmod_h )
12803c: 8b 50 3c mov 0x3c(%eax),%edx <== NOT EXECUTED
12803f: 83 7a 1c 00 cmpl $0x0,0x1c(%edx) <== NOT EXECUTED
128043: 75 0d jne 128052 <fchmod+0x46> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
128045: e8 ca 5f 01 00 call 13e014 <__errno> <== NOT EXECUTED
12804a: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
128050: eb 12 jmp 128064 <fchmod+0x58> <== NOT EXECUTED
return (*iop->pathinfo.handlers->fchmod_h)( &iop->pathinfo, mode );
128052: 8b 50 20 mov 0x20(%eax),%edx <== NOT EXECUTED
128055: 89 4d 0c mov %ecx,0xc(%ebp) <== NOT EXECUTED
128058: 83 c0 18 add $0x18,%eax <== NOT EXECUTED
12805b: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED
12805e: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED
}
128061: c9 leave <== NOT EXECUTED
* Now process the fchmod().
*/
if ( !iop->handlers->fchmod_h )
rtems_set_errno_and_return_minus_one( ENOTSUP );
return (*iop->pathinfo.handlers->fchmod_h)( &iop->pathinfo, mode );
128062: ff e0 jmp *%eax <== NOT EXECUTED
}
128064: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
128067: c9 leave <== NOT EXECUTED
128068: c3 ret <== NOT EXECUTED
0012806c <fchown>:
int fchown(
int fd,
uid_t owner,
gid_t group
)
{
12806c: 55 push %ebp <== NOT EXECUTED
12806d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12806f: 53 push %ebx <== NOT EXECUTED
128070: 83 ec 04 sub $0x4,%esp <== NOT EXECUTED
128073: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
128076: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED
128079: 8b 5d 10 mov 0x10(%ebp),%ebx <== NOT EXECUTED
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
12807c: 3b 05 44 26 16 00 cmp 0x162644,%eax <== NOT EXECUTED
128082: 73 11 jae 128095 <fchown+0x29> <== NOT EXECUTED
iop = rtems_libio_iop( fd );
128084: c1 e0 06 shl $0x6,%eax <== NOT EXECUTED
128087: 03 05 d4 9f 16 00 add 0x169fd4,%eax <== NOT EXECUTED
rtems_libio_check_is_open(iop);
12808d: 8b 50 14 mov 0x14(%eax),%edx <== NOT EXECUTED
128090: f6 c6 01 test $0x1,%dh <== NOT EXECUTED
128093: 75 0d jne 1280a2 <fchown+0x36> <== NOT EXECUTED
128095: e8 7a 5f 01 00 call 13e014 <__errno> <== NOT EXECUTED
12809a: c7 00 09 00 00 00 movl $0x9,(%eax) <== NOT EXECUTED
1280a0: eb 40 jmp 1280e2 <fchown+0x76> <== NOT EXECUTED
rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );
1280a2: 80 e2 04 and $0x4,%dl <== NOT EXECUTED
1280a5: 75 0d jne 1280b4 <fchown+0x48> <== NOT EXECUTED
1280a7: e8 68 5f 01 00 call 13e014 <__errno> <== NOT EXECUTED
1280ac: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
1280b2: eb 2e jmp 1280e2 <fchown+0x76> <== NOT EXECUTED
if ( !iop->pathinfo.ops->chown_h )
1280b4: 8b 50 24 mov 0x24(%eax),%edx <== NOT EXECUTED
1280b7: 8b 52 18 mov 0x18(%edx),%edx <== NOT EXECUTED
1280ba: 85 d2 test %edx,%edx <== NOT EXECUTED
1280bc: 75 0d jne 1280cb <fchown+0x5f> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
1280be: e8 51 5f 01 00 call 13e014 <__errno> <== NOT EXECUTED
1280c3: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
1280c9: eb 17 jmp 1280e2 <fchown+0x76> <== NOT EXECUTED
return (*iop->pathinfo.ops->chown_h)( &iop->pathinfo, owner, group );
1280cb: 0f b7 db movzwl %bx,%ebx <== NOT EXECUTED
1280ce: 89 5d 10 mov %ebx,0x10(%ebp) <== NOT EXECUTED
1280d1: 0f b7 c9 movzwl %cx,%ecx <== NOT EXECUTED
1280d4: 89 4d 0c mov %ecx,0xc(%ebp) <== NOT EXECUTED
1280d7: 83 c0 18 add $0x18,%eax <== NOT EXECUTED
1280da: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED
}
1280dd: 59 pop %ecx <== NOT EXECUTED
1280de: 5b pop %ebx <== NOT EXECUTED
1280df: c9 leave <== NOT EXECUTED
rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );
if ( !iop->pathinfo.ops->chown_h )
rtems_set_errno_and_return_minus_one( ENOTSUP );
return (*iop->pathinfo.ops->chown_h)( &iop->pathinfo, owner, group );
1280e0: ff e2 jmp *%edx <== NOT EXECUTED
}
1280e2: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
1280e5: 5a pop %edx <== NOT EXECUTED
1280e6: 5b pop %ebx <== NOT EXECUTED
1280e7: c9 leave <== NOT EXECUTED
1280e8: c3 ret <== NOT EXECUTED
0013ac2c <fcntl>:
int fcntl(
int fd,
int cmd,
...
)
{
13ac2c: 55 push %ebp
13ac2d: 89 e5 mov %esp,%ebp
13ac2f: 57 push %edi
13ac30: 56 push %esi
13ac31: 53 push %ebx
13ac32: 83 ec 0c sub $0xc,%esp
13ac35: 8b 5d 08 mov 0x8(%ebp),%ebx
#include <sys/types.h>
#include <sys/stat.h> /* sigh. for the mode bits for open/creat */
extern int open _PARAMS ((const char *, int, ...));
extern int creat _PARAMS ((const char *, mode_t));
extern int fcntl _PARAMS ((int, int, ...));
13ac38: 8d 55 10 lea 0x10(%ebp),%edx
int fd2;
int flags;
int mask;
int ret = 0;
rtems_libio_check_fd( fd );
13ac3b: 8b 0d 44 26 16 00 mov 0x162644,%ecx
13ac41: 39 cb cmp %ecx,%ebx
13ac43: 73 16 jae 13ac5b <fcntl+0x2f> <== NEVER TAKEN
iop = rtems_libio_iop( fd );
13ac45: a1 d4 9f 16 00 mov 0x169fd4,%eax
13ac4a: c1 e3 06 shl $0x6,%ebx
13ac4d: 8d 1c 18 lea (%eax,%ebx,1),%ebx
rtems_libio_check_is_open(iop);
13ac50: 8b 73 14 mov 0x14(%ebx),%esi
13ac53: f7 c6 00 01 00 00 test $0x100,%esi
13ac59: 75 10 jne 13ac6b <fcntl+0x3f> <== ALWAYS TAKEN
13ac5b: e8 b4 33 00 00 call 13e014 <__errno> <== NOT EXECUTED
13ac60: c7 00 09 00 00 00 movl $0x9,(%eax) <== NOT EXECUTED
13ac66: e9 fe 00 00 00 jmp 13ad69 <fcntl+0x13d> <== NOT EXECUTED
/*
* This switch should contain all the cases from POSIX.
*/
switch ( cmd ) {
13ac6b: 83 7d 0c 09 cmpl $0x9,0xc(%ebp)
13ac6f: 0f 87 c1 00 00 00 ja 13ad36 <fcntl+0x10a>
13ac75: 8b 7d 0c mov 0xc(%ebp),%edi
13ac78: ff 24 bd f0 ec 15 00 jmp *0x15ecf0(,%edi,4)
case F_DUPFD: /* dup */
fd2 = va_arg( ap, int );
13ac7f: 8b 32 mov (%edx),%esi
if ( fd2 )
13ac81: 85 f6 test %esi,%esi
13ac83: 74 10 je 13ac95 <fcntl+0x69> <== ALWAYS TAKEN
diop = rtems_libio_iop( fd2 );
13ac85: 31 d2 xor %edx,%edx <== NOT EXECUTED
13ac87: 39 ce cmp %ecx,%esi <== NOT EXECUTED
13ac89: 73 1c jae 13aca7 <fcntl+0x7b> <== NOT EXECUTED
13ac8b: 89 f2 mov %esi,%edx <== NOT EXECUTED
13ac8d: c1 e2 06 shl $0x6,%edx <== NOT EXECUTED
13ac90: 8d 14 10 lea (%eax,%edx,1),%edx <== NOT EXECUTED
13ac93: eb 12 jmp 13aca7 <fcntl+0x7b> <== NOT EXECUTED
else {
/* allocate a file control block */
diop = rtems_libio_allocate();
13ac95: e8 49 25 fd ff call 10d1e3 <rtems_libio_allocate>
13ac9a: 89 c2 mov %eax,%edx
if ( diop == 0 ) {
13ac9c: 83 ce ff or $0xffffffff,%esi
13ac9f: 85 c0 test %eax,%eax
13aca1: 0f 84 c5 00 00 00 je 13ad6c <fcntl+0x140> <== NEVER TAKEN
ret = -1;
break;
}
}
diop->handlers = iop->handlers;
13aca7: 8b 43 3c mov 0x3c(%ebx),%eax
13acaa: 89 42 3c mov %eax,0x3c(%edx)
diop->file_info = iop->file_info;
13acad: 8b 43 38 mov 0x38(%ebx),%eax
13acb0: 89 42 38 mov %eax,0x38(%edx)
diop->flags = iop->flags;
13acb3: 8b 43 14 mov 0x14(%ebx),%eax
13acb6: 89 42 14 mov %eax,0x14(%edx)
diop->pathinfo = iop->pathinfo;
13acb9: 8d 7a 18 lea 0x18(%edx),%edi
13acbc: 8d 73 18 lea 0x18(%ebx),%esi
13acbf: b9 05 00 00 00 mov $0x5,%ecx
13acc4: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
ret = (int) (diop - rtems_libio_iops);
13acc6: 89 d6 mov %edx,%esi
13acc8: 2b 35 d4 9f 16 00 sub 0x169fd4,%esi
13acce: c1 fe 06 sar $0x6,%esi
13acd1: eb 70 jmp 13ad43 <fcntl+0x117>
break;
case F_GETFD: /* get f_flags */
ret = ((iop->flags & LIBIO_FLAGS_CLOSE_ON_EXEC) != 0);
13acd3: c1 ee 0b shr $0xb,%esi
13acd6: 83 e6 01 and $0x1,%esi
13acd9: eb 6c jmp 13ad47 <fcntl+0x11b>
* 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 ) )
13acdb: 83 3a 00 cmpl $0x0,(%edx)
13acde: 74 08 je 13ace8 <fcntl+0xbc> <== NEVER TAKEN
iop->flags |= LIBIO_FLAGS_CLOSE_ON_EXEC;
13ace0: 81 ce 00 08 00 00 or $0x800,%esi
13ace6: eb 06 jmp 13acee <fcntl+0xc2>
else
iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC;
13ace8: 81 e6 ff f7 ff ff and $0xfffff7ff,%esi <== NOT EXECUTED
13acee: 89 73 14 mov %esi,0x14(%ebx)
13acf1: 31 f6 xor %esi,%esi
13acf3: eb 52 jmp 13ad47 <fcntl+0x11b>
break;
case F_GETFL: /* more flags (cloexec) */
ret = rtems_libio_to_fcntl_flags( iop->flags );
13acf5: 83 ec 0c sub $0xc,%esp
13acf8: 56 push %esi
13acf9: e8 9a 23 fd ff call 10d098 <rtems_libio_to_fcntl_flags>
13acfe: 89 c6 mov %eax,%esi
13ad00: 83 c4 10 add $0x10,%esp
13ad03: eb 3e jmp 13ad43 <fcntl+0x117>
break;
case F_SETFL:
flags = rtems_libio_fcntl_flags( va_arg( ap, int ) );
13ad05: 83 ec 0c sub $0xc,%esp
13ad08: ff 32 pushl (%edx)
13ad0a: e8 5f 25 fd ff call 10d26e <rtems_libio_fcntl_flags>
/*
* XXX If we are turning on append, should we seek to the end?
*/
iop->flags = (iop->flags & ~mask) | (flags & mask);
13ad0f: 25 01 02 00 00 and $0x201,%eax
13ad14: 8b 53 14 mov 0x14(%ebx),%edx
13ad17: 81 e2 fe fd ff ff and $0xfffffdfe,%edx
13ad1d: 09 d0 or %edx,%eax
13ad1f: 89 43 14 mov %eax,0x14(%ebx)
13ad22: 31 f6 xor %esi,%esi
13ad24: 83 c4 10 add $0x10,%esp
13ad27: eb 1e jmp 13ad47 <fcntl+0x11b>
errno = ENOTSUP;
ret = -1;
break;
case F_GETOWN: /* for sockets. */
errno = ENOTSUP;
13ad29: e8 e6 32 00 00 call 13e014 <__errno>
13ad2e: c7 00 86 00 00 00 movl $0x86,(%eax)
13ad34: eb 33 jmp 13ad69 <fcntl+0x13d>
ret = -1;
break;
default:
errno = EINVAL;
13ad36: e8 d9 32 00 00 call 13e014 <__errno>
13ad3b: c7 00 16 00 00 00 movl $0x16,(%eax)
13ad41: eb 26 jmp 13ad69 <fcntl+0x13d>
/*
* If we got this far successfully, then we give the optional
* filesystem specific handler a chance to process this.
*/
if (ret >= 0) {
13ad43: 85 f6 test %esi,%esi
13ad45: 78 25 js 13ad6c <fcntl+0x140> <== NEVER TAKEN
if (iop->handlers->fcntl_h) {
13ad47: 8b 43 3c mov 0x3c(%ebx),%eax
13ad4a: 8b 40 30 mov 0x30(%eax),%eax
13ad4d: 85 c0 test %eax,%eax
13ad4f: 74 1b je 13ad6c <fcntl+0x140> <== NEVER TAKEN
int err = (*iop->handlers->fcntl_h)( cmd, iop );
13ad51: 52 push %edx
13ad52: 52 push %edx
13ad53: 53 push %ebx
13ad54: ff 75 0c pushl 0xc(%ebp)
13ad57: ff d0 call *%eax
13ad59: 89 c3 mov %eax,%ebx
if (err) {
13ad5b: 83 c4 10 add $0x10,%esp
13ad5e: 85 c0 test %eax,%eax
13ad60: 74 0a je 13ad6c <fcntl+0x140> <== ALWAYS TAKEN
errno = err;
13ad62: e8 ad 32 00 00 call 13e014 <__errno> <== NOT EXECUTED
13ad67: 89 18 mov %ebx,(%eax) <== NOT EXECUTED
13ad69: 83 ce ff or $0xffffffff,%esi
va_list ap;
va_start( ap, cmd );
ret = vfcntl(fd,cmd,ap);
va_end(ap);
return ret;
}
13ad6c: 89 f0 mov %esi,%eax
13ad6e: 8d 65 f4 lea -0xc(%ebp),%esp
13ad71: 5b pop %ebx
13ad72: 5e pop %esi
13ad73: 5f pop %edi
13ad74: c9 leave
13ad75: c3 ret
00108008 <fdatasync>:
#include <rtems/seterr.h>
int fdatasync(
int fd
)
{
108008: 55 push %ebp
108009: 89 e5 mov %esp,%ebp
10800b: 83 ec 08 sub $0x8,%esp
10800e: 8b 45 08 mov 0x8(%ebp),%eax
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
108011: 3b 05 44 41 12 00 cmp 0x124144,%eax
108017: 73 16 jae 10802f <fdatasync+0x27> <== NEVER TAKEN
iop = rtems_libio_iop( fd );
108019: c1 e0 06 shl $0x6,%eax
10801c: 03 05 b8 80 12 00 add 0x1280b8,%eax
rtems_libio_check_is_open(iop);
108022: 8b 50 14 mov 0x14(%eax),%edx
108025: f6 c6 01 test $0x1,%dh
108028: 74 05 je 10802f <fdatasync+0x27> <== NEVER TAKEN
rtems_libio_check_permissions_with_error( iop, LIBIO_FLAGS_WRITE, EBADF );
10802a: 80 e2 04 and $0x4,%dl
10802d: 75 0d jne 10803c <fdatasync+0x34>
10802f: e8 74 b9 00 00 call 1139a8 <__errno>
108034: c7 00 09 00 00 00 movl $0x9,(%eax)
10803a: eb 1d jmp 108059 <fdatasync+0x51>
/*
* Now process the fdatasync().
*/
if ( !iop->handlers->fdatasync_h )
10803c: 8b 50 3c mov 0x3c(%eax),%edx
10803f: 8b 52 2c mov 0x2c(%edx),%edx
108042: 85 d2 test %edx,%edx
108044: 75 0d jne 108053 <fdatasync+0x4b> <== NEVER TAKEN
rtems_set_errno_and_return_minus_one( ENOTSUP );
108046: e8 5d b9 00 00 call 1139a8 <__errno>
10804b: c7 00 86 00 00 00 movl $0x86,(%eax)
108051: eb 06 jmp 108059 <fdatasync+0x51>
return (*iop->handlers->fdatasync_h)( iop );
108053: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED
}
108056: c9 leave <== NOT EXECUTED
*/
if ( !iop->handlers->fdatasync_h )
rtems_set_errno_and_return_minus_one( ENOTSUP );
return (*iop->handlers->fdatasync_h)( iop );
108057: ff e2 jmp *%edx <== NOT EXECUTED
}
108059: 83 c8 ff or $0xffffffff,%eax
10805c: c9 leave
10805d: c3 ret
0010dbf3 <fifo_open>:
*/
int fifo_open(
pipe_control_t **pipep,
rtems_libio_t *iop
)
{
10dbf3: 55 push %ebp
10dbf4: 89 e5 mov %esp,%ebp
10dbf6: 57 push %edi
10dbf7: 56 push %esi
10dbf8: 53 push %ebx
10dbf9: 83 ec 30 sub $0x30,%esp
)
{
pipe_control_t *pipe;
int err = 0;
if (rtems_semaphore_obtain(rtems_pipe_semaphore,
10dbfc: 6a 00 push $0x0
10dbfe: 6a 00 push $0x0
10dc00: ff 35 b8 5e 12 00 pushl 0x125eb8
10dc06: e8 ed c9 ff ff call 10a5f8 <rtems_semaphore_obtain>
10dc0b: 89 c2 mov %eax,%edx
10dc0d: 83 c4 10 add $0x10,%esp
10dc10: be fc ff ff ff mov $0xfffffffc,%esi
10dc15: 85 c0 test %eax,%eax
10dc17: 0f 85 3e 03 00 00 jne 10df5b <fifo_open+0x368>
RTEMS_WAIT, RTEMS_NO_TIMEOUT) != RTEMS_SUCCESSFUL)
return -EINTR;
pipe = *pipep;
10dc1d: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
10dc20: 8b 18 mov (%eax),%ebx <== NOT EXECUTED
if (pipe == NULL) {
10dc22: 85 db test %ebx,%ebx <== NOT EXECUTED
10dc24: 0f 85 50 01 00 00 jne 10dd7a <fifo_open+0x187> <== NOT EXECUTED
{
static char c = 'a';
pipe_control_t *pipe;
int err = -ENOMEM;
pipe = malloc(sizeof(pipe_control_t));
10dc2a: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10dc2d: 6a 34 push $0x34 <== NOT EXECUTED
10dc2f: 89 55 d4 mov %edx,-0x2c(%ebp) <== NOT EXECUTED
10dc32: e8 05 9d ff ff call 10793c <malloc> <== NOT EXECUTED
10dc37: 89 c3 mov %eax,%ebx <== NOT EXECUTED
10dc39: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (pipe == NULL)
10dc3b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10dc3e: 85 c0 test %eax,%eax <== NOT EXECUTED
10dc40: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED
10dc43: 0f 84 2a 01 00 00 je 10dd73 <fifo_open+0x180> <== NOT EXECUTED
return err;
memset(pipe, 0, sizeof(pipe_control_t));
10dc49: b9 0d 00 00 00 mov $0xd,%ecx <== NOT EXECUTED
10dc4e: 89 c7 mov %eax,%edi <== NOT EXECUTED
10dc50: 89 d0 mov %edx,%eax <== NOT EXECUTED
10dc52: f3 ab rep stos %eax,%es:(%edi) <== NOT EXECUTED
pipe->Size = PIPE_BUF;
10dc54: c7 43 04 00 02 00 00 movl $0x200,0x4(%ebx) <== NOT EXECUTED
pipe->Buffer = malloc(pipe->Size);
10dc5b: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10dc5e: 68 00 02 00 00 push $0x200 <== NOT EXECUTED
10dc63: e8 d4 9c ff ff call 10793c <malloc> <== NOT EXECUTED
10dc68: 89 03 mov %eax,(%ebx) <== NOT EXECUTED
if (! pipe->Buffer)
10dc6a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10dc6d: 85 c0 test %eax,%eax <== NOT EXECUTED
10dc6f: 0f 84 f2 00 00 00 je 10dd67 <fifo_open+0x174> <== NOT EXECUTED
goto err_buf;
err = -ENOMEM;
if (rtems_barrier_create(
10dc75: 8d 43 2c lea 0x2c(%ebx),%eax <== NOT EXECUTED
10dc78: 50 push %eax <== NOT EXECUTED
10dc79: 6a 00 push $0x0 <== NOT EXECUTED
10dc7b: 6a 00 push $0x0 <== NOT EXECUTED
10dc7d: 0f be 05 78 3f 12 00 movsbl 0x123f78,%eax <== NOT EXECUTED
10dc84: 0d 00 72 49 50 or $0x50497200,%eax <== NOT EXECUTED
10dc89: 50 push %eax <== NOT EXECUTED
10dc8a: e8 9d 1d 00 00 call 10fa2c <rtems_barrier_create> <== NOT EXECUTED
10dc8f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10dc92: 85 c0 test %eax,%eax <== NOT EXECUTED
10dc94: 0f 85 c0 00 00 00 jne 10dd5a <fifo_open+0x167> <== NOT EXECUTED
rtems_build_name ('P', 'I', 'r', c),
RTEMS_BARRIER_MANUAL_RELEASE, 0,
&pipe->readBarrier) != RTEMS_SUCCESSFUL)
goto err_rbar;
if (rtems_barrier_create(
10dc9a: 8d 43 30 lea 0x30(%ebx),%eax <== NOT EXECUTED
10dc9d: 50 push %eax <== NOT EXECUTED
10dc9e: 6a 00 push $0x0 <== NOT EXECUTED
10dca0: 6a 00 push $0x0 <== NOT EXECUTED
10dca2: 0f be 05 78 3f 12 00 movsbl 0x123f78,%eax <== NOT EXECUTED
10dca9: 0d 00 77 49 50 or $0x50497700,%eax <== NOT EXECUTED
10dcae: 50 push %eax <== NOT EXECUTED
10dcaf: e8 78 1d 00 00 call 10fa2c <rtems_barrier_create> <== NOT EXECUTED
10dcb4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10dcb7: 85 c0 test %eax,%eax <== NOT EXECUTED
10dcb9: 0f 85 8d 00 00 00 jne 10dd4c <fifo_open+0x159> <== NOT EXECUTED
rtems_build_name ('P', 'I', 'w', c),
RTEMS_BARRIER_MANUAL_RELEASE, 0,
&pipe->writeBarrier) != RTEMS_SUCCESSFUL)
goto err_wbar;
if (rtems_semaphore_create(
10dcbf: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10dcc2: 8d 43 28 lea 0x28(%ebx),%eax <== NOT EXECUTED
10dcc5: 50 push %eax <== NOT EXECUTED
10dcc6: 6a 00 push $0x0 <== NOT EXECUTED
10dcc8: 6a 10 push $0x10 <== NOT EXECUTED
10dcca: 6a 01 push $0x1 <== NOT EXECUTED
10dccc: 0f be 05 78 3f 12 00 movsbl 0x123f78,%eax <== NOT EXECUTED
10dcd3: 0d 00 73 49 50 or $0x50497300,%eax <== NOT EXECUTED
10dcd8: 50 push %eax <== NOT EXECUTED
10dcd9: e8 ee c6 ff ff call 10a3cc <rtems_semaphore_create><== NOT EXECUTED
10dcde: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
10dce1: 85 c0 test %eax,%eax <== NOT EXECUTED
10dce3: 75 59 jne 10dd3e <fifo_open+0x14b> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE Barrier_Control *_Barrier_Get (
Objects_Id id,
Objects_Locations *location
)
{
return (Barrier_Control *)
10dce5: 52 push %edx <== NOT EXECUTED
10dce6: 8d 75 e0 lea -0x20(%ebp),%esi <== NOT EXECUTED
10dce9: 56 push %esi <== NOT EXECUTED
10dcea: ff 73 2c pushl 0x2c(%ebx) <== NOT EXECUTED
10dced: 68 08 6b 12 00 push $0x126b08 <== NOT EXECUTED
10dcf2: e8 29 de ff ff call 10bb20 <_Objects_Get> <== NOT EXECUTED
/* Set barriers to be interruptible by signals. */
static void pipe_interruptible(pipe_control_t *pipe)
{
Objects_Locations location;
_Barrier_Get(pipe->readBarrier, &location)->Barrier.Wait_queue.state
10dcf7: 81 48 4c 00 00 00 10 orl $0x10000000,0x4c(%eax) <== NOT EXECUTED
|= STATES_INTERRUPTIBLE_BY_SIGNAL;
_Thread_Enable_dispatch();
10dcfe: e8 0e e6 ff ff call 10c311 <_Thread_Enable_dispatch><== NOT EXECUTED
10dd03: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
10dd06: 56 push %esi <== NOT EXECUTED
10dd07: ff 73 30 pushl 0x30(%ebx) <== NOT EXECUTED
10dd0a: 68 08 6b 12 00 push $0x126b08 <== NOT EXECUTED
10dd0f: e8 0c de ff ff call 10bb20 <_Objects_Get> <== NOT EXECUTED
_Barrier_Get(pipe->writeBarrier, &location)->Barrier.Wait_queue.state
10dd14: 81 48 4c 00 00 00 10 orl $0x10000000,0x4c(%eax) <== NOT EXECUTED
|= STATES_INTERRUPTIBLE_BY_SIGNAL;
_Thread_Enable_dispatch();
10dd1b: e8 f1 e5 ff ff call 10c311 <_Thread_Enable_dispatch><== NOT EXECUTED
#ifdef RTEMS_POSIX_API
pipe_interruptible(pipe);
#endif
*pipep = pipe;
if (c ++ == 'z')
10dd20: a0 78 3f 12 00 mov 0x123f78,%al <== NOT EXECUTED
10dd25: 8d 50 01 lea 0x1(%eax),%edx <== NOT EXECUTED
10dd28: 88 15 78 3f 12 00 mov %dl,0x123f78 <== NOT EXECUTED
10dd2e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10dd31: 3c 7a cmp $0x7a,%al <== NOT EXECUTED
10dd33: 75 45 jne 10dd7a <fifo_open+0x187> <== NOT EXECUTED
c = 'a';
10dd35: c6 05 78 3f 12 00 61 movb $0x61,0x123f78 <== NOT EXECUTED
10dd3c: eb 3c jmp 10dd7a <fifo_open+0x187> <== NOT EXECUTED
return 0;
err_sem:
rtems_barrier_delete(pipe->writeBarrier);
10dd3e: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10dd41: ff 73 30 pushl 0x30(%ebx) <== NOT EXECUTED
10dd44: e8 9b 1d 00 00 call 10fae4 <rtems_barrier_delete> <== NOT EXECUTED
10dd49: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
err_wbar:
rtems_barrier_delete(pipe->readBarrier);
10dd4c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10dd4f: ff 76 2c pushl 0x2c(%esi) <== NOT EXECUTED
10dd52: e8 8d 1d 00 00 call 10fae4 <rtems_barrier_delete> <== NOT EXECUTED
10dd57: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
err_rbar:
free(pipe->Buffer);
10dd5a: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10dd5d: ff 36 pushl (%esi) <== NOT EXECUTED
10dd5f: e8 38 99 ff ff call 10769c <free> <== NOT EXECUTED
10dd64: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
err_buf:
free(pipe);
10dd67: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10dd6a: 56 push %esi <== NOT EXECUTED
10dd6b: e8 2c 99 ff ff call 10769c <free> <== NOT EXECUTED
10dd70: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10dd73: be f4 ff ff ff mov $0xfffffff4,%esi <== NOT EXECUTED
10dd78: eb 34 jmp 10ddae <fifo_open+0x1bb> <== NOT EXECUTED
err = pipe_alloc(&pipe);
if (err)
goto out;
}
if (! PIPE_LOCK(pipe))
10dd7a: 50 push %eax <== NOT EXECUTED
10dd7b: 6a 00 push $0x0 <== NOT EXECUTED
10dd7d: 6a 00 push $0x0 <== NOT EXECUTED
10dd7f: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
10dd82: e8 71 c8 ff ff call 10a5f8 <rtems_semaphore_obtain><== NOT EXECUTED
10dd87: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10dd8a: 83 f8 01 cmp $0x1,%eax <== NOT EXECUTED
10dd8d: 19 f6 sbb %esi,%esi <== NOT EXECUTED
10dd8f: f7 d6 not %esi <== NOT EXECUTED
10dd91: 83 e6 fc and $0xfffffffc,%esi <== NOT EXECUTED
err = -EINTR;
if (*pipep == NULL) {
10dd94: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
10dd97: 83 3a 00 cmpl $0x0,(%edx) <== NOT EXECUTED
10dd9a: 75 12 jne 10ddae <fifo_open+0x1bb> <== NOT EXECUTED
if (err)
10dd9c: 85 f6 test %esi,%esi <== NOT EXECUTED
10dd9e: 74 09 je 10dda9 <fifo_open+0x1b6> <== NOT EXECUTED
pipe_free(pipe);
10dda0: 89 d8 mov %ebx,%eax <== NOT EXECUTED
10dda2: e8 41 fd ff ff call 10dae8 <pipe_free> <== NOT EXECUTED
10dda7: eb 05 jmp 10ddae <fifo_open+0x1bb> <== NOT EXECUTED
else
*pipep = pipe;
10dda9: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
10ddac: 89 18 mov %ebx,(%eax) <== NOT EXECUTED
}
out:
rtems_semaphore_release(rtems_pipe_semaphore);
10ddae: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10ddb1: ff 35 b8 5e 12 00 pushl 0x125eb8 <== NOT EXECUTED
10ddb7: e8 28 c9 ff ff call 10a6e4 <rtems_semaphore_release><== NOT EXECUTED
pipe_control_t *pipe;
unsigned int prevCounter;
int err;
err = pipe_new(pipep);
if (err)
10ddbc: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10ddbf: 85 f6 test %esi,%esi <== NOT EXECUTED
10ddc1: 0f 85 94 01 00 00 jne 10df5b <fifo_open+0x368> <== NOT EXECUTED
return err;
pipe = *pipep;
10ddc7: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
10ddca: 8b 1a mov (%edx),%ebx <== NOT EXECUTED
switch (LIBIO_ACCMODE(iop)) {
10ddcc: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
10ddcf: 8b 42 14 mov 0x14(%edx),%eax <== NOT EXECUTED
10ddd2: 83 e0 06 and $0x6,%eax <== NOT EXECUTED
10ddd5: 83 f8 04 cmp $0x4,%eax <== NOT EXECUTED
10ddd8: 0f 84 91 00 00 00 je 10de6f <fifo_open+0x27c> <== NOT EXECUTED
10ddde: 83 f8 06 cmp $0x6,%eax <== NOT EXECUTED
10dde1: 0f 84 10 01 00 00 je 10def7 <fifo_open+0x304> <== NOT EXECUTED
10dde7: 83 f8 02 cmp $0x2,%eax <== NOT EXECUTED
10ddea: 0f 85 49 01 00 00 jne 10df39 <fifo_open+0x346> <== NOT EXECUTED
case LIBIO_FLAGS_READ:
pipe->readerCounter ++;
10ddf0: ff 43 20 incl 0x20(%ebx) <== NOT EXECUTED
if (pipe->Readers ++ == 0)
10ddf3: 8b 43 10 mov 0x10(%ebx),%eax <== NOT EXECUTED
10ddf6: 8d 50 01 lea 0x1(%eax),%edx <== NOT EXECUTED
10ddf9: 89 53 10 mov %edx,0x10(%ebx) <== NOT EXECUTED
10ddfc: 85 c0 test %eax,%eax <== NOT EXECUTED
10ddfe: 75 11 jne 10de11 <fifo_open+0x21e> <== NOT EXECUTED
PIPE_WAKEUPWRITERS(pipe);
10de00: 57 push %edi <== NOT EXECUTED
10de01: 57 push %edi <== NOT EXECUTED
10de02: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
10de05: 50 push %eax <== NOT EXECUTED
10de06: ff 73 30 pushl 0x30(%ebx) <== NOT EXECUTED
10de09: e8 36 1d 00 00 call 10fb44 <rtems_barrier_release> <== NOT EXECUTED
10de0e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
if (pipe->Writers == 0) {
10de11: 83 7b 14 00 cmpl $0x0,0x14(%ebx) <== NOT EXECUTED
10de15: 0f 85 1e 01 00 00 jne 10df39 <fifo_open+0x346> <== NOT EXECUTED
/* Not an error */
if (LIBIO_NODELAY(iop))
10de1b: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
10de1e: f6 40 14 01 testb $0x1,0x14(%eax) <== NOT EXECUTED
10de22: 0f 85 11 01 00 00 jne 10df39 <fifo_open+0x346> <== NOT EXECUTED
break;
prevCounter = pipe->writerCounter;
10de28: 8b 7b 24 mov 0x24(%ebx),%edi <== NOT EXECUTED
err = -EINTR;
/* Wait until a writer opens the pipe */
do {
PIPE_UNLOCK(pipe);
10de2b: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10de2e: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
10de31: e8 ae c8 ff ff call 10a6e4 <rtems_semaphore_release><== NOT EXECUTED
if (! PIPE_READWAIT(pipe))
10de36: 5a pop %edx <== NOT EXECUTED
10de37: 59 pop %ecx <== NOT EXECUTED
10de38: 6a 00 push $0x0 <== NOT EXECUTED
10de3a: ff 73 2c pushl 0x2c(%ebx) <== NOT EXECUTED
10de3d: e8 5a 1d 00 00 call 10fb9c <rtems_barrier_wait> <== NOT EXECUTED
10de42: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10de45: 85 c0 test %eax,%eax <== NOT EXECUTED
10de47: 0f 85 f9 00 00 00 jne 10df46 <fifo_open+0x353> <== NOT EXECUTED
goto out_error;
if (! PIPE_LOCK(pipe))
10de4d: 50 push %eax <== NOT EXECUTED
10de4e: 6a 00 push $0x0 <== NOT EXECUTED
10de50: 6a 00 push $0x0 <== NOT EXECUTED
10de52: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
10de55: e8 9e c7 ff ff call 10a5f8 <rtems_semaphore_obtain><== NOT EXECUTED
10de5a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10de5d: 85 c0 test %eax,%eax <== NOT EXECUTED
10de5f: 0f 85 e1 00 00 00 jne 10df46 <fifo_open+0x353> <== NOT EXECUTED
goto out_error;
} while (prevCounter == pipe->writerCounter);
10de65: 3b 7b 24 cmp 0x24(%ebx),%edi <== NOT EXECUTED
10de68: 74 c1 je 10de2b <fifo_open+0x238> <== NOT EXECUTED
10de6a: e9 ca 00 00 00 jmp 10df39 <fifo_open+0x346> <== NOT EXECUTED
}
break;
case LIBIO_FLAGS_WRITE:
pipe->writerCounter ++;
10de6f: ff 43 24 incl 0x24(%ebx) <== NOT EXECUTED
if (pipe->Writers ++ == 0)
10de72: 8b 43 14 mov 0x14(%ebx),%eax <== NOT EXECUTED
10de75: 8d 50 01 lea 0x1(%eax),%edx <== NOT EXECUTED
10de78: 89 53 14 mov %edx,0x14(%ebx) <== NOT EXECUTED
10de7b: 85 c0 test %eax,%eax <== NOT EXECUTED
10de7d: 75 11 jne 10de90 <fifo_open+0x29d> <== NOT EXECUTED
PIPE_WAKEUPREADERS(pipe);
10de7f: 57 push %edi <== NOT EXECUTED
10de80: 57 push %edi <== NOT EXECUTED
10de81: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
10de84: 50 push %eax <== NOT EXECUTED
10de85: ff 73 2c pushl 0x2c(%ebx) <== NOT EXECUTED
10de88: e8 b7 1c 00 00 call 10fb44 <rtems_barrier_release> <== NOT EXECUTED
10de8d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) {
10de90: 83 7b 10 00 cmpl $0x0,0x10(%ebx) <== NOT EXECUTED
10de94: 0f 85 9f 00 00 00 jne 10df39 <fifo_open+0x346> <== NOT EXECUTED
10de9a: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
10de9d: f6 42 14 01 testb $0x1,0x14(%edx) <== NOT EXECUTED
10dea1: 74 18 je 10debb <fifo_open+0x2c8> <== NOT EXECUTED
PIPE_UNLOCK(pipe);
10dea3: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10dea6: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
10dea9: e8 36 c8 ff ff call 10a6e4 <rtems_semaphore_release><== NOT EXECUTED
10deae: be fa ff ff ff mov $0xfffffffa,%esi <== NOT EXECUTED
err = -ENXIO;
goto out_error;
10deb3: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10deb6: e9 90 00 00 00 jmp 10df4b <fifo_open+0x358> <== NOT EXECUTED
}
if (pipe->Readers == 0) {
prevCounter = pipe->readerCounter;
10debb: 8b 7b 20 mov 0x20(%ebx),%edi <== NOT EXECUTED
err = -EINTR;
do {
PIPE_UNLOCK(pipe);
10debe: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10dec1: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
10dec4: e8 1b c8 ff ff call 10a6e4 <rtems_semaphore_release><== NOT EXECUTED
if (! PIPE_WRITEWAIT(pipe))
10dec9: 5a pop %edx <== NOT EXECUTED
10deca: 59 pop %ecx <== NOT EXECUTED
10decb: 6a 00 push $0x0 <== NOT EXECUTED
10decd: ff 73 30 pushl 0x30(%ebx) <== NOT EXECUTED
10ded0: e8 c7 1c 00 00 call 10fb9c <rtems_barrier_wait> <== NOT EXECUTED
10ded5: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10ded8: 85 c0 test %eax,%eax <== NOT EXECUTED
10deda: 75 6a jne 10df46 <fifo_open+0x353> <== NOT EXECUTED
goto out_error;
if (! PIPE_LOCK(pipe))
10dedc: 50 push %eax <== NOT EXECUTED
10dedd: 6a 00 push $0x0 <== NOT EXECUTED
10dedf: 6a 00 push $0x0 <== NOT EXECUTED
10dee1: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
10dee4: e8 0f c7 ff ff call 10a5f8 <rtems_semaphore_obtain><== NOT EXECUTED
10dee9: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10deec: 85 c0 test %eax,%eax <== NOT EXECUTED
10deee: 75 56 jne 10df46 <fifo_open+0x353> <== NOT EXECUTED
goto out_error;
} while (prevCounter == pipe->readerCounter);
10def0: 3b 7b 20 cmp 0x20(%ebx),%edi <== NOT EXECUTED
10def3: 74 c9 je 10debe <fifo_open+0x2cb> <== NOT EXECUTED
10def5: eb 42 jmp 10df39 <fifo_open+0x346> <== NOT EXECUTED
}
break;
case LIBIO_FLAGS_READ_WRITE:
pipe->readerCounter ++;
10def7: ff 43 20 incl 0x20(%ebx) <== NOT EXECUTED
if (pipe->Readers ++ == 0)
10defa: 8b 43 10 mov 0x10(%ebx),%eax <== NOT EXECUTED
10defd: 8d 50 01 lea 0x1(%eax),%edx <== NOT EXECUTED
10df00: 89 53 10 mov %edx,0x10(%ebx) <== NOT EXECUTED
10df03: 85 c0 test %eax,%eax <== NOT EXECUTED
10df05: 75 11 jne 10df18 <fifo_open+0x325> <== NOT EXECUTED
PIPE_WAKEUPWRITERS(pipe);
10df07: 57 push %edi <== NOT EXECUTED
10df08: 57 push %edi <== NOT EXECUTED
10df09: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
10df0c: 50 push %eax <== NOT EXECUTED
10df0d: ff 73 30 pushl 0x30(%ebx) <== NOT EXECUTED
10df10: e8 2f 1c 00 00 call 10fb44 <rtems_barrier_release> <== NOT EXECUTED
10df15: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
pipe->writerCounter ++;
10df18: ff 43 24 incl 0x24(%ebx) <== NOT EXECUTED
if (pipe->Writers ++ == 0)
10df1b: 8b 43 14 mov 0x14(%ebx),%eax <== NOT EXECUTED
10df1e: 8d 50 01 lea 0x1(%eax),%edx <== NOT EXECUTED
10df21: 89 53 14 mov %edx,0x14(%ebx) <== NOT EXECUTED
10df24: 85 c0 test %eax,%eax <== NOT EXECUTED
10df26: 75 11 jne 10df39 <fifo_open+0x346> <== NOT EXECUTED
PIPE_WAKEUPREADERS(pipe);
10df28: 51 push %ecx <== NOT EXECUTED
10df29: 51 push %ecx <== NOT EXECUTED
10df2a: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
10df2d: 50 push %eax <== NOT EXECUTED
10df2e: ff 73 2c pushl 0x2c(%ebx) <== NOT EXECUTED
10df31: e8 0e 1c 00 00 call 10fb44 <rtems_barrier_release> <== NOT EXECUTED
10df36: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
break;
}
PIPE_UNLOCK(pipe);
10df39: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10df3c: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
10df3f: e8 a0 c7 ff ff call 10a6e4 <rtems_semaphore_release><== NOT EXECUTED
10df44: eb 12 jmp 10df58 <fifo_open+0x365> <== NOT EXECUTED
return 0;
10df46: be fc ff ff ff mov $0xfffffffc,%esi <== NOT EXECUTED
out_error:
pipe_release(pipep, iop);
10df4b: 52 push %edx <== NOT EXECUTED
10df4c: 52 push %edx <== NOT EXECUTED
10df4d: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
10df50: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
10df53: e8 cb fb ff ff call 10db23 <pipe_release> <== NOT EXECUTED
return err;
10df58: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
10df5b: 89 f0 mov %esi,%eax
10df5d: 8d 65 f4 lea -0xc(%ebp),%esp
10df60: 5b pop %ebx
10df61: 5e pop %esi
10df62: 5f pop %edi
10df63: c9 leave
10df64: c3 ret
00108060 <fpathconf>:
long fpathconf(
int fd,
int name
)
{
108060: 55 push %ebp
108061: 89 e5 mov %esp,%ebp
108063: 83 ec 08 sub $0x8,%esp
108066: 8b 45 08 mov 0x8(%ebp),%eax
108069: 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);
10806c: 3b 05 44 41 12 00 cmp 0x124144,%eax
108072: 73 0f jae 108083 <fpathconf+0x23>
iop = rtems_libio_iop(fd);
108074: c1 e0 06 shl $0x6,%eax
108077: 03 05 b8 80 12 00 add 0x1280b8,%eax
rtems_libio_check_is_open(iop);
10807d: f6 40 15 01 testb $0x1,0x15(%eax)
108081: 75 0d jne 108090 <fpathconf+0x30> <== ALWAYS TAKEN
108083: e8 20 b9 00 00 call 1139a8 <__errno>
108088: c7 00 09 00 00 00 movl $0x9,(%eax)
10808e: eb 56 jmp 1080e6 <fpathconf+0x86>
/*
* Now process the information request.
*/
the_limits = &iop->pathinfo.mt_entry->pathconf_limits_and_options;
108090: 8b 40 28 mov 0x28(%eax),%eax
switch ( name ) {
108093: 83 fa 0b cmp $0xb,%edx
108096: 77 43 ja 1080db <fpathconf+0x7b>
108098: ff 24 95 b0 1b 12 00 jmp *0x121bb0(,%edx,4)
case _PC_LINK_MAX:
return_value = the_limits->link_max;
10809f: 8b 40 38 mov 0x38(%eax),%eax
break;
1080a2: eb 45 jmp 1080e9 <fpathconf+0x89>
case _PC_MAX_CANON:
return_value = the_limits->max_canon;
1080a4: 8b 40 3c mov 0x3c(%eax),%eax
break;
1080a7: eb 40 jmp 1080e9 <fpathconf+0x89>
case _PC_MAX_INPUT:
return_value = the_limits->max_input;
1080a9: 8b 40 40 mov 0x40(%eax),%eax
break;
1080ac: eb 3b jmp 1080e9 <fpathconf+0x89>
case _PC_NAME_MAX:
return_value = the_limits->name_max;
1080ae: 8b 40 44 mov 0x44(%eax),%eax
break;
1080b1: eb 36 jmp 1080e9 <fpathconf+0x89>
case _PC_PATH_MAX:
return_value = the_limits->path_max;
1080b3: 8b 40 48 mov 0x48(%eax),%eax
break;
1080b6: eb 31 jmp 1080e9 <fpathconf+0x89>
case _PC_PIPE_BUF:
return_value = the_limits->pipe_buf;
1080b8: 8b 40 4c mov 0x4c(%eax),%eax
break;
1080bb: eb 2c jmp 1080e9 <fpathconf+0x89>
case _PC_CHOWN_RESTRICTED:
return_value = the_limits->posix_chown_restrictions;
1080bd: 8b 40 54 mov 0x54(%eax),%eax
break;
1080c0: eb 27 jmp 1080e9 <fpathconf+0x89>
case _PC_NO_TRUNC:
return_value = the_limits->posix_no_trunc;
1080c2: 8b 40 58 mov 0x58(%eax),%eax
break;
1080c5: eb 22 jmp 1080e9 <fpathconf+0x89>
case _PC_VDISABLE:
return_value = the_limits->posix_vdisable;
1080c7: 8b 40 64 mov 0x64(%eax),%eax
break;
1080ca: eb 1d jmp 1080e9 <fpathconf+0x89>
case _PC_ASYNC_IO:
return_value = the_limits->posix_async_io;
1080cc: 8b 40 50 mov 0x50(%eax),%eax
break;
1080cf: eb 18 jmp 1080e9 <fpathconf+0x89>
case _PC_PRIO_IO:
return_value = the_limits->posix_prio_io;
1080d1: 8b 40 5c mov 0x5c(%eax),%eax
break;
1080d4: eb 13 jmp 1080e9 <fpathconf+0x89>
case _PC_SYNC_IO:
return_value = the_limits->posix_sync_io;
1080d6: 8b 40 60 mov 0x60(%eax),%eax
break;
1080d9: eb 0e jmp 1080e9 <fpathconf+0x89>
default:
rtems_set_errno_and_return_minus_one( EINVAL );
1080db: e8 c8 b8 00 00 call 1139a8 <__errno>
1080e0: c7 00 16 00 00 00 movl $0x16,(%eax)
1080e6: 83 c8 ff or $0xffffffff,%eax
break;
}
return return_value;
}
1080e9: c9 leave
1080ea: c3 ret
0010769c <free>:
void free(
void *ptr
)
{
MSBUMP(free_calls, 1);
10769c: 55 push %ebp
10769d: 89 e5 mov %esp,%ebp
10769f: 53 push %ebx
1076a0: 83 ec 04 sub $0x4,%esp
1076a3: 8b 5d 08 mov 0x8(%ebp),%ebx
1076a6: ff 05 dc 60 12 00 incl 0x1260dc
if ( !ptr )
1076ac: 85 db test %ebx,%ebx
1076ae: 74 5f je 10770f <free+0x73>
/*
* Do not attempt to free memory if in a critical section or ISR.
*/
if ( _System_state_Is_up(_System_state_Get()) &&
1076b0: 83 3d a0 63 12 00 03 cmpl $0x3,0x1263a0
1076b7: 75 15 jne 1076ce <free+0x32>
1076b9: e8 56 01 00 00 call 107814 <malloc_is_system_state_OK>
1076be: 84 c0 test %al,%al
1076c0: 75 0c jne 1076ce <free+0x32> <== ALWAYS TAKEN
!malloc_is_system_state_OK() ) {
malloc_deferred_free(ptr);
1076c2: 89 5d 08 mov %ebx,0x8(%ebp) <== NOT EXECUTED
RTEMS_Malloc_Heap->area_begin,
RTEMS_Malloc_Heap->area_end
);
}
}
1076c5: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
1076c8: c9 leave <== NOT EXECUTED
* 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);
1076c9: e9 84 01 00 00 jmp 107852 <malloc_deferred_free> <== NOT EXECUTED
#endif
/*
* If configured, update the statistics
*/
if ( rtems_malloc_statistics_helpers )
1076ce: a1 30 45 12 00 mov 0x124530,%eax
1076d3: 85 c0 test %eax,%eax
1076d5: 74 0a je 1076e1 <free+0x45>
(*rtems_malloc_statistics_helpers->at_free)(ptr);
1076d7: 83 ec 0c sub $0xc,%esp
1076da: 53 push %ebx
1076db: ff 50 08 call *0x8(%eax)
1076de: 83 c4 10 add $0x10,%esp
if ( !_Protected_heap_Free( RTEMS_Malloc_Heap, ptr ) ) {
1076e1: 50 push %eax
1076e2: 50 push %eax
1076e3: 53 push %ebx
1076e4: ff 35 50 21 12 00 pushl 0x122150
1076ea: e8 f9 46 00 00 call 10bde8 <_Protected_heap_Free>
1076ef: 83 c4 10 add $0x10,%esp
1076f2: 84 c0 test %al,%al
1076f4: 75 19 jne 10770f <free+0x73> <== ALWAYS TAKEN
printk( "Program heap: free of bad pointer %p -- range %p - %p \n",
ptr,
RTEMS_Malloc_Heap->area_begin,
RTEMS_Malloc_Heap->area_end
1076f6: a1 50 21 12 00 mov 0x122150,%eax <== NOT EXECUTED
*/
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",
1076fb: ff 70 1c pushl 0x1c(%eax) <== NOT EXECUTED
1076fe: ff 70 18 pushl 0x18(%eax) <== NOT EXECUTED
107701: 53 push %ebx <== NOT EXECUTED
107702: 68 17 01 12 00 push $0x120117 <== NOT EXECUTED
107707: e8 8c 0c 00 00 call 108398 <printk> <== NOT EXECUTED
10770c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
RTEMS_Malloc_Heap->area_begin,
RTEMS_Malloc_Heap->area_end
);
}
}
10770f: 8b 5d fc mov -0x4(%ebp),%ebx
107712: c9 leave
107713: c3 ret
001291a0 <free_user_env>:
* NOTE: this must be called with
* thread dispatching disabled!
*/
static void
free_user_env(void *venv)
{
1291a0: 55 push %ebp <== NOT EXECUTED
1291a1: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1291a3: 53 push %ebx <== NOT EXECUTED
1291a4: 83 ec 04 sub $0x4,%esp <== NOT EXECUTED
1291a7: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
rtems_user_env_t *env = (rtems_user_env_t*) venv ;
if (env != &rtems_global_user_env
1291aa: 81 fb 24 a0 16 00 cmp $0x16a024,%ebx <== NOT EXECUTED
1291b0: 74 40 je 1291f2 <free_user_env+0x52> <== NOT EXECUTED
#ifdef HAVE_USERENV_REFCNT
&& --env->refcnt <= 0
#endif
) {
rtems_filesystem_freenode( &env->current_directory);
1291b2: 8b 43 10 mov 0x10(%ebx),%eax <== NOT EXECUTED
1291b5: 85 c0 test %eax,%eax <== NOT EXECUTED
1291b7: 74 13 je 1291cc <free_user_env+0x2c> <== NOT EXECUTED
1291b9: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED
1291bc: 85 c0 test %eax,%eax <== NOT EXECUTED
1291be: 74 0c je 1291cc <free_user_env+0x2c> <== NOT EXECUTED
1291c0: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1291c3: 8d 53 04 lea 0x4(%ebx),%edx <== NOT EXECUTED
1291c6: 52 push %edx <== NOT EXECUTED
1291c7: ff d0 call *%eax <== NOT EXECUTED
1291c9: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_filesystem_freenode( &env->root_directory);
1291cc: 8b 43 24 mov 0x24(%ebx),%eax <== NOT EXECUTED
1291cf: 85 c0 test %eax,%eax <== NOT EXECUTED
1291d1: 74 13 je 1291e6 <free_user_env+0x46> <== NOT EXECUTED
1291d3: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED
1291d6: 85 c0 test %eax,%eax <== NOT EXECUTED
1291d8: 74 0c je 1291e6 <free_user_env+0x46> <== NOT EXECUTED
1291da: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1291dd: 8d 53 18 lea 0x18(%ebx),%edx <== NOT EXECUTED
1291e0: 52 push %edx <== NOT EXECUTED
1291e1: ff d0 call *%eax <== NOT EXECUTED
1291e3: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
free(env);
1291e6: 89 5d 08 mov %ebx,0x8(%ebp) <== NOT EXECUTED
}
}
1291e9: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
1291ec: c9 leave <== NOT EXECUTED
&& --env->refcnt <= 0
#endif
) {
rtems_filesystem_freenode( &env->current_directory);
rtems_filesystem_freenode( &env->root_directory);
free(env);
1291ed: e9 aa 3c fe ff jmp 10ce9c <free> <== NOT EXECUTED
}
}
1291f2: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
1291f5: c9 leave <== NOT EXECUTED
1291f6: c3 ret <== NOT EXECUTED
0011dfc4 <fstat>:
int fstat(
int fd,
struct stat *sbuf
)
{
11dfc4: 55 push %ebp
11dfc5: 89 e5 mov %esp,%ebp
11dfc7: 57 push %edi
11dfc8: 53 push %ebx
11dfc9: 8b 55 08 mov 0x8(%ebp),%edx
11dfcc: 8b 5d 0c mov 0xc(%ebp),%ebx
/*
* Check to see if we were passed a valid pointer.
*/
if ( !sbuf )
11dfcf: 85 db test %ebx,%ebx
11dfd1: 75 0d jne 11dfe0 <fstat+0x1c>
rtems_set_errno_and_return_minus_one( EFAULT );
11dfd3: e8 3c 4a ff ff call 112a14 <__errno>
11dfd8: c7 00 0e 00 00 00 movl $0xe,(%eax)
11dfde: eb 5d jmp 11e03d <fstat+0x79>
/*
* Now process the stat() request.
*/
iop = rtems_libio_iop( fd );
11dfe0: 3b 15 44 21 12 00 cmp 0x122144,%edx
11dfe6: 73 16 jae 11dffe <fstat+0x3a>
11dfe8: c1 e2 06 shl $0x6,%edx
11dfeb: 03 15 b8 60 12 00 add 0x1260b8,%edx
rtems_libio_check_fd( fd );
rtems_libio_check_is_open(iop);
11dff1: f6 42 15 01 testb $0x1,0x15(%edx)
11dff5: 74 07 je 11dffe <fstat+0x3a> <== NEVER TAKEN
if ( !iop->handlers )
11dff7: 8b 42 3c mov 0x3c(%edx),%eax
11dffa: 85 c0 test %eax,%eax
11dffc: 75 0d jne 11e00b <fstat+0x47> <== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( EBADF );
11dffe: e8 11 4a ff ff call 112a14 <__errno>
11e003: c7 00 09 00 00 00 movl $0x9,(%eax)
11e009: eb 32 jmp 11e03d <fstat+0x79>
if ( !iop->handlers->fstat_h )
11e00b: 83 78 18 00 cmpl $0x0,0x18(%eax)
11e00f: 75 0d jne 11e01e <fstat+0x5a> <== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( ENOTSUP );
11e011: e8 fe 49 ff ff call 112a14 <__errno> <== NOT EXECUTED
11e016: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
11e01c: eb 1f jmp 11e03d <fstat+0x79> <== NOT EXECUTED
/*
* Zero out the stat structure so the various support
* versions of stat don't have to.
*/
memset( sbuf, 0, sizeof(struct stat) );
11e01e: b9 12 00 00 00 mov $0x12,%ecx
11e023: 31 c0 xor %eax,%eax
11e025: 89 df mov %ebx,%edi
11e027: f3 ab rep stos %eax,%es:(%edi)
return (*iop->handlers->fstat_h)( &iop->pathinfo, sbuf );
11e029: 8b 42 3c mov 0x3c(%edx),%eax
11e02c: 89 5d 0c mov %ebx,0xc(%ebp)
11e02f: 83 c2 18 add $0x18,%edx
11e032: 89 55 08 mov %edx,0x8(%ebp)
11e035: 8b 40 18 mov 0x18(%eax),%eax
}
11e038: 5b pop %ebx
11e039: 5f pop %edi
11e03a: c9 leave
* Zero out the stat structure so the various support
* versions of stat don't have to.
*/
memset( sbuf, 0, sizeof(struct stat) );
return (*iop->handlers->fstat_h)( &iop->pathinfo, sbuf );
11e03b: ff e0 jmp *%eax
}
11e03d: 83 c8 ff or $0xffffffff,%eax
11e040: 5b pop %ebx
11e041: 5f pop %edi
11e042: c9 leave
11e043: c3 ret
00128184 <fsync>:
#include <rtems/seterr.h>
int fsync(
int fd
)
{
128184: 55 push %ebp
128185: 89 e5 mov %esp,%ebp
128187: 83 ec 08 sub $0x8,%esp
12818a: 8b 45 08 mov 0x8(%ebp),%eax
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
12818d: 3b 05 44 26 16 00 cmp 0x162644,%eax
128193: 73 16 jae 1281ab <fsync+0x27> <== NEVER TAKEN
iop = rtems_libio_iop( fd );
128195: c1 e0 06 shl $0x6,%eax
128198: 03 05 d4 9f 16 00 add 0x169fd4,%eax
rtems_libio_check_is_open(iop);
12819e: f6 40 15 01 testb $0x1,0x15(%eax)
1281a2: 74 07 je 1281ab <fsync+0x27> <== NEVER TAKEN
/*
* Now process the fsync().
*/
if ( !iop->handlers )
1281a4: 8b 50 3c mov 0x3c(%eax),%edx
1281a7: 85 d2 test %edx,%edx
1281a9: 75 0d jne 1281b8 <fsync+0x34> <== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( EBADF );
1281ab: e8 64 5e 01 00 call 13e014 <__errno> <== NOT EXECUTED
1281b0: c7 00 09 00 00 00 movl $0x9,(%eax) <== NOT EXECUTED
1281b6: eb 1a jmp 1281d2 <fsync+0x4e> <== NOT EXECUTED
if ( !iop->handlers->fsync_h )
1281b8: 8b 52 28 mov 0x28(%edx),%edx
1281bb: 85 d2 test %edx,%edx
1281bd: 75 0d jne 1281cc <fsync+0x48>
rtems_set_errno_and_return_minus_one( ENOTSUP );
1281bf: e8 50 5e 01 00 call 13e014 <__errno>
1281c4: c7 00 86 00 00 00 movl $0x86,(%eax)
1281ca: eb 06 jmp 1281d2 <fsync+0x4e>
return (*iop->handlers->fsync_h)( iop );
1281cc: 89 45 08 mov %eax,0x8(%ebp)
}
1281cf: c9 leave
rtems_set_errno_and_return_minus_one( EBADF );
if ( !iop->handlers->fsync_h )
rtems_set_errno_and_return_minus_one( ENOTSUP );
return (*iop->handlers->fsync_h)( iop );
1281d0: ff e2 jmp *%edx
}
1281d2: 83 c8 ff or $0xffffffff,%eax
1281d5: c9 leave
1281d6: c3 ret
0010edf8 <ftruncate>:
int ftruncate(
int fd,
off_t length
)
{
10edf8: 55 push %ebp
10edf9: 89 e5 mov %esp,%ebp
10edfb: 57 push %edi
10edfc: 56 push %esi
10edfd: 53 push %ebx
10edfe: 83 ec 3c sub $0x3c,%esp
10ee01: 8b 5d 08 mov 0x8(%ebp),%ebx
10ee04: 8b 45 0c mov 0xc(%ebp),%eax
10ee07: 8b 55 10 mov 0x10(%ebp),%edx
10ee0a: 89 45 c0 mov %eax,-0x40(%ebp)
10ee0d: 89 55 c4 mov %edx,-0x3c(%ebp)
rtems_libio_t *iop;
rtems_filesystem_location_info_t loc;
rtems_libio_check_fd( fd );
10ee10: 3b 1d 44 21 12 00 cmp 0x122144,%ebx
10ee16: 73 11 jae 10ee29 <ftruncate+0x31> <== NEVER TAKEN
iop = rtems_libio_iop( fd );
10ee18: c1 e3 06 shl $0x6,%ebx
10ee1b: 03 1d b8 60 12 00 add 0x1260b8,%ebx
rtems_libio_check_is_open(iop);
10ee21: 8b 43 14 mov 0x14(%ebx),%eax
10ee24: f6 c4 01 test $0x1,%ah
10ee27: 75 0d jne 10ee36 <ftruncate+0x3e> <== ALWAYS TAKEN
10ee29: e8 e6 3b 00 00 call 112a14 <__errno> <== NOT EXECUTED
10ee2e: c7 00 09 00 00 00 movl $0x9,(%eax) <== NOT EXECUTED
10ee34: eb 5f jmp 10ee95 <ftruncate+0x9d> <== NOT EXECUTED
rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );
10ee36: a8 04 test $0x4,%al
10ee38: 74 39 je 10ee73 <ftruncate+0x7b> <== NEVER TAKEN
/*
* Make sure we are not working on a directory
*/
loc = iop->pathinfo;
10ee3a: 8d 7d d4 lea -0x2c(%ebp),%edi
10ee3d: 8d 73 18 lea 0x18(%ebx),%esi
10ee40: b9 05 00 00 00 mov $0x5,%ecx
10ee45: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
if ( !loc.ops->node_type_h )
10ee47: 8b 45 e0 mov -0x20(%ebp),%eax
10ee4a: 8b 40 10 mov 0x10(%eax),%eax
10ee4d: 85 c0 test %eax,%eax
10ee4f: 74 39 je 10ee8a <ftruncate+0x92> <== NEVER TAKEN
rtems_set_errno_and_return_minus_one( ENOTSUP );
if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY )
10ee51: 83 ec 0c sub $0xc,%esp
10ee54: 8d 55 d4 lea -0x2c(%ebp),%edx
10ee57: 52 push %edx
10ee58: ff d0 call *%eax
10ee5a: 83 c4 10 add $0x10,%esp
10ee5d: 48 dec %eax
10ee5e: 75 0d jne 10ee6d <ftruncate+0x75>
rtems_set_errno_and_return_minus_one( EISDIR );
10ee60: e8 af 3b 00 00 call 112a14 <__errno>
10ee65: c7 00 15 00 00 00 movl $0x15,(%eax)
10ee6b: eb 28 jmp 10ee95 <ftruncate+0x9d>
rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );
10ee6d: f6 43 14 04 testb $0x4,0x14(%ebx)
10ee71: 75 0d jne 10ee80 <ftruncate+0x88> <== ALWAYS TAKEN
10ee73: e8 9c 3b 00 00 call 112a14 <__errno> <== NOT EXECUTED
10ee78: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
10ee7e: eb 15 jmp 10ee95 <ftruncate+0x9d> <== NOT EXECUTED
if ( !iop->handlers->ftruncate_h )
10ee80: 8b 43 3c mov 0x3c(%ebx),%eax
10ee83: 8b 40 20 mov 0x20(%eax),%eax
10ee86: 85 c0 test %eax,%eax
10ee88: 75 10 jne 10ee9a <ftruncate+0xa2> <== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( ENOTSUP );
10ee8a: e8 85 3b 00 00 call 112a14 <__errno> <== NOT EXECUTED
10ee8f: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
10ee95: 83 c8 ff or $0xffffffff,%eax
10ee98: eb 0d jmp 10eea7 <ftruncate+0xaf>
return (*iop->handlers->ftruncate_h)( iop, length );
10ee9a: 52 push %edx
10ee9b: ff 75 c4 pushl -0x3c(%ebp)
10ee9e: ff 75 c0 pushl -0x40(%ebp)
10eea1: 53 push %ebx
10eea2: ff d0 call *%eax
10eea4: 83 c4 10 add $0x10,%esp
}
10eea7: 8d 65 f4 lea -0xc(%ebp),%esp
10eeaa: 5b pop %ebx
10eeab: 5e pop %esi
10eeac: 5f pop %edi
10eead: c9 leave
10eeae: c3 ret
00107330 <get_disk_entry>:
}
}
static rtems_disk_device *
get_disk_entry(dev_t dev, bool lookup_only)
{
107330: 55 push %ebp
107331: 89 e5 mov %esp,%ebp
107333: 53 push %ebx
rtems_device_major_number major = 0;
rtems_device_minor_number minor = 0;
rtems_filesystem_split_dev_t(dev, major, minor);
if (major < disktab_size && disktab != NULL) {
107334: 3b 05 cc 8d 12 00 cmp 0x128dcc,%eax
10733a: 73 2e jae 10736a <get_disk_entry+0x3a> <== NEVER TAKEN
10733c: 8b 1d c8 8d 12 00 mov 0x128dc8,%ebx
107342: 85 db test %ebx,%ebx
107344: 74 24 je 10736a <get_disk_entry+0x3a> <== NEVER TAKEN
rtems_disk_device_table *dtab = disktab + major;
107346: 8d 04 c3 lea (%ebx,%eax,8),%eax
if (minor < dtab->size && dtab->minor != NULL) {
107349: 3b 50 04 cmp 0x4(%eax),%edx
10734c: 73 1c jae 10736a <get_disk_entry+0x3a> <== NEVER TAKEN
10734e: 8b 00 mov (%eax),%eax
107350: 85 c0 test %eax,%eax
107352: 74 16 je 10736a <get_disk_entry+0x3a> <== NEVER TAKEN
rtems_disk_device *dd = dtab->minor [minor];
107354: 8b 04 90 mov (%eax,%edx,4),%eax
if (dd != NULL && !lookup_only) {
107357: 85 c0 test %eax,%eax
107359: 74 11 je 10736c <get_disk_entry+0x3c>
10735b: 84 c9 test %cl,%cl
10735d: 75 0d jne 10736c <get_disk_entry+0x3c>
if (!dd->deleted) {
10735f: 80 78 30 00 cmpb $0x0,0x30(%eax)
107363: 75 05 jne 10736a <get_disk_entry+0x3a>
++dd->uses;
107365: ff 40 14 incl 0x14(%eax)
107368: eb 02 jmp 10736c <get_disk_entry+0x3c>
10736a: 31 c0 xor %eax,%eax
return dd;
}
}
return NULL;
}
10736c: 5b pop %ebx
10736d: c9 leave
10736e: c3 ret
00153f3c <getdents>:
int getdents(
int dd_fd,
char *dd_buf,
int dd_len
)
{
153f3c: 55 push %ebp
153f3d: 89 e5 mov %esp,%ebp
153f3f: 57 push %edi
153f40: 56 push %esi
153f41: 53 push %ebx
153f42: 83 ec 2c sub $0x2c,%esp
153f45: 8b 45 08 mov 0x8(%ebp),%eax
/*
* Get the file control block structure associated with the file descriptor
*/
iop = rtems_libio_iop( dd_fd );
153f48: 31 db xor %ebx,%ebx
153f4a: 3b 05 44 26 16 00 cmp 0x162644,%eax
153f50: 73 0b jae 153f5d <getdents+0x21> <== NEVER TAKEN
153f52: 89 c3 mov %eax,%ebx
153f54: c1 e3 06 shl $0x6,%ebx
153f57: 03 1d d4 9f 16 00 add 0x169fd4,%ebx
/*
* Make sure we are working on a directory
*/
loc = iop->pathinfo;
153f5d: 8d 7d d4 lea -0x2c(%ebp),%edi
153f60: 8d 73 18 lea 0x18(%ebx),%esi
153f63: b9 05 00 00 00 mov $0x5,%ecx
153f68: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
if ( !loc.ops->node_type_h )
153f6a: 8b 45 e0 mov -0x20(%ebp),%eax
153f6d: 8b 40 10 mov 0x10(%eax),%eax
153f70: 85 c0 test %eax,%eax
153f72: 74 29 je 153f9d <getdents+0x61> <== NEVER TAKEN
rtems_set_errno_and_return_minus_one( ENOTSUP );
if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY )
153f74: 83 ec 0c sub $0xc,%esp
153f77: 8d 55 d4 lea -0x2c(%ebp),%edx
153f7a: 52 push %edx
153f7b: ff d0 call *%eax
153f7d: 83 c4 10 add $0x10,%esp
153f80: 48 dec %eax
153f81: 74 10 je 153f93 <getdents+0x57>
rtems_set_errno_and_return_minus_one( ENOTDIR );
153f83: e8 8c a0 fe ff call 13e014 <__errno>
153f88: c7 00 14 00 00 00 movl $0x14,(%eax)
153f8e: 83 c8 ff or $0xffffffff,%eax
153f91: eb 24 jmp 153fb7 <getdents+0x7b>
/*
* Return the number of bytes that were actually transfered as a result
* of the read attempt.
*/
if ( !iop->handlers->read_h )
153f93: 8b 43 3c mov 0x3c(%ebx),%eax
153f96: 8b 40 08 mov 0x8(%eax),%eax
153f99: 85 c0 test %eax,%eax
153f9b: 75 0d jne 153faa <getdents+0x6e> <== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( ENOTSUP );
153f9d: e8 72 a0 fe ff call 13e014 <__errno> <== NOT EXECUTED
153fa2: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
153fa8: eb e4 jmp 153f8e <getdents+0x52> <== NOT EXECUTED
return (*iop->handlers->read_h)( iop, dd_buf, dd_len );
153faa: 52 push %edx
153fab: ff 75 10 pushl 0x10(%ebp)
153fae: ff 75 0c pushl 0xc(%ebp)
153fb1: 53 push %ebx
153fb2: ff d0 call *%eax
153fb4: 83 c4 10 add $0x10,%esp
}
153fb7: 8d 65 f4 lea -0xc(%ebp),%esp
153fba: 5b pop %ebx
153fbb: 5e pop %esi
153fbc: 5f pop %edi
153fbd: c9 leave
153fbe: c3 ret
001282b0 <getgid>:
* 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs,
* P1003.1b-1993, p. 84
*/
gid_t getgid( void )
{
1282b0: 55 push %ebp <== NOT EXECUTED
1282b1: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1282b3: a1 fc 46 16 00 mov 0x1646fc,%eax <== NOT EXECUTED
1282b8: 8b 40 34 mov 0x34(%eax),%eax <== NOT EXECUTED
return _POSIX_types_Gid;
}
1282bb: c9 leave <== NOT EXECUTED
1282bc: c3 ret <== NOT EXECUTED
001287ce <getgr_r>:
struct group *grp,
char *buffer,
size_t bufsize,
struct group **result
)
{
1287ce: 55 push %ebp
1287cf: 89 e5 mov %esp,%ebp
1287d1: 57 push %edi
1287d2: 56 push %esi
1287d3: 53 push %ebx
1287d4: 83 ec 1c sub $0x1c,%esp
1287d7: 89 c7 mov %eax,%edi
1287d9: 89 55 e4 mov %edx,-0x1c(%ebp)
1287dc: 89 ce mov %ecx,%esi
FILE *fp;
int match;
init_etc_passwd_group();
1287de: e8 df fe ff ff call 1286c2 <init_etc_passwd_group>
if ((fp = fopen("/etc/group", "r")) == NULL) {
1287e3: 53 push %ebx
1287e4: 53 push %ebx
1287e5: 68 ca 7d 15 00 push $0x157dca
1287ea: 68 96 4b 15 00 push $0x154b96
1287ef: e8 84 61 01 00 call 13e978 <fopen>
1287f4: 89 c3 mov %eax,%ebx
1287f6: 83 c4 10 add $0x10,%esp
1287f9: 85 c0 test %eax,%eax
1287fb: 75 10 jne 12880d <getgr_r+0x3f> <== ALWAYS TAKEN
errno = EINVAL;
1287fd: e8 12 58 01 00 call 13e014 <__errno> <== NOT EXECUTED
128802: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
128808: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
return -1;
12880b: eb 6b jmp 128878 <getgr_r+0xaa> <== NOT EXECUTED
}
for(;;) {
if (!scangr(fp, grp, buffer, bufsize)) {
12880d: 83 ec 0c sub $0xc,%esp
128810: ff 75 0c pushl 0xc(%ebp)
128813: 8b 4d 08 mov 0x8(%ebp),%ecx
128816: 89 f2 mov %esi,%edx
128818: 89 d8 mov %ebx,%eax
12881a: e8 39 fc ff ff call 128458 <scangr>
12881f: 83 c4 10 add $0x10,%esp
128822: 85 c0 test %eax,%eax
128824: 75 19 jne 12883f <getgr_r+0x71> <== ALWAYS TAKEN
errno = EINVAL;
128826: e8 e9 57 01 00 call 13e014 <__errno> <== NOT EXECUTED
12882b: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
fclose(fp);
128831: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
128834: 53 push %ebx <== NOT EXECUTED
128835: e8 26 59 01 00 call 13e160 <fclose> <== NOT EXECUTED
12883a: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
12883d: eb 36 jmp 128875 <getgr_r+0xa7> <== NOT EXECUTED
return -1;
}
if (name) {
12883f: 85 ff test %edi,%edi
128841: 74 11 je 128854 <getgr_r+0x86> <== NEVER TAKEN
match = (strcmp(grp->gr_name, name) == 0);
128843: 51 push %ecx
128844: 51 push %ecx
128845: 57 push %edi
128846: ff 36 pushl (%esi)
128848: e8 6f b0 01 00 call 1438bc <strcmp>
12884d: 83 c4 10 add $0x10,%esp
128850: 85 c0 test %eax,%eax
128852: eb 07 jmp 12885b <getgr_r+0x8d>
}
else {
match = (grp->gr_gid == gid);
128854: 0f b7 46 08 movzwl 0x8(%esi),%eax <== NOT EXECUTED
128858: 3b 45 e4 cmp -0x1c(%ebp),%eax <== NOT EXECUTED
12885b: 0f 94 c0 sete %al
12885e: 0f b6 c0 movzbl %al,%eax
}
if (match) {
128861: 85 c0 test %eax,%eax
128863: 74 a8 je 12880d <getgr_r+0x3f>
fclose(fp);
128865: 83 ec 0c sub $0xc,%esp
128868: 53 push %ebx
128869: e8 f2 58 01 00 call 13e160 <fclose>
*result = grp;
12886e: 8b 45 10 mov 0x10(%ebp),%eax
128871: 89 30 mov %esi,(%eax)
128873: 31 c0 xor %eax,%eax
return 0;
128875: 83 c4 10 add $0x10,%esp
}
}
fclose(fp);
errno = EINVAL;
return -1;
}
128878: 8d 65 f4 lea -0xc(%ebp),%esp
12887b: 5b pop %ebx
12887c: 5e pop %esi
12887d: 5f pop %edi
12887e: c9 leave
12887f: c3 ret
00128557 <getgrent>:
return NULL;
return p;
}
struct group *getgrent(void)
{
128557: 55 push %ebp <== NOT EXECUTED
128558: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12855a: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
if (group_fp == NULL)
12855d: a1 0c 9c 16 00 mov 0x169c0c,%eax <== NOT EXECUTED
128562: 85 c0 test %eax,%eax <== NOT EXECUTED
128564: 74 25 je 12858b <getgrent+0x34> <== NOT EXECUTED
return NULL;
if (!scangr(group_fp, &grent, grbuf, sizeof grbuf))
128566: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
128569: 68 c8 00 00 00 push $0xc8 <== NOT EXECUTED
12856e: b9 10 9c 16 00 mov $0x169c10,%ecx <== NOT EXECUTED
128573: ba d8 9c 16 00 mov $0x169cd8,%edx <== NOT EXECUTED
128578: e8 db fe ff ff call 128458 <scangr> <== NOT EXECUTED
12857d: 89 c2 mov %eax,%edx <== NOT EXECUTED
12857f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
128582: b8 d8 9c 16 00 mov $0x169cd8,%eax <== NOT EXECUTED
128587: 85 d2 test %edx,%edx <== NOT EXECUTED
128589: 75 02 jne 12858d <getgrent+0x36> <== NOT EXECUTED
12858b: 31 c0 xor %eax,%eax <== NOT EXECUTED
return NULL;
return &grent;
}
12858d: c9 leave <== NOT EXECUTED
12858e: c3 ret <== NOT EXECUTED
001288aa <getgrgid>:
}
struct group *getgrgid(
gid_t gid
)
{
1288aa: 55 push %ebp <== NOT EXECUTED
1288ab: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1288ad: 83 ec 24 sub $0x24,%esp <== NOT EXECUTED
struct group *p;
if(getgrgid_r(gid, &grent, grbuf, sizeof grbuf, &p))
1288b0: 8d 45 f4 lea -0xc(%ebp),%eax <== NOT EXECUTED
1288b3: 50 push %eax <== NOT EXECUTED
1288b4: 68 c8 00 00 00 push $0xc8 <== NOT EXECUTED
1288b9: 68 10 9c 16 00 push $0x169c10 <== NOT EXECUTED
1288be: 68 d8 9c 16 00 push $0x169cd8 <== NOT EXECUTED
1288c3: 0f b7 45 08 movzwl 0x8(%ebp),%eax <== NOT EXECUTED
1288c7: 50 push %eax <== NOT EXECUTED
1288c8: e8 b3 ff ff ff call 128880 <getgrgid_r> <== NOT EXECUTED
1288cd: 89 c2 mov %eax,%edx <== NOT EXECUTED
1288cf: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
1288d2: 31 c0 xor %eax,%eax <== NOT EXECUTED
1288d4: 85 d2 test %edx,%edx <== NOT EXECUTED
1288d6: 75 03 jne 1288db <getgrgid+0x31> <== NOT EXECUTED
return NULL;
return p;
1288d8: 8b 45 f4 mov -0xc(%ebp),%eax <== NOT EXECUTED
}
1288db: c9 leave <== NOT EXECUTED
1288dc: c3 ret <== NOT EXECUTED
00128880 <getgrgid_r>:
struct group *grp,
char *buffer,
size_t bufsize,
struct group **result
)
{
128880: 55 push %ebp <== NOT EXECUTED
128881: 89 e5 mov %esp,%ebp <== NOT EXECUTED
128883: 53 push %ebx <== NOT EXECUTED
128884: 83 ec 04 sub $0x4,%esp <== NOT EXECUTED
128887: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED
12888a: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
return getgr_r(NULL, gid, grp, buffer, bufsize, result);
12888d: 0f b7 55 08 movzwl 0x8(%ebp),%edx <== NOT EXECUTED
128891: 8b 5d 18 mov 0x18(%ebp),%ebx <== NOT EXECUTED
128894: 89 5d 10 mov %ebx,0x10(%ebp) <== NOT EXECUTED
128897: 8b 5d 14 mov 0x14(%ebp),%ebx <== NOT EXECUTED
12889a: 89 5d 0c mov %ebx,0xc(%ebp) <== NOT EXECUTED
12889d: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED
1288a0: 31 c0 xor %eax,%eax <== NOT EXECUTED
}
1288a2: 5b pop %ebx <== NOT EXECUTED
1288a3: 5b pop %ebx <== NOT EXECUTED
1288a4: c9 leave <== NOT EXECUTED
char *buffer,
size_t bufsize,
struct group **result
)
{
return getgr_r(NULL, gid, grp, buffer, bufsize, result);
1288a5: e9 24 ff ff ff jmp 1287ce <getgr_r> <== NOT EXECUTED
00128906 <getgrnam>:
}
struct group *getgrnam(
const char *name
)
{
128906: 55 push %ebp
128907: 89 e5 mov %esp,%ebp
128909: 83 ec 24 sub $0x24,%esp
struct group *p;
if(getgrnam_r(name, &grent, grbuf, sizeof grbuf, &p))
12890c: 8d 45 f4 lea -0xc(%ebp),%eax
12890f: 50 push %eax
128910: 68 c8 00 00 00 push $0xc8
128915: 68 10 9c 16 00 push $0x169c10
12891a: 68 d8 9c 16 00 push $0x169cd8
12891f: ff 75 08 pushl 0x8(%ebp)
128922: e8 b6 ff ff ff call 1288dd <getgrnam_r>
128927: 89 c2 mov %eax,%edx
128929: 83 c4 20 add $0x20,%esp
12892c: 31 c0 xor %eax,%eax
12892e: 85 d2 test %edx,%edx
128930: 75 03 jne 128935 <getgrnam+0x2f> <== NEVER TAKEN
return NULL;
return p;
128932: 8b 45 f4 mov -0xc(%ebp),%eax
}
128935: c9 leave
128936: c3 ret
00128972 <getpw_r>:
struct passwd *pwd,
char *buffer,
size_t bufsize,
struct passwd **result
)
{
128972: 55 push %ebp
128973: 89 e5 mov %esp,%ebp
128975: 57 push %edi
128976: 56 push %esi
128977: 53 push %ebx
128978: 83 ec 1c sub $0x1c,%esp
12897b: 89 c7 mov %eax,%edi
12897d: 89 55 e4 mov %edx,-0x1c(%ebp)
128980: 89 ce mov %ecx,%esi
FILE *fp;
int match;
init_etc_passwd_group();
128982: e8 3b fd ff ff call 1286c2 <init_etc_passwd_group>
if ((fp = fopen("/etc/passwd", "r")) == NULL) {
128987: 51 push %ecx
128988: 51 push %ecx
128989: 68 ca 7d 15 00 push $0x157dca
12898e: 68 51 4b 15 00 push $0x154b51
128993: e8 e0 5f 01 00 call 13e978 <fopen>
128998: 89 c3 mov %eax,%ebx
12899a: 83 c4 10 add $0x10,%esp
12899d: 85 c0 test %eax,%eax
12899f: 75 10 jne 1289b1 <getpw_r+0x3f> <== ALWAYS TAKEN
errno = EINVAL;
1289a1: e8 6e 56 01 00 call 13e014 <__errno> <== NOT EXECUTED
1289a6: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
1289ac: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
return -1;
1289af: eb 6b jmp 128a1c <getpw_r+0xaa> <== NOT EXECUTED
}
for(;;) {
if (!scanpw(fp, pwd, buffer, bufsize)) {
1289b1: 83 ec 0c sub $0xc,%esp
1289b4: ff 75 0c pushl 0xc(%ebp)
1289b7: 8b 4d 08 mov 0x8(%ebp),%ecx
1289ba: 89 f2 mov %esi,%edx
1289bc: 89 d8 mov %ebx,%eax
1289be: e8 cc fb ff ff call 12858f <scanpw>
1289c3: 83 c4 10 add $0x10,%esp
1289c6: 85 c0 test %eax,%eax
1289c8: 75 19 jne 1289e3 <getpw_r+0x71> <== ALWAYS TAKEN
errno = EINVAL;
1289ca: e8 45 56 01 00 call 13e014 <__errno> <== NOT EXECUTED
1289cf: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
fclose(fp);
1289d5: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1289d8: 53 push %ebx <== NOT EXECUTED
1289d9: e8 82 57 01 00 call 13e160 <fclose> <== NOT EXECUTED
1289de: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
1289e1: eb 36 jmp 128a19 <getpw_r+0xa7> <== NOT EXECUTED
return -1;
}
if (name) {
1289e3: 85 ff test %edi,%edi
1289e5: 74 11 je 1289f8 <getpw_r+0x86> <== NEVER TAKEN
match = (strcmp(pwd->pw_name, name) == 0);
1289e7: 52 push %edx
1289e8: 52 push %edx
1289e9: 57 push %edi
1289ea: ff 36 pushl (%esi)
1289ec: e8 cb ae 01 00 call 1438bc <strcmp>
1289f1: 83 c4 10 add $0x10,%esp
1289f4: 85 c0 test %eax,%eax
1289f6: eb 07 jmp 1289ff <getpw_r+0x8d>
}
else {
match = (pwd->pw_uid == uid);
1289f8: 0f b7 46 08 movzwl 0x8(%esi),%eax <== NOT EXECUTED
1289fc: 3b 45 e4 cmp -0x1c(%ebp),%eax <== NOT EXECUTED
1289ff: 0f 94 c0 sete %al
128a02: 0f b6 c0 movzbl %al,%eax
}
if (match) {
128a05: 85 c0 test %eax,%eax
128a07: 74 a8 je 1289b1 <getpw_r+0x3f>
fclose(fp);
128a09: 83 ec 0c sub $0xc,%esp
128a0c: 53 push %ebx
128a0d: e8 4e 57 01 00 call 13e160 <fclose>
*result = pwd;
128a12: 8b 45 10 mov 0x10(%ebp),%eax
128a15: 89 30 mov %esi,(%eax)
128a17: 31 c0 xor %eax,%eax
return 0;
128a19: 83 c4 10 add $0x10,%esp
}
}
fclose(fp);
errno = EINVAL;
return -1;
}
128a1c: 8d 65 f4 lea -0xc(%ebp),%esp
128a1f: 5b pop %ebx
128a20: 5e pop %esi
128a21: 5f pop %edi
128a22: c9 leave
128a23: c3 ret
0012868a <getpwent>:
return NULL;
return p;
}
struct passwd *getpwent(void)
{
12868a: 55 push %ebp <== NOT EXECUTED
12868b: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12868d: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
if (passwd_fp == NULL)
128690: a1 24 9b 16 00 mov 0x169b24,%eax <== NOT EXECUTED
128695: 85 c0 test %eax,%eax <== NOT EXECUTED
128697: 74 25 je 1286be <getpwent+0x34> <== NOT EXECUTED
return NULL;
if (!scanpw(passwd_fp, &pwent, pwbuf, sizeof pwbuf))
128699: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12869c: 68 c8 00 00 00 push $0xc8 <== NOT EXECUTED
1286a1: b9 28 9b 16 00 mov $0x169b28,%ecx <== NOT EXECUTED
1286a6: ba f0 9b 16 00 mov $0x169bf0,%edx <== NOT EXECUTED
1286ab: e8 df fe ff ff call 12858f <scanpw> <== NOT EXECUTED
1286b0: 89 c2 mov %eax,%edx <== NOT EXECUTED
1286b2: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1286b5: b8 f0 9b 16 00 mov $0x169bf0,%eax <== NOT EXECUTED
1286ba: 85 d2 test %edx,%edx <== NOT EXECUTED
1286bc: 75 02 jne 1286c0 <getpwent+0x36> <== NOT EXECUTED
1286be: 31 c0 xor %eax,%eax <== NOT EXECUTED
return NULL;
return &pwent;
}
1286c0: c9 leave <== NOT EXECUTED
1286c1: c3 ret <== NOT EXECUTED
00128aaa <getpwnam>:
}
struct passwd *getpwnam(
const char *name
)
{
128aaa: 55 push %ebp
128aab: 89 e5 mov %esp,%ebp
128aad: 83 ec 24 sub $0x24,%esp
struct passwd *p;
if(getpwnam_r(name, &pwent, pwbuf, sizeof pwbuf, &p))
128ab0: 8d 45 f4 lea -0xc(%ebp),%eax
128ab3: 50 push %eax
128ab4: 68 c8 00 00 00 push $0xc8
128ab9: 68 28 9b 16 00 push $0x169b28
128abe: 68 f0 9b 16 00 push $0x169bf0
128ac3: ff 75 08 pushl 0x8(%ebp)
128ac6: e8 b6 ff ff ff call 128a81 <getpwnam_r>
128acb: 89 c2 mov %eax,%edx
128acd: 83 c4 20 add $0x20,%esp
128ad0: 31 c0 xor %eax,%eax
128ad2: 85 d2 test %edx,%edx
128ad4: 75 03 jne 128ad9 <getpwnam+0x2f> <== NEVER TAKEN
return NULL;
return p;
128ad6: 8b 45 f4 mov -0xc(%ebp),%eax
}
128ad9: c9 leave
128ada: c3 ret
00128a4e <getpwuid>:
}
struct passwd *getpwuid(
uid_t uid
)
{
128a4e: 55 push %ebp <== NOT EXECUTED
128a4f: 89 e5 mov %esp,%ebp <== NOT EXECUTED
128a51: 83 ec 24 sub $0x24,%esp <== NOT EXECUTED
struct passwd *p;
if(getpwuid_r(uid, &pwent, pwbuf, sizeof pwbuf, &p))
128a54: 8d 45 f4 lea -0xc(%ebp),%eax <== NOT EXECUTED
128a57: 50 push %eax <== NOT EXECUTED
128a58: 68 c8 00 00 00 push $0xc8 <== NOT EXECUTED
128a5d: 68 28 9b 16 00 push $0x169b28 <== NOT EXECUTED
128a62: 68 f0 9b 16 00 push $0x169bf0 <== NOT EXECUTED
128a67: 0f b7 45 08 movzwl 0x8(%ebp),%eax <== NOT EXECUTED
128a6b: 50 push %eax <== NOT EXECUTED
128a6c: e8 b3 ff ff ff call 128a24 <getpwuid_r> <== NOT EXECUTED
128a71: 89 c2 mov %eax,%edx <== NOT EXECUTED
128a73: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
128a76: 31 c0 xor %eax,%eax <== NOT EXECUTED
128a78: 85 d2 test %edx,%edx <== NOT EXECUTED
128a7a: 75 03 jne 128a7f <getpwuid+0x31> <== NOT EXECUTED
return NULL;
return p;
128a7c: 8b 45 f4 mov -0xc(%ebp),%eax <== NOT EXECUTED
}
128a7f: c9 leave <== NOT EXECUTED
128a80: c3 ret <== NOT EXECUTED
00128a24 <getpwuid_r>:
struct passwd *pwd,
char *buffer,
size_t bufsize,
struct passwd **result
)
{
128a24: 55 push %ebp <== NOT EXECUTED
128a25: 89 e5 mov %esp,%ebp <== NOT EXECUTED
128a27: 53 push %ebx <== NOT EXECUTED
128a28: 83 ec 04 sub $0x4,%esp <== NOT EXECUTED
128a2b: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED
128a2e: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
return getpw_r(NULL, uid, pwd, buffer, bufsize, result);
128a31: 0f b7 55 08 movzwl 0x8(%ebp),%edx <== NOT EXECUTED
128a35: 8b 5d 18 mov 0x18(%ebp),%ebx <== NOT EXECUTED
128a38: 89 5d 10 mov %ebx,0x10(%ebp) <== NOT EXECUTED
128a3b: 8b 5d 14 mov 0x14(%ebp),%ebx <== NOT EXECUTED
128a3e: 89 5d 0c mov %ebx,0xc(%ebp) <== NOT EXECUTED
128a41: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED
128a44: 31 c0 xor %eax,%eax <== NOT EXECUTED
}
128a46: 5b pop %ebx <== NOT EXECUTED
128a47: 5b pop %ebx <== NOT EXECUTED
128a48: c9 leave <== NOT EXECUTED
char *buffer,
size_t bufsize,
struct passwd **result
)
{
return getpw_r(NULL, uid, pwd, buffer, bufsize, result);
128a49: e9 24 ff ff ff jmp 128972 <getpw_r> <== NOT EXECUTED
00107714 <gettimeofday>:
*/
int gettimeofday(
struct timeval *tp,
void * __tz __attribute__((unused))
)
{
107714: 55 push %ebp
107715: 89 e5 mov %esp,%ebp
107717: 56 push %esi
107718: 53 push %ebx
107719: 83 ec 10 sub $0x10,%esp
10771c: 8b 5d 08 mov 0x8(%ebp),%ebx
/* struct timezone* tzp = (struct timezone*) __tz; */
if ( !tp ) {
10771f: 85 db test %ebx,%ebx
107721: 75 10 jne 107733 <gettimeofday+0x1f> <== ALWAYS TAKEN
errno = EFAULT;
107723: e8 ec b2 00 00 call 112a14 <__errno> <== NOT EXECUTED
107728: c7 00 0e 00 00 00 movl $0xe,(%eax) <== NOT EXECUTED
10772e: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
return -1;
107731: eb 29 jmp 10775c <gettimeofday+0x48> <== NOT EXECUTED
{
ISR_Level level;
struct timespec now;
suseconds_t useconds;
_ISR_Disable(level);
107733: 9c pushf
107734: fa cli
107735: 5e pop %esi
_TOD_Get( &now );
107736: 83 ec 0c sub $0xc,%esp
107739: 8d 45 f0 lea -0x10(%ebp),%eax
10773c: 50 push %eax
10773d: e8 3a 3b 00 00 call 10b27c <_TOD_Get>
_ISR_Enable(level);
107742: 56 push %esi
107743: 9d popf
useconds = (suseconds_t)now.tv_nsec;
107744: 8b 45 f4 mov -0xc(%ebp),%eax
useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND;
time->tv_sec = now.tv_sec;
107747: 8b 55 f0 mov -0x10(%ebp),%edx
10774a: 89 13 mov %edx,(%ebx)
time->tv_usec = useconds;
10774c: b9 e8 03 00 00 mov $0x3e8,%ecx
107751: 99 cltd
107752: f7 f9 idiv %ecx
107754: 89 43 04 mov %eax,0x4(%ebx)
107757: 31 c0 xor %eax,%eax
* 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;
107759: 83 c4 10 add $0x10,%esp
}
10775c: 8d 65 f8 lea -0x8(%ebp),%esp
10775f: 5b pop %ebx
107760: 5e pop %esi
107761: c9 leave
107762: c3 ret
0010cf88 <getuid>:
* 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs,
* P1003.1b-1993, p. 84
*/
uid_t getuid( void )
{
10cf88: 55 push %ebp <== NOT EXECUTED
10cf89: 89 e5 mov %esp,%ebp <== NOT EXECUTED
10cf8b: a1 fc 46 16 00 mov 0x1646fc,%eax <== NOT EXECUTED
10cf90: 66 8b 40 32 mov 0x32(%eax),%ax <== NOT EXECUTED
return _POSIX_types_Uid;
}
10cf94: c9 leave <== NOT EXECUTED
10cf95: c3 ret <== NOT EXECUTED
00111844 <imfs_dir_open>:
rtems_libio_t *iop,
const char *pathname,
uint32_t flag,
uint32_t mode
)
{
111844: 55 push %ebp
111845: 89 e5 mov %esp,%ebp
111847: 8b 55 08 mov 0x8(%ebp),%edx
IMFS_jnode_t *the_jnode;
/* Is the node a directory ? */
the_jnode = (IMFS_jnode_t *) iop->file_info;
11184a: 8b 4a 38 mov 0x38(%edx),%ecx
11184d: 83 c8 ff or $0xffffffff,%eax
111850: 83 79 4c 01 cmpl $0x1,0x4c(%ecx)
111854: 75 10 jne 111866 <imfs_dir_open+0x22> <== NEVER TAKEN
if ( the_jnode->type != IMFS_DIRECTORY )
return -1; /* It wasn't a directory --> return error */
iop->offset = 0;
111856: c7 42 0c 00 00 00 00 movl $0x0,0xc(%edx)
11185d: c7 42 10 00 00 00 00 movl $0x0,0x10(%edx)
111864: 31 c0 xor %eax,%eax
return 0;
}
111866: c9 leave
111867: c3 ret
00111a1a <imfs_dir_read>:
ssize_t imfs_dir_read(
rtems_libio_t *iop,
void *buffer,
size_t count
)
{
111a1a: 55 push %ebp
111a1b: 89 e5 mov %esp,%ebp
111a1d: 57 push %edi
111a1e: 56 push %esi
111a1f: 53 push %ebx
111a20: 81 ec 4c 01 00 00 sub $0x14c,%esp
111a26: 8b 45 10 mov 0x10(%ebp),%eax
int current_entry;
int first_entry;
int last_entry;
struct dirent tmp_dirent;
the_jnode = (IMFS_jnode_t *)iop->file_info;
111a29: 8b 4d 08 mov 0x8(%ebp),%ecx
111a2c: 8b 51 38 mov 0x38(%ecx),%edx
*/
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
Chain_Control *the_chain
)
{
return (the_chain->first == _Chain_Tail(the_chain));
111a2f: 8b 5a 50 mov 0x50(%edx),%ebx
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
111a32: 83 c2 54 add $0x54,%edx
111a35: 89 95 cc fe ff ff mov %edx,-0x134(%ebp)
the_chain = &the_jnode->info.directory.Entries;
if ( rtems_chain_is_empty( the_chain ) )
111a3b: 31 d2 xor %edx,%edx
111a3d: 3b 9d cc fe ff ff cmp -0x134(%ebp),%ebx
111a43: 0f 84 02 01 00 00 je 111b4b <imfs_dir_read+0x131> <== NEVER TAKEN
/* Move to the first of the desired directory entries */
the_node = the_chain->first;
bytes_transferred = 0;
first_entry = iop->offset;
111a49: 8b 51 0c mov 0xc(%ecx),%edx
111a4c: 89 95 c8 fe ff ff mov %edx,-0x138(%ebp)
/* protect against using sizes that are not exact multiples of the */
/* -dirent- size. These could result in unexpected results */
last_entry = first_entry + (count/sizeof(struct dirent)) * sizeof(struct dirent);
111a52: b9 10 01 00 00 mov $0x110,%ecx
111a57: 31 d2 xor %edx,%edx
111a59: f7 f1 div %ecx
111a5b: 69 c0 10 01 00 00 imul $0x110,%eax,%eax
111a61: 03 85 c8 fe ff ff add -0x138(%ebp),%eax
111a67: 89 85 c4 fe ff ff mov %eax,-0x13c(%ebp)
111a6d: c7 85 d4 fe ff ff 00 movl $0x0,-0x12c(%ebp)
111a74: 00 00 00
111a77: 31 d2 xor %edx,%edx
tmp_dirent.d_off = current_entry;
tmp_dirent.d_reclen = sizeof( struct dirent );
the_jnode = (IMFS_jnode_t *) the_node;
tmp_dirent.d_ino = the_jnode->st_ino;
tmp_dirent.d_namlen = strlen( the_jnode->name );
strcpy( tmp_dirent.d_name, the_jnode->name );
111a79: 8d 8d d8 fe ff ff lea -0x128(%ebp),%ecx
111a7f: 89 8d b4 fe ff ff mov %ecx,-0x14c(%ebp)
111a85: 89 95 d0 fe ff ff mov %edx,-0x130(%ebp)
/* protect against using sizes that are not exact multiples of the */
/* -dirent- size. These could result in unexpected results */
last_entry = first_entry + (count/sizeof(struct dirent)) * sizeof(struct dirent);
/* The directory was not empty so try to move to the desired entry in chain*/
for (
111a8b: e9 a3 00 00 00 jmp 111b33 <imfs_dir_read+0x119>
current_entry = 0;
current_entry < last_entry;
current_entry = current_entry + sizeof(struct dirent) ){
if ( rtems_chain_is_tail( the_chain, the_node ) ){
111a90: 3b 9d cc fe ff ff cmp -0x134(%ebp),%ebx
111a96: 0f 84 a9 00 00 00 je 111b45 <imfs_dir_read+0x12b>
/* entry in the read */
return bytes_transferred; /* Indicate that there are no more */
/* entries to return */
}
if( current_entry >= first_entry ) {
111a9c: 8b 85 c8 fe ff ff mov -0x138(%ebp),%eax
111aa2: 39 85 d4 fe ff ff cmp %eax,-0x12c(%ebp)
111aa8: 7c 7d jl 111b27 <imfs_dir_read+0x10d>
/* Move the entry to the return buffer */
tmp_dirent.d_off = current_entry;
111aaa: 8b 85 d4 fe ff ff mov -0x12c(%ebp),%eax
111ab0: 99 cltd
111ab1: 89 85 dc fe ff ff mov %eax,-0x124(%ebp)
111ab7: 89 95 e0 fe ff ff mov %edx,-0x120(%ebp)
tmp_dirent.d_reclen = sizeof( struct dirent );
111abd: 66 c7 85 e4 fe ff ff movw $0x110,-0x11c(%ebp)
111ac4: 10 01
the_jnode = (IMFS_jnode_t *) the_node;
tmp_dirent.d_ino = the_jnode->st_ino;
111ac6: 8b 43 38 mov 0x38(%ebx),%eax
111ac9: 89 85 d8 fe ff ff mov %eax,-0x128(%ebp)
tmp_dirent.d_namlen = strlen( the_jnode->name );
111acf: 8d 53 0c lea 0xc(%ebx),%edx
111ad2: 31 c0 xor %eax,%eax
111ad4: 83 c9 ff or $0xffffffff,%ecx
111ad7: 89 d7 mov %edx,%edi
111ad9: f2 ae repnz scas %es:(%edi),%al
111adb: f7 d1 not %ecx
111add: 49 dec %ecx
111ade: 66 89 8d e6 fe ff ff mov %cx,-0x11a(%ebp)
strcpy( tmp_dirent.d_name, the_jnode->name );
111ae5: 51 push %ecx
111ae6: 51 push %ecx
111ae7: 52 push %edx
111ae8: 8d 95 e8 fe ff ff lea -0x118(%ebp),%edx
111aee: 52 push %edx
111aef: e8 94 1a 00 00 call 113588 <strcpy>
memcpy(
111af4: 8b 45 0c mov 0xc(%ebp),%eax
111af7: 03 85 d0 fe ff ff add -0x130(%ebp),%eax
111afd: b9 44 00 00 00 mov $0x44,%ecx
111b02: 89 c7 mov %eax,%edi
111b04: 8b b5 b4 fe ff ff mov -0x14c(%ebp),%esi
111b0a: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
buffer + bytes_transferred,
(void *)&tmp_dirent,
sizeof( struct dirent )
);
iop->offset = iop->offset + sizeof(struct dirent);
111b0c: 8b 4d 08 mov 0x8(%ebp),%ecx
111b0f: 81 41 0c 10 01 00 00 addl $0x110,0xc(%ecx)
111b16: 83 51 10 00 adcl $0x0,0x10(%ecx)
bytes_transferred = bytes_transferred + sizeof( struct dirent );
111b1a: 81 85 d0 fe ff ff 10 addl $0x110,-0x130(%ebp)
111b21: 01 00 00
111b24: 83 c4 10 add $0x10,%esp
}
the_node = the_node->next;
111b27: 8b 1b mov (%ebx),%ebx
* to the end of the exisiting file, the remaining entries will be placed in
* the buffer and the returned value will be equal to -m actual- times the
* size of a directory entry.
*/
ssize_t imfs_dir_read(
111b29: 81 85 d4 fe ff ff 10 addl $0x110,-0x12c(%ebp)
111b30: 01 00 00
/* protect against using sizes that are not exact multiples of the */
/* -dirent- size. These could result in unexpected results */
last_entry = first_entry + (count/sizeof(struct dirent)) * sizeof(struct dirent);
/* The directory was not empty so try to move to the desired entry in chain*/
for (
111b33: 8b 85 c4 fe ff ff mov -0x13c(%ebp),%eax
111b39: 39 85 d4 fe ff ff cmp %eax,-0x12c(%ebp)
111b3f: 0f 8c 4b ff ff ff jl 111a90 <imfs_dir_read+0x76>
111b45: 8b 95 d0 fe ff ff mov -0x130(%ebp),%edx
the_node = the_node->next;
}
/* Success */
return bytes_transferred;
}
111b4b: 89 d0 mov %edx,%eax
111b4d: 8d 65 f4 lea -0xc(%ebp),%esp
111b50: 5b pop %ebx
111b51: 5e pop %esi
111b52: 5f pop %edi
111b53: c9 leave
111b54: c3 ret
00111968 <imfs_dir_rmnod>:
int imfs_dir_rmnod(
rtems_filesystem_location_info_t *parent_pathloc, /* IN */
rtems_filesystem_location_info_t *pathloc /* IN */
)
{
111968: 55 push %ebp
111969: 89 e5 mov %esp,%ebp
11196b: 56 push %esi
11196c: 53 push %ebx
11196d: 83 ec 10 sub $0x10,%esp
111970: 8b 75 0c mov 0xc(%ebp),%esi
IMFS_jnode_t *the_jnode;
the_jnode = (IMFS_jnode_t *) pathloc->node_access;
111973: 8b 1e mov (%esi),%ebx
111975: 8d 43 54 lea 0x54(%ebx),%eax
111978: 39 43 50 cmp %eax,0x50(%ebx)
11197b: 74 0d je 11198a <imfs_dir_rmnod+0x22>
/*
* You cannot remove a node that still has children
*/
if ( ! rtems_chain_is_empty( &the_jnode->info.directory.Entries ) )
rtems_set_errno_and_return_minus_one( ENOTEMPTY );
11197d: e8 92 10 00 00 call 112a14 <__errno>
111982: c7 00 5a 00 00 00 movl $0x5a,(%eax)
111988: eb 19 jmp 1119a3 <imfs_dir_rmnod+0x3b>
/*
* You cannot remove the file system root node.
*/
if ( pathloc->mt_entry->mt_fs_root.node_access == pathloc->node_access )
11198a: 8b 46 10 mov 0x10(%esi),%eax
11198d: 39 58 1c cmp %ebx,0x1c(%eax)
111990: 74 06 je 111998 <imfs_dir_rmnod+0x30>
/*
* You cannot remove a mountpoint.
*/
if ( the_jnode->info.directory.mt_fs != NULL )
111992: 83 7b 5c 00 cmpl $0x0,0x5c(%ebx)
111996: 74 10 je 1119a8 <imfs_dir_rmnod+0x40> <== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( EBUSY );
111998: e8 77 10 00 00 call 112a14 <__errno>
11199d: c7 00 10 00 00 00 movl $0x10,(%eax)
1119a3: 83 c8 ff or $0xffffffff,%eax
1119a6: eb 6b jmp 111a13 <imfs_dir_rmnod+0xab>
/*
* Take the node out of the parent's chain that contains this node
*/
if ( the_jnode->Parent != NULL ) {
1119a8: 83 7b 08 00 cmpl $0x0,0x8(%ebx)
1119ac: 74 13 je 1119c1 <imfs_dir_rmnod+0x59>
1119ae: 83 ec 0c sub $0xc,%esp
1119b1: 53 push %ebx
1119b2: e8 a1 94 ff ff call 10ae58 <_Chain_Extract>
rtems_chain_extract( (rtems_chain_node *) the_jnode );
the_jnode->Parent = NULL;
1119b7: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx)
1119be: 83 c4 10 add $0x10,%esp
/*
* Decrement the link counter and see if we can free the space.
*/
the_jnode->st_nlink--;
1119c1: 66 ff 4b 34 decw 0x34(%ebx)
IMFS_update_ctime( the_jnode );
1119c5: 50 push %eax
1119c6: 50 push %eax
1119c7: 6a 00 push $0x0
1119c9: 8d 45 f0 lea -0x10(%ebp),%eax
1119cc: 50 push %eax
1119cd: e8 42 5d ff ff call 107714 <gettimeofday>
1119d2: 8b 45 f0 mov -0x10(%ebp),%eax
1119d5: 89 43 48 mov %eax,0x48(%ebx)
/*
* The file cannot be open and the link must be less than 1 to free.
*/
if ( !rtems_libio_is_file_open( the_jnode ) && (the_jnode->st_nlink < 1) ) {
1119d8: 89 1c 24 mov %ebx,(%esp)
1119db: e8 42 d5 ff ff call 10ef22 <rtems_libio_is_file_open>
1119e0: 83 c4 10 add $0x10,%esp
1119e3: 85 c0 test %eax,%eax
1119e5: 75 2a jne 111a11 <imfs_dir_rmnod+0xa9>
1119e7: 66 83 7b 34 00 cmpw $0x0,0x34(%ebx)
1119ec: 75 23 jne 111a11 <imfs_dir_rmnod+0xa9>
/*
* Is the rtems_filesystem_current is this node?
*/
if ( rtems_filesystem_current.node_access == pathloc->node_access )
1119ee: a1 54 3f 12 00 mov 0x123f54,%eax
1119f3: 8b 50 04 mov 0x4(%eax),%edx
1119f6: 3b 16 cmp (%esi),%edx
1119f8: 75 07 jne 111a01 <imfs_dir_rmnod+0x99> <== ALWAYS TAKEN
rtems_filesystem_current.node_access = NULL;
1119fa: c7 40 04 00 00 00 00 movl $0x0,0x4(%eax) <== NOT EXECUTED
/*
* Free memory associated with a memory file.
*/
free( the_jnode );
111a01: 83 ec 0c sub $0xc,%esp
111a04: 53 push %ebx
111a05: e8 92 5c ff ff call 10769c <free>
111a0a: 31 c0 xor %eax,%eax
111a0c: 83 c4 10 add $0x10,%esp
111a0f: eb 02 jmp 111a13 <imfs_dir_rmnod+0xab>
111a11: 31 c0 xor %eax,%eax
}
return 0;
}
111a13: 8d 65 f8 lea -0x8(%ebp),%esp
111a16: 5b pop %ebx
111a17: 5e pop %esi
111a18: c9 leave
111a19: c3 ret
001286c2 <init_etc_passwd_group>:
/*
* Initialize useable but dummy databases
*/
void init_etc_passwd_group(void)
{
1286c2: 55 push %ebp
1286c3: 89 e5 mov %esp,%ebp
1286c5: 53 push %ebx
1286c6: 83 ec 04 sub $0x4,%esp
FILE *fp;
static char etc_passwd_initted = 0;
if (etc_passwd_initted)
1286c9: 80 3d 20 9b 16 00 00 cmpb $0x0,0x169b20
1286d0: 0f 85 b8 00 00 00 jne 12878e <init_etc_passwd_group+0xcc>
return;
etc_passwd_initted = 1;
1286d6: c6 05 20 9b 16 00 01 movb $0x1,0x169b20
mkdir("/etc", 0777);
1286dd: 50 push %eax
1286de: 50 push %eax
1286df: 68 ff 01 00 00 push $0x1ff
1286e4: 68 37 4a 15 00 push $0x154a37
1286e9: e8 42 4e fe ff call 10d530 <mkdir>
/*
* Initialize /etc/passwd
*/
if ((fp = fopen("/etc/passwd", "r")) != NULL) {
1286ee: 59 pop %ecx
1286ef: 5b pop %ebx
1286f0: 68 ca 7d 15 00 push $0x157dca
1286f5: 68 51 4b 15 00 push $0x154b51
1286fa: e8 79 62 01 00 call 13e978 <fopen>
1286ff: 83 c4 10 add $0x10,%esp
128702: 85 c0 test %eax,%eax
128704: 74 06 je 12870c <init_etc_passwd_group+0x4a><== ALWAYS TAKEN
fclose(fp);
128706: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
128709: 50 push %eax <== NOT EXECUTED
12870a: eb 2a jmp 128736 <init_etc_passwd_group+0x74><== NOT EXECUTED
}
else if ((fp = fopen("/etc/passwd", "w")) != NULL) {
12870c: 52 push %edx
12870d: 52 push %edx
12870e: 68 40 7a 15 00 push $0x157a40
128713: 68 51 4b 15 00 push $0x154b51
128718: e8 5b 62 01 00 call 13e978 <fopen>
12871d: 89 c3 mov %eax,%ebx
12871f: 83 c4 10 add $0x10,%esp
128722: 85 c0 test %eax,%eax
128724: 74 18 je 12873e <init_etc_passwd_group+0x7c><== NEVER TAKEN
fprintf(fp, "root:*:0:0:root::/:/bin/sh\n"
128726: 50 push %eax
128727: 50 push %eax
128728: 53 push %ebx
128729: 68 e2 b0 15 00 push $0x15b0e2
12872e: e8 89 63 01 00 call 13eabc <fputs>
"rtems:*:1:1:RTEMS Application::/:/bin/sh\n"
"tty:!:2:2:tty owner::/:/bin/false\n" );
fclose(fp);
128733: 89 1c 24 mov %ebx,(%esp)
128736: e8 25 5a 01 00 call 13e160 <fclose>
12873b: 83 c4 10 add $0x10,%esp
}
/*
* Initialize /etc/group
*/
if ((fp = fopen("/etc/group", "r")) != NULL) {
12873e: 51 push %ecx
12873f: 51 push %ecx
128740: 68 ca 7d 15 00 push $0x157dca
128745: 68 96 4b 15 00 push $0x154b96
12874a: e8 29 62 01 00 call 13e978 <fopen>
12874f: 83 c4 10 add $0x10,%esp
128752: 85 c0 test %eax,%eax
128754: 74 06 je 12875c <init_etc_passwd_group+0x9a><== ALWAYS TAKEN
fclose(fp);
128756: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
128759: 50 push %eax <== NOT EXECUTED
12875a: eb 2a jmp 128786 <init_etc_passwd_group+0xc4><== NOT EXECUTED
}
else if ((fp = fopen("/etc/group", "w")) != NULL) {
12875c: 52 push %edx
12875d: 52 push %edx
12875e: 68 40 7a 15 00 push $0x157a40
128763: 68 96 4b 15 00 push $0x154b96
128768: e8 0b 62 01 00 call 13e978 <fopen>
12876d: 89 c3 mov %eax,%ebx
12876f: 83 c4 10 add $0x10,%esp
128772: 85 c0 test %eax,%eax
128774: 74 18 je 12878e <init_etc_passwd_group+0xcc><== NEVER TAKEN
fprintf( fp, "root:x:0:root\n"
128776: 50 push %eax
128777: 50 push %eax
128778: 53 push %ebx
128779: 68 49 b1 15 00 push $0x15b149
12877e: e8 39 63 01 00 call 13eabc <fputs>
"rtems:x:1:rtems\n"
"tty:x:2:tty\n" );
fclose(fp);
128783: 89 1c 24 mov %ebx,(%esp)
128786: e8 d5 59 01 00 call 13e160 <fclose>
12878b: 83 c4 10 add $0x10,%esp
}
}
12878e: 8b 5d fc mov -0x4(%ebp),%ebx
128791: c9 leave
128792: c3 ret
0010a3d8 <ioctl>:
int ioctl(
int fd,
ioctl_command_t command,
...
)
{
10a3d8: 55 push %ebp
10a3d9: 89 e5 mov %esp,%ebp
10a3db: 83 ec 08 sub $0x8,%esp
10a3de: 8b 45 08 mov 0x8(%ebp),%eax
va_list ap;
rtems_status_code rc;
rtems_libio_t *iop;
void *buffer;
rtems_libio_check_fd( fd );
10a3e1: 3b 05 44 51 12 00 cmp 0x125144,%eax
10a3e7: 73 19 jae 10a402 <ioctl+0x2a>
iop = rtems_libio_iop( fd );
10a3e9: c1 e0 06 shl $0x6,%eax
10a3ec: 03 05 88 91 12 00 add 0x129188,%eax
rtems_libio_check_is_open(iop);
10a3f2: f6 40 15 01 testb $0x1,0x15(%eax)
10a3f6: 74 0a je 10a402 <ioctl+0x2a> <== NEVER TAKEN
va_start(ap, command);
buffer = va_arg(ap, void *);
10a3f8: 8b 4d 10 mov 0x10(%ebp),%ecx
/*
* Now process the ioctl().
*/
if ( !iop->handlers )
10a3fb: 8b 50 3c mov 0x3c(%eax),%edx
10a3fe: 85 d2 test %edx,%edx
10a400: 75 0d jne 10a40f <ioctl+0x37> <== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( EBADF );
10a402: e8 bd bd 00 00 call 1161c4 <__errno>
10a407: c7 00 09 00 00 00 movl $0x9,(%eax)
10a40d: eb 12 jmp 10a421 <ioctl+0x49>
if ( !iop->handlers->ioctl_h )
10a40f: 8b 52 10 mov 0x10(%edx),%edx
10a412: 85 d2 test %edx,%edx
10a414: 75 10 jne 10a426 <ioctl+0x4e> <== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( ENOTSUP );
10a416: e8 a9 bd 00 00 call 1161c4 <__errno> <== NOT EXECUTED
10a41b: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
10a421: 83 c8 ff or $0xffffffff,%eax
10a424: eb 0d jmp 10a433 <ioctl+0x5b>
rc = (*iop->handlers->ioctl_h)( iop, command, buffer );
10a426: 83 ec 04 sub $0x4,%esp
10a429: 51 push %ecx
10a42a: ff 75 0c pushl 0xc(%ebp)
10a42d: 50 push %eax
10a42e: ff d2 call *%edx
return rc;
10a430: 83 c4 10 add $0x10,%esp
}
10a433: c9 leave
10a434: c3 ret
00108e44 <iproc>:
/*
* Process a single input character
*/
static int
iproc (unsigned char c, struct rtems_termios_tty *tty)
{
108e44: 55 push %ebp <== NOT EXECUTED
108e45: 89 e5 mov %esp,%ebp <== NOT EXECUTED
108e47: 53 push %ebx <== NOT EXECUTED
108e48: 83 ec 14 sub $0x14,%esp <== NOT EXECUTED
108e4b: 89 d3 mov %edx,%ebx <== NOT EXECUTED
108e4d: 88 c1 mov %al,%cl <== NOT EXECUTED
if (tty->termios.c_iflag & ISTRIP)
108e4f: 8b 42 30 mov 0x30(%edx),%eax <== NOT EXECUTED
108e52: a8 20 test $0x20,%al <== NOT EXECUTED
108e54: 74 03 je 108e59 <iproc+0x15> <== NOT EXECUTED
c &= 0x7f;
108e56: 83 e1 7f and $0x7f,%ecx <== NOT EXECUTED
if (tty->termios.c_iflag & IUCLC)
108e59: f6 c4 02 test $0x2,%ah <== NOT EXECUTED
108e5c: 74 17 je 108e75 <iproc+0x31> <== NOT EXECUTED
c = tolower (c);
108e5e: 0f b6 c9 movzbl %cl,%ecx <== NOT EXECUTED
108e61: 8b 15 20 40 12 00 mov 0x124020,%edx <== NOT EXECUTED
108e67: 0f be 54 0a 01 movsbl 0x1(%edx,%ecx,1),%edx <== NOT EXECUTED
108e6c: 83 e2 03 and $0x3,%edx <== NOT EXECUTED
108e6f: 4a dec %edx <== NOT EXECUTED
108e70: 75 03 jne 108e75 <iproc+0x31> <== NOT EXECUTED
108e72: 83 c1 20 add $0x20,%ecx <== NOT EXECUTED
if (c == '\r') {
108e75: 80 f9 0d cmp $0xd,%cl <== NOT EXECUTED
108e78: 75 11 jne 108e8b <iproc+0x47> <== NOT EXECUTED
if (tty->termios.c_iflag & IGNCR)
108e7a: 84 c0 test %al,%al <== NOT EXECUTED
108e7c: 0f 88 d3 00 00 00 js 108f55 <iproc+0x111> <== NOT EXECUTED
return 0;
if (tty->termios.c_iflag & ICRNL)
108e82: f6 c4 01 test $0x1,%ah <== NOT EXECUTED
108e85: 74 19 je 108ea0 <iproc+0x5c> <== NOT EXECUTED
108e87: b1 0a mov $0xa,%cl <== NOT EXECUTED
108e89: eb 15 jmp 108ea0 <iproc+0x5c> <== NOT EXECUTED
c = '\n';
}
else if ((c == '\n') && (tty->termios.c_iflag & INLCR)) {
108e8b: 80 f9 0a cmp $0xa,%cl <== NOT EXECUTED
108e8e: 75 08 jne 108e98 <iproc+0x54> <== NOT EXECUTED
108e90: a8 40 test $0x40,%al <== NOT EXECUTED
108e92: 74 0c je 108ea0 <iproc+0x5c> <== NOT EXECUTED
108e94: b1 0d mov $0xd,%cl <== NOT EXECUTED
108e96: eb 08 jmp 108ea0 <iproc+0x5c> <== NOT EXECUTED
c = '\r';
}
if ((c != '\0') && (tty->termios.c_lflag & ICANON)) {
108e98: 84 c9 test %cl,%cl <== NOT EXECUTED
108e9a: 0f 84 87 00 00 00 je 108f27 <iproc+0xe3> <== NOT EXECUTED
108ea0: 8b 53 3c mov 0x3c(%ebx),%edx <== NOT EXECUTED
108ea3: f6 c2 02 test $0x2,%dl <== NOT EXECUTED
108ea6: 74 7f je 108f27 <iproc+0xe3> <== NOT EXECUTED
if (c == tty->termios.c_cc[VERASE]) {
108ea8: 3a 4b 43 cmp 0x43(%ebx),%cl <== NOT EXECUTED
108eab: 75 04 jne 108eb1 <iproc+0x6d> <== NOT EXECUTED
erase (tty, 0);
108ead: 31 d2 xor %edx,%edx <== NOT EXECUTED
108eaf: eb 0a jmp 108ebb <iproc+0x77> <== NOT EXECUTED
return 0;
}
else if (c == tty->termios.c_cc[VKILL]) {
108eb1: 3a 4b 44 cmp 0x44(%ebx),%cl <== NOT EXECUTED
108eb4: 75 11 jne 108ec7 <iproc+0x83> <== NOT EXECUTED
erase (tty, 1);
108eb6: ba 01 00 00 00 mov $0x1,%edx <== NOT EXECUTED
108ebb: 89 d8 mov %ebx,%eax <== NOT EXECUTED
108ebd: e8 09 fe ff ff call 108ccb <erase> <== NOT EXECUTED
108ec2: e9 8e 00 00 00 jmp 108f55 <iproc+0x111> <== NOT EXECUTED
return 0;
}
else if (c == tty->termios.c_cc[VEOF]) {
108ec7: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
108ecc: 3a 4b 45 cmp 0x45(%ebx),%cl <== NOT EXECUTED
108ecf: 0f 84 82 00 00 00 je 108f57 <iproc+0x113> <== NOT EXECUTED
return 1;
}
else if (c == '\n') {
108ed5: 80 f9 0a cmp $0xa,%cl <== NOT EXECUTED
108ed8: 75 1a jne 108ef4 <iproc+0xb0> <== NOT EXECUTED
if (tty->termios.c_lflag & (ECHO | ECHONL))
108eda: 80 e2 48 and $0x48,%dl <== NOT EXECUTED
108edd: 74 09 je 108ee8 <iproc+0xa4> <== NOT EXECUTED
echo (c, tty);
108edf: 89 da mov %ebx,%edx <== NOT EXECUTED
108ee1: b0 0a mov $0xa,%al <== NOT EXECUTED
108ee3: e8 8b fd ff ff call 108c73 <echo> <== NOT EXECUTED
tty->cbuf[tty->ccount++] = c;
108ee8: 8b 43 20 mov 0x20(%ebx),%eax <== NOT EXECUTED
108eeb: 8b 53 1c mov 0x1c(%ebx),%edx <== NOT EXECUTED
108eee: c6 04 02 0a movb $0xa,(%edx,%eax,1) <== NOT EXECUTED
108ef2: eb 28 jmp 108f1c <iproc+0xd8> <== NOT EXECUTED
return 1;
}
else if ((c == tty->termios.c_cc[VEOL])
108ef4: 3a 4b 4c cmp 0x4c(%ebx),%cl <== NOT EXECUTED
108ef7: 74 05 je 108efe <iproc+0xba> <== NOT EXECUTED
|| (c == tty->termios.c_cc[VEOL2])) {
108ef9: 3a 4b 51 cmp 0x51(%ebx),%cl <== NOT EXECUTED
108efc: 75 29 jne 108f27 <iproc+0xe3> <== NOT EXECUTED
if (tty->termios.c_lflag & ECHO)
108efe: 80 e2 08 and $0x8,%dl <== NOT EXECUTED
108f01: 74 10 je 108f13 <iproc+0xcf> <== NOT EXECUTED
echo (c, tty);
108f03: 0f b6 c1 movzbl %cl,%eax <== NOT EXECUTED
108f06: 89 da mov %ebx,%edx <== NOT EXECUTED
108f08: 88 4d f4 mov %cl,-0xc(%ebp) <== NOT EXECUTED
108f0b: e8 63 fd ff ff call 108c73 <echo> <== NOT EXECUTED
108f10: 8a 4d f4 mov -0xc(%ebp),%cl <== NOT EXECUTED
tty->cbuf[tty->ccount++] = c;
108f13: 8b 43 20 mov 0x20(%ebx),%eax <== NOT EXECUTED
108f16: 8b 53 1c mov 0x1c(%ebx),%edx <== NOT EXECUTED
108f19: 88 0c 02 mov %cl,(%edx,%eax,1) <== NOT EXECUTED
108f1c: 40 inc %eax <== NOT EXECUTED
108f1d: 89 43 20 mov %eax,0x20(%ebx) <== NOT EXECUTED
108f20: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
return 1;
108f25: eb 30 jmp 108f57 <iproc+0x113> <== NOT EXECUTED
}
/*
* FIXME: Should do IMAXBEL handling somehow
*/
if (tty->ccount < (CBUFSIZE-1)) {
108f27: a1 44 3f 12 00 mov 0x123f44,%eax <== NOT EXECUTED
108f2c: 48 dec %eax <== NOT EXECUTED
108f2d: 39 43 20 cmp %eax,0x20(%ebx) <== NOT EXECUTED
108f30: 7d 23 jge 108f55 <iproc+0x111> <== NOT EXECUTED
if (tty->termios.c_lflag & ECHO)
108f32: f6 43 3c 08 testb $0x8,0x3c(%ebx) <== NOT EXECUTED
108f36: 74 10 je 108f48 <iproc+0x104> <== NOT EXECUTED
echo (c, tty);
108f38: 0f b6 c1 movzbl %cl,%eax <== NOT EXECUTED
108f3b: 89 da mov %ebx,%edx <== NOT EXECUTED
108f3d: 88 4d f4 mov %cl,-0xc(%ebp) <== NOT EXECUTED
108f40: e8 2e fd ff ff call 108c73 <echo> <== NOT EXECUTED
108f45: 8a 4d f4 mov -0xc(%ebp),%cl <== NOT EXECUTED
tty->cbuf[tty->ccount++] = c;
108f48: 8b 43 20 mov 0x20(%ebx),%eax <== NOT EXECUTED
108f4b: 8b 53 1c mov 0x1c(%ebx),%edx <== NOT EXECUTED
108f4e: 88 0c 02 mov %cl,(%edx,%eax,1) <== NOT EXECUTED
108f51: 40 inc %eax <== NOT EXECUTED
108f52: 89 43 20 mov %eax,0x20(%ebx) <== NOT EXECUTED
108f55: 31 c0 xor %eax,%eax <== NOT EXECUTED
}
return 0;
}
108f57: 83 c4 14 add $0x14,%esp <== NOT EXECUTED
108f5a: 5b pop %ebx <== NOT EXECUTED
108f5b: c9 leave <== NOT EXECUTED
108f5c: c3 ret <== NOT EXECUTED
00111f44 <killinfo>:
int killinfo(
pid_t pid,
int sig,
const union sigval *value
)
{
111f44: 55 push %ebp
111f45: 89 e5 mov %esp,%ebp
111f47: 57 push %edi
111f48: 56 push %esi
111f49: 53 push %ebx
111f4a: 83 ec 3c sub $0x3c,%esp
111f4d: 8b 5d 0c mov 0xc(%ebp),%ebx
111f50: 8b 7d 10 mov 0x10(%ebp),%edi
POSIX_signals_Siginfo_node *psiginfo;
/*
* Only supported for the "calling process" (i.e. this node).
*/
if ( pid != getpid() )
111f53: e8 78 cf ff ff call 10eed0 <getpid>
111f58: 39 45 08 cmp %eax,0x8(%ebp)
111f5b: 74 0d je 111f6a <killinfo+0x26> <== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( ESRCH );
111f5d: e8 b2 0a 00 00 call 112a14 <__errno> <== NOT EXECUTED
111f62: c7 00 03 00 00 00 movl $0x3,(%eax) <== NOT EXECUTED
111f68: eb 0f jmp 111f79 <killinfo+0x35> <== NOT EXECUTED
/*
* Validate the signal passed.
*/
if ( !sig )
111f6a: 85 db test %ebx,%ebx
111f6c: 75 13 jne 111f81 <killinfo+0x3d> <== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( EINVAL );
111f6e: e8 a1 0a 00 00 call 112a14 <__errno> <== NOT EXECUTED
111f73: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
111f79: 83 c8 ff or $0xffffffff,%eax
111f7c: e9 e7 01 00 00 jmp 112168 <killinfo+0x224>
static inline bool is_valid_signo(
int signo
)
{
return ((signo) >= 1 && (signo) <= 32 );
111f81: 8d 4b ff lea -0x1(%ebx),%ecx
if ( !is_valid_signo(sig) )
111f84: 83 f9 1f cmp $0x1f,%ecx
111f87: 77 e5 ja 111f6e <killinfo+0x2a> <== NEVER TAKEN
rtems_set_errno_and_return_minus_one( EINVAL );
/*
* If the signal is being ignored, then we are out of here.
*/
if ( _POSIX_signals_Vectors[ sig ].sa_handler == SIG_IGN )
111f89: 6b d3 0c imul $0xc,%ebx,%edx
111f8c: 31 c0 xor %eax,%eax
111f8e: 83 ba 70 67 12 00 01 cmpl $0x1,0x126770(%edx)
111f95: 0f 84 cd 01 00 00 je 112168 <killinfo+0x224>
/*
* P1003.1c/Draft 10, p. 33 says that certain signals should always
* be directed to the executing thread such as those caused by hardware
* faults.
*/
if ( (sig == SIGFPE) || (sig == SIGILL) || (sig == SIGSEGV ) )
111f9b: 83 fb 04 cmp $0x4,%ebx
111f9e: 74 0a je 111faa <killinfo+0x66>
111fa0: 83 fb 08 cmp $0x8,%ebx
111fa3: 74 05 je 111faa <killinfo+0x66>
111fa5: 83 fb 0b cmp $0xb,%ebx
111fa8: 75 16 jne 111fc0 <killinfo+0x7c>
return pthread_kill( pthread_self(), sig );
111faa: e8 e9 05 00 00 call 112598 <pthread_self>
111faf: 56 push %esi
111fb0: 56 push %esi
111fb1: 53 push %ebx
111fb2: 50 push %eax
111fb3: e8 38 05 00 00 call 1124f0 <pthread_kill>
111fb8: 83 c4 10 add $0x10,%esp
111fbb: e9 a8 01 00 00 jmp 112168 <killinfo+0x224>
static inline sigset_t signo_to_mask(
uint32_t sig
)
{
return 1u << (sig - 1);
111fc0: be 01 00 00 00 mov $0x1,%esi
111fc5: d3 e6 shl %cl,%esi
/*
* Build up a siginfo structure
*/
siginfo = &siginfo_struct;
siginfo->si_signo = sig;
111fc7: 89 5d dc mov %ebx,-0x24(%ebp)
siginfo->si_code = SI_USER;
111fca: c7 45 e0 01 00 00 00 movl $0x1,-0x20(%ebp)
if ( !value ) {
111fd1: 85 ff test %edi,%edi
111fd3: 75 09 jne 111fde <killinfo+0x9a>
siginfo->si_value.sival_int = 0;
111fd5: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp)
111fdc: eb 05 jmp 111fe3 <killinfo+0x9f>
} else {
siginfo->si_value = *value;
111fde: 8b 07 mov (%edi),%eax
111fe0: 89 45 e4 mov %eax,-0x1c(%ebp)
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
111fe3: a1 08 62 12 00 mov 0x126208,%eax
111fe8: 40 inc %eax
111fe9: a3 08 62 12 00 mov %eax,0x126208
/*
* Is the currently executing thread interested? If so then it will
* get it an execute it as soon as the dispatcher executes.
*/
the_thread = _Thread_Executing;
111fee: 8b 15 c4 62 12 00 mov 0x1262c4,%edx
api = the_thread->API_Extensions[ THREAD_API_POSIX ];
111ff4: 8b 82 f8 00 00 00 mov 0xf8(%edx),%eax
111ffa: 8b 80 cc 00 00 00 mov 0xcc(%eax),%eax
112000: f7 d0 not %eax
112002: 85 c6 test %eax,%esi
112004: 0f 85 e0 00 00 00 jne 1120ea <killinfo+0x1a6>
/* XXX violation of visibility -- need to define thread queue support */
the_chain = &_POSIX_signals_Wait_queue.Queues.Fifo;
for ( the_node = the_chain->first ;
11200a: a1 f4 68 12 00 mov 0x1268f4,%eax
11200f: eb 23 jmp 112034 <killinfo+0xf0>
!_Chain_Is_tail( the_chain, the_node ) ;
the_node = the_node->next ) {
the_thread = (Thread_Control *)the_node;
112011: 89 c2 mov %eax,%edx
api = the_thread->API_Extensions[ THREAD_API_POSIX ];
112013: 8b 88 f8 00 00 00 mov 0xf8(%eax),%ecx
#endif
/*
* Is this thread is actually blocked waiting for the signal?
*/
if (the_thread->Wait.option & mask)
112019: 85 70 30 test %esi,0x30(%eax)
11201c: 0f 85 c8 00 00 00 jne 1120ea <killinfo+0x1a6>
/*
* Is this thread is blocked waiting for another signal but has
* not blocked this one?
*/
if (~api->signals_blocked & mask)
112022: 8b 89 cc 00 00 00 mov 0xcc(%ecx),%ecx
112028: f7 d1 not %ecx
11202a: 85 ce test %ecx,%esi
11202c: 0f 85 b8 00 00 00 jne 1120ea <killinfo+0x1a6>
the_chain = &_POSIX_signals_Wait_queue.Queues.Fifo;
for ( the_node = the_chain->first ;
!_Chain_Is_tail( the_chain, the_node ) ;
the_node = the_node->next ) {
112032: 8b 00 mov (%eax),%eax
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
112034: 3d f8 68 12 00 cmp $0x1268f8,%eax
112039: 75 d6 jne 112011 <killinfo+0xcd>
* NOTES:
*
* + rtems internal threads do not receive signals.
*/
interested = NULL;
interested_priority = PRIORITY_MAXIMUM + 1;
11203b: 0f b6 05 f4 21 12 00 movzbl 0x1221f4,%eax
112042: 40 inc %eax
112043: 89 45 d4 mov %eax,-0x2c(%ebp)
112046: 31 d2 xor %edx,%edx
112048: c7 45 cc 02 00 00 00 movl $0x2,-0x34(%ebp)
for (the_api = OBJECTS_CLASSIC_API; the_api <= OBJECTS_APIS_LAST; the_api++) {
/*
* This can occur when no one is interested and ITRON is not configured.
*/
if ( !_Objects_Information_table[ the_api ] )
11204f: 8b 4d cc mov -0x34(%ebp),%ecx
112052: 8b 04 8d dc 61 12 00 mov 0x1261dc(,%ecx,4),%eax
112059: 85 c0 test %eax,%eax
11205b: 74 7c je 1120d9 <killinfo+0x195>
continue;
the_info = _Objects_Information_table[ the_api ][ 1 ];
11205d: 8b 40 04 mov 0x4(%eax),%eax
*/
if ( !the_info )
continue;
#endif
maximum = the_info->maximum;
112060: 0f b7 78 10 movzwl 0x10(%eax),%edi
112064: 89 7d c0 mov %edi,-0x40(%ebp)
object_table = the_info->local_table;
112067: 8b 40 1c mov 0x1c(%eax),%eax
11206a: 89 45 c4 mov %eax,-0x3c(%ebp)
11206d: c7 45 d0 01 00 00 00 movl $0x1,-0x30(%ebp)
for ( index = 1 ; index <= maximum ; index++ ) {
112074: eb 5b jmp 1120d1 <killinfo+0x18d>
the_thread = (Thread_Control *) object_table[ index ];
112076: 8b 4d d0 mov -0x30(%ebp),%ecx
112079: 8b 7d c4 mov -0x3c(%ebp),%edi
11207c: 8b 04 8f mov (%edi,%ecx,4),%eax
if ( !the_thread )
11207f: 85 c0 test %eax,%eax
112081: 74 41 je 1120c4 <killinfo+0x180>
/*
* If this thread is of lower priority than the interested thread,
* go on to the next thread.
*/
if ( the_thread->current_priority > interested_priority )
112083: 8b 48 14 mov 0x14(%eax),%ecx
112086: 3b 4d d4 cmp -0x2c(%ebp),%ecx
112089: 77 39 ja 1120c4 <killinfo+0x180>
DEBUG_STEP("2");
/*
* If this thread is not interested, then go on to the next thread.
*/
api = the_thread->API_Extensions[ THREAD_API_POSIX ];
11208b: 8b b8 f8 00 00 00 mov 0xf8(%eax),%edi
112091: 8b bf cc 00 00 00 mov 0xcc(%edi),%edi
112097: f7 d7 not %edi
112099: 85 fe test %edi,%esi
11209b: 74 27 je 1120c4 <killinfo+0x180>
*
* NOTE: We initialized interested_priority to PRIORITY_MAXIMUM + 1
* so we never have to worry about deferencing a NULL
* interested thread.
*/
if ( the_thread->current_priority < interested_priority ) {
11209d: 3b 4d d4 cmp -0x2c(%ebp),%ecx
1120a0: 72 27 jb 1120c9 <killinfo+0x185>
* and blocking interruptibutable by signal.
*
* If the interested thread is ready, don't think about changing.
*/
if ( !_States_Is_ready( interested->current_state ) ) {
1120a2: 8b 7a 10 mov 0x10(%edx),%edi
1120a5: 89 7d c8 mov %edi,-0x38(%ebp)
1120a8: 85 ff test %edi,%edi
1120aa: 74 18 je 1120c4 <killinfo+0x180> <== NEVER TAKEN
/* preferred ready over blocked */
DEBUG_STEP("5");
if ( _States_Is_ready( the_thread->current_state ) ) {
1120ac: 8b 78 10 mov 0x10(%eax),%edi
1120af: 85 ff test %edi,%edi
1120b1: 74 16 je 1120c9 <killinfo+0x185>
continue;
}
DEBUG_STEP("6");
/* prefer blocked/interruptible over blocked/not interruptible */
if ( !_States_Is_interruptible_by_signal(interested->current_state) ) {
1120b3: f7 45 c8 00 00 00 10 testl $0x10000000,-0x38(%ebp)
1120ba: 75 08 jne 1120c4 <killinfo+0x180>
DEBUG_STEP("7");
if ( _States_Is_interruptible_by_signal(the_thread->current_state) ) {
1120bc: 81 e7 00 00 00 10 and $0x10000000,%edi
1120c2: 75 05 jne 1120c9 <killinfo+0x185>
1120c4: 8b 4d d4 mov -0x2c(%ebp),%ecx
1120c7: eb 02 jmp 1120cb <killinfo+0x187>
1120c9: 89 c2 mov %eax,%edx
#endif
maximum = the_info->maximum;
object_table = the_info->local_table;
for ( index = 1 ; index <= maximum ; index++ ) {
1120cb: ff 45 d0 incl -0x30(%ebp)
1120ce: 89 4d d4 mov %ecx,-0x2c(%ebp)
1120d1: 8b 45 c0 mov -0x40(%ebp),%eax
1120d4: 39 45 d0 cmp %eax,-0x30(%ebp)
1120d7: 76 9d jbe 112076 <killinfo+0x132>
* + rtems internal threads do not receive signals.
*/
interested = NULL;
interested_priority = PRIORITY_MAXIMUM + 1;
for (the_api = OBJECTS_CLASSIC_API; the_api <= OBJECTS_APIS_LAST; the_api++) {
1120d9: ff 45 cc incl -0x34(%ebp)
1120dc: 83 7d cc 05 cmpl $0x5,-0x34(%ebp)
1120e0: 0f 85 69 ff ff ff jne 11204f <killinfo+0x10b>
}
}
}
}
if ( interested ) {
1120e6: 85 d2 test %edx,%edx
1120e8: 74 17 je 112101 <killinfo+0x1bd>
* thread needs to do the post context switch extension so it can
* evaluate the signals pending.
*/
process_it:
the_thread->do_post_task_switch_extension = true;
1120ea: c6 42 74 01 movb $0x1,0x74(%edx)
/*
* Returns true if the signal was synchronously given to a thread
* blocked waiting for the signal.
*/
if ( _POSIX_signals_Unblock_thread( the_thread, sig, siginfo ) ) {
1120ee: 51 push %ecx
1120ef: 8d 45 dc lea -0x24(%ebp),%eax
1120f2: 50 push %eax
1120f3: 53 push %ebx
1120f4: 52 push %edx
1120f5: e8 02 02 00 00 call 1122fc <_POSIX_signals_Unblock_thread>
1120fa: 83 c4 10 add $0x10,%esp
1120fd: 84 c0 test %al,%al
1120ff: 75 60 jne 112161 <killinfo+0x21d>
/*
* We may have woken up a thread but we definitely need to post the
* signal to the process wide information set.
*/
_POSIX_signals_Set_process_signals( mask );
112101: 83 ec 0c sub $0xc,%esp
112104: 56 push %esi
112105: e8 ce 01 00 00 call 1122d8 <_POSIX_signals_Set_process_signals>
if ( _POSIX_signals_Vectors[ sig ].sa_flags == SA_SIGINFO ) {
11210a: 6b db 0c imul $0xc,%ebx,%ebx
11210d: 83 c4 10 add $0x10,%esp
112110: 83 bb 68 67 12 00 02 cmpl $0x2,0x126768(%ebx)
112117: 75 48 jne 112161 <killinfo+0x21d>
psiginfo = (POSIX_signals_Siginfo_node *)
112119: 83 ec 0c sub $0xc,%esp
11211c: 68 e8 68 12 00 push $0x1268e8
112121: e8 4a 8d ff ff call 10ae70 <_Chain_Get>
_Chain_Get( &_POSIX_signals_Inactive_siginfo );
if ( !psiginfo ) {
112126: 83 c4 10 add $0x10,%esp
112129: 85 c0 test %eax,%eax
11212b: 75 15 jne 112142 <killinfo+0x1fe>
_Thread_Enable_dispatch();
11212d: e8 df a1 ff ff call 10c311 <_Thread_Enable_dispatch>
rtems_set_errno_and_return_minus_one( EAGAIN );
112132: e8 dd 08 00 00 call 112a14 <__errno>
112137: c7 00 0b 00 00 00 movl $0xb,(%eax)
11213d: e9 37 fe ff ff jmp 111f79 <killinfo+0x35>
}
psiginfo->Info = *siginfo;
112142: 8d 78 08 lea 0x8(%eax),%edi
112145: 8d 75 dc lea -0x24(%ebp),%esi
112148: b9 03 00 00 00 mov $0x3,%ecx
11214d: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
_Chain_Append( &_POSIX_signals_Siginfo[ sig ], &psiginfo->Node );
11214f: 52 push %edx
112150: 52 push %edx
112151: 50 push %eax
112152: 81 c3 60 69 12 00 add $0x126960,%ebx
112158: 53 push %ebx
112159: e8 d6 8c ff ff call 10ae34 <_Chain_Append>
11215e: 83 c4 10 add $0x10,%esp
}
DEBUG_STEP("\n");
_Thread_Enable_dispatch();
112161: e8 ab a1 ff ff call 10c311 <_Thread_Enable_dispatch>
112166: 31 c0 xor %eax,%eax
return 0;
}
112168: 8d 65 f4 lea -0xc(%ebp),%esp
11216b: 5b pop %ebx
11216c: 5e pop %esi
11216d: 5f pop %edi
11216e: c9 leave
11216f: c3 ret
00128adc <link>:
int link(
const char *existing,
const char *new
)
{
128adc: 55 push %ebp
128add: 89 e5 mov %esp,%ebp
128adf: 57 push %edi
128ae0: 56 push %esi
128ae1: 53 push %ebx
128ae2: 83 ec 48 sub $0x48,%esp
128ae5: 8b 55 08 mov 0x8(%ebp),%edx
128ae8: 8b 5d 0c mov 0xc(%ebp),%ebx
/*
* Get the node we are linking to.
*/
result = rtems_filesystem_evaluate_path( existing, strlen( existing ),
128aeb: 31 c0 xor %eax,%eax
128aed: 83 c9 ff or $0xffffffff,%ecx
128af0: 89 d7 mov %edx,%edi
128af2: f2 ae repnz scas %es:(%edi),%al
128af4: f7 d1 not %ecx
128af6: 49 dec %ecx
128af7: 6a 01 push $0x1
128af9: 8d 75 cc lea -0x34(%ebp),%esi
128afc: 56 push %esi
128afd: 6a 00 push $0x0
128aff: 51 push %ecx
128b00: 52 push %edx
128b01: e8 2b 43 fe ff call 10ce31 <rtems_filesystem_evaluate_path>
0, &existing_loc, true );
if ( result != 0 )
128b06: 83 c4 20 add $0x20,%esp
128b09: 83 cf ff or $0xffffffff,%edi
128b0c: 85 c0 test %eax,%eax
128b0e: 0f 85 45 01 00 00 jne 128c59 <link+0x17d>
/*
* Get the parent of the node we are creating.
*/
rtems_filesystem_get_start_loc( new, &i, &parent_loc );
128b14: 57 push %edi
128b15: 8d 7d b8 lea -0x48(%ebp),%edi
128b18: 57 push %edi
128b19: 8d 45 e4 lea -0x1c(%ebp),%eax
128b1c: 50 push %eax
128b1d: 53 push %ebx
128b1e: e8 91 58 fe ff call 10e3b4 <rtems_filesystem_get_start_loc>
if ( !parent_loc.ops->evalformake_h ) {
128b23: 8b 45 c4 mov -0x3c(%ebp),%eax
128b26: 8b 40 04 mov 0x4(%eax),%eax
128b29: 83 c4 10 add $0x10,%esp
128b2c: 85 c0 test %eax,%eax
128b2e: 75 1f jne 128b4f <link+0x73> <== ALWAYS TAKEN
rtems_filesystem_freenode( &existing_loc );
128b30: 8b 45 d8 mov -0x28(%ebp),%eax <== NOT EXECUTED
128b33: 85 c0 test %eax,%eax <== NOT EXECUTED
128b35: 0f 84 d0 00 00 00 je 128c0b <link+0x12f> <== NOT EXECUTED
128b3b: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED
128b3e: 85 c0 test %eax,%eax <== NOT EXECUTED
128b40: 0f 84 c5 00 00 00 je 128c0b <link+0x12f> <== NOT EXECUTED
128b46: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
128b49: 56 push %esi <== NOT EXECUTED
128b4a: e9 b7 00 00 00 jmp 128c06 <link+0x12a> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
result = (*parent_loc.ops->evalformake_h)( &new[i], &parent_loc, &name_start );
128b4f: 51 push %ecx
128b50: 8d 55 e0 lea -0x20(%ebp),%edx
128b53: 52 push %edx
128b54: 57 push %edi
128b55: 03 5d e4 add -0x1c(%ebp),%ebx
128b58: 53 push %ebx
128b59: ff d0 call *%eax
128b5b: 89 c3 mov %eax,%ebx
if ( result != 0 ) {
128b5d: 83 c4 10 add $0x10,%esp
128b60: 85 c0 test %eax,%eax
128b62: 74 26 je 128b8a <link+0xae>
rtems_filesystem_freenode( &existing_loc );
128b64: 8b 45 d8 mov -0x28(%ebp),%eax
128b67: 85 c0 test %eax,%eax
128b69: 74 10 je 128b7b <link+0x9f> <== NEVER TAKEN
128b6b: 8b 40 1c mov 0x1c(%eax),%eax
128b6e: 85 c0 test %eax,%eax
128b70: 74 09 je 128b7b <link+0x9f> <== NEVER TAKEN
128b72: 83 ec 0c sub $0xc,%esp
128b75: 56 push %esi
128b76: ff d0 call *%eax
128b78: 83 c4 10 add $0x10,%esp
rtems_set_errno_and_return_minus_one( result );
128b7b: e8 94 54 01 00 call 13e014 <__errno>
128b80: 89 18 mov %ebx,(%eax)
128b82: 83 cf ff or $0xffffffff,%edi
128b85: e9 cf 00 00 00 jmp 128c59 <link+0x17d>
/*
* Check to see if the caller is trying to link across file system
* boundaries.
*/
if ( parent_loc.mt_entry != existing_loc.mt_entry ) {
128b8a: 8b 45 c8 mov -0x38(%ebp),%eax
128b8d: 3b 45 dc cmp -0x24(%ebp),%eax
128b90: 74 3e je 128bd0 <link+0xf4>
rtems_filesystem_freenode( &existing_loc );
128b92: 8b 45 d8 mov -0x28(%ebp),%eax
128b95: 85 c0 test %eax,%eax
128b97: 74 10 je 128ba9 <link+0xcd> <== NEVER TAKEN
128b99: 8b 40 1c mov 0x1c(%eax),%eax
128b9c: 85 c0 test %eax,%eax
128b9e: 74 09 je 128ba9 <link+0xcd> <== NEVER TAKEN
128ba0: 83 ec 0c sub $0xc,%esp
128ba3: 56 push %esi
128ba4: ff d0 call *%eax
128ba6: 83 c4 10 add $0x10,%esp
rtems_filesystem_freenode( &parent_loc );
128ba9: 8b 45 c4 mov -0x3c(%ebp),%eax
128bac: 85 c0 test %eax,%eax
128bae: 74 13 je 128bc3 <link+0xe7> <== NEVER TAKEN
128bb0: 8b 40 1c mov 0x1c(%eax),%eax
128bb3: 85 c0 test %eax,%eax
128bb5: 74 0c je 128bc3 <link+0xe7> <== NEVER TAKEN
128bb7: 83 ec 0c sub $0xc,%esp
128bba: 8d 55 b8 lea -0x48(%ebp),%edx
128bbd: 52 push %edx
128bbe: ff d0 call *%eax
128bc0: 83 c4 10 add $0x10,%esp
rtems_set_errno_and_return_minus_one( EXDEV );
128bc3: e8 4c 54 01 00 call 13e014 <__errno>
128bc8: c7 00 12 00 00 00 movl $0x12,(%eax)
128bce: eb b2 jmp 128b82 <link+0xa6>
}
if ( !parent_loc.ops->link_h ) {
128bd0: 8b 45 c4 mov -0x3c(%ebp),%eax
128bd3: 8b 40 08 mov 0x8(%eax),%eax
128bd6: 85 c0 test %eax,%eax
128bd8: 75 41 jne 128c1b <link+0x13f> <== ALWAYS TAKEN
rtems_filesystem_freenode( &existing_loc );
128bda: 8b 45 d8 mov -0x28(%ebp),%eax <== NOT EXECUTED
128bdd: 85 c0 test %eax,%eax <== NOT EXECUTED
128bdf: 74 10 je 128bf1 <link+0x115> <== NOT EXECUTED
128be1: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED
128be4: 85 c0 test %eax,%eax <== NOT EXECUTED
128be6: 74 09 je 128bf1 <link+0x115> <== NOT EXECUTED
128be8: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
128beb: 56 push %esi <== NOT EXECUTED
128bec: ff d0 call *%eax <== NOT EXECUTED
128bee: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_filesystem_freenode( &parent_loc );
128bf1: 8b 45 c4 mov -0x3c(%ebp),%eax <== NOT EXECUTED
128bf4: 85 c0 test %eax,%eax <== NOT EXECUTED
128bf6: 74 13 je 128c0b <link+0x12f> <== NOT EXECUTED
128bf8: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED
128bfb: 85 c0 test %eax,%eax <== NOT EXECUTED
128bfd: 74 0c je 128c0b <link+0x12f> <== NOT EXECUTED
128bff: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
128c02: 8d 55 b8 lea -0x48(%ebp),%edx <== NOT EXECUTED
128c05: 52 push %edx <== NOT EXECUTED
128c06: ff d0 call *%eax <== NOT EXECUTED
128c08: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
128c0b: e8 04 54 01 00 call 13e014 <__errno> <== NOT EXECUTED
128c10: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
128c16: e9 67 ff ff ff jmp 128b82 <link+0xa6> <== NOT EXECUTED
}
result = (*parent_loc.ops->link_h)( &existing_loc, &parent_loc, name_start );
128c1b: 52 push %edx
128c1c: ff 75 e0 pushl -0x20(%ebp)
128c1f: 57 push %edi
128c20: 56 push %esi
128c21: ff d0 call *%eax
128c23: 89 c7 mov %eax,%edi
rtems_filesystem_freenode( &existing_loc );
128c25: 8b 45 d8 mov -0x28(%ebp),%eax
128c28: 83 c4 10 add $0x10,%esp
128c2b: 85 c0 test %eax,%eax
128c2d: 74 10 je 128c3f <link+0x163> <== NEVER TAKEN
128c2f: 8b 40 1c mov 0x1c(%eax),%eax
128c32: 85 c0 test %eax,%eax
128c34: 74 09 je 128c3f <link+0x163> <== NEVER TAKEN
128c36: 83 ec 0c sub $0xc,%esp
128c39: 56 push %esi
128c3a: ff d0 call *%eax
128c3c: 83 c4 10 add $0x10,%esp
rtems_filesystem_freenode( &parent_loc );
128c3f: 8b 45 c4 mov -0x3c(%ebp),%eax
128c42: 85 c0 test %eax,%eax
128c44: 74 13 je 128c59 <link+0x17d> <== NEVER TAKEN
128c46: 8b 40 1c mov 0x1c(%eax),%eax
128c49: 85 c0 test %eax,%eax
128c4b: 74 0c je 128c59 <link+0x17d> <== NEVER TAKEN
128c4d: 83 ec 0c sub $0xc,%esp
128c50: 8d 55 b8 lea -0x48(%ebp),%edx
128c53: 52 push %edx
128c54: ff d0 call *%eax
128c56: 83 c4 10 add $0x10,%esp
return result;
}
128c59: 89 f8 mov %edi,%eax
128c5b: 8d 65 f4 lea -0xc(%ebp),%esp
128c5e: 5b pop %ebx
128c5f: 5e pop %esi
128c60: 5f pop %edi
128c61: c9 leave
128c62: c3 ret
0011e070 <lseek>:
off_t lseek(
int fd,
off_t offset,
int whence
)
{
11e070: 55 push %ebp
11e071: 89 e5 mov %esp,%ebp
11e073: 57 push %edi
11e074: 56 push %esi
11e075: 53 push %ebx
11e076: 83 ec 1c sub $0x1c,%esp
11e079: 8b 5d 08 mov 0x8(%ebp),%ebx
11e07c: 8b 45 0c mov 0xc(%ebp),%eax
11e07f: 8b 55 10 mov 0x10(%ebp),%edx
11e082: 8b 4d 14 mov 0x14(%ebp),%ecx
rtems_libio_t *iop;
off_t old_offset;
off_t status;
rtems_libio_check_fd( fd );
11e085: 3b 1d 44 21 12 00 cmp 0x122144,%ebx
11e08b: 73 0f jae 11e09c <lseek+0x2c> <== NEVER TAKEN
iop = rtems_libio_iop( fd );
11e08d: c1 e3 06 shl $0x6,%ebx
11e090: 03 1d b8 60 12 00 add 0x1260b8,%ebx
rtems_libio_check_is_open(iop);
11e096: f6 43 15 01 testb $0x1,0x15(%ebx)
11e09a: 75 0d jne 11e0a9 <lseek+0x39> <== ALWAYS TAKEN
11e09c: e8 73 49 ff ff call 112a14 <__errno> <== NOT EXECUTED
11e0a1: c7 00 09 00 00 00 movl $0x9,(%eax) <== NOT EXECUTED
11e0a7: eb 61 jmp 11e10a <lseek+0x9a> <== NOT EXECUTED
/*
* Check as many errors as possible before touching iop->offset.
*/
if ( !iop->handlers->lseek_h )
11e0a9: 8b 73 3c mov 0x3c(%ebx),%esi
11e0ac: 83 7e 14 00 cmpl $0x0,0x14(%esi)
11e0b0: 75 0d jne 11e0bf <lseek+0x4f> <== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( ENOTSUP );
11e0b2: e8 5d 49 ff ff call 112a14 <__errno> <== NOT EXECUTED
11e0b7: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
11e0bd: eb 4b jmp 11e10a <lseek+0x9a> <== NOT EXECUTED
/*
* Now process the lseek().
*/
old_offset = iop->offset;
11e0bf: 8b 73 0c mov 0xc(%ebx),%esi
11e0c2: 8b 7b 10 mov 0x10(%ebx),%edi
11e0c5: 89 75 e0 mov %esi,-0x20(%ebp)
11e0c8: 89 7d e4 mov %edi,-0x1c(%ebp)
switch ( whence ) {
11e0cb: 83 f9 01 cmp $0x1,%ecx
11e0ce: 74 11 je 11e0e1 <lseek+0x71>
11e0d0: 83 f9 02 cmp $0x2,%ecx
11e0d3: 74 18 je 11e0ed <lseek+0x7d>
11e0d5: 85 c9 test %ecx,%ecx
11e0d7: 75 26 jne 11e0ff <lseek+0x8f>
case SEEK_SET:
iop->offset = offset;
11e0d9: 89 43 0c mov %eax,0xc(%ebx)
11e0dc: 89 53 10 mov %edx,0x10(%ebx)
break;
11e0df: eb 30 jmp 11e111 <lseek+0xa1>
case SEEK_CUR:
iop->offset += offset;
11e0e1: 8b 75 e0 mov -0x20(%ebp),%esi
11e0e4: 8b 7d e4 mov -0x1c(%ebp),%edi
11e0e7: 01 c6 add %eax,%esi
11e0e9: 11 d7 adc %edx,%edi
11e0eb: eb 0a jmp 11e0f7 <lseek+0x87>
break;
case SEEK_END:
iop->offset = iop->size + offset;
11e0ed: 89 c6 mov %eax,%esi
11e0ef: 89 d7 mov %edx,%edi
11e0f1: 03 73 04 add 0x4(%ebx),%esi
11e0f4: 13 7b 08 adc 0x8(%ebx),%edi
11e0f7: 89 73 0c mov %esi,0xc(%ebx)
11e0fa: 89 7b 10 mov %edi,0x10(%ebx)
break;
11e0fd: eb 12 jmp 11e111 <lseek+0xa1>
default:
rtems_set_errno_and_return_minus_one( EINVAL );
11e0ff: e8 10 49 ff ff call 112a14 <__errno>
11e104: c7 00 16 00 00 00 movl $0x16,(%eax)
11e10a: 83 c8 ff or $0xffffffff,%eax
11e10d: 89 c2 mov %eax,%edx
11e10f: eb 23 jmp 11e134 <lseek+0xc4>
/*
* At this time, handlers assume iop->offset has the desired
* new offset.
*/
status = (*iop->handlers->lseek_h)( iop, offset, whence );
11e111: 8b 73 3c mov 0x3c(%ebx),%esi
11e114: 51 push %ecx
11e115: 52 push %edx
11e116: 50 push %eax
11e117: 53 push %ebx
11e118: ff 56 14 call *0x14(%esi)
if ( status == (off_t) -1 )
11e11b: 83 c4 10 add $0x10,%esp
11e11e: 83 fa ff cmp $0xffffffff,%edx
11e121: 75 11 jne 11e134 <lseek+0xc4>
11e123: 83 f8 ff cmp $0xffffffff,%eax
11e126: 75 0c jne 11e134 <lseek+0xc4> <== NEVER TAKEN
iop->offset = old_offset;
11e128: 8b 75 e0 mov -0x20(%ebp),%esi
11e12b: 8b 7d e4 mov -0x1c(%ebp),%edi
11e12e: 89 73 0c mov %esi,0xc(%ebx)
11e131: 89 7b 10 mov %edi,0x10(%ebx)
/*
* So if the operation failed, we have to restore iop->offset.
*/
return status;
}
11e134: 8d 65 f4 lea -0xc(%ebp),%esp
11e137: 5b pop %ebx
11e138: 5e pop %esi
11e139: 5f pop %edi
11e13a: c9 leave
11e13b: c3 ret
00128d70 <lstat>:
int _STAT_NAME(
const char *path,
struct stat *buf
)
{
128d70: 55 push %ebp <== NOT EXECUTED
128d71: 89 e5 mov %esp,%ebp <== NOT EXECUTED
128d73: 57 push %edi <== NOT EXECUTED
128d74: 56 push %esi <== NOT EXECUTED
128d75: 53 push %ebx <== NOT EXECUTED
128d76: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED
128d79: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
128d7c: 8b 75 0c mov 0xc(%ebp),%esi <== NOT EXECUTED
/*
* Check to see if we were passed a valid pointer.
*/
if ( !buf )
128d7f: 85 f6 test %esi,%esi <== NOT EXECUTED
128d81: 75 0d jne 128d90 <lstat+0x20> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EFAULT );
128d83: e8 8c 52 01 00 call 13e014 <__errno> <== NOT EXECUTED
128d88: c7 00 0e 00 00 00 movl $0xe,(%eax) <== NOT EXECUTED
128d8e: eb 53 jmp 128de3 <lstat+0x73> <== NOT EXECUTED
status = rtems_filesystem_evaluate_path( path, strlen( path ),
128d90: 31 c0 xor %eax,%eax <== NOT EXECUTED
128d92: 83 c9 ff or $0xffffffff,%ecx <== NOT EXECUTED
128d95: 89 d7 mov %edx,%edi <== NOT EXECUTED
128d97: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED
128d99: f7 d1 not %ecx <== NOT EXECUTED
128d9b: 49 dec %ecx <== NOT EXECUTED
128d9c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
128d9f: 6a 00 push $0x0 <== NOT EXECUTED
128da1: 8d 5d d4 lea -0x2c(%ebp),%ebx <== NOT EXECUTED
128da4: 53 push %ebx <== NOT EXECUTED
128da5: 6a 00 push $0x0 <== NOT EXECUTED
128da7: 51 push %ecx <== NOT EXECUTED
128da8: 52 push %edx <== NOT EXECUTED
128da9: e8 83 40 fe ff call 10ce31 <rtems_filesystem_evaluate_path><== NOT EXECUTED
0, &loc, _STAT_FOLLOW_LINKS );
if ( status != 0 )
128dae: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
128db1: 83 cf ff or $0xffffffff,%edi <== NOT EXECUTED
128db4: 85 c0 test %eax,%eax <== NOT EXECUTED
128db6: 75 5c jne 128e14 <lstat+0xa4> <== NOT EXECUTED
return -1;
if ( !loc.handlers->fstat_h ){
128db8: 8b 55 dc mov -0x24(%ebp),%edx <== NOT EXECUTED
128dbb: 83 7a 18 00 cmpl $0x0,0x18(%edx) <== NOT EXECUTED
128dbf: 75 27 jne 128de8 <lstat+0x78> <== NOT EXECUTED
rtems_filesystem_freenode( &loc );
128dc1: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
128dc4: 85 c0 test %eax,%eax <== NOT EXECUTED
128dc6: 74 10 je 128dd8 <lstat+0x68> <== NOT EXECUTED
128dc8: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED
128dcb: 85 c0 test %eax,%eax <== NOT EXECUTED
128dcd: 74 09 je 128dd8 <lstat+0x68> <== NOT EXECUTED
128dcf: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
128dd2: 53 push %ebx <== NOT EXECUTED
128dd3: ff d0 call *%eax <== NOT EXECUTED
128dd5: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
128dd8: e8 37 52 01 00 call 13e014 <__errno> <== NOT EXECUTED
128ddd: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
128de3: 83 cf ff or $0xffffffff,%edi <== NOT EXECUTED
128de6: eb 2c jmp 128e14 <lstat+0xa4> <== NOT EXECUTED
/*
* Zero out the stat structure so the various support
* versions of stat don't have to.
*/
memset( buf, 0, sizeof(struct stat) );
128de8: b9 12 00 00 00 mov $0x12,%ecx <== NOT EXECUTED
128ded: 89 f7 mov %esi,%edi <== NOT EXECUTED
128def: f3 ab rep stos %eax,%es:(%edi) <== NOT EXECUTED
status = (*loc.handlers->fstat_h)( &loc, buf );
128df1: 50 push %eax <== NOT EXECUTED
128df2: 50 push %eax <== NOT EXECUTED
128df3: 56 push %esi <== NOT EXECUTED
128df4: 53 push %ebx <== NOT EXECUTED
128df5: ff 52 18 call *0x18(%edx) <== NOT EXECUTED
128df8: 89 c7 mov %eax,%edi <== NOT EXECUTED
rtems_filesystem_freenode( &loc );
128dfa: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
128dfd: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
128e00: 85 c0 test %eax,%eax <== NOT EXECUTED
128e02: 74 10 je 128e14 <lstat+0xa4> <== NOT EXECUTED
128e04: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED
128e07: 85 c0 test %eax,%eax <== NOT EXECUTED
128e09: 74 09 je 128e14 <lstat+0xa4> <== NOT EXECUTED
128e0b: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
128e0e: 53 push %ebx <== NOT EXECUTED
128e0f: ff d0 call *%eax <== NOT EXECUTED
128e11: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
return status;
}
128e14: 89 f8 mov %edi,%eax <== NOT EXECUTED
128e16: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
128e19: 5b pop %ebx <== NOT EXECUTED
128e1a: 5e pop %esi <== NOT EXECUTED
128e1b: 5f pop %edi <== NOT EXECUTED
128e1c: c9 leave <== NOT EXECUTED
128e1d: c3 ret <== NOT EXECUTED
0010793c <malloc>:
size_t size
)
{
void *return_this;
MSBUMP(malloc_calls, 1);
10793c: 55 push %ebp
10793d: 89 e5 mov %esp,%ebp
10793f: 57 push %edi
107940: 56 push %esi
107941: 53 push %ebx
107942: 83 ec 0c sub $0xc,%esp
107945: 8b 75 08 mov 0x8(%ebp),%esi
107948: ff 05 d4 60 12 00 incl 0x1260d4
/*
* If some free's have been deferred, then do them now.
*/
malloc_deferred_frees_process();
10794e: e8 17 ff ff ff call 10786a <malloc_deferred_frees_process>
/*
* Validate the parameters
*/
if ( !size )
107953: 85 f6 test %esi,%esi
107955: 74 7c je 1079d3 <malloc+0x97> <== NEVER TAKEN
return (void *) 0;
/*
* Do not attempt to allocate memory if not in correct system state.
*/
if ( _System_state_Is_up(_System_state_Get()) &&
107957: 83 3d a0 63 12 00 03 cmpl $0x3,0x1263a0
10795e: 75 09 jne 107969 <malloc+0x2d>
107960: e8 af fe ff ff call 107814 <malloc_is_system_state_OK>
107965: 84 c0 test %al,%al
107967: 74 6a je 1079d3 <malloc+0x97> <== 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 );
107969: 6a 00 push $0x0
10796b: 6a 00 push $0x0
10796d: 56 push %esi
10796e: ff 35 50 21 12 00 pushl 0x122150
107974: e8 37 44 00 00 call 10bdb0 <_Protected_heap_Allocate_aligned_with_boundary>
107979: 89 c3 mov %eax,%ebx
* If this fails then return a NULL pointer.
*/
return_this = _Protected_heap_Allocate( RTEMS_Malloc_Heap, size );
if ( !return_this ) {
10797b: 83 c4 10 add $0x10,%esp
if (rtems_malloc_sbrk_helpers)
return_this = (*rtems_malloc_sbrk_helpers->extend)( size );
if ( !return_this ) {
errno = ENOMEM;
return (void *) 0;
10797e: 89 c7 mov %eax,%edi
* If this fails then return a NULL pointer.
*/
return_this = _Protected_heap_Allocate( RTEMS_Malloc_Heap, size );
if ( !return_this ) {
107980: 85 c0 test %eax,%eax
107982: 75 26 jne 1079aa <malloc+0x6e>
if (rtems_malloc_sbrk_helpers)
107984: a1 34 45 12 00 mov 0x124534,%eax
107989: 85 c0 test %eax,%eax
10798b: 74 10 je 10799d <malloc+0x61> <== ALWAYS TAKEN
return_this = (*rtems_malloc_sbrk_helpers->extend)( size );
10798d: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
107990: 56 push %esi <== NOT EXECUTED
107991: ff 50 04 call *0x4(%eax) <== NOT EXECUTED
107994: 89 c7 mov %eax,%edi <== NOT EXECUTED
if ( !return_this ) {
107996: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
107999: 85 c0 test %eax,%eax <== NOT EXECUTED
10799b: 75 0d jne 1079aa <malloc+0x6e> <== NOT EXECUTED
errno = ENOMEM;
10799d: e8 72 b0 00 00 call 112a14 <__errno>
1079a2: c7 00 0c 00 00 00 movl $0xc,(%eax)
return (void *) 0;
1079a8: eb 2b jmp 1079d5 <malloc+0x99>
}
/*
* If the user wants us to dirty the allocated memory, then do it.
*/
if ( rtems_malloc_dirty_helper )
1079aa: a1 38 45 12 00 mov 0x124538,%eax
1079af: 85 c0 test %eax,%eax
1079b1: 74 09 je 1079bc <malloc+0x80> <== ALWAYS TAKEN
(*rtems_malloc_dirty_helper)( return_this, size );
1079b3: 52 push %edx <== NOT EXECUTED
1079b4: 52 push %edx <== NOT EXECUTED
1079b5: 56 push %esi <== NOT EXECUTED
1079b6: 57 push %edi <== NOT EXECUTED
1079b7: ff d0 call *%eax <== NOT EXECUTED
1079b9: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
/*
* If configured, update the statistics
*/
if ( rtems_malloc_statistics_helpers )
1079bc: a1 30 45 12 00 mov 0x124530,%eax
1079c1: 89 fb mov %edi,%ebx
1079c3: 85 c0 test %eax,%eax
1079c5: 74 0e je 1079d5 <malloc+0x99>
(*rtems_malloc_statistics_helpers->at_malloc)(return_this);
1079c7: 83 ec 0c sub $0xc,%esp
1079ca: 57 push %edi
1079cb: ff 50 04 call *0x4(%eax)
1079ce: 83 c4 10 add $0x10,%esp
1079d1: eb 02 jmp 1079d5 <malloc+0x99>
1079d3: 31 db xor %ebx,%ebx
if (rtems_malloc_boundary_helpers)
(*rtems_malloc_boundary_helpers->at_malloc)(return_this, size);
#endif
return return_this;
}
1079d5: 89 d8 mov %ebx,%eax
1079d7: 8d 65 f4 lea -0xc(%ebp),%esp
1079da: 5b pop %ebx
1079db: 5e pop %esi
1079dc: 5f pop %edi
1079dd: c9 leave
1079de: c3 ret
00107852 <malloc_deferred_free>:
}
void malloc_deferred_free(
void *pointer
)
{
107852: 55 push %ebp <== NOT EXECUTED
107853: 89 e5 mov %esp,%ebp <== NOT EXECUTED
107855: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void rtems_chain_append(
rtems_chain_control *the_chain,
rtems_chain_node *the_node
)
{
_Chain_Append( the_chain, the_node );
107858: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
10785b: 68 c4 60 12 00 push $0x1260c4 <== NOT EXECUTED
107860: e8 cf 35 00 00 call 10ae34 <_Chain_Append> <== NOT EXECUTED
107865: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_chain_append(&RTEMS_Malloc_GC_list, (rtems_chain_node *)pointer);
}
107868: c9 leave <== NOT EXECUTED
107869: c3 ret <== NOT EXECUTED
0010786a <malloc_deferred_frees_process>:
{
rtems_chain_initialize_empty(&RTEMS_Malloc_GC_list);
}
void malloc_deferred_frees_process(void)
{
10786a: 55 push %ebp
10786b: 89 e5 mov %esp,%ebp
10786d: 83 ec 08 sub $0x8,%esp
rtems_chain_node *to_be_freed;
/*
* If some free's have been deferred, then do them now.
*/
while ((to_be_freed = rtems_chain_get(&RTEMS_Malloc_GC_list)) != NULL)
107870: eb 0c jmp 10787e <malloc_deferred_frees_process+0x14>
free(to_be_freed);
107872: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
107875: 50 push %eax <== NOT EXECUTED
107876: e8 21 fe ff ff call 10769c <free> <== NOT EXECUTED
10787b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get(
rtems_chain_control *the_chain
)
{
return _Chain_Get( the_chain );
10787e: 83 ec 0c sub $0xc,%esp
107881: 68 c4 60 12 00 push $0x1260c4
107886: e8 e5 35 00 00 call 10ae70 <_Chain_Get>
rtems_chain_node *to_be_freed;
/*
* If some free's have been deferred, then do them now.
*/
while ((to_be_freed = rtems_chain_get(&RTEMS_Malloc_GC_list)) != NULL)
10788b: 83 c4 10 add $0x10,%esp
10788e: 85 c0 test %eax,%eax
107890: 75 e0 jne 107872 <malloc_deferred_frees_process+0x8><== NEVER TAKEN
free(to_be_freed);
}
107892: c9 leave
107893: c3 ret
00107814 <malloc_is_system_state_OK>:
#include "malloc_p.h"
rtems_chain_control RTEMS_Malloc_GC_list;
bool malloc_is_system_state_OK(void)
{
107814: 55 push %ebp
107815: 89 e5 mov %esp,%ebp
if ( _Thread_Dispatch_disable_level > 0 )
107817: 8b 15 08 62 12 00 mov 0x126208,%edx
10781d: 31 c0 xor %eax,%eax
10781f: 85 d2 test %edx,%edx
107821: 75 0a jne 10782d <malloc_is_system_state_OK+0x19><== NEVER TAKEN
return false;
if ( _ISR_Nest_level > 0 )
107823: a1 a0 62 12 00 mov 0x1262a0,%eax
#include "malloc_p.h"
rtems_chain_control RTEMS_Malloc_GC_list;
bool malloc_is_system_state_OK(void)
107828: 85 c0 test %eax,%eax
10782a: 0f 94 c0 sete %al
if ( _ISR_Nest_level > 0 )
return false;
return true;
}
10782d: c9 leave
10782e: c3 ret
00110994 <memfile_alloc_block>:
*/
int memfile_blocks_allocated = 0;
void *memfile_alloc_block(void)
{
110994: 55 push %ebp
110995: 89 e5 mov %esp,%ebp
110997: 83 ec 10 sub $0x10,%esp
void *memory;
memory = (void *)calloc(1, IMFS_MEMFILE_BYTES_PER_BLOCK);
11099a: ff 35 a8 5d 12 00 pushl 0x125da8
1109a0: 6a 01 push $0x1
1109a2: e8 15 6b ff ff call 1074bc <calloc>
if ( memory )
1109a7: 83 c4 10 add $0x10,%esp
1109aa: 85 c0 test %eax,%eax
1109ac: 74 06 je 1109b4 <memfile_alloc_block+0x20><== NEVER TAKEN
memfile_blocks_allocated++;
1109ae: ff 05 bc 5e 12 00 incl 0x125ebc
return memory;
}
1109b4: c9 leave
1109b5: c3 ret
00110d10 <memfile_check_rmnod>:
return memfile_check_rmnod( the_jnode );
}
int memfile_check_rmnod( IMFS_jnode_t *the_jnode ){
110d10: 55 push %ebp
110d11: 89 e5 mov %esp,%ebp
110d13: 53 push %ebx
110d14: 83 ec 10 sub $0x10,%esp
110d17: 8b 5d 08 mov 0x8(%ebp),%ebx
/*
* The file cannot be open and the link must be less than 1 to free.
*/
if ( !rtems_libio_is_file_open( the_jnode ) && (the_jnode->st_nlink < 1) ) {
110d1a: 53 push %ebx
110d1b: e8 02 e2 ff ff call 10ef22 <rtems_libio_is_file_open>
110d20: 83 c4 10 add $0x10,%esp
110d23: 85 c0 test %eax,%eax
110d25: 75 36 jne 110d5d <memfile_check_rmnod+0x4d>
110d27: 66 83 7b 34 00 cmpw $0x0,0x34(%ebx)
110d2c: 75 2f jne 110d5d <memfile_check_rmnod+0x4d><== NEVER TAKEN
/*
* Is the rtems_filesystem_current is this node?
*/
if ( rtems_filesystem_current.node_access == the_jnode )
110d2e: a1 54 3f 12 00 mov 0x123f54,%eax
110d33: 39 58 04 cmp %ebx,0x4(%eax)
110d36: 75 07 jne 110d3f <memfile_check_rmnod+0x2f><== ALWAYS TAKEN
rtems_filesystem_current.node_access = NULL;
110d38: c7 40 04 00 00 00 00 movl $0x0,0x4(%eax) <== NOT EXECUTED
/*
* Free memory associated with a memory file.
*/
if (the_jnode->type != IMFS_LINEAR_FILE)
110d3f: 83 7b 4c 06 cmpl $0x6,0x4c(%ebx)
110d43: 74 0c je 110d51 <memfile_check_rmnod+0x41><== NEVER TAKEN
IMFS_memfile_remove( the_jnode );
110d45: 83 ec 0c sub $0xc,%esp
110d48: 53 push %ebx
110d49: e8 98 fe ff ff call 110be6 <IMFS_memfile_remove>
110d4e: 83 c4 10 add $0x10,%esp
free( the_jnode );
110d51: 83 ec 0c sub $0xc,%esp
110d54: 53 push %ebx
110d55: e8 42 69 ff ff call 10769c <free>
110d5a: 83 c4 10 add $0x10,%esp
}
return 0;
}
110d5d: 31 c0 xor %eax,%eax
110d5f: 8b 5d fc mov -0x4(%ebp),%ebx
110d62: c9 leave
110d63: c3 ret
00110b31 <memfile_free_blocks_in_table>:
void memfile_free_blocks_in_table(
block_p **block_table,
int entries
)
{
110b31: 55 push %ebp
110b32: 89 e5 mov %esp,%ebp
110b34: 57 push %edi
110b35: 56 push %esi
110b36: 53 push %ebx
110b37: 83 ec 0c sub $0xc,%esp
110b3a: 8b 75 08 mov 0x8(%ebp),%esi
/*
* Perform internal consistency checks
*/
assert( block_table );
110b3d: 85 f6 test %esi,%esi
110b3f: 75 19 jne 110b5a <memfile_free_blocks_in_table+0x29><== ALWAYS TAKEN
110b41: 68 4b 0a 12 00 push $0x120a4b <== NOT EXECUTED
110b46: 68 40 0b 12 00 push $0x120b40 <== NOT EXECUTED
110b4b: 68 b3 01 00 00 push $0x1b3 <== NOT EXECUTED
110b50: 68 da 09 12 00 push $0x1209da <== NOT EXECUTED
110b55: e8 46 68 ff ff call 1073a0 <__assert_func> <== NOT EXECUTED
/*
* Now go through all the slots in the table and free the memory.
*/
b = *block_table;
110b5a: 8b 3e mov (%esi),%edi
110b5c: 31 db xor %ebx,%ebx
for ( i=0 ; i<entries ; i++ ) {
110b5e: eb 1b jmp 110b7b <memfile_free_blocks_in_table+0x4a>
if ( b[i] ) {
110b60: 8b 04 9f mov (%edi,%ebx,4),%eax
110b63: 85 c0 test %eax,%eax
110b65: 74 13 je 110b7a <memfile_free_blocks_in_table+0x49>
memfile_free_block( b[i] );
110b67: 83 ec 0c sub $0xc,%esp
110b6a: 50 push %eax
110b6b: e8 0b fe ff ff call 11097b <memfile_free_block>
b[i] = 0;
110b70: c7 04 9f 00 00 00 00 movl $0x0,(%edi,%ebx,4)
110b77: 83 c4 10 add $0x10,%esp
* Now go through all the slots in the table and free the memory.
*/
b = *block_table;
for ( i=0 ; i<entries ; i++ ) {
110b7a: 43 inc %ebx
110b7b: 3b 5d 0c cmp 0xc(%ebp),%ebx
110b7e: 7c e0 jl 110b60 <memfile_free_blocks_in_table+0x2f>
/*
* Now that all the blocks in the block table are free, we can
* free the block table itself.
*/
memfile_free_block( *block_table );
110b80: 83 ec 0c sub $0xc,%esp
110b83: ff 36 pushl (%esi)
110b85: e8 f1 fd ff ff call 11097b <memfile_free_block>
*block_table = 0;
110b8a: c7 06 00 00 00 00 movl $0x0,(%esi)
110b90: 83 c4 10 add $0x10,%esp
}
110b93: 8d 65 f4 lea -0xc(%ebp),%esp
110b96: 5b pop %ebx
110b97: 5e pop %esi
110b98: 5f pop %edi
110b99: c9 leave
110b9a: c3 ret
00110f71 <memfile_ftruncate>:
int memfile_ftruncate(
rtems_libio_t *iop,
rtems_off64_t length
)
{
110f71: 55 push %ebp
110f72: 89 e5 mov %esp,%ebp
110f74: 53 push %ebx
110f75: 83 ec 14 sub $0x14,%esp
110f78: 8b 4d 08 mov 0x8(%ebp),%ecx
110f7b: 8b 45 0c mov 0xc(%ebp),%eax
110f7e: 8b 55 10 mov 0x10(%ebp),%edx
IMFS_jnode_t *the_jnode;
the_jnode = iop->file_info;
110f81: 8b 59 38 mov 0x38(%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 )
110f84: 3b 53 54 cmp 0x54(%ebx),%edx
110f87: 7c 12 jl 110f9b <memfile_ftruncate+0x2a><== NEVER TAKEN
110f89: 7f 05 jg 110f90 <memfile_ftruncate+0x1f><== NEVER TAKEN
110f8b: 3b 43 50 cmp 0x50(%ebx),%eax
110f8e: 76 0b jbe 110f9b <memfile_ftruncate+0x2a><== ALWAYS TAKEN
return IMFS_memfile_extend( the_jnode, length );
110f90: 51 push %ecx <== NOT EXECUTED
110f91: 52 push %edx <== NOT EXECUTED
110f92: 50 push %eax <== NOT EXECUTED
110f93: 53 push %ebx <== NOT EXECUTED
110f94: e8 b2 fe ff ff call 110e4b <IMFS_memfile_extend> <== NOT EXECUTED
110f99: eb 21 jmp 110fbc <memfile_ftruncate+0x4b><== NOT EXECUTED
* The in-memory files do not currently reclaim memory until the file is
* deleted. So we leave the previously allocated blocks in place for
* future use and just set the length.
*/
the_jnode->info.file.size = length;
110f9b: 89 43 50 mov %eax,0x50(%ebx)
110f9e: 89 53 54 mov %edx,0x54(%ebx)
iop->size = the_jnode->info.file.size;
110fa1: 89 41 04 mov %eax,0x4(%ecx)
110fa4: 89 51 08 mov %edx,0x8(%ecx)
IMFS_update_atime( the_jnode );
110fa7: 52 push %edx
110fa8: 52 push %edx
110fa9: 6a 00 push $0x0
110fab: 8d 45 f0 lea -0x10(%ebp),%eax
110fae: 50 push %eax
110faf: e8 60 67 ff ff call 107714 <gettimeofday>
110fb4: 8b 45 f0 mov -0x10(%ebp),%eax
110fb7: 89 43 40 mov %eax,0x40(%ebx)
110fba: 31 c0 xor %eax,%eax
return 0;
110fbc: 83 c4 10 add $0x10,%esp
}
110fbf: 8b 5d fc mov -0x4(%ebp),%ebx
110fc2: c9 leave
110fc3: c3 ret
00110fc4 <memfile_lseek>:
rtems_off64_t memfile_lseek(
rtems_libio_t *iop,
rtems_off64_t offset,
int whence
)
{
110fc4: 55 push %ebp
110fc5: 89 e5 mov %esp,%ebp
110fc7: 56 push %esi
110fc8: 53 push %ebx
110fc9: 8b 5d 08 mov 0x8(%ebp),%ebx
IMFS_jnode_t *the_jnode;
the_jnode = iop->file_info;
110fcc: 8b 73 38 mov 0x38(%ebx),%esi
if (the_jnode->type == IMFS_LINEAR_FILE) {
110fcf: 83 7e 4c 06 cmpl $0x6,0x4c(%esi)
110fd3: 75 1a jne 110fef <memfile_lseek+0x2b> <== ALWAYS TAKEN
if (iop->offset > the_jnode->info.linearfile.size)
110fd5: 8b 56 50 mov 0x50(%esi),%edx <== NOT EXECUTED
110fd8: 8b 46 54 mov 0x54(%esi),%eax <== NOT EXECUTED
110fdb: 39 43 10 cmp %eax,0x10(%ebx) <== NOT EXECUTED
110fde: 7c 41 jl 111021 <memfile_lseek+0x5d> <== NOT EXECUTED
110fe0: 7f 05 jg 110fe7 <memfile_lseek+0x23> <== NOT EXECUTED
110fe2: 39 53 0c cmp %edx,0xc(%ebx) <== NOT EXECUTED
110fe5: 76 3a jbe 111021 <memfile_lseek+0x5d> <== NOT EXECUTED
iop->offset = the_jnode->info.linearfile.size;
110fe7: 89 53 0c mov %edx,0xc(%ebx) <== NOT EXECUTED
110fea: 89 43 10 mov %eax,0x10(%ebx) <== NOT EXECUTED
110fed: eb 32 jmp 111021 <memfile_lseek+0x5d> <== NOT EXECUTED
}
else { /* Must be a block file (IMFS_MEMORY_FILE). */
if (IMFS_memfile_extend( the_jnode, iop->offset ))
110fef: 50 push %eax
110ff0: ff 73 10 pushl 0x10(%ebx)
110ff3: ff 73 0c pushl 0xc(%ebx)
110ff6: 56 push %esi
110ff7: e8 4f fe ff ff call 110e4b <IMFS_memfile_extend>
110ffc: 83 c4 10 add $0x10,%esp
110fff: 85 c0 test %eax,%eax
111001: 74 12 je 111015 <memfile_lseek+0x51> <== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( ENOSPC );
111003: e8 0c 1a 00 00 call 112a14 <__errno> <== NOT EXECUTED
111008: c7 00 1c 00 00 00 movl $0x1c,(%eax) <== NOT EXECUTED
11100e: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
111011: 89 c2 mov %eax,%edx <== NOT EXECUTED
111013: eb 12 jmp 111027 <memfile_lseek+0x63> <== NOT EXECUTED
iop->size = the_jnode->info.file.size;
111015: 8b 46 50 mov 0x50(%esi),%eax
111018: 8b 56 54 mov 0x54(%esi),%edx
11101b: 89 43 04 mov %eax,0x4(%ebx)
11101e: 89 53 08 mov %edx,0x8(%ebx)
}
return iop->offset;
111021: 8b 43 0c mov 0xc(%ebx),%eax
111024: 8b 53 10 mov 0x10(%ebx),%edx
}
111027: 8d 65 f8 lea -0x8(%ebp),%esp
11102a: 5b pop %ebx
11102b: 5e pop %esi
11102c: c9 leave
11102d: c3 ret
00111253 <memfile_open>:
rtems_libio_t *iop,
const char *pathname,
uint32_t flag,
uint32_t mode
)
{
111253: 55 push %ebp
111254: 89 e5 mov %esp,%ebp
111256: 56 push %esi
111257: 53 push %ebx
111258: 8b 75 08 mov 0x8(%ebp),%esi
IMFS_jnode_t *the_jnode;
the_jnode = iop->file_info;
11125b: 8b 5e 38 mov 0x38(%esi),%ebx
/*
* Perform 'copy on write' for linear files
*/
if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND))
11125e: f7 46 14 04 02 00 00 testl $0x204,0x14(%esi)
111265: 74 54 je 1112bb <memfile_open+0x68>
&& (the_jnode->type == IMFS_LINEAR_FILE)) {
111267: 83 7b 4c 06 cmpl $0x6,0x4c(%ebx)
11126b: 75 4e jne 1112bb <memfile_open+0x68> <== ALWAYS TAKEN
uint32_t count = the_jnode->info.linearfile.size;
11126d: 8b 43 50 mov 0x50(%ebx),%eax <== NOT EXECUTED
const unsigned char *buffer = the_jnode->info.linearfile.direct;
111270: 8b 53 58 mov 0x58(%ebx),%edx <== NOT EXECUTED
the_jnode->type = IMFS_MEMORY_FILE;
111273: c7 43 4c 05 00 00 00 movl $0x5,0x4c(%ebx) <== NOT EXECUTED
the_jnode->info.file.size = 0;
11127a: c7 43 50 00 00 00 00 movl $0x0,0x50(%ebx) <== NOT EXECUTED
111281: c7 43 54 00 00 00 00 movl $0x0,0x54(%ebx) <== NOT EXECUTED
the_jnode->info.file.indirect = 0;
111288: c7 43 58 00 00 00 00 movl $0x0,0x58(%ebx) <== NOT EXECUTED
the_jnode->info.file.doubly_indirect = 0;
11128f: c7 43 5c 00 00 00 00 movl $0x0,0x5c(%ebx) <== NOT EXECUTED
the_jnode->info.file.triply_indirect = 0;
111296: c7 43 60 00 00 00 00 movl $0x0,0x60(%ebx) <== NOT EXECUTED
if ((count != 0)
11129d: 85 c0 test %eax,%eax <== NOT EXECUTED
11129f: 74 1a je 1112bb <memfile_open+0x68> <== NOT EXECUTED
&& (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1))
1112a1: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1112a4: 50 push %eax <== NOT EXECUTED
1112a5: 52 push %edx <== NOT EXECUTED
1112a6: 6a 00 push $0x0 <== NOT EXECUTED
1112a8: 6a 00 push $0x0 <== NOT EXECUTED
1112aa: 53 push %ebx <== NOT EXECUTED
1112ab: e8 7e fd ff ff call 11102e <IMFS_memfile_write> <== NOT EXECUTED
1112b0: 89 c2 mov %eax,%edx <== NOT EXECUTED
the_jnode->type = IMFS_MEMORY_FILE;
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)
1112b2: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
1112b5: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
1112b8: 42 inc %edx <== NOT EXECUTED
1112b9: 74 20 je 1112db <memfile_open+0x88> <== NOT EXECUTED
&& (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1))
return -1;
}
if (iop->flags & LIBIO_FLAGS_APPEND)
1112bb: f6 46 15 02 testb $0x2,0x15(%esi)
1112bf: 74 0c je 1112cd <memfile_open+0x7a>
iop->offset = the_jnode->info.file.size;
1112c1: 8b 43 50 mov 0x50(%ebx),%eax
1112c4: 8b 53 54 mov 0x54(%ebx),%edx
1112c7: 89 46 0c mov %eax,0xc(%esi)
1112ca: 89 56 10 mov %edx,0x10(%esi)
iop->size = the_jnode->info.file.size;
1112cd: 8b 43 50 mov 0x50(%ebx),%eax
1112d0: 8b 53 54 mov 0x54(%ebx),%edx
1112d3: 89 46 04 mov %eax,0x4(%esi)
1112d6: 89 56 08 mov %edx,0x8(%esi)
1112d9: 31 c0 xor %eax,%eax
return 0;
}
1112db: 8d 65 f8 lea -0x8(%ebp),%esp
1112de: 5b pop %ebx
1112df: 5e pop %esi
1112e0: c9 leave
1112e1: c3 ret
00110d64 <memfile_rmnod>:
int memfile_rmnod(
rtems_filesystem_location_info_t *parent_pathloc, /* IN */
rtems_filesystem_location_info_t *pathloc /* IN */
)
{
110d64: 55 push %ebp
110d65: 89 e5 mov %esp,%ebp
110d67: 53 push %ebx
110d68: 83 ec 14 sub $0x14,%esp
IMFS_jnode_t *the_jnode;
the_jnode = (IMFS_jnode_t *) pathloc->node_access;
110d6b: 8b 45 0c mov 0xc(%ebp),%eax
110d6e: 8b 18 mov (%eax),%ebx
/*
* Take the node out of the parent's chain that contains this node
*/
if ( the_jnode->Parent != NULL ) {
110d70: 83 7b 08 00 cmpl $0x0,0x8(%ebx)
110d74: 74 13 je 110d89 <memfile_rmnod+0x25> <== NEVER TAKEN
110d76: 83 ec 0c sub $0xc,%esp
110d79: 53 push %ebx
110d7a: e8 d9 a0 ff ff call 10ae58 <_Chain_Extract>
rtems_chain_extract( (rtems_chain_node *) the_jnode );
the_jnode->Parent = NULL;
110d7f: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx)
110d86: 83 c4 10 add $0x10,%esp
/*
* Decrement the link counter and see if we can free the space.
*/
the_jnode->st_nlink--;
110d89: 66 ff 4b 34 decw 0x34(%ebx)
IMFS_update_ctime( the_jnode );
110d8d: 50 push %eax
110d8e: 50 push %eax
110d8f: 6a 00 push $0x0
110d91: 8d 45 f0 lea -0x10(%ebp),%eax
110d94: 50 push %eax
110d95: e8 7a 69 ff ff call 107714 <gettimeofday>
110d9a: 8b 45 f0 mov -0x10(%ebp),%eax
110d9d: 89 43 48 mov %eax,0x48(%ebx)
return memfile_check_rmnod( the_jnode );
110da0: 89 1c 24 mov %ebx,(%esp)
110da3: e8 68 ff ff ff call 110d10 <memfile_check_rmnod>
}
110da8: 8b 5d fc mov -0x4(%ebp),%ebx
110dab: c9 leave
110dac: c3 ret
001079fc <mknod>:
int mknod(
const char *pathname,
mode_t mode,
dev_t dev
)
{
1079fc: 55 push %ebp
1079fd: 89 e5 mov %esp,%ebp
1079ff: 57 push %edi
107a00: 56 push %esi
107a01: 53 push %ebx
107a02: 83 ec 3c sub $0x3c,%esp
107a05: 8b 5d 08 mov 0x8(%ebp),%ebx
107a08: 8b 7d 0c mov 0xc(%ebp),%edi
107a0b: 8b 45 10 mov 0x10(%ebp),%eax
107a0e: 8b 55 14 mov 0x14(%ebp),%edx
107a11: 89 45 c0 mov %eax,-0x40(%ebp)
107a14: 89 55 c4 mov %edx,-0x3c(%ebp)
int result;
/*
* The file type is field within the mode. Check we have a sane mode set.
*/
switch (mode & S_IFMT)
107a17: 89 f8 mov %edi,%eax
107a19: 25 00 f0 00 00 and $0xf000,%eax
107a1e: 3d 00 40 00 00 cmp $0x4000,%eax
107a23: 74 2b je 107a50 <mknod+0x54>
107a25: 77 0e ja 107a35 <mknod+0x39>
107a27: 3d 00 10 00 00 cmp $0x1000,%eax
107a2c: 74 22 je 107a50 <mknod+0x54>
107a2e: 3d 00 20 00 00 cmp $0x2000,%eax
107a33: eb 0c jmp 107a41 <mknod+0x45>
107a35: 3d 00 60 00 00 cmp $0x6000,%eax
107a3a: 74 14 je 107a50 <mknod+0x54>
107a3c: 3d 00 80 00 00 cmp $0x8000,%eax
107a41: 74 0d je 107a50 <mknod+0x54> <== ALWAYS TAKEN
case S_IFBLK:
case S_IFREG:
case S_IFIFO:
break;
default:
rtems_set_errno_and_return_minus_one( EINVAL );
107a43: e8 cc af 00 00 call 112a14 <__errno> <== NOT EXECUTED
107a48: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
107a4e: eb 27 jmp 107a77 <mknod+0x7b> <== NOT EXECUTED
}
rtems_filesystem_get_start_loc( pathname, &i, &temp_loc );
107a50: 51 push %ecx
107a51: 8d 75 cc lea -0x34(%ebp),%esi
107a54: 56 push %esi
107a55: 8d 45 e4 lea -0x1c(%ebp),%eax
107a58: 50 push %eax
107a59: 53 push %ebx
107a5a: e8 51 09 00 00 call 1083b0 <rtems_filesystem_get_start_loc>
if ( !temp_loc.ops->evalformake_h ) {
107a5f: 8b 45 d8 mov -0x28(%ebp),%eax
107a62: 8b 40 04 mov 0x4(%eax),%eax
107a65: 83 c4 10 add $0x10,%esp
107a68: 85 c0 test %eax,%eax
107a6a: 75 10 jne 107a7c <mknod+0x80> <== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( ENOTSUP );
107a6c: e8 a3 af 00 00 call 112a14 <__errno> <== NOT EXECUTED
107a71: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
107a77: 83 cb ff or $0xffffffff,%ebx <== NOT EXECUTED
107a7a: eb 5e jmp 107ada <mknod+0xde> <== NOT EXECUTED
}
result = (*temp_loc.ops->evalformake_h)(
107a7c: 52 push %edx
107a7d: 8d 55 e0 lea -0x20(%ebp),%edx
107a80: 52 push %edx
107a81: 56 push %esi
107a82: 03 5d e4 add -0x1c(%ebp),%ebx
107a85: 53 push %ebx
107a86: ff d0 call *%eax
&pathname[i],
&temp_loc,
&name_start
);
if ( result != 0 )
107a88: 83 c4 10 add $0x10,%esp
107a8b: 83 cb ff or $0xffffffff,%ebx
107a8e: 85 c0 test %eax,%eax
107a90: 75 48 jne 107ada <mknod+0xde>
return -1;
if ( !temp_loc.ops->mknod_h ) {
107a92: 8b 55 d8 mov -0x28(%ebp),%edx
107a95: 8b 42 14 mov 0x14(%edx),%eax
107a98: 85 c0 test %eax,%eax
107a9a: 75 12 jne 107aae <mknod+0xb2> <== ALWAYS TAKEN
rtems_filesystem_freenode( &temp_loc );
107a9c: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED
107a9f: 85 c0 test %eax,%eax <== NOT EXECUTED
107aa1: 74 c9 je 107a6c <mknod+0x70> <== NOT EXECUTED
107aa3: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
107aa6: 56 push %esi <== NOT EXECUTED
107aa7: ff d0 call *%eax <== NOT EXECUTED
107aa9: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
107aac: eb be jmp 107a6c <mknod+0x70> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
result = (*temp_loc.ops->mknod_h)( name_start, mode, dev, &temp_loc );
107aae: 83 ec 0c sub $0xc,%esp
107ab1: 56 push %esi
107ab2: ff 75 c4 pushl -0x3c(%ebp)
107ab5: ff 75 c0 pushl -0x40(%ebp)
107ab8: 57 push %edi
107ab9: ff 75 e0 pushl -0x20(%ebp)
107abc: ff d0 call *%eax
107abe: 89 c3 mov %eax,%ebx
rtems_filesystem_freenode( &temp_loc );
107ac0: 8b 45 d8 mov -0x28(%ebp),%eax
107ac3: 83 c4 20 add $0x20,%esp
107ac6: 85 c0 test %eax,%eax
107ac8: 74 10 je 107ada <mknod+0xde> <== NEVER TAKEN
107aca: 8b 40 1c mov 0x1c(%eax),%eax
107acd: 85 c0 test %eax,%eax
107acf: 74 09 je 107ada <mknod+0xde>
107ad1: 83 ec 0c sub $0xc,%esp
107ad4: 56 push %esi
107ad5: ff d0 call *%eax
107ad7: 83 c4 10 add $0x10,%esp
return result;
}
107ada: 89 d8 mov %ebx,%eax
107adc: 8d 65 f4 lea -0xc(%ebp),%esp
107adf: 5b pop %ebx
107ae0: 5e pop %esi
107ae1: 5f pop %edi
107ae2: c9 leave
107ae3: c3 ret
00107b4e <mount>:
const char *target,
const char *filesystemtype,
rtems_filesystem_options_t options,
const void *data
)
{
107b4e: 55 push %ebp
107b4f: 89 e5 mov %esp,%ebp
107b51: 57 push %edi
107b52: 56 push %esi
107b53: 53 push %ebx
107b54: 83 ec 4c sub $0x4c,%esp
107b57: 8b 75 08 mov 0x8(%ebp),%esi
/*
* Are the file system options valid?
*/
if ( options != RTEMS_FILESYSTEM_READ_ONLY &&
107b5a: 83 7d 14 01 cmpl $0x1,0x14(%ebp)
107b5e: 77 15 ja 107b75 <mount+0x27>
rtems_set_errno_and_return_minus_one( EINVAL );
/*
* Get mount handler
*/
mount_h = rtems_filesystem_get_mount_handler( filesystemtype );
107b60: 83 ec 0c sub $0xc,%esp
107b63: ff 75 10 pushl 0x10(%ebp)
107b66: e8 d4 76 00 00 call 10f23f <rtems_filesystem_get_mount_handler>
107b6b: 89 45 b0 mov %eax,-0x50(%ebp)
if ( !mount_h )
107b6e: 83 c4 10 add $0x10,%esp
107b71: 85 c0 test %eax,%eax
107b73: 75 10 jne 107b85 <mount+0x37>
rtems_set_errno_and_return_minus_one( EINVAL );
107b75: e8 9a ae 00 00 call 112a14 <__errno>
107b7a: c7 00 16 00 00 00 movl $0x16,(%eax)
107b80: e9 45 02 00 00 jmp 107dca <mount+0x27c>
{
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;
107b85: 83 7d 0c 00 cmpl $0x0,0xc(%ebp)
107b89: 0f 95 45 bb setne -0x45(%ebp)
const char *target_or_null,
const char *filesystemtype,
size_t *target_length_ptr
)
{
const char *target = target_or_null != NULL ? target_or_null : "/";
107b8d: c7 45 bc 10 01 12 00 movl $0x120110,-0x44(%ebp)
107b94: 80 7d bb 00 cmpb $0x0,-0x45(%ebp)
107b98: 74 06 je 107ba0 <mount+0x52>
107b9a: 8b 45 0c mov 0xc(%ebp),%eax
107b9d: 89 45 bc mov %eax,-0x44(%ebp)
size_t filesystemtype_size = strlen( filesystemtype ) + 1;
107ba0: 83 ca ff or $0xffffffff,%edx
107ba3: 31 c0 xor %eax,%eax
107ba5: 89 d1 mov %edx,%ecx
107ba7: 8b 7d 10 mov 0x10(%ebp),%edi
107baa: f2 ae repnz scas %es:(%edi),%al
107bac: f7 d1 not %ecx
107bae: 89 4d c0 mov %ecx,-0x40(%ebp)
size_t source_size = source_or_null != NULL ?
strlen( source_or_null ) + 1 : 0;
107bb1: c7 45 c4 00 00 00 00 movl $0x0,-0x3c(%ebp)
107bb8: 85 f6 test %esi,%esi
107bba: 74 0b je 107bc7 <mount+0x79>
107bbc: 89 d1 mov %edx,%ecx
107bbe: 89 f7 mov %esi,%edi
107bc0: f2 ae repnz scas %es:(%edi),%al
107bc2: f7 d1 not %ecx
107bc4: 89 4d c4 mov %ecx,-0x3c(%ebp)
size_t target_length = strlen( target );
107bc7: 31 c0 xor %eax,%eax
107bc9: 83 c9 ff or $0xffffffff,%ecx
107bcc: 8b 7d bc mov -0x44(%ebp),%edi
107bcf: f2 ae repnz scas %es:(%edi),%al
107bd1: f7 d1 not %ecx
107bd3: 49 dec %ecx
107bd4: 89 4d b4 mov %ecx,-0x4c(%ebp)
size_t size = sizeof( rtems_filesystem_mount_table_entry_t )
+ filesystemtype_size + source_size + target_length + 1;
rtems_filesystem_mount_table_entry_t *mt_entry = calloc( 1, size );
107bd7: 53 push %ebx
107bd8: 53 push %ebx
107bd9: 8b 55 c0 mov -0x40(%ebp),%edx
107bdc: 8d 44 11 75 lea 0x75(%ecx,%edx,1),%eax
107be0: 03 45 c4 add -0x3c(%ebp),%eax
107be3: 50 push %eax
107be4: 6a 01 push $0x1
107be6: e8 d1 f8 ff ff call 1074bc <calloc>
107beb: 89 c3 mov %eax,%ebx
if ( mt_entry != NULL ) {
107bed: 83 c4 10 add $0x10,%esp
107bf0: 85 c0 test %eax,%eax
107bf2: 74 62 je 107c56 <mount+0x108> <== NEVER TAKEN
char *str = (char *) mt_entry + sizeof( *mt_entry );
107bf4: 8d 78 74 lea 0x74(%eax),%edi
strcpy( str, filesystemtype );
107bf7: 52 push %edx
107bf8: 52 push %edx
107bf9: ff 75 10 pushl 0x10(%ebp)
107bfc: 57 push %edi
107bfd: e8 86 b9 00 00 call 113588 <strcpy>
mt_entry->type = str;
107c02: 89 7b 6c mov %edi,0x6c(%ebx)
str += filesystemtype_size;
107c05: 03 7d c0 add -0x40(%ebp),%edi
if ( source_or_null != NULL ) {
107c08: 83 c4 10 add $0x10,%esp
107c0b: 85 f6 test %esi,%esi
107c0d: 74 12 je 107c21 <mount+0xd3>
strcpy( str, source_or_null );
107c0f: 50 push %eax
107c10: 50 push %eax
107c11: 56 push %esi
107c12: 57 push %edi
107c13: e8 70 b9 00 00 call 113588 <strcpy>
mt_entry->dev = str;
107c18: 89 7b 70 mov %edi,0x70(%ebx)
str += source_size;
107c1b: 03 7d c4 add -0x3c(%ebp),%edi
107c1e: 83 c4 10 add $0x10,%esp
}
strcpy( str, target );
107c21: 51 push %ecx
107c22: 51 push %ecx
107c23: ff 75 bc pushl -0x44(%ebp)
107c26: 57 push %edi
107c27: e8 5c b9 00 00 call 113588 <strcpy>
mt_entry->target = str;
107c2c: 89 7b 68 mov %edi,0x68(%ebx)
&target_length
);
if ( !mt_entry )
rtems_set_errno_and_return_minus_one( ENOMEM );
mt_entry->mt_fs_root.mt_entry = mt_entry;
107c2f: 89 5b 2c mov %ebx,0x2c(%ebx)
mt_entry->options = options;
107c32: 8b 4d 14 mov 0x14(%ebp),%ecx
107c35: 89 4b 30 mov %ecx,0x30(%ebx)
mt_entry->pathconf_limits_and_options = rtems_filesystem_default_pathconf;
107c38: 8d 7b 38 lea 0x38(%ebx),%edi
107c3b: be 50 01 12 00 mov $0x120150,%esi
107c40: b9 0c 00 00 00 mov $0xc,%ecx
107c45: 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 ) {
107c47: 83 c4 10 add $0x10,%esp
107c4a: 80 7d bb 00 cmpb $0x0,-0x45(%ebp)
107c4e: 0f 84 bf 00 00 00 je 107d13 <mount+0x1c5>
107c54: eb 10 jmp 107c66 <mount+0x118>
target,
filesystemtype,
&target_length
);
if ( !mt_entry )
rtems_set_errno_and_return_minus_one( ENOMEM );
107c56: e8 b9 ad 00 00 call 112a14 <__errno> <== NOT EXECUTED
107c5b: c7 00 0c 00 00 00 movl $0xc,(%eax) <== NOT EXECUTED
107c61: e9 64 01 00 00 jmp 107dca <mount+0x27c> <== NOT EXECUTED
* The mount_point should be a directory with read/write/execute
* permissions in the existing tree.
*/
if ( has_target ) {
if ( rtems_filesystem_evaluate_path(
107c66: 83 ec 0c sub $0xc,%esp
107c69: 6a 01 push $0x1
107c6b: 8d 75 d4 lea -0x2c(%ebp),%esi
107c6e: 56 push %esi
107c6f: 6a 07 push $0x7
107c71: ff 75 b4 pushl -0x4c(%ebp)
107c74: ff 75 0c pushl 0xc(%ebp)
107c77: e8 b5 f9 ff ff call 107631 <rtems_filesystem_evaluate_path>
107c7c: 83 c4 20 add $0x20,%esp
107c7f: 40 inc %eax
107c80: 0f 84 16 01 00 00 je 107d9c <mount+0x24e> <== NEVER TAKEN
/*
* Test for node_type_h
*/
if (!loc.ops->node_type_h) {
107c86: 8b 45 e0 mov -0x20(%ebp),%eax
107c89: 8b 40 10 mov 0x10(%eax),%eax
107c8c: 85 c0 test %eax,%eax
107c8e: 74 61 je 107cf1 <mount+0x1a3> <== NEVER TAKEN
/*
* Test to see if it is a directory
*/
if ( loc.ops->node_type_h( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) {
107c90: 83 ec 0c sub $0xc,%esp
107c93: 56 push %esi
107c94: ff d0 call *%eax
107c96: 83 c4 10 add $0x10,%esp
107c99: 48 dec %eax
107c9a: 74 10 je 107cac <mount+0x15e>
errno = ENOTDIR;
107c9c: e8 73 ad 00 00 call 112a14 <__errno>
107ca1: c7 00 14 00 00 00 movl $0x14,(%eax)
goto cleanup_and_bail;
107ca7: e9 f2 00 00 00 jmp 107d9e <mount+0x250>
/*
* You can only mount one file system onto a single mount point.
*/
if ( rtems_filesystem_mount_iterate( is_node_fs_root, loc.node_access ) ) {
107cac: 52 push %edx
107cad: 52 push %edx
107cae: ff 75 d4 pushl -0x2c(%ebp)
107cb1: 68 e4 7a 10 00 push $0x107ae4
107cb6: e8 3a fe ff ff call 107af5 <rtems_filesystem_mount_iterate>
107cbb: 83 c4 10 add $0x10,%esp
107cbe: 84 c0 test %al,%al
107cc0: 74 10 je 107cd2 <mount+0x184>
errno = EBUSY;
107cc2: e8 4d ad 00 00 call 112a14 <__errno>
107cc7: c7 00 10 00 00 00 movl $0x10,(%eax)
goto cleanup_and_bail;
107ccd: e9 cc 00 00 00 jmp 107d9e <mount+0x250>
* 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;
107cd2: 8b 45 d4 mov -0x2c(%ebp),%eax
107cd5: 89 43 08 mov %eax,0x8(%ebx)
mt_entry->mt_point_node.handlers = loc.handlers;
107cd8: 8b 45 dc mov -0x24(%ebp),%eax
107cdb: 89 43 10 mov %eax,0x10(%ebx)
mt_entry->mt_point_node.ops = loc.ops;
107cde: 8b 45 e0 mov -0x20(%ebp),%eax
107ce1: 89 43 14 mov %eax,0x14(%ebx)
mt_entry->mt_point_node.mt_entry = loc.mt_entry;
107ce4: 8b 55 e4 mov -0x1c(%ebp),%edx
107ce7: 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 ){
107cea: 8b 40 20 mov 0x20(%eax),%eax
107ced: 85 c0 test %eax,%eax
107cef: 75 10 jne 107d01 <mount+0x1b3> <== ALWAYS TAKEN
errno = ENOTSUP;
107cf1: e8 1e ad 00 00 call 112a14 <__errno> <== NOT EXECUTED
107cf6: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
goto cleanup_and_bail;
107cfc: e9 9d 00 00 00 jmp 107d9e <mount+0x250> <== NOT EXECUTED
}
if ( loc.ops->mount_h( mt_entry ) ) {
107d01: 83 ec 0c sub $0xc,%esp
107d04: 53 push %ebx
107d05: ff d0 call *%eax
107d07: 83 c4 10 add $0x10,%esp
107d0a: 85 c0 test %eax,%eax
107d0c: 74 20 je 107d2e <mount+0x1e0> <== ALWAYS TAKEN
107d0e: e9 8b 00 00 00 jmp 107d9e <mount+0x250> <== NOT EXECUTED
107d13: 31 f6 xor %esi,%esi
107d15: 81 3d 34 3f 12 00 38 cmpl $0x123f38,0x123f34
107d1c: 3f 12 00
107d1f: 74 0d je 107d2e <mount+0x1e0> <== ALWAYS TAKEN
} else {
/*
* Do we already have a base file system ?
*/
if ( !rtems_chain_is_empty( &mount_chain ) ) {
errno = EINVAL;
107d21: e8 ee ac 00 00 call 112a14 <__errno> <== NOT EXECUTED
107d26: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
goto cleanup_and_bail;
107d2c: eb 70 jmp 107d9e <mount+0x250> <== 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 ) ) {
107d2e: 50 push %eax
107d2f: 50 push %eax
107d30: ff 75 18 pushl 0x18(%ebp)
107d33: 53 push %ebx
107d34: ff 55 b0 call *-0x50(%ebp)
107d37: 83 c4 10 add $0x10,%esp
107d3a: 85 c0 test %eax,%eax
107d3c: 74 15 je 107d53 <mount+0x205> <== ALWAYS TAKEN
/*
* Try to undo the mount operation
*/
if ( loc.ops->unmount_h ) {
107d3e: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
107d41: 8b 40 28 mov 0x28(%eax),%eax <== NOT EXECUTED
107d44: 85 c0 test %eax,%eax <== NOT EXECUTED
107d46: 74 56 je 107d9e <mount+0x250> <== NOT EXECUTED
loc.ops->unmount_h( mt_entry );
107d48: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
107d4b: 53 push %ebx <== NOT EXECUTED
107d4c: ff d0 call *%eax <== NOT EXECUTED
107d4e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
107d51: eb 4b jmp 107d9e <mount+0x250> <== 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 );
107d53: 57 push %edi
107d54: 6a 00 push $0x0
107d56: 6a 00 push $0x0
107d58: ff 35 c0 60 12 00 pushl 0x1260c0
107d5e: e8 95 28 00 00 call 10a5f8 <rtems_semaphore_obtain>
RTEMS_INLINE_ROUTINE void rtems_chain_append(
rtems_chain_control *the_chain,
rtems_chain_node *the_node
)
{
_Chain_Append( the_chain, the_node );
107d63: 59 pop %ecx
107d64: 5e pop %esi
107d65: 53 push %ebx
107d66: 68 34 3f 12 00 push $0x123f34
107d6b: e8 c4 30 00 00 call 10ae34 <_Chain_Append>
}
static inline void rtems_libio_unlock( void )
{
rtems_semaphore_release( rtems_libio_semaphore );
107d70: 5a pop %edx
107d71: ff 35 c0 60 12 00 pushl 0x1260c0
107d77: e8 68 29 00 00 call 10a6e4 <rtems_semaphore_release>
*/
rtems_libio_lock();
rtems_chain_append( &mount_chain, &mt_entry->Node );
rtems_libio_unlock();
if ( !has_target )
107d7c: 83 c4 10 add $0x10,%esp
107d7f: 31 c0 xor %eax,%eax
107d81: 80 7d bb 00 cmpb $0x0,-0x45(%ebp)
107d85: 75 46 jne 107dcd <mount+0x27f>
rtems_filesystem_root = mt_entry->mt_fs_root;
107d87: 8b 3d 54 3f 12 00 mov 0x123f54,%edi
107d8d: 83 c7 18 add $0x18,%edi
107d90: 8d 73 1c lea 0x1c(%ebx),%esi
107d93: b9 05 00 00 00 mov $0x5,%ecx
107d98: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
107d9a: eb 31 jmp 107dcd <mount+0x27f>
107d9c: 31 f6 xor %esi,%esi
return 0;
cleanup_and_bail:
free( mt_entry );
107d9e: 83 ec 0c sub $0xc,%esp
107da1: 53 push %ebx
107da2: e8 f5 f8 ff ff call 10769c <free>
if ( loc_to_free )
107da7: 83 c4 10 add $0x10,%esp
107daa: 85 f6 test %esi,%esi
107dac: 74 1c je 107dca <mount+0x27c> <== NEVER TAKEN
rtems_filesystem_freenode( loc_to_free );
107dae: 8b 46 0c mov 0xc(%esi),%eax
107db1: 85 c0 test %eax,%eax
107db3: 74 15 je 107dca <mount+0x27c> <== NEVER TAKEN
107db5: 8b 40 1c mov 0x1c(%eax),%eax
107db8: 85 c0 test %eax,%eax
107dba: 74 0e je 107dca <mount+0x27c> <== NEVER TAKEN
107dbc: 83 ec 0c sub $0xc,%esp
107dbf: 56 push %esi
107dc0: ff d0 call *%eax
107dc2: 83 c8 ff or $0xffffffff,%eax
107dc5: 83 c4 10 add $0x10,%esp
107dc8: eb 03 jmp 107dcd <mount+0x27f>
107dca: 83 c8 ff or $0xffffffff,%eax
return -1;
}
107dcd: 8d 65 f4 lea -0xc(%ebp),%esp
107dd0: 5b pop %ebx
107dd1: 5e pop %esi
107dd2: 5f pop %edi
107dd3: c9 leave
107dd4: c3 ret
00132938 <msdos_creat_node>:
msdos_node_type_t type,
const char *name,
int name_len,
mode_t mode,
const fat_file_fd_t *link_fd)
{
132938: 55 push %ebp <== NOT EXECUTED
132939: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13293b: 57 push %edi <== NOT EXECUTED
13293c: 56 push %esi <== NOT EXECUTED
13293d: 53 push %ebx <== NOT EXECUTED
13293e: 81 ec cc 00 00 00 sub $0xcc,%esp <== NOT EXECUTED
132944: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
int rc = RC_OK;
ssize_t ret = 0;
msdos_fs_info_t *fs_info = parent_loc->mt_entry->fs_info;
132947: 8b 43 10 mov 0x10(%ebx),%eax <== NOT EXECUTED
13294a: 8b 40 34 mov 0x34(%eax),%eax <== NOT EXECUTED
13294d: 89 85 44 ff ff ff mov %eax,-0xbc(%ebp) <== NOT EXECUTED
fat_file_fd_t *parent_fat_fd = parent_loc->node_access;
132953: 8b 03 mov (%ebx),%eax <== NOT EXECUTED
132955: 89 85 40 ff ff ff mov %eax,-0xc0(%ebp) <== NOT EXECUTED
fat_file_fd_t *fat_fd = NULL;
13295b: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp) <== NOT EXECUTED
time_t time_ret = 0;
uint16_t time_val = 0;
132962: 66 c7 45 e6 00 00 movw $0x0,-0x1a(%ebp) <== NOT EXECUTED
uint16_t date = 0;
132968: 66 c7 45 e4 00 00 movw $0x0,-0x1c(%ebp) <== NOT EXECUTED
static inline void
fat_dir_pos_init(
fat_dir_pos_t *dir_pos
)
{
dir_pos->sname.cln = 0;
13296e: c7 45 d0 00 00 00 00 movl $0x0,-0x30(%ebp) <== NOT EXECUTED
dir_pos->sname.ofs = 0;
132975: c7 45 d4 00 00 00 00 movl $0x0,-0x2c(%ebp) <== NOT EXECUTED
dir_pos->lname.cln = FAT_FILE_SHORT_NAME;
13297c: c7 45 d8 ff ff ff ff movl $0xffffffff,-0x28(%ebp) <== NOT EXECUTED
dir_pos->lname.ofs = FAT_FILE_SHORT_NAME;
132983: c7 45 dc ff ff ff ff movl $0xffffffff,-0x24(%ebp) <== NOT EXECUTED
uint32_t sec = 0;
uint32_t byte = 0;
fat_dir_pos_init(&dir_pos);
memset(short_node, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
13298a: 8d 75 b0 lea -0x50(%ebp),%esi <== NOT EXECUTED
13298d: 31 c0 xor %eax,%eax <== NOT EXECUTED
13298f: b9 08 00 00 00 mov $0x8,%ecx <== NOT EXECUTED
132994: 89 f7 mov %esi,%edi <== NOT EXECUTED
132996: f3 ab rep stos %eax,%es:(%edi) <== NOT EXECUTED
memset(dot_dotdot, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE * 2);
132998: 8d 95 50 ff ff ff lea -0xb0(%ebp),%edx <== NOT EXECUTED
13299e: b1 10 mov $0x10,%cl <== NOT EXECUTED
1329a0: 89 d7 mov %edx,%edi <== NOT EXECUTED
1329a2: f3 ab rep stos %eax,%es:(%edi) <== NOT EXECUTED
name_type = msdos_long_to_short (name, name_len,
1329a4: 6a 0b push $0xb <== NOT EXECUTED
1329a6: 56 push %esi <== NOT EXECUTED
1329a7: ff 75 14 pushl 0x14(%ebp) <== NOT EXECUTED
1329aa: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
1329ad: e8 14 1b 00 00 call 1344c6 <msdos_long_to_short> <== NOT EXECUTED
1329b2: 89 85 3c ff ff ff mov %eax,-0xc4(%ebp) <== NOT EXECUTED
MSDOS_DIR_NAME(short_node),
MSDOS_NAME_MAX);
/* fill reserved field */
*MSDOS_DIR_NT_RES(short_node) = MSDOS_RES_NT_VALUE;
1329b8: c6 45 bc 00 movb $0x0,-0x44(%ebp) <== NOT EXECUTED
/* set up last write date and time */
time_ret = time(NULL);
1329bc: c7 04 24 00 00 00 00 movl $0x0,(%esp) <== NOT EXECUTED
1329c3: e8 28 63 01 00 call 148cf0 <time> <== NOT EXECUTED
if ( time_ret == -1 )
1329c8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1329cb: 83 f8 ff cmp $0xffffffff,%eax <== NOT EXECUTED
1329ce: 0f 84 85 02 00 00 je 132c59 <msdos_creat_node+0x321><== NOT EXECUTED
return -1;
msdos_date_unix2dos(time_ret, &date, &time_val);
1329d4: 51 push %ecx <== NOT EXECUTED
1329d5: 8d 55 e6 lea -0x1a(%ebp),%edx <== NOT EXECUTED
1329d8: 52 push %edx <== NOT EXECUTED
1329d9: 8d 55 e4 lea -0x1c(%ebp),%edx <== NOT EXECUTED
1329dc: 52 push %edx <== NOT EXECUTED
1329dd: 50 push %eax <== NOT EXECUTED
1329de: e8 b9 9d 00 00 call 13c79c <msdos_date_unix2dos> <== NOT EXECUTED
*MSDOS_DIR_WRITE_TIME(short_node) = CT_LE_W(time_val);
1329e3: 66 8b 45 e6 mov -0x1a(%ebp),%ax <== NOT EXECUTED
1329e7: 66 89 45 c6 mov %ax,-0x3a(%ebp) <== NOT EXECUTED
*MSDOS_DIR_WRITE_DATE(short_node) = CT_LE_W(date);
1329eb: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
1329ee: 66 89 45 c8 mov %ax,-0x38(%ebp) <== NOT EXECUTED
/* initialize directory/file size */
*MSDOS_DIR_FILE_SIZE(short_node) = MSDOS_INIT_DIR_SIZE;
1329f2: c7 45 cc 00 00 00 00 movl $0x0,-0x34(%ebp) <== NOT EXECUTED
if (type == MSDOS_DIRECTORY) {
1329f9: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1329fc: 83 7d 0c 01 cmpl $0x1,0xc(%ebp) <== NOT EXECUTED
132a00: 75 0b jne 132a0d <msdos_creat_node+0xd5> <== NOT EXECUTED
*MSDOS_DIR_ATTR(short_node) |= MSDOS_ATTR_DIRECTORY;
132a02: 8a 45 bb mov -0x45(%ebp),%al <== NOT EXECUTED
132a05: 83 c8 10 or $0x10,%eax <== NOT EXECUTED
132a08: e9 b2 00 00 00 jmp 132abf <msdos_creat_node+0x187><== NOT EXECUTED
}
else if (type == MSDOS_HARD_LINK) {
132a0d: 83 7d 0c 03 cmpl $0x3,0xc(%ebp) <== NOT EXECUTED
132a11: 0f 85 a2 00 00 00 jne 132ab9 <msdos_creat_node+0x181><== NOT EXECUTED
* node to the newly created
*/
/*
* read the original directory entry
*/
sec = fat_cluster_num_to_sector_num(parent_loc->mt_entry,
132a17: 8b 55 1c mov 0x1c(%ebp),%edx <== NOT EXECUTED
132a1a: 8b 42 20 mov 0x20(%edx),%eax <== NOT EXECUTED
132a1d: 8b 73 10 mov 0x10(%ebx),%esi <== NOT EXECUTED
fat_cluster_num_to_sector_num(
rtems_filesystem_mount_table_entry_t *mt_entry,
uint32_t cln
)
{
register fat_fs_info_t *fs_info = mt_entry->fs_info;
132a20: 8b 56 34 mov 0x34(%esi),%edx <== NOT EXECUTED
if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) )
132a23: 85 c0 test %eax,%eax <== NOT EXECUTED
132a25: 75 0b jne 132a32 <msdos_creat_node+0xfa> <== NOT EXECUTED
132a27: f6 42 0a 03 testb $0x3,0xa(%edx) <== NOT EXECUTED
132a2b: 74 05 je 132a32 <msdos_creat_node+0xfa> <== NOT EXECUTED
return fs_info->vol.rdir_loc;
132a2d: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED
132a30: eb 0c jmp 132a3e <msdos_creat_node+0x106><== NOT EXECUTED
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
132a32: 83 e8 02 sub $0x2,%eax <== NOT EXECUTED
132a35: 0f b6 4a 05 movzbl 0x5(%edx),%ecx <== NOT EXECUTED
132a39: d3 e0 shl %cl,%eax <== NOT EXECUTED
132a3b: 03 42 30 add 0x30(%edx),%eax <== NOT EXECUTED
link_fd->dir_pos.sname.cln);
sec += (link_fd->dir_pos.sname.ofs >> fs_info->fat.vol.sec_log2);
132a3e: 8b 4d 1c mov 0x1c(%ebp),%ecx <== NOT EXECUTED
132a41: 8b 51 24 mov 0x24(%ecx),%edx <== NOT EXECUTED
byte = (link_fd->dir_pos.sname.ofs & (fs_info->fat.vol.bps - 1));
ret = _fat_block_read(parent_loc->mt_entry,
132a44: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
132a47: 8d 4d 90 lea -0x70(%ebp),%ecx <== NOT EXECUTED
132a4a: 51 push %ecx <== NOT EXECUTED
132a4b: 6a 20 push $0x20 <== NOT EXECUTED
132a4d: 8b 8d 44 ff ff ff mov -0xbc(%ebp),%ecx <== NOT EXECUTED
132a53: 0f b7 39 movzwl (%ecx),%edi <== NOT EXECUTED
132a56: 8d 4f ff lea -0x1(%edi),%ecx <== NOT EXECUTED
132a59: 21 d1 and %edx,%ecx <== NOT EXECUTED
132a5b: 51 push %ecx <== NOT EXECUTED
132a5c: 8b bd 44 ff ff ff mov -0xbc(%ebp),%edi <== NOT EXECUTED
132a62: 0f b6 4f 02 movzbl 0x2(%edi),%ecx <== NOT EXECUTED
132a66: d3 ea shr %cl,%edx <== NOT EXECUTED
132a68: 8d 14 10 lea (%eax,%edx,1),%edx <== NOT EXECUTED
132a6b: 52 push %edx <== NOT EXECUTED
132a6c: 56 push %esi <== NOT EXECUTED
132a6d: e8 f8 34 ff ff call 125f6a <_fat_block_read> <== NOT EXECUTED
sec, byte, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE,
link_node);
if (ret < 0) {
132a72: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
132a75: 85 c0 test %eax,%eax <== NOT EXECUTED
132a77: 0f 88 dc 01 00 00 js 132c59 <msdos_creat_node+0x321><== NOT EXECUTED
return -1;
}
/*
* copy various attributes
*/
*MSDOS_DIR_ATTR(short_node) =*MSDOS_DIR_ATTR(link_node);
132a7d: 8a 45 9b mov -0x65(%ebp),%al <== NOT EXECUTED
*MSDOS_DIR_CRT_TIME_TENTH(short_node)=*MSDOS_DIR_CRT_TIME_TENTH(link_node);
132a80: 8a 55 9d mov -0x63(%ebp),%dl <== NOT EXECUTED
132a83: 88 55 bd mov %dl,-0x43(%ebp) <== NOT EXECUTED
*MSDOS_DIR_CRT_TIME(short_node) =*MSDOS_DIR_CRT_TIME(link_node);
132a86: 66 8b 55 9e mov -0x62(%ebp),%dx <== NOT EXECUTED
132a8a: 66 89 55 be mov %dx,-0x42(%ebp) <== NOT EXECUTED
*MSDOS_DIR_CRT_DATE(short_node) =*MSDOS_DIR_CRT_DATE(link_node);
132a8e: 8b 55 a0 mov -0x60(%ebp),%edx <== NOT EXECUTED
132a91: 66 89 55 c0 mov %dx,-0x40(%ebp) <== NOT EXECUTED
/*
* copy/set "file size", "first cluster"
*/
*MSDOS_DIR_FILE_SIZE(short_node) =*MSDOS_DIR_FILE_SIZE(link_node);
132a95: 8b 55 ac mov -0x54(%ebp),%edx <== NOT EXECUTED
132a98: 89 55 cc mov %edx,-0x34(%ebp) <== NOT EXECUTED
*MSDOS_DIR_FIRST_CLUSTER_LOW(short_node) =
132a9b: 66 8b 55 aa mov -0x56(%ebp),%dx <== NOT EXECUTED
132a9f: 66 89 55 ca mov %dx,-0x36(%ebp) <== NOT EXECUTED
*MSDOS_DIR_FIRST_CLUSTER_LOW(link_node);
*MSDOS_DIR_FIRST_CLUSTER_HI(short_node) =
132aa3: 8b 55 a4 mov -0x5c(%ebp),%edx <== NOT EXECUTED
132aa6: 66 89 55 c4 mov %dx,-0x3c(%ebp) <== NOT EXECUTED
*MSDOS_DIR_FIRST_CLUSTER_HI(link_node);
/*
* set "archive bit" due to changes
*/
*MSDOS_DIR_ATTR(short_node) |= MSDOS_ATTR_ARCHIVE;
132aaa: 83 c8 20 or $0x20,%eax <== NOT EXECUTED
132aad: 88 45 bb mov %al,-0x45(%ebp) <== NOT EXECUTED
/*
* set "last access" date to today
*/
*MSDOS_DIR_LAST_ACCESS_DATE(short_node) = CT_LE_W(date);
132ab0: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
132ab3: 66 89 45 c2 mov %ax,-0x3e(%ebp) <== NOT EXECUTED
132ab7: eb 09 jmp 132ac2 <msdos_creat_node+0x18a><== NOT EXECUTED
}
else { /* regular file... */
*MSDOS_DIR_ATTR(short_node) |= MSDOS_ATTR_ARCHIVE;
132ab9: 8a 45 bb mov -0x45(%ebp),%al <== NOT EXECUTED
132abc: 83 c8 20 or $0x20,%eax <== NOT EXECUTED
132abf: 88 46 0b mov %al,0xb(%esi) <== NOT EXECUTED
/*
* find free space in the parent directory and write new initialized
* FAT 32 Bytes Directory Entry Structure to the disk
*/
rc = msdos_get_name_node(parent_loc, true, name, name_len,
132ac2: 52 push %edx <== NOT EXECUTED
132ac3: 8d 45 b0 lea -0x50(%ebp),%eax <== NOT EXECUTED
132ac6: 89 85 34 ff ff ff mov %eax,-0xcc(%ebp) <== NOT EXECUTED
132acc: 50 push %eax <== NOT EXECUTED
132acd: 8d 7d d0 lea -0x30(%ebp),%edi <== NOT EXECUTED
132ad0: 57 push %edi <== NOT EXECUTED
132ad1: ff b5 3c ff ff ff pushl -0xc4(%ebp) <== NOT EXECUTED
132ad7: ff 75 14 pushl 0x14(%ebp) <== NOT EXECUTED
132ada: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
132add: 6a 01 push $0x1 <== NOT EXECUTED
132adf: 53 push %ebx <== NOT EXECUTED
132ae0: e8 46 1d 00 00 call 13482b <msdos_get_name_node> <== NOT EXECUTED
132ae5: 89 c6 mov %eax,%esi <== NOT EXECUTED
name_type, &dir_pos, short_node);
if ( rc != RC_OK )
132ae7: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
132aea: 85 c0 test %eax,%eax <== NOT EXECUTED
132aec: 0f 85 6a 01 00 00 jne 132c5c <msdos_creat_node+0x324><== NOT EXECUTED
/*
* if we create a new file we are done, if directory there are more steps
* to do
*/
if (type == MSDOS_DIRECTORY)
132af2: 83 7d 0c 01 cmpl $0x1,0xc(%ebp) <== NOT EXECUTED
132af6: 0f 85 60 01 00 00 jne 132c5c <msdos_creat_node+0x324><== NOT EXECUTED
{
/* open new directory as fat-file */
rc = fat_file_open(parent_loc->mt_entry, &dir_pos, &fat_fd);
132afc: 50 push %eax <== NOT EXECUTED
132afd: 8d 45 e0 lea -0x20(%ebp),%eax <== NOT EXECUTED
132b00: 50 push %eax <== NOT EXECUTED
132b01: 57 push %edi <== NOT EXECUTED
132b02: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED
132b05: e8 72 2b ff ff call 12567c <fat_file_open> <== NOT EXECUTED
132b0a: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc != RC_OK)
132b0c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
132b0f: 85 c0 test %eax,%eax <== NOT EXECUTED
132b11: 0f 85 2b 01 00 00 jne 132c42 <msdos_creat_node+0x30a><== NOT EXECUTED
/*
* we opened fat-file for node we just created, so initialize fat-file
* descritor
*/
fat_fd->fat_file_size = 0;
132b17: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
132b1a: c7 40 18 00 00 00 00 movl $0x0,0x18(%eax) <== NOT EXECUTED
fat_fd->fat_file_type = FAT_DIRECTORY;
132b21: c7 40 10 01 00 00 00 movl $0x1,0x10(%eax) <== NOT EXECUTED
fat_fd->size_limit = MSDOS_MAX_DIR_LENGHT;
132b28: c7 40 14 00 00 20 00 movl $0x200000,0x14(%eax) <== NOT EXECUTED
/*
* dot and dotdot entries are identical to new node except the
* names
*/
memcpy(DOT_NODE_P(dot_dotdot), short_node,
132b2f: 8d 85 50 ff ff ff lea -0xb0(%ebp),%eax <== NOT EXECUTED
132b35: b9 08 00 00 00 mov $0x8,%ecx <== NOT EXECUTED
132b3a: 89 c7 mov %eax,%edi <== NOT EXECUTED
132b3c: 8b b5 34 ff ff ff mov -0xcc(%ebp),%esi <== NOT EXECUTED
132b42: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED
MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
memcpy(DOTDOT_NODE_P(dot_dotdot), short_node,
132b44: 8d 95 70 ff ff ff lea -0x90(%ebp),%edx <== NOT EXECUTED
132b4a: b1 08 mov $0x8,%cl <== NOT EXECUTED
132b4c: 89 d7 mov %edx,%edi <== NOT EXECUTED
132b4e: 8b b5 34 ff ff ff mov -0xcc(%ebp),%esi <== NOT EXECUTED
132b54: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED
MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
memcpy(MSDOS_DIR_NAME(DOT_NODE_P(dot_dotdot)), MSDOS_DOT_NAME,
132b56: 8b 35 50 4e 16 00 mov 0x164e50,%esi <== NOT EXECUTED
132b5c: b1 0b mov $0xb,%cl <== NOT EXECUTED
132b5e: 89 c7 mov %eax,%edi <== NOT EXECUTED
132b60: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
MSDOS_NAME_MAX);
memcpy(MSDOS_DIR_NAME(DOTDOT_NODE_P(dot_dotdot)), MSDOS_DOTDOT_NAME,
132b62: 8b 35 54 4e 16 00 mov 0x164e54,%esi <== NOT EXECUTED
132b68: b1 0b mov $0xb,%cl <== NOT EXECUTED
132b6a: 89 d7 mov %edx,%edi <== NOT EXECUTED
132b6c: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
/*
* here we can ommit FAT32 condition because for all FAT types dirs
* right under root dir should contain 0 in dotdot entry but for
* FAT12/16 parent_fat_fd->cluster_num always contains such value
*/
if ((FAT_FD_OF_ROOT_DIR(parent_fat_fd)) &&
132b6e: 8b 8d 40 ff ff ff mov -0xc0(%ebp),%ecx <== NOT EXECUTED
132b74: 83 79 20 01 cmpl $0x1,0x20(%ecx) <== NOT EXECUTED
132b78: 75 20 jne 132b9a <msdos_creat_node+0x262><== NOT EXECUTED
132b7a: 83 79 24 00 cmpl $0x0,0x24(%ecx) <== NOT EXECUTED
132b7e: 75 1a jne 132b9a <msdos_creat_node+0x262><== NOT EXECUTED
(fs_info->fat.vol.type & FAT_FAT32))
132b80: 8b bd 44 ff ff ff mov -0xbc(%ebp),%edi <== NOT EXECUTED
132b86: f6 47 0a 04 testb $0x4,0xa(%edi) <== NOT EXECUTED
132b8a: 74 0e je 132b9a <msdos_creat_node+0x262><== NOT EXECUTED
{
*MSDOS_DIR_FIRST_CLUSTER_LOW(DOTDOT_NODE_P(dot_dotdot)) = 0x0000;
132b8c: 66 c7 40 3a 00 00 movw $0x0,0x3a(%eax) <== NOT EXECUTED
*MSDOS_DIR_FIRST_CLUSTER_HI(DOTDOT_NODE_P(dot_dotdot)) = 0x0000;
132b92: 66 c7 40 34 00 00 movw $0x0,0x34(%eax) <== NOT EXECUTED
/*
* here we can ommit FAT32 condition because for all FAT types dirs
* right under root dir should contain 0 in dotdot entry but for
* FAT12/16 parent_fat_fd->cluster_num always contains such value
*/
if ((FAT_FD_OF_ROOT_DIR(parent_fat_fd)) &&
132b98: eb 14 jmp 132bae <msdos_creat_node+0x276><== NOT EXECUTED
*MSDOS_DIR_FIRST_CLUSTER_LOW(DOTDOT_NODE_P(dot_dotdot)) = 0x0000;
*MSDOS_DIR_FIRST_CLUSTER_HI(DOTDOT_NODE_P(dot_dotdot)) = 0x0000;
}
else
{
*MSDOS_DIR_FIRST_CLUSTER_LOW(DOTDOT_NODE_P(dot_dotdot)) =
132b9a: 8b 95 40 ff ff ff mov -0xc0(%ebp),%edx <== NOT EXECUTED
132ba0: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED
132ba3: 66 89 45 8a mov %ax,-0x76(%ebp) <== NOT EXECUTED
CT_LE_W((uint16_t )((parent_fat_fd->cln) & 0x0000FFFF));
*MSDOS_DIR_FIRST_CLUSTER_HI(DOTDOT_NODE_P(dot_dotdot)) =
132ba7: c1 e8 10 shr $0x10,%eax <== NOT EXECUTED
132baa: 66 89 45 84 mov %ax,-0x7c(%ebp) <== NOT EXECUTED
/*
* write dot and dotdot entries to new fat-file: currently fat-file
* correspondes to a new node is zero length, so it will be extended
* by one cluster and entries will be written
*/
ret = fat_file_write(parent_loc->mt_entry, fat_fd, 0,
132bae: 8d b5 50 ff ff ff lea -0xb0(%ebp),%esi <== NOT EXECUTED
132bb4: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
132bb7: 56 push %esi <== NOT EXECUTED
132bb8: 6a 40 push $0x40 <== NOT EXECUTED
132bba: 6a 00 push $0x0 <== NOT EXECUTED
132bbc: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
132bbf: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED
132bc2: e8 52 26 ff ff call 125219 <fat_file_write> <== NOT EXECUTED
MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE * 2,
(uint8_t *)dot_dotdot);
if (ret < 0)
132bc7: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
132bca: 85 c0 test %eax,%eax <== NOT EXECUTED
132bcc: 78 61 js 132c2f <msdos_creat_node+0x2f7><== NOT EXECUTED
rc = -1;
goto error;
}
/* increment fat-file size by cluster size */
fat_fd->fat_file_size += fs_info->fat.vol.bpc;
132bce: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
132bd1: 8b 8d 44 ff ff ff mov -0xbc(%ebp),%ecx <== NOT EXECUTED
132bd7: 0f b7 51 06 movzwl 0x6(%ecx),%edx <== NOT EXECUTED
132bdb: 01 50 18 add %edx,0x18(%eax) <== NOT EXECUTED
/* set up cluster num for dot entry */
*MSDOS_DIR_FIRST_CLUSTER_LOW(DOT_NODE_P(dot_dotdot)) =
132bde: 8b 50 1c mov 0x1c(%eax),%edx <== NOT EXECUTED
132be1: 66 89 95 6a ff ff ff mov %dx,-0x96(%ebp) <== NOT EXECUTED
CT_LE_W((uint16_t )((fat_fd->cln) & 0x0000FFFF));
*MSDOS_DIR_FIRST_CLUSTER_HI(DOT_NODE_P(dot_dotdot)) =
132be8: c1 ea 10 shr $0x10,%edx <== NOT EXECUTED
132beb: 66 89 95 64 ff ff ff mov %dx,-0x9c(%ebp) <== NOT EXECUTED
CT_LE_W((uint16_t )(((fat_fd->cln) & 0xFFFF0000) >> 16));
/* rewrite dot entry */
ret = fat_file_write(parent_loc->mt_entry, fat_fd, 0,
132bf2: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
132bf5: 56 push %esi <== NOT EXECUTED
132bf6: 6a 20 push $0x20 <== NOT EXECUTED
132bf8: 6a 00 push $0x0 <== NOT EXECUTED
132bfa: 50 push %eax <== NOT EXECUTED
132bfb: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED
132bfe: e8 16 26 ff ff call 125219 <fat_file_write> <== NOT EXECUTED
MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE,
(uint8_t *)DOT_NODE_P(dot_dotdot));
if (ret < 0)
132c03: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
132c06: 85 c0 test %eax,%eax <== NOT EXECUTED
132c08: 78 25 js 132c2f <msdos_creat_node+0x2f7><== NOT EXECUTED
rc = -1;
goto error;
}
/* write first cluster num of a new directory to disk */
rc = msdos_set_first_cluster_num(parent_loc->mt_entry, fat_fd);
132c0a: 56 push %esi <== NOT EXECUTED
132c0b: 56 push %esi <== NOT EXECUTED
132c0c: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
132c0f: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED
132c12: e8 60 15 00 00 call 134177 <msdos_set_first_cluster_num><== NOT EXECUTED
132c17: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc != RC_OK)
132c19: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
132c1c: 85 c0 test %eax,%eax <== NOT EXECUTED
132c1e: 75 12 jne 132c32 <msdos_creat_node+0x2fa><== NOT EXECUTED
goto error;
fat_file_close(parent_loc->mt_entry, fat_fd);
132c20: 51 push %ecx <== NOT EXECUTED
132c21: 51 push %ecx <== NOT EXECUTED
132c22: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
132c25: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED
132c28: e8 a0 29 ff ff call 1255cd <fat_file_close> <== NOT EXECUTED
132c2d: eb 25 jmp 132c54 <msdos_creat_node+0x31c><== NOT EXECUTED
132c2f: 83 ce ff or $0xffffffff,%esi <== NOT EXECUTED
}
return RC_OK;
error:
fat_file_close(parent_loc->mt_entry, fat_fd);
132c32: 52 push %edx <== NOT EXECUTED
132c33: 52 push %edx <== NOT EXECUTED
132c34: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
132c37: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED
132c3a: e8 8e 29 ff ff call 1255cd <fat_file_close> <== NOT EXECUTED
132c3f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
err:
/* mark the used 32bytes structure on the disk as free */
msdos_set_first_char4file_name(parent_loc->mt_entry, &dir_pos, 0xE5);
132c42: 50 push %eax <== NOT EXECUTED
132c43: 68 e5 00 00 00 push $0xe5 <== NOT EXECUTED
132c48: 8d 45 d0 lea -0x30(%ebp),%eax <== NOT EXECUTED
132c4b: 50 push %eax <== NOT EXECUTED
132c4c: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED
132c4f: e8 cc 15 00 00 call 134220 <msdos_set_first_char4file_name><== NOT EXECUTED
return rc;
132c54: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
132c57: eb 03 jmp 132c5c <msdos_creat_node+0x324><== NOT EXECUTED
132c59: 83 ce ff or $0xffffffff,%esi <== NOT EXECUTED
}
132c5c: 89 f0 mov %esi,%eax <== NOT EXECUTED
132c5e: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
132c61: 5b pop %ebx <== NOT EXECUTED
132c62: 5e pop %esi <== NOT EXECUTED
132c63: 5f pop %edi <== NOT EXECUTED
132c64: c9 leave <== NOT EXECUTED
132c65: c3 ret <== NOT EXECUTED
0013c88f <msdos_date_dos2unix>:
* called from the stat(), and fstat() system calls and so probably need
* not be too efficient.
*/
unsigned int
msdos_date_dos2unix(unsigned int dd, unsigned int dt)
{
13c88f: 55 push %ebp <== NOT EXECUTED
13c890: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13c892: 57 push %edi <== NOT EXECUTED
13c893: 56 push %esi <== NOT EXECUTED
13c894: 53 push %ebx <== NOT EXECUTED
13c895: 83 ec 04 sub $0x4,%esp <== NOT EXECUTED
13c898: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
13c89b: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
+ ((dt & MSDOS_DT_HOURS_MASK) >> MSDOS_DT_HOURS_SHIFT) * 3600;
/*
* If the year, month, and day from the last conversion are the
* same then use the saved value.
*/
if (lastdosdate != dd) {
13c89e: 0f b7 05 14 9d 16 00 movzwl 0x169d14,%eax <== NOT EXECUTED
13c8a5: 39 c8 cmp %ecx,%eax <== NOT EXECUTED
13c8a7: 74 7a je 13c923 <msdos_date_dos2unix+0x94><== NOT EXECUTED
lastdosdate = dd;
13c8a9: 66 89 0d 14 9d 16 00 mov %cx,0x169d14 <== NOT EXECUTED
days = 0;
year = (dd & MSDOS_DD_YEAR_MASK) >> MSDOS_DD_YEAR_SHIFT;
13c8b0: 89 c8 mov %ecx,%eax <== NOT EXECUTED
13c8b2: 25 00 fe 00 00 and $0xfe00,%eax <== NOT EXECUTED
13c8b7: c1 e8 09 shr $0x9,%eax <== NOT EXECUTED
13c8ba: 31 d2 xor %edx,%edx <== NOT EXECUTED
13c8bc: 31 f6 xor %esi,%esi <== NOT EXECUTED
for (y = 0; y < year; y++)
13c8be: eb 14 jmp 13c8d4 <msdos_date_dos2unix+0x45><== NOT EXECUTED
days += y & 0x03 ? 365 : 366;
13c8c0: 89 f7 mov %esi,%edi <== NOT EXECUTED
13c8c2: 83 e7 03 and $0x3,%edi <== NOT EXECUTED
13c8c5: 83 ff 01 cmp $0x1,%edi <== NOT EXECUTED
13c8c8: 19 ff sbb %edi,%edi <== NOT EXECUTED
13c8ca: f7 d7 not %edi <== NOT EXECUTED
13c8cc: 8d 94 3a 6e 01 00 00 lea 0x16e(%edx,%edi,1),%edx <== NOT EXECUTED
*/
if (lastdosdate != dd) {
lastdosdate = dd;
days = 0;
year = (dd & MSDOS_DD_YEAR_MASK) >> MSDOS_DD_YEAR_SHIFT;
for (y = 0; y < year; y++)
13c8d3: 46 inc %esi <== NOT EXECUTED
13c8d4: 39 c6 cmp %eax,%esi <== NOT EXECUTED
13c8d6: 72 e8 jb 13c8c0 <msdos_date_dos2unix+0x31><== NOT EXECUTED
days += y & 0x03 ? 365 : 366;
months = year & 0x03 ? regyear : leapyear;
13c8d8: be 90 4e 16 00 mov $0x164e90,%esi <== NOT EXECUTED
13c8dd: a8 03 test $0x3,%al <== NOT EXECUTED
13c8df: 75 05 jne 13c8e6 <msdos_date_dos2unix+0x57><== NOT EXECUTED
13c8e1: be a8 4e 16 00 mov $0x164ea8,%esi <== NOT EXECUTED
/*
* Prevent going from 0 to 0xffffffff in the following
* loop.
*/
month = (dd & MSDOS_DD_MONTH_MASK) >> MSDOS_DD_MONTH_SHIFT;
13c8e6: 89 cf mov %ecx,%edi <== NOT EXECUTED
13c8e8: 81 e7 e0 01 00 00 and $0x1e0,%edi <== NOT EXECUTED
if (month == 0) {
13c8ee: c1 ef 05 shr $0x5,%edi <== NOT EXECUTED
13c8f1: 75 05 jne 13c8f8 <msdos_date_dos2unix+0x69><== NOT EXECUTED
13c8f3: bf 01 00 00 00 mov $0x1,%edi <== NOT EXECUTED
13c8f8: 31 c0 xor %eax,%eax <== NOT EXECUTED
month = 1;
}
for (m = 0; m < month - 1; m++)
13c8fa: 4f dec %edi <== NOT EXECUTED
13c8fb: 89 7d f0 mov %edi,-0x10(%ebp) <== NOT EXECUTED
13c8fe: eb 07 jmp 13c907 <msdos_date_dos2unix+0x78><== NOT EXECUTED
days += months[m];
13c900: 0f b7 3c 46 movzwl (%esi,%eax,2),%edi <== NOT EXECUTED
13c904: 01 fa add %edi,%edx <== NOT EXECUTED
*/
month = (dd & MSDOS_DD_MONTH_MASK) >> MSDOS_DD_MONTH_SHIFT;
if (month == 0) {
month = 1;
}
for (m = 0; m < month - 1; m++)
13c906: 40 inc %eax <== NOT EXECUTED
13c907: 3b 45 f0 cmp -0x10(%ebp),%eax <== NOT EXECUTED
13c90a: 72 f4 jb 13c900 <msdos_date_dos2unix+0x71><== NOT EXECUTED
days += months[m];
days += ((dd & MSDOS_DD_DAY_MASK) >> MSDOS_DD_DAY_SHIFT) - 1;
lastseconds = (days + DAYSTO1980) * SECONDSPERDAY;
13c90c: 83 e1 1f and $0x1f,%ecx <== NOT EXECUTED
13c90f: 8d 44 0a ff lea -0x1(%edx,%ecx,1),%eax <== NOT EXECUTED
13c913: 69 c0 80 51 01 00 imul $0x15180,%eax,%eax <== NOT EXECUTED
13c919: 05 00 a6 ce 12 add $0x12cea600,%eax <== NOT EXECUTED
13c91e: a3 18 9d 16 00 mov %eax,0x169d18 <== NOT EXECUTED
13c923: 89 d8 mov %ebx,%eax <== NOT EXECUTED
13c925: 83 e0 1f and $0x1f,%eax <== NOT EXECUTED
13c928: 03 05 18 9d 16 00 add 0x169d18,%eax <== NOT EXECUTED
13c92e: 89 da mov %ebx,%edx <== NOT EXECUTED
13c930: 81 e2 00 f8 00 00 and $0xf800,%edx <== NOT EXECUTED
13c936: c1 ea 0b shr $0xb,%edx <== NOT EXECUTED
13c939: 69 d2 10 0e 00 00 imul $0xe10,%edx,%edx <== NOT EXECUTED
13c93f: 01 d0 add %edx,%eax <== NOT EXECUTED
13c941: 81 e3 e0 07 00 00 and $0x7e0,%ebx <== NOT EXECUTED
13c947: c1 eb 05 shr $0x5,%ebx <== NOT EXECUTED
13c94a: 6b db 3c imul $0x3c,%ebx,%ebx <== NOT EXECUTED
13c94d: 01 d8 add %ebx,%eax <== NOT EXECUTED
}
return seconds + lastseconds;
}
13c94f: 5a pop %edx <== NOT EXECUTED
13c950: 5b pop %ebx <== NOT EXECUTED
13c951: 5e pop %esi <== NOT EXECUTED
13c952: 5f pop %edi <== NOT EXECUTED
13c953: c9 leave <== NOT EXECUTED
13c954: c3 ret <== NOT EXECUTED
0013c79c <msdos_date_unix2dos>:
* file timestamps. The passed in unix time is assumed to be in GMT.
*/
void
msdos_date_unix2dos(unsigned int t, uint16_t *ddp,
uint16_t *dtp)
{
13c79c: 55 push %ebp <== NOT EXECUTED
13c79d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13c79f: 57 push %edi <== NOT EXECUTED
13c7a0: 56 push %esi <== NOT EXECUTED
13c7a1: 53 push %ebx <== NOT EXECUTED
13c7a2: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
/*
* If the time from the last conversion is the same as now, then
* skip the computations and use the saved result.
*/
if (lasttime != t) {
13c7a5: 39 0d 08 9d 16 00 cmp %ecx,0x169d08 <== NOT EXECUTED
13c7ab: 0f 84 bf 00 00 00 je 13c870 <msdos_date_unix2dos+0xd4><== NOT EXECUTED
lasttime = t;
13c7b1: 89 0d 08 9d 16 00 mov %ecx,0x169d08 <== NOT EXECUTED
lastdtime = (((t % 60) >> 1) << MSDOS_DT_2SECONDS_SHIFT)
13c7b7: bb 3c 00 00 00 mov $0x3c,%ebx <== NOT EXECUTED
13c7bc: 89 c8 mov %ecx,%eax <== NOT EXECUTED
13c7be: 31 d2 xor %edx,%edx <== NOT EXECUTED
13c7c0: f7 f3 div %ebx <== NOT EXECUTED
13c7c2: 89 d6 mov %edx,%esi <== NOT EXECUTED
13c7c4: 31 d2 xor %edx,%edx <== NOT EXECUTED
13c7c6: f7 f3 div %ebx <== NOT EXECUTED
13c7c8: 89 d7 mov %edx,%edi <== NOT EXECUTED
13c7ca: c1 e7 05 shl $0x5,%edi <== NOT EXECUTED
13c7cd: 66 bb 10 0e mov $0xe10,%bx <== NOT EXECUTED
13c7d1: 89 c8 mov %ecx,%eax <== NOT EXECUTED
13c7d3: 31 d2 xor %edx,%edx <== NOT EXECUTED
13c7d5: f7 f3 div %ebx <== NOT EXECUTED
13c7d7: 66 bb 18 00 mov $0x18,%bx <== NOT EXECUTED
13c7db: 31 d2 xor %edx,%edx <== NOT EXECUTED
13c7dd: f7 f3 div %ebx <== NOT EXECUTED
13c7df: c1 e2 0b shl $0xb,%edx <== NOT EXECUTED
13c7e2: 01 d7 add %edx,%edi <== NOT EXECUTED
13c7e4: d1 ee shr %esi <== NOT EXECUTED
13c7e6: 8d 34 37 lea (%edi,%esi,1),%esi <== NOT EXECUTED
13c7e9: 66 89 35 12 9d 16 00 mov %si,0x169d12 <== NOT EXECUTED
/*
* If the number of days since 1970 is the same as the last
* time we did the computation then skip all this leap year
* and month stuff.
*/
days = t / (SECONDSPERDAY);
13c7f0: bb 80 51 01 00 mov $0x15180,%ebx <== NOT EXECUTED
13c7f5: 89 c8 mov %ecx,%eax <== NOT EXECUTED
13c7f7: 31 d2 xor %edx,%edx <== NOT EXECUTED
13c7f9: f7 f3 div %ebx <== NOT EXECUTED
13c7fb: 89 c1 mov %eax,%ecx <== NOT EXECUTED
if (days != lastday) {
13c7fd: 3b 05 0c 9d 16 00 cmp 0x169d0c,%eax <== NOT EXECUTED
13c803: 74 6b je 13c870 <msdos_date_unix2dos+0xd4><== NOT EXECUTED
lastday = days;
13c805: a3 0c 9d 16 00 mov %eax,0x169d0c <== NOT EXECUTED
13c80a: ba b2 07 00 00 mov $0x7b2,%edx <== NOT EXECUTED
for (year = 1970;; year++) {
inc = year & 0x03 ? 365 : 366;
13c80f: 89 d6 mov %edx,%esi <== NOT EXECUTED
13c811: 83 e6 03 and $0x3,%esi <== NOT EXECUTED
13c814: 83 fe 01 cmp $0x1,%esi <== NOT EXECUTED
13c817: 19 c0 sbb %eax,%eax <== NOT EXECUTED
13c819: f7 d0 not %eax <== NOT EXECUTED
13c81b: 05 6e 01 00 00 add $0x16e,%eax <== NOT EXECUTED
if (days < inc)
13c820: 39 c1 cmp %eax,%ecx <== NOT EXECUTED
13c822: 72 05 jb 13c829 <msdos_date_unix2dos+0x8d><== NOT EXECUTED
break;
days -= inc;
13c824: 29 c1 sub %eax,%ecx <== NOT EXECUTED
* and month stuff.
*/
days = t / (SECONDSPERDAY);
if (days != lastday) {
lastday = days;
for (year = 1970;; year++) {
13c826: 42 inc %edx <== NOT EXECUTED
inc = year & 0x03 ? 365 : 366;
if (days < inc)
break;
days -= inc;
}
13c827: eb e6 jmp 13c80f <msdos_date_unix2dos+0x73><== NOT EXECUTED
months = year & 0x03 ? regyear : leapyear;
13c829: bb 90 4e 16 00 mov $0x164e90,%ebx <== NOT EXECUTED
13c82e: 85 f6 test %esi,%esi <== NOT EXECUTED
13c830: 75 05 jne 13c837 <msdos_date_unix2dos+0x9b><== NOT EXECUTED
13c832: bb a8 4e 16 00 mov $0x164ea8,%ebx <== NOT EXECUTED
13c837: 31 c0 xor %eax,%eax <== NOT EXECUTED
for (month = 0; month < 12; month++) {
if (days < months[month])
13c839: 0f b7 34 43 movzwl (%ebx,%eax,2),%esi <== NOT EXECUTED
13c83d: 39 f1 cmp %esi,%ecx <== NOT EXECUTED
13c83f: 72 08 jb 13c849 <msdos_date_unix2dos+0xad><== NOT EXECUTED
break;
days -= months[month];
13c841: 29 f1 sub %esi,%ecx <== NOT EXECUTED
if (days < inc)
break;
days -= inc;
}
months = year & 0x03 ? regyear : leapyear;
for (month = 0; month < 12; month++) {
13c843: 40 inc %eax <== NOT EXECUTED
13c844: 83 f8 0c cmp $0xc,%eax <== NOT EXECUTED
13c847: 75 f0 jne 13c839 <msdos_date_unix2dos+0x9d><== NOT EXECUTED
if (days < months[month])
break;
days -= months[month];
}
lastddate = ((days + 1) << MSDOS_DD_DAY_SHIFT)
13c849: c1 e0 05 shl $0x5,%eax <== NOT EXECUTED
13c84c: 8d 4c 08 21 lea 0x21(%eax,%ecx,1),%ecx <== NOT EXECUTED
13c850: 66 89 0d 10 9d 16 00 mov %cx,0x169d10 <== NOT EXECUTED
* Remember dos's idea of time is relative to 1980.
* unix's is relative to 1970. If somehow we get a
* time before 1980 then don't give totally crazy
* results.
*/
if (year > 1980)
13c857: 81 fa bc 07 00 00 cmp $0x7bc,%edx <== NOT EXECUTED
13c85d: 76 11 jbe 13c870 <msdos_date_unix2dos+0xd4><== NOT EXECUTED
lastddate += (year - 1980) <<
13c85f: c1 e2 09 shl $0x9,%edx <== NOT EXECUTED
13c862: 8d 8c 0a 00 88 ff ff lea -0x7800(%edx,%ecx,1),%ecx <== NOT EXECUTED
13c869: 66 89 0d 10 9d 16 00 mov %cx,0x169d10 <== NOT EXECUTED
MSDOS_DD_YEAR_SHIFT;
}
}
*dtp = lastdtime;
13c870: 66 8b 15 12 9d 16 00 mov 0x169d12,%dx <== NOT EXECUTED
13c877: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
13c87a: 66 89 10 mov %dx,(%eax) <== NOT EXECUTED
*ddp = lastddate;
13c87d: 66 8b 15 10 9d 16 00 mov 0x169d10,%dx <== NOT EXECUTED
13c884: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
13c887: 66 89 10 mov %dx,(%eax) <== NOT EXECUTED
}
13c88a: 5b pop %ebx <== NOT EXECUTED
13c88b: 5e pop %esi <== NOT EXECUTED
13c88c: 5f pop %edi <== NOT EXECUTED
13c88d: c9 leave <== NOT EXECUTED
13c88e: c3 ret <== NOT EXECUTED
0013ca34 <msdos_dir_chmod>:
* RC_OK always
*/
int
msdos_dir_chmod(rtems_filesystem_location_info_t *pathloc,
mode_t mode)
{
13ca34: 55 push %ebp <== NOT EXECUTED
13ca35: 89 e5 mov %esp,%ebp <== NOT EXECUTED
return RC_OK;
}
13ca37: 31 c0 xor %eax,%eax <== NOT EXECUTED
13ca39: c9 leave <== NOT EXECUTED
13ca3a: c3 ret <== NOT EXECUTED
0013d1a4 <msdos_dir_close>:
* RC_OK, if directory closed successfully, or -1 if error occured (errno
* set apropriately.
*/
int
msdos_dir_close(rtems_libio_t *iop)
{
13d1a4: 55 push %ebp <== NOT EXECUTED
13d1a5: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13d1a7: 57 push %edi <== NOT EXECUTED
13d1a8: 56 push %esi <== NOT EXECUTED
13d1a9: 53 push %ebx <== NOT EXECUTED
13d1aa: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED
13d1ad: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
int rc = RC_OK;
rtems_status_code sc = RTEMS_SUCCESSFUL;
msdos_fs_info_t *fs_info = iop->pathinfo.mt_entry->fs_info;
13d1b0: 8b 43 28 mov 0x28(%ebx),%eax <== NOT EXECUTED
13d1b3: 8b 70 34 mov 0x34(%eax),%esi <== NOT EXECUTED
fat_file_fd_t *fat_fd = iop->file_info;
13d1b6: 8b 7b 38 mov 0x38(%ebx),%edi <== NOT EXECUTED
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
13d1b9: 6a 00 push $0x0 <== NOT EXECUTED
13d1bb: 6a 00 push $0x0 <== NOT EXECUTED
13d1bd: ff b6 94 00 00 00 pushl 0x94(%esi) <== NOT EXECUTED
13d1c3: e8 40 3a fd ff call 110c08 <rtems_semaphore_obtain><== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
13d1c8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13d1cb: 85 c0 test %eax,%eax <== NOT EXECUTED
13d1cd: 74 10 je 13d1df <msdos_dir_close+0x3b> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EIO );
13d1cf: e8 40 0e 00 00 call 13e014 <__errno> <== NOT EXECUTED
13d1d4: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
13d1da: 83 cb ff or $0xffffffff,%ebx <== NOT EXECUTED
13d1dd: eb 1c jmp 13d1fb <msdos_dir_close+0x57> <== NOT EXECUTED
rc = fat_file_close(iop->pathinfo.mt_entry, fat_fd);
13d1df: 50 push %eax <== NOT EXECUTED
13d1e0: 50 push %eax <== NOT EXECUTED
13d1e1: 57 push %edi <== NOT EXECUTED
13d1e2: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
13d1e5: e8 e3 83 fe ff call 1255cd <fat_file_close> <== NOT EXECUTED
13d1ea: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc != RC_OK)
13d1ec: 59 pop %ecx <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
return rc;
}
rtems_semaphore_release(fs_info->vol_sema);
13d1ed: ff b6 94 00 00 00 pushl 0x94(%esi) <== NOT EXECUTED
13d1f3: e8 fc 3a fd ff call 110cf4 <rtems_semaphore_release><== NOT EXECUTED
return RC_OK;
13d1f8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
13d1fb: 89 d8 mov %ebx,%eax <== NOT EXECUTED
13d1fd: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13d200: 5b pop %ebx <== NOT EXECUTED
13d201: 5e pop %esi <== NOT EXECUTED
13d202: 5f pop %edi <== NOT EXECUTED
13d203: c9 leave <== NOT EXECUTED
13d204: c3 ret <== NOT EXECUTED
00134027 <msdos_dir_is_empty>:
msdos_dir_is_empty(
rtems_filesystem_mount_table_entry_t *mt_entry,
fat_file_fd_t *fat_fd,
bool *ret_val
)
{
134027: 55 push %ebp <== NOT EXECUTED
134028: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13402a: 57 push %edi <== NOT EXECUTED
13402b: 56 push %esi <== NOT EXECUTED
13402c: 53 push %ebx <== NOT EXECUTED
13402d: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
ssize_t ret = 0;
msdos_fs_info_t *fs_info = mt_entry->fs_info;
134030: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
134033: 8b 70 34 mov 0x34(%eax),%esi <== NOT EXECUTED
uint32_t j = 0, i = 0;
/* dir is not empty */
*ret_val = false;
134036: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
134039: c6 00 00 movb $0x0,(%eax) <== NOT EXECUTED
13403c: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) <== NOT EXECUTED
while ((ret = fat_file_read(mt_entry, fat_fd, j * fs_info->fat.vol.bps,
134043: e9 8d 00 00 00 jmp 1340d5 <msdos_dir_is_empty+0xae><== NOT EXECUTED
fs_info->fat.vol.bps,
fs_info->cl_buf)) != FAT_EOF)
{
if (ret < MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)
134048: 83 f8 1f cmp $0x1f,%eax <== NOT EXECUTED
13404b: 7f 08 jg 134055 <msdos_dir_is_empty+0x2e><== NOT EXECUTED
13404d: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
134050: e9 b0 00 00 00 jmp 134105 <msdos_dir_is_empty+0xde><== NOT EXECUTED
return -1;
assert(ret == fs_info->fat.vol.bps);
134055: 0f b7 16 movzwl (%esi),%edx <== NOT EXECUTED
134058: 39 d0 cmp %edx,%eax <== NOT EXECUTED
13405a: 74 6c je 1340c8 <msdos_dir_is_empty+0xa1><== NOT EXECUTED
13405c: 68 8c e1 15 00 push $0x15e18c <== NOT EXECUTED
134061: 68 28 e2 15 00 push $0x15e228 <== NOT EXECUTED
134066: 68 b5 03 00 00 push $0x3b5 <== NOT EXECUTED
13406b: 68 2e e1 15 00 push $0x15e12e <== NOT EXECUTED
134070: e8 3b 88 fd ff call 10c8b0 <__assert_func> <== NOT EXECUTED
/* have to look at the DIR_NAME as "raw" 8-bit data */
for (i = 0;
i < fs_info->fat.vol.bps;
i += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)
{
char* entry = (char*) fs_info->cl_buf + i;
134075: 8b 9e 98 00 00 00 mov 0x98(%esi),%ebx <== NOT EXECUTED
13407b: 01 fb add %edi,%ebx <== NOT EXECUTED
* then consider it as empty.
*
* Just ignore long file name entries. They must have a short entry to
* be valid.
*/
if (((*MSDOS_DIR_ENTRY_TYPE(entry)) ==
13407d: 80 3b e5 cmpb $0xe5,(%ebx) <== NOT EXECUTED
134080: 74 38 je 1340ba <msdos_dir_is_empty+0x93><== NOT EXECUTED
MSDOS_THIS_DIR_ENTRY_EMPTY) ||
((*MSDOS_DIR_ATTR(entry) & MSDOS_ATTR_LFN_MASK) ==
134082: 0f b6 43 0b movzbl 0xb(%ebx),%eax <== NOT EXECUTED
134086: 83 e0 3f and $0x3f,%eax <== NOT EXECUTED
134089: 83 f8 0f cmp $0xf,%eax <== NOT EXECUTED
13408c: 74 2c je 1340ba <msdos_dir_is_empty+0x93><== NOT EXECUTED
MSDOS_ATTR_LFN) ||
(strncmp(MSDOS_DIR_NAME((entry)), MSDOS_DOT_NAME,
13408e: 51 push %ecx <== NOT EXECUTED
13408f: 6a 0b push $0xb <== NOT EXECUTED
134091: ff 35 50 4e 16 00 pushl 0x164e50 <== NOT EXECUTED
134097: 53 push %ebx <== NOT EXECUTED
134098: e8 87 fc 00 00 call 143d24 <strncmp> <== NOT EXECUTED
13409d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
* then consider it as empty.
*
* Just ignore long file name entries. They must have a short entry to
* be valid.
*/
if (((*MSDOS_DIR_ENTRY_TYPE(entry)) ==
1340a0: 85 c0 test %eax,%eax <== NOT EXECUTED
1340a2: 74 16 je 1340ba <msdos_dir_is_empty+0x93><== NOT EXECUTED
MSDOS_THIS_DIR_ENTRY_EMPTY) ||
((*MSDOS_DIR_ATTR(entry) & MSDOS_ATTR_LFN_MASK) ==
MSDOS_ATTR_LFN) ||
(strncmp(MSDOS_DIR_NAME((entry)), MSDOS_DOT_NAME,
MSDOS_SHORT_NAME_LEN) == 0) ||
(strncmp(MSDOS_DIR_NAME((entry)),
1340a4: 52 push %edx <== NOT EXECUTED
1340a5: 6a 0b push $0xb <== NOT EXECUTED
1340a7: ff 35 54 4e 16 00 pushl 0x164e54 <== NOT EXECUTED
1340ad: 53 push %ebx <== NOT EXECUTED
1340ae: e8 71 fc 00 00 call 143d24 <strncmp> <== NOT EXECUTED
1340b3: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
* then consider it as empty.
*
* Just ignore long file name entries. They must have a short entry to
* be valid.
*/
if (((*MSDOS_DIR_ENTRY_TYPE(entry)) ==
1340b6: 85 c0 test %eax,%eax <== NOT EXECUTED
1340b8: 75 05 jne 1340bf <msdos_dir_is_empty+0x98><== NOT EXECUTED
assert(ret == fs_info->fat.vol.bps);
/* have to look at the DIR_NAME as "raw" 8-bit data */
for (i = 0;
i < fs_info->fat.vol.bps;
i += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)
1340ba: 83 c7 20 add $0x20,%edi <== NOT EXECUTED
1340bd: eb 0e jmp 1340cd <msdos_dir_is_empty+0xa6><== NOT EXECUTED
continue;
/*
* Nothing more to look at.
*/
if ((*MSDOS_DIR_NAME(entry)) ==
1340bf: 31 c0 xor %eax,%eax <== NOT EXECUTED
1340c1: 80 3b 00 cmpb $0x0,(%ebx) <== NOT EXECUTED
1340c4: 75 3f jne 134105 <msdos_dir_is_empty+0xde><== NOT EXECUTED
1340c6: eb 35 jmp 1340fd <msdos_dir_is_empty+0xd6><== NOT EXECUTED
MSDOS_THIS_DIR_ENTRY_AND_REST_EMPTY)
{
*ret_val = true;
return RC_OK;
1340c8: 31 ff xor %edi,%edi <== NOT EXECUTED
return -1;
assert(ret == fs_info->fat.vol.bps);
/* have to look at the DIR_NAME as "raw" 8-bit data */
for (i = 0;
1340ca: 89 45 e0 mov %eax,-0x20(%ebp) <== NOT EXECUTED
1340cd: 3b 7d e0 cmp -0x20(%ebp),%edi <== NOT EXECUTED
1340d0: 72 a3 jb 134075 <msdos_dir_is_empty+0x4e><== NOT EXECUTED
/*
* Short file name entries mean not empty.
*/
return RC_OK;
}
j++;
1340d2: ff 45 e4 incl -0x1c(%ebp) <== NOT EXECUTED
uint32_t j = 0, i = 0;
/* dir is not empty */
*ret_val = false;
while ((ret = fat_file_read(mt_entry, fat_fd, j * fs_info->fat.vol.bps,
1340d5: 0f b7 06 movzwl (%esi),%eax <== NOT EXECUTED
1340d8: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1340db: ff b6 98 00 00 00 pushl 0x98(%esi) <== NOT EXECUTED
1340e1: 50 push %eax <== NOT EXECUTED
1340e2: 0f af 45 e4 imul -0x1c(%ebp),%eax <== NOT EXECUTED
1340e6: 50 push %eax <== NOT EXECUTED
1340e7: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
1340ea: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
1340ed: e8 29 13 ff ff call 12541b <fat_file_read> <== NOT EXECUTED
1340f2: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
1340f5: 85 c0 test %eax,%eax <== NOT EXECUTED
1340f7: 0f 85 4b ff ff ff jne 134048 <msdos_dir_is_empty+0x21><== NOT EXECUTED
*/
return RC_OK;
}
j++;
}
*ret_val = true;
1340fd: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
134100: c6 00 01 movb $0x1,(%eax) <== NOT EXECUTED
134103: 31 c0 xor %eax,%eax <== NOT EXECUTED
return RC_OK;
}
134105: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
134108: 5b pop %ebx <== NOT EXECUTED
134109: 5e pop %esi <== NOT EXECUTED
13410a: 5f pop %edi <== NOT EXECUTED
13410b: c9 leave <== NOT EXECUTED
13410c: c3 ret <== NOT EXECUTED
0013ca3b <msdos_dir_lseek>:
* RC_OK on success, or -1 if error occured (errno
* set apropriately).
*/
rtems_off64_t
msdos_dir_lseek(rtems_libio_t *iop, rtems_off64_t offset, int whence)
{
13ca3b: 55 push %ebp <== NOT EXECUTED
13ca3c: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13ca3e: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
switch (whence)
13ca41: 31 c0 xor %eax,%eax <== NOT EXECUTED
13ca43: 31 d2 xor %edx,%edx <== NOT EXECUTED
13ca45: 83 7d 14 01 cmpl $0x1,0x14(%ebp) <== NOT EXECUTED
13ca49: 76 10 jbe 13ca5b <msdos_dir_lseek+0x20> <== NOT EXECUTED
* Movement past the end of the directory via lseek is not a
* permitted operation
*/
case SEEK_END:
default:
rtems_set_errno_and_return_minus_one( EINVAL );
13ca4b: e8 c4 15 00 00 call 13e014 <__errno> <== NOT EXECUTED
13ca50: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
13ca56: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
13ca59: 89 c2 mov %eax,%edx <== NOT EXECUTED
break;
}
return RC_OK;
}
13ca5b: c9 leave <== NOT EXECUTED
13ca5c: c3 ret <== NOT EXECUTED
0013d205 <msdos_dir_open>:
* set apropriately)
*/
int
msdos_dir_open(rtems_libio_t *iop, const char *pathname, uint32_t flag,
uint32_t mode)
{
13d205: 55 push %ebp <== NOT EXECUTED
13d206: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13d208: 57 push %edi <== NOT EXECUTED
13d209: 56 push %esi <== NOT EXECUTED
13d20a: 53 push %ebx <== NOT EXECUTED
13d20b: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED
13d20e: 8b 7d 08 mov 0x8(%ebp),%edi <== NOT EXECUTED
int rc = RC_OK;
rtems_status_code sc = RTEMS_SUCCESSFUL;
msdos_fs_info_t *fs_info = iop->pathinfo.mt_entry->fs_info;
13d211: 8b 47 28 mov 0x28(%edi),%eax <== NOT EXECUTED
13d214: 8b 70 34 mov 0x34(%eax),%esi <== NOT EXECUTED
fat_file_fd_t *fat_fd = iop->file_info;
13d217: 8b 5f 38 mov 0x38(%edi),%ebx <== NOT EXECUTED
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
13d21a: 6a 00 push $0x0 <== NOT EXECUTED
13d21c: 6a 00 push $0x0 <== NOT EXECUTED
13d21e: ff b6 94 00 00 00 pushl 0x94(%esi) <== NOT EXECUTED
13d224: e8 df 39 fd ff call 110c08 <rtems_semaphore_obtain><== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
13d229: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13d22c: 85 c0 test %eax,%eax <== NOT EXECUTED
13d22e: 74 10 je 13d240 <msdos_dir_open+0x3b> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EIO );
13d230: e8 df 0d 00 00 call 13e014 <__errno> <== NOT EXECUTED
13d235: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
13d23b: 83 cb ff or $0xffffffff,%ebx <== NOT EXECUTED
13d23e: eb 31 jmp 13d271 <msdos_dir_open+0x6c> <== NOT EXECUTED
rc = fat_file_reopen(fat_fd);
13d240: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13d243: 53 push %ebx <== NOT EXECUTED
13d244: e8 83 7a fe ff call 124ccc <fat_file_reopen> <== NOT EXECUTED
13d249: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc != RC_OK)
13d24b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13d24e: 85 c0 test %eax,%eax <== NOT EXECUTED
13d250: 75 0e jne 13d260 <msdos_dir_open+0x5b> <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
return rc;
}
iop->offset = 0;
13d252: c7 47 0c 00 00 00 00 movl $0x0,0xc(%edi) <== NOT EXECUTED
13d259: c7 47 10 00 00 00 00 movl $0x0,0x10(%edi) <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
13d260: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13d263: ff b6 94 00 00 00 pushl 0x94(%esi) <== NOT EXECUTED
13d269: e8 86 3a fd ff call 110cf4 <rtems_semaphore_release><== NOT EXECUTED
return RC_OK;
13d26e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
13d271: 89 d8 mov %ebx,%eax <== NOT EXECUTED
13d273: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13d276: 5b pop %ebx <== NOT EXECUTED
13d277: 5e pop %esi <== NOT EXECUTED
13d278: 5f pop %edi <== NOT EXECUTED
13d279: c9 leave <== NOT EXECUTED
13d27a: c3 ret <== NOT EXECUTED
0013cc51 <msdos_dir_read>:
* the number of bytes read on success, or -1 if error occured (errno
* set apropriately).
*/
ssize_t
msdos_dir_read(rtems_libio_t *iop, void *buffer, size_t count)
{
13cc51: 55 push %ebp <== NOT EXECUTED
13cc52: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13cc54: 57 push %edi <== NOT EXECUTED
13cc55: 56 push %esi <== NOT EXECUTED
13cc56: 53 push %ebx <== NOT EXECUTED
13cc57: 81 ec 8c 01 00 00 sub $0x18c,%esp <== NOT EXECUTED
int rc = RC_OK;
rtems_status_code sc = RTEMS_SUCCESSFUL;
msdos_fs_info_t *fs_info = iop->pathinfo.mt_entry->fs_info;
13cc5d: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
13cc60: 8b 42 28 mov 0x28(%edx),%eax <== NOT EXECUTED
13cc63: 8b 58 34 mov 0x34(%eax),%ebx <== NOT EXECUTED
fat_file_fd_t *fat_fd = iop->file_info;
13cc66: 8b 4a 38 mov 0x38(%edx),%ecx <== NOT EXECUTED
13cc69: 89 8d 9c fe ff ff mov %ecx,-0x164(%ebp) <== NOT EXECUTED
/*
* cast start and count - protect against using sizes that are not exact
* multiples of the -dirent- size. These could result in unexpected
* results
*/
start = iop->offset / sizeof(struct dirent);
13cc6f: 8b 72 0c mov 0xc(%edx),%esi <== NOT EXECUTED
13cc72: 8b 7a 10 mov 0x10(%edx),%edi <== NOT EXECUTED
* optimization: we know that root directory for FAT12/16 volumes is
* sequential set of sectors and any cluster is sequential set of sectors
* too, so read such set of sectors is quick operation for low-level IO
* layer.
*/
bts2rd = (FAT_FD_OF_ROOT_DIR(fat_fd) &&
13cc75: 83 79 20 01 cmpl $0x1,0x20(%ecx) <== NOT EXECUTED
13cc79: 75 17 jne 13cc92 <msdos_dir_read+0x41> <== NOT EXECUTED
13cc7b: 83 79 24 00 cmpl $0x0,0x24(%ecx) <== NOT EXECUTED
13cc7f: 75 11 jne 13cc92 <msdos_dir_read+0x41> <== NOT EXECUTED
(fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16))) ?
13cc81: f6 43 0a 03 testb $0x3,0xa(%ebx) <== NOT EXECUTED
13cc85: 74 0b je 13cc92 <msdos_dir_read+0x41> <== NOT EXECUTED
* optimization: we know that root directory for FAT12/16 volumes is
* sequential set of sectors and any cluster is sequential set of sectors
* too, so read such set of sectors is quick operation for low-level IO
* layer.
*/
bts2rd = (FAT_FD_OF_ROOT_DIR(fat_fd) &&
13cc87: 8b 51 18 mov 0x18(%ecx),%edx <== NOT EXECUTED
13cc8a: 89 95 8c fe ff ff mov %edx,-0x174(%ebp) <== NOT EXECUTED
13cc90: eb 0a jmp 13cc9c <msdos_dir_read+0x4b> <== NOT EXECUTED
13cc92: 0f b7 4b 06 movzwl 0x6(%ebx),%ecx <== NOT EXECUTED
13cc96: 89 8d 8c fe ff ff mov %ecx,-0x174(%ebp) <== NOT EXECUTED
(fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16))) ?
fat_fd->fat_file_size :
fs_info->fat.vol.bpc;
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
13cc9c: 8b 83 94 00 00 00 mov 0x94(%ebx),%eax <== NOT EXECUTED
uint32_t start = 0;
ssize_t ret = 0;
uint32_t cmpltd = 0;
uint32_t j = 0, i = 0;
uint32_t bts2rd = 0;
uint32_t cur_cln = 0;
13cca2: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp) <== NOT EXECUTED
{
int rc = RC_OK;
rtems_status_code sc = RTEMS_SUCCESSFUL;
msdos_fs_info_t *fs_info = iop->pathinfo.mt_entry->fs_info;
fat_file_fd_t *fat_fd = iop->file_info;
fat_file_fd_t *tmp_fat_fd = NULL;
13cca9: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) <== NOT EXECUTED
bts2rd = (FAT_FD_OF_ROOT_DIR(fat_fd) &&
(fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16))) ?
fat_fd->fat_file_size :
fs_info->fat.vol.bpc;
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
13ccb0: 52 push %edx <== NOT EXECUTED
13ccb1: 6a 00 push $0x0 <== NOT EXECUTED
13ccb3: 6a 00 push $0x0 <== NOT EXECUTED
13ccb5: 50 push %eax <== NOT EXECUTED
13ccb6: e8 4d 3f fd ff call 110c08 <rtems_semaphore_obtain><== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
13ccbb: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13ccbe: 85 c0 test %eax,%eax <== NOT EXECUTED
13ccc0: 75 69 jne 13cd2b <msdos_dir_read+0xda> <== NOT EXECUTED
/*
* cast start and count - protect against using sizes that are not exact
* multiples of the -dirent- size. These could result in unexpected
* results
*/
start = iop->offset / sizeof(struct dirent);
13ccc2: 6a 00 push $0x0 <== NOT EXECUTED
13ccc4: 68 10 01 00 00 push $0x110 <== NOT EXECUTED
13ccc9: 57 push %edi <== NOT EXECUTED
13ccca: 56 push %esi <== NOT EXECUTED
13cccb: e8 54 6d 01 00 call 153a24 <__divdi3> <== NOT EXECUTED
13ccd0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13ccd3: 89 85 88 fe ff ff mov %eax,-0x178(%ebp) <== NOT EXECUTED
count = (count / sizeof(struct dirent)) * sizeof(struct dirent);
13ccd9: b9 10 01 00 00 mov $0x110,%ecx <== NOT EXECUTED
13ccde: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
13cce1: 31 d2 xor %edx,%edx <== NOT EXECUTED
13cce3: f7 f1 div %ecx <== NOT EXECUTED
13cce5: 69 c0 10 01 00 00 imul $0x110,%eax,%eax <== NOT EXECUTED
13cceb: 89 85 98 fe ff ff mov %eax,-0x168(%ebp) <== NOT EXECUTED
13ccf1: c7 85 a0 fe ff ff 00 movl $0x0,-0x160(%ebp) <== NOT EXECUTED
13ccf8: 00 00 00
13ccfb: c7 85 ac fe ff ff 00 movl $0x0,-0x154(%ebp) <== NOT EXECUTED
13cd02: 00 00 00
13cd05: c6 85 93 fe ff ff 00 movb $0x0,-0x16d(%ebp) <== NOT EXECUTED
13cd0c: c7 85 b4 fe ff ff ff movl $0xffffffff,-0x14c(%ebp) <== NOT EXECUTED
13cd13: ff ff ff
13cd16: c7 85 a4 fe ff ff 00 movl $0x0,-0x15c(%ebp) <== NOT EXECUTED
13cd1d: 00 00 00
13cd20: 89 9d b0 fe ff ff mov %ebx,-0x150(%ebp) <== NOT EXECUTED
13cd26: e9 04 04 00 00 jmp 13d12f <msdos_dir_read+0x4de> <== NOT EXECUTED
fs_info->fat.vol.bpc;
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
rtems_set_errno_and_return_minus_one(EIO);
13cd2b: e8 e4 12 00 00 call 13e014 <__errno> <== NOT EXECUTED
13cd30: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
13cd36: 83 cf ff or $0xffffffff,%edi <== NOT EXECUTED
13cd39: e9 1b 04 00 00 jmp 13d159 <msdos_dir_read+0x508> <== NOT EXECUTED
* fat-file is already opened by open call, so read it
* Always read directory fat-file from the beggining because of MSDOS
* directories feature :( - we should count elements currently
* present in the directory because there may be holes :)
*/
ret = fat_file_read(iop->pathinfo.mt_entry, fat_fd, (j * bts2rd),
13cd3e: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13cd41: 8b bd b0 fe ff ff mov -0x150(%ebp),%edi <== NOT EXECUTED
13cd47: ff b7 98 00 00 00 pushl 0x98(%edi) <== NOT EXECUTED
13cd4d: ff b5 8c fe ff ff pushl -0x174(%ebp) <== NOT EXECUTED
13cd53: ff b5 a0 fe ff ff pushl -0x160(%ebp) <== NOT EXECUTED
13cd59: ff b5 9c fe ff ff pushl -0x164(%ebp) <== NOT EXECUTED
13cd5f: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
13cd62: ff 70 28 pushl 0x28(%eax) <== NOT EXECUTED
13cd65: e8 b1 86 fe ff call 12541b <fat_file_read> <== NOT EXECUTED
13cd6a: 89 85 84 fe ff ff mov %eax,-0x17c(%ebp) <== NOT EXECUTED
bts2rd, fs_info->cl_buf);
if (ret < MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)
13cd70: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
13cd73: 83 f8 1f cmp $0x1f,%eax <== NOT EXECUTED
13cd76: 7e 27 jle 13cd9f <msdos_dir_read+0x14e> <== NOT EXECUTED
13cd78: c7 85 a8 fe ff ff 00 movl $0x0,-0x158(%ebp) <== NOT EXECUTED
13cd7f: 00 00 00
else
{
tmp_dirent.d_namlen = strlen(tmp_dirent.d_name);
}
memcpy(buffer + cmpltd, &tmp_dirent, sizeof(struct dirent));
13cd82: 8d 95 c0 fe ff ff lea -0x140(%ebp),%edx <== NOT EXECUTED
13cd88: 89 95 70 fe ff ff mov %edx,-0x190(%ebp) <== NOT EXECUTED
const char *src_tmp;
/*
* find last non-blank character of base name
*/
for ((i = MSDOS_SHORT_BASE_LEN ,
13cd8e: 8d 8d d0 fe ff ff lea -0x130(%ebp),%ecx <== NOT EXECUTED
13cd94: 89 8d 74 fe ff ff mov %ecx,-0x18c(%ebp) <== NOT EXECUTED
13cd9a: e9 72 03 00 00 jmp 13d111 <msdos_dir_read+0x4c0> <== NOT EXECUTED
13cd9f: 8b 9d b0 fe ff ff mov -0x150(%ebp),%ebx <== NOT EXECUTED
*/
ret = fat_file_read(iop->pathinfo.mt_entry, fat_fd, (j * bts2rd),
bts2rd, fs_info->cl_buf);
if (ret < MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)
{
rtems_semaphore_release(fs_info->vol_sema);
13cda5: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13cda8: ff b3 94 00 00 00 pushl 0x94(%ebx) <== NOT EXECUTED
13cdae: e8 41 3f fd ff call 110cf4 <rtems_semaphore_release><== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
13cdb3: e8 5c 12 00 00 call 13e014 <__errno> <== NOT EXECUTED
13cdb8: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
13cdbe: 83 cf ff or $0xffffffff,%edi <== NOT EXECUTED
13cdc1: e9 90 03 00 00 jmp 13d156 <msdos_dir_read+0x505> <== NOT EXECUTED
}
for (i = 0; i < ret; i += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)
{
char* entry = (char*) fs_info->cl_buf + i;
13cdc6: 8b 9d a8 fe ff ff mov -0x158(%ebp),%ebx <== NOT EXECUTED
13cdcc: 8b bd b0 fe ff ff mov -0x150(%ebp),%edi <== NOT EXECUTED
13cdd2: 03 9f 98 00 00 00 add 0x98(%edi),%ebx <== NOT EXECUTED
/*
* Is this directory from here on empty ?
*/
if ((*MSDOS_DIR_ENTRY_TYPE(entry)) ==
13cdd8: 89 de mov %ebx,%esi <== NOT EXECUTED
13cdda: 8a 03 mov (%ebx),%al <== NOT EXECUTED
13cddc: 84 c0 test %al,%al <== NOT EXECUTED
13cdde: 75 07 jne 13cde7 <msdos_dir_read+0x196> <== NOT EXECUTED
13cde0: 89 fb mov %edi,%ebx <== NOT EXECUTED
13cde2: e9 5b 03 00 00 jmp 13d142 <msdos_dir_read+0x4f1> <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
return cmpltd;
}
/* Is the directory entry empty */
if ((*MSDOS_DIR_ENTRY_TYPE(entry)) == MSDOS_THIS_DIR_ENTRY_EMPTY)
13cde7: 3c e5 cmp $0xe5,%al <== NOT EXECUTED
13cde9: 0f 84 1b 03 00 00 je 13d10a <msdos_dir_read+0x4b9> <== NOT EXECUTED
continue;
/* Is the directory entry empty a volume label */
if (((*MSDOS_DIR_ATTR(entry)) & MSDOS_ATTR_VOLUME_ID) &&
13cdef: 0f b6 53 0b movzbl 0xb(%ebx),%edx <== NOT EXECUTED
13cdf3: f6 c2 08 test $0x8,%dl <== NOT EXECUTED
13cdf6: 74 0e je 13ce06 <msdos_dir_read+0x1b5> <== NOT EXECUTED
13cdf8: 89 d1 mov %edx,%ecx <== NOT EXECUTED
13cdfa: 83 e1 3f and $0x3f,%ecx <== NOT EXECUTED
13cdfd: 83 f9 0f cmp $0xf,%ecx <== NOT EXECUTED
13ce00: 0f 85 04 03 00 00 jne 13d10a <msdos_dir_read+0x4b9> <== NOT EXECUTED
/*
* Check the attribute to see if the entry is for a long file
* name.
*/
if ((*MSDOS_DIR_ATTR(entry) & MSDOS_ATTR_LFN_MASK) ==
13ce06: 83 e2 3f and $0x3f,%edx <== NOT EXECUTED
13ce09: 83 fa 0f cmp $0xf,%edx <== NOT EXECUTED
13ce0c: 0f 85 c4 00 00 00 jne 13ced6 <msdos_dir_read+0x285> <== NOT EXECUTED
int q;
/*
* Is this is the first entry of a LFN ?
*/
if (lfn_start == FAT_FILE_SHORT_NAME)
13ce12: 83 bd b4 fe ff ff ff cmpl $0xffffffff,-0x14c(%ebp) <== NOT EXECUTED
13ce19: 75 41 jne 13ce5c <msdos_dir_read+0x20b> <== NOT EXECUTED
{
/*
* The first entry must have the last long entry flag set.
*/
if ((*MSDOS_DIR_ENTRY_TYPE(entry) &
13ce1b: 0f b6 c0 movzbl %al,%eax <== NOT EXECUTED
13ce1e: a8 40 test $0x40,%al <== NOT EXECUTED
13ce20: 0f 84 e4 02 00 00 je 13d10a <msdos_dir_read+0x4b9> <== NOT EXECUTED
continue;
/*
* Remember the start location of the long file name.
*/
lfn_start =
13ce26: 8b 95 a8 fe ff ff mov -0x158(%ebp),%edx <== NOT EXECUTED
13ce2c: 03 95 a0 fe ff ff add -0x160(%ebp),%edx <== NOT EXECUTED
13ce32: c1 ea 05 shr $0x5,%edx <== NOT EXECUTED
13ce35: 89 95 b4 fe ff ff mov %edx,-0x14c(%ebp) <== NOT EXECUTED
/*
* Get the number of entries so we can count down and
* also the checksum of the short entry.
*/
lfn_entries = (*MSDOS_DIR_ENTRY_TYPE(entry) &
13ce3b: 83 e0 3f and $0x3f,%eax <== NOT EXECUTED
13ce3e: 89 85 ac fe ff ff mov %eax,-0x154(%ebp) <== NOT EXECUTED
MSDOS_LAST_LONG_ENTRY_MASK);
lfn_checksum = *MSDOS_DIR_LFN_CHECKSUM(entry);
13ce44: 8a 4b 0d mov 0xd(%ebx),%cl <== NOT EXECUTED
13ce47: 88 8d 93 fe ff ff mov %cl,-0x16d(%ebp) <== NOT EXECUTED
memset (tmp_dirent.d_name, 0, sizeof(tmp_dirent.d_name));
13ce4d: b9 40 00 00 00 mov $0x40,%ecx <== NOT EXECUTED
13ce52: 31 c0 xor %eax,%eax <== NOT EXECUTED
13ce54: 8b bd 74 fe ff ff mov -0x18c(%ebp),%edi <== NOT EXECUTED
13ce5a: f3 ab rep stos %eax,%es:(%edi) <== NOT EXECUTED
* If the entry number or the check sum do not match
* forget this series of long directory entries. These could
* be orphaned entries depending on the history of the
* disk.
*/
if ((lfn_entries != (*MSDOS_DIR_ENTRY_TYPE(entry) &
13ce5c: 0f b6 03 movzbl (%ebx),%eax <== NOT EXECUTED
13ce5f: 83 e0 3f and $0x3f,%eax <== NOT EXECUTED
13ce62: 39 85 ac fe ff ff cmp %eax,-0x154(%ebp) <== NOT EXECUTED
13ce68: 0f 85 92 02 00 00 jne 13d100 <msdos_dir_read+0x4af> <== NOT EXECUTED
MSDOS_LAST_LONG_ENTRY_MASK)) ||
(lfn_checksum != *MSDOS_DIR_LFN_CHECKSUM(entry)))
13ce6e: 8a 85 93 fe ff ff mov -0x16d(%ebp),%al <== NOT EXECUTED
13ce74: 3a 43 0d cmp 0xd(%ebx),%al <== NOT EXECUTED
13ce77: 0f 85 83 02 00 00 jne 13d100 <msdos_dir_read+0x4af> <== NOT EXECUTED
* The DOS maximum length is 255 characters without the
* trailing nul character. We need to range check the length to
* fit in the directory entry name field.
*/
lfn_entries--;
13ce7d: ff 8d ac fe ff ff decl -0x154(%ebp) <== NOT EXECUTED
p = entry + 1;
13ce83: 43 inc %ebx <== NOT EXECUTED
o = lfn_entries * MSDOS_LFN_LEN_PER_ENTRY;
13ce84: 6b 95 ac fe ff ff 0d imul $0xd,-0x154(%ebp),%edx <== NOT EXECUTED
13ce8b: 8d 8c 15 d0 fe ff ff lea -0x130(%ebp,%edx,1),%ecx <== NOT EXECUTED
13ce92: 31 c0 xor %eax,%eax <== NOT EXECUTED
13ce94: 89 d6 mov %edx,%esi <== NOT EXECUTED
for (q = 0; q < MSDOS_LFN_LEN_PER_ENTRY; q++)
{
if (o >= (sizeof(tmp_dirent.d_name) - 1))
13ce96: 81 fe fe 00 00 00 cmp $0xfe,%esi <== NOT EXECUTED
13ce9c: 0f 87 68 02 00 00 ja 13d10a <msdos_dir_read+0x4b9> <== NOT EXECUTED
break;
tmp_dirent.d_name[o++] = *p;
13cea2: 8a 13 mov (%ebx),%dl <== NOT EXECUTED
13cea4: 88 11 mov %dl,(%ecx) <== NOT EXECUTED
if (*p == '\0')
13cea6: 80 3b 00 cmpb $0x0,(%ebx) <== NOT EXECUTED
13cea9: 0f 84 5b 02 00 00 je 13d10a <msdos_dir_read+0x4b9> <== NOT EXECUTED
break;
switch (q)
13ceaf: 83 f8 04 cmp $0x4,%eax <== NOT EXECUTED
13ceb2: 74 07 je 13cebb <msdos_dir_read+0x26a> <== NOT EXECUTED
13ceb4: 83 f8 0a cmp $0xa,%eax <== NOT EXECUTED
13ceb7: 75 0c jne 13cec5 <msdos_dir_read+0x274> <== NOT EXECUTED
13ceb9: eb 05 jmp 13cec0 <msdos_dir_read+0x26f> <== NOT EXECUTED
{
case 4:
p += 5;
13cebb: 83 c3 05 add $0x5,%ebx <== NOT EXECUTED
break;
13cebe: eb 08 jmp 13cec8 <msdos_dir_read+0x277> <== NOT EXECUTED
case 10:
p += 4;
13cec0: 83 c3 04 add $0x4,%ebx <== NOT EXECUTED
break;
13cec3: eb 03 jmp 13cec8 <msdos_dir_read+0x277> <== NOT EXECUTED
default:
p += 2;
13cec5: 83 c3 02 add $0x2,%ebx <== NOT EXECUTED
lfn_entries--;
p = entry + 1;
o = lfn_entries * MSDOS_LFN_LEN_PER_ENTRY;
for (q = 0; q < MSDOS_LFN_LEN_PER_ENTRY; q++)
13cec8: 40 inc %eax <== NOT EXECUTED
13cec9: 41 inc %ecx <== NOT EXECUTED
13ceca: 83 f8 0d cmp $0xd,%eax <== NOT EXECUTED
13cecd: 0f 84 37 02 00 00 je 13d10a <msdos_dir_read+0x4b9> <== NOT EXECUTED
{
if (o >= (sizeof(tmp_dirent.d_name) - 1))
break;
tmp_dirent.d_name[o++] = *p;
13ced3: 46 inc %esi <== NOT EXECUTED
13ced4: eb c0 jmp 13ce96 <msdos_dir_read+0x245> <== NOT EXECUTED
fat_dir_pos_t dir_pos;
/*
* Skip active entries until get the entry to start from.
*/
if (start)
13ced6: 83 bd 88 fe ff ff 00 cmpl $0x0,-0x178(%ebp) <== NOT EXECUTED
13cedd: 74 0b je 13ceea <msdos_dir_read+0x299> <== NOT EXECUTED
{
lfn_start = FAT_FILE_SHORT_NAME;
start--;
13cedf: ff 8d 88 fe ff ff decl -0x178(%ebp) <== NOT EXECUTED
13cee5: e9 16 02 00 00 jmp 13d100 <msdos_dir_read+0x4af> <== NOT EXECUTED
* unfortunately there is no method to extract ino except to
* open fat-file descriptor :( ... so, open it
*/
/* get number of cluster we are working with */
rc = fat_file_ioctl(iop->pathinfo.mt_entry, fat_fd, F_CLU_NUM,
13ceea: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13ceed: 8d 4d e0 lea -0x20(%ebp),%ecx <== NOT EXECUTED
13cef0: 51 push %ecx <== NOT EXECUTED
13cef1: ff b5 a0 fe ff ff pushl -0x160(%ebp) <== NOT EXECUTED
13cef7: 6a 01 push $0x1 <== NOT EXECUTED
13cef9: ff b5 9c fe ff ff pushl -0x164(%ebp) <== NOT EXECUTED
13ceff: 8b 7d 08 mov 0x8(%ebp),%edi <== NOT EXECUTED
13cf02: ff 77 28 pushl 0x28(%edi) <== NOT EXECUTED
13cf05: e8 0c 80 fe ff call 124f16 <fat_file_ioctl> <== NOT EXECUTED
j * bts2rd, &cur_cln);
if (rc != RC_OK)
13cf0a: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
13cf0d: 85 c0 test %eax,%eax <== NOT EXECUTED
13cf0f: 0f 85 bb 01 00 00 jne 13d0d0 <msdos_dir_read+0x47f> <== NOT EXECUTED
fat_dir_pos_t *dir_pos
)
{
dir_pos->sname.cln = 0;
dir_pos->sname.ofs = 0;
dir_pos->lname.cln = FAT_FILE_SHORT_NAME;
13cf15: c7 45 d8 ff ff ff ff movl $0xffffffff,-0x28(%ebp) <== NOT EXECUTED
dir_pos->lname.ofs = FAT_FILE_SHORT_NAME;
13cf1c: c7 45 dc ff ff ff ff movl $0xffffffff,-0x24(%ebp) <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
return rc;
}
fat_dir_pos_init(&dir_pos);
dir_pos.sname.cln = cur_cln;
13cf23: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
13cf26: 89 45 d0 mov %eax,-0x30(%ebp) <== NOT EXECUTED
dir_pos.sname.ofs = i;
13cf29: 8b 85 a8 fe ff ff mov -0x158(%ebp),%eax <== NOT EXECUTED
13cf2f: 89 45 d4 mov %eax,-0x2c(%ebp) <== NOT EXECUTED
rc = fat_file_open(iop->pathinfo.mt_entry, &dir_pos, &tmp_fat_fd);
13cf32: 51 push %ecx <== NOT EXECUTED
13cf33: 8d 55 e4 lea -0x1c(%ebp),%edx <== NOT EXECUTED
13cf36: 52 push %edx <== NOT EXECUTED
13cf37: 8d 4d d0 lea -0x30(%ebp),%ecx <== NOT EXECUTED
13cf3a: 51 push %ecx <== NOT EXECUTED
13cf3b: 8b 7d 08 mov 0x8(%ebp),%edi <== NOT EXECUTED
13cf3e: ff 77 28 pushl 0x28(%edi) <== NOT EXECUTED
13cf41: e8 36 87 fe ff call 12567c <fat_file_open> <== NOT EXECUTED
if (rc != RC_OK)
13cf46: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13cf49: 85 c0 test %eax,%eax <== NOT EXECUTED
13cf4b: 0f 85 7f 01 00 00 jne 13d0d0 <msdos_dir_read+0x47f> <== NOT EXECUTED
return rc;
}
/* fill in dirent structure */
/* XXX: from what and in what d_off should be computed ?! */
tmp_dirent.d_off = start + cmpltd;
13cf51: 8b 85 a4 fe ff ff mov -0x15c(%ebp),%eax <== NOT EXECUTED
13cf57: 89 85 c4 fe ff ff mov %eax,-0x13c(%ebp) <== NOT EXECUTED
13cf5d: c7 85 c8 fe ff ff 00 movl $0x0,-0x138(%ebp) <== NOT EXECUTED
13cf64: 00 00 00
tmp_dirent.d_reclen = sizeof(struct dirent);
13cf67: 66 c7 85 cc fe ff ff movw $0x110,-0x134(%ebp) <== NOT EXECUTED
13cf6e: 10 01
tmp_dirent.d_ino = tmp_fat_fd->ino;
13cf70: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
13cf73: 8b 40 0c mov 0xc(%eax),%eax <== NOT EXECUTED
13cf76: 89 85 c0 fe ff ff mov %eax,-0x140(%ebp) <== NOT EXECUTED
/*
* If a long file name check if the correct number of
* entries have been found and if the checksum is correct.
* If not return the short file name.
*/
if (lfn_start != FAT_FILE_SHORT_NAME)
13cf7c: 83 bd b4 fe ff ff ff cmpl $0xffffffff,-0x14c(%ebp) <== NOT EXECUTED
13cf83: 74 47 je 13cfcc <msdos_dir_read+0x37b> <== NOT EXECUTED
* RETURNS:
* the number of bytes read on success, or -1 if error occured (errno
* set apropriately).
*/
ssize_t
msdos_dir_read(rtems_libio_t *iop, void *buffer, size_t count)
13cf85: 8d 4b 0a lea 0xa(%ebx),%ecx <== NOT EXECUTED
13cf88: 31 c0 xor %eax,%eax <== NOT EXECUTED
uint8_t cs = 0;
uint8_t* p = (uint8_t*) entry;
int i;
for (i = 0; i < 11; i++, p++)
cs = ((cs & 1) ? 0x80 : 0) + (cs >> 1) + *p;
13cf8a: 89 c2 mov %eax,%edx <== NOT EXECUTED
13cf8c: 83 e2 01 and $0x1,%edx <== NOT EXECUTED
13cf8f: f7 da neg %edx <== NOT EXECUTED
13cf91: 83 e2 80 and $0xffffff80,%edx <== NOT EXECUTED
13cf94: d0 e8 shr %al <== NOT EXECUTED
13cf96: 02 06 add (%esi),%al <== NOT EXECUTED
13cf98: 01 d0 add %edx,%eax <== NOT EXECUTED
{
uint8_t cs = 0;
uint8_t* p = (uint8_t*) entry;
int i;
for (i = 0; i < 11; i++, p++)
13cf9a: 39 ce cmp %ecx,%esi <== NOT EXECUTED
13cf9c: 74 03 je 13cfa1 <msdos_dir_read+0x350> <== NOT EXECUTED
13cf9e: 46 inc %esi <== NOT EXECUTED
13cf9f: eb e9 jmp 13cf8a <msdos_dir_read+0x339> <== NOT EXECUTED
cs = ((cs & 1) ? 0x80 : 0) + (cs >> 1) + *p;
if (lfn_entries || (lfn_checksum != cs))
13cfa1: 38 85 93 fe ff ff cmp %al,-0x16d(%ebp) <== NOT EXECUTED
13cfa7: 75 23 jne 13cfcc <msdos_dir_read+0x37b> <== NOT EXECUTED
13cfa9: 83 bd ac fe ff ff 00 cmpl $0x0,-0x154(%ebp) <== NOT EXECUTED
13cfb0: 75 1a jne 13cfcc <msdos_dir_read+0x37b> <== NOT EXECUTED
13cfb2: e9 ac 01 00 00 jmp 13d163 <msdos_dir_read+0x512> <== NOT EXECUTED
const char *src_tmp;
/*
* find last non-blank character of base name
*/
for ((i = MSDOS_SHORT_BASE_LEN ,
13cfb7: 4a dec %edx <== NOT EXECUTED
13cfb8: 75 17 jne 13cfd1 <msdos_dir_read+0x380> <== NOT EXECUTED
13cfba: 89 d6 mov %edx,%esi <== NOT EXECUTED
13cfbc: 31 c9 xor %ecx,%ecx <== NOT EXECUTED
13cfbe: 8d 85 d0 fe ff ff lea -0x130(%ebp),%eax <== NOT EXECUTED
13cfc4: 89 95 6c fe ff ff mov %edx,-0x194(%ebp) <== NOT EXECUTED
13cfca: eb 38 jmp 13d004 <msdos_dir_read+0x3b3> <== NOT EXECUTED
13cfcc: ba 08 00 00 00 mov $0x8,%edx <== NOT EXECUTED
13cfd1: 80 7c 13 ff 20 cmpb $0x20,-0x1(%ebx,%edx,1) <== NOT EXECUTED
13cfd6: 74 df je 13cfb7 <msdos_dir_read+0x366> <== NOT EXECUTED
13cfd8: eb e0 jmp 13cfba <msdos_dir_read+0x369> <== NOT EXECUTED
* copy base name to destination
*/
src_tmp = src;
len = i;
while (i-- > 0) {
*dst++ = tolower((unsigned char)(*src_tmp++));
13cfda: 0f b6 14 0b movzbl (%ebx,%ecx,1),%edx <== NOT EXECUTED
13cfde: 89 95 94 fe ff ff mov %edx,-0x16c(%ebp) <== NOT EXECUTED
13cfe4: 8b 15 c0 4e 16 00 mov 0x164ec0,%edx <== NOT EXECUTED
13cfea: 8b bd 94 fe ff ff mov -0x16c(%ebp),%edi <== NOT EXECUTED
13cff0: 0f be 54 3a 01 movsbl 0x1(%edx,%edi,1),%edx <== NOT EXECUTED
13cff5: 83 e2 03 and $0x3,%edx <== NOT EXECUTED
13cff8: 4a dec %edx <== NOT EXECUTED
13cff9: 75 03 jne 13cffe <msdos_dir_read+0x3ad> <== NOT EXECUTED
13cffb: 83 c7 20 add $0x20,%edi <== NOT EXECUTED
13cffe: 89 fa mov %edi,%edx <== NOT EXECUTED
13d000: 88 10 mov %dl,(%eax) <== NOT EXECUTED
13d002: 40 inc %eax <== NOT EXECUTED
13d003: 41 inc %ecx <== NOT EXECUTED
* RETURNS:
* the number of bytes read on success, or -1 if error occured (errno
* set apropriately).
*/
ssize_t
msdos_dir_read(rtems_libio_t *iop, void *buffer, size_t count)
13d004: 8b bd 6c fe ff ff mov -0x194(%ebp),%edi <== NOT EXECUTED
13d00a: 29 cf sub %ecx,%edi <== NOT EXECUTED
/*
* copy base name to destination
*/
src_tmp = src;
len = i;
while (i-- > 0) {
13d00c: 85 ff test %edi,%edi <== NOT EXECUTED
13d00e: 7f ca jg 13cfda <msdos_dir_read+0x389> <== NOT EXECUTED
13d010: 8b 95 6c fe ff ff mov -0x194(%ebp),%edx <== NOT EXECUTED
*dst++ = tolower((unsigned char)(*src_tmp++));
}
/*
* find last non-blank character of extension
*/
for ((i = MSDOS_SHORT_EXT_LEN ,
13d016: 80 7b 0a 20 cmpb $0x20,0xa(%ebx) <== NOT EXECUTED
13d01a: 74 0f je 13d02b <msdos_dir_read+0x3da> <== NOT EXECUTED
13d01c: b9 03 00 00 00 mov $0x3,%ecx <== NOT EXECUTED
13d021: be 03 00 00 00 mov $0x3,%esi <== NOT EXECUTED
13d026: e9 5e 01 00 00 jmp 13d189 <msdos_dir_read+0x538> <== NOT EXECUTED
src_tmp = src + MSDOS_SHORT_BASE_LEN+MSDOS_SHORT_EXT_LEN-1);
((i > 0) &&
(*src_tmp == ' '));
i--,src_tmp--)
13d02b: 8d 4b 09 lea 0x9(%ebx),%ecx <== NOT EXECUTED
*dst++ = tolower((unsigned char)(*src_tmp++));
}
/*
* find last non-blank character of extension
*/
for ((i = MSDOS_SHORT_EXT_LEN ,
13d02e: 80 7b 09 20 cmpb $0x20,0x9(%ebx) <== NOT EXECUTED
13d032: 74 0f je 13d043 <msdos_dir_read+0x3f2> <== NOT EXECUTED
13d034: b9 02 00 00 00 mov $0x2,%ecx <== NOT EXECUTED
13d039: be 02 00 00 00 mov $0x2,%esi <== NOT EXECUTED
13d03e: e9 46 01 00 00 jmp 13d189 <msdos_dir_read+0x538> <== NOT EXECUTED
13d043: 80 79 ff 20 cmpb $0x20,-0x1(%ecx) <== NOT EXECUTED
13d047: 74 39 je 13d082 <msdos_dir_read+0x431> <== NOT EXECUTED
13d049: e9 31 01 00 00 jmp 13d17f <msdos_dir_read+0x52e> <== NOT EXECUTED
if (i > 0) {
*dst++ = '.'; /* append dot */
len += i + 1; /* extension + dot */
src_tmp = src + MSDOS_SHORT_BASE_LEN;
while (i-- > 0) {
*dst++ = tolower((unsigned char)(*src_tmp++));
13d04e: 0f b6 74 13 08 movzbl 0x8(%ebx,%edx,1),%esi <== NOT EXECUTED
13d053: 8b 3d c0 4e 16 00 mov 0x164ec0,%edi <== NOT EXECUTED
13d059: 0f be 7c 37 01 movsbl 0x1(%edi,%esi,1),%edi <== NOT EXECUTED
13d05e: 83 e7 03 and $0x3,%edi <== NOT EXECUTED
13d061: 4f dec %edi <== NOT EXECUTED
13d062: 75 03 jne 13d067 <msdos_dir_read+0x416> <== NOT EXECUTED
13d064: 83 c6 20 add $0x20,%esi <== NOT EXECUTED
13d067: 89 f1 mov %esi,%ecx <== NOT EXECUTED
13d069: 88 08 mov %cl,(%eax) <== NOT EXECUTED
13d06b: 40 inc %eax <== NOT EXECUTED
13d06c: 42 inc %edx <== NOT EXECUTED
* RETURNS:
* the number of bytes read on success, or -1 if error occured (errno
* set apropriately).
*/
ssize_t
msdos_dir_read(rtems_libio_t *iop, void *buffer, size_t count)
13d06d: 8b bd b4 fe ff ff mov -0x14c(%ebp),%edi <== NOT EXECUTED
13d073: 8d 34 3a lea (%edx,%edi,1),%esi <== NOT EXECUTED
13d076: 8b bd 94 fe ff ff mov -0x16c(%ebp),%edi <== NOT EXECUTED
13d07c: 29 d7 sub %edx,%edi <== NOT EXECUTED
*/
if (i > 0) {
*dst++ = '.'; /* append dot */
len += i + 1; /* extension + dot */
src_tmp = src + MSDOS_SHORT_BASE_LEN;
while (i-- > 0) {
13d07e: 85 ff test %edi,%edi <== NOT EXECUTED
13d080: 7f cc jg 13d04e <msdos_dir_read+0x3fd> <== NOT EXECUTED
*dst++ = tolower((unsigned char)(*src_tmp++));
len++;
}
}
*dst = '\0'; /* terminate string */
13d082: c6 00 00 movb $0x0,(%eax) <== NOT EXECUTED
{
/*
* convert dir entry from fixed 8+3 format (without dot)
* to 0..8 + 1dot + 0..3 format
*/
tmp_dirent.d_namlen = msdos_format_dirent_with_dot(
13d085: 66 89 b5 ce fe ff ff mov %si,-0x132(%ebp) <== NOT EXECUTED
13d08c: c7 85 b4 fe ff ff ff movl $0xffffffff,-0x14c(%ebp) <== NOT EXECUTED
13d093: ff ff ff
else
{
tmp_dirent.d_namlen = strlen(tmp_dirent.d_name);
}
memcpy(buffer + cmpltd, &tmp_dirent, sizeof(struct dirent));
13d096: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
13d099: 03 85 a4 fe ff ff add -0x15c(%ebp),%eax <== NOT EXECUTED
13d09f: b9 44 00 00 00 mov $0x44,%ecx <== NOT EXECUTED
13d0a4: 89 c7 mov %eax,%edi <== NOT EXECUTED
13d0a6: 8b b5 70 fe ff ff mov -0x190(%ebp),%esi <== NOT EXECUTED
13d0ac: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED
iop->offset = iop->offset + sizeof(struct dirent);
13d0ae: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
13d0b1: 81 40 0c 10 01 00 00 addl $0x110,0xc(%eax) <== NOT EXECUTED
13d0b8: 83 50 10 00 adcl $0x0,0x10(%eax) <== NOT EXECUTED
cmpltd += (sizeof(struct dirent));
count -= (sizeof(struct dirent));
/* inode number extracted, close fat-file */
rc = fat_file_close(iop->pathinfo.mt_entry, tmp_fat_fd);
13d0bc: 52 push %edx <== NOT EXECUTED
13d0bd: 52 push %edx <== NOT EXECUTED
13d0be: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
13d0c1: ff 70 28 pushl 0x28(%eax) <== NOT EXECUTED
13d0c4: e8 04 85 fe ff call 1255cd <fat_file_close> <== NOT EXECUTED
if (rc != RC_OK)
13d0c9: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13d0cc: 85 c0 test %eax,%eax <== NOT EXECUTED
13d0ce: 74 18 je 13d0e8 <msdos_dir_read+0x497> <== NOT EXECUTED
13d0d0: 8b 9d b0 fe ff ff mov -0x150(%ebp),%ebx <== NOT EXECUTED
13d0d6: 89 c7 mov %eax,%edi <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
13d0d8: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13d0db: ff b3 94 00 00 00 pushl 0x94(%ebx) <== NOT EXECUTED
13d0e1: e8 0e 3c fd ff call 110cf4 <rtems_semaphore_release><== NOT EXECUTED
13d0e6: eb 6e jmp 13d156 <msdos_dir_read+0x505> <== NOT EXECUTED
}
memcpy(buffer + cmpltd, &tmp_dirent, sizeof(struct dirent));
iop->offset = iop->offset + sizeof(struct dirent);
cmpltd += (sizeof(struct dirent));
13d0e8: 81 85 a4 fe ff ff 10 addl $0x110,-0x15c(%ebp) <== NOT EXECUTED
13d0ef: 01 00 00
rtems_semaphore_release(fs_info->vol_sema);
return rc;
}
}
if (count <= 0)
13d0f2: 81 ad 98 fe ff ff 10 subl $0x110,-0x168(%ebp) <== NOT EXECUTED
13d0f9: 01 00 00
13d0fc: 75 0c jne 13d10a <msdos_dir_read+0x4b9> <== NOT EXECUTED
13d0fe: eb 23 jmp 13d123 <msdos_dir_read+0x4d2> <== NOT EXECUTED
13d100: c7 85 b4 fe ff ff ff movl $0xffffffff,-0x14c(%ebp) <== NOT EXECUTED
13d107: ff ff ff
{
rtems_semaphore_release(fs_info->vol_sema);
rtems_set_errno_and_return_minus_one(EIO);
}
for (i = 0; i < ret; i += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)
13d10a: 83 85 a8 fe ff ff 20 addl $0x20,-0x158(%ebp) <== NOT EXECUTED
13d111: 8b 95 84 fe ff ff mov -0x17c(%ebp),%edx <== NOT EXECUTED
13d117: 39 95 a8 fe ff ff cmp %edx,-0x158(%ebp) <== NOT EXECUTED
13d11d: 0f 82 a3 fc ff ff jb 13cdc6 <msdos_dir_read+0x175> <== NOT EXECUTED
13d123: 8b 8d 8c fe ff ff mov -0x174(%ebp),%ecx <== NOT EXECUTED
13d129: 01 8d a0 fe ff ff add %ecx,-0x160(%ebp) <== NOT EXECUTED
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
rtems_set_errno_and_return_minus_one(EIO);
while (count > 0)
13d12f: 83 bd 98 fe ff ff 00 cmpl $0x0,-0x168(%ebp) <== NOT EXECUTED
13d136: 0f 85 02 fc ff ff jne 13cd3e <msdos_dir_read+0xed> <== NOT EXECUTED
13d13c: 8b 9d b0 fe ff ff mov -0x150(%ebp),%ebx <== NOT EXECUTED
break;
}
j++;
}
rtems_semaphore_release(fs_info->vol_sema);
13d142: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13d145: ff b3 94 00 00 00 pushl 0x94(%ebx) <== NOT EXECUTED
13d14b: e8 a4 3b fd ff call 110cf4 <rtems_semaphore_release><== NOT EXECUTED
return cmpltd;
13d150: 8b bd a4 fe ff ff mov -0x15c(%ebp),%edi <== NOT EXECUTED
13d156: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
13d159: 89 f8 mov %edi,%eax <== NOT EXECUTED
13d15b: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13d15e: 5b pop %ebx <== NOT EXECUTED
13d15f: 5e pop %esi <== NOT EXECUTED
13d160: 5f pop %edi <== NOT EXECUTED
13d161: c9 leave <== NOT EXECUTED
13d162: c3 ret <== NOT EXECUTED
tmp_dirent.d_namlen = msdos_format_dirent_with_dot(
tmp_dirent.d_name, entry); /* src text */
}
else
{
tmp_dirent.d_namlen = strlen(tmp_dirent.d_name);
13d163: 31 c0 xor %eax,%eax <== NOT EXECUTED
13d165: 83 c9 ff or $0xffffffff,%ecx <== NOT EXECUTED
13d168: 8b bd 74 fe ff ff mov -0x18c(%ebp),%edi <== NOT EXECUTED
13d16e: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED
13d170: f7 d1 not %ecx <== NOT EXECUTED
13d172: 49 dec %ecx <== NOT EXECUTED
13d173: 66 89 8d ce fe ff ff mov %cx,-0x132(%ebp) <== NOT EXECUTED
13d17a: e9 17 ff ff ff jmp 13d096 <msdos_dir_read+0x445> <== NOT EXECUTED
13d17f: b9 01 00 00 00 mov $0x1,%ecx <== NOT EXECUTED
13d184: be 01 00 00 00 mov $0x1,%esi <== NOT EXECUTED
{};
/*
* extension is not empty
*/
if (i > 0) {
*dst++ = '.'; /* append dot */
13d189: c6 00 2e movb $0x2e,(%eax) <== NOT EXECUTED
13d18c: 40 inc %eax <== NOT EXECUTED
len += i + 1; /* extension + dot */
13d18d: 8d 54 16 01 lea 0x1(%esi,%edx,1),%edx <== NOT EXECUTED
13d191: 89 95 b4 fe ff ff mov %edx,-0x14c(%ebp) <== NOT EXECUTED
13d197: 31 d2 xor %edx,%edx <== NOT EXECUTED
13d199: 89 8d 94 fe ff ff mov %ecx,-0x16c(%ebp) <== NOT EXECUTED
13d19f: e9 c9 fe ff ff jmp 13d06d <msdos_dir_read+0x41c> <== NOT EXECUTED
0013cafa <msdos_dir_rmnod>:
* RC_OK on success, or -1 if error occured (errno set apropriately).
*/
int
msdos_dir_rmnod(rtems_filesystem_location_info_t *parent_pathloc,
rtems_filesystem_location_info_t *pathloc)
{
13cafa: 55 push %ebp <== NOT EXECUTED
13cafb: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13cafd: 57 push %edi <== NOT EXECUTED
13cafe: 56 push %esi <== NOT EXECUTED
13caff: 53 push %ebx <== NOT EXECUTED
13cb00: 83 ec 30 sub $0x30,%esp <== NOT EXECUTED
13cb03: 8b 7d 0c mov 0xc(%ebp),%edi <== NOT EXECUTED
int rc = RC_OK;
rtems_status_code sc = RTEMS_SUCCESSFUL;
msdos_fs_info_t *fs_info = pathloc->mt_entry->fs_info;
13cb06: 8b 47 10 mov 0x10(%edi),%eax <== NOT EXECUTED
13cb09: 8b 70 34 mov 0x34(%eax),%esi <== NOT EXECUTED
fat_file_fd_t *fat_fd = pathloc->node_access;
13cb0c: 8b 07 mov (%edi),%eax <== NOT EXECUTED
13cb0e: 89 45 d4 mov %eax,-0x2c(%ebp) <== NOT EXECUTED
bool is_empty = false;
13cb11: c6 45 e7 00 movb $0x0,-0x19(%ebp) <== NOT EXECUTED
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
13cb15: 6a 00 push $0x0 <== NOT EXECUTED
13cb17: 6a 00 push $0x0 <== NOT EXECUTED
13cb19: ff b6 94 00 00 00 pushl 0x94(%esi) <== NOT EXECUTED
13cb1f: e8 e4 40 fd ff call 110c08 <rtems_semaphore_obtain><== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
13cb24: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13cb27: 85 c0 test %eax,%eax <== NOT EXECUTED
13cb29: 74 13 je 13cb3e <msdos_dir_rmnod+0x44> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
13cb2b: e8 e4 14 00 00 call 13e014 <__errno> <== NOT EXECUTED
13cb30: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
13cb36: 83 cb ff or $0xffffffff,%ebx <== NOT EXECUTED
13cb39: e9 a8 00 00 00 jmp 13cbe6 <msdos_dir_rmnod+0xec> <== NOT EXECUTED
/*
* We deny attempts to delete open directory (if directory is current
* directory we assume it is open one)
*/
if (fat_fd->links_num > 1)
13cb3e: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED
13cb41: 83 78 08 01 cmpl $0x1,0x8(%eax) <== NOT EXECUTED
13cb45: 77 44 ja 13cb8b <msdos_dir_rmnod+0x91> <== NOT EXECUTED
}
/*
* You cannot remove a node that still has children
*/
rc = msdos_dir_is_empty(pathloc->mt_entry, fat_fd, &is_empty);
13cb47: 53 push %ebx <== NOT EXECUTED
13cb48: 8d 45 e7 lea -0x19(%ebp),%eax <== NOT EXECUTED
13cb4b: 50 push %eax <== NOT EXECUTED
13cb4c: ff 75 d4 pushl -0x2c(%ebp) <== NOT EXECUTED
13cb4f: ff 77 10 pushl 0x10(%edi) <== NOT EXECUTED
13cb52: e8 d0 74 ff ff call 134027 <msdos_dir_is_empty> <== NOT EXECUTED
13cb57: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc != RC_OK)
13cb59: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13cb5c: 85 c0 test %eax,%eax <== NOT EXECUTED
13cb5e: 75 65 jne 13cbc5 <msdos_dir_rmnod+0xcb> <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
return rc;
}
if (!is_empty)
13cb60: 80 7d e7 00 cmpb $0x0,-0x19(%ebp) <== NOT EXECUTED
13cb64: 75 1b jne 13cb81 <msdos_dir_rmnod+0x87> <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
13cb66: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13cb69: ff b6 94 00 00 00 pushl 0x94(%esi) <== NOT EXECUTED
13cb6f: e8 80 41 fd ff call 110cf4 <rtems_semaphore_release><== NOT EXECUTED
rtems_set_errno_and_return_minus_one(ENOTEMPTY);
13cb74: e8 9b 14 00 00 call 13e014 <__errno> <== NOT EXECUTED
13cb79: c7 00 5a 00 00 00 movl $0x5a,(%eax) <== NOT EXECUTED
13cb7f: eb 23 jmp 13cba4 <msdos_dir_rmnod+0xaa> <== NOT EXECUTED
}
/*
* You cannot remove the file system root node.
*/
if (pathloc->mt_entry->mt_fs_root.node_access == pathloc->node_access)
13cb81: 8b 47 10 mov 0x10(%edi),%eax <== NOT EXECUTED
13cb84: 8b 50 1c mov 0x1c(%eax),%edx <== NOT EXECUTED
13cb87: 3b 17 cmp (%edi),%edx <== NOT EXECUTED
13cb89: 75 1e jne 13cba9 <msdos_dir_rmnod+0xaf> <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
13cb8b: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13cb8e: ff b6 94 00 00 00 pushl 0x94(%esi) <== NOT EXECUTED
13cb94: e8 5b 41 fd ff call 110cf4 <rtems_semaphore_release><== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EBUSY);
13cb99: e8 76 14 00 00 call 13e014 <__errno> <== NOT EXECUTED
13cb9e: c7 00 10 00 00 00 movl $0x10,(%eax) <== NOT EXECUTED
13cba4: 83 cb ff or $0xffffffff,%ebx <== NOT EXECUTED
13cba7: eb 3a jmp 13cbe3 <msdos_dir_rmnod+0xe9> <== NOT EXECUTED
* You cannot remove a mountpoint.
* not used - mount() not implemenetd yet.
*/
/* mark file removed */
rc = msdos_set_first_char4file_name(pathloc->mt_entry, &fat_fd->dir_pos,
13cba9: 51 push %ecx <== NOT EXECUTED
13cbaa: 68 e5 00 00 00 push $0xe5 <== NOT EXECUTED
13cbaf: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED
13cbb2: 83 c2 20 add $0x20,%edx <== NOT EXECUTED
13cbb5: 52 push %edx <== NOT EXECUTED
13cbb6: 50 push %eax <== NOT EXECUTED
13cbb7: e8 64 76 ff ff call 134220 <msdos_set_first_char4file_name><== NOT EXECUTED
13cbbc: 89 c3 mov %eax,%ebx <== NOT EXECUTED
MSDOS_THIS_DIR_ENTRY_EMPTY);
if (rc != RC_OK)
13cbbe: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13cbc1: 85 c0 test %eax,%eax <== NOT EXECUTED
13cbc3: 74 05 je 13cbca <msdos_dir_rmnod+0xd0> <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
13cbc5: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13cbc8: eb 0e jmp 13cbd8 <msdos_dir_rmnod+0xde> <== NOT EXECUTED
return rc;
}
fat_file_mark_removed(pathloc->mt_entry, fat_fd);
13cbca: 52 push %edx <== NOT EXECUTED
13cbcb: 52 push %edx <== NOT EXECUTED
13cbcc: ff 75 d4 pushl -0x2c(%ebp) <== NOT EXECUTED
13cbcf: ff 77 10 pushl 0x10(%edi) <== NOT EXECUTED
13cbd2: e8 f1 82 fe ff call 124ec8 <fat_file_mark_removed> <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
13cbd7: 58 pop %eax <== NOT EXECUTED
13cbd8: ff b6 94 00 00 00 pushl 0x94(%esi) <== NOT EXECUTED
13cbde: e8 11 41 fd ff call 110cf4 <rtems_semaphore_release><== NOT EXECUTED
return rc;
13cbe3: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
13cbe6: 89 d8 mov %ebx,%eax <== NOT EXECUTED
13cbe8: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13cbeb: 5b pop %ebx <== NOT EXECUTED
13cbec: 5e pop %esi <== NOT EXECUTED
13cbed: 5f pop %edi <== NOT EXECUTED
13cbee: c9 leave <== NOT EXECUTED
13cbef: c3 ret <== NOT EXECUTED
0013ca5d <msdos_dir_stat>:
int
msdos_dir_stat(
rtems_filesystem_location_info_t *loc,
struct stat *buf
)
{
13ca5d: 55 push %ebp <== NOT EXECUTED
13ca5e: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13ca60: 57 push %edi <== NOT EXECUTED
13ca61: 56 push %esi <== NOT EXECUTED
13ca62: 53 push %ebx <== NOT EXECUTED
13ca63: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED
13ca66: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
13ca69: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
rtems_status_code sc = RTEMS_SUCCESSFUL;
msdos_fs_info_t *fs_info = loc->mt_entry->fs_info;
13ca6c: 8b 50 10 mov 0x10(%eax),%edx <== NOT EXECUTED
13ca6f: 8b 72 34 mov 0x34(%edx),%esi <== NOT EXECUTED
fat_file_fd_t *fat_fd = loc->node_access;
13ca72: 8b 38 mov (%eax),%edi <== NOT EXECUTED
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
13ca74: 6a 00 push $0x0 <== NOT EXECUTED
13ca76: 6a 00 push $0x0 <== NOT EXECUTED
13ca78: ff b6 94 00 00 00 pushl 0x94(%esi) <== NOT EXECUTED
13ca7e: e8 85 41 fd ff call 110c08 <rtems_semaphore_obtain><== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
13ca83: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13ca86: 85 c0 test %eax,%eax <== NOT EXECUTED
13ca88: 74 10 je 13ca9a <msdos_dir_stat+0x3d> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
13ca8a: e8 85 15 00 00 call 13e014 <__errno> <== NOT EXECUTED
13ca8f: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
13ca95: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
13ca98: eb 58 jmp 13caf2 <msdos_dir_stat+0x95> <== NOT EXECUTED
buf->st_dev = fs_info->fat.vol.dev;
13ca9a: 8b 46 54 mov 0x54(%esi),%eax <== NOT EXECUTED
13ca9d: 8b 56 58 mov 0x58(%esi),%edx <== NOT EXECUTED
13caa0: 89 03 mov %eax,(%ebx) <== NOT EXECUTED
13caa2: 89 53 04 mov %edx,0x4(%ebx) <== NOT EXECUTED
buf->st_ino = fat_fd->ino;
13caa5: 8b 47 0c mov 0xc(%edi),%eax <== NOT EXECUTED
13caa8: 89 43 08 mov %eax,0x8(%ebx) <== NOT EXECUTED
buf->st_mode = S_IFDIR | S_IRWXU | S_IRWXG | S_IRWXO;
13caab: c7 43 0c ff 41 00 00 movl $0x41ff,0xc(%ebx) <== NOT EXECUTED
buf->st_rdev = 0ll;
13cab2: c7 43 18 00 00 00 00 movl $0x0,0x18(%ebx) <== NOT EXECUTED
13cab9: c7 43 1c 00 00 00 00 movl $0x0,0x1c(%ebx) <== NOT EXECUTED
buf->st_size = fat_fd->fat_file_size;
13cac0: 8b 47 18 mov 0x18(%edi),%eax <== NOT EXECUTED
13cac3: 89 43 20 mov %eax,0x20(%ebx) <== NOT EXECUTED
13cac6: c7 43 24 00 00 00 00 movl $0x0,0x24(%ebx) <== NOT EXECUTED
buf->st_blocks = fat_fd->fat_file_size >> FAT_SECTOR512_BITS;
13cacd: c1 e8 09 shr $0x9,%eax <== NOT EXECUTED
13cad0: 89 43 44 mov %eax,0x44(%ebx) <== NOT EXECUTED
buf->st_blksize = fs_info->fat.vol.bps;
13cad3: 0f b7 06 movzwl (%esi),%eax <== NOT EXECUTED
13cad6: 89 43 40 mov %eax,0x40(%ebx) <== NOT EXECUTED
buf->st_mtime = fat_fd->mtime;
13cad9: 8b 47 40 mov 0x40(%edi),%eax <== NOT EXECUTED
13cadc: 89 43 30 mov %eax,0x30(%ebx) <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
13cadf: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13cae2: ff b6 94 00 00 00 pushl 0x94(%esi) <== NOT EXECUTED
13cae8: e8 07 42 fd ff call 110cf4 <rtems_semaphore_release><== NOT EXECUTED
13caed: 31 c0 xor %eax,%eax <== NOT EXECUTED
return RC_OK;
13caef: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
13caf2: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13caf5: 5b pop %ebx <== NOT EXECUTED
13caf6: 5e pop %esi <== NOT EXECUTED
13caf7: 5f pop %edi <== NOT EXECUTED
13caf8: c9 leave <== NOT EXECUTED
13caf9: c3 ret <== NOT EXECUTED
0013cbf0 <msdos_dir_sync>:
* RETURNS:
* RC_OK on success, or -1 if error occured (errno set apropriately).
*/
int
msdos_dir_sync(rtems_libio_t *iop)
{
13cbf0: 55 push %ebp <== NOT EXECUTED
13cbf1: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13cbf3: 57 push %edi <== NOT EXECUTED
13cbf4: 56 push %esi <== NOT EXECUTED
13cbf5: 53 push %ebx <== NOT EXECUTED
13cbf6: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED
13cbf9: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
int rc = RC_OK;
rtems_status_code sc = RTEMS_SUCCESSFUL;
fat_file_fd_t *fat_fd = iop->file_info;
13cbfc: 8b 7b 38 mov 0x38(%ebx),%edi <== NOT EXECUTED
msdos_fs_info_t *fs_info = iop->pathinfo.mt_entry->fs_info;
13cbff: 8b 43 28 mov 0x28(%ebx),%eax <== NOT EXECUTED
13cc02: 8b 70 34 mov 0x34(%eax),%esi <== NOT EXECUTED
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
13cc05: 6a 00 push $0x0 <== NOT EXECUTED
13cc07: 6a 00 push $0x0 <== NOT EXECUTED
13cc09: ff b6 94 00 00 00 pushl 0x94(%esi) <== NOT EXECUTED
13cc0f: e8 f4 3f fd ff call 110c08 <rtems_semaphore_obtain><== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
13cc14: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13cc17: 85 c0 test %eax,%eax <== NOT EXECUTED
13cc19: 74 10 je 13cc2b <msdos_dir_sync+0x3b> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
13cc1b: e8 f4 13 00 00 call 13e014 <__errno> <== NOT EXECUTED
13cc20: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
13cc26: 83 cb ff or $0xffffffff,%ebx <== NOT EXECUTED
13cc29: eb 1c jmp 13cc47 <msdos_dir_sync+0x57> <== NOT EXECUTED
rc = fat_file_datasync(iop->pathinfo.mt_entry, fat_fd);
13cc2b: 50 push %eax <== NOT EXECUTED
13cc2c: 50 push %eax <== NOT EXECUTED
13cc2d: 57 push %edi <== NOT EXECUTED
13cc2e: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
13cc31: e8 9e 81 fe ff call 124dd4 <fat_file_datasync> <== NOT EXECUTED
13cc36: 89 c3 mov %eax,%ebx <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
13cc38: 5f pop %edi <== NOT EXECUTED
13cc39: ff b6 94 00 00 00 pushl 0x94(%esi) <== NOT EXECUTED
13cc3f: e8 b0 40 fd ff call 110cf4 <rtems_semaphore_release><== NOT EXECUTED
return rc;
13cc44: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
13cc47: 89 d8 mov %ebx,%eax <== NOT EXECUTED
13cc49: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13cc4c: 5b pop %ebx <== NOT EXECUTED
13cc4d: 5e pop %esi <== NOT EXECUTED
13cc4e: 5f pop %edi <== NOT EXECUTED
13cc4f: c9 leave <== NOT EXECUTED
13cc50: c3 ret <== NOT EXECUTED
00132e88 <msdos_eval4make>:
msdos_eval4make(
const char *path,
rtems_filesystem_location_info_t *pathloc,
const char **name
)
{
132e88: 55 push %ebp <== NOT EXECUTED
132e89: 89 e5 mov %esp,%ebp <== NOT EXECUTED
132e8b: 57 push %edi <== NOT EXECUTED
132e8c: 56 push %esi <== NOT EXECUTED
132e8d: 53 push %ebx <== NOT EXECUTED
132e8e: 83 ec 40 sub $0x40,%esp <== NOT EXECUTED
132e91: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
int rc = RC_OK;
rtems_status_code sc = RTEMS_SUCCESSFUL;
msdos_fs_info_t *fs_info = pathloc->mt_entry->fs_info;
132e94: 8b 43 10 mov 0x10(%ebx),%eax <== NOT EXECUTED
132e97: 8b 40 34 mov 0x34(%eax),%eax <== NOT EXECUTED
132e9a: 89 45 bc mov %eax,-0x44(%ebp) <== NOT EXECUTED
int i = 0;
int token_len;
const char *token;
bool done = false;
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
132e9d: 6a 00 push $0x0 <== NOT EXECUTED
132e9f: 6a 00 push $0x0 <== NOT EXECUTED
132ea1: ff b0 94 00 00 00 pushl 0x94(%eax) <== NOT EXECUTED
132ea7: e8 5c dd fd ff call 110c08 <rtems_semaphore_obtain><== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
132eac: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
132eaf: 85 c0 test %eax,%eax <== NOT EXECUTED
132eb1: 74 13 je 132ec6 <msdos_eval4make+0x3e> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
132eb3: e8 5c b1 00 00 call 13e014 <__errno> <== NOT EXECUTED
132eb8: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
132ebe: 83 ce ff or $0xffffffff,%esi <== NOT EXECUTED
132ec1: e9 17 02 00 00 jmp 1330dd <msdos_eval4make+0x255> <== NOT EXECUTED
if (!pathloc->node_access)
132ec6: 8b 03 mov (%ebx),%eax <== NOT EXECUTED
132ec8: 85 c0 test %eax,%eax <== NOT EXECUTED
132eca: 75 13 jne 132edf <msdos_eval4make+0x57> <== NOT EXECUTED
{
errno = ENOENT;
132ecc: e8 43 b1 00 00 call 13e014 <__errno> <== NOT EXECUTED
132ed1: c7 00 02 00 00 00 movl $0x2,(%eax) <== NOT EXECUTED
132ed7: 83 ce ff or $0xffffffff,%esi <== NOT EXECUTED
rc = -1;
goto err;
132eda: e9 ea 01 00 00 jmp 1330c9 <msdos_eval4make+0x241> <== NOT EXECUTED
}
fat_fd = pathloc->node_access;
rc = fat_file_reopen(fat_fd);
132edf: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
132ee2: 50 push %eax <== NOT EXECUTED
132ee3: e8 e4 1d ff ff call 124ccc <fat_file_reopen> <== NOT EXECUTED
132ee8: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc != RC_OK)
132eea: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
132eed: 85 c0 test %eax,%eax <== NOT EXECUTED
132eef: 0f 85 d4 01 00 00 jne 1330c9 <msdos_eval4make+0x241> <== NOT EXECUTED
132ef5: c7 45 c0 00 00 00 00 movl $0x0,-0x40(%ebp) <== NOT EXECUTED
goto err;
while (!done)
{
type = msdos_get_token(&path[i], strlen(&path[i]), &token, &token_len);
132efc: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
132eff: 03 55 c0 add -0x40(%ebp),%edx <== NOT EXECUTED
132f02: 31 c0 xor %eax,%eax <== NOT EXECUTED
132f04: 83 c9 ff or $0xffffffff,%ecx <== NOT EXECUTED
132f07: 89 d7 mov %edx,%edi <== NOT EXECUTED
132f09: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED
132f0b: f7 d1 not %ecx <== NOT EXECUTED
132f0d: 49 dec %ecx <== NOT EXECUTED
132f0e: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
132f11: 50 push %eax <== NOT EXECUTED
132f12: 8d 45 e0 lea -0x20(%ebp),%eax <== NOT EXECUTED
132f15: 50 push %eax <== NOT EXECUTED
132f16: 51 push %ecx <== NOT EXECUTED
132f17: 52 push %edx <== NOT EXECUTED
132f18: e8 fc 14 00 00 call 134419 <msdos_get_token> <== NOT EXECUTED
i += token_len;
132f1d: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
132f20: 01 55 c0 add %edx,-0x40(%ebp) <== NOT EXECUTED
fat_fd = pathloc->node_access;
132f23: 8b 3b mov (%ebx),%edi <== NOT EXECUTED
switch (type)
132f25: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
132f28: 83 f8 02 cmp $0x2,%eax <== NOT EXECUTED
132f2b: 74 2d je 132f5a <msdos_eval4make+0xd2> <== NOT EXECUTED
132f2d: 77 0a ja 132f39 <msdos_eval4make+0xb1> <== NOT EXECUTED
132f2f: 85 c0 test %eax,%eax <== NOT EXECUTED
132f31: 0f 84 08 01 00 00 je 13303f <msdos_eval4make+0x1b7> <== NOT EXECUTED
132f37: eb c3 jmp 132efc <msdos_eval4make+0x74> <== NOT EXECUTED
132f39: 83 f8 03 cmp $0x3,%eax <== NOT EXECUTED
132f3c: 0f 84 d0 00 00 00 je 133012 <msdos_eval4make+0x18a> <== NOT EXECUTED
132f42: 83 f8 04 cmp $0x4,%eax <== NOT EXECUTED
132f45: 75 b5 jne 132efc <msdos_eval4make+0x74> <== NOT EXECUTED
132f47: 89 7d c4 mov %edi,-0x3c(%ebp) <== NOT EXECUTED
case MSDOS_CURRENT_DIR:
break;
case MSDOS_INVALID_TOKEN:
errno = ENAMETOOLONG;
132f4a: e8 c5 b0 00 00 call 13e014 <__errno> <== NOT EXECUTED
132f4f: c7 00 5b 00 00 00 movl $0x5b,(%eax) <== NOT EXECUTED
132f55: e9 b0 00 00 00 jmp 13300a <msdos_eval4make+0x182> <== NOT EXECUTED
{
case MSDOS_UP_DIR:
/*
* Only a directory can be decended into.
*/
if (fat_fd->fat_file_type != FAT_DIRECTORY)
132f5a: 83 7f 10 01 cmpl $0x1,0x10(%edi) <== NOT EXECUTED
132f5e: 0f 85 b4 00 00 00 jne 133018 <msdos_eval4make+0x190> <== NOT EXECUTED
/*
* Am I at the root of this mounted filesystem?
*/
if (pathloc->node_access ==
pathloc->mt_entry->mt_fs_root.node_access)
132f64: 8b 43 10 mov 0x10(%ebx),%eax <== NOT EXECUTED
}
/*
* Am I at the root of this mounted filesystem?
*/
if (pathloc->node_access ==
132f67: 3b 78 1c cmp 0x1c(%eax),%edi <== NOT EXECUTED
132f6a: 75 6d jne 132fd9 <msdos_eval4make+0x151> <== NOT EXECUTED
/*
* Am I at the root of all filesystems?
* XXX: MSDOS is not supposed to be base fs.
*/
if (pathloc->node_access ==
rtems_filesystem_root.node_access)
132f6c: 8b 15 fc 46 16 00 mov 0x1646fc,%edx <== NOT EXECUTED
132f72: 3b 7a 18 cmp 0x18(%edx),%edi <== NOT EXECUTED
132f75: 74 85 je 132efc <msdos_eval4make+0x74> <== NOT EXECUTED
132f77: 89 7d c4 mov %edi,-0x3c(%ebp) <== NOT EXECUTED
{
break; /* Throw out the .. in this case */
}
else
{
newloc = pathloc->mt_entry->mt_point_node;
132f7a: 8d 7d cc lea -0x34(%ebp),%edi <== NOT EXECUTED
132f7d: 8d 70 08 lea 0x8(%eax),%esi <== NOT EXECUTED
132f80: b9 05 00 00 00 mov $0x5,%ecx <== NOT EXECUTED
132f85: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED
*pathloc = newloc;
132f87: 8d 75 cc lea -0x34(%ebp),%esi <== NOT EXECUTED
132f8a: b1 05 mov $0x5,%cl <== NOT EXECUTED
132f8c: 89 df mov %ebx,%edi <== NOT EXECUTED
132f8e: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED
rc = fat_file_close(pathloc->mt_entry, fat_fd);
132f90: 52 push %edx <== NOT EXECUTED
132f91: 52 push %edx <== NOT EXECUTED
132f92: ff 75 c4 pushl -0x3c(%ebp) <== NOT EXECUTED
132f95: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED
132f98: e8 30 26 ff ff call 1255cd <fat_file_close> <== NOT EXECUTED
132f9d: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc != RC_OK)
132f9f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
132fa2: 85 c0 test %eax,%eax <== NOT EXECUTED
132fa4: 0f 85 1f 01 00 00 jne 1330c9 <msdos_eval4make+0x241> <== NOT EXECUTED
goto err;
rtems_semaphore_release(fs_info->vol_sema);
132faa: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
132fad: 8b 55 bc mov -0x44(%ebp),%edx <== NOT EXECUTED
132fb0: ff b2 94 00 00 00 pushl 0x94(%edx) <== NOT EXECUTED
132fb6: e8 39 dd fd ff call 110cf4 <rtems_semaphore_release><== NOT EXECUTED
return (*pathloc->ops->evalformake_h)(&path[i-token_len],
132fbb: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
132fbe: 8b 43 0c mov 0xc(%ebx),%eax <== NOT EXECUTED
132fc1: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
132fc4: 53 push %ebx <== NOT EXECUTED
132fc5: 8b 7d c0 mov -0x40(%ebp),%edi <== NOT EXECUTED
132fc8: 2b 7d e4 sub -0x1c(%ebp),%edi <== NOT EXECUTED
132fcb: 03 7d 08 add 0x8(%ebp),%edi <== NOT EXECUTED
132fce: 57 push %edi <== NOT EXECUTED
132fcf: ff 50 04 call *0x4(%eax) <== NOT EXECUTED
132fd2: 89 c6 mov %eax,%esi <== NOT EXECUTED
132fd4: e9 01 01 00 00 jmp 1330da <msdos_eval4make+0x252> <== NOT EXECUTED
pathloc, name);
}
}
else
{
rc = msdos_find_name(pathloc, token, token_len);
132fd9: 50 push %eax <== NOT EXECUTED
132fda: 52 push %edx <== NOT EXECUTED
132fdb: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
132fde: 53 push %ebx <== NOT EXECUTED
132fdf: e8 13 19 00 00 call 1348f7 <msdos_find_name> <== NOT EXECUTED
if (rc != RC_OK)
132fe4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
132fe7: 85 c0 test %eax,%eax <== NOT EXECUTED
132fe9: 0f 84 0d ff ff ff je 132efc <msdos_eval4make+0x74> <== NOT EXECUTED
132fef: 89 7d c4 mov %edi,-0x3c(%ebp) <== NOT EXECUTED
132ff2: 89 c7 mov %eax,%edi <== NOT EXECUTED
{
if (rc == MSDOS_NAME_NOT_FOUND_ERR)
132ff4: 3d 01 7d 00 00 cmp $0x7d01,%eax <== NOT EXECUTED
132ff9: 0f 85 b8 00 00 00 jne 1330b7 <msdos_eval4make+0x22f> <== NOT EXECUTED
{
errno = ENOENT;
132fff: e8 10 b0 00 00 call 13e014 <__errno> <== NOT EXECUTED
133004: c7 00 02 00 00 00 movl $0x2,(%eax) <== NOT EXECUTED
13300a: 83 cf ff or $0xffffffff,%edi <== NOT EXECUTED
13300d: e9 a5 00 00 00 jmp 1330b7 <msdos_eval4make+0x22f> <== NOT EXECUTED
case MSDOS_NAME:
/*
* Only a directory can be decended into.
*/
if (fat_fd->fat_file_type != FAT_DIRECTORY)
133012: 83 7f 10 01 cmpl $0x1,0x10(%edi) <== NOT EXECUTED
133016: 74 05 je 13301d <msdos_eval4make+0x195> <== NOT EXECUTED
133018: 89 7d c4 mov %edi,-0x3c(%ebp) <== NOT EXECUTED
13301b: eb 6d jmp 13308a <msdos_eval4make+0x202> <== NOT EXECUTED
/*
* Otherwise find the token name in the present location and
* set the node access to the point we have found.
*/
rc = msdos_find_name(pathloc, token, token_len);
13301d: 51 push %ecx <== NOT EXECUTED
13301e: 52 push %edx <== NOT EXECUTED
13301f: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
133022: 53 push %ebx <== NOT EXECUTED
133023: e8 cf 18 00 00 call 1348f7 <msdos_find_name> <== NOT EXECUTED
if (rc)
133028: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13302b: 85 c0 test %eax,%eax <== NOT EXECUTED
13302d: 0f 84 c9 fe ff ff je 132efc <msdos_eval4make+0x74> <== NOT EXECUTED
133033: 89 7d c4 mov %edi,-0x3c(%ebp) <== NOT EXECUTED
{
if (rc != MSDOS_NAME_NOT_FOUND_ERR)
133036: 3d 01 7d 00 00 cmp $0x7d01,%eax <== NOT EXECUTED
13303b: 74 12 je 13304f <msdos_eval4make+0x1c7> <== NOT EXECUTED
13303d: eb c0 jmp 132fff <msdos_eval4make+0x177> <== NOT EXECUTED
13303f: 89 7d c4 mov %edi,-0x3c(%ebp) <== NOT EXECUTED
done = true;
}
break;
case MSDOS_NO_MORE_PATH:
errno = EEXIST;
133042: e8 cd af 00 00 call 13e014 <__errno> <== NOT EXECUTED
133047: c7 00 11 00 00 00 movl $0x11,(%eax) <== NOT EXECUTED
13304d: eb bb jmp 13300a <msdos_eval4make+0x182> <== NOT EXECUTED
break;
}
}
*name = &path[i - token_len];
13304f: 8b 45 c0 mov -0x40(%ebp),%eax <== NOT EXECUTED
133052: 2b 45 e4 sub -0x1c(%ebp),%eax <== NOT EXECUTED
133055: 03 45 08 add 0x8(%ebp),%eax <== NOT EXECUTED
133058: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
13305b: 89 02 mov %eax,(%edx) <== NOT EXECUTED
13305d: 8b 7d 08 mov 0x8(%ebp),%edi <== NOT EXECUTED
133060: 03 7d c0 add -0x40(%ebp),%edi <== NOT EXECUTED
/*
* 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++)
133063: eb 14 jmp 133079 <msdos_eval4make+0x1f1> <== NOT EXECUTED
{
if (!msdos_is_separator(path[i]))
133065: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
133068: 0f be c0 movsbl %al,%eax <== NOT EXECUTED
13306b: 50 push %eax <== NOT EXECUTED
13306c: e8 9b b3 fd ff call 10e40c <rtems_filesystem_is_separator><== NOT EXECUTED
133071: 47 inc %edi <== NOT EXECUTED
133072: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
133075: 85 c0 test %eax,%eax <== NOT EXECUTED
133077: 74 86 je 132fff <msdos_eval4make+0x177> <== NOT EXECUTED
/*
* 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++)
133079: 8a 07 mov (%edi),%al <== NOT EXECUTED
13307b: 84 c0 test %al,%al <== NOT EXECUTED
13307d: 75 e6 jne 133065 <msdos_eval4make+0x1dd> <== NOT EXECUTED
rc = -1;
goto error;
}
}
fat_fd = pathloc->node_access;
13307f: 8b 03 mov (%ebx),%eax <== NOT EXECUTED
133081: 89 45 c4 mov %eax,-0x3c(%ebp) <== NOT EXECUTED
if (fat_fd->fat_file_type != FAT_DIRECTORY)
133084: 83 78 10 01 cmpl $0x1,0x10(%eax) <== NOT EXECUTED
133088: 74 10 je 13309a <msdos_eval4make+0x212> <== NOT EXECUTED
{
errno = ENOTDIR;
13308a: e8 85 af 00 00 call 13e014 <__errno> <== NOT EXECUTED
13308f: c7 00 14 00 00 00 movl $0x14,(%eax) <== NOT EXECUTED
133095: e9 70 ff ff ff jmp 13300a <msdos_eval4make+0x182> <== NOT EXECUTED
{
msdos_fs_info_t *fs_info = loc->mt_entry->fs_info;
fat_file_fd_t *fat_fd = loc->node_access;
if (fat_fd->fat_file_type == FAT_DIRECTORY)
loc->handlers = fs_info->directory_handlers;
13309a: 8b 43 10 mov 0x10(%ebx),%eax <== NOT EXECUTED
13309d: 8b 40 34 mov 0x34(%eax),%eax <== NOT EXECUTED
1330a0: 8b 80 8c 00 00 00 mov 0x8c(%eax),%eax <== NOT EXECUTED
1330a6: 89 43 08 mov %eax,0x8(%ebx) <== NOT EXECUTED
goto error;
}
msdos_set_handlers(pathloc);
rtems_semaphore_release(fs_info->vol_sema);
1330a9: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1330ac: 8b 55 bc mov -0x44(%ebp),%edx <== NOT EXECUTED
1330af: ff b2 94 00 00 00 pushl 0x94(%edx) <== NOT EXECUTED
1330b5: eb 1e jmp 1330d5 <msdos_eval4make+0x24d> <== NOT EXECUTED
return RC_OK;
error:
fat_file_close(pathloc->mt_entry, fat_fd);
1330b7: 50 push %eax <== NOT EXECUTED
1330b8: 50 push %eax <== NOT EXECUTED
1330b9: ff 75 c4 pushl -0x3c(%ebp) <== NOT EXECUTED
1330bc: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED
1330bf: e8 09 25 ff ff call 1255cd <fat_file_close> <== NOT EXECUTED
1330c4: 89 fe mov %edi,%esi <== NOT EXECUTED
1330c6: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
err:
rtems_semaphore_release(fs_info->vol_sema);
1330c9: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1330cc: 8b 45 bc mov -0x44(%ebp),%eax <== NOT EXECUTED
1330cf: ff b0 94 00 00 00 pushl 0x94(%eax) <== NOT EXECUTED
1330d5: e8 1a dc fd ff call 110cf4 <rtems_semaphore_release><== NOT EXECUTED
return rc;
1330da: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
1330dd: 89 f0 mov %esi,%eax <== NOT EXECUTED
1330df: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1330e2: 5b pop %ebx <== NOT EXECUTED
1330e3: 5e pop %esi <== NOT EXECUTED
1330e4: 5f pop %edi <== NOT EXECUTED
1330e5: c9 leave <== NOT EXECUTED
1330e6: c3 ret <== NOT EXECUTED
00132c68 <msdos_eval_path>:
const char *pathname,
size_t pathnamelen,
int flags,
rtems_filesystem_location_info_t *pathloc
)
{
132c68: 55 push %ebp <== NOT EXECUTED
132c69: 89 e5 mov %esp,%ebp <== NOT EXECUTED
132c6b: 57 push %edi <== NOT EXECUTED
132c6c: 56 push %esi <== NOT EXECUTED
132c6d: 53 push %ebx <== NOT EXECUTED
132c6e: 83 ec 40 sub $0x40,%esp <== NOT EXECUTED
132c71: 8b 5d 14 mov 0x14(%ebp),%ebx <== NOT EXECUTED
int rc = RC_OK;
rtems_status_code sc = RTEMS_SUCCESSFUL;
msdos_fs_info_t *fs_info = pathloc->mt_entry->fs_info;
132c74: 8b 43 10 mov 0x10(%ebx),%eax <== NOT EXECUTED
132c77: 8b 40 34 mov 0x34(%eax),%eax <== NOT EXECUTED
132c7a: 89 45 bc mov %eax,-0x44(%ebp) <== NOT EXECUTED
fat_file_fd_t *fat_fd = NULL;
rtems_filesystem_location_info_t newloc;
int i = 0;
int token_len = 0;
132c7d: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) <== NOT EXECUTED
msdos_token_types_t type = MSDOS_CURRENT_DIR;
const char *token;
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
132c84: 6a 00 push $0x0 <== NOT EXECUTED
132c86: 6a 00 push $0x0 <== NOT EXECUTED
132c88: ff b0 94 00 00 00 pushl 0x94(%eax) <== NOT EXECUTED
132c8e: e8 75 df fd ff call 110c08 <rtems_semaphore_obtain><== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
132c93: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
132c96: 85 c0 test %eax,%eax <== NOT EXECUTED
132c98: 74 13 je 132cad <msdos_eval_path+0x45> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
132c9a: e8 75 b3 00 00 call 13e014 <__errno> <== NOT EXECUTED
132c9f: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
132ca5: 83 cf ff or $0xffffffff,%edi <== NOT EXECUTED
132ca8: e9 d1 01 00 00 jmp 132e7e <msdos_eval_path+0x216> <== NOT EXECUTED
if (!pathloc->node_access)
132cad: 8b 03 mov (%ebx),%eax <== NOT EXECUTED
132caf: 85 c0 test %eax,%eax <== NOT EXECUTED
132cb1: 75 13 jne 132cc6 <msdos_eval_path+0x5e> <== NOT EXECUTED
{
errno = ENOENT;
132cb3: e8 5c b3 00 00 call 13e014 <__errno> <== NOT EXECUTED
132cb8: c7 00 02 00 00 00 movl $0x2,(%eax) <== NOT EXECUTED
132cbe: 83 cf ff or $0xffffffff,%edi <== NOT EXECUTED
rc = -1;
goto err;
132cc1: e9 a4 01 00 00 jmp 132e6a <msdos_eval_path+0x202> <== NOT EXECUTED
}
fat_fd = pathloc->node_access;
rc = fat_file_reopen(fat_fd);
132cc6: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
132cc9: 50 push %eax <== NOT EXECUTED
132cca: e8 fd 1f ff ff call 124ccc <fat_file_reopen> <== NOT EXECUTED
132ccf: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc != RC_OK)
132cd1: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
132cd4: 85 c0 test %eax,%eax <== NOT EXECUTED
132cd6: 0f 85 8e 01 00 00 jne 132e6a <msdos_eval_path+0x202> <== NOT EXECUTED
132cdc: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
132ce1: c7 45 c0 00 00 00 00 movl $0x0,-0x40(%ebp) <== NOT EXECUTED
132ce8: 89 7d c4 mov %edi,-0x3c(%ebp) <== NOT EXECUTED
132ceb: 89 df mov %ebx,%edi <== NOT EXECUTED
132ced: e9 27 01 00 00 jmp 132e19 <msdos_eval_path+0x1b1> <== NOT EXECUTED
goto err;
while ((type != MSDOS_NO_MORE_PATH) && (type != MSDOS_INVALID_TOKEN))
{
type = msdos_get_token(&pathname[i], pathnamelen, &token, &token_len);
132cf2: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
132cf5: 50 push %eax <== NOT EXECUTED
132cf6: 8d 4d e0 lea -0x20(%ebp),%ecx <== NOT EXECUTED
132cf9: 51 push %ecx <== NOT EXECUTED
132cfa: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
132cfd: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
132d00: 03 45 c0 add -0x40(%ebp),%eax <== NOT EXECUTED
132d03: 50 push %eax <== NOT EXECUTED
132d04: e8 10 17 00 00 call 134419 <msdos_get_token> <== NOT EXECUTED
pathnamelen -= token_len;
132d09: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
132d0c: 29 55 0c sub %edx,0xc(%ebp) <== NOT EXECUTED
i += token_len;
132d0f: 01 55 c0 add %edx,-0x40(%ebp) <== NOT EXECUTED
fat_fd = pathloc->node_access;
132d12: 8b 1f mov (%edi),%ebx <== NOT EXECUTED
switch (type)
132d14: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
132d17: 83 f8 03 cmp $0x3,%eax <== NOT EXECUTED
132d1a: 0f 84 cf 00 00 00 je 132def <msdos_eval_path+0x187> <== NOT EXECUTED
132d20: 83 f8 04 cmp $0x4,%eax <== NOT EXECUTED
132d23: 0f 84 de 00 00 00 je 132e07 <msdos_eval_path+0x19f> <== NOT EXECUTED
132d29: 83 f8 02 cmp $0x2,%eax <== NOT EXECUTED
132d2c: 0f 85 e7 00 00 00 jne 132e19 <msdos_eval_path+0x1b1> <== NOT EXECUTED
{
case MSDOS_UP_DIR:
/*
* Only a directory can be decended into.
*/
if (fat_fd->fat_file_type != FAT_DIRECTORY)
132d32: 83 7b 10 01 cmpl $0x1,0x10(%ebx) <== NOT EXECUTED
132d36: 0f 85 b9 00 00 00 jne 132df5 <msdos_eval_path+0x18d> <== NOT EXECUTED
/*
* Am I at the root of this mounted filesystem?
*/
if (pathloc->node_access ==
pathloc->mt_entry->mt_fs_root.node_access)
132d3c: 8b 77 10 mov 0x10(%edi),%esi <== NOT EXECUTED
}
/*
* Am I at the root of this mounted filesystem?
*/
if (pathloc->node_access ==
132d3f: 3b 5e 1c cmp 0x1c(%esi),%ebx <== NOT EXECUTED
132d42: 75 77 jne 132dbb <msdos_eval_path+0x153> <== NOT EXECUTED
/*
* Am I at the root of all filesystems?
* XXX: MSDOS is not supposed to be base fs.
*/
if (pathloc->node_access ==
rtems_filesystem_root.node_access)
132d44: a1 fc 46 16 00 mov 0x1646fc,%eax <== NOT EXECUTED
132d49: 3b 58 18 cmp 0x18(%eax),%ebx <== NOT EXECUTED
132d4c: 74 a4 je 132cf2 <msdos_eval_path+0x8a> <== NOT EXECUTED
132d4e: 89 5d c4 mov %ebx,-0x3c(%ebp) <== NOT EXECUTED
132d51: 89 fb mov %edi,%ebx <== NOT EXECUTED
{
break; /* Throw out the .. in this case */
}
else
{
newloc = pathloc->mt_entry->mt_point_node;
132d53: 8d 7d cc lea -0x34(%ebp),%edi <== NOT EXECUTED
132d56: 83 c6 08 add $0x8,%esi <== NOT EXECUTED
132d59: b9 05 00 00 00 mov $0x5,%ecx <== NOT EXECUTED
132d5e: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED
*pathloc = newloc;
132d60: 8d 75 cc lea -0x34(%ebp),%esi <== NOT EXECUTED
132d63: b1 05 mov $0x5,%cl <== NOT EXECUTED
132d65: 89 df mov %ebx,%edi <== NOT EXECUTED
132d67: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED
rc = fat_file_close(pathloc->mt_entry, fat_fd);
132d69: 56 push %esi <== NOT EXECUTED
132d6a: 56 push %esi <== NOT EXECUTED
132d6b: ff 75 c4 pushl -0x3c(%ebp) <== NOT EXECUTED
132d6e: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED
132d71: e8 57 28 ff ff call 1255cd <fat_file_close> <== NOT EXECUTED
132d76: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc != RC_OK)
132d78: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
132d7b: 85 c0 test %eax,%eax <== NOT EXECUTED
132d7d: 0f 85 e7 00 00 00 jne 132e6a <msdos_eval_path+0x202> <== NOT EXECUTED
goto err;
rtems_semaphore_release(fs_info->vol_sema);
132d83: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
132d86: 8b 45 bc mov -0x44(%ebp),%eax <== NOT EXECUTED
132d89: ff b0 94 00 00 00 pushl 0x94(%eax) <== NOT EXECUTED
132d8f: e8 60 df fd ff call 110cf4 <rtems_semaphore_release><== NOT EXECUTED
return (*pathloc->ops->evalpath_h)(&(pathname[i-token_len]),
132d94: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
132d97: 8b 53 0c mov 0xc(%ebx),%edx <== NOT EXECUTED
132d9a: 53 push %ebx <== NOT EXECUTED
132d9b: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
132d9e: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED
132da1: 01 c1 add %eax,%ecx <== NOT EXECUTED
132da3: 51 push %ecx <== NOT EXECUTED
132da4: 8b 4d c0 mov -0x40(%ebp),%ecx <== NOT EXECUTED
132da7: 29 c1 sub %eax,%ecx <== NOT EXECUTED
132da9: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
132dac: 01 c8 add %ecx,%eax <== NOT EXECUTED
132dae: 50 push %eax <== NOT EXECUTED
132daf: ff 12 call *(%edx) <== NOT EXECUTED
132db1: 89 c7 mov %eax,%edi <== NOT EXECUTED
132db3: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
132db6: e9 c3 00 00 00 jmp 132e7e <msdos_eval_path+0x216> <== NOT EXECUTED
flags, pathloc);
}
}
else
{
rc = msdos_find_name(pathloc, token, token_len);
132dbb: 51 push %ecx <== NOT EXECUTED
132dbc: 52 push %edx <== NOT EXECUTED
132dbd: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
132dc0: 57 push %edi <== NOT EXECUTED
132dc1: e8 31 1b 00 00 call 1348f7 <msdos_find_name> <== NOT EXECUTED
if (rc != RC_OK)
132dc6: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
132dc9: 85 c0 test %eax,%eax <== NOT EXECUTED
132dcb: 0f 84 21 ff ff ff je 132cf2 <msdos_eval_path+0x8a> <== NOT EXECUTED
132dd1: 89 5d c4 mov %ebx,-0x3c(%ebp) <== NOT EXECUTED
132dd4: 89 c6 mov %eax,%esi <== NOT EXECUTED
132dd6: 89 fb mov %edi,%ebx <== NOT EXECUTED
{
if (rc == MSDOS_NAME_NOT_FOUND_ERR)
132dd8: 3d 01 7d 00 00 cmp $0x7d01,%eax <== NOT EXECUTED
132ddd: 75 79 jne 132e58 <msdos_eval_path+0x1f0> <== NOT EXECUTED
{
errno = ENOENT;
132ddf: e8 30 b2 00 00 call 13e014 <__errno> <== NOT EXECUTED
132de4: c7 00 02 00 00 00 movl $0x2,(%eax) <== NOT EXECUTED
132dea: 83 ce ff or $0xffffffff,%esi <== NOT EXECUTED
132ded: eb 69 jmp 132e58 <msdos_eval_path+0x1f0> <== NOT EXECUTED
case MSDOS_NAME:
/*
* Only a directory can be decended into.
*/
if (fat_fd->fat_file_type != FAT_DIRECTORY)
132def: 83 7b 10 01 cmpl $0x1,0x10(%ebx) <== NOT EXECUTED
132df3: 74 c6 je 132dbb <msdos_eval_path+0x153> <== NOT EXECUTED
132df5: 89 5d c4 mov %ebx,-0x3c(%ebp) <== NOT EXECUTED
132df8: 89 fb mov %edi,%ebx <== NOT EXECUTED
{
errno = ENOTSUP;
132dfa: e8 15 b2 00 00 call 13e014 <__errno> <== NOT EXECUTED
132dff: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
132e05: eb e3 jmp 132dea <msdos_eval_path+0x182> <== NOT EXECUTED
132e07: 89 5d c4 mov %ebx,-0x3c(%ebp) <== NOT EXECUTED
132e0a: 89 fb mov %edi,%ebx <== NOT EXECUTED
case MSDOS_NO_MORE_PATH:
case MSDOS_CURRENT_DIR:
break;
case MSDOS_INVALID_TOKEN:
errno = ENAMETOOLONG;
132e0c: e8 03 b2 00 00 call 13e014 <__errno> <== NOT EXECUTED
132e11: c7 00 5b 00 00 00 movl $0x5b,(%eax) <== NOT EXECUTED
132e17: eb d1 jmp 132dea <msdos_eval_path+0x182> <== NOT EXECUTED
rc = fat_file_reopen(fat_fd);
if (rc != RC_OK)
goto err;
while ((type != MSDOS_NO_MORE_PATH) && (type != MSDOS_INVALID_TOKEN))
132e19: 83 f8 04 cmp $0x4,%eax <== NOT EXECUTED
132e1c: 74 08 je 132e26 <msdos_eval_path+0x1be> <== NOT EXECUTED
132e1e: 85 c0 test %eax,%eax <== NOT EXECUTED
132e20: 0f 85 cc fe ff ff jne 132cf2 <msdos_eval_path+0x8a> <== NOT EXECUTED
132e26: 89 fb mov %edi,%ebx <== NOT EXECUTED
132e28: 8b 7d c4 mov -0x3c(%ebp),%edi <== NOT EXECUTED
* None
*/
static void
msdos_set_handlers(rtems_filesystem_location_info_t *loc)
{
msdos_fs_info_t *fs_info = loc->mt_entry->fs_info;
132e2b: 8b 43 10 mov 0x10(%ebx),%eax <== NOT EXECUTED
132e2e: 8b 40 34 mov 0x34(%eax),%eax <== NOT EXECUTED
fat_file_fd_t *fat_fd = loc->node_access;
132e31: 8b 13 mov (%ebx),%edx <== NOT EXECUTED
132e33: 83 7a 10 01 cmpl $0x1,0x10(%edx) <== NOT EXECUTED
132e37: 75 08 jne 132e41 <msdos_eval_path+0x1d9> <== NOT EXECUTED
if (fat_fd->fat_file_type == FAT_DIRECTORY)
loc->handlers = fs_info->directory_handlers;
132e39: 8b 80 8c 00 00 00 mov 0x8c(%eax),%eax <== NOT EXECUTED
132e3f: eb 06 jmp 132e47 <msdos_eval_path+0x1df> <== NOT EXECUTED
else
loc->handlers = fs_info->file_handlers;
132e41: 8b 80 90 00 00 00 mov 0x90(%eax),%eax <== NOT EXECUTED
132e47: 89 43 08 mov %eax,0x8(%ebx) <== NOT EXECUTED
*/
fat_fd = pathloc->node_access;
msdos_set_handlers(pathloc);
rtems_semaphore_release(fs_info->vol_sema);
132e4a: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
132e4d: 8b 45 bc mov -0x44(%ebp),%eax <== NOT EXECUTED
132e50: ff b0 94 00 00 00 pushl 0x94(%eax) <== NOT EXECUTED
132e56: eb 1e jmp 132e76 <msdos_eval_path+0x20e> <== NOT EXECUTED
return RC_OK;
error:
fat_file_close(pathloc->mt_entry, fat_fd);
132e58: 50 push %eax <== NOT EXECUTED
132e59: 50 push %eax <== NOT EXECUTED
132e5a: ff 75 c4 pushl -0x3c(%ebp) <== NOT EXECUTED
132e5d: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED
132e60: e8 68 27 ff ff call 1255cd <fat_file_close> <== NOT EXECUTED
132e65: 89 f7 mov %esi,%edi <== NOT EXECUTED
132e67: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
err:
rtems_semaphore_release(fs_info->vol_sema);
132e6a: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
132e6d: 8b 4d bc mov -0x44(%ebp),%ecx <== NOT EXECUTED
132e70: ff b1 94 00 00 00 pushl 0x94(%ecx) <== NOT EXECUTED
132e76: e8 79 de fd ff call 110cf4 <rtems_semaphore_release><== NOT EXECUTED
return rc;
132e7b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
132e7e: 89 f8 mov %edi,%eax <== NOT EXECUTED
132e80: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
132e83: 5b pop %ebx <== NOT EXECUTED
132e84: 5e pop %esi <== NOT EXECUTED
132e85: 5f pop %edi <== NOT EXECUTED
132e86: c9 leave <== NOT EXECUTED
132e87: c3 ret <== NOT EXECUTED
001330ef <msdos_file_chmod>:
* RC_OK always
*/
int
msdos_file_chmod(rtems_filesystem_location_info_t *pathloc,
mode_t mode)
{
1330ef: 55 push %ebp <== NOT EXECUTED
1330f0: 89 e5 mov %esp,%ebp <== NOT EXECUTED
return RC_OK;
}
1330f2: 31 c0 xor %eax,%eax <== NOT EXECUTED
1330f4: c9 leave <== NOT EXECUTED
1330f5: c3 ret <== NOT EXECUTED
0013361b <msdos_file_close>:
* RC_OK, if file closed successfully, or -1 if error occured (errno set
* appropriately)
*/
int
msdos_file_close(rtems_libio_t *iop)
{
13361b: 55 push %ebp <== NOT EXECUTED
13361c: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13361e: 57 push %edi <== NOT EXECUTED
13361f: 56 push %esi <== NOT EXECUTED
133620: 53 push %ebx <== NOT EXECUTED
133621: 83 ec 20 sub $0x20,%esp <== NOT EXECUTED
133624: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
int rc = RC_OK;
rtems_status_code sc = RTEMS_SUCCESSFUL;
msdos_fs_info_t *fs_info = iop->pathinfo.mt_entry->fs_info;
133627: 8b 46 28 mov 0x28(%esi),%eax <== NOT EXECUTED
13362a: 8b 78 34 mov 0x34(%eax),%edi <== NOT EXECUTED
fat_file_fd_t *fat_fd = iop->file_info;
13362d: 8b 46 38 mov 0x38(%esi),%eax <== NOT EXECUTED
133630: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
133633: 6a 00 push $0x0 <== NOT EXECUTED
133635: 6a 00 push $0x0 <== NOT EXECUTED
133637: ff b7 94 00 00 00 pushl 0x94(%edi) <== NOT EXECUTED
13363d: e8 c6 d5 fd ff call 110c08 <rtems_semaphore_obtain><== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
133642: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
133645: 85 c0 test %eax,%eax <== NOT EXECUTED
133647: 74 10 je 133659 <msdos_file_close+0x3e> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
133649: e8 c6 a9 00 00 call 13e014 <__errno> <== NOT EXECUTED
13364e: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
133654: 83 cb ff or $0xffffffff,%ebx <== NOT EXECUTED
133657: eb 6c jmp 1336c5 <msdos_file_close+0xaa> <== NOT EXECUTED
/*
* if fat-file descriptor is not marked as "removed", synchronize
* size, first cluster number, write time and date fields of the file
*/
if (!FAT_FILE_IS_REMOVED(fat_fd))
133659: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
13365c: f6 40 30 01 testb $0x1,0x30(%eax) <== NOT EXECUTED
133660: 75 45 jne 1336a7 <msdos_file_close+0x8c> <== NOT EXECUTED
{
rc = msdos_set_first_cluster_num(iop->pathinfo.mt_entry, fat_fd);
133662: 52 push %edx <== NOT EXECUTED
133663: 52 push %edx <== NOT EXECUTED
133664: 50 push %eax <== NOT EXECUTED
133665: ff 76 28 pushl 0x28(%esi) <== NOT EXECUTED
133668: e8 0a 0b 00 00 call 134177 <msdos_set_first_cluster_num><== NOT EXECUTED
13366d: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc != RC_OK)
13366f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
133672: 85 c0 test %eax,%eax <== NOT EXECUTED
133674: 75 2c jne 1336a2 <msdos_file_close+0x87> <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
return rc;
}
rc = msdos_set_file_size(iop->pathinfo.mt_entry, fat_fd);
133676: 53 push %ebx <== NOT EXECUTED
133677: 53 push %ebx <== NOT EXECUTED
133678: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
13367b: ff 76 28 pushl 0x28(%esi) <== NOT EXECUTED
13367e: e8 8a 0a 00 00 call 13410d <msdos_set_file_size> <== NOT EXECUTED
133683: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc != RC_OK)
133685: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
133688: 85 c0 test %eax,%eax <== NOT EXECUTED
13368a: 75 16 jne 1336a2 <msdos_file_close+0x87> <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
return rc;
}
rc = msdos_set_dir_wrt_time_and_date(iop->pathinfo.mt_entry, fat_fd);
13368c: 51 push %ecx <== NOT EXECUTED
13368d: 51 push %ecx <== NOT EXECUTED
13368e: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
133691: ff 76 28 pushl 0x28(%esi) <== NOT EXECUTED
133694: e8 7f 0c 00 00 call 134318 <msdos_set_dir_wrt_time_and_date><== NOT EXECUTED
133699: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc != RC_OK)
13369b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13369e: 85 c0 test %eax,%eax <== NOT EXECUTED
1336a0: 74 05 je 1336a7 <msdos_file_close+0x8c> <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
1336a2: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1336a5: eb 10 jmp 1336b7 <msdos_file_close+0x9c> <== NOT EXECUTED
return rc;
}
}
rc = fat_file_close(iop->pathinfo.mt_entry, fat_fd);
1336a7: 52 push %edx <== NOT EXECUTED
1336a8: 52 push %edx <== NOT EXECUTED
1336a9: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
1336ac: ff 76 28 pushl 0x28(%esi) <== NOT EXECUTED
1336af: e8 19 1f ff ff call 1255cd <fat_file_close> <== NOT EXECUTED
1336b4: 89 c3 mov %eax,%ebx <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
1336b6: 58 pop %eax <== NOT EXECUTED
1336b7: ff b7 94 00 00 00 pushl 0x94(%edi) <== NOT EXECUTED
1336bd: e8 32 d6 fd ff call 110cf4 <rtems_semaphore_release><== NOT EXECUTED
return rc;
1336c2: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
1336c5: 89 d8 mov %ebx,%eax <== NOT EXECUTED
1336c7: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1336ca: 5b pop %ebx <== NOT EXECUTED
1336cb: 5e pop %esi <== NOT EXECUTED
1336cc: 5f pop %edi <== NOT EXECUTED
1336cd: c9 leave <== NOT EXECUTED
1336ce: c3 ret <== NOT EXECUTED
00133219 <msdos_file_datasync>:
* RETURNS:
* RC_OK on success, or -1 if error occured (errno set appropriately)
*/
int
msdos_file_datasync(rtems_libio_t *iop)
{
133219: 55 push %ebp <== NOT EXECUTED
13321a: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13321c: 57 push %edi <== NOT EXECUTED
13321d: 56 push %esi <== NOT EXECUTED
13321e: 53 push %ebx <== NOT EXECUTED
13321f: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED
133222: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
int rc = RC_OK;
rtems_status_code sc = RTEMS_SUCCESSFUL;
fat_file_fd_t *fat_fd = iop->file_info;
133225: 8b 7b 38 mov 0x38(%ebx),%edi <== NOT EXECUTED
msdos_fs_info_t *fs_info = iop->pathinfo.mt_entry->fs_info;
133228: 8b 43 28 mov 0x28(%ebx),%eax <== NOT EXECUTED
13322b: 8b 70 34 mov 0x34(%eax),%esi <== NOT EXECUTED
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
13322e: 6a 00 push $0x0 <== NOT EXECUTED
133230: 6a 00 push $0x0 <== NOT EXECUTED
133232: ff b6 94 00 00 00 pushl 0x94(%esi) <== NOT EXECUTED
133238: e8 cb d9 fd ff call 110c08 <rtems_semaphore_obtain><== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
13323d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
133240: 85 c0 test %eax,%eax <== NOT EXECUTED
133242: 74 10 je 133254 <msdos_file_datasync+0x3b><== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
133244: e8 cb ad 00 00 call 13e014 <__errno> <== NOT EXECUTED
133249: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
13324f: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
133252: eb 1c jmp 133270 <msdos_file_datasync+0x57><== NOT EXECUTED
/* synchronize file data */
rc = fat_file_datasync(iop->pathinfo.mt_entry, fat_fd);
133254: 50 push %eax <== NOT EXECUTED
133255: 50 push %eax <== NOT EXECUTED
133256: 57 push %edi <== NOT EXECUTED
133257: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
13325a: e8 75 1b ff ff call 124dd4 <fat_file_datasync> <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
13325f: 5b pop %ebx <== NOT EXECUTED
133260: ff b6 94 00 00 00 pushl 0x94(%esi) <== NOT EXECUTED
133266: e8 89 da fd ff call 110cf4 <rtems_semaphore_release><== NOT EXECUTED
13326b: 31 c0 xor %eax,%eax <== NOT EXECUTED
return RC_OK;
13326d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
133270: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
133273: 5b pop %ebx <== NOT EXECUTED
133274: 5e pop %esi <== NOT EXECUTED
133275: 5f pop %edi <== NOT EXECUTED
133276: c9 leave <== NOT EXECUTED
133277: c3 ret <== NOT EXECUTED
00133345 <msdos_file_ftruncate>:
* RETURNS:
* RC_OK on success, or -1 if error occured (errno set appropriately).
*/
int
msdos_file_ftruncate(rtems_libio_t *iop, rtems_off64_t length)
{
133345: 55 push %ebp <== NOT EXECUTED
133346: 89 e5 mov %esp,%ebp <== NOT EXECUTED
133348: 57 push %edi <== NOT EXECUTED
133349: 56 push %esi <== NOT EXECUTED
13334a: 53 push %ebx <== NOT EXECUTED
13334b: 83 ec 3c sub $0x3c,%esp <== NOT EXECUTED
13334e: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
133351: 8b 75 0c mov 0xc(%ebp),%esi <== NOT EXECUTED
133354: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
133357: 89 45 dc mov %eax,-0x24(%ebp) <== NOT EXECUTED
int rc = RC_OK;
rtems_status_code sc = RTEMS_SUCCESSFUL;
msdos_fs_info_t *fs_info = iop->pathinfo.mt_entry->fs_info;
13335a: 8b 43 28 mov 0x28(%ebx),%eax <== NOT EXECUTED
13335d: 8b 48 34 mov 0x34(%eax),%ecx <== NOT EXECUTED
fat_file_fd_t *fat_fd = iop->file_info;
133360: 8b 53 38 mov 0x38(%ebx),%edx <== NOT EXECUTED
133363: 89 55 c4 mov %edx,-0x3c(%ebp) <== NOT EXECUTED
if (length >= fat_fd->fat_file_size)
133366: 8b 42 18 mov 0x18(%edx),%eax <== NOT EXECUTED
133369: 31 d2 xor %edx,%edx <== NOT EXECUTED
13336b: 89 45 e0 mov %eax,-0x20(%ebp) <== NOT EXECUTED
13336e: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED
133371: 83 7d dc 00 cmpl $0x0,-0x24(%ebp) <== NOT EXECUTED
133375: 7c 0d jl 133384 <msdos_file_ftruncate+0x3f><== NOT EXECUTED
133377: 7f 04 jg 13337d <msdos_file_ftruncate+0x38><== NOT EXECUTED
133379: 39 c6 cmp %eax,%esi <== NOT EXECUTED
13337b: 72 07 jb 133384 <msdos_file_ftruncate+0x3f><== NOT EXECUTED
13337d: 31 ff xor %edi,%edi <== NOT EXECUTED
13337f: e9 84 00 00 00 jmp 133408 <msdos_file_ftruncate+0xc3><== NOT EXECUTED
return RC_OK;
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
133384: 57 push %edi <== NOT EXECUTED
133385: 6a 00 push $0x0 <== NOT EXECUTED
133387: 6a 00 push $0x0 <== NOT EXECUTED
133389: ff b1 94 00 00 00 pushl 0x94(%ecx) <== NOT EXECUTED
13338f: 89 4d d8 mov %ecx,-0x28(%ebp) <== NOT EXECUTED
133392: e8 71 d8 fd ff call 110c08 <rtems_semaphore_obtain><== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
133397: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13339a: 85 c0 test %eax,%eax <== NOT EXECUTED
13339c: 8b 4d d8 mov -0x28(%ebp),%ecx <== NOT EXECUTED
13339f: 74 10 je 1333b1 <msdos_file_ftruncate+0x6c><== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
1333a1: e8 6e ac 00 00 call 13e014 <__errno> <== NOT EXECUTED
1333a6: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
1333ac: 83 cf ff or $0xffffffff,%edi <== NOT EXECUTED
1333af: eb 57 jmp 133408 <msdos_file_ftruncate+0xc3><== NOT EXECUTED
rc = fat_file_truncate(iop->pathinfo.mt_entry, fat_fd, length);
1333b1: 52 push %edx <== NOT EXECUTED
1333b2: 56 push %esi <== NOT EXECUTED
1333b3: ff 75 c4 pushl -0x3c(%ebp) <== NOT EXECUTED
1333b6: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
1333b9: 89 4d d8 mov %ecx,-0x28(%ebp) <== NOT EXECUTED
1333bc: e8 de 1b ff ff call 124f9f <fat_file_truncate> <== NOT EXECUTED
1333c1: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc != RC_OK)
1333c3: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1333c6: 85 c0 test %eax,%eax <== NOT EXECUTED
1333c8: 8b 4d d8 mov -0x28(%ebp),%ecx <== NOT EXECUTED
1333cb: 75 2a jne 1333f7 <msdos_file_ftruncate+0xb2><== NOT EXECUTED
/*
* fat_file_truncate do nothing if new length >= fat-file size, so update
* file size only if length < fat-file size
*/
if (length < fat_fd->fat_file_size)
1333cd: 8b 55 c4 mov -0x3c(%ebp),%edx <== NOT EXECUTED
1333d0: 8b 42 18 mov 0x18(%edx),%eax <== NOT EXECUTED
1333d3: 31 d2 xor %edx,%edx <== NOT EXECUTED
1333d5: 89 45 e0 mov %eax,-0x20(%ebp) <== NOT EXECUTED
1333d8: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED
1333db: 83 7d dc 00 cmpl $0x0,-0x24(%ebp) <== NOT EXECUTED
1333df: 7f 16 jg 1333f7 <msdos_file_ftruncate+0xb2><== NOT EXECUTED
1333e1: 7c 04 jl 1333e7 <msdos_file_ftruncate+0xa2><== NOT EXECUTED
1333e3: 39 c6 cmp %eax,%esi <== NOT EXECUTED
1333e5: 73 10 jae 1333f7 <msdos_file_ftruncate+0xb2><== NOT EXECUTED
iop->size = fat_fd->fat_file_size = length;
1333e7: 8b 45 c4 mov -0x3c(%ebp),%eax <== NOT EXECUTED
1333ea: 89 70 18 mov %esi,0x18(%eax) <== NOT EXECUTED
1333ed: 89 73 04 mov %esi,0x4(%ebx) <== NOT EXECUTED
1333f0: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx) <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
1333f7: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1333fa: ff b1 94 00 00 00 pushl 0x94(%ecx) <== NOT EXECUTED
133400: e8 ef d8 fd ff call 110cf4 <rtems_semaphore_release><== NOT EXECUTED
return RC_OK;
133405: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
133408: 89 f8 mov %edi,%eax <== NOT EXECUTED
13340a: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13340d: 5b pop %ebx <== NOT EXECUTED
13340e: 5e pop %esi <== NOT EXECUTED
13340f: 5f pop %edi <== NOT EXECUTED
133410: c9 leave <== NOT EXECUTED
133411: c3 ret <== NOT EXECUTED
001330e8 <msdos_file_ioctl>:
* RETURNS:
*
*/
int
msdos_file_ioctl(rtems_libio_t *iop,uint32_t command, void *buffer)
{
1330e8: 55 push %ebp <== NOT EXECUTED
1330e9: 89 e5 mov %esp,%ebp <== NOT EXECUTED
int rc = RC_OK;
return rc;
}
1330eb: 31 c0 xor %eax,%eax <== NOT EXECUTED
1330ed: c9 leave <== NOT EXECUTED
1330ee: c3 ret <== NOT EXECUTED
00133412 <msdos_file_lseek>:
* new offset on success, or -1 if error occured (errno set
* appropriately).
*/
rtems_off64_t
msdos_file_lseek(rtems_libio_t *iop, rtems_off64_t offset, int whence)
{
133412: 55 push %ebp <== NOT EXECUTED
133413: 89 e5 mov %esp,%ebp <== NOT EXECUTED
133415: 57 push %edi <== NOT EXECUTED
133416: 56 push %esi <== NOT EXECUTED
133417: 53 push %ebx <== NOT EXECUTED
133418: 83 ec 30 sub $0x30,%esp <== NOT EXECUTED
13341b: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
int rc = RC_OK;
rtems_status_code sc = RTEMS_SUCCESSFUL;
msdos_fs_info_t *fs_info = iop->pathinfo.mt_entry->fs_info;
13341e: 8b 43 28 mov 0x28(%ebx),%eax <== NOT EXECUTED
133421: 8b 78 34 mov 0x34(%eax),%edi <== NOT EXECUTED
fat_file_fd_t *fat_fd = iop->file_info;
133424: 8b 73 38 mov 0x38(%ebx),%esi <== NOT EXECUTED
uint32_t real_size = 0;
133427: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) <== NOT EXECUTED
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
13342e: 6a 00 push $0x0 <== NOT EXECUTED
133430: 6a 00 push $0x0 <== NOT EXECUTED
133432: ff b7 94 00 00 00 pushl 0x94(%edi) <== NOT EXECUTED
133438: e8 cb d7 fd ff call 110c08 <rtems_semaphore_obtain><== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
13343d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
133440: 85 c0 test %eax,%eax <== NOT EXECUTED
133442: 74 12 je 133456 <msdos_file_lseek+0x44> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
133444: e8 cb ab 00 00 call 13e014 <__errno> <== NOT EXECUTED
133449: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
13344f: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
133452: 89 c2 mov %eax,%edx <== NOT EXECUTED
133454: eb 69 jmp 1334bf <msdos_file_lseek+0xad> <== NOT EXECUTED
rc = fat_file_extend(iop->pathinfo.mt_entry, fat_fd, iop->offset,
133456: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
133459: 50 push %eax <== NOT EXECUTED
13345a: ff 73 0c pushl 0xc(%ebx) <== NOT EXECUTED
13345d: 56 push %esi <== NOT EXECUTED
13345e: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
133461: e8 13 1c ff ff call 125079 <fat_file_extend> <== NOT EXECUTED
&real_size);
if (rc != RC_OK)
133466: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
133469: 85 c0 test %eax,%eax <== NOT EXECUTED
13346b: 74 19 je 133486 <msdos_file_lseek+0x74> <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
13346d: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
133470: ff b7 94 00 00 00 pushl 0x94(%edi) <== NOT EXECUTED
133476: 89 45 d4 mov %eax,-0x2c(%ebp) <== NOT EXECUTED
133479: e8 76 d8 fd ff call 110cf4 <rtems_semaphore_release><== NOT EXECUTED
return rc;
13347e: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED
133481: 89 d0 mov %edx,%eax <== NOT EXECUTED
133483: 99 cltd <== NOT EXECUTED
133484: eb 36 jmp 1334bc <msdos_file_lseek+0xaa> <== NOT EXECUTED
}
if (real_size > fat_fd->fat_file_size)
133486: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
133489: 3b 46 18 cmp 0x18(%esi),%eax <== NOT EXECUTED
13348c: 76 0d jbe 13349b <msdos_file_lseek+0x89> <== NOT EXECUTED
fat_fd->fat_file_size = iop->offset = real_size;
13348e: 89 43 0c mov %eax,0xc(%ebx) <== NOT EXECUTED
133491: c7 43 10 00 00 00 00 movl $0x0,0x10(%ebx) <== NOT EXECUTED
133498: 89 46 18 mov %eax,0x18(%esi) <== NOT EXECUTED
iop->size = fat_fd->fat_file_size;
13349b: 8b 46 18 mov 0x18(%esi),%eax <== NOT EXECUTED
13349e: 89 43 04 mov %eax,0x4(%ebx) <== NOT EXECUTED
1334a1: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx) <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
1334a8: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1334ab: ff b7 94 00 00 00 pushl 0x94(%edi) <== NOT EXECUTED
1334b1: e8 3e d8 fd ff call 110cf4 <rtems_semaphore_release><== NOT EXECUTED
return iop->offset;
1334b6: 8b 43 0c mov 0xc(%ebx),%eax <== NOT EXECUTED
1334b9: 8b 53 10 mov 0x10(%ebx),%edx <== NOT EXECUTED
1334bc: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
1334bf: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1334c2: 5b pop %ebx <== NOT EXECUTED
1334c3: 5e pop %esi <== NOT EXECUTED
1334c4: 5f pop %edi <== NOT EXECUTED
1334c5: c9 leave <== NOT EXECUTED
1334c6: c3 ret <== NOT EXECUTED
001336cf <msdos_file_open>:
* and errno set appropriately
*/
int
msdos_file_open(rtems_libio_t *iop, const char *pathname, uint32_t flag,
uint32_t mode)
{
1336cf: 55 push %ebp <== NOT EXECUTED
1336d0: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1336d2: 57 push %edi <== NOT EXECUTED
1336d3: 56 push %esi <== NOT EXECUTED
1336d4: 53 push %ebx <== NOT EXECUTED
1336d5: 83 ec 20 sub $0x20,%esp <== NOT EXECUTED
1336d8: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
int rc = RC_OK;
rtems_status_code sc = RTEMS_SUCCESSFUL;
msdos_fs_info_t *fs_info = iop->pathinfo.mt_entry->fs_info;
1336db: 8b 43 28 mov 0x28(%ebx),%eax <== NOT EXECUTED
1336de: 8b 78 34 mov 0x34(%eax),%edi <== NOT EXECUTED
fat_file_fd_t *fat_fd = iop->file_info;
1336e1: 8b 53 38 mov 0x38(%ebx),%edx <== NOT EXECUTED
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
1336e4: 6a 00 push $0x0 <== NOT EXECUTED
1336e6: 6a 00 push $0x0 <== NOT EXECUTED
1336e8: ff b7 94 00 00 00 pushl 0x94(%edi) <== NOT EXECUTED
1336ee: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED
1336f1: e8 12 d5 fd ff call 110c08 <rtems_semaphore_obtain><== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
1336f6: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1336f9: 85 c0 test %eax,%eax <== NOT EXECUTED
1336fb: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
1336fe: 74 10 je 133710 <msdos_file_open+0x41> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
133700: e8 0f a9 00 00 call 13e014 <__errno> <== NOT EXECUTED
133705: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
13370b: 83 ce ff or $0xffffffff,%esi <== NOT EXECUTED
13370e: eb 49 jmp 133759 <msdos_file_open+0x8a> <== NOT EXECUTED
rc = fat_file_reopen(fat_fd);
133710: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
133713: 52 push %edx <== NOT EXECUTED
133714: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED
133717: e8 b0 15 ff ff call 124ccc <fat_file_reopen> <== NOT EXECUTED
13371c: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc != RC_OK)
13371e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
133721: 85 c0 test %eax,%eax <== NOT EXECUTED
133723: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
133726: 75 20 jne 133748 <msdos_file_open+0x79> <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
return rc;
}
if (iop->flags & LIBIO_FLAGS_APPEND)
133728: f6 43 15 02 testb $0x2,0x15(%ebx) <== NOT EXECUTED
13372c: 74 0d je 13373b <msdos_file_open+0x6c> <== NOT EXECUTED
iop->offset = fat_fd->fat_file_size;
13372e: 8b 42 18 mov 0x18(%edx),%eax <== NOT EXECUTED
133731: 89 43 0c mov %eax,0xc(%ebx) <== NOT EXECUTED
133734: c7 43 10 00 00 00 00 movl $0x0,0x10(%ebx) <== NOT EXECUTED
iop->size = fat_fd->fat_file_size;
13373b: 8b 42 18 mov 0x18(%edx),%eax <== NOT EXECUTED
13373e: 89 43 04 mov %eax,0x4(%ebx) <== NOT EXECUTED
133741: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx) <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
133748: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13374b: ff b7 94 00 00 00 pushl 0x94(%edi) <== NOT EXECUTED
133751: e8 9e d5 fd ff call 110cf4 <rtems_semaphore_release><== NOT EXECUTED
return RC_OK;
133756: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
133759: 89 f0 mov %esi,%eax <== NOT EXECUTED
13375b: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13375e: 5b pop %ebx <== NOT EXECUTED
13375f: 5e pop %esi <== NOT EXECUTED
133760: 5f pop %edi <== NOT EXECUTED
133761: c9 leave <== NOT EXECUTED
133762: c3 ret <== NOT EXECUTED
001335ae <msdos_file_read>:
* the number of bytes read on success, or -1 if error occured (errno set
* appropriately)
*/
ssize_t
msdos_file_read(rtems_libio_t *iop, void *buffer, size_t count)
{
1335ae: 55 push %ebp <== NOT EXECUTED
1335af: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1335b1: 57 push %edi <== NOT EXECUTED
1335b2: 56 push %esi <== NOT EXECUTED
1335b3: 53 push %ebx <== NOT EXECUTED
1335b4: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED
1335b7: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
ssize_t ret = 0;
rtems_status_code sc = RTEMS_SUCCESSFUL;
msdos_fs_info_t *fs_info = iop->pathinfo.mt_entry->fs_info;
1335ba: 8b 43 28 mov 0x28(%ebx),%eax <== NOT EXECUTED
1335bd: 8b 70 34 mov 0x34(%eax),%esi <== NOT EXECUTED
fat_file_fd_t *fat_fd = iop->file_info;
1335c0: 8b 7b 38 mov 0x38(%ebx),%edi <== NOT EXECUTED
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
1335c3: 6a 00 push $0x0 <== NOT EXECUTED
1335c5: 6a 00 push $0x0 <== NOT EXECUTED
1335c7: ff b6 94 00 00 00 pushl 0x94(%esi) <== NOT EXECUTED
1335cd: e8 36 d6 fd ff call 110c08 <rtems_semaphore_obtain><== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
1335d2: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1335d5: 85 c0 test %eax,%eax <== NOT EXECUTED
1335d7: 74 10 je 1335e9 <msdos_file_read+0x3b> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
1335d9: e8 36 aa 00 00 call 13e014 <__errno> <== NOT EXECUTED
1335de: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
1335e4: 83 cb ff or $0xffffffff,%ebx <== NOT EXECUTED
1335e7: eb 28 jmp 133611 <msdos_file_read+0x63> <== NOT EXECUTED
ret = fat_file_read(iop->pathinfo.mt_entry, fat_fd, iop->offset, count,
1335e9: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1335ec: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
1335ef: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
1335f2: ff 73 0c pushl 0xc(%ebx) <== NOT EXECUTED
1335f5: 57 push %edi <== NOT EXECUTED
1335f6: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
1335f9: e8 1d 1e ff ff call 12541b <fat_file_read> <== NOT EXECUTED
1335fe: 89 c3 mov %eax,%ebx <== NOT EXECUTED
buffer);
rtems_semaphore_release(fs_info->vol_sema);
133600: 83 c4 14 add $0x14,%esp <== NOT EXECUTED
133603: ff b6 94 00 00 00 pushl 0x94(%esi) <== NOT EXECUTED
133609: e8 e6 d6 fd ff call 110cf4 <rtems_semaphore_release><== NOT EXECUTED
return ret;
13360e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
133611: 89 d8 mov %ebx,%eax <== NOT EXECUTED
133613: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
133616: 5b pop %ebx <== NOT EXECUTED
133617: 5e pop %esi <== NOT EXECUTED
133618: 5f pop %edi <== NOT EXECUTED
133619: c9 leave <== NOT EXECUTED
13361a: c3 ret <== NOT EXECUTED
00133193 <msdos_file_rmnod>:
* RC_OK on success, or -1 if error occured (errno set appropriately)
*/
int
msdos_file_rmnod(rtems_filesystem_location_info_t *parent_pathloc,
rtems_filesystem_location_info_t *pathloc)
{
133193: 55 push %ebp <== NOT EXECUTED
133194: 89 e5 mov %esp,%ebp <== NOT EXECUTED
133196: 57 push %edi <== NOT EXECUTED
133197: 56 push %esi <== NOT EXECUTED
133198: 53 push %ebx <== NOT EXECUTED
133199: 83 ec 20 sub $0x20,%esp <== NOT EXECUTED
13319c: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
int rc = RC_OK;
rtems_status_code sc = RTEMS_SUCCESSFUL;
msdos_fs_info_t *fs_info = pathloc->mt_entry->fs_info;
13319f: 8b 43 10 mov 0x10(%ebx),%eax <== NOT EXECUTED
1331a2: 8b 78 34 mov 0x34(%eax),%edi <== NOT EXECUTED
fat_file_fd_t *fat_fd = pathloc->node_access;
1331a5: 8b 03 mov (%ebx),%eax <== NOT EXECUTED
1331a7: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
1331aa: 6a 00 push $0x0 <== NOT EXECUTED
1331ac: 6a 00 push $0x0 <== NOT EXECUTED
1331ae: ff b7 94 00 00 00 pushl 0x94(%edi) <== NOT EXECUTED
1331b4: e8 4f da fd ff call 110c08 <rtems_semaphore_obtain><== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
1331b9: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1331bc: 85 c0 test %eax,%eax <== NOT EXECUTED
1331be: 74 10 je 1331d0 <msdos_file_rmnod+0x3d> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
1331c0: e8 4f ae 00 00 call 13e014 <__errno> <== NOT EXECUTED
1331c5: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
1331cb: 83 ce ff or $0xffffffff,%esi <== NOT EXECUTED
1331ce: eb 3f jmp 13320f <msdos_file_rmnod+0x7c> <== NOT EXECUTED
/* mark file removed */
rc = msdos_set_first_char4file_name(pathloc->mt_entry,
1331d0: 51 push %ecx <== NOT EXECUTED
1331d1: 68 e5 00 00 00 push $0xe5 <== NOT EXECUTED
1331d6: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
1331d9: 83 c0 20 add $0x20,%eax <== NOT EXECUTED
1331dc: 50 push %eax <== NOT EXECUTED
1331dd: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED
1331e0: e8 3b 10 00 00 call 134220 <msdos_set_first_char4file_name><== NOT EXECUTED
1331e5: 89 c6 mov %eax,%esi <== NOT EXECUTED
&fat_fd->dir_pos,
MSDOS_THIS_DIR_ENTRY_EMPTY);
if (rc != RC_OK)
1331e7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1331ea: 85 c0 test %eax,%eax <== NOT EXECUTED
1331ec: 74 05 je 1331f3 <msdos_file_rmnod+0x60> <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
1331ee: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1331f1: eb 0e jmp 133201 <msdos_file_rmnod+0x6e> <== NOT EXECUTED
return rc;
}
fat_file_mark_removed(pathloc->mt_entry, fat_fd);
1331f3: 52 push %edx <== NOT EXECUTED
1331f4: 52 push %edx <== NOT EXECUTED
1331f5: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
1331f8: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED
1331fb: e8 c8 1c ff ff call 124ec8 <fat_file_mark_removed> <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
133200: 58 pop %eax <== NOT EXECUTED
133201: ff b7 94 00 00 00 pushl 0x94(%edi) <== NOT EXECUTED
133207: e8 e8 da fd ff call 110cf4 <rtems_semaphore_release><== NOT EXECUTED
return RC_OK;
13320c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
13320f: 89 f0 mov %esi,%eax <== NOT EXECUTED
133211: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
133214: 5b pop %ebx <== NOT EXECUTED
133215: 5e pop %esi <== NOT EXECUTED
133216: 5f pop %edi <== NOT EXECUTED
133217: c9 leave <== NOT EXECUTED
133218: c3 ret <== NOT EXECUTED
001330f6 <msdos_file_stat>:
int
msdos_file_stat(
rtems_filesystem_location_info_t *loc,
struct stat *buf
)
{
1330f6: 55 push %ebp <== NOT EXECUTED
1330f7: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1330f9: 57 push %edi <== NOT EXECUTED
1330fa: 56 push %esi <== NOT EXECUTED
1330fb: 53 push %ebx <== NOT EXECUTED
1330fc: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED
1330ff: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
133102: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
rtems_status_code sc = RTEMS_SUCCESSFUL;
msdos_fs_info_t *fs_info = loc->mt_entry->fs_info;
133105: 8b 50 10 mov 0x10(%eax),%edx <== NOT EXECUTED
133108: 8b 72 34 mov 0x34(%edx),%esi <== NOT EXECUTED
fat_file_fd_t *fat_fd = loc->node_access;
13310b: 8b 38 mov (%eax),%edi <== NOT EXECUTED
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
13310d: 6a 00 push $0x0 <== NOT EXECUTED
13310f: 6a 00 push $0x0 <== NOT EXECUTED
133111: ff b6 94 00 00 00 pushl 0x94(%esi) <== NOT EXECUTED
133117: e8 ec da fd ff call 110c08 <rtems_semaphore_obtain><== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
13311c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13311f: 85 c0 test %eax,%eax <== NOT EXECUTED
133121: 74 10 je 133133 <msdos_file_stat+0x3d> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
133123: e8 ec ae 00 00 call 13e014 <__errno> <== NOT EXECUTED
133128: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
13312e: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
133131: eb 58 jmp 13318b <msdos_file_stat+0x95> <== NOT EXECUTED
buf->st_dev = fs_info->fat.vol.dev;
133133: 8b 46 54 mov 0x54(%esi),%eax <== NOT EXECUTED
133136: 8b 56 58 mov 0x58(%esi),%edx <== NOT EXECUTED
133139: 89 03 mov %eax,(%ebx) <== NOT EXECUTED
13313b: 89 53 04 mov %edx,0x4(%ebx) <== NOT EXECUTED
buf->st_ino = fat_fd->ino;
13313e: 8b 47 0c mov 0xc(%edi),%eax <== NOT EXECUTED
133141: 89 43 08 mov %eax,0x8(%ebx) <== NOT EXECUTED
buf->st_mode = S_IFREG | S_IRWXU | S_IRWXG | S_IRWXO;
133144: c7 43 0c ff 81 00 00 movl $0x81ff,0xc(%ebx) <== NOT EXECUTED
buf->st_rdev = 0ll;
13314b: c7 43 18 00 00 00 00 movl $0x0,0x18(%ebx) <== NOT EXECUTED
133152: c7 43 1c 00 00 00 00 movl $0x0,0x1c(%ebx) <== NOT EXECUTED
buf->st_size = fat_fd->fat_file_size;
133159: 8b 47 18 mov 0x18(%edi),%eax <== NOT EXECUTED
13315c: 89 43 20 mov %eax,0x20(%ebx) <== NOT EXECUTED
13315f: c7 43 24 00 00 00 00 movl $0x0,0x24(%ebx) <== NOT EXECUTED
buf->st_blocks = fat_fd->fat_file_size >> FAT_SECTOR512_BITS;
133166: c1 e8 09 shr $0x9,%eax <== NOT EXECUTED
133169: 89 43 44 mov %eax,0x44(%ebx) <== NOT EXECUTED
buf->st_blksize = fs_info->fat.vol.bps;
13316c: 0f b7 06 movzwl (%esi),%eax <== NOT EXECUTED
13316f: 89 43 40 mov %eax,0x40(%ebx) <== NOT EXECUTED
buf->st_mtime = fat_fd->mtime;
133172: 8b 47 40 mov 0x40(%edi),%eax <== NOT EXECUTED
133175: 89 43 30 mov %eax,0x30(%ebx) <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
133178: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13317b: ff b6 94 00 00 00 pushl 0x94(%esi) <== NOT EXECUTED
133181: e8 6e db fd ff call 110cf4 <rtems_semaphore_release><== NOT EXECUTED
133186: 31 c0 xor %eax,%eax <== NOT EXECUTED
return RC_OK;
133188: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
13318b: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13318e: 5b pop %ebx <== NOT EXECUTED
13318f: 5e pop %esi <== NOT EXECUTED
133190: 5f pop %edi <== NOT EXECUTED
133191: c9 leave <== NOT EXECUTED
133192: c3 ret <== NOT EXECUTED
00133278 <msdos_file_sync>:
* RETURNS:
* RC_OK on success, or -1 if error occured (errno set appropriately)
*/
int
msdos_file_sync(rtems_libio_t *iop)
{
133278: 55 push %ebp <== NOT EXECUTED
133279: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13327b: 57 push %edi <== NOT EXECUTED
13327c: 56 push %esi <== NOT EXECUTED
13327d: 53 push %ebx <== NOT EXECUTED
13327e: 83 ec 20 sub $0x20,%esp <== NOT EXECUTED
133281: 8b 7d 08 mov 0x8(%ebp),%edi <== NOT EXECUTED
int rc = RC_OK;
rtems_status_code sc = RTEMS_SUCCESSFUL;
fat_file_fd_t *fat_fd = iop->file_info;
133284: 8b 47 38 mov 0x38(%edi),%eax <== NOT EXECUTED
133287: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
msdos_fs_info_t *fs_info = iop->pathinfo.mt_entry->fs_info;
13328a: 8b 47 28 mov 0x28(%edi),%eax <== NOT EXECUTED
13328d: 8b 70 34 mov 0x34(%eax),%esi <== NOT EXECUTED
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
133290: 6a 00 push $0x0 <== NOT EXECUTED
133292: 6a 00 push $0x0 <== NOT EXECUTED
133294: ff b6 94 00 00 00 pushl 0x94(%esi) <== NOT EXECUTED
13329a: e8 69 d9 fd ff call 110c08 <rtems_semaphore_obtain><== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
13329f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1332a2: 85 c0 test %eax,%eax <== NOT EXECUTED
1332a4: 74 13 je 1332b9 <msdos_file_sync+0x41> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
1332a6: e8 69 ad 00 00 call 13e014 <__errno> <== NOT EXECUTED
1332ab: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
1332b1: 83 cb ff or $0xffffffff,%ebx <== NOT EXECUTED
1332b4: e9 82 00 00 00 jmp 13333b <msdos_file_sync+0xc3> <== NOT EXECUTED
/* synchronize file data */
rc = fat_file_datasync(iop->pathinfo.mt_entry, fat_fd);
1332b9: 50 push %eax <== NOT EXECUTED
1332ba: 50 push %eax <== NOT EXECUTED
1332bb: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
1332be: ff 77 28 pushl 0x28(%edi) <== NOT EXECUTED
1332c1: e8 0e 1b ff ff call 124dd4 <fat_file_datasync> <== NOT EXECUTED
1332c6: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc != RC_OK)
1332c8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1332cb: 85 c0 test %eax,%eax <== NOT EXECUTED
1332cd: 75 49 jne 133318 <msdos_file_sync+0xa0> <== NOT EXECUTED
/*
* if fat-file descriptor is not marked "removed" - synchronize file
* metadata
*/
if (!FAT_FILE_IS_REMOVED(fat_fd))
1332cf: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
1332d2: f6 40 30 01 testb $0x1,0x30(%eax) <== NOT EXECUTED
1332d6: 75 50 jne 133328 <msdos_file_sync+0xb0> <== NOT EXECUTED
{
rc = msdos_set_first_cluster_num(iop->pathinfo.mt_entry, fat_fd);
1332d8: 53 push %ebx <== NOT EXECUTED
1332d9: 53 push %ebx <== NOT EXECUTED
1332da: 50 push %eax <== NOT EXECUTED
1332db: ff 77 28 pushl 0x28(%edi) <== NOT EXECUTED
1332de: e8 94 0e 00 00 call 134177 <msdos_set_first_cluster_num><== NOT EXECUTED
1332e3: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc != RC_OK)
1332e5: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1332e8: 85 c0 test %eax,%eax <== NOT EXECUTED
1332ea: 75 2c jne 133318 <msdos_file_sync+0xa0> <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
return rc;
}
rc = msdos_set_file_size(iop->pathinfo.mt_entry, fat_fd);
1332ec: 51 push %ecx <== NOT EXECUTED
1332ed: 51 push %ecx <== NOT EXECUTED
1332ee: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
1332f1: ff 77 28 pushl 0x28(%edi) <== NOT EXECUTED
1332f4: e8 14 0e 00 00 call 13410d <msdos_set_file_size> <== NOT EXECUTED
1332f9: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc != RC_OK)
1332fb: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1332fe: 85 c0 test %eax,%eax <== NOT EXECUTED
133300: 75 16 jne 133318 <msdos_file_sync+0xa0> <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
return rc;
}
rc = msdos_set_dir_wrt_time_and_date(iop->pathinfo.mt_entry, fat_fd);
133302: 52 push %edx <== NOT EXECUTED
133303: 52 push %edx <== NOT EXECUTED
133304: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
133307: ff 77 28 pushl 0x28(%edi) <== NOT EXECUTED
13330a: e8 09 10 00 00 call 134318 <msdos_set_dir_wrt_time_and_date><== NOT EXECUTED
13330f: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc != RC_OK)
133311: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
133314: 85 c0 test %eax,%eax <== NOT EXECUTED
133316: 74 10 je 133328 <msdos_file_sync+0xb0> <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
133318: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13331b: ff b6 94 00 00 00 pushl 0x94(%esi) <== NOT EXECUTED
133321: e8 ce d9 fd ff call 110cf4 <rtems_semaphore_release><== NOT EXECUTED
133326: eb 10 jmp 133338 <msdos_file_sync+0xc0> <== NOT EXECUTED
return rc;
}
}
rtems_semaphore_release(fs_info->vol_sema);
133328: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13332b: ff b6 94 00 00 00 pushl 0x94(%esi) <== NOT EXECUTED
133331: e8 be d9 fd ff call 110cf4 <rtems_semaphore_release><== NOT EXECUTED
133336: 31 db xor %ebx,%ebx <== NOT EXECUTED
return RC_OK;
133338: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
13333b: 89 d8 mov %ebx,%eax <== NOT EXECUTED
13333d: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
133340: 5b pop %ebx <== NOT EXECUTED
133341: 5e pop %esi <== NOT EXECUTED
133342: 5f pop %edi <== NOT EXECUTED
133343: c9 leave <== NOT EXECUTED
133344: c3 ret <== NOT EXECUTED
001334c7 <msdos_file_write>:
* the number of bytes written on success, or -1 if error occured
* and errno set appropriately
*/
ssize_t
msdos_file_write(rtems_libio_t *iop,const void *buffer, size_t count)
{
1334c7: 55 push %ebp <== NOT EXECUTED
1334c8: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1334ca: 57 push %edi <== NOT EXECUTED
1334cb: 56 push %esi <== NOT EXECUTED
1334cc: 53 push %ebx <== NOT EXECUTED
1334cd: 83 ec 30 sub $0x30,%esp <== NOT EXECUTED
1334d0: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
ssize_t ret = 0;
rtems_status_code sc = RTEMS_SUCCESSFUL;
msdos_fs_info_t *fs_info = iop->pathinfo.mt_entry->fs_info;
1334d3: 8b 46 28 mov 0x28(%esi),%eax <== NOT EXECUTED
1334d6: 8b 48 34 mov 0x34(%eax),%ecx <== NOT EXECUTED
fat_file_fd_t *fat_fd = iop->file_info;
1334d9: 8b 7e 38 mov 0x38(%esi),%edi <== NOT EXECUTED
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
1334dc: 6a 00 push $0x0 <== NOT EXECUTED
1334de: 6a 00 push $0x0 <== NOT EXECUTED
1334e0: ff b1 94 00 00 00 pushl 0x94(%ecx) <== NOT EXECUTED
1334e6: 89 4d cc mov %ecx,-0x34(%ebp) <== NOT EXECUTED
1334e9: e8 1a d7 fd ff call 110c08 <rtems_semaphore_obtain><== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
1334ee: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1334f1: 85 c0 test %eax,%eax <== NOT EXECUTED
1334f3: 8b 4d cc mov -0x34(%ebp),%ecx <== NOT EXECUTED
1334f6: 74 13 je 13350b <msdos_file_write+0x44> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
1334f8: e8 17 ab 00 00 call 13e014 <__errno> <== NOT EXECUTED
1334fd: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
133503: 83 cb ff or $0xffffffff,%ebx <== NOT EXECUTED
133506: e9 99 00 00 00 jmp 1335a4 <msdos_file_write+0xdd> <== NOT EXECUTED
ret = fat_file_write(iop->pathinfo.mt_entry, fat_fd, iop->offset, count,
13350b: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13350e: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
133511: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
133514: ff 76 0c pushl 0xc(%esi) <== NOT EXECUTED
133517: 57 push %edi <== NOT EXECUTED
133518: ff 76 28 pushl 0x28(%esi) <== NOT EXECUTED
13351b: 89 4d cc mov %ecx,-0x34(%ebp) <== NOT EXECUTED
13351e: e8 f6 1c ff ff call 125219 <fat_file_write> <== NOT EXECUTED
133523: 89 c3 mov %eax,%ebx <== NOT EXECUTED
buffer);
if (ret < 0)
133525: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
133528: 85 c0 test %eax,%eax <== NOT EXECUTED
13352a: 8b 4d cc mov -0x34(%ebp),%ecx <== NOT EXECUTED
13352d: 79 13 jns 133542 <msdos_file_write+0x7b> <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
13352f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
133532: ff b1 94 00 00 00 pushl 0x94(%ecx) <== NOT EXECUTED
133538: e8 b7 d7 fd ff call 110cf4 <rtems_semaphore_release><== NOT EXECUTED
13353d: 83 cb ff or $0xffffffff,%ebx <== NOT EXECUTED
133540: eb 5f jmp 1335a1 <msdos_file_write+0xda> <== NOT EXECUTED
/*
* update file size in both fat-file descriptor and file control block if
* file was extended
*/
if (iop->offset + ret > fat_fd->fat_file_size)
133542: 8b 46 0c mov 0xc(%esi),%eax <== NOT EXECUTED
133545: 8b 56 10 mov 0x10(%esi),%edx <== NOT EXECUTED
133548: 89 45 d8 mov %eax,-0x28(%ebp) <== NOT EXECUTED
13354b: 89 55 dc mov %edx,-0x24(%ebp) <== NOT EXECUTED
13354e: 89 5d e0 mov %ebx,-0x20(%ebp) <== NOT EXECUTED
133551: 89 da mov %ebx,%edx <== NOT EXECUTED
133553: c1 fa 1f sar $0x1f,%edx <== NOT EXECUTED
133556: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED
133559: 8b 45 d8 mov -0x28(%ebp),%eax <== NOT EXECUTED
13355c: 8b 55 dc mov -0x24(%ebp),%edx <== NOT EXECUTED
13355f: 01 45 e0 add %eax,-0x20(%ebp) <== NOT EXECUTED
133562: 11 55 e4 adc %edx,-0x1c(%ebp) <== NOT EXECUTED
133565: 8b 47 18 mov 0x18(%edi),%eax <== NOT EXECUTED
133568: 31 d2 xor %edx,%edx <== NOT EXECUTED
13356a: 89 45 d0 mov %eax,-0x30(%ebp) <== NOT EXECUTED
13356d: 89 55 d4 mov %edx,-0x2c(%ebp) <== NOT EXECUTED
133570: 83 7d e4 00 cmpl $0x0,-0x1c(%ebp) <== NOT EXECUTED
133574: 7c 10 jl 133586 <msdos_file_write+0xbf> <== NOT EXECUTED
133576: 7f 05 jg 13357d <msdos_file_write+0xb6> <== NOT EXECUTED
133578: 39 45 e0 cmp %eax,-0x20(%ebp) <== NOT EXECUTED
13357b: 76 09 jbe 133586 <msdos_file_write+0xbf> <== NOT EXECUTED
fat_fd->fat_file_size = iop->offset + ret;
13357d: 8b 55 d8 mov -0x28(%ebp),%edx <== NOT EXECUTED
133580: 8d 04 13 lea (%ebx,%edx,1),%eax <== NOT EXECUTED
133583: 89 47 18 mov %eax,0x18(%edi) <== NOT EXECUTED
iop->size = fat_fd->fat_file_size;
133586: 8b 47 18 mov 0x18(%edi),%eax <== NOT EXECUTED
133589: 89 46 04 mov %eax,0x4(%esi) <== NOT EXECUTED
13358c: c7 46 08 00 00 00 00 movl $0x0,0x8(%esi) <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
133593: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
133596: ff b1 94 00 00 00 pushl 0x94(%ecx) <== NOT EXECUTED
13359c: e8 53 d7 fd ff call 110cf4 <rtems_semaphore_release><== NOT EXECUTED
return ret;
1335a1: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
1335a4: 89 d8 mov %ebx,%eax <== NOT EXECUTED
1335a6: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1335a9: 5b pop %ebx <== NOT EXECUTED
1335aa: 5e pop %esi <== NOT EXECUTED
1335ab: 5f pop %edi <== NOT EXECUTED
1335ac: c9 leave <== NOT EXECUTED
1335ad: c3 ret <== NOT EXECUTED
0013c955 <msdos_filename_unix2dos>:
* Convert a unix filename to a DOS filename. Return -1 if wrong name is
* supplied.
*/
int
msdos_filename_unix2dos(const char *un, int unlen, char *dn)
{
13c955: 55 push %ebp <== NOT EXECUTED
13c956: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13c958: 57 push %edi <== NOT EXECUTED
13c959: 56 push %esi <== NOT EXECUTED
13c95a: 53 push %ebx <== NOT EXECUTED
13c95b: 83 ec 04 sub $0x4,%esp <== NOT EXECUTED
13c95e: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
13c961: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
13c964: 8b 4d 10 mov 0x10(%ebp),%ecx <== NOT EXECUTED
13c967: 31 db xor %ebx,%ebx <== NOT EXECUTED
/*
* Fill the dos filename string with blanks. These are DOS's pad
* characters.
*/
for (i = 0; i <= 10; i++)
dn[i] = ' ';
13c969: c6 04 19 20 movb $0x20,(%ecx,%ebx,1) <== NOT EXECUTED
/*
* Fill the dos filename string with blanks. These are DOS's pad
* characters.
*/
for (i = 0; i <= 10; i++)
13c96d: 43 inc %ebx <== NOT EXECUTED
13c96e: 83 fb 0b cmp $0xb,%ebx <== NOT EXECUTED
13c971: 75 f6 jne 13c969 <msdos_filename_unix2dos+0x14><== NOT EXECUTED
/*
* The filenames "." and ".." are handled specially, since they
* don't follow dos filename rules.
*/
if (un[0] == '.' && unlen == 1) {
13c973: 80 3a 2e cmpb $0x2e,(%edx) <== NOT EXECUTED
13c976: 0f 94 c3 sete %bl <== NOT EXECUTED
13c979: 83 f8 01 cmp $0x1,%eax <== NOT EXECUTED
13c97c: 75 0c jne 13c98a <msdos_filename_unix2dos+0x35><== NOT EXECUTED
13c97e: 84 db test %bl,%bl <== NOT EXECUTED
13c980: 74 25 je 13c9a7 <msdos_filename_unix2dos+0x52><== NOT EXECUTED
dn[0] = '.';
13c982: c6 01 2e movb $0x2e,(%ecx) <== NOT EXECUTED
return 0;
13c985: e9 a0 00 00 00 jmp 13ca2a <msdos_filename_unix2dos+0xd5><== NOT EXECUTED
}
if (un[0] == '.' && un[1] == '.' && unlen == 2) {
13c98a: 84 db test %bl,%bl <== NOT EXECUTED
13c98c: 74 19 je 13c9a7 <msdos_filename_unix2dos+0x52><== NOT EXECUTED
13c98e: 80 7a 01 2e cmpb $0x2e,0x1(%edx) <== NOT EXECUTED
13c992: 75 13 jne 13c9a7 <msdos_filename_unix2dos+0x52><== NOT EXECUTED
13c994: 83 f8 02 cmp $0x2,%eax <== NOT EXECUTED
13c997: 75 0e jne 13c9a7 <msdos_filename_unix2dos+0x52><== NOT EXECUTED
dn[0] = '.';
13c999: c6 01 2e movb $0x2e,(%ecx) <== NOT EXECUTED
dn[1] = '.';
13c99c: c6 41 01 2e movb $0x2e,0x1(%ecx) <== NOT EXECUTED
return 0;
13c9a0: e9 85 00 00 00 jmp 13ca2a <msdos_filename_unix2dos+0xd5><== NOT EXECUTED
/*
* Remove any dots from the start of a file name.
*/
while (unlen && (*un == '.')) {
un++;
13c9a5: 42 inc %edx <== NOT EXECUTED
unlen--;
13c9a6: 48 dec %eax <== NOT EXECUTED
}
/*
* Remove any dots from the start of a file name.
*/
while (unlen && (*un == '.')) {
13c9a7: 85 c0 test %eax,%eax <== NOT EXECUTED
13c9a9: 75 04 jne 13c9af <msdos_filename_unix2dos+0x5a><== NOT EXECUTED
13c9ab: 31 ff xor %edi,%edi <== NOT EXECUTED
13c9ad: eb 1e jmp 13c9cd <msdos_filename_unix2dos+0x78><== NOT EXECUTED
13c9af: 80 3a 2e cmpb $0x2e,(%edx) <== NOT EXECUTED
13c9b2: 74 f1 je 13c9a5 <msdos_filename_unix2dos+0x50><== NOT EXECUTED
13c9b4: eb f5 jmp 13c9ab <msdos_filename_unix2dos+0x56><== NOT EXECUTED
* of string, a '.', or 8 characters. Whichever happens first stops
* us. This forms the name portion of the dos filename. Fold to
* upper case.
*/
for (i = 0; i <= 7 && unlen && (c = *un) && c != '.'; i++) {
if (msdos_map[c] == 0)
13c9b6: 0f b6 75 f3 movzbl -0xd(%ebp),%esi <== NOT EXECUTED
13c9ba: 0f b6 b6 20 f1 15 00 movzbl 0x15f120(%esi),%esi <== NOT EXECUTED
13c9c1: 89 f3 mov %esi,%ebx <== NOT EXECUTED
13c9c3: 84 db test %bl,%bl <== NOT EXECUTED
13c9c5: 74 26 je 13c9ed <msdos_filename_unix2dos+0x98><== NOT EXECUTED
break;
dn[i] = msdos_map[c];
13c9c7: 88 1c 39 mov %bl,(%ecx,%edi,1) <== NOT EXECUTED
un++;
13c9ca: 42 inc %edx <== NOT EXECUTED
unlen--;
13c9cb: 48 dec %eax <== NOT EXECUTED
* Copy the unix filename into the dos filename string upto the end
* of string, a '.', or 8 characters. Whichever happens first stops
* us. This forms the name portion of the dos filename. Fold to
* upper case.
*/
for (i = 0; i <= 7 && unlen && (c = *un) && c != '.'; i++) {
13c9cc: 47 inc %edi <== NOT EXECUTED
13c9cd: 85 c0 test %eax,%eax <== NOT EXECUTED
13c9cf: 74 26 je 13c9f7 <msdos_filename_unix2dos+0xa2><== NOT EXECUTED
13c9d1: 83 ff 07 cmp $0x7,%edi <== NOT EXECUTED
13c9d4: 7f 17 jg 13c9ed <msdos_filename_unix2dos+0x98><== NOT EXECUTED
13c9d6: 8a 1a mov (%edx),%bl <== NOT EXECUTED
13c9d8: 88 5d f3 mov %bl,-0xd(%ebp) <== NOT EXECUTED
13c9db: 84 db test %bl,%bl <== NOT EXECUTED
13c9dd: 74 0e je 13c9ed <msdos_filename_unix2dos+0x98><== NOT EXECUTED
13c9df: 80 fb 2e cmp $0x2e,%bl <== NOT EXECUTED
13c9e2: 75 d2 jne 13c9b6 <msdos_filename_unix2dos+0x61><== NOT EXECUTED
13c9e4: eb 07 jmp 13c9ed <msdos_filename_unix2dos+0x98><== NOT EXECUTED
/*
* Strip any further characters up to a '.' or the end of the
* string.
*/
while (unlen && (c = *un)) {
un++;
13c9e6: 42 inc %edx <== NOT EXECUTED
unlen--;
13c9e7: 48 dec %eax <== NOT EXECUTED
/* Make sure we've skipped over the dot before stopping. */
if (c == '.')
13c9e8: 80 fb 2e cmp $0x2e,%bl <== NOT EXECUTED
13c9eb: 74 0a je 13c9f7 <msdos_filename_unix2dos+0xa2><== NOT EXECUTED
/*
* Strip any further characters up to a '.' or the end of the
* string.
*/
while (unlen && (c = *un)) {
13c9ed: 85 c0 test %eax,%eax <== NOT EXECUTED
13c9ef: 74 06 je 13c9f7 <msdos_filename_unix2dos+0xa2><== NOT EXECUTED
13c9f1: 8a 1a mov (%edx),%bl <== NOT EXECUTED
13c9f3: 84 db test %bl,%bl <== NOT EXECUTED
13c9f5: 75 ef jne 13c9e6 <msdos_filename_unix2dos+0x91><== NOT EXECUTED
13c9f7: bf 08 00 00 00 mov $0x8,%edi <== NOT EXECUTED
13c9fc: eb 18 jmp 13ca16 <msdos_filename_unix2dos+0xc1><== NOT EXECUTED
* Copy in the extension part of the name, if any. Force to upper
* case. Note that the extension is allowed to contain '.'s.
* Filenames in this form are probably inaccessable under dos.
*/
for (i = 8; i <= 10 && unlen && (c = *un); i++) {
if (msdos_map[c] == 0)
13c9fe: 81 e6 ff 00 00 00 and $0xff,%esi <== NOT EXECUTED
13ca04: 0f b6 b6 20 f1 15 00 movzbl 0x15f120(%esi),%esi <== NOT EXECUTED
13ca0b: 89 f3 mov %esi,%ebx <== NOT EXECUTED
13ca0d: 84 db test %bl,%bl <== NOT EXECUTED
13ca0f: 74 19 je 13ca2a <msdos_filename_unix2dos+0xd5><== NOT EXECUTED
break;
dn[i] = msdos_map[c];
13ca11: 88 1c 39 mov %bl,(%ecx,%edi,1) <== NOT EXECUTED
un++;
unlen--;
13ca14: 48 dec %eax <== NOT EXECUTED
/*
* Copy in the extension part of the name, if any. Force to upper
* case. Note that the extension is allowed to contain '.'s.
* Filenames in this form are probably inaccessable under dos.
*/
for (i = 8; i <= 10 && unlen && (c = *un); i++) {
13ca15: 47 inc %edi <== NOT EXECUTED
13ca16: 85 c0 test %eax,%eax <== NOT EXECUTED
13ca18: 74 10 je 13ca2a <msdos_filename_unix2dos+0xd5><== NOT EXECUTED
13ca1a: 83 ff 0a cmp $0xa,%edi <== NOT EXECUTED
13ca1d: 7f 0b jg 13ca2a <msdos_filename_unix2dos+0xd5><== NOT EXECUTED
13ca1f: 0f b6 74 3a f8 movzbl -0x8(%edx,%edi,1),%esi <== NOT EXECUTED
13ca24: 89 f3 mov %esi,%ebx <== NOT EXECUTED
13ca26: 84 db test %bl,%bl <== NOT EXECUTED
13ca28: 75 d4 jne 13c9fe <msdos_filename_unix2dos+0xa9><== NOT EXECUTED
dn[i] = msdos_map[c];
un++;
unlen--;
}
return 0;
}
13ca2a: 31 c0 xor %eax,%eax <== NOT EXECUTED
13ca2c: 59 pop %ecx <== NOT EXECUTED
13ca2d: 5b pop %ebx <== NOT EXECUTED
13ca2e: 5e pop %esi <== NOT EXECUTED
13ca2f: 5f pop %edi <== NOT EXECUTED
13ca30: c9 leave <== NOT EXECUTED
13ca31: c3 ret <== NOT EXECUTED
001348f7 <msdos_find_name>:
msdos_find_name(
rtems_filesystem_location_info_t *parent_loc,
const char *name,
int name_len
)
{
1348f7: 55 push %ebp <== NOT EXECUTED
1348f8: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1348fa: 57 push %edi <== NOT EXECUTED
1348fb: 56 push %esi <== NOT EXECUTED
1348fc: 53 push %ebx <== NOT EXECUTED
1348fd: 83 ec 5c sub $0x5c,%esp <== NOT EXECUTED
134900: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
int rc = RC_OK;
msdos_fs_info_t *fs_info = parent_loc->mt_entry->fs_info;
134903: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
134906: 8b 41 10 mov 0x10(%ecx),%eax <== NOT EXECUTED
134909: 8b 40 34 mov 0x34(%eax),%eax <== NOT EXECUTED
13490c: 89 45 a4 mov %eax,-0x5c(%ebp) <== NOT EXECUTED
fat_file_fd_t *fat_fd = NULL;
13490f: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) <== NOT EXECUTED
fat_dir_pos_t dir_pos;
unsigned short time_val = 0;
unsigned short date = 0;
char node_entry[MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE];
memset(node_entry, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
134916: 8d 5d b4 lea -0x4c(%ebp),%ebx <== NOT EXECUTED
134919: b9 08 00 00 00 mov $0x8,%ecx <== NOT EXECUTED
13491e: 31 c0 xor %eax,%eax <== NOT EXECUTED
134920: 89 df mov %ebx,%edi <== NOT EXECUTED
134922: f3 ab rep stos %eax,%es:(%edi) <== NOT EXECUTED
name_type = msdos_long_to_short (name,
134924: 6a 0b push $0xb <== NOT EXECUTED
134926: 53 push %ebx <== NOT EXECUTED
134927: 52 push %edx <== NOT EXECUTED
134928: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
13492b: 89 55 a0 mov %edx,-0x60(%ebp) <== NOT EXECUTED
13492e: e8 93 fb ff ff call 1344c6 <msdos_long_to_short> <== NOT EXECUTED
/*
* find the node which correspondes to the name in the directory pointed by
* 'parent_loc'
*/
rc = msdos_get_name_node(parent_loc, false, name, name_len, name_type,
134933: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
134936: 53 push %ebx <== NOT EXECUTED
134937: 8d 75 d4 lea -0x2c(%ebp),%esi <== NOT EXECUTED
13493a: 56 push %esi <== NOT EXECUTED
13493b: 50 push %eax <== NOT EXECUTED
13493c: 8b 55 a0 mov -0x60(%ebp),%edx <== NOT EXECUTED
13493f: 52 push %edx <== NOT EXECUTED
134940: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
134943: 6a 00 push $0x0 <== NOT EXECUTED
134945: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
134948: e8 de fe ff ff call 13482b <msdos_get_name_node> <== NOT EXECUTED
13494d: 89 c7 mov %eax,%edi <== NOT EXECUTED
&dir_pos, node_entry);
if (rc != RC_OK)
13494f: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
134952: 85 c0 test %eax,%eax <== NOT EXECUTED
134954: 0f 85 33 01 00 00 jne 134a8d <msdos_find_name+0x196> <== NOT EXECUTED
return rc;
if (((*MSDOS_DIR_ATTR(node_entry)) & MSDOS_ATTR_VOLUME_ID) ||
13495a: 0f b6 45 bf movzbl -0x41(%ebp),%eax <== NOT EXECUTED
13495e: a8 08 test $0x8,%al <== NOT EXECUTED
134960: 0f 85 22 01 00 00 jne 134a88 <msdos_find_name+0x191> <== NOT EXECUTED
134966: 83 e0 3f and $0x3f,%eax <== NOT EXECUTED
134969: 83 f8 0f cmp $0xf,%eax <== NOT EXECUTED
13496c: 0f 84 16 01 00 00 je 134a88 <msdos_find_name+0x191> <== NOT EXECUTED
((*MSDOS_DIR_ATTR(node_entry) & MSDOS_ATTR_LFN_MASK) == MSDOS_ATTR_LFN))
return MSDOS_NAME_NOT_FOUND_ERR;
/* open fat-file corresponded to the found node */
rc = fat_file_open(parent_loc->mt_entry, &dir_pos, &fat_fd);
134972: 50 push %eax <== NOT EXECUTED
134973: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
134976: 50 push %eax <== NOT EXECUTED
134977: 56 push %esi <== NOT EXECUTED
134978: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
13497b: ff 70 10 pushl 0x10(%eax) <== NOT EXECUTED
13497e: e8 f9 0c ff ff call 12567c <fat_file_open> <== NOT EXECUTED
134983: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc != RC_OK)
134985: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
134988: 85 c0 test %eax,%eax <== NOT EXECUTED
13498a: 0f 85 fd 00 00 00 jne 134a8d <msdos_find_name+0x196> <== NOT EXECUTED
return rc;
fat_fd->dir_pos = dir_pos;
134990: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
134993: 8d 7a 20 lea 0x20(%edx),%edi <== NOT EXECUTED
134996: b9 04 00 00 00 mov $0x4,%ecx <== NOT EXECUTED
13499b: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED
* size and first cluster num to the disk after each write operation
* (even if one byte is written - that is TOO slow) because
* otherwise real values of these fields stored in fat-file descriptor
* may be accidentally rewritten with wrong values stored on the disk
*/
if (fat_fd->links_num == 1)
13499d: 83 7a 08 01 cmpl $0x1,0x8(%edx) <== NOT EXECUTED
1349a1: 0f 85 aa 00 00 00 jne 134a51 <msdos_find_name+0x15a> <== NOT EXECUTED
{
fat_fd->cln = MSDOS_EXTRACT_CLUSTER_NUM(node_entry);
1349a7: 0f b7 43 14 movzwl 0x14(%ebx),%eax <== NOT EXECUTED
1349ab: c1 e0 10 shl $0x10,%eax <== NOT EXECUTED
1349ae: 0f b7 4b 1a movzwl 0x1a(%ebx),%ecx <== NOT EXECUTED
1349b2: 09 c8 or %ecx,%eax <== NOT EXECUTED
1349b4: 89 42 1c mov %eax,0x1c(%edx) <== NOT EXECUTED
time_val = *MSDOS_DIR_WRITE_TIME(node_entry);
date = *MSDOS_DIR_WRITE_DATE(node_entry);
fat_fd->mtime = msdos_date_dos2unix(CF_LE_W(date), CF_LE_W(time_val));
1349b7: 57 push %edi <== NOT EXECUTED
1349b8: 57 push %edi <== NOT EXECUTED
1349b9: 0f b7 43 16 movzwl 0x16(%ebx),%eax <== NOT EXECUTED
1349bd: 50 push %eax <== NOT EXECUTED
1349be: 0f b7 43 18 movzwl 0x18(%ebx),%eax <== NOT EXECUTED
1349c2: 50 push %eax <== NOT EXECUTED
1349c3: 89 55 a0 mov %edx,-0x60(%ebp) <== NOT EXECUTED
1349c6: e8 c4 7e 00 00 call 13c88f <msdos_date_dos2unix> <== NOT EXECUTED
1349cb: 8b 55 a0 mov -0x60(%ebp),%edx <== NOT EXECUTED
1349ce: 89 42 40 mov %eax,0x40(%edx) <== NOT EXECUTED
if ((*MSDOS_DIR_ATTR(node_entry)) & MSDOS_ATTR_DIRECTORY)
1349d1: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1349d4: f6 45 bf 10 testb $0x10,-0x41(%ebp) <== NOT EXECUTED
1349d8: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
1349db: 74 32 je 134a0f <msdos_find_name+0x118> <== NOT EXECUTED
{
fat_fd->fat_file_type = FAT_DIRECTORY;
1349dd: c7 40 10 01 00 00 00 movl $0x1,0x10(%eax) <== NOT EXECUTED
fat_fd->size_limit = MSDOS_MAX_DIR_LENGHT;
1349e4: c7 40 14 00 00 20 00 movl $0x200000,0x14(%eax) <== NOT EXECUTED
rc = fat_file_size(parent_loc->mt_entry, fat_fd);
1349eb: 56 push %esi <== NOT EXECUTED
1349ec: 56 push %esi <== NOT EXECUTED
1349ed: 50 push %eax <== NOT EXECUTED
1349ee: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
1349f1: ff 72 10 pushl 0x10(%edx) <== NOT EXECUTED
1349f4: e8 e0 02 ff ff call 124cd9 <fat_file_size> <== NOT EXECUTED
1349f9: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc != RC_OK)
1349fb: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1349fe: 85 c0 test %eax,%eax <== NOT EXECUTED
134a00: 74 21 je 134a23 <msdos_find_name+0x12c> <== NOT EXECUTED
{
fat_file_close(parent_loc->mt_entry, fat_fd);
134a02: 53 push %ebx <== NOT EXECUTED
134a03: 53 push %ebx <== NOT EXECUTED
134a04: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
134a07: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
134a0a: ff 71 10 pushl 0x10(%ecx) <== NOT EXECUTED
134a0d: eb 65 jmp 134a74 <msdos_find_name+0x17d> <== NOT EXECUTED
return rc;
}
}
else
{
fat_fd->fat_file_size = CF_LE_L(*MSDOS_DIR_FILE_SIZE(node_entry));
134a0f: 8b 53 1c mov 0x1c(%ebx),%edx <== NOT EXECUTED
134a12: 89 50 18 mov %edx,0x18(%eax) <== NOT EXECUTED
fat_fd->fat_file_type = FAT_FILE;
134a15: c7 40 10 05 00 00 00 movl $0x5,0x10(%eax) <== NOT EXECUTED
fat_fd->size_limit = MSDOS_MAX_FILE_SIZE;
134a1c: c7 40 14 ff ff ff ff movl $0xffffffff,0x14(%eax) <== NOT EXECUTED
}
/* these data is not actual for zero-length fat-file */
fat_fd->map.file_cln = 0;
134a23: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
134a26: c7 40 34 00 00 00 00 movl $0x0,0x34(%eax) <== NOT EXECUTED
fat_fd->map.disk_cln = fat_fd->cln;
134a2d: 8b 50 1c mov 0x1c(%eax),%edx <== NOT EXECUTED
134a30: 89 50 38 mov %edx,0x38(%eax) <== NOT EXECUTED
if ((fat_fd->fat_file_size != 0) &&
134a33: 8b 48 18 mov 0x18(%eax),%ecx <== NOT EXECUTED
134a36: 85 c9 test %ecx,%ecx <== NOT EXECUTED
134a38: 74 10 je 134a4a <msdos_find_name+0x153> <== NOT EXECUTED
(fat_fd->fat_file_size <= fs_info->fat.vol.bpc))
134a3a: 8b 75 a4 mov -0x5c(%ebp),%esi <== NOT EXECUTED
134a3d: 0f b7 5e 06 movzwl 0x6(%esi),%ebx <== NOT EXECUTED
134a41: 39 d9 cmp %ebx,%ecx <== NOT EXECUTED
134a43: 77 05 ja 134a4a <msdos_find_name+0x153> <== NOT EXECUTED
{
fat_fd->map.last_cln = fat_fd->cln;
134a45: 89 50 3c mov %edx,0x3c(%eax) <== NOT EXECUTED
/* these data is not actual for zero-length fat-file */
fat_fd->map.file_cln = 0;
fat_fd->map.disk_cln = fat_fd->cln;
if ((fat_fd->fat_file_size != 0) &&
134a48: eb 07 jmp 134a51 <msdos_find_name+0x15a> <== NOT EXECUTED
{
fat_fd->map.last_cln = fat_fd->cln;
}
else
{
fat_fd->map.last_cln = FAT_UNDEFINED_VALUE;
134a4a: c7 40 3c ff ff ff ff movl $0xffffffff,0x3c(%eax) <== NOT EXECUTED
}
}
/* close fat-file corresponded to the node we searched in */
rc = fat_file_close(parent_loc->mt_entry, parent_loc->node_access);
134a51: 51 push %ecx <== NOT EXECUTED
134a52: 51 push %ecx <== NOT EXECUTED
134a53: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
134a56: ff 30 pushl (%eax) <== NOT EXECUTED
134a58: ff 70 10 pushl 0x10(%eax) <== NOT EXECUTED
134a5b: e8 6d 0b ff ff call 1255cd <fat_file_close> <== NOT EXECUTED
134a60: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc != RC_OK)
134a62: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
134a65: 85 c0 test %eax,%eax <== NOT EXECUTED
134a67: 74 15 je 134a7e <msdos_find_name+0x187> <== NOT EXECUTED
{
fat_file_close(parent_loc->mt_entry, fat_fd);
134a69: 52 push %edx <== NOT EXECUTED
134a6a: 52 push %edx <== NOT EXECUTED
134a6b: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
134a6e: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
134a71: ff 72 10 pushl 0x10(%edx) <== NOT EXECUTED
134a74: e8 54 0b ff ff call 1255cd <fat_file_close> <== NOT EXECUTED
return rc;
134a79: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
134a7c: eb 0f jmp 134a8d <msdos_find_name+0x196> <== NOT EXECUTED
}
/* update node_info_ptr field */
parent_loc->node_access = fat_fd;
134a7e: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
134a81: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
134a84: 89 01 mov %eax,(%ecx) <== NOT EXECUTED
return rc;
134a86: eb 05 jmp 134a8d <msdos_find_name+0x196> <== NOT EXECUTED
134a88: bf 01 7d 00 00 mov $0x7d01,%edi <== NOT EXECUTED
}
134a8d: 89 f8 mov %edi,%eax <== NOT EXECUTED
134a8f: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
134a92: 5b pop %ebx <== NOT EXECUTED
134a93: 5e pop %esi <== NOT EXECUTED
134a94: 5f pop %edi <== NOT EXECUTED
134a95: c9 leave <== NOT EXECUTED
134a96: c3 ret <== NOT EXECUTED
00133943 <msdos_find_name_in_fat_file>:
int name_len,
msdos_name_type_t name_type,
fat_dir_pos_t *dir_pos,
char *name_dir_entry
)
{
133943: 55 push %ebp <== NOT EXECUTED
133944: 89 e5 mov %esp,%ebp <== NOT EXECUTED
133946: 57 push %edi <== NOT EXECUTED
133947: 56 push %esi <== NOT EXECUTED
133948: 53 push %ebx <== NOT EXECUTED
133949: 83 ec 7c sub $0x7c,%esp <== NOT EXECUTED
13394c: 8a 45 10 mov 0x10(%ebp),%al <== NOT EXECUTED
13394f: 88 45 d0 mov %al,-0x30(%ebp) <== NOT EXECUTED
ssize_t ret = 0;
msdos_fs_info_t *fs_info = mt_entry->fs_info;
133952: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
133955: 8b 52 34 mov 0x34(%edx),%edx <== NOT EXECUTED
133958: 89 55 b0 mov %edx,-0x50(%ebp) <== NOT EXECUTED
uint32_t empty_space_count = 0;
bool empty_space_found = false;
uint32_t entries_per_block;
bool read_cluster = false;
assert(name_len > 0);
13395b: 83 7d 18 00 cmpl $0x0,0x18(%ebp) <== NOT EXECUTED
13395f: 7f 14 jg 133975 <msdos_find_name_in_fat_file+0x32><== NOT EXECUTED
133961: 68 7f e1 15 00 push $0x15e17f <== NOT EXECUTED
133966: 68 08 e2 15 00 push $0x15e208 <== NOT EXECUTED
13396b: 68 19 04 00 00 push $0x419 <== NOT EXECUTED
133970: e9 cf 00 00 00 jmp 133a44 <msdos_find_name_in_fat_file+0x101><== NOT EXECUTED
static inline void
fat_dir_pos_init(
fat_dir_pos_t *dir_pos
)
{
dir_pos->sname.cln = 0;
133975: 8b 4d 20 mov 0x20(%ebp),%ecx <== NOT EXECUTED
133978: c7 01 00 00 00 00 movl $0x0,(%ecx) <== NOT EXECUTED
dir_pos->sname.ofs = 0;
13397e: c7 41 04 00 00 00 00 movl $0x0,0x4(%ecx) <== NOT EXECUTED
dir_pos->lname.cln = FAT_FILE_SHORT_NAME;
133985: c7 41 08 ff ff ff ff movl $0xffffffff,0x8(%ecx) <== NOT EXECUTED
dir_pos->lname.ofs = FAT_FILE_SHORT_NAME;
13398c: c7 41 0c ff ff ff ff movl $0xffffffff,0xc(%ecx) <== NOT EXECUTED
* is short still check for possible long entries with the short name.
*
* In PR1491 we need to have a LFN for a short file name entry. To
* test this make this test always fail, ie add "0 &&".
*/
if (create_node && (name_type == MSDOS_NAME_SHORT))
133993: 80 7d d0 00 cmpb $0x0,-0x30(%ebp) <== NOT EXECUTED
133997: 74 0d je 1339a6 <msdos_find_name_in_fat_file+0x63><== NOT EXECUTED
133999: c7 45 b4 00 00 00 00 movl $0x0,-0x4c(%ebp) <== NOT EXECUTED
1339a0: 83 7d 1c 01 cmpl $0x1,0x1c(%ebp) <== NOT EXECUTED
1339a4: 74 13 je 1339b9 <msdos_find_name_in_fat_file+0x76><== NOT EXECUTED
lfn_entries = 0;
else
lfn_entries =
1339a6: 8b 55 18 mov 0x18(%ebp),%edx <== NOT EXECUTED
1339a9: 83 c2 0c add $0xc,%edx <== NOT EXECUTED
1339ac: b9 0d 00 00 00 mov $0xd,%ecx <== NOT EXECUTED
1339b1: 89 d0 mov %edx,%eax <== NOT EXECUTED
1339b3: 99 cltd <== NOT EXECUTED
1339b4: f7 f9 idiv %ecx <== NOT EXECUTED
1339b6: 89 45 b4 mov %eax,-0x4c(%ebp) <== NOT EXECUTED
((name_len - 1) + MSDOS_LFN_LEN_PER_ENTRY) / MSDOS_LFN_LEN_PER_ENTRY;
if (FAT_FD_OF_ROOT_DIR(fat_fd) &&
1339b9: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
1339bc: 83 7a 20 01 cmpl $0x1,0x20(%edx) <== NOT EXECUTED
1339c0: 75 17 jne 1339d9 <msdos_find_name_in_fat_file+0x96><== NOT EXECUTED
1339c2: 83 7a 24 00 cmpl $0x0,0x24(%edx) <== NOT EXECUTED
1339c6: 75 11 jne 1339d9 <msdos_find_name_in_fat_file+0x96><== NOT EXECUTED
(fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16)))
1339c8: 8b 4d b0 mov -0x50(%ebp),%ecx <== NOT EXECUTED
1339cb: f6 41 0a 03 testb $0x3,0xa(%ecx) <== NOT EXECUTED
1339cf: 74 08 je 1339d9 <msdos_find_name_in_fat_file+0x96><== NOT EXECUTED
bts2rd = fat_fd->fat_file_size;
1339d1: 8b 72 18 mov 0x18(%edx),%esi <== NOT EXECUTED
1339d4: 89 75 d4 mov %esi,-0x2c(%ebp) <== NOT EXECUTED
lfn_entries = 0;
else
lfn_entries =
((name_len - 1) + MSDOS_LFN_LEN_PER_ENTRY) / MSDOS_LFN_LEN_PER_ENTRY;
if (FAT_FD_OF_ROOT_DIR(fat_fd) &&
1339d7: eb 0a jmp 1339e3 <msdos_find_name_in_fat_file+0xa0><== NOT EXECUTED
(fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16)))
bts2rd = fat_fd->fat_file_size;
else
bts2rd = fs_info->fat.vol.bpc;
1339d9: 8b 7d b0 mov -0x50(%ebp),%edi <== NOT EXECUTED
1339dc: 0f b7 7f 06 movzwl 0x6(%edi),%edi <== NOT EXECUTED
1339e0: 89 7d d4 mov %edi,-0x2c(%ebp) <== NOT EXECUTED
assert(name_len > 0);
fat_dir_pos_init(dir_pos);
lfn_start.cln = lfn_start.ofs = FAT_FILE_SHORT_NAME;
1339e3: c7 45 e0 ff ff ff ff movl $0xffffffff,-0x20(%ebp) <== NOT EXECUTED
1339ea: c7 45 dc ff ff ff ff movl $0xffffffff,-0x24(%ebp) <== NOT EXECUTED
1339f1: c7 45 ac 00 00 00 00 movl $0x0,-0x54(%ebp) <== NOT EXECUTED
1339f8: c6 45 9c 00 movb $0x0,-0x64(%ebp) <== NOT EXECUTED
1339fc: 31 db xor %ebx,%ebx <== NOT EXECUTED
1339fe: c7 45 a8 00 00 00 00 movl $0x0,-0x58(%ebp) <== NOT EXECUTED
133a05: c7 45 a4 00 00 00 00 movl $0x0,-0x5c(%ebp) <== NOT EXECUTED
133a0c: 31 ff xor %edi,%edi <== NOT EXECUTED
133a0e: c6 45 9b 00 movb $0x0,-0x65(%ebp) <== NOT EXECUTED
133a12: 31 d2 xor %edx,%edx <== NOT EXECUTED
133a14: c7 45 cc 00 00 00 00 movl $0x0,-0x34(%ebp) <== NOT EXECUTED
/*
* Remainder is not empty so is this entry empty ?
*/
empty_space_count++;
if (empty_space_count == (lfn_entries + 1))
133a1b: 8b 45 b4 mov -0x4c(%ebp),%eax <== NOT EXECUTED
133a1e: 40 inc %eax <== NOT EXECUTED
133a1f: 89 45 8c mov %eax,-0x74(%ebp) <== NOT EXECUTED
/*
* Scan the directory seeing if the file is present. While
* doing this see if a suitable location can be found to
* create the entry if the name is not found.
*/
while ((ret = fat_file_read(mt_entry, fat_fd, (dir_offset * bts2rd),
133a22: e9 9e 02 00 00 jmp 133cc5 <msdos_find_name_in_fat_file+0x382><== NOT EXECUTED
bool remainder_empty = false;
#if MSDOS_FIND_PRINT
printf ("MSFS:[2] dir_offset:%li\n", dir_offset);
#endif
if (ret < MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)
133a27: 83 f8 1f cmp $0x1f,%eax <== NOT EXECUTED
133a2a: 0f 8e bc 05 00 00 jle 133fec <msdos_find_name_in_fat_file+0x6a9><== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
assert(ret == bts2rd);
133a30: 3b 45 d4 cmp -0x2c(%ebp),%eax <== NOT EXECUTED
133a33: 74 19 je 133a4e <msdos_find_name_in_fat_file+0x10b><== NOT EXECUTED
133a35: 68 20 e1 15 00 push $0x15e120 <== NOT EXECUTED
133a3a: 68 08 e2 15 00 push $0x15e208 <== NOT EXECUTED
133a3f: 68 49 04 00 00 push $0x449 <== NOT EXECUTED
133a44: 68 2e e1 15 00 push $0x15e12e <== NOT EXECUTED
133a49: e8 62 8e fd ff call 10c8b0 <__assert_func> <== NOT EXECUTED
133a4e: 31 c9 xor %ecx,%ecx <== NOT EXECUTED
/* have to look at the DIR_NAME as "raw" 8-bit data */
for (dir_entry = 0;
dir_entry < bts2rd;
dir_entry += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)
{
char* entry = (char*) fs_info->cl_buf + dir_entry;
133a50: 8b 45 b0 mov -0x50(%ebp),%eax <== NOT EXECUTED
133a53: 8b b0 98 00 00 00 mov 0x98(%eax),%esi <== NOT EXECUTED
133a59: 01 ce add %ecx,%esi <== NOT EXECUTED
/*
* See if the entry is empty or the remainder of the directory is
* empty ? Localise to make the code read better.
*/
bool entry_empty = (*MSDOS_DIR_ENTRY_TYPE(entry) ==
133a5b: 89 75 b8 mov %esi,-0x48(%ebp) <== NOT EXECUTED
133a5e: 8a 06 mov (%esi),%al <== NOT EXECUTED
133a60: 88 45 a0 mov %al,-0x60(%ebp) <== NOT EXECUTED
* to here and write the long file name if this is the start of
* a series of empty entries. If empty_space_count is 0 then
* we are currently not inside an empty series of entries. It
* is a count of empty entries.
*/
if (empty_space_count == 0)
133a63: 85 db test %ebx,%ebx <== NOT EXECUTED
133a65: 75 09 jne 133a70 <msdos_find_name_in_fat_file+0x12d><== NOT EXECUTED
133a67: 89 4d a8 mov %ecx,-0x58(%ebp) <== NOT EXECUTED
133a6a: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED
133a6d: 89 45 a4 mov %eax,-0x5c(%ebp) <== NOT EXECUTED
{
empty_space_entry = dir_entry;
empty_space_offset = dir_offset;
}
if (remainder_empty)
133a70: 80 7d a0 00 cmpb $0x0,-0x60(%ebp) <== NOT EXECUTED
133a74: 75 26 jne 133a9c <msdos_find_name_in_fat_file+0x159><== NOT EXECUTED
#endif
/*
* If just looking and there is no more entries in the
* directory - return name-not-found
*/
if (!create_node)
133a76: 80 7d d0 00 cmpb $0x0,-0x30(%ebp) <== NOT EXECUTED
133a7a: 0f 84 95 05 00 00 je 134015 <msdos_find_name_in_fat_file+0x6d2><== NOT EXECUTED
* Lets go and write the directory entries. If we have not found
* any available space add the remaining number of entries to any that
* we may have already found that are just before this entry. If more
* are needed FAT_EOF is returned by the read and we extend the file.
*/
if (!empty_space_found)
133a80: 80 7d 9c 00 cmpb $0x0,-0x64(%ebp) <== NOT EXECUTED
133a84: 0f 85 73 02 00 00 jne 133cfd <msdos_find_name_in_fat_file+0x3ba><== NOT EXECUTED
{
empty_space_count +=
entries_per_block - (dir_entry / MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
133a8a: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED
133a8d: c1 e8 05 shr $0x5,%eax <== NOT EXECUTED
133a90: 01 c3 add %eax,%ebx <== NOT EXECUTED
* we may have already found that are just before this entry. If more
* are needed FAT_EOF is returned by the read and we extend the file.
*/
if (!empty_space_found)
{
empty_space_count +=
133a92: c1 e9 05 shr $0x5,%ecx <== NOT EXECUTED
133a95: 29 cb sub %ecx,%ebx <== NOT EXECUTED
133a97: e9 61 02 00 00 jmp 133cfd <msdos_find_name_in_fat_file+0x3ba><== NOT EXECUTED
printf ("MSFS:[3.2] esf:%i esc%i\n", empty_space_found, empty_space_count);
#endif
}
break;
}
else if (entry_empty)
133a9c: 80 7d a0 e5 cmpb $0xe5,-0x60(%ebp) <== NOT EXECUTED
133aa0: 75 1d jne 133abf <msdos_find_name_in_fat_file+0x17c><== NOT EXECUTED
{
if (create_node)
133aa2: 80 7d d0 00 cmpb $0x0,-0x30(%ebp) <== NOT EXECUTED
133aa6: 0f 84 04 02 00 00 je 133cb0 <msdos_find_name_in_fat_file+0x36d><== NOT EXECUTED
{
/*
* Remainder is not empty so is this entry empty ?
*/
empty_space_count++;
133aac: 43 inc %ebx <== NOT EXECUTED
if (empty_space_count == (lfn_entries + 1))
133aad: 3b 5d 8c cmp -0x74(%ebp),%ebx <== NOT EXECUTED
133ab0: 0f 85 fa 01 00 00 jne 133cb0 <msdos_find_name_in_fat_file+0x36d><== NOT EXECUTED
133ab6: c6 45 9c 01 movb $0x1,-0x64(%ebp) <== NOT EXECUTED
133aba: e9 f1 01 00 00 jmp 133cb0 <msdos_find_name_in_fat_file+0x36d><== NOT EXECUTED
* A valid entry so handle it.
*
* If empty space has not been found we need to start the
* count again.
*/
if (create_node && !empty_space_found)
133abf: 80 7d d0 00 cmpb $0x0,-0x30(%ebp) <== NOT EXECUTED
133ac3: 74 0f je 133ad4 <msdos_find_name_in_fat_file+0x191><== NOT EXECUTED
133ac5: 80 7d 9c 00 cmpb $0x0,-0x64(%ebp) <== NOT EXECUTED
133ac9: 75 09 jne 133ad4 <msdos_find_name_in_fat_file+0x191><== NOT EXECUTED
133acb: 31 db xor %ebx,%ebx <== NOT EXECUTED
133acd: c7 45 a8 00 00 00 00 movl $0x0,-0x58(%ebp) <== NOT EXECUTED
/*
* Check the attribute to see if the entry is for a long
* file name.
*/
if ((*MSDOS_DIR_ATTR(entry) & MSDOS_ATTR_LFN_MASK) ==
133ad4: 0f b6 46 0b movzbl 0xb(%esi),%eax <== NOT EXECUTED
133ad8: 83 e0 3f and $0x3f,%eax <== NOT EXECUTED
133adb: 83 f8 0f cmp $0xf,%eax <== NOT EXECUTED
133ade: 0f 85 e4 00 00 00 jne 133bc8 <msdos_find_name_in_fat_file+0x285><== NOT EXECUTED
#endif
/*
* If we are not already processing a LFN see if this is
* the first entry of a LFN ?
*/
if (lfn_start.cln == FAT_FILE_SHORT_NAME)
133ae4: 83 7d dc ff cmpl $0xffffffff,-0x24(%ebp) <== NOT EXECUTED
133ae8: 75 2c jne 133b16 <msdos_find_name_in_fat_file+0x1d3><== NOT EXECUTED
/*
* The first entry must have the last long entry
* flag set.
*/
if ((*MSDOS_DIR_ENTRY_TYPE(entry) &
133aea: 0f b6 45 a0 movzbl -0x60(%ebp),%eax <== NOT EXECUTED
133aee: a8 40 test $0x40,%al <== NOT EXECUTED
133af0: 0f 84 b8 01 00 00 je 133cae <msdos_find_name_in_fat_file+0x36b><== NOT EXECUTED
* entry match the number we expect for this
* file name. Note we do not know the number of
* characters in the entry so this is check further
* on when the characters are checked.
*/
if (lfn_entries != (*MSDOS_DIR_ENTRY_TYPE(entry) &
133af6: 83 e0 3f and $0x3f,%eax <== NOT EXECUTED
133af9: 39 45 b4 cmp %eax,-0x4c(%ebp) <== NOT EXECUTED
133afc: 0f 85 ac 01 00 00 jne 133cae <msdos_find_name_in_fat_file+0x36b><== NOT EXECUTED
continue;
/*
* Get the checksum of the short entry.
*/
lfn_start.cln = dir_offset;
133b02: 8b 55 cc mov -0x34(%ebp),%edx <== NOT EXECUTED
133b05: 89 55 dc mov %edx,-0x24(%ebp) <== NOT EXECUTED
lfn_start.ofs = dir_entry;
133b08: 89 4d e0 mov %ecx,-0x20(%ebp) <== NOT EXECUTED
lfn_entry = lfn_entries;
lfn_checksum = *MSDOS_DIR_LFN_CHECKSUM(entry);
133b0b: 8a 46 0d mov 0xd(%esi),%al <== NOT EXECUTED
133b0e: 88 45 9b mov %al,-0x65(%ebp) <== NOT EXECUTED
133b11: 8b 7d b4 mov -0x4c(%ebp),%edi <== NOT EXECUTED
133b14: 31 d2 xor %edx,%edx <== NOT EXECUTED
* If the entry number or the check sum do not match
* forget this series of long directory entries. These
* could be orphaned entries depending on the history
* of the disk.
*/
if ((lfn_entry != (*MSDOS_DIR_ENTRY_TYPE(entry) &
133b16: 0f b6 06 movzbl (%esi),%eax <== NOT EXECUTED
133b19: 83 e0 3f and $0x3f,%eax <== NOT EXECUTED
133b1c: 39 c7 cmp %eax,%edi <== NOT EXECUTED
133b1e: 75 08 jne 133b28 <msdos_find_name_in_fat_file+0x1e5><== NOT EXECUTED
MSDOS_LAST_LONG_ENTRY_MASK)) ||
(lfn_checksum != *MSDOS_DIR_LFN_CHECKSUM(entry)))
133b20: 8a 45 9b mov -0x65(%ebp),%al <== NOT EXECUTED
133b23: 3a 46 0d cmp 0xd(%esi),%al <== NOT EXECUTED
133b26: 74 0c je 133b34 <msdos_find_name_in_fat_file+0x1f1><== NOT EXECUTED
{
#if MSDOS_FIND_PRINT
printf ("MSFS:[4.4] no match\n");
#endif
lfn_start.cln = FAT_FILE_SHORT_NAME;
133b28: c7 45 dc ff ff ff ff movl $0xffffffff,-0x24(%ebp) <== NOT EXECUTED
continue;
133b2f: e9 7c 01 00 00 jmp 133cb0 <msdos_find_name_in_fat_file+0x36d><== NOT EXECUTED
}
lfn_entry--;
133b34: 8d 57 ff lea -0x1(%edi),%edx <== NOT EXECUTED
133b37: 89 55 b8 mov %edx,-0x48(%ebp) <== NOT EXECUTED
o = lfn_entry * MSDOS_LFN_LEN_PER_ENTRY;
133b3a: 6b d2 0d imul $0xd,%edx,%edx <== NOT EXECUTED
p = entry + 1;
133b3d: 46 inc %esi <== NOT EXECUTED
133b3e: 89 75 a0 mov %esi,-0x60(%ebp) <== NOT EXECUTED
133b41: 31 c0 xor %eax,%eax <== NOT EXECUTED
((o + i) != name_len))
lfn_start.cln = FAT_FILE_SHORT_NAME;
break;
}
if (((o + i) >= name_len) || (*p != name[o + i]))
133b43: 8b 75 14 mov 0x14(%ebp),%esi <== NOT EXECUTED
133b46: 01 d6 add %edx,%esi <== NOT EXECUTED
133b48: 89 75 90 mov %esi,-0x70(%ebp) <== NOT EXECUTED
133b4b: 89 55 84 mov %edx,-0x7c(%ebp) <== NOT EXECUTED
133b4e: 8b 75 a0 mov -0x60(%ebp),%esi <== NOT EXECUTED
133b51: 89 7d 80 mov %edi,-0x80(%ebp) <== NOT EXECUTED
{
#if MSDOS_FIND_PRINT > 1
printf ("MSFS:[6] o:%i i:%i *p:%c(%02x) name[o + i]:%c(%02x)\n",
o, i, *p, *p, name[o + i], name[o + i]);
#endif
if (*p == '\0')
133b54: 8a 16 mov (%esi),%dl <== NOT EXECUTED
133b56: 88 55 a0 mov %dl,-0x60(%ebp) <== NOT EXECUTED
133b59: 84 d2 test %dl,%dl <== NOT EXECUTED
133b5b: 75 14 jne 133b71 <msdos_find_name_in_fat_file+0x22e><== NOT EXECUTED
133b5d: 8b 55 84 mov -0x7c(%ebp),%edx <== NOT EXECUTED
133b60: 8b 7d 80 mov -0x80(%ebp),%edi <== NOT EXECUTED
/*
* If this is the first entry, ie the last part of the
* long file name and the length does not match then
* the file names do not match.
*/
if (((lfn_entry + 1) == lfn_entries) &&
133b63: 3b 7d b4 cmp -0x4c(%ebp),%edi <== NOT EXECUTED
133b66: 75 47 jne 133baf <msdos_find_name_in_fat_file+0x26c><== NOT EXECUTED
133b68: 01 d0 add %edx,%eax <== NOT EXECUTED
133b6a: 3b 45 18 cmp 0x18(%ebp),%eax <== NOT EXECUTED
133b6d: 75 18 jne 133b87 <msdos_find_name_in_fat_file+0x244><== NOT EXECUTED
133b6f: eb 3e jmp 133baf <msdos_find_name_in_fat_file+0x26c><== NOT EXECUTED
((o + i) != name_len))
lfn_start.cln = FAT_FILE_SHORT_NAME;
break;
}
if (((o + i) >= name_len) || (*p != name[o + i]))
133b71: 8b 55 84 mov -0x7c(%ebp),%edx <== NOT EXECUTED
133b74: 8d 3c 10 lea (%eax,%edx,1),%edi <== NOT EXECUTED
133b77: 3b 7d 18 cmp 0x18(%ebp),%edi <== NOT EXECUTED
133b7a: 7d 0b jge 133b87 <msdos_find_name_in_fat_file+0x244><== NOT EXECUTED
133b7c: 8a 55 a0 mov -0x60(%ebp),%dl <== NOT EXECUTED
133b7f: 8b 7d 90 mov -0x70(%ebp),%edi <== NOT EXECUTED
133b82: 3a 14 07 cmp (%edi,%eax,1),%dl <== NOT EXECUTED
133b85: 74 09 je 133b90 <msdos_find_name_in_fat_file+0x24d><== NOT EXECUTED
{
lfn_start.cln = FAT_FILE_SHORT_NAME;
133b87: c7 45 dc ff ff ff ff movl $0xffffffff,-0x24(%ebp) <== NOT EXECUTED
break;
133b8e: eb 1f jmp 133baf <msdos_find_name_in_fat_file+0x26c><== NOT EXECUTED
}
switch (i)
133b90: 83 f8 04 cmp $0x4,%eax <== NOT EXECUTED
133b93: 74 07 je 133b9c <msdos_find_name_in_fat_file+0x259><== NOT EXECUTED
133b95: 83 f8 0a cmp $0xa,%eax <== NOT EXECUTED
133b98: 75 0c jne 133ba6 <msdos_find_name_in_fat_file+0x263><== NOT EXECUTED
133b9a: eb 05 jmp 133ba1 <msdos_find_name_in_fat_file+0x25e><== NOT EXECUTED
{
case 4:
p += 5;
133b9c: 83 c6 05 add $0x5,%esi <== NOT EXECUTED
break;
133b9f: eb 08 jmp 133ba9 <msdos_find_name_in_fat_file+0x266><== NOT EXECUTED
case 10:
p += 4;
133ba1: 83 c6 04 add $0x4,%esi <== NOT EXECUTED
break;
133ba4: eb 03 jmp 133ba9 <msdos_find_name_in_fat_file+0x266><== NOT EXECUTED
default:
p += 2;
133ba6: 83 c6 02 add $0x2,%esi <== NOT EXECUTED
p = entry + 1;
#if MSDOS_FIND_PRINT
printf ("MSFS:[5] lfne:%i\n", lfn_entry);
#endif
for (i = 0; i < MSDOS_LFN_LEN_PER_ENTRY; i++)
133ba9: 40 inc %eax <== NOT EXECUTED
133baa: 83 f8 0d cmp $0xd,%eax <== NOT EXECUTED
133bad: 75 a5 jne 133b54 <msdos_find_name_in_fat_file+0x211><== NOT EXECUTED
p += 2;
break;
}
}
lfn_matched = ((lfn_entry == 0) &&
133baf: 31 d2 xor %edx,%edx <== NOT EXECUTED
133bb1: 83 7d b8 00 cmpl $0x0,-0x48(%ebp) <== NOT EXECUTED
133bb5: 75 09 jne 133bc0 <msdos_find_name_in_fat_file+0x27d><== NOT EXECUTED
133bb7: 31 d2 xor %edx,%edx <== NOT EXECUTED
133bb9: 83 7d dc ff cmpl $0xffffffff,-0x24(%ebp) <== NOT EXECUTED
133bbd: 0f 95 c2 setne %dl <== NOT EXECUTED
133bc0: 8b 7d b8 mov -0x48(%ebp),%edi <== NOT EXECUTED
133bc3: e9 e8 00 00 00 jmp 133cb0 <msdos_find_name_in_fat_file+0x36d><== NOT EXECUTED
* If a LFN has been found and it matched check the
* entries have all been found and the checksum is
* correct. If this is the case return the short file
* name entry.
*/
if (lfn_matched)
133bc8: 84 d2 test %dl,%dl <== NOT EXECUTED
133bca: 74 37 je 133c03 <msdos_find_name_in_fat_file+0x2c0><== NOT EXECUTED
* RC_OK on success, or error code if error occured (errno set
* appropriately)
*
*/
#define MSDOS_FIND_PRINT 0
int msdos_find_name_in_fat_file(
133bcc: 8d 46 0a lea 0xa(%esi),%eax <== NOT EXECUTED
133bcf: 89 45 a0 mov %eax,-0x60(%ebp) <== NOT EXECUTED
133bd2: 31 c0 xor %eax,%eax <== NOT EXECUTED
133bd4: 89 4d 94 mov %ecx,-0x6c(%ebp) <== NOT EXECUTED
uint8_t cs = 0;
uint8_t* p = (uint8_t*) MSDOS_DIR_NAME(entry);
int i;
for (i = 0; i < MSDOS_SHORT_NAME_LEN; i++, p++)
cs = ((cs & 1) ? 0x80 : 0) + (cs >> 1) + *p;
133bd7: 89 c2 mov %eax,%edx <== NOT EXECUTED
133bd9: 83 e2 01 and $0x1,%edx <== NOT EXECUTED
133bdc: f7 da neg %edx <== NOT EXECUTED
133bde: 83 e2 80 and $0xffffff80,%edx <== NOT EXECUTED
133be1: d0 e8 shr %al <== NOT EXECUTED
133be3: 8b 4d b8 mov -0x48(%ebp),%ecx <== NOT EXECUTED
133be6: 02 01 add (%ecx),%al <== NOT EXECUTED
133be8: 01 d0 add %edx,%eax <== NOT EXECUTED
{
uint8_t cs = 0;
uint8_t* p = (uint8_t*) MSDOS_DIR_NAME(entry);
int i;
for (i = 0; i < MSDOS_SHORT_NAME_LEN; i++, p++)
133bea: 8b 55 a0 mov -0x60(%ebp),%edx <== NOT EXECUTED
133bed: 39 d1 cmp %edx,%ecx <== NOT EXECUTED
133bef: 74 06 je 133bf7 <msdos_find_name_in_fat_file+0x2b4><== NOT EXECUTED
133bf1: 41 inc %ecx <== NOT EXECUTED
133bf2: 89 4d b8 mov %ecx,-0x48(%ebp) <== NOT EXECUTED
133bf5: eb e0 jmp 133bd7 <msdos_find_name_in_fat_file+0x294><== NOT EXECUTED
133bf7: 8b 4d 94 mov -0x6c(%ebp),%ecx <== NOT EXECUTED
cs = ((cs & 1) ? 0x80 : 0) + (cs >> 1) + *p;
if (lfn_entry || (lfn_checksum != cs))
133bfa: 38 45 9b cmp %al,-0x65(%ebp) <== NOT EXECUTED
133bfd: 75 04 jne 133c03 <msdos_find_name_in_fat_file+0x2c0><== NOT EXECUTED
133bff: 85 ff test %edi,%edi <== NOT EXECUTED
133c01: 74 2d je 133c30 <msdos_find_name_in_fat_file+0x2ed><== NOT EXECUTED
* short and they match then we have the entry. We will not
* match a long file name against a short file name because
* a long file name that generates a matching short file
* name is not a long file name.
*/
if (lfn_matched ||
133c03: 83 7d 1c 01 cmpl $0x1,0x1c(%ebp) <== NOT EXECUTED
133c07: 0f 85 9a 00 00 00 jne 133ca7 <msdos_find_name_in_fat_file+0x364><== NOT EXECUTED
133c0d: 83 7d dc ff cmpl $0xffffffff,-0x24(%ebp) <== NOT EXECUTED
133c11: 0f 85 90 00 00 00 jne 133ca7 <msdos_find_name_in_fat_file+0x364><== NOT EXECUTED
((name_type == MSDOS_NAME_SHORT) &&
(lfn_start.cln == FAT_FILE_SHORT_NAME) &&
(memcmp(MSDOS_DIR_NAME(entry),
133c17: 50 push %eax <== NOT EXECUTED
133c18: 6a 0b push $0xb <== NOT EXECUTED
133c1a: ff 75 24 pushl 0x24(%ebp) <== NOT EXECUTED
133c1d: 56 push %esi <== NOT EXECUTED
133c1e: 89 4d 88 mov %ecx,-0x78(%ebp) <== NOT EXECUTED
133c21: e8 e2 d3 00 00 call 141008 <memcmp> <== NOT EXECUTED
133c26: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
* short and they match then we have the entry. We will not
* match a long file name against a short file name because
* a long file name that generates a matching short file
* name is not a long file name.
*/
if (lfn_matched ||
133c29: 85 c0 test %eax,%eax <== NOT EXECUTED
133c2b: 8b 4d 88 mov -0x78(%ebp),%ecx <== NOT EXECUTED
133c2e: 75 77 jne 133ca7 <msdos_find_name_in_fat_file+0x364><== NOT EXECUTED
#endif
/*
* We get the entry we looked for - fill the position
* structure and the 32 bytes of the short entry
*/
int rc = fat_file_ioctl(mt_entry, fat_fd, F_CLU_NUM,
133c30: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
133c33: ff 75 20 pushl 0x20(%ebp) <== NOT EXECUTED
133c36: ff 75 ac pushl -0x54(%ebp) <== NOT EXECUTED
133c39: 6a 01 push $0x1 <== NOT EXECUTED
133c3b: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
133c3e: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
133c41: 89 4d 88 mov %ecx,-0x78(%ebp) <== NOT EXECUTED
133c44: e8 cd 12 ff ff call 124f16 <fat_file_ioctl> <== NOT EXECUTED
dir_offset * bts2rd,
&dir_pos->sname.cln);
if (rc != RC_OK)
133c49: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
133c4c: 85 c0 test %eax,%eax <== NOT EXECUTED
133c4e: 8b 4d 88 mov -0x78(%ebp),%ecx <== NOT EXECUTED
133c51: 0f 85 c8 03 00 00 jne 13401f <msdos_find_name_in_fat_file+0x6dc><== NOT EXECUTED
return rc;
dir_pos->sname.ofs = dir_entry;
133c57: 8b 7d 20 mov 0x20(%ebp),%edi <== NOT EXECUTED
133c5a: 89 4f 04 mov %ecx,0x4(%edi) <== NOT EXECUTED
if (lfn_start.cln != FAT_FILE_SHORT_NAME)
133c5d: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED
133c60: 83 f8 ff cmp $0xffffffff,%eax <== NOT EXECUTED
133c63: 74 24 je 133c89 <msdos_find_name_in_fat_file+0x346><== NOT EXECUTED
{
rc = fat_file_ioctl(mt_entry, fat_fd, F_CLU_NUM,
133c65: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
133c68: 8d 55 dc lea -0x24(%ebp),%edx <== NOT EXECUTED
133c6b: 52 push %edx <== NOT EXECUTED
133c6c: 0f af 45 d4 imul -0x2c(%ebp),%eax <== NOT EXECUTED
133c70: 50 push %eax <== NOT EXECUTED
133c71: 6a 01 push $0x1 <== NOT EXECUTED
133c73: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
133c76: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
133c79: e8 98 12 ff ff call 124f16 <fat_file_ioctl> <== NOT EXECUTED
lfn_start.cln * bts2rd,
&lfn_start.cln);
if (rc != RC_OK)
133c7e: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
133c81: 85 c0 test %eax,%eax <== NOT EXECUTED
133c83: 0f 85 96 03 00 00 jne 13401f <msdos_find_name_in_fat_file+0x6dc><== NOT EXECUTED
return rc;
}
dir_pos->lname.cln = lfn_start.cln;
133c89: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED
133c8c: 8b 55 20 mov 0x20(%ebp),%edx <== NOT EXECUTED
133c8f: 89 42 08 mov %eax,0x8(%edx) <== NOT EXECUTED
dir_pos->lname.ofs = lfn_start.ofs;
133c92: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
133c95: 89 42 0c mov %eax,0xc(%edx) <== NOT EXECUTED
memcpy(name_dir_entry, entry,
133c98: b9 08 00 00 00 mov $0x8,%ecx <== NOT EXECUTED
133c9d: 8b 7d 24 mov 0x24(%ebp),%edi <== NOT EXECUTED
133ca0: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED
133ca2: e9 6a 03 00 00 jmp 134011 <msdos_find_name_in_fat_file+0x6ce><== NOT EXECUTED
MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
return RC_OK;
}
lfn_start.cln = FAT_FILE_SHORT_NAME;
133ca7: c7 45 dc ff ff ff ff movl $0xffffffff,-0x24(%ebp) <== NOT EXECUTED
133cae: 31 d2 xor %edx,%edx <== NOT EXECUTED
assert(ret == bts2rd);
/* have to look at the DIR_NAME as "raw" 8-bit data */
for (dir_entry = 0;
dir_entry < bts2rd;
dir_entry += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)
133cb0: 83 c1 20 add $0x20,%ecx <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
assert(ret == bts2rd);
/* have to look at the DIR_NAME as "raw" 8-bit data */
for (dir_entry = 0;
133cb3: 3b 4d d4 cmp -0x2c(%ebp),%ecx <== NOT EXECUTED
133cb6: 0f 82 94 fd ff ff jb 133a50 <msdos_find_name_in_fat_file+0x10d><== NOT EXECUTED
133cbc: 8b 4d d4 mov -0x2c(%ebp),%ecx <== NOT EXECUTED
133cbf: 01 4d ac add %ecx,-0x54(%ebp) <== NOT EXECUTED
}
if (remainder_empty)
break;
dir_offset++;
133cc2: ff 45 cc incl -0x34(%ebp) <== NOT EXECUTED
/*
* Scan the directory seeing if the file is present. While
* doing this see if a suitable location can be found to
* create the entry if the name is not found.
*/
while ((ret = fat_file_read(mt_entry, fat_fd, (dir_offset * bts2rd),
133cc5: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
133cc8: 8b 75 b0 mov -0x50(%ebp),%esi <== NOT EXECUTED
133ccb: ff b6 98 00 00 00 pushl 0x98(%esi) <== NOT EXECUTED
133cd1: ff 75 d4 pushl -0x2c(%ebp) <== NOT EXECUTED
133cd4: ff 75 ac pushl -0x54(%ebp) <== NOT EXECUTED
133cd7: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
133cda: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
133cdd: 88 55 88 mov %dl,-0x78(%ebp) <== NOT EXECUTED
133ce0: e8 36 17 ff ff call 12541b <fat_file_read> <== NOT EXECUTED
133ce5: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
133ce8: 85 c0 test %eax,%eax <== NOT EXECUTED
133cea: 8a 55 88 mov -0x78(%ebp),%dl <== NOT EXECUTED
133ced: 0f 85 34 fd ff ff jne 133a27 <msdos_find_name_in_fat_file+0xe4><== NOT EXECUTED
}
/*
* If we are not to create the entry return a not found error.
*/
if (!create_node)
133cf3: 80 7d d0 00 cmpb $0x0,-0x30(%ebp) <== NOT EXECUTED
133cf7: 0f 84 18 03 00 00 je 134015 <msdos_find_name_in_fat_file+0x6d2><== NOT EXECUTED
* data to place in each long file name entry. First set the short
* file name to the slot of the SFN entry. This will mean no clashes
* in this directory.
*/
lfn_checksum = 0;
if (name_type == MSDOS_NAME_LONG)
133cfd: 83 7d 1c 02 cmpl $0x2,0x1c(%ebp) <== NOT EXECUTED
133d01: 75 5c jne 133d5f <msdos_find_name_in_fat_file+0x41c><== NOT EXECUTED
{
int slot = (((empty_space_offset * bts2rd) + empty_space_entry) /
MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE) + lfn_entries + 1;
133d03: 8b 45 a4 mov -0x5c(%ebp),%eax <== NOT EXECUTED
133d06: 0f af 45 d4 imul -0x2c(%ebp),%eax <== NOT EXECUTED
133d0a: 03 45 a8 add -0x58(%ebp),%eax <== NOT EXECUTED
133d0d: c1 e8 05 shr $0x5,%eax <== NOT EXECUTED
133d10: 8b 55 b4 mov -0x4c(%ebp),%edx <== NOT EXECUTED
133d13: 8d 7c 02 01 lea 0x1(%edx,%eax,1),%edi <== NOT EXECUTED
133d17: 31 c0 xor %eax,%eax <== NOT EXECUTED
133d19: 8b 4d 24 mov 0x24(%ebp),%ecx <== NOT EXECUTED
{
static const char* hex = "0123456789ABCDEF";
char* c = MSDOS_DIR_NAME(sfn);
int i;
for (i = 0; i < 3; i++, c++)
if ((*c == ' ') || (*c == '.'))
133d1c: 8a 14 01 mov (%ecx,%eax,1),%dl <== NOT EXECUTED
133d1f: 80 fa 2e cmp $0x2e,%dl <== NOT EXECUTED
133d22: 74 05 je 133d29 <msdos_find_name_in_fat_file+0x3e6><== NOT EXECUTED
133d24: 80 fa 20 cmp $0x20,%dl <== NOT EXECUTED
133d27: 75 04 jne 133d2d <msdos_find_name_in_fat_file+0x3ea><== NOT EXECUTED
*c = '~';
133d29: c6 04 01 7e movb $0x7e,(%ecx,%eax,1) <== NOT EXECUTED
msdos_short_name_hex(char* sfn, int num)
{
static const char* hex = "0123456789ABCDEF";
char* c = MSDOS_DIR_NAME(sfn);
int i;
for (i = 0; i < 3; i++, c++)
133d2d: 40 inc %eax <== NOT EXECUTED
133d2e: 83 f8 03 cmp $0x3,%eax <== NOT EXECUTED
133d31: 75 e9 jne 133d1c <msdos_find_name_in_fat_file+0x3d9><== NOT EXECUTED
if ((*c == ' ') || (*c == '.'))
*c = '~';
*c++ = '~';
133d33: 8b 4d 24 mov 0x24(%ebp),%ecx <== NOT EXECUTED
133d36: c6 41 03 7e movb $0x7e,0x3(%ecx) <== NOT EXECUTED
133d3a: 89 c8 mov %ecx,%eax <== NOT EXECUTED
133d3c: 83 c0 04 add $0x4,%eax <== NOT EXECUTED
for (i = 0; i < 4; i++, c++)
*c = hex[(num >> ((3 - i) * 4)) & 0xf];
133d3f: b9 0c 00 00 00 mov $0xc,%ecx <== NOT EXECUTED
133d44: 89 fe mov %edi,%esi <== NOT EXECUTED
133d46: d3 fe sar %cl,%esi <== NOT EXECUTED
133d48: 83 e6 0f and $0xf,%esi <== NOT EXECUTED
133d4b: 8b 15 24 e2 15 00 mov 0x15e224,%edx <== NOT EXECUTED
133d51: 8a 14 32 mov (%edx,%esi,1),%dl <== NOT EXECUTED
133d54: 88 10 mov %dl,(%eax) <== NOT EXECUTED
int i;
for (i = 0; i < 3; i++, c++)
if ((*c == ' ') || (*c == '.'))
*c = '~';
*c++ = '~';
for (i = 0; i < 4; i++, c++)
133d56: 40 inc %eax <== NOT EXECUTED
133d57: 83 e9 04 sub $0x4,%ecx <== NOT EXECUTED
133d5a: 83 f9 fc cmp $0xfffffffc,%ecx <== NOT EXECUTED
133d5d: 75 e5 jne 133d44 <msdos_find_name_in_fat_file+0x401><== NOT EXECUTED
if (lfn_entries)
{
uint8_t* p = (uint8_t*) MSDOS_DIR_NAME(name_dir_entry);
int i;
for (i = 0; i < 11; i++, p++)
133d5f: c6 45 b8 00 movb $0x0,-0x48(%ebp) <== NOT EXECUTED
int slot = (((empty_space_offset * bts2rd) + empty_space_entry) /
MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE) + lfn_entries + 1;
msdos_short_name_hex(MSDOS_DIR_NAME(name_dir_entry), slot);
}
if (lfn_entries)
133d63: 83 7d b4 00 cmpl $0x0,-0x4c(%ebp) <== NOT EXECUTED
133d67: 74 27 je 133d90 <msdos_find_name_in_fat_file+0x44d><== NOT EXECUTED
{
uint8_t* p = (uint8_t*) MSDOS_DIR_NAME(name_dir_entry);
133d69: 8b 45 24 mov 0x24(%ebp),%eax <== NOT EXECUTED
* RC_OK on success, or error code if error occured (errno set
* appropriately)
*
*/
#define MSDOS_FIND_PRINT 0
int msdos_find_name_in_fat_file(
133d6c: 89 c6 mov %eax,%esi <== NOT EXECUTED
133d6e: 83 c6 0a add $0xa,%esi <== NOT EXECUTED
if (lfn_entries)
{
uint8_t* p = (uint8_t*) MSDOS_DIR_NAME(name_dir_entry);
int i;
for (i = 0; i < 11; i++, p++)
lfn_checksum =
133d71: 8a 55 b8 mov -0x48(%ebp),%dl <== NOT EXECUTED
133d74: 83 e2 01 and $0x1,%edx <== NOT EXECUTED
133d77: f7 da neg %edx <== NOT EXECUTED
133d79: 83 e2 80 and $0xffffff80,%edx <== NOT EXECUTED
133d7c: 8a 4d b8 mov -0x48(%ebp),%cl <== NOT EXECUTED
133d7f: d0 e9 shr %cl <== NOT EXECUTED
133d81: 02 08 add (%eax),%cl <== NOT EXECUTED
133d83: 8d 14 11 lea (%ecx,%edx,1),%edx <== NOT EXECUTED
133d86: 88 55 b8 mov %dl,-0x48(%ebp) <== NOT EXECUTED
if (lfn_entries)
{
uint8_t* p = (uint8_t*) MSDOS_DIR_NAME(name_dir_entry);
int i;
for (i = 0; i < 11; i++, p++)
133d89: 39 f0 cmp %esi,%eax <== NOT EXECUTED
133d8b: 74 03 je 133d90 <msdos_find_name_in_fat_file+0x44d><== NOT EXECUTED
133d8d: 40 inc %eax <== NOT EXECUTED
133d8e: eb e1 jmp 133d71 <msdos_find_name_in_fat_file+0x42e><== NOT EXECUTED
* empty_space_count is a count of empty entries in the currently
* read cluster so if 0 there is no space. Note, dir_offset will
* be at the next cluster so we can just make empty_space_offset
* that value.
*/
if (empty_space_count == 0)
133d90: 85 db test %ebx,%ebx <== NOT EXECUTED
133d92: 75 0b jne 133d9f <msdos_find_name_in_fat_file+0x45c><== NOT EXECUTED
133d94: b0 01 mov $0x1,%al <== NOT EXECUTED
133d96: c7 45 a8 00 00 00 00 movl $0x0,-0x58(%ebp) <== NOT EXECUTED
133d9d: eb 0c jmp 133dab <msdos_find_name_in_fat_file+0x468><== NOT EXECUTED
}
/*
* Have we read past the empty block ? If so go back and read it again.
*/
if (dir_offset != empty_space_offset)
133d9f: b0 01 mov $0x1,%al <== NOT EXECUTED
133da1: 8b 4d a4 mov -0x5c(%ebp),%ecx <== NOT EXECUTED
133da4: 39 4d cc cmp %ecx,-0x34(%ebp) <== NOT EXECUTED
133da7: 75 08 jne 133db1 <msdos_find_name_in_fat_file+0x46e><== NOT EXECUTED
133da9: 31 c0 xor %eax,%eax <== NOT EXECUTED
133dab: 8b 75 cc mov -0x34(%ebp),%esi <== NOT EXECUTED
133dae: 89 75 a4 mov %esi,-0x5c(%ebp) <== NOT EXECUTED
read_cluster = true;
/*
* Handle the entry writes.
*/
lfn_start.cln = lfn_start.ofs = FAT_FILE_SHORT_NAME;
133db1: c7 45 e0 ff ff ff ff movl $0xffffffff,-0x20(%ebp) <== NOT EXECUTED
133db8: c7 45 dc ff ff ff ff movl $0xffffffff,-0x24(%ebp) <== NOT EXECUTED
* Time to write the short file name entry.
*/
if (lfn_entry == (lfn_entries + 1))
{
/* get current cluster number */
int rc = fat_file_ioctl(mt_entry, fat_fd, F_CLU_NUM,
133dbf: 8b 7d a4 mov -0x5c(%ebp),%edi <== NOT EXECUTED
133dc2: 0f af 7d d4 imul -0x2c(%ebp),%edi <== NOT EXECUTED
133dc6: 89 7d cc mov %edi,-0x34(%ebp) <== NOT EXECUTED
133dc9: c7 45 d0 00 00 00 00 movl $0x0,-0x30(%ebp) <== NOT EXECUTED
length, lfn_entry);
#endif
/*
* Time to write the short file name entry.
*/
if (lfn_entry == (lfn_entries + 1))
133dd0: 8b 55 b4 mov -0x4c(%ebp),%edx <== NOT EXECUTED
133dd3: 42 inc %edx <== NOT EXECUTED
133dd4: 89 55 9c mov %edx,-0x64(%ebp) <== NOT EXECUTED
*MSDOS_DIR_LFN_CHECKSUM(entry) = lfn_checksum;
p = entry + 1;
n = name + (lfn_entries - lfn_entry) * MSDOS_LFN_LEN_PER_ENTRY;
for (i = 0; i < MSDOS_LFN_LEN_PER_ENTRY; i++)
133dd7: 8a 4d b4 mov -0x4c(%ebp),%cl <== NOT EXECUTED
133dda: 41 inc %ecx <== NOT EXECUTED
133ddb: 88 4d 9b mov %cl,-0x65(%ebp) <== NOT EXECUTED
#endif
/*
* The one more is the short entry.
*/
while (lfn_entry < (lfn_entries + 1))
133dde: e9 22 02 00 00 jmp 134005 <msdos_find_name_in_fat_file+0x6c2><== NOT EXECUTED
{
int length = 0;
if (read_cluster)
133de3: 84 c0 test %al,%al <== NOT EXECUTED
133de5: 0f 84 9a 00 00 00 je 133e85 <msdos_find_name_in_fat_file+0x542><== NOT EXECUTED
{
uint32_t new_length;
#if MSDOS_FIND_PRINT
printf ("MSFS:[9.1] eso:%li\n", empty_space_offset);
#endif
ret = fat_file_read(mt_entry, fat_fd,
133deb: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
133dee: 8b 75 b0 mov -0x50(%ebp),%esi <== NOT EXECUTED
133df1: ff b6 98 00 00 00 pushl 0x98(%esi) <== NOT EXECUTED
133df7: ff 75 d4 pushl -0x2c(%ebp) <== NOT EXECUTED
133dfa: ff 75 cc pushl -0x34(%ebp) <== NOT EXECUTED
133dfd: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
133e00: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
133e03: e8 13 16 ff ff call 12541b <fat_file_read> <== NOT EXECUTED
(empty_space_offset * bts2rd), bts2rd,
fs_info->cl_buf);
if (ret != bts2rd)
133e08: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
133e0b: 3b 45 d4 cmp -0x2c(%ebp),%eax <== NOT EXECUTED
133e0e: 74 75 je 133e85 <msdos_find_name_in_fat_file+0x542><== NOT EXECUTED
{
if (ret != FAT_EOF)
133e10: 85 c0 test %eax,%eax <== NOT EXECUTED
133e12: 0f 85 d4 01 00 00 jne 133fec <msdos_find_name_in_fat_file+0x6a9><== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
#if MSDOS_FIND_PRINT
printf ("MSFS:[9.2] extending file:%li\n", empty_space_offset);
#endif
ret = fat_file_extend (mt_entry, fat_fd, empty_space_offset * bts2rd,
133e18: 8d 7d e4 lea -0x1c(%ebp),%edi <== NOT EXECUTED
133e1b: 57 push %edi <== NOT EXECUTED
133e1c: ff 75 cc pushl -0x34(%ebp) <== NOT EXECUTED
133e1f: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
133e22: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
133e25: e8 4f 12 ff ff call 125079 <fat_file_extend> <== NOT EXECUTED
&new_length);
if (ret != RC_OK)
133e2a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
133e2d: 85 c0 test %eax,%eax <== NOT EXECUTED
133e2f: 0f 85 ea 01 00 00 jne 13401f <msdos_find_name_in_fat_file+0x6dc><== NOT EXECUTED
return ret;
#if MSDOS_FIND_PRINT
printf ("MSFS:[9.3] extended: %d <-> %d\n", new_length, empty_space_offset * bts2rd);
#endif
if (new_length != (empty_space_offset * bts2rd))
133e35: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED
133e38: 39 45 e4 cmp %eax,-0x1c(%ebp) <== NOT EXECUTED
133e3b: 0f 85 ab 01 00 00 jne 133fec <msdos_find_name_in_fat_file+0x6a9><== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
memset(fs_info->cl_buf, 0, bts2rd);
133e41: 8b 4d b0 mov -0x50(%ebp),%ecx <== NOT EXECUTED
133e44: 8b 91 98 00 00 00 mov 0x98(%ecx),%edx <== NOT EXECUTED
133e4a: 31 c0 xor %eax,%eax <== NOT EXECUTED
133e4c: 89 d7 mov %edx,%edi <== NOT EXECUTED
133e4e: 8b 4d d4 mov -0x2c(%ebp),%ecx <== NOT EXECUTED
133e51: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED
ret = fat_file_write(mt_entry, fat_fd,
133e53: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
133e56: 8b 75 b0 mov -0x50(%ebp),%esi <== NOT EXECUTED
133e59: ff b6 98 00 00 00 pushl 0x98(%esi) <== NOT EXECUTED
133e5f: ff 75 d4 pushl -0x2c(%ebp) <== NOT EXECUTED
133e62: ff 75 cc pushl -0x34(%ebp) <== NOT EXECUTED
133e65: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
133e68: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
133e6b: e8 a9 13 ff ff call 125219 <fat_file_write> <== NOT EXECUTED
empty_space_offset * bts2rd,
bts2rd, fs_info->cl_buf);
#if MSDOS_FIND_PRINT
printf ("MSFS:[9.4] clear write: %d\n", ret);
#endif
if (ret == -1)
133e70: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
133e73: 83 f8 ff cmp $0xffffffff,%eax <== NOT EXECUTED
133e76: 0f 84 a0 01 00 00 je 13401c <msdos_find_name_in_fat_file+0x6d9><== NOT EXECUTED
return ret;
else if (ret != bts2rd)
133e7c: 3b 45 d4 cmp -0x2c(%ebp),%eax <== NOT EXECUTED
133e7f: 0f 85 67 01 00 00 jne 133fec <msdos_find_name_in_fat_file+0x6a9><== NOT EXECUTED
133e85: 8b 55 d0 mov -0x30(%ebp),%edx <== NOT EXECUTED
133e88: 42 inc %edx <== NOT EXECUTED
133e89: 8b 45 d0 mov -0x30(%ebp),%eax <== NOT EXECUTED
133e8c: f7 d0 not %eax <== NOT EXECUTED
133e8e: 03 45 b4 add -0x4c(%ebp),%eax <== NOT EXECUTED
133e91: 6b c0 0d imul $0xd,%eax,%eax <== NOT EXECUTED
133e94: 03 45 14 add 0x14(%ebp),%eax <== NOT EXECUTED
133e97: 89 45 d0 mov %eax,-0x30(%ebp) <== NOT EXECUTED
133e9a: 8b 75 a8 mov -0x58(%ebp),%esi <== NOT EXECUTED
133e9d: c7 45 ac 00 00 00 00 movl $0x0,-0x54(%ebp) <== NOT EXECUTED
133ea4: e9 fc 00 00 00 jmp 133fa5 <msdos_find_name_in_fat_file+0x662><== NOT EXECUTED
for (dir_entry = empty_space_entry;
dir_entry < bts2rd;
dir_entry += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)
{
char* entry = (char*) fs_info->cl_buf + dir_entry;
133ea9: 8b 7d b0 mov -0x50(%ebp),%edi <== NOT EXECUTED
133eac: 8b 9f 98 00 00 00 mov 0x98(%edi),%ebx <== NOT EXECUTED
133eb2: 01 f3 add %esi,%ebx <== NOT EXECUTED
char* p;
const char* n;
int i;
length += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE;
133eb4: 83 45 ac 20 addl $0x20,-0x54(%ebp) <== NOT EXECUTED
length, lfn_entry);
#endif
/*
* Time to write the short file name entry.
*/
if (lfn_entry == (lfn_entries + 1))
133eb8: 3b 55 9c cmp -0x64(%ebp),%edx <== NOT EXECUTED
133ebb: 75 76 jne 133f33 <msdos_find_name_in_fat_file+0x5f0><== NOT EXECUTED
133ebd: 89 55 d0 mov %edx,-0x30(%ebp) <== NOT EXECUTED
{
/* get current cluster number */
int rc = fat_file_ioctl(mt_entry, fat_fd, F_CLU_NUM,
133ec0: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
133ec3: ff 75 20 pushl 0x20(%ebp) <== NOT EXECUTED
133ec6: ff 75 cc pushl -0x34(%ebp) <== NOT EXECUTED
133ec9: 6a 01 push $0x1 <== NOT EXECUTED
133ecb: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
133ece: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
133ed1: e8 40 10 ff ff call 124f16 <fat_file_ioctl> <== NOT EXECUTED
empty_space_offset * bts2rd,
&dir_pos->sname.cln);
if (rc != RC_OK)
133ed6: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
133ed9: 85 c0 test %eax,%eax <== NOT EXECUTED
133edb: 0f 85 3e 01 00 00 jne 13401f <msdos_find_name_in_fat_file+0x6dc><== NOT EXECUTED
return rc;
dir_pos->sname.ofs = dir_entry;
133ee1: 8b 45 20 mov 0x20(%ebp),%eax <== NOT EXECUTED
133ee4: 89 70 04 mov %esi,0x4(%eax) <== NOT EXECUTED
if (lfn_start.cln != FAT_FILE_SHORT_NAME)
133ee7: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED
133eea: 83 f8 ff cmp $0xffffffff,%eax <== NOT EXECUTED
133eed: 74 24 je 133f13 <msdos_find_name_in_fat_file+0x5d0><== NOT EXECUTED
{
rc = fat_file_ioctl(mt_entry, fat_fd, F_CLU_NUM,
133eef: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
133ef2: 8d 55 dc lea -0x24(%ebp),%edx <== NOT EXECUTED
133ef5: 52 push %edx <== NOT EXECUTED
133ef6: 0f af 45 d4 imul -0x2c(%ebp),%eax <== NOT EXECUTED
133efa: 50 push %eax <== NOT EXECUTED
133efb: 6a 01 push $0x1 <== NOT EXECUTED
133efd: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
133f00: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
133f03: e8 0e 10 ff ff call 124f16 <fat_file_ioctl> <== NOT EXECUTED
lfn_start.cln * bts2rd,
&lfn_start.cln);
if (rc != RC_OK)
133f08: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
133f0b: 85 c0 test %eax,%eax <== NOT EXECUTED
133f0d: 0f 85 0c 01 00 00 jne 13401f <msdos_find_name_in_fat_file+0x6dc><== NOT EXECUTED
return rc;
}
dir_pos->lname.cln = lfn_start.cln;
133f13: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED
133f16: 8b 55 20 mov 0x20(%ebp),%edx <== NOT EXECUTED
133f19: 89 42 08 mov %eax,0x8(%edx) <== NOT EXECUTED
dir_pos->lname.ofs = lfn_start.ofs;
133f1c: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
133f1f: 89 42 0c mov %eax,0xc(%edx) <== NOT EXECUTED
/* write new node entry */
memcpy (entry, (uint8_t *) name_dir_entry,
133f22: b9 08 00 00 00 mov $0x8,%ecx <== NOT EXECUTED
133f27: 89 df mov %ebx,%edi <== NOT EXECUTED
133f29: 8b 75 24 mov 0x24(%ebp),%esi <== NOT EXECUTED
133f2c: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED
MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
break;
133f2e: e9 81 00 00 00 jmp 133fb4 <msdos_find_name_in_fat_file+0x671><== NOT EXECUTED
* This is a long file name and we need to write
* a long file name entry. See if this is the
* first entry written and if so remember the
* the location of the long file name.
*/
if (lfn_start.cln == FAT_FILE_SHORT_NAME)
133f33: 83 7d dc ff cmpl $0xffffffff,-0x24(%ebp) <== NOT EXECUTED
133f37: 75 09 jne 133f42 <msdos_find_name_in_fat_file+0x5ff><== NOT EXECUTED
{
lfn_start.cln = empty_space_offset;
133f39: 8b 4d a4 mov -0x5c(%ebp),%ecx <== NOT EXECUTED
133f3c: 89 4d dc mov %ecx,-0x24(%ebp) <== NOT EXECUTED
lfn_start.ofs = dir_entry;
133f3f: 89 75 e0 mov %esi,-0x20(%ebp) <== NOT EXECUTED
}
/*
* Clear the entry before loading the data.
*/
memset (entry, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
133f42: b9 08 00 00 00 mov $0x8,%ecx <== NOT EXECUTED
133f47: 31 c0 xor %eax,%eax <== NOT EXECUTED
133f49: 89 df mov %ebx,%edi <== NOT EXECUTED
133f4b: f3 ab rep stos %eax,%es:(%edi) <== NOT EXECUTED
*MSDOS_DIR_LFN_CHECKSUM(entry) = lfn_checksum;
133f4d: 8a 45 b8 mov -0x48(%ebp),%al <== NOT EXECUTED
133f50: 88 43 0d mov %al,0xd(%ebx) <== NOT EXECUTED
p = entry + 1;
133f53: 8d 43 01 lea 0x1(%ebx),%eax <== NOT EXECUTED
133f56: 8b 7d d0 mov -0x30(%ebp),%edi <== NOT EXECUTED
133f59: 89 55 a0 mov %edx,-0x60(%ebp) <== NOT EXECUTED
n = name + (lfn_entries - lfn_entry) * MSDOS_LFN_LEN_PER_ENTRY;
for (i = 0; i < MSDOS_LFN_LEN_PER_ENTRY; i++)
{
*p = *n;
133f5c: 8a 17 mov (%edi),%dl <== NOT EXECUTED
133f5e: 88 10 mov %dl,(%eax) <== NOT EXECUTED
if (*n != 0)
n++;
133f60: 80 3f 01 cmpb $0x1,(%edi) <== NOT EXECUTED
133f63: 83 df ff sbb $0xffffffff,%edi <== NOT EXECUTED
switch (i)
133f66: 83 f9 04 cmp $0x4,%ecx <== NOT EXECUTED
133f69: 74 07 je 133f72 <msdos_find_name_in_fat_file+0x62f><== NOT EXECUTED
133f6b: 83 f9 0a cmp $0xa,%ecx <== NOT EXECUTED
133f6e: 75 0c jne 133f7c <msdos_find_name_in_fat_file+0x639><== NOT EXECUTED
133f70: eb 05 jmp 133f77 <msdos_find_name_in_fat_file+0x634><== NOT EXECUTED
{
case 4:
p += 5;
133f72: 83 c0 05 add $0x5,%eax <== NOT EXECUTED
break;
133f75: eb 08 jmp 133f7f <msdos_find_name_in_fat_file+0x63c><== NOT EXECUTED
case 10:
p += 4;
133f77: 83 c0 04 add $0x4,%eax <== NOT EXECUTED
break;
133f7a: eb 03 jmp 133f7f <msdos_find_name_in_fat_file+0x63c><== NOT EXECUTED
default:
p += 2;
133f7c: 83 c0 02 add $0x2,%eax <== NOT EXECUTED
*MSDOS_DIR_LFN_CHECKSUM(entry) = lfn_checksum;
p = entry + 1;
n = name + (lfn_entries - lfn_entry) * MSDOS_LFN_LEN_PER_ENTRY;
for (i = 0; i < MSDOS_LFN_LEN_PER_ENTRY; i++)
133f7f: 41 inc %ecx <== NOT EXECUTED
133f80: 83 f9 0d cmp $0xd,%ecx <== NOT EXECUTED
133f83: 75 d7 jne 133f5c <msdos_find_name_in_fat_file+0x619><== NOT EXECUTED
133f85: 8b 55 a0 mov -0x60(%ebp),%edx <== NOT EXECUTED
133f88: 8a 45 9b mov -0x65(%ebp),%al <== NOT EXECUTED
133f8b: 28 d0 sub %dl,%al <== NOT EXECUTED
p += 2;
break;
}
}
*MSDOS_DIR_ENTRY_TYPE(entry) = (lfn_entries - lfn_entry) + 1;
133f8d: 88 03 mov %al,(%ebx) <== NOT EXECUTED
if (lfn_entry == 1)
133f8f: 83 fa 01 cmp $0x1,%edx <== NOT EXECUTED
133f92: 75 05 jne 133f99 <msdos_find_name_in_fat_file+0x656><== NOT EXECUTED
*MSDOS_DIR_ENTRY_TYPE(entry) |= MSDOS_LAST_LONG_ENTRY;
133f94: 83 c8 40 or $0x40,%eax <== NOT EXECUTED
133f97: 88 03 mov %al,(%ebx) <== NOT EXECUTED
*MSDOS_DIR_ATTR(entry) |= MSDOS_ATTR_LFN;
133f99: 80 4b 0b 0f orb $0xf,0xb(%ebx) <== NOT EXECUTED
printf ("MSFS:[10] eso:%li\n", empty_space_offset);
#endif
for (dir_entry = empty_space_entry;
dir_entry < bts2rd;
dir_entry += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)
133f9d: 83 c6 20 add $0x20,%esi <== NOT EXECUTED
133fa0: 42 inc %edx <== NOT EXECUTED
133fa1: 83 6d d0 0d subl $0xd,-0x30(%ebp) <== NOT EXECUTED
133fa5: 8d 42 ff lea -0x1(%edx),%eax <== NOT EXECUTED
#if MSDOS_FIND_PRINT
printf ("MSFS:[10] eso:%li\n", empty_space_offset);
#endif
for (dir_entry = empty_space_entry;
133fa8: 3b 75 d4 cmp -0x2c(%ebp),%esi <== NOT EXECUTED
133fab: 0f 82 f8 fe ff ff jb 133ea9 <msdos_find_name_in_fat_file+0x566><== NOT EXECUTED
133fb1: 89 45 d0 mov %eax,-0x30(%ebp) <== NOT EXECUTED
if (lfn_entry == 1)
*MSDOS_DIR_ENTRY_TYPE(entry) |= MSDOS_LAST_LONG_ENTRY;
*MSDOS_DIR_ATTR(entry) |= MSDOS_ATTR_LFN;
}
ret = fat_file_write(mt_entry, fat_fd,
133fb4: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
133fb7: 8b 45 a8 mov -0x58(%ebp),%eax <== NOT EXECUTED
133fba: 8b 4d b0 mov -0x50(%ebp),%ecx <== NOT EXECUTED
133fbd: 03 81 98 00 00 00 add 0x98(%ecx),%eax <== NOT EXECUTED
133fc3: 50 push %eax <== NOT EXECUTED
133fc4: ff 75 ac pushl -0x54(%ebp) <== NOT EXECUTED
133fc7: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED
133fca: 03 45 a8 add -0x58(%ebp),%eax <== NOT EXECUTED
133fcd: 50 push %eax <== NOT EXECUTED
133fce: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
133fd1: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
133fd4: e8 40 12 ff ff call 125219 <fat_file_write> <== NOT EXECUTED
(empty_space_offset * bts2rd) + empty_space_entry,
length, fs_info->cl_buf + empty_space_entry);
if (ret == -1)
133fd9: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
133fdc: 83 f8 ff cmp $0xffffffff,%eax <== NOT EXECUTED
133fdf: 74 3b je 13401c <msdos_find_name_in_fat_file+0x6d9><== NOT EXECUTED
133fe1: 8b 75 d4 mov -0x2c(%ebp),%esi <== NOT EXECUTED
133fe4: 01 75 cc add %esi,-0x34(%ebp) <== NOT EXECUTED
return ret;
else if (ret != length)
133fe7: 3b 45 ac cmp -0x54(%ebp),%eax <== NOT EXECUTED
133fea: 74 0d je 133ff9 <msdos_find_name_in_fat_file+0x6b6><== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
133fec: e8 23 a0 00 00 call 13e014 <__errno> <== NOT EXECUTED
133ff1: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
133ff7: eb 23 jmp 13401c <msdos_find_name_in_fat_file+0x6d9><== NOT EXECUTED
empty_space_offset++;
133ff9: ff 45 a4 incl -0x5c(%ebp) <== NOT EXECUTED
133ffc: c7 45 a8 00 00 00 00 movl $0x0,-0x58(%ebp) <== NOT EXECUTED
134003: b0 01 mov $0x1,%al <== NOT EXECUTED
#endif
/*
* The one more is the short entry.
*/
while (lfn_entry < (lfn_entries + 1))
134005: 8b 7d d0 mov -0x30(%ebp),%edi <== NOT EXECUTED
134008: 39 7d b4 cmp %edi,-0x4c(%ebp) <== NOT EXECUTED
13400b: 0f 8d d2 fd ff ff jge 133de3 <msdos_find_name_in_fat_file+0x4a0><== NOT EXECUTED
134011: 31 c0 xor %eax,%eax <== NOT EXECUTED
134013: eb 0a jmp 13401f <msdos_find_name_in_fat_file+0x6dc><== NOT EXECUTED
134015: b8 01 7d 00 00 mov $0x7d01,%eax <== NOT EXECUTED
13401a: eb 03 jmp 13401f <msdos_find_name_in_fat_file+0x6dc><== NOT EXECUTED
13401c: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
empty_space_entry = 0;
read_cluster = true;
}
return 0;
}
13401f: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
134022: 5b pop %ebx <== NOT EXECUTED
134023: 5e pop %esi <== NOT EXECUTED
134024: 5f pop %edi <== NOT EXECUTED
134025: c9 leave <== NOT EXECUTED
134026: c3 ret <== NOT EXECUTED
00133820 <msdos_find_node_by_cluster_num_in_fat_file>:
fat_file_fd_t *fat_fd,
uint32_t cl4find,
fat_dir_pos_t *dir_pos,
char *dir_entry
)
{
133820: 55 push %ebp <== NOT EXECUTED
133821: 89 e5 mov %esp,%ebp <== NOT EXECUTED
133823: 57 push %edi <== NOT EXECUTED
133824: 56 push %esi <== NOT EXECUTED
133825: 53 push %ebx <== NOT EXECUTED
133826: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
133829: 8b 7d 0c mov 0xc(%ebp),%edi <== NOT EXECUTED
int rc = RC_OK;
ssize_t ret = 0;
msdos_fs_info_t *fs_info = mt_entry->fs_info;
13382c: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
13382f: 8b 50 34 mov 0x34(%eax),%edx <== NOT EXECUTED
uint32_t bts2rd = 0;
uint32_t i = 0, j = 0;
if (FAT_FD_OF_ROOT_DIR(fat_fd) &&
133832: 83 7f 20 01 cmpl $0x1,0x20(%edi) <== NOT EXECUTED
133836: 75 1b jne 133853 <msdos_find_node_by_cluster_num_in_fat_file+0x33><== NOT EXECUTED
133838: 83 7f 24 00 cmpl $0x0,0x24(%edi) <== NOT EXECUTED
13383c: 75 15 jne 133853 <msdos_find_node_by_cluster_num_in_fat_file+0x33><== NOT EXECUTED
(fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16)))
13383e: f6 42 0a 03 testb $0x3,0xa(%edx) <== NOT EXECUTED
133842: 74 0f je 133853 <msdos_find_node_by_cluster_num_in_fat_file+0x33><== NOT EXECUTED
bts2rd = fat_fd->fat_file_size;
133844: 8b 5f 18 mov 0x18(%edi),%ebx <== NOT EXECUTED
ssize_t ret = 0;
msdos_fs_info_t *fs_info = mt_entry->fs_info;
uint32_t bts2rd = 0;
uint32_t i = 0, j = 0;
if (FAT_FD_OF_ROOT_DIR(fat_fd) &&
133847: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp) <== NOT EXECUTED
13384e: e9 bc 00 00 00 jmp 13390f <msdos_find_node_by_cluster_num_in_fat_file+0xef><== NOT EXECUTED
(fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16)))
bts2rd = fat_fd->fat_file_size;
else
bts2rd = fs_info->fat.vol.bpc;
133853: 0f b7 5a 06 movzwl 0x6(%edx),%ebx <== NOT EXECUTED
133857: eb ee jmp 133847 <msdos_find_node_by_cluster_num_in_fat_file+0x27><== NOT EXECUTED
while ((ret = fat_file_read(mt_entry, fat_fd, j * bts2rd, bts2rd,
fs_info->cl_buf)) != FAT_EOF)
{
if ( ret < MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE )
133859: 83 f8 1f cmp $0x1f,%eax <== NOT EXECUTED
13385c: 7f 13 jg 133871 <msdos_find_node_by_cluster_num_in_fat_file+0x51><== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EIO );
13385e: e8 b1 a7 00 00 call 13e014 <__errno> <== NOT EXECUTED
133863: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
133869: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
13386c: e9 ca 00 00 00 jmp 13393b <msdos_find_node_by_cluster_num_in_fat_file+0x11b><== NOT EXECUTED
assert(ret == bts2rd);
133871: 39 d8 cmp %ebx,%eax <== NOT EXECUTED
133873: 74 19 je 13388e <msdos_find_node_by_cluster_num_in_fat_file+0x6e><== NOT EXECUTED
133875: 68 20 e1 15 00 push $0x15e120 <== NOT EXECUTED
13387a: 68 dc e1 15 00 push $0x15e1dc <== NOT EXECUTED
13387f: 68 95 06 00 00 push $0x695 <== NOT EXECUTED
133884: 68 2e e1 15 00 push $0x15e12e <== NOT EXECUTED
133889: e8 22 90 fd ff call 10c8b0 <__assert_func> <== NOT EXECUTED
for (i = 0; i < bts2rd; i += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)
{
char* entry = (char*) fs_info->cl_buf + i;
13388e: 8b 82 98 00 00 00 mov 0x98(%edx),%eax <== NOT EXECUTED
133894: 31 f6 xor %esi,%esi <== NOT EXECUTED
133896: 8d 0c 30 lea (%eax,%esi,1),%ecx <== NOT EXECUTED
133899: 89 4d dc mov %ecx,-0x24(%ebp) <== NOT EXECUTED
/* if this and all rest entries are empty - return not-found */
if ((*MSDOS_DIR_ENTRY_TYPE(entry)) ==
13389c: 8a 0c 30 mov (%eax,%esi,1),%cl <== NOT EXECUTED
13389f: 84 c9 test %cl,%cl <== NOT EXECUTED
1338a1: 0f 84 8f 00 00 00 je 133936 <msdos_find_node_by_cluster_num_in_fat_file+0x116><== NOT EXECUTED
MSDOS_THIS_DIR_ENTRY_AND_REST_EMPTY)
return MSDOS_NAME_NOT_FOUND_ERR;
/* if this entry is empty - skip it */
if ((*MSDOS_DIR_ENTRY_TYPE(entry)) ==
1338a7: 80 f9 e5 cmp $0xe5,%cl <== NOT EXECUTED
1338aa: 74 59 je 133905 <msdos_find_node_by_cluster_num_in_fat_file+0xe5><== NOT EXECUTED
MSDOS_THIS_DIR_ENTRY_EMPTY)
continue;
/* if get a non-empty entry - compare clusters num */
if (MSDOS_EXTRACT_CLUSTER_NUM(entry) == cl4find)
1338ac: 0f b7 4c 30 14 movzwl 0x14(%eax,%esi,1),%ecx <== NOT EXECUTED
1338b1: c1 e1 10 shl $0x10,%ecx <== NOT EXECUTED
1338b4: 89 4d e4 mov %ecx,-0x1c(%ebp) <== NOT EXECUTED
1338b7: 0f b7 4c 30 1a movzwl 0x1a(%eax,%esi,1),%ecx <== NOT EXECUTED
1338bc: 09 4d e4 or %ecx,-0x1c(%ebp) <== NOT EXECUTED
1338bf: 8b 4d 10 mov 0x10(%ebp),%ecx <== NOT EXECUTED
1338c2: 39 4d e4 cmp %ecx,-0x1c(%ebp) <== NOT EXECUTED
1338c5: 75 3e jne 133905 <msdos_find_node_by_cluster_num_in_fat_file+0xe5><== NOT EXECUTED
{
/* on success fill aux structure and copy all 32 bytes */
rc = fat_file_ioctl(mt_entry, fat_fd, F_CLU_NUM, j * bts2rd,
1338c7: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1338ca: ff 75 14 pushl 0x14(%ebp) <== NOT EXECUTED
1338cd: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
1338d0: 6a 01 push $0x1 <== NOT EXECUTED
1338d2: 57 push %edi <== NOT EXECUTED
1338d3: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
1338d6: e8 3b 16 ff ff call 124f16 <fat_file_ioctl> <== NOT EXECUTED
&dir_pos->sname.cln);
if (rc != RC_OK)
1338db: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
1338de: 85 c0 test %eax,%eax <== NOT EXECUTED
1338e0: 75 59 jne 13393b <msdos_find_node_by_cluster_num_in_fat_file+0x11b><== NOT EXECUTED
return rc;
dir_pos->sname.ofs = i;
1338e2: 8b 55 14 mov 0x14(%ebp),%edx <== NOT EXECUTED
1338e5: 89 72 04 mov %esi,0x4(%edx) <== NOT EXECUTED
dir_pos->lname.cln = FAT_FILE_SHORT_NAME;
1338e8: c7 42 08 ff ff ff ff movl $0xffffffff,0x8(%edx) <== NOT EXECUTED
dir_pos->lname.ofs = FAT_FILE_SHORT_NAME;
1338ef: c7 42 0c ff ff ff ff movl $0xffffffff,0xc(%edx) <== NOT EXECUTED
memcpy(dir_entry, entry,
1338f6: b9 08 00 00 00 mov $0x8,%ecx <== NOT EXECUTED
1338fb: 8b 7d 18 mov 0x18(%ebp),%edi <== NOT EXECUTED
1338fe: 8b 75 dc mov -0x24(%ebp),%esi <== NOT EXECUTED
133901: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED
MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
return RC_OK;
133903: eb 36 jmp 13393b <msdos_find_node_by_cluster_num_in_fat_file+0x11b><== NOT EXECUTED
if ( ret < MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE )
rtems_set_errno_and_return_minus_one( EIO );
assert(ret == bts2rd);
for (i = 0; i < bts2rd; i += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)
133905: 83 c6 20 add $0x20,%esi <== NOT EXECUTED
133908: 39 de cmp %ebx,%esi <== NOT EXECUTED
13390a: 72 8a jb 133896 <msdos_find_node_by_cluster_num_in_fat_file+0x76><== NOT EXECUTED
13390c: 01 5d e0 add %ebx,-0x20(%ebp) <== NOT EXECUTED
(fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16)))
bts2rd = fat_fd->fat_file_size;
else
bts2rd = fs_info->fat.vol.bpc;
while ((ret = fat_file_read(mt_entry, fat_fd, j * bts2rd, bts2rd,
13390f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
133912: ff b2 98 00 00 00 pushl 0x98(%edx) <== NOT EXECUTED
133918: 53 push %ebx <== NOT EXECUTED
133919: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
13391c: 57 push %edi <== NOT EXECUTED
13391d: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
133920: 89 55 d8 mov %edx,-0x28(%ebp) <== NOT EXECUTED
133923: e8 f3 1a ff ff call 12541b <fat_file_read> <== NOT EXECUTED
133928: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
13392b: 85 c0 test %eax,%eax <== NOT EXECUTED
13392d: 8b 55 d8 mov -0x28(%ebp),%edx <== NOT EXECUTED
133930: 0f 85 23 ff ff ff jne 133859 <msdos_find_node_by_cluster_num_in_fat_file+0x39><== NOT EXECUTED
133936: b8 01 7d 00 00 mov $0x7d01,%eax <== NOT EXECUTED
}
}
j++;
}
return MSDOS_NAME_NOT_FOUND_ERR;
}
13393b: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13393e: 5b pop %ebx <== NOT EXECUTED
13393f: 5e pop %esi <== NOT EXECUTED
133940: 5f pop %edi <== NOT EXECUTED
133941: c9 leave <== NOT EXECUTED
133942: c3 ret <== NOT EXECUTED
0011fe6d <msdos_format>:
)
/*-------------------------------------------------------------------------*\
| Return Value: |
| 0, if success, -1 and errno if failed |
\*=========================================================================*/
{
11fe6d: 55 push %ebp <== NOT EXECUTED
11fe6e: 89 e5 mov %esp,%ebp <== NOT EXECUTED
11fe70: 57 push %edi <== NOT EXECUTED
11fe71: 56 push %esi <== NOT EXECUTED
11fe72: 53 push %ebx <== NOT EXECUTED
11fe73: 81 ec fc 02 00 00 sub $0x2fc,%esp <== NOT EXECUTED
11fe79: 8b 7d 08 mov 0x8(%ebp),%edi <== NOT EXECUTED
int ret_val = 0;
int fd = -1;
int i;
msdos_format_param_t fmt_params;
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_INFO,
11fe7c: 57 push %edi <== NOT EXECUTED
11fe7d: 68 51 9d 15 00 push $0x159d51 <== NOT EXECUTED
11fe82: 6a 01 push $0x1 <== NOT EXECUTED
11fe84: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
11fe87: e8 5c fe ff ff call 11fce8 <msdos_format_printf> <== NOT EXECUTED
"formating: %s\n", devname);
/*
* sanity check on device
*/
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,
11fe8c: 57 push %edi <== NOT EXECUTED
11fe8d: 68 60 9d 15 00 push $0x159d60 <== NOT EXECUTED
11fe92: 6a 02 push $0x2 <== NOT EXECUTED
11fe94: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
11fe97: e8 4c fe ff ff call 11fce8 <msdos_format_printf> <== NOT EXECUTED
"stat check: %s\n", devname);
if (ret_val == 0) {
rc = stat(devname, &stat_buf);
11fe9c: 83 c4 18 add $0x18,%esp <== NOT EXECUTED
11fe9f: 8d 45 94 lea -0x6c(%ebp),%eax <== NOT EXECUTED
11fea2: 50 push %eax <== NOT EXECUTED
11fea3: 57 push %edi <== NOT EXECUTED
11fea4: e8 43 e4 fe ff call 10e2ec <stat> <== NOT EXECUTED
11fea9: 89 c6 mov %eax,%esi <== NOT EXECUTED
ret_val = rc;
}
/* rtems feature: no block devices, all are character devices */
if ((ret_val == 0) &&
11feab: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
11feae: 89 c3 mov %eax,%ebx <== NOT EXECUTED
11feb0: 85 c0 test %eax,%eax <== NOT EXECUTED
11feb2: 75 21 jne 11fed5 <msdos_format+0x68> <== NOT EXECUTED
(!S_ISBLK(stat_buf.st_mode))) {
11feb4: 8b 45 a0 mov -0x60(%ebp),%eax <== NOT EXECUTED
11feb7: 25 00 f0 00 00 and $0xf000,%eax <== NOT EXECUTED
11febc: 3d 00 60 00 00 cmp $0x6000,%eax <== NOT EXECUTED
11fec1: 0f 84 58 0b 00 00 je 120a1f <msdos_format+0xbb2> <== NOT EXECUTED
errno = ENOTTY;
11fec7: e8 48 e1 01 00 call 13e014 <__errno> <== NOT EXECUTED
11fecc: c7 00 19 00 00 00 movl $0x19,(%eax) <== NOT EXECUTED
11fed2: 83 cb ff or $0xffffffff,%ebx <== NOT EXECUTED
11fed5: c7 85 2c fd ff ff 00 movl $0x0,-0x2d4(%ebp) <== NOT EXECUTED
11fedc: 00 00 00
11fedf: eb 0e jmp 11feef <msdos_format+0x82> <== NOT EXECUTED
/* check that device is registered as block device and lock it */
if (ret_val == 0) {
dd = rtems_disk_obtain(stat_buf.st_rdev);
if (dd == NULL) {
errno = ENOTTY;
11fee1: e8 2e e1 01 00 call 13e014 <__errno> <== NOT EXECUTED
11fee6: c7 00 19 00 00 00 movl $0x19,(%eax) <== NOT EXECUTED
11feec: 83 cb ff or $0xffffffff,%ebx <== NOT EXECUTED
11feef: c7 85 34 fd ff ff ff movl $0xffffffff,-0x2cc(%ebp) <== NOT EXECUTED
11fef6: ff ff ff
ret_val = msdos_format_determine_fmt_params(dd,rqdata,&fmt_params);
}
/*
* if requested, write whole disk/partition with 0xe5
*/
if ((ret_val == 0) &&
11fef9: 85 db test %ebx,%ebx <== NOT EXECUTED
11fefb: 0f 85 fa 0a 00 00 jne 1209fb <msdos_format+0xb8e> <== NOT EXECUTED
11ff01: e9 cc 04 00 00 jmp 1203d2 <msdos_format+0x565> <== NOT EXECUTED
/*
* determine number of FATs
*/
if (ret_val == 0) {
if ((rqdata == NULL) ||
(rqdata->fat_num == 0)) {
11ff06: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
11ff09: 8b 43 0c mov 0xc(%ebx),%eax <== NOT EXECUTED
}
/*
* determine number of FATs
*/
if (ret_val == 0) {
if ((rqdata == NULL) ||
11ff0c: 85 c0 test %eax,%eax <== NOT EXECUTED
11ff0e: 75 09 jne 11ff19 <msdos_format+0xac> <== NOT EXECUTED
(rqdata->fat_num == 0)) {
fmt_params->fat_num = 2;
11ff10: c6 85 74 ff ff ff 02 movb $0x2,-0x8c(%ebp) <== NOT EXECUTED
11ff17: eb 14 jmp 11ff2d <msdos_format+0xc0> <== NOT EXECUTED
uint32_t sectors_per_fat;
uint32_t data_cluster_cnt;
/*
* ensure, that maximum cluster size (32KByte) is not exceeded
*/
while (MS_BYTES_PER_CLUSTER_LIMIT / bytes_per_sector < sectors_per_cluster) {
11ff19: bb 16 00 00 00 mov $0x16,%ebx <== NOT EXECUTED
if (ret_val == 0) {
if ((rqdata == NULL) ||
(rqdata->fat_num == 0)) {
fmt_params->fat_num = 2;
}
else if (rqdata->fat_num <= 6) {
11ff1e: 83 f8 06 cmp $0x6,%eax <== NOT EXECUTED
11ff21: 0f 87 8e 03 00 00 ja 1202b5 <msdos_format+0x448> <== NOT EXECUTED
fmt_params->fat_num = rqdata->fat_num;
11ff27: 88 85 74 ff ff ff mov %al,-0x8c(%ebp) <== NOT EXECUTED
ret_val = EINVAL;
}
}
if (ret_val == 0)
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,
11ff2d: 0f b6 85 74 ff ff ff movzbl -0x8c(%ebp),%eax <== NOT EXECUTED
11ff34: 50 push %eax <== NOT EXECUTED
11ff35: 68 70 9d 15 00 push $0x159d70 <== NOT EXECUTED
11ff3a: 6a 02 push $0x2 <== NOT EXECUTED
11ff3c: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
11ff3f: 89 95 18 fd ff ff mov %edx,-0x2e8(%ebp) <== NOT EXECUTED
11ff45: 89 8d 14 fd ff ff mov %ecx,-0x2ec(%ebp) <== NOT EXECUTED
11ff4b: e8 98 fd ff ff call 11fce8 <msdos_format_printf> <== NOT EXECUTED
/*
* determine FAT type and sectors per cluster
* depends on
*/
if (ret_val == 0) {
fmt_params->sectors_per_cluster = 1;
11ff50: c7 85 50 ff ff ff 01 movl $0x1,-0xb0(%ebp) <== NOT EXECUTED
11ff57: 00 00 00
if ((rqdata != NULL) &&
11ff5a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
11ff5d: 83 7d 0c 00 cmpl $0x0,0xc(%ebp) <== NOT EXECUTED
11ff61: 8b 95 18 fd ff ff mov -0x2e8(%ebp),%edx <== NOT EXECUTED
11ff67: 8b 8d 14 fd ff ff mov -0x2ec(%ebp),%ecx <== NOT EXECUTED
11ff6d: 74 46 je 11ffb5 <msdos_format+0x148> <== NOT EXECUTED
(rqdata->fattype == MSDOS_FMT_FAT12)) {
11ff6f: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
11ff72: 8a 43 14 mov 0x14(%ebx),%al <== NOT EXECUTED
* determine FAT type and sectors per cluster
* depends on
*/
if (ret_val == 0) {
fmt_params->sectors_per_cluster = 1;
if ((rqdata != NULL) &&
11ff75: 3c 01 cmp $0x1,%al <== NOT EXECUTED
11ff77: 75 09 jne 11ff82 <msdos_format+0x115> <== NOT EXECUTED
(rqdata->fattype == MSDOS_FMT_FAT12)) {
fmt_params->fattype = FAT_FAT12;
11ff79: c6 85 76 ff ff ff 01 movb $0x1,-0x8a(%ebp) <== NOT EXECUTED
11ff80: eb 18 jmp 11ff9a <msdos_format+0x12d> <== NOT EXECUTED
}
else if ((rqdata != NULL) &&
11ff82: 3c 02 cmp $0x2,%al <== NOT EXECUTED
11ff84: 75 09 jne 11ff8f <msdos_format+0x122> <== NOT EXECUTED
(rqdata->fattype == MSDOS_FMT_FAT16)) {
fmt_params->fattype = FAT_FAT16;
11ff86: c6 85 76 ff ff ff 02 movb $0x2,-0x8a(%ebp) <== NOT EXECUTED
11ff8d: eb 0b jmp 11ff9a <msdos_format+0x12d> <== NOT EXECUTED
}
else if ((rqdata != NULL) &&
11ff8f: 3c 03 cmp $0x3,%al <== NOT EXECUTED
11ff91: 75 0e jne 11ffa1 <msdos_format+0x134> <== NOT EXECUTED
(rqdata->fattype == MSDOS_FMT_FAT32)) {
fmt_params->fattype = FAT_FAT32;
11ff93: c6 85 76 ff ff ff 04 movb $0x4,-0x8a(%ebp) <== NOT EXECUTED
11ff9a: 31 db xor %ebx,%ebx <== NOT EXECUTED
11ff9c: e9 8a 00 00 00 jmp 12002b <msdos_format+0x1be> <== NOT EXECUTED
}
else if ((rqdata != NULL) &&
11ffa1: 84 c0 test %al,%al <== NOT EXECUTED
11ffa3: 74 10 je 11ffb5 <msdos_format+0x148> <== NOT EXECUTED
(rqdata->fattype != MSDOS_FMT_FATANY)) {
ret_val = -1;
errno = EINVAL;
11ffa5: e8 6a e0 01 00 call 13e014 <__errno> <== NOT EXECUTED
11ffaa: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
11ffb0: 83 cb ff or $0xffffffff,%ebx <== NOT EXECUTED
11ffb3: eb 76 jmp 12002b <msdos_format+0x1be> <== NOT EXECUTED
/*
* limiting values for disk size, fat type, sectors per cluster
* NOTE: maximum sect_per_clust is arbitrarily choosen with values that
* are a compromise concerning capacity and efficency
*/
if (fmt_params->totl_sector_cnt
11ffb5: 8b 85 48 ff ff ff mov -0xb8(%ebp),%eax <== NOT EXECUTED
11ffbb: 3d a7 7f 00 00 cmp $0x7fa7,%eax <== NOT EXECUTED
11ffc0: 77 09 ja 11ffcb <msdos_format+0x15e> <== NOT EXECUTED
< ((uint32_t)FAT_FAT12_MAX_CLN)*8) {
fmt_params->fattype = FAT_FAT12;
11ffc2: c6 85 76 ff ff ff 01 movb $0x1,-0x8a(%ebp) <== NOT EXECUTED
11ffc9: eb 0e jmp 11ffd9 <msdos_format+0x16c> <== NOT EXECUTED
/* start trying with small clusters */
fmt_params->sectors_per_cluster = 2;
}
else if (fmt_params->totl_sector_cnt
11ffcb: 3d 9f fe 1f 00 cmp $0x1ffe9f,%eax <== NOT EXECUTED
11ffd0: 77 13 ja 11ffe5 <msdos_format+0x178> <== NOT EXECUTED
< ((uint32_t)FAT_FAT16_MAX_CLN)*32) {
fmt_params->fattype = FAT_FAT16;
11ffd2: c6 85 76 ff ff ff 02 movb $0x2,-0x8a(%ebp) <== NOT EXECUTED
/* start trying with small clusters */
fmt_params->sectors_per_cluster = 2;
11ffd9: c7 85 50 ff ff ff 02 movl $0x2,-0xb0(%ebp) <== NOT EXECUTED
11ffe0: 00 00 00
11ffe3: eb 39 jmp 12001e <msdos_format+0x1b1> <== NOT EXECUTED
}
else {
#define ONE_GB (1024L * 1024L * 1024L)
uint32_t gigs = (total_size + ONE_GB) / ONE_GB;
11ffe5: 81 c2 00 00 00 40 add $0x40000000,%edx <== NOT EXECUTED
11ffeb: 83 d1 00 adc $0x0,%ecx <== NOT EXECUTED
11ffee: 0f ac ca 1e shrd $0x1e,%ecx,%edx <== NOT EXECUTED
11fff2: c1 e9 1e shr $0x1e,%ecx <== NOT EXECUTED
11fff5: b9 1f 00 00 00 mov $0x1f,%ecx <== NOT EXECUTED
int b;
fmt_params->fattype = FAT_FAT32;
/* scale with the size of disk... */
for (b = 31; b > 0; b--)
if ((gigs & (1 << b)) != 0)
11fffa: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
11ffff: 89 c3 mov %eax,%ebx <== NOT EXECUTED
120001: d3 e3 shl %cl,%ebx <== NOT EXECUTED
120003: 85 d3 test %edx,%ebx <== NOT EXECUTED
120005: 75 03 jne 12000a <msdos_format+0x19d> <== NOT EXECUTED
#define ONE_GB (1024L * 1024L * 1024L)
uint32_t gigs = (total_size + ONE_GB) / ONE_GB;
int b;
fmt_params->fattype = FAT_FAT32;
/* scale with the size of disk... */
for (b = 31; b > 0; b--)
120007: 49 dec %ecx <== NOT EXECUTED
120008: 75 f5 jne 11ffff <msdos_format+0x192> <== NOT EXECUTED
}
else {
#define ONE_GB (1024L * 1024L * 1024L)
uint32_t gigs = (total_size + ONE_GB) / ONE_GB;
int b;
fmt_params->fattype = FAT_FAT32;
12000a: c6 85 76 ff ff ff 04 movb $0x4,-0x8a(%ebp) <== NOT EXECUTED
/* scale with the size of disk... */
for (b = 31; b > 0; b--)
if ((gigs & (1 << b)) != 0)
break;
fmt_params->sectors_per_cluster = 1 << b;
120011: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
120016: d3 e0 shl %cl,%eax <== NOT EXECUTED
120018: 89 85 50 ff ff ff mov %eax,-0xb0(%ebp) <== NOT EXECUTED
}
}
/*
* try to use user requested cluster size
*/
if ((rqdata != NULL) &&
12001e: 31 db xor %ebx,%ebx <== NOT EXECUTED
120020: 83 7d 0c 00 cmpl $0x0,0xc(%ebp) <== NOT EXECUTED
120024: 75 05 jne 12002b <msdos_format+0x1be> <== NOT EXECUTED
120026: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
120029: eb 10 jmp 12003b <msdos_format+0x1ce> <== NOT EXECUTED
(rqdata->sectors_per_cluster > 0)) {
12002b: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
12002e: 8b 42 08 mov 0x8(%edx),%eax <== NOT EXECUTED
}
}
/*
* try to use user requested cluster size
*/
if ((rqdata != NULL) &&
120031: 85 c0 test %eax,%eax <== NOT EXECUTED
120033: 74 06 je 12003b <msdos_format+0x1ce> <== NOT EXECUTED
(rqdata->sectors_per_cluster > 0)) {
fmt_params->sectors_per_cluster =
120035: 89 85 50 ff ff ff mov %eax,-0xb0(%ebp) <== NOT EXECUTED
*/
for (onebit = 128;onebit >= 1;onebit = onebit>>1) {
if (fmt_params->sectors_per_cluster >= onebit) {
fmt_params->sectors_per_cluster = onebit;
if (fmt_params->sectors_per_cluster
<= 32768L/fmt_params->bytes_per_sector) {
12003b: 8b bd 44 ff ff ff mov -0xbc(%ebp),%edi <== NOT EXECUTED
120041: 8b 95 50 ff ff ff mov -0xb0(%ebp),%edx <== NOT EXECUTED
120047: b9 80 00 00 00 mov $0x80,%ecx <== NOT EXECUTED
* sectors_per_cluster*bytes_per_sector must not be bigger than 32K
*/
for (onebit = 128;onebit >= 1;onebit = onebit>>1) {
if (fmt_params->sectors_per_cluster >= onebit) {
fmt_params->sectors_per_cluster = onebit;
if (fmt_params->sectors_per_cluster
12004c: be 00 80 00 00 mov $0x8000,%esi <== NOT EXECUTED
* must be power of 2
* must be smaller than or equal to 128
* sectors_per_cluster*bytes_per_sector must not be bigger than 32K
*/
for (onebit = 128;onebit >= 1;onebit = onebit>>1) {
if (fmt_params->sectors_per_cluster >= onebit) {
120051: 39 ca cmp %ecx,%edx <== NOT EXECUTED
120053: 72 11 jb 120066 <msdos_format+0x1f9> <== NOT EXECUTED
fmt_params->sectors_per_cluster = onebit;
if (fmt_params->sectors_per_cluster
120055: 89 f0 mov %esi,%eax <== NOT EXECUTED
120057: 31 d2 xor %edx,%edx <== NOT EXECUTED
120059: f7 f7 div %edi <== NOT EXECUTED
12005b: 89 ca mov %ecx,%edx <== NOT EXECUTED
12005d: 39 c1 cmp %eax,%ecx <== NOT EXECUTED
12005f: 77 05 ja 120066 <msdos_format+0x1f9> <== NOT EXECUTED
120061: b9 01 00 00 00 mov $0x1,%ecx <== NOT EXECUTED
* check sectors per cluster.
* must be power of 2
* must be smaller than or equal to 128
* sectors_per_cluster*bytes_per_sector must not be bigger than 32K
*/
for (onebit = 128;onebit >= 1;onebit = onebit>>1) {
120066: d1 e9 shr %ecx <== NOT EXECUTED
120068: 75 e7 jne 120051 <msdos_format+0x1e4> <== NOT EXECUTED
12006a: 89 95 50 ff ff ff mov %edx,-0xb0(%ebp) <== NOT EXECUTED
}
}
}
}
if (ret_val == 0) {
120070: 85 db test %ebx,%ebx <== NOT EXECUTED
120072: 0f 85 3d 02 00 00 jne 1202b5 <msdos_format+0x448> <== NOT EXECUTED
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,
120078: 52 push %edx <== NOT EXECUTED
120079: 68 84 9d 15 00 push $0x159d84 <== NOT EXECUTED
12007e: 6a 02 push $0x2 <== NOT EXECUTED
120080: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
120083: e8 60 fc ff ff call 11fce8 <msdos_format_printf> <== NOT EXECUTED
"sectors per cluster: %d\n", fmt_params->sectors_per_cluster);
if (fmt_params->fattype == FAT_FAT32) {
120088: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12008b: 80 bd 76 ff ff ff 04 cmpb $0x4,-0x8a(%ebp) <== NOT EXECUTED
120092: 75 2a jne 1200be <msdos_format+0x251> <== NOT EXECUTED
/* recommended: for FAT32, always set reserved sector count to 32 */
fmt_params->rsvd_sector_cnt = 32;
120094: c7 85 4c ff ff ff 20 movl $0x20,-0xb4(%ebp) <== NOT EXECUTED
12009b: 00 00 00
/* for FAT32, always set files per root directory 0 */
fmt_params->files_per_root_dir = 0;
12009e: c7 85 5c ff ff ff 00 movl $0x0,-0xa4(%ebp) <== NOT EXECUTED
1200a5: 00 00 00
/* location of copy of MBR */
fmt_params->mbr_copy_sec = 6;
1200a8: c7 85 6c ff ff ff 06 movl $0x6,-0x94(%ebp) <== NOT EXECUTED
1200af: 00 00 00
/* location of fsinfo sector */
fmt_params->fsinfo_sec = 1;
1200b2: c7 85 70 ff ff ff 01 movl $0x1,-0x90(%ebp) <== NOT EXECUTED
1200b9: 00 00 00
1200bc: eb 5b jmp 120119 <msdos_format+0x2ac> <== NOT EXECUTED
}
else {
/* recommended: for FAT12/FAT16, always set reserved sector count to 1 */
fmt_params->rsvd_sector_cnt = 1;
1200be: c7 85 4c ff ff ff 01 movl $0x1,-0xb4(%ebp) <== NOT EXECUTED
1200c5: 00 00 00
/* recommended: for FAT16, set files per root directory to 512 */
/* for FAT12/FAT16, set files per root directory */
/* must fill up an even count of sectors */
if ((rqdata != NULL) &&
1200c8: 83 7d 0c 00 cmpl $0x0,0xc(%ebp) <== NOT EXECUTED
1200cc: 74 0a je 1200d8 <msdos_format+0x26b> <== NOT EXECUTED
(rqdata->files_per_root_dir > 0)) {
1200ce: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED
1200d1: 8b 41 10 mov 0x10(%ecx),%eax <== NOT EXECUTED
/* recommended: for FAT12/FAT16, always set reserved sector count to 1 */
fmt_params->rsvd_sector_cnt = 1;
/* recommended: for FAT16, set files per root directory to 512 */
/* for FAT12/FAT16, set files per root directory */
/* must fill up an even count of sectors */
if ((rqdata != NULL) &&
1200d4: 85 c0 test %eax,%eax <== NOT EXECUTED
1200d6: 75 17 jne 1200ef <msdos_format+0x282> <== NOT EXECUTED
(rqdata->files_per_root_dir > 0)) {
fmt_params->files_per_root_dir = rqdata->files_per_root_dir;
}
else {
if (fmt_params->fattype == FAT_FAT16) {
fmt_params->files_per_root_dir = 512;
1200d8: 31 c0 xor %eax,%eax <== NOT EXECUTED
1200da: 80 bd 76 ff ff ff 02 cmpb $0x2,-0x8a(%ebp) <== NOT EXECUTED
1200e1: 0f 94 c0 sete %al <== NOT EXECUTED
1200e4: 48 dec %eax <== NOT EXECUTED
1200e5: 25 40 fe ff ff and $0xfffffe40,%eax <== NOT EXECUTED
1200ea: 05 00 02 00 00 add $0x200,%eax <== NOT EXECUTED
1200ef: 89 85 5c ff ff ff mov %eax,-0xa4(%ebp) <== NOT EXECUTED
}
else {
fmt_params->files_per_root_dir = 64;
}
}
fmt_params->files_per_root_dir = (fmt_params->files_per_root_dir +
1200f5: 8b 95 44 ff ff ff mov -0xbc(%ebp),%edx <== NOT EXECUTED
1200fb: 8d 3c 12 lea (%edx,%edx,1),%edi <== NOT EXECUTED
1200fe: c1 ef 05 shr $0x5,%edi <== NOT EXECUTED
120101: 8b 85 5c ff ff ff mov -0xa4(%ebp),%eax <== NOT EXECUTED
120107: 8d 4c 38 ff lea -0x1(%eax,%edi,1),%ecx <== NOT EXECUTED
(2*fmt_params->bytes_per_sector/
FAT_DIRENTRY_SIZE-1));
fmt_params->files_per_root_dir -= (fmt_params->files_per_root_dir %
12010b: 89 c8 mov %ecx,%eax <== NOT EXECUTED
12010d: 31 d2 xor %edx,%edx <== NOT EXECUTED
12010f: f7 f7 div %edi <== NOT EXECUTED
120111: 29 d1 sub %edx,%ecx <== NOT EXECUTED
120113: 89 8d 5c ff ff ff mov %ecx,-0xa4(%ebp) <== NOT EXECUTED
(2*fmt_params->bytes_per_sector
/FAT_DIRENTRY_SIZE));
}
fmt_params->root_dir_sectors =
(((fmt_params->files_per_root_dir * FAT_DIRENTRY_SIZE)
+ fmt_params->bytes_per_sector - 1)
120119: 8b 8d 44 ff ff ff mov -0xbc(%ebp),%ecx <== NOT EXECUTED
12011f: 89 8d 30 fd ff ff mov %ecx,-0x2d0(%ebp) <== NOT EXECUTED
fmt_params->files_per_root_dir -= (fmt_params->files_per_root_dir %
(2*fmt_params->bytes_per_sector
/FAT_DIRENTRY_SIZE));
}
fmt_params->root_dir_sectors =
(((fmt_params->files_per_root_dir * FAT_DIRENTRY_SIZE)
120125: 8b 85 5c ff ff ff mov -0xa4(%ebp),%eax <== NOT EXECUTED
12012b: c1 e0 05 shl $0x5,%eax <== NOT EXECUTED
12012e: 8d 44 01 ff lea -0x1(%ecx,%eax,1),%eax <== NOT EXECUTED
120132: 31 d2 xor %edx,%edx <== NOT EXECUTED
120134: f7 f1 div %ecx <== NOT EXECUTED
FAT_DIRENTRY_SIZE-1));
fmt_params->files_per_root_dir -= (fmt_params->files_per_root_dir %
(2*fmt_params->bytes_per_sector
/FAT_DIRENTRY_SIZE));
}
fmt_params->root_dir_sectors =
120136: 89 85 60 ff ff ff mov %eax,-0xa0(%ebp) <== NOT EXECUTED
(((fmt_params->files_per_root_dir * FAT_DIRENTRY_SIZE)
+ fmt_params->bytes_per_sector - 1)
/ fmt_params->bytes_per_sector);
}
if (ret_val == 0) {
fatdata_sect_cnt = (fmt_params->totl_sector_cnt -
12013c: 8b b5 48 ff ff ff mov -0xb8(%ebp),%esi <== NOT EXECUTED
120142: 2b b5 4c ff ff ff sub -0xb4(%ebp),%esi <== NOT EXECUTED
120148: 29 c6 sub %eax,%esi <== NOT EXECUTED
/*
* check values to get legal arrangement of FAT type and cluster count
*/
ret_val = msdos_format_eval_sectors_per_cluster
12014a: 8b 8d 50 ff ff ff mov -0xb0(%ebp),%ecx <== NOT EXECUTED
(fmt_params->fattype,
fmt_params->bytes_per_sector,
fatdata_sect_cnt,
fmt_params->fat_num,
120150: 8b bd 74 ff ff ff mov -0x8c(%ebp),%edi <== NOT EXECUTED
/*
* check values to get legal arrangement of FAT type and cluster count
*/
ret_val = msdos_format_eval_sectors_per_cluster
120156: 0f b6 85 76 ff ff ff movzbl -0x8a(%ebp),%eax <== NOT EXECUTED
12015d: 89 85 28 fd ff ff mov %eax,-0x2d8(%ebp) <== NOT EXECUTED
uint32_t sectors_per_fat;
uint32_t data_cluster_cnt;
/*
* ensure, that maximum cluster size (32KByte) is not exceeded
*/
while (MS_BYTES_PER_CLUSTER_LIMIT / bytes_per_sector < sectors_per_cluster) {
120163: b8 00 80 00 00 mov $0x8000,%eax <== NOT EXECUTED
120168: 31 d2 xor %edx,%edx <== NOT EXECUTED
12016a: f7 b5 30 fd ff ff divl -0x2d0(%ebp) <== NOT EXECUTED
120170: eb 02 jmp 120174 <msdos_format+0x307> <== NOT EXECUTED
sectors_per_cluster /= 2;
120172: d1 e9 shr %ecx <== NOT EXECUTED
uint32_t sectors_per_fat;
uint32_t data_cluster_cnt;
/*
* ensure, that maximum cluster size (32KByte) is not exceeded
*/
while (MS_BYTES_PER_CLUSTER_LIMIT / bytes_per_sector < sectors_per_cluster) {
120174: 39 c8 cmp %ecx,%eax <== NOT EXECUTED
120176: 72 fa jb 120172 <msdos_format+0x305> <== NOT EXECUTED
}
else { /* FAT32 */
fat_capacity = fatdata_cluster_cnt * 4;
}
sectors_per_fat = ((fat_capacity
120178: 8b 95 30 fd ff ff mov -0x2d0(%ebp),%edx <== NOT EXECUTED
12017e: 4a dec %edx <== NOT EXECUTED
12017f: 89 95 20 fd ff ff mov %edx,-0x2e0(%ebp) <== NOT EXECUTED
+ (bytes_per_sector - 1))
/ bytes_per_sector);
data_cluster_cnt = (fatdata_cluster_cnt -
120185: 89 f8 mov %edi,%eax <== NOT EXECUTED
120187: 0f b6 f8 movzbl %al,%edi <== NOT EXECUTED
12018a: 89 bd 1c fd ff ff mov %edi,-0x2e4(%ebp) <== NOT EXECUTED
120190: 89 df mov %ebx,%edi <== NOT EXECUTED
* compute number of data clusters for current data:
* - compute cluster count for data AND fat
* - compute storage size for FAT
* - subtract from total cluster count
*/
fatdata_cluster_cnt = fatdata_sec_cnt/sectors_per_cluster;
120192: 89 f0 mov %esi,%eax <== NOT EXECUTED
120194: 31 d2 xor %edx,%edx <== NOT EXECUTED
120196: f7 f1 div %ecx <== NOT EXECUTED
120198: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (fattype == FAT_FAT12) {
12019a: 83 bd 28 fd ff ff 01 cmpl $0x1,-0x2d8(%ebp) <== NOT EXECUTED
1201a1: 75 07 jne 1201aa <msdos_format+0x33d> <== NOT EXECUTED
fat_capacity = fatdata_cluster_cnt * 3 / 2;
1201a3: 8d 04 40 lea (%eax,%eax,2),%eax <== NOT EXECUTED
1201a6: d1 e8 shr %eax <== NOT EXECUTED
1201a8: eb 13 jmp 1201bd <msdos_format+0x350> <== NOT EXECUTED
}
else if (fattype == FAT_FAT16) {
fat_capacity = fatdata_cluster_cnt * 2;
1201aa: 8d 04 00 lea (%eax,%eax,1),%eax <== NOT EXECUTED
*/
fatdata_cluster_cnt = fatdata_sec_cnt/sectors_per_cluster;
if (fattype == FAT_FAT12) {
fat_capacity = fatdata_cluster_cnt * 3 / 2;
}
else if (fattype == FAT_FAT16) {
1201ad: 83 bd 28 fd ff ff 02 cmpl $0x2,-0x2d8(%ebp) <== NOT EXECUTED
1201b4: 74 07 je 1201bd <msdos_format+0x350> <== NOT EXECUTED
fat_capacity = fatdata_cluster_cnt * 2;
}
else { /* FAT32 */
fat_capacity = fatdata_cluster_cnt * 4;
1201b6: 8d 04 9d 00 00 00 00 lea 0x0(,%ebx,4),%eax <== NOT EXECUTED
}
sectors_per_fat = ((fat_capacity
1201bd: 03 85 20 fd ff ff add -0x2e0(%ebp),%eax <== NOT EXECUTED
1201c3: 31 d2 xor %edx,%edx <== NOT EXECUTED
1201c5: f7 b5 30 fd ff ff divl -0x2d0(%ebp) <== NOT EXECUTED
1201cb: 89 85 24 fd ff ff mov %eax,-0x2dc(%ebp) <== NOT EXECUTED
+ (bytes_per_sector - 1))
/ bytes_per_sector);
data_cluster_cnt = (fatdata_cluster_cnt -
1201d1: 0f af 85 1c fd ff ff imul -0x2e4(%ebp),%eax <== NOT EXECUTED
1201d8: 8d 44 01 ff lea -0x1(%ecx,%eax,1),%eax <== NOT EXECUTED
1201dc: 31 d2 xor %edx,%edx <== NOT EXECUTED
1201de: f7 f1 div %ecx <== NOT EXECUTED
1201e0: 29 c3 sub %eax,%ebx <== NOT EXECUTED
+ (sectors_per_cluster - 1))
/ sectors_per_cluster));
/*
* data cluster count too big? then make sectors bigger
*/
if (((fattype == FAT_FAT12) && (data_cluster_cnt > FAT_FAT12_MAX_CLN)) ||
1201e2: 81 fb f5 0f 00 00 cmp $0xff5,%ebx <== NOT EXECUTED
1201e8: 76 09 jbe 1201f3 <msdos_format+0x386> <== NOT EXECUTED
1201ea: 83 bd 28 fd ff ff 01 cmpl $0x1,-0x2d8(%ebp) <== NOT EXECUTED
1201f1: 74 15 je 120208 <msdos_format+0x39b> <== NOT EXECUTED
1201f3: 81 fb f5 ff 00 00 cmp $0xfff5,%ebx <== NOT EXECUTED
1201f9: 76 09 jbe 120204 <msdos_format+0x397> <== NOT EXECUTED
1201fb: 83 bd 28 fd ff ff 02 cmpl $0x2,-0x2d8(%ebp) <== NOT EXECUTED
120202: 74 04 je 120208 <msdos_format+0x39b> <== NOT EXECUTED
120204: b0 01 mov $0x1,%al <== NOT EXECUTED
120206: eb 04 jmp 12020c <msdos_format+0x39f> <== NOT EXECUTED
((fattype == FAT_FAT16) && (data_cluster_cnt > FAT_FAT16_MAX_CLN))) {
sectors_per_cluster *= 2;
120208: d1 e1 shl %ecx <== NOT EXECUTED
12020a: 31 c0 xor %eax,%eax <== NOT EXECUTED
finished = true;
}
/*
* when maximum cluster size is exceeded, we have invalid data, abort...
*/
if ((sectors_per_cluster * bytes_per_sector)
12020c: 8b 95 30 fd ff ff mov -0x2d0(%ebp),%edx <== NOT EXECUTED
120212: 0f af d1 imul %ecx,%edx <== NOT EXECUTED
120215: 81 fa 00 80 00 00 cmp $0x8000,%edx <== NOT EXECUTED
12021b: 77 18 ja 120235 <msdos_format+0x3c8> <== NOT EXECUTED
> MS_BYTES_PER_CLUSTER_LIMIT) {
ret_val = EINVAL;
finished = true;
}
} while (!finished);
12021d: 84 c0 test %al,%al <== NOT EXECUTED
12021f: 0f 84 6d ff ff ff je 120192 <msdos_format+0x325> <== NOT EXECUTED
120225: 89 fb mov %edi,%ebx <== NOT EXECUTED
if (ret_val != 0) {
rtems_set_errno_and_return_minus_one(ret_val);
}
else {
*sectors_per_cluster_adj = sectors_per_cluster;
*sectors_per_fat_ptr = sectors_per_fat;
120227: 8b 95 24 fd ff ff mov -0x2dc(%ebp),%edx <== NOT EXECUTED
12022d: 89 95 54 ff ff ff mov %edx,-0xac(%ebp) <== NOT EXECUTED
120233: eb 10 jmp 120245 <msdos_format+0x3d8> <== NOT EXECUTED
finished = true;
}
} while (!finished);
if (ret_val != 0) {
rtems_set_errno_and_return_minus_one(ret_val);
120235: e8 da dd 01 00 call 13e014 <__errno> <== NOT EXECUTED
12023a: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
120240: 31 c9 xor %ecx,%ecx <== NOT EXECUTED
120242: 83 cb ff or $0xffffffff,%ebx <== NOT EXECUTED
fatdata_sect_cnt,
fmt_params->fat_num,
fmt_params->sectors_per_cluster,
§ors_per_cluster_adj,
&(fmt_params->sectors_per_fat));
fmt_params->sectors_per_cluster = sectors_per_cluster_adj;
120245: 89 8d 50 ff ff ff mov %ecx,-0xb0(%ebp) <== NOT EXECUTED
}
/*
* determine media code
*/
if (ret_val == 0) {
12024b: 85 db test %ebx,%ebx <== NOT EXECUTED
12024d: 75 52 jne 1202a1 <msdos_format+0x434> <== NOT EXECUTED
if ((rqdata != NULL) &&
12024f: 83 7d 0c 00 cmpl $0x0,0xc(%ebp) <== NOT EXECUTED
120253: 74 59 je 1202ae <msdos_format+0x441> <== NOT EXECUTED
120255: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED
120258: 80 79 15 00 cmpb $0x0,0x15(%ecx) <== NOT EXECUTED
12025c: 74 50 je 1202ae <msdos_format+0x441> <== NOT EXECUTED
(rqdata->media != 0)) {
const char valid_media_codes[] =
{0xF0,0xF8,0xF9,0xFA,0xFB,0xFC,0xFD,0xFE,0xFF};
12025e: 8d 7d dc lea -0x24(%ebp),%edi <== NOT EXECUTED
120261: be 48 9e 15 00 mov $0x159e48,%esi <== NOT EXECUTED
120266: b9 09 00 00 00 mov $0x9,%ecx <== NOT EXECUTED
12026b: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
if (NULL==memchr(valid_media_codes,
rqdata->media,
12026d: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
120270: 8a 50 15 mov 0x15(%eax),%dl <== NOT EXECUTED
if (ret_val == 0) {
if ((rqdata != NULL) &&
(rqdata->media != 0)) {
const char valid_media_codes[] =
{0xF0,0xF8,0xF9,0xFA,0xFB,0xFC,0xFD,0xFE,0xFF};
if (NULL==memchr(valid_media_codes,
120273: 57 push %edi <== NOT EXECUTED
120274: 6a 09 push $0x9 <== NOT EXECUTED
120276: 0f b6 c2 movzbl %dl,%eax <== NOT EXECUTED
120279: 50 push %eax <== NOT EXECUTED
12027a: 8d 45 dc lea -0x24(%ebp),%eax <== NOT EXECUTED
12027d: 50 push %eax <== NOT EXECUTED
12027e: 88 95 18 fd ff ff mov %dl,-0x2e8(%ebp) <== NOT EXECUTED
120284: e8 e7 0c 02 00 call 140f70 <memchr> <== NOT EXECUTED
120289: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12028c: 85 c0 test %eax,%eax <== NOT EXECUTED
12028e: 8a 95 18 fd ff ff mov -0x2e8(%ebp),%dl <== NOT EXECUTED
120294: 75 10 jne 1202a6 <msdos_format+0x439> <== NOT EXECUTED
rqdata->media,
sizeof(valid_media_codes))) {
ret_val = -1;
errno = EINVAL;
120296: e8 79 dd 01 00 call 13e014 <__errno> <== NOT EXECUTED
12029b: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
1202a1: 83 cb ff or $0xffffffff,%ebx <== NOT EXECUTED
1202a4: eb 0f jmp 1202b5 <msdos_format+0x448> <== NOT EXECUTED
}
else {
fmt_params->media_code = rqdata->media;
1202a6: 88 95 75 ff ff ff mov %dl,-0x8b(%ebp) <== NOT EXECUTED
1202ac: eb 07 jmp 1202b5 <msdos_format+0x448> <== NOT EXECUTED
}
}
else {
fmt_params->media_code = FAT_BR_MEDIA_FIXED;
1202ae: c6 85 75 ff ff ff f8 movb $0xf8,-0x8b(%ebp) <== NOT EXECUTED
}
/*
* determine location and size of root directory
* for formatting
*/
if (fmt_params->root_dir_sectors > 0) {
1202b5: 83 bd 60 ff ff ff 00 cmpl $0x0,-0xa0(%ebp) <== NOT EXECUTED
1202bc: 74 22 je 1202e0 <msdos_format+0x473> <== NOT EXECUTED
fmt_params->root_dir_start_sec =
1202be: 0f b6 85 74 ff ff ff movzbl -0x8c(%ebp),%eax <== NOT EXECUTED
1202c5: 0f af 85 54 ff ff ff imul -0xac(%ebp),%eax <== NOT EXECUTED
1202cc: 03 85 4c ff ff ff add -0xb4(%ebp),%eax <== NOT EXECUTED
1202d2: 89 85 64 ff ff ff mov %eax,-0x9c(%ebp) <== NOT EXECUTED
fmt_params->rsvd_sector_cnt
+ (fmt_params-> fat_num*fmt_params->sectors_per_fat);
fmt_params->root_dir_fmt_sec_cnt = fmt_params->root_dir_sectors;
1202d8: 8b 85 60 ff ff ff mov -0xa0(%ebp),%eax <== NOT EXECUTED
1202de: eb 20 jmp 120300 <msdos_format+0x493> <== NOT EXECUTED
}
else {
/*
* for FAT32: root directory is in cluster 2
*/
fmt_params->root_dir_start_sec =
1202e0: 0f b6 85 74 ff ff ff movzbl -0x8c(%ebp),%eax <== NOT EXECUTED
1202e7: 0f af 85 54 ff ff ff imul -0xac(%ebp),%eax <== NOT EXECUTED
1202ee: 03 85 4c ff ff ff add -0xb4(%ebp),%eax <== NOT EXECUTED
1202f4: 89 85 64 ff ff ff mov %eax,-0x9c(%ebp) <== NOT EXECUTED
fmt_params->rsvd_sector_cnt
+ (fmt_params-> fat_num*fmt_params->sectors_per_fat);
fmt_params->root_dir_fmt_sec_cnt = fmt_params->sectors_per_cluster;
1202fa: 8b 85 50 ff ff ff mov -0xb0(%ebp),%eax <== NOT EXECUTED
120300: 89 85 68 ff ff ff mov %eax,-0x98(%ebp) <== NOT EXECUTED
}
/*
* determine usable OEMName
*/
if (ret_val == 0) {
120306: 85 db test %ebx,%ebx <== NOT EXECUTED
120308: 0f 85 b8 00 00 00 jne 1203c6 <msdos_format+0x559> <== NOT EXECUTED
const char *from;
char *to = fmt_params->OEMName;
int cnt;
from = "RTEMS"; /* default: make "from" point to OS Name */
if ((rqdata != NULL) &&
12030e: ba f8 8b 15 00 mov $0x158bf8,%edx <== NOT EXECUTED
120313: 83 7d 0c 00 cmpl $0x0,0xc(%ebp) <== NOT EXECUTED
120317: 74 0e je 120327 <msdos_format+0x4ba> <== NOT EXECUTED
(rqdata->OEMName != NULL)) {
120319: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED
12031c: 8b 11 mov (%ecx),%edx <== NOT EXECUTED
if (ret_val == 0) {
const char *from;
char *to = fmt_params->OEMName;
int cnt;
from = "RTEMS"; /* default: make "from" point to OS Name */
if ((rqdata != NULL) &&
12031e: 85 d2 test %edx,%edx <== NOT EXECUTED
120320: 75 05 jne 120327 <msdos_format+0x4ba> <== NOT EXECUTED
120322: ba f8 8b 15 00 mov $0x158bf8,%edx <== NOT EXECUTED
from = rqdata->OEMName;
}
for (cnt = 0;
cnt < (sizeof(fmt_params->OEMName)-1);
cnt++) {
if (isprint((unsigned char)*from)) {
120327: 8b 0d c0 4e 16 00 mov 0x164ec0,%ecx <== NOT EXECUTED
12032d: 8d 85 78 ff ff ff lea -0x88(%ebp),%eax <== NOT EXECUTED
}
/*=========================================================================*\
| Function: |
\*-------------------------------------------------------------------------*/
int msdos_format
120333: 8d 7d 80 lea -0x80(%ebp),%edi <== NOT EXECUTED
120336: eb 1a jmp 120352 <msdos_format+0x4e5> <== NOT EXECUTED
from = rqdata->OEMName;
}
for (cnt = 0;
cnt < (sizeof(fmt_params->OEMName)-1);
cnt++) {
if (isprint((unsigned char)*from)) {
120338: 8a 1a mov (%edx),%bl <== NOT EXECUTED
12033a: 0f b6 f3 movzbl %bl,%esi <== NOT EXECUTED
12033d: f6 44 31 01 97 testb $0x97,0x1(%ecx,%esi,1) <== NOT EXECUTED
120342: 74 06 je 12034a <msdos_format+0x4dd> <== NOT EXECUTED
*to++ = *from++;
120344: 88 58 ff mov %bl,-0x1(%eax) <== NOT EXECUTED
120347: 42 inc %edx <== NOT EXECUTED
120348: eb 04 jmp 12034e <msdos_format+0x4e1> <== NOT EXECUTED
/*
* non-printable character in given name, so keep stuck
* at that character and replace all following characters
* with a ' '
*/
*to++=' ';
12034a: c6 40 ff 20 movb $0x20,-0x1(%eax) <== NOT EXECUTED
}
*to = '\0';
12034e: c6 00 00 movb $0x0,(%eax) <== NOT EXECUTED
120351: 40 inc %eax <== NOT EXECUTED
from = "RTEMS"; /* default: make "from" point to OS Name */
if ((rqdata != NULL) &&
(rqdata->OEMName != NULL)) {
from = rqdata->OEMName;
}
for (cnt = 0;
120352: 39 f8 cmp %edi,%eax <== NOT EXECUTED
120354: 75 e2 jne 120338 <msdos_format+0x4cb> <== NOT EXECUTED
if (ret_val == 0) {
const char *from;
char *to = fmt_params->VolLabel;
int cnt;
from = ""; /* default: make "from" point to empty string */
if ((rqdata != NULL) &&
120356: ba 71 72 15 00 mov $0x157271,%edx <== NOT EXECUTED
12035b: 83 7d 0c 00 cmpl $0x0,0xc(%ebp) <== NOT EXECUTED
12035f: 74 15 je 120376 <msdos_format+0x509> <== NOT EXECUTED
(rqdata->VolLabel != NULL)) {
120361: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
120364: 8b 53 04 mov 0x4(%ebx),%edx <== NOT EXECUTED
if (ret_val == 0) {
const char *from;
char *to = fmt_params->VolLabel;
int cnt;
from = ""; /* default: make "from" point to empty string */
if ((rqdata != NULL) &&
120367: 85 d2 test %edx,%edx <== NOT EXECUTED
120369: 75 07 jne 120372 <msdos_format+0x505> <== NOT EXECUTED
12036b: ba 71 72 15 00 mov $0x157271,%edx <== NOT EXECUTED
120370: eb 04 jmp 120376 <msdos_format+0x509> <== NOT EXECUTED
(rqdata->VolLabel != NULL)) {
from = rqdata->VolLabel;
fmt_params->VolLabel_present = true;
120372: c6 45 8c 01 movb $0x1,-0x74(%ebp) <== NOT EXECUTED
120376: 8d 45 81 lea -0x7f(%ebp),%eax <== NOT EXECUTED
}
/*=========================================================================*\
| Function: |
\*-------------------------------------------------------------------------*/
int msdos_format
120379: 8d bd 44 ff ff ff lea -0xbc(%ebp),%edi <== NOT EXECUTED
12037f: 83 c7 48 add $0x48,%edi <== NOT EXECUTED
120382: eb 1a jmp 12039e <msdos_format+0x531> <== NOT EXECUTED
fmt_params->VolLabel_present = true;
}
for (cnt = 0;
cnt < (sizeof(fmt_params->VolLabel)-1);
cnt++) {
if (isprint((unsigned char)*from)) {
120384: 8a 1a mov (%edx),%bl <== NOT EXECUTED
120386: 0f b6 f3 movzbl %bl,%esi <== NOT EXECUTED
120389: f6 44 31 01 97 testb $0x97,0x1(%ecx,%esi,1) <== NOT EXECUTED
12038e: 74 06 je 120396 <msdos_format+0x529> <== NOT EXECUTED
*to++ = *from++;
120390: 88 58 ff mov %bl,-0x1(%eax) <== NOT EXECUTED
120393: 42 inc %edx <== NOT EXECUTED
120394: eb 04 jmp 12039a <msdos_format+0x52d> <== NOT EXECUTED
/*
* non-printable character in given name, so keep stuck
* at that character and replace all following characters
* with a ' '
*/
*to++=' ';
120396: c6 40 ff 20 movb $0x20,-0x1(%eax) <== NOT EXECUTED
}
*to = '\0';
12039a: c6 00 00 movb $0x0,(%eax) <== NOT EXECUTED
12039d: 40 inc %eax <== NOT EXECUTED
if ((rqdata != NULL) &&
(rqdata->VolLabel != NULL)) {
from = rqdata->VolLabel;
fmt_params->VolLabel_present = true;
}
for (cnt = 0;
12039e: 39 f8 cmp %edi,%eax <== NOT EXECUTED
1203a0: 75 e2 jne 120384 <msdos_format+0x517> <== NOT EXECUTED
{
int ret_val = 0;
int rc;
struct timeval time_value;
rc = rtems_clock_get_tod_timeval(&time_value);
1203a2: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1203a5: 8d 45 dc lea -0x24(%ebp),%eax <== NOT EXECUTED
1203a8: 50 push %eax <== NOT EXECUTED
1203a9: e8 d6 ff fe ff call 110384 <rtems_clock_get_tod_timeval><== NOT EXECUTED
if (rc == RTEMS_SUCCESSFUL) {
1203ae: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1203b1: 85 c0 test %eax,%eax <== NOT EXECUTED
1203b3: 75 07 jne 1203bc <msdos_format+0x54f> <== NOT EXECUTED
*volid_ptr = time_value.tv_sec + time_value.tv_sec;
1203b5: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED
1203b8: d1 e0 shl %eax <== NOT EXECUTED
1203ba: eb 05 jmp 1203c1 <msdos_format+0x554> <== NOT EXECUTED
}
else {
*volid_ptr = rand();
1203bc: e8 17 26 02 00 call 1429d8 <rand> <== NOT EXECUTED
1203c1: 89 45 90 mov %eax,-0x70(%ebp) <== NOT EXECUTED
1203c4: eb 0c jmp 1203d2 <msdos_format+0x565> <== NOT EXECUTED
}
/*
* Phuuu.... That's it.
*/
if (ret_val != 0) {
rtems_set_errno_and_return_minus_one(ret_val);
1203c6: e8 49 dc 01 00 call 13e014 <__errno> <== NOT EXECUTED
1203cb: 89 18 mov %ebx,(%eax) <== NOT EXECUTED
1203cd: e9 85 00 00 00 jmp 120457 <msdos_format+0x5ea> <== NOT EXECUTED
ret_val = msdos_format_determine_fmt_params(dd,rqdata,&fmt_params);
}
/*
* if requested, write whole disk/partition with 0xe5
*/
if ((ret_val == 0) &&
1203d2: 83 7d 0c 00 cmpl $0x0,0xc(%ebp) <== NOT EXECUTED
1203d6: 74 32 je 12040a <msdos_format+0x59d> <== NOT EXECUTED
(rqdata != NULL) &&
!(rqdata->quick_format)) {
1203d8: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
1203db: 80 78 16 00 cmpb $0x0,0x16(%eax) <== NOT EXECUTED
1203df: 75 29 jne 12040a <msdos_format+0x59d> <== NOT EXECUTED
ret_val = msdos_format_fill_sectors
1203e1: 56 push %esi <== NOT EXECUTED
1203e2: 6a e5 push $0xffffffe5 <== NOT EXECUTED
1203e4: ff b5 44 ff ff ff pushl -0xbc(%ebp) <== NOT EXECUTED
1203ea: ff b5 48 ff ff ff pushl -0xb8(%ebp) <== NOT EXECUTED
1203f0: 31 c9 xor %ecx,%ecx <== NOT EXECUTED
1203f2: 8b 95 34 fd ff ff mov -0x2cc(%ebp),%edx <== NOT EXECUTED
1203f8: e8 6b f9 ff ff call 11fd68 <msdos_format_fill_sectors><== NOT EXECUTED
1203fd: 89 c3 mov %eax,%ebx <== NOT EXECUTED
1203ff: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
0xe5);
}
/*
* create master boot record
*/
if (ret_val == 0) {
120402: 85 c0 test %eax,%eax <== NOT EXECUTED
120404: 0f 85 d7 05 00 00 jne 1209e1 <msdos_format+0xb74> <== NOT EXECUTED
/*
* Read the current MBR to obtain the partition table.
*/
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,
12040a: 53 push %ebx <== NOT EXECUTED
12040b: 68 9d 9d 15 00 push $0x159d9d <== NOT EXECUTED
120410: 6a 02 push $0x2 <== NOT EXECUTED
120412: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
120415: e8 ce f8 ff ff call 11fce8 <msdos_format_printf> <== NOT EXECUTED
"read MRB sector\n");
ret_val = msdos_format_read_sec(fd,
12041a: 8b 9d 44 ff ff ff mov -0xbc(%ebp),%ebx <== NOT EXECUTED
| 0, if success, -1 and errno if failed |
\*=========================================================================*/
{
int ret_val = 0;
if (0 > lseek(fd,((off_t)start_sector)*sector_size,SEEK_SET)) {
120420: 6a 00 push $0x0 <== NOT EXECUTED
120422: 6a 00 push $0x0 <== NOT EXECUTED
120424: 6a 00 push $0x0 <== NOT EXECUTED
120426: ff b5 34 fd ff ff pushl -0x2cc(%ebp) <== NOT EXECUTED
12042c: e8 4b 88 00 00 call 128c7c <lseek> <== NOT EXECUTED
120431: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
120434: 85 d2 test %edx,%edx <== NOT EXECUTED
120436: 78 1f js 120457 <msdos_format+0x5ea> <== NOT EXECUTED
ret_val = -1;
}
if (ret_val == 0) {
if (0 > read(fd,buffer,sector_size)) {
120438: 51 push %ecx <== NOT EXECUTED
120439: 53 push %ebx <== NOT EXECUTED
12043a: 8d 85 44 fd ff ff lea -0x2bc(%ebp),%eax <== NOT EXECUTED
120440: 50 push %eax <== NOT EXECUTED
120441: ff b5 34 fd ff ff pushl -0x2cc(%ebp) <== NOT EXECUTED
120447: e8 50 db fe ff call 10df9c <read> <== NOT EXECUTED
12044c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12044f: 85 c0 test %eax,%eax <== NOT EXECUTED
120451: 0f 89 81 06 00 00 jns 120ad8 <msdos_format+0xc6b> <== NOT EXECUTED
120457: 83 cb ff or $0xffffffff,%ebx <== NOT EXECUTED
12045a: e9 82 05 00 00 jmp 1209e1 <msdos_format+0xb74> <== NOT EXECUTED
* finally we are there: let's fill in the values into the MBR
* but first clear the MRB leaving the partition table.
*/
#define RTEMS_IDE_PARTITION_TABLE_OFFSET 0x1be
#define RTEMS_IDE_PARTITION_TABLE_SIZE (4 * 16)
memset(mbr,0,RTEMS_IDE_PARTITION_TABLE_OFFSET);
12045f: 8d 8d 44 fd ff ff lea -0x2bc(%ebp),%ecx <== NOT EXECUTED
120465: 89 8d 04 fd ff ff mov %ecx,-0x2fc(%ebp) <== NOT EXECUTED
12046b: be be 01 00 00 mov $0x1be,%esi <== NOT EXECUTED
120470: 89 cf mov %ecx,%edi <== NOT EXECUTED
120472: 89 f1 mov %esi,%ecx <== NOT EXECUTED
120474: 31 c0 xor %eax,%eax <== NOT EXECUTED
120476: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED
120478: 89 ce mov %ecx,%esi <== NOT EXECUTED
memset(mbr + RTEMS_IDE_PARTITION_TABLE_OFFSET + RTEMS_IDE_PARTITION_TABLE_SIZE,
12047a: 66 c7 85 42 ff ff ff movw $0x0,-0xbe(%ebp) <== NOT EXECUTED
120481: 00 00
* with 0xEB,....
*/
/*
* fill OEMName
*/
memcpy(FAT_GET_ADDR_BR_OEMNAME(mbr),
120483: 8b 85 77 ff ff ff mov -0x89(%ebp),%eax <== NOT EXECUTED
120489: 89 85 47 fd ff ff mov %eax,-0x2b9(%ebp) <== NOT EXECUTED
12048f: 8b 85 7b ff ff ff mov -0x85(%ebp),%eax <== NOT EXECUTED
120495: 89 85 4b fd ff ff mov %eax,-0x2b5(%ebp) <== NOT EXECUTED
fmt_params->OEMName,
FAT_BR_OEMNAME_SIZE);
FAT_SET_BR_BYTES_PER_SECTOR(mbr , fmt_params->bytes_per_sector);
12049b: 8b 85 44 ff ff ff mov -0xbc(%ebp),%eax <== NOT EXECUTED
1204a1: 88 85 4f fd ff ff mov %al,-0x2b1(%ebp) <== NOT EXECUTED
1204a7: c1 e8 08 shr $0x8,%eax <== NOT EXECUTED
1204aa: 88 85 50 fd ff ff mov %al,-0x2b0(%ebp) <== NOT EXECUTED
FAT_SET_BR_SECTORS_PER_CLUSTER(mbr , fmt_params->sectors_per_cluster);
1204b0: 8b 85 50 ff ff ff mov -0xb0(%ebp),%eax <== NOT EXECUTED
1204b6: 88 85 51 fd ff ff mov %al,-0x2af(%ebp) <== NOT EXECUTED
FAT_SET_BR_RESERVED_SECTORS_NUM(mbr, fmt_params->rsvd_sector_cnt);
1204bc: 8b 85 4c ff ff ff mov -0xb4(%ebp),%eax <== NOT EXECUTED
1204c2: 88 85 52 fd ff ff mov %al,-0x2ae(%ebp) <== NOT EXECUTED
1204c8: c1 e8 08 shr $0x8,%eax <== NOT EXECUTED
1204cb: 88 85 53 fd ff ff mov %al,-0x2ad(%ebp) <== NOT EXECUTED
/* number of FATs on medium */
FAT_SET_BR_FAT_NUM(mbr , 2); /* standard/recommended value */
1204d1: c6 85 54 fd ff ff 02 movb $0x2,-0x2ac(%ebp) <== NOT EXECUTED
FAT_SET_BR_FILES_PER_ROOT_DIR(mbr , fmt_params->files_per_root_dir);
1204d8: 8b 85 5c ff ff ff mov -0xa4(%ebp),%eax <== NOT EXECUTED
1204de: 88 85 55 fd ff ff mov %al,-0x2ab(%ebp) <== NOT EXECUTED
1204e4: c1 e8 08 shr $0x8,%eax <== NOT EXECUTED
1204e7: 88 85 56 fd ff ff mov %al,-0x2aa(%ebp) <== NOT EXECUTED
FAT_SET_BR_TOTAL_SECTORS_NUM16(mbr , total_sectors_num16);
1204ed: 88 9d 57 fd ff ff mov %bl,-0x2a9(%ebp) <== NOT EXECUTED
1204f3: c1 eb 08 shr $0x8,%ebx <== NOT EXECUTED
1204f6: 88 9d 58 fd ff ff mov %bl,-0x2a8(%ebp) <== NOT EXECUTED
FAT_SET_BR_MEDIA(mbr , fmt_params->media_code);
1204fc: 8a 85 75 ff ff ff mov -0x8b(%ebp),%al <== NOT EXECUTED
120502: 88 85 59 fd ff ff mov %al,-0x2a7(%ebp) <== NOT EXECUTED
FAT_SET_BR_SECTORS_PER_TRACK(mbr , 255); /* only needed for INT13... */
120508: c6 85 5c fd ff ff ff movb $0xff,-0x2a4(%ebp) <== NOT EXECUTED
FAT_SET_BR_NUMBER_OF_HEADS(mbr , 6); /* only needed for INT13... */
12050f: c6 85 5e fd ff ff 06 movb $0x6,-0x2a2(%ebp) <== NOT EXECUTED
FAT_SET_BR_HIDDEN_SECTORS(mbr , 1); /* only needed for INT13... */
120516: c6 85 60 fd ff ff 01 movb $0x1,-0x2a0(%ebp) <== NOT EXECUTED
FAT_SET_BR_TOTAL_SECTORS_NUM32(mbr , total_sectors_num32);
12051d: 88 95 64 fd ff ff mov %dl,-0x29c(%ebp) <== NOT EXECUTED
120523: 0f b6 c6 movzbl %dh,%eax <== NOT EXECUTED
120526: 88 85 65 fd ff ff mov %al,-0x29b(%ebp) <== NOT EXECUTED
12052c: 89 d0 mov %edx,%eax <== NOT EXECUTED
12052e: c1 e8 10 shr $0x10,%eax <== NOT EXECUTED
120531: 88 85 66 fd ff ff mov %al,-0x29a(%ebp) <== NOT EXECUTED
120537: c1 ea 18 shr $0x18,%edx <== NOT EXECUTED
12053a: 88 95 67 fd ff ff mov %dl,-0x299(%ebp) <== NOT EXECUTED
if (fmt_params->fattype != FAT_FAT32) {
120540: 80 bd 76 ff ff ff 04 cmpb $0x4,-0x8a(%ebp) <== NOT EXECUTED
120547: 8b 85 54 ff ff ff mov -0xac(%ebp),%eax <== NOT EXECUTED
12054d: 0f 84 82 00 00 00 je 1205d5 <msdos_format+0x768> <== NOT EXECUTED
FAT_SET_BR_SECTORS_PER_FAT(mbr ,fmt_params->sectors_per_fat);
120553: 88 85 5a fd ff ff mov %al,-0x2a6(%ebp) <== NOT EXECUTED
120559: c1 e8 08 shr $0x8,%eax <== NOT EXECUTED
12055c: 88 85 5b fd ff ff mov %al,-0x2a5(%ebp) <== NOT EXECUTED
FAT_SET_BR_DRVNUM(mbr , 0); /* only needed for INT13... */
120562: c6 85 68 fd ff ff 00 movb $0x0,-0x298(%ebp) <== NOT EXECUTED
FAT_SET_BR_RSVD1(mbr , 0); /* fill with zero */
120569: c6 85 69 fd ff ff 00 movb $0x0,-0x297(%ebp) <== NOT EXECUTED
FAT_SET_BR_BOOTSIG(mbr , FAT_BR_BOOTSIG_VAL);
120570: c6 85 6a fd ff ff 29 movb $0x29,-0x296(%ebp) <== NOT EXECUTED
FAT_SET_BR_VOLID(mbr , fmt_params->vol_id); /* volume id */
120577: 8b 45 90 mov -0x70(%ebp),%eax <== NOT EXECUTED
12057a: 88 85 6b fd ff ff mov %al,-0x295(%ebp) <== NOT EXECUTED
120580: 0f b6 d4 movzbl %ah,%edx <== NOT EXECUTED
120583: 88 95 6c fd ff ff mov %dl,-0x294(%ebp) <== NOT EXECUTED
120589: 89 c2 mov %eax,%edx <== NOT EXECUTED
12058b: c1 ea 10 shr $0x10,%edx <== NOT EXECUTED
12058e: 88 95 6d fd ff ff mov %dl,-0x293(%ebp) <== NOT EXECUTED
120594: c1 e8 18 shr $0x18,%eax <== NOT EXECUTED
120597: 88 85 6e fd ff ff mov %al,-0x292(%ebp) <== NOT EXECUTED
memcpy(FAT_GET_ADDR_BR_VOLLAB(mbr),
12059d: 8d 85 6f fd ff ff lea -0x291(%ebp),%eax <== NOT EXECUTED
1205a3: 8d 75 80 lea -0x80(%ebp),%esi <== NOT EXECUTED
1205a6: b1 0b mov $0xb,%cl <== NOT EXECUTED
1205a8: 89 c7 mov %eax,%edi <== NOT EXECUTED
1205aa: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
fmt_params->VolLabel,
FAT_BR_VOLLAB_SIZE);
memcpy(FAT_GET_ADDR_BR_FILSYSTYPE(mbr),
1205ac: b8 b7 9d 15 00 mov $0x159db7,%eax <== NOT EXECUTED
1205b1: 80 bd 76 ff ff ff 01 cmpb $0x1,-0x8a(%ebp) <== NOT EXECUTED
1205b8: 74 05 je 1205bf <msdos_format+0x752> <== NOT EXECUTED
1205ba: b8 ae 9d 15 00 mov $0x159dae,%eax <== NOT EXECUTED
1205bf: 8b 10 mov (%eax),%edx <== NOT EXECUTED
1205c1: 89 95 7a fd ff ff mov %edx,-0x286(%ebp) <== NOT EXECUTED
1205c7: 8b 40 04 mov 0x4(%eax),%eax <== NOT EXECUTED
1205ca: 89 85 7e fd ff ff mov %eax,-0x282(%ebp) <== NOT EXECUTED
1205d0: e9 e2 00 00 00 jmp 1206b7 <msdos_format+0x84a> <== NOT EXECUTED
? "FAT12 "
: "FAT16 ",
FAT_BR_FILSYSTYPE_SIZE);
}
else {
FAT_SET_BR_SECTORS_PER_FAT32(mbr ,fmt_params->sectors_per_fat);
1205d5: 88 85 68 fd ff ff mov %al,-0x298(%ebp) <== NOT EXECUTED
1205db: 0f b6 d4 movzbl %ah,%edx <== NOT EXECUTED
1205de: 88 95 69 fd ff ff mov %dl,-0x297(%ebp) <== NOT EXECUTED
1205e4: 89 c2 mov %eax,%edx <== NOT EXECUTED
1205e6: c1 ea 10 shr $0x10,%edx <== NOT EXECUTED
1205e9: 88 95 6a fd ff ff mov %dl,-0x296(%ebp) <== NOT EXECUTED
1205ef: c1 e8 18 shr $0x18,%eax <== NOT EXECUTED
1205f2: 88 85 6b fd ff ff mov %al,-0x295(%ebp) <== NOT EXECUTED
FAT_SET_BR_EXT_FLAGS(mbr , 0);
1205f8: c6 85 6c fd ff ff 00 movb $0x0,-0x294(%ebp) <== NOT EXECUTED
1205ff: c6 85 6d fd ff ff 00 movb $0x0,-0x293(%ebp) <== NOT EXECUTED
FAT_SET_BR_FSVER(mbr , 0); /* FAT32 Version:0.0 */
120606: c6 85 6e fd ff ff 00 movb $0x0,-0x292(%ebp) <== NOT EXECUTED
12060d: c6 85 6f fd ff ff 00 movb $0x0,-0x291(%ebp) <== NOT EXECUTED
FAT_SET_BR_FAT32_ROOT_CLUSTER(mbr , 2); /* put root dir to cluster 2 */
120614: c6 85 70 fd ff ff 02 movb $0x2,-0x290(%ebp) <== NOT EXECUTED
12061b: c6 85 71 fd ff ff 00 movb $0x0,-0x28f(%ebp) <== NOT EXECUTED
120622: c6 85 72 fd ff ff 00 movb $0x0,-0x28e(%ebp) <== NOT EXECUTED
120629: c6 85 73 fd ff ff 00 movb $0x0,-0x28d(%ebp) <== NOT EXECUTED
FAT_SET_BR_FAT32_FS_INFO_SECTOR(mbr, 1); /* Put fsinfo to rsrvd sec 1*/
120630: c6 85 74 fd ff ff 01 movb $0x1,-0x28c(%ebp) <== NOT EXECUTED
120637: c6 85 75 fd ff ff 00 movb $0x0,-0x28b(%ebp) <== NOT EXECUTED
FAT_SET_BR_FAT32_BK_BOOT_SECTOR(mbr, fmt_params->mbr_copy_sec ); /* Put MBR copy to rsrvd sec */
12063e: 8b 85 6c ff ff ff mov -0x94(%ebp),%eax <== NOT EXECUTED
120644: 88 85 76 fd ff ff mov %al,-0x28a(%ebp) <== NOT EXECUTED
12064a: c1 e8 08 shr $0x8,%eax <== NOT EXECUTED
12064d: 88 85 77 fd ff ff mov %al,-0x289(%ebp) <== NOT EXECUTED
memset(FAT_GET_ADDR_BR_FAT32_RESERVED(mbr),0,FAT_BR_FAT32_RESERVED_SIZE);
120653: 8d 95 78 fd ff ff lea -0x288(%ebp),%edx <== NOT EXECUTED
120659: b9 03 00 00 00 mov $0x3,%ecx <== NOT EXECUTED
12065e: 89 d7 mov %edx,%edi <== NOT EXECUTED
120660: 89 f0 mov %esi,%eax <== NOT EXECUTED
120662: f3 ab rep stos %eax,%es:(%edi) <== NOT EXECUTED
FAT_SET_BR_FAT32_DRVNUM(mbr , 0); /* only needed for INT13... */
120664: c6 85 84 fd ff ff 00 movb $0x0,-0x27c(%ebp) <== NOT EXECUTED
FAT_SET_BR_FAT32_RSVD1(mbr , 0); /* fill with zero */
12066b: c6 85 85 fd ff ff 00 movb $0x0,-0x27b(%ebp) <== NOT EXECUTED
FAT_SET_BR_FAT32_BOOTSIG(mbr ,FAT_BR_FAT32_BOOTSIG_VAL);
120672: c6 85 86 fd ff ff 29 movb $0x29,-0x27a(%ebp) <== NOT EXECUTED
FAT_SET_BR_FAT32_VOLID(mbr , 0); /* not set */
120679: c6 85 87 fd ff ff 00 movb $0x0,-0x279(%ebp) <== NOT EXECUTED
120680: c6 85 88 fd ff ff 00 movb $0x0,-0x278(%ebp) <== NOT EXECUTED
120687: c6 85 89 fd ff ff 00 movb $0x0,-0x277(%ebp) <== NOT EXECUTED
12068e: c6 85 8a fd ff ff 00 movb $0x0,-0x276(%ebp) <== NOT EXECUTED
memset(FAT_GET_ADDR_BR_FAT32_VOLLAB(mbr) ,0,FAT_BR_VOLLAB_SIZE);
120695: 8d 95 8b fd ff ff lea -0x275(%ebp),%edx <== NOT EXECUTED
12069b: b1 0b mov $0xb,%cl <== NOT EXECUTED
12069d: 89 d7 mov %edx,%edi <== NOT EXECUTED
12069f: 31 c0 xor %eax,%eax <== NOT EXECUTED
1206a1: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED
memcpy(FAT_GET_ADDR_BR_FAT32_FILSYSTYPE(mbr),
1206a3: c7 85 96 fd ff ff 46 movl $0x33544146,-0x26a(%ebp) <== NOT EXECUTED
1206aa: 41 54 33
1206ad: c7 85 9a fd ff ff 32 movl $0x20202032,-0x266(%ebp) <== NOT EXECUTED
1206b4: 20 20 20
FAT_BR_FILSYSTYPE_SIZE);
}
/*
* add boot record signature
*/
FAT_SET_BR_SIGNATURE(mbr, FAT_BR_SIGNATURE_VAL);
1206b7: c6 85 42 ff ff ff 55 movb $0x55,-0xbe(%ebp) <== NOT EXECUTED
1206be: c6 85 43 ff ff ff aa movb $0xaa,-0xbd(%ebp) <== NOT EXECUTED
/*
* add jump to boot loader at start of sector
*/
FAT_SET_VAL8(mbr,0,0xeb);
1206c5: c6 85 44 fd ff ff eb movb $0xeb,-0x2bc(%ebp) <== NOT EXECUTED
FAT_SET_VAL8(mbr,1,0x3c);
1206cc: c6 85 45 fd ff ff 3c movb $0x3c,-0x2bb(%ebp) <== NOT EXECUTED
FAT_SET_VAL8(mbr,2,0x90);
1206d3: c6 85 46 fd ff ff 90 movb $0x90,-0x2ba(%ebp) <== NOT EXECUTED
/*
* write master boot record to disk
* also write copy of MBR to disk
*/
if (ret_val == 0) {
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,
1206da: 52 push %edx <== NOT EXECUTED
1206db: 68 c0 9d 15 00 push $0x159dc0 <== NOT EXECUTED
1206e0: 6a 02 push $0x2 <== NOT EXECUTED
1206e2: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
1206e5: e8 fe f5 ff ff call 11fce8 <msdos_format_printf> <== NOT EXECUTED
"write MRB sector\n");
ret_val = msdos_format_write_sec(fd,
1206ea: 8d b5 44 fd ff ff lea -0x2bc(%ebp),%esi <== NOT EXECUTED
1206f0: 89 34 24 mov %esi,(%esp) <== NOT EXECUTED
1206f3: 8b 8d 44 ff ff ff mov -0xbc(%ebp),%ecx <== NOT EXECUTED
1206f9: 31 d2 xor %edx,%edx <== NOT EXECUTED
1206fb: 8b 85 34 fd ff ff mov -0x2cc(%ebp),%eax <== NOT EXECUTED
120701: e8 1f f6 ff ff call 11fd25 <msdos_format_write_sec><== NOT EXECUTED
120706: 89 c3 mov %eax,%ebx <== NOT EXECUTED
0,
fmt_params.bytes_per_sector,
tmp_sec);
}
if ((ret_val == 0) &&
120708: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12070b: 85 c0 test %eax,%eax <== NOT EXECUTED
12070d: 0f 85 ce 02 00 00 jne 1209e1 <msdos_format+0xb74> <== NOT EXECUTED
120713: 83 bd 6c ff ff ff 00 cmpl $0x0,-0x94(%ebp) <== NOT EXECUTED
12071a: 74 37 je 120753 <msdos_format+0x8e6> <== NOT EXECUTED
(fmt_params.mbr_copy_sec != 0)) {
/*
* write copy of MBR
*/
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,
12071c: 50 push %eax <== NOT EXECUTED
12071d: 68 d2 9d 15 00 push $0x159dd2 <== NOT EXECUTED
120722: 6a 02 push $0x2 <== NOT EXECUTED
120724: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
120727: e8 bc f5 ff ff call 11fce8 <msdos_format_printf> <== NOT EXECUTED
"write back up MRB sector\n");
ret_val = msdos_format_write_sec(fd,
12072c: 89 34 24 mov %esi,(%esp) <== NOT EXECUTED
12072f: 8b 8d 44 ff ff ff mov -0xbc(%ebp),%ecx <== NOT EXECUTED
120735: 8b 95 6c ff ff ff mov -0x94(%ebp),%edx <== NOT EXECUTED
12073b: 8b 85 34 fd ff ff mov -0x2cc(%ebp),%eax <== NOT EXECUTED
120741: e8 df f5 ff ff call 11fd25 <msdos_format_write_sec><== NOT EXECUTED
120746: 89 c3 mov %eax,%ebx <== NOT EXECUTED
}
}
/*
* for FAT32: initialize info sector on disk
*/
if ((ret_val == 0) &&
120748: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12074b: 85 c0 test %eax,%eax <== NOT EXECUTED
12074d: 0f 85 8e 02 00 00 jne 1209e1 <msdos_format+0xb74> <== NOT EXECUTED
120753: 83 bd 70 ff ff ff 00 cmpl $0x0,-0x90(%ebp) <== NOT EXECUTED
12075a: 0f 84 a8 03 00 00 je 120b08 <msdos_format+0xc9b> <== NOT EXECUTED
\*=========================================================================*/
{
/*
* clear fsinfo sector data
*/
memset(fsinfo,0,FAT_TOTAL_FSINFO_SIZE);
120760: 8d 95 44 fd ff ff lea -0x2bc(%ebp),%edx <== NOT EXECUTED
120766: b9 80 00 00 00 mov $0x80,%ecx <== NOT EXECUTED
12076b: 31 c0 xor %eax,%eax <== NOT EXECUTED
12076d: 89 d7 mov %edx,%edi <== NOT EXECUTED
12076f: f3 ab rep stos %eax,%es:(%edi) <== NOT EXECUTED
/*
* write LEADSIG, STRUCTSIG, TRAILSIG
*/
FAT_SET_FSINFO_LEAD_SIGNATURE (fsinfo,FAT_FSINFO_LEAD_SIGNATURE_VALUE );
120771: c6 85 44 fd ff ff 52 movb $0x52,-0x2bc(%ebp) <== NOT EXECUTED
120778: c6 85 45 fd ff ff 52 movb $0x52,-0x2bb(%ebp) <== NOT EXECUTED
12077f: c6 85 46 fd ff ff 61 movb $0x61,-0x2ba(%ebp) <== NOT EXECUTED
120786: c6 85 47 fd ff ff 41 movb $0x41,-0x2b9(%ebp) <== NOT EXECUTED
FAT_SET_FSINFO_STRUC_SIGNATURE(fsinfo,FAT_FSINFO_STRUC_SIGNATURE_VALUE);
12078d: c6 85 28 ff ff ff 72 movb $0x72,-0xd8(%ebp) <== NOT EXECUTED
120794: c6 85 29 ff ff ff 72 movb $0x72,-0xd7(%ebp) <== NOT EXECUTED
12079b: c6 85 2a ff ff ff 41 movb $0x41,-0xd6(%ebp) <== NOT EXECUTED
1207a2: c6 85 2b ff ff ff 61 movb $0x61,-0xd5(%ebp) <== NOT EXECUTED
FAT_SET_FSINFO_TRAIL_SIGNATURE(fsinfo,FAT_FSINFO_TRAIL_SIGNATURE_VALUE);
1207a9: c6 85 42 ff ff ff 55 movb $0x55,-0xbe(%ebp) <== NOT EXECUTED
1207b0: c6 85 43 ff ff ff aa movb $0xaa,-0xbd(%ebp) <== NOT EXECUTED
/*
* write "empty" values for free cluster count and next cluster number
*/
FAT_SET_FSINFO_FREE_CLUSTER_COUNT(fsinfo+FAT_FSI_INFO,
1207b7: c6 85 2c ff ff ff ff movb $0xff,-0xd4(%ebp) <== NOT EXECUTED
1207be: c6 85 2d ff ff ff ff movb $0xff,-0xd3(%ebp) <== NOT EXECUTED
1207c5: c6 85 2e ff ff ff ff movb $0xff,-0xd2(%ebp) <== NOT EXECUTED
1207cc: c6 85 2f ff ff ff ff movb $0xff,-0xd1(%ebp) <== NOT EXECUTED
0xffffffff);
FAT_SET_FSINFO_NEXT_FREE_CLUSTER (fsinfo+FAT_FSI_INFO,
1207d3: c6 85 30 ff ff ff ff movb $0xff,-0xd0(%ebp) <== NOT EXECUTED
1207da: c6 85 31 ff ff ff ff movb $0xff,-0xcf(%ebp) <== NOT EXECUTED
1207e1: c6 85 32 ff ff ff ff movb $0xff,-0xce(%ebp) <== NOT EXECUTED
1207e8: c6 85 33 ff ff ff ff movb $0xff,-0xcd(%ebp) <== NOT EXECUTED
1207ef: e9 14 03 00 00 jmp 120b08 <msdos_format+0xc9b> <== NOT EXECUTED
/*
* write fsinfo sector
*/
if ((ret_val == 0) &&
(fmt_params.fsinfo_sec != 0)) {
ret_val = msdos_format_write_sec(fd,
1207f4: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1207f7: 8d 85 44 fd ff ff lea -0x2bc(%ebp),%eax <== NOT EXECUTED
1207fd: 50 push %eax <== NOT EXECUTED
1207fe: 8b 8d 44 ff ff ff mov -0xbc(%ebp),%ecx <== NOT EXECUTED
120804: 8b 85 34 fd ff ff mov -0x2cc(%ebp),%eax <== NOT EXECUTED
12080a: e8 16 f5 ff ff call 11fd25 <msdos_format_write_sec><== NOT EXECUTED
12080f: 89 c3 mov %eax,%ebx <== NOT EXECUTED
}
/*
* write FAT as all empty
* -> write all FAT sectors as zero
*/
if (ret_val == 0) {
120811: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
120814: 85 c0 test %eax,%eax <== NOT EXECUTED
120816: 0f 85 c5 01 00 00 jne 1209e1 <msdos_format+0xb74> <== NOT EXECUTED
ret_val = msdos_format_fill_sectors
12081c: 57 push %edi <== NOT EXECUTED
12081d: 6a 00 push $0x0 <== NOT EXECUTED
12081f: ff b5 44 ff ff ff pushl -0xbc(%ebp) <== NOT EXECUTED
120825: 0f b6 85 74 ff ff ff movzbl -0x8c(%ebp),%eax <== NOT EXECUTED
12082c: 0f af 85 54 ff ff ff imul -0xac(%ebp),%eax <== NOT EXECUTED
120833: 50 push %eax <== NOT EXECUTED
120834: 8b 8d 4c ff ff ff mov -0xb4(%ebp),%ecx <== NOT EXECUTED
12083a: 8b 95 34 fd ff ff mov -0x2cc(%ebp),%edx <== NOT EXECUTED
120840: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
120843: e8 20 f5 ff ff call 11fd68 <msdos_format_fill_sectors><== NOT EXECUTED
120848: 89 c3 mov %eax,%ebx <== NOT EXECUTED
}
/*
* clear/init root directory
* -> write all directory sectors as 0x00
*/
if (ret_val == 0) {
12084a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12084d: 85 c0 test %eax,%eax <== NOT EXECUTED
12084f: 0f 85 8c 01 00 00 jne 1209e1 <msdos_format+0xb74> <== NOT EXECUTED
ret_val = msdos_format_fill_sectors
120855: 56 push %esi <== NOT EXECUTED
120856: 6a 00 push $0x0 <== NOT EXECUTED
120858: ff b5 44 ff ff ff pushl -0xbc(%ebp) <== NOT EXECUTED
12085e: ff b5 68 ff ff ff pushl -0x98(%ebp) <== NOT EXECUTED
120864: 8b 8d 64 ff ff ff mov -0x9c(%ebp),%ecx <== NOT EXECUTED
12086a: 8b 95 34 fd ff ff mov -0x2cc(%ebp),%edx <== NOT EXECUTED
120870: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
120873: e8 f0 f4 ff ff call 11fd68 <msdos_format_fill_sectors><== NOT EXECUTED
120878: 89 c3 mov %eax,%ebx <== NOT EXECUTED
0x00);
}
/*
* write volume label to first entry of directory
*/
if ((ret_val == 0) && fmt_params.VolLabel_present) {
12087a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12087d: 85 c0 test %eax,%eax <== NOT EXECUTED
12087f: 0f 85 5c 01 00 00 jne 1209e1 <msdos_format+0xb74> <== NOT EXECUTED
120885: 80 7d 8c 00 cmpb $0x0,-0x74(%ebp) <== NOT EXECUTED
120889: 74 48 je 1208d3 <msdos_format+0xa66> <== NOT EXECUTED
memset(tmp_sec,0,sizeof(tmp_sec));
12088b: 8d 95 44 fd ff ff lea -0x2bc(%ebp),%edx <== NOT EXECUTED
120891: b9 80 00 00 00 mov $0x80,%ecx <== NOT EXECUTED
120896: 89 d7 mov %edx,%edi <== NOT EXECUTED
120898: f3 ab rep stos %eax,%es:(%edi) <== NOT EXECUTED
memcpy(MSDOS_DIR_NAME(tmp_sec),fmt_params.VolLabel,MSDOS_SHORT_NAME_LEN);
12089a: 8d 75 80 lea -0x80(%ebp),%esi <== NOT EXECUTED
12089d: b1 0b mov $0xb,%cl <== NOT EXECUTED
12089f: 89 d7 mov %edx,%edi <== NOT EXECUTED
1208a1: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
*MSDOS_DIR_ATTR(tmp_sec) = MSDOS_ATTR_VOLUME_ID;
1208a3: c6 85 4f fd ff ff 08 movb $0x8,-0x2b1(%ebp) <== NOT EXECUTED
ret_val = msdos_format_write_sec
1208aa: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1208ad: 52 push %edx <== NOT EXECUTED
1208ae: 8b 8d 44 ff ff ff mov -0xbc(%ebp),%ecx <== NOT EXECUTED
1208b4: 8b 95 64 ff ff ff mov -0x9c(%ebp),%edx <== NOT EXECUTED
1208ba: 8b 85 34 fd ff ff mov -0x2cc(%ebp),%eax <== NOT EXECUTED
1208c0: e8 60 f4 ff ff call 11fd25 <msdos_format_write_sec><== NOT EXECUTED
/*
* write FAT entry 0 as (0xffffff00|Media_type)EOC,
* write FAT entry 1 as EOC
* allocate directory in a FAT32 FS
*/
if ((ret_val == 0) && fmt_params.VolLabel_present){
1208c5: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1208c8: 85 c0 test %eax,%eax <== NOT EXECUTED
1208ca: 74 07 je 1208d3 <msdos_format+0xa66> <== NOT EXECUTED
1208cc: 89 c3 mov %eax,%ebx <== NOT EXECUTED
1208ce: e9 0e 01 00 00 jmp 1209e1 <msdos_format+0xb74> <== NOT EXECUTED
1208d3: 80 7d 8c 00 cmpb $0x0,-0x74(%ebp) <== NOT EXECUTED
1208d7: 0f 84 04 01 00 00 je 1209e1 <msdos_format+0xb74> <== NOT EXECUTED
/*
* empty sector: all clusters are free/do not link further on
*/
memset(tmp_sec,0,sizeof(tmp_sec));
1208dd: 8d 95 44 fd ff ff lea -0x2bc(%ebp),%edx <== NOT EXECUTED
1208e3: b9 80 00 00 00 mov $0x80,%ecx <== NOT EXECUTED
1208e8: 31 c0 xor %eax,%eax <== NOT EXECUTED
1208ea: 89 d7 mov %edx,%edi <== NOT EXECUTED
1208ec: f3 ab rep stos %eax,%es:(%edi) <== NOT EXECUTED
switch(fmt_params.fattype) {
1208ee: 8a 85 76 ff ff ff mov -0x8a(%ebp),%al <== NOT EXECUTED
1208f4: 3c 02 cmp $0x2,%al <== NOT EXECUTED
1208f6: 74 1e je 120916 <msdos_format+0xaa9> <== NOT EXECUTED
1208f8: 3c 04 cmp $0x4,%al <== NOT EXECUTED
1208fa: 74 3d je 120939 <msdos_format+0xacc> <== NOT EXECUTED
1208fc: fe c8 dec %al <== NOT EXECUTED
1208fe: 75 6b jne 12096b <msdos_format+0xafe> <== NOT EXECUTED
case FAT_FAT12:
/* LSBits of FAT entry 0: media_type */
FAT_SET_VAL8(tmp_sec,0,(fmt_params.media_code));
120900: 8a 85 75 ff ff ff mov -0x8b(%ebp),%al <== NOT EXECUTED
120906: 88 85 44 fd ff ff mov %al,-0x2bc(%ebp) <== NOT EXECUTED
/* MSBits of FAT entry 0:0xf, LSBits of FAT entry 1: LSB of EOC */
FAT_SET_VAL8(tmp_sec,1,(0x0f | (FAT_FAT12_EOC << 4)));
12090c: c6 42 01 8f movb $0x8f,0x1(%edx) <== NOT EXECUTED
/* MSBits of FAT entry 1: MSBits of EOC */
FAT_SET_VAL8(tmp_sec,2,(FAT_FAT12_EOC >> 4));
120910: c6 42 02 ff movb $0xff,0x2(%edx) <== NOT EXECUTED
break;
120914: eb 63 jmp 120979 <msdos_format+0xb0c> <== NOT EXECUTED
case FAT_FAT16:
/* FAT entry 0: 0xff00|media_type */
FAT_SET_VAL16(tmp_sec,0,0xff00|fmt_params.media_code);
120916: 8a 85 75 ff ff ff mov -0x8b(%ebp),%al <== NOT EXECUTED
12091c: 88 85 44 fd ff ff mov %al,-0x2bc(%ebp) <== NOT EXECUTED
120922: c6 85 45 fd ff ff ff movb $0xff,-0x2bb(%ebp) <== NOT EXECUTED
/* FAT entry 1: EOC */
FAT_SET_VAL16(tmp_sec,2,FAT_FAT16_EOC);
120929: c6 85 46 fd ff ff f8 movb $0xf8,-0x2ba(%ebp) <== NOT EXECUTED
120930: c6 85 47 fd ff ff ff movb $0xff,-0x2b9(%ebp) <== NOT EXECUTED
break;
120937: eb 40 jmp 120979 <msdos_format+0xb0c> <== NOT EXECUTED
case FAT_FAT32:
/* FAT entry 0: 0xffffff00|media_type */
FAT_SET_VAL32(tmp_sec,0,0xffffff00|fmt_params.media_code);
120939: 0f b6 85 75 ff ff ff movzbl -0x8b(%ebp),%eax <== NOT EXECUTED
120940: 0d 00 ff ff ff or $0xffffff00,%eax <== NOT EXECUTED
120945: 88 85 44 fd ff ff mov %al,-0x2bc(%ebp) <== NOT EXECUTED
12094b: c1 e8 18 shr $0x18,%eax <== NOT EXECUTED
12094e: 88 42 01 mov %al,0x1(%edx) <== NOT EXECUTED
120951: c6 42 02 ff movb $0xff,0x2(%edx) <== NOT EXECUTED
120955: c6 42 03 ff movb $0xff,0x3(%edx) <== NOT EXECUTED
/* FAT entry 1: EOC */
FAT_SET_VAL32(tmp_sec,4,FAT_FAT32_EOC);
120959: c6 42 04 f8 movb $0xf8,0x4(%edx) <== NOT EXECUTED
12095d: c6 42 05 ff movb $0xff,0x5(%edx) <== NOT EXECUTED
120961: c6 42 06 ff movb $0xff,0x6(%edx) <== NOT EXECUTED
120965: c6 42 07 0f movb $0xf,0x7(%edx) <== NOT EXECUTED
break;
120969: eb 0e jmp 120979 <msdos_format+0xb0c> <== NOT EXECUTED
default:
ret_val = -1;
errno = EINVAL;
12096b: e8 a4 d6 01 00 call 13e014 <__errno> <== NOT EXECUTED
120970: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
120976: 83 cb ff or $0xffffffff,%ebx <== NOT EXECUTED
}
if (fmt_params.fattype == FAT_FAT32) {
120979: 80 bd 76 ff ff ff 04 cmpb $0x4,-0x8a(%ebp) <== NOT EXECUTED
120980: 75 1c jne 12099e <msdos_format+0xb31> <== NOT EXECUTED
/*
* only first valid cluster (cluster number 2) belongs
* to root directory, and is end of chain
* mark this in every copy of the FAT
*/
FAT_SET_VAL32(tmp_sec,8,FAT_FAT32_EOC);
120982: c6 85 4c fd ff ff f8 movb $0xf8,-0x2b4(%ebp) <== NOT EXECUTED
120989: c6 85 4d fd ff ff ff movb $0xff,-0x2b3(%ebp) <== NOT EXECUTED
120990: c6 85 4e fd ff ff ff movb $0xff,-0x2b2(%ebp) <== NOT EXECUTED
120997: c6 85 4f fd ff ff 0f movb $0xf,-0x2b1(%ebp) <== NOT EXECUTED
12099e: 31 f6 xor %esi,%esi <== NOT EXECUTED
}
for (i = 0;
(i < fmt_params.fat_num) && (ret_val == 0);
i++) {
ret_val = msdos_format_write_sec
1209a0: 8d bd 44 fd ff ff lea -0x2bc(%ebp),%edi <== NOT EXECUTED
1209a6: eb 2a jmp 1209d2 <msdos_format+0xb65> <== NOT EXECUTED
1209a8: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1209ab: 8b 95 54 ff ff ff mov -0xac(%ebp),%edx <== NOT EXECUTED
1209b1: 0f af d6 imul %esi,%edx <== NOT EXECUTED
1209b4: 03 95 4c ff ff ff add -0xb4(%ebp),%edx <== NOT EXECUTED
1209ba: 57 push %edi <== NOT EXECUTED
1209bb: 8b 8d 44 ff ff ff mov -0xbc(%ebp),%ecx <== NOT EXECUTED
1209c1: 8b 85 34 fd ff ff mov -0x2cc(%ebp),%eax <== NOT EXECUTED
1209c7: e8 59 f3 ff ff call 11fd25 <msdos_format_write_sec><== NOT EXECUTED
1209cc: 89 c3 mov %eax,%ebx <== NOT EXECUTED
*/
FAT_SET_VAL32(tmp_sec,8,FAT_FAT32_EOC);
}
for (i = 0;
(i < fmt_params.fat_num) && (ret_val == 0);
i++) {
1209ce: 46 inc %esi <== NOT EXECUTED
1209cf: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
* to root directory, and is end of chain
* mark this in every copy of the FAT
*/
FAT_SET_VAL32(tmp_sec,8,FAT_FAT32_EOC);
}
for (i = 0;
1209d2: 85 db test %ebx,%ebx <== NOT EXECUTED
1209d4: 75 0b jne 1209e1 <msdos_format+0xb74> <== NOT EXECUTED
1209d6: 0f b6 85 74 ff ff ff movzbl -0x8c(%ebp),%eax <== NOT EXECUTED
1209dd: 39 c6 cmp %eax,%esi <== NOT EXECUTED
1209df: 7c c7 jl 1209a8 <msdos_format+0xb3b> <== NOT EXECUTED
/*
* cleanup:
* sync and unlock disk
* free any data structures (not needed now)
*/
if (fd != -1) {
1209e1: 83 bd 34 fd ff ff ff cmpl $0xffffffff,-0x2cc(%ebp) <== NOT EXECUTED
1209e8: 74 11 je 1209fb <msdos_format+0xb8e> <== NOT EXECUTED
close(fd);
1209ea: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1209ed: ff b5 34 fd ff ff pushl -0x2cc(%ebp) <== NOT EXECUTED
1209f3: e8 c8 c0 fe ff call 10cac0 <close> <== NOT EXECUTED
1209f8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
if (dd != NULL) {
1209fb: 83 bd 2c fd ff ff 00 cmpl $0x0,-0x2d4(%ebp) <== NOT EXECUTED
120a02: 74 11 je 120a15 <msdos_format+0xba8> <== NOT EXECUTED
rtems_disk_release(dd);
120a04: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
120a07: ff b5 2c fd ff ff pushl -0x2d4(%ebp) <== NOT EXECUTED
120a0d: e8 62 b4 fe ff call 10be74 <rtems_disk_release> <== NOT EXECUTED
120a12: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
return ret_val;
}
120a15: 89 d8 mov %ebx,%eax <== NOT EXECUTED
120a17: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
120a1a: 5b pop %ebx <== NOT EXECUTED
120a1b: 5e pop %esi <== NOT EXECUTED
120a1c: 5f pop %edi <== NOT EXECUTED
120a1d: c9 leave <== NOT EXECUTED
120a1e: c3 ret <== NOT EXECUTED
ret_val = -1;
}
/* check that device is registered as block device and lock it */
if (ret_val == 0) {
dd = rtems_disk_obtain(stat_buf.st_rdev);
120a1f: 53 push %ebx <== NOT EXECUTED
120a20: 53 push %ebx <== NOT EXECUTED
120a21: ff 75 b0 pushl -0x50(%ebp) <== NOT EXECUTED
120a24: ff 75 ac pushl -0x54(%ebp) <== NOT EXECUTED
120a27: e8 c1 b2 fe ff call 10bced <rtems_disk_obtain> <== NOT EXECUTED
120a2c: 89 85 2c fd ff ff mov %eax,-0x2d4(%ebp) <== NOT EXECUTED
if (dd == NULL) {
120a32: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
120a35: 85 c0 test %eax,%eax <== NOT EXECUTED
120a37: 0f 84 a4 f4 ff ff je 11fee1 <msdos_format+0x74> <== NOT EXECUTED
/*
* open device for writing
*/
if (ret_val == 0) {
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,
120a3d: 51 push %ecx <== NOT EXECUTED
120a3e: 68 ec 9d 15 00 push $0x159dec <== NOT EXECUTED
120a43: 6a 02 push $0x2 <== NOT EXECUTED
120a45: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
120a48: e8 9b f2 ff ff call 11fce8 <msdos_format_printf> <== NOT EXECUTED
"open device\n");
fd = open(devname, O_RDWR);
120a4d: 58 pop %eax <== NOT EXECUTED
120a4e: 5a pop %edx <== NOT EXECUTED
120a4f: 6a 02 push $0x2 <== NOT EXECUTED
120a51: 57 push %edi <== NOT EXECUTED
120a52: e8 ed d2 fe ff call 10dd44 <open> <== NOT EXECUTED
120a57: 89 85 34 fd ff ff mov %eax,-0x2cc(%ebp) <== NOT EXECUTED
if (fd == -1)
120a5d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
120a60: 83 cb ff or $0xffffffff,%ebx <== NOT EXECUTED
120a63: 40 inc %eax <== NOT EXECUTED
120a64: 0f 84 85 f4 ff ff je 11feef <msdos_format+0x82> <== NOT EXECUTED
uint32_t fatdata_sect_cnt;
uint32_t onebit;
uint32_t sectors_per_cluster_adj = 0;
uint64_t total_size = 0;
memset(fmt_params,0,sizeof(*fmt_params));
120a6a: 8d 95 44 ff ff ff lea -0xbc(%ebp),%edx <== NOT EXECUTED
120a70: b9 14 00 00 00 mov $0x14,%ecx <== NOT EXECUTED
120a75: 89 d7 mov %edx,%edi <== NOT EXECUTED
120a77: 89 f0 mov %esi,%eax <== NOT EXECUTED
120a79: f3 ab rep stos %eax,%es:(%edi) <== NOT EXECUTED
/*
* this one is fixed in this implementation.
* At least one thing we don't have to magically guess...
*/
if (ret_val == 0) {
fmt_params->bytes_per_sector = dd->block_size;
120a7b: 8b 95 2c fd ff ff mov -0x2d4(%ebp),%edx <== NOT EXECUTED
120a81: 8b 42 20 mov 0x20(%edx),%eax <== NOT EXECUTED
120a84: 89 85 44 ff ff ff mov %eax,-0xbc(%ebp) <== NOT EXECUTED
fmt_params->totl_sector_cnt = dd->size;
120a8a: 8b 5a 1c mov 0x1c(%edx),%ebx <== NOT EXECUTED
120a8d: 89 9d 48 ff ff ff mov %ebx,-0xb8(%ebp) <== NOT EXECUTED
total_size = dd->block_size * dd->size;
120a93: 89 da mov %ebx,%edx <== NOT EXECUTED
120a95: 0f af d0 imul %eax,%edx <== NOT EXECUTED
120a98: 31 c9 xor %ecx,%ecx <== NOT EXECUTED
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,
120a9a: 56 push %esi <== NOT EXECUTED
120a9b: 51 push %ecx <== NOT EXECUTED
120a9c: 52 push %edx <== NOT EXECUTED
120a9d: 53 push %ebx <== NOT EXECUTED
120a9e: 50 push %eax <== NOT EXECUTED
120a9f: 68 f9 9d 15 00 push $0x159df9 <== NOT EXECUTED
120aa4: 6a 02 push $0x2 <== NOT EXECUTED
120aa6: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
120aa9: 89 95 18 fd ff ff mov %edx,-0x2e8(%ebp) <== NOT EXECUTED
120aaf: 89 8d 14 fd ff ff mov %ecx,-0x2ec(%ebp) <== NOT EXECUTED
120ab5: e8 2e f2 ff ff call 11fce8 <msdos_format_printf> <== NOT EXECUTED
}
/*
* determine number of FATs
*/
if (ret_val == 0) {
if ((rqdata == NULL) ||
120aba: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
120abd: 83 7d 0c 00 cmpl $0x0,0xc(%ebp) <== NOT EXECUTED
120ac1: 8b 95 18 fd ff ff mov -0x2e8(%ebp),%edx <== NOT EXECUTED
120ac7: 8b 8d 14 fd ff ff mov -0x2ec(%ebp),%ecx <== NOT EXECUTED
120acd: 0f 85 33 f4 ff ff jne 11ff06 <msdos_format+0x99> <== NOT EXECUTED
120ad3: e9 38 f4 ff ff jmp 11ff10 <msdos_format+0xa3> <== NOT EXECUTED
ret_val = msdos_format_read_sec(fd,
0,
fmt_params.bytes_per_sector,
tmp_sec);
if (ret_val == 0) {
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,
120ad8: 50 push %eax <== NOT EXECUTED
120ad9: 68 31 9e 15 00 push $0x159e31 <== NOT EXECUTED
120ade: 6a 02 push $0x2 <== NOT EXECUTED
120ae0: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
120ae3: e8 00 f2 ff ff call 11fce8 <msdos_format_printf> <== NOT EXECUTED
{
uint32_t total_sectors_num16 = 0;
uint32_t total_sectors_num32 = 0;
/* store total sector count in either 16 or 32 bit field in mbr */
if (fmt_params->totl_sector_cnt < 0x10000) {
120ae8: 8b 95 48 ff ff ff mov -0xb8(%ebp),%edx <== NOT EXECUTED
120aee: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
if (0 > lseek(fd,((off_t)start_sector)*sector_size,SEEK_SET)) {
ret_val = -1;
}
if (ret_val == 0) {
if (0 > read(fd,buffer,sector_size)) {
120af1: 31 db xor %ebx,%ebx <== NOT EXECUTED
{
uint32_t total_sectors_num16 = 0;
uint32_t total_sectors_num32 = 0;
/* store total sector count in either 16 or 32 bit field in mbr */
if (fmt_params->totl_sector_cnt < 0x10000) {
120af3: 81 fa ff ff 00 00 cmp $0xffff,%edx <== NOT EXECUTED
120af9: 0f 87 60 f9 ff ff ja 12045f <msdos_format+0x5f2> <== NOT EXECUTED
120aff: 89 d3 mov %edx,%ebx <== NOT EXECUTED
120b01: 31 d2 xor %edx,%edx <== NOT EXECUTED
120b03: e9 57 f9 ff ff jmp 12045f <msdos_format+0x5f2> <== NOT EXECUTED
}
/*
* write fsinfo sector
*/
if ((ret_val == 0) &&
(fmt_params.fsinfo_sec != 0)) {
120b08: 8b 95 70 ff ff ff mov -0x90(%ebp),%edx <== NOT EXECUTED
ret_val = msdos_format_gen_fsinfo(tmp_sec);
}
/*
* write fsinfo sector
*/
if ((ret_val == 0) &&
120b0e: 85 d2 test %edx,%edx <== NOT EXECUTED
120b10: 0f 84 06 fd ff ff je 12081c <msdos_format+0x9af> <== NOT EXECUTED
120b16: e9 d9 fc ff ff jmp 1207f4 <msdos_format+0x987> <== NOT EXECUTED
0011fd68 <msdos_format_fill_sectors>:
)
/*-------------------------------------------------------------------------*\
| Return Value: |
| 0, if success, -1 and errno if failed |
\*=========================================================================*/
{
11fd68: 55 push %ebp <== NOT EXECUTED
11fd69: 89 e5 mov %esp,%ebp <== NOT EXECUTED
11fd6b: 57 push %edi <== NOT EXECUTED
11fd6c: 56 push %esi <== NOT EXECUTED
11fd6d: 53 push %ebx <== NOT EXECUTED
11fd6e: 83 ec 38 sub $0x38,%esp <== NOT EXECUTED
11fd71: 89 c6 mov %eax,%esi <== NOT EXECUTED
11fd73: 89 55 d8 mov %edx,-0x28(%ebp) <== NOT EXECUTED
11fd76: 89 4d e0 mov %ecx,-0x20(%ebp) <== NOT EXECUTED
11fd79: 8a 45 10 mov 0x10(%ebp),%al <== NOT EXECUTED
11fd7c: 88 45 e4 mov %al,-0x1c(%ebp) <== NOT EXECUTED
/*
* allocate and fill buffer
*/
if (ret_val == 0) {
fill_buffer = malloc(sector_size);
11fd7f: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
11fd82: e8 61 d6 fe ff call 10d3e8 <malloc> <== NOT EXECUTED
11fd87: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (fill_buffer == NULL) {
11fd89: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
11fd8c: 85 c0 test %eax,%eax <== NOT EXECUTED
11fd8e: 75 10 jne 11fda0 <msdos_format_fill_sectors+0x38><== NOT EXECUTED
errno = ENOMEM;
11fd90: e8 7f e2 01 00 call 13e014 <__errno> <== NOT EXECUTED
11fd95: c7 00 0c 00 00 00 movl $0xc,(%eax) <== NOT EXECUTED
11fd9b: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
11fd9e: eb 0c jmp 11fdac <msdos_format_fill_sectors+0x44><== NOT EXECUTED
ret_val = -1;
}
else {
memset(fill_buffer,fill_byte,sector_size);
11fda0: 89 c7 mov %eax,%edi <== NOT EXECUTED
11fda2: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED
11fda5: 8a 45 e4 mov -0x1c(%ebp),%al <== NOT EXECUTED
11fda8: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED
11fdaa: 31 c0 xor %eax,%eax <== NOT EXECUTED
}
}
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,
11fdac: 57 push %edi <== NOT EXECUTED
11fdad: 68 29 9d 15 00 push $0x159d29 <== NOT EXECUTED
11fdb2: 6a 02 push $0x2 <== NOT EXECUTED
11fdb4: 56 push %esi <== NOT EXECUTED
11fdb5: 89 45 d4 mov %eax,-0x2c(%ebp) <== NOT EXECUTED
11fdb8: e8 2b ff ff ff call 11fce8 <msdos_format_printf> <== NOT EXECUTED
11fdbd: 6b 55 08 64 imul $0x64,0x8(%ebp),%edx <== NOT EXECUTED
11fdc1: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED
11fdc4: 8b 7d 08 mov 0x8(%ebp),%edi <== NOT EXECUTED
11fdc7: 83 c9 ff or $0xffffffff,%ecx <== NOT EXECUTED
"Filling : ");
/*
* write to consecutive sectors
*/
while ((ret_val == 0) &&
11fdca: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
11fdcd: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED
11fdd0: eb 44 jmp 11fe16 <msdos_format_fill_sectors+0xae><== NOT EXECUTED
(sector_cnt > 0)) {
int percent = (sector_cnt * 100) / total_sectors;
11fdd2: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
11fdd5: 31 d2 xor %edx,%edx <== NOT EXECUTED
11fdd7: f7 75 08 divl 0x8(%ebp) <== NOT EXECUTED
11fdda: 89 45 dc mov %eax,-0x24(%ebp) <== NOT EXECUTED
if (percent != last_percent) {
11fddd: 39 c8 cmp %ecx,%eax <== NOT EXECUTED
11fddf: 74 15 je 11fdf6 <msdos_format_fill_sectors+0x8e><== NOT EXECUTED
if ((percent & 1) == 0)
11fde1: a8 01 test $0x1,%al <== NOT EXECUTED
11fde3: 75 11 jne 11fdf6 <msdos_format_fill_sectors+0x8e><== NOT EXECUTED
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL, ".");
11fde5: 51 push %ecx <== NOT EXECUTED
11fde6: 68 be 87 15 00 push $0x1587be <== NOT EXECUTED
11fdeb: 6a 02 push $0x2 <== NOT EXECUTED
11fded: 56 push %esi <== NOT EXECUTED
11fdee: e8 f5 fe ff ff call 11fce8 <msdos_format_printf> <== NOT EXECUTED
11fdf3: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
last_percent = percent;
}
ret_val = msdos_format_write_sec(fd,start_sector,sector_size,fill_buffer);
11fdf6: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
11fdf9: 53 push %ebx <== NOT EXECUTED
11fdfa: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED
11fdfd: 8b 55 e0 mov -0x20(%ebp),%edx <== NOT EXECUTED
11fe00: 8b 45 d8 mov -0x28(%ebp),%eax <== NOT EXECUTED
11fe03: e8 1d ff ff ff call 11fd25 <msdos_format_write_sec><== NOT EXECUTED
start_sector++;
11fe08: ff 45 e0 incl -0x20(%ebp) <== NOT EXECUTED
sector_cnt--;
11fe0b: 4f dec %edi <== NOT EXECUTED
11fe0c: 83 6d e4 64 subl $0x64,-0x1c(%ebp) <== NOT EXECUTED
11fe10: 8b 4d dc mov -0x24(%ebp),%ecx <== NOT EXECUTED
11fe13: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,
"Filling : ");
/*
* write to consecutive sectors
*/
while ((ret_val == 0) &&
11fe16: 85 ff test %edi,%edi <== NOT EXECUTED
11fe18: 74 04 je 11fe1e <msdos_format_fill_sectors+0xb6><== NOT EXECUTED
11fe1a: 85 c0 test %eax,%eax <== NOT EXECUTED
11fe1c: 74 b4 je 11fdd2 <msdos_format_fill_sectors+0x6a><== NOT EXECUTED
ret_val = msdos_format_write_sec(fd,start_sector,sector_size,fill_buffer);
start_sector++;
sector_cnt--;
}
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL, "\n");
11fe1e: 52 push %edx <== NOT EXECUTED
11fe1f: 68 45 cf 15 00 push $0x15cf45 <== NOT EXECUTED
11fe24: 6a 02 push $0x2 <== NOT EXECUTED
11fe26: 56 push %esi <== NOT EXECUTED
11fe27: 89 45 d4 mov %eax,-0x2c(%ebp) <== NOT EXECUTED
11fe2a: e8 b9 fe ff ff call 11fce8 <msdos_format_printf> <== NOT EXECUTED
if (ret_val)
11fe2f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
11fe32: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED
11fe35: 85 c0 test %eax,%eax <== NOT EXECUTED
11fe37: 74 16 je 11fe4f <msdos_format_fill_sectors+0xe7><== NOT EXECUTED
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_INFO,
11fe39: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
11fe3c: 68 34 9d 15 00 push $0x159d34 <== NOT EXECUTED
11fe41: 6a 01 push $0x1 <== NOT EXECUTED
11fe43: 56 push %esi <== NOT EXECUTED
11fe44: e8 9f fe ff ff call 11fce8 <msdos_format_printf> <== NOT EXECUTED
11fe49: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
11fe4c: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED
"filling error on sector: %d\n", start_sector);
/*
* cleanup
*/
if (fill_buffer != NULL) {
11fe4f: 85 db test %ebx,%ebx <== NOT EXECUTED
11fe51: 74 12 je 11fe65 <msdos_format_fill_sectors+0xfd><== NOT EXECUTED
free(fill_buffer);
11fe53: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
11fe56: 53 push %ebx <== NOT EXECUTED
11fe57: 89 45 d4 mov %eax,-0x2c(%ebp) <== NOT EXECUTED
11fe5a: e8 3d d0 fe ff call 10ce9c <free> <== NOT EXECUTED
11fe5f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
11fe62: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED
fill_buffer = NULL;
}
return ret_val;
}
11fe65: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
11fe68: 5b pop %ebx <== NOT EXECUTED
11fe69: 5e pop %esi <== NOT EXECUTED
11fe6a: 5f pop %edi <== NOT EXECUTED
11fe6b: c9 leave <== NOT EXECUTED
11fe6c: c3 ret <== NOT EXECUTED
0011fce8 <msdos_format_printf>:
*/
static void
msdos_format_printf (const msdos_format_request_param_t *rqdata,
int info_level,
const char *format, ...)
{
11fce8: 55 push %ebp <== NOT EXECUTED
11fce9: 89 e5 mov %esp,%ebp <== NOT EXECUTED
11fceb: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
11fcee: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
/*
* Formatted output.
*/
static void
msdos_format_printf (const msdos_format_request_param_t *rqdata,
11fcf1: 8d 55 14 lea 0x14(%ebp),%edx <== NOT EXECUTED
int info_level,
const char *format, ...)
{
va_list args;
va_start (args, format);
if (rqdata != NULL && rqdata->info_level >= info_level)
11fcf4: 85 c0 test %eax,%eax <== NOT EXECUTED
11fcf6: 74 2b je 11fd23 <msdos_format_printf+0x3b><== NOT EXECUTED
11fcf8: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED
11fcfb: 39 48 1c cmp %ecx,0x1c(%eax) <== NOT EXECUTED
11fcfe: 7c 23 jl 11fd23 <msdos_format_printf+0x3b><== NOT EXECUTED
{
vfprintf (stdout, format, args);
11fd00: 51 push %ecx <== NOT EXECUTED
11fd01: 52 push %edx <== NOT EXECUTED
11fd02: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
11fd05: a1 e0 4e 16 00 mov 0x164ee0,%eax <== NOT EXECUTED
11fd0a: ff 70 08 pushl 0x8(%eax) <== NOT EXECUTED
11fd0d: e8 22 bb 02 00 call 14b834 <vfprintf> <== NOT EXECUTED
fflush (stdout);
11fd12: 58 pop %eax <== NOT EXECUTED
11fd13: a1 e0 4e 16 00 mov 0x164ee0,%eax <== NOT EXECUTED
11fd18: ff 70 08 pushl 0x8(%eax) <== NOT EXECUTED
11fd1b: e8 70 e6 01 00 call 13e390 <fflush> <== NOT EXECUTED
11fd20: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
va_end (args);
}
11fd23: c9 leave <== NOT EXECUTED
11fd24: c3 ret <== NOT EXECUTED
0011fd25 <msdos_format_write_sec>:
)
/*-------------------------------------------------------------------------*\
| Return Value: |
| 0, if success, -1 and errno if failed |
\*=========================================================================*/
{
11fd25: 55 push %ebp <== NOT EXECUTED
11fd26: 89 e5 mov %esp,%ebp <== NOT EXECUTED
11fd28: 57 push %edi <== NOT EXECUTED
11fd29: 56 push %esi <== NOT EXECUTED
11fd2a: 53 push %ebx <== NOT EXECUTED
11fd2b: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
11fd2e: 89 c3 mov %eax,%ebx <== NOT EXECUTED
11fd30: 89 ce mov %ecx,%esi <== NOT EXECUTED
int ret_val = 0;
if (0 > lseek(fd,((off_t)start_sector)*sector_size,SEEK_SET)) {
11fd32: 6a 00 push $0x0 <== NOT EXECUTED
11fd34: 89 c8 mov %ecx,%eax <== NOT EXECUTED
11fd36: f7 e2 mul %edx <== NOT EXECUTED
11fd38: 52 push %edx <== NOT EXECUTED
11fd39: 50 push %eax <== NOT EXECUTED
11fd3a: 53 push %ebx <== NOT EXECUTED
11fd3b: e8 3c 8f 00 00 call 128c7c <lseek> <== NOT EXECUTED
11fd40: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
11fd43: 85 d2 test %edx,%edx <== NOT EXECUTED
11fd45: 78 16 js 11fd5d <msdos_format_write_sec+0x38><== NOT EXECUTED
ret_val = -1;
}
if (ret_val == 0) {
if (0 > write(fd,buffer,sector_size)) {
11fd47: 57 push %edi <== NOT EXECUTED
11fd48: 56 push %esi <== NOT EXECUTED
11fd49: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
11fd4c: 53 push %ebx <== NOT EXECUTED
11fd4d: e8 5a 04 ff ff call 1101ac <write> <== NOT EXECUTED
11fd52: 89 c2 mov %eax,%edx <== NOT EXECUTED
11fd54: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
11fd57: 31 c0 xor %eax,%eax <== NOT EXECUTED
11fd59: 85 d2 test %edx,%edx <== NOT EXECUTED
11fd5b: 79 03 jns 11fd60 <msdos_format_write_sec+0x3b><== NOT EXECUTED
11fd5d: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
ret_val = -1;
}
}
return ret_val;
}
11fd60: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
11fd63: 5b pop %ebx <== NOT EXECUTED
11fd64: 5e pop %esi <== NOT EXECUTED
11fd65: 5f pop %edi <== NOT EXECUTED
11fd66: c9 leave <== NOT EXECUTED
11fd67: c3 ret <== NOT EXECUTED
00133764 <msdos_free_node_info>:
* RC_OK on success, or -1 code if error occured
*
*/
int
msdos_free_node_info(rtems_filesystem_location_info_t *pathloc)
{
133764: 55 push %ebp <== NOT EXECUTED
133765: 89 e5 mov %esp,%ebp <== NOT EXECUTED
133767: 56 push %esi <== NOT EXECUTED
133768: 53 push %ebx <== NOT EXECUTED
133769: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
int rc = RC_OK;
rtems_status_code sc = RTEMS_SUCCESSFUL;
msdos_fs_info_t *fs_info = pathloc->mt_entry->fs_info;
13376c: 8b 43 10 mov 0x10(%ebx),%eax <== NOT EXECUTED
13376f: 8b 70 34 mov 0x34(%eax),%esi <== NOT EXECUTED
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
133772: 51 push %ecx <== NOT EXECUTED
133773: 6a 00 push $0x0 <== NOT EXECUTED
133775: 6a 00 push $0x0 <== NOT EXECUTED
133777: ff b6 94 00 00 00 pushl 0x94(%esi) <== NOT EXECUTED
13377d: e8 86 d4 fd ff call 110c08 <rtems_semaphore_obtain><== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
133782: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
133785: 85 c0 test %eax,%eax <== NOT EXECUTED
133787: 74 10 je 133799 <msdos_free_node_info+0x35><== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
133789: e8 86 a8 00 00 call 13e014 <__errno> <== NOT EXECUTED
13378e: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
133794: 83 cb ff or $0xffffffff,%ebx <== NOT EXECUTED
133797: eb 1d jmp 1337b6 <msdos_free_node_info+0x52><== NOT EXECUTED
rc = fat_file_close(pathloc->mt_entry, pathloc->node_access);
133799: 52 push %edx <== NOT EXECUTED
13379a: 52 push %edx <== NOT EXECUTED
13379b: ff 33 pushl (%ebx) <== NOT EXECUTED
13379d: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED
1337a0: e8 28 1e ff ff call 1255cd <fat_file_close> <== NOT EXECUTED
1337a5: 89 c3 mov %eax,%ebx <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
1337a7: 58 pop %eax <== NOT EXECUTED
1337a8: ff b6 94 00 00 00 pushl 0x94(%esi) <== NOT EXECUTED
1337ae: e8 41 d5 fd ff call 110cf4 <rtems_semaphore_release><== NOT EXECUTED
return rc;
1337b3: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
1337b6: 89 d8 mov %ebx,%eax <== NOT EXECUTED
1337b8: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
1337bb: 5b pop %ebx <== NOT EXECUTED
1337bc: 5e pop %esi <== NOT EXECUTED
1337bd: c9 leave <== NOT EXECUTED
1337be: c3 ret <== NOT EXECUTED
0013460a <msdos_get_dotdot_dir_info_cluster_num_and_offset>:
rtems_filesystem_mount_table_entry_t *mt_entry,
uint32_t cln,
fat_dir_pos_t *dir_pos,
char *dir_entry
)
{
13460a: 55 push %ebp <== NOT EXECUTED
13460b: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13460d: 57 push %edi <== NOT EXECUTED
13460e: 56 push %esi <== NOT EXECUTED
13460f: 53 push %ebx <== NOT EXECUTED
134610: 81 ec 90 00 00 00 sub $0x90,%esp <== NOT EXECUTED
134616: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
134619: 8b 7d 0c mov 0xc(%ebp),%edi <== NOT EXECUTED
int rc = RC_OK;
msdos_fs_info_t *fs_info = mt_entry->fs_info;
13461c: 8b 46 34 mov 0x34(%esi),%eax <== NOT EXECUTED
13461f: 89 45 80 mov %eax,-0x80(%ebp) <== NOT EXECUTED
fat_file_fd_t *fat_fd = NULL;
134622: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) <== NOT EXECUTED
uint32_t cl4find = 0;
/*
* open fat-file corresponded to ".."
*/
rc = fat_file_open(mt_entry, dir_pos, &fat_fd);
134629: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
13462c: 50 push %eax <== NOT EXECUTED
13462d: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
134630: 56 push %esi <== NOT EXECUTED
134631: e8 46 10 ff ff call 12567c <fat_file_open> <== NOT EXECUTED
134636: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc != RC_OK)
134638: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13463b: 85 c0 test %eax,%eax <== NOT EXECUTED
13463d: 0f 85 de 01 00 00 jne 134821 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x217><== NOT EXECUTED
return rc;
fat_fd->cln = cln;
134643: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
134646: 89 78 1c mov %edi,0x1c(%eax) <== NOT EXECUTED
fat_fd->fat_file_type = FAT_DIRECTORY;
134649: c7 40 10 01 00 00 00 movl $0x1,0x10(%eax) <== NOT EXECUTED
fat_fd->size_limit = MSDOS_MAX_DIR_LENGHT;
134650: c7 40 14 00 00 20 00 movl $0x200000,0x14(%eax) <== NOT EXECUTED
fat_fd->map.file_cln = 0;
134657: c7 40 34 00 00 00 00 movl $0x0,0x34(%eax) <== NOT EXECUTED
fat_fd->map.disk_cln = fat_fd->cln;
13465e: 89 78 38 mov %edi,0x38(%eax) <== NOT EXECUTED
rc = fat_file_size(mt_entry, fat_fd);
134661: 52 push %edx <== NOT EXECUTED
134662: 52 push %edx <== NOT EXECUTED
134663: 50 push %eax <== NOT EXECUTED
134664: 56 push %esi <== NOT EXECUTED
134665: e8 6f 06 ff ff call 124cd9 <fat_file_size> <== NOT EXECUTED
13466a: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc != RC_OK)
13466c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13466f: 85 c0 test %eax,%eax <== NOT EXECUTED
134671: 0f 85 8d 01 00 00 jne 134804 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x1fa><== NOT EXECUTED
fat_file_close(mt_entry, fat_fd);
return rc;
}
/* find "." node in opened directory */
memset(dot_node, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
134677: 8d 4d c4 lea -0x3c(%ebp),%ecx <== NOT EXECUTED
13467a: 89 8d 74 ff ff ff mov %ecx,-0x8c(%ebp) <== NOT EXECUTED
134680: b9 08 00 00 00 mov $0x8,%ecx <== NOT EXECUTED
134685: 8b bd 74 ff ff ff mov -0x8c(%ebp),%edi <== NOT EXECUTED
13468b: f3 ab rep stos %eax,%es:(%edi) <== NOT EXECUTED
msdos_long_to_short(".", 1, dot_node, MSDOS_SHORT_NAME_LEN);
13468d: 6a 0b push $0xb <== NOT EXECUTED
13468f: 8d 4d c4 lea -0x3c(%ebp),%ecx <== NOT EXECUTED
134692: 51 push %ecx <== NOT EXECUTED
134693: 6a 01 push $0x1 <== NOT EXECUTED
134695: 68 be 87 15 00 push $0x1587be <== NOT EXECUTED
13469a: e8 27 fe ff ff call 1344c6 <msdos_long_to_short> <== NOT EXECUTED
rc = msdos_find_name_in_fat_file(mt_entry, fat_fd, false, ".", 1,
13469f: 8d 45 c4 lea -0x3c(%ebp),%eax <== NOT EXECUTED
1346a2: 50 push %eax <== NOT EXECUTED
1346a3: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
1346a6: 6a 01 push $0x1 <== NOT EXECUTED
1346a8: 6a 01 push $0x1 <== NOT EXECUTED
1346aa: 68 be 87 15 00 push $0x1587be <== NOT EXECUTED
1346af: 6a 00 push $0x0 <== NOT EXECUTED
1346b1: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
1346b4: 56 push %esi <== NOT EXECUTED
1346b5: e8 89 f2 ff ff call 133943 <msdos_find_name_in_fat_file><== NOT EXECUTED
1346ba: 89 c3 mov %eax,%ebx <== NOT EXECUTED
MSDOS_NAME_SHORT, dir_pos, dot_node);
if (rc != RC_OK)
1346bc: 83 c4 30 add $0x30,%esp <== NOT EXECUTED
1346bf: 85 c0 test %eax,%eax <== NOT EXECUTED
1346c1: 0f 85 3d 01 00 00 jne 134804 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x1fa><== NOT EXECUTED
fat_file_close(mt_entry, fat_fd);
return rc;
}
/* find ".." node in opened directory */
memset(dotdot_node, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
1346c7: 8d 55 a4 lea -0x5c(%ebp),%edx <== NOT EXECUTED
1346ca: b9 08 00 00 00 mov $0x8,%ecx <== NOT EXECUTED
1346cf: 89 d7 mov %edx,%edi <== NOT EXECUTED
1346d1: f3 ab rep stos %eax,%es:(%edi) <== NOT EXECUTED
msdos_long_to_short("..", 2, dotdot_node, MSDOS_SHORT_NAME_LEN);
1346d3: 6a 0b push $0xb <== NOT EXECUTED
1346d5: 52 push %edx <== NOT EXECUTED
1346d6: 6a 02 push $0x2 <== NOT EXECUTED
1346d8: 68 4c 90 15 00 push $0x15904c <== NOT EXECUTED
1346dd: 89 95 7c ff ff ff mov %edx,-0x84(%ebp) <== NOT EXECUTED
1346e3: e8 de fd ff ff call 1344c6 <msdos_long_to_short> <== NOT EXECUTED
rc = msdos_find_name_in_fat_file(mt_entry, fat_fd, false, "..", 2,
1346e8: 8b 95 7c ff ff ff mov -0x84(%ebp),%edx <== NOT EXECUTED
1346ee: 52 push %edx <== NOT EXECUTED
1346ef: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
1346f2: 6a 01 push $0x1 <== NOT EXECUTED
1346f4: 6a 02 push $0x2 <== NOT EXECUTED
1346f6: 68 4c 90 15 00 push $0x15904c <== NOT EXECUTED
1346fb: 6a 00 push $0x0 <== NOT EXECUTED
1346fd: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
134700: 56 push %esi <== NOT EXECUTED
134701: e8 3d f2 ff ff call 133943 <msdos_find_name_in_fat_file><== NOT EXECUTED
134706: 89 c3 mov %eax,%ebx <== NOT EXECUTED
MSDOS_NAME_SHORT, dir_pos,
dotdot_node);
if (rc != RC_OK)
134708: 83 c4 30 add $0x30,%esp <== NOT EXECUTED
13470b: 85 c0 test %eax,%eax <== NOT EXECUTED
13470d: 0f 85 f1 00 00 00 jne 134804 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x1fa><== NOT EXECUTED
{
fat_file_close(mt_entry, fat_fd);
return rc;
}
cl4find = MSDOS_EXTRACT_CLUSTER_NUM(dot_node);
134713: 66 8b 4d de mov -0x22(%ebp),%cx <== NOT EXECUTED
134717: 66 89 4d 86 mov %cx,-0x7a(%ebp) <== NOT EXECUTED
13471b: 8b 45 d8 mov -0x28(%ebp),%eax <== NOT EXECUTED
13471e: 66 89 45 88 mov %ax,-0x78(%ebp) <== NOT EXECUTED
/* close fat-file corresponded to ".." directory */
rc = fat_file_close(mt_entry, fat_fd);
134722: 57 push %edi <== NOT EXECUTED
134723: 57 push %edi <== NOT EXECUTED
134724: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
134727: 56 push %esi <== NOT EXECUTED
134728: e8 a0 0e ff ff call 1255cd <fat_file_close> <== NOT EXECUTED
13472d: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if ( rc != RC_OK )
13472f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
134732: 85 c0 test %eax,%eax <== NOT EXECUTED
134734: 0f 85 e7 00 00 00 jne 134821 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x217><== NOT EXECUTED
return rc;
if ( (MSDOS_EXTRACT_CLUSTER_NUM(dotdot_node)) == 0)
13473a: 8d 55 be lea -0x42(%ebp),%edx <== NOT EXECUTED
13473d: 8d 7d b8 lea -0x48(%ebp),%edi <== NOT EXECUTED
134740: 66 83 7d b8 00 cmpw $0x0,-0x48(%ebp) <== NOT EXECUTED
134745: 75 25 jne 13476c <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x162><== NOT EXECUTED
134747: 66 83 7d be 00 cmpw $0x0,-0x42(%ebp) <== NOT EXECUTED
13474c: 75 1e jne 13476c <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x162><== NOT EXECUTED
fat_dir_pos_init(
fat_dir_pos_t *dir_pos
)
{
dir_pos->sname.cln = 0;
dir_pos->sname.ofs = 0;
13474e: 8b 4d 10 mov 0x10(%ebp),%ecx <== NOT EXECUTED
134751: c7 41 04 00 00 00 00 movl $0x0,0x4(%ecx) <== NOT EXECUTED
dir_pos->lname.cln = FAT_FILE_SHORT_NAME;
134758: c7 41 08 ff ff ff ff movl $0xffffffff,0x8(%ecx) <== NOT EXECUTED
dir_pos->lname.ofs = FAT_FILE_SHORT_NAME;
13475f: c7 41 0c ff ff ff ff movl $0xffffffff,0xc(%ecx) <== NOT EXECUTED
/*
* we handle root dir for all FAT types in the same way with the
* ordinary directories ( through fat_file_* calls )
*/
fat_dir_pos_init(dir_pos);
dir_pos->sname.cln = FAT_ROOTDIR_CLUSTER_NUM;
134766: c7 01 01 00 00 00 movl $0x1,(%ecx) <== NOT EXECUTED
}
/* open fat-file corresponded to second ".." */
rc = fat_file_open(mt_entry, dir_pos, &fat_fd);
13476c: 53 push %ebx <== NOT EXECUTED
13476d: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
134770: 50 push %eax <== NOT EXECUTED
134771: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
134774: 56 push %esi <== NOT EXECUTED
134775: 89 95 7c ff ff ff mov %edx,-0x84(%ebp) <== NOT EXECUTED
13477b: e8 fc 0e ff ff call 12567c <fat_file_open> <== NOT EXECUTED
134780: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc != RC_OK)
134782: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
134785: 85 c0 test %eax,%eax <== NOT EXECUTED
134787: 8b 95 7c ff ff ff mov -0x84(%ebp),%edx <== NOT EXECUTED
13478d: 0f 85 8e 00 00 00 jne 134821 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x217><== NOT EXECUTED
return rc;
if ((MSDOS_EXTRACT_CLUSTER_NUM(dotdot_node)) == 0)
134793: 0f b7 07 movzwl (%edi),%eax <== NOT EXECUTED
134796: c1 e0 10 shl $0x10,%eax <== NOT EXECUTED
134799: 0f b7 12 movzwl (%edx),%edx <== NOT EXECUTED
13479c: 09 d0 or %edx,%eax <== NOT EXECUTED
13479e: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
1347a1: 75 06 jne 1347a9 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x19f><== NOT EXECUTED
fat_fd->cln = fs_info->fat.vol.rdir_cl;
1347a3: 8b 4d 80 mov -0x80(%ebp),%ecx <== NOT EXECUTED
1347a6: 8b 41 38 mov 0x38(%ecx),%eax <== NOT EXECUTED
else
fat_fd->cln = MSDOS_EXTRACT_CLUSTER_NUM(dotdot_node);
1347a9: 89 42 1c mov %eax,0x1c(%edx) <== NOT EXECUTED
fat_fd->fat_file_type = FAT_DIRECTORY;
1347ac: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
1347af: c7 40 10 01 00 00 00 movl $0x1,0x10(%eax) <== NOT EXECUTED
fat_fd->size_limit = MSDOS_MAX_DIR_LENGHT;
1347b6: c7 40 14 00 00 20 00 movl $0x200000,0x14(%eax) <== NOT EXECUTED
fat_fd->map.file_cln = 0;
1347bd: c7 40 34 00 00 00 00 movl $0x0,0x34(%eax) <== NOT EXECUTED
fat_fd->map.disk_cln = fat_fd->cln;
1347c4: 8b 50 1c mov 0x1c(%eax),%edx <== NOT EXECUTED
1347c7: 89 50 38 mov %edx,0x38(%eax) <== NOT EXECUTED
rc = fat_file_size(mt_entry, fat_fd);
1347ca: 51 push %ecx <== NOT EXECUTED
1347cb: 51 push %ecx <== NOT EXECUTED
1347cc: 50 push %eax <== NOT EXECUTED
1347cd: 56 push %esi <== NOT EXECUTED
1347ce: e8 06 05 ff ff call 124cd9 <fat_file_size> <== NOT EXECUTED
1347d3: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc != RC_OK)
1347d5: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1347d8: 85 c0 test %eax,%eax <== NOT EXECUTED
1347da: 75 28 jne 134804 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x1fa><== NOT EXECUTED
fat_file_close(mt_entry, fat_fd);
return rc;
}
/* in this directory find slot with specified cluster num */
rc = msdos_find_node_by_cluster_num_in_fat_file(mt_entry, fat_fd, cl4find,
1347dc: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1347df: ff 75 14 pushl 0x14(%ebp) <== NOT EXECUTED
1347e2: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
1347e5: 8b 45 88 mov -0x78(%ebp),%eax <== NOT EXECUTED
1347e8: c1 e0 10 shl $0x10,%eax <== NOT EXECUTED
1347eb: 0f b7 55 86 movzwl -0x7a(%ebp),%edx <== NOT EXECUTED
1347ef: 09 d0 or %edx,%eax <== NOT EXECUTED
1347f1: 50 push %eax <== NOT EXECUTED
1347f2: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
1347f5: 56 push %esi <== NOT EXECUTED
1347f6: e8 25 f0 ff ff call 133820 <msdos_find_node_by_cluster_num_in_fat_file><== NOT EXECUTED
1347fb: 89 c3 mov %eax,%ebx <== NOT EXECUTED
dir_pos, dir_entry);
if (rc != RC_OK)
1347fd: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
134800: 85 c0 test %eax,%eax <== NOT EXECUTED
134802: 74 0d je 134811 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x207><== NOT EXECUTED
{
fat_file_close(mt_entry, fat_fd);
134804: 52 push %edx <== NOT EXECUTED
134805: 52 push %edx <== NOT EXECUTED
134806: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
134809: 56 push %esi <== NOT EXECUTED
13480a: e8 be 0d ff ff call 1255cd <fat_file_close> <== NOT EXECUTED
13480f: eb 0d jmp 13481e <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x214><== NOT EXECUTED
return rc;
}
rc = fat_file_close(mt_entry, fat_fd);
134811: 50 push %eax <== NOT EXECUTED
134812: 50 push %eax <== NOT EXECUTED
134813: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
134816: 56 push %esi <== NOT EXECUTED
134817: e8 b1 0d ff ff call 1255cd <fat_file_close> <== NOT EXECUTED
13481c: 89 c3 mov %eax,%ebx <== NOT EXECUTED
return rc;
13481e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
134821: 89 d8 mov %ebx,%eax <== NOT EXECUTED
134823: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
134826: 5b pop %ebx <== NOT EXECUTED
134827: 5e pop %esi <== NOT EXECUTED
134828: 5f pop %edi <== NOT EXECUTED
134829: c9 leave <== NOT EXECUTED
13482a: c3 ret <== NOT EXECUTED
0013482b <msdos_get_name_node>:
int name_len,
msdos_name_type_t name_type,
fat_dir_pos_t *dir_pos,
char *name_dir_entry
)
{
13482b: 55 push %ebp <== NOT EXECUTED
13482c: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13482e: 57 push %edi <== NOT EXECUTED
13482f: 56 push %esi <== NOT EXECUTED
134830: 53 push %ebx <== NOT EXECUTED
134831: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
134834: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
134837: 8b 4d 10 mov 0x10(%ebp),%ecx <== NOT EXECUTED
13483a: 8b 5d 1c mov 0x1c(%ebp),%ebx <== NOT EXECUTED
13483d: 8b 7d 20 mov 0x20(%ebp),%edi <== NOT EXECUTED
134840: 8a 45 0c mov 0xc(%ebp),%al <== NOT EXECUTED
134843: 88 45 e7 mov %al,-0x19(%ebp) <== NOT EXECUTED
int rc = RC_OK;
fat_file_fd_t *fat_fd = parent_loc->node_access;
uint32_t dotdot_cln = 0;
/* find name in fat-file which corresponds to the directory */
rc = msdos_find_name_in_fat_file(parent_loc->mt_entry, fat_fd,
134846: 57 push %edi <== NOT EXECUTED
134847: 53 push %ebx <== NOT EXECUTED
134848: ff 75 18 pushl 0x18(%ebp) <== NOT EXECUTED
13484b: ff 75 14 pushl 0x14(%ebp) <== NOT EXECUTED
13484e: 51 push %ecx <== NOT EXECUTED
13484f: 0f b6 c0 movzbl %al,%eax <== NOT EXECUTED
134852: 50 push %eax <== NOT EXECUTED
134853: ff 32 pushl (%edx) <== NOT EXECUTED
134855: ff 72 10 pushl 0x10(%edx) <== NOT EXECUTED
134858: 89 55 e0 mov %edx,-0x20(%ebp) <== NOT EXECUTED
13485b: 89 4d dc mov %ecx,-0x24(%ebp) <== NOT EXECUTED
13485e: e8 e0 f0 ff ff call 133943 <msdos_find_name_in_fat_file><== NOT EXECUTED
134863: 89 c6 mov %eax,%esi <== NOT EXECUTED
create_node, name, name_len, name_type,
dir_pos, name_dir_entry);
if ((rc != RC_OK) && (rc != MSDOS_NAME_NOT_FOUND_ERR))
134865: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
134868: 3d 01 7d 00 00 cmp $0x7d01,%eax <== NOT EXECUTED
13486d: 8b 55 e0 mov -0x20(%ebp),%edx <== NOT EXECUTED
134870: 8b 4d dc mov -0x24(%ebp),%ecx <== NOT EXECUTED
134873: 74 04 je 134879 <msdos_get_name_node+0x4e><== NOT EXECUTED
134875: 85 c0 test %eax,%eax <== NOT EXECUTED
134877: 75 74 jne 1348ed <msdos_get_name_node+0xc2><== NOT EXECUTED
return rc;
if (!create_node)
134879: 80 7d e7 00 cmpb $0x0,-0x19(%ebp) <== NOT EXECUTED
13487d: 75 6e jne 1348ed <msdos_get_name_node+0xc2><== NOT EXECUTED
{
/* if we search for valid name and name not found -> return */
if (rc == MSDOS_NAME_NOT_FOUND_ERR)
13487f: 81 fe 01 7d 00 00 cmp $0x7d01,%esi <== NOT EXECUTED
134885: 74 66 je 1348ed <msdos_get_name_node+0xc2><== NOT EXECUTED
* if we have deal with ".." - it is a special case :(((
*
* Really, we should return cluster num and offset not of ".." slot, but
* slot which correspondes to real directory name.
*/
if (rc == RC_OK)
134887: 85 f6 test %esi,%esi <== NOT EXECUTED
134889: 75 62 jne 1348ed <msdos_get_name_node+0xc2><== NOT EXECUTED
{
if (strncmp(name, "..", 2) == 0)
13488b: 50 push %eax <== NOT EXECUTED
13488c: 6a 02 push $0x2 <== NOT EXECUTED
13488e: 68 4c 90 15 00 push $0x15904c <== NOT EXECUTED
134893: 51 push %ecx <== NOT EXECUTED
134894: 89 55 e0 mov %edx,-0x20(%ebp) <== NOT EXECUTED
134897: e8 88 f4 00 00 call 143d24 <strncmp> <== NOT EXECUTED
13489c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13489f: 85 c0 test %eax,%eax <== NOT EXECUTED
1348a1: 8b 55 e0 mov -0x20(%ebp),%edx <== NOT EXECUTED
1348a4: 75 47 jne 1348ed <msdos_get_name_node+0xc2><== NOT EXECUTED
{
dotdot_cln = MSDOS_EXTRACT_CLUSTER_NUM((name_dir_entry));
1348a6: 0f b7 47 14 movzwl 0x14(%edi),%eax <== NOT EXECUTED
1348aa: c1 e0 10 shl $0x10,%eax <== NOT EXECUTED
1348ad: 0f b7 4f 1a movzwl 0x1a(%edi),%ecx <== NOT EXECUTED
/* are we right under root dir ? */
if (dotdot_cln == 0)
1348b1: 09 c8 or %ecx,%eax <== NOT EXECUTED
1348b3: 75 1d jne 1348d2 <msdos_get_name_node+0xa7><== NOT EXECUTED
fat_dir_pos_init(
fat_dir_pos_t *dir_pos
)
{
dir_pos->sname.cln = 0;
dir_pos->sname.ofs = 0;
1348b5: c7 43 04 00 00 00 00 movl $0x0,0x4(%ebx) <== NOT EXECUTED
dir_pos->lname.cln = FAT_FILE_SHORT_NAME;
1348bc: c7 43 08 ff ff ff ff movl $0xffffffff,0x8(%ebx) <== NOT EXECUTED
dir_pos->lname.ofs = FAT_FILE_SHORT_NAME;
1348c3: c7 43 0c ff ff ff ff movl $0xffffffff,0xc(%ebx) <== NOT EXECUTED
/*
* we can relax about first_char field - it never should be
* used for root dir
*/
fat_dir_pos_init(dir_pos);
dir_pos->sname.cln = FAT_ROOTDIR_CLUSTER_NUM;
1348ca: c7 03 01 00 00 00 movl $0x1,(%ebx) <== NOT EXECUTED
1348d0: eb 1b jmp 1348ed <msdos_get_name_node+0xc2><== NOT EXECUTED
}
else
{
rc =
msdos_get_dotdot_dir_info_cluster_num_and_offset(parent_loc->mt_entry,
1348d2: 89 7d 14 mov %edi,0x14(%ebp) <== NOT EXECUTED
1348d5: 89 5d 10 mov %ebx,0x10(%ebp) <== NOT EXECUTED
1348d8: 89 45 0c mov %eax,0xc(%ebp) <== NOT EXECUTED
1348db: 8b 42 10 mov 0x10(%edx),%eax <== NOT EXECUTED
1348de: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED
}
}
}
}
return rc;
}
1348e1: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1348e4: 5b pop %ebx <== NOT EXECUTED
1348e5: 5e pop %esi <== NOT EXECUTED
1348e6: 5f pop %edi <== NOT EXECUTED
1348e7: c9 leave <== NOT EXECUTED
dir_pos->sname.cln = FAT_ROOTDIR_CLUSTER_NUM;
}
else
{
rc =
msdos_get_dotdot_dir_info_cluster_num_and_offset(parent_loc->mt_entry,
1348e8: e9 1d fd ff ff jmp 13460a <msdos_get_dotdot_dir_info_cluster_num_and_offset><== NOT EXECUTED
}
}
}
}
return rc;
}
1348ed: 89 f0 mov %esi,%eax <== NOT EXECUTED
1348ef: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1348f2: 5b pop %ebx <== NOT EXECUTED
1348f3: 5e pop %esi <== NOT EXECUTED
1348f4: 5f pop %edi <== NOT EXECUTED
1348f5: c9 leave <== NOT EXECUTED
1348f6: c3 ret <== NOT EXECUTED
00134419 <msdos_get_token>:
msdos_token_types_t
msdos_get_token(const char *path,
int pathlen,
const char **ret_token,
int *ret_token_len)
{
134419: 55 push %ebp <== NOT EXECUTED
13441a: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13441c: 57 push %edi <== NOT EXECUTED
13441d: 56 push %esi <== NOT EXECUTED
13441e: 53 push %ebx <== NOT EXECUTED
13441f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
134422: 8b 7d 08 mov 0x8(%ebp),%edi <== NOT EXECUTED
134425: 8b 75 10 mov 0x10(%ebp),%esi <== NOT EXECUTED
msdos_token_types_t type = MSDOS_NAME;
int i = 0;
*ret_token = NULL;
134428: c7 06 00 00 00 00 movl $0x0,(%esi) <== NOT EXECUTED
*ret_token_len = 0;
13442e: 8b 45 14 mov 0x14(%ebp),%eax <== NOT EXECUTED
134431: c7 00 00 00 00 00 movl $0x0,(%eax) <== NOT EXECUTED
if (pathlen == 0)
134437: 31 db xor %ebx,%ebx <== NOT EXECUTED
134439: 31 c0 xor %eax,%eax <== NOT EXECUTED
13443b: 83 7d 0c 00 cmpl $0x0,0xc(%ebp) <== NOT EXECUTED
13443f: 75 18 jne 134459 <msdos_get_token+0x40> <== NOT EXECUTED
134441: eb 7b jmp 1344be <msdos_get_token+0xa5> <== NOT EXECUTED
/*
* Check for a separator.
*/
while (!msdos_is_separator(path[i]) && (i < pathlen))
{
if ( !msdos_is_valid_name_char(path[i]) )
134443: 0f be 04 1f movsbl (%edi,%ebx,1),%eax <== NOT EXECUTED
134447: e8 6e ff ff ff call 1343ba <msdos_is_valid_name_char><== NOT EXECUTED
13444c: 85 c0 test %eax,%eax <== NOT EXECUTED
13444e: 74 69 je 1344b9 <msdos_get_token+0xa0> <== NOT EXECUTED
return MSDOS_INVALID_TOKEN;
++i;
134450: 43 inc %ebx <== NOT EXECUTED
if ( i == MSDOS_NAME_MAX_LFN_WITH_DOT )
134451: 81 fb 04 01 00 00 cmp $0x104,%ebx <== NOT EXECUTED
134457: 74 60 je 1344b9 <msdos_get_token+0xa0> <== NOT EXECUTED
return MSDOS_NO_MORE_PATH;
/*
* Check for a separator.
*/
while (!msdos_is_separator(path[i]) && (i < pathlen))
134459: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13445c: 0f be 04 1f movsbl (%edi,%ebx,1),%eax <== NOT EXECUTED
134460: 50 push %eax <== NOT EXECUTED
134461: e8 a6 9f fd ff call 10e40c <rtems_filesystem_is_separator><== NOT EXECUTED
134466: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
134469: 85 c0 test %eax,%eax <== NOT EXECUTED
13446b: 75 05 jne 134472 <msdos_get_token+0x59> <== NOT EXECUTED
13446d: 3b 5d 0c cmp 0xc(%ebp),%ebx <== NOT EXECUTED
134470: 7c d1 jl 134443 <msdos_get_token+0x2a> <== NOT EXECUTED
++i;
if ( i == MSDOS_NAME_MAX_LFN_WITH_DOT )
return MSDOS_INVALID_TOKEN;
}
*ret_token = path;
134472: 89 3e mov %edi,(%esi) <== NOT EXECUTED
/*
* If it is just a separator then it is the current dir.
*/
if ( i == 0 )
134474: b8 03 00 00 00 mov $0x3,%eax <== NOT EXECUTED
134479: 85 db test %ebx,%ebx <== NOT EXECUTED
13447b: 75 0b jne 134488 <msdos_get_token+0x6f> <== NOT EXECUTED
{
if ( (*path != '\0') && pathlen )
13447d: 30 c0 xor %al,%al <== NOT EXECUTED
13447f: 80 3f 00 cmpb $0x0,(%edi) <== NOT EXECUTED
134482: 74 04 je 134488 <msdos_get_token+0x6f> <== NOT EXECUTED
134484: b3 01 mov $0x1,%bl <== NOT EXECUTED
134486: b0 01 mov $0x1,%al <== NOT EXECUTED
}
/*
* Set the token and token_len to the token start and length.
*/
*ret_token_len = i;
134488: 8b 55 14 mov 0x14(%ebp),%edx <== NOT EXECUTED
13448b: 89 1a mov %ebx,(%edx) <== NOT EXECUTED
/*
* If we copied something that was not a seperator see if
* it was a special name.
*/
if ( type == MSDOS_NAME )
13448d: 83 f8 03 cmp $0x3,%eax <== NOT EXECUTED
134490: 75 2c jne 1344be <msdos_get_token+0xa5> <== NOT EXECUTED
{
if ((i == 2) && ((*ret_token)[0] == '.') && ((*ret_token)[1] == '.'))
134492: 83 fb 02 cmp $0x2,%ebx <== NOT EXECUTED
134495: 75 11 jne 1344a8 <msdos_get_token+0x8f> <== NOT EXECUTED
134497: 8b 16 mov (%esi),%edx <== NOT EXECUTED
134499: 80 3a 2e cmpb $0x2e,(%edx) <== NOT EXECUTED
13449c: 75 20 jne 1344be <msdos_get_token+0xa5> <== NOT EXECUTED
13449e: 80 7a 01 2e cmpb $0x2e,0x1(%edx) <== NOT EXECUTED
1344a2: 75 1a jne 1344be <msdos_get_token+0xa5> <== NOT EXECUTED
1344a4: b0 02 mov $0x2,%al <== NOT EXECUTED
1344a6: eb 16 jmp 1344be <msdos_get_token+0xa5> <== NOT EXECUTED
{
type = MSDOS_UP_DIR;
return type;
}
if ((i == 1) && ((*ret_token)[0] == '.'))
1344a8: 4b dec %ebx <== NOT EXECUTED
1344a9: 75 13 jne 1344be <msdos_get_token+0xa5> <== NOT EXECUTED
1344ab: 8b 16 mov (%esi),%edx <== NOT EXECUTED
1344ad: 80 3a 2e cmpb $0x2e,(%edx) <== NOT EXECUTED
1344b0: 75 0c jne 1344be <msdos_get_token+0xa5> <== NOT EXECUTED
1344b2: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
1344b7: eb 05 jmp 1344be <msdos_get_token+0xa5> <== NOT EXECUTED
1344b9: b8 04 00 00 00 mov $0x4,%eax <== NOT EXECUTED
return type;
}
}
return type;
}
1344be: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1344c1: 5b pop %ebx <== NOT EXECUTED
1344c2: 5e pop %esi <== NOT EXECUTED
1344c3: 5f pop %edi <== NOT EXECUTED
1344c4: c9 leave <== NOT EXECUTED
1344c5: c3 ret <== NOT EXECUTED
00120b3c <msdos_initialize_support>:
rtems_filesystem_mount_table_entry_t *temp_mt_entry,
const rtems_filesystem_operations_table *op_table,
const rtems_filesystem_file_handlers_r *file_handlers,
const rtems_filesystem_file_handlers_r *directory_handlers
)
{
120b3c: 55 push %ebp <== NOT EXECUTED
120b3d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
120b3f: 57 push %edi <== NOT EXECUTED
120b40: 56 push %esi <== NOT EXECUTED
120b41: 53 push %ebx <== NOT EXECUTED
120b42: 83 ec 34 sub $0x34,%esp <== NOT EXECUTED
120b45: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
int rc = RC_OK;
rtems_status_code sc = RTEMS_SUCCESSFUL;
msdos_fs_info_t *fs_info = NULL;
fat_file_fd_t *fat_fd = NULL;
120b48: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) <== NOT EXECUTED
fat_dir_pos_t root_pos;
uint32_t cl_buf_size;
fs_info = (msdos_fs_info_t *)calloc(1, sizeof(msdos_fs_info_t));
120b4f: 68 9c 00 00 00 push $0x9c <== NOT EXECUTED
120b54: 6a 01 push $0x1 <== NOT EXECUTED
120b56: e8 71 be fe ff call 10c9cc <calloc> <== NOT EXECUTED
120b5b: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (!fs_info)
120b5d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
120b60: 85 c0 test %eax,%eax <== NOT EXECUTED
120b62: 75 13 jne 120b77 <msdos_initialize_support+0x3b><== NOT EXECUTED
rtems_set_errno_and_return_minus_one(ENOMEM);
120b64: e8 ab d4 01 00 call 13e014 <__errno> <== NOT EXECUTED
120b69: c7 00 0c 00 00 00 movl $0xc,(%eax) <== NOT EXECUTED
120b6f: 83 cf ff or $0xffffffff,%edi <== NOT EXECUTED
120b72: e9 81 01 00 00 jmp 120cf8 <msdos_initialize_support+0x1bc><== NOT EXECUTED
temp_mt_entry->fs_info = fs_info;
120b77: 89 46 34 mov %eax,0x34(%esi) <== NOT EXECUTED
rc = fat_init_volume_info(temp_mt_entry);
120b7a: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
120b7d: 56 push %esi <== NOT EXECUTED
120b7e: e8 6e 54 00 00 call 125ff1 <fat_init_volume_info> <== NOT EXECUTED
120b83: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc != RC_OK)
120b85: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
120b88: 85 c0 test %eax,%eax <== NOT EXECUTED
120b8a: 74 05 je 120b91 <msdos_initialize_support+0x55><== NOT EXECUTED
{
free(fs_info);
120b8c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
120b8f: eb 50 jmp 120be1 <msdos_initialize_support+0xa5><== NOT EXECUTED
return rc;
}
fs_info->file_handlers = file_handlers;
120b91: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
120b94: 89 83 90 00 00 00 mov %eax,0x90(%ebx) <== NOT EXECUTED
fs_info->directory_handlers = directory_handlers;
120b9a: 8b 45 14 mov 0x14(%ebp),%eax <== NOT EXECUTED
120b9d: 89 83 8c 00 00 00 mov %eax,0x8c(%ebx) <== NOT EXECUTED
fat_dir_pos_init(
fat_dir_pos_t *dir_pos
)
{
dir_pos->sname.cln = 0;
dir_pos->sname.ofs = 0;
120ba3: c7 45 d8 00 00 00 00 movl $0x0,-0x28(%ebp) <== NOT EXECUTED
dir_pos->lname.cln = FAT_FILE_SHORT_NAME;
120baa: c7 45 dc ff ff ff ff movl $0xffffffff,-0x24(%ebp) <== NOT EXECUTED
dir_pos->lname.ofs = FAT_FILE_SHORT_NAME;
120bb1: c7 45 e0 ff ff ff ff movl $0xffffffff,-0x20(%ebp) <== NOT EXECUTED
/*
* open fat-file which correspondes to root directory
* (so inode number 0x00000010 is always used for root directory)
*/
fat_dir_pos_init(&root_pos);
root_pos.sname.cln = FAT_ROOTDIR_CLUSTER_NUM;
120bb8: c7 45 d4 01 00 00 00 movl $0x1,-0x2c(%ebp) <== NOT EXECUTED
rc = fat_file_open(temp_mt_entry, &root_pos, &fat_fd);
120bbf: 57 push %edi <== NOT EXECUTED
120bc0: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
120bc3: 50 push %eax <== NOT EXECUTED
120bc4: 8d 45 d4 lea -0x2c(%ebp),%eax <== NOT EXECUTED
120bc7: 50 push %eax <== NOT EXECUTED
120bc8: 56 push %esi <== NOT EXECUTED
120bc9: e8 ae 4a 00 00 call 12567c <fat_file_open> <== NOT EXECUTED
120bce: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc != RC_OK)
120bd0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
120bd3: 85 c0 test %eax,%eax <== NOT EXECUTED
120bd5: 74 18 je 120bef <msdos_initialize_support+0xb3><== NOT EXECUTED
{
fat_shutdown_drive(temp_mt_entry);
120bd7: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
120bda: 56 push %esi <== NOT EXECUTED
120bdb: e8 9a 51 00 00 call 125d7a <fat_shutdown_drive> <== NOT EXECUTED
free(fs_info);
120be0: 5e pop %esi <== NOT EXECUTED
120be1: 53 push %ebx <== NOT EXECUTED
120be2: e8 b5 c2 fe ff call 10ce9c <free> <== NOT EXECUTED
return rc;
120be7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
120bea: e9 09 01 00 00 jmp 120cf8 <msdos_initialize_support+0x1bc><== NOT EXECUTED
}
/* again: unfortunately "fat-file" is just almost fat file :( */
fat_fd->fat_file_type = FAT_DIRECTORY;
120bef: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
120bf2: c7 40 10 01 00 00 00 movl $0x1,0x10(%eax) <== NOT EXECUTED
fat_fd->size_limit = MSDOS_MAX_DIR_LENGHT;
120bf9: c7 40 14 00 00 20 00 movl $0x200000,0x14(%eax) <== NOT EXECUTED
fat_fd->cln = fs_info->fat.vol.rdir_cl;
120c00: 8b 53 38 mov 0x38(%ebx),%edx <== NOT EXECUTED
120c03: 89 50 1c mov %edx,0x1c(%eax) <== NOT EXECUTED
fat_fd->map.file_cln = 0;
120c06: c7 40 34 00 00 00 00 movl $0x0,0x34(%eax) <== NOT EXECUTED
fat_fd->map.disk_cln = fat_fd->cln;
120c0d: 89 50 38 mov %edx,0x38(%eax) <== NOT EXECUTED
/* if we have FAT12/16 */
if ( fat_fd->cln == 0 )
120c10: 85 d2 test %edx,%edx <== NOT EXECUTED
120c12: 75 15 jne 120c29 <msdos_initialize_support+0xed><== NOT EXECUTED
{
fat_fd->fat_file_size = fs_info->fat.vol.rdir_size;
120c14: 8b 53 28 mov 0x28(%ebx),%edx <== NOT EXECUTED
120c17: 89 50 18 mov %edx,0x18(%eax) <== NOT EXECUTED
cl_buf_size = (fs_info->fat.vol.bpc > fs_info->fat.vol.rdir_size) ?
120c1a: 0f b7 43 06 movzwl 0x6(%ebx),%eax <== NOT EXECUTED
120c1e: 8b 53 28 mov 0x28(%ebx),%edx <== NOT EXECUTED
120c21: 39 d0 cmp %edx,%eax <== NOT EXECUTED
120c23: 73 28 jae 120c4d <msdos_initialize_support+0x111><== NOT EXECUTED
120c25: 89 d0 mov %edx,%eax <== NOT EXECUTED
120c27: eb 24 jmp 120c4d <msdos_initialize_support+0x111><== NOT EXECUTED
fs_info->fat.vol.bpc :
fs_info->fat.vol.rdir_size;
}
else
{
rc = fat_file_size(temp_mt_entry, fat_fd);
120c29: 51 push %ecx <== NOT EXECUTED
120c2a: 51 push %ecx <== NOT EXECUTED
120c2b: 50 push %eax <== NOT EXECUTED
120c2c: 56 push %esi <== NOT EXECUTED
120c2d: e8 a7 40 00 00 call 124cd9 <fat_file_size> <== NOT EXECUTED
120c32: 89 c7 mov %eax,%edi <== NOT EXECUTED
if ( rc != RC_OK )
120c34: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
120c37: 85 c0 test %eax,%eax <== NOT EXECUTED
120c39: 74 0e je 120c49 <msdos_initialize_support+0x10d><== NOT EXECUTED
{
fat_file_close(temp_mt_entry, fat_fd);
120c3b: 52 push %edx <== NOT EXECUTED
120c3c: 52 push %edx <== NOT EXECUTED
120c3d: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
120c40: 56 push %esi <== NOT EXECUTED
120c41: e8 87 49 00 00 call 1255cd <fat_file_close> <== NOT EXECUTED
fat_shutdown_drive(temp_mt_entry);
120c46: 58 pop %eax <== NOT EXECUTED
120c47: eb 91 jmp 120bda <msdos_initialize_support+0x9e><== NOT EXECUTED
free(fs_info);
return rc;
}
cl_buf_size = fs_info->fat.vol.bpc;
120c49: 0f b7 43 06 movzwl 0x6(%ebx),%eax <== NOT EXECUTED
}
fs_info->cl_buf = (uint8_t *)calloc(cl_buf_size, sizeof(char));
120c4d: 57 push %edi <== NOT EXECUTED
120c4e: 57 push %edi <== NOT EXECUTED
120c4f: 6a 01 push $0x1 <== NOT EXECUTED
120c51: 50 push %eax <== NOT EXECUTED
120c52: e8 75 bd fe ff call 10c9cc <calloc> <== NOT EXECUTED
120c57: 89 83 98 00 00 00 mov %eax,0x98(%ebx) <== NOT EXECUTED
if (fs_info->cl_buf == NULL)
120c5d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
120c60: 85 c0 test %eax,%eax <== NOT EXECUTED
120c62: 75 28 jne 120c8c <msdos_initialize_support+0x150><== NOT EXECUTED
{
fat_file_close(temp_mt_entry, fat_fd);
120c64: 51 push %ecx <== NOT EXECUTED
120c65: 51 push %ecx <== NOT EXECUTED
120c66: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
120c69: 56 push %esi <== NOT EXECUTED
120c6a: e8 5e 49 00 00 call 1255cd <fat_file_close> <== NOT EXECUTED
fat_shutdown_drive(temp_mt_entry);
120c6f: 89 34 24 mov %esi,(%esp) <== NOT EXECUTED
120c72: e8 03 51 00 00 call 125d7a <fat_shutdown_drive> <== NOT EXECUTED
free(fs_info);
120c77: 89 1c 24 mov %ebx,(%esp) <== NOT EXECUTED
120c7a: e8 1d c2 fe ff call 10ce9c <free> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(ENOMEM);
120c7f: e8 90 d3 01 00 call 13e014 <__errno> <== NOT EXECUTED
120c84: c7 00 0c 00 00 00 movl $0xc,(%eax) <== NOT EXECUTED
120c8a: eb 50 jmp 120cdc <msdos_initialize_support+0x1a0><== NOT EXECUTED
}
sc = rtems_semaphore_create(3,
120c8c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
120c8f: 8d 83 94 00 00 00 lea 0x94(%ebx),%eax <== NOT EXECUTED
120c95: 50 push %eax <== NOT EXECUTED
120c96: 6a 00 push $0x0 <== NOT EXECUTED
120c98: 6a 10 push $0x10 <== NOT EXECUTED
120c9a: 6a 01 push $0x1 <== NOT EXECUTED
120c9c: 6a 03 push $0x3 <== NOT EXECUTED
120c9e: e8 e5 fc fe ff call 110988 <rtems_semaphore_create><== NOT EXECUTED
1,
RTEMS_BINARY_SEMAPHORE | RTEMS_FIFO,
0,
&fs_info->vol_sema);
if (sc != RTEMS_SUCCESSFUL)
120ca3: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
120ca6: 85 c0 test %eax,%eax <== NOT EXECUTED
120ca8: 74 3a je 120ce4 <msdos_initialize_support+0x1a8><== NOT EXECUTED
{
fat_file_close(temp_mt_entry, fat_fd);
120caa: 52 push %edx <== NOT EXECUTED
120cab: 52 push %edx <== NOT EXECUTED
120cac: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
120caf: 56 push %esi <== NOT EXECUTED
120cb0: e8 18 49 00 00 call 1255cd <fat_file_close> <== NOT EXECUTED
fat_shutdown_drive(temp_mt_entry);
120cb5: 89 34 24 mov %esi,(%esp) <== NOT EXECUTED
120cb8: e8 bd 50 00 00 call 125d7a <fat_shutdown_drive> <== NOT EXECUTED
free(fs_info->cl_buf);
120cbd: 58 pop %eax <== NOT EXECUTED
120cbe: ff b3 98 00 00 00 pushl 0x98(%ebx) <== NOT EXECUTED
120cc4: e8 d3 c1 fe ff call 10ce9c <free> <== NOT EXECUTED
free(fs_info);
120cc9: 89 1c 24 mov %ebx,(%esp) <== NOT EXECUTED
120ccc: e8 cb c1 fe ff call 10ce9c <free> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EIO );
120cd1: e8 3e d3 01 00 call 13e014 <__errno> <== NOT EXECUTED
120cd6: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
120cdc: 83 cf ff or $0xffffffff,%edi <== NOT EXECUTED
120cdf: e9 03 ff ff ff jmp 120be7 <msdos_initialize_support+0xab><== NOT EXECUTED
}
temp_mt_entry->mt_fs_root.node_access = fat_fd;
120ce4: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
120ce7: 89 46 1c mov %eax,0x1c(%esi) <== NOT EXECUTED
temp_mt_entry->mt_fs_root.handlers = directory_handlers;
120cea: 8b 45 14 mov 0x14(%ebp),%eax <== NOT EXECUTED
120ced: 89 46 24 mov %eax,0x24(%esi) <== NOT EXECUTED
temp_mt_entry->mt_fs_root.ops = op_table;
120cf0: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
120cf3: 89 46 28 mov %eax,0x28(%esi) <== NOT EXECUTED
120cf6: 31 ff xor %edi,%edi <== NOT EXECUTED
return rc;
}
120cf8: 89 f8 mov %edi,%eax <== NOT EXECUTED
120cfa: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
120cfd: 5b pop %ebx <== NOT EXECUTED
120cfe: 5e pop %esi <== NOT EXECUTED
120cff: 5f pop %edi <== NOT EXECUTED
120d00: c9 leave <== NOT EXECUTED
120d01: c3 ret <== NOT EXECUTED
001343ba <msdos_is_valid_name_char>:
* MSDOS_NAME_LONG - Valid in a long name only.
*
*/
static msdos_name_type_t
msdos_is_valid_name_char(const char ch)
{
1343ba: 55 push %ebp <== NOT EXECUTED
1343bb: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1343bd: 56 push %esi <== NOT EXECUTED
1343be: 53 push %ebx <== NOT EXECUTED
1343bf: 88 c3 mov %al,%bl <== NOT EXECUTED
if (strchr(" +,;=[]", ch) != NULL)
1343c1: 0f be f0 movsbl %al,%esi <== NOT EXECUTED
1343c4: 51 push %ecx <== NOT EXECUTED
1343c5: 51 push %ecx <== NOT EXECUTED
1343c6: 56 push %esi <== NOT EXECUTED
1343c7: 68 a8 e1 15 00 push $0x15e1a8 <== NOT EXECUTED
1343cc: e8 ef f3 00 00 call 1437c0 <strchr> <== NOT EXECUTED
1343d1: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1343d4: 89 c2 mov %eax,%edx <== NOT EXECUTED
1343d6: b8 02 00 00 00 mov $0x2,%eax <== NOT EXECUTED
1343db: 85 d2 test %edx,%edx <== NOT EXECUTED
1343dd: 75 33 jne 134412 <msdos_is_valid_name_char+0x58><== NOT EXECUTED
return MSDOS_NAME_LONG;
if ((ch == '.') || isalnum((unsigned char)ch) ||
1343df: 80 fb 2e cmp $0x2e,%bl <== NOT EXECUTED
1343e2: 74 29 je 13440d <msdos_is_valid_name_char+0x53><== NOT EXECUTED
1343e4: 0f b6 db movzbl %bl,%ebx <== NOT EXECUTED
1343e7: a1 c0 4e 16 00 mov 0x164ec0,%eax <== NOT EXECUTED
1343ec: f6 44 18 01 07 testb $0x7,0x1(%eax,%ebx,1) <== NOT EXECUTED
1343f1: 75 1a jne 13440d <msdos_is_valid_name_char+0x53><== NOT EXECUTED
(strchr("$%'-_@~`!(){}^#&", ch) != NULL))
1343f3: 52 push %edx <== NOT EXECUTED
1343f4: 52 push %edx <== NOT EXECUTED
1343f5: 56 push %esi <== NOT EXECUTED
1343f6: 68 b0 e1 15 00 push $0x15e1b0 <== NOT EXECUTED
1343fb: e8 c0 f3 00 00 call 1437c0 <strchr> <== NOT EXECUTED
134400: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
134403: 85 c0 test %eax,%eax <== NOT EXECUTED
134405: 0f 95 c0 setne %al <== NOT EXECUTED
134408: 0f b6 c0 movzbl %al,%eax <== NOT EXECUTED
13440b: eb 05 jmp 134412 <msdos_is_valid_name_char+0x58><== NOT EXECUTED
13440d: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
return MSDOS_NAME_SHORT;
return MSDOS_NAME_INVALID;
}
134412: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
134415: 5b pop %ebx <== NOT EXECUTED
134416: 5e pop %esi <== NOT EXECUTED
134417: c9 leave <== NOT EXECUTED
134418: c3 ret <== NOT EXECUTED
001344c6 <msdos_long_to_short>:
*
*/
#define MSDOS_L2S_PRINT 0
msdos_name_type_t
msdos_long_to_short(const char *lfn, int lfn_len, char* sfn, int sfn_len)
{
1344c6: 55 push %ebp <== NOT EXECUTED
1344c7: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1344c9: 57 push %edi <== NOT EXECUTED
1344ca: 56 push %esi <== NOT EXECUTED
1344cb: 53 push %ebx <== NOT EXECUTED
1344cc: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
1344cf: 8b 5d 10 mov 0x10(%ebp),%ebx <== NOT EXECUTED
1344d2: 8b 4d 14 mov 0x14(%ebp),%ecx <== NOT EXECUTED
int i;
/*
* Fill with spaces. This is how a short directory entry is padded.
*/
memset (sfn, ' ', sfn_len);
1344d5: b0 20 mov $0x20,%al <== NOT EXECUTED
1344d7: 89 df mov %ebx,%edi <== NOT EXECUTED
1344d9: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED
/*
* Handle '.' and '..' specially.
*/
if ((lfn[0] == '.') && (lfn_len == 1))
1344db: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
1344de: 80 38 2e cmpb $0x2e,(%eax) <== NOT EXECUTED
1344e1: 0f 94 c0 sete %al <== NOT EXECUTED
1344e4: 83 7d 0c 01 cmpl $0x1,0xc(%ebp) <== NOT EXECUTED
1344e8: 75 06 jne 1344f0 <msdos_long_to_short+0x2a><== NOT EXECUTED
1344ea: 84 c0 test %al,%al <== NOT EXECUTED
1344ec: 74 3d je 13452b <msdos_long_to_short+0x65><== NOT EXECUTED
1344ee: eb 17 jmp 134507 <msdos_long_to_short+0x41><== NOT EXECUTED
printf ("MSDOS_L2S: SHORT[1]: lfn:'%s' SFN:'%s'\n", lfn, sfn);
#endif
return MSDOS_NAME_SHORT;
}
if ((lfn[0] == '.') && (lfn[1] == '.') && (lfn_len == 2))
1344f0: 84 c0 test %al,%al <== NOT EXECUTED
1344f2: 74 37 je 13452b <msdos_long_to_short+0x65><== NOT EXECUTED
1344f4: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
1344f7: 80 79 01 2e cmpb $0x2e,0x1(%ecx) <== NOT EXECUTED
1344fb: 75 2e jne 13452b <msdos_long_to_short+0x65><== NOT EXECUTED
1344fd: 83 7d 0c 02 cmpl $0x2,0xc(%ebp) <== NOT EXECUTED
134501: 75 28 jne 13452b <msdos_long_to_short+0x65><== NOT EXECUTED
{
sfn[0] = sfn[1] = '.';
134503: c6 43 01 2e movb $0x2e,0x1(%ebx) <== NOT EXECUTED
134507: c6 03 2e movb $0x2e,(%ebx) <== NOT EXECUTED
13450a: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
#if MSDOS_L2S_PRINT
printf ("MSDOS_L2S: SHORT[2]: lfn:'%s' SFN:'%s'\n", lfn, sfn);
#endif
return MSDOS_NAME_SHORT;
13450f: e9 e0 00 00 00 jmp 1345f4 <msdos_long_to_short+0x12e><== NOT EXECUTED
/*
* Filenames with only blanks and dots are not allowed!
*/
for (i = 0; i < lfn_len; i++)
if ((lfn[i] != ' ') && (lfn[i] != '.'))
134514: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
134517: 8a 14 01 mov (%ecx,%eax,1),%dl <== NOT EXECUTED
13451a: 80 fa 2e cmp $0x2e,%dl <== NOT EXECUTED
13451d: 74 09 je 134528 <msdos_long_to_short+0x62><== NOT EXECUTED
13451f: 80 fa 20 cmp $0x20,%dl <== NOT EXECUTED
134522: 0f 85 86 00 00 00 jne 1345ae <msdos_long_to_short+0xe8><== NOT EXECUTED
}
/*
* Filenames with only blanks and dots are not allowed!
*/
for (i = 0; i < lfn_len; i++)
134528: 40 inc %eax <== NOT EXECUTED
134529: eb 02 jmp 13452d <msdos_long_to_short+0x67><== NOT EXECUTED
13452b: 31 c0 xor %eax,%eax <== NOT EXECUTED
13452d: 3b 45 0c cmp 0xc(%ebp),%eax <== NOT EXECUTED
134530: 7c e2 jl 134514 <msdos_long_to_short+0x4e><== NOT EXECUTED
if ((lfn[i] != ' ') && (lfn[i] != '.'))
break;
if (i == lfn_len)
134532: 75 7a jne 1345ae <msdos_long_to_short+0xe8><== NOT EXECUTED
134534: 31 c0 xor %eax,%eax <== NOT EXECUTED
134536: e9 b9 00 00 00 jmp 1345f4 <msdos_long_to_short+0x12e><== NOT EXECUTED
int count = 0;
while (*name && (count < name_len))
{
bool is_dot = *name == '.';
msdos_name_type_t type = msdos_is_valid_name_char(*name);
13453b: 0f be c2 movsbl %dl,%eax <== NOT EXECUTED
13453e: 88 55 e0 mov %dl,-0x20(%ebp) <== NOT EXECUTED
134541: 89 4d dc mov %ecx,-0x24(%ebp) <== NOT EXECUTED
134544: e8 71 fe ff ff call 1343ba <msdos_is_valid_name_char><== NOT EXECUTED
134549: 89 c6 mov %eax,%esi <== NOT EXECUTED
#if MSDOS_NAME_TYPE_PRINT
printf ("MSDOS_NAME_TYPE: c:%02x type:%d\n", *name, type);
#endif
if ((type == MSDOS_NAME_INVALID) || (type == MSDOS_NAME_LONG))
13454b: 83 f8 02 cmp $0x2,%eax <== NOT EXECUTED
13454e: 8a 55 e0 mov -0x20(%ebp),%dl <== NOT EXECUTED
134551: 8b 4d dc mov -0x24(%ebp),%ecx <== NOT EXECUTED
134554: 0f 84 82 00 00 00 je 1345dc <msdos_long_to_short+0x116><== NOT EXECUTED
13455a: 85 c0 test %eax,%eax <== NOT EXECUTED
13455c: 74 7e je 1345dc <msdos_long_to_short+0x116><== NOT EXECUTED
int dot_at = -1;
int count = 0;
while (*name && (count < name_len))
{
bool is_dot = *name == '.';
13455e: 80 fa 2e cmp $0x2e,%dl <== NOT EXECUTED
134561: 0f 94 c0 sete %al <== NOT EXECUTED
#endif
if ((type == MSDOS_NAME_INVALID) || (type == MSDOS_NAME_LONG))
return type;
if (dot_at >= 0)
134564: 83 f9 ff cmp $0xffffffff,%ecx <== NOT EXECUTED
134567: 74 16 je 13457f <msdos_long_to_short+0xb9><== NOT EXECUTED
{
if (is_dot || ((count - dot_at) > 3))
134569: 84 c0 test %al,%al <== NOT EXECUTED
13456b: 0f 85 92 00 00 00 jne 134603 <msdos_long_to_short+0x13d><== NOT EXECUTED
134571: 89 f8 mov %edi,%eax <== NOT EXECUTED
134573: 29 c8 sub %ecx,%eax <== NOT EXECUTED
134575: 83 f8 03 cmp $0x3,%eax <== NOT EXECUTED
134578: 7e 14 jle 13458e <msdos_long_to_short+0xc8><== NOT EXECUTED
13457a: e9 84 00 00 00 jmp 134603 <msdos_long_to_short+0x13d><== NOT EXECUTED
return MSDOS_NAME_LONG;
}
}
else
{
if (count == 8 && !is_dot)
13457f: 83 ff 08 cmp $0x8,%edi <== NOT EXECUTED
134582: 75 06 jne 13458a <msdos_long_to_short+0xc4><== NOT EXECUTED
134584: 84 c0 test %al,%al <== NOT EXECUTED
134586: 75 21 jne 1345a9 <msdos_long_to_short+0xe3><== NOT EXECUTED
134588: eb 79 jmp 134603 <msdos_long_to_short+0x13d><== NOT EXECUTED
#endif
return MSDOS_NAME_LONG;
}
}
if (is_dot)
13458a: 84 c0 test %al,%al <== NOT EXECUTED
13458c: 75 1b jne 1345a9 <msdos_long_to_short+0xe3><== NOT EXECUTED
dot_at = count;
else if ((*name >= 'A') && (*name <= 'Z'))
13458e: 8d 42 bf lea -0x41(%edx),%eax <== NOT EXECUTED
134591: 3c 19 cmp $0x19,%al <== NOT EXECUTED
134593: 77 06 ja 13459b <msdos_long_to_short+0xd5><== NOT EXECUTED
134595: c6 45 e6 01 movb $0x1,-0x1a(%ebp) <== NOT EXECUTED
134599: eb 10 jmp 1345ab <msdos_long_to_short+0xe5><== NOT EXECUTED
uppercase = true;
else if ((*name >= 'a') && (*name <= 'z'))
13459b: 83 ea 61 sub $0x61,%edx <== NOT EXECUTED
13459e: 80 fa 19 cmp $0x19,%dl <== NOT EXECUTED
1345a1: 77 08 ja 1345ab <msdos_long_to_short+0xe5><== NOT EXECUTED
1345a3: c6 45 e7 01 movb $0x1,-0x19(%ebp) <== NOT EXECUTED
1345a7: eb 02 jmp 1345ab <msdos_long_to_short+0xe5><== NOT EXECUTED
1345a9: 89 f9 mov %edi,%ecx <== NOT EXECUTED
lowercase = true;
count++;
1345ab: 47 inc %edi <== NOT EXECUTED
1345ac: eb 0d jmp 1345bb <msdos_long_to_short+0xf5><== NOT EXECUTED
1345ae: 31 ff xor %edi,%edi <== NOT EXECUTED
1345b0: 83 c9 ff or $0xffffffff,%ecx <== NOT EXECUTED
1345b3: c6 45 e6 00 movb $0x0,-0x1a(%ebp) <== NOT EXECUTED
1345b7: c6 45 e7 00 movb $0x0,-0x19(%ebp) <== NOT EXECUTED
bool lowercase = false;
bool uppercase = false;
int dot_at = -1;
int count = 0;
while (*name && (count < name_len))
1345bb: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
1345be: 8a 14 38 mov (%eax,%edi,1),%dl <== NOT EXECUTED
1345c1: 3b 7d 0c cmp 0xc(%ebp),%edi <== NOT EXECUTED
1345c4: 7d 08 jge 1345ce <msdos_long_to_short+0x108><== NOT EXECUTED
1345c6: 84 d2 test %dl,%dl <== NOT EXECUTED
1345c8: 0f 85 6d ff ff ff jne 13453b <msdos_long_to_short+0x75><== NOT EXECUTED
count++;
name++;
}
if (lowercase && uppercase)
1345ce: 80 7d e7 00 cmpb $0x0,-0x19(%ebp) <== NOT EXECUTED
1345d2: 74 28 je 1345fc <msdos_long_to_short+0x136><== NOT EXECUTED
1345d4: 80 7d e6 00 cmpb $0x0,-0x1a(%ebp) <== NOT EXECUTED
1345d8: 75 29 jne 134603 <msdos_long_to_short+0x13d><== NOT EXECUTED
1345da: eb 20 jmp 1345fc <msdos_long_to_short+0x136><== NOT EXECUTED
1345dc: 89 f0 mov %esi,%eax <== NOT EXECUTED
* Is this a short name ?
*/
type = msdos_name_type (lfn, lfn_len);
if (type == MSDOS_NAME_INVALID)
1345de: 85 f6 test %esi,%esi <== NOT EXECUTED
1345e0: 74 12 je 1345f4 <msdos_long_to_short+0x12e><== NOT EXECUTED
printf ("MSDOS_L2S: INVALID[2]: lfn:'%s' SFN:'%s'\n", lfn, sfn);
#endif
return MSDOS_NAME_INVALID;
}
msdos_filename_unix2dos (lfn, lfn_len, sfn);
1345e2: 57 push %edi <== NOT EXECUTED
1345e3: 53 push %ebx <== NOT EXECUTED
1345e4: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
1345e7: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
1345ea: e8 66 83 00 00 call 13c955 <msdos_filename_unix2dos><== NOT EXECUTED
1345ef: 89 f0 mov %esi,%eax <== NOT EXECUTED
#if MSDOS_L2S_PRINT
printf ("MSDOS_L2S: TYPE:%d lfn:'%s' SFN:'%s'\n", type, lfn, sfn);
#endif
return type;
1345f1: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
1345f4: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1345f7: 5b pop %ebx <== NOT EXECUTED
1345f8: 5e pop %esi <== NOT EXECUTED
1345f9: 5f pop %edi <== NOT EXECUTED
1345fa: c9 leave <== NOT EXECUTED
1345fb: c3 ret <== NOT EXECUTED
msdos_filename_unix2dos (lfn, lfn_len, sfn);
#if MSDOS_L2S_PRINT
printf ("MSDOS_L2S: TYPE:%d lfn:'%s' SFN:'%s'\n", type, lfn, sfn);
#endif
return type;
1345fc: be 01 00 00 00 mov $0x1,%esi <== NOT EXECUTED
134601: eb df jmp 1345e2 <msdos_long_to_short+0x11c><== NOT EXECUTED
134603: be 02 00 00 00 mov $0x2,%esi <== NOT EXECUTED
134608: eb d8 jmp 1345e2 <msdos_long_to_short+0x11c><== NOT EXECUTED
00120d04 <msdos_mknod>:
const char *name,
mode_t mode,
dev_t dev,
rtems_filesystem_location_info_t *pathloc
)
{
120d04: 55 push %ebp <== NOT EXECUTED
120d05: 89 e5 mov %esp,%ebp <== NOT EXECUTED
120d07: 57 push %edi <== NOT EXECUTED
120d08: 56 push %esi <== NOT EXECUTED
120d09: 53 push %ebx <== NOT EXECUTED
120d0a: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
120d0d: 8b 75 18 mov 0x18(%ebp),%esi <== NOT EXECUTED
int rc = RC_OK;
rtems_status_code sc = RTEMS_SUCCESSFUL;
msdos_fs_info_t *fs_info = pathloc->mt_entry->fs_info;
120d10: 8b 46 10 mov 0x10(%esi),%eax <== NOT EXECUTED
120d13: 8b 40 34 mov 0x34(%eax),%eax <== NOT EXECUTED
120d16: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
msdos_token_types_t type = 0;
/*
* Figure out what type of msdos node this is.
*/
if (S_ISDIR(mode))
120d19: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
120d1c: 25 00 f0 00 00 and $0xf000,%eax <== NOT EXECUTED
120d21: 3d 00 40 00 00 cmp $0x4000,%eax <== NOT EXECUTED
120d26: 74 19 je 120d41 <msdos_mknod+0x3d> <== NOT EXECUTED
{
type = MSDOS_DIRECTORY;
}
else if (S_ISREG(mode))
120d28: bb 05 00 00 00 mov $0x5,%ebx <== NOT EXECUTED
120d2d: 3d 00 80 00 00 cmp $0x8000,%eax <== NOT EXECUTED
120d32: 74 12 je 120d46 <msdos_mknod+0x42> <== NOT EXECUTED
{
type = MSDOS_REGULAR_FILE;
}
else
rtems_set_errno_and_return_minus_one(EINVAL);
120d34: e8 db d2 01 00 call 13e014 <__errno> <== NOT EXECUTED
120d39: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
120d3f: eb 2a jmp 120d6b <msdos_mknod+0x67> <== NOT EXECUTED
120d41: bb 01 00 00 00 mov $0x1,%ebx <== NOT EXECUTED
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
120d46: 52 push %edx <== NOT EXECUTED
120d47: 6a 00 push $0x0 <== NOT EXECUTED
120d49: 6a 00 push $0x0 <== NOT EXECUTED
120d4b: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
120d4e: ff b0 94 00 00 00 pushl 0x94(%eax) <== NOT EXECUTED
120d54: e8 af fe fe ff call 110c08 <rtems_semaphore_obtain><== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
120d59: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
120d5c: 85 c0 test %eax,%eax <== NOT EXECUTED
120d5e: 74 10 je 120d70 <msdos_mknod+0x6c> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
120d60: e8 af d2 01 00 call 13e014 <__errno> <== NOT EXECUTED
120d65: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
120d6b: 83 cb ff or $0xffffffff,%ebx <== NOT EXECUTED
120d6e: eb 35 jmp 120da5 <msdos_mknod+0xa1> <== NOT EXECUTED
/* Create an MSDOS node */
rc = msdos_creat_node(pathloc, type, name, strlen(name), mode, NULL);
120d70: 31 c0 xor %eax,%eax <== NOT EXECUTED
120d72: 83 c9 ff or $0xffffffff,%ecx <== NOT EXECUTED
120d75: 8b 7d 08 mov 0x8(%ebp),%edi <== NOT EXECUTED
120d78: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED
120d7a: f7 d1 not %ecx <== NOT EXECUTED
120d7c: 49 dec %ecx <== NOT EXECUTED
120d7d: 50 push %eax <== NOT EXECUTED
120d7e: 50 push %eax <== NOT EXECUTED
120d7f: 6a 00 push $0x0 <== NOT EXECUTED
120d81: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
120d84: 51 push %ecx <== NOT EXECUTED
120d85: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
120d88: 53 push %ebx <== NOT EXECUTED
120d89: 56 push %esi <== NOT EXECUTED
120d8a: e8 a9 1b 01 00 call 132938 <msdos_creat_node> <== NOT EXECUTED
120d8f: 89 c3 mov %eax,%ebx <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
120d91: 83 c4 14 add $0x14,%esp <== NOT EXECUTED
120d94: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
120d97: ff b0 94 00 00 00 pushl 0x94(%eax) <== NOT EXECUTED
120d9d: e8 52 ff fe ff call 110cf4 <rtems_semaphore_release><== NOT EXECUTED
return rc;
120da2: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
120da5: 89 d8 mov %ebx,%eax <== NOT EXECUTED
120da7: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
120daa: 5b pop %ebx <== NOT EXECUTED
120dab: 5e pop %esi <== NOT EXECUTED
120dac: 5f pop %edi <== NOT EXECUTED
120dad: c9 leave <== NOT EXECUTED
120dae: c3 ret <== NOT EXECUTED
00120db0 <msdos_node_type>:
* node type
*
*/
rtems_filesystem_node_types_t
msdos_node_type(rtems_filesystem_location_info_t *pathloc)
{
120db0: 55 push %ebp <== NOT EXECUTED
120db1: 89 e5 mov %esp,%ebp <== NOT EXECUTED
120db3: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
120db6: 8b 00 mov (%eax),%eax <== NOT EXECUTED
120db8: 8b 40 10 mov 0x10(%eax),%eax <== NOT EXECUTED
* call
*/
fat_fd = pathloc->node_access;
return fat_fd->fat_file_type;
}
120dbb: c9 leave <== NOT EXECUTED
120dbc: c3 ret <== NOT EXECUTED
00120dc0 <msdos_rename>:
int
msdos_rename(rtems_filesystem_location_info_t *old_parent_loc,
rtems_filesystem_location_info_t *old_loc,
rtems_filesystem_location_info_t *new_parent_loc,
const char *new_name)
{
120dc0: 55 push %ebp <== NOT EXECUTED
120dc1: 89 e5 mov %esp,%ebp <== NOT EXECUTED
120dc3: 57 push %edi <== NOT EXECUTED
120dc4: 56 push %esi <== NOT EXECUTED
120dc5: 53 push %ebx <== NOT EXECUTED
120dc6: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED
120dc9: 8b 75 14 mov 0x14(%ebp),%esi <== NOT EXECUTED
int rc = RC_OK;
rtems_status_code sc = RTEMS_SUCCESSFUL;
msdos_fs_info_t *fs_info = new_parent_loc->mt_entry->fs_info;
120dcc: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
120dcf: 8b 42 10 mov 0x10(%edx),%eax <== NOT EXECUTED
120dd2: 8b 58 34 mov 0x34(%eax),%ebx <== NOT EXECUTED
fat_file_fd_t *old_fat_fd = old_loc->node_access;
120dd5: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
120dd8: 8b 00 mov (%eax),%eax <== NOT EXECUTED
120dda: 89 45 d4 mov %eax,-0x2c(%ebp) <== NOT EXECUTED
int len;
/*
* check spelling and format new node name
*/
if (MSDOS_NAME != msdos_get_token(new_name, strlen(new_name), &token, &len)) {
120ddd: 31 c0 xor %eax,%eax <== NOT EXECUTED
120ddf: 83 c9 ff or $0xffffffff,%ecx <== NOT EXECUTED
120de2: 89 f7 mov %esi,%edi <== NOT EXECUTED
120de4: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED
120de6: f7 d1 not %ecx <== NOT EXECUTED
120de8: 49 dec %ecx <== NOT EXECUTED
120de9: 8d 45 e0 lea -0x20(%ebp),%eax <== NOT EXECUTED
120dec: 50 push %eax <== NOT EXECUTED
120ded: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
120df0: 50 push %eax <== NOT EXECUTED
120df1: 51 push %ecx <== NOT EXECUTED
120df2: 56 push %esi <== NOT EXECUTED
120df3: e8 21 36 01 00 call 134419 <msdos_get_token> <== NOT EXECUTED
120df8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
120dfb: 83 f8 03 cmp $0x3,%eax <== NOT EXECUTED
120dfe: 74 0d je 120e0d <msdos_rename+0x4d> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(ENAMETOOLONG);
120e00: e8 0f d2 01 00 call 13e014 <__errno> <== NOT EXECUTED
120e05: c7 00 5b 00 00 00 movl $0x5b,(%eax) <== NOT EXECUTED
120e0b: eb 22 jmp 120e2f <msdos_rename+0x6f> <== NOT EXECUTED
}
/*
* lock volume
*/
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
120e0d: 57 push %edi <== NOT EXECUTED
120e0e: 6a 00 push $0x0 <== NOT EXECUTED
120e10: 6a 00 push $0x0 <== NOT EXECUTED
120e12: ff b3 94 00 00 00 pushl 0x94(%ebx) <== NOT EXECUTED
120e18: e8 eb fd fe ff call 110c08 <rtems_semaphore_obtain><== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
120e1d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
120e20: 85 c0 test %eax,%eax <== NOT EXECUTED
120e22: 74 10 je 120e34 <msdos_rename+0x74> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
120e24: e8 eb d1 01 00 call 13e014 <__errno> <== NOT EXECUTED
120e29: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
120e2f: 83 ce ff or $0xffffffff,%esi <== NOT EXECUTED
120e32: eb 4f jmp 120e83 <msdos_rename+0xc3> <== NOT EXECUTED
/*
* create new directory entry as "hard link", copying relevant info from
* existing file
*/
rc = msdos_creat_node(new_parent_loc,
120e34: 51 push %ecx <== NOT EXECUTED
120e35: 51 push %ecx <== NOT EXECUTED
120e36: ff 75 d4 pushl -0x2c(%ebp) <== NOT EXECUTED
120e39: 68 00 80 00 00 push $0x8000 <== NOT EXECUTED
120e3e: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
120e41: 56 push %esi <== NOT EXECUTED
120e42: 6a 03 push $0x3 <== NOT EXECUTED
120e44: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
120e47: e8 ec 1a 01 00 call 132938 <msdos_creat_node> <== NOT EXECUTED
120e4c: 89 c6 mov %eax,%esi <== NOT EXECUTED
MSDOS_HARD_LINK,new_name,len,S_IFREG,
old_fat_fd);
if (rc != RC_OK)
120e4e: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
120e51: 85 c0 test %eax,%eax <== NOT EXECUTED
120e53: 74 05 je 120e5a <msdos_rename+0x9a> <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
120e55: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
120e58: eb 1b jmp 120e75 <msdos_rename+0xb5> <== NOT EXECUTED
}
/*
* mark file removed
*/
rc = msdos_set_first_char4file_name(old_loc->mt_entry,
120e5a: 52 push %edx <== NOT EXECUTED
120e5b: 68 e5 00 00 00 push $0xe5 <== NOT EXECUTED
120e60: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED
120e63: 83 c0 20 add $0x20,%eax <== NOT EXECUTED
120e66: 50 push %eax <== NOT EXECUTED
120e67: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
120e6a: ff 72 10 pushl 0x10(%edx) <== NOT EXECUTED
120e6d: e8 ae 33 01 00 call 134220 <msdos_set_first_char4file_name><== NOT EXECUTED
120e72: 89 c6 mov %eax,%esi <== NOT EXECUTED
&old_fat_fd->dir_pos,
MSDOS_THIS_DIR_ENTRY_EMPTY);
rtems_semaphore_release(fs_info->vol_sema);
120e74: 58 pop %eax <== NOT EXECUTED
120e75: ff b3 94 00 00 00 pushl 0x94(%ebx) <== NOT EXECUTED
120e7b: e8 74 fe fe ff call 110cf4 <rtems_semaphore_release><== NOT EXECUTED
return rc;
120e80: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
120e83: 89 f0 mov %esi,%eax <== NOT EXECUTED
120e85: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
120e88: 5b pop %ebx <== NOT EXECUTED
120e89: 5e pop %esi <== NOT EXECUTED
120e8a: 5f pop %edi <== NOT EXECUTED
120e8b: c9 leave <== NOT EXECUTED
120e8c: c3 ret <== NOT EXECUTED
00134318 <msdos_set_dir_wrt_time_and_date>:
int
msdos_set_dir_wrt_time_and_date(
rtems_filesystem_mount_table_entry_t *mt_entry,
fat_file_fd_t *fat_fd
)
{
134318: 55 push %ebp <== NOT EXECUTED
134319: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13431b: 57 push %edi <== NOT EXECUTED
13431c: 56 push %esi <== NOT EXECUTED
13431d: 53 push %ebx <== NOT EXECUTED
13431e: 83 ec 30 sub $0x30,%esp <== NOT EXECUTED
134321: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
134324: 8b 75 0c mov 0xc(%ebp),%esi <== NOT EXECUTED
ssize_t ret1 = 0, ret2 = 0;
msdos_fs_info_t *fs_info = mt_entry->fs_info;
134327: 8b 7b 34 mov 0x34(%ebx),%edi <== NOT EXECUTED
uint16_t time_val;
uint16_t date;
uint32_t sec = 0;
uint32_t byte = 0;
msdos_date_unix2dos(fat_fd->mtime, &date, &time_val);
13432a: 8d 45 e6 lea -0x1a(%ebp),%eax <== NOT EXECUTED
13432d: 50 push %eax <== NOT EXECUTED
13432e: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
134331: 50 push %eax <== NOT EXECUTED
134332: ff 76 40 pushl 0x40(%esi) <== NOT EXECUTED
134335: e8 62 84 00 00 call 13c79c <msdos_date_unix2dos> <== NOT EXECUTED
/*
* calculate input for _fat_block_write: convert (cluster num, offset) to
* (sector num, new offset)
*/
sec = fat_cluster_num_to_sector_num(mt_entry, fat_fd->dir_pos.sname.cln);
13433a: 8b 46 20 mov 0x20(%esi),%eax <== NOT EXECUTED
fat_cluster_num_to_sector_num(
rtems_filesystem_mount_table_entry_t *mt_entry,
uint32_t cln
)
{
register fat_fs_info_t *fs_info = mt_entry->fs_info;
13433d: 8b 53 34 mov 0x34(%ebx),%edx <== NOT EXECUTED
if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) )
134340: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
134343: 85 c0 test %eax,%eax <== NOT EXECUTED
134345: 75 0b jne 134352 <msdos_set_dir_wrt_time_and_date+0x3a><== NOT EXECUTED
134347: f6 42 0a 03 testb $0x3,0xa(%edx) <== NOT EXECUTED
13434b: 74 05 je 134352 <msdos_set_dir_wrt_time_and_date+0x3a><== NOT EXECUTED
return fs_info->vol.rdir_loc;
13434d: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED
134350: eb 0c jmp 13435e <msdos_set_dir_wrt_time_and_date+0x46><== NOT EXECUTED
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
134352: 83 e8 02 sub $0x2,%eax <== NOT EXECUTED
134355: 0f b6 4a 05 movzbl 0x5(%edx),%ecx <== NOT EXECUTED
134359: d3 e0 shl %cl,%eax <== NOT EXECUTED
13435b: 03 42 30 add 0x30(%edx),%eax <== NOT EXECUTED
sec += (fat_fd->dir_pos.sname.ofs >> fs_info->fat.vol.sec_log2);
13435e: 8b 56 24 mov 0x24(%esi),%edx <== NOT EXECUTED
134361: 0f b6 4f 02 movzbl 0x2(%edi),%ecx <== NOT EXECUTED
134365: 89 d6 mov %edx,%esi <== NOT EXECUTED
134367: d3 ee shr %cl,%esi <== NOT EXECUTED
134369: 8d 34 30 lea (%eax,%esi,1),%esi <== NOT EXECUTED
/* byte points to start of 32bytes structure */
byte = fat_fd->dir_pos.sname.ofs & (fs_info->fat.vol.bps - 1);
13436c: 0f b7 3f movzwl (%edi),%edi <== NOT EXECUTED
13436f: 4f dec %edi <== NOT EXECUTED
134370: 21 d7 and %edx,%edi <== NOT EXECUTED
time_val = CT_LE_W(time_val);
ret1 = _fat_block_write(mt_entry, sec, byte + MSDOS_FILE_WTIME_OFFSET,
134372: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
134375: 8d 45 e6 lea -0x1a(%ebp),%eax <== NOT EXECUTED
134378: 50 push %eax <== NOT EXECUTED
134379: 6a 02 push $0x2 <== NOT EXECUTED
13437b: 8d 47 16 lea 0x16(%edi),%eax <== NOT EXECUTED
13437e: 50 push %eax <== NOT EXECUTED
13437f: 56 push %esi <== NOT EXECUTED
134380: 53 push %ebx <== NOT EXECUTED
134381: e8 f2 18 ff ff call 125c78 <_fat_block_write> <== NOT EXECUTED
134386: 89 c2 mov %eax,%edx <== NOT EXECUTED
2, (char *)(&time_val));
date = CT_LE_W(date);
ret2 = _fat_block_write(mt_entry, sec, byte + MSDOS_FILE_WDATE_OFFSET,
134388: 83 c4 14 add $0x14,%esp <== NOT EXECUTED
13438b: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
13438e: 50 push %eax <== NOT EXECUTED
13438f: 6a 02 push $0x2 <== NOT EXECUTED
134391: 83 c7 18 add $0x18,%edi <== NOT EXECUTED
134394: 57 push %edi <== NOT EXECUTED
134395: 56 push %esi <== NOT EXECUTED
134396: 53 push %ebx <== NOT EXECUTED
134397: 89 55 d4 mov %edx,-0x2c(%ebp) <== NOT EXECUTED
13439a: e8 d9 18 ff ff call 125c78 <_fat_block_write> <== NOT EXECUTED
2, (char *)(&date));
if ( (ret1 < 0) || (ret2 < 0) )
13439f: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
1343a2: 85 c0 test %eax,%eax <== NOT EXECUTED
1343a4: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED
1343a7: 78 06 js 1343af <msdos_set_dir_wrt_time_and_date+0x97><== NOT EXECUTED
1343a9: 31 c0 xor %eax,%eax <== NOT EXECUTED
1343ab: 85 d2 test %edx,%edx <== NOT EXECUTED
1343ad: 79 03 jns 1343b2 <msdos_set_dir_wrt_time_and_date+0x9a><== NOT EXECUTED
1343af: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
return -1;
return RC_OK;
}
1343b2: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1343b5: 5b pop %ebx <== NOT EXECUTED
1343b6: 5e pop %esi <== NOT EXECUTED
1343b7: 5f pop %edi <== NOT EXECUTED
1343b8: c9 leave <== NOT EXECUTED
1343b9: c3 ret <== NOT EXECUTED
0013410d <msdos_set_file_size>:
int
msdos_set_file_size(
rtems_filesystem_mount_table_entry_t *mt_entry,
fat_file_fd_t *fat_fd
)
{
13410d: 55 push %ebp <== NOT EXECUTED
13410e: 89 e5 mov %esp,%ebp <== NOT EXECUTED
134110: 57 push %edi <== NOT EXECUTED
134111: 56 push %esi <== NOT EXECUTED
134112: 53 push %ebx <== NOT EXECUTED
134113: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED
134116: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
134119: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
ssize_t ret = 0;
msdos_fs_info_t *fs_info = mt_entry->fs_info;
13411c: 8b 46 34 mov 0x34(%esi),%eax <== NOT EXECUTED
uint32_t le_new_length = 0;
uint32_t sec = 0;
uint32_t byte = 0;
sec = fat_cluster_num_to_sector_num(mt_entry, fat_fd->dir_pos.sname.cln);
13411f: 8b 53 20 mov 0x20(%ebx),%edx <== NOT EXECUTED
uint32_t cln
)
{
register fat_fs_info_t *fs_info = mt_entry->fs_info;
if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) )
134122: 85 d2 test %edx,%edx <== NOT EXECUTED
134124: 75 0b jne 134131 <msdos_set_file_size+0x24><== NOT EXECUTED
134126: f6 40 0a 03 testb $0x3,0xa(%eax) <== NOT EXECUTED
13412a: 74 05 je 134131 <msdos_set_file_size+0x24><== NOT EXECUTED
return fs_info->vol.rdir_loc;
13412c: 8b 50 1c mov 0x1c(%eax),%edx <== NOT EXECUTED
13412f: eb 0c jmp 13413d <msdos_set_file_size+0x30><== NOT EXECUTED
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
134131: 83 ea 02 sub $0x2,%edx <== NOT EXECUTED
134134: 0f b6 48 05 movzbl 0x5(%eax),%ecx <== NOT EXECUTED
134138: d3 e2 shl %cl,%edx <== NOT EXECUTED
13413a: 03 50 30 add 0x30(%eax),%edx <== NOT EXECUTED
sec += (fat_fd->dir_pos.sname.ofs >> fs_info->fat.vol.sec_log2);
13413d: 0f b6 48 02 movzbl 0x2(%eax),%ecx <== NOT EXECUTED
134141: 8b 7b 24 mov 0x24(%ebx),%edi <== NOT EXECUTED
134144: d3 ef shr %cl,%edi <== NOT EXECUTED
134146: 01 fa add %edi,%edx <== NOT EXECUTED
byte = (fat_fd->dir_pos.sname.ofs & (fs_info->fat.vol.bps - 1));
134148: 0f b7 00 movzwl (%eax),%eax <== NOT EXECUTED
13414b: 48 dec %eax <== NOT EXECUTED
13414c: 23 43 24 and 0x24(%ebx),%eax <== NOT EXECUTED
le_new_length = CT_LE_L((fat_fd->fat_file_size));
13414f: 8b 4b 18 mov 0x18(%ebx),%ecx <== NOT EXECUTED
134152: 89 4d e4 mov %ecx,-0x1c(%ebp) <== NOT EXECUTED
ret = _fat_block_write(mt_entry, sec, byte + MSDOS_FILE_SIZE_OFFSET, 4,
134155: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
134158: 8d 4d e4 lea -0x1c(%ebp),%ecx <== NOT EXECUTED
13415b: 51 push %ecx <== NOT EXECUTED
13415c: 6a 04 push $0x4 <== NOT EXECUTED
13415e: 83 c0 1c add $0x1c,%eax <== NOT EXECUTED
134161: 50 push %eax <== NOT EXECUTED
134162: 52 push %edx <== NOT EXECUTED
134163: 56 push %esi <== NOT EXECUTED
134164: e8 0f 1b ff ff call 125c78 <_fat_block_write> <== NOT EXECUTED
(char *)(&le_new_length));
if ( ret < 0 )
134169: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
13416c: c1 f8 1f sar $0x1f,%eax <== NOT EXECUTED
return -1;
return RC_OK;
}
13416f: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
134172: 5b pop %ebx <== NOT EXECUTED
134173: 5e pop %esi <== NOT EXECUTED
134174: 5f pop %edi <== NOT EXECUTED
134175: c9 leave <== NOT EXECUTED
134176: c3 ret <== NOT EXECUTED
00134220 <msdos_set_first_char4file_name>:
msdos_set_first_char4file_name(
rtems_filesystem_mount_table_entry_t *mt_entry,
fat_dir_pos_t *dir_pos,
unsigned char fchar
)
{
134220: 55 push %ebp <== NOT EXECUTED
134221: 89 e5 mov %esp,%ebp <== NOT EXECUTED
134223: 57 push %edi <== NOT EXECUTED
134224: 56 push %esi <== NOT EXECUTED
134225: 53 push %ebx <== NOT EXECUTED
134226: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED
134229: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
13422c: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
13422f: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
134232: 88 55 d4 mov %dl,-0x2c(%ebp) <== NOT EXECUTED
ssize_t ret;
msdos_fs_info_t *fs_info = mt_entry->fs_info;
134235: 8b 5e 34 mov 0x34(%esi),%ebx <== NOT EXECUTED
uint32_t dir_block_size;
fat_pos_t start = dir_pos->lname;
134238: 8b 50 08 mov 0x8(%eax),%edx <== NOT EXECUTED
13423b: 8b 48 0c mov 0xc(%eax),%ecx <== NOT EXECUTED
13423e: 89 55 e0 mov %edx,-0x20(%ebp) <== NOT EXECUTED
134241: 89 4d e4 mov %ecx,-0x1c(%ebp) <== NOT EXECUTED
fat_pos_t end = dir_pos->sname;
134244: 8b 50 04 mov 0x4(%eax),%edx <== NOT EXECUTED
134247: 89 55 cc mov %edx,-0x34(%ebp) <== NOT EXECUTED
13424a: 8b 38 mov (%eax),%edi <== NOT EXECUTED
if ((end.cln == fs_info->fat.vol.rdir_cl) &&
13424c: 3b 7b 38 cmp 0x38(%ebx),%edi <== NOT EXECUTED
13424f: 75 0e jne 13425f <msdos_set_first_char4file_name+0x3f><== NOT EXECUTED
(fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16)))
134251: f6 43 0a 03 testb $0x3,0xa(%ebx) <== NOT EXECUTED
134255: 74 08 je 13425f <msdos_set_first_char4file_name+0x3f><== NOT EXECUTED
dir_block_size = fs_info->fat.vol.rdir_size;
134257: 8b 4b 28 mov 0x28(%ebx),%ecx <== NOT EXECUTED
13425a: 89 4d d0 mov %ecx,-0x30(%ebp) <== NOT EXECUTED
msdos_fs_info_t *fs_info = mt_entry->fs_info;
uint32_t dir_block_size;
fat_pos_t start = dir_pos->lname;
fat_pos_t end = dir_pos->sname;
if ((end.cln == fs_info->fat.vol.rdir_cl) &&
13425d: eb 07 jmp 134266 <msdos_set_first_char4file_name+0x46><== NOT EXECUTED
(fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16)))
dir_block_size = fs_info->fat.vol.rdir_size;
else
dir_block_size = fs_info->fat.vol.bpc;
13425f: 0f b7 53 06 movzwl 0x6(%ebx),%edx <== NOT EXECUTED
134263: 89 55 d0 mov %edx,-0x30(%ebp) <== NOT EXECUTED
if (dir_pos->lname.cln == FAT_FILE_SHORT_NAME)
134266: 83 78 08 ff cmpl $0xffffffff,0x8(%eax) <== NOT EXECUTED
13426a: 75 0b jne 134277 <msdos_set_first_char4file_name+0x57><== NOT EXECUTED
start = dir_pos->sname;
13426c: 8b 50 04 mov 0x4(%eax),%edx <== NOT EXECUTED
13426f: 8b 00 mov (%eax),%eax <== NOT EXECUTED
134271: 89 45 e0 mov %eax,-0x20(%ebp) <== NOT EXECUTED
134274: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED
* name code was written rather than use the fat_file_write
* interface.
*/
while (true)
{
uint32_t sec = (fat_cluster_num_to_sector_num(mt_entry, start.cln) +
134277: 8b 55 e0 mov -0x20(%ebp),%edx <== NOT EXECUTED
fat_cluster_num_to_sector_num(
rtems_filesystem_mount_table_entry_t *mt_entry,
uint32_t cln
)
{
register fat_fs_info_t *fs_info = mt_entry->fs_info;
13427a: 8b 46 34 mov 0x34(%esi),%eax <== NOT EXECUTED
if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) )
13427d: 85 d2 test %edx,%edx <== NOT EXECUTED
13427f: 75 0b jne 13428c <msdos_set_first_char4file_name+0x6c><== NOT EXECUTED
134281: f6 40 0a 03 testb $0x3,0xa(%eax) <== NOT EXECUTED
134285: 74 05 je 13428c <msdos_set_first_char4file_name+0x6c><== NOT EXECUTED
return fs_info->vol.rdir_loc;
134287: 8b 50 1c mov 0x1c(%eax),%edx <== NOT EXECUTED
13428a: eb 0c jmp 134298 <msdos_set_first_char4file_name+0x78><== NOT EXECUTED
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
13428c: 83 ea 02 sub $0x2,%edx <== NOT EXECUTED
13428f: 0f b6 48 05 movzbl 0x5(%eax),%ecx <== NOT EXECUTED
134293: d3 e2 shl %cl,%edx <== NOT EXECUTED
134295: 03 50 30 add 0x30(%eax),%edx <== NOT EXECUTED
(start.ofs >> fs_info->fat.vol.sec_log2));
134298: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
uint32_t byte = (start.ofs & (fs_info->fat.vol.bps - 1));;
ret = _fat_block_write(mt_entry, sec, byte + MSDOS_FILE_NAME_OFFSET, 1,
13429b: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13429e: 8d 4d d4 lea -0x2c(%ebp),%ecx <== NOT EXECUTED
1342a1: 51 push %ecx <== NOT EXECUTED
1342a2: 6a 01 push $0x1 <== NOT EXECUTED
1342a4: 0f b7 0b movzwl (%ebx),%ecx <== NOT EXECUTED
1342a7: 49 dec %ecx <== NOT EXECUTED
1342a8: 21 c1 and %eax,%ecx <== NOT EXECUTED
1342aa: 51 push %ecx <== NOT EXECUTED
1342ab: 0f b6 4b 02 movzbl 0x2(%ebx),%ecx <== NOT EXECUTED
1342af: d3 e8 shr %cl,%eax <== NOT EXECUTED
1342b1: 8d 04 02 lea (%edx,%eax,1),%eax <== NOT EXECUTED
1342b4: 50 push %eax <== NOT EXECUTED
1342b5: 56 push %esi <== NOT EXECUTED
1342b6: e8 bd 19 ff ff call 125c78 <_fat_block_write> <== NOT EXECUTED
&fchar);
if (ret < 0)
1342bb: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
1342be: 85 c0 test %eax,%eax <== NOT EXECUTED
1342c0: 78 47 js 134309 <msdos_set_first_char4file_name+0xe9><== NOT EXECUTED
return -1;
if ((start.cln == end.cln) && (start.ofs == end.ofs))
1342c2: 39 7d e0 cmp %edi,-0x20(%ebp) <== NOT EXECUTED
1342c5: 75 08 jne 1342cf <msdos_set_first_char4file_name+0xaf><== NOT EXECUTED
1342c7: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED
1342ca: 39 45 e4 cmp %eax,-0x1c(%ebp) <== NOT EXECUTED
1342cd: 74 3f je 13430e <msdos_set_first_char4file_name+0xee><== NOT EXECUTED
break;
start.ofs += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE;
1342cf: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
1342d2: 83 c0 20 add $0x20,%eax <== NOT EXECUTED
1342d5: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
if (start.ofs >= dir_block_size)
1342d8: 3b 45 d0 cmp -0x30(%ebp),%eax <== NOT EXECUTED
1342db: 72 9a jb 134277 <msdos_set_first_char4file_name+0x57><== NOT EXECUTED
{
int rc;
if ((end.cln == fs_info->fat.vol.rdir_cl) &&
1342dd: 3b 7b 38 cmp 0x38(%ebx),%edi <== NOT EXECUTED
1342e0: 75 06 jne 1342e8 <msdos_set_first_char4file_name+0xc8><== NOT EXECUTED
(fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16)))
1342e2: f6 43 0a 03 testb $0x3,0xa(%ebx) <== NOT EXECUTED
1342e6: 75 26 jne 13430e <msdos_set_first_char4file_name+0xee><== NOT EXECUTED
break;
rc = fat_get_fat_cluster(mt_entry, start.cln, &start.cln);
1342e8: 50 push %eax <== NOT EXECUTED
1342e9: 8d 55 e0 lea -0x20(%ebp),%edx <== NOT EXECUTED
1342ec: 52 push %edx <== NOT EXECUTED
1342ed: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
1342f0: 56 push %esi <== NOT EXECUTED
1342f1: e8 fb 60 00 00 call 13a3f1 <fat_get_fat_cluster> <== NOT EXECUTED
if ( rc != RC_OK )
1342f6: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1342f9: 85 c0 test %eax,%eax <== NOT EXECUTED
1342fb: 75 13 jne 134310 <msdos_set_first_char4file_name+0xf0><== NOT EXECUTED
return rc;
start.ofs = 0;
1342fd: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) <== NOT EXECUTED
134304: e9 6e ff ff ff jmp 134277 <msdos_set_first_char4file_name+0x57><== NOT EXECUTED
134309: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
13430c: eb 02 jmp 134310 <msdos_set_first_char4file_name+0xf0><== NOT EXECUTED
13430e: 31 c0 xor %eax,%eax <== NOT EXECUTED
}
}
return RC_OK;
}
134310: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
134313: 5b pop %ebx <== NOT EXECUTED
134314: 5e pop %esi <== NOT EXECUTED
134315: 5f pop %edi <== NOT EXECUTED
134316: c9 leave <== NOT EXECUTED
134317: c3 ret <== NOT EXECUTED
00134177 <msdos_set_first_cluster_num>:
int
msdos_set_first_cluster_num(
rtems_filesystem_mount_table_entry_t *mt_entry,
fat_file_fd_t *fat_fd
)
{
134177: 55 push %ebp <== NOT EXECUTED
134178: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13417a: 57 push %edi <== NOT EXECUTED
13417b: 56 push %esi <== NOT EXECUTED
13417c: 53 push %ebx <== NOT EXECUTED
13417d: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED
134180: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
134183: 8b 75 0c mov 0xc(%ebp),%esi <== NOT EXECUTED
ssize_t ret1 = 0, ret2 = 0;
msdos_fs_info_t *fs_info = mt_entry->fs_info;
134186: 8b 43 34 mov 0x34(%ebx),%eax <== NOT EXECUTED
uint32_t new_cln = fat_fd->cln;
134189: 8b 56 1c mov 0x1c(%esi),%edx <== NOT EXECUTED
13418c: 89 55 d4 mov %edx,-0x2c(%ebp) <== NOT EXECUTED
/*
* calculate input for _fat_block_write: convert (cluster num, offset) to
* (sector num, new offset)
*/
sec = fat_cluster_num_to_sector_num(mt_entry, fat_fd->dir_pos.sname.cln);
13418f: 8b 56 20 mov 0x20(%esi),%edx <== NOT EXECUTED
uint32_t cln
)
{
register fat_fs_info_t *fs_info = mt_entry->fs_info;
if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) )
134192: 85 d2 test %edx,%edx <== NOT EXECUTED
134194: 75 0b jne 1341a1 <msdos_set_first_cluster_num+0x2a><== NOT EXECUTED
134196: f6 40 0a 03 testb $0x3,0xa(%eax) <== NOT EXECUTED
13419a: 74 05 je 1341a1 <msdos_set_first_cluster_num+0x2a><== NOT EXECUTED
return fs_info->vol.rdir_loc;
13419c: 8b 50 1c mov 0x1c(%eax),%edx <== NOT EXECUTED
13419f: eb 0c jmp 1341ad <msdos_set_first_cluster_num+0x36><== NOT EXECUTED
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
1341a1: 83 ea 02 sub $0x2,%edx <== NOT EXECUTED
1341a4: 0f b6 48 05 movzbl 0x5(%eax),%ecx <== NOT EXECUTED
1341a8: d3 e2 shl %cl,%edx <== NOT EXECUTED
1341aa: 03 50 30 add 0x30(%eax),%edx <== NOT EXECUTED
sec += (fat_fd->dir_pos.sname.ofs >> fs_info->fat.vol.sec_log2);
1341ad: 8b 76 24 mov 0x24(%esi),%esi <== NOT EXECUTED
1341b0: 0f b6 48 02 movzbl 0x2(%eax),%ecx <== NOT EXECUTED
1341b4: 89 f7 mov %esi,%edi <== NOT EXECUTED
1341b6: d3 ef shr %cl,%edi <== NOT EXECUTED
1341b8: 8d 3c 3a lea (%edx,%edi,1),%edi <== NOT EXECUTED
/* byte from points to start of 32bytes structure */
byte = fat_fd->dir_pos.sname.ofs & (fs_info->fat.vol.bps - 1);
1341bb: 0f b7 10 movzwl (%eax),%edx <== NOT EXECUTED
1341be: 4a dec %edx <== NOT EXECUTED
1341bf: 21 f2 and %esi,%edx <== NOT EXECUTED
le_cl_low = CT_LE_W((uint16_t )(new_cln & 0x0000FFFF));
1341c1: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED
1341c4: 66 89 45 e6 mov %ax,-0x1a(%ebp) <== NOT EXECUTED
{
ssize_t ret1 = 0, ret2 = 0;
msdos_fs_info_t *fs_info = mt_entry->fs_info;
uint32_t new_cln = fat_fd->cln;
uint16_t le_cl_low = 0;
uint16_t le_cl_hi = 0;
1341c8: 66 c7 45 e4 00 00 movw $0x0,-0x1c(%ebp) <== NOT EXECUTED
sec += (fat_fd->dir_pos.sname.ofs >> fs_info->fat.vol.sec_log2);
/* byte from points to start of 32bytes structure */
byte = fat_fd->dir_pos.sname.ofs & (fs_info->fat.vol.bps - 1);
le_cl_low = CT_LE_W((uint16_t )(new_cln & 0x0000FFFF));
ret1 = _fat_block_write(mt_entry, sec,
1341ce: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1341d1: 8d 45 e6 lea -0x1a(%ebp),%eax <== NOT EXECUTED
1341d4: 50 push %eax <== NOT EXECUTED
1341d5: 6a 02 push $0x2 <== NOT EXECUTED
1341d7: 8d 42 1a lea 0x1a(%edx),%eax <== NOT EXECUTED
1341da: 50 push %eax <== NOT EXECUTED
1341db: 57 push %edi <== NOT EXECUTED
1341dc: 53 push %ebx <== NOT EXECUTED
1341dd: 89 55 d0 mov %edx,-0x30(%ebp) <== NOT EXECUTED
1341e0: e8 93 1a ff ff call 125c78 <_fat_block_write> <== NOT EXECUTED
1341e5: 89 c6 mov %eax,%esi <== NOT EXECUTED
byte + MSDOS_FIRST_CLUSTER_LOW_OFFSET, 2,
(char *)(&le_cl_low));
le_cl_hi = CT_LE_W((uint16_t )((new_cln & 0xFFFF0000) >> 16));
1341e7: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED
1341ea: c1 e8 10 shr $0x10,%eax <== NOT EXECUTED
1341ed: 66 89 45 e4 mov %ax,-0x1c(%ebp) <== NOT EXECUTED
ret2 = _fat_block_write(mt_entry, sec,
1341f1: 83 c4 14 add $0x14,%esp <== NOT EXECUTED
1341f4: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
1341f7: 50 push %eax <== NOT EXECUTED
1341f8: 6a 02 push $0x2 <== NOT EXECUTED
1341fa: 8b 55 d0 mov -0x30(%ebp),%edx <== NOT EXECUTED
1341fd: 83 c2 14 add $0x14,%edx <== NOT EXECUTED
134200: 52 push %edx <== NOT EXECUTED
134201: 57 push %edi <== NOT EXECUTED
134202: 53 push %ebx <== NOT EXECUTED
134203: e8 70 1a ff ff call 125c78 <_fat_block_write> <== NOT EXECUTED
byte + MSDOS_FIRST_CLUSTER_HI_OFFSET, 2,
(char *)(&le_cl_hi));
if ( (ret1 < 0) || (ret2 < 0) )
134208: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
13420b: 85 c0 test %eax,%eax <== NOT EXECUTED
13420d: 78 06 js 134215 <msdos_set_first_cluster_num+0x9e><== NOT EXECUTED
13420f: 31 c0 xor %eax,%eax <== NOT EXECUTED
134211: 85 f6 test %esi,%esi <== NOT EXECUTED
134213: 79 03 jns 134218 <msdos_set_first_cluster_num+0xa1><== NOT EXECUTED
134215: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
return -1;
return RC_OK;
}
134218: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13421b: 5b pop %ebx <== NOT EXECUTED
13421c: 5e pop %esi <== NOT EXECUTED
13421d: 5f pop %edi <== NOT EXECUTED
13421e: c9 leave <== NOT EXECUTED
13421f: c3 ret <== NOT EXECUTED
001337c0 <msdos_shut_down>:
* RC_OK on success, or -1 if error occured (errno set apropriately).
*
*/
int
msdos_shut_down(rtems_filesystem_mount_table_entry_t *temp_mt_entry)
{
1337c0: 55 push %ebp <== NOT EXECUTED
1337c1: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1337c3: 57 push %edi <== NOT EXECUTED
1337c4: 56 push %esi <== NOT EXECUTED
1337c5: 53 push %ebx <== NOT EXECUTED
1337c6: 83 ec 14 sub $0x14,%esp <== NOT EXECUTED
1337c9: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
int rc = RC_OK;
msdos_fs_info_t *fs_info = temp_mt_entry->fs_info;
1337cc: 8b 7b 34 mov 0x34(%ebx),%edi <== NOT EXECUTED
fat_file_fd_t *fat_fd = temp_mt_entry->mt_fs_root.node_access;
/* close fat-file which correspondes to root directory */
if (fat_file_close(temp_mt_entry, fat_fd) != RC_OK)
1337cf: ff 73 1c pushl 0x1c(%ebx) <== NOT EXECUTED
1337d2: 53 push %ebx <== NOT EXECUTED
1337d3: e8 f5 1d ff ff call 1255cd <fat_file_close> <== NOT EXECUTED
1337d8: 83 f8 01 cmp $0x1,%eax <== NOT EXECUTED
1337db: 19 f6 sbb %esi,%esi <== NOT EXECUTED
1337dd: f7 d6 not %esi <== NOT EXECUTED
{
/* no return - try to free as much as possible */
rc = -1;
}
if (fat_shutdown_drive(temp_mt_entry) != RC_OK)
1337df: 89 1c 24 mov %ebx,(%esp) <== NOT EXECUTED
1337e2: e8 93 25 ff ff call 125d7a <fat_shutdown_drive> <== NOT EXECUTED
1337e7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1337ea: 85 c0 test %eax,%eax <== NOT EXECUTED
1337ec: 74 03 je 1337f1 <msdos_shut_down+0x31> <== NOT EXECUTED
1337ee: 83 ce ff or $0xffffffff,%esi <== NOT EXECUTED
{
/* no return - try to free as much as possible */
rc = -1;
}
rtems_semaphore_delete(fs_info->vol_sema);
1337f1: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1337f4: ff b7 94 00 00 00 pushl 0x94(%edi) <== NOT EXECUTED
1337fa: e8 25 d3 fd ff call 110b24 <rtems_semaphore_delete><== NOT EXECUTED
free(fs_info->cl_buf);
1337ff: 5a pop %edx <== NOT EXECUTED
133800: ff b7 98 00 00 00 pushl 0x98(%edi) <== NOT EXECUTED
133806: e8 91 96 fd ff call 10ce9c <free> <== NOT EXECUTED
free(temp_mt_entry->fs_info);
13380b: 58 pop %eax <== NOT EXECUTED
13380c: ff 73 34 pushl 0x34(%ebx) <== NOT EXECUTED
13380f: e8 88 96 fd ff call 10ce9c <free> <== NOT EXECUTED
return rc;
}
133814: 89 f0 mov %esi,%eax <== NOT EXECUTED
133816: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
133819: 5b pop %ebx <== NOT EXECUTED
13381a: 5e pop %esi <== NOT EXECUTED
13381b: 5f pop %edi <== NOT EXECUTED
13381c: c9 leave <== NOT EXECUTED
13381d: c3 ret <== NOT EXECUTED
001269dc <nanosleep>:
int nanosleep(
const struct timespec *rqtp,
struct timespec *rmtp
)
{
1269dc: 55 push %ebp
1269dd: 89 e5 mov %esp,%ebp
1269df: 56 push %esi
1269e0: 53 push %ebx
1269e1: 8b 75 08 mov 0x8(%ebp),%esi
1269e4: 8b 5d 0c mov 0xc(%ebp),%ebx
Watchdog_Interval ticks;
if ( !_Timespec_Is_valid( rqtp ) )
1269e7: 83 ec 0c sub $0xc,%esp
1269ea: 56 push %esi
1269eb: e8 1c 01 00 00 call 126b0c <_Timespec_Is_valid>
1269f0: 83 c4 10 add $0x10,%esp
1269f3: 84 c0 test %al,%al
1269f5: 74 0b je 126a02 <nanosleep+0x26>
* Return EINVAL if the delay interval is negative.
*
* NOTE: This behavior is beyond the POSIX specification.
* FSU and GNU/Linux pthreads shares this behavior.
*/
if ( rqtp->tv_sec < 0 || rqtp->tv_nsec < 0 )
1269f7: 83 3e 00 cmpl $0x0,(%esi)
1269fa: 78 06 js 126a02 <nanosleep+0x26> <== NEVER TAKEN
1269fc: 83 7e 04 00 cmpl $0x0,0x4(%esi)
126a00: 79 10 jns 126a12 <nanosleep+0x36> <== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( EINVAL );
126a02: e8 f1 29 ff ff call 1193f8 <__errno>
126a07: c7 00 16 00 00 00 movl $0x16,(%eax)
126a0d: e9 c4 00 00 00 jmp 126ad6 <nanosleep+0xfa>
ticks = _Timespec_To_ticks( rqtp );
126a12: 83 ec 0c sub $0xc,%esp
126a15: 56 push %esi
126a16: e8 fd fc fe ff call 116718 <_Timespec_To_ticks>
126a1b: 89 c6 mov %eax,%esi
* A nanosleep for zero time is implemented as a yield.
* This behavior is also beyond the POSIX specification but is
* consistent with the RTEMS API and yields desirable behavior.
*/
if ( !ticks ) {
126a1d: 83 c4 10 add $0x10,%esp
126a20: 85 c0 test %eax,%eax
126a22: 75 2f jne 126a53 <nanosleep+0x77>
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
126a24: a1 ec 1a 13 00 mov 0x131aec,%eax
126a29: 40 inc %eax
126a2a: a3 ec 1a 13 00 mov %eax,0x131aec
_Thread_Disable_dispatch();
_Thread_Yield_processor();
126a2f: e8 04 9a fe ff call 110438 <_Thread_Yield_processor>
_Thread_Enable_dispatch();
126a34: e8 f4 8e fe ff call 10f92d <_Thread_Enable_dispatch>
if ( rmtp ) {
126a39: 85 db test %ebx,%ebx
126a3b: 0f 84 9a 00 00 00 je 126adb <nanosleep+0xff>
rmtp->tv_sec = 0;
126a41: c7 03 00 00 00 00 movl $0x0,(%ebx)
rmtp->tv_nsec = 0;
126a47: c7 43 04 00 00 00 00 movl $0x0,0x4(%ebx)
126a4e: e9 88 00 00 00 jmp 126adb <nanosleep+0xff>
126a53: a1 ec 1a 13 00 mov 0x131aec,%eax
126a58: 40 inc %eax
126a59: a3 ec 1a 13 00 mov %eax,0x131aec
/*
* Block for the desired amount of time
*/
_Thread_Disable_dispatch();
_Thread_Set_state(
126a5e: 52 push %edx
126a5f: 52 push %edx
126a60: 68 08 00 00 10 push $0x10000008
126a65: ff 35 a8 1b 13 00 pushl 0x131ba8
126a6b: e8 ec 96 fe ff call 11015c <_Thread_Set_state>
STATES_DELAYING | STATES_INTERRUPTIBLE_BY_SIGNAL
);
_Watchdog_Initialize(
&_Thread_Executing->Timer,
_Thread_Delay_ended,
_Thread_Executing->Object.id,
126a70: 8b 15 a8 1b 13 00 mov 0x131ba8,%edx
_Thread_Disable_dispatch();
_Thread_Set_state(
_Thread_Executing,
STATES_DELAYING | STATES_INTERRUPTIBLE_BY_SIGNAL
);
_Watchdog_Initialize(
126a76: 8b 42 08 mov 0x8(%edx),%eax
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
126a79: c7 42 50 00 00 00 00 movl $0x0,0x50(%edx)
the_watchdog->routine = routine;
126a80: c7 42 64 b0 f7 10 00 movl $0x10f7b0,0x64(%edx)
the_watchdog->id = id;
126a87: 89 42 68 mov %eax,0x68(%edx)
the_watchdog->user_data = user_data;
126a8a: c7 42 6c 00 00 00 00 movl $0x0,0x6c(%edx)
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
126a91: 89 72 54 mov %esi,0x54(%edx)
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
126a94: 59 pop %ecx
126a95: 58 pop %eax
126a96: 83 c2 48 add $0x48,%edx
126a99: 52 push %edx
126a9a: 68 c8 1b 13 00 push $0x131bc8
126a9f: e8 f4 9c fe ff call 110798 <_Watchdog_Insert>
_Thread_Delay_ended,
_Thread_Executing->Object.id,
NULL
);
_Watchdog_Insert_ticks( &_Thread_Executing->Timer, ticks );
_Thread_Enable_dispatch();
126aa4: e8 84 8e fe ff call 10f92d <_Thread_Enable_dispatch>
/* calculate time remaining */
if ( rmtp ) {
126aa9: 83 c4 10 add $0x10,%esp
126aac: 85 db test %ebx,%ebx
126aae: 74 2b je 126adb <nanosleep+0xff>
ticks -=
_Thread_Executing->Timer.stop_time - _Thread_Executing->Timer.start_time;
126ab0: a1 a8 1b 13 00 mov 0x131ba8,%eax
_Thread_Enable_dispatch();
/* calculate time remaining */
if ( rmtp ) {
ticks -=
126ab5: 03 70 5c add 0x5c(%eax),%esi
126ab8: 2b 70 60 sub 0x60(%eax),%esi
_Thread_Executing->Timer.stop_time - _Thread_Executing->Timer.start_time;
_Timespec_From_ticks( ticks, rmtp );
126abb: 50 push %eax
126abc: 50 push %eax
126abd: 53 push %ebx
126abe: 56 push %esi
126abf: e8 20 00 00 00 call 126ae4 <_Timespec_From_ticks>
*/
#if defined(RTEMS_POSIX_API)
/*
* If there is time remaining, then we were interrupted by a signal.
*/
if ( ticks )
126ac4: 83 c4 10 add $0x10,%esp
126ac7: 85 f6 test %esi,%esi
126ac9: 74 10 je 126adb <nanosleep+0xff>
rtems_set_errno_and_return_minus_one( EINTR );
126acb: e8 28 29 ff ff call 1193f8 <__errno>
126ad0: c7 00 04 00 00 00 movl $0x4,(%eax)
126ad6: 83 c8 ff or $0xffffffff,%eax
126ad9: eb 02 jmp 126add <nanosleep+0x101>
126adb: 31 c0 xor %eax,%eax
#endif
}
return 0;
}
126add: 8d 65 f8 lea -0x8(%ebp),%esp
126ae0: 5b pop %ebx
126ae1: 5e pop %esi
126ae2: c9 leave
126ae3: c3 ret
00107de0 <newlib_delete_hook>:
void newlib_delete_hook(
rtems_tcb *current_task,
rtems_tcb *deleted_task
)
{
107de0: 55 push %ebp
107de1: 89 e5 mov %esp,%ebp
107de3: 57 push %edi
107de4: 56 push %esi
107de5: 53 push %ebx
107de6: 83 ec 0c sub $0xc,%esp
107de9: 8b 7d 08 mov 0x8(%ebp),%edi
107dec: 8b 75 0c mov 0xc(%ebp),%esi
/*
* The reentrancy structure was allocated by newlib using malloc()
*/
if (current_task == deleted_task) {
107def: 39 f7 cmp %esi,%edi
107df1: 75 08 jne 107dfb <newlib_delete_hook+0x1b>
ptr = _REENT;
107df3: 8b 1d 40 40 12 00 mov 0x124040,%ebx
107df9: eb 06 jmp 107e01 <newlib_delete_hook+0x21>
} else {
ptr = deleted_task->libc_reent;
107dfb: 8b 9e f0 00 00 00 mov 0xf0(%esi),%ebx
}
if (ptr && ptr != _global_impure_ptr) {
107e01: 85 db test %ebx,%ebx
107e03: 74 20 je 107e25 <newlib_delete_hook+0x45><== NEVER TAKEN
107e05: 3b 1d 60 0f 12 00 cmp 0x120f60,%ebx
107e0b: 74 18 je 107e25 <newlib_delete_hook+0x45>
_reclaim_reent(ptr);
*/
/*
* Just in case there are some buffers lying around.
*/
_fwalk(ptr, newlib_free_buffers);
107e0d: 50 push %eax
107e0e: 50 push %eax
107e0f: 68 45 7e 10 00 push $0x107e45
107e14: 53 push %ebx
107e15: e8 aa b3 00 00 call 1131c4 <_fwalk>
#if REENT_MALLOCED
free(ptr);
#else
_Workspace_Free(ptr);
107e1a: 89 1c 24 mov %ebx,(%esp)
107e1d: e8 eb 54 00 00 call 10d30d <_Workspace_Free>
107e22: 83 c4 10 add $0x10,%esp
#endif
}
deleted_task->libc_reent = NULL;
107e25: c7 86 f0 00 00 00 00 movl $0x0,0xf0(%esi)
107e2c: 00 00 00
/*
* Require the switch back to another task to install its own
*/
if ( current_task == deleted_task ) {
107e2f: 39 f7 cmp %esi,%edi
107e31: 75 0a jne 107e3d <newlib_delete_hook+0x5d>
_REENT = 0;
107e33: c7 05 40 40 12 00 00 movl $0x0,0x124040
107e3a: 00 00 00
}
}
107e3d: 8d 65 f4 lea -0xc(%ebp),%esp
107e40: 5b pop %ebx
107e41: 5e pop %esi
107e42: 5f pop %edi
107e43: c9 leave
107e44: c3 ret
00107e45 <newlib_free_buffers>:
*/
int newlib_free_buffers(
FILE *fp
)
{
107e45: 55 push %ebp
107e46: 89 e5 mov %esp,%ebp
107e48: 53 push %ebx
107e49: 83 ec 10 sub $0x10,%esp
107e4c: 8b 5d 08 mov 0x8(%ebp),%ebx
switch ( fileno(fp) ) {
107e4f: 53 push %ebx
107e50: e8 77 af 00 00 call 112dcc <fileno>
107e55: 83 c4 10 add $0x10,%esp
107e58: 83 f8 02 cmp $0x2,%eax
107e5b: 77 26 ja 107e83 <newlib_free_buffers+0x3e><== NEVER TAKEN
case 0:
case 1:
case 2:
if (fp->_flags & __SMBF) {
107e5d: 80 7b 0c 00 cmpb $0x0,0xc(%ebx)
107e61: 79 2c jns 107e8f <newlib_free_buffers+0x4a><== ALWAYS TAKEN
free( fp->_bf._base );
107e63: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
107e66: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED
107e69: e8 2e f8 ff ff call 10769c <free> <== NOT EXECUTED
fp->_flags &= ~__SMBF;
107e6e: 66 81 63 0c 7f ff andw $0xff7f,0xc(%ebx) <== NOT EXECUTED
fp->_bf._base = fp->_p = (unsigned char *) NULL;
107e74: c7 03 00 00 00 00 movl $0x0,(%ebx) <== NOT EXECUTED
107e7a: c7 43 10 00 00 00 00 movl $0x0,0x10(%ebx) <== NOT EXECUTED
107e81: eb 09 jmp 107e8c <newlib_free_buffers+0x47><== NOT EXECUTED
}
break;
default:
fclose(fp);
107e83: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
107e86: 53 push %ebx <== NOT EXECUTED
107e87: e8 d4 ac 00 00 call 112b60 <fclose> <== NOT EXECUTED
107e8c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
return 0;
}
107e8f: 31 c0 xor %eax,%eax
107e91: 8b 5d fc mov -0x4(%ebp),%ebx
107e94: c9 leave
107e95: c3 ret
001078e0 <null_initialize>:
rtems_device_driver null_initialize(
rtems_device_major_number major,
rtems_device_minor_number minor __attribute__((unused)),
void *pargp __attribute__((unused))
)
{
1078e0: 55 push %ebp
1078e1: 89 e5 mov %esp,%ebp
1078e3: 53 push %ebx
1078e4: 83 ec 04 sub $0x4,%esp
1078e7: 8b 5d 08 mov 0x8(%ebp),%ebx
rtems_device_driver status;
if ( !initialized ) {
1078ea: 80 3d 20 7e 12 00 00 cmpb $0x0,0x127e20
1078f1: 75 2b jne 10791e <null_initialize+0x3e>
initialized = 1;
1078f3: c6 05 20 7e 12 00 01 movb $0x1,0x127e20
status = rtems_io_register_name(
1078fa: 50 push %eax
1078fb: 6a 00 push $0x0
1078fd: 53 push %ebx
1078fe: 68 18 18 12 00 push $0x121818
107903: e8 a5 05 00 00 call 107ead <rtems_io_register_name>
"/dev/null",
major,
(rtems_device_minor_number) 0
);
if (status != RTEMS_SUCCESSFUL)
107908: 83 c4 10 add $0x10,%esp
10790b: 85 c0 test %eax,%eax
10790d: 74 09 je 107918 <null_initialize+0x38> <== ALWAYS TAKEN
rtems_fatal_error_occurred(status);
10790f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
107912: 50 push %eax <== NOT EXECUTED
107913: e8 c8 3f 00 00 call 10b8e0 <rtems_fatal_error_occurred><== NOT EXECUTED
NULL_major = major;
107918: 89 1d 58 81 12 00 mov %ebx,0x128158
}
return RTEMS_SUCCESSFUL;
}
10791e: 31 c0 xor %eax,%eax
107920: 8b 5d fc mov -0x4(%ebp),%ebx
107923: c9 leave
107924: c3 ret
001078c5 <null_write>:
rtems_device_driver null_write(
rtems_device_major_number major __attribute__((unused)),
rtems_device_minor_number minor __attribute__((unused)),
void *pargp
)
{
1078c5: 55 push %ebp
1078c6: 89 e5 mov %esp,%ebp
1078c8: 8b 45 10 mov 0x10(%ebp),%eax
rtems_libio_rw_args_t *rw_args = (rtems_libio_rw_args_t *) pargp;
if ( rw_args )
1078cb: 85 c0 test %eax,%eax
1078cd: 74 06 je 1078d5 <null_write+0x10> <== ALWAYS TAKEN
rw_args->bytes_moved = rw_args->count;
1078cf: 8b 50 10 mov 0x10(%eax),%edx <== NOT EXECUTED
1078d2: 89 50 18 mov %edx,0x18(%eax) <== NOT EXECUTED
return NULL_SUCCESSFUL;
}
1078d5: 31 c0 xor %eax,%eax
1078d7: c9 leave
1078d8: c3 ret
00108170 <open>:
int open(
const char *pathname,
int flags,
...
)
{
108170: 55 push %ebp
108171: 89 e5 mov %esp,%ebp
108173: 57 push %edi
108174: 56 push %esi
108175: 53 push %ebx
108176: 83 ec 3c sub $0x3c,%esp
/*
* Set the Evaluation flags
*/
eval_flags = 0;
status = flags + 1;
108179: 8b 45 0c mov 0xc(%ebp),%eax
10817c: 40 inc %eax
if ( ( status & _FREAD ) == _FREAD )
10817d: 89 c6 mov %eax,%esi
10817f: 83 e6 01 and $0x1,%esi
108182: f7 de neg %esi
108184: 83 e6 04 and $0x4,%esi
eval_flags |= RTEMS_LIBIO_PERMS_READ;
if ( ( status & _FWRITE ) == _FWRITE )
108187: a8 02 test $0x2,%al
108189: 74 03 je 10818e <open+0x1e>
eval_flags |= RTEMS_LIBIO_PERMS_WRITE;
10818b: 83 ce 02 or $0x2,%esi
va_start(ap, flags);
mode = va_arg( ap, int );
10818e: 8b 45 10 mov 0x10(%ebp),%eax
108191: 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();
108194: e8 96 6e 00 00 call 10f02f <rtems_libio_allocate>
108199: 89 c3 mov %eax,%ebx
if ( iop == 0 ) {
10819b: bf 17 00 00 00 mov $0x17,%edi
1081a0: 85 c0 test %eax,%eax
1081a2: 0f 84 a8 01 00 00 je 108350 <open+0x1e0>
/*
* See if the file exists.
*/
status = rtems_filesystem_evaluate_path(
1081a8: 83 c9 ff or $0xffffffff,%ecx
1081ab: 8b 7d 08 mov 0x8(%ebp),%edi
1081ae: 31 c0 xor %eax,%eax
1081b0: f2 ae repnz scas %es:(%edi),%al
1081b2: f7 d1 not %ecx
1081b4: 49 dec %ecx
1081b5: 83 ec 0c sub $0xc,%esp
1081b8: 6a 01 push $0x1
1081ba: 8d 45 d4 lea -0x2c(%ebp),%eax
1081bd: 50 push %eax
1081be: 56 push %esi
1081bf: 51 push %ecx
1081c0: ff 75 08 pushl 0x8(%ebp)
1081c3: e8 69 f4 ff ff call 107631 <rtems_filesystem_evaluate_path>
1081c8: 89 c6 mov %eax,%esi
pathname, strlen( pathname ), eval_flags, &loc, true );
if ( status == -1 ) {
1081ca: 83 c4 20 add $0x20,%esp
1081cd: 83 f8 ff cmp $0xffffffff,%eax
1081d0: 75 7a jne 10824c <open+0xdc>
if ( errno != ENOENT ) {
1081d2: e8 3d a8 00 00 call 112a14 <__errno>
1081d7: 83 38 02 cmpl $0x2,(%eax)
1081da: 75 2f jne 10820b <open+0x9b>
rc = errno;
goto done;
}
/* If the file does not exist and we are not trying to create it--> error */
if ( !(flags & O_CREAT) ) {
1081dc: f7 45 0c 00 02 00 00 testl $0x200,0xc(%ebp)
1081e3: 75 0c jne 1081f1 <open+0x81>
1081e5: 31 f6 xor %esi,%esi
1081e7: bf 02 00 00 00 mov $0x2,%edi
1081ec: e9 34 01 00 00 jmp 108325 <open+0x1b5>
rc = ENOENT;
goto done;
}
/* Create the node for the new regular file */
rc = mknod( pathname, S_IFREG | mode, 0LL );
1081f1: 6a 00 push $0x0
1081f3: 6a 00 push $0x0
1081f5: 8b 45 c4 mov -0x3c(%ebp),%eax
1081f8: 80 cc 80 or $0x80,%ah
1081fb: 50 push %eax
1081fc: ff 75 08 pushl 0x8(%ebp)
1081ff: e8 f8 f7 ff ff call 1079fc <mknod>
if ( rc ) {
108204: 83 c4 10 add $0x10,%esp
108207: 85 c0 test %eax,%eax
108209: 74 0e je 108219 <open+0xa9> <== ALWAYS TAKEN
rc = errno;
10820b: e8 04 a8 00 00 call 112a14 <__errno>
108210: 8b 38 mov (%eax),%edi
108212: 31 f6 xor %esi,%esi
goto done;
108214: e9 08 01 00 00 jmp 108321 <open+0x1b1>
}
/* Sanity check to see if the file name exists after the mknod() */
status = rtems_filesystem_evaluate_path( pathname, strlen( pathname ), 0x0, &loc, true );
108219: 89 f1 mov %esi,%ecx
10821b: 8b 7d 08 mov 0x8(%ebp),%edi
10821e: 31 c0 xor %eax,%eax
108220: f2 ae repnz scas %es:(%edi),%al
108222: f7 d1 not %ecx
108224: 49 dec %ecx
108225: 83 ec 0c sub $0xc,%esp
108228: 6a 01 push $0x1
10822a: 8d 45 d4 lea -0x2c(%ebp),%eax
10822d: 50 push %eax
10822e: 6a 00 push $0x0
108230: 51 push %ecx
108231: ff 75 08 pushl 0x8(%ebp)
108234: e8 f8 f3 ff ff call 107631 <rtems_filesystem_evaluate_path>
if ( status != 0 ) { /* The file did not exist */
108239: 83 c4 20 add $0x20,%esp
10823c: 85 c0 test %eax,%eax
10823e: 74 28 je 108268 <open+0xf8> <== ALWAYS TAKEN
108240: 31 f6 xor %esi,%esi
108242: bf 0d 00 00 00 mov $0xd,%edi <== NOT EXECUTED
108247: e9 d9 00 00 00 jmp 108325 <open+0x1b5> <== NOT EXECUTED
rc = EACCES;
goto done;
}
} else if ((flags & (O_EXCL|O_CREAT)) == (O_EXCL|O_CREAT)) {
10824c: 8b 45 0c mov 0xc(%ebp),%eax
10824f: 25 00 0a 00 00 and $0xa00,%eax
108254: 3d 00 0a 00 00 cmp $0xa00,%eax
108259: 75 0d jne 108268 <open+0xf8>
10825b: 8d 75 d4 lea -0x2c(%ebp),%esi
10825e: bf 11 00 00 00 mov $0x11,%edi
108263: e9 bd 00 00 00 jmp 108325 <open+0x1b5>
/*
* Fill in the file control block based on the loc structure
* returned by successful path evaluation.
*/
iop->handlers = loc.handlers;
108268: 8b 45 dc mov -0x24(%ebp),%eax
10826b: 89 43 3c mov %eax,0x3c(%ebx)
iop->file_info = loc.node_access;
10826e: 8b 45 d4 mov -0x2c(%ebp),%eax
108271: 89 43 38 mov %eax,0x38(%ebx)
iop->flags |= rtems_libio_fcntl_flags( flags );
108274: 8b 73 14 mov 0x14(%ebx),%esi
108277: 83 ec 0c sub $0xc,%esp
10827a: ff 75 0c pushl 0xc(%ebp)
10827d: e8 38 6e 00 00 call 10f0ba <rtems_libio_fcntl_flags>
108282: 09 f0 or %esi,%eax
108284: 89 43 14 mov %eax,0x14(%ebx)
iop->pathinfo = loc;
108287: 8d 7b 18 lea 0x18(%ebx),%edi
10828a: 8d 75 d4 lea -0x2c(%ebp),%esi
10828d: b9 05 00 00 00 mov $0x5,%ecx
108292: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
if ( !iop->handlers || !iop->handlers->open_h ) {
108294: 8b 43 3c mov 0x3c(%ebx),%eax
108297: 83 c4 10 add $0x10,%esp
10829a: 85 c0 test %eax,%eax
10829c: 0f 84 cd 00 00 00 je 10836f <open+0x1ff> <== NEVER TAKEN
1082a2: 8b 00 mov (%eax),%eax
1082a4: 85 c0 test %eax,%eax
1082a6: 0f 84 c3 00 00 00 je 10836f <open+0x1ff> <== NEVER TAKEN
rc = ENOTSUP;
goto done;
}
rc = (*iop->handlers->open_h)( iop, pathname, flags, mode );
1082ac: ff 75 c4 pushl -0x3c(%ebp)
1082af: ff 75 0c pushl 0xc(%ebp)
1082b2: ff 75 08 pushl 0x8(%ebp)
1082b5: 53 push %ebx
1082b6: ff d0 call *%eax
if ( rc ) {
1082b8: 83 c4 10 add $0x10,%esp
1082bb: 85 c0 test %eax,%eax
1082bd: 74 0c je 1082cb <open+0x15b>
rc = errno;
1082bf: e8 50 a7 00 00 call 112a14 <__errno>
1082c4: 8b 38 mov (%eax),%edi
1082c6: 8d 75 d4 lea -0x2c(%ebp),%esi
goto done;
1082c9: eb 56 jmp 108321 <open+0x1b1>
/*
* Optionally truncate the file.
*/
if ( (flags & O_TRUNC) == O_TRUNC ) {
1082cb: f7 45 0c 00 04 00 00 testl $0x400,0xc(%ebp)
1082d2: 0f 84 84 00 00 00 je 10835c <open+0x1ec>
rc = ftruncate( iop - rtems_libio_iops, 0 );
1082d8: 50 push %eax
1082d9: 6a 00 push $0x0
1082db: 6a 00 push $0x0
1082dd: 89 d8 mov %ebx,%eax
1082df: 2b 05 b8 60 12 00 sub 0x1260b8,%eax
1082e5: c1 f8 06 sar $0x6,%eax
1082e8: 50 push %eax
1082e9: e8 0a 6b 00 00 call 10edf8 <ftruncate>
1082ee: 89 c7 mov %eax,%edi
if ( rc ) {
1082f0: 83 c4 10 add $0x10,%esp
1082f3: 85 c0 test %eax,%eax
1082f5: 74 65 je 10835c <open+0x1ec> <== ALWAYS TAKEN
if(errno) rc = errno;
1082f7: e8 18 a7 00 00 call 112a14 <__errno> <== NOT EXECUTED
1082fc: 83 38 00 cmpl $0x0,(%eax) <== NOT EXECUTED
1082ff: 74 07 je 108308 <open+0x198> <== NOT EXECUTED
108301: e8 0e a7 00 00 call 112a14 <__errno> <== NOT EXECUTED
108306: 8b 38 mov (%eax),%edi <== NOT EXECUTED
close( iop - rtems_libio_iops );
108308: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10830b: 2b 1d b8 60 12 00 sub 0x1260b8,%ebx <== NOT EXECUTED
108311: c1 fb 06 sar $0x6,%ebx <== NOT EXECUTED
108314: 53 push %ebx <== NOT EXECUTED
108315: e8 56 6a 00 00 call 10ed70 <close> <== NOT EXECUTED
10831a: 31 f6 xor %esi,%esi <== NOT EXECUTED
10831c: 31 db xor %ebx,%ebx <== NOT EXECUTED
10831e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
*/
done:
va_end(ap);
if ( rc ) {
108321: 85 ff test %edi,%edi
108323: 74 37 je 10835c <open+0x1ec> <== NEVER TAKEN
if ( iop )
108325: 85 db test %ebx,%ebx
108327: 74 0c je 108335 <open+0x1c5> <== NEVER TAKEN
rtems_libio_free( iop );
108329: 83 ec 0c sub $0xc,%esp
10832c: 53 push %ebx
10832d: e8 a8 6c 00 00 call 10efda <rtems_libio_free>
108332: 83 c4 10 add $0x10,%esp
if ( loc_to_free )
108335: 85 f6 test %esi,%esi
108337: 74 17 je 108350 <open+0x1e0>
rtems_filesystem_freenode( loc_to_free );
108339: 8b 46 0c mov 0xc(%esi),%eax
10833c: 85 c0 test %eax,%eax
10833e: 74 10 je 108350 <open+0x1e0> <== NEVER TAKEN
108340: 8b 40 1c mov 0x1c(%eax),%eax
108343: 85 c0 test %eax,%eax
108345: 74 09 je 108350 <open+0x1e0> <== NEVER TAKEN
108347: 83 ec 0c sub $0xc,%esp
10834a: 56 push %esi
10834b: ff d0 call *%eax
10834d: 83 c4 10 add $0x10,%esp
rtems_set_errno_and_return_minus_one( rc );
108350: e8 bf a6 00 00 call 112a14 <__errno>
108355: 89 38 mov %edi,(%eax)
108357: 83 c8 ff or $0xffffffff,%eax
10835a: eb 0b jmp 108367 <open+0x1f7>
}
return iop - rtems_libio_iops;
10835c: 89 d8 mov %ebx,%eax
10835e: 2b 05 b8 60 12 00 sub 0x1260b8,%eax
108364: c1 f8 06 sar $0x6,%eax
}
108367: 8d 65 f4 lea -0xc(%ebp),%esp
10836a: 5b pop %ebx
10836b: 5e pop %esi
10836c: 5f pop %edi
10836d: c9 leave
10836e: c3 ret
if ( loc_to_free )
rtems_filesystem_freenode( loc_to_free );
rtems_set_errno_and_return_minus_one( rc );
}
return iop - rtems_libio_iops;
10836f: 8d 75 d4 lea -0x2c(%ebp),%esi <== NOT EXECUTED
108372: bf 86 00 00 00 mov $0x86,%edi <== NOT EXECUTED
108377: eb ac jmp 108325 <open+0x1b5> <== NOT EXECUTED
00108110 <open_dev_console>:
/*
* This is a replaceable stub which opens the console, if present.
*/
void open_dev_console(void)
{
108110: 55 push %ebp
108111: 89 e5 mov %esp,%ebp
108113: 83 ec 0c sub $0xc,%esp
int stderr_fd;
/*
* Attempt to open /dev/console.
*/
if ((stdin_fd = open("/dev/console", O_RDONLY, 0)) == -1) {
108116: 6a 00 push $0x0
108118: 6a 00 push $0x0
10811a: 68 eb ea 11 00 push $0x11eaeb
10811f: e8 4c 00 00 00 call 108170 <open>
108124: 83 c4 10 add $0x10,%esp
108127: 40 inc %eax
108128: 74 41 je 10816b <open_dev_console+0x5b>
/*
* But if we find /dev/console once, we better find it twice more
* or something is REALLY wrong.
*/
if ((stdout_fd = open("/dev/console", O_WRONLY, 0)) == -1)
10812a: 52 push %edx
10812b: 6a 00 push $0x0
10812d: 6a 01 push $0x1
10812f: 68 eb ea 11 00 push $0x11eaeb
108134: e8 37 00 00 00 call 108170 <open>
108139: 83 c4 10 add $0x10,%esp
10813c: 40 inc %eax
10813d: 75 0a jne 108149 <open_dev_console+0x39> <== ALWAYS TAKEN
rtems_fatal_error_occurred( 0x55544431 ); /* error STD1 */
10813f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
108142: 68 31 44 54 55 push $0x55544431 <== NOT EXECUTED
108147: eb 1d jmp 108166 <open_dev_console+0x56> <== NOT EXECUTED
if ((stderr_fd = open("/dev/console", O_WRONLY, 0)) == -1)
108149: 50 push %eax
10814a: 6a 00 push $0x0
10814c: 6a 01 push $0x1
10814e: 68 eb ea 11 00 push $0x11eaeb
108153: e8 18 00 00 00 call 108170 <open>
108158: 83 c4 10 add $0x10,%esp
10815b: 40 inc %eax
10815c: 75 0d jne 10816b <open_dev_console+0x5b> <== ALWAYS TAKEN
rtems_fatal_error_occurred( 0x55544432 ); /* error STD2 */
10815e: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
108161: 68 32 44 54 55 push $0x55544432 <== NOT EXECUTED
108166: e8 25 2a 00 00 call 10ab90 <rtems_fatal_error_occurred><== NOT EXECUTED
}
10816b: c9 leave
10816c: c3 ret
00108b55 <oproc>:
/*
* Handle output processing
*/
static void
oproc (unsigned char c, struct rtems_termios_tty *tty)
{
108b55: 55 push %ebp
108b56: 89 e5 mov %esp,%ebp
108b58: 56 push %esi
108b59: 53 push %ebx
108b5a: 83 ec 10 sub $0x10,%esp
108b5d: 89 d3 mov %edx,%ebx
108b5f: 88 45 f4 mov %al,-0xc(%ebp)
int i;
if (tty->termios.c_oflag & OPOST) {
108b62: 8b 52 34 mov 0x34(%edx),%edx
108b65: f6 c2 01 test $0x1,%dl
108b68: 0f 84 ee 00 00 00 je 108c5c <oproc+0x107> <== NEVER TAKEN
switch (c) {
108b6e: 3c 09 cmp $0x9,%al
108b70: 74 76 je 108be8 <oproc+0x93>
108b72: 77 0d ja 108b81 <oproc+0x2c> <== ALWAYS TAKEN
108b74: 3c 08 cmp $0x8,%al <== NOT EXECUTED
108b76: 0f 85 ab 00 00 00 jne 108c27 <oproc+0xd2> <== NOT EXECUTED
108b7c: e9 99 00 00 00 jmp 108c1a <oproc+0xc5> <== NOT EXECUTED
108b81: 3c 0a cmp $0xa,%al
108b83: 74 0a je 108b8f <oproc+0x3a>
108b85: 3c 0d cmp $0xd,%al
108b87: 0f 85 9a 00 00 00 jne 108c27 <oproc+0xd2> <== ALWAYS TAKEN
108b8d: eb 33 jmp 108bc2 <oproc+0x6d> <== NOT EXECUTED
case '\n':
if (tty->termios.c_oflag & ONLRET)
108b8f: 80 e2 20 and $0x20,%dl
108b92: 74 07 je 108b9b <oproc+0x46> <== ALWAYS TAKEN
tty->column = 0;
108b94: c7 43 28 00 00 00 00 movl $0x0,0x28(%ebx) <== NOT EXECUTED
if (tty->termios.c_oflag & ONLCR) {
108b9b: f6 43 34 04 testb $0x4,0x34(%ebx)
108b9f: 0f 84 b7 00 00 00 je 108c5c <oproc+0x107> <== NEVER TAKEN
rtems_termios_puts ("\r", 1, tty);
108ba5: 56 push %esi
108ba6: 53 push %ebx
108ba7: 6a 01 push $0x1
108ba9: 68 80 01 12 00 push $0x120180
108bae: e8 82 fe ff ff call 108a35 <rtems_termios_puts>
tty->column = 0;
108bb3: c7 43 28 00 00 00 00 movl $0x0,0x28(%ebx)
108bba: 83 c4 10 add $0x10,%esp
108bbd: e9 9a 00 00 00 jmp 108c5c <oproc+0x107>
}
break;
case '\r':
if ((tty->termios.c_oflag & ONOCR) && (tty->column == 0))
108bc2: f6 c2 10 test $0x10,%dl <== NOT EXECUTED
108bc5: 74 0a je 108bd1 <oproc+0x7c> <== NOT EXECUTED
108bc7: 83 7b 28 00 cmpl $0x0,0x28(%ebx) <== NOT EXECUTED
108bcb: 0f 84 9b 00 00 00 je 108c6c <oproc+0x117> <== NOT EXECUTED
return;
if (tty->termios.c_oflag & OCRNL) {
108bd1: f6 c2 08 test $0x8,%dl <== NOT EXECUTED
108bd4: 74 09 je 108bdf <oproc+0x8a> <== NOT EXECUTED
c = '\n';
108bd6: c6 45 f4 0a movb $0xa,-0xc(%ebp) <== NOT EXECUTED
if (tty->termios.c_oflag & ONLRET)
108bda: 80 e2 20 and $0x20,%dl <== NOT EXECUTED
108bdd: 74 7d je 108c5c <oproc+0x107> <== NOT EXECUTED
tty->column = 0;
break;
}
tty->column = 0;
108bdf: c7 43 28 00 00 00 00 movl $0x0,0x28(%ebx) <== NOT EXECUTED
break;
108be6: eb 74 jmp 108c5c <oproc+0x107> <== NOT EXECUTED
case '\t':
i = 8 - (tty->column & 7);
108be8: 8b 4b 28 mov 0x28(%ebx),%ecx
108beb: 89 ce mov %ecx,%esi
108bed: 83 e6 07 and $0x7,%esi
108bf0: b8 08 00 00 00 mov $0x8,%eax
108bf5: 29 f0 sub %esi,%eax
if ((tty->termios.c_oflag & TABDLY) == XTABS) {
108bf7: 81 e2 00 18 00 00 and $0x1800,%edx
108bfd: 81 fa 00 18 00 00 cmp $0x1800,%edx
108c03: 8d 14 08 lea (%eax,%ecx,1),%edx
108c06: 75 0d jne 108c15 <oproc+0xc0> <== NEVER TAKEN
tty->column += i;
108c08: 89 53 28 mov %edx,0x28(%ebx)
rtems_termios_puts ( " ", i, tty);
108c0b: 51 push %ecx
108c0c: 53 push %ebx
108c0d: 50 push %eax
108c0e: 68 b4 fd 11 00 push $0x11fdb4
108c13: eb 4f jmp 108c64 <oproc+0x10f>
return;
}
tty->column += i;
108c15: 89 53 28 mov %edx,0x28(%ebx) <== NOT EXECUTED
break;
108c18: eb 42 jmp 108c5c <oproc+0x107> <== NOT EXECUTED
case '\b':
if (tty->column > 0)
108c1a: 8b 43 28 mov 0x28(%ebx),%eax <== NOT EXECUTED
108c1d: 85 c0 test %eax,%eax <== NOT EXECUTED
108c1f: 7e 3b jle 108c5c <oproc+0x107> <== NOT EXECUTED
tty->column--;
108c21: 48 dec %eax <== NOT EXECUTED
108c22: 89 43 28 mov %eax,0x28(%ebx) <== NOT EXECUTED
108c25: eb 35 jmp 108c5c <oproc+0x107> <== NOT EXECUTED
break;
default:
if (tty->termios.c_oflag & OLCUC)
108c27: 80 e2 02 and $0x2,%dl
108c2a: 74 1c je 108c48 <oproc+0xf3> <== ALWAYS TAKEN
c = toupper(c);
108c2c: 0f b6 c0 movzbl %al,%eax <== NOT EXECUTED
108c2f: 8b 15 20 40 12 00 mov 0x124020,%edx <== NOT EXECUTED
108c35: 0f be 54 02 01 movsbl 0x1(%edx,%eax,1),%edx <== NOT EXECUTED
108c3a: 83 e2 03 and $0x3,%edx <== NOT EXECUTED
108c3d: 83 fa 02 cmp $0x2,%edx <== NOT EXECUTED
108c40: 75 03 jne 108c45 <oproc+0xf0> <== NOT EXECUTED
108c42: 83 e8 20 sub $0x20,%eax <== NOT EXECUTED
108c45: 88 45 f4 mov %al,-0xc(%ebp) <== NOT EXECUTED
if (!iscntrl(c))
108c48: 0f b6 45 f4 movzbl -0xc(%ebp),%eax
108c4c: 8b 15 20 40 12 00 mov 0x124020,%edx
108c52: f6 44 02 01 20 testb $0x20,0x1(%edx,%eax,1)
108c57: 75 03 jne 108c5c <oproc+0x107> <== NEVER TAKEN
tty->column++;
108c59: ff 43 28 incl 0x28(%ebx)
break;
}
}
rtems_termios_puts (&c, 1, tty);
108c5c: 52 push %edx
108c5d: 53 push %ebx
108c5e: 6a 01 push $0x1
108c60: 8d 45 f4 lea -0xc(%ebp),%eax
108c63: 50 push %eax
108c64: e8 cc fd ff ff call 108a35 <rtems_termios_puts>
108c69: 83 c4 10 add $0x10,%esp
}
108c6c: 8d 65 f8 lea -0x8(%ebp),%esp
108c6f: 5b pop %ebx
108c70: 5e pop %esi
108c71: c9 leave
108c72: c3 ret
00111558 <pipe_create>:
* Called by pipe() to create an anonymous pipe.
*/
int pipe_create(
int filsdes[2]
)
{
111558: 55 push %ebp
111559: 89 e5 mov %esp,%ebp
11155b: 57 push %edi
11155c: 56 push %esi
11155d: 53 push %ebx
11155e: 83 ec 48 sub $0x48,%esp
rtems_filesystem_location_info_t loc;
rtems_libio_t *iop;
int err = 0;
/* Create /tmp if not exists */
if (rtems_filesystem_evaluate_path("/tmp", 3, RTEMS_LIBIO_PERMS_RWX, &loc, TRUE)
111561: 6a 01 push $0x1
111563: 8d 5d c4 lea -0x3c(%ebp),%ebx
111566: 53 push %ebx
111567: 6a 07 push $0x7
111569: 6a 03 push $0x3
11156b: 68 a8 0b 12 00 push $0x120ba8
111570: e8 bc 60 ff ff call 107631 <rtems_filesystem_evaluate_path>
111575: 83 c4 20 add $0x20,%esp
111578: 85 c0 test %eax,%eax
11157a: 74 2b je 1115a7 <pipe_create+0x4f> <== NEVER TAKEN
!= 0) {
if (errno != ENOENT)
11157c: e8 93 14 00 00 call 112a14 <__errno>
111581: 83 38 02 cmpl $0x2,(%eax)
111584: 0f 85 0c 01 00 00 jne 111696 <pipe_create+0x13e> <== NEVER TAKEN
return -1;
if (mkdir("/tmp", S_IRWXU|S_IRWXG|S_IRWXO|S_ISVTX) != 0)
11158a: 50 push %eax
11158b: 50 push %eax
11158c: 68 ff 03 00 00 push $0x3ff
111591: 68 a8 0b 12 00 push $0x120ba8
111596: e8 45 64 ff ff call 1079e0 <mkdir>
11159b: 83 c4 10 add $0x10,%esp
11159e: 85 c0 test %eax,%eax
1115a0: 74 1c je 1115be <pipe_create+0x66> <== ALWAYS TAKEN
1115a2: e9 ef 00 00 00 jmp 111696 <pipe_create+0x13e> <== NOT EXECUTED
return -1;
}
else
rtems_filesystem_freenode(&loc);
1115a7: 8b 45 d0 mov -0x30(%ebp),%eax <== NOT EXECUTED
1115aa: 85 c0 test %eax,%eax <== NOT EXECUTED
1115ac: 74 10 je 1115be <pipe_create+0x66> <== NOT EXECUTED
1115ae: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED
1115b1: 85 c0 test %eax,%eax <== NOT EXECUTED
1115b3: 74 09 je 1115be <pipe_create+0x66> <== NOT EXECUTED
1115b5: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1115b8: 53 push %ebx <== NOT EXECUTED
1115b9: ff d0 call *%eax <== NOT EXECUTED
1115bb: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
/* /tmp/.fifoXXXX */
char fifopath[15];
memcpy(fifopath, "/tmp/.fifo", 10);
1115be: 8d 5d d9 lea -0x27(%ebp),%ebx
1115c1: be ad 0b 12 00 mov $0x120bad,%esi
1115c6: b9 0a 00 00 00 mov $0xa,%ecx
1115cb: 89 df mov %ebx,%edi
1115cd: f3 a4 rep movsb %ds:(%esi),%es:(%edi)
sprintf(fifopath + 10, "%04x", rtems_pipe_no ++);
1115cf: 0f b7 05 c0 5e 12 00 movzwl 0x125ec0,%eax
1115d6: 8d 50 01 lea 0x1(%eax),%edx
1115d9: 66 89 15 c0 5e 12 00 mov %dx,0x125ec0
1115e0: 57 push %edi
1115e1: 50 push %eax
1115e2: 68 b8 0b 12 00 push $0x120bb8
1115e7: 8d 45 e3 lea -0x1d(%ebp),%eax
1115ea: 50 push %eax
1115eb: e8 b8 1d 00 00 call 1133a8 <sprintf>
/* Try creating FIFO file until find an available file name */
while (mkfifo(fifopath, S_IRUSR|S_IWUSR) != 0) {
1115f0: 59 pop %ecx
1115f1: 5e pop %esi
1115f2: 68 80 01 00 00 push $0x180
1115f7: 53 push %ebx
1115f8: e8 73 06 00 00 call 111c70 <mkfifo>
1115fd: 83 c4 10 add $0x10,%esp
111600: 85 c0 test %eax,%eax
111602: 74 0a je 11160e <pipe_create+0xb6> <== ALWAYS TAKEN
if (errno != EEXIST){
111604: e8 0b 14 00 00 call 112a14 <__errno> <== NOT EXECUTED
111609: e9 88 00 00 00 jmp 111696 <pipe_create+0x13e> <== NOT EXECUTED
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);
11160e: 52 push %edx
11160f: 52 push %edx
111610: 68 00 40 00 00 push $0x4000
111615: 53 push %ebx
111616: e8 55 6b ff ff call 108170 <open>
11161b: 8b 55 08 mov 0x8(%ebp),%edx
11161e: 89 02 mov %eax,(%edx)
if (filsdes[0] < 0) {
111620: 83 c4 10 add $0x10,%esp
111623: 85 c0 test %eax,%eax
111625: 79 0d jns 111634 <pipe_create+0xdc> <== NEVER TAKEN
err = errno;
111627: e8 e8 13 00 00 call 112a14 <__errno>
11162c: 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);
11162e: 83 ec 0c sub $0xc,%esp
111631: 53 push %ebx
111632: eb 53 jmp 111687 <pipe_create+0x12f>
}
else {
/* Reset open file to blocking mode */
iop = rtems_libio_iop(filsdes[0]);
111634: 31 d2 xor %edx,%edx <== NOT EXECUTED
111636: 3b 05 44 21 12 00 cmp 0x122144,%eax <== NOT EXECUTED
11163c: 73 0b jae 111649 <pipe_create+0xf1> <== NOT EXECUTED
11163e: 89 c2 mov %eax,%edx <== NOT EXECUTED
111640: c1 e2 06 shl $0x6,%edx <== NOT EXECUTED
111643: 03 15 b8 60 12 00 add 0x1260b8,%edx <== NOT EXECUTED
iop->flags &= ~LIBIO_FLAGS_NO_DELAY;
111649: 83 62 14 fe andl $0xfffffffe,0x14(%edx) <== NOT EXECUTED
filsdes[1] = open(fifopath, O_WRONLY);
11164d: 50 push %eax <== NOT EXECUTED
11164e: 50 push %eax <== NOT EXECUTED
11164f: 6a 01 push $0x1 <== NOT EXECUTED
111651: 8d 45 d9 lea -0x27(%ebp),%eax <== NOT EXECUTED
111654: 50 push %eax <== NOT EXECUTED
111655: e8 16 6b ff ff call 108170 <open> <== NOT EXECUTED
11165a: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
11165d: 89 42 04 mov %eax,0x4(%edx) <== NOT EXECUTED
if (filsdes[1] < 0) {
111660: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
111663: 31 f6 xor %esi,%esi <== NOT EXECUTED
111665: 85 c0 test %eax,%eax <== NOT EXECUTED
111667: 79 17 jns 111680 <pipe_create+0x128> <== NOT EXECUTED
err = errno;
111669: e8 a6 13 00 00 call 112a14 <__errno> <== NOT EXECUTED
11166e: 8b 30 mov (%eax),%esi <== NOT EXECUTED
close(filsdes[0]);
111670: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
111673: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
111676: ff 30 pushl (%eax) <== NOT EXECUTED
111678: e8 f3 d6 ff ff call 10ed70 <close> <== NOT EXECUTED
11167d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
unlink(fifopath);
111680: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
111683: 8d 45 d9 lea -0x27(%ebp),%eax <== NOT EXECUTED
111686: 50 push %eax <== NOT EXECUTED
111687: e8 00 06 00 00 call 111c8c <unlink>
11168c: 83 c4 10 add $0x10,%esp
}
rtems_set_errno_and_return_minus_one(err);
11168f: e8 80 13 00 00 call 112a14 <__errno>
111694: 89 30 mov %esi,(%eax)
}
111696: 83 c8 ff or $0xffffffff,%eax
111699: 8d 65 f4 lea -0xc(%ebp),%esp
11169c: 5b pop %ebx
11169d: 5e pop %esi
11169e: 5f pop %edi
11169f: c9 leave
1116a0: c3 ret
0010dae8 <pipe_free>:
/* Called with rtems_pipe_semaphore held. */
static inline void pipe_free(
pipe_control_t *pipe
)
{
10dae8: 55 push %ebp <== NOT EXECUTED
10dae9: 89 e5 mov %esp,%ebp <== NOT EXECUTED
10daeb: 53 push %ebx <== NOT EXECUTED
10daec: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED
10daef: 89 c3 mov %eax,%ebx <== NOT EXECUTED
rtems_barrier_delete(pipe->readBarrier);
10daf1: ff 70 2c pushl 0x2c(%eax) <== NOT EXECUTED
10daf4: e8 eb 1f 00 00 call 10fae4 <rtems_barrier_delete> <== NOT EXECUTED
rtems_barrier_delete(pipe->writeBarrier);
10daf9: 59 pop %ecx <== NOT EXECUTED
10dafa: ff 73 30 pushl 0x30(%ebx) <== NOT EXECUTED
10dafd: e8 e2 1f 00 00 call 10fae4 <rtems_barrier_delete> <== NOT EXECUTED
rtems_semaphore_delete(pipe->Semaphore);
10db02: 5a pop %edx <== NOT EXECUTED
10db03: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
10db06: e8 5d ca ff ff call 10a568 <rtems_semaphore_delete><== NOT EXECUTED
free(pipe->Buffer);
10db0b: 58 pop %eax <== NOT EXECUTED
10db0c: ff 33 pushl (%ebx) <== NOT EXECUTED
10db0e: e8 89 9b ff ff call 10769c <free> <== NOT EXECUTED
free(pipe);
10db13: 89 1c 24 mov %ebx,(%esp) <== NOT EXECUTED
10db16: e8 81 9b ff ff call 10769c <free> <== NOT EXECUTED
10db1b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
10db1e: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
10db21: c9 leave <== NOT EXECUTED
10db22: c3 ret <== NOT EXECUTED
0010d787 <pipe_ioctl>:
pipe_control_t *pipe,
uint32_t cmd,
void *buffer,
rtems_libio_t *iop
)
{
10d787: 55 push %ebp <== NOT EXECUTED
10d788: 89 e5 mov %esp,%ebp <== NOT EXECUTED
10d78a: 56 push %esi <== NOT EXECUTED
10d78b: 53 push %ebx <== NOT EXECUTED
10d78c: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
10d78f: 8b 75 10 mov 0x10(%ebp),%esi <== NOT EXECUTED
if (cmd == FIONREAD) {
10d792: b8 ea ff ff ff mov $0xffffffea,%eax <== NOT EXECUTED
10d797: 81 7d 0c 7f 66 04 40 cmpl $0x4004667f,0xc(%ebp) <== NOT EXECUTED
10d79e: 75 36 jne 10d7d6 <pipe_ioctl+0x4f> <== NOT EXECUTED
if (buffer == NULL)
10d7a0: b0 f2 mov $0xf2,%al <== NOT EXECUTED
10d7a2: 85 f6 test %esi,%esi <== NOT EXECUTED
10d7a4: 74 30 je 10d7d6 <pipe_ioctl+0x4f> <== NOT EXECUTED
return -EFAULT;
if (! PIPE_LOCK(pipe))
10d7a6: 50 push %eax <== NOT EXECUTED
10d7a7: 6a 00 push $0x0 <== NOT EXECUTED
10d7a9: 6a 00 push $0x0 <== NOT EXECUTED
10d7ab: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
10d7ae: e8 45 ce ff ff call 10a5f8 <rtems_semaphore_obtain><== NOT EXECUTED
10d7b3: 89 c2 mov %eax,%edx <== NOT EXECUTED
10d7b5: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10d7b8: b8 fc ff ff ff mov $0xfffffffc,%eax <== NOT EXECUTED
10d7bd: 85 d2 test %edx,%edx <== NOT EXECUTED
10d7bf: 75 15 jne 10d7d6 <pipe_ioctl+0x4f> <== NOT EXECUTED
return -EINTR;
/* Return length of pipe */
*(unsigned int *)buffer = pipe->Length;
10d7c1: 8b 43 0c mov 0xc(%ebx),%eax <== NOT EXECUTED
10d7c4: 89 06 mov %eax,(%esi) <== NOT EXECUTED
PIPE_UNLOCK(pipe);
10d7c6: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10d7c9: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
10d7cc: e8 13 cf ff ff call 10a6e4 <rtems_semaphore_release><== NOT EXECUTED
10d7d1: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
10d7d3: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
return -EINVAL;
}
10d7d6: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
10d7d9: 5b pop %ebx <== NOT EXECUTED
10d7da: 5e pop %esi <== NOT EXECUTED
10d7db: c9 leave <== NOT EXECUTED
10d7dc: c3 ret <== NOT EXECUTED
0010d730 <pipe_lseek>:
pipe_control_t *pipe,
off_t offset,
int whence,
rtems_libio_t *iop
)
{
10d730: 55 push %ebp <== NOT EXECUTED
10d731: 89 e5 mov %esp,%ebp <== NOT EXECUTED
/* Seek on pipe is not supported */
return -ESPIPE;
}
10d733: b8 e3 ff ff ff mov $0xffffffe3,%eax <== NOT EXECUTED
10d738: c9 leave <== NOT EXECUTED
10d739: c3 ret <== NOT EXECUTED
0010d7dd <pipe_read>:
pipe_control_t *pipe,
void *buffer,
size_t count,
rtems_libio_t *iop
)
{
10d7dd: 55 push %ebp <== NOT EXECUTED
10d7de: 89 e5 mov %esp,%ebp <== NOT EXECUTED
10d7e0: 57 push %edi <== NOT EXECUTED
10d7e1: 56 push %esi <== NOT EXECUTED
10d7e2: 53 push %ebx <== NOT EXECUTED
10d7e3: 83 ec 30 sub $0x30,%esp <== NOT EXECUTED
10d7e6: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
int chunk, chunk1, read = 0, ret = 0;
if (! PIPE_LOCK(pipe))
10d7e9: 6a 00 push $0x0 <== NOT EXECUTED
10d7eb: 6a 00 push $0x0 <== NOT EXECUTED
10d7ed: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
10d7f0: e8 03 ce ff ff call 10a5f8 <rtems_semaphore_obtain><== NOT EXECUTED
10d7f5: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10d7f8: c7 45 d4 00 00 00 00 movl $0x0,-0x2c(%ebp) <== NOT EXECUTED
10d7ff: 85 c0 test %eax,%eax <== NOT EXECUTED
10d801: 0f 84 08 01 00 00 je 10d90f <pipe_read+0x132> <== NOT EXECUTED
10d807: c7 45 d4 fc ff ff ff movl $0xfffffffc,-0x2c(%ebp) <== NOT EXECUTED
10d80e: e9 21 01 00 00 jmp 10d934 <pipe_read+0x157> <== NOT EXECUTED
return -EINTR;
while (read < count) {
while (PIPE_EMPTY(pipe)) {
/* Not an error */
if (pipe->Writers == 0)
10d813: 83 7b 14 00 cmpl $0x0,0x14(%ebx) <== NOT EXECUTED
10d817: 0f 84 fe 00 00 00 je 10d91b <pipe_read+0x13e> <== NOT EXECUTED
goto out_locked;
if (LIBIO_NODELAY(iop)) {
10d81d: 8b 45 14 mov 0x14(%ebp),%eax <== NOT EXECUTED
10d820: f6 40 14 01 testb $0x1,0x14(%eax) <== NOT EXECUTED
10d824: 74 0a je 10d830 <pipe_read+0x53> <== NOT EXECUTED
10d826: be f5 ff ff ff mov $0xfffffff5,%esi <== NOT EXECUTED
10d82b: e9 ed 00 00 00 jmp 10d91d <pipe_read+0x140> <== NOT EXECUTED
ret = -EAGAIN;
goto out_locked;
}
/* Wait until pipe is no more empty or no writer exists */
pipe->waitingReaders ++;
10d830: ff 43 18 incl 0x18(%ebx) <== NOT EXECUTED
PIPE_UNLOCK(pipe);
10d833: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10d836: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
10d839: e8 a6 ce ff ff call 10a6e4 <rtems_semaphore_release><== NOT EXECUTED
if (! PIPE_READWAIT(pipe))
10d83e: 59 pop %ecx <== NOT EXECUTED
10d83f: 5e pop %esi <== NOT EXECUTED
10d840: 6a 00 push $0x0 <== NOT EXECUTED
10d842: ff 73 2c pushl 0x2c(%ebx) <== NOT EXECUTED
10d845: e8 52 23 00 00 call 10fb9c <rtems_barrier_wait> <== NOT EXECUTED
10d84a: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
10d84d: 83 f8 01 cmp $0x1,%eax <== NOT EXECUTED
10d850: 19 f6 sbb %esi,%esi <== NOT EXECUTED
10d852: f7 d6 not %esi <== NOT EXECUTED
10d854: 83 e6 fc and $0xfffffffc,%esi <== NOT EXECUTED
ret = -EINTR;
if (! PIPE_LOCK(pipe)) {
10d857: 6a 00 push $0x0 <== NOT EXECUTED
10d859: 6a 00 push $0x0 <== NOT EXECUTED
10d85b: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
10d85e: e8 95 cd ff ff call 10a5f8 <rtems_semaphore_obtain><== NOT EXECUTED
10d863: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10d866: 85 c0 test %eax,%eax <== NOT EXECUTED
10d868: 74 0a je 10d874 <pipe_read+0x97> <== NOT EXECUTED
10d86a: be fc ff ff ff mov $0xfffffffc,%esi <== NOT EXECUTED
10d86f: e9 b7 00 00 00 jmp 10d92b <pipe_read+0x14e> <== NOT EXECUTED
/* WARN waitingReaders not restored! */
ret = -EINTR;
goto out_nolock;
}
pipe->waitingReaders --;
10d874: ff 4b 18 decl 0x18(%ebx) <== NOT EXECUTED
if (ret != 0)
10d877: 85 f6 test %esi,%esi <== NOT EXECUTED
10d879: 0f 85 9e 00 00 00 jne 10d91d <pipe_read+0x140> <== NOT EXECUTED
if (! PIPE_LOCK(pipe))
return -EINTR;
while (read < count) {
while (PIPE_EMPTY(pipe)) {
10d87f: 8b 53 0c mov 0xc(%ebx),%edx <== NOT EXECUTED
10d882: 85 d2 test %edx,%edx <== NOT EXECUTED
10d884: 74 8d je 10d813 <pipe_read+0x36> <== NOT EXECUTED
if (ret != 0)
goto out_locked;
}
/* Read chunk bytes */
chunk = MIN(count - read, pipe->Length);
10d886: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
10d889: 2b 45 d4 sub -0x2c(%ebp),%eax <== NOT EXECUTED
10d88c: 89 55 d0 mov %edx,-0x30(%ebp) <== NOT EXECUTED
10d88f: 39 c2 cmp %eax,%edx <== NOT EXECUTED
10d891: 76 03 jbe 10d896 <pipe_read+0xb9> <== NOT EXECUTED
10d893: 89 45 d0 mov %eax,-0x30(%ebp) <== NOT EXECUTED
chunk1 = pipe->Size - pipe->Start;
10d896: 8b 73 08 mov 0x8(%ebx),%esi <== NOT EXECUTED
10d899: 8b 43 04 mov 0x4(%ebx),%eax <== NOT EXECUTED
10d89c: 29 f0 sub %esi,%eax <== NOT EXECUTED
if (chunk > chunk1) {
10d89e: 39 45 d0 cmp %eax,-0x30(%ebp) <== NOT EXECUTED
10d8a1: 8b 7d 0c mov 0xc(%ebp),%edi <== NOT EXECUTED
10d8a4: 8b 4d d4 mov -0x2c(%ebp),%ecx <== NOT EXECUTED
10d8a7: 8d 14 0f lea (%edi,%ecx,1),%edx <== NOT EXECUTED
10d8aa: 7e 1b jle 10d8c7 <pipe_read+0xea> <== NOT EXECUTED
memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk1);
10d8ac: 03 33 add (%ebx),%esi <== NOT EXECUTED
10d8ae: 89 d7 mov %edx,%edi <== NOT EXECUTED
10d8b0: 89 c1 mov %eax,%ecx <== NOT EXECUTED
10d8b2: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
memcpy(buffer + read + chunk1, pipe->Buffer, chunk - chunk1);
10d8b4: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED
10d8b7: 01 c2 add %eax,%edx <== NOT EXECUTED
10d8b9: 03 55 0c add 0xc(%ebp),%edx <== NOT EXECUTED
10d8bc: 8b 4d d0 mov -0x30(%ebp),%ecx <== NOT EXECUTED
10d8bf: 29 c1 sub %eax,%ecx <== NOT EXECUTED
10d8c1: 8b 33 mov (%ebx),%esi <== NOT EXECUTED
10d8c3: 89 d7 mov %edx,%edi <== NOT EXECUTED
10d8c5: eb 07 jmp 10d8ce <pipe_read+0xf1> <== NOT EXECUTED
}
else
memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk);
10d8c7: 03 33 add (%ebx),%esi <== NOT EXECUTED
10d8c9: 89 d7 mov %edx,%edi <== NOT EXECUTED
10d8cb: 8b 4d d0 mov -0x30(%ebp),%ecx <== NOT EXECUTED
10d8ce: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
pipe->Start += chunk;
10d8d0: 8b 45 d0 mov -0x30(%ebp),%eax <== NOT EXECUTED
10d8d3: 03 43 08 add 0x8(%ebx),%eax <== NOT EXECUTED
pipe->Start %= pipe->Size;
10d8d6: 31 d2 xor %edx,%edx <== NOT EXECUTED
10d8d8: f7 73 04 divl 0x4(%ebx) <== NOT EXECUTED
10d8db: 89 53 08 mov %edx,0x8(%ebx) <== NOT EXECUTED
pipe->Length -= chunk;
10d8de: 8b 43 0c mov 0xc(%ebx),%eax <== NOT EXECUTED
10d8e1: 2b 45 d0 sub -0x30(%ebp),%eax <== NOT EXECUTED
10d8e4: 89 43 0c mov %eax,0xc(%ebx) <== NOT EXECUTED
/* For buffering optimization */
if (PIPE_EMPTY(pipe))
10d8e7: 85 c0 test %eax,%eax <== NOT EXECUTED
10d8e9: 75 07 jne 10d8f2 <pipe_read+0x115> <== NOT EXECUTED
pipe->Start = 0;
10d8eb: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx) <== NOT EXECUTED
if (pipe->waitingWriters > 0)
10d8f2: 83 7b 1c 00 cmpl $0x0,0x1c(%ebx) <== NOT EXECUTED
10d8f6: 74 11 je 10d909 <pipe_read+0x12c> <== NOT EXECUTED
PIPE_WAKEUPWRITERS(pipe);
10d8f8: 52 push %edx <== NOT EXECUTED
10d8f9: 52 push %edx <== NOT EXECUTED
10d8fa: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
10d8fd: 50 push %eax <== NOT EXECUTED
10d8fe: ff 73 30 pushl 0x30(%ebx) <== NOT EXECUTED
10d901: e8 3e 22 00 00 call 10fb44 <rtems_barrier_release> <== NOT EXECUTED
10d906: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
read += chunk;
10d909: 8b 4d d0 mov -0x30(%ebp),%ecx <== NOT EXECUTED
10d90c: 01 4d d4 add %ecx,-0x2c(%ebp) <== NOT EXECUTED
int chunk, chunk1, read = 0, ret = 0;
if (! PIPE_LOCK(pipe))
return -EINTR;
while (read < count) {
10d90f: 8b 7d 10 mov 0x10(%ebp),%edi <== NOT EXECUTED
10d912: 39 7d d4 cmp %edi,-0x2c(%ebp) <== NOT EXECUTED
10d915: 0f 82 64 ff ff ff jb 10d87f <pipe_read+0xa2> <== NOT EXECUTED
10d91b: 31 f6 xor %esi,%esi <== NOT EXECUTED
PIPE_WAKEUPWRITERS(pipe);
read += chunk;
}
out_locked:
PIPE_UNLOCK(pipe);
10d91d: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10d920: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
10d923: e8 bc cd ff ff call 10a6e4 <rtems_semaphore_release><== NOT EXECUTED
10d928: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
out_nolock:
if (read > 0)
10d92b: 83 7d d4 00 cmpl $0x0,-0x2c(%ebp) <== NOT EXECUTED
10d92f: 7f 03 jg 10d934 <pipe_read+0x157> <== NOT EXECUTED
10d931: 89 75 d4 mov %esi,-0x2c(%ebp) <== NOT EXECUTED
return read;
return ret;
}
10d934: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED
10d937: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
10d93a: 5b pop %ebx <== NOT EXECUTED
10d93b: 5e pop %esi <== NOT EXECUTED
10d93c: 5f pop %edi <== NOT EXECUTED
10d93d: c9 leave <== NOT EXECUTED
10d93e: c3 ret <== NOT EXECUTED
0010db23 <pipe_release>:
*/
int pipe_release(
pipe_control_t **pipep,
rtems_libio_t *iop
)
{
10db23: 55 push %ebp <== NOT EXECUTED
10db24: 89 e5 mov %esp,%ebp <== NOT EXECUTED
10db26: 57 push %edi <== NOT EXECUTED
10db27: 56 push %esi <== NOT EXECUTED
10db28: 53 push %ebx <== NOT EXECUTED
10db29: 83 ec 20 sub $0x20,%esp <== NOT EXECUTED
10db2c: 8b 7d 08 mov 0x8(%ebp),%edi <== NOT EXECUTED
pipe_control_t *pipe = *pipep;
10db2f: 8b 1f mov (%edi),%ebx <== NOT EXECUTED
uint32_t mode;
rtems_status_code sc;
sc = rtems_semaphore_obtain(pipe->Semaphore,
10db31: 6a 00 push $0x0 <== NOT EXECUTED
10db33: 6a 00 push $0x0 <== NOT EXECUTED
10db35: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
10db38: e8 bb ca ff ff call 10a5f8 <rtems_semaphore_obtain><== NOT EXECUTED
RTEMS_WAIT, RTEMS_NO_TIMEOUT);
/* WARN pipe not released! */
if(sc != RTEMS_SUCCESSFUL)
10db3d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10db40: 85 c0 test %eax,%eax <== NOT EXECUTED
10db42: 75 34 jne 10db78 <pipe_release+0x55> <== NOT EXECUTED
rtems_fatal_error_occurred(sc);
mode = LIBIO_ACCMODE(iop);
10db44: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
10db47: 8b 40 14 mov 0x14(%eax),%eax <== NOT EXECUTED
10db4a: 89 c6 mov %eax,%esi <== NOT EXECUTED
10db4c: 83 e6 06 and $0x6,%esi <== NOT EXECUTED
if (mode & LIBIO_FLAGS_READ)
10db4f: a8 02 test $0x2,%al <== NOT EXECUTED
10db51: 74 03 je 10db56 <pipe_release+0x33> <== NOT EXECUTED
pipe->Readers --;
10db53: ff 4b 10 decl 0x10(%ebx) <== NOT EXECUTED
if (mode & LIBIO_FLAGS_WRITE)
10db56: f7 c6 04 00 00 00 test $0x4,%esi <== NOT EXECUTED
10db5c: 74 03 je 10db61 <pipe_release+0x3e> <== NOT EXECUTED
pipe->Writers --;
10db5e: ff 4b 14 decl 0x14(%ebx) <== NOT EXECUTED
sc = rtems_semaphore_obtain(rtems_pipe_semaphore,
10db61: 50 push %eax <== NOT EXECUTED
10db62: 6a 00 push $0x0 <== NOT EXECUTED
10db64: 6a 00 push $0x0 <== NOT EXECUTED
10db66: ff 35 b8 5e 12 00 pushl 0x125eb8 <== NOT EXECUTED
10db6c: e8 87 ca ff ff call 10a5f8 <rtems_semaphore_obtain><== NOT EXECUTED
RTEMS_WAIT, RTEMS_NO_TIMEOUT);
/* WARN pipe not freed and pipep not set to NULL! */
if(sc != RTEMS_SUCCESSFUL)
10db71: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10db74: 85 c0 test %eax,%eax <== NOT EXECUTED
10db76: 74 09 je 10db81 <pipe_release+0x5e> <== NOT EXECUTED
rtems_fatal_error_occurred(sc);
10db78: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10db7b: 50 push %eax <== NOT EXECUTED
10db7c: e8 0f d0 ff ff call 10ab90 <rtems_fatal_error_occurred><== NOT EXECUTED
PIPE_UNLOCK(pipe);
10db81: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10db84: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
10db87: e8 58 cb ff ff call 10a6e4 <rtems_semaphore_release><== NOT EXECUTED
if (pipe->Readers == 0 && pipe->Writers == 0) {
10db8c: 8b 43 10 mov 0x10(%ebx),%eax <== NOT EXECUTED
10db8f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10db92: 85 c0 test %eax,%eax <== NOT EXECUTED
10db94: 75 15 jne 10dbab <pipe_release+0x88> <== NOT EXECUTED
10db96: 83 7b 14 00 cmpl $0x0,0x14(%ebx) <== NOT EXECUTED
10db9a: 75 0f jne 10dbab <pipe_release+0x88> <== NOT EXECUTED
#if 0
/* To delete an anonymous pipe file when all users closed it */
if (pipe->Anonymous)
delfile = TRUE;
#endif
pipe_free(pipe);
10db9c: 89 d8 mov %ebx,%eax <== NOT EXECUTED
10db9e: e8 45 ff ff ff call 10dae8 <pipe_free> <== NOT EXECUTED
*pipep = NULL;
10dba3: c7 07 00 00 00 00 movl $0x0,(%edi) <== NOT EXECUTED
if(sc != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred(sc);
PIPE_UNLOCK(pipe);
if (pipe->Readers == 0 && pipe->Writers == 0) {
10dba9: eb 30 jmp 10dbdb <pipe_release+0xb8> <== NOT EXECUTED
delfile = TRUE;
#endif
pipe_free(pipe);
*pipep = NULL;
}
else if (pipe->Readers == 0 && mode != LIBIO_FLAGS_WRITE)
10dbab: 83 fe 04 cmp $0x4,%esi <== NOT EXECUTED
10dbae: 74 0f je 10dbbf <pipe_release+0x9c> <== NOT EXECUTED
10dbb0: 85 c0 test %eax,%eax <== NOT EXECUTED
10dbb2: 75 0b jne 10dbbf <pipe_release+0x9c> <== NOT EXECUTED
/* Notify waiting Writers that all their partners left */
PIPE_WAKEUPWRITERS(pipe);
10dbb4: 57 push %edi <== NOT EXECUTED
10dbb5: 57 push %edi <== NOT EXECUTED
10dbb6: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
10dbb9: 50 push %eax <== NOT EXECUTED
10dbba: ff 73 30 pushl 0x30(%ebx) <== NOT EXECUTED
10dbbd: eb 14 jmp 10dbd3 <pipe_release+0xb0> <== NOT EXECUTED
else if (pipe->Writers == 0 && mode != LIBIO_FLAGS_READ)
10dbbf: 83 fe 02 cmp $0x2,%esi <== NOT EXECUTED
10dbc2: 74 17 je 10dbdb <pipe_release+0xb8> <== NOT EXECUTED
10dbc4: 83 7b 14 00 cmpl $0x0,0x14(%ebx) <== NOT EXECUTED
10dbc8: 75 11 jne 10dbdb <pipe_release+0xb8> <== NOT EXECUTED
PIPE_WAKEUPREADERS(pipe);
10dbca: 56 push %esi <== NOT EXECUTED
10dbcb: 56 push %esi <== NOT EXECUTED
10dbcc: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
10dbcf: 50 push %eax <== NOT EXECUTED
10dbd0: ff 73 2c pushl 0x2c(%ebx) <== NOT EXECUTED
10dbd3: e8 6c 1f 00 00 call 10fb44 <rtems_barrier_release> <== NOT EXECUTED
10dbd8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_semaphore_release(rtems_pipe_semaphore);
10dbdb: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10dbde: ff 35 b8 5e 12 00 pushl 0x125eb8 <== NOT EXECUTED
10dbe4: e8 fb ca ff ff call 10a6e4 <rtems_semaphore_release><== NOT EXECUTED
if(iop->pathinfo.ops->unlink_h(&iop->pathinfo))
return -errno;
#endif
return 0;
}
10dbe9: 31 c0 xor %eax,%eax <== NOT EXECUTED
10dbeb: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
10dbee: 5b pop %ebx <== NOT EXECUTED
10dbef: 5e pop %esi <== NOT EXECUTED
10dbf0: 5f pop %edi <== NOT EXECUTED
10dbf1: c9 leave <== NOT EXECUTED
10dbf2: c3 ret <== NOT EXECUTED
0010d93f <pipe_write>:
pipe_control_t *pipe,
const void *buffer,
size_t count,
rtems_libio_t *iop
)
{
10d93f: 55 push %ebp <== NOT EXECUTED
10d940: 89 e5 mov %esp,%ebp <== NOT EXECUTED
10d942: 57 push %edi <== NOT EXECUTED
10d943: 56 push %esi <== NOT EXECUTED
10d944: 53 push %ebx <== NOT EXECUTED
10d945: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED
10d948: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
int chunk, chunk1, written = 0, ret = 0;
/* Write nothing */
if (count == 0)
10d94b: c7 45 d4 00 00 00 00 movl $0x0,-0x2c(%ebp) <== NOT EXECUTED
10d952: 83 7d 10 00 cmpl $0x0,0x10(%ebp) <== NOT EXECUTED
10d956: 0f 84 81 01 00 00 je 10dadd <pipe_write+0x19e> <== NOT EXECUTED
return 0;
if (! PIPE_LOCK(pipe))
10d95c: 56 push %esi <== NOT EXECUTED
10d95d: 6a 00 push $0x0 <== NOT EXECUTED
10d95f: 6a 00 push $0x0 <== NOT EXECUTED
10d961: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
10d964: e8 8f cc ff ff call 10a5f8 <rtems_semaphore_obtain><== NOT EXECUTED
10d969: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10d96c: c7 45 d4 fc ff ff ff movl $0xfffffffc,-0x2c(%ebp) <== NOT EXECUTED
10d973: 85 c0 test %eax,%eax <== NOT EXECUTED
10d975: 0f 85 62 01 00 00 jne 10dadd <pipe_write+0x19e> <== NOT EXECUTED
return -EINTR;
if (pipe->Readers == 0) {
10d97b: 83 7b 10 00 cmpl $0x0,0x10(%ebx) <== NOT EXECUTED
10d97f: 75 11 jne 10d992 <pipe_write+0x53> <== NOT EXECUTED
10d981: be e0 ff ff ff mov $0xffffffe0,%esi <== NOT EXECUTED
10d986: c7 45 d4 00 00 00 00 movl $0x0,-0x2c(%ebp) <== NOT EXECUTED
10d98d: e9 1d 01 00 00 jmp 10daaf <pipe_write+0x170> <== NOT EXECUTED
ret = -EPIPE;
goto out_locked;
}
/* Write of PIPE_BUF bytes or less shall not be interleaved */
chunk = count <= pipe->Size ? count : 1;
10d992: 8b 7d 10 mov 0x10(%ebp),%edi <== NOT EXECUTED
10d995: 3b 7b 04 cmp 0x4(%ebx),%edi <== NOT EXECUTED
10d998: 76 05 jbe 10d99f <pipe_write+0x60> <== NOT EXECUTED
10d99a: bf 01 00 00 00 mov $0x1,%edi <== NOT EXECUTED
10d99f: c7 45 d4 00 00 00 00 movl $0x0,-0x2c(%ebp) <== NOT EXECUTED
10d9a6: e9 f6 00 00 00 jmp 10daa1 <pipe_write+0x162> <== NOT EXECUTED
while (written < count) {
while (PIPE_SPACE(pipe) < chunk) {
if (LIBIO_NODELAY(iop)) {
10d9ab: 8b 45 14 mov 0x14(%ebp),%eax <== NOT EXECUTED
10d9ae: f6 40 14 01 testb $0x1,0x14(%eax) <== NOT EXECUTED
10d9b2: 74 0a je 10d9be <pipe_write+0x7f> <== NOT EXECUTED
10d9b4: be f5 ff ff ff mov $0xfffffff5,%esi <== NOT EXECUTED
10d9b9: e9 f1 00 00 00 jmp 10daaf <pipe_write+0x170> <== NOT EXECUTED
ret = -EAGAIN;
goto out_locked;
}
/* Wait until there is chunk bytes space or no reader exists */
pipe->waitingWriters ++;
10d9be: ff 43 1c incl 0x1c(%ebx) <== NOT EXECUTED
PIPE_UNLOCK(pipe);
10d9c1: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10d9c4: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
10d9c7: e8 18 cd ff ff call 10a6e4 <rtems_semaphore_release><== NOT EXECUTED
if (! PIPE_WRITEWAIT(pipe))
10d9cc: 5a pop %edx <== NOT EXECUTED
10d9cd: 59 pop %ecx <== NOT EXECUTED
10d9ce: 6a 00 push $0x0 <== NOT EXECUTED
10d9d0: ff 73 30 pushl 0x30(%ebx) <== NOT EXECUTED
10d9d3: e8 c4 21 00 00 call 10fb9c <rtems_barrier_wait> <== NOT EXECUTED
10d9d8: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
10d9db: 83 f8 01 cmp $0x1,%eax <== NOT EXECUTED
10d9de: 19 f6 sbb %esi,%esi <== NOT EXECUTED
10d9e0: f7 d6 not %esi <== NOT EXECUTED
10d9e2: 83 e6 fc and $0xfffffffc,%esi <== NOT EXECUTED
ret = -EINTR;
if (! PIPE_LOCK(pipe)) {
10d9e5: 6a 00 push $0x0 <== NOT EXECUTED
10d9e7: 6a 00 push $0x0 <== NOT EXECUTED
10d9e9: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
10d9ec: e8 07 cc ff ff call 10a5f8 <rtems_semaphore_obtain><== NOT EXECUTED
10d9f1: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10d9f4: 85 c0 test %eax,%eax <== NOT EXECUTED
10d9f6: 74 0a je 10da02 <pipe_write+0xc3> <== NOT EXECUTED
10d9f8: be fc ff ff ff mov $0xfffffffc,%esi <== NOT EXECUTED
10d9fd: e9 d2 00 00 00 jmp 10dad4 <pipe_write+0x195> <== NOT EXECUTED
/* WARN waitingWriters not restored! */
ret = -EINTR;
goto out_nolock;
}
pipe->waitingWriters --;
10da02: ff 4b 1c decl 0x1c(%ebx) <== NOT EXECUTED
if (ret != 0)
10da05: 85 f6 test %esi,%esi <== NOT EXECUTED
10da07: 0f 85 a2 00 00 00 jne 10daaf <pipe_write+0x170> <== NOT EXECUTED
goto out_locked;
if (pipe->Readers == 0) {
10da0d: 83 7b 10 00 cmpl $0x0,0x10(%ebx) <== NOT EXECUTED
10da11: 75 0a jne 10da1d <pipe_write+0xde> <== NOT EXECUTED
10da13: be e0 ff ff ff mov $0xffffffe0,%esi <== NOT EXECUTED
10da18: e9 92 00 00 00 jmp 10daaf <pipe_write+0x170> <== NOT EXECUTED
/* 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) {
10da1d: 8b 73 04 mov 0x4(%ebx),%esi <== NOT EXECUTED
10da20: 8b 43 0c mov 0xc(%ebx),%eax <== NOT EXECUTED
10da23: 89 f1 mov %esi,%ecx <== NOT EXECUTED
10da25: 29 c1 sub %eax,%ecx <== NOT EXECUTED
10da27: 39 f9 cmp %edi,%ecx <== NOT EXECUTED
10da29: 72 80 jb 10d9ab <pipe_write+0x6c> <== NOT EXECUTED
ret = -EPIPE;
goto out_locked;
}
}
chunk = MIN(count - written, PIPE_SPACE(pipe));
10da2b: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
10da2e: 2b 55 d4 sub -0x2c(%ebp),%edx <== NOT EXECUTED
10da31: 89 4d d0 mov %ecx,-0x30(%ebp) <== NOT EXECUTED
10da34: 39 d1 cmp %edx,%ecx <== NOT EXECUTED
10da36: 76 03 jbe 10da3b <pipe_write+0xfc> <== NOT EXECUTED
10da38: 89 55 d0 mov %edx,-0x30(%ebp) <== NOT EXECUTED
chunk1 = pipe->Size - PIPE_WSTART(pipe);
10da3b: 03 43 08 add 0x8(%ebx),%eax <== NOT EXECUTED
10da3e: 31 d2 xor %edx,%edx <== NOT EXECUTED
10da40: f7 f6 div %esi <== NOT EXECUTED
10da42: 89 f0 mov %esi,%eax <== NOT EXECUTED
10da44: 29 d0 sub %edx,%eax <== NOT EXECUTED
if (chunk > chunk1) {
10da46: 39 45 d0 cmp %eax,-0x30(%ebp) <== NOT EXECUTED
10da49: 8b 7d 0c mov 0xc(%ebp),%edi <== NOT EXECUTED
10da4c: 8b 4d d4 mov -0x2c(%ebp),%ecx <== NOT EXECUTED
10da4f: 8d 34 0f lea (%edi,%ecx,1),%esi <== NOT EXECUTED
10da52: 7e 1c jle 10da70 <pipe_write+0x131> <== NOT EXECUTED
memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk1);
10da54: 03 13 add (%ebx),%edx <== NOT EXECUTED
10da56: 89 d7 mov %edx,%edi <== NOT EXECUTED
10da58: 89 c1 mov %eax,%ecx <== NOT EXECUTED
10da5a: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
memcpy(pipe->Buffer, buffer + written + chunk1, chunk - chunk1);
10da5c: 8b 13 mov (%ebx),%edx <== NOT EXECUTED
10da5e: 8b 4d d0 mov -0x30(%ebp),%ecx <== NOT EXECUTED
10da61: 29 c1 sub %eax,%ecx <== NOT EXECUTED
10da63: 8b 7d d4 mov -0x2c(%ebp),%edi <== NOT EXECUTED
10da66: 8d 34 38 lea (%eax,%edi,1),%esi <== NOT EXECUTED
10da69: 03 75 0c add 0xc(%ebp),%esi <== NOT EXECUTED
10da6c: 89 d7 mov %edx,%edi <== NOT EXECUTED
10da6e: eb 07 jmp 10da77 <pipe_write+0x138> <== NOT EXECUTED
}
else
memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk);
10da70: 03 13 add (%ebx),%edx <== NOT EXECUTED
10da72: 89 d7 mov %edx,%edi <== NOT EXECUTED
10da74: 8b 4d d0 mov -0x30(%ebp),%ecx <== NOT EXECUTED
10da77: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
pipe->Length += chunk;
10da79: 8b 45 d0 mov -0x30(%ebp),%eax <== NOT EXECUTED
10da7c: 01 43 0c add %eax,0xc(%ebx) <== NOT EXECUTED
if (pipe->waitingReaders > 0)
10da7f: 83 7b 18 00 cmpl $0x0,0x18(%ebx) <== NOT EXECUTED
10da83: 74 11 je 10da96 <pipe_write+0x157> <== NOT EXECUTED
PIPE_WAKEUPREADERS(pipe);
10da85: 50 push %eax <== NOT EXECUTED
10da86: 50 push %eax <== NOT EXECUTED
10da87: 8d 4d e4 lea -0x1c(%ebp),%ecx <== NOT EXECUTED
10da8a: 51 push %ecx <== NOT EXECUTED
10da8b: ff 73 2c pushl 0x2c(%ebx) <== NOT EXECUTED
10da8e: e8 b1 20 00 00 call 10fb44 <rtems_barrier_release> <== NOT EXECUTED
10da93: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
written += chunk;
10da96: 8b 7d d0 mov -0x30(%ebp),%edi <== NOT EXECUTED
10da99: 01 7d d4 add %edi,-0x2c(%ebp) <== NOT EXECUTED
10da9c: bf 01 00 00 00 mov $0x1,%edi <== NOT EXECUTED
}
/* Write of PIPE_BUF bytes or less shall not be interleaved */
chunk = count <= pipe->Size ? count : 1;
while (written < count) {
10daa1: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
10daa4: 39 45 d4 cmp %eax,-0x2c(%ebp) <== NOT EXECUTED
10daa7: 0f 82 70 ff ff ff jb 10da1d <pipe_write+0xde> <== NOT EXECUTED
10daad: 31 f6 xor %esi,%esi <== NOT EXECUTED
/* Write of more than PIPE_BUF bytes can be interleaved */
chunk = 1;
}
out_locked:
PIPE_UNLOCK(pipe);
10daaf: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10dab2: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
10dab5: e8 2a cc ff ff call 10a6e4 <rtems_semaphore_release><== NOT EXECUTED
10daba: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
out_nolock:
#ifdef RTEMS_POSIX_API
/* Signal SIGPIPE */
if (ret == -EPIPE)
10dabd: 83 fe e0 cmp $0xffffffe0,%esi <== NOT EXECUTED
10dac0: 75 12 jne 10dad4 <pipe_write+0x195> <== NOT EXECUTED
kill(getpid(), SIGPIPE);
10dac2: e8 09 14 00 00 call 10eed0 <getpid> <== NOT EXECUTED
10dac7: 57 push %edi <== NOT EXECUTED
10dac8: 57 push %edi <== NOT EXECUTED
10dac9: 6a 0d push $0xd <== NOT EXECUTED
10dacb: 50 push %eax <== NOT EXECUTED
10dacc: e8 f3 18 00 00 call 10f3c4 <kill> <== NOT EXECUTED
10dad1: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
#endif
if (written > 0)
10dad4: 83 7d d4 00 cmpl $0x0,-0x2c(%ebp) <== NOT EXECUTED
10dad8: 7f 03 jg 10dadd <pipe_write+0x19e> <== NOT EXECUTED
10dada: 89 75 d4 mov %esi,-0x2c(%ebp) <== NOT EXECUTED
return written;
return ret;
}
10dadd: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED
10dae0: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
10dae3: 5b pop %ebx <== NOT EXECUTED
10dae4: 5e pop %esi <== NOT EXECUTED
10dae5: 5f pop %edi <== NOT EXECUTED
10dae6: c9 leave <== NOT EXECUTED
10dae7: c3 ret <== NOT EXECUTED
0010aa44 <posix_memalign>:
int posix_memalign(
void **pointer,
size_t alignment,
size_t size
)
{
10aa44: 55 push %ebp
10aa45: 89 e5 mov %esp,%ebp
10aa47: 53 push %ebx
10aa48: 83 ec 04 sub $0x4,%esp
10aa4b: 8b 55 08 mov 0x8(%ebp),%edx
10aa4e: 8b 45 0c mov 0xc(%ebp),%eax
10aa51: 8b 4d 10 mov 0x10(%ebp),%ecx
/*
* Update call statistics
*/
MSBUMP(memalign_calls, 1);
10aa54: ff 05 4c ce 12 00 incl 0x12ce4c
if (((alignment - 1) & alignment) != 0 || (alignment < sizeof(void *)))
10aa5a: 8d 58 ff lea -0x1(%eax),%ebx
10aa5d: 85 c3 test %eax,%ebx
10aa5f: 75 05 jne 10aa66 <posix_memalign+0x22> <== NEVER TAKEN
10aa61: 83 f8 03 cmp $0x3,%eax
10aa64: 77 09 ja 10aa6f <posix_memalign+0x2b>
/*
* rtems_memalign does all of the error checking work EXCEPT
* for adding restrictionso on the alignment.
*/
return rtems_memalign( pointer, alignment, size );
}
10aa66: b8 16 00 00 00 mov $0x16,%eax
10aa6b: 5a pop %edx
10aa6c: 5b pop %ebx
10aa6d: c9 leave
10aa6e: c3 ret
/*
* rtems_memalign does all of the error checking work EXCEPT
* for adding restrictionso on the alignment.
*/
return rtems_memalign( pointer, alignment, size );
10aa6f: 89 4d 10 mov %ecx,0x10(%ebp)
10aa72: 89 45 0c mov %eax,0xc(%ebp)
10aa75: 89 55 08 mov %edx,0x8(%ebp)
}
10aa78: 58 pop %eax
10aa79: 5b pop %ebx
10aa7a: c9 leave
/*
* rtems_memalign does all of the error checking work EXCEPT
* for adding restrictionso on the alignment.
*/
return rtems_memalign( pointer, alignment, size );
10aa7b: e9 10 01 00 00 jmp 10ab90 <rtems_memalign>
0010eab4 <pthread_attr_setschedpolicy>:
int pthread_attr_setschedpolicy(
pthread_attr_t *attr,
int policy
)
{
10eab4: 55 push %ebp
10eab5: 89 e5 mov %esp,%ebp
10eab7: 8b 45 08 mov 0x8(%ebp),%eax
10eaba: 8b 4d 0c mov 0xc(%ebp),%ecx
if ( !attr || !attr->is_initialized )
10eabd: 85 c0 test %eax,%eax
10eabf: 74 24 je 10eae5 <pthread_attr_setschedpolicy+0x31>
10eac1: 83 38 00 cmpl $0x0,(%eax)
10eac4: 74 1f je 10eae5 <pthread_attr_setschedpolicy+0x31>
return EINVAL;
switch ( policy ) {
10eac6: 83 f9 04 cmp $0x4,%ecx
10eac9: 77 0c ja 10ead7 <pthread_attr_setschedpolicy+0x23>
10eacb: ba 01 00 00 00 mov $0x1,%edx
10ead0: d3 e2 shl %cl,%edx
10ead2: 80 e2 17 and $0x17,%dl
10ead5: 75 07 jne 10eade <pthread_attr_setschedpolicy+0x2a><== ALWAYS TAKEN
10ead7: b8 86 00 00 00 mov $0x86,%eax
10eadc: eb 0c jmp 10eaea <pthread_attr_setschedpolicy+0x36>
case SCHED_OTHER:
case SCHED_FIFO:
case SCHED_RR:
case SCHED_SPORADIC:
attr->schedpolicy = policy;
10eade: 89 48 14 mov %ecx,0x14(%eax)
10eae1: 31 c0 xor %eax,%eax
return 0;
10eae3: eb 05 jmp 10eaea <pthread_attr_setschedpolicy+0x36>
10eae5: b8 16 00 00 00 mov $0x16,%eax
default:
return ENOTSUP;
}
}
10eaea: c9 leave
10eaeb: c3 ret
0010a920 <pthread_barrier_init>:
int pthread_barrier_init(
pthread_barrier_t *barrier,
const pthread_barrierattr_t *attr,
unsigned int count
)
{
10a920: 55 push %ebp
10a921: 89 e5 mov %esp,%ebp
10a923: 57 push %edi
10a924: 56 push %esi
10a925: 53 push %ebx
10a926: 83 ec 1c sub $0x1c,%esp
10a929: 8b 5d 08 mov 0x8(%ebp),%ebx
10a92c: 8b 75 10 mov 0x10(%ebp),%esi
const pthread_barrierattr_t *the_attr;
/*
* Error check parameters
*/
if ( !barrier )
10a92f: 85 db test %ebx,%ebx
10a931: 0f 84 93 00 00 00 je 10a9ca <pthread_barrier_init+0xaa>
return EINVAL;
if ( count == 0 )
10a937: 85 f6 test %esi,%esi
10a939: 0f 84 8b 00 00 00 je 10a9ca <pthread_barrier_init+0xaa>
return EINVAL;
/*
* If the user passed in NULL, use the default attributes
*/
if ( attr ) {
10a93f: 8b 7d 0c mov 0xc(%ebp),%edi
10a942: 85 ff test %edi,%edi
10a944: 75 0f jne 10a955 <pthread_barrier_init+0x35>
the_attr = attr;
} else {
(void) pthread_barrierattr_init( &my_attr );
10a946: 83 ec 0c sub $0xc,%esp
10a949: 8d 7d d8 lea -0x28(%ebp),%edi
10a94c: 57 push %edi
10a94d: e8 1a ff ff ff call 10a86c <pthread_barrierattr_init>
10a952: 83 c4 10 add $0x10,%esp
}
/*
* Now start error checking the attributes that we are going to use
*/
if ( !the_attr->is_initialized )
10a955: 83 3f 00 cmpl $0x0,(%edi)
10a958: 74 70 je 10a9ca <pthread_barrier_init+0xaa>
return EINVAL;
switch ( the_attr->process_shared ) {
10a95a: 83 7f 04 00 cmpl $0x0,0x4(%edi)
10a95e: 75 6a jne 10a9ca <pthread_barrier_init+0xaa><== NEVER TAKEN
}
/*
* Convert from POSIX attributes to Core Barrier attributes
*/
the_attributes.discipline = CORE_BARRIER_AUTOMATIC_RELEASE;
10a960: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp)
the_attributes.maximum_count = count;
10a967: 89 75 e4 mov %esi,-0x1c(%ebp)
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
10a96a: a1 20 72 12 00 mov 0x127220,%eax
10a96f: 40 inc %eax
10a970: a3 20 72 12 00 mov %eax,0x127220
* This function allocates a barrier control block from
* the inactive chain of free barrier control blocks.
*/
RTEMS_INLINE_ROUTINE POSIX_Barrier_Control *_POSIX_Barrier_Allocate( void )
{
return (POSIX_Barrier_Control *)
10a975: 83 ec 0c sub $0xc,%esp
10a978: 68 08 76 12 00 push $0x127608
10a97d: e8 e2 1d 00 00 call 10c764 <_Objects_Allocate>
10a982: 89 c6 mov %eax,%esi
*/
_Thread_Disable_dispatch(); /* prevents deletion */
the_barrier = _POSIX_Barrier_Allocate();
if ( !the_barrier ) {
10a984: 83 c4 10 add $0x10,%esp
10a987: 85 c0 test %eax,%eax
10a989: 75 0c jne 10a997 <pthread_barrier_init+0x77>
_Thread_Enable_dispatch();
10a98b: e8 d9 29 00 00 call 10d369 <_Thread_Enable_dispatch>
10a990: b8 0b 00 00 00 mov $0xb,%eax
return EAGAIN;
10a995: eb 38 jmp 10a9cf <pthread_barrier_init+0xaf>
}
_CORE_barrier_Initialize( &the_barrier->Barrier, &the_attributes );
10a997: 50 push %eax
10a998: 50 push %eax
10a999: 8d 45 e0 lea -0x20(%ebp),%eax
10a99c: 50 push %eax
10a99d: 8d 46 10 lea 0x10(%esi),%eax
10a9a0: 50 push %eax
10a9a1: e8 8e 14 00 00 call 10be34 <_CORE_barrier_Initialize>
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
10a9a6: 8b 46 08 mov 0x8(%esi),%eax
10a9a9: 0f b7 c8 movzwl %ax,%ecx
10a9ac: 8b 15 24 76 12 00 mov 0x127624,%edx
10a9b2: 89 34 8a mov %esi,(%edx,%ecx,4)
_Objects_Get_index( the_object->id ),
the_object
);
/* ASSERT: information->is_string == false */
the_object->name.name_u32 = name;
10a9b5: c7 46 0c 00 00 00 00 movl $0x0,0xc(%esi)
);
/*
* Exit the critical section and return the user an operational barrier
*/
*barrier = the_barrier->Object.id;
10a9bc: 89 03 mov %eax,(%ebx)
_Thread_Enable_dispatch();
10a9be: e8 a6 29 00 00 call 10d369 <_Thread_Enable_dispatch>
10a9c3: 31 c0 xor %eax,%eax
return 0;
10a9c5: 83 c4 10 add $0x10,%esp
10a9c8: eb 05 jmp 10a9cf <pthread_barrier_init+0xaf>
10a9ca: b8 16 00 00 00 mov $0x16,%eax
}
10a9cf: 8d 65 f4 lea -0xc(%ebp),%esp
10a9d2: 5b pop %ebx
10a9d3: 5e pop %esi
10a9d4: 5f pop %edi
10a9d5: c9 leave
10a9d6: c3 ret
00109f88 <pthread_cleanup_pop>:
*/
void pthread_cleanup_pop(
int execute
)
{
109f88: 55 push %ebp
109f89: 89 e5 mov %esp,%ebp
109f8b: 57 push %edi
109f8c: 56 push %esi
109f8d: 53 push %ebx
109f8e: 83 ec 1c sub $0x1c,%esp
109f91: 8b 5d 08 mov 0x8(%ebp),%ebx
POSIX_Cancel_Handler_control tmp_handler;
Chain_Control *handler_stack;
POSIX_API_Control *thread_support;
ISR_Level level;
thread_support = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ];
109f94: a1 8c 62 12 00 mov 0x12628c,%eax
109f99: 8b 90 f8 00 00 00 mov 0xf8(%eax),%edx
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
109f9f: a1 d0 61 12 00 mov 0x1261d0,%eax
109fa4: 40 inc %eax
109fa5: a3 d0 61 12 00 mov %eax,0x1261d0
* ensure that we do not get prempted and deleted while we are holding
* memory that needs to be freed.
*/
_Thread_Disable_dispatch();
_ISR_Disable( level );
109faa: 9c pushf
109fab: fa cli
109fac: 5e pop %esi
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
109fad: 8d 82 e4 00 00 00 lea 0xe4(%edx),%eax
POSIX_API_Control *thread_support;
ISR_Level level;
thread_support = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ];
handler_stack = &thread_support->Cancellation_Handlers;
109fb3: 39 82 e0 00 00 00 cmp %eax,0xe0(%edx)
109fb9: 75 09 jne 109fc4 <pthread_cleanup_pop+0x3c>
_Thread_Disable_dispatch();
_ISR_Disable( level );
if ( _Chain_Is_empty( handler_stack ) ) {
_Thread_Enable_dispatch();
109fbb: e8 f5 23 00 00 call 10c3b5 <_Thread_Enable_dispatch>
_ISR_Enable( level );
109fc0: 56 push %esi
109fc1: 9d popf
return;
109fc2: eb 44 jmp 10a008 <pthread_cleanup_pop+0x80>
}
handler = (POSIX_Cancel_Handler_control *)
109fc4: 8b 40 04 mov 0x4(%eax),%eax
)
{
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
109fc7: 8b 08 mov (%eax),%ecx
previous = the_node->previous;
109fc9: 8b 50 04 mov 0x4(%eax),%edx
next->previous = previous;
109fcc: 89 51 04 mov %edx,0x4(%ecx)
previous->next = next;
109fcf: 89 0a mov %ecx,(%edx)
_Chain_Tail( handler_stack )->previous;
_Chain_Extract_unprotected( &handler->Node );
_ISR_Enable( level );
109fd1: 56 push %esi
109fd2: 9d popf
tmp_handler = *handler;
109fd3: 8d 7d d8 lea -0x28(%ebp),%edi
109fd6: b9 04 00 00 00 mov $0x4,%ecx
109fdb: 89 c6 mov %eax,%esi
109fdd: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
109fdf: 8b 75 e0 mov -0x20(%ebp),%esi
109fe2: 8b 7d e4 mov -0x1c(%ebp),%edi
_Workspace_Free( handler );
109fe5: 83 ec 0c sub $0xc,%esp
109fe8: 50 push %eax
109fe9: e8 c3 33 00 00 call 10d3b1 <_Workspace_Free>
_Thread_Enable_dispatch();
109fee: e8 c2 23 00 00 call 10c3b5 <_Thread_Enable_dispatch>
if ( execute )
109ff3: 83 c4 10 add $0x10,%esp
109ff6: 85 db test %ebx,%ebx
109ff8: 74 0e je 10a008 <pthread_cleanup_pop+0x80><== NEVER TAKEN
(*tmp_handler.routine)( tmp_handler.arg );
109ffa: 89 7d 08 mov %edi,0x8(%ebp)
109ffd: 89 f0 mov %esi,%eax
}
109fff: 8d 65 f4 lea -0xc(%ebp),%esp
10a002: 5b pop %ebx
10a003: 5e pop %esi
10a004: 5f pop %edi
10a005: c9 leave
_Workspace_Free( handler );
_Thread_Enable_dispatch();
if ( execute )
(*tmp_handler.routine)( tmp_handler.arg );
10a006: ff e0 jmp *%eax
}
10a008: 8d 65 f4 lea -0xc(%ebp),%esp
10a00b: 5b pop %ebx
10a00c: 5e pop %esi
10a00d: 5f pop %edi
10a00e: c9 leave
10a00f: c3 ret
0010a30c <pthread_cleanup_push>:
void pthread_cleanup_push(
void (*routine)( void * ),
void *arg
)
{
10a30c: 55 push %ebp
10a30d: 89 e5 mov %esp,%ebp
10a30f: 56 push %esi
10a310: 53 push %ebx
10a311: 8b 5d 08 mov 0x8(%ebp),%ebx
10a314: 8b 75 0c mov 0xc(%ebp),%esi
/*
* The POSIX standard does not address what to do when the routine
* is NULL. It also does not address what happens when we cannot
* allocate memory or anything else bad happens.
*/
if ( !routine )
10a317: 85 db test %ebx,%ebx
10a319: 74 4b je 10a366 <pthread_cleanup_push+0x5a>
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
10a31b: a1 f8 81 12 00 mov 0x1281f8,%eax
10a320: 40 inc %eax
10a321: a3 f8 81 12 00 mov %eax,0x1281f8
return;
_Thread_Disable_dispatch();
handler = _Workspace_Allocate( sizeof( POSIX_Cancel_Handler_control ) );
10a326: 83 ec 0c sub $0xc,%esp
10a329: 6a 10 push $0x10
10a32b: e8 28 3b 00 00 call 10de58 <_Workspace_Allocate>
if ( handler ) {
10a330: 83 c4 10 add $0x10,%esp
10a333: 85 c0 test %eax,%eax
10a335: 74 24 je 10a35b <pthread_cleanup_push+0x4f><== NEVER TAKEN
thread_support = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ];
handler_stack = &thread_support->Cancellation_Handlers;
10a337: 8b 15 b4 82 12 00 mov 0x1282b4,%edx
10a33d: 8b 92 f8 00 00 00 mov 0xf8(%edx),%edx
10a343: 81 c2 e0 00 00 00 add $0xe0,%edx
handler->routine = routine;
10a349: 89 58 08 mov %ebx,0x8(%eax)
handler->arg = arg;
10a34c: 89 70 0c mov %esi,0xc(%eax)
_Chain_Append( handler_stack, &handler->Node );
10a34f: 51 push %ecx
10a350: 51 push %ecx
10a351: 50 push %eax
10a352: 52 push %edx
10a353: e8 bc 15 00 00 call 10b914 <_Chain_Append>
10a358: 83 c4 10 add $0x10,%esp
}
_Thread_Enable_dispatch();
}
10a35b: 8d 65 f8 lea -0x8(%ebp),%esp
10a35e: 5b pop %ebx
10a35f: 5e pop %esi
10a360: c9 leave
handler->routine = routine;
handler->arg = arg;
_Chain_Append( handler_stack, &handler->Node );
}
_Thread_Enable_dispatch();
10a361: e9 8b 2a 00 00 jmp 10cdf1 <_Thread_Enable_dispatch>
}
10a366: 8d 65 f8 lea -0x8(%ebp),%esp
10a369: 5b pop %ebx
10a36a: 5e pop %esi
10a36b: c9 leave
10a36c: c3 ret
0010afcc <pthread_cond_destroy>:
*/
int pthread_cond_destroy(
pthread_cond_t *cond
)
{
10afcc: 55 push %ebp
10afcd: 89 e5 mov %esp,%ebp
10afcf: 53 push %ebx
10afd0: 83 ec 1c sub $0x1c,%esp
POSIX_Condition_variables_Control *the_cond;
Objects_Locations location;
the_cond = _POSIX_Condition_variables_Get( cond, &location );
10afd3: 8d 45 f4 lea -0xc(%ebp),%eax
10afd6: 50 push %eax
10afd7: ff 75 08 pushl 0x8(%ebp)
10afda: e8 59 00 00 00 call 10b038 <_POSIX_Condition_variables_Get>
10afdf: 89 c3 mov %eax,%ebx
switch ( location ) {
10afe1: 83 c4 10 add $0x10,%esp
10afe4: b8 16 00 00 00 mov $0x16,%eax
10afe9: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
10afed: 75 43 jne 10b032 <pthread_cond_destroy+0x66><== NEVER TAKEN
case OBJECTS_LOCAL:
if ( _Thread_queue_First( &the_cond->Wait_queue ) ) {
10afef: 83 ec 0c sub $0xc,%esp
10aff2: 8d 43 18 lea 0x18(%ebx),%eax
10aff5: 50 push %eax
10aff6: e8 95 36 00 00 call 10e690 <_Thread_queue_First>
10affb: 83 c4 10 add $0x10,%esp
10affe: 85 c0 test %eax,%eax
10b000: 74 0c je 10b00e <pthread_cond_destroy+0x42>
_Thread_Enable_dispatch();
10b002: e8 ee 2f 00 00 call 10dff5 <_Thread_Enable_dispatch>
10b007: b8 10 00 00 00 mov $0x10,%eax
return EBUSY;
10b00c: eb 24 jmp 10b032 <pthread_cond_destroy+0x66>
}
_Objects_Close(
10b00e: 51 push %ecx
10b00f: 51 push %ecx
10b010: 53 push %ebx
10b011: 68 88 86 12 00 push $0x128688
10b016: e8 41 24 00 00 call 10d45c <_Objects_Close>
RTEMS_INLINE_ROUTINE void _POSIX_Condition_variables_Free (
POSIX_Condition_variables_Control *the_condition_variable
)
{
_Objects_Free(
10b01b: 58 pop %eax
10b01c: 5a pop %edx
10b01d: 53 push %ebx
10b01e: 68 88 86 12 00 push $0x128688
10b023: e8 b4 26 00 00 call 10d6dc <_Objects_Free>
&_POSIX_Condition_variables_Information,
&the_cond->Object
);
_POSIX_Condition_variables_Free( the_cond );
_Thread_Enable_dispatch();
10b028: e8 c8 2f 00 00 call 10dff5 <_Thread_Enable_dispatch>
10b02d: 31 c0 xor %eax,%eax
return 0;
10b02f: 83 c4 10 add $0x10,%esp
case OBJECTS_ERROR:
break;
}
return EINVAL;
}
10b032: 8b 5d fc mov -0x4(%ebp),%ebx
10b035: c9 leave
10b036: c3 ret
0010b080 <pthread_cond_init>:
int pthread_cond_init(
pthread_cond_t *cond,
const pthread_condattr_t *attr
)
{
10b080: 55 push %ebp
10b081: 89 e5 mov %esp,%ebp
10b083: 56 push %esi
10b084: 53 push %ebx
10b085: 8b 45 0c mov 0xc(%ebp),%eax
POSIX_Condition_variables_Control *the_cond;
const pthread_condattr_t *the_attr;
if ( attr ) the_attr = attr;
10b088: bb cc 27 12 00 mov $0x1227cc,%ebx
10b08d: 85 c0 test %eax,%eax
10b08f: 74 02 je 10b093 <pthread_cond_init+0x13>
10b091: 89 c3 mov %eax,%ebx
/*
* Be careful about attributes when global!!!
*/
if ( the_attr->process_shared == PTHREAD_PROCESS_SHARED )
10b093: 83 7b 04 01 cmpl $0x1,0x4(%ebx)
10b097: 74 78 je 10b111 <pthread_cond_init+0x91><== NEVER TAKEN
return EINVAL;
if ( !the_attr->is_initialized )
10b099: 83 3b 00 cmpl $0x0,(%ebx)
10b09c: 74 73 je 10b111 <pthread_cond_init+0x91>
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
10b09e: a1 08 82 12 00 mov 0x128208,%eax
10b0a3: 40 inc %eax
10b0a4: a3 08 82 12 00 mov %eax,0x128208
*/
RTEMS_INLINE_ROUTINE POSIX_Condition_variables_Control
*_POSIX_Condition_variables_Allocate( void )
{
return (POSIX_Condition_variables_Control *)
10b0a9: 83 ec 0c sub $0xc,%esp
10b0ac: 68 88 86 12 00 push $0x128688
10b0b1: e8 3a 23 00 00 call 10d3f0 <_Objects_Allocate>
10b0b6: 89 c6 mov %eax,%esi
_Thread_Disable_dispatch();
the_cond = _POSIX_Condition_variables_Allocate();
if ( !the_cond ) {
10b0b8: 83 c4 10 add $0x10,%esp
10b0bb: 85 c0 test %eax,%eax
10b0bd: 75 0c jne 10b0cb <pthread_cond_init+0x4b>
_Thread_Enable_dispatch();
10b0bf: e8 31 2f 00 00 call 10dff5 <_Thread_Enable_dispatch>
10b0c4: b8 0c 00 00 00 mov $0xc,%eax
return ENOMEM;
10b0c9: eb 4b jmp 10b116 <pthread_cond_init+0x96>
}
the_cond->process_shared = the_attr->process_shared;
10b0cb: 8b 43 04 mov 0x4(%ebx),%eax
10b0ce: 89 46 10 mov %eax,0x10(%esi)
the_cond->Mutex = POSIX_CONDITION_VARIABLES_NO_MUTEX;
10b0d1: c7 46 14 00 00 00 00 movl $0x0,0x14(%esi)
/* XXX some more initialization might need to go here */
_Thread_queue_Initialize(
10b0d8: 6a 74 push $0x74
10b0da: 68 00 08 00 00 push $0x800
10b0df: 6a 00 push $0x0
10b0e1: 8d 46 18 lea 0x18(%esi),%eax
10b0e4: 50 push %eax
10b0e5: e8 16 36 00 00 call 10e700 <_Thread_queue_Initialize>
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
10b0ea: 8b 46 08 mov 0x8(%esi),%eax
10b0ed: 0f b7 c8 movzwl %ax,%ecx
10b0f0: 8b 15 a4 86 12 00 mov 0x1286a4,%edx
10b0f6: 89 34 8a mov %esi,(%edx,%ecx,4)
_Objects_Get_index( the_object->id ),
the_object
);
/* ASSERT: information->is_string == false */
the_object->name.name_u32 = name;
10b0f9: c7 46 0c 00 00 00 00 movl $0x0,0xc(%esi)
&_POSIX_Condition_variables_Information,
&the_cond->Object,
0
);
*cond = the_cond->Object.id;
10b100: 8b 55 08 mov 0x8(%ebp),%edx
10b103: 89 02 mov %eax,(%edx)
_Thread_Enable_dispatch();
10b105: e8 eb 2e 00 00 call 10dff5 <_Thread_Enable_dispatch>
10b10a: 31 c0 xor %eax,%eax
return 0;
10b10c: 83 c4 10 add $0x10,%esp
10b10f: eb 05 jmp 10b116 <pthread_cond_init+0x96>
10b111: b8 16 00 00 00 mov $0x16,%eax
}
10b116: 8d 65 f8 lea -0x8(%ebp),%esp
10b119: 5b pop %ebx
10b11a: 5e pop %esi
10b11b: c9 leave
10b11c: c3 ret
0010af34 <pthread_condattr_destroy>:
*/
int pthread_condattr_destroy(
pthread_condattr_t *attr
)
{
10af34: 55 push %ebp
10af35: 89 e5 mov %esp,%ebp
10af37: 8b 45 08 mov 0x8(%ebp),%eax
if ( !attr || attr->is_initialized == false )
10af3a: 85 c0 test %eax,%eax
10af3c: 74 0f je 10af4d <pthread_condattr_destroy+0x19>
10af3e: 83 38 00 cmpl $0x0,(%eax)
10af41: 74 0a je 10af4d <pthread_condattr_destroy+0x19><== NEVER TAKEN
return EINVAL;
attr->is_initialized = false;
10af43: c7 00 00 00 00 00 movl $0x0,(%eax)
10af49: 31 c0 xor %eax,%eax
return 0;
10af4b: eb 05 jmp 10af52 <pthread_condattr_destroy+0x1e>
10af4d: b8 16 00 00 00 mov $0x16,%eax
}
10af52: c9 leave
10af53: c3 ret
0010a65c <pthread_create>:
pthread_t *thread,
const pthread_attr_t *attr,
void *(*start_routine)( void * ),
void *arg
)
{
10a65c: 55 push %ebp
10a65d: 89 e5 mov %esp,%ebp
10a65f: 57 push %edi
10a660: 56 push %esi
10a661: 53 push %ebx
10a662: 83 ec 4c sub $0x4c,%esp
10a665: 8b 45 0c mov 0xc(%ebp),%eax
int schedpolicy = SCHED_RR;
struct sched_param schedparam;
Objects_Name name;
int rc;
if ( !start_routine )
10a668: c7 45 b0 0e 00 00 00 movl $0xe,-0x50(%ebp)
10a66f: 83 7d 10 00 cmpl $0x0,0x10(%ebp)
10a673: 0f 84 08 02 00 00 je 10a881 <pthread_create+0x225>
return EFAULT;
the_attr = (attr) ? attr : &_POSIX_Threads_Default_attributes;
10a679: bb 24 13 12 00 mov $0x121324,%ebx
10a67e: 85 c0 test %eax,%eax
10a680: 74 02 je 10a684 <pthread_create+0x28>
10a682: 89 c3 mov %eax,%ebx
if ( !the_attr->is_initialized )
10a684: 83 3b 00 cmpl $0x0,(%ebx)
10a687: 0f 84 ed 01 00 00 je 10a87a <pthread_create+0x21e>
* stack space if it is allowed to allocate it itself.
*
* NOTE: If the user provides the stack we will let it drop below
* twice the minimum.
*/
if ( the_attr->stackaddr && !_Stack_Is_enough(the_attr->stacksize) )
10a68d: 83 7b 04 00 cmpl $0x0,0x4(%ebx)
10a691: 74 0f je 10a6a2 <pthread_create+0x46>
10a693: 8b 43 08 mov 0x8(%ebx),%eax
10a696: 3b 05 14 32 12 00 cmp 0x123214,%eax
10a69c: 0f 82 d8 01 00 00 jb 10a87a <pthread_create+0x21e>
* If inheritsched is set to PTHREAD_INHERIT_SCHED, then this thread
* inherits scheduling attributes from the creating thread. If it is
* PTHREAD_EXPLICIT_SCHED, then scheduling parameters come from the
* attributes structure.
*/
switch ( the_attr->inheritsched ) {
10a6a2: 8b 43 10 mov 0x10(%ebx),%eax
10a6a5: 83 f8 01 cmp $0x1,%eax
10a6a8: 74 0b je 10a6b5 <pthread_create+0x59>
10a6aa: 83 f8 02 cmp $0x2,%eax
10a6ad: 0f 85 c7 01 00 00 jne 10a87a <pthread_create+0x21e>
10a6b3: eb 1f jmp 10a6d4 <pthread_create+0x78>
case PTHREAD_INHERIT_SCHED:
api = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ];
10a6b5: a1 b4 72 12 00 mov 0x1272b4,%eax
10a6ba: 8b b0 f8 00 00 00 mov 0xf8(%eax),%esi
schedpolicy = api->schedpolicy;
10a6c0: 8b 86 80 00 00 00 mov 0x80(%esi),%eax
10a6c6: 89 45 ac mov %eax,-0x54(%ebp)
schedparam = api->schedparam;
10a6c9: 8d 7d c4 lea -0x3c(%ebp),%edi
10a6cc: 81 c6 84 00 00 00 add $0x84,%esi
10a6d2: eb 0c jmp 10a6e0 <pthread_create+0x84>
break;
case PTHREAD_EXPLICIT_SCHED:
schedpolicy = the_attr->schedpolicy;
10a6d4: 8b 53 14 mov 0x14(%ebx),%edx
10a6d7: 89 55 ac mov %edx,-0x54(%ebp)
schedparam = the_attr->schedparam;
10a6da: 8d 7d c4 lea -0x3c(%ebp),%edi
10a6dd: 8d 73 18 lea 0x18(%ebx),%esi
10a6e0: b9 07 00 00 00 mov $0x7,%ecx
10a6e5: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
/*
* Check the contentionscope since rtems only supports PROCESS wide
* contention (i.e. no system wide contention).
*/
if ( the_attr->contentionscope != PTHREAD_SCOPE_PROCESS )
10a6e7: c7 45 b0 86 00 00 00 movl $0x86,-0x50(%ebp)
10a6ee: 83 7b 0c 00 cmpl $0x0,0xc(%ebx)
10a6f2: 0f 85 89 01 00 00 jne 10a881 <pthread_create+0x225>
return ENOTSUP;
/*
* Interpret the scheduling parameters.
*/
if ( !_POSIX_Priority_Is_valid( schedparam.sched_priority ) )
10a6f8: 83 ec 0c sub $0xc,%esp
10a6fb: ff 75 c4 pushl -0x3c(%ebp)
10a6fe: e8 8d 60 00 00 call 110790 <_POSIX_Priority_Is_valid>
10a703: 83 c4 10 add $0x10,%esp
10a706: 84 c0 test %al,%al
10a708: 0f 84 6c 01 00 00 je 10a87a <pthread_create+0x21e> <== NEVER TAKEN
return EINVAL;
core_priority = _POSIX_Priority_To_core( schedparam.sched_priority );
10a70e: 8b 7d c4 mov -0x3c(%ebp),%edi
RTEMS_INLINE_ROUTINE Priority_Control _POSIX_Priority_To_core(
int priority
)
{
return (Priority_Control) (POSIX_SCHEDULER_MAXIMUM_PRIORITY - priority + 1);
10a711: 0f b6 35 18 32 12 00 movzbl 0x123218,%esi
/*
* Set the core scheduling policy information.
*/
rc = _POSIX_Thread_Translate_sched_param(
10a718: 8d 45 e0 lea -0x20(%ebp),%eax
10a71b: 50 push %eax
10a71c: 8d 45 e4 lea -0x1c(%ebp),%eax
10a71f: 50 push %eax
10a720: 8d 45 c4 lea -0x3c(%ebp),%eax
10a723: 50 push %eax
10a724: ff 75 ac pushl -0x54(%ebp)
10a727: e8 84 60 00 00 call 1107b0 <_POSIX_Thread_Translate_sched_param>
10a72c: 89 45 b0 mov %eax,-0x50(%ebp)
schedpolicy,
&schedparam,
&budget_algorithm,
&budget_callout
);
if ( rc )
10a72f: 83 c4 10 add $0x10,%esp
10a732: 85 c0 test %eax,%eax
10a734: 0f 85 47 01 00 00 jne 10a881 <pthread_create+0x225>
#endif
/*
* Lock the allocator mutex for protection
*/
_RTEMS_Lock_allocator();
10a73a: 83 ec 0c sub $0xc,%esp
10a73d: ff 35 ac 72 12 00 pushl 0x1272ac
10a743: e8 b4 15 00 00 call 10bcfc <_API_Mutex_Lock>
* _POSIX_Threads_Allocate
*/
RTEMS_INLINE_ROUTINE Thread_Control *_POSIX_Threads_Allocate( void )
{
return (Thread_Control *) _Objects_Allocate( &_POSIX_Threads_Information );
10a748: c7 04 24 60 74 12 00 movl $0x127460,(%esp)
10a74f: e8 f8 1e 00 00 call 10c64c <_Objects_Allocate>
10a754: 89 c2 mov %eax,%edx
* Allocate the thread control block.
*
* NOTE: Global threads are not currently supported.
*/
the_thread = _POSIX_Threads_Allocate();
if ( !the_thread ) {
10a756: 83 c4 10 add $0x10,%esp
10a759: 85 c0 test %eax,%eax
10a75b: 75 05 jne 10a762 <pthread_create+0x106>
_RTEMS_Unlock_allocator();
10a75d: 83 ec 0c sub $0xc,%esp
10a760: eb 53 jmp 10a7b5 <pthread_create+0x159>
/*
* Initialize the core thread for this task.
*/
name.name_p = NULL; /* posix threads don't have a name by default */
status = _Thread_Initialize(
10a762: 8b 43 08 mov 0x8(%ebx),%eax
10a765: 51 push %ecx
10a766: 6a 00 push $0x0
10a768: 6a 00 push $0x0
10a76a: ff 75 e0 pushl -0x20(%ebp)
10a76d: ff 75 e4 pushl -0x1c(%ebp)
10a770: 6a 01 push $0x1
10a772: 81 e6 ff 00 00 00 and $0xff,%esi
10a778: 29 fe sub %edi,%esi
10a77a: 56 push %esi
10a77b: 6a 01 push $0x1
10a77d: 8b 0d 14 32 12 00 mov 0x123214,%ecx
10a783: d1 e1 shl %ecx
10a785: 39 c1 cmp %eax,%ecx
10a787: 73 02 jae 10a78b <pthread_create+0x12f>
10a789: 89 c1 mov %eax,%ecx
10a78b: 51 push %ecx
10a78c: ff 73 04 pushl 0x4(%ebx)
10a78f: 52 push %edx
10a790: 68 60 74 12 00 push $0x127460
10a795: 89 55 a8 mov %edx,-0x58(%ebp)
10a798: e8 77 2b 00 00 call 10d314 <_Thread_Initialize>
budget_callout,
0, /* isr level */
name /* posix threads don't have a name */
);
if ( !status ) {
10a79d: 83 c4 30 add $0x30,%esp
10a7a0: 84 c0 test %al,%al
10a7a2: 8b 55 a8 mov -0x58(%ebp),%edx
10a7a5: 75 25 jne 10a7cc <pthread_create+0x170>
RTEMS_INLINE_ROUTINE void _POSIX_Threads_Free (
Thread_Control *the_pthread
)
{
_Objects_Free( &_POSIX_Threads_Information, &the_pthread->Object );
10a7a7: 53 push %ebx
10a7a8: 53 push %ebx
10a7a9: 52 push %edx
10a7aa: 68 60 74 12 00 push $0x127460
10a7af: e8 84 21 00 00 call 10c938 <_Objects_Free>
_POSIX_Threads_Free( the_thread );
_RTEMS_Unlock_allocator();
10a7b4: 59 pop %ecx
10a7b5: ff 35 ac 72 12 00 pushl 0x1272ac
10a7bb: e8 84 15 00 00 call 10bd44 <_API_Mutex_Unlock>
10a7c0: c7 45 b0 0b 00 00 00 movl $0xb,-0x50(%ebp)
10a7c7: e9 a9 00 00 00 jmp 10a875 <pthread_create+0x219>
}
/*
* finish initializing the per API structure
*/
api = the_thread->API_Extensions[ THREAD_API_POSIX ];
10a7cc: 8b 8a f8 00 00 00 mov 0xf8(%edx),%ecx
10a7d2: 89 4d b4 mov %ecx,-0x4c(%ebp)
api->Attributes = *the_attr;
10a7d5: b9 0f 00 00 00 mov $0xf,%ecx
10a7da: 8b 7d b4 mov -0x4c(%ebp),%edi
10a7dd: 89 de mov %ebx,%esi
10a7df: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
api->detachstate = the_attr->detachstate;
10a7e1: 8b 43 38 mov 0x38(%ebx),%eax
10a7e4: 8b 4d b4 mov -0x4c(%ebp),%ecx
10a7e7: 89 41 3c mov %eax,0x3c(%ecx)
api->schedpolicy = schedpolicy;
10a7ea: 8b 45 ac mov -0x54(%ebp),%eax
10a7ed: 89 81 80 00 00 00 mov %eax,0x80(%ecx)
api->schedparam = schedparam;
10a7f3: 89 cf mov %ecx,%edi
10a7f5: 81 c7 84 00 00 00 add $0x84,%edi
10a7fb: 8d 75 c4 lea -0x3c(%ebp),%esi
10a7fe: b9 07 00 00 00 mov $0x7,%ecx
10a803: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
* This insures we evaluate the process-wide signals pending when we
* first run.
*
* NOTE: Since the thread starts with all unblocked, this is necessary.
*/
the_thread->do_post_task_switch_extension = true;
10a805: c6 42 74 01 movb $0x1,0x74(%edx)
/*
* POSIX threads are allocated and started in one operation.
*/
status = _Thread_Start(
10a809: 83 ec 0c sub $0xc,%esp
10a80c: 6a 00 push $0x0
10a80e: ff 75 14 pushl 0x14(%ebp)
10a811: ff 75 10 pushl 0x10(%ebp)
10a814: 6a 01 push $0x1
10a816: 52 push %edx
10a817: 89 55 a8 mov %edx,-0x58(%ebp)
10a81a: e8 7d 34 00 00 call 10dc9c <_Thread_Start>
_RTEMS_Unlock_allocator();
return EINVAL;
}
#endif
if ( schedpolicy == SCHED_SPORADIC ) {
10a81f: 83 c4 20 add $0x20,%esp
10a822: 83 7d ac 04 cmpl $0x4,-0x54(%ebp)
10a826: 8b 55 a8 mov -0x58(%ebp),%edx
10a829: 75 34 jne 10a85f <pthread_create+0x203>
_Watchdog_Insert_ticks(
10a82b: 83 ec 0c sub $0xc,%esp
10a82e: 8b 45 b4 mov -0x4c(%ebp),%eax
10a831: 05 8c 00 00 00 add $0x8c,%eax
10a836: 50 push %eax
10a837: e8 0c 36 00 00 call 10de48 <_Timespec_To_ticks>
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
10a83c: 8b 4d b4 mov -0x4c(%ebp),%ecx
10a83f: 89 81 b0 00 00 00 mov %eax,0xb0(%ecx)
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
10a845: 58 pop %eax
10a846: 5a pop %edx
10a847: 89 c8 mov %ecx,%eax
10a849: 05 a4 00 00 00 add $0xa4,%eax
10a84e: 50 push %eax
10a84f: 68 d4 72 12 00 push $0x1272d4
10a854: e8 a3 38 00 00 call 10e0fc <_Watchdog_Insert>
10a859: 83 c4 10 add $0x10,%esp
10a85c: 8b 55 a8 mov -0x58(%ebp),%edx
}
/*
* Return the id and indicate we successfully created the thread
*/
*thread = the_thread->Object.id;
10a85f: 8b 52 08 mov 0x8(%edx),%edx
10a862: 8b 45 08 mov 0x8(%ebp),%eax
10a865: 89 10 mov %edx,(%eax)
_RTEMS_Unlock_allocator();
10a867: 83 ec 0c sub $0xc,%esp
10a86a: ff 35 ac 72 12 00 pushl 0x1272ac
10a870: e8 cf 14 00 00 call 10bd44 <_API_Mutex_Unlock>
return 0;
10a875: 83 c4 10 add $0x10,%esp
10a878: eb 07 jmp 10a881 <pthread_create+0x225>
10a87a: c7 45 b0 16 00 00 00 movl $0x16,-0x50(%ebp)
}
10a881: 8b 45 b0 mov -0x50(%ebp),%eax
10a884: 8d 65 f4 lea -0xc(%ebp),%esp
10a887: 5b pop %ebx
10a888: 5e pop %esi
10a889: 5f pop %edi
10a88a: c9 leave
10a88b: c3 ret
001124d4 <pthread_exit>:
}
void pthread_exit(
void *value_ptr
)
{
1124d4: 55 push %ebp
1124d5: 89 e5 mov %esp,%ebp
1124d7: 83 ec 10 sub $0x10,%esp
_POSIX_Thread_Exit( _Thread_Executing, value_ptr );
1124da: ff 75 08 pushl 0x8(%ebp)
1124dd: ff 35 c4 62 12 00 pushl 0x1262c4
1124e3: e8 14 ff ff ff call 1123fc <_POSIX_Thread_Exit>
1124e8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
1124eb: c9 leave <== NOT EXECUTED
1124ec: c3 ret <== NOT EXECUTED
001124f0 <pthread_kill>:
int pthread_kill(
pthread_t thread,
int sig
)
{
1124f0: 55 push %ebp
1124f1: 89 e5 mov %esp,%ebp
1124f3: 57 push %edi
1124f4: 56 push %esi
1124f5: 53 push %ebx
1124f6: 83 ec 1c sub $0x1c,%esp
1124f9: 8b 75 0c mov 0xc(%ebp),%esi
POSIX_API_Control *api;
Thread_Control *the_thread;
Objects_Locations location;
if ( !sig )
1124fc: 85 f6 test %esi,%esi
1124fe: 74 08 je 112508 <pthread_kill+0x18> <== NEVER TAKEN
static inline bool is_valid_signo(
int signo
)
{
return ((signo) >= 1 && (signo) <= 32 );
112500: 8d 7e ff lea -0x1(%esi),%edi
rtems_set_errno_and_return_minus_one( EINVAL );
if ( !is_valid_signo(sig) )
112503: 83 ff 1f cmp $0x1f,%edi
112506: 76 0d jbe 112515 <pthread_kill+0x25>
rtems_set_errno_and_return_minus_one( EINVAL );
112508: e8 07 05 00 00 call 112a14 <__errno>
11250d: c7 00 16 00 00 00 movl $0x16,(%eax)
112513: eb 77 jmp 11258c <pthread_kill+0x9c>
the_thread = _Thread_Get( thread, &location );
112515: 52 push %edx
112516: 52 push %edx
112517: 8d 45 e4 lea -0x1c(%ebp),%eax
11251a: 50 push %eax
11251b: ff 75 08 pushl 0x8(%ebp)
11251e: e8 11 9e ff ff call 10c334 <_Thread_Get>
112523: 89 c3 mov %eax,%ebx
switch ( location ) {
112525: 83 c4 10 add $0x10,%esp
112528: 83 7d e4 00 cmpl $0x0,-0x1c(%ebp)
11252c: 75 53 jne 112581 <pthread_kill+0x91> <== NEVER TAKEN
case OBJECTS_LOCAL:
/*
* If sig == 0 then just validate arguments
*/
api = the_thread->API_Extensions[ THREAD_API_POSIX ];
11252e: 8b 90 f8 00 00 00 mov 0xf8(%eax),%edx
if ( sig ) {
if ( _POSIX_signals_Vectors[ sig ].sa_handler == SIG_IGN ) {
112534: 6b c6 0c imul $0xc,%esi,%eax
112537: 83 b8 70 67 12 00 01 cmpl $0x1,0x126770(%eax)
11253e: 74 38 je 112578 <pthread_kill+0x88> <== NEVER TAKEN
return 0;
}
/* XXX critical section */
api->signals_pending |= signo_to_mask( sig );
112540: b8 01 00 00 00 mov $0x1,%eax
112545: 89 f9 mov %edi,%ecx
112547: d3 e0 shl %cl,%eax
112549: 09 82 d0 00 00 00 or %eax,0xd0(%edx)
(void) _POSIX_signals_Unblock_thread( the_thread, sig, NULL );
11254f: 50 push %eax
112550: 6a 00 push $0x0
112552: 56 push %esi
112553: 53 push %ebx
112554: e8 a3 fd ff ff call 1122fc <_POSIX_signals_Unblock_thread>
the_thread->do_post_task_switch_extension = true;
112559: c6 43 74 01 movb $0x1,0x74(%ebx)
if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) )
11255d: a1 a0 62 12 00 mov 0x1262a0,%eax
112562: 83 c4 10 add $0x10,%esp
112565: 85 c0 test %eax,%eax
112567: 74 0f je 112578 <pthread_kill+0x88>
112569: 3b 1d c4 62 12 00 cmp 0x1262c4,%ebx
11256f: 75 07 jne 112578 <pthread_kill+0x88>
_ISR_Signals_to_thread_executing = true;
112571: c6 05 58 63 12 00 01 movb $0x1,0x126358
}
_Thread_Enable_dispatch();
112578: e8 94 9d ff ff call 10c311 <_Thread_Enable_dispatch>
11257d: 31 c0 xor %eax,%eax
return 0;
11257f: eb 0e jmp 11258f <pthread_kill+0x9f>
#endif
case OBJECTS_ERROR:
break;
}
rtems_set_errno_and_return_minus_one( ESRCH );
112581: e8 8e 04 00 00 call 112a14 <__errno> <== NOT EXECUTED
112586: c7 00 03 00 00 00 movl $0x3,(%eax) <== NOT EXECUTED
11258c: 83 c8 ff or $0xffffffff,%eax
}
11258f: 8d 65 f4 lea -0xc(%ebp),%esp
112592: 5b pop %ebx
112593: 5e pop %esi
112594: 5f pop %edi
112595: c9 leave
112596: c3 ret
0010a1b8 <pthread_mutexattr_gettype>:
#if defined(_UNIX98_THREAD_MUTEX_ATTRIBUTES)
int pthread_mutexattr_gettype(
const pthread_mutexattr_t *attr,
int *type
)
{
10a1b8: 55 push %ebp
10a1b9: 89 e5 mov %esp,%ebp
10a1bb: 8b 45 08 mov 0x8(%ebp),%eax
10a1be: 8b 55 0c mov 0xc(%ebp),%edx
if ( !attr )
10a1c1: 85 c0 test %eax,%eax
10a1c3: 74 12 je 10a1d7 <pthread_mutexattr_gettype+0x1f>
return EINVAL;
if ( !attr->is_initialized )
10a1c5: 83 38 00 cmpl $0x0,(%eax)
10a1c8: 74 0d je 10a1d7 <pthread_mutexattr_gettype+0x1f>
return EINVAL;
if ( !type )
10a1ca: 85 d2 test %edx,%edx
10a1cc: 74 09 je 10a1d7 <pthread_mutexattr_gettype+0x1f><== NEVER TAKEN
return EINVAL;
*type = attr->type;
10a1ce: 8b 40 10 mov 0x10(%eax),%eax
10a1d1: 89 02 mov %eax,(%edx)
10a1d3: 31 c0 xor %eax,%eax
return 0;
10a1d5: eb 05 jmp 10a1dc <pthread_mutexattr_gettype+0x24>
10a1d7: b8 16 00 00 00 mov $0x16,%eax
}
10a1dc: c9 leave
10a1dd: c3 ret
0010bfdc <pthread_mutexattr_setpshared>:
int pthread_mutexattr_setpshared(
pthread_mutexattr_t *attr,
int pshared
)
{
10bfdc: 55 push %ebp
10bfdd: 89 e5 mov %esp,%ebp
10bfdf: 8b 45 08 mov 0x8(%ebp),%eax
10bfe2: 8b 55 0c mov 0xc(%ebp),%edx
if ( !attr || !attr->is_initialized )
10bfe5: 85 c0 test %eax,%eax
10bfe7: 74 11 je 10bffa <pthread_mutexattr_setpshared+0x1e>
10bfe9: 83 38 00 cmpl $0x0,(%eax)
10bfec: 74 0c je 10bffa <pthread_mutexattr_setpshared+0x1e>
return EINVAL;
switch ( pshared ) {
10bfee: 83 fa 01 cmp $0x1,%edx
10bff1: 77 07 ja 10bffa <pthread_mutexattr_setpshared+0x1e><== NEVER TAKEN
case PTHREAD_PROCESS_SHARED:
case PTHREAD_PROCESS_PRIVATE:
attr->process_shared = pshared;
10bff3: 89 50 04 mov %edx,0x4(%eax)
10bff6: 31 c0 xor %eax,%eax
return 0;
10bff8: eb 05 jmp 10bfff <pthread_mutexattr_setpshared+0x23>
10bffa: b8 16 00 00 00 mov $0x16,%eax
default:
return EINVAL;
}
}
10bfff: c9 leave
10c000: c3 ret
0010a208 <pthread_mutexattr_settype>:
#if defined(_UNIX98_THREAD_MUTEX_ATTRIBUTES)
int pthread_mutexattr_settype(
pthread_mutexattr_t *attr,
int type
)
{
10a208: 55 push %ebp
10a209: 89 e5 mov %esp,%ebp
10a20b: 8b 45 08 mov 0x8(%ebp),%eax
10a20e: 8b 55 0c mov 0xc(%ebp),%edx
if ( !attr || !attr->is_initialized )
10a211: 85 c0 test %eax,%eax
10a213: 74 11 je 10a226 <pthread_mutexattr_settype+0x1e>
10a215: 83 38 00 cmpl $0x0,(%eax)
10a218: 74 0c je 10a226 <pthread_mutexattr_settype+0x1e><== NEVER TAKEN
return EINVAL;
switch ( type ) {
10a21a: 83 fa 03 cmp $0x3,%edx
10a21d: 77 07 ja 10a226 <pthread_mutexattr_settype+0x1e>
case PTHREAD_MUTEX_NORMAL:
case PTHREAD_MUTEX_RECURSIVE:
case PTHREAD_MUTEX_ERRORCHECK:
case PTHREAD_MUTEX_DEFAULT:
attr->type = type;
10a21f: 89 50 10 mov %edx,0x10(%eax)
10a222: 31 c0 xor %eax,%eax
return 0;
10a224: eb 05 jmp 10a22b <pthread_mutexattr_settype+0x23>
10a226: b8 16 00 00 00 mov $0x16,%eax
default:
return EINVAL;
}
}
10a22b: c9 leave
10a22c: c3 ret
0010ad18 <pthread_once>:
int pthread_once(
pthread_once_t *once_control,
void (*init_routine)(void)
)
{
10ad18: 55 push %ebp
10ad19: 89 e5 mov %esp,%ebp
10ad1b: 56 push %esi
10ad1c: 53 push %ebx
10ad1d: 83 ec 10 sub $0x10,%esp
10ad20: 8b 5d 08 mov 0x8(%ebp),%ebx
10ad23: 8b 75 0c mov 0xc(%ebp),%esi
if ( !once_control || !init_routine )
10ad26: 85 f6 test %esi,%esi
10ad28: 74 04 je 10ad2e <pthread_once+0x16>
10ad2a: 85 db test %ebx,%ebx
10ad2c: 75 07 jne 10ad35 <pthread_once+0x1d>
10ad2e: b8 16 00 00 00 mov $0x16,%eax
10ad33: eb 4b jmp 10ad80 <pthread_once+0x68>
return EINVAL;
if ( !once_control->init_executed ) {
10ad35: 31 c0 xor %eax,%eax
10ad37: 83 7b 04 00 cmpl $0x0,0x4(%ebx)
10ad3b: 75 43 jne 10ad80 <pthread_once+0x68>
rtems_mode saveMode;
rtems_task_mode(RTEMS_NO_PREEMPT, RTEMS_PREEMPT_MASK, &saveMode);
10ad3d: 52 push %edx
10ad3e: 8d 45 f4 lea -0xc(%ebp),%eax
10ad41: 50 push %eax
10ad42: 68 00 01 00 00 push $0x100
10ad47: 68 00 01 00 00 push $0x100
10ad4c: e8 8f 0a 00 00 call 10b7e0 <rtems_task_mode>
if ( !once_control->init_executed ) {
10ad51: 83 c4 10 add $0x10,%esp
10ad54: 83 7b 04 00 cmpl $0x0,0x4(%ebx)
10ad58: 75 0f jne 10ad69 <pthread_once+0x51> <== NEVER TAKEN
once_control->is_initialized = true;
10ad5a: c7 03 01 00 00 00 movl $0x1,(%ebx)
once_control->init_executed = true;
10ad60: c7 43 04 01 00 00 00 movl $0x1,0x4(%ebx)
(*init_routine)();
10ad67: ff d6 call *%esi
}
rtems_task_mode(saveMode, RTEMS_PREEMPT_MASK, &saveMode);
10ad69: 50 push %eax
10ad6a: 8d 45 f4 lea -0xc(%ebp),%eax
10ad6d: 50 push %eax
10ad6e: 68 00 01 00 00 push $0x100
10ad73: ff 75 f4 pushl -0xc(%ebp)
10ad76: e8 65 0a 00 00 call 10b7e0 <rtems_task_mode>
10ad7b: 31 c0 xor %eax,%eax
10ad7d: 83 c4 10 add $0x10,%esp
}
return 0;
}
10ad80: 8d 65 f8 lea -0x8(%ebp),%esp
10ad83: 5b pop %ebx
10ad84: 5e pop %esi
10ad85: c9 leave
10ad86: c3 ret
0010b290 <pthread_rwlock_init>:
int pthread_rwlock_init(
pthread_rwlock_t *rwlock,
const pthread_rwlockattr_t *attr
)
{
10b290: 55 push %ebp
10b291: 89 e5 mov %esp,%ebp
10b293: 56 push %esi
10b294: 53 push %ebx
10b295: 83 ec 10 sub $0x10,%esp
10b298: 8b 5d 08 mov 0x8(%ebp),%ebx
const pthread_rwlockattr_t *the_attr;
/*
* Error check parameters
*/
if ( !rwlock )
10b29b: 85 db test %ebx,%ebx
10b29d: 0f 84 81 00 00 00 je 10b324 <pthread_rwlock_init+0x94>
return EINVAL;
/*
* If the user passed in NULL, use the default attributes
*/
if ( attr ) {
10b2a3: 8b 75 0c mov 0xc(%ebp),%esi
10b2a6: 85 f6 test %esi,%esi
10b2a8: 75 0f jne 10b2b9 <pthread_rwlock_init+0x29>
the_attr = attr;
} else {
(void) pthread_rwlockattr_init( &default_attr );
10b2aa: 83 ec 0c sub $0xc,%esp
10b2ad: 8d 75 ec lea -0x14(%ebp),%esi
10b2b0: 56 push %esi
10b2b1: e8 86 09 00 00 call 10bc3c <pthread_rwlockattr_init>
10b2b6: 83 c4 10 add $0x10,%esp
}
/*
* Now start error checking the attributes that we are going to use
*/
if ( !the_attr->is_initialized )
10b2b9: 83 3e 00 cmpl $0x0,(%esi)
10b2bc: 74 66 je 10b324 <pthread_rwlock_init+0x94><== NEVER TAKEN
return EINVAL;
switch ( the_attr->process_shared ) {
10b2be: 83 7e 04 00 cmpl $0x0,0x4(%esi)
10b2c2: 75 60 jne 10b324 <pthread_rwlock_init+0x94><== NEVER TAKEN
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
10b2c4: a1 20 92 12 00 mov 0x129220,%eax
10b2c9: 40 inc %eax
10b2ca: a3 20 92 12 00 mov %eax,0x129220
* This function allocates a RWLock control block from
* the inactive chain of free RWLock control blocks.
*/
RTEMS_INLINE_ROUTINE POSIX_RWLock_Control *_POSIX_RWLock_Allocate( void )
{
return (POSIX_RWLock_Control *)
10b2cf: 83 ec 0c sub $0xc,%esp
10b2d2: 68 48 94 12 00 push $0x129448
10b2d7: e8 40 23 00 00 call 10d61c <_Objects_Allocate>
10b2dc: 89 c6 mov %eax,%esi
*/
_Thread_Disable_dispatch(); /* prevents deletion */
the_rwlock = _POSIX_RWLock_Allocate();
if ( !the_rwlock ) {
10b2de: 83 c4 10 add $0x10,%esp
10b2e1: 85 c0 test %eax,%eax
10b2e3: 75 0c jne 10b2f1 <pthread_rwlock_init+0x61>
_Thread_Enable_dispatch();
10b2e5: e8 37 2f 00 00 call 10e221 <_Thread_Enable_dispatch>
10b2ea: b8 0b 00 00 00 mov $0xb,%eax
return EAGAIN;
10b2ef: eb 38 jmp 10b329 <pthread_rwlock_init+0x99>
}
_CORE_RWLock_Initialize( &the_rwlock->RWLock, &the_attributes );
10b2f1: 50 push %eax
10b2f2: 50 push %eax
10b2f3: 8d 45 f4 lea -0xc(%ebp),%eax
10b2f6: 50 push %eax
10b2f7: 8d 46 10 lea 0x10(%esi),%eax
10b2fa: 50 push %eax
10b2fb: e8 a8 1b 00 00 call 10cea8 <_CORE_RWLock_Initialize>
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
10b300: 8b 46 08 mov 0x8(%esi),%eax
10b303: 0f b7 c8 movzwl %ax,%ecx
10b306: 8b 15 64 94 12 00 mov 0x129464,%edx
10b30c: 89 34 8a mov %esi,(%edx,%ecx,4)
_Objects_Get_index( the_object->id ),
the_object
);
/* ASSERT: information->is_string == false */
the_object->name.name_u32 = name;
10b30f: c7 46 0c 00 00 00 00 movl $0x0,0xc(%esi)
&_POSIX_RWLock_Information,
&the_rwlock->Object,
0
);
*rwlock = the_rwlock->Object.id;
10b316: 89 03 mov %eax,(%ebx)
_Thread_Enable_dispatch();
10b318: e8 04 2f 00 00 call 10e221 <_Thread_Enable_dispatch>
10b31d: 31 c0 xor %eax,%eax
return 0;
10b31f: 83 c4 10 add $0x10,%esp
10b322: eb 05 jmp 10b329 <pthread_rwlock_init+0x99>
10b324: b8 16 00 00 00 mov $0x16,%eax
}
10b329: 8d 65 f8 lea -0x8(%ebp),%esp
10b32c: 5b pop %ebx
10b32d: 5e pop %esi
10b32e: c9 leave
10b32f: c3 ret
0010b394 <pthread_rwlock_timedrdlock>:
int pthread_rwlock_timedrdlock(
pthread_rwlock_t *rwlock,
const struct timespec *abstime
)
{
10b394: 55 push %ebp
10b395: 89 e5 mov %esp,%ebp
10b397: 56 push %esi
10b398: 53 push %ebx
10b399: 83 ec 20 sub $0x20,%esp
10b39c: 8b 75 08 mov 0x8(%ebp),%esi
Objects_Locations location;
Watchdog_Interval ticks;
bool do_wait = true;
POSIX_Absolute_timeout_conversion_results_t status;
if ( !rwlock )
10b39f: 85 f6 test %esi,%esi
10b3a1: 0f 84 89 00 00 00 je 10b430 <pthread_rwlock_timedrdlock+0x9c>
*
* If the status is POSIX_ABSOLUTE_TIMEOUT_INVALID,
* POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST, or POSIX_ABSOLUTE_TIMEOUT_IS_NOW,
* then we should not wait.
*/
status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks );
10b3a7: 50 push %eax
10b3a8: 50 push %eax
10b3a9: 8d 45 f0 lea -0x10(%ebp),%eax
10b3ac: 50 push %eax
10b3ad: ff 75 0c pushl 0xc(%ebp)
10b3b0: e8 df 62 00 00 call 111694 <_POSIX_Absolute_timeout_to_ticks>
10b3b5: 89 c3 mov %eax,%ebx
10b3b7: 83 c4 0c add $0xc,%esp
10b3ba: 8d 45 f4 lea -0xc(%ebp),%eax
10b3bd: 50 push %eax
10b3be: ff 36 pushl (%esi)
10b3c0: 68 48 94 12 00 push $0x129448
10b3c5: e8 66 26 00 00 call 10da30 <_Objects_Get>
if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE )
do_wait = false;
the_rwlock = _POSIX_RWLock_Get( rwlock, &location );
switch ( location ) {
10b3ca: 83 c4 10 add $0x10,%esp
10b3cd: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
10b3d1: 75 5d jne 10b430 <pthread_rwlock_timedrdlock+0x9c>
int _EXFUN(pthread_rwlock_init,
(pthread_rwlock_t *__rwlock, _CONST pthread_rwlockattr_t *__attr));
int _EXFUN(pthread_rwlock_destroy, (pthread_rwlock_t *__rwlock));
int _EXFUN(pthread_rwlock_rdlock,(pthread_rwlock_t *__rwlock));
int _EXFUN(pthread_rwlock_tryrdlock,(pthread_rwlock_t *__rwlock));
int _EXFUN(pthread_rwlock_timedrdlock,
10b3d3: 83 fb 03 cmp $0x3,%ebx
10b3d6: 0f 94 c2 sete %dl
case OBJECTS_LOCAL:
_CORE_RWLock_Obtain_for_reading(
10b3d9: 83 ec 0c sub $0xc,%esp
10b3dc: 6a 00 push $0x0
10b3de: ff 75 f0 pushl -0x10(%ebp)
10b3e1: 0f b6 ca movzbl %dl,%ecx
10b3e4: 51 push %ecx
10b3e5: ff 36 pushl (%esi)
10b3e7: 83 c0 10 add $0x10,%eax
10b3ea: 50 push %eax
10b3eb: 88 55 e4 mov %dl,-0x1c(%ebp)
10b3ee: e8 e9 1a 00 00 call 10cedc <_CORE_RWLock_Obtain_for_reading>
do_wait,
ticks,
NULL
);
_Thread_Enable_dispatch();
10b3f3: 83 c4 20 add $0x20,%esp
10b3f6: e8 26 2e 00 00 call 10e221 <_Thread_Enable_dispatch>
if ( !do_wait ) {
10b3fb: 8a 55 e4 mov -0x1c(%ebp),%dl
10b3fe: 84 d2 test %dl,%dl
10b400: 75 19 jne 10b41b <pthread_rwlock_timedrdlock+0x87>
if ( _Thread_Executing->Wait.return_code == CORE_RWLOCK_UNAVAILABLE ) {
10b402: a1 dc 92 12 00 mov 0x1292dc,%eax
10b407: 83 78 34 02 cmpl $0x2,0x34(%eax)
10b40b: 75 0e jne 10b41b <pthread_rwlock_timedrdlock+0x87>
switch (status) {
10b40d: 85 db test %ebx,%ebx
10b40f: 74 1f je 10b430 <pthread_rwlock_timedrdlock+0x9c><== NEVER TAKEN
10b411: b8 74 00 00 00 mov $0x74,%eax
10b416: 83 fb 02 cmp $0x2,%ebx
10b419: 76 1a jbe 10b435 <pthread_rwlock_timedrdlock+0xa1><== ALWAYS TAKEN
break;
}
}
}
return _POSIX_RWLock_Translate_core_RWLock_return_code(
10b41b: 83 ec 0c sub $0xc,%esp
10b41e: a1 dc 92 12 00 mov 0x1292dc,%eax
10b423: ff 70 34 pushl 0x34(%eax)
10b426: e8 b9 00 00 00 call 10b4e4 <_POSIX_RWLock_Translate_core_RWLock_return_code>
10b42b: 83 c4 10 add $0x10,%esp
10b42e: eb 05 jmp 10b435 <pthread_rwlock_timedrdlock+0xa1>
10b430: b8 16 00 00 00 mov $0x16,%eax
case OBJECTS_ERROR:
break;
}
return EINVAL;
}
10b435: 8d 65 f8 lea -0x8(%ebp),%esp
10b438: 5b pop %ebx
10b439: 5e pop %esi
10b43a: c9 leave
10b43b: c3 ret
0010b43c <pthread_rwlock_timedwrlock>:
int pthread_rwlock_timedwrlock(
pthread_rwlock_t *rwlock,
const struct timespec *abstime
)
{
10b43c: 55 push %ebp
10b43d: 89 e5 mov %esp,%ebp
10b43f: 56 push %esi
10b440: 53 push %ebx
10b441: 83 ec 20 sub $0x20,%esp
10b444: 8b 75 08 mov 0x8(%ebp),%esi
Objects_Locations location;
Watchdog_Interval ticks;
bool do_wait = true;
POSIX_Absolute_timeout_conversion_results_t status;
if ( !rwlock )
10b447: 85 f6 test %esi,%esi
10b449: 0f 84 89 00 00 00 je 10b4d8 <pthread_rwlock_timedwrlock+0x9c>
*
* If the status is POSIX_ABSOLUTE_TIMEOUT_INVALID,
* POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST, or POSIX_ABSOLUTE_TIMEOUT_IS_NOW,
* then we should not wait.
*/
status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks );
10b44f: 50 push %eax
10b450: 50 push %eax
10b451: 8d 45 f0 lea -0x10(%ebp),%eax
10b454: 50 push %eax
10b455: ff 75 0c pushl 0xc(%ebp)
10b458: e8 37 62 00 00 call 111694 <_POSIX_Absolute_timeout_to_ticks>
10b45d: 89 c3 mov %eax,%ebx
10b45f: 83 c4 0c add $0xc,%esp
10b462: 8d 45 f4 lea -0xc(%ebp),%eax
10b465: 50 push %eax
10b466: ff 36 pushl (%esi)
10b468: 68 48 94 12 00 push $0x129448
10b46d: e8 be 25 00 00 call 10da30 <_Objects_Get>
if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE )
do_wait = false;
the_rwlock = _POSIX_RWLock_Get( rwlock, &location );
switch ( location ) {
10b472: 83 c4 10 add $0x10,%esp
10b475: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
10b479: 75 5d jne 10b4d8 <pthread_rwlock_timedwrlock+0x9c>
(pthread_rwlock_t *__rwlock, _CONST struct timespec *__abstime));
int _EXFUN(pthread_rwlock_unlock,(pthread_rwlock_t *__rwlock));
int _EXFUN(pthread_rwlock_wrlock,(pthread_rwlock_t *__rwlock));
int _EXFUN(pthread_rwlock_trywrlock,(pthread_rwlock_t *__rwlock));
int _EXFUN(pthread_rwlock_timedwrlock,
10b47b: 83 fb 03 cmp $0x3,%ebx
10b47e: 0f 94 c2 sete %dl
case OBJECTS_LOCAL:
_CORE_RWLock_Obtain_for_writing(
10b481: 83 ec 0c sub $0xc,%esp
10b484: 6a 00 push $0x0
10b486: ff 75 f0 pushl -0x10(%ebp)
10b489: 0f b6 ca movzbl %dl,%ecx
10b48c: 51 push %ecx
10b48d: ff 36 pushl (%esi)
10b48f: 83 c0 10 add $0x10,%eax
10b492: 50 push %eax
10b493: 88 55 e4 mov %dl,-0x1c(%ebp)
10b496: e8 f1 1a 00 00 call 10cf8c <_CORE_RWLock_Obtain_for_writing>
do_wait,
ticks,
NULL
);
_Thread_Enable_dispatch();
10b49b: 83 c4 20 add $0x20,%esp
10b49e: e8 7e 2d 00 00 call 10e221 <_Thread_Enable_dispatch>
if ( !do_wait &&
10b4a3: 8a 55 e4 mov -0x1c(%ebp),%dl
10b4a6: 84 d2 test %dl,%dl
10b4a8: 75 19 jne 10b4c3 <pthread_rwlock_timedwrlock+0x87>
(_Thread_Executing->Wait.return_code == CORE_RWLOCK_UNAVAILABLE) ) {
10b4aa: a1 dc 92 12 00 mov 0x1292dc,%eax
10b4af: 83 78 34 02 cmpl $0x2,0x34(%eax)
10b4b3: 75 0e jne 10b4c3 <pthread_rwlock_timedwrlock+0x87>
switch (status) {
10b4b5: 85 db test %ebx,%ebx
10b4b7: 74 1f je 10b4d8 <pthread_rwlock_timedwrlock+0x9c><== NEVER TAKEN
10b4b9: b8 74 00 00 00 mov $0x74,%eax
10b4be: 83 fb 02 cmp $0x2,%ebx
10b4c1: 76 1a jbe 10b4dd <pthread_rwlock_timedwrlock+0xa1><== ALWAYS TAKEN
case POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE:
break;
}
}
return _POSIX_RWLock_Translate_core_RWLock_return_code(
10b4c3: 83 ec 0c sub $0xc,%esp
10b4c6: a1 dc 92 12 00 mov 0x1292dc,%eax
10b4cb: ff 70 34 pushl 0x34(%eax)
10b4ce: e8 11 00 00 00 call 10b4e4 <_POSIX_RWLock_Translate_core_RWLock_return_code>
10b4d3: 83 c4 10 add $0x10,%esp
10b4d6: eb 05 jmp 10b4dd <pthread_rwlock_timedwrlock+0xa1>
10b4d8: b8 16 00 00 00 mov $0x16,%eax
case OBJECTS_ERROR:
break;
}
return EINVAL;
}
10b4dd: 8d 65 f8 lea -0x8(%ebp),%esp
10b4e0: 5b pop %ebx
10b4e1: 5e pop %esi
10b4e2: c9 leave
10b4e3: c3 ret
0010bc5c <pthread_rwlockattr_setpshared>:
int pthread_rwlockattr_setpshared(
pthread_rwlockattr_t *attr,
int pshared
)
{
10bc5c: 55 push %ebp
10bc5d: 89 e5 mov %esp,%ebp
10bc5f: 8b 45 08 mov 0x8(%ebp),%eax
10bc62: 8b 55 0c mov 0xc(%ebp),%edx
if ( !attr )
10bc65: 85 c0 test %eax,%eax
10bc67: 74 11 je 10bc7a <pthread_rwlockattr_setpshared+0x1e>
return EINVAL;
if ( !attr->is_initialized )
10bc69: 83 38 00 cmpl $0x0,(%eax)
10bc6c: 74 0c je 10bc7a <pthread_rwlockattr_setpshared+0x1e>
return EINVAL;
switch ( pshared ) {
10bc6e: 83 fa 01 cmp $0x1,%edx
10bc71: 77 07 ja 10bc7a <pthread_rwlockattr_setpshared+0x1e><== NEVER TAKEN
case PTHREAD_PROCESS_SHARED:
case PTHREAD_PROCESS_PRIVATE:
attr->process_shared = pshared;
10bc73: 89 50 04 mov %edx,0x4(%eax)
10bc76: 31 c0 xor %eax,%eax
return 0;
10bc78: eb 05 jmp 10bc7f <pthread_rwlockattr_setpshared+0x23>
10bc7a: b8 16 00 00 00 mov $0x16,%eax
default:
return EINVAL;
}
}
10bc7f: c9 leave
10bc80: c3 ret
0010cbc4 <pthread_setschedparam>:
int pthread_setschedparam(
pthread_t thread,
int policy,
struct sched_param *param
)
{
10cbc4: 55 push %ebp
10cbc5: 89 e5 mov %esp,%ebp
10cbc7: 57 push %edi
10cbc8: 56 push %esi
10cbc9: 53 push %ebx
10cbca: 83 ec 2c sub $0x2c,%esp
10cbcd: 8b 75 10 mov 0x10(%ebp),%esi
int rc;
/*
* Check all the parameters
*/
if ( !param )
10cbd0: c7 45 d4 16 00 00 00 movl $0x16,-0x2c(%ebp)
10cbd7: 85 f6 test %esi,%esi
10cbd9: 0f 84 fb 00 00 00 je 10ccda <pthread_setschedparam+0x116>
return EINVAL;
rc = _POSIX_Thread_Translate_sched_param(
10cbdf: 8d 45 e0 lea -0x20(%ebp),%eax
10cbe2: 50 push %eax
10cbe3: 8d 45 e4 lea -0x1c(%ebp),%eax
10cbe6: 50 push %eax
10cbe7: 56 push %esi
10cbe8: ff 75 0c pushl 0xc(%ebp)
10cbeb: e8 04 5a 00 00 call 1125f4 <_POSIX_Thread_Translate_sched_param>
10cbf0: 89 45 d4 mov %eax,-0x2c(%ebp)
policy,
param,
&budget_algorithm,
&budget_callout
);
if ( rc )
10cbf3: 83 c4 10 add $0x10,%esp
10cbf6: 85 c0 test %eax,%eax
10cbf8: 0f 85 dc 00 00 00 jne 10ccda <pthread_setschedparam+0x116>
return rc;
/*
* Actually change the scheduling policy and parameters
*/
the_thread = _Thread_Get( thread, &location );
10cbfe: 53 push %ebx
10cbff: 53 push %ebx
10cc00: 8d 45 dc lea -0x24(%ebp),%eax
10cc03: 50 push %eax
10cc04: ff 75 08 pushl 0x8(%ebp)
10cc07: e8 58 24 00 00 call 10f064 <_Thread_Get>
10cc0c: 89 c2 mov %eax,%edx
switch ( location ) {
10cc0e: 83 c4 10 add $0x10,%esp
10cc11: 83 7d dc 00 cmpl $0x0,-0x24(%ebp)
10cc15: 74 0c je 10cc23 <pthread_setschedparam+0x5f>
10cc17: c7 45 d4 03 00 00 00 movl $0x3,-0x2c(%ebp)
10cc1e: e9 b7 00 00 00 jmp 10ccda <pthread_setschedparam+0x116>
case OBJECTS_LOCAL:
api = the_thread->API_Extensions[ THREAD_API_POSIX ];
10cc23: 8b 98 f8 00 00 00 mov 0xf8(%eax),%ebx
if ( api->schedpolicy == SCHED_SPORADIC )
10cc29: 83 bb 80 00 00 00 04 cmpl $0x4,0x80(%ebx)
10cc30: 75 18 jne 10cc4a <pthread_setschedparam+0x86>
(void) _Watchdog_Remove( &api->Sporadic_timer );
10cc32: 83 ec 0c sub $0xc,%esp
10cc35: 8d 83 a4 00 00 00 lea 0xa4(%ebx),%eax
10cc3b: 50 push %eax
10cc3c: 89 55 d0 mov %edx,-0x30(%ebp)
10cc3f: e8 1c 34 00 00 call 110060 <_Watchdog_Remove>
10cc44: 83 c4 10 add $0x10,%esp
10cc47: 8b 55 d0 mov -0x30(%ebp),%edx
api->schedpolicy = policy;
10cc4a: 8b 45 0c mov 0xc(%ebp),%eax
10cc4d: 89 83 80 00 00 00 mov %eax,0x80(%ebx)
api->schedparam = *param;
10cc53: 8d bb 84 00 00 00 lea 0x84(%ebx),%edi
10cc59: b9 07 00 00 00 mov $0x7,%ecx
10cc5e: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
the_thread->budget_algorithm = budget_algorithm;
10cc60: 8b 45 e4 mov -0x1c(%ebp),%eax
10cc63: 89 42 7c mov %eax,0x7c(%edx)
the_thread->budget_callout = budget_callout;
10cc66: 8b 45 e0 mov -0x20(%ebp),%eax
10cc69: 89 82 80 00 00 00 mov %eax,0x80(%edx)
switch ( api->schedpolicy ) {
10cc6f: 83 7d 0c 00 cmpl $0x0,0xc(%ebp)
10cc73: 78 60 js 10ccd5 <pthread_setschedparam+0x111><== NEVER TAKEN
10cc75: 83 7d 0c 02 cmpl $0x2,0xc(%ebp)
10cc79: 7e 08 jle 10cc83 <pthread_setschedparam+0xbf>
10cc7b: 83 7d 0c 04 cmpl $0x4,0xc(%ebp)
10cc7f: 75 54 jne 10ccd5 <pthread_setschedparam+0x111><== NEVER TAKEN
10cc81: eb 24 jmp 10cca7 <pthread_setschedparam+0xe3>
case SCHED_OTHER:
case SCHED_FIFO:
case SCHED_RR:
the_thread->cpu_time_budget = _Thread_Ticks_per_timeslice;
10cc83: a1 24 b2 12 00 mov 0x12b224,%eax
10cc88: 89 42 78 mov %eax,0x78(%edx)
10cc8b: 0f b6 05 18 72 12 00 movzbl 0x127218,%eax
10cc92: 2b 83 84 00 00 00 sub 0x84(%ebx),%eax
the_thread->real_priority =
10cc98: 89 42 18 mov %eax,0x18(%edx)
_POSIX_Priority_To_core( api->schedparam.sched_priority );
_Thread_Change_priority(
10cc9b: 51 push %ecx
10cc9c: 6a 01 push $0x1
10cc9e: 50 push %eax
10cc9f: 52 push %edx
10cca0: e8 ff 1e 00 00 call 10eba4 <_Thread_Change_priority>
10cca5: eb 2b jmp 10ccd2 <pthread_setschedparam+0x10e>
true
);
break;
case SCHED_SPORADIC:
api->ss_high_priority = api->schedparam.sched_priority;
10cca7: 8b 83 84 00 00 00 mov 0x84(%ebx),%eax
10ccad: 89 83 a0 00 00 00 mov %eax,0xa0(%ebx)
_Watchdog_Remove( &api->Sporadic_timer );
10ccb3: 83 ec 0c sub $0xc,%esp
10ccb6: 81 c3 a4 00 00 00 add $0xa4,%ebx
10ccbc: 53 push %ebx
10ccbd: 89 55 d0 mov %edx,-0x30(%ebp)
10ccc0: e8 9b 33 00 00 call 110060 <_Watchdog_Remove>
_POSIX_Threads_Sporadic_budget_TSR( 0, the_thread );
10ccc5: 58 pop %eax
10ccc6: 5a pop %edx
10ccc7: 8b 55 d0 mov -0x30(%ebp),%edx
10ccca: 52 push %edx
10cccb: 6a 00 push $0x0
10cccd: e8 61 fe ff ff call 10cb33 <_POSIX_Threads_Sporadic_budget_TSR>
10ccd2: 83 c4 10 add $0x10,%esp
break;
}
_Thread_Enable_dispatch();
10ccd5: e8 67 23 00 00 call 10f041 <_Thread_Enable_dispatch>
case OBJECTS_ERROR:
break;
}
return ESRCH;
}
10ccda: 8b 45 d4 mov -0x2c(%ebp),%eax
10ccdd: 8d 65 f4 lea -0xc(%ebp),%esp
10cce0: 5b pop %ebx
10cce1: 5e pop %esi
10cce2: 5f pop %edi
10cce3: c9 leave
10cce4: c3 ret
0010aac8 <pthread_testcancel>:
*
* 18.2.2 Setting Cancelability State, P1003.1c/Draft 10, p. 183
*/
void pthread_testcancel( void )
{
10aac8: 55 push %ebp
10aac9: 89 e5 mov %esp,%ebp
10aacb: 53 push %ebx
10aacc: 83 ec 04 sub $0x4,%esp
* Don't even think about deleting a resource from an ISR.
* Besides this request is supposed to be for _Thread_Executing
* and the ISR context is not a thread.
*/
if ( _ISR_Is_in_progress() )
10aacf: a1 90 82 12 00 mov 0x128290,%eax
10aad4: 85 c0 test %eax,%eax
10aad6: 75 48 jne 10ab20 <pthread_testcancel+0x58><== NEVER TAKEN
return;
thread_support = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ];
10aad8: a1 b4 82 12 00 mov 0x1282b4,%eax
10aadd: 8b 80 f8 00 00 00 mov 0xf8(%eax),%eax
10aae3: 8b 15 f8 81 12 00 mov 0x1281f8,%edx
10aae9: 42 inc %edx
10aaea: 89 15 f8 81 12 00 mov %edx,0x1281f8
_Thread_Disable_dispatch();
if ( thread_support->cancelability_state == PTHREAD_CANCEL_ENABLE &&
10aaf0: 31 db xor %ebx,%ebx
10aaf2: 83 b8 d4 00 00 00 00 cmpl $0x0,0xd4(%eax)
10aaf9: 75 0a jne 10ab05 <pthread_testcancel+0x3d><== NEVER TAKEN
/* Setting Cancelability State, P1003.1c/Draft 10, p. 183 */
int _EXFUN(pthread_setcancelstate, (int __state, int *__oldstate));
int _EXFUN(pthread_setcanceltype, (int __type, int *__oldtype));
void _EXFUN(pthread_testcancel, (void));
10aafb: 83 b8 dc 00 00 00 00 cmpl $0x0,0xdc(%eax)
10ab02: 0f 95 c3 setne %bl
thread_support->cancelation_requested )
cancel = true;
_Thread_Enable_dispatch();
10ab05: e8 e7 22 00 00 call 10cdf1 <_Thread_Enable_dispatch>
if ( cancel )
10ab0a: 84 db test %bl,%bl
10ab0c: 74 12 je 10ab20 <pthread_testcancel+0x58>
_POSIX_Thread_Exit( _Thread_Executing, PTHREAD_CANCELED );
10ab0e: 50 push %eax
10ab0f: 50 push %eax
10ab10: 6a ff push $0xffffffff
10ab12: ff 35 b4 82 12 00 pushl 0x1282b4
10ab18: e8 87 59 00 00 call 1104a4 <_POSIX_Thread_Exit>
10ab1d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
10ab20: 8b 5d fc mov -0x4(%ebp),%ebx
10ab23: c9 leave
10ab24: c3 ret
0010e9a3 <ramdisk_allocate>:
void *area_begin,
uint32_t block_size,
rtems_blkdev_bnum block_count,
bool trace
)
{
10e9a3: 55 push %ebp
10e9a4: 89 e5 mov %esp,%ebp
10e9a6: 57 push %edi
10e9a7: 56 push %esi
10e9a8: 53 push %ebx
10e9a9: 83 ec 28 sub $0x28,%esp
10e9ac: 8b 7d 08 mov 0x8(%ebp),%edi
10e9af: 8a 45 14 mov 0x14(%ebp),%al
10e9b2: 88 45 e7 mov %al,-0x19(%ebp)
struct ramdisk *rd = malloc(sizeof(struct ramdisk));
10e9b5: 6a 10 push $0x10
10e9b7: e8 6c 9c ff ff call 108628 <malloc>
10e9bc: 89 c6 mov %eax,%esi
10e9be: 89 c3 mov %eax,%ebx
if (rd == NULL) {
10e9c0: 83 c4 10 add $0x10,%esp
10e9c3: 85 c0 test %eax,%eax
10e9c5: 74 4c je 10ea13 <ramdisk_allocate+0x70> <== NEVER TAKEN
return NULL;
}
if (area_begin == NULL) {
10e9c7: 85 ff test %edi,%edi
10e9c9: 75 2c jne 10e9f7 <ramdisk_allocate+0x54> <== NEVER TAKEN
area_begin = calloc(block_count, block_size);
10e9cb: 50 push %eax
10e9cc: 50 push %eax
10e9cd: ff 75 0c pushl 0xc(%ebp)
10e9d0: ff 75 10 pushl 0x10(%ebp)
10e9d3: e8 d0 97 ff ff call 1081a8 <calloc>
10e9d8: 89 c7 mov %eax,%edi
if (area_begin == NULL) {
10e9da: 83 c4 10 add $0x10,%esp
10e9dd: 85 c0 test %eax,%eax
10e9df: 75 10 jne 10e9f1 <ramdisk_allocate+0x4e> <== ALWAYS TAKEN
free(rd);
10e9e1: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10e9e4: 56 push %esi <== NOT EXECUTED
10e9e5: e8 9e 99 ff ff call 108388 <free> <== NOT EXECUTED
10e9ea: 31 f6 xor %esi,%esi <== NOT EXECUTED
return NULL;
10e9ec: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10e9ef: eb 22 jmp 10ea13 <ramdisk_allocate+0x70> <== NOT EXECUTED
}
rd->malloced = true;
10e9f1: c6 46 0d 01 movb $0x1,0xd(%esi)
10e9f5: eb 04 jmp 10e9fb <ramdisk_allocate+0x58>
} else {
rd->malloced = false;
10e9f7: c6 40 0d 00 movb $0x0,0xd(%eax) <== NOT EXECUTED
}
rd->block_size = block_size;
10e9fb: 8b 45 0c mov 0xc(%ebp),%eax
10e9fe: 89 03 mov %eax,(%ebx)
rd->block_num = block_count;
10ea00: 8b 45 10 mov 0x10(%ebp),%eax
10ea03: 89 43 04 mov %eax,0x4(%ebx)
rd->area = area_begin;
10ea06: 89 7b 08 mov %edi,0x8(%ebx)
rd->trace = trace;
10ea09: 8a 45 e7 mov -0x19(%ebp),%al
10ea0c: 88 43 0e mov %al,0xe(%ebx)
rd->initialized = true;
10ea0f: c6 43 0c 01 movb $0x1,0xc(%ebx)
return rd;
}
10ea13: 89 f0 mov %esi,%eax
10ea15: 8d 65 f4 lea -0xc(%ebp),%esp
10ea18: 5b pop %ebx
10ea19: 5e pop %esi
10ea1a: 5f pop %edi
10ea1b: c9 leave
10ea1c: c3 ret
0010e970 <ramdisk_free>:
return rd;
}
void ramdisk_free(ramdisk *rd)
{
10e970: 55 push %ebp
10e971: 89 e5 mov %esp,%ebp
10e973: 53 push %ebx
10e974: 83 ec 04 sub $0x4,%esp
10e977: 8b 5d 08 mov 0x8(%ebp),%ebx
if (rd != NULL) {
10e97a: 85 db test %ebx,%ebx
10e97c: 74 20 je 10e99e <ramdisk_free+0x2e> <== NEVER TAKEN
if (rd->malloced) {
10e97e: 80 7b 0d 00 cmpb $0x0,0xd(%ebx)
10e982: 74 0e je 10e992 <ramdisk_free+0x22> <== NEVER TAKEN
free(rd->area);
10e984: 83 ec 0c sub $0xc,%esp
10e987: ff 73 08 pushl 0x8(%ebx)
10e98a: e8 f9 99 ff ff call 108388 <free>
10e98f: 83 c4 10 add $0x10,%esp
}
free(rd);
10e992: 89 5d 08 mov %ebx,0x8(%ebp)
}
}
10e995: 8b 5d fc mov -0x4(%ebp),%ebx
10e998: c9 leave
{
if (rd != NULL) {
if (rd->malloced) {
free(rd->area);
}
free(rd);
10e999: e9 ea 99 ff ff jmp 108388 <free>
}
}
10e99e: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
10e9a1: c9 leave <== NOT EXECUTED
10e9a2: c3 ret <== NOT EXECUTED
00121698 <ramdisk_initialize>:
rtems_device_driver
ramdisk_initialize(
rtems_device_major_number major,
rtems_device_minor_number minor __attribute__((unused)),
void *arg __attribute__((unused)))
{
121698: 55 push %ebp <== NOT EXECUTED
121699: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12169b: 57 push %edi <== NOT EXECUTED
12169c: 56 push %esi <== NOT EXECUTED
12169d: 53 push %ebx <== NOT EXECUTED
12169e: 83 ec 5c sub $0x5c,%esp <== NOT EXECUTED
rtems_device_minor_number i;
rtems_ramdisk_config *c = rtems_ramdisk_configuration;
struct ramdisk *r;
rtems_status_code rc;
rc = rtems_disk_io_initialize();
1216a1: e8 a9 a4 fe ff call 10bb4f <rtems_disk_io_initialize><== NOT EXECUTED
1216a6: 89 45 c0 mov %eax,-0x40(%ebp) <== NOT EXECUTED
if (rc != RTEMS_SUCCESSFUL)
1216a9: 85 c0 test %eax,%eax <== NOT EXECUTED
1216ab: 0f 85 f6 00 00 00 jne 1217a7 <ramdisk_initialize+0x10f><== NOT EXECUTED
* This is allocating memory for a RAM disk which will persist for
* the life of the system. RTEMS has no "de-initialize" driver call
* so there is no corresponding free(r). Coverity is correct that
* it is never freed but this is not a problem.
*/
r = calloc(rtems_ramdisk_configuration_size, sizeof(struct ramdisk));
1216b1: 52 push %edx <== NOT EXECUTED
1216b2: 52 push %edx <== NOT EXECUTED
1216b3: 6a 10 push $0x10 <== NOT EXECUTED
1216b5: ff 35 a4 27 16 00 pushl 0x1627a4 <== NOT EXECUTED
1216bb: e8 0c b3 fe ff call 10c9cc <calloc> <== NOT EXECUTED
1216c0: 89 c3 mov %eax,%ebx <== NOT EXECUTED
r->trace = false;
1216c2: c6 40 0e 00 movb $0x0,0xe(%eax) <== NOT EXECUTED
1216c6: ba 98 27 16 00 mov $0x162798,%edx <== NOT EXECUTED
1216cb: c7 45 c4 00 00 00 00 movl $0x0,-0x3c(%ebp) <== NOT EXECUTED
for (i = 0; i < rtems_ramdisk_configuration_size; i++, c++, r++)
1216d2: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
{
dev_t dev = rtems_filesystem_make_dev_t(major, i);
char name [] = RAMDISK_DEVICE_BASE_NAME "a";
1216d5: 8d 45 d7 lea -0x29(%ebp),%eax <== NOT EXECUTED
1216d8: 89 45 a4 mov %eax,-0x5c(%ebp) <== NOT EXECUTED
* so there is no corresponding free(r). Coverity is correct that
* it is never freed but this is not a problem.
*/
r = calloc(rtems_ramdisk_configuration_size, sizeof(struct ramdisk));
r->trace = false;
for (i = 0; i < rtems_ramdisk_configuration_size; i++, c++, r++)
1216db: e9 b8 00 00 00 jmp 121798 <ramdisk_initialize+0x100><== NOT EXECUTED
rtems_device_minor_number _minor
)
{
union __rtems_dev_t temp;
temp.__overlay.major = _major;
1216e0: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
1216e3: 89 75 e0 mov %esi,-0x20(%ebp) <== NOT EXECUTED
temp.__overlay.minor = _minor;
1216e6: 8b 45 c4 mov -0x3c(%ebp),%eax <== NOT EXECUTED
1216e9: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
return temp.device;
1216ec: 8b 75 e0 mov -0x20(%ebp),%esi <== NOT EXECUTED
1216ef: 8b 7d e4 mov -0x1c(%ebp),%edi <== NOT EXECUTED
1216f2: 89 75 b8 mov %esi,-0x48(%ebp) <== NOT EXECUTED
1216f5: 89 7d bc mov %edi,-0x44(%ebp) <== NOT EXECUTED
{
dev_t dev = rtems_filesystem_make_dev_t(major, i);
char name [] = RAMDISK_DEVICE_BASE_NAME "a";
1216f8: b9 09 00 00 00 mov $0x9,%ecx <== NOT EXECUTED
1216fd: 8b 7d a4 mov -0x5c(%ebp),%edi <== NOT EXECUTED
121700: be 64 9f 15 00 mov $0x159f64,%esi <== NOT EXECUTED
121705: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
name [sizeof(RAMDISK_DEVICE_BASE_NAME)] += i;
121707: 00 45 df add %al,-0x21(%ebp) <== NOT EXECUTED
r->block_size = c->block_size;
12170a: 8b 0a mov (%edx),%ecx <== NOT EXECUTED
12170c: 89 0b mov %ecx,(%ebx) <== NOT EXECUTED
r->block_num = c->block_num;
12170e: 8b 72 04 mov 0x4(%edx),%esi <== NOT EXECUTED
121711: 89 73 04 mov %esi,0x4(%ebx) <== NOT EXECUTED
if (c->location == NULL)
121714: 8b 42 08 mov 0x8(%edx),%eax <== NOT EXECUTED
121717: 85 c0 test %eax,%eax <== NOT EXECUTED
121719: 75 26 jne 121741 <ramdisk_initialize+0xa9><== NOT EXECUTED
{
r->malloced = true;
12171b: c6 43 0d 01 movb $0x1,0xd(%ebx) <== NOT EXECUTED
r->area = malloc(r->block_size * r->block_num);
12171f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
121722: 0f af ce imul %esi,%ecx <== NOT EXECUTED
121725: 51 push %ecx <== NOT EXECUTED
121726: 89 55 b4 mov %edx,-0x4c(%ebp) <== NOT EXECUTED
121729: e8 ba bc fe ff call 10d3e8 <malloc> <== NOT EXECUTED
12172e: 89 43 08 mov %eax,0x8(%ebx) <== NOT EXECUTED
if (r->area == NULL) /* No enough memory for this disk */
121731: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
121734: 85 c0 test %eax,%eax <== NOT EXECUTED
121736: 8b 55 b4 mov -0x4c(%ebp),%edx <== NOT EXECUTED
121739: 74 50 je 12178b <ramdisk_initialize+0xf3><== NOT EXECUTED
r->initialized = false;
continue;
}
else
{
r->initialized = true;
12173b: c6 43 0c 01 movb $0x1,0xc(%ebx) <== NOT EXECUTED
12173f: eb 0b jmp 12174c <ramdisk_initialize+0xb4><== NOT EXECUTED
}
}
else
{
r->malloced = false;
121741: c6 43 0d 00 movb $0x0,0xd(%ebx) <== NOT EXECUTED
r->initialized = true;
121745: c6 43 0c 01 movb $0x1,0xc(%ebx) <== NOT EXECUTED
r->area = c->location;
121749: 89 43 08 mov %eax,0x8(%ebx) <== NOT EXECUTED
}
rc = rtems_disk_create_phys(dev, c->block_size, c->block_num,
12174c: 50 push %eax <== NOT EXECUTED
12174d: 8d 7d d7 lea -0x29(%ebp),%edi <== NOT EXECUTED
121750: 57 push %edi <== NOT EXECUTED
121751: 53 push %ebx <== NOT EXECUTED
121752: 68 b4 17 12 00 push $0x1217b4 <== NOT EXECUTED
121757: ff 72 04 pushl 0x4(%edx) <== NOT EXECUTED
12175a: ff 32 pushl (%edx) <== NOT EXECUTED
12175c: ff 75 bc pushl -0x44(%ebp) <== NOT EXECUTED
12175f: ff 75 b8 pushl -0x48(%ebp) <== NOT EXECUTED
121762: 89 55 b4 mov %edx,-0x4c(%ebp) <== NOT EXECUTED
121765: e8 c5 a9 fe ff call 10c12f <rtems_disk_create_phys><== NOT EXECUTED
ramdisk_ioctl, r, name);
if (rc != RTEMS_SUCCESSFUL)
12176a: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
12176d: 85 c0 test %eax,%eax <== NOT EXECUTED
12176f: 8b 55 b4 mov -0x4c(%ebp),%edx <== NOT EXECUTED
121772: 74 1b je 12178f <ramdisk_initialize+0xf7><== NOT EXECUTED
{
if (r->malloced)
121774: 80 7b 0d 00 cmpb $0x0,0xd(%ebx) <== NOT EXECUTED
121778: 74 11 je 12178b <ramdisk_initialize+0xf3><== NOT EXECUTED
{
free(r->area);
12177a: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12177d: ff 73 08 pushl 0x8(%ebx) <== NOT EXECUTED
121780: e8 17 b7 fe ff call 10ce9c <free> <== NOT EXECUTED
121785: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
121788: 8b 55 b4 mov -0x4c(%ebp),%edx <== NOT EXECUTED
}
r->initialized = false;
12178b: c6 43 0c 00 movb $0x0,0xc(%ebx) <== NOT EXECUTED
* so there is no corresponding free(r). Coverity is correct that
* it is never freed but this is not a problem.
*/
r = calloc(rtems_ramdisk_configuration_size, sizeof(struct ramdisk));
r->trace = false;
for (i = 0; i < rtems_ramdisk_configuration_size; i++, c++, r++)
12178f: ff 45 c4 incl -0x3c(%ebp) <== NOT EXECUTED
121792: 83 c2 0c add $0xc,%edx <== NOT EXECUTED
121795: 83 c3 10 add $0x10,%ebx <== NOT EXECUTED
121798: 8b 45 c4 mov -0x3c(%ebp),%eax <== NOT EXECUTED
12179b: 3b 05 a4 27 16 00 cmp 0x1627a4,%eax <== NOT EXECUTED
1217a1: 0f 82 39 ff ff ff jb 1216e0 <ramdisk_initialize+0x48><== NOT EXECUTED
}
r->initialized = false;
}
}
return RTEMS_SUCCESSFUL;
}
1217a7: 8b 45 c0 mov -0x40(%ebp),%eax <== NOT EXECUTED
1217aa: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1217ad: 5b pop %ebx <== NOT EXECUTED
1217ae: 5e pop %esi <== NOT EXECUTED
1217af: 5f pop %edi <== NOT EXECUTED
1217b0: c9 leave <== NOT EXECUTED
1217b1: c3 ret <== NOT EXECUTED
0010e890 <ramdisk_ioctl>:
return 0;
}
int
ramdisk_ioctl(rtems_disk_device *dd, uint32_t req, void *argp)
{
10e890: 55 push %ebp
10e891: 89 e5 mov %esp,%ebp
10e893: 57 push %edi
10e894: 56 push %esi
10e895: 53 push %ebx
10e896: 83 ec 1c sub $0x1c,%esp
10e899: 8b 55 08 mov 0x8(%ebp),%edx
10e89c: 8b 4d 0c mov 0xc(%ebp),%ecx
10e89f: 8b 45 10 mov 0x10(%ebp),%eax
switch (req)
10e8a2: 81 f9 01 42 18 c0 cmp $0xc0184201,%ecx
10e8a8: 0f 85 a2 00 00 00 jne 10e950 <ramdisk_ioctl+0xc0>
{
case RTEMS_BLKIO_REQUEST:
{
rtems_blkdev_request *r = argp;
struct ramdisk *rd = rtems_disk_get_driver_data(dd);
10e8ae: 8b 5a 2c mov 0x2c(%edx),%ebx
switch (r->req)
10e8b1: 8b 10 mov (%eax),%edx
10e8b3: 85 d2 test %edx,%edx
10e8b5: 74 09 je 10e8c0 <ramdisk_ioctl+0x30> <== NEVER TAKEN
10e8b7: 4a dec %edx
10e8b8: 0f 85 82 00 00 00 jne 10e940 <ramdisk_ioctl+0xb0> <== NEVER TAKEN
10e8be: eb 32 jmp 10e8f2 <ramdisk_ioctl+0x62>
#endif
static int
ramdisk_read(struct ramdisk *rd, rtems_blkdev_request *req)
{
uint8_t *from = rd->area;
10e8c0: 8b 53 08 mov 0x8(%ebx),%edx <== NOT EXECUTED
10e8c3: 89 55 dc mov %edx,-0x24(%ebp) <== NOT EXECUTED
#if RTEMS_RAMDISK_TRACE
rtems_ramdisk_printf (rd, "ramdisk read: start=%d, blocks=%d",
req->bufs[0].block, req->bufnum);
#endif
for (i = 0, sg = req->bufs; i < req->bufnum; i++, sg++)
10e8c6: 8d 50 18 lea 0x18(%eax),%edx <== NOT EXECUTED
10e8c9: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) <== NOT EXECUTED
10e8d0: eb 16 jmp 10e8e8 <ramdisk_ioctl+0x58> <== NOT EXECUTED
#if RTEMS_RAMDISK_TRACE
rtems_ramdisk_printf (rd, "ramdisk read: buf=%d block=%d length=%d off=%d addr=%p",
i, sg->block, sg->length, sg->block * rd->block_size,
from + (sg->block * rd->block_size));
#endif
memcpy(sg->buffer, from + (sg->block * rd->block_size), sg->length);
10e8d2: 8b 33 mov (%ebx),%esi <== NOT EXECUTED
10e8d4: 0f af 32 imul (%edx),%esi <== NOT EXECUTED
10e8d7: 03 75 dc add -0x24(%ebp),%esi <== NOT EXECUTED
10e8da: 8b 4a 04 mov 0x4(%edx),%ecx <== NOT EXECUTED
10e8dd: 8b 7a 08 mov 0x8(%edx),%edi <== NOT EXECUTED
10e8e0: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
#if RTEMS_RAMDISK_TRACE
rtems_ramdisk_printf (rd, "ramdisk read: start=%d, blocks=%d",
req->bufs[0].block, req->bufnum);
#endif
for (i = 0, sg = req->bufs; i < req->bufnum; i++, sg++)
10e8e2: ff 45 e4 incl -0x1c(%ebp) <== NOT EXECUTED
10e8e5: 83 c2 10 add $0x10,%edx <== NOT EXECUTED
10e8e8: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED
10e8eb: 3b 48 10 cmp 0x10(%eax),%ecx <== NOT EXECUTED
10e8ee: 72 e2 jb 10e8d2 <ramdisk_ioctl+0x42> <== NOT EXECUTED
10e8f0: eb 36 jmp 10e928 <ramdisk_ioctl+0x98> <== NOT EXECUTED
}
static int
ramdisk_write(struct ramdisk *rd, rtems_blkdev_request *req)
{
uint8_t *to = rd->area;
10e8f2: 8b 53 08 mov 0x8(%ebx),%edx
10e8f5: 89 55 dc mov %edx,-0x24(%ebp)
#if RTEMS_RAMDISK_TRACE
rtems_ramdisk_printf (rd, "ramdisk write: start=%d, blocks=%d",
req->bufs[0].block, req->bufnum);
#endif
for (i = 0, sg = req->bufs; i < req->bufnum; i++, sg++)
10e8f8: 8d 50 18 lea 0x18(%eax),%edx
10e8fb: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp)
10e902: eb 1c jmp 10e920 <ramdisk_ioctl+0x90>
#if RTEMS_RAMDISK_TRACE
rtems_ramdisk_printf (rd, "ramdisk write: buf=%d block=%d length=%d off=%d addr=%p",
i, sg->block, sg->length, sg->block * rd->block_size,
to + (sg->block * rd->block_size));
#endif
memcpy(to + (sg->block * rd->block_size), sg->buffer, sg->length);
10e904: 8b 0b mov (%ebx),%ecx
10e906: 0f af 0a imul (%edx),%ecx
10e909: 03 4d dc add -0x24(%ebp),%ecx
10e90c: 89 4d e0 mov %ecx,-0x20(%ebp)
10e90f: 8b 72 08 mov 0x8(%edx),%esi
10e912: 8b 4a 04 mov 0x4(%edx),%ecx
10e915: 8b 7d e0 mov -0x20(%ebp),%edi
10e918: f3 a4 rep movsb %ds:(%esi),%es:(%edi)
#if RTEMS_RAMDISK_TRACE
rtems_ramdisk_printf (rd, "ramdisk write: start=%d, blocks=%d",
req->bufs[0].block, req->bufnum);
#endif
for (i = 0, sg = req->bufs; i < req->bufnum; i++, sg++)
10e91a: ff 45 e4 incl -0x1c(%ebp)
10e91d: 83 c2 10 add $0x10,%edx
10e920: 8b 4d e4 mov -0x1c(%ebp),%ecx
10e923: 3b 48 10 cmp 0x10(%eax),%ecx
10e926: 72 dc jb 10e904 <ramdisk_ioctl+0x74>
i, sg->block, sg->length, sg->block * rd->block_size,
to + (sg->block * rd->block_size));
#endif
memcpy(to + (sg->block * rd->block_size), sg->buffer, sg->length);
}
req->status = RTEMS_SUCCESSFUL;
10e928: c7 40 0c 00 00 00 00 movl $0x0,0xc(%eax)
req->req_done(req->done_arg, RTEMS_SUCCESSFUL);
10e92f: 52 push %edx
10e930: 52 push %edx
10e931: 6a 00 push $0x0
10e933: ff 70 08 pushl 0x8(%eax)
10e936: ff 50 04 call *0x4(%eax)
10e939: 31 c0 xor %eax,%eax
{
case RTEMS_BLKDEV_REQ_READ:
return ramdisk_read(rd, r);
case RTEMS_BLKDEV_REQ_WRITE:
return ramdisk_write(rd, r);
10e93b: 83 c4 10 add $0x10,%esp
10e93e: eb 25 jmp 10e965 <ramdisk_ioctl+0xd5>
default:
errno = EINVAL;
10e940: e8 5f 76 00 00 call 115fa4 <__errno> <== NOT EXECUTED
10e945: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
10e94b: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
return -1;
10e94e: eb 15 jmp 10e965 <ramdisk_ioctl+0xd5> <== NOT EXECUTED
}
break;
}
default:
return rtems_blkdev_ioctl (dd, req, argp);
10e950: 89 45 10 mov %eax,0x10(%ebp)
10e953: 89 4d 0c mov %ecx,0xc(%ebp)
10e956: 89 55 08 mov %edx,0x8(%ebp)
break;
}
errno = EINVAL;
return -1;
}
10e959: 8d 65 f4 lea -0xc(%ebp),%esp
10e95c: 5b pop %ebx
10e95d: 5e pop %esi
10e95e: 5f pop %edi
10e95f: c9 leave
}
break;
}
default:
return rtems_blkdev_ioctl (dd, req, argp);
10e960: e9 c7 1f 00 00 jmp 11092c <rtems_blkdev_ioctl>
break;
}
errno = EINVAL;
return -1;
}
10e965: 8d 65 f4 lea -0xc(%ebp),%esp
10e968: 5b pop %ebx
10e969: 5e pop %esi
10e96a: 5f pop %edi
10e96b: c9 leave
10e96c: c3 ret
0010ea1d <ramdisk_register>:
rtems_blkdev_bnum block_count,
bool trace,
const char *disk,
dev_t *dev_ptr
)
{
10ea1d: 55 push %ebp
10ea1e: 89 e5 mov %esp,%ebp
10ea20: 57 push %edi
10ea21: 56 push %esi
10ea22: 53 push %ebx
10ea23: 83 ec 20 sub $0x20,%esp
10ea26: 8a 5d 10 mov 0x10(%ebp),%bl
rtems_status_code sc = RTEMS_SUCCESSFUL;
rtems_device_major_number major = 0;
10ea29: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp)
ramdisk *rd = NULL;
dev_t dev = 0;
sc = rtems_io_register_driver(0, &ramdisk_ops, &major);
10ea30: 8d 45 e4 lea -0x1c(%ebp),%eax
10ea33: 50 push %eax
10ea34: 68 f0 37 12 00 push $0x1237f0
10ea39: 6a 00 push $0x0
10ea3b: e8 70 d1 ff ff call 10bbb0 <rtems_io_register_driver>
10ea40: 89 c2 mov %eax,%edx
if (sc != RTEMS_SUCCESSFUL) {
10ea42: 83 c4 10 add $0x10,%esp
10ea45: b8 0d 00 00 00 mov $0xd,%eax
10ea4a: 85 d2 test %edx,%edx
10ea4c: 75 68 jne 10eab6 <ramdisk_register+0x99> <== NEVER TAKEN
return RTEMS_UNSATISFIED;
}
rd = ramdisk_allocate(NULL, block_size, block_count, trace);
10ea4e: 0f b6 db movzbl %bl,%ebx
10ea51: 53 push %ebx
10ea52: ff 75 0c pushl 0xc(%ebp)
10ea55: ff 75 08 pushl 0x8(%ebp)
10ea58: 6a 00 push $0x0
10ea5a: e8 44 ff ff ff call 10e9a3 <ramdisk_allocate>
10ea5f: 89 c7 mov %eax,%edi
if (rd == NULL) {
10ea61: 83 c4 10 add $0x10,%esp
10ea64: 85 c0 test %eax,%eax
10ea66: 75 05 jne 10ea6d <ramdisk_register+0x50> <== ALWAYS TAKEN
rtems_io_unregister_driver(major);
10ea68: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10ea6b: eb 2d jmp 10ea9a <ramdisk_register+0x7d> <== NOT EXECUTED
{
union __rtems_dev_t temp;
temp.__overlay.major = _major;
temp.__overlay.minor = _minor;
return temp.device;
10ea6d: 8b 5d e4 mov -0x1c(%ebp),%ebx
10ea70: 31 f6 xor %esi,%esi
return RTEMS_UNSATISFIED;
}
dev = rtems_filesystem_make_dev_t(major, 0);
sc = rtems_disk_create_phys(
10ea72: 51 push %ecx
10ea73: ff 75 14 pushl 0x14(%ebp)
10ea76: 50 push %eax
10ea77: 68 90 e8 10 00 push $0x10e890
10ea7c: ff 75 0c pushl 0xc(%ebp)
10ea7f: ff 75 08 pushl 0x8(%ebp)
10ea82: 56 push %esi
10ea83: 53 push %ebx
10ea84: e8 9a 8f ff ff call 107a23 <rtems_disk_create_phys>
block_count,
ramdisk_ioctl,
rd,
disk
);
if (sc != RTEMS_SUCCESSFUL) {
10ea89: 83 c4 20 add $0x20,%esp
10ea8c: 85 c0 test %eax,%eax
10ea8e: 74 1c je 10eaac <ramdisk_register+0x8f> <== ALWAYS TAKEN
ramdisk_free(rd);
10ea90: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10ea93: 57 push %edi <== NOT EXECUTED
10ea94: e8 d7 fe ff ff call 10e970 <ramdisk_free> <== NOT EXECUTED
rtems_io_unregister_driver(major);
10ea99: 5a pop %edx <== NOT EXECUTED
10ea9a: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
10ea9d: e8 32 d2 ff ff call 10bcd4 <rtems_io_unregister_driver><== NOT EXECUTED
10eaa2: b8 0d 00 00 00 mov $0xd,%eax <== NOT EXECUTED
return RTEMS_UNSATISFIED;
10eaa7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10eaaa: eb 0a jmp 10eab6 <ramdisk_register+0x99> <== NOT EXECUTED
}
*dev_ptr = dev;
10eaac: 8b 45 18 mov 0x18(%ebp),%eax
10eaaf: 89 18 mov %ebx,(%eax)
10eab1: 89 70 04 mov %esi,0x4(%eax)
10eab4: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
}
10eab6: 8d 65 f4 lea -0xc(%ebp),%esp
10eab9: 5b pop %ebx
10eaba: 5e pop %esi
10eabb: 5f pop %edi
10eabc: c9 leave
10eabd: c3 ret
0011e1fc <read>:
ssize_t read(
int fd,
void *buffer,
size_t count
)
{
11e1fc: 55 push %ebp
11e1fd: 89 e5 mov %esp,%ebp
11e1ff: 56 push %esi
11e200: 53 push %ebx
11e201: 8b 5d 08 mov 0x8(%ebp),%ebx
11e204: 8b 55 0c mov 0xc(%ebp),%edx
11e207: 8b 4d 10 mov 0x10(%ebp),%ecx
ssize_t rc;
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
11e20a: 3b 1d 44 21 12 00 cmp 0x122144,%ebx
11e210: 73 30 jae 11e242 <read+0x46> <== NEVER TAKEN
iop = rtems_libio_iop( fd );
11e212: c1 e3 06 shl $0x6,%ebx
11e215: 03 1d b8 60 12 00 add 0x1260b8,%ebx
rtems_libio_check_is_open( iop );
11e21b: 8b 73 14 mov 0x14(%ebx),%esi
11e21e: f7 c6 00 01 00 00 test $0x100,%esi
11e224: 74 1c je 11e242 <read+0x46>
rtems_libio_check_buffer( buffer );
11e226: 85 d2 test %edx,%edx
11e228: 75 0d jne 11e237 <read+0x3b> <== ALWAYS TAKEN
11e22a: e8 e5 47 ff ff call 112a14 <__errno> <== NOT EXECUTED
11e22f: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
11e235: eb 2d jmp 11e264 <read+0x68> <== NOT EXECUTED
rtems_libio_check_count( count );
11e237: 31 c0 xor %eax,%eax
11e239: 85 c9 test %ecx,%ecx
11e23b: 74 44 je 11e281 <read+0x85> <== NEVER TAKEN
rtems_libio_check_permissions_with_error( iop, LIBIO_FLAGS_READ, EBADF );
11e23d: 83 e6 02 and $0x2,%esi
11e240: 75 0d jne 11e24f <read+0x53> <== ALWAYS TAKEN
11e242: e8 cd 47 ff ff call 112a14 <__errno>
11e247: c7 00 09 00 00 00 movl $0x9,(%eax)
11e24d: eb 15 jmp 11e264 <read+0x68>
/*
* Now process the read().
*/
if ( !iop->handlers->read_h )
11e24f: 8b 43 3c mov 0x3c(%ebx),%eax
11e252: 8b 40 08 mov 0x8(%eax),%eax
11e255: 85 c0 test %eax,%eax
11e257: 75 10 jne 11e269 <read+0x6d> <== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( ENOTSUP );
11e259: e8 b6 47 ff ff call 112a14 <__errno> <== NOT EXECUTED
11e25e: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
11e264: 83 c8 ff or $0xffffffff,%eax
11e267: eb 18 jmp 11e281 <read+0x85>
rc = (*iop->handlers->read_h)( iop, buffer, count );
11e269: 56 push %esi
11e26a: 51 push %ecx
11e26b: 52 push %edx
11e26c: 53 push %ebx
11e26d: ff d0 call *%eax
if ( rc > 0 )
11e26f: 83 c4 10 add $0x10,%esp
11e272: 85 c0 test %eax,%eax
11e274: 7e 0b jle 11e281 <read+0x85>
iop->offset += rc;
11e276: 89 c1 mov %eax,%ecx
11e278: c1 f9 1f sar $0x1f,%ecx
11e27b: 01 43 0c add %eax,0xc(%ebx)
11e27e: 11 4b 10 adc %ecx,0x10(%ebx)
return rc;
}
11e281: 8d 65 f8 lea -0x8(%ebp),%esp
11e284: 5b pop %ebx
11e285: 5e pop %esi
11e286: c9 leave
11e287: c3 ret
00129384 <readlink>:
ssize_t readlink(
const char *pathname,
char *buf,
size_t bufsize
)
{
129384: 55 push %ebp
129385: 89 e5 mov %esp,%ebp
129387: 57 push %edi
129388: 56 push %esi
129389: 53 push %ebx
12938a: 83 ec 2c sub $0x2c,%esp
12938d: 8b 55 08 mov 0x8(%ebp),%edx
129390: 8b 5d 0c mov 0xc(%ebp),%ebx
rtems_filesystem_location_info_t loc;
int result;
if (!buf)
129393: 85 db test %ebx,%ebx
129395: 75 0d jne 1293a4 <readlink+0x20> <== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( EFAULT );
129397: e8 78 4c 01 00 call 13e014 <__errno> <== NOT EXECUTED
12939c: c7 00 0e 00 00 00 movl $0xe,(%eax) <== NOT EXECUTED
1293a2: eb 51 jmp 1293f5 <readlink+0x71> <== NOT EXECUTED
result = rtems_filesystem_evaluate_path( pathname, strlen( pathname ),
1293a4: 31 c0 xor %eax,%eax
1293a6: 83 c9 ff or $0xffffffff,%ecx
1293a9: 89 d7 mov %edx,%edi
1293ab: f2 ae repnz scas %es:(%edi),%al
1293ad: f7 d1 not %ecx
1293af: 49 dec %ecx
1293b0: 83 ec 0c sub $0xc,%esp
1293b3: 6a 00 push $0x0
1293b5: 8d 75 d4 lea -0x2c(%ebp),%esi
1293b8: 56 push %esi
1293b9: 6a 00 push $0x0
1293bb: 51 push %ecx
1293bc: 52 push %edx
1293bd: e8 6f 3a fe ff call 10ce31 <rtems_filesystem_evaluate_path>
0, &loc, false );
if ( result != 0 )
1293c2: 83 c4 20 add $0x20,%esp
1293c5: 83 cf ff or $0xffffffff,%edi
1293c8: 85 c0 test %eax,%eax
1293ca: 0f 85 8c 00 00 00 jne 12945c <readlink+0xd8> <== NEVER TAKEN
return -1;
if ( !loc.ops->node_type_h ){
1293d0: 8b 55 e0 mov -0x20(%ebp),%edx
1293d3: 8b 42 10 mov 0x10(%edx),%eax
1293d6: 85 c0 test %eax,%eax
1293d8: 75 20 jne 1293fa <readlink+0x76> <== ALWAYS TAKEN
rtems_filesystem_freenode( &loc );
1293da: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED
1293dd: 85 c0 test %eax,%eax <== NOT EXECUTED
1293df: 74 09 je 1293ea <readlink+0x66> <== NOT EXECUTED
1293e1: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1293e4: 56 push %esi <== NOT EXECUTED
1293e5: ff d0 call *%eax <== NOT EXECUTED
1293e7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
1293ea: e8 25 4c 01 00 call 13e014 <__errno> <== NOT EXECUTED
1293ef: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
1293f5: 83 cf ff or $0xffffffff,%edi
1293f8: eb 62 jmp 12945c <readlink+0xd8>
}
if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_SYM_LINK ){
1293fa: 83 ec 0c sub $0xc,%esp
1293fd: 56 push %esi
1293fe: ff d0 call *%eax
129400: 83 c4 10 add $0x10,%esp
129403: 83 f8 04 cmp $0x4,%eax
129406: 8b 45 e0 mov -0x20(%ebp),%eax
129409: 74 21 je 12942c <readlink+0xa8>
rtems_filesystem_freenode( &loc );
12940b: 85 c0 test %eax,%eax
12940d: 74 10 je 12941f <readlink+0x9b> <== NEVER TAKEN
12940f: 8b 40 1c mov 0x1c(%eax),%eax
129412: 85 c0 test %eax,%eax
129414: 74 09 je 12941f <readlink+0x9b> <== NEVER TAKEN
129416: 83 ec 0c sub $0xc,%esp
129419: 56 push %esi
12941a: ff d0 call *%eax
12941c: 83 c4 10 add $0x10,%esp
rtems_set_errno_and_return_minus_one( EINVAL );
12941f: e8 f0 4b 01 00 call 13e014 <__errno>
129424: c7 00 16 00 00 00 movl $0x16,(%eax)
12942a: eb c9 jmp 1293f5 <readlink+0x71>
}
if ( !loc.ops->readlink_h ){
12942c: 8b 50 3c mov 0x3c(%eax),%edx
12942f: 85 d2 test %edx,%edx
129431: 75 05 jne 129438 <readlink+0xb4> <== ALWAYS TAKEN
rtems_filesystem_freenode( &loc );
129433: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED
129436: eb a5 jmp 1293dd <readlink+0x59> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
result = (*loc.ops->readlink_h)( &loc, buf, bufsize );
129438: 50 push %eax
129439: ff 75 10 pushl 0x10(%ebp)
12943c: 53 push %ebx
12943d: 56 push %esi
12943e: ff d2 call *%edx
129440: 89 c7 mov %eax,%edi
rtems_filesystem_freenode( &loc );
129442: 8b 45 e0 mov -0x20(%ebp),%eax
129445: 83 c4 10 add $0x10,%esp
129448: 85 c0 test %eax,%eax
12944a: 74 10 je 12945c <readlink+0xd8> <== NEVER TAKEN
12944c: 8b 40 1c mov 0x1c(%eax),%eax
12944f: 85 c0 test %eax,%eax
129451: 74 09 je 12945c <readlink+0xd8> <== NEVER TAKEN
129453: 83 ec 0c sub $0xc,%esp
129456: 56 push %esi
129457: ff d0 call *%eax
129459: 83 c4 10 add $0x10,%esp
return result;
}
12945c: 89 f8 mov %edi,%eax
12945e: 8d 65 f4 lea -0xc(%ebp),%esp
129461: 5b pop %ebx
129462: 5e pop %esi
129463: 5f pop %edi
129464: c9 leave
129465: c3 ret
00108d4c <readv>:
ssize_t readv(
int fd,
const struct iovec *iov,
int iovcnt
)
{
108d4c: 55 push %ebp
108d4d: 89 e5 mov %esp,%ebp
108d4f: 57 push %edi
108d50: 56 push %esi
108d51: 53 push %ebx
108d52: 83 ec 2c sub $0x2c,%esp
108d55: 8b 75 08 mov 0x8(%ebp),%esi
108d58: 8b 7d 0c mov 0xc(%ebp),%edi
int v;
int bytes;
rtems_libio_t *iop;
bool all_zeros;
rtems_libio_check_fd( fd );
108d5b: 3b 35 44 41 12 00 cmp 0x124144,%esi
108d61: 73 15 jae 108d78 <readv+0x2c> <== NEVER TAKEN
iop = rtems_libio_iop( fd );
108d63: c1 e6 06 shl $0x6,%esi
108d66: 03 35 88 88 12 00 add 0x128888,%esi
rtems_libio_check_is_open( iop );
108d6c: 8b 46 14 mov 0x14(%esi),%eax
108d6f: f6 c4 01 test $0x1,%ah
108d72: 74 04 je 108d78 <readv+0x2c> <== NEVER TAKEN
rtems_libio_check_permissions_with_error( iop, LIBIO_FLAGS_READ, EBADF );
108d74: a8 02 test $0x2,%al
108d76: 75 10 jne 108d88 <readv+0x3c> <== ALWAYS TAKEN
108d78: e8 53 a9 00 00 call 1136d0 <__errno> <== NOT EXECUTED
108d7d: c7 00 09 00 00 00 movl $0x9,(%eax) <== NOT EXECUTED
108d83: e9 91 00 00 00 jmp 108e19 <readv+0xcd> <== NOT EXECUTED
/*
* Argument validation on IO vector
*/
if ( !iov )
108d88: 85 ff test %edi,%edi
108d8a: 74 42 je 108dce <readv+0x82>
rtems_set_errno_and_return_minus_one( EINVAL );
if ( iovcnt <= 0 )
108d8c: 83 7d 10 00 cmpl $0x0,0x10(%ebp)
108d90: 7e 3c jle 108dce <readv+0x82>
rtems_set_errno_and_return_minus_one( EINVAL );
if ( iovcnt > IOV_MAX )
108d92: 81 7d 10 00 04 00 00 cmpl $0x400,0x10(%ebp)
108d99: 7f 33 jg 108dce <readv+0x82> <== NEVER TAKEN
rtems_set_errno_and_return_minus_one( EINVAL );
if ( !iop->handlers->read_h )
108d9b: 8b 46 3c mov 0x3c(%esi),%eax
108d9e: 83 78 08 00 cmpl $0x0,0x8(%eax)
108da2: 75 0d jne 108db1 <readv+0x65> <== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( ENOTSUP );
108da4: e8 27 a9 00 00 call 1136d0 <__errno> <== NOT EXECUTED
108da9: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
108daf: eb 68 jmp 108e19 <readv+0xcd> <== NOT EXECUTED
108db1: b2 01 mov $0x1,%dl
108db3: 31 c0 xor %eax,%eax
108db5: 31 c9 xor %ecx,%ecx
108db7: 89 75 d4 mov %esi,-0x2c(%ebp)
all_zeros = true;
for ( total=0, v=0 ; v < iovcnt ; v++ ) {
ssize_t old;
if ( !iov[v].iov_base )
108dba: 83 3c c7 00 cmpl $0x0,(%edi,%eax,8)
108dbe: 74 0e je 108dce <readv+0x82>
if ( iov[v].iov_len < 0 )
rtems_set_errno_and_return_minus_one( EINVAL );
/* check for wrap */
old = total;
total += iov[v].iov_len;
108dc0: 8b 5c c7 04 mov 0x4(%edi,%eax,8),%ebx
108dc4: 8d 34 19 lea (%ecx,%ebx,1),%esi
108dc7: 89 75 e4 mov %esi,-0x1c(%ebp)
if ( total < old )
108dca: 39 ce cmp %ecx,%esi
108dcc: 7d 0d jge 108ddb <readv+0x8f>
rtems_set_errno_and_return_minus_one( EINVAL );
108dce: e8 fd a8 00 00 call 1136d0 <__errno>
108dd3: c7 00 16 00 00 00 movl $0x16,(%eax)
108dd9: eb 3e jmp 108e19 <readv+0xcd>
if ( iov[v].iov_len )
108ddb: 85 db test %ebx,%ebx
108ddd: 0f 94 c1 sete %cl
108de0: f7 d9 neg %ecx
108de2: 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++ ) {
108de4: 40 inc %eax
108de5: 3b 45 10 cmp 0x10(%ebp),%eax
108de8: 7d 05 jge 108def <readv+0xa3>
108dea: 8b 4d e4 mov -0x1c(%ebp),%ecx
108ded: eb cb jmp 108dba <readv+0x6e>
108def: 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 ) {
108df2: 31 db xor %ebx,%ebx
108df4: 84 d2 test %dl,%dl
108df6: 75 49 jne 108e41 <readv+0xf5>
108df8: 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->handlers->read_h)( iop, iov[v].iov_base, iov[v].iov_len );
108dff: 50 push %eax
108e00: 8b 46 3c mov 0x3c(%esi),%eax
108e03: 8b 55 e4 mov -0x1c(%ebp),%edx
108e06: ff 74 d7 04 pushl 0x4(%edi,%edx,8)
108e0a: ff 34 d7 pushl (%edi,%edx,8)
108e0d: 56 push %esi
108e0e: ff 50 08 call *0x8(%eax)
if ( bytes < 0 )
108e11: 83 c4 10 add $0x10,%esp
108e14: 83 f8 00 cmp $0x0,%eax
108e17: 7d 05 jge 108e1e <readv+0xd2> <== ALWAYS TAKEN
108e19: 83 cb ff or $0xffffffff,%ebx
108e1c: eb 23 jmp 108e41 <readv+0xf5>
return -1;
if ( bytes > 0 ) {
108e1e: 74 0d je 108e2d <readv+0xe1> <== NEVER TAKEN
iop->offset += bytes;
108e20: 89 c1 mov %eax,%ecx
108e22: c1 f9 1f sar $0x1f,%ecx
108e25: 01 46 0c add %eax,0xc(%esi)
108e28: 11 4e 10 adc %ecx,0x10(%esi)
total += bytes;
108e2b: 01 c3 add %eax,%ebx
}
if (bytes != iov[ v ].iov_len)
108e2d: 8b 55 e4 mov -0x1c(%ebp),%edx
108e30: 3b 44 d7 04 cmp 0x4(%edi,%edx,8),%eax
108e34: 75 0b jne 108e41 <readv+0xf5> <== NEVER TAKEN
}
/*
* Now process the readv().
*/
for ( total=0, v=0 ; v < iovcnt ; v++ ) {
108e36: 42 inc %edx
108e37: 89 55 e4 mov %edx,-0x1c(%ebp)
108e3a: 8b 45 10 mov 0x10(%ebp),%eax
108e3d: 39 c2 cmp %eax,%edx
108e3f: 7c be jl 108dff <readv+0xb3>
if (bytes != iov[ v ].iov_len)
break;
}
return total;
}
108e41: 89 d8 mov %ebx,%eax
108e43: 8d 65 f4 lea -0xc(%ebp),%esp
108e46: 5b pop %ebx
108e47: 5e pop %esi
108e48: 5f pop %edi
108e49: c9 leave
108e4a: c3 ret
0011e308 <realloc>:
{
uintptr_t old_size;
char *new_area;
uintptr_t resize;
MSBUMP(realloc_calls, 1);
11e308: 55 push %ebp
11e309: 89 e5 mov %esp,%ebp
11e30b: 57 push %edi
11e30c: 56 push %esi
11e30d: 53 push %ebx
11e30e: 83 ec 2c sub $0x2c,%esp
11e311: 8b 5d 08 mov 0x8(%ebp),%ebx
11e314: 8b 75 0c mov 0xc(%ebp),%esi
11e317: ff 05 e0 60 12 00 incl 0x1260e0
/*
* Do not attempt to allocate memory if in a critical section or ISR.
*/
if (_System_state_Is_up(_System_state_Get())) {
11e31d: 83 3d a0 63 12 00 03 cmpl $0x3,0x1263a0
11e324: 75 1a jne 11e340 <realloc+0x38>
if (_Thread_Dispatch_disable_level > 0)
11e326: a1 08 62 12 00 mov 0x126208,%eax
11e32b: 85 c0 test %eax,%eax
11e32d: 0f 85 a7 00 00 00 jne 11e3da <realloc+0xd2> <== NEVER TAKEN
return (void *) 0;
if (_ISR_Nest_level > 0)
11e333: a1 a0 62 12 00 mov 0x1262a0,%eax
11e338: 85 c0 test %eax,%eax
11e33a: 0f 85 9a 00 00 00 jne 11e3da <realloc+0xd2> <== NEVER TAKEN
}
/*
* Continue with realloc().
*/
if ( !ptr )
11e340: 85 db test %ebx,%ebx
11e342: 75 0e jne 11e352 <realloc+0x4a>
return malloc( size );
11e344: 83 ec 0c sub $0xc,%esp
11e347: 56 push %esi
11e348: e8 ef 95 fe ff call 10793c <malloc>
11e34d: e9 81 00 00 00 jmp 11e3d3 <realloc+0xcb>
if ( !size ) {
11e352: 85 f6 test %esi,%esi
11e354: 75 0d jne 11e363 <realloc+0x5b> <== ALWAYS TAKEN
free( ptr );
11e356: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
11e359: 53 push %ebx <== NOT EXECUTED
11e35a: e8 3d 93 fe ff call 10769c <free> <== NOT EXECUTED
11e35f: 31 db xor %ebx,%ebx <== NOT EXECUTED
11e361: eb 72 jmp 11e3d5 <realloc+0xcd> <== NOT EXECUTED
return (void *) 0;
}
if ( !_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, ptr, &old_size) ) {
11e363: 52 push %edx
11e364: 8d 45 e4 lea -0x1c(%ebp),%eax
11e367: 50 push %eax
11e368: 53 push %ebx
11e369: ff 35 50 21 12 00 pushl 0x122150
11e36f: e8 00 01 00 00 call 11e474 <_Protected_heap_Get_block_size>
11e374: 83 c4 10 add $0x10,%esp
11e377: 84 c0 test %al,%al
11e379: 75 0d jne 11e388 <realloc+0x80>
errno = EINVAL;
11e37b: e8 94 46 ff ff call 112a14 <__errno>
11e380: c7 00 16 00 00 00 movl $0x16,(%eax)
11e386: eb 52 jmp 11e3da <realloc+0xd2>
#if defined(RTEMS_MALLOC_BOUNDARY_HELPERS)
if (rtems_malloc_boundary_helpers)
resize += (*rtems_malloc_boundary_helpers->overhead)();
#endif
if ( _Protected_heap_Resize_block( RTEMS_Malloc_Heap, ptr, resize ) ) {
11e388: 50 push %eax
11e389: 56 push %esi
11e38a: 53 push %ebx
11e38b: ff 35 50 21 12 00 pushl 0x122150
11e391: e8 16 01 00 00 call 11e4ac <_Protected_heap_Resize_block>
11e396: 83 c4 10 add $0x10,%esp
11e399: 84 c0 test %al,%al
11e39b: 75 3f jne 11e3dc <realloc+0xd4>
* 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 );
11e39d: 83 ec 0c sub $0xc,%esp
11e3a0: 56 push %esi
11e3a1: e8 96 95 fe ff call 10793c <malloc>
MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */
11e3a6: ff 0d d4 60 12 00 decl 0x1260d4
if ( !new_area ) {
11e3ac: 83 c4 10 add $0x10,%esp
11e3af: 85 c0 test %eax,%eax
11e3b1: 74 27 je 11e3da <realloc+0xd2>
return (void *) 0;
}
memcpy( new_area, ptr, (size < old_size) ? size : old_size );
11e3b3: 8b 55 e4 mov -0x1c(%ebp),%edx
11e3b6: 89 f1 mov %esi,%ecx
11e3b8: 39 d6 cmp %edx,%esi
11e3ba: 76 02 jbe 11e3be <realloc+0xb6> <== NEVER TAKEN
11e3bc: 89 d1 mov %edx,%ecx
11e3be: 89 c7 mov %eax,%edi
11e3c0: 89 de mov %ebx,%esi
11e3c2: f3 a4 rep movsb %ds:(%esi),%es:(%edi)
free( ptr );
11e3c4: 83 ec 0c sub $0xc,%esp
11e3c7: 53 push %ebx
11e3c8: 89 45 d4 mov %eax,-0x2c(%ebp)
11e3cb: e8 cc 92 fe ff call 10769c <free>
11e3d0: 8b 45 d4 mov -0x2c(%ebp),%eax
11e3d3: 89 c3 mov %eax,%ebx
return new_area;
11e3d5: 83 c4 10 add $0x10,%esp
11e3d8: eb 02 jmp 11e3dc <realloc+0xd4>
11e3da: 31 db xor %ebx,%ebx
}
11e3dc: 89 d8 mov %ebx,%eax
11e3de: 8d 65 f4 lea -0xc(%ebp),%esp
11e3e1: 5b pop %ebx
11e3e2: 5e pop %esi
11e3e3: 5f pop %edi
11e3e4: c9 leave
11e3e5: c3 ret
00129468 <rmdir>:
#include <rtems/seterr.h>
int rmdir(
const char *pathname
)
{
129468: 55 push %ebp
129469: 89 e5 mov %esp,%ebp
12946b: 57 push %edi
12946c: 56 push %esi
12946d: 53 push %ebx
12946e: 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 );
129471: ff 75 08 pushl 0x8(%ebp)
129474: e8 bb 38 fe ff call 10cd34 <rtems_filesystem_dirname>
129479: 89 45 b4 mov %eax,-0x4c(%ebp)
if ( parentpathlen == 0 )
12947c: 83 c4 10 add $0x10,%esp
12947f: 85 c0 test %eax,%eax
129481: 8d 45 d0 lea -0x30(%ebp),%eax
129484: 75 15 jne 12949b <rmdir+0x33>
rtems_filesystem_get_start_loc( pathname, &i, &parentloc );
129486: 52 push %edx
129487: 50 push %eax
129488: 8d 45 e4 lea -0x1c(%ebp),%eax
12948b: 50 push %eax
12948c: ff 75 08 pushl 0x8(%ebp)
12948f: e8 20 4f fe ff call 10e3b4 <rtems_filesystem_get_start_loc>
129494: 31 db xor %ebx,%ebx
129496: 83 c4 10 add $0x10,%esp
129499: eb 20 jmp 1294bb <rmdir+0x53>
else {
result = rtems_filesystem_evaluate_path(pathname, parentpathlen,
12949b: 83 ec 0c sub $0xc,%esp
12949e: 6a 00 push $0x0
1294a0: 50 push %eax
1294a1: 6a 02 push $0x2
1294a3: ff 75 b4 pushl -0x4c(%ebp)
1294a6: ff 75 08 pushl 0x8(%ebp)
1294a9: e8 83 39 fe ff call 10ce31 <rtems_filesystem_evaluate_path>
RTEMS_LIBIO_PERMS_WRITE,
&parentloc,
false );
if ( result != 0 )
1294ae: 83 c4 20 add $0x20,%esp
1294b1: 85 c0 test %eax,%eax
1294b3: 0f 85 73 01 00 00 jne 12962c <rmdir+0x1c4> <== NEVER TAKEN
1294b9: b3 01 mov $0x1,%bl
/*
* Start from the parent to find the node that should be under it.
*/
loc = parentloc;
1294bb: 8d 7d bc lea -0x44(%ebp),%edi
1294be: 8d 75 d0 lea -0x30(%ebp),%esi
1294c1: b9 05 00 00 00 mov $0x5,%ecx
1294c6: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
name = pathname + parentpathlen;
1294c8: 8b 75 08 mov 0x8(%ebp),%esi
1294cb: 03 75 b4 add -0x4c(%ebp),%esi
name += rtems_filesystem_prefix_separators( name, strlen( name ) );
1294ce: 83 c9 ff or $0xffffffff,%ecx
1294d1: 89 f7 mov %esi,%edi
1294d3: 31 c0 xor %eax,%eax
1294d5: f2 ae repnz scas %es:(%edi),%al
1294d7: f7 d1 not %ecx
1294d9: 49 dec %ecx
1294da: 57 push %edi
1294db: 57 push %edi
1294dc: 51 push %ecx
1294dd: 56 push %esi
1294de: e8 15 38 fe ff call 10ccf8 <rtems_filesystem_prefix_separators>
1294e3: 01 c6 add %eax,%esi
result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
1294e5: 83 c9 ff or $0xffffffff,%ecx
1294e8: 89 f7 mov %esi,%edi
1294ea: 31 c0 xor %eax,%eax
1294ec: f2 ae repnz scas %es:(%edi),%al
1294ee: f7 d1 not %ecx
1294f0: 49 dec %ecx
1294f1: c7 04 24 00 00 00 00 movl $0x0,(%esp)
1294f8: 8d 7d bc lea -0x44(%ebp),%edi
1294fb: 57 push %edi
1294fc: 6a 00 push $0x0
1294fe: 51 push %ecx
1294ff: 56 push %esi
129500: e8 72 38 fe ff call 10cd77 <rtems_filesystem_evaluate_relative_path>
0, &loc, false );
if ( result != 0 ) {
129505: 83 c4 20 add $0x20,%esp
129508: 85 c0 test %eax,%eax
12950a: 74 2f je 12953b <rmdir+0xd3>
if ( free_parentloc )
12950c: 84 db test %bl,%bl
12950e: 0f 84 18 01 00 00 je 12962c <rmdir+0x1c4> <== ALWAYS TAKEN
rtems_filesystem_freenode( &parentloc );
129514: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED
129517: 85 c0 test %eax,%eax <== NOT EXECUTED
129519: 0f 84 0d 01 00 00 je 12962c <rmdir+0x1c4> <== NOT EXECUTED
12951f: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED
129522: 85 c0 test %eax,%eax <== NOT EXECUTED
129524: 0f 84 02 01 00 00 je 12962c <rmdir+0x1c4> <== NOT EXECUTED
12952a: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12952d: 8d 55 d0 lea -0x30(%ebp),%edx <== NOT EXECUTED
129530: 52 push %edx <== NOT EXECUTED
129531: ff d0 call *%eax <== NOT EXECUTED
129533: 83 ce ff or $0xffffffff,%esi <== NOT EXECUTED
129536: e9 ec 00 00 00 jmp 129627 <rmdir+0x1bf> <== NOT EXECUTED
/*
* Verify you can remove this node as a directory.
*/
if ( !loc.ops->node_type_h ){
12953b: 8b 55 c8 mov -0x38(%ebp),%edx
12953e: 8b 42 10 mov 0x10(%edx),%eax
129541: 85 c0 test %eax,%eax
129543: 75 05 jne 12954a <rmdir+0xe2> <== ALWAYS TAKEN
rtems_filesystem_freenode( &loc );
129545: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED
129548: eb 65 jmp 1295af <rmdir+0x147> <== NOT EXECUTED
if ( free_parentloc )
rtems_filesystem_freenode( &parentloc );
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ){
12954a: 83 ec 0c sub $0xc,%esp
12954d: 57 push %edi
12954e: ff d0 call *%eax
129550: 83 c4 10 add $0x10,%esp
129553: 48 dec %eax
129554: 74 45 je 12959b <rmdir+0x133>
rtems_filesystem_freenode( &loc );
129556: 8b 45 c8 mov -0x38(%ebp),%eax
129559: 85 c0 test %eax,%eax
12955b: 74 10 je 12956d <rmdir+0x105> <== NEVER TAKEN
12955d: 8b 40 1c mov 0x1c(%eax),%eax
129560: 85 c0 test %eax,%eax
129562: 74 09 je 12956d <rmdir+0x105> <== NEVER TAKEN
129564: 83 ec 0c sub $0xc,%esp
129567: 57 push %edi
129568: ff d0 call *%eax
12956a: 83 c4 10 add $0x10,%esp
if ( free_parentloc )
12956d: 84 db test %bl,%bl
12956f: 74 1a je 12958b <rmdir+0x123> <== NEVER TAKEN
rtems_filesystem_freenode( &parentloc );
129571: 8b 45 dc mov -0x24(%ebp),%eax
129574: 85 c0 test %eax,%eax
129576: 74 13 je 12958b <rmdir+0x123> <== NEVER TAKEN
129578: 8b 40 1c mov 0x1c(%eax),%eax
12957b: 85 c0 test %eax,%eax
12957d: 74 0c je 12958b <rmdir+0x123> <== NEVER TAKEN
12957f: 83 ec 0c sub $0xc,%esp
129582: 8d 55 d0 lea -0x30(%ebp),%edx
129585: 52 push %edx
129586: ff d0 call *%eax
129588: 83 c4 10 add $0x10,%esp
rtems_set_errno_and_return_minus_one( ENOTDIR );
12958b: e8 84 4a 01 00 call 13e014 <__errno>
129590: c7 00 14 00 00 00 movl $0x14,(%eax)
129596: e9 91 00 00 00 jmp 12962c <rmdir+0x1c4>
/*
* Use the filesystems rmnod to remove the node.
*/
if ( !loc.handlers->rmnod_h ){
12959b: 8b 45 c4 mov -0x3c(%ebp),%eax
12959e: 8b 40 34 mov 0x34(%eax),%eax
1295a1: 85 c0 test %eax,%eax
1295a3: 75 42 jne 1295e7 <rmdir+0x17f> <== ALWAYS TAKEN
rtems_filesystem_freenode( &loc );
1295a5: 8b 45 c8 mov -0x38(%ebp),%eax <== NOT EXECUTED
1295a8: 85 c0 test %eax,%eax <== NOT EXECUTED
1295aa: 74 10 je 1295bc <rmdir+0x154> <== NOT EXECUTED
1295ac: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED
1295af: 85 c0 test %eax,%eax <== NOT EXECUTED
1295b1: 74 09 je 1295bc <rmdir+0x154> <== NOT EXECUTED
1295b3: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1295b6: 57 push %edi <== NOT EXECUTED
1295b7: ff d0 call *%eax <== NOT EXECUTED
1295b9: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
if ( free_parentloc )
1295bc: 84 db test %bl,%bl <== NOT EXECUTED
1295be: 74 1a je 1295da <rmdir+0x172> <== NOT EXECUTED
rtems_filesystem_freenode( &parentloc );
1295c0: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED
1295c3: 85 c0 test %eax,%eax <== NOT EXECUTED
1295c5: 74 13 je 1295da <rmdir+0x172> <== NOT EXECUTED
1295c7: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED
1295ca: 85 c0 test %eax,%eax <== NOT EXECUTED
1295cc: 74 0c je 1295da <rmdir+0x172> <== NOT EXECUTED
1295ce: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1295d1: 8d 55 d0 lea -0x30(%ebp),%edx <== NOT EXECUTED
1295d4: 52 push %edx <== NOT EXECUTED
1295d5: ff d0 call *%eax <== NOT EXECUTED
1295d7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
1295da: e8 35 4a 01 00 call 13e014 <__errno> <== NOT EXECUTED
1295df: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
1295e5: eb 45 jmp 12962c <rmdir+0x1c4> <== NOT EXECUTED
}
result = (*loc.handlers->rmnod_h)( &parentloc, &loc );
1295e7: 52 push %edx
1295e8: 52 push %edx
1295e9: 57 push %edi
1295ea: 8d 55 d0 lea -0x30(%ebp),%edx
1295ed: 52 push %edx
1295ee: ff d0 call *%eax
1295f0: 89 c6 mov %eax,%esi
rtems_filesystem_freenode( &loc );
1295f2: 8b 45 c8 mov -0x38(%ebp),%eax
1295f5: 83 c4 10 add $0x10,%esp
1295f8: 85 c0 test %eax,%eax
1295fa: 74 10 je 12960c <rmdir+0x1a4> <== NEVER TAKEN
1295fc: 8b 40 1c mov 0x1c(%eax),%eax
1295ff: 85 c0 test %eax,%eax
129601: 74 09 je 12960c <rmdir+0x1a4> <== NEVER TAKEN
129603: 83 ec 0c sub $0xc,%esp
129606: 57 push %edi
129607: ff d0 call *%eax
129609: 83 c4 10 add $0x10,%esp
if ( free_parentloc )
12960c: 84 db test %bl,%bl
12960e: 74 1f je 12962f <rmdir+0x1c7>
rtems_filesystem_freenode( &parentloc );
129610: 8b 45 dc mov -0x24(%ebp),%eax
129613: 85 c0 test %eax,%eax
129615: 74 18 je 12962f <rmdir+0x1c7> <== NEVER TAKEN
129617: 8b 40 1c mov 0x1c(%eax),%eax
12961a: 85 c0 test %eax,%eax
12961c: 74 11 je 12962f <rmdir+0x1c7> <== NEVER TAKEN
12961e: 83 ec 0c sub $0xc,%esp
129621: 8d 55 d0 lea -0x30(%ebp),%edx
129624: 52 push %edx
129625: ff d0 call *%eax
129627: 83 c4 10 add $0x10,%esp
12962a: eb 03 jmp 12962f <rmdir+0x1c7>
12962c: 83 ce ff or $0xffffffff,%esi
return result;
}
12962f: 89 f0 mov %esi,%eax
129631: 8d 65 f4 lea -0xc(%ebp),%esp
129634: 5b pop %ebx
129635: 5e pop %esi
129636: 5f pop %edi
129637: c9 leave
129638: c3 ret
00116750 <rtems_assoc_name_bad>:
uint32_t bad_value
#else
uint32_t bad_value __attribute((unused))
#endif
)
{
116750: 55 push %ebp <== NOT EXECUTED
116751: 89 e5 mov %esp,%ebp <== NOT EXECUTED
sprintf(bad_buffer, "< %" PRId32 "[0x%" PRIx32 " ] >", bad_value, bad_value);
#else
static char bad_buffer[40] = "<assocnamebad.c: : BAD NAME>";
#endif
return bad_buffer;
}
116753: b8 64 a0 12 00 mov $0x12a064,%eax <== NOT EXECUTED
116758: c9 leave <== NOT EXECUTED
116759: c3 ret <== NOT EXECUTED
001136c0 <rtems_assoc_name_by_local>:
const char *rtems_assoc_name_by_local(
const rtems_assoc_t *ap,
uint32_t local_value
)
{
1136c0: 55 push %ebp
1136c1: 89 e5 mov %esp,%ebp
1136c3: 53 push %ebx
1136c4: 83 ec 0c sub $0xc,%esp
1136c7: 8b 5d 0c mov 0xc(%ebp),%ebx
const rtems_assoc_t *nap;
nap = rtems_assoc_ptr_by_local(ap, local_value);
1136ca: 53 push %ebx
1136cb: ff 75 08 pushl 0x8(%ebp)
1136ce: e8 1d 00 00 00 call 1136f0 <rtems_assoc_ptr_by_local>
if (nap)
1136d3: 83 c4 10 add $0x10,%esp
1136d6: 85 c0 test %eax,%eax
1136d8: 74 07 je 1136e1 <rtems_assoc_name_by_local+0x21><== NEVER TAKEN
return nap->name;
1136da: 8b 00 mov (%eax),%eax
return rtems_assoc_name_bad(local_value);
}
1136dc: 8b 5d fc mov -0x4(%ebp),%ebx
1136df: c9 leave
1136e0: c3 ret
nap = rtems_assoc_ptr_by_local(ap, local_value);
if (nap)
return nap->name;
return rtems_assoc_name_bad(local_value);
1136e1: 89 5d 08 mov %ebx,0x8(%ebp) <== NOT EXECUTED
}
1136e4: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
1136e7: c9 leave <== NOT EXECUTED
nap = rtems_assoc_ptr_by_local(ap, local_value);
if (nap)
return nap->name;
return rtems_assoc_name_bad(local_value);
1136e8: e9 63 30 00 00 jmp 116750 <rtems_assoc_name_bad> <== NOT EXECUTED
001129b4 <rtems_assoc_ptr_by_local>:
const rtems_assoc_t *rtems_assoc_ptr_by_local(
const rtems_assoc_t *ap,
uint32_t local_value
)
{
1129b4: 55 push %ebp
1129b5: 89 e5 mov %esp,%ebp
1129b7: 56 push %esi
1129b8: 53 push %ebx
1129b9: 8b 5d 08 mov 0x8(%ebp),%ebx
1129bc: 8b 75 0c mov 0xc(%ebp),%esi
const rtems_assoc_t *default_ap = 0;
if (rtems_assoc_is_default(ap))
1129bf: 8b 03 mov (%ebx),%eax
1129c1: 85 c0 test %eax,%eax
1129c3: 74 1b je 1129e0 <rtems_assoc_ptr_by_local+0x2c><== NEVER TAKEN
1129c5: 52 push %edx
1129c6: 52 push %edx
1129c7: 68 bd 0b 12 00 push $0x120bbd
1129cc: 50 push %eax
1129cd: e8 5e 0b 00 00 call 113530 <strcmp>
1129d2: 83 c4 10 add $0x10,%esp
1129d5: 85 c0 test %eax,%eax
1129d7: 75 07 jne 1129e0 <rtems_assoc_ptr_by_local+0x2c><== ALWAYS TAKEN
default_ap = ap++;
1129d9: 89 d8 mov %ebx,%eax <== NOT EXECUTED
1129db: 83 c3 0c add $0xc,%ebx <== NOT EXECUTED
1129de: eb 0c jmp 1129ec <rtems_assoc_ptr_by_local+0x38><== NOT EXECUTED
1129e0: 31 c0 xor %eax,%eax
1129e2: eb 08 jmp 1129ec <rtems_assoc_ptr_by_local+0x38>
for ( ; ap->name; ap++)
if (ap->local_value == local_value)
1129e4: 39 73 04 cmp %esi,0x4(%ebx)
1129e7: 74 0a je 1129f3 <rtems_assoc_ptr_by_local+0x3f>
const rtems_assoc_t *default_ap = 0;
if (rtems_assoc_is_default(ap))
default_ap = ap++;
for ( ; ap->name; ap++)
1129e9: 83 c3 0c add $0xc,%ebx
1129ec: 83 3b 00 cmpl $0x0,(%ebx)
1129ef: 75 f3 jne 1129e4 <rtems_assoc_ptr_by_local+0x30>
1129f1: 89 c3 mov %eax,%ebx
if (ap->local_value == local_value)
return ap;
return default_ap;
}
1129f3: 89 d8 mov %ebx,%eax
1129f5: 8d 65 f8 lea -0x8(%ebp),%esp
1129f8: 5b pop %ebx
1129f9: 5e pop %esi
1129fa: c9 leave
1129fb: c3 ret
00111c28 <rtems_assoc_ptr_by_remote>:
const rtems_assoc_t *rtems_assoc_ptr_by_remote(
const rtems_assoc_t *ap,
uint32_t remote_value
)
{
111c28: 55 push %ebp
111c29: 89 e5 mov %esp,%ebp
111c2b: 56 push %esi
111c2c: 53 push %ebx
111c2d: 8b 5d 08 mov 0x8(%ebp),%ebx
111c30: 8b 75 0c mov 0xc(%ebp),%esi
const rtems_assoc_t *default_ap = 0;
if (rtems_assoc_is_default(ap))
111c33: 8b 03 mov (%ebx),%eax
111c35: 85 c0 test %eax,%eax
111c37: 74 1b je 111c54 <rtems_assoc_ptr_by_remote+0x2c><== NEVER TAKEN
111c39: 52 push %edx
111c3a: 52 push %edx
111c3b: 68 bd 0b 12 00 push $0x120bbd
111c40: 50 push %eax
111c41: e8 ea 18 00 00 call 113530 <strcmp>
111c46: 83 c4 10 add $0x10,%esp
111c49: 85 c0 test %eax,%eax
111c4b: 75 07 jne 111c54 <rtems_assoc_ptr_by_remote+0x2c><== ALWAYS TAKEN
default_ap = ap++;
111c4d: 89 d8 mov %ebx,%eax <== NOT EXECUTED
111c4f: 83 c3 0c add $0xc,%ebx <== NOT EXECUTED
111c52: eb 0c jmp 111c60 <rtems_assoc_ptr_by_remote+0x38><== NOT EXECUTED
111c54: 31 c0 xor %eax,%eax
111c56: eb 08 jmp 111c60 <rtems_assoc_ptr_by_remote+0x38>
for ( ; ap->name; ap++)
if (ap->remote_value == remote_value)
111c58: 39 73 08 cmp %esi,0x8(%ebx)
111c5b: 74 0a je 111c67 <rtems_assoc_ptr_by_remote+0x3f>
const rtems_assoc_t *default_ap = 0;
if (rtems_assoc_is_default(ap))
default_ap = ap++;
for ( ; ap->name; ap++)
111c5d: 83 c3 0c add $0xc,%ebx
111c60: 83 3b 00 cmpl $0x0,(%ebx)
111c63: 75 f3 jne 111c58 <rtems_assoc_ptr_by_remote+0x30>
111c65: 89 c3 mov %eax,%ebx
if (ap->remote_value == remote_value)
return ap;
return default_ap;
}
111c67: 89 d8 mov %ebx,%eax
111c69: 8d 65 f8 lea -0x8(%ebp),%esp
111c6c: 5b pop %ebx
111c6d: 5e pop %esi
111c6e: c9 leave
111c6f: c3 ret
00112948 <rtems_assoc_remote_by_local>:
uint32_t rtems_assoc_remote_by_local(
const rtems_assoc_t *ap,
uint32_t local_value
)
{
112948: 55 push %ebp <== NOT EXECUTED
112949: 89 e5 mov %esp,%ebp <== NOT EXECUTED
11294b: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED
const rtems_assoc_t *nap;
nap = rtems_assoc_ptr_by_local(ap, local_value);
11294e: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
112951: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
112954: e8 5b 00 00 00 call 1129b4 <rtems_assoc_ptr_by_local><== NOT EXECUTED
112959: 89 c2 mov %eax,%edx <== NOT EXECUTED
if (nap)
11295b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
11295e: 31 c0 xor %eax,%eax <== NOT EXECUTED
112960: 85 d2 test %edx,%edx <== NOT EXECUTED
112962: 74 03 je 112967 <rtems_assoc_remote_by_local+0x1f><== NOT EXECUTED
return nap->remote_value;
112964: 8b 42 08 mov 0x8(%edx),%eax <== NOT EXECUTED
return 0;
}
112967: c9 leave <== NOT EXECUTED
112968: c3 ret <== NOT EXECUTED
0010ede4 <rtems_bdbuf_add_to_modified_list_after_access>:
}
}
static void
rtems_bdbuf_add_to_modified_list_after_access (rtems_bdbuf_buffer *bd)
{
10ede4: 55 push %ebp
10ede5: 89 e5 mov %esp,%ebp
10ede7: 53 push %ebx
10ede8: 83 ec 04 sub $0x4,%esp
10edeb: 89 c3 mov %eax,%ebx
if (bdbuf_cache.sync_active && bdbuf_cache.sync_device == bd->dev)
10eded: a0 18 8f 12 00 mov 0x128f18,%al
10edf2: 84 c0 test %al,%al
10edf4: 74 33 je 10ee29 <rtems_bdbuf_add_to_modified_list_after_access+0x45><== ALWAYS TAKEN
10edf6: a1 20 8f 12 00 mov 0x128f20,%eax <== NOT EXECUTED
10edfb: 8b 15 24 8f 12 00 mov 0x128f24,%edx <== NOT EXECUTED
10ee01: 3b 53 18 cmp 0x18(%ebx),%edx <== NOT EXECUTED
10ee04: 75 23 jne 10ee29 <rtems_bdbuf_add_to_modified_list_after_access+0x45><== NOT EXECUTED
10ee06: 3b 43 14 cmp 0x14(%ebx),%eax <== NOT EXECUTED
10ee09: 75 1e jne 10ee29 <rtems_bdbuf_add_to_modified_list_after_access+0x45><== NOT EXECUTED
{
rtems_bdbuf_unlock_cache ();
10ee0b: e8 79 fe ff ff call 10ec89 <rtems_bdbuf_unlock_cache><== NOT EXECUTED
* Lock the cache's sync. A single task can nest calls.
*/
static void
rtems_bdbuf_lock_sync (void)
{
rtems_bdbuf_lock (bdbuf_cache.sync_lock, RTEMS_BLKDEV_FATAL_BDBUF_SYNC_LOCK);
10ee10: ba 0b 00 00 42 mov $0x4200000b,%edx <== NOT EXECUTED
10ee15: a1 14 8f 12 00 mov 0x128f14,%eax <== NOT EXECUTED
10ee1a: e8 cd fc ff ff call 10eaec <rtems_bdbuf_lock> <== NOT EXECUTED
/*
* Wait for the sync lock.
*/
rtems_bdbuf_lock_sync ();
rtems_bdbuf_unlock_sync ();
10ee1f: e8 8c fe ff ff call 10ecb0 <rtems_bdbuf_unlock_sync><== NOT EXECUTED
rtems_bdbuf_lock_cache ();
10ee24: e8 eb fc ff ff call 10eb14 <rtems_bdbuf_lock_cache><== NOT EXECUTED
* nothing being written? We have tended to think we should hold changes for
* only a specific period of time even if still changing and get onto disk
* and letting the file system try and recover this position if it can.
*/
if (bd->state == RTEMS_BDBUF_STATE_ACCESS_CACHED
|| bd->state == RTEMS_BDBUF_STATE_ACCESS_EMPTY)
10ee29: 8b 43 24 mov 0x24(%ebx),%eax
* difficult question. Is a snapshot of a block that is changing better than
* nothing being written? We have tended to think we should hold changes for
* only a specific period of time even if still changing and get onto disk
* and letting the file system try and recover this position if it can.
*/
if (bd->state == RTEMS_BDBUF_STATE_ACCESS_CACHED
10ee2c: 83 f8 03 cmp $0x3,%eax
10ee2f: 74 08 je 10ee39 <rtems_bdbuf_add_to_modified_list_after_access+0x55>
|| bd->state == RTEMS_BDBUF_STATE_ACCESS_EMPTY)
10ee31: 8b 43 24 mov 0x24(%ebx),%eax
* difficult question. Is a snapshot of a block that is changing better than
* nothing being written? We have tended to think we should hold changes for
* only a specific period of time even if still changing and get onto disk
* and letting the file system try and recover this position if it can.
*/
if (bd->state == RTEMS_BDBUF_STATE_ACCESS_CACHED
10ee34: 83 f8 05 cmp $0x5,%eax
10ee37: 75 08 jne 10ee41 <rtems_bdbuf_add_to_modified_list_after_access+0x5d>
|| bd->state == RTEMS_BDBUF_STATE_ACCESS_EMPTY)
bd->hold_timer = bdbuf_config.swap_block_hold;
10ee39: a1 b8 1c 12 00 mov 0x121cb8,%eax
10ee3e: 89 43 30 mov %eax,0x30(%ebx)
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
10ee41: c7 43 24 07 00 00 00 movl $0x7,0x24(%ebx)
RTEMS_INLINE_ROUTINE void rtems_chain_append(
rtems_chain_control *the_chain,
rtems_chain_node *the_node
)
{
_Chain_Append( the_chain, the_node );
10ee48: 50 push %eax
10ee49: 50 push %eax
10ee4a: 53 push %ebx
10ee4b: 68 38 8f 12 00 push $0x128f38
10ee50: e8 b7 d0 ff ff call 10bf0c <_Chain_Append>
bd->hold_timer = bdbuf_config.swap_block_hold;
rtems_bdbuf_set_state (bd, RTEMS_BDBUF_STATE_MODIFIED);
rtems_chain_append (&bdbuf_cache.modified, &bd->link);
if (bd->waiters)
10ee55: 8b 43 28 mov 0x28(%ebx),%eax
10ee58: 83 c4 10 add $0x10,%esp
10ee5b: 85 c0 test %eax,%eax
10ee5d: 74 0e je 10ee6d <rtems_bdbuf_add_to_modified_list_after_access+0x89>
rtems_bdbuf_wake (&bdbuf_cache.access_waiters);
10ee5f: b8 50 8f 12 00 mov $0x128f50,%eax
else if (rtems_bdbuf_has_buffer_waiters ())
rtems_bdbuf_wake_swapper ();
}
10ee64: 8b 5d fc mov -0x4(%ebp),%ebx
10ee67: c9 leave
rtems_bdbuf_set_state (bd, RTEMS_BDBUF_STATE_MODIFIED);
rtems_chain_append (&bdbuf_cache.modified, &bd->link);
if (bd->waiters)
rtems_bdbuf_wake (&bdbuf_cache.access_waiters);
10ee68: e9 ba fc ff ff jmp 10eb27 <rtems_bdbuf_wake>
}
static bool
rtems_bdbuf_has_buffer_waiters (void)
{
return bdbuf_cache.buffer_waiters.count;
10ee6d: a1 60 8f 12 00 mov 0x128f60,%eax
rtems_bdbuf_set_state (bd, RTEMS_BDBUF_STATE_MODIFIED);
rtems_chain_append (&bdbuf_cache.modified, &bd->link);
if (bd->waiters)
rtems_bdbuf_wake (&bdbuf_cache.access_waiters);
else if (rtems_bdbuf_has_buffer_waiters ())
10ee72: 85 c0 test %eax,%eax
10ee74: 74 09 je 10ee7f <rtems_bdbuf_add_to_modified_list_after_access+0x9b>
rtems_bdbuf_wake_swapper ();
}
10ee76: 8b 5d fc mov -0x4(%ebp),%ebx
10ee79: c9 leave
rtems_chain_append (&bdbuf_cache.modified, &bd->link);
if (bd->waiters)
rtems_bdbuf_wake (&bdbuf_cache.access_waiters);
else if (rtems_bdbuf_has_buffer_waiters ())
rtems_bdbuf_wake_swapper ();
10ee7a: e9 3c ff ff ff jmp 10edbb <rtems_bdbuf_wake_swapper>
}
10ee7f: 8b 5d fc mov -0x4(%ebp),%ebx
10ee82: c9 leave
10ee83: c3 ret
0010efd9 <rtems_bdbuf_anonymous_wait>:
* The function assumes the cache is locked on entry and it will be locked on
* exit.
*/
static void
rtems_bdbuf_anonymous_wait (rtems_bdbuf_waiters *waiters)
{
10efd9: 55 push %ebp
10efda: 89 e5 mov %esp,%ebp
10efdc: 56 push %esi
10efdd: 53 push %ebx
10efde: 89 c3 mov %eax,%ebx
rtems_mode prev_mode;
/*
* Indicate we are waiting.
*/
++waiters->count;
10efe0: 8b 00 mov (%eax),%eax
10efe2: 40 inc %eax
10efe3: 89 03 mov %eax,(%ebx)
* blocking or just hits that window, and before this task has blocked on the
* semaphore. If the preempting task flushes the queue this task will not see
* the flush and may block for ever or until another transaction flushes this
* semaphore.
*/
prev_mode = rtems_bdbuf_disable_preemption ();
10efe5: e8 86 ff ff ff call 10ef70 <rtems_bdbuf_disable_preemption>
10efea: 89 c6 mov %eax,%esi
/*
* Unlock the cache, wait, and lock the cache when we return.
*/
rtems_bdbuf_unlock_cache ();
10efec: e8 98 fc ff ff call 10ec89 <rtems_bdbuf_unlock_cache>
sc = rtems_semaphore_obtain (waiters->sema, RTEMS_WAIT, RTEMS_BDBUF_WAIT_TIMEOUT);
10eff1: 52 push %edx
10eff2: 6a 00 push $0x0
10eff4: 6a 00 push $0x0
10eff6: ff 73 04 pushl 0x4(%ebx)
10eff9: e8 a2 c5 ff ff call 10b5a0 <rtems_semaphore_obtain>
if (sc == RTEMS_TIMEOUT)
10effe: 83 c4 10 add $0x10,%esp
10f001: 83 f8 06 cmp $0x6,%eax
10f004: 75 0a jne 10f010 <rtems_bdbuf_anonymous_wait+0x37><== ALWAYS TAKEN
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_CACHE_WAIT_TO);
10f006: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10f009: 68 12 00 00 42 push $0x42000012 <== NOT EXECUTED
10f00e: eb 0d jmp 10f01d <rtems_bdbuf_anonymous_wait+0x44><== NOT EXECUTED
if (sc != RTEMS_UNSATISFIED)
10f010: 83 f8 0d cmp $0xd,%eax
10f013: 74 0d je 10f022 <rtems_bdbuf_anonymous_wait+0x49><== ALWAYS TAKEN
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_CACHE_WAIT_2);
10f015: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10f018: 68 10 00 00 42 push $0x42000010 <== NOT EXECUTED
10f01d: e8 d2 ca ff ff call 10baf4 <rtems_fatal_error_occurred><== NOT EXECUTED
rtems_bdbuf_lock_cache ();
10f022: e8 ed fa ff ff call 10eb14 <rtems_bdbuf_lock_cache>
rtems_bdbuf_restore_preemption (prev_mode);
10f027: 89 f0 mov %esi,%eax
10f029: e8 7b ff ff ff call 10efa9 <rtems_bdbuf_restore_preemption>
--waiters->count;
10f02e: 8b 03 mov (%ebx),%eax
10f030: 48 dec %eax
10f031: 89 03 mov %eax,(%ebx)
}
10f033: 8d 65 f8 lea -0x8(%ebp),%esp
10f036: 5b pop %ebx
10f037: 5e pop %esi
10f038: c9 leave
10f039: c3 ret
0010ef70 <rtems_bdbuf_disable_preemption>:
--bd->group->users;
}
static rtems_mode
rtems_bdbuf_disable_preemption (void)
{
10ef70: 55 push %ebp
10ef71: 89 e5 mov %esp,%ebp
10ef73: 83 ec 1c sub $0x1c,%esp
rtems_status_code sc = RTEMS_SUCCESSFUL;
rtems_mode prev_mode = 0;
10ef76: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
sc = rtems_task_mode (RTEMS_NO_PREEMPT, RTEMS_PREEMPT_MASK, &prev_mode);
10ef7d: 8d 45 f4 lea -0xc(%ebp),%eax
10ef80: 50 push %eax
10ef81: 68 00 01 00 00 push $0x100
10ef86: 68 00 01 00 00 push $0x100
10ef8b: e8 80 42 00 00 call 113210 <rtems_task_mode>
if (sc != RTEMS_SUCCESSFUL)
10ef90: 83 c4 10 add $0x10,%esp
10ef93: 85 c0 test %eax,%eax
10ef95: 74 0d je 10efa4 <rtems_bdbuf_disable_preemption+0x34><== ALWAYS TAKEN
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_PREEMPT_DIS);
10ef97: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10ef9a: 68 0f 00 00 42 push $0x4200000f <== NOT EXECUTED
10ef9f: e8 50 cb ff ff call 10baf4 <rtems_fatal_error_occurred><== NOT EXECUTED
return prev_mode;
}
10efa4: 8b 45 f4 mov -0xc(%ebp),%eax
10efa7: c9 leave
10efa8: c3 ret
00110616 <rtems_bdbuf_get>:
rtems_status_code
rtems_bdbuf_get (dev_t dev,
rtems_blkdev_bnum block,
rtems_bdbuf_buffer **bd_ptr)
{
110616: 55 push %ebp
110617: 89 e5 mov %esp,%ebp
110619: 57 push %edi
11061a: 56 push %esi
11061b: 53 push %ebx
11061c: 83 ec 20 sub $0x20,%esp
11061f: 8b 5d 08 mov 0x8(%ebp),%ebx
110622: 8b 75 0c mov 0xc(%ebp),%esi
rtems_status_code sc = RTEMS_SUCCESSFUL;
rtems_disk_device *dd = NULL;
110625: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp)
rtems_bdbuf_buffer *bd = NULL;
rtems_blkdev_bnum media_block = 0;
11062c: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp)
size_t bds_per_group = 0;
110633: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp)
sc = rtems_bdbuf_obtain_disk (dev, block, &dd, &media_block, &bds_per_group);
11063a: 8d 45 dc lea -0x24(%ebp),%eax
11063d: 50 push %eax
11063e: 8d 45 e0 lea -0x20(%ebp),%eax
110641: 50 push %eax
110642: 8d 45 e4 lea -0x1c(%ebp),%eax
110645: 50 push %eax
110646: 8b 4d 10 mov 0x10(%ebp),%ecx
110649: 89 d8 mov %ebx,%eax
11064b: 89 f2 mov %esi,%edx
11064d: e8 85 e6 ff ff call 10ecd7 <rtems_bdbuf_obtain_disk>
110652: 89 c7 mov %eax,%edi
if (sc != RTEMS_SUCCESSFUL)
110654: 83 c4 10 add $0x10,%esp
110657: 85 c0 test %eax,%eax
110659: 75 6f jne 1106ca <rtems_bdbuf_get+0xb4> <== NEVER TAKEN
return sc;
rtems_bdbuf_lock_cache ();
11065b: e8 b4 e4 ff ff call 10eb14 <rtems_bdbuf_lock_cache>
*/
if (rtems_bdbuf_tracer)
printf ("bdbuf:get: %" PRIu32 " (%" PRIu32 ") (dev = %08x)\n",
media_block, block, (unsigned) dev);
bd = rtems_bdbuf_get_buffer_for_access (dev, media_block, bds_per_group);
110660: 83 ec 0c sub $0xc,%esp
110663: ff 75 dc pushl -0x24(%ebp)
110666: 8b 4d e0 mov -0x20(%ebp),%ecx
110669: 89 d8 mov %ebx,%eax
11066b: 89 f2 mov %esi,%edx
11066d: e8 16 fe ff ff call 110488 <rtems_bdbuf_get_buffer_for_access>
110672: 89 c3 mov %eax,%ebx
switch (bd->state)
110674: 8b 40 24 mov 0x24(%eax),%eax
110677: 83 c4 10 add $0x10,%esp
11067a: 83 f8 02 cmp $0x2,%eax
11067d: 74 0a je 110689 <rtems_bdbuf_get+0x73>
11067f: 83 f8 07 cmp $0x7,%eax
110682: 74 17 je 11069b <rtems_bdbuf_get+0x85>
110684: 48 dec %eax
110685: 75 1d jne 1106a4 <rtems_bdbuf_get+0x8e> <== NEVER TAKEN
110687: eb 09 jmp 110692 <rtems_bdbuf_get+0x7c>
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
110689: c7 43 24 03 00 00 00 movl $0x3,0x24(%ebx)
switch (bd->state)
{
case RTEMS_BDBUF_STATE_CACHED:
rtems_bdbuf_set_state (bd, RTEMS_BDBUF_STATE_ACCESS_CACHED);
break;
110690: eb 26 jmp 1106b8 <rtems_bdbuf_get+0xa2>
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
110692: c7 43 24 05 00 00 00 movl $0x5,0x24(%ebx)
case RTEMS_BDBUF_STATE_CACHED:
rtems_bdbuf_set_state (bd, RTEMS_BDBUF_STATE_ACCESS_CACHED);
break;
case RTEMS_BDBUF_STATE_EMPTY:
rtems_bdbuf_set_state (bd, RTEMS_BDBUF_STATE_ACCESS_EMPTY);
break;
110699: eb 1d jmp 1106b8 <rtems_bdbuf_get+0xa2>
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
11069b: c7 43 24 04 00 00 00 movl $0x4,0x24(%ebx)
* may have modified a byte in a block then decided to seek the start and
* write the whole block and the file system will have no record of this
* so just gets the block to fill.
*/
rtems_bdbuf_set_state (bd, RTEMS_BDBUF_STATE_ACCESS_MODIFIED);
break;
1106a2: eb 14 jmp 1106b8 <rtems_bdbuf_get+0xa2>
default:
rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_STATE_2);
1106a4: 8b 43 24 mov 0x24(%ebx),%eax <== NOT EXECUTED
#endif
static void
rtems_bdbuf_fatal (rtems_bdbuf_buf_state state, uint32_t error)
{
rtems_fatal_error_occurred ((((uint32_t) state) << 16) | error);
1106a7: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1106aa: c1 e0 10 shl $0x10,%eax <== NOT EXECUTED
1106ad: 0d 1e 00 00 42 or $0x4200001e,%eax <== NOT EXECUTED
1106b2: 50 push %eax <== NOT EXECUTED
1106b3: e8 3c b4 ff ff call 10baf4 <rtems_fatal_error_occurred><== NOT EXECUTED
{
rtems_bdbuf_show_users ("get", bd);
rtems_bdbuf_show_usage ();
}
rtems_bdbuf_unlock_cache ();
1106b8: e8 cc e5 ff ff call 10ec89 <rtems_bdbuf_unlock_cache>
rtems_bdbuf_release_disk (dd);
1106bd: 8b 45 e4 mov -0x1c(%ebp),%eax
1106c0: e8 d4 e6 ff ff call 10ed99 <rtems_bdbuf_release_disk>
*bd_ptr = bd;
1106c5: 8b 45 14 mov 0x14(%ebp),%eax
1106c8: 89 18 mov %ebx,(%eax)
return RTEMS_SUCCESSFUL;
}
1106ca: 89 f8 mov %edi,%eax
1106cc: 8d 65 f4 lea -0xc(%ebp),%esp
1106cf: 5b pop %ebx
1106d0: 5e pop %esi
1106d1: 5f pop %edi
1106d2: c9 leave
1106d3: c3 ret
00110488 <rtems_bdbuf_get_buffer_for_access>:
static rtems_bdbuf_buffer *
rtems_bdbuf_get_buffer_for_access (dev_t dev,
rtems_blkdev_bnum block,
size_t bds_per_group)
{
110488: 55 push %ebp
110489: 89 e5 mov %esp,%ebp
11048b: 57 push %edi
11048c: 56 push %esi
11048d: 53 push %ebx
11048e: 83 ec 1c sub $0x1c,%esp
110491: 89 c3 mov %eax,%ebx
110493: 89 d7 mov %edx,%edi
110495: 89 4d e4 mov %ecx,-0x1c(%ebp)
static rtems_bdbuf_buffer *
rtems_bdbuf_avl_search (rtems_bdbuf_buffer** root,
dev_t dev,
rtems_blkdev_bnum block)
{
rtems_bdbuf_buffer* p = *root;
110498: 8b 35 28 8f 12 00 mov 0x128f28,%esi
11049e: eb 12 jmp 1104b2 <rtems_bdbuf_get_buffer_for_access+0x2a>
while ((p != NULL) && ((p->dev != dev) || (p->block != block)))
{
if ((p->dev < dev) || ((p->dev == dev) && (p->block < block)))
1104a0: 39 fa cmp %edi,%edx
1104a2: 72 06 jb 1104aa <rtems_bdbuf_get_buffer_for_access+0x22><== NEVER TAKEN
1104a4: 77 09 ja 1104af <rtems_bdbuf_get_buffer_for_access+0x27><== NEVER TAKEN
1104a6: 39 d8 cmp %ebx,%eax
1104a8: 73 05 jae 1104af <rtems_bdbuf_get_buffer_for_access+0x27>
{
p = p->avl.right;
1104aa: 8b 76 0c mov 0xc(%esi),%esi
1104ad: eb 03 jmp 1104b2 <rtems_bdbuf_get_buffer_for_access+0x2a>
}
else
{
p = p->avl.left;
1104af: 8b 76 08 mov 0x8(%esi),%esi
dev_t dev,
rtems_blkdev_bnum block)
{
rtems_bdbuf_buffer* p = *root;
while ((p != NULL) && ((p->dev != dev) || (p->block != block)))
1104b2: 85 f6 test %esi,%esi
1104b4: 74 1b je 1104d1 <rtems_bdbuf_get_buffer_for_access+0x49>
1104b6: 8b 46 14 mov 0x14(%esi),%eax
1104b9: 8b 56 18 mov 0x18(%esi),%edx
1104bc: 39 fa cmp %edi,%edx
1104be: 75 e0 jne 1104a0 <rtems_bdbuf_get_buffer_for_access+0x18><== NEVER TAKEN
1104c0: 39 d8 cmp %ebx,%eax
1104c2: 75 dc jne 1104a0 <rtems_bdbuf_get_buffer_for_access+0x18>
1104c4: 8b 45 e4 mov -0x1c(%ebp),%eax
1104c7: 39 46 1c cmp %eax,0x1c(%esi)
1104ca: 75 dc jne 1104a8 <rtems_bdbuf_get_buffer_for_access+0x20>
1104cc: e9 35 01 00 00 jmp 110606 <rtems_bdbuf_get_buffer_for_access+0x17e>
bd = NULL;
}
}
else
{
bd = rtems_bdbuf_get_buffer_from_lru_list (dev, block, bds_per_group);
1104d1: 83 ec 0c sub $0xc,%esp
1104d4: ff 75 08 pushl 0x8(%ebp)
1104d7: 8b 4d e4 mov -0x1c(%ebp),%ecx
1104da: 89 d8 mov %ebx,%eax
1104dc: 89 fa mov %edi,%edx
1104de: e8 77 fc ff ff call 11015a <rtems_bdbuf_get_buffer_from_lru_list>
1104e3: 89 c6 mov %eax,%esi
if (bd == NULL)
1104e5: 83 c4 10 add $0x10,%esp
1104e8: 85 c0 test %eax,%eax
1104ea: 0f 85 b9 00 00 00 jne 1105a9 <rtems_bdbuf_get_buffer_for_access+0x121>
1104f0: e9 94 00 00 00 jmp 110589 <rtems_bdbuf_get_buffer_for_access+0x101>
static bool
rtems_bdbuf_wait_for_recycle (rtems_bdbuf_buffer *bd)
{
while (true)
{
switch (bd->state)
1104f5: 8b 46 24 mov 0x24(%esi),%eax
1104f8: 83 f8 0a cmp $0xa,%eax
1104fb: 77 4c ja 110549 <rtems_bdbuf_get_buffer_for_access+0xc1><== NEVER TAKEN
1104fd: ff 24 85 34 38 12 00 jmp *0x123834(,%eax,4)
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
110504: c7 46 24 08 00 00 00 movl $0x8,0x24(%esi) <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void rtems_chain_extract(
rtems_chain_node *the_node
)
{
_Chain_Extract( the_node );
11050b: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
11050e: 56 push %esi <== NOT EXECUTED
11050f: e8 1c ba ff ff call 10bf30 <_Chain_Extract> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void rtems_chain_append(
rtems_chain_control *the_chain,
rtems_chain_node *the_node
)
{
_Chain_Append( the_chain, the_node );
110514: 5a pop %edx <== NOT EXECUTED
110515: 59 pop %ecx <== NOT EXECUTED
110516: 56 push %esi <== NOT EXECUTED
110517: 68 44 8f 12 00 push $0x128f44 <== NOT EXECUTED
11051c: e8 eb b9 ff ff call 10bf0c <_Chain_Append> <== NOT EXECUTED
rtems_bdbuf_request_sync_for_modified_buffer (rtems_bdbuf_buffer *bd)
{
rtems_bdbuf_set_state (bd, RTEMS_BDBUF_STATE_SYNC);
rtems_chain_extract (&bd->link);
rtems_chain_append (&bdbuf_cache.sync, &bd->link);
rtems_bdbuf_wake_swapper ();
110521: e8 95 e8 ff ff call 10edbb <rtems_bdbuf_wake_swapper><== NOT EXECUTED
110526: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
110529: eb ca jmp 1104f5 <rtems_bdbuf_get_buffer_for_access+0x6d><== NOT EXECUTED
case RTEMS_BDBUF_STATE_MODIFIED:
rtems_bdbuf_request_sync_for_modified_buffer (bd);
break;
case RTEMS_BDBUF_STATE_CACHED:
case RTEMS_BDBUF_STATE_EMPTY:
if (bd->waiters == 0)
11052b: 8b 46 28 mov 0x28(%esi),%eax
11052e: 85 c0 test %eax,%eax
110530: 74 2a je 11055c <rtems_bdbuf_get_buffer_for_access+0xd4><== NEVER TAKEN
110532: eb 66 jmp 11059a <rtems_bdbuf_get_buffer_for_access+0x112>
}
case RTEMS_BDBUF_STATE_ACCESS_CACHED:
case RTEMS_BDBUF_STATE_ACCESS_EMPTY:
case RTEMS_BDBUF_STATE_ACCESS_MODIFIED:
case RTEMS_BDBUF_STATE_ACCESS_PURGED:
rtems_bdbuf_wait (bd, &bdbuf_cache.access_waiters);
110534: ba 50 8f 12 00 mov $0x128f50,%edx
110539: eb 05 jmp 110540 <rtems_bdbuf_get_buffer_for_access+0xb8>
break;
case RTEMS_BDBUF_STATE_SYNC:
case RTEMS_BDBUF_STATE_TRANSFER:
case RTEMS_BDBUF_STATE_TRANSFER_PURGED:
rtems_bdbuf_wait (bd, &bdbuf_cache.transfer_waiters);
11053b: ba 58 8f 12 00 mov $0x128f58,%edx <== NOT EXECUTED
110540: 89 f0 mov %esi,%eax
110542: e8 f3 ea ff ff call 10f03a <rtems_bdbuf_wait>
110547: eb ac jmp 1104f5 <rtems_bdbuf_get_buffer_for_access+0x6d>
break;
default:
rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_STATE_8);
110549: 8b 46 24 mov 0x24(%esi),%eax <== NOT EXECUTED
#endif
static void
rtems_bdbuf_fatal (rtems_bdbuf_buf_state state, uint32_t error)
{
rtems_fatal_error_occurred ((((uint32_t) state) << 16) | error);
11054c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
11054f: c1 e0 10 shl $0x10,%eax <== NOT EXECUTED
110552: 0d 06 00 00 42 or $0x42000006,%eax <== NOT EXECUTED
110557: e9 94 00 00 00 jmp 1105f0 <rtems_bdbuf_get_buffer_for_access+0x168><== NOT EXECUTED
{
if (bd->group->bds_per_group != bds_per_group)
{
if (rtems_bdbuf_wait_for_recycle (bd))
{
rtems_bdbuf_remove_from_tree_and_lru_list (bd);
11055c: 89 f0 mov %esi,%eax <== NOT EXECUTED
11055e: e8 bd f1 ff ff call 10f720 <rtems_bdbuf_remove_from_tree_and_lru_list><== NOT EXECUTED
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
110563: c7 46 24 00 00 00 00 movl $0x0,0x24(%esi) <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Chain_Prepend(
Chain_Control *the_chain,
Chain_Node *the_node
)
{
_Chain_Insert(_Chain_Head(the_chain), the_node);
11056a: 50 push %eax <== NOT EXECUTED
11056b: 50 push %eax <== NOT EXECUTED
11056c: 56 push %esi <== NOT EXECUTED
11056d: 68 2c 8f 12 00 push $0x128f2c <== NOT EXECUTED
110572: e8 a9 30 00 00 call 113620 <_Chain_Insert> <== NOT EXECUTED
{
if (rtems_bdbuf_wait_for_recycle (bd))
{
rtems_bdbuf_remove_from_tree_and_lru_list (bd);
rtems_bdbuf_make_free_and_add_to_lru_list (bd);
rtems_bdbuf_wake (&bdbuf_cache.buffer_waiters);
110577: b8 60 8f 12 00 mov $0x128f60,%eax <== NOT EXECUTED
11057c: e8 a6 e5 ff ff call 10eb27 <rtems_bdbuf_wake> <== NOT EXECUTED
110581: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
110584: e9 0f ff ff ff jmp 110498 <rtems_bdbuf_get_buffer_for_access+0x10><== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
110589: 81 3d 38 8f 12 00 3c cmpl $0x128f3c,0x128f38
110590: 8f 12 00
110593: 74 05 je 11059a <rtems_bdbuf_get_buffer_for_access+0x112>
static void
rtems_bdbuf_wait_for_buffer (void)
{
if (!rtems_chain_is_empty (&bdbuf_cache.modified))
rtems_bdbuf_wake_swapper ();
110595: e8 21 e8 ff ff call 10edbb <rtems_bdbuf_wake_swapper>
rtems_bdbuf_anonymous_wait (&bdbuf_cache.buffer_waiters);
11059a: b8 60 8f 12 00 mov $0x128f60,%eax
11059f: e8 35 ea ff ff call 10efd9 <rtems_bdbuf_anonymous_wait>
1105a4: e9 ef fe ff ff jmp 110498 <rtems_bdbuf_get_buffer_for_access+0x10>
static void
rtems_bdbuf_wait_for_access (rtems_bdbuf_buffer *bd)
{
while (true)
{
switch (bd->state)
1105a9: 8b 46 24 mov 0x24(%esi),%eax
1105ac: 48 dec %eax
1105ad: 83 f8 09 cmp $0x9,%eax
1105b0: 77 30 ja 1105e2 <rtems_bdbuf_get_buffer_for_access+0x15a><== NEVER TAKEN
1105b2: ff 24 85 60 38 12 00 jmp *0x123860(,%eax,4)
}
static void
rtems_bdbuf_group_release (rtems_bdbuf_buffer *bd)
{
--bd->group->users;
1105b9: 8b 46 2c mov 0x2c(%esi),%eax
1105bc: ff 48 0c decl 0xc(%eax)
*/
RTEMS_INLINE_ROUTINE void rtems_chain_extract(
rtems_chain_node *the_node
)
{
_Chain_Extract( the_node );
1105bf: 83 ec 0c sub $0xc,%esp
1105c2: 56 push %esi
1105c3: e8 68 b9 ff ff call 10bf30 <_Chain_Extract>
1105c8: 83 c4 10 add $0x10,%esp
1105cb: eb 29 jmp 1105f6 <rtems_bdbuf_get_buffer_for_access+0x16e>
return;
case RTEMS_BDBUF_STATE_ACCESS_CACHED:
case RTEMS_BDBUF_STATE_ACCESS_EMPTY:
case RTEMS_BDBUF_STATE_ACCESS_MODIFIED:
case RTEMS_BDBUF_STATE_ACCESS_PURGED:
rtems_bdbuf_wait (bd, &bdbuf_cache.access_waiters);
1105cd: ba 50 8f 12 00 mov $0x128f50,%edx
1105d2: eb 05 jmp 1105d9 <rtems_bdbuf_get_buffer_for_access+0x151>
break;
case RTEMS_BDBUF_STATE_SYNC:
case RTEMS_BDBUF_STATE_TRANSFER:
case RTEMS_BDBUF_STATE_TRANSFER_PURGED:
rtems_bdbuf_wait (bd, &bdbuf_cache.transfer_waiters);
1105d4: ba 58 8f 12 00 mov $0x128f58,%edx
1105d9: 89 f0 mov %esi,%eax
1105db: e8 5a ea ff ff call 10f03a <rtems_bdbuf_wait>
1105e0: eb c7 jmp 1105a9 <rtems_bdbuf_get_buffer_for_access+0x121>
break;
default:
rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_STATE_7);
1105e2: 8b 46 24 mov 0x24(%esi),%eax <== NOT EXECUTED
#endif
static void
rtems_bdbuf_fatal (rtems_bdbuf_buf_state state, uint32_t error)
{
rtems_fatal_error_occurred ((((uint32_t) state) << 16) | error);
1105e5: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1105e8: c1 e0 10 shl $0x10,%eax <== NOT EXECUTED
1105eb: 0d 05 00 00 42 or $0x42000005,%eax <== NOT EXECUTED
1105f0: 50 push %eax <== NOT EXECUTED
1105f1: e8 fe b4 ff ff call 10baf4 <rtems_fatal_error_occurred><== NOT EXECUTED
}
static void
rtems_bdbuf_group_obtain (rtems_bdbuf_buffer *bd)
{
++bd->group->users;
1105f6: 8b 46 2c mov 0x2c(%esi),%eax
1105f9: ff 40 0c incl 0xc(%eax)
rtems_bdbuf_wait_for_access (bd);
rtems_bdbuf_group_obtain (bd);
return bd;
}
1105fc: 89 f0 mov %esi,%eax
1105fe: 8d 65 f4 lea -0xc(%ebp),%esp
110601: 5b pop %ebx
110602: 5e pop %esi
110603: 5f pop %edi
110604: c9 leave
110605: c3 ret
{
bd = rtems_bdbuf_avl_search (&bdbuf_cache.tree, dev, block);
if (bd != NULL)
{
if (bd->group->bds_per_group != bds_per_group)
110606: 8b 46 2c mov 0x2c(%esi),%eax
110609: 8b 55 08 mov 0x8(%ebp),%edx
11060c: 39 50 08 cmp %edx,0x8(%eax)
11060f: 74 98 je 1105a9 <rtems_bdbuf_get_buffer_for_access+0x121>
110611: e9 df fe ff ff jmp 1104f5 <rtems_bdbuf_get_buffer_for_access+0x6d>
0011015a <rtems_bdbuf_get_buffer_from_lru_list>:
static rtems_bdbuf_buffer *
rtems_bdbuf_get_buffer_from_lru_list (dev_t dev,
rtems_blkdev_bnum block,
size_t bds_per_group)
{
11015a: 55 push %ebp
11015b: 89 e5 mov %esp,%ebp
11015d: 57 push %edi
11015e: 56 push %esi
11015f: 53 push %ebx
110160: 81 ec bc 00 00 00 sub $0xbc,%esp
110166: 89 85 60 ff ff ff mov %eax,-0xa0(%ebp)
11016c: 89 95 5c ff ff ff mov %edx,-0xa4(%ebp)
110172: 89 cf mov %ecx,%edi
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(
Chain_Control *the_chain
)
{
return the_chain->first;
110174: 8b 35 2c 8f 12 00 mov 0x128f2c,%esi
rtems_chain_node *node = rtems_chain_first (&bdbuf_cache.lru);
while (!rtems_chain_is_tail (&bdbuf_cache.lru, node))
11017a: e9 e6 02 00 00 jmp 110465 <rtems_bdbuf_get_buffer_from_lru_list+0x30b>
bd->group->bds_per_group, bds_per_group);
/*
* If nobody waits for this BD, we may recycle it.
*/
if (bd->waiters == 0)
11017f: 8b 46 28 mov 0x28(%esi),%eax
110182: 85 c0 test %eax,%eax
110184: 0f 85 d9 02 00 00 jne 110463 <rtems_bdbuf_get_buffer_from_lru_list+0x309>
{
if (bd->group->bds_per_group == bds_per_group)
11018a: 8b 5e 2c mov 0x2c(%esi),%ebx
11018d: 8b 4b 08 mov 0x8(%ebx),%ecx
110190: 3b 4d 08 cmp 0x8(%ebp),%ecx
110193: 75 0e jne 1101a3 <rtems_bdbuf_get_buffer_from_lru_list+0x49>
{
rtems_bdbuf_remove_from_tree_and_lru_list (bd);
110195: 89 f0 mov %esi,%eax
110197: e8 84 f5 ff ff call 10f720 <rtems_bdbuf_remove_from_tree_and_lru_list>
11019c: 89 f0 mov %esi,%eax
11019e: e9 c7 00 00 00 jmp 11026a <rtems_bdbuf_get_buffer_from_lru_list+0x110>
empty_bd = bd;
}
else if (bd->group->users == 0)
1101a3: 83 7b 0c 00 cmpl $0x0,0xc(%ebx)
1101a7: 0f 85 b6 02 00 00 jne 110463 <rtems_bdbuf_get_buffer_from_lru_list+0x309>
group - bdbuf_cache.groups, group->bds_per_group,
new_bds_per_group);
bufs_per_bd = bdbuf_cache.max_bds_per_group / group->bds_per_group;
for (b = 0, bd = group->bdbuf;
1101ad: 8b 43 10 mov 0x10(%ebx),%eax
1101b0: 89 85 64 ff ff ff mov %eax,-0x9c(%ebp)
b < group->bds_per_group;
b++, bd += bufs_per_bd)
1101b6: a1 08 8f 12 00 mov 0x128f08,%eax
1101bb: 31 d2 xor %edx,%edx
1101bd: f7 f1 div %ecx
1101bf: 6b c0 3c imul $0x3c,%eax,%eax
1101c2: 89 85 58 ff ff ff mov %eax,-0xa8(%ebp)
1101c8: 31 d2 xor %edx,%edx
1101ca: eb 24 jmp 1101f0 <rtems_bdbuf_get_buffer_from_lru_list+0x96>
rtems_bdbuf_remove_from_tree_and_lru_list (bd);
1101cc: 8b 85 64 ff ff ff mov -0x9c(%ebp),%eax
1101d2: 89 95 54 ff ff ff mov %edx,-0xac(%ebp)
1101d8: e8 43 f5 ff ff call 10f720 <rtems_bdbuf_remove_from_tree_and_lru_list>
bufs_per_bd = bdbuf_cache.max_bds_per_group / group->bds_per_group;
for (b = 0, bd = group->bdbuf;
b < group->bds_per_group;
b++, bd += bufs_per_bd)
1101dd: 8b 95 54 ff ff ff mov -0xac(%ebp),%edx
1101e3: 42 inc %edx
1101e4: 8b 85 58 ff ff ff mov -0xa8(%ebp),%eax
1101ea: 01 85 64 ff ff ff add %eax,-0x9c(%ebp)
group - bdbuf_cache.groups, group->bds_per_group,
new_bds_per_group);
bufs_per_bd = bdbuf_cache.max_bds_per_group / group->bds_per_group;
for (b = 0, bd = group->bdbuf;
1101f0: 3b 53 08 cmp 0x8(%ebx),%edx
1101f3: 72 d7 jb 1101cc <rtems_bdbuf_get_buffer_from_lru_list+0x72>
b < group->bds_per_group;
b++, bd += bufs_per_bd)
rtems_bdbuf_remove_from_tree_and_lru_list (bd);
group->bds_per_group = new_bds_per_group;
1101f5: 8b 55 08 mov 0x8(%ebp),%edx
1101f8: 89 53 08 mov %edx,0x8(%ebx)
bufs_per_bd = bdbuf_cache.max_bds_per_group / new_bds_per_group;
for (b = 1, bd = group->bdbuf + bufs_per_bd;
1101fb: a1 08 8f 12 00 mov 0x128f08,%eax
110200: 31 d2 xor %edx,%edx
110202: f7 75 08 divl 0x8(%ebp)
110205: 6b c0 3c imul $0x3c,%eax,%eax
110208: 8b 4b 10 mov 0x10(%ebx),%ecx
11020b: 01 c1 add %eax,%ecx
11020d: ba 01 00 00 00 mov $0x1,%edx
110212: eb 3f jmp 110253 <rtems_bdbuf_get_buffer_from_lru_list+0xf9>
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
110214: c7 41 24 00 00 00 00 movl $0x0,0x24(%ecx)
RTEMS_INLINE_ROUTINE void _Chain_Prepend(
Chain_Control *the_chain,
Chain_Node *the_node
)
{
_Chain_Insert(_Chain_Head(the_chain), the_node);
11021b: 83 ec 08 sub $0x8,%esp
11021e: 51 push %ecx
11021f: 68 2c 8f 12 00 push $0x128f2c
110224: 89 85 4c ff ff ff mov %eax,-0xb4(%ebp)
11022a: 89 95 54 ff ff ff mov %edx,-0xac(%ebp)
110230: 89 8d 50 ff ff ff mov %ecx,-0xb0(%ebp)
110236: e8 e5 33 00 00 call 113620 <_Chain_Insert>
group->bds_per_group = new_bds_per_group;
bufs_per_bd = bdbuf_cache.max_bds_per_group / new_bds_per_group;
for (b = 1, bd = group->bdbuf + bufs_per_bd;
b < group->bds_per_group;
b++, bd += bufs_per_bd)
11023b: 8b 95 54 ff ff ff mov -0xac(%ebp),%edx
110241: 42 inc %edx
110242: 8b 85 4c ff ff ff mov -0xb4(%ebp),%eax
110248: 8b 8d 50 ff ff ff mov -0xb0(%ebp),%ecx
11024e: 01 c1 add %eax,%ecx
110250: 83 c4 10 add $0x10,%esp
rtems_bdbuf_remove_from_tree_and_lru_list (bd);
group->bds_per_group = new_bds_per_group;
bufs_per_bd = bdbuf_cache.max_bds_per_group / new_bds_per_group;
for (b = 1, bd = group->bdbuf + bufs_per_bd;
110253: 3b 53 08 cmp 0x8(%ebx),%edx
110256: 72 bc jb 110214 <rtems_bdbuf_get_buffer_from_lru_list+0xba>
b < group->bds_per_group;
b++, bd += bufs_per_bd)
rtems_bdbuf_make_free_and_add_to_lru_list (bd);
if (b > 1)
110258: 83 fa 01 cmp $0x1,%edx
11025b: 76 0a jbe 110267 <rtems_bdbuf_get_buffer_from_lru_list+0x10d>
rtems_bdbuf_wake (&bdbuf_cache.buffer_waiters);
11025d: b8 60 8f 12 00 mov $0x128f60,%eax
110262: e8 c0 e8 ff ff call 10eb27 <rtems_bdbuf_wake>
return group->bdbuf;
110267: 8b 43 10 mov 0x10(%ebx),%eax
}
else if (bd->group->users == 0)
empty_bd = rtems_bdbuf_group_realloc (bd->group, bds_per_group);
}
if (empty_bd != NULL)
11026a: 85 c0 test %eax,%eax
11026c: 0f 84 f1 01 00 00 je 110463 <rtems_bdbuf_get_buffer_from_lru_list+0x309><== NEVER TAKEN
static void
rtems_bdbuf_setup_empty_buffer (rtems_bdbuf_buffer *bd,
dev_t dev,
rtems_blkdev_bnum block)
{
bd->dev = dev;
110272: 8b 9d 60 ff ff ff mov -0xa0(%ebp),%ebx
110278: 89 58 14 mov %ebx,0x14(%eax)
11027b: 8b 95 5c ff ff ff mov -0xa4(%ebp),%edx
110281: 89 50 18 mov %edx,0x18(%eax)
bd->block = block;
110284: 89 78 1c mov %edi,0x1c(%eax)
bd->avl.left = NULL;
110287: c7 40 08 00 00 00 00 movl $0x0,0x8(%eax)
bd->avl.right = NULL;
11028e: c7 40 0c 00 00 00 00 movl $0x0,0xc(%eax)
bd->waiters = 0;
110295: c7 40 28 00 00 00 00 movl $0x0,0x28(%eax)
rtems_bdbuf_buffer* node)
{
dev_t dev = node->dev;
rtems_blkdev_bnum block = node->block;
rtems_bdbuf_buffer* p = *root;
11029c: 8b 15 28 8f 12 00 mov 0x128f28,%edx
rtems_bdbuf_buffer* buf_stack[RTEMS_BDBUF_AVL_MAX_HEIGHT];
rtems_bdbuf_buffer** buf_prev = buf_stack;
bool modified = false;
if (p == NULL)
1102a2: 8d 8d 68 ff ff ff lea -0x98(%ebp),%ecx
1102a8: 85 d2 test %edx,%edx
1102aa: 75 59 jne 110305 <rtems_bdbuf_get_buffer_from_lru_list+0x1ab>
{
*root = node;
1102ac: a3 28 8f 12 00 mov %eax,0x128f28
node->avl.left = NULL;
1102b1: c7 40 08 00 00 00 00 movl $0x0,0x8(%eax)
node->avl.right = NULL;
1102b8: c7 40 0c 00 00 00 00 movl $0x0,0xc(%eax)
node->avl.bal = 0;
1102bf: c6 40 11 00 movb $0x0,0x11(%eax)
1102c3: e9 92 01 00 00 jmp 11045a <rtems_bdbuf_get_buffer_from_lru_list+0x300>
while (p != NULL)
{
*buf_prev++ = p;
if ((p->dev < dev) || ((p->dev == dev) && (p->block < block)))
1102c8: 3b b5 5c ff ff ff cmp -0xa4(%ebp),%esi
1102ce: 75 23 jne 1102f3 <rtems_bdbuf_get_buffer_from_lru_list+0x199><== NEVER TAKEN
1102d0: 3b 9d 60 ff ff ff cmp -0xa0(%ebp),%ebx
1102d6: 75 1b jne 1102f3 <rtems_bdbuf_get_buffer_from_lru_list+0x199><== NEVER TAKEN
1102d8: 39 7a 1c cmp %edi,0x1c(%edx)
1102db: 73 10 jae 1102ed <rtems_bdbuf_get_buffer_from_lru_list+0x193>
{
p->avl.cache = 1;
1102dd: c6 42 10 01 movb $0x1,0x10(%edx)
q = p->avl.right;
1102e1: 8b 5a 0c mov 0xc(%edx),%ebx
if (q == NULL)
1102e4: 85 db test %ebx,%ebx
1102e6: 75 1b jne 110303 <rtems_bdbuf_get_buffer_from_lru_list+0x1a9>
{
q = node;
p->avl.right = q = node;
1102e8: 89 42 0c mov %eax,0xc(%edx)
1102eb: eb 37 jmp 110324 <rtems_bdbuf_get_buffer_from_lru_list+0x1ca>
break;
}
}
else if ((p->dev != dev) || (p->block != block))
1102ed: 0f 84 88 01 00 00 je 11047b <rtems_bdbuf_get_buffer_from_lru_list+0x321><== NEVER TAKEN
{
p->avl.cache = -1;
1102f3: c6 42 10 ff movb $0xff,0x10(%edx)
q = p->avl.left;
1102f7: 8b 5a 08 mov 0x8(%edx),%ebx
if (q == NULL)
1102fa: 85 db test %ebx,%ebx
1102fc: 75 05 jne 110303 <rtems_bdbuf_get_buffer_from_lru_list+0x1a9>
{
q = node;
p->avl.left = q;
1102fe: 89 42 08 mov %eax,0x8(%edx)
110301: eb 21 jmp 110324 <rtems_bdbuf_get_buffer_from_lru_list+0x1ca>
110303: 89 da mov %ebx,%edx
return 0;
}
while (p != NULL)
{
*buf_prev++ = p;
110305: 89 11 mov %edx,(%ecx)
110307: 83 c1 04 add $0x4,%ecx
if ((p->dev < dev) || ((p->dev == dev) && (p->block < block)))
11030a: 8b 5a 14 mov 0x14(%edx),%ebx
11030d: 8b 72 18 mov 0x18(%edx),%esi
110310: 3b b5 5c ff ff ff cmp -0xa4(%ebp),%esi
110316: 72 c5 jb 1102dd <rtems_bdbuf_get_buffer_from_lru_list+0x183><== NEVER TAKEN
110318: 77 ae ja 1102c8 <rtems_bdbuf_get_buffer_from_lru_list+0x16e><== NEVER TAKEN
11031a: 3b 9d 60 ff ff ff cmp -0xa0(%ebp),%ebx
110320: 72 bb jb 1102dd <rtems_bdbuf_get_buffer_from_lru_list+0x183><== NEVER TAKEN
110322: eb a4 jmp 1102c8 <rtems_bdbuf_get_buffer_from_lru_list+0x16e>
}
p = q;
}
q->avl.left = q->avl.right = NULL;
110324: c7 40 0c 00 00 00 00 movl $0x0,0xc(%eax)
11032b: c7 40 08 00 00 00 00 movl $0x0,0x8(%eax)
q->avl.bal = 0;
110332: c6 40 11 00 movb $0x0,0x11(%eax)
modified = true;
buf_prev--;
110336: 83 e9 04 sub $0x4,%ecx
default:
break;
}
}
q = p;
if (buf_prev > buf_stack)
110339: 8d 9d 68 ff ff ff lea -0x98(%ebp),%ebx
11033f: 89 9d 44 ff ff ff mov %ebx,-0xbc(%ebp)
110345: 89 85 64 ff ff ff mov %eax,-0x9c(%ebp)
modified = true;
buf_prev--;
while (modified)
{
if (p->avl.cache == -1)
11034b: 80 7a 10 ff cmpb $0xff,0x10(%edx)
11034f: 8a 5a 11 mov 0x11(%edx),%bl
110352: 75 56 jne 1103aa <rtems_bdbuf_get_buffer_from_lru_list+0x250>
{
switch (p->avl.bal)
110354: 84 db test %bl,%bl
110356: 74 0f je 110367 <rtems_bdbuf_get_buffer_from_lru_list+0x20d>
110358: 80 fb 01 cmp $0x1,%bl
11035b: 74 5a je 1103b7 <rtems_bdbuf_get_buffer_from_lru_list+0x25d><== NEVER TAKEN
11035d: fe c3 inc %bl
11035f: 0f 85 b3 00 00 00 jne 110418 <rtems_bdbuf_get_buffer_from_lru_list+0x2be><== NEVER TAKEN
110365: eb 09 jmp 110370 <rtems_bdbuf_get_buffer_from_lru_list+0x216>
p->avl.bal = 0;
modified = false;
break;
case 0:
p->avl.bal = -1;
110367: c6 42 11 ff movb $0xff,0x11(%edx)
11036b: e9 a8 00 00 00 jmp 110418 <rtems_bdbuf_get_buffer_from_lru_list+0x2be>
break;
case -1:
p1 = p->avl.left;
110370: 8b 5a 08 mov 0x8(%edx),%ebx
if (p1->avl.bal == -1) /* simple LL-turn */
110373: 80 7b 11 ff cmpb $0xff,0x11(%ebx)
110377: 8b 73 0c mov 0xc(%ebx),%esi
11037a: 75 08 jne 110384 <rtems_bdbuf_get_buffer_from_lru_list+0x22a><== ALWAYS TAKEN
{
p->avl.left = p1->avl.right;
11037c: 89 72 08 mov %esi,0x8(%edx) <== NOT EXECUTED
p1->avl.right = p;
11037f: 89 53 0c mov %edx,0xc(%ebx) <== NOT EXECUTED
110382: eb 53 jmp 1103d7 <rtems_bdbuf_get_buffer_from_lru_list+0x27d><== NOT EXECUTED
p = p1;
}
else /* double LR-turn */
{
p2 = p1->avl.right;
p1->avl.right = p2->avl.left;
110384: 8b 7e 08 mov 0x8(%esi),%edi
110387: 89 7b 0c mov %edi,0xc(%ebx)
p2->avl.left = p1;
11038a: 89 5e 08 mov %ebx,0x8(%esi)
p->avl.left = p2->avl.right;
11038d: 8b 7e 0c mov 0xc(%esi),%edi
110390: 89 7a 08 mov %edi,0x8(%edx)
p2->avl.right = p;
110393: 89 56 0c mov %edx,0xc(%esi)
if (p2->avl.bal == -1) p->avl.bal = +1; else p->avl.bal = 0;
110396: 80 7e 11 ff cmpb $0xff,0x11(%esi)
11039a: 0f 94 42 11 sete 0x11(%edx)
if (p2->avl.bal == +1) p1->avl.bal = -1; else p1->avl.bal = 0;
11039e: 80 7e 11 01 cmpb $0x1,0x11(%esi)
1103a2: 75 66 jne 11040a <rtems_bdbuf_get_buffer_from_lru_list+0x2b0><== ALWAYS TAKEN
1103a4: c6 43 11 ff movb $0xff,0x11(%ebx) <== NOT EXECUTED
1103a8: eb 64 jmp 11040e <rtems_bdbuf_get_buffer_from_lru_list+0x2b4><== NOT EXECUTED
break;
}
}
else
{
switch (p->avl.bal)
1103aa: 84 db test %bl,%bl
1103ac: 74 11 je 1103bf <rtems_bdbuf_get_buffer_from_lru_list+0x265>
1103ae: 80 fb 01 cmp $0x1,%bl
1103b1: 74 12 je 1103c5 <rtems_bdbuf_get_buffer_from_lru_list+0x26b>
1103b3: fe c3 inc %bl
1103b5: 75 61 jne 110418 <rtems_bdbuf_get_buffer_from_lru_list+0x2be><== NEVER TAKEN
{
case -1:
p->avl.bal = 0;
1103b7: c6 42 11 00 movb $0x0,0x11(%edx)
1103bb: 89 d3 mov %edx,%ebx
1103bd: eb 55 jmp 110414 <rtems_bdbuf_get_buffer_from_lru_list+0x2ba>
modified = false;
break;
case 0:
p->avl.bal = 1;
1103bf: c6 42 11 01 movb $0x1,0x11(%edx)
1103c3: eb 53 jmp 110418 <rtems_bdbuf_get_buffer_from_lru_list+0x2be>
break;
case 1:
p1 = p->avl.right;
1103c5: 8b 5a 0c mov 0xc(%edx),%ebx
if (p1->avl.bal == 1) /* simple RR-turn */
1103c8: 80 7b 11 01 cmpb $0x1,0x11(%ebx)
1103cc: 8b 73 08 mov 0x8(%ebx),%esi
1103cf: 75 0c jne 1103dd <rtems_bdbuf_get_buffer_from_lru_list+0x283><== NEVER TAKEN
{
p->avl.right = p1->avl.left;
1103d1: 89 72 0c mov %esi,0xc(%edx)
p1->avl.left = p;
1103d4: 89 53 08 mov %edx,0x8(%ebx)
p->avl.bal = 0;
1103d7: c6 42 11 00 movb $0x0,0x11(%edx)
1103db: eb 33 jmp 110410 <rtems_bdbuf_get_buffer_from_lru_list+0x2b6>
p = p1;
}
else /* double RL-turn */
{
p2 = p1->avl.left;
p1->avl.left = p2->avl.right;
1103dd: 8b 7e 0c mov 0xc(%esi),%edi <== NOT EXECUTED
1103e0: 89 7b 08 mov %edi,0x8(%ebx) <== NOT EXECUTED
p2->avl.right = p1;
1103e3: 89 5e 0c mov %ebx,0xc(%esi) <== NOT EXECUTED
p->avl.right = p2->avl.left;
1103e6: 8b 7e 08 mov 0x8(%esi),%edi <== NOT EXECUTED
1103e9: 89 7a 0c mov %edi,0xc(%edx) <== NOT EXECUTED
p2->avl.left = p;
1103ec: 89 56 08 mov %edx,0x8(%esi) <== NOT EXECUTED
if (p2->avl.bal == +1) p->avl.bal = -1; else p->avl.bal = 0;
1103ef: 80 7e 11 01 cmpb $0x1,0x11(%esi) <== NOT EXECUTED
1103f3: 0f 95 c0 setne %al <== NOT EXECUTED
1103f6: 89 c7 mov %eax,%edi <== NOT EXECUTED
1103f8: 4f dec %edi <== NOT EXECUTED
1103f9: 89 f8 mov %edi,%eax <== NOT EXECUTED
1103fb: 88 42 11 mov %al,0x11(%edx) <== NOT EXECUTED
if (p2->avl.bal == -1) p1->avl.bal = +1; else p1->avl.bal = 0;
1103fe: 80 7e 11 ff cmpb $0xff,0x11(%esi) <== NOT EXECUTED
110402: 75 06 jne 11040a <rtems_bdbuf_get_buffer_from_lru_list+0x2b0><== NOT EXECUTED
110404: c6 43 11 01 movb $0x1,0x11(%ebx) <== NOT EXECUTED
110408: eb 04 jmp 11040e <rtems_bdbuf_get_buffer_from_lru_list+0x2b4><== NOT EXECUTED
11040a: c6 43 11 00 movb $0x0,0x11(%ebx)
11040e: 89 f3 mov %esi,%ebx
p = p2;
}
p->avl.bal = 0;
110410: c6 43 11 00 movb $0x0,0x11(%ebx)
110414: 31 f6 xor %esi,%esi
110416: eb 07 jmp 11041f <rtems_bdbuf_get_buffer_from_lru_list+0x2c5>
110418: 89 d3 mov %edx,%ebx
11041a: be 01 00 00 00 mov $0x1,%esi
default:
break;
}
}
q = p;
if (buf_prev > buf_stack)
11041f: 3b 8d 44 ff ff ff cmp -0xbc(%ebp),%ecx
110425: 76 15 jbe 11043c <rtems_bdbuf_get_buffer_from_lru_list+0x2e2>
{
p = *--buf_prev;
110427: 83 e9 04 sub $0x4,%ecx
11042a: 8b 11 mov (%ecx),%edx
if (p->avl.cache == -1)
11042c: 80 7a 10 ff cmpb $0xff,0x10(%edx)
110430: 75 05 jne 110437 <rtems_bdbuf_get_buffer_from_lru_list+0x2dd>
{
p->avl.left = q;
110432: 89 5a 08 mov %ebx,0x8(%edx)
110435: eb 13 jmp 11044a <rtems_bdbuf_get_buffer_from_lru_list+0x2f0>
}
else
{
p->avl.right = q;
110437: 89 5a 0c mov %ebx,0xc(%edx)
11043a: eb 0e jmp 11044a <rtems_bdbuf_get_buffer_from_lru_list+0x2f0>
11043c: 8b 85 64 ff ff ff mov -0x9c(%ebp),%eax
}
}
else
{
*root = p;
110442: 89 1d 28 8f 12 00 mov %ebx,0x128f28
110448: eb 10 jmp 11045a <rtems_bdbuf_get_buffer_from_lru_list+0x300>
q->avl.left = q->avl.right = NULL;
q->avl.bal = 0;
modified = true;
buf_prev--;
while (modified)
11044a: 89 f3 mov %esi,%ebx
11044c: 84 db test %bl,%bl
11044e: 0f 85 f7 fe ff ff jne 11034b <rtems_bdbuf_get_buffer_from_lru_list+0x1f1>
110454: 8b 85 64 ff ff ff mov -0x9c(%ebp),%eax
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
11045a: c7 40 24 01 00 00 00 movl $0x1,0x24(%eax)
if (empty_bd != NULL)
{
rtems_bdbuf_setup_empty_buffer (empty_bd, dev, block);
return empty_bd;
110461: eb 10 jmp 110473 <rtems_bdbuf_get_buffer_from_lru_list+0x319>
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Next(
Chain_Node *the_node
)
{
return the_node->next;
110463: 8b 36 mov (%esi),%esi
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
110465: 81 fe 30 8f 12 00 cmp $0x128f30,%esi
11046b: 0f 85 0e fd ff ff jne 11017f <rtems_bdbuf_get_buffer_from_lru_list+0x25>
110471: 31 c0 xor %eax,%eax
node = rtems_chain_next (node);
}
return NULL;
}
110473: 8d 65 f4 lea -0xc(%ebp),%esp
110476: 5b pop %ebx
110477: 5e pop %esi
110478: 5f pop %edi
110479: c9 leave
11047a: c3 ret
bd->avl.left = NULL;
bd->avl.right = NULL;
bd->waiters = 0;
if (rtems_bdbuf_avl_insert (&bdbuf_cache.tree, bd) != 0)
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_RECYCLE);
11047b: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
11047e: 68 1b 00 00 42 push $0x4200001b <== NOT EXECUTED
110483: e8 6c b6 ff ff call 10baf4 <rtems_fatal_error_occurred><== NOT EXECUTED
0010f068 <rtems_bdbuf_init>:
*
* @return rtems_status_code The initialisation status.
*/
rtems_status_code
rtems_bdbuf_init (void)
{
10f068: 55 push %ebp
10f069: 89 e5 mov %esp,%ebp
10f06b: 57 push %edi
10f06c: 56 push %esi
10f06d: 53 push %ebx
10f06e: 83 ec 1c sub $0x1c,%esp
rtems_mode prev_mode;
if (rtems_bdbuf_tracer)
printf ("bdbuf:init\n");
if (rtems_interrupt_is_in_progress())
10f071: 8b 15 60 93 12 00 mov 0x129360,%edx
10f077: b8 12 00 00 00 mov $0x12,%eax
10f07c: 85 d2 test %edx,%edx
10f07e: 0f 85 ae 03 00 00 jne 10f432 <rtems_bdbuf_init+0x3ca><== NEVER TAKEN
return RTEMS_CALLED_FROM_ISR;
/*
* Check the configuration table values.
*/
if ((bdbuf_config.buffer_max % bdbuf_config.buffer_min) != 0)
10f084: a1 cc 1c 12 00 mov 0x121ccc,%eax
10f089: 31 d2 xor %edx,%edx
10f08b: f7 35 c8 1c 12 00 divl 0x121cc8
10f091: 89 55 e4 mov %edx,-0x1c(%ebp)
10f094: 89 c6 mov %eax,%esi
10f096: b8 0a 00 00 00 mov $0xa,%eax
10f09b: 85 d2 test %edx,%edx
10f09d: 0f 85 8f 03 00 00 jne 10f432 <rtems_bdbuf_init+0x3ca><== NEVER TAKEN
/*
* We use a special variable to manage the initialisation incase we have
* completing threads doing this. You may get errors if the another thread
* makes a call and we have not finished initialisation.
*/
prev_mode = rtems_bdbuf_disable_preemption ();
10f0a3: e8 c8 fe ff ff call 10ef70 <rtems_bdbuf_disable_preemption>
10f0a8: 89 c2 mov %eax,%edx
if (bdbuf_cache.initialised)
10f0aa: 80 3d 70 8f 12 00 00 cmpb $0x0,0x128f70
10f0b1: 74 0f je 10f0c2 <rtems_bdbuf_init+0x5a> <== ALWAYS TAKEN
{
rtems_bdbuf_restore_preemption (prev_mode);
10f0b3: e8 f1 fe ff ff call 10efa9 <rtems_bdbuf_restore_preemption><== NOT EXECUTED
10f0b8: b8 0c 00 00 00 mov $0xc,%eax <== NOT EXECUTED
return RTEMS_RESOURCE_IN_USE;
10f0bd: e9 70 03 00 00 jmp 10f432 <rtems_bdbuf_init+0x3ca><== NOT EXECUTED
}
memset(&bdbuf_cache, 0, sizeof(bdbuf_cache));
10f0c2: bb e8 8e 12 00 mov $0x128ee8,%ebx
10f0c7: b9 23 00 00 00 mov $0x23,%ecx
10f0cc: 89 df mov %ebx,%edi
10f0ce: 8b 45 e4 mov -0x1c(%ebp),%eax
10f0d1: f3 ab rep stos %eax,%es:(%edi)
bdbuf_cache.initialised = true;
10f0d3: c6 05 70 8f 12 00 01 movb $0x1,0x128f70
rtems_bdbuf_restore_preemption (prev_mode);
10f0da: 89 d0 mov %edx,%eax
10f0dc: e8 c8 fe ff ff call 10efa9 <rtems_bdbuf_restore_preemption>
*/
cache_aligment = 32; /* FIXME rtems_cache_get_data_line_size() */
if (cache_aligment <= 0)
cache_aligment = CPU_ALIGNMENT;
bdbuf_cache.sync_device = BDBUF_INVALID_DEV;
10f0e1: c7 05 20 8f 12 00 ff movl $0xffffffff,0x128f20
10f0e8: ff ff ff
10f0eb: c7 05 24 8f 12 00 ff movl $0xffffffff,0x128f24
10f0f2: ff ff ff
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
10f0f5: c7 05 f0 8e 12 00 f4 movl $0x128ef4,0x128ef0
10f0fc: 8e 12 00
the_chain->permanent_null = NULL;
10f0ff: c7 05 f4 8e 12 00 00 movl $0x0,0x128ef4
10f106: 00 00 00
the_chain->last = _Chain_Head(the_chain);
10f109: c7 05 f8 8e 12 00 f0 movl $0x128ef0,0x128ef8
10f110: 8e 12 00
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
10f113: c7 05 2c 8f 12 00 30 movl $0x128f30,0x128f2c
10f11a: 8f 12 00
the_chain->permanent_null = NULL;
10f11d: c7 05 30 8f 12 00 00 movl $0x0,0x128f30
10f124: 00 00 00
the_chain->last = _Chain_Head(the_chain);
10f127: c7 05 34 8f 12 00 2c movl $0x128f2c,0x128f34
10f12e: 8f 12 00
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
10f131: c7 05 38 8f 12 00 3c movl $0x128f3c,0x128f38
10f138: 8f 12 00
the_chain->permanent_null = NULL;
10f13b: c7 05 3c 8f 12 00 00 movl $0x0,0x128f3c
10f142: 00 00 00
the_chain->last = _Chain_Head(the_chain);
10f145: c7 05 40 8f 12 00 38 movl $0x128f38,0x128f40
10f14c: 8f 12 00
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
10f14f: c7 05 44 8f 12 00 48 movl $0x128f48,0x128f44
10f156: 8f 12 00
the_chain->permanent_null = NULL;
10f159: c7 05 48 8f 12 00 00 movl $0x0,0x128f48
10f160: 00 00 00
the_chain->last = _Chain_Head(the_chain);
10f163: c7 05 4c 8f 12 00 44 movl $0x128f44,0x128f4c
10f16a: 8f 12 00
rtems_chain_initialize_empty (&bdbuf_cache.sync);
/*
* Create the locks for the cache.
*/
sc = rtems_semaphore_create (rtems_build_name ('B', 'D', 'C', 'l'),
10f16d: 83 ec 0c sub $0xc,%esp
10f170: 68 10 8f 12 00 push $0x128f10
10f175: 6a 00 push $0x0
10f177: 6a 54 push $0x54
10f179: 6a 01 push $0x1
10f17b: 68 6c 43 44 42 push $0x4244436c
10f180: e8 ef c1 ff ff call 10b374 <rtems_semaphore_create>
1, RTEMS_BDBUF_CACHE_LOCK_ATTRIBS, 0,
&bdbuf_cache.lock);
if (sc != RTEMS_SUCCESSFUL)
10f185: 83 c4 20 add $0x20,%esp
10f188: 85 c0 test %eax,%eax
10f18a: 0f 85 09 02 00 00 jne 10f399 <rtems_bdbuf_init+0x331><== NEVER TAKEN
goto error;
rtems_bdbuf_lock_cache ();
10f190: e8 7f f9 ff ff call 10eb14 <rtems_bdbuf_lock_cache>
sc = rtems_semaphore_create (rtems_build_name ('B', 'D', 'C', 's'),
10f195: 83 ec 0c sub $0xc,%esp
10f198: 68 14 8f 12 00 push $0x128f14
10f19d: 6a 00 push $0x0
10f19f: 6a 54 push $0x54
10f1a1: 6a 01 push $0x1
10f1a3: 68 73 43 44 42 push $0x42444373
10f1a8: e8 c7 c1 ff ff call 10b374 <rtems_semaphore_create>
1, RTEMS_BDBUF_CACHE_LOCK_ATTRIBS, 0,
&bdbuf_cache.sync_lock);
if (sc != RTEMS_SUCCESSFUL)
10f1ad: 83 c4 20 add $0x20,%esp
10f1b0: 85 c0 test %eax,%eax
10f1b2: 0f 85 e1 01 00 00 jne 10f399 <rtems_bdbuf_init+0x331><== NEVER TAKEN
goto error;
sc = rtems_semaphore_create (rtems_build_name ('B', 'D', 'C', 'a'),
10f1b8: 83 ec 0c sub $0xc,%esp
10f1bb: 68 54 8f 12 00 push $0x128f54
10f1c0: 6a 00 push $0x0
10f1c2: 6a 24 push $0x24
10f1c4: 6a 00 push $0x0
10f1c6: 68 61 43 44 42 push $0x42444361
10f1cb: e8 a4 c1 ff ff call 10b374 <rtems_semaphore_create>
0, RTEMS_BDBUF_CACHE_WAITER_ATTRIBS, 0,
&bdbuf_cache.access_waiters.sema);
if (sc != RTEMS_SUCCESSFUL)
10f1d0: 83 c4 20 add $0x20,%esp
10f1d3: 85 c0 test %eax,%eax
10f1d5: 0f 85 be 01 00 00 jne 10f399 <rtems_bdbuf_init+0x331><== NEVER TAKEN
goto error;
sc = rtems_semaphore_create (rtems_build_name ('B', 'D', 'C', 't'),
10f1db: 83 ec 0c sub $0xc,%esp
10f1de: 68 5c 8f 12 00 push $0x128f5c
10f1e3: 6a 00 push $0x0
10f1e5: 6a 24 push $0x24
10f1e7: 6a 00 push $0x0
10f1e9: 68 74 43 44 42 push $0x42444374
10f1ee: e8 81 c1 ff ff call 10b374 <rtems_semaphore_create>
0, RTEMS_BDBUF_CACHE_WAITER_ATTRIBS, 0,
&bdbuf_cache.transfer_waiters.sema);
if (sc != RTEMS_SUCCESSFUL)
10f1f3: 83 c4 20 add $0x20,%esp
10f1f6: 85 c0 test %eax,%eax
10f1f8: 0f 85 9b 01 00 00 jne 10f399 <rtems_bdbuf_init+0x331><== NEVER TAKEN
goto error;
sc = rtems_semaphore_create (rtems_build_name ('B', 'D', 'C', 'b'),
10f1fe: 83 ec 0c sub $0xc,%esp
10f201: 68 64 8f 12 00 push $0x128f64
10f206: 6a 00 push $0x0
10f208: 6a 24 push $0x24
10f20a: 6a 00 push $0x0
10f20c: 68 62 43 44 42 push $0x42444362
10f211: e8 5e c1 ff ff call 10b374 <rtems_semaphore_create>
0, RTEMS_BDBUF_CACHE_WAITER_ATTRIBS, 0,
&bdbuf_cache.buffer_waiters.sema);
if (sc != RTEMS_SUCCESSFUL)
10f216: 83 c4 20 add $0x20,%esp
10f219: 85 c0 test %eax,%eax
10f21b: 0f 85 78 01 00 00 jne 10f399 <rtems_bdbuf_init+0x331><== NEVER TAKEN
/*
* Compute the various number of elements in the cache.
*/
bdbuf_cache.buffer_min_count =
bdbuf_config.size / bdbuf_config.buffer_min;
10f221: a1 c4 1c 12 00 mov 0x121cc4,%eax
10f226: 31 d2 xor %edx,%edx
10f228: f7 35 c8 1c 12 00 divl 0x121cc8
10f22e: 89 c1 mov %eax,%ecx
goto error;
/*
* Compute the various number of elements in the cache.
*/
bdbuf_cache.buffer_min_count =
10f230: a3 04 8f 12 00 mov %eax,0x128f04
bdbuf_config.size / bdbuf_config.buffer_min;
bdbuf_cache.max_bds_per_group =
10f235: 89 35 08 8f 12 00 mov %esi,0x128f08
bdbuf_config.buffer_max / bdbuf_config.buffer_min;
bdbuf_cache.group_count =
10f23b: 31 d2 xor %edx,%edx
10f23d: f7 f6 div %esi
10f23f: a3 68 8f 12 00 mov %eax,0x128f68
bdbuf_cache.buffer_min_count / bdbuf_cache.max_bds_per_group;
/*
* Allocate the memory for the buffer descriptors.
*/
bdbuf_cache.bds = calloc (sizeof (rtems_bdbuf_buffer),
10f244: 53 push %ebx
10f245: 53 push %ebx
10f246: 51 push %ecx
10f247: 6a 3c push $0x3c
10f249: e8 5a 8f ff ff call 1081a8 <calloc>
10f24e: a3 fc 8e 12 00 mov %eax,0x128efc
bdbuf_cache.buffer_min_count);
if (!bdbuf_cache.bds)
10f253: 83 c4 10 add $0x10,%esp
10f256: 85 c0 test %eax,%eax
10f258: 0f 84 3b 01 00 00 je 10f399 <rtems_bdbuf_init+0x331><== NEVER TAKEN
goto error;
/*
* Allocate the memory for the buffer descriptors.
*/
bdbuf_cache.groups = calloc (sizeof (rtems_bdbuf_group),
10f25e: 51 push %ecx
10f25f: 51 push %ecx
10f260: ff 35 68 8f 12 00 pushl 0x128f68
10f266: 6a 14 push $0x14
10f268: e8 3b 8f ff ff call 1081a8 <calloc>
10f26d: a3 6c 8f 12 00 mov %eax,0x128f6c
bdbuf_cache.group_count);
if (!bdbuf_cache.groups)
10f272: 83 c4 10 add $0x10,%esp
10f275: 85 c0 test %eax,%eax
10f277: 0f 84 1c 01 00 00 je 10f399 <rtems_bdbuf_init+0x331><== NEVER TAKEN
* aligned. It is possible to free the memory allocated by rtems_memalign()
* with free(). Return 0 if allocated.
*
* The memory allocate allows a
*/
if (rtems_memalign ((void **) &bdbuf_cache.buffers,
10f27d: 52 push %edx
10f27e: a1 c8 1c 12 00 mov 0x121cc8,%eax
10f283: 0f af 05 04 8f 12 00 imul 0x128f04,%eax
10f28a: 50 push %eax
10f28b: 6a 20 push $0x20
10f28d: 68 00 8f 12 00 push $0x128f00
10f292: e8 ad 35 00 00 call 112844 <rtems_memalign>
10f297: 83 c4 10 add $0x10,%esp
10f29a: 85 c0 test %eax,%eax
10f29c: 0f 85 f7 00 00 00 jne 10f399 <rtems_bdbuf_init+0x331><== NEVER TAKEN
/*
* The cache is empty after opening so we need to add all the buffers to it
* and initialise the groups.
*/
for (b = 0, group = bdbuf_cache.groups,
10f2a2: 8b 35 6c 8f 12 00 mov 0x128f6c,%esi
bd = bdbuf_cache.bds, buffer = bdbuf_cache.buffers;
10f2a8: 8b 1d fc 8e 12 00 mov 0x128efc,%ebx
10f2ae: 8b 3d 00 8f 12 00 mov 0x128f00,%edi
10f2b4: 31 c9 xor %ecx,%ecx
/*
* The cache is empty after opening so we need to add all the buffers to it
* and initialise the groups.
*/
for (b = 0, group = bdbuf_cache.groups,
10f2b6: eb 4b jmp 10f303 <rtems_bdbuf_init+0x29b>
bd = bdbuf_cache.bds, buffer = bdbuf_cache.buffers;
b < bdbuf_cache.buffer_min_count;
b++, bd++, buffer += bdbuf_config.buffer_min)
{
bd->dev = BDBUF_INVALID_DEV;
10f2b8: c7 43 14 ff ff ff ff movl $0xffffffff,0x14(%ebx)
10f2bf: c7 43 18 ff ff ff ff movl $0xffffffff,0x18(%ebx)
bd->group = group;
10f2c6: 89 73 2c mov %esi,0x2c(%ebx)
bd->buffer = buffer;
10f2c9: 89 7b 20 mov %edi,0x20(%ebx)
10f2cc: 50 push %eax
10f2cd: 50 push %eax
10f2ce: 53 push %ebx
10f2cf: 68 2c 8f 12 00 push $0x128f2c
10f2d4: 89 4d e0 mov %ecx,-0x20(%ebp)
10f2d7: e8 30 cc ff ff call 10bf0c <_Chain_Append>
rtems_chain_append (&bdbuf_cache.lru, &bd->link);
if ((b % bdbuf_cache.max_bds_per_group) ==
10f2dc: 8b 4d e0 mov -0x20(%ebp),%ecx
10f2df: 89 c8 mov %ecx,%eax
10f2e1: 31 d2 xor %edx,%edx
10f2e3: f7 35 08 8f 12 00 divl 0x128f08
10f2e9: a1 08 8f 12 00 mov 0x128f08,%eax
10f2ee: 48 dec %eax
10f2ef: 83 c4 10 add $0x10,%esp
10f2f2: 39 c2 cmp %eax,%edx
10f2f4: 75 03 jne 10f2f9 <rtems_bdbuf_init+0x291>
(bdbuf_cache.max_bds_per_group - 1))
group++;
10f2f6: 83 c6 14 add $0x14,%esi
* and initialise the groups.
*/
for (b = 0, group = bdbuf_cache.groups,
bd = bdbuf_cache.bds, buffer = bdbuf_cache.buffers;
b < bdbuf_cache.buffer_min_count;
b++, bd++, buffer += bdbuf_config.buffer_min)
10f2f9: 41 inc %ecx
10f2fa: 83 c3 3c add $0x3c,%ebx
10f2fd: 03 3d c8 1c 12 00 add 0x121cc8,%edi
/*
* The cache is empty after opening so we need to add all the buffers to it
* and initialise the groups.
*/
for (b = 0, group = bdbuf_cache.groups,
10f303: 3b 0d 04 8f 12 00 cmp 0x128f04,%ecx
10f309: 72 ad jb 10f2b8 <rtems_bdbuf_init+0x250>
(bdbuf_cache.max_bds_per_group - 1))
group++;
}
for (b = 0,
group = bdbuf_cache.groups,
10f30b: a1 6c 8f 12 00 mov 0x128f6c,%eax
bd = bdbuf_cache.bds;
10f310: 8b 0d fc 8e 12 00 mov 0x128efc,%ecx
b < bdbuf_cache.group_count;
10f316: 8b 3d 68 8f 12 00 mov 0x128f68,%edi
b++,
group++,
bd += bdbuf_cache.max_bds_per_group)
{
group->bds_per_group = bdbuf_cache.max_bds_per_group;
10f31c: 8b 1d 08 8f 12 00 mov 0x128f08,%ebx
group = bdbuf_cache.groups,
bd = bdbuf_cache.bds;
b < bdbuf_cache.group_count;
b++,
group++,
bd += bdbuf_cache.max_bds_per_group)
10f322: 6b f3 3c imul $0x3c,%ebx,%esi
10f325: 31 d2 xor %edx,%edx
if ((b % bdbuf_cache.max_bds_per_group) ==
(bdbuf_cache.max_bds_per_group - 1))
group++;
}
for (b = 0,
10f327: eb 0c jmp 10f335 <rtems_bdbuf_init+0x2cd>
b < bdbuf_cache.group_count;
b++,
group++,
bd += bdbuf_cache.max_bds_per_group)
{
group->bds_per_group = bdbuf_cache.max_bds_per_group;
10f329: 89 58 08 mov %ebx,0x8(%eax)
group->bdbuf = bd;
10f32c: 89 48 10 mov %ecx,0x10(%eax)
for (b = 0,
group = bdbuf_cache.groups,
bd = bdbuf_cache.bds;
b < bdbuf_cache.group_count;
b++,
10f32f: 42 inc %edx
group++,
10f330: 83 c0 14 add $0x14,%eax
bd += bdbuf_cache.max_bds_per_group)
10f333: 01 f1 add %esi,%ecx
if ((b % bdbuf_cache.max_bds_per_group) ==
(bdbuf_cache.max_bds_per_group - 1))
group++;
}
for (b = 0,
10f335: 39 fa cmp %edi,%edx
10f337: 72 f0 jb 10f329 <rtems_bdbuf_init+0x2c1>
/*
* Create and start swapout task. This task will create and manage the worker
* threads.
*/
bdbuf_cache.swapout_enabled = true;
10f339: c6 05 ec 8e 12 00 01 movb $0x1,0x128eec
sc = rtems_task_create (rtems_build_name('B', 'S', 'W', 'P'),
bdbuf_config.swapout_priority ?
10f340: a1 b0 1c 12 00 mov 0x121cb0,%eax
* Create and start swapout task. This task will create and manage the worker
* threads.
*/
bdbuf_cache.swapout_enabled = true;
sc = rtems_task_create (rtems_build_name('B', 'S', 'W', 'P'),
10f345: 85 c0 test %eax,%eax
10f347: 75 02 jne 10f34b <rtems_bdbuf_init+0x2e3><== ALWAYS TAKEN
10f349: b0 0f mov $0xf,%al <== NOT EXECUTED
10f34b: 56 push %esi
10f34c: 56 push %esi
10f34d: 68 e8 8e 12 00 push $0x128ee8
10f352: 6a 00 push $0x0
10f354: 68 00 04 00 00 push $0x400
10f359: 68 00 20 00 00 push $0x2000
10f35e: 50 push %eax
10f35f: 68 50 57 53 42 push $0x42535750
10f364: e8 b3 c3 ff ff call 10b71c <rtems_task_create>
RTEMS_BDBUF_SWAPOUT_TASK_PRIORITY_DEFAULT,
SWAPOUT_TASK_STACK_SIZE,
RTEMS_PREEMPT | RTEMS_NO_TIMESLICE | RTEMS_NO_ASR,
RTEMS_LOCAL | RTEMS_NO_FLOATING_POINT,
&bdbuf_cache.swapout);
if (sc != RTEMS_SUCCESSFUL)
10f369: 83 c4 20 add $0x20,%esp
10f36c: 85 c0 test %eax,%eax
10f36e: 75 29 jne 10f399 <rtems_bdbuf_init+0x331><== NEVER TAKEN
goto error;
sc = rtems_task_start (bdbuf_cache.swapout,
10f370: 53 push %ebx
10f371: 68 e8 8e 12 00 push $0x128ee8
10f376: 68 b6 fc 10 00 push $0x10fcb6
10f37b: ff 35 e8 8e 12 00 pushl 0x128ee8
10f381: e8 be c5 ff ff call 10b944 <rtems_task_start>
rtems_bdbuf_swapout_task,
(rtems_task_argument) &bdbuf_cache);
if (sc != RTEMS_SUCCESSFUL)
10f386: 83 c4 10 add $0x10,%esp
10f389: 85 c0 test %eax,%eax
10f38b: 75 0c jne 10f399 <rtems_bdbuf_init+0x331><== NEVER TAKEN
goto error;
rtems_bdbuf_unlock_cache ();
10f38d: e8 f7 f8 ff ff call 10ec89 <rtems_bdbuf_unlock_cache>
10f392: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
10f394: e9 99 00 00 00 jmp 10f432 <rtems_bdbuf_init+0x3ca>
error:
if (bdbuf_cache.swapout != 0)
10f399: a1 e8 8e 12 00 mov 0x128ee8,%eax <== NOT EXECUTED
10f39e: 85 c0 test %eax,%eax <== NOT EXECUTED
10f3a0: 74 0c je 10f3ae <rtems_bdbuf_init+0x346><== NOT EXECUTED
rtems_task_delete (bdbuf_cache.swapout);
10f3a2: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10f3a5: 50 push %eax <== NOT EXECUTED
10f3a6: e8 a1 c4 ff ff call 10b84c <rtems_task_delete> <== NOT EXECUTED
10f3ab: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
free (bdbuf_cache.buffers);
10f3ae: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10f3b1: ff 35 00 8f 12 00 pushl 0x128f00 <== NOT EXECUTED
10f3b7: e8 cc 8f ff ff call 108388 <free> <== NOT EXECUTED
free (bdbuf_cache.groups);
10f3bc: 59 pop %ecx <== NOT EXECUTED
10f3bd: ff 35 6c 8f 12 00 pushl 0x128f6c <== NOT EXECUTED
10f3c3: e8 c0 8f ff ff call 108388 <free> <== NOT EXECUTED
free (bdbuf_cache.bds);
10f3c8: 5a pop %edx <== NOT EXECUTED
10f3c9: ff 35 fc 8e 12 00 pushl 0x128efc <== NOT EXECUTED
10f3cf: e8 b4 8f ff ff call 108388 <free> <== NOT EXECUTED
rtems_semaphore_delete (bdbuf_cache.buffer_waiters.sema);
10f3d4: 58 pop %eax <== NOT EXECUTED
10f3d5: ff 35 64 8f 12 00 pushl 0x128f64 <== NOT EXECUTED
10f3db: e8 30 c1 ff ff call 10b510 <rtems_semaphore_delete><== NOT EXECUTED
rtems_semaphore_delete (bdbuf_cache.access_waiters.sema);
10f3e0: 5f pop %edi <== NOT EXECUTED
10f3e1: ff 35 54 8f 12 00 pushl 0x128f54 <== NOT EXECUTED
10f3e7: e8 24 c1 ff ff call 10b510 <rtems_semaphore_delete><== NOT EXECUTED
rtems_semaphore_delete (bdbuf_cache.transfer_waiters.sema);
10f3ec: 5e pop %esi <== NOT EXECUTED
10f3ed: ff 35 5c 8f 12 00 pushl 0x128f5c <== NOT EXECUTED
10f3f3: e8 18 c1 ff ff call 10b510 <rtems_semaphore_delete><== NOT EXECUTED
rtems_semaphore_delete (bdbuf_cache.sync_lock);
10f3f8: 5b pop %ebx <== NOT EXECUTED
10f3f9: ff 35 14 8f 12 00 pushl 0x128f14 <== NOT EXECUTED
10f3ff: e8 0c c1 ff ff call 10b510 <rtems_semaphore_delete><== NOT EXECUTED
if (bdbuf_cache.lock != 0)
10f404: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10f407: 83 3d 10 8f 12 00 00 cmpl $0x0,0x128f10 <== NOT EXECUTED
10f40e: 74 16 je 10f426 <rtems_bdbuf_init+0x3be><== NOT EXECUTED
{
rtems_bdbuf_unlock_cache ();
10f410: e8 74 f8 ff ff call 10ec89 <rtems_bdbuf_unlock_cache><== NOT EXECUTED
rtems_semaphore_delete (bdbuf_cache.lock);
10f415: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10f418: ff 35 10 8f 12 00 pushl 0x128f10 <== NOT EXECUTED
10f41e: e8 ed c0 ff ff call 10b510 <rtems_semaphore_delete><== NOT EXECUTED
10f423: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
bdbuf_cache.initialised = false;
10f426: c6 05 70 8f 12 00 00 movb $0x0,0x128f70 <== NOT EXECUTED
10f42d: b8 0d 00 00 00 mov $0xd,%eax <== NOT EXECUTED
return RTEMS_UNSATISFIED;
}
10f432: 8d 65 f4 lea -0xc(%ebp),%esp
10f435: 5b pop %ebx
10f436: 5e pop %esi
10f437: 5f pop %edi
10f438: c9 leave
10f439: c3 ret
0010eaec <rtems_bdbuf_lock>:
* @param lock The mutex to lock.
* @param fatal_error_code The error code if the call fails.
*/
static void
rtems_bdbuf_lock (rtems_id lock, uint32_t fatal_error_code)
{
10eaec: 55 push %ebp
10eaed: 89 e5 mov %esp,%ebp
10eaef: 53 push %ebx
10eaf0: 83 ec 08 sub $0x8,%esp
10eaf3: 89 d3 mov %edx,%ebx
rtems_status_code sc = rtems_semaphore_obtain (lock,
10eaf5: 6a 00 push $0x0
10eaf7: 6a 00 push $0x0
10eaf9: 50 push %eax
10eafa: e8 a1 ca ff ff call 10b5a0 <rtems_semaphore_obtain>
RTEMS_WAIT,
RTEMS_NO_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
10eaff: 83 c4 10 add $0x10,%esp
10eb02: 85 c0 test %eax,%eax
10eb04: 74 09 je 10eb0f <rtems_bdbuf_lock+0x23> <== ALWAYS TAKEN
rtems_fatal_error_occurred (fatal_error_code);
10eb06: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10eb09: 53 push %ebx <== NOT EXECUTED
10eb0a: e8 e5 cf ff ff call 10baf4 <rtems_fatal_error_occurred><== NOT EXECUTED
}
10eb0f: 8b 5d fc mov -0x4(%ebp),%ebx
10eb12: c9 leave
10eb13: c3 ret
0010ecd7 <rtems_bdbuf_obtain_disk>:
rtems_bdbuf_obtain_disk (dev_t dev,
rtems_blkdev_bnum block,
rtems_disk_device **dd_ptr,
rtems_blkdev_bnum *media_block_ptr,
size_t *bds_per_group_ptr)
{
10ecd7: 55 push %ebp
10ecd8: 89 e5 mov %esp,%ebp
10ecda: 57 push %edi
10ecdb: 56 push %esi
10ecdc: 53 push %ebx
10ecdd: 83 ec 2c sub $0x2c,%esp
10ece0: 89 4d e0 mov %ecx,-0x20(%ebp)
10ece3: 8b 75 0c mov 0xc(%ebp),%esi
10ece6: 8b 7d 10 mov 0x10(%ebp),%edi
rtems_disk_device *dd = NULL;
if (!bdbuf_cache.initialised)
10ece9: b9 16 00 00 00 mov $0x16,%ecx
10ecee: 80 3d 70 8f 12 00 00 cmpb $0x0,0x128f70
10ecf5: 0f 84 94 00 00 00 je 10ed8f <rtems_bdbuf_obtain_disk+0xb8><== NEVER TAKEN
return RTEMS_NOT_CONFIGURED;
/*
* Do not hold the cache lock when obtaining the disk table.
*/
dd = rtems_disk_obtain (dev);
10ecfb: 51 push %ecx
10ecfc: 51 push %ecx
10ecfd: 52 push %edx
10ecfe: 50 push %eax
10ecff: e8 dd 88 ff ff call 1075e1 <rtems_disk_obtain>
10ed04: 89 c3 mov %eax,%ebx
if (dd == NULL)
10ed06: 83 c4 10 add $0x10,%esp
10ed09: b9 04 00 00 00 mov $0x4,%ecx
10ed0e: 85 c0 test %eax,%eax
10ed10: 74 7d je 10ed8f <rtems_bdbuf_obtain_disk+0xb8><== NEVER TAKEN
return RTEMS_INVALID_ID;
*dd_ptr = dd;
10ed12: 8b 45 08 mov 0x8(%ebp),%eax
10ed15: 89 18 mov %ebx,(%eax)
if (media_block_ptr != NULL)
10ed17: 85 f6 test %esi,%esi
10ed19: 74 2b je 10ed46 <rtems_bdbuf_obtain_disk+0x6f>
static rtems_blkdev_bnum
rtems_bdbuf_media_block (rtems_blkdev_bnum block,
size_t block_size,
size_t media_block_size)
{
return (rtems_blkdev_bnum)
10ed1b: 8b 45 e0 mov -0x20(%ebp),%eax
10ed1e: f7 63 20 mull 0x20(%ebx)
10ed21: 89 45 d0 mov %eax,-0x30(%ebp)
10ed24: 89 55 d4 mov %edx,-0x2c(%ebp)
10ed27: 8b 43 24 mov 0x24(%ebx),%eax
10ed2a: 31 d2 xor %edx,%edx
10ed2c: 52 push %edx
10ed2d: 50 push %eax
10ed2e: ff 75 d4 pushl -0x2c(%ebp)
10ed31: ff 75 d0 pushl -0x30(%ebp)
10ed34: e8 47 25 01 00 call 121280 <__udivdi3>
10ed39: 83 c4 10 add $0x10,%esp
* the user.
*/
rtems_blkdev_bnum mb = rtems_bdbuf_media_block (block,
dd->block_size,
dd->media_block_size);
if (mb >= dd->size)
10ed3c: 3b 43 1c cmp 0x1c(%ebx),%eax
10ed3f: 73 37 jae 10ed78 <rtems_bdbuf_obtain_disk+0xa1><== NEVER TAKEN
{
rtems_disk_release(dd);
return RTEMS_INVALID_NUMBER;
}
*media_block_ptr = mb + dd->start;
10ed41: 03 43 18 add 0x18(%ebx),%eax
10ed44: 89 06 mov %eax,(%esi)
}
if (bds_per_group_ptr != NULL)
10ed46: 31 c9 xor %ecx,%ecx
10ed48: 85 ff test %edi,%edi
10ed4a: 74 43 je 10ed8f <rtems_bdbuf_obtain_disk+0xb8>
{
size_t bds_per_group = rtems_bdbuf_bds_per_group (dd->block_size);
10ed4c: 8b 43 20 mov 0x20(%ebx),%eax
rtems_bdbuf_bds_per_group (size_t size)
{
size_t bufs_per_size;
size_t bds_per_size;
if (size > bdbuf_config.buffer_max)
10ed4f: 3b 05 cc 1c 12 00 cmp 0x121ccc,%eax
10ed55: 77 21 ja 10ed78 <rtems_bdbuf_obtain_disk+0xa1><== NEVER TAKEN
return 0;
bufs_per_size = ((size - 1) / bdbuf_config.buffer_min) + 1;
10ed57: 48 dec %eax
10ed58: 31 d2 xor %edx,%edx
10ed5a: f7 35 c8 1c 12 00 divl 0x121cc8
10ed60: 40 inc %eax
10ed61: b1 01 mov $0x1,%cl
10ed63: eb 02 jmp 10ed67 <rtems_bdbuf_obtain_disk+0x90>
for (bds_per_size = 1;
bds_per_size < bufs_per_size;
bds_per_size <<= 1)
10ed65: d1 e1 shl %ecx
if (size > bdbuf_config.buffer_max)
return 0;
bufs_per_size = ((size - 1) / bdbuf_config.buffer_min) + 1;
for (bds_per_size = 1;
10ed67: 39 c1 cmp %eax,%ecx
10ed69: 72 fa jb 10ed65 <rtems_bdbuf_obtain_disk+0x8e>
bds_per_size < bufs_per_size;
bds_per_size <<= 1)
;
return bdbuf_cache.max_bds_per_group / bds_per_size;
10ed6b: a1 08 8f 12 00 mov 0x128f08,%eax
10ed70: 31 d2 xor %edx,%edx
10ed72: f7 f1 div %ecx
if (bds_per_group_ptr != NULL)
{
size_t bds_per_group = rtems_bdbuf_bds_per_group (dd->block_size);
if (bds_per_group == 0)
10ed74: 85 c0 test %eax,%eax
10ed76: 75 13 jne 10ed8b <rtems_bdbuf_obtain_disk+0xb4><== ALWAYS TAKEN
{
rtems_disk_release (dd);
10ed78: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10ed7b: 53 push %ebx <== NOT EXECUTED
10ed7c: e8 e7 89 ff ff call 107768 <rtems_disk_release> <== NOT EXECUTED
10ed81: b9 0a 00 00 00 mov $0xa,%ecx <== NOT EXECUTED
return RTEMS_INVALID_NUMBER;
10ed86: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10ed89: eb 04 jmp 10ed8f <rtems_bdbuf_obtain_disk+0xb8><== NOT EXECUTED
}
*bds_per_group_ptr = bds_per_group;
10ed8b: 89 07 mov %eax,(%edi)
10ed8d: 31 c9 xor %ecx,%ecx
}
return RTEMS_SUCCESSFUL;
}
10ed8f: 89 c8 mov %ecx,%eax
10ed91: 8d 65 f4 lea -0xc(%ebp),%esp
10ed94: 5b pop %ebx
10ed95: 5e pop %esi
10ed96: 5f pop %edi
10ed97: c9 leave
10ed98: c3 ret
0010f8e3 <rtems_bdbuf_purge>:
}
}
static void
rtems_bdbuf_purge (rtems_bdbuf_purge_compare compare, dev_t dev)
{
10f8e3: 55 push %ebp
10f8e4: 89 e5 mov %esp,%ebp
10f8e6: 57 push %edi
10f8e7: 56 push %esi
10f8e8: 53 push %ebx
10f8e9: 81 ec ac 00 00 00 sub $0xac,%esp
10f8ef: 89 85 54 ff ff ff mov %eax,-0xac(%ebp)
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
10f8f5: 8d 7d dc lea -0x24(%ebp),%edi
10f8f8: 8d 45 e0 lea -0x20(%ebp),%eax
10f8fb: 89 45 dc mov %eax,-0x24(%ebp)
the_chain->permanent_null = NULL;
10f8fe: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp)
the_chain->last = _Chain_Head(the_chain);
10f905: 89 7d e4 mov %edi,-0x1c(%ebp)
rtems_chain_control purge_list;
rtems_chain_initialize_empty (&purge_list);
rtems_bdbuf_lock_cache ();
10f908: 89 95 50 ff ff ff mov %edx,-0xb0(%ebp)
10f90e: 89 8d 4c ff ff ff mov %ecx,-0xb4(%ebp)
10f914: e8 fb f1 ff ff call 10eb14 <rtems_bdbuf_lock_cache>
rtems_bdbuf_purge_compare compare,
dev_t dev)
{
rtems_bdbuf_buffer *stack [RTEMS_BDBUF_AVL_MAX_HEIGHT];
rtems_bdbuf_buffer **prev = stack;
rtems_bdbuf_buffer *cur = bdbuf_cache.tree;
10f919: 8b 1d 28 8f 12 00 mov 0x128f28,%ebx
*prev = NULL;
10f91f: c7 85 5c ff ff ff 00 movl $0x0,-0xa4(%ebp)
10f926: 00 00 00
10f929: 8d b5 5c ff ff ff lea -0xa4(%ebp),%esi
10f92f: 8b 95 50 ff ff ff mov -0xb0(%ebp),%edx
10f935: 8b 8d 4c ff ff ff mov -0xb4(%ebp),%ecx
10f93b: e9 ea 00 00 00 jmp 10fa2a <rtems_bdbuf_purge+0x147>
while (cur != NULL)
{
if ((*compare) (cur->dev, dev))
10f940: 51 push %ecx
10f941: 52 push %edx
10f942: ff 73 18 pushl 0x18(%ebx)
10f945: ff 73 14 pushl 0x14(%ebx)
10f948: 89 95 50 ff ff ff mov %edx,-0xb0(%ebp)
10f94e: 89 8d 4c ff ff ff mov %ecx,-0xb4(%ebp)
10f954: ff 95 54 ff ff ff call *-0xac(%ebp)
10f95a: 83 c4 10 add $0x10,%esp
10f95d: 84 c0 test %al,%al
10f95f: 8b 95 50 ff ff ff mov -0xb0(%ebp),%edx
10f965: 8b 8d 4c ff ff ff mov -0xb4(%ebp),%ecx
10f96b: 0f 84 85 00 00 00 je 10f9f6 <rtems_bdbuf_purge+0x113><== NEVER TAKEN
{
switch (cur->state)
10f971: 8b 43 24 mov 0x24(%ebx),%eax
10f974: 83 f8 0a cmp $0xa,%eax
10f977: 77 70 ja 10f9e9 <rtems_bdbuf_purge+0x106><== NEVER TAKEN
10f979: ff 24 85 08 38 12 00 jmp *0x123808(,%eax,4)
case RTEMS_BDBUF_STATE_EMPTY:
case RTEMS_BDBUF_STATE_ACCESS_PURGED:
case RTEMS_BDBUF_STATE_TRANSFER_PURGED:
break;
case RTEMS_BDBUF_STATE_SYNC:
rtems_bdbuf_wake (&bdbuf_cache.transfer_waiters);
10f980: b8 58 8f 12 00 mov $0x128f58,%eax
10f985: 89 95 50 ff ff ff mov %edx,-0xb0(%ebp)
10f98b: 89 8d 4c ff ff ff mov %ecx,-0xb4(%ebp)
10f991: e8 91 f1 ff ff call 10eb27 <rtems_bdbuf_wake>
10f996: 8b 8d 4c ff ff ff mov -0xb4(%ebp),%ecx
10f99c: 8b 95 50 ff ff ff mov -0xb0(%ebp),%edx
}
static void
rtems_bdbuf_group_release (rtems_bdbuf_buffer *bd)
{
--bd->group->users;
10f9a2: 8b 43 2c mov 0x2c(%ebx),%eax
10f9a5: ff 48 0c decl 0xc(%eax)
*/
RTEMS_INLINE_ROUTINE void rtems_chain_extract(
rtems_chain_node *the_node
)
{
_Chain_Extract( the_node );
10f9a8: 83 ec 0c sub $0xc,%esp
10f9ab: 53 push %ebx
10f9ac: 89 95 50 ff ff ff mov %edx,-0xb0(%ebp)
10f9b2: 89 8d 4c ff ff ff mov %ecx,-0xb4(%ebp)
10f9b8: e8 73 c5 ff ff call 10bf30 <_Chain_Extract>
RTEMS_INLINE_ROUTINE void rtems_chain_append(
rtems_chain_control *the_chain,
rtems_chain_node *the_node
)
{
_Chain_Append( the_chain, the_node );
10f9bd: 58 pop %eax
10f9be: 5a pop %edx
10f9bf: 53 push %ebx
10f9c0: 57 push %edi
10f9c1: e8 46 c5 ff ff call 10bf0c <_Chain_Append>
10f9c6: 83 c4 10 add $0x10,%esp
10f9c9: 8b 95 50 ff ff ff mov -0xb0(%ebp),%edx
10f9cf: 8b 8d 4c ff ff ff mov -0xb4(%ebp),%ecx
10f9d5: eb 1f jmp 10f9f6 <rtems_bdbuf_purge+0x113>
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
10f9d7: c7 43 24 0a 00 00 00 movl $0xa,0x24(%ebx)
10f9de: eb 16 jmp 10f9f6 <rtems_bdbuf_purge+0x113>
10f9e0: c7 43 24 06 00 00 00 movl $0x6,0x24(%ebx)
10f9e7: eb 0d jmp 10f9f6 <rtems_bdbuf_purge+0x113>
case RTEMS_BDBUF_STATE_ACCESS_EMPTY:
case RTEMS_BDBUF_STATE_ACCESS_MODIFIED:
rtems_bdbuf_set_state (cur, RTEMS_BDBUF_STATE_ACCESS_PURGED);
break;
default:
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_STATE_11);
10f9e9: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10f9ec: 68 01 00 00 42 push $0x42000001 <== NOT EXECUTED
10f9f1: e8 fe c0 ff ff call 10baf4 <rtems_fatal_error_occurred><== NOT EXECUTED
}
}
if (cur->avl.left != NULL)
10f9f6: 83 7b 08 00 cmpl $0x0,0x8(%ebx)
10f9fa: 74 0a je 10fa06 <rtems_bdbuf_purge+0x123><== ALWAYS TAKEN
{
/* Left */
++prev;
10f9fc: 83 c6 04 add $0x4,%esi <== NOT EXECUTED
*prev = cur;
10f9ff: 89 1e mov %ebx,(%esi) <== NOT EXECUTED
cur = cur->avl.left;
10fa01: 8b 43 08 mov 0x8(%ebx),%eax <== NOT EXECUTED
10fa04: eb 22 jmp 10fa28 <rtems_bdbuf_purge+0x145><== NOT EXECUTED
}
else if (cur->avl.right != NULL)
10fa06: 83 7b 0c 00 cmpl $0x0,0xc(%ebx)
10fa0a: 74 0f je 10fa1b <rtems_bdbuf_purge+0x138><== ALWAYS TAKEN
{
/* Right */
++prev;
10fa0c: 83 c6 04 add $0x4,%esi <== NOT EXECUTED
*prev = cur;
10fa0f: 89 1e mov %ebx,(%esi) <== NOT EXECUTED
cur = cur->avl.right;
10fa11: 8b 43 0c mov 0xc(%ebx),%eax <== NOT EXECUTED
10fa14: eb 12 jmp 10fa28 <rtems_bdbuf_purge+0x145><== NOT EXECUTED
{
while (*prev != NULL && cur == (*prev)->avl.right)
{
/* Up */
cur = *prev;
--prev;
10fa16: 83 ee 04 sub $0x4,%esi <== NOT EXECUTED
10fa19: 89 c3 mov %eax,%ebx <== NOT EXECUTED
*prev = cur;
cur = cur->avl.right;
}
else
{
while (*prev != NULL && cur == (*prev)->avl.right)
10fa1b: 8b 06 mov (%esi),%eax
10fa1d: 85 c0 test %eax,%eax
10fa1f: 74 07 je 10fa28 <rtems_bdbuf_purge+0x145><== ALWAYS TAKEN
10fa21: 3b 58 0c cmp 0xc(%eax),%ebx <== NOT EXECUTED
10fa24: 74 f0 je 10fa16 <rtems_bdbuf_purge+0x133><== NOT EXECUTED
10fa26: eb 48 jmp 10fa70 <rtems_bdbuf_purge+0x18d><== NOT EXECUTED
10fa28: 89 c3 mov %eax,%ebx
rtems_bdbuf_buffer **prev = stack;
rtems_bdbuf_buffer *cur = bdbuf_cache.tree;
*prev = NULL;
while (cur != NULL)
10fa2a: 85 db test %ebx,%ebx
10fa2c: 0f 85 0e ff ff ff jne 10f940 <rtems_bdbuf_purge+0x5d>
*/
RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get(
rtems_chain_control *the_chain
)
{
return _Chain_Get( the_chain );
10fa32: 8d 75 dc lea -0x24(%ebp),%esi
10fa35: eb 0e jmp 10fa45 <rtems_bdbuf_purge+0x162>
while ((node = rtems_chain_get (purge_list)) != NULL)
{
rtems_bdbuf_buffer *bd = (rtems_bdbuf_buffer *) node;
if (bd->waiters == 0)
10fa37: 8b 50 28 mov 0x28(%eax),%edx
10fa3a: 85 d2 test %edx,%edx
10fa3c: 75 02 jne 10fa40 <rtems_bdbuf_purge+0x15d>
10fa3e: b3 01 mov $0x1,%bl
wake_buffer_waiters = true;
rtems_bdbuf_discard_buffer (bd);
10fa40: e8 1e fd ff ff call 10f763 <rtems_bdbuf_discard_buffer>
10fa45: 83 ec 0c sub $0xc,%esp
10fa48: 56 push %esi
10fa49: e8 fa c4 ff ff call 10bf48 <_Chain_Get>
rtems_bdbuf_purge_list (rtems_chain_control *purge_list)
{
bool wake_buffer_waiters = false;
rtems_chain_node *node = NULL;
while ((node = rtems_chain_get (purge_list)) != NULL)
10fa4e: 83 c4 10 add $0x10,%esp
10fa51: 85 c0 test %eax,%eax
10fa53: 75 e2 jne 10fa37 <rtems_bdbuf_purge+0x154>
wake_buffer_waiters = true;
rtems_bdbuf_discard_buffer (bd);
}
if (wake_buffer_waiters)
10fa55: 84 db test %bl,%bl
10fa57: 74 0a je 10fa63 <rtems_bdbuf_purge+0x180>
rtems_bdbuf_wake (&bdbuf_cache.buffer_waiters);
10fa59: b8 60 8f 12 00 mov $0x128f60,%eax
10fa5e: e8 c4 f0 ff ff call 10eb27 <rtems_bdbuf_wake>
rtems_chain_initialize_empty (&purge_list);
rtems_bdbuf_lock_cache ();
rtems_bdbuf_gather_for_purge (&purge_list, compare, dev);
rtems_bdbuf_purge_list (&purge_list);
rtems_bdbuf_unlock_cache ();
10fa63: e8 21 f2 ff ff call 10ec89 <rtems_bdbuf_unlock_cache>
}
10fa68: 8d 65 f4 lea -0xc(%ebp),%esp
10fa6b: 5b pop %ebx
10fa6c: 5e pop %esi
10fa6d: 5f pop %edi
10fa6e: c9 leave
10fa6f: c3 ret
cur = *prev;
--prev;
}
if (*prev != NULL)
/* Right */
cur = (*prev)->avl.right;
10fa70: 8b 40 0c mov 0xc(%eax),%eax <== NOT EXECUTED
10fa73: eb b3 jmp 10fa28 <rtems_bdbuf_purge+0x145><== NOT EXECUTED
0010eade <rtems_bdbuf_purge_compare_major>:
rtems_bdbuf_purge (rtems_bdbuf_purge_compare_dev, dev);
}
static bool
rtems_bdbuf_purge_compare_major (dev_t a, dev_t b)
{
10eade: 55 push %ebp <== NOT EXECUTED
10eadf: 89 e5 mov %esp,%ebp <== NOT EXECUTED
dev_t device
)
{
union __rtems_dev_t temp;
temp.device = device;
10eae1: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
10eae4: 39 45 08 cmp %eax,0x8(%ebp) <== NOT EXECUTED
10eae7: 0f 94 c0 sete %al <== NOT EXECUTED
return rtems_filesystem_dev_major_t (a) == rtems_filesystem_dev_major_t (b);
}
10eaea: c9 leave <== NOT EXECUTED
10eaeb: c3 ret <== NOT EXECUTED
0010fa75 <rtems_bdbuf_purge_major>:
return rtems_filesystem_dev_major_t (a) == rtems_filesystem_dev_major_t (b);
}
void
rtems_bdbuf_purge_major (rtems_device_major_number major)
{
10fa75: 55 push %ebp <== NOT EXECUTED
10fa76: 89 e5 mov %esp,%ebp <== NOT EXECUTED
10fa78: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
dev_t dev = rtems_filesystem_make_dev_t (major, 0);
rtems_bdbuf_purge (rtems_bdbuf_purge_compare_major, dev);
10fa7b: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
10fa7e: 31 c9 xor %ecx,%ecx <== NOT EXECUTED
10fa80: b8 de ea 10 00 mov $0x10eade,%eax <== NOT EXECUTED
}
10fa85: c9 leave <== NOT EXECUTED
void
rtems_bdbuf_purge_major (rtems_device_major_number major)
{
dev_t dev = rtems_filesystem_make_dev_t (major, 0);
rtems_bdbuf_purge (rtems_bdbuf_purge_compare_major, dev);
10fa86: e9 58 fe ff ff jmp 10f8e3 <rtems_bdbuf_purge> <== NOT EXECUTED
001106d4 <rtems_bdbuf_read>:
rtems_status_code
rtems_bdbuf_read (dev_t dev,
rtems_blkdev_bnum block,
rtems_bdbuf_buffer **bd_ptr)
{
1106d4: 55 push %ebp
1106d5: 89 e5 mov %esp,%ebp
1106d7: 57 push %edi
1106d8: 56 push %esi
1106d9: 53 push %ebx
1106da: 83 ec 50 sub $0x50,%esp
rtems_status_code sc = RTEMS_SUCCESSFUL;
rtems_disk_device *dd = NULL;
1106dd: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp)
rtems_blkdev_request *req = NULL;
rtems_bdbuf_buffer *bd = NULL;
rtems_blkdev_bnum media_block = 0;
1106e4: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp)
size_t bds_per_group = 0;
1106eb: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp)
sc = rtems_bdbuf_obtain_disk (dev, block, &dd, &media_block, &bds_per_group);
1106f2: 8d 45 dc lea -0x24(%ebp),%eax
1106f5: 50 push %eax
1106f6: 8d 45 e0 lea -0x20(%ebp),%eax
1106f9: 50 push %eax
1106fa: 8d 45 e4 lea -0x1c(%ebp),%eax
1106fd: 50 push %eax
1106fe: 8b 4d 10 mov 0x10(%ebp),%ecx
110701: 8b 45 08 mov 0x8(%ebp),%eax
110704: 8b 55 0c mov 0xc(%ebp),%edx
110707: e8 cb e5 ff ff call 10ecd7 <rtems_bdbuf_obtain_disk>
11070c: 89 45 bc mov %eax,-0x44(%ebp)
if (sc != RTEMS_SUCCESSFUL)
11070f: 83 c4 10 add $0x10,%esp
110712: 85 c0 test %eax,%eax
110714: 0f 85 f6 01 00 00 jne 110910 <rtems_bdbuf_read+0x23c><== NEVER TAKEN
/*
* TODO: This type of request structure is wrong and should be removed.
*/
#define bdbuf_alloc(size) __builtin_alloca (size)
req = bdbuf_alloc (sizeof (rtems_blkdev_request) +
11071a: 8b 35 a8 1c 12 00 mov 0x121ca8,%esi
110720: 46 inc %esi
110721: 89 f0 mov %esi,%eax
110723: c1 e0 04 shl $0x4,%eax
110726: 83 c0 30 add $0x30,%eax
110729: 29 c4 sub %eax,%esp
11072b: 8d 5c 24 0f lea 0xf(%esp),%ebx
11072f: 83 e3 f0 and $0xfffffff0,%ebx
if (rtems_bdbuf_tracer)
printf ("bdbuf:read: %" PRIu32 " (%" PRIu32 ") (dev = %08x)\n",
media_block + dd->start, block, (unsigned) dev);
rtems_bdbuf_lock_cache ();
110732: e8 dd e3 ff ff call 10eb14 <rtems_bdbuf_lock_cache>
rtems_bdbuf_create_read_request (dd, media_block, bds_per_group, req, &bd);
110737: 8b 45 dc mov -0x24(%ebp),%eax
11073a: 89 45 b8 mov %eax,-0x48(%ebp)
11073d: 8b 55 e0 mov -0x20(%ebp),%edx
110740: 89 55 d4 mov %edx,-0x2c(%ebp)
110743: 8b 4d e4 mov -0x1c(%ebp),%ecx
rtems_blkdev_request *req,
rtems_bdbuf_buffer **bd_ptr)
{
rtems_bdbuf_buffer *bd = NULL;
rtems_blkdev_bnum media_block_end = dd->start + dd->size;
rtems_blkdev_bnum media_block_count = dd->block_size / dd->media_block_size;
110746: 8b 41 20 mov 0x20(%ecx),%eax
110749: 89 45 cc mov %eax,-0x34(%ebp)
11074c: 31 d2 xor %edx,%edx
11074e: f7 71 24 divl 0x24(%ecx)
110751: 89 45 b4 mov %eax,-0x4c(%ebp)
dev_t dev = dd->dev;
110754: 8b 11 mov (%ecx),%edx
110756: 89 55 c4 mov %edx,-0x3c(%ebp)
110759: 8b 41 04 mov 0x4(%ecx),%eax
11075c: 89 45 c0 mov %eax,-0x40(%ebp)
11075f: 8b 51 1c mov 0x1c(%ecx),%edx
110762: 8b 41 18 mov 0x18(%ecx),%eax
110765: 01 c2 add %eax,%edx
110767: 8b 45 d4 mov -0x2c(%ebp),%eax
11076a: 29 c2 sub %eax,%edx
11076c: 89 55 d0 mov %edx,-0x30(%ebp)
11076f: 39 f2 cmp %esi,%edx
110771: 76 03 jbe 110776 <rtems_bdbuf_read+0xa2>
110773: 89 75 d0 mov %esi,-0x30(%ebp)
uint32_t transfer_count = bdbuf_config.max_read_ahead_blocks + 1;
if (media_block_end - media_block < transfer_count)
transfer_count = media_block_end - media_block;
req->req = RTEMS_BLKDEV_REQ_READ;
110776: c7 03 00 00 00 00 movl $0x0,(%ebx)
req->req_done = rtems_bdbuf_transfer_done;
11077c: c7 43 04 84 ee 10 00 movl $0x10ee84,0x4(%ebx)
req->done_arg = req;
110783: 89 5b 08 mov %ebx,0x8(%ebx)
req->io_task = rtems_task_self ();
110786: e8 9d 2b 00 00 call 113328 <rtems_task_self>
11078b: 89 43 14 mov %eax,0x14(%ebx)
req->status = RTEMS_RESOURCE_IN_USE;
11078e: c7 43 0c 0c 00 00 00 movl $0xc,0xc(%ebx)
req->bufnum = 0;
110795: c7 43 10 00 00 00 00 movl $0x0,0x10(%ebx)
bd = rtems_bdbuf_get_buffer_for_access (dev, media_block, bds_per_group);
11079c: 83 ec 0c sub $0xc,%esp
11079f: ff 75 b8 pushl -0x48(%ebp)
1107a2: 8b 4d d4 mov -0x2c(%ebp),%ecx
1107a5: 8b 45 c4 mov -0x3c(%ebp),%eax
1107a8: 8b 55 c0 mov -0x40(%ebp),%edx
1107ab: e8 d8 fc ff ff call 110488 <rtems_bdbuf_get_buffer_for_access>
1107b0: 89 c6 mov %eax,%esi
*bd_ptr = bd;
req->bufs [0].user = bd;
1107b2: 89 43 24 mov %eax,0x24(%ebx)
req->bufs [0].block = media_block;
1107b5: 8b 55 d4 mov -0x2c(%ebp),%edx
1107b8: 89 53 18 mov %edx,0x18(%ebx)
req->bufs [0].length = block_size;
1107bb: 8b 45 cc mov -0x34(%ebp),%eax
1107be: 89 43 1c mov %eax,0x1c(%ebx)
req->bufs [0].buffer = bd->buffer;
1107c1: 8b 46 20 mov 0x20(%esi),%eax
1107c4: 89 43 20 mov %eax,0x20(%ebx)
if (rtems_bdbuf_tracer)
rtems_bdbuf_show_users ("read", bd);
switch (bd->state)
1107c7: 8b 46 24 mov 0x24(%esi),%eax
1107ca: 83 c4 10 add $0x10,%esp
1107cd: 83 f8 02 cmp $0x2,%eax
1107d0: 0f 84 c8 00 00 00 je 11089e <rtems_bdbuf_read+0x1ca>
1107d6: 83 f8 07 cmp $0x7,%eax
1107d9: 0f 84 bf 00 00 00 je 11089e <rtems_bdbuf_read+0x1ca>
1107df: 48 dec %eax
1107e0: 75 15 jne 1107f7 <rtems_bdbuf_read+0x123><== NEVER TAKEN
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
1107e2: c7 46 24 09 00 00 00 movl $0x9,0x24(%esi)
1107e9: 89 df mov %ebx,%edi
1107eb: c7 45 c8 01 00 00 00 movl $0x1,-0x38(%ebp)
1107f2: e9 95 00 00 00 jmp 11088c <rtems_bdbuf_read+0x1b8>
return;
case RTEMS_BDBUF_STATE_EMPTY:
rtems_bdbuf_set_state (bd, RTEMS_BDBUF_STATE_TRANSFER);
break;
default:
rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_STATE_1);
1107f7: 8b 46 24 mov 0x24(%esi),%eax <== NOT EXECUTED
#endif
static void
rtems_bdbuf_fatal (rtems_bdbuf_buf_state state, uint32_t error)
{
rtems_fatal_error_occurred ((((uint32_t) state) << 16) | error);
1107fa: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1107fd: c1 e0 10 shl $0x10,%eax <== NOT EXECUTED
110800: 0d 1d 00 00 42 or $0x4200001d,%eax <== NOT EXECUTED
110805: e9 ee 00 00 00 jmp 1108f8 <rtems_bdbuf_read+0x224><== NOT EXECUTED
break;
}
while (transfer_index < transfer_count)
{
media_block += media_block_count;
11080a: 8b 55 b4 mov -0x4c(%ebp),%edx
11080d: 01 55 d4 add %edx,-0x2c(%ebp)
static rtems_bdbuf_buffer *
rtems_bdbuf_avl_search (rtems_bdbuf_buffer** root,
dev_t dev,
rtems_blkdev_bnum block)
{
rtems_bdbuf_buffer* p = *root;
110810: a1 28 8f 12 00 mov 0x128f28,%eax
110815: eb 14 jmp 11082b <rtems_bdbuf_read+0x157>
while ((p != NULL) && ((p->dev != dev) || (p->block != block)))
{
if ((p->dev < dev) || ((p->dev == dev) && (p->block < block)))
110817: 3b 4d c0 cmp -0x40(%ebp),%ecx <== NOT EXECUTED
11081a: 72 07 jb 110823 <rtems_bdbuf_read+0x14f><== NOT EXECUTED
11081c: 77 0a ja 110828 <rtems_bdbuf_read+0x154><== NOT EXECUTED
11081e: 3b 55 c4 cmp -0x3c(%ebp),%edx <== NOT EXECUTED
110821: 73 05 jae 110828 <rtems_bdbuf_read+0x154><== NEVER TAKEN
{
p = p->avl.right;
110823: 8b 40 0c mov 0xc(%eax),%eax
110826: eb 03 jmp 11082b <rtems_bdbuf_read+0x157>
}
else
{
p = p->avl.left;
110828: 8b 40 08 mov 0x8(%eax),%eax <== NOT EXECUTED
dev_t dev,
rtems_blkdev_bnum block)
{
rtems_bdbuf_buffer* p = *root;
while ((p != NULL) && ((p->dev != dev) || (p->block != block)))
11082b: 85 c0 test %eax,%eax
11082d: 74 1a je 110849 <rtems_bdbuf_read+0x175>
11082f: 8b 50 14 mov 0x14(%eax),%edx
110832: 8b 48 18 mov 0x18(%eax),%ecx
110835: 3b 4d c0 cmp -0x40(%ebp),%ecx
110838: 75 dd jne 110817 <rtems_bdbuf_read+0x143><== NEVER TAKEN
11083a: 3b 55 c4 cmp -0x3c(%ebp),%edx
11083d: 75 d8 jne 110817 <rtems_bdbuf_read+0x143><== NEVER TAKEN
11083f: 8b 55 d4 mov -0x2c(%ebp),%edx
110842: 39 50 1c cmp %edx,0x1c(%eax)
110845: 75 da jne 110821 <rtems_bdbuf_read+0x14d><== ALWAYS TAKEN
110847: eb 4f jmp 110898 <rtems_bdbuf_read+0x1c4><== NOT EXECUTED
bd = rtems_bdbuf_avl_search (&bdbuf_cache.tree, dev, block);
if (bd == NULL)
{
bd = rtems_bdbuf_get_buffer_from_lru_list (dev, block, bds_per_group);
110849: 83 ec 0c sub $0xc,%esp
11084c: ff 75 b8 pushl -0x48(%ebp)
11084f: 8b 4d d4 mov -0x2c(%ebp),%ecx
110852: 8b 45 c4 mov -0x3c(%ebp),%eax
110855: 8b 55 c0 mov -0x40(%ebp),%edx
110858: e8 fd f8 ff ff call 11015a <rtems_bdbuf_get_buffer_from_lru_list>
11085d: 83 c7 10 add $0x10,%edi
if (bd != NULL)
110860: 83 c4 10 add $0x10,%esp
110863: 85 c0 test %eax,%eax
110865: 74 31 je 110898 <rtems_bdbuf_read+0x1c4><== ALWAYS TAKEN
}
static void
rtems_bdbuf_group_obtain (rtems_bdbuf_buffer *bd)
{
++bd->group->users;
110867: 8b 50 2c mov 0x2c(%eax),%edx <== NOT EXECUTED
11086a: ff 42 0c incl 0xc(%edx) <== NOT EXECUTED
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
11086d: c7 40 24 09 00 00 00 movl $0x9,0x24(%eax) <== NOT EXECUTED
if (bd == NULL)
break;
rtems_bdbuf_set_state (bd, RTEMS_BDBUF_STATE_TRANSFER);
req->bufs [transfer_index].user = bd;
110874: 89 47 24 mov %eax,0x24(%edi) <== NOT EXECUTED
req->bufs [transfer_index].block = media_block;
110877: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED
11087a: 89 57 18 mov %edx,0x18(%edi) <== NOT EXECUTED
req->bufs [transfer_index].length = block_size;
11087d: 8b 55 cc mov -0x34(%ebp),%edx <== NOT EXECUTED
110880: 89 57 1c mov %edx,0x1c(%edi) <== NOT EXECUTED
req->bufs [transfer_index].buffer = bd->buffer;
110883: 8b 40 20 mov 0x20(%eax),%eax <== NOT EXECUTED
110886: 89 47 20 mov %eax,0x20(%edi) <== NOT EXECUTED
if (rtems_bdbuf_tracer)
rtems_bdbuf_show_users ("read-ahead", bd);
++transfer_index;
110889: ff 45 c8 incl -0x38(%ebp) <== NOT EXECUTED
default:
rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_STATE_1);
break;
}
while (transfer_index < transfer_count)
11088c: 8b 45 d0 mov -0x30(%ebp),%eax
11088f: 39 45 c8 cmp %eax,-0x38(%ebp)
110892: 0f 82 72 ff ff ff jb 11080a <rtems_bdbuf_read+0x136>
rtems_bdbuf_show_users ("read-ahead", bd);
++transfer_index;
}
req->bufnum = transfer_index;
110898: 8b 55 c8 mov -0x38(%ebp),%edx
11089b: 89 53 10 mov %edx,0x10(%ebx)
media_block + dd->start, block, (unsigned) dev);
rtems_bdbuf_lock_cache ();
rtems_bdbuf_create_read_request (dd, media_block, bds_per_group, req, &bd);
if (req->bufnum > 0)
11089e: 83 7b 10 00 cmpl $0x0,0x10(%ebx)
1108a2: 74 25 je 1108c9 <rtems_bdbuf_read+0x1f5>
{
sc = rtems_bdbuf_execute_transfer_request (dd, req, true);
1108a4: b9 01 00 00 00 mov $0x1,%ecx
1108a9: 89 da mov %ebx,%edx
1108ab: 8b 45 e4 mov -0x1c(%ebp),%eax
1108ae: e8 ef f1 ff ff call 10faa2 <rtems_bdbuf_execute_transfer_request>
if (sc == RTEMS_SUCCESSFUL)
1108b3: 85 c0 test %eax,%eax
1108b5: 75 64 jne 11091b <rtems_bdbuf_read+0x247>
1108b7: 83 ec 0c sub $0xc,%esp
1108ba: 56 push %esi
1108bb: e8 70 b6 ff ff call 10bf30 <_Chain_Extract>
}
static void
rtems_bdbuf_group_obtain (rtems_bdbuf_buffer *bd)
{
++bd->group->users;
1108c0: 8b 46 2c mov 0x2c(%esi),%eax
1108c3: ff 40 0c incl 0xc(%eax)
1108c6: 83 c4 10 add $0x10,%esp
}
}
if (sc == RTEMS_SUCCESSFUL)
{
switch (bd->state)
1108c9: 8b 46 24 mov 0x24(%esi),%eax
1108cc: 83 f8 02 cmp $0x2,%eax
1108cf: 74 07 je 1108d8 <rtems_bdbuf_read+0x204>
1108d1: 83 f8 07 cmp $0x7,%eax
1108d4: 75 14 jne 1108ea <rtems_bdbuf_read+0x216><== NEVER TAKEN
1108d6: eb 09 jmp 1108e1 <rtems_bdbuf_read+0x20d>
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
1108d8: c7 46 24 03 00 00 00 movl $0x3,0x24(%esi)
1108df: eb 1d jmp 1108fe <rtems_bdbuf_read+0x22a>
1108e1: c7 46 24 04 00 00 00 movl $0x4,0x24(%esi)
1108e8: eb 14 jmp 1108fe <rtems_bdbuf_read+0x22a>
break;
case RTEMS_BDBUF_STATE_MODIFIED:
rtems_bdbuf_set_state (bd, RTEMS_BDBUF_STATE_ACCESS_MODIFIED);
break;
default:
rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_STATE_4);
1108ea: 8b 46 24 mov 0x24(%esi),%eax <== NOT EXECUTED
#endif
static void
rtems_bdbuf_fatal (rtems_bdbuf_buf_state state, uint32_t error)
{
rtems_fatal_error_occurred ((((uint32_t) state) << 16) | error);
1108ed: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1108f0: c1 e0 10 shl $0x10,%eax <== NOT EXECUTED
1108f3: 0d 02 00 00 42 or $0x42000002,%eax <== NOT EXECUTED
1108f8: 50 push %eax <== NOT EXECUTED
1108f9: e8 f6 b1 ff ff call 10baf4 <rtems_fatal_error_occurred><== NOT EXECUTED
{
rtems_bdbuf_show_users ("read", bd);
rtems_bdbuf_show_usage ();
}
*bd_ptr = bd;
1108fe: 8b 45 14 mov 0x14(%ebp),%eax
110901: 89 30 mov %esi,(%eax)
}
else
*bd_ptr = NULL;
rtems_bdbuf_unlock_cache ();
110903: e8 81 e3 ff ff call 10ec89 <rtems_bdbuf_unlock_cache>
rtems_bdbuf_release_disk (dd);
110908: 8b 45 e4 mov -0x1c(%ebp),%eax
11090b: e8 89 e4 ff ff call 10ed99 <rtems_bdbuf_release_disk>
return sc;
}
110910: 8b 45 bc mov -0x44(%ebp),%eax
110913: 8d 65 f4 lea -0xc(%ebp),%esp
110916: 5b pop %ebx
110917: 5e pop %esi
110918: 5f pop %edi
110919: c9 leave
11091a: c3 ret
}
*bd_ptr = bd;
}
else
*bd_ptr = NULL;
11091b: 8b 55 14 mov 0x14(%ebp),%edx
11091e: c7 02 00 00 00 00 movl $0x0,(%edx)
110924: 89 45 bc mov %eax,-0x44(%ebp)
110927: eb da jmp 110903 <rtems_bdbuf_read+0x22f>
0010f837 <rtems_bdbuf_release>:
return RTEMS_SUCCESSFUL;
}
rtems_status_code
rtems_bdbuf_release (rtems_bdbuf_buffer *bd)
{
10f837: 55 push %ebp
10f838: 89 e5 mov %esp,%ebp
10f83a: 53 push %ebx
10f83b: 83 ec 04 sub $0x4,%esp
10f83e: 8b 5d 08 mov 0x8(%ebp),%ebx
sc = rtems_bdbuf_check_bd_and_lock_cache (bd, "release");
if (sc != RTEMS_SUCCESSFUL)
return sc;
switch (bd->state)
10f841: b8 16 00 00 00 mov $0x16,%eax
}
static rtems_status_code
rtems_bdbuf_check_bd_and_lock_cache (rtems_bdbuf_buffer *bd, const char *kind)
{
if (!bdbuf_cache.initialised)
10f846: 80 3d 70 8f 12 00 00 cmpb $0x0,0x128f70
10f84d: 0f 84 8b 00 00 00 je 10f8de <rtems_bdbuf_release+0xa7><== NEVER TAKEN
return RTEMS_NOT_CONFIGURED;
if (bd == NULL)
10f853: b0 09 mov $0x9,%al
10f855: 85 db test %ebx,%ebx
10f857: 0f 84 81 00 00 00 je 10f8de <rtems_bdbuf_release+0xa7><== NEVER TAKEN
if (rtems_bdbuf_tracer)
{
printf ("bdbuf:%s: %" PRIu32 "\n", kind, bd->block);
rtems_bdbuf_show_users (kind, bd);
}
rtems_bdbuf_lock_cache();
10f85d: e8 b2 f2 ff ff call 10eb14 <rtems_bdbuf_lock_cache>
sc = rtems_bdbuf_check_bd_and_lock_cache (bd, "release");
if (sc != RTEMS_SUCCESSFUL)
return sc;
switch (bd->state)
10f862: 8b 43 24 mov 0x24(%ebx),%eax
10f865: 83 f8 04 cmp $0x4,%eax
10f868: 74 50 je 10f8ba <rtems_bdbuf_release+0x83>
10f86a: 77 07 ja 10f873 <rtems_bdbuf_release+0x3c>
10f86c: 83 f8 03 cmp $0x3,%eax
10f86f: 75 52 jne 10f8c3 <rtems_bdbuf_release+0x8c><== NEVER TAKEN
10f871: eb 07 jmp 10f87a <rtems_bdbuf_release+0x43>
10f873: 83 f8 06 cmp $0x6,%eax
10f876: 77 4b ja 10f8c3 <rtems_bdbuf_release+0x8c><== NEVER TAKEN
10f878: eb 37 jmp 10f8b1 <rtems_bdbuf_release+0x7a>
}
static void
rtems_bdbuf_group_release (rtems_bdbuf_buffer *bd)
{
--bd->group->users;
10f87a: 8b 43 2c mov 0x2c(%ebx),%eax
10f87d: ff 48 0c decl 0xc(%eax)
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
10f880: c7 43 24 02 00 00 00 movl $0x2,0x24(%ebx)
RTEMS_INLINE_ROUTINE void rtems_chain_append(
rtems_chain_control *the_chain,
rtems_chain_node *the_node
)
{
_Chain_Append( the_chain, the_node );
10f887: 51 push %ecx
10f888: 51 push %ecx
10f889: 53 push %ebx
10f88a: 68 2c 8f 12 00 push $0x128f2c
10f88f: e8 78 c6 ff ff call 10bf0c <_Chain_Append>
rtems_bdbuf_add_to_lru_list_after_access (rtems_bdbuf_buffer *bd)
{
rtems_bdbuf_group_release (bd);
rtems_bdbuf_make_cached_and_add_to_lru_list (bd);
if (bd->waiters)
10f894: 8b 43 28 mov 0x28(%ebx),%eax
10f897: 83 c4 10 add $0x10,%esp
10f89a: 85 c0 test %eax,%eax
10f89c: 74 07 je 10f8a5 <rtems_bdbuf_release+0x6e>
rtems_bdbuf_wake (&bdbuf_cache.access_waiters);
10f89e: b8 50 8f 12 00 mov $0x128f50,%eax
10f8a3: eb 05 jmp 10f8aa <rtems_bdbuf_release+0x73>
else
rtems_bdbuf_wake (&bdbuf_cache.buffer_waiters);
10f8a5: b8 60 8f 12 00 mov $0x128f60,%eax
10f8aa: e8 78 f2 ff ff call 10eb27 <rtems_bdbuf_wake>
10f8af: eb 26 jmp 10f8d7 <rtems_bdbuf_release+0xa0>
case RTEMS_BDBUF_STATE_ACCESS_CACHED:
rtems_bdbuf_add_to_lru_list_after_access (bd);
break;
case RTEMS_BDBUF_STATE_ACCESS_EMPTY:
case RTEMS_BDBUF_STATE_ACCESS_PURGED:
rtems_bdbuf_discard_buffer_after_access (bd);
10f8b1: 89 d8 mov %ebx,%eax
10f8b3: e8 e5 fe ff ff call 10f79d <rtems_bdbuf_discard_buffer_after_access>
break;
10f8b8: eb 1d jmp 10f8d7 <rtems_bdbuf_release+0xa0>
case RTEMS_BDBUF_STATE_ACCESS_MODIFIED:
rtems_bdbuf_add_to_modified_list_after_access (bd);
10f8ba: 89 d8 mov %ebx,%eax
10f8bc: e8 23 f5 ff ff call 10ede4 <rtems_bdbuf_add_to_modified_list_after_access>
break;
10f8c1: eb 14 jmp 10f8d7 <rtems_bdbuf_release+0xa0>
default:
rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_STATE_0);
10f8c3: 8b 43 24 mov 0x24(%ebx),%eax <== NOT EXECUTED
#endif
static void
rtems_bdbuf_fatal (rtems_bdbuf_buf_state state, uint32_t error)
{
rtems_fatal_error_occurred ((((uint32_t) state) << 16) | error);
10f8c6: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10f8c9: c1 e0 10 shl $0x10,%eax <== NOT EXECUTED
10f8cc: 0d 1c 00 00 42 or $0x4200001c,%eax <== NOT EXECUTED
10f8d1: 50 push %eax <== NOT EXECUTED
10f8d2: e8 1d c2 ff ff call 10baf4 <rtems_fatal_error_occurred><== NOT EXECUTED
}
if (rtems_bdbuf_tracer)
rtems_bdbuf_show_usage ();
rtems_bdbuf_unlock_cache ();
10f8d7: e8 ad f3 ff ff call 10ec89 <rtems_bdbuf_unlock_cache>
10f8dc: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
}
10f8de: 8b 5d fc mov -0x4(%ebp),%ebx
10f8e1: c9 leave
10f8e2: c3 ret
0010ed99 <rtems_bdbuf_release_disk>:
static void
rtems_bdbuf_release_disk (rtems_disk_device *dd)
{
10ed99: 55 push %ebp
10ed9a: 89 e5 mov %esp,%ebp
10ed9c: 83 ec 14 sub $0x14,%esp
rtems_status_code sc = RTEMS_SUCCESSFUL;
sc = rtems_disk_release (dd);
10ed9f: 50 push %eax
10eda0: e8 c3 89 ff ff call 107768 <rtems_disk_release>
if (sc != RTEMS_SUCCESSFUL)
10eda5: 83 c4 10 add $0x10,%esp
10eda8: 85 c0 test %eax,%eax
10edaa: 74 0d je 10edb9 <rtems_bdbuf_release_disk+0x20><== ALWAYS TAKEN
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_DISK_REL);
10edac: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10edaf: 68 1f 00 00 42 push $0x4200001f <== NOT EXECUTED
10edb4: e8 3b cd ff ff call 10baf4 <rtems_fatal_error_occurred><== NOT EXECUTED
}
10edb9: c9 leave
10edba: c3 ret
0010f7ce <rtems_bdbuf_release_modified>:
return RTEMS_SUCCESSFUL;
}
rtems_status_code
rtems_bdbuf_release_modified (rtems_bdbuf_buffer *bd)
{
10f7ce: 55 push %ebp
10f7cf: 89 e5 mov %esp,%ebp
10f7d1: 83 ec 18 sub $0x18,%esp
10f7d4: 8b 45 08 mov 0x8(%ebp),%eax
sc = rtems_bdbuf_check_bd_and_lock_cache (bd, "release modified");
if (sc != RTEMS_SUCCESSFUL)
return sc;
switch (bd->state)
10f7d7: ba 16 00 00 00 mov $0x16,%edx
}
static rtems_status_code
rtems_bdbuf_check_bd_and_lock_cache (rtems_bdbuf_buffer *bd, const char *kind)
{
if (!bdbuf_cache.initialised)
10f7dc: 80 3d 70 8f 12 00 00 cmpb $0x0,0x128f70
10f7e3: 74 4e je 10f833 <rtems_bdbuf_release_modified+0x65><== NEVER TAKEN
return RTEMS_NOT_CONFIGURED;
if (bd == NULL)
10f7e5: b2 09 mov $0x9,%dl
10f7e7: 85 c0 test %eax,%eax
10f7e9: 74 48 je 10f833 <rtems_bdbuf_release_modified+0x65><== NEVER TAKEN
if (rtems_bdbuf_tracer)
{
printf ("bdbuf:%s: %" PRIu32 "\n", kind, bd->block);
rtems_bdbuf_show_users (kind, bd);
}
rtems_bdbuf_lock_cache();
10f7eb: 89 45 f4 mov %eax,-0xc(%ebp)
10f7ee: e8 21 f3 ff ff call 10eb14 <rtems_bdbuf_lock_cache>
sc = rtems_bdbuf_check_bd_and_lock_cache (bd, "release modified");
if (sc != RTEMS_SUCCESSFUL)
return sc;
switch (bd->state)
10f7f3: 8b 45 f4 mov -0xc(%ebp),%eax
10f7f6: 8b 50 24 mov 0x24(%eax),%edx
10f7f9: 83 fa 03 cmp $0x3,%edx
10f7fc: 72 1a jb 10f818 <rtems_bdbuf_release_modified+0x4a><== NEVER TAKEN
10f7fe: 83 fa 05 cmp $0x5,%edx
10f801: 76 07 jbe 10f80a <rtems_bdbuf_release_modified+0x3c>
10f803: 83 fa 06 cmp $0x6,%edx
10f806: 75 10 jne 10f818 <rtems_bdbuf_release_modified+0x4a><== NEVER TAKEN
10f808: eb 07 jmp 10f811 <rtems_bdbuf_release_modified+0x43>
{
case RTEMS_BDBUF_STATE_ACCESS_CACHED:
case RTEMS_BDBUF_STATE_ACCESS_EMPTY:
case RTEMS_BDBUF_STATE_ACCESS_MODIFIED:
rtems_bdbuf_add_to_modified_list_after_access (bd);
10f80a: e8 d5 f5 ff ff call 10ede4 <rtems_bdbuf_add_to_modified_list_after_access>
break;
10f80f: eb 1b jmp 10f82c <rtems_bdbuf_release_modified+0x5e>
case RTEMS_BDBUF_STATE_ACCESS_PURGED:
rtems_bdbuf_discard_buffer_after_access (bd);
10f811: e8 87 ff ff ff call 10f79d <rtems_bdbuf_discard_buffer_after_access>
break;
10f816: eb 14 jmp 10f82c <rtems_bdbuf_release_modified+0x5e>
default:
rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_STATE_6);
10f818: 8b 40 24 mov 0x24(%eax),%eax <== NOT EXECUTED
#endif
static void
rtems_bdbuf_fatal (rtems_bdbuf_buf_state state, uint32_t error)
{
rtems_fatal_error_occurred ((((uint32_t) state) << 16) | error);
10f81b: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10f81e: c1 e0 10 shl $0x10,%eax <== NOT EXECUTED
10f821: 0d 04 00 00 42 or $0x42000004,%eax <== NOT EXECUTED
10f826: 50 push %eax <== NOT EXECUTED
10f827: e8 c8 c2 ff ff call 10baf4 <rtems_fatal_error_occurred><== NOT EXECUTED
}
if (rtems_bdbuf_tracer)
rtems_bdbuf_show_usage ();
rtems_bdbuf_unlock_cache ();
10f82c: e8 58 f4 ff ff call 10ec89 <rtems_bdbuf_unlock_cache>
10f831: 31 d2 xor %edx,%edx
return RTEMS_SUCCESSFUL;
}
10f833: 89 d0 mov %edx,%eax
10f835: c9 leave
10f836: c3 ret
0010f487 <rtems_bdbuf_remove_from_tree>:
return bdbuf_cache.buffer_waiters.count;
}
static void
rtems_bdbuf_remove_from_tree (rtems_bdbuf_buffer *bd)
{
10f487: 55 push %ebp
10f488: 89 e5 mov %esp,%ebp
10f48a: 57 push %edi
10f48b: 56 push %esi
10f48c: 53 push %ebx
10f48d: 81 ec 9c 00 00 00 sub $0x9c,%esp
10f493: 89 c3 mov %eax,%ebx
*/
static int
rtems_bdbuf_avl_remove(rtems_bdbuf_buffer** root,
const rtems_bdbuf_buffer* node)
{
dev_t dev = node->dev;
10f495: 8b 40 14 mov 0x14(%eax),%eax
10f498: 89 85 64 ff ff ff mov %eax,-0x9c(%ebp)
10f49e: 8b 53 18 mov 0x18(%ebx),%edx
10f4a1: 89 95 60 ff ff ff mov %edx,-0xa0(%ebp)
rtems_blkdev_bnum block = node->block;
10f4a7: 8b 4b 1c mov 0x1c(%ebx),%ecx
10f4aa: 89 8d 5c ff ff ff mov %ecx,-0xa4(%ebp)
rtems_bdbuf_buffer* p = *root;
10f4b0: 8b 15 28 8f 12 00 mov 0x128f28,%edx
rtems_bdbuf_buffer* buf_stack[RTEMS_BDBUF_AVL_MAX_HEIGHT];
rtems_bdbuf_buffer** buf_prev = buf_stack;
bool modified = false;
memset (buf_stack, 0, sizeof(buf_stack));
10f4b6: 8d b5 68 ff ff ff lea -0x98(%ebp),%esi
10f4bc: b9 20 00 00 00 mov $0x20,%ecx
10f4c1: 31 c0 xor %eax,%eax
10f4c3: 89 f7 mov %esi,%edi
10f4c5: f3 ab rep stos %eax,%es:(%edi)
10f4c7: eb 4a jmp 10f513 <rtems_bdbuf_remove_from_tree+0x8c>
while (p != NULL)
{
*buf_prev++ = p;
10f4c9: 89 16 mov %edx,(%esi)
10f4cb: 83 c6 04 add $0x4,%esi
if ((p->dev < dev) || ((p->dev == dev) && (p->block < block)))
10f4ce: 8b 42 14 mov 0x14(%edx),%eax
10f4d1: 8b 4a 18 mov 0x18(%edx),%ecx
10f4d4: 3b 8d 60 ff ff ff cmp -0xa0(%ebp),%ecx
10f4da: 72 25 jb 10f501 <rtems_bdbuf_remove_from_tree+0x7a><== NEVER TAKEN
10f4dc: 77 08 ja 10f4e6 <rtems_bdbuf_remove_from_tree+0x5f><== NEVER TAKEN
10f4de: 3b 85 64 ff ff ff cmp -0x9c(%ebp),%eax
10f4e4: 72 1b jb 10f501 <rtems_bdbuf_remove_from_tree+0x7a><== NEVER TAKEN
10f4e6: 3b 8d 60 ff ff ff cmp -0xa0(%ebp),%ecx
10f4ec: 75 1e jne 10f50c <rtems_bdbuf_remove_from_tree+0x85><== NEVER TAKEN
10f4ee: 3b 85 64 ff ff ff cmp -0x9c(%ebp),%eax
10f4f4: 75 16 jne 10f50c <rtems_bdbuf_remove_from_tree+0x85><== NEVER TAKEN
10f4f6: 8b bd 5c ff ff ff mov -0xa4(%ebp),%edi
10f4fc: 39 7a 1c cmp %edi,0x1c(%edx)
10f4ff: 73 09 jae 10f50a <rtems_bdbuf_remove_from_tree+0x83>
{
p->avl.cache = 1;
10f501: c6 42 10 01 movb $0x1,0x10(%edx)
p = p->avl.right;
10f505: 8b 52 0c mov 0xc(%edx),%edx
10f508: eb 09 jmp 10f513 <rtems_bdbuf_remove_from_tree+0x8c>
}
else if ((p->dev != dev) || (p->block != block))
10f50a: 74 10 je 10f51c <rtems_bdbuf_remove_from_tree+0x95>
{
p->avl.cache = -1;
10f50c: c6 42 10 ff movb $0xff,0x10(%edx)
p = p->avl.left;
10f510: 8b 52 08 mov 0x8(%edx),%edx
bool modified = false;
memset (buf_stack, 0, sizeof(buf_stack));
while (p != NULL)
10f513: 85 d2 test %edx,%edx
10f515: 75 b2 jne 10f4c9 <rtems_bdbuf_remove_from_tree+0x42><== ALWAYS TAKEN
10f517: e9 e8 01 00 00 jmp 10f704 <rtems_bdbuf_remove_from_tree+0x27d><== NOT EXECUTED
return -1;
}
q = p;
buf_prev--;
10f51c: 8d 46 fc lea -0x4(%esi),%eax
10f51f: 89 85 60 ff ff ff mov %eax,-0xa0(%ebp)
if (buf_prev > buf_stack)
10f525: 8d 85 68 ff ff ff lea -0x98(%ebp),%eax
10f52b: 31 db xor %ebx,%ebx
10f52d: 39 85 60 ff ff ff cmp %eax,-0xa0(%ebp)
10f533: 76 09 jbe 10f53e <rtems_bdbuf_remove_from_tree+0xb7>
{
p = *(buf_prev - 1);
10f535: 8b 8d 60 ff ff ff mov -0xa0(%ebp),%ecx
10f53b: 8b 59 fc mov -0x4(%ecx),%ebx
{
p = NULL;
}
/* at this moment q - is a node to delete, p is q's parent */
if (q->avl.right == NULL)
10f53e: 8b 42 0c mov 0xc(%edx),%eax
10f541: 85 c0 test %eax,%eax
10f543: 75 19 jne 10f55e <rtems_bdbuf_remove_from_tree+0xd7>
{
r = q->avl.left;
10f545: 8b 42 08 mov 0x8(%edx),%eax
if (r != NULL)
10f548: 8b b5 60 ff ff ff mov -0xa0(%ebp),%esi
10f54e: 85 c0 test %eax,%eax
10f550: 74 78 je 10f5ca <rtems_bdbuf_remove_from_tree+0x143>
{
r->avl.bal = 0;
10f552: c6 40 11 00 movb $0x0,0x11(%eax)
10f556: 8b b5 60 ff ff ff mov -0xa0(%ebp),%esi
10f55c: eb 6c jmp 10f5ca <rtems_bdbuf_remove_from_tree+0x143>
{
rtems_bdbuf_buffer **t;
r = q->avl.right;
if (r->avl.left == NULL)
10f55e: 89 85 64 ff ff ff mov %eax,-0x9c(%ebp)
10f564: 83 78 08 00 cmpl $0x0,0x8(%eax)
10f568: 75 24 jne 10f58e <rtems_bdbuf_remove_from_tree+0x107><== NEVER TAKEN
{
r->avl.left = q->avl.left;
10f56a: 8b 7a 08 mov 0x8(%edx),%edi
10f56d: 89 78 08 mov %edi,0x8(%eax)
10f570: eb 46 jmp 10f5b8 <rtems_bdbuf_remove_from_tree+0x131>
t = buf_prev++;
s = r;
while (s->avl.left != NULL)
{
*buf_prev++ = r = s;
10f572: 89 06 mov %eax,(%esi) <== NOT EXECUTED
10f574: 83 c6 04 add $0x4,%esi <== NOT EXECUTED
s = r->avl.left;
10f577: 8b 78 08 mov 0x8(%eax),%edi <== NOT EXECUTED
10f57a: 89 bd 64 ff ff ff mov %edi,-0x9c(%ebp) <== NOT EXECUTED
r->avl.cache = -1;
10f580: c6 40 10 ff movb $0xff,0x10(%eax) <== NOT EXECUTED
10f584: 89 c7 mov %eax,%edi <== NOT EXECUTED
10f586: 8b 85 64 ff ff ff mov -0x9c(%ebp),%eax <== NOT EXECUTED
10f58c: eb 0c jmp 10f59a <rtems_bdbuf_remove_from_tree+0x113><== NOT EXECUTED
10f58e: 8b 8d 60 ff ff ff mov -0xa0(%ebp),%ecx <== NOT EXECUTED
10f594: 8b bd 64 ff ff ff mov -0x9c(%ebp),%edi <== NOT EXECUTED
else
{
t = buf_prev++;
s = r;
while (s->avl.left != NULL)
10f59a: 83 78 08 00 cmpl $0x0,0x8(%eax) <== NOT EXECUTED
10f59e: 75 d2 jne 10f572 <rtems_bdbuf_remove_from_tree+0xeb><== NOT EXECUTED
10f5a0: 89 8d 60 ff ff ff mov %ecx,-0xa0(%ebp) <== NOT EXECUTED
*buf_prev++ = r = s;
s = r->avl.left;
r->avl.cache = -1;
}
s->avl.left = q->avl.left;
10f5a6: 8b 4a 08 mov 0x8(%edx),%ecx <== NOT EXECUTED
10f5a9: 89 48 08 mov %ecx,0x8(%eax) <== NOT EXECUTED
r->avl.left = s->avl.right;
10f5ac: 8b 48 0c mov 0xc(%eax),%ecx <== NOT EXECUTED
10f5af: 89 4f 08 mov %ecx,0x8(%edi) <== NOT EXECUTED
s->avl.right = q->avl.right;
10f5b2: 8b 7a 0c mov 0xc(%edx),%edi <== NOT EXECUTED
10f5b5: 89 78 0c mov %edi,0xc(%eax) <== NOT EXECUTED
s->avl.bal = q->avl.bal;
10f5b8: 8a 52 11 mov 0x11(%edx),%dl
10f5bb: 88 50 11 mov %dl,0x11(%eax)
s->avl.cache = 1;
10f5be: c6 40 10 01 movb $0x1,0x10(%eax)
*t = q = s;
10f5c2: 8b bd 60 ff ff ff mov -0xa0(%ebp),%edi
10f5c8: 89 07 mov %eax,(%edi)
}
}
if (p != NULL)
10f5ca: 85 db test %ebx,%ebx
10f5cc: 74 1d je 10f5eb <rtems_bdbuf_remove_from_tree+0x164>
{
if (p->avl.cache == -1)
10f5ce: 80 7b 10 ff cmpb $0xff,0x10(%ebx)
10f5d2: 75 05 jne 10f5d9 <rtems_bdbuf_remove_from_tree+0x152>
{
p->avl.left = q;
10f5d4: 89 43 08 mov %eax,0x8(%ebx)
10f5d7: eb 03 jmp 10f5dc <rtems_bdbuf_remove_from_tree+0x155>
}
else
{
p->avl.right = q;
10f5d9: 89 43 0c mov %eax,0xc(%ebx)
modified = true;
while (modified)
{
if (buf_prev > buf_stack)
10f5dc: 8d 9d 68 ff ff ff lea -0x98(%ebp),%ebx
10f5e2: 39 de cmp %ebx,%esi
10f5e4: 77 0c ja 10f5f2 <rtems_bdbuf_remove_from_tree+0x16b>
10f5e6: e9 2d 01 00 00 jmp 10f718 <rtems_bdbuf_remove_from_tree+0x291>
p->avl.right = q;
}
}
else
{
*root = q;
10f5eb: a3 28 8f 12 00 mov %eax,0x128f28
10f5f0: eb ea jmp 10f5dc <rtems_bdbuf_remove_from_tree+0x155>
10f5f2: 89 9d 64 ff ff ff mov %ebx,-0x9c(%ebp)
while (modified)
{
if (buf_prev > buf_stack)
{
p = *--buf_prev;
10f5f8: 83 ee 04 sub $0x4,%esi
10f5fb: 8b 16 mov (%esi),%edx
else
{
break;
}
if (p->avl.cache == -1)
10f5fd: 80 7a 10 ff cmpb $0xff,0x10(%edx)
10f601: 8a 42 11 mov 0x11(%edx),%al
10f604: 75 5d jne 10f663 <rtems_bdbuf_remove_from_tree+0x1dc>
{
/* rebalance left branch */
switch (p->avl.bal)
10f606: 84 c0 test %al,%al
10f608: 74 0e je 10f618 <rtems_bdbuf_remove_from_tree+0x191>
10f60a: 3c 01 cmp $0x1,%al
10f60c: 74 10 je 10f61e <rtems_bdbuf_remove_from_tree+0x197>
10f60e: fe c0 inc %al
10f610: 0f 85 be 00 00 00 jne 10f6d4 <rtems_bdbuf_remove_from_tree+0x24d><== NEVER TAKEN
10f616: eb 59 jmp 10f671 <rtems_bdbuf_remove_from_tree+0x1ea>
{
case -1:
p->avl.bal = 0;
break;
case 0:
p->avl.bal = 1;
10f618: c6 42 11 01 movb $0x1,0x11(%edx)
10f61c: eb 5d jmp 10f67b <rtems_bdbuf_remove_from_tree+0x1f4>
modified = false;
break;
case +1:
p1 = p->avl.right;
10f61e: 8b 4a 0c mov 0xc(%edx),%ecx
if (p1->avl.bal >= 0) /* simple RR-turn */
10f621: 80 79 11 00 cmpb $0x0,0x11(%ecx)
10f625: 8b 41 08 mov 0x8(%ecx),%eax
10f628: 7c 0e jl 10f638 <rtems_bdbuf_remove_from_tree+0x1b1><== NEVER TAKEN
{
p->avl.right = p1->avl.left;
10f62a: 89 42 0c mov %eax,0xc(%edx)
p1->avl.left = p;
10f62d: 89 51 08 mov %edx,0x8(%ecx)
if (p1->avl.bal == 0)
10f630: 75 6b jne 10f69d <rtems_bdbuf_remove_from_tree+0x216><== NEVER TAKEN
{
p1->avl.bal = -1;
10f632: c6 41 11 ff movb $0xff,0x11(%ecx)
10f636: eb 61 jmp 10f699 <rtems_bdbuf_remove_from_tree+0x212>
}
else /* double RL-turn */
{
p2 = p1->avl.left;
p1->avl.left = p2->avl.right;
10f638: 8b 78 0c mov 0xc(%eax),%edi <== NOT EXECUTED
10f63b: 89 79 08 mov %edi,0x8(%ecx) <== NOT EXECUTED
p2->avl.right = p1;
10f63e: 89 48 0c mov %ecx,0xc(%eax) <== NOT EXECUTED
p->avl.right = p2->avl.left;
10f641: 8b 78 08 mov 0x8(%eax),%edi <== NOT EXECUTED
10f644: 89 7a 0c mov %edi,0xc(%edx) <== NOT EXECUTED
p2->avl.left = p;
10f647: 89 50 08 mov %edx,0x8(%eax) <== NOT EXECUTED
if (p2->avl.bal == +1) p->avl.bal = -1; else p->avl.bal = 0;
10f64a: 80 78 11 01 cmpb $0x1,0x11(%eax) <== NOT EXECUTED
10f64e: 0f 95 c3 setne %bl <== NOT EXECUTED
10f651: 89 df mov %ebx,%edi <== NOT EXECUTED
10f653: 4f dec %edi <== NOT EXECUTED
10f654: 89 fb mov %edi,%ebx <== NOT EXECUTED
10f656: 88 5a 11 mov %bl,0x11(%edx) <== NOT EXECUTED
if (p2->avl.bal == -1) p1->avl.bal = 1; else p1->avl.bal = 0;
10f659: 80 78 11 ff cmpb $0xff,0x11(%eax) <== NOT EXECUTED
10f65d: 0f 94 41 11 sete 0x11(%ecx) <== NOT EXECUTED
10f661: eb 6b jmp 10f6ce <rtems_bdbuf_remove_from_tree+0x247><== NOT EXECUTED
}
}
else
{
/* rebalance right branch */
switch (p->avl.bal)
10f663: 84 c0 test %al,%al
10f665: 74 10 je 10f677 <rtems_bdbuf_remove_from_tree+0x1f0><== NEVER TAKEN
10f667: 3c 01 cmp $0x1,%al
10f669: 74 06 je 10f671 <rtems_bdbuf_remove_from_tree+0x1ea><== ALWAYS TAKEN
10f66b: fe c0 inc %al <== NOT EXECUTED
10f66d: 75 65 jne 10f6d4 <rtems_bdbuf_remove_from_tree+0x24d><== NOT EXECUTED
10f66f: eb 10 jmp 10f681 <rtems_bdbuf_remove_from_tree+0x1fa><== NOT EXECUTED
{
case +1:
p->avl.bal = 0;
10f671: c6 42 11 00 movb $0x0,0x11(%edx)
10f675: eb 5d jmp 10f6d4 <rtems_bdbuf_remove_from_tree+0x24d>
break;
case 0:
p->avl.bal = -1;
10f677: c6 42 11 ff movb $0xff,0x11(%edx) <== NOT EXECUTED
10f67b: 89 d0 mov %edx,%eax
10f67d: 31 d2 xor %edx,%edx
10f67f: eb 57 jmp 10f6d8 <rtems_bdbuf_remove_from_tree+0x251>
modified = false;
break;
case -1:
p1 = p->avl.left;
10f681: 8b 4a 08 mov 0x8(%edx),%ecx <== NOT EXECUTED
if (p1->avl.bal <= 0) /* simple LL-turn */
10f684: 80 79 11 00 cmpb $0x0,0x11(%ecx) <== NOT EXECUTED
10f688: 8b 41 0c mov 0xc(%ecx),%eax <== NOT EXECUTED
10f68b: 7f 1c jg 10f6a9 <rtems_bdbuf_remove_from_tree+0x222><== NOT EXECUTED
{
p->avl.left = p1->avl.right;
10f68d: 89 42 08 mov %eax,0x8(%edx) <== NOT EXECUTED
p1->avl.right = p;
10f690: 89 51 0c mov %edx,0xc(%ecx) <== NOT EXECUTED
if (p1->avl.bal == 0)
10f693: 75 08 jne 10f69d <rtems_bdbuf_remove_from_tree+0x216><== NOT EXECUTED
{
p1->avl.bal = 1;
10f695: c6 41 11 01 movb $0x1,0x11(%ecx) <== NOT EXECUTED
10f699: 89 c8 mov %ecx,%eax
10f69b: eb e0 jmp 10f67d <rtems_bdbuf_remove_from_tree+0x1f6>
modified = false;
}
else
{
p->avl.bal = 0;
10f69d: c6 42 11 00 movb $0x0,0x11(%edx) <== NOT EXECUTED
p1->avl.bal = 0;
10f6a1: c6 41 11 00 movb $0x0,0x11(%ecx) <== NOT EXECUTED
10f6a5: 89 c8 mov %ecx,%eax <== NOT EXECUTED
10f6a7: eb 2d jmp 10f6d6 <rtems_bdbuf_remove_from_tree+0x24f><== NOT EXECUTED
}
else /* double LR-turn */
{
p2 = p1->avl.right;
p1->avl.right = p2->avl.left;
10f6a9: 8b 78 08 mov 0x8(%eax),%edi <== NOT EXECUTED
10f6ac: 89 79 0c mov %edi,0xc(%ecx) <== NOT EXECUTED
p2->avl.left = p1;
10f6af: 89 48 08 mov %ecx,0x8(%eax) <== NOT EXECUTED
p->avl.left = p2->avl.right;
10f6b2: 8b 78 0c mov 0xc(%eax),%edi <== NOT EXECUTED
10f6b5: 89 7a 08 mov %edi,0x8(%edx) <== NOT EXECUTED
p2->avl.right = p;
10f6b8: 89 50 0c mov %edx,0xc(%eax) <== NOT EXECUTED
if (p2->avl.bal == -1) p->avl.bal = 1; else p->avl.bal = 0;
10f6bb: 80 78 11 ff cmpb $0xff,0x11(%eax) <== NOT EXECUTED
10f6bf: 0f 94 42 11 sete 0x11(%edx) <== NOT EXECUTED
if (p2->avl.bal == +1) p1->avl.bal = -1; else p1->avl.bal = 0;
10f6c3: 80 78 11 01 cmpb $0x1,0x11(%eax) <== NOT EXECUTED
10f6c7: 0f 95 c2 setne %dl <== NOT EXECUTED
10f6ca: 4a dec %edx <== NOT EXECUTED
10f6cb: 88 51 11 mov %dl,0x11(%ecx) <== NOT EXECUTED
p = p2;
p2->avl.bal = 0;
10f6ce: c6 40 11 00 movb $0x0,0x11(%eax) <== NOT EXECUTED
10f6d2: eb 02 jmp 10f6d6 <rtems_bdbuf_remove_from_tree+0x24f><== NOT EXECUTED
10f6d4: 89 d0 mov %edx,%eax
10f6d6: b2 01 mov $0x1,%dl
default:
break;
}
}
if (buf_prev > buf_stack)
10f6d8: 3b b5 64 ff ff ff cmp -0x9c(%ebp),%esi
10f6de: 76 13 jbe 10f6f3 <rtems_bdbuf_remove_from_tree+0x26c>
{
q = *(buf_prev - 1);
10f6e0: 8b 4e fc mov -0x4(%esi),%ecx
if (q->avl.cache == -1)
10f6e3: 80 79 10 ff cmpb $0xff,0x10(%ecx)
10f6e7: 75 05 jne 10f6ee <rtems_bdbuf_remove_from_tree+0x267><== NEVER TAKEN
{
q->avl.left = p;
10f6e9: 89 41 08 mov %eax,0x8(%ecx)
10f6ec: eb 0c jmp 10f6fa <rtems_bdbuf_remove_from_tree+0x273>
}
else
{
q->avl.right = p;
10f6ee: 89 41 0c mov %eax,0xc(%ecx) <== NOT EXECUTED
10f6f1: eb 07 jmp 10f6fa <rtems_bdbuf_remove_from_tree+0x273><== NOT EXECUTED
}
}
else
{
*root = p;
10f6f3: a3 28 8f 12 00 mov %eax,0x128f28
10f6f8: eb 1e jmp 10f718 <rtems_bdbuf_remove_from_tree+0x291>
*root = q;
}
modified = true;
while (modified)
10f6fa: 84 d2 test %dl,%dl
10f6fc: 0f 85 f6 fe ff ff jne 10f5f8 <rtems_bdbuf_remove_from_tree+0x171><== ALWAYS TAKEN
10f702: eb 14 jmp 10f718 <rtems_bdbuf_remove_from_tree+0x291><== NOT EXECUTED
static void
rtems_bdbuf_remove_from_tree (rtems_bdbuf_buffer *bd)
{
if (rtems_bdbuf_avl_remove (&bdbuf_cache.tree, bd) != 0)
rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_TREE_RM);
10f704: 8b 43 24 mov 0x24(%ebx),%eax <== NOT EXECUTED
#endif
static void
rtems_bdbuf_fatal (rtems_bdbuf_buf_state state, uint32_t error)
{
rtems_fatal_error_occurred ((((uint32_t) state) << 16) | error);
10f707: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10f70a: c1 e0 10 shl $0x10,%eax <== NOT EXECUTED
10f70d: 0d 09 00 00 42 or $0x42000009,%eax <== NOT EXECUTED
10f712: 50 push %eax <== NOT EXECUTED
10f713: e8 dc c3 ff ff call 10baf4 <rtems_fatal_error_occurred><== NOT EXECUTED
static void
rtems_bdbuf_remove_from_tree (rtems_bdbuf_buffer *bd)
{
if (rtems_bdbuf_avl_remove (&bdbuf_cache.tree, bd) != 0)
rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_TREE_RM);
}
10f718: 8d 65 f4 lea -0xc(%ebp),%esp
10f71b: 5b pop %ebx
10f71c: 5e pop %esi
10f71d: 5f pop %edi
10f71e: c9 leave
10f71f: c3 ret
0010f720 <rtems_bdbuf_remove_from_tree_and_lru_list>:
static void
rtems_bdbuf_remove_from_tree_and_lru_list (rtems_bdbuf_buffer *bd)
{
10f720: 55 push %ebp
10f721: 89 e5 mov %esp,%ebp
10f723: 53 push %ebx
10f724: 83 ec 04 sub $0x4,%esp
10f727: 89 c3 mov %eax,%ebx
switch (bd->state)
10f729: 8b 40 24 mov 0x24(%eax),%eax
10f72c: 85 c0 test %eax,%eax
10f72e: 74 22 je 10f752 <rtems_bdbuf_remove_from_tree_and_lru_list+0x32>
10f730: 83 f8 02 cmp $0x2,%eax
10f733: 75 09 jne 10f73e <rtems_bdbuf_remove_from_tree_and_lru_list+0x1e><== NEVER TAKEN
{
case RTEMS_BDBUF_STATE_FREE:
break;
case RTEMS_BDBUF_STATE_CACHED:
rtems_bdbuf_remove_from_tree (bd);
10f735: 89 d8 mov %ebx,%eax
10f737: e8 4b fd ff ff call 10f487 <rtems_bdbuf_remove_from_tree>
break;
10f73c: eb 14 jmp 10f752 <rtems_bdbuf_remove_from_tree_and_lru_list+0x32>
default:
rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_STATE_10);
10f73e: 8b 43 24 mov 0x24(%ebx),%eax <== NOT EXECUTED
#endif
static void
rtems_bdbuf_fatal (rtems_bdbuf_buf_state state, uint32_t error)
{
rtems_fatal_error_occurred ((((uint32_t) state) << 16) | error);
10f741: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10f744: c1 e0 10 shl $0x10,%eax <== NOT EXECUTED
10f747: 0d 08 00 00 42 or $0x42000008,%eax <== NOT EXECUTED
10f74c: 50 push %eax <== NOT EXECUTED
10f74d: e8 a2 c3 ff ff call 10baf4 <rtems_fatal_error_occurred><== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void rtems_chain_extract(
rtems_chain_node *the_node
)
{
_Chain_Extract( the_node );
10f752: 83 ec 0c sub $0xc,%esp
10f755: 53 push %ebx
10f756: e8 d5 c7 ff ff call 10bf30 <_Chain_Extract>
10f75b: 83 c4 10 add $0x10,%esp
default:
rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_STATE_10);
}
rtems_chain_extract (&bd->link);
}
10f75e: 8b 5d fc mov -0x4(%ebp),%ebx
10f761: c9 leave
10f762: c3 ret
0010efa9 <rtems_bdbuf_restore_preemption>:
static void
rtems_bdbuf_restore_preemption (rtems_mode prev_mode)
{
10efa9: 55 push %ebp
10efaa: 89 e5 mov %esp,%ebp
10efac: 83 ec 1c sub $0x1c,%esp
10efaf: 89 45 f4 mov %eax,-0xc(%ebp)
rtems_status_code sc = RTEMS_SUCCESSFUL;
sc = rtems_task_mode (prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode);
10efb2: 8d 45 f4 lea -0xc(%ebp),%eax
10efb5: 50 push %eax
10efb6: 68 ff ff 00 00 push $0xffff
10efbb: ff 75 f4 pushl -0xc(%ebp)
10efbe: e8 4d 42 00 00 call 113210 <rtems_task_mode>
if (sc != RTEMS_SUCCESSFUL)
10efc3: 83 c4 10 add $0x10,%esp
10efc6: 85 c0 test %eax,%eax
10efc8: 74 0d je 10efd7 <rtems_bdbuf_restore_preemption+0x2e><== ALWAYS TAKEN
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_PREEMPT_RST);
10efca: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10efcd: 68 11 00 00 42 push $0x42000011 <== NOT EXECUTED
10efd2: e8 1d cb ff ff call 10baf4 <rtems_fatal_error_occurred><== NOT EXECUTED
}
10efd7: c9 leave
10efd8: c3 ret
0010eb54 <rtems_bdbuf_swapout_modified_processing>:
rtems_chain_control* chain,
rtems_chain_control* transfer,
bool sync_active,
bool update_timers,
uint32_t timer_delta)
{
10eb54: 55 push %ebp
10eb55: 89 e5 mov %esp,%ebp
10eb57: 57 push %edi
10eb58: 56 push %esi
10eb59: 53 push %ebx
10eb5a: 83 ec 2c sub $0x2c,%esp
10eb5d: 89 c3 mov %eax,%ebx
10eb5f: 89 cf mov %ecx,%edi
10eb61: 8a 45 08 mov 0x8(%ebp),%al
10eb64: 88 45 e2 mov %al,-0x1e(%ebp)
10eb67: 8a 45 0c mov 0xc(%ebp),%al
10eb6a: 88 45 d7 mov %al,-0x29(%ebp)
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
10eb6d: 8d 42 04 lea 0x4(%edx),%eax
10eb70: 89 45 e4 mov %eax,-0x1c(%ebp)
if (!rtems_chain_is_empty (chain))
10eb73: 39 02 cmp %eax,(%edx)
10eb75: 0f 84 06 01 00 00 je 10ec81 <rtems_bdbuf_swapout_modified_processing+0x12d>
{
rtems_chain_node* node = rtems_chain_head (chain);
bool sync_all;
node = node->next;
10eb7b: 8b 32 mov (%edx),%esi
/*
* A sync active with no valid dev means sync all.
*/
if (sync_active && (*dev == BDBUF_INVALID_DEV))
10eb7d: c6 45 e3 00 movb $0x0,-0x1d(%ebp)
10eb81: 80 7d e2 00 cmpb $0x0,-0x1e(%ebp)
10eb85: 74 0a je 10eb91 <rtems_bdbuf_swapout_modified_processing+0x3d>
* @param update_timers If true update the timers.
* @param timer_delta It update_timers is true update the timers by this
* amount.
*/
static void
rtems_bdbuf_swapout_modified_processing (dev_t* dev,
10eb87: 8b 03 mov (%ebx),%eax
10eb89: 23 43 04 and 0x4(%ebx),%eax
10eb8c: 40 inc %eax
10eb8d: 0f 94 45 e3 sete -0x1d(%ebp)
10eb91: 8d 57 04 lea 0x4(%edi),%edx
10eb94: 89 55 d8 mov %edx,-0x28(%ebp)
10eb97: 89 7d dc mov %edi,-0x24(%ebp)
10eb9a: e9 c5 00 00 00 jmp 10ec64 <rtems_bdbuf_swapout_modified_processing+0x110>
* or someone waits for a buffer written force all the timers to 0.
*
* @note Lots of sync requests will skew this timer. It should be based
* on TOD to be accurate. Does it matter ?
*/
if (sync_all || (sync_active && (*dev == bd->dev))
10eb9f: 80 7d e3 00 cmpb $0x0,-0x1d(%ebp)
10eba3: 75 1e jne 10ebc3 <rtems_bdbuf_swapout_modified_processing+0x6f>
10eba5: 80 7d e2 00 cmpb $0x0,-0x1e(%ebp)
10eba9: 74 0f je 10ebba <rtems_bdbuf_swapout_modified_processing+0x66>
10ebab: 8b 03 mov (%ebx),%eax
10ebad: 8b 53 04 mov 0x4(%ebx),%edx
10ebb0: 3b 56 18 cmp 0x18(%esi),%edx
10ebb3: 75 05 jne 10ebba <rtems_bdbuf_swapout_modified_processing+0x66><== NEVER TAKEN
10ebb5: 3b 46 14 cmp 0x14(%esi),%eax
10ebb8: 74 09 je 10ebc3 <rtems_bdbuf_swapout_modified_processing+0x6f>
}
static bool
rtems_bdbuf_has_buffer_waiters (void)
{
return bdbuf_cache.buffer_waiters.count;
10ebba: a1 60 8f 12 00 mov 0x128f60,%eax
* or someone waits for a buffer written force all the timers to 0.
*
* @note Lots of sync requests will skew this timer. It should be based
* on TOD to be accurate. Does it matter ?
*/
if (sync_all || (sync_active && (*dev == bd->dev))
10ebbf: 85 c0 test %eax,%eax
10ebc1: 74 07 je 10ebca <rtems_bdbuf_swapout_modified_processing+0x76>
|| rtems_bdbuf_has_buffer_waiters ())
bd->hold_timer = 0;
10ebc3: c7 46 30 00 00 00 00 movl $0x0,0x30(%esi)
if (bd->hold_timer)
10ebca: 8b 46 30 mov 0x30(%esi),%eax
10ebcd: 85 c0 test %eax,%eax
10ebcf: 74 27 je 10ebf8 <rtems_bdbuf_swapout_modified_processing+0xa4>
{
if (update_timers)
10ebd1: 80 7d d7 00 cmpb $0x0,-0x29(%ebp)
10ebd5: 74 1a je 10ebf1 <rtems_bdbuf_swapout_modified_processing+0x9d>
{
if (bd->hold_timer > timer_delta)
10ebd7: 8b 46 30 mov 0x30(%esi),%eax
10ebda: 3b 45 10 cmp 0x10(%ebp),%eax
10ebdd: 76 0b jbe 10ebea <rtems_bdbuf_swapout_modified_processing+0x96>
bd->hold_timer -= timer_delta;
10ebdf: 8b 46 30 mov 0x30(%esi),%eax
10ebe2: 2b 45 10 sub 0x10(%ebp),%eax
10ebe5: 89 46 30 mov %eax,0x30(%esi)
10ebe8: eb 07 jmp 10ebf1 <rtems_bdbuf_swapout_modified_processing+0x9d>
else
bd->hold_timer = 0;
10ebea: c7 46 30 00 00 00 00 movl $0x0,0x30(%esi)
}
if (bd->hold_timer)
10ebf1: 8b 46 30 mov 0x30(%esi),%eax
10ebf4: 85 c0 test %eax,%eax
10ebf6: 75 6a jne 10ec62 <rtems_bdbuf_swapout_modified_processing+0x10e>
/*
* This assumes we can set dev_t to BDBUF_INVALID_DEV which is just an
* assumption. Cannot use the transfer list being empty the sync dev
* calls sets the dev to use.
*/
if (*dev == BDBUF_INVALID_DEV)
10ebf8: 83 7b 04 ff cmpl $0xffffffff,0x4(%ebx)
10ebfc: 75 10 jne 10ec0e <rtems_bdbuf_swapout_modified_processing+0xba>
10ebfe: 83 3b ff cmpl $0xffffffff,(%ebx)
10ec01: 75 0b jne 10ec0e <rtems_bdbuf_swapout_modified_processing+0xba><== NEVER TAKEN
*dev = bd->dev;
10ec03: 8b 46 14 mov 0x14(%esi),%eax
10ec06: 8b 56 18 mov 0x18(%esi),%edx
10ec09: 89 03 mov %eax,(%ebx)
10ec0b: 89 53 04 mov %edx,0x4(%ebx)
if (bd->dev == *dev)
10ec0e: 8b 46 14 mov 0x14(%esi),%eax
10ec11: 8b 56 18 mov 0x18(%esi),%edx
10ec14: 3b 53 04 cmp 0x4(%ebx),%edx
10ec17: 75 49 jne 10ec62 <rtems_bdbuf_swapout_modified_processing+0x10e><== NEVER TAKEN
10ec19: 3b 03 cmp (%ebx),%eax
10ec1b: 75 45 jne 10ec62 <rtems_bdbuf_swapout_modified_processing+0x10e><== NEVER TAKEN
{
rtems_chain_node* next_node = node->next;
10ec1d: 8b 3e mov (%esi),%edi
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
10ec1f: c7 46 24 09 00 00 00 movl $0x9,0x24(%esi)
*/
RTEMS_INLINE_ROUTINE void rtems_chain_extract(
rtems_chain_node *the_node
)
{
_Chain_Extract( the_node );
10ec26: 83 ec 0c sub $0xc,%esp
10ec29: 56 push %esi
10ec2a: e8 01 d3 ff ff call 10bf30 <_Chain_Extract>
rtems_bdbuf_set_state (bd, RTEMS_BDBUF_STATE_TRANSFER);
rtems_chain_extract (node);
tnode = tnode->previous;
10ec2f: 8b 55 d8 mov -0x28(%ebp),%edx
10ec32: 8b 42 04 mov 0x4(%edx),%eax
while (node && !rtems_chain_is_head (transfer, tnode))
10ec35: 83 c4 10 add $0x10,%esp
10ec38: eb 19 jmp 10ec53 <rtems_bdbuf_swapout_modified_processing+0xff>
{
rtems_bdbuf_buffer* tbd = (rtems_bdbuf_buffer*) tnode;
if (bd->block > tbd->block)
10ec3a: 8b 56 1c mov 0x1c(%esi),%edx
10ec3d: 3b 50 1c cmp 0x1c(%eax),%edx
10ec40: 76 0e jbe 10ec50 <rtems_bdbuf_swapout_modified_processing+0xfc>
RTEMS_INLINE_ROUTINE void rtems_chain_insert(
rtems_chain_node *after_node,
rtems_chain_node *the_node
)
{
_Chain_Insert( after_node, the_node );
10ec42: 52 push %edx
10ec43: 52 push %edx
10ec44: 56 push %esi
10ec45: 50 push %eax
10ec46: e8 d5 49 00 00 call 113620 <_Chain_Insert>
10ec4b: 83 c4 10 add $0x10,%esp
10ec4e: eb 07 jmp 10ec57 <rtems_bdbuf_swapout_modified_processing+0x103>
{
rtems_chain_insert (tnode, node);
node = NULL;
}
else
tnode = tnode->previous;
10ec50: 8b 40 04 mov 0x4(%eax),%eax
rtems_chain_extract (node);
tnode = tnode->previous;
while (node && !rtems_chain_is_head (transfer, tnode))
10ec53: 85 f6 test %esi,%esi
10ec55: 75 04 jne 10ec5b <rtems_bdbuf_swapout_modified_processing+0x107><== ALWAYS TAKEN
10ec57: 89 fe mov %edi,%esi
10ec59: eb 09 jmp 10ec64 <rtems_bdbuf_swapout_modified_processing+0x110>
10ec5b: 3b 45 dc cmp -0x24(%ebp),%eax
10ec5e: 75 da jne 10ec3a <rtems_bdbuf_swapout_modified_processing+0xe6>
10ec60: eb 0d jmp 10ec6f <rtems_bdbuf_swapout_modified_processing+0x11b>
node = next_node;
}
else
{
node = node->next;
10ec62: 8b 36 mov (%esi),%esi
if (sync_active && (*dev == BDBUF_INVALID_DEV))
sync_all = true;
else
sync_all = false;
while (!rtems_chain_is_tail (chain, node))
10ec64: 3b 75 e4 cmp -0x1c(%ebp),%esi
10ec67: 0f 85 32 ff ff ff jne 10eb9f <rtems_bdbuf_swapout_modified_processing+0x4b>
10ec6d: eb 12 jmp 10ec81 <rtems_bdbuf_swapout_modified_processing+0x12d>
RTEMS_INLINE_ROUTINE void _Chain_Prepend(
Chain_Control *the_chain,
Chain_Node *the_node
)
{
_Chain_Insert(_Chain_Head(the_chain), the_node);
10ec6f: 50 push %eax
10ec70: 50 push %eax
10ec71: 56 push %esi
10ec72: ff 75 dc pushl -0x24(%ebp)
10ec75: e8 a6 49 00 00 call 113620 <_Chain_Insert>
10ec7a: 89 fe mov %edi,%esi
10ec7c: 83 c4 10 add $0x10,%esp
10ec7f: eb e3 jmp 10ec64 <rtems_bdbuf_swapout_modified_processing+0x110>
{
node = node->next;
}
}
}
}
10ec81: 8d 65 f4 lea -0xc(%ebp),%esp
10ec84: 5b pop %ebx
10ec85: 5e pop %esi
10ec86: 5f pop %edi
10ec87: c9 leave
10ec88: c3 ret
0010fcb6 <rtems_bdbuf_swapout_task>:
* not this.
* @return rtems_task Not used.
*/
static rtems_task
rtems_bdbuf_swapout_task (rtems_task_argument arg)
{
10fcb6: 55 push %ebp
10fcb7: 89 e5 mov %esp,%ebp
10fcb9: 57 push %edi
10fcba: 56 push %esi
10fcbb: 53 push %ebx
10fcbc: 83 ec 4c sub $0x4c,%esp
rtems_bdbuf_swapout_transfer transfer;
uint32_t period_in_ticks;
const uint32_t period_in_msecs = bdbuf_config.swapout_period;;
uint32_t timer_delta;
transfer.write_req = rtems_bdbuf_swapout_writereq_alloc ();
10fcbf: e8 76 f7 ff ff call 10f43a <rtems_bdbuf_swapout_writereq_alloc>
10fcc4: 89 45 dc mov %eax,-0x24(%ebp)
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
10fcc7: 8d 45 c4 lea -0x3c(%ebp),%eax
10fcca: 8d 55 c8 lea -0x38(%ebp),%edx
10fccd: 89 55 c4 mov %edx,-0x3c(%ebp)
the_chain->permanent_null = NULL;
10fcd0: c7 45 c8 00 00 00 00 movl $0x0,-0x38(%ebp)
the_chain->last = _Chain_Head(the_chain);
10fcd7: 89 45 cc mov %eax,-0x34(%ebp)
rtems_chain_initialize_empty (&transfer.bds);
transfer.dev = BDBUF_INVALID_DEV;
10fcda: c7 45 d0 ff ff ff ff movl $0xffffffff,-0x30(%ebp)
10fce1: c7 45 d4 ff ff ff ff movl $0xffffffff,-0x2c(%ebp)
transfer.syncing = false;
10fce8: c6 45 d8 00 movb $0x0,-0x28(%ebp)
/*
* Localise the period.
*/
period_in_ticks = RTEMS_MICROSECONDS_TO_TICKS (period_in_msecs * 1000);
10fcec: 69 05 b4 1c 12 00 e8 imul $0x3e8,0x121cb4,%eax
10fcf3: 03 00 00
10fcf6: 31 d2 xor %edx,%edx
10fcf8: f7 35 ec 51 12 00 divl 0x1251ec
10fcfe: 89 45 ac mov %eax,-0x54(%ebp)
rtems_bdbuf_swapout_workers_open (void)
{
rtems_status_code sc;
size_t w;
rtems_bdbuf_lock_cache ();
10fd01: e8 0e ee ff ff call 10eb14 <rtems_bdbuf_lock_cache>
rtems_chain_initialize_empty (&worker->transfer.bds);
worker->transfer.dev = BDBUF_INVALID_DEV;
sc = rtems_task_create (rtems_build_name('B', 'D', 'o', 'a' + w),
(bdbuf_config.swapout_priority ?
10fd06: 8b 3d b0 1c 12 00 mov 0x121cb0,%edi
10fd0c: 31 f6 xor %esi,%esi
10fd0e: e9 bb 00 00 00 jmp 10fdce <rtems_bdbuf_swapout_task+0x118>
for (w = 0; w < bdbuf_config.swapout_workers; w++)
{
rtems_bdbuf_swapout_worker* worker;
worker = malloc (sizeof (rtems_bdbuf_swapout_worker));
10fd13: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10fd16: 6a 30 push $0x30 <== NOT EXECUTED
10fd18: e8 0b 89 ff ff call 108628 <malloc> <== NOT EXECUTED
10fd1d: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (!worker)
10fd1f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10fd22: 85 c0 test %eax,%eax <== NOT EXECUTED
10fd24: 75 0a jne 10fd30 <rtems_bdbuf_swapout_task+0x7a><== NOT EXECUTED
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_SO_NOMEM);
10fd26: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10fd29: 68 15 00 00 42 push $0x42000015 <== NOT EXECUTED
10fd2e: eb 78 jmp 10fda8 <rtems_bdbuf_swapout_task+0xf2><== NOT EXECUTED
RTEMS_INLINE_ROUTINE void rtems_chain_append(
rtems_chain_control *the_chain,
rtems_chain_node *the_node
)
{
_Chain_Append( the_chain, the_node );
10fd30: 51 push %ecx <== NOT EXECUTED
10fd31: 51 push %ecx <== NOT EXECUTED
10fd32: 50 push %eax <== NOT EXECUTED
10fd33: 68 f0 8e 12 00 push $0x128ef0 <== NOT EXECUTED
10fd38: e8 cf c1 ff ff call 10bf0c <_Chain_Append> <== NOT EXECUTED
rtems_chain_append (&bdbuf_cache.swapout_workers, &worker->link);
worker->enabled = true;
10fd3d: c6 43 0c 01 movb $0x1,0xc(%ebx) <== NOT EXECUTED
worker->transfer.write_req = rtems_bdbuf_swapout_writereq_alloc ();
10fd41: e8 f4 f6 ff ff call 10f43a <rtems_bdbuf_swapout_writereq_alloc><== NOT EXECUTED
10fd46: 89 43 28 mov %eax,0x28(%ebx) <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
10fd49: 8d 43 14 lea 0x14(%ebx),%eax <== NOT EXECUTED
10fd4c: 89 43 10 mov %eax,0x10(%ebx) <== NOT EXECUTED
the_chain->permanent_null = NULL;
10fd4f: c7 43 14 00 00 00 00 movl $0x0,0x14(%ebx) <== NOT EXECUTED
the_chain->last = _Chain_Head(the_chain);
10fd56: 8d 43 10 lea 0x10(%ebx),%eax <== NOT EXECUTED
10fd59: 89 43 18 mov %eax,0x18(%ebx) <== NOT EXECUTED
rtems_chain_initialize_empty (&worker->transfer.bds);
worker->transfer.dev = BDBUF_INVALID_DEV;
10fd5c: c7 43 1c ff ff ff ff movl $0xffffffff,0x1c(%ebx) <== NOT EXECUTED
10fd63: c7 43 20 ff ff ff ff movl $0xffffffff,0x20(%ebx) <== NOT EXECUTED
sc = rtems_task_create (rtems_build_name('B', 'D', 'o', 'a' + w),
10fd6a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10fd6d: 89 f8 mov %edi,%eax <== NOT EXECUTED
10fd6f: 85 ff test %edi,%edi <== NOT EXECUTED
10fd71: 75 05 jne 10fd78 <rtems_bdbuf_swapout_task+0xc2><== NOT EXECUTED
10fd73: b8 0f 00 00 00 mov $0xf,%eax <== NOT EXECUTED
10fd78: 52 push %edx <== NOT EXECUTED
10fd79: 52 push %edx <== NOT EXECUTED
10fd7a: 8d 53 08 lea 0x8(%ebx),%edx <== NOT EXECUTED
10fd7d: 52 push %edx <== NOT EXECUTED
10fd7e: 6a 00 push $0x0 <== NOT EXECUTED
10fd80: 68 00 04 00 00 push $0x400 <== NOT EXECUTED
10fd85: 68 00 20 00 00 push $0x2000 <== NOT EXECUTED
10fd8a: 50 push %eax <== NOT EXECUTED
10fd8b: 8d 46 61 lea 0x61(%esi),%eax <== NOT EXECUTED
10fd8e: 0d 00 6f 44 42 or $0x42446f00,%eax <== NOT EXECUTED
10fd93: 50 push %eax <== NOT EXECUTED
10fd94: e8 83 b9 ff ff call 10b71c <rtems_task_create> <== NOT EXECUTED
RTEMS_BDBUF_SWAPOUT_TASK_PRIORITY_DEFAULT),
SWAPOUT_TASK_STACK_SIZE,
RTEMS_PREEMPT | RTEMS_NO_TIMESLICE | RTEMS_NO_ASR,
RTEMS_LOCAL | RTEMS_NO_FLOATING_POINT,
&worker->id);
if (sc != RTEMS_SUCCESSFUL)
10fd99: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
10fd9c: 85 c0 test %eax,%eax <== NOT EXECUTED
10fd9e: 74 0d je 10fdad <rtems_bdbuf_swapout_task+0xf7><== NOT EXECUTED
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_SO_WK_CREATE);
10fda0: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10fda3: 68 16 00 00 42 push $0x42000016 <== NOT EXECUTED
10fda8: e8 47 bd ff ff call 10baf4 <rtems_fatal_error_occurred><== NOT EXECUTED
sc = rtems_task_start (worker->id,
10fdad: 50 push %eax <== NOT EXECUTED
10fdae: 53 push %ebx <== NOT EXECUTED
10fdaf: 68 bb ff 10 00 push $0x10ffbb <== NOT EXECUTED
10fdb4: ff 73 08 pushl 0x8(%ebx) <== NOT EXECUTED
10fdb7: e8 88 bb ff ff call 10b944 <rtems_task_start> <== NOT EXECUTED
rtems_bdbuf_swapout_worker_task,
(rtems_task_argument) worker);
if (sc != RTEMS_SUCCESSFUL)
10fdbc: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10fdbf: 85 c0 test %eax,%eax <== NOT EXECUTED
10fdc1: 74 0a je 10fdcd <rtems_bdbuf_swapout_task+0x117><== NOT EXECUTED
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_SO_WK_START);
10fdc3: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10fdc6: 68 17 00 00 42 push $0x42000017 <== NOT EXECUTED
10fdcb: eb db jmp 10fda8 <rtems_bdbuf_swapout_task+0xf2><== NOT EXECUTED
rtems_status_code sc;
size_t w;
rtems_bdbuf_lock_cache ();
for (w = 0; w < bdbuf_config.swapout_workers; w++)
10fdcd: 46 inc %esi <== NOT EXECUTED
10fdce: 3b 35 bc 1c 12 00 cmp 0x121cbc,%esi
10fdd4: 0f 82 39 ff ff ff jb 10fd13 <rtems_bdbuf_swapout_task+0x5d><== NEVER TAKEN
(rtems_task_argument) worker);
if (sc != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_SO_WK_START);
}
rtems_bdbuf_unlock_cache ();
10fdda: e8 aa ee ff ff call 10ec89 <rtems_bdbuf_unlock_cache>
/*
* Create the worker threads.
*/
rtems_bdbuf_swapout_workers_open ();
while (bdbuf_cache.swapout_enabled)
10fddf: e9 79 01 00 00 jmp 10ff5d <rtems_bdbuf_swapout_task+0x2a7>
10fde4: bf 01 00 00 00 mov $0x1,%edi
rtems_bdbuf_swapout_transfer* transfer)
{
rtems_bdbuf_swapout_worker* worker;
bool transfered_buffers = false;
rtems_bdbuf_lock_cache ();
10fde9: e8 26 ed ff ff call 10eb14 <rtems_bdbuf_lock_cache>
* here. We do not know the worker is the last in a sequence of sync writes
* until after we have it running so we do not know to tell it to release the
* lock. The simplest solution is to get the main swap out task perform all
* sync operations.
*/
if (bdbuf_cache.sync_active)
10fdee: a0 18 8f 12 00 mov 0x128f18,%al
10fdf3: 84 c0 test %al,%al
10fdf5: 74 07 je 10fdfe <rtems_bdbuf_swapout_task+0x148>
10fdf7: 31 f6 xor %esi,%esi
10fdf9: 8d 5d c4 lea -0x3c(%ebp),%ebx
10fdfc: eb 1c jmp 10fe1a <rtems_bdbuf_swapout_task+0x164>
*/
RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get(
rtems_chain_control *the_chain
)
{
return _Chain_Get( the_chain );
10fdfe: 83 ec 0c sub $0xc,%esp
10fe01: 68 f0 8e 12 00 push $0x128ef0
10fe06: e8 3d c1 ff ff call 10bf48 <_Chain_Get>
10fe0b: 89 c6 mov %eax,%esi
worker = NULL;
else
{
worker = (rtems_bdbuf_swapout_worker*)
rtems_chain_get (&bdbuf_cache.swapout_workers);
if (worker)
10fe0d: 83 c4 10 add $0x10,%esp
10fe10: 8d 5d c4 lea -0x3c(%ebp),%ebx
10fe13: 85 c0 test %eax,%eax
10fe15: 74 03 je 10fe1a <rtems_bdbuf_swapout_task+0x164><== ALWAYS TAKEN
transfer = &worker->transfer;
10fe17: 8d 58 10 lea 0x10(%eax),%ebx <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
10fe1a: 8d 43 04 lea 0x4(%ebx),%eax
10fe1d: 89 45 b0 mov %eax,-0x50(%ebp)
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
10fe20: 89 03 mov %eax,(%ebx)
the_chain->permanent_null = NULL;
10fe22: c7 43 04 00 00 00 00 movl $0x0,0x4(%ebx)
the_chain->last = _Chain_Head(the_chain);
10fe29: 89 5b 08 mov %ebx,0x8(%ebx)
}
rtems_chain_initialize_empty (&transfer->bds);
transfer->dev = BDBUF_INVALID_DEV;
10fe2c: c7 43 0c ff ff ff ff movl $0xffffffff,0xc(%ebx)
10fe33: c7 43 10 ff ff ff ff movl $0xffffffff,0x10(%ebx)
transfer->syncing = bdbuf_cache.sync_active;
10fe3a: a0 18 8f 12 00 mov 0x128f18,%al
10fe3f: 88 43 14 mov %al,0x14(%ebx)
/*
* When the sync is for a device limit the sync to that device. If the sync
* is for a buffer handle process the devices in the order on the sync
* list. This means the dev is BDBUF_INVALID_DEV.
*/
if (bdbuf_cache.sync_active)
10fe42: a0 18 8f 12 00 mov 0x128f18,%al
10fe47: 84 c0 test %al,%al
10fe49: 74 11 je 10fe5c <rtems_bdbuf_swapout_task+0x1a6>
transfer->dev = bdbuf_cache.sync_device;
10fe4b: a1 20 8f 12 00 mov 0x128f20,%eax
10fe50: 8b 15 24 8f 12 00 mov 0x128f24,%edx
10fe56: 89 43 0c mov %eax,0xc(%ebx)
10fe59: 89 53 10 mov %edx,0x10(%ebx)
/*
* If we have any buffers in the sync queue move them to the modified
* list. The first sync buffer will select the device we use.
*/
rtems_bdbuf_swapout_modified_processing (&transfer->dev,
10fe5c: 8d 53 0c lea 0xc(%ebx),%edx
10fe5f: 89 55 b4 mov %edx,-0x4c(%ebp)
10fe62: 51 push %ecx
10fe63: ff 35 b4 1c 12 00 pushl 0x121cb4
10fe69: 6a 00 push $0x0
10fe6b: 6a 01 push $0x1
10fe6d: 89 d9 mov %ebx,%ecx
10fe6f: ba 44 8f 12 00 mov $0x128f44,%edx
10fe74: 8b 45 b4 mov -0x4c(%ebp),%eax
10fe77: e8 d8 ec ff ff call 10eb54 <rtems_bdbuf_swapout_modified_processing>
* Process the cache's modified list.
*/
rtems_bdbuf_swapout_modified_processing (&transfer->dev,
&bdbuf_cache.modified,
&transfer->bds,
bdbuf_cache.sync_active,
10fe7c: a0 18 8f 12 00 mov 0x128f18,%al
timer_delta);
/*
* Process the cache's modified list.
*/
rtems_bdbuf_swapout_modified_processing (&transfer->dev,
10fe81: 83 c4 0c add $0xc,%esp
10fe84: ff 35 b4 1c 12 00 pushl 0x121cb4
10fe8a: 81 e7 ff 00 00 00 and $0xff,%edi
10fe90: 57 push %edi
10fe91: 0f b6 c0 movzbl %al,%eax
10fe94: 50 push %eax
10fe95: 89 d9 mov %ebx,%ecx
10fe97: ba 38 8f 12 00 mov $0x128f38,%edx
10fe9c: 8b 45 b4 mov -0x4c(%ebp),%eax
10fe9f: e8 b0 ec ff ff call 10eb54 <rtems_bdbuf_swapout_modified_processing>
/*
* We have all the buffers that have been modified for this device so the
* cache can be unlocked because the state of each buffer has been set to
* TRANSFER.
*/
rtems_bdbuf_unlock_cache ();
10fea4: e8 e0 ed ff ff call 10ec89 <rtems_bdbuf_unlock_cache>
/*
* If there are buffers to transfer to the media transfer them.
*/
if (!rtems_chain_is_empty (&transfer->bds))
10fea9: 83 c4 10 add $0x10,%esp
10feac: 31 c0 xor %eax,%eax
10feae: 8b 55 b0 mov -0x50(%ebp),%edx
10feb1: 39 13 cmp %edx,(%ebx)
10feb3: 74 2d je 10fee2 <rtems_bdbuf_swapout_task+0x22c>
{
if (worker)
10feb5: 85 f6 test %esi,%esi
10feb7: 74 20 je 10fed9 <rtems_bdbuf_swapout_task+0x223><== ALWAYS TAKEN
{
rtems_status_code sc = rtems_event_send (worker->id,
10feb9: 52 push %edx <== NOT EXECUTED
10feba: 52 push %edx <== NOT EXECUTED
10febb: 6a 04 push $0x4 <== NOT EXECUTED
10febd: ff 76 08 pushl 0x8(%esi) <== NOT EXECUTED
10fec0: e8 73 b2 ff ff call 10b138 <rtems_event_send> <== NOT EXECUTED
RTEMS_BDBUF_SWAPOUT_SYNC);
if (sc != RTEMS_SUCCESSFUL)
10fec5: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10fec8: 85 c0 test %eax,%eax <== NOT EXECUTED
10feca: 74 14 je 10fee0 <rtems_bdbuf_swapout_task+0x22a><== NOT EXECUTED
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_SO_WAKE);
10fecc: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10fecf: 68 14 00 00 42 push $0x42000014 <== NOT EXECUTED
10fed4: e9 cf fe ff ff jmp 10fda8 <rtems_bdbuf_swapout_task+0xf2><== NOT EXECUTED
}
else
{
rtems_bdbuf_swapout_write (transfer);
10fed9: 89 d8 mov %ebx,%eax
10fedb: e8 a2 fc ff ff call 10fb82 <rtems_bdbuf_swapout_write>
10fee0: b0 01 mov $0x1,%al
}
transfered_buffers = true;
}
if (bdbuf_cache.sync_active && !transfered_buffers)
10fee2: 8a 15 18 8f 12 00 mov 0x128f18,%dl
10fee8: 84 d2 test %dl,%dl
10feea: 74 3e je 10ff2a <rtems_bdbuf_swapout_task+0x274>
10feec: 31 ff xor %edi,%edi
10feee: 84 c0 test %al,%al
10fef0: 0f 85 f3 fe ff ff jne 10fde9 <rtems_bdbuf_swapout_task+0x133>
{
rtems_id sync_requester;
rtems_bdbuf_lock_cache ();
10fef6: e8 19 ec ff ff call 10eb14 <rtems_bdbuf_lock_cache>
sync_requester = bdbuf_cache.sync_requester;
10fefb: 8b 1d 1c 8f 12 00 mov 0x128f1c,%ebx
bdbuf_cache.sync_active = false;
10ff01: c6 05 18 8f 12 00 00 movb $0x0,0x128f18
bdbuf_cache.sync_requester = 0;
10ff08: c7 05 1c 8f 12 00 00 movl $0x0,0x128f1c
10ff0f: 00 00 00
rtems_bdbuf_unlock_cache ();
10ff12: e8 72 ed ff ff call 10ec89 <rtems_bdbuf_unlock_cache>
if (sync_requester)
10ff17: 85 db test %ebx,%ebx
10ff19: 74 19 je 10ff34 <rtems_bdbuf_swapout_task+0x27e><== NEVER TAKEN
rtems_event_send (sync_requester, RTEMS_BDBUF_TRANSFER_SYNC);
10ff1b: 50 push %eax
10ff1c: 50 push %eax
10ff1d: 6a 02 push $0x2
10ff1f: 53 push %ebx
10ff20: e8 13 b2 ff ff call 10b138 <rtems_event_send>
10ff25: 83 c4 10 add $0x10,%esp
10ff28: eb 0a jmp 10ff34 <rtems_bdbuf_swapout_task+0x27e>
10ff2a: 31 ff xor %edi,%edi
/*
* Extact all the buffers we find for a specific device. The device is
* the first one we find on a modified list. Process the sync queue of
* buffers first.
*/
if (rtems_bdbuf_swapout_processing (timer_delta,
10ff2c: 84 c0 test %al,%al
10ff2e: 0f 85 b5 fe ff ff jne 10fde9 <rtems_bdbuf_swapout_task+0x133>
*/
update_timers = false;
}
while (transfered_buffers);
sc = rtems_event_receive (RTEMS_BDBUF_SWAPOUT_SYNC,
10ff34: 8d 45 e4 lea -0x1c(%ebp),%eax
10ff37: 50 push %eax
10ff38: ff 75 ac pushl -0x54(%ebp)
10ff3b: 6a 00 push $0x0
10ff3d: 6a 04 push $0x4
10ff3f: e8 94 b0 ff ff call 10afd8 <rtems_event_receive>
RTEMS_EVENT_ALL | RTEMS_WAIT,
period_in_ticks,
&out);
if ((sc != RTEMS_SUCCESSFUL) && (sc != RTEMS_TIMEOUT))
10ff44: 83 c4 10 add $0x10,%esp
10ff47: 83 f8 06 cmp $0x6,%eax
10ff4a: 74 11 je 10ff5d <rtems_bdbuf_swapout_task+0x2a7>
10ff4c: 85 c0 test %eax,%eax
10ff4e: 74 0d je 10ff5d <rtems_bdbuf_swapout_task+0x2a7><== ALWAYS TAKEN
rtems_fatal_error_occurred (BLKDEV_FATAL_BDBUF_SWAPOUT_RE);
10ff50: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10ff53: 68 18 00 00 42 push $0x42000018 <== NOT EXECUTED
10ff58: e9 4b fe ff ff jmp 10fda8 <rtems_bdbuf_swapout_task+0xf2><== NOT EXECUTED
/*
* Create the worker threads.
*/
rtems_bdbuf_swapout_workers_open ();
while (bdbuf_cache.swapout_enabled)
10ff5d: a0 ec 8e 12 00 mov 0x128eec,%al
10ff62: 84 c0 test %al,%al
10ff64: 0f 85 7a fe ff ff jne 10fde4 <rtems_bdbuf_swapout_task+0x12e><== ALWAYS TAKEN
static void
rtems_bdbuf_swapout_workers_close (void)
{
rtems_chain_node* node;
rtems_bdbuf_lock_cache ();
10ff6a: e8 a5 eb ff ff call 10eb14 <rtems_bdbuf_lock_cache><== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(
Chain_Control *the_chain
)
{
return the_chain->first;
10ff6f: 8b 1d f0 8e 12 00 mov 0x128ef0,%ebx <== NOT EXECUTED
10ff75: eb 15 jmp 10ff8c <rtems_bdbuf_swapout_task+0x2d6><== NOT EXECUTED
node = rtems_chain_first (&bdbuf_cache.swapout_workers);
while (!rtems_chain_is_tail (&bdbuf_cache.swapout_workers, node))
{
rtems_bdbuf_swapout_worker* worker = (rtems_bdbuf_swapout_worker*) node;
worker->enabled = false;
10ff77: c6 43 0c 00 movb $0x0,0xc(%ebx) <== NOT EXECUTED
rtems_event_send (worker->id, RTEMS_BDBUF_SWAPOUT_SYNC);
10ff7b: 57 push %edi <== NOT EXECUTED
10ff7c: 57 push %edi <== NOT EXECUTED
10ff7d: 6a 04 push $0x4 <== NOT EXECUTED
10ff7f: ff 73 08 pushl 0x8(%ebx) <== NOT EXECUTED
10ff82: e8 b1 b1 ff ff call 10b138 <rtems_event_send> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Next(
Chain_Node *the_node
)
{
return the_node->next;
10ff87: 8b 1b mov (%ebx),%ebx <== NOT EXECUTED
10ff89: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
10ff8c: 81 fb f4 8e 12 00 cmp $0x128ef4,%ebx <== NOT EXECUTED
10ff92: 75 e3 jne 10ff77 <rtems_bdbuf_swapout_task+0x2c1><== NOT EXECUTED
node = rtems_chain_next (node);
}
rtems_bdbuf_unlock_cache ();
10ff94: e8 f0 ec ff ff call 10ec89 <rtems_bdbuf_unlock_cache><== NOT EXECUTED
rtems_fatal_error_occurred (BLKDEV_FATAL_BDBUF_SWAPOUT_RE);
}
rtems_bdbuf_swapout_workers_close ();
free (transfer.write_req);
10ff99: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10ff9c: ff 75 dc pushl -0x24(%ebp) <== NOT EXECUTED
10ff9f: e8 e4 83 ff ff call 108388 <free> <== NOT EXECUTED
rtems_task_delete (RTEMS_SELF);
10ffa4: c7 04 24 00 00 00 00 movl $0x0,(%esp) <== NOT EXECUTED
10ffab: e8 9c b8 ff ff call 10b84c <rtems_task_delete> <== NOT EXECUTED
10ffb0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
10ffb3: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
10ffb6: 5b pop %ebx <== NOT EXECUTED
10ffb7: 5e pop %esi <== NOT EXECUTED
10ffb8: 5f pop %edi <== NOT EXECUTED
10ffb9: c9 leave <== NOT EXECUTED
10ffba: c3 ret <== NOT EXECUTED
0010ffbb <rtems_bdbuf_swapout_worker_task>:
* @param arg A pointer to the worker thread's private data.
* @return rtems_task Not used.
*/
static rtems_task
rtems_bdbuf_swapout_worker_task (rtems_task_argument arg)
{
10ffbb: 55 push %ebp <== NOT EXECUTED
10ffbc: 89 e5 mov %esp,%ebp <== NOT EXECUTED
10ffbe: 57 push %edi <== NOT EXECUTED
10ffbf: 56 push %esi <== NOT EXECUTED
10ffc0: 53 push %ebx <== NOT EXECUTED
10ffc1: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10ffc4: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
while (worker->enabled)
{
rtems_bdbuf_wait_for_event (RTEMS_BDBUF_SWAPOUT_SYNC);
rtems_bdbuf_swapout_write (&worker->transfer);
10ffc7: 8d 73 10 lea 0x10(%ebx),%esi <== NOT EXECUTED
10ffca: 8d 7b 14 lea 0x14(%ebx),%edi <== NOT EXECUTED
static rtems_task
rtems_bdbuf_swapout_worker_task (rtems_task_argument arg)
{
rtems_bdbuf_swapout_worker* worker = (rtems_bdbuf_swapout_worker*) arg;
while (worker->enabled)
10ffcd: eb 46 jmp 110015 <rtems_bdbuf_swapout_worker_task+0x5a><== NOT EXECUTED
{
rtems_bdbuf_wait_for_event (RTEMS_BDBUF_SWAPOUT_SYNC);
10ffcf: b8 04 00 00 00 mov $0x4,%eax <== NOT EXECUTED
10ffd4: e8 cd ee ff ff call 10eea6 <rtems_bdbuf_wait_for_event><== NOT EXECUTED
rtems_bdbuf_swapout_write (&worker->transfer);
10ffd9: 89 f0 mov %esi,%eax <== NOT EXECUTED
10ffdb: e8 a2 fb ff ff call 10fb82 <rtems_bdbuf_swapout_write><== NOT EXECUTED
rtems_bdbuf_lock_cache ();
10ffe0: e8 2f eb ff ff call 10eb14 <rtems_bdbuf_lock_cache><== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
10ffe5: 89 7b 10 mov %edi,0x10(%ebx) <== NOT EXECUTED
the_chain->permanent_null = NULL;
10ffe8: c7 43 14 00 00 00 00 movl $0x0,0x14(%ebx) <== NOT EXECUTED
the_chain->last = _Chain_Head(the_chain);
10ffef: 89 73 18 mov %esi,0x18(%ebx) <== NOT EXECUTED
rtems_chain_initialize_empty (&worker->transfer.bds);
worker->transfer.dev = BDBUF_INVALID_DEV;
10fff2: c7 43 1c ff ff ff ff movl $0xffffffff,0x1c(%ebx) <== NOT EXECUTED
10fff9: c7 43 20 ff ff ff ff movl $0xffffffff,0x20(%ebx) <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void rtems_chain_append(
rtems_chain_control *the_chain,
rtems_chain_node *the_node
)
{
_Chain_Append( the_chain, the_node );
110000: 50 push %eax <== NOT EXECUTED
110001: 50 push %eax <== NOT EXECUTED
110002: 53 push %ebx <== NOT EXECUTED
110003: 68 f0 8e 12 00 push $0x128ef0 <== NOT EXECUTED
110008: e8 ff be ff ff call 10bf0c <_Chain_Append> <== NOT EXECUTED
rtems_chain_append (&bdbuf_cache.swapout_workers, &worker->link);
rtems_bdbuf_unlock_cache ();
11000d: e8 77 ec ff ff call 10ec89 <rtems_bdbuf_unlock_cache><== NOT EXECUTED
110012: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
static rtems_task
rtems_bdbuf_swapout_worker_task (rtems_task_argument arg)
{
rtems_bdbuf_swapout_worker* worker = (rtems_bdbuf_swapout_worker*) arg;
while (worker->enabled)
110015: 8a 43 0c mov 0xc(%ebx),%al <== NOT EXECUTED
110018: 84 c0 test %al,%al <== NOT EXECUTED
11001a: 75 b3 jne 10ffcf <rtems_bdbuf_swapout_worker_task+0x14><== NOT EXECUTED
rtems_chain_append (&bdbuf_cache.swapout_workers, &worker->link);
rtems_bdbuf_unlock_cache ();
}
free (worker->transfer.write_req);
11001c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
11001f: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
110022: e8 61 83 ff ff call 108388 <free> <== NOT EXECUTED
free (worker);
110027: 89 1c 24 mov %ebx,(%esp) <== NOT EXECUTED
11002a: e8 59 83 ff ff call 108388 <free> <== NOT EXECUTED
rtems_task_delete (RTEMS_SELF);
11002f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
110032: c7 45 08 00 00 00 00 movl $0x0,0x8(%ebp) <== NOT EXECUTED
}
110039: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
11003c: 5b pop %ebx <== NOT EXECUTED
11003d: 5e pop %esi <== NOT EXECUTED
11003e: 5f pop %edi <== NOT EXECUTED
11003f: c9 leave <== NOT EXECUTED
}
free (worker->transfer.write_req);
free (worker);
rtems_task_delete (RTEMS_SELF);
110040: e9 07 b8 ff ff jmp 10b84c <rtems_task_delete> <== NOT EXECUTED
0010fb82 <rtems_bdbuf_swapout_write>:
*
* @param transfer The transfer transaction.
*/
static void
rtems_bdbuf_swapout_write (rtems_bdbuf_swapout_transfer* transfer)
{
10fb82: 55 push %ebp
10fb83: 89 e5 mov %esp,%ebp
10fb85: 57 push %edi
10fb86: 56 push %esi
10fb87: 53 push %ebx
10fb88: 83 ec 1c sub $0x1c,%esp
10fb8b: 89 c3 mov %eax,%ebx
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
10fb8d: 8d 78 04 lea 0x4(%eax),%edi
printf ("bdbuf:swapout transfer: %08x\n", (unsigned) transfer->dev);
/*
* If there are buffers to transfer to the media transfer them.
*/
if (!rtems_chain_is_empty (&transfer->bds))
10fb90: 39 38 cmp %edi,(%eax)
10fb92: 0f 84 16 01 00 00 je 10fcae <rtems_bdbuf_swapout_write+0x12c><== NEVER TAKEN
/*
* Obtain the disk device. The cache's mutex has been released to avoid a
* dead lock.
*/
rtems_disk_device *dd = rtems_disk_obtain (transfer->dev);
10fb98: 56 push %esi
10fb99: 56 push %esi
10fb9a: ff 70 10 pushl 0x10(%eax)
10fb9d: ff 70 0c pushl 0xc(%eax)
10fba0: e8 3c 7a ff ff call 1075e1 <rtems_disk_obtain>
10fba5: 89 c6 mov %eax,%esi
if (dd == NULL)
10fba7: 83 c4 10 add $0x10,%esp
10fbaa: 85 c0 test %eax,%eax
10fbac: 75 05 jne 10fbb3 <rtems_bdbuf_swapout_write+0x31>
10fbae: be 64 6f 12 00 mov $0x126f64,%esi
dd = &null_disk;
bufs_per_bd = dd->block_size / bdbuf_config.buffer_min;
10fbb3: 8b 46 20 mov 0x20(%esi),%eax
10fbb6: 31 d2 xor %edx,%edx
10fbb8: f7 35 c8 1c 12 00 divl 0x121cc8
10fbbe: 89 45 e0 mov %eax,-0x20(%ebp)
* should be possible to make this change with little effect in this
* code. The array that is passed is broken in design and should be
* removed. Merging members of a struct into the first member is
* trouble waiting to happen.
*/
transfer->write_req->status = RTEMS_RESOURCE_IN_USE;
10fbc1: 8b 43 18 mov 0x18(%ebx),%eax
10fbc4: c7 40 0c 0c 00 00 00 movl $0xc,0xc(%eax)
transfer->write_req->bufnum = 0;
10fbcb: c7 40 10 00 00 00 00 movl $0x0,0x10(%eax)
* Perform the transfer if there are no more buffers, or the transfer
* size has reached the configured max. value.
*/
if (rtems_chain_is_empty (&transfer->bds) ||
(transfer->write_req->bufnum >= bdbuf_config.max_write_blocks))
10fbd2: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp)
* trouble waiting to happen.
*/
transfer->write_req->status = RTEMS_RESOURCE_IN_USE;
transfer->write_req->bufnum = 0;
while ((node = rtems_chain_get(&transfer->bds)) != NULL)
10fbd9: e9 8d 00 00 00 jmp 10fc6b <rtems_bdbuf_swapout_write+0xe9>
printf ("bdbuf:swapout write: bd:%" PRIu32 ", bufnum:%" PRIu32 " mode:%s\n",
bd->block, transfer->write_req->bufnum,
dd->phys_dev->capabilities &
RTEMS_BLKDEV_CAP_MULTISECTOR_CONT ? "MULIT" : "SCAT");
if ((dd->phys_dev->capabilities & RTEMS_BLKDEV_CAP_MULTISECTOR_CONT) &&
10fbde: 8b 56 08 mov 0x8(%esi),%edx
10fbe1: f6 42 0c 01 testb $0x1,0xc(%edx)
10fbe5: 74 24 je 10fc0b <rtems_bdbuf_swapout_write+0x89><== ALWAYS TAKEN
transfer->write_req->bufnum &&
10fbe7: 8b 53 18 mov 0x18(%ebx),%edx <== NOT EXECUTED
10fbea: 83 7a 10 00 cmpl $0x0,0x10(%edx) <== NOT EXECUTED
10fbee: 74 1b je 10fc0b <rtems_bdbuf_swapout_write+0x89><== NOT EXECUTED
(bd->block != (last_block + bufs_per_bd)))
10fbf0: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
10fbf3: 03 55 e0 add -0x20(%ebp),%edx <== NOT EXECUTED
10fbf6: 39 50 1c cmp %edx,0x1c(%eax) <== NOT EXECUTED
10fbf9: 74 10 je 10fc0b <rtems_bdbuf_swapout_write+0x89><== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Chain_Prepend(
Chain_Control *the_chain,
Chain_Node *the_node
)
{
_Chain_Insert(_Chain_Head(the_chain), the_node);
10fbfb: 51 push %ecx <== NOT EXECUTED
10fbfc: 51 push %ecx <== NOT EXECUTED
10fbfd: 50 push %eax <== NOT EXECUTED
10fbfe: 53 push %ebx <== NOT EXECUTED
10fbff: e8 1c 3a 00 00 call 113620 <_Chain_Insert> <== NOT EXECUTED
10fc04: b0 01 mov $0x1,%al <== NOT EXECUTED
printf ("bdbuf:swapout write: bd:%" PRIu32 ", bufnum:%" PRIu32 " mode:%s\n",
bd->block, transfer->write_req->bufnum,
dd->phys_dev->capabilities &
RTEMS_BLKDEV_CAP_MULTISECTOR_CONT ? "MULIT" : "SCAT");
if ((dd->phys_dev->capabilities & RTEMS_BLKDEV_CAP_MULTISECTOR_CONT) &&
10fc06: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10fc09: eb 2d jmp 10fc38 <rtems_bdbuf_swapout_write+0xb6><== NOT EXECUTED
write = true;
}
else
{
rtems_blkdev_sg_buffer* buf;
buf = &transfer->write_req->bufs[transfer->write_req->bufnum];
10fc0b: 8b 4b 18 mov 0x18(%ebx),%ecx
10fc0e: 8b 51 10 mov 0x10(%ecx),%edx
transfer->write_req->bufnum++;
10fc11: 42 inc %edx
10fc12: 89 51 10 mov %edx,0x10(%ecx)
buf->user = bd;
10fc15: c1 e2 04 shl $0x4,%edx
10fc18: 8d 14 11 lea (%ecx,%edx,1),%edx
10fc1b: 89 42 14 mov %eax,0x14(%edx)
buf->block = bd->block;
10fc1e: 8b 48 1c mov 0x1c(%eax),%ecx
10fc21: 89 4a 08 mov %ecx,0x8(%edx)
buf->length = dd->block_size;
10fc24: 8b 4e 20 mov 0x20(%esi),%ecx
10fc27: 89 4a 0c mov %ecx,0xc(%edx)
buf->buffer = bd->buffer;
10fc2a: 8b 48 20 mov 0x20(%eax),%ecx
10fc2d: 89 4a 10 mov %ecx,0x10(%edx)
last_block = bd->block;
10fc30: 8b 40 1c mov 0x1c(%eax),%eax
10fc33: 89 45 e4 mov %eax,-0x1c(%ebp)
10fc36: 31 c0 xor %eax,%eax
/*
* Perform the transfer if there are no more buffers, or the transfer
* size has reached the configured max. value.
*/
if (rtems_chain_is_empty (&transfer->bds) ||
10fc38: 39 3b cmp %edi,(%ebx)
10fc3a: 74 12 je 10fc4e <rtems_bdbuf_swapout_write+0xcc>
(transfer->write_req->bufnum >= bdbuf_config.max_write_blocks))
10fc3c: 8b 53 18 mov 0x18(%ebx),%edx
10fc3f: 8b 0d ac 1c 12 00 mov 0x121cac,%ecx
10fc45: 39 4a 10 cmp %ecx,0x10(%edx)
10fc48: 73 04 jae 10fc4e <rtems_bdbuf_swapout_write+0xcc>
write = true;
if (write)
10fc4a: 84 c0 test %al,%al
10fc4c: 74 1d je 10fc6b <rtems_bdbuf_swapout_write+0xe9><== ALWAYS TAKEN
{
rtems_bdbuf_execute_transfer_request (dd, transfer->write_req, false);
10fc4e: 8b 53 18 mov 0x18(%ebx),%edx
10fc51: 31 c9 xor %ecx,%ecx
10fc53: 89 f0 mov %esi,%eax
10fc55: e8 48 fe ff ff call 10faa2 <rtems_bdbuf_execute_transfer_request>
transfer->write_req->status = RTEMS_RESOURCE_IN_USE;
10fc5a: 8b 43 18 mov 0x18(%ebx),%eax
10fc5d: c7 40 0c 0c 00 00 00 movl $0xc,0xc(%eax)
transfer->write_req->bufnum = 0;
10fc64: c7 40 10 00 00 00 00 movl $0x0,0x10(%eax)
*/
RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get(
rtems_chain_control *the_chain
)
{
return _Chain_Get( the_chain );
10fc6b: 83 ec 0c sub $0xc,%esp
10fc6e: 53 push %ebx
10fc6f: e8 d4 c2 ff ff call 10bf48 <_Chain_Get>
* trouble waiting to happen.
*/
transfer->write_req->status = RTEMS_RESOURCE_IN_USE;
transfer->write_req->bufnum = 0;
while ((node = rtems_chain_get(&transfer->bds)) != NULL)
10fc74: 83 c4 10 add $0x10,%esp
10fc77: 85 c0 test %eax,%eax
10fc79: 0f 85 5f ff ff ff jne 10fbde <rtems_bdbuf_swapout_write+0x5c>
transfer->write_req->status = RTEMS_RESOURCE_IN_USE;
transfer->write_req->bufnum = 0;
}
}
if (dd != &null_disk)
10fc7f: 81 fe 64 6f 12 00 cmp $0x126f64,%esi
10fc85: 74 27 je 10fcae <rtems_bdbuf_swapout_write+0x12c><== NEVER TAKEN
{
/*
* If sync'ing and the deivce is capability of handling a sync IO control
* call perform the call.
*/
if (transfer->syncing &&
10fc87: 80 7b 14 00 cmpb $0x0,0x14(%ebx)
10fc8b: 74 15 je 10fca2 <rtems_bdbuf_swapout_write+0x120>
(dd->phys_dev->capabilities & RTEMS_BLKDEV_CAP_SYNC))
10fc8d: 8b 46 08 mov 0x8(%esi),%eax
{
/*
* If sync'ing and the deivce is capability of handling a sync IO control
* call perform the call.
*/
if (transfer->syncing &&
10fc90: f6 40 0c 02 testb $0x2,0xc(%eax)
10fc94: 74 0c je 10fca2 <rtems_bdbuf_swapout_write+0x120><== ALWAYS TAKEN
(dd->phys_dev->capabilities & RTEMS_BLKDEV_CAP_SYNC))
{
/* int result = */ dd->ioctl (dd->phys_dev, RTEMS_BLKDEV_REQ_SYNC, NULL);
10fc96: 52 push %edx <== NOT EXECUTED
10fc97: 6a 00 push $0x0 <== NOT EXECUTED
10fc99: 6a 02 push $0x2 <== NOT EXECUTED
10fc9b: 50 push %eax <== NOT EXECUTED
10fc9c: ff 56 28 call *0x28(%esi) <== NOT EXECUTED
10fc9f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
/* How should the error be handled ? */
}
rtems_disk_release (dd);
10fca2: 83 ec 0c sub $0xc,%esp
10fca5: 56 push %esi
10fca6: e8 bd 7a ff ff call 107768 <rtems_disk_release>
10fcab: 83 c4 10 add $0x10,%esp
}
}
}
10fcae: 8d 65 f4 lea -0xc(%ebp),%esp
10fcb1: 5b pop %ebx
10fcb2: 5e pop %esi
10fcb3: 5f pop %edi
10fcb4: c9 leave
10fcb5: c3 ret
0010f43a <rtems_bdbuf_swapout_writereq_alloc>:
*
* @return rtems_blkdev_request* The write reference memory.
*/
static rtems_blkdev_request*
rtems_bdbuf_swapout_writereq_alloc (void)
{
10f43a: 55 push %ebp
10f43b: 89 e5 mov %esp,%ebp
10f43d: 53 push %ebx
10f43e: 83 ec 10 sub $0x10,%esp
* I am disappointment at finding code like this in RTEMS. The request should
* have been a rtems_chain_control. Simple, fast and less storage as the node
* is already part of the buffer structure.
*/
rtems_blkdev_request* write_req =
malloc (sizeof (rtems_blkdev_request) +
10f441: a1 ac 1c 12 00 mov 0x121cac,%eax
10f446: c1 e0 04 shl $0x4,%eax
10f449: 83 c0 18 add $0x18,%eax
10f44c: 50 push %eax
10f44d: e8 d6 91 ff ff call 108628 <malloc>
10f452: 89 c3 mov %eax,%ebx
(bdbuf_config.max_write_blocks * sizeof (rtems_blkdev_sg_buffer)));
if (!write_req)
10f454: 83 c4 10 add $0x10,%esp
10f457: 85 c0 test %eax,%eax
10f459: 75 0d jne 10f468 <rtems_bdbuf_swapout_writereq_alloc+0x2e><== ALWAYS TAKEN
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_SO_NOMEM);
10f45b: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10f45e: 68 15 00 00 42 push $0x42000015 <== NOT EXECUTED
10f463: e8 8c c6 ff ff call 10baf4 <rtems_fatal_error_occurred><== NOT EXECUTED
write_req->req = RTEMS_BLKDEV_REQ_WRITE;
10f468: c7 00 01 00 00 00 movl $0x1,(%eax)
write_req->req_done = rtems_bdbuf_transfer_done;
10f46e: c7 40 04 84 ee 10 00 movl $0x10ee84,0x4(%eax)
write_req->done_arg = write_req;
10f475: 89 43 08 mov %eax,0x8(%ebx)
write_req->io_task = rtems_task_self ();
10f478: e8 ab 3e 00 00 call 113328 <rtems_task_self>
10f47d: 89 43 14 mov %eax,0x14(%ebx)
return write_req;
}
10f480: 89 d8 mov %ebx,%eax
10f482: 8b 5d fc mov -0x4(%ebp),%ebx
10f485: c9 leave
10f486: c3 ret
00110045 <rtems_bdbuf_sync>:
return RTEMS_SUCCESSFUL;
}
rtems_status_code
rtems_bdbuf_sync (rtems_bdbuf_buffer *bd)
{
110045: 55 push %ebp
110046: 89 e5 mov %esp,%ebp
110048: 53 push %ebx
110049: 83 ec 04 sub $0x4,%esp
11004c: 8b 5d 08 mov 0x8(%ebp),%ebx
sc = rtems_bdbuf_check_bd_and_lock_cache (bd, "sync");
if (sc != RTEMS_SUCCESSFUL)
return sc;
switch (bd->state)
11004f: b8 16 00 00 00 mov $0x16,%eax
}
static rtems_status_code
rtems_bdbuf_check_bd_and_lock_cache (rtems_bdbuf_buffer *bd, const char *kind)
{
if (!bdbuf_cache.initialised)
110054: 80 3d 70 8f 12 00 00 cmpb $0x0,0x128f70
11005b: 0f 84 f4 00 00 00 je 110155 <rtems_bdbuf_sync+0x110><== NEVER TAKEN
return RTEMS_NOT_CONFIGURED;
if (bd == NULL)
110061: b0 09 mov $0x9,%al
110063: 85 db test %ebx,%ebx
110065: 0f 84 ea 00 00 00 je 110155 <rtems_bdbuf_sync+0x110><== NEVER TAKEN
if (rtems_bdbuf_tracer)
{
printf ("bdbuf:%s: %" PRIu32 "\n", kind, bd->block);
rtems_bdbuf_show_users (kind, bd);
}
rtems_bdbuf_lock_cache();
11006b: e8 a4 ea ff ff call 10eb14 <rtems_bdbuf_lock_cache>
sc = rtems_bdbuf_check_bd_and_lock_cache (bd, "sync");
if (sc != RTEMS_SUCCESSFUL)
return sc;
switch (bd->state)
110070: 8b 43 24 mov 0x24(%ebx),%eax
110073: 83 f8 03 cmp $0x3,%eax
110076: 0f 82 be 00 00 00 jb 11013a <rtems_bdbuf_sync+0xf5> <== NEVER TAKEN
11007c: 83 f8 05 cmp $0x5,%eax
11007f: 76 0e jbe 11008f <rtems_bdbuf_sync+0x4a>
110081: 83 f8 06 cmp $0x6,%eax
110084: 0f 85 b0 00 00 00 jne 11013a <rtems_bdbuf_sync+0xf5> <== NEVER TAKEN
11008a: e9 a2 00 00 00 jmp 110131 <rtems_bdbuf_sync+0xec>
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
11008f: c7 43 24 08 00 00 00 movl $0x8,0x24(%ebx)
110096: 51 push %ecx
110097: 51 push %ecx
110098: 53 push %ebx
110099: 68 44 8f 12 00 push $0x128f44
11009e: e8 69 be ff ff call 10bf0c <_Chain_Append>
{
rtems_bdbuf_set_state (bd, RTEMS_BDBUF_STATE_SYNC);
rtems_chain_append (&bdbuf_cache.sync, &bd->link);
if (bd->waiters)
1100a3: 8b 43 28 mov 0x28(%ebx),%eax
1100a6: 83 c4 10 add $0x10,%esp
1100a9: 85 c0 test %eax,%eax
1100ab: 74 0a je 1100b7 <rtems_bdbuf_sync+0x72>
rtems_bdbuf_wake (&bdbuf_cache.access_waiters);
1100ad: b8 50 8f 12 00 mov $0x128f50,%eax
1100b2: e8 70 ea ff ff call 10eb27 <rtems_bdbuf_wake>
rtems_bdbuf_wake_swapper ();
1100b7: e8 ff ec ff ff call 10edbb <rtems_bdbuf_wake_swapper>
static void
rtems_bdbuf_wait_for_sync_done (rtems_bdbuf_buffer *bd)
{
while (true)
{
switch (bd->state)
1100bc: 8b 43 24 mov 0x24(%ebx),%eax
1100bf: 83 f8 01 cmp $0x1,%eax
1100c2: 72 18 jb 1100dc <rtems_bdbuf_sync+0x97> <== NEVER TAKEN
1100c4: 83 f8 07 cmp $0x7,%eax
1100c7: 76 23 jbe 1100ec <rtems_bdbuf_sync+0xa7>
1100c9: 83 f8 0a cmp $0xa,%eax
1100cc: 77 0e ja 1100dc <rtems_bdbuf_sync+0x97> <== NEVER TAKEN
case RTEMS_BDBUF_STATE_ACCESS_PURGED:
return;
case RTEMS_BDBUF_STATE_SYNC:
case RTEMS_BDBUF_STATE_TRANSFER:
case RTEMS_BDBUF_STATE_TRANSFER_PURGED:
rtems_bdbuf_wait (bd, &bdbuf_cache.transfer_waiters);
1100ce: ba 58 8f 12 00 mov $0x128f58,%edx
1100d3: 89 d8 mov %ebx,%eax
1100d5: e8 60 ef ff ff call 10f03a <rtems_bdbuf_wait>
1100da: eb e0 jmp 1100bc <rtems_bdbuf_sync+0x77>
break;
default:
rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_STATE_9);
1100dc: 8b 43 24 mov 0x24(%ebx),%eax <== NOT EXECUTED
#endif
static void
rtems_bdbuf_fatal (rtems_bdbuf_buf_state state, uint32_t error)
{
rtems_fatal_error_occurred ((((uint32_t) state) << 16) | error);
1100df: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1100e2: c1 e0 10 shl $0x10,%eax <== NOT EXECUTED
1100e5: 0d 07 00 00 42 or $0x42000007,%eax <== NOT EXECUTED
1100ea: eb 5c jmp 110148 <rtems_bdbuf_sync+0x103><== NOT EXECUTED
/*
* We may have created a cached or empty buffer which may be recycled.
*/
if (bd->waiters == 0
&& (bd->state == RTEMS_BDBUF_STATE_CACHED
1100ec: 8b 43 28 mov 0x28(%ebx),%eax
rtems_bdbuf_wait_for_sync_done (bd);
/*
* We may have created a cached or empty buffer which may be recycled.
*/
if (bd->waiters == 0
1100ef: 85 c0 test %eax,%eax
1100f1: 75 5b jne 11014e <rtems_bdbuf_sync+0x109>
&& (bd->state == RTEMS_BDBUF_STATE_CACHED
|| bd->state == RTEMS_BDBUF_STATE_EMPTY))
1100f3: 8b 43 24 mov 0x24(%ebx),%eax
rtems_bdbuf_wait_for_sync_done (bd);
/*
* We may have created a cached or empty buffer which may be recycled.
*/
if (bd->waiters == 0
1100f6: 83 f8 02 cmp $0x2,%eax
1100f9: 74 06 je 110101 <rtems_bdbuf_sync+0xbc>
&& (bd->state == RTEMS_BDBUF_STATE_CACHED
|| bd->state == RTEMS_BDBUF_STATE_EMPTY))
1100fb: 8b 43 24 mov 0x24(%ebx),%eax
rtems_bdbuf_wait_for_sync_done (bd);
/*
* We may have created a cached or empty buffer which may be recycled.
*/
if (bd->waiters == 0
1100fe: 48 dec %eax
1100ff: 75 4d jne 11014e <rtems_bdbuf_sync+0x109><== NEVER TAKEN
&& (bd->state == RTEMS_BDBUF_STATE_CACHED
|| bd->state == RTEMS_BDBUF_STATE_EMPTY))
{
if (bd->state == RTEMS_BDBUF_STATE_EMPTY)
110101: 8b 43 24 mov 0x24(%ebx),%eax
110104: 48 dec %eax
110105: 75 1e jne 110125 <rtems_bdbuf_sync+0xe0>
{
rtems_bdbuf_remove_from_tree (bd);
110107: 89 d8 mov %ebx,%eax
110109: e8 79 f3 ff ff call 10f487 <rtems_bdbuf_remove_from_tree>
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
11010e: c7 43 24 00 00 00 00 movl $0x0,0x24(%ebx)
RTEMS_INLINE_ROUTINE void _Chain_Prepend(
Chain_Control *the_chain,
Chain_Node *the_node
)
{
_Chain_Insert(_Chain_Head(the_chain), the_node);
110115: 52 push %edx
110116: 52 push %edx
110117: 53 push %ebx
110118: 68 2c 8f 12 00 push $0x128f2c
11011d: e8 fe 34 00 00 call 113620 <_Chain_Insert>
110122: 83 c4 10 add $0x10,%esp
if (bd->state == RTEMS_BDBUF_STATE_EMPTY)
{
rtems_bdbuf_remove_from_tree (bd);
rtems_bdbuf_make_free_and_add_to_lru_list (bd);
}
rtems_bdbuf_wake (&bdbuf_cache.buffer_waiters);
110125: b8 60 8f 12 00 mov $0x128f60,%eax
11012a: e8 f8 e9 ff ff call 10eb27 <rtems_bdbuf_wake>
11012f: eb 1d jmp 11014e <rtems_bdbuf_sync+0x109>
case RTEMS_BDBUF_STATE_ACCESS_EMPTY:
case RTEMS_BDBUF_STATE_ACCESS_MODIFIED:
rtems_bdbuf_sync_after_access (bd);
break;
case RTEMS_BDBUF_STATE_ACCESS_PURGED:
rtems_bdbuf_discard_buffer_after_access (bd);
110131: 89 d8 mov %ebx,%eax
110133: e8 65 f6 ff ff call 10f79d <rtems_bdbuf_discard_buffer_after_access>
break;
110138: eb 14 jmp 11014e <rtems_bdbuf_sync+0x109>
default:
rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_STATE_5);
11013a: 8b 43 24 mov 0x24(%ebx),%eax <== NOT EXECUTED
#endif
static void
rtems_bdbuf_fatal (rtems_bdbuf_buf_state state, uint32_t error)
{
rtems_fatal_error_occurred ((((uint32_t) state) << 16) | error);
11013d: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
110140: c1 e0 10 shl $0x10,%eax <== NOT EXECUTED
110143: 0d 03 00 00 42 or $0x42000003,%eax <== NOT EXECUTED
110148: 50 push %eax <== NOT EXECUTED
110149: e8 a6 b9 ff ff call 10baf4 <rtems_fatal_error_occurred><== NOT EXECUTED
}
if (rtems_bdbuf_tracer)
rtems_bdbuf_show_usage ();
rtems_bdbuf_unlock_cache ();
11014e: e8 36 eb ff ff call 10ec89 <rtems_bdbuf_unlock_cache>
110153: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
}
110155: 8b 5d fc mov -0x4(%ebp),%ebx
110158: c9 leave
110159: c3 ret
0010eee2 <rtems_bdbuf_syncdev>:
return RTEMS_SUCCESSFUL;
}
rtems_status_code
rtems_bdbuf_syncdev (dev_t dev)
{
10eee2: 55 push %ebp
10eee3: 89 e5 mov %esp,%ebp
10eee5: 57 push %edi
10eee6: 56 push %esi
10eee7: 53 push %ebx
10eee8: 83 ec 20 sub $0x20,%esp
10eeeb: 8b 5d 08 mov 0x8(%ebp),%ebx
10eeee: 8b 75 0c mov 0xc(%ebp),%esi
rtems_status_code sc = RTEMS_SUCCESSFUL;
rtems_disk_device *dd = NULL;
10eef1: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp)
if (rtems_bdbuf_tracer)
printf ("bdbuf:syncdev: %08x\n", (unsigned) dev);
sc = rtems_bdbuf_obtain_disk (dev, 0, &dd, NULL, NULL);
10eef8: 6a 00 push $0x0
10eefa: 6a 00 push $0x0
10eefc: 8d 45 e4 lea -0x1c(%ebp),%eax
10eeff: 50 push %eax
10ef00: 31 c9 xor %ecx,%ecx
10ef02: 89 d8 mov %ebx,%eax
10ef04: 89 f2 mov %esi,%edx
10ef06: e8 cc fd ff ff call 10ecd7 <rtems_bdbuf_obtain_disk>
10ef0b: 89 c7 mov %eax,%edi
if (sc != RTEMS_SUCCESSFUL)
10ef0d: 83 c4 10 add $0x10,%esp
10ef10: 85 c0 test %eax,%eax
10ef12: 75 52 jne 10ef66 <rtems_bdbuf_syncdev+0x84><== NEVER TAKEN
* Lock the cache's sync. A single task can nest calls.
*/
static void
rtems_bdbuf_lock_sync (void)
{
rtems_bdbuf_lock (bdbuf_cache.sync_lock, RTEMS_BLKDEV_FATAL_BDBUF_SYNC_LOCK);
10ef14: ba 0b 00 00 42 mov $0x4200000b,%edx
10ef19: a1 14 8f 12 00 mov 0x128f14,%eax
10ef1e: e8 c9 fb ff ff call 10eaec <rtems_bdbuf_lock>
* can lock the cache. If another thread has the sync lock it will cause this
* thread to block until it owns the sync lock then it can own the cache. The
* sync lock can only be obtained with the cache unlocked.
*/
rtems_bdbuf_lock_sync ();
rtems_bdbuf_lock_cache ();
10ef23: e8 ec fb ff ff call 10eb14 <rtems_bdbuf_lock_cache>
* out task know the id of the requester to wake when done.
*
* The swap out task will negate the sync active flag when no more buffers
* for the device are held on the "modified for sync" queues.
*/
bdbuf_cache.sync_active = true;
10ef28: c6 05 18 8f 12 00 01 movb $0x1,0x128f18
bdbuf_cache.sync_requester = rtems_task_self ();
10ef2f: e8 f4 43 00 00 call 113328 <rtems_task_self>
10ef34: a3 1c 8f 12 00 mov %eax,0x128f1c
bdbuf_cache.sync_device = dev;
10ef39: 89 1d 20 8f 12 00 mov %ebx,0x128f20
10ef3f: 89 35 24 8f 12 00 mov %esi,0x128f24
rtems_bdbuf_wake_swapper ();
10ef45: e8 71 fe ff ff call 10edbb <rtems_bdbuf_wake_swapper>
rtems_bdbuf_unlock_cache ();
10ef4a: e8 3a fd ff ff call 10ec89 <rtems_bdbuf_unlock_cache>
rtems_bdbuf_wait_for_event (RTEMS_BDBUF_TRANSFER_SYNC);
10ef4f: b8 02 00 00 00 mov $0x2,%eax
10ef54: e8 4d ff ff ff call 10eea6 <rtems_bdbuf_wait_for_event>
rtems_bdbuf_unlock_sync ();
10ef59: e8 52 fd ff ff call 10ecb0 <rtems_bdbuf_unlock_sync>
rtems_bdbuf_release_disk (dd);
10ef5e: 8b 45 e4 mov -0x1c(%ebp),%eax
10ef61: e8 33 fe ff ff call 10ed99 <rtems_bdbuf_release_disk>
return RTEMS_SUCCESSFUL;
}
10ef66: 89 f8 mov %edi,%eax
10ef68: 8d 65 f4 lea -0xc(%ebp),%esp
10ef6b: 5b pop %ebx
10ef6c: 5e pop %esi
10ef6d: 5f pop %edi
10ef6e: c9 leave
10ef6f: c3 ret
0010ec89 <rtems_bdbuf_unlock_cache>:
/**
* Unlock the cache.
*/
static void
rtems_bdbuf_unlock_cache (void)
{
10ec89: 55 push %ebp
10ec8a: 89 e5 mov %esp,%ebp
10ec8c: 83 ec 14 sub $0x14,%esp
* @param fatal_error_code The error code if the call fails.
*/
static void
rtems_bdbuf_unlock (rtems_id lock, uint32_t fatal_error_code)
{
rtems_status_code sc = rtems_semaphore_release (lock);
10ec8f: ff 35 10 8f 12 00 pushl 0x128f10
10ec95: e8 f2 c9 ff ff call 10b68c <rtems_semaphore_release>
if (sc != RTEMS_SUCCESSFUL)
10ec9a: 83 c4 10 add $0x10,%esp
10ec9d: 85 c0 test %eax,%eax
10ec9f: 74 0d je 10ecae <rtems_bdbuf_unlock_cache+0x25><== ALWAYS TAKEN
rtems_fatal_error_occurred (fatal_error_code);
10eca1: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10eca4: 68 0e 00 00 42 push $0x4200000e <== NOT EXECUTED
10eca9: e8 46 ce ff ff call 10baf4 <rtems_fatal_error_occurred><== NOT EXECUTED
*/
static void
rtems_bdbuf_unlock_cache (void)
{
rtems_bdbuf_unlock (bdbuf_cache.lock, RTEMS_BLKDEV_FATAL_BDBUF_CACHE_UNLOCK);
}
10ecae: c9 leave
10ecaf: c3 ret
0010ecb0 <rtems_bdbuf_unlock_sync>:
/**
* Unlock the cache's sync lock. Any blocked writers are woken.
*/
static void
rtems_bdbuf_unlock_sync (void)
{
10ecb0: 55 push %ebp
10ecb1: 89 e5 mov %esp,%ebp
10ecb3: 83 ec 14 sub $0x14,%esp
* @param fatal_error_code The error code if the call fails.
*/
static void
rtems_bdbuf_unlock (rtems_id lock, uint32_t fatal_error_code)
{
rtems_status_code sc = rtems_semaphore_release (lock);
10ecb6: ff 35 14 8f 12 00 pushl 0x128f14
10ecbc: e8 cb c9 ff ff call 10b68c <rtems_semaphore_release>
if (sc != RTEMS_SUCCESSFUL)
10ecc1: 83 c4 10 add $0x10,%esp
10ecc4: 85 c0 test %eax,%eax
10ecc6: 74 0d je 10ecd5 <rtems_bdbuf_unlock_sync+0x25><== ALWAYS TAKEN
rtems_fatal_error_occurred (fatal_error_code);
10ecc8: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10eccb: 68 0c 00 00 42 push $0x4200000c <== NOT EXECUTED
10ecd0: e8 1f ce ff ff call 10baf4 <rtems_fatal_error_occurred><== NOT EXECUTED
static void
rtems_bdbuf_unlock_sync (void)
{
rtems_bdbuf_unlock (bdbuf_cache.sync_lock,
RTEMS_BLKDEV_FATAL_BDBUF_SYNC_UNLOCK);
}
10ecd5: c9 leave
10ecd6: c3 ret
0010eea6 <rtems_bdbuf_wait_for_event>:
return RTEMS_UNSATISFIED;
}
static void
rtems_bdbuf_wait_for_event (rtems_event_set event)
{
10eea6: 55 push %ebp
10eea7: 89 e5 mov %esp,%ebp
10eea9: 53 push %ebx
10eeaa: 83 ec 14 sub $0x14,%esp
10eead: 89 c3 mov %eax,%ebx
rtems_status_code sc = RTEMS_SUCCESSFUL;
rtems_event_set out = 0;
10eeaf: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
sc = rtems_event_receive (event,
10eeb6: 8d 45 f4 lea -0xc(%ebp),%eax
10eeb9: 50 push %eax
10eeba: 6a 00 push $0x0
10eebc: 6a 00 push $0x0
10eebe: 53 push %ebx
10eebf: e8 14 c1 ff ff call 10afd8 <rtems_event_receive>
RTEMS_EVENT_ALL | RTEMS_WAIT,
RTEMS_NO_TIMEOUT,
&out);
if (sc != RTEMS_SUCCESSFUL || out != event)
10eec4: 83 c4 10 add $0x10,%esp
10eec7: 85 c0 test %eax,%eax
10eec9: 75 05 jne 10eed0 <rtems_bdbuf_wait_for_event+0x2a><== NEVER TAKEN
10eecb: 39 5d f4 cmp %ebx,-0xc(%ebp)
10eece: 74 0d je 10eedd <rtems_bdbuf_wait_for_event+0x37><== ALWAYS TAKEN
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_WAIT_EVNT);
10eed0: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10eed3: 68 1a 00 00 42 push $0x4200001a <== NOT EXECUTED
10eed8: e8 17 cc ff ff call 10baf4 <rtems_fatal_error_occurred><== NOT EXECUTED
}
10eedd: 8b 5d fc mov -0x4(%ebp),%ebx
10eee0: c9 leave
10eee1: c3 ret
0010eb27 <rtems_bdbuf_wake>:
* Wake a blocked resource. The resource has a counter that lets us know if
* there are any waiters.
*/
static void
rtems_bdbuf_wake (const rtems_bdbuf_waiters *waiters)
{
10eb27: 55 push %ebp
10eb28: 89 e5 mov %esp,%ebp
10eb2a: 83 ec 08 sub $0x8,%esp
rtems_status_code sc = RTEMS_SUCCESSFUL;
if (waiters->count > 0)
10eb2d: 8b 10 mov (%eax),%edx
10eb2f: 85 d2 test %edx,%edx
10eb31: 74 1f je 10eb52 <rtems_bdbuf_wake+0x2b>
{
sc = rtems_semaphore_flush (waiters->sema);
10eb33: 83 ec 0c sub $0xc,%esp
10eb36: ff 70 04 pushl 0x4(%eax)
10eb39: e8 56 46 00 00 call 113194 <rtems_semaphore_flush>
if (sc != RTEMS_SUCCESSFUL)
10eb3e: 83 c4 10 add $0x10,%esp
10eb41: 85 c0 test %eax,%eax
10eb43: 74 0d je 10eb52 <rtems_bdbuf_wake+0x2b> <== ALWAYS TAKEN
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_CACHE_WAKE);
10eb45: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10eb48: 68 13 00 00 42 push $0x42000013 <== NOT EXECUTED
10eb4d: e8 a2 cf ff ff call 10baf4 <rtems_fatal_error_occurred><== NOT EXECUTED
}
}
10eb52: c9 leave
10eb53: c3 ret
0010edbb <rtems_bdbuf_wake_swapper>:
}
}
static void
rtems_bdbuf_wake_swapper (void)
{
10edbb: 55 push %ebp
10edbc: 89 e5 mov %esp,%ebp
10edbe: 83 ec 10 sub $0x10,%esp
rtems_status_code sc = rtems_event_send (bdbuf_cache.swapout,
10edc1: 6a 04 push $0x4
10edc3: ff 35 e8 8e 12 00 pushl 0x128ee8
10edc9: e8 6a c3 ff ff call 10b138 <rtems_event_send>
RTEMS_BDBUF_SWAPOUT_SYNC);
if (sc != RTEMS_SUCCESSFUL)
10edce: 83 c4 10 add $0x10,%esp
10edd1: 85 c0 test %eax,%eax
10edd3: 74 0d je 10ede2 <rtems_bdbuf_wake_swapper+0x27><== ALWAYS TAKEN
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_SO_WAKE);
10edd5: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10edd8: 68 14 00 00 42 push $0x42000014 <== NOT EXECUTED
10eddd: e8 12 cd ff ff call 10baf4 <rtems_fatal_error_occurred><== NOT EXECUTED
}
10ede2: c9 leave
10ede3: c3 ret
00123c7c <rtems_bdpart_create>:
const rtems_bdpart_format *format,
rtems_bdpart_partition *pt,
const unsigned *dist,
size_t count
)
{
123c7c: 55 push %ebp <== NOT EXECUTED
123c7d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
123c7f: 57 push %edi <== NOT EXECUTED
123c80: 56 push %esi <== NOT EXECUTED
123c81: 53 push %ebx <== NOT EXECUTED
123c82: 83 ec 4c sub $0x4c,%esp <== NOT EXECUTED
123c85: 8b 7d 0c mov 0xc(%ebp),%edi <== NOT EXECUTED
123c88: 8b 75 18 mov 0x18(%ebp),%esi <== NOT EXECUTED
rtems_status_code sc = RTEMS_SUCCESSFUL;
bool dos_compatibility = format != NULL
123c8b: 85 ff test %edi,%edi <== NOT EXECUTED
123c8d: 74 0b je 123c9a <rtems_bdpart_create+0x1e><== NOT EXECUTED
&& format->type == RTEMS_BDPART_FORMAT_MBR
123c8f: 83 3f 00 cmpl $0x0,(%edi) <== NOT EXECUTED
123c92: 75 06 jne 123c9a <rtems_bdpart_create+0x1e><== NOT EXECUTED
123c94: 0f b6 47 08 movzbl 0x8(%edi),%eax <== NOT EXECUTED
123c98: eb 02 jmp 123c9c <rtems_bdpart_create+0x20><== NOT EXECUTED
123c9a: 31 c0 xor %eax,%eax <== NOT EXECUTED
&& format->mbr.dos_compatibility;
123c9c: 88 45 d4 mov %al,-0x2c(%ebp) <== NOT EXECUTED
rtems_blkdev_bnum disk_end = 0;
rtems_blkdev_bnum pos = 0;
rtems_blkdev_bnum dist_sum = 0;
rtems_blkdev_bnum record_space =
dos_compatibility ? RTEMS_BDPART_MBR_CYLINDER_SIZE : 1;
123c9f: 3c 01 cmp $0x1,%al <== NOT EXECUTED
123ca1: 19 db sbb %ebx,%ebx <== NOT EXECUTED
123ca3: 83 e3 c2 and $0xffffffc2,%ebx <== NOT EXECUTED
123ca6: 83 c3 3f add $0x3f,%ebx <== NOT EXECUTED
rtems_blkdev_bnum free_space = 0;
dev_t disk = 0;
size_t i = 0;
/* Check if we have something to do */
if (count == 0) {
123ca9: 31 c9 xor %ecx,%ecx <== NOT EXECUTED
123cab: 85 f6 test %esi,%esi <== NOT EXECUTED
123cad: 0f 84 68 01 00 00 je 123e1b <rtems_bdpart_create+0x19f><== NOT EXECUTED
/* Nothing to do */
return RTEMS_SUCCESSFUL;
}
/* Check parameter */
if (format == NULL || pt == NULL || dist == NULL) {
123cb3: 83 7d 10 00 cmpl $0x0,0x10(%ebp) <== NOT EXECUTED
123cb7: 0f 84 52 01 00 00 je 123e0f <rtems_bdpart_create+0x193><== NOT EXECUTED
123cbd: 85 ff test %edi,%edi <== NOT EXECUTED
123cbf: 0f 84 4a 01 00 00 je 123e0f <rtems_bdpart_create+0x193><== NOT EXECUTED
123cc5: 83 7d 14 00 cmpl $0x0,0x14(%ebp) <== NOT EXECUTED
123cc9: 0f 84 40 01 00 00 je 123e0f <rtems_bdpart_create+0x193><== NOT EXECUTED
rtems_blkdev_bnum dist_sum = 0;
rtems_blkdev_bnum record_space =
dos_compatibility ? RTEMS_BDPART_MBR_CYLINDER_SIZE : 1;
rtems_blkdev_bnum overhead = 0;
rtems_blkdev_bnum free_space = 0;
dev_t disk = 0;
123ccf: c7 45 d8 00 00 00 00 movl $0x0,-0x28(%ebp) <== NOT EXECUTED
123cd6: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp) <== NOT EXECUTED
{
rtems_status_code sc = RTEMS_SUCCESSFUL;
bool dos_compatibility = format != NULL
&& format->type == RTEMS_BDPART_FORMAT_MBR
&& format->mbr.dos_compatibility;
rtems_blkdev_bnum disk_end = 0;
123cdd: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) <== NOT EXECUTED
if (format == NULL || pt == NULL || dist == NULL) {
return RTEMS_INVALID_ADDRESS;
}
/* Get disk data */
sc = rtems_bdpart_get_disk_data( disk_name, &disk, &disk_end);
123ce4: 50 push %eax <== NOT EXECUTED
123ce5: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
123ce8: 50 push %eax <== NOT EXECUTED
123ce9: 8d 45 d8 lea -0x28(%ebp),%eax <== NOT EXECUTED
123cec: 50 push %eax <== NOT EXECUTED
123ced: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
123cf0: e8 20 05 00 00 call 124215 <rtems_bdpart_get_disk_data><== NOT EXECUTED
123cf5: 89 c1 mov %eax,%ecx <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
123cf7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
123cfa: 85 c0 test %eax,%eax <== NOT EXECUTED
123cfc: 0f 85 19 01 00 00 jne 123e1b <rtems_bdpart_create+0x19f><== NOT EXECUTED
123d02: 31 c0 xor %eax,%eax <== NOT EXECUTED
123d04: c7 45 d0 00 00 00 00 movl $0x0,-0x30(%ebp) <== NOT EXECUTED
123d0b: 89 4d cc mov %ecx,-0x34(%ebp) <== NOT EXECUTED
123d0e: eb 1d jmp 123d2d <rtems_bdpart_create+0xb1><== NOT EXECUTED
/* Get distribution sum and check for overflow */
for (i = 0; i < count; ++i) {
unsigned prev_sum = dist_sum;
dist_sum += dist [i];
123d10: 8b 4d 14 mov 0x14(%ebp),%ecx <== NOT EXECUTED
123d13: 8b 14 81 mov (%ecx,%eax,4),%edx <== NOT EXECUTED
if (dist_sum < prev_sum) {
123d16: 8b 4d d0 mov -0x30(%ebp),%ecx <== NOT EXECUTED
123d19: 01 d1 add %edx,%ecx <== NOT EXECUTED
123d1b: 89 4d d0 mov %ecx,-0x30(%ebp) <== NOT EXECUTED
123d1e: 0f 82 f2 00 00 00 jb 123e16 <rtems_bdpart_create+0x19a><== NOT EXECUTED
return RTEMS_INVALID_NUMBER;
}
if (dist [i] == 0) {
123d24: 85 d2 test %edx,%edx <== NOT EXECUTED
123d26: 0f 84 ea 00 00 00 je 123e16 <rtems_bdpart_create+0x19a><== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
return sc;
}
/* Get distribution sum and check for overflow */
for (i = 0; i < count; ++i) {
123d2c: 40 inc %eax <== NOT EXECUTED
123d2d: 39 f0 cmp %esi,%eax <== NOT EXECUTED
123d2f: 72 df jb 123d10 <rtems_bdpart_create+0x94><== NOT EXECUTED
123d31: 8b 4d cc mov -0x34(%ebp),%ecx <== NOT EXECUTED
return RTEMS_INVALID_NUMBER;
}
}
/* Check format */
if (format->type != RTEMS_BDPART_FORMAT_MBR) {
123d34: 83 3f 00 cmpl $0x0,(%edi) <== NOT EXECUTED
123d37: 74 0a je 123d43 <rtems_bdpart_create+0xc7><== NOT EXECUTED
123d39: b9 18 00 00 00 mov $0x18,%ecx <== NOT EXECUTED
123d3e: e9 d8 00 00 00 jmp 123e1b <rtems_bdpart_create+0x19f><== NOT EXECUTED
return RTEMS_NOT_IMPLEMENTED;
}
/* Align end of disk on cylinder boundary if necessary */
if (dos_compatibility) {
123d43: 80 7d d4 00 cmpb $0x0,-0x2c(%ebp) <== NOT EXECUTED
123d47: 74 0e je 123d57 <rtems_bdpart_create+0xdb><== NOT EXECUTED
disk_end -= (disk_end % record_space);
123d49: 8b 7d e4 mov -0x1c(%ebp),%edi <== NOT EXECUTED
123d4c: 89 f8 mov %edi,%eax <== NOT EXECUTED
123d4e: 31 d2 xor %edx,%edx <== NOT EXECUTED
123d50: f7 f3 div %ebx <== NOT EXECUTED
123d52: 29 d7 sub %edx,%edi <== NOT EXECUTED
123d54: 89 7d e4 mov %edi,-0x1c(%ebp) <== NOT EXECUTED
/*
* In case we need an extended partition and logical partitions we have to
* account for the space of each EBR.
*/
if (count > 4) {
123d57: 89 d8 mov %ebx,%eax <== NOT EXECUTED
123d59: 83 fe 04 cmp $0x4,%esi <== NOT EXECUTED
123d5c: 76 08 jbe 123d66 <rtems_bdpart_create+0xea><== NOT EXECUTED
overhead += (count - 3) * record_space;
123d5e: 8d 46 fd lea -0x3(%esi),%eax <== NOT EXECUTED
123d61: 0f af c3 imul %ebx,%eax <== NOT EXECUTED
123d64: 01 d8 add %ebx,%eax <== NOT EXECUTED
/*
* Account space to align every partition on cylinder boundaries if
* necessary.
*/
if (dos_compatibility) {
123d66: 80 7d d4 00 cmpb $0x0,-0x2c(%ebp) <== NOT EXECUTED
123d6a: 74 08 je 123d74 <rtems_bdpart_create+0xf8><== NOT EXECUTED
overhead += (count - 1) * record_space;
123d6c: 8d 56 ff lea -0x1(%esi),%edx <== NOT EXECUTED
123d6f: 0f af d3 imul %ebx,%edx <== NOT EXECUTED
123d72: 01 d0 add %edx,%eax <== NOT EXECUTED
}
/* Check disk space */
if ((overhead + count) > disk_end) {
123d74: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
123d77: 89 55 c8 mov %edx,-0x38(%ebp) <== NOT EXECUTED
123d7a: 8d 14 30 lea (%eax,%esi,1),%edx <== NOT EXECUTED
123d7d: 3b 55 c8 cmp -0x38(%ebp),%edx <== NOT EXECUTED
123d80: 76 0a jbe 123d8c <rtems_bdpart_create+0x110><== NOT EXECUTED
123d82: b9 1b 00 00 00 mov $0x1b,%ecx <== NOT EXECUTED
123d87: e9 8f 00 00 00 jmp 123e1b <rtems_bdpart_create+0x19f><== NOT EXECUTED
/* Begin of first primary partition */
pos = record_space;
/* Space for partitions */
free_space = disk_end - overhead;
123d8c: 8b 55 c8 mov -0x38(%ebp),%edx <== NOT EXECUTED
123d8f: 29 c2 sub %eax,%edx <== NOT EXECUTED
123d91: 89 55 c4 mov %edx,-0x3c(%ebp) <== NOT EXECUTED
123d94: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
123d97: 89 45 cc mov %eax,-0x34(%ebp) <== NOT EXECUTED
123d9a: 89 df mov %ebx,%edi <== NOT EXECUTED
123d9c: c7 45 d4 00 00 00 00 movl $0x0,-0x2c(%ebp) <== NOT EXECUTED
123da3: 89 5d b4 mov %ebx,-0x4c(%ebp) <== NOT EXECUTED
for (i = 0; i < count; ++i) {
123da6: eb 52 jmp 123dfa <rtems_bdpart_create+0x17e><== NOT EXECUTED
rtems_bdpart_partition *p = pt + i;
/* Partition size */
rtems_blkdev_bnum s = free_space * dist [i];
123da8: 8b 5d d4 mov -0x2c(%ebp),%ebx <== NOT EXECUTED
123dab: 8b 45 14 mov 0x14(%ebp),%eax <== NOT EXECUTED
123dae: 8b 14 98 mov (%eax,%ebx,4),%edx <== NOT EXECUTED
123db1: 8b 45 c4 mov -0x3c(%ebp),%eax <== NOT EXECUTED
123db4: 0f af c2 imul %edx,%eax <== NOT EXECUTED
if (s < free_space || s < dist [i]) {
123db7: 3b 45 c4 cmp -0x3c(%ebp),%eax <== NOT EXECUTED
123dba: 72 5a jb 123e16 <rtems_bdpart_create+0x19a><== NOT EXECUTED
123dbc: 39 d0 cmp %edx,%eax <== NOT EXECUTED
123dbe: 72 56 jb 123e16 <rtems_bdpart_create+0x19a><== NOT EXECUTED
/* TODO: Calculate without overflow */
return RTEMS_INVALID_NUMBER;
}
s /= dist_sum;
123dc0: 31 d2 xor %edx,%edx <== NOT EXECUTED
123dc2: f7 75 d0 divl -0x30(%ebp) <== NOT EXECUTED
/* Ensure that the partition is not empty */
if (s == 0) {
123dc5: 85 c0 test %eax,%eax <== NOT EXECUTED
123dc7: 75 02 jne 123dcb <rtems_bdpart_create+0x14f><== NOT EXECUTED
123dc9: b0 01 mov $0x1,%al <== NOT EXECUTED
/* Align partition upwards */
s += record_space - (s % record_space);
/* Partition begin and end */
p->begin = pos;
123dcb: 8b 55 cc mov -0x34(%ebp),%edx <== NOT EXECUTED
123dce: 89 3a mov %edi,(%edx) <== NOT EXECUTED
if (s == 0) {
s = 1;
}
/* Align partition upwards */
s += record_space - (s % record_space);
123dd0: 8b 55 b4 mov -0x4c(%ebp),%edx <== NOT EXECUTED
123dd3: 8d 1c 17 lea (%edi,%edx,1),%ebx <== NOT EXECUTED
/* Partition begin and end */
p->begin = pos;
pos += s;
123dd6: 8d 3c 03 lea (%ebx,%eax,1),%edi <== NOT EXECUTED
123dd9: 31 d2 xor %edx,%edx <== NOT EXECUTED
123ddb: f7 75 b4 divl -0x4c(%ebp) <== NOT EXECUTED
123dde: 29 d7 sub %edx,%edi <== NOT EXECUTED
p->end = pos;
123de0: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED
123de3: 89 78 04 mov %edi,0x4(%eax) <== NOT EXECUTED
/* Reserve space for the EBR if necessary */
if (count > 4 && i > 2) {
123de6: 83 7d d4 02 cmpl $0x2,-0x2c(%ebp) <== NOT EXECUTED
123dea: 76 07 jbe 123df3 <rtems_bdpart_create+0x177><== NOT EXECUTED
123dec: 83 fe 04 cmp $0x4,%esi <== NOT EXECUTED
123def: 76 02 jbe 123df3 <rtems_bdpart_create+0x177><== NOT EXECUTED
p->begin += record_space;
123df1: 89 18 mov %ebx,(%eax) <== NOT EXECUTED
pos = record_space;
/* Space for partitions */
free_space = disk_end - overhead;
for (i = 0; i < count; ++i) {
123df3: ff 45 d4 incl -0x2c(%ebp) <== NOT EXECUTED
123df6: 83 45 cc 30 addl $0x30,-0x34(%ebp) <== NOT EXECUTED
123dfa: 39 75 d4 cmp %esi,-0x2c(%ebp) <== NOT EXECUTED
123dfd: 72 a9 jb 123da8 <rtems_bdpart_create+0x12c><== NOT EXECUTED
p->begin += record_space;
}
}
/* Expand the last partition to the disk end */
pt [count - 1].end = disk_end;
123dff: 4e dec %esi <== NOT EXECUTED
123e00: 6b f6 30 imul $0x30,%esi,%esi <== NOT EXECUTED
123e03: 8b 5d c8 mov -0x38(%ebp),%ebx <== NOT EXECUTED
123e06: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
123e09: 89 5c 16 04 mov %ebx,0x4(%esi,%edx,1) <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
123e0d: eb 0c jmp 123e1b <rtems_bdpart_create+0x19f><== NOT EXECUTED
123e0f: b9 09 00 00 00 mov $0x9,%ecx <== NOT EXECUTED
123e14: eb 05 jmp 123e1b <rtems_bdpart_create+0x19f><== NOT EXECUTED
123e16: b9 0a 00 00 00 mov $0xa,%ecx <== NOT EXECUTED
}
123e1b: 89 c8 mov %ecx,%eax <== NOT EXECUTED
123e1d: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
123e20: 5b pop %ebx <== NOT EXECUTED
123e21: 5e pop %esi <== NOT EXECUTED
123e22: 5f pop %edi <== NOT EXECUTED
123e23: c9 leave <== NOT EXECUTED
123e24: c3 ret <== NOT EXECUTED
00123e28 <rtems_bdpart_dump>:
{
uuid_unparse_lower( type, str);
}
void rtems_bdpart_dump( const rtems_bdpart_partition *pt, size_t count)
{
123e28: 55 push %ebp <== NOT EXECUTED
123e29: 89 e5 mov %esp,%ebp <== NOT EXECUTED
123e2b: 57 push %edi <== NOT EXECUTED
123e2c: 56 push %esi <== NOT EXECUTED
123e2d: 53 push %ebx <== NOT EXECUTED
123e2e: 83 ec 68 sub $0x68,%esp <== NOT EXECUTED
size_t i = 0;
printf(
123e31: 68 60 a9 15 00 push $0x15a960 <== NOT EXECUTED
123e36: e8 0d e3 01 00 call 142148 <puts> <== NOT EXECUTED
123e3b: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
123e3e: 31 ff xor %edi,%edi <== NOT EXECUTED
"------------+------------+-----------------------------------------------------\n"
" BEGIN | END | TYPE\n"
"------------+------------+-----------------------------------------------------\n"
);
for (i = 0; i < count; ++i) {
123e40: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
static void rtems_bdpart_type_to_string(
const uuid_t type,
char str [37]
)
{
uuid_unparse_lower( type, str);
123e43: 8d 75 b3 lea -0x4d(%ebp),%esi <== NOT EXECUTED
"------------+------------+-----------------------------------------------------\n"
" BEGIN | END | TYPE\n"
"------------+------------+-----------------------------------------------------\n"
);
for (i = 0; i < count; ++i) {
123e46: e9 99 00 00 00 jmp 123ee4 <rtems_bdpart_dump+0xbc><== NOT EXECUTED
const rtems_bdpart_partition *p = pt + i;
const char *type = NULL;
char type_buffer [52];
uint8_t type_mbr = 0;
123e4b: c6 45 e7 00 movb $0x0,-0x19(%ebp) <== NOT EXECUTED
if (rtems_bdpart_to_mbr_partition_type( p->type, &type_mbr)) {
123e4f: 8d 53 08 lea 0x8(%ebx),%edx <== NOT EXECUTED
123e52: 51 push %ecx <== NOT EXECUTED
123e53: 51 push %ecx <== NOT EXECUTED
123e54: 8d 45 e7 lea -0x19(%ebp),%eax <== NOT EXECUTED
123e57: 50 push %eax <== NOT EXECUTED
123e58: 52 push %edx <== NOT EXECUTED
123e59: 89 55 a4 mov %edx,-0x5c(%ebp) <== NOT EXECUTED
123e5c: e8 2c 04 00 00 call 12428d <rtems_bdpart_to_mbr_partition_type><== NOT EXECUTED
123e61: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
123e64: 84 c0 test %al,%al <== NOT EXECUTED
123e66: 8b 55 a4 mov -0x5c(%ebp),%edx <== NOT EXECUTED
123e69: 74 54 je 123ebf <rtems_bdpart_dump+0x97><== NOT EXECUTED
switch (type_mbr) {
123e6b: 8a 55 e7 mov -0x19(%ebp),%dl <== NOT EXECUTED
case RTEMS_BDPART_MBR_FAT_16:
type = "FAT 16";
break;
case RTEMS_BDPART_MBR_FAT_16_LBA:
type = "FAT 16 LBA";
break;
123e6e: b8 b9 aa 15 00 mov $0x15aab9,%eax <== NOT EXECUTED
const char *type = NULL;
char type_buffer [52];
uint8_t type_mbr = 0;
if (rtems_bdpart_to_mbr_partition_type( p->type, &type_mbr)) {
switch (type_mbr) {
123e73: 80 fa 0b cmp $0xb,%dl <== NOT EXECUTED
123e76: 74 55 je 123ecd <rtems_bdpart_dump+0xa5><== NOT EXECUTED
123e78: 77 14 ja 123e8e <rtems_bdpart_dump+0x66><== NOT EXECUTED
123e7a: b8 a7 aa 15 00 mov $0x15aaa7,%eax <== NOT EXECUTED
123e7f: 80 fa 01 cmp $0x1,%dl <== NOT EXECUTED
123e82: 74 49 je 123ecd <rtems_bdpart_dump+0xa5><== NOT EXECUTED
123e84: b8 a0 aa 15 00 mov $0x15aaa0,%eax <== NOT EXECUTED
123e89: 80 fa 04 cmp $0x4,%dl <== NOT EXECUTED
123e8c: eb 1c jmp 123eaa <rtems_bdpart_dump+0x82><== NOT EXECUTED
123e8e: b8 ae aa 15 00 mov $0x15aaae,%eax <== NOT EXECUTED
123e93: 80 fa 0e cmp $0xe,%dl <== NOT EXECUTED
123e96: 74 35 je 123ecd <rtems_bdpart_dump+0xa5><== NOT EXECUTED
case RTEMS_BDPART_MBR_FAT_32:
type = "FAT 32";
break;
case RTEMS_BDPART_MBR_FAT_32_LBA:
type = "FAT 32 LBA";
break;
123e98: b8 cb aa 15 00 mov $0x15aacb,%eax <== NOT EXECUTED
const char *type = NULL;
char type_buffer [52];
uint8_t type_mbr = 0;
if (rtems_bdpart_to_mbr_partition_type( p->type, &type_mbr)) {
switch (type_mbr) {
123e9d: 80 fa da cmp $0xda,%dl <== NOT EXECUTED
123ea0: 74 2b je 123ecd <rtems_bdpart_dump+0xa5><== NOT EXECUTED
case RTEMS_BDPART_MBR_FAT_16_LBA:
type = "FAT 16 LBA";
break;
case RTEMS_BDPART_MBR_FAT_32:
type = "FAT 32";
break;
123ea2: b8 c0 aa 15 00 mov $0x15aac0,%eax <== NOT EXECUTED
const char *type = NULL;
char type_buffer [52];
uint8_t type_mbr = 0;
if (rtems_bdpart_to_mbr_partition_type( p->type, &type_mbr)) {
switch (type_mbr) {
123ea7: 80 fa 0c cmp $0xc,%dl <== NOT EXECUTED
123eaa: 74 21 je 123ecd <rtems_bdpart_dump+0xa5><== NOT EXECUTED
break;
case RTEMS_BDPART_MBR_DATA:
type = "DATA";
break;
default:
snprintf( type_buffer, sizeof( type_buffer), "0x%02" PRIx8, type_mbr);
123eac: 0f b6 d2 movzbl %dl,%edx <== NOT EXECUTED
123eaf: 52 push %edx <== NOT EXECUTED
123eb0: 68 d0 aa 15 00 push $0x15aad0 <== NOT EXECUTED
123eb5: 6a 34 push $0x34 <== NOT EXECUTED
123eb7: 56 push %esi <== NOT EXECUTED
123eb8: e8 27 f5 01 00 call 1433e4 <snprintf> <== NOT EXECUTED
123ebd: eb 09 jmp 123ec8 <rtems_bdpart_dump+0xa0><== NOT EXECUTED
static void rtems_bdpart_type_to_string(
const uuid_t type,
char str [37]
)
{
uuid_unparse_lower( type, str);
123ebf: 50 push %eax <== NOT EXECUTED
123ec0: 50 push %eax <== NOT EXECUTED
123ec1: 56 push %esi <== NOT EXECUTED
123ec2: 52 push %edx <== NOT EXECUTED
123ec3: e8 2c 61 01 00 call 139ff4 <uuid_unparse_lower> <== NOT EXECUTED
123ec8: 89 f0 mov %esi,%eax <== NOT EXECUTED
123eca: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
} else {
rtems_bdpart_type_to_string( p->type, type_buffer);
type = type_buffer;
}
printf(
123ecd: 50 push %eax <== NOT EXECUTED
123ece: ff 73 04 pushl 0x4(%ebx) <== NOT EXECUTED
123ed1: ff 33 pushl (%ebx) <== NOT EXECUTED
123ed3: 68 d7 aa 15 00 push $0x15aad7 <== NOT EXECUTED
123ed8: e8 57 e0 01 00 call 141f34 <printf> <== NOT EXECUTED
"------------+------------+-----------------------------------------------------\n"
" BEGIN | END | TYPE\n"
"------------+------------+-----------------------------------------------------\n"
);
for (i = 0; i < count; ++i) {
123edd: 47 inc %edi <== NOT EXECUTED
123ede: 83 c3 30 add $0x30,%ebx <== NOT EXECUTED
123ee1: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
123ee4: 3b 7d 0c cmp 0xc(%ebp),%edi <== NOT EXECUTED
123ee7: 0f 82 5e ff ff ff jb 123e4b <rtems_bdpart_dump+0x23><== NOT EXECUTED
p->end,
type
);
}
puts( "------------+------------+-----------------------------------------------------");
123eed: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
123ef0: 68 50 aa 15 00 push $0x15aa50 <== NOT EXECUTED
123ef5: e8 4e e2 01 00 call 142148 <puts> <== NOT EXECUTED
123efa: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
123efd: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
123f00: 5b pop %ebx <== NOT EXECUTED
123f01: 5e pop %esi <== NOT EXECUTED
123f02: 5f pop %edi <== NOT EXECUTED
123f03: c9 leave <== NOT EXECUTED
123f04: c3 ret <== NOT EXECUTED
00124215 <rtems_bdpart_get_disk_data>:
rtems_status_code rtems_bdpart_get_disk_data(
const char *disk_name,
dev_t *disk,
rtems_blkdev_bnum *disk_end
)
{
124215: 55 push %ebp <== NOT EXECUTED
124216: 89 e5 mov %esp,%ebp <== NOT EXECUTED
124218: 56 push %esi <== NOT EXECUTED
124219: 53 push %ebx <== NOT EXECUTED
12421a: 83 ec 58 sub $0x58,%esp <== NOT EXECUTED
rtems_blkdev_bnum block_size = 0;
rtems_disk_device *dd = NULL;
struct stat st;
/* Get disk handle */
rv = stat( disk_name, &st);
12421d: 8d 45 b0 lea -0x50(%ebp),%eax <== NOT EXECUTED
124220: 50 push %eax <== NOT EXECUTED
124221: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
124224: e8 c3 a0 fe ff call 10e2ec <stat> <== NOT EXECUTED
if (rv != 0) {
124229: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12422c: 85 c0 test %eax,%eax <== NOT EXECUTED
12422e: 75 4a jne 12427a <rtems_bdpart_get_disk_data+0x65><== NOT EXECUTED
return RTEMS_INVALID_NAME;
}
*disk = st.st_rdev;
124230: 8b 45 c8 mov -0x38(%ebp),%eax <== NOT EXECUTED
124233: 8b 55 cc mov -0x34(%ebp),%edx <== NOT EXECUTED
124236: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED
124239: 89 01 mov %eax,(%ecx) <== NOT EXECUTED
12423b: 89 51 04 mov %edx,0x4(%ecx) <== NOT EXECUTED
/* Get disk begin, end and block size */
dd = rtems_disk_obtain( *disk);
12423e: 51 push %ecx <== NOT EXECUTED
12423f: 51 push %ecx <== NOT EXECUTED
124240: 52 push %edx <== NOT EXECUTED
124241: 50 push %eax <== NOT EXECUTED
124242: e8 a6 7a fe ff call 10bced <rtems_disk_obtain> <== NOT EXECUTED
if (dd == NULL) {
124247: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12424a: 85 c0 test %eax,%eax <== NOT EXECUTED
12424c: 74 2c je 12427a <rtems_bdpart_get_disk_data+0x65><== NOT EXECUTED
return RTEMS_INVALID_NAME;
}
disk_begin = dd->start;
12424e: 8b 58 18 mov 0x18(%eax),%ebx <== NOT EXECUTED
*disk_end = dd->size;
124251: 8b 48 1c mov 0x1c(%eax),%ecx <== NOT EXECUTED
124254: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
124257: 89 0a mov %ecx,(%edx) <== NOT EXECUTED
block_size = dd->block_size;
124259: 8b 70 20 mov 0x20(%eax),%esi <== NOT EXECUTED
sc = rtems_disk_release( dd);
12425c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12425f: 50 push %eax <== NOT EXECUTED
124260: e8 0f 7c fe ff call 10be74 <rtems_disk_release> <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
124265: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
124268: 85 c0 test %eax,%eax <== NOT EXECUTED
12426a: 75 1a jne 124286 <rtems_bdpart_get_disk_data+0x71><== NOT EXECUTED
return sc;
}
/* Check block size */
if (block_size < RTEMS_BDPART_BLOCK_SIZE) {
12426c: 81 fe ff 01 00 00 cmp $0x1ff,%esi <== NOT EXECUTED
124272: 76 0d jbe 124281 <rtems_bdpart_get_disk_data+0x6c><== NOT EXECUTED
return RTEMS_IO_ERROR;
}
/* Check that we have do not have a logical disk */
if (disk_begin != 0) {
124274: 85 db test %ebx,%ebx <== NOT EXECUTED
124276: 74 0e je 124286 <rtems_bdpart_get_disk_data+0x71><== NOT EXECUTED
124278: eb 07 jmp 124281 <rtems_bdpart_get_disk_data+0x6c><== NOT EXECUTED
12427a: b8 03 00 00 00 mov $0x3,%eax <== NOT EXECUTED
12427f: eb 05 jmp 124286 <rtems_bdpart_get_disk_data+0x71><== NOT EXECUTED
124281: b8 1b 00 00 00 mov $0x1b,%eax <== NOT EXECUTED
return RTEMS_IO_ERROR;
}
return RTEMS_SUCCESSFUL;
}
124286: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
124289: 5b pop %ebx <== NOT EXECUTED
12428a: 5e pop %esi <== NOT EXECUTED
12428b: c9 leave <== NOT EXECUTED
12428c: c3 ret <== NOT EXECUTED
00124014 <rtems_bdpart_mount>:
const char *disk_name,
const rtems_bdpart_partition *pt __attribute__((unused)),
size_t count,
const char *mount_base
)
{
124014: 55 push %ebp <== NOT EXECUTED
124015: 89 e5 mov %esp,%ebp <== NOT EXECUTED
124017: 57 push %edi <== NOT EXECUTED
124018: 56 push %esi <== NOT EXECUTED
124019: 53 push %ebx <== NOT EXECUTED
12401a: 83 ec 34 sub $0x34,%esp <== NOT EXECUTED
12401d: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
rtems_status_code esc = RTEMS_SUCCESSFUL;
const char *disk_file_name = strrchr( disk_name, '/');
124020: 6a 2f push $0x2f <== NOT EXECUTED
124022: 56 push %esi <== NOT EXECUTED
124023: e8 f8 03 02 00 call 144420 <strrchr> <== NOT EXECUTED
124028: 89 45 e0 mov %eax,-0x20(%ebp) <== NOT EXECUTED
char *logical_disk_name = NULL;
char *logical_disk_marker = NULL;
char *mount_point = NULL;
char *mount_marker = NULL;
size_t disk_file_name_size = 0;
size_t disk_name_size = strlen( disk_name);
12402b: 83 c9 ff or $0xffffffff,%ecx <== NOT EXECUTED
12402e: 89 f7 mov %esi,%edi <== NOT EXECUTED
124030: 31 c0 xor %eax,%eax <== NOT EXECUTED
124032: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED
124034: 89 ca mov %ecx,%edx <== NOT EXECUTED
124036: f7 d2 not %edx <== NOT EXECUTED
124038: 8d 42 ff lea -0x1(%edx),%eax <== NOT EXECUTED
12403b: 89 45 d8 mov %eax,-0x28(%ebp) <== NOT EXECUTED
size_t mount_base_size = strlen( mount_base);
12403e: 83 c9 ff or $0xffffffff,%ecx <== NOT EXECUTED
124041: 8b 7d 14 mov 0x14(%ebp),%edi <== NOT EXECUTED
124044: 31 c0 xor %eax,%eax <== NOT EXECUTED
124046: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED
124048: f7 d1 not %ecx <== NOT EXECUTED
12404a: 89 4d e4 mov %ecx,-0x1c(%ebp) <== NOT EXECUTED
12404d: 49 dec %ecx <== NOT EXECUTED
12404e: 89 4d dc mov %ecx,-0x24(%ebp) <== NOT EXECUTED
size_t i = 0;
/* Create logical disk name base */
logical_disk_name = malloc( disk_name_size + RTEMS_BDPART_NUMBER_SIZE);
124051: 83 c2 03 add $0x3,%edx <== NOT EXECUTED
124054: 89 14 24 mov %edx,(%esp) <== NOT EXECUTED
124057: e8 8c 93 fe ff call 10d3e8 <malloc> <== NOT EXECUTED
12405c: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (logical_disk_name == NULL) {
12405e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
124061: b8 1a 00 00 00 mov $0x1a,%eax <== NOT EXECUTED
124066: 85 db test %ebx,%ebx <== NOT EXECUTED
124068: 0f 84 2e 01 00 00 je 12419c <rtems_bdpart_mount+0x188><== NOT EXECUTED
return RTEMS_NO_MEMORY;
}
strncpy( logical_disk_name, disk_name, disk_name_size);
12406e: 51 push %ecx <== NOT EXECUTED
12406f: ff 75 d8 pushl -0x28(%ebp) <== NOT EXECUTED
124072: 56 push %esi <== NOT EXECUTED
124073: 53 push %ebx <== NOT EXECUTED
124074: e8 27 fd 01 00 call 143da0 <strncpy> <== NOT EXECUTED
/* Get disk file name */
if (disk_file_name != NULL) {
124079: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12407c: 83 7d e0 00 cmpl $0x0,-0x20(%ebp) <== NOT EXECUTED
124080: 75 08 jne 12408a <rtems_bdpart_mount+0x76><== NOT EXECUTED
124082: 8b 7d d8 mov -0x28(%ebp),%edi <== NOT EXECUTED
124085: 89 75 e0 mov %esi,-0x20(%ebp) <== NOT EXECUTED
124088: eb 15 jmp 12409f <rtems_bdpart_mount+0x8b><== NOT EXECUTED
disk_file_name += 1;
12408a: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
12408d: 40 inc %eax <== NOT EXECUTED
12408e: 89 45 e0 mov %eax,-0x20(%ebp) <== NOT EXECUTED
disk_file_name_size = strlen( disk_file_name);
124091: 83 c9 ff or $0xffffffff,%ecx <== NOT EXECUTED
124094: 89 c7 mov %eax,%edi <== NOT EXECUTED
124096: 31 c0 xor %eax,%eax <== NOT EXECUTED
124098: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED
12409a: f7 d1 not %ecx <== NOT EXECUTED
12409c: 8d 79 ff lea -0x1(%ecx),%edi <== NOT EXECUTED
disk_file_name = disk_name;
disk_file_name_size = disk_name_size;
}
/* Create mount point base */
mount_point = malloc( mount_base_size + 1 + disk_file_name_size + RTEMS_BDPART_NUMBER_SIZE);
12409f: 8b 55 dc mov -0x24(%ebp),%edx <== NOT EXECUTED
1240a2: 01 fa add %edi,%edx <== NOT EXECUTED
1240a4: 89 55 d4 mov %edx,-0x2c(%ebp) <== NOT EXECUTED
1240a7: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1240aa: 89 d0 mov %edx,%eax <== NOT EXECUTED
1240ac: 83 c0 05 add $0x5,%eax <== NOT EXECUTED
1240af: 50 push %eax <== NOT EXECUTED
1240b0: e8 33 93 fe ff call 10d3e8 <malloc> <== NOT EXECUTED
1240b5: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (mount_point == NULL) {
1240b7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1240ba: b8 1a 00 00 00 mov $0x1a,%eax <== NOT EXECUTED
1240bf: 85 f6 test %esi,%esi <== NOT EXECUTED
1240c1: 0f 84 bb 00 00 00 je 124182 <rtems_bdpart_mount+0x16e><== NOT EXECUTED
esc = RTEMS_NO_MEMORY;
goto cleanup;
}
strncpy( mount_point, mount_base, mount_base_size);
1240c7: 52 push %edx <== NOT EXECUTED
1240c8: ff 75 dc pushl -0x24(%ebp) <== NOT EXECUTED
1240cb: ff 75 14 pushl 0x14(%ebp) <== NOT EXECUTED
1240ce: 56 push %esi <== NOT EXECUTED
1240cf: e8 cc fc 01 00 call 143da0 <strncpy> <== NOT EXECUTED
mount_point [mount_base_size] = '/';
1240d4: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED
1240d7: c6 44 0e ff 2f movb $0x2f,-0x1(%esi,%ecx,1) <== NOT EXECUTED
strncpy( mount_point + mount_base_size + 1, disk_file_name, disk_file_name_size);
1240dc: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
1240df: 57 push %edi <== NOT EXECUTED
1240e0: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
1240e3: 8b 55 dc mov -0x24(%ebp),%edx <== NOT EXECUTED
1240e6: 8d 44 16 01 lea 0x1(%esi,%edx,1),%eax <== NOT EXECUTED
1240ea: 50 push %eax <== NOT EXECUTED
1240eb: e8 b0 fc 01 00 call 143da0 <strncpy> <== NOT EXECUTED
/* Markers */
logical_disk_marker = logical_disk_name + disk_name_size;
1240f0: 8b 4d d8 mov -0x28(%ebp),%ecx <== NOT EXECUTED
1240f3: 8d 3c 0b lea (%ebx,%ecx,1),%edi <== NOT EXECUTED
mount_marker = mount_point + mount_base_size + 1 + disk_file_name_size;
1240f6: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED
1240f9: 8d 44 06 01 lea 0x1(%esi,%eax,1),%eax <== NOT EXECUTED
1240fd: 89 45 dc mov %eax,-0x24(%ebp) <== NOT EXECUTED
124100: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) <== NOT EXECUTED
124107: eb 6c jmp 124175 <rtems_bdpart_mount+0x161><== NOT EXECUTED
/* Mount supported file systems for each partition */
for (i = 0; i < count; ++i) {
/* Create logical disk name */
int rv = snprintf( logical_disk_marker, RTEMS_BDPART_NUMBER_SIZE, "%zu", i + 1);
124109: ff 45 e4 incl -0x1c(%ebp) <== NOT EXECUTED
12410c: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
12410f: 68 c7 c5 15 00 push $0x15c5c7 <== NOT EXECUTED
124114: 6a 04 push $0x4 <== NOT EXECUTED
124116: 57 push %edi <== NOT EXECUTED
124117: e8 c8 f2 01 00 call 1433e4 <snprintf> <== NOT EXECUTED
if (rv >= RTEMS_BDPART_NUMBER_SIZE) {
12411c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12411f: 83 f8 03 cmp $0x3,%eax <== NOT EXECUTED
124122: 7e 07 jle 12412b <rtems_bdpart_mount+0x117><== NOT EXECUTED
124124: b8 03 00 00 00 mov $0x3,%eax <== NOT EXECUTED
124129: eb 57 jmp 124182 <rtems_bdpart_mount+0x16e><== NOT EXECUTED
esc = RTEMS_INVALID_NAME;
goto cleanup;
}
/* Create mount point */
strncpy( mount_marker, logical_disk_marker, RTEMS_BDPART_NUMBER_SIZE);
12412b: 50 push %eax <== NOT EXECUTED
12412c: 6a 04 push $0x4 <== NOT EXECUTED
12412e: 57 push %edi <== NOT EXECUTED
12412f: ff 75 dc pushl -0x24(%ebp) <== NOT EXECUTED
124132: e8 69 fc 01 00 call 143da0 <strncpy> <== NOT EXECUTED
rv = rtems_mkdir( mount_point, S_IRWXU | S_IRWXG | S_IRWXO);
124137: 5a pop %edx <== NOT EXECUTED
124138: 59 pop %ecx <== NOT EXECUTED
124139: 68 ff 01 00 00 push $0x1ff <== NOT EXECUTED
12413e: 56 push %esi <== NOT EXECUTED
12413f: e8 54 a0 fe ff call 10e198 <rtems_mkdir> <== NOT EXECUTED
if (rv != 0) {
124144: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
124147: 85 c0 test %eax,%eax <== NOT EXECUTED
124149: 74 07 je 124152 <rtems_bdpart_mount+0x13e><== NOT EXECUTED
12414b: b8 1b 00 00 00 mov $0x1b,%eax <== NOT EXECUTED
124150: eb 30 jmp 124182 <rtems_bdpart_mount+0x16e><== NOT EXECUTED
esc = RTEMS_IO_ERROR;
goto cleanup;
}
/* Mount */
rv = mount(
124152: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
124155: 6a 00 push $0x0 <== NOT EXECUTED
124157: 6a 00 push $0x0 <== NOT EXECUTED
124159: 68 ed aa 15 00 push $0x15aaed <== NOT EXECUTED
12415e: 56 push %esi <== NOT EXECUTED
12415f: 53 push %ebx <== NOT EXECUTED
124160: e8 39 95 fe ff call 10d69e <mount> <== NOT EXECUTED
mount_point,
"msdos",
0,
NULL
);
if (rv != 0) {
124165: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
124168: 85 c0 test %eax,%eax <== NOT EXECUTED
12416a: 74 0c je 124178 <rtems_bdpart_mount+0x164><== NOT EXECUTED
rmdir( mount_point);
12416c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12416f: 56 push %esi <== NOT EXECUTED
124170: e8 f3 52 00 00 call 129468 <rmdir> <== NOT EXECUTED
124175: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
/* Markers */
logical_disk_marker = logical_disk_name + disk_name_size;
mount_marker = mount_point + mount_base_size + 1 + disk_file_name_size;
/* Mount supported file systems for each partition */
for (i = 0; i < count; ++i) {
124178: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
12417b: 39 55 e4 cmp %edx,-0x1c(%ebp) <== NOT EXECUTED
12417e: 72 89 jb 124109 <rtems_bdpart_mount+0xf5><== NOT EXECUTED
124180: 31 c0 xor %eax,%eax <== NOT EXECUTED
}
}
cleanup:
free( logical_disk_name);
124182: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
124185: 53 push %ebx <== NOT EXECUTED
124186: 89 45 d0 mov %eax,-0x30(%ebp) <== NOT EXECUTED
124189: e8 0e 8d fe ff call 10ce9c <free> <== NOT EXECUTED
free( mount_point);
12418e: 89 34 24 mov %esi,(%esp) <== NOT EXECUTED
124191: e8 06 8d fe ff call 10ce9c <free> <== NOT EXECUTED
return esc;
124196: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
124199: 8b 45 d0 mov -0x30(%ebp),%eax <== NOT EXECUTED
}
12419c: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
12419f: 5b pop %ebx <== NOT EXECUTED
1241a0: 5e pop %esi <== NOT EXECUTED
1241a1: 5f pop %edi <== NOT EXECUTED
1241a2: c9 leave <== NOT EXECUTED
1241a3: c3 ret <== NOT EXECUTED
0012460c <rtems_bdpart_new_record>:
static rtems_status_code rtems_bdpart_new_record(
dev_t disk,
rtems_blkdev_bnum index,
rtems_bdbuf_buffer **block
)
{
12460c: 55 push %ebp <== NOT EXECUTED
12460d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12460f: 57 push %edi <== NOT EXECUTED
124610: 56 push %esi <== NOT EXECUTED
124611: 53 push %ebx <== NOT EXECUTED
124612: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
124615: 89 c3 mov %eax,%ebx <== NOT EXECUTED
124617: 89 d6 mov %edx,%esi <== NOT EXECUTED
124619: 89 cf mov %ecx,%edi <== NOT EXECUTED
12461b: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
rtems_status_code sc = RTEMS_SUCCESSFUL;
/* Synchronize previous block if necessary */
if (*block != NULL) {
12461e: 8b 02 mov (%edx),%eax <== NOT EXECUTED
124620: 85 c0 test %eax,%eax <== NOT EXECUTED
124622: 74 16 je 12463a <rtems_bdpart_new_record+0x2e><== NOT EXECUTED
sc = rtems_bdbuf_sync( *block);
124624: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
124627: 50 push %eax <== NOT EXECUTED
124628: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED
12462b: e8 55 62 fe ff call 10a885 <rtems_bdbuf_sync> <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
124630: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
124633: 85 c0 test %eax,%eax <== NOT EXECUTED
124635: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
124638: 75 44 jne 12467e <rtems_bdpart_new_record+0x72><== NOT EXECUTED
return sc;
}
}
/* Read the new record block (this accounts for disk block sizes > 512) */
sc = rtems_bdbuf_read( disk, index, block);
12463a: 52 push %edx <== NOT EXECUTED
12463b: 57 push %edi <== NOT EXECUTED
12463c: 56 push %esi <== NOT EXECUTED
12463d: 53 push %ebx <== NOT EXECUTED
12463e: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED
124641: e8 ce 68 fe ff call 10af14 <rtems_bdbuf_read> <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
124646: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
124649: 85 c0 test %eax,%eax <== NOT EXECUTED
12464b: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
12464e: 75 2e jne 12467e <rtems_bdpart_new_record+0x72><== NOT EXECUTED
return sc;
}
/* just in case block did not get filled in */
if ( *block == NULL ) {
124650: 8b 0a mov (%edx),%ecx <== NOT EXECUTED
124652: 85 c9 test %ecx,%ecx <== NOT EXECUTED
124654: 75 04 jne 12465a <rtems_bdpart_new_record+0x4e><== NOT EXECUTED
124656: b0 09 mov $0x9,%al <== NOT EXECUTED
124658: eb 24 jmp 12467e <rtems_bdpart_new_record+0x72><== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
}
/* Clear record */
memset( (*block)->buffer, 0, RTEMS_BDPART_BLOCK_SIZE);
12465a: 8b 59 20 mov 0x20(%ecx),%ebx <== NOT EXECUTED
12465d: b9 80 00 00 00 mov $0x80,%ecx <== NOT EXECUTED
124662: 89 df mov %ebx,%edi <== NOT EXECUTED
124664: f3 ab rep stos %eax,%es:(%edi) <== NOT EXECUTED
/* Write signature */
(*block)->buffer [RTEMS_BDPART_MBR_OFFSET_SIGNATURE_0] =
124666: 8b 0a mov (%edx),%ecx <== NOT EXECUTED
124668: 8b 49 20 mov 0x20(%ecx),%ecx <== NOT EXECUTED
12466b: c6 81 fe 01 00 00 55 movb $0x55,0x1fe(%ecx) <== NOT EXECUTED
RTEMS_BDPART_MBR_SIGNATURE_0;
(*block)->buffer [RTEMS_BDPART_MBR_OFFSET_SIGNATURE_1] =
124672: 8b 12 mov (%edx),%edx <== NOT EXECUTED
124674: 8b 52 20 mov 0x20(%edx),%edx <== NOT EXECUTED
124677: c6 82 ff 01 00 00 aa movb $0xaa,0x1ff(%edx) <== NOT EXECUTED
RTEMS_BDPART_MBR_SIGNATURE_1;
return RTEMS_SUCCESSFUL;
}
12467e: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
124681: 5b pop %ebx <== NOT EXECUTED
124682: 5e pop %esi <== NOT EXECUTED
124683: 5f pop %edi <== NOT EXECUTED
124684: c9 leave <== NOT EXECUTED
124685: c3 ret <== NOT EXECUTED
001243b5 <rtems_bdpart_read>:
const char *disk_name,
rtems_bdpart_format *format,
rtems_bdpart_partition *pt,
size_t *count
)
{
1243b5: 55 push %ebp <== NOT EXECUTED
1243b6: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1243b8: 57 push %edi <== NOT EXECUTED
1243b9: 56 push %esi <== NOT EXECUTED
1243ba: 53 push %ebx <== NOT EXECUTED
1243bb: 83 ec 3c sub $0x3c,%esp <== NOT EXECUTED
1243be: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
1243c1: 8b 75 14 mov 0x14(%ebp),%esi <== NOT EXECUTED
rtems_status_code sc = RTEMS_SUCCESSFUL;
rtems_status_code esc = RTEMS_SUCCESSFUL;
rtems_bdbuf_buffer *block = NULL;
rtems_bdpart_partition *p = pt - 1;
const rtems_bdpart_partition *p_end = pt + (count != NULL ? *count : 0);
1243c4: 31 ff xor %edi,%edi <== NOT EXECUTED
1243c6: 85 f6 test %esi,%esi <== NOT EXECUTED
1243c8: 74 03 je 1243cd <rtems_bdpart_read+0x18><== NOT EXECUTED
1243ca: 6b 3e 30 imul $0x30,(%esi),%edi <== NOT EXECUTED
dev_t disk = 0;
size_t i = 0;
const uint8_t *data = NULL;
/* Check parameter */
if (format == NULL || pt == NULL || count == NULL) {
1243cd: 83 7d 10 00 cmpl $0x0,0x10(%ebp) <== NOT EXECUTED
1243d1: 0f 84 25 02 00 00 je 1245fc <rtems_bdpart_read+0x247><== NOT EXECUTED
1243d7: 85 db test %ebx,%ebx <== NOT EXECUTED
1243d9: 0f 84 1d 02 00 00 je 1245fc <rtems_bdpart_read+0x247><== NOT EXECUTED
1243df: 85 f6 test %esi,%esi <== NOT EXECUTED
1243e1: 0f 84 15 02 00 00 je 1245fc <rtems_bdpart_read+0x247><== NOT EXECUTED
rtems_bdbuf_buffer *block = NULL;
rtems_bdpart_partition *p = pt - 1;
const rtems_bdpart_partition *p_end = pt + (count != NULL ? *count : 0);
rtems_blkdev_bnum ep_begin = 0; /* Extended partition begin */
rtems_blkdev_bnum ebr = 0; /* Extended boot record block index */
rtems_blkdev_bnum disk_end = 0;
1243e7: c7 45 d8 00 00 00 00 movl $0x0,-0x28(%ebp) <== NOT EXECUTED
rtems_status_code sc = RTEMS_SUCCESSFUL;
rtems_status_code esc = RTEMS_SUCCESSFUL;
rtems_bdbuf_buffer *block = NULL;
rtems_bdpart_partition *p = pt - 1;
const rtems_bdpart_partition *p_end = pt + (count != NULL ? *count : 0);
rtems_blkdev_bnum ep_begin = 0; /* Extended partition begin */
1243ee: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp) <== NOT EXECUTED
if (format == NULL || pt == NULL || count == NULL) {
return RTEMS_INVALID_ADDRESS;
}
/* Set count to a save value */
*count = 0;
1243f5: c7 06 00 00 00 00 movl $0x0,(%esi) <== NOT EXECUTED
rtems_bdpart_partition *p = pt - 1;
const rtems_bdpart_partition *p_end = pt + (count != NULL ? *count : 0);
rtems_blkdev_bnum ep_begin = 0; /* Extended partition begin */
rtems_blkdev_bnum ebr = 0; /* Extended boot record block index */
rtems_blkdev_bnum disk_end = 0;
dev_t disk = 0;
1243fb: c7 45 d0 00 00 00 00 movl $0x0,-0x30(%ebp) <== NOT EXECUTED
124402: c7 45 d4 00 00 00 00 movl $0x0,-0x2c(%ebp) <== NOT EXECUTED
)
{
rtems_status_code sc = RTEMS_SUCCESSFUL;
rtems_status_code esc = RTEMS_SUCCESSFUL;
rtems_bdbuf_buffer *block = NULL;
rtems_bdpart_partition *p = pt - 1;
124409: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
12440c: 83 e8 30 sub $0x30,%eax <== NOT EXECUTED
12440f: 89 45 e0 mov %eax,-0x20(%ebp) <== NOT EXECUTED
size_t *count
)
{
rtems_status_code sc = RTEMS_SUCCESSFUL;
rtems_status_code esc = RTEMS_SUCCESSFUL;
rtems_bdbuf_buffer *block = NULL;
124412: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) <== NOT EXECUTED
/* Set count to a save value */
*count = 0;
/* Get disk data */
sc = rtems_bdpart_get_disk_data( disk_name, &disk, &disk_end);
124419: 50 push %eax <== NOT EXECUTED
12441a: 8d 45 d8 lea -0x28(%ebp),%eax <== NOT EXECUTED
12441d: 50 push %eax <== NOT EXECUTED
12441e: 8d 45 d0 lea -0x30(%ebp),%eax <== NOT EXECUTED
124421: 50 push %eax <== NOT EXECUTED
124422: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
124425: e8 eb fd ff ff call 124215 <rtems_bdpart_get_disk_data><== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
12442a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12442d: 85 c0 test %eax,%eax <== NOT EXECUTED
12442f: 0f 85 cc 01 00 00 jne 124601 <rtems_bdpart_read+0x24c><== NOT EXECUTED
return sc;
}
/* Read MBR */
sc = rtems_bdpart_read_record( disk, 0, &block);
124435: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
124438: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
12443b: 50 push %eax <== NOT EXECUTED
12443c: 31 c9 xor %ecx,%ecx <== NOT EXECUTED
12443e: 8b 45 d0 mov -0x30(%ebp),%eax <== NOT EXECUTED
124441: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED
124444: e8 5b fd ff ff call 1241a4 <rtems_bdpart_read_record><== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
124449: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12444c: 89 c2 mov %eax,%edx <== NOT EXECUTED
12444e: 85 c0 test %eax,%eax <== NOT EXECUTED
124450: 0f 85 87 01 00 00 jne 1245dd <rtems_bdpart_read+0x228><== NOT EXECUTED
{
rtems_status_code sc = RTEMS_SUCCESSFUL;
rtems_status_code esc = RTEMS_SUCCESSFUL;
rtems_bdbuf_buffer *block = NULL;
rtems_bdpart_partition *p = pt - 1;
const rtems_bdpart_partition *p_end = pt + (count != NULL ? *count : 0);
124456: 03 7d 10 add 0x10(%ebp),%edi <== NOT EXECUTED
124459: 89 7d bc mov %edi,-0x44(%ebp) <== NOT EXECUTED
esc = sc;
goto cleanup;
}
/* Read the first partition entry */
data = block->buffer + RTEMS_BDPART_MBR_OFFSET_TABLE_0;
12445c: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
12445f: 8b 40 20 mov 0x20(%eax),%eax <== NOT EXECUTED
124462: 89 45 c0 mov %eax,-0x40(%ebp) <== NOT EXECUTED
124465: 05 be 01 00 00 add $0x1be,%eax <== NOT EXECUTED
12446a: 89 45 c4 mov %eax,-0x3c(%ebp) <== NOT EXECUTED
sc = rtems_bdpart_read_mbr_partition( data, &p, p_end, &ep_begin);
12446d: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
124470: 8d 45 dc lea -0x24(%ebp),%eax <== NOT EXECUTED
124473: 50 push %eax <== NOT EXECUTED
124474: 89 f9 mov %edi,%ecx <== NOT EXECUTED
124476: 8d 55 e0 lea -0x20(%ebp),%edx <== NOT EXECUTED
124479: 8b 45 c4 mov -0x3c(%ebp),%eax <== NOT EXECUTED
12447c: e8 54 fe ff ff call 1242d5 <rtems_bdpart_read_mbr_partition><== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
124481: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
124484: 89 c2 mov %eax,%edx <== NOT EXECUTED
124486: 85 c0 test %eax,%eax <== NOT EXECUTED
124488: 0f 85 4f 01 00 00 jne 1245dd <rtems_bdpart_read+0x228><== NOT EXECUTED
esc = sc;
goto cleanup;
}
/* Determine if we have a MBR or GPT format */
if (rtems_bdpart_mbr_partition_type( p->type) == RTEMS_BDPART_MBR_GPT) {
12448e: b2 18 mov $0x18,%dl <== NOT EXECUTED
124490: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
124493: 80 78 08 ee cmpb $0xee,0x8(%eax) <== NOT EXECUTED
124497: 0f 84 40 01 00 00 je 1245dd <rtems_bdpart_read+0x228><== NOT EXECUTED
esc = RTEMS_NOT_IMPLEMENTED;
goto cleanup;
}
/* Set format */
format->type = RTEMS_BDPART_FORMAT_MBR;
12449d: c7 03 00 00 00 00 movl $0x0,(%ebx) <== NOT EXECUTED
format->mbr.disk_id = rtems_uint32_from_little_endian(
1244a3: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
1244a6: 8b 48 20 mov 0x20(%eax),%ecx <== NOT EXECUTED
1244a9: 8d 81 b8 01 00 00 lea 0x1b8(%ecx),%eax <== NOT EXECUTED
1244af: 0f b6 50 03 movzbl 0x3(%eax),%edx <== NOT EXECUTED
1244b3: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
1244b6: 0f b6 78 02 movzbl 0x2(%eax),%edi <== NOT EXECUTED
1244ba: 01 fa add %edi,%edx <== NOT EXECUTED
1244bc: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
1244bf: 0f b6 78 01 movzbl 0x1(%eax),%edi <== NOT EXECUTED
1244c3: 01 fa add %edi,%edx <== NOT EXECUTED
1244c5: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
1244c8: 0f b6 b9 b8 01 00 00 movzbl 0x1b8(%ecx),%edi <== NOT EXECUTED
1244cf: 01 fa add %edi,%edx <== NOT EXECUTED
1244d1: 89 53 04 mov %edx,0x4(%ebx) <== NOT EXECUTED
block->buffer + RTEMS_BDPART_MBR_OFFSET_DISK_ID
);
format->mbr.dos_compatibility = true;
1244d4: c6 43 08 01 movb $0x1,0x8(%ebx) <== NOT EXECUTED
}
return RTEMS_SUCCESSFUL;
}
rtems_status_code rtems_bdpart_read(
1244d8: 8b 45 c0 mov -0x40(%ebp),%eax <== NOT EXECUTED
1244db: 05 ee 01 00 00 add $0x1ee,%eax <== NOT EXECUTED
1244e0: 89 45 c0 mov %eax,-0x40(%ebp) <== NOT EXECUTED
/* Iterate through the rest of the primary partition table */
for (i = 1; i < 4; ++i) {
data += RTEMS_BDPART_MBR_TABLE_ENTRY_SIZE;
sc = rtems_bdpart_read_mbr_partition( data, &p, p_end, &ep_begin);
1244e3: 8d 7d e0 lea -0x20(%ebp),%edi <== NOT EXECUTED
1244e6: 8d 5d dc lea -0x24(%ebp),%ebx <== NOT EXECUTED
);
format->mbr.dos_compatibility = true;
/* Iterate through the rest of the primary partition table */
for (i = 1; i < 4; ++i) {
data += RTEMS_BDPART_MBR_TABLE_ENTRY_SIZE;
1244e9: 83 45 c4 10 addl $0x10,-0x3c(%ebp) <== NOT EXECUTED
sc = rtems_bdpart_read_mbr_partition( data, &p, p_end, &ep_begin);
1244ed: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1244f0: 53 push %ebx <== NOT EXECUTED
1244f1: 8b 4d bc mov -0x44(%ebp),%ecx <== NOT EXECUTED
1244f4: 89 fa mov %edi,%edx <== NOT EXECUTED
1244f6: 8b 45 c4 mov -0x3c(%ebp),%eax <== NOT EXECUTED
1244f9: e8 d7 fd ff ff call 1242d5 <rtems_bdpart_read_mbr_partition><== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
1244fe: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
124501: 85 c0 test %eax,%eax <== NOT EXECUTED
124503: 75 4d jne 124552 <rtems_bdpart_read+0x19d><== NOT EXECUTED
block->buffer + RTEMS_BDPART_MBR_OFFSET_DISK_ID
);
format->mbr.dos_compatibility = true;
/* Iterate through the rest of the primary partition table */
for (i = 1; i < 4; ++i) {
124505: 8b 45 c0 mov -0x40(%ebp),%eax <== NOT EXECUTED
124508: 39 45 c4 cmp %eax,-0x3c(%ebp) <== NOT EXECUTED
12450b: 75 dc jne 1244e9 <rtems_bdpart_read+0x134><== NOT EXECUTED
goto cleanup;
}
}
/* Iterate through the logical partitions within the extended partition */
ebr = ep_begin;
12450d: 8b 5d dc mov -0x24(%ebp),%ebx <== NOT EXECUTED
while (ebr != 0) {
rtems_blkdev_bnum tmp = 0;
/* Read EBR */
sc = rtems_bdpart_read_record( disk, ebr, &block);
124510: 8d 7d e4 lea -0x1c(%ebp),%edi <== NOT EXECUTED
}
}
/* Iterate through the logical partitions within the extended partition */
ebr = ep_begin;
while (ebr != 0) {
124513: e9 a2 00 00 00 jmp 1245ba <rtems_bdpart_read+0x205><== NOT EXECUTED
rtems_blkdev_bnum tmp = 0;
/* Read EBR */
sc = rtems_bdpart_read_record( disk, ebr, &block);
124518: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12451b: 57 push %edi <== NOT EXECUTED
12451c: 89 d9 mov %ebx,%ecx <== NOT EXECUTED
12451e: 8b 45 d0 mov -0x30(%ebp),%eax <== NOT EXECUTED
124521: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED
124524: e8 7b fc ff ff call 1241a4 <rtems_bdpart_read_record><== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
124529: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12452c: 85 c0 test %eax,%eax <== NOT EXECUTED
12452e: 75 22 jne 124552 <rtems_bdpart_read+0x19d><== NOT EXECUTED
esc = sc;
goto cleanup;
}
/* Read first partition entry */
sc = rtems_bdpart_read_mbr_partition(
124530: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
124533: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
124536: 8b 40 20 mov 0x20(%eax),%eax <== NOT EXECUTED
124539: 05 be 01 00 00 add $0x1be,%eax <== NOT EXECUTED
12453e: 6a 00 push $0x0 <== NOT EXECUTED
124540: 8b 4d bc mov -0x44(%ebp),%ecx <== NOT EXECUTED
124543: 8d 55 e0 lea -0x20(%ebp),%edx <== NOT EXECUTED
124546: e8 8a fd ff ff call 1242d5 <rtems_bdpart_read_mbr_partition><== NOT EXECUTED
block->buffer + RTEMS_BDPART_MBR_OFFSET_TABLE_0,
&p,
p_end,
NULL
);
if (sc != RTEMS_SUCCESSFUL) {
12454b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12454e: 85 c0 test %eax,%eax <== NOT EXECUTED
124550: 74 07 je 124559 <rtems_bdpart_read+0x1a4><== NOT EXECUTED
124552: 89 c2 mov %eax,%edx <== NOT EXECUTED
124554: e9 84 00 00 00 jmp 1245dd <rtems_bdpart_read+0x228><== NOT EXECUTED
esc = sc;
goto cleanup;
}
/* Adjust partition begin */
tmp = p->begin + ebr;
124559: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
12455c: 8b 08 mov (%eax),%ecx <== NOT EXECUTED
12455e: 8d 14 0b lea (%ebx,%ecx,1),%edx <== NOT EXECUTED
if (tmp > p->begin) {
124561: 39 ca cmp %ecx,%edx <== NOT EXECUTED
124563: 76 73 jbe 1245d8 <rtems_bdpart_read+0x223><== NOT EXECUTED
p->begin = tmp;
124565: 89 10 mov %edx,(%eax) <== NOT EXECUTED
esc = RTEMS_IO_ERROR;
goto cleanup;
}
/* Adjust partition end */
tmp = p->end + ebr;
124567: 8b 50 04 mov 0x4(%eax),%edx <== NOT EXECUTED
12456a: 01 d3 add %edx,%ebx <== NOT EXECUTED
if (tmp > p->end) {
12456c: 39 d3 cmp %edx,%ebx <== NOT EXECUTED
12456e: 76 68 jbe 1245d8 <rtems_bdpart_read+0x223><== NOT EXECUTED
p->end = tmp;
124570: 89 58 04 mov %ebx,0x4(%eax) <== NOT EXECUTED
esc = RTEMS_IO_ERROR;
goto cleanup;
}
/* Read second partition entry for next EBR block */
ebr = rtems_bdpart_next_ebr(
124573: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
124576: 8b 40 20 mov 0x20(%eax),%eax <== NOT EXECUTED
}
static rtems_blkdev_bnum rtems_bdpart_next_ebr( const uint8_t *data)
{
rtems_blkdev_bnum begin =
rtems_uint32_from_little_endian( data + RTEMS_BDPART_MBR_OFFSET_BEGIN);
124579: 8d 90 d6 01 00 00 lea 0x1d6(%eax),%edx <== NOT EXECUTED
12457f: 0f b6 4a 03 movzbl 0x3(%edx),%ecx <== NOT EXECUTED
124583: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
124586: 0f b6 5a 02 movzbl 0x2(%edx),%ebx <== NOT EXECUTED
12458a: 01 d9 add %ebx,%ecx <== NOT EXECUTED
12458c: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
12458f: 0f b6 5a 01 movzbl 0x1(%edx),%ebx <== NOT EXECUTED
124593: 8d 1c 19 lea (%ecx,%ebx,1),%ebx <== NOT EXECUTED
124596: c1 e3 08 shl $0x8,%ebx <== NOT EXECUTED
124599: 0f b6 90 d6 01 00 00 movzbl 0x1d6(%eax),%edx <== NOT EXECUTED
1245a0: 01 d3 add %edx,%ebx <== NOT EXECUTED
uint8_t type = data [RTEMS_BDPART_MBR_OFFSET_TYPE];
if (type == RTEMS_BDPART_MBR_EXTENDED) {
1245a2: 80 b8 d2 01 00 00 05 cmpb $0x5,0x1d2(%eax) <== NOT EXECUTED
1245a9: 75 17 jne 1245c2 <rtems_bdpart_read+0x20d><== NOT EXECUTED
/* Read second partition entry for next EBR block */
ebr = rtems_bdpart_next_ebr(
block->buffer + RTEMS_BDPART_MBR_OFFSET_TABLE_1
);
if (ebr != 0) {
1245ab: 85 db test %ebx,%ebx <== NOT EXECUTED
1245ad: 74 13 je 1245c2 <rtems_bdpart_read+0x20d><== NOT EXECUTED
/* Adjust partition EBR block index */
tmp = ebr + ep_begin;
1245af: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED
1245b2: 01 d8 add %ebx,%eax <== NOT EXECUTED
if (tmp > ebr) {
1245b4: 39 d8 cmp %ebx,%eax <== NOT EXECUTED
1245b6: 76 20 jbe 1245d8 <rtems_bdpart_read+0x223><== NOT EXECUTED
1245b8: 89 c3 mov %eax,%ebx <== NOT EXECUTED
}
}
/* Iterate through the logical partitions within the extended partition */
ebr = ep_begin;
while (ebr != 0) {
1245ba: 85 db test %ebx,%ebx <== NOT EXECUTED
1245bc: 0f 85 56 ff ff ff jne 124518 <rtems_bdpart_read+0x163><== NOT EXECUTED
}
}
}
/* Return partition count */
*count = (size_t) (p - pt + 1);
1245c2: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
1245c5: 2b 45 10 sub 0x10(%ebp),%eax <== NOT EXECUTED
1245c8: c1 f8 04 sar $0x4,%eax <== NOT EXECUTED
1245cb: 69 c0 ab aa aa aa imul $0xaaaaaaab,%eax,%eax <== NOT EXECUTED
1245d1: 40 inc %eax <== NOT EXECUTED
1245d2: 89 06 mov %eax,(%esi) <== NOT EXECUTED
1245d4: 31 d2 xor %edx,%edx <== NOT EXECUTED
1245d6: eb 05 jmp 1245dd <rtems_bdpart_read+0x228><== NOT EXECUTED
1245d8: ba 1b 00 00 00 mov $0x1b,%edx <== NOT EXECUTED
cleanup:
if (block != NULL) {
1245dd: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED
1245e0: 89 d0 mov %edx,%eax <== NOT EXECUTED
1245e2: 85 c9 test %ecx,%ecx <== NOT EXECUTED
1245e4: 74 1b je 124601 <rtems_bdpart_read+0x24c><== NOT EXECUTED
rtems_bdbuf_release( block);
1245e6: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1245e9: 51 push %ecx <== NOT EXECUTED
1245ea: 89 55 b8 mov %edx,-0x48(%ebp) <== NOT EXECUTED
1245ed: e8 85 5a fe ff call 10a077 <rtems_bdbuf_release> <== NOT EXECUTED
1245f2: 8b 55 b8 mov -0x48(%ebp),%edx <== NOT EXECUTED
1245f5: 89 d0 mov %edx,%eax <== NOT EXECUTED
1245f7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1245fa: eb 05 jmp 124601 <rtems_bdpart_read+0x24c><== NOT EXECUTED
1245fc: b8 09 00 00 00 mov $0x9,%eax <== NOT EXECUTED
}
return esc;
}
124601: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
124604: 5b pop %ebx <== NOT EXECUTED
124605: 5e pop %esi <== NOT EXECUTED
124606: 5f pop %edi <== NOT EXECUTED
124607: c9 leave <== NOT EXECUTED
124608: c3 ret <== NOT EXECUTED
001242d5 <rtems_bdpart_read_mbr_partition>:
const uint8_t *data,
rtems_bdpart_partition **p,
const rtems_bdpart_partition *p_end,
rtems_blkdev_bnum *ep_begin
)
{
1242d5: 55 push %ebp <== NOT EXECUTED
1242d6: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1242d8: 57 push %edi <== NOT EXECUTED
1242d9: 56 push %esi <== NOT EXECUTED
1242da: 53 push %ebx <== NOT EXECUTED
1242db: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1242de: 89 c3 mov %eax,%ebx <== NOT EXECUTED
1242e0: 89 d6 mov %edx,%esi <== NOT EXECUTED
rtems_blkdev_bnum begin =
rtems_uint32_from_little_endian( data + RTEMS_BDPART_MBR_OFFSET_BEGIN);
1242e2: 8d 40 08 lea 0x8(%eax),%eax <== NOT EXECUTED
{
uint32_t value = 0;
ssize_t i = 0;
for (i = 3; i >= 0; --i) {
value = (value << 8) + data [i];
1242e5: 0f b6 50 03 movzbl 0x3(%eax),%edx <== NOT EXECUTED
1242e9: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
1242ec: 0f b6 78 02 movzbl 0x2(%eax),%edi <== NOT EXECUTED
1242f0: 01 fa add %edi,%edx <== NOT EXECUTED
1242f2: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
1242f5: 0f b6 78 01 movzbl 0x1(%eax),%edi <== NOT EXECUTED
1242f9: 01 fa add %edi,%edx <== NOT EXECUTED
1242fb: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
1242fe: 0f b6 43 08 movzbl 0x8(%ebx),%eax <== NOT EXECUTED
124302: 8d 04 02 lea (%edx,%eax,1),%eax <== NOT EXECUTED
124305: 89 45 ec mov %eax,-0x14(%ebp) <== NOT EXECUTED
rtems_blkdev_bnum size =
rtems_uint32_from_little_endian( data + RTEMS_BDPART_MBR_OFFSET_SIZE);
124308: 8d 43 0c lea 0xc(%ebx),%eax <== NOT EXECUTED
12430b: 0f b6 50 03 movzbl 0x3(%eax),%edx <== NOT EXECUTED
12430f: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
124312: 0f b6 78 02 movzbl 0x2(%eax),%edi <== NOT EXECUTED
124316: 01 fa add %edi,%edx <== NOT EXECUTED
124318: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
12431b: 0f b6 78 01 movzbl 0x1(%eax),%edi <== NOT EXECUTED
12431f: 01 fa add %edi,%edx <== NOT EXECUTED
124321: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
124324: 0f b6 7b 0c movzbl 0xc(%ebx),%edi <== NOT EXECUTED
124328: 8d 3c 3a lea (%edx,%edi,1),%edi <== NOT EXECUTED
12432b: 89 7d e8 mov %edi,-0x18(%ebp) <== NOT EXECUTED
rtems_blkdev_bnum end = begin + size;
uint8_t type = data [RTEMS_BDPART_MBR_OFFSET_TYPE];
12432e: 8a 53 04 mov 0x4(%ebx),%dl <== NOT EXECUTED
if (type == RTEMS_BDPART_MBR_EMPTY) {
124331: 84 d2 test %dl,%dl <== NOT EXECUTED
124333: 74 76 je 1243ab <rtems_bdpart_read_mbr_partition+0xd6><== NOT EXECUTED
return RTEMS_SUCCESSFUL;
} else if (*p == p_end) {
124335: 8b 3e mov (%esi),%edi <== NOT EXECUTED
124337: b8 05 00 00 00 mov $0x5,%eax <== NOT EXECUTED
12433c: 39 cf cmp %ecx,%edi <== NOT EXECUTED
12433e: 74 6d je 1243ad <rtems_bdpart_read_mbr_partition+0xd8><== NOT EXECUTED
{
rtems_blkdev_bnum begin =
rtems_uint32_from_little_endian( data + RTEMS_BDPART_MBR_OFFSET_BEGIN);
rtems_blkdev_bnum size =
rtems_uint32_from_little_endian( data + RTEMS_BDPART_MBR_OFFSET_SIZE);
rtems_blkdev_bnum end = begin + size;
124340: 8b 45 e8 mov -0x18(%ebp),%eax <== NOT EXECUTED
124343: 03 45 ec add -0x14(%ebp),%eax <== NOT EXECUTED
124346: 89 45 e8 mov %eax,-0x18(%ebp) <== NOT EXECUTED
if (type == RTEMS_BDPART_MBR_EMPTY) {
return RTEMS_SUCCESSFUL;
} else if (*p == p_end) {
return RTEMS_TOO_MANY;
} else if (begin >= end) {
124349: b8 1b 00 00 00 mov $0x1b,%eax <== NOT EXECUTED
12434e: 8b 4d e8 mov -0x18(%ebp),%ecx <== NOT EXECUTED
124351: 39 4d ec cmp %ecx,-0x14(%ebp) <== NOT EXECUTED
124354: 73 57 jae 1243ad <rtems_bdpart_read_mbr_partition+0xd8><== NOT EXECUTED
return RTEMS_IO_ERROR;
} else if (type == RTEMS_BDPART_MBR_EXTENDED) {
124356: 80 fa 05 cmp $0x5,%dl <== NOT EXECUTED
124359: 75 10 jne 12436b <rtems_bdpart_read_mbr_partition+0x96><== NOT EXECUTED
if (ep_begin != NULL) {
12435b: 83 7d 08 00 cmpl $0x0,0x8(%ebp) <== NOT EXECUTED
12435f: 74 4a je 1243ab <rtems_bdpart_read_mbr_partition+0xd6><== NOT EXECUTED
*ep_begin = begin;
124361: 8b 55 ec mov -0x14(%ebp),%edx <== NOT EXECUTED
124364: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
124367: 89 10 mov %edx,(%eax) <== NOT EXECUTED
124369: eb 40 jmp 1243ab <rtems_bdpart_read_mbr_partition+0xd6><== NOT EXECUTED
}
} else {
/* Increment partition index */
++(*p);
12436b: 83 c7 30 add $0x30,%edi <== NOT EXECUTED
12436e: 89 7d f0 mov %edi,-0x10(%ebp) <== NOT EXECUTED
124371: 89 3e mov %edi,(%esi) <== NOT EXECUTED
/* Clear partition */
memset( *p, 0, sizeof( rtems_bdpart_partition));
124373: b9 0c 00 00 00 mov $0xc,%ecx <== NOT EXECUTED
124378: 31 c0 xor %eax,%eax <== NOT EXECUTED
12437a: f3 ab rep stos %eax,%es:(%edi) <== NOT EXECUTED
/* Set values */
(*p)->begin = begin;
12437c: 8b 06 mov (%esi),%eax <== NOT EXECUTED
12437e: 8b 4d ec mov -0x14(%ebp),%ecx <== NOT EXECUTED
124381: 89 08 mov %ecx,(%eax) <== NOT EXECUTED
(*p)->end = end;
124383: 8b 4d e8 mov -0x18(%ebp),%ecx <== NOT EXECUTED
124386: 89 48 04 mov %ecx,0x4(%eax) <== NOT EXECUTED
rtems_bdpart_to_partition_type( type, (*p)->type);
124389: 83 c0 08 add $0x8,%eax <== NOT EXECUTED
12438c: 50 push %eax <== NOT EXECUTED
12438d: 0f b6 d2 movzbl %dl,%edx <== NOT EXECUTED
124390: 52 push %edx <== NOT EXECUTED
124391: e8 1f ff ff ff call 1242b5 <rtems_bdpart_to_partition_type><== NOT EXECUTED
(*p)->flags = data [RTEMS_BDPART_MBR_OFFSET_FLAGS];
124396: 8b 06 mov (%esi),%eax <== NOT EXECUTED
124398: 0f b6 13 movzbl (%ebx),%edx <== NOT EXECUTED
12439b: 89 50 28 mov %edx,0x28(%eax) <== NOT EXECUTED
12439e: c7 40 2c 00 00 00 00 movl $0x0,0x2c(%eax) <== NOT EXECUTED
1243a5: 31 c0 xor %eax,%eax <== NOT EXECUTED
1243a7: 5b pop %ebx <== NOT EXECUTED
1243a8: 5e pop %esi <== NOT EXECUTED
1243a9: eb 02 jmp 1243ad <rtems_bdpart_read_mbr_partition+0xd8><== NOT EXECUTED
1243ab: 31 c0 xor %eax,%eax <== NOT EXECUTED
}
return RTEMS_SUCCESSFUL;
}
1243ad: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1243b0: 5b pop %ebx <== NOT EXECUTED
1243b1: 5e pop %esi <== NOT EXECUTED
1243b2: 5f pop %edi <== NOT EXECUTED
1243b3: c9 leave <== NOT EXECUTED
1243b4: c3 ret <== NOT EXECUTED
001241a4 <rtems_bdpart_read_record>:
static rtems_status_code rtems_bdpart_read_record(
dev_t disk,
rtems_blkdev_bnum index,
rtems_bdbuf_buffer **block
)
{
1241a4: 55 push %ebp <== NOT EXECUTED
1241a5: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1241a7: 57 push %edi <== NOT EXECUTED
1241a8: 56 push %esi <== NOT EXECUTED
1241a9: 53 push %ebx <== NOT EXECUTED
1241aa: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
1241ad: 89 c3 mov %eax,%ebx <== NOT EXECUTED
1241af: 89 d6 mov %edx,%esi <== NOT EXECUTED
1241b1: 8b 7d 08 mov 0x8(%ebp),%edi <== NOT EXECUTED
rtems_status_code sc = RTEMS_SUCCESSFUL;
/* Release previous block if necessary */
if (*block != NULL) {
1241b4: 8b 07 mov (%edi),%eax <== NOT EXECUTED
1241b6: 85 c0 test %eax,%eax <== NOT EXECUTED
1241b8: 74 16 je 1241d0 <rtems_bdpart_read_record+0x2c><== NOT EXECUTED
sc = rtems_bdbuf_release( *block);
1241ba: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1241bd: 50 push %eax <== NOT EXECUTED
1241be: 89 4d e4 mov %ecx,-0x1c(%ebp) <== NOT EXECUTED
1241c1: e8 b1 5e fe ff call 10a077 <rtems_bdbuf_release> <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
1241c6: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1241c9: 85 c0 test %eax,%eax <== NOT EXECUTED
1241cb: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED
1241ce: 75 3d jne 12420d <rtems_bdpart_read_record+0x69><== NOT EXECUTED
return sc;
}
}
/* Read the record block */
sc = rtems_bdbuf_read( disk, index, block);
1241d0: 57 push %edi <== NOT EXECUTED
1241d1: 51 push %ecx <== NOT EXECUTED
1241d2: 56 push %esi <== NOT EXECUTED
1241d3: 53 push %ebx <== NOT EXECUTED
1241d4: e8 3b 6d fe ff call 10af14 <rtems_bdbuf_read> <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
1241d9: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1241dc: 85 c0 test %eax,%eax <== NOT EXECUTED
1241de: 75 2d jne 12420d <rtems_bdpart_read_record+0x69><== NOT EXECUTED
return sc;
}
/* just in case block did not get filled in */
if ( *block == NULL ) {
1241e0: 8b 17 mov (%edi),%edx <== NOT EXECUTED
1241e2: 85 d2 test %edx,%edx <== NOT EXECUTED
1241e4: 75 04 jne 1241ea <rtems_bdpart_read_record+0x46><== NOT EXECUTED
1241e6: b0 09 mov $0x9,%al <== NOT EXECUTED
1241e8: eb 23 jmp 12420d <rtems_bdpart_read_record+0x69><== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
}
/* Check MBR signature */
if (!rtems_bdpart_is_valid_record( (*block)->buffer)) {
1241ea: 8b 4a 20 mov 0x20(%edx),%ecx <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
}
static bool rtems_bdpart_is_valid_record( const uint8_t *data)
{
return data [RTEMS_BDPART_MBR_OFFSET_SIGNATURE_0]
1241ed: 31 d2 xor %edx,%edx <== NOT EXECUTED
1241ef: 80 b9 fe 01 00 00 55 cmpb $0x55,0x1fe(%ecx) <== NOT EXECUTED
1241f6: 75 0c jne 124204 <rtems_bdpart_read_record+0x60><== NOT EXECUTED
1241f8: 31 d2 xor %edx,%edx <== NOT EXECUTED
1241fa: 80 b9 ff 01 00 00 aa cmpb $0xaa,0x1ff(%ecx) <== NOT EXECUTED
124201: 0f 94 c2 sete %dl <== NOT EXECUTED
if ( *block == NULL ) {
return RTEMS_INVALID_ADDRESS;
}
/* Check MBR signature */
if (!rtems_bdpart_is_valid_record( (*block)->buffer)) {
124204: 85 d2 test %edx,%edx <== NOT EXECUTED
124206: 75 05 jne 12420d <rtems_bdpart_read_record+0x69><== NOT EXECUTED
124208: b8 1b 00 00 00 mov $0x1b,%eax <== NOT EXECUTED
return RTEMS_IO_ERROR;
}
return RTEMS_SUCCESSFUL;
}
12420d: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
124210: 5b pop %ebx <== NOT EXECUTED
124211: 5e pop %esi <== NOT EXECUTED
124212: 5f pop %edi <== NOT EXECUTED
124213: c9 leave <== NOT EXECUTED
124214: c3 ret <== NOT EXECUTED
0010b1de <rtems_bdpart_register>:
rtems_status_code rtems_bdpart_register(
const char *disk_name,
const rtems_bdpart_partition *pt,
size_t count
)
{
10b1de: 55 push %ebp <== NOT EXECUTED
10b1df: 89 e5 mov %esp,%ebp <== NOT EXECUTED
10b1e1: 57 push %edi <== NOT EXECUTED
10b1e2: 56 push %esi <== NOT EXECUTED
10b1e3: 53 push %ebx <== NOT EXECUTED
10b1e4: 83 ec 50 sub $0x50,%esp <== NOT EXECUTED
10b1e7: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
rtems_status_code sc = RTEMS_SUCCESSFUL;
rtems_status_code esc = RTEMS_SUCCESSFUL;
rtems_device_major_number major = 0;
rtems_device_minor_number minor = 0;
rtems_blkdev_bnum disk_end = 0;
10b1ea: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) <== NOT EXECUTED
dev_t disk = 0;
10b1f1: c7 45 d8 00 00 00 00 movl $0x0,-0x28(%ebp) <== NOT EXECUTED
10b1f8: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp) <== NOT EXECUTED
dev_t logical_disk = 0;
char *logical_disk_name = NULL;
char *logical_disk_marker = NULL;
size_t disk_name_size = strlen( disk_name);
10b1ff: 31 c0 xor %eax,%eax <== NOT EXECUTED
10b201: 83 c9 ff or $0xffffffff,%ecx <== NOT EXECUTED
10b204: 89 df mov %ebx,%edi <== NOT EXECUTED
10b206: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED
10b208: f7 d1 not %ecx <== NOT EXECUTED
10b20a: 8d 79 ff lea -0x1(%ecx),%edi <== NOT EXECUTED
size_t i = 0;
/* Get disk data */
sc = rtems_bdpart_get_disk_data( disk_name, &disk, &disk_end);
10b20d: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
10b210: 50 push %eax <== NOT EXECUTED
10b211: 8d 45 d8 lea -0x28(%ebp),%eax <== NOT EXECUTED
10b214: 50 push %eax <== NOT EXECUTED
10b215: 53 push %ebx <== NOT EXECUTED
10b216: 89 4d b8 mov %ecx,-0x48(%ebp) <== NOT EXECUTED
10b219: e8 f7 8f 01 00 call 124215 <rtems_bdpart_get_disk_data><== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
10b21e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10b221: 85 c0 test %eax,%eax <== NOT EXECUTED
10b223: 8b 4d b8 mov -0x48(%ebp),%ecx <== NOT EXECUTED
10b226: 0f 85 be 00 00 00 jne 10b2ea <rtems_bdpart_register+0x10c><== NOT EXECUTED
)
{
union __rtems_dev_t temp;
temp.device = device;
return temp.__overlay.major;
10b22c: 8b 45 d8 mov -0x28(%ebp),%eax <== NOT EXECUTED
10b22f: 89 45 bc mov %eax,-0x44(%ebp) <== NOT EXECUTED
dev_t device
)
{
union __rtems_dev_t temp;
temp.device = device;
10b232: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED
10b235: 89 45 c4 mov %eax,-0x3c(%ebp) <== NOT EXECUTED
/* Get the disk device identifier */
rtems_filesystem_split_dev_t( disk, major, minor);
/* Create logical disk name */
logical_disk_name = malloc( disk_name_size + RTEMS_BDPART_NUMBER_SIZE);
10b238: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10b23b: 83 c1 03 add $0x3,%ecx <== NOT EXECUTED
10b23e: 51 push %ecx <== NOT EXECUTED
10b23f: e8 a4 21 00 00 call 10d3e8 <malloc> <== NOT EXECUTED
10b244: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (logical_disk_name == NULL) {
10b246: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10b249: b8 1a 00 00 00 mov $0x1a,%eax <== NOT EXECUTED
10b24e: 85 f6 test %esi,%esi <== NOT EXECUTED
10b250: 0f 84 94 00 00 00 je 10b2ea <rtems_bdpart_register+0x10c><== NOT EXECUTED
return RTEMS_NO_MEMORY;
}
strncpy( logical_disk_name, disk_name, disk_name_size);
10b256: 52 push %edx <== NOT EXECUTED
10b257: 57 push %edi <== NOT EXECUTED
10b258: 53 push %ebx <== NOT EXECUTED
10b259: 56 push %esi <== NOT EXECUTED
10b25a: e8 41 8b 03 00 call 143da0 <strncpy> <== NOT EXECUTED
logical_disk_marker = logical_disk_name + disk_name_size;
10b25f: 8d 3c 3e lea (%esi,%edi,1),%edi <== NOT EXECUTED
10b262: 89 7d c0 mov %edi,-0x40(%ebp) <== NOT EXECUTED
10b265: 8b 7d 0c mov 0xc(%ebp),%edi <== NOT EXECUTED
10b268: 31 db xor %ebx,%ebx <== NOT EXECUTED
/* Create a logical disk for each partition */
for (i = 0; i < count; ++i) {
10b26a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10b26d: eb 62 jmp 10b2d1 <rtems_bdpart_register+0xf3><== NOT EXECUTED
const rtems_bdpart_partition *p = pt + i;
int rv = 0;
/* New minor number */
++minor;
10b26f: ff 45 c4 incl -0x3c(%ebp) <== NOT EXECUTED
rtems_device_minor_number _minor
)
{
union __rtems_dev_t temp;
temp.__overlay.major = _major;
10b272: 8b 45 bc mov -0x44(%ebp),%eax <== NOT EXECUTED
10b275: 89 45 d0 mov %eax,-0x30(%ebp) <== NOT EXECUTED
temp.__overlay.minor = _minor;
10b278: 8b 45 c4 mov -0x3c(%ebp),%eax <== NOT EXECUTED
10b27b: 89 45 d4 mov %eax,-0x2c(%ebp) <== NOT EXECUTED
return temp.device;
10b27e: 8b 55 d0 mov -0x30(%ebp),%edx <== NOT EXECUTED
10b281: 8b 4d d4 mov -0x2c(%ebp),%ecx <== NOT EXECUTED
/* Create a new device identifier */
logical_disk = rtems_filesystem_make_dev_t( major, minor);
/* Set partition number for logical disk name */
rv = snprintf( logical_disk_marker, RTEMS_BDPART_NUMBER_SIZE, "%zu", i + 1);
10b284: 43 inc %ebx <== NOT EXECUTED
10b285: 53 push %ebx <== NOT EXECUTED
10b286: 68 c7 c5 15 00 push $0x15c5c7 <== NOT EXECUTED
10b28b: 6a 04 push $0x4 <== NOT EXECUTED
10b28d: ff 75 c0 pushl -0x40(%ebp) <== NOT EXECUTED
10b290: 89 55 b4 mov %edx,-0x4c(%ebp) <== NOT EXECUTED
10b293: 89 4d b8 mov %ecx,-0x48(%ebp) <== NOT EXECUTED
10b296: e8 49 81 03 00 call 1433e4 <snprintf> <== NOT EXECUTED
if (rv >= RTEMS_BDPART_NUMBER_SIZE) {
10b29b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10b29e: 83 f8 03 cmp $0x3,%eax <== NOT EXECUTED
10b2a1: 8b 55 b4 mov -0x4c(%ebp),%edx <== NOT EXECUTED
10b2a4: 8b 4d b8 mov -0x48(%ebp),%ecx <== NOT EXECUTED
10b2a7: 7e 07 jle 10b2b0 <rtems_bdpart_register+0xd2><== NOT EXECUTED
10b2a9: b8 03 00 00 00 mov $0x3,%eax <== NOT EXECUTED
10b2ae: eb 28 jmp 10b2d8 <rtems_bdpart_register+0xfa><== NOT EXECUTED
esc = RTEMS_INVALID_NAME;
goto cleanup;
}
/* Create logical disk */
sc = rtems_disk_create_log(
10b2b0: 50 push %eax <== NOT EXECUTED
10b2b1: 56 push %esi <== NOT EXECUTED
10b2b2: 8b 47 04 mov 0x4(%edi),%eax <== NOT EXECUTED
10b2b5: 2b 07 sub (%edi),%eax <== NOT EXECUTED
10b2b7: 50 push %eax <== NOT EXECUTED
10b2b8: ff 37 pushl (%edi) <== NOT EXECUTED
10b2ba: ff 75 dc pushl -0x24(%ebp) <== NOT EXECUTED
10b2bd: ff 75 d8 pushl -0x28(%ebp) <== NOT EXECUTED
10b2c0: 51 push %ecx <== NOT EXECUTED
10b2c1: 52 push %edx <== NOT EXECUTED
10b2c2: e8 9b 0d 00 00 call 10c062 <rtems_disk_create_log> <== NOT EXECUTED
10b2c7: 83 c7 30 add $0x30,%edi <== NOT EXECUTED
disk,
p->begin,
p->end - p->begin,
logical_disk_name
);
if (sc != RTEMS_SUCCESSFUL) {
10b2ca: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
10b2cd: 85 c0 test %eax,%eax <== NOT EXECUTED
10b2cf: 75 07 jne 10b2d8 <rtems_bdpart_register+0xfa><== NOT EXECUTED
}
strncpy( logical_disk_name, disk_name, disk_name_size);
logical_disk_marker = logical_disk_name + disk_name_size;
/* Create a logical disk for each partition */
for (i = 0; i < count; ++i) {
10b2d1: 3b 5d 10 cmp 0x10(%ebp),%ebx <== NOT EXECUTED
10b2d4: 72 99 jb 10b26f <rtems_bdpart_register+0x91><== NOT EXECUTED
10b2d6: 31 c0 xor %eax,%eax <== NOT EXECUTED
}
}
cleanup:
free( logical_disk_name);
10b2d8: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10b2db: 56 push %esi <== NOT EXECUTED
10b2dc: 89 45 b8 mov %eax,-0x48(%ebp) <== NOT EXECUTED
10b2df: e8 b8 1b 00 00 call 10ce9c <free> <== NOT EXECUTED
10b2e4: 8b 45 b8 mov -0x48(%ebp),%eax <== NOT EXECUTED
return esc;
10b2e7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
10b2ea: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
10b2ed: 5b pop %ebx <== NOT EXECUTED
10b2ee: 5e pop %esi <== NOT EXECUTED
10b2ef: 5f pop %edi <== NOT EXECUTED
10b2f0: c9 leave <== NOT EXECUTED
10b2f1: c3 ret <== NOT EXECUTED
0010b2f2 <rtems_bdpart_register_from_disk>:
rtems_status_code rtems_bdpart_register_from_disk( const char *disk_name)
{
10b2f2: 55 push %ebp <== NOT EXECUTED
10b2f3: 89 e5 mov %esp,%ebp <== NOT EXECUTED
10b2f5: 56 push %esi <== NOT EXECUTED
10b2f6: 53 push %ebx <== NOT EXECUTED
10b2f7: 81 ec 20 03 00 00 sub $0x320,%esp <== NOT EXECUTED
10b2fd: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
rtems_status_code sc = RTEMS_SUCCESSFUL;
rtems_bdpart_format format;
rtems_bdpart_partition pt [RTEMS_BDPART_PARTITION_NUMBER_HINT];
size_t count = RTEMS_BDPART_PARTITION_NUMBER_HINT;
10b300: c7 45 f4 10 00 00 00 movl $0x10,-0xc(%ebp) <== NOT EXECUTED
/* Read partitions */
sc = rtems_bdpart_read( disk_name, &format, pt, &count);
10b307: 8d 45 f4 lea -0xc(%ebp),%eax <== NOT EXECUTED
10b30a: 50 push %eax <== NOT EXECUTED
10b30b: 8d b5 e0 fc ff ff lea -0x320(%ebp),%esi <== NOT EXECUTED
10b311: 56 push %esi <== NOT EXECUTED
10b312: 8d 45 e0 lea -0x20(%ebp),%eax <== NOT EXECUTED
10b315: 50 push %eax <== NOT EXECUTED
10b316: 53 push %ebx <== NOT EXECUTED
10b317: e8 99 90 01 00 call 1243b5 <rtems_bdpart_read> <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
10b31c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10b31f: 85 c0 test %eax,%eax <== NOT EXECUTED
10b321: 75 0e jne 10b331 <rtems_bdpart_register_from_disk+0x3f><== NOT EXECUTED
return sc;
}
/* Register partitions */
return rtems_bdpart_register( disk_name, pt, count);
10b323: 51 push %ecx <== NOT EXECUTED
10b324: ff 75 f4 pushl -0xc(%ebp) <== NOT EXECUTED
10b327: 56 push %esi <== NOT EXECUTED
10b328: 53 push %ebx <== NOT EXECUTED
10b329: e8 b0 fe ff ff call 10b1de <rtems_bdpart_register> <== NOT EXECUTED
10b32e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
10b331: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
10b334: 5b pop %ebx <== NOT EXECUTED
10b335: 5e pop %esi <== NOT EXECUTED
10b336: c9 leave <== NOT EXECUTED
10b337: c3 ret <== NOT EXECUTED
0012428d <rtems_bdpart_to_mbr_partition_type>:
bool rtems_bdpart_to_mbr_partition_type(
const uuid_t type,
uint8_t *mbr_type
)
{
12428d: 55 push %ebp <== NOT EXECUTED
12428e: 89 e5 mov %esp,%ebp <== NOT EXECUTED
124290: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
124293: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
*mbr_type = rtems_bdpart_mbr_partition_type( type);
124296: 8a 08 mov (%eax),%cl <== NOT EXECUTED
124298: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
12429b: 88 0a mov %cl,(%edx) <== NOT EXECUTED
return memcmp(
12429d: 40 inc %eax <== NOT EXECUTED
12429e: 6a 0f push $0xf <== NOT EXECUTED
1242a0: 68 f5 aa 15 00 push $0x15aaf5 <== NOT EXECUTED
1242a5: 50 push %eax <== NOT EXECUTED
1242a6: e8 5d cd 01 00 call 141008 <memcmp> <== NOT EXECUTED
1242ab: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1242ae: 85 c0 test %eax,%eax <== NOT EXECUTED
1242b0: 0f 94 c0 sete %al <== NOT EXECUTED
type + 1,
RTEMS_BDPART_MBR_MASTER_TYPE + 1,
sizeof( uuid_t) - 1
) == 0;
}
1242b3: c9 leave <== NOT EXECUTED
1242b4: c3 ret <== NOT EXECUTED
001242b5 <rtems_bdpart_to_partition_type>:
static const uuid_t RTEMS_BDPART_MBR_MASTER_TYPE =
RTEMS_BDPART_MBR_PARTITION_TYPE( RTEMS_BDPART_MBR_EMPTY);
void rtems_bdpart_to_partition_type( uint8_t mbr_type, uuid_t type)
{
1242b5: 55 push %ebp <== NOT EXECUTED
1242b6: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1242b8: 57 push %edi <== NOT EXECUTED
1242b9: 56 push %esi <== NOT EXECUTED
1242ba: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
type [0] = mbr_type;
1242bd: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
1242c0: 88 10 mov %dl,(%eax) <== NOT EXECUTED
memcpy( type + 1, RTEMS_BDPART_MBR_MASTER_TYPE + 1, sizeof( uuid_t) - 1);
1242c2: 40 inc %eax <== NOT EXECUTED
1242c3: be f5 aa 15 00 mov $0x15aaf5,%esi <== NOT EXECUTED
1242c8: b9 0f 00 00 00 mov $0xf,%ecx <== NOT EXECUTED
1242cd: 89 c7 mov %eax,%edi <== NOT EXECUTED
1242cf: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
}
1242d1: 5e pop %esi <== NOT EXECUTED
1242d2: 5f pop %edi <== NOT EXECUTED
1242d3: c9 leave <== NOT EXECUTED
1242d4: c3 ret <== NOT EXECUTED
00123f08 <rtems_bdpart_unmount>:
const char *disk_name,
const rtems_bdpart_partition *pt __attribute__((unused)),
size_t count,
const char *mount_base
)
{
123f08: 55 push %ebp <== NOT EXECUTED
123f09: 89 e5 mov %esp,%ebp <== NOT EXECUTED
123f0b: 57 push %edi <== NOT EXECUTED
123f0c: 56 push %esi <== NOT EXECUTED
123f0d: 53 push %ebx <== NOT EXECUTED
123f0e: 83 ec 24 sub $0x24,%esp <== NOT EXECUTED
rtems_status_code esc = RTEMS_SUCCESSFUL;
const char *disk_file_name = strrchr( disk_name, '/');
123f11: 6a 2f push $0x2f <== NOT EXECUTED
123f13: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
123f16: e8 05 05 02 00 call 144420 <strrchr> <== NOT EXECUTED
123f1b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
123f1e: 89 c2 mov %eax,%edx <== NOT EXECUTED
char *mount_point = NULL;
char *mount_marker = NULL;
size_t disk_file_name_size = 0;
size_t disk_name_size = strlen( disk_name);
123f20: 83 ce ff or $0xffffffff,%esi <== NOT EXECUTED
123f23: 31 c0 xor %eax,%eax <== NOT EXECUTED
123f25: 89 f1 mov %esi,%ecx <== NOT EXECUTED
123f27: 8b 7d 08 mov 0x8(%ebp),%edi <== NOT EXECUTED
123f2a: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED
123f2c: f7 d1 not %ecx <== NOT EXECUTED
123f2e: 49 dec %ecx <== NOT EXECUTED
123f2f: 89 4d dc mov %ecx,-0x24(%ebp) <== NOT EXECUTED
size_t mount_base_size = strlen( mount_base);
123f32: 89 f1 mov %esi,%ecx <== NOT EXECUTED
123f34: 8b 7d 14 mov 0x14(%ebp),%edi <== NOT EXECUTED
123f37: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED
123f39: f7 d1 not %ecx <== NOT EXECUTED
123f3b: 89 4d e0 mov %ecx,-0x20(%ebp) <== NOT EXECUTED
123f3e: 89 cb mov %ecx,%ebx <== NOT EXECUTED
123f40: 4b dec %ebx <== NOT EXECUTED
size_t i = 0;
/* Get disk file name */
if (disk_file_name != NULL) {
123f41: 85 d2 test %edx,%edx <== NOT EXECUTED
123f43: 75 0b jne 123f50 <rtems_bdpart_unmount+0x48><== NOT EXECUTED
123f45: 8b 75 dc mov -0x24(%ebp),%esi <== NOT EXECUTED
123f48: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
123f4b: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
123f4e: eb 0f jmp 123f5f <rtems_bdpart_unmount+0x57><== NOT EXECUTED
disk_file_name += 1;
123f50: 42 inc %edx <== NOT EXECUTED
123f51: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED
disk_file_name_size = strlen( disk_file_name);
123f54: 89 f1 mov %esi,%ecx <== NOT EXECUTED
123f56: 89 d7 mov %edx,%edi <== NOT EXECUTED
123f58: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED
123f5a: 89 ce mov %ecx,%esi <== NOT EXECUTED
123f5c: f7 d6 not %esi <== NOT EXECUTED
123f5e: 4e dec %esi <== NOT EXECUTED
disk_file_name = disk_name;
disk_file_name_size = disk_name_size;
}
/* Create mount point base */
mount_point = malloc( mount_base_size + 1 + disk_file_name_size + RTEMS_BDPART_NUMBER_SIZE);
123f5f: 8d 04 1e lea (%esi,%ebx,1),%eax <== NOT EXECUTED
123f62: 89 45 dc mov %eax,-0x24(%ebp) <== NOT EXECUTED
123f65: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
123f68: 83 c0 05 add $0x5,%eax <== NOT EXECUTED
123f6b: 50 push %eax <== NOT EXECUTED
123f6c: e8 77 94 fe ff call 10d3e8 <malloc> <== NOT EXECUTED
123f71: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (mount_point == NULL) {
123f73: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
123f76: b8 1a 00 00 00 mov $0x1a,%eax <== NOT EXECUTED
123f7b: 85 ff test %edi,%edi <== NOT EXECUTED
123f7d: 74 7e je 123ffd <rtems_bdpart_unmount+0xf5><== NOT EXECUTED
esc = RTEMS_NO_MEMORY;
goto cleanup;
}
strncpy( mount_point, mount_base, mount_base_size);
123f7f: 50 push %eax <== NOT EXECUTED
123f80: 53 push %ebx <== NOT EXECUTED
123f81: ff 75 14 pushl 0x14(%ebp) <== NOT EXECUTED
123f84: 57 push %edi <== NOT EXECUTED
123f85: e8 16 fe 01 00 call 143da0 <strncpy> <== NOT EXECUTED
mount_point [mount_base_size] = '/';
123f8a: 8b 4d e0 mov -0x20(%ebp),%ecx <== NOT EXECUTED
123f8d: c6 44 0f ff 2f movb $0x2f,-0x1(%edi,%ecx,1) <== NOT EXECUTED
strncpy( mount_point + mount_base_size + 1, disk_file_name, disk_file_name_size);
123f92: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
123f95: 56 push %esi <== NOT EXECUTED
123f96: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
123f99: 8d 44 1f 01 lea 0x1(%edi,%ebx,1),%eax <== NOT EXECUTED
123f9d: 50 push %eax <== NOT EXECUTED
123f9e: e8 fd fd 01 00 call 143da0 <strncpy> <== NOT EXECUTED
/* Marker */
mount_marker = mount_point + mount_base_size + 1 + disk_file_name_size;
123fa3: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED
123fa6: 8d 74 07 01 lea 0x1(%edi,%eax,1),%esi <== NOT EXECUTED
123faa: 31 db xor %ebx,%ebx <== NOT EXECUTED
/* Mount supported file systems for each partition */
for (i = 0; i < count; ++i) {
123fac: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
123faf: eb 45 jmp 123ff6 <rtems_bdpart_unmount+0xee><== NOT EXECUTED
/* Create mount point */
int rv = snprintf( mount_marker, RTEMS_BDPART_NUMBER_SIZE, "%zu", i + 1);
123fb1: 43 inc %ebx <== NOT EXECUTED
123fb2: 53 push %ebx <== NOT EXECUTED
123fb3: 68 c7 c5 15 00 push $0x15c5c7 <== NOT EXECUTED
123fb8: 6a 04 push $0x4 <== NOT EXECUTED
123fba: 56 push %esi <== NOT EXECUTED
123fbb: e8 24 f4 01 00 call 1433e4 <snprintf> <== NOT EXECUTED
if (rv >= RTEMS_BDPART_NUMBER_SIZE) {
123fc0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
123fc3: 83 f8 03 cmp $0x3,%eax <== NOT EXECUTED
123fc6: 7e 07 jle 123fcf <rtems_bdpart_unmount+0xc7><== NOT EXECUTED
123fc8: b8 03 00 00 00 mov $0x3,%eax <== NOT EXECUTED
123fcd: eb 2e jmp 123ffd <rtems_bdpart_unmount+0xf5><== NOT EXECUTED
esc = RTEMS_INVALID_NAME;
goto cleanup;
}
/* Unmount */
rv = unmount( mount_point);
123fcf: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
123fd2: 57 push %edi <== NOT EXECUTED
123fd3: e8 65 58 00 00 call 12983d <unmount> <== NOT EXECUTED
if (rv == 0) {
123fd8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
123fdb: 85 c0 test %eax,%eax <== NOT EXECUTED
123fdd: 75 17 jne 123ff6 <rtems_bdpart_unmount+0xee><== NOT EXECUTED
/* Remove mount point */
rv = rmdir( mount_point);
123fdf: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
123fe2: 57 push %edi <== NOT EXECUTED
123fe3: e8 80 54 00 00 call 129468 <rmdir> <== NOT EXECUTED
if (rv != 0) {
123fe8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
123feb: 85 c0 test %eax,%eax <== NOT EXECUTED
123fed: 74 07 je 123ff6 <rtems_bdpart_unmount+0xee><== NOT EXECUTED
123fef: b8 1b 00 00 00 mov $0x1b,%eax <== NOT EXECUTED
123ff4: eb 07 jmp 123ffd <rtems_bdpart_unmount+0xf5><== NOT EXECUTED
/* Marker */
mount_marker = mount_point + mount_base_size + 1 + disk_file_name_size;
/* Mount supported file systems for each partition */
for (i = 0; i < count; ++i) {
123ff6: 3b 5d 10 cmp 0x10(%ebp),%ebx <== NOT EXECUTED
123ff9: 72 b6 jb 123fb1 <rtems_bdpart_unmount+0xa9><== NOT EXECUTED
123ffb: 31 c0 xor %eax,%eax <== NOT EXECUTED
}
}
cleanup:
free( mount_point);
123ffd: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
124000: 57 push %edi <== NOT EXECUTED
124001: 89 45 d8 mov %eax,-0x28(%ebp) <== NOT EXECUTED
124004: e8 93 8e fe ff call 10ce9c <free> <== NOT EXECUTED
return esc;
}
124009: 8b 45 d8 mov -0x28(%ebp),%eax <== NOT EXECUTED
12400c: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
12400f: 5b pop %ebx <== NOT EXECUTED
124010: 5e pop %esi <== NOT EXECUTED
124011: 5f pop %edi <== NOT EXECUTED
124012: c9 leave <== NOT EXECUTED
124013: c3 ret <== NOT EXECUTED
0010b16c <rtems_bdpart_unregister>:
rtems_status_code rtems_bdpart_unregister(
const char *disk_name,
const rtems_bdpart_partition *pt __attribute__((unused)),
size_t count
)
{
10b16c: 55 push %ebp <== NOT EXECUTED
10b16d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
10b16f: 57 push %edi <== NOT EXECUTED
10b170: 56 push %esi <== NOT EXECUTED
10b171: 53 push %ebx <== NOT EXECUTED
10b172: 83 ec 40 sub $0x40,%esp <== NOT EXECUTED
rtems_status_code sc = RTEMS_SUCCESSFUL;
rtems_device_major_number major = 0;
rtems_device_minor_number minor = 0;
rtems_blkdev_bnum disk_end = 0;
10b175: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) <== NOT EXECUTED
dev_t disk = 0;
10b17c: c7 45 d8 00 00 00 00 movl $0x0,-0x28(%ebp) <== NOT EXECUTED
10b183: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp) <== NOT EXECUTED
dev_t logical_disk = 0;
size_t i = 0;
/* Get disk data */
sc = rtems_bdpart_get_disk_data( disk_name, &disk, &disk_end);
10b18a: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
10b18d: 50 push %eax <== NOT EXECUTED
10b18e: 8d 45 d8 lea -0x28(%ebp),%eax <== NOT EXECUTED
10b191: 50 push %eax <== NOT EXECUTED
10b192: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
10b195: e8 7b 90 01 00 call 124215 <rtems_bdpart_get_disk_data><== NOT EXECUTED
10b19a: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
10b19c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10b19f: 85 c0 test %eax,%eax <== NOT EXECUTED
10b1a1: 75 31 jne 10b1d4 <rtems_bdpart_unregister+0x68><== NOT EXECUTED
return temp.__overlay.major;
10b1a3: 8b 55 d8 mov -0x28(%ebp),%edx <== NOT EXECUTED
dev_t device
)
{
union __rtems_dev_t temp;
temp.device = device;
10b1a6: 8b 75 dc mov -0x24(%ebp),%esi <== NOT EXECUTED
return temp.__overlay.minor;
10b1a9: 31 db xor %ebx,%ebx <== NOT EXECUTED
/* Get the disk device identifier */
rtems_filesystem_split_dev_t( disk, major, minor);
/* Create a logical disk for each partition */
for (i = 0; i < count; ++i) {
10b1ab: eb 22 jmp 10b1cf <rtems_bdpart_unregister+0x63><== NOT EXECUTED
/* New minor number */
++minor;
10b1ad: 46 inc %esi <== NOT EXECUTED
rtems_device_minor_number _minor
)
{
union __rtems_dev_t temp;
temp.__overlay.major = _major;
10b1ae: 89 55 d0 mov %edx,-0x30(%ebp) <== NOT EXECUTED
temp.__overlay.minor = _minor;
10b1b1: 89 75 d4 mov %esi,-0x2c(%ebp) <== NOT EXECUTED
/* Get the device identifier */
logical_disk = rtems_filesystem_make_dev_t( major, minor);
/* Delete logical disk */
sc = rtems_disk_delete( logical_disk);
10b1b4: 50 push %eax <== NOT EXECUTED
10b1b5: 50 push %eax <== NOT EXECUTED
10b1b6: ff 75 d4 pushl -0x2c(%ebp) <== NOT EXECUTED
10b1b9: ff 75 d0 pushl -0x30(%ebp) <== NOT EXECUTED
10b1bc: 89 55 c4 mov %edx,-0x3c(%ebp) <== NOT EXECUTED
10b1bf: e8 80 0b 00 00 call 10bd44 <rtems_disk_delete> <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
10b1c4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10b1c7: 85 c0 test %eax,%eax <== NOT EXECUTED
10b1c9: 8b 55 c4 mov -0x3c(%ebp),%edx <== NOT EXECUTED
10b1cc: 75 08 jne 10b1d6 <rtems_bdpart_unregister+0x6a><== NOT EXECUTED
/* Get the disk device identifier */
rtems_filesystem_split_dev_t( disk, major, minor);
/* Create a logical disk for each partition */
for (i = 0; i < count; ++i) {
10b1ce: 43 inc %ebx <== NOT EXECUTED
10b1cf: 3b 5d 10 cmp 0x10(%ebp),%ebx <== NOT EXECUTED
10b1d2: 72 d9 jb 10b1ad <rtems_bdpart_unregister+0x41><== NOT EXECUTED
10b1d4: 89 f8 mov %edi,%eax <== NOT EXECUTED
return sc;
}
}
return RTEMS_SUCCESSFUL;
}
10b1d6: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
10b1d9: 5b pop %ebx <== NOT EXECUTED
10b1da: 5e pop %esi <== NOT EXECUTED
10b1db: 5f pop %edi <== NOT EXECUTED
10b1dc: c9 leave <== NOT EXECUTED
10b1dd: c3 ret <== NOT EXECUTED
00124686 <rtems_bdpart_write>:
const char *disk_name,
const rtems_bdpart_format *format,
const rtems_bdpart_partition *pt,
size_t count
)
{
124686: 55 push %ebp <== NOT EXECUTED
124687: 89 e5 mov %esp,%ebp <== NOT EXECUTED
124689: 57 push %edi <== NOT EXECUTED
12468a: 56 push %esi <== NOT EXECUTED
12468b: 53 push %ebx <== NOT EXECUTED
12468c: 83 ec 6c sub $0x6c,%esp <== NOT EXECUTED
12468f: 8b 75 0c mov 0xc(%ebp),%esi <== NOT EXECUTED
rtems_status_code sc = RTEMS_SUCCESSFUL;
rtems_status_code esc = RTEMS_SUCCESSFUL;
bool dos_compatibility = format != NULL
124692: 85 f6 test %esi,%esi <== NOT EXECUTED
124694: 74 0b je 1246a1 <rtems_bdpart_write+0x1b><== NOT EXECUTED
&& format->type == RTEMS_BDPART_FORMAT_MBR
124696: 83 3e 00 cmpl $0x0,(%esi) <== NOT EXECUTED
124699: 75 06 jne 1246a1 <rtems_bdpart_write+0x1b><== NOT EXECUTED
12469b: 0f b6 4e 08 movzbl 0x8(%esi),%ecx <== NOT EXECUTED
12469f: eb 02 jmp 1246a3 <rtems_bdpart_write+0x1d><== NOT EXECUTED
1246a1: 31 c9 xor %ecx,%ecx <== NOT EXECUTED
&& format->mbr.dos_compatibility;
rtems_bdbuf_buffer *block = NULL;
rtems_blkdev_bnum disk_end = 0;
rtems_blkdev_bnum record_space =
dos_compatibility ? RTEMS_BDPART_MBR_CYLINDER_SIZE : 1;
1246a3: 80 f9 01 cmp $0x1,%cl <== NOT EXECUTED
1246a6: 19 c0 sbb %eax,%eax <== NOT EXECUTED
1246a8: 83 e0 c2 and $0xffffffc2,%eax <== NOT EXECUTED
1246ab: 83 c0 3f add $0x3f,%eax <== NOT EXECUTED
1246ae: 89 45 b8 mov %eax,-0x48(%ebp) <== NOT EXECUTED
size_t ppc = 0; /* Primary partition count */
size_t i = 0;
uint8_t *data = NULL;
/* Check if we have something to do */
if (count == 0) {
1246b1: 31 c0 xor %eax,%eax <== NOT EXECUTED
1246b3: 83 7d 14 00 cmpl $0x0,0x14(%ebp) <== NOT EXECUTED
1246b7: 0f 84 2a 04 00 00 je 124ae7 <rtems_bdpart_write+0x461><== NOT EXECUTED
/* Nothing to do */
return RTEMS_SUCCESSFUL;
}
/* Check parameter */
if (format == NULL || pt == NULL) {
1246bd: 83 7d 10 00 cmpl $0x0,0x10(%ebp) <== NOT EXECUTED
1246c1: 74 04 je 1246c7 <rtems_bdpart_write+0x41><== NOT EXECUTED
1246c3: 85 f6 test %esi,%esi <== NOT EXECUTED
1246c5: 75 0a jne 1246d1 <rtems_bdpart_write+0x4b><== NOT EXECUTED
1246c7: b8 09 00 00 00 mov $0x9,%eax <== NOT EXECUTED
1246cc: e9 16 04 00 00 jmp 124ae7 <rtems_bdpart_write+0x461><== NOT EXECUTED
&& format->mbr.dos_compatibility;
rtems_bdbuf_buffer *block = NULL;
rtems_blkdev_bnum disk_end = 0;
rtems_blkdev_bnum record_space =
dos_compatibility ? RTEMS_BDPART_MBR_CYLINDER_SIZE : 1;
dev_t disk = 0;
1246d1: c7 45 d0 00 00 00 00 movl $0x0,-0x30(%ebp) <== NOT EXECUTED
1246d8: c7 45 d4 00 00 00 00 movl $0x0,-0x2c(%ebp) <== NOT EXECUTED
rtems_status_code esc = RTEMS_SUCCESSFUL;
bool dos_compatibility = format != NULL
&& format->type == RTEMS_BDPART_FORMAT_MBR
&& format->mbr.dos_compatibility;
rtems_bdbuf_buffer *block = NULL;
rtems_blkdev_bnum disk_end = 0;
1246df: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp) <== NOT EXECUTED
rtems_status_code sc = RTEMS_SUCCESSFUL;
rtems_status_code esc = RTEMS_SUCCESSFUL;
bool dos_compatibility = format != NULL
&& format->type == RTEMS_BDPART_FORMAT_MBR
&& format->mbr.dos_compatibility;
rtems_bdbuf_buffer *block = NULL;
1246e6: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp) <== NOT EXECUTED
if (format == NULL || pt == NULL) {
return RTEMS_INVALID_ADDRESS;
}
/* Get disk data */
sc = rtems_bdpart_get_disk_data( disk_name, &disk, &disk_end);
1246ed: 52 push %edx <== NOT EXECUTED
1246ee: 8d 45 dc lea -0x24(%ebp),%eax <== NOT EXECUTED
1246f1: 50 push %eax <== NOT EXECUTED
1246f2: 8d 45 d0 lea -0x30(%ebp),%eax <== NOT EXECUTED
1246f5: 50 push %eax <== NOT EXECUTED
1246f6: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
1246f9: 88 4d a4 mov %cl,-0x5c(%ebp) <== NOT EXECUTED
1246fc: e8 14 fb ff ff call 124215 <rtems_bdpart_get_disk_data><== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
124701: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
124704: 85 c0 test %eax,%eax <== NOT EXECUTED
124706: 8a 4d a4 mov -0x5c(%ebp),%cl <== NOT EXECUTED
124709: 0f 85 d8 03 00 00 jne 124ae7 <rtems_bdpart_write+0x461><== NOT EXECUTED
return sc;
}
/* Align end of disk on cylinder boundary if necessary */
if (dos_compatibility) {
12470f: 84 c9 test %cl,%cl <== NOT EXECUTED
124711: 74 0f je 124722 <rtems_bdpart_write+0x9c><== NOT EXECUTED
disk_end -= (disk_end % record_space);
124713: 8b 5d dc mov -0x24(%ebp),%ebx <== NOT EXECUTED
124716: 89 d8 mov %ebx,%eax <== NOT EXECUTED
124718: 31 d2 xor %edx,%edx <== NOT EXECUTED
12471a: f7 75 b8 divl -0x48(%ebp) <== NOT EXECUTED
12471d: 29 d3 sub %edx,%ebx <== NOT EXECUTED
12471f: 89 5d dc mov %ebx,-0x24(%ebp) <== NOT EXECUTED
/* Check that we have a consistent partition table */
for (i = 0; i < count; ++i) {
const rtems_bdpart_partition *p = pt + i;
/* Check that begin and end are proper within the disk */
if (p->begin >= disk_end || p->end > disk_end) {
124722: 8b 55 dc mov -0x24(%ebp),%edx <== NOT EXECUTED
124725: 89 55 bc mov %edx,-0x44(%ebp) <== NOT EXECUTED
124728: 8b 5d 10 mov 0x10(%ebp),%ebx <== NOT EXECUTED
12472b: 89 d8 mov %ebx,%eax <== NOT EXECUTED
12472d: 31 d2 xor %edx,%edx <== NOT EXECUTED
12472f: 89 5d c0 mov %ebx,-0x40(%ebp) <== NOT EXECUTED
124732: eb 37 jmp 12476b <rtems_bdpart_write+0xe5><== NOT EXECUTED
124734: 8b 38 mov (%eax),%edi <== NOT EXECUTED
124736: 3b 7d bc cmp -0x44(%ebp),%edi <== NOT EXECUTED
124739: 0f 83 81 03 00 00 jae 124ac0 <rtems_bdpart_write+0x43a><== NOT EXECUTED
12473f: 8b 58 04 mov 0x4(%eax),%ebx <== NOT EXECUTED
124742: 89 5d c4 mov %ebx,-0x3c(%ebp) <== NOT EXECUTED
124745: 8b 5d bc mov -0x44(%ebp),%ebx <== NOT EXECUTED
124748: 39 5d c4 cmp %ebx,-0x3c(%ebp) <== NOT EXECUTED
12474b: 0f 87 6f 03 00 00 ja 124ac0 <rtems_bdpart_write+0x43a><== NOT EXECUTED
esc = RTEMS_INVALID_NUMBER;
goto cleanup;
}
/* Check that begin and end are valid */
if (p->begin >= p->end) {
124751: 3b 7d c4 cmp -0x3c(%ebp),%edi <== NOT EXECUTED
124754: 0f 83 66 03 00 00 jae 124ac0 <rtems_bdpart_write+0x43a><== NOT EXECUTED
esc = RTEMS_INVALID_NUMBER;
goto cleanup;
}
/* Check that partitions do not overlap */
if (i > 0 && pt [i - 1].end > p->begin) {
12475a: 85 d2 test %edx,%edx <== NOT EXECUTED
12475c: 74 09 je 124767 <rtems_bdpart_write+0xe1><== NOT EXECUTED
12475e: 39 78 d4 cmp %edi,-0x2c(%eax) <== NOT EXECUTED
124761: 0f 87 59 03 00 00 ja 124ac0 <rtems_bdpart_write+0x43a><== NOT EXECUTED
if (dos_compatibility) {
disk_end -= (disk_end % record_space);
}
/* Check that we have a consistent partition table */
for (i = 0; i < count; ++i) {
124767: 42 inc %edx <== NOT EXECUTED
124768: 83 c0 30 add $0x30,%eax <== NOT EXECUTED
12476b: 3b 55 14 cmp 0x14(%ebp),%edx <== NOT EXECUTED
12476e: 72 c4 jb 124734 <rtems_bdpart_write+0xae><== NOT EXECUTED
124770: 8b 5d c0 mov -0x40(%ebp),%ebx <== NOT EXECUTED
goto cleanup;
}
}
/* Check format */
if (format->type != RTEMS_BDPART_FORMAT_MBR) {
124773: bf 18 00 00 00 mov $0x18,%edi <== NOT EXECUTED
124778: 83 3e 00 cmpl $0x0,(%esi) <== NOT EXECUTED
12477b: 0f 85 4f 03 00 00 jne 124ad0 <rtems_bdpart_write+0x44a><== NOT EXECUTED
* Set primary partition count. If we have more than four partitions we need
* an extended partition which will contain the partitions of number four and
* above as logical partitions. If we have four or less partitions we can
* use the primary partition table.
*/
ppc = count <= 4 ? count : 3;
124781: c7 45 bc 03 00 00 00 movl $0x3,-0x44(%ebp) <== NOT EXECUTED
124788: 83 7d 14 04 cmpl $0x4,0x14(%ebp) <== NOT EXECUTED
12478c: 77 06 ja 124794 <rtems_bdpart_write+0x10e><== NOT EXECUTED
12478e: 8b 7d 14 mov 0x14(%ebp),%edi <== NOT EXECUTED
124791: 89 7d bc mov %edi,-0x44(%ebp) <== NOT EXECUTED
/*
* Check that the first primary partition starts at head one and sector one
* under the virtual one head and 63 sectors geometry if necessary.
*/
if (dos_compatibility && pt [0].begin != RTEMS_BDPART_MBR_CYLINDER_SIZE) {
124794: 84 c9 test %cl,%cl <== NOT EXECUTED
124796: 75 24 jne 1247bc <rtems_bdpart_write+0x136><== NOT EXECUTED
* The space for the EBR and maybe some space which is needed for DOS
* compatibility resides between the partitions. So there have to be gaps of
* the appropriate size between the partitions.
*/
for (i = ppc; i < count; ++i) {
if ((pt [i].begin - pt [i - 1].end) < record_space) {
124798: 6b 45 bc 30 imul $0x30,-0x44(%ebp),%eax <== NOT EXECUTED
12479c: 89 45 b4 mov %eax,-0x4c(%ebp) <== NOT EXECUTED
12479f: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
1247a2: 01 c2 add %eax,%edx <== NOT EXECUTED
1247a4: 89 55 ac mov %edx,-0x54(%ebp) <== NOT EXECUTED
1247a7: 89 d1 mov %edx,%ecx <== NOT EXECUTED
1247a9: 8b 45 bc mov -0x44(%ebp),%eax <== NOT EXECUTED
1247ac: 48 dec %eax <== NOT EXECUTED
1247ad: 6b c0 30 imul $0x30,%eax,%eax <== NOT EXECUTED
1247b0: 8b 7d 10 mov 0x10(%ebp),%edi <== NOT EXECUTED
1247b3: 8d 54 07 04 lea 0x4(%edi,%eax,1),%edx <== NOT EXECUTED
1247b7: 8b 45 bc mov -0x44(%ebp),%eax <== NOT EXECUTED
1247ba: eb 22 jmp 1247de <rtems_bdpart_write+0x158><== NOT EXECUTED
/*
* Check that the first primary partition starts at head one and sector one
* under the virtual one head and 63 sectors geometry if necessary.
*/
if (dos_compatibility && pt [0].begin != RTEMS_BDPART_MBR_CYLINDER_SIZE) {
1247bc: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
1247bf: 83 38 3f cmpl $0x3f,(%eax) <== NOT EXECUTED
1247c2: 0f 85 f8 02 00 00 jne 124ac0 <rtems_bdpart_write+0x43a><== NOT EXECUTED
1247c8: eb ce jmp 124798 <rtems_bdpart_write+0x112><== NOT EXECUTED
* The space for the EBR and maybe some space which is needed for DOS
* compatibility resides between the partitions. So there have to be gaps of
* the appropriate size between the partitions.
*/
for (i = ppc; i < count; ++i) {
if ((pt [i].begin - pt [i - 1].end) < record_space) {
1247ca: 8b 39 mov (%ecx),%edi <== NOT EXECUTED
1247cc: 2b 3a sub (%edx),%edi <== NOT EXECUTED
1247ce: 83 c1 30 add $0x30,%ecx <== NOT EXECUTED
1247d1: 83 c2 30 add $0x30,%edx <== NOT EXECUTED
1247d4: 3b 7d b8 cmp -0x48(%ebp),%edi <== NOT EXECUTED
1247d7: 0f 82 e3 02 00 00 jb 124ac0 <rtems_bdpart_write+0x43a><== NOT EXECUTED
* Each logical partition is described via one EBR preceding the partition.
* The space for the EBR and maybe some space which is needed for DOS
* compatibility resides between the partitions. So there have to be gaps of
* the appropriate size between the partitions.
*/
for (i = ppc; i < count; ++i) {
1247dd: 40 inc %eax <== NOT EXECUTED
1247de: 3b 45 14 cmp 0x14(%ebp),%eax <== NOT EXECUTED
1247e1: 72 e7 jb 1247ca <rtems_bdpart_write+0x144><== NOT EXECUTED
1247e3: 8b 7d 10 mov 0x10(%ebp),%edi <== NOT EXECUTED
1247e6: 31 d2 xor %edx,%edx <== NOT EXECUTED
uint8_t type = 0;
const rtems_bdpart_partition *p = pt + i;
/* Check type */
if (!rtems_bdpart_to_mbr_partition_type( p->type, &type)) {
1247e8: 8d 4d e7 lea -0x19(%ebp),%ecx <== NOT EXECUTED
1247eb: eb 4a jmp 124837 <rtems_bdpart_write+0x1b1><== NOT EXECUTED
}
}
/* Check that we can convert the parition descriptions to the MBR format */
for (i = 0; i < count; ++i) {
uint8_t type = 0;
1247ed: c6 45 e7 00 movb $0x0,-0x19(%ebp) <== NOT EXECUTED
const rtems_bdpart_partition *p = pt + i;
/* Check type */
if (!rtems_bdpart_to_mbr_partition_type( p->type, &type)) {
1247f1: 50 push %eax <== NOT EXECUTED
1247f2: 50 push %eax <== NOT EXECUTED
1247f3: 51 push %ecx <== NOT EXECUTED
1247f4: 8d 47 08 lea 0x8(%edi),%eax <== NOT EXECUTED
1247f7: 50 push %eax <== NOT EXECUTED
1247f8: 89 55 a0 mov %edx,-0x60(%ebp) <== NOT EXECUTED
1247fb: 89 4d a4 mov %ecx,-0x5c(%ebp) <== NOT EXECUTED
1247fe: e8 8a fa ff ff call 12428d <rtems_bdpart_to_mbr_partition_type><== NOT EXECUTED
124803: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
124806: 84 c0 test %al,%al <== NOT EXECUTED
124808: 8b 55 a0 mov -0x60(%ebp),%edx <== NOT EXECUTED
12480b: 8b 4d a4 mov -0x5c(%ebp),%ecx <== NOT EXECUTED
12480e: 0f 84 b3 02 00 00 je 124ac7 <rtems_bdpart_write+0x441><== NOT EXECUTED
esc = RTEMS_INVALID_ID;
goto cleanup;
}
/* Check flags */
if (p->flags > 0xffU) {
124814: 8b 47 28 mov 0x28(%edi),%eax <== NOT EXECUTED
124817: 89 45 c4 mov %eax,-0x3c(%ebp) <== NOT EXECUTED
12481a: 8b 47 2c mov 0x2c(%edi),%eax <== NOT EXECUTED
12481d: 83 c7 30 add $0x30,%edi <== NOT EXECUTED
124820: 83 f8 00 cmp $0x0,%eax <== NOT EXECUTED
124823: 0f 87 9e 02 00 00 ja 124ac7 <rtems_bdpart_write+0x441><== NOT EXECUTED
124829: 81 7d c4 ff 00 00 00 cmpl $0xff,-0x3c(%ebp) <== NOT EXECUTED
124830: 0f 87 91 02 00 00 ja 124ac7 <rtems_bdpart_write+0x441><== NOT EXECUTED
goto cleanup;
}
}
/* Check that we can convert the parition descriptions to the MBR format */
for (i = 0; i < count; ++i) {
124836: 42 inc %edx <== NOT EXECUTED
124837: 3b 55 14 cmp 0x14(%ebp),%edx <== NOT EXECUTED
12483a: 72 b1 jb 1247ed <rtems_bdpart_write+0x167><== NOT EXECUTED
/* Check ID */
/* TODO */
}
/* New MBR */
sc = rtems_bdpart_new_record( disk, 0, &block);
12483c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12483f: 8d 45 e0 lea -0x20(%ebp),%eax <== NOT EXECUTED
124842: 50 push %eax <== NOT EXECUTED
124843: 31 c9 xor %ecx,%ecx <== NOT EXECUTED
124845: 8b 45 d0 mov -0x30(%ebp),%eax <== NOT EXECUTED
124848: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED
12484b: e8 bc fd ff ff call 12460c <rtems_bdpart_new_record><== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
124850: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
124853: 89 c7 mov %eax,%edi <== NOT EXECUTED
124855: 85 c0 test %eax,%eax <== NOT EXECUTED
124857: 0f 85 73 02 00 00 jne 124ad0 <rtems_bdpart_write+0x44a><== NOT EXECUTED
esc = sc;
goto cleanup;
}
/* Write disk ID */
rtems_uint32_to_little_endian(
12485d: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
124860: 8b 50 20 mov 0x20(%eax),%edx <== NOT EXECUTED
124863: 8d 82 b8 01 00 00 lea 0x1b8(%edx),%eax <== NOT EXECUTED
124869: 8b 4e 04 mov 0x4(%esi),%ecx <== NOT EXECUTED
static inline void rtems_uint32_to_little_endian( uint32_t value, uint8_t *data)
{
size_t i = 0;
for (i = 0; i < 4; ++i) {
data [i] = (uint8_t) value;
12486c: 88 8a b8 01 00 00 mov %cl,0x1b8(%edx) <== NOT EXECUTED
value >>= 8;
124872: 89 ca mov %ecx,%edx <== NOT EXECUTED
124874: c1 ea 08 shr $0x8,%edx <== NOT EXECUTED
static inline void rtems_uint32_to_little_endian( uint32_t value, uint8_t *data)
{
size_t i = 0;
for (i = 0; i < 4; ++i) {
data [i] = (uint8_t) value;
124877: 88 50 01 mov %dl,0x1(%eax) <== NOT EXECUTED
value >>= 8;
12487a: 89 ca mov %ecx,%edx <== NOT EXECUTED
12487c: c1 ea 10 shr $0x10,%edx <== NOT EXECUTED
static inline void rtems_uint32_to_little_endian( uint32_t value, uint8_t *data)
{
size_t i = 0;
for (i = 0; i < 4; ++i) {
data [i] = (uint8_t) value;
12487f: 88 50 02 mov %dl,0x2(%eax) <== NOT EXECUTED
124882: c1 e9 18 shr $0x18,%ecx <== NOT EXECUTED
124885: 88 48 03 mov %cl,0x3(%eax) <== NOT EXECUTED
format->mbr.disk_id,
block->buffer + RTEMS_BDPART_MBR_OFFSET_DISK_ID
);
/* Write primary partition table */
data = block->buffer + RTEMS_BDPART_MBR_OFFSET_TABLE_0;
124888: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
12488b: 8b 40 20 mov 0x20(%eax),%eax <== NOT EXECUTED
12488e: 05 be 01 00 00 add $0x1be,%eax <== NOT EXECUTED
124893: 89 45 c4 mov %eax,-0x3c(%ebp) <== NOT EXECUTED
124896: 31 f6 xor %esi,%esi <== NOT EXECUTED
for (i = 0; i < ppc; ++i) {
124898: eb 6a jmp 124904 <rtems_bdpart_write+0x27e><== NOT EXECUTED
rtems_bdpart_write_mbr_partition(
data,
p->begin,
p->end - p->begin,
rtems_bdpart_mbr_partition_type( p->type),
(uint8_t) p->flags
12489a: 8b 53 28 mov 0x28(%ebx),%edx <== NOT EXECUTED
12489d: 89 55 a8 mov %edx,-0x58(%ebp) <== NOT EXECUTED
static inline uint8_t rtems_bdpart_mbr_partition_type(
const uuid_t type
)
{
return type [0];
1248a0: 8a 4b 08 mov 0x8(%ebx),%cl <== NOT EXECUTED
1248a3: 88 4d 97 mov %cl,-0x69(%ebp) <== NOT EXECUTED
data = block->buffer + RTEMS_BDPART_MBR_OFFSET_TABLE_0;
for (i = 0; i < ppc; ++i) {
const rtems_bdpart_partition *p = pt + i;
/* Write partition entry */
rtems_bdpart_write_mbr_partition(
1248a6: 8b 53 04 mov 0x4(%ebx),%edx <== NOT EXECUTED
1248a9: 8b 0b mov (%ebx),%ecx <== NOT EXECUTED
1248ab: 89 4d c0 mov %ecx,-0x40(%ebp) <== NOT EXECUTED
1248ae: 88 48 08 mov %cl,0x8(%eax) <== NOT EXECUTED
value >>= 8;
1248b1: 8b 7d c0 mov -0x40(%ebp),%edi <== NOT EXECUTED
1248b4: c1 ef 08 shr $0x8,%edi <== NOT EXECUTED
1248b7: 89 7d b0 mov %edi,-0x50(%ebp) <== NOT EXECUTED
static inline void rtems_uint32_to_little_endian( uint32_t value, uint8_t *data)
{
size_t i = 0;
for (i = 0; i < 4; ++i) {
data [i] = (uint8_t) value;
1248ba: 8a 4d b0 mov -0x50(%ebp),%cl <== NOT EXECUTED
1248bd: 88 48 09 mov %cl,0x9(%eax) <== NOT EXECUTED
value >>= 8;
1248c0: 8b 7d c0 mov -0x40(%ebp),%edi <== NOT EXECUTED
1248c3: c1 ef 10 shr $0x10,%edi <== NOT EXECUTED
static inline void rtems_uint32_to_little_endian( uint32_t value, uint8_t *data)
{
size_t i = 0;
for (i = 0; i < 4; ++i) {
data [i] = (uint8_t) value;
1248c6: 89 f9 mov %edi,%ecx <== NOT EXECUTED
1248c8: 88 48 0a mov %cl,0xa(%eax) <== NOT EXECUTED
1248cb: 8b 7d c0 mov -0x40(%ebp),%edi <== NOT EXECUTED
1248ce: c1 ef 18 shr $0x18,%edi <== NOT EXECUTED
1248d1: 89 f9 mov %edi,%ecx <== NOT EXECUTED
1248d3: 88 48 0b mov %cl,0xb(%eax) <== NOT EXECUTED
1248d6: 2b 55 c0 sub -0x40(%ebp),%edx <== NOT EXECUTED
1248d9: 88 50 0c mov %dl,0xc(%eax) <== NOT EXECUTED
value >>= 8;
1248dc: 89 d1 mov %edx,%ecx <== NOT EXECUTED
1248de: c1 e9 08 shr $0x8,%ecx <== NOT EXECUTED
static inline void rtems_uint32_to_little_endian( uint32_t value, uint8_t *data)
{
size_t i = 0;
for (i = 0; i < 4; ++i) {
data [i] = (uint8_t) value;
1248e1: 88 48 0d mov %cl,0xd(%eax) <== NOT EXECUTED
value >>= 8;
1248e4: 89 d1 mov %edx,%ecx <== NOT EXECUTED
1248e6: c1 e9 10 shr $0x10,%ecx <== NOT EXECUTED
static inline void rtems_uint32_to_little_endian( uint32_t value, uint8_t *data)
{
size_t i = 0;
for (i = 0; i < 4; ++i) {
data [i] = (uint8_t) value;
1248e9: 88 48 0e mov %cl,0xe(%eax) <== NOT EXECUTED
1248ec: c1 ea 18 shr $0x18,%edx <== NOT EXECUTED
1248ef: 88 50 0f mov %dl,0xf(%eax) <== NOT EXECUTED
uint8_t flags
)
{
rtems_uint32_to_little_endian( begin, data + RTEMS_BDPART_MBR_OFFSET_BEGIN);
rtems_uint32_to_little_endian( size, data + RTEMS_BDPART_MBR_OFFSET_SIZE);
data [RTEMS_BDPART_MBR_OFFSET_TYPE] = type;
1248f2: 8a 55 97 mov -0x69(%ebp),%dl <== NOT EXECUTED
1248f5: 88 50 04 mov %dl,0x4(%eax) <== NOT EXECUTED
data [RTEMS_BDPART_MBR_OFFSET_FLAGS] = flags;
1248f8: 8a 4d a8 mov -0x58(%ebp),%cl <== NOT EXECUTED
1248fb: 88 08 mov %cl,(%eax) <== NOT EXECUTED
p->end - p->begin,
rtems_bdpart_mbr_partition_type( p->type),
(uint8_t) p->flags
);
data += RTEMS_BDPART_MBR_TABLE_ENTRY_SIZE;
1248fd: 83 c0 10 add $0x10,%eax <== NOT EXECUTED
block->buffer + RTEMS_BDPART_MBR_OFFSET_DISK_ID
);
/* Write primary partition table */
data = block->buffer + RTEMS_BDPART_MBR_OFFSET_TABLE_0;
for (i = 0; i < ppc; ++i) {
124900: 46 inc %esi <== NOT EXECUTED
124901: 83 c3 30 add $0x30,%ebx <== NOT EXECUTED
124904: 3b 75 bc cmp -0x44(%ebp),%esi <== NOT EXECUTED
124907: 72 91 jb 12489a <rtems_bdpart_write+0x214><== NOT EXECUTED
124909: 8b 45 bc mov -0x44(%ebp),%eax <== NOT EXECUTED
12490c: c1 e0 04 shl $0x4,%eax <== NOT EXECUTED
12490f: 03 45 c4 add -0x3c(%ebp),%eax <== NOT EXECUTED
data += RTEMS_BDPART_MBR_TABLE_ENTRY_SIZE;
}
/* Write extended partition with logical partitions if necessary */
if (ppc != count) {
124912: 8b 5d 14 mov 0x14(%ebp),%ebx <== NOT EXECUTED
124915: 39 5d bc cmp %ebx,-0x44(%ebp) <== NOT EXECUTED
124918: 0f 84 b0 01 00 00 je 124ace <rtems_bdpart_write+0x448><== NOT EXECUTED
rtems_blkdev_bnum ebr = 0; /* Extended boot record block index */
/* Begin of extended partition */
rtems_blkdev_bnum ep_begin = pt [ppc].begin - record_space;
12491e: 8b 7d ac mov -0x54(%ebp),%edi <== NOT EXECUTED
124921: 8b 37 mov (%edi),%esi <== NOT EXECUTED
124923: 2b 75 b8 sub -0x48(%ebp),%esi <== NOT EXECUTED
/* Write extended partition */
rtems_bdpart_write_mbr_partition(
124926: 8b 55 dc mov -0x24(%ebp),%edx <== NOT EXECUTED
uint32_t size,
uint8_t type,
uint8_t flags
)
{
rtems_uint32_to_little_endian( begin, data + RTEMS_BDPART_MBR_OFFSET_BEGIN);
124929: 8d 48 08 lea 0x8(%eax),%ecx <== NOT EXECUTED
12492c: 89 f3 mov %esi,%ebx <== NOT EXECUTED
12492e: 88 58 08 mov %bl,0x8(%eax) <== NOT EXECUTED
value >>= 8;
124931: 89 f3 mov %esi,%ebx <== NOT EXECUTED
124933: c1 eb 08 shr $0x8,%ebx <== NOT EXECUTED
static inline void rtems_uint32_to_little_endian( uint32_t value, uint8_t *data)
{
size_t i = 0;
for (i = 0; i < 4; ++i) {
data [i] = (uint8_t) value;
124936: 88 59 01 mov %bl,0x1(%ecx) <== NOT EXECUTED
value >>= 8;
124939: 89 f3 mov %esi,%ebx <== NOT EXECUTED
12493b: c1 eb 10 shr $0x10,%ebx <== NOT EXECUTED
static inline void rtems_uint32_to_little_endian( uint32_t value, uint8_t *data)
{
size_t i = 0;
for (i = 0; i < 4; ++i) {
data [i] = (uint8_t) value;
12493e: 88 59 02 mov %bl,0x2(%ecx) <== NOT EXECUTED
124941: 89 f3 mov %esi,%ebx <== NOT EXECUTED
124943: c1 eb 18 shr $0x18,%ebx <== NOT EXECUTED
124946: 88 59 03 mov %bl,0x3(%ecx) <== NOT EXECUTED
/* Begin of extended partition */
rtems_blkdev_bnum ep_begin = pt [ppc].begin - record_space;
/* Write extended partition */
rtems_bdpart_write_mbr_partition(
124949: 29 f2 sub %esi,%edx <== NOT EXECUTED
uint8_t type,
uint8_t flags
)
{
rtems_uint32_to_little_endian( begin, data + RTEMS_BDPART_MBR_OFFSET_BEGIN);
rtems_uint32_to_little_endian( size, data + RTEMS_BDPART_MBR_OFFSET_SIZE);
12494b: 8d 48 0c lea 0xc(%eax),%ecx <== NOT EXECUTED
12494e: 88 50 0c mov %dl,0xc(%eax) <== NOT EXECUTED
value >>= 8;
124951: 89 d3 mov %edx,%ebx <== NOT EXECUTED
124953: c1 eb 08 shr $0x8,%ebx <== NOT EXECUTED
static inline void rtems_uint32_to_little_endian( uint32_t value, uint8_t *data)
{
size_t i = 0;
for (i = 0; i < 4; ++i) {
data [i] = (uint8_t) value;
124956: 88 59 01 mov %bl,0x1(%ecx) <== NOT EXECUTED
value >>= 8;
124959: 89 d3 mov %edx,%ebx <== NOT EXECUTED
12495b: c1 eb 10 shr $0x10,%ebx <== NOT EXECUTED
static inline void rtems_uint32_to_little_endian( uint32_t value, uint8_t *data)
{
size_t i = 0;
for (i = 0; i < 4; ++i) {
data [i] = (uint8_t) value;
12495e: 88 59 02 mov %bl,0x2(%ecx) <== NOT EXECUTED
124961: c1 ea 18 shr $0x18,%edx <== NOT EXECUTED
124964: 88 51 03 mov %dl,0x3(%ecx) <== NOT EXECUTED
data [RTEMS_BDPART_MBR_OFFSET_TYPE] = type;
124967: c6 40 04 05 movb $0x5,0x4(%eax) <== NOT EXECUTED
data [RTEMS_BDPART_MBR_OFFSET_FLAGS] = flags;
12496b: c6 00 00 movb $0x0,(%eax) <== NOT EXECUTED
12496e: 8b 5d 10 mov 0x10(%ebp),%ebx <== NOT EXECUTED
124971: 03 5d b4 add -0x4c(%ebp),%ebx <== NOT EXECUTED
124974: 8b 7d bc mov -0x44(%ebp),%edi <== NOT EXECUTED
124977: 89 7d c0 mov %edi,-0x40(%ebp) <== NOT EXECUTED
RTEMS_BDPART_MBR_EXTENDED,
0
);
/* Write logical partitions */
for (i = ppc; i < count; ++i) {
12497a: e9 33 01 00 00 jmp 124ab2 <rtems_bdpart_write+0x42c><== NOT EXECUTED
const rtems_bdpart_partition *p = pt + i;
/* Write second partition entry */
if (i > ppc) {
12497f: 8b 45 bc mov -0x44(%ebp),%eax <== NOT EXECUTED
124982: 39 45 c0 cmp %eax,-0x40(%ebp) <== NOT EXECUTED
124985: 0f 86 84 00 00 00 jbe 124a0f <rtems_bdpart_write+0x389><== NOT EXECUTED
rtems_blkdev_bnum begin = p->begin - record_space;
12498b: 8b 13 mov (%ebx),%edx <== NOT EXECUTED
12498d: 8b 4d b8 mov -0x48(%ebp),%ecx <== NOT EXECUTED
124990: 29 ca sub %ecx,%edx <== NOT EXECUTED
124992: 89 55 c4 mov %edx,-0x3c(%ebp) <== NOT EXECUTED
rtems_bdpart_write_mbr_partition(
124995: 8b 55 dc mov -0x24(%ebp),%edx <== NOT EXECUTED
124998: 8b 7d c4 mov -0x3c(%ebp),%edi <== NOT EXECUTED
12499b: 29 f7 sub %esi,%edi <== NOT EXECUTED
12499d: 89 7d b0 mov %edi,-0x50(%ebp) <== NOT EXECUTED
1249a0: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
1249a3: 8b 40 20 mov 0x20(%eax),%eax <== NOT EXECUTED
uint32_t size,
uint8_t type,
uint8_t flags
)
{
rtems_uint32_to_little_endian( begin, data + RTEMS_BDPART_MBR_OFFSET_BEGIN);
1249a6: 8d b8 d6 01 00 00 lea 0x1d6(%eax),%edi <== NOT EXECUTED
1249ac: 8a 4d b0 mov -0x50(%ebp),%cl <== NOT EXECUTED
1249af: 88 88 d6 01 00 00 mov %cl,0x1d6(%eax) <== NOT EXECUTED
value >>= 8;
1249b5: 8b 4d b0 mov -0x50(%ebp),%ecx <== NOT EXECUTED
1249b8: c1 e9 08 shr $0x8,%ecx <== NOT EXECUTED
static inline void rtems_uint32_to_little_endian( uint32_t value, uint8_t *data)
{
size_t i = 0;
for (i = 0; i < 4; ++i) {
data [i] = (uint8_t) value;
1249bb: 88 4f 01 mov %cl,0x1(%edi) <== NOT EXECUTED
value >>= 8;
1249be: 8b 4d b0 mov -0x50(%ebp),%ecx <== NOT EXECUTED
1249c1: c1 e9 10 shr $0x10,%ecx <== NOT EXECUTED
static inline void rtems_uint32_to_little_endian( uint32_t value, uint8_t *data)
{
size_t i = 0;
for (i = 0; i < 4; ++i) {
data [i] = (uint8_t) value;
1249c4: 88 4f 02 mov %cl,0x2(%edi) <== NOT EXECUTED
1249c7: 8b 4d b0 mov -0x50(%ebp),%ecx <== NOT EXECUTED
1249ca: c1 e9 18 shr $0x18,%ecx <== NOT EXECUTED
1249cd: 88 4f 03 mov %cl,0x3(%edi) <== NOT EXECUTED
/* Write second partition entry */
if (i > ppc) {
rtems_blkdev_bnum begin = p->begin - record_space;
rtems_bdpart_write_mbr_partition(
1249d0: 2b 55 c4 sub -0x3c(%ebp),%edx <== NOT EXECUTED
uint8_t type,
uint8_t flags
)
{
rtems_uint32_to_little_endian( begin, data + RTEMS_BDPART_MBR_OFFSET_BEGIN);
rtems_uint32_to_little_endian( size, data + RTEMS_BDPART_MBR_OFFSET_SIZE);
1249d3: 8d b8 da 01 00 00 lea 0x1da(%eax),%edi <== NOT EXECUTED
1249d9: 89 7d c4 mov %edi,-0x3c(%ebp) <== NOT EXECUTED
1249dc: 88 90 da 01 00 00 mov %dl,0x1da(%eax) <== NOT EXECUTED
value >>= 8;
1249e2: 89 d1 mov %edx,%ecx <== NOT EXECUTED
1249e4: c1 e9 08 shr $0x8,%ecx <== NOT EXECUTED
static inline void rtems_uint32_to_little_endian( uint32_t value, uint8_t *data)
{
size_t i = 0;
for (i = 0; i < 4; ++i) {
data [i] = (uint8_t) value;
1249e7: 88 4f 01 mov %cl,0x1(%edi) <== NOT EXECUTED
value >>= 8;
1249ea: 89 d7 mov %edx,%edi <== NOT EXECUTED
1249ec: c1 ef 10 shr $0x10,%edi <== NOT EXECUTED
1249ef: 89 7d b4 mov %edi,-0x4c(%ebp) <== NOT EXECUTED
static inline void rtems_uint32_to_little_endian( uint32_t value, uint8_t *data)
{
size_t i = 0;
for (i = 0; i < 4; ++i) {
data [i] = (uint8_t) value;
1249f2: 8a 4d b4 mov -0x4c(%ebp),%cl <== NOT EXECUTED
1249f5: 8b 7d c4 mov -0x3c(%ebp),%edi <== NOT EXECUTED
1249f8: 88 4f 02 mov %cl,0x2(%edi) <== NOT EXECUTED
1249fb: c1 ea 18 shr $0x18,%edx <== NOT EXECUTED
1249fe: 88 57 03 mov %dl,0x3(%edi) <== NOT EXECUTED
data [RTEMS_BDPART_MBR_OFFSET_TYPE] = type;
124a01: c6 80 d2 01 00 00 05 movb $0x5,0x1d2(%eax) <== NOT EXECUTED
data [RTEMS_BDPART_MBR_OFFSET_FLAGS] = flags;
124a08: c6 80 ce 01 00 00 00 movb $0x0,0x1ce(%eax) <== NOT EXECUTED
);
}
/* New EBR */
ebr = p->begin - record_space;
sc = rtems_bdpart_new_record( disk, ebr, &block);
124a0f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
124a12: 8b 0b mov (%ebx),%ecx <== NOT EXECUTED
124a14: 2b 4d b8 sub -0x48(%ebp),%ecx <== NOT EXECUTED
124a17: 8d 45 e0 lea -0x20(%ebp),%eax <== NOT EXECUTED
124a1a: 50 push %eax <== NOT EXECUTED
124a1b: 8b 45 d0 mov -0x30(%ebp),%eax <== NOT EXECUTED
124a1e: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED
124a21: e8 e6 fb ff ff call 12460c <rtems_bdpart_new_record><== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
124a26: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
124a29: 85 c0 test %eax,%eax <== NOT EXECUTED
124a2b: 74 07 je 124a34 <rtems_bdpart_write+0x3ae><== NOT EXECUTED
124a2d: 89 c7 mov %eax,%edi <== NOT EXECUTED
124a2f: e9 9c 00 00 00 jmp 124ad0 <rtems_bdpart_write+0x44a><== NOT EXECUTED
rtems_bdpart_write_mbr_partition(
block->buffer + RTEMS_BDPART_MBR_OFFSET_TABLE_0,
record_space,
p->end - p->begin,
rtems_bdpart_mbr_partition_type( p->type),
(uint8_t) p->flags
124a34: 8b 53 28 mov 0x28(%ebx),%edx <== NOT EXECUTED
124a37: 89 55 b0 mov %edx,-0x50(%ebp) <== NOT EXECUTED
124a3a: 8a 4b 08 mov 0x8(%ebx),%cl <== NOT EXECUTED
124a3d: 88 4d b4 mov %cl,-0x4c(%ebp) <== NOT EXECUTED
esc = sc;
goto cleanup;
}
/* Write first partition entry */
rtems_bdpart_write_mbr_partition(
124a40: 8b 7b 04 mov 0x4(%ebx),%edi <== NOT EXECUTED
124a43: 89 7d ac mov %edi,-0x54(%ebp) <== NOT EXECUTED
124a46: 8b 03 mov (%ebx),%eax <== NOT EXECUTED
124a48: 89 45 c4 mov %eax,-0x3c(%ebp) <== NOT EXECUTED
124a4b: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
124a4e: 8b 50 20 mov 0x20(%eax),%edx <== NOT EXECUTED
124a51: 8d 8a be 01 00 00 lea 0x1be(%edx),%ecx <== NOT EXECUTED
124a57: 8b 7d b8 mov -0x48(%ebp),%edi <== NOT EXECUTED
124a5a: 31 c0 xor %eax,%eax <== NOT EXECUTED
124a5c: 89 4d a8 mov %ecx,-0x58(%ebp) <== NOT EXECUTED
124a5f: 89 f9 mov %edi,%ecx <== NOT EXECUTED
124a61: 88 8c 02 c6 01 00 00 mov %cl,0x1c6(%edx,%eax,1) <== NOT EXECUTED
static inline void rtems_uint32_to_little_endian( uint32_t value, uint8_t *data)
{
size_t i = 0;
for (i = 0; i < 4; ++i) {
124a68: 40 inc %eax <== NOT EXECUTED
124a69: 31 ff xor %edi,%edi <== NOT EXECUTED
124a6b: 83 f8 04 cmp $0x4,%eax <== NOT EXECUTED
124a6e: 75 ef jne 124a5f <rtems_bdpart_write+0x3d9><== NOT EXECUTED
124a70: 8b 4d a8 mov -0x58(%ebp),%ecx <== NOT EXECUTED
124a73: 8b 45 ac mov -0x54(%ebp),%eax <== NOT EXECUTED
124a76: 2b 45 c4 sub -0x3c(%ebp),%eax <== NOT EXECUTED
124a79: 89 45 ac mov %eax,-0x54(%ebp) <== NOT EXECUTED
uint8_t type,
uint8_t flags
)
{
rtems_uint32_to_little_endian( begin, data + RTEMS_BDPART_MBR_OFFSET_BEGIN);
rtems_uint32_to_little_endian( size, data + RTEMS_BDPART_MBR_OFFSET_SIZE);
124a7c: 8d 79 0c lea 0xc(%ecx),%edi <== NOT EXECUTED
data [i] = (uint8_t) value;
124a7f: 88 41 0c mov %al,0xc(%ecx) <== NOT EXECUTED
value >>= 8;
124a82: 8b 45 ac mov -0x54(%ebp),%eax <== NOT EXECUTED
124a85: c1 e8 08 shr $0x8,%eax <== NOT EXECUTED
static inline void rtems_uint32_to_little_endian( uint32_t value, uint8_t *data)
{
size_t i = 0;
for (i = 0; i < 4; ++i) {
data [i] = (uint8_t) value;
124a88: 88 47 01 mov %al,0x1(%edi) <== NOT EXECUTED
value >>= 8;
124a8b: 8b 45 ac mov -0x54(%ebp),%eax <== NOT EXECUTED
124a8e: c1 e8 10 shr $0x10,%eax <== NOT EXECUTED
static inline void rtems_uint32_to_little_endian( uint32_t value, uint8_t *data)
{
size_t i = 0;
for (i = 0; i < 4; ++i) {
data [i] = (uint8_t) value;
124a91: 88 47 02 mov %al,0x2(%edi) <== NOT EXECUTED
124a94: 8b 45 ac mov -0x54(%ebp),%eax <== NOT EXECUTED
124a97: c1 e8 18 shr $0x18,%eax <== NOT EXECUTED
124a9a: 88 47 03 mov %al,0x3(%edi) <== NOT EXECUTED
data [RTEMS_BDPART_MBR_OFFSET_TYPE] = type;
124a9d: 8a 45 b4 mov -0x4c(%ebp),%al <== NOT EXECUTED
124aa0: 88 41 04 mov %al,0x4(%ecx) <== NOT EXECUTED
data [RTEMS_BDPART_MBR_OFFSET_FLAGS] = flags;
124aa3: 8a 4d b0 mov -0x50(%ebp),%cl <== NOT EXECUTED
124aa6: 88 8a be 01 00 00 mov %cl,0x1be(%edx) <== NOT EXECUTED
RTEMS_BDPART_MBR_EXTENDED,
0
);
/* Write logical partitions */
for (i = ppc; i < count; ++i) {
124aac: ff 45 c0 incl -0x40(%ebp) <== NOT EXECUTED
124aaf: 83 c3 30 add $0x30,%ebx <== NOT EXECUTED
124ab2: 8b 7d 14 mov 0x14(%ebp),%edi <== NOT EXECUTED
124ab5: 39 7d c0 cmp %edi,-0x40(%ebp) <== NOT EXECUTED
124ab8: 0f 82 c1 fe ff ff jb 12497f <rtems_bdpart_write+0x2f9><== NOT EXECUTED
124abe: eb 0e jmp 124ace <rtems_bdpart_write+0x448><== NOT EXECUTED
124ac0: bf 0a 00 00 00 mov $0xa,%edi <== NOT EXECUTED
124ac5: eb 09 jmp 124ad0 <rtems_bdpart_write+0x44a><== NOT EXECUTED
124ac7: bf 04 00 00 00 mov $0x4,%edi <== NOT EXECUTED
124acc: eb 02 jmp 124ad0 <rtems_bdpart_write+0x44a><== NOT EXECUTED
124ace: 31 ff xor %edi,%edi <== NOT EXECUTED
}
}
cleanup:
if (block != NULL) {
124ad0: 8b 55 e0 mov -0x20(%ebp),%edx <== NOT EXECUTED
124ad3: 89 f8 mov %edi,%eax <== NOT EXECUTED
124ad5: 85 d2 test %edx,%edx <== NOT EXECUTED
124ad7: 74 0e je 124ae7 <rtems_bdpart_write+0x461><== NOT EXECUTED
rtems_bdbuf_sync( block);
124ad9: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
124adc: 52 push %edx <== NOT EXECUTED
124add: e8 a3 5d fe ff call 10a885 <rtems_bdbuf_sync> <== NOT EXECUTED
124ae2: 89 f8 mov %edi,%eax <== NOT EXECUTED
124ae4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
return esc;
}
124ae7: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
124aea: 5b pop %ebx <== NOT EXECUTED
124aeb: 5e pop %esi <== NOT EXECUTED
124aec: 5f pop %edi <== NOT EXECUTED
124aed: c9 leave <== NOT EXECUTED
124aee: c3 ret <== NOT EXECUTED
0011098b <rtems_blkdev_generic_ioctl>:
rtems_device_driver
rtems_blkdev_generic_ioctl(
rtems_device_major_number major __attribute__((unused)),
rtems_device_minor_number minor __attribute__((unused)),
void * arg)
{
11098b: 55 push %ebp
11098c: 89 e5 mov %esp,%ebp
11098e: 53 push %ebx
11098f: 83 ec 04 sub $0x4,%esp
110992: 8b 5d 10 mov 0x10(%ebp),%ebx
rtems_libio_ioctl_args_t *args = arg;
rtems_libio_t *iop = args->iop;
rtems_disk_device *dd = iop->data1;
110995: 8b 03 mov (%ebx),%eax
110997: 8b 40 34 mov 0x34(%eax),%eax
int rc;
switch (args->command)
11099a: 8b 53 04 mov 0x4(%ebx),%edx
11099d: 81 fa 03 42 04 40 cmp $0x40044203,%edx
1109a3: 74 36 je 1109db <rtems_blkdev_generic_ioctl+0x50><== NEVER TAKEN
1109a5: 77 12 ja 1109b9 <rtems_blkdev_generic_ioctl+0x2e><== ALWAYS TAKEN
1109a7: 81 fa 06 42 00 20 cmp $0x20004206,%edx <== NOT EXECUTED
1109ad: 74 4f je 1109fe <rtems_blkdev_generic_ioctl+0x73><== NOT EXECUTED
1109af: 81 fa 02 42 04 40 cmp $0x40044202,%edx <== NOT EXECUTED
1109b5: 75 6b jne 110a22 <rtems_blkdev_generic_ioctl+0x97><== NOT EXECUTED
1109b7: eb 1a jmp 1109d3 <rtems_blkdev_generic_ioctl+0x48><== NOT EXECUTED
1109b9: 81 fa 04 42 04 80 cmp $0x80044204,%edx
1109bf: 74 2b je 1109ec <rtems_blkdev_generic_ioctl+0x61><== ALWAYS TAKEN
1109c1: 81 fa 01 42 18 c0 cmp $0xc0184201,%edx <== NOT EXECUTED
1109c7: 74 50 je 110a19 <rtems_blkdev_generic_ioctl+0x8e><== NOT EXECUTED
1109c9: 81 fa 05 42 04 40 cmp $0x40044205,%edx <== NOT EXECUTED
1109cf: 75 51 jne 110a22 <rtems_blkdev_generic_ioctl+0x97><== NOT EXECUTED
1109d1: eb 23 jmp 1109f6 <rtems_blkdev_generic_ioctl+0x6b><== NOT EXECUTED
{
case RTEMS_BLKIO_GETMEDIABLKSIZE:
*((uint32_t *) args->buffer) = dd->media_block_size;
1109d3: 8b 53 08 mov 0x8(%ebx),%edx <== NOT EXECUTED
1109d6: 8b 40 24 mov 0x24(%eax),%eax <== NOT EXECUTED
1109d9: eb 06 jmp 1109e1 <rtems_blkdev_generic_ioctl+0x56><== NOT EXECUTED
args->ioctl_return = 0;
break;
case RTEMS_BLKIO_GETBLKSIZE:
*((uint32_t *) args->buffer) = dd->block_size;
1109db: 8b 53 08 mov 0x8(%ebx),%edx <== NOT EXECUTED
1109de: 8b 40 20 mov 0x20(%eax),%eax <== NOT EXECUTED
1109e1: 89 02 mov %eax,(%edx) <== NOT EXECUTED
args->ioctl_return = 0;
1109e3: c7 43 0c 00 00 00 00 movl $0x0,0xc(%ebx)
break;
1109ea: eb 47 jmp 110a33 <rtems_blkdev_generic_ioctl+0xa8>
case RTEMS_BLKIO_SETBLKSIZE:
dd->block_size = *((uint32_t *) args->buffer);
1109ec: 8b 53 08 mov 0x8(%ebx),%edx
1109ef: 8b 12 mov (%edx),%edx
1109f1: 89 50 20 mov %edx,0x20(%eax)
1109f4: eb ed jmp 1109e3 <rtems_blkdev_generic_ioctl+0x58>
args->ioctl_return = 0;
break;
case RTEMS_BLKIO_GETSIZE:
*((rtems_blkdev_bnum *) args->buffer) = dd->size;
1109f6: 8b 53 08 mov 0x8(%ebx),%edx <== NOT EXECUTED
1109f9: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED
1109fc: eb e3 jmp 1109e1 <rtems_blkdev_generic_ioctl+0x56><== NOT EXECUTED
args->ioctl_return = 0;
break;
case RTEMS_BLKIO_SYNCDEV:
rc = rtems_bdbuf_syncdev(dd->dev);
1109fe: 52 push %edx <== NOT EXECUTED
1109ff: 52 push %edx <== NOT EXECUTED
110a00: ff 70 04 pushl 0x4(%eax) <== NOT EXECUTED
110a03: ff 30 pushl (%eax) <== NOT EXECUTED
110a05: e8 d8 e4 ff ff call 10eee2 <rtems_bdbuf_syncdev> <== NOT EXECUTED
args->ioctl_return = (uint32_t) (rc == RTEMS_SUCCESSFUL ? 0 : -1);
110a0a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
110a0d: 83 f8 01 cmp $0x1,%eax <== NOT EXECUTED
110a10: 19 c0 sbb %eax,%eax <== NOT EXECUTED
110a12: f7 d0 not %eax <== NOT EXECUTED
110a14: 89 43 0c mov %eax,0xc(%ebx) <== NOT EXECUTED
break;
110a17: eb 1a jmp 110a33 <rtems_blkdev_generic_ioctl+0xa8><== NOT EXECUTED
case RTEMS_BLKIO_REQUEST:
/*
* It is not allowed to directly access the driver circumventing
* the cache.
*/
args->ioctl_return = (uint32_t) -1;
110a19: c7 43 0c ff ff ff ff movl $0xffffffff,0xc(%ebx) <== NOT EXECUTED
break;
110a20: eb 11 jmp 110a33 <rtems_blkdev_generic_ioctl+0xa8><== NOT EXECUTED
default:
args->ioctl_return = (uint32_t) dd->ioctl(dd->phys_dev,
110a22: 51 push %ecx <== NOT EXECUTED
110a23: ff 73 08 pushl 0x8(%ebx) <== NOT EXECUTED
110a26: 52 push %edx <== NOT EXECUTED
110a27: ff 70 08 pushl 0x8(%eax) <== NOT EXECUTED
110a2a: ff 50 28 call *0x28(%eax) <== NOT EXECUTED
110a2d: 89 43 0c mov %eax,0xc(%ebx) <== NOT EXECUTED
110a30: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
args->buffer);
break;
}
return RTEMS_SUCCESSFUL;
}
110a33: 31 c0 xor %eax,%eax
110a35: 8b 5d fc mov -0x4(%ebp),%ebx
110a38: c9 leave
110a39: c3 ret
00110b77 <rtems_blkdev_generic_read>:
rtems_device_driver
rtems_blkdev_generic_read(
rtems_device_major_number major __attribute__((unused)),
rtems_device_minor_number minor __attribute__((unused)),
void * arg)
{
110b77: 55 push %ebp <== NOT EXECUTED
110b78: 89 e5 mov %esp,%ebp <== NOT EXECUTED
110b7a: 57 push %edi <== NOT EXECUTED
110b7b: 56 push %esi <== NOT EXECUTED
110b7c: 53 push %ebx <== NOT EXECUTED
110b7d: 83 ec 3c sub $0x3c,%esp <== NOT EXECUTED
110b80: 8b 5d 10 mov 0x10(%ebp),%ebx <== NOT EXECUTED
rtems_status_code rc = RTEMS_SUCCESSFUL;
rtems_libio_rw_args_t *args = arg;
rtems_libio_t *iop = args->iop;
rtems_disk_device *dd = iop->data1;
110b83: 8b 03 mov (%ebx),%eax <== NOT EXECUTED
110b85: 8b 48 34 mov 0x34(%eax),%ecx <== NOT EXECUTED
uint32_t block_size = dd->block_size;
110b88: 8b 41 20 mov 0x20(%ecx),%eax <== NOT EXECUTED
110b8b: 89 45 bc mov %eax,-0x44(%ebp) <== NOT EXECUTED
char *buf = args->buffer;
110b8e: 8b 53 0c mov 0xc(%ebx),%edx <== NOT EXECUTED
110b91: 89 55 c0 mov %edx,-0x40(%ebp) <== NOT EXECUTED
uint32_t count = args->count;
110b94: 8b 43 10 mov 0x10(%ebx),%eax <== NOT EXECUTED
110b97: 89 45 d4 mov %eax,-0x2c(%ebp) <== NOT EXECUTED
rtems_blkdev_bnum block = (rtems_blkdev_bnum) (args->offset / block_size);
110b9a: 8b 75 bc mov -0x44(%ebp),%esi <== NOT EXECUTED
110b9d: 31 ff xor %edi,%edi <== NOT EXECUTED
110b9f: 57 push %edi <== NOT EXECUTED
110ba0: 56 push %esi <== NOT EXECUTED
110ba1: ff 73 08 pushl 0x8(%ebx) <== NOT EXECUTED
110ba4: ff 73 04 pushl 0x4(%ebx) <== NOT EXECUTED
110ba7: 89 4d b8 mov %ecx,-0x48(%ebp) <== NOT EXECUTED
110baa: e8 fd 03 01 00 call 120fac <__divdi3> <== NOT EXECUTED
110baf: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
110bb2: 89 45 c4 mov %eax,-0x3c(%ebp) <== NOT EXECUTED
uint32_t blkofs = (uint32_t) (args->offset % block_size);
110bb5: 57 push %edi <== NOT EXECUTED
110bb6: 56 push %esi <== NOT EXECUTED
110bb7: ff 73 08 pushl 0x8(%ebx) <== NOT EXECUTED
110bba: ff 73 04 pushl 0x4(%ebx) <== NOT EXECUTED
110bbd: e8 3a 05 01 00 call 1210fc <__moddi3> <== NOT EXECUTED
110bc2: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
110bc5: 89 c6 mov %eax,%esi <== NOT EXECUTED
dev_t dev = dd->dev;
110bc7: 8b 4d b8 mov -0x48(%ebp),%ecx <== NOT EXECUTED
110bca: 8b 01 mov (%ecx),%eax <== NOT EXECUTED
110bcc: 8b 51 04 mov 0x4(%ecx),%edx <== NOT EXECUTED
110bcf: 89 45 c8 mov %eax,-0x38(%ebp) <== NOT EXECUTED
110bd2: 89 55 cc mov %edx,-0x34(%ebp) <== NOT EXECUTED
args->bytes_moved = 0;
110bd5: c7 43 18 00 00 00 00 movl $0x0,0x18(%ebx) <== NOT EXECUTED
while (count > 0)
110bdc: eb 59 jmp 110c37 <rtems_blkdev_generic_read+0xc0><== NOT EXECUTED
{
rtems_bdbuf_buffer *diskbuf;
uint32_t copy;
rc = rtems_bdbuf_read(dev, block, &diskbuf);
110bde: 8d 55 e4 lea -0x1c(%ebp),%edx <== NOT EXECUTED
110be1: 52 push %edx <== NOT EXECUTED
110be2: ff 75 c4 pushl -0x3c(%ebp) <== NOT EXECUTED
110be5: ff 75 cc pushl -0x34(%ebp) <== NOT EXECUTED
110be8: ff 75 c8 pushl -0x38(%ebp) <== NOT EXECUTED
110beb: e8 e4 fa ff ff call 1106d4 <rtems_bdbuf_read> <== NOT EXECUTED
if (rc != RTEMS_SUCCESSFUL)
110bf0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
110bf3: 85 c0 test %eax,%eax <== NOT EXECUTED
110bf5: 75 48 jne 110c3f <rtems_blkdev_generic_read+0xc8><== NOT EXECUTED
break;
copy = block_size - blkofs;
110bf7: 8b 55 bc mov -0x44(%ebp),%edx <== NOT EXECUTED
110bfa: 29 f2 sub %esi,%edx <== NOT EXECUTED
110bfc: 3b 55 d4 cmp -0x2c(%ebp),%edx <== NOT EXECUTED
110bff: 76 03 jbe 110c04 <rtems_blkdev_generic_read+0x8d><== NOT EXECUTED
110c01: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED
if (copy > count)
copy = count;
memcpy(buf, (char *)diskbuf->buffer + blkofs, copy);
110c04: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
110c07: 03 70 20 add 0x20(%eax),%esi <== NOT EXECUTED
110c0a: 8b 7d c0 mov -0x40(%ebp),%edi <== NOT EXECUTED
110c0d: 89 d1 mov %edx,%ecx <== NOT EXECUTED
110c0f: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
rc = rtems_bdbuf_release(diskbuf);
110c11: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
110c14: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
110c17: 89 55 b8 mov %edx,-0x48(%ebp) <== NOT EXECUTED
110c1a: e8 18 ec ff ff call 10f837 <rtems_bdbuf_release> <== NOT EXECUTED
args->bytes_moved += copy;
110c1f: 8b 55 b8 mov -0x48(%ebp),%edx <== NOT EXECUTED
110c22: 01 53 18 add %edx,0x18(%ebx) <== NOT EXECUTED
if (rc != RTEMS_SUCCESSFUL)
110c25: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
110c28: 85 c0 test %eax,%eax <== NOT EXECUTED
110c2a: 75 13 jne 110c3f <rtems_blkdev_generic_read+0xc8><== NOT EXECUTED
break;
count -= copy;
110c2c: 29 55 d4 sub %edx,-0x2c(%ebp) <== NOT EXECUTED
buf += copy;
110c2f: 89 7d c0 mov %edi,-0x40(%ebp) <== NOT EXECUTED
blkofs = 0;
block++;
110c32: ff 45 c4 incl -0x3c(%ebp) <== NOT EXECUTED
110c35: 31 f6 xor %esi,%esi <== NOT EXECUTED
uint32_t blkofs = (uint32_t) (args->offset % block_size);
dev_t dev = dd->dev;
args->bytes_moved = 0;
while (count > 0)
110c37: 83 7d d4 00 cmpl $0x0,-0x2c(%ebp) <== NOT EXECUTED
110c3b: 75 a1 jne 110bde <rtems_blkdev_generic_read+0x67><== NOT EXECUTED
110c3d: 31 c0 xor %eax,%eax <== NOT EXECUTED
blkofs = 0;
block++;
}
return rc;
}
110c3f: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
110c42: 5b pop %ebx <== NOT EXECUTED
110c43: 5e pop %esi <== NOT EXECUTED
110c44: 5f pop %edi <== NOT EXECUTED
110c45: c9 leave <== NOT EXECUTED
110c46: c3 ret <== NOT EXECUTED
00110a7d <rtems_blkdev_generic_write>:
rtems_device_driver
rtems_blkdev_generic_write(
rtems_device_major_number major __attribute__((unused)),
rtems_device_minor_number minor __attribute__((unused)),
void * arg)
{
110a7d: 55 push %ebp <== NOT EXECUTED
110a7e: 89 e5 mov %esp,%ebp <== NOT EXECUTED
110a80: 57 push %edi <== NOT EXECUTED
110a81: 56 push %esi <== NOT EXECUTED
110a82: 53 push %ebx <== NOT EXECUTED
110a83: 83 ec 4c sub $0x4c,%esp <== NOT EXECUTED
rtems_status_code rc = RTEMS_SUCCESSFUL;
rtems_libio_rw_args_t *args = arg;
rtems_libio_t *iop = args->iop;
rtems_disk_device *dd = iop->data1;
110a86: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
110a89: 8b 02 mov (%edx),%eax <== NOT EXECUTED
110a8b: 8b 78 34 mov 0x34(%eax),%edi <== NOT EXECUTED
uint32_t block_size = dd->block_size;
110a8e: 8b 47 20 mov 0x20(%edi),%eax <== NOT EXECUTED
110a91: 89 45 bc mov %eax,-0x44(%ebp) <== NOT EXECUTED
char *buf = args->buffer;
110a94: 8b 52 0c mov 0xc(%edx),%edx <== NOT EXECUTED
110a97: 89 55 c0 mov %edx,-0x40(%ebp) <== NOT EXECUTED
uint32_t count = args->count;
110a9a: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
110a9d: 8b 40 10 mov 0x10(%eax),%eax <== NOT EXECUTED
110aa0: 89 45 d4 mov %eax,-0x2c(%ebp) <== NOT EXECUTED
rtems_blkdev_bnum block = (rtems_blkdev_bnum) (args->offset / block_size);
110aa3: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
110aa6: 8b 42 04 mov 0x4(%edx),%eax <== NOT EXECUTED
110aa9: 8b 52 08 mov 0x8(%edx),%edx <== NOT EXECUTED
110aac: 89 45 b0 mov %eax,-0x50(%ebp) <== NOT EXECUTED
110aaf: 89 55 b4 mov %edx,-0x4c(%ebp) <== NOT EXECUTED
110ab2: 8b 5d bc mov -0x44(%ebp),%ebx <== NOT EXECUTED
110ab5: 31 f6 xor %esi,%esi <== NOT EXECUTED
110ab7: 56 push %esi <== NOT EXECUTED
110ab8: 53 push %ebx <== NOT EXECUTED
110ab9: 52 push %edx <== NOT EXECUTED
110aba: 50 push %eax <== NOT EXECUTED
110abb: e8 ec 04 01 00 call 120fac <__divdi3> <== NOT EXECUTED
110ac0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
110ac3: 89 45 c4 mov %eax,-0x3c(%ebp) <== NOT EXECUTED
uint32_t blkofs = (uint32_t) (args->offset % block_size);
110ac6: 56 push %esi <== NOT EXECUTED
110ac7: 53 push %ebx <== NOT EXECUTED
110ac8: ff 75 b4 pushl -0x4c(%ebp) <== NOT EXECUTED
110acb: ff 75 b0 pushl -0x50(%ebp) <== NOT EXECUTED
110ace: e8 29 06 01 00 call 1210fc <__moddi3> <== NOT EXECUTED
110ad3: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
110ad6: 89 c6 mov %eax,%esi <== NOT EXECUTED
dev_t dev = dd->dev;
110ad8: 8b 07 mov (%edi),%eax <== NOT EXECUTED
110ada: 8b 57 04 mov 0x4(%edi),%edx <== NOT EXECUTED
110add: 89 45 c8 mov %eax,-0x38(%ebp) <== NOT EXECUTED
110ae0: 89 55 cc mov %edx,-0x34(%ebp) <== NOT EXECUTED
args->bytes_moved = 0;
110ae3: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
110ae6: c7 42 18 00 00 00 00 movl $0x0,0x18(%edx) <== NOT EXECUTED
while (count > 0)
110aed: eb 78 jmp 110b67 <rtems_blkdev_generic_write+0xea><== NOT EXECUTED
{
rtems_bdbuf_buffer *diskbuf;
uint32_t copy;
if ((blkofs == 0) && (count >= block_size))
110aef: 8b 45 bc mov -0x44(%ebp),%eax <== NOT EXECUTED
110af2: 39 45 d4 cmp %eax,-0x2c(%ebp) <== NOT EXECUTED
110af5: 72 18 jb 110b0f <rtems_blkdev_generic_write+0x92><== NOT EXECUTED
110af7: 85 f6 test %esi,%esi <== NOT EXECUTED
110af9: 75 14 jne 110b0f <rtems_blkdev_generic_write+0x92><== NOT EXECUTED
rc = rtems_bdbuf_get(dev, block, &diskbuf);
110afb: 8d 55 e4 lea -0x1c(%ebp),%edx <== NOT EXECUTED
110afe: 52 push %edx <== NOT EXECUTED
110aff: ff 75 c4 pushl -0x3c(%ebp) <== NOT EXECUTED
110b02: ff 75 cc pushl -0x34(%ebp) <== NOT EXECUTED
110b05: ff 75 c8 pushl -0x38(%ebp) <== NOT EXECUTED
110b08: e8 09 fb ff ff call 110616 <rtems_bdbuf_get> <== NOT EXECUTED
110b0d: eb 12 jmp 110b21 <rtems_blkdev_generic_write+0xa4><== NOT EXECUTED
else
rc = rtems_bdbuf_read(dev, block, &diskbuf);
110b0f: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
110b12: 50 push %eax <== NOT EXECUTED
110b13: ff 75 c4 pushl -0x3c(%ebp) <== NOT EXECUTED
110b16: ff 75 cc pushl -0x34(%ebp) <== NOT EXECUTED
110b19: ff 75 c8 pushl -0x38(%ebp) <== NOT EXECUTED
110b1c: e8 b3 fb ff ff call 1106d4 <rtems_bdbuf_read> <== NOT EXECUTED
110b21: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
if (rc != RTEMS_SUCCESSFUL)
110b24: 85 c0 test %eax,%eax <== NOT EXECUTED
110b26: 75 47 jne 110b6f <rtems_blkdev_generic_write+0xf2><== NOT EXECUTED
break;
copy = block_size - blkofs;
110b28: 8b 5d bc mov -0x44(%ebp),%ebx <== NOT EXECUTED
110b2b: 29 f3 sub %esi,%ebx <== NOT EXECUTED
110b2d: 3b 5d d4 cmp -0x2c(%ebp),%ebx <== NOT EXECUTED
110b30: 76 03 jbe 110b35 <rtems_blkdev_generic_write+0xb8><== NOT EXECUTED
110b32: 8b 5d d4 mov -0x2c(%ebp),%ebx <== NOT EXECUTED
if (copy > count)
copy = count;
memcpy((char *)diskbuf->buffer + blkofs, buf, copy);
110b35: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
110b38: 03 70 20 add 0x20(%eax),%esi <== NOT EXECUTED
110b3b: 89 f7 mov %esi,%edi <== NOT EXECUTED
110b3d: 8b 75 c0 mov -0x40(%ebp),%esi <== NOT EXECUTED
110b40: 89 d9 mov %ebx,%ecx <== NOT EXECUTED
110b42: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
args->bytes_moved += copy;
110b44: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
110b47: 01 5a 18 add %ebx,0x18(%edx) <== NOT EXECUTED
rc = rtems_bdbuf_release_modified(diskbuf);
110b4a: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
110b4d: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
110b50: e8 79 ec ff ff call 10f7ce <rtems_bdbuf_release_modified><== NOT EXECUTED
if (rc != RTEMS_SUCCESSFUL)
110b55: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
110b58: 85 c0 test %eax,%eax <== NOT EXECUTED
110b5a: 75 13 jne 110b6f <rtems_blkdev_generic_write+0xf2><== NOT EXECUTED
break;
count -= copy;
110b5c: 29 5d d4 sub %ebx,-0x2c(%ebp) <== NOT EXECUTED
buf += copy;
110b5f: 89 75 c0 mov %esi,-0x40(%ebp) <== NOT EXECUTED
blkofs = 0;
block++;
110b62: ff 45 c4 incl -0x3c(%ebp) <== NOT EXECUTED
110b65: 31 f6 xor %esi,%esi <== NOT EXECUTED
uint32_t blkofs = (uint32_t) (args->offset % block_size);
dev_t dev = dd->dev;
args->bytes_moved = 0;
while (count > 0)
110b67: 83 7d d4 00 cmpl $0x0,-0x2c(%ebp) <== NOT EXECUTED
110b6b: 75 82 jne 110aef <rtems_blkdev_generic_write+0x72><== NOT EXECUTED
110b6d: 31 c0 xor %eax,%eax <== NOT EXECUTED
blkofs = 0;
block++;
}
return rc;
}
110b6f: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
110b72: 5b pop %ebx <== NOT EXECUTED
110b73: 5e pop %esi <== NOT EXECUTED
110b74: 5f pop %edi <== NOT EXECUTED
110b75: c9 leave <== NOT EXECUTED
110b76: c3 ret <== NOT EXECUTED
0011092c <rtems_blkdev_ioctl>:
return RTEMS_SUCCESSFUL;
}
int
rtems_blkdev_ioctl(rtems_disk_device *dd, uint32_t req, void *argp)
{
11092c: 55 push %ebp
11092d: 89 e5 mov %esp,%ebp
11092f: 83 ec 08 sub $0x8,%esp
110932: 8b 55 08 mov 0x8(%ebp),%edx
110935: 8b 4d 0c mov 0xc(%ebp),%ecx
110938: 8b 45 10 mov 0x10(%ebp),%eax
size_t *arg_size = argp;
int rc = 0;
switch (req)
11093b: 81 f9 03 42 04 40 cmp $0x40044203,%ecx
110941: 74 23 je 110966 <rtems_blkdev_ioctl+0x3a><== NEVER TAKEN
110943: 77 0a ja 11094f <rtems_blkdev_ioctl+0x23><== NEVER TAKEN
110945: 81 f9 02 42 04 40 cmp $0x40044202,%ecx
11094b: 75 2e jne 11097b <rtems_blkdev_ioctl+0x4f><== ALWAYS TAKEN
11094d: eb 12 jmp 110961 <rtems_blkdev_ioctl+0x35><== NOT EXECUTED
11094f: 81 f9 05 42 04 40 cmp $0x40044205,%ecx <== NOT EXECUTED
110955: 74 1f je 110976 <rtems_blkdev_ioctl+0x4a><== NOT EXECUTED
110957: 81 f9 04 42 04 80 cmp $0x80044204,%ecx <== NOT EXECUTED
11095d: 75 1c jne 11097b <rtems_blkdev_ioctl+0x4f><== NOT EXECUTED
11095f: eb 0e jmp 11096f <rtems_blkdev_ioctl+0x43><== NOT EXECUTED
{
case RTEMS_BLKIO_GETMEDIABLKSIZE:
*arg_size = dd->media_block_size;
110961: 8b 52 24 mov 0x24(%edx),%edx <== NOT EXECUTED
110964: eb 03 jmp 110969 <rtems_blkdev_ioctl+0x3d><== NOT EXECUTED
break;
case RTEMS_BLKIO_GETBLKSIZE:
*arg_size = dd->block_size;
110966: 8b 52 20 mov 0x20(%edx),%edx <== NOT EXECUTED
110969: 89 10 mov %edx,(%eax) <== NOT EXECUTED
11096b: 31 c0 xor %eax,%eax <== NOT EXECUTED
break;
11096d: eb 1a jmp 110989 <rtems_blkdev_ioctl+0x5d><== NOT EXECUTED
case RTEMS_BLKIO_SETBLKSIZE:
dd->block_size = *arg_size;
11096f: 8b 00 mov (%eax),%eax <== NOT EXECUTED
110971: 89 42 20 mov %eax,0x20(%edx) <== NOT EXECUTED
110974: eb f5 jmp 11096b <rtems_blkdev_ioctl+0x3f><== NOT EXECUTED
break;
case RTEMS_BLKIO_GETSIZE:
*arg_size = dd->size;
110976: 8b 52 1c mov 0x1c(%edx),%edx <== NOT EXECUTED
110979: eb ee jmp 110969 <rtems_blkdev_ioctl+0x3d><== NOT EXECUTED
break;
default:
errno = EINVAL;
11097b: e8 24 56 00 00 call 115fa4 <__errno>
110980: c7 00 16 00 00 00 movl $0x16,(%eax)
110986: 83 c8 ff or $0xffffffff,%eax
rc = -1;
break;
}
return rc;
}
110989: c9 leave
11098a: c3 ret
001071ac <rtems_bsp_cmdline_get_param>:
const char *rtems_bsp_cmdline_get_param(
const char *name,
char *value,
size_t length
)
{
1071ac: 55 push %ebp
1071ad: 89 e5 mov %esp,%ebp
1071af: 57 push %edi
1071b0: 56 push %esi
1071b1: 53 push %ebx
1071b2: 83 ec 0c sub $0xc,%esp
1071b5: 8b 45 08 mov 0x8(%ebp),%eax
1071b8: 8b 5d 0c mov 0xc(%ebp),%ebx
1071bb: 8b 75 10 mov 0x10(%ebp),%esi
const char *p;
if ( !name )
1071be: 85 c0 test %eax,%eax
1071c0: 74 4c je 10720e <rtems_bsp_cmdline_get_param+0x62>
return NULL;
if ( !value )
1071c2: 85 db test %ebx,%ebx
1071c4: 74 4a je 107210 <rtems_bsp_cmdline_get_param+0x64>
return NULL;
if ( !length )
1071c6: 85 f6 test %esi,%esi
1071c8: 74 44 je 10720e <rtems_bsp_cmdline_get_param+0x62>
return NULL;
value[0] = '\0';
1071ca: c6 03 00 movb $0x0,(%ebx)
p = rtems_bsp_cmdline_get_param_raw( name );
1071cd: 83 ec 0c sub $0xc,%esp
1071d0: 50 push %eax
1071d1: e8 46 00 00 00 call 10721c <rtems_bsp_cmdline_get_param_raw>
if ( !p )
1071d6: 83 c4 10 add $0x10,%esp
1071d9: 85 c0 test %eax,%eax
1071db: 74 31 je 10720e <rtems_bsp_cmdline_get_param+0x62>
1071dd: 31 ff xor %edi,%edi
1071df: 31 d2 xor %edx,%edx
int i;
int quotes;
const char *p = start;
quotes=0;
for (i=0 ; *p && i<length-1; ) {
1071e1: 4e dec %esi
1071e2: eb 1d jmp 107201 <rtems_bsp_cmdline_get_param+0x55>
if ( *p == '\"' ) {
1071e4: 80 f9 22 cmp $0x22,%cl
1071e7: 75 03 jne 1071ec <rtems_bsp_cmdline_get_param+0x40>
quotes++;
1071e9: 47 inc %edi
1071ea: eb 0d jmp 1071f9 <rtems_bsp_cmdline_get_param+0x4d>
} else if ( ((quotes % 2) == 0) && *p == ' ' )
1071ec: f7 c7 01 00 00 00 test $0x1,%edi
1071f2: 75 05 jne 1071f9 <rtems_bsp_cmdline_get_param+0x4d>
1071f4: 80 f9 20 cmp $0x20,%cl
1071f7: 74 17 je 107210 <rtems_bsp_cmdline_get_param+0x64>
break;
value[i++] = *p++;
1071f9: 88 0c 13 mov %cl,(%ebx,%edx,1)
1071fc: 42 inc %edx
value[i] = '\0';
1071fd: c6 04 13 00 movb $0x0,(%ebx,%edx,1)
int i;
int quotes;
const char *p = start;
quotes=0;
for (i=0 ; *p && i<length-1; ) {
107201: 8a 0c 10 mov (%eax,%edx,1),%cl
107204: 84 c9 test %cl,%cl
107206: 74 08 je 107210 <rtems_bsp_cmdline_get_param+0x64>
107208: 39 f2 cmp %esi,%edx
10720a: 72 d8 jb 1071e4 <rtems_bsp_cmdline_get_param+0x38><== ALWAYS TAKEN
10720c: eb 02 jmp 107210 <rtems_bsp_cmdline_get_param+0x64><== NOT EXECUTED
10720e: 31 db xor %ebx,%ebx
return NULL;
copy_string( p, value, length );
return value;
}
107210: 89 d8 mov %ebx,%eax
107212: 8d 65 f4 lea -0xc(%ebp),%esp
107215: 5b pop %ebx
107216: 5e pop %esi
107217: 5f pop %edi
107218: c9 leave
107219: c3 ret
00107244 <rtems_bsp_cmdline_get_param_rhs>:
const char *rtems_bsp_cmdline_get_param_rhs(
const char *name,
char *value,
size_t length
)
{
107244: 55 push %ebp
107245: 89 e5 mov %esp,%ebp
107247: 57 push %edi
107248: 53 push %ebx
107249: 8b 7d 08 mov 0x8(%ebp),%edi
10724c: 8b 5d 0c mov 0xc(%ebp),%ebx
const char *p;
const char *rhs;
char *d;
p = rtems_bsp_cmdline_get_param( name, value, length );
10724f: 50 push %eax
107250: ff 75 10 pushl 0x10(%ebp)
107253: 53 push %ebx
107254: 57 push %edi
107255: e8 52 ff ff ff call 1071ac <rtems_bsp_cmdline_get_param>
10725a: 89 c2 mov %eax,%edx
if ( !p )
10725c: 83 c4 10 add $0x10,%esp
10725f: 85 c0 test %eax,%eax
107261: 74 3c je 10729f <rtems_bsp_cmdline_get_param_rhs+0x5b>
return NULL;
rhs = &p[strlen(name)];
107263: 31 c0 xor %eax,%eax
107265: 83 c9 ff or $0xffffffff,%ecx
107268: f2 ae repnz scas %es:(%edi),%al
10726a: f7 d1 not %ecx
10726c: 8d 44 0a ff lea -0x1(%edx,%ecx,1),%eax
if ( *rhs != '=' )
107270: 80 38 3d cmpb $0x3d,(%eax)
107273: 75 2a jne 10729f <rtems_bsp_cmdline_get_param_rhs+0x5b><== NEVER TAKEN
return NULL;
rhs++;
107275: 8d 50 01 lea 0x1(%eax),%edx
if ( *rhs == '\"' )
107278: 80 78 01 22 cmpb $0x22,0x1(%eax)
10727c: 75 03 jne 107281 <rtems_bsp_cmdline_get_param_rhs+0x3d>
rhs++;
10727e: 8d 50 02 lea 0x2(%eax),%edx
107281: 89 d8 mov %ebx,%eax
107283: eb 04 jmp 107289 <rtems_bsp_cmdline_get_param_rhs+0x45>
for ( d=value ; *rhs ; )
*d++ = *rhs++;
107285: 88 08 mov %cl,(%eax)
107287: 40 inc %eax
107288: 42 inc %edx
return NULL;
rhs++;
if ( *rhs == '\"' )
rhs++;
for ( d=value ; *rhs ; )
107289: 8a 0a mov (%edx),%cl
10728b: 84 c9 test %cl,%cl
10728d: 75 f6 jne 107285 <rtems_bsp_cmdline_get_param_rhs+0x41>
*d++ = *rhs++;
if ( *(d-1) == '\"' )
10728f: 8d 50 ff lea -0x1(%eax),%edx
107292: 80 78 ff 22 cmpb $0x22,-0x1(%eax)
107296: 75 02 jne 10729a <rtems_bsp_cmdline_get_param_rhs+0x56>
107298: 89 d0 mov %edx,%eax
d--;
*d = '\0';
10729a: c6 00 00 movb $0x0,(%eax)
return value;
10729d: eb 02 jmp 1072a1 <rtems_bsp_cmdline_get_param_rhs+0x5d>
10729f: 31 db xor %ebx,%ebx
}
1072a1: 89 d8 mov %ebx,%eax
1072a3: 8d 65 f8 lea -0x8(%ebp),%esp
1072a6: 5b pop %ebx
1072a7: 5f pop %edi
1072a8: c9 leave
1072a9: c3 ret
00107920 <rtems_cpu_usage_report_with_plugin>:
void rtems_cpu_usage_report_with_plugin(
void *context,
rtems_printk_plugin_t print
)
{
107920: 55 push %ebp
107921: 89 e5 mov %esp,%ebp
107923: 57 push %edi
107924: 56 push %esi
107925: 53 push %ebx
107926: 83 ec 6c sub $0x6c,%esp
107929: 8b 5d 08 mov 0x8(%ebp),%ebx
Timestamp_Control uptime, total, ran;
#else
uint32_t total_units = 0;
#endif
if ( !print )
10792c: 83 7d 0c 00 cmpl $0x0,0xc(%ebp)
107930: 0f 84 53 01 00 00 je 107a89 <rtems_cpu_usage_report_with_plugin+0x169><== NEVER TAKEN
* When not using nanosecond CPU usage resolution, we have to count
* the number of "ticks" we gave credit for to give the user a rough
* guideline as to what each number means proportionally.
*/
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
_TOD_Get_uptime( &uptime );
107936: 83 ec 0c sub $0xc,%esp
107939: 8d 75 d8 lea -0x28(%ebp),%esi
10793c: 56 push %esi
10793d: e8 4e 4d 00 00 call 10c690 <_TOD_Get_uptime>
_Timestamp_Subtract( &CPU_usage_Uptime_at_last_reset, &uptime, &total );
107942: 83 c4 0c add $0xc,%esp
107945: 8d 45 d0 lea -0x30(%ebp),%eax
107948: 50 push %eax
107949: 56 push %esi
10794a: 68 0c a6 12 00 push $0x12a60c
10794f: e8 24 6d 00 00 call 10e678 <_Timespec_Subtract>
}
}
}
#endif
(*print)(
107954: 5e pop %esi
107955: 5f pop %edi
107956: 68 a4 22 12 00 push $0x1222a4
10795b: 53 push %ebx
10795c: ff 55 0c call *0xc(%ebp)
10795f: c7 45 a4 01 00 00 00 movl $0x1,-0x5c(%ebp)
107966: 83 c4 10 add $0x10,%esp
);
for ( api_index = 1 ;
api_index <= OBJECTS_APIS_LAST ;
api_index++ ) {
if ( !_Objects_Information_table[ api_index ] )
107969: 8b 55 a4 mov -0x5c(%ebp),%edx
10796c: 8b 04 95 40 a0 12 00 mov 0x12a040(,%edx,4),%eax
107973: 85 c0 test %eax,%eax
107975: 0f 84 e5 00 00 00 je 107a60 <rtems_cpu_usage_report_with_plugin+0x140>
continue;
information = _Objects_Information_table[ api_index ][ 1 ];
10797b: 8b 70 04 mov 0x4(%eax),%esi
if ( information ) {
10797e: 85 f6 test %esi,%esi
107980: 0f 84 da 00 00 00 je 107a60 <rtems_cpu_usage_report_with_plugin+0x140><== NEVER TAKEN
107986: bf 01 00 00 00 mov $0x1,%edi
10798b: 89 5d 94 mov %ebx,-0x6c(%ebp)
10798e: e9 be 00 00 00 jmp 107a51 <rtems_cpu_usage_report_with_plugin+0x131>
for ( i=1 ; i <= information->maximum ; i++ ) {
the_thread = (Thread_Control *)information->local_table[ i ];
107993: 8b 46 1c mov 0x1c(%esi),%eax
107996: 8b 14 b8 mov (%eax,%edi,4),%edx
if ( !the_thread )
107999: 85 d2 test %edx,%edx
10799b: 0f 84 af 00 00 00 je 107a50 <rtems_cpu_usage_report_with_plugin+0x130><== NEVER TAKEN
continue;
rtems_object_get_name( the_thread->Object.id, sizeof(name), name );
1079a1: 51 push %ecx
1079a2: 8d 4d b3 lea -0x4d(%ebp),%ecx
1079a5: 51 push %ecx
1079a6: 6a 0d push $0xd
1079a8: ff 72 08 pushl 0x8(%edx)
1079ab: 89 55 a0 mov %edx,-0x60(%ebp)
1079ae: e8 79 3b 00 00 call 10b52c <rtems_object_get_name>
(*print)(
1079b3: 8d 5d b3 lea -0x4d(%ebp),%ebx
1079b6: 53 push %ebx
1079b7: 8b 55 a0 mov -0x60(%ebp),%edx
1079ba: ff 72 08 pushl 0x8(%edx)
1079bd: 68 16 24 12 00 push $0x122416
1079c2: ff 75 94 pushl -0x6c(%ebp)
1079c5: 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;
1079c8: 8b 55 a0 mov -0x60(%ebp),%edx
1079cb: 8b 8a 84 00 00 00 mov 0x84(%edx),%ecx
1079d1: 8b 9a 88 00 00 00 mov 0x88(%edx),%ebx
1079d7: 89 4d c8 mov %ecx,-0x38(%ebp)
1079da: 89 5d cc mov %ebx,-0x34(%ebp)
if ( _Thread_Executing->Object.id == the_thread->Object.id ) {
1079dd: 83 c4 20 add $0x20,%esp
1079e0: a1 28 a1 12 00 mov 0x12a128,%eax
1079e5: 8b 40 08 mov 0x8(%eax),%eax
1079e8: 3b 42 08 cmp 0x8(%edx),%eax
1079eb: 75 28 jne 107a15 <rtems_cpu_usage_report_with_plugin+0xf5>
Timestamp_Control used;
_Timestamp_Subtract(
1079ed: 50 push %eax
1079ee: 8d 45 c0 lea -0x40(%ebp),%eax
1079f1: 50 push %eax
1079f2: 8d 55 d8 lea -0x28(%ebp),%edx
1079f5: 52 push %edx
1079f6: 68 30 a1 12 00 push $0x12a130
1079fb: 89 45 a0 mov %eax,-0x60(%ebp)
1079fe: e8 75 6c 00 00 call 10e678 <_Timespec_Subtract>
&_Thread_Time_of_last_context_switch, &uptime, &used
);
_Timestamp_Add_to( &ran, &used );
107a03: 59 pop %ecx
107a04: 5b pop %ebx
107a05: 8b 45 a0 mov -0x60(%ebp),%eax
107a08: 50 push %eax
107a09: 8d 5d c8 lea -0x38(%ebp),%ebx
107a0c: 53 push %ebx
107a0d: e8 6a 6b 00 00 call 10e57c <_Timespec_Add_to>
107a12: 83 c4 10 add $0x10,%esp
};
_Timestamp_Divide( &ran, &total, &ival, &fval );
107a15: 8d 45 e0 lea -0x20(%ebp),%eax
107a18: 50 push %eax
107a19: 8d 55 e4 lea -0x1c(%ebp),%edx
107a1c: 52 push %edx
107a1d: 8d 4d d0 lea -0x30(%ebp),%ecx
107a20: 51 push %ecx
107a21: 8d 5d c8 lea -0x38(%ebp),%ebx
107a24: 53 push %ebx
107a25: e8 82 6b 00 00 call 10e5ac <_Timespec_Divide>
/*
* Print the information
*/
(*print)( context,
107a2a: 58 pop %eax
107a2b: 5a pop %edx
107a2c: ff 75 e0 pushl -0x20(%ebp)
107a2f: ff 75 e4 pushl -0x1c(%ebp)
107a32: 8b 45 cc mov -0x34(%ebp),%eax
107a35: b9 e8 03 00 00 mov $0x3e8,%ecx
107a3a: 31 d2 xor %edx,%edx
107a3c: f7 f1 div %ecx
107a3e: 50 push %eax
107a3f: ff 75 c8 pushl -0x38(%ebp)
107a42: 68 29 24 12 00 push $0x122429
107a47: ff 75 94 pushl -0x6c(%ebp)
107a4a: ff 55 0c call *0xc(%ebp)
107a4d: 83 c4 20 add $0x20,%esp
api_index++ ) {
if ( !_Objects_Information_table[ api_index ] )
continue;
information = _Objects_Information_table[ api_index ][ 1 ];
if ( information ) {
for ( i=1 ; i <= information->maximum ; i++ ) {
107a50: 47 inc %edi
107a51: 0f b7 46 10 movzwl 0x10(%esi),%eax
107a55: 39 c7 cmp %eax,%edi
107a57: 0f 86 36 ff ff ff jbe 107993 <rtems_cpu_usage_report_with_plugin+0x73>
107a5d: 8b 5d 94 mov -0x6c(%ebp),%ebx
"------------+----------------------------------------+---------------+---------\n"
);
for ( api_index = 1 ;
api_index <= OBJECTS_APIS_LAST ;
api_index++ ) {
107a60: ff 45 a4 incl -0x5c(%ebp)
" ID | NAME | TICKS | PERCENT\n"
#endif
"------------+----------------------------------------+---------------+---------\n"
);
for ( api_index = 1 ;
107a63: 83 7d a4 05 cmpl $0x5,-0x5c(%ebp)
107a67: 0f 85 fc fe ff ff jne 107969 <rtems_cpu_usage_report_with_plugin+0x49>
}
}
}
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
(*print)(
107a6d: 8b 45 d4 mov -0x2c(%ebp),%eax
107a70: b9 e8 03 00 00 mov $0x3e8,%ecx
107a75: 31 d2 xor %edx,%edx
107a77: f7 f1 div %ecx
107a79: 50 push %eax
107a7a: ff 75 d0 pushl -0x30(%ebp)
107a7d: 68 41 24 12 00 push $0x122441
107a82: 53 push %ebx
107a83: ff 55 0c call *0xc(%ebp)
107a86: 83 c4 10 add $0x10,%esp
"-------------------------------------------------------------------------------\n",
_Watchdog_Ticks_since_boot - CPU_usage_Ticks_at_last_reset,
total_units
);
#endif
}
107a89: 8d 65 f4 lea -0xc(%ebp),%esp
107a8c: 5b pop %ebx
107a8d: 5e pop %esi
107a8e: 5f pop %edi
107a8f: c9 leave
107a90: c3 ret
0011291c <rtems_deviceio_errno>:
{ 0, 0, 0 },
};
int
rtems_deviceio_errno(rtems_status_code code)
{
11291c: 55 push %ebp <== NOT EXECUTED
11291d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
11291f: 53 push %ebx <== NOT EXECUTED
112920: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
int rc;
if ((rc = rtems_assoc_remote_by_local(errno_assoc, (uint32_t ) code)))
112923: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
112926: 68 34 0c 12 00 push $0x120c34 <== NOT EXECUTED
11292b: e8 18 00 00 00 call 112948 <rtems_assoc_remote_by_local><== NOT EXECUTED
112930: 89 c3 mov %eax,%ebx <== NOT EXECUTED
112932: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
112935: 85 c0 test %eax,%eax <== NOT EXECUTED
112937: 74 07 je 112940 <rtems_deviceio_errno+0x24><== NOT EXECUTED
{
errno = rc;
112939: e8 d6 00 00 00 call 112a14 <__errno> <== NOT EXECUTED
11293e: 89 18 mov %ebx,(%eax) <== NOT EXECUTED
return -1;
}
return -1;
}
112940: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
112943: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
112946: c9 leave <== NOT EXECUTED
112947: c3 ret <== NOT EXECUTED
00107956 <rtems_disk_create_log>:
dev_t phys,
rtems_blkdev_bnum begin_block,
rtems_blkdev_bnum block_count,
const char *name
)
{
107956: 55 push %ebp
107957: 89 e5 mov %esp,%ebp
107959: 57 push %edi
10795a: 56 push %esi
10795b: 53 push %ebx
10795c: 83 ec 2c sub $0x2c,%esp
10795f: 8b 45 08 mov 0x8(%ebp),%eax
107962: 8b 55 0c mov 0xc(%ebp),%edx
107965: 89 45 d0 mov %eax,-0x30(%ebp)
107968: 89 55 d4 mov %edx,-0x2c(%ebp)
10796b: 8b 5d 10 mov 0x10(%ebp),%ebx
10796e: 8b 75 14 mov 0x14(%ebp),%esi
107971: 8b 7d 18 mov 0x18(%ebp),%edi
rtems_status_code sc = RTEMS_SUCCESSFUL;
rtems_disk_device *physical_disk = NULL;
rtems_disk_device *dd = NULL;
107974: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp)
rtems_blkdev_bnum end_block = begin_block + block_count;
sc = disk_lock();
10797b: e8 6c fb ff ff call 1074ec <disk_lock>
if (sc != RTEMS_SUCCESSFUL) {
107980: 85 c0 test %eax,%eax
107982: 0f 85 93 00 00 00 jne 107a1b <rtems_disk_create_log+0xc5><== NEVER TAKEN
return sc;
}
physical_disk = get_disk_entry(phys, true);
107988: b9 01 00 00 00 mov $0x1,%ecx
10798d: 89 d8 mov %ebx,%eax
10798f: 89 f2 mov %esi,%edx
107991: e8 9a f9 ff ff call 107330 <get_disk_entry>
if (physical_disk == NULL || !is_physical_disk(physical_disk)) {
107996: 85 c0 test %eax,%eax
107998: 74 07 je 1079a1 <rtems_disk_create_log+0x4b>
}
static bool
is_physical_disk(const rtems_disk_device *dd)
{
return dd->phys_dev == dd;
10799a: 8b 58 08 mov 0x8(%eax),%ebx
if (sc != RTEMS_SUCCESSFUL) {
return sc;
}
physical_disk = get_disk_entry(phys, true);
if (physical_disk == NULL || !is_physical_disk(physical_disk)) {
10799d: 39 c3 cmp %eax,%ebx
10799f: 74 0c je 1079ad <rtems_disk_create_log+0x57>
disk_unlock();
1079a1: e8 74 fb ff ff call 10751a <disk_unlock>
1079a6: b8 04 00 00 00 mov $0x4,%eax
return RTEMS_INVALID_ID;
1079ab: eb 6e jmp 107a1b <rtems_disk_create_log+0xc5>
)
{
rtems_status_code sc = RTEMS_SUCCESSFUL;
rtems_disk_device *physical_disk = NULL;
rtems_disk_device *dd = NULL;
rtems_blkdev_bnum end_block = begin_block + block_count;
1079ad: 8b 55 1c mov 0x1c(%ebp),%edx
1079b0: 01 fa add %edi,%edx
return RTEMS_INVALID_ID;
}
if (
begin_block >= physical_disk->size
|| end_block <= begin_block
1079b2: 8b 43 1c mov 0x1c(%ebx),%eax
disk_unlock();
return RTEMS_INVALID_ID;
}
if (
1079b5: 39 fa cmp %edi,%edx
1079b7: 76 08 jbe 1079c1 <rtems_disk_create_log+0x6b>
1079b9: 39 c7 cmp %eax,%edi
1079bb: 73 04 jae 1079c1 <rtems_disk_create_log+0x6b><== NEVER TAKEN
1079bd: 39 c2 cmp %eax,%edx
1079bf: 76 0c jbe 1079cd <rtems_disk_create_log+0x77>
begin_block >= physical_disk->size
|| end_block <= begin_block
|| end_block > physical_disk->size
) {
disk_unlock();
1079c1: e8 54 fb ff ff call 10751a <disk_unlock>
1079c6: b8 0a 00 00 00 mov $0xa,%eax
return RTEMS_INVALID_NUMBER;
1079cb: eb 4e jmp 107a1b <rtems_disk_create_log+0xc5>
}
sc = create_disk(dev, name, &dd);
1079cd: 83 ec 0c sub $0xc,%esp
1079d0: 8d 45 e4 lea -0x1c(%ebp),%eax
1079d3: 50 push %eax
1079d4: 8b 4d 20 mov 0x20(%ebp),%ecx
1079d7: 8b 45 d0 mov -0x30(%ebp),%eax
1079da: 8b 55 d4 mov -0x2c(%ebp),%edx
1079dd: e8 bf fd ff ff call 1077a1 <create_disk>
if (sc != RTEMS_SUCCESSFUL) {
1079e2: 83 c4 10 add $0x10,%esp
1079e5: 85 c0 test %eax,%eax
1079e7: 75 27 jne 107a10 <rtems_disk_create_log+0xba>
disk_unlock();
return sc;
}
dd->phys_dev = physical_disk;
1079e9: 8b 55 e4 mov -0x1c(%ebp),%edx
1079ec: 89 5a 08 mov %ebx,0x8(%edx)
dd->start = begin_block;
1079ef: 89 7a 18 mov %edi,0x18(%edx)
dd->size = block_count;
1079f2: 8b 4d 1c mov 0x1c(%ebp),%ecx
1079f5: 89 4a 1c mov %ecx,0x1c(%edx)
dd->block_size = dd->media_block_size = physical_disk->block_size;
1079f8: 8b 4b 20 mov 0x20(%ebx),%ecx
1079fb: 89 4a 24 mov %ecx,0x24(%edx)
1079fe: 89 4a 20 mov %ecx,0x20(%edx)
dd->ioctl = physical_disk->ioctl;
107a01: 8b 4b 28 mov 0x28(%ebx),%ecx
107a04: 89 4a 28 mov %ecx,0x28(%edx)
dd->driver_data = physical_disk->driver_data;
107a07: 8b 4b 2c mov 0x2c(%ebx),%ecx
107a0a: 89 4a 2c mov %ecx,0x2c(%edx)
++physical_disk->uses;
107a0d: ff 43 14 incl 0x14(%ebx)
disk_unlock();
107a10: 89 45 cc mov %eax,-0x34(%ebp)
107a13: e8 02 fb ff ff call 10751a <disk_unlock>
107a18: 8b 45 cc mov -0x34(%ebp),%eax
return RTEMS_SUCCESSFUL;
}
107a1b: 8d 65 f4 lea -0xc(%ebp),%esp
107a1e: 5b pop %ebx
107a1f: 5e pop %esi
107a20: 5f pop %edi
107a21: c9 leave
107a22: c3 ret
00107a23 <rtems_disk_create_phys>:
rtems_blkdev_bnum block_count,
rtems_block_device_ioctl handler,
void *driver_data,
const char *name
)
{
107a23: 55 push %ebp
107a24: 89 e5 mov %esp,%ebp
107a26: 57 push %edi
107a27: 56 push %esi
107a28: 53 push %ebx
107a29: 83 ec 2c sub $0x2c,%esp
107a2c: 8b 5d 08 mov 0x8(%ebp),%ebx
107a2f: 8b 75 0c mov 0xc(%ebp),%esi
107a32: 8b 7d 10 mov 0x10(%ebp),%edi
rtems_disk_device *dd = NULL;
rtems_status_code sc = RTEMS_SUCCESSFUL;
if (handler == NULL) {
107a35: ba 09 00 00 00 mov $0x9,%edx
107a3a: 83 7d 18 00 cmpl $0x0,0x18(%ebp)
107a3e: 0f 84 8d 00 00 00 je 107ad1 <rtems_disk_create_phys+0xae>
return RTEMS_INVALID_ADDRESS;
}
if (block_size == 0) {
107a44: b2 0a mov $0xa,%dl
107a46: 85 ff test %edi,%edi
107a48: 0f 84 83 00 00 00 je 107ad1 <rtems_disk_create_phys+0xae>
rtems_block_device_ioctl handler,
void *driver_data,
const char *name
)
{
rtems_disk_device *dd = NULL;
107a4e: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp)
if (block_size == 0) {
return RTEMS_INVALID_NUMBER;
}
sc = disk_lock();
107a55: e8 92 fa ff ff call 1074ec <disk_lock>
107a5a: 89 c2 mov %eax,%edx
if (sc != RTEMS_SUCCESSFUL) {
107a5c: 85 c0 test %eax,%eax
107a5e: 75 71 jne 107ad1 <rtems_disk_create_phys+0xae><== NEVER TAKEN
return sc;
}
sc = create_disk(dev, name, &dd);
107a60: 83 ec 0c sub $0xc,%esp
107a63: 8d 45 e4 lea -0x1c(%ebp),%eax
107a66: 50 push %eax
107a67: 8b 4d 20 mov 0x20(%ebp),%ecx
107a6a: 89 d8 mov %ebx,%eax
107a6c: 89 f2 mov %esi,%edx
107a6e: e8 2e fd ff ff call 1077a1 <create_disk>
107a73: 89 c2 mov %eax,%edx
if (sc != RTEMS_SUCCESSFUL) {
107a75: 83 c4 10 add $0x10,%esp
107a78: 85 c0 test %eax,%eax
107a7a: 75 4a jne 107ac6 <rtems_disk_create_phys+0xa3>
disk_unlock();
return sc;
}
dd->phys_dev = dd;
107a7c: 8b 45 e4 mov -0x1c(%ebp),%eax
107a7f: 89 40 08 mov %eax,0x8(%eax)
dd->start = 0;
107a82: c7 40 18 00 00 00 00 movl $0x0,0x18(%eax)
dd->size = block_count;
107a89: 8b 4d 14 mov 0x14(%ebp),%ecx
107a8c: 89 48 1c mov %ecx,0x1c(%eax)
dd->block_size = dd->media_block_size = block_size;
107a8f: 89 78 24 mov %edi,0x24(%eax)
107a92: 89 78 20 mov %edi,0x20(%eax)
dd->ioctl = handler;
107a95: 8b 4d 18 mov 0x18(%ebp),%ecx
107a98: 89 48 28 mov %ecx,0x28(%eax)
dd->driver_data = driver_data;
107a9b: 8b 4d 1c mov 0x1c(%ebp),%ecx
107a9e: 89 48 2c mov %ecx,0x2c(%eax)
if ((*handler)(dd, RTEMS_BLKIO_CAPABILITIES, &dd->capabilities) < 0) {
107aa1: 51 push %ecx
107aa2: 8d 48 0c lea 0xc(%eax),%ecx
107aa5: 51 push %ecx
107aa6: 68 08 42 00 20 push $0x20004208
107aab: 50 push %eax
107aac: 89 55 d4 mov %edx,-0x2c(%ebp)
107aaf: ff 55 18 call *0x18(%ebp)
107ab2: 83 c4 10 add $0x10,%esp
107ab5: 85 c0 test %eax,%eax
107ab7: 8b 55 d4 mov -0x2c(%ebp),%edx
107aba: 79 0a jns 107ac6 <rtems_disk_create_phys+0xa3>
dd->capabilities = 0;
107abc: 8b 45 e4 mov -0x1c(%ebp),%eax
107abf: c7 40 0c 00 00 00 00 movl $0x0,0xc(%eax)
}
disk_unlock();
107ac6: 89 55 d4 mov %edx,-0x2c(%ebp)
107ac9: e8 4c fa ff ff call 10751a <disk_unlock>
107ace: 8b 55 d4 mov -0x2c(%ebp),%edx
return RTEMS_SUCCESSFUL;
}
107ad1: 89 d0 mov %edx,%eax
107ad3: 8d 65 f4 lea -0xc(%ebp),%esp
107ad6: 5b pop %ebx
107ad7: 5e pop %esi
107ad8: 5f pop %edi
107ad9: c9 leave
107ada: c3 ret
00107638 <rtems_disk_delete>:
}
}
rtems_status_code
rtems_disk_delete(dev_t dev)
{
107638: 55 push %ebp
107639: 89 e5 mov %esp,%ebp
10763b: 57 push %edi
10763c: 56 push %esi
10763d: 53 push %ebx
10763e: 83 ec 3c sub $0x3c,%esp
107641: 8b 5d 08 mov 0x8(%ebp),%ebx
107644: 8b 75 0c mov 0xc(%ebp),%esi
rtems_status_code sc = RTEMS_SUCCESSFUL;
rtems_disk_device *dd = NULL;
sc = disk_lock();
107647: e8 a0 fe ff ff call 1074ec <disk_lock>
10764c: 89 45 dc mov %eax,-0x24(%ebp)
if (sc != RTEMS_SUCCESSFUL) {
10764f: 85 c0 test %eax,%eax
107651: 0f 85 06 01 00 00 jne 10775d <rtems_disk_delete+0x125><== NEVER TAKEN
return sc;
}
dd = get_disk_entry(dev, true);
107657: b9 01 00 00 00 mov $0x1,%ecx
10765c: 89 d8 mov %ebx,%eax
10765e: 89 f2 mov %esi,%edx
107660: e8 cb fc ff ff call 107330 <get_disk_entry>
if (dd == NULL) {
107665: 85 c0 test %eax,%eax
107667: 75 11 jne 10767a <rtems_disk_delete+0x42><== ALWAYS TAKEN
disk_unlock();
107669: e8 ac fe ff ff call 10751a <disk_unlock> <== NOT EXECUTED
10766e: c7 45 dc 04 00 00 00 movl $0x4,-0x24(%ebp) <== NOT EXECUTED
return RTEMS_INVALID_ID;
107675: e9 e3 00 00 00 jmp 10775d <rtems_disk_delete+0x125><== NOT EXECUTED
}
dd->deleted = true;
10767a: c6 40 30 01 movb $0x1,0x30(%eax)
}
static void
rtems_disk_cleanup(rtems_disk_device *disk_to_remove)
{
rtems_disk_device *const physical_disk = disk_to_remove->phys_dev;
10767e: 8b 58 08 mov 0x8(%eax),%ebx
rtems_device_major_number major = 0;
rtems_device_minor_number minor = 0;
if (physical_disk->deleted) {
107681: 80 7b 30 00 cmpb $0x0,0x30(%ebx)
107685: 0f 84 aa 00 00 00 je 107735 <rtems_disk_delete+0xfd>
dev_t dev = physical_disk->dev;
10768b: 8b 03 mov (%ebx),%eax
10768d: 89 45 d8 mov %eax,-0x28(%ebp)
107690: 8b 43 04 mov 0x4(%ebx),%eax
107693: 89 45 d4 mov %eax,-0x2c(%ebp)
107696: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp)
10769d: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp)
1076a4: eb 5f jmp 107705 <rtems_disk_delete+0xcd>
unsigned deleted_count = 0;
for (major = 0; major < disktab_size; ++major) {
rtems_disk_device_table *dtab = disktab + major;
1076a6: 8b 7d e4 mov -0x1c(%ebp),%edi
1076a9: c1 e7 03 shl $0x3,%edi
1076ac: 03 3d c8 8d 12 00 add 0x128dc8,%edi
1076b2: 31 f6 xor %esi,%esi
1076b4: 89 5d c4 mov %ebx,-0x3c(%ebp)
1076b7: eb 41 jmp 1076fa <rtems_disk_delete+0xc2>
for (minor = 0; minor < dtab->size; ++minor) {
rtems_disk_device *dd = dtab->minor [minor];
1076b9: 8d 14 b5 00 00 00 00 lea 0x0(,%esi,4),%edx
1076c0: 03 17 add (%edi),%edx
1076c2: 8b 02 mov (%edx),%eax
if (dd != NULL && dd->phys_dev->dev == dev && dd != physical_disk) {
1076c4: 85 c0 test %eax,%eax
1076c6: 74 31 je 1076f9 <rtems_disk_delete+0xc1>
1076c8: 3b 45 c4 cmp -0x3c(%ebp),%eax
1076cb: 74 2c je 1076f9 <rtems_disk_delete+0xc1>
1076cd: 8b 48 08 mov 0x8(%eax),%ecx
1076d0: 8b 5d d4 mov -0x2c(%ebp),%ebx
1076d3: 39 59 04 cmp %ebx,0x4(%ecx)
1076d6: 75 21 jne 1076f9 <rtems_disk_delete+0xc1><== NEVER TAKEN
1076d8: 8b 5d d8 mov -0x28(%ebp),%ebx
1076db: 39 19 cmp %ebx,(%ecx)
1076dd: 75 1a jne 1076f9 <rtems_disk_delete+0xc1><== NEVER TAKEN
if (dd->uses == 0) {
1076df: 83 78 14 00 cmpl $0x0,0x14(%eax)
1076e3: 75 10 jne 1076f5 <rtems_disk_delete+0xbd>
++deleted_count;
1076e5: ff 45 e0 incl -0x20(%ebp)
dtab->minor [minor] = NULL;
1076e8: c7 02 00 00 00 00 movl $0x0,(%edx)
free_disk_device(dd);
1076ee: e8 7c fc ff ff call 10736f <free_disk_device>
1076f3: eb 04 jmp 1076f9 <rtems_disk_delete+0xc1>
} else {
dd->deleted = true;
1076f5: c6 40 30 01 movb $0x1,0x30(%eax)
unsigned deleted_count = 0;
for (major = 0; major < disktab_size; ++major) {
rtems_disk_device_table *dtab = disktab + major;
for (minor = 0; minor < dtab->size; ++minor) {
1076f9: 46 inc %esi
1076fa: 3b 77 04 cmp 0x4(%edi),%esi
1076fd: 72 ba jb 1076b9 <rtems_disk_delete+0x81>
1076ff: 8b 5d c4 mov -0x3c(%ebp),%ebx
if (physical_disk->deleted) {
dev_t dev = physical_disk->dev;
unsigned deleted_count = 0;
for (major = 0; major < disktab_size; ++major) {
107702: ff 45 e4 incl -0x1c(%ebp)
107705: 8b 45 e4 mov -0x1c(%ebp),%eax
107708: 3b 05 cc 8d 12 00 cmp 0x128dcc,%eax
10770e: 72 96 jb 1076a6 <rtems_disk_delete+0x6e>
}
}
}
}
physical_disk->uses -= deleted_count;
107710: 8b 43 14 mov 0x14(%ebx),%eax
107713: 2b 45 e0 sub -0x20(%ebp),%eax
107716: 89 43 14 mov %eax,0x14(%ebx)
if (physical_disk->uses == 0) {
107719: 85 c0 test %eax,%eax
10771b: 75 3b jne 107758 <rtems_disk_delete+0x120>
rtems_filesystem_split_dev_t(physical_disk->dev, major, minor);
10771d: 8b 0b mov (%ebx),%ecx
10771f: 8b 53 04 mov 0x4(%ebx),%edx
disktab [major].minor [minor] = NULL;
107722: a1 c8 8d 12 00 mov 0x128dc8,%eax
107727: 8b 04 c8 mov (%eax,%ecx,8),%eax
10772a: c7 04 90 00 00 00 00 movl $0x0,(%eax,%edx,4)
free_disk_device(physical_disk);
107731: 89 d8 mov %ebx,%eax
107733: eb 1e jmp 107753 <rtems_disk_delete+0x11b>
}
} else {
if (disk_to_remove->uses == 0) {
107735: 83 78 14 00 cmpl $0x0,0x14(%eax)
107739: 75 1d jne 107758 <rtems_disk_delete+0x120><== NEVER TAKEN
--physical_disk->uses;
10773b: ff 4b 14 decl 0x14(%ebx)
rtems_filesystem_split_dev_t(disk_to_remove->dev, major, minor);
10773e: 8b 18 mov (%eax),%ebx
107740: 8b 48 04 mov 0x4(%eax),%ecx
disktab [major].minor [minor] = NULL;
107743: 8b 15 c8 8d 12 00 mov 0x128dc8,%edx
107749: 8b 14 da mov (%edx,%ebx,8),%edx
10774c: c7 04 8a 00 00 00 00 movl $0x0,(%edx,%ecx,4)
free_disk_device(disk_to_remove);
107753: e8 17 fc ff ff call 10736f <free_disk_device>
}
dd->deleted = true;
rtems_disk_cleanup(dd);
disk_unlock();
107758: e8 bd fd ff ff call 10751a <disk_unlock>
return RTEMS_SUCCESSFUL;
}
10775d: 8b 45 dc mov -0x24(%ebp),%eax
107760: 83 c4 3c add $0x3c,%esp
107763: 5b pop %ebx
107764: 5e pop %esi
107765: 5f pop %edi
107766: c9 leave
107767: c3 ret
001073b9 <rtems_disk_io_done>:
return RTEMS_SUCCESSFUL;
}
rtems_status_code
rtems_disk_io_done(void)
{
1073b9: 55 push %ebp
1073ba: 89 e5 mov %esp,%ebp
1073bc: 57 push %edi
1073bd: 56 push %esi
1073be: 53 push %ebx
1073bf: 83 ec 0c sub $0xc,%esp
1073c2: 31 f6 xor %esi,%esi
rtems_device_major_number major = 0;
rtems_device_minor_number minor = 0;
for (major = 0; major < disktab_size; ++major) {
1073c4: eb 33 jmp 1073f9 <rtems_disk_io_done+0x40>
rtems_disk_device_table *dtab = disktab + major;
1073c6: 8d 1c f5 00 00 00 00 lea 0x0(,%esi,8),%ebx
1073cd: 03 1d c8 8d 12 00 add 0x128dc8,%ebx
1073d3: 31 ff xor %edi,%edi
for (minor = 0; minor < dtab->size; ++minor) {
1073d5: eb 0f jmp 1073e6 <rtems_disk_io_done+0x2d>
rtems_disk_device *dd = dtab->minor [minor];
1073d7: 8b 03 mov (%ebx),%eax
1073d9: 8b 04 b8 mov (%eax,%edi,4),%eax
if (dd != NULL) {
1073dc: 85 c0 test %eax,%eax
1073de: 74 05 je 1073e5 <rtems_disk_io_done+0x2c><== ALWAYS TAKEN
free_disk_device(dd);
1073e0: e8 8a ff ff ff call 10736f <free_disk_device> <== NOT EXECUTED
rtems_device_minor_number minor = 0;
for (major = 0; major < disktab_size; ++major) {
rtems_disk_device_table *dtab = disktab + major;
for (minor = 0; minor < dtab->size; ++minor) {
1073e5: 47 inc %edi
1073e6: 3b 7b 04 cmp 0x4(%ebx),%edi
1073e9: 72 ec jb 1073d7 <rtems_disk_io_done+0x1e>
if (dd != NULL) {
free_disk_device(dd);
}
}
free(dtab->minor);
1073eb: 83 ec 0c sub $0xc,%esp
1073ee: ff 33 pushl (%ebx)
1073f0: e8 93 0f 00 00 call 108388 <free>
rtems_disk_io_done(void)
{
rtems_device_major_number major = 0;
rtems_device_minor_number minor = 0;
for (major = 0; major < disktab_size; ++major) {
1073f5: 46 inc %esi
1073f6: 83 c4 10 add $0x10,%esp
1073f9: 3b 35 cc 8d 12 00 cmp 0x128dcc,%esi
1073ff: 72 c5 jb 1073c6 <rtems_disk_io_done+0xd>
free_disk_device(dd);
}
}
free(dtab->minor);
}
free(disktab);
107401: 83 ec 0c sub $0xc,%esp
107404: ff 35 c8 8d 12 00 pushl 0x128dc8
10740a: e8 79 0f 00 00 call 108388 <free>
rtems_semaphore_delete(diskdevs_mutex);
10740f: 59 pop %ecx
107410: ff 35 d0 8d 12 00 pushl 0x128dd0
107416: e8 f5 40 00 00 call 10b510 <rtems_semaphore_delete>
diskdevs_mutex = RTEMS_ID_NONE;
10741b: c7 05 d0 8d 12 00 00 movl $0x0,0x128dd0
107422: 00 00 00
disktab = NULL;
107425: c7 05 c8 8d 12 00 00 movl $0x0,0x128dc8
10742c: 00 00 00
disktab_size = 0;
10742f: c7 05 cc 8d 12 00 00 movl $0x0,0x128dcc
107436: 00 00 00
return RTEMS_SUCCESSFUL;
}
107439: 31 c0 xor %eax,%eax
10743b: 8d 65 f4 lea -0xc(%ebp),%esp
10743e: 5b pop %ebx
10743f: 5e pop %esi
107440: 5f pop %edi
107441: c9 leave
107442: c3 ret
00107443 <rtems_disk_io_initialize>:
}
}
rtems_status_code
rtems_disk_io_initialize(void)
{
107443: 55 push %ebp
107444: 89 e5 mov %esp,%ebp
107446: 83 ec 08 sub $0x8,%esp
rtems_status_code sc = RTEMS_SUCCESSFUL;
rtems_device_major_number size = DISKTAB_INITIAL_SIZE;
if (disktab_size > 0) {
107449: 31 c0 xor %eax,%eax
10744b: 83 3d cc 8d 12 00 00 cmpl $0x0,0x128dcc
107452: 0f 85 92 00 00 00 jne 1074ea <rtems_disk_io_initialize+0xa7><== NEVER TAKEN
return RTEMS_SUCCESSFUL;
}
disktab = calloc(size, sizeof(rtems_disk_device_table));
107458: 52 push %edx
107459: 52 push %edx
10745a: 6a 08 push $0x8
10745c: 6a 08 push $0x8
10745e: e8 45 0d 00 00 call 1081a8 <calloc>
107463: 89 c2 mov %eax,%edx
107465: a3 c8 8d 12 00 mov %eax,0x128dc8
if (disktab == NULL) {
10746a: 83 c4 10 add $0x10,%esp
10746d: b8 1a 00 00 00 mov $0x1a,%eax
107472: 85 d2 test %edx,%edx
107474: 74 74 je 1074ea <rtems_disk_io_initialize+0xa7><== NEVER TAKEN
return RTEMS_NO_MEMORY;
}
diskdevs_protected = false;
107476: c6 05 d4 8d 12 00 00 movb $0x0,0x128dd4
sc = rtems_semaphore_create(
10747d: 83 ec 0c sub $0xc,%esp
107480: 68 d0 8d 12 00 push $0x128dd0
107485: 6a 00 push $0x0
107487: 6a 10 push $0x10
107489: 6a 01 push $0x1
10748b: 68 56 45 44 44 push $0x44444556
107490: e8 df 3e 00 00 call 10b374 <rtems_semaphore_create>
RTEMS_FIFO | RTEMS_BINARY_SEMAPHORE | RTEMS_NO_INHERIT_PRIORITY
| RTEMS_NO_PRIORITY_CEILING | RTEMS_LOCAL,
0,
&diskdevs_mutex
);
if (sc != RTEMS_SUCCESSFUL) {
107495: 83 c4 20 add $0x20,%esp
107498: 85 c0 test %eax,%eax
10749a: 74 15 je 1074b1 <rtems_disk_io_initialize+0x6e><== ALWAYS TAKEN
free(disktab);
10749c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10749f: ff 35 c8 8d 12 00 pushl 0x128dc8 <== NOT EXECUTED
1074a5: e8 de 0e 00 00 call 108388 <free> <== NOT EXECUTED
1074aa: b8 1a 00 00 00 mov $0x1a,%eax <== NOT EXECUTED
1074af: eb 28 jmp 1074d9 <rtems_disk_io_initialize+0x96><== NOT EXECUTED
return RTEMS_NO_MEMORY;
}
sc = rtems_bdbuf_init();
1074b1: e8 b2 7b 00 00 call 10f068 <rtems_bdbuf_init>
if (sc != RTEMS_SUCCESSFUL) {
1074b6: 85 c0 test %eax,%eax
1074b8: 74 24 je 1074de <rtems_disk_io_initialize+0x9b><== ALWAYS TAKEN
rtems_semaphore_delete(diskdevs_mutex);
1074ba: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1074bd: ff 35 d0 8d 12 00 pushl 0x128dd0 <== NOT EXECUTED
1074c3: e8 48 40 00 00 call 10b510 <rtems_semaphore_delete><== NOT EXECUTED
free(disktab);
1074c8: 58 pop %eax <== NOT EXECUTED
1074c9: ff 35 c8 8d 12 00 pushl 0x128dc8 <== NOT EXECUTED
1074cf: e8 b4 0e 00 00 call 108388 <free> <== NOT EXECUTED
1074d4: b8 0d 00 00 00 mov $0xd,%eax <== NOT EXECUTED
return RTEMS_UNSATISFIED;
1074d9: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1074dc: eb 0c jmp 1074ea <rtems_disk_io_initialize+0xa7><== NOT EXECUTED
}
disktab_size = size;
1074de: c7 05 cc 8d 12 00 08 movl $0x8,0x128dcc
1074e5: 00 00 00
1074e8: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
}
1074ea: c9 leave
1074eb: c3 ret
00107548 <rtems_disk_next>:
return RTEMS_SUCCESSFUL;
}
rtems_disk_device *
rtems_disk_next(dev_t dev)
{
107548: 55 push %ebp
107549: 89 e5 mov %esp,%ebp
10754b: 57 push %edi
10754c: 56 push %esi
10754d: 53 push %ebx
10754e: 83 ec 2c sub $0x2c,%esp
107551: 8b 5d 08 mov 0x8(%ebp),%ebx
107554: 8b 75 0c mov 0xc(%ebp),%esi
rtems_status_code sc = RTEMS_SUCCESSFUL;
rtems_disk_device_table *dtab = NULL;
rtems_device_major_number major = 0;
rtems_device_minor_number minor = 0;
if (dev != (dev_t) -1) {
107557: 83 fe ff cmp $0xffffffff,%esi
10755a: 75 0b jne 107567 <rtems_disk_next+0x1f>
10755c: 83 fb ff cmp $0xffffffff,%ebx
10755f: 75 06 jne 107567 <rtems_disk_next+0x1f> <== NEVER TAKEN
107561: 31 f6 xor %esi,%esi
107563: 31 db xor %ebx,%ebx
107565: eb 0c jmp 107573 <rtems_disk_next+0x2b>
rtems_filesystem_split_dev_t(dev, major, minor);
/* If minor wraps around */
if ((minor + 1) < minor) {
107567: 83 c6 01 add $0x1,%esi
10756a: 73 07 jae 107573 <rtems_disk_next+0x2b> <== ALWAYS TAKEN
/* If major wraps around */
if ((major + 1) < major) {
10756c: 83 c3 01 add $0x1,%ebx <== NOT EXECUTED
10756f: 72 66 jb 1075d7 <rtems_disk_next+0x8f> <== NOT EXECUTED
107571: 31 f6 xor %esi,%esi <== NOT EXECUTED
} else {
++minor;
}
}
sc = disk_lock();
107573: e8 74 ff ff ff call 1074ec <disk_lock>
if (sc != RTEMS_SUCCESSFUL) {
107578: 85 c0 test %eax,%eax
10757a: 75 5b jne 1075d7 <rtems_disk_next+0x8f> <== NEVER TAKEN
return NULL;
}
if (major >= disktab_size) {
10757c: 8b 0d cc 8d 12 00 mov 0x128dcc,%ecx
107582: 39 cb cmp %ecx,%ebx
107584: 73 1d jae 1075a3 <rtems_disk_next+0x5b> <== NEVER TAKEN
disk_unlock();
return NULL;
}
dtab = disktab + major;
107586: 8b 15 c8 8d 12 00 mov 0x128dc8,%edx
10758c: 8d 3c da lea (%edx,%ebx,8),%edi
10758f: 89 4d d4 mov %ecx,-0x2c(%ebp)
while (true) {
if (dtab->minor == NULL || minor >= dtab->size) {
107592: 8b 07 mov (%edi),%eax
107594: 85 c0 test %eax,%eax
107596: 74 05 je 10759d <rtems_disk_next+0x55>
107598: 3b 77 04 cmp 0x4(%edi),%esi
10759b: 72 14 jb 1075b1 <rtems_disk_next+0x69>
minor = 0;
++major;
10759d: 43 inc %ebx
if (major >= disktab_size) {
10759e: 3b 5d d4 cmp -0x2c(%ebp),%ebx
1075a1: 72 07 jb 1075aa <rtems_disk_next+0x62>
disk_unlock();
1075a3: e8 72 ff ff ff call 10751a <disk_unlock>
1075a8: eb 2d jmp 1075d7 <rtems_disk_next+0x8f>
return NULL;
}
dtab = disktab + major;
1075aa: 8d 3c da lea (%edx,%ebx,8),%edi
1075ad: 31 f6 xor %esi,%esi
return NULL;
}
dtab = disktab + major;
while (true) {
if (dtab->minor == NULL || minor >= dtab->size) {
1075af: eb e1 jmp 107592 <rtems_disk_next+0x4a>
disk_unlock();
return NULL;
}
dtab = disktab + major;
} else if (dtab->minor [minor] == NULL) {
1075b1: 8d 0c b5 00 00 00 00 lea 0x0(,%esi,4),%ecx
1075b8: 89 4d e4 mov %ecx,-0x1c(%ebp)
1075bb: 8b 04 b0 mov (%eax,%esi,4),%eax
1075be: 85 c0 test %eax,%eax
1075c0: 75 03 jne 1075c5 <rtems_disk_next+0x7d>
++minor;
1075c2: 46 inc %esi
1075c3: eb cd jmp 107592 <rtems_disk_next+0x4a>
} else {
++dtab->minor [minor]->uses;
1075c5: ff 40 14 incl 0x14(%eax)
disk_unlock();
1075c8: e8 4d ff ff ff call 10751a <disk_unlock>
return dtab->minor [minor];
1075cd: 8b 07 mov (%edi),%eax
1075cf: 8b 55 e4 mov -0x1c(%ebp),%edx
1075d2: 8b 04 10 mov (%eax,%edx,1),%eax
1075d5: eb 02 jmp 1075d9 <rtems_disk_next+0x91>
1075d7: 31 c0 xor %eax,%eax
}
}
}
1075d9: 83 c4 2c add $0x2c,%esp
1075dc: 5b pop %ebx
1075dd: 5e pop %esi
1075de: 5f pop %edi
1075df: c9 leave
1075e0: c3 ret
001075e1 <rtems_disk_obtain>:
return RTEMS_SUCCESSFUL;
}
rtems_disk_device *
rtems_disk_obtain(dev_t dev)
{
1075e1: 55 push %ebp
1075e2: 89 e5 mov %esp,%ebp
1075e4: 57 push %edi
1075e5: 56 push %esi
1075e6: 53 push %ebx
1075e7: 83 ec 1c sub $0x1c,%esp
1075ea: 8b 5d 08 mov 0x8(%ebp),%ebx
1075ed: 8b 75 0c mov 0xc(%ebp),%esi
rtems_status_code sc = RTEMS_SUCCESSFUL;
rtems_disk_device *dd = NULL;
rtems_interrupt_level level;
rtems_interrupt_disable(level);
1075f0: 9c pushf
1075f1: fa cli
1075f2: 5f pop %edi
if (!diskdevs_protected) {
1075f3: a0 d4 8d 12 00 mov 0x128dd4,%al
1075f8: 84 c0 test %al,%al
1075fa: 75 0f jne 10760b <rtems_disk_obtain+0x2a><== NEVER TAKEN
/* Frequent and quickest case */
dd = get_disk_entry(dev, false);
1075fc: 31 c9 xor %ecx,%ecx
1075fe: 89 d8 mov %ebx,%eax
107600: 89 f2 mov %esi,%edx
107602: e8 29 fd ff ff call 107330 <get_disk_entry>
rtems_interrupt_enable(level);
107607: 57 push %edi
107608: 9d popf
107609: eb 25 jmp 107630 <rtems_disk_obtain+0x4f>
} else {
rtems_interrupt_enable(level);
10760b: 57 push %edi <== NOT EXECUTED
10760c: 9d popf <== NOT EXECUTED
sc = disk_lock();
10760d: e8 da fe ff ff call 1074ec <disk_lock> <== NOT EXECUTED
107612: 89 c2 mov %eax,%edx <== NOT EXECUTED
if (sc == RTEMS_SUCCESSFUL) {
107614: 31 c0 xor %eax,%eax <== NOT EXECUTED
107616: 85 d2 test %edx,%edx <== NOT EXECUTED
107618: 75 16 jne 107630 <rtems_disk_obtain+0x4f><== NOT EXECUTED
dd = get_disk_entry(dev, false);
10761a: 31 c9 xor %ecx,%ecx <== NOT EXECUTED
10761c: 89 d8 mov %ebx,%eax <== NOT EXECUTED
10761e: 89 f2 mov %esi,%edx <== NOT EXECUTED
107620: e8 0b fd ff ff call 107330 <get_disk_entry> <== NOT EXECUTED
disk_unlock();
107625: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
107628: e8 ed fe ff ff call 10751a <disk_unlock> <== NOT EXECUTED
10762d: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
}
}
return dd;
}
107630: 83 c4 1c add $0x1c,%esp
107633: 5b pop %ebx
107634: 5e pop %esi
107635: 5f pop %edi
107636: c9 leave
107637: c3 ret
00120b1c <rtems_dosfs_initialize>:
* RC_OK on success, or -1 if error occured (errno set apropriately).
*
*/
int rtems_dosfs_initialize(rtems_filesystem_mount_table_entry_t *mt_entry,
const void *data)
{
120b1c: 55 push %ebp <== NOT EXECUTED
120b1d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
120b1f: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
int rc;
rc = msdos_initialize_support(mt_entry,
120b22: 68 b0 e0 15 00 push $0x15e0b0 <== NOT EXECUTED
120b27: 68 e8 e0 15 00 push $0x15e0e8 <== NOT EXECUTED
120b2c: 68 54 9e 15 00 push $0x159e54 <== NOT EXECUTED
120b31: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
120b34: e8 03 00 00 00 call 120b3c <msdos_initialize_support><== NOT EXECUTED
&msdos_ops,
&msdos_file_handlers,
&msdos_dir_handlers);
return rc;
}
120b39: c9 leave <== NOT EXECUTED
120b3a: c3 ret <== NOT EXECUTED
0010b6b3 <rtems_error>:
int rtems_error(
rtems_error_code_t error_flag,
const char *printf_format,
...
)
{
10b6b3: 55 push %ebp <== NOT EXECUTED
10b6b4: 89 e5 mov %esp,%ebp <== NOT EXECUTED
10b6b6: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
* printf(3) format string, with its concommitant arguments.
*
* Returns the number of characters written.
*/
int rtems_error(
10b6b9: 8d 4d 10 lea 0x10(%ebp),%ecx <== NOT EXECUTED
{
va_list arglist;
int chars_written;
va_start(arglist, printf_format);
chars_written = rtems_verror(error_flag, printf_format, arglist);
10b6bc: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
10b6bf: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
10b6c2: e8 6a fe ff ff call 10b531 <rtems_verror> <== NOT EXECUTED
va_end(arglist);
return chars_written;
}
10b6c7: c9 leave <== NOT EXECUTED
10b6c8: c3 ret <== NOT EXECUTED
00107631 <rtems_filesystem_evaluate_path>:
size_t pathnamelen,
int flags,
rtems_filesystem_location_info_t *pathloc,
int follow_link
)
{
107631: 55 push %ebp
107632: 89 e5 mov %esp,%ebp
107634: 56 push %esi
107635: 53 push %ebx
107636: 83 ec 10 sub $0x10,%esp
107639: 8b 5d 08 mov 0x8(%ebp),%ebx
10763c: 8b 75 14 mov 0x14(%ebp),%esi
int i = 0;
10763f: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
/*
* Verify Input parameters.
*/
if ( !pathname )
107646: 85 db test %ebx,%ebx
107648: 75 0d jne 107657 <rtems_filesystem_evaluate_path+0x26><== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( EFAULT );
10764a: e8 c5 b3 00 00 call 112a14 <__errno> <== NOT EXECUTED
10764f: c7 00 0e 00 00 00 movl $0xe,(%eax) <== NOT EXECUTED
107655: eb 0f jmp 107666 <rtems_filesystem_evaluate_path+0x35><== NOT EXECUTED
if ( !pathloc )
107657: 85 f6 test %esi,%esi
107659: 75 10 jne 10766b <rtems_filesystem_evaluate_path+0x3a><== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */
10765b: e8 b4 b3 00 00 call 112a14 <__errno> <== NOT EXECUTED
107660: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
107666: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
107669: eb 28 jmp 107693 <rtems_filesystem_evaluate_path+0x62><== NOT EXECUTED
/*
* Evaluate the path using the optable evalpath.
*/
rtems_filesystem_get_start_loc( pathname, &i, pathloc );
10766b: 51 push %ecx
10766c: 56 push %esi
10766d: 8d 45 f4 lea -0xc(%ebp),%eax
107670: 50 push %eax
107671: 53 push %ebx
107672: e8 39 0d 00 00 call 1083b0 <rtems_filesystem_get_start_loc>
/*
* We evaluation the path relative to the start location we get got.
*/
return rtems_filesystem_evaluate_relative_path( &pathname[i],
107677: 8b 45 f4 mov -0xc(%ebp),%eax
10767a: 5a pop %edx
10767b: ff 75 18 pushl 0x18(%ebp)
10767e: 56 push %esi
10767f: ff 75 10 pushl 0x10(%ebp)
107682: 8b 55 0c mov 0xc(%ebp),%edx
107685: 29 c2 sub %eax,%edx
107687: 52 push %edx
107688: 01 c3 add %eax,%ebx
10768a: 53 push %ebx
10768b: e8 e7 fe ff ff call 107577 <rtems_filesystem_evaluate_relative_path>
107690: 83 c4 20 add $0x20,%esp
pathnamelen - i,
flags,
pathloc,
follow_link );
}
107693: 8d 65 f8 lea -0x8(%ebp),%esp
107696: 5b pop %ebx
107697: 5e pop %esi
107698: c9 leave
107699: c3 ret
00107577 <rtems_filesystem_evaluate_relative_path>:
size_t pathnamelen,
int flags,
rtems_filesystem_location_info_t *pathloc,
int follow_link
)
{
107577: 55 push %ebp
107578: 89 e5 mov %esp,%ebp
10757a: 57 push %edi
10757b: 56 push %esi
10757c: 53 push %ebx
10757d: 83 ec 1c sub $0x1c,%esp
107580: 8b 4d 08 mov 0x8(%ebp),%ecx
107583: 8b 75 0c mov 0xc(%ebp),%esi
107586: 8b 7d 10 mov 0x10(%ebp),%edi
107589: 8b 5d 14 mov 0x14(%ebp),%ebx
10758c: 8b 55 18 mov 0x18(%ebp),%edx
/*
* Verify Input parameters.
*/
if ( !pathname )
10758f: 85 c9 test %ecx,%ecx
107591: 75 0d jne 1075a0 <rtems_filesystem_evaluate_relative_path+0x29><== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( EFAULT );
107593: e8 7c b4 00 00 call 112a14 <__errno> <== NOT EXECUTED
107598: c7 00 0e 00 00 00 movl $0xe,(%eax) <== NOT EXECUTED
10759e: eb 0f jmp 1075af <rtems_filesystem_evaluate_relative_path+0x38><== NOT EXECUTED
if ( !pathloc )
1075a0: 85 db test %ebx,%ebx
1075a2: 75 10 jne 1075b4 <rtems_filesystem_evaluate_relative_path+0x3d><== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */
1075a4: e8 6b b4 00 00 call 112a14 <__errno> <== NOT EXECUTED
1075a9: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
1075af: 83 ce ff or $0xffffffff,%esi <== NOT EXECUTED
1075b2: eb 73 jmp 107627 <rtems_filesystem_evaluate_relative_path+0xb0><== NOT EXECUTED
if ( !pathloc->ops->evalpath_h )
1075b4: 8b 43 0c mov 0xc(%ebx),%eax
1075b7: 8b 00 mov (%eax),%eax
1075b9: 85 c0 test %eax,%eax
1075bb: 74 4e je 10760b <rtems_filesystem_evaluate_relative_path+0x94><== NEVER TAKEN
rtems_set_errno_and_return_minus_one( ENOTSUP );
result = (*pathloc->ops->evalpath_h)( pathname, pathnamelen, flags, pathloc );
1075bd: 53 push %ebx
1075be: 57 push %edi
1075bf: 56 push %esi
1075c0: 51 push %ecx
1075c1: 89 55 e4 mov %edx,-0x1c(%ebp)
1075c4: ff d0 call *%eax
1075c6: 89 c6 mov %eax,%esi
/*
* Get the Node type and determine if you need to follow the link or
* not.
*/
if ( (result == 0) && follow_link ) {
1075c8: 83 c4 10 add $0x10,%esp
1075cb: 85 c0 test %eax,%eax
1075cd: 8b 55 e4 mov -0x1c(%ebp),%edx
1075d0: 75 55 jne 107627 <rtems_filesystem_evaluate_relative_path+0xb0>
1075d2: 85 d2 test %edx,%edx
1075d4: 74 51 je 107627 <rtems_filesystem_evaluate_relative_path+0xb0>
if ( !pathloc->ops->node_type_h ){
1075d6: 8b 53 0c mov 0xc(%ebx),%edx
1075d9: 8b 42 10 mov 0x10(%edx),%eax
1075dc: 85 c0 test %eax,%eax
1075de: 74 1b je 1075fb <rtems_filesystem_evaluate_relative_path+0x84><== NEVER TAKEN
rtems_filesystem_freenode( pathloc );
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
type = (*pathloc->ops->node_type_h)( pathloc );
1075e0: 83 ec 0c sub $0xc,%esp
1075e3: 53 push %ebx
1075e4: ff d0 call *%eax
if ( ( type == RTEMS_FILESYSTEM_HARD_LINK ) ||
1075e6: 83 e8 03 sub $0x3,%eax
1075e9: 83 c4 10 add $0x10,%esp
1075ec: 83 f8 01 cmp $0x1,%eax
1075ef: 77 36 ja 107627 <rtems_filesystem_evaluate_relative_path+0xb0>
( type == RTEMS_FILESYSTEM_SYM_LINK ) ) {
if ( !pathloc->ops->eval_link_h ){
1075f1: 8b 53 0c mov 0xc(%ebx),%edx
1075f4: 8b 42 34 mov 0x34(%edx),%eax
1075f7: 85 c0 test %eax,%eax
1075f9: 75 1d jne 107618 <rtems_filesystem_evaluate_relative_path+0xa1><== ALWAYS TAKEN
rtems_filesystem_freenode( pathloc );
1075fb: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED
1075fe: 85 c0 test %eax,%eax <== NOT EXECUTED
107600: 74 09 je 10760b <rtems_filesystem_evaluate_relative_path+0x94><== NOT EXECUTED
107602: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
107605: 53 push %ebx <== NOT EXECUTED
107606: ff d0 call *%eax <== NOT EXECUTED
107608: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
10760b: e8 04 b4 00 00 call 112a14 <__errno> <== NOT EXECUTED
107610: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
107616: eb 97 jmp 1075af <rtems_filesystem_evaluate_relative_path+0x38><== NOT EXECUTED
* pathloc will be passed up (and eventually released).
* Hence, the (valid) originial node that we submit to
* eval_link_h() should be released by the handler.
*/
result = (*pathloc->ops->eval_link_h)( pathloc, flags );
107618: 89 7d 0c mov %edi,0xc(%ebp)
10761b: 89 5d 08 mov %ebx,0x8(%ebp)
}
}
return result;
}
10761e: 8d 65 f4 lea -0xc(%ebp),%esp
107621: 5b pop %ebx
107622: 5e pop %esi
107623: 5f pop %edi
107624: c9 leave
* pathloc will be passed up (and eventually released).
* Hence, the (valid) originial node that we submit to
* eval_link_h() should be released by the handler.
*/
result = (*pathloc->ops->eval_link_h)( pathloc, flags );
107625: ff e0 jmp *%eax
}
}
return result;
}
107627: 89 f0 mov %esi,%eax
107629: 8d 65 f4 lea -0xc(%ebp),%esp
10762c: 5b pop %ebx
10762d: 5e pop %esi
10762e: 5f pop %edi
10762f: c9 leave
107630: c3 ret
0010f23f <rtems_filesystem_get_mount_handler>:
rtems_filesystem_fsmount_me_t
rtems_filesystem_get_mount_handler(
const char *type
)
{
10f23f: 55 push %ebp
10f240: 89 e5 mov %esp,%ebp
10f242: 83 ec 18 sub $0x18,%esp
10f245: 8b 45 08 mov 0x8(%ebp),%eax
find_arg fa = {
.type = type,
.mount_h = NULL
};
10f248: 89 45 f0 mov %eax,-0x10(%ebp)
10f24b: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
if ( type != NULL ) {
10f252: 85 c0 test %eax,%eax
10f254: 74 13 je 10f269 <rtems_filesystem_get_mount_handler+0x2a><== NEVER TAKEN
rtems_filesystem_iterate( find_handler, &fa );
10f256: 50 push %eax
10f257: 50 push %eax
10f258: 8d 45 f0 lea -0x10(%ebp),%eax
10f25b: 50 push %eax
10f25c: 68 f0 f0 10 00 push $0x10f0f0
10f261: e8 54 ff ff ff call 10f1ba <rtems_filesystem_iterate>
10f266: 83 c4 10 add $0x10,%esp
}
return fa.mount_h;
}
10f269: 8b 45 f4 mov -0xc(%ebp),%eax
10f26c: c9 leave
10f26d: c3 ret
001073dc <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 )
{
1073dc: 55 push %ebp
1073dd: 89 e5 mov %esp,%ebp
1073df: 57 push %edi
1073e0: 56 push %esi
1073e1: 53 push %ebx
1073e2: 83 ec 2c sub $0x2c,%esp
/*
* Set the default umask to "022".
*/
rtems_filesystem_umask = 022;
1073e5: a1 54 3f 12 00 mov 0x123f54,%eax
1073ea: c7 40 2c 12 00 00 00 movl $0x12,0x2c(%eax)
/*
* mount the first filesystem.
*/
if ( rtems_filesystem_mount_table_size == 0 )
1073f1: 83 3d 00 e9 11 00 00 cmpl $0x0,0x11e900
1073f8: 75 0a jne 107404 <rtems_filesystem_initialize+0x28><== ALWAYS TAKEN
rtems_fatal_error_occurred( 0xABCD0001 );
1073fa: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1073fd: 68 01 00 cd ab push $0xabcd0001 <== NOT EXECUTED
107402: eb 28 jmp 10742c <rtems_filesystem_initialize+0x50><== NOT EXECUTED
mt = &rtems_filesystem_mount_table[0];
107404: a1 4c 21 12 00 mov 0x12214c,%eax
status = mount( mt->device, mt->mount_point, mt->type, mt->fsoptions, NULL );
107409: 83 ec 0c sub $0xc,%esp
10740c: 6a 00 push $0x0
10740e: ff 70 04 pushl 0x4(%eax)
107411: ff 30 pushl (%eax)
107413: ff 70 0c pushl 0xc(%eax)
107416: ff 70 08 pushl 0x8(%eax)
107419: e8 30 07 00 00 call 107b4e <mount>
if ( status == -1 )
10741e: 83 c4 20 add $0x20,%esp
107421: 40 inc %eax
107422: 75 0d jne 107431 <rtems_filesystem_initialize+0x55><== ALWAYS TAKEN
rtems_fatal_error_occurred( 0xABCD0002 );
107424: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
107427: 68 02 00 cd ab push $0xabcd0002 <== NOT EXECUTED
10742c: e8 5f 37 00 00 call 10ab90 <rtems_fatal_error_occurred><== NOT EXECUTED
rtems_filesystem_link_counts = 0;
107431: a1 54 3f 12 00 mov 0x123f54,%eax
107436: 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);
10743c: 83 ec 0c sub $0xc,%esp
10743f: 6a 00 push $0x0
107441: 8d 5d d4 lea -0x2c(%ebp),%ebx
107444: 53 push %ebx
107445: 6a 00 push $0x0
107447: 6a 01 push $0x1
107449: 68 10 01 12 00 push $0x120110
10744e: e8 de 01 00 00 call 107631 <rtems_filesystem_evaluate_path>
rtems_filesystem_root = loc;
107453: 8b 3d 54 3f 12 00 mov 0x123f54,%edi
107459: 83 c7 18 add $0x18,%edi
10745c: b9 05 00 00 00 mov $0x5,%ecx
107461: 89 de mov %ebx,%esi
107463: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
/* One more clone for the current node */
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
107465: 83 c4 14 add $0x14,%esp
107468: 6a 00 push $0x0
10746a: 53 push %ebx
10746b: 6a 00 push $0x0
10746d: 6a 01 push $0x1
10746f: 68 10 01 12 00 push $0x120110
107474: e8 b8 01 00 00 call 107631 <rtems_filesystem_evaluate_path>
rtems_filesystem_current = loc;
107479: 8b 3d 54 3f 12 00 mov 0x123f54,%edi
10747f: 83 c7 04 add $0x4,%edi
107482: b9 05 00 00 00 mov $0x5,%ecx
107487: 89 de mov %ebx,%esi
107489: 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);
10748b: 83 c4 18 add $0x18,%esp
10748e: 68 ff 01 00 00 push $0x1ff
107493: 68 12 01 12 00 push $0x120112
107498: e8 43 05 00 00 call 1079e0 <mkdir>
if ( status != 0 )
10749d: 83 c4 10 add $0x10,%esp
1074a0: 85 c0 test %eax,%eax
1074a2: 74 0d je 1074b1 <rtems_filesystem_initialize+0xd5><== ALWAYS TAKEN
rtems_fatal_error_occurred( 0xABCD0003 );
1074a4: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1074a7: 68 03 00 cd ab push $0xabcd0003 <== NOT EXECUTED
1074ac: e9 7b ff ff ff jmp 10742c <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.
*/
}
1074b1: 8d 65 f4 lea -0xc(%ebp),%esp
1074b4: 5b pop %ebx
1074b5: 5e pop %esi
1074b6: 5f pop %edi
1074b7: c9 leave
1074b8: c3 ret
00107af5 <rtems_filesystem_mount_iterate>:
bool rtems_filesystem_mount_iterate(
rtems_per_filesystem_mount_routine routine,
void *routine_arg
)
{
107af5: 55 push %ebp
107af6: 89 e5 mov %esp,%ebp
107af8: 57 push %edi
107af9: 56 push %esi
107afa: 53 push %ebx
107afb: 83 ec 10 sub $0x10,%esp
107afe: 8b 7d 0c mov 0xc(%ebp),%edi
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 );
107b01: 6a 00 push $0x0
107b03: 6a 00 push $0x0
107b05: ff 35 c0 60 12 00 pushl 0x1260c0
107b0b: e8 e8 2a 00 00 call 10a5f8 <rtems_semaphore_obtain>
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(
Chain_Control *the_chain
)
{
return the_chain->first;
107b10: 8b 1d 34 3f 12 00 mov 0x123f34,%ebx
107b16: 31 f6 xor %esi,%esi
107b18: eb 0b jmp 107b25 <rtems_filesystem_mount_iterate+0x30>
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 );
107b1a: 50 push %eax
107b1b: 50 push %eax
107b1c: 57 push %edi
107b1d: 53 push %ebx
107b1e: ff 55 08 call *0x8(%ebp)
107b21: 89 c6 mov %eax,%esi
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Next(
Chain_Node *the_node
)
{
return the_node->next;
107b23: 8b 1b mov (%ebx),%ebx
107b25: 83 c4 10 add $0x10,%esp
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
107b28: 81 fb 38 3f 12 00 cmp $0x123f38,%ebx
107b2e: 74 06 je 107b36 <rtems_filesystem_mount_iterate+0x41>
{
rtems_chain_node *node = NULL;
bool stop = false;
rtems_libio_lock();
for (
107b30: 89 f0 mov %esi,%eax
107b32: 84 c0 test %al,%al
107b34: 74 e4 je 107b1a <rtems_filesystem_mount_iterate+0x25><== ALWAYS TAKEN
}
static inline void rtems_libio_unlock( void )
{
rtems_semaphore_release( rtems_libio_semaphore );
107b36: 83 ec 0c sub $0xc,%esp
107b39: ff 35 c0 60 12 00 pushl 0x1260c0
107b3f: e8 a0 2b 00 00 call 10a6e4 <rtems_semaphore_release>
stop = (*routine)( mt_entry, routine_arg );
}
rtems_libio_unlock();
return stop;
}
107b44: 89 f0 mov %esi,%eax
107b46: 8d 65 f4 lea -0xc(%ebp),%esp
107b49: 5b pop %ebx
107b4a: 5e pop %esi
107b4b: 5f pop %edi
107b4c: c9 leave
107b4d: c3 ret
001074f8 <rtems_filesystem_prefix_separators>:
int rtems_filesystem_prefix_separators(
const char *pathname,
int pathnamelen
)
{
1074f8: 55 push %ebp
1074f9: 89 e5 mov %esp,%ebp
1074fb: 57 push %edi
1074fc: 56 push %esi
1074fd: 53 push %ebx
1074fe: 83 ec 0c sub $0xc,%esp
107501: 8b 7d 08 mov 0x8(%ebp),%edi
107504: 8b 75 0c mov 0xc(%ebp),%esi
107507: 31 db xor %ebx,%ebx
/*
* Eat any separators at start of the path.
*/
int stripped = 0;
while ( *pathname && pathnamelen && rtems_filesystem_is_separator( *pathname ) )
107509: eb 01 jmp 10750c <rtems_filesystem_prefix_separators+0x14>
{
pathname++;
pathnamelen--;
stripped++;
10750b: 43 inc %ebx
{
/*
* Eat any separators at start of the path.
*/
int stripped = 0;
while ( *pathname && pathnamelen && rtems_filesystem_is_separator( *pathname ) )
10750c: 8a 04 1f mov (%edi,%ebx,1),%al
10750f: 39 de cmp %ebx,%esi
107511: 74 17 je 10752a <rtems_filesystem_prefix_separators+0x32><== NEVER TAKEN
107513: 84 c0 test %al,%al
107515: 74 13 je 10752a <rtems_filesystem_prefix_separators+0x32><== NEVER TAKEN
107517: 83 ec 0c sub $0xc,%esp
10751a: 0f be c0 movsbl %al,%eax
10751d: 50 push %eax
10751e: e8 e5 0e 00 00 call 108408 <rtems_filesystem_is_separator>
107523: 83 c4 10 add $0x10,%esp
107526: 85 c0 test %eax,%eax
107528: 75 e1 jne 10750b <rtems_filesystem_prefix_separators+0x13>
pathname++;
pathnamelen--;
stripped++;
}
return stripped;
}
10752a: 89 d8 mov %ebx,%eax
10752c: 8d 65 f4 lea -0xc(%ebp),%esp
10752f: 5b pop %ebx
107530: 5e pop %esi
107531: 5f pop %edi
107532: c9 leave
107533: c3 ret
0010f26e <rtems_filesystem_register>:
int
rtems_filesystem_register(
const char *type,
rtems_filesystem_fsmount_me_t mount_h
)
{
10f26e: 55 push %ebp
10f26f: 89 e5 mov %esp,%ebp
10f271: 57 push %edi
10f272: 56 push %esi
10f273: 53 push %ebx
10f274: 83 ec 18 sub $0x18,%esp
10f277: 8b 5d 08 mov 0x8(%ebp),%ebx
size_t fsn_size = sizeof( filesystem_node ) + strlen(type) + 1;
10f27a: 31 c0 xor %eax,%eax
10f27c: 83 c9 ff or $0xffffffff,%ecx
10f27f: 89 df mov %ebx,%edi
10f281: f2 ae repnz scas %es:(%edi),%al
10f283: f7 d1 not %ecx
filesystem_node *fsn = malloc( fsn_size );
10f285: 83 c1 10 add $0x10,%ecx
10f288: 51 push %ecx
10f289: e8 ae 86 ff ff call 10793c <malloc>
10f28e: 89 c6 mov %eax,%esi
char *type_storage = (char *) fsn + sizeof( filesystem_node );
if ( fsn == NULL )
10f290: 83 c4 10 add $0x10,%esp
10f293: 85 c0 test %eax,%eax
10f295: 75 10 jne 10f2a7 <rtems_filesystem_register+0x39><== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( ENOMEM );
10f297: e8 78 37 00 00 call 112a14 <__errno> <== NOT EXECUTED
10f29c: c7 00 0c 00 00 00 movl $0xc,(%eax) <== NOT EXECUTED
10f2a2: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
10f2a5: eb 7a jmp 10f321 <rtems_filesystem_register+0xb3><== NOT EXECUTED
rtems_filesystem_fsmount_me_t mount_h
)
{
size_t fsn_size = sizeof( filesystem_node ) + strlen(type) + 1;
filesystem_node *fsn = malloc( fsn_size );
char *type_storage = (char *) fsn + sizeof( filesystem_node );
10f2a7: 8d 78 10 lea 0x10(%eax),%edi
if ( fsn == NULL )
rtems_set_errno_and_return_minus_one( ENOMEM );
strcpy(type_storage, type);
10f2aa: 50 push %eax
10f2ab: 50 push %eax
10f2ac: 53 push %ebx
10f2ad: 57 push %edi
10f2ae: e8 d5 42 00 00 call 113588 <strcpy>
fsn->entry.type = type_storage;
10f2b3: 89 7e 08 mov %edi,0x8(%esi)
fsn->entry.mount_h = mount_h;
10f2b6: 8b 45 0c mov 0xc(%ebp),%eax
10f2b9: 89 46 0c mov %eax,0xc(%esi)
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 );
10f2bc: 83 c4 0c add $0xc,%esp
10f2bf: 6a 00 push $0x0
10f2c1: 6a 00 push $0x0
10f2c3: ff 35 c0 60 12 00 pushl 0x1260c0
10f2c9: e8 2a b3 ff ff call 10a5f8 <rtems_semaphore_obtain>
rtems_libio_lock();
if ( rtems_filesystem_get_mount_handler( type ) == NULL ) {
10f2ce: 89 1c 24 mov %ebx,(%esp)
10f2d1: e8 69 ff ff ff call 10f23f <rtems_filesystem_get_mount_handler>
10f2d6: 83 c4 10 add $0x10,%esp
10f2d9: 85 c0 test %eax,%eax
10f2db: 75 1d jne 10f2fa <rtems_filesystem_register+0x8c><== NEVER TAKEN
RTEMS_INLINE_ROUTINE void rtems_chain_append(
rtems_chain_control *the_chain,
rtems_chain_node *the_node
)
{
_Chain_Append( the_chain, the_node );
10f2dd: 51 push %ecx
10f2de: 51 push %ecx
10f2df: 56 push %esi
10f2e0: 68 7c 3f 12 00 push $0x123f7c
10f2e5: e8 4a bb ff ff call 10ae34 <_Chain_Append>
}
static inline void rtems_libio_unlock( void )
{
rtems_semaphore_release( rtems_libio_semaphore );
10f2ea: 5a pop %edx
10f2eb: ff 35 c0 60 12 00 pushl 0x1260c0
10f2f1: e8 ee b3 ff ff call 10a6e4 <rtems_semaphore_release>
10f2f6: 31 c0 xor %eax,%eax
10f2f8: eb 24 jmp 10f31e <rtems_filesystem_register+0xb0>
10f2fa: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10f2fd: ff 35 c0 60 12 00 pushl 0x1260c0 <== NOT EXECUTED
10f303: e8 dc b3 ff ff call 10a6e4 <rtems_semaphore_release><== NOT EXECUTED
rtems_chain_append( &filesystem_chain, &fsn->node );
} else {
rtems_libio_unlock();
free( fsn );
10f308: 89 34 24 mov %esi,(%esp) <== NOT EXECUTED
10f30b: e8 8c 83 ff ff call 10769c <free> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
10f310: e8 ff 36 00 00 call 112a14 <__errno> <== NOT EXECUTED
10f315: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
10f31b: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
10f31e: 83 c4 10 add $0x10,%esp
}
rtems_libio_unlock();
return 0;
}
10f321: 8d 65 f4 lea -0xc(%ebp),%esp
10f324: 5b pop %ebx
10f325: 5e pop %esi
10f326: 5f pop %edi
10f327: c9 leave
10f328: c3 ret
0010f120 <rtems_filesystem_unregister>:
int
rtems_filesystem_unregister(
const char *type
)
{
10f120: 55 push %ebp <== NOT EXECUTED
10f121: 89 e5 mov %esp,%ebp <== NOT EXECUTED
10f123: 56 push %esi <== NOT EXECUTED
10f124: 53 push %ebx <== NOT EXECUTED
10f125: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
rtems_chain_node *node = NULL;
if ( type == NULL ) {
10f128: 85 f6 test %esi,%esi <== NOT EXECUTED
10f12a: 75 10 jne 10f13c <rtems_filesystem_unregister+0x1c><== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
10f12c: e8 e3 38 00 00 call 112a14 <__errno> <== NOT EXECUTED
10f131: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
10f137: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
10f13a: eb 77 jmp 10f1b3 <rtems_filesystem_unregister+0x93><== 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 );
10f13c: 53 push %ebx <== NOT EXECUTED
10f13d: 6a 00 push $0x0 <== NOT EXECUTED
10f13f: 6a 00 push $0x0 <== NOT EXECUTED
10f141: ff 35 c0 60 12 00 pushl 0x1260c0 <== NOT EXECUTED
10f147: e8 ac b4 ff ff call 10a5f8 <rtems_semaphore_obtain><== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(
Chain_Control *the_chain
)
{
return the_chain->first;
10f14c: 8b 1d 7c 3f 12 00 mov 0x123f7c,%ebx <== NOT EXECUTED
}
rtems_libio_lock();
for (
10f152: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10f155: eb 35 jmp 10f18c <rtems_filesystem_unregister+0x6c><== NOT EXECUTED
!rtems_chain_is_tail( &filesystem_chain, node );
node = rtems_chain_next( node )
) {
filesystem_node *fsn = (filesystem_node *) node;
if ( strcmp( fsn->entry.type, type ) == 0 ) {
10f157: 51 push %ecx <== NOT EXECUTED
10f158: 51 push %ecx <== NOT EXECUTED
10f159: 56 push %esi <== NOT EXECUTED
10f15a: ff 73 08 pushl 0x8(%ebx) <== NOT EXECUTED
10f15d: e8 ce 43 00 00 call 113530 <strcmp> <== NOT EXECUTED
10f162: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10f165: 85 c0 test %eax,%eax <== NOT EXECUTED
10f167: 75 21 jne 10f18a <rtems_filesystem_unregister+0x6a><== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void rtems_chain_extract(
rtems_chain_node *the_node
)
{
_Chain_Extract( the_node );
10f169: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10f16c: 53 push %ebx <== NOT EXECUTED
10f16d: e8 e6 bc ff ff call 10ae58 <_Chain_Extract> <== NOT EXECUTED
rtems_chain_extract( node );
free( fsn );
10f172: 89 1c 24 mov %ebx,(%esp) <== NOT EXECUTED
10f175: e8 22 85 ff ff call 10769c <free> <== NOT EXECUTED
}
static inline void rtems_libio_unlock( void )
{
rtems_semaphore_release( rtems_libio_semaphore );
10f17a: 5a pop %edx <== NOT EXECUTED
10f17b: ff 35 c0 60 12 00 pushl 0x1260c0 <== NOT EXECUTED
10f181: e8 5e b5 ff ff call 10a6e4 <rtems_semaphore_release><== NOT EXECUTED
10f186: 31 c0 xor %eax,%eax <== NOT EXECUTED
10f188: eb 26 jmp 10f1b0 <rtems_filesystem_unregister+0x90><== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Next(
Chain_Node *the_node
)
{
return the_node->next;
10f18a: 8b 1b mov (%ebx),%ebx <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
10f18c: 81 fb 80 3f 12 00 cmp $0x123f80,%ebx <== NOT EXECUTED
10f192: 75 c3 jne 10f157 <rtems_filesystem_unregister+0x37><== NOT EXECUTED
10f194: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10f197: ff 35 c0 60 12 00 pushl 0x1260c0 <== NOT EXECUTED
10f19d: e8 42 b5 ff ff call 10a6e4 <rtems_semaphore_release><== NOT EXECUTED
return 0;
}
}
rtems_libio_unlock();
rtems_set_errno_and_return_minus_one( ENOENT );
10f1a2: e8 6d 38 00 00 call 112a14 <__errno> <== NOT EXECUTED
10f1a7: c7 00 02 00 00 00 movl $0x2,(%eax) <== NOT EXECUTED
10f1ad: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
10f1b0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
10f1b3: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
10f1b6: 5b pop %ebx <== NOT EXECUTED
10f1b7: 5e pop %esi <== NOT EXECUTED
10f1b8: c9 leave <== NOT EXECUTED
10f1b9: c3 ret <== NOT EXECUTED
0010c1e8 <rtems_fsmount>:
)
/*-------------------------------------------------------------------------*\
| Return Value: |
| 0, if success, -1 and errno if failed |
\*=========================================================================*/
{
10c1e8: 55 push %ebp <== NOT EXECUTED
10c1e9: 89 e5 mov %esp,%ebp <== NOT EXECUTED
10c1eb: 57 push %edi <== NOT EXECUTED
10c1ec: 56 push %esi <== NOT EXECUTED
10c1ed: 53 push %ebx <== NOT EXECUTED
10c1ee: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
10c1f1: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
10c1f4: 8b 7d 10 mov 0x10(%ebp),%edi <== NOT EXECUTED
10c1f7: 31 f6 xor %esi,%esi <== NOT EXECUTED
10c1f9: e9 bc 00 00 00 jmp 10c2ba <rtems_fsmount+0xd2> <== NOT EXECUTED
tmp_rc = 0;
/*
* create mount point
*/
if (tmp_rc == 0) {
tmp_rc = rtems_mkdir(fstab_ptr->target, S_IRWXU | S_IRWXG | S_IRWXO);
10c1fe: 50 push %eax <== NOT EXECUTED
10c1ff: 50 push %eax <== NOT EXECUTED
10c200: 68 ff 01 00 00 push $0x1ff <== NOT EXECUTED
10c205: ff 73 04 pushl 0x4(%ebx) <== NOT EXECUTED
10c208: e8 8b 1f 00 00 call 10e198 <rtems_mkdir> <== NOT EXECUTED
10c20d: 89 c2 mov %eax,%edx <== NOT EXECUTED
if (tmp_rc != 0) {
10c20f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10c212: 85 c0 test %eax,%eax <== NOT EXECUTED
10c214: 0f 84 bb 00 00 00 je 10c2d5 <rtems_fsmount+0xed> <== NOT EXECUTED
if (0 != (fstab_ptr->report_reasons & FSMOUNT_MNTPNT_CRTERR)) {
10c21a: f6 43 10 02 testb $0x2,0x10(%ebx) <== NOT EXECUTED
10c21e: 74 2e je 10c24e <rtems_fsmount+0x66> <== NOT EXECUTED
fprintf(stdout,"fsmount: creation of mount point \"%s\" failed: %s\n",
10c220: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
10c223: e8 ec 1d 03 00 call 13e014 <__errno> <== NOT EXECUTED
10c228: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10c22b: ff 30 pushl (%eax) <== NOT EXECUTED
10c22d: e8 8a 77 03 00 call 1439bc <strerror> <== NOT EXECUTED
10c232: 50 push %eax <== NOT EXECUTED
10c233: ff 73 04 pushl 0x4(%ebx) <== NOT EXECUTED
10c236: 68 ec 6b 15 00 push $0x156bec <== NOT EXECUTED
10c23b: a1 e0 4e 16 00 mov 0x164ee0,%eax <== NOT EXECUTED
10c240: ff 70 08 pushl 0x8(%eax) <== NOT EXECUTED
10c243: e8 4c 27 03 00 call 13e994 <fprintf> <== NOT EXECUTED
10c248: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
10c24b: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
fstab_ptr->target,
strerror(errno));
}
if (0 != (fstab_ptr->abort_reasons & FSMOUNT_MNTPNT_CRTERR)) {
10c24e: f6 43 12 02 testb $0x2,0x12(%ebx) <== NOT EXECUTED
10c252: eb 3a jmp 10c28e <rtems_fsmount+0xa6> <== NOT EXECUTED
fstab_ptr->target,
fstab_ptr->type,
fstab_ptr->options,
NULL);
if (tmp_rc != 0) {
if (0 != (fstab_ptr->report_reasons & FSMOUNT_MNT_FAILED)) {
10c254: a8 04 test $0x4,%al <== NOT EXECUTED
10c256: 74 32 je 10c28a <rtems_fsmount+0xa2> <== NOT EXECUTED
fprintf(stdout,"fsmount: mounting of \"%s\" to"
10c258: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED
10c25b: e8 b4 1d 03 00 call 13e014 <__errno> <== NOT EXECUTED
10c260: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10c263: ff 30 pushl (%eax) <== NOT EXECUTED
10c265: e8 52 77 03 00 call 1439bc <strerror> <== NOT EXECUTED
10c26a: 89 04 24 mov %eax,(%esp) <== NOT EXECUTED
10c26d: ff 73 04 pushl 0x4(%ebx) <== NOT EXECUTED
10c270: ff 33 pushl (%ebx) <== NOT EXECUTED
10c272: 68 1e 6c 15 00 push $0x156c1e <== NOT EXECUTED
10c277: a1 e0 4e 16 00 mov 0x164ee0,%eax <== NOT EXECUTED
10c27c: ff 70 08 pushl 0x8(%eax) <== NOT EXECUTED
10c27f: e8 10 27 03 00 call 13e994 <fprintf> <== NOT EXECUTED
10c284: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
10c287: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
" \"%s\" failed: %s\n",
fstab_ptr->source,
fstab_ptr->target,
strerror(errno));
}
if (0 != (fstab_ptr->abort_reasons & FSMOUNT_MNT_FAILED)) {
10c28a: f6 43 12 04 testb $0x4,0x12(%ebx) <== NOT EXECUTED
10c28e: 74 26 je 10c2b6 <rtems_fsmount+0xce> <== NOT EXECUTED
10c290: eb 33 jmp 10c2c5 <rtems_fsmount+0xdd> <== NOT EXECUTED
terminate = true;
rc = tmp_rc;
}
}
else {
if (0 != (fstab_ptr->report_reasons & FSMOUNT_MNT_OK)) {
10c292: a8 01 test $0x1,%al <== NOT EXECUTED
10c294: 74 1a je 10c2b0 <rtems_fsmount+0xc8> <== NOT EXECUTED
fprintf(stdout,"fsmount: mounting of \"%s\" to"
10c296: ff 73 04 pushl 0x4(%ebx) <== NOT EXECUTED
10c299: ff 33 pushl (%ebx) <== NOT EXECUTED
10c29b: 68 4c 6c 15 00 push $0x156c4c <== NOT EXECUTED
10c2a0: a1 e0 4e 16 00 mov 0x164ee0,%eax <== NOT EXECUTED
10c2a5: ff 70 08 pushl 0x8(%eax) <== NOT EXECUTED
10c2a8: e8 e7 26 03 00 call 13e994 <fprintf> <== NOT EXECUTED
10c2ad: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
" \"%s\" succeeded\n",
fstab_ptr->source,
fstab_ptr->target);
}
if (0 != (fstab_ptr->abort_reasons & FSMOUNT_MNT_OK)) {
10c2b0: f6 43 12 01 testb $0x1,0x12(%ebx) <== NOT EXECUTED
10c2b4: 75 0d jne 10c2c3 <rtems_fsmount+0xdb> <== NOT EXECUTED
}
/*
* proceed to next entry
*/
if (!terminate) {
fstab_ptr++;
10c2b6: 83 c3 14 add $0x14,%ebx <== NOT EXECUTED
fstab_idx++;
10c2b9: 46 inc %esi <== NOT EXECUTED
bool terminate = false;
/*
* scan through all fstab entries;
*/
while (!terminate &&
10c2ba: 3b 75 0c cmp 0xc(%ebp),%esi <== NOT EXECUTED
10c2bd: 0f 82 3b ff ff ff jb 10c1fe <rtems_fsmount+0x16> <== NOT EXECUTED
10c2c3: 31 d2 xor %edx,%edx <== NOT EXECUTED
if (!terminate) {
fstab_ptr++;
fstab_idx++;
}
}
if (fail_idx != NULL) {
10c2c5: 85 ff test %edi,%edi <== NOT EXECUTED
10c2c7: 74 02 je 10c2cb <rtems_fsmount+0xe3> <== NOT EXECUTED
*fail_idx = fstab_idx;
10c2c9: 89 37 mov %esi,(%edi) <== NOT EXECUTED
}
return rc;
}
10c2cb: 89 d0 mov %edx,%eax <== NOT EXECUTED
10c2cd: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
10c2d0: 5b pop %ebx <== NOT EXECUTED
10c2d1: 5e pop %esi <== NOT EXECUTED
10c2d2: 5f pop %edi <== NOT EXECUTED
10c2d3: c9 leave <== NOT EXECUTED
10c2d4: c3 ret <== NOT EXECUTED
}
/*
* mount device to given mount point
*/
if (tmp_rc == 0) {
tmp_rc = mount(fstab_ptr->source,
10c2d5: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10c2d8: 6a 00 push $0x0 <== NOT EXECUTED
10c2da: ff 73 0c pushl 0xc(%ebx) <== NOT EXECUTED
10c2dd: ff 73 08 pushl 0x8(%ebx) <== NOT EXECUTED
10c2e0: ff 73 04 pushl 0x4(%ebx) <== NOT EXECUTED
10c2e3: ff 33 pushl (%ebx) <== NOT EXECUTED
10c2e5: e8 b4 13 00 00 call 10d69e <mount> <== NOT EXECUTED
10c2ea: 89 c2 mov %eax,%edx <== NOT EXECUTED
fstab_ptr->target,
fstab_ptr->type,
fstab_ptr->options,
NULL);
if (tmp_rc != 0) {
10c2ec: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
10c2ef: 85 c0 test %eax,%eax <== NOT EXECUTED
10c2f1: 0f b7 43 10 movzwl 0x10(%ebx),%eax <== NOT EXECUTED
10c2f5: 0f 85 59 ff ff ff jne 10c254 <rtems_fsmount+0x6c> <== NOT EXECUTED
10c2fb: eb 95 jmp 10c292 <rtems_fsmount+0xaa> <== NOT EXECUTED
00107290 <rtems_io_lookup_name>:
rtems_status_code rtems_io_lookup_name(
const char *name,
rtems_driver_name_t *device_info
)
{
107290: 55 push %ebp <== NOT EXECUTED
107291: 89 e5 mov %esp,%ebp <== NOT EXECUTED
107293: 57 push %edi <== NOT EXECUTED
107294: 56 push %esi <== NOT EXECUTED
107295: 53 push %ebx <== NOT EXECUTED
107296: 83 ec 48 sub $0x48,%esp <== NOT EXECUTED
107299: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
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( name, strlen( name ), 0x00, &loc, true );
10729c: 83 c9 ff or $0xffffffff,%ecx <== NOT EXECUTED
10729f: 8b 7d 08 mov 0x8(%ebp),%edi <== NOT EXECUTED
1072a2: 31 c0 xor %eax,%eax <== NOT EXECUTED
1072a4: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED
1072a6: f7 d1 not %ecx <== NOT EXECUTED
1072a8: 49 dec %ecx <== NOT EXECUTED
1072a9: 6a 01 push $0x1 <== NOT EXECUTED
1072ab: 8d 75 d4 lea -0x2c(%ebp),%esi <== NOT EXECUTED
1072ae: 56 push %esi <== NOT EXECUTED
1072af: 6a 00 push $0x0 <== NOT EXECUTED
1072b1: 51 push %ecx <== NOT EXECUTED
1072b2: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
1072b5: 89 55 c4 mov %edx,-0x3c(%ebp) <== NOT EXECUTED
1072b8: e8 74 03 00 00 call 107631 <rtems_filesystem_evaluate_path><== NOT EXECUTED
1072bd: 89 c7 mov %eax,%edi <== NOT EXECUTED
the_jnode = loc.node_access;
1072bf: 8b 5d d4 mov -0x2c(%ebp),%ebx <== NOT EXECUTED
if ( !loc.ops->node_type_h ) {
1072c2: 8b 4d e0 mov -0x20(%ebp),%ecx <== NOT EXECUTED
1072c5: 8b 41 10 mov 0x10(%ecx),%eax <== NOT EXECUTED
1072c8: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
1072cb: 85 c0 test %eax,%eax <== NOT EXECUTED
1072cd: 8b 55 c4 mov -0x3c(%ebp),%edx <== NOT EXECUTED
1072d0: 75 20 jne 1072f2 <rtems_io_lookup_name+0x62><== NOT EXECUTED
rtems_filesystem_freenode( &loc );
1072d2: 8b 41 1c mov 0x1c(%ecx),%eax <== NOT EXECUTED
1072d5: 85 c0 test %eax,%eax <== NOT EXECUTED
1072d7: 74 09 je 1072e2 <rtems_io_lookup_name+0x52><== NOT EXECUTED
1072d9: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1072dc: 56 push %esi <== NOT EXECUTED
1072dd: ff d0 call *%eax <== NOT EXECUTED
1072df: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
1072e2: e8 2d b7 00 00 call 112a14 <__errno> <== NOT EXECUTED
1072e7: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
1072ed: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
1072f0: eb 7b jmp 10736d <rtems_io_lookup_name+0xdd><== NOT EXECUTED
}
node_type = (*loc.ops->node_type_h)( &loc );
1072f2: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1072f5: 56 push %esi <== NOT EXECUTED
1072f6: 89 55 c4 mov %edx,-0x3c(%ebp) <== NOT EXECUTED
1072f9: ff d0 call *%eax <== NOT EXECUTED
if ( (result != 0) || node_type != RTEMS_FILESYSTEM_DEVICE ) {
1072fb: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1072fe: 83 f8 02 cmp $0x2,%eax <== NOT EXECUTED
107301: 8b 55 c4 mov -0x3c(%ebp),%edx <== NOT EXECUTED
107304: 75 04 jne 10730a <rtems_io_lookup_name+0x7a><== NOT EXECUTED
107306: 85 ff test %edi,%edi <== NOT EXECUTED
107308: 74 1e je 107328 <rtems_io_lookup_name+0x98><== NOT EXECUTED
rtems_filesystem_freenode( &loc );
10730a: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
10730d: 85 c0 test %eax,%eax <== NOT EXECUTED
10730f: 74 53 je 107364 <rtems_io_lookup_name+0xd4><== NOT EXECUTED
107311: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED
107314: 85 c0 test %eax,%eax <== NOT EXECUTED
107316: 74 4c je 107364 <rtems_io_lookup_name+0xd4><== NOT EXECUTED
107318: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10731b: 8d 55 d4 lea -0x2c(%ebp),%edx <== NOT EXECUTED
10731e: 52 push %edx <== NOT EXECUTED
10731f: ff d0 call *%eax <== NOT EXECUTED
107321: b8 0d 00 00 00 mov $0xd,%eax <== NOT EXECUTED
107326: eb 37 jmp 10735f <rtems_io_lookup_name+0xcf><== NOT EXECUTED
return RTEMS_UNSATISFIED;
}
device_info->device_name = (char *) name;
107328: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
10732b: 89 02 mov %eax,(%edx) <== NOT EXECUTED
device_info->device_name_length = strlen( name );
10732d: 83 c9 ff or $0xffffffff,%ecx <== NOT EXECUTED
107330: 8b 7d 08 mov 0x8(%ebp),%edi <== NOT EXECUTED
107333: 31 c0 xor %eax,%eax <== NOT EXECUTED
107335: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED
107337: f7 d1 not %ecx <== NOT EXECUTED
107339: 49 dec %ecx <== NOT EXECUTED
10733a: 89 4a 04 mov %ecx,0x4(%edx) <== NOT EXECUTED
device_info->major = the_jnode->info.device.major;
10733d: 8b 43 50 mov 0x50(%ebx),%eax <== NOT EXECUTED
107340: 89 42 08 mov %eax,0x8(%edx) <== NOT EXECUTED
device_info->minor = the_jnode->info.device.minor;
107343: 8b 43 54 mov 0x54(%ebx),%eax <== NOT EXECUTED
107346: 89 42 0c mov %eax,0xc(%edx) <== NOT EXECUTED
rtems_filesystem_freenode( &loc );
107349: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
10734c: 85 c0 test %eax,%eax <== NOT EXECUTED
10734e: 74 1b je 10736b <rtems_io_lookup_name+0xdb><== NOT EXECUTED
107350: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED
107353: 85 c0 test %eax,%eax <== NOT EXECUTED
107355: 74 14 je 10736b <rtems_io_lookup_name+0xdb><== NOT EXECUTED
107357: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10735a: 56 push %esi <== NOT EXECUTED
10735b: ff d0 call *%eax <== NOT EXECUTED
10735d: 31 c0 xor %eax,%eax <== NOT EXECUTED
10735f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
107362: eb 09 jmp 10736d <rtems_io_lookup_name+0xdd><== NOT EXECUTED
107364: b8 0d 00 00 00 mov $0xd,%eax <== NOT EXECUTED
107369: eb 02 jmp 10736d <rtems_io_lookup_name+0xdd><== NOT EXECUTED
10736b: 31 c0 xor %eax,%eax <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
}
10736d: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
107370: 5b pop %ebx <== NOT EXECUTED
107371: 5e pop %esi <== NOT EXECUTED
107372: 5f pop %edi <== NOT EXECUTED
107373: c9 leave <== NOT EXECUTED
107374: c3 ret <== NOT EXECUTED
0010cb7c <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)
{
10cb7c: 55 push %ebp
10cb7d: 89 e5 mov %esp,%ebp
10cb7f: 57 push %edi
10cb80: 56 push %esi
10cb81: 53 push %ebx
10cb82: 83 ec 0c sub $0xc,%esp
uint32_t i;
uint32_t api_index;
Thread_Control *the_thread;
Objects_Information *information;
if ( !routine )
10cb85: 83 7d 08 00 cmpl $0x0,0x8(%ebp)
10cb89: 74 41 je 10cbcc <rtems_iterate_over_all_threads+0x50><== NEVER TAKEN
10cb8b: bb 01 00 00 00 mov $0x1,%ebx
return;
for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) {
if ( !_Objects_Information_table[ api_index ] )
10cb90: 8b 04 9d 40 a0 12 00 mov 0x12a040(,%ebx,4),%eax
10cb97: 85 c0 test %eax,%eax
10cb99: 74 2b je 10cbc6 <rtems_iterate_over_all_threads+0x4a>
continue;
information = _Objects_Information_table[ api_index ][ 1 ];
10cb9b: 8b 78 04 mov 0x4(%eax),%edi
if ( !information )
10cb9e: be 01 00 00 00 mov $0x1,%esi
10cba3: 85 ff test %edi,%edi
10cba5: 75 17 jne 10cbbe <rtems_iterate_over_all_threads+0x42>
10cba7: eb 1d jmp 10cbc6 <rtems_iterate_over_all_threads+0x4a>
continue;
for ( i=1 ; i <= information->maximum ; i++ ) {
the_thread = (Thread_Control *)information->local_table[ i ];
10cba9: 8b 47 1c mov 0x1c(%edi),%eax
10cbac: 8b 04 b0 mov (%eax,%esi,4),%eax
if ( !the_thread )
10cbaf: 85 c0 test %eax,%eax
10cbb1: 74 0a je 10cbbd <rtems_iterate_over_all_threads+0x41><== NEVER TAKEN
continue;
(*routine)(the_thread);
10cbb3: 83 ec 0c sub $0xc,%esp
10cbb6: 50 push %eax
10cbb7: ff 55 08 call *0x8(%ebp)
10cbba: 83 c4 10 add $0x10,%esp
information = _Objects_Information_table[ api_index ][ 1 ];
if ( !information )
continue;
for ( i=1 ; i <= information->maximum ; i++ ) {
10cbbd: 46 inc %esi
10cbbe: 0f b7 47 10 movzwl 0x10(%edi),%eax
10cbc2: 39 c6 cmp %eax,%esi
10cbc4: 76 e3 jbe 10cba9 <rtems_iterate_over_all_threads+0x2d>
Objects_Information *information;
if ( !routine )
return;
for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) {
10cbc6: 43 inc %ebx
10cbc7: 83 fb 05 cmp $0x5,%ebx
10cbca: 75 c4 jne 10cb90 <rtems_iterate_over_all_threads+0x14>
(*routine)(the_thread);
}
}
}
10cbcc: 8d 65 f4 lea -0xc(%ebp),%esp
10cbcf: 5b pop %ebx
10cbd0: 5e pop %esi
10cbd1: 5f pop %edi
10cbd2: c9 leave
10cbd3: c3 ret
0010f02f <rtems_libio_allocate>:
* This routine searches the IOP Table for an unused entry. If it
* finds one, it returns it. Otherwise, it returns NULL.
*/
rtems_libio_t *rtems_libio_allocate( void )
{
10f02f: 55 push %ebp
10f030: 89 e5 mov %esp,%ebp
10f032: 57 push %edi
10f033: 53 push %ebx
10f034: 83 ec 14 sub $0x14,%esp
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 );
10f037: 6a 00 push $0x0
10f039: 6a 00 push $0x0
10f03b: ff 35 c0 60 12 00 pushl 0x1260c0
10f041: e8 b2 b5 ff ff call 10a5f8 <rtems_semaphore_obtain>
rtems_status_code rc;
rtems_id sema;
rtems_libio_lock();
if (rtems_libio_iop_freelist) {
10f046: a1 bc 60 12 00 mov 0x1260bc,%eax
10f04b: 83 c4 10 add $0x10,%esp
10f04e: 85 c0 test %eax,%eax
10f050: 74 4f je 10f0a1 <rtems_libio_allocate+0x72>
rc = rtems_semaphore_create(
10f052: 83 ec 0c sub $0xc,%esp
10f055: 8d 55 f4 lea -0xc(%ebp),%edx
10f058: 52 push %edx
10f059: 6a 00 push $0x0
10f05b: 6a 54 push $0x54
10f05d: 6a 01 push $0x1
10f05f: 2b 05 b8 60 12 00 sub 0x1260b8,%eax
10f065: c1 f8 06 sar $0x6,%eax
10f068: 0d 00 49 42 4c or $0x4c424900,%eax
10f06d: 50 push %eax
10f06e: e8 59 b3 ff ff call 10a3cc <rtems_semaphore_create>
1,
RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY,
0,
&sema
);
if (rc != RTEMS_SUCCESSFUL)
10f073: 83 c4 20 add $0x20,%esp
10f076: 85 c0 test %eax,%eax
10f078: 75 27 jne 10f0a1 <rtems_libio_allocate+0x72><== NEVER TAKEN
goto failed;
iop = rtems_libio_iop_freelist;
10f07a: 8b 1d bc 60 12 00 mov 0x1260bc,%ebx
next = iop->data1;
10f080: 8b 53 34 mov 0x34(%ebx),%edx
(void) memset( iop, 0, sizeof(rtems_libio_t) );
10f083: b9 10 00 00 00 mov $0x10,%ecx
10f088: 89 df mov %ebx,%edi
10f08a: f3 ab rep stos %eax,%es:(%edi)
iop->flags = LIBIO_FLAGS_OPEN;
10f08c: c7 43 14 00 01 00 00 movl $0x100,0x14(%ebx)
iop->sem = sema;
10f093: 8b 45 f4 mov -0xc(%ebp),%eax
10f096: 89 43 2c mov %eax,0x2c(%ebx)
rtems_libio_iop_freelist = next;
10f099: 89 15 bc 60 12 00 mov %edx,0x1260bc
goto done;
10f09f: eb 02 jmp 10f0a3 <rtems_libio_allocate+0x74>
10f0a1: 31 db xor %ebx,%ebx
}
static inline void rtems_libio_unlock( void )
{
rtems_semaphore_release( rtems_libio_semaphore );
10f0a3: 83 ec 0c sub $0xc,%esp
10f0a6: ff 35 c0 60 12 00 pushl 0x1260c0
10f0ac: e8 33 b6 ff ff call 10a6e4 <rtems_semaphore_release>
iop = 0;
done:
rtems_libio_unlock();
return iop;
}
10f0b1: 89 d8 mov %ebx,%eax
10f0b3: 8d 65 f8 lea -0x8(%ebp),%esp
10f0b6: 5b pop %ebx
10f0b7: 5f pop %edi
10f0b8: c9 leave
10f0b9: c3 ret
0010efda <rtems_libio_free>:
*/
void rtems_libio_free(
rtems_libio_t *iop
)
{
10efda: 55 push %ebp
10efdb: 89 e5 mov %esp,%ebp
10efdd: 53 push %ebx
10efde: 83 ec 08 sub $0x8,%esp
10efe1: 8b 5d 08 mov 0x8(%ebp),%ebx
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 );
10efe4: 6a 00 push $0x0
10efe6: 6a 00 push $0x0
10efe8: ff 35 c0 60 12 00 pushl 0x1260c0
10efee: e8 05 b6 ff ff call 10a5f8 <rtems_semaphore_obtain>
rtems_libio_lock();
if (iop->sem)
10eff3: 8b 43 2c mov 0x2c(%ebx),%eax
10eff6: 83 c4 10 add $0x10,%esp
10eff9: 85 c0 test %eax,%eax
10effb: 74 0c je 10f009 <rtems_libio_free+0x2f> <== NEVER TAKEN
rtems_semaphore_delete(iop->sem);
10effd: 83 ec 0c sub $0xc,%esp
10f000: 50 push %eax
10f001: e8 62 b5 ff ff call 10a568 <rtems_semaphore_delete>
10f006: 83 c4 10 add $0x10,%esp
iop->flags &= ~LIBIO_FLAGS_OPEN;
10f009: 81 63 14 ff fe ff ff andl $0xfffffeff,0x14(%ebx)
iop->data1 = rtems_libio_iop_freelist;
10f010: a1 bc 60 12 00 mov 0x1260bc,%eax
10f015: 89 43 34 mov %eax,0x34(%ebx)
rtems_libio_iop_freelist = iop;
10f018: 89 1d bc 60 12 00 mov %ebx,0x1260bc
}
static inline void rtems_libio_unlock( void )
{
rtems_semaphore_release( rtems_libio_semaphore );
10f01e: a1 c0 60 12 00 mov 0x1260c0,%eax
10f023: 89 45 08 mov %eax,0x8(%ebp)
rtems_libio_unlock();
}
10f026: 8b 5d fc mov -0x4(%ebp),%ebx
10f029: c9 leave
10f02a: e9 b5 b6 ff ff jmp 10a6e4 <rtems_semaphore_release>
00107788 <rtems_libio_init>:
*
* Called by BSP startup code to initialize the libio subsystem.
*/
void rtems_libio_init( void )
{
107788: 55 push %ebp
107789: 89 e5 mov %esp,%ebp
10778b: 53 push %ebx
10778c: 83 ec 04 sub $0x4,%esp
rtems_status_code rc;
uint32_t i;
rtems_libio_t *iop;
if (rtems_libio_number_iops > 0)
10778f: a1 44 21 12 00 mov 0x122144,%eax
107794: 85 c0 test %eax,%eax
107796: 74 40 je 1077d8 <rtems_libio_init+0x50> <== NEVER TAKEN
{
rtems_libio_iops = (rtems_libio_t *) calloc(rtems_libio_number_iops,
107798: 52 push %edx
107799: 52 push %edx
10779a: 6a 40 push $0x40
10779c: 50 push %eax
10779d: e8 1a fd ff ff call 1074bc <calloc>
1077a2: a3 b8 60 12 00 mov %eax,0x1260b8
sizeof(rtems_libio_t));
if (rtems_libio_iops == NULL)
1077a7: 83 c4 10 add $0x10,%esp
1077aa: 85 c0 test %eax,%eax
1077ac: 75 07 jne 1077b5 <rtems_libio_init+0x2d> <== ALWAYS TAKEN
rtems_fatal_error_occurred(RTEMS_NO_MEMORY);
1077ae: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1077b1: 6a 1a push $0x1a <== NOT EXECUTED
1077b3: eb 46 jmp 1077fb <rtems_libio_init+0x73> <== NOT EXECUTED
iop = rtems_libio_iop_freelist = rtems_libio_iops;
1077b5: a3 bc 60 12 00 mov %eax,0x1260bc
for (i = 0 ; (i + 1) < rtems_libio_number_iops ; i++, iop++)
1077ba: 8b 1d 44 21 12 00 mov 0x122144,%ebx
1077c0: 31 d2 xor %edx,%edx
1077c2: eb 03 jmp 1077c7 <rtems_libio_init+0x3f>
iop->data1 = iop + 1;
1077c4: 89 40 f4 mov %eax,-0xc(%eax)
1077c7: 89 c1 mov %eax,%ecx
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++)
1077c9: 42 inc %edx
1077ca: 83 c0 40 add $0x40,%eax
1077cd: 39 da cmp %ebx,%edx
1077cf: 72 f3 jb 1077c4 <rtems_libio_init+0x3c>
iop->data1 = iop + 1;
iop->data1 = NULL;
1077d1: c7 41 34 00 00 00 00 movl $0x0,0x34(%ecx)
/*
* Create the binary semaphore used to provide mutual exclusion
* on the IOP Table.
*/
rc = rtems_semaphore_create(
1077d8: 83 ec 0c sub $0xc,%esp
1077db: 68 c0 60 12 00 push $0x1260c0
1077e0: 6a 00 push $0x0
1077e2: 6a 54 push $0x54
1077e4: 6a 01 push $0x1
1077e6: 68 4f 49 42 4c push $0x4c42494f
1077eb: e8 dc 2b 00 00 call 10a3cc <rtems_semaphore_create>
1,
RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY,
RTEMS_NO_PRIORITY,
&rtems_libio_semaphore
);
if ( rc != RTEMS_SUCCESSFUL )
1077f0: 83 c4 20 add $0x20,%esp
1077f3: 85 c0 test %eax,%eax
1077f5: 74 09 je 107800 <rtems_libio_init+0x78> <== ALWAYS TAKEN
rtems_fatal_error_occurred( rc );
1077f7: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1077fa: 50 push %eax <== NOT EXECUTED
1077fb: e8 90 33 00 00 call 10ab90 <rtems_fatal_error_occurred><== NOT EXECUTED
/*
* Initialize the base file system infrastructure.
*/
if (rtems_fs_init_helper)
107800: a1 40 21 12 00 mov 0x122140,%eax
107805: 85 c0 test %eax,%eax
107807: 74 06 je 10780f <rtems_libio_init+0x87> <== NEVER TAKEN
(* rtems_fs_init_helper)();
}
107809: 8b 5d fc mov -0x4(%ebp),%ebx
10780c: c9 leave
/*
* Initialize the base file system infrastructure.
*/
if (rtems_fs_init_helper)
(* rtems_fs_init_helper)();
10780d: ff e0 jmp *%eax
}
10780f: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
107812: c9 leave <== NOT EXECUTED
107813: c3 ret <== NOT EXECUTED
0012928c <rtems_libio_set_private_env>:
rtems_filesystem_freenode( &env->root_directory);
free(env);
}
}
rtems_status_code rtems_libio_set_private_env(void) {
12928c: 55 push %ebp
12928d: 89 e5 mov %esp,%ebp
12928f: 57 push %edi
129290: 56 push %esi
129291: 53 push %ebx
129292: 83 ec 40 sub $0x40,%esp
rtems_status_code sc;
rtems_id task_id;
rtems_filesystem_location_info_t loc;
sc=rtems_task_ident(RTEMS_SELF,0,&task_id);
129295: 8d 45 e4 lea -0x1c(%ebp),%eax
129298: 50 push %eax
129299: 6a 00 push $0x0
12929b: 6a 00 push $0x0
12929d: e8 5e 15 00 00 call 12a800 <rtems_task_ident>
1292a2: 89 45 c4 mov %eax,-0x3c(%ebp)
if (sc != RTEMS_SUCCESSFUL) return sc;
1292a5: 83 c4 10 add $0x10,%esp
1292a8: 85 c0 test %eax,%eax
1292aa: 0f 85 c7 00 00 00 jne 129377 <rtems_libio_set_private_env+0xeb><== NEVER TAKEN
/* Only for the first time a malloc is necesary */
if (rtems_current_user_env==&rtems_global_user_env) {
1292b0: 81 3d fc 46 16 00 24 cmpl $0x16a024,0x1646fc
1292b7: a0 16 00
1292ba: 75 51 jne 12930d <rtems_libio_set_private_env+0x81>
rtems_user_env_t *tmp = malloc(sizeof(rtems_user_env_t));
1292bc: 83 ec 0c sub $0xc,%esp
1292bf: 6a 48 push $0x48
1292c1: e8 22 41 fe ff call 10d3e8 <malloc>
1292c6: 89 c3 mov %eax,%ebx
if (!tmp)
1292c8: 83 c4 10 add $0x10,%esp
1292cb: 85 c0 test %eax,%eax
1292cd: 75 0c jne 1292db <rtems_libio_set_private_env+0x4f><== ALWAYS TAKEN
1292cf: c7 45 c4 1a 00 00 00 movl $0x1a,-0x3c(%ebp) <== NOT EXECUTED
1292d6: e9 9c 00 00 00 jmp 129377 <rtems_libio_set_private_env+0xeb><== NOT EXECUTED
#ifdef HAVE_USERENV_REFCNT
tmp->refcnt = 1;
#endif
sc = rtems_task_variable_add(RTEMS_SELF,(void*)&rtems_current_user_env,(void(*)(void *))free_user_env);
1292db: 56 push %esi
1292dc: 68 a0 91 12 00 push $0x1291a0
1292e1: 68 fc 46 16 00 push $0x1646fc
1292e6: 6a 00 push $0x0
1292e8: e8 8f 17 00 00 call 12aa7c <rtems_task_variable_add>
1292ed: 89 c6 mov %eax,%esi
if (sc != RTEMS_SUCCESSFUL) {
1292ef: 83 c4 10 add $0x10,%esp
1292f2: 85 c0 test %eax,%eax
1292f4: 74 11 je 129307 <rtems_libio_set_private_env+0x7b><== ALWAYS TAKEN
/* don't use free_user_env because the pathlocs are
* not initialized yet
*/
free(tmp);
1292f6: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1292f9: 53 push %ebx <== NOT EXECUTED
1292fa: e8 9d 3b fe ff call 10ce9c <free> <== NOT EXECUTED
1292ff: 89 75 c4 mov %esi,-0x3c(%ebp) <== NOT EXECUTED
return sc;
129302: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
129305: eb 70 jmp 129377 <rtems_libio_set_private_env+0xeb><== NOT EXECUTED
}
rtems_current_user_env = tmp;
129307: 89 1d fc 46 16 00 mov %ebx,0x1646fc
};
*rtems_current_user_env = rtems_global_user_env; /* get the global values*/
12930d: a1 fc 46 16 00 mov 0x1646fc,%eax
129312: be 24 a0 16 00 mov $0x16a024,%esi
129317: b9 12 00 00 00 mov $0x12,%ecx
12931c: 89 c7 mov %eax,%edi
12931e: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
rtems_current_user_env->task_id=task_id; /* mark the local values*/
129320: 8b 55 e4 mov -0x1c(%ebp),%edx
129323: 89 10 mov %edx,(%eax)
* what we are trying to do here is forking off
* clones. The reason is a pathloc can be allocated by the
* file system and needs to be freed when deleting the environment.
*/
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
129325: 83 ec 0c sub $0xc,%esp
129328: 6a 00 push $0x0
12932a: 8d 5d d0 lea -0x30(%ebp),%ebx
12932d: 53 push %ebx
12932e: 6a 00 push $0x0
129330: 6a 01 push $0x1
129332: 68 a6 08 16 00 push $0x1608a6
129337: e8 f5 3a fe ff call 10ce31 <rtems_filesystem_evaluate_path>
rtems_filesystem_root = loc;
12933c: 8b 3d fc 46 16 00 mov 0x1646fc,%edi
129342: 83 c7 18 add $0x18,%edi
129345: b9 05 00 00 00 mov $0x5,%ecx
12934a: 89 de mov %ebx,%esi
12934c: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
12934e: 83 c4 14 add $0x14,%esp
129351: 6a 00 push $0x0
129353: 53 push %ebx
129354: 6a 00 push $0x0
129356: 6a 01 push $0x1
129358: 68 a6 08 16 00 push $0x1608a6
12935d: e8 cf 3a fe ff call 10ce31 <rtems_filesystem_evaluate_path>
rtems_filesystem_current = loc;
129362: 8b 3d fc 46 16 00 mov 0x1646fc,%edi
129368: 83 c7 04 add $0x4,%edi
12936b: b9 05 00 00 00 mov $0x5,%ecx
129370: 89 de mov %ebx,%esi
129372: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
return RTEMS_SUCCESSFUL;
129374: 83 c4 20 add $0x20,%esp
}
129377: 8b 45 c4 mov -0x3c(%ebp),%eax
12937a: 8d 65 f4 lea -0xc(%ebp),%esp
12937d: 5b pop %ebx
12937e: 5e pop %esi
12937f: 5f pop %edi
129380: c9 leave
129381: c3 ret
001291f7 <rtems_libio_share_private_env>:
* b) mutex access to rtems_filesystem_current, rtems_filesytem_root
* while changing any of those (chdir(), chroot()).
*/
#ifndef HAVE_USERENV_REFCNT
rtems_status_code rtems_libio_share_private_env(rtems_id task_id) {
1291f7: 55 push %ebp <== NOT EXECUTED
1291f8: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1291fa: 53 push %ebx <== NOT EXECUTED
1291fb: 83 ec 18 sub $0x18,%esp <== NOT EXECUTED
rtems_status_code sc;
rtems_user_env_t * shared_user_env;
rtems_id current_task_id;
sc=rtems_task_ident(RTEMS_SELF,0,¤t_task_id);
1291fe: 8d 45 f0 lea -0x10(%ebp),%eax <== NOT EXECUTED
129201: 50 push %eax <== NOT EXECUTED
129202: 6a 00 push $0x0 <== NOT EXECUTED
129204: 6a 00 push $0x0 <== NOT EXECUTED
129206: e8 f5 15 00 00 call 12a800 <rtems_task_ident> <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) return sc;
12920b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12920e: 85 c0 test %eax,%eax <== NOT EXECUTED
129210: 75 75 jne 129287 <rtems_libio_share_private_env+0x90><== NOT EXECUTED
if (rtems_current_user_env->task_id==current_task_id) {
129212: 8b 1d fc 46 16 00 mov 0x1646fc,%ebx <== NOT EXECUTED
129218: 8b 03 mov (%ebx),%eax <== NOT EXECUTED
12921a: 3b 45 f0 cmp -0x10(%ebp),%eax <== NOT EXECUTED
12921d: 75 21 jne 129240 <rtems_libio_share_private_env+0x49><== NOT EXECUTED
/* kill the current user env & task_var*/
rtems_user_env_t *tmp = rtems_current_user_env;
sc = rtems_task_variable_delete(RTEMS_SELF,(void*)&rtems_current_user_env);
12921f: 51 push %ecx <== NOT EXECUTED
129220: 51 push %ecx <== NOT EXECUTED
129221: 68 fc 46 16 00 push $0x1646fc <== NOT EXECUTED
129226: 6a 00 push $0x0 <== NOT EXECUTED
129228: e8 e3 18 00 00 call 12ab10 <rtems_task_variable_delete><== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) return sc;
12922d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
129230: 85 c0 test %eax,%eax <== NOT EXECUTED
129232: 75 53 jne 129287 <rtems_libio_share_private_env+0x90><== NOT EXECUTED
free_user_env(tmp);
129234: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
129237: 53 push %ebx <== NOT EXECUTED
129238: e8 63 ff ff ff call 1291a0 <free_user_env> <== NOT EXECUTED
12923d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
};
/* AT THIS POINT, rtems_current_user_env is DANGLING */
sc = rtems_task_variable_get(task_id,(void*)&rtems_current_user_env,
129240: 52 push %edx <== NOT EXECUTED
129241: 8d 45 f4 lea -0xc(%ebp),%eax <== NOT EXECUTED
129244: 50 push %eax <== NOT EXECUTED
129245: 68 fc 46 16 00 push $0x1646fc <== NOT EXECUTED
12924a: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
12924d: e8 3a 19 00 00 call 12ab8c <rtems_task_variable_get><== NOT EXECUTED
(void*)&shared_user_env );
if (sc != RTEMS_SUCCESSFUL)
129252: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
129255: 85 c0 test %eax,%eax <== NOT EXECUTED
129257: 75 24 jne 12927d <rtems_libio_share_private_env+0x86><== NOT EXECUTED
goto bailout;
sc = rtems_task_variable_add(RTEMS_SELF,(void*)&rtems_current_user_env,free_user_env);
129259: 50 push %eax <== NOT EXECUTED
12925a: 68 a0 91 12 00 push $0x1291a0 <== NOT EXECUTED
12925f: 68 fc 46 16 00 push $0x1646fc <== NOT EXECUTED
129264: 6a 00 push $0x0 <== NOT EXECUTED
129266: e8 11 18 00 00 call 12aa7c <rtems_task_variable_add><== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
12926b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12926e: 85 c0 test %eax,%eax <== NOT EXECUTED
129270: 75 0b jne 12927d <rtems_libio_share_private_env+0x86><== NOT EXECUTED
goto bailout;
/* the current_user_env is the same pointer that remote env */
rtems_current_user_env = shared_user_env;
129272: 8b 55 f4 mov -0xc(%ebp),%edx <== NOT EXECUTED
129275: 89 15 fc 46 16 00 mov %edx,0x1646fc <== NOT EXECUTED
/* increase the reference count */
#ifdef HAVE_USERENV_REFCNT
rtems_current_user_env->refcnt++;
#endif
return RTEMS_SUCCESSFUL;
12927b: eb 0a jmp 129287 <rtems_libio_share_private_env+0x90><== NOT EXECUTED
bailout:
/* fallback to the global env */
rtems_current_user_env = &rtems_global_user_env;
12927d: c7 05 fc 46 16 00 24 movl $0x16a024,0x1646fc <== NOT EXECUTED
129284: a0 16 00
return sc;
}
129287: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
12928a: c9 leave <== NOT EXECUTED
12928b: c3 ret <== NOT EXECUTED
0010eee4 <rtems_libio_to_fcntl_flags>:
*/
uint32_t rtems_libio_to_fcntl_flags(
uint32_t flags
)
{
10eee4: 55 push %ebp
10eee5: 89 e5 mov %esp,%ebp
10eee7: 8b 55 08 mov 0x8(%ebp),%edx
uint32_t fcntl_flags = 0;
if ( (flags & LIBIO_FLAGS_READ_WRITE) == LIBIO_FLAGS_READ_WRITE ) {
10eeea: 89 d1 mov %edx,%ecx
10eeec: 83 e1 06 and $0x6,%ecx
10eeef: b8 02 00 00 00 mov $0x2,%eax
10eef4: 83 f9 06 cmp $0x6,%ecx
10eef7: 74 0f je 10ef08 <rtems_libio_to_fcntl_flags+0x24><== NEVER TAKEN
fcntl_flags |= O_RDWR;
} else if ( (flags & LIBIO_FLAGS_READ) == LIBIO_FLAGS_READ) {
10eef9: 30 c0 xor %al,%al
10eefb: f6 c2 02 test $0x2,%dl
10eefe: 75 08 jne 10ef08 <rtems_libio_to_fcntl_flags+0x24><== ALWAYS TAKEN
10ef00: 89 d0 mov %edx,%eax <== NOT EXECUTED
10ef02: c1 e8 02 shr $0x2,%eax <== NOT EXECUTED
10ef05: 83 e0 01 and $0x1,%eax <== 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 ) {
10ef08: f6 c2 01 test $0x1,%dl
10ef0b: 74 03 je 10ef10 <rtems_libio_to_fcntl_flags+0x2c>
fcntl_flags |= O_NONBLOCK;
10ef0d: 80 cc 40 or $0x40,%ah
}
if ( (flags & LIBIO_FLAGS_APPEND) == LIBIO_FLAGS_APPEND ) {
10ef10: f6 c6 02 test $0x2,%dh
10ef13: 74 03 je 10ef18 <rtems_libio_to_fcntl_flags+0x34>
fcntl_flags |= O_APPEND;
10ef15: 83 c8 08 or $0x8,%eax
}
if ( (flags & LIBIO_FLAGS_CREATE) == LIBIO_FLAGS_CREATE ) {
10ef18: 80 e6 04 and $0x4,%dh
10ef1b: 74 03 je 10ef20 <rtems_libio_to_fcntl_flags+0x3c>
fcntl_flags |= O_CREAT;
10ef1d: 80 cc 02 or $0x2,%ah
}
return fcntl_flags;
}
10ef20: c9 leave
10ef21: c3 ret
0010d48c <rtems_malloc_statistics_at_free>:
* size and thus we skip updating the statistics.
*/
static void rtems_malloc_statistics_at_free(
void *pointer
)
{
10d48c: 55 push %ebp
10d48d: 89 e5 mov %esp,%ebp
10d48f: 83 ec 1c sub $0x1c,%esp
uintptr_t size;
if (_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &size) ) {
10d492: 8d 45 f4 lea -0xc(%ebp),%eax
10d495: 50 push %eax
10d496: ff 75 08 pushl 0x8(%ebp)
10d499: ff 35 50 26 16 00 pushl 0x162650
10d49f: e8 60 55 00 00 call 112a04 <_Protected_heap_Get_block_size>
10d4a4: 83 c4 10 add $0x10,%esp
10d4a7: 84 c0 test %al,%al
10d4a9: 74 11 je 10d4bc <rtems_malloc_statistics_at_free+0x30><== NEVER TAKEN
MSBUMP(lifetime_freed, size);
10d4ab: 8b 45 f4 mov -0xc(%ebp),%eax
10d4ae: 31 d2 xor %edx,%edx
10d4b0: 01 05 10 a0 16 00 add %eax,0x16a010
10d4b6: 11 15 14 a0 16 00 adc %edx,0x16a014
}
}
10d4bc: c9 leave
10d4bd: c3 ret
0010d4be <rtems_malloc_statistics_at_malloc>:
}
static void rtems_malloc_statistics_at_malloc(
void *pointer
)
{
10d4be: 55 push %ebp
10d4bf: 89 e5 mov %esp,%ebp
10d4c1: 83 ec 18 sub $0x18,%esp
10d4c4: 8b 45 08 mov 0x8(%ebp),%eax
uintptr_t actual_size = 0;
uint32_t current_depth;
rtems_malloc_statistics_t *s = &rtems_malloc_statistics;
if ( !pointer )
10d4c7: 85 c0 test %eax,%eax
10d4c9: 74 4a je 10d515 <rtems_malloc_statistics_at_malloc+0x57><== NEVER TAKEN
static void rtems_malloc_statistics_at_malloc(
void *pointer
)
{
uintptr_t actual_size = 0;
10d4cb: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
rtems_malloc_statistics_t *s = &rtems_malloc_statistics;
if ( !pointer )
return;
_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &actual_size);
10d4d2: 52 push %edx
10d4d3: 8d 55 f4 lea -0xc(%ebp),%edx
10d4d6: 52 push %edx
10d4d7: 50 push %eax
10d4d8: ff 35 50 26 16 00 pushl 0x162650
10d4de: e8 21 55 00 00 call 112a04 <_Protected_heap_Get_block_size>
MSBUMP(lifetime_allocated, actual_size);
10d4e3: 8b 45 f4 mov -0xc(%ebp),%eax
10d4e6: 31 d2 xor %edx,%edx
10d4e8: 03 05 08 a0 16 00 add 0x16a008,%eax
10d4ee: 13 15 0c a0 16 00 adc 0x16a00c,%edx
10d4f4: a3 08 a0 16 00 mov %eax,0x16a008
10d4f9: 89 15 0c a0 16 00 mov %edx,0x16a00c
current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed);
10d4ff: 2b 05 10 a0 16 00 sub 0x16a010,%eax
if (current_depth > s->max_depth)
10d505: 83 c4 10 add $0x10,%esp
10d508: 3b 05 04 a0 16 00 cmp 0x16a004,%eax
10d50e: 76 05 jbe 10d515 <rtems_malloc_statistics_at_malloc+0x57>
s->max_depth = current_depth;
10d510: a3 04 a0 16 00 mov %eax,0x16a004
}
10d515: c9 leave
10d516: c3 ret
00112844 <rtems_memalign>:
int rtems_memalign(
void **pointer,
size_t alignment,
size_t size
)
{
112844: 55 push %ebp
112845: 89 e5 mov %esp,%ebp
112847: 56 push %esi
112848: 53 push %ebx
112849: 8b 5d 08 mov 0x8(%ebp),%ebx
void *return_this;
/*
* Parameter error checks
*/
if ( !pointer )
11284c: 85 db test %ebx,%ebx
11284e: 74 57 je 1128a7 <rtems_memalign+0x63>
return EINVAL;
*pointer = NULL;
112850: 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()) &&
112856: 83 3d 60 94 12 00 03 cmpl $0x3,0x129460
11285d: 75 09 jne 112868 <rtems_memalign+0x24>
11285f: e8 9c 5c ff ff call 108500 <malloc_is_system_state_OK>
112864: 84 c0 test %al,%al
112866: 74 3f je 1128a7 <rtems_memalign+0x63> <== NEVER TAKEN
/*
*
* If some free's have been deferred, then do them now.
*/
malloc_deferred_frees_process();
112868: e8 e9 5c ff ff call 108556 <malloc_deferred_frees_process>
uintptr_t size,
uintptr_t alignment
)
{
return
_Protected_heap_Allocate_aligned_with_boundary( heap, size, alignment, 0 );
11286d: 6a 00 push $0x0
11286f: ff 75 0c pushl 0xc(%ebp)
112872: ff 75 10 pushl 0x10(%ebp)
112875: ff 35 50 51 12 00 pushl 0x125150
11287b: e8 08 a6 ff ff call 10ce88 <_Protected_heap_Allocate_aligned_with_boundary>
112880: 89 c6 mov %eax,%esi
return_this = _Protected_heap_Allocate_aligned(
RTEMS_Malloc_Heap,
size,
alignment
);
if ( !return_this )
112882: 83 c4 10 add $0x10,%esp
112885: b8 0c 00 00 00 mov $0xc,%eax
11288a: 85 f6 test %esi,%esi
11288c: 74 1e je 1128ac <rtems_memalign+0x68>
return ENOMEM;
/*
* If configured, update the more involved statistics
*/
if ( rtems_malloc_statistics_helpers )
11288e: a1 50 75 12 00 mov 0x127550,%eax
112893: 85 c0 test %eax,%eax
112895: 74 0a je 1128a1 <rtems_memalign+0x5d>
(*rtems_malloc_statistics_helpers->at_malloc)(pointer);
112897: 83 ec 0c sub $0xc,%esp
11289a: 53 push %ebx
11289b: ff 50 04 call *0x4(%eax)
11289e: 83 c4 10 add $0x10,%esp
*/
if (rtems_malloc_boundary_helpers)
(*rtems_malloc_boundary_helpers->at_malloc)(return_this, size);
#endif
*pointer = return_this;
1128a1: 89 33 mov %esi,(%ebx)
1128a3: 31 c0 xor %eax,%eax
return 0;
1128a5: eb 05 jmp 1128ac <rtems_memalign+0x68>
1128a7: b8 16 00 00 00 mov $0x16,%eax
}
1128ac: 8d 65 f8 lea -0x8(%ebp),%esp
1128af: 5b pop %ebx
1128b0: 5e pop %esi
1128b1: c9 leave
1128b2: c3 ret
0010e198 <rtems_mkdir>:
return (retval);
}
int
rtems_mkdir(const char *path, mode_t mode)
{
10e198: 55 push %ebp <== NOT EXECUTED
10e199: 89 e5 mov %esp,%ebp <== NOT EXECUTED
10e19b: 57 push %edi <== NOT EXECUTED
10e19c: 56 push %esi <== NOT EXECUTED
10e19d: 53 push %ebx <== NOT EXECUTED
10e19e: 83 ec 78 sub $0x78,%esp <== NOT EXECUTED
int success = 0;
char *dup_path = strdup(path);
10e1a1: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
10e1a4: e8 bb 57 03 00 call 143964 <strdup> <== NOT EXECUTED
10e1a9: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (dup_path != NULL) {
10e1ab: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10e1ae: 85 c0 test %eax,%eax <== NOT EXECUTED
10e1b0: 0f 84 24 01 00 00 je 10e2da <rtems_mkdir+0x142> <== NOT EXECUTED
char *p;
p = path;
oumask = 0;
retval = 1;
if (p[0] == '/') /* Skip leading '/'. */
10e1b6: 80 38 2f cmpb $0x2f,(%eax) <== NOT EXECUTED
++p;
10e1b9: 0f 94 c0 sete %al <== NOT EXECUTED
10e1bc: 0f b6 f0 movzbl %al,%esi <== NOT EXECUTED
10e1bf: 8d 34 33 lea (%ebx,%esi,1),%esi <== NOT EXECUTED
10e1c2: c7 45 94 00 00 00 00 movl $0x0,-0x6c(%ebp) <== NOT EXECUTED
10e1c9: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
for (first = 1, last = 0; !last ; ++p) {
if (p[0] == '\0')
10e1ce: 8a 0e mov (%esi),%cl <== NOT EXECUTED
10e1d0: ba 01 00 00 00 mov $0x1,%edx <== NOT EXECUTED
10e1d5: 84 c9 test %cl,%cl <== NOT EXECUTED
10e1d7: 74 0b je 10e1e4 <rtems_mkdir+0x4c> <== NOT EXECUTED
last = 1;
else if (p[0] != '/')
10e1d9: 80 f9 2f cmp $0x2f,%cl <== NOT EXECUTED
10e1dc: 0f 85 cc 00 00 00 jne 10e2ae <rtems_mkdir+0x116> <== NOT EXECUTED
10e1e2: 30 d2 xor %dl,%dl <== NOT EXECUTED
continue;
*p = '\0';
10e1e4: c6 06 00 movb $0x0,(%esi) <== NOT EXECUTED
if (!last && p[1] == '\0')
10e1e7: bf 01 00 00 00 mov $0x1,%edi <== NOT EXECUTED
10e1ec: 85 d2 test %edx,%edx <== NOT EXECUTED
10e1ee: 75 0a jne 10e1fa <rtems_mkdir+0x62> <== NOT EXECUTED
10e1f0: 80 7e 01 00 cmpb $0x0,0x1(%esi) <== NOT EXECUTED
10e1f4: 0f 94 c2 sete %dl <== NOT EXECUTED
10e1f7: 0f b6 fa movzbl %dl,%edi <== NOT EXECUTED
last = 1;
if (first) {
10e1fa: 85 c0 test %eax,%eax <== NOT EXECUTED
10e1fc: 74 1a je 10e218 <rtems_mkdir+0x80> <== NOT EXECUTED
* mkdir [-m mode] dir
*
* We change the user's umask and then restore it,
* instead of doing chmod's.
*/
oumask = umask(0);
10e1fe: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10e201: 6a 00 push $0x0 <== NOT EXECUTED
10e203: e8 34 1b 00 00 call 10fd3c <umask> <== NOT EXECUTED
10e208: 89 45 94 mov %eax,-0x6c(%ebp) <== NOT EXECUTED
numask = oumask & ~(S_IWUSR | S_IXUSR);
(void)umask(numask);
10e20b: 24 3f and $0x3f,%al <== NOT EXECUTED
10e20d: 89 04 24 mov %eax,(%esp) <== NOT EXECUTED
10e210: e8 27 1b 00 00 call 10fd3c <umask> <== NOT EXECUTED
10e215: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
first = 0;
}
if (last)
10e218: b8 ff 01 00 00 mov $0x1ff,%eax <== NOT EXECUTED
10e21d: 85 ff test %edi,%edi <== NOT EXECUTED
10e21f: 74 11 je 10e232 <rtems_mkdir+0x9a> <== NOT EXECUTED
(void)umask(oumask);
10e221: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10e224: ff 75 94 pushl -0x6c(%ebp) <== NOT EXECUTED
10e227: e8 10 1b 00 00 call 10fd3c <umask> <== NOT EXECUTED
10e22c: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
10e22f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
if (mkdir(path, last ? omode : S_IRWXU | S_IRWXG | S_IRWXO) < 0) {
10e232: 52 push %edx <== NOT EXECUTED
10e233: 52 push %edx <== NOT EXECUTED
10e234: 50 push %eax <== NOT EXECUTED
10e235: 53 push %ebx <== NOT EXECUTED
10e236: e8 f5 f2 ff ff call 10d530 <mkdir> <== NOT EXECUTED
10e23b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10e23e: 85 c0 test %eax,%eax <== NOT EXECUTED
10e240: 79 63 jns 10e2a5 <rtems_mkdir+0x10d> <== NOT EXECUTED
if (errno == EEXIST || errno == EISDIR) {
10e242: e8 cd fd 02 00 call 13e014 <__errno> <== NOT EXECUTED
10e247: 83 38 11 cmpl $0x11,(%eax) <== NOT EXECUTED
10e24a: 74 0a je 10e256 <rtems_mkdir+0xbe> <== NOT EXECUTED
10e24c: e8 c3 fd 02 00 call 13e014 <__errno> <== NOT EXECUTED
10e251: 83 38 15 cmpl $0x15,(%eax) <== NOT EXECUTED
10e254: 75 5e jne 10e2b4 <rtems_mkdir+0x11c> <== NOT EXECUTED
if (stat(path, &sb) < 0) {
10e256: 50 push %eax <== NOT EXECUTED
10e257: 50 push %eax <== NOT EXECUTED
10e258: 8d 45 a0 lea -0x60(%ebp),%eax <== NOT EXECUTED
10e25b: 50 push %eax <== NOT EXECUTED
10e25c: 53 push %ebx <== NOT EXECUTED
10e25d: e8 8a 00 00 00 call 10e2ec <stat> <== NOT EXECUTED
10e262: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10e265: 85 c0 test %eax,%eax <== NOT EXECUTED
10e267: 78 4b js 10e2b4 <rtems_mkdir+0x11c> <== NOT EXECUTED
retval = 0;
break;
} else if (!S_ISDIR(sb.st_mode)) {
10e269: 8b 45 ac mov -0x54(%ebp),%eax <== NOT EXECUTED
10e26c: 25 00 f0 00 00 and $0xf000,%eax <== NOT EXECUTED
10e271: 3d 00 40 00 00 cmp $0x4000,%eax <== NOT EXECUTED
10e276: 74 22 je 10e29a <rtems_mkdir+0x102> <== NOT EXECUTED
if (last)
10e278: 85 ff test %edi,%edi <== NOT EXECUTED
10e27a: 74 0f je 10e28b <rtems_mkdir+0xf3> <== NOT EXECUTED
errno = EEXIST;
10e27c: e8 93 fd 02 00 call 13e014 <__errno> <== NOT EXECUTED
10e281: c7 00 11 00 00 00 movl $0x11,(%eax) <== NOT EXECUTED
10e287: 31 f6 xor %esi,%esi <== NOT EXECUTED
10e289: eb 3d jmp 10e2c8 <rtems_mkdir+0x130> <== NOT EXECUTED
else
errno = ENOTDIR;
10e28b: e8 84 fd 02 00 call 13e014 <__errno> <== NOT EXECUTED
10e290: c7 00 14 00 00 00 movl $0x14,(%eax) <== NOT EXECUTED
10e296: 31 f6 xor %esi,%esi <== NOT EXECUTED
10e298: eb 20 jmp 10e2ba <rtems_mkdir+0x122> <== NOT EXECUTED
retval = 0;
break;
}
if (last)
10e29a: 85 ff test %edi,%edi <== NOT EXECUTED
10e29c: 74 0b je 10e2a9 <rtems_mkdir+0x111> <== NOT EXECUTED
10e29e: be 02 00 00 00 mov $0x2,%esi <== NOT EXECUTED
10e2a3: eb 23 jmp 10e2c8 <rtems_mkdir+0x130> <== NOT EXECUTED
} else {
retval = 0;
break;
}
}
if (!last)
10e2a5: 85 ff test %edi,%edi <== NOT EXECUTED
10e2a7: 75 3c jne 10e2e5 <rtems_mkdir+0x14d> <== NOT EXECUTED
*p = '/';
10e2a9: c6 06 2f movb $0x2f,(%esi) <== NOT EXECUTED
10e2ac: 31 c0 xor %eax,%eax <== NOT EXECUTED
p = path;
oumask = 0;
retval = 1;
if (p[0] == '/') /* Skip leading '/'. */
++p;
for (first = 1, last = 0; !last ; ++p) {
10e2ae: 46 inc %esi <== NOT EXECUTED
10e2af: e9 1a ff ff ff jmp 10e1ce <rtems_mkdir+0x36> <== NOT EXECUTED
10e2b4: 31 f6 xor %esi,%esi <== NOT EXECUTED
}
}
if (!last)
*p = '/';
}
if (!first && !last)
10e2b6: 85 ff test %edi,%edi <== NOT EXECUTED
10e2b8: 75 0e jne 10e2c8 <rtems_mkdir+0x130> <== NOT EXECUTED
(void)umask(oumask);
10e2ba: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10e2bd: ff 75 94 pushl -0x6c(%ebp) <== NOT EXECUTED
10e2c0: e8 77 1a 00 00 call 10fd3c <umask> <== NOT EXECUTED
10e2c5: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
int success = 0;
char *dup_path = strdup(path);
if (dup_path != NULL) {
success = build(dup_path, mode);
free(dup_path);
10e2c8: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10e2cb: 53 push %ebx <== NOT EXECUTED
10e2cc: e8 cb eb ff ff call 10ce9c <free> <== NOT EXECUTED
}
return success != 0 ? 0 : -1;
10e2d1: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10e2d4: 31 c0 xor %eax,%eax <== NOT EXECUTED
10e2d6: 85 f6 test %esi,%esi <== NOT EXECUTED
10e2d8: 75 03 jne 10e2dd <rtems_mkdir+0x145> <== NOT EXECUTED
10e2da: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
}
10e2dd: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
10e2e0: 5b pop %ebx <== NOT EXECUTED
10e2e1: 5e pop %esi <== NOT EXECUTED
10e2e2: 5f pop %edi <== NOT EXECUTED
10e2e3: c9 leave <== NOT EXECUTED
10e2e4: c3 ret <== NOT EXECUTED
if (dup_path != NULL) {
success = build(dup_path, mode);
free(dup_path);
}
return success != 0 ? 0 : -1;
10e2e5: be 01 00 00 00 mov $0x1,%esi <== NOT EXECUTED
10e2ea: eb dc jmp 10e2c8 <rtems_mkdir+0x130> <== NOT EXECUTED
001213df <rtems_nvdisk_crc16_gen_factors>:
* @relval RTEMS_SUCCESSFUL The table was generated.
* @retval RTEMS_NO_MEMORY The table could not be allocated from the heap.
*/
rtems_status_code
rtems_nvdisk_crc16_gen_factors (uint16_t pattern)
{
1213df: 55 push %ebp <== NOT EXECUTED
1213e0: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1213e2: 56 push %esi <== NOT EXECUTED
1213e3: 53 push %ebx <== NOT EXECUTED
1213e4: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
uint32_t b;
rtems_nvdisk_crc16_factor = malloc (sizeof (uint16_t) * 256);
1213e7: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1213ea: 68 00 02 00 00 push $0x200 <== NOT EXECUTED
1213ef: e8 f4 bf fe ff call 10d3e8 <malloc> <== NOT EXECUTED
1213f4: a3 18 9b 16 00 mov %eax,0x169b18 <== NOT EXECUTED
if (!rtems_nvdisk_crc16_factor)
1213f9: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1213fc: 31 c9 xor %ecx,%ecx <== NOT EXECUTED
1213fe: ba 1a 00 00 00 mov $0x1a,%edx <== NOT EXECUTED
121403: 85 c0 test %eax,%eax <== NOT EXECUTED
121405: 74 2d je 121434 <rtems_nvdisk_crc16_gen_factors+0x55><== NOT EXECUTED
121407: 89 ca mov %ecx,%edx <== NOT EXECUTED
121409: be 08 00 00 00 mov $0x8,%esi <== NOT EXECUTED
for (b = 0; b < 256; b++)
{
uint32_t i;
uint16_t v = b;
for (i = 8; i--;)
12140e: eb 0f jmp 12141f <rtems_nvdisk_crc16_gen_factors+0x40><== NOT EXECUTED
v = v & 1 ? (v >> 1) ^ pattern : v >> 1;
121410: f6 c2 01 test $0x1,%dl <== NOT EXECUTED
121413: 74 07 je 12141c <rtems_nvdisk_crc16_gen_factors+0x3d><== NOT EXECUTED
121415: 66 d1 ea shr %dx <== NOT EXECUTED
121418: 31 da xor %ebx,%edx <== NOT EXECUTED
12141a: eb 03 jmp 12141f <rtems_nvdisk_crc16_gen_factors+0x40><== NOT EXECUTED
12141c: 66 d1 ea shr %dx <== NOT EXECUTED
for (b = 0; b < 256; b++)
{
uint32_t i;
uint16_t v = b;
for (i = 8; i--;)
12141f: 4e dec %esi <== NOT EXECUTED
121420: 83 fe ff cmp $0xffffffff,%esi <== NOT EXECUTED
121423: 75 eb jne 121410 <rtems_nvdisk_crc16_gen_factors+0x31><== NOT EXECUTED
v = v & 1 ? (v >> 1) ^ pattern : v >> 1;
rtems_nvdisk_crc16_factor[b] = v & 0xffff;
121425: 66 89 14 48 mov %dx,(%eax,%ecx,2) <== NOT EXECUTED
rtems_nvdisk_crc16_factor = malloc (sizeof (uint16_t) * 256);
if (!rtems_nvdisk_crc16_factor)
return RTEMS_NO_MEMORY;
for (b = 0; b < 256; b++)
121429: 41 inc %ecx <== NOT EXECUTED
12142a: 81 f9 00 01 00 00 cmp $0x100,%ecx <== NOT EXECUTED
121430: 75 d5 jne 121407 <rtems_nvdisk_crc16_gen_factors+0x28><== NOT EXECUTED
121432: 31 d2 xor %edx,%edx <== NOT EXECUTED
for (i = 8; i--;)
v = v & 1 ? (v >> 1) ^ pattern : v >> 1;
rtems_nvdisk_crc16_factor[b] = v & 0xffff;
}
return RTEMS_SUCCESSFUL;
}
121434: 89 d0 mov %edx,%eax <== NOT EXECUTED
121436: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
121439: 5b pop %ebx <== NOT EXECUTED
12143a: 5e pop %esi <== NOT EXECUTED
12143b: c9 leave <== NOT EXECUTED
12143c: c3 ret <== NOT EXECUTED
00120e90 <rtems_nvdisk_error>:
* @param ... The arguments for the format text.
* @return int The number of bytes written to the output.
*/
static int
rtems_nvdisk_error (const char *format, ...)
{
120e90: 55 push %ebp <== NOT EXECUTED
120e91: 89 e5 mov %esp,%ebp <== NOT EXECUTED
120e93: 53 push %ebx <== NOT EXECUTED
120e94: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
* @param format The format string. See printf for details.
* @param ... The arguments for the format text.
* @return int The number of bytes written to the output.
*/
static int
rtems_nvdisk_error (const char *format, ...)
120e97: 8d 5d 0c lea 0xc(%ebp),%ebx <== NOT EXECUTED
{
int ret;
va_list args;
va_start (args, format);
fprintf (stderr, "nvdisk:error:");
120e9a: a1 e0 4e 16 00 mov 0x164ee0,%eax <== NOT EXECUTED
120e9f: ff 70 0c pushl 0xc(%eax) <== NOT EXECUTED
120ea2: 68 9c 9e 15 00 push $0x159e9c <== NOT EXECUTED
120ea7: e8 10 dc 01 00 call 13eabc <fputs> <== NOT EXECUTED
ret = vfprintf (stderr, format, args);
120eac: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
120eaf: 53 push %ebx <== NOT EXECUTED
120eb0: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
120eb3: a1 e0 4e 16 00 mov 0x164ee0,%eax <== NOT EXECUTED
120eb8: ff 70 0c pushl 0xc(%eax) <== NOT EXECUTED
120ebb: e8 74 a9 02 00 call 14b834 <vfprintf> <== NOT EXECUTED
120ec0: 89 c3 mov %eax,%ebx <== NOT EXECUTED
fprintf (stderr, "\n");
120ec2: 5a pop %edx <== NOT EXECUTED
120ec3: 59 pop %ecx <== NOT EXECUTED
120ec4: a1 e0 4e 16 00 mov 0x164ee0,%eax <== NOT EXECUTED
120ec9: ff 70 0c pushl 0xc(%eax) <== NOT EXECUTED
120ecc: 6a 0a push $0xa <== NOT EXECUTED
120ece: e8 fd da 01 00 call 13e9d0 <fputc> <== NOT EXECUTED
fflush (stderr);
120ed3: 58 pop %eax <== NOT EXECUTED
120ed4: a1 e0 4e 16 00 mov 0x164ee0,%eax <== NOT EXECUTED
120ed9: ff 70 0c pushl 0xc(%eax) <== NOT EXECUTED
120edc: e8 af d4 01 00 call 13e390 <fflush> <== NOT EXECUTED
va_end (args);
return ret;
}
120ee1: 89 d8 mov %ebx,%eax <== NOT EXECUTED
120ee3: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
120ee6: c9 leave <== NOT EXECUTED
120ee7: c3 ret <== NOT EXECUTED
00120ee8 <rtems_nvdisk_get_device>:
/**
* Map a block to a device.
*/
static rtems_nvdisk_device_ctl*
rtems_nvdisk_get_device (rtems_nvdisk* nvd, uint32_t block)
{
120ee8: 55 push %ebp <== NOT EXECUTED
120ee9: 89 e5 mov %esp,%ebp <== NOT EXECUTED
120eeb: 57 push %edi <== NOT EXECUTED
120eec: 56 push %esi <== NOT EXECUTED
120eed: 53 push %ebx <== NOT EXECUTED
120eee: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
uint32_t device;
if (block >= nvd->block_count)
120ef1: 3b 50 10 cmp 0x10(%eax),%edx <== NOT EXECUTED
120ef4: 73 07 jae 120efd <rtems_nvdisk_get_device+0x15><== NOT EXECUTED
{
rtems_nvdisk_error ("read-block: bad block: %d", block);
return NULL;
}
for (device = 0; device < nvd->device_count; device++)
120ef6: 8b 78 18 mov 0x18(%eax),%edi <== NOT EXECUTED
120ef9: 31 db xor %ebx,%ebx <== NOT EXECUTED
120efb: eb 22 jmp 120f1f <rtems_nvdisk_get_device+0x37><== NOT EXECUTED
{
uint32_t device;
if (block >= nvd->block_count)
{
rtems_nvdisk_error ("read-block: bad block: %d", block);
120efd: 56 push %esi <== NOT EXECUTED
120efe: 56 push %esi <== NOT EXECUTED
120eff: 52 push %edx <== NOT EXECUTED
120f00: 68 aa 9e 15 00 push $0x159eaa <== NOT EXECUTED
120f05: eb 24 jmp 120f2b <rtems_nvdisk_get_device+0x43><== NOT EXECUTED
return NULL;
}
for (device = 0; device < nvd->device_count; device++)
{
rtems_nvdisk_device_ctl* dc = &nvd->devices[device];
120f07: 6b cb 14 imul $0x14,%ebx,%ecx <== NOT EXECUTED
120f0a: 03 48 14 add 0x14(%eax),%ecx <== NOT EXECUTED
if ((block >= dc->block_base) &&
120f0d: 8b 71 0c mov 0xc(%ecx),%esi <== NOT EXECUTED
120f10: 39 f2 cmp %esi,%edx <== NOT EXECUTED
120f12: 72 0a jb 120f1e <rtems_nvdisk_get_device+0x36><== NOT EXECUTED
(block < (dc->block_base + dc->pages - dc->pages_desc)))
120f14: 03 71 04 add 0x4(%ecx),%esi <== NOT EXECUTED
120f17: 2b 71 08 sub 0x8(%ecx),%esi <== NOT EXECUTED
120f1a: 39 f2 cmp %esi,%edx <== NOT EXECUTED
120f1c: 72 17 jb 120f35 <rtems_nvdisk_get_device+0x4d><== NOT EXECUTED
{
rtems_nvdisk_error ("read-block: bad block: %d", block);
return NULL;
}
for (device = 0; device < nvd->device_count; device++)
120f1e: 43 inc %ebx <== NOT EXECUTED
120f1f: 39 fb cmp %edi,%ebx <== NOT EXECUTED
120f21: 72 e4 jb 120f07 <rtems_nvdisk_get_device+0x1f><== NOT EXECUTED
if ((block >= dc->block_base) &&
(block < (dc->block_base + dc->pages - dc->pages_desc)))
return dc;
}
rtems_nvdisk_error ("map-block:%d: no device/page map found", block);
120f23: 53 push %ebx <== NOT EXECUTED
120f24: 53 push %ebx <== NOT EXECUTED
120f25: 52 push %edx <== NOT EXECUTED
120f26: 68 c4 9e 15 00 push $0x159ec4 <== NOT EXECUTED
120f2b: e8 60 ff ff ff call 120e90 <rtems_nvdisk_error> <== NOT EXECUTED
120f30: 31 c9 xor %ecx,%ecx <== NOT EXECUTED
return NULL;
120f32: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
120f35: 89 c8 mov %ecx,%eax <== NOT EXECUTED
120f37: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
120f3a: 5b pop %ebx <== NOT EXECUTED
120f3b: 5e pop %esi <== NOT EXECUTED
120f3c: 5f pop %edi <== NOT EXECUTED
120f3d: c9 leave <== NOT EXECUTED
120f3e: c3 ret <== NOT EXECUTED
0012143d <rtems_nvdisk_initialize>:
*/
rtems_device_driver
rtems_nvdisk_initialize (rtems_device_major_number major,
rtems_device_minor_number minor,
void* arg __attribute__((unused)))
{
12143d: 55 push %ebp <== NOT EXECUTED
12143e: 89 e5 mov %esp,%ebp <== NOT EXECUTED
121440: 57 push %edi <== NOT EXECUTED
121441: 56 push %esi <== NOT EXECUTED
121442: 53 push %ebx <== NOT EXECUTED
121443: 83 ec 5c sub $0x5c,%esp <== NOT EXECUTED
const rtems_nvdisk_config* c = rtems_nvdisk_configuration;
rtems_nvdisk* nvd;
rtems_status_code sc;
sc = rtems_disk_io_initialize ();
121446: e8 04 a7 fe ff call 10bb4f <rtems_disk_io_initialize><== NOT EXECUTED
12144b: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
12144d: 85 c0 test %eax,%eax <== NOT EXECUTED
12144f: 0f 85 d8 01 00 00 jne 12162d <rtems_nvdisk_initialize+0x1f0><== NOT EXECUTED
return sc;
sc = rtems_nvdisk_crc16_gen_factors (0x8408);
121455: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
121458: 68 08 84 00 00 push $0x8408 <== NOT EXECUTED
12145d: e8 7d ff ff ff call 1213df <rtems_nvdisk_crc16_gen_factors><== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
121462: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
121465: 89 c7 mov %eax,%edi <== NOT EXECUTED
121467: 85 c0 test %eax,%eax <== NOT EXECUTED
121469: 0f 85 be 01 00 00 jne 12162d <rtems_nvdisk_initialize+0x1f0><== NOT EXECUTED
return sc;
rtems_nvdisks = calloc (rtems_nvdisk_configuration_size,
12146f: 53 push %ebx <== NOT EXECUTED
121470: 53 push %ebx <== NOT EXECUTED
121471: 6a 28 push $0x28 <== NOT EXECUTED
121473: ff 35 d0 27 16 00 pushl 0x1627d0 <== NOT EXECUTED
121479: e8 4e b5 fe ff call 10c9cc <calloc> <== NOT EXECUTED
12147e: a3 10 9b 16 00 mov %eax,0x169b10 <== NOT EXECUTED
sizeof (rtems_nvdisk));
if (!rtems_nvdisks)
121483: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
121486: 85 c0 test %eax,%eax <== NOT EXECUTED
121488: 0f 84 9a 01 00 00 je 121628 <rtems_nvdisk_initialize+0x1eb><== NOT EXECUTED
12148e: 31 db xor %ebx,%ebx <== NOT EXECUTED
121490: c7 45 c4 00 00 00 00 movl $0x0,-0x3c(%ebp) <== NOT EXECUTED
return RTEMS_NO_MEMORY;
for (minor = 0; minor < rtems_nvdisk_configuration_size; minor++, c++)
{
char name[] = RTEMS_NVDISK_DEVICE_BASE_NAME "a";
121497: 8d 45 d6 lea -0x2a(%ebp),%eax <== NOT EXECUTED
12149a: 89 45 a4 mov %eax,-0x5c(%ebp) <== NOT EXECUTED
12149d: e9 6f 01 00 00 jmp 121611 <rtems_nvdisk_initialize+0x1d4><== NOT EXECUTED
1214a2: b9 0a 00 00 00 mov $0xa,%ecx <== NOT EXECUTED
1214a7: 8b 7d a4 mov -0x5c(%ebp),%edi <== NOT EXECUTED
1214aa: be 4d 9f 15 00 mov $0x159f4d,%esi <== NOT EXECUTED
1214af: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
rtems_device_minor_number _minor
)
{
union __rtems_dev_t temp;
temp.__overlay.major = _major;
1214b1: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
1214b4: 89 55 e0 mov %edx,-0x20(%ebp) <== NOT EXECUTED
temp.__overlay.minor = _minor;
1214b7: 8b 45 c4 mov -0x3c(%ebp),%eax <== NOT EXECUTED
1214ba: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
return temp.device;
1214bd: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
1214c0: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
1214c3: 89 45 b0 mov %eax,-0x50(%ebp) <== NOT EXECUTED
1214c6: 89 55 b4 mov %edx,-0x4c(%ebp) <== NOT EXECUTED
dev_t dev = rtems_filesystem_make_dev_t (major, minor);
uint32_t device;
uint32_t blocks = 0;
nvd = &rtems_nvdisks[minor];
1214c9: 8d 34 1b lea (%ebx,%ebx,1),%esi <== NOT EXECUTED
1214cc: 03 35 10 9b 16 00 add 0x169b10,%esi <== NOT EXECUTED
name [sizeof(RTEMS_NVDISK_DEVICE_BASE_NAME)] += minor;
1214d2: 8a 55 c4 mov -0x3c(%ebp),%dl <== NOT EXECUTED
1214d5: 00 55 df add %dl,-0x21(%ebp) <== NOT EXECUTED
nvd->major = major;
1214d8: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
1214db: 89 06 mov %eax,(%esi) <== NOT EXECUTED
nvd->minor = minor;
1214dd: 8b 55 c4 mov -0x3c(%ebp),%edx <== NOT EXECUTED
1214e0: 89 56 04 mov %edx,0x4(%esi) <== NOT EXECUTED
nvd->flags = c->flags;
1214e3: 8b 83 38 52 15 00 mov 0x155238(%ebx),%eax <== NOT EXECUTED
1214e9: 89 46 08 mov %eax,0x8(%esi) <== NOT EXECUTED
nvd->block_size = c->block_size;
1214ec: 8b 83 2c 52 15 00 mov 0x15522c(%ebx),%eax <== NOT EXECUTED
1214f2: 89 46 0c mov %eax,0xc(%esi) <== NOT EXECUTED
nvd->info_level = c->info_level;
1214f5: 8b 83 3c 52 15 00 mov 0x15523c(%ebx),%eax <== NOT EXECUTED
1214fb: 89 46 24 mov %eax,0x24(%esi) <== NOT EXECUTED
nvd->devices = calloc (c->device_count, sizeof (rtems_nvdisk_device_ctl));
1214fe: 51 push %ecx <== NOT EXECUTED
1214ff: 51 push %ecx <== NOT EXECUTED
121500: 6a 14 push $0x14 <== NOT EXECUTED
121502: ff b3 30 52 15 00 pushl 0x155230(%ebx) <== NOT EXECUTED
121508: e8 bf b4 fe ff call 10c9cc <calloc> <== NOT EXECUTED
12150d: 89 46 14 mov %eax,0x14(%esi) <== NOT EXECUTED
if (!nvd->devices)
121510: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
121513: 85 c0 test %eax,%eax <== NOT EXECUTED
121515: 0f 84 0d 01 00 00 je 121628 <rtems_nvdisk_initialize+0x1eb><== NOT EXECUTED
12151b: c7 45 c0 00 00 00 00 movl $0x0,-0x40(%ebp) <== NOT EXECUTED
121522: 31 ff xor %edi,%edi <== NOT EXECUTED
121524: eb 69 jmp 12158f <rtems_nvdisk_initialize+0x152><== NOT EXECUTED
return RTEMS_NO_MEMORY;
for (device = 0; device < c->device_count; device++)
{
rtems_nvdisk_device_ctl* dc = &nvd->devices[device];
121526: 6b cf 14 imul $0x14,%edi,%ecx <== NOT EXECUTED
121529: 03 4e 14 add 0x14(%esi),%ecx <== NOT EXECUTED
dc->device = device;
12152c: 89 39 mov %edi,(%ecx) <== NOT EXECUTED
12152e: 89 f8 mov %edi,%eax <== NOT EXECUTED
121530: c1 e0 04 shl $0x4,%eax <== NOT EXECUTED
121533: 89 45 bc mov %eax,-0x44(%ebp) <== NOT EXECUTED
*/
static uint32_t
rtems_nvdisk_pages_in_device (const rtems_nvdisk* nvd,
const rtems_nvdisk_device_desc* dd)
{
return dd->size / nvd->block_size;
121536: 8b 93 34 52 15 00 mov 0x155234(%ebx),%edx <== NOT EXECUTED
12153c: 8b 54 02 08 mov 0x8(%edx,%eax,1),%edx <== NOT EXECUTED
121540: 89 55 9c mov %edx,-0x64(%ebp) <== NOT EXECUTED
121543: 89 d0 mov %edx,%eax <== NOT EXECUTED
121545: 31 d2 xor %edx,%edx <== NOT EXECUTED
121547: f7 76 0c divl 0xc(%esi) <== NOT EXECUTED
12154a: 89 45 b8 mov %eax,-0x48(%ebp) <== NOT EXECUTED
for (device = 0; device < c->device_count; device++)
{
rtems_nvdisk_device_ctl* dc = &nvd->devices[device];
dc->device = device;
dc->pages = rtems_nvdisk_pages_in_device (nvd, &c->devices[device]);
12154d: 89 41 04 mov %eax,0x4(%ecx) <== NOT EXECUTED
rtems_nvdisk_page_desc_pages (const rtems_nvdisk* nvd,
const rtems_nvdisk_device_desc* dd)
{
uint32_t pages = rtems_nvdisk_pages_in_device (nvd, dd);
uint32_t bytes = pages * sizeof (uint16_t);
return ((bytes - 1) / nvd->block_size) + 1;
121550: 8b 83 34 52 15 00 mov 0x155234(%ebx),%eax <== NOT EXECUTED
121556: 8b 55 bc mov -0x44(%ebp),%edx <== NOT EXECUTED
121559: 8b 54 10 08 mov 0x8(%eax,%edx,1),%edx <== NOT EXECUTED
12155d: 89 55 a0 mov %edx,-0x60(%ebp) <== NOT EXECUTED
121560: 89 d0 mov %edx,%eax <== NOT EXECUTED
121562: 31 d2 xor %edx,%edx <== NOT EXECUTED
121564: f7 76 0c divl 0xc(%esi) <== NOT EXECUTED
121567: 8d 44 00 ff lea -0x1(%eax,%eax,1),%eax <== NOT EXECUTED
12156b: 31 d2 xor %edx,%edx <== NOT EXECUTED
12156d: f7 76 0c divl 0xc(%esi) <== NOT EXECUTED
121570: 40 inc %eax <== NOT EXECUTED
{
rtems_nvdisk_device_ctl* dc = &nvd->devices[device];
dc->device = device;
dc->pages = rtems_nvdisk_pages_in_device (nvd, &c->devices[device]);
dc->pages_desc = rtems_nvdisk_page_desc_pages (nvd, &c->devices[device]);
121571: 89 41 08 mov %eax,0x8(%ecx) <== NOT EXECUTED
dc->block_base = blocks;
121574: 8b 55 c0 mov -0x40(%ebp),%edx <== NOT EXECUTED
121577: 89 51 0c mov %edx,0xc(%ecx) <== NOT EXECUTED
blocks += dc->pages - dc->pages_desc;
12157a: 8b 55 b8 mov -0x48(%ebp),%edx <== NOT EXECUTED
12157d: 29 c2 sub %eax,%edx <== NOT EXECUTED
12157f: 01 55 c0 add %edx,-0x40(%ebp) <== NOT EXECUTED
dc->descriptor = &c->devices[device];
121582: 8b 45 bc mov -0x44(%ebp),%eax <== NOT EXECUTED
121585: 03 83 34 52 15 00 add 0x155234(%ebx),%eax <== NOT EXECUTED
12158b: 89 41 10 mov %eax,0x10(%ecx) <== NOT EXECUTED
nvd->devices = calloc (c->device_count, sizeof (rtems_nvdisk_device_ctl));
if (!nvd->devices)
return RTEMS_NO_MEMORY;
for (device = 0; device < c->device_count; device++)
12158e: 47 inc %edi <== NOT EXECUTED
12158f: 3b bb 30 52 15 00 cmp 0x155230(%ebx),%edi <== NOT EXECUTED
121595: 72 8f jb 121526 <rtems_nvdisk_initialize+0xe9><== NOT EXECUTED
blocks += dc->pages - dc->pages_desc;
dc->descriptor = &c->devices[device];
}
nvd->block_count = blocks;
121597: 8b 45 c0 mov -0x40(%ebp),%eax <== NOT EXECUTED
12159a: 89 46 10 mov %eax,0x10(%esi) <== NOT EXECUTED
nvd->device_count = c->device_count;
12159d: 8b 83 30 52 15 00 mov 0x155230(%ebx),%eax <== NOT EXECUTED
1215a3: 89 46 18 mov %eax,0x18(%esi) <== NOT EXECUTED
sc = rtems_disk_create_phys(dev, c->block_size, blocks,
1215a6: 52 push %edx <== NOT EXECUTED
1215a7: 8d 55 d6 lea -0x2a(%ebp),%edx <== NOT EXECUTED
1215aa: 52 push %edx <== NOT EXECUTED
1215ab: 6a 00 push $0x0 <== NOT EXECUTED
1215ad: 68 3f 0f 12 00 push $0x120f3f <== NOT EXECUTED
1215b2: ff 75 c0 pushl -0x40(%ebp) <== NOT EXECUTED
1215b5: ff b3 2c 52 15 00 pushl 0x15522c(%ebx) <== NOT EXECUTED
1215bb: ff 75 b4 pushl -0x4c(%ebp) <== NOT EXECUTED
1215be: ff 75 b0 pushl -0x50(%ebp) <== NOT EXECUTED
1215c1: e8 69 ab fe ff call 10c12f <rtems_disk_create_phys><== NOT EXECUTED
rtems_nvdisk_ioctl, NULL, name);
if (sc != RTEMS_SUCCESSFUL)
1215c6: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
1215c9: 85 c0 test %eax,%eax <== NOT EXECUTED
1215cb: 74 0c je 1215d9 <rtems_nvdisk_initialize+0x19c><== NOT EXECUTED
1215cd: 89 c7 mov %eax,%edi <== NOT EXECUTED
{
rtems_nvdisk_error ("disk create phy failed");
1215cf: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1215d2: 68 1e 9f 15 00 push $0x159f1e <== NOT EXECUTED
1215d7: eb 2b jmp 121604 <rtems_nvdisk_initialize+0x1c7><== NOT EXECUTED
return sc;
}
sc = rtems_semaphore_create (rtems_build_name ('N', 'V', 'D', 'K'), 1,
1215d9: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1215dc: 83 c6 20 add $0x20,%esi <== NOT EXECUTED
1215df: 56 push %esi <== NOT EXECUTED
1215e0: 6a 00 push $0x0 <== NOT EXECUTED
1215e2: 6a 54 push $0x54 <== NOT EXECUTED
1215e4: 6a 01 push $0x1 <== NOT EXECUTED
1215e6: 68 4b 44 56 4e push $0x4e56444b <== NOT EXECUTED
1215eb: e8 98 f3 fe ff call 110988 <rtems_semaphore_create><== NOT EXECUTED
1215f0: 83 c3 14 add $0x14,%ebx <== NOT EXECUTED
RTEMS_PRIORITY | RTEMS_BINARY_SEMAPHORE |
RTEMS_INHERIT_PRIORITY, 0, &nvd->lock);
if (sc != RTEMS_SUCCESSFUL)
1215f3: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
1215f6: 85 c0 test %eax,%eax <== NOT EXECUTED
1215f8: 74 14 je 12160e <rtems_nvdisk_initialize+0x1d1><== NOT EXECUTED
1215fa: 89 c7 mov %eax,%edi <== NOT EXECUTED
{
rtems_nvdisk_error ("disk lock create failed");
1215fc: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1215ff: 68 35 9f 15 00 push $0x159f35 <== NOT EXECUTED
121604: e8 87 f8 ff ff call 120e90 <rtems_nvdisk_error> <== NOT EXECUTED
return sc;
121609: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12160c: eb 1f jmp 12162d <rtems_nvdisk_initialize+0x1f0><== NOT EXECUTED
sizeof (rtems_nvdisk));
if (!rtems_nvdisks)
return RTEMS_NO_MEMORY;
for (minor = 0; minor < rtems_nvdisk_configuration_size; minor++, c++)
12160e: ff 45 c4 incl -0x3c(%ebp) <== NOT EXECUTED
121611: a1 d0 27 16 00 mov 0x1627d0,%eax <== NOT EXECUTED
121616: 39 45 c4 cmp %eax,-0x3c(%ebp) <== NOT EXECUTED
121619: 0f 82 83 fe ff ff jb 1214a2 <rtems_nvdisk_initialize+0x65><== NOT EXECUTED
rtems_nvdisk_error ("disk lock create failed");
return sc;
}
}
rtems_nvdisk_count = rtems_nvdisk_configuration_size;
12161f: a3 14 9b 16 00 mov %eax,0x169b14 <== NOT EXECUTED
121624: 31 ff xor %edi,%edi <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
121626: eb 05 jmp 12162d <rtems_nvdisk_initialize+0x1f0><== NOT EXECUTED
121628: bf 1a 00 00 00 mov $0x1a,%edi <== NOT EXECUTED
}
12162d: 89 f8 mov %edi,%eax <== NOT EXECUTED
12162f: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
121632: 5b pop %ebx <== NOT EXECUTED
121633: 5e pop %esi <== NOT EXECUTED
121634: 5f pop %edi <== NOT EXECUTED
121635: c9 leave <== NOT EXECUTED
121636: c3 ret <== NOT EXECUTED
00120f3f <rtems_nvdisk_ioctl>:
* @param argp IOCTL argument.
* @retval The IOCTL return value
*/
static int
rtems_nvdisk_ioctl (rtems_disk_device *dd, uint32_t req, void* argp)
{
120f3f: 55 push %ebp <== NOT EXECUTED
120f40: 89 e5 mov %esp,%ebp <== NOT EXECUTED
120f42: 57 push %edi <== NOT EXECUTED
120f43: 56 push %esi <== NOT EXECUTED
120f44: 53 push %ebx <== NOT EXECUTED
120f45: 83 ec 5c sub $0x5c,%esp <== NOT EXECUTED
120f48: 8b 7d 08 mov 0x8(%ebp),%edi <== NOT EXECUTED
120f4b: 8b 75 0c mov 0xc(%ebp),%esi <== NOT EXECUTED
120f4e: 8b 5d 10 mov 0x10(%ebp),%ebx <== NOT EXECUTED
120f51: 8b 47 04 mov 0x4(%edi),%eax <== NOT EXECUTED
dev_t dev = rtems_disk_get_device_identifier (dd);
rtems_device_minor_number minor = rtems_filesystem_dev_minor_t (dev);
rtems_blkdev_request* r = argp;
rtems_status_code sc;
if (minor >= rtems_nvdisk_count)
120f54: 3b 05 14 9b 16 00 cmp 0x169b14,%eax <== NOT EXECUTED
120f5a: 73 15 jae 120f71 <rtems_nvdisk_ioctl+0x32><== NOT EXECUTED
{
errno = ENODEV;
return -1;
}
if (rtems_nvdisks[minor].device_count == 0)
120f5c: 6b c0 28 imul $0x28,%eax,%eax <== NOT EXECUTED
120f5f: 89 45 c8 mov %eax,-0x38(%ebp) <== NOT EXECUTED
120f62: a1 10 9b 16 00 mov 0x169b10,%eax <== NOT EXECUTED
120f67: 8b 55 c8 mov -0x38(%ebp),%edx <== NOT EXECUTED
120f6a: 83 7c 10 18 00 cmpl $0x0,0x18(%eax,%edx,1) <== NOT EXECUTED
120f6f: 75 13 jne 120f84 <rtems_nvdisk_ioctl+0x45><== NOT EXECUTED
{
errno = ENODEV;
120f71: e8 9e d0 01 00 call 13e014 <__errno> <== NOT EXECUTED
120f76: c7 00 13 00 00 00 movl $0x13,(%eax) <== NOT EXECUTED
120f7c: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
return -1;
120f7f: e9 31 04 00 00 jmp 1213b5 <rtems_nvdisk_ioctl+0x476><== NOT EXECUTED
}
errno = 0;
120f84: e8 8b d0 01 00 call 13e014 <__errno> <== NOT EXECUTED
120f89: c7 00 00 00 00 00 movl $0x0,(%eax) <== NOT EXECUTED
sc = rtems_semaphore_obtain (rtems_nvdisks[minor].lock, RTEMS_WAIT, 0);
120f8f: 50 push %eax <== NOT EXECUTED
120f90: 6a 00 push $0x0 <== NOT EXECUTED
120f92: 6a 00 push $0x0 <== NOT EXECUTED
120f94: a1 10 9b 16 00 mov 0x169b10,%eax <== NOT EXECUTED
120f99: 8b 4d c8 mov -0x38(%ebp),%ecx <== NOT EXECUTED
120f9c: ff 74 08 20 pushl 0x20(%eax,%ecx,1) <== NOT EXECUTED
120fa0: e8 63 fc fe ff call 110c08 <rtems_semaphore_obtain><== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
120fa5: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
120fa8: 85 c0 test %eax,%eax <== NOT EXECUTED
120faa: 0f 85 ee 03 00 00 jne 12139e <rtems_nvdisk_ioctl+0x45f><== NOT EXECUTED
errno = EIO;
else
{
errno = 0;
120fb0: e8 5f d0 01 00 call 13e014 <__errno> <== NOT EXECUTED
120fb5: c7 00 00 00 00 00 movl $0x0,(%eax) <== NOT EXECUTED
switch (req)
120fbb: 81 fe 82 42 00 20 cmp $0x20004282,%esi <== NOT EXECUTED
120fc1: 0f 84 a2 03 00 00 je 121369 <rtems_nvdisk_ioctl+0x42a><== NOT EXECUTED
120fc7: 81 fe 01 42 18 c0 cmp $0xc0184201,%esi <== NOT EXECUTED
120fcd: 74 11 je 120fe0 <rtems_nvdisk_ioctl+0xa1><== NOT EXECUTED
120fcf: 81 fe 80 42 00 20 cmp $0x20004280,%esi <== NOT EXECUTED
120fd5: 0f 85 9c 03 00 00 jne 121377 <rtems_nvdisk_ioctl+0x438><== NOT EXECUTED
120fdb: e9 0e 03 00 00 jmp 1212ee <rtems_nvdisk_ioctl+0x3af><== NOT EXECUTED
{
case RTEMS_BLKIO_REQUEST:
switch (r->req)
120fe0: 8b 03 mov (%ebx),%eax <== NOT EXECUTED
120fe2: 85 c0 test %eax,%eax <== NOT EXECUTED
120fe4: 74 0c je 120ff2 <rtems_nvdisk_ioctl+0xb3><== NOT EXECUTED
120fe6: 48 dec %eax <== NOT EXECUTED
120fe7: 0f 85 f1 02 00 00 jne 1212de <rtems_nvdisk_ioctl+0x39f><== NOT EXECUTED
120fed: e9 88 01 00 00 jmp 12117a <rtems_nvdisk_ioctl+0x23b><== NOT EXECUTED
{
case RTEMS_BLKDEV_REQ_READ:
errno = rtems_nvdisk_read (&rtems_nvdisks[minor], r);
120ff2: e8 1d d0 01 00 call 13e014 <__errno> <== NOT EXECUTED
120ff7: 89 45 b8 mov %eax,-0x48(%ebp) <== NOT EXECUTED
120ffa: 8b 75 c8 mov -0x38(%ebp),%esi <== NOT EXECUTED
120ffd: 03 35 10 9b 16 00 add 0x169b10,%esi <== NOT EXECUTED
* @retval int The ioctl return value.
*/
static int
rtems_nvdisk_read (rtems_nvdisk* nvd, rtems_blkdev_request* req)
{
rtems_blkdev_sg_buffer* sg = req->bufs;
121003: 8d 43 18 lea 0x18(%ebx),%eax <== NOT EXECUTED
121006: 89 45 cc mov %eax,-0x34(%ebp) <== NOT EXECUTED
121009: c7 45 c0 00 00 00 00 movl $0x0,-0x40(%ebp) <== NOT EXECUTED
121010: 89 5d d4 mov %ebx,-0x2c(%ebp) <== NOT EXECUTED
121013: e9 31 01 00 00 jmp 121149 <rtems_nvdisk_ioctl+0x20a><== NOT EXECUTED
for (bufs = 0; (ret == 0) && (bufs < req->bufnum); bufs++, sg++)
{
uint8_t* data;
uint32_t nvb;
uint32_t b;
nvb = sg->length / nvd->block_size;
121018: 8b 55 cc mov -0x34(%ebp),%edx <== NOT EXECUTED
12101b: 8b 42 04 mov 0x4(%edx),%eax <== NOT EXECUTED
12101e: 31 d2 xor %edx,%edx <== NOT EXECUTED
121020: f7 76 0c divl 0xc(%esi) <== NOT EXECUTED
121023: 89 45 b0 mov %eax,-0x50(%ebp) <== NOT EXECUTED
data = sg->buffer;
121026: 8b 4d cc mov -0x34(%ebp),%ecx <== NOT EXECUTED
121029: 8b 59 08 mov 0x8(%ecx),%ebx <== NOT EXECUTED
12102c: c7 45 d0 00 00 00 00 movl $0x0,-0x30(%ebp) <== NOT EXECUTED
121033: e9 00 01 00 00 jmp 121138 <rtems_nvdisk_ioctl+0x1f9><== NOT EXECUTED
for (b = 0; b < nvb; b++, data += nvd->block_size)
{
ret = rtems_nvdisk_read_block (nvd, sg->block + b, data);
121038: 8b 55 d0 mov -0x30(%ebp),%edx <== NOT EXECUTED
12103b: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED
12103e: 03 10 add (%eax),%edx <== NOT EXECUTED
121040: 89 55 c4 mov %edx,-0x3c(%ebp) <== NOT EXECUTED
uint32_t page;
uint16_t crc;
uint16_t cs;
int ret;
dc = rtems_nvdisk_get_device (nvd, block);
121043: 89 f0 mov %esi,%eax <== NOT EXECUTED
121045: e8 9e fe ff ff call 120ee8 <rtems_nvdisk_get_device><== NOT EXECUTED
12104a: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (!dc)
12104c: 85 c0 test %eax,%eax <== NOT EXECUTED
12104e: 75 0d jne 12105d <rtems_nvdisk_ioctl+0x11e><== NOT EXECUTED
121050: 8b 5d d4 mov -0x2c(%ebp),%ebx <== NOT EXECUTED
121053: b8 05 00 00 00 mov $0x5,%eax <== NOT EXECUTED
121058: e9 d4 00 00 00 jmp 121131 <rtems_nvdisk_ioctl+0x1f2><== NOT EXECUTED
*/
static uint32_t
rtems_nvdisk_get_page (rtems_nvdisk_device_ctl* dc,
uint32_t block)
{
return block - dc->block_base;
12105d: 8b 4d c4 mov -0x3c(%ebp),%ecx <== NOT EXECUTED
121060: 2b 48 0c sub 0xc(%eax),%ecx <== NOT EXECUTED
121063: 89 4d b4 mov %ecx,-0x4c(%ebp) <== NOT EXECUTED
#if RTEMS_NVDISK_TRACE
rtems_nvdisk_info (nvd, " read-block:%d=>%02d-%03d, cs:%04x",
block, dc->device, page, crc);
#endif
ret = rtems_nvdisk_read_checksum (nvd, dc->device, page, &crc);
121066: 8b 10 mov (%eax),%edx <== NOT EXECUTED
* Get the descriptor for a device.
*/
static const rtems_nvdisk_device_desc*
rtems_nvdisk_device_descriptor (const rtems_nvdisk* nvd, uint32_t device)
{
return nvd->devices[device].descriptor;
121068: 8b 4e 14 mov 0x14(%esi),%ecx <== NOT EXECUTED
12106b: 6b c2 14 imul $0x14,%edx,%eax <== NOT EXECUTED
12106e: 8b 44 08 10 mov 0x10(%eax,%ecx,1),%eax <== NOT EXECUTED
ops = nvd->devices[device].descriptor->nv_ops;
#if RTEMS_NVDISK_TRACE
rtems_nvdisk_printf (nvd, " dev-read: %02d-%08x: s=%d",
device, offset, size);
#endif
return ops->read (device, dd->flags, dd->base, offset, buffer, size);
121072: 51 push %ecx <== NOT EXECUTED
121073: 51 push %ecx <== NOT EXECUTED
121074: 8b 48 0c mov 0xc(%eax),%ecx <== NOT EXECUTED
121077: 89 4d bc mov %ecx,-0x44(%ebp) <== NOT EXECUTED
12107a: 6a 02 push $0x2 <== NOT EXECUTED
12107c: 8d 4d e6 lea -0x1a(%ebp),%ecx <== NOT EXECUTED
12107f: 51 push %ecx <== NOT EXECUTED
121080: 8b 4d b4 mov -0x4c(%ebp),%ecx <== NOT EXECUTED
121083: d1 e1 shl %ecx <== NOT EXECUTED
121085: 51 push %ecx <== NOT EXECUTED
121086: ff 70 04 pushl 0x4(%eax) <== NOT EXECUTED
121089: ff 30 pushl (%eax) <== NOT EXECUTED
12108b: 52 push %edx <== NOT EXECUTED
12108c: 8b 55 bc mov -0x44(%ebp),%edx <== NOT EXECUTED
12108f: ff 12 call *(%edx) <== NOT EXECUTED
block, dc->device, page, crc);
#endif
ret = rtems_nvdisk_read_checksum (nvd, dc->device, page, &crc);
if (ret)
121091: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
121094: 85 c0 test %eax,%eax <== NOT EXECUTED
121096: 0f 85 92 00 00 00 jne 12112e <rtems_nvdisk_ioctl+0x1ef><== NOT EXECUTED
return ret;
if (crc == 0xffff)
12109c: 66 83 7d e6 ff cmpw $0xffffffff,-0x1a(%ebp) <== NOT EXECUTED
1210a1: 8b 4e 0c mov 0xc(%esi),%ecx <== NOT EXECUTED
1210a4: 75 09 jne 1210af <rtems_nvdisk_ioctl+0x170><== NOT EXECUTED
{
#if RTEMS_NVDISK_TRACE
rtems_nvdisk_warning (nvd, "read-block: crc not set: %d", block);
#endif
memset (buffer, 0, nvd->block_size);
1210a6: 89 df mov %ebx,%edi <== NOT EXECUTED
1210a8: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED
1210aa: e9 0e 03 00 00 jmp 1213bd <rtems_nvdisk_ioctl+0x47e><== NOT EXECUTED
return 0;
}
ret = rtems_nvdisk_read_page (nvd, dc->device, page + dc->pages_desc, buffer);
1210af: 8b 07 mov (%edi),%eax <== NOT EXECUTED
1210b1: 89 45 a4 mov %eax,-0x5c(%ebp) <== NOT EXECUTED
* Get the descriptor for a device.
*/
static const rtems_nvdisk_device_desc*
rtems_nvdisk_device_descriptor (const rtems_nvdisk* nvd, uint32_t device)
{
return nvd->devices[device].descriptor;
1210b4: 6b d0 14 imul $0x14,%eax,%edx <== NOT EXECUTED
1210b7: 8b 46 14 mov 0x14(%esi),%eax <== NOT EXECUTED
1210ba: 8b 44 02 10 mov 0x10(%edx,%eax,1),%eax <== NOT EXECUTED
ops = nvd->devices[device].descriptor->nv_ops;
#if RTEMS_NVDISK_TRACE
rtems_nvdisk_printf (nvd, " dev-read: %02d-%08x: s=%d",
device, offset, size);
#endif
return ops->read (device, dd->flags, dd->base, offset, buffer, size);
1210be: 52 push %edx <== NOT EXECUTED
1210bf: 52 push %edx <== NOT EXECUTED
1210c0: 8b 50 0c mov 0xc(%eax),%edx <== NOT EXECUTED
1210c3: 51 push %ecx <== NOT EXECUTED
1210c4: 53 push %ebx <== NOT EXECUTED
1210c5: 8b 7f 08 mov 0x8(%edi),%edi <== NOT EXECUTED
1210c8: 03 7d b4 add -0x4c(%ebp),%edi <== NOT EXECUTED
1210cb: 0f af f9 imul %ecx,%edi <== NOT EXECUTED
1210ce: 57 push %edi <== NOT EXECUTED
1210cf: ff 70 04 pushl 0x4(%eax) <== NOT EXECUTED
1210d2: ff 30 pushl (%eax) <== NOT EXECUTED
1210d4: ff 75 a4 pushl -0x5c(%ebp) <== NOT EXECUTED
1210d7: ff 12 call *(%edx) <== NOT EXECUTED
return 0;
}
ret = rtems_nvdisk_read_page (nvd, dc->device, page + dc->pages_desc, buffer);
if (ret)
1210d9: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
1210dc: 85 c0 test %eax,%eax <== NOT EXECUTED
1210de: 75 4e jne 12112e <rtems_nvdisk_ioctl+0x1ef><== NOT EXECUTED
return ret;
cs = rtems_nvdisk_page_checksum (buffer, nvd->block_size);
1210e0: 8b 7e 0c mov 0xc(%esi),%edi <== NOT EXECUTED
{
uint16_t cs = 0xffff;
uint32_t i;
for (i = 0; i < page_size; i++, buffer++)
cs = rtems_nvdisk_calc_crc16 (cs, *buffer);
1210e3: 8b 0d 18 9b 16 00 mov 0x169b18,%ecx <== NOT EXECUTED
1210e9: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
1210ec: 31 d2 xor %edx,%edx <== NOT EXECUTED
1210ee: eb 0b jmp 1210fb <rtems_nvdisk_ioctl+0x1bc><== NOT EXECUTED
1210f0: 32 04 13 xor (%ebx,%edx,1),%al <== NOT EXECUTED
1210f3: 0f b6 c0 movzbl %al,%eax <== NOT EXECUTED
1210f6: 66 8b 04 41 mov (%ecx,%eax,2),%ax <== NOT EXECUTED
rtems_nvdisk_page_checksum (const uint8_t* buffer, uint32_t page_size)
{
uint16_t cs = 0xffff;
uint32_t i;
for (i = 0; i < page_size; i++, buffer++)
1210fa: 42 inc %edx <== NOT EXECUTED
1210fb: 39 fa cmp %edi,%edx <== NOT EXECUTED
1210fd: 72 f1 jb 1210f0 <rtems_nvdisk_ioctl+0x1b1><== NOT EXECUTED
if (ret)
return ret;
cs = rtems_nvdisk_page_checksum (buffer, nvd->block_size);
if (cs != crc)
1210ff: 66 8b 55 e6 mov -0x1a(%ebp),%dx <== NOT EXECUTED
121103: 66 39 d0 cmp %dx,%ax <== NOT EXECUTED
121106: 0f 84 b1 02 00 00 je 1213bd <rtems_nvdisk_ioctl+0x47e><== NOT EXECUTED
12110c: 8b 5d d4 mov -0x2c(%ebp),%ebx <== NOT EXECUTED
{
rtems_nvdisk_error ("read-block: crc failure: %d: buffer:%04x page:%04x",
12110f: 0f b7 d2 movzwl %dx,%edx <== NOT EXECUTED
121112: 52 push %edx <== NOT EXECUTED
121113: 0f b7 c0 movzwl %ax,%eax <== NOT EXECUTED
121116: 50 push %eax <== NOT EXECUTED
121117: ff 75 c4 pushl -0x3c(%ebp) <== NOT EXECUTED
12111a: 68 eb 9e 15 00 push $0x159eeb <== NOT EXECUTED
12111f: e8 6c fd ff ff call 120e90 <rtems_nvdisk_error> <== NOT EXECUTED
121124: b8 05 00 00 00 mov $0x5,%eax <== NOT EXECUTED
121129: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12112c: eb 03 jmp 121131 <rtems_nvdisk_ioctl+0x1f2><== NOT EXECUTED
12112e: 8b 5d d4 mov -0x2c(%ebp),%ebx <== NOT EXECUTED
121131: ba 1b 00 00 00 mov $0x1b,%edx <== NOT EXECUTED
121136: eb 26 jmp 12115e <rtems_nvdisk_ioctl+0x21f><== NOT EXECUTED
uint8_t* data;
uint32_t nvb;
uint32_t b;
nvb = sg->length / nvd->block_size;
data = sg->buffer;
for (b = 0; b < nvb; b++, data += nvd->block_size)
121138: 8b 4d b0 mov -0x50(%ebp),%ecx <== NOT EXECUTED
12113b: 39 4d d0 cmp %ecx,-0x30(%ebp) <== NOT EXECUTED
12113e: 0f 82 f4 fe ff ff jb 121038 <rtems_nvdisk_ioctl+0xf9><== NOT EXECUTED
121144: e9 7f 02 00 00 jmp 1213c8 <rtems_nvdisk_ioctl+0x489><== NOT EXECUTED
#if RTEMS_NVDISK_TRACE
rtems_nvdisk_info (nvd, "read: blocks=%d", req->bufnum);
#endif
for (bufs = 0; (ret == 0) && (bufs < req->bufnum); bufs++, sg++)
121149: 8b 55 c0 mov -0x40(%ebp),%edx <== NOT EXECUTED
12114c: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED
12114f: 3b 50 10 cmp 0x10(%eax),%edx <== NOT EXECUTED
121152: 0f 82 c0 fe ff ff jb 121018 <rtems_nvdisk_ioctl+0xd9><== NOT EXECUTED
121158: 89 c3 mov %eax,%ebx <== NOT EXECUTED
12115a: 31 c0 xor %eax,%eax <== NOT EXECUTED
12115c: 31 d2 xor %edx,%edx <== NOT EXECUTED
if (ret)
break;
}
}
req->status = ret ? RTEMS_IO_ERROR : RTEMS_SUCCESSFUL;
12115e: 89 53 0c mov %edx,0xc(%ebx) <== NOT EXECUTED
req->req_done (req->done_arg, req->status);
121161: 56 push %esi <== NOT EXECUTED
121162: 56 push %esi <== NOT EXECUTED
121163: 52 push %edx <== NOT EXECUTED
121164: ff 73 08 pushl 0x8(%ebx) <== NOT EXECUTED
121167: 89 45 a8 mov %eax,-0x58(%ebp) <== NOT EXECUTED
12116a: ff 53 04 call *0x4(%ebx) <== NOT EXECUTED
{
case RTEMS_BLKIO_REQUEST:
switch (r->req)
{
case RTEMS_BLKDEV_REQ_READ:
errno = rtems_nvdisk_read (&rtems_nvdisks[minor], r);
12116d: 8b 45 a8 mov -0x58(%ebp),%eax <== NOT EXECUTED
121170: 8b 4d b8 mov -0x48(%ebp),%ecx <== NOT EXECUTED
121173: 89 01 mov %eax,(%ecx) <== NOT EXECUTED
121175: e9 06 02 00 00 jmp 121380 <rtems_nvdisk_ioctl+0x441><== NOT EXECUTED
break;
case RTEMS_BLKDEV_REQ_WRITE:
errno = rtems_nvdisk_write (&rtems_nvdisks[minor], r);
12117a: e8 95 ce 01 00 call 13e014 <__errno> <== NOT EXECUTED
12117f: 89 45 b0 mov %eax,-0x50(%ebp) <== NOT EXECUTED
121182: 8b 75 c8 mov -0x38(%ebp),%esi <== NOT EXECUTED
121185: 03 35 10 9b 16 00 add 0x169b10,%esi <== NOT EXECUTED
* @retval int The ioctl return value.
*/
static int
rtems_nvdisk_write (rtems_nvdisk* nvd, rtems_blkdev_request* req)
{
rtems_blkdev_sg_buffer* sg = req->bufs;
12118b: 8d 7b 18 lea 0x18(%ebx),%edi <== NOT EXECUTED
12118e: c7 45 cc 00 00 00 00 movl $0x0,-0x34(%ebp) <== NOT EXECUTED
121195: 89 5d c0 mov %ebx,-0x40(%ebp) <== NOT EXECUTED
121198: e9 14 01 00 00 jmp 1212b1 <rtems_nvdisk_ioctl+0x372><== NOT EXECUTED
for (bufs = 0; (ret == 0) && (bufs < req->bufnum); bufs++, sg++)
{
uint8_t* data;
uint32_t nvb;
uint32_t b;
nvb = sg->length / nvd->block_size;
12119d: 8b 47 04 mov 0x4(%edi),%eax <== NOT EXECUTED
1211a0: 31 d2 xor %edx,%edx <== NOT EXECUTED
1211a2: f7 76 0c divl 0xc(%esi) <== NOT EXECUTED
1211a5: 89 45 bc mov %eax,-0x44(%ebp) <== NOT EXECUTED
data = sg->buffer;
1211a8: 8b 5f 08 mov 0x8(%edi),%ebx <== NOT EXECUTED
1211ab: c7 45 d4 00 00 00 00 movl $0x0,-0x2c(%ebp) <== NOT EXECUTED
1211b2: e9 df 00 00 00 jmp 121296 <rtems_nvdisk_ioctl+0x357><== NOT EXECUTED
for (b = 0; b < nvb; b++, data += nvd->block_size)
{
ret = rtems_nvdisk_write_block (nvd, sg->block + b, data);
1211b7: 8b 4d d4 mov -0x2c(%ebp),%ecx <== NOT EXECUTED
1211ba: 03 0f add (%edi),%ecx <== NOT EXECUTED
rtems_nvdisk_device_ctl* dc;
uint32_t page;
uint16_t cs;
int ret;
dc = rtems_nvdisk_get_device (nvd, block);
1211bc: 89 ca mov %ecx,%edx <== NOT EXECUTED
1211be: 89 f0 mov %esi,%eax <== NOT EXECUTED
1211c0: 89 4d a8 mov %ecx,-0x58(%ebp) <== NOT EXECUTED
1211c3: e8 20 fd ff ff call 120ee8 <rtems_nvdisk_get_device><== NOT EXECUTED
1211c8: 89 c2 mov %eax,%edx <== NOT EXECUTED
if (!dc)
1211ca: 85 c0 test %eax,%eax <== NOT EXECUTED
1211cc: 8b 4d a8 mov -0x58(%ebp),%ecx <== NOT EXECUTED
1211cf: 0f 84 d2 00 00 00 je 1212a7 <rtems_nvdisk_ioctl+0x368><== NOT EXECUTED
*/
static uint32_t
rtems_nvdisk_get_page (rtems_nvdisk_device_ctl* dc,
uint32_t block)
{
return block - dc->block_base;
1211d5: 2b 48 0c sub 0xc(%eax),%ecx <== NOT EXECUTED
1211d8: 89 4d b4 mov %ecx,-0x4c(%ebp) <== NOT EXECUTED
if (!dc)
return EIO;
page = rtems_nvdisk_get_page (dc, block);
cs = rtems_nvdisk_page_checksum (buffer, nvd->block_size);
1211db: 8b 46 0c mov 0xc(%esi),%eax <== NOT EXECUTED
1211de: 89 45 c4 mov %eax,-0x3c(%ebp) <== NOT EXECUTED
{
uint16_t cs = 0xffff;
uint32_t i;
for (i = 0; i < page_size; i++, buffer++)
cs = rtems_nvdisk_calc_crc16 (cs, *buffer);
1211e1: 8b 0d 18 9b 16 00 mov 0x169b18,%ecx <== NOT EXECUTED
1211e7: 89 4d b8 mov %ecx,-0x48(%ebp) <== NOT EXECUTED
1211ea: 66 c7 45 d0 ff ff movw $0xffff,-0x30(%ebp) <== NOT EXECUTED
1211f0: 31 c0 xor %eax,%eax <== NOT EXECUTED
1211f2: 83 c9 ff or $0xffffffff,%ecx <== NOT EXECUTED
1211f5: 89 55 ac mov %edx,-0x54(%ebp) <== NOT EXECUTED
1211f8: eb 0e jmp 121208 <rtems_nvdisk_ioctl+0x2c9><== NOT EXECUTED
1211fa: 32 0c 03 xor (%ebx,%eax,1),%cl <== NOT EXECUTED
1211fd: 0f b6 c9 movzbl %cl,%ecx <== NOT EXECUTED
121200: 8b 55 b8 mov -0x48(%ebp),%edx <== NOT EXECUTED
121203: 66 8b 0c 4a mov (%edx,%ecx,2),%cx <== NOT EXECUTED
rtems_nvdisk_page_checksum (const uint8_t* buffer, uint32_t page_size)
{
uint16_t cs = 0xffff;
uint32_t i;
for (i = 0; i < page_size; i++, buffer++)
121207: 40 inc %eax <== NOT EXECUTED
121208: 3b 45 c4 cmp -0x3c(%ebp),%eax <== NOT EXECUTED
12120b: 72 ed jb 1211fa <rtems_nvdisk_ioctl+0x2bb><== NOT EXECUTED
12120d: 66 89 4d d0 mov %cx,-0x30(%ebp) <== NOT EXECUTED
121211: 8b 55 ac mov -0x54(%ebp),%edx <== NOT EXECUTED
#if RTEMS_NVDISK_TRACE
rtems_nvdisk_info (nvd, " write-block:%d=>%02d-%03d", block, dc->device, page);
#endif
ret = rtems_nvdisk_write_page (nvd, dc->device, page + dc->pages_desc, buffer);
121214: 8b 0a mov (%edx),%ecx <== NOT EXECUTED
121216: 89 4d b8 mov %ecx,-0x48(%ebp) <== NOT EXECUTED
* Get the descriptor for a device.
*/
static const rtems_nvdisk_device_desc*
rtems_nvdisk_device_descriptor (const rtems_nvdisk* nvd, uint32_t device)
{
return nvd->devices[device].descriptor;
121219: 8b 4e 14 mov 0x14(%esi),%ecx <== NOT EXECUTED
12121c: 6b 45 b8 14 imul $0x14,-0x48(%ebp),%eax <== NOT EXECUTED
121220: 8b 44 08 10 mov 0x10(%eax,%ecx,1),%eax <== NOT EXECUTED
ops = nvd->devices[device].descriptor->nv_ops;
#if RTEMS_NVDISK_TRACE
rtems_nvdisk_printf (nvd, " dev-write: %02d-%08x: s=%d",
device, offset, size);
#endif
return ops->write (device, dd->flags, dd->base, offset, buffer, size);
121224: 51 push %ecx <== NOT EXECUTED
121225: 51 push %ecx <== NOT EXECUTED
121226: 8b 48 0c mov 0xc(%eax),%ecx <== NOT EXECUTED
121229: 89 4d ac mov %ecx,-0x54(%ebp) <== NOT EXECUTED
12122c: ff 75 c4 pushl -0x3c(%ebp) <== NOT EXECUTED
12122f: 53 push %ebx <== NOT EXECUTED
121230: 8b 4d b4 mov -0x4c(%ebp),%ecx <== NOT EXECUTED
121233: 03 4a 08 add 0x8(%edx),%ecx <== NOT EXECUTED
121236: 0f af 4d c4 imul -0x3c(%ebp),%ecx <== NOT EXECUTED
12123a: 51 push %ecx <== NOT EXECUTED
12123b: ff 70 04 pushl 0x4(%eax) <== NOT EXECUTED
12123e: ff 30 pushl (%eax) <== NOT EXECUTED
121240: ff 75 b8 pushl -0x48(%ebp) <== NOT EXECUTED
121243: 89 55 a8 mov %edx,-0x58(%ebp) <== NOT EXECUTED
121246: 8b 4d ac mov -0x54(%ebp),%ecx <== NOT EXECUTED
121249: ff 51 04 call *0x4(%ecx) <== NOT EXECUTED
rtems_nvdisk_info (nvd, " write-block:%d=>%02d-%03d", block, dc->device, page);
#endif
ret = rtems_nvdisk_write_page (nvd, dc->device, page + dc->pages_desc, buffer);
if (ret)
12124c: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
12124f: 85 c0 test %eax,%eax <== NOT EXECUTED
121251: 8b 55 a8 mov -0x58(%ebp),%edx <== NOT EXECUTED
121254: 75 51 jne 1212a7 <rtems_nvdisk_ioctl+0x368><== NOT EXECUTED
return ret;
return rtems_nvdisk_write_checksum (nvd, dc->device, page, cs);
121256: 8b 12 mov (%edx),%edx <== NOT EXECUTED
121258: 8b 45 d0 mov -0x30(%ebp),%eax <== NOT EXECUTED
12125b: 66 89 45 e6 mov %ax,-0x1a(%ebp) <== NOT EXECUTED
* Get the descriptor for a device.
*/
static const rtems_nvdisk_device_desc*
rtems_nvdisk_device_descriptor (const rtems_nvdisk* nvd, uint32_t device)
{
return nvd->devices[device].descriptor;
12125f: 8b 46 14 mov 0x14(%esi),%eax <== NOT EXECUTED
121262: 6b ca 14 imul $0x14,%edx,%ecx <== NOT EXECUTED
121265: 8b 44 01 10 mov 0x10(%ecx,%eax,1),%eax <== NOT EXECUTED
ops = nvd->devices[device].descriptor->nv_ops;
#if RTEMS_NVDISK_TRACE
rtems_nvdisk_printf (nvd, " dev-write: %02d-%08x: s=%d",
device, offset, size);
#endif
return ops->write (device, dd->flags, dd->base, offset, buffer, size);
121269: 51 push %ecx <== NOT EXECUTED
12126a: 51 push %ecx <== NOT EXECUTED
12126b: 8b 48 0c mov 0xc(%eax),%ecx <== NOT EXECUTED
12126e: 89 4d d0 mov %ecx,-0x30(%ebp) <== NOT EXECUTED
121271: 6a 02 push $0x2 <== NOT EXECUTED
121273: 8d 4d e6 lea -0x1a(%ebp),%ecx <== NOT EXECUTED
121276: 51 push %ecx <== NOT EXECUTED
121277: 8b 4d b4 mov -0x4c(%ebp),%ecx <== NOT EXECUTED
12127a: d1 e1 shl %ecx <== NOT EXECUTED
12127c: 51 push %ecx <== NOT EXECUTED
12127d: ff 70 04 pushl 0x4(%eax) <== NOT EXECUTED
121280: ff 30 pushl (%eax) <== NOT EXECUTED
121282: 52 push %edx <== NOT EXECUTED
121283: 8b 55 d0 mov -0x30(%ebp),%edx <== NOT EXECUTED
121286: ff 52 04 call *0x4(%edx) <== NOT EXECUTED
nvb = sg->length / nvd->block_size;
data = sg->buffer;
for (b = 0; b < nvb; b++, data += nvd->block_size)
{
ret = rtems_nvdisk_write_block (nvd, sg->block + b, data);
if (ret)
121289: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
12128c: 85 c0 test %eax,%eax <== NOT EXECUTED
12128e: 75 17 jne 1212a7 <rtems_nvdisk_ioctl+0x368><== NOT EXECUTED
uint8_t* data;
uint32_t nvb;
uint32_t b;
nvb = sg->length / nvd->block_size;
data = sg->buffer;
for (b = 0; b < nvb; b++, data += nvd->block_size)
121290: ff 45 d4 incl -0x2c(%ebp) <== NOT EXECUTED
121293: 03 5e 0c add 0xc(%esi),%ebx <== NOT EXECUTED
121296: 8b 4d bc mov -0x44(%ebp),%ecx <== NOT EXECUTED
121299: 39 4d d4 cmp %ecx,-0x2c(%ebp) <== NOT EXECUTED
12129c: 0f 82 15 ff ff ff jb 1211b7 <rtems_nvdisk_ioctl+0x278><== NOT EXECUTED
1212a2: e9 2d 01 00 00 jmp 1213d4 <rtems_nvdisk_ioctl+0x495><== NOT EXECUTED
1212a7: 8b 5d c0 mov -0x40(%ebp),%ebx <== NOT EXECUTED
1212aa: b8 1b 00 00 00 mov $0x1b,%eax <== NOT EXECUTED
1212af: eb 13 jmp 1212c4 <rtems_nvdisk_ioctl+0x385><== NOT EXECUTED
#if RTEMS_NVDISK_TRACE
rtems_nvdisk_info (nvd, "write: blocks=%d", req->bufnum);
#endif
for (bufs = 0; (ret == 0) && (bufs < req->bufnum); bufs++, sg++)
1212b1: 8b 55 cc mov -0x34(%ebp),%edx <== NOT EXECUTED
1212b4: 8b 45 c0 mov -0x40(%ebp),%eax <== NOT EXECUTED
1212b7: 3b 50 10 cmp 0x10(%eax),%edx <== NOT EXECUTED
1212ba: 0f 82 dd fe ff ff jb 12119d <rtems_nvdisk_ioctl+0x25e><== NOT EXECUTED
1212c0: 89 c3 mov %eax,%ebx <== NOT EXECUTED
1212c2: 31 c0 xor %eax,%eax <== NOT EXECUTED
if (ret)
break;
}
}
req->status = ret ? RTEMS_IO_ERROR : RTEMS_SUCCESSFUL;
1212c4: 89 43 0c mov %eax,0xc(%ebx) <== NOT EXECUTED
req->req_done (req->done_arg, req->status);
1212c7: 56 push %esi <== NOT EXECUTED
1212c8: 56 push %esi <== NOT EXECUTED
1212c9: 50 push %eax <== NOT EXECUTED
1212ca: ff 73 08 pushl 0x8(%ebx) <== NOT EXECUTED
1212cd: ff 53 04 call *0x4(%ebx) <== NOT EXECUTED
case RTEMS_BLKDEV_REQ_READ:
errno = rtems_nvdisk_read (&rtems_nvdisks[minor], r);
break;
case RTEMS_BLKDEV_REQ_WRITE:
errno = rtems_nvdisk_write (&rtems_nvdisks[minor], r);
1212d0: 8b 4d b0 mov -0x50(%ebp),%ecx <== NOT EXECUTED
1212d3: c7 01 00 00 00 00 movl $0x0,(%ecx) <== NOT EXECUTED
1212d9: e9 a2 00 00 00 jmp 121380 <rtems_nvdisk_ioctl+0x441><== NOT EXECUTED
break;
default:
errno = EINVAL;
1212de: e8 31 cd 01 00 call 13e014 <__errno> <== NOT EXECUTED
1212e3: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
1212e9: e9 95 00 00 00 jmp 121383 <rtems_nvdisk_ioctl+0x444><== NOT EXECUTED
break;
}
break;
case RTEMS_NVDISK_IOCTL_ERASE_DISK:
errno = rtems_nvdisk_erase_disk (&rtems_nvdisks[minor]);
1212ee: e8 21 cd 01 00 call 13e014 <__errno> <== NOT EXECUTED
1212f3: 89 45 cc mov %eax,-0x34(%ebp) <== NOT EXECUTED
1212f6: 8b 55 c8 mov -0x38(%ebp),%edx <== NOT EXECUTED
1212f9: 03 15 10 9b 16 00 add 0x169b10,%edx <== NOT EXECUTED
1212ff: 31 f6 xor %esi,%esi <== NOT EXECUTED
121301: eb 58 jmp 12135b <rtems_nvdisk_ioctl+0x41c><== NOT EXECUTED
rtems_nvdisk_info (nvd, "erase-disk");
#endif
for (device = 0; device < nvd->device_count; device++)
{
rtems_nvdisk_device_ctl* dc = &nvd->devices[device];
121303: 6b de 14 imul $0x14,%esi,%ebx <== NOT EXECUTED
121306: 03 5a 14 add 0x14(%edx),%ebx <== NOT EXECUTED
121309: 31 ff xor %edi,%edi <== NOT EXECUTED
12130b: eb 43 jmp 121350 <rtems_nvdisk_ioctl+0x411><== NOT EXECUTED
uint32_t page;
for (page = 0; page < (dc->pages - dc->pages_desc); page++)
{
int ret = rtems_nvdisk_write_checksum (nvd, dc->device, page, 0xffff);
12130d: 8b 03 mov (%ebx),%eax <== NOT EXECUTED
12130f: 89 45 d4 mov %eax,-0x2c(%ebp) <== NOT EXECUTED
121312: 66 c7 45 e6 ff ff movw $0xffff,-0x1a(%ebp) <== NOT EXECUTED
* Get the descriptor for a device.
*/
static const rtems_nvdisk_device_desc*
rtems_nvdisk_device_descriptor (const rtems_nvdisk* nvd, uint32_t device)
{
return nvd->devices[device].descriptor;
121318: 8b 4a 14 mov 0x14(%edx),%ecx <== NOT EXECUTED
12131b: 6b c0 14 imul $0x14,%eax,%eax <== NOT EXECUTED
12131e: 8b 44 08 10 mov 0x10(%eax,%ecx,1),%eax <== NOT EXECUTED
ops = nvd->devices[device].descriptor->nv_ops;
#if RTEMS_NVDISK_TRACE
rtems_nvdisk_printf (nvd, " dev-write: %02d-%08x: s=%d",
device, offset, size);
#endif
return ops->write (device, dd->flags, dd->base, offset, buffer, size);
121322: 51 push %ecx <== NOT EXECUTED
121323: 51 push %ecx <== NOT EXECUTED
121324: 8b 48 0c mov 0xc(%eax),%ecx <== NOT EXECUTED
121327: 89 4d d0 mov %ecx,-0x30(%ebp) <== NOT EXECUTED
12132a: 6a 02 push $0x2 <== NOT EXECUTED
12132c: 8d 4d e6 lea -0x1a(%ebp),%ecx <== NOT EXECUTED
12132f: 51 push %ecx <== NOT EXECUTED
121330: 8d 0c 3f lea (%edi,%edi,1),%ecx <== NOT EXECUTED
121333: 51 push %ecx <== NOT EXECUTED
121334: ff 70 04 pushl 0x4(%eax) <== NOT EXECUTED
121337: ff 30 pushl (%eax) <== NOT EXECUTED
121339: ff 75 d4 pushl -0x2c(%ebp) <== NOT EXECUTED
12133c: 89 55 a8 mov %edx,-0x58(%ebp) <== NOT EXECUTED
12133f: 8b 4d d0 mov -0x30(%ebp),%ecx <== NOT EXECUTED
121342: ff 51 04 call *0x4(%ecx) <== NOT EXECUTED
rtems_nvdisk_device_ctl* dc = &nvd->devices[device];
uint32_t page;
for (page = 0; page < (dc->pages - dc->pages_desc); page++)
{
int ret = rtems_nvdisk_write_checksum (nvd, dc->device, page, 0xffff);
if (ret)
121345: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
121348: 85 c0 test %eax,%eax <== NOT EXECUTED
12134a: 8b 55 a8 mov -0x58(%ebp),%edx <== NOT EXECUTED
12134d: 75 13 jne 121362 <rtems_nvdisk_ioctl+0x423><== NOT EXECUTED
for (device = 0; device < nvd->device_count; device++)
{
rtems_nvdisk_device_ctl* dc = &nvd->devices[device];
uint32_t page;
for (page = 0; page < (dc->pages - dc->pages_desc); page++)
12134f: 47 inc %edi <== NOT EXECUTED
121350: 8b 43 04 mov 0x4(%ebx),%eax <== NOT EXECUTED
121353: 2b 43 08 sub 0x8(%ebx),%eax <== NOT EXECUTED
121356: 39 c7 cmp %eax,%edi <== NOT EXECUTED
121358: 72 b3 jb 12130d <rtems_nvdisk_ioctl+0x3ce><== NOT EXECUTED
#if RTEMS_NVDISK_TRACE
rtems_nvdisk_info (nvd, "erase-disk");
#endif
for (device = 0; device < nvd->device_count; device++)
12135a: 46 inc %esi <== NOT EXECUTED
12135b: 3b 72 18 cmp 0x18(%edx),%esi <== NOT EXECUTED
12135e: 72 a3 jb 121303 <rtems_nvdisk_ioctl+0x3c4><== NOT EXECUTED
121360: 31 c0 xor %eax,%eax <== NOT EXECUTED
break;
}
break;
case RTEMS_NVDISK_IOCTL_ERASE_DISK:
errno = rtems_nvdisk_erase_disk (&rtems_nvdisks[minor]);
121362: 8b 55 cc mov -0x34(%ebp),%edx <== NOT EXECUTED
121365: 89 02 mov %eax,(%edx) <== NOT EXECUTED
break;
121367: eb 1a jmp 121383 <rtems_nvdisk_ioctl+0x444><== NOT EXECUTED
case RTEMS_NVDISK_IOCTL_INFO_LEVEL:
rtems_nvdisks[minor].info_level = (uintptr_t) argp;
121369: a1 10 9b 16 00 mov 0x169b10,%eax <== NOT EXECUTED
12136e: 8b 4d c8 mov -0x38(%ebp),%ecx <== NOT EXECUTED
121371: 89 5c 08 24 mov %ebx,0x24(%eax,%ecx,1) <== NOT EXECUTED
break;
121375: eb 0c jmp 121383 <rtems_nvdisk_ioctl+0x444><== NOT EXECUTED
default:
rtems_blkdev_ioctl (dd, req, argp);
121377: 50 push %eax <== NOT EXECUTED
121378: 53 push %ebx <== NOT EXECUTED
121379: 56 push %esi <== NOT EXECUTED
12137a: 57 push %edi <== NOT EXECUTED
12137b: e8 b8 9f fe ff call 10b338 <rtems_blkdev_ioctl> <== NOT EXECUTED
121380: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
break;
}
sc = rtems_semaphore_release (rtems_nvdisks[minor].lock);
121383: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
121386: a1 10 9b 16 00 mov 0x169b10,%eax <== NOT EXECUTED
12138b: 8b 55 c8 mov -0x38(%ebp),%edx <== NOT EXECUTED
12138e: ff 74 10 20 pushl 0x20(%eax,%edx,1) <== NOT EXECUTED
121392: e8 5d f9 fe ff call 110cf4 <rtems_semaphore_release><== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
121397: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12139a: 85 c0 test %eax,%eax <== NOT EXECUTED
12139c: 74 0b je 1213a9 <rtems_nvdisk_ioctl+0x46a><== NOT EXECUTED
errno = EIO;
12139e: e8 71 cc 01 00 call 13e014 <__errno> <== NOT EXECUTED
1213a3: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
}
return errno == 0 ? 0 : -1;
1213a9: e8 66 cc 01 00 call 13e014 <__errno> <== NOT EXECUTED
1213ae: 83 38 01 cmpl $0x1,(%eax) <== NOT EXECUTED
1213b1: 19 c0 sbb %eax,%eax <== NOT EXECUTED
1213b3: f7 d0 not %eax <== NOT EXECUTED
}
1213b5: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1213b8: 5b pop %ebx <== NOT EXECUTED
1213b9: 5e pop %esi <== NOT EXECUTED
1213ba: 5f pop %edi <== NOT EXECUTED
1213bb: c9 leave <== NOT EXECUTED
1213bc: c3 ret <== NOT EXECUTED
uint8_t* data;
uint32_t nvb;
uint32_t b;
nvb = sg->length / nvd->block_size;
data = sg->buffer;
for (b = 0; b < nvb; b++, data += nvd->block_size)
1213bd: ff 45 d0 incl -0x30(%ebp) <== NOT EXECUTED
1213c0: 03 5e 0c add 0xc(%esi),%ebx <== NOT EXECUTED
1213c3: e9 70 fd ff ff jmp 121138 <rtems_nvdisk_ioctl+0x1f9><== NOT EXECUTED
#if RTEMS_NVDISK_TRACE
rtems_nvdisk_info (nvd, "read: blocks=%d", req->bufnum);
#endif
for (bufs = 0; (ret == 0) && (bufs < req->bufnum); bufs++, sg++)
1213c8: ff 45 c0 incl -0x40(%ebp) <== NOT EXECUTED
1213cb: 83 45 cc 10 addl $0x10,-0x34(%ebp) <== NOT EXECUTED
1213cf: e9 75 fd ff ff jmp 121149 <rtems_nvdisk_ioctl+0x20a><== NOT EXECUTED
#if RTEMS_NVDISK_TRACE
rtems_nvdisk_info (nvd, "write: blocks=%d", req->bufnum);
#endif
for (bufs = 0; (ret == 0) && (bufs < req->bufnum); bufs++, sg++)
1213d4: ff 45 cc incl -0x34(%ebp) <== NOT EXECUTED
1213d7: 83 c7 10 add $0x10,%edi <== NOT EXECUTED
1213da: e9 d2 fe ff ff jmp 1212b1 <rtems_nvdisk_ioctl+0x372><== NOT EXECUTED
0012167a <rtems_nvdisk_sram_read>:
uint32_t flags __attribute__((unused)),
void* base,
uint32_t offset,
void* buffer,
size_t size)
{
12167a: 55 push %ebp <== NOT EXECUTED
12167b: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12167d: 57 push %edi <== NOT EXECUTED
12167e: 56 push %esi <== NOT EXECUTED
12167f: 8b 75 14 mov 0x14(%ebp),%esi <== NOT EXECUTED
121682: 8b 45 18 mov 0x18(%ebp),%eax <== NOT EXECUTED
121685: 8b 4d 1c mov 0x1c(%ebp),%ecx <== NOT EXECUTED
memcpy (buffer, (base + offset), size);
121688: 03 75 10 add 0x10(%ebp),%esi <== NOT EXECUTED
12168b: 89 c7 mov %eax,%edi <== NOT EXECUTED
12168d: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
return 0;
}
12168f: 31 c0 xor %eax,%eax <== NOT EXECUTED
121691: 5e pop %esi <== NOT EXECUTED
121692: 5f pop %edi <== NOT EXECUTED
121693: c9 leave <== NOT EXECUTED
121694: c3 ret <== NOT EXECUTED
00121638 <rtems_nvdisk_sram_verify>:
uint32_t flags __attribute__((unused)),
void* base,
uint32_t offset,
const void* buffer,
size_t size)
{
121638: 55 push %ebp <== NOT EXECUTED
121639: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12163b: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12163e: 8b 45 14 mov 0x14(%ebp),%eax <== NOT EXECUTED
return memcmp ((base + offset), buffer, size) == 0 ? 0 : EIO;
121641: 03 45 10 add 0x10(%ebp),%eax <== NOT EXECUTED
121644: ff 75 1c pushl 0x1c(%ebp) <== NOT EXECUTED
121647: ff 75 18 pushl 0x18(%ebp) <== NOT EXECUTED
12164a: 50 push %eax <== NOT EXECUTED
12164b: e8 b8 f9 01 00 call 141008 <memcmp> <== NOT EXECUTED
121650: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
121653: 83 f8 01 cmp $0x1,%eax <== NOT EXECUTED
121656: 19 c0 sbb %eax,%eax <== NOT EXECUTED
121658: f7 d0 not %eax <== NOT EXECUTED
12165a: 83 e0 05 and $0x5,%eax <== NOT EXECUTED
}
12165d: c9 leave <== NOT EXECUTED
12165e: c3 ret <== NOT EXECUTED
0012165f <rtems_nvdisk_sram_write>:
uint32_t flags __attribute__((unused)),
void* base,
uint32_t offset,
const void* buffer,
size_t size)
{
12165f: 55 push %ebp <== NOT EXECUTED
121660: 89 e5 mov %esp,%ebp <== NOT EXECUTED
121662: 57 push %edi <== NOT EXECUTED
121663: 56 push %esi <== NOT EXECUTED
121664: 8b 45 14 mov 0x14(%ebp),%eax <== NOT EXECUTED
121667: 8b 75 18 mov 0x18(%ebp),%esi <== NOT EXECUTED
12166a: 8b 4d 1c mov 0x1c(%ebp),%ecx <== NOT EXECUTED
memcpy ((base + offset), buffer, size);
12166d: 03 45 10 add 0x10(%ebp),%eax <== NOT EXECUTED
121670: 89 c7 mov %eax,%edi <== NOT EXECUTED
121672: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
return 0;
}
121674: 31 c0 xor %eax,%eax <== NOT EXECUTED
121676: 5e pop %esi <== NOT EXECUTED
121677: 5f pop %edi <== NOT EXECUTED
121678: c9 leave <== NOT EXECUTED
121679: c3 ret <== NOT EXECUTED
0010b69b <rtems_panic>:
void rtems_panic(
const char *printf_format,
...
)
{
10b69b: 55 push %ebp <== NOT EXECUTED
10b69c: 89 e5 mov %esp,%ebp <== NOT EXECUTED
10b69e: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
/*
* rtems_panic is shorthand for rtems_error(RTEMS_ERROR_PANIC, ...)
*/
void rtems_panic(
10b6a1: 8d 4d 0c lea 0xc(%ebp),%ecx <== NOT EXECUTED
)
{
va_list arglist;
va_start(arglist, printf_format);
(void) rtems_verror(RTEMS_ERROR_PANIC, printf_format, arglist);
10b6a4: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
10b6a7: b8 00 00 00 20 mov $0x20000000,%eax <== NOT EXECUTED
10b6ac: e8 80 fe ff ff call 10b531 <rtems_verror> <== NOT EXECUTED
va_end(arglist);
}
10b6b1: c9 leave <== NOT EXECUTED
10b6b2: c3 ret <== NOT EXECUTED
00114edc <rtems_partition_create>:
uint32_t length,
uint32_t buffer_size,
rtems_attribute attribute_set,
rtems_id *id
)
{
114edc: 55 push %ebp
114edd: 89 e5 mov %esp,%ebp
114edf: 57 push %edi
114ee0: 56 push %esi
114ee1: 53 push %ebx
114ee2: 83 ec 1c sub $0x1c,%esp
114ee5: 8b 75 0c mov 0xc(%ebp),%esi
114ee8: 8b 55 10 mov 0x10(%ebp),%edx
114eeb: 8b 7d 14 mov 0x14(%ebp),%edi
register Partition_Control *the_partition;
if ( !rtems_is_name_valid( name ) )
114eee: b8 03 00 00 00 mov $0x3,%eax
114ef3: 83 7d 08 00 cmpl $0x0,0x8(%ebp)
114ef7: 0f 84 cf 00 00 00 je 114fcc <rtems_partition_create+0xf0>
return RTEMS_INVALID_NAME;
if ( !starting_address )
114efd: 85 f6 test %esi,%esi
114eff: 0f 84 bb 00 00 00 je 114fc0 <rtems_partition_create+0xe4>
return RTEMS_INVALID_ADDRESS;
if ( !id )
114f05: 83 7d 1c 00 cmpl $0x0,0x1c(%ebp)
114f09: 0f 84 b1 00 00 00 je 114fc0 <rtems_partition_create+0xe4><== NEVER TAKEN
return RTEMS_INVALID_ADDRESS;
if ( length == 0 || buffer_size == 0 || length < buffer_size ||
114f0f: 85 ff test %edi,%edi
114f11: 0f 84 b0 00 00 00 je 114fc7 <rtems_partition_create+0xeb>
114f17: 85 d2 test %edx,%edx
114f19: 0f 84 a8 00 00 00 je 114fc7 <rtems_partition_create+0xeb>
114f1f: 39 fa cmp %edi,%edx
114f21: 0f 82 a0 00 00 00 jb 114fc7 <rtems_partition_create+0xeb>
114f27: f7 c7 03 00 00 00 test $0x3,%edi
114f2d: 0f 85 94 00 00 00 jne 114fc7 <rtems_partition_create+0xeb>
!_Partition_Is_buffer_size_aligned( buffer_size ) )
return RTEMS_INVALID_SIZE;
if ( !_Addresses_Is_aligned( starting_address ) )
114f33: f7 c6 03 00 00 00 test $0x3,%esi
114f39: 0f 85 81 00 00 00 jne 114fc0 <rtems_partition_create+0xe4>
114f3f: a1 dc f5 13 00 mov 0x13f5dc,%eax
114f44: 40 inc %eax
114f45: a3 dc f5 13 00 mov %eax,0x13f5dc
* 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 );
114f4a: 83 ec 0c sub $0xc,%esp
114f4d: 68 64 f4 13 00 push $0x13f464
114f52: 89 55 e4 mov %edx,-0x1c(%ebp)
114f55: e8 8a 3c 00 00 call 118be4 <_Objects_Allocate>
114f5a: 89 c3 mov %eax,%ebx
_Thread_Disable_dispatch(); /* prevents deletion */
the_partition = _Partition_Allocate();
if ( !the_partition ) {
114f5c: 83 c4 10 add $0x10,%esp
114f5f: 85 c0 test %eax,%eax
114f61: 8b 55 e4 mov -0x1c(%ebp),%edx
114f64: 75 0c jne 114f72 <rtems_partition_create+0x96>
_Thread_Enable_dispatch();
114f66: e8 2e 49 00 00 call 119899 <_Thread_Enable_dispatch>
114f6b: b8 05 00 00 00 mov $0x5,%eax
return RTEMS_TOO_MANY;
114f70: eb 5a jmp 114fcc <rtems_partition_create+0xf0>
_Thread_Enable_dispatch();
return RTEMS_TOO_MANY;
}
#endif
the_partition->starting_address = starting_address;
114f72: 89 70 10 mov %esi,0x10(%eax)
the_partition->length = length;
114f75: 89 50 14 mov %edx,0x14(%eax)
the_partition->buffer_size = buffer_size;
114f78: 89 78 18 mov %edi,0x18(%eax)
the_partition->attribute_set = attribute_set;
114f7b: 8b 45 18 mov 0x18(%ebp),%eax
114f7e: 89 43 1c mov %eax,0x1c(%ebx)
the_partition->number_of_used_blocks = 0;
114f81: c7 43 20 00 00 00 00 movl $0x0,0x20(%ebx)
_Chain_Initialize( &the_partition->Memory, starting_address,
114f88: 57 push %edi
114f89: 89 d0 mov %edx,%eax
114f8b: 31 d2 xor %edx,%edx
114f8d: f7 f7 div %edi
114f8f: 50 push %eax
114f90: 56 push %esi
114f91: 8d 43 24 lea 0x24(%ebx),%eax
114f94: 50 push %eax
114f95: e8 8a 2a 00 00 call 117a24 <_Chain_Initialize>
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
114f9a: 8b 43 08 mov 0x8(%ebx),%eax
114f9d: 0f b7 c8 movzwl %ax,%ecx
114fa0: 8b 15 80 f4 13 00 mov 0x13f480,%edx
114fa6: 89 1c 8a mov %ebx,(%edx,%ecx,4)
information,
_Objects_Get_index( the_object->id ),
the_object
);
the_object->name = name;
114fa9: 8b 55 08 mov 0x8(%ebp),%edx
114fac: 89 53 0c mov %edx,0xc(%ebx)
&_Partition_Information,
&the_partition->Object,
(Objects_Name) name
);
*id = the_partition->Object.id;
114faf: 8b 55 1c mov 0x1c(%ebp),%edx
114fb2: 89 02 mov %eax,(%edx)
name,
0 /* Not used */
);
#endif
_Thread_Enable_dispatch();
114fb4: e8 e0 48 00 00 call 119899 <_Thread_Enable_dispatch>
114fb9: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
114fbb: 83 c4 10 add $0x10,%esp
114fbe: eb 0c jmp 114fcc <rtems_partition_create+0xf0>
114fc0: b8 09 00 00 00 mov $0x9,%eax
114fc5: eb 05 jmp 114fcc <rtems_partition_create+0xf0>
114fc7: b8 08 00 00 00 mov $0x8,%eax
}
114fcc: 8d 65 f4 lea -0xc(%ebp),%esp
114fcf: 5b pop %ebx
114fd0: 5e pop %esi
114fd1: 5f pop %edi
114fd2: c9 leave
114fd3: c3 ret
00114fd4 <rtems_partition_delete>:
*/
rtems_status_code rtems_partition_delete(
rtems_id id
)
{
114fd4: 55 push %ebp
114fd5: 89 e5 mov %esp,%ebp
114fd7: 53 push %ebx
114fd8: 83 ec 18 sub $0x18,%esp
RTEMS_INLINE_ROUTINE Partition_Control *_Partition_Get (
Objects_Id id,
Objects_Locations *location
)
{
return (Partition_Control *)
114fdb: 8d 45 f4 lea -0xc(%ebp),%eax
114fde: 50 push %eax
114fdf: ff 75 08 pushl 0x8(%ebp)
114fe2: 68 64 f4 13 00 push $0x13f464
114fe7: e8 48 40 00 00 call 119034 <_Objects_Get>
114fec: 89 c3 mov %eax,%ebx
register Partition_Control *the_partition;
Objects_Locations location;
the_partition = _Partition_Get( id, &location );
switch ( location ) {
114fee: 83 c4 10 add $0x10,%esp
114ff1: b8 04 00 00 00 mov $0x4,%eax
114ff6: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
114ffa: 75 36 jne 115032 <rtems_partition_delete+0x5e><== NEVER TAKEN
case OBJECTS_LOCAL:
if ( the_partition->number_of_used_blocks == 0 ) {
114ffc: 83 7b 20 00 cmpl $0x0,0x20(%ebx)
115000: 75 26 jne 115028 <rtems_partition_delete+0x54>
_Objects_Close( &_Partition_Information, &the_partition->Object );
115002: 51 push %ecx
115003: 51 push %ecx
115004: 53 push %ebx
115005: 68 64 f4 13 00 push $0x13f464
11500a: e8 41 3c 00 00 call 118c50 <_Objects_Close>
*/
RTEMS_INLINE_ROUTINE void _Partition_Free (
Partition_Control *the_partition
)
{
_Objects_Free( &_Partition_Information, &the_partition->Object );
11500f: 58 pop %eax
115010: 5a pop %edx
115011: 53 push %ebx
115012: 68 64 f4 13 00 push $0x13f464
115017: e8 b4 3e 00 00 call 118ed0 <_Objects_Free>
0 /* Not used */
);
}
#endif
_Thread_Enable_dispatch();
11501c: e8 78 48 00 00 call 119899 <_Thread_Enable_dispatch>
115021: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
115023: 83 c4 10 add $0x10,%esp
115026: eb 0a jmp 115032 <rtems_partition_delete+0x5e>
}
_Thread_Enable_dispatch();
115028: e8 6c 48 00 00 call 119899 <_Thread_Enable_dispatch>
11502d: b8 0c 00 00 00 mov $0xc,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
115032: 8b 5d fc mov -0x4(%ebp),%ebx
115035: c9 leave
115036: c3 ret
0010d73a <rtems_pipe_initialize>:
/*
* Initialization of FIFO/pipe module.
*/
void rtems_pipe_initialize (void)
{
10d73a: 55 push %ebp
10d73b: 89 e5 mov %esp,%ebp
10d73d: 83 ec 08 sub $0x8,%esp
if (!rtems_pipe_configured)
10d740: 80 3d 2c 45 12 00 00 cmpb $0x0,0x12452c
10d747: 74 3c je 10d785 <rtems_pipe_initialize+0x4b><== ALWAYS TAKEN
return;
if (rtems_pipe_semaphore)
10d749: 83 3d b8 5e 12 00 00 cmpl $0x0,0x125eb8 <== NOT EXECUTED
10d750: 75 33 jne 10d785 <rtems_pipe_initialize+0x4b><== NOT EXECUTED
return;
rtems_status_code sc;
sc = rtems_semaphore_create(
10d752: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10d755: 68 b8 5e 12 00 push $0x125eb8 <== NOT EXECUTED
10d75a: 6a 00 push $0x0 <== NOT EXECUTED
10d75c: 6a 54 push $0x54 <== NOT EXECUTED
10d75e: 6a 01 push $0x1 <== NOT EXECUTED
10d760: 68 45 50 49 50 push $0x50495045 <== NOT EXECUTED
10d765: e8 62 cc ff ff call 10a3cc <rtems_semaphore_create><== NOT EXECUTED
rtems_build_name ('P', 'I', 'P', 'E'), 1,
RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY,
RTEMS_NO_PRIORITY, &rtems_pipe_semaphore);
if (sc != RTEMS_SUCCESSFUL)
10d76a: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
10d76d: 85 c0 test %eax,%eax <== NOT EXECUTED
10d76f: 74 09 je 10d77a <rtems_pipe_initialize+0x40><== NOT EXECUTED
rtems_fatal_error_occurred (sc);
10d771: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10d774: 50 push %eax <== NOT EXECUTED
10d775: e8 16 d4 ff ff call 10ab90 <rtems_fatal_error_occurred><== NOT EXECUTED
rtems_interval now;
now = rtems_clock_get_ticks_since_boot();
10d77a: e8 4d c8 ff ff call 109fcc <rtems_clock_get_ticks_since_boot><== NOT EXECUTED
rtems_pipe_no = now;
10d77f: 66 a3 c0 5e 12 00 mov %ax,0x125ec0 <== NOT EXECUTED
}
10d785: c9 leave
10d786: c3 ret
0013b80d <rtems_rate_monotonic_period>:
rtems_status_code rtems_rate_monotonic_period(
rtems_id id,
rtems_interval length
)
{
13b80d: 55 push %ebp
13b80e: 89 e5 mov %esp,%ebp
13b810: 57 push %edi
13b811: 56 push %esi
13b812: 53 push %ebx
13b813: 83 ec 30 sub $0x30,%esp
13b816: 8b 75 08 mov 0x8(%ebp),%esi
13b819: 8b 5d 0c mov 0xc(%ebp),%ebx
13b81c: 8d 45 e4 lea -0x1c(%ebp),%eax
13b81f: 50 push %eax
13b820: 56 push %esi
13b821: 68 24 ac 16 00 push $0x16ac24
13b826: e8 dd 6e fd ff call 112708 <_Objects_Get>
13b82b: 89 c7 mov %eax,%edi
rtems_rate_monotonic_period_states local_state;
ISR_Level level;
the_period = _Rate_monotonic_Get( id, &location );
switch ( location ) {
13b82d: 83 c4 10 add $0x10,%esp
13b830: 83 7d e4 00 cmpl $0x0,-0x1c(%ebp)
13b834: 0f 85 40 01 00 00 jne 13b97a <rtems_rate_monotonic_period+0x16d>
case OBJECTS_LOCAL:
if ( !_Thread_Is_executing( the_period->owner ) ) {
13b83a: 8b 40 40 mov 0x40(%eax),%eax
13b83d: 3b 05 e0 a1 16 00 cmp 0x16a1e0,%eax
13b843: 74 0f je 13b854 <rtems_rate_monotonic_period+0x47>
_Thread_Enable_dispatch();
13b845: e8 5f 77 fd ff call 112fa9 <_Thread_Enable_dispatch>
13b84a: bb 17 00 00 00 mov $0x17,%ebx
return RTEMS_NOT_OWNER_OF_RESOURCE;
13b84f: e9 2b 01 00 00 jmp 13b97f <rtems_rate_monotonic_period+0x172>
}
if ( length == RTEMS_PERIOD_STATUS ) {
13b854: 85 db test %ebx,%ebx
13b856: 75 19 jne 13b871 <rtems_rate_monotonic_period+0x64>
switch ( the_period->state ) {
13b858: 8b 47 38 mov 0x38(%edi),%eax
13b85b: 83 f8 04 cmp $0x4,%eax
13b85e: 77 07 ja 13b867 <rtems_rate_monotonic_period+0x5a><== NEVER TAKEN
13b860: 8b 1c 85 18 ed 15 00 mov 0x15ed18(,%eax,4),%ebx
case RATE_MONOTONIC_ACTIVE:
default: /* unreached -- only to remove warnings */
return_value = RTEMS_SUCCESSFUL;
break;
}
_Thread_Enable_dispatch();
13b867: e8 3d 77 fd ff call 112fa9 <_Thread_Enable_dispatch>
return( return_value );
13b86c: e9 0e 01 00 00 jmp 13b97f <rtems_rate_monotonic_period+0x172>
}
_ISR_Disable( level );
13b871: 9c pushf
13b872: fa cli
13b873: 8f 45 d4 popl -0x2c(%ebp)
switch ( the_period->state ) {
13b876: 8b 47 38 mov 0x38(%edi),%eax
13b879: 83 f8 02 cmp $0x2,%eax
13b87c: 74 5f je 13b8dd <rtems_rate_monotonic_period+0xd0>
13b87e: 83 f8 04 cmp $0x4,%eax
13b881: 0f 84 ba 00 00 00 je 13b941 <rtems_rate_monotonic_period+0x134>
13b887: 85 c0 test %eax,%eax
13b889: 0f 85 eb 00 00 00 jne 13b97a <rtems_rate_monotonic_period+0x16d><== NEVER TAKEN
case RATE_MONOTONIC_INACTIVE: {
_ISR_Enable( level );
13b88f: ff 75 d4 pushl -0x2c(%ebp)
13b892: 9d popf
/*
* Baseline statistics information for the beginning of a period.
*/
_Rate_monotonic_Initiate_statistics( the_period );
13b893: 83 ec 0c sub $0xc,%esp
13b896: 57 push %edi
13b897: e8 9c fd ff ff call 13b638 <_Rate_monotonic_Initiate_statistics>
the_period->state = RATE_MONOTONIC_ACTIVE;
13b89c: 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;
13b8a3: c7 47 18 00 00 00 00 movl $0x0,0x18(%edi)
the_watchdog->routine = routine;
13b8aa: c7 47 2c 8c b9 13 00 movl $0x13b98c,0x2c(%edi)
the_watchdog->id = id;
13b8b1: 89 77 30 mov %esi,0x30(%edi)
the_watchdog->user_data = user_data;
13b8b4: c7 47 34 00 00 00 00 movl $0x0,0x34(%edi)
_Rate_monotonic_Timeout,
id,
NULL
);
the_period->next_length = length;
13b8bb: 89 5f 3c mov %ebx,0x3c(%edi)
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
13b8be: 89 5f 1c mov %ebx,0x1c(%edi)
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
13b8c1: 5b pop %ebx
13b8c2: 5e pop %esi
13b8c3: 83 c7 10 add $0x10,%edi
13b8c6: 57 push %edi
13b8c7: 68 00 a2 16 00 push $0x16a200
13b8cc: e8 d7 84 fd ff call 113da8 <_Watchdog_Insert>
_Watchdog_Insert_ticks( &the_period->Timer, length );
_Thread_Enable_dispatch();
13b8d1: e8 d3 76 fd ff call 112fa9 <_Thread_Enable_dispatch>
13b8d6: 31 db xor %ebx,%ebx
13b8d8: e9 98 00 00 00 jmp 13b975 <rtems_rate_monotonic_period+0x168>
case RATE_MONOTONIC_ACTIVE:
/*
* Update statistics from the concluding period.
*/
_Rate_monotonic_Update_statistics( the_period );
13b8dd: 83 ec 0c sub $0xc,%esp
13b8e0: 57 push %edi
13b8e1: e8 4c fe ff ff call 13b732 <_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;
13b8e6: c7 47 38 01 00 00 00 movl $0x1,0x38(%edi)
the_period->next_length = length;
13b8ed: 89 5f 3c mov %ebx,0x3c(%edi)
_ISR_Enable( level );
13b8f0: ff 75 d4 pushl -0x2c(%ebp)
13b8f3: 9d popf
_Thread_Executing->Wait.id = the_period->Object.id;
13b8f4: a1 e0 a1 16 00 mov 0x16a1e0,%eax
13b8f9: 8b 57 08 mov 0x8(%edi),%edx
13b8fc: 89 50 20 mov %edx,0x20(%eax)
_Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD );
13b8ff: 5a pop %edx
13b900: 59 pop %ecx
13b901: 68 00 40 00 00 push $0x4000
13b906: 50 push %eax
13b907: e8 cc 7e fd ff call 1137d8 <_Thread_Set_state>
/*
* Did the watchdog timer expire while we were actually blocking
* on it?
*/
_ISR_Disable( level );
13b90c: 9c pushf
13b90d: fa cli
13b90e: 5a pop %edx
local_state = the_period->state;
13b90f: 8b 47 38 mov 0x38(%edi),%eax
the_period->state = RATE_MONOTONIC_ACTIVE;
13b912: c7 47 38 02 00 00 00 movl $0x2,0x38(%edi)
_ISR_Enable( level );
13b919: 52 push %edx
13b91a: 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 )
13b91b: 83 c4 10 add $0x10,%esp
13b91e: 83 f8 03 cmp $0x3,%eax
13b921: 75 15 jne 13b938 <rtems_rate_monotonic_period+0x12b>
_Thread_Clear_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD );
13b923: 56 push %esi
13b924: 56 push %esi
13b925: 68 00 40 00 00 push $0x4000
13b92a: ff 35 e0 a1 16 00 pushl 0x16a1e0
13b930: e8 f7 72 fd ff call 112c2c <_Thread_Clear_state>
13b935: 83 c4 10 add $0x10,%esp
_Thread_Enable_dispatch();
13b938: e8 6c 76 fd ff call 112fa9 <_Thread_Enable_dispatch>
13b93d: 31 db xor %ebx,%ebx
return RTEMS_SUCCESSFUL;
13b93f: eb 3e jmp 13b97f <rtems_rate_monotonic_period+0x172>
case RATE_MONOTONIC_EXPIRED:
/*
* Update statistics from the concluding period
*/
_Rate_monotonic_Update_statistics( the_period );
13b941: 83 ec 0c sub $0xc,%esp
13b944: 57 push %edi
13b945: e8 e8 fd ff ff call 13b732 <_Rate_monotonic_Update_statistics>
_ISR_Enable( level );
13b94a: ff 75 d4 pushl -0x2c(%ebp)
13b94d: 9d popf
the_period->state = RATE_MONOTONIC_ACTIVE;
13b94e: c7 47 38 02 00 00 00 movl $0x2,0x38(%edi)
the_period->next_length = length;
13b955: 89 5f 3c mov %ebx,0x3c(%edi)
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
13b958: 89 5f 1c mov %ebx,0x1c(%edi)
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
13b95b: 59 pop %ecx
13b95c: 5b pop %ebx
13b95d: 83 c7 10 add $0x10,%edi
13b960: 57 push %edi
13b961: 68 00 a2 16 00 push $0x16a200
13b966: e8 3d 84 fd ff call 113da8 <_Watchdog_Insert>
_Watchdog_Insert_ticks( &the_period->Timer, length );
_Thread_Enable_dispatch();
13b96b: e8 39 76 fd ff call 112fa9 <_Thread_Enable_dispatch>
13b970: bb 06 00 00 00 mov $0x6,%ebx
return RTEMS_TIMEOUT;
13b975: 83 c4 10 add $0x10,%esp
13b978: eb 05 jmp 13b97f <rtems_rate_monotonic_period+0x172>
13b97a: bb 04 00 00 00 mov $0x4,%ebx
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
13b97f: 89 d8 mov %ebx,%eax
13b981: 8d 65 f4 lea -0xc(%ebp),%esp
13b984: 5b pop %ebx
13b985: 5e pop %esi
13b986: 5f pop %edi
13b987: c9 leave
13b988: c3 ret
0012a5dc <rtems_rate_monotonic_report_statistics_with_plugin>:
*/
void rtems_rate_monotonic_report_statistics_with_plugin(
void *context,
rtems_printk_plugin_t print
)
{
12a5dc: 55 push %ebp
12a5dd: 89 e5 mov %esp,%ebp
12a5df: 57 push %edi
12a5e0: 56 push %esi
12a5e1: 53 push %ebx
12a5e2: 83 ec 7c sub $0x7c,%esp
12a5e5: 8b 5d 08 mov 0x8(%ebp),%ebx
12a5e8: 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 )
12a5eb: 85 ff test %edi,%edi
12a5ed: 0f 84 2b 01 00 00 je 12a71e <rtems_rate_monotonic_report_statistics_with_plugin+0x142><== NEVER TAKEN
return;
(*print)( context, "Period information by period\n" );
12a5f3: 52 push %edx
12a5f4: 52 push %edx
12a5f5: 68 88 b4 15 00 push $0x15b488
12a5fa: 53 push %ebx
12a5fb: ff d7 call *%edi
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
(*print)( context, "--- CPU times are in seconds ---\n" );
12a5fd: 5e pop %esi
12a5fe: 58 pop %eax
12a5ff: 68 a6 b4 15 00 push $0x15b4a6
12a604: 53 push %ebx
12a605: ff d7 call *%edi
(*print)( context, "--- Wall times are in seconds ---\n" );
12a607: 5a pop %edx
12a608: 59 pop %ecx
12a609: 68 c8 b4 15 00 push $0x15b4c8
12a60e: 53 push %ebx
12a60f: ff d7 call *%edi
Be sure to test the various cases.
(*print)( context,"\
1234567890123456789012345678901234567890123456789012345678901234567890123456789\
\n");
*/
(*print)( context, " ID OWNER COUNT MISSED "
12a611: 5e pop %esi
12a612: 58 pop %eax
12a613: 68 eb b4 15 00 push $0x15b4eb
12a618: 53 push %ebx
12a619: ff d7 call *%edi
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
" "
#endif
" WALL TIME\n"
);
(*print)( context, " "
12a61b: 5a pop %edx
12a61c: 59 pop %ecx
12a61d: 68 36 b5 15 00 push $0x15b536
12a622: 53 push %ebx
12a623: 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 ;
12a625: 8b 35 2c ac 16 00 mov 0x16ac2c,%esi
12a62b: 83 c4 10 add $0x10,%esp
12a62e: e9 df 00 00 00 jmp 12a712 <rtems_rate_monotonic_report_statistics_with_plugin+0x136>
id <= _Rate_monotonic_Information.maximum_id ;
id++ ) {
status = rtems_rate_monotonic_get_statistics( id, &the_stats );
12a633: 50 push %eax
12a634: 50 push %eax
12a635: 8d 45 88 lea -0x78(%ebp),%eax
12a638: 50 push %eax
12a639: 56 push %esi
12a63a: e8 a5 0e 01 00 call 13b4e4 <rtems_rate_monotonic_get_statistics>
if ( status != RTEMS_SUCCESSFUL )
12a63f: 83 c4 10 add $0x10,%esp
12a642: 85 c0 test %eax,%eax
12a644: 0f 85 c7 00 00 00 jne 12a711 <rtems_rate_monotonic_report_statistics_with_plugin+0x135>
continue;
/* If the above passed, so should this but check it anyway */
status = rtems_rate_monotonic_get_status( id, &the_status );
12a64a: 51 push %ecx
12a64b: 51 push %ecx
12a64c: 8d 55 c0 lea -0x40(%ebp),%edx
12a64f: 52 push %edx
12a650: 56 push %esi
12a651: e8 32 0f 01 00 call 13b588 <rtems_rate_monotonic_get_status>
#if defined(RTEMS_DEBUG)
if ( status != RTEMS_SUCCESSFUL )
continue;
#endif
rtems_object_get_name( the_status.owner, sizeof(name), name );
12a656: 83 c4 0c add $0xc,%esp
12a659: 8d 45 e3 lea -0x1d(%ebp),%eax
12a65c: 50 push %eax
12a65d: 6a 05 push $0x5
12a65f: ff 75 c0 pushl -0x40(%ebp)
12a662: e8 15 63 fe ff call 11097c <rtems_object_get_name>
/*
* Print part of report line that is not dependent on granularity
*/
(*print)( context,
12a667: 58 pop %eax
12a668: 5a pop %edx
12a669: ff 75 8c pushl -0x74(%ebp)
12a66c: ff 75 88 pushl -0x78(%ebp)
12a66f: 8d 55 e3 lea -0x1d(%ebp),%edx
12a672: 52 push %edx
12a673: 56 push %esi
12a674: 68 82 b5 15 00 push $0x15b582
12a679: 53 push %ebx
12a67a: ff d7 call *%edi
);
/*
* If the count is zero, don't print statistics
*/
if (the_stats.count == 0) {
12a67c: 8b 45 88 mov -0x78(%ebp),%eax
12a67f: 83 c4 20 add $0x20,%esp
12a682: 85 c0 test %eax,%eax
12a684: 75 0f jne 12a695 <rtems_rate_monotonic_report_statistics_with_plugin+0xb9>
(*print)( context, "\n" );
12a686: 51 push %ecx
12a687: 51 push %ecx
12a688: 68 45 cf 15 00 push $0x15cf45
12a68d: 53 push %ebx
12a68e: ff d7 call *%edi
continue;
12a690: 83 c4 10 add $0x10,%esp
12a693: eb 7c jmp 12a711 <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 );
12a695: 52 push %edx
12a696: 8d 55 d8 lea -0x28(%ebp),%edx
12a699: 52 push %edx
12a69a: 50 push %eax
12a69b: 8d 45 a0 lea -0x60(%ebp),%eax
12a69e: 50 push %eax
12a69f: e8 3c 12 00 00 call 12b8e0 <_Timespec_Divide_by_integer>
(*print)( context,
12a6a4: 8b 45 dc mov -0x24(%ebp),%eax
12a6a7: b9 e8 03 00 00 mov $0x3e8,%ecx
12a6ac: 99 cltd
12a6ad: f7 f9 idiv %ecx
12a6af: 50 push %eax
12a6b0: ff 75 d8 pushl -0x28(%ebp)
12a6b3: 8b 45 9c mov -0x64(%ebp),%eax
12a6b6: 99 cltd
12a6b7: f7 f9 idiv %ecx
12a6b9: 50 push %eax
12a6ba: ff 75 98 pushl -0x68(%ebp)
12a6bd: 8b 45 94 mov -0x6c(%ebp),%eax
12a6c0: 99 cltd
12a6c1: f7 f9 idiv %ecx
12a6c3: 50 push %eax
12a6c4: ff 75 90 pushl -0x70(%ebp)
12a6c7: 68 99 b5 15 00 push $0x15b599
12a6cc: 53 push %ebx
12a6cd: 89 4d 84 mov %ecx,-0x7c(%ebp)
12a6d0: 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);
12a6d2: 83 c4 2c add $0x2c,%esp
12a6d5: 8d 55 d8 lea -0x28(%ebp),%edx
12a6d8: 52 push %edx
12a6d9: ff 75 88 pushl -0x78(%ebp)
12a6dc: 8d 45 b8 lea -0x48(%ebp),%eax
12a6df: 50 push %eax
12a6e0: e8 fb 11 00 00 call 12b8e0 <_Timespec_Divide_by_integer>
(*print)( context,
12a6e5: 8b 45 dc mov -0x24(%ebp),%eax
12a6e8: 8b 4d 84 mov -0x7c(%ebp),%ecx
12a6eb: 99 cltd
12a6ec: f7 f9 idiv %ecx
12a6ee: 50 push %eax
12a6ef: ff 75 d8 pushl -0x28(%ebp)
12a6f2: 8b 45 b4 mov -0x4c(%ebp),%eax
12a6f5: 99 cltd
12a6f6: f7 f9 idiv %ecx
12a6f8: 50 push %eax
12a6f9: ff 75 b0 pushl -0x50(%ebp)
12a6fc: 8b 45 ac mov -0x54(%ebp),%eax
12a6ff: 99 cltd
12a700: f7 f9 idiv %ecx
12a702: 50 push %eax
12a703: ff 75 a8 pushl -0x58(%ebp)
12a706: 68 b8 b5 15 00 push $0x15b5b8
12a70b: 53 push %ebx
12a70c: ff d7 call *%edi
12a70e: 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++ ) {
12a711: 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 ;
12a712: 3b 35 30 ac 16 00 cmp 0x16ac30,%esi
12a718: 0f 86 15 ff ff ff jbe 12a633 <rtems_rate_monotonic_report_statistics_with_plugin+0x57>
the_stats.min_wall_time, the_stats.max_wall_time, ival_wall, fval_wall
);
#endif
}
}
}
12a71e: 8d 65 f4 lea -0xc(%ebp),%esp
12a721: 5b pop %ebx
12a722: 5e pop %esi
12a723: 5f pop %edi
12a724: c9 leave
12a725: c3 ret
0013d2b1 <rtems_rfs_bitmap_close>:
return rtems_rfs_bitmap_create_search (control);
}
int
rtems_rfs_bitmap_close (rtems_rfs_bitmap_control* control)
{
13d2b1: 55 push %ebp <== NOT EXECUTED
13d2b2: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13d2b4: 83 ec 14 sub $0x14,%esp <== NOT EXECUTED
free (control->search_bits);
13d2b7: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
13d2ba: ff 70 14 pushl 0x14(%eax) <== NOT EXECUTED
13d2bd: e8 da fb fc ff call 10ce9c <free> <== NOT EXECUTED
return 0;
}
13d2c2: 31 c0 xor %eax,%eax <== NOT EXECUTED
13d2c4: c9 leave <== NOT EXECUTED
13d2c5: c3 ret <== NOT EXECUTED
0013d306 <rtems_rfs_bitmap_create_search>:
return 0;
}
int
rtems_rfs_bitmap_create_search (rtems_rfs_bitmap_control* control)
{
13d306: 55 push %ebp <== NOT EXECUTED
13d307: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13d309: 57 push %edi <== NOT EXECUTED
13d30a: 56 push %esi <== NOT EXECUTED
13d30b: 53 push %ebx <== NOT EXECUTED
13d30c: 83 ec 4c sub $0x4c,%esp <== NOT EXECUTED
13d30f: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
rtems_rfs_bitmap_map map;
size_t size;
rtems_rfs_bitmap_bit bit;
int rc;
rc = rtems_rfs_bitmap_load_map (control, &map);
13d312: 8d 55 e4 lea -0x1c(%ebp),%edx <== NOT EXECUTED
13d315: 89 d8 mov %ebx,%eax <== NOT EXECUTED
13d317: e8 aa ff ff ff call 13d2c6 <rtems_rfs_bitmap_load_map><== NOT EXECUTED
if (rc > 0)
13d31c: 85 c0 test %eax,%eax <== NOT EXECUTED
13d31e: 0f 8f 94 00 00 00 jg 13d3b8 <rtems_rfs_bitmap_create_search+0xb2><== NOT EXECUTED
return rc;
control->free = 0;
13d324: c7 43 10 00 00 00 00 movl $0x0,0x10(%ebx) <== NOT EXECUTED
search_map = control->search_bits;
13d32b: 8b 73 14 mov 0x14(%ebx),%esi <== NOT EXECUTED
size = control->size;
13d32e: 8b 53 0c mov 0xc(%ebx),%edx <== NOT EXECUTED
bit = 0;
*search_map = RTEMS_RFS_BITMAP_ELEMENT_CLEAR;
13d331: c7 06 ff ff ff ff movl $0xffffffff,(%esi) <== NOT EXECUTED
13d337: 8b 7d e4 mov -0x1c(%ebp),%edi <== NOT EXECUTED
13d33a: c7 45 d0 00 00 00 00 movl $0x0,-0x30(%ebp) <== NOT EXECUTED
while (size)
13d341: eb 6f jmp 13d3b2 <rtems_rfs_bitmap_create_search+0xac><== NOT EXECUTED
{
rtems_rfs_bitmap_element bits;
int available;
if (size < rtems_rfs_bitmap_element_bits ())
13d343: 83 fa 1f cmp $0x1f,%edx <== NOT EXECUTED
13d346: 77 13 ja 13d35b <rtems_rfs_bitmap_create_search+0x55><== NOT EXECUTED
{
/*
* Use the normal bit operators because we do not change the bits just merge
* the 2 separate parts.
*/
bits1 &= mask;
13d348: b9 20 00 00 00 mov $0x20,%ecx <== NOT EXECUTED
13d34d: 29 d1 sub %edx,%ecx <== NOT EXECUTED
13d34f: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
13d352: d3 e8 shr %cl,%eax <== NOT EXECUTED
13d354: 23 07 and (%edi),%eax <== NOT EXECUTED
if (size < rtems_rfs_bitmap_element_bits ())
{
bits = rtems_rfs_bitmap_merge (*map,
RTEMS_RFS_BITMAP_ELEMENT_SET,
rtems_rfs_bitmap_mask_section (0, size));
available = size;
13d356: 89 55 cc mov %edx,-0x34(%ebp) <== NOT EXECUTED
13d359: eb 09 jmp 13d364 <rtems_rfs_bitmap_create_search+0x5e><== NOT EXECUTED
}
else
{
bits = *map;
13d35b: 8b 07 mov (%edi),%eax <== NOT EXECUTED
13d35d: c7 45 cc 20 00 00 00 movl $0x20,-0x34(%ebp) <== NOT EXECUTED
available = rtems_rfs_bitmap_element_bits ();
}
if (rtems_rfs_bitmap_match (bits, RTEMS_RFS_BITMAP_ELEMENT_SET))
13d364: 85 c0 test %eax,%eax <== NOT EXECUTED
13d366: 74 29 je 13d391 <rtems_rfs_bitmap_create_search+0x8b><== NOT EXECUTED
13d368: c7 45 d4 00 00 00 00 movl $0x0,-0x2c(%ebp) <== NOT EXECUTED
13d36f: 89 45 b4 mov %eax,-0x4c(%ebp) <== NOT EXECUTED
rtems_rfs_bitmap_set (*search_map, bit);
else
{
int b;
for (b = 0; b < available; b++)
if (!rtems_rfs_bitmap_test (bits, b))
13d372: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
13d377: 8a 4d d4 mov -0x2c(%ebp),%cl <== NOT EXECUTED
13d37a: d3 e0 shl %cl,%eax <== NOT EXECUTED
13d37c: 8b 4d b4 mov -0x4c(%ebp),%ecx <== NOT EXECUTED
13d37f: 85 c8 test %ecx,%eax <== NOT EXECUTED
13d381: 74 03 je 13d386 <rtems_rfs_bitmap_create_search+0x80><== NOT EXECUTED
control->free++;
13d383: ff 43 10 incl 0x10(%ebx) <== NOT EXECUTED
if (rtems_rfs_bitmap_match (bits, RTEMS_RFS_BITMAP_ELEMENT_SET))
rtems_rfs_bitmap_set (*search_map, bit);
else
{
int b;
for (b = 0; b < available; b++)
13d386: ff 45 d4 incl -0x2c(%ebp) <== NOT EXECUTED
13d389: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED
13d38c: 39 45 d4 cmp %eax,-0x2c(%ebp) <== NOT EXECUTED
13d38f: 7c e1 jl 13d372 <rtems_rfs_bitmap_create_search+0x6c><== NOT EXECUTED
control->free++;
}
size -= available;
if (bit == rtems_rfs_bitmap_element_bits ())
13d391: 83 7d d0 20 cmpl $0x20,-0x30(%ebp) <== NOT EXECUTED
13d395: 75 12 jne 13d3a9 <rtems_rfs_bitmap_create_search+0xa3><== NOT EXECUTED
{
bit = 0;
search_map++;
13d397: 83 c6 04 add $0x4,%esi <== NOT EXECUTED
*search_map = RTEMS_RFS_BITMAP_ELEMENT_CLEAR;
13d39a: c7 06 ff ff ff ff movl $0xffffffff,(%esi) <== NOT EXECUTED
13d3a0: c7 45 d0 00 00 00 00 movl $0x0,-0x30(%ebp) <== NOT EXECUTED
13d3a7: eb 03 jmp 13d3ac <rtems_rfs_bitmap_create_search+0xa6><== NOT EXECUTED
}
else
bit++;
13d3a9: ff 45 d0 incl -0x30(%ebp) <== NOT EXECUTED
for (b = 0; b < available; b++)
if (!rtems_rfs_bitmap_test (bits, b))
control->free++;
}
size -= available;
13d3ac: 2b 55 cc sub -0x34(%ebp),%edx <== NOT EXECUTED
13d3af: 83 c7 04 add $0x4,%edi <== NOT EXECUTED
search_map = control->search_bits;
size = control->size;
bit = 0;
*search_map = RTEMS_RFS_BITMAP_ELEMENT_CLEAR;
while (size)
13d3b2: 85 d2 test %edx,%edx <== NOT EXECUTED
13d3b4: 75 8d jne 13d343 <rtems_rfs_bitmap_create_search+0x3d><== NOT EXECUTED
13d3b6: 31 c0 xor %eax,%eax <== NOT EXECUTED
bit++;
map++;
}
return 0;
}
13d3b8: 83 c4 4c add $0x4c,%esp <== NOT EXECUTED
13d3bb: 5b pop %ebx <== NOT EXECUTED
13d3bc: 5e pop %esi <== NOT EXECUTED
13d3bd: 5f pop %edi <== NOT EXECUTED
13d3be: c9 leave <== NOT EXECUTED
13d3bf: c3 ret <== NOT EXECUTED
0013d2c6 <rtems_rfs_bitmap_load_map>:
* @return int The error number (errno). No error if 0.
*/
static int
rtems_rfs_bitmap_load_map (rtems_rfs_bitmap_control* control,
rtems_rfs_bitmap_map* map)
{
13d2c6: 55 push %ebp <== NOT EXECUTED
13d2c7: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13d2c9: 56 push %esi <== NOT EXECUTED
13d2ca: 53 push %ebx <== NOT EXECUTED
13d2cb: 89 c3 mov %eax,%ebx <== NOT EXECUTED
13d2cd: 89 d6 mov %edx,%esi <== NOT EXECUTED
int rc;
if (!control->buffer)
13d2cf: b8 06 00 00 00 mov $0x6,%eax <== NOT EXECUTED
13d2d4: 83 3b 00 cmpl $0x0,(%ebx) <== NOT EXECUTED
13d2d7: 74 26 je 13d2ff <rtems_rfs_bitmap_load_map+0x39><== NOT EXECUTED
return ENXIO;
*map = NULL;
13d2d9: c7 02 00 00 00 00 movl $0x0,(%edx) <== NOT EXECUTED
rc = rtems_rfs_buffer_handle_request (control->fs,
13d2df: 6a 01 push $0x1 <== NOT EXECUTED
13d2e1: ff 73 08 pushl 0x8(%ebx) <== NOT EXECUTED
13d2e4: ff 33 pushl (%ebx) <== NOT EXECUTED
13d2e6: ff 73 04 pushl 0x4(%ebx) <== NOT EXECUTED
13d2e9: e8 6c 88 ff ff call 135b5a <rtems_rfs_buffer_handle_request><== NOT EXECUTED
control->buffer,
control->block,
true);
if (rc)
13d2ee: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13d2f1: 85 c0 test %eax,%eax <== NOT EXECUTED
13d2f3: 75 0a jne 13d2ff <rtems_rfs_bitmap_load_map+0x39><== NOT EXECUTED
return rc;
*map = rtems_rfs_buffer_data (control->buffer);
13d2f5: 8b 13 mov (%ebx),%edx <== NOT EXECUTED
13d2f7: 8b 52 08 mov 0x8(%edx),%edx <== NOT EXECUTED
13d2fa: 8b 52 20 mov 0x20(%edx),%edx <== NOT EXECUTED
13d2fd: 89 16 mov %edx,(%esi) <== NOT EXECUTED
return 0;
}
13d2ff: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
13d302: 5b pop %ebx <== NOT EXECUTED
13d303: 5e pop %esi <== NOT EXECUTED
13d304: c9 leave <== NOT EXECUTED
13d305: c3 ret <== NOT EXECUTED
0013d7f4 <rtems_rfs_bitmap_map_alloc>:
int
rtems_rfs_bitmap_map_alloc (rtems_rfs_bitmap_control* control,
rtems_rfs_bitmap_bit seed,
bool* allocated,
rtems_rfs_bitmap_bit* bit)
{
13d7f4: 55 push %ebp <== NOT EXECUTED
13d7f5: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13d7f7: 57 push %edi <== NOT EXECUTED
13d7f8: 56 push %esi <== NOT EXECUTED
13d7f9: 53 push %ebx <== NOT EXECUTED
13d7fa: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13d7fd: 8b 7d 08 mov 0x8(%ebp),%edi <== NOT EXECUTED
int rc = 0;
/*
* By default we assume the allocation failed.
*/
*allocated = false;
13d800: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
13d803: c6 00 00 movb $0x0,(%eax) <== NOT EXECUTED
13d806: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
13d809: 89 de mov %ebx,%esi <== NOT EXECUTED
* we have searched all of the map. The seed may not be aligned to a window
* boundary so we may need to search a partial window and this may also not
* be balanced for the upper or lower seeds. We move to the limits, search
* then return false if no clear bits are found.
*/
while (((upper_seed >= 0) && (upper_seed < control->size))
13d80b: eb 68 jmp 13d875 <rtems_rfs_bitmap_map_alloc+0x81><== NOT EXECUTED
|| ((lower_seed >= 0) && (lower_seed < control->size)))
{
/*
* Search up first so bits allocated in succession are grouped together.
*/
if (upper_seed < control->size)
13d80d: 3b 77 0c cmp 0xc(%edi),%esi <== NOT EXECUTED
13d810: 73 25 jae 13d837 <rtems_rfs_bitmap_map_alloc+0x43><== NOT EXECUTED
{
*bit = upper_seed;
13d812: 8b 45 14 mov 0x14(%ebp),%eax <== NOT EXECUTED
13d815: 89 30 mov %esi,(%eax) <== NOT EXECUTED
rc = rtems_rfs_search_map_for_clear_bit (control, bit, allocated,
13d817: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13d81a: 6a 01 push $0x1 <== NOT EXECUTED
13d81c: 8b 4d 10 mov 0x10(%ebp),%ecx <== NOT EXECUTED
13d81f: 89 c2 mov %eax,%edx <== NOT EXECUTED
13d821: 89 f8 mov %edi,%eax <== NOT EXECUTED
13d823: e8 f2 fd ff ff call 13d61a <T.57> <== NOT EXECUTED
window, 1);
if ((rc > 0) || *allocated)
13d828: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13d82b: 85 c0 test %eax,%eax <== NOT EXECUTED
13d82d: 7f 58 jg 13d887 <rtems_rfs_bitmap_map_alloc+0x93><== NOT EXECUTED
13d82f: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
13d832: 80 38 00 cmpb $0x0,(%eax) <== NOT EXECUTED
13d835: 75 50 jne 13d887 <rtems_rfs_bitmap_map_alloc+0x93><== NOT EXECUTED
break;
}
if (lower_seed >= 0)
13d837: 85 db test %ebx,%ebx <== NOT EXECUTED
13d839: 78 25 js 13d860 <rtems_rfs_bitmap_map_alloc+0x6c><== NOT EXECUTED
{
*bit = lower_seed;
13d83b: 8b 45 14 mov 0x14(%ebp),%eax <== NOT EXECUTED
13d83e: 89 18 mov %ebx,(%eax) <== NOT EXECUTED
rc = rtems_rfs_search_map_for_clear_bit (control, bit, allocated,
13d840: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13d843: 6a ff push $0xffffffff <== NOT EXECUTED
13d845: 8b 4d 10 mov 0x10(%ebp),%ecx <== NOT EXECUTED
13d848: 89 c2 mov %eax,%edx <== NOT EXECUTED
13d84a: 89 f8 mov %edi,%eax <== NOT EXECUTED
13d84c: e8 c9 fd ff ff call 13d61a <T.57> <== NOT EXECUTED
window, -1);
if ((rc > 0) || *allocated)
13d851: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13d854: 85 c0 test %eax,%eax <== NOT EXECUTED
13d856: 7f 2f jg 13d887 <rtems_rfs_bitmap_map_alloc+0x93><== NOT EXECUTED
13d858: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
13d85b: 80 38 00 cmpb $0x0,(%eax) <== NOT EXECUTED
13d85e: 75 27 jne 13d887 <rtems_rfs_bitmap_map_alloc+0x93><== NOT EXECUTED
/*
* Do not bound the limits at the edges of the map. Do not update if an
* edge has been passed.
*/
if (upper_seed < control->size)
13d860: 3b 77 0c cmp 0xc(%edi),%esi <== NOT EXECUTED
13d863: 73 06 jae 13d86b <rtems_rfs_bitmap_map_alloc+0x77><== NOT EXECUTED
upper_seed += window;
13d865: 81 c6 00 08 00 00 add $0x800,%esi <== NOT EXECUTED
if (lower_seed >= 0)
13d86b: 85 db test %ebx,%ebx <== NOT EXECUTED
13d86d: 78 06 js 13d875 <rtems_rfs_bitmap_map_alloc+0x81><== NOT EXECUTED
lower_seed -= window;
13d86f: 81 eb 00 08 00 00 sub $0x800,%ebx <== NOT EXECUTED
* we have searched all of the map. The seed may not be aligned to a window
* boundary so we may need to search a partial window and this may also not
* be balanced for the upper or lower seeds. We move to the limits, search
* then return false if no clear bits are found.
*/
while (((upper_seed >= 0) && (upper_seed < control->size))
13d875: 85 f6 test %esi,%esi <== NOT EXECUTED
13d877: 78 05 js 13d87e <rtems_rfs_bitmap_map_alloc+0x8a><== NOT EXECUTED
13d879: 3b 77 0c cmp 0xc(%edi),%esi <== NOT EXECUTED
13d87c: 72 8f jb 13d80d <rtems_rfs_bitmap_map_alloc+0x19><== NOT EXECUTED
13d87e: 85 db test %ebx,%ebx <== NOT EXECUTED
13d880: 78 05 js 13d887 <rtems_rfs_bitmap_map_alloc+0x93><== NOT EXECUTED
|| ((lower_seed >= 0) && (lower_seed < control->size)))
13d882: 3b 5f 0c cmp 0xc(%edi),%ebx <== NOT EXECUTED
13d885: 72 86 jb 13d80d <rtems_rfs_bitmap_map_alloc+0x19><== NOT EXECUTED
if (lower_seed >= 0)
lower_seed -= window;
}
return 0;
}
13d887: 31 c0 xor %eax,%eax <== NOT EXECUTED
13d889: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13d88c: 5b pop %ebx <== NOT EXECUTED
13d88d: 5e pop %esi <== NOT EXECUTED
13d88e: 5f pop %edi <== NOT EXECUTED
13d88f: c9 leave <== NOT EXECUTED
13d890: c3 ret <== NOT EXECUTED
0013d531 <rtems_rfs_bitmap_map_clear>:
}
int
rtems_rfs_bitmap_map_clear (rtems_rfs_bitmap_control* control,
rtems_rfs_bitmap_bit bit)
{
13d531: 55 push %ebp <== NOT EXECUTED
13d532: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13d534: 57 push %edi <== NOT EXECUTED
13d535: 56 push %esi <== NOT EXECUTED
13d536: 53 push %ebx <== NOT EXECUTED
13d537: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED
13d53a: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
13d53d: 8b 7d 0c mov 0xc(%ebp),%edi <== NOT EXECUTED
rtems_rfs_bitmap_map map;
rtems_rfs_bitmap_map search_map;
int index;
int offset;
int rc;
rc = rtems_rfs_bitmap_load_map (control, &map);
13d540: 8d 55 e4 lea -0x1c(%ebp),%edx <== NOT EXECUTED
13d543: 89 d8 mov %ebx,%eax <== NOT EXECUTED
13d545: e8 7c fd ff ff call 13d2c6 <rtems_rfs_bitmap_load_map><== NOT EXECUTED
if (rc > 0)
13d54a: 85 c0 test %eax,%eax <== NOT EXECUTED
13d54c: 7f 4c jg 13d59a <rtems_rfs_bitmap_map_clear+0x69><== NOT EXECUTED
return rc;
if (bit >= control->size)
13d54e: b8 16 00 00 00 mov $0x16,%eax <== NOT EXECUTED
13d553: 3b 7b 0c cmp 0xc(%ebx),%edi <== NOT EXECUTED
13d556: 73 42 jae 13d59a <rtems_rfs_bitmap_map_clear+0x69><== NOT EXECUTED
return EINVAL;
search_map = control->search_bits;
index = rtems_rfs_bitmap_map_index (bit);
13d558: 89 fe mov %edi,%esi <== NOT EXECUTED
13d55a: c1 fe 05 sar $0x5,%esi <== NOT EXECUTED
offset = rtems_rfs_bitmap_map_offset (bit);
map[index] = rtems_rfs_bitmap_clear (map[index], 1 << offset);
13d55d: 8d 04 b5 00 00 00 00 lea 0x0(,%esi,4),%eax <== NOT EXECUTED
13d564: 03 45 e4 add -0x1c(%ebp),%eax <== NOT EXECUTED
13d567: 89 fa mov %edi,%edx <== NOT EXECUTED
13d569: 83 e2 1f and $0x1f,%edx <== NOT EXECUTED
13d56c: 89 55 d4 mov %edx,-0x2c(%ebp) <== NOT EXECUTED
13d56f: ba 01 00 00 00 mov $0x1,%edx <== NOT EXECUTED
13d574: 8a 4d d4 mov -0x2c(%ebp),%cl <== NOT EXECUTED
13d577: d3 e2 shl %cl,%edx <== NOT EXECUTED
13d579: 09 10 or %edx,(%eax) <== NOT EXECUTED
bit = index;
index = rtems_rfs_bitmap_map_index (bit);
offset = rtems_rfs_bitmap_map_offset(bit);
search_map[index] = rtems_rfs_bitmap_clear (search_map[index], 1 << offset);
13d57b: c1 ff 0a sar $0xa,%edi <== NOT EXECUTED
13d57e: 89 f1 mov %esi,%ecx <== NOT EXECUTED
13d580: 83 e1 1f and $0x1f,%ecx <== NOT EXECUTED
13d583: ba 01 00 00 00 mov $0x1,%edx <== NOT EXECUTED
13d588: d3 e2 shl %cl,%edx <== NOT EXECUTED
13d58a: 8b 4b 14 mov 0x14(%ebx),%ecx <== NOT EXECUTED
13d58d: 09 14 b9 or %edx,(%ecx,%edi,4) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (control->buffer);
13d590: 8b 03 mov (%ebx),%eax <== NOT EXECUTED
13d592: c6 00 01 movb $0x1,(%eax) <== NOT EXECUTED
control->free++;
13d595: ff 43 10 incl 0x10(%ebx) <== NOT EXECUTED
13d598: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
}
13d59a: 83 c4 2c add $0x2c,%esp <== NOT EXECUTED
13d59d: 5b pop %ebx <== NOT EXECUTED
13d59e: 5e pop %esi <== NOT EXECUTED
13d59f: 5f pop %edi <== NOT EXECUTED
13d5a0: c9 leave <== NOT EXECUTED
13d5a1: c3 ret <== NOT EXECUTED
0013d40f <rtems_rfs_bitmap_map_clear_all>:
return 0;
}
int
rtems_rfs_bitmap_map_clear_all (rtems_rfs_bitmap_control* control)
{
13d40f: 55 push %ebp <== NOT EXECUTED
13d410: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13d412: 56 push %esi <== NOT EXECUTED
13d413: 53 push %ebx <== NOT EXECUTED
13d414: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED
13d417: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
rtems_rfs_bitmap_bit last_search_bit;
size_t elements;
int e;
int rc;
rc = rtems_rfs_bitmap_load_map (control, &map);
13d41a: 8d 55 f4 lea -0xc(%ebp),%edx <== NOT EXECUTED
13d41d: 89 d8 mov %ebx,%eax <== NOT EXECUTED
13d41f: e8 a2 fe ff ff call 13d2c6 <rtems_rfs_bitmap_load_map><== NOT EXECUTED
if (rc > 0)
13d424: 85 c0 test %eax,%eax <== NOT EXECUTED
13d426: 7f 58 jg 13d480 <rtems_rfs_bitmap_map_clear_all+0x71><== NOT EXECUTED
return rc;
elements = rtems_rfs_bitmap_elements (control->size);
13d428: 8b 43 0c mov 0xc(%ebx),%eax <== NOT EXECUTED
13d42b: 48 dec %eax <== NOT EXECUTED
13d42c: c1 e8 05 shr $0x5,%eax <== NOT EXECUTED
13d42f: 8d 50 01 lea 0x1(%eax),%edx <== NOT EXECUTED
control->free = elements;
13d432: 89 53 10 mov %edx,0x10(%ebx) <== NOT EXECUTED
for (e = 0; e < elements; e++)
map[e] = RTEMS_RFS_BITMAP_ELEMENT_CLEAR;
13d435: 8b 75 f4 mov -0xc(%ebp),%esi <== NOT EXECUTED
13d438: 31 c9 xor %ecx,%ecx <== NOT EXECUTED
elements = rtems_rfs_bitmap_elements (control->size);
control->free = elements;
for (e = 0; e < elements; e++)
13d43a: eb 08 jmp 13d444 <rtems_rfs_bitmap_map_clear_all+0x35><== NOT EXECUTED
map[e] = RTEMS_RFS_BITMAP_ELEMENT_CLEAR;
13d43c: c7 04 8e ff ff ff ff movl $0xffffffff,(%esi,%ecx,4) <== NOT EXECUTED
elements = rtems_rfs_bitmap_elements (control->size);
control->free = elements;
for (e = 0; e < elements; e++)
13d443: 41 inc %ecx <== NOT EXECUTED
13d444: 39 d1 cmp %edx,%ecx <== NOT EXECUTED
13d446: 72 f4 jb 13d43c <rtems_rfs_bitmap_map_clear_all+0x2d><== NOT EXECUTED
* Set the un-mapped bits in the last search element so the available logic
* works.
*/
last_search_bit = rtems_rfs_bitmap_map_offset (elements);
if (last_search_bit == 0)
13d448: 83 e2 1f and $0x1f,%edx <== NOT EXECUTED
13d44b: 75 05 jne 13d452 <rtems_rfs_bitmap_map_clear_all+0x43><== NOT EXECUTED
13d44d: ba 20 00 00 00 mov $0x20,%edx <== NOT EXECUTED
last_search_bit = rtems_rfs_bitmap_element_bits ();
elements = rtems_rfs_bitmap_elements (elements);
13d452: 89 c1 mov %eax,%ecx <== NOT EXECUTED
13d454: c1 e9 05 shr $0x5,%ecx <== NOT EXECUTED
return 0;
}
int
rtems_rfs_bitmap_map_clear_all (rtems_rfs_bitmap_control* control)
13d457: 31 c0 xor %eax,%eax <== NOT EXECUTED
if (last_search_bit == 0)
last_search_bit = rtems_rfs_bitmap_element_bits ();
elements = rtems_rfs_bitmap_elements (elements);
for (e = 0; e < (elements - 1); e++)
13d459: eb 08 jmp 13d463 <rtems_rfs_bitmap_map_clear_all+0x54><== NOT EXECUTED
control->search_bits[e] = RTEMS_RFS_BITMAP_ELEMENT_CLEAR;
13d45b: c7 04 86 ff ff ff ff movl $0xffffffff,(%esi,%eax,4) <== NOT EXECUTED
if (last_search_bit == 0)
last_search_bit = rtems_rfs_bitmap_element_bits ();
elements = rtems_rfs_bitmap_elements (elements);
for (e = 0; e < (elements - 1); e++)
13d462: 40 inc %eax <== NOT EXECUTED
13d463: 39 c8 cmp %ecx,%eax <== NOT EXECUTED
13d465: 8b 73 14 mov 0x14(%ebx),%esi <== NOT EXECUTED
13d468: 75 f1 jne 13d45b <rtems_rfs_bitmap_map_clear_all+0x4c><== NOT EXECUTED
control->search_bits[e] = RTEMS_RFS_BITMAP_ELEMENT_CLEAR;
control->search_bits[elements - 1] =
13d46a: b9 20 00 00 00 mov $0x20,%ecx <== NOT EXECUTED
13d46f: 29 d1 sub %edx,%ecx <== NOT EXECUTED
13d471: 83 ca ff or $0xffffffff,%edx <== NOT EXECUTED
13d474: d3 ea shr %cl,%edx <== NOT EXECUTED
13d476: 89 14 86 mov %edx,(%esi,%eax,4) <== NOT EXECUTED
rtems_rfs_bitmap_merge (RTEMS_RFS_BITMAP_ELEMENT_CLEAR,
RTEMS_RFS_BITMAP_ELEMENT_SET,
rtems_rfs_bitmap_mask (last_search_bit));
rtems_rfs_buffer_mark_dirty (control->buffer);
13d479: 8b 03 mov (%ebx),%eax <== NOT EXECUTED
13d47b: c6 00 01 movb $0x1,(%eax) <== NOT EXECUTED
13d47e: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
}
13d480: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13d483: 5b pop %ebx <== NOT EXECUTED
13d484: 5e pop %esi <== NOT EXECUTED
13d485: c9 leave <== NOT EXECUTED
13d486: c3 ret <== NOT EXECUTED
0013d5a2 <rtems_rfs_bitmap_map_set>:
}
int
rtems_rfs_bitmap_map_set (rtems_rfs_bitmap_control* control,
rtems_rfs_bitmap_bit bit)
{
13d5a2: 55 push %ebp <== NOT EXECUTED
13d5a3: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13d5a5: 57 push %edi <== NOT EXECUTED
13d5a6: 56 push %esi <== NOT EXECUTED
13d5a7: 53 push %ebx <== NOT EXECUTED
13d5a8: 83 ec 3c sub $0x3c,%esp <== NOT EXECUTED
13d5ab: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
13d5ae: 8b 7d 0c mov 0xc(%ebp),%edi <== NOT EXECUTED
rtems_rfs_bitmap_map map;
rtems_rfs_bitmap_map search_map;
int index;
int offset;
int rc;
rc = rtems_rfs_bitmap_load_map (control, &map);
13d5b1: 8d 55 e4 lea -0x1c(%ebp),%edx <== NOT EXECUTED
13d5b4: 89 d8 mov %ebx,%eax <== NOT EXECUTED
13d5b6: e8 0b fd ff ff call 13d2c6 <rtems_rfs_bitmap_load_map><== NOT EXECUTED
if (rc > 0)
13d5bb: 85 c0 test %eax,%eax <== NOT EXECUTED
13d5bd: 7f 53 jg 13d612 <rtems_rfs_bitmap_map_set+0x70><== NOT EXECUTED
return rc;
if (bit >= control->size)
13d5bf: b8 16 00 00 00 mov $0x16,%eax <== NOT EXECUTED
13d5c4: 3b 7b 0c cmp 0xc(%ebx),%edi <== NOT EXECUTED
13d5c7: 73 49 jae 13d612 <rtems_rfs_bitmap_map_set+0x70><== NOT EXECUTED
return EINVAL;
search_map = control->search_bits;
13d5c9: 8b 53 14 mov 0x14(%ebx),%edx <== NOT EXECUTED
index = rtems_rfs_bitmap_map_index (bit);
13d5cc: 89 f8 mov %edi,%eax <== NOT EXECUTED
13d5ce: c1 f8 05 sar $0x5,%eax <== NOT EXECUTED
13d5d1: 89 45 c4 mov %eax,-0x3c(%ebp) <== NOT EXECUTED
offset = rtems_rfs_bitmap_map_offset (bit);
map[index] = rtems_rfs_bitmap_set (map[index], 1 << offset);
13d5d4: c1 e0 02 shl $0x2,%eax <== NOT EXECUTED
13d5d7: 03 45 e4 add -0x1c(%ebp),%eax <== NOT EXECUTED
*/
static rtems_rfs_bitmap_element
rtems_rfs_bitmap_set (rtems_rfs_bitmap_element target,
rtems_rfs_bitmap_element bits)
{
return RTEMS_RFS_BITMAP_SET_BITS (target, bits);
13d5da: 89 f9 mov %edi,%ecx <== NOT EXECUTED
13d5dc: 83 e1 1f and $0x1f,%ecx <== NOT EXECUTED
13d5df: be 01 00 00 00 mov $0x1,%esi <== NOT EXECUTED
13d5e4: d3 e6 shl %cl,%esi <== NOT EXECUTED
13d5e6: f7 d6 not %esi <== NOT EXECUTED
13d5e8: 8b 08 mov (%eax),%ecx <== NOT EXECUTED
13d5ea: 21 ce and %ecx,%esi <== NOT EXECUTED
if (bit >= control->size)
return EINVAL;
search_map = control->search_bits;
index = rtems_rfs_bitmap_map_index (bit);
offset = rtems_rfs_bitmap_map_offset (bit);
map[index] = rtems_rfs_bitmap_set (map[index], 1 << offset);
13d5ec: 89 30 mov %esi,(%eax) <== NOT EXECUTED
if (rtems_rfs_bitmap_match(map[index], RTEMS_RFS_BITMAP_ELEMENT_SET))
13d5ee: 31 c0 xor %eax,%eax <== NOT EXECUTED
13d5f0: 85 f6 test %esi,%esi <== NOT EXECUTED
13d5f2: 75 1e jne 13d612 <rtems_rfs_bitmap_map_set+0x70><== NOT EXECUTED
{
bit = index;
index = rtems_rfs_bitmap_map_index (bit);
offset = rtems_rfs_bitmap_map_offset (bit);
search_map[index] = rtems_rfs_bitmap_set (search_map[index], 1 << offset);
13d5f4: c1 ff 0a sar $0xa,%edi <== NOT EXECUTED
13d5f7: 8b 4d c4 mov -0x3c(%ebp),%ecx <== NOT EXECUTED
13d5fa: 83 e1 1f and $0x1f,%ecx <== NOT EXECUTED
13d5fd: 66 be 01 00 mov $0x1,%si <== NOT EXECUTED
13d601: d3 e6 shl %cl,%esi <== NOT EXECUTED
13d603: f7 d6 not %esi <== NOT EXECUTED
13d605: 21 34 ba and %esi,(%edx,%edi,4) <== NOT EXECUTED
control->free--;
13d608: ff 4b 10 decl 0x10(%ebx) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (control->buffer);
13d60b: 8b 03 mov (%ebx),%eax <== NOT EXECUTED
13d60d: c6 00 01 movb $0x1,(%eax) <== NOT EXECUTED
13d610: 31 c0 xor %eax,%eax <== NOT EXECUTED
}
return 0;
}
13d612: 83 c4 3c add $0x3c,%esp <== NOT EXECUTED
13d615: 5b pop %ebx <== NOT EXECUTED
13d616: 5e pop %esi <== NOT EXECUTED
13d617: 5f pop %edi <== NOT EXECUTED
13d618: c9 leave <== NOT EXECUTED
13d619: c3 ret <== NOT EXECUTED
0013d487 <rtems_rfs_bitmap_map_set_all>:
return 0;
}
int
rtems_rfs_bitmap_map_set_all (rtems_rfs_bitmap_control* control)
{
13d487: 55 push %ebp <== NOT EXECUTED
13d488: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13d48a: 56 push %esi <== NOT EXECUTED
13d48b: 53 push %ebx <== NOT EXECUTED
13d48c: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED
13d48f: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
rtems_rfs_bitmap_map map;
size_t elements;
int e;
int rc;
rc = rtems_rfs_bitmap_load_map (control, &map);
13d492: 8d 55 f4 lea -0xc(%ebp),%edx <== NOT EXECUTED
13d495: 89 d8 mov %ebx,%eax <== NOT EXECUTED
13d497: e8 2a fe ff ff call 13d2c6 <rtems_rfs_bitmap_load_map><== NOT EXECUTED
if (rc > 0)
13d49c: 85 c0 test %eax,%eax <== NOT EXECUTED
13d49e: 7f 44 jg 13d4e4 <rtems_rfs_bitmap_map_set_all+0x5d><== NOT EXECUTED
return rc;
elements = rtems_rfs_bitmap_elements (control->size);
13d4a0: 8b 43 0c mov 0xc(%ebx),%eax <== NOT EXECUTED
13d4a3: 48 dec %eax <== NOT EXECUTED
13d4a4: c1 e8 05 shr $0x5,%eax <== NOT EXECUTED
13d4a7: 8d 70 01 lea 0x1(%eax),%esi <== NOT EXECUTED
control->free = 0;
13d4aa: c7 43 10 00 00 00 00 movl $0x0,0x10(%ebx) <== NOT EXECUTED
for (e = 0; e < elements; e++)
map[e] = RTEMS_RFS_BITMAP_ELEMENT_SET;
13d4b1: 8b 4d f4 mov -0xc(%ebp),%ecx <== NOT EXECUTED
13d4b4: 31 d2 xor %edx,%edx <== NOT EXECUTED
elements = rtems_rfs_bitmap_elements (control->size);
control->free = 0;
for (e = 0; e < elements; e++)
13d4b6: eb 08 jmp 13d4c0 <rtems_rfs_bitmap_map_set_all+0x39><== NOT EXECUTED
map[e] = RTEMS_RFS_BITMAP_ELEMENT_SET;
13d4b8: c7 04 91 00 00 00 00 movl $0x0,(%ecx,%edx,4) <== NOT EXECUTED
elements = rtems_rfs_bitmap_elements (control->size);
control->free = 0;
for (e = 0; e < elements; e++)
13d4bf: 42 inc %edx <== NOT EXECUTED
13d4c0: 39 f2 cmp %esi,%edx <== NOT EXECUTED
13d4c2: 72 f4 jb 13d4b8 <rtems_rfs_bitmap_map_set_all+0x31><== NOT EXECUTED
map[e] = RTEMS_RFS_BITMAP_ELEMENT_SET;
elements = rtems_rfs_bitmap_elements (elements);
13d4c4: c1 e8 05 shr $0x5,%eax <== NOT EXECUTED
13d4c7: 8d 50 01 lea 0x1(%eax),%edx <== NOT EXECUTED
13d4ca: 31 c0 xor %eax,%eax <== NOT EXECUTED
for (e = 0; e < elements; e++)
13d4cc: eb 0b jmp 13d4d9 <rtems_rfs_bitmap_map_set_all+0x52><== NOT EXECUTED
control->search_bits[e] = RTEMS_RFS_BITMAP_ELEMENT_SET;
13d4ce: 8b 4b 14 mov 0x14(%ebx),%ecx <== NOT EXECUTED
13d4d1: c7 04 81 00 00 00 00 movl $0x0,(%ecx,%eax,4) <== NOT EXECUTED
for (e = 0; e < elements; e++)
map[e] = RTEMS_RFS_BITMAP_ELEMENT_SET;
elements = rtems_rfs_bitmap_elements (elements);
for (e = 0; e < elements; e++)
13d4d8: 40 inc %eax <== NOT EXECUTED
13d4d9: 39 d0 cmp %edx,%eax <== NOT EXECUTED
13d4db: 72 f1 jb 13d4ce <rtems_rfs_bitmap_map_set_all+0x47><== NOT EXECUTED
control->search_bits[e] = RTEMS_RFS_BITMAP_ELEMENT_SET;
rtems_rfs_buffer_mark_dirty (control->buffer);
13d4dd: 8b 03 mov (%ebx),%eax <== NOT EXECUTED
13d4df: c6 00 01 movb $0x1,(%eax) <== NOT EXECUTED
13d4e2: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
}
13d4e4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13d4e7: 5b pop %ebx <== NOT EXECUTED
13d4e8: 5e pop %esi <== NOT EXECUTED
13d4e9: c9 leave <== NOT EXECUTED
13d4ea: c3 ret <== NOT EXECUTED
0013d4eb <rtems_rfs_bitmap_map_test>:
int
rtems_rfs_bitmap_map_test (rtems_rfs_bitmap_control* control,
rtems_rfs_bitmap_bit bit,
bool* state)
{
13d4eb: 55 push %ebp <== NOT EXECUTED
13d4ec: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13d4ee: 56 push %esi <== NOT EXECUTED
13d4ef: 53 push %ebx <== NOT EXECUTED
13d4f0: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED
13d4f3: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
13d4f6: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
rtems_rfs_bitmap_map map;
int index;
int rc;
rc = rtems_rfs_bitmap_load_map (control, &map);
13d4f9: 8d 55 f4 lea -0xc(%ebp),%edx <== NOT EXECUTED
13d4fc: 89 f0 mov %esi,%eax <== NOT EXECUTED
13d4fe: e8 c3 fd ff ff call 13d2c6 <rtems_rfs_bitmap_load_map><== NOT EXECUTED
if (rc > 0)
13d503: 85 c0 test %eax,%eax <== NOT EXECUTED
13d505: 7f 23 jg 13d52a <rtems_rfs_bitmap_map_test+0x3f><== NOT EXECUTED
return rc;
if (bit >= control->size)
13d507: b8 16 00 00 00 mov $0x16,%eax <== NOT EXECUTED
13d50c: 3b 5e 0c cmp 0xc(%esi),%ebx <== NOT EXECUTED
13d50f: 73 19 jae 13d52a <rtems_rfs_bitmap_map_test+0x3f><== NOT EXECUTED
return EINVAL;
index = rtems_rfs_bitmap_map_index (bit);
*state = rtems_rfs_bitmap_test (map[index], bit);
13d511: 89 da mov %ebx,%edx <== NOT EXECUTED
13d513: c1 fa 05 sar $0x5,%edx <== NOT EXECUTED
13d516: b0 01 mov $0x1,%al <== NOT EXECUTED
13d518: 88 d9 mov %bl,%cl <== NOT EXECUTED
13d51a: d3 e0 shl %cl,%eax <== NOT EXECUTED
13d51c: 8b 4d f4 mov -0xc(%ebp),%ecx <== NOT EXECUTED
13d51f: 85 04 91 test %eax,(%ecx,%edx,4) <== NOT EXECUTED
13d522: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
13d525: 0f 94 00 sete (%eax) <== NOT EXECUTED
13d528: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
}
13d52a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13d52d: 5b pop %ebx <== NOT EXECUTED
13d52e: 5e pop %esi <== NOT EXECUTED
13d52f: c9 leave <== NOT EXECUTED
13d530: c3 ret <== NOT EXECUTED
0013d27c <rtems_rfs_bitmap_mask>:
return 0;
}
rtems_rfs_bitmap_element
rtems_rfs_bitmap_mask (unsigned int size)
{
13d27c: 55 push %ebp <== NOT EXECUTED
13d27d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13d27f: b9 20 00 00 00 mov $0x20,%ecx <== NOT EXECUTED
13d284: 2b 4d 08 sub 0x8(%ebp),%ecx <== NOT EXECUTED
13d287: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
13d28a: d3 e8 shr %cl,%eax <== NOT EXECUTED
rtems_rfs_bitmap_element mask = RTEMS_RFS_BITMAP_ELEMENT_FULL_MASK;
mask >>= (rtems_rfs_bitmap_element_bits () - size);
return mask;
}
13d28c: c9 leave <== NOT EXECUTED
13d28d: c3 ret <== NOT EXECUTED
0013d28e <rtems_rfs_bitmap_mask_section>:
rtems_rfs_bitmap_element
rtems_rfs_bitmap_mask_section (unsigned int start, unsigned int end)
{
13d28e: 55 push %ebp <== NOT EXECUTED
13d28f: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13d291: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
13d294: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED
rtems_rfs_bitmap_element mask = 0;
if (end > start)
13d297: 31 c0 xor %eax,%eax <== NOT EXECUTED
13d299: 39 d1 cmp %edx,%ecx <== NOT EXECUTED
13d29b: 76 12 jbe 13d2af <rtems_rfs_bitmap_mask_section+0x21><== NOT EXECUTED
mask = rtems_rfs_bitmap_mask (end - start) << start;
13d29d: 89 d0 mov %edx,%eax <== NOT EXECUTED
13d29f: 29 c8 sub %ecx,%eax <== NOT EXECUTED
13d2a1: 89 c1 mov %eax,%ecx <== NOT EXECUTED
13d2a3: 83 c1 20 add $0x20,%ecx <== NOT EXECUTED
13d2a6: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
13d2a9: d3 e8 shr %cl,%eax <== NOT EXECUTED
13d2ab: 88 d1 mov %dl,%cl <== NOT EXECUTED
13d2ad: d3 e0 shl %cl,%eax <== NOT EXECUTED
return mask;
}
13d2af: c9 leave <== NOT EXECUTED
13d2b0: c3 ret <== NOT EXECUTED
0013d3c0 <rtems_rfs_bitmap_open>:
rtems_rfs_bitmap_open (rtems_rfs_bitmap_control* control,
rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* buffer,
size_t size,
rtems_rfs_buffer_block block)
{
13d3c0: 55 push %ebp <== NOT EXECUTED
13d3c1: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13d3c3: 53 push %ebx <== NOT EXECUTED
13d3c4: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED
13d3c7: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
13d3ca: 8b 45 14 mov 0x14(%ebp),%eax <== NOT EXECUTED
size_t elements = rtems_rfs_bitmap_elements (size);
control->buffer = buffer;
13d3cd: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
13d3d0: 89 13 mov %edx,(%ebx) <== NOT EXECUTED
control->fs = fs;
13d3d2: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
13d3d5: 89 53 04 mov %edx,0x4(%ebx) <== NOT EXECUTED
control->block = block;
13d3d8: 8b 55 18 mov 0x18(%ebp),%edx <== NOT EXECUTED
13d3db: 89 53 08 mov %edx,0x8(%ebx) <== NOT EXECUTED
control->size = size;
13d3de: 89 43 0c mov %eax,0xc(%ebx) <== NOT EXECUTED
elements = rtems_rfs_bitmap_elements (elements);
control->search_bits = malloc (elements * sizeof (rtems_rfs_bitmap_element));
13d3e1: 48 dec %eax <== NOT EXECUTED
13d3e2: c1 e8 0a shr $0xa,%eax <== NOT EXECUTED
13d3e5: 8d 04 85 04 00 00 00 lea 0x4(,%eax,4),%eax <== NOT EXECUTED
13d3ec: 50 push %eax <== NOT EXECUTED
13d3ed: e8 f6 ff fc ff call 10d3e8 <malloc> <== NOT EXECUTED
13d3f2: 89 43 14 mov %eax,0x14(%ebx) <== NOT EXECUTED
if (!control->search_bits)
13d3f5: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13d3f8: 85 c0 test %eax,%eax <== NOT EXECUTED
13d3fa: 75 07 jne 13d403 <rtems_rfs_bitmap_open+0x43><== NOT EXECUTED
return ENOMEM;
return rtems_rfs_bitmap_create_search (control);
}
13d3fc: b0 0c mov $0xc,%al <== NOT EXECUTED
13d3fe: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
13d401: c9 leave <== NOT EXECUTED
13d402: c3 ret <== NOT EXECUTED
control->search_bits = malloc (elements * sizeof (rtems_rfs_bitmap_element));
if (!control->search_bits)
return ENOMEM;
return rtems_rfs_bitmap_create_search (control);
13d403: 89 5d 08 mov %ebx,0x8(%ebp) <== NOT EXECUTED
}
13d406: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
13d409: c9 leave <== NOT EXECUTED
control->search_bits = malloc (elements * sizeof (rtems_rfs_bitmap_element));
if (!control->search_bits)
return ENOMEM;
return rtems_rfs_bitmap_create_search (control);
13d40a: e9 f7 fe ff ff jmp 13d306 <rtems_rfs_bitmap_create_search><== NOT EXECUTED
00134ce9 <rtems_rfs_block_find_indirect>:
rtems_rfs_block_find_indirect (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* buffer,
rtems_rfs_block_no block,
int offset,
rtems_rfs_block_no* result)
{
134ce9: 55 push %ebp <== NOT EXECUTED
134cea: 89 e5 mov %esp,%ebp <== NOT EXECUTED
134cec: 57 push %edi <== NOT EXECUTED
134ced: 56 push %esi <== NOT EXECUTED
134cee: 53 push %ebx <== NOT EXECUTED
134cef: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
134cf2: 89 c3 mov %eax,%ebx <== NOT EXECUTED
134cf4: 89 d6 mov %edx,%esi <== NOT EXECUTED
134cf6: 8b 7d 08 mov 0x8(%ebp),%edi <== NOT EXECUTED
/*
* If the handle has a buffer and this request is a different block the current
* buffer is released.
*/
rc = rtems_rfs_buffer_handle_request (fs, buffer, block, true);
134cf9: 6a 01 push $0x1 <== NOT EXECUTED
134cfb: 51 push %ecx <== NOT EXECUTED
134cfc: 52 push %edx <== NOT EXECUTED
134cfd: 50 push %eax <== NOT EXECUTED
134cfe: e8 57 0e 00 00 call 135b5a <rtems_rfs_buffer_handle_request><== NOT EXECUTED
if (rc > 0)
134d03: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
134d06: 85 c0 test %eax,%eax <== NOT EXECUTED
134d08: 7f 52 jg 134d5c <rtems_rfs_block_find_indirect+0x73><== NOT EXECUTED
return rc;
*result = rtems_rfs_block_get_number (buffer, offset);
134d0a: 8b 46 08 mov 0x8(%esi),%eax <== NOT EXECUTED
134d0d: 8b 40 20 mov 0x20(%eax),%eax <== NOT EXECUTED
134d10: 8d 34 bd 00 00 00 00 lea 0x0(,%edi,4),%esi <== NOT EXECUTED
134d17: 0f b6 54 30 03 movzbl 0x3(%eax,%esi,1),%edx <== NOT EXECUTED
134d1c: 0f b6 0c b8 movzbl (%eax,%edi,4),%ecx <== NOT EXECUTED
134d20: c1 e1 18 shl $0x18,%ecx <== NOT EXECUTED
134d23: 09 ca or %ecx,%edx <== NOT EXECUTED
134d25: 0f b6 4c 30 01 movzbl 0x1(%eax,%esi,1),%ecx <== NOT EXECUTED
134d2a: c1 e1 10 shl $0x10,%ecx <== NOT EXECUTED
134d2d: 09 ca or %ecx,%edx <== NOT EXECUTED
134d2f: 0f b6 44 b8 02 movzbl 0x2(%eax,%edi,4),%eax <== NOT EXECUTED
134d34: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
134d37: 09 c2 or %eax,%edx <== NOT EXECUTED
if ((*result + 1) == 0)
134d39: 31 c0 xor %eax,%eax <== NOT EXECUTED
134d3b: 83 fa ff cmp $0xffffffff,%edx <== NOT EXECUTED
134d3e: 0f 95 c0 setne %al <== NOT EXECUTED
134d41: f7 d8 neg %eax <== NOT EXECUTED
134d43: 21 c2 and %eax,%edx <== NOT EXECUTED
134d45: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
134d48: 89 10 mov %edx,(%eax) <== NOT EXECUTED
*result = 0;
if (*result >= rtems_rfs_fs_blocks (fs))
134d4a: 31 c0 xor %eax,%eax <== NOT EXECUTED
134d4c: 3b 53 04 cmp 0x4(%ebx),%edx <== NOT EXECUTED
134d4f: 72 0b jb 134d5c <rtems_rfs_block_find_indirect+0x73><== NOT EXECUTED
{
if (rtems_rfs_trace (RTEMS_RFS_TRACE_BLOCK_FIND))
printf ("rtems-rfs: block-find: invalid block in table:"
" block=%" PRId32 ", indirect=%" PRId32 "/%d\n", *result, block, offset);
*result = 0;
134d51: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
134d54: c7 00 00 00 00 00 movl $0x0,(%eax) <== NOT EXECUTED
134d5a: 31 c0 xor %eax,%eax <== NOT EXECUTED
rc = EIO;
}
return 0;
}
134d5c: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
134d5f: 5b pop %ebx <== NOT EXECUTED
134d60: 5e pop %esi <== NOT EXECUTED
134d61: 5f pop %edi <== NOT EXECUTED
134d62: c9 leave <== NOT EXECUTED
134d63: c3 ret <== NOT EXECUTED
00134c3b <rtems_rfs_block_get_block_size>:
void
rtems_rfs_block_get_block_size (rtems_rfs_file_system* fs,
rtems_rfs_pos pos,
rtems_rfs_block_size* size)
{
134c3b: 55 push %ebp <== NOT EXECUTED
134c3c: 89 e5 mov %esp,%ebp <== NOT EXECUTED
134c3e: 57 push %edi <== NOT EXECUTED
134c3f: 56 push %esi <== NOT EXECUTED
134c40: 53 push %ebx <== NOT EXECUTED
134c41: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
134c44: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
134c47: 8b 75 10 mov 0x10(%ebp),%esi <== NOT EXECUTED
134c4a: 8b 7d 14 mov 0x14(%ebp),%edi <== NOT EXECUTED
if (pos == 0)
134c4d: 89 f0 mov %esi,%eax <== NOT EXECUTED
134c4f: 09 d8 or %ebx,%eax <== NOT EXECUTED
134c51: 75 0f jne 134c62 <rtems_rfs_block_get_block_size+0x27><== NOT EXECUTED
* @param size A pointer to the block size.
*/
static inline void
rtems_rfs_block_set_size_zero (rtems_rfs_block_size* size)
{
size->count = 0;
134c53: c7 07 00 00 00 00 movl $0x0,(%edi) <== NOT EXECUTED
size->offset = 0;
134c59: c7 47 04 00 00 00 00 movl $0x0,0x4(%edi) <== NOT EXECUTED
134c60: eb 30 jmp 134c92 <rtems_rfs_block_get_block_size+0x57><== NOT EXECUTED
rtems_rfs_block_set_size_zero (size);
else
{
size->count = pos / rtems_rfs_fs_block_size (fs) + 1;
134c62: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
134c65: 8b 50 08 mov 0x8(%eax),%edx <== NOT EXECUTED
134c68: 31 c9 xor %ecx,%ecx <== NOT EXECUTED
134c6a: 89 55 e0 mov %edx,-0x20(%ebp) <== NOT EXECUTED
134c6d: 89 4d e4 mov %ecx,-0x1c(%ebp) <== NOT EXECUTED
134c70: 51 push %ecx <== NOT EXECUTED
134c71: 52 push %edx <== NOT EXECUTED
134c72: 56 push %esi <== NOT EXECUTED
134c73: 53 push %ebx <== NOT EXECUTED
134c74: e8 7f f0 01 00 call 153cf8 <__udivdi3> <== NOT EXECUTED
134c79: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
134c7c: 40 inc %eax <== NOT EXECUTED
134c7d: 89 07 mov %eax,(%edi) <== NOT EXECUTED
size->offset = pos % rtems_rfs_fs_block_size (fs);
134c7f: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
134c82: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
134c85: 56 push %esi <== NOT EXECUTED
134c86: 53 push %ebx <== NOT EXECUTED
134c87: e8 7c f1 01 00 call 153e08 <__umoddi3> <== NOT EXECUTED
134c8c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
134c8f: 89 47 04 mov %eax,0x4(%edi) <== NOT EXECUTED
}
}
134c92: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
134c95: 5b pop %ebx <== NOT EXECUTED
134c96: 5e pop %esi <== NOT EXECUTED
134c97: 5f pop %edi <== NOT EXECUTED
134c98: c9 leave <== NOT EXECUTED
134c99: c3 ret <== NOT EXECUTED
00134be4 <rtems_rfs_block_get_bpos>:
void
rtems_rfs_block_get_bpos (rtems_rfs_file_system* fs,
rtems_rfs_pos pos,
rtems_rfs_block_pos* bpos)
{
134be4: 55 push %ebp <== NOT EXECUTED
134be5: 89 e5 mov %esp,%ebp <== NOT EXECUTED
134be7: 57 push %edi <== NOT EXECUTED
134be8: 56 push %esi <== NOT EXECUTED
134be9: 53 push %ebx <== NOT EXECUTED
134bea: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
134bed: 8b 7d 14 mov 0x14(%ebp),%edi <== NOT EXECUTED
bpos->bno = pos / rtems_rfs_fs_block_size (fs);
134bf0: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
134bf3: 8b 58 08 mov 0x8(%eax),%ebx <== NOT EXECUTED
134bf6: 31 f6 xor %esi,%esi <== NOT EXECUTED
134bf8: 56 push %esi <== NOT EXECUTED
134bf9: 53 push %ebx <== NOT EXECUTED
134bfa: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
134bfd: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
134c00: e8 f3 f0 01 00 call 153cf8 <__udivdi3> <== NOT EXECUTED
134c05: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
134c08: 89 07 mov %eax,(%edi) <== NOT EXECUTED
bpos->boff = pos % rtems_rfs_fs_block_size (fs);
134c0a: 56 push %esi <== NOT EXECUTED
134c0b: 53 push %ebx <== NOT EXECUTED
134c0c: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
134c0f: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
134c12: e8 f1 f1 01 00 call 153e08 <__umoddi3> <== NOT EXECUTED
134c17: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
134c1a: 89 47 04 mov %eax,0x4(%edi) <== NOT EXECUTED
}
134c1d: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
134c20: 5b pop %ebx <== NOT EXECUTED
134c21: 5e pop %esi <== NOT EXECUTED
134c22: 5f pop %edi <== NOT EXECUTED
134c23: c9 leave <== NOT EXECUTED
134c24: c3 ret <== NOT EXECUTED
00134c25 <rtems_rfs_block_get_pos>:
rtems_rfs_pos
rtems_rfs_block_get_pos (rtems_rfs_file_system* fs,
rtems_rfs_block_pos* bpos)
{
134c25: 55 push %ebp <== NOT EXECUTED
134c26: 89 e5 mov %esp,%ebp <== NOT EXECUTED
134c28: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
134c2b: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
134c2e: 8b 40 08 mov 0x8(%eax),%eax <== NOT EXECUTED
134c31: 0f af 02 imul (%edx),%eax <== NOT EXECUTED
134c34: 03 42 04 add 0x4(%edx),%eax <== NOT EXECUTED
return (bpos->bno * rtems_rfs_fs_block_size (fs)) + bpos->boff;
}
134c37: 31 d2 xor %edx,%edx <== NOT EXECUTED
134c39: c9 leave <== NOT EXECUTED
134c3a: c3 ret <== NOT EXECUTED
00134c9a <rtems_rfs_block_get_size>:
rtems_rfs_pos
rtems_rfs_block_get_size (rtems_rfs_file_system* fs,
rtems_rfs_block_size* size)
{
134c9a: 55 push %ebp <== NOT EXECUTED
134c9b: 89 e5 mov %esp,%ebp <== NOT EXECUTED
134c9d: 56 push %esi <== NOT EXECUTED
134c9e: 53 push %ebx <== NOT EXECUTED
134c9f: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED
134ca2: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
134ca5: 8b 75 0c mov 0xc(%ebp),%esi <== NOT EXECUTED
uint32_t offset;
uint64_t block_size;
if (size->count == 0)
134ca8: 8b 1e mov (%esi),%ebx <== NOT EXECUTED
134caa: c7 45 e8 00 00 00 00 movl $0x0,-0x18(%ebp) <== NOT EXECUTED
134cb1: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp) <== NOT EXECUTED
134cb8: 85 db test %ebx,%ebx <== NOT EXECUTED
134cba: 74 20 je 134cdc <rtems_rfs_block_get_size+0x42><== NOT EXECUTED
return 0;
if (size->offset == 0)
134cbc: 8b 46 04 mov 0x4(%esi),%eax <== NOT EXECUTED
134cbf: 85 c0 test %eax,%eax <== NOT EXECUTED
134cc1: 75 03 jne 134cc6 <rtems_rfs_block_get_size+0x2c><== NOT EXECUTED
offset = rtems_rfs_fs_block_size (fs);
134cc3: 8b 41 08 mov 0x8(%ecx),%eax <== NOT EXECUTED
else
offset = size->offset;
block_size = rtems_rfs_fs_block_size (fs);
return (((uint64_t) (size->count - 1)) * block_size) + offset;
134cc6: 89 45 e8 mov %eax,-0x18(%ebp) <== NOT EXECUTED
134cc9: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp) <== NOT EXECUTED
134cd0: 4b dec %ebx <== NOT EXECUTED
134cd1: 89 d8 mov %ebx,%eax <== NOT EXECUTED
134cd3: f7 61 08 mull 0x8(%ecx) <== NOT EXECUTED
134cd6: 01 45 e8 add %eax,-0x18(%ebp) <== NOT EXECUTED
134cd9: 11 55 ec adc %edx,-0x14(%ebp) <== NOT EXECUTED
}
134cdc: 8b 45 e8 mov -0x18(%ebp),%eax <== NOT EXECUTED
134cdf: 8b 55 ec mov -0x14(%ebp),%edx <== NOT EXECUTED
134ce2: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
134ce5: 5b pop %ebx <== NOT EXECUTED
134ce6: 5e pop %esi <== NOT EXECUTED
134ce7: c9 leave <== NOT EXECUTED
134ce8: c3 ret <== NOT EXECUTED
001355a2 <rtems_rfs_block_map_close>:
}
int
rtems_rfs_block_map_close (rtems_rfs_file_system* fs,
rtems_rfs_block_map* map)
{
1355a2: 55 push %ebp <== NOT EXECUTED
1355a3: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1355a5: 57 push %edi <== NOT EXECUTED
1355a6: 56 push %esi <== NOT EXECUTED
1355a7: 53 push %ebx <== NOT EXECUTED
1355a8: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
1355ab: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
1355ae: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
int rc = 0;
int brc;
if (map->dirty && map->inode)
1355b1: 80 3b 00 cmpb $0x0,(%ebx) <== NOT EXECUTED
1355b4: 0f 84 3c 01 00 00 je 1356f6 <rtems_rfs_block_map_close+0x154><== NOT EXECUTED
1355ba: 8b 43 04 mov 0x4(%ebx),%eax <== NOT EXECUTED
1355bd: 85 c0 test %eax,%eax <== NOT EXECUTED
1355bf: 0f 84 31 01 00 00 je 1356f6 <rtems_rfs_block_map_close+0x154><== NOT EXECUTED
{
brc = rtems_rfs_inode_load (fs, map->inode);
1355c5: 52 push %edx <== NOT EXECUTED
1355c6: 52 push %edx <== NOT EXECUTED
1355c7: 50 push %eax <== NOT EXECUTED
1355c8: 56 push %esi <== NOT EXECUTED
1355c9: e8 aa 35 00 00 call 138b78 <rtems_rfs_inode_load> <== NOT EXECUTED
if (brc > 0)
1355ce: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1355d1: 89 c7 mov %eax,%edi <== NOT EXECUTED
1355d3: 85 c0 test %eax,%eax <== NOT EXECUTED
1355d5: 0f 8f 1d 01 00 00 jg 1356f8 <rtems_rfs_block_map_close+0x156><== NOT EXECUTED
1355db: 31 c0 xor %eax,%eax <== NOT EXECUTED
if (rc == 0)
{
int b;
for (b = 0; b < RTEMS_RFS_INODE_BLOCKS; b++)
rtems_rfs_inode_set_block (map->inode, b, map->blocks[b]);
1355dd: 8b 54 03 24 mov 0x24(%ebx,%eax,1),%edx <== NOT EXECUTED
1355e1: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED
1355e4: 8b 53 04 mov 0x4(%ebx),%edx <== NOT EXECUTED
* @param bno The block number.
*/
static inline void
rtems_rfs_inode_set_block (rtems_rfs_inode_handle* handle, int block, uint32_t bno)
{
rtems_rfs_write_u32 (&handle->node->data.blocks[block], bno);
1355e7: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED
1355ea: c1 e9 18 shr $0x18,%ecx <== NOT EXECUTED
1355ed: 8b 7a 0c mov 0xc(%edx),%edi <== NOT EXECUTED
1355f0: 88 4c 07 1c mov %cl,0x1c(%edi,%eax,1) <== NOT EXECUTED
1355f4: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED
1355f7: c1 e9 10 shr $0x10,%ecx <== NOT EXECUTED
1355fa: 8b 7a 0c mov 0xc(%edx),%edi <== NOT EXECUTED
1355fd: 88 4c 07 1d mov %cl,0x1d(%edi,%eax,1) <== NOT EXECUTED
135601: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED
135604: c1 e9 08 shr $0x8,%ecx <== NOT EXECUTED
135607: 8b 7a 0c mov 0xc(%edx),%edi <== NOT EXECUTED
13560a: 88 4c 07 1e mov %cl,0x1e(%edi,%eax,1) <== NOT EXECUTED
13560e: 8b 7a 0c mov 0xc(%edx),%edi <== NOT EXECUTED
135611: 8a 4d e4 mov -0x1c(%ebp),%cl <== NOT EXECUTED
135614: 88 4c 07 1f mov %cl,0x1f(%edi,%eax,1) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
135618: c6 42 10 01 movb $0x1,0x10(%edx) <== NOT EXECUTED
13561c: 83 c0 04 add $0x4,%eax <== NOT EXECUTED
if (rc == 0)
{
int b;
for (b = 0; b < RTEMS_RFS_INODE_BLOCKS; b++)
13561f: 83 f8 14 cmp $0x14,%eax <== NOT EXECUTED
135622: 75 b9 jne 1355dd <rtems_rfs_block_map_close+0x3b><== NOT EXECUTED
rtems_rfs_inode_set_block (map->inode, b, map->blocks[b]);
rtems_rfs_inode_set_block_count (map->inode, map->size.count);
135624: 8b 53 08 mov 0x8(%ebx),%edx <== NOT EXECUTED
135627: 8b 43 04 mov 0x4(%ebx),%eax <== NOT EXECUTED
* @param block_count The block count.
*/
static inline void
rtems_rfs_inode_set_block_count (rtems_rfs_inode_handle* handle, uint32_t block_count)
{
rtems_rfs_write_u32 (&handle->node->block_count, block_count);
13562a: 89 d7 mov %edx,%edi <== NOT EXECUTED
13562c: c1 ef 18 shr $0x18,%edi <== NOT EXECUTED
13562f: 89 7d e4 mov %edi,-0x1c(%ebp) <== NOT EXECUTED
135632: 8a 4d e4 mov -0x1c(%ebp),%cl <== NOT EXECUTED
135635: 8b 78 0c mov 0xc(%eax),%edi <== NOT EXECUTED
135638: 88 4f 0c mov %cl,0xc(%edi) <== NOT EXECUTED
13563b: 89 d1 mov %edx,%ecx <== NOT EXECUTED
13563d: c1 e9 10 shr $0x10,%ecx <== NOT EXECUTED
135640: 8b 78 0c mov 0xc(%eax),%edi <== NOT EXECUTED
135643: 88 4f 0d mov %cl,0xd(%edi) <== NOT EXECUTED
135646: 89 d1 mov %edx,%ecx <== NOT EXECUTED
135648: c1 e9 08 shr $0x8,%ecx <== NOT EXECUTED
13564b: 8b 78 0c mov 0xc(%eax),%edi <== NOT EXECUTED
13564e: 88 4f 0e mov %cl,0xe(%edi) <== NOT EXECUTED
135651: 8b 48 0c mov 0xc(%eax),%ecx <== NOT EXECUTED
135654: 88 51 0f mov %dl,0xf(%ecx) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
135657: c6 40 10 01 movb $0x1,0x10(%eax) <== NOT EXECUTED
rtems_rfs_inode_set_block_offset (map->inode, map->size.offset);
13565b: 8b 53 0c mov 0xc(%ebx),%edx <== NOT EXECUTED
13565e: 8b 43 04 mov 0x4(%ebx),%eax <== NOT EXECUTED
*/
static inline void
rtems_rfs_inode_set_block_offset (rtems_rfs_inode_handle* handle,
uint16_t block_offset)
{
rtems_rfs_write_u16 (&handle->node->block_offset, block_offset);
135661: 89 d1 mov %edx,%ecx <== NOT EXECUTED
135663: 66 c1 e9 08 shr $0x8,%cx <== NOT EXECUTED
135667: 8b 78 0c mov 0xc(%eax),%edi <== NOT EXECUTED
13566a: 88 4f 0a mov %cl,0xa(%edi) <== NOT EXECUTED
13566d: 8b 48 0c mov 0xc(%eax),%ecx <== NOT EXECUTED
135670: 88 51 0b mov %dl,0xb(%ecx) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
135673: c6 40 10 01 movb $0x1,0x10(%eax) <== NOT EXECUTED
rtems_rfs_inode_set_last_map_block (map->inode, map->last_map_block);
135677: 8b 53 1c mov 0x1c(%ebx),%edx <== NOT EXECUTED
13567a: 8b 43 04 mov 0x4(%ebx),%eax <== NOT EXECUTED
* @param block_count The last map block number.
*/
static inline void
rtems_rfs_inode_set_last_map_block (rtems_rfs_inode_handle* handle, uint32_t last_map_block)
{
rtems_rfs_write_u32 (&handle->node->last_map_block, last_map_block);
13567d: 89 d1 mov %edx,%ecx <== NOT EXECUTED
13567f: c1 e9 18 shr $0x18,%ecx <== NOT EXECUTED
135682: 8b 78 0c mov 0xc(%eax),%edi <== NOT EXECUTED
135685: 88 4f 30 mov %cl,0x30(%edi) <== NOT EXECUTED
135688: 89 d1 mov %edx,%ecx <== NOT EXECUTED
13568a: c1 e9 10 shr $0x10,%ecx <== NOT EXECUTED
13568d: 8b 78 0c mov 0xc(%eax),%edi <== NOT EXECUTED
135690: 88 4f 31 mov %cl,0x31(%edi) <== NOT EXECUTED
135693: 89 d1 mov %edx,%ecx <== NOT EXECUTED
135695: c1 e9 08 shr $0x8,%ecx <== NOT EXECUTED
135698: 8b 78 0c mov 0xc(%eax),%edi <== NOT EXECUTED
13569b: 88 4f 32 mov %cl,0x32(%edi) <== NOT EXECUTED
13569e: 8b 48 0c mov 0xc(%eax),%ecx <== NOT EXECUTED
1356a1: 88 51 33 mov %dl,0x33(%ecx) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
1356a4: c6 40 10 01 movb $0x1,0x10(%eax) <== NOT EXECUTED
rtems_rfs_inode_set_last_data_block (map->inode, map->last_data_block);
1356a8: 8b 53 20 mov 0x20(%ebx),%edx <== NOT EXECUTED
1356ab: 8b 43 04 mov 0x4(%ebx),%eax <== NOT EXECUTED
* @param block_count The last data block number.
*/
static inline void
rtems_rfs_inode_set_last_data_block (rtems_rfs_inode_handle* handle, uint32_t last_data_block)
{
rtems_rfs_write_u32 (&handle->node->last_data_block, last_data_block);
1356ae: 89 d1 mov %edx,%ecx <== NOT EXECUTED
1356b0: c1 e9 18 shr $0x18,%ecx <== NOT EXECUTED
1356b3: 8b 78 0c mov 0xc(%eax),%edi <== NOT EXECUTED
1356b6: 88 4f 34 mov %cl,0x34(%edi) <== NOT EXECUTED
1356b9: 89 d1 mov %edx,%ecx <== NOT EXECUTED
1356bb: c1 e9 10 shr $0x10,%ecx <== NOT EXECUTED
1356be: 8b 78 0c mov 0xc(%eax),%edi <== NOT EXECUTED
1356c1: 88 4f 35 mov %cl,0x35(%edi) <== NOT EXECUTED
1356c4: 89 d1 mov %edx,%ecx <== NOT EXECUTED
1356c6: c1 e9 08 shr $0x8,%ecx <== NOT EXECUTED
1356c9: 8b 78 0c mov 0xc(%eax),%edi <== NOT EXECUTED
1356cc: 88 4f 36 mov %cl,0x36(%edi) <== NOT EXECUTED
1356cf: 8b 48 0c mov 0xc(%eax),%ecx <== NOT EXECUTED
1356d2: 88 51 37 mov %dl,0x37(%ecx) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
1356d5: c6 40 10 01 movb $0x1,0x10(%eax) <== NOT EXECUTED
brc = rtems_rfs_inode_unload (fs, map->inode, true);
1356d9: 57 push %edi <== NOT EXECUTED
1356da: 6a 01 push $0x1 <== NOT EXECUTED
1356dc: ff 73 04 pushl 0x4(%ebx) <== NOT EXECUTED
1356df: 56 push %esi <== NOT EXECUTED
1356e0: e8 d7 33 00 00 call 138abc <rtems_rfs_inode_unload><== NOT EXECUTED
1356e5: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1356e8: 89 c7 mov %eax,%edi <== NOT EXECUTED
1356ea: f7 d7 not %edi <== NOT EXECUTED
1356ec: c1 ff 1f sar $0x1f,%edi <== NOT EXECUTED
1356ef: 21 c7 and %eax,%edi <== NOT EXECUTED
if (brc > 0)
rc = brc;
map->dirty = false;
1356f1: c6 03 00 movb $0x0,(%ebx) <== NOT EXECUTED
1356f4: eb 02 jmp 1356f8 <rtems_rfs_block_map_close+0x156><== NOT EXECUTED
1356f6: 31 ff xor %edi,%edi <== NOT EXECUTED
}
}
map->inode = NULL;
1356f8: c7 43 04 00 00 00 00 movl $0x0,0x4(%ebx) <== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_close (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
rtems_rfs_buffer_handle_release (fs, handle);
1356ff: 51 push %ecx <== NOT EXECUTED
135700: 51 push %ecx <== NOT EXECUTED
135701: 8d 43 38 lea 0x38(%ebx),%eax <== NOT EXECUTED
135704: 50 push %eax <== NOT EXECUTED
135705: 56 push %esi <== NOT EXECUTED
135706: e8 58 03 00 00 call 135a63 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
handle->dirty = false;
13570b: c6 43 38 00 movb $0x0,0x38(%ebx) <== NOT EXECUTED
handle->bnum = 0;
13570f: c7 43 3c 00 00 00 00 movl $0x0,0x3c(%ebx) <== NOT EXECUTED
handle->buffer = NULL;
135716: c7 43 40 00 00 00 00 movl $0x0,0x40(%ebx) <== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_close (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
rtems_rfs_buffer_handle_release (fs, handle);
13571d: 58 pop %eax <== NOT EXECUTED
13571e: 5a pop %edx <== NOT EXECUTED
13571f: 8d 43 44 lea 0x44(%ebx),%eax <== NOT EXECUTED
135722: 50 push %eax <== NOT EXECUTED
135723: 56 push %esi <== NOT EXECUTED
135724: e8 3a 03 00 00 call 135a63 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
handle->dirty = false;
135729: c6 43 44 00 movb $0x0,0x44(%ebx) <== NOT EXECUTED
handle->bnum = 0;
13572d: c7 43 48 00 00 00 00 movl $0x0,0x48(%ebx) <== NOT EXECUTED
handle->buffer = NULL;
135734: c7 43 4c 00 00 00 00 movl $0x0,0x4c(%ebx) <== NOT EXECUTED
rc = brc;
brc = rtems_rfs_buffer_handle_close (fs, &map->doubly_buffer);
if ((brc > 0) && (rc == 0))
rc = brc;
return rc;
}
13573b: 89 f8 mov %edi,%eax <== NOT EXECUTED
13573d: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
135740: 5b pop %ebx <== NOT EXECUTED
135741: 5e pop %esi <== NOT EXECUTED
135742: 5f pop %edi <== NOT EXECUTED
135743: c9 leave <== NOT EXECUTED
135744: c3 ret <== NOT EXECUTED
00134d64 <rtems_rfs_block_map_find>:
int
rtems_rfs_block_map_find (rtems_rfs_file_system* fs,
rtems_rfs_block_map* map,
rtems_rfs_block_pos* bpos,
rtems_rfs_block_no* block)
{
134d64: 55 push %ebp <== NOT EXECUTED
134d65: 89 e5 mov %esp,%ebp <== NOT EXECUTED
134d67: 57 push %edi <== NOT EXECUTED
134d68: 56 push %esi <== NOT EXECUTED
134d69: 53 push %ebx <== NOT EXECUTED
134d6a: 83 ec 3c sub $0x3c,%esp <== NOT EXECUTED
134d6d: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
134d70: 8b 75 10 mov 0x10(%ebp),%esi <== NOT EXECUTED
134d73: 8b 7d 14 mov 0x14(%ebp),%edi <== NOT EXECUTED
int rc = 0;
*block = 0;
134d76: c7 07 00 00 00 00 movl $0x0,(%edi) <== NOT EXECUTED
/*
* Range checking here makes the remaining logic simpler.
*/
if (rtems_rfs_block_pos_block_past_end (bpos, &map->size))
134d7c: 8b 06 mov (%esi),%eax <== NOT EXECUTED
134d7e: 85 c0 test %eax,%eax <== NOT EXECUTED
134d80: 74 0a je 134d8c <rtems_rfs_block_map_find+0x28><== NOT EXECUTED
134d82: 83 7b 08 00 cmpl $0x0,0x8(%ebx) <== NOT EXECUTED
134d86: 0f 84 d7 00 00 00 je 134e63 <rtems_rfs_block_map_find+0xff><== NOT EXECUTED
134d8c: 8b 53 08 mov 0x8(%ebx),%edx <== NOT EXECUTED
134d8f: 89 55 d4 mov %edx,-0x2c(%ebp) <== NOT EXECUTED
134d92: 39 d0 cmp %edx,%eax <== NOT EXECUTED
134d94: 0f 83 c9 00 00 00 jae 134e63 <rtems_rfs_block_map_find+0xff><== NOT EXECUTED
return ENXIO;
/*
* If the block position is the same and we have found the block just return it.
*/
if ((bpos->bno == map->bpos.bno) && (map->bpos.block != 0))
134d9a: 3b 43 10 cmp 0x10(%ebx),%eax <== NOT EXECUTED
134d9d: 75 0e jne 134dad <rtems_rfs_block_map_find+0x49><== NOT EXECUTED
134d9f: 8b 53 18 mov 0x18(%ebx),%edx <== NOT EXECUTED
134da2: 85 d2 test %edx,%edx <== NOT EXECUTED
134da4: 74 07 je 134dad <rtems_rfs_block_map_find+0x49><== NOT EXECUTED
{
*block = map->bpos.block;
134da6: 89 17 mov %edx,(%edi) <== NOT EXECUTED
return ENXIO;
/*
* If the block position is the same and we have found the block just return it.
*/
if ((bpos->bno == map->bpos.bno) && (map->bpos.block != 0))
134da8: e9 9c 00 00 00 jmp 134e49 <rtems_rfs_block_map_find+0xe5><== NOT EXECUTED
/*
* Determine the type of access we need to perform. If the number of blocks
* is less than or equal to the number of slots in the inode the blocks are
* directly accessed.
*/
if (map->size.count <= RTEMS_RFS_INODE_BLOCKS)
134dad: 83 7d d4 05 cmpl $0x5,-0x2c(%ebp) <== NOT EXECUTED
134db1: 77 0b ja 134dbe <rtems_rfs_block_map_find+0x5a><== NOT EXECUTED
{
*block = map->blocks[bpos->bno];
134db3: 8b 44 83 24 mov 0x24(%ebx,%eax,4),%eax <== NOT EXECUTED
134db7: 89 07 mov %eax,(%edi) <== NOT EXECUTED
134db9: e9 8b 00 00 00 jmp 134e49 <rtems_rfs_block_map_find+0xe5><== NOT EXECUTED
* The map is either singly or doubly indirect.
*/
rtems_rfs_block_no direct;
rtems_rfs_block_no singly;
direct = bpos->bno % fs->blocks_per_block;
134dbe: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
134dc1: 8b 49 30 mov 0x30(%ecx),%ecx <== NOT EXECUTED
134dc4: 89 4d d0 mov %ecx,-0x30(%ebp) <== NOT EXECUTED
134dc7: 31 d2 xor %edx,%edx <== NOT EXECUTED
134dc9: f7 f1 div %ecx <== NOT EXECUTED
134dcb: 89 55 cc mov %edx,-0x34(%ebp) <== NOT EXECUTED
134dce: 89 45 c4 mov %eax,-0x3c(%ebp) <== NOT EXECUTED
singly = bpos->bno / fs->blocks_per_block;
134dd1: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
if (map->size.count <= fs->block_map_singly_blocks)
134dd4: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED
134dd7: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
134dda: 3b 41 34 cmp 0x34(%ecx),%eax <== NOT EXECUTED
134ddd: 77 12 ja 134df1 <rtems_rfs_block_map_find+0x8d><== NOT EXECUTED
{
/*
* This is a single indirect table of blocks anchored off a slot in the
* inode.
*/
rc = rtems_rfs_block_find_indirect (fs,
134ddf: 51 push %ecx <== NOT EXECUTED
134de0: 51 push %ecx <== NOT EXECUTED
134de1: 8b 55 c4 mov -0x3c(%ebp),%edx <== NOT EXECUTED
134de4: 8b 4c 93 24 mov 0x24(%ebx,%edx,4),%ecx <== NOT EXECUTED
134de8: 8d 53 38 lea 0x38(%ebx),%edx <== NOT EXECUTED
134deb: 57 push %edi <== NOT EXECUTED
134dec: ff 75 cc pushl -0x34(%ebp) <== NOT EXECUTED
134def: eb 49 jmp 134e3a <rtems_rfs_block_map_find+0xd6><== NOT EXECUTED
}
if (rc == 0)
{
rtems_rfs_block_copy_bpos (&map->bpos, bpos);
map->bpos.block = *block;
134df1: b8 06 00 00 00 mov $0x6,%eax <== NOT EXECUTED
rtems_rfs_block_no doubly;
doubly = singly / fs->blocks_per_block;
singly %= fs->blocks_per_block;
if (map->size.count < fs->block_map_doubly_blocks)
134df6: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED
134df9: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
134dfc: 3b 51 38 cmp 0x38(%ecx),%edx <== NOT EXECUTED
134dff: 73 67 jae 134e68 <rtems_rfs_block_map_find+0x104><== NOT EXECUTED
* The map is doubly indirect.
*/
rtems_rfs_block_no doubly;
doubly = singly / fs->blocks_per_block;
singly %= fs->blocks_per_block;
134e01: 8b 45 c4 mov -0x3c(%ebp),%eax <== NOT EXECUTED
134e04: 31 d2 xor %edx,%edx <== NOT EXECUTED
134e06: f7 75 d0 divl -0x30(%ebp) <== NOT EXECUTED
134e09: 89 55 d4 mov %edx,-0x2c(%ebp) <== NOT EXECUTED
if (map->size.count < fs->block_map_doubly_blocks)
{
rc = rtems_rfs_block_find_indirect (fs,
134e0c: 8b 4c 83 24 mov 0x24(%ebx,%eax,4),%ecx <== NOT EXECUTED
* The map is doubly indirect.
*/
rtems_rfs_block_no doubly;
doubly = singly / fs->blocks_per_block;
singly %= fs->blocks_per_block;
134e10: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED
if (map->size.count < fs->block_map_doubly_blocks)
{
rc = rtems_rfs_block_find_indirect (fs,
134e13: 52 push %edx <== NOT EXECUTED
134e14: 52 push %edx <== NOT EXECUTED
134e15: 8d 53 44 lea 0x44(%ebx),%edx <== NOT EXECUTED
134e18: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
134e1b: 50 push %eax <== NOT EXECUTED
134e1c: ff 75 d4 pushl -0x2c(%ebp) <== NOT EXECUTED
134e1f: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
134e22: e8 c2 fe ff ff call 134ce9 <rtems_rfs_block_find_indirect><== NOT EXECUTED
&map->doubly_buffer,
map->blocks[doubly],
singly, &singly);
if (rc == 0)
134e27: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
134e2a: 85 c0 test %eax,%eax <== NOT EXECUTED
134e2c: 75 3a jne 134e68 <rtems_rfs_block_map_find+0x104><== NOT EXECUTED
{
rc = rtems_rfs_block_find_indirect (fs,
134e2e: 50 push %eax <== NOT EXECUTED
134e2f: 50 push %eax <== NOT EXECUTED
134e30: 8d 53 38 lea 0x38(%ebx),%edx <== NOT EXECUTED
134e33: 57 push %edi <== NOT EXECUTED
134e34: ff 75 cc pushl -0x34(%ebp) <== NOT EXECUTED
134e37: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED
134e3a: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
134e3d: e8 a7 fe ff ff call 134ce9 <rtems_rfs_block_find_indirect><== NOT EXECUTED
134e42: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
}
}
}
if (rc == 0)
134e45: 85 c0 test %eax,%eax <== NOT EXECUTED
134e47: 75 1f jne 134e68 <rtems_rfs_block_map_find+0x104><== NOT EXECUTED
{
rtems_rfs_block_copy_bpos (&map->bpos, bpos);
134e49: 8b 06 mov (%esi),%eax <== NOT EXECUTED
134e4b: 89 43 10 mov %eax,0x10(%ebx) <== NOT EXECUTED
134e4e: 8b 46 04 mov 0x4(%esi),%eax <== NOT EXECUTED
134e51: 89 43 14 mov %eax,0x14(%ebx) <== NOT EXECUTED
134e54: 8b 46 08 mov 0x8(%esi),%eax <== NOT EXECUTED
134e57: 89 43 18 mov %eax,0x18(%ebx) <== NOT EXECUTED
map->bpos.block = *block;
134e5a: 8b 07 mov (%edi),%eax <== NOT EXECUTED
134e5c: 89 43 18 mov %eax,0x18(%ebx) <== NOT EXECUTED
134e5f: 31 c0 xor %eax,%eax <== NOT EXECUTED
134e61: eb 05 jmp 134e68 <rtems_rfs_block_map_find+0x104><== NOT EXECUTED
134e63: b8 06 00 00 00 mov $0x6,%eax <== NOT EXECUTED
}
return rc;
}
134e68: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
134e6b: 5b pop %ebx <== NOT EXECUTED
134e6c: 5e pop %esi <== NOT EXECUTED
134e6d: 5f pop %edi <== NOT EXECUTED
134e6e: c9 leave <== NOT EXECUTED
134e6f: c3 ret <== NOT EXECUTED
00135212 <rtems_rfs_block_map_free_all>:
int
rtems_rfs_block_map_free_all (rtems_rfs_file_system* fs,
rtems_rfs_block_map* map)
{
135212: 55 push %ebp <== NOT EXECUTED
135213: 89 e5 mov %esp,%ebp <== NOT EXECUTED
135215: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
135218: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
return rtems_rfs_block_map_shrink (fs, map, map->size.count);
13521b: ff 70 08 pushl 0x8(%eax) <== NOT EXECUTED
13521e: 50 push %eax <== NOT EXECUTED
13521f: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
135222: e8 6e fd ff ff call 134f95 <rtems_rfs_block_map_shrink><== NOT EXECUTED
}
135227: c9 leave <== NOT EXECUTED
135228: c3 ret <== NOT EXECUTED
0013530a <rtems_rfs_block_map_grow>:
int
rtems_rfs_block_map_grow (rtems_rfs_file_system* fs,
rtems_rfs_block_map* map,
size_t blocks,
rtems_rfs_block_no* new_block)
{
13530a: 55 push %ebp <== NOT EXECUTED
13530b: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13530d: 57 push %edi <== NOT EXECUTED
13530e: 56 push %esi <== NOT EXECUTED
13530f: 53 push %ebx <== NOT EXECUTED
135310: 83 ec 3c sub $0x3c,%esp <== NOT EXECUTED
135313: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
135316: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_BLOCK_MAP_GROW))
printf ("rtems-rfs: block-map-grow: entry: blocks=%zd count=%" PRIu32 "\n",
blocks, map->size.count);
if ((map->size.count + blocks) >= rtems_rfs_fs_max_block_map_blocks (fs))
135319: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
13531c: 03 43 08 add 0x8(%ebx),%eax <== NOT EXECUTED
13531f: ba 1b 00 00 00 mov $0x1b,%edx <== NOT EXECUTED
135324: 3b 46 38 cmp 0x38(%esi),%eax <== NOT EXECUTED
135327: 0f 83 6b 02 00 00 jae 135598 <rtems_rfs_block_map_grow+0x28e><== NOT EXECUTED
&map->blocks[singly],
upping);
}
else
{
rc = rtems_rfs_buffer_handle_request (fs, &map->singly_buffer,
13532d: 8d 43 38 lea 0x38(%ebx),%eax <== NOT EXECUTED
135330: 89 45 c8 mov %eax,-0x38(%ebp) <== NOT EXECUTED
return rc;
}
}
else
{
rc = rtems_rfs_buffer_handle_request (fs, &map->doubly_buffer,
135333: 8d 53 44 lea 0x44(%ebx),%edx <== NOT EXECUTED
135336: 89 55 c4 mov %edx,-0x3c(%ebp) <== NOT EXECUTED
135339: c7 45 cc 00 00 00 00 movl $0x0,-0x34(%ebp) <== NOT EXECUTED
135340: e9 41 02 00 00 jmp 135586 <rtems_rfs_block_map_grow+0x27c><== NOT EXECUTED
/*
* Allocate the block. If an indirect block is needed and cannot be
* allocated free this block.
*/
rc = rtems_rfs_group_bitmap_alloc (fs, map->last_data_block,
135345: 8d 4d e4 lea -0x1c(%ebp),%ecx <== NOT EXECUTED
135348: 51 push %ecx <== NOT EXECUTED
135349: 6a 00 push $0x0 <== NOT EXECUTED
13534b: ff 73 20 pushl 0x20(%ebx) <== NOT EXECUTED
13534e: 56 push %esi <== NOT EXECUTED
13534f: e8 5f 32 00 00 call 1385b3 <rtems_rfs_group_bitmap_alloc><== NOT EXECUTED
false, &block);
if (rc > 0)
135354: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
135357: 85 c0 test %eax,%eax <== NOT EXECUTED
135359: 0f 8f 37 02 00 00 jg 135596 <rtems_rfs_block_map_grow+0x28c><== NOT EXECUTED
return rc;
if (map->size.count < RTEMS_RFS_INODE_BLOCKS)
13535f: 8b 4b 08 mov 0x8(%ebx),%ecx <== NOT EXECUTED
135362: 83 f9 04 cmp $0x4,%ecx <== NOT EXECUTED
135365: 77 0c ja 135373 <rtems_rfs_block_map_grow+0x69><== NOT EXECUTED
map->blocks[map->size.count] = block;
135367: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
13536a: 89 44 8b 24 mov %eax,0x24(%ebx,%ecx,4) <== NOT EXECUTED
13536e: e9 ef 01 00 00 jmp 135562 <rtems_rfs_block_map_grow+0x258><== NOT EXECUTED
* Single indirect access is occuring. It could still be doubly indirect.
*/
rtems_rfs_block_no direct;
rtems_rfs_block_no singly;
direct = map->size.count % fs->blocks_per_block;
135373: 8b 7e 30 mov 0x30(%esi),%edi <== NOT EXECUTED
135376: 89 7d d4 mov %edi,-0x2c(%ebp) <== NOT EXECUTED
135379: 89 c8 mov %ecx,%eax <== NOT EXECUTED
13537b: 31 d2 xor %edx,%edx <== NOT EXECUTED
13537d: f7 f7 div %edi <== NOT EXECUTED
13537f: 89 55 d0 mov %edx,-0x30(%ebp) <== NOT EXECUTED
singly = map->size.count / fs->blocks_per_block;
if (map->size.count < fs->block_map_singly_blocks)
135382: 3b 4e 34 cmp 0x34(%esi),%ecx <== NOT EXECUTED
135385: 73 39 jae 1353c0 <rtems_rfs_block_map_grow+0xb6><== NOT EXECUTED
* Singly indirect tables are being used. Allocate a new block for a
* mapping table if direct is 0 or we are moving up (upping). If upping
* move the direct blocks into the table and if not this is the first
* entry of a new block.
*/
if ((direct == 0) ||
135387: 85 d2 test %edx,%edx <== NOT EXECUTED
135389: 74 09 je 135394 <rtems_rfs_block_map_grow+0x8a><== NOT EXECUTED
13538b: 83 fa 05 cmp $0x5,%edx <== NOT EXECUTED
13538e: 75 25 jne 1353b5 <rtems_rfs_block_map_grow+0xab><== NOT EXECUTED
135390: 85 c0 test %eax,%eax <== NOT EXECUTED
135392: 75 21 jne 1353b5 <rtems_rfs_block_map_grow+0xab><== NOT EXECUTED
/*
* Upping is when we move from direct to singly indirect.
*/
bool upping;
upping = map->size.count == RTEMS_RFS_INODE_BLOCKS;
rc = rtems_rfs_block_map_indirect_alloc (fs, map,
135394: 57 push %edi <== NOT EXECUTED
135395: 57 push %edi <== NOT EXECUTED
135396: 31 d2 xor %edx,%edx <== NOT EXECUTED
135398: 83 f9 05 cmp $0x5,%ecx <== NOT EXECUTED
13539b: 0f 94 c2 sete %dl <== NOT EXECUTED
13539e: 52 push %edx <== NOT EXECUTED
13539f: 8d 44 83 24 lea 0x24(%ebx,%eax,4),%eax <== NOT EXECUTED
1353a3: 50 push %eax <== NOT EXECUTED
1353a4: 8b 4d c8 mov -0x38(%ebp),%ecx <== NOT EXECUTED
1353a7: 89 da mov %ebx,%edx <== NOT EXECUTED
1353a9: 89 f0 mov %esi,%eax <== NOT EXECUTED
1353ab: e8 79 fe ff ff call 135229 <rtems_rfs_block_map_indirect_alloc><== NOT EXECUTED
1353b0: e9 4a 01 00 00 jmp 1354ff <rtems_rfs_block_map_grow+0x1f5><== NOT EXECUTED
&map->blocks[singly],
upping);
}
else
{
rc = rtems_rfs_buffer_handle_request (fs, &map->singly_buffer,
1353b5: 6a 01 push $0x1 <== NOT EXECUTED
1353b7: ff 74 83 24 pushl 0x24(%ebx,%eax,4) <== NOT EXECUTED
1353bb: e9 36 01 00 00 jmp 1354f6 <rtems_rfs_block_map_grow+0x1ec><== NOT EXECUTED
* Doubly indirect tables are being used.
*/
rtems_rfs_block_no doubly;
rtems_rfs_block_no singly_block;
doubly = singly / fs->blocks_per_block;
1353c0: 31 d2 xor %edx,%edx <== NOT EXECUTED
1353c2: f7 75 d4 divl -0x2c(%ebp) <== NOT EXECUTED
1353c5: 89 d7 mov %edx,%edi <== NOT EXECUTED
1353c7: 89 45 d4 mov %eax,-0x2c(%ebp) <== NOT EXECUTED
* Allocate a new block for a singly indirect table if direct is 0 as
* it is the first entry of a new block. We may also need to allocate a
* doubly indirect block as well. Both always occur when direct is 0
* and the doubly indirect block when singly is 0.
*/
if (direct == 0)
1353ca: 83 7d d0 00 cmpl $0x0,-0x30(%ebp) <== NOT EXECUTED
1353ce: 0f 85 ce 00 00 00 jne 1354a2 <rtems_rfs_block_map_grow+0x198><== NOT EXECUTED
{
rc = rtems_rfs_block_map_indirect_alloc (fs, map,
1353d4: 52 push %edx <== NOT EXECUTED
1353d5: 52 push %edx <== NOT EXECUTED
1353d6: 6a 00 push $0x0 <== NOT EXECUTED
1353d8: 8d 4d e0 lea -0x20(%ebp),%ecx <== NOT EXECUTED
1353db: 51 push %ecx <== NOT EXECUTED
1353dc: 8b 4d c8 mov -0x38(%ebp),%ecx <== NOT EXECUTED
1353df: 89 da mov %ebx,%edx <== NOT EXECUTED
1353e1: 89 f0 mov %esi,%eax <== NOT EXECUTED
1353e3: e8 41 fe ff ff call 135229 <rtems_rfs_block_map_indirect_alloc><== NOT EXECUTED
&map->singly_buffer,
&singly_block,
false);
if (rc > 0)
1353e8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1353eb: 85 c0 test %eax,%eax <== NOT EXECUTED
1353ed: 0f 8f 13 01 00 00 jg 135506 <rtems_rfs_block_map_grow+0x1fc><== NOT EXECUTED
/*
* Allocate a new block for a doubly indirect table if singly is 0 as
* it is the first entry of a new singly indirect block.
*/
if ((singly == 0) ||
1353f3: 85 ff test %edi,%edi <== NOT EXECUTED
1353f5: 74 0b je 135402 <rtems_rfs_block_map_grow+0xf8><== NOT EXECUTED
1353f7: 83 ff 05 cmp $0x5,%edi <== NOT EXECUTED
1353fa: 75 2b jne 135427 <rtems_rfs_block_map_grow+0x11d><== NOT EXECUTED
1353fc: 83 7d d4 00 cmpl $0x0,-0x2c(%ebp) <== NOT EXECUTED
135400: 75 25 jne 135427 <rtems_rfs_block_map_grow+0x11d><== NOT EXECUTED
((doubly == 0) && (singly == RTEMS_RFS_INODE_BLOCKS)))
{
bool upping;
upping = map->size.count == fs->block_map_singly_blocks;
rc = rtems_rfs_block_map_indirect_alloc (fs, map,
135402: 50 push %eax <== NOT EXECUTED
135403: 50 push %eax <== NOT EXECUTED
135404: 8b 43 08 mov 0x8(%ebx),%eax <== NOT EXECUTED
135407: 3b 46 34 cmp 0x34(%esi),%eax <== NOT EXECUTED
13540a: 0f 94 c0 sete %al <== NOT EXECUTED
13540d: 0f b6 c0 movzbl %al,%eax <== NOT EXECUTED
135410: 50 push %eax <== NOT EXECUTED
135411: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED
135414: 8d 44 93 24 lea 0x24(%ebx,%edx,4),%eax <== NOT EXECUTED
135418: 50 push %eax <== NOT EXECUTED
135419: 8b 4d c4 mov -0x3c(%ebp),%ecx <== NOT EXECUTED
13541c: 89 da mov %ebx,%edx <== NOT EXECUTED
13541e: 89 f0 mov %esi,%eax <== NOT EXECUTED
135420: e8 04 fe ff ff call 135229 <rtems_rfs_block_map_indirect_alloc><== NOT EXECUTED
135425: eb 12 jmp 135439 <rtems_rfs_block_map_grow+0x12f><== NOT EXECUTED
return rc;
}
}
else
{
rc = rtems_rfs_buffer_handle_request (fs, &map->doubly_buffer,
135427: 6a 01 push $0x1 <== NOT EXECUTED
135429: 8b 4d d4 mov -0x2c(%ebp),%ecx <== NOT EXECUTED
13542c: ff 74 8b 24 pushl 0x24(%ebx,%ecx,4) <== NOT EXECUTED
135430: ff 75 c4 pushl -0x3c(%ebp) <== NOT EXECUTED
135433: 56 push %esi <== NOT EXECUTED
135434: e8 21 07 00 00 call 135b5a <rtems_rfs_buffer_handle_request><== NOT EXECUTED
map->blocks[doubly], true);
if (rc > 0)
135439: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13543c: 85 c0 test %eax,%eax <== NOT EXECUTED
13543e: 7e 1d jle 13545d <rtems_rfs_block_map_grow+0x153><== NOT EXECUTED
{
rtems_rfs_group_bitmap_free (fs, false, singly_block);
135440: 57 push %edi <== NOT EXECUTED
135441: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
135444: 6a 00 push $0x0 <== NOT EXECUTED
135446: 56 push %esi <== NOT EXECUTED
135447: 89 45 c0 mov %eax,-0x40(%ebp) <== NOT EXECUTED
13544a: e8 fb 30 00 00 call 13854a <rtems_rfs_group_bitmap_free><== NOT EXECUTED
rtems_rfs_group_bitmap_free (fs, false, block);
13544f: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
135452: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
135455: 6a 00 push $0x0 <== NOT EXECUTED
135457: 56 push %esi <== NOT EXECUTED
135458: e9 b3 00 00 00 jmp 135510 <rtems_rfs_block_map_grow+0x206><== NOT EXECUTED
return rc;
}
}
rtems_rfs_block_set_number (&map->doubly_buffer,
13545d: 8d 14 bd 00 00 00 00 lea 0x0(,%edi,4),%edx <== NOT EXECUTED
135464: 8b 43 4c mov 0x4c(%ebx),%eax <== NOT EXECUTED
135467: 8b 40 20 mov 0x20(%eax),%eax <== NOT EXECUTED
13546a: 0f b6 4d e3 movzbl -0x1d(%ebp),%ecx <== NOT EXECUTED
13546e: 88 0c b8 mov %cl,(%eax,%edi,4) <== NOT EXECUTED
135471: 8b 43 4c mov 0x4c(%ebx),%eax <== NOT EXECUTED
135474: 8b 40 20 mov 0x20(%eax),%eax <== NOT EXECUTED
135477: 0f b7 4d e2 movzwl -0x1e(%ebp),%ecx <== NOT EXECUTED
13547b: 88 4c 10 01 mov %cl,0x1(%eax,%edx,1) <== NOT EXECUTED
13547f: 8b 43 4c mov 0x4c(%ebx),%eax <== NOT EXECUTED
135482: 8b 48 20 mov 0x20(%eax),%ecx <== NOT EXECUTED
135485: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
135488: c1 e8 08 shr $0x8,%eax <== NOT EXECUTED
13548b: 88 44 b9 02 mov %al,0x2(%ecx,%edi,4) <== NOT EXECUTED
13548f: 8b 43 4c mov 0x4c(%ebx),%eax <== NOT EXECUTED
135492: 8b 40 20 mov 0x20(%eax),%eax <== NOT EXECUTED
135495: 8b 4d e0 mov -0x20(%ebp),%ecx <== NOT EXECUTED
135498: 88 4c 10 03 mov %cl,0x3(%eax,%edx,1) <== NOT EXECUTED
13549c: c6 43 44 01 movb $0x1,0x44(%ebx) <== NOT EXECUTED
1354a0: eb 7b jmp 13551d <rtems_rfs_block_map_grow+0x213><== NOT EXECUTED
singly,
singly_block);
}
else
{
rc = rtems_rfs_buffer_handle_request (fs,
1354a2: 6a 01 push $0x1 <== NOT EXECUTED
1354a4: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED
1354a7: ff 74 83 24 pushl 0x24(%ebx,%eax,4) <== NOT EXECUTED
1354ab: ff 75 c4 pushl -0x3c(%ebp) <== NOT EXECUTED
1354ae: 56 push %esi <== NOT EXECUTED
1354af: e8 a6 06 00 00 call 135b5a <rtems_rfs_buffer_handle_request><== NOT EXECUTED
&map->doubly_buffer,
map->blocks[doubly],
true);
if (rc > 0)
1354b4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1354b7: 85 c0 test %eax,%eax <== NOT EXECUTED
1354b9: 7f 4b jg 135506 <rtems_rfs_block_map_grow+0x1fc><== NOT EXECUTED
{
rtems_rfs_group_bitmap_free (fs, false, block);
return rc;
}
singly_block = rtems_rfs_block_get_number (&map->doubly_buffer,
1354bb: 8b 43 4c mov 0x4c(%ebx),%eax <== NOT EXECUTED
1354be: 8b 50 20 mov 0x20(%eax),%edx <== NOT EXECUTED
1354c1: 8d 0c bd 00 00 00 00 lea 0x0(,%edi,4),%ecx <== NOT EXECUTED
1354c8: 89 4d d4 mov %ecx,-0x2c(%ebp) <== NOT EXECUTED
1354cb: 0f b6 44 0a 03 movzbl 0x3(%edx,%ecx,1),%eax <== NOT EXECUTED
1354d0: 0f b6 0c ba movzbl (%edx,%edi,4),%ecx <== NOT EXECUTED
1354d4: c1 e1 18 shl $0x18,%ecx <== NOT EXECUTED
1354d7: 09 c8 or %ecx,%eax <== NOT EXECUTED
1354d9: 8b 4d d4 mov -0x2c(%ebp),%ecx <== NOT EXECUTED
1354dc: 0f b6 4c 0a 01 movzbl 0x1(%edx,%ecx,1),%ecx <== NOT EXECUTED
1354e1: c1 e1 10 shl $0x10,%ecx <== NOT EXECUTED
1354e4: 09 c8 or %ecx,%eax <== NOT EXECUTED
1354e6: 0f b6 54 ba 02 movzbl 0x2(%edx,%edi,4),%edx <== NOT EXECUTED
1354eb: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
1354ee: 09 d0 or %edx,%eax <== NOT EXECUTED
1354f0: 89 45 e0 mov %eax,-0x20(%ebp) <== NOT EXECUTED
singly);
rc = rtems_rfs_buffer_handle_request (fs, &map->singly_buffer,
1354f3: 6a 01 push $0x1 <== NOT EXECUTED
1354f5: 50 push %eax <== NOT EXECUTED
1354f6: ff 75 c8 pushl -0x38(%ebp) <== NOT EXECUTED
1354f9: 56 push %esi <== NOT EXECUTED
1354fa: e8 5b 06 00 00 call 135b5a <rtems_rfs_buffer_handle_request><== NOT EXECUTED
singly_block, true);
if (rc > 0)
1354ff: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
135502: 85 c0 test %eax,%eax <== NOT EXECUTED
135504: 7e 17 jle 13551d <rtems_rfs_block_map_grow+0x213><== NOT EXECUTED
{
rtems_rfs_group_bitmap_free (fs, false, block);
135506: 53 push %ebx <== NOT EXECUTED
135507: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
13550a: 6a 00 push $0x0 <== NOT EXECUTED
13550c: 56 push %esi <== NOT EXECUTED
13550d: 89 45 c0 mov %eax,-0x40(%ebp) <== NOT EXECUTED
135510: e8 35 30 00 00 call 13854a <rtems_rfs_group_bitmap_free><== NOT EXECUTED
return rc;
135515: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
135518: 8b 55 c0 mov -0x40(%ebp),%edx <== NOT EXECUTED
13551b: eb 7b jmp 135598 <rtems_rfs_block_map_grow+0x28e><== NOT EXECUTED
}
}
}
rtems_rfs_block_set_number (&map->singly_buffer, direct, block);
13551d: 8b 55 d0 mov -0x30(%ebp),%edx <== NOT EXECUTED
135520: c1 e2 02 shl $0x2,%edx <== NOT EXECUTED
135523: 8b 43 40 mov 0x40(%ebx),%eax <== NOT EXECUTED
135526: 8b 40 20 mov 0x20(%eax),%eax <== NOT EXECUTED
135529: 0f b6 4d e7 movzbl -0x19(%ebp),%ecx <== NOT EXECUTED
13552d: 8b 7d d0 mov -0x30(%ebp),%edi <== NOT EXECUTED
135530: 88 0c b8 mov %cl,(%eax,%edi,4) <== NOT EXECUTED
135533: 8b 43 40 mov 0x40(%ebx),%eax <== NOT EXECUTED
135536: 8b 40 20 mov 0x20(%eax),%eax <== NOT EXECUTED
135539: 0f b7 4d e6 movzwl -0x1a(%ebp),%ecx <== NOT EXECUTED
13553d: 88 4c 10 01 mov %cl,0x1(%eax,%edx,1) <== NOT EXECUTED
135541: 8b 43 40 mov 0x40(%ebx),%eax <== NOT EXECUTED
135544: 8b 48 20 mov 0x20(%eax),%ecx <== NOT EXECUTED
135547: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
13554a: c1 e8 08 shr $0x8,%eax <== NOT EXECUTED
13554d: 88 44 b9 02 mov %al,0x2(%ecx,%edi,4) <== NOT EXECUTED
135551: 8b 43 40 mov 0x40(%ebx),%eax <== NOT EXECUTED
135554: 8b 40 20 mov 0x20(%eax),%eax <== NOT EXECUTED
135557: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED
13555a: 88 4c 10 03 mov %cl,0x3(%eax,%edx,1) <== NOT EXECUTED
13555e: c6 43 38 01 movb $0x1,0x38(%ebx) <== NOT EXECUTED
}
map->size.count++;
135562: ff 43 08 incl 0x8(%ebx) <== NOT EXECUTED
map->size.offset = 0;
135565: c7 43 0c 00 00 00 00 movl $0x0,0xc(%ebx) <== NOT EXECUTED
if (b == 0)
13556c: 83 7d cc 00 cmpl $0x0,-0x34(%ebp) <== NOT EXECUTED
135570: 75 08 jne 13557a <rtems_rfs_block_map_grow+0x270><== NOT EXECUTED
*new_block = block;
135572: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
135575: 8b 55 14 mov 0x14(%ebp),%edx <== NOT EXECUTED
135578: 89 02 mov %eax,(%edx) <== NOT EXECUTED
map->last_data_block = block;
13557a: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
13557d: 89 43 20 mov %eax,0x20(%ebx) <== NOT EXECUTED
map->dirty = true;
135580: c6 03 01 movb $0x1,(%ebx) <== NOT EXECUTED
/*
* Allocate a block at a time. The buffer handles hold the blocks so adding
* this way does not thrash the cache with lots of requests.
*/
for (b = 0; b < blocks; b++)
135583: ff 45 cc incl -0x34(%ebp) <== NOT EXECUTED
135586: 8b 4d 10 mov 0x10(%ebp),%ecx <== NOT EXECUTED
135589: 39 4d cc cmp %ecx,-0x34(%ebp) <== NOT EXECUTED
13558c: 0f 82 b3 fd ff ff jb 135345 <rtems_rfs_block_map_grow+0x3b><== NOT EXECUTED
135592: 31 d2 xor %edx,%edx <== NOT EXECUTED
135594: eb 02 jmp 135598 <rtems_rfs_block_map_grow+0x28e><== NOT EXECUTED
135596: 89 c2 mov %eax,%edx <== NOT EXECUTED
map->last_data_block = block;
map->dirty = true;
}
return 0;
}
135598: 89 d0 mov %edx,%eax <== NOT EXECUTED
13559a: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13559d: 5b pop %ebx <== NOT EXECUTED
13559e: 5e pop %esi <== NOT EXECUTED
13559f: 5f pop %edi <== NOT EXECUTED
1355a0: c9 leave <== NOT EXECUTED
1355a1: c3 ret <== NOT EXECUTED
00135229 <rtems_rfs_block_map_indirect_alloc>:
rtems_rfs_block_map_indirect_alloc (rtems_rfs_file_system* fs,
rtems_rfs_block_map* map,
rtems_rfs_buffer_handle* buffer,
rtems_rfs_block_no* block,
bool upping)
{
135229: 55 push %ebp <== NOT EXECUTED
13522a: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13522c: 57 push %edi <== NOT EXECUTED
13522d: 56 push %esi <== NOT EXECUTED
13522e: 53 push %ebx <== NOT EXECUTED
13522f: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED
135232: 89 c7 mov %eax,%edi <== NOT EXECUTED
135234: 89 d6 mov %edx,%esi <== NOT EXECUTED
135236: 89 cb mov %ecx,%ebx <== NOT EXECUTED
135238: 8a 45 0c mov 0xc(%ebp),%al <== NOT EXECUTED
13523b: 88 45 d7 mov %al,-0x29(%ebp) <== NOT EXECUTED
int rc;
/*
* Save the new block locally because upping can have *block pointing to the
* slots which are cleared when upping.
*/
rc = rtems_rfs_group_bitmap_alloc (fs, map->last_map_block, false, &new_block);
13523e: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
135241: 50 push %eax <== NOT EXECUTED
135242: 6a 00 push $0x0 <== NOT EXECUTED
135244: ff 72 1c pushl 0x1c(%edx) <== NOT EXECUTED
135247: 57 push %edi <== NOT EXECUTED
135248: e8 66 33 00 00 call 1385b3 <rtems_rfs_group_bitmap_alloc><== NOT EXECUTED
13524d: 89 c2 mov %eax,%edx <== NOT EXECUTED
if (rc > 0)
13524f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
135252: 85 c0 test %eax,%eax <== NOT EXECUTED
135254: 0f 8f a6 00 00 00 jg 135300 <rtems_rfs_block_map_indirect_alloc+0xd7><== NOT EXECUTED
return rc;
rc = rtems_rfs_buffer_handle_request (fs, buffer, new_block, false);
13525a: 6a 00 push $0x0 <== NOT EXECUTED
13525c: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
13525f: 53 push %ebx <== NOT EXECUTED
135260: 57 push %edi <== NOT EXECUTED
135261: e8 f4 08 00 00 call 135b5a <rtems_rfs_buffer_handle_request><== NOT EXECUTED
if (rc > 0)
135266: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
135269: 85 c0 test %eax,%eax <== NOT EXECUTED
13526b: 7e 17 jle 135284 <rtems_rfs_block_map_indirect_alloc+0x5b><== NOT EXECUTED
{
rtems_rfs_group_bitmap_free (fs, false, new_block);
13526d: 51 push %ecx <== NOT EXECUTED
13526e: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
135271: 6a 00 push $0x0 <== NOT EXECUTED
135273: 57 push %edi <== NOT EXECUTED
135274: 89 45 d0 mov %eax,-0x30(%ebp) <== NOT EXECUTED
135277: e8 ce 32 00 00 call 13854a <rtems_rfs_group_bitmap_free><== NOT EXECUTED
return rc;
13527c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13527f: 8b 55 d0 mov -0x30(%ebp),%edx <== NOT EXECUTED
135282: eb 7c jmp 135300 <rtems_rfs_block_map_indirect_alloc+0xd7><== NOT EXECUTED
}
memset (rtems_rfs_buffer_data (buffer), 0xff, rtems_rfs_fs_block_size (fs));
135284: 8b 4f 08 mov 0x8(%edi),%ecx <== NOT EXECUTED
135287: 8b 43 08 mov 0x8(%ebx),%eax <== NOT EXECUTED
13528a: 8b 50 20 mov 0x20(%eax),%edx <== NOT EXECUTED
13528d: b0 ff mov $0xff,%al <== NOT EXECUTED
13528f: 89 d7 mov %edx,%edi <== NOT EXECUTED
135291: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED
if (upping)
135293: 80 7d d7 00 cmpb $0x0,-0x29(%ebp) <== NOT EXECUTED
135297: 74 57 je 1352f0 <rtems_rfs_block_map_indirect_alloc+0xc7><== NOT EXECUTED
135299: 31 c0 xor %eax,%eax <== NOT EXECUTED
int b;
if (rtems_rfs_trace (RTEMS_RFS_TRACE_BLOCK_MAP_GROW))
printf ("rtems-rfs: block-map-grow: upping: block-count=%" PRId32 "\n",
map->size.count);
for (b = 0; b < RTEMS_RFS_INODE_BLOCKS; b++)
rtems_rfs_block_set_number (buffer, b, map->blocks[b]);
13529b: 8b 53 08 mov 0x8(%ebx),%edx <== NOT EXECUTED
13529e: 8b 52 20 mov 0x20(%edx),%edx <== NOT EXECUTED
1352a1: 0f b6 4c 06 27 movzbl 0x27(%esi,%eax,1),%ecx <== NOT EXECUTED
1352a6: 88 0c 02 mov %cl,(%edx,%eax,1) <== NOT EXECUTED
1352a9: 8b 53 08 mov 0x8(%ebx),%edx <== NOT EXECUTED
1352ac: 8b 52 20 mov 0x20(%edx),%edx <== NOT EXECUTED
1352af: 0f b7 4c 06 26 movzwl 0x26(%esi,%eax,1),%ecx <== NOT EXECUTED
1352b4: 88 4c 02 01 mov %cl,0x1(%edx,%eax,1) <== NOT EXECUTED
1352b8: 8b 53 08 mov 0x8(%ebx),%edx <== NOT EXECUTED
1352bb: 8b 4a 20 mov 0x20(%edx),%ecx <== NOT EXECUTED
1352be: 8b 54 06 24 mov 0x24(%esi,%eax,1),%edx <== NOT EXECUTED
1352c2: c1 ea 08 shr $0x8,%edx <== NOT EXECUTED
1352c5: 88 54 01 02 mov %dl,0x2(%ecx,%eax,1) <== NOT EXECUTED
1352c9: 8b 53 08 mov 0x8(%ebx),%edx <== NOT EXECUTED
1352cc: 8b 52 20 mov 0x20(%edx),%edx <== NOT EXECUTED
1352cf: 8b 4c 06 24 mov 0x24(%esi,%eax,1),%ecx <== NOT EXECUTED
1352d3: 88 4c 02 03 mov %cl,0x3(%edx,%eax,1) <== NOT EXECUTED
1352d7: c6 03 01 movb $0x1,(%ebx) <== NOT EXECUTED
1352da: 83 c0 04 add $0x4,%eax <== NOT EXECUTED
{
int b;
if (rtems_rfs_trace (RTEMS_RFS_TRACE_BLOCK_MAP_GROW))
printf ("rtems-rfs: block-map-grow: upping: block-count=%" PRId32 "\n",
map->size.count);
for (b = 0; b < RTEMS_RFS_INODE_BLOCKS; b++)
1352dd: 83 f8 14 cmp $0x14,%eax <== NOT EXECUTED
1352e0: 75 b9 jne 13529b <rtems_rfs_block_map_indirect_alloc+0x72><== NOT EXECUTED
rtems_rfs_block_set_number (buffer, b, map->blocks[b]);
memset (map->blocks, 0, sizeof (map->blocks));
1352e2: 8d 56 24 lea 0x24(%esi),%edx <== NOT EXECUTED
1352e5: b9 05 00 00 00 mov $0x5,%ecx <== NOT EXECUTED
1352ea: 30 c0 xor %al,%al <== NOT EXECUTED
1352ec: 89 d7 mov %edx,%edi <== NOT EXECUTED
1352ee: f3 ab rep stos %eax,%es:(%edi) <== NOT EXECUTED
}
rtems_rfs_buffer_mark_dirty (buffer);
1352f0: c6 03 01 movb $0x1,(%ebx) <== NOT EXECUTED
*block = new_block;
1352f3: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
1352f6: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
1352f9: 89 02 mov %eax,(%edx) <== NOT EXECUTED
map->last_map_block = new_block;
1352fb: 89 46 1c mov %eax,0x1c(%esi) <== NOT EXECUTED
1352fe: 31 d2 xor %edx,%edx <== NOT EXECUTED
return 0;
}
135300: 89 d0 mov %edx,%eax <== NOT EXECUTED
135302: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
135305: 5b pop %ebx <== NOT EXECUTED
135306: 5e pop %esi <== NOT EXECUTED
135307: 5f pop %edi <== NOT EXECUTED
135308: c9 leave <== NOT EXECUTED
135309: c3 ret <== NOT EXECUTED
00134f04 <rtems_rfs_block_map_indirect_shrink>:
rtems_rfs_block_map_indirect_shrink (rtems_rfs_file_system* fs,
rtems_rfs_block_map* map,
rtems_rfs_buffer_handle* buffer,
rtems_rfs_block_no indirect,
rtems_rfs_block_no index)
{
134f04: 55 push %ebp <== NOT EXECUTED
134f05: 89 e5 mov %esp,%ebp <== NOT EXECUTED
134f07: 57 push %edi <== NOT EXECUTED
134f08: 56 push %esi <== NOT EXECUTED
134f09: 53 push %ebx <== NOT EXECUTED
134f0a: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
134f0d: 89 d3 mov %edx,%ebx <== NOT EXECUTED
134f0f: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
134f12: 8b 75 0c mov 0xc(%ebp),%esi <== NOT EXECUTED
* block to be freed and the indirect block is now also free, or we have only
* one indirect table and we can fit the remaining blocks into the inode,
* then either move to the next indirect block or move the remaining blocks
* into the inode and free the indirect table's block.
*/
if ((index == 0) ||
134f15: 85 f6 test %esi,%esi <== NOT EXECUTED
134f17: 74 0d je 134f26 <rtems_rfs_block_map_indirect_shrink+0x22><== NOT EXECUTED
134f19: 83 fe 05 cmp $0x5,%esi <== NOT EXECUTED
134f1c: 75 04 jne 134f22 <rtems_rfs_block_map_indirect_shrink+0x1e><== NOT EXECUTED
134f1e: 85 d2 test %edx,%edx <== NOT EXECUTED
134f20: 74 04 je 134f26 <rtems_rfs_block_map_indirect_shrink+0x22><== NOT EXECUTED
134f22: 31 c0 xor %eax,%eax <== NOT EXECUTED
134f24: eb 67 jmp 134f8d <rtems_rfs_block_map_indirect_shrink+0x89><== NOT EXECUTED
((indirect == 0) && (index == RTEMS_RFS_INODE_BLOCKS)))
{
rtems_rfs_block_no block_to_free = map->blocks[indirect];
134f26: 8b 7c 93 24 mov 0x24(%ebx,%edx,4),%edi <== NOT EXECUTED
134f2a: 89 7d e4 mov %edi,-0x1c(%ebp) <== NOT EXECUTED
if ((indirect == 0) && (index == RTEMS_RFS_INODE_BLOCKS))
134f2d: 83 fe 05 cmp $0x5,%esi <== NOT EXECUTED
134f30: 75 3a jne 134f6c <rtems_rfs_block_map_indirect_shrink+0x68><== NOT EXECUTED
134f32: 85 d2 test %edx,%edx <== NOT EXECUTED
134f34: 75 36 jne 134f6c <rtems_rfs_block_map_indirect_shrink+0x68><== NOT EXECUTED
/*
* Move to direct inode access.
*/
int b;
for (b = 0; b < RTEMS_RFS_INODE_BLOCKS; b++)
map->blocks[b] = rtems_rfs_block_get_number (buffer, b);
134f36: 8b 51 08 mov 0x8(%ecx),%edx <== NOT EXECUTED
134f39: 8b 72 20 mov 0x20(%edx),%esi <== NOT EXECUTED
134f3c: 31 c9 xor %ecx,%ecx <== NOT EXECUTED
134f3e: 0f b6 14 8e movzbl (%esi,%ecx,4),%edx <== NOT EXECUTED
134f42: c1 e2 18 shl $0x18,%edx <== NOT EXECUTED
134f45: 0f b6 7c 8e 01 movzbl 0x1(%esi,%ecx,4),%edi <== NOT EXECUTED
134f4a: c1 e7 10 shl $0x10,%edi <== NOT EXECUTED
134f4d: 09 fa or %edi,%edx <== NOT EXECUTED
134f4f: 0f b6 7c 8e 03 movzbl 0x3(%esi,%ecx,4),%edi <== NOT EXECUTED
134f54: 09 fa or %edi,%edx <== NOT EXECUTED
134f56: 0f b6 7c 8e 02 movzbl 0x2(%esi,%ecx,4),%edi <== NOT EXECUTED
134f5b: c1 e7 08 shl $0x8,%edi <== NOT EXECUTED
134f5e: 09 fa or %edi,%edx <== NOT EXECUTED
134f60: 89 54 8b 24 mov %edx,0x24(%ebx,%ecx,4) <== NOT EXECUTED
{
/*
* Move to direct inode access.
*/
int b;
for (b = 0; b < RTEMS_RFS_INODE_BLOCKS; b++)
134f64: 41 inc %ecx <== NOT EXECUTED
134f65: 83 f9 05 cmp $0x5,%ecx <== NOT EXECUTED
134f68: 75 d4 jne 134f3e <rtems_rfs_block_map_indirect_shrink+0x3a><== NOT EXECUTED
134f6a: eb 08 jmp 134f74 <rtems_rfs_block_map_indirect_shrink+0x70><== NOT EXECUTED
else
{
/*
* One less singly indirect block in the inode.
*/
map->blocks[indirect] = 0;
134f6c: c7 44 93 24 00 00 00 movl $0x0,0x24(%ebx,%edx,4) <== NOT EXECUTED
134f73: 00
}
rc = rtems_rfs_group_bitmap_free (fs, false, block_to_free);
134f74: 56 push %esi <== NOT EXECUTED
134f75: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
134f78: 6a 00 push $0x0 <== NOT EXECUTED
134f7a: 50 push %eax <== NOT EXECUTED
134f7b: e8 ca 35 00 00 call 13854a <rtems_rfs_group_bitmap_free><== NOT EXECUTED
if (rc > 0)
134f80: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
134f83: 85 c0 test %eax,%eax <== NOT EXECUTED
134f85: 7f 06 jg 134f8d <rtems_rfs_block_map_indirect_shrink+0x89><== NOT EXECUTED
return rc;
map->last_map_block = block_to_free;
134f87: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
134f8a: 89 53 1c mov %edx,0x1c(%ebx) <== NOT EXECUTED
}
return rc;
}
134f8d: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
134f90: 5b pop %ebx <== NOT EXECUTED
134f91: 5e pop %esi <== NOT EXECUTED
134f92: 5f pop %edi <== NOT EXECUTED
134f93: c9 leave <== NOT EXECUTED
134f94: c3 ret <== NOT EXECUTED
00134e70 <rtems_rfs_block_map_next_block>:
int
rtems_rfs_block_map_next_block (rtems_rfs_file_system* fs,
rtems_rfs_block_map* map,
rtems_rfs_block_no* block)
{
134e70: 55 push %ebp <== NOT EXECUTED
134e71: 89 e5 mov %esp,%ebp <== NOT EXECUTED
134e73: 83 ec 18 sub $0x18,%esp <== NOT EXECUTED
134e76: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
rtems_rfs_block_pos bpos;
bpos.bno = map->bpos.bno + 1;
134e79: 8b 50 10 mov 0x10(%eax),%edx <== NOT EXECUTED
134e7c: 42 inc %edx <== NOT EXECUTED
134e7d: 89 55 ec mov %edx,-0x14(%ebp) <== NOT EXECUTED
bpos.boff = 0;
134e80: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) <== NOT EXECUTED
bpos.block = 0;
134e87: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) <== NOT EXECUTED
return rtems_rfs_block_map_find (fs, map, &bpos, block);
134e8e: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
134e91: 8d 55 ec lea -0x14(%ebp),%edx <== NOT EXECUTED
134e94: 52 push %edx <== NOT EXECUTED
134e95: 50 push %eax <== NOT EXECUTED
134e96: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
134e99: e8 c6 fe ff ff call 134d64 <rtems_rfs_block_map_find><== NOT EXECUTED
}
134e9e: c9 leave <== NOT EXECUTED
134e9f: c3 ret <== NOT EXECUTED
00135745 <rtems_rfs_block_map_open>:
int
rtems_rfs_block_map_open (rtems_rfs_file_system* fs,
rtems_rfs_inode_handle* inode,
rtems_rfs_block_map* map)
{
135745: 55 push %ebp <== NOT EXECUTED
135746: 89 e5 mov %esp,%ebp <== NOT EXECUTED
135748: 57 push %edi <== NOT EXECUTED
135749: 56 push %esi <== NOT EXECUTED
13574a: 53 push %ebx <== NOT EXECUTED
13574b: 83 ec 24 sub $0x24,%esp <== NOT EXECUTED
13574e: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
135751: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
135754: 8b 75 0c mov 0xc(%ebp),%esi <== NOT EXECUTED
135757: 8b 5d 10 mov 0x10(%ebp),%ebx <== NOT EXECUTED
* Set the count to 0 so at least find fails, then open the handle and make
* sure the inode has been loaded into memory. If we did not load the inode
* do not unload it. The caller may assume it is still loaded when we return.
*/
map->dirty = false;
13575a: c6 03 00 movb $0x0,(%ebx) <== NOT EXECUTED
map->inode = NULL;
13575d: c7 43 04 00 00 00 00 movl $0x0,0x4(%ebx) <== NOT EXECUTED
* @param size A pointer to the block size.
*/
static inline void
rtems_rfs_block_set_size_zero (rtems_rfs_block_size* size)
{
size->count = 0;
135764: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx) <== NOT EXECUTED
size->offset = 0;
13576b: c7 43 0c 00 00 00 00 movl $0x0,0xc(%ebx) <== NOT EXECUTED
* @param bpos A pointer to the block position.
*/
static inline void
rtems_rfs_block_set_bpos_zero (rtems_rfs_block_pos* bpos)
{
bpos->bno = 0;
135772: c7 43 10 00 00 00 00 movl $0x0,0x10(%ebx) <== NOT EXECUTED
bpos->boff = 0;
135779: c7 43 14 00 00 00 00 movl $0x0,0x14(%ebx) <== NOT EXECUTED
bpos->block = 0;
135780: c7 43 18 00 00 00 00 movl $0x0,0x18(%ebx) <== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_open (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
handle->dirty = false;
135787: c6 43 38 00 movb $0x0,0x38(%ebx) <== NOT EXECUTED
handle->bnum = 0;
13578b: c7 43 3c 00 00 00 00 movl $0x0,0x3c(%ebx) <== NOT EXECUTED
handle->buffer = NULL;
135792: c7 43 40 00 00 00 00 movl $0x0,0x40(%ebx) <== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_open (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
handle->dirty = false;
135799: c6 43 44 00 movb $0x0,0x44(%ebx) <== NOT EXECUTED
handle->bnum = 0;
13579d: c7 43 48 00 00 00 00 movl $0x0,0x48(%ebx) <== NOT EXECUTED
handle->buffer = NULL;
1357a4: c7 43 4c 00 00 00 00 movl $0x0,0x4c(%ebx) <== NOT EXECUTED
return rc;
rc = rtems_rfs_buffer_handle_open (fs, &map->doubly_buffer);
if (rc > 0)
return rc;
rc = rtems_rfs_inode_load (fs, inode);
1357ab: 56 push %esi <== NOT EXECUTED
1357ac: 50 push %eax <== NOT EXECUTED
1357ad: e8 c6 33 00 00 call 138b78 <rtems_rfs_inode_load> <== NOT EXECUTED
1357b2: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc > 0)
1357b4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1357b7: 85 c0 test %eax,%eax <== NOT EXECUTED
1357b9: 7e 4d jle 135808 <rtems_rfs_block_map_open+0xc3><== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_close (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
rtems_rfs_buffer_handle_release (fs, handle);
1357bb: 50 push %eax <== NOT EXECUTED
1357bc: 50 push %eax <== NOT EXECUTED
1357bd: 8d 43 38 lea 0x38(%ebx),%eax <== NOT EXECUTED
1357c0: 50 push %eax <== NOT EXECUTED
1357c1: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
1357c4: e8 9a 02 00 00 call 135a63 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
handle->dirty = false;
1357c9: c6 43 38 00 movb $0x0,0x38(%ebx) <== NOT EXECUTED
handle->bnum = 0;
1357cd: c7 43 3c 00 00 00 00 movl $0x0,0x3c(%ebx) <== NOT EXECUTED
handle->buffer = NULL;
1357d4: c7 43 40 00 00 00 00 movl $0x0,0x40(%ebx) <== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_close (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
rtems_rfs_buffer_handle_release (fs, handle);
1357db: 59 pop %ecx <== NOT EXECUTED
1357dc: 5e pop %esi <== NOT EXECUTED
1357dd: 8d 43 44 lea 0x44(%ebx),%eax <== NOT EXECUTED
1357e0: 50 push %eax <== NOT EXECUTED
1357e1: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
1357e4: e8 7a 02 00 00 call 135a63 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
handle->dirty = false;
1357e9: c6 43 44 00 movb $0x0,0x44(%ebx) <== NOT EXECUTED
handle->bnum = 0;
1357ed: c7 43 48 00 00 00 00 movl $0x0,0x48(%ebx) <== NOT EXECUTED
handle->buffer = NULL;
1357f4: c7 43 4c 00 00 00 00 movl $0x0,0x4c(%ebx) <== NOT EXECUTED
{
rtems_rfs_buffer_handle_close (fs, &map->singly_buffer);
rtems_rfs_buffer_handle_close (fs, &map->doubly_buffer);
return rc;
1357fb: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
map->last_data_block = rtems_rfs_inode_get_last_data_block (inode);
rc = rtems_rfs_inode_unload (fs, inode, false);
return rc;
}
1357fe: 89 f8 mov %edi,%eax <== NOT EXECUTED
135800: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
135803: 5b pop %ebx <== NOT EXECUTED
135804: 5e pop %esi <== NOT EXECUTED
135805: 5f pop %edi <== NOT EXECUTED
135806: c9 leave <== NOT EXECUTED
135807: c3 ret <== NOT EXECUTED
/*
* Extract the block and block count data from the inode into the targets
* byte order.
*/
map->inode = inode;
135808: 89 73 04 mov %esi,0x4(%ebx) <== NOT EXECUTED
* @return uint32_t The block number.
*/
static inline uint32_t
rtems_rfs_inode_get_block (rtems_rfs_inode_handle* handle, int block)
{
return rtems_rfs_read_u32 (&handle->node->data.blocks[block]);
13580b: 8b 4e 0c mov 0xc(%esi),%ecx <== NOT EXECUTED
13580e: 83 c1 1c add $0x1c,%ecx <== NOT EXECUTED
135811: 31 d2 xor %edx,%edx <== NOT EXECUTED
for (b = 0; b < RTEMS_RFS_INODE_BLOCKS; b++)
map->blocks[b] = rtems_rfs_inode_get_block (inode, b);
135813: 0f b6 04 91 movzbl (%ecx,%edx,4),%eax <== NOT EXECUTED
135817: c1 e0 18 shl $0x18,%eax <== NOT EXECUTED
13581a: 0f b6 7c 91 01 movzbl 0x1(%ecx,%edx,4),%edi <== NOT EXECUTED
13581f: c1 e7 10 shl $0x10,%edi <== NOT EXECUTED
135822: 09 f8 or %edi,%eax <== NOT EXECUTED
135824: 0f b6 7c 91 03 movzbl 0x3(%ecx,%edx,4),%edi <== NOT EXECUTED
135829: 09 f8 or %edi,%eax <== NOT EXECUTED
13582b: 0f b6 7c 91 02 movzbl 0x2(%ecx,%edx,4),%edi <== NOT EXECUTED
135830: c1 e7 08 shl $0x8,%edi <== NOT EXECUTED
135833: 09 f8 or %edi,%eax <== NOT EXECUTED
135835: 89 44 93 24 mov %eax,0x24(%ebx,%edx,4) <== NOT EXECUTED
/*
* Extract the block and block count data from the inode into the targets
* byte order.
*/
map->inode = inode;
for (b = 0; b < RTEMS_RFS_INODE_BLOCKS; b++)
135839: 42 inc %edx <== NOT EXECUTED
13583a: 83 fa 05 cmp $0x5,%edx <== NOT EXECUTED
13583d: 75 d4 jne 135813 <rtems_rfs_block_map_open+0xce><== NOT EXECUTED
* @return uint32_t The block count.
*/
static inline uint32_t
rtems_rfs_inode_get_block_count (rtems_rfs_inode_handle* handle)
{
return rtems_rfs_read_u32 (&handle->node->block_count);
13583f: 8b 46 0c mov 0xc(%esi),%eax <== NOT EXECUTED
135842: 8d 48 0c lea 0xc(%eax),%ecx <== NOT EXECUTED
map->blocks[b] = rtems_rfs_inode_get_block (inode, b);
map->size.count = rtems_rfs_inode_get_block_count (inode);
135845: 0f b6 51 03 movzbl 0x3(%ecx),%edx <== NOT EXECUTED
135849: 0f b6 78 0c movzbl 0xc(%eax),%edi <== NOT EXECUTED
13584d: c1 e7 18 shl $0x18,%edi <== NOT EXECUTED
135850: 09 fa or %edi,%edx <== NOT EXECUTED
135852: 0f b6 79 01 movzbl 0x1(%ecx),%edi <== NOT EXECUTED
135856: c1 e7 10 shl $0x10,%edi <== NOT EXECUTED
135859: 09 fa or %edi,%edx <== NOT EXECUTED
13585b: 0f b6 49 02 movzbl 0x2(%ecx),%ecx <== NOT EXECUTED
13585f: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
135862: 09 ca or %ecx,%edx <== NOT EXECUTED
135864: 89 53 08 mov %edx,0x8(%ebx) <== NOT EXECUTED
map->size.offset = rtems_rfs_inode_get_block_offset (inode);
135867: 0f b6 48 0a movzbl 0xa(%eax),%ecx <== NOT EXECUTED
13586b: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
13586e: 0f b6 50 0b movzbl 0xb(%eax),%edx <== NOT EXECUTED
135872: 09 ca or %ecx,%edx <== NOT EXECUTED
135874: 0f b7 d2 movzwl %dx,%edx <== NOT EXECUTED
135877: 89 53 0c mov %edx,0xc(%ebx) <== NOT EXECUTED
* @return uint32_t The last map block number.
*/
static inline uint32_t
rtems_rfs_inode_get_last_map_block (rtems_rfs_inode_handle* handle)
{
return rtems_rfs_read_u32 (&handle->node->last_map_block);
13587a: 8d 48 30 lea 0x30(%eax),%ecx <== NOT EXECUTED
map->last_map_block = rtems_rfs_inode_get_last_map_block (inode);
13587d: 0f b6 51 03 movzbl 0x3(%ecx),%edx <== NOT EXECUTED
135881: 0f b6 78 30 movzbl 0x30(%eax),%edi <== NOT EXECUTED
135885: c1 e7 18 shl $0x18,%edi <== NOT EXECUTED
135888: 09 fa or %edi,%edx <== NOT EXECUTED
13588a: 0f b6 79 01 movzbl 0x1(%ecx),%edi <== NOT EXECUTED
13588e: c1 e7 10 shl $0x10,%edi <== NOT EXECUTED
135891: 09 fa or %edi,%edx <== NOT EXECUTED
135893: 0f b6 49 02 movzbl 0x2(%ecx),%ecx <== NOT EXECUTED
135897: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
13589a: 09 ca or %ecx,%edx <== NOT EXECUTED
13589c: 89 53 1c mov %edx,0x1c(%ebx) <== NOT EXECUTED
* @return uint32_t The last data block number.
*/
static inline uint32_t
rtems_rfs_inode_get_last_data_block (rtems_rfs_inode_handle* handle)
{
return rtems_rfs_read_u32 (&handle->node->last_data_block);
13589f: 8d 48 34 lea 0x34(%eax),%ecx <== NOT EXECUTED
map->last_data_block = rtems_rfs_inode_get_last_data_block (inode);
1358a2: 0f b6 51 03 movzbl 0x3(%ecx),%edx <== NOT EXECUTED
1358a6: 0f b6 40 34 movzbl 0x34(%eax),%eax <== NOT EXECUTED
1358aa: c1 e0 18 shl $0x18,%eax <== NOT EXECUTED
1358ad: 09 c2 or %eax,%edx <== NOT EXECUTED
1358af: 0f b6 41 01 movzbl 0x1(%ecx),%eax <== NOT EXECUTED
1358b3: c1 e0 10 shl $0x10,%eax <== NOT EXECUTED
1358b6: 09 c2 or %eax,%edx <== NOT EXECUTED
1358b8: 0f b6 41 02 movzbl 0x2(%ecx),%eax <== NOT EXECUTED
1358bc: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
1358bf: 09 c2 or %eax,%edx <== NOT EXECUTED
1358c1: 89 53 20 mov %edx,0x20(%ebx) <== NOT EXECUTED
rc = rtems_rfs_inode_unload (fs, inode, false);
1358c4: c7 45 10 00 00 00 00 movl $0x0,0x10(%ebp) <== NOT EXECUTED
1358cb: 89 75 0c mov %esi,0xc(%ebp) <== NOT EXECUTED
1358ce: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
1358d1: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED
return rc;
}
1358d4: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1358d7: 5b pop %ebx <== NOT EXECUTED
1358d8: 5e pop %esi <== NOT EXECUTED
1358d9: 5f pop %edi <== NOT EXECUTED
1358da: c9 leave <== NOT EXECUTED
map->size.count = rtems_rfs_inode_get_block_count (inode);
map->size.offset = rtems_rfs_inode_get_block_offset (inode);
map->last_map_block = rtems_rfs_inode_get_last_map_block (inode);
map->last_data_block = rtems_rfs_inode_get_last_data_block (inode);
rc = rtems_rfs_inode_unload (fs, inode, false);
1358db: e9 dc 31 00 00 jmp 138abc <rtems_rfs_inode_unload><== NOT EXECUTED
00134ea0 <rtems_rfs_block_map_seek>:
int
rtems_rfs_block_map_seek (rtems_rfs_file_system* fs,
rtems_rfs_block_map* map,
rtems_rfs_pos_rel offset,
rtems_rfs_block_no* block)
{
134ea0: 55 push %ebp <== NOT EXECUTED
134ea1: 89 e5 mov %esp,%ebp <== NOT EXECUTED
134ea3: 57 push %edi <== NOT EXECUTED
134ea4: 56 push %esi <== NOT EXECUTED
134ea5: 53 push %ebx <== NOT EXECUTED
134ea6: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED
134ea9: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
134eac: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
134eaf: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
134eb2: 8b 55 14 mov 0x14(%ebp),%edx <== NOT EXECUTED
rtems_rfs_block_pos bpos;
rtems_rfs_block_copy_bpos (&bpos, &map->bpos);
134eb5: 8b 4b 10 mov 0x10(%ebx),%ecx <== NOT EXECUTED
134eb8: 89 4d dc mov %ecx,-0x24(%ebp) <== NOT EXECUTED
134ebb: 8b 7b 14 mov 0x14(%ebx),%edi <== NOT EXECUTED
134ebe: 89 7d e0 mov %edi,-0x20(%ebp) <== NOT EXECUTED
134ec1: 8b 7b 18 mov 0x18(%ebx),%edi <== NOT EXECUTED
134ec4: 89 7d e4 mov %edi,-0x1c(%ebp) <== NOT EXECUTED
static inline void
rtems_rfs_block_add_pos (rtems_rfs_file_system* fs,
rtems_rfs_pos_rel offset,
rtems_rfs_block_pos* bpos)
{
rtems_rfs_block_get_bpos (fs,
134ec7: 8d 7d dc lea -0x24(%ebp),%edi <== NOT EXECUTED
134eca: 57 push %edi <== NOT EXECUTED
134ecb: 0f af 4e 08 imul 0x8(%esi),%ecx <== NOT EXECUTED
134ecf: 03 4b 14 add 0x14(%ebx),%ecx <== NOT EXECUTED
134ed2: 89 4d d0 mov %ecx,-0x30(%ebp) <== NOT EXECUTED
134ed5: c7 45 d4 00 00 00 00 movl $0x0,-0x2c(%ebp) <== NOT EXECUTED
134edc: 03 45 d0 add -0x30(%ebp),%eax <== NOT EXECUTED
134edf: 13 55 d4 adc -0x2c(%ebp),%edx <== NOT EXECUTED
134ee2: 52 push %edx <== NOT EXECUTED
134ee3: 50 push %eax <== NOT EXECUTED
134ee4: 56 push %esi <== NOT EXECUTED
134ee5: e8 fa fc ff ff call 134be4 <rtems_rfs_block_get_bpos><== NOT EXECUTED
rtems_rfs_block_get_pos (fs, bpos) + offset,
bpos);
bpos->block = 0;
134eea: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) <== NOT EXECUTED
rtems_rfs_block_add_pos (fs, offset, &bpos);
return rtems_rfs_block_map_find (fs, map, &bpos, block);
134ef1: ff 75 18 pushl 0x18(%ebp) <== NOT EXECUTED
134ef4: 57 push %edi <== NOT EXECUTED
134ef5: 53 push %ebx <== NOT EXECUTED
134ef6: 56 push %esi <== NOT EXECUTED
134ef7: e8 68 fe ff ff call 134d64 <rtems_rfs_block_map_find><== NOT EXECUTED
}
134efc: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
134eff: 5b pop %ebx <== NOT EXECUTED
134f00: 5e pop %esi <== NOT EXECUTED
134f01: 5f pop %edi <== NOT EXECUTED
134f02: c9 leave <== NOT EXECUTED
134f03: c3 ret <== NOT EXECUTED
00134f95 <rtems_rfs_block_map_shrink>:
int
rtems_rfs_block_map_shrink (rtems_rfs_file_system* fs,
rtems_rfs_block_map* map,
size_t blocks)
{
134f95: 55 push %ebp <== NOT EXECUTED
134f96: 89 e5 mov %esp,%ebp <== NOT EXECUTED
134f98: 57 push %edi <== NOT EXECUTED
134f99: 56 push %esi <== NOT EXECUTED
134f9a: 53 push %ebx <== NOT EXECUTED
134f9b: 83 ec 4c sub $0x4c,%esp <== NOT EXECUTED
134f9e: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_BLOCK_MAP_SHRINK))
printf ("rtems-rfs: block-map-shrink: entry: blocks=%zd count=%" PRIu32 "\n",
blocks, map->size.count);
if (map->size.count == 0)
134fa1: 8b 43 08 mov 0x8(%ebx),%eax <== NOT EXECUTED
134fa4: 85 c0 test %eax,%eax <== NOT EXECUTED
134fa6: 0f 84 5c 02 00 00 je 135208 <rtems_rfs_block_map_shrink+0x273><== NOT EXECUTED
134fac: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
134faf: 89 55 dc mov %edx,-0x24(%ebp) <== NOT EXECUTED
134fb2: 39 c2 cmp %eax,%edx <== NOT EXECUTED
134fb4: 76 03 jbe 134fb9 <rtems_rfs_block_map_shrink+0x24><== NOT EXECUTED
134fb6: 89 45 dc mov %eax,-0x24(%ebp) <== NOT EXECUTED
{
/*
* Request the indirect block and then obtain the block number from the
* indirect block.
*/
rc = rtems_rfs_buffer_handle_request (fs, &map->singly_buffer,
134fb9: 8d 4b 38 lea 0x38(%ebx),%ecx <== NOT EXECUTED
134fbc: 89 4d d4 mov %ecx,-0x2c(%ebp) <== NOT EXECUTED
rtems_rfs_block_no doubly_singly;
doubly = singly / fs->blocks_per_block;
doubly_singly = singly % fs->blocks_per_block;
rc = rtems_rfs_buffer_handle_request (fs, &map->doubly_buffer,
134fbf: 8d 43 44 lea 0x44(%ebx),%eax <== NOT EXECUTED
134fc2: 89 45 d0 mov %eax,-0x30(%ebp) <== NOT EXECUTED
134fc5: e9 e4 01 00 00 jmp 1351ae <rtems_rfs_block_map_shrink+0x219><== NOT EXECUTED
{
rtems_rfs_block_no block;
rtems_rfs_block_no block_to_free;
int rc;
block = map->size.count - 1;
134fca: 8b 43 08 mov 0x8(%ebx),%eax <== NOT EXECUTED
134fcd: 8d 48 ff lea -0x1(%eax),%ecx <== NOT EXECUTED
if (block < RTEMS_RFS_INODE_BLOCKS)
134fd0: 83 f9 04 cmp $0x4,%ecx <== NOT EXECUTED
134fd3: 77 14 ja 134fe9 <rtems_rfs_block_map_shrink+0x54><== NOT EXECUTED
{
/*
* We have less than RTEMS_RFS_INODE_BLOCKS so they are held in the
* inode.
*/
block_to_free = map->blocks[block];
134fd5: 83 c0 07 add $0x7,%eax <== NOT EXECUTED
134fd8: 8b 74 83 04 mov 0x4(%ebx,%eax,4),%esi <== NOT EXECUTED
map->blocks[block] = 0;
134fdc: c7 44 83 04 00 00 00 movl $0x0,0x4(%ebx,%eax,4) <== NOT EXECUTED
134fe3: 00
134fe4: e9 9f 01 00 00 jmp 135188 <rtems_rfs_block_map_shrink+0x1f3><== NOT EXECUTED
* table of block numbers.
*/
rtems_rfs_block_no direct;
rtems_rfs_block_no singly;
direct = block % fs->blocks_per_block;
134fe9: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
134fec: 8b 52 30 mov 0x30(%edx),%edx <== NOT EXECUTED
134fef: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED
134ff2: 89 c8 mov %ecx,%eax <== NOT EXECUTED
134ff4: 31 d2 xor %edx,%edx <== NOT EXECUTED
134ff6: f7 75 e4 divl -0x1c(%ebp) <== NOT EXECUTED
134ff9: 89 d7 mov %edx,%edi <== NOT EXECUTED
134ffb: 89 c6 mov %eax,%esi <== NOT EXECUTED
singly = block / fs->blocks_per_block;
if (block < fs->block_map_singly_blocks)
134ffd: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
135000: 3b 48 34 cmp 0x34(%eax),%ecx <== NOT EXECUTED
135003: 0f 83 81 00 00 00 jae 13508a <rtems_rfs_block_map_shrink+0xf5><== NOT EXECUTED
{
/*
* Request the indirect block and then obtain the block number from the
* indirect block.
*/
rc = rtems_rfs_buffer_handle_request (fs, &map->singly_buffer,
135009: 6a 01 push $0x1 <== NOT EXECUTED
13500b: ff 74 b3 24 pushl 0x24(%ebx,%esi,4) <== NOT EXECUTED
13500f: ff 75 d4 pushl -0x2c(%ebp) <== NOT EXECUTED
135012: 50 push %eax <== NOT EXECUTED
135013: e8 42 0b 00 00 call 135b5a <rtems_rfs_buffer_handle_request><== NOT EXECUTED
map->blocks[singly], true);
if (rc > 0)
135018: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13501b: 85 c0 test %eax,%eax <== NOT EXECUTED
13501d: 0f 8f e7 01 00 00 jg 13520a <rtems_rfs_block_map_shrink+0x275><== NOT EXECUTED
return rc;
block_to_free = rtems_rfs_block_get_number (&map->singly_buffer,
135023: 8b 43 40 mov 0x40(%ebx),%eax <== NOT EXECUTED
135026: 8b 40 20 mov 0x20(%eax),%eax <== NOT EXECUTED
135029: 8d 14 bd 00 00 00 00 lea 0x0(,%edi,4),%edx <== NOT EXECUTED
135030: 8a 0c b8 mov (%eax,%edi,4),%cl <== NOT EXECUTED
135033: 88 4d b8 mov %cl,-0x48(%ebp) <== NOT EXECUTED
135036: 8a 4c 10 01 mov 0x1(%eax,%edx,1),%cl <== NOT EXECUTED
13503a: 88 4d d8 mov %cl,-0x28(%ebp) <== NOT EXECUTED
13503d: 8a 4c b8 02 mov 0x2(%eax,%edi,4),%cl <== NOT EXECUTED
135041: 88 4d e0 mov %cl,-0x20(%ebp) <== NOT EXECUTED
135044: 8a 44 10 03 mov 0x3(%eax,%edx,1),%al <== NOT EXECUTED
135048: 88 45 e4 mov %al,-0x1c(%ebp) <== NOT EXECUTED
direct);
rc = rtems_rfs_block_map_indirect_shrink (fs, map, &map->singly_buffer,
13504b: 50 push %eax <== NOT EXECUTED
13504c: 50 push %eax <== NOT EXECUTED
13504d: 57 push %edi <== NOT EXECUTED
13504e: 56 push %esi <== NOT EXECUTED
13504f: 8b 4d d4 mov -0x2c(%ebp),%ecx <== NOT EXECUTED
135052: 89 da mov %ebx,%edx <== NOT EXECUTED
135054: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
135057: e8 a8 fe ff ff call 134f04 <rtems_rfs_block_map_indirect_shrink><== NOT EXECUTED
singly, direct);
if (rc)
13505c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13505f: 85 c0 test %eax,%eax <== NOT EXECUTED
135061: 0f 85 a3 01 00 00 jne 13520a <rtems_rfs_block_map_shrink+0x275><== NOT EXECUTED
rc = rtems_rfs_buffer_handle_request (fs, &map->singly_buffer,
map->blocks[singly], true);
if (rc > 0)
return rc;
block_to_free = rtems_rfs_block_get_number (&map->singly_buffer,
135067: 0f b6 75 e4 movzbl -0x1c(%ebp),%esi <== NOT EXECUTED
13506b: 8a 45 b8 mov -0x48(%ebp),%al <== NOT EXECUTED
13506e: c1 e0 18 shl $0x18,%eax <== NOT EXECUTED
135071: 09 c6 or %eax,%esi <== NOT EXECUTED
135073: 0f b6 45 d8 movzbl -0x28(%ebp),%eax <== NOT EXECUTED
135077: c1 e0 10 shl $0x10,%eax <== NOT EXECUTED
13507a: 09 c6 or %eax,%esi <== NOT EXECUTED
13507c: 0f b6 45 e0 movzbl -0x20(%ebp),%eax <== NOT EXECUTED
135080: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
135083: 09 c6 or %eax,%esi <== NOT EXECUTED
135085: e9 fe 00 00 00 jmp 135188 <rtems_rfs_block_map_shrink+0x1f3><== NOT EXECUTED
rc = rtems_rfs_block_map_indirect_shrink (fs, map, &map->singly_buffer,
singly, direct);
if (rc)
return rc;
}
else if (block < fs->block_map_doubly_blocks)
13508a: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
13508d: 3b 48 38 cmp 0x38(%eax),%ecx <== NOT EXECUTED
135090: 0f 83 22 01 00 00 jae 1351b8 <rtems_rfs_block_map_shrink+0x223><== NOT EXECUTED
* value is still valid for doubly indirect tables.
*/
rtems_rfs_block_no doubly;
rtems_rfs_block_no doubly_singly;
doubly = singly / fs->blocks_per_block;
135096: 89 f0 mov %esi,%eax <== NOT EXECUTED
135098: 31 d2 xor %edx,%edx <== NOT EXECUTED
13509a: f7 75 e4 divl -0x1c(%ebp) <== NOT EXECUTED
13509d: 89 55 e0 mov %edx,-0x20(%ebp) <== NOT EXECUTED
1350a0: 89 45 d8 mov %eax,-0x28(%ebp) <== NOT EXECUTED
doubly_singly = singly % fs->blocks_per_block;
rc = rtems_rfs_buffer_handle_request (fs, &map->doubly_buffer,
1350a3: 6a 01 push $0x1 <== NOT EXECUTED
1350a5: ff 74 83 24 pushl 0x24(%ebx,%eax,4) <== NOT EXECUTED
1350a9: ff 75 d0 pushl -0x30(%ebp) <== NOT EXECUTED
1350ac: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
1350af: e8 a6 0a 00 00 call 135b5a <rtems_rfs_buffer_handle_request><== NOT EXECUTED
map->blocks[doubly], true);
if (rc > 0)
1350b4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1350b7: 85 c0 test %eax,%eax <== NOT EXECUTED
1350b9: 0f 8f 4b 01 00 00 jg 13520a <rtems_rfs_block_map_shrink+0x275><== NOT EXECUTED
return rc;
singly = rtems_rfs_block_get_number (&map->doubly_buffer,
1350bf: 8b 43 4c mov 0x4c(%ebx),%eax <== NOT EXECUTED
1350c2: 8b 40 20 mov 0x20(%eax),%eax <== NOT EXECUTED
1350c5: 8b 75 e0 mov -0x20(%ebp),%esi <== NOT EXECUTED
1350c8: c1 e6 02 shl $0x2,%esi <== NOT EXECUTED
1350cb: 0f b6 54 30 03 movzbl 0x3(%eax,%esi,1),%edx <== NOT EXECUTED
1350d0: 8b 4d e0 mov -0x20(%ebp),%ecx <== NOT EXECUTED
1350d3: 0f b6 0c 88 movzbl (%eax,%ecx,4),%ecx <== NOT EXECUTED
1350d7: c1 e1 18 shl $0x18,%ecx <== NOT EXECUTED
1350da: 09 ca or %ecx,%edx <== NOT EXECUTED
1350dc: 0f b6 4c 30 01 movzbl 0x1(%eax,%esi,1),%ecx <== NOT EXECUTED
1350e1: c1 e1 10 shl $0x10,%ecx <== NOT EXECUTED
1350e4: 09 ca or %ecx,%edx <== NOT EXECUTED
1350e6: 8b 4d e0 mov -0x20(%ebp),%ecx <== NOT EXECUTED
1350e9: 0f b6 44 88 02 movzbl 0x2(%eax,%ecx,4),%eax <== NOT EXECUTED
1350ee: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
1350f1: 09 c2 or %eax,%edx <== NOT EXECUTED
doubly_singly);
/*
* Read the singly indirect table and get the block number.
*/
rc = rtems_rfs_buffer_handle_request (fs, &map->singly_buffer,
1350f3: 6a 01 push $0x1 <== NOT EXECUTED
1350f5: 52 push %edx <== NOT EXECUTED
1350f6: ff 75 d4 pushl -0x2c(%ebp) <== NOT EXECUTED
1350f9: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
1350fc: 89 55 b4 mov %edx,-0x4c(%ebp) <== NOT EXECUTED
1350ff: e8 56 0a 00 00 call 135b5a <rtems_rfs_buffer_handle_request><== NOT EXECUTED
singly, true);
if (rc > 0)
135104: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
135107: 85 c0 test %eax,%eax <== NOT EXECUTED
135109: 8b 55 b4 mov -0x4c(%ebp),%edx <== NOT EXECUTED
13510c: 0f 8f f8 00 00 00 jg 13520a <rtems_rfs_block_map_shrink+0x275><== NOT EXECUTED
return rc;
block_to_free = rtems_rfs_block_get_number (&map->singly_buffer,
135112: 8b 43 40 mov 0x40(%ebx),%eax <== NOT EXECUTED
135115: 8b 40 20 mov 0x20(%eax),%eax <== NOT EXECUTED
135118: 8d 0c bd 00 00 00 00 lea 0x0(,%edi,4),%ecx <== NOT EXECUTED
13511f: 89 4d e4 mov %ecx,-0x1c(%ebp) <== NOT EXECUTED
135122: 0f b6 74 08 03 movzbl 0x3(%eax,%ecx,1),%esi <== NOT EXECUTED
135127: 0f b6 0c b8 movzbl (%eax,%edi,4),%ecx <== NOT EXECUTED
13512b: c1 e1 18 shl $0x18,%ecx <== NOT EXECUTED
13512e: 09 ce or %ecx,%esi <== NOT EXECUTED
135130: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED
135133: 0f b6 4c 08 01 movzbl 0x1(%eax,%ecx,1),%ecx <== NOT EXECUTED
135138: c1 e1 10 shl $0x10,%ecx <== NOT EXECUTED
13513b: 09 ce or %ecx,%esi <== NOT EXECUTED
13513d: 0f b6 44 b8 02 movzbl 0x2(%eax,%edi,4),%eax <== NOT EXECUTED
135142: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
135145: 09 c6 or %eax,%esi <== NOT EXECUTED
direct);
if (direct == 0)
135147: 85 ff test %edi,%edi <== NOT EXECUTED
135149: 75 3d jne 135188 <rtems_rfs_block_map_shrink+0x1f3><== NOT EXECUTED
{
rc = rtems_rfs_group_bitmap_free (fs, false, singly);
13514b: 51 push %ecx <== NOT EXECUTED
13514c: 52 push %edx <== NOT EXECUTED
13514d: 6a 00 push $0x0 <== NOT EXECUTED
13514f: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
135152: e8 f3 33 00 00 call 13854a <rtems_rfs_group_bitmap_free><== NOT EXECUTED
if (rc > 0)
135157: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13515a: 85 c0 test %eax,%eax <== NOT EXECUTED
13515c: 8b 55 b4 mov -0x4c(%ebp),%edx <== NOT EXECUTED
13515f: 0f 8f a5 00 00 00 jg 13520a <rtems_rfs_block_map_shrink+0x275><== NOT EXECUTED
return rc;
map->last_map_block = singly;
135165: 89 53 1c mov %edx,0x1c(%ebx) <== NOT EXECUTED
rc = rtems_rfs_block_map_indirect_shrink (fs, map, &map->doubly_buffer,
135168: 50 push %eax <== NOT EXECUTED
135169: 50 push %eax <== NOT EXECUTED
13516a: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
13516d: ff 75 d8 pushl -0x28(%ebp) <== NOT EXECUTED
135170: 8b 4d d0 mov -0x30(%ebp),%ecx <== NOT EXECUTED
135173: 89 da mov %ebx,%edx <== NOT EXECUTED
135175: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
135178: e8 87 fd ff ff call 134f04 <rtems_rfs_block_map_indirect_shrink><== NOT EXECUTED
doubly, doubly_singly);
if (rc)
13517d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
135180: 85 c0 test %eax,%eax <== NOT EXECUTED
135182: 0f 85 82 00 00 00 jne 13520a <rtems_rfs_block_map_shrink+0x275><== NOT EXECUTED
{
rc = EIO;
break;
}
}
rc = rtems_rfs_group_bitmap_free (fs, false, block_to_free);
135188: 57 push %edi <== NOT EXECUTED
135189: 56 push %esi <== NOT EXECUTED
13518a: 6a 00 push $0x0 <== NOT EXECUTED
13518c: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
13518f: e8 b6 33 00 00 call 13854a <rtems_rfs_group_bitmap_free><== NOT EXECUTED
if (rc > 0)
135194: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
135197: 85 c0 test %eax,%eax <== NOT EXECUTED
135199: 7f 6f jg 13520a <rtems_rfs_block_map_shrink+0x275><== NOT EXECUTED
return rc;
map->size.count--;
13519b: ff 4b 08 decl 0x8(%ebx) <== NOT EXECUTED
map->size.offset = 0;
13519e: c7 43 0c 00 00 00 00 movl $0x0,0xc(%ebx) <== NOT EXECUTED
map->last_data_block = block_to_free;
1351a5: 89 73 20 mov %esi,0x20(%ebx) <== NOT EXECUTED
map->dirty = true;
1351a8: c6 03 01 movb $0x1,(%ebx) <== NOT EXECUTED
blocks--;
1351ab: ff 4d dc decl -0x24(%ebp) <== NOT EXECUTED
return 0;
if (blocks > map->size.count)
blocks = map->size.count;
while (blocks)
1351ae: 83 7d dc 00 cmpl $0x0,-0x24(%ebp) <== NOT EXECUTED
1351b2: 0f 85 12 fe ff ff jne 134fca <rtems_rfs_block_map_shrink+0x35><== NOT EXECUTED
map->last_data_block = block_to_free;
map->dirty = true;
blocks--;
}
if (map->size.count == 0)
1351b8: 83 7b 08 00 cmpl $0x0,0x8(%ebx) <== NOT EXECUTED
1351bc: 75 0e jne 1351cc <rtems_rfs_block_map_shrink+0x237><== NOT EXECUTED
{
map->last_map_block = 0;
1351be: c7 43 1c 00 00 00 00 movl $0x0,0x1c(%ebx) <== NOT EXECUTED
map->last_data_block = 0;
1351c5: c7 43 20 00 00 00 00 movl $0x0,0x20(%ebx) <== NOT EXECUTED
}
/*
* Keep the position inside the map.
*/
if (rtems_rfs_block_pos_past_end (&map->bpos, &map->size))
1351cc: 8b 43 10 mov 0x10(%ebx),%eax <== NOT EXECUTED
1351cf: 85 c0 test %eax,%eax <== NOT EXECUTED
1351d1: 74 06 je 1351d9 <rtems_rfs_block_map_shrink+0x244><== NOT EXECUTED
1351d3: 83 7b 08 00 cmpl $0x0,0x8(%ebx) <== NOT EXECUTED
1351d7: 74 14 je 1351ed <rtems_rfs_block_map_shrink+0x258><== NOT EXECUTED
1351d9: 8b 53 08 mov 0x8(%ebx),%edx <== NOT EXECUTED
1351dc: 39 d0 cmp %edx,%eax <== NOT EXECUTED
1351de: 73 0d jae 1351ed <rtems_rfs_block_map_shrink+0x258><== NOT EXECUTED
1351e0: 4a dec %edx <== NOT EXECUTED
1351e1: 39 d0 cmp %edx,%eax <== NOT EXECUTED
1351e3: 75 23 jne 135208 <rtems_rfs_block_map_shrink+0x273><== NOT EXECUTED
1351e5: 8b 43 14 mov 0x14(%ebx),%eax <== NOT EXECUTED
1351e8: 3b 43 0c cmp 0xc(%ebx),%eax <== NOT EXECUTED
1351eb: 76 1b jbe 135208 <rtems_rfs_block_map_shrink+0x273><== NOT EXECUTED
rtems_rfs_block_size_get_bpos (&map->size, &map->bpos);
1351ed: 8b 43 08 mov 0x8(%ebx),%eax <== NOT EXECUTED
1351f0: 89 43 10 mov %eax,0x10(%ebx) <== NOT EXECUTED
1351f3: 8b 53 0c mov 0xc(%ebx),%edx <== NOT EXECUTED
1351f6: 89 53 14 mov %edx,0x14(%ebx) <== NOT EXECUTED
1351f9: c7 43 18 00 00 00 00 movl $0x0,0x18(%ebx) <== NOT EXECUTED
135200: 85 d2 test %edx,%edx <== NOT EXECUTED
135202: 74 04 je 135208 <rtems_rfs_block_map_shrink+0x273><== NOT EXECUTED
135204: 48 dec %eax <== NOT EXECUTED
135205: 89 43 10 mov %eax,0x10(%ebx) <== NOT EXECUTED
135208: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
}
13520a: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13520d: 5b pop %ebx <== NOT EXECUTED
13520e: 5e pop %esi <== NOT EXECUTED
13520f: 5f pop %edi <== NOT EXECUTED
135210: c9 leave <== NOT EXECUTED
135211: c3 ret <== NOT EXECUTED
0013d894 <rtems_rfs_buffer_bdbuf_release>:
}
int
rtems_rfs_buffer_bdbuf_release (rtems_rfs_buffer* buffer,
bool modified)
{
13d894: 55 push %ebp <== NOT EXECUTED
13d895: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13d897: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13d89a: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_RELEASE))
printf ("rtems-rfs: bdbuf-release: block=%" PRIuPTR " bdbuf=%" PRIu32 " %s\n",
((intptr_t) buffer->user),
buffer->block, modified ? "(modified)" : "");
if (modified)
13d89d: 80 7d 0c 00 cmpb $0x0,0xc(%ebp) <== NOT EXECUTED
13d8a1: 74 0b je 13d8ae <rtems_rfs_buffer_bdbuf_release+0x1a><== NOT EXECUTED
sc = rtems_bdbuf_release_modified (buffer);
13d8a3: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13d8a6: 50 push %eax <== NOT EXECUTED
13d8a7: e8 62 c7 fc ff call 10a00e <rtems_bdbuf_release_modified><== NOT EXECUTED
13d8ac: eb 09 jmp 13d8b7 <rtems_rfs_buffer_bdbuf_release+0x23><== NOT EXECUTED
else
sc = rtems_bdbuf_release (buffer);
13d8ae: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13d8b1: 50 push %eax <== NOT EXECUTED
13d8b2: e8 c0 c7 fc ff call 10a077 <rtems_bdbuf_release> <== NOT EXECUTED
13d8b7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
13d8ba: 83 f8 01 cmp $0x1,%eax <== NOT EXECUTED
13d8bd: 19 c0 sbb %eax,%eax <== NOT EXECUTED
13d8bf: f7 d0 not %eax <== NOT EXECUTED
13d8c1: 83 e0 05 and $0x5,%eax <== NOT EXECUTED
#endif
rc = EIO;
}
return rc;
}
13d8c4: c9 leave <== NOT EXECUTED
13d8c5: c3 ret <== NOT EXECUTED
0013d8c6 <rtems_rfs_buffer_bdbuf_request>:
int
rtems_rfs_buffer_bdbuf_request (rtems_rfs_file_system* fs,
rtems_rfs_buffer_block block,
bool read,
rtems_rfs_buffer** buffer)
{
13d8c6: 55 push %ebp <== NOT EXECUTED
13d8c7: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13d8c9: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13d8cc: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
13d8cf: 8b 4d 14 mov 0x14(%ebp),%ecx <== NOT EXECUTED
rtems_status_code sc;
int rc = 0;
if (read)
13d8d2: 80 7d 10 00 cmpb $0x0,0x10(%ebp) <== NOT EXECUTED
13d8d6: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
13d8d9: 8b 40 0c mov 0xc(%eax),%eax <== NOT EXECUTED
13d8dc: 74 0e je 13d8ec <rtems_rfs_buffer_bdbuf_request+0x26><== NOT EXECUTED
sc = rtems_bdbuf_read (rtems_rfs_fs_device (fs), block, buffer);
13d8de: 51 push %ecx <== NOT EXECUTED
13d8df: 52 push %edx <== NOT EXECUTED
13d8e0: ff 70 04 pushl 0x4(%eax) <== NOT EXECUTED
13d8e3: ff 30 pushl (%eax) <== NOT EXECUTED
13d8e5: e8 2a d6 fc ff call 10af14 <rtems_bdbuf_read> <== NOT EXECUTED
13d8ea: eb 0c jmp 13d8f8 <rtems_rfs_buffer_bdbuf_request+0x32><== NOT EXECUTED
else
sc = rtems_bdbuf_get (rtems_rfs_fs_device (fs), block, buffer);
13d8ec: 51 push %ecx <== NOT EXECUTED
13d8ed: 52 push %edx <== NOT EXECUTED
13d8ee: ff 70 04 pushl 0x4(%eax) <== NOT EXECUTED
13d8f1: ff 30 pushl (%eax) <== NOT EXECUTED
13d8f3: e8 5e d5 fc ff call 10ae56 <rtems_bdbuf_get> <== NOT EXECUTED
13d8f8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
13d8fb: 83 f8 01 cmp $0x1,%eax <== NOT EXECUTED
13d8fe: 19 c0 sbb %eax,%eax <== NOT EXECUTED
13d900: f7 d0 not %eax <== NOT EXECUTED
13d902: 83 e0 05 and $0x5,%eax <== NOT EXECUTED
#endif
rc = EIO;
}
return rc;
}
13d905: c9 leave <== NOT EXECUTED
13d906: c3 ret <== NOT EXECUTED
001359e7 <rtems_rfs_buffer_close>:
return 0;
}
int
rtems_rfs_buffer_close (rtems_rfs_file_system* fs)
{
1359e7: 55 push %ebp <== NOT EXECUTED
1359e8: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1359ea: 56 push %esi <== NOT EXECUTED
1359eb: 53 push %ebx <== NOT EXECUTED
1359ec: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
/*
* Change the block size to the media device size. It will release and sync
* all buffers.
*/
rc = rtems_rfs_buffer_setblksize (fs, rtems_rfs_fs_media_block_size (fs));
1359ef: 51 push %ecx <== NOT EXECUTED
1359f0: 51 push %ecx <== NOT EXECUTED
1359f1: 8b 43 0c mov 0xc(%ebx),%eax <== NOT EXECUTED
1359f4: ff 70 24 pushl 0x24(%eax) <== NOT EXECUTED
1359f7: 53 push %ebx <== NOT EXECUTED
1359f8: e8 ac ff ff ff call 1359a9 <rtems_rfs_buffer_setblksize><== NOT EXECUTED
1359fd: 89 c6 mov %eax,%esi <== NOT EXECUTED
if ((rc > 0) && rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CLOSE))
printf ("rtems-rfs: buffer-close: set media block size failed: %d: %s\n",
rc, strerror (rc));
#if RTEMS_RFS_USE_LIBBLOCK
rtems_disk_release (fs->disk);
1359ff: 5a pop %edx <== NOT EXECUTED
135a00: ff 73 0c pushl 0xc(%ebx) <== NOT EXECUTED
135a03: e8 6c 64 fd ff call 10be74 <rtems_disk_release> <== NOT EXECUTED
rc, strerror (rc));
}
#endif
return rc;
}
135a08: 89 f0 mov %esi,%eax <== NOT EXECUTED
135a0a: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
135a0d: 5b pop %ebx <== NOT EXECUTED
135a0e: 5e pop %esi <== NOT EXECUTED
135a0f: c9 leave <== NOT EXECUTED
135a10: c3 ret <== NOT EXECUTED
00135cf8 <rtems_rfs_buffer_handle_close>:
* @return int The error number (errno). No error if 0.
*/
static inline int
rtems_rfs_buffer_handle_close (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
135cf8: 55 push %ebp <== NOT EXECUTED
135cf9: 89 e5 mov %esp,%ebp <== NOT EXECUTED
135cfb: 53 push %ebx <== NOT EXECUTED
135cfc: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
135cff: 89 d3 mov %edx,%ebx <== NOT EXECUTED
rtems_rfs_buffer_handle_release (fs, handle);
135d01: 52 push %edx <== NOT EXECUTED
135d02: 50 push %eax <== NOT EXECUTED
135d03: e8 5b fd ff ff call 135a63 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
handle->dirty = false;
135d08: c6 03 00 movb $0x0,(%ebx) <== NOT EXECUTED
handle->bnum = 0;
135d0b: c7 43 04 00 00 00 00 movl $0x0,0x4(%ebx) <== NOT EXECUTED
handle->buffer = NULL;
135d12: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx) <== NOT EXECUTED
return 0;
}
135d19: 31 c0 xor %eax,%eax <== NOT EXECUTED
135d1b: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
135d1e: c9 leave <== NOT EXECUTED
135d1f: c3 ret <== NOT EXECUTED
00135a63 <rtems_rfs_buffer_handle_release>:
}
int
rtems_rfs_buffer_handle_release (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
135a63: 55 push %ebp <== NOT EXECUTED
135a64: 89 e5 mov %esp,%ebp <== NOT EXECUTED
135a66: 57 push %edi <== NOT EXECUTED
135a67: 56 push %esi <== NOT EXECUTED
135a68: 53 push %ebx <== NOT EXECUTED
135a69: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
135a6c: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
135a6f: 8b 75 0c mov 0xc(%ebp),%esi <== NOT EXECUTED
int rc = 0;
if (rtems_rfs_buffer_handle_has_block (handle))
135a72: 8b 56 08 mov 0x8(%esi),%edx <== NOT EXECUTED
135a75: 31 c0 xor %eax,%eax <== NOT EXECUTED
135a77: 85 d2 test %edx,%edx <== NOT EXECUTED
135a79: 0f 84 d3 00 00 00 je 135b52 <rtems_rfs_buffer_handle_release+0xef><== NOT EXECUTED
rtems_rfs_buffer_bnum (handle),
rtems_rfs_buffer_dirty (handle) ? "(dirty)" : "",
rtems_rfs_buffer_refs (handle),
rtems_rfs_buffer_refs (handle) == 0 ? "BAD REF COUNT" : "");
if (rtems_rfs_buffer_refs (handle) > 0)
135a7f: 8b 42 34 mov 0x34(%edx),%eax <== NOT EXECUTED
135a82: 85 c0 test %eax,%eax <== NOT EXECUTED
135a84: 7e 04 jle 135a8a <rtems_rfs_buffer_handle_release+0x27><== NOT EXECUTED
rtems_rfs_buffer_refs_down (handle);
135a86: 48 dec %eax <== NOT EXECUTED
135a87: 89 42 34 mov %eax,0x34(%edx) <== NOT EXECUTED
if (rtems_rfs_buffer_refs (handle) == 0)
135a8a: 31 c0 xor %eax,%eax <== NOT EXECUTED
135a8c: 83 7a 34 00 cmpl $0x0,0x34(%edx) <== NOT EXECUTED
135a90: 0f 85 b5 00 00 00 jne 135b4b <rtems_rfs_buffer_handle_release+0xe8><== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void rtems_chain_extract(
rtems_chain_node *the_node
)
{
_Chain_Extract( the_node );
135a96: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
135a99: 52 push %edx <== NOT EXECUTED
135a9a: e8 f9 bb fd ff call 111698 <_Chain_Extract> <== NOT EXECUTED
{
rtems_chain_extract (rtems_rfs_buffer_link (handle));
fs->buffers_count--;
135a9f: ff 4b 4c decl 0x4c(%ebx) <== NOT EXECUTED
if (rtems_rfs_fs_no_local_cache (fs))
135aa2: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
135aa5: f6 03 02 testb $0x2,(%ebx) <== NOT EXECUTED
135aa8: 74 1e je 135ac8 <rtems_rfs_buffer_handle_release+0x65><== NOT EXECUTED
{
handle->buffer->user = (void*) 0;
135aaa: 8b 46 08 mov 0x8(%esi),%eax <== NOT EXECUTED
135aad: c7 40 38 00 00 00 00 movl $0x0,0x38(%eax) <== NOT EXECUTED
rc = rtems_rfs_buffer_io_release (handle->buffer,
135ab4: 53 push %ebx <== NOT EXECUTED
135ab5: 53 push %ebx <== NOT EXECUTED
135ab6: 0f b6 16 movzbl (%esi),%edx <== NOT EXECUTED
135ab9: 52 push %edx <== NOT EXECUTED
135aba: 50 push %eax <== NOT EXECUTED
135abb: e8 d4 7d 00 00 call 13d894 <rtems_rfs_buffer_bdbuf_release><== NOT EXECUTED
135ac0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
135ac3: e9 83 00 00 00 jmp 135b4b <rtems_rfs_buffer_handle_release+0xe8><== NOT EXECUTED
* head.
*
* This code stops a large series of transactions causing all the
* buffers in the cache being held in queues of this file system.
*/
if ((fs->release_count +
135ac8: 8b 4b 5c mov 0x5c(%ebx),%ecx <== NOT EXECUTED
135acb: 8b 53 6c mov 0x6c(%ebx),%edx <== NOT EXECUTED
135ace: 8d 3c 0a lea (%edx,%ecx,1),%edi <== NOT EXECUTED
fs->release_modified_count) >= fs->max_held_buffers)
135ad1: 31 c0 xor %eax,%eax <== NOT EXECUTED
135ad3: 3b 7b 3c cmp 0x3c(%ebx),%edi <== NOT EXECUTED
135ad6: 72 3e jb 135b16 <rtems_rfs_buffer_handle_release+0xb3><== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_HANDLE_RELEASE))
printf ("rtems-rfs: buffer-release: local cache overflow:"
" %" PRIu32 "\n", fs->release_count + fs->release_modified_count);
if (fs->release_count > fs->release_modified_count)
135ad8: 39 d1 cmp %edx,%ecx <== NOT EXECUTED
135ada: 76 13 jbe 135aef <rtems_rfs_buffer_handle_release+0x8c><== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get(
rtems_chain_control *the_chain
)
{
return _Chain_Get( the_chain );
135adc: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
135adf: 8d 43 50 lea 0x50(%ebx),%eax <== NOT EXECUTED
135ae2: 50 push %eax <== NOT EXECUTED
135ae3: e8 c8 bb fd ff call 1116b0 <_Chain_Get> <== NOT EXECUTED
{
buffer = (rtems_rfs_buffer*) rtems_chain_get (&fs->release);
fs->release_count--;
135ae8: ff 4b 5c decl 0x5c(%ebx) <== NOT EXECUTED
135aeb: 31 d2 xor %edx,%edx <== NOT EXECUTED
135aed: eb 11 jmp 135b00 <rtems_rfs_buffer_handle_release+0x9d><== NOT EXECUTED
135aef: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
135af2: 8d 43 60 lea 0x60(%ebx),%eax <== NOT EXECUTED
135af5: 50 push %eax <== NOT EXECUTED
135af6: e8 b5 bb fd ff call 1116b0 <_Chain_Get> <== NOT EXECUTED
}
else
{
buffer =
(rtems_rfs_buffer*) rtems_chain_get (&fs->release_modified);
fs->release_modified_count--;
135afb: ff 4b 6c decl 0x6c(%ebx) <== NOT EXECUTED
135afe: b2 01 mov $0x1,%dl <== NOT EXECUTED
135b00: 5f pop %edi <== NOT EXECUTED
135b01: 59 pop %ecx <== NOT EXECUTED
modified = true;
}
buffer->user = (void*) 0;
135b02: c7 40 38 00 00 00 00 movl $0x0,0x38(%eax) <== NOT EXECUTED
rc = rtems_rfs_buffer_io_release (buffer, modified);
135b09: 0f b6 d2 movzbl %dl,%edx <== NOT EXECUTED
135b0c: 52 push %edx <== NOT EXECUTED
135b0d: 50 push %eax <== NOT EXECUTED
135b0e: e8 81 7d 00 00 call 13d894 <rtems_rfs_buffer_bdbuf_release><== NOT EXECUTED
135b13: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
if (rtems_rfs_buffer_dirty (handle))
135b16: 80 3e 00 cmpb $0x0,(%esi) <== NOT EXECUTED
135b19: 74 16 je 135b31 <rtems_rfs_buffer_handle_release+0xce><== NOT EXECUTED
RTEMS_INLINE_ROUTINE void rtems_chain_append(
rtems_chain_control *the_chain,
rtems_chain_node *the_node
)
{
_Chain_Append( the_chain, the_node );
135b1b: 51 push %ecx <== NOT EXECUTED
135b1c: 51 push %ecx <== NOT EXECUTED
135b1d: ff 76 08 pushl 0x8(%esi) <== NOT EXECUTED
135b20: 8d 53 60 lea 0x60(%ebx),%edx <== NOT EXECUTED
135b23: 52 push %edx <== NOT EXECUTED
135b24: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
135b27: e8 48 bb fd ff call 111674 <_Chain_Append> <== NOT EXECUTED
{
rtems_chain_append (&fs->release_modified,
rtems_rfs_buffer_link (handle));
fs->release_modified_count++;
135b2c: ff 43 6c incl 0x6c(%ebx) <== NOT EXECUTED
135b2f: eb 14 jmp 135b45 <rtems_rfs_buffer_handle_release+0xe2><== NOT EXECUTED
135b31: 52 push %edx <== NOT EXECUTED
135b32: 52 push %edx <== NOT EXECUTED
135b33: ff 76 08 pushl 0x8(%esi) <== NOT EXECUTED
135b36: 8d 53 50 lea 0x50(%ebx),%edx <== NOT EXECUTED
135b39: 52 push %edx <== NOT EXECUTED
135b3a: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
135b3d: e8 32 bb fd ff call 111674 <_Chain_Append> <== NOT EXECUTED
}
else
{
rtems_chain_append (&fs->release, rtems_rfs_buffer_link (handle));
fs->release_count++;
135b42: ff 43 5c incl 0x5c(%ebx) <== NOT EXECUTED
135b45: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
135b48: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
}
}
}
handle->buffer = NULL;
135b4b: c7 46 08 00 00 00 00 movl $0x0,0x8(%esi) <== NOT EXECUTED
}
return rc;
}
135b52: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
135b55: 5b pop %ebx <== NOT EXECUTED
135b56: 5e pop %esi <== NOT EXECUTED
135b57: 5f pop %edi <== NOT EXECUTED
135b58: c9 leave <== NOT EXECUTED
135b59: c3 ret <== NOT EXECUTED
00135b5a <rtems_rfs_buffer_handle_request>:
int
rtems_rfs_buffer_handle_request (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle,
rtems_rfs_buffer_block block,
bool read)
{
135b5a: 55 push %ebp <== NOT EXECUTED
135b5b: 89 e5 mov %esp,%ebp <== NOT EXECUTED
135b5d: 57 push %edi <== NOT EXECUTED
135b5e: 56 push %esi <== NOT EXECUTED
135b5f: 53 push %ebx <== NOT EXECUTED
135b60: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
135b63: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
135b66: 8b 75 0c mov 0xc(%ebp),%esi <== NOT EXECUTED
135b69: 8b 7d 10 mov 0x10(%ebp),%edi <== NOT EXECUTED
135b6c: 8a 45 14 mov 0x14(%ebp),%al <== NOT EXECUTED
135b6f: 88 45 e3 mov %al,-0x1d(%ebp) <== NOT EXECUTED
/*
* If the handle has a buffer release it. This allows a handle to be reused
* without needing to close then open it again.
*/
if (rtems_rfs_buffer_handle_has_block (handle))
135b72: 83 7e 08 00 cmpl $0x0,0x8(%esi) <== NOT EXECUTED
135b76: 74 2d je 135ba5 <rtems_rfs_buffer_handle_request+0x4b><== NOT EXECUTED
{
/*
* Treat block 0 as special to handle the loading of the super block.
*/
if (block && (rtems_rfs_buffer_bnum (handle) == block))
135b78: 85 ff test %edi,%edi <== NOT EXECUTED
135b7a: 74 0b je 135b87 <rtems_rfs_buffer_handle_request+0x2d><== NOT EXECUTED
135b7c: 31 c0 xor %eax,%eax <== NOT EXECUTED
135b7e: 39 7e 04 cmp %edi,0x4(%esi) <== NOT EXECUTED
135b81: 0f 84 69 01 00 00 je 135cf0 <rtems_rfs_buffer_handle_request+0x196><== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_HANDLE_REQUEST))
printf ("rtems-rfs: buffer-request: handle has buffer: %" PRIu32 "\n",
rtems_rfs_buffer_bnum (handle));
rc = rtems_rfs_buffer_handle_release (fs, handle);
135b87: 51 push %ecx <== NOT EXECUTED
135b88: 51 push %ecx <== NOT EXECUTED
135b89: 56 push %esi <== NOT EXECUTED
135b8a: 53 push %ebx <== NOT EXECUTED
135b8b: e8 d3 fe ff ff call 135a63 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
if (rc > 0)
135b90: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
135b93: 85 c0 test %eax,%eax <== NOT EXECUTED
135b95: 0f 8f 55 01 00 00 jg 135cf0 <rtems_rfs_buffer_handle_request+0x196><== NOT EXECUTED
return rc;
handle->dirty = false;
135b9b: c6 06 00 movb $0x0,(%esi) <== NOT EXECUTED
handle->bnum = 0;
135b9e: c7 46 04 00 00 00 00 movl $0x0,0x4(%esi) <== NOT EXECUTED
* currently attached to a handle. If it is share the access. A buffer could
* be shared where different parts of the block have separate functions. An
* example is an inode block and the file system needs to handle 2 inodes in
* the same block at the same time.
*/
if (fs->buffers_count)
135ba5: 8b 4b 4c mov 0x4c(%ebx),%ecx <== NOT EXECUTED
135ba8: 85 c9 test %ecx,%ecx <== NOT EXECUTED
135baa: 74 42 je 135bee <rtems_rfs_buffer_handle_request+0x94><== NOT EXECUTED
{
/*
* Check the active buffer list for shared buffers.
*/
handle->buffer = rtems_rfs_scan_chain (&fs->buffers,
135bac: 8d 43 40 lea 0x40(%ebx),%eax <== NOT EXECUTED
135baf: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Last(
Chain_Control *the_chain
)
{
return the_chain->last;
135bb2: 8b 53 48 mov 0x48(%ebx),%edx <== NOT EXECUTED
135bb5: eb 2d jmp 135be4 <rtems_rfs_buffer_handle_request+0x8a><== NOT EXECUTED
buffer = (rtems_rfs_buffer*) node;
if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CHAINS))
printf ("%" PRIuPTR " ", ((intptr_t) buffer->user));
if (((rtems_rfs_buffer_block) ((intptr_t)(buffer->user))) == block)
135bb7: 39 7a 38 cmp %edi,0x38(%edx) <== NOT EXECUTED
135bba: 75 25 jne 135be1 <rtems_rfs_buffer_handle_request+0x87><== NOT EXECUTED
{
if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CHAINS))
printf (": found block=%" PRIuPTR "\n",
((intptr_t)(buffer->user)));
(*count)--;
135bbc: 49 dec %ecx <== NOT EXECUTED
135bbd: 89 4b 4c mov %ecx,0x4c(%ebx) <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void rtems_chain_extract(
rtems_chain_node *the_node
)
{
_Chain_Extract( the_node );
135bc0: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
135bc3: 52 push %edx <== NOT EXECUTED
135bc4: 89 55 dc mov %edx,-0x24(%ebp) <== NOT EXECUTED
135bc7: e8 cc ba fd ff call 111698 <_Chain_Extract> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Chain_Set_off_chain(
Chain_Node *node
)
{
node->next = node->previous = NULL;
135bcc: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED
135bcf: c7 40 04 00 00 00 00 movl $0x0,0x4(%eax) <== NOT EXECUTED
135bd6: c7 00 00 00 00 00 movl $0x0,(%eax) <== NOT EXECUTED
135bdc: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
135bdf: eb 0a jmp 135beb <rtems_rfs_buffer_handle_request+0x91><== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Previous(
Chain_Node *the_node
)
{
return the_node->previous;
135be1: 8b 52 04 mov 0x4(%edx),%edx <== NOT EXECUTED
node = rtems_chain_last (chain);
if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CHAINS))
printf ("rtems-rfs: buffer-scan: count=%" PRIu32 ", block=%" PRIu32 ": ", *count, block);
while (!rtems_chain_is_head (chain, node))
135be4: 3b 55 e4 cmp -0x1c(%ebp),%edx <== NOT EXECUTED
135be7: 75 ce jne 135bb7 <rtems_rfs_buffer_handle_request+0x5d><== NOT EXECUTED
135be9: 31 c0 xor %eax,%eax <== NOT EXECUTED
if (fs->buffers_count)
{
/*
* Check the active buffer list for shared buffers.
*/
handle->buffer = rtems_rfs_scan_chain (&fs->buffers,
135beb: 89 46 08 mov %eax,0x8(%esi) <== NOT EXECUTED
/*
* If the buffer has not been found check the local cache of released
* buffers. There are release and released modified lists to preserve the
* state.
*/
if (!rtems_rfs_fs_no_local_cache (fs) &&
135bee: f6 03 02 testb $0x2,(%ebx) <== NOT EXECUTED
135bf1: 0f 85 a9 00 00 00 jne 135ca0 <rtems_rfs_buffer_handle_request+0x146><== NOT EXECUTED
!rtems_rfs_buffer_handle_has_block (handle))
135bf7: 83 7e 08 00 cmpl $0x0,0x8(%esi) <== NOT EXECUTED
135bfb: 0f 85 9f 00 00 00 jne 135ca0 <rtems_rfs_buffer_handle_request+0x146><== NOT EXECUTED
{
/*
* Check the local cache of released buffers.
*/
if (fs->release_count)
135c01: 8b 4b 5c mov 0x5c(%ebx),%ecx <== NOT EXECUTED
135c04: 85 c9 test %ecx,%ecx <== NOT EXECUTED
135c06: 74 42 je 135c4a <rtems_rfs_buffer_handle_request+0xf0><== NOT EXECUTED
handle->buffer = rtems_rfs_scan_chain (&fs->release,
135c08: 8d 43 50 lea 0x50(%ebx),%eax <== NOT EXECUTED
135c0b: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Last(
Chain_Control *the_chain
)
{
return the_chain->last;
135c0e: 8b 53 58 mov 0x58(%ebx),%edx <== NOT EXECUTED
135c11: eb 2d jmp 135c40 <rtems_rfs_buffer_handle_request+0xe6><== NOT EXECUTED
buffer = (rtems_rfs_buffer*) node;
if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CHAINS))
printf ("%" PRIuPTR " ", ((intptr_t) buffer->user));
if (((rtems_rfs_buffer_block) ((intptr_t)(buffer->user))) == block)
135c13: 39 7a 38 cmp %edi,0x38(%edx) <== NOT EXECUTED
135c16: 75 25 jne 135c3d <rtems_rfs_buffer_handle_request+0xe3><== NOT EXECUTED
{
if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CHAINS))
printf (": found block=%" PRIuPTR "\n",
((intptr_t)(buffer->user)));
(*count)--;
135c18: 49 dec %ecx <== NOT EXECUTED
135c19: 89 4b 5c mov %ecx,0x5c(%ebx) <== NOT EXECUTED
135c1c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
135c1f: 52 push %edx <== NOT EXECUTED
135c20: 89 55 dc mov %edx,-0x24(%ebp) <== NOT EXECUTED
135c23: e8 70 ba fd ff call 111698 <_Chain_Extract> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Chain_Set_off_chain(
Chain_Node *node
)
{
node->next = node->previous = NULL;
135c28: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED
135c2b: c7 40 04 00 00 00 00 movl $0x0,0x4(%eax) <== NOT EXECUTED
135c32: c7 00 00 00 00 00 movl $0x0,(%eax) <== NOT EXECUTED
135c38: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
135c3b: eb 0a jmp 135c47 <rtems_rfs_buffer_handle_request+0xed><== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Previous(
Chain_Node *the_node
)
{
return the_node->previous;
135c3d: 8b 52 04 mov 0x4(%edx),%edx <== NOT EXECUTED
node = rtems_chain_last (chain);
if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CHAINS))
printf ("rtems-rfs: buffer-scan: count=%" PRIu32 ", block=%" PRIu32 ": ", *count, block);
while (!rtems_chain_is_head (chain, node))
135c40: 3b 55 e4 cmp -0x1c(%ebp),%edx <== NOT EXECUTED
135c43: 75 ce jne 135c13 <rtems_rfs_buffer_handle_request+0xb9><== NOT EXECUTED
135c45: 31 c0 xor %eax,%eax <== NOT EXECUTED
{
/*
* Check the local cache of released buffers.
*/
if (fs->release_count)
handle->buffer = rtems_rfs_scan_chain (&fs->release,
135c47: 89 46 08 mov %eax,0x8(%esi) <== NOT EXECUTED
&fs->release_count,
block);
if (!rtems_rfs_buffer_handle_has_block (handle) &&
135c4a: 83 7e 08 00 cmpl $0x0,0x8(%esi) <== NOT EXECUTED
135c4e: 75 50 jne 135ca0 <rtems_rfs_buffer_handle_request+0x146><== NOT EXECUTED
fs->release_modified_count)
135c50: 8b 4b 6c mov 0x6c(%ebx),%ecx <== NOT EXECUTED
if (fs->release_count)
handle->buffer = rtems_rfs_scan_chain (&fs->release,
&fs->release_count,
block);
if (!rtems_rfs_buffer_handle_has_block (handle) &&
135c53: 85 c9 test %ecx,%ecx <== NOT EXECUTED
135c55: 74 49 je 135ca0 <rtems_rfs_buffer_handle_request+0x146><== NOT EXECUTED
fs->release_modified_count)
{
handle->buffer = rtems_rfs_scan_chain (&fs->release_modified,
135c57: 8d 43 60 lea 0x60(%ebx),%eax <== NOT EXECUTED
135c5a: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Last(
Chain_Control *the_chain
)
{
return the_chain->last;
135c5d: 8b 53 68 mov 0x68(%ebx),%edx <== NOT EXECUTED
135c60: eb 2d jmp 135c8f <rtems_rfs_buffer_handle_request+0x135><== NOT EXECUTED
buffer = (rtems_rfs_buffer*) node;
if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CHAINS))
printf ("%" PRIuPTR " ", ((intptr_t) buffer->user));
if (((rtems_rfs_buffer_block) ((intptr_t)(buffer->user))) == block)
135c62: 39 7a 38 cmp %edi,0x38(%edx) <== NOT EXECUTED
135c65: 75 25 jne 135c8c <rtems_rfs_buffer_handle_request+0x132><== NOT EXECUTED
{
if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CHAINS))
printf (": found block=%" PRIuPTR "\n",
((intptr_t)(buffer->user)));
(*count)--;
135c67: 49 dec %ecx <== NOT EXECUTED
135c68: 89 4b 6c mov %ecx,0x6c(%ebx) <== NOT EXECUTED
135c6b: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
135c6e: 52 push %edx <== NOT EXECUTED
135c6f: 89 55 dc mov %edx,-0x24(%ebp) <== NOT EXECUTED
135c72: e8 21 ba fd ff call 111698 <_Chain_Extract> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Chain_Set_off_chain(
Chain_Node *node
)
{
node->next = node->previous = NULL;
135c77: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED
135c7a: c7 40 04 00 00 00 00 movl $0x0,0x4(%eax) <== NOT EXECUTED
135c81: c7 00 00 00 00 00 movl $0x0,(%eax) <== NOT EXECUTED
135c87: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
135c8a: eb 0a jmp 135c96 <rtems_rfs_buffer_handle_request+0x13c><== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Previous(
Chain_Node *the_node
)
{
return the_node->previous;
135c8c: 8b 52 04 mov 0x4(%edx),%edx <== NOT EXECUTED
node = rtems_chain_last (chain);
if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CHAINS))
printf ("rtems-rfs: buffer-scan: count=%" PRIu32 ", block=%" PRIu32 ": ", *count, block);
while (!rtems_chain_is_head (chain, node))
135c8f: 3b 55 e4 cmp -0x1c(%ebp),%edx <== NOT EXECUTED
135c92: 75 ce jne 135c62 <rtems_rfs_buffer_handle_request+0x108><== NOT EXECUTED
135c94: 31 c0 xor %eax,%eax <== NOT EXECUTED
block);
if (!rtems_rfs_buffer_handle_has_block (handle) &&
fs->release_modified_count)
{
handle->buffer = rtems_rfs_scan_chain (&fs->release_modified,
135c96: 89 46 08 mov %eax,0x8(%esi) <== NOT EXECUTED
&fs->release_modified_count,
block);
/*
* If we found a buffer retain the dirty buffer state.
*/
if (rtems_rfs_buffer_handle_has_block (handle))
135c99: 85 c0 test %eax,%eax <== NOT EXECUTED
135c9b: 74 03 je 135ca0 <rtems_rfs_buffer_handle_request+0x146><== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (handle);
135c9d: c6 06 01 movb $0x1,(%esi) <== NOT EXECUTED
}
/*
* If not located we request the buffer from the I/O layer.
*/
if (!rtems_rfs_buffer_handle_has_block (handle))
135ca0: 83 7e 08 00 cmpl $0x0,0x8(%esi) <== NOT EXECUTED
135ca4: 75 27 jne 135ccd <rtems_rfs_buffer_handle_request+0x173><== NOT EXECUTED
{
rc = rtems_rfs_buffer_io_request (fs, block, read, &handle->buffer);
135ca6: 8d 46 08 lea 0x8(%esi),%eax <== NOT EXECUTED
135ca9: 50 push %eax <== NOT EXECUTED
135caa: 0f b6 45 e3 movzbl -0x1d(%ebp),%eax <== NOT EXECUTED
135cae: 50 push %eax <== NOT EXECUTED
135caf: 57 push %edi <== NOT EXECUTED
135cb0: 53 push %ebx <== NOT EXECUTED
135cb1: e8 10 7c 00 00 call 13d8c6 <rtems_rfs_buffer_bdbuf_request><== NOT EXECUTED
rtems_chain_set_off_chain (rtems_rfs_buffer_link(handle));
135cb6: 8b 56 08 mov 0x8(%esi),%edx <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Chain_Set_off_chain(
Chain_Node *node
)
{
node->next = node->previous = NULL;
135cb9: c7 42 04 00 00 00 00 movl $0x0,0x4(%edx) <== NOT EXECUTED
135cc0: c7 02 00 00 00 00 movl $0x0,(%edx) <== NOT EXECUTED
if (rc > 0)
135cc6: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
135cc9: 85 c0 test %eax,%eax <== NOT EXECUTED
135ccb: 7f 23 jg 135cf0 <rtems_rfs_buffer_handle_request+0x196><== NOT EXECUTED
}
/*
* Increase the reference count of the buffer.
*/
rtems_rfs_buffer_refs_up (handle);
135ccd: 8b 46 08 mov 0x8(%esi),%eax <== NOT EXECUTED
135cd0: ff 40 34 incl 0x34(%eax) <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void rtems_chain_append(
rtems_chain_control *the_chain,
rtems_chain_node *the_node
)
{
_Chain_Append( the_chain, the_node );
135cd3: 52 push %edx <== NOT EXECUTED
135cd4: 52 push %edx <== NOT EXECUTED
135cd5: 50 push %eax <== NOT EXECUTED
135cd6: 8d 43 40 lea 0x40(%ebx),%eax <== NOT EXECUTED
135cd9: 50 push %eax <== NOT EXECUTED
135cda: e8 95 b9 fd ff call 111674 <_Chain_Append> <== NOT EXECUTED
rtems_chain_append (&fs->buffers, rtems_rfs_buffer_link (handle));
fs->buffers_count++;
135cdf: ff 43 4c incl 0x4c(%ebx) <== NOT EXECUTED
handle->buffer->user = (void*) ((intptr_t) block);
135ce2: 8b 46 08 mov 0x8(%esi),%eax <== NOT EXECUTED
135ce5: 89 78 38 mov %edi,0x38(%eax) <== NOT EXECUTED
handle->bnum = block;
135ce8: 89 7e 04 mov %edi,0x4(%esi) <== NOT EXECUTED
135ceb: 31 c0 xor %eax,%eax <== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_HANDLE_REQUEST))
printf ("rtems-rfs: buffer-request: block=%" PRIu32 " bdbuf-%s=%" PRIu32 " refs=%d\n",
block, read ? "read" : "get", handle->buffer->block,
handle->buffer->references);
return 0;
135ced: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
135cf0: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
135cf3: 5b pop %ebx <== NOT EXECUTED
135cf4: 5e pop %esi <== NOT EXECUTED
135cf5: 5f pop %edi <== NOT EXECUTED
135cf6: c9 leave <== NOT EXECUTED
135cf7: c3 ret <== NOT EXECUTED
00135a11 <rtems_rfs_buffer_open>:
return rc;
}
int
rtems_rfs_buffer_open (const char* name, rtems_rfs_file_system* fs)
{
135a11: 55 push %ebp <== NOT EXECUTED
135a12: 89 e5 mov %esp,%ebp <== NOT EXECUTED
135a14: 83 ec 60 sub $0x60,%esp <== NOT EXECUTED
struct stat st;
if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_SYNC))
printf ("rtems-rfs: buffer-open: opening: %s\n", name);
if (stat (name, &st) < 0)
135a17: 8d 45 b0 lea -0x50(%ebp),%eax <== NOT EXECUTED
135a1a: 50 push %eax <== NOT EXECUTED
135a1b: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
135a1e: e8 c9 88 fd ff call 10e2ec <stat> <== NOT EXECUTED
135a23: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
135a26: ba 02 00 00 00 mov $0x2,%edx <== NOT EXECUTED
135a2b: 85 c0 test %eax,%eax <== NOT EXECUTED
135a2d: 78 30 js 135a5f <rtems_rfs_buffer_open+0x4e><== NOT EXECUTED
#if RTEMS_RFS_USE_LIBBLOCK
/*
* Is the device a block device ?
*/
if (!S_ISBLK (st.st_mode))
135a2f: 8b 45 bc mov -0x44(%ebp),%eax <== NOT EXECUTED
135a32: 25 00 f0 00 00 and $0xf000,%eax <== NOT EXECUTED
135a37: 3d 00 60 00 00 cmp $0x6000,%eax <== NOT EXECUTED
135a3c: 75 1c jne 135a5a <rtems_rfs_buffer_open+0x49><== NOT EXECUTED
}
/*
* Check that device is registred as a block device and lock it.
*/
fs->disk = rtems_disk_obtain (st.st_rdev);
135a3e: 50 push %eax <== NOT EXECUTED
135a3f: 50 push %eax <== NOT EXECUTED
135a40: ff 75 cc pushl -0x34(%ebp) <== NOT EXECUTED
135a43: ff 75 c8 pushl -0x38(%ebp) <== NOT EXECUTED
135a46: e8 a2 62 fd ff call 10bced <rtems_disk_obtain> <== NOT EXECUTED
135a4b: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
135a4e: 89 42 0c mov %eax,0xc(%edx) <== NOT EXECUTED
if (!fs->disk)
135a51: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
135a54: 31 d2 xor %edx,%edx <== NOT EXECUTED
135a56: 85 c0 test %eax,%eax <== NOT EXECUTED
135a58: 75 05 jne 135a5f <rtems_rfs_buffer_open+0x4e><== NOT EXECUTED
135a5a: ba 05 00 00 00 mov $0x5,%edx <== NOT EXECUTED
printf ("rtems-rfs: buffer-open: blks=%" PRId32 ", blk-size=%" PRId32 "\n",
rtems_rfs_fs_media_blocks (fs),
rtems_rfs_fs_media_block_size (fs));
return 0;
}
135a5f: 89 d0 mov %edx,%eax <== NOT EXECUTED
135a61: c9 leave <== NOT EXECUTED
135a62: c3 ret <== NOT EXECUTED
001359a9 <rtems_rfs_buffer_setblksize>:
int
rtems_rfs_buffer_setblksize (rtems_rfs_file_system* fs, size_t size)
{
1359a9: 55 push %ebp <== NOT EXECUTED
1359aa: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1359ac: 53 push %ebx <== NOT EXECUTED
1359ad: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED
1359b0: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
int rc;
if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_SETBLKSIZE))
printf ("rtems-rfs: buffer-setblksize: block size: %zu\n", size);
rc = rtems_rfs_buffers_release (fs);
1359b3: 53 push %ebx <== NOT EXECUTED
1359b4: e8 7f ff ff ff call 135938 <rtems_rfs_buffers_release><== NOT EXECUTED
if ((rc > 0) && rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_SETBLKSIZE))
printf ("rtems-rfs: buffer-setblksize: buffer release failed: %d: %s\n",
rc, strerror (rc));
rc = rtems_rfs_buffer_sync (fs);
1359b9: 89 1c 24 mov %ebx,(%esp) <== NOT EXECUTED
1359bc: e8 b5 ff ff ff call 135976 <rtems_rfs_buffer_sync> <== NOT EXECUTED
if ((rc > 0) && rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_SETBLKSIZE))
printf ("rtems-rfs: buffer-setblksize: device sync failed: %d: %s\n",
rc, strerror (rc));
#if RTEMS_RFS_USE_LIBBLOCK
rc = fs->disk->ioctl (fs->disk, RTEMS_BLKIO_SETBLKSIZE, &size);
1359c1: 8b 43 0c mov 0xc(%ebx),%eax <== NOT EXECUTED
1359c4: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
1359c7: 8d 55 0c lea 0xc(%ebp),%edx <== NOT EXECUTED
1359ca: 52 push %edx <== NOT EXECUTED
1359cb: 68 04 42 04 80 push $0x80044204 <== NOT EXECUTED
1359d0: 50 push %eax <== NOT EXECUTED
1359d1: ff 50 28 call *0x28(%eax) <== NOT EXECUTED
if (rc < 0)
1359d4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1359d7: 85 c0 test %eax,%eax <== NOT EXECUTED
1359d9: 79 07 jns 1359e2 <rtems_rfs_buffer_setblksize+0x39><== NOT EXECUTED
rc = errno;
1359db: e8 34 86 00 00 call 13e014 <__errno> <== NOT EXECUTED
1359e0: 8b 00 mov (%eax),%eax <== NOT EXECUTED
#endif
return rc;
}
1359e2: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
1359e5: c9 leave <== NOT EXECUTED
1359e6: c3 ret <== NOT EXECUTED
00135976 <rtems_rfs_buffer_sync>:
return rc;
}
int
rtems_rfs_buffer_sync (rtems_rfs_file_system* fs)
{
135976: 55 push %ebp <== NOT EXECUTED
135977: 89 e5 mov %esp,%ebp <== NOT EXECUTED
135979: 56 push %esi <== NOT EXECUTED
13597a: 53 push %ebx <== NOT EXECUTED
13597b: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
/*
* @todo Split in the separate files for each type.
*/
#if RTEMS_RFS_USE_LIBBLOCK
sc = rtems_bdbuf_syncdev (rtems_rfs_fs_device (fs));
13597e: 50 push %eax <== NOT EXECUTED
13597f: 50 push %eax <== NOT EXECUTED
135980: 8b 46 0c mov 0xc(%esi),%eax <== NOT EXECUTED
135983: ff 70 04 pushl 0x4(%eax) <== NOT EXECUTED
135986: ff 30 pushl (%eax) <== NOT EXECUTED
135988: e8 95 3d fd ff call 109722 <rtems_bdbuf_syncdev> <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
13598d: 5b pop %ebx <== NOT EXECUTED
13598e: 83 f8 01 cmp $0x1,%eax <== NOT EXECUTED
135991: 19 db sbb %ebx,%ebx <== NOT EXECUTED
135993: f7 d3 not %ebx <== NOT EXECUTED
135995: 83 e3 05 and $0x5,%ebx <== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_SYNC))
printf ("rtems-rfs: buffer-sync: device sync failed: %s\n",
rtems_status_text (sc));
result = EIO;
}
rtems_disk_release (fs->disk);
135998: ff 76 0c pushl 0xc(%esi) <== NOT EXECUTED
13599b: e8 d4 64 fd ff call 10be74 <rtems_disk_release> <== NOT EXECUTED
printf ("rtems-rfs: buffer-sync: file sync failed: %d: %s\n",
result, strerror (result));
}
#endif
return result;
}
1359a0: 89 d8 mov %ebx,%eax <== NOT EXECUTED
1359a2: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
1359a5: 5b pop %ebx <== NOT EXECUTED
1359a6: 5e pop %esi <== NOT EXECUTED
1359a7: c9 leave <== NOT EXECUTED
1359a8: c3 ret <== NOT EXECUTED
00135938 <rtems_rfs_buffers_release>:
int
rtems_rfs_buffers_release (rtems_rfs_file_system* fs)
{
135938: 55 push %ebp <== NOT EXECUTED
135939: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13593b: 56 push %esi <== NOT EXECUTED
13593c: 53 push %ebx <== NOT EXECUTED
13593d: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_RELEASE))
printf ("rtems-rfs: buffers-release: active:%" PRIu32 " "
"release:%" PRIu32 " release-modified:%" PRIu32 "\n",
fs->buffers_count, fs->release_count, fs->release_modified_count);
rc = rtems_rfs_release_chain (&fs->release,
135940: 8d 56 5c lea 0x5c(%esi),%edx <== NOT EXECUTED
135943: 8d 46 50 lea 0x50(%esi),%eax <== NOT EXECUTED
135946: 31 c9 xor %ecx,%ecx <== NOT EXECUTED
135948: e8 93 ff ff ff call 1358e0 <rtems_rfs_release_chain><== NOT EXECUTED
13594d: 89 c3 mov %eax,%ebx <== NOT EXECUTED
13594f: f7 d0 not %eax <== NOT EXECUTED
135951: c1 f8 1f sar $0x1f,%eax <== NOT EXECUTED
135954: 21 c3 and %eax,%ebx <== NOT EXECUTED
&fs->release_count,
false);
if ((rc > 0) && (rrc == 0))
rrc = rc;
rc = rtems_rfs_release_chain (&fs->release_modified,
135956: 8d 56 6c lea 0x6c(%esi),%edx <== NOT EXECUTED
135959: 8d 46 60 lea 0x60(%esi),%eax <== NOT EXECUTED
13595c: b9 01 00 00 00 mov $0x1,%ecx <== NOT EXECUTED
135961: e8 7a ff ff ff call 1358e0 <rtems_rfs_release_chain><== NOT EXECUTED
&fs->release_modified_count,
true);
if ((rc > 0) && (rrc == 0))
135966: 85 db test %ebx,%ebx <== NOT EXECUTED
135968: 75 06 jne 135970 <rtems_rfs_buffers_release+0x38><== NOT EXECUTED
13596a: 85 c0 test %eax,%eax <== NOT EXECUTED
13596c: 7e 02 jle 135970 <rtems_rfs_buffers_release+0x38><== NOT EXECUTED
13596e: 89 c3 mov %eax,%ebx <== NOT EXECUTED
rrc = rc;
return rrc;
}
135970: 89 d8 mov %ebx,%eax <== NOT EXECUTED
135972: 5b pop %ebx <== NOT EXECUTED
135973: 5e pop %esi <== NOT EXECUTED
135974: c9 leave <== NOT EXECUTED
135975: c3 ret <== NOT EXECUTED
001363d0 <rtems_rfs_dir_add_entry>:
rtems_rfs_dir_add_entry (rtems_rfs_file_system* fs,
rtems_rfs_inode_handle* dir,
const char* name,
size_t length,
rtems_rfs_ino ino)
{
1363d0: 55 push %ebp <== NOT EXECUTED
1363d1: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1363d3: 57 push %edi <== NOT EXECUTED
1363d4: 56 push %esi <== NOT EXECUTED
1363d5: 53 push %ebx <== NOT EXECUTED
1363d6: 81 ec d0 00 00 00 sub $0xd0,%esp <== NOT EXECUTED
1363dc: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
for (c = 0; c < length; c++)
printf ("%c", name[c]);
printf (", len=%zd\n", length);
}
rc = rtems_rfs_block_map_open (fs, dir, &map);
1363df: 8d bd 7c ff ff ff lea -0x84(%ebp),%edi <== NOT EXECUTED
1363e5: 57 push %edi <== NOT EXECUTED
1363e6: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
1363e9: 53 push %ebx <== NOT EXECUTED
1363ea: e8 56 f3 ff ff call 135745 <rtems_rfs_block_map_open><== NOT EXECUTED
1363ef: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
1363f1: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1363f4: 85 c0 test %eax,%eax <== NOT EXECUTED
1363f6: 0f 8f 83 02 00 00 jg 13667f <rtems_rfs_dir_add_entry+0x2af><== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_open (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
handle->dirty = false;
1363fc: c6 45 cc 00 movb $0x0,-0x34(%ebp) <== NOT EXECUTED
handle->bnum = 0;
136400: c7 45 d0 00 00 00 00 movl $0x0,-0x30(%ebp) <== NOT EXECUTED
handle->buffer = NULL;
136407: c7 45 d4 00 00 00 00 movl $0x0,-0x2c(%ebp) <== NOT EXECUTED
* @param bpos A pointer to the block position.
*/
static inline void
rtems_rfs_block_set_bpos_zero (rtems_rfs_block_pos* bpos)
{
bpos->bno = 0;
13640e: c7 45 d8 00 00 00 00 movl $0x0,-0x28(%ebp) <== NOT EXECUTED
bpos->boff = 0;
136415: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp) <== NOT EXECUTED
bpos->block = 0;
13641c: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp) <== NOT EXECUTED
elength = rtems_rfs_dir_entry_length (entry);
eino = rtems_rfs_dir_entry_ino (entry);
if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)
{
if ((length + RTEMS_RFS_DIR_ENTRY_SIZE) <
136423: 8b 45 14 mov 0x14(%ebp),%eax <== NOT EXECUTED
136426: 83 c0 0a add $0xa,%eax <== NOT EXECUTED
136429: 89 85 3c ff ff ff mov %eax,-0xc4(%ebp) <== NOT EXECUTED
/*
* Locate the first block. If an error the block will be 0. If the map is
* empty which happens when creating a directory and adding the first entry
* the seek will return ENXIO. In this case we need to grow the directory.
*/
rc = rtems_rfs_block_map_find (fs, &map, &bpos, &block);
13642f: 8d 55 e4 lea -0x1c(%ebp),%edx <== NOT EXECUTED
136432: 52 push %edx <== NOT EXECUTED
136433: 8d 4d d8 lea -0x28(%ebp),%ecx <== NOT EXECUTED
136436: 51 push %ecx <== NOT EXECUTED
136437: 8d 85 7c ff ff ff lea -0x84(%ebp),%eax <== NOT EXECUTED
13643d: 50 push %eax <== NOT EXECUTED
13643e: 53 push %ebx <== NOT EXECUTED
13643f: e8 20 e9 ff ff call 134d64 <rtems_rfs_block_map_find><== NOT EXECUTED
if (rc > 0)
136444: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
136447: b2 01 mov $0x1,%dl <== NOT EXECUTED
136449: 85 c0 test %eax,%eax <== NOT EXECUTED
13644b: 7e 29 jle 136476 <rtems_rfs_dir_add_entry+0xa6><== NOT EXECUTED
{
if (rc != ENXIO)
13644d: 83 f8 06 cmp $0x6,%eax <== NOT EXECUTED
136450: 0f 85 0b 02 00 00 jne 136661 <rtems_rfs_dir_add_entry+0x291><== NOT EXECUTED
}
/*
* We have reached the end of the directory so add a block.
*/
rc = rtems_rfs_block_map_grow (fs, &map, 1, &block);
136456: 8d 55 e4 lea -0x1c(%ebp),%edx <== NOT EXECUTED
136459: 52 push %edx <== NOT EXECUTED
13645a: 6a 01 push $0x1 <== NOT EXECUTED
13645c: 8d 8d 7c ff ff ff lea -0x84(%ebp),%ecx <== NOT EXECUTED
136462: 51 push %ecx <== NOT EXECUTED
136463: 53 push %ebx <== NOT EXECUTED
136464: e8 a1 ee ff ff call 13530a <rtems_rfs_block_map_grow><== NOT EXECUTED
if (rc > 0)
136469: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13646c: 85 c0 test %eax,%eax <== NOT EXECUTED
13646e: 0f 8f ed 01 00 00 jg 136661 <rtems_rfs_dir_add_entry+0x291><== NOT EXECUTED
136474: 31 d2 xor %edx,%edx <== NOT EXECUTED
}
read = false;
}
bpos.bno++;
136476: ff 45 d8 incl -0x28(%ebp) <== NOT EXECUTED
rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, read);
136479: 0f b6 c2 movzbl %dl,%eax <== NOT EXECUTED
13647c: 50 push %eax <== NOT EXECUTED
13647d: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
136480: 8d 45 cc lea -0x34(%ebp),%eax <== NOT EXECUTED
136483: 50 push %eax <== NOT EXECUTED
136484: 53 push %ebx <== NOT EXECUTED
136485: 88 95 38 ff ff ff mov %dl,-0xc8(%ebp) <== NOT EXECUTED
13648b: e8 ca f6 ff ff call 135b5a <rtems_rfs_buffer_handle_request><== NOT EXECUTED
if (rc > 0)
136490: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
136493: 85 c0 test %eax,%eax <== NOT EXECUTED
136495: 8a 95 38 ff ff ff mov -0xc8(%ebp),%dl <== NOT EXECUTED
13649b: 0f 8f c0 01 00 00 jg 136661 <rtems_rfs_dir_add_entry+0x291><== NOT EXECUTED
"block buffer req failed for ino %" PRIu32 ": %d: %s\n",
rtems_rfs_inode_ino (dir), rc, strerror (rc));
break;
}
entry = rtems_rfs_buffer_data (&buffer);
1364a1: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED
1364a4: 8b 70 20 mov 0x20(%eax),%esi <== NOT EXECUTED
if (!read)
1364a7: 84 d2 test %dl,%dl <== NOT EXECUTED
1364a9: 75 09 jne 1364b4 <rtems_rfs_dir_add_entry+0xe4><== NOT EXECUTED
memset (entry, 0xff, rtems_rfs_fs_block_size (fs));
1364ab: 8b 4b 08 mov 0x8(%ebx),%ecx <== NOT EXECUTED
1364ae: b0 ff mov $0xff,%al <== NOT EXECUTED
1364b0: 89 f7 mov %esi,%edi <== NOT EXECUTED
1364b2: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED
offset = 0;
while (offset < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
1364b4: 8b 53 08 mov 0x8(%ebx),%edx <== NOT EXECUTED
1364b7: 89 95 74 ff ff ff mov %edx,-0x8c(%ebp) <== NOT EXECUTED
1364bd: 83 ea 0a sub $0xa,%edx <== NOT EXECUTED
1364c0: 89 95 70 ff ff ff mov %edx,-0x90(%ebp) <== NOT EXECUTED
1364c6: 31 c9 xor %ecx,%ecx <== NOT EXECUTED
1364c8: 89 8d 34 ff ff ff mov %ecx,-0xcc(%ebp) <== NOT EXECUTED
1364ce: e9 77 01 00 00 jmp 13664a <rtems_rfs_dir_add_entry+0x27a><== NOT EXECUTED
{
rtems_rfs_ino eino;
int elength;
elength = rtems_rfs_dir_entry_length (entry);
1364d3: 8d 4e 08 lea 0x8(%esi),%ecx <== NOT EXECUTED
1364d6: 89 8d 40 ff ff ff mov %ecx,-0xc0(%ebp) <== NOT EXECUTED
1364dc: 8d 46 09 lea 0x9(%esi),%eax <== NOT EXECUTED
1364df: 89 85 44 ff ff ff mov %eax,-0xbc(%ebp) <== NOT EXECUTED
1364e5: 0f b6 46 08 movzbl 0x8(%esi),%eax <== NOT EXECUTED
1364e9: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
1364ec: 0f b6 56 09 movzbl 0x9(%esi),%edx <== NOT EXECUTED
1364f0: 09 d0 or %edx,%eax <== NOT EXECUTED
eino = rtems_rfs_dir_entry_ino (entry);
1364f2: 8a 16 mov (%esi),%dl <== NOT EXECUTED
1364f4: 88 95 48 ff ff ff mov %dl,-0xb8(%ebp) <== NOT EXECUTED
1364fa: 8d 7e 01 lea 0x1(%esi),%edi <== NOT EXECUTED
1364fd: 8a 4e 01 mov 0x1(%esi),%cl <== NOT EXECUTED
136500: 88 8d 63 ff ff ff mov %cl,-0x9d(%ebp) <== NOT EXECUTED
136506: 8d 56 02 lea 0x2(%esi),%edx <== NOT EXECUTED
136509: 89 95 64 ff ff ff mov %edx,-0x9c(%ebp) <== NOT EXECUTED
13650f: 8a 4e 02 mov 0x2(%esi),%cl <== NOT EXECUTED
136512: 88 8d 6b ff ff ff mov %cl,-0x95(%ebp) <== NOT EXECUTED
136518: 8d 56 03 lea 0x3(%esi),%edx <== NOT EXECUTED
13651b: 89 95 6c ff ff ff mov %edx,-0x94(%ebp) <== NOT EXECUTED
136521: 8a 56 03 mov 0x3(%esi),%dl <== NOT EXECUTED
if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)
136524: 3d ff ff 00 00 cmp $0xffff,%eax <== NOT EXECUTED
136529: 0f 85 bc 00 00 00 jne 1365eb <rtems_rfs_dir_add_entry+0x21b><== NOT EXECUTED
13652f: 8b 8d 34 ff ff ff mov -0xcc(%ebp),%ecx <== NOT EXECUTED
{
if ((length + RTEMS_RFS_DIR_ENTRY_SIZE) <
136535: 8b 85 74 ff ff ff mov -0x8c(%ebp),%eax <== NOT EXECUTED
13653b: 29 c8 sub %ecx,%eax <== NOT EXECUTED
13653d: 39 85 3c ff ff ff cmp %eax,-0xc4(%ebp) <== NOT EXECUTED
136543: 0f 83 e6 fe ff ff jae 13642f <rtems_rfs_dir_add_entry+0x5f><== NOT EXECUTED
(rtems_rfs_fs_block_size (fs) - offset))
{
uint32_t hash;
hash = rtems_rfs_dir_hash (name, length);
136549: 50 push %eax <== NOT EXECUTED
13654a: 50 push %eax <== NOT EXECUTED
13654b: ff 75 14 pushl 0x14(%ebp) <== NOT EXECUTED
13654e: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
136551: e8 b2 73 00 00 call 13d908 <rtems_rfs_dir_hash> <== NOT EXECUTED
rtems_rfs_dir_set_entry_hash (entry, hash);
136556: 89 c2 mov %eax,%edx <== NOT EXECUTED
136558: c1 ea 18 shr $0x18,%edx <== NOT EXECUTED
13655b: 88 56 04 mov %dl,0x4(%esi) <== NOT EXECUTED
13655e: 89 c2 mov %eax,%edx <== NOT EXECUTED
136560: c1 ea 10 shr $0x10,%edx <== NOT EXECUTED
136563: 88 56 05 mov %dl,0x5(%esi) <== NOT EXECUTED
136566: 89 c2 mov %eax,%edx <== NOT EXECUTED
136568: c1 ea 08 shr $0x8,%edx <== NOT EXECUTED
13656b: 88 56 06 mov %dl,0x6(%esi) <== NOT EXECUTED
13656e: 88 46 07 mov %al,0x7(%esi) <== NOT EXECUTED
rtems_rfs_dir_set_entry_ino (entry, ino);
136571: 8b 45 18 mov 0x18(%ebp),%eax <== NOT EXECUTED
136574: c1 e8 18 shr $0x18,%eax <== NOT EXECUTED
136577: 88 06 mov %al,(%esi) <== NOT EXECUTED
136579: 8b 45 18 mov 0x18(%ebp),%eax <== NOT EXECUTED
13657c: c1 e8 10 shr $0x10,%eax <== NOT EXECUTED
13657f: 88 07 mov %al,(%edi) <== NOT EXECUTED
136581: 8b 45 18 mov 0x18(%ebp),%eax <== NOT EXECUTED
136584: c1 e8 08 shr $0x8,%eax <== NOT EXECUTED
136587: 8b 95 64 ff ff ff mov -0x9c(%ebp),%edx <== NOT EXECUTED
13658d: 88 02 mov %al,(%edx) <== NOT EXECUTED
13658f: 8a 4d 18 mov 0x18(%ebp),%cl <== NOT EXECUTED
136592: 8b 85 6c ff ff ff mov -0x94(%ebp),%eax <== NOT EXECUTED
136598: 88 08 mov %cl,(%eax) <== NOT EXECUTED
rtems_rfs_dir_set_entry_length (entry,
13659a: 8b 45 14 mov 0x14(%ebp),%eax <== NOT EXECUTED
13659d: 83 c0 0a add $0xa,%eax <== NOT EXECUTED
1365a0: 66 c1 e8 08 shr $0x8,%ax <== NOT EXECUTED
1365a4: 8b 95 40 ff ff ff mov -0xc0(%ebp),%edx <== NOT EXECUTED
1365aa: 88 02 mov %al,(%edx) <== NOT EXECUTED
1365ac: 8a 45 14 mov 0x14(%ebp),%al <== NOT EXECUTED
1365af: 83 c0 0a add $0xa,%eax <== NOT EXECUTED
1365b2: 8b 8d 44 ff ff ff mov -0xbc(%ebp),%ecx <== NOT EXECUTED
1365b8: 88 01 mov %al,(%ecx) <== NOT EXECUTED
RTEMS_RFS_DIR_ENTRY_SIZE + length);
memcpy (entry + RTEMS_RFS_DIR_ENTRY_SIZE, name, length);
1365ba: 8d 46 0a lea 0xa(%esi),%eax <== NOT EXECUTED
1365bd: 89 c7 mov %eax,%edi <== NOT EXECUTED
1365bf: 8b 75 10 mov 0x10(%ebp),%esi <== NOT EXECUTED
1365c2: 8b 4d 14 mov 0x14(%ebp),%ecx <== NOT EXECUTED
1365c5: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&buffer);
1365c7: c6 45 cc 01 movb $0x1,-0x34(%ebp) <== NOT EXECUTED
rtems_rfs_buffer_handle_close (fs, &buffer);
1365cb: 8d 55 cc lea -0x34(%ebp),%edx <== NOT EXECUTED
1365ce: 89 d8 mov %ebx,%eax <== NOT EXECUTED
1365d0: e8 23 f7 ff ff call 135cf8 <rtems_rfs_buffer_handle_close><== NOT EXECUTED
rtems_rfs_block_map_close (fs, &map);
1365d5: 5e pop %esi <== NOT EXECUTED
1365d6: 5f pop %edi <== NOT EXECUTED
1365d7: 8d 85 7c ff ff ff lea -0x84(%ebp),%eax <== NOT EXECUTED
1365dd: 50 push %eax <== NOT EXECUTED
1365de: 53 push %ebx <== NOT EXECUTED
1365df: e8 be ef ff ff call 1355a2 <rtems_rfs_block_map_close><== NOT EXECUTED
1365e4: 31 f6 xor %esi,%esi <== NOT EXECUTED
1365e6: e9 91 00 00 00 jmp 13667c <rtems_rfs_dir_add_entry+0x2ac><== NOT EXECUTED
}
break;
}
if (rtems_rfs_dir_entry_valid (fs, elength, eino))
1365eb: 83 f8 0a cmp $0xa,%eax <== NOT EXECUTED
1365ee: 7e 32 jle 136622 <rtems_rfs_dir_add_entry+0x252><== NOT EXECUTED
{
rtems_rfs_ino eino;
int elength;
elength = rtems_rfs_dir_entry_length (entry);
eino = rtems_rfs_dir_entry_ino (entry);
1365f0: 0f b6 d2 movzbl %dl,%edx <== NOT EXECUTED
1365f3: 8a 8d 48 ff ff ff mov -0xb8(%ebp),%cl <== NOT EXECUTED
1365f9: c1 e1 18 shl $0x18,%ecx <== NOT EXECUTED
1365fc: 09 ca or %ecx,%edx <== NOT EXECUTED
1365fe: 0f b6 bd 63 ff ff ff movzbl -0x9d(%ebp),%edi <== NOT EXECUTED
136605: c1 e7 10 shl $0x10,%edi <== NOT EXECUTED
136608: 09 fa or %edi,%edx <== NOT EXECUTED
13660a: 0f b6 bd 6b ff ff ff movzbl -0x95(%ebp),%edi <== NOT EXECUTED
136611: c1 e7 08 shl $0x8,%edi <== NOT EXECUTED
}
break;
}
if (rtems_rfs_dir_entry_valid (fs, elength, eino))
136614: 09 fa or %edi,%edx <== NOT EXECUTED
136616: 74 0a je 136622 <rtems_rfs_dir_add_entry+0x252><== NOT EXECUTED
136618: 3b 43 18 cmp 0x18(%ebx),%eax <== NOT EXECUTED
13661b: 73 05 jae 136622 <rtems_rfs_dir_add_entry+0x252><== NOT EXECUTED
13661d: 3b 53 10 cmp 0x10(%ebx),%edx <== NOT EXECUTED
136620: 76 20 jbe 136642 <rtems_rfs_dir_add_entry+0x272><== NOT EXECUTED
{
if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_ADD_ENTRY))
printf ("rtems-rfs: dir-add-entry: "
"bad length or ino for ino %" PRIu32 ": %u/%" PRId32 " @ %04x\n",
rtems_rfs_inode_ino (dir), elength, eino, offset);
rtems_rfs_buffer_handle_close (fs, &buffer);
136622: 8d 55 cc lea -0x34(%ebp),%edx <== NOT EXECUTED
136625: 89 d8 mov %ebx,%eax <== NOT EXECUTED
136627: e8 cc f6 ff ff call 135cf8 <rtems_rfs_buffer_handle_close><== NOT EXECUTED
rtems_rfs_block_map_close (fs, &map);
13662c: 51 push %ecx <== NOT EXECUTED
13662d: 51 push %ecx <== NOT EXECUTED
13662e: 8d 85 7c ff ff ff lea -0x84(%ebp),%eax <== NOT EXECUTED
136634: 50 push %eax <== NOT EXECUTED
136635: 53 push %ebx <== NOT EXECUTED
136636: e8 67 ef ff ff call 1355a2 <rtems_rfs_block_map_close><== NOT EXECUTED
13663b: be 05 00 00 00 mov $0x5,%esi <== NOT EXECUTED
136640: eb 3a jmp 13667c <rtems_rfs_dir_add_entry+0x2ac><== NOT EXECUTED
return EIO;
}
entry += elength;
136642: 01 c6 add %eax,%esi <== NOT EXECUTED
offset += elength;
136644: 01 85 34 ff ff ff add %eax,-0xcc(%ebp) <== NOT EXECUTED
if (!read)
memset (entry, 0xff, rtems_rfs_fs_block_size (fs));
offset = 0;
while (offset < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
13664a: 8b 85 70 ff ff ff mov -0x90(%ebp),%eax <== NOT EXECUTED
136650: 39 85 34 ff ff ff cmp %eax,-0xcc(%ebp) <== NOT EXECUTED
136656: 0f 83 d3 fd ff ff jae 13642f <rtems_rfs_dir_add_entry+0x5f><== NOT EXECUTED
13665c: e9 72 fe ff ff jmp 1364d3 <rtems_rfs_dir_add_entry+0x103><== NOT EXECUTED
136661: 89 c6 mov %eax,%esi <== NOT EXECUTED
entry += elength;
offset += elength;
}
}
rtems_rfs_buffer_handle_close (fs, &buffer);
136663: 8d 55 cc lea -0x34(%ebp),%edx <== NOT EXECUTED
136666: 89 d8 mov %ebx,%eax <== NOT EXECUTED
136668: e8 8b f6 ff ff call 135cf8 <rtems_rfs_buffer_handle_close><== NOT EXECUTED
rtems_rfs_block_map_close (fs, &map);
13666d: 52 push %edx <== NOT EXECUTED
13666e: 52 push %edx <== NOT EXECUTED
13666f: 8d 85 7c ff ff ff lea -0x84(%ebp),%eax <== NOT EXECUTED
136675: 50 push %eax <== NOT EXECUTED
136676: 53 push %ebx <== NOT EXECUTED
136677: e8 26 ef ff ff call 1355a2 <rtems_rfs_block_map_close><== NOT EXECUTED
return rc;
13667c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
13667f: 89 f0 mov %esi,%eax <== NOT EXECUTED
136681: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
136684: 5b pop %ebx <== NOT EXECUTED
136685: 5e pop %esi <== NOT EXECUTED
136686: 5f pop %edi <== NOT EXECUTED
136687: c9 leave <== NOT EXECUTED
136688: c3 ret <== NOT EXECUTED
00136149 <rtems_rfs_dir_del_entry>:
int
rtems_rfs_dir_del_entry (rtems_rfs_file_system* fs,
rtems_rfs_inode_handle* dir,
rtems_rfs_ino ino,
uint32_t offset)
{
136149: 55 push %ebp <== NOT EXECUTED
13614a: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13614c: 57 push %edi <== NOT EXECUTED
13614d: 56 push %esi <== NOT EXECUTED
13614e: 53 push %ebx <== NOT EXECUTED
13614f: 81 ec a0 00 00 00 sub $0xa0,%esp <== NOT EXECUTED
136155: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_DEL_ENTRY))
printf ("rtems-rfs: dir-del-entry: dir=%" PRId32 ", entry=%" PRId32 " offset=%" PRIu32 "\n",
rtems_rfs_inode_ino (dir), ino, offset);
rc = rtems_rfs_block_map_open (fs, dir, &map);
136158: 8d 7d 88 lea -0x78(%ebp),%edi <== NOT EXECUTED
13615b: 57 push %edi <== NOT EXECUTED
13615c: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
13615f: 53 push %ebx <== NOT EXECUTED
136160: e8 e0 f5 ff ff call 135745 <rtems_rfs_block_map_open><== NOT EXECUTED
136165: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
136167: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13616a: 85 c0 test %eax,%eax <== NOT EXECUTED
13616c: 0f 8f 54 02 00 00 jg 1363c6 <rtems_rfs_dir_del_entry+0x27d><== NOT EXECUTED
return rc;
rc = rtems_rfs_block_map_seek (fs, &map, offset, &block);
136172: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
136175: 8d 55 e4 lea -0x1c(%ebp),%edx <== NOT EXECUTED
136178: 52 push %edx <== NOT EXECUTED
136179: 8b 45 14 mov 0x14(%ebp),%eax <== NOT EXECUTED
13617c: 89 45 80 mov %eax,-0x80(%ebp) <== NOT EXECUTED
13617f: c7 45 84 00 00 00 00 movl $0x0,-0x7c(%ebp) <== NOT EXECUTED
136186: ff 75 84 pushl -0x7c(%ebp) <== NOT EXECUTED
136189: ff 75 80 pushl -0x80(%ebp) <== NOT EXECUTED
13618c: 57 push %edi <== NOT EXECUTED
13618d: 53 push %ebx <== NOT EXECUTED
13618e: 89 95 60 ff ff ff mov %edx,-0xa0(%ebp) <== NOT EXECUTED
136194: e8 07 ed ff ff call 134ea0 <rtems_rfs_block_map_seek><== NOT EXECUTED
136199: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
13619b: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
13619e: 85 c0 test %eax,%eax <== NOT EXECUTED
1361a0: 7e 12 jle 1361b4 <rtems_rfs_dir_del_entry+0x6b><== NOT EXECUTED
{
if (rc == ENXIO)
1361a2: 83 f8 06 cmp $0x6,%eax <== NOT EXECUTED
1361a5: 0f 85 0c 02 00 00 jne 1363b7 <rtems_rfs_dir_del_entry+0x26e><== NOT EXECUTED
1361ab: 66 be 02 00 mov $0x2,%si <== NOT EXECUTED
1361af: e9 03 02 00 00 jmp 1363b7 <rtems_rfs_dir_del_entry+0x26e><== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_open (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
handle->dirty = false;
1361b4: c6 45 d8 00 movb $0x0,-0x28(%ebp) <== NOT EXECUTED
handle->bnum = 0;
1361b8: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp) <== NOT EXECUTED
handle->buffer = NULL;
1361bf: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp) <== NOT EXECUTED
}
/*
* Only search if the offset is 0 else we are at that position.
*/
search = offset ? false : true;
1361c6: 83 7d 14 00 cmpl $0x0,0x14(%ebp) <== NOT EXECUTED
1361ca: 0f 94 85 77 ff ff ff sete -0x89(%ebp) <== NOT EXECUTED
1361d1: 31 f6 xor %esi,%esi <== NOT EXECUTED
while (rc == 0)
1361d3: e9 cd 01 00 00 jmp 1363a5 <rtems_rfs_dir_del_entry+0x25c><== NOT EXECUTED
{
uint8_t* entry;
int eoffset;
rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, true);
1361d8: 6a 01 push $0x1 <== NOT EXECUTED
1361da: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
1361dd: 8d 55 d8 lea -0x28(%ebp),%edx <== NOT EXECUTED
1361e0: 52 push %edx <== NOT EXECUTED
1361e1: 53 push %ebx <== NOT EXECUTED
1361e2: e8 73 f9 ff ff call 135b5a <rtems_rfs_buffer_handle_request><== NOT EXECUTED
1361e7: 89 85 7c ff ff ff mov %eax,-0x84(%ebp) <== NOT EXECUTED
if (rc > 0)
1361ed: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1361f0: 85 c0 test %eax,%eax <== NOT EXECUTED
1361f2: 7e 07 jle 1361fb <rtems_rfs_dir_del_entry+0xb2><== NOT EXECUTED
1361f4: 89 c6 mov %eax,%esi <== NOT EXECUTED
1361f6: e9 b2 01 00 00 jmp 1363ad <rtems_rfs_dir_del_entry+0x264><== NOT EXECUTED
/*
* If we are searching start at the beginning of the block. If not searching
* skip to the offset in the block.
*/
if (search)
1361fb: c7 45 80 00 00 00 00 movl $0x0,-0x80(%ebp) <== NOT EXECUTED
136202: 80 bd 77 ff ff ff 00 cmpb $0x0,-0x89(%ebp) <== NOT EXECUTED
136209: 75 0b jne 136216 <rtems_rfs_dir_del_entry+0xcd><== NOT EXECUTED
eoffset = 0;
else
eoffset = offset % rtems_rfs_fs_block_size (fs);
13620b: 8b 45 14 mov 0x14(%ebp),%eax <== NOT EXECUTED
13620e: 31 d2 xor %edx,%edx <== NOT EXECUTED
136210: f7 73 08 divl 0x8(%ebx) <== NOT EXECUTED
136213: 89 55 80 mov %edx,-0x80(%ebp) <== NOT EXECUTED
entry = rtems_rfs_buffer_data (&buffer) + eoffset;
136216: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
136219: 8b 7d 80 mov -0x80(%ebp),%edi <== NOT EXECUTED
13621c: 03 78 20 add 0x20(%eax),%edi <== NOT EXECUTED
while (eoffset < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
13621f: 8b 4b 08 mov 0x8(%ebx),%ecx <== NOT EXECUTED
136222: 89 8d 78 ff ff ff mov %ecx,-0x88(%ebp) <== NOT EXECUTED
136228: 83 e9 0a sub $0xa,%ecx <== NOT EXECUTED
13622b: 89 8d 70 ff ff ff mov %ecx,-0x90(%ebp) <== NOT EXECUTED
136231: e9 28 01 00 00 jmp 13635e <rtems_rfs_dir_del_entry+0x215><== NOT EXECUTED
{
rtems_rfs_ino eino;
int elength;
elength = rtems_rfs_dir_entry_length (entry);
136236: 8d 47 08 lea 0x8(%edi),%eax <== NOT EXECUTED
136239: 89 85 64 ff ff ff mov %eax,-0x9c(%ebp) <== NOT EXECUTED
13623f: 8d 57 09 lea 0x9(%edi),%edx <== NOT EXECUTED
136242: 89 95 68 ff ff ff mov %edx,-0x98(%ebp) <== NOT EXECUTED
136248: 0f b6 4f 08 movzbl 0x8(%edi),%ecx <== NOT EXECUTED
13624c: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
13624f: 0f b6 47 09 movzbl 0x9(%edi),%eax <== NOT EXECUTED
136253: 09 c1 or %eax,%ecx <== NOT EXECUTED
eino = rtems_rfs_dir_entry_ino (entry);
136255: 8a 17 mov (%edi),%dl <== NOT EXECUTED
136257: 8a 47 01 mov 0x1(%edi),%al <== NOT EXECUTED
13625a: 88 85 6e ff ff ff mov %al,-0x92(%ebp) <== NOT EXECUTED
136260: 8a 47 02 mov 0x2(%edi),%al <== NOT EXECUTED
136263: 88 85 6f ff ff ff mov %al,-0x91(%ebp) <== NOT EXECUTED
136269: 8a 47 03 mov 0x3(%edi),%al <== NOT EXECUTED
if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)
13626c: 81 f9 ff ff 00 00 cmp $0xffff,%ecx <== NOT EXECUTED
136272: 0f 84 f5 00 00 00 je 13636d <rtems_rfs_dir_del_entry+0x224><== NOT EXECUTED
break;
if (rtems_rfs_dir_entry_valid (fs, elength, eino))
136278: 83 f9 0a cmp $0xa,%ecx <== NOT EXECUTED
13627b: 0f 8e 14 01 00 00 jle 136395 <rtems_rfs_dir_del_entry+0x24c><== NOT EXECUTED
{
rtems_rfs_ino eino;
int elength;
elength = rtems_rfs_dir_entry_length (entry);
eino = rtems_rfs_dir_entry_ino (entry);
136281: 0f b6 c0 movzbl %al,%eax <== NOT EXECUTED
136284: c1 e2 18 shl $0x18,%edx <== NOT EXECUTED
136287: 09 d0 or %edx,%eax <== NOT EXECUTED
136289: 0f b6 95 6e ff ff ff movzbl -0x92(%ebp),%edx <== NOT EXECUTED
136290: c1 e2 10 shl $0x10,%edx <== NOT EXECUTED
136293: 09 d0 or %edx,%eax <== NOT EXECUTED
136295: 0f b6 95 6f ff ff ff movzbl -0x91(%ebp),%edx <== NOT EXECUTED
13629c: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)
break;
if (rtems_rfs_dir_entry_valid (fs, elength, eino))
13629f: 09 d0 or %edx,%eax <== NOT EXECUTED
1362a1: 0f 84 ee 00 00 00 je 136395 <rtems_rfs_dir_del_entry+0x24c><== NOT EXECUTED
1362a7: 3b 4b 18 cmp 0x18(%ebx),%ecx <== NOT EXECUTED
1362aa: 0f 83 e5 00 00 00 jae 136395 <rtems_rfs_dir_del_entry+0x24c><== NOT EXECUTED
1362b0: 3b 43 10 cmp 0x10(%ebx),%eax <== NOT EXECUTED
1362b3: 0f 87 dc 00 00 00 ja 136395 <rtems_rfs_dir_del_entry+0x24c><== NOT EXECUTED
rtems_rfs_inode_ino (dir), elength, eino, block, eoffset);
rc = EIO;
break;
}
if (ino == rtems_rfs_dir_entry_ino (entry))
1362b9: 39 45 10 cmp %eax,0x10(%ebp) <== NOT EXECUTED
1362bc: 0f 85 8e 00 00 00 jne 136350 <rtems_rfs_dir_del_entry+0x207><== NOT EXECUTED
{
uint32_t remaining;
remaining = rtems_rfs_fs_block_size (fs) - (eoffset + elength);
1362c2: 8b 55 80 mov -0x80(%ebp),%edx <== NOT EXECUTED
1362c5: 01 ca add %ecx,%edx <== NOT EXECUTED
1362c7: 8b 85 78 ff ff ff mov -0x88(%ebp),%eax <== NOT EXECUTED
1362cd: 29 d0 sub %edx,%eax <== NOT EXECUTED
1362cf: 89 c2 mov %eax,%edx <== NOT EXECUTED
memmove (entry, entry + elength, remaining);
1362d1: 50 push %eax <== NOT EXECUTED
1362d2: 52 push %edx <== NOT EXECUTED
1362d3: 8d 04 0f lea (%edi,%ecx,1),%eax <== NOT EXECUTED
1362d6: 50 push %eax <== NOT EXECUTED
1362d7: 57 push %edi <== NOT EXECUTED
1362d8: 89 95 60 ff ff ff mov %edx,-0xa0(%ebp) <== NOT EXECUTED
1362de: 89 8d 5c ff ff ff mov %ecx,-0xa4(%ebp) <== NOT EXECUTED
1362e4: e8 c7 ad 00 00 call 1410b0 <memmove> <== NOT EXECUTED
memset (entry + remaining, 0xff, elength);
1362e9: 8b 95 60 ff ff ff mov -0xa0(%ebp),%edx <== NOT EXECUTED
1362ef: 8d 14 17 lea (%edi,%edx,1),%edx <== NOT EXECUTED
1362f2: b0 ff mov $0xff,%al <== NOT EXECUTED
1362f4: 8b 8d 5c ff ff ff mov -0xa4(%ebp),%ecx <== NOT EXECUTED
1362fa: 89 d7 mov %edx,%edi <== NOT EXECUTED
1362fc: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED
* block and it is the last block in the map shrink the map.
*
* @note We could check again to see if the new end block in the map is
* also empty. This way we could clean up an empty directory.
*/
elength = rtems_rfs_dir_entry_length (entry);
1362fe: 8b 95 64 ff ff ff mov -0x9c(%ebp),%edx <== NOT EXECUTED
136304: 0f b6 02 movzbl (%edx),%eax <== NOT EXECUTED
136307: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
13630a: 8b 8d 68 ff ff ff mov -0x98(%ebp),%ecx <== NOT EXECUTED
136310: 0f b6 11 movzbl (%ecx),%edx <== NOT EXECUTED
136313: 09 d0 or %edx,%eax <== NOT EXECUTED
136315: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
136318: 3d ff ff 00 00 cmp $0xffff,%eax <== NOT EXECUTED
13631d: 75 2b jne 13634a <rtems_rfs_dir_del_entry+0x201><== NOT EXECUTED
13631f: 83 7d 80 00 cmpl $0x0,-0x80(%ebp) <== NOT EXECUTED
136323: 75 25 jne 13634a <rtems_rfs_dir_del_entry+0x201><== NOT EXECUTED
" offset=%d last=%s\n",
ino, elength, block, eoffset,
rtems_rfs_block_map_last (&map) ? "yes" : "no");
if ((elength == RTEMS_RFS_DIR_ENTRY_EMPTY) &&
(eoffset == 0) && rtems_rfs_block_map_last (&map))
136325: 8b 45 98 mov -0x68(%ebp),%eax <== NOT EXECUTED
"last block free for ino %" PRIu32 ": elength=%i block=%" PRIu32
" offset=%d last=%s\n",
ino, elength, block, eoffset,
rtems_rfs_block_map_last (&map) ? "yes" : "no");
if ((elength == RTEMS_RFS_DIR_ENTRY_EMPTY) &&
136328: 85 c0 test %eax,%eax <== NOT EXECUTED
13632a: 75 06 jne 136332 <rtems_rfs_dir_del_entry+0x1e9><== NOT EXECUTED
13632c: 83 7d 90 00 cmpl $0x0,-0x70(%ebp) <== NOT EXECUTED
136330: 74 08 je 13633a <rtems_rfs_dir_del_entry+0x1f1><== NOT EXECUTED
136332: 8b 55 90 mov -0x70(%ebp),%edx <== NOT EXECUTED
136335: 4a dec %edx <== NOT EXECUTED
136336: 39 d0 cmp %edx,%eax <== NOT EXECUTED
136338: 75 10 jne 13634a <rtems_rfs_dir_del_entry+0x201><== NOT EXECUTED
(eoffset == 0) && rtems_rfs_block_map_last (&map))
{
rc = rtems_rfs_block_map_shrink (fs, &map, 1);
13633a: 57 push %edi <== NOT EXECUTED
13633b: 6a 01 push $0x1 <== NOT EXECUTED
13633d: 8d 45 88 lea -0x78(%ebp),%eax <== NOT EXECUTED
136340: 50 push %eax <== NOT EXECUTED
136341: 53 push %ebx <== NOT EXECUTED
136342: e8 4e ec ff ff call 134f95 <rtems_rfs_block_map_shrink><== NOT EXECUTED
136347: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
"block map shrink failed for ino %" PRIu32 ": %d: %s\n",
rtems_rfs_inode_ino (dir), rc, strerror (rc));
}
}
rtems_rfs_buffer_mark_dirty (&buffer);
13634a: c6 45 d8 01 movb $0x1,-0x28(%ebp) <== NOT EXECUTED
13634e: eb 5d jmp 1363ad <rtems_rfs_dir_del_entry+0x264><== NOT EXECUTED
rtems_rfs_buffer_handle_close (fs, &buffer);
rtems_rfs_block_map_close (fs, &map);
return 0;
}
if (!search)
136350: 80 bd 77 ff ff ff 00 cmpb $0x0,-0x89(%ebp) <== NOT EXECUTED
136357: 74 3c je 136395 <rtems_rfs_dir_del_entry+0x24c><== NOT EXECUTED
{
rc = EIO;
break;
}
entry += elength;
136359: 01 cf add %ecx,%edi <== NOT EXECUTED
eoffset += elength;
13635b: 01 4d 80 add %ecx,-0x80(%ebp) <== NOT EXECUTED
else
eoffset = offset % rtems_rfs_fs_block_size (fs);
entry = rtems_rfs_buffer_data (&buffer) + eoffset;
while (eoffset < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
13635e: 8b 85 70 ff ff ff mov -0x90(%ebp),%eax <== NOT EXECUTED
136364: 39 45 80 cmp %eax,-0x80(%ebp) <== NOT EXECUTED
136367: 0f 82 c9 fe ff ff jb 136236 <rtems_rfs_dir_del_entry+0xed><== NOT EXECUTED
entry += elength;
eoffset += elength;
}
if (rc == 0)
13636d: 83 bd 7c ff ff ff 00 cmpl $0x0,-0x84(%ebp) <== NOT EXECUTED
136374: 75 29 jne 13639f <rtems_rfs_dir_del_entry+0x256><== NOT EXECUTED
{
rc = rtems_rfs_block_map_next_block (fs, &map, &block);
136376: 51 push %ecx <== NOT EXECUTED
136377: 8d 55 e4 lea -0x1c(%ebp),%edx <== NOT EXECUTED
13637a: 52 push %edx <== NOT EXECUTED
13637b: 8d 4d 88 lea -0x78(%ebp),%ecx <== NOT EXECUTED
13637e: 51 push %ecx <== NOT EXECUTED
13637f: 53 push %ebx <== NOT EXECUTED
136380: e8 eb ea ff ff call 134e70 <rtems_rfs_block_map_next_block><== NOT EXECUTED
136385: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc == ENXIO)
136387: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13638a: 83 f8 06 cmp $0x6,%eax <== NOT EXECUTED
13638d: 75 16 jne 1363a5 <rtems_rfs_dir_del_entry+0x25c><== NOT EXECUTED
13638f: 66 be 02 00 mov $0x2,%si <== NOT EXECUTED
136393: eb 18 jmp 1363ad <rtems_rfs_dir_del_entry+0x264><== NOT EXECUTED
136395: c7 85 7c ff ff ff 05 movl $0x5,-0x84(%ebp) <== NOT EXECUTED
13639c: 00 00 00
13639f: 8b b5 7c ff ff ff mov -0x84(%ebp),%esi <== NOT EXECUTED
/*
* Only search if the offset is 0 else we are at that position.
*/
search = offset ? false : true;
while (rc == 0)
1363a5: 85 f6 test %esi,%esi <== NOT EXECUTED
1363a7: 0f 84 2b fe ff ff je 1361d8 <rtems_rfs_dir_del_entry+0x8f><== NOT EXECUTED
if (rc == ENXIO)
rc = ENOENT;
}
}
rtems_rfs_buffer_handle_close (fs, &buffer);
1363ad: 8d 55 d8 lea -0x28(%ebp),%edx <== NOT EXECUTED
1363b0: 89 d8 mov %ebx,%eax <== NOT EXECUTED
1363b2: e8 41 f9 ff ff call 135cf8 <rtems_rfs_buffer_handle_close><== NOT EXECUTED
rtems_rfs_block_map_close (fs, &map);
1363b7: 52 push %edx <== NOT EXECUTED
1363b8: 52 push %edx <== NOT EXECUTED
1363b9: 8d 45 88 lea -0x78(%ebp),%eax <== NOT EXECUTED
1363bc: 50 push %eax <== NOT EXECUTED
1363bd: 53 push %ebx <== NOT EXECUTED
1363be: e8 df f1 ff ff call 1355a2 <rtems_rfs_block_map_close><== NOT EXECUTED
return rc;
1363c3: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
1363c6: 89 f0 mov %esi,%eax <== NOT EXECUTED
1363c8: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1363cb: 5b pop %ebx <== NOT EXECUTED
1363cc: 5e pop %esi <== NOT EXECUTED
1363cd: 5f pop %edi <== NOT EXECUTED
1363ce: c9 leave <== NOT EXECUTED
1363cf: c3 ret <== NOT EXECUTED
00135d20 <rtems_rfs_dir_empty>:
}
int
rtems_rfs_dir_empty (rtems_rfs_file_system* fs,
rtems_rfs_inode_handle* dir)
{
135d20: 55 push %ebp <== NOT EXECUTED
135d21: 89 e5 mov %esp,%ebp <== NOT EXECUTED
135d23: 57 push %edi <== NOT EXECUTED
135d24: 56 push %esi <== NOT EXECUTED
135d25: 53 push %ebx <== NOT EXECUTED
135d26: 83 c4 80 add $0xffffff80,%esp <== NOT EXECUTED
135d29: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_READ))
printf ("rtems-rfs: dir-empty: dir=%" PRId32 "\n", rtems_rfs_inode_ino (dir));
empty = true;
rc = rtems_rfs_block_map_open (fs, dir, &map);
135d2c: 8d 7d 88 lea -0x78(%ebp),%edi <== NOT EXECUTED
135d2f: 57 push %edi <== NOT EXECUTED
135d30: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
135d33: 56 push %esi <== NOT EXECUTED
135d34: e8 0c fa ff ff call 135745 <rtems_rfs_block_map_open><== NOT EXECUTED
135d39: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc > 0)
135d3b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
135d3e: 85 c0 test %eax,%eax <== NOT EXECUTED
135d40: 0f 8f 42 01 00 00 jg 135e88 <rtems_rfs_dir_empty+0x168><== NOT EXECUTED
return rc;
rc = rtems_rfs_block_map_seek (fs, &map, 0, &block);
135d46: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
135d49: 8d 55 e4 lea -0x1c(%ebp),%edx <== NOT EXECUTED
135d4c: 52 push %edx <== NOT EXECUTED
135d4d: 6a 00 push $0x0 <== NOT EXECUTED
135d4f: 6a 00 push $0x0 <== NOT EXECUTED
135d51: 57 push %edi <== NOT EXECUTED
135d52: 56 push %esi <== NOT EXECUTED
135d53: 89 95 78 ff ff ff mov %edx,-0x88(%ebp) <== NOT EXECUTED
135d59: e8 42 f1 ff ff call 134ea0 <rtems_rfs_block_map_seek><== NOT EXECUTED
135d5e: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc > 0)
135d60: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
135d63: 85 c0 test %eax,%eax <== NOT EXECUTED
135d65: 7e 08 jle 135d6f <rtems_rfs_dir_empty+0x4f><== NOT EXECUTED
{
rtems_rfs_block_map_close (fs, &map);
135d67: 51 push %ecx <== NOT EXECUTED
135d68: 51 push %ecx <== NOT EXECUTED
135d69: 57 push %edi <== NOT EXECUTED
135d6a: e9 10 01 00 00 jmp 135e7f <rtems_rfs_dir_empty+0x15f><== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_open (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
handle->dirty = false;
135d6f: c6 45 d8 00 movb $0x0,-0x28(%ebp) <== NOT EXECUTED
handle->bnum = 0;
135d73: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp) <== NOT EXECUTED
handle->buffer = NULL;
135d7a: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp) <== NOT EXECUTED
while (empty)
{
uint8_t* entry;
int offset;
rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, true);
135d81: 6a 01 push $0x1 <== NOT EXECUTED
135d83: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
135d86: 8d 45 d8 lea -0x28(%ebp),%eax <== NOT EXECUTED
135d89: 50 push %eax <== NOT EXECUTED
135d8a: 56 push %esi <== NOT EXECUTED
135d8b: e8 ca fd ff ff call 135b5a <rtems_rfs_buffer_handle_request><== NOT EXECUTED
135d90: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc > 0)
135d92: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
135d95: 85 c0 test %eax,%eax <== NOT EXECUTED
135d97: 0f 8f d2 00 00 00 jg 135e6f <rtems_rfs_dir_empty+0x14f><== NOT EXECUTED
break;
entry = rtems_rfs_buffer_data (&buffer);
135d9d: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
135da0: 8b 50 20 mov 0x20(%eax),%edx <== NOT EXECUTED
offset = 0;
while (offset < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
135da3: 8b 46 08 mov 0x8(%esi),%eax <== NOT EXECUTED
135da6: 83 e8 0a sub $0xa,%eax <== NOT EXECUTED
135da9: 89 45 80 mov %eax,-0x80(%ebp) <== NOT EXECUTED
135dac: c7 45 84 00 00 00 00 movl $0x0,-0x7c(%ebp) <== NOT EXECUTED
135db3: eb 7e jmp 135e33 <rtems_rfs_dir_empty+0x113><== NOT EXECUTED
{
rtems_rfs_ino eino;
int elength;
elength = rtems_rfs_dir_entry_length (entry);
135db5: 0f b6 42 08 movzbl 0x8(%edx),%eax <== NOT EXECUTED
135db9: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
135dbc: 0f b6 4a 09 movzbl 0x9(%edx),%ecx <== NOT EXECUTED
135dc0: 09 c8 or %ecx,%eax <== NOT EXECUTED
eino = rtems_rfs_dir_entry_ino (entry);
135dc2: 0f b6 3a movzbl (%edx),%edi <== NOT EXECUTED
135dc5: 8a 4a 01 mov 0x1(%edx),%cl <== NOT EXECUTED
135dc8: 88 8d 7e ff ff ff mov %cl,-0x82(%ebp) <== NOT EXECUTED
135dce: 8a 4a 02 mov 0x2(%edx),%cl <== NOT EXECUTED
135dd1: 88 8d 7f ff ff ff mov %cl,-0x81(%ebp) <== NOT EXECUTED
135dd7: 8a 4a 03 mov 0x3(%edx),%cl <== NOT EXECUTED
if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)
135dda: 3d ff ff 00 00 cmp $0xffff,%eax <== NOT EXECUTED
135ddf: 74 5e je 135e3f <rtems_rfs_dir_empty+0x11f><== NOT EXECUTED
break;
if (rtems_rfs_dir_entry_valid (fs, elength, eino))
135de1: 83 f8 0a cmp $0xa,%eax <== NOT EXECUTED
135de4: 7e 59 jle 135e3f <rtems_rfs_dir_empty+0x11f><== NOT EXECUTED
{
rtems_rfs_ino eino;
int elength;
elength = rtems_rfs_dir_entry_length (entry);
eino = rtems_rfs_dir_entry_ino (entry);
135de6: 0f b6 c9 movzbl %cl,%ecx <== NOT EXECUTED
135de9: c1 e7 18 shl $0x18,%edi <== NOT EXECUTED
135dec: 09 f9 or %edi,%ecx <== NOT EXECUTED
135dee: 0f b6 bd 7e ff ff ff movzbl -0x82(%ebp),%edi <== NOT EXECUTED
135df5: c1 e7 10 shl $0x10,%edi <== NOT EXECUTED
135df8: 09 f9 or %edi,%ecx <== NOT EXECUTED
135dfa: 0f b6 bd 7f ff ff ff movzbl -0x81(%ebp),%edi <== NOT EXECUTED
135e01: c1 e7 08 shl $0x8,%edi <== NOT EXECUTED
if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)
break;
if (rtems_rfs_dir_entry_valid (fs, elength, eino))
135e04: 09 f9 or %edi,%ecx <== NOT EXECUTED
135e06: 74 37 je 135e3f <rtems_rfs_dir_empty+0x11f><== NOT EXECUTED
135e08: 3b 46 18 cmp 0x18(%esi),%eax <== NOT EXECUTED
135e0b: 73 32 jae 135e3f <rtems_rfs_dir_empty+0x11f><== NOT EXECUTED
135e0d: 3b 4e 10 cmp 0x10(%esi),%ecx <== NOT EXECUTED
135e10: 77 2d ja 135e3f <rtems_rfs_dir_empty+0x11f><== NOT EXECUTED
/*
* Ignore the current (.) and parent (..) entries. Anything else means
* the directory is not empty.
*/
if (((elength != (RTEMS_RFS_DIR_ENTRY_SIZE + 1)) ||
135e12: 83 f8 0b cmp $0xb,%eax <== NOT EXECUTED
135e15: 75 06 jne 135e1d <rtems_rfs_dir_empty+0xfd><== NOT EXECUTED
(entry[RTEMS_RFS_DIR_ENTRY_SIZE] != '.')) &&
135e17: 80 7a 0a 2e cmpb $0x2e,0xa(%edx) <== NOT EXECUTED
135e1b: eb 0f jmp 135e2c <rtems_rfs_dir_empty+0x10c><== NOT EXECUTED
/*
* Ignore the current (.) and parent (..) entries. Anything else means
* the directory is not empty.
*/
if (((elength != (RTEMS_RFS_DIR_ENTRY_SIZE + 1)) ||
135e1d: 83 f8 0c cmp $0xc,%eax <== NOT EXECUTED
135e20: 75 47 jne 135e69 <rtems_rfs_dir_empty+0x149><== NOT EXECUTED
(entry[RTEMS_RFS_DIR_ENTRY_SIZE] != '.')) &&
((elength != (RTEMS_RFS_DIR_ENTRY_SIZE + 2)) ||
(entry[RTEMS_RFS_DIR_ENTRY_SIZE] != '.') ||
135e22: 80 7a 0a 2e cmpb $0x2e,0xa(%edx) <== NOT EXECUTED
135e26: 75 41 jne 135e69 <rtems_rfs_dir_empty+0x149><== NOT EXECUTED
(entry[RTEMS_RFS_DIR_ENTRY_SIZE + 1] != '.')))
135e28: 80 7a 0b 2e cmpb $0x2e,0xb(%edx) <== NOT EXECUTED
135e2c: 75 3b jne 135e69 <rtems_rfs_dir_empty+0x149><== NOT EXECUTED
{
empty = false;
break;
}
entry += elength;
135e2e: 01 c2 add %eax,%edx <== NOT EXECUTED
offset += elength;
135e30: 01 45 84 add %eax,-0x7c(%ebp) <== NOT EXECUTED
break;
entry = rtems_rfs_buffer_data (&buffer);
offset = 0;
while (offset < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
135e33: 8b 45 80 mov -0x80(%ebp),%eax <== NOT EXECUTED
135e36: 39 45 84 cmp %eax,-0x7c(%ebp) <== NOT EXECUTED
135e39: 0f 82 76 ff ff ff jb 135db5 <rtems_rfs_dir_empty+0x95><== NOT EXECUTED
offset += elength;
}
if (empty)
{
rc = rtems_rfs_block_map_next_block (fs, &map, &block);
135e3f: 52 push %edx <== NOT EXECUTED
135e40: 8d 4d e4 lea -0x1c(%ebp),%ecx <== NOT EXECUTED
135e43: 51 push %ecx <== NOT EXECUTED
135e44: 8d 45 88 lea -0x78(%ebp),%eax <== NOT EXECUTED
135e47: 50 push %eax <== NOT EXECUTED
135e48: 56 push %esi <== NOT EXECUTED
135e49: e8 22 f0 ff ff call 134e70 <rtems_rfs_block_map_next_block><== NOT EXECUTED
135e4e: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc > 0)
135e50: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
135e53: 85 c0 test %eax,%eax <== NOT EXECUTED
135e55: 0f 8e 26 ff ff ff jle 135d81 <rtems_rfs_dir_empty+0x61><== NOT EXECUTED
{
if (rc == ENXIO)
135e5b: 31 c0 xor %eax,%eax <== NOT EXECUTED
135e5d: 83 fb 06 cmp $0x6,%ebx <== NOT EXECUTED
135e60: 0f 95 c0 setne %al <== NOT EXECUTED
135e63: f7 d8 neg %eax <== NOT EXECUTED
135e65: 21 c3 and %eax,%ebx <== NOT EXECUTED
135e67: eb 06 jmp 135e6f <rtems_rfs_dir_empty+0x14f><== NOT EXECUTED
break;
}
}
}
if ((rc == 0) && !empty)
135e69: 85 db test %ebx,%ebx <== NOT EXECUTED
135e6b: 75 02 jne 135e6f <rtems_rfs_dir_empty+0x14f><== NOT EXECUTED
135e6d: b3 5a mov $0x5a,%bl <== NOT EXECUTED
rc = ENOTEMPTY;
rtems_rfs_buffer_handle_close (fs, &buffer);
135e6f: 8d 55 d8 lea -0x28(%ebp),%edx <== NOT EXECUTED
135e72: 89 f0 mov %esi,%eax <== NOT EXECUTED
135e74: e8 7f fe ff ff call 135cf8 <rtems_rfs_buffer_handle_close><== NOT EXECUTED
rtems_rfs_block_map_close (fs, &map);
135e79: 50 push %eax <== NOT EXECUTED
135e7a: 50 push %eax <== NOT EXECUTED
135e7b: 8d 45 88 lea -0x78(%ebp),%eax <== NOT EXECUTED
135e7e: 50 push %eax <== NOT EXECUTED
135e7f: 56 push %esi <== NOT EXECUTED
135e80: e8 1d f7 ff ff call 1355a2 <rtems_rfs_block_map_close><== NOT EXECUTED
return rc;
135e85: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
135e88: 89 d8 mov %ebx,%eax <== NOT EXECUTED
135e8a: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
135e8d: 5b pop %ebx <== NOT EXECUTED
135e8e: 5e pop %esi <== NOT EXECUTED
135e8f: 5f pop %edi <== NOT EXECUTED
135e90: c9 leave <== NOT EXECUTED
135e91: c3 ret <== NOT EXECUTED
0013d908 <rtems_rfs_dir_hash>:
*/
#define initval (20010928)
uint32_t
rtems_rfs_dir_hash (const void *key, size_t length)
{
13d908: 55 push %ebp <== NOT EXECUTED
13d909: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13d90b: 57 push %edi <== NOT EXECUTED
13d90c: 56 push %esi <== NOT EXECUTED
13d90d: 53 push %ebx <== NOT EXECUTED
13d90e: 83 ec 04 sub $0x4,%esp <== NOT EXECUTED
13d911: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
13d914: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
uint32_t a,b,c; /* internal state */
union { const void *ptr; size_t i; } u; /* needed for Mac Powerbook G4 */
/* Set up the internal state */
a = b = c = 0xdeadbeef + ((uint32_t)length) + initval;
13d917: 8d 83 9f 16 df df lea -0x2020e961(%ebx),%eax <== NOT EXECUTED
u.ptr = key;
if (HASH_LITTLE_ENDIAN && ((u.i & 0x3) == 0)) {
13d91d: f6 c1 03 test $0x3,%cl <== NOT EXECUTED
13d920: 0f 85 ef 00 00 00 jne 13da15 <rtems_rfs_dir_hash+0x10d><== NOT EXECUTED
const uint32_t *k = (const uint32_t *)key; /* read 32-bit chunks */
13d926: 89 c2 mov %eax,%edx <== NOT EXECUTED
13d928: 89 c6 mov %eax,%esi <== NOT EXECUTED
/*const uint8_t *k8;*/
/*------ all but last block: aligned reads and affect 32 bits of (a,b,c) */
while (length > 12)
13d92a: eb 57 jmp 13d983 <rtems_rfs_dir_hash+0x7b><== NOT EXECUTED
{
a += k[0];
13d92c: 03 31 add (%ecx),%esi <== NOT EXECUTED
b += k[1];
13d92e: 03 51 04 add 0x4(%ecx),%edx <== NOT EXECUTED
c += k[2];
13d931: 03 41 08 add 0x8(%ecx),%eax <== NOT EXECUTED
mix(a,b,c);
13d934: 29 c6 sub %eax,%esi <== NOT EXECUTED
13d936: 89 c7 mov %eax,%edi <== NOT EXECUTED
13d938: c1 cf 1c ror $0x1c,%edi <== NOT EXECUTED
13d93b: 31 fe xor %edi,%esi <== NOT EXECUTED
13d93d: 01 d0 add %edx,%eax <== NOT EXECUTED
13d93f: 29 f2 sub %esi,%edx <== NOT EXECUTED
13d941: 89 f7 mov %esi,%edi <== NOT EXECUTED
13d943: c1 cf 1a ror $0x1a,%edi <== NOT EXECUTED
13d946: 31 d7 xor %edx,%edi <== NOT EXECUTED
13d948: 01 c6 add %eax,%esi <== NOT EXECUTED
13d94a: 29 f8 sub %edi,%eax <== NOT EXECUTED
13d94c: 89 fa mov %edi,%edx <== NOT EXECUTED
13d94e: c1 ca 18 ror $0x18,%edx <== NOT EXECUTED
13d951: 31 c2 xor %eax,%edx <== NOT EXECUTED
13d953: 01 f7 add %esi,%edi <== NOT EXECUTED
13d955: 29 d6 sub %edx,%esi <== NOT EXECUTED
13d957: 89 d0 mov %edx,%eax <== NOT EXECUTED
13d959: c1 c8 10 ror $0x10,%eax <== NOT EXECUTED
13d95c: 31 f0 xor %esi,%eax <== NOT EXECUTED
13d95e: 01 fa add %edi,%edx <== NOT EXECUTED
13d960: 89 55 f0 mov %edx,-0x10(%ebp) <== NOT EXECUTED
13d963: 29 c7 sub %eax,%edi <== NOT EXECUTED
13d965: 89 c2 mov %eax,%edx <== NOT EXECUTED
13d967: c1 ca 0d ror $0xd,%edx <== NOT EXECUTED
13d96a: 31 fa xor %edi,%edx <== NOT EXECUTED
13d96c: 8b 7d f0 mov -0x10(%ebp),%edi <== NOT EXECUTED
13d96f: 8d 34 38 lea (%eax,%edi,1),%esi <== NOT EXECUTED
13d972: 29 d7 sub %edx,%edi <== NOT EXECUTED
13d974: 89 d0 mov %edx,%eax <== NOT EXECUTED
13d976: c1 c8 1c ror $0x1c,%eax <== NOT EXECUTED
13d979: 31 f8 xor %edi,%eax <== NOT EXECUTED
13d97b: 01 f2 add %esi,%edx <== NOT EXECUTED
length -= 12;
13d97d: 83 eb 0c sub $0xc,%ebx <== NOT EXECUTED
k += 3;
13d980: 83 c1 0c add $0xc,%ecx <== NOT EXECUTED
if (HASH_LITTLE_ENDIAN && ((u.i & 0x3) == 0)) {
const uint32_t *k = (const uint32_t *)key; /* read 32-bit chunks */
/*const uint8_t *k8;*/
/*------ all but last block: aligned reads and affect 32 bits of (a,b,c) */
while (length > 12)
13d983: 83 fb 0c cmp $0xc,%ebx <== NOT EXECUTED
13d986: 77 a4 ja 13d92c <rtems_rfs_dir_hash+0x24><== NOT EXECUTED
* still catch it and complain. The masking trick does make the hash
* noticably faster for short strings (like English words).
*/
#ifndef VALGRIND
switch(length)
13d988: 4b dec %ebx <== NOT EXECUTED
13d989: 83 fb 0b cmp $0xb,%ebx <== NOT EXECUTED
13d98c: 0f 87 56 03 00 00 ja 13dce8 <rtems_rfs_dir_hash+0x3e0><== NOT EXECUTED
13d992: ff 24 9d 20 f2 15 00 jmp *0x15f220(,%ebx,4) <== NOT EXECUTED
{
case 12: c+=k[2]; b+=k[1]; a+=k[0]; break;
13d999: 03 41 08 add 0x8(%ecx),%eax <== NOT EXECUTED
13d99c: eb 0c jmp 13d9aa <rtems_rfs_dir_hash+0xa2><== NOT EXECUTED
case 11: c+=k[2]&0xffffff; b+=k[1]; a+=k[0]; break;
13d99e: 8b 59 08 mov 0x8(%ecx),%ebx <== NOT EXECUTED
13d9a1: 81 e3 ff ff ff 00 and $0xffffff,%ebx <== NOT EXECUTED
13d9a7: 8d 04 03 lea (%ebx,%eax,1),%eax <== NOT EXECUTED
13d9aa: 03 51 04 add 0x4(%ecx),%edx <== NOT EXECUTED
13d9ad: eb 38 jmp 13d9e7 <rtems_rfs_dir_hash+0xdf><== NOT EXECUTED
case 10: c+=k[2]&0xffff; b+=k[1]; a+=k[0]; break;
13d9af: 8b 59 08 mov 0x8(%ecx),%ebx <== NOT EXECUTED
13d9b2: 81 e3 ff ff 00 00 and $0xffff,%ebx <== NOT EXECUTED
13d9b8: eb ed jmp 13d9a7 <rtems_rfs_dir_hash+0x9f><== NOT EXECUTED
case 9 : c+=k[2]&0xff; b+=k[1]; a+=k[0]; break;
13d9ba: 8b 59 08 mov 0x8(%ecx),%ebx <== NOT EXECUTED
13d9bd: 81 e3 ff 00 00 00 and $0xff,%ebx <== NOT EXECUTED
13d9c3: eb e2 jmp 13d9a7 <rtems_rfs_dir_hash+0x9f><== NOT EXECUTED
case 8 : b+=k[1]; a+=k[0]; break;
case 7 : b+=k[1]&0xffffff; a+=k[0]; break;
13d9c5: 8b 59 04 mov 0x4(%ecx),%ebx <== NOT EXECUTED
13d9c8: 81 e3 ff ff ff 00 and $0xffffff,%ebx <== NOT EXECUTED
13d9ce: eb 14 jmp 13d9e4 <rtems_rfs_dir_hash+0xdc><== NOT EXECUTED
case 6 : b+=k[1]&0xffff; a+=k[0]; break;
13d9d0: 8b 59 04 mov 0x4(%ecx),%ebx <== NOT EXECUTED
13d9d3: 81 e3 ff ff 00 00 and $0xffff,%ebx <== NOT EXECUTED
13d9d9: eb 09 jmp 13d9e4 <rtems_rfs_dir_hash+0xdc><== NOT EXECUTED
case 5 : b+=k[1]&0xff; a+=k[0]; break;
13d9db: 8b 59 04 mov 0x4(%ecx),%ebx <== NOT EXECUTED
13d9de: 81 e3 ff 00 00 00 and $0xff,%ebx <== NOT EXECUTED
13d9e4: 8d 14 13 lea (%ebx,%edx,1),%edx <== NOT EXECUTED
case 4 : a+=k[0]; break;
13d9e7: 03 31 add (%ecx),%esi <== NOT EXECUTED
13d9e9: e9 bf 02 00 00 jmp 13dcad <rtems_rfs_dir_hash+0x3a5><== NOT EXECUTED
case 3 : a+=k[0]&0xffffff; break;
13d9ee: 8b 09 mov (%ecx),%ecx <== NOT EXECUTED
13d9f0: 81 e1 ff ff ff 00 and $0xffffff,%ecx <== NOT EXECUTED
13d9f6: e9 4c 01 00 00 jmp 13db47 <rtems_rfs_dir_hash+0x23f><== NOT EXECUTED
case 2 : a+=k[0]&0xffff; break;
13d9fb: 8b 09 mov (%ecx),%ecx <== NOT EXECUTED
13d9fd: 81 e1 ff ff 00 00 and $0xffff,%ecx <== NOT EXECUTED
13da03: e9 3f 01 00 00 jmp 13db47 <rtems_rfs_dir_hash+0x23f><== NOT EXECUTED
case 1 : a+=k[0]&0xff; break;
13da08: 8b 09 mov (%ecx),%ecx <== NOT EXECUTED
13da0a: 81 e1 ff 00 00 00 and $0xff,%ecx <== NOT EXECUTED
13da10: e9 32 01 00 00 jmp 13db47 <rtems_rfs_dir_hash+0x23f><== NOT EXECUTED
case 0 : return c;
}
#endif /* !valgrind */
} else if (HASH_LITTLE_ENDIAN && ((u.i & 0x1) == 0)) {
13da15: f6 c1 01 test $0x1,%cl <== NOT EXECUTED
13da18: 0f 85 31 01 00 00 jne 13db4f <rtems_rfs_dir_hash+0x247><== NOT EXECUTED
const uint16_t *k = (const uint16_t *)key; /* read 16-bit chunks */
13da1e: 89 c2 mov %eax,%edx <== NOT EXECUTED
13da20: 89 c6 mov %eax,%esi <== NOT EXECUTED
const uint8_t *k8;
/*--------------- all but last block: aligned reads and different mixing */
while (length > 12)
13da22: e9 8d 00 00 00 jmp 13dab4 <rtems_rfs_dir_hash+0x1ac><== NOT EXECUTED
{
a += k[0] + (((uint32_t)k[1])<<16);
13da27: 0f b7 79 02 movzwl 0x2(%ecx),%edi <== NOT EXECUTED
13da2b: c1 e7 10 shl $0x10,%edi <== NOT EXECUTED
13da2e: 89 7d f0 mov %edi,-0x10(%ebp) <== NOT EXECUTED
13da31: 0f b7 39 movzwl (%ecx),%edi <== NOT EXECUTED
13da34: 03 7d f0 add -0x10(%ebp),%edi <== NOT EXECUTED
13da37: 8d 34 37 lea (%edi,%esi,1),%esi <== NOT EXECUTED
b += k[2] + (((uint32_t)k[3])<<16);
13da3a: 0f b7 79 06 movzwl 0x6(%ecx),%edi <== NOT EXECUTED
13da3e: c1 e7 10 shl $0x10,%edi <== NOT EXECUTED
13da41: 89 7d f0 mov %edi,-0x10(%ebp) <== NOT EXECUTED
13da44: 0f b7 79 04 movzwl 0x4(%ecx),%edi <== NOT EXECUTED
13da48: 03 7d f0 add -0x10(%ebp),%edi <== NOT EXECUTED
13da4b: 8d 14 17 lea (%edi,%edx,1),%edx <== NOT EXECUTED
13da4e: 89 55 f0 mov %edx,-0x10(%ebp) <== NOT EXECUTED
c += k[4] + (((uint32_t)k[5])<<16);
13da51: 0f b7 51 0a movzwl 0xa(%ecx),%edx <== NOT EXECUTED
13da55: c1 e2 10 shl $0x10,%edx <== NOT EXECUTED
13da58: 0f b7 79 08 movzwl 0x8(%ecx),%edi <== NOT EXECUTED
13da5c: 01 fa add %edi,%edx <== NOT EXECUTED
13da5e: 01 c2 add %eax,%edx <== NOT EXECUTED
mix(a,b,c);
13da60: 29 d6 sub %edx,%esi <== NOT EXECUTED
13da62: 89 d0 mov %edx,%eax <== NOT EXECUTED
13da64: c1 c8 1c ror $0x1c,%eax <== NOT EXECUTED
13da67: 31 c6 xor %eax,%esi <== NOT EXECUTED
13da69: 03 55 f0 add -0x10(%ebp),%edx <== NOT EXECUTED
13da6c: 8b 45 f0 mov -0x10(%ebp),%eax <== NOT EXECUTED
13da6f: 29 f0 sub %esi,%eax <== NOT EXECUTED
13da71: 89 f7 mov %esi,%edi <== NOT EXECUTED
13da73: c1 cf 1a ror $0x1a,%edi <== NOT EXECUTED
13da76: 31 c7 xor %eax,%edi <== NOT EXECUTED
13da78: 8d 04 16 lea (%esi,%edx,1),%eax <== NOT EXECUTED
13da7b: 89 d6 mov %edx,%esi <== NOT EXECUTED
13da7d: 29 fe sub %edi,%esi <== NOT EXECUTED
13da7f: 89 fa mov %edi,%edx <== NOT EXECUTED
13da81: c1 ca 18 ror $0x18,%edx <== NOT EXECUTED
13da84: 31 f2 xor %esi,%edx <== NOT EXECUTED
13da86: 8d 34 07 lea (%edi,%eax,1),%esi <== NOT EXECUTED
13da89: 89 c7 mov %eax,%edi <== NOT EXECUTED
13da8b: 29 d7 sub %edx,%edi <== NOT EXECUTED
13da8d: 89 d0 mov %edx,%eax <== NOT EXECUTED
13da8f: c1 c8 10 ror $0x10,%eax <== NOT EXECUTED
13da92: 31 f8 xor %edi,%eax <== NOT EXECUTED
13da94: 8d 3c 32 lea (%edx,%esi,1),%edi <== NOT EXECUTED
13da97: 29 c6 sub %eax,%esi <== NOT EXECUTED
13da99: 89 c2 mov %eax,%edx <== NOT EXECUTED
13da9b: c1 ca 0d ror $0xd,%edx <== NOT EXECUTED
13da9e: 31 f2 xor %esi,%edx <== NOT EXECUTED
13daa0: 8d 34 38 lea (%eax,%edi,1),%esi <== NOT EXECUTED
13daa3: 29 d7 sub %edx,%edi <== NOT EXECUTED
13daa5: 89 d0 mov %edx,%eax <== NOT EXECUTED
13daa7: c1 c8 1c ror $0x1c,%eax <== NOT EXECUTED
13daaa: 31 f8 xor %edi,%eax <== NOT EXECUTED
13daac: 01 f2 add %esi,%edx <== NOT EXECUTED
length -= 12;
13daae: 83 eb 0c sub $0xc,%ebx <== NOT EXECUTED
k += 6;
13dab1: 83 c1 0c add $0xc,%ecx <== NOT EXECUTED
} else if (HASH_LITTLE_ENDIAN && ((u.i & 0x1) == 0)) {
const uint16_t *k = (const uint16_t *)key; /* read 16-bit chunks */
const uint8_t *k8;
/*--------------- all but last block: aligned reads and different mixing */
while (length > 12)
13dab4: 83 fb 0c cmp $0xc,%ebx <== NOT EXECUTED
13dab7: 0f 87 6a ff ff ff ja 13da27 <rtems_rfs_dir_hash+0x11f><== NOT EXECUTED
k += 6;
}
/*----------------------------- handle the last (probably partial) block */
k8 = (const uint8_t *)k;
switch(length)
13dabd: 4b dec %ebx <== NOT EXECUTED
13dabe: 83 fb 0b cmp $0xb,%ebx <== NOT EXECUTED
13dac1: 0f 87 21 02 00 00 ja 13dce8 <rtems_rfs_dir_hash+0x3e0><== NOT EXECUTED
13dac7: ff 24 9d 50 f2 15 00 jmp *0x15f250(,%ebx,4) <== NOT EXECUTED
{
case 12: c+=k[4]+(((uint32_t)k[5])<<16);
13dace: 0f b7 59 08 movzwl 0x8(%ecx),%ebx <== NOT EXECUTED
13dad2: 8d 04 03 lea (%ebx,%eax,1),%eax <== NOT EXECUTED
13dad5: 0f b7 59 0a movzwl 0xa(%ecx),%ebx <== NOT EXECUTED
13dad9: c1 e3 10 shl $0x10,%ebx <== NOT EXECUTED
13dadc: eb 0e jmp 13daec <rtems_rfs_dir_hash+0x1e4><== NOT EXECUTED
b+=k[2]+(((uint32_t)k[3])<<16);
a+=k[0]+(((uint32_t)k[1])<<16);
break;
case 11: c+=((uint32_t)k8[10])<<16; /* fall through */
13dade: 0f b6 59 0a movzbl 0xa(%ecx),%ebx <== NOT EXECUTED
13dae2: c1 e3 10 shl $0x10,%ebx <== NOT EXECUTED
13dae5: 8d 04 03 lea (%ebx,%eax,1),%eax <== NOT EXECUTED
case 10: c+=k[4];
13dae8: 0f b7 59 08 movzwl 0x8(%ecx),%ebx <== NOT EXECUTED
13daec: 01 d8 add %ebx,%eax <== NOT EXECUTED
b+=k[2]+(((uint32_t)k[3])<<16);
13daee: 0f b7 59 04 movzwl 0x4(%ecx),%ebx <== NOT EXECUTED
13daf2: 8d 14 13 lea (%ebx,%edx,1),%edx <== NOT EXECUTED
13daf5: 0f b7 59 06 movzwl 0x6(%ecx),%ebx <== NOT EXECUTED
13daf9: c1 e3 10 shl $0x10,%ebx <== NOT EXECUTED
13dafc: eb 17 jmp 13db15 <rtems_rfs_dir_hash+0x20d><== NOT EXECUTED
a+=k[0]+(((uint32_t)k[1])<<16);
break;
case 9 : c+=k8[8]; /* fall through */
13dafe: 0f b6 59 08 movzbl 0x8(%ecx),%ebx <== NOT EXECUTED
13db02: 8d 04 03 lea (%ebx,%eax,1),%eax <== NOT EXECUTED
13db05: eb e7 jmp 13daee <rtems_rfs_dir_hash+0x1e6><== NOT EXECUTED
case 8 : b+=k[2]+(((uint32_t)k[3])<<16);
a+=k[0]+(((uint32_t)k[1])<<16);
break;
case 7 : b+=((uint32_t)k8[6])<<16; /* fall through */
13db07: 0f b6 59 06 movzbl 0x6(%ecx),%ebx <== NOT EXECUTED
13db0b: c1 e3 10 shl $0x10,%ebx <== NOT EXECUTED
13db0e: 8d 14 13 lea (%ebx,%edx,1),%edx <== NOT EXECUTED
case 6 : b+=k[2];
13db11: 0f b7 59 04 movzwl 0x4(%ecx),%ebx <== NOT EXECUTED
13db15: 01 da add %ebx,%edx <== NOT EXECUTED
13db17: eb 07 jmp 13db20 <rtems_rfs_dir_hash+0x218><== NOT EXECUTED
a+=k[0]+(((uint32_t)k[1])<<16);
break;
case 5 : b+=k8[4]; /* fall through */
13db19: 0f b6 59 04 movzbl 0x4(%ecx),%ebx <== NOT EXECUTED
13db1d: 8d 14 13 lea (%ebx,%edx,1),%edx <== NOT EXECUTED
case 4 : a+=k[0]+(((uint32_t)k[1])<<16);
13db20: 0f b7 19 movzwl (%ecx),%ebx <== NOT EXECUTED
13db23: 8d 34 33 lea (%ebx,%esi,1),%esi <== NOT EXECUTED
13db26: 0f b7 49 02 movzwl 0x2(%ecx),%ecx <== NOT EXECUTED
13db2a: c1 e1 10 shl $0x10,%ecx <== NOT EXECUTED
13db2d: e9 79 01 00 00 jmp 13dcab <rtems_rfs_dir_hash+0x3a3><== NOT EXECUTED
break;
case 3 : a+=((uint32_t)k8[2])<<16; /* fall through */
13db32: 0f b6 59 02 movzbl 0x2(%ecx),%ebx <== NOT EXECUTED
13db36: c1 e3 10 shl $0x10,%ebx <== NOT EXECUTED
13db39: 8d 34 33 lea (%ebx,%esi,1),%esi <== NOT EXECUTED
case 2 : a+=k[0];
13db3c: 0f b7 09 movzwl (%ecx),%ecx <== NOT EXECUTED
13db3f: e9 67 01 00 00 jmp 13dcab <rtems_rfs_dir_hash+0x3a3><== NOT EXECUTED
break;
case 1 : a+=k8[0];
13db44: 0f b6 09 movzbl (%ecx),%ecx <== NOT EXECUTED
13db47: 8d 34 31 lea (%ecx,%esi,1),%esi <== NOT EXECUTED
break;
13db4a: e9 5e 01 00 00 jmp 13dcad <rtems_rfs_dir_hash+0x3a5><== NOT EXECUTED
case 0 : return c; /* zero length requires no mixing */
}
} else { /* need to read the key one byte at a time */
const uint8_t *k = (const uint8_t *)key;
13db4f: 89 c2 mov %eax,%edx <== NOT EXECUTED
13db51: 89 c6 mov %eax,%esi <== NOT EXECUTED
/*--------------- all but the last block: affect some 32 bits of (a,b,c) */
while (length > 12)
13db53: e9 d6 00 00 00 jmp 13dc2e <rtems_rfs_dir_hash+0x326><== NOT EXECUTED
{
a += k[0];
13db58: 0f b6 79 01 movzbl 0x1(%ecx),%edi <== NOT EXECUTED
13db5c: c1 e7 08 shl $0x8,%edi <== NOT EXECUTED
13db5f: 89 7d f0 mov %edi,-0x10(%ebp) <== NOT EXECUTED
13db62: 0f b6 79 02 movzbl 0x2(%ecx),%edi <== NOT EXECUTED
13db66: c1 e7 10 shl $0x10,%edi <== NOT EXECUTED
13db69: 03 7d f0 add -0x10(%ebp),%edi <== NOT EXECUTED
13db6c: 89 7d f0 mov %edi,-0x10(%ebp) <== NOT EXECUTED
a += ((uint32_t)k[1])<<8;
13db6f: 0f b6 39 movzbl (%ecx),%edi <== NOT EXECUTED
13db72: 03 7d f0 add -0x10(%ebp),%edi <== NOT EXECUTED
13db75: 89 7d f0 mov %edi,-0x10(%ebp) <== NOT EXECUTED
a += ((uint32_t)k[2])<<16;
13db78: 0f b6 79 03 movzbl 0x3(%ecx),%edi <== NOT EXECUTED
13db7c: c1 e7 18 shl $0x18,%edi <== NOT EXECUTED
13db7f: 03 7d f0 add -0x10(%ebp),%edi <== NOT EXECUTED
a += ((uint32_t)k[3])<<24;
13db82: 8d 34 37 lea (%edi,%esi,1),%esi <== NOT EXECUTED
b += k[4];
13db85: 0f b6 79 05 movzbl 0x5(%ecx),%edi <== NOT EXECUTED
13db89: c1 e7 08 shl $0x8,%edi <== NOT EXECUTED
13db8c: 89 7d f0 mov %edi,-0x10(%ebp) <== NOT EXECUTED
13db8f: 0f b6 79 06 movzbl 0x6(%ecx),%edi <== NOT EXECUTED
13db93: c1 e7 10 shl $0x10,%edi <== NOT EXECUTED
13db96: 03 7d f0 add -0x10(%ebp),%edi <== NOT EXECUTED
13db99: 89 7d f0 mov %edi,-0x10(%ebp) <== NOT EXECUTED
b += ((uint32_t)k[5])<<8;
13db9c: 0f b6 79 04 movzbl 0x4(%ecx),%edi <== NOT EXECUTED
13dba0: 03 7d f0 add -0x10(%ebp),%edi <== NOT EXECUTED
13dba3: 89 7d f0 mov %edi,-0x10(%ebp) <== NOT EXECUTED
b += ((uint32_t)k[6])<<16;
13dba6: 0f b6 79 07 movzbl 0x7(%ecx),%edi <== NOT EXECUTED
13dbaa: c1 e7 18 shl $0x18,%edi <== NOT EXECUTED
13dbad: 03 7d f0 add -0x10(%ebp),%edi <== NOT EXECUTED
b += ((uint32_t)k[7])<<24;
13dbb0: 8d 14 17 lea (%edi,%edx,1),%edx <== NOT EXECUTED
13dbb3: 89 55 f0 mov %edx,-0x10(%ebp) <== NOT EXECUTED
c += k[8];
13dbb6: 0f b6 79 09 movzbl 0x9(%ecx),%edi <== NOT EXECUTED
13dbba: c1 e7 08 shl $0x8,%edi <== NOT EXECUTED
13dbbd: 0f b6 51 0a movzbl 0xa(%ecx),%edx <== NOT EXECUTED
13dbc1: c1 e2 10 shl $0x10,%edx <== NOT EXECUTED
13dbc4: 8d 14 17 lea (%edi,%edx,1),%edx <== NOT EXECUTED
c += ((uint32_t)k[9])<<8;
13dbc7: 0f b6 79 08 movzbl 0x8(%ecx),%edi <== NOT EXECUTED
13dbcb: 8d 3c 3a lea (%edx,%edi,1),%edi <== NOT EXECUTED
c += ((uint32_t)k[10])<<16;
13dbce: 0f b6 51 0b movzbl 0xb(%ecx),%edx <== NOT EXECUTED
13dbd2: c1 e2 18 shl $0x18,%edx <== NOT EXECUTED
13dbd5: 8d 14 17 lea (%edi,%edx,1),%edx <== NOT EXECUTED
c += ((uint32_t)k[11])<<24;
13dbd8: 01 c2 add %eax,%edx <== NOT EXECUTED
mix(a,b,c);
13dbda: 29 d6 sub %edx,%esi <== NOT EXECUTED
13dbdc: 89 d0 mov %edx,%eax <== NOT EXECUTED
13dbde: c1 c8 1c ror $0x1c,%eax <== NOT EXECUTED
13dbe1: 31 c6 xor %eax,%esi <== NOT EXECUTED
13dbe3: 03 55 f0 add -0x10(%ebp),%edx <== NOT EXECUTED
13dbe6: 8b 45 f0 mov -0x10(%ebp),%eax <== NOT EXECUTED
13dbe9: 29 f0 sub %esi,%eax <== NOT EXECUTED
13dbeb: 89 f7 mov %esi,%edi <== NOT EXECUTED
13dbed: c1 cf 1a ror $0x1a,%edi <== NOT EXECUTED
13dbf0: 31 c7 xor %eax,%edi <== NOT EXECUTED
13dbf2: 8d 04 16 lea (%esi,%edx,1),%eax <== NOT EXECUTED
13dbf5: 89 d6 mov %edx,%esi <== NOT EXECUTED
13dbf7: 29 fe sub %edi,%esi <== NOT EXECUTED
13dbf9: 89 fa mov %edi,%edx <== NOT EXECUTED
13dbfb: c1 ca 18 ror $0x18,%edx <== NOT EXECUTED
13dbfe: 31 f2 xor %esi,%edx <== NOT EXECUTED
13dc00: 8d 34 07 lea (%edi,%eax,1),%esi <== NOT EXECUTED
13dc03: 89 c7 mov %eax,%edi <== NOT EXECUTED
13dc05: 29 d7 sub %edx,%edi <== NOT EXECUTED
13dc07: 89 d0 mov %edx,%eax <== NOT EXECUTED
13dc09: c1 c8 10 ror $0x10,%eax <== NOT EXECUTED
13dc0c: 31 f8 xor %edi,%eax <== NOT EXECUTED
13dc0e: 8d 3c 32 lea (%edx,%esi,1),%edi <== NOT EXECUTED
13dc11: 29 c6 sub %eax,%esi <== NOT EXECUTED
13dc13: 89 c2 mov %eax,%edx <== NOT EXECUTED
13dc15: c1 ca 0d ror $0xd,%edx <== NOT EXECUTED
13dc18: 31 f2 xor %esi,%edx <== NOT EXECUTED
13dc1a: 8d 34 38 lea (%eax,%edi,1),%esi <== NOT EXECUTED
13dc1d: 29 d7 sub %edx,%edi <== NOT EXECUTED
13dc1f: 89 d0 mov %edx,%eax <== NOT EXECUTED
13dc21: c1 c8 1c ror $0x1c,%eax <== NOT EXECUTED
13dc24: 31 f8 xor %edi,%eax <== NOT EXECUTED
13dc26: 01 f2 add %esi,%edx <== NOT EXECUTED
length -= 12;
13dc28: 83 eb 0c sub $0xc,%ebx <== NOT EXECUTED
k += 12;
13dc2b: 83 c1 0c add $0xc,%ecx <== NOT EXECUTED
} else { /* need to read the key one byte at a time */
const uint8_t *k = (const uint8_t *)key;
/*--------------- all but the last block: affect some 32 bits of (a,b,c) */
while (length > 12)
13dc2e: 83 fb 0c cmp $0xc,%ebx <== NOT EXECUTED
13dc31: 0f 87 21 ff ff ff ja 13db58 <rtems_rfs_dir_hash+0x250><== NOT EXECUTED
length -= 12;
k += 12;
}
/*-------------------------------- last block: affect all 32 bits of (c) */
switch(length) /* all the case statements fall through */
13dc37: 4b dec %ebx <== NOT EXECUTED
13dc38: 83 fb 0b cmp $0xb,%ebx <== NOT EXECUTED
13dc3b: 0f 87 a7 00 00 00 ja 13dce8 <rtems_rfs_dir_hash+0x3e0><== NOT EXECUTED
13dc41: ff 24 9d 80 f2 15 00 jmp *0x15f280(,%ebx,4) <== NOT EXECUTED
{
case 12: c+=((uint32_t)k[11])<<24;
13dc48: 0f b6 59 0b movzbl 0xb(%ecx),%ebx <== NOT EXECUTED
13dc4c: c1 e3 18 shl $0x18,%ebx <== NOT EXECUTED
13dc4f: 8d 04 03 lea (%ebx,%eax,1),%eax <== NOT EXECUTED
case 11: c+=((uint32_t)k[10])<<16;
13dc52: 0f b6 59 0a movzbl 0xa(%ecx),%ebx <== NOT EXECUTED
13dc56: c1 e3 10 shl $0x10,%ebx <== NOT EXECUTED
13dc59: 01 d8 add %ebx,%eax <== NOT EXECUTED
case 10: c+=((uint32_t)k[9])<<8;
13dc5b: 0f b6 59 09 movzbl 0x9(%ecx),%ebx <== NOT EXECUTED
13dc5f: c1 e3 08 shl $0x8,%ebx <== NOT EXECUTED
13dc62: 01 d8 add %ebx,%eax <== NOT EXECUTED
case 9 : c+=k[8];
13dc64: 0f b6 59 08 movzbl 0x8(%ecx),%ebx <== NOT EXECUTED
13dc68: 01 d8 add %ebx,%eax <== NOT EXECUTED
case 8 : b+=((uint32_t)k[7])<<24;
13dc6a: 0f b6 59 07 movzbl 0x7(%ecx),%ebx <== NOT EXECUTED
13dc6e: c1 e3 18 shl $0x18,%ebx <== NOT EXECUTED
13dc71: 8d 14 13 lea (%ebx,%edx,1),%edx <== NOT EXECUTED
case 7 : b+=((uint32_t)k[6])<<16;
13dc74: 0f b6 59 06 movzbl 0x6(%ecx),%ebx <== NOT EXECUTED
13dc78: c1 e3 10 shl $0x10,%ebx <== NOT EXECUTED
13dc7b: 01 da add %ebx,%edx <== NOT EXECUTED
case 6 : b+=((uint32_t)k[5])<<8;
13dc7d: 0f b6 59 05 movzbl 0x5(%ecx),%ebx <== NOT EXECUTED
13dc81: c1 e3 08 shl $0x8,%ebx <== NOT EXECUTED
13dc84: 01 da add %ebx,%edx <== NOT EXECUTED
case 5 : b+=k[4];
13dc86: 0f b6 59 04 movzbl 0x4(%ecx),%ebx <== NOT EXECUTED
13dc8a: 01 da add %ebx,%edx <== NOT EXECUTED
case 4 : a+=((uint32_t)k[3])<<24;
13dc8c: 0f b6 59 03 movzbl 0x3(%ecx),%ebx <== NOT EXECUTED
13dc90: c1 e3 18 shl $0x18,%ebx <== NOT EXECUTED
13dc93: 8d 34 33 lea (%ebx,%esi,1),%esi <== NOT EXECUTED
case 3 : a+=((uint32_t)k[2])<<16;
13dc96: 0f b6 59 02 movzbl 0x2(%ecx),%ebx <== NOT EXECUTED
13dc9a: c1 e3 10 shl $0x10,%ebx <== NOT EXECUTED
13dc9d: 01 de add %ebx,%esi <== NOT EXECUTED
case 2 : a+=((uint32_t)k[1])<<8;
13dc9f: 0f b6 59 01 movzbl 0x1(%ecx),%ebx <== NOT EXECUTED
13dca3: c1 e3 08 shl $0x8,%ebx <== NOT EXECUTED
13dca6: 01 de add %ebx,%esi <== NOT EXECUTED
case 1 : a+=k[0];
13dca8: 0f b6 09 movzbl (%ecx),%ecx <== NOT EXECUTED
13dcab: 01 ce add %ecx,%esi <== NOT EXECUTED
break;
case 0 : return c;
}
}
final(a,b,c);
13dcad: 31 d0 xor %edx,%eax <== NOT EXECUTED
13dcaf: 89 d1 mov %edx,%ecx <== NOT EXECUTED
13dcb1: c1 c9 12 ror $0x12,%ecx <== NOT EXECUTED
13dcb4: 29 c8 sub %ecx,%eax <== NOT EXECUTED
13dcb6: 31 c6 xor %eax,%esi <== NOT EXECUTED
13dcb8: 89 c1 mov %eax,%ecx <== NOT EXECUTED
13dcba: c1 c9 15 ror $0x15,%ecx <== NOT EXECUTED
13dcbd: 29 ce sub %ecx,%esi <== NOT EXECUTED
13dcbf: 31 f2 xor %esi,%edx <== NOT EXECUTED
13dcc1: 89 f1 mov %esi,%ecx <== NOT EXECUTED
13dcc3: c1 c9 07 ror $0x7,%ecx <== NOT EXECUTED
13dcc6: 29 ca sub %ecx,%edx <== NOT EXECUTED
13dcc8: 31 d0 xor %edx,%eax <== NOT EXECUTED
13dcca: 89 d1 mov %edx,%ecx <== NOT EXECUTED
13dccc: c1 c9 10 ror $0x10,%ecx <== NOT EXECUTED
13dccf: 29 c8 sub %ecx,%eax <== NOT EXECUTED
13dcd1: 31 c6 xor %eax,%esi <== NOT EXECUTED
13dcd3: 89 c1 mov %eax,%ecx <== NOT EXECUTED
13dcd5: c1 c9 1c ror $0x1c,%ecx <== NOT EXECUTED
13dcd8: 29 ce sub %ecx,%esi <== NOT EXECUTED
13dcda: 31 f2 xor %esi,%edx <== NOT EXECUTED
13dcdc: c1 ce 12 ror $0x12,%esi <== NOT EXECUTED
13dcdf: 29 f2 sub %esi,%edx <== NOT EXECUTED
13dce1: 31 d0 xor %edx,%eax <== NOT EXECUTED
13dce3: c1 ca 08 ror $0x8,%edx <== NOT EXECUTED
13dce6: 29 d0 sub %edx,%eax <== NOT EXECUTED
return c;
}
13dce8: 5a pop %edx <== NOT EXECUTED
13dce9: 5b pop %ebx <== NOT EXECUTED
13dcea: 5e pop %esi <== NOT EXECUTED
13dceb: 5f pop %edi <== NOT EXECUTED
13dcec: c9 leave <== NOT EXECUTED
13dced: c3 ret <== NOT EXECUTED
00136689 <rtems_rfs_dir_lookup_ino>:
rtems_rfs_inode_handle* inode,
const char* name,
int length,
rtems_rfs_ino* ino,
uint32_t* offset)
{
136689: 55 push %ebp <== NOT EXECUTED
13668a: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13668c: 57 push %edi <== NOT EXECUTED
13668d: 56 push %esi <== NOT EXECUTED
13668e: 53 push %ebx <== NOT EXECUTED
13668f: 81 ec a0 00 00 00 sub $0xa0,%esp <== NOT EXECUTED
136695: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
for (c = 0; c < length; c++)
printf ("%c", name[c]);
printf (", len=%d\n", length);
}
*ino = RTEMS_RFS_EMPTY_INO;
136698: 8b 45 18 mov 0x18(%ebp),%eax <== NOT EXECUTED
13669b: c7 00 00 00 00 00 movl $0x0,(%eax) <== NOT EXECUTED
*offset = 0;
1366a1: 8b 55 1c mov 0x1c(%ebp),%edx <== NOT EXECUTED
1366a4: c7 02 00 00 00 00 movl $0x0,(%edx) <== NOT EXECUTED
rc = rtems_rfs_block_map_open (fs, inode, &map);
1366aa: 8d 7d 88 lea -0x78(%ebp),%edi <== NOT EXECUTED
1366ad: 57 push %edi <== NOT EXECUTED
1366ae: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
1366b1: 53 push %ebx <== NOT EXECUTED
1366b2: e8 8e f0 ff ff call 135745 <rtems_rfs_block_map_open><== NOT EXECUTED
1366b7: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
1366b9: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1366bc: 85 c0 test %eax,%eax <== NOT EXECUTED
1366be: 0f 8f e9 01 00 00 jg 1368ad <rtems_rfs_dir_lookup_ino+0x224><== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_open (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
handle->dirty = false;
1366c4: c6 45 d8 00 movb $0x0,-0x28(%ebp) <== NOT EXECUTED
handle->bnum = 0;
1366c8: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp) <== NOT EXECUTED
handle->buffer = NULL;
1366cf: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp) <== NOT EXECUTED
uint32_t hash;
/*
* Calculate the hash of the look up string.
*/
hash = rtems_rfs_dir_hash (name, length);
1366d6: 56 push %esi <== NOT EXECUTED
1366d7: 56 push %esi <== NOT EXECUTED
1366d8: ff 75 14 pushl 0x14(%ebp) <== NOT EXECUTED
1366db: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
1366de: e8 25 72 00 00 call 13d908 <rtems_rfs_dir_hash> <== NOT EXECUTED
1366e3: 89 45 80 mov %eax,-0x80(%ebp) <== NOT EXECUTED
/*
* Locate the first block. The map points to the start after open so just
* seek 0. If an error the block will be 0.
*/
rc = rtems_rfs_block_map_seek (fs, &map, 0, &block);
1366e6: 8d 55 e4 lea -0x1c(%ebp),%edx <== NOT EXECUTED
1366e9: 89 14 24 mov %edx,(%esp) <== NOT EXECUTED
1366ec: 6a 00 push $0x0 <== NOT EXECUTED
1366ee: 6a 00 push $0x0 <== NOT EXECUTED
1366f0: 57 push %edi <== NOT EXECUTED
1366f1: 53 push %ebx <== NOT EXECUTED
1366f2: 89 95 64 ff ff ff mov %edx,-0x9c(%ebp) <== NOT EXECUTED
1366f8: e8 a3 e7 ff ff call 134ea0 <rtems_rfs_block_map_seek><== NOT EXECUTED
1366fd: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
1366ff: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
136702: 85 c0 test %eax,%eax <== NOT EXECUTED
136704: 0f 8e 76 01 00 00 jle 136880 <rtems_rfs_dir_lookup_ino+0x1f7><== NOT EXECUTED
{
if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO))
printf ("rtems-rfs: dir-lookup-ino: block map find failed: %d: %s\n",
rc, strerror (rc));
if (rc == ENXIO)
13670a: 83 f8 06 cmp $0x6,%eax <== NOT EXECUTED
13670d: 0f 85 81 01 00 00 jne 136894 <rtems_rfs_dir_lookup_ino+0x20b><== NOT EXECUTED
136713: e9 58 01 00 00 jmp 136870 <rtems_rfs_dir_lookup_ino+0x1e7><== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO))
printf ("rtems-rfs: dir-lookup-ino: block read, ino=%" PRIu32 " bno=%" PRId32 "\n",
rtems_rfs_inode_ino (inode), map.bpos.bno);
rc = rtems_rfs_buffer_handle_request (fs, &entries, block, true);
136718: 6a 01 push $0x1 <== NOT EXECUTED
13671a: 50 push %eax <== NOT EXECUTED
13671b: 8d 4d d8 lea -0x28(%ebp),%ecx <== NOT EXECUTED
13671e: 51 push %ecx <== NOT EXECUTED
13671f: 53 push %ebx <== NOT EXECUTED
136720: e8 35 f4 ff ff call 135b5a <rtems_rfs_buffer_handle_request><== NOT EXECUTED
136725: 89 45 84 mov %eax,-0x7c(%ebp) <== NOT EXECUTED
if (rc > 0)
136728: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13672b: 85 c0 test %eax,%eax <== NOT EXECUTED
13672d: 0f 8f 5e 01 00 00 jg 136891 <rtems_rfs_dir_lookup_ino+0x208><== NOT EXECUTED
/*
* Search the block to see if the name matches. A hash of 0xffff or 0x0
* means the entry is empty.
*/
entry = rtems_rfs_buffer_data (&entries);
136733: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
136736: 8b 78 20 mov 0x20(%eax),%edi <== NOT EXECUTED
map.bpos.boff = 0;
136739: c7 45 9c 00 00 00 00 movl $0x0,-0x64(%ebp) <== NOT EXECUTED
while (map.bpos.boff < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
136740: e9 fd 00 00 00 jmp 136842 <rtems_rfs_dir_lookup_ino+0x1b9><== NOT EXECUTED
{
uint32_t ehash;
int elength;
ehash = rtems_rfs_dir_entry_hash (entry);
136745: 8a 47 04 mov 0x4(%edi),%al <== NOT EXECUTED
136748: 88 85 68 ff ff ff mov %al,-0x98(%ebp) <== NOT EXECUTED
13674e: 8a 57 05 mov 0x5(%edi),%dl <== NOT EXECUTED
136751: 88 95 7d ff ff ff mov %dl,-0x83(%ebp) <== NOT EXECUTED
136757: 8a 4f 06 mov 0x6(%edi),%cl <== NOT EXECUTED
13675a: 88 8d 7e ff ff ff mov %cl,-0x82(%ebp) <== NOT EXECUTED
136760: 8a 47 07 mov 0x7(%edi),%al <== NOT EXECUTED
136763: 88 85 7f ff ff ff mov %al,-0x81(%ebp) <== NOT EXECUTED
elength = rtems_rfs_dir_entry_length (entry);
136769: 0f b6 57 08 movzbl 0x8(%edi),%edx <== NOT EXECUTED
13676d: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
136770: 0f b6 47 09 movzbl 0x9(%edi),%eax <== NOT EXECUTED
136774: 09 c2 or %eax,%edx <== NOT EXECUTED
*ino = rtems_rfs_dir_entry_ino (entry);
136776: 0f b6 47 03 movzbl 0x3(%edi),%eax <== NOT EXECUTED
13677a: 0f b6 0f movzbl (%edi),%ecx <== NOT EXECUTED
13677d: c1 e1 18 shl $0x18,%ecx <== NOT EXECUTED
136780: 09 c8 or %ecx,%eax <== NOT EXECUTED
136782: 0f b6 4f 01 movzbl 0x1(%edi),%ecx <== NOT EXECUTED
136786: c1 e1 10 shl $0x10,%ecx <== NOT EXECUTED
136789: 09 c8 or %ecx,%eax <== NOT EXECUTED
13678b: 0f b6 4f 02 movzbl 0x2(%edi),%ecx <== NOT EXECUTED
13678f: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
136792: 09 c8 or %ecx,%eax <== NOT EXECUTED
136794: 8b 4d 18 mov 0x18(%ebp),%ecx <== NOT EXECUTED
136797: 89 01 mov %eax,(%ecx) <== NOT EXECUTED
if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)
136799: 81 fa ff ff 00 00 cmp $0xffff,%edx <== NOT EXECUTED
13679f: 0f 84 ac 00 00 00 je 136851 <rtems_rfs_dir_lookup_ino+0x1c8><== NOT EXECUTED
break;
if (rtems_rfs_dir_entry_valid (fs, elength, *ino))
1367a5: 83 fa 0a cmp $0xa,%edx <== NOT EXECUTED
1367a8: 0f 8e c8 00 00 00 jle 136876 <rtems_rfs_dir_lookup_ino+0x1ed><== NOT EXECUTED
1367ae: 3b 53 18 cmp 0x18(%ebx),%edx <== NOT EXECUTED
1367b1: 0f 83 bf 00 00 00 jae 136876 <rtems_rfs_dir_lookup_ino+0x1ed><== NOT EXECUTED
1367b7: 85 c0 test %eax,%eax <== NOT EXECUTED
1367b9: 0f 84 b7 00 00 00 je 136876 <rtems_rfs_dir_lookup_ino+0x1ed><== NOT EXECUTED
1367bf: 3b 43 10 cmp 0x10(%ebx),%eax <== NOT EXECUTED
1367c2: 0f 87 ae 00 00 00 ja 136876 <rtems_rfs_dir_lookup_ino+0x1ed><== NOT EXECUTED
rtems_rfs_inode_ino (inode), elength, *ino, map.bpos.boff);
rc = EIO;
break;
}
if (ehash == hash)
1367c8: 8a 85 68 ff ff ff mov -0x98(%ebp),%al <== NOT EXECUTED
1367ce: c1 e0 18 shl $0x18,%eax <== NOT EXECUTED
1367d1: 0f b6 8d 7d ff ff ff movzbl -0x83(%ebp),%ecx <== NOT EXECUTED
1367d8: c1 e1 10 shl $0x10,%ecx <== NOT EXECUTED
1367db: 09 c8 or %ecx,%eax <== NOT EXECUTED
1367dd: 0f b6 8d 7f ff ff ff movzbl -0x81(%ebp),%ecx <== NOT EXECUTED
1367e4: 09 c8 or %ecx,%eax <== NOT EXECUTED
1367e6: 0f b6 8d 7e ff ff ff movzbl -0x82(%ebp),%ecx <== NOT EXECUTED
1367ed: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
1367f0: 09 c8 or %ecx,%eax <== NOT EXECUTED
1367f2: 3b 45 80 cmp -0x80(%ebp),%eax <== NOT EXECUTED
1367f5: 75 46 jne 13683d <rtems_rfs_dir_lookup_ino+0x1b4><== NOT EXECUTED
"checking entry for ino %" PRId32 ": bno=%04" PRIx32 "/off=%04" PRIx32
" length:%d ino:%" PRId32 "\n",
rtems_rfs_inode_ino (inode), map.bpos.bno, map.bpos.boff,
elength, rtems_rfs_dir_entry_ino (entry));
if (memcmp (entry + RTEMS_RFS_DIR_ENTRY_SIZE, name, length) == 0)
1367f7: 8d 47 0a lea 0xa(%edi),%eax <== NOT EXECUTED
1367fa: 51 push %ecx <== NOT EXECUTED
1367fb: ff 75 14 pushl 0x14(%ebp) <== NOT EXECUTED
1367fe: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
136801: 50 push %eax <== NOT EXECUTED
136802: 89 95 64 ff ff ff mov %edx,-0x9c(%ebp) <== NOT EXECUTED
136808: e8 fb a7 00 00 call 141008 <memcmp> <== NOT EXECUTED
13680d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
136810: 85 c0 test %eax,%eax <== NOT EXECUTED
136812: 8b 95 64 ff ff ff mov -0x9c(%ebp),%edx <== NOT EXECUTED
136818: 75 23 jne 13683d <rtems_rfs_dir_lookup_ino+0x1b4><== NOT EXECUTED
{
*offset = rtems_rfs_block_map_pos (fs, &map);
13681a: 51 push %ecx <== NOT EXECUTED
13681b: 51 push %ecx <== NOT EXECUTED
13681c: 8d 7d 88 lea -0x78(%ebp),%edi <== NOT EXECUTED
13681f: 8d 45 98 lea -0x68(%ebp),%eax <== NOT EXECUTED
136822: 50 push %eax <== NOT EXECUTED
136823: 53 push %ebx <== NOT EXECUTED
136824: e8 fc e3 ff ff call 134c25 <rtems_rfs_block_get_pos><== NOT EXECUTED
136829: 8b 55 1c mov 0x1c(%ebp),%edx <== NOT EXECUTED
13682c: 89 02 mov %eax,(%edx) <== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO_FOUND))
printf ("rtems-rfs: dir-lookup-ino: "
"entry found in ino %" PRIu32 ", ino=%" PRIu32 " offset=%" PRIu32 "\n",
rtems_rfs_inode_ino (inode), *ino, *offset);
rtems_rfs_buffer_handle_close (fs, &entries);
13682e: 8d 55 d8 lea -0x28(%ebp),%edx <== NOT EXECUTED
136831: 89 d8 mov %ebx,%eax <== NOT EXECUTED
136833: e8 c0 f4 ff ff call 135cf8 <rtems_rfs_buffer_handle_close><== NOT EXECUTED
rtems_rfs_block_map_close (fs, &map);
136838: 58 pop %eax <== NOT EXECUTED
136839: 5a pop %edx <== NOT EXECUTED
13683a: 57 push %edi <== NOT EXECUTED
13683b: eb 67 jmp 1368a4 <rtems_rfs_dir_lookup_ino+0x21b><== NOT EXECUTED
return 0;
}
}
map.bpos.boff += elength;
13683d: 01 55 9c add %edx,-0x64(%ebp) <== NOT EXECUTED
entry += elength;
136840: 01 d7 add %edx,%edi <== NOT EXECUTED
entry = rtems_rfs_buffer_data (&entries);
map.bpos.boff = 0;
while (map.bpos.boff < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
136842: 8b 43 08 mov 0x8(%ebx),%eax <== NOT EXECUTED
136845: 83 e8 0a sub $0xa,%eax <== NOT EXECUTED
136848: 39 45 9c cmp %eax,-0x64(%ebp) <== NOT EXECUTED
13684b: 0f 82 f4 fe ff ff jb 136745 <rtems_rfs_dir_lookup_ino+0xbc><== NOT EXECUTED
map.bpos.boff += elength;
entry += elength;
}
if (rc == 0)
136851: 83 7d 84 00 cmpl $0x0,-0x7c(%ebp) <== NOT EXECUTED
136855: 75 26 jne 13687d <rtems_rfs_dir_lookup_ino+0x1f4><== NOT EXECUTED
{
rc = rtems_rfs_block_map_next_block (fs, &map, &block);
136857: 51 push %ecx <== NOT EXECUTED
136858: 8d 4d e4 lea -0x1c(%ebp),%ecx <== NOT EXECUTED
13685b: 51 push %ecx <== NOT EXECUTED
13685c: 8d 45 88 lea -0x78(%ebp),%eax <== NOT EXECUTED
13685f: 50 push %eax <== NOT EXECUTED
136860: 53 push %ebx <== NOT EXECUTED
136861: e8 0a e6 ff ff call 134e70 <rtems_rfs_block_map_next_block><== NOT EXECUTED
136866: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO))
printf ("rtems-rfs: dir-lookup-ino: "
"block map next block failed in ino %" PRIu32 ": %d: %s\n",
rtems_rfs_inode_ino (inode), rc, strerror (rc));
}
if (rc == ENXIO)
136868: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13686b: 83 f8 06 cmp $0x6,%eax <== NOT EXECUTED
13686e: 75 10 jne 136880 <rtems_rfs_dir_lookup_ino+0x1f7><== NOT EXECUTED
136870: 66 be 02 00 mov $0x2,%si <== NOT EXECUTED
136874: eb 1e jmp 136894 <rtems_rfs_dir_lookup_ino+0x20b><== NOT EXECUTED
136876: c7 45 84 05 00 00 00 movl $0x5,-0x7c(%ebp) <== NOT EXECUTED
13687d: 8b 75 84 mov -0x7c(%ebp),%esi <== NOT EXECUTED
rtems_rfs_buffer_handle_close (fs, &entries);
rtems_rfs_block_map_close (fs, &map);
return rc;
}
while ((rc == 0) && block)
136880: 85 f6 test %esi,%esi <== NOT EXECUTED
136882: 75 10 jne 136894 <rtems_rfs_dir_lookup_ino+0x20b><== NOT EXECUTED
136884: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
136887: 85 c0 test %eax,%eax <== NOT EXECUTED
136889: 0f 85 89 fe ff ff jne 136718 <rtems_rfs_dir_lookup_ino+0x8f><== NOT EXECUTED
13688f: eb 26 jmp 1368b7 <rtems_rfs_dir_lookup_ino+0x22e><== NOT EXECUTED
136891: 8b 75 84 mov -0x7c(%ebp),%esi <== NOT EXECUTED
printf ("rtems-rfs: dir-lookup-ino: block is 0 in ino %" PRIu32 ": %d: %s\n",
rtems_rfs_inode_ino (inode), rc, strerror (rc));
}
}
rtems_rfs_buffer_handle_close (fs, &entries);
136894: 8d 55 d8 lea -0x28(%ebp),%edx <== NOT EXECUTED
136897: 89 d8 mov %ebx,%eax <== NOT EXECUTED
136899: e8 5a f4 ff ff call 135cf8 <rtems_rfs_buffer_handle_close><== NOT EXECUTED
rtems_rfs_block_map_close (fs, &map);
13689e: 52 push %edx <== NOT EXECUTED
13689f: 52 push %edx <== NOT EXECUTED
1368a0: 8d 45 88 lea -0x78(%ebp),%eax <== NOT EXECUTED
1368a3: 50 push %eax <== NOT EXECUTED
1368a4: 53 push %ebx <== NOT EXECUTED
1368a5: e8 f8 ec ff ff call 1355a2 <rtems_rfs_block_map_close><== NOT EXECUTED
return rc;
1368aa: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
1368ad: 89 f0 mov %esi,%eax <== NOT EXECUTED
1368af: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1368b2: 5b pop %ebx <== NOT EXECUTED
1368b3: 5e pop %esi <== NOT EXECUTED
1368b4: 5f pop %edi <== NOT EXECUTED
1368b5: c9 leave <== NOT EXECUTED
1368b6: c3 ret <== NOT EXECUTED
if (rc == ENXIO)
rc = ENOENT;
}
}
if ((rc == 0) && (block == 0))
1368b7: be 05 00 00 00 mov $0x5,%esi <== NOT EXECUTED
1368bc: eb d6 jmp 136894 <rtems_rfs_dir_lookup_ino+0x20b><== NOT EXECUTED
00135e92 <rtems_rfs_dir_read>:
rtems_rfs_dir_read (rtems_rfs_file_system* fs,
rtems_rfs_inode_handle* dir,
rtems_rfs_pos_rel offset,
struct dirent* dirent,
size_t* length)
{
135e92: 55 push %ebp <== NOT EXECUTED
135e93: 89 e5 mov %esp,%ebp <== NOT EXECUTED
135e95: 57 push %edi <== NOT EXECUTED
135e96: 56 push %esi <== NOT EXECUTED
135e97: 53 push %ebx <== NOT EXECUTED
135e98: 81 ec a0 00 00 00 sub $0xa0,%esp <== NOT EXECUTED
135e9e: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
135ea1: 8b 55 14 mov 0x14(%ebp),%edx <== NOT EXECUTED
135ea4: 89 45 80 mov %eax,-0x80(%ebp) <== NOT EXECUTED
135ea7: 89 55 84 mov %edx,-0x7c(%ebp) <== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_READ))
printf ("rtems-rfs: dir-read: dir=%" PRId32 " offset=%" PRId64 "\n",
rtems_rfs_inode_ino (dir), offset);
*length = 0;
135eaa: 8b 55 1c mov 0x1c(%ebp),%edx <== NOT EXECUTED
135ead: c7 02 00 00 00 00 movl $0x0,(%edx) <== NOT EXECUTED
rc = rtems_rfs_block_map_open (fs, dir, &map);
135eb3: 8d 45 88 lea -0x78(%ebp),%eax <== NOT EXECUTED
135eb6: 50 push %eax <== NOT EXECUTED
135eb7: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
135eba: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
135ebd: e8 83 f8 ff ff call 135745 <rtems_rfs_block_map_open><== NOT EXECUTED
135ec2: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc > 0)
135ec4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
135ec7: 85 c0 test %eax,%eax <== NOT EXECUTED
135ec9: 0f 8f 70 02 00 00 jg 13613f <rtems_rfs_dir_read+0x2ad><== NOT EXECUTED
return rc;
if (((rtems_rfs_fs_block_size (fs) -
(offset % rtems_rfs_fs_block_size (fs))) <= RTEMS_RFS_DIR_ENTRY_SIZE))
135ecf: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
135ed2: 8b 59 08 mov 0x8(%ecx),%ebx <== NOT EXECUTED
135ed5: 31 f6 xor %esi,%esi <== NOT EXECUTED
rc = rtems_rfs_block_map_open (fs, dir, &map);
if (rc > 0)
return rc;
if (((rtems_rfs_fs_block_size (fs) -
135ed7: 56 push %esi <== NOT EXECUTED
135ed8: 53 push %ebx <== NOT EXECUTED
135ed9: ff 75 84 pushl -0x7c(%ebp) <== NOT EXECUTED
135edc: ff 75 80 pushl -0x80(%ebp) <== NOT EXECUTED
135edf: e8 90 dc 01 00 call 153b74 <__moddi3> <== NOT EXECUTED
135ee4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
135ee7: 89 85 58 ff ff ff mov %eax,-0xa8(%ebp) <== NOT EXECUTED
135eed: 89 95 5c ff ff ff mov %edx,-0xa4(%ebp) <== NOT EXECUTED
135ef3: 89 d8 mov %ebx,%eax <== NOT EXECUTED
135ef5: 89 f2 mov %esi,%edx <== NOT EXECUTED
135ef7: 2b 85 58 ff ff ff sub -0xa8(%ebp),%eax <== NOT EXECUTED
135efd: 1b 95 5c ff ff ff sbb -0xa4(%ebp),%edx <== NOT EXECUTED
135f03: 89 85 58 ff ff ff mov %eax,-0xa8(%ebp) <== NOT EXECUTED
135f09: 89 95 5c ff ff ff mov %edx,-0xa4(%ebp) <== NOT EXECUTED
135f0f: 83 fa 00 cmp $0x0,%edx <== NOT EXECUTED
135f12: 7f 38 jg 135f4c <rtems_rfs_dir_read+0xba><== NOT EXECUTED
135f14: 7c 05 jl 135f1b <rtems_rfs_dir_read+0x89><== NOT EXECUTED
135f16: 83 f8 0a cmp $0xa,%eax <== NOT EXECUTED
135f19: 77 31 ja 135f4c <rtems_rfs_dir_read+0xba><== NOT EXECUTED
(offset % rtems_rfs_fs_block_size (fs))) <= RTEMS_RFS_DIR_ENTRY_SIZE))
offset = (((offset / rtems_rfs_fs_block_size (fs)) + 1) *
135f1b: 56 push %esi <== NOT EXECUTED
135f1c: 53 push %ebx <== NOT EXECUTED
135f1d: ff 75 84 pushl -0x7c(%ebp) <== NOT EXECUTED
135f20: ff 75 80 pushl -0x80(%ebp) <== NOT EXECUTED
135f23: e8 fc da 01 00 call 153a24 <__divdi3> <== NOT EXECUTED
135f28: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
135f2b: 89 45 80 mov %eax,-0x80(%ebp) <== NOT EXECUTED
135f2e: 89 55 84 mov %edx,-0x7c(%ebp) <== NOT EXECUTED
135f31: 83 45 80 01 addl $0x1,-0x80(%ebp) <== NOT EXECUTED
135f35: 83 55 84 00 adcl $0x0,-0x7c(%ebp) <== NOT EXECUTED
135f39: 8b 4d 84 mov -0x7c(%ebp),%ecx <== NOT EXECUTED
135f3c: 0f af cb imul %ebx,%ecx <== NOT EXECUTED
135f3f: 8b 45 80 mov -0x80(%ebp),%eax <== NOT EXECUTED
135f42: f7 e3 mul %ebx <== NOT EXECUTED
135f44: 89 45 80 mov %eax,-0x80(%ebp) <== NOT EXECUTED
135f47: 01 ca add %ecx,%edx <== NOT EXECUTED
135f49: 89 55 84 mov %edx,-0x7c(%ebp) <== NOT EXECUTED
rtems_rfs_fs_block_size (fs));
rc = rtems_rfs_block_map_seek (fs, &map, offset, &block);
135f4c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
135f4f: 8d 7d e4 lea -0x1c(%ebp),%edi <== NOT EXECUTED
135f52: 57 push %edi <== NOT EXECUTED
135f53: ff 75 84 pushl -0x7c(%ebp) <== NOT EXECUTED
135f56: ff 75 80 pushl -0x80(%ebp) <== NOT EXECUTED
135f59: 8d 75 88 lea -0x78(%ebp),%esi <== NOT EXECUTED
135f5c: 56 push %esi <== NOT EXECUTED
135f5d: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
135f60: e8 3b ef ff ff call 134ea0 <rtems_rfs_block_map_seek><== NOT EXECUTED
135f65: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc > 0)
135f67: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
135f6a: 85 c0 test %eax,%eax <== NOT EXECUTED
135f6c: 7e 10 jle 135f7e <rtems_rfs_dir_read+0xec><== NOT EXECUTED
{
if (rc == ENXIO)
135f6e: 83 f8 06 cmp $0x6,%eax <== NOT EXECUTED
135f71: 0f 85 b7 01 00 00 jne 13612e <rtems_rfs_dir_read+0x29c><== NOT EXECUTED
135f77: b3 02 mov $0x2,%bl <== NOT EXECUTED
135f79: e9 b0 01 00 00 jmp 13612e <rtems_rfs_dir_read+0x29c><== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_open (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
handle->dirty = false;
135f7e: c6 45 d8 00 movb $0x0,-0x28(%ebp) <== NOT EXECUTED
handle->bnum = 0;
135f82: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp) <== NOT EXECUTED
handle->buffer = NULL;
135f89: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp) <== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_READ))
printf ("rtems-rfs: dir-read: next block: off:%" PRId64 " length:%zd\n",
offset, *length);
rc = rtems_rfs_block_map_next_block (fs, &map, &block);
135f90: 89 f7 mov %esi,%edi <== NOT EXECUTED
uint8_t* entry;
rtems_rfs_ino eino;
int elength;
int remaining;
rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, true);
135f92: 6a 01 push $0x1 <== NOT EXECUTED
135f94: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
135f97: 8d 55 d8 lea -0x28(%ebp),%edx <== NOT EXECUTED
135f9a: 52 push %edx <== NOT EXECUTED
135f9b: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
135f9e: e8 b7 fb ff ff call 135b5a <rtems_rfs_buffer_handle_request><== NOT EXECUTED
135fa3: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc > 0)
135fa5: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
135fa8: 85 c0 test %eax,%eax <== NOT EXECUTED
135faa: 0f 8f 73 01 00 00 jg 136123 <rtems_rfs_dir_read+0x291><== NOT EXECUTED
rtems_rfs_block_map_close (fs, &map);
return rc;
}
entry = rtems_rfs_buffer_data (&buffer);
entry += map.bpos.boff;
135fb0: 8b 4d 9c mov -0x64(%ebp),%ecx <== NOT EXECUTED
135fb3: 89 8d 7c ff ff ff mov %ecx,-0x84(%ebp) <== NOT EXECUTED
135fb9: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
135fbc: 8b 50 20 mov 0x20(%eax),%edx <== NOT EXECUTED
135fbf: 01 ca add %ecx,%edx <== NOT EXECUTED
elength = rtems_rfs_dir_entry_length (entry);
135fc1: 0f b6 72 08 movzbl 0x8(%edx),%esi <== NOT EXECUTED
135fc5: c1 e6 08 shl $0x8,%esi <== NOT EXECUTED
135fc8: 0f b6 42 09 movzbl 0x9(%edx),%eax <== NOT EXECUTED
135fcc: 09 c6 or %eax,%esi <== NOT EXECUTED
eino = rtems_rfs_dir_entry_ino (entry);
135fce: 8d 42 01 lea 0x1(%edx),%eax <== NOT EXECUTED
135fd1: 89 85 70 ff ff ff mov %eax,-0x90(%ebp) <== NOT EXECUTED
135fd7: 8d 4a 02 lea 0x2(%edx),%ecx <== NOT EXECUTED
135fda: 89 8d 74 ff ff ff mov %ecx,-0x8c(%ebp) <== NOT EXECUTED
135fe0: 8d 42 03 lea 0x3(%edx),%eax <== NOT EXECUTED
135fe3: 89 85 78 ff ff ff mov %eax,-0x88(%ebp) <== NOT EXECUTED
135fe9: 0f b6 42 03 movzbl 0x3(%edx),%eax <== NOT EXECUTED
135fed: 0f b6 0a movzbl (%edx),%ecx <== NOT EXECUTED
135ff0: c1 e1 18 shl $0x18,%ecx <== NOT EXECUTED
135ff3: 09 c8 or %ecx,%eax <== NOT EXECUTED
135ff5: 0f b6 4a 01 movzbl 0x1(%edx),%ecx <== NOT EXECUTED
135ff9: c1 e1 10 shl $0x10,%ecx <== NOT EXECUTED
135ffc: 09 c8 or %ecx,%eax <== NOT EXECUTED
135ffe: 0f b6 4a 02 movzbl 0x2(%edx),%ecx <== NOT EXECUTED
136002: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
136005: 09 c8 or %ecx,%eax <== NOT EXECUTED
if (elength != RTEMS_RFS_DIR_ENTRY_EMPTY)
136007: 81 fe ff ff 00 00 cmp $0xffff,%esi <== NOT EXECUTED
13600d: 0f 84 d6 00 00 00 je 1360e9 <rtems_rfs_dir_read+0x257><== NOT EXECUTED
136013: 89 95 64 ff ff ff mov %edx,-0x9c(%ebp) <== NOT EXECUTED
{
if (rtems_rfs_dir_entry_valid (fs, elength, eino))
136019: 83 fe 0a cmp $0xa,%esi <== NOT EXECUTED
13601c: 0f 8e fc 00 00 00 jle 13611e <rtems_rfs_dir_read+0x28c><== NOT EXECUTED
136022: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
136025: 3b 72 18 cmp 0x18(%edx),%esi <== NOT EXECUTED
136028: 0f 83 f0 00 00 00 jae 13611e <rtems_rfs_dir_read+0x28c><== NOT EXECUTED
13602e: 85 c0 test %eax,%eax <== NOT EXECUTED
136030: 0f 84 e8 00 00 00 je 13611e <rtems_rfs_dir_read+0x28c><== NOT EXECUTED
136036: 3b 42 10 cmp 0x10(%edx),%eax <== NOT EXECUTED
136039: 0f 87 df 00 00 00 ja 13611e <rtems_rfs_dir_read+0x28c><== NOT EXECUTED
rtems_rfs_inode_ino (dir), elength, eino, map.bpos.boff);
rc = EIO;
break;
}
memset (dirent, 0, sizeof (struct dirent));
13603f: b9 44 00 00 00 mov $0x44,%ecx <== NOT EXECUTED
136044: 31 c0 xor %eax,%eax <== NOT EXECUTED
136046: 8b 7d 18 mov 0x18(%ebp),%edi <== NOT EXECUTED
136049: f3 ab rep stos %eax,%es:(%edi) <== NOT EXECUTED
dirent->d_off = offset;
13604b: 8b 45 80 mov -0x80(%ebp),%eax <== NOT EXECUTED
13604e: 8b 55 84 mov -0x7c(%ebp),%edx <== NOT EXECUTED
136051: 8b 4d 18 mov 0x18(%ebp),%ecx <== NOT EXECUTED
136054: 89 41 04 mov %eax,0x4(%ecx) <== NOT EXECUTED
136057: 89 51 08 mov %edx,0x8(%ecx) <== NOT EXECUTED
dirent->d_reclen = sizeof (struct dirent);
13605a: 66 c7 41 0c 10 01 movw $0x110,0xc(%ecx) <== NOT EXECUTED
*length += elength;
136060: 89 f1 mov %esi,%ecx <== NOT EXECUTED
136062: 8b 45 1c mov 0x1c(%ebp),%eax <== NOT EXECUTED
136065: 03 08 add (%eax),%ecx <== NOT EXECUTED
136067: 89 08 mov %ecx,(%eax) <== NOT EXECUTED
remaining = rtems_rfs_fs_block_size (fs) - (map.bpos.boff + elength);
136069: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
13606c: 8b 42 08 mov 0x8(%edx),%eax <== NOT EXECUTED
13606f: 2b 85 7c ff ff ff sub -0x84(%ebp),%eax <== NOT EXECUTED
136075: 29 f0 sub %esi,%eax <== NOT EXECUTED
if (remaining <= RTEMS_RFS_DIR_ENTRY_SIZE)
136077: 83 f8 0a cmp $0xa,%eax <== NOT EXECUTED
13607a: 7f 07 jg 136083 <rtems_rfs_dir_read+0x1f1><== NOT EXECUTED
*length += remaining;
13607c: 01 c8 add %ecx,%eax <== NOT EXECUTED
13607e: 8b 4d 1c mov 0x1c(%ebp),%ecx <== NOT EXECUTED
136081: 89 01 mov %eax,(%ecx) <== NOT EXECUTED
elength -= RTEMS_RFS_DIR_ENTRY_SIZE;
136083: 8d 46 f6 lea -0xa(%esi),%eax <== NOT EXECUTED
136086: 3d ff 00 00 00 cmp $0xff,%eax <== NOT EXECUTED
13608b: 7e 05 jle 136092 <rtems_rfs_dir_read+0x200><== NOT EXECUTED
13608d: b8 ff 00 00 00 mov $0xff,%eax <== NOT EXECUTED
if (elength > NAME_MAX)
elength = NAME_MAX;
memcpy (dirent->d_name, entry + RTEMS_RFS_DIR_ENTRY_SIZE, elength);
136092: 8b 75 18 mov 0x18(%ebp),%esi <== NOT EXECUTED
136095: 83 c6 10 add $0x10,%esi <== NOT EXECUTED
136098: 89 75 80 mov %esi,-0x80(%ebp) <== NOT EXECUTED
13609b: 8b b5 64 ff ff ff mov -0x9c(%ebp),%esi <== NOT EXECUTED
1360a1: 83 c6 0a add $0xa,%esi <== NOT EXECUTED
1360a4: 8b 7d 80 mov -0x80(%ebp),%edi <== NOT EXECUTED
1360a7: 89 c1 mov %eax,%ecx <== NOT EXECUTED
1360a9: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
dirent->d_ino = rtems_rfs_dir_entry_ino (entry);
1360ab: 8b 8d 64 ff ff ff mov -0x9c(%ebp),%ecx <== NOT EXECUTED
1360b1: 0f b6 11 movzbl (%ecx),%edx <== NOT EXECUTED
1360b4: c1 e2 18 shl $0x18,%edx <== NOT EXECUTED
1360b7: 8b b5 70 ff ff ff mov -0x90(%ebp),%esi <== NOT EXECUTED
1360bd: 0f b6 0e movzbl (%esi),%ecx <== NOT EXECUTED
1360c0: c1 e1 10 shl $0x10,%ecx <== NOT EXECUTED
1360c3: 09 ca or %ecx,%edx <== NOT EXECUTED
1360c5: 8b b5 78 ff ff ff mov -0x88(%ebp),%esi <== NOT EXECUTED
1360cb: 0f b6 0e movzbl (%esi),%ecx <== NOT EXECUTED
1360ce: 09 ca or %ecx,%edx <== NOT EXECUTED
1360d0: 8b b5 74 ff ff ff mov -0x8c(%ebp),%esi <== NOT EXECUTED
1360d6: 0f b6 0e movzbl (%esi),%ecx <== NOT EXECUTED
1360d9: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
1360dc: 09 ca or %ecx,%edx <== NOT EXECUTED
1360de: 8b 4d 18 mov 0x18(%ebp),%ecx <== NOT EXECUTED
1360e1: 89 11 mov %edx,(%ecx) <== NOT EXECUTED
dirent->d_namlen = elength;
1360e3: 66 89 41 0e mov %ax,0xe(%ecx) <== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_READ))
printf ("rtems-rfs: dir-read: found off:%" PRIdoff_t " ino:%ld name=%s\n",
dirent->d_off, dirent->d_ino, dirent->d_name);
break;
1360e7: eb 3a jmp 136123 <rtems_rfs_dir_read+0x291><== NOT EXECUTED
}
*length += rtems_rfs_fs_block_size (fs) - map.bpos.boff;
1360e9: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
1360ec: 8b 46 08 mov 0x8(%esi),%eax <== NOT EXECUTED
1360ef: 2b 85 7c ff ff ff sub -0x84(%ebp),%eax <== NOT EXECUTED
1360f5: 8b 55 1c mov 0x1c(%ebp),%edx <== NOT EXECUTED
1360f8: 01 02 add %eax,(%edx) <== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_READ))
printf ("rtems-rfs: dir-read: next block: off:%" PRId64 " length:%zd\n",
offset, *length);
rc = rtems_rfs_block_map_next_block (fs, &map, &block);
1360fa: 50 push %eax <== NOT EXECUTED
1360fb: 8d 4d e4 lea -0x1c(%ebp),%ecx <== NOT EXECUTED
1360fe: 51 push %ecx <== NOT EXECUTED
1360ff: 57 push %edi <== NOT EXECUTED
136100: 56 push %esi <== NOT EXECUTED
136101: e8 6a ed ff ff call 134e70 <rtems_rfs_block_map_next_block><== NOT EXECUTED
136106: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc == ENXIO)
136108: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13610b: 83 f8 06 cmp $0x6,%eax <== NOT EXECUTED
13610e: 75 04 jne 136114 <rtems_rfs_dir_read+0x282><== NOT EXECUTED
136110: b3 02 mov $0x2,%bl <== NOT EXECUTED
136112: eb 0f jmp 136123 <rtems_rfs_dir_read+0x291><== NOT EXECUTED
/*
* Look for an empty entry and if this is the last block that is the end of
* the directory.
*/
while (rc == 0)
136114: 85 c0 test %eax,%eax <== NOT EXECUTED
136116: 0f 84 76 fe ff ff je 135f92 <rtems_rfs_dir_read+0x100><== NOT EXECUTED
13611c: eb 05 jmp 136123 <rtems_rfs_dir_read+0x291><== NOT EXECUTED
13611e: bb 05 00 00 00 mov $0x5,%ebx <== NOT EXECUTED
rc = rtems_rfs_block_map_next_block (fs, &map, &block);
if (rc == ENXIO)
rc = ENOENT;
}
rtems_rfs_buffer_handle_close (fs, &buffer);
136123: 8d 55 d8 lea -0x28(%ebp),%edx <== NOT EXECUTED
136126: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
136129: e8 ca fb ff ff call 135cf8 <rtems_rfs_buffer_handle_close><== NOT EXECUTED
rtems_rfs_block_map_close (fs, &map);
13612e: 56 push %esi <== NOT EXECUTED
13612f: 56 push %esi <== NOT EXECUTED
136130: 8d 45 88 lea -0x78(%ebp),%eax <== NOT EXECUTED
136133: 50 push %eax <== NOT EXECUTED
136134: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
136137: e8 66 f4 ff ff call 1355a2 <rtems_rfs_block_map_close><== NOT EXECUTED
return rc;
13613c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
13613f: 89 d8 mov %ebx,%eax <== NOT EXECUTED
136141: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
136144: 5b pop %ebx <== NOT EXECUTED
136145: 5e pop %esi <== NOT EXECUTED
136146: 5f pop %edi <== NOT EXECUTED
136147: c9 leave <== NOT EXECUTED
136148: c3 ret <== NOT EXECUTED
00136ef3 <rtems_rfs_file_close>:
}
int
rtems_rfs_file_close (rtems_rfs_file_system* fs,
rtems_rfs_file_handle* handle)
{
136ef3: 55 push %ebp <== NOT EXECUTED
136ef4: 89 e5 mov %esp,%ebp <== NOT EXECUTED
136ef6: 57 push %edi <== NOT EXECUTED
136ef7: 56 push %esi <== NOT EXECUTED
136ef8: 53 push %ebx <== NOT EXECUTED
136ef9: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
136efc: 8b 7d 08 mov 0x8(%ebp),%edi <== NOT EXECUTED
136eff: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_CLOSE))
printf ("rtems-rfs: file-close: entry: ino=%" PRId32 "\n",
handle->shared->inode.ino);
if (handle->shared->references > 0)
136f02: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
136f05: 8b 50 08 mov 0x8(%eax),%edx <== NOT EXECUTED
136f08: 85 d2 test %edx,%edx <== NOT EXECUTED
136f0a: 7e 04 jle 136f10 <rtems_rfs_file_close+0x1d><== NOT EXECUTED
handle->shared->references--;
136f0c: 4a dec %edx <== NOT EXECUTED
136f0d: 89 50 08 mov %edx,0x8(%eax) <== NOT EXECUTED
if (handle->shared->references == 0)
136f10: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
136f13: 31 f6 xor %esi,%esi <== NOT EXECUTED
136f15: 83 78 08 00 cmpl $0x0,0x8(%eax) <== NOT EXECUTED
136f19: 0f 85 37 01 00 00 jne 137056 <rtems_rfs_file_close+0x163><== NOT EXECUTED
{
if (!rtems_rfs_inode_is_loaded (&handle->shared->inode))
136f1f: 83 78 18 00 cmpl $0x0,0x18(%eax) <== NOT EXECUTED
136f23: 75 19 jne 136f3e <rtems_rfs_file_close+0x4b><== NOT EXECUTED
rrc = rtems_rfs_inode_load (fs, &handle->shared->inode);
136f25: 56 push %esi <== NOT EXECUTED
136f26: 56 push %esi <== NOT EXECUTED
136f27: 83 c0 0c add $0xc,%eax <== NOT EXECUTED
136f2a: 50 push %eax <== NOT EXECUTED
136f2b: 57 push %edi <== NOT EXECUTED
136f2c: e8 47 1c 00 00 call 138b78 <rtems_rfs_inode_load> <== NOT EXECUTED
136f31: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rrc == 0)
136f33: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
136f36: 85 c0 test %eax,%eax <== NOT EXECUTED
136f38: 0f 85 c9 00 00 00 jne 137007 <rtems_rfs_file_close+0x114><== NOT EXECUTED
{
/*
* @todo This could be clever and only update if different.
*/
rtems_rfs_inode_set_atime (&handle->shared->inode,
handle->shared->atime);
136f3e: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
if (rrc == 0)
{
/*
* @todo This could be clever and only update if different.
*/
rtems_rfs_inode_set_atime (&handle->shared->inode,
136f41: 8b 90 8c 00 00 00 mov 0x8c(%eax),%edx <== NOT EXECUTED
*/
static inline void
rtems_rfs_inode_set_atime (rtems_rfs_inode_handle* handle,
rtems_rfs_time atime)
{
rtems_rfs_write_u32 (&handle->node->atime, atime);
136f47: 89 d1 mov %edx,%ecx <== NOT EXECUTED
136f49: c1 e9 18 shr $0x18,%ecx <== NOT EXECUTED
136f4c: 8b 70 18 mov 0x18(%eax),%esi <== NOT EXECUTED
136f4f: 88 4e 10 mov %cl,0x10(%esi) <== NOT EXECUTED
136f52: 89 d1 mov %edx,%ecx <== NOT EXECUTED
136f54: c1 e9 10 shr $0x10,%ecx <== NOT EXECUTED
136f57: 8b 70 18 mov 0x18(%eax),%esi <== NOT EXECUTED
136f5a: 88 4e 11 mov %cl,0x11(%esi) <== NOT EXECUTED
136f5d: 89 d1 mov %edx,%ecx <== NOT EXECUTED
136f5f: c1 e9 08 shr $0x8,%ecx <== NOT EXECUTED
136f62: 8b 70 18 mov 0x18(%eax),%esi <== NOT EXECUTED
136f65: 88 4e 12 mov %cl,0x12(%esi) <== NOT EXECUTED
136f68: 8b 48 18 mov 0x18(%eax),%ecx <== NOT EXECUTED
136f6b: 88 51 13 mov %dl,0x13(%ecx) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
136f6e: c6 40 1c 01 movb $0x1,0x1c(%eax) <== NOT EXECUTED
handle->shared->atime);
rtems_rfs_inode_set_mtime (&handle->shared->inode,
handle->shared->mtime);
136f72: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
/*
* @todo This could be clever and only update if different.
*/
rtems_rfs_inode_set_atime (&handle->shared->inode,
handle->shared->atime);
rtems_rfs_inode_set_mtime (&handle->shared->inode,
136f75: 8b 90 90 00 00 00 mov 0x90(%eax),%edx <== NOT EXECUTED
*/
static inline void
rtems_rfs_inode_set_mtime (rtems_rfs_inode_handle* handle,
rtems_rfs_time mtime)
{
rtems_rfs_write_u32 (&handle->node->mtime, mtime);
136f7b: 89 d1 mov %edx,%ecx <== NOT EXECUTED
136f7d: c1 e9 18 shr $0x18,%ecx <== NOT EXECUTED
136f80: 8b 70 18 mov 0x18(%eax),%esi <== NOT EXECUTED
136f83: 88 4e 14 mov %cl,0x14(%esi) <== NOT EXECUTED
136f86: 89 d1 mov %edx,%ecx <== NOT EXECUTED
136f88: c1 e9 10 shr $0x10,%ecx <== NOT EXECUTED
136f8b: 8b 70 18 mov 0x18(%eax),%esi <== NOT EXECUTED
136f8e: 88 4e 15 mov %cl,0x15(%esi) <== NOT EXECUTED
136f91: 89 d1 mov %edx,%ecx <== NOT EXECUTED
136f93: c1 e9 08 shr $0x8,%ecx <== NOT EXECUTED
136f96: 8b 70 18 mov 0x18(%eax),%esi <== NOT EXECUTED
136f99: 88 4e 16 mov %cl,0x16(%esi) <== NOT EXECUTED
136f9c: 8b 48 18 mov 0x18(%eax),%ecx <== NOT EXECUTED
136f9f: 88 51 17 mov %dl,0x17(%ecx) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
136fa2: c6 40 1c 01 movb $0x1,0x1c(%eax) <== NOT EXECUTED
handle->shared->mtime);
rtems_rfs_inode_set_ctime (&handle->shared->inode,
handle->shared->ctime);
136fa6: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
*/
rtems_rfs_inode_set_atime (&handle->shared->inode,
handle->shared->atime);
rtems_rfs_inode_set_mtime (&handle->shared->inode,
handle->shared->mtime);
rtems_rfs_inode_set_ctime (&handle->shared->inode,
136fa9: 8b 90 94 00 00 00 mov 0x94(%eax),%edx <== NOT EXECUTED
*/
static inline void
rtems_rfs_inode_set_ctime (rtems_rfs_inode_handle* handle,
rtems_rfs_time ctime)
{
rtems_rfs_write_u32 (&handle->node->ctime, ctime);
136faf: 89 d1 mov %edx,%ecx <== NOT EXECUTED
136fb1: c1 e9 18 shr $0x18,%ecx <== NOT EXECUTED
136fb4: 8b 70 18 mov 0x18(%eax),%esi <== NOT EXECUTED
136fb7: 88 4e 18 mov %cl,0x18(%esi) <== NOT EXECUTED
136fba: 89 d1 mov %edx,%ecx <== NOT EXECUTED
136fbc: c1 e9 10 shr $0x10,%ecx <== NOT EXECUTED
136fbf: 8b 70 18 mov 0x18(%eax),%esi <== NOT EXECUTED
136fc2: 88 4e 19 mov %cl,0x19(%esi) <== NOT EXECUTED
136fc5: 89 d1 mov %edx,%ecx <== NOT EXECUTED
136fc7: c1 e9 08 shr $0x8,%ecx <== NOT EXECUTED
136fca: 8b 70 18 mov 0x18(%eax),%esi <== NOT EXECUTED
136fcd: 88 4e 1a mov %cl,0x1a(%esi) <== NOT EXECUTED
136fd0: 8b 48 18 mov 0x18(%eax),%ecx <== NOT EXECUTED
136fd3: 88 51 1b mov %dl,0x1b(%ecx) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
136fd6: c6 40 1c 01 movb $0x1,0x1c(%eax) <== NOT EXECUTED
handle->shared->ctime);
if (!rtems_rfs_block_size_equal (&handle->shared->size,
136fda: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
136fdd: 8b 90 84 00 00 00 mov 0x84(%eax),%edx <== NOT EXECUTED
136fe3: 3b 50 3c cmp 0x3c(%eax),%edx <== NOT EXECUTED
136fe6: 75 0d jne 136ff5 <rtems_rfs_file_close+0x102><== NOT EXECUTED
136fe8: 8b 88 88 00 00 00 mov 0x88(%eax),%ecx <== NOT EXECUTED
136fee: 31 f6 xor %esi,%esi <== NOT EXECUTED
136ff0: 3b 48 40 cmp 0x40(%eax),%ecx <== NOT EXECUTED
136ff3: 74 12 je 137007 <rtems_rfs_file_close+0x114><== NOT EXECUTED
*/
static inline void
rtems_rfs_block_map_set_size (rtems_rfs_block_map* map,
rtems_rfs_block_size* size)
{
rtems_rfs_block_copy_size (&map->size, size);
136ff5: 89 50 3c mov %edx,0x3c(%eax) <== NOT EXECUTED
136ff8: 8b 90 88 00 00 00 mov 0x88(%eax),%edx <== NOT EXECUTED
136ffe: 89 50 40 mov %edx,0x40(%eax) <== NOT EXECUTED
map->dirty = true;
137001: c6 40 34 01 movb $0x1,0x34(%eax) <== NOT EXECUTED
137005: 31 f6 xor %esi,%esi <== NOT EXECUTED
&handle->shared->map.size))
rtems_rfs_block_map_set_size (&handle->shared->map,
&handle->shared->size);
}
rc = rtems_rfs_block_map_close (fs, &handle->shared->map);
137007: 51 push %ecx <== NOT EXECUTED
137008: 51 push %ecx <== NOT EXECUTED
137009: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
13700c: 83 c0 34 add $0x34,%eax <== NOT EXECUTED
13700f: 50 push %eax <== NOT EXECUTED
137010: 57 push %edi <== NOT EXECUTED
137011: e8 8c e5 ff ff call 1355a2 <rtems_rfs_block_map_close><== NOT EXECUTED
if (rc > 0)
137016: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
137019: 85 c0 test %eax,%eax <== NOT EXECUTED
13701b: 7e 06 jle 137023 <rtems_rfs_file_close+0x130><== NOT EXECUTED
{
if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_CLOSE))
printf ("rtems-rfs: file-close: map close error: ino=%" PRId32 ": %d: %s\n",
handle->shared->inode.ino, rc, strerror (rc));
if (rrc == 0)
13701d: 85 f6 test %esi,%esi <== NOT EXECUTED
13701f: 75 02 jne 137023 <rtems_rfs_file_close+0x130><== NOT EXECUTED
137021: 89 c6 mov %eax,%esi <== NOT EXECUTED
rrc = rc;
}
rc = rtems_rfs_inode_close (fs, &handle->shared->inode);
137023: 52 push %edx <== NOT EXECUTED
137024: 52 push %edx <== NOT EXECUTED
137025: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
137028: 83 c0 0c add $0xc,%eax <== NOT EXECUTED
13702b: 50 push %eax <== NOT EXECUTED
13702c: 57 push %edi <== NOT EXECUTED
13702d: e8 16 1b 00 00 call 138b48 <rtems_rfs_inode_close> <== NOT EXECUTED
if (rc > 0)
137032: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
137035: 85 c0 test %eax,%eax <== NOT EXECUTED
137037: 7e 06 jle 13703f <rtems_rfs_file_close+0x14c><== NOT EXECUTED
{
if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_CLOSE))
printf ("rtems-rfs: file-close: inode close error: ino=%" PRId32 ": %d: %s\n",
handle->shared->inode.ino, rc, strerror (rc));
if (rrc == 0)
137039: 85 f6 test %esi,%esi <== NOT EXECUTED
13703b: 75 02 jne 13703f <rtems_rfs_file_close+0x14c><== NOT EXECUTED
13703d: 89 c6 mov %eax,%esi <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void rtems_chain_extract(
rtems_chain_node *the_node
)
{
_Chain_Extract( the_node );
13703f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
137042: ff 73 1c pushl 0x1c(%ebx) <== NOT EXECUTED
137045: e8 4e a6 fd ff call 111698 <_Chain_Extract> <== NOT EXECUTED
rrc = rc;
}
rtems_chain_extract (&handle->shared->link);
free (handle->shared);
13704a: 58 pop %eax <== NOT EXECUTED
13704b: ff 73 1c pushl 0x1c(%ebx) <== NOT EXECUTED
13704e: e8 49 5e fd ff call 10ce9c <free> <== NOT EXECUTED
137053: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_close (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
rtems_rfs_buffer_handle_release (fs, handle);
137056: 51 push %ecx <== NOT EXECUTED
137057: 51 push %ecx <== NOT EXECUTED
137058: 8d 43 04 lea 0x4(%ebx),%eax <== NOT EXECUTED
13705b: 50 push %eax <== NOT EXECUTED
13705c: 57 push %edi <== NOT EXECUTED
13705d: e8 01 ea ff ff call 135a63 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
handle->dirty = false;
137062: c6 43 04 00 movb $0x0,0x4(%ebx) <== NOT EXECUTED
handle->bnum = 0;
137066: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx) <== NOT EXECUTED
handle->buffer = NULL;
13706d: c7 43 0c 00 00 00 00 movl $0x0,0xc(%ebx) <== NOT EXECUTED
{
if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_CLOSE))
printf ("rtems-rfs: file-close: result: %d: %s\n", rrc, strerror (rrc));
}
free (handle);
137074: 89 1c 24 mov %ebx,(%esp) <== NOT EXECUTED
137077: e8 20 5e fd ff call 10ce9c <free> <== NOT EXECUTED
return rrc;
}
13707c: 89 f0 mov %esi,%eax <== NOT EXECUTED
13707e: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
137081: 5b pop %ebx <== NOT EXECUTED
137082: 5e pop %esi <== NOT EXECUTED
137083: 5f pop %edi <== NOT EXECUTED
137084: c9 leave <== NOT EXECUTED
137085: c3 ret <== NOT EXECUTED
001368c0 <rtems_rfs_file_get_shared>:
}
rtems_rfs_file_shared*
rtems_rfs_file_get_shared (rtems_rfs_file_system* fs,
rtems_rfs_ino ino)
{
1368c0: 55 push %ebp <== NOT EXECUTED
1368c1: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1368c3: 53 push %ebx <== NOT EXECUTED
1368c4: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
1368c7: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(
Chain_Control *the_chain
)
{
return the_chain->first;
1368ca: 8b 50 70 mov 0x70(%eax),%edx <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
1368cd: 8d 48 74 lea 0x74(%eax),%ecx <== NOT EXECUTED
rtems_chain_node* node;
node = rtems_chain_first (&fs->file_shares);
while (!rtems_chain_is_tail (&fs->file_shares, node))
1368d0: eb 09 jmp 1368db <rtems_rfs_file_get_shared+0x1b><== NOT EXECUTED
{
rtems_rfs_file_shared* shared;
shared = (rtems_rfs_file_shared*) node;
1368d2: 89 d0 mov %edx,%eax <== NOT EXECUTED
if (shared->inode.ino == ino)
1368d4: 39 5a 14 cmp %ebx,0x14(%edx) <== NOT EXECUTED
1368d7: 74 08 je 1368e1 <rtems_rfs_file_get_shared+0x21><== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Next(
Chain_Node *the_node
)
{
return the_node->next;
1368d9: 8b 12 mov (%edx),%edx <== NOT EXECUTED
rtems_rfs_file_get_shared (rtems_rfs_file_system* fs,
rtems_rfs_ino ino)
{
rtems_chain_node* node;
node = rtems_chain_first (&fs->file_shares);
while (!rtems_chain_is_tail (&fs->file_shares, node))
1368db: 39 ca cmp %ecx,%edx <== NOT EXECUTED
1368dd: 75 f3 jne 1368d2 <rtems_rfs_file_get_shared+0x12><== NOT EXECUTED
1368df: 31 c0 xor %eax,%eax <== NOT EXECUTED
if (shared->inode.ino == ino)
return shared;
node = rtems_chain_next (node);
}
return NULL;
}
1368e1: 5b pop %ebx <== NOT EXECUTED
1368e2: c9 leave <== NOT EXECUTED
1368e3: c3 ret <== NOT EXECUTED
00136d93 <rtems_rfs_file_io_end>:
int
rtems_rfs_file_io_end (rtems_rfs_file_handle* handle,
size_t size,
bool read)
{
136d93: 55 push %ebp <== NOT EXECUTED
136d94: 89 e5 mov %esp,%ebp <== NOT EXECUTED
136d96: 57 push %edi <== NOT EXECUTED
136d97: 56 push %esi <== NOT EXECUTED
136d98: 53 push %ebx <== NOT EXECUTED
136d99: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
136d9c: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
136d9f: 8b 7d 0c mov 0xc(%ebp),%edi <== NOT EXECUTED
136da2: 8a 45 10 mov 0x10(%ebp),%al <== NOT EXECUTED
136da5: 88 45 e7 mov %al,-0x19(%ebp) <== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_IO))
printf ("rtems-rfs: file-io: end: %s size=%zu\n",
read ? "read" : "write", size);
if (rtems_rfs_buffer_handle_has_block (&handle->buffer))
136da8: 83 7b 0c 00 cmpl $0x0,0xc(%ebx) <== NOT EXECUTED
136dac: 74 5a je 136e08 <rtems_rfs_file_io_end+0x75><== NOT EXECUTED
{
if (!read)
136dae: 84 c0 test %al,%al <== NOT EXECUTED
136db0: 75 04 jne 136db6 <rtems_rfs_file_io_end+0x23><== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (rtems_rfs_file_buffer (handle));
136db2: c6 43 04 01 movb $0x1,0x4(%ebx) <== NOT EXECUTED
rc = rtems_rfs_buffer_handle_release (rtems_rfs_file_fs (handle),
136db6: 52 push %edx <== NOT EXECUTED
136db7: 52 push %edx <== NOT EXECUTED
136db8: 8d 43 04 lea 0x4(%ebx),%eax <== NOT EXECUTED
136dbb: 50 push %eax <== NOT EXECUTED
136dbc: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
136dbf: ff b0 98 00 00 00 pushl 0x98(%eax) <== NOT EXECUTED
136dc5: e8 99 ec ff ff call 135a63 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
136dca: 89 c6 mov %eax,%esi <== NOT EXECUTED
rtems_rfs_file_buffer (handle));
if (rc > 0)
136dcc: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
136dcf: 85 c0 test %eax,%eax <== NOT EXECUTED
136dd1: 7e 37 jle 136e0a <rtems_rfs_file_io_end+0x77><== NOT EXECUTED
{
printf (
136dd3: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
136dd6: 50 push %eax <== NOT EXECUTED
136dd7: e8 e0 cb 00 00 call 1439bc <strerror> <== NOT EXECUTED
136ddc: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
136ddf: ba db 45 15 00 mov $0x1545db,%edx <== NOT EXECUTED
136de4: 80 7d e7 00 cmpb $0x0,-0x19(%ebp) <== NOT EXECUTED
136de8: 75 05 jne 136def <rtems_rfs_file_io_end+0x5c><== NOT EXECUTED
136dea: ba b5 47 15 00 mov $0x1547b5,%edx <== NOT EXECUTED
136def: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
136df2: 50 push %eax <== NOT EXECUTED
136df3: 56 push %esi <== NOT EXECUTED
136df4: 57 push %edi <== NOT EXECUTED
136df5: 52 push %edx <== NOT EXECUTED
136df6: 68 4b e2 15 00 push $0x15e24b <== NOT EXECUTED
136dfb: e8 34 b1 00 00 call 141f34 <printf> <== NOT EXECUTED
"rtems-rfs: file-io: end: error on release: %s size=%zu: %d: %s\n",
read ? "read" : "write", size, rc, strerror (rc));
return rc;
136e00: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
136e03: e9 e1 00 00 00 jmp 136ee9 <rtems_rfs_file_io_end+0x156><== NOT EXECUTED
136e08: 31 f6 xor %esi,%esi <== NOT EXECUTED
* increase the block number and adjust the offset.
*
* If we are the last block and the position is past the current size update
* the size with the new length. The map holds the block count.
*/
handle->bpos.boff += size;
136e0a: 03 7b 14 add 0x14(%ebx),%edi <== NOT EXECUTED
136e0d: 89 7b 14 mov %edi,0x14(%ebx) <== NOT EXECUTED
if (handle->bpos.boff >=
rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle)))
136e10: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
136e13: 8b 80 98 00 00 00 mov 0x98(%eax),%eax <== NOT EXECUTED
136e19: 3b 78 08 cmp 0x8(%eax),%edi <== NOT EXECUTED
136e1c: 72 09 jb 136e27 <rtems_rfs_file_io_end+0x94><== NOT EXECUTED
{
handle->bpos.bno++;
136e1e: ff 43 10 incl 0x10(%ebx) <== NOT EXECUTED
handle->bpos.boff -= rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle));
136e21: 2b 78 08 sub 0x8(%eax),%edi <== NOT EXECUTED
136e24: 89 7b 14 mov %edi,0x14(%ebx) <== NOT EXECUTED
}
length = false;
mtime = false;
if (!read &&
136e27: 80 7d e7 00 cmpb $0x0,-0x19(%ebp) <== NOT EXECUTED
136e2b: 75 3c jne 136e69 <rtems_rfs_file_io_end+0xd6><== NOT EXECUTED
rtems_rfs_block_map_past_end (rtems_rfs_file_map (handle),
136e2d: 8b 43 10 mov 0x10(%ebx),%eax <== NOT EXECUTED
}
length = false;
mtime = false;
if (!read &&
136e30: 85 c0 test %eax,%eax <== NOT EXECUTED
136e32: 74 09 je 136e3d <rtems_rfs_file_io_end+0xaa><== NOT EXECUTED
rtems_rfs_block_map_past_end (rtems_rfs_file_map (handle),
136e34: 8b 53 1c mov 0x1c(%ebx),%edx <== NOT EXECUTED
136e37: 83 7a 3c 00 cmpl $0x0,0x3c(%edx) <== NOT EXECUTED
136e3b: 74 17 je 136e54 <rtems_rfs_file_io_end+0xc1><== NOT EXECUTED
136e3d: 8b 53 1c mov 0x1c(%ebx),%edx <== NOT EXECUTED
136e40: 8b 4a 3c mov 0x3c(%edx),%ecx <== NOT EXECUTED
}
length = false;
mtime = false;
if (!read &&
136e43: 39 c8 cmp %ecx,%eax <== NOT EXECUTED
136e45: 73 0d jae 136e54 <rtems_rfs_file_io_end+0xc1><== NOT EXECUTED
136e47: 49 dec %ecx <== NOT EXECUTED
136e48: 39 c8 cmp %ecx,%eax <== NOT EXECUTED
136e4a: 75 1d jne 136e69 <rtems_rfs_file_io_end+0xd6><== NOT EXECUTED
rtems_rfs_block_map_past_end (rtems_rfs_file_map (handle),
136e4c: 8b 43 14 mov 0x14(%ebx),%eax <== NOT EXECUTED
136e4f: 3b 42 40 cmp 0x40(%edx),%eax <== NOT EXECUTED
136e52: 76 15 jbe 136e69 <rtems_rfs_file_io_end+0xd6><== NOT EXECUTED
rtems_rfs_file_bpos (handle)))
{
rtems_rfs_block_map_set_size_offset (rtems_rfs_file_map (handle),
136e54: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
*/
static inline void
rtems_rfs_block_map_set_size_offset (rtems_rfs_block_map* map,
rtems_rfs_block_off offset)
{
map->size.offset = offset;
136e57: 8b 53 14 mov 0x14(%ebx),%edx <== NOT EXECUTED
136e5a: 89 50 40 mov %edx,0x40(%eax) <== NOT EXECUTED
map->dirty = true;
136e5d: c6 40 34 01 movb $0x1,0x34(%eax) <== NOT EXECUTED
136e61: c6 45 e6 01 movb $0x1,-0x1a(%ebp) <== NOT EXECUTED
136e65: b1 01 mov $0x1,%cl <== NOT EXECUTED
136e67: eb 06 jmp 136e6f <rtems_rfs_file_io_end+0xdc><== NOT EXECUTED
136e69: c6 45 e6 00 movb $0x0,-0x1a(%ebp) <== NOT EXECUTED
136e6d: 31 c9 xor %ecx,%ecx <== NOT EXECUTED
handle->bpos.boff);
length = true;
mtime = true;
}
atime = rtems_rfs_file_update_atime (handle);
136e6f: 8b 03 mov (%ebx),%eax <== NOT EXECUTED
136e71: 89 c2 mov %eax,%edx <== NOT EXECUTED
136e73: 83 f2 01 xor $0x1,%edx <== NOT EXECUTED
136e76: 83 e2 01 and $0x1,%edx <== NOT EXECUTED
136e79: 88 55 e5 mov %dl,-0x1b(%ebp) <== NOT EXECUTED
mtime = rtems_rfs_file_update_mtime (handle) && mtime;
136e7c: 31 d2 xor %edx,%edx <== NOT EXECUTED
136e7e: a8 02 test $0x2,%al <== NOT EXECUTED
136e80: 75 03 jne 136e85 <rtems_rfs_file_io_end+0xf2><== NOT EXECUTED
136e82: 0f b6 d1 movzbl %cl,%edx <== NOT EXECUTED
length = rtems_rfs_file_update_length (handle) && length;
136e85: 31 ff xor %edi,%edi <== NOT EXECUTED
136e87: a8 04 test $0x4,%al <== NOT EXECUTED
136e89: 75 04 jne 136e8f <rtems_rfs_file_io_end+0xfc><== NOT EXECUTED
136e8b: 0f b6 7d e6 movzbl -0x1a(%ebp),%edi <== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_IO))
printf ("rtems-rfs: file-io: end: pos=%" PRIu32 ":%" PRIu32 " %c %c %c\n",
handle->bpos.bno, handle->bpos.boff,
atime ? 'A' : '-', mtime ? 'M' : '-', length ? 'L' : '-');
if (atime || mtime)
136e8f: 80 7d e5 00 cmpb $0x0,-0x1b(%ebp) <== NOT EXECUTED
136e93: 75 04 jne 136e99 <rtems_rfs_file_io_end+0x106><== NOT EXECUTED
136e95: 84 d2 test %dl,%dl <== NOT EXECUTED
136e97: 74 37 je 136ed0 <rtems_rfs_file_io_end+0x13d><== NOT EXECUTED
{
time_t now = time (NULL);
136e99: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
136e9c: 6a 00 push $0x0 <== NOT EXECUTED
136e9e: 88 55 e0 mov %dl,-0x20(%ebp) <== NOT EXECUTED
136ea1: e8 4a 1e 01 00 call 148cf0 <time> <== NOT EXECUTED
if (read && atime)
136ea6: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
136ea9: 80 7d e7 00 cmpb $0x0,-0x19(%ebp) <== NOT EXECUTED
136ead: 8a 55 e0 mov -0x20(%ebp),%dl <== NOT EXECUTED
136eb0: 74 11 je 136ec3 <rtems_rfs_file_io_end+0x130><== NOT EXECUTED
136eb2: 80 7d e5 00 cmpb $0x0,-0x1b(%ebp) <== NOT EXECUTED
136eb6: 74 18 je 136ed0 <rtems_rfs_file_io_end+0x13d><== NOT EXECUTED
handle->shared->atime = now;
136eb8: 8b 53 1c mov 0x1c(%ebx),%edx <== NOT EXECUTED
136ebb: 89 82 8c 00 00 00 mov %eax,0x8c(%edx) <== NOT EXECUTED
136ec1: eb 0d jmp 136ed0 <rtems_rfs_file_io_end+0x13d><== NOT EXECUTED
if (!read && mtime)
136ec3: 84 d2 test %dl,%dl <== NOT EXECUTED
136ec5: 74 09 je 136ed0 <rtems_rfs_file_io_end+0x13d><== NOT EXECUTED
handle->shared->mtime = now;
136ec7: 8b 53 1c mov 0x1c(%ebx),%edx <== NOT EXECUTED
136eca: 89 82 90 00 00 00 mov %eax,0x90(%edx) <== NOT EXECUTED
}
if (length)
136ed0: 85 ff test %edi,%edi <== NOT EXECUTED
136ed2: 74 15 je 136ee9 <rtems_rfs_file_io_end+0x156><== NOT EXECUTED
{
handle->shared->size.count =
rtems_rfs_block_map_count (rtems_rfs_file_map (handle));
136ed4: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
if (!read && mtime)
handle->shared->mtime = now;
}
if (length)
{
handle->shared->size.count =
136ed7: 8b 50 3c mov 0x3c(%eax),%edx <== NOT EXECUTED
136eda: 89 90 84 00 00 00 mov %edx,0x84(%eax) <== NOT EXECUTED
rtems_rfs_block_map_count (rtems_rfs_file_map (handle));
handle->shared->size.offset =
136ee0: 8b 50 40 mov 0x40(%eax),%edx <== NOT EXECUTED
136ee3: 89 90 88 00 00 00 mov %edx,0x88(%eax) <== NOT EXECUTED
rtems_rfs_block_map_size_offset (rtems_rfs_file_map (handle));
}
return rc;
}
136ee9: 89 f0 mov %esi,%eax <== NOT EXECUTED
136eeb: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
136eee: 5b pop %ebx <== NOT EXECUTED
136eef: 5e pop %esi <== NOT EXECUTED
136ef0: 5f pop %edi <== NOT EXECUTED
136ef1: c9 leave <== NOT EXECUTED
136ef2: c3 ret <== NOT EXECUTED
001369f4 <rtems_rfs_file_io_release>:
return rc;
}
int
rtems_rfs_file_io_release (rtems_rfs_file_handle* handle)
{
1369f4: 55 push %ebp <== NOT EXECUTED
1369f5: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1369f7: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
1369fa: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
int rc = 0;
if (rtems_rfs_buffer_handle_has_block (&handle->buffer))
1369fd: 31 c0 xor %eax,%eax <== NOT EXECUTED
1369ff: 83 7a 0c 00 cmpl $0x0,0xc(%edx) <== NOT EXECUTED
136a03: 74 17 je 136a1c <rtems_rfs_file_io_release+0x28><== NOT EXECUTED
rc = rtems_rfs_buffer_handle_release (rtems_rfs_file_fs (handle),
136a05: 50 push %eax <== NOT EXECUTED
136a06: 50 push %eax <== NOT EXECUTED
136a07: 8d 42 04 lea 0x4(%edx),%eax <== NOT EXECUTED
136a0a: 50 push %eax <== NOT EXECUTED
136a0b: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED
136a0e: ff b0 98 00 00 00 pushl 0x98(%eax) <== NOT EXECUTED
136a14: e8 4a f0 ff ff call 135a63 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
136a19: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_rfs_file_buffer (handle));
return rc;
}
136a1c: c9 leave <== NOT EXECUTED
136a1d: c3 ret <== NOT EXECUTED
001368e4 <rtems_rfs_file_io_start>:
int
rtems_rfs_file_io_start (rtems_rfs_file_handle* handle,
size_t* available,
bool read)
{
1368e4: 55 push %ebp <== NOT EXECUTED
1368e5: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1368e7: 57 push %edi <== NOT EXECUTED
1368e8: 56 push %esi <== NOT EXECUTED
1368e9: 53 push %ebx <== NOT EXECUTED
1368ea: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED
1368ed: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
1368f0: 8b 75 0c mov 0xc(%ebp),%esi <== NOT EXECUTED
1368f3: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
1368f6: 89 45 d4 mov %eax,-0x2c(%ebp) <== NOT EXECUTED
1368f9: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_IO))
printf ("rtems-rfs: file-io: start: %s pos=%" PRIu32 ":%" PRIu32 "\n",
read ? "read" : "write", handle->bpos.bno, handle->bpos.boff);
if (!rtems_rfs_buffer_handle_has_block (&handle->buffer))
1368fb: 83 7b 0c 00 cmpl $0x0,0xc(%ebx) <== NOT EXECUTED
1368ff: 0f 85 af 00 00 00 jne 1369b4 <rtems_rfs_file_io_start+0xd0><== NOT EXECUTED
int rc;
request_read = read;
rc = rtems_rfs_block_map_find (rtems_rfs_file_fs (handle),
rtems_rfs_file_map (handle),
136905: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
bool request_read;
int rc;
request_read = read;
rc = rtems_rfs_block_map_find (rtems_rfs_file_fs (handle),
136908: 8d 55 e4 lea -0x1c(%ebp),%edx <== NOT EXECUTED
13690b: 52 push %edx <== NOT EXECUTED
13690c: 8d 4b 10 lea 0x10(%ebx),%ecx <== NOT EXECUTED
13690f: 51 push %ecx <== NOT EXECUTED
136910: 8d 48 34 lea 0x34(%eax),%ecx <== NOT EXECUTED
136913: 51 push %ecx <== NOT EXECUTED
136914: ff b0 98 00 00 00 pushl 0x98(%eax) <== NOT EXECUTED
13691a: 89 55 d0 mov %edx,-0x30(%ebp) <== NOT EXECUTED
13691d: e8 42 e4 ff ff call 134d64 <rtems_rfs_block_map_find><== NOT EXECUTED
rtems_rfs_file_map (handle),
rtems_rfs_file_bpos (handle),
&block);
if (rc > 0)
136922: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
136925: 85 c0 test %eax,%eax <== NOT EXECUTED
136927: 8b 55 d0 mov -0x30(%ebp),%edx <== NOT EXECUTED
13692a: 7e 43 jle 13696f <rtems_rfs_file_io_start+0x8b><== NOT EXECUTED
{
/*
* Has the read reached the EOF ?
*/
if (read && (rc == ENXIO))
13692c: 89 f9 mov %edi,%ecx <== NOT EXECUTED
13692e: 84 c9 test %cl,%cl <== NOT EXECUTED
136930: 74 16 je 136948 <rtems_rfs_file_io_start+0x64><== NOT EXECUTED
136932: 83 f8 06 cmp $0x6,%eax <== NOT EXECUTED
136935: 0f 85 b1 00 00 00 jne 1369ec <rtems_rfs_file_io_start+0x108><== NOT EXECUTED
{
*available = 0;
13693b: c7 06 00 00 00 00 movl $0x0,(%esi) <== NOT EXECUTED
136941: 30 c0 xor %al,%al <== NOT EXECUTED
return 0;
136943: e9 a4 00 00 00 jmp 1369ec <rtems_rfs_file_io_start+0x108><== NOT EXECUTED
}
if (rc != ENXIO)
136948: 83 f8 06 cmp $0x6,%eax <== NOT EXECUTED
13694b: 0f 85 9b 00 00 00 jne 1369ec <rtems_rfs_file_io_start+0x108><== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_IO))
printf ("rtems-rfs: file-io: start: grow\n");
rc = rtems_rfs_block_map_grow (rtems_rfs_file_fs (handle),
rtems_rfs_file_map (handle),
136951: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
return rc;
if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_IO))
printf ("rtems-rfs: file-io: start: grow\n");
rc = rtems_rfs_block_map_grow (rtems_rfs_file_fs (handle),
136954: 52 push %edx <== NOT EXECUTED
136955: 6a 01 push $0x1 <== NOT EXECUTED
136957: 8d 50 34 lea 0x34(%eax),%edx <== NOT EXECUTED
13695a: 52 push %edx <== NOT EXECUTED
13695b: ff b0 98 00 00 00 pushl 0x98(%eax) <== NOT EXECUTED
136961: e8 a4 e9 ff ff call 13530a <rtems_rfs_block_map_grow><== NOT EXECUTED
rtems_rfs_file_map (handle),
1, &block);
if (rc > 0)
136966: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
136969: 85 c0 test %eax,%eax <== NOT EXECUTED
13696b: 7f 7f jg 1369ec <rtems_rfs_file_io_start+0x108><== NOT EXECUTED
13696d: eb 1f jmp 13698e <rtems_rfs_file_io_start+0xaa><== NOT EXECUTED
/*
* If this is a write check if the write starts within a block or the
* amount of data is less than a block size. If it is read the block
* rather than getting a block to fill.
*/
if (!read &&
13696f: 8a 45 d4 mov -0x2c(%ebp),%al <== NOT EXECUTED
136972: 89 fa mov %edi,%edx <== NOT EXECUTED
136974: 84 d2 test %dl,%dl <== NOT EXECUTED
136976: 75 1c jne 136994 <rtems_rfs_file_io_start+0xb0><== NOT EXECUTED
(rtems_rfs_file_block_offset (handle) ||
136978: 83 7b 14 00 cmpl $0x0,0x14(%ebx) <== NOT EXECUTED
13697c: 75 14 jne 136992 <rtems_rfs_file_io_start+0xae><== NOT EXECUTED
(*available < rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle)))))
13697e: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
136981: 8b 80 98 00 00 00 mov 0x98(%eax),%eax <== NOT EXECUTED
136987: 8b 16 mov (%esi),%edx <== NOT EXECUTED
136989: 3b 50 08 cmp 0x8(%eax),%edx <== NOT EXECUTED
13698c: 72 04 jb 136992 <rtems_rfs_file_io_start+0xae><== NOT EXECUTED
13698e: 31 c0 xor %eax,%eax <== NOT EXECUTED
136990: eb 02 jmp 136994 <rtems_rfs_file_io_start+0xb0><== NOT EXECUTED
136992: b0 01 mov $0x1,%al <== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_IO))
printf ("rtems-rfs: file-io: start: block=%" PRIu32 " request-read=%s\n",
block, request_read ? "yes" : "no");
rc = rtems_rfs_buffer_handle_request (rtems_rfs_file_fs (handle),
136994: 0f b6 c0 movzbl %al,%eax <== NOT EXECUTED
136997: 50 push %eax <== NOT EXECUTED
136998: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
13699b: 8d 43 04 lea 0x4(%ebx),%eax <== NOT EXECUTED
13699e: 50 push %eax <== NOT EXECUTED
13699f: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
1369a2: ff b0 98 00 00 00 pushl 0x98(%eax) <== NOT EXECUTED
1369a8: e8 ad f1 ff ff call 135b5a <rtems_rfs_buffer_handle_request><== NOT EXECUTED
rtems_rfs_file_buffer (handle),
block, request_read);
if (rc > 0)
1369ad: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1369b0: 85 c0 test %eax,%eax <== NOT EXECUTED
1369b2: 7f 38 jg 1369ec <rtems_rfs_file_io_start+0x108><== NOT EXECUTED
return rc;
}
if (read
1369b4: 89 f9 mov %edi,%ecx <== NOT EXECUTED
1369b6: 84 c9 test %cl,%cl <== NOT EXECUTED
1369b8: 74 1f je 1369d9 <rtems_rfs_file_io_start+0xf5><== NOT EXECUTED
&& rtems_rfs_block_map_last (rtems_rfs_file_map (handle))
1369ba: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
1369bd: 8b 50 44 mov 0x44(%eax),%edx <== NOT EXECUTED
block, request_read);
if (rc > 0)
return rc;
}
if (read
1369c0: 85 d2 test %edx,%edx <== NOT EXECUTED
1369c2: 75 06 jne 1369ca <rtems_rfs_file_io_start+0xe6><== NOT EXECUTED
&& rtems_rfs_block_map_last (rtems_rfs_file_map (handle))
1369c4: 83 78 3c 00 cmpl $0x0,0x3c(%eax) <== NOT EXECUTED
1369c8: 74 08 je 1369d2 <rtems_rfs_file_io_start+0xee><== NOT EXECUTED
block, request_read);
if (rc > 0)
return rc;
}
if (read
1369ca: 8b 48 3c mov 0x3c(%eax),%ecx <== NOT EXECUTED
1369cd: 49 dec %ecx <== NOT EXECUTED
1369ce: 39 ca cmp %ecx,%edx <== NOT EXECUTED
1369d0: 75 07 jne 1369d9 <rtems_rfs_file_io_start+0xf5><== NOT EXECUTED
&& rtems_rfs_block_map_last (rtems_rfs_file_map (handle))
&& rtems_rfs_block_map_size_offset (rtems_rfs_file_map (handle)))
1369d2: 8b 40 40 mov 0x40(%eax),%eax <== NOT EXECUTED
block, request_read);
if (rc > 0)
return rc;
}
if (read
1369d5: 85 c0 test %eax,%eax <== NOT EXECUTED
1369d7: 75 0c jne 1369e5 <rtems_rfs_file_io_start+0x101><== NOT EXECUTED
&& rtems_rfs_block_map_last (rtems_rfs_file_map (handle))
&& rtems_rfs_block_map_size_offset (rtems_rfs_file_map (handle)))
size = rtems_rfs_block_map_size_offset (rtems_rfs_file_map (handle));
else
size = rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle));
1369d9: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
1369dc: 8b 80 98 00 00 00 mov 0x98(%eax),%eax <== NOT EXECUTED
1369e2: 8b 40 08 mov 0x8(%eax),%eax <== NOT EXECUTED
*available = size - rtems_rfs_file_block_offset (handle);
1369e5: 2b 43 14 sub 0x14(%ebx),%eax <== NOT EXECUTED
1369e8: 89 06 mov %eax,(%esi) <== NOT EXECUTED
1369ea: 31 c0 xor %eax,%eax <== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_IO))
printf ("rtems-rfs: file-io: start: available=%zu (%zu)\n",
*available, size);
return 0;
}
1369ec: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1369ef: 5b pop %ebx <== NOT EXECUTED
1369f0: 5e pop %esi <== NOT EXECUTED
1369f1: 5f pop %edi <== NOT EXECUTED
1369f2: c9 leave <== NOT EXECUTED
1369f3: c3 ret <== NOT EXECUTED
00137086 <rtems_rfs_file_open>:
int
rtems_rfs_file_open (rtems_rfs_file_system* fs,
rtems_rfs_ino ino,
uint32_t flags,
rtems_rfs_file_handle** file)
{
137086: 55 push %ebp <== NOT EXECUTED
137087: 89 e5 mov %esp,%ebp <== NOT EXECUTED
137089: 57 push %edi <== NOT EXECUTED
13708a: 56 push %esi <== NOT EXECUTED
13708b: 53 push %ebx <== NOT EXECUTED
13708c: 83 ec 28 sub $0x28,%esp <== NOT EXECUTED
int rc;
if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_OPEN))
printf ("rtems-rfs: file-open: ino=%" PRId32 "\n", ino);
*file = NULL;
13708f: 8b 45 14 mov 0x14(%ebp),%eax <== NOT EXECUTED
137092: c7 00 00 00 00 00 movl $0x0,(%eax) <== NOT EXECUTED
/*
* Allocate a new handle and initialise it. Do this before we deal with the
* shared node data so we do not have to be concerned with reference
* counting.
*/
handle = malloc (sizeof (rtems_rfs_file_handle));
137098: 6a 20 push $0x20 <== NOT EXECUTED
13709a: e8 49 63 fd ff call 10d3e8 <malloc> <== NOT EXECUTED
13709f: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (!handle)
1370a1: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1370a4: bf 0c 00 00 00 mov $0xc,%edi <== NOT EXECUTED
1370a9: 85 c0 test %eax,%eax <== NOT EXECUTED
1370ab: 0f 84 fb 01 00 00 je 1372ac <rtems_rfs_file_open+0x226><== NOT EXECUTED
return ENOMEM;
memset (handle, 0, sizeof (rtems_rfs_file_handle));
1370b1: b9 08 00 00 00 mov $0x8,%ecx <== NOT EXECUTED
1370b6: 31 c0 xor %eax,%eax <== NOT EXECUTED
1370b8: 89 f7 mov %esi,%edi <== NOT EXECUTED
1370ba: f3 ab rep stos %eax,%es:(%edi) <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(
Chain_Control *the_chain
)
{
return the_chain->first;
1370bc: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
1370bf: 8b 42 70 mov 0x70(%edx),%eax <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
1370c2: 83 c2 74 add $0x74,%edx <== NOT EXECUTED
1370c5: eb 0c jmp 1370d3 <rtems_rfs_file_open+0x4d><== NOT EXECUTED
rtems_chain_node* node;
node = rtems_chain_first (&fs->file_shares);
while (!rtems_chain_is_tail (&fs->file_shares, node))
{
rtems_rfs_file_shared* shared;
shared = (rtems_rfs_file_shared*) node;
1370c7: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (shared->inode.ino == ino)
1370c9: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED
1370cc: 39 48 14 cmp %ecx,0x14(%eax) <== NOT EXECUTED
1370cf: 74 08 je 1370d9 <rtems_rfs_file_open+0x53><== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Next(
Chain_Node *the_node
)
{
return the_node->next;
1370d1: 8b 00 mov (%eax),%eax <== NOT EXECUTED
rtems_rfs_file_get_shared (rtems_rfs_file_system* fs,
rtems_rfs_ino ino)
{
rtems_chain_node* node;
node = rtems_chain_first (&fs->file_shares);
while (!rtems_chain_is_tail (&fs->file_shares, node))
1370d3: 39 d0 cmp %edx,%eax <== NOT EXECUTED
1370d5: 75 f0 jne 1370c7 <rtems_rfs_file_open+0x41><== NOT EXECUTED
1370d7: eb 08 jmp 1370e1 <rtems_rfs_file_open+0x5b><== NOT EXECUTED
* the reference count and return the pointer to the data.
*/
shared = rtems_rfs_file_get_shared (fs, ino);
if (shared)
{
shared->references++;
1370d9: ff 40 08 incl 0x8(%eax) <== NOT EXECUTED
1370dc: e9 bc 01 00 00 jmp 13729d <rtems_rfs_file_open+0x217><== NOT EXECUTED
{
/*
* None exists so create. Copy in the shared parts of the inode we hold in
* memory.
*/
shared = malloc (sizeof (rtems_rfs_file_shared));
1370e1: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1370e4: 68 9c 00 00 00 push $0x9c <== NOT EXECUTED
1370e9: e8 fa 62 fd ff call 10d3e8 <malloc> <== NOT EXECUTED
1370ee: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (!shared)
1370f0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1370f3: 85 c0 test %eax,%eax <== NOT EXECUTED
1370f5: 75 32 jne 137129 <rtems_rfs_file_open+0xa3><== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_close (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
rtems_rfs_buffer_handle_release (fs, handle);
1370f7: 51 push %ecx <== NOT EXECUTED
1370f8: 51 push %ecx <== NOT EXECUTED
1370f9: 8d 46 04 lea 0x4(%esi),%eax <== NOT EXECUTED
1370fc: 50 push %eax <== NOT EXECUTED
1370fd: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
137100: e8 5e e9 ff ff call 135a63 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
handle->dirty = false;
137105: c6 46 04 00 movb $0x0,0x4(%esi) <== NOT EXECUTED
handle->bnum = 0;
137109: c7 46 08 00 00 00 00 movl $0x0,0x8(%esi) <== NOT EXECUTED
handle->buffer = NULL;
137110: c7 46 0c 00 00 00 00 movl $0x0,0xc(%esi) <== NOT EXECUTED
{
rtems_rfs_buffer_handle_close (fs, &handle->buffer);
free (handle);
137117: 89 34 24 mov %esi,(%esp) <== NOT EXECUTED
13711a: e8 7d 5d fd ff call 10ce9c <free> <== NOT EXECUTED
13711f: bf 0c 00 00 00 mov $0xc,%edi <== NOT EXECUTED
137124: e9 82 00 00 00 jmp 1371ab <rtems_rfs_file_open+0x125><== NOT EXECUTED
return ENOMEM;
}
memset (shared, 0, sizeof (rtems_rfs_file_shared));
137129: b9 27 00 00 00 mov $0x27,%ecx <== NOT EXECUTED
13712e: 31 c0 xor %eax,%eax <== NOT EXECUTED
137130: 89 df mov %ebx,%edi <== NOT EXECUTED
137132: f3 ab rep stos %eax,%es:(%edi) <== NOT EXECUTED
rc = rtems_rfs_inode_open (fs, ino, &shared->inode, true);
137134: 8d 43 0c lea 0xc(%ebx),%eax <== NOT EXECUTED
137137: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
13713a: 6a 01 push $0x1 <== NOT EXECUTED
13713c: 50 push %eax <== NOT EXECUTED
13713d: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
137140: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
137143: e8 6f 1a 00 00 call 138bb7 <rtems_rfs_inode_open> <== NOT EXECUTED
137148: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc > 0)
13714a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13714d: 85 c0 test %eax,%eax <== NOT EXECUTED
13714f: 7e 05 jle 137156 <rtems_rfs_file_open+0xd0><== NOT EXECUTED
{
if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_OPEN))
printf ("rtems-rfs: file-open: inode open failed: %d: %s\n",
rc, strerror (rc));
free (shared);
137151: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
137154: eb 27 jmp 13717d <rtems_rfs_file_open+0xf7><== NOT EXECUTED
rtems_rfs_buffer_handle_close (fs, &handle->buffer);
free (handle);
return rc;
}
rc = rtems_rfs_block_map_open (fs, &shared->inode, &shared->map);
137156: 52 push %edx <== NOT EXECUTED
137157: 8d 43 34 lea 0x34(%ebx),%eax <== NOT EXECUTED
13715a: 50 push %eax <== NOT EXECUTED
13715b: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
13715e: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
137161: e8 df e5 ff ff call 135745 <rtems_rfs_block_map_open><== NOT EXECUTED
137166: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc > 0)
137168: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13716b: 85 c0 test %eax,%eax <== NOT EXECUTED
13716d: 7e 44 jle 1371b3 <rtems_rfs_file_open+0x12d><== NOT EXECUTED
{
if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_OPEN))
printf ("rtems-rfs: file-open: block map open failed: %d: %s\n",
rc, strerror (rc));
rtems_rfs_inode_close (fs, &shared->inode);
13716f: 50 push %eax <== NOT EXECUTED
137170: 50 push %eax <== NOT EXECUTED
137171: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
137174: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
137177: e8 cc 19 00 00 call 138b48 <rtems_rfs_inode_close> <== NOT EXECUTED
free (shared);
13717c: 59 pop %ecx <== NOT EXECUTED
13717d: 53 push %ebx <== NOT EXECUTED
13717e: e8 19 5d fd ff call 10ce9c <free> <== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_close (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
rtems_rfs_buffer_handle_release (fs, handle);
137183: 58 pop %eax <== NOT EXECUTED
137184: 5a pop %edx <== NOT EXECUTED
137185: 8d 46 04 lea 0x4(%esi),%eax <== NOT EXECUTED
137188: 50 push %eax <== NOT EXECUTED
137189: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
13718c: e8 d2 e8 ff ff call 135a63 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
handle->dirty = false;
137191: c6 46 04 00 movb $0x0,0x4(%esi) <== NOT EXECUTED
handle->bnum = 0;
137195: c7 46 08 00 00 00 00 movl $0x0,0x8(%esi) <== NOT EXECUTED
handle->buffer = NULL;
13719c: c7 46 0c 00 00 00 00 movl $0x0,0xc(%esi) <== NOT EXECUTED
rtems_rfs_buffer_handle_close (fs, &handle->buffer);
free (handle);
1371a3: 89 34 24 mov %esi,(%esp) <== NOT EXECUTED
1371a6: e8 f1 5c fd ff call 10ce9c <free> <== NOT EXECUTED
return rc;
1371ab: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1371ae: e9 f9 00 00 00 jmp 1372ac <rtems_rfs_file_open+0x226><== NOT EXECUTED
}
shared->references = 1;
1371b3: c7 43 08 01 00 00 00 movl $0x1,0x8(%ebx) <== NOT EXECUTED
* @return uint32_t The block count.
*/
static inline uint32_t
rtems_rfs_inode_get_block_count (rtems_rfs_inode_handle* handle)
{
return rtems_rfs_read_u32 (&handle->node->block_count);
1371ba: 8b 43 18 mov 0x18(%ebx),%eax <== NOT EXECUTED
1371bd: 8d 78 0c lea 0xc(%eax),%edi <== NOT EXECUTED
shared->size.count = rtems_rfs_inode_get_block_count (&shared->inode);
1371c0: 0f b6 57 03 movzbl 0x3(%edi),%edx <== NOT EXECUTED
1371c4: 0f b6 48 0c movzbl 0xc(%eax),%ecx <== NOT EXECUTED
1371c8: c1 e1 18 shl $0x18,%ecx <== NOT EXECUTED
1371cb: 09 ca or %ecx,%edx <== NOT EXECUTED
1371cd: 0f b6 4f 01 movzbl 0x1(%edi),%ecx <== NOT EXECUTED
1371d1: c1 e1 10 shl $0x10,%ecx <== NOT EXECUTED
1371d4: 09 ca or %ecx,%edx <== NOT EXECUTED
1371d6: 0f b6 4f 02 movzbl 0x2(%edi),%ecx <== NOT EXECUTED
1371da: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
1371dd: 09 ca or %ecx,%edx <== NOT EXECUTED
1371df: 89 93 84 00 00 00 mov %edx,0x84(%ebx) <== NOT EXECUTED
shared->size.offset = rtems_rfs_inode_get_block_offset (&shared->inode);
1371e5: 0f b6 48 0a movzbl 0xa(%eax),%ecx <== NOT EXECUTED
1371e9: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
1371ec: 0f b6 50 0b movzbl 0xb(%eax),%edx <== NOT EXECUTED
1371f0: 09 ca or %ecx,%edx <== NOT EXECUTED
1371f2: 0f b7 d2 movzwl %dx,%edx <== NOT EXECUTED
1371f5: 89 93 88 00 00 00 mov %edx,0x88(%ebx) <== NOT EXECUTED
* @return rtems_rfs_time The atime.
*/
static inline rtems_rfs_time
rtems_rfs_inode_get_atime (rtems_rfs_inode_handle* handle)
{
return rtems_rfs_read_u32 (&handle->node->atime);
1371fb: 8d 78 10 lea 0x10(%eax),%edi <== NOT EXECUTED
shared->atime = rtems_rfs_inode_get_atime (&shared->inode);
1371fe: 0f b6 57 03 movzbl 0x3(%edi),%edx <== NOT EXECUTED
137202: 0f b6 48 10 movzbl 0x10(%eax),%ecx <== NOT EXECUTED
137206: c1 e1 18 shl $0x18,%ecx <== NOT EXECUTED
137209: 09 ca or %ecx,%edx <== NOT EXECUTED
13720b: 0f b6 4f 01 movzbl 0x1(%edi),%ecx <== NOT EXECUTED
13720f: c1 e1 10 shl $0x10,%ecx <== NOT EXECUTED
137212: 09 ca or %ecx,%edx <== NOT EXECUTED
137214: 0f b6 4f 02 movzbl 0x2(%edi),%ecx <== NOT EXECUTED
137218: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
13721b: 09 ca or %ecx,%edx <== NOT EXECUTED
13721d: 89 93 8c 00 00 00 mov %edx,0x8c(%ebx) <== NOT EXECUTED
* @return rtems_rfs_time The mtime.
*/
static inline rtems_rfs_time
rtems_rfs_inode_get_mtime (rtems_rfs_inode_handle* handle)
{
return rtems_rfs_read_u32 (&handle->node->mtime);
137223: 8d 78 14 lea 0x14(%eax),%edi <== NOT EXECUTED
shared->mtime = rtems_rfs_inode_get_mtime (&shared->inode);
137226: 0f b6 57 03 movzbl 0x3(%edi),%edx <== NOT EXECUTED
13722a: 0f b6 48 14 movzbl 0x14(%eax),%ecx <== NOT EXECUTED
13722e: c1 e1 18 shl $0x18,%ecx <== NOT EXECUTED
137231: 09 ca or %ecx,%edx <== NOT EXECUTED
137233: 0f b6 4f 01 movzbl 0x1(%edi),%ecx <== NOT EXECUTED
137237: c1 e1 10 shl $0x10,%ecx <== NOT EXECUTED
13723a: 09 ca or %ecx,%edx <== NOT EXECUTED
13723c: 0f b6 4f 02 movzbl 0x2(%edi),%ecx <== NOT EXECUTED
137240: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
137243: 09 ca or %ecx,%edx <== NOT EXECUTED
137245: 89 93 90 00 00 00 mov %edx,0x90(%ebx) <== NOT EXECUTED
* @return rtems_rfs_time The ctime.
*/
static inline rtems_rfs_time
rtems_rfs_inode_get_ctime (rtems_rfs_inode_handle* handle)
{
return rtems_rfs_read_u32 (&handle->node->ctime);
13724b: 8d 48 18 lea 0x18(%eax),%ecx <== NOT EXECUTED
shared->ctime = rtems_rfs_inode_get_ctime (&shared->inode);
13724e: 0f b6 51 03 movzbl 0x3(%ecx),%edx <== NOT EXECUTED
137252: 0f b6 40 18 movzbl 0x18(%eax),%eax <== NOT EXECUTED
137256: c1 e0 18 shl $0x18,%eax <== NOT EXECUTED
137259: 09 c2 or %eax,%edx <== NOT EXECUTED
13725b: 0f b6 41 01 movzbl 0x1(%ecx),%eax <== NOT EXECUTED
13725f: c1 e0 10 shl $0x10,%eax <== NOT EXECUTED
137262: 09 c2 or %eax,%edx <== NOT EXECUTED
137264: 0f b6 41 02 movzbl 0x2(%ecx),%eax <== NOT EXECUTED
137268: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
13726b: 09 c2 or %eax,%edx <== NOT EXECUTED
13726d: 89 93 94 00 00 00 mov %edx,0x94(%ebx) <== NOT EXECUTED
shared->fs = fs;
137273: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
137276: 89 93 98 00 00 00 mov %edx,0x98(%ebx) <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void rtems_chain_append(
rtems_chain_control *the_chain,
rtems_chain_node *the_node
)
{
_Chain_Append( the_chain, the_node );
13727c: 57 push %edi <== NOT EXECUTED
13727d: 57 push %edi <== NOT EXECUTED
13727e: 53 push %ebx <== NOT EXECUTED
13727f: 89 d0 mov %edx,%eax <== NOT EXECUTED
137281: 83 c0 70 add $0x70,%eax <== NOT EXECUTED
137284: 50 push %eax <== NOT EXECUTED
137285: e8 ea a3 fd ff call 111674 <_Chain_Append> <== NOT EXECUTED
rtems_chain_append (&fs->file_shares, &shared->link);
rtems_rfs_inode_unload (fs, &shared->inode, false);
13728a: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
13728d: 6a 00 push $0x0 <== NOT EXECUTED
13728f: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
137292: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
137295: e8 22 18 00 00 call 138abc <rtems_rfs_inode_unload><== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_OPEN))
13729a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
printf ("rtems-rfs: file-open: ino=%" PRId32 " share created\n", ino);
}
handle->flags = flags;
13729d: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
1372a0: 89 06 mov %eax,(%esi) <== NOT EXECUTED
handle->shared = shared;
1372a2: 89 5e 1c mov %ebx,0x1c(%esi) <== NOT EXECUTED
*file = handle;
1372a5: 8b 4d 14 mov 0x14(%ebp),%ecx <== NOT EXECUTED
1372a8: 89 31 mov %esi,(%ecx) <== NOT EXECUTED
1372aa: 31 ff xor %edi,%edi <== NOT EXECUTED
return 0;
}
1372ac: 89 f8 mov %edi,%eax <== NOT EXECUTED
1372ae: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1372b1: 5b pop %ebx <== NOT EXECUTED
1372b2: 5e pop %esi <== NOT EXECUTED
1372b3: 5f pop %edi <== NOT EXECUTED
1372b4: c9 leave <== NOT EXECUTED
1372b5: c3 ret <== NOT EXECUTED
00136cde <rtems_rfs_file_seek>:
int
rtems_rfs_file_seek (rtems_rfs_file_handle* handle,
rtems_rfs_pos pos,
rtems_rfs_pos* new_pos)
{
136cde: 55 push %ebp <== NOT EXECUTED
136cdf: 89 e5 mov %esp,%ebp <== NOT EXECUTED
136ce1: 57 push %edi <== NOT EXECUTED
136ce2: 56 push %esi <== NOT EXECUTED
136ce3: 53 push %ebx <== NOT EXECUTED
136ce4: 83 ec 34 sub $0x34,%esp <== NOT EXECUTED
136ce7: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
136cea: 8b 75 0c mov 0xc(%ebp),%esi <== NOT EXECUTED
136ced: 8b 7d 10 mov 0x10(%ebp),%edi <== NOT EXECUTED
* file, this function does not itself extend the size of the file."
*
* This means the file needs to set the file size to the pos only when a
* write occurs.
*/
if (pos < rtems_rfs_file_shared_get_size (rtems_rfs_file_fs (handle),
136cf0: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
136cf3: 8d 90 84 00 00 00 lea 0x84(%eax),%edx <== NOT EXECUTED
136cf9: 52 push %edx <== NOT EXECUTED
136cfa: ff b0 98 00 00 00 pushl 0x98(%eax) <== NOT EXECUTED
136d00: e8 95 df ff ff call 134c9a <rtems_rfs_block_get_size><== NOT EXECUTED
136d05: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
136d08: 39 d7 cmp %edx,%edi <== NOT EXECUTED
136d0a: 77 65 ja 136d71 <rtems_rfs_file_seek+0x93><== NOT EXECUTED
136d0c: 72 04 jb 136d12 <rtems_rfs_file_seek+0x34><== NOT EXECUTED
136d0e: 39 c6 cmp %eax,%esi <== NOT EXECUTED
136d10: 73 5f jae 136d71 <rtems_rfs_file_seek+0x93><== NOT EXECUTED
handle->shared))
{
rtems_rfs_file_set_bpos (handle, pos);
136d12: 8d 53 10 lea 0x10(%ebx),%edx <== NOT EXECUTED
136d15: 52 push %edx <== NOT EXECUTED
136d16: 57 push %edi <== NOT EXECUTED
136d17: 56 push %esi <== NOT EXECUTED
136d18: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
136d1b: ff b0 98 00 00 00 pushl 0x98(%eax) <== NOT EXECUTED
136d21: 89 55 d4 mov %edx,-0x2c(%ebp) <== NOT EXECUTED
136d24: e8 bb de ff ff call 134be4 <rtems_rfs_block_get_bpos><== NOT EXECUTED
/*
* If the file has a block check if it maps to the current position and it
* does not release it. That will force us to get the block at the new
* position when the I/O starts.
*/
if (rtems_rfs_buffer_handle_has_block (&handle->buffer))
136d29: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
136d2c: 83 7b 0c 00 cmpl $0x0,0xc(%ebx) <== NOT EXECUTED
136d30: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED
136d33: 74 4c je 136d81 <rtems_rfs_file_seek+0xa3><== NOT EXECUTED
{
rtems_rfs_buffer_block block;
int rc;
rc = rtems_rfs_block_map_find (rtems_rfs_file_fs (handle),
rtems_rfs_file_map (handle),
136d35: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
if (rtems_rfs_buffer_handle_has_block (&handle->buffer))
{
rtems_rfs_buffer_block block;
int rc;
rc = rtems_rfs_block_map_find (rtems_rfs_file_fs (handle),
136d38: 8d 4d e4 lea -0x1c(%ebp),%ecx <== NOT EXECUTED
136d3b: 51 push %ecx <== NOT EXECUTED
136d3c: 52 push %edx <== NOT EXECUTED
136d3d: 8d 50 34 lea 0x34(%eax),%edx <== NOT EXECUTED
136d40: 52 push %edx <== NOT EXECUTED
136d41: ff b0 98 00 00 00 pushl 0x98(%eax) <== NOT EXECUTED
136d47: e8 18 e0 ff ff call 134d64 <rtems_rfs_block_map_find><== NOT EXECUTED
rtems_rfs_file_map (handle),
rtems_rfs_file_bpos (handle),
&block);
if (rc > 0)
136d4c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
136d4f: 85 c0 test %eax,%eax <== NOT EXECUTED
136d51: 7f 38 jg 136d8b <rtems_rfs_file_seek+0xad><== NOT EXECUTED
return rc;
if (rtems_rfs_buffer_bnum (&handle->buffer) != block)
136d53: 8b 43 08 mov 0x8(%ebx),%eax <== NOT EXECUTED
136d56: 3b 45 e4 cmp -0x1c(%ebp),%eax <== NOT EXECUTED
136d59: 74 26 je 136d81 <rtems_rfs_file_seek+0xa3><== NOT EXECUTED
{
rc = rtems_rfs_buffer_handle_release (rtems_rfs_file_fs (handle),
136d5b: 50 push %eax <== NOT EXECUTED
136d5c: 50 push %eax <== NOT EXECUTED
136d5d: 8d 43 04 lea 0x4(%ebx),%eax <== NOT EXECUTED
136d60: 50 push %eax <== NOT EXECUTED
136d61: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
136d64: ff b0 98 00 00 00 pushl 0x98(%eax) <== NOT EXECUTED
136d6a: e8 f4 ec ff ff call 135a63 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
136d6f: eb 09 jmp 136d7a <rtems_rfs_file_seek+0x9c><== NOT EXECUTED
{
/*
* The seek is outside the current file so release any buffer. A write will
* extend the file.
*/
int rc = rtems_rfs_file_io_release (handle);
136d71: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
136d74: 53 push %ebx <== NOT EXECUTED
136d75: e8 7a fc ff ff call 1369f4 <rtems_rfs_file_io_release><== NOT EXECUTED
if (rc > 0)
136d7a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
136d7d: 85 c0 test %eax,%eax <== NOT EXECUTED
136d7f: 7f 0a jg 136d8b <rtems_rfs_file_seek+0xad><== NOT EXECUTED
return rc;
}
*new_pos = pos;
136d81: 8b 45 14 mov 0x14(%ebp),%eax <== NOT EXECUTED
136d84: 89 30 mov %esi,(%eax) <== NOT EXECUTED
136d86: 89 78 04 mov %edi,0x4(%eax) <== NOT EXECUTED
136d89: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
}
136d8b: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
136d8e: 5b pop %ebx <== NOT EXECUTED
136d8f: 5e pop %esi <== NOT EXECUTED
136d90: 5f pop %edi <== NOT EXECUTED
136d91: c9 leave <== NOT EXECUTED
136d92: c3 ret <== NOT EXECUTED
00136a1e <rtems_rfs_file_set_size>:
}
int
rtems_rfs_file_set_size (rtems_rfs_file_handle* handle,
rtems_rfs_pos new_size)
{
136a1e: 55 push %ebp <== NOT EXECUTED
136a1f: 89 e5 mov %esp,%ebp <== NOT EXECUTED
136a21: 57 push %edi <== NOT EXECUTED
136a22: 56 push %esi <== NOT EXECUTED
136a23: 53 push %ebx <== NOT EXECUTED
136a24: 83 ec 44 sub $0x44,%esp <== NOT EXECUTED
136a27: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
136a2a: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
136a2d: 89 45 d0 mov %eax,-0x30(%ebp) <== NOT EXECUTED
136a30: 89 55 d4 mov %edx,-0x2c(%ebp) <== NOT EXECUTED
rtems_rfs_block_map* map = rtems_rfs_file_map (handle);
136a33: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
136a36: 8b 72 1c mov 0x1c(%edx),%esi <== NOT EXECUTED
136a39: 8d 86 84 00 00 00 lea 0x84(%esi),%eax <== NOT EXECUTED
136a3f: 50 push %eax <== NOT EXECUTED
136a40: ff b6 98 00 00 00 pushl 0x98(%esi) <== NOT EXECUTED
136a46: e8 4f e2 ff ff call 134c9a <rtems_rfs_block_get_size><== NOT EXECUTED
/*
* If the file is same size do nothing else grow or shrink it ?
*
* If the file does not change size do not update the times.
*/
if (size != new_size)
136a4b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
136a4e: 3b 55 d4 cmp -0x2c(%ebp),%edx <== NOT EXECUTED
136a51: 75 09 jne 136a5c <rtems_rfs_file_set_size+0x3e><== NOT EXECUTED
136a53: 3b 45 d0 cmp -0x30(%ebp),%eax <== NOT EXECUTED
136a56: 0f 84 78 02 00 00 je 136cd4 <rtems_rfs_file_set_size+0x2b6><== NOT EXECUTED
int
rtems_rfs_file_set_size (rtems_rfs_file_handle* handle,
rtems_rfs_pos new_size)
{
rtems_rfs_block_map* map = rtems_rfs_file_map (handle);
136a5c: 8d 4e 34 lea 0x34(%esi),%ecx <== NOT EXECUTED
136a5f: 89 4d c4 mov %ecx,-0x3c(%ebp) <== NOT EXECUTED
if (size != new_size)
{
/*
* Short cut for the common truncate on open call.
*/
if (new_size == 0)
136a62: 8b 5d d4 mov -0x2c(%ebp),%ebx <== NOT EXECUTED
136a65: 0b 5d d0 or -0x30(%ebp),%ebx <== NOT EXECUTED
136a68: 75 24 jne 136a8e <rtems_rfs_file_set_size+0x70><== NOT EXECUTED
{
rc = rtems_rfs_block_map_free_all (rtems_rfs_file_fs (handle), map);
136a6a: 53 push %ebx <== NOT EXECUTED
136a6b: 53 push %ebx <== NOT EXECUTED
136a6c: 51 push %ecx <== NOT EXECUTED
136a6d: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
136a70: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED
136a73: ff b0 98 00 00 00 pushl 0x98(%eax) <== NOT EXECUTED
136a79: e8 94 e7 ff ff call 135212 <rtems_rfs_block_map_free_all><== NOT EXECUTED
if (rc > 0)
136a7e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
136a81: 85 c0 test %eax,%eax <== NOT EXECUTED
136a83: 0f 8f 4d 02 00 00 jg 136cd6 <rtems_rfs_file_set_size+0x2b8><== NOT EXECUTED
136a89: e9 12 02 00 00 jmp 136ca0 <rtems_rfs_file_set_size+0x282><== NOT EXECUTED
return rc;
}
else
{
if (size < new_size)
136a8e: 3b 55 d4 cmp -0x2c(%ebp),%edx <== NOT EXECUTED
136a91: 0f 87 52 01 00 00 ja 136be9 <rtems_rfs_file_set_size+0x1cb><== NOT EXECUTED
136a97: 72 09 jb 136aa2 <rtems_rfs_file_set_size+0x84><== NOT EXECUTED
136a99: 3b 45 d0 cmp -0x30(%ebp),%eax <== NOT EXECUTED
136a9c: 0f 83 47 01 00 00 jae 136be9 <rtems_rfs_file_set_size+0x1cb><== NOT EXECUTED
*/
rtems_rfs_pos count;
uint32_t length;
bool read_block;
count = new_size - size;
136aa2: 8b 4d d0 mov -0x30(%ebp),%ecx <== NOT EXECUTED
136aa5: 8b 5d d4 mov -0x2c(%ebp),%ebx <== NOT EXECUTED
136aa8: 29 c1 sub %eax,%ecx <== NOT EXECUTED
136aaa: 19 d3 sbb %edx,%ebx <== NOT EXECUTED
136aac: 89 4d d0 mov %ecx,-0x30(%ebp) <== NOT EXECUTED
136aaf: 89 5d d4 mov %ebx,-0x2c(%ebp) <== NOT EXECUTED
length = rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle));
136ab2: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
136ab5: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
136ab8: 8b 80 98 00 00 00 mov 0x98(%eax),%eax <== NOT EXECUTED
136abe: 8b 40 08 mov 0x8(%eax),%eax <== NOT EXECUTED
136ac1: 89 45 c8 mov %eax,-0x38(%ebp) <== NOT EXECUTED
}
/*
* Only read the block if the length is not the block size.
*/
rc = rtems_rfs_buffer_handle_request (rtems_rfs_file_fs (handle),
136ac4: 83 c3 04 add $0x4,%ebx <== NOT EXECUTED
136ac7: 89 5d bc mov %ebx,-0x44(%ebp) <== NOT EXECUTED
136aca: c6 45 c3 00 movb $0x0,-0x3d(%ebp) <== NOT EXECUTED
136ace: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
count = new_size - size;
length = rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle));
read_block = false;
while (count)
136ad1: e9 ff 00 00 00 jmp 136bd5 <rtems_rfs_file_set_size+0x1b7><== NOT EXECUTED
/*
* Get the block position for the current end of the file as seen by
* the map. If not found and the EOF grow the map then fill the block
* with 0.
*/
rtems_rfs_block_size_get_bpos (rtems_rfs_block_map_size (map), &bpos);
136ad6: 8b 46 3c mov 0x3c(%esi),%eax <== NOT EXECUTED
136ad9: 89 45 d8 mov %eax,-0x28(%ebp) <== NOT EXECUTED
136adc: 8b 56 40 mov 0x40(%esi),%edx <== NOT EXECUTED
136adf: 89 55 dc mov %edx,-0x24(%ebp) <== NOT EXECUTED
136ae2: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp) <== NOT EXECUTED
136ae9: 85 d2 test %edx,%edx <== NOT EXECUTED
136aeb: 74 04 je 136af1 <rtems_rfs_file_set_size+0xd3><== NOT EXECUTED
136aed: 48 dec %eax <== NOT EXECUTED
136aee: 89 45 d8 mov %eax,-0x28(%ebp) <== NOT EXECUTED
rc = rtems_rfs_block_map_find (rtems_rfs_file_fs (handle),
136af1: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
136af4: 50 push %eax <== NOT EXECUTED
136af5: 8d 55 d8 lea -0x28(%ebp),%edx <== NOT EXECUTED
136af8: 52 push %edx <== NOT EXECUTED
136af9: ff 75 c4 pushl -0x3c(%ebp) <== NOT EXECUTED
136afc: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
136aff: ff b0 98 00 00 00 pushl 0x98(%eax) <== NOT EXECUTED
136b05: e8 5a e2 ff ff call 134d64 <rtems_rfs_block_map_find><== NOT EXECUTED
map, &bpos, &block);
if (rc > 0)
136b0a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
136b0d: 85 c0 test %eax,%eax <== NOT EXECUTED
136b0f: 7e 2b jle 136b3c <rtems_rfs_file_set_size+0x11e><== NOT EXECUTED
{
/*
* Have we reached the EOF ?
*/
if (rc != ENXIO)
136b11: 83 f8 06 cmp $0x6,%eax <== NOT EXECUTED
136b14: 0f 85 bc 01 00 00 jne 136cd6 <rtems_rfs_file_set_size+0x2b8><== NOT EXECUTED
return rc;
rc = rtems_rfs_block_map_grow (rtems_rfs_file_fs (handle),
136b1a: 8d 4d e4 lea -0x1c(%ebp),%ecx <== NOT EXECUTED
136b1d: 51 push %ecx <== NOT EXECUTED
136b1e: 6a 01 push $0x1 <== NOT EXECUTED
136b20: ff 75 c4 pushl -0x3c(%ebp) <== NOT EXECUTED
136b23: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
136b26: ff b0 98 00 00 00 pushl 0x98(%eax) <== NOT EXECUTED
136b2c: e8 d9 e7 ff ff call 13530a <rtems_rfs_block_map_grow><== NOT EXECUTED
map, 1, &block);
if (rc > 0)
136b31: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
136b34: 85 c0 test %eax,%eax <== NOT EXECUTED
136b36: 0f 8f 9a 01 00 00 jg 136cd6 <rtems_rfs_file_set_size+0x2b8><== NOT EXECUTED
return rc;
}
if (count < (length - bpos.boff))
136b3c: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED
136b3f: 8b 55 c8 mov -0x38(%ebp),%edx <== NOT EXECUTED
136b42: 29 c2 sub %eax,%edx <== NOT EXECUTED
136b44: 83 7d d4 00 cmpl $0x0,-0x2c(%ebp) <== NOT EXECUTED
136b48: 77 18 ja 136b62 <rtems_rfs_file_set_size+0x144><== NOT EXECUTED
136b4a: 39 55 d0 cmp %edx,-0x30(%ebp) <== NOT EXECUTED
136b4d: 73 13 jae 136b62 <rtems_rfs_file_set_size+0x144><== NOT EXECUTED
{
length = count + bpos.boff;
136b4f: 03 45 d0 add -0x30(%ebp),%eax <== NOT EXECUTED
136b52: 89 45 c8 mov %eax,-0x38(%ebp) <== NOT EXECUTED
*/
static inline void
rtems_rfs_block_map_set_size_offset (rtems_rfs_block_map* map,
rtems_rfs_block_off offset)
{
map->size.offset = offset;
136b55: 89 46 40 mov %eax,0x40(%esi) <== NOT EXECUTED
map->dirty = true;
136b58: c6 46 34 01 movb $0x1,0x34(%esi) <== NOT EXECUTED
136b5c: c6 45 c3 01 movb $0x1,-0x3d(%ebp) <== NOT EXECUTED
136b60: eb 0b jmp 136b6d <rtems_rfs_file_set_size+0x14f><== NOT EXECUTED
*/
static inline void
rtems_rfs_block_map_set_size_offset (rtems_rfs_block_map* map,
rtems_rfs_block_off offset)
{
map->size.offset = offset;
136b62: c7 46 40 00 00 00 00 movl $0x0,0x40(%esi) <== NOT EXECUTED
map->dirty = true;
136b69: c6 46 34 01 movb $0x1,0x34(%esi) <== NOT EXECUTED
}
/*
* Only read the block if the length is not the block size.
*/
rc = rtems_rfs_buffer_handle_request (rtems_rfs_file_fs (handle),
136b6d: 0f b6 45 c3 movzbl -0x3d(%ebp),%eax <== NOT EXECUTED
136b71: 50 push %eax <== NOT EXECUTED
136b72: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
136b75: ff 75 bc pushl -0x44(%ebp) <== NOT EXECUTED
136b78: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
136b7b: ff b0 98 00 00 00 pushl 0x98(%eax) <== NOT EXECUTED
136b81: e8 d4 ef ff ff call 135b5a <rtems_rfs_buffer_handle_request><== NOT EXECUTED
rtems_rfs_file_buffer (handle),
block, read_block);
if (rc > 0)
136b86: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
136b89: 85 c0 test %eax,%eax <== NOT EXECUTED
136b8b: 0f 8f 45 01 00 00 jg 136cd6 <rtems_rfs_file_set_size+0x2b8><== NOT EXECUTED
return rc;
dst = rtems_rfs_buffer_data (&handle->buffer);
memset (dst + bpos.boff, 0, length - bpos.boff);
136b91: 8b 55 dc mov -0x24(%ebp),%edx <== NOT EXECUTED
136b94: 8b 4d c8 mov -0x38(%ebp),%ecx <== NOT EXECUTED
136b97: 29 d1 sub %edx,%ecx <== NOT EXECUTED
136b99: 8b 43 0c mov 0xc(%ebx),%eax <== NOT EXECUTED
136b9c: 03 50 20 add 0x20(%eax),%edx <== NOT EXECUTED
136b9f: 31 c0 xor %eax,%eax <== NOT EXECUTED
136ba1: 89 d7 mov %edx,%edi <== NOT EXECUTED
136ba3: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (rtems_rfs_file_buffer (handle));
136ba5: c6 43 04 01 movb $0x1,0x4(%ebx) <== NOT EXECUTED
rc = rtems_rfs_buffer_handle_release (rtems_rfs_file_fs (handle),
136ba9: 51 push %ecx <== NOT EXECUTED
136baa: 51 push %ecx <== NOT EXECUTED
136bab: ff 75 bc pushl -0x44(%ebp) <== NOT EXECUTED
136bae: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
136bb1: ff b0 98 00 00 00 pushl 0x98(%eax) <== NOT EXECUTED
136bb7: e8 a7 ee ff ff call 135a63 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
rtems_rfs_file_buffer (handle));
if (rc > 0)
136bbc: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
136bbf: 85 c0 test %eax,%eax <== NOT EXECUTED
136bc1: 0f 8f 0f 01 00 00 jg 136cd6 <rtems_rfs_file_set_size+0x2b8><== NOT EXECUTED
return rc;
count -= length - bpos.boff;
136bc7: 8b 45 c8 mov -0x38(%ebp),%eax <== NOT EXECUTED
136bca: 2b 45 dc sub -0x24(%ebp),%eax <== NOT EXECUTED
136bcd: 31 d2 xor %edx,%edx <== NOT EXECUTED
136bcf: 29 45 d0 sub %eax,-0x30(%ebp) <== NOT EXECUTED
136bd2: 19 55 d4 sbb %edx,-0x2c(%ebp) <== NOT EXECUTED
count = new_size - size;
length = rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle));
read_block = false;
while (count)
136bd5: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED
136bd8: 0b 45 d0 or -0x30(%ebp),%eax <== NOT EXECUTED
136bdb: 0f 85 f5 fe ff ff jne 136ad6 <rtems_rfs_file_set_size+0xb8><== NOT EXECUTED
136be1: 89 5d 08 mov %ebx,0x8(%ebp) <== NOT EXECUTED
136be4: e9 b7 00 00 00 jmp 136ca0 <rtems_rfs_file_set_size+0x282><== NOT EXECUTED
uint32_t offset;
blocks =
rtems_rfs_block_map_count (map) -
(((new_size - 1) /
rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle))) + 1);
136be9: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
136bec: 8b 4a 1c mov 0x1c(%edx),%ecx <== NOT EXECUTED
136bef: 8b b9 98 00 00 00 mov 0x98(%ecx),%edi <== NOT EXECUTED
rtems_rfs_block_no blocks;
uint32_t offset;
blocks =
rtems_rfs_block_map_count (map) -
(((new_size - 1) /
136bf5: 8b 47 08 mov 0x8(%edi),%eax <== NOT EXECUTED
136bf8: 31 d2 xor %edx,%edx <== NOT EXECUTED
136bfa: 89 45 c8 mov %eax,-0x38(%ebp) <== NOT EXECUTED
136bfd: 89 55 cc mov %edx,-0x34(%ebp) <== NOT EXECUTED
* Shrink
*/
rtems_rfs_block_no blocks;
uint32_t offset;
blocks =
136c00: 8b 45 d0 mov -0x30(%ebp),%eax <== NOT EXECUTED
136c03: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED
136c06: 83 c0 ff add $0xffffffff,%eax <== NOT EXECUTED
136c09: 83 d2 ff adc $0xffffffff,%edx <== NOT EXECUTED
136c0c: ff 75 cc pushl -0x34(%ebp) <== NOT EXECUTED
136c0f: ff 75 c8 pushl -0x38(%ebp) <== NOT EXECUTED
136c12: 52 push %edx <== NOT EXECUTED
136c13: 50 push %eax <== NOT EXECUTED
136c14: 89 4d b8 mov %ecx,-0x48(%ebp) <== NOT EXECUTED
136c17: e8 dc d0 01 00 call 153cf8 <__udivdi3> <== NOT EXECUTED
136c1c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
136c1f: f7 d0 not %eax <== NOT EXECUTED
rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle))) + 1);
offset =
new_size % rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle));
if (blocks)
136c21: 03 46 3c add 0x3c(%esi),%eax <== NOT EXECUTED
136c24: 8b 4d b8 mov -0x48(%ebp),%ecx <== NOT EXECUTED
136c27: 74 17 je 136c40 <rtems_rfs_file_set_size+0x222><== NOT EXECUTED
{
int rc;
rc = rtems_rfs_block_map_shrink (rtems_rfs_file_fs (handle),
136c29: 52 push %edx <== NOT EXECUTED
136c2a: 50 push %eax <== NOT EXECUTED
136c2b: 8d 41 34 lea 0x34(%ecx),%eax <== NOT EXECUTED
136c2e: 50 push %eax <== NOT EXECUTED
136c2f: 57 push %edi <== NOT EXECUTED
136c30: e8 60 e3 ff ff call 134f95 <rtems_rfs_block_map_shrink><== NOT EXECUTED
rtems_rfs_file_map (handle),
blocks);
if (rc > 0)
136c35: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
136c38: 85 c0 test %eax,%eax <== NOT EXECUTED
136c3a: 0f 8f 96 00 00 00 jg 136cd6 <rtems_rfs_file_set_size+0x2b8><== NOT EXECUTED
blocks =
rtems_rfs_block_map_count (map) -
(((new_size - 1) /
rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle))) + 1);
offset =
136c40: ff 75 cc pushl -0x34(%ebp) <== NOT EXECUTED
136c43: ff 75 c8 pushl -0x38(%ebp) <== NOT EXECUTED
136c46: ff 75 d4 pushl -0x2c(%ebp) <== NOT EXECUTED
136c49: ff 75 d0 pushl -0x30(%ebp) <== NOT EXECUTED
136c4c: e8 b7 d1 01 00 call 153e08 <__umoddi3> <== NOT EXECUTED
136c51: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
*/
static inline void
rtems_rfs_block_map_set_size_offset (rtems_rfs_block_map* map,
rtems_rfs_block_off offset)
{
map->size.offset = offset;
136c54: 89 46 40 mov %eax,0x40(%esi) <== NOT EXECUTED
map->dirty = true;
136c57: c6 46 34 01 movb $0x1,0x34(%esi) <== NOT EXECUTED
return rc;
}
rtems_rfs_block_map_set_size_offset (map, offset);
if (rtems_rfs_block_pos_past_end (rtems_rfs_file_bpos (handle),
136c5b: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
136c5e: 8b 51 10 mov 0x10(%ecx),%edx <== NOT EXECUTED
136c61: 85 d2 test %edx,%edx <== NOT EXECUTED
136c63: 74 06 je 136c6b <rtems_rfs_file_set_size+0x24d><== NOT EXECUTED
int
rtems_rfs_file_set_size (rtems_rfs_file_handle* handle,
rtems_rfs_pos new_size)
{
rtems_rfs_block_map* map = rtems_rfs_file_map (handle);
136c65: 83 7e 3c 00 cmpl $0x0,0x3c(%esi) <== NOT EXECUTED
136c69: 74 14 je 136c7f <rtems_rfs_file_set_size+0x261><== NOT EXECUTED
return rc;
}
rtems_rfs_block_map_set_size_offset (map, offset);
if (rtems_rfs_block_pos_past_end (rtems_rfs_file_bpos (handle),
136c6b: 8b 4e 3c mov 0x3c(%esi),%ecx <== NOT EXECUTED
136c6e: 39 ca cmp %ecx,%edx <== NOT EXECUTED
136c70: 73 0d jae 136c7f <rtems_rfs_file_set_size+0x261><== NOT EXECUTED
136c72: 49 dec %ecx <== NOT EXECUTED
136c73: 39 ca cmp %ecx,%edx <== NOT EXECUTED
136c75: 75 29 jne 136ca0 <rtems_rfs_file_set_size+0x282><== NOT EXECUTED
136c77: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
136c7a: 39 43 14 cmp %eax,0x14(%ebx) <== NOT EXECUTED
136c7d: 76 21 jbe 136ca0 <rtems_rfs_file_set_size+0x282><== NOT EXECUTED
rtems_rfs_block_map_size (map)))
rtems_rfs_block_size_get_bpos (rtems_rfs_block_map_size (map),
136c7f: 8b 46 3c mov 0x3c(%esi),%eax <== NOT EXECUTED
136c82: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
136c85: 89 42 10 mov %eax,0x10(%edx) <== NOT EXECUTED
136c88: 8b 56 40 mov 0x40(%esi),%edx <== NOT EXECUTED
136c8b: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
136c8e: 89 51 14 mov %edx,0x14(%ecx) <== NOT EXECUTED
136c91: c7 41 18 00 00 00 00 movl $0x0,0x18(%ecx) <== NOT EXECUTED
136c98: 85 d2 test %edx,%edx <== NOT EXECUTED
136c9a: 74 04 je 136ca0 <rtems_rfs_file_set_size+0x282><== NOT EXECUTED
136c9c: 48 dec %eax <== NOT EXECUTED
136c9d: 89 41 10 mov %eax,0x10(%ecx) <== NOT EXECUTED
rtems_rfs_file_bpos (handle));
}
}
handle->shared->size.count = rtems_rfs_block_map_count (map);
136ca0: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
136ca3: 8b 7b 1c mov 0x1c(%ebx),%edi <== NOT EXECUTED
136ca6: 8b 46 3c mov 0x3c(%esi),%eax <== NOT EXECUTED
136ca9: 89 87 84 00 00 00 mov %eax,0x84(%edi) <== NOT EXECUTED
handle->shared->size.offset = rtems_rfs_block_map_size_offset (map);
136caf: 8b 46 40 mov 0x40(%esi),%eax <== NOT EXECUTED
136cb2: 89 87 88 00 00 00 mov %eax,0x88(%edi) <== NOT EXECUTED
if (rtems_rfs_file_update_mtime (handle))
136cb8: f6 03 02 testb $0x2,(%ebx) <== NOT EXECUTED
136cbb: 75 17 jne 136cd4 <rtems_rfs_file_set_size+0x2b6><== NOT EXECUTED
handle->shared->mtime = time (NULL);
136cbd: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
136cc0: 6a 00 push $0x0 <== NOT EXECUTED
136cc2: e8 29 20 01 00 call 148cf0 <time> <== NOT EXECUTED
136cc7: 89 87 90 00 00 00 mov %eax,0x90(%edi) <== NOT EXECUTED
136ccd: 31 c0 xor %eax,%eax <== NOT EXECUTED
136ccf: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
136cd2: eb 02 jmp 136cd6 <rtems_rfs_file_set_size+0x2b8><== NOT EXECUTED
136cd4: 31 c0 xor %eax,%eax <== NOT EXECUTED
}
return 0;
}
136cd6: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
136cd9: 5b pop %ebx <== NOT EXECUTED
136cda: 5e pop %esi <== NOT EXECUTED
136cdb: 5f pop %edi <== NOT EXECUTED
136cdc: c9 leave <== NOT EXECUTED
136cdd: c3 ret <== NOT EXECUTED
00137800 <rtems_rfs_format>:
return rc;
}
int
rtems_rfs_format (const char* name, const rtems_rfs_format_config* config)
{
137800: 55 push %ebp <== NOT EXECUTED
137801: 89 e5 mov %esp,%ebp <== NOT EXECUTED
137803: 57 push %edi <== NOT EXECUTED
137804: 56 push %esi <== NOT EXECUTED
137805: 53 push %ebx <== NOT EXECUTED
137806: 81 ec 0c 01 00 00 sub $0x10c,%esp <== NOT EXECUTED
rtems_rfs_file_system fs;
int group;
int rc;
if (config->verbose)
13780c: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
13780f: 80 78 15 00 cmpb $0x0,0x15(%eax) <== NOT EXECUTED
137813: 74 12 je 137827 <rtems_rfs_format+0x27> <== NOT EXECUTED
printf ("rtems-rfs: format: %s\n", name);
137815: 52 push %edx <== NOT EXECUTED
137816: 52 push %edx <== NOT EXECUTED
137817: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
13781a: 68 8d e2 15 00 push $0x15e28d <== NOT EXECUTED
13781f: e8 10 a7 00 00 call 141f34 <printf> <== NOT EXECUTED
137824: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
memset (&fs, 0, sizeof (rtems_rfs_file_system));
137827: 8d 9d 14 ff ff ff lea -0xec(%ebp),%ebx <== NOT EXECUTED
13782d: b9 20 00 00 00 mov $0x20,%ecx <== NOT EXECUTED
137832: 31 c0 xor %eax,%eax <== NOT EXECUTED
137834: 89 df mov %ebx,%edi <== NOT EXECUTED
137836: f3 ab rep stos %eax,%es:(%edi) <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
137838: 8d 85 58 ff ff ff lea -0xa8(%ebp),%eax <== NOT EXECUTED
13783e: 89 85 54 ff ff ff mov %eax,-0xac(%ebp) <== NOT EXECUTED
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
137844: 8d 85 54 ff ff ff lea -0xac(%ebp),%eax <== NOT EXECUTED
13784a: 89 85 5c ff ff ff mov %eax,-0xa4(%ebp) <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
137850: 8d 85 68 ff ff ff lea -0x98(%ebp),%eax <== NOT EXECUTED
137856: 89 85 64 ff ff ff mov %eax,-0x9c(%ebp) <== NOT EXECUTED
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
13785c: 8d 85 64 ff ff ff lea -0x9c(%ebp),%eax <== NOT EXECUTED
137862: 89 85 6c ff ff ff mov %eax,-0x94(%ebp) <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
137868: 8d 85 78 ff ff ff lea -0x88(%ebp),%eax <== NOT EXECUTED
13786e: 89 85 74 ff ff ff mov %eax,-0x8c(%ebp) <== NOT EXECUTED
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
137874: 8d 85 74 ff ff ff lea -0x8c(%ebp),%eax <== NOT EXECUTED
13787a: 89 85 7c ff ff ff mov %eax,-0x84(%ebp) <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
137880: 8d 45 88 lea -0x78(%ebp),%eax <== NOT EXECUTED
137883: 89 45 84 mov %eax,-0x7c(%ebp) <== NOT EXECUTED
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
137886: 8d 45 84 lea -0x7c(%ebp),%eax <== NOT EXECUTED
137889: 89 45 8c mov %eax,-0x74(%ebp) <== NOT EXECUTED
rtems_chain_initialize_empty (&fs.buffers);
rtems_chain_initialize_empty (&fs.release);
rtems_chain_initialize_empty (&fs.release_modified);
rtems_chain_initialize_empty (&fs.file_shares);
fs.max_held_buffers = RTEMS_RFS_FS_MAX_HELD_BUFFERS;
13788c: c7 85 50 ff ff ff 05 movl $0x5,-0xb0(%ebp) <== NOT EXECUTED
137893: 00 00 00
fs.release_count = 0;
fs.release_modified_count = 0;
fs.flags = RTEMS_RFS_FS_NO_LOCAL_CACHE;
137896: c7 85 14 ff ff ff 02 movl $0x2,-0xec(%ebp) <== NOT EXECUTED
13789d: 00 00 00
/*
* Open the buffer interface.
*/
rc = rtems_rfs_buffer_open (name, &fs);
1378a0: 50 push %eax <== NOT EXECUTED
1378a1: 50 push %eax <== NOT EXECUTED
1378a2: 53 push %ebx <== NOT EXECUTED
1378a3: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
1378a6: e8 66 e1 ff ff call 135a11 <rtems_rfs_buffer_open> <== NOT EXECUTED
1378ab: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
1378ad: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1378b0: 85 c0 test %eax,%eax <== NOT EXECUTED
1378b2: 7e 18 jle 1378cc <rtems_rfs_format+0xcc> <== NOT EXECUTED
{
printf ("rtems-rfs: format: buffer open failed: %d: %s\n",
1378b4: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1378b7: 50 push %eax <== NOT EXECUTED
1378b8: e8 ff c0 00 00 call 1439bc <strerror> <== NOT EXECUTED
1378bd: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
1378c0: 50 push %eax <== NOT EXECUTED
1378c1: 56 push %esi <== NOT EXECUTED
1378c2: 68 a4 e2 15 00 push $0x15e2a4 <== NOT EXECUTED
1378c7: e9 68 0b 00 00 jmp 138434 <rtems_rfs_format+0xc34><== NOT EXECUTED
}
/*
* Check the media.
*/
if (rtems_rfs_fs_media_block_size (&fs) == 0)
1378cc: 8b 85 20 ff ff ff mov -0xe0(%ebp),%eax <== NOT EXECUTED
1378d2: 83 78 24 00 cmpl $0x0,0x24(%eax) <== NOT EXECUTED
1378d6: 75 0e jne 1378e6 <rtems_rfs_format+0xe6> <== NOT EXECUTED
{
printf ("rtems-rfs: media block is invalid: %" PRIu32 "\n",
1378d8: 57 push %edi <== NOT EXECUTED
1378d9: 57 push %edi <== NOT EXECUTED
1378da: 6a 00 push $0x0 <== NOT EXECUTED
1378dc: 68 d3 e2 15 00 push $0x15e2d3 <== NOT EXECUTED
1378e1: e9 4e 0b 00 00 jmp 138434 <rtems_rfs_format+0xc34><== NOT EXECUTED
static bool
rtems_rfs_check_config (rtems_rfs_file_system* fs,
const rtems_rfs_format_config* config)
{
fs->block_size = config->block_size;
1378e6: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
1378e9: 8b 02 mov (%edx),%eax <== NOT EXECUTED
1378eb: 89 85 1c ff ff ff mov %eax,-0xe4(%ebp) <== NOT EXECUTED
if (!fs->block_size)
1378f1: 85 c0 test %eax,%eax <== NOT EXECUTED
1378f3: 75 75 jne 13796a <rtems_rfs_format+0x16a><== NOT EXECUTED
{
uint64_t total_size = rtems_rfs_fs_media_size (fs);
1378f5: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1378f8: 53 push %ebx <== NOT EXECUTED
1378f9: e8 c8 f9 ff ff call 1372c6 <rtems_rfs_fs_media_size><== NOT EXECUTED
if (total_size >= GIGS (1))
1378fe: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
137901: 83 fa 00 cmp $0x0,%edx <== NOT EXECUTED
137904: 77 07 ja 13790d <rtems_rfs_format+0x10d><== NOT EXECUTED
137906: 3d ff ff 0f 00 cmp $0xfffff,%eax <== NOT EXECUTED
13790b: 76 31 jbe 13793e <rtems_rfs_format+0x13e><== NOT EXECUTED
{
uint32_t gigs = (total_size + GIGS (1)) / GIGS (1);
13790d: 05 00 00 10 00 add $0x100000,%eax <== NOT EXECUTED
137912: 83 d2 00 adc $0x0,%edx <== NOT EXECUTED
137915: 0f ac d0 14 shrd $0x14,%edx,%eax <== NOT EXECUTED
137919: c1 ea 14 shr $0x14,%edx <== NOT EXECUTED
13791c: b9 1f 00 00 00 mov $0x1f,%ecx <== NOT EXECUTED
int b;
for (b = 31; b > 0; b--)
if ((gigs & (1 << b)) != 0)
137921: ba 01 00 00 00 mov $0x1,%edx <== NOT EXECUTED
137926: 89 d3 mov %edx,%ebx <== NOT EXECUTED
137928: d3 e3 shl %cl,%ebx <== NOT EXECUTED
13792a: 85 c3 test %eax,%ebx <== NOT EXECUTED
13792c: 75 03 jne 137931 <rtems_rfs_format+0x131><== NOT EXECUTED
if (total_size >= GIGS (1))
{
uint32_t gigs = (total_size + GIGS (1)) / GIGS (1);
int b;
for (b = 31; b > 0; b--)
13792e: 49 dec %ecx <== NOT EXECUTED
13792f: 75 f5 jne 137926 <rtems_rfs_format+0x126><== NOT EXECUTED
if ((gigs & (1 << b)) != 0)
break;
fs->block_size = 1 << b;
137931: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
137936: d3 e0 shl %cl,%eax <== NOT EXECUTED
137938: 89 85 1c ff ff ff mov %eax,-0xe4(%ebp) <== NOT EXECUTED
}
if (fs->block_size < 512)
13793e: 81 bd 1c ff ff ff ff cmpl $0x1ff,-0xe4(%ebp) <== NOT EXECUTED
137945: 01 00 00
137948: 77 0a ja 137954 <rtems_rfs_format+0x154><== NOT EXECUTED
fs->block_size = 512;
13794a: c7 85 1c ff ff ff 00 movl $0x200,-0xe4(%ebp) <== NOT EXECUTED
137951: 02 00 00
if (fs->block_size > (4 * 1024))
137954: 81 bd 1c ff ff ff 00 cmpl $0x1000,-0xe4(%ebp) <== NOT EXECUTED
13795b: 10 00 00
13795e: 76 0a jbe 13796a <rtems_rfs_format+0x16a><== NOT EXECUTED
fs->block_size = (4 * 1024);
137960: c7 85 1c ff ff ff 00 movl $0x1000,-0xe4(%ebp) <== NOT EXECUTED
137967: 10 00 00
}
if ((fs->block_size % rtems_rfs_fs_media_block_size (fs)) != 0)
13796a: 8b 8d 1c ff ff ff mov -0xe4(%ebp),%ecx <== NOT EXECUTED
137970: 8b 85 20 ff ff ff mov -0xe0(%ebp),%eax <== NOT EXECUTED
137976: 8b 58 24 mov 0x24(%eax),%ebx <== NOT EXECUTED
137979: 89 c8 mov %ecx,%eax <== NOT EXECUTED
13797b: 31 d2 xor %edx,%edx <== NOT EXECUTED
13797d: f7 f3 div %ebx <== NOT EXECUTED
13797f: 85 d2 test %edx,%edx <== NOT EXECUTED
137981: 74 0d je 137990 <rtems_rfs_format+0x190><== NOT EXECUTED
{
printf ("block size (%zd) is not a multiple of media block size (%" PRId32 ")\n",
137983: 56 push %esi <== NOT EXECUTED
137984: 53 push %ebx <== NOT EXECUTED
137985: 51 push %ecx <== NOT EXECUTED
137986: 68 fb e2 15 00 push $0x15e2fb <== NOT EXECUTED
13798b: e9 a4 0a 00 00 jmp 138434 <rtems_rfs_format+0xc34><== NOT EXECUTED
fs->block_size, rtems_rfs_fs_media_block_size (fs));
return false;
}
fs->group_blocks = config->group_blocks;
137990: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
137993: 8b 42 04 mov 0x4(%edx),%eax <== NOT EXECUTED
137996: 89 85 38 ff ff ff mov %eax,-0xc8(%ebp) <== NOT EXECUTED
if (!fs->group_blocks)
13799c: 85 c0 test %eax,%eax <== NOT EXECUTED
13799e: 75 09 jne 1379a9 <rtems_rfs_format+0x1a9><== NOT EXECUTED
{
/*
* The number of blocks per group is defined by the number of bits in a
* block.
*/
fs->group_blocks = rtems_rfs_bitmap_numof_bits (fs->block_size);
1379a0: c1 e1 03 shl $0x3,%ecx <== NOT EXECUTED
1379a3: 89 8d 38 ff ff ff mov %ecx,-0xc8(%ebp) <== NOT EXECUTED
}
if (fs->group_blocks > rtems_rfs_bitmap_numof_bits (fs->block_size))
1379a9: 8b 85 1c ff ff ff mov -0xe4(%ebp),%eax <== NOT EXECUTED
1379af: c1 e0 03 shl $0x3,%eax <== NOT EXECUTED
1379b2: 39 85 38 ff ff ff cmp %eax,-0xc8(%ebp) <== NOT EXECUTED
1379b8: 76 0d jbe 1379c7 <rtems_rfs_format+0x1c7><== NOT EXECUTED
{
printf ("group block count is higher than bits in block\n");
1379ba: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1379bd: 68 39 e3 15 00 push $0x15e339 <== NOT EXECUTED
1379c2: e9 5e 04 00 00 jmp 137e25 <rtems_rfs_format+0x625><== NOT EXECUTED
return false;
}
fs->blocks = rtems_rfs_fs_media_size (fs) / fs->block_size;
1379c7: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1379ca: 8d 85 14 ff ff ff lea -0xec(%ebp),%eax <== NOT EXECUTED
1379d0: 50 push %eax <== NOT EXECUTED
1379d1: e8 f0 f8 ff ff call 1372c6 <rtems_rfs_fs_media_size><== NOT EXECUTED
1379d6: 8b 8d 1c ff ff ff mov -0xe4(%ebp),%ecx <== NOT EXECUTED
1379dc: 31 db xor %ebx,%ebx <== NOT EXECUTED
1379de: 53 push %ebx <== NOT EXECUTED
1379df: 51 push %ecx <== NOT EXECUTED
1379e0: 52 push %edx <== NOT EXECUTED
1379e1: 50 push %eax <== NOT EXECUTED
1379e2: e8 11 c3 01 00 call 153cf8 <__udivdi3> <== NOT EXECUTED
1379e7: 89 c3 mov %eax,%ebx <== NOT EXECUTED
1379e9: 89 85 18 ff ff ff mov %eax,-0xe8(%ebp) <== NOT EXECUTED
* Return the number of bits that fit in the block size.
*/
static int
rtems_rfs_bits_per_block (rtems_rfs_file_system* fs)
{
return rtems_rfs_bitmap_numof_bits (rtems_rfs_fs_block_size (fs));
1379ef: 8b b5 1c ff ff ff mov -0xe4(%ebp),%esi <== NOT EXECUTED
* "quotient = dividend / divisor"
*/
int
rtems_rfs_rup_quotient (uint32_t dividend, uint32_t divisor)
{
if (dividend == 0)
1379f5: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
1379f8: b9 01 00 00 00 mov $0x1,%ecx <== NOT EXECUTED
1379fd: 85 c0 test %eax,%eax <== NOT EXECUTED
1379ff: 74 0d je 137a0e <rtems_rfs_format+0x20e><== NOT EXECUTED
return 1;
return ((dividend - 1) / divisor) + 1;
137a01: 8d 40 ff lea -0x1(%eax),%eax <== NOT EXECUTED
137a04: c1 e6 03 shl $0x3,%esi <== NOT EXECUTED
137a07: 31 d2 xor %edx,%edx <== NOT EXECUTED
137a09: f7 f6 div %esi <== NOT EXECUTED
137a0b: 8d 48 01 lea 0x1(%eax),%ecx <== NOT EXECUTED
/*
* The bits per block sets the upper limit for the number of blocks in a
* group. The disk will be divided into groups which are the number of bits
* per block.
*/
fs->group_count = rtems_rfs_rup_quotient (rtems_rfs_fs_blocks (fs),
137a0e: 89 8d 34 ff ff ff mov %ecx,-0xcc(%ebp) <== NOT EXECUTED
rtems_rfs_bits_per_block (fs));
fs->group_inodes = config->group_inodes;
137a14: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
137a17: 8b 42 08 mov 0x8(%edx),%eax <== NOT EXECUTED
137a1a: 89 85 3c ff ff ff mov %eax,-0xc4(%ebp) <== NOT EXECUTED
if (!fs->group_inodes)
137a20: 85 c0 test %eax,%eax <== NOT EXECUTED
137a22: 75 3f jne 137a63 <rtems_rfs_format+0x263><== NOT EXECUTED
int inode_overhead = RTEMS_RFS_INODE_OVERHEAD_PERCENTAGE;
/*
* The number of inodes per group is set as a percentage.
*/
if (config->inode_overhead)
137a24: 8b 42 0c mov 0xc(%edx),%eax <== NOT EXECUTED
137a27: 85 c0 test %eax,%eax <== NOT EXECUTED
137a29: 75 02 jne 137a2d <rtems_rfs_format+0x22d><== NOT EXECUTED
137a2b: b0 01 mov $0x1,%al <== NOT EXECUTED
static int
rtems_rfs_inodes_from_percent (rtems_rfs_file_system* fs,
int percentage)
{
int blocks;
blocks = ((rtems_rfs_fs_blocks (fs) -
137a2d: 4b dec %ebx <== NOT EXECUTED
137a2e: 0f af c3 imul %ebx,%eax <== NOT EXECUTED
137a31: bf 64 00 00 00 mov $0x64,%edi <== NOT EXECUTED
137a36: 31 d2 xor %edx,%edx <== NOT EXECUTED
137a38: f7 f7 div %edi <== NOT EXECUTED
* "quotient = dividend / divisor"
*/
int
rtems_rfs_rup_quotient (uint32_t dividend, uint32_t divisor)
{
if (dividend == 0)
137a3a: be 01 00 00 00 mov $0x1,%esi <== NOT EXECUTED
137a3f: 85 c0 test %eax,%eax <== NOT EXECUTED
137a41: 74 08 je 137a4b <rtems_rfs_format+0x24b><== NOT EXECUTED
return 1;
return ((dividend - 1) / divisor) + 1;
137a43: 48 dec %eax <== NOT EXECUTED
137a44: 31 d2 xor %edx,%edx <== NOT EXECUTED
137a46: f7 f1 div %ecx <== NOT EXECUTED
137a48: 8d 70 01 lea 0x1(%eax),%esi <== NOT EXECUTED
* The number of inodes per group is set as a percentage.
*/
if (config->inode_overhead)
inode_overhead = config->inode_overhead;
fs->group_inodes = rtems_rfs_inodes_from_percent (fs, inode_overhead);
137a4b: 8b 85 1c ff ff ff mov -0xe4(%ebp),%eax <== NOT EXECUTED
137a51: bb 38 00 00 00 mov $0x38,%ebx <== NOT EXECUTED
137a56: 31 d2 xor %edx,%edx <== NOT EXECUTED
137a58: f7 f3 div %ebx <== NOT EXECUTED
137a5a: 0f af f0 imul %eax,%esi <== NOT EXECUTED
137a5d: 89 b5 3c ff ff ff mov %esi,-0xc4(%ebp) <== NOT EXECUTED
}
/*
* Round up to fill a block because the minimum allocation unit is a block.
*/
fs->inodes_per_block = rtems_rfs_fs_block_size (fs) / RTEMS_RFS_INODE_SIZE;
137a63: 8b 85 1c ff ff ff mov -0xe4(%ebp),%eax <== NOT EXECUTED
137a69: bb 38 00 00 00 mov $0x38,%ebx <== NOT EXECUTED
137a6e: 31 d2 xor %edx,%edx <== NOT EXECUTED
137a70: f7 f3 div %ebx <== NOT EXECUTED
137a72: 89 c1 mov %eax,%ecx <== NOT EXECUTED
137a74: 89 85 40 ff ff ff mov %eax,-0xc0(%ebp) <== NOT EXECUTED
fs->group_inodes =
rtems_rfs_rup_quotient (fs->group_inodes,
137a7a: 8b 95 3c ff ff ff mov -0xc4(%ebp),%edx <== NOT EXECUTED
* "quotient = dividend / divisor"
*/
int
rtems_rfs_rup_quotient (uint32_t dividend, uint32_t divisor)
{
if (dividend == 0)
137a80: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
137a85: 85 d2 test %edx,%edx <== NOT EXECUTED
137a87: 74 08 je 137a91 <rtems_rfs_format+0x291><== NOT EXECUTED
return 1;
return ((dividend - 1) / divisor) + 1;
137a89: 8d 42 ff lea -0x1(%edx),%eax <== NOT EXECUTED
137a8c: 31 d2 xor %edx,%edx <== NOT EXECUTED
137a8e: f7 f1 div %ecx <== NOT EXECUTED
137a90: 40 inc %eax <== NOT EXECUTED
/*
* Round up to fill a block because the minimum allocation unit is a block.
*/
fs->inodes_per_block = rtems_rfs_fs_block_size (fs) / RTEMS_RFS_INODE_SIZE;
fs->group_inodes =
rtems_rfs_rup_quotient (fs->group_inodes,
137a91: 0f af c8 imul %eax,%ecx <== NOT EXECUTED
/*
* Round up to fill a block because the minimum allocation unit is a block.
*/
fs->inodes_per_block = rtems_rfs_fs_block_size (fs) / RTEMS_RFS_INODE_SIZE;
fs->group_inodes =
137a94: 89 8d 3c ff ff ff mov %ecx,-0xc4(%ebp) <== NOT EXECUTED
rtems_rfs_rup_quotient (fs->group_inodes,
fs->inodes_per_block) * fs->inodes_per_block;
if (fs->group_inodes > rtems_rfs_bitmap_numof_bits (fs->block_size))
137a9a: 8b 95 1c ff ff ff mov -0xe4(%ebp),%edx <== NOT EXECUTED
137aa0: c1 e2 03 shl $0x3,%edx <== NOT EXECUTED
137aa3: 39 d1 cmp %edx,%ecx <== NOT EXECUTED
137aa5: 76 06 jbe 137aad <rtems_rfs_format+0x2ad><== NOT EXECUTED
fs->group_inodes = rtems_rfs_bitmap_numof_bits (fs->block_size);
137aa7: 89 95 3c ff ff ff mov %edx,-0xc4(%ebp) <== NOT EXECUTED
fs->max_name_length = config->max_name_length;
137aad: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
137ab0: 8b 42 10 mov 0x10(%edx),%eax <== NOT EXECUTED
137ab3: 89 85 2c ff ff ff mov %eax,-0xd4(%ebp) <== NOT EXECUTED
if (!fs->max_name_length)
137ab9: 85 c0 test %eax,%eax <== NOT EXECUTED
137abb: 0f 85 86 09 00 00 jne 138447 <rtems_rfs_format+0xc47><== NOT EXECUTED
{
fs->max_name_length = 512;
137ac1: c7 85 2c ff ff ff 00 movl $0x200,-0xd4(%ebp) <== NOT EXECUTED
137ac8: 02 00 00
137acb: e9 77 09 00 00 jmp 138447 <rtems_rfs_format+0xc47><== NOT EXECUTED
if (!rtems_rfs_check_config (&fs, config))
return -1;
if (config->verbose)
{
printf ("rtems-rfs: format: media size = %" PRIu64 "\n",
137ad0: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
137ad3: 8d 9d 14 ff ff ff lea -0xec(%ebp),%ebx <== NOT EXECUTED
137ad9: 53 push %ebx <== NOT EXECUTED
137ada: e8 e7 f7 ff ff call 1372c6 <rtems_rfs_fs_media_size><== NOT EXECUTED
137adf: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
137ae2: 52 push %edx <== NOT EXECUTED
137ae3: 50 push %eax <== NOT EXECUTED
137ae4: 68 68 e3 15 00 push $0x15e368 <== NOT EXECUTED
137ae9: e8 46 a4 00 00 call 141f34 <printf> <== NOT EXECUTED
rtems_rfs_fs_media_size (&fs));
printf ("rtems-rfs: format: media blocks = %" PRIu32 "\n",
137aee: 5a pop %edx <== NOT EXECUTED
137aef: 59 pop %ecx <== NOT EXECUTED
137af0: 8b 85 20 ff ff ff mov -0xe0(%ebp),%eax <== NOT EXECUTED
137af6: ff 70 1c pushl 0x1c(%eax) <== NOT EXECUTED
137af9: 68 8e e3 15 00 push $0x15e38e <== NOT EXECUTED
137afe: e8 31 a4 00 00 call 141f34 <printf> <== NOT EXECUTED
rtems_rfs_fs_media_blocks (&fs));
printf ("rtems-rfs: format: media block size = %" PRIu32 "\n",
137b03: 5f pop %edi <== NOT EXECUTED
137b04: 58 pop %eax <== NOT EXECUTED
137b05: 8b 85 20 ff ff ff mov -0xe0(%ebp),%eax <== NOT EXECUTED
137b0b: ff 70 24 pushl 0x24(%eax) <== NOT EXECUTED
137b0e: 68 b5 e3 15 00 push $0x15e3b5 <== NOT EXECUTED
137b13: e8 1c a4 00 00 call 141f34 <printf> <== NOT EXECUTED
rtems_rfs_fs_media_block_size (&fs));
printf ("rtems-rfs: format: size = %" PRIu64 "\n",
137b18: 89 1c 24 mov %ebx,(%esp) <== NOT EXECUTED
137b1b: e8 98 f7 ff ff call 1372b8 <rtems_rfs_fs_size> <== NOT EXECUTED
137b20: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
137b23: 52 push %edx <== NOT EXECUTED
137b24: 50 push %eax <== NOT EXECUTED
137b25: 68 e0 e3 15 00 push $0x15e3e0 <== NOT EXECUTED
137b2a: e8 05 a4 00 00 call 141f34 <printf> <== NOT EXECUTED
rtems_rfs_fs_size (&fs));
printf ("rtems-rfs: format: blocks = %zu\n",
137b2f: 59 pop %ecx <== NOT EXECUTED
137b30: 5e pop %esi <== NOT EXECUTED
137b31: ff b5 18 ff ff ff pushl -0xe8(%ebp) <== NOT EXECUTED
137b37: 68 00 e4 15 00 push $0x15e400 <== NOT EXECUTED
137b3c: e8 f3 a3 00 00 call 141f34 <printf> <== NOT EXECUTED
rtems_rfs_fs_blocks (&fs));
printf ("rtems-rfs: format: block size = %zu\n",
137b41: 58 pop %eax <== NOT EXECUTED
137b42: 5a pop %edx <== NOT EXECUTED
137b43: ff b5 1c ff ff ff pushl -0xe4(%ebp) <== NOT EXECUTED
137b49: 68 21 e4 15 00 push $0x15e421 <== NOT EXECUTED
137b4e: e8 e1 a3 00 00 call 141f34 <printf> <== NOT EXECUTED
rtems_rfs_fs_block_size (&fs));
printf ("rtems-rfs: format: bits per block = %u\n",
137b53: 5e pop %esi <== NOT EXECUTED
137b54: 5f pop %edi <== NOT EXECUTED
137b55: 8b 85 1c ff ff ff mov -0xe4(%ebp),%eax <== NOT EXECUTED
137b5b: c1 e0 03 shl $0x3,%eax <== NOT EXECUTED
137b5e: 50 push %eax <== NOT EXECUTED
137b5f: 68 46 e4 15 00 push $0x15e446 <== NOT EXECUTED
137b64: e8 cb a3 00 00 call 141f34 <printf> <== NOT EXECUTED
rtems_rfs_bits_per_block (&fs));
printf ("rtems-rfs: format: inode size = %zu\n", RTEMS_RFS_INODE_SIZE);
137b69: 5a pop %edx <== NOT EXECUTED
137b6a: 59 pop %ecx <== NOT EXECUTED
137b6b: 6a 38 push $0x38 <== NOT EXECUTED
137b6d: 68 6e e4 15 00 push $0x15e46e <== NOT EXECUTED
137b72: e8 bd a3 00 00 call 141f34 <printf> <== NOT EXECUTED
printf ("rtems-rfs: format: inodes = %zu (%d.%d%%)\n",
137b77: 89 d8 mov %ebx,%eax <== NOT EXECUTED
137b79: e8 22 fc ff ff call 1377a0 <rtems_rfs_inode_overhead><== NOT EXECUTED
137b7e: b9 0a 00 00 00 mov $0xa,%ecx <== NOT EXECUTED
137b83: 99 cltd <== NOT EXECUTED
137b84: f7 f9 idiv %ecx <== NOT EXECUTED
137b86: 52 push %edx <== NOT EXECUTED
137b87: 50 push %eax <== NOT EXECUTED
137b88: 8b 85 34 ff ff ff mov -0xcc(%ebp),%eax <== NOT EXECUTED
137b8e: 0f af 85 3c ff ff ff imul -0xc4(%ebp),%eax <== NOT EXECUTED
137b95: 50 push %eax <== NOT EXECUTED
137b96: 68 93 e4 15 00 push $0x15e493 <== NOT EXECUTED
137b9b: e8 94 a3 00 00 call 141f34 <printf> <== NOT EXECUTED
fs.group_inodes * fs.group_count,
rtems_rfs_inode_overhead (&fs) / 10,
rtems_rfs_inode_overhead (&fs) % 10);
printf ("rtems-rfs: format: groups = %u\n", fs.group_count);
137ba0: 83 c4 18 add $0x18,%esp <== NOT EXECUTED
137ba3: ff b5 34 ff ff ff pushl -0xcc(%ebp) <== NOT EXECUTED
137ba9: 68 be e4 15 00 push $0x15e4be <== NOT EXECUTED
137bae: e8 81 a3 00 00 call 141f34 <printf> <== NOT EXECUTED
printf ("rtems-rfs: format: group blocks = %zu\n", fs.group_blocks);
137bb3: 5f pop %edi <== NOT EXECUTED
137bb4: 58 pop %eax <== NOT EXECUTED
137bb5: ff b5 38 ff ff ff pushl -0xc8(%ebp) <== NOT EXECUTED
137bbb: 68 de e4 15 00 push $0x15e4de <== NOT EXECUTED
137bc0: e8 6f a3 00 00 call 141f34 <printf> <== NOT EXECUTED
printf ("rtems-rfs: format: group inodes = %zu\n", fs.group_inodes);
137bc5: 5b pop %ebx <== NOT EXECUTED
137bc6: 5e pop %esi <== NOT EXECUTED
137bc7: ff b5 3c ff ff ff pushl -0xc4(%ebp) <== NOT EXECUTED
137bcd: 68 05 e5 15 00 push $0x15e505 <== NOT EXECUTED
137bd2: e8 5d a3 00 00 call 141f34 <printf> <== NOT EXECUTED
137bd7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
rc = rtems_rfs_buffer_setblksize (&fs, rtems_rfs_fs_block_size (&fs));
137bda: 51 push %ecx <== NOT EXECUTED
137bdb: 51 push %ecx <== NOT EXECUTED
137bdc: ff b5 1c ff ff ff pushl -0xe4(%ebp) <== NOT EXECUTED
137be2: 8d 9d 14 ff ff ff lea -0xec(%ebp),%ebx <== NOT EXECUTED
137be8: 53 push %ebx <== NOT EXECUTED
137be9: e8 bb dd ff ff call 1359a9 <rtems_rfs_buffer_setblksize><== NOT EXECUTED
137bee: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
137bf0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
137bf3: 85 c0 test %eax,%eax <== NOT EXECUTED
137bf5: 7e 18 jle 137c0f <rtems_rfs_format+0x40f><== NOT EXECUTED
{
printf ("rtems-rfs: format: setting block size failed: %d: %s\n",
137bf7: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
137bfa: 50 push %eax <== NOT EXECUTED
137bfb: e8 bc bd 00 00 call 1439bc <strerror> <== NOT EXECUTED
137c00: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
137c03: 50 push %eax <== NOT EXECUTED
137c04: 56 push %esi <== NOT EXECUTED
137c05: 68 2c e5 15 00 push $0x15e52c <== NOT EXECUTED
137c0a: e9 25 08 00 00 jmp 138434 <rtems_rfs_format+0xc34><== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_open (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
handle->dirty = false;
137c0f: c6 45 d4 00 movb $0x0,-0x2c(%ebp) <== NOT EXECUTED
handle->bnum = 0;
137c13: c7 45 d8 00 00 00 00 movl $0x0,-0x28(%ebp) <== NOT EXECUTED
handle->buffer = NULL;
137c1a: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp) <== NOT EXECUTED
printf ("rtems-rfs: write-superblock: handle open failed: %d: %s\n",
rc, strerror (rc));
return false;
}
rc = rtems_rfs_buffer_handle_request (fs, &handle, 0, false);
137c21: 6a 00 push $0x0 <== NOT EXECUTED
137c23: 6a 00 push $0x0 <== NOT EXECUTED
137c25: 8d 45 d4 lea -0x2c(%ebp),%eax <== NOT EXECUTED
137c28: 50 push %eax <== NOT EXECUTED
137c29: 53 push %ebx <== NOT EXECUTED
137c2a: e8 2b df ff ff call 135b5a <rtems_rfs_buffer_handle_request><== NOT EXECUTED
137c2f: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
137c31: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
137c34: 85 c0 test %eax,%eax <== NOT EXECUTED
137c36: 7e 22 jle 137c5a <rtems_rfs_format+0x45a><== NOT EXECUTED
{
rtems_rfs_buffer_handle_close (fs, &handle);
137c38: 8d 55 d4 lea -0x2c(%ebp),%edx <== NOT EXECUTED
137c3b: 89 d8 mov %ebx,%eax <== NOT EXECUTED
137c3d: e8 96 fb ff ff call 1377d8 <rtems_rfs_buffer_handle_close><== NOT EXECUTED
printf ("rtems-rfs: write-superblock: request failed: %d: %s\n",
137c42: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
137c45: 56 push %esi <== NOT EXECUTED
137c46: e8 71 bd 00 00 call 1439bc <strerror> <== NOT EXECUTED
137c4b: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
137c4e: 50 push %eax <== NOT EXECUTED
137c4f: 56 push %esi <== NOT EXECUTED
137c50: 68 62 e5 15 00 push $0x15e562 <== NOT EXECUTED
137c55: e9 bf 01 00 00 jmp 137e19 <rtems_rfs_format+0x619><== NOT EXECUTED
rc, strerror (rc));
return false;
}
sb = rtems_rfs_buffer_data (&handle);
137c5a: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED
137c5d: 8b 50 20 mov 0x20(%eax),%edx <== NOT EXECUTED
#define write_sb(_o, _d) rtems_rfs_write_u32(sb + (_o), _d)
memset (sb, 0xff, rtems_rfs_fs_block_size (fs));
137c60: 8b 8d 1c ff ff ff mov -0xe4(%ebp),%ecx <== NOT EXECUTED
137c66: b0 ff mov $0xff,%al <== NOT EXECUTED
137c68: 89 d7 mov %edx,%edi <== NOT EXECUTED
137c6a: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED
write_sb (RTEMS_RFS_SB_OFFSET_MAGIC, RTEMS_RFS_SB_MAGIC);
137c6c: c6 02 28 movb $0x28,(%edx) <== NOT EXECUTED
137c6f: c6 42 01 09 movb $0x9,0x1(%edx) <== NOT EXECUTED
137c73: c6 42 02 20 movb $0x20,0x2(%edx) <== NOT EXECUTED
137c77: c6 42 03 01 movb $0x1,0x3(%edx) <== NOT EXECUTED
write_sb (RTEMS_RFS_SB_OFFSET_VERSION, RTEMS_RFS_VERSION);
137c7b: c6 42 04 00 movb $0x0,0x4(%edx) <== NOT EXECUTED
137c7f: c6 42 05 00 movb $0x0,0x5(%edx) <== NOT EXECUTED
137c83: c6 42 06 00 movb $0x0,0x6(%edx) <== NOT EXECUTED
137c87: c6 42 07 00 movb $0x0,0x7(%edx) <== NOT EXECUTED
write_sb (RTEMS_RFS_SB_OFFSET_BLOCKS, rtems_rfs_fs_blocks (fs));
137c8b: 0f b6 85 1b ff ff ff movzbl -0xe5(%ebp),%eax <== NOT EXECUTED
137c92: 88 42 0c mov %al,0xc(%edx) <== NOT EXECUTED
137c95: 0f b7 85 1a ff ff ff movzwl -0xe6(%ebp),%eax <== NOT EXECUTED
137c9c: 88 42 0d mov %al,0xd(%edx) <== NOT EXECUTED
137c9f: 8b 85 18 ff ff ff mov -0xe8(%ebp),%eax <== NOT EXECUTED
137ca5: c1 e8 08 shr $0x8,%eax <== NOT EXECUTED
137ca8: 88 42 0e mov %al,0xe(%edx) <== NOT EXECUTED
137cab: 8b 85 18 ff ff ff mov -0xe8(%ebp),%eax <== NOT EXECUTED
137cb1: 88 42 0f mov %al,0xf(%edx) <== NOT EXECUTED
write_sb (RTEMS_RFS_SB_OFFSET_BLOCK_SIZE, rtems_rfs_fs_block_size (fs));
137cb4: 0f b6 85 1f ff ff ff movzbl -0xe1(%ebp),%eax <== NOT EXECUTED
137cbb: 88 42 08 mov %al,0x8(%edx) <== NOT EXECUTED
137cbe: 0f b7 85 1e ff ff ff movzwl -0xe2(%ebp),%eax <== NOT EXECUTED
137cc5: 88 42 09 mov %al,0x9(%edx) <== NOT EXECUTED
137cc8: 8b 85 1c ff ff ff mov -0xe4(%ebp),%eax <== NOT EXECUTED
137cce: c1 e8 08 shr $0x8,%eax <== NOT EXECUTED
137cd1: 88 42 0a mov %al,0xa(%edx) <== NOT EXECUTED
137cd4: 8b 85 1c ff ff ff mov -0xe4(%ebp),%eax <== NOT EXECUTED
137cda: 88 42 0b mov %al,0xb(%edx) <== NOT EXECUTED
write_sb (RTEMS_RFS_SB_OFFSET_BAD_BLOCKS, fs->bad_blocks);
137cdd: 0f b6 85 2b ff ff ff movzbl -0xd5(%ebp),%eax <== NOT EXECUTED
137ce4: 88 42 10 mov %al,0x10(%edx) <== NOT EXECUTED
137ce7: 0f b7 85 2a ff ff ff movzwl -0xd6(%ebp),%eax <== NOT EXECUTED
137cee: 88 42 11 mov %al,0x11(%edx) <== NOT EXECUTED
137cf1: 8b 85 28 ff ff ff mov -0xd8(%ebp),%eax <== NOT EXECUTED
137cf7: c1 e8 08 shr $0x8,%eax <== NOT EXECUTED
137cfa: 88 42 12 mov %al,0x12(%edx) <== NOT EXECUTED
137cfd: 8b 85 28 ff ff ff mov -0xd8(%ebp),%eax <== NOT EXECUTED
137d03: 88 42 13 mov %al,0x13(%edx) <== NOT EXECUTED
write_sb (RTEMS_RFS_SB_OFFSET_MAX_NAME_LENGTH, fs->max_name_length);
137d06: 0f b6 85 2f ff ff ff movzbl -0xd1(%ebp),%eax <== NOT EXECUTED
137d0d: 88 42 14 mov %al,0x14(%edx) <== NOT EXECUTED
137d10: 0f b7 85 2e ff ff ff movzwl -0xd2(%ebp),%eax <== NOT EXECUTED
137d17: 88 42 15 mov %al,0x15(%edx) <== NOT EXECUTED
137d1a: 8b 85 2c ff ff ff mov -0xd4(%ebp),%eax <== NOT EXECUTED
137d20: c1 e8 08 shr $0x8,%eax <== NOT EXECUTED
137d23: 88 42 16 mov %al,0x16(%edx) <== NOT EXECUTED
137d26: 8b 85 2c ff ff ff mov -0xd4(%ebp),%eax <== NOT EXECUTED
137d2c: 88 42 17 mov %al,0x17(%edx) <== NOT EXECUTED
write_sb (RTEMS_RFS_SB_OFFSET_GROUPS, fs->group_count);
137d2f: 0f b6 85 37 ff ff ff movzbl -0xc9(%ebp),%eax <== NOT EXECUTED
137d36: 88 42 18 mov %al,0x18(%edx) <== NOT EXECUTED
137d39: 0f b7 85 36 ff ff ff movzwl -0xca(%ebp),%eax <== NOT EXECUTED
137d40: 88 42 19 mov %al,0x19(%edx) <== NOT EXECUTED
137d43: 8b 85 34 ff ff ff mov -0xcc(%ebp),%eax <== NOT EXECUTED
137d49: c1 e8 08 shr $0x8,%eax <== NOT EXECUTED
137d4c: 88 42 1a mov %al,0x1a(%edx) <== NOT EXECUTED
137d4f: 8b 85 34 ff ff ff mov -0xcc(%ebp),%eax <== NOT EXECUTED
137d55: 88 42 1b mov %al,0x1b(%edx) <== NOT EXECUTED
write_sb (RTEMS_RFS_SB_OFFSET_GROUP_BLOCKS, fs->group_blocks);
137d58: 0f b6 85 3b ff ff ff movzbl -0xc5(%ebp),%eax <== NOT EXECUTED
137d5f: 88 42 1c mov %al,0x1c(%edx) <== NOT EXECUTED
137d62: 0f b7 85 3a ff ff ff movzwl -0xc6(%ebp),%eax <== NOT EXECUTED
137d69: 88 42 1d mov %al,0x1d(%edx) <== NOT EXECUTED
137d6c: 8b 85 38 ff ff ff mov -0xc8(%ebp),%eax <== NOT EXECUTED
137d72: c1 e8 08 shr $0x8,%eax <== NOT EXECUTED
137d75: 88 42 1e mov %al,0x1e(%edx) <== NOT EXECUTED
137d78: 8b 85 38 ff ff ff mov -0xc8(%ebp),%eax <== NOT EXECUTED
137d7e: 88 42 1f mov %al,0x1f(%edx) <== NOT EXECUTED
write_sb (RTEMS_RFS_SB_OFFSET_GROUP_INODES, fs->group_inodes);
137d81: 0f b6 85 3f ff ff ff movzbl -0xc1(%ebp),%eax <== NOT EXECUTED
137d88: 88 42 20 mov %al,0x20(%edx) <== NOT EXECUTED
137d8b: 0f b7 85 3e ff ff ff movzwl -0xc2(%ebp),%eax <== NOT EXECUTED
137d92: 88 42 21 mov %al,0x21(%edx) <== NOT EXECUTED
137d95: 8b 85 3c ff ff ff mov -0xc4(%ebp),%eax <== NOT EXECUTED
137d9b: c1 e8 08 shr $0x8,%eax <== NOT EXECUTED
137d9e: 88 42 22 mov %al,0x22(%edx) <== NOT EXECUTED
137da1: 8b 85 3c ff ff ff mov -0xc4(%ebp),%eax <== NOT EXECUTED
137da7: 88 42 23 mov %al,0x23(%edx) <== NOT EXECUTED
write_sb (RTEMS_RFS_SB_OFFSET_INODE_SIZE, RTEMS_RFS_INODE_SIZE);
137daa: c6 42 24 00 movb $0x0,0x24(%edx) <== NOT EXECUTED
137dae: c6 42 25 00 movb $0x0,0x25(%edx) <== NOT EXECUTED
137db2: c6 42 26 00 movb $0x0,0x26(%edx) <== NOT EXECUTED
137db6: c6 42 27 38 movb $0x38,0x27(%edx) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle);
137dba: c6 45 d4 01 movb $0x1,-0x2c(%ebp) <== NOT EXECUTED
rc = rtems_rfs_buffer_handle_release (fs, &handle);
137dbe: 52 push %edx <== NOT EXECUTED
137dbf: 52 push %edx <== NOT EXECUTED
137dc0: 8d 55 d4 lea -0x2c(%ebp),%edx <== NOT EXECUTED
137dc3: 52 push %edx <== NOT EXECUTED
137dc4: 53 push %ebx <== NOT EXECUTED
137dc5: e8 99 dc ff ff call 135a63 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
137dca: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
137dcc: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
137dcf: 85 c0 test %eax,%eax <== NOT EXECUTED
137dd1: 7e 1f jle 137df2 <rtems_rfs_format+0x5f2><== NOT EXECUTED
{
rtems_rfs_buffer_handle_close (fs, &handle);
137dd3: 8d 55 d4 lea -0x2c(%ebp),%edx <== NOT EXECUTED
137dd6: 89 d8 mov %ebx,%eax <== NOT EXECUTED
137dd8: e8 fb f9 ff ff call 1377d8 <rtems_rfs_buffer_handle_close><== NOT EXECUTED
printf ("rtems-rfs: write-superblock: buffer release failed: %d: %s\n",
137ddd: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
137de0: 56 push %esi <== NOT EXECUTED
137de1: e8 d6 bb 00 00 call 1439bc <strerror> <== NOT EXECUTED
137de6: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
137de9: 50 push %eax <== NOT EXECUTED
137dea: 56 push %esi <== NOT EXECUTED
137deb: 68 97 e5 15 00 push $0x15e597 <== NOT EXECUTED
137df0: eb 27 jmp 137e19 <rtems_rfs_format+0x619><== NOT EXECUTED
rc, strerror (rc));
return false;
}
rc = rtems_rfs_buffer_handle_close (fs, &handle);
137df2: 8d 55 d4 lea -0x2c(%ebp),%edx <== NOT EXECUTED
137df5: 89 d8 mov %ebx,%eax <== NOT EXECUTED
137df7: e8 dc f9 ff ff call 1377d8 <rtems_rfs_buffer_handle_close><== NOT EXECUTED
137dfc: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
137dfe: 85 c0 test %eax,%eax <== NOT EXECUTED
137e00: 0f 8e e1 03 00 00 jle 1381e7 <rtems_rfs_format+0x9e7><== NOT EXECUTED
{
printf ("rtems-rfs: write-superblock: buffer handle close failed: %d: %s\n",
137e06: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
137e09: 50 push %eax <== NOT EXECUTED
137e0a: e8 ad bb 00 00 call 1439bc <strerror> <== NOT EXECUTED
137e0f: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
137e12: 50 push %eax <== NOT EXECUTED
137e13: 56 push %esi <== NOT EXECUTED
137e14: 68 d3 e5 15 00 push $0x15e5d3 <== NOT EXECUTED
137e19: e8 16 a1 00 00 call 141f34 <printf> <== NOT EXECUTED
return -1;
}
if (!rtems_rfs_write_superblock (&fs))
{
printf ("rtems-rfs: format: superblock write failed\n");
137e1e: c7 04 24 14 e6 15 00 movl $0x15e614,(%esp) <== NOT EXECUTED
137e25: e8 1e a3 00 00 call 142148 <puts> <== NOT EXECUTED
137e2a: e9 0a 06 00 00 jmp 138439 <rtems_rfs_format+0xc39><== NOT EXECUTED
return -1;
}
for (group = 0; group < fs.group_count; group++)
if (!rtems_rfs_write_group (&fs, group,
config->initialise_inodes, config->verbose))
137e2f: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
137e32: 8a 40 15 mov 0x15(%eax),%al <== NOT EXECUTED
137e35: 88 85 ff fe ff ff mov %al,-0x101(%ebp) <== NOT EXECUTED
137e3b: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
137e3e: 8a 52 14 mov 0x14(%edx),%dl <== NOT EXECUTED
137e41: 88 95 f3 fe ff ff mov %dl,-0x10d(%ebp) <== NOT EXECUTED
size_t group_size;
int blocks;
int b;
int rc;
group_base = rtems_rfs_fs_block (fs, group, 0);
137e47: 8b b5 38 ff ff ff mov -0xc8(%ebp),%esi <== NOT EXECUTED
137e4d: 8b 85 04 ff ff ff mov -0xfc(%ebp),%eax <== NOT EXECUTED
137e53: 0f af c6 imul %esi,%eax <== NOT EXECUTED
137e56: 89 85 f4 fe ff ff mov %eax,-0x10c(%ebp) <== NOT EXECUTED
137e5c: 40 inc %eax <== NOT EXECUTED
137e5d: 89 85 00 ff ff ff mov %eax,-0x100(%ebp) <== NOT EXECUTED
if (group_base > rtems_rfs_fs_blocks (fs))
137e63: 8b 85 18 ff ff ff mov -0xe8(%ebp),%eax <== NOT EXECUTED
137e69: 39 85 00 ff ff ff cmp %eax,-0x100(%ebp) <== NOT EXECUTED
137e6f: 76 12 jbe 137e83 <rtems_rfs_format+0x683><== NOT EXECUTED
{
printf ("rtems-rfs: write-group: group %d base beyond disk limit\n",
137e71: 50 push %eax <== NOT EXECUTED
137e72: 50 push %eax <== NOT EXECUTED
137e73: ff b5 04 ff ff ff pushl -0xfc(%ebp) <== NOT EXECUTED
137e79: 68 3f e6 15 00 push $0x15e63f <== NOT EXECUTED
137e7e: e9 b1 05 00 00 jmp 138434 <rtems_rfs_format+0xc34><== NOT EXECUTED
/*
* Be nice to strange sizes of disks. These are embedded systems after all
* and nice numbers do not always work out. Let the last block pick up the
* remainder of the blocks.
*/
if ((group_base + group_size) > rtems_rfs_fs_blocks (fs))
137e83: 8b 95 00 ff ff ff mov -0x100(%ebp),%edx <== NOT EXECUTED
137e89: 01 f2 add %esi,%edx <== NOT EXECUTED
137e8b: 39 c2 cmp %eax,%edx <== NOT EXECUTED
137e8d: 76 08 jbe 137e97 <rtems_rfs_format+0x697><== NOT EXECUTED
group_size = rtems_rfs_fs_blocks (fs) - group_base;
137e8f: 89 c6 mov %eax,%esi <== NOT EXECUTED
137e91: 2b b5 00 ff ff ff sub -0x100(%ebp),%esi <== NOT EXECUTED
if (verbose)
137e97: 80 bd ff fe ff ff 00 cmpb $0x0,-0x101(%ebp) <== NOT EXECUTED
137e9e: 74 1a je 137eba <rtems_rfs_format+0x6ba><== NOT EXECUTED
printf ("\rrtems-rfs: format: group %3d: base = %" PRId32 ", size = %zd",
137ea0: 56 push %esi <== NOT EXECUTED
137ea1: ff b5 00 ff ff ff pushl -0x100(%ebp) <== NOT EXECUTED
137ea7: ff b5 04 ff ff ff pushl -0xfc(%ebp) <== NOT EXECUTED
137ead: 68 78 e6 15 00 push $0x15e678 <== NOT EXECUTED
137eb2: e8 7d a0 00 00 call 141f34 <printf> <== NOT EXECUTED
137eb7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_open (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
handle->dirty = false;
137eba: c6 45 d4 00 movb $0x0,-0x2c(%ebp) <== NOT EXECUTED
handle->bnum = 0;
137ebe: c7 45 d8 00 00 00 00 movl $0x0,-0x28(%ebp) <== NOT EXECUTED
handle->buffer = NULL;
137ec5: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp) <== NOT EXECUTED
printf ("\nrtems-rfs: write-group: handle open failed: %d: %s\n",
rc, strerror (rc));
return false;
}
if (verbose)
137ecc: 80 bd ff fe ff ff 00 cmpb $0x0,-0x101(%ebp) <== NOT EXECUTED
137ed3: 74 10 je 137ee5 <rtems_rfs_format+0x6e5><== NOT EXECUTED
printf (", blocks");
137ed5: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
137ed8: 68 ae e6 15 00 push $0x15e6ae <== NOT EXECUTED
137edd: e8 52 a0 00 00 call 141f34 <printf> <== NOT EXECUTED
137ee2: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
/*
* Open the block bitmap using the new buffer.
*/
rc = rtems_rfs_bitmap_open (&bitmap, fs, &handle, group_size,
137ee5: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
137ee8: ff b5 00 ff ff ff pushl -0x100(%ebp) <== NOT EXECUTED
137eee: 56 push %esi <== NOT EXECUTED
137eef: 8d 55 d4 lea -0x2c(%ebp),%edx <== NOT EXECUTED
137ef2: 52 push %edx <== NOT EXECUTED
137ef3: 8d 85 14 ff ff ff lea -0xec(%ebp),%eax <== NOT EXECUTED
137ef9: 50 push %eax <== NOT EXECUTED
137efa: 53 push %ebx <== NOT EXECUTED
137efb: e8 c0 54 00 00 call 13d3c0 <rtems_rfs_bitmap_open> <== NOT EXECUTED
group_base + RTEMS_RFS_GROUP_BLOCK_BITMAP_BLOCK);
if (rc > 0)
137f00: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
137f03: 85 c0 test %eax,%eax <== NOT EXECUTED
137f05: 7e 28 jle 137f2f <rtems_rfs_format+0x72f><== NOT EXECUTED
137f07: 89 c6 mov %eax,%esi <== NOT EXECUTED
{
rtems_rfs_buffer_handle_close (fs, &handle);
137f09: 8d 55 d4 lea -0x2c(%ebp),%edx <== NOT EXECUTED
137f0c: 8d 85 14 ff ff ff lea -0xec(%ebp),%eax <== NOT EXECUTED
137f12: e8 c1 f8 ff ff call 1377d8 <rtems_rfs_buffer_handle_close><== NOT EXECUTED
printf ("\nrtems-rfs: write-group: group %3d: open block bitmap failed: %d: %s\n",
137f17: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
137f1a: 56 push %esi <== NOT EXECUTED
137f1b: e8 9c ba 00 00 call 1439bc <strerror> <== NOT EXECUTED
137f20: 50 push %eax <== NOT EXECUTED
137f21: 56 push %esi <== NOT EXECUTED
137f22: ff b5 04 ff ff ff pushl -0xfc(%ebp) <== NOT EXECUTED
137f28: 68 b7 e6 15 00 push $0x15e6b7 <== NOT EXECUTED
137f2d: eb 50 jmp 137f7f <rtems_rfs_format+0x77f><== NOT EXECUTED
/*
* Force the whole buffer to a known state. The bit map may not occupy the
* whole block.
*/
memset (rtems_rfs_buffer_data (&handle), 0xff, rtems_rfs_fs_block_size (fs));
137f2f: 8b 8d 1c ff ff ff mov -0xe4(%ebp),%ecx <== NOT EXECUTED
137f35: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED
137f38: 8b 50 20 mov 0x20(%eax),%edx <== NOT EXECUTED
137f3b: b0 ff mov $0xff,%al <== NOT EXECUTED
137f3d: 89 d7 mov %edx,%edi <== NOT EXECUTED
137f3f: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED
/*
* Clear the bitmap.
*/
rc = rtems_rfs_bitmap_map_clear_all (&bitmap);
137f41: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
137f44: 53 push %ebx <== NOT EXECUTED
137f45: e8 c5 54 00 00 call 13d40f <rtems_rfs_bitmap_map_clear_all><== NOT EXECUTED
if (rc > 0)
137f4a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
137f4d: 85 c0 test %eax,%eax <== NOT EXECUTED
137f4f: 7e 38 jle 137f89 <rtems_rfs_format+0x789><== NOT EXECUTED
137f51: 89 c6 mov %eax,%esi <== NOT EXECUTED
{
rtems_rfs_bitmap_close (&bitmap);
137f53: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
137f56: 53 push %ebx <== NOT EXECUTED
137f57: e8 55 53 00 00 call 13d2b1 <rtems_rfs_bitmap_close><== NOT EXECUTED
rtems_rfs_buffer_handle_close (fs, &handle);
137f5c: 8d 55 d4 lea -0x2c(%ebp),%edx <== NOT EXECUTED
137f5f: 8d 85 14 ff ff ff lea -0xec(%ebp),%eax <== NOT EXECUTED
137f65: e8 6e f8 ff ff call 1377d8 <rtems_rfs_buffer_handle_close><== NOT EXECUTED
printf ("\nrtems-rfs: write-group: group %3d: block bitmap clear all failed: %d: %s\n",
137f6a: 89 34 24 mov %esi,(%esp) <== NOT EXECUTED
137f6d: e8 4a ba 00 00 call 1439bc <strerror> <== NOT EXECUTED
137f72: 50 push %eax <== NOT EXECUTED
137f73: 56 push %esi <== NOT EXECUTED
137f74: ff b5 04 ff ff ff pushl -0xfc(%ebp) <== NOT EXECUTED
137f7a: 68 fd e6 15 00 push $0x15e6fd <== NOT EXECUTED
137f7f: e8 b0 9f 00 00 call 141f34 <printf> <== NOT EXECUTED
137f84: e9 04 02 00 00 jmp 13818d <rtems_rfs_format+0x98d><== NOT EXECUTED
}
/*
* Forced allocation of the block bitmap.
*/
rtems_rfs_bitmap_map_set (&bitmap, RTEMS_RFS_GROUP_BLOCK_BITMAP_BLOCK);
137f89: 57 push %edi <== NOT EXECUTED
137f8a: 57 push %edi <== NOT EXECUTED
137f8b: 6a 00 push $0x0 <== NOT EXECUTED
137f8d: 53 push %ebx <== NOT EXECUTED
137f8e: e8 0f 56 00 00 call 13d5a2 <rtems_rfs_bitmap_map_set><== NOT EXECUTED
/*
* Forced allocation of the inode bitmap.
*/
rtems_rfs_bitmap_map_set (&bitmap, RTEMS_RFS_GROUP_INODE_BITMAP_BLOCK);
137f93: 5a pop %edx <== NOT EXECUTED
137f94: 59 pop %ecx <== NOT EXECUTED
137f95: 6a 01 push $0x1 <== NOT EXECUTED
137f97: 53 push %ebx <== NOT EXECUTED
137f98: e8 05 56 00 00 call 13d5a2 <rtems_rfs_bitmap_map_set><== NOT EXECUTED
/*
* Determine the number of inodes blocks in the group.
*/
blocks = rtems_rfs_rup_quotient (fs->group_inodes, fs->inodes_per_block);
137f9d: 8b 8d 40 ff ff ff mov -0xc0(%ebp),%ecx <== NOT EXECUTED
137fa3: 8b 85 3c ff ff ff mov -0xc4(%ebp),%eax <== NOT EXECUTED
* "quotient = dividend / divisor"
*/
int
rtems_rfs_rup_quotient (uint32_t dividend, uint32_t divisor)
{
if (dividend == 0)
137fa9: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
137fac: c7 85 f8 fe ff ff 01 movl $0x1,-0x108(%ebp) <== NOT EXECUTED
137fb3: 00 00 00
137fb6: 85 c0 test %eax,%eax <== NOT EXECUTED
137fb8: 74 0c je 137fc6 <rtems_rfs_format+0x7c6><== NOT EXECUTED
return 1;
return ((dividend - 1) / divisor) + 1;
137fba: 48 dec %eax <== NOT EXECUTED
137fbb: 31 d2 xor %edx,%edx <== NOT EXECUTED
137fbd: f7 f1 div %ecx <== NOT EXECUTED
137fbf: 40 inc %eax <== NOT EXECUTED
137fc0: 89 85 f8 fe ff ff mov %eax,-0x108(%ebp) <== NOT EXECUTED
137fc6: 31 ff xor %edi,%edi <== NOT EXECUTED
137fc8: eb 10 jmp 137fda <rtems_rfs_format+0x7da><== NOT EXECUTED
/*
* Forced allocation of the inode blocks which follow the block bitmap.
*/
for (b = 0; b < blocks; b++)
rtems_rfs_bitmap_map_set (&bitmap, b + RTEMS_RFS_GROUP_INODE_BLOCK);
137fca: 50 push %eax <== NOT EXECUTED
137fcb: 50 push %eax <== NOT EXECUTED
137fcc: 8d 47 02 lea 0x2(%edi),%eax <== NOT EXECUTED
137fcf: 50 push %eax <== NOT EXECUTED
137fd0: 53 push %ebx <== NOT EXECUTED
137fd1: e8 cc 55 00 00 call 13d5a2 <rtems_rfs_bitmap_map_set><== NOT EXECUTED
blocks = rtems_rfs_rup_quotient (fs->group_inodes, fs->inodes_per_block);
/*
* Forced allocation of the inode blocks which follow the block bitmap.
*/
for (b = 0; b < blocks; b++)
137fd6: 47 inc %edi <== NOT EXECUTED
137fd7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
137fda: 3b bd f8 fe ff ff cmp -0x108(%ebp),%edi <== NOT EXECUTED
137fe0: 7c e8 jl 137fca <rtems_rfs_format+0x7ca><== NOT EXECUTED
rtems_rfs_bitmap_map_set (&bitmap, b + RTEMS_RFS_GROUP_INODE_BLOCK);
/*
* Close the block bitmap.
*/
rc = rtems_rfs_bitmap_close (&bitmap);
137fe2: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
137fe5: 53 push %ebx <== NOT EXECUTED
137fe6: e8 c6 52 00 00 call 13d2b1 <rtems_rfs_bitmap_close><== NOT EXECUTED
if (rc > 0)
137feb: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
137fee: 85 c0 test %eax,%eax <== NOT EXECUTED
137ff0: 7e 2b jle 13801d <rtems_rfs_format+0x81d><== NOT EXECUTED
137ff2: 89 c6 mov %eax,%esi <== NOT EXECUTED
{
rtems_rfs_buffer_handle_close (fs, &handle);
137ff4: 8d 55 d4 lea -0x2c(%ebp),%edx <== NOT EXECUTED
137ff7: 8d 85 14 ff ff ff lea -0xec(%ebp),%eax <== NOT EXECUTED
137ffd: e8 d6 f7 ff ff call 1377d8 <rtems_rfs_buffer_handle_close><== NOT EXECUTED
printf ("\nrtems-rfs: write-group: group %3d: close block bitmap failed: %d: %s\n",
138002: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
138005: 56 push %esi <== NOT EXECUTED
138006: e8 b1 b9 00 00 call 1439bc <strerror> <== NOT EXECUTED
13800b: 50 push %eax <== NOT EXECUTED
13800c: 56 push %esi <== NOT EXECUTED
13800d: ff b5 04 ff ff ff pushl -0xfc(%ebp) <== NOT EXECUTED
138013: 68 48 e7 15 00 push $0x15e748 <== NOT EXECUTED
138018: e9 62 ff ff ff jmp 137f7f <rtems_rfs_format+0x77f><== NOT EXECUTED
group, rc, strerror (rc));
return false;
}
rtems_rfs_buffer_mark_dirty (&handle);
13801d: c6 45 d4 01 movb $0x1,-0x2c(%ebp) <== NOT EXECUTED
if (verbose)
138021: 80 bd ff fe ff ff 00 cmpb $0x0,-0x101(%ebp) <== NOT EXECUTED
138028: 74 10 je 13803a <rtems_rfs_format+0x83a><== NOT EXECUTED
printf (", inodes");
13802a: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13802d: 68 8f e7 15 00 push $0x15e78f <== NOT EXECUTED
138032: e8 fd 9e 00 00 call 141f34 <printf> <== NOT EXECUTED
138037: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
/*
* Open the inode bitmap using the old buffer. Should release any changes.
*/
rc = rtems_rfs_bitmap_open (&bitmap, fs, &handle, group_size,
13803a: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13803d: 8b 85 00 ff ff ff mov -0x100(%ebp),%eax <== NOT EXECUTED
138043: 40 inc %eax <== NOT EXECUTED
138044: 50 push %eax <== NOT EXECUTED
138045: 56 push %esi <== NOT EXECUTED
138046: 8d 55 d4 lea -0x2c(%ebp),%edx <== NOT EXECUTED
138049: 52 push %edx <== NOT EXECUTED
13804a: 8d 85 14 ff ff ff lea -0xec(%ebp),%eax <== NOT EXECUTED
138050: 50 push %eax <== NOT EXECUTED
138051: 53 push %ebx <== NOT EXECUTED
138052: e8 69 53 00 00 call 13d3c0 <rtems_rfs_bitmap_open> <== NOT EXECUTED
138057: 89 c6 mov %eax,%esi <== NOT EXECUTED
group_base + RTEMS_RFS_GROUP_INODE_BITMAP_BLOCK);
if (rc > 0)
138059: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
13805c: 85 c0 test %eax,%eax <== NOT EXECUTED
13805e: 7e 29 jle 138089 <rtems_rfs_format+0x889><== NOT EXECUTED
{
rtems_rfs_buffer_handle_close (fs, &handle);
138060: 8d 55 d4 lea -0x2c(%ebp),%edx <== NOT EXECUTED
138063: 8d 85 14 ff ff ff lea -0xec(%ebp),%eax <== NOT EXECUTED
138069: e8 6a f7 ff ff call 1377d8 <rtems_rfs_buffer_handle_close><== NOT EXECUTED
printf ("\nrtems-rfs: write-group: group %3d: open inode bitmap failed: %d: %s\n",
13806e: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
138071: 56 push %esi <== NOT EXECUTED
138072: e8 45 b9 00 00 call 1439bc <strerror> <== NOT EXECUTED
138077: 50 push %eax <== NOT EXECUTED
138078: 56 push %esi <== NOT EXECUTED
138079: ff b5 04 ff ff ff pushl -0xfc(%ebp) <== NOT EXECUTED
13807f: 68 98 e7 15 00 push $0x15e798 <== NOT EXECUTED
138084: e9 f6 fe ff ff jmp 137f7f <rtems_rfs_format+0x77f><== NOT EXECUTED
/*
* Force the whole buffer to a known state. The bit map may not occupy the
* whole block.
*/
memset (rtems_rfs_buffer_data (&handle), 0x00, rtems_rfs_fs_block_size (fs));
138089: 8b 8d 1c ff ff ff mov -0xe4(%ebp),%ecx <== NOT EXECUTED
13808f: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED
138092: 8b 50 20 mov 0x20(%eax),%edx <== NOT EXECUTED
138095: 31 c0 xor %eax,%eax <== NOT EXECUTED
138097: 89 d7 mov %edx,%edi <== NOT EXECUTED
138099: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED
/*
* Clear the inode bitmap.
*/
rc = rtems_rfs_bitmap_map_clear_all (&bitmap);
13809b: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13809e: 53 push %ebx <== NOT EXECUTED
13809f: e8 6b 53 00 00 call 13d40f <rtems_rfs_bitmap_map_clear_all><== NOT EXECUTED
1380a4: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
1380a6: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1380a9: 85 c0 test %eax,%eax <== NOT EXECUTED
1380ab: 7e 31 jle 1380de <rtems_rfs_format+0x8de><== NOT EXECUTED
{
rtems_rfs_bitmap_close (&bitmap);
1380ad: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1380b0: 53 push %ebx <== NOT EXECUTED
1380b1: e8 fb 51 00 00 call 13d2b1 <rtems_rfs_bitmap_close><== NOT EXECUTED
rtems_rfs_buffer_handle_close (fs, &handle);
1380b6: 8d 55 d4 lea -0x2c(%ebp),%edx <== NOT EXECUTED
1380b9: 8d 85 14 ff ff ff lea -0xec(%ebp),%eax <== NOT EXECUTED
1380bf: e8 14 f7 ff ff call 1377d8 <rtems_rfs_buffer_handle_close><== NOT EXECUTED
printf ("\nrtems-rfs: write-group: group %3d: inode bitmap" \
1380c4: 89 34 24 mov %esi,(%esp) <== NOT EXECUTED
1380c7: e8 f0 b8 00 00 call 1439bc <strerror> <== NOT EXECUTED
1380cc: 50 push %eax <== NOT EXECUTED
1380cd: 56 push %esi <== NOT EXECUTED
1380ce: ff b5 04 ff ff ff pushl -0xfc(%ebp) <== NOT EXECUTED
1380d4: 68 de e7 15 00 push $0x15e7de <== NOT EXECUTED
1380d9: e9 a1 fe ff ff jmp 137f7f <rtems_rfs_format+0x77f><== NOT EXECUTED
}
/*
* Close the inode bitmap.
*/
rc = rtems_rfs_bitmap_close (&bitmap);
1380de: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1380e1: 53 push %ebx <== NOT EXECUTED
1380e2: e8 ca 51 00 00 call 13d2b1 <rtems_rfs_bitmap_close><== NOT EXECUTED
1380e7: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
1380e9: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1380ec: 85 c0 test %eax,%eax <== NOT EXECUTED
1380ee: 7e 29 jle 138119 <rtems_rfs_format+0x919><== NOT EXECUTED
{
rtems_rfs_buffer_handle_close (fs, &handle);
1380f0: 8d 55 d4 lea -0x2c(%ebp),%edx <== NOT EXECUTED
1380f3: 8d 85 14 ff ff ff lea -0xec(%ebp),%eax <== NOT EXECUTED
1380f9: e8 da f6 ff ff call 1377d8 <rtems_rfs_buffer_handle_close><== NOT EXECUTED
printf ("\nrtems-rfs: write-group: group %3d: close inode" \
1380fe: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
138101: 56 push %esi <== NOT EXECUTED
138102: e8 b5 b8 00 00 call 1439bc <strerror> <== NOT EXECUTED
138107: 50 push %eax <== NOT EXECUTED
138108: 56 push %esi <== NOT EXECUTED
138109: ff b5 04 ff ff ff pushl -0xfc(%ebp) <== NOT EXECUTED
13810f: 68 29 e8 15 00 push $0x15e829 <== NOT EXECUTED
138114: e9 66 fe ff ff jmp 137f7f <rtems_rfs_format+0x77f><== NOT EXECUTED
" bitmap failed: %d: %s\n", group, rc, strerror (rc));
return false;
}
rtems_rfs_buffer_mark_dirty (&handle);
138119: c6 45 d4 01 movb $0x1,-0x2c(%ebp) <== NOT EXECUTED
/*
* Initialise the inode tables if required to do so.
*/
if (initialise_inodes)
13811d: 80 bd f3 fe ff ff 00 cmpb $0x0,-0x10d(%ebp) <== NOT EXECUTED
138124: 0f 84 8d 00 00 00 je 1381b7 <rtems_rfs_format+0x9b7><== NOT EXECUTED
13812a: 31 f6 xor %esi,%esi <== NOT EXECUTED
13812c: 8b 95 f4 fe ff ff mov -0x10c(%ebp),%edx <== NOT EXECUTED
138132: 83 c2 03 add $0x3,%edx <== NOT EXECUTED
138135: 89 95 00 ff ff ff mov %edx,-0x100(%ebp) <== NOT EXECUTED
13813b: eb 72 jmp 1381af <rtems_rfs_format+0x9af><== NOT EXECUTED
13813d: 8b bd 00 ff ff ff mov -0x100(%ebp),%edi <== NOT EXECUTED
138143: 01 f7 add %esi,%edi <== NOT EXECUTED
{
for (b = 0; b < blocks; b++)
{
rc = rtems_rfs_buffer_handle_request (fs, &handle,
138145: 6a 00 push $0x0 <== NOT EXECUTED
138147: 57 push %edi <== NOT EXECUTED
138148: 8d 45 d4 lea -0x2c(%ebp),%eax <== NOT EXECUTED
13814b: 50 push %eax <== NOT EXECUTED
13814c: 8d 95 14 ff ff ff lea -0xec(%ebp),%edx <== NOT EXECUTED
138152: 52 push %edx <== NOT EXECUTED
138153: e8 02 da ff ff call 135b5a <rtems_rfs_buffer_handle_request><== NOT EXECUTED
group_base + b + RTEMS_RFS_GROUP_INODE_BLOCK,
false);
if (rc > 0)
138158: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13815b: 85 c0 test %eax,%eax <== NOT EXECUTED
13815d: 7e 39 jle 138198 <rtems_rfs_format+0x998><== NOT EXECUTED
13815f: 89 c6 mov %eax,%esi <== NOT EXECUTED
{
rtems_rfs_buffer_handle_close (fs, &handle);
138161: 8d 55 d4 lea -0x2c(%ebp),%edx <== NOT EXECUTED
138164: 8d 85 14 ff ff ff lea -0xec(%ebp),%eax <== NOT EXECUTED
13816a: e8 69 f6 ff ff call 1377d8 <rtems_rfs_buffer_handle_close><== NOT EXECUTED
printf ("\nrtems-rfs: write-group: group %3d: block %" PRId32 " request failed: %d: %s\n",
13816f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
138172: 56 push %esi <== NOT EXECUTED
138173: e8 44 b8 00 00 call 1439bc <strerror> <== NOT EXECUTED
138178: 89 04 24 mov %eax,(%esp) <== NOT EXECUTED
13817b: 56 push %esi <== NOT EXECUTED
13817c: 57 push %edi <== NOT EXECUTED
13817d: ff b5 04 ff ff ff pushl -0xfc(%ebp) <== NOT EXECUTED
138183: 68 70 e8 15 00 push $0x15e870 <== NOT EXECUTED
138188: e8 a7 9d 00 00 call 141f34 <printf> <== NOT EXECUTED
13818d: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
138190: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
138193: e9 a7 02 00 00 jmp 13843f <rtems_rfs_format+0xc3f><== NOT EXECUTED
/*
* Force the whole buffer to a known state. The bit map may not occupy the
* whole block.
*/
memset (rtems_rfs_buffer_data (&handle), 0xff, rtems_rfs_fs_block_size (fs));
138198: 8b 8d 1c ff ff ff mov -0xe4(%ebp),%ecx <== NOT EXECUTED
13819e: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED
1381a1: 8b 50 20 mov 0x20(%eax),%edx <== NOT EXECUTED
1381a4: 89 d7 mov %edx,%edi <== NOT EXECUTED
1381a6: b0 ff mov $0xff,%al <== NOT EXECUTED
1381a8: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle);
1381aa: c6 45 d4 01 movb $0x1,-0x2c(%ebp) <== NOT EXECUTED
/*
* Initialise the inode tables if required to do so.
*/
if (initialise_inodes)
{
for (b = 0; b < blocks; b++)
1381ae: 46 inc %esi <== NOT EXECUTED
1381af: 3b b5 f8 fe ff ff cmp -0x108(%ebp),%esi <== NOT EXECUTED
1381b5: 7c 86 jl 13813d <rtems_rfs_format+0x93d><== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle);
}
}
rc = rtems_rfs_buffer_handle_close (fs, &handle);
1381b7: 8d 55 d4 lea -0x2c(%ebp),%edx <== NOT EXECUTED
1381ba: 8d 85 14 ff ff ff lea -0xec(%ebp),%eax <== NOT EXECUTED
1381c0: e8 13 f6 ff ff call 1377d8 <rtems_rfs_buffer_handle_close><== NOT EXECUTED
1381c5: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
1381c7: 85 c0 test %eax,%eax <== NOT EXECUTED
1381c9: 0f 8e 8a 02 00 00 jle 138459 <rtems_rfs_format+0xc59><== NOT EXECUTED
{
printf ("\nrtems-rfs: write-group: buffer handle close failed: %d: %s\n",
1381cf: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1381d2: 50 push %eax <== NOT EXECUTED
1381d3: e8 e4 b7 00 00 call 1439bc <strerror> <== NOT EXECUTED
1381d8: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
1381db: 50 push %eax <== NOT EXECUTED
1381dc: 56 push %esi <== NOT EXECUTED
1381dd: 68 b6 e8 15 00 push $0x15e8b6 <== NOT EXECUTED
1381e2: e9 4d 02 00 00 jmp 138434 <rtems_rfs_format+0xc34><== NOT EXECUTED
1381e7: c7 85 04 ff ff ff 00 movl $0x0,-0xfc(%ebp) <== NOT EXECUTED
1381ee: 00 00 00
printf (", blocks");
/*
* Open the block bitmap using the new buffer.
*/
rc = rtems_rfs_bitmap_open (&bitmap, fs, &handle, group_size,
1381f1: 8d 5d bc lea -0x44(%ebp),%ebx <== NOT EXECUTED
{
printf ("rtems-rfs: format: superblock write failed\n");
return -1;
}
for (group = 0; group < fs.group_count; group++)
1381f4: 8b 95 04 ff ff ff mov -0xfc(%ebp),%edx <== NOT EXECUTED
1381fa: 3b 95 34 ff ff ff cmp -0xcc(%ebp),%edx <== NOT EXECUTED
138200: 0f 8c 29 fc ff ff jl 137e2f <rtems_rfs_format+0x62f><== NOT EXECUTED
if (!rtems_rfs_write_group (&fs, group,
config->initialise_inodes, config->verbose))
return -1;
if (config->verbose)
138206: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
138209: 80 78 15 00 cmpb $0x0,0x15(%eax) <== NOT EXECUTED
13820d: 74 0d je 13821c <rtems_rfs_format+0xa1c><== NOT EXECUTED
printf ("\n");
13820f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
138212: 6a 0a push $0xa <== NOT EXECUTED
138214: e8 7b 9e 00 00 call 142094 <putchar> <== NOT EXECUTED
138219: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rc = rtems_rfs_buffer_close (&fs);
13821c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13821f: 8d 85 14 ff ff ff lea -0xec(%ebp),%eax <== NOT EXECUTED
138225: 50 push %eax <== NOT EXECUTED
138226: e8 bc d7 ff ff call 1359e7 <rtems_rfs_buffer_close><== NOT EXECUTED
13822b: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc > 0)
13822d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
138230: 85 c0 test %eax,%eax <== NOT EXECUTED
138232: 7e 18 jle 13824c <rtems_rfs_format+0xa4c><== NOT EXECUTED
{
printf ("rtems-rfs: format: buffer close failed: %d: %s\n",
138234: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
138237: 50 push %eax <== NOT EXECUTED
138238: e8 7f b7 00 00 call 1439bc <strerror> <== NOT EXECUTED
13823d: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
138240: 50 push %eax <== NOT EXECUTED
138241: 53 push %ebx <== NOT EXECUTED
138242: 68 f3 e8 15 00 push $0x15e8f3 <== NOT EXECUTED
138247: e9 e8 01 00 00 jmp 138434 <rtems_rfs_format+0xc34><== NOT EXECUTED
int rc;
/*
* External API so returns -1.
*/
rc = rtems_rfs_fs_open (name, NULL,
13824c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13824f: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
138252: 50 push %eax <== NOT EXECUTED
138253: 6a 00 push $0x0 <== NOT EXECUTED
138255: 6a 06 push $0x6 <== NOT EXECUTED
138257: 6a 00 push $0x0 <== NOT EXECUTED
138259: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
13825c: e8 dc f0 ff ff call 13733d <rtems_rfs_fs_open> <== NOT EXECUTED
RTEMS_RFS_FS_FORCE_OPEN | RTEMS_RFS_FS_NO_LOCAL_CACHE,
0, &fs);
if (rc < 0)
138261: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
138264: 85 c0 test %eax,%eax <== NOT EXECUTED
138266: 79 26 jns 13828e <rtems_rfs_format+0xa8e><== NOT EXECUTED
{
printf ("rtems-rfs: format: file system open failed: %d: %s\n",
138268: e8 a7 5d 00 00 call 13e014 <__errno> <== NOT EXECUTED
13826d: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
138270: ff 30 pushl (%eax) <== NOT EXECUTED
138272: e8 45 b7 00 00 call 1439bc <strerror> <== NOT EXECUTED
138277: 89 c3 mov %eax,%ebx <== NOT EXECUTED
138279: e8 96 5d 00 00 call 13e014 <__errno> <== NOT EXECUTED
13827e: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
138281: 53 push %ebx <== NOT EXECUTED
138282: ff 30 pushl (%eax) <== NOT EXECUTED
138284: 68 23 e9 15 00 push $0x15e923 <== NOT EXECUTED
138289: e9 84 01 00 00 jmp 138412 <rtems_rfs_format+0xc12><== NOT EXECUTED
errno, strerror (errno));
return -1;
}
rc = rtems_rfs_inode_alloc (fs, RTEMS_RFS_ROOT_INO, &ino);
13828e: 56 push %esi <== NOT EXECUTED
13828f: 8d 45 e0 lea -0x20(%ebp),%eax <== NOT EXECUTED
138292: 50 push %eax <== NOT EXECUTED
138293: 6a 01 push $0x1 <== NOT EXECUTED
138295: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
138298: e8 3e 0a 00 00 call 138cdb <rtems_rfs_inode_alloc> <== NOT EXECUTED
13829d: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc > 0)
13829f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1382a2: 85 c0 test %eax,%eax <== NOT EXECUTED
1382a4: 7e 1a jle 1382c0 <rtems_rfs_format+0xac0><== NOT EXECUTED
{
printf ("rtems-rfs: format: inode allocation failed: %d: %s\n",
1382a6: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1382a9: 50 push %eax <== NOT EXECUTED
1382aa: e8 0d b7 00 00 call 1439bc <strerror> <== NOT EXECUTED
1382af: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
1382b2: 50 push %eax <== NOT EXECUTED
1382b3: 53 push %ebx <== NOT EXECUTED
1382b4: 68 57 e9 15 00 push $0x15e957 <== NOT EXECUTED
1382b9: e8 76 9c 00 00 call 141f34 <printf> <== NOT EXECUTED
1382be: eb 64 jmp 138324 <rtems_rfs_format+0xb24><== NOT EXECUTED
rc, strerror (rc));
rtems_rfs_fs_close (fs);
return rc;
}
if (ino != RTEMS_RFS_ROOT_INO)
1382c0: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
1382c3: 83 f8 01 cmp $0x1,%eax <== NOT EXECUTED
1382c6: 74 1b je 1382e3 <rtems_rfs_format+0xae3><== NOT EXECUTED
{
printf ("rtems-rfs: format: allocated inode not root ino: %" PRId32 "\n", ino);
1382c8: 53 push %ebx <== NOT EXECUTED
1382c9: 53 push %ebx <== NOT EXECUTED
1382ca: 50 push %eax <== NOT EXECUTED
1382cb: 68 8b e9 15 00 push $0x15e98b <== NOT EXECUTED
1382d0: e8 5f 9c 00 00 call 141f34 <printf> <== NOT EXECUTED
rtems_rfs_fs_close (fs);
1382d5: 59 pop %ecx <== NOT EXECUTED
1382d6: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
1382d9: e8 f9 ef ff ff call 1372d7 <rtems_rfs_fs_close> <== NOT EXECUTED
1382de: e9 34 01 00 00 jmp 138417 <rtems_rfs_format+0xc17><== NOT EXECUTED
return rc;
}
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
1382e3: 6a 01 push $0x1 <== NOT EXECUTED
1382e5: 8d 75 94 lea -0x6c(%ebp),%esi <== NOT EXECUTED
1382e8: 56 push %esi <== NOT EXECUTED
1382e9: 6a 01 push $0x1 <== NOT EXECUTED
1382eb: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
1382ee: e8 c4 08 00 00 call 138bb7 <rtems_rfs_inode_open> <== NOT EXECUTED
1382f3: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc > 0)
1382f5: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1382f8: 85 c0 test %eax,%eax <== NOT EXECUTED
1382fa: 7e 39 jle 138335 <rtems_rfs_format+0xb35><== NOT EXECUTED
{
printf ("rtems-rfs: format: inode open failed: %d: %s\n",
1382fc: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1382ff: 50 push %eax <== NOT EXECUTED
138300: e8 b7 b6 00 00 call 1439bc <strerror> <== NOT EXECUTED
138305: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
138308: 50 push %eax <== NOT EXECUTED
138309: 53 push %ebx <== NOT EXECUTED
13830a: 68 c1 e9 15 00 push $0x15e9c1 <== NOT EXECUTED
13830f: e8 20 9c 00 00 call 141f34 <printf> <== NOT EXECUTED
rc, strerror (rc));
rtems_rfs_group_bitmap_free (fs, true, ino);
138314: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
138317: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
13831a: 6a 01 push $0x1 <== NOT EXECUTED
13831c: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
13831f: e8 26 02 00 00 call 13854a <rtems_rfs_group_bitmap_free><== NOT EXECUTED
rtems_rfs_fs_close (fs);
138324: 5a pop %edx <== NOT EXECUTED
138325: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
138328: e8 aa ef ff ff call 1372d7 <rtems_rfs_fs_close> <== NOT EXECUTED
13832d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
138330: e9 ec 00 00 00 jmp 138421 <rtems_rfs_format+0xc21><== NOT EXECUTED
return rc;
}
rc = rtems_rfs_inode_initialise (&inode, 0,
138335: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
138338: 6a 00 push $0x0 <== NOT EXECUTED
13833a: 6a 00 push $0x0 <== NOT EXECUTED
13833c: 68 c9 41 00 00 push $0x41c9 <== NOT EXECUTED
138341: 6a 00 push $0x0 <== NOT EXECUTED
138343: 56 push %esi <== NOT EXECUTED
138344: e8 33 06 00 00 call 13897c <rtems_rfs_inode_initialise><== NOT EXECUTED
138349: 89 c3 mov %eax,%ebx <== NOT EXECUTED
(RTEMS_RFS_S_IFDIR | RTEMS_RFS_S_IRWXU |
RTEMS_RFS_S_IXGRP | RTEMS_RFS_S_IXOTH),
0, 0);
if (rc > 0)
13834b: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
13834e: 85 c0 test %eax,%eax <== NOT EXECUTED
138350: 7e 1b jle 13836d <rtems_rfs_format+0xb6d><== NOT EXECUTED
printf ("rtems-rfs: format: inode initialise failed: %d: %s\n",
138352: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
138355: 50 push %eax <== NOT EXECUTED
138356: e8 61 b6 00 00 call 1439bc <strerror> <== NOT EXECUTED
13835b: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
13835e: 50 push %eax <== NOT EXECUTED
13835f: 53 push %ebx <== NOT EXECUTED
138360: 68 ef e9 15 00 push $0x15e9ef <== NOT EXECUTED
138365: e8 ca 9b 00 00 call 141f34 <printf> <== NOT EXECUTED
13836a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rc, strerror (rc));
rc = rtems_rfs_dir_add_entry (fs, &inode, ".", 1, ino);
13836d: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
138370: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
138373: 6a 01 push $0x1 <== NOT EXECUTED
138375: 68 be 87 15 00 push $0x1587be <== NOT EXECUTED
13837a: 8d 45 94 lea -0x6c(%ebp),%eax <== NOT EXECUTED
13837d: 50 push %eax <== NOT EXECUTED
13837e: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
138381: e8 4a e0 ff ff call 1363d0 <rtems_rfs_dir_add_entry><== NOT EXECUTED
138386: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc > 0)
138388: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
13838b: 85 c0 test %eax,%eax <== NOT EXECUTED
13838d: 7e 1b jle 1383aa <rtems_rfs_format+0xbaa><== NOT EXECUTED
printf ("rtems-rfs: format: directory add failed: %d: %s\n",
13838f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
138392: 50 push %eax <== NOT EXECUTED
138393: e8 24 b6 00 00 call 1439bc <strerror> <== NOT EXECUTED
138398: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
13839b: 50 push %eax <== NOT EXECUTED
13839c: 53 push %ebx <== NOT EXECUTED
13839d: 68 23 ea 15 00 push $0x15ea23 <== NOT EXECUTED
1383a2: e8 8d 9b 00 00 call 141f34 <printf> <== NOT EXECUTED
1383a7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rc, strerror (rc));
rc = rtems_rfs_inode_close (fs, &inode);
1383aa: 50 push %eax <== NOT EXECUTED
1383ab: 50 push %eax <== NOT EXECUTED
1383ac: 8d 45 94 lea -0x6c(%ebp),%eax <== NOT EXECUTED
1383af: 50 push %eax <== NOT EXECUTED
1383b0: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
1383b3: e8 90 07 00 00 call 138b48 <rtems_rfs_inode_close> <== NOT EXECUTED
1383b8: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc > 0)
1383ba: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1383bd: 85 c0 test %eax,%eax <== NOT EXECUTED
1383bf: 7e 1b jle 1383dc <rtems_rfs_format+0xbdc><== NOT EXECUTED
printf ("rtems-rfs: format: inode close failed: %d: %s\n",
1383c1: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1383c4: 50 push %eax <== NOT EXECUTED
1383c5: e8 f2 b5 00 00 call 1439bc <strerror> <== NOT EXECUTED
1383ca: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
1383cd: 50 push %eax <== NOT EXECUTED
1383ce: 53 push %ebx <== NOT EXECUTED
1383cf: 68 54 ea 15 00 push $0x15ea54 <== NOT EXECUTED
1383d4: e8 5b 9b 00 00 call 141f34 <printf> <== NOT EXECUTED
1383d9: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rc, strerror (rc));
rc = rtems_rfs_fs_close (fs);
1383dc: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1383df: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
1383e2: e8 f0 ee ff ff call 1372d7 <rtems_rfs_fs_close> <== NOT EXECUTED
1383e7: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc < 0)
1383e9: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1383ec: 83 f8 00 cmp $0x0,%eax <== NOT EXECUTED
1383ef: 7d 2a jge 13841b <rtems_rfs_format+0xc1b><== NOT EXECUTED
printf ("rtems-rfs: format: file system close failed: %d: %s\n",
1383f1: e8 1e 5c 00 00 call 13e014 <__errno> <== NOT EXECUTED
1383f6: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1383f9: ff 30 pushl (%eax) <== NOT EXECUTED
1383fb: e8 bc b5 00 00 call 1439bc <strerror> <== NOT EXECUTED
138400: 89 c3 mov %eax,%ebx <== NOT EXECUTED
138402: e8 0d 5c 00 00 call 13e014 <__errno> <== NOT EXECUTED
138407: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
13840a: 53 push %ebx <== NOT EXECUTED
13840b: ff 30 pushl (%eax) <== NOT EXECUTED
13840d: 68 83 ea 15 00 push $0x15ea83 <== NOT EXECUTED
138412: e8 1d 9b 00 00 call 141f34 <printf> <== NOT EXECUTED
138417: 31 c0 xor %eax,%eax <== NOT EXECUTED
138419: eb 21 jmp 13843c <rtems_rfs_format+0xc3c><== NOT EXECUTED
rc, strerror (rc));
return -1;
}
rc = rtems_rfs_write_root_dir (name);
if (rc > 0)
13841b: 7f 04 jg 138421 <rtems_rfs_format+0xc21><== NOT EXECUTED
13841d: 31 c0 xor %eax,%eax <== NOT EXECUTED
13841f: eb 1e jmp 13843f <rtems_rfs_format+0xc3f><== NOT EXECUTED
{
printf ("rtems-rfs: format: writing root dir failed: %d: %s\n",
138421: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
138424: 53 push %ebx <== NOT EXECUTED
138425: e8 92 b5 00 00 call 1439bc <strerror> <== NOT EXECUTED
13842a: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
13842d: 50 push %eax <== NOT EXECUTED
13842e: 53 push %ebx <== NOT EXECUTED
13842f: 68 b8 ea 15 00 push $0x15eab8 <== NOT EXECUTED
138434: e8 fb 9a 00 00 call 141f34 <printf> <== NOT EXECUTED
138439: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
rc, strerror (rc));
return -1;
13843c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
return 0;
}
13843f: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
138442: 5b pop %ebx <== NOT EXECUTED
138443: 5e pop %esi <== NOT EXECUTED
138444: 5f pop %edi <== NOT EXECUTED
138445: c9 leave <== NOT EXECUTED
138446: c3 ret <== NOT EXECUTED
* Check the configuration data.
*/
if (!rtems_rfs_check_config (&fs, config))
return -1;
if (config->verbose)
138447: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
13844a: 80 7a 15 00 cmpb $0x0,0x15(%edx) <== NOT EXECUTED
13844e: 0f 84 86 f7 ff ff je 137bda <rtems_rfs_format+0x3da><== NOT EXECUTED
138454: e9 77 f6 ff ff jmp 137ad0 <rtems_rfs_format+0x2d0><== NOT EXECUTED
{
printf ("rtems-rfs: format: superblock write failed\n");
return -1;
}
for (group = 0; group < fs.group_count; group++)
138459: ff 85 04 ff ff ff incl -0xfc(%ebp) <== NOT EXECUTED
13845f: e9 90 fd ff ff jmp 1381f4 <rtems_rfs_format+0x9f4><== NOT EXECUTED
001372d7 <rtems_rfs_fs_close>:
return 0;
}
int
rtems_rfs_fs_close (rtems_rfs_file_system* fs)
{
1372d7: 55 push %ebp <== NOT EXECUTED
1372d8: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1372da: 56 push %esi <== NOT EXECUTED
1372db: 53 push %ebx <== NOT EXECUTED
1372dc: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
1372df: 31 f6 xor %esi,%esi <== NOT EXECUTED
int group;
if (rtems_rfs_trace (RTEMS_RFS_TRACE_CLOSE))
printf ("rtems-rfs: close\n");
for (group = 0; group < fs->group_count; group++)
1372e1: eb 13 jmp 1372f6 <rtems_rfs_fs_close+0x1f><== NOT EXECUTED
rtems_rfs_group_close (fs, &fs->groups[group]);
1372e3: 50 push %eax <== NOT EXECUTED
1372e4: 50 push %eax <== NOT EXECUTED
1372e5: 6b c6 50 imul $0x50,%esi,%eax <== NOT EXECUTED
1372e8: 03 43 1c add 0x1c(%ebx),%eax <== NOT EXECUTED
1372eb: 50 push %eax <== NOT EXECUTED
1372ec: 53 push %ebx <== NOT EXECUTED
1372ed: e8 e7 13 00 00 call 1386d9 <rtems_rfs_group_close> <== NOT EXECUTED
int group;
if (rtems_rfs_trace (RTEMS_RFS_TRACE_CLOSE))
printf ("rtems-rfs: close\n");
for (group = 0; group < fs->group_count; group++)
1372f2: 46 inc %esi <== NOT EXECUTED
1372f3: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1372f6: 3b 73 20 cmp 0x20(%ebx),%esi <== NOT EXECUTED
1372f9: 7c e8 jl 1372e3 <rtems_rfs_fs_close+0xc><== NOT EXECUTED
rtems_rfs_group_close (fs, &fs->groups[group]);
rtems_rfs_buffer_close (fs);
1372fb: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1372fe: 53 push %ebx <== NOT EXECUTED
1372ff: e8 e3 e6 ff ff call 1359e7 <rtems_rfs_buffer_close><== NOT EXECUTED
free (fs);
137304: 89 1c 24 mov %ebx,(%esp) <== NOT EXECUTED
137307: e8 90 5b fd ff call 10ce9c <free> <== NOT EXECUTED
return 0;
}
13730c: 31 c0 xor %eax,%eax <== NOT EXECUTED
13730e: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
137311: 5b pop %ebx <== NOT EXECUTED
137312: 5e pop %esi <== NOT EXECUTED
137313: c9 leave <== NOT EXECUTED
137314: c3 ret <== NOT EXECUTED
001372c6 <rtems_rfs_fs_media_size>:
uint64_t
rtems_rfs_fs_media_size (rtems_rfs_file_system* fs)
{
1372c6: 55 push %ebp <== NOT EXECUTED
1372c7: 89 e5 mov %esp,%ebp <== NOT EXECUTED
uint64_t media_blocks = (uint64_t) rtems_rfs_fs_media_blocks (fs);
1372c9: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
1372cc: 8b 50 0c mov 0xc(%eax),%edx <== NOT EXECUTED
1372cf: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED
1372d2: f7 62 24 mull 0x24(%edx) <== NOT EXECUTED
uint64_t media_block_size = (uint64_t) rtems_rfs_fs_media_block_size (fs);
return media_blocks * media_block_size;
}
1372d5: c9 leave <== NOT EXECUTED
1372d6: c3 ret <== NOT EXECUTED
0013733d <rtems_rfs_fs_open>:
rtems_rfs_fs_open (const char* name,
void* user,
uint32_t flags,
uint32_t max_held_buffers,
rtems_rfs_file_system** fs)
{
13733d: 55 push %ebp <== NOT EXECUTED
13733e: 89 e5 mov %esp,%ebp <== NOT EXECUTED
137340: 57 push %edi <== NOT EXECUTED
137341: 56 push %esi <== NOT EXECUTED
137342: 53 push %ebx <== NOT EXECUTED
137343: 83 ec 78 sub $0x78,%esp <== NOT EXECUTED
int rc;
if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))
printf ("rtems-rfs: open: %s\n", name);
*fs = malloc (sizeof (rtems_rfs_file_system));
137346: 68 80 00 00 00 push $0x80 <== NOT EXECUTED
13734b: e8 98 60 fd ff call 10d3e8 <malloc> <== NOT EXECUTED
137350: 89 c2 mov %eax,%edx <== NOT EXECUTED
137352: 8b 45 18 mov 0x18(%ebp),%eax <== NOT EXECUTED
137355: 89 10 mov %edx,(%eax) <== NOT EXECUTED
if (!*fs)
137357: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13735a: 85 d2 test %edx,%edx <== NOT EXECUTED
13735c: 75 13 jne 137371 <rtems_rfs_fs_open+0x34><== NOT EXECUTED
{
if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))
printf ("rtems-rfs: open: no memory for file system data\n");
errno = ENOMEM;
13735e: e8 b1 6c 00 00 call 13e014 <__errno> <== NOT EXECUTED
137363: c7 00 0c 00 00 00 movl $0xc,(%eax) <== NOT EXECUTED
137369: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
return -1;
13736c: e9 e7 03 00 00 jmp 137758 <rtems_rfs_fs_open+0x41b><== NOT EXECUTED
}
memset (*fs, 0, sizeof (rtems_rfs_file_system));
137371: b9 20 00 00 00 mov $0x20,%ecx <== NOT EXECUTED
137376: 31 c0 xor %eax,%eax <== NOT EXECUTED
137378: 89 d7 mov %edx,%edi <== NOT EXECUTED
13737a: f3 ab rep stos %eax,%es:(%edi) <== NOT EXECUTED
(*fs)->user = user;
13737c: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
13737f: 89 42 7c mov %eax,0x7c(%edx) <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
137382: 8d 42 44 lea 0x44(%edx),%eax <== NOT EXECUTED
137385: 89 42 40 mov %eax,0x40(%edx) <== NOT EXECUTED
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
137388: 8d 42 40 lea 0x40(%edx),%eax <== NOT EXECUTED
13738b: 89 42 48 mov %eax,0x48(%edx) <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
13738e: 8d 42 54 lea 0x54(%edx),%eax <== NOT EXECUTED
137391: 89 42 50 mov %eax,0x50(%edx) <== NOT EXECUTED
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
137394: 8d 42 50 lea 0x50(%edx),%eax <== NOT EXECUTED
137397: 89 42 58 mov %eax,0x58(%edx) <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
13739a: 8d 42 64 lea 0x64(%edx),%eax <== NOT EXECUTED
13739d: 89 42 60 mov %eax,0x60(%edx) <== NOT EXECUTED
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
1373a0: 8d 42 60 lea 0x60(%edx),%eax <== NOT EXECUTED
1373a3: 89 42 68 mov %eax,0x68(%edx) <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
1373a6: 8d 42 74 lea 0x74(%edx),%eax <== NOT EXECUTED
1373a9: 89 42 70 mov %eax,0x70(%edx) <== NOT EXECUTED
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
1373ac: 8d 42 70 lea 0x70(%edx),%eax <== NOT EXECUTED
1373af: 89 42 78 mov %eax,0x78(%edx) <== NOT EXECUTED
rtems_chain_initialize_empty (&(*fs)->buffers);
rtems_chain_initialize_empty (&(*fs)->release);
rtems_chain_initialize_empty (&(*fs)->release_modified);
rtems_chain_initialize_empty (&(*fs)->file_shares);
(*fs)->max_held_buffers = max_held_buffers;
1373b2: 8b 45 14 mov 0x14(%ebp),%eax <== NOT EXECUTED
1373b5: 89 42 3c mov %eax,0x3c(%edx) <== NOT EXECUTED
(*fs)->buffers_count = 0;
(*fs)->release_count = 0;
(*fs)->release_modified_count = 0;
(*fs)->flags = flags;
1373b8: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
1373bb: 89 02 mov %eax,(%edx) <== NOT EXECUTED
group_base = 0;
/*
* Open the buffer interface.
*/
rc = rtems_rfs_buffer_open (name, *fs);
1373bd: 50 push %eax <== NOT EXECUTED
1373be: 50 push %eax <== NOT EXECUTED
1373bf: 52 push %edx <== NOT EXECUTED
1373c0: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
1373c3: e8 49 e6 ff ff call 135a11 <rtems_rfs_buffer_open> <== NOT EXECUTED
1373c8: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc > 0)
1373ca: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1373cd: 85 c0 test %eax,%eax <== NOT EXECUTED
1373cf: 7e 08 jle 1373d9 <rtems_rfs_fs_open+0x9c><== NOT EXECUTED
{
free (*fs);
1373d1: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1373d4: e9 5c 03 00 00 jmp 137735 <rtems_rfs_fs_open+0x3f8><== NOT EXECUTED
rc, strerror (rc));
errno = rc;
return -1;
}
rc = rtems_rfs_fs_read_superblock (*fs);
1373d9: 8b 75 18 mov 0x18(%ebp),%esi <== NOT EXECUTED
1373dc: 8b 1e mov (%esi),%ebx <== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_open (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
handle->dirty = false;
1373de: c6 45 dc 00 movb $0x0,-0x24(%ebp) <== NOT EXECUTED
handle->bnum = 0;
1373e2: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp) <== NOT EXECUTED
handle->buffer = NULL;
1373e9: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) <== NOT EXECUTED
printf ("rtems-rfs: read-superblock: handle open failed: %d: %s\n",
rc, strerror (rc));
return rc;
}
rc = rtems_rfs_buffer_handle_request (fs, &handle, 0, true);
1373f0: 6a 01 push $0x1 <== NOT EXECUTED
1373f2: 6a 00 push $0x0 <== NOT EXECUTED
1373f4: 8d 7d dc lea -0x24(%ebp),%edi <== NOT EXECUTED
1373f7: 57 push %edi <== NOT EXECUTED
1373f8: 53 push %ebx <== NOT EXECUTED
1373f9: e8 5c e7 ff ff call 135b5a <rtems_rfs_buffer_handle_request><== NOT EXECUTED
1373fe: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
137400: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
137403: 85 c0 test %eax,%eax <== NOT EXECUTED
137405: 0f 8f 6d 02 00 00 jg 137678 <rtems_rfs_fs_open+0x33b><== NOT EXECUTED
printf ("rtems-rfs: read-superblock: request failed%d: %s\n",
rc, strerror (rc));
return rc;
}
sb = rtems_rfs_buffer_data (&handle);
13740b: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
13740e: 8b 40 20 mov 0x20(%eax),%eax <== NOT EXECUTED
137411: 89 45 94 mov %eax,-0x6c(%ebp) <== NOT EXECUTED
#define read_sb(_o) rtems_rfs_read_u32 (sb + (_o))
if (read_sb (RTEMS_RFS_SB_OFFSET_MAGIC) != RTEMS_RFS_SB_MAGIC)
137414: 0f b6 50 03 movzbl 0x3(%eax),%edx <== NOT EXECUTED
137418: 0f b6 08 movzbl (%eax),%ecx <== NOT EXECUTED
13741b: c1 e1 18 shl $0x18,%ecx <== NOT EXECUTED
13741e: 09 ca or %ecx,%edx <== NOT EXECUTED
137420: 0f b6 48 01 movzbl 0x1(%eax),%ecx <== NOT EXECUTED
137424: c1 e1 10 shl $0x10,%ecx <== NOT EXECUTED
137427: 09 ca or %ecx,%edx <== NOT EXECUTED
137429: 0f b6 48 02 movzbl 0x2(%eax),%ecx <== NOT EXECUTED
13742d: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
137430: 09 ca or %ecx,%edx <== NOT EXECUTED
137432: 81 fa 01 20 09 28 cmp $0x28092001,%edx <== NOT EXECUTED
137438: 74 04 je 13743e <rtems_rfs_fs_open+0x101><== NOT EXECUTED
{
if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))
printf ("rtems-rfs: read-superblock: invalid superblock, bad magic\n");
rtems_rfs_buffer_handle_close (fs, &handle);
13743a: 89 fa mov %edi,%edx <== NOT EXECUTED
13743c: eb 71 jmp 1374af <rtems_rfs_fs_open+0x172><== NOT EXECUTED
return EIO;
}
fs->blocks = read_sb (RTEMS_RFS_SB_OFFSET_BLOCKS);
13743e: 8b 45 94 mov -0x6c(%ebp),%eax <== NOT EXECUTED
137441: 0f b6 70 0c movzbl 0xc(%eax),%esi <== NOT EXECUTED
137445: c1 e6 18 shl $0x18,%esi <== NOT EXECUTED
137448: 0f b6 48 0d movzbl 0xd(%eax),%ecx <== NOT EXECUTED
13744c: c1 e1 10 shl $0x10,%ecx <== NOT EXECUTED
13744f: 09 ce or %ecx,%esi <== NOT EXECUTED
137451: 0f b6 48 0f movzbl 0xf(%eax),%ecx <== NOT EXECUTED
137455: 09 ce or %ecx,%esi <== NOT EXECUTED
137457: 0f b6 48 0e movzbl 0xe(%eax),%ecx <== NOT EXECUTED
13745b: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
13745e: 09 ce or %ecx,%esi <== NOT EXECUTED
137460: 89 73 04 mov %esi,0x4(%ebx) <== NOT EXECUTED
fs->block_size = read_sb (RTEMS_RFS_SB_OFFSET_BLOCK_SIZE);
137463: 0f b6 78 08 movzbl 0x8(%eax),%edi <== NOT EXECUTED
137467: c1 e7 18 shl $0x18,%edi <== NOT EXECUTED
13746a: 0f b6 48 09 movzbl 0x9(%eax),%ecx <== NOT EXECUTED
13746e: c1 e1 10 shl $0x10,%ecx <== NOT EXECUTED
137471: 09 cf or %ecx,%edi <== NOT EXECUTED
137473: 0f b6 48 0b movzbl 0xb(%eax),%ecx <== NOT EXECUTED
137477: 09 cf or %ecx,%edi <== NOT EXECUTED
137479: 0f b6 48 0a movzbl 0xa(%eax),%ecx <== NOT EXECUTED
13747d: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
137480: 09 cf or %ecx,%edi <== NOT EXECUTED
137482: 89 7b 08 mov %edi,0x8(%ebx) <== NOT EXECUTED
}
uint64_t
rtems_rfs_fs_media_size (rtems_rfs_file_system* fs)
{
uint64_t media_blocks = (uint64_t) rtems_rfs_fs_media_blocks (fs);
137485: 8b 4b 0c mov 0xc(%ebx),%ecx <== NOT EXECUTED
}
fs->blocks = read_sb (RTEMS_RFS_SB_OFFSET_BLOCKS);
fs->block_size = read_sb (RTEMS_RFS_SB_OFFSET_BLOCK_SIZE);
if (rtems_rfs_fs_size(fs) > rtems_rfs_fs_media_size (fs))
137488: 89 f8 mov %edi,%eax <== NOT EXECUTED
13748a: f7 e6 mul %esi <== NOT EXECUTED
13748c: 89 45 a0 mov %eax,-0x60(%ebp) <== NOT EXECUTED
13748f: 89 55 a4 mov %edx,-0x5c(%ebp) <== NOT EXECUTED
}
uint64_t
rtems_rfs_fs_media_size (rtems_rfs_file_system* fs)
{
uint64_t media_blocks = (uint64_t) rtems_rfs_fs_media_blocks (fs);
137492: 8b 71 1c mov 0x1c(%ecx),%esi <== NOT EXECUTED
137495: 8b 41 24 mov 0x24(%ecx),%eax <== NOT EXECUTED
137498: f7 e6 mul %esi <== NOT EXECUTED
13749a: 89 45 88 mov %eax,-0x78(%ebp) <== NOT EXECUTED
13749d: 89 55 8c mov %edx,-0x74(%ebp) <== NOT EXECUTED
1374a0: 39 55 a4 cmp %edx,-0x5c(%ebp) <== NOT EXECUTED
1374a3: 72 1b jb 1374c0 <rtems_rfs_fs_open+0x183><== NOT EXECUTED
1374a5: 77 05 ja 1374ac <rtems_rfs_fs_open+0x16f><== NOT EXECUTED
1374a7: 39 45 a0 cmp %eax,-0x60(%ebp) <== NOT EXECUTED
1374aa: 76 14 jbe 1374c0 <rtems_rfs_fs_open+0x183><== NOT EXECUTED
if (rtems_rfs_fs_size(fs) > rtems_rfs_fs_media_size (fs))
{
if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))
printf ("rtems-rfs: read-superblock: invalid superblock block/size count\n");
rtems_rfs_buffer_handle_close (fs, &handle);
1374ac: 8d 55 dc lea -0x24(%ebp),%edx <== NOT EXECUTED
1374af: 89 d8 mov %ebx,%eax <== NOT EXECUTED
1374b1: e8 5f fe ff ff call 137315 <rtems_rfs_buffer_handle_close><== NOT EXECUTED
1374b6: be 05 00 00 00 mov $0x5,%esi <== NOT EXECUTED
1374bb: e9 b8 01 00 00 jmp 137678 <rtems_rfs_fs_open+0x33b><== NOT EXECUTED
read_sb (RTEMS_RFS_SB_OFFSET_VERSION), RTEMS_RFS_VERSION_MASK);
rtems_rfs_buffer_handle_close (fs, &handle);
return EIO;
}
if (read_sb (RTEMS_RFS_SB_OFFSET_INODE_SIZE) != RTEMS_RFS_INODE_SIZE)
1374c0: 8b 55 94 mov -0x6c(%ebp),%edx <== NOT EXECUTED
1374c3: 0f b6 52 24 movzbl 0x24(%edx),%edx <== NOT EXECUTED
1374c7: c1 e2 18 shl $0x18,%edx <== NOT EXECUTED
1374ca: 89 55 a0 mov %edx,-0x60(%ebp) <== NOT EXECUTED
1374cd: 8b 75 94 mov -0x6c(%ebp),%esi <== NOT EXECUTED
1374d0: 0f b6 56 25 movzbl 0x25(%esi),%edx <== NOT EXECUTED
1374d4: c1 e2 10 shl $0x10,%edx <== NOT EXECUTED
1374d7: 09 55 a0 or %edx,-0x60(%ebp) <== NOT EXECUTED
1374da: 0f b6 56 27 movzbl 0x27(%esi),%edx <== NOT EXECUTED
1374de: 09 55 a0 or %edx,-0x60(%ebp) <== NOT EXECUTED
1374e1: 0f b6 56 26 movzbl 0x26(%esi),%edx <== NOT EXECUTED
1374e5: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
1374e8: 09 55 a0 or %edx,-0x60(%ebp) <== NOT EXECUTED
1374eb: 83 7d a0 38 cmpl $0x38,-0x60(%ebp) <== NOT EXECUTED
1374ef: 75 bb jne 1374ac <rtems_rfs_fs_open+0x16f><== NOT EXECUTED
read_sb (RTEMS_RFS_SB_OFFSET_VERSION), RTEMS_RFS_VERSION_MASK);
rtems_rfs_buffer_handle_close (fs, &handle);
return EIO;
}
fs->bad_blocks = read_sb (RTEMS_RFS_SB_OFFSET_BAD_BLOCKS);
1374f1: 8b 45 94 mov -0x6c(%ebp),%eax <== NOT EXECUTED
1374f4: 0f b6 50 10 movzbl 0x10(%eax),%edx <== NOT EXECUTED
1374f8: c1 e2 18 shl $0x18,%edx <== NOT EXECUTED
1374fb: 0f b6 48 11 movzbl 0x11(%eax),%ecx <== NOT EXECUTED
1374ff: c1 e1 10 shl $0x10,%ecx <== NOT EXECUTED
137502: 09 ca or %ecx,%edx <== NOT EXECUTED
137504: 0f b6 48 13 movzbl 0x13(%eax),%ecx <== NOT EXECUTED
137508: 09 ca or %ecx,%edx <== NOT EXECUTED
13750a: 0f b6 48 12 movzbl 0x12(%eax),%ecx <== NOT EXECUTED
13750e: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
137511: 09 ca or %ecx,%edx <== NOT EXECUTED
137513: 89 53 14 mov %edx,0x14(%ebx) <== NOT EXECUTED
fs->max_name_length = read_sb (RTEMS_RFS_SB_OFFSET_MAX_NAME_LENGTH);
137516: 0f b6 50 14 movzbl 0x14(%eax),%edx <== NOT EXECUTED
13751a: c1 e2 18 shl $0x18,%edx <== NOT EXECUTED
13751d: 0f b6 48 15 movzbl 0x15(%eax),%ecx <== NOT EXECUTED
137521: c1 e1 10 shl $0x10,%ecx <== NOT EXECUTED
137524: 09 ca or %ecx,%edx <== NOT EXECUTED
137526: 0f b6 48 17 movzbl 0x17(%eax),%ecx <== NOT EXECUTED
13752a: 09 ca or %ecx,%edx <== NOT EXECUTED
13752c: 0f b6 48 16 movzbl 0x16(%eax),%ecx <== NOT EXECUTED
137530: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
137533: 09 ca or %ecx,%edx <== NOT EXECUTED
137535: 89 53 18 mov %edx,0x18(%ebx) <== NOT EXECUTED
fs->group_count = read_sb (RTEMS_RFS_SB_OFFSET_GROUPS);
137538: 0f b6 50 18 movzbl 0x18(%eax),%edx <== NOT EXECUTED
13753c: c1 e2 18 shl $0x18,%edx <== NOT EXECUTED
13753f: 0f b6 48 19 movzbl 0x19(%eax),%ecx <== NOT EXECUTED
137543: c1 e1 10 shl $0x10,%ecx <== NOT EXECUTED
137546: 09 ca or %ecx,%edx <== NOT EXECUTED
137548: 0f b6 48 1b movzbl 0x1b(%eax),%ecx <== NOT EXECUTED
13754c: 09 ca or %ecx,%edx <== NOT EXECUTED
13754e: 0f b6 48 1a movzbl 0x1a(%eax),%ecx <== NOT EXECUTED
137552: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
137555: 09 ca or %ecx,%edx <== NOT EXECUTED
137557: 89 53 20 mov %edx,0x20(%ebx) <== NOT EXECUTED
fs->group_blocks = read_sb (RTEMS_RFS_SB_OFFSET_GROUP_BLOCKS);
13755a: 0f b6 70 1c movzbl 0x1c(%eax),%esi <== NOT EXECUTED
13755e: c1 e6 18 shl $0x18,%esi <== NOT EXECUTED
137561: 0f b6 48 1d movzbl 0x1d(%eax),%ecx <== NOT EXECUTED
137565: c1 e1 10 shl $0x10,%ecx <== NOT EXECUTED
137568: 09 ce or %ecx,%esi <== NOT EXECUTED
13756a: 0f b6 48 1f movzbl 0x1f(%eax),%ecx <== NOT EXECUTED
13756e: 09 ce or %ecx,%esi <== NOT EXECUTED
137570: 0f b6 48 1e movzbl 0x1e(%eax),%ecx <== NOT EXECUTED
137574: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
137577: 09 ce or %ecx,%esi <== NOT EXECUTED
137579: 89 75 9c mov %esi,-0x64(%ebp) <== NOT EXECUTED
13757c: 89 73 24 mov %esi,0x24(%ebx) <== NOT EXECUTED
fs->group_inodes = read_sb (RTEMS_RFS_SB_OFFSET_GROUP_INODES);
13757f: 0f b6 48 20 movzbl 0x20(%eax),%ecx <== NOT EXECUTED
137583: c1 e1 18 shl $0x18,%ecx <== NOT EXECUTED
137586: 0f b6 70 21 movzbl 0x21(%eax),%esi <== NOT EXECUTED
13758a: c1 e6 10 shl $0x10,%esi <== NOT EXECUTED
13758d: 09 f1 or %esi,%ecx <== NOT EXECUTED
13758f: 0f b6 70 23 movzbl 0x23(%eax),%esi <== NOT EXECUTED
137593: 09 f1 or %esi,%ecx <== NOT EXECUTED
137595: 0f b6 40 22 movzbl 0x22(%eax),%eax <== NOT EXECUTED
137599: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
13759c: 09 c1 or %eax,%ecx <== NOT EXECUTED
13759e: 89 4b 28 mov %ecx,0x28(%ebx) <== NOT EXECUTED
fs->blocks_per_block =
rtems_rfs_fs_block_size (fs) / sizeof (rtems_rfs_inode_block);
1375a1: 89 fe mov %edi,%esi <== NOT EXECUTED
1375a3: c1 ee 02 shr $0x2,%esi <== NOT EXECUTED
fs->max_name_length = read_sb (RTEMS_RFS_SB_OFFSET_MAX_NAME_LENGTH);
fs->group_count = read_sb (RTEMS_RFS_SB_OFFSET_GROUPS);
fs->group_blocks = read_sb (RTEMS_RFS_SB_OFFSET_GROUP_BLOCKS);
fs->group_inodes = read_sb (RTEMS_RFS_SB_OFFSET_GROUP_INODES);
fs->blocks_per_block =
1375a6: 89 73 30 mov %esi,0x30(%ebx) <== NOT EXECUTED
rtems_rfs_fs_block_size (fs) / sizeof (rtems_rfs_inode_block);
fs->block_map_singly_blocks =
1375a9: 8d 04 b6 lea (%esi,%esi,4),%eax <== NOT EXECUTED
1375ac: 89 43 34 mov %eax,0x34(%ebx) <== NOT EXECUTED
fs->blocks_per_block * RTEMS_RFS_INODE_BLOCKS;
fs->block_map_doubly_blocks =
1375af: 0f af f6 imul %esi,%esi <== NOT EXECUTED
1375b2: 8d 34 b6 lea (%esi,%esi,4),%esi <== NOT EXECUTED
1375b5: 89 73 38 mov %esi,0x38(%ebx) <== NOT EXECUTED
fs->blocks_per_block * fs->blocks_per_block * RTEMS_RFS_INODE_BLOCKS;
fs->inodes = fs->group_count * fs->group_inodes;
1375b8: 0f af d1 imul %ecx,%edx <== NOT EXECUTED
1375bb: 89 53 10 mov %edx,0x10(%ebx) <== NOT EXECUTED
fs->inodes_per_block = fs->block_size / RTEMS_RFS_INODE_SIZE;
1375be: 89 f8 mov %edi,%eax <== NOT EXECUTED
1375c0: 31 d2 xor %edx,%edx <== NOT EXECUTED
1375c2: f7 75 a0 divl -0x60(%ebp) <== NOT EXECUTED
1375c5: 89 43 2c mov %eax,0x2c(%ebx) <== NOT EXECUTED
if (fs->group_blocks >
1375c8: c1 e7 03 shl $0x3,%edi <== NOT EXECUTED
1375cb: 39 7d 9c cmp %edi,-0x64(%ebp) <== NOT EXECUTED
1375ce: 0f 87 d8 fe ff ff ja 1374ac <rtems_rfs_fs_open+0x16f><== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))
printf ("rtems-rfs: read-superblock: groups blocks larger than block bits\n");
return EIO;
}
rtems_rfs_buffer_handle_close (fs, &handle);
1375d4: 8d 55 dc lea -0x24(%ebp),%edx <== NOT EXECUTED
1375d7: 89 d8 mov %ebx,%eax <== NOT EXECUTED
1375d9: e8 37 fd ff ff call 137315 <rtems_rfs_buffer_handle_close><== NOT EXECUTED
/*
* Change the block size to the value in the superblock.
*/
rc = rtems_rfs_buffer_setblksize (fs, rtems_rfs_fs_block_size (fs));
1375de: 57 push %edi <== NOT EXECUTED
1375df: 57 push %edi <== NOT EXECUTED
1375e0: ff 73 08 pushl 0x8(%ebx) <== NOT EXECUTED
1375e3: 53 push %ebx <== NOT EXECUTED
1375e4: e8 c0 e3 ff ff call 1359a9 <rtems_rfs_buffer_setblksize><== NOT EXECUTED
1375e9: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
1375eb: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1375ee: 85 c0 test %eax,%eax <== NOT EXECUTED
1375f0: 7f 6f jg 137661 <rtems_rfs_fs_open+0x324><== NOT EXECUTED
printf ("rtems-rfs: read-superblock: invalid superblock block size%d: %s\n",
rc, strerror (rc));
return rc;
}
fs->groups = calloc (fs->group_count, sizeof (rtems_rfs_group));
1375f2: 56 push %esi <== NOT EXECUTED
1375f3: 56 push %esi <== NOT EXECUTED
1375f4: 6a 50 push $0x50 <== NOT EXECUTED
1375f6: ff 73 20 pushl 0x20(%ebx) <== NOT EXECUTED
1375f9: e8 ce 53 fd ff call 10c9cc <calloc> <== NOT EXECUTED
1375fe: 89 43 1c mov %eax,0x1c(%ebx) <== NOT EXECUTED
if (!fs->groups)
137601: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
137604: 31 ff xor %edi,%edi <== NOT EXECUTED
137606: 85 c0 test %eax,%eax <== NOT EXECUTED
137608: 75 64 jne 13766e <rtems_rfs_fs_open+0x331><== NOT EXECUTED
{
rtems_rfs_buffer_handle_close (fs, &handle);
13760a: 8d 55 dc lea -0x24(%ebp),%edx <== NOT EXECUTED
13760d: 89 d8 mov %ebx,%eax <== NOT EXECUTED
13760f: e8 01 fd ff ff call 137315 <rtems_rfs_buffer_handle_close><== NOT EXECUTED
137614: be 0c 00 00 00 mov $0xc,%esi <== NOT EXECUTED
137619: eb 5d jmp 137678 <rtems_rfs_fs_open+0x33b><== NOT EXECUTED
* close everything.
*/
for (group = 0; group < fs->group_count; group++)
{
rc = rtems_rfs_group_open (fs,
rtems_rfs_fs_block (fs, group, 0),
13761b: 8b 53 24 mov 0x24(%ebx),%edx <== NOT EXECUTED
* know how far the initialisation has gone if an error occurs and we need to
* close everything.
*/
for (group = 0; group < fs->group_count; group++)
{
rc = rtems_rfs_group_open (fs,
13761e: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
137621: 6b c7 50 imul $0x50,%edi,%eax <== NOT EXECUTED
137624: 03 43 1c add 0x1c(%ebx),%eax <== NOT EXECUTED
137627: 50 push %eax <== NOT EXECUTED
137628: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
13762b: 52 push %edx <== NOT EXECUTED
13762c: 0f af d7 imul %edi,%edx <== NOT EXECUTED
13762f: 42 inc %edx <== NOT EXECUTED
137630: 52 push %edx <== NOT EXECUTED
137631: 53 push %ebx <== NOT EXECUTED
137632: e8 25 11 00 00 call 13875c <rtems_rfs_group_open> <== NOT EXECUTED
137637: 89 c6 mov %eax,%esi <== NOT EXECUTED
rtems_rfs_fs_block (fs, group, 0),
fs->group_blocks,
fs->group_inodes,
&fs->groups[group]);
if (rc > 0)
137639: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
13763c: 85 c0 test %eax,%eax <== NOT EXECUTED
13763e: 7e 2d jle 13766d <rtems_rfs_fs_open+0x330><== NOT EXECUTED
137640: 31 d2 xor %edx,%edx <== NOT EXECUTED
137642: eb 19 jmp 13765d <rtems_rfs_fs_open+0x320><== NOT EXECUTED
{
int g;
for (g = 0; g < group; g++)
rtems_rfs_group_close (fs, &fs->groups[g]);
137644: 51 push %ecx <== NOT EXECUTED
137645: 51 push %ecx <== NOT EXECUTED
137646: 6b c2 50 imul $0x50,%edx,%eax <== NOT EXECUTED
137649: 03 43 1c add 0x1c(%ebx),%eax <== NOT EXECUTED
13764c: 50 push %eax <== NOT EXECUTED
13764d: 53 push %ebx <== NOT EXECUTED
13764e: 89 55 98 mov %edx,-0x68(%ebp) <== NOT EXECUTED
137651: e8 83 10 00 00 call 1386d9 <rtems_rfs_group_close> <== NOT EXECUTED
fs->group_inodes,
&fs->groups[group]);
if (rc > 0)
{
int g;
for (g = 0; g < group; g++)
137656: 8b 55 98 mov -0x68(%ebp),%edx <== NOT EXECUTED
137659: 42 inc %edx <== NOT EXECUTED
13765a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13765d: 39 fa cmp %edi,%edx <== NOT EXECUTED
13765f: 7c e3 jl 137644 <rtems_rfs_fs_open+0x307><== NOT EXECUTED
rtems_rfs_group_close (fs, &fs->groups[g]);
rtems_rfs_buffer_handle_close (fs, &handle);
137661: 8d 55 dc lea -0x24(%ebp),%edx <== NOT EXECUTED
137664: 89 d8 mov %ebx,%eax <== NOT EXECUTED
137666: e8 aa fc ff ff call 137315 <rtems_rfs_buffer_handle_close><== NOT EXECUTED
13766b: eb 0b jmp 137678 <rtems_rfs_fs_open+0x33b><== NOT EXECUTED
/*
* Perform each phase of group initialisation at the same time. This way we
* know how far the initialisation has gone if an error occurs and we need to
* close everything.
*/
for (group = 0; group < fs->group_count; group++)
13766d: 47 inc %edi <== NOT EXECUTED
13766e: 3b 7b 20 cmp 0x20(%ebx),%edi <== NOT EXECUTED
137671: 7c a8 jl 13761b <rtems_rfs_fs_open+0x2de><== NOT EXECUTED
137673: e9 e8 00 00 00 jmp 137760 <rtems_rfs_fs_open+0x423><== NOT EXECUTED
}
rc = rtems_rfs_fs_read_superblock (*fs);
if (rc > 0)
{
rtems_rfs_buffer_close (*fs);
137678: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13767b: 8b 45 18 mov 0x18(%ebp),%eax <== NOT EXECUTED
13767e: ff 30 pushl (%eax) <== NOT EXECUTED
137680: e8 62 e3 ff ff call 1359e7 <rtems_rfs_buffer_close><== NOT EXECUTED
free (*fs);
137685: 5a pop %edx <== NOT EXECUTED
137686: 8b 55 18 mov 0x18(%ebp),%edx <== NOT EXECUTED
137689: ff 32 pushl (%edx) <== NOT EXECUTED
13768b: e8 0c 58 fd ff call 10ce9c <free> <== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))
printf ("rtems-rfs: open: reading superblock: %d: %s\n",
rc, strerror (rc));
errno = rc;
137690: e8 7f 69 00 00 call 13e014 <__errno> <== NOT EXECUTED
137695: 89 30 mov %esi,(%eax) <== NOT EXECUTED
137697: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
return -1;
13769a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13769d: e9 b6 00 00 00 jmp 137758 <rtems_rfs_fs_open+0x41b><== NOT EXECUTED
}
rc = rtems_rfs_inode_open (*fs, RTEMS_RFS_ROOT_INO, &inode, true);
if (rc > 0)
{
rtems_rfs_buffer_close (*fs);
1376a2: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1376a5: 8b 75 18 mov 0x18(%ebp),%esi <== NOT EXECUTED
1376a8: ff 36 pushl (%esi) <== NOT EXECUTED
1376aa: e8 38 e3 ff ff call 1359e7 <rtems_rfs_buffer_close><== NOT EXECUTED
free (*fs);
1376af: 58 pop %eax <== NOT EXECUTED
1376b0: ff 36 pushl (%esi) <== NOT EXECUTED
1376b2: e9 83 00 00 00 jmp 13773a <rtems_rfs_fs_open+0x3fd><== NOT EXECUTED
rc, strerror (rc));
errno = rc;
return -1;
}
if (((*fs)->flags & RTEMS_RFS_FS_FORCE_OPEN) == 0)
1376b7: 8b 45 18 mov 0x18(%ebp),%eax <== NOT EXECUTED
1376ba: 8b 10 mov (%eax),%edx <== NOT EXECUTED
1376bc: f6 02 04 testb $0x4,(%edx) <== NOT EXECUTED
1376bf: 75 51 jne 137712 <rtems_rfs_fs_open+0x3d5><== NOT EXECUTED
* @return uint16_t The mode.
*/
static inline uint16_t
rtems_rfs_inode_get_mode (rtems_rfs_inode_handle* handle)
{
return rtems_rfs_read_u16 (&handle->node->mode);
1376c1: 8b 45 c0 mov -0x40(%ebp),%eax <== NOT EXECUTED
1376c4: 0f b6 48 02 movzbl 0x2(%eax),%ecx <== NOT EXECUTED
1376c8: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
1376cb: 0f b6 40 03 movzbl 0x3(%eax),%eax <== NOT EXECUTED
1376cf: 09 c8 or %ecx,%eax <== NOT EXECUTED
{
mode = rtems_rfs_inode_get_mode (&inode);
if ((mode == 0xffff) || !RTEMS_RFS_S_ISDIR (mode))
1376d1: 66 83 f8 ff cmp $0xffffffff,%ax <== NOT EXECUTED
1376d5: 74 0c je 1376e3 <rtems_rfs_fs_open+0x3a6><== NOT EXECUTED
1376d7: 25 00 f0 00 00 and $0xf000,%eax <== NOT EXECUTED
1376dc: 3d 00 40 00 00 cmp $0x4000,%eax <== NOT EXECUTED
1376e1: 74 2f je 137712 <rtems_rfs_fs_open+0x3d5><== NOT EXECUTED
{
rtems_rfs_inode_close (*fs, &inode);
1376e3: 57 push %edi <== NOT EXECUTED
1376e4: 57 push %edi <== NOT EXECUTED
1376e5: 8d 45 b4 lea -0x4c(%ebp),%eax <== NOT EXECUTED
1376e8: 50 push %eax <== NOT EXECUTED
1376e9: 52 push %edx <== NOT EXECUTED
1376ea: e8 59 14 00 00 call 138b48 <rtems_rfs_inode_close> <== NOT EXECUTED
rtems_rfs_buffer_close (*fs);
1376ef: 5e pop %esi <== NOT EXECUTED
1376f0: 8b 55 18 mov 0x18(%ebp),%edx <== NOT EXECUTED
1376f3: ff 32 pushl (%edx) <== NOT EXECUTED
1376f5: e8 ed e2 ff ff call 1359e7 <rtems_rfs_buffer_close><== NOT EXECUTED
free (*fs);
1376fa: 5b pop %ebx <== NOT EXECUTED
1376fb: 8b 75 18 mov 0x18(%ebp),%esi <== NOT EXECUTED
1376fe: ff 36 pushl (%esi) <== NOT EXECUTED
137700: e8 97 57 fd ff call 10ce9c <free> <== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))
printf ("rtems-rfs: open: invalid root inode mode\n");
errno = EIO;
137705: e8 0a 69 00 00 call 13e014 <__errno> <== NOT EXECUTED
13770a: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
137710: eb 85 jmp 137697 <rtems_rfs_fs_open+0x35a><== NOT EXECUTED
return -1;
}
}
rc = rtems_rfs_inode_close (*fs, &inode);
137712: 51 push %ecx <== NOT EXECUTED
137713: 51 push %ecx <== NOT EXECUTED
137714: 8d 45 b4 lea -0x4c(%ebp),%eax <== NOT EXECUTED
137717: 50 push %eax <== NOT EXECUTED
137718: 52 push %edx <== NOT EXECUTED
137719: e8 2a 14 00 00 call 138b48 <rtems_rfs_inode_close> <== NOT EXECUTED
13771e: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc > 0)
137720: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
137723: 85 c0 test %eax,%eax <== NOT EXECUTED
137725: 7e 24 jle 13774b <rtems_rfs_fs_open+0x40e><== NOT EXECUTED
{
rtems_rfs_buffer_close (*fs);
137727: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13772a: 8b 45 18 mov 0x18(%ebp),%eax <== NOT EXECUTED
13772d: ff 30 pushl (%eax) <== NOT EXECUTED
13772f: e8 b3 e2 ff ff call 1359e7 <rtems_rfs_buffer_close><== NOT EXECUTED
free (*fs);
137734: 5a pop %edx <== NOT EXECUTED
137735: 8b 55 18 mov 0x18(%ebp),%edx <== NOT EXECUTED
137738: ff 32 pushl (%edx) <== NOT EXECUTED
13773a: e8 5d 57 fd ff call 10ce9c <free> <== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))
printf ("rtems-rfs: open: closing root inode: %d: %s\n", rc, strerror (rc));
errno = rc;
13773f: e8 d0 68 00 00 call 13e014 <__errno> <== NOT EXECUTED
137744: 89 18 mov %ebx,(%eax) <== NOT EXECUTED
137746: e9 4c ff ff ff jmp 137697 <rtems_rfs_fs_open+0x35a><== NOT EXECUTED
return -1;
}
errno = 0;
13774b: e8 c4 68 00 00 call 13e014 <__errno> <== NOT EXECUTED
137750: c7 00 00 00 00 00 movl $0x0,(%eax) <== NOT EXECUTED
137756: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
}
137758: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13775b: 5b pop %ebx <== NOT EXECUTED
13775c: 5e pop %esi <== NOT EXECUTED
13775d: 5f pop %edi <== NOT EXECUTED
13775e: c9 leave <== NOT EXECUTED
13775f: c3 ret <== NOT EXECUTED
rc, strerror (rc));
errno = rc;
return -1;
}
rc = rtems_rfs_inode_open (*fs, RTEMS_RFS_ROOT_INO, &inode, true);
137760: 6a 01 push $0x1 <== NOT EXECUTED
137762: 8d 45 b4 lea -0x4c(%ebp),%eax <== NOT EXECUTED
137765: 50 push %eax <== NOT EXECUTED
137766: 6a 01 push $0x1 <== NOT EXECUTED
137768: 8b 75 18 mov 0x18(%ebp),%esi <== NOT EXECUTED
13776b: ff 36 pushl (%esi) <== NOT EXECUTED
13776d: e8 45 14 00 00 call 138bb7 <rtems_rfs_inode_open> <== NOT EXECUTED
137772: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc > 0)
137774: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
137777: 85 c0 test %eax,%eax <== NOT EXECUTED
137779: 0f 8e 38 ff ff ff jle 1376b7 <rtems_rfs_fs_open+0x37a><== NOT EXECUTED
13777f: e9 1e ff ff ff jmp 1376a2 <rtems_rfs_fs_open+0x365><== NOT EXECUTED
001372b8 <rtems_rfs_fs_size>:
#include <rtems/rfs/rtems-rfs-inode.h>
#include <rtems/rfs/rtems-rfs-trace.h>
uint64_t
rtems_rfs_fs_size (rtems_rfs_file_system* fs)
{
1372b8: 55 push %ebp <== NOT EXECUTED
1372b9: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1372bb: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
1372be: 8b 42 04 mov 0x4(%edx),%eax <== NOT EXECUTED
1372c1: f7 62 08 mull 0x8(%edx) <== NOT EXECUTED
uint64_t blocks = rtems_rfs_fs_blocks (fs);
uint64_t block_size = rtems_rfs_fs_block_size (fs);
return blocks * block_size;
}
1372c4: c9 leave <== NOT EXECUTED
1372c5: c3 ret <== NOT EXECUTED
001385b3 <rtems_rfs_group_bitmap_alloc>:
int
rtems_rfs_group_bitmap_alloc (rtems_rfs_file_system* fs,
rtems_rfs_bitmap_bit goal,
bool inode,
rtems_rfs_bitmap_bit* result)
{
1385b3: 55 push %ebp <== NOT EXECUTED
1385b4: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1385b6: 57 push %edi <== NOT EXECUTED
1385b7: 56 push %esi <== NOT EXECUTED
1385b8: 53 push %ebx <== NOT EXECUTED
1385b9: 83 ec 3c sub $0x3c,%esp <== NOT EXECUTED
1385bc: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
1385bf: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
1385c2: 8a 4d 10 mov 0x10(%ebp),%cl <== NOT EXECUTED
rtems_rfs_bitmap_bit bit;
int offset;
bool updown;
int direction;
if (inode)
1385c5: 84 c9 test %cl,%cl <== NOT EXECUTED
1385c7: 74 06 je 1385cf <rtems_rfs_group_bitmap_alloc+0x1c><== NOT EXECUTED
{
size = fs->group_inodes;
1385c9: 8b 7b 28 mov 0x28(%ebx),%edi <== NOT EXECUTED
goal -= RTEMS_RFS_ROOT_INO;
1385cc: 48 dec %eax <== NOT EXECUTED
1385cd: eb 03 jmp 1385d2 <rtems_rfs_group_bitmap_alloc+0x1f><== NOT EXECUTED
}
else
size = fs->group_blocks;
1385cf: 8b 7b 24 mov 0x24(%ebx),%edi <== NOT EXECUTED
group_start = goal / size;
1385d2: 31 d2 xor %edx,%edx <== NOT EXECUTED
1385d4: f7 f7 div %edi <== NOT EXECUTED
1385d6: 89 45 cc mov %eax,-0x34(%ebp) <== NOT EXECUTED
bit = (rtems_rfs_bitmap_bit) (goal % size);
1385d9: 89 55 e0 mov %edx,-0x20(%ebp) <== NOT EXECUTED
1385dc: be 01 00 00 00 mov $0x1,%esi <== NOT EXECUTED
1385e1: b2 01 mov $0x1,%dl <== NOT EXECUTED
1385e3: c7 45 d4 00 00 00 00 movl $0x0,-0x2c(%ebp) <== NOT EXECUTED
* We can start at any location and we move out from that point in each
* direction. The offset grows until we find a free bit or we hit an end.
*/
group = group_start + (direction * offset);
if (offset)
bit = direction > 0 ? 0 : size - 1;
1385ea: 4f dec %edi <== NOT EXECUTED
1385eb: 89 7d c8 mov %edi,-0x38(%ebp) <== NOT EXECUTED
1385ee: eb 05 jmp 1385f5 <rtems_rfs_group_bitmap_alloc+0x42><== NOT EXECUTED
}
else
size = fs->group_blocks;
group_start = goal / size;
bit = (rtems_rfs_bitmap_bit) (goal % size);
1385f0: 83 ce ff or $0xffffffff,%esi <== NOT EXECUTED
1385f3: 31 d2 xor %edx,%edx <== NOT EXECUTED
*/
while (true)
{
rtems_rfs_bitmap_control* bitmap;
int group;
bool allocated = false;
1385f5: c6 45 e7 00 movb $0x0,-0x19(%ebp) <== NOT EXECUTED
/*
* We can start at any location and we move out from that point in each
* direction. The offset grows until we find a free bit or we hit an end.
*/
group = group_start + (direction * offset);
1385f9: 8b 7d d4 mov -0x2c(%ebp),%edi <== NOT EXECUTED
1385fc: 0f af fe imul %esi,%edi <== NOT EXECUTED
1385ff: 03 7d cc add -0x34(%ebp),%edi <== NOT EXECUTED
if (offset)
138602: 83 7d d4 00 cmpl $0x0,-0x2c(%ebp) <== NOT EXECUTED
138606: 74 0d je 138615 <rtems_rfs_group_bitmap_alloc+0x62><== NOT EXECUTED
bit = direction > 0 ? 0 : size - 1;
138608: 31 c0 xor %eax,%eax <== NOT EXECUTED
13860a: 83 fe 01 cmp $0x1,%esi <== NOT EXECUTED
13860d: 74 03 je 138612 <rtems_rfs_group_bitmap_alloc+0x5f><== NOT EXECUTED
13860f: 8b 45 c8 mov -0x38(%ebp),%eax <== NOT EXECUTED
138612: 89 45 e0 mov %eax,-0x20(%ebp) <== NOT EXECUTED
/*
* If we are still looking up and down and if the group is out of range we
* have reached one end. Stopping looking up and down and just move in the
* one direction one group at a time.
*/
if ((group < 0) || (group >= fs->group_count))
138615: 85 ff test %edi,%edi <== NOT EXECUTED
138617: 78 05 js 13861e <rtems_rfs_group_bitmap_alloc+0x6b><== NOT EXECUTED
138619: 3b 7b 20 cmp 0x20(%ebx),%edi <== NOT EXECUTED
13861c: 7c 12 jl 138630 <rtems_rfs_group_bitmap_alloc+0x7d><== NOT EXECUTED
{
if (!updown)
13861e: 84 d2 test %dl,%dl <== NOT EXECUTED
138620: 0f 84 a6 00 00 00 je 1386cc <rtems_rfs_group_bitmap_alloc+0x119><== NOT EXECUTED
break;
direction = direction > 0 ? -1 : 1;
138626: 4e dec %esi <== NOT EXECUTED
138627: 74 c7 je 1385f0 <rtems_rfs_group_bitmap_alloc+0x3d><== NOT EXECUTED
138629: be 01 00 00 00 mov $0x1,%esi <== NOT EXECUTED
13862e: eb c3 jmp 1385f3 <rtems_rfs_group_bitmap_alloc+0x40><== NOT EXECUTED
updown = false;
continue;
}
if (inode)
138630: 84 c9 test %cl,%cl <== NOT EXECUTED
138632: 74 0b je 13863f <rtems_rfs_group_bitmap_alloc+0x8c><== NOT EXECUTED
bitmap = &fs->groups[group].inode_bitmap;
138634: 6b c7 50 imul $0x50,%edi,%eax <== NOT EXECUTED
138637: 03 43 1c add 0x1c(%ebx),%eax <== NOT EXECUTED
13863a: 83 c0 2c add $0x2c,%eax <== NOT EXECUTED
13863d: eb 09 jmp 138648 <rtems_rfs_group_bitmap_alloc+0x95><== NOT EXECUTED
else
bitmap = &fs->groups[group].block_bitmap;
13863f: 6b c7 50 imul $0x50,%edi,%eax <== NOT EXECUTED
138642: 03 43 1c add 0x1c(%ebx),%eax <== NOT EXECUTED
138645: 83 c0 08 add $0x8,%eax <== NOT EXECUTED
138648: 89 45 d0 mov %eax,-0x30(%ebp) <== NOT EXECUTED
rc = rtems_rfs_bitmap_map_alloc (bitmap, bit, &allocated, &bit);
13864b: 8d 45 e0 lea -0x20(%ebp),%eax <== NOT EXECUTED
13864e: 50 push %eax <== NOT EXECUTED
13864f: 8d 45 e7 lea -0x19(%ebp),%eax <== NOT EXECUTED
138652: 50 push %eax <== NOT EXECUTED
138653: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
138656: ff 75 d0 pushl -0x30(%ebp) <== NOT EXECUTED
138659: 88 55 c4 mov %dl,-0x3c(%ebp) <== NOT EXECUTED
13865c: 88 4d c0 mov %cl,-0x40(%ebp) <== NOT EXECUTED
13865f: e8 90 51 00 00 call 13d7f4 <rtems_rfs_bitmap_map_alloc><== NOT EXECUTED
if (rc > 0)
138664: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
138667: 85 c0 test %eax,%eax <== NOT EXECUTED
138669: 8a 55 c4 mov -0x3c(%ebp),%dl <== NOT EXECUTED
13866c: 8a 4d c0 mov -0x40(%ebp),%cl <== NOT EXECUTED
13866f: 7f 60 jg 1386d1 <rtems_rfs_group_bitmap_alloc+0x11e><== NOT EXECUTED
return rc;
if (rtems_rfs_fs_release_bitmaps (fs))
138671: f6 03 01 testb $0x1,(%ebx) <== NOT EXECUTED
138674: 75 16 jne 13868c <rtems_rfs_group_bitmap_alloc+0xd9><== NOT EXECUTED
rtems_rfs_bitmap_release_buffer (fs, bitmap);
138676: 51 push %ecx <== NOT EXECUTED
138677: 51 push %ecx <== NOT EXECUTED
138678: 8b 45 d0 mov -0x30(%ebp),%eax <== NOT EXECUTED
13867b: ff 30 pushl (%eax) <== NOT EXECUTED
13867d: 53 push %ebx <== NOT EXECUTED
13867e: e8 e0 d3 ff ff call 135a63 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
138683: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
138686: 8a 4d c0 mov -0x40(%ebp),%cl <== NOT EXECUTED
138689: 8a 55 c4 mov -0x3c(%ebp),%dl <== NOT EXECUTED
if (allocated)
13868c: 80 7d e7 00 cmpb $0x0,-0x19(%ebp) <== NOT EXECUTED
138690: 74 23 je 1386b5 <rtems_rfs_group_bitmap_alloc+0x102><== NOT EXECUTED
{
if (inode)
138692: 84 c9 test %cl,%cl <== NOT EXECUTED
138694: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
138697: 74 0a je 1386a3 <rtems_rfs_group_bitmap_alloc+0xf0><== NOT EXECUTED
*result = rtems_rfs_group_inode (fs, group, bit);
138699: 0f af 7b 28 imul 0x28(%ebx),%edi <== NOT EXECUTED
13869d: 8d 44 07 01 lea 0x1(%edi,%eax,1),%eax <== NOT EXECUTED
1386a1: eb 09 jmp 1386ac <rtems_rfs_group_bitmap_alloc+0xf9><== NOT EXECUTED
else
*result = rtems_rfs_group_block (&fs->groups[group], bit);
1386a3: 8b 53 1c mov 0x1c(%ebx),%edx <== NOT EXECUTED
1386a6: 6b ff 50 imul $0x50,%edi,%edi <== NOT EXECUTED
1386a9: 03 04 3a add (%edx,%edi,1),%eax <== NOT EXECUTED
1386ac: 8b 55 14 mov 0x14(%ebp),%edx <== NOT EXECUTED
1386af: 89 02 mov %eax,(%edx) <== NOT EXECUTED
1386b1: 31 c0 xor %eax,%eax <== NOT EXECUTED
1386b3: eb 1c jmp 1386d1 <rtems_rfs_group_bitmap_alloc+0x11e><== NOT EXECUTED
printf ("rtems-rfs: group-bitmap-alloc: %s allocated: %" PRId32 "\n",
inode ? "inode" : "block", *result);
return 0;
}
if (updown)
1386b5: 84 d2 test %dl,%dl <== NOT EXECUTED
1386b7: 74 0b je 1386c4 <rtems_rfs_group_bitmap_alloc+0x111><== NOT EXECUTED
direction = direction > 0 ? -1 : 1;
1386b9: 4e dec %esi <== NOT EXECUTED
1386ba: 0f 95 c0 setne %al <== NOT EXECUTED
1386bd: 0f b6 f0 movzbl %al,%esi <== NOT EXECUTED
1386c0: 8d 74 36 ff lea -0x1(%esi,%esi,1),%esi <== NOT EXECUTED
offset++;
1386c4: ff 45 d4 incl -0x2c(%ebp) <== NOT EXECUTED
1386c7: e9 29 ff ff ff jmp 1385f5 <rtems_rfs_group_bitmap_alloc+0x42><== NOT EXECUTED
1386cc: b8 1c 00 00 00 mov $0x1c,%eax <== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_GROUP_BITMAPS))
printf ("rtems-rfs: group-bitmap-alloc: no blocks available\n");
return ENOSPC;
}
1386d1: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1386d4: 5b pop %ebx <== NOT EXECUTED
1386d5: 5e pop %esi <== NOT EXECUTED
1386d6: 5f pop %edi <== NOT EXECUTED
1386d7: c9 leave <== NOT EXECUTED
1386d8: c3 ret <== NOT EXECUTED
0013854a <rtems_rfs_group_bitmap_free>:
int
rtems_rfs_group_bitmap_free (rtems_rfs_file_system* fs,
bool inode,
rtems_rfs_bitmap_bit no)
{
13854a: 55 push %ebp <== NOT EXECUTED
13854b: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13854d: 57 push %edi <== NOT EXECUTED
13854e: 56 push %esi <== NOT EXECUTED
13854f: 53 push %ebx <== NOT EXECUTED
138550: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
138553: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
138556: 8a 4d 0c mov 0xc(%ebp),%cl <== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_GROUP_BITMAPS))
printf ("rtems-rfs: group-bitmap-free: %s free: %" PRId32 "\n",
inode ? "inode" : "block", no);
if (inode)
138559: 84 c9 test %cl,%cl <== NOT EXECUTED
13855b: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
13855e: 8d 78 ff lea -0x1(%eax),%edi <== NOT EXECUTED
138561: 74 05 je 138568 <rtems_rfs_group_bitmap_free+0x1e><== NOT EXECUTED
{
no -= RTEMS_RFS_ROOT_INO;
size = fs->group_inodes;
138563: 8b 43 28 mov 0x28(%ebx),%eax <== NOT EXECUTED
138566: eb 03 jmp 13856b <rtems_rfs_group_bitmap_free+0x21><== NOT EXECUTED
}
else
{
no -= RTEMS_RFS_SUPERBLOCK_SIZE;
size = fs->group_blocks;
138568: 8b 43 24 mov 0x24(%ebx),%eax <== NOT EXECUTED
13856b: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
}
group = no / size;
13856e: 89 f8 mov %edi,%eax <== NOT EXECUTED
138570: 31 d2 xor %edx,%edx <== NOT EXECUTED
138572: f7 75 e4 divl -0x1c(%ebp) <== NOT EXECUTED
bit = (rtems_rfs_bitmap_bit) (no % size);
if (inode)
138575: 84 c9 test %cl,%cl <== NOT EXECUTED
138577: 74 0b je 138584 <rtems_rfs_group_bitmap_free+0x3a><== NOT EXECUTED
bitmap = &fs->groups[group].inode_bitmap;
138579: 6b f0 50 imul $0x50,%eax,%esi <== NOT EXECUTED
13857c: 03 73 1c add 0x1c(%ebx),%esi <== NOT EXECUTED
13857f: 83 c6 2c add $0x2c,%esi <== NOT EXECUTED
138582: eb 09 jmp 13858d <rtems_rfs_group_bitmap_free+0x43><== NOT EXECUTED
else
bitmap = &fs->groups[group].block_bitmap;
138584: 6b f0 50 imul $0x50,%eax,%esi <== NOT EXECUTED
138587: 03 73 1c add 0x1c(%ebx),%esi <== NOT EXECUTED
13858a: 83 c6 08 add $0x8,%esi <== NOT EXECUTED
rc = rtems_rfs_bitmap_map_clear (bitmap, bit);
13858d: 52 push %edx <== NOT EXECUTED
13858e: 52 push %edx <== NOT EXECUTED
13858f: 89 f8 mov %edi,%eax <== NOT EXECUTED
138591: 31 d2 xor %edx,%edx <== NOT EXECUTED
138593: f7 75 e4 divl -0x1c(%ebp) <== NOT EXECUTED
138596: 52 push %edx <== NOT EXECUTED
138597: 56 push %esi <== NOT EXECUTED
138598: e8 94 4f 00 00 call 13d531 <rtems_rfs_bitmap_map_clear><== NOT EXECUTED
13859d: 89 c7 mov %eax,%edi <== NOT EXECUTED
rtems_rfs_bitmap_release_buffer (fs, bitmap);
13859f: 59 pop %ecx <== NOT EXECUTED
1385a0: 58 pop %eax <== NOT EXECUTED
1385a1: ff 36 pushl (%esi) <== NOT EXECUTED
1385a3: 53 push %ebx <== NOT EXECUTED
1385a4: e8 ba d4 ff ff call 135a63 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
return rc;
}
1385a9: 89 f8 mov %edi,%eax <== NOT EXECUTED
1385ab: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1385ae: 5b pop %ebx <== NOT EXECUTED
1385af: 5e pop %esi <== NOT EXECUTED
1385b0: 5f pop %edi <== NOT EXECUTED
1385b1: c9 leave <== NOT EXECUTED
1385b2: c3 ret <== NOT EXECUTED
001384ca <rtems_rfs_group_bitmap_test>:
int
rtems_rfs_group_bitmap_test (rtems_rfs_file_system* fs,
bool inode,
rtems_rfs_bitmap_bit no,
bool* state)
{
1384ca: 55 push %ebp <== NOT EXECUTED
1384cb: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1384cd: 57 push %edi <== NOT EXECUTED
1384ce: 56 push %esi <== NOT EXECUTED
1384cf: 53 push %ebx <== NOT EXECUTED
1384d0: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1384d3: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
1384d6: 8b 4d 10 mov 0x10(%ebp),%ecx <== NOT EXECUTED
1384d9: 8b 75 0c mov 0xc(%ebp),%esi <== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_GROUP_BITMAPS))
printf ("rtems-rfs: group-bitmap-test: %s test: %" PRId32 "\n",
inode ? "inode" : "block", no);
if (inode)
1384dc: 89 f0 mov %esi,%eax <== NOT EXECUTED
1384de: 84 c0 test %al,%al <== NOT EXECUTED
1384e0: 74 0f je 1384f1 <rtems_rfs_group_bitmap_test+0x27><== NOT EXECUTED
{
if ((no < RTEMS_RFS_ROOT_INO) || (no > rtems_rfs_fs_inodes (fs)))
1384e2: 85 c9 test %ecx,%ecx <== NOT EXECUTED
1384e4: 7e 55 jle 13853b <rtems_rfs_group_bitmap_test+0x71><== NOT EXECUTED
1384e6: 3b 4b 10 cmp 0x10(%ebx),%ecx <== NOT EXECUTED
1384e9: 77 50 ja 13853b <rtems_rfs_group_bitmap_test+0x71><== NOT EXECUTED
return EINVAL;
no -= RTEMS_RFS_ROOT_INO;
1384eb: 49 dec %ecx <== NOT EXECUTED
size = fs->group_inodes;
1384ec: 8b 7b 28 mov 0x28(%ebx),%edi <== NOT EXECUTED
1384ef: eb 08 jmp 1384f9 <rtems_rfs_group_bitmap_test+0x2f><== NOT EXECUTED
}
else
{
if (no >= rtems_rfs_fs_blocks (fs))
1384f1: 3b 4b 04 cmp 0x4(%ebx),%ecx <== NOT EXECUTED
1384f4: 73 45 jae 13853b <rtems_rfs_group_bitmap_test+0x71><== NOT EXECUTED
return EINVAL;
size = fs->group_blocks;
1384f6: 8b 7b 24 mov 0x24(%ebx),%edi <== NOT EXECUTED
}
group = no / size;
1384f9: 89 c8 mov %ecx,%eax <== NOT EXECUTED
1384fb: 31 d2 xor %edx,%edx <== NOT EXECUTED
1384fd: f7 f7 div %edi <== NOT EXECUTED
bit = (rtems_rfs_bitmap_bit) (no % size);
if (inode)
1384ff: 89 f2 mov %esi,%edx <== NOT EXECUTED
138501: 84 d2 test %dl,%dl <== NOT EXECUTED
138503: 74 0b je 138510 <rtems_rfs_group_bitmap_test+0x46><== NOT EXECUTED
bitmap = &fs->groups[group].inode_bitmap;
138505: 6b f0 50 imul $0x50,%eax,%esi <== NOT EXECUTED
138508: 03 73 1c add 0x1c(%ebx),%esi <== NOT EXECUTED
13850b: 83 c6 2c add $0x2c,%esi <== NOT EXECUTED
13850e: eb 09 jmp 138519 <rtems_rfs_group_bitmap_test+0x4f><== NOT EXECUTED
else
bitmap = &fs->groups[group].block_bitmap;
138510: 6b f0 50 imul $0x50,%eax,%esi <== NOT EXECUTED
138513: 03 73 1c add 0x1c(%ebx),%esi <== NOT EXECUTED
138516: 83 c6 08 add $0x8,%esi <== NOT EXECUTED
rc = rtems_rfs_bitmap_map_test (bitmap, bit, state);
138519: 52 push %edx <== NOT EXECUTED
13851a: ff 75 14 pushl 0x14(%ebp) <== NOT EXECUTED
13851d: 89 c8 mov %ecx,%eax <== NOT EXECUTED
13851f: 31 d2 xor %edx,%edx <== NOT EXECUTED
138521: f7 f7 div %edi <== NOT EXECUTED
138523: 52 push %edx <== NOT EXECUTED
138524: 56 push %esi <== NOT EXECUTED
138525: e8 c1 4f 00 00 call 13d4eb <rtems_rfs_bitmap_map_test><== NOT EXECUTED
13852a: 89 c7 mov %eax,%edi <== NOT EXECUTED
rtems_rfs_bitmap_release_buffer (fs, bitmap);
13852c: 59 pop %ecx <== NOT EXECUTED
13852d: 58 pop %eax <== NOT EXECUTED
13852e: ff 36 pushl (%esi) <== NOT EXECUTED
138530: 53 push %ebx <== NOT EXECUTED
138531: e8 2d d5 ff ff call 135a63 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
return rc;
138536: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
138539: eb 05 jmp 138540 <rtems_rfs_group_bitmap_test+0x76><== NOT EXECUTED
13853b: bf 16 00 00 00 mov $0x16,%edi <== NOT EXECUTED
}
138540: 89 f8 mov %edi,%eax <== NOT EXECUTED
138542: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
138545: 5b pop %ebx <== NOT EXECUTED
138546: 5e pop %esi <== NOT EXECUTED
138547: 5f pop %edi <== NOT EXECUTED
138548: c9 leave <== NOT EXECUTED
138549: c3 ret <== NOT EXECUTED
001386d9 <rtems_rfs_group_close>:
return 0;
}
int
rtems_rfs_group_close (rtems_rfs_file_system* fs, rtems_rfs_group* group)
{
1386d9: 55 push %ebp <== NOT EXECUTED
1386da: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1386dc: 57 push %edi <== NOT EXECUTED
1386dd: 56 push %esi <== NOT EXECUTED
1386de: 53 push %ebx <== NOT EXECUTED
1386df: 83 ec 28 sub $0x28,%esp <== NOT EXECUTED
1386e2: 8b 7d 08 mov 0x8(%ebp),%edi <== NOT EXECUTED
1386e5: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
/*
* We need to close as much as possible and also return any error if one
* occurs but this may result in one even more important error being lost but
* we cannot OR the errors together so this is a reasonable compromise.
*/
rc = rtems_rfs_bitmap_close (&group->inode_bitmap);
1386e8: 8d 43 2c lea 0x2c(%ebx),%eax <== NOT EXECUTED
1386eb: 50 push %eax <== NOT EXECUTED
1386ec: e8 c0 4b 00 00 call 13d2b1 <rtems_rfs_bitmap_close><== NOT EXECUTED
1386f1: 89 c2 mov %eax,%edx <== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_close (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
rtems_rfs_buffer_handle_release (fs, handle);
1386f3: 59 pop %ecx <== NOT EXECUTED
1386f4: 5e pop %esi <== NOT EXECUTED
1386f5: 8d 43 44 lea 0x44(%ebx),%eax <== NOT EXECUTED
1386f8: 50 push %eax <== NOT EXECUTED
1386f9: 57 push %edi <== NOT EXECUTED
1386fa: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED
1386fd: e8 61 d3 ff ff call 135a63 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
handle->dirty = false;
138702: c6 43 44 00 movb $0x0,0x44(%ebx) <== NOT EXECUTED
handle->bnum = 0;
138706: c7 43 48 00 00 00 00 movl $0x0,0x48(%ebx) <== NOT EXECUTED
handle->buffer = NULL;
13870d: c7 43 4c 00 00 00 00 movl $0x0,0x4c(%ebx) <== NOT EXECUTED
if (rc > 0)
result = rc;
rc = rtems_rfs_buffer_handle_close (fs, &group->inode_bitmap_buffer);
if (rc > 0)
result = rc;
rc = rtems_rfs_bitmap_close (&group->block_bitmap);
138714: 8d 43 08 lea 0x8(%ebx),%eax <== NOT EXECUTED
138717: 89 04 24 mov %eax,(%esp) <== NOT EXECUTED
13871a: e8 92 4b 00 00 call 13d2b1 <rtems_rfs_bitmap_close><== NOT EXECUTED
if (rc > 0)
13871f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
138722: 89 c6 mov %eax,%esi <== NOT EXECUTED
138724: 85 c0 test %eax,%eax <== NOT EXECUTED
138726: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
138729: 7f 09 jg 138734 <rtems_rfs_group_close+0x5b><== NOT EXECUTED
13872b: 89 d6 mov %edx,%esi <== NOT EXECUTED
13872d: f7 d6 not %esi <== NOT EXECUTED
13872f: c1 fe 1f sar $0x1f,%esi <== NOT EXECUTED
138732: 21 d6 and %edx,%esi <== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_close (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
rtems_rfs_buffer_handle_release (fs, handle);
138734: 50 push %eax <== NOT EXECUTED
138735: 50 push %eax <== NOT EXECUTED
138736: 8d 43 20 lea 0x20(%ebx),%eax <== NOT EXECUTED
138739: 50 push %eax <== NOT EXECUTED
13873a: 57 push %edi <== NOT EXECUTED
13873b: e8 23 d3 ff ff call 135a63 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
handle->dirty = false;
138740: c6 43 20 00 movb $0x0,0x20(%ebx) <== NOT EXECUTED
handle->bnum = 0;
138744: c7 43 24 00 00 00 00 movl $0x0,0x24(%ebx) <== NOT EXECUTED
handle->buffer = NULL;
13874b: c7 43 28 00 00 00 00 movl $0x0,0x28(%ebx) <== NOT EXECUTED
rc = rtems_rfs_buffer_handle_close (fs, &group->block_bitmap_buffer);
if (rc > 0)
result = rc;
return result;
}
138752: 89 f0 mov %esi,%eax <== NOT EXECUTED
138754: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
138757: 5b pop %ebx <== NOT EXECUTED
138758: 5e pop %esi <== NOT EXECUTED
138759: 5f pop %edi <== NOT EXECUTED
13875a: c9 leave <== NOT EXECUTED
13875b: c3 ret <== NOT EXECUTED
0013875c <rtems_rfs_group_open>:
rtems_rfs_group_open (rtems_rfs_file_system* fs,
rtems_rfs_buffer_block base,
size_t size,
size_t inodes,
rtems_rfs_group* group)
{
13875c: 55 push %ebp <== NOT EXECUTED
13875d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13875f: 57 push %edi <== NOT EXECUTED
138760: 56 push %esi <== NOT EXECUTED
138761: 53 push %ebx <== NOT EXECUTED
138762: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
138765: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
138768: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
13876b: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
13876e: 8b 5d 18 mov 0x18(%ebp),%ebx <== NOT EXECUTED
int rc;
if (base >= rtems_rfs_fs_blocks (fs))
138771: 8b 4e 04 mov 0x4(%esi),%ecx <== NOT EXECUTED
138774: bf 05 00 00 00 mov $0x5,%edi <== NOT EXECUTED
138779: 39 c8 cmp %ecx,%eax <== NOT EXECUTED
13877b: 0f 83 f2 00 00 00 jae 138873 <rtems_rfs_group_open+0x117><== NOT EXECUTED
printf ("rtems-rfs: group-open: base outside file system range: %d: %s\n",
EIO, strerror (EIO));
return EIO;
}
if ((base + size) >= rtems_rfs_fs_blocks (fs))
138781: 8d 3c 02 lea (%edx,%eax,1),%edi <== NOT EXECUTED
138784: 39 cf cmp %ecx,%edi <== NOT EXECUTED
138786: 72 04 jb 13878c <rtems_rfs_group_open+0x30><== NOT EXECUTED
size = rtems_rfs_fs_blocks (fs) - base;
138788: 89 ca mov %ecx,%edx <== NOT EXECUTED
13878a: 29 c2 sub %eax,%edx <== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_GROUP_OPEN))
printf ("rtems-rfs: group-open: base=%" PRId32 ", blocks=%zd inodes=%zd\n",
base, size, inodes);
group->base = base;
13878c: 89 03 mov %eax,(%ebx) <== NOT EXECUTED
group->size = size;
13878e: 89 53 04 mov %edx,0x4(%ebx) <== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_open (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
handle->dirty = false;
138791: c6 43 20 00 movb $0x0,0x20(%ebx) <== NOT EXECUTED
handle->bnum = 0;
138795: c7 43 24 00 00 00 00 movl $0x0,0x24(%ebx) <== NOT EXECUTED
handle->buffer = NULL;
13879c: c7 43 28 00 00 00 00 movl $0x0,0x28(%ebx) <== NOT EXECUTED
printf ("rtems-rfs: group-open: could not open block bitmap handle: %d: %s\n",
rc, strerror (rc));
return rc;
}
rc = rtems_rfs_bitmap_open (&group->block_bitmap, fs,
1387a3: 8d 4b 20 lea 0x20(%ebx),%ecx <== NOT EXECUTED
1387a6: 89 4d e4 mov %ecx,-0x1c(%ebp) <== NOT EXECUTED
1387a9: 8d 4b 08 lea 0x8(%ebx),%ecx <== NOT EXECUTED
1387ac: 89 4d e0 mov %ecx,-0x20(%ebp) <== NOT EXECUTED
1387af: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1387b2: 50 push %eax <== NOT EXECUTED
1387b3: 52 push %edx <== NOT EXECUTED
1387b4: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
1387b7: 56 push %esi <== NOT EXECUTED
1387b8: 51 push %ecx <== NOT EXECUTED
1387b9: 89 55 dc mov %edx,-0x24(%ebp) <== NOT EXECUTED
1387bc: e8 ff 4b 00 00 call 13d3c0 <rtems_rfs_bitmap_open> <== NOT EXECUTED
1387c1: 89 c7 mov %eax,%edi <== NOT EXECUTED
&group->block_bitmap_buffer, size,
group->base + RTEMS_RFS_GROUP_BLOCK_BITMAP_BLOCK);
if (rc > 0)
1387c3: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
1387c6: 85 c0 test %eax,%eax <== NOT EXECUTED
1387c8: 8b 55 dc mov -0x24(%ebp),%edx <== NOT EXECUTED
1387cb: 7e 04 jle 1387d1 <rtems_rfs_group_open+0x75><== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_close (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
rtems_rfs_buffer_handle_release (fs, handle);
1387cd: 52 push %edx <== NOT EXECUTED
1387ce: 52 push %edx <== NOT EXECUTED
1387cf: eb 65 jmp 138836 <rtems_rfs_group_open+0xda><== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_open (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
handle->dirty = false;
1387d1: c6 43 44 00 movb $0x0,0x44(%ebx) <== NOT EXECUTED
handle->bnum = 0;
1387d5: c7 43 48 00 00 00 00 movl $0x0,0x48(%ebx) <== NOT EXECUTED
handle->buffer = NULL;
1387dc: c7 43 4c 00 00 00 00 movl $0x0,0x4c(%ebx) <== NOT EXECUTED
printf ("rtems-rfs: group-open: could not open inode bitmap handle: %d: %s\n",
rc, strerror (rc));
return rc;
}
rc = rtems_rfs_bitmap_open (&group->inode_bitmap, fs,
1387e3: 8d 4b 44 lea 0x44(%ebx),%ecx <== NOT EXECUTED
1387e6: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1387e9: 8b 03 mov (%ebx),%eax <== NOT EXECUTED
1387eb: 40 inc %eax <== NOT EXECUTED
1387ec: 50 push %eax <== NOT EXECUTED
1387ed: 3b 55 14 cmp 0x14(%ebp),%edx <== NOT EXECUTED
1387f0: 76 03 jbe 1387f5 <rtems_rfs_group_open+0x99><== NOT EXECUTED
1387f2: 8b 55 14 mov 0x14(%ebp),%edx <== NOT EXECUTED
1387f5: 52 push %edx <== NOT EXECUTED
1387f6: 51 push %ecx <== NOT EXECUTED
1387f7: 56 push %esi <== NOT EXECUTED
1387f8: 8d 43 2c lea 0x2c(%ebx),%eax <== NOT EXECUTED
1387fb: 50 push %eax <== NOT EXECUTED
1387fc: 89 4d dc mov %ecx,-0x24(%ebp) <== NOT EXECUTED
1387ff: e8 bc 4b 00 00 call 13d3c0 <rtems_rfs_bitmap_open> <== NOT EXECUTED
138804: 89 c7 mov %eax,%edi <== NOT EXECUTED
&group->inode_bitmap_buffer, inodes,
group->base + RTEMS_RFS_GROUP_INODE_BITMAP_BLOCK);
if (rc > 0)
138806: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
138809: 85 c0 test %eax,%eax <== NOT EXECUTED
13880b: 8b 4d dc mov -0x24(%ebp),%ecx <== NOT EXECUTED
13880e: 7e 43 jle 138853 <rtems_rfs_group_open+0xf7><== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_close (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
rtems_rfs_buffer_handle_release (fs, handle);
138810: 50 push %eax <== NOT EXECUTED
138811: 50 push %eax <== NOT EXECUTED
138812: 51 push %ecx <== NOT EXECUTED
138813: 56 push %esi <== NOT EXECUTED
138814: e8 4a d2 ff ff call 135a63 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
handle->dirty = false;
138819: c6 43 44 00 movb $0x0,0x44(%ebx) <== NOT EXECUTED
handle->bnum = 0;
13881d: c7 43 48 00 00 00 00 movl $0x0,0x48(%ebx) <== NOT EXECUTED
handle->buffer = NULL;
138824: c7 43 4c 00 00 00 00 movl $0x0,0x4c(%ebx) <== NOT EXECUTED
{
rtems_rfs_buffer_handle_close (fs, &group->inode_bitmap_buffer);
rtems_rfs_bitmap_close (&group->block_bitmap);
13882b: 59 pop %ecx <== NOT EXECUTED
13882c: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
13882f: e8 7d 4a 00 00 call 13d2b1 <rtems_rfs_bitmap_close><== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_close (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
rtems_rfs_buffer_handle_release (fs, handle);
138834: 58 pop %eax <== NOT EXECUTED
138835: 5a pop %edx <== NOT EXECUTED
138836: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
138839: 56 push %esi <== NOT EXECUTED
13883a: e8 24 d2 ff ff call 135a63 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
handle->dirty = false;
13883f: c6 43 20 00 movb $0x0,0x20(%ebx) <== NOT EXECUTED
handle->bnum = 0;
138843: c7 43 24 00 00 00 00 movl $0x0,0x24(%ebx) <== NOT EXECUTED
handle->buffer = NULL;
13884a: c7 43 28 00 00 00 00 movl $0x0,0x28(%ebx) <== NOT EXECUTED
138851: eb 1d jmp 138870 <rtems_rfs_group_open+0x114><== NOT EXECUTED
printf ("rtems-rfs: group-open: could not open inode bitmap: %d: %s\n",
rc, strerror (rc));
return rc;
}
if (rtems_rfs_fs_release_bitmaps (fs))
138853: 31 ff xor %edi,%edi <== NOT EXECUTED
138855: f6 06 01 testb $0x1,(%esi) <== NOT EXECUTED
138858: 75 19 jne 138873 <rtems_rfs_group_open+0x117><== NOT EXECUTED
{
rtems_rfs_bitmap_release_buffer (fs, &group->block_bitmap);
13885a: 51 push %ecx <== NOT EXECUTED
13885b: 51 push %ecx <== NOT EXECUTED
13885c: ff 73 08 pushl 0x8(%ebx) <== NOT EXECUTED
13885f: 56 push %esi <== NOT EXECUTED
138860: e8 fe d1 ff ff call 135a63 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
rtems_rfs_bitmap_release_buffer (fs, &group->inode_bitmap);
138865: 58 pop %eax <== NOT EXECUTED
138866: 5a pop %edx <== NOT EXECUTED
138867: ff 73 2c pushl 0x2c(%ebx) <== NOT EXECUTED
13886a: 56 push %esi <== NOT EXECUTED
13886b: e8 f3 d1 ff ff call 135a63 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
138870: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
return 0;
}
138873: 89 f8 mov %edi,%eax <== NOT EXECUTED
138875: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
138878: 5b pop %ebx <== NOT EXECUTED
138879: 5e pop %esi <== NOT EXECUTED
13887a: 5f pop %edi <== NOT EXECUTED
13887b: c9 leave <== NOT EXECUTED
13887c: c3 ret <== NOT EXECUTED
00138464 <rtems_rfs_group_usage>:
int
rtems_rfs_group_usage (rtems_rfs_file_system* fs,
size_t* blocks,
size_t* inodes)
{
138464: 55 push %ebp <== NOT EXECUTED
138465: 89 e5 mov %esp,%ebp <== NOT EXECUTED
138467: 57 push %edi <== NOT EXECUTED
138468: 56 push %esi <== NOT EXECUTED
138469: 53 push %ebx <== NOT EXECUTED
13846a: 83 ec 04 sub $0x4,%esp <== NOT EXECUTED
13846d: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
138470: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED
138473: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
int g;
*blocks = 0;
138476: c7 01 00 00 00 00 movl $0x0,(%ecx) <== NOT EXECUTED
*inodes = 0;
13847c: c7 02 00 00 00 00 movl $0x0,(%edx) <== NOT EXECUTED
for (g = 0; g < fs->group_count; g++)
138482: 8b 43 20 mov 0x20(%ebx),%eax <== NOT EXECUTED
138485: 89 45 f0 mov %eax,-0x10(%ebp) <== NOT EXECUTED
138488: 31 f6 xor %esi,%esi <== NOT EXECUTED
13848a: eb 17 jmp 1384a3 <rtems_rfs_group_usage+0x3f><== NOT EXECUTED
{
rtems_rfs_group* group = &fs->groups[g];
13848c: 6b c6 50 imul $0x50,%esi,%eax <== NOT EXECUTED
13848f: 03 43 1c add 0x1c(%ebx),%eax <== NOT EXECUTED
*blocks +=
138492: 8b 78 14 mov 0x14(%eax),%edi <== NOT EXECUTED
138495: 2b 78 18 sub 0x18(%eax),%edi <== NOT EXECUTED
138498: 01 39 add %edi,(%ecx) <== NOT EXECUTED
rtems_rfs_bitmap_map_size(&group->block_bitmap) -
rtems_rfs_bitmap_map_free (&group->block_bitmap);
*inodes +=
13849a: 8b 78 38 mov 0x38(%eax),%edi <== NOT EXECUTED
13849d: 2b 78 3c sub 0x3c(%eax),%edi <== NOT EXECUTED
1384a0: 01 3a add %edi,(%edx) <== NOT EXECUTED
int g;
*blocks = 0;
*inodes = 0;
for (g = 0; g < fs->group_count; g++)
1384a2: 46 inc %esi <== NOT EXECUTED
1384a3: 3b 75 f0 cmp -0x10(%ebp),%esi <== NOT EXECUTED
1384a6: 7c e4 jl 13848c <rtems_rfs_group_usage+0x28><== NOT EXECUTED
*inodes +=
rtems_rfs_bitmap_map_size (&group->inode_bitmap) -
rtems_rfs_bitmap_map_free (&group->inode_bitmap);
}
if (*blocks > rtems_rfs_fs_blocks (fs))
1384a8: 8b 31 mov (%ecx),%esi <== NOT EXECUTED
1384aa: 8b 43 04 mov 0x4(%ebx),%eax <== NOT EXECUTED
1384ad: 39 c6 cmp %eax,%esi <== NOT EXECUTED
1384af: 77 02 ja 1384b3 <rtems_rfs_group_usage+0x4f><== NOT EXECUTED
1384b1: 89 f0 mov %esi,%eax <== NOT EXECUTED
1384b3: 89 01 mov %eax,(%ecx) <== NOT EXECUTED
*blocks = rtems_rfs_fs_blocks (fs);
if (*inodes > rtems_rfs_fs_inodes (fs))
1384b5: 8b 4b 10 mov 0x10(%ebx),%ecx <== NOT EXECUTED
1384b8: 8b 02 mov (%edx),%eax <== NOT EXECUTED
1384ba: 39 c8 cmp %ecx,%eax <== NOT EXECUTED
1384bc: 76 02 jbe 1384c0 <rtems_rfs_group_usage+0x5c><== NOT EXECUTED
1384be: 89 c8 mov %ecx,%eax <== NOT EXECUTED
1384c0: 89 02 mov %eax,(%edx) <== NOT EXECUTED
*inodes = rtems_rfs_fs_inodes (fs);
return 0;
}
1384c2: 31 c0 xor %eax,%eax <== NOT EXECUTED
1384c4: 5a pop %edx <== NOT EXECUTED
1384c5: 5b pop %ebx <== NOT EXECUTED
1384c6: 5e pop %esi <== NOT EXECUTED
1384c7: 5f pop %edi <== NOT EXECUTED
1384c8: c9 leave <== NOT EXECUTED
1384c9: c3 ret <== NOT EXECUTED
00138cdb <rtems_rfs_inode_alloc>:
int
rtems_rfs_inode_alloc (rtems_rfs_file_system* fs,
rtems_rfs_bitmap_bit goal,
rtems_rfs_ino* ino)
{
138cdb: 55 push %ebp <== NOT EXECUTED
138cdc: 89 e5 mov %esp,%ebp <== NOT EXECUTED
138cde: 83 ec 18 sub $0x18,%esp <== NOT EXECUTED
rtems_rfs_bitmap_bit bit;
int rc;
rc = rtems_rfs_group_bitmap_alloc (fs, goal, true, &bit);
138ce1: 8d 45 f4 lea -0xc(%ebp),%eax <== NOT EXECUTED
138ce4: 50 push %eax <== NOT EXECUTED
138ce5: 6a 01 push $0x1 <== NOT EXECUTED
138ce7: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
138cea: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
138ced: e8 c1 f8 ff ff call 1385b3 <rtems_rfs_group_bitmap_alloc><== NOT EXECUTED
*ino = bit;
138cf2: 8b 4d f4 mov -0xc(%ebp),%ecx <== NOT EXECUTED
138cf5: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
138cf8: 89 0a mov %ecx,(%edx) <== NOT EXECUTED
return rc;
}
138cfa: c9 leave <== NOT EXECUTED
138cfb: c3 ret <== NOT EXECUTED
00138b48 <rtems_rfs_inode_close>:
}
int
rtems_rfs_inode_close (rtems_rfs_file_system* fs,
rtems_rfs_inode_handle* handle)
{
138b48: 55 push %ebp <== NOT EXECUTED
138b49: 89 e5 mov %esp,%ebp <== NOT EXECUTED
138b4b: 53 push %ebx <== NOT EXECUTED
138b4c: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
138b4f: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
int rc;
if (rtems_rfs_trace (RTEMS_RFS_TRACE_INODE_CLOSE))
printf ("rtems-rfs: inode-close: ino: %" PRIu32 "\n", handle->ino);
rc = rtems_rfs_inode_unload (fs, handle, true);
138b52: 6a 01 push $0x1 <== NOT EXECUTED
138b54: 53 push %ebx <== NOT EXECUTED
138b55: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
138b58: e8 5f ff ff ff call 138abc <rtems_rfs_inode_unload><== NOT EXECUTED
if ((rc == 0) && (handle->loads > 0))
138b5d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
138b60: 85 c0 test %eax,%eax <== NOT EXECUTED
138b62: 75 08 jne 138b6c <rtems_rfs_inode_close+0x24><== NOT EXECUTED
138b64: 83 7b 24 00 cmpl $0x0,0x24(%ebx) <== NOT EXECUTED
138b68: 7e 02 jle 138b6c <rtems_rfs_inode_close+0x24><== NOT EXECUTED
138b6a: b0 05 mov $0x5,%al <== NOT EXECUTED
printf ("rtems-rfs: inode-close: bad loads number: %d\n",
handle->loads);
rc = EIO;
}
handle->ino = 0;
138b6c: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx) <== NOT EXECUTED
return rc;
}
138b73: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
138b76: c9 leave <== NOT EXECUTED
138b77: c3 ret <== NOT EXECUTED
00138cfc <rtems_rfs_inode_create>:
uint16_t mode,
uint16_t links,
uid_t uid,
gid_t gid,
rtems_rfs_ino* ino)
{
138cfc: 55 push %ebp <== NOT EXECUTED
138cfd: 89 e5 mov %esp,%ebp <== NOT EXECUTED
138cff: 57 push %edi <== NOT EXECUTED
138d00: 56 push %esi <== NOT EXECUTED
138d01: 53 push %ebx <== NOT EXECUTED
138d02: 83 ec 7c sub $0x7c,%esp <== NOT EXECUTED
138d05: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
138d08: 8b 7d 28 mov 0x28(%ebp),%edi <== NOT EXECUTED
138d0b: 8b 45 1c mov 0x1c(%ebp),%eax <== NOT EXECUTED
138d0e: 66 89 45 8e mov %ax,-0x72(%ebp) <== NOT EXECUTED
138d12: 8b 45 20 mov 0x20(%ebp),%eax <== NOT EXECUTED
138d15: 66 89 45 8c mov %ax,-0x74(%ebp) <== NOT EXECUTED
138d19: 8b 45 24 mov 0x24(%ebp),%eax <== NOT EXECUTED
138d1c: 66 89 45 8a mov %ax,-0x76(%ebp) <== NOT EXECUTED
}
/*
* The file type is field within the mode. Check we have a sane mode set.
*/
switch (mode & RTEMS_RFS_S_IFMT)
138d20: 0f b7 45 18 movzwl 0x18(%ebp),%eax <== NOT EXECUTED
138d24: 89 45 90 mov %eax,-0x70(%ebp) <== NOT EXECUTED
138d27: 25 00 f0 00 00 and $0xf000,%eax <== NOT EXECUTED
138d2c: 89 45 94 mov %eax,-0x6c(%ebp) <== NOT EXECUTED
138d2f: 3d 00 60 00 00 cmp $0x6000,%eax <== NOT EXECUTED
138d34: 74 2c je 138d62 <rtems_rfs_inode_create+0x66><== NOT EXECUTED
138d36: 7f 0e jg 138d46 <rtems_rfs_inode_create+0x4a><== NOT EXECUTED
138d38: 3d 00 20 00 00 cmp $0x2000,%eax <== NOT EXECUTED
138d3d: 74 23 je 138d62 <rtems_rfs_inode_create+0x66><== NOT EXECUTED
138d3f: 3d 00 40 00 00 cmp $0x4000,%eax <== NOT EXECUTED
138d44: eb 10 jmp 138d56 <rtems_rfs_inode_create+0x5a><== NOT EXECUTED
138d46: 81 7d 94 00 80 00 00 cmpl $0x8000,-0x6c(%ebp) <== NOT EXECUTED
138d4d: 74 13 je 138d62 <rtems_rfs_inode_create+0x66><== NOT EXECUTED
138d4f: 81 7d 94 00 a0 00 00 cmpl $0xa000,-0x6c(%ebp) <== NOT EXECUTED
138d56: 74 0a je 138d62 <rtems_rfs_inode_create+0x66><== NOT EXECUTED
138d58: be 16 00 00 00 mov $0x16,%esi <== NOT EXECUTED
138d5d: e9 af 01 00 00 jmp 138f11 <rtems_rfs_inode_create+0x215><== NOT EXECUTED
break;
default:
return EINVAL;
}
rc = rtems_rfs_inode_alloc (fs, parent, ino);
138d62: 56 push %esi <== NOT EXECUTED
138d63: 57 push %edi <== NOT EXECUTED
138d64: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
138d67: 53 push %ebx <== NOT EXECUTED
138d68: e8 6e ff ff ff call 138cdb <rtems_rfs_inode_alloc> <== NOT EXECUTED
138d6d: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
138d6f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
138d72: 85 c0 test %eax,%eax <== NOT EXECUTED
138d74: 0f 8f 97 01 00 00 jg 138f11 <rtems_rfs_inode_create+0x215><== NOT EXECUTED
return rc;
rc = rtems_rfs_inode_open (fs, *ino, &inode, true);
138d7a: 6a 01 push $0x1 <== NOT EXECUTED
138d7c: 8d 55 98 lea -0x68(%ebp),%edx <== NOT EXECUTED
138d7f: 52 push %edx <== NOT EXECUTED
138d80: ff 37 pushl (%edi) <== NOT EXECUTED
138d82: 53 push %ebx <== NOT EXECUTED
138d83: 89 55 84 mov %edx,-0x7c(%ebp) <== NOT EXECUTED
138d86: e8 2c fe ff ff call 138bb7 <rtems_rfs_inode_open> <== NOT EXECUTED
138d8b: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
138d8d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
138d90: 85 c0 test %eax,%eax <== NOT EXECUTED
138d92: 8b 55 84 mov -0x7c(%ebp),%edx <== NOT EXECUTED
138d95: 0f 8f 69 01 00 00 jg 138f04 <rtems_rfs_inode_create+0x208><== NOT EXECUTED
{
rtems_rfs_inode_free (fs, *ino);
return rc;
}
rc = rtems_rfs_inode_initialise (&inode, links, mode, uid, gid);
138d9b: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
138d9e: 0f b7 45 8a movzwl -0x76(%ebp),%eax <== NOT EXECUTED
138da2: 50 push %eax <== NOT EXECUTED
138da3: 0f b7 45 8c movzwl -0x74(%ebp),%eax <== NOT EXECUTED
138da7: 50 push %eax <== NOT EXECUTED
138da8: ff 75 90 pushl -0x70(%ebp) <== NOT EXECUTED
138dab: 0f b7 45 8e movzwl -0x72(%ebp),%eax <== NOT EXECUTED
138daf: 50 push %eax <== NOT EXECUTED
138db0: 52 push %edx <== NOT EXECUTED
138db1: 89 55 84 mov %edx,-0x7c(%ebp) <== NOT EXECUTED
138db4: e8 c3 fb ff ff call 13897c <rtems_rfs_inode_initialise><== NOT EXECUTED
138db9: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
138dbb: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
138dbe: 85 c0 test %eax,%eax <== NOT EXECUTED
138dc0: 8b 55 84 mov -0x7c(%ebp),%edx <== NOT EXECUTED
138dc3: 7e 10 jle 138dd5 <rtems_rfs_inode_create+0xd9><== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
138dc5: 51 push %ecx <== NOT EXECUTED
138dc6: 51 push %ecx <== NOT EXECUTED
138dc7: 52 push %edx <== NOT EXECUTED
138dc8: 53 push %ebx <== NOT EXECUTED
138dc9: e8 7a fd ff ff call 138b48 <rtems_rfs_inode_close> <== NOT EXECUTED
rtems_rfs_inode_free (fs, *ino);
138dce: 58 pop %eax <== NOT EXECUTED
138dcf: 5a pop %edx <== NOT EXECUTED
138dd0: e9 31 01 00 00 jmp 138f06 <rtems_rfs_inode_create+0x20a><== NOT EXECUTED
/*
* Only handle the specifics of a directory. Let caller handle the others.
*
* The inode delete will free the inode.
*/
if (RTEMS_RFS_S_ISDIR (mode))
138dd5: 81 7d 94 00 40 00 00 cmpl $0x4000,-0x6c(%ebp) <== NOT EXECUTED
138ddc: 75 3f jne 138e1d <rtems_rfs_inode_create+0x121><== NOT EXECUTED
{
rc = rtems_rfs_dir_add_entry (fs, &inode, ".", 1, *ino);
138dde: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
138de1: ff 37 pushl (%edi) <== NOT EXECUTED
138de3: 6a 01 push $0x1 <== NOT EXECUTED
138de5: 68 be 87 15 00 push $0x1587be <== NOT EXECUTED
138dea: 52 push %edx <== NOT EXECUTED
138deb: 53 push %ebx <== NOT EXECUTED
138dec: 89 55 84 mov %edx,-0x7c(%ebp) <== NOT EXECUTED
138def: e8 dc d5 ff ff call 1363d0 <rtems_rfs_dir_add_entry><== NOT EXECUTED
138df4: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc == 0)
138df6: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
138df9: 85 c0 test %eax,%eax <== NOT EXECUTED
138dfb: 8b 55 84 mov -0x7c(%ebp),%edx <== NOT EXECUTED
138dfe: 75 19 jne 138e19 <rtems_rfs_inode_create+0x11d><== NOT EXECUTED
rc = rtems_rfs_dir_add_entry (fs, &inode, "..", 2, parent);
138e00: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
138e03: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
138e06: 6a 02 push $0x2 <== NOT EXECUTED
138e08: 68 4c 90 15 00 push $0x15904c <== NOT EXECUTED
138e0d: 52 push %edx <== NOT EXECUTED
138e0e: 53 push %ebx <== NOT EXECUTED
138e0f: e8 bc d5 ff ff call 1363d0 <rtems_rfs_dir_add_entry><== NOT EXECUTED
138e14: 89 c6 mov %eax,%esi <== NOT EXECUTED
138e16: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
if (rc > 0)
138e19: 85 f6 test %esi,%esi <== NOT EXECUTED
138e1b: 7f 18 jg 138e35 <rtems_rfs_inode_create+0x139><== NOT EXECUTED
rtems_rfs_inode_close (fs, &inode);
return rc;
}
}
rc = rtems_rfs_inode_open (fs, parent, &parent_inode, true);
138e1d: 6a 01 push $0x1 <== NOT EXECUTED
138e1f: 8d 45 c0 lea -0x40(%ebp),%eax <== NOT EXECUTED
138e22: 50 push %eax <== NOT EXECUTED
138e23: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
138e26: 53 push %ebx <== NOT EXECUTED
138e27: e8 8b fd ff ff call 138bb7 <rtems_rfs_inode_open> <== NOT EXECUTED
138e2c: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
138e2e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
138e31: 85 c0 test %eax,%eax <== NOT EXECUTED
138e33: 7e 14 jle 138e49 <rtems_rfs_inode_create+0x14d><== NOT EXECUTED
{
rtems_rfs_inode_delete (fs, &inode);
138e35: 51 push %ecx <== NOT EXECUTED
138e36: 51 push %ecx <== NOT EXECUTED
138e37: 8d 7d 98 lea -0x68(%ebp),%edi <== NOT EXECUTED
138e3a: 57 push %edi <== NOT EXECUTED
138e3b: 53 push %ebx <== NOT EXECUTED
138e3c: e8 14 fe ff ff call 138c55 <rtems_rfs_inode_delete><== NOT EXECUTED
rtems_rfs_inode_close (fs, &inode);
138e41: 58 pop %eax <== NOT EXECUTED
138e42: 5a pop %edx <== NOT EXECUTED
138e43: 57 push %edi <== NOT EXECUTED
138e44: e9 9d 00 00 00 jmp 138ee6 <rtems_rfs_inode_create+0x1ea><== NOT EXECUTED
return rc;
}
rc = rtems_rfs_dir_add_entry (fs, &parent_inode, name, length, *ino);
138e49: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
138e4c: ff 37 pushl (%edi) <== NOT EXECUTED
138e4e: ff 75 14 pushl 0x14(%ebp) <== NOT EXECUTED
138e51: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
138e54: 8d 45 c0 lea -0x40(%ebp),%eax <== NOT EXECUTED
138e57: 50 push %eax <== NOT EXECUTED
138e58: 53 push %ebx <== NOT EXECUTED
138e59: e8 72 d5 ff ff call 1363d0 <rtems_rfs_dir_add_entry><== NOT EXECUTED
138e5e: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
138e60: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
138e63: 85 c0 test %eax,%eax <== NOT EXECUTED
138e65: 7e 1d jle 138e84 <rtems_rfs_inode_create+0x188><== NOT EXECUTED
{
rtems_rfs_inode_delete (fs, &inode);
138e67: 57 push %edi <== NOT EXECUTED
138e68: 57 push %edi <== NOT EXECUTED
138e69: 8d 7d 98 lea -0x68(%ebp),%edi <== NOT EXECUTED
138e6c: 57 push %edi <== NOT EXECUTED
138e6d: 53 push %ebx <== NOT EXECUTED
138e6e: e8 e2 fd ff ff call 138c55 <rtems_rfs_inode_delete><== NOT EXECUTED
rtems_rfs_inode_close (fs, &inode);
138e73: 5a pop %edx <== NOT EXECUTED
138e74: 59 pop %ecx <== NOT EXECUTED
138e75: 57 push %edi <== NOT EXECUTED
138e76: 53 push %ebx <== NOT EXECUTED
138e77: e8 cc fc ff ff call 138b48 <rtems_rfs_inode_close> <== NOT EXECUTED
rtems_rfs_inode_close (fs, &parent_inode);
138e7c: 5f pop %edi <== NOT EXECUTED
138e7d: 58 pop %eax <== NOT EXECUTED
138e7e: 8d 45 c0 lea -0x40(%ebp),%eax <== NOT EXECUTED
138e81: 50 push %eax <== NOT EXECUTED
138e82: eb 62 jmp 138ee6 <rtems_rfs_inode_create+0x1ea><== NOT EXECUTED
/*
* If the node is a directory update the parent link count as the
* new directory has the '..' link that points to the parent.
*/
if (RTEMS_RFS_S_ISDIR (mode))
138e84: 81 7d 94 00 40 00 00 cmpl $0x4000,-0x6c(%ebp) <== NOT EXECUTED
138e8b: 75 2f jne 138ebc <rtems_rfs_inode_create+0x1c0><== NOT EXECUTED
*/
static inline uint16_t
rtems_rfs_inode_get_links (rtems_rfs_inode_handle* handle)
{
uint16_t links;
links = rtems_rfs_read_u16 (&handle->node->links);
138e8d: 8b 55 cc mov -0x34(%ebp),%edx <== NOT EXECUTED
138e90: 0f b6 0a movzbl (%edx),%ecx <== NOT EXECUTED
138e93: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
138e96: 0f b6 42 01 movzbl 0x1(%edx),%eax <== NOT EXECUTED
138e9a: 09 c8 or %ecx,%eax <== NOT EXECUTED
if (links == 0xffff)
138e9c: 31 c9 xor %ecx,%ecx <== NOT EXECUTED
138e9e: 66 83 f8 ff cmp $0xffffffff,%ax <== NOT EXECUTED
138ea2: 0f 95 c1 setne %cl <== NOT EXECUTED
138ea5: f7 d9 neg %ecx <== NOT EXECUTED
138ea7: 21 c8 and %ecx,%eax <== NOT EXECUTED
rtems_rfs_inode_set_links (&parent_inode,
138ea9: 40 inc %eax <== NOT EXECUTED
* @prarm links The links.
*/
static inline void
rtems_rfs_inode_set_links (rtems_rfs_inode_handle* handle, uint16_t links)
{
rtems_rfs_write_u16 (&handle->node->links, links);
138eaa: 89 c1 mov %eax,%ecx <== NOT EXECUTED
138eac: 66 c1 e9 08 shr $0x8,%cx <== NOT EXECUTED
138eb0: 88 0a mov %cl,(%edx) <== NOT EXECUTED
138eb2: 8b 55 cc mov -0x34(%ebp),%edx <== NOT EXECUTED
138eb5: 88 42 01 mov %al,0x1(%edx) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
138eb8: c6 45 d0 01 movb $0x1,-0x30(%ebp) <== NOT EXECUTED
rtems_rfs_inode_get_links (&parent_inode) + 1);
rc = rtems_rfs_inode_close (fs, &parent_inode);
138ebc: 56 push %esi <== NOT EXECUTED
138ebd: 56 push %esi <== NOT EXECUTED
138ebe: 8d 45 c0 lea -0x40(%ebp),%eax <== NOT EXECUTED
138ec1: 50 push %eax <== NOT EXECUTED
138ec2: 53 push %ebx <== NOT EXECUTED
138ec3: e8 80 fc ff ff call 138b48 <rtems_rfs_inode_close> <== NOT EXECUTED
138ec8: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
138eca: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
138ecd: 85 c0 test %eax,%eax <== NOT EXECUTED
138ecf: 8d 55 98 lea -0x68(%ebp),%edx <== NOT EXECUTED
138ed2: 7e 1a jle 138eee <rtems_rfs_inode_create+0x1f2><== NOT EXECUTED
{
rtems_rfs_inode_delete (fs, &inode);
138ed4: 51 push %ecx <== NOT EXECUTED
138ed5: 51 push %ecx <== NOT EXECUTED
138ed6: 52 push %edx <== NOT EXECUTED
138ed7: 53 push %ebx <== NOT EXECUTED
138ed8: 89 55 84 mov %edx,-0x7c(%ebp) <== NOT EXECUTED
138edb: e8 75 fd ff ff call 138c55 <rtems_rfs_inode_delete><== NOT EXECUTED
rtems_rfs_inode_close (fs, &inode);
138ee0: 5f pop %edi <== NOT EXECUTED
138ee1: 58 pop %eax <== NOT EXECUTED
138ee2: 8b 55 84 mov -0x7c(%ebp),%edx <== NOT EXECUTED
138ee5: 52 push %edx <== NOT EXECUTED
138ee6: 53 push %ebx <== NOT EXECUTED
138ee7: e8 5c fc ff ff call 138b48 <rtems_rfs_inode_close> <== NOT EXECUTED
138eec: eb 20 jmp 138f0e <rtems_rfs_inode_create+0x212><== NOT EXECUTED
return rc;
}
rc = rtems_rfs_inode_close (fs, &inode);
138eee: 51 push %ecx <== NOT EXECUTED
138eef: 51 push %ecx <== NOT EXECUTED
138ef0: 52 push %edx <== NOT EXECUTED
138ef1: 53 push %ebx <== NOT EXECUTED
138ef2: e8 51 fc ff ff call 138b48 <rtems_rfs_inode_close> <== NOT EXECUTED
138ef7: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
138ef9: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
138efc: 85 c0 test %eax,%eax <== NOT EXECUTED
138efe: 7f 04 jg 138f04 <rtems_rfs_inode_create+0x208><== NOT EXECUTED
138f00: 31 f6 xor %esi,%esi <== NOT EXECUTED
138f02: eb 0d jmp 138f11 <rtems_rfs_inode_create+0x215><== NOT EXECUTED
{
rtems_rfs_inode_free (fs, *ino);
138f04: 52 push %edx <== NOT EXECUTED
138f05: 52 push %edx <== NOT EXECUTED
138f06: ff 37 pushl (%edi) <== NOT EXECUTED
138f08: 53 push %ebx <== NOT EXECUTED
138f09: e8 32 fd ff ff call 138c40 <rtems_rfs_inode_free> <== NOT EXECUTED
return rc;
138f0e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
return 0;
}
138f11: 89 f0 mov %esi,%eax <== NOT EXECUTED
138f13: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
138f16: 5b pop %ebx <== NOT EXECUTED
138f17: 5e pop %esi <== NOT EXECUTED
138f18: 5f pop %edi <== NOT EXECUTED
138f19: c9 leave <== NOT EXECUTED
138f1a: c3 ret <== NOT EXECUTED
00138c55 <rtems_rfs_inode_delete>:
}
int
rtems_rfs_inode_delete (rtems_rfs_file_system* fs,
rtems_rfs_inode_handle* handle)
{
138c55: 55 push %ebp <== NOT EXECUTED
138c56: 89 e5 mov %esp,%ebp <== NOT EXECUTED
138c58: 57 push %edi <== NOT EXECUTED
138c59: 56 push %esi <== NOT EXECUTED
138c5a: 53 push %ebx <== NOT EXECUTED
138c5b: 83 ec 5c sub $0x5c,%esp <== NOT EXECUTED
138c5e: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
138c61: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_INODE_DELETE))
printf("rtems-rfs: inode-delete: ino:%" PRIu32 " loaded:%s\n",
rtems_rfs_inode_ino (handle),
rtems_rfs_inode_is_loaded (handle) ? "yes" : "no");
if (rtems_rfs_inode_is_loaded (handle))
138c64: 31 c0 xor %eax,%eax <== NOT EXECUTED
138c66: 83 7b 0c 00 cmpl $0x0,0xc(%ebx) <== NOT EXECUTED
138c6a: 74 67 je 138cd3 <rtems_rfs_inode_delete+0x7e><== NOT EXECUTED
rtems_rfs_block_map map;
/*
* Free the ino number.
*/
rc = rtems_rfs_inode_free (fs, handle->ino);
138c6c: 50 push %eax <== NOT EXECUTED
138c6d: 50 push %eax <== NOT EXECUTED
138c6e: ff 73 08 pushl 0x8(%ebx) <== NOT EXECUTED
138c71: 56 push %esi <== NOT EXECUTED
138c72: e8 c9 ff ff ff call 138c40 <rtems_rfs_inode_free> <== NOT EXECUTED
if (rc > 0)
138c77: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
138c7a: 85 c0 test %eax,%eax <== NOT EXECUTED
138c7c: 7f 55 jg 138cd3 <rtems_rfs_inode_delete+0x7e><== NOT EXECUTED
return rc;
/*
* Free the blocks the inode may have attached.
*/
rc = rtems_rfs_block_map_open (fs, handle, &map);
138c7e: 57 push %edi <== NOT EXECUTED
138c7f: 8d 7d 98 lea -0x68(%ebp),%edi <== NOT EXECUTED
138c82: 57 push %edi <== NOT EXECUTED
138c83: 53 push %ebx <== NOT EXECUTED
138c84: 56 push %esi <== NOT EXECUTED
138c85: e8 bb ca ff ff call 135745 <rtems_rfs_block_map_open><== NOT EXECUTED
if (rc == 0)
138c8a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
138c8d: 85 c0 test %eax,%eax <== NOT EXECUTED
138c8f: 75 42 jne 138cd3 <rtems_rfs_inode_delete+0x7e><== NOT EXECUTED
{
int rrc;
rrc = rtems_rfs_block_map_free_all (fs, &map);
138c91: 51 push %ecx <== NOT EXECUTED
138c92: 51 push %ecx <== NOT EXECUTED
138c93: 57 push %edi <== NOT EXECUTED
138c94: 56 push %esi <== NOT EXECUTED
138c95: e8 78 c5 ff ff call 135212 <rtems_rfs_block_map_free_all><== NOT EXECUTED
rc = rtems_rfs_block_map_close (fs, &map);
138c9a: 58 pop %eax <== NOT EXECUTED
138c9b: 5a pop %edx <== NOT EXECUTED
138c9c: 57 push %edi <== NOT EXECUTED
138c9d: 56 push %esi <== NOT EXECUTED
138c9e: e8 ff c8 ff ff call 1355a2 <rtems_rfs_block_map_close><== NOT EXECUTED
if (rc > 0)
rrc = rc;
memset (handle->node, 0xff, RTEMS_RFS_INODE_SIZE);
138ca3: 8b 53 0c mov 0xc(%ebx),%edx <== NOT EXECUTED
138ca6: b9 0e 00 00 00 mov $0xe,%ecx <== NOT EXECUTED
138cab: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
138cae: 89 d7 mov %edx,%edi <== NOT EXECUTED
138cb0: f3 ab rep stos %eax,%es:(%edi) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
138cb2: c6 43 10 01 movb $0x1,0x10(%ebx) <== NOT EXECUTED
/*
* Do the release here to avoid the ctime field being set on a
* close. Also if there loads is greater then one then other loads
* active. Forcing the loads count to 0.
*/
rc = rtems_rfs_buffer_handle_release (fs, &handle->buffer);
138cb6: 5a pop %edx <== NOT EXECUTED
138cb7: 59 pop %ecx <== NOT EXECUTED
138cb8: 8d 43 10 lea 0x10(%ebx),%eax <== NOT EXECUTED
138cbb: 50 push %eax <== NOT EXECUTED
138cbc: 56 push %esi <== NOT EXECUTED
138cbd: e8 a1 cd ff ff call 135a63 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
handle->loads = 0;
138cc2: c7 43 24 00 00 00 00 movl $0x0,0x24(%ebx) <== NOT EXECUTED
handle->node = NULL;
138cc9: c7 43 0c 00 00 00 00 movl $0x0,0xc(%ebx) <== NOT EXECUTED
138cd0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
}
return rc;
}
138cd3: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
138cd6: 5b pop %ebx <== NOT EXECUTED
138cd7: 5e pop %esi <== NOT EXECUTED
138cd8: 5f pop %edi <== NOT EXECUTED
138cd9: c9 leave <== NOT EXECUTED
138cda: c3 ret <== NOT EXECUTED
00138c40 <rtems_rfs_inode_free>:
}
int
rtems_rfs_inode_free (rtems_rfs_file_system* fs,
rtems_rfs_ino ino)
{
138c40: 55 push %ebp <== NOT EXECUTED
138c41: 89 e5 mov %esp,%ebp <== NOT EXECUTED
138c43: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
rtems_rfs_bitmap_bit bit;
bit = ino;
return rtems_rfs_group_bitmap_free (fs, true, bit);
138c46: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
138c49: 6a 01 push $0x1 <== NOT EXECUTED
138c4b: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
138c4e: e8 f7 f8 ff ff call 13854a <rtems_rfs_group_bitmap_free><== NOT EXECUTED
}
138c53: c9 leave <== NOT EXECUTED
138c54: c3 ret <== NOT EXECUTED
00138880 <rtems_rfs_inode_get_size>:
}
rtems_rfs_pos
rtems_rfs_inode_get_size (rtems_rfs_file_system* fs,
rtems_rfs_inode_handle* handle)
{
138880: 55 push %ebp <== NOT EXECUTED
138881: 89 e5 mov %esp,%ebp <== NOT EXECUTED
138883: 53 push %ebx <== NOT EXECUTED
138884: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
* @return uint32_t The block count.
*/
static inline uint32_t
rtems_rfs_inode_get_block_count (rtems_rfs_inode_handle* handle)
{
return rtems_rfs_read_u32 (&handle->node->block_count);
138887: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
13888a: 8b 50 0c mov 0xc(%eax),%edx <== NOT EXECUTED
13888d: 8d 4a 0c lea 0xc(%edx),%ecx <== NOT EXECUTED
rtems_rfs_block_size size;
size.count = rtems_rfs_inode_get_block_count (handle);
138890: 0f b6 41 03 movzbl 0x3(%ecx),%eax <== NOT EXECUTED
138894: 0f b6 5a 0c movzbl 0xc(%edx),%ebx <== NOT EXECUTED
138898: c1 e3 18 shl $0x18,%ebx <== NOT EXECUTED
13889b: 09 d8 or %ebx,%eax <== NOT EXECUTED
13889d: 0f b6 59 01 movzbl 0x1(%ecx),%ebx <== NOT EXECUTED
1388a1: c1 e3 10 shl $0x10,%ebx <== NOT EXECUTED
1388a4: 09 d8 or %ebx,%eax <== NOT EXECUTED
1388a6: 0f b6 49 02 movzbl 0x2(%ecx),%ecx <== NOT EXECUTED
1388aa: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
1388ad: 09 c8 or %ecx,%eax <== NOT EXECUTED
1388af: 89 45 f0 mov %eax,-0x10(%ebp) <== NOT EXECUTED
size.offset = rtems_rfs_inode_get_block_offset (handle);
1388b2: 0f b6 4a 0a movzbl 0xa(%edx),%ecx <== NOT EXECUTED
1388b6: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
1388b9: 0f b6 42 0b movzbl 0xb(%edx),%eax <== NOT EXECUTED
1388bd: 09 c8 or %ecx,%eax <== NOT EXECUTED
1388bf: 0f b7 c0 movzwl %ax,%eax <== NOT EXECUTED
1388c2: 89 45 f4 mov %eax,-0xc(%ebp) <== NOT EXECUTED
return rtems_rfs_block_get_size (fs, &size);
1388c5: 8d 45 f0 lea -0x10(%ebp),%eax <== NOT EXECUTED
1388c8: 50 push %eax <== NOT EXECUTED
1388c9: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
1388cc: e8 c9 c3 ff ff call 134c9a <rtems_rfs_block_get_size><== NOT EXECUTED
}
1388d1: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
1388d4: c9 leave <== NOT EXECUTED
1388d5: c3 ret <== NOT EXECUTED
0013897c <rtems_rfs_inode_initialise>:
rtems_rfs_inode_initialise (rtems_rfs_inode_handle* handle,
uint16_t links,
uint16_t mode,
uid_t uid,
gid_t gid)
{
13897c: 55 push %ebp <== NOT EXECUTED
13897d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13897f: 57 push %edi <== NOT EXECUTED
138980: 56 push %esi <== NOT EXECUTED
138981: 53 push %ebx <== NOT EXECUTED
138982: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED
138985: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
138988: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
13898b: 8b 4d 10 mov 0x10(%ebp),%ecx <== NOT EXECUTED
13898e: 8b 55 14 mov 0x14(%ebp),%edx <== NOT EXECUTED
138991: 66 89 55 e6 mov %dx,-0x1a(%ebp) <== NOT EXECUTED
138995: 8b 75 18 mov 0x18(%ebp),%esi <== NOT EXECUTED
138998: 66 89 75 c8 mov %si,-0x38(%ebp) <== NOT EXECUTED
* @prarm links The links.
*/
static inline void
rtems_rfs_inode_set_links (rtems_rfs_inode_handle* handle, uint16_t links)
{
rtems_rfs_write_u16 (&handle->node->links, links);
13899c: 89 df mov %ebx,%edi <== NOT EXECUTED
13899e: 66 c1 ef 08 shr $0x8,%di <== NOT EXECUTED
1389a2: 89 fa mov %edi,%edx <== NOT EXECUTED
1389a4: 8b 70 0c mov 0xc(%eax),%esi <== NOT EXECUTED
1389a7: 88 16 mov %dl,(%esi) <== NOT EXECUTED
1389a9: 8b 78 0c mov 0xc(%eax),%edi <== NOT EXECUTED
1389ac: 88 5f 01 mov %bl,0x1(%edi) <== NOT EXECUTED
* @prarm flags The flags.
*/
static inline void
rtems_rfs_inode_set_flags (rtems_rfs_inode_handle* handle, uint16_t flags)
{
rtems_rfs_write_u16 (&handle->node->flags, flags);
1389af: 8b 58 0c mov 0xc(%eax),%ebx <== NOT EXECUTED
1389b2: c6 43 08 00 movb $0x0,0x8(%ebx) <== NOT EXECUTED
1389b6: 8b 58 0c mov 0xc(%eax),%ebx <== NOT EXECUTED
1389b9: c6 43 09 00 movb $0x0,0x9(%ebx) <== NOT EXECUTED
* @prarm mode The mode.
*/
static inline void
rtems_rfs_inode_set_mode (rtems_rfs_inode_handle* handle, uint16_t mode)
{
rtems_rfs_write_u16 (&handle->node->mode, mode);
1389bd: 8b 58 0c mov 0xc(%eax),%ebx <== NOT EXECUTED
1389c0: 89 cf mov %ecx,%edi <== NOT EXECUTED
1389c2: 66 c1 ef 08 shr $0x8,%di <== NOT EXECUTED
1389c6: 89 fa mov %edi,%edx <== NOT EXECUTED
1389c8: 88 53 02 mov %dl,0x2(%ebx) <== NOT EXECUTED
1389cb: 8b 58 0c mov 0xc(%eax),%ebx <== NOT EXECUTED
1389ce: 88 4b 03 mov %cl,0x3(%ebx) <== NOT EXECUTED
*/
static inline void
rtems_rfs_inode_set_uid_gid (rtems_rfs_inode_handle* handle,
uint16_t uid, uint16_t gid)
{
rtems_rfs_write_u32 (&handle->node->owner, (((uint32_t) gid) << 16) | uid);
1389d1: 8b 75 c8 mov -0x38(%ebp),%esi <== NOT EXECUTED
1389d4: c1 e6 10 shl $0x10,%esi <== NOT EXECUTED
1389d7: 0f b7 4d e6 movzwl -0x1a(%ebp),%ecx <== NOT EXECUTED
1389db: 09 ce or %ecx,%esi <== NOT EXECUTED
1389dd: 8b 48 0c mov 0xc(%eax),%ecx <== NOT EXECUTED
1389e0: 89 f3 mov %esi,%ebx <== NOT EXECUTED
1389e2: c1 eb 18 shr $0x18,%ebx <== NOT EXECUTED
1389e5: 88 59 04 mov %bl,0x4(%ecx) <== NOT EXECUTED
1389e8: 8b 48 0c mov 0xc(%eax),%ecx <== NOT EXECUTED
1389eb: 89 f3 mov %esi,%ebx <== NOT EXECUTED
1389ed: c1 eb 10 shr $0x10,%ebx <== NOT EXECUTED
1389f0: 88 59 05 mov %bl,0x5(%ecx) <== NOT EXECUTED
1389f3: 8b 48 0c mov 0xc(%eax),%ecx <== NOT EXECUTED
1389f6: c1 ee 08 shr $0x8,%esi <== NOT EXECUTED
1389f9: 89 f2 mov %esi,%edx <== NOT EXECUTED
1389fb: 88 51 06 mov %dl,0x6(%ecx) <== NOT EXECUTED
1389fe: 8b 48 0c mov 0xc(%eax),%ecx <== NOT EXECUTED
138a01: 8a 55 e6 mov -0x1a(%ebp),%dl <== NOT EXECUTED
138a04: 88 51 07 mov %dl,0x7(%ecx) <== NOT EXECUTED
*/
static inline void
rtems_rfs_inode_set_block_offset (rtems_rfs_inode_handle* handle,
uint16_t block_offset)
{
rtems_rfs_write_u16 (&handle->node->block_offset, block_offset);
138a07: 8b 50 0c mov 0xc(%eax),%edx <== NOT EXECUTED
138a0a: c6 42 0a 00 movb $0x0,0xa(%edx) <== NOT EXECUTED
138a0e: 8b 50 0c mov 0xc(%eax),%edx <== NOT EXECUTED
138a11: c6 42 0b 00 movb $0x0,0xb(%edx) <== NOT EXECUTED
* @param block_count The block count.
*/
static inline void
rtems_rfs_inode_set_block_count (rtems_rfs_inode_handle* handle, uint32_t block_count)
{
rtems_rfs_write_u32 (&handle->node->block_count, block_count);
138a15: 8b 50 0c mov 0xc(%eax),%edx <== NOT EXECUTED
138a18: c6 42 0c 00 movb $0x0,0xc(%edx) <== NOT EXECUTED
138a1c: 8b 50 0c mov 0xc(%eax),%edx <== NOT EXECUTED
138a1f: c6 42 0d 00 movb $0x0,0xd(%edx) <== NOT EXECUTED
138a23: 8b 50 0c mov 0xc(%eax),%edx <== NOT EXECUTED
138a26: c6 42 0e 00 movb $0x0,0xe(%edx) <== NOT EXECUTED
138a2a: 8b 50 0c mov 0xc(%eax),%edx <== NOT EXECUTED
138a2d: c6 42 0f 00 movb $0x0,0xf(%edx) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
138a31: c6 40 10 01 movb $0x1,0x10(%eax) <== NOT EXECUTED
138a35: 31 d2 xor %edx,%edx <== NOT EXECUTED
* @param bno The block number.
*/
static inline void
rtems_rfs_inode_set_block (rtems_rfs_inode_handle* handle, int block, uint32_t bno)
{
rtems_rfs_write_u32 (&handle->node->data.blocks[block], bno);
138a37: 8b 48 0c mov 0xc(%eax),%ecx <== NOT EXECUTED
138a3a: c6 44 11 1c 00 movb $0x0,0x1c(%ecx,%edx,1) <== NOT EXECUTED
138a3f: 8b 48 0c mov 0xc(%eax),%ecx <== NOT EXECUTED
138a42: c6 44 11 1d 00 movb $0x0,0x1d(%ecx,%edx,1) <== NOT EXECUTED
138a47: 8b 48 0c mov 0xc(%eax),%ecx <== NOT EXECUTED
138a4a: c6 44 11 1e 00 movb $0x0,0x1e(%ecx,%edx,1) <== NOT EXECUTED
138a4f: 8b 48 0c mov 0xc(%eax),%ecx <== NOT EXECUTED
138a52: c6 44 11 1f 00 movb $0x0,0x1f(%ecx,%edx,1) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
138a57: c6 40 10 01 movb $0x1,0x10(%eax) <== NOT EXECUTED
138a5b: 83 c2 04 add $0x4,%edx <== NOT EXECUTED
rtems_rfs_inode_set_flags (handle, 0);
rtems_rfs_inode_set_mode (handle, mode);
rtems_rfs_inode_set_uid_gid (handle, uid, gid);
rtems_rfs_inode_set_block_offset (handle, 0);
rtems_rfs_inode_set_block_count (handle, 0);
for (b = 0; b < RTEMS_RFS_INODE_BLOCKS; b++)
138a5e: 83 fa 14 cmp $0x14,%edx <== NOT EXECUTED
138a61: 75 d4 jne 138a37 <rtems_rfs_inode_initialise+0xbb><== NOT EXECUTED
* @param block_count The last map block number.
*/
static inline void
rtems_rfs_inode_set_last_map_block (rtems_rfs_inode_handle* handle, uint32_t last_map_block)
{
rtems_rfs_write_u32 (&handle->node->last_map_block, last_map_block);
138a63: 8b 50 0c mov 0xc(%eax),%edx <== NOT EXECUTED
138a66: c6 42 30 00 movb $0x0,0x30(%edx) <== NOT EXECUTED
138a6a: 8b 50 0c mov 0xc(%eax),%edx <== NOT EXECUTED
138a6d: c6 42 31 00 movb $0x0,0x31(%edx) <== NOT EXECUTED
138a71: 8b 50 0c mov 0xc(%eax),%edx <== NOT EXECUTED
138a74: c6 42 32 00 movb $0x0,0x32(%edx) <== NOT EXECUTED
138a78: 8b 50 0c mov 0xc(%eax),%edx <== NOT EXECUTED
138a7b: c6 42 33 00 movb $0x0,0x33(%edx) <== NOT EXECUTED
* @param block_count The last data block number.
*/
static inline void
rtems_rfs_inode_set_last_data_block (rtems_rfs_inode_handle* handle, uint32_t last_data_block)
{
rtems_rfs_write_u32 (&handle->node->last_data_block, last_data_block);
138a7f: 8b 50 0c mov 0xc(%eax),%edx <== NOT EXECUTED
138a82: c6 42 34 00 movb $0x0,0x34(%edx) <== NOT EXECUTED
138a86: 8b 50 0c mov 0xc(%eax),%edx <== NOT EXECUTED
138a89: c6 42 35 00 movb $0x0,0x35(%edx) <== NOT EXECUTED
138a8d: 8b 50 0c mov 0xc(%eax),%edx <== NOT EXECUTED
138a90: c6 42 36 00 movb $0x0,0x36(%edx) <== NOT EXECUTED
138a94: 8b 50 0c mov 0xc(%eax),%edx <== NOT EXECUTED
138a97: c6 42 37 00 movb $0x0,0x37(%edx) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
138a9b: c6 40 10 01 movb $0x1,0x10(%eax) <== NOT EXECUTED
rtems_rfs_inode_set_block (handle, b, 0);
rtems_rfs_inode_set_last_map_block (handle, 0);
rtems_rfs_inode_set_last_data_block (handle, 0);
return rtems_rfs_inode_time_stamp_now (handle, true, true);
138a9f: c7 45 10 01 00 00 00 movl $0x1,0x10(%ebp) <== NOT EXECUTED
138aa6: c7 45 0c 01 00 00 00 movl $0x1,0xc(%ebp) <== NOT EXECUTED
138aad: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED
}
138ab0: 83 c4 2c add $0x2c,%esp <== NOT EXECUTED
138ab3: 5b pop %ebx <== NOT EXECUTED
138ab4: 5e pop %esi <== NOT EXECUTED
138ab5: 5f pop %edi <== NOT EXECUTED
138ab6: c9 leave <== NOT EXECUTED
rtems_rfs_inode_set_block_count (handle, 0);
for (b = 0; b < RTEMS_RFS_INODE_BLOCKS; b++)
rtems_rfs_inode_set_block (handle, b, 0);
rtems_rfs_inode_set_last_map_block (handle, 0);
rtems_rfs_inode_set_last_data_block (handle, 0);
return rtems_rfs_inode_time_stamp_now (handle, true, true);
138ab7: e9 1a fe ff ff jmp 1388d6 <rtems_rfs_inode_time_stamp_now><== NOT EXECUTED
00138b78 <rtems_rfs_inode_load>:
int
rtems_rfs_inode_load (rtems_rfs_file_system* fs,
rtems_rfs_inode_handle* handle)
{
138b78: 55 push %ebp <== NOT EXECUTED
138b79: 89 e5 mov %esp,%ebp <== NOT EXECUTED
138b7b: 53 push %ebx <== NOT EXECUTED
138b7c: 83 ec 04 sub $0x4,%esp <== NOT EXECUTED
138b7f: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
/*
* An inode does not move so once loaded no need to do again.
*/
if (!rtems_rfs_inode_is_loaded (handle))
138b82: 83 7b 0c 00 cmpl $0x0,0xc(%ebx) <== NOT EXECUTED
138b86: 75 25 jne 138bad <rtems_rfs_inode_load+0x35><== NOT EXECUTED
{
int rc;
rc = rtems_rfs_buffer_handle_request (fs,&handle->buffer,
138b88: 6a 01 push $0x1 <== NOT EXECUTED
138b8a: ff 73 1c pushl 0x1c(%ebx) <== NOT EXECUTED
138b8d: 8d 43 10 lea 0x10(%ebx),%eax <== NOT EXECUTED
138b90: 50 push %eax <== NOT EXECUTED
138b91: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
138b94: e8 c1 cf ff ff call 135b5a <rtems_rfs_buffer_handle_request><== NOT EXECUTED
handle->block, true);
if (rc > 0)
138b99: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
138b9c: 85 c0 test %eax,%eax <== NOT EXECUTED
138b9e: 7f 12 jg 138bb2 <rtems_rfs_inode_load+0x3a><== NOT EXECUTED
return rc;
handle->node = rtems_rfs_buffer_data (&handle->buffer);
138ba0: 8b 53 18 mov 0x18(%ebx),%edx <== NOT EXECUTED
handle->node += handle->offset;
138ba3: 6b 43 20 38 imul $0x38,0x20(%ebx),%eax <== NOT EXECUTED
138ba7: 03 42 20 add 0x20(%edx),%eax <== NOT EXECUTED
138baa: 89 43 0c mov %eax,0xc(%ebx) <== NOT EXECUTED
}
handle->loads++;
138bad: ff 43 24 incl 0x24(%ebx) <== NOT EXECUTED
138bb0: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
}
138bb2: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
138bb5: c9 leave <== NOT EXECUTED
138bb6: c3 ret <== NOT EXECUTED
00138bb7 <rtems_rfs_inode_open>:
int
rtems_rfs_inode_open (rtems_rfs_file_system* fs,
rtems_rfs_ino ino,
rtems_rfs_inode_handle* handle,
bool load)
{
138bb7: 55 push %ebp <== NOT EXECUTED
138bb8: 89 e5 mov %esp,%ebp <== NOT EXECUTED
138bba: 56 push %esi <== NOT EXECUTED
138bbb: 53 push %ebx <== NOT EXECUTED
138bbc: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED
138bbf: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
138bc2: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
138bc5: 8b 4d 10 mov 0x10(%ebp),%ecx <== NOT EXECUTED
138bc8: 8a 45 14 mov 0x14(%ebp),%al <== NOT EXECUTED
138bcb: 88 45 f7 mov %al,-0x9(%ebp) <== NOT EXECUTED
int rc;
if (rtems_rfs_trace (RTEMS_RFS_TRACE_INODE_OPEN))
printf ("rtems-rfs: inode-open: ino: %" PRIu32 "\n", ino);
if (ino == RTEMS_RFS_EMPTY_INO)
138bce: 85 d2 test %edx,%edx <== NOT EXECUTED
138bd0: 74 62 je 138c34 <rtems_rfs_inode_open+0x7d><== NOT EXECUTED
return EINVAL;
if ((ino - RTEMS_RFS_ROOT_INO) > rtems_rfs_fs_inodes (fs))
138bd2: 8d 42 ff lea -0x1(%edx),%eax <== NOT EXECUTED
138bd5: 3b 43 10 cmp 0x10(%ebx),%eax <== NOT EXECUTED
138bd8: 77 5a ja 138c34 <rtems_rfs_inode_open+0x7d><== NOT EXECUTED
return EINVAL;
handle->ino = ino;
138bda: 89 51 08 mov %edx,0x8(%ecx) <== NOT EXECUTED
handle->node = NULL;
138bdd: c7 41 0c 00 00 00 00 movl $0x0,0xc(%ecx) <== NOT EXECUTED
handle->loads = 0;
138be4: c7 41 24 00 00 00 00 movl $0x0,0x24(%ecx) <== NOT EXECUTED
gino = ino - RTEMS_RFS_ROOT_INO;
group = gino / fs->group_inodes;
gino = gino % fs->group_inodes;
138beb: 31 d2 xor %edx,%edx <== NOT EXECUTED
138bed: f7 73 28 divl 0x28(%ebx) <== NOT EXECUTED
138bf0: 89 c6 mov %eax,%esi <== NOT EXECUTED
index = (gino / fs->inodes_per_block) + RTEMS_RFS_GROUP_INODE_BLOCK;
handle->offset = gino % fs->inodes_per_block;
138bf2: 89 d0 mov %edx,%eax <== NOT EXECUTED
138bf4: 31 d2 xor %edx,%edx <== NOT EXECUTED
138bf6: f7 73 2c divl 0x2c(%ebx) <== NOT EXECUTED
138bf9: 89 51 20 mov %edx,0x20(%ecx) <== NOT EXECUTED
handle->block = rtems_rfs_group_block (&fs->groups[group], index);
138bfc: 8b 53 1c mov 0x1c(%ebx),%edx <== NOT EXECUTED
138bff: 6b f6 50 imul $0x50,%esi,%esi <== NOT EXECUTED
138c02: 8b 14 16 mov (%esi,%edx,1),%edx <== NOT EXECUTED
138c05: 8d 44 10 02 lea 0x2(%eax,%edx,1),%eax <== NOT EXECUTED
138c09: 89 41 1c mov %eax,0x1c(%ecx) <== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_open (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
handle->dirty = false;
138c0c: c6 41 10 00 movb $0x0,0x10(%ecx) <== NOT EXECUTED
handle->bnum = 0;
138c10: c7 41 14 00 00 00 00 movl $0x0,0x14(%ecx) <== NOT EXECUTED
handle->buffer = NULL;
138c17: c7 41 18 00 00 00 00 movl $0x0,0x18(%ecx) <== NOT EXECUTED
rc = rtems_rfs_buffer_handle_open (fs, &handle->buffer);
if ((rc == 0) && load)
138c1e: 31 c0 xor %eax,%eax <== NOT EXECUTED
138c20: 80 7d f7 00 cmpb $0x0,-0x9(%ebp) <== NOT EXECUTED
138c24: 74 13 je 138c39 <rtems_rfs_inode_open+0x82><== NOT EXECUTED
rc = rtems_rfs_inode_load (fs, handle);
138c26: 89 4d 0c mov %ecx,0xc(%ebp) <== NOT EXECUTED
return rc;
}
138c29: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
138c2c: 5b pop %ebx <== NOT EXECUTED
138c2d: 5e pop %esi <== NOT EXECUTED
138c2e: c9 leave <== NOT EXECUTED
handle->offset = gino % fs->inodes_per_block;
handle->block = rtems_rfs_group_block (&fs->groups[group], index);
rc = rtems_rfs_buffer_handle_open (fs, &handle->buffer);
if ((rc == 0) && load)
rc = rtems_rfs_inode_load (fs, handle);
138c2f: e9 44 ff ff ff jmp 138b78 <rtems_rfs_inode_load> <== NOT EXECUTED
138c34: b8 16 00 00 00 mov $0x16,%eax <== NOT EXECUTED
return rc;
}
138c39: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
138c3c: 5b pop %ebx <== NOT EXECUTED
138c3d: 5e pop %esi <== NOT EXECUTED
138c3e: c9 leave <== NOT EXECUTED
138c3f: c3 ret <== NOT EXECUTED
001377a0 <rtems_rfs_inode_overhead>:
/**
* Return the inode overhead given a number of inodes.
*/
static int
rtems_rfs_inode_overhead (rtems_rfs_file_system* fs)
{
1377a0: 55 push %ebp <== NOT EXECUTED
1377a1: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1377a3: 53 push %ebx <== NOT EXECUTED
1377a4: 89 c1 mov %eax,%ecx <== NOT EXECUTED
int blocks;
int bits_per_block;
blocks = rtems_rfs_rup_quotient(fs->group_inodes * RTEMS_RFS_INODE_SIZE,
1377a6: 8b 58 08 mov 0x8(%eax),%ebx <== NOT EXECUTED
1377a9: 6b 50 28 38 imul $0x38,0x28(%eax),%edx <== NOT EXECUTED
* "quotient = dividend / divisor"
*/
int
rtems_rfs_rup_quotient (uint32_t dividend, uint32_t divisor)
{
if (dividend == 0)
1377ad: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
1377b2: 85 d2 test %edx,%edx <== NOT EXECUTED
1377b4: 74 08 je 1377be <rtems_rfs_inode_overhead+0x1e><== NOT EXECUTED
return 1;
return ((dividend - 1) / divisor) + 1;
1377b6: 8d 42 ff lea -0x1(%edx),%eax <== NOT EXECUTED
1377b9: 31 d2 xor %edx,%edx <== NOT EXECUTED
1377bb: f7 f3 div %ebx <== NOT EXECUTED
1377bd: 40 inc %eax <== NOT EXECUTED
* Return the number of bits that fit in the block size.
*/
static int
rtems_rfs_bits_per_block (rtems_rfs_file_system* fs)
{
return rtems_rfs_bitmap_numof_bits (rtems_rfs_fs_block_size (fs));
1377be: c1 e3 03 shl $0x3,%ebx <== NOT EXECUTED
rtems_rfs_fs_block_size (fs));
bits_per_block = rtems_rfs_bits_per_block (fs);
/*
* There could be more bits than blocks, eg 512K disk with 512 blocks.
*/
if (bits_per_block > (rtems_rfs_fs_blocks (fs) - RTEMS_RFS_SUPERBLOCK_SIZE))
1377c1: 8b 49 04 mov 0x4(%ecx),%ecx <== NOT EXECUTED
bits_per_block = rtems_rfs_fs_blocks (fs) - RTEMS_RFS_SUPERBLOCK_SIZE;
1377c4: 49 dec %ecx <== NOT EXECUTED
rtems_rfs_fs_block_size (fs));
bits_per_block = rtems_rfs_bits_per_block (fs);
/*
* There could be more bits than blocks, eg 512K disk with 512 blocks.
*/
if (bits_per_block > (rtems_rfs_fs_blocks (fs) - RTEMS_RFS_SUPERBLOCK_SIZE))
1377c5: 39 cb cmp %ecx,%ebx <== NOT EXECUTED
1377c7: 77 02 ja 1377cb <rtems_rfs_inode_overhead+0x2b><== NOT EXECUTED
* Return the number of bits that fit in the block size.
*/
static int
rtems_rfs_bits_per_block (rtems_rfs_file_system* fs)
{
return rtems_rfs_bitmap_numof_bits (rtems_rfs_fs_block_size (fs));
1377c9: 89 d9 mov %ebx,%ecx <== NOT EXECUTED
bits_per_block = rtems_rfs_bits_per_block (fs);
/*
* There could be more bits than blocks, eg 512K disk with 512 blocks.
*/
if (bits_per_block > (rtems_rfs_fs_blocks (fs) - RTEMS_RFS_SUPERBLOCK_SIZE))
bits_per_block = rtems_rfs_fs_blocks (fs) - RTEMS_RFS_SUPERBLOCK_SIZE;
1377cb: 40 inc %eax <== NOT EXECUTED
1377cc: 69 c0 e8 03 00 00 imul $0x3e8,%eax,%eax <== NOT EXECUTED
1377d2: 99 cltd <== NOT EXECUTED
1377d3: f7 f9 idiv %ecx <== NOT EXECUTED
return ((blocks + 1) * 100 * 10) / bits_per_block;
}
1377d5: 5b pop %ebx <== NOT EXECUTED
1377d6: c9 leave <== NOT EXECUTED
1377d7: c3 ret <== NOT EXECUTED
001388d6 <rtems_rfs_inode_time_stamp_now>:
int
rtems_rfs_inode_time_stamp_now (rtems_rfs_inode_handle* handle,
bool atime,
bool mtime)
{
1388d6: 55 push %ebp <== NOT EXECUTED
1388d7: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1388d9: 57 push %edi <== NOT EXECUTED
1388da: 56 push %esi <== NOT EXECUTED
1388db: 53 push %ebx <== NOT EXECUTED
1388dc: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
1388df: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
1388e2: 8a 4d 0c mov 0xc(%ebp),%cl <== NOT EXECUTED
1388e5: 8a 55 10 mov 0x10(%ebp),%dl <== NOT EXECUTED
time_t now;
if (!rtems_rfs_inode_is_loaded (handle))
1388e8: be 06 00 00 00 mov $0x6,%esi <== NOT EXECUTED
1388ed: 83 7b 0c 00 cmpl $0x0,0xc(%ebx) <== NOT EXECUTED
1388f1: 74 7f je 138972 <rtems_rfs_inode_time_stamp_now+0x9c><== NOT EXECUTED
return ENXIO;
now = time (NULL);
1388f3: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1388f6: 6a 00 push $0x0 <== NOT EXECUTED
1388f8: 88 55 e0 mov %dl,-0x20(%ebp) <== NOT EXECUTED
1388fb: 88 4d e4 mov %cl,-0x1c(%ebp) <== NOT EXECUTED
1388fe: e8 ed 03 01 00 call 148cf0 <time> <== NOT EXECUTED
if (atime)
138903: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
138906: 8a 4d e4 mov -0x1c(%ebp),%cl <== NOT EXECUTED
138909: 84 c9 test %cl,%cl <== NOT EXECUTED
13890b: 8a 55 e0 mov -0x20(%ebp),%dl <== NOT EXECUTED
13890e: 74 31 je 138941 <rtems_rfs_inode_time_stamp_now+0x6b><== NOT EXECUTED
*/
static inline void
rtems_rfs_inode_set_atime (rtems_rfs_inode_handle* handle,
rtems_rfs_time atime)
{
rtems_rfs_write_u32 (&handle->node->atime, atime);
138910: 8b 7b 0c mov 0xc(%ebx),%edi <== NOT EXECUTED
138913: 89 c6 mov %eax,%esi <== NOT EXECUTED
138915: c1 ee 18 shr $0x18,%esi <== NOT EXECUTED
138918: 89 f1 mov %esi,%ecx <== NOT EXECUTED
13891a: 88 4f 10 mov %cl,0x10(%edi) <== NOT EXECUTED
13891d: 8b 7b 0c mov 0xc(%ebx),%edi <== NOT EXECUTED
138920: 89 c6 mov %eax,%esi <== NOT EXECUTED
138922: c1 ee 10 shr $0x10,%esi <== NOT EXECUTED
138925: 89 f1 mov %esi,%ecx <== NOT EXECUTED
138927: 88 4f 11 mov %cl,0x11(%edi) <== NOT EXECUTED
13892a: 8b 7b 0c mov 0xc(%ebx),%edi <== NOT EXECUTED
13892d: 89 c6 mov %eax,%esi <== NOT EXECUTED
13892f: c1 ee 08 shr $0x8,%esi <== NOT EXECUTED
138932: 89 f1 mov %esi,%ecx <== NOT EXECUTED
138934: 88 4f 12 mov %cl,0x12(%edi) <== NOT EXECUTED
138937: 8b 4b 0c mov 0xc(%ebx),%ecx <== NOT EXECUTED
13893a: 88 41 13 mov %al,0x13(%ecx) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
13893d: c6 43 10 01 movb $0x1,0x10(%ebx) <== NOT EXECUTED
rtems_rfs_inode_set_atime (handle, now);
if (mtime)
138941: 31 f6 xor %esi,%esi <== NOT EXECUTED
138943: 84 d2 test %dl,%dl <== NOT EXECUTED
138945: 74 2b je 138972 <rtems_rfs_inode_time_stamp_now+0x9c><== NOT EXECUTED
*/
static inline void
rtems_rfs_inode_set_mtime (rtems_rfs_inode_handle* handle,
rtems_rfs_time mtime)
{
rtems_rfs_write_u32 (&handle->node->mtime, mtime);
138947: 8b 53 0c mov 0xc(%ebx),%edx <== NOT EXECUTED
13894a: 89 c1 mov %eax,%ecx <== NOT EXECUTED
13894c: c1 e9 18 shr $0x18,%ecx <== NOT EXECUTED
13894f: 88 4a 14 mov %cl,0x14(%edx) <== NOT EXECUTED
138952: 8b 53 0c mov 0xc(%ebx),%edx <== NOT EXECUTED
138955: 89 c1 mov %eax,%ecx <== NOT EXECUTED
138957: c1 e9 10 shr $0x10,%ecx <== NOT EXECUTED
13895a: 88 4a 15 mov %cl,0x15(%edx) <== NOT EXECUTED
13895d: 8b 53 0c mov 0xc(%ebx),%edx <== NOT EXECUTED
138960: 89 c1 mov %eax,%ecx <== NOT EXECUTED
138962: c1 e9 08 shr $0x8,%ecx <== NOT EXECUTED
138965: 88 4a 16 mov %cl,0x16(%edx) <== NOT EXECUTED
138968: 8b 53 0c mov 0xc(%ebx),%edx <== NOT EXECUTED
13896b: 88 42 17 mov %al,0x17(%edx) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
13896e: c6 43 10 01 movb $0x1,0x10(%ebx) <== NOT EXECUTED
rtems_rfs_inode_set_mtime (handle, now);
return 0;
}
138972: 89 f0 mov %esi,%eax <== NOT EXECUTED
138974: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
138977: 5b pop %ebx <== NOT EXECUTED
138978: 5e pop %esi <== NOT EXECUTED
138979: 5f pop %edi <== NOT EXECUTED
13897a: c9 leave <== NOT EXECUTED
13897b: c3 ret <== NOT EXECUTED
00138abc <rtems_rfs_inode_unload>:
int
rtems_rfs_inode_unload (rtems_rfs_file_system* fs,
rtems_rfs_inode_handle* handle,
bool update_ctime)
{
138abc: 55 push %ebp <== NOT EXECUTED
138abd: 89 e5 mov %esp,%ebp <== NOT EXECUTED
138abf: 53 push %ebx <== NOT EXECUTED
138ac0: 83 ec 04 sub $0x4,%esp <== NOT EXECUTED
138ac3: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
138ac6: 8a 4d 10 mov 0x10(%ebp),%cl <== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_INODE_UNLOAD))
printf ("rtems-rfs: inode-unload: ino=%" PRIu32 " loads=%i loaded=%s\n",
handle->ino, handle->loads,
rtems_rfs_inode_is_loaded (handle) ? "yes" : "no");
if (rtems_rfs_inode_is_loaded (handle))
138ac9: 83 7b 0c 00 cmpl $0x0,0xc(%ebx) <== NOT EXECUTED
138acd: 74 72 je 138b41 <rtems_rfs_inode_unload+0x85><== NOT EXECUTED
{
if (handle->loads == 0)
138acf: 8b 53 24 mov 0x24(%ebx),%edx <== NOT EXECUTED
138ad2: b8 05 00 00 00 mov $0x5,%eax <== NOT EXECUTED
138ad7: 85 d2 test %edx,%edx <== NOT EXECUTED
138ad9: 74 68 je 138b43 <rtems_rfs_inode_unload+0x87><== NOT EXECUTED
return EIO;
handle->loads--;
138adb: 8d 42 ff lea -0x1(%edx),%eax <== NOT EXECUTED
138ade: 89 43 24 mov %eax,0x24(%ebx) <== NOT EXECUTED
if (handle->loads == 0)
138ae1: 85 c0 test %eax,%eax <== NOT EXECUTED
138ae3: 75 5c jne 138b41 <rtems_rfs_inode_unload+0x85><== NOT EXECUTED
{
/*
* If the buffer is dirty it will be release. Also set the ctime.
*/
if (rtems_rfs_buffer_dirty (&handle->buffer) && update_ctime)
138ae5: 80 7b 10 00 cmpb $0x0,0x10(%ebx) <== NOT EXECUTED
138ae9: 74 3c je 138b27 <rtems_rfs_inode_unload+0x6b><== NOT EXECUTED
138aeb: 84 c9 test %cl,%cl <== NOT EXECUTED
138aed: 74 38 je 138b27 <rtems_rfs_inode_unload+0x6b><== NOT EXECUTED
rtems_rfs_inode_set_ctime (handle, time (NULL));
138aef: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
138af2: 6a 00 push $0x0 <== NOT EXECUTED
138af4: e8 f7 01 01 00 call 148cf0 <time> <== NOT EXECUTED
*/
static inline void
rtems_rfs_inode_set_ctime (rtems_rfs_inode_handle* handle,
rtems_rfs_time ctime)
{
rtems_rfs_write_u32 (&handle->node->ctime, ctime);
138af9: 8b 53 0c mov 0xc(%ebx),%edx <== NOT EXECUTED
138afc: 89 c1 mov %eax,%ecx <== NOT EXECUTED
138afe: c1 e9 18 shr $0x18,%ecx <== NOT EXECUTED
138b01: 88 4a 18 mov %cl,0x18(%edx) <== NOT EXECUTED
138b04: 8b 53 0c mov 0xc(%ebx),%edx <== NOT EXECUTED
138b07: 89 c1 mov %eax,%ecx <== NOT EXECUTED
138b09: c1 e9 10 shr $0x10,%ecx <== NOT EXECUTED
138b0c: 88 4a 19 mov %cl,0x19(%edx) <== NOT EXECUTED
138b0f: 8b 53 0c mov 0xc(%ebx),%edx <== NOT EXECUTED
138b12: 89 c1 mov %eax,%ecx <== NOT EXECUTED
138b14: c1 e9 08 shr $0x8,%ecx <== NOT EXECUTED
138b17: 88 4a 1a mov %cl,0x1a(%edx) <== NOT EXECUTED
138b1a: 8b 53 0c mov 0xc(%ebx),%edx <== NOT EXECUTED
138b1d: 88 42 1b mov %al,0x1b(%edx) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
138b20: c6 43 10 01 movb $0x1,0x10(%ebx) <== NOT EXECUTED
138b24: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rc = rtems_rfs_buffer_handle_release (fs, &handle->buffer);
138b27: 50 push %eax <== NOT EXECUTED
138b28: 50 push %eax <== NOT EXECUTED
138b29: 8d 43 10 lea 0x10(%ebx),%eax <== NOT EXECUTED
138b2c: 50 push %eax <== NOT EXECUTED
138b2d: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
138b30: e8 2e cf ff ff call 135a63 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
handle->node = NULL;
138b35: c7 43 0c 00 00 00 00 movl $0x0,0xc(%ebx) <== NOT EXECUTED
138b3c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
138b3f: eb 02 jmp 138b43 <rtems_rfs_inode_unload+0x87><== NOT EXECUTED
138b41: 31 c0 xor %eax,%eax <== NOT EXECUTED
}
}
return rc;
}
138b43: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
138b46: c9 leave <== NOT EXECUTED
138b47: c3 ret <== NOT EXECUTED
00139443 <rtems_rfs_link>:
const char* name,
int length,
rtems_rfs_ino parent,
rtems_rfs_ino target,
bool link_dir)
{
139443: 55 push %ebp <== NOT EXECUTED
139444: 89 e5 mov %esp,%ebp <== NOT EXECUTED
139446: 57 push %edi <== NOT EXECUTED
139447: 56 push %esi <== NOT EXECUTED
139448: 53 push %ebx <== NOT EXECUTED
139449: 83 ec 6c sub $0x6c,%esp <== NOT EXECUTED
13944c: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
13944f: 8a 55 1c mov 0x1c(%ebp),%dl <== NOT EXECUTED
for (c = 0; c < length; c++)
printf ("%c", name[c]);
printf ("(%" PRIu32 ")\n", target);
}
rc = rtems_rfs_inode_open (fs, target, &target_inode, true);
139452: 6a 01 push $0x1 <== NOT EXECUTED
139454: 8d 7d 98 lea -0x68(%ebp),%edi <== NOT EXECUTED
139457: 57 push %edi <== NOT EXECUTED
139458: ff 75 18 pushl 0x18(%ebp) <== NOT EXECUTED
13945b: 56 push %esi <== NOT EXECUTED
13945c: 88 55 94 mov %dl,-0x6c(%ebp) <== NOT EXECUTED
13945f: e8 53 f7 ff ff call 138bb7 <rtems_rfs_inode_open> <== NOT EXECUTED
139464: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc)
139466: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
139469: 85 c0 test %eax,%eax <== NOT EXECUTED
13946b: 8a 55 94 mov -0x6c(%ebp),%dl <== NOT EXECUTED
13946e: 0f 85 e3 00 00 00 jne 139557 <rtems_rfs_link+0x114> <== NOT EXECUTED
/*
* If the target inode is a directory and we cannot link directories
* return a not supported error code.
*/
if (!link_dir && S_ISDIR (rtems_rfs_inode_get_mode (&target_inode)))
139474: 84 d2 test %dl,%dl <== NOT EXECUTED
139476: 75 26 jne 13949e <rtems_rfs_link+0x5b> <== NOT EXECUTED
139478: 8b 45 a4 mov -0x5c(%ebp),%eax <== NOT EXECUTED
13947b: 0f b6 40 02 movzbl 0x2(%eax),%eax <== NOT EXECUTED
13947f: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
139482: 25 00 f0 00 00 and $0xf000,%eax <== NOT EXECUTED
139487: 3d 00 40 00 00 cmp $0x4000,%eax <== NOT EXECUTED
13948c: 75 10 jne 13949e <rtems_rfs_link+0x5b> <== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &target_inode);
13948e: 50 push %eax <== NOT EXECUTED
13948f: 50 push %eax <== NOT EXECUTED
139490: 57 push %edi <== NOT EXECUTED
139491: 56 push %esi <== NOT EXECUTED
139492: e8 b1 f6 ff ff call 138b48 <rtems_rfs_inode_close> <== NOT EXECUTED
139497: b3 86 mov $0x86,%bl <== NOT EXECUTED
139499: e9 b6 00 00 00 jmp 139554 <rtems_rfs_link+0x111> <== NOT EXECUTED
return ENOTSUP;
}
rc = rtems_rfs_inode_open (fs, parent, &parent_inode, true);
13949e: 6a 01 push $0x1 <== NOT EXECUTED
1394a0: 8d 7d c0 lea -0x40(%ebp),%edi <== NOT EXECUTED
1394a3: 57 push %edi <== NOT EXECUTED
1394a4: ff 75 14 pushl 0x14(%ebp) <== NOT EXECUTED
1394a7: 56 push %esi <== NOT EXECUTED
1394a8: e8 0a f7 ff ff call 138bb7 <rtems_rfs_inode_open> <== NOT EXECUTED
1394ad: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc)
1394af: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1394b2: 85 c0 test %eax,%eax <== NOT EXECUTED
1394b4: 74 04 je 1394ba <rtems_rfs_link+0x77> <== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &target_inode);
1394b6: 51 push %ecx <== NOT EXECUTED
1394b7: 51 push %ecx <== NOT EXECUTED
1394b8: eb 6a jmp 139524 <rtems_rfs_link+0xe1> <== NOT EXECUTED
return rc;
}
rc = rtems_rfs_dir_add_entry (fs, &parent_inode, name, length, target);
1394ba: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1394bd: ff 75 18 pushl 0x18(%ebp) <== NOT EXECUTED
1394c0: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
1394c3: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
1394c6: 57 push %edi <== NOT EXECUTED
1394c7: 56 push %esi <== NOT EXECUTED
1394c8: e8 03 cf ff ff call 1363d0 <rtems_rfs_dir_add_entry><== NOT EXECUTED
1394cd: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc > 0)
1394cf: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
1394d2: 85 c0 test %eax,%eax <== NOT EXECUTED
1394d4: 7f 43 jg 139519 <rtems_rfs_link+0xd6> <== NOT EXECUTED
*/
static inline uint16_t
rtems_rfs_inode_get_links (rtems_rfs_inode_handle* handle)
{
uint16_t links;
links = rtems_rfs_read_u16 (&handle->node->links);
1394d6: 8b 55 a4 mov -0x5c(%ebp),%edx <== NOT EXECUTED
1394d9: 0f b6 0a movzbl (%edx),%ecx <== NOT EXECUTED
1394dc: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
1394df: 0f b6 42 01 movzbl 0x1(%edx),%eax <== NOT EXECUTED
1394e3: 09 c8 or %ecx,%eax <== NOT EXECUTED
if (links == 0xffff)
1394e5: 31 c9 xor %ecx,%ecx <== NOT EXECUTED
1394e7: 66 83 f8 ff cmp $0xffffffff,%ax <== NOT EXECUTED
1394eb: 0f 95 c1 setne %cl <== NOT EXECUTED
1394ee: f7 d9 neg %ecx <== NOT EXECUTED
1394f0: 21 c8 and %ecx,%eax <== NOT EXECUTED
rtems_rfs_inode_close (fs, &parent_inode);
rtems_rfs_inode_close (fs, &target_inode);
return rc;
}
links = rtems_rfs_inode_get_links (&target_inode) + 1;
1394f2: 40 inc %eax <== NOT EXECUTED
* @prarm links The links.
*/
static inline void
rtems_rfs_inode_set_links (rtems_rfs_inode_handle* handle, uint16_t links)
{
rtems_rfs_write_u16 (&handle->node->links, links);
1394f3: 89 c1 mov %eax,%ecx <== NOT EXECUTED
1394f5: 66 c1 e9 08 shr $0x8,%cx <== NOT EXECUTED
1394f9: 88 0a mov %cl,(%edx) <== NOT EXECUTED
1394fb: 8b 55 a4 mov -0x5c(%ebp),%edx <== NOT EXECUTED
1394fe: 88 42 01 mov %al,0x1(%edx) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
139501: c6 45 a8 01 movb $0x1,-0x58(%ebp) <== NOT EXECUTED
rtems_rfs_inode_set_links (&target_inode, links);
rc = rtems_rfs_inode_time_stamp_now (&parent_inode, true, true);
139505: 52 push %edx <== NOT EXECUTED
139506: 6a 01 push $0x1 <== NOT EXECUTED
139508: 6a 01 push $0x1 <== NOT EXECUTED
13950a: 57 push %edi <== NOT EXECUTED
13950b: e8 c6 f3 ff ff call 1388d6 <rtems_rfs_inode_time_stamp_now><== NOT EXECUTED
139510: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc > 0)
139512: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
139515: 85 c0 test %eax,%eax <== NOT EXECUTED
139517: 7e 10 jle 139529 <rtems_rfs_link+0xe6> <== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &parent_inode);
139519: 50 push %eax <== NOT EXECUTED
13951a: 50 push %eax <== NOT EXECUTED
13951b: 57 push %edi <== NOT EXECUTED
13951c: 56 push %esi <== NOT EXECUTED
13951d: e8 26 f6 ff ff call 138b48 <rtems_rfs_inode_close> <== NOT EXECUTED
rtems_rfs_inode_close (fs, &target_inode);
139522: 5a pop %edx <== NOT EXECUTED
139523: 59 pop %ecx <== NOT EXECUTED
139524: 8d 45 98 lea -0x68(%ebp),%eax <== NOT EXECUTED
139527: eb 17 jmp 139540 <rtems_rfs_link+0xfd> <== NOT EXECUTED
return rc;
}
rc = rtems_rfs_inode_close (fs, &parent_inode);
139529: 50 push %eax <== NOT EXECUTED
13952a: 50 push %eax <== NOT EXECUTED
13952b: 57 push %edi <== NOT EXECUTED
13952c: 56 push %esi <== NOT EXECUTED
13952d: e8 16 f6 ff ff call 138b48 <rtems_rfs_inode_close> <== NOT EXECUTED
139532: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc > 0)
139534: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
139537: 85 c0 test %eax,%eax <== NOT EXECUTED
139539: 8d 45 98 lea -0x68(%ebp),%eax <== NOT EXECUTED
13953c: 7e 0b jle 139549 <rtems_rfs_link+0x106> <== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &target_inode);
13953e: 57 push %edi <== NOT EXECUTED
13953f: 57 push %edi <== NOT EXECUTED
139540: 50 push %eax <== NOT EXECUTED
139541: 56 push %esi <== NOT EXECUTED
139542: e8 01 f6 ff ff call 138b48 <rtems_rfs_inode_close> <== NOT EXECUTED
139547: eb 0b jmp 139554 <rtems_rfs_link+0x111> <== NOT EXECUTED
return rc;
}
rc = rtems_rfs_inode_close (fs, &target_inode);
139549: 53 push %ebx <== NOT EXECUTED
13954a: 53 push %ebx <== NOT EXECUTED
13954b: 50 push %eax <== NOT EXECUTED
13954c: 56 push %esi <== NOT EXECUTED
13954d: e8 f6 f5 ff ff call 138b48 <rtems_rfs_inode_close> <== NOT EXECUTED
139552: 89 c3 mov %eax,%ebx <== NOT EXECUTED
return rc;
139554: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
139557: 89 d8 mov %ebx,%eax <== NOT EXECUTED
139559: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13955c: 5b pop %ebx <== NOT EXECUTED
13955d: 5e pop %esi <== NOT EXECUTED
13955e: 5f pop %edi <== NOT EXECUTED
13955f: c9 leave <== NOT EXECUTED
139560: c3 ret <== NOT EXECUTED
00139583 <rtems_rfs_mutex_create>:
RTEMS_NO_INHERIT_PRIORITY | RTEMS_NO_PRIORITY_CEILING | RTEMS_LOCAL)
#endif
int
rtems_rfs_mutex_create (rtems_rfs_mutex* mutex)
{
139583: 55 push %ebp <== NOT EXECUTED
139584: 89 e5 mov %esp,%ebp <== NOT EXECUTED
139586: 83 ec 14 sub $0x14,%esp <== NOT EXECUTED
#if __rtems__
rtems_status_code sc;
sc = rtems_semaphore_create (rtems_build_name ('R', 'F', 'S', 'm'),
139589: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
13958c: 6a 00 push $0x0 <== NOT EXECUTED
13958e: 6a 24 push $0x24 <== NOT EXECUTED
139590: 6a 01 push $0x1 <== NOT EXECUTED
139592: 68 6d 53 46 52 push $0x5246536d <== NOT EXECUTED
139597: e8 ec 73 fd ff call 110988 <rtems_semaphore_create><== NOT EXECUTED
1, RTEMS_RFS_MUTEX_ATTRIBS, 0,
mutex);
if (sc != RTEMS_SUCCESSFUL)
13959c: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
13959f: 83 f8 01 cmp $0x1,%eax <== NOT EXECUTED
1395a2: 19 c0 sbb %eax,%eax <== NOT EXECUTED
1395a4: f7 d0 not %eax <== NOT EXECUTED
1395a6: 83 e0 05 and $0x5,%eax <== NOT EXECUTED
rtems_status_text (sc));
return EIO;
}
#endif
return 0;
}
1395a9: c9 leave <== NOT EXECUTED
1395aa: c3 ret <== NOT EXECUTED
00139564 <rtems_rfs_mutex_destroy>:
return 0;
}
int
rtems_rfs_mutex_destroy (rtems_rfs_mutex* mutex)
{
139564: 55 push %ebp <== NOT EXECUTED
139565: 89 e5 mov %esp,%ebp <== NOT EXECUTED
139567: 83 ec 14 sub $0x14,%esp <== NOT EXECUTED
#if __rtems__
rtems_status_code sc;
sc = rtems_semaphore_delete (*mutex);
13956a: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
13956d: ff 30 pushl (%eax) <== NOT EXECUTED
13956f: e8 b0 75 fd ff call 110b24 <rtems_semaphore_delete><== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
139574: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
139577: 83 f8 01 cmp $0x1,%eax <== NOT EXECUTED
13957a: 19 c0 sbb %eax,%eax <== NOT EXECUTED
13957c: f7 d0 not %eax <== NOT EXECUTED
13957e: 83 e0 05 and $0x5,%eax <== NOT EXECUTED
rtems_status_text (sc));
return EIO;
}
#endif
return 0;
}
139581: c9 leave <== NOT EXECUTED
139582: c3 ret <== NOT EXECUTED
001358e0 <rtems_rfs_release_chain>:
static int
rtems_rfs_release_chain (rtems_chain_control* chain,
uint32_t* count,
bool modified)
{
1358e0: 55 push %ebp <== NOT EXECUTED
1358e1: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1358e3: 57 push %edi <== NOT EXECUTED
1358e4: 56 push %esi <== NOT EXECUTED
1358e5: 53 push %ebx <== NOT EXECUTED
1358e6: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
1358e9: 89 c3 mov %eax,%ebx <== NOT EXECUTED
1358eb: 89 d6 mov %edx,%esi <== NOT EXECUTED
1358ed: 8d 50 04 lea 0x4(%eax),%edx <== NOT EXECUTED
1358f0: 31 ff xor %edi,%edi <== NOT EXECUTED
buffer = (rtems_rfs_buffer*) rtems_chain_get (chain);
(*count)--;
buffer->user = (void*) 0;
rc = rtems_rfs_buffer_io_release (buffer, modified);
1358f2: 0f b6 c9 movzbl %cl,%ecx <== NOT EXECUTED
1358f5: 89 4d e4 mov %ecx,-0x1c(%ebp) <== NOT EXECUTED
int rc;
if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CHAINS))
printf ("rtems-rfs: release-chain: count=%" PRIu32 "\n", *count);
while (!rtems_chain_is_empty (chain))
1358f8: eb 30 jmp 13592a <rtems_rfs_release_chain+0x4a><== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get(
rtems_chain_control *the_chain
)
{
return _Chain_Get( the_chain );
1358fa: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1358fd: 53 push %ebx <== NOT EXECUTED
1358fe: 89 55 e0 mov %edx,-0x20(%ebp) <== NOT EXECUTED
135901: e8 aa bd fd ff call 1116b0 <_Chain_Get> <== NOT EXECUTED
{
buffer = (rtems_rfs_buffer*) rtems_chain_get (chain);
(*count)--;
135906: ff 0e decl (%esi) <== NOT EXECUTED
buffer->user = (void*) 0;
135908: c7 40 38 00 00 00 00 movl $0x0,0x38(%eax) <== NOT EXECUTED
rc = rtems_rfs_buffer_io_release (buffer, modified);
13590f: 5a pop %edx <== NOT EXECUTED
135910: 59 pop %ecx <== NOT EXECUTED
135911: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
135914: 50 push %eax <== NOT EXECUTED
135915: e8 7a 7f 00 00 call 13d894 <rtems_rfs_buffer_bdbuf_release><== NOT EXECUTED
if ((rc > 0) && (rrc == 0))
13591a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13591d: 85 c0 test %eax,%eax <== NOT EXECUTED
13591f: 8b 55 e0 mov -0x20(%ebp),%edx <== NOT EXECUTED
135922: 7e 06 jle 13592a <rtems_rfs_release_chain+0x4a><== NOT EXECUTED
135924: 85 ff test %edi,%edi <== NOT EXECUTED
135926: 75 02 jne 13592a <rtems_rfs_release_chain+0x4a><== NOT EXECUTED
135928: 89 c7 mov %eax,%edi <== NOT EXECUTED
int rc;
if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CHAINS))
printf ("rtems-rfs: release-chain: count=%" PRIu32 "\n", *count);
while (!rtems_chain_is_empty (chain))
13592a: 39 13 cmp %edx,(%ebx) <== NOT EXECUTED
13592c: 75 cc jne 1358fa <rtems_rfs_release_chain+0x1a><== NOT EXECUTED
rc = rtems_rfs_buffer_io_release (buffer, modified);
if ((rc > 0) && (rrc == 0))
rrc = rc;
}
return rrc;
}
13592e: 89 f8 mov %edi,%eax <== NOT EXECUTED
135930: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
135933: 5b pop %ebx <== NOT EXECUTED
135934: 5e pop %esi <== NOT EXECUTED
135935: 5f pop %edi <== NOT EXECUTED
135936: c9 leave <== NOT EXECUTED
135937: c3 ret <== NOT EXECUTED
001218db <rtems_rfs_rtems_chown>:
static int
rtems_rfs_rtems_chown (rtems_filesystem_location_info_t *pathloc,
uid_t owner,
gid_t group)
{
1218db: 55 push %ebp <== NOT EXECUTED
1218dc: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1218de: 57 push %edi <== NOT EXECUTED
1218df: 56 push %esi <== NOT EXECUTED
1218e0: 53 push %ebx <== NOT EXECUTED
1218e1: 83 ec 5c sub $0x5c,%esp <== NOT EXECUTED
1218e4: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
1218e7: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
1218ea: 66 89 55 b6 mov %dx,-0x4a(%ebp) <== NOT EXECUTED
1218ee: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
1218f1: 66 89 55 98 mov %dx,-0x68(%ebp) <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
1218f5: 8b 50 10 mov 0x10(%eax),%edx <== NOT EXECUTED
1218f8: 8b 5a 34 mov 0x34(%edx),%ebx <== NOT EXECUTED
rtems_rfs_ino ino = rtems_rfs_rtems_get_pathloc_ino (pathloc);
1218fb: 8b 38 mov (%eax),%edi <== NOT EXECUTED
if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_CHOWN))
printf ("rtems-rfs-rtems: chown: in: ino:%" PRId32 " uid:%d gid:%d\n",
ino, owner, group);
rtems_rfs_rtems_lock (fs);
1218fd: 89 d8 mov %ebx,%eax <== NOT EXECUTED
1218ff: e8 9e ff ff ff call 1218a2 <rtems_rfs_rtems_lock> <== NOT EXECUTED
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
121904: 6a 01 push $0x1 <== NOT EXECUTED
121906: 8d 75 c0 lea -0x40(%ebp),%esi <== NOT EXECUTED
121909: 56 push %esi <== NOT EXECUTED
12190a: 57 push %edi <== NOT EXECUTED
12190b: 53 push %ebx <== NOT EXECUTED
12190c: e8 a6 72 01 00 call 138bb7 <rtems_rfs_inode_open> <== NOT EXECUTED
121911: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc > 0)
121913: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
121916: 85 c0 test %eax,%eax <== NOT EXECUTED
121918: 7e 13 jle 12192d <rtems_rfs_rtems_chown+0x52><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
12191a: 89 d8 mov %ebx,%eax <== NOT EXECUTED
12191c: e8 9a ff ff ff call 1218bb <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("chown: opening inode", rc);
121921: e8 ee c6 01 00 call 13e014 <__errno> <== NOT EXECUTED
121926: 89 38 mov %edi,(%eax) <== NOT EXECUTED
121928: e9 9c 00 00 00 jmp 1219c9 <rtems_rfs_rtems_chown+0xee><== NOT EXECUTED
/*
* Verify I am the owner of the node or the super user.
*/
#if defined (RTEMS_POSIX_API)
uid = geteuid();
12192d: e8 6e 69 00 00 call 1282a0 <geteuid> <== NOT EXECUTED
* @return uint16_t The user id (uid).
*/
static inline uint16_t
rtems_rfs_inode_get_uid (rtems_rfs_inode_handle* handle)
{
return rtems_rfs_read_u32 (&handle->node->owner) & 0xffff;
121932: 8b 4d cc mov -0x34(%ebp),%ecx <== NOT EXECUTED
121935: 83 c1 04 add $0x4,%ecx <== NOT EXECUTED
if ((uid != rtems_rfs_inode_get_uid (&inode)) && (uid != 0))
121938: 0f b6 51 02 movzbl 0x2(%ecx),%edx <== NOT EXECUTED
12193c: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
12193f: 0f b6 79 03 movzbl 0x3(%ecx),%edi <== NOT EXECUTED
121943: 09 fa or %edi,%edx <== NOT EXECUTED
121945: 66 39 d0 cmp %dx,%ax <== NOT EXECUTED
121948: 74 28 je 121972 <rtems_rfs_rtems_chown+0x97><== NOT EXECUTED
12194a: 66 85 c0 test %ax,%ax <== NOT EXECUTED
12194d: 74 23 je 121972 <rtems_rfs_rtems_chown+0x97><== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
12194f: 51 push %ecx <== NOT EXECUTED
121950: 51 push %ecx <== NOT EXECUTED
121951: 56 push %esi <== NOT EXECUTED
121952: 53 push %ebx <== NOT EXECUTED
121953: e8 f0 71 01 00 call 138b48 <rtems_rfs_inode_close> <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
121958: 89 d8 mov %ebx,%eax <== NOT EXECUTED
12195a: e8 5c ff ff ff call 1218bb <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("chown: not able", EPERM);
12195f: e8 b0 c6 01 00 call 13e014 <__errno> <== NOT EXECUTED
121964: c7 00 01 00 00 00 movl $0x1,(%eax) <== NOT EXECUTED
12196a: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
12196d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
121970: eb 65 jmp 1219d7 <rtems_rfs_rtems_chown+0xfc><== NOT EXECUTED
*/
static inline void
rtems_rfs_inode_set_uid_gid (rtems_rfs_inode_handle* handle,
uint16_t uid, uint16_t gid)
{
rtems_rfs_write_u32 (&handle->node->owner, (((uint32_t) gid) << 16) | uid);
121972: 8b 45 98 mov -0x68(%ebp),%eax <== NOT EXECUTED
121975: c1 e0 10 shl $0x10,%eax <== NOT EXECUTED
121978: 0f b7 55 b6 movzwl -0x4a(%ebp),%edx <== NOT EXECUTED
12197c: 09 d0 or %edx,%eax <== NOT EXECUTED
12197e: 89 c2 mov %eax,%edx <== NOT EXECUTED
121980: c1 ea 18 shr $0x18,%edx <== NOT EXECUTED
121983: 88 11 mov %dl,(%ecx) <== NOT EXECUTED
121985: 89 c1 mov %eax,%ecx <== NOT EXECUTED
121987: c1 e9 10 shr $0x10,%ecx <== NOT EXECUTED
12198a: 8b 55 cc mov -0x34(%ebp),%edx <== NOT EXECUTED
12198d: 88 4a 05 mov %cl,0x5(%edx) <== NOT EXECUTED
121990: c1 e8 08 shr $0x8,%eax <== NOT EXECUTED
121993: 8b 55 cc mov -0x34(%ebp),%edx <== NOT EXECUTED
121996: 88 42 06 mov %al,0x6(%edx) <== NOT EXECUTED
121999: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED
12199c: 8a 55 b6 mov -0x4a(%ebp),%dl <== NOT EXECUTED
12199f: 88 50 07 mov %dl,0x7(%eax) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
1219a2: c6 45 d0 01 movb $0x1,-0x30(%ebp) <== NOT EXECUTED
}
#endif
rtems_rfs_inode_set_uid_gid (&inode, owner, group);
rc = rtems_rfs_inode_close (fs, &inode);
1219a6: 52 push %edx <== NOT EXECUTED
1219a7: 52 push %edx <== NOT EXECUTED
1219a8: 8d 45 c0 lea -0x40(%ebp),%eax <== NOT EXECUTED
1219ab: 50 push %eax <== NOT EXECUTED
1219ac: 53 push %ebx <== NOT EXECUTED
1219ad: e8 96 71 01 00 call 138b48 <rtems_rfs_inode_close> <== NOT EXECUTED
1219b2: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc)
1219b4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1219b7: 85 c0 test %eax,%eax <== NOT EXECUTED
1219b9: 74 13 je 1219ce <rtems_rfs_rtems_chown+0xf3><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
1219bb: 89 d8 mov %ebx,%eax <== NOT EXECUTED
1219bd: e8 f9 fe ff ff call 1218bb <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("chown: closing inode", rc);
1219c2: e8 4d c6 01 00 call 13e014 <__errno> <== NOT EXECUTED
1219c7: 89 30 mov %esi,(%eax) <== NOT EXECUTED
1219c9: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
1219cc: eb 09 jmp 1219d7 <rtems_rfs_rtems_chown+0xfc><== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
1219ce: 89 d8 mov %ebx,%eax <== NOT EXECUTED
1219d0: e8 e6 fe ff ff call 1218bb <rtems_rfs_rtems_unlock><== NOT EXECUTED
1219d5: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
}
1219d7: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1219da: 5b pop %ebx <== NOT EXECUTED
1219db: 5e pop %esi <== NOT EXECUTED
1219dc: 5f pop %edi <== NOT EXECUTED
1219dd: c9 leave <== NOT EXECUTED
1219de: c3 ret <== NOT EXECUTED
001396c7 <rtems_rfs_rtems_device_close>:
* @return int
*/
static int
rtems_rfs_rtems_device_close (rtems_libio_t* iop)
{
1396c7: 55 push %ebp <== NOT EXECUTED
1396c8: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1396ca: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
1396cd: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
rtems_libio_open_close_args_t args;
rtems_status_code status;
int major;
int minor;
major = (int) iop->data0;
1396d0: 8b 50 30 mov 0x30(%eax),%edx <== NOT EXECUTED
minor = (intptr_t) iop->data1;
1396d3: 8b 48 34 mov 0x34(%eax),%ecx <== NOT EXECUTED
args.iop = iop;
1396d6: 89 45 ec mov %eax,-0x14(%ebp) <== NOT EXECUTED
args.flags = 0;
1396d9: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) <== NOT EXECUTED
args.mode = 0;
1396e0: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) <== NOT EXECUTED
status = rtems_io_close (major, minor, (void *) &args);
1396e7: 8d 45 ec lea -0x14(%ebp),%eax <== NOT EXECUTED
1396ea: 50 push %eax <== NOT EXECUTED
1396eb: 51 push %ecx <== NOT EXECUTED
1396ec: 52 push %edx <== NOT EXECUTED
1396ed: e8 26 23 00 00 call 13ba18 <rtems_io_close> <== NOT EXECUTED
1396f2: 89 c2 mov %eax,%edx <== NOT EXECUTED
if (status)
1396f4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1396f7: 31 c0 xor %eax,%eax <== NOT EXECUTED
1396f9: 85 d2 test %edx,%edx <== NOT EXECUTED
1396fb: 74 0c je 139709 <rtems_rfs_rtems_device_close+0x42><== NOT EXECUTED
return rtems_deviceio_errno (status);
1396fd: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
139700: 52 push %edx <== NOT EXECUTED
139701: e8 06 09 00 00 call 13a00c <rtems_deviceio_errno> <== NOT EXECUTED
139706: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
return 0;
}
139709: c9 leave <== NOT EXECUTED
13970a: c3 ret <== NOT EXECUTED
001395b7 <rtems_rfs_rtems_device_ftruncate>:
* @return int
*/
static int
rtems_rfs_rtems_device_ftruncate (rtems_libio_t* iop, rtems_off64_t length)
{
1395b7: 55 push %ebp <== NOT EXECUTED
1395b8: 89 e5 mov %esp,%ebp <== NOT EXECUTED
return 0;
}
1395ba: 31 c0 xor %eax,%eax <== NOT EXECUTED
1395bc: c9 leave <== NOT EXECUTED
1395bd: c3 ret <== NOT EXECUTED
001395be <rtems_rfs_rtems_device_ioctl>:
static int
rtems_rfs_rtems_device_ioctl (rtems_libio_t* iop,
uint32_t command,
void* buffer)
{
1395be: 55 push %ebp <== NOT EXECUTED
1395bf: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1395c1: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
1395c4: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
rtems_libio_ioctl_args_t args;
rtems_status_code status;
int major;
int minor;
major = (int) iop->data0;
1395c7: 8b 50 30 mov 0x30(%eax),%edx <== NOT EXECUTED
minor = (intptr_t) iop->data1;
1395ca: 8b 48 34 mov 0x34(%eax),%ecx <== NOT EXECUTED
args.iop = iop;
1395cd: 89 45 e8 mov %eax,-0x18(%ebp) <== NOT EXECUTED
args.command = command;
1395d0: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
1395d3: 89 45 ec mov %eax,-0x14(%ebp) <== NOT EXECUTED
args.buffer = buffer;
1395d6: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
1395d9: 89 45 f0 mov %eax,-0x10(%ebp) <== NOT EXECUTED
status = rtems_io_control (major, minor, (void *) &args);
1395dc: 8d 45 e8 lea -0x18(%ebp),%eax <== NOT EXECUTED
1395df: 50 push %eax <== NOT EXECUTED
1395e0: 51 push %ecx <== NOT EXECUTED
1395e1: 52 push %edx <== NOT EXECUTED
1395e2: e8 61 24 00 00 call 13ba48 <rtems_io_control> <== NOT EXECUTED
if (status)
1395e7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1395ea: 85 c0 test %eax,%eax <== NOT EXECUTED
1395ec: 74 0e je 1395fc <rtems_rfs_rtems_device_ioctl+0x3e><== NOT EXECUTED
return rtems_deviceio_errno (status);
1395ee: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1395f1: 50 push %eax <== NOT EXECUTED
1395f2: e8 15 0a 00 00 call 13a00c <rtems_deviceio_errno> <== NOT EXECUTED
1395f7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1395fa: eb 03 jmp 1395ff <rtems_rfs_rtems_device_ioctl+0x41><== NOT EXECUTED
return args.ioctl_return;
1395fc: 8b 45 f4 mov -0xc(%ebp),%eax <== NOT EXECUTED
}
1395ff: c9 leave <== NOT EXECUTED
139600: c3 ret <== NOT EXECUTED
001395ac <rtems_rfs_rtems_device_lseek>:
static rtems_off64_t
rtems_rfs_rtems_device_lseek (rtems_libio_t* iop,
rtems_off64_t offset,
int whence)
{
1395ac: 55 push %ebp <== NOT EXECUTED
1395ad: 89 e5 mov %esp,%ebp <== NOT EXECUTED
return offset;
}
1395af: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
1395b2: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
1395b5: c9 leave <== NOT EXECUTED
1395b6: c3 ret <== NOT EXECUTED
0013972b <rtems_rfs_rtems_device_open>:
static int
rtems_rfs_rtems_device_open ( rtems_libio_t *iop,
const char *pathname,
uint32_t flag,
uint32_t mode)
{
13972b: 55 push %ebp <== NOT EXECUTED
13972c: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13972e: 57 push %edi <== NOT EXECUTED
13972f: 56 push %esi <== NOT EXECUTED
139730: 53 push %ebx <== NOT EXECUTED
139731: 81 ec 90 00 00 00 sub $0x90,%esp <== NOT EXECUTED
139737: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
rtems_libio_open_close_args_t args;
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (&iop->pathinfo);
13973a: 8b 43 28 mov 0x28(%ebx),%eax <== NOT EXECUTED
13973d: 8b 70 34 mov 0x34(%eax),%esi <== NOT EXECUTED
rtems_rfs_ino ino = rtems_rfs_rtems_get_iop_ino (iop);
139740: 8b 53 38 mov 0x38(%ebx),%edx <== NOT EXECUTED
*/
static inline int
rtems_rfs_mutex_lock (rtems_rfs_mutex* mutex)
{
#if __rtems__
rtems_status_code sc = rtems_semaphore_obtain (*mutex, RTEMS_WAIT, 0);
139743: 6a 00 push $0x0 <== NOT EXECUTED
139745: 6a 00 push $0x0 <== NOT EXECUTED
139747: 8b 46 7c mov 0x7c(%esi),%eax <== NOT EXECUTED
13974a: ff 30 pushl (%eax) <== NOT EXECUTED
13974c: 89 95 70 ff ff ff mov %edx,-0x90(%ebp) <== NOT EXECUTED
139752: e8 b1 74 fd ff call 110c08 <rtems_semaphore_obtain><== NOT EXECUTED
rtems_status_code status;
int rc;
rtems_rfs_rtems_lock (fs);
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
139757: 6a 01 push $0x1 <== NOT EXECUTED
139759: 8d 7d b4 lea -0x4c(%ebp),%edi <== NOT EXECUTED
13975c: 57 push %edi <== NOT EXECUTED
13975d: 8b 95 70 ff ff ff mov -0x90(%ebp),%edx <== NOT EXECUTED
139763: 52 push %edx <== NOT EXECUTED
139764: 56 push %esi <== NOT EXECUTED
139765: e8 4d f4 ff ff call 138bb7 <rtems_rfs_inode_open> <== NOT EXECUTED
13976a: 89 c2 mov %eax,%edx <== NOT EXECUTED
if (rc > 0)
13976c: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
13976f: 85 c0 test %eax,%eax <== NOT EXECUTED
139771: 7e 1c jle 13978f <rtems_rfs_rtems_device_open+0x64><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
139773: 89 f0 mov %esi,%eax <== NOT EXECUTED
139775: 89 95 70 ff ff ff mov %edx,-0x90(%ebp) <== NOT EXECUTED
13977b: e8 8b ff ff ff call 13970b <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("device_open: opening inode", rc);
139780: e8 8f 48 00 00 call 13e014 <__errno> <== NOT EXECUTED
139785: 8b 95 70 ff ff ff mov -0x90(%ebp),%edx <== NOT EXECUTED
13978b: 89 10 mov %edx,(%eax) <== NOT EXECUTED
13978d: eb 62 jmp 1397f1 <rtems_rfs_rtems_device_open+0xc6><== NOT EXECUTED
* @return uint32_t The block number.
*/
static inline uint32_t
rtems_rfs_inode_get_block (rtems_rfs_inode_handle* handle, int block)
{
return rtems_rfs_read_u32 (&handle->node->data.blocks[block]);
13978f: 8b 55 c0 mov -0x40(%ebp),%edx <== NOT EXECUTED
139792: 8d 42 1c lea 0x1c(%edx),%eax <== NOT EXECUTED
139795: 8a 52 1c mov 0x1c(%edx),%dl <== NOT EXECUTED
139798: 88 95 78 ff ff ff mov %dl,-0x88(%ebp) <== NOT EXECUTED
13979e: 8a 50 01 mov 0x1(%eax),%dl <== NOT EXECUTED
1397a1: 88 95 77 ff ff ff mov %dl,-0x89(%ebp) <== NOT EXECUTED
1397a7: 8a 50 02 mov 0x2(%eax),%dl <== NOT EXECUTED
1397aa: 88 95 76 ff ff ff mov %dl,-0x8a(%ebp) <== NOT EXECUTED
1397b0: 8a 50 03 mov 0x3(%eax),%dl <== NOT EXECUTED
1397b3: 88 95 75 ff ff ff mov %dl,-0x8b(%ebp) <== NOT EXECUTED
1397b9: 8a 50 04 mov 0x4(%eax),%dl <== NOT EXECUTED
1397bc: 88 55 98 mov %dl,-0x68(%ebp) <== NOT EXECUTED
1397bf: 8a 50 05 mov 0x5(%eax),%dl <== NOT EXECUTED
1397c2: 88 55 97 mov %dl,-0x69(%ebp) <== NOT EXECUTED
1397c5: 8a 50 06 mov 0x6(%eax),%dl <== NOT EXECUTED
1397c8: 88 55 96 mov %dl,-0x6a(%ebp) <== NOT EXECUTED
1397cb: 8a 40 07 mov 0x7(%eax),%al <== NOT EXECUTED
1397ce: 88 45 95 mov %al,-0x6b(%ebp) <== NOT EXECUTED
}
major = rtems_rfs_inode_get_block (&inode, 0);
minor = rtems_rfs_inode_get_block (&inode, 1);
rc = rtems_rfs_inode_close (fs, &inode);
1397d1: 50 push %eax <== NOT EXECUTED
1397d2: 50 push %eax <== NOT EXECUTED
1397d3: 57 push %edi <== NOT EXECUTED
1397d4: 56 push %esi <== NOT EXECUTED
1397d5: e8 6e f3 ff ff call 138b48 <rtems_rfs_inode_close> <== NOT EXECUTED
1397da: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc > 0)
1397dc: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1397df: 85 c0 test %eax,%eax <== NOT EXECUTED
1397e1: 7e 16 jle 1397f9 <rtems_rfs_rtems_device_open+0xce><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
1397e3: 89 f0 mov %esi,%eax <== NOT EXECUTED
1397e5: e8 21 ff ff ff call 13970b <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("device_open: closing inode", rc);
1397ea: e8 25 48 00 00 call 13e014 <__errno> <== NOT EXECUTED
1397ef: 89 38 mov %edi,(%eax) <== NOT EXECUTED
1397f1: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
1397f4: e9 93 00 00 00 jmp 13988c <rtems_rfs_rtems_device_open+0x161><== NOT EXECUTED
1397f9: 0f b6 bd 75 ff ff ff movzbl -0x8b(%ebp),%edi <== NOT EXECUTED
139800: 8a 85 78 ff ff ff mov -0x88(%ebp),%al <== NOT EXECUTED
139806: c1 e0 18 shl $0x18,%eax <== NOT EXECUTED
139809: 09 c7 or %eax,%edi <== NOT EXECUTED
13980b: 0f b6 85 77 ff ff ff movzbl -0x89(%ebp),%eax <== NOT EXECUTED
139812: c1 e0 10 shl $0x10,%eax <== NOT EXECUTED
139815: 09 c7 or %eax,%edi <== NOT EXECUTED
139817: 0f b6 85 76 ff ff ff movzbl -0x8a(%ebp),%eax <== NOT EXECUTED
13981e: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
139821: 09 c7 or %eax,%edi <== NOT EXECUTED
139823: 8a 55 98 mov -0x68(%ebp),%dl <== NOT EXECUTED
139826: c1 e2 18 shl $0x18,%edx <== NOT EXECUTED
139829: 0f b6 45 97 movzbl -0x69(%ebp),%eax <== NOT EXECUTED
13982d: c1 e0 10 shl $0x10,%eax <== NOT EXECUTED
139830: 09 c2 or %eax,%edx <== NOT EXECUTED
139832: 0f b6 45 95 movzbl -0x6b(%ebp),%eax <== NOT EXECUTED
139836: 09 c2 or %eax,%edx <== NOT EXECUTED
139838: 0f b6 45 96 movzbl -0x6a(%ebp),%eax <== NOT EXECUTED
13983c: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
13983f: 09 c2 or %eax,%edx <== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
139841: 89 f0 mov %esi,%eax <== NOT EXECUTED
139843: 89 95 70 ff ff ff mov %edx,-0x90(%ebp) <== NOT EXECUTED
139849: e8 bd fe ff ff call 13970b <rtems_rfs_rtems_unlock><== NOT EXECUTED
iop->data0 = major;
13984e: 89 7b 30 mov %edi,0x30(%ebx) <== NOT EXECUTED
iop->data1 = (void*)((intptr_t) minor);
139851: 8b 95 70 ff ff ff mov -0x90(%ebp),%edx <== NOT EXECUTED
139857: 89 53 34 mov %edx,0x34(%ebx) <== NOT EXECUTED
args.iop = iop;
13985a: 89 5d dc mov %ebx,-0x24(%ebp) <== NOT EXECUTED
args.flags = iop->flags;
13985d: 8b 43 14 mov 0x14(%ebx),%eax <== NOT EXECUTED
139860: 89 45 e0 mov %eax,-0x20(%ebp) <== NOT EXECUTED
args.mode = mode;
139863: 8b 45 14 mov 0x14(%ebp),%eax <== NOT EXECUTED
139866: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
status = rtems_io_open (major, minor, (void *) &args);
139869: 51 push %ecx <== NOT EXECUTED
13986a: 8d 45 dc lea -0x24(%ebp),%eax <== NOT EXECUTED
13986d: 50 push %eax <== NOT EXECUTED
13986e: 52 push %edx <== NOT EXECUTED
13986f: 57 push %edi <== NOT EXECUTED
139870: e8 03 22 00 00 call 13ba78 <rtems_io_open> <== NOT EXECUTED
139875: 89 c2 mov %eax,%edx <== NOT EXECUTED
if (status)
139877: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13987a: 31 c0 xor %eax,%eax <== NOT EXECUTED
13987c: 85 d2 test %edx,%edx <== NOT EXECUTED
13987e: 74 0c je 13988c <rtems_rfs_rtems_device_open+0x161><== NOT EXECUTED
return rtems_deviceio_errno(status);
139880: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
139883: 52 push %edx <== NOT EXECUTED
139884: e8 83 07 00 00 call 13a00c <rtems_deviceio_errno> <== NOT EXECUTED
139889: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
return 0;
}
13988c: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13988f: 5b pop %ebx <== NOT EXECUTED
139890: 5e pop %esi <== NOT EXECUTED
139891: 5f pop %edi <== NOT EXECUTED
139892: c9 leave <== NOT EXECUTED
139893: c3 ret <== NOT EXECUTED
00139664 <rtems_rfs_rtems_device_read>:
* @return ssize_t
*/
static ssize_t
rtems_rfs_rtems_device_read (rtems_libio_t* iop, void* buffer, size_t count)
{
139664: 55 push %ebp <== NOT EXECUTED
139665: 89 e5 mov %esp,%ebp <== NOT EXECUTED
139667: 56 push %esi <== NOT EXECUTED
139668: 53 push %ebx <== NOT EXECUTED
139669: 83 ec 24 sub $0x24,%esp <== NOT EXECUTED
13966c: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
rtems_libio_rw_args_t args;
rtems_status_code status;
int major;
int minor;
major = (int) iop->data0;
13966f: 8b 50 30 mov 0x30(%eax),%edx <== NOT EXECUTED
minor = (intptr_t) iop->data1;
139672: 8b 48 34 mov 0x34(%eax),%ecx <== NOT EXECUTED
args.iop = iop;
139675: 89 45 dc mov %eax,-0x24(%ebp) <== NOT EXECUTED
args.offset = iop->offset;
139678: 8b 58 0c mov 0xc(%eax),%ebx <== NOT EXECUTED
13967b: 8b 70 10 mov 0x10(%eax),%esi <== NOT EXECUTED
13967e: 89 5d e0 mov %ebx,-0x20(%ebp) <== NOT EXECUTED
139681: 89 75 e4 mov %esi,-0x1c(%ebp) <== NOT EXECUTED
args.buffer = buffer;
139684: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
139687: 89 5d e8 mov %ebx,-0x18(%ebp) <== NOT EXECUTED
args.count = count;
13968a: 8b 5d 10 mov 0x10(%ebp),%ebx <== NOT EXECUTED
13968d: 89 5d ec mov %ebx,-0x14(%ebp) <== NOT EXECUTED
args.flags = iop->flags;
139690: 8b 40 14 mov 0x14(%eax),%eax <== NOT EXECUTED
139693: 89 45 f0 mov %eax,-0x10(%ebp) <== NOT EXECUTED
args.bytes_moved = 0;
139696: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) <== NOT EXECUTED
status = rtems_io_read (major, minor, (void *) &args);
13969d: 8d 45 dc lea -0x24(%ebp),%eax <== NOT EXECUTED
1396a0: 50 push %eax <== NOT EXECUTED
1396a1: 51 push %ecx <== NOT EXECUTED
1396a2: 52 push %edx <== NOT EXECUTED
1396a3: e8 00 24 00 00 call 13baa8 <rtems_io_read> <== NOT EXECUTED
if (status)
1396a8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1396ab: 85 c0 test %eax,%eax <== NOT EXECUTED
1396ad: 74 0e je 1396bd <rtems_rfs_rtems_device_read+0x59><== NOT EXECUTED
return rtems_deviceio_errno (status);
1396af: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1396b2: 50 push %eax <== NOT EXECUTED
1396b3: e8 54 09 00 00 call 13a00c <rtems_deviceio_errno> <== NOT EXECUTED
1396b8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1396bb: eb 03 jmp 1396c0 <rtems_rfs_rtems_device_read+0x5c><== NOT EXECUTED
return (ssize_t) args.bytes_moved;
1396bd: 8b 45 f4 mov -0xc(%ebp),%eax <== NOT EXECUTED
}
1396c0: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
1396c3: 5b pop %ebx <== NOT EXECUTED
1396c4: 5e pop %esi <== NOT EXECUTED
1396c5: c9 leave <== NOT EXECUTED
1396c6: c3 ret <== NOT EXECUTED
00139601 <rtems_rfs_rtems_device_write>:
static ssize_t
rtems_rfs_rtems_device_write (rtems_libio_t* iop,
const void* buffer,
size_t count)
{
139601: 55 push %ebp <== NOT EXECUTED
139602: 89 e5 mov %esp,%ebp <== NOT EXECUTED
139604: 56 push %esi <== NOT EXECUTED
139605: 53 push %ebx <== NOT EXECUTED
139606: 83 ec 24 sub $0x24,%esp <== NOT EXECUTED
139609: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
rtems_libio_rw_args_t args;
rtems_status_code status;
int major;
int minor;
major = (int) iop->data0;
13960c: 8b 50 30 mov 0x30(%eax),%edx <== NOT EXECUTED
minor = (intptr_t) iop->data1;
13960f: 8b 48 34 mov 0x34(%eax),%ecx <== NOT EXECUTED
args.iop = iop;
139612: 89 45 dc mov %eax,-0x24(%ebp) <== NOT EXECUTED
args.offset = iop->offset;
139615: 8b 58 0c mov 0xc(%eax),%ebx <== NOT EXECUTED
139618: 8b 70 10 mov 0x10(%eax),%esi <== NOT EXECUTED
13961b: 89 5d e0 mov %ebx,-0x20(%ebp) <== NOT EXECUTED
13961e: 89 75 e4 mov %esi,-0x1c(%ebp) <== NOT EXECUTED
args.buffer = (void *) buffer;
139621: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
139624: 89 5d e8 mov %ebx,-0x18(%ebp) <== NOT EXECUTED
args.count = count;
139627: 8b 5d 10 mov 0x10(%ebp),%ebx <== NOT EXECUTED
13962a: 89 5d ec mov %ebx,-0x14(%ebp) <== NOT EXECUTED
args.flags = iop->flags;
13962d: 8b 40 14 mov 0x14(%eax),%eax <== NOT EXECUTED
139630: 89 45 f0 mov %eax,-0x10(%ebp) <== NOT EXECUTED
args.bytes_moved = 0;
139633: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) <== NOT EXECUTED
status = rtems_io_write (major, minor, (void *) &args);
13963a: 8d 45 dc lea -0x24(%ebp),%eax <== NOT EXECUTED
13963d: 50 push %eax <== NOT EXECUTED
13963e: 51 push %ecx <== NOT EXECUTED
13963f: 52 push %edx <== NOT EXECUTED
139640: e8 93 24 00 00 call 13bad8 <rtems_io_write> <== NOT EXECUTED
if (status)
139645: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
139648: 85 c0 test %eax,%eax <== NOT EXECUTED
13964a: 74 0e je 13965a <rtems_rfs_rtems_device_write+0x59><== NOT EXECUTED
return rtems_deviceio_errno (status);
13964c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13964f: 50 push %eax <== NOT EXECUTED
139650: e8 b7 09 00 00 call 13a00c <rtems_deviceio_errno> <== NOT EXECUTED
139655: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
139658: eb 03 jmp 13965d <rtems_rfs_rtems_device_write+0x5c><== NOT EXECUTED
return (ssize_t) args.bytes_moved;
13965a: 8b 45 f4 mov -0xc(%ebp),%eax <== NOT EXECUTED
}
13965d: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
139660: 5b pop %ebx <== NOT EXECUTED
139661: 5e pop %esi <== NOT EXECUTED
139662: c9 leave <== NOT EXECUTED
139663: c3 ret <== NOT EXECUTED
00139894 <rtems_rfs_rtems_dir_close>:
* @param iop
* @retval 0 Always no error.
*/
static int
rtems_rfs_rtems_dir_close (rtems_libio_t* iop)
{
139894: 55 push %ebp <== NOT EXECUTED
139895: 89 e5 mov %esp,%ebp <== NOT EXECUTED
/*
* The RFS does not hold any resources. Nothing to do.
*/
return 0;
}
139897: 31 c0 xor %eax,%eax <== NOT EXECUTED
139899: c9 leave <== NOT EXECUTED
13989a: c3 ret <== NOT EXECUTED
0013989b <rtems_rfs_rtems_dir_lseek>:
*/
static rtems_off64_t
rtems_rfs_rtems_dir_lseek (rtems_libio_t* iop,
rtems_off64_t offset,
int whence)
{
13989b: 55 push %ebp <== NOT EXECUTED
13989c: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13989e: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
switch (whence)
1398a1: 31 c0 xor %eax,%eax <== NOT EXECUTED
1398a3: 31 d2 xor %edx,%edx <== NOT EXECUTED
1398a5: 83 7d 14 01 cmpl $0x1,0x14(%ebp) <== NOT EXECUTED
1398a9: 76 10 jbe 1398bb <rtems_rfs_rtems_dir_lseek+0x20><== NOT EXECUTED
break;
case SEEK_END: /* Movement past the end of the directory via lseek */
/* is not a permitted operation */
default:
return rtems_rfs_rtems_error ("dir_lseek: bad whence", EINVAL);
1398ab: e8 64 47 00 00 call 13e014 <__errno> <== NOT EXECUTED
1398b0: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
1398b6: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
1398b9: 89 c2 mov %eax,%edx <== NOT EXECUTED
break;
}
return 0;
}
1398bb: c9 leave <== NOT EXECUTED
1398bc: c3 ret <== NOT EXECUTED
00139a36 <rtems_rfs_rtems_dir_open>:
static int
rtems_rfs_rtems_dir_open (rtems_libio_t* iop,
const char* pathname,
uint32_t flag,
uint32_t mode)
{
139a36: 55 push %ebp <== NOT EXECUTED
139a37: 89 e5 mov %esp,%ebp <== NOT EXECUTED
139a39: 57 push %edi <== NOT EXECUTED
139a3a: 56 push %esi <== NOT EXECUTED
139a3b: 53 push %ebx <== NOT EXECUTED
139a3c: 83 ec 50 sub $0x50,%esp <== NOT EXECUTED
139a3f: 8b 7d 08 mov 0x8(%ebp),%edi <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (&iop->pathinfo);
139a42: 8b 47 28 mov 0x28(%edi),%eax <== NOT EXECUTED
139a45: 8b 58 34 mov 0x34(%eax),%ebx <== NOT EXECUTED
rtems_rfs_ino ino = rtems_rfs_rtems_get_iop_ino (iop);
139a48: 8b 57 38 mov 0x38(%edi),%edx <== NOT EXECUTED
139a4b: 6a 00 push $0x0 <== NOT EXECUTED
139a4d: 6a 00 push $0x0 <== NOT EXECUTED
139a4f: 8b 43 7c mov 0x7c(%ebx),%eax <== NOT EXECUTED
139a52: ff 30 pushl (%eax) <== NOT EXECUTED
139a54: 89 55 b4 mov %edx,-0x4c(%ebp) <== NOT EXECUTED
139a57: e8 ac 71 fd ff call 110c08 <rtems_semaphore_obtain><== NOT EXECUTED
rtems_rfs_inode_handle inode;
int rc;
rtems_rfs_rtems_lock (fs);
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
139a5c: 6a 01 push $0x1 <== NOT EXECUTED
139a5e: 8d 75 c0 lea -0x40(%ebp),%esi <== NOT EXECUTED
139a61: 56 push %esi <== NOT EXECUTED
139a62: 8b 55 b4 mov -0x4c(%ebp),%edx <== NOT EXECUTED
139a65: 52 push %edx <== NOT EXECUTED
139a66: 53 push %ebx <== NOT EXECUTED
139a67: e8 4b f1 ff ff call 138bb7 <rtems_rfs_inode_open> <== NOT EXECUTED
139a6c: 89 c2 mov %eax,%edx <== NOT EXECUTED
if (rc)
139a6e: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
139a71: 85 c0 test %eax,%eax <== NOT EXECUTED
139a73: 74 19 je 139a8e <rtems_rfs_rtems_dir_open+0x58><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
139a75: 89 d8 mov %ebx,%eax <== NOT EXECUTED
139a77: 89 55 b4 mov %edx,-0x4c(%ebp) <== NOT EXECUTED
139a7a: e8 3e fe ff ff call 1398bd <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("dir_open: opening inode", rc);
139a7f: e8 90 45 00 00 call 13e014 <__errno> <== NOT EXECUTED
139a84: 8b 55 b4 mov -0x4c(%ebp),%edx <== NOT EXECUTED
139a87: 89 10 mov %edx,(%eax) <== NOT EXECUTED
139a89: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
139a8c: eb 59 jmp 139ae7 <rtems_rfs_rtems_dir_open+0xb1><== NOT EXECUTED
}
if (!RTEMS_RFS_S_ISDIR (rtems_rfs_inode_get_mode (&inode)))
139a8e: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED
139a91: 0f b6 40 02 movzbl 0x2(%eax),%eax <== NOT EXECUTED
139a95: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
139a98: 25 00 f0 00 00 and $0xf000,%eax <== NOT EXECUTED
139a9d: 3d 00 40 00 00 cmp $0x4000,%eax <== NOT EXECUTED
139aa2: 74 20 je 139ac4 <rtems_rfs_rtems_dir_open+0x8e><== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
139aa4: 57 push %edi <== NOT EXECUTED
139aa5: 57 push %edi <== NOT EXECUTED
139aa6: 56 push %esi <== NOT EXECUTED
139aa7: 53 push %ebx <== NOT EXECUTED
139aa8: e8 9b f0 ff ff call 138b48 <rtems_rfs_inode_close> <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
139aad: 89 d8 mov %ebx,%eax <== NOT EXECUTED
139aaf: e8 09 fe ff ff call 1398bd <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("dir_open: not dir", ENOTDIR);
139ab4: e8 5b 45 00 00 call 13e014 <__errno> <== NOT EXECUTED
139ab9: c7 00 14 00 00 00 movl $0x14,(%eax) <== NOT EXECUTED
139abf: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
139ac2: eb 20 jmp 139ae4 <rtems_rfs_rtems_dir_open+0xae><== NOT EXECUTED
}
iop->offset = 0;
139ac4: c7 47 0c 00 00 00 00 movl $0x0,0xc(%edi) <== NOT EXECUTED
139acb: c7 47 10 00 00 00 00 movl $0x0,0x10(%edi) <== NOT EXECUTED
rtems_rfs_inode_close (fs, &inode);
139ad2: 51 push %ecx <== NOT EXECUTED
139ad3: 51 push %ecx <== NOT EXECUTED
139ad4: 56 push %esi <== NOT EXECUTED
139ad5: 53 push %ebx <== NOT EXECUTED
139ad6: e8 6d f0 ff ff call 138b48 <rtems_rfs_inode_close> <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
139adb: 89 d8 mov %ebx,%eax <== NOT EXECUTED
139add: e8 db fd ff ff call 1398bd <rtems_rfs_rtems_unlock><== NOT EXECUTED
139ae2: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
139ae4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
139ae7: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
139aea: 5b pop %ebx <== NOT EXECUTED
139aeb: 5e pop %esi <== NOT EXECUTED
139aec: 5f pop %edi <== NOT EXECUTED
139aed: c9 leave <== NOT EXECUTED
139aee: c3 ret <== NOT EXECUTED
0013995d <rtems_rfs_rtems_dir_read>:
*/
static ssize_t
rtems_rfs_rtems_dir_read (rtems_libio_t* iop,
void* buffer,
size_t count)
{
13995d: 55 push %ebp <== NOT EXECUTED
13995e: 89 e5 mov %esp,%ebp <== NOT EXECUTED
139960: 57 push %edi <== NOT EXECUTED
139961: 56 push %esi <== NOT EXECUTED
139962: 53 push %ebx <== NOT EXECUTED
139963: 83 ec 50 sub $0x50,%esp <== NOT EXECUTED
139966: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
139969: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (&iop->pathinfo);
13996c: 8b 56 28 mov 0x28(%esi),%edx <== NOT EXECUTED
13996f: 8b 5a 34 mov 0x34(%edx),%ebx <== NOT EXECUTED
rtems_rfs_ino ino = rtems_rfs_rtems_get_iop_ino (iop);
139972: 8b 7e 38 mov 0x38(%esi),%edi <== NOT EXECUTED
struct dirent* dirent;
ssize_t bytes_transferred;
int d;
int rc;
count = count / sizeof (struct dirent);
139975: b9 10 01 00 00 mov $0x110,%ecx <== NOT EXECUTED
13997a: 31 d2 xor %edx,%edx <== NOT EXECUTED
13997c: f7 f1 div %ecx <== NOT EXECUTED
13997e: 89 45 b4 mov %eax,-0x4c(%ebp) <== NOT EXECUTED
139981: 6a 00 push $0x0 <== NOT EXECUTED
139983: 6a 00 push $0x0 <== NOT EXECUTED
139985: 8b 43 7c mov 0x7c(%ebx),%eax <== NOT EXECUTED
139988: ff 30 pushl (%eax) <== NOT EXECUTED
13998a: e8 79 72 fd ff call 110c08 <rtems_semaphore_obtain><== NOT EXECUTED
dirent = buffer;
rtems_rfs_rtems_lock (fs);
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
13998f: 6a 01 push $0x1 <== NOT EXECUTED
139991: 8d 55 bc lea -0x44(%ebp),%edx <== NOT EXECUTED
139994: 52 push %edx <== NOT EXECUTED
139995: 57 push %edi <== NOT EXECUTED
139996: 53 push %ebx <== NOT EXECUTED
139997: 89 55 b0 mov %edx,-0x50(%ebp) <== NOT EXECUTED
13999a: e8 18 f2 ff ff call 138bb7 <rtems_rfs_inode_open> <== NOT EXECUTED
13999f: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc)
1399a1: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
1399a4: 85 c0 test %eax,%eax <== NOT EXECUTED
1399a6: 75 04 jne 1399ac <rtems_rfs_rtems_dir_read+0x4f><== NOT EXECUTED
1399a8: 31 c9 xor %ecx,%ecx <== NOT EXECUTED
1399aa: eb 60 jmp 139a0c <rtems_rfs_rtems_dir_read+0xaf><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
1399ac: 89 d8 mov %ebx,%eax <== NOT EXECUTED
1399ae: e8 0a ff ff ff call 1398bd <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("dir_read: read inode", rc);
1399b3: e8 5c 46 00 00 call 13e014 <__errno> <== NOT EXECUTED
1399b8: 89 38 mov %edi,(%eax) <== NOT EXECUTED
1399ba: 83 cf ff or $0xffffffff,%edi <== NOT EXECUTED
1399bd: eb 6d jmp 139a2c <rtems_rfs_rtems_dir_read+0xcf><== NOT EXECUTED
bytes_transferred = 0;
for (d = 0; d < count; d++, dirent++)
{
size_t size;
rc = rtems_rfs_dir_read (fs, &inode, iop->offset, dirent, &size);
1399bf: 52 push %edx <== NOT EXECUTED
1399c0: 52 push %edx <== NOT EXECUTED
1399c1: 8d 55 e4 lea -0x1c(%ebp),%edx <== NOT EXECUTED
1399c4: 52 push %edx <== NOT EXECUTED
1399c5: 50 push %eax <== NOT EXECUTED
1399c6: ff 76 10 pushl 0x10(%esi) <== NOT EXECUTED
1399c9: ff 76 0c pushl 0xc(%esi) <== NOT EXECUTED
1399cc: 8d 45 bc lea -0x44(%ebp),%eax <== NOT EXECUTED
1399cf: 50 push %eax <== NOT EXECUTED
1399d0: 53 push %ebx <== NOT EXECUTED
1399d1: 89 4d b0 mov %ecx,-0x50(%ebp) <== NOT EXECUTED
1399d4: e8 b9 c4 ff ff call 135e92 <rtems_rfs_dir_read> <== NOT EXECUTED
if (rc == ENOENT)
1399d9: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
1399dc: 83 f8 02 cmp $0x2,%eax <== NOT EXECUTED
1399df: 8b 4d b0 mov -0x50(%ebp),%ecx <== NOT EXECUTED
1399e2: 74 32 je 139a16 <rtems_rfs_rtems_dir_read+0xb9><== NOT EXECUTED
{
rc = 0;
break;
}
if (rc > 0)
1399e4: 85 c0 test %eax,%eax <== NOT EXECUTED
1399e6: 7e 12 jle 1399fa <rtems_rfs_rtems_dir_read+0x9d><== NOT EXECUTED
{
bytes_transferred = rtems_rfs_rtems_error ("dir_read: dir read", rc);
1399e8: 89 45 b0 mov %eax,-0x50(%ebp) <== NOT EXECUTED
1399eb: e8 24 46 00 00 call 13e014 <__errno> <== NOT EXECUTED
1399f0: 8b 55 b0 mov -0x50(%ebp),%edx <== NOT EXECUTED
1399f3: 89 10 mov %edx,(%eax) <== NOT EXECUTED
1399f5: 83 cf ff or $0xffffffff,%edi <== NOT EXECUTED
1399f8: eb 1c jmp 139a16 <rtems_rfs_rtems_dir_read+0xb9><== NOT EXECUTED
break;
}
iop->offset += size;
1399fa: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
1399fd: 31 d2 xor %edx,%edx <== NOT EXECUTED
1399ff: 01 46 0c add %eax,0xc(%esi) <== NOT EXECUTED
139a02: 11 56 10 adc %edx,0x10(%esi) <== NOT EXECUTED
139a05: 81 c7 10 01 00 00 add $0x110,%edi <== NOT EXECUTED
return rtems_rfs_rtems_error ("dir_read: read inode", rc);
}
bytes_transferred = 0;
for (d = 0; d < count; d++, dirent++)
139a0b: 41 inc %ecx <== NOT EXECUTED
* exisiting file, the remaining entries will be placed in the buffer and the
* returned value will be equal to -m actual- times the size of a directory
* entry.
*/
static ssize_t
rtems_rfs_rtems_dir_read (rtems_libio_t* iop,
139a0c: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
139a0f: 01 f8 add %edi,%eax <== NOT EXECUTED
return rtems_rfs_rtems_error ("dir_read: read inode", rc);
}
bytes_transferred = 0;
for (d = 0; d < count; d++, dirent++)
139a11: 3b 4d b4 cmp -0x4c(%ebp),%ecx <== NOT EXECUTED
139a14: 72 a9 jb 1399bf <rtems_rfs_rtems_dir_read+0x62><== NOT EXECUTED
}
iop->offset += size;
bytes_transferred += sizeof (struct dirent);
}
rtems_rfs_inode_close (fs, &inode);
139a16: 56 push %esi <== NOT EXECUTED
139a17: 56 push %esi <== NOT EXECUTED
139a18: 8d 45 bc lea -0x44(%ebp),%eax <== NOT EXECUTED
139a1b: 50 push %eax <== NOT EXECUTED
139a1c: 53 push %ebx <== NOT EXECUTED
139a1d: e8 26 f1 ff ff call 138b48 <rtems_rfs_inode_close> <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
139a22: 89 d8 mov %ebx,%eax <== NOT EXECUTED
139a24: e8 94 fe ff ff call 1398bd <rtems_rfs_rtems_unlock><== NOT EXECUTED
return bytes_transferred;
139a29: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
139a2c: 89 f8 mov %edi,%eax <== NOT EXECUTED
139a2e: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
139a31: 5b pop %ebx <== NOT EXECUTED
139a32: 5e pop %esi <== NOT EXECUTED
139a33: 5f pop %edi <== NOT EXECUTED
139a34: c9 leave <== NOT EXECUTED
139a35: c3 ret <== NOT EXECUTED
001398dd <rtems_rfs_rtems_dir_rmnod>:
static int
rtems_rfs_rtems_dir_rmnod (rtems_filesystem_location_info_t* parent_pathloc,
rtems_filesystem_location_info_t* pathloc)
{
1398dd: 55 push %ebp <== NOT EXECUTED
1398de: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1398e0: 57 push %edi <== NOT EXECUTED
1398e1: 56 push %esi <== NOT EXECUTED
1398e2: 53 push %ebx <== NOT EXECUTED
1398e3: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
1398e6: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
1398e9: 8b 50 10 mov 0x10(%eax),%edx <== NOT EXECUTED
1398ec: 8b 5a 34 mov 0x34(%edx),%ebx <== NOT EXECUTED
rtems_rfs_ino parent = rtems_rfs_rtems_get_pathloc_ino (parent_pathloc);
1398ef: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
1398f2: 8b 3a mov (%edx),%edi <== NOT EXECUTED
rtems_rfs_ino ino = rtems_rfs_rtems_get_pathloc_ino (pathloc);
1398f4: 8b 30 mov (%eax),%esi <== NOT EXECUTED
uint32_t doff = rtems_rfs_rtems_get_pathloc_doff (pathloc);
1398f6: 8b 50 04 mov 0x4(%eax),%edx <== NOT EXECUTED
if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_DIR_RMNOD))
printf ("rtems-rfs: dir-rmnod: parent:%" PRId32 " doff:%" PRIu32 ", ino:%" PRId32 "\n",
parent, doff, ino);
if (ino == RTEMS_RFS_ROOT_INO)
1398f9: 83 fe 01 cmp $0x1,%esi <== NOT EXECUTED
1398fc: 75 0d jne 13990b <rtems_rfs_rtems_dir_rmnod+0x2e><== NOT EXECUTED
return rtems_rfs_rtems_error ("dir_rmnod: root inode", EBUSY);
1398fe: e8 11 47 00 00 call 13e014 <__errno> <== NOT EXECUTED
139903: c7 00 10 00 00 00 movl $0x10,(%eax) <== NOT EXECUTED
139909: eb 3c jmp 139947 <rtems_rfs_rtems_dir_rmnod+0x6a><== NOT EXECUTED
*/
static inline int
rtems_rfs_mutex_lock (rtems_rfs_mutex* mutex)
{
#if __rtems__
rtems_status_code sc = rtems_semaphore_obtain (*mutex, RTEMS_WAIT, 0);
13990b: 51 push %ecx <== NOT EXECUTED
13990c: 6a 00 push $0x0 <== NOT EXECUTED
13990e: 6a 00 push $0x0 <== NOT EXECUTED
139910: 8b 43 7c mov 0x7c(%ebx),%eax <== NOT EXECUTED
139913: ff 30 pushl (%eax) <== NOT EXECUTED
139915: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED
139918: e8 eb 72 fd ff call 110c08 <rtems_semaphore_obtain><== NOT EXECUTED
rtems_rfs_rtems_lock (fs);
rc = rtems_rfs_unlink (fs, parent, ino, doff, rtems_rfs_unlink_dir_if_empty);
13991d: c7 04 24 01 00 00 00 movl $0x1,(%esp) <== NOT EXECUTED
139924: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
139927: 52 push %edx <== NOT EXECUTED
139928: 56 push %esi <== NOT EXECUTED
139929: 57 push %edi <== NOT EXECUTED
13992a: 53 push %ebx <== NOT EXECUTED
13992b: e8 70 f9 ff ff call 1392a0 <rtems_rfs_unlink> <== NOT EXECUTED
139930: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc)
139932: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
139935: 85 c0 test %eax,%eax <== NOT EXECUTED
139937: 74 13 je 13994c <rtems_rfs_rtems_dir_rmnod+0x6f><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
139939: 89 d8 mov %ebx,%eax <== NOT EXECUTED
13993b: e8 7d ff ff ff call 1398bd <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("dir_rmnod: unlinking", rc);
139940: e8 cf 46 00 00 call 13e014 <__errno> <== NOT EXECUTED
139945: 89 30 mov %esi,(%eax) <== NOT EXECUTED
139947: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
13994a: eb 09 jmp 139955 <rtems_rfs_rtems_dir_rmnod+0x78><== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
13994c: 89 d8 mov %ebx,%eax <== NOT EXECUTED
13994e: e8 6a ff ff ff call 1398bd <rtems_rfs_rtems_unlock><== NOT EXECUTED
139953: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
}
139955: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
139958: 5b pop %ebx <== NOT EXECUTED
139959: 5e pop %esi <== NOT EXECUTED
13995a: 5f pop %edi <== NOT EXECUTED
13995b: c9 leave <== NOT EXECUTED
13995c: c3 ret <== NOT EXECUTED
0012260c <rtems_rfs_rtems_eval_for_make>:
*/
int
rtems_rfs_rtems_eval_for_make (const char* path,
rtems_filesystem_location_info_t* pathloc,
const char** name)
{
12260c: 55 push %ebp <== NOT EXECUTED
12260d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12260f: 57 push %edi <== NOT EXECUTED
122610: 56 push %esi <== NOT EXECUTED
122611: 53 push %ebx <== NOT EXECUTED
122612: 83 ec 5c sub $0x5c,%esp <== NOT EXECUTED
122615: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
122618: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
12261b: 8b 42 10 mov 0x10(%edx),%eax <== NOT EXECUTED
12261e: 8b 58 34 mov 0x34(%eax),%ebx <== NOT EXECUTED
rtems_rfs_inode_handle inode;
rtems_rfs_ino ino = rtems_rfs_rtems_get_pathloc_ino (pathloc);
122621: 8b 02 mov (%edx),%eax <== NOT EXECUTED
122623: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
rtems_rfs_ino node_ino;
uint32_t doff = 0;
122626: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp) <== NOT EXECUTED
int rc;
if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_EVAL_FOR_MAKE))
printf ("rtems-rfs-rtems: eval-for-make: path:%s ino:%" PRId32 "\n", path, ino);
*name = path + strlen (path);
12262d: 31 c0 xor %eax,%eax <== NOT EXECUTED
12262f: 83 c9 ff or $0xffffffff,%ecx <== NOT EXECUTED
122632: 89 f7 mov %esi,%edi <== NOT EXECUTED
122634: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED
122636: f7 d1 not %ecx <== NOT EXECUTED
122638: 8d 44 0e ff lea -0x1(%esi,%ecx,1),%eax <== NOT EXECUTED
12263c: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
12263f: 89 02 mov %eax,(%edx) <== NOT EXECUTED
122641: 89 d7 mov %edx,%edi <== NOT EXECUTED
while (*name != path)
122643: eb 20 jmp 122665 <rtems_rfs_rtems_eval_for_make+0x59><== NOT EXECUTED
{
(*name)--;
122645: 8d 50 ff lea -0x1(%eax),%edx <== NOT EXECUTED
122648: 89 17 mov %edx,(%edi) <== NOT EXECUTED
if (rtems_filesystem_is_separator (**name))
12264a: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12264d: 0f be 40 ff movsbl -0x1(%eax),%eax <== NOT EXECUTED
122651: 50 push %eax <== NOT EXECUTED
122652: e8 b5 bd fe ff call 10e40c <rtems_filesystem_is_separator><== NOT EXECUTED
122657: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12265a: 85 c0 test %eax,%eax <== NOT EXECUTED
12265c: 74 07 je 122665 <rtems_rfs_rtems_eval_for_make+0x59><== NOT EXECUTED
{
(*name)++;
12265e: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
122661: ff 00 incl (%eax) <== NOT EXECUTED
break;
122663: eb 06 jmp 12266b <rtems_rfs_rtems_eval_for_make+0x5f><== NOT EXECUTED
if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_EVAL_FOR_MAKE))
printf ("rtems-rfs-rtems: eval-for-make: path:%s ino:%" PRId32 "\n", path, ino);
*name = path + strlen (path);
while (*name != path)
122665: 8b 07 mov (%edi),%eax <== NOT EXECUTED
122667: 39 f0 cmp %esi,%eax <== NOT EXECUTED
122669: 75 da jne 122645 <rtems_rfs_rtems_eval_for_make+0x39><== NOT EXECUTED
}
/*
* Eat any separators at start of the path.
*/
stripped = rtems_filesystem_prefix_separators (path, strlen(path));
12266b: 31 c0 xor %eax,%eax <== NOT EXECUTED
12266d: 83 c9 ff or $0xffffffff,%ecx <== NOT EXECUTED
122670: 89 f7 mov %esi,%edi <== NOT EXECUTED
122672: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED
122674: f7 d1 not %ecx <== NOT EXECUTED
122676: 49 dec %ecx <== NOT EXECUTED
122677: 52 push %edx <== NOT EXECUTED
122678: 52 push %edx <== NOT EXECUTED
122679: 51 push %ecx <== NOT EXECUTED
12267a: 56 push %esi <== NOT EXECUTED
12267b: e8 78 a6 fe ff call 10ccf8 <rtems_filesystem_prefix_separators><== NOT EXECUTED
path += stripped;
122680: 01 c6 add %eax,%esi <== NOT EXECUTED
122682: 89 75 a4 mov %esi,-0x5c(%ebp) <== NOT EXECUTED
rtems_rfs_rtems_lock (fs);
122685: 89 d8 mov %ebx,%eax <== NOT EXECUTED
122687: e8 16 f2 ff ff call 1218a2 <rtems_rfs_rtems_lock> <== NOT EXECUTED
12268c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
while (true)
{
/*
* Open and load the inode.
*/
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
12268f: 8d 75 b4 lea -0x4c(%ebp),%esi <== NOT EXECUTED
122692: eb 03 jmp 122697 <rtems_rfs_rtems_eval_for_make+0x8b><== NOT EXECUTED
* Eat any separators at start of the path.
*/
stripped = rtems_filesystem_prefix_separators (path, strlen(path));
path += stripped;
rtems_rfs_rtems_lock (fs);
122694: 89 7d a4 mov %edi,-0x5c(%ebp) <== NOT EXECUTED
while (true)
{
/*
* Open and load the inode.
*/
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
122697: 6a 01 push $0x1 <== NOT EXECUTED
122699: 56 push %esi <== NOT EXECUTED
12269a: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
12269d: 53 push %ebx <== NOT EXECUTED
12269e: e8 14 65 01 00 call 138bb7 <rtems_rfs_inode_open> <== NOT EXECUTED
1226a3: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc > 0)
1226a5: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1226a8: 85 c0 test %eax,%eax <== NOT EXECUTED
1226aa: 7e 13 jle 1226bf <rtems_rfs_rtems_eval_for_make+0xb3><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
1226ac: 89 d8 mov %ebx,%eax <== NOT EXECUTED
1226ae: e8 08 f2 ff ff call 1218bb <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("eval_for_make: read ino", rc);
1226b3: e8 5c b9 01 00 call 13e014 <__errno> <== NOT EXECUTED
1226b8: 89 38 mov %edi,(%eax) <== NOT EXECUTED
1226ba: e9 f8 01 00 00 jmp 1228b7 <rtems_rfs_rtems_eval_for_make+0x2ab><== NOT EXECUTED
}
/*
* If a directory the execute bit must be set for us to enter.
*/
if (RTEMS_RFS_S_ISDIR (rtems_rfs_inode_get_mode (&inode)) &&
1226bf: 8b 45 c0 mov -0x40(%ebp),%eax <== NOT EXECUTED
1226c2: 0f b6 40 02 movzbl 0x2(%eax),%eax <== NOT EXECUTED
1226c6: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
1226c9: 25 00 f0 00 00 and $0xf000,%eax <== NOT EXECUTED
1226ce: 3d 00 40 00 00 cmp $0x4000,%eax <== NOT EXECUTED
1226d3: 75 15 jne 1226ea <rtems_rfs_rtems_eval_for_make+0xde><== NOT EXECUTED
1226d5: 50 push %eax <== NOT EXECUTED
1226d6: 50 push %eax <== NOT EXECUTED
1226d7: 6a 01 push $0x1 <== NOT EXECUTED
1226d9: 56 push %esi <== NOT EXECUTED
1226da: e8 35 06 00 00 call 122d14 <rtems_rfs_rtems_eval_perms><== NOT EXECUTED
1226df: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1226e2: 84 c0 test %al,%al <== NOT EXECUTED
1226e4: 0f 84 1f 02 00 00 je 122909 <rtems_rfs_rtems_eval_for_make+0x2fd><== NOT EXECUTED
}
/*
* Is this the end of the pathname we where given ?
*/
if (path == *name)
1226ea: 8b 45 a4 mov -0x5c(%ebp),%eax <== NOT EXECUTED
1226ed: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
1226f0: 3b 02 cmp (%edx),%eax <== NOT EXECUTED
1226f2: 0f 84 c7 01 00 00 je 1228bf <rtems_rfs_rtems_eval_for_make+0x2b3><== NOT EXECUTED
1226f8: 89 c2 mov %eax,%edx <== NOT EXECUTED
1226fa: c7 45 a0 00 00 00 00 movl $0x0,-0x60(%ebp) <== NOT EXECUTED
122701: eb 04 jmp 122707 <rtems_rfs_rtems_eval_for_make+0xfb><== NOT EXECUTED
node_len = 0;
while (!rtems_filesystem_is_separator(*path) &&
(*path != '\0') &&
(node_len < (rtems_rfs_fs_max_name (fs) - 1)))
{
node_len++;
122703: ff 45 a0 incl -0x60(%ebp) <== NOT EXECUTED
path++;
122706: 42 inc %edx <== NOT EXECUTED
/*
* Extract the node name we will look for this time around.
*/
node = path;
node_len = 0;
while (!rtems_filesystem_is_separator(*path) &&
122707: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12270a: 0f be 02 movsbl (%edx),%eax <== NOT EXECUTED
12270d: 50 push %eax <== NOT EXECUTED
12270e: 89 55 98 mov %edx,-0x68(%ebp) <== NOT EXECUTED
122711: e8 f6 bc fe ff call 10e40c <rtems_filesystem_is_separator><== NOT EXECUTED
122716: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
122719: 85 c0 test %eax,%eax <== NOT EXECUTED
12271b: 8b 55 98 mov -0x68(%ebp),%edx <== NOT EXECUTED
12271e: 75 0e jne 12272e <rtems_rfs_rtems_eval_for_make+0x122><== NOT EXECUTED
122720: 80 3a 00 cmpb $0x0,(%edx) <== NOT EXECUTED
122723: 74 09 je 12272e <rtems_rfs_rtems_eval_for_make+0x122><== NOT EXECUTED
(*path != '\0') &&
(node_len < (rtems_rfs_fs_max_name (fs) - 1)))
122725: 8b 43 18 mov 0x18(%ebx),%eax <== NOT EXECUTED
122728: 48 dec %eax <== NOT EXECUTED
122729: 39 45 a0 cmp %eax,-0x60(%ebp) <== NOT EXECUTED
12272c: 72 d5 jb 122703 <rtems_rfs_rtems_eval_for_make+0xf7><== NOT EXECUTED
}
/*
* Eat any separators at start of the new path.
*/
stripped = rtems_filesystem_prefix_separators (path, strlen (path));
12272e: 31 c0 xor %eax,%eax <== NOT EXECUTED
122730: 83 c9 ff or $0xffffffff,%ecx <== NOT EXECUTED
122733: 89 d7 mov %edx,%edi <== NOT EXECUTED
122735: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED
122737: f7 d1 not %ecx <== NOT EXECUTED
122739: 49 dec %ecx <== NOT EXECUTED
12273a: 57 push %edi <== NOT EXECUTED
12273b: 57 push %edi <== NOT EXECUTED
12273c: 51 push %ecx <== NOT EXECUTED
12273d: 52 push %edx <== NOT EXECUTED
12273e: 89 55 98 mov %edx,-0x68(%ebp) <== NOT EXECUTED
122741: e8 b2 a5 fe ff call 10ccf8 <rtems_filesystem_prefix_separators><== NOT EXECUTED
path += stripped;
122746: 8b 55 98 mov -0x68(%ebp),%edx <== NOT EXECUTED
122749: 8d 3c 02 lea (%edx,%eax,1),%edi <== NOT EXECUTED
/*
* If the node is the current directory and there is more path to come move
* on it else we are at the inode we want.
*/
if (rtems_rfs_current_dir (node))
12274c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12274f: 8b 55 a4 mov -0x5c(%ebp),%edx <== NOT EXECUTED
122752: 80 3a 2e cmpb $0x2e,(%edx) <== NOT EXECUTED
122755: 75 34 jne 12278b <rtems_rfs_rtems_eval_for_make+0x17f><== NOT EXECUTED
122757: 8a 42 01 mov 0x1(%edx),%al <== NOT EXECUTED
12275a: 84 c0 test %al,%al <== NOT EXECUTED
12275c: 74 13 je 122771 <rtems_rfs_rtems_eval_for_make+0x165><== NOT EXECUTED
12275e: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
122761: 0f be c0 movsbl %al,%eax <== NOT EXECUTED
122764: 50 push %eax <== NOT EXECUTED
122765: e8 a2 bc fe ff call 10e40c <rtems_filesystem_is_separator><== NOT EXECUTED
12276a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12276d: 85 c0 test %eax,%eax <== NOT EXECUTED
12276f: 74 1a je 12278b <rtems_rfs_rtems_eval_for_make+0x17f><== NOT EXECUTED
{
if (*path)
122771: 80 3f 00 cmpb $0x0,(%edi) <== NOT EXECUTED
122774: 0f 84 45 01 00 00 je 1228bf <rtems_rfs_rtems_eval_for_make+0x2b3><== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
12277a: 50 push %eax <== NOT EXECUTED
12277b: 50 push %eax <== NOT EXECUTED
12277c: 56 push %esi <== NOT EXECUTED
12277d: 53 push %ebx <== NOT EXECUTED
12277e: e8 c5 63 01 00 call 138b48 <rtems_rfs_inode_close> <== NOT EXECUTED
continue;
122783: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
122786: e9 09 ff ff ff jmp 122694 <rtems_rfs_rtems_eval_for_make+0x88><== NOT EXECUTED
/*
* If the node is a parent we must move up one directory. If the location
* is on another file system we have a crossmount so we call that file
* system to handle the remainder of the path.
*/
if (rtems_rfs_parent_dir (path))
12278b: 80 3f 2e cmpb $0x2e,(%edi) <== NOT EXECUTED
12278e: 0f 85 b9 00 00 00 jne 12284d <rtems_rfs_rtems_eval_for_make+0x241><== NOT EXECUTED
122794: 80 7f 01 2e cmpb $0x2e,0x1(%edi) <== NOT EXECUTED
122798: 0f 85 af 00 00 00 jne 12284d <rtems_rfs_rtems_eval_for_make+0x241><== NOT EXECUTED
12279e: 8d 47 02 lea 0x2(%edi),%eax <== NOT EXECUTED
1227a1: 89 45 9c mov %eax,-0x64(%ebp) <== NOT EXECUTED
1227a4: 8a 47 02 mov 0x2(%edi),%al <== NOT EXECUTED
1227a7: 84 c0 test %al,%al <== NOT EXECUTED
1227a9: 74 17 je 1227c2 <rtems_rfs_rtems_eval_for_make+0x1b6><== NOT EXECUTED
1227ab: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1227ae: 0f be c0 movsbl %al,%eax <== NOT EXECUTED
1227b1: 50 push %eax <== NOT EXECUTED
1227b2: e8 55 bc fe ff call 10e40c <rtems_filesystem_is_separator><== NOT EXECUTED
1227b7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1227ba: 85 c0 test %eax,%eax <== NOT EXECUTED
1227bc: 0f 84 8b 00 00 00 je 12284d <rtems_rfs_rtems_eval_for_make+0x241><== NOT EXECUTED
{
/*
* If we are at the root inode of the file system we have a crossmount
* path.
*/
if (ino == RTEMS_RFS_ROOT_INO)
1227c2: 83 7d e4 01 cmpl $0x1,-0x1c(%ebp) <== NOT EXECUTED
1227c6: 75 3c jne 122804 <rtems_rfs_rtems_eval_for_make+0x1f8><== NOT EXECUTED
{
if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_EVAL_FOR_MAKE))
printf("rtems-rfs-rtems: eval-for-make: crossmount: path:%s\n",
path - node_len);
rtems_rfs_inode_close (fs, &inode);
1227c8: 56 push %esi <== NOT EXECUTED
1227c9: 56 push %esi <== NOT EXECUTED
1227ca: 8d 45 b4 lea -0x4c(%ebp),%eax <== NOT EXECUTED
1227cd: 50 push %eax <== NOT EXECUTED
1227ce: 53 push %ebx <== NOT EXECUTED
1227cf: e8 74 63 01 00 call 138b48 <rtems_rfs_inode_close> <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
1227d4: 89 d8 mov %ebx,%eax <== NOT EXECUTED
1227d6: e8 e0 f0 ff ff call 1218bb <rtems_rfs_rtems_unlock><== NOT EXECUTED
*pathloc = pathloc->mt_entry->mt_point_node;
1227db: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
1227de: 8b 72 10 mov 0x10(%edx),%esi <== NOT EXECUTED
1227e1: 83 c6 08 add $0x8,%esi <== NOT EXECUTED
1227e4: b9 05 00 00 00 mov $0x5,%ecx <== NOT EXECUTED
1227e9: 89 d7 mov %edx,%edi <== NOT EXECUTED
1227eb: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED
return (*pathloc->ops->evalformake_h)(path + 2, pathloc, name);
1227ed: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
1227f0: 8b 42 0c mov 0xc(%edx),%eax <== NOT EXECUTED
1227f3: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
1227f6: 52 push %edx <== NOT EXECUTED
1227f7: ff 75 9c pushl -0x64(%ebp) <== NOT EXECUTED
1227fa: ff 50 04 call *0x4(%eax) <== NOT EXECUTED
1227fd: 89 c7 mov %eax,%edi <== NOT EXECUTED
1227ff: e9 bb 01 00 00 jmp 1229bf <rtems_rfs_rtems_eval_for_make+0x3b3><== NOT EXECUTED
/*
* If not a directory give and up return. We cannot change dir from a
* regular file or device node.
*/
if (!RTEMS_RFS_S_ISDIR (rtems_rfs_inode_get_mode (&inode)))
122804: 8b 45 c0 mov -0x40(%ebp),%eax <== NOT EXECUTED
122807: 0f b6 40 02 movzbl 0x2(%eax),%eax <== NOT EXECUTED
12280b: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
12280e: 25 00 f0 00 00 and $0xf000,%eax <== NOT EXECUTED
122813: 3d 00 40 00 00 cmp $0x4000,%eax <== NOT EXECUTED
122818: 74 20 je 12283a <rtems_rfs_rtems_eval_for_make+0x22e><== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
12281a: 51 push %ecx <== NOT EXECUTED
12281b: 51 push %ecx <== NOT EXECUTED
12281c: 56 push %esi <== NOT EXECUTED
12281d: 53 push %ebx <== NOT EXECUTED
12281e: e8 25 63 01 00 call 138b48 <rtems_rfs_inode_close> <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
122823: 89 d8 mov %ebx,%eax <== NOT EXECUTED
122825: e8 91 f0 ff ff call 1218bb <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("eval_for_make: not dir", ENOTSUP);
12282a: e8 e5 b7 01 00 call 13e014 <__errno> <== NOT EXECUTED
12282f: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
122835: e9 52 01 00 00 jmp 12298c <rtems_rfs_rtems_eval_for_make+0x380><== NOT EXECUTED
}
/*
* We need to find the parent of this node.
*/
rc = rtems_rfs_dir_lookup_ino (fs, &inode, "..", 2, &ino, &doff);
12283a: 52 push %edx <== NOT EXECUTED
12283b: 52 push %edx <== NOT EXECUTED
12283c: 8d 45 dc lea -0x24(%ebp),%eax <== NOT EXECUTED
12283f: 50 push %eax <== NOT EXECUTED
122840: 8d 55 e4 lea -0x1c(%ebp),%edx <== NOT EXECUTED
122843: 52 push %edx <== NOT EXECUTED
122844: 6a 02 push $0x2 <== NOT EXECUTED
122846: 68 4c 90 15 00 push $0x15904c <== NOT EXECUTED
12284b: eb 10 jmp 12285d <rtems_rfs_rtems_eval_for_make+0x251><== NOT EXECUTED
else
{
/*
* Read the inode so we know it exists and what type it is.
*/
rc = rtems_rfs_dir_lookup_ino (fs, &inode,
12284d: 50 push %eax <== NOT EXECUTED
12284e: 50 push %eax <== NOT EXECUTED
12284f: 8d 45 dc lea -0x24(%ebp),%eax <== NOT EXECUTED
122852: 50 push %eax <== NOT EXECUTED
122853: 8d 55 e4 lea -0x1c(%ebp),%edx <== NOT EXECUTED
122856: 52 push %edx <== NOT EXECUTED
122857: ff 75 a0 pushl -0x60(%ebp) <== NOT EXECUTED
12285a: ff 75 a4 pushl -0x5c(%ebp) <== NOT EXECUTED
12285d: 56 push %esi <== NOT EXECUTED
12285e: 53 push %ebx <== NOT EXECUTED
12285f: e8 25 3e 01 00 call 136689 <rtems_rfs_dir_lookup_ino><== NOT EXECUTED
node, node_len - stripped, &ino, &doff);
if (rc > 0)
122864: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
122867: 85 c0 test %eax,%eax <== NOT EXECUTED
122869: 7e 22 jle 12288d <rtems_rfs_rtems_eval_for_make+0x281><== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
12286b: 51 push %ecx <== NOT EXECUTED
12286c: 51 push %ecx <== NOT EXECUTED
12286d: 56 push %esi <== NOT EXECUTED
12286e: 53 push %ebx <== NOT EXECUTED
12286f: 89 45 98 mov %eax,-0x68(%ebp) <== NOT EXECUTED
122872: e8 d1 62 01 00 call 138b48 <rtems_rfs_inode_close> <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
122877: 89 d8 mov %ebx,%eax <== NOT EXECUTED
122879: e8 3d f0 ff ff call 1218bb <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("eval_for_make: reading inode", rc);
12287e: e8 91 b7 01 00 call 13e014 <__errno> <== NOT EXECUTED
122883: 8b 55 98 mov -0x68(%ebp),%edx <== NOT EXECUTED
122886: 89 10 mov %edx,(%eax) <== NOT EXECUTED
122888: e9 ff 00 00 00 jmp 12298c <rtems_rfs_rtems_eval_for_make+0x380><== NOT EXECUTED
if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_EVAL_FOR_MAKE))
printf("rtems-rfs-rtems: eval-for-make: down: path:%s ino:%" PRId32 "\n",
node, ino);
}
rc = rtems_rfs_inode_close (fs, &inode);
12288d: 50 push %eax <== NOT EXECUTED
12288e: 50 push %eax <== NOT EXECUTED
12288f: 56 push %esi <== NOT EXECUTED
122890: 53 push %ebx <== NOT EXECUTED
122891: e8 b2 62 01 00 call 138b48 <rtems_rfs_inode_close> <== NOT EXECUTED
122896: 89 c2 mov %eax,%edx <== NOT EXECUTED
if (rc > 0)
122898: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12289b: 85 c0 test %eax,%eax <== NOT EXECUTED
12289d: 0f 8e f1 fd ff ff jle 122694 <rtems_rfs_rtems_eval_for_make+0x88><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
1228a3: 89 d8 mov %ebx,%eax <== NOT EXECUTED
1228a5: 89 55 98 mov %edx,-0x68(%ebp) <== NOT EXECUTED
1228a8: e8 0e f0 ff ff call 1218bb <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("eval_for_make: closing node", rc);
1228ad: e8 62 b7 01 00 call 13e014 <__errno> <== NOT EXECUTED
1228b2: 8b 55 98 mov -0x68(%ebp),%edx <== NOT EXECUTED
1228b5: 89 10 mov %edx,(%eax) <== NOT EXECUTED
1228b7: 83 cf ff or $0xffffffff,%edi <== NOT EXECUTED
1228ba: e9 03 01 00 00 jmp 1229c2 <rtems_rfs_rtems_eval_for_make+0x3b6><== NOT EXECUTED
}
}
if (!RTEMS_RFS_S_ISDIR (rtems_rfs_inode_get_mode (&inode)))
1228bf: 8b 45 c0 mov -0x40(%ebp),%eax <== NOT EXECUTED
1228c2: 0f b6 40 02 movzbl 0x2(%eax),%eax <== NOT EXECUTED
1228c6: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
1228c9: 25 00 f0 00 00 and $0xf000,%eax <== NOT EXECUTED
1228ce: 3d 00 40 00 00 cmp $0x4000,%eax <== NOT EXECUTED
1228d3: 8d 75 b4 lea -0x4c(%ebp),%esi <== NOT EXECUTED
1228d6: 74 20 je 1228f8 <rtems_rfs_rtems_eval_for_make+0x2ec><== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
1228d8: 51 push %ecx <== NOT EXECUTED
1228d9: 51 push %ecx <== NOT EXECUTED
1228da: 56 push %esi <== NOT EXECUTED
1228db: 53 push %ebx <== NOT EXECUTED
1228dc: e8 67 62 01 00 call 138b48 <rtems_rfs_inode_close> <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
1228e1: 89 d8 mov %ebx,%eax <== NOT EXECUTED
1228e3: e8 d3 ef ff ff call 1218bb <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("eval_for_make: not dir", ENOTDIR);
1228e8: e8 27 b7 01 00 call 13e014 <__errno> <== NOT EXECUTED
1228ed: c7 00 14 00 00 00 movl $0x14,(%eax) <== NOT EXECUTED
1228f3: e9 94 00 00 00 jmp 12298c <rtems_rfs_rtems_eval_for_make+0x380><== NOT EXECUTED
}
if (!rtems_rfs_rtems_eval_perms (&inode, RTEMS_LIBIO_PERMS_WX))
1228f8: 52 push %edx <== NOT EXECUTED
1228f9: 52 push %edx <== NOT EXECUTED
1228fa: 6a 03 push $0x3 <== NOT EXECUTED
1228fc: 56 push %esi <== NOT EXECUTED
1228fd: e8 12 04 00 00 call 122d14 <rtems_rfs_rtems_eval_perms><== NOT EXECUTED
122902: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
122905: 84 c0 test %al,%al <== NOT EXECUTED
122907: 75 1d jne 122926 <rtems_rfs_rtems_eval_for_make+0x31a><== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
122909: 50 push %eax <== NOT EXECUTED
12290a: 50 push %eax <== NOT EXECUTED
12290b: 56 push %esi <== NOT EXECUTED
12290c: 53 push %ebx <== NOT EXECUTED
12290d: e8 36 62 01 00 call 138b48 <rtems_rfs_inode_close> <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
122912: 89 d8 mov %ebx,%eax <== NOT EXECUTED
122914: e8 a2 ef ff ff call 1218bb <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("eval_for_make: cannot write", EACCES);
122919: e8 f6 b6 01 00 call 13e014 <__errno> <== NOT EXECUTED
12291e: c7 00 0d 00 00 00 movl $0xd,(%eax) <== NOT EXECUTED
122924: eb 66 jmp 12298c <rtems_rfs_rtems_eval_for_make+0x380><== NOT EXECUTED
}
/*
* Make sure the name does not already exists in the directory.
*/
rc = rtems_rfs_dir_lookup_ino (fs, &inode, *name, strlen (*name),
122926: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
122929: 8b 10 mov (%eax),%edx <== NOT EXECUTED
12292b: 31 c0 xor %eax,%eax <== NOT EXECUTED
12292d: 83 c9 ff or $0xffffffff,%ecx <== NOT EXECUTED
122930: 89 d7 mov %edx,%edi <== NOT EXECUTED
122932: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED
122934: f7 d1 not %ecx <== NOT EXECUTED
122936: 49 dec %ecx <== NOT EXECUTED
122937: 57 push %edi <== NOT EXECUTED
122938: 57 push %edi <== NOT EXECUTED
122939: 8d 45 dc lea -0x24(%ebp),%eax <== NOT EXECUTED
12293c: 50 push %eax <== NOT EXECUTED
12293d: 8d 45 e0 lea -0x20(%ebp),%eax <== NOT EXECUTED
122940: 50 push %eax <== NOT EXECUTED
122941: 51 push %ecx <== NOT EXECUTED
122942: 52 push %edx <== NOT EXECUTED
122943: 56 push %esi <== NOT EXECUTED
122944: 53 push %ebx <== NOT EXECUTED
122945: e8 3f 3d 01 00 call 136689 <rtems_rfs_dir_lookup_ino><== NOT EXECUTED
12294a: 89 c7 mov %eax,%edi <== NOT EXECUTED
&node_ino, &doff);
if (rc == 0)
12294c: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
12294f: 85 c0 test %eax,%eax <== NOT EXECUTED
122951: 75 1d jne 122970 <rtems_rfs_rtems_eval_for_make+0x364><== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
122953: 52 push %edx <== NOT EXECUTED
122954: 52 push %edx <== NOT EXECUTED
122955: 56 push %esi <== NOT EXECUTED
122956: 53 push %ebx <== NOT EXECUTED
122957: e8 ec 61 01 00 call 138b48 <rtems_rfs_inode_close> <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
12295c: 89 d8 mov %ebx,%eax <== NOT EXECUTED
12295e: e8 58 ef ff ff call 1218bb <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("eval_for_make: found name", EEXIST);
122963: e8 ac b6 01 00 call 13e014 <__errno> <== NOT EXECUTED
122968: c7 00 11 00 00 00 movl $0x11,(%eax) <== NOT EXECUTED
12296e: eb 1c jmp 12298c <rtems_rfs_rtems_eval_for_make+0x380><== NOT EXECUTED
}
if (rc != ENOENT)
122970: 83 f8 02 cmp $0x2,%eax <== NOT EXECUTED
122973: 74 1c je 122991 <rtems_rfs_rtems_eval_for_make+0x385><== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
122975: 50 push %eax <== NOT EXECUTED
122976: 50 push %eax <== NOT EXECUTED
122977: 56 push %esi <== NOT EXECUTED
122978: 53 push %ebx <== NOT EXECUTED
122979: e8 ca 61 01 00 call 138b48 <rtems_rfs_inode_close> <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
12297e: 89 d8 mov %ebx,%eax <== NOT EXECUTED
122980: e8 36 ef ff ff call 1218bb <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("eval_for_make: look up", rc);
122985: e8 8a b6 01 00 call 13e014 <__errno> <== NOT EXECUTED
12298a: 89 38 mov %edi,(%eax) <== NOT EXECUTED
12298c: 83 cf ff or $0xffffffff,%edi <== NOT EXECUTED
12298f: eb 2e jmp 1229bf <rtems_rfs_rtems_eval_for_make+0x3b3><== NOT EXECUTED
/*
* Set the parent ino in the path location.
*/
rtems_rfs_rtems_set_pathloc_ino (pathloc, ino);
122991: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
122994: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
122997: 89 02 mov %eax,(%edx) <== NOT EXECUTED
rtems_rfs_rtems_set_pathloc_doff (pathloc, doff);
122999: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED
12299c: 89 42 04 mov %eax,0x4(%edx) <== NOT EXECUTED
rc = rtems_rfs_rtems_set_handlers (pathloc, &inode) ? 0 : EIO;
12299f: 57 push %edi <== NOT EXECUTED
1229a0: 57 push %edi <== NOT EXECUTED
1229a1: 56 push %esi <== NOT EXECUTED
1229a2: 52 push %edx <== NOT EXECUTED
1229a3: e8 dc 02 00 00 call 122c84 <rtems_rfs_rtems_set_handlers><== NOT EXECUTED
1229a8: 5a pop %edx <== NOT EXECUTED
1229a9: 59 pop %ecx <== NOT EXECUTED
1229aa: 3c 01 cmp $0x1,%al <== NOT EXECUTED
1229ac: 19 ff sbb %edi,%edi <== NOT EXECUTED
1229ae: 83 e7 05 and $0x5,%edi <== NOT EXECUTED
if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_EVAL_FOR_MAKE))
printf("rtems-rfs-rtems: eval-for-make: parent ino:%" PRId32 " name:%s\n",
ino, *name);
rtems_rfs_inode_close (fs, &inode);
1229b1: 56 push %esi <== NOT EXECUTED
1229b2: 53 push %ebx <== NOT EXECUTED
1229b3: e8 90 61 01 00 call 138b48 <rtems_rfs_inode_close> <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
1229b8: 89 d8 mov %ebx,%eax <== NOT EXECUTED
1229ba: e8 fc ee ff ff call 1218bb <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rc;
1229bf: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
1229c2: 89 f8 mov %edi,%eax <== NOT EXECUTED
1229c4: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1229c7: 5b pop %ebx <== NOT EXECUTED
1229c8: 5e pop %esi <== NOT EXECUTED
1229c9: 5f pop %edi <== NOT EXECUTED
1229ca: c9 leave <== NOT EXECUTED
1229cb: c3 ret <== NOT EXECUTED
001229cc <rtems_rfs_rtems_eval_path>:
int
rtems_rfs_rtems_eval_path (const char* path,
size_t pathlen,
int flags,
rtems_filesystem_location_info_t* pathloc)
{
1229cc: 55 push %ebp <== NOT EXECUTED
1229cd: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1229cf: 57 push %edi <== NOT EXECUTED
1229d0: 56 push %esi <== NOT EXECUTED
1229d1: 53 push %ebx <== NOT EXECUTED
1229d2: 83 ec 64 sub $0x64,%esp <== NOT EXECUTED
1229d5: 8b 75 0c mov 0xc(%ebp),%esi <== NOT EXECUTED
1229d8: 8b 5d 14 mov 0x14(%ebp),%ebx <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
1229db: 8b 43 10 mov 0x10(%ebx),%eax <== NOT EXECUTED
1229de: 8b 78 34 mov 0x34(%eax),%edi <== NOT EXECUTED
rtems_rfs_inode_handle inode;
rtems_rfs_ino ino = rtems_rfs_rtems_get_pathloc_ino (pathloc);
1229e1: 8b 03 mov (%ebx),%eax <== NOT EXECUTED
1229e3: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
uint32_t doff = 0;
1229e6: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp) <== NOT EXECUTED
path, pathlen, ino);
/*
* Eat any separators at the start of the path.
*/
stripped = rtems_filesystem_prefix_separators (path, pathlen);
1229ed: 56 push %esi <== NOT EXECUTED
1229ee: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
1229f1: e8 02 a3 fe ff call 10ccf8 <rtems_filesystem_prefix_separators><== NOT EXECUTED
path += stripped;
1229f6: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
1229f9: 01 c2 add %eax,%edx <== NOT EXECUTED
1229fb: 89 55 ac mov %edx,-0x54(%ebp) <== NOT EXECUTED
pathlen -= stripped;
1229fe: 29 c6 sub %eax,%esi <== NOT EXECUTED
122a00: 89 75 b0 mov %esi,-0x50(%ebp) <== NOT EXECUTED
rtems_rfs_rtems_lock (fs);
122a03: 89 f8 mov %edi,%eax <== NOT EXECUTED
122a05: e8 98 ee ff ff call 1218a2 <rtems_rfs_rtems_lock> <== NOT EXECUTED
122a0a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
while (true)
{
/*
* Open and load the inode.
*/
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
122a0d: 8d 75 b8 lea -0x48(%ebp),%esi <== NOT EXECUTED
122a10: 89 7d b4 mov %edi,-0x4c(%ebp) <== NOT EXECUTED
122a13: 89 5d a4 mov %ebx,-0x5c(%ebp) <== NOT EXECUTED
122a16: 8b 5d ac mov -0x54(%ebp),%ebx <== NOT EXECUTED
122a19: eb 02 jmp 122a1d <rtems_rfs_rtems_eval_path+0x51><== NOT EXECUTED
*/
stripped = rtems_filesystem_prefix_separators (path, pathlen);
path += stripped;
pathlen -= stripped;
rtems_rfs_rtems_lock (fs);
122a1b: 89 fb mov %edi,%ebx <== NOT EXECUTED
while (true)
{
/*
* Open and load the inode.
*/
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
122a1d: 6a 01 push $0x1 <== NOT EXECUTED
122a1f: 56 push %esi <== NOT EXECUTED
122a20: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
122a23: ff 75 b4 pushl -0x4c(%ebp) <== NOT EXECUTED
122a26: e8 8c 61 01 00 call 138bb7 <rtems_rfs_inode_open> <== NOT EXECUTED
122a2b: 89 c2 mov %eax,%edx <== NOT EXECUTED
if (rc > 0)
122a2d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
122a30: 85 c0 test %eax,%eax <== NOT EXECUTED
122a32: 7e 1f jle 122a53 <rtems_rfs_rtems_eval_path+0x87><== NOT EXECUTED
122a34: 8b 7d b4 mov -0x4c(%ebp),%edi <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
122a37: 89 f8 mov %edi,%eax <== NOT EXECUTED
122a39: 89 55 a0 mov %edx,-0x60(%ebp) <== NOT EXECUTED
122a3c: e8 7a ee ff ff call 1218bb <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("eval_path: opening inode", rc);
122a41: e8 ce b5 01 00 call 13e014 <__errno> <== NOT EXECUTED
122a46: 8b 55 a0 mov -0x60(%ebp),%edx <== NOT EXECUTED
122a49: 89 10 mov %edx,(%eax) <== NOT EXECUTED
122a4b: 83 cb ff or $0xffffffff,%ebx <== NOT EXECUTED
122a4e: e9 16 02 00 00 jmp 122c69 <rtems_rfs_rtems_eval_path+0x29d><== NOT EXECUTED
}
/*
* Is this the end of the pathname we where given ?
*/
if ((*path == '\0') || (pathlen == 0))
122a53: 80 3b 00 cmpb $0x0,(%ebx) <== NOT EXECUTED
122a56: 0f 84 d6 01 00 00 je 122c32 <rtems_rfs_rtems_eval_path+0x266><== NOT EXECUTED
122a5c: 83 7d b0 00 cmpl $0x0,-0x50(%ebp) <== NOT EXECUTED
122a60: 0f 84 cc 01 00 00 je 122c32 <rtems_rfs_rtems_eval_path+0x266><== NOT EXECUTED
break;
/*
* If a directory the execute bit must be set for us to enter.
*/
if (RTEMS_RFS_S_ISDIR (rtems_rfs_inode_get_mode (&inode)) &&
122a66: 8b 45 c4 mov -0x3c(%ebp),%eax <== NOT EXECUTED
122a69: 0f b6 40 02 movzbl 0x2(%eax),%eax <== NOT EXECUTED
122a6d: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
122a70: 25 00 f0 00 00 and $0xf000,%eax <== NOT EXECUTED
122a75: 3d 00 40 00 00 cmp $0x4000,%eax <== NOT EXECUTED
122a7a: 74 0b je 122a87 <rtems_rfs_rtems_eval_path+0xbb><== NOT EXECUTED
122a7c: 89 df mov %ebx,%edi <== NOT EXECUTED
122a7e: c7 45 a8 00 00 00 00 movl $0x0,-0x58(%ebp) <== NOT EXECUTED
122a85: eb 3b jmp 122ac2 <rtems_rfs_rtems_eval_path+0xf6><== NOT EXECUTED
122a87: 57 push %edi <== NOT EXECUTED
122a88: 57 push %edi <== NOT EXECUTED
122a89: 6a 01 push $0x1 <== NOT EXECUTED
122a8b: 56 push %esi <== NOT EXECUTED
122a8c: e8 83 02 00 00 call 122d14 <rtems_rfs_rtems_eval_perms><== NOT EXECUTED
122a91: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
122a94: 84 c0 test %al,%al <== NOT EXECUTED
122a96: 75 e4 jne 122a7c <rtems_rfs_rtems_eval_path+0xb0><== NOT EXECUTED
122a98: 8b 7d b4 mov -0x4c(%ebp),%edi <== NOT EXECUTED
!rtems_rfs_rtems_eval_perms (&inode, RTEMS_LIBIO_PERMS_SEARCH))
{
rtems_rfs_inode_close (fs, &inode);
122a9b: 53 push %ebx <== NOT EXECUTED
122a9c: 53 push %ebx <== NOT EXECUTED
122a9d: 56 push %esi <== NOT EXECUTED
122a9e: 57 push %edi <== NOT EXECUTED
122a9f: e8 a4 60 01 00 call 138b48 <rtems_rfs_inode_close> <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
122aa4: 89 f8 mov %edi,%eax <== NOT EXECUTED
122aa6: e8 10 ee ff ff call 1218bb <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("eval_path: eval perms", EACCES);
122aab: e8 64 b5 01 00 call 13e014 <__errno> <== NOT EXECUTED
122ab0: c7 00 0d 00 00 00 movl $0xd,(%eax) <== NOT EXECUTED
122ab6: e9 72 01 00 00 jmp 122c2d <rtems_rfs_rtems_eval_path+0x261><== NOT EXECUTED
node_len = 0;
while (!rtems_filesystem_is_separator (*path) &&
(*path != '\0') && pathlen &&
((node_len + 1) < rtems_rfs_fs_max_name (fs)))
{
path++;
122abb: 47 inc %edi <== NOT EXECUTED
pathlen--;
122abc: ff 4d b0 decl -0x50(%ebp) <== NOT EXECUTED
122abf: 89 45 a8 mov %eax,-0x58(%ebp) <== NOT EXECUTED
/*
* Extract the node name we will look for this time around.
*/
node = path;
node_len = 0;
while (!rtems_filesystem_is_separator (*path) &&
122ac2: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
122ac5: 0f be 07 movsbl (%edi),%eax <== NOT EXECUTED
122ac8: 50 push %eax <== NOT EXECUTED
122ac9: e8 3e b9 fe ff call 10e40c <rtems_filesystem_is_separator><== NOT EXECUTED
122ace: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
122ad1: 85 c0 test %eax,%eax <== NOT EXECUTED
122ad3: 75 17 jne 122aec <rtems_rfs_rtems_eval_path+0x120><== NOT EXECUTED
122ad5: 83 7d b0 00 cmpl $0x0,-0x50(%ebp) <== NOT EXECUTED
122ad9: 74 11 je 122aec <rtems_rfs_rtems_eval_path+0x120><== NOT EXECUTED
122adb: 80 3f 00 cmpb $0x0,(%edi) <== NOT EXECUTED
122ade: 74 0c je 122aec <rtems_rfs_rtems_eval_path+0x120><== NOT EXECUTED
(*path != '\0') && pathlen &&
((node_len + 1) < rtems_rfs_fs_max_name (fs)))
122ae0: 8b 45 a8 mov -0x58(%ebp),%eax <== NOT EXECUTED
122ae3: 40 inc %eax <== NOT EXECUTED
122ae4: 8b 55 b4 mov -0x4c(%ebp),%edx <== NOT EXECUTED
122ae7: 3b 42 18 cmp 0x18(%edx),%eax <== NOT EXECUTED
122aea: 72 cf jb 122abb <rtems_rfs_rtems_eval_path+0xef><== NOT EXECUTED
}
/*
* Eat any separators at start of the path.
*/
stripped = rtems_filesystem_prefix_separators (path, pathlen);
122aec: 51 push %ecx <== NOT EXECUTED
122aed: 51 push %ecx <== NOT EXECUTED
122aee: ff 75 b0 pushl -0x50(%ebp) <== NOT EXECUTED
122af1: 57 push %edi <== NOT EXECUTED
122af2: e8 01 a2 fe ff call 10ccf8 <rtems_filesystem_prefix_separators><== NOT EXECUTED
122af7: 89 45 ac mov %eax,-0x54(%ebp) <== NOT EXECUTED
path += stripped;
122afa: 01 c7 add %eax,%edi <== NOT EXECUTED
pathlen -= stripped;
122afc: 29 45 b0 sub %eax,-0x50(%ebp) <== NOT EXECUTED
/*
* If the node is the current directory and there is more path to come move
* on it else we are at the inode we want.
*/
if (rtems_rfs_current_dir (node))
122aff: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
122b02: 80 3b 2e cmpb $0x2e,(%ebx) <== NOT EXECUTED
122b05: 75 36 jne 122b3d <rtems_rfs_rtems_eval_path+0x171><== NOT EXECUTED
122b07: 8a 43 01 mov 0x1(%ebx),%al <== NOT EXECUTED
122b0a: 84 c0 test %al,%al <== NOT EXECUTED
122b0c: 74 13 je 122b21 <rtems_rfs_rtems_eval_path+0x155><== NOT EXECUTED
122b0e: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
122b11: 0f be c0 movsbl %al,%eax <== NOT EXECUTED
122b14: 50 push %eax <== NOT EXECUTED
122b15: e8 f2 b8 fe ff call 10e40c <rtems_filesystem_is_separator><== NOT EXECUTED
122b1a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
122b1d: 85 c0 test %eax,%eax <== NOT EXECUTED
122b1f: 74 1c je 122b3d <rtems_rfs_rtems_eval_path+0x171><== NOT EXECUTED
{
if (*path)
122b21: 80 3f 00 cmpb $0x0,(%edi) <== NOT EXECUTED
122b24: 0f 84 08 01 00 00 je 122c32 <rtems_rfs_rtems_eval_path+0x266><== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
122b2a: 52 push %edx <== NOT EXECUTED
122b2b: 52 push %edx <== NOT EXECUTED
122b2c: 56 push %esi <== NOT EXECUTED
122b2d: ff 75 b4 pushl -0x4c(%ebp) <== NOT EXECUTED
122b30: e8 13 60 01 00 call 138b48 <rtems_rfs_inode_close> <== NOT EXECUTED
continue;
122b35: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
122b38: e9 de fe ff ff jmp 122a1b <rtems_rfs_rtems_eval_path+0x4f><== NOT EXECUTED
* Eat any separators at start of the path.
*/
stripped = rtems_filesystem_prefix_separators (path, pathlen);
path += stripped;
pathlen -= stripped;
node_len += stripped;
122b3d: 8b 45 ac mov -0x54(%ebp),%eax <== NOT EXECUTED
122b40: 03 45 a8 add -0x58(%ebp),%eax <== NOT EXECUTED
122b43: 89 45 a8 mov %eax,-0x58(%ebp) <== NOT EXECUTED
/*
* If the node is a parent we must move up one directory. If the location
* is on another file system we have a crossmount so we call that file
* system to handle the remainder of the path.
*/
if (rtems_rfs_parent_dir (node))
122b46: 80 3b 2e cmpb $0x2e,(%ebx) <== NOT EXECUTED
122b49: 0f 85 82 00 00 00 jne 122bd1 <rtems_rfs_rtems_eval_path+0x205><== NOT EXECUTED
122b4f: 80 7b 01 2e cmpb $0x2e,0x1(%ebx) <== NOT EXECUTED
122b53: 75 7c jne 122bd1 <rtems_rfs_rtems_eval_path+0x205><== NOT EXECUTED
122b55: 8a 43 02 mov 0x2(%ebx),%al <== NOT EXECUTED
122b58: 84 c0 test %al,%al <== NOT EXECUTED
122b5a: 74 13 je 122b6f <rtems_rfs_rtems_eval_path+0x1a3><== NOT EXECUTED
122b5c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
122b5f: 0f be c0 movsbl %al,%eax <== NOT EXECUTED
122b62: 50 push %eax <== NOT EXECUTED
122b63: e8 a4 b8 fe ff call 10e40c <rtems_filesystem_is_separator><== NOT EXECUTED
122b68: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
122b6b: 85 c0 test %eax,%eax <== NOT EXECUTED
122b6d: 74 62 je 122bd1 <rtems_rfs_rtems_eval_path+0x205><== NOT EXECUTED
{
/*
* If we are at root inode of the file system we have a crossmount path.
*/
if (ino == RTEMS_RFS_ROOT_INO)
122b6f: 83 7d e4 01 cmpl $0x1,-0x1c(%ebp) <== NOT EXECUTED
122b73: 75 49 jne 122bbe <rtems_rfs_rtems_eval_path+0x1f2><== NOT EXECUTED
122b75: 89 7d ac mov %edi,-0x54(%ebp) <== NOT EXECUTED
122b78: 8b 7d b4 mov -0x4c(%ebp),%edi <== NOT EXECUTED
122b7b: 8b 5d a4 mov -0x5c(%ebp),%ebx <== NOT EXECUTED
{
if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_EVAL_PATH))
printf("rtems-rfs-rtems: eval-path: crossmount: path:%s (%zd)\n",
path - node_len, pathlen + node_len);
rtems_rfs_inode_close (fs, &inode);
122b7e: 50 push %eax <== NOT EXECUTED
122b7f: 50 push %eax <== NOT EXECUTED
122b80: 56 push %esi <== NOT EXECUTED
122b81: 57 push %edi <== NOT EXECUTED
122b82: e8 c1 5f 01 00 call 138b48 <rtems_rfs_inode_close> <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
122b87: 89 f8 mov %edi,%eax <== NOT EXECUTED
122b89: e8 2d ed ff ff call 1218bb <rtems_rfs_rtems_unlock><== NOT EXECUTED
*pathloc = pathloc->mt_entry->mt_point_node;
122b8e: 8b 73 10 mov 0x10(%ebx),%esi <== NOT EXECUTED
122b91: 83 c6 08 add $0x8,%esi <== NOT EXECUTED
122b94: b9 05 00 00 00 mov $0x5,%ecx <== NOT EXECUTED
122b99: 89 df mov %ebx,%edi <== NOT EXECUTED
122b9b: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED
return (*pathloc->ops->evalpath_h)(path - node_len, pathlen + node_len,
122b9d: 8b 43 0c mov 0xc(%ebx),%eax <== NOT EXECUTED
122ba0: 53 push %ebx <== NOT EXECUTED
122ba1: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
122ba4: 8b 55 a8 mov -0x58(%ebp),%edx <== NOT EXECUTED
122ba7: 03 55 b0 add -0x50(%ebp),%edx <== NOT EXECUTED
122baa: 52 push %edx <== NOT EXECUTED
122bab: 8b 55 ac mov -0x54(%ebp),%edx <== NOT EXECUTED
122bae: 2b 55 a8 sub -0x58(%ebp),%edx <== NOT EXECUTED
122bb1: 52 push %edx <== NOT EXECUTED
122bb2: ff 10 call *(%eax) <== NOT EXECUTED
122bb4: 89 c3 mov %eax,%ebx <== NOT EXECUTED
122bb6: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
122bb9: e9 ab 00 00 00 jmp 122c69 <rtems_rfs_rtems_eval_path+0x29d><== NOT EXECUTED
}
/*
* We need to find the parent of this node.
*/
rc = rtems_rfs_dir_lookup_ino (fs, &inode, "..", 2, &ino, &doff);
122bbe: 53 push %ebx <== NOT EXECUTED
122bbf: 53 push %ebx <== NOT EXECUTED
122bc0: 8d 55 e0 lea -0x20(%ebp),%edx <== NOT EXECUTED
122bc3: 52 push %edx <== NOT EXECUTED
122bc4: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
122bc7: 50 push %eax <== NOT EXECUTED
122bc8: 6a 02 push $0x2 <== NOT EXECUTED
122bca: 68 4c 90 15 00 push $0x15904c <== NOT EXECUTED
122bcf: eb 12 jmp 122be3 <rtems_rfs_rtems_eval_path+0x217><== NOT EXECUTED
/*
* Look up the node name in this directory. If found drop through, close
* the current inode and let the loop open the inode so the mode can be
* read and handlers set.
*/
rc = rtems_rfs_dir_lookup_ino (fs, &inode,
122bd1: 51 push %ecx <== NOT EXECUTED
122bd2: 51 push %ecx <== NOT EXECUTED
122bd3: 8d 55 e0 lea -0x20(%ebp),%edx <== NOT EXECUTED
122bd6: 52 push %edx <== NOT EXECUTED
122bd7: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
122bda: 50 push %eax <== NOT EXECUTED
122bdb: 8b 45 a8 mov -0x58(%ebp),%eax <== NOT EXECUTED
122bde: 2b 45 ac sub -0x54(%ebp),%eax <== NOT EXECUTED
122be1: 50 push %eax <== NOT EXECUTED
122be2: 53 push %ebx <== NOT EXECUTED
122be3: 56 push %esi <== NOT EXECUTED
122be4: ff 75 b4 pushl -0x4c(%ebp) <== NOT EXECUTED
122be7: e8 9d 3a 01 00 call 136689 <rtems_rfs_dir_lookup_ino><== NOT EXECUTED
122bec: 89 c2 mov %eax,%edx <== NOT EXECUTED
node, node_len - stripped, &ino, &doff);
if (rc > 0)
122bee: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
122bf1: 85 c0 test %eax,%eax <== NOT EXECUTED
122bf3: 7f 18 jg 122c0d <rtems_rfs_rtems_eval_path+0x241><== NOT EXECUTED
}
if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_EVAL_PATH))
printf("rtems-rfs-rtems: eval-path: down: path:%s ino:%" PRId32 "\n", node, ino);
}
rc = rtems_rfs_inode_close (fs, &inode);
122bf5: 52 push %edx <== NOT EXECUTED
122bf6: 52 push %edx <== NOT EXECUTED
122bf7: 56 push %esi <== NOT EXECUTED
122bf8: ff 75 b4 pushl -0x4c(%ebp) <== NOT EXECUTED
122bfb: e8 48 5f 01 00 call 138b48 <rtems_rfs_inode_close> <== NOT EXECUTED
122c00: 89 c2 mov %eax,%edx <== NOT EXECUTED
if (rc > 0)
122c02: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
122c05: 85 c0 test %eax,%eax <== NOT EXECUTED
122c07: 0f 8e 0e fe ff ff jle 122a1b <rtems_rfs_rtems_eval_path+0x4f><== NOT EXECUTED
122c0d: 8b 7d b4 mov -0x4c(%ebp),%edi <== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
122c10: 50 push %eax <== NOT EXECUTED
122c11: 50 push %eax <== NOT EXECUTED
122c12: 56 push %esi <== NOT EXECUTED
122c13: 57 push %edi <== NOT EXECUTED
122c14: 89 55 a0 mov %edx,-0x60(%ebp) <== NOT EXECUTED
122c17: e8 2c 5f 01 00 call 138b48 <rtems_rfs_inode_close> <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
122c1c: 89 f8 mov %edi,%eax <== NOT EXECUTED
122c1e: e8 98 ec ff ff call 1218bb <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("eval_path: closing node", rc);
122c23: e8 ec b3 01 00 call 13e014 <__errno> <== NOT EXECUTED
122c28: 8b 55 a0 mov -0x60(%ebp),%edx <== NOT EXECUTED
122c2b: 89 10 mov %edx,(%eax) <== NOT EXECUTED
122c2d: 83 cb ff or $0xffffffff,%ebx <== NOT EXECUTED
122c30: eb 34 jmp 122c66 <rtems_rfs_rtems_eval_path+0x29a><== NOT EXECUTED
122c32: 8b 7d b4 mov -0x4c(%ebp),%edi <== NOT EXECUTED
122c35: 8b 5d a4 mov -0x5c(%ebp),%ebx <== NOT EXECUTED
}
}
rtems_rfs_rtems_set_pathloc_ino (pathloc, ino);
122c38: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
122c3b: 89 03 mov %eax,(%ebx) <== NOT EXECUTED
rtems_rfs_rtems_set_pathloc_doff (pathloc, doff);
122c3d: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
122c40: 89 43 04 mov %eax,0x4(%ebx) <== NOT EXECUTED
rc = rtems_rfs_rtems_set_handlers (pathloc, &inode) ? 0 : EIO;
122c43: 56 push %esi <== NOT EXECUTED
122c44: 56 push %esi <== NOT EXECUTED
122c45: 8d 75 b8 lea -0x48(%ebp),%esi <== NOT EXECUTED
122c48: 56 push %esi <== NOT EXECUTED
122c49: 53 push %ebx <== NOT EXECUTED
122c4a: e8 35 00 00 00 call 122c84 <rtems_rfs_rtems_set_handlers><== NOT EXECUTED
122c4f: 59 pop %ecx <== NOT EXECUTED
122c50: 5b pop %ebx <== NOT EXECUTED
122c51: 3c 01 cmp $0x1,%al <== NOT EXECUTED
122c53: 19 db sbb %ebx,%ebx <== NOT EXECUTED
122c55: 83 e3 05 and $0x5,%ebx <== NOT EXECUTED
rtems_rfs_inode_close (fs, &inode);
122c58: 56 push %esi <== NOT EXECUTED
122c59: 57 push %edi <== NOT EXECUTED
122c5a: e8 e9 5e 01 00 call 138b48 <rtems_rfs_inode_close> <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
122c5f: 89 f8 mov %edi,%eax <== NOT EXECUTED
122c61: e8 55 ec ff ff call 1218bb <rtems_rfs_rtems_unlock><== NOT EXECUTED
if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_EVAL_PATH))
printf("rtems-rfs-rtems: eval-path: ino:%" PRId32 "\n", ino);
return rc;
122c66: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
122c69: 89 d8 mov %ebx,%eax <== NOT EXECUTED
122c6b: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
122c6e: 5b pop %ebx <== NOT EXECUTED
122c6f: 5e pop %esi <== NOT EXECUTED
122c70: 5f pop %edi <== NOT EXECUTED
122c71: c9 leave <== NOT EXECUTED
122c72: c3 ret <== NOT EXECUTED
00122d14 <rtems_rfs_rtems_eval_perms>:
#include "rtems-rfs-rtems.h"
bool
rtems_rfs_rtems_eval_perms (rtems_rfs_inode_handle* inode, int flags)
{
122d14: 55 push %ebp <== NOT EXECUTED
122d15: 89 e5 mov %esp,%ebp <== NOT EXECUTED
122d17: 57 push %edi <== NOT EXECUTED
122d18: 56 push %esi <== NOT EXECUTED
122d19: 53 push %ebx <== NOT EXECUTED
122d1a: 83 ec 5c sub $0x5c,%esp <== NOT EXECUTED
* @return uint16_t The user id (uid).
*/
static inline uint16_t
rtems_rfs_inode_get_uid (rtems_rfs_inode_handle* handle)
{
return rtems_rfs_read_u32 (&handle->node->owner) & 0xffff;
122d1d: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
122d20: 8b 40 0c mov 0xc(%eax),%eax <== NOT EXECUTED
122d23: 8d 50 04 lea 0x4(%eax),%edx <== NOT EXECUTED
122d26: 8a 5a 02 mov 0x2(%edx),%bl <== NOT EXECUTED
122d29: 0f b6 7a 03 movzbl 0x3(%edx),%edi <== NOT EXECUTED
* @return uint16_t The group id (gid).
*/
static inline uint16_t
rtems_rfs_inode_get_gid (rtems_rfs_inode_handle* handle)
{
return (rtems_rfs_read_u32 (&handle->node->owner) >> 16) & 0xffff;
122d2d: 8a 48 04 mov 0x4(%eax),%cl <== NOT EXECUTED
122d30: 88 4d b8 mov %cl,-0x48(%ebp) <== NOT EXECUTED
122d33: 8a 52 01 mov 0x1(%edx),%dl <== NOT EXECUTED
122d36: 88 55 b7 mov %dl,-0x49(%ebp) <== NOT EXECUTED
* @return uint16_t The mode.
*/
static inline uint16_t
rtems_rfs_inode_get_mode (rtems_rfs_inode_handle* handle)
{
return rtems_rfs_read_u16 (&handle->node->mode);
122d39: 8a 50 02 mov 0x2(%eax),%dl <== NOT EXECUTED
122d3c: 88 55 d8 mov %dl,-0x28(%ebp) <== NOT EXECUTED
122d3f: 8a 40 03 mov 0x3(%eax),%al <== NOT EXECUTED
122d42: 88 45 d7 mov %al,-0x29(%ebp) <== NOT EXECUTED
uid = rtems_rfs_inode_get_uid (inode);
gid = rtems_rfs_inode_get_gid (inode);
mode = rtems_rfs_inode_get_mode (inode);
#if defined (RTEMS_POSIX_API)
st_uid = geteuid ();
122d45: e8 56 55 00 00 call 1282a0 <geteuid> <== NOT EXECUTED
122d4a: 89 c6 mov %eax,%esi <== NOT EXECUTED
st_gid = getegid ();
122d4c: e8 3f 55 00 00 call 128290 <getegid> <== NOT EXECUTED
/*
* Check if I am owner or a group member or someone else.
*/
flags_to_test = flags;
if ((st_uid == 0) || (st_uid == uid))
122d51: 66 85 f6 test %si,%si <== NOT EXECUTED
122d54: 0f 94 c2 sete %dl <== NOT EXECUTED
122d57: 89 d9 mov %ebx,%ecx <== NOT EXECUTED
122d59: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
122d5c: 66 81 e7 ff 00 and $0xff,%di <== NOT EXECUTED
122d61: 09 f9 or %edi,%ecx <== NOT EXECUTED
122d63: 66 39 ce cmp %cx,%si <== NOT EXECUTED
122d66: 74 07 je 122d6f <rtems_rfs_rtems_eval_perms+0x5b><== NOT EXECUTED
122d68: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED
122d6b: 84 d2 test %dl,%dl <== NOT EXECUTED
122d6d: 74 09 je 122d78 <rtems_rfs_rtems_eval_perms+0x64><== NOT EXECUTED
flags_to_test |= flags << 6;
122d6f: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED
122d72: c1 e1 06 shl $0x6,%ecx <== NOT EXECUTED
122d75: 0b 4d 0c or 0xc(%ebp),%ecx <== NOT EXECUTED
if ((st_uid == 0) || (st_gid == gid))
122d78: 8a 5d b8 mov -0x48(%ebp),%bl <== NOT EXECUTED
122d7b: c1 e3 18 shl $0x18,%ebx <== NOT EXECUTED
122d7e: 89 de mov %ebx,%esi <== NOT EXECUTED
122d80: 0f b6 7d b7 movzbl -0x49(%ebp),%edi <== NOT EXECUTED
122d84: c1 e7 10 shl $0x10,%edi <== NOT EXECUTED
122d87: 09 fe or %edi,%esi <== NOT EXECUTED
122d89: c1 ee 10 shr $0x10,%esi <== NOT EXECUTED
122d8c: 66 39 f0 cmp %si,%ax <== NOT EXECUTED
122d8f: 74 04 je 122d95 <rtems_rfs_rtems_eval_perms+0x81><== NOT EXECUTED
122d91: 84 d2 test %dl,%dl <== NOT EXECUTED
122d93: 74 08 je 122d9d <rtems_rfs_rtems_eval_perms+0x89><== NOT EXECUTED
flags_to_test |= flags << 3;
122d95: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
122d98: c1 e3 03 shl $0x3,%ebx <== NOT EXECUTED
122d9b: 09 d9 or %ebx,%ecx <== NOT EXECUTED
122d9d: 8a 45 d8 mov -0x28(%ebp),%al <== NOT EXECUTED
122da0: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
122da3: 0f b6 55 d7 movzbl -0x29(%ebp),%edx <== NOT EXECUTED
122da7: 09 d0 or %edx,%eax <== NOT EXECUTED
122da9: 25 ff 01 00 00 and $0x1ff,%eax <== NOT EXECUTED
122dae: 85 c8 test %ecx,%eax <== NOT EXECUTED
122db0: 0f 95 c0 setne %al <== NOT EXECUTED
if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_EVAL_PERMS))
printf("rtems-rfs: eval-perms: perms failed\n");
return false;
}
122db3: 83 c4 5c add $0x5c,%esp <== NOT EXECUTED
122db6: 5b pop %ebx <== NOT EXECUTED
122db7: 5e pop %esi <== NOT EXECUTED
122db8: 5f pop %edi <== NOT EXECUTED
122db9: c9 leave <== NOT EXECUTED
122dba: c3 ret <== NOT EXECUTED
001219df <rtems_rfs_rtems_fchmod>:
* @return int
*/
int
rtems_rfs_rtems_fchmod (rtems_filesystem_location_info_t* pathloc,
mode_t mode)
{
1219df: 55 push %ebp <== NOT EXECUTED
1219e0: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1219e2: 57 push %edi <== NOT EXECUTED
1219e3: 56 push %esi <== NOT EXECUTED
1219e4: 53 push %ebx <== NOT EXECUTED
1219e5: 83 ec 4c sub $0x4c,%esp <== NOT EXECUTED
1219e8: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
1219eb: 8b 50 10 mov 0x10(%eax),%edx <== NOT EXECUTED
1219ee: 8b 5a 34 mov 0x34(%edx),%ebx <== NOT EXECUTED
rtems_rfs_ino ino = rtems_rfs_rtems_get_pathloc_ino (pathloc);
1219f1: 8b 38 mov (%eax),%edi <== NOT EXECUTED
if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_FCHMOD))
printf ("rtems-rfs-rtems: fchmod: in: ino:%" PRId32 " mode:%06" PRIomode_t "\n",
ino, mode);
rtems_rfs_rtems_lock (fs);
1219f3: 89 d8 mov %ebx,%eax <== NOT EXECUTED
1219f5: e8 a8 fe ff ff call 1218a2 <rtems_rfs_rtems_lock> <== NOT EXECUTED
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
1219fa: 6a 01 push $0x1 <== NOT EXECUTED
1219fc: 8d 75 c0 lea -0x40(%ebp),%esi <== NOT EXECUTED
1219ff: 56 push %esi <== NOT EXECUTED
121a00: 57 push %edi <== NOT EXECUTED
121a01: 53 push %ebx <== NOT EXECUTED
121a02: e8 b0 71 01 00 call 138bb7 <rtems_rfs_inode_open> <== NOT EXECUTED
121a07: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc)
121a09: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
121a0c: 85 c0 test %eax,%eax <== NOT EXECUTED
121a0e: 74 13 je 121a23 <rtems_rfs_rtems_fchmod+0x44><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
121a10: 89 d8 mov %ebx,%eax <== NOT EXECUTED
121a12: e8 a4 fe ff ff call 1218bb <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("fchmod: opening inode", rc);
121a17: e8 f8 c5 01 00 call 13e014 <__errno> <== NOT EXECUTED
121a1c: 89 38 mov %edi,(%eax) <== NOT EXECUTED
121a1e: e9 98 00 00 00 jmp 121abb <rtems_rfs_rtems_fchmod+0xdc><== NOT EXECUTED
* @return uint16_t The mode.
*/
static inline uint16_t
rtems_rfs_inode_get_mode (rtems_rfs_inode_handle* handle)
{
return rtems_rfs_read_u16 (&handle->node->mode);
121a23: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED
121a26: 8a 40 02 mov 0x2(%eax),%al <== NOT EXECUTED
121a29: 88 45 a8 mov %al,-0x58(%ebp) <== NOT EXECUTED
/*
* Verify I am the owner of the node or the super user.
*/
#if defined (RTEMS_POSIX_API)
uid = geteuid();
121a2c: e8 6f 68 00 00 call 1282a0 <geteuid> <== NOT EXECUTED
* @return uint16_t The user id (uid).
*/
static inline uint16_t
rtems_rfs_inode_get_uid (rtems_rfs_inode_handle* handle)
{
return rtems_rfs_read_u32 (&handle->node->owner) & 0xffff;
121a31: 8b 4d cc mov -0x34(%ebp),%ecx <== NOT EXECUTED
121a34: 8d 79 04 lea 0x4(%ecx),%edi <== NOT EXECUTED
if ((uid != rtems_rfs_inode_get_uid (&inode)) && (uid != 0))
121a37: 0f b6 57 02 movzbl 0x2(%edi),%edx <== NOT EXECUTED
121a3b: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
121a3e: 0f b6 7f 03 movzbl 0x3(%edi),%edi <== NOT EXECUTED
121a42: 09 fa or %edi,%edx <== NOT EXECUTED
121a44: 66 39 d0 cmp %dx,%ax <== NOT EXECUTED
121a47: 74 28 je 121a71 <rtems_rfs_rtems_fchmod+0x92><== NOT EXECUTED
121a49: 66 85 c0 test %ax,%ax <== NOT EXECUTED
121a4c: 74 23 je 121a71 <rtems_rfs_rtems_fchmod+0x92><== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
121a4e: 57 push %edi <== NOT EXECUTED
121a4f: 57 push %edi <== NOT EXECUTED
121a50: 56 push %esi <== NOT EXECUTED
121a51: 53 push %ebx <== NOT EXECUTED
121a52: e8 f1 70 01 00 call 138b48 <rtems_rfs_inode_close> <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
121a57: 89 d8 mov %ebx,%eax <== NOT EXECUTED
121a59: e8 5d fe ff ff call 1218bb <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("fchmod: not owner", EPERM);
121a5e: e8 b1 c5 01 00 call 13e014 <__errno> <== NOT EXECUTED
121a63: c7 00 01 00 00 00 movl $0x1,(%eax) <== NOT EXECUTED
121a69: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
121a6c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
121a6f: eb 58 jmp 121ac9 <rtems_rfs_rtems_fchmod+0xea><== NOT EXECUTED
* @return uint16_t The mode.
*/
static inline uint16_t
rtems_rfs_inode_get_mode (rtems_rfs_inode_handle* handle)
{
return rtems_rfs_read_u16 (&handle->node->mode);
121a71: 8a 45 a8 mov -0x58(%ebp),%al <== NOT EXECUTED
121a74: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
}
#endif
imode &= ~(S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX);
121a77: 66 25 00 f0 and $0xf000,%ax <== NOT EXECUTED
imode |= mode & (S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX);
121a7b: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
121a7e: 66 81 e2 ff 0f and $0xfff,%dx <== NOT EXECUTED
121a83: 09 d0 or %edx,%eax <== NOT EXECUTED
* @prarm mode The mode.
*/
static inline void
rtems_rfs_inode_set_mode (rtems_rfs_inode_handle* handle, uint16_t mode)
{
rtems_rfs_write_u16 (&handle->node->mode, mode);
121a85: 89 c2 mov %eax,%edx <== NOT EXECUTED
121a87: 66 c1 ea 08 shr $0x8,%dx <== NOT EXECUTED
121a8b: 88 51 02 mov %dl,0x2(%ecx) <== NOT EXECUTED
121a8e: 8b 55 cc mov -0x34(%ebp),%edx <== NOT EXECUTED
121a91: 88 42 03 mov %al,0x3(%edx) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
121a94: c6 45 d0 01 movb $0x1,-0x30(%ebp) <== NOT EXECUTED
rtems_rfs_inode_set_mode (&inode, imode);
rc = rtems_rfs_inode_close (fs, &inode);
121a98: 56 push %esi <== NOT EXECUTED
121a99: 56 push %esi <== NOT EXECUTED
121a9a: 8d 45 c0 lea -0x40(%ebp),%eax <== NOT EXECUTED
121a9d: 50 push %eax <== NOT EXECUTED
121a9e: 53 push %ebx <== NOT EXECUTED
121a9f: e8 a4 70 01 00 call 138b48 <rtems_rfs_inode_close> <== NOT EXECUTED
121aa4: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
121aa6: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
121aa9: 85 c0 test %eax,%eax <== NOT EXECUTED
121aab: 7e 13 jle 121ac0 <rtems_rfs_rtems_fchmod+0xe1><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
121aad: 89 d8 mov %ebx,%eax <== NOT EXECUTED
121aaf: e8 07 fe ff ff call 1218bb <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("fchmod: closing inode", rc);
121ab4: e8 5b c5 01 00 call 13e014 <__errno> <== NOT EXECUTED
121ab9: 89 30 mov %esi,(%eax) <== NOT EXECUTED
121abb: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
121abe: eb 09 jmp 121ac9 <rtems_rfs_rtems_fchmod+0xea><== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
121ac0: 89 d8 mov %ebx,%eax <== NOT EXECUTED
121ac2: e8 f4 fd ff ff call 1218bb <rtems_rfs_rtems_unlock><== NOT EXECUTED
121ac7: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
}
121ac9: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
121acc: 5b pop %ebx <== NOT EXECUTED
121acd: 5e pop %esi <== NOT EXECUTED
121ace: 5f pop %edi <== NOT EXECUTED
121acf: c9 leave <== NOT EXECUTED
121ad0: c3 ret <== NOT EXECUTED
0012189b <rtems_rfs_rtems_fcntl>:
*/
int
rtems_rfs_rtems_fcntl (int cmd,
rtems_libio_t* iop)
{
12189b: 55 push %ebp <== NOT EXECUTED
12189c: 89 e5 mov %esp,%ebp <== NOT EXECUTED
return 0;
}
12189e: 31 c0 xor %eax,%eax <== NOT EXECUTED
1218a0: c9 leave <== NOT EXECUTED
1218a1: c3 ret <== NOT EXECUTED
001220aa <rtems_rfs_rtems_fdatasync>:
* @param iop
* @return int
*/
int
rtems_rfs_rtems_fdatasync (rtems_libio_t* iop)
{
1220aa: 55 push %ebp <== NOT EXECUTED
1220ab: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1220ad: 53 push %ebx <== NOT EXECUTED
1220ae: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED
int rc;
rc = rtems_rfs_buffer_sync (rtems_rfs_rtems_pathloc_dev (&iop->pathinfo));
1220b1: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
1220b4: 8b 40 28 mov 0x28(%eax),%eax <== NOT EXECUTED
1220b7: ff 70 34 pushl 0x34(%eax) <== NOT EXECUTED
1220ba: e8 b7 38 01 00 call 135976 <rtems_rfs_buffer_sync> <== NOT EXECUTED
1220bf: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc)
1220c1: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1220c4: 31 c0 xor %eax,%eax <== NOT EXECUTED
1220c6: 85 db test %ebx,%ebx <== NOT EXECUTED
1220c8: 74 0a je 1220d4 <rtems_rfs_rtems_fdatasync+0x2a><== NOT EXECUTED
return rtems_rfs_rtems_error ("fdatasync: sync", rc);
1220ca: e8 45 bf 01 00 call 13e014 <__errno> <== NOT EXECUTED
1220cf: 89 18 mov %ebx,(%eax) <== NOT EXECUTED
1220d1: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
return 0;
}
1220d4: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
1220d7: c9 leave <== NOT EXECUTED
1220d8: c3 ret <== NOT EXECUTED
00139b17 <rtems_rfs_rtems_file_close>:
* @param iop
* @return int
*/
static int
rtems_rfs_rtems_file_close (rtems_libio_t* iop)
{
139b17: 55 push %ebp <== NOT EXECUTED
139b18: 89 e5 mov %esp,%ebp <== NOT EXECUTED
139b1a: 56 push %esi <== NOT EXECUTED
139b1b: 53 push %ebx <== NOT EXECUTED
rtems_rfs_file_handle* file = iop->file_info;
139b1c: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
139b1f: 8b 58 38 mov 0x38(%eax),%ebx <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_file_fs (file);
139b22: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
139b25: 8b b0 98 00 00 00 mov 0x98(%eax),%esi <== NOT EXECUTED
*/
static inline int
rtems_rfs_mutex_lock (rtems_rfs_mutex* mutex)
{
#if __rtems__
rtems_status_code sc = rtems_semaphore_obtain (*mutex, RTEMS_WAIT, 0);
139b2b: 50 push %eax <== NOT EXECUTED
139b2c: 6a 00 push $0x0 <== NOT EXECUTED
139b2e: 6a 00 push $0x0 <== NOT EXECUTED
139b30: 8b 46 7c mov 0x7c(%esi),%eax <== NOT EXECUTED
139b33: ff 30 pushl (%eax) <== NOT EXECUTED
139b35: e8 ce 70 fd ff call 110c08 <rtems_semaphore_obtain><== NOT EXECUTED
if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_FILE_CLOSE))
printf("rtems-rfs: file-close: handle:%p\n", file);
rtems_rfs_rtems_lock (fs);
rc = rtems_rfs_file_close (fs, file);
139b3a: 5a pop %edx <== NOT EXECUTED
139b3b: 59 pop %ecx <== NOT EXECUTED
139b3c: 53 push %ebx <== NOT EXECUTED
139b3d: 56 push %esi <== NOT EXECUTED
139b3e: e8 b0 d3 ff ff call 136ef3 <rtems_rfs_file_close> <== NOT EXECUTED
139b43: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc > 0)
139b45: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
139b48: 85 c0 test %eax,%eax <== NOT EXECUTED
139b4a: 7e 0a jle 139b56 <rtems_rfs_rtems_file_close+0x3f><== NOT EXECUTED
rc = rtems_rfs_rtems_error ("file-close: file close", rc);
139b4c: e8 c3 44 00 00 call 13e014 <__errno> <== NOT EXECUTED
139b51: 89 18 mov %ebx,(%eax) <== NOT EXECUTED
139b53: 83 cb ff or $0xffffffff,%ebx <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
139b56: 89 f0 mov %esi,%eax <== NOT EXECUTED
139b58: e8 9a ff ff ff call 139af7 <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rc;
}
139b5d: 89 d8 mov %ebx,%eax <== NOT EXECUTED
139b5f: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
139b62: 5b pop %ebx <== NOT EXECUTED
139b63: 5e pop %esi <== NOT EXECUTED
139b64: c9 leave <== NOT EXECUTED
139b65: c3 ret <== NOT EXECUTED
00139beb <rtems_rfs_rtems_file_ftruncate>:
* @return int
*/
int
rtems_rfs_rtems_file_ftruncate (rtems_libio_t* iop,
rtems_off64_t length)
{
139beb: 55 push %ebp <== NOT EXECUTED
139bec: 89 e5 mov %esp,%ebp <== NOT EXECUTED
139bee: 57 push %edi <== NOT EXECUTED
139bef: 56 push %esi <== NOT EXECUTED
139bf0: 53 push %ebx <== NOT EXECUTED
139bf1: 83 ec 20 sub $0x20,%esp <== NOT EXECUTED
139bf4: 8b 7d 08 mov 0x8(%ebp),%edi <== NOT EXECUTED
139bf7: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
139bfa: 8b 4d 10 mov 0x10(%ebp),%ecx <== NOT EXECUTED
rtems_rfs_file_handle* file = iop->file_info;
139bfd: 8b 77 38 mov 0x38(%edi),%esi <== NOT EXECUTED
139c00: 6a 00 push $0x0 <== NOT EXECUTED
139c02: 6a 00 push $0x0 <== NOT EXECUTED
139c04: 8b 46 1c mov 0x1c(%esi),%eax <== NOT EXECUTED
139c07: 8b 80 98 00 00 00 mov 0x98(%eax),%eax <== NOT EXECUTED
139c0d: 8b 40 7c mov 0x7c(%eax),%eax <== NOT EXECUTED
139c10: ff 30 pushl (%eax) <== NOT EXECUTED
139c12: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED
139c15: 89 4d e0 mov %ecx,-0x20(%ebp) <== NOT EXECUTED
139c18: e8 eb 6f fd ff call 110c08 <rtems_semaphore_obtain><== NOT EXECUTED
if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_FILE_FTRUNC))
printf("rtems-rfs: file-ftrunc: handle:%p length:%Ld\n", file, length);
rtems_rfs_rtems_lock (rtems_rfs_file_fs (file));
rc = rtems_rfs_file_set_size (file, length);
139c1d: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
139c20: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
139c23: 8b 4d e0 mov -0x20(%ebp),%ecx <== NOT EXECUTED
139c26: 51 push %ecx <== NOT EXECUTED
139c27: 52 push %edx <== NOT EXECUTED
139c28: 56 push %esi <== NOT EXECUTED
139c29: e8 f0 cd ff ff call 136a1e <rtems_rfs_file_set_size><== NOT EXECUTED
139c2e: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc)
139c30: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
139c33: 85 c0 test %eax,%eax <== NOT EXECUTED
139c35: 74 0a je 139c41 <rtems_rfs_rtems_file_ftruncate+0x56><== NOT EXECUTED
rc = rtems_rfs_rtems_error ("file_ftruncate: set size", rc);
139c37: e8 d8 43 00 00 call 13e014 <__errno> <== NOT EXECUTED
139c3c: 89 18 mov %ebx,(%eax) <== NOT EXECUTED
139c3e: 83 cb ff or $0xffffffff,%ebx <== NOT EXECUTED
iop->size = rtems_rfs_file_size (file);
139c41: 8b 46 1c mov 0x1c(%esi),%eax <== NOT EXECUTED
139c44: 51 push %ecx <== NOT EXECUTED
139c45: 51 push %ecx <== NOT EXECUTED
139c46: 8d 90 84 00 00 00 lea 0x84(%eax),%edx <== NOT EXECUTED
139c4c: 52 push %edx <== NOT EXECUTED
139c4d: ff b0 98 00 00 00 pushl 0x98(%eax) <== NOT EXECUTED
139c53: e8 42 b0 ff ff call 134c9a <rtems_rfs_block_get_size><== NOT EXECUTED
139c58: 89 47 04 mov %eax,0x4(%edi) <== NOT EXECUTED
139c5b: 89 57 08 mov %edx,0x8(%edi) <== NOT EXECUTED
rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));
139c5e: 8b 46 1c mov 0x1c(%esi),%eax <== NOT EXECUTED
139c61: 8b 80 98 00 00 00 mov 0x98(%eax),%eax <== NOT EXECUTED
139c67: e8 8b fe ff ff call 139af7 <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rc;
}
139c6c: 89 d8 mov %ebx,%eax <== NOT EXECUTED
139c6e: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
139c71: 5b pop %ebx <== NOT EXECUTED
139c72: 5e pop %esi <== NOT EXECUTED
139c73: 5f pop %edi <== NOT EXECUTED
139c74: c9 leave <== NOT EXECUTED
139c75: c3 ret <== NOT EXECUTED
00139af0 <rtems_rfs_rtems_file_ioctl>:
* @param buffer
*/
int
rtems_rfs_rtems_file_ioctl (rtems_libio_t* iop, uint32_t command, void* buffer)
{
139af0: 55 push %ebp <== NOT EXECUTED
139af1: 89 e5 mov %esp,%ebp <== NOT EXECUTED
return 0;
}
139af3: 31 c0 xor %eax,%eax <== NOT EXECUTED
139af5: c9 leave <== NOT EXECUTED
139af6: c3 ret <== NOT EXECUTED
00139c76 <rtems_rfs_rtems_file_lseek>:
*/
rtems_off64_t
rtems_rfs_rtems_file_lseek (rtems_libio_t* iop,
rtems_off64_t offset,
int whence)
{
139c76: 55 push %ebp <== NOT EXECUTED
139c77: 89 e5 mov %esp,%ebp <== NOT EXECUTED
139c79: 57 push %edi <== NOT EXECUTED
139c7a: 56 push %esi <== NOT EXECUTED
139c7b: 53 push %ebx <== NOT EXECUTED
139c7c: 83 ec 20 sub $0x20,%esp <== NOT EXECUTED
139c7f: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
rtems_rfs_file_handle* file = iop->file_info;
139c82: 8b 73 38 mov 0x38(%ebx),%esi <== NOT EXECUTED
139c85: 6a 00 push $0x0 <== NOT EXECUTED
139c87: 6a 00 push $0x0 <== NOT EXECUTED
139c89: 8b 46 1c mov 0x1c(%esi),%eax <== NOT EXECUTED
139c8c: 8b 80 98 00 00 00 mov 0x98(%eax),%eax <== NOT EXECUTED
139c92: 8b 40 7c mov 0x7c(%eax),%eax <== NOT EXECUTED
139c95: ff 30 pushl (%eax) <== NOT EXECUTED
139c97: e8 6c 6f fd ff call 110c08 <rtems_semaphore_obtain><== NOT EXECUTED
if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_FILE_LSEEK))
printf("rtems-rfs: file-lseek: handle:%p offset:%Ld\n", file, offset);
rtems_rfs_rtems_lock (rtems_rfs_file_fs (file));
pos = iop->offset;
139c9c: 8b 43 0c mov 0xc(%ebx),%eax <== NOT EXECUTED
139c9f: 8b 53 10 mov 0x10(%ebx),%edx <== NOT EXECUTED
139ca2: 89 45 e0 mov %eax,-0x20(%ebp) <== NOT EXECUTED
139ca5: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED
rc = rtems_rfs_file_seek (file, pos, &pos);
139ca8: 8d 4d e0 lea -0x20(%ebp),%ecx <== NOT EXECUTED
139cab: 51 push %ecx <== NOT EXECUTED
139cac: 52 push %edx <== NOT EXECUTED
139cad: 50 push %eax <== NOT EXECUTED
139cae: 56 push %esi <== NOT EXECUTED
139caf: e8 2a d0 ff ff call 136cde <rtems_rfs_file_seek> <== NOT EXECUTED
139cb4: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc)
139cb6: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
139cb9: 85 c0 test %eax,%eax <== NOT EXECUTED
139cbb: 8b 46 1c mov 0x1c(%esi),%eax <== NOT EXECUTED
139cbe: 74 19 je 139cd9 <rtems_rfs_rtems_file_lseek+0x63><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));
139cc0: 8b 80 98 00 00 00 mov 0x98(%eax),%eax <== NOT EXECUTED
139cc6: e8 2c fe ff ff call 139af7 <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("file_lseek: lseek", rc);
139ccb: e8 44 43 00 00 call 13e014 <__errno> <== NOT EXECUTED
139cd0: 89 38 mov %edi,(%eax) <== NOT EXECUTED
139cd2: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
139cd5: 89 c2 mov %eax,%edx <== NOT EXECUTED
139cd7: eb 11 jmp 139cea <rtems_rfs_rtems_file_lseek+0x74><== NOT EXECUTED
}
rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));
139cd9: 8b 80 98 00 00 00 mov 0x98(%eax),%eax <== NOT EXECUTED
139cdf: e8 13 fe ff ff call 139af7 <rtems_rfs_rtems_unlock><== NOT EXECUTED
return iop->offset;
139ce4: 8b 43 0c mov 0xc(%ebx),%eax <== NOT EXECUTED
139ce7: 8b 53 10 mov 0x10(%ebx),%edx <== NOT EXECUTED
}
139cea: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
139ced: 5b pop %ebx <== NOT EXECUTED
139cee: 5e pop %esi <== NOT EXECUTED
139cef: 5f pop %edi <== NOT EXECUTED
139cf0: c9 leave <== NOT EXECUTED
139cf1: c3 ret <== NOT EXECUTED
00139b66 <rtems_rfs_rtems_file_open>:
static int
rtems_rfs_rtems_file_open (rtems_libio_t* iop,
const char* pathname,
uint32_t flag,
uint32_t mode)
{
139b66: 55 push %ebp <== NOT EXECUTED
139b67: 89 e5 mov %esp,%ebp <== NOT EXECUTED
139b69: 57 push %edi <== NOT EXECUTED
139b6a: 56 push %esi <== NOT EXECUTED
139b6b: 53 push %ebx <== NOT EXECUTED
139b6c: 83 ec 20 sub $0x20,%esp <== NOT EXECUTED
139b6f: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (&iop->pathinfo);
139b72: 8b 46 28 mov 0x28(%esi),%eax <== NOT EXECUTED
139b75: 8b 58 34 mov 0x34(%eax),%ebx <== NOT EXECUTED
139b78: 6a 00 push $0x0 <== NOT EXECUTED
139b7a: 6a 00 push $0x0 <== NOT EXECUTED
139b7c: 8b 43 7c mov 0x7c(%ebx),%eax <== NOT EXECUTED
139b7f: ff 30 pushl (%eax) <== NOT EXECUTED
139b81: e8 82 70 fd ff call 110c08 <rtems_semaphore_obtain><== NOT EXECUTED
rtems_rfs_rtems_lock (fs);
ino = rtems_rfs_rtems_get_iop_ino (iop);
rc = rtems_rfs_file_open (fs, ino, flags, &file);
139b86: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
139b89: 50 push %eax <== NOT EXECUTED
139b8a: 6a 00 push $0x0 <== NOT EXECUTED
139b8c: ff 76 38 pushl 0x38(%esi) <== NOT EXECUTED
139b8f: 53 push %ebx <== NOT EXECUTED
139b90: e8 f1 d4 ff ff call 137086 <rtems_rfs_file_open> <== NOT EXECUTED
139b95: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc > 0)
139b97: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
139b9a: 85 c0 test %eax,%eax <== NOT EXECUTED
139b9c: 7e 13 jle 139bb1 <rtems_rfs_rtems_file_open+0x4b><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
139b9e: 89 d8 mov %ebx,%eax <== NOT EXECUTED
139ba0: e8 52 ff ff ff call 139af7 <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("file-open: open", rc);
139ba5: e8 6a 44 00 00 call 13e014 <__errno> <== NOT EXECUTED
139baa: 89 38 mov %edi,(%eax) <== NOT EXECUTED
139bac: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
139baf: eb 32 jmp 139be3 <rtems_rfs_rtems_file_open+0x7d><== NOT EXECUTED
}
if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_FILE_OPEN))
printf("rtems-rfs: file-open: handle:%p\n", file);
iop->size = rtems_rfs_file_size (file);
139bb1: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
139bb4: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED
139bb7: 52 push %edx <== NOT EXECUTED
139bb8: 52 push %edx <== NOT EXECUTED
139bb9: 8d 90 84 00 00 00 lea 0x84(%eax),%edx <== NOT EXECUTED
139bbf: 52 push %edx <== NOT EXECUTED
139bc0: ff b0 98 00 00 00 pushl 0x98(%eax) <== NOT EXECUTED
139bc6: e8 cf b0 ff ff call 134c9a <rtems_rfs_block_get_size><== NOT EXECUTED
139bcb: 89 46 04 mov %eax,0x4(%esi) <== NOT EXECUTED
139bce: 89 56 08 mov %edx,0x8(%esi) <== NOT EXECUTED
iop->file_info = file;
139bd1: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
139bd4: 89 46 38 mov %eax,0x38(%esi) <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
139bd7: 89 d8 mov %ebx,%eax <== NOT EXECUTED
139bd9: e8 19 ff ff ff call 139af7 <rtems_rfs_rtems_unlock><== NOT EXECUTED
139bde: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
139be0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
139be3: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
139be6: 5b pop %ebx <== NOT EXECUTED
139be7: 5e pop %esi <== NOT EXECUTED
139be8: 5f pop %edi <== NOT EXECUTED
139be9: c9 leave <== NOT EXECUTED
139bea: c3 ret <== NOT EXECUTED
00139e62 <rtems_rfs_rtems_file_read>:
*/
ssize_t
rtems_rfs_rtems_file_read (rtems_libio_t* iop,
void* buffer,
size_t count)
{
139e62: 55 push %ebp <== NOT EXECUTED
139e63: 89 e5 mov %esp,%ebp <== NOT EXECUTED
139e65: 57 push %edi <== NOT EXECUTED
139e66: 56 push %esi <== NOT EXECUTED
139e67: 53 push %ebx <== NOT EXECUTED
139e68: 83 ec 30 sub $0x30,%esp <== NOT EXECUTED
139e6b: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
rtems_rfs_file_handle* file = iop->file_info;
139e6e: 8b 5e 38 mov 0x38(%esi),%ebx <== NOT EXECUTED
139e71: 6a 00 push $0x0 <== NOT EXECUTED
139e73: 6a 00 push $0x0 <== NOT EXECUTED
139e75: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
139e78: 8b 80 98 00 00 00 mov 0x98(%eax),%eax <== NOT EXECUTED
139e7e: 8b 40 7c mov 0x7c(%eax),%eax <== NOT EXECUTED
139e81: ff 30 pushl (%eax) <== NOT EXECUTED
139e83: e8 80 6d fd ff call 110c08 <rtems_semaphore_obtain><== NOT EXECUTED
if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_FILE_READ))
printf("rtems-rfs: file-read: handle:%p count:%zd\n", file, count);
rtems_rfs_rtems_lock (rtems_rfs_file_fs (file));
pos = iop->offset;
139e88: 8b 7e 0c mov 0xc(%esi),%edi <== NOT EXECUTED
139e8b: 8b 76 10 mov 0x10(%esi),%esi <== NOT EXECUTED
if (pos < rtems_rfs_file_size (file))
139e8e: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
139e91: 5a pop %edx <== NOT EXECUTED
139e92: 59 pop %ecx <== NOT EXECUTED
139e93: 8d 90 84 00 00 00 lea 0x84(%eax),%edx <== NOT EXECUTED
139e99: 52 push %edx <== NOT EXECUTED
139e9a: ff b0 98 00 00 00 pushl 0x98(%eax) <== NOT EXECUTED
139ea0: e8 f5 ad ff ff call 134c9a <rtems_rfs_block_get_size><== NOT EXECUTED
139ea5: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
139ea8: 39 d6 cmp %edx,%esi <== NOT EXECUTED
139eaa: 0f 82 85 00 00 00 jb 139f35 <rtems_rfs_rtems_file_read+0xd3><== NOT EXECUTED
139eb0: 77 04 ja 139eb6 <rtems_rfs_rtems_file_read+0x54><== NOT EXECUTED
139eb2: 39 c7 cmp %eax,%edi <== NOT EXECUTED
139eb4: 72 7f jb 139f35 <rtems_rfs_rtems_file_read+0xd3><== NOT EXECUTED
139eb6: c7 45 d4 00 00 00 00 movl $0x0,-0x2c(%ebp) <== NOT EXECUTED
139ebd: e9 8a 00 00 00 jmp 139f4c <rtems_rfs_rtems_file_read+0xea><== NOT EXECUTED
{
while (count)
{
size_t size;
rc = rtems_rfs_file_io_start (file, &size, true);
139ec2: 56 push %esi <== NOT EXECUTED
139ec3: 6a 01 push $0x1 <== NOT EXECUTED
139ec5: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
139ec8: 50 push %eax <== NOT EXECUTED
139ec9: 53 push %ebx <== NOT EXECUTED
139eca: e8 15 ca ff ff call 1368e4 <rtems_rfs_file_io_start><== NOT EXECUTED
139ecf: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
139ed1: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
139ed4: 85 c0 test %eax,%eax <== NOT EXECUTED
139ed6: 7e 09 jle 139ee1 <rtems_rfs_rtems_file_read+0x7f><== NOT EXECUTED
{
read = rtems_rfs_rtems_error ("file-read: read: io-start", rc);
139ed8: e8 37 41 00 00 call 13e014 <__errno> <== NOT EXECUTED
139edd: 89 30 mov %esi,(%eax) <== NOT EXECUTED
139edf: eb 4b jmp 139f2c <rtems_rfs_rtems_file_read+0xca><== NOT EXECUTED
break;
}
if (size == 0)
139ee1: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
139ee4: 85 c0 test %eax,%eax <== NOT EXECUTED
139ee6: 74 64 je 139f4c <rtems_rfs_rtems_file_read+0xea><== NOT EXECUTED
break;
if (size > count)
139ee8: 3b 45 10 cmp 0x10(%ebp),%eax <== NOT EXECUTED
139eeb: 76 06 jbe 139ef3 <rtems_rfs_rtems_file_read+0x91><== NOT EXECUTED
size = count;
139eed: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
139ef0: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
memcpy (data, rtems_rfs_file_data (file), size);
139ef3: 8b 43 0c mov 0xc(%ebx),%eax <== NOT EXECUTED
139ef6: 8b 70 20 mov 0x20(%eax),%esi <== NOT EXECUTED
139ef9: 03 73 14 add 0x14(%ebx),%esi <== NOT EXECUTED
139efc: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED
139eff: 8b 7d d0 mov -0x30(%ebp),%edi <== NOT EXECUTED
139f02: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
data += size;
139f04: 8b 75 e4 mov -0x1c(%ebp),%esi <== NOT EXECUTED
count -= size;
read += size;
rc = rtems_rfs_file_io_end (file, size, true);
139f07: 51 push %ecx <== NOT EXECUTED
139f08: 6a 01 push $0x1 <== NOT EXECUTED
139f0a: 56 push %esi <== NOT EXECUTED
139f0b: 53 push %ebx <== NOT EXECUTED
139f0c: e8 82 ce ff ff call 136d93 <rtems_rfs_file_io_end> <== NOT EXECUTED
139f11: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc > 0)
139f13: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
139f16: 85 c0 test %eax,%eax <== NOT EXECUTED
139f18: 7f 0b jg 139f25 <rtems_rfs_rtems_file_read+0xc3><== NOT EXECUTED
if (size > count)
size = count;
memcpy (data, rtems_rfs_file_data (file), size);
data += size;
139f1a: 01 75 d0 add %esi,-0x30(%ebp) <== NOT EXECUTED
count -= size;
139f1d: 29 75 10 sub %esi,0x10(%ebp) <== NOT EXECUTED
read += size;
139f20: 01 75 d4 add %esi,-0x2c(%ebp) <== NOT EXECUTED
139f23: eb 1d jmp 139f42 <rtems_rfs_rtems_file_read+0xe0><== NOT EXECUTED
rc = rtems_rfs_file_io_end (file, size, true);
if (rc > 0)
{
read = rtems_rfs_rtems_error ("file-read: read: io-end", rc);
139f25: e8 ea 40 00 00 call 13e014 <__errno> <== NOT EXECUTED
139f2a: 89 38 mov %edi,(%eax) <== NOT EXECUTED
139f2c: c7 45 d4 ff ff ff ff movl $0xffffffff,-0x2c(%ebp) <== NOT EXECUTED
139f33: eb 17 jmp 139f4c <rtems_rfs_rtems_file_read+0xea><== NOT EXECUTED
void* buffer,
size_t count)
{
rtems_rfs_file_handle* file = iop->file_info;
rtems_rfs_pos pos;
uint8_t* data = buffer;
139f35: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
139f38: 89 45 d0 mov %eax,-0x30(%ebp) <== NOT EXECUTED
139f3b: c7 45 d4 00 00 00 00 movl $0x0,-0x2c(%ebp) <== NOT EXECUTED
pos = iop->offset;
if (pos < rtems_rfs_file_size (file))
{
while (count)
139f42: 83 7d 10 00 cmpl $0x0,0x10(%ebp) <== NOT EXECUTED
139f46: 0f 85 76 ff ff ff jne 139ec2 <rtems_rfs_rtems_file_read+0x60><== NOT EXECUTED
break;
}
}
}
rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));
139f4c: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
139f4f: 8b 80 98 00 00 00 mov 0x98(%eax),%eax <== NOT EXECUTED
139f55: e8 9d fb ff ff call 139af7 <rtems_rfs_rtems_unlock><== NOT EXECUTED
return read;
}
139f5a: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED
139f5d: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
139f60: 5b pop %ebx <== NOT EXECUTED
139f61: 5e pop %esi <== NOT EXECUTED
139f62: 5f pop %edi <== NOT EXECUTED
139f63: c9 leave <== NOT EXECUTED
139f64: c3 ret <== NOT EXECUTED
00139cf2 <rtems_rfs_rtems_file_write>:
*/
ssize_t
rtems_rfs_rtems_file_write (rtems_libio_t* iop,
const void* buffer,
size_t count)
{
139cf2: 55 push %ebp <== NOT EXECUTED
139cf3: 89 e5 mov %esp,%ebp <== NOT EXECUTED
139cf5: 57 push %edi <== NOT EXECUTED
139cf6: 56 push %esi <== NOT EXECUTED
139cf7: 53 push %ebx <== NOT EXECUTED
139cf8: 83 ec 30 sub $0x30,%esp <== NOT EXECUTED
rtems_rfs_file_handle* file = iop->file_info;
139cfb: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
139cfe: 8b 58 38 mov 0x38(%eax),%ebx <== NOT EXECUTED
139d01: 6a 00 push $0x0 <== NOT EXECUTED
139d03: 6a 00 push $0x0 <== NOT EXECUTED
139d05: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
139d08: 8b 80 98 00 00 00 mov 0x98(%eax),%eax <== NOT EXECUTED
139d0e: 8b 40 7c mov 0x7c(%eax),%eax <== NOT EXECUTED
139d11: ff 30 pushl (%eax) <== NOT EXECUTED
139d13: e8 f0 6e fd ff call 110c08 <rtems_semaphore_obtain><== NOT EXECUTED
if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_FILE_WRITE))
printf("rtems-rfs: file-write: handle:%p count:%zd\n", file, count);
rtems_rfs_rtems_lock (rtems_rfs_file_fs (file));
pos = iop->offset;
139d18: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
139d1b: 8b 71 0c mov 0xc(%ecx),%esi <== NOT EXECUTED
139d1e: 8b 79 10 mov 0x10(%ecx),%edi <== NOT EXECUTED
* size of file we are still past the end of the file as positions number
* from 0. For a specific position we need a file that has a length of one
* more.
*/
if (pos >= rtems_rfs_file_size (file))
139d21: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
139d24: 59 pop %ecx <== NOT EXECUTED
139d25: 5a pop %edx <== NOT EXECUTED
139d26: 8d 90 84 00 00 00 lea 0x84(%eax),%edx <== NOT EXECUTED
139d2c: 52 push %edx <== NOT EXECUTED
139d2d: ff b0 98 00 00 00 pushl 0x98(%eax) <== NOT EXECUTED
139d33: e8 62 af ff ff call 134c9a <rtems_rfs_block_get_size><== NOT EXECUTED
139d38: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
139d3b: 39 d7 cmp %edx,%edi <== NOT EXECUTED
139d3d: 72 49 jb 139d88 <rtems_rfs_rtems_file_write+0x96><== NOT EXECUTED
139d3f: 77 04 ja 139d45 <rtems_rfs_rtems_file_write+0x53><== NOT EXECUTED
139d41: 39 c6 cmp %eax,%esi <== NOT EXECUTED
139d43: 72 43 jb 139d88 <rtems_rfs_rtems_file_write+0x96><== NOT EXECUTED
{
rc = rtems_rfs_file_set_size (file, pos + 1);
139d45: 52 push %edx <== NOT EXECUTED
139d46: 89 f0 mov %esi,%eax <== NOT EXECUTED
139d48: 89 fa mov %edi,%edx <== NOT EXECUTED
139d4a: 83 c0 01 add $0x1,%eax <== NOT EXECUTED
139d4d: 83 d2 00 adc $0x0,%edx <== NOT EXECUTED
139d50: 52 push %edx <== NOT EXECUTED
139d51: 50 push %eax <== NOT EXECUTED
139d52: 53 push %ebx <== NOT EXECUTED
139d53: e8 c6 cc ff ff call 136a1e <rtems_rfs_file_set_size><== NOT EXECUTED
139d58: 89 c2 mov %eax,%edx <== NOT EXECUTED
if (rc)
139d5a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
139d5d: 85 c0 test %eax,%eax <== NOT EXECUTED
139d5f: 74 27 je 139d88 <rtems_rfs_rtems_file_write+0x96><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));
139d61: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
139d64: 8b 80 98 00 00 00 mov 0x98(%eax),%eax <== NOT EXECUTED
139d6a: 89 55 cc mov %edx,-0x34(%ebp) <== NOT EXECUTED
139d6d: e8 85 fd ff ff call 139af7 <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("file-write: write extend", rc);
139d72: e8 9d 42 00 00 call 13e014 <__errno> <== NOT EXECUTED
139d77: 8b 55 cc mov -0x34(%ebp),%edx <== NOT EXECUTED
139d7a: 89 10 mov %edx,(%eax) <== NOT EXECUTED
139d7c: c7 45 d4 ff ff ff ff movl $0xffffffff,-0x2c(%ebp) <== NOT EXECUTED
139d83: e9 cf 00 00 00 jmp 139e57 <rtems_rfs_rtems_file_write+0x165><== NOT EXECUTED
const void* buffer,
size_t count)
{
rtems_rfs_file_handle* file = iop->file_info;
rtems_rfs_pos pos;
const uint8_t* data = buffer;
139d88: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
139d8b: 89 45 d0 mov %eax,-0x30(%ebp) <== NOT EXECUTED
rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));
return rtems_rfs_rtems_error ("file-write: write extend", rc);
}
}
rtems_rfs_file_set_bpos (file, pos);
139d8e: 8d 43 10 lea 0x10(%ebx),%eax <== NOT EXECUTED
139d91: 50 push %eax <== NOT EXECUTED
139d92: 57 push %edi <== NOT EXECUTED
139d93: 56 push %esi <== NOT EXECUTED
139d94: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
139d97: ff b0 98 00 00 00 pushl 0x98(%eax) <== NOT EXECUTED
139d9d: e8 42 ae ff ff call 134be4 <rtems_rfs_block_get_bpos><== NOT EXECUTED
139da2: c7 45 d4 00 00 00 00 movl $0x0,-0x2c(%ebp) <== NOT EXECUTED
while (count)
139da9: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
139dac: eb 72 jmp 139e20 <rtems_rfs_rtems_file_write+0x12e><== NOT EXECUTED
{
size_t size = count;
139dae: 8b 4d 10 mov 0x10(%ebp),%ecx <== NOT EXECUTED
139db1: 89 4d e4 mov %ecx,-0x1c(%ebp) <== NOT EXECUTED
rc = rtems_rfs_file_io_start (file, &size, false);
139db4: 50 push %eax <== NOT EXECUTED
139db5: 6a 00 push $0x0 <== NOT EXECUTED
139db7: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
139dba: 50 push %eax <== NOT EXECUTED
139dbb: 53 push %ebx <== NOT EXECUTED
139dbc: e8 23 cb ff ff call 1368e4 <rtems_rfs_file_io_start><== NOT EXECUTED
139dc1: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc)
139dc3: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
139dc6: 85 c0 test %eax,%eax <== NOT EXECUTED
139dc8: 74 09 je 139dd3 <rtems_rfs_rtems_file_write+0xe1><== NOT EXECUTED
{
write = rtems_rfs_rtems_error ("file-write: write open", rc);
139dca: e8 45 42 00 00 call 13e014 <__errno> <== NOT EXECUTED
139dcf: 89 30 mov %esi,(%eax) <== NOT EXECUTED
139dd1: eb 3b jmp 139e0e <rtems_rfs_rtems_file_write+0x11c><== NOT EXECUTED
break;
}
if (size > count)
139dd3: 8b 4d 10 mov 0x10(%ebp),%ecx <== NOT EXECUTED
139dd6: 39 4d e4 cmp %ecx,-0x1c(%ebp) <== NOT EXECUTED
139dd9: 76 03 jbe 139dde <rtems_rfs_rtems_file_write+0xec><== NOT EXECUTED
size = count;
139ddb: 89 4d e4 mov %ecx,-0x1c(%ebp) <== NOT EXECUTED
memcpy (rtems_rfs_file_data (file), data, size);
139dde: 8b 43 0c mov 0xc(%ebx),%eax <== NOT EXECUTED
139de1: 8b 40 20 mov 0x20(%eax),%eax <== NOT EXECUTED
139de4: 03 43 14 add 0x14(%ebx),%eax <== NOT EXECUTED
139de7: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED
139dea: 89 c7 mov %eax,%edi <== NOT EXECUTED
139dec: 8b 75 d0 mov -0x30(%ebp),%esi <== NOT EXECUTED
139def: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
data += size;
139df1: 8b 75 e4 mov -0x1c(%ebp),%esi <== NOT EXECUTED
count -= size;
write += size;
rc = rtems_rfs_file_io_end (file, size, false);
139df4: 57 push %edi <== NOT EXECUTED
139df5: 6a 00 push $0x0 <== NOT EXECUTED
139df7: 56 push %esi <== NOT EXECUTED
139df8: 53 push %ebx <== NOT EXECUTED
139df9: e8 95 cf ff ff call 136d93 <rtems_rfs_file_io_end> <== NOT EXECUTED
139dfe: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc)
139e00: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
139e03: 85 c0 test %eax,%eax <== NOT EXECUTED
139e05: 74 10 je 139e17 <rtems_rfs_rtems_file_write+0x125><== NOT EXECUTED
{
write = rtems_rfs_rtems_error ("file-write: write close", rc);
139e07: e8 08 42 00 00 call 13e014 <__errno> <== NOT EXECUTED
139e0c: 89 38 mov %edi,(%eax) <== NOT EXECUTED
139e0e: c7 45 d4 ff ff ff ff movl $0xffffffff,-0x2c(%ebp) <== NOT EXECUTED
139e15: eb 0f jmp 139e26 <rtems_rfs_rtems_file_write+0x134><== NOT EXECUTED
if (size > count)
size = count;
memcpy (rtems_rfs_file_data (file), data, size);
data += size;
139e17: 01 75 d0 add %esi,-0x30(%ebp) <== NOT EXECUTED
count -= size;
139e1a: 29 75 10 sub %esi,0x10(%ebp) <== NOT EXECUTED
write += size;
139e1d: 01 75 d4 add %esi,-0x2c(%ebp) <== NOT EXECUTED
}
}
rtems_rfs_file_set_bpos (file, pos);
while (count)
139e20: 83 7d 10 00 cmpl $0x0,0x10(%ebp) <== NOT EXECUTED
139e24: 75 88 jne 139dae <rtems_rfs_rtems_file_write+0xbc><== NOT EXECUTED
write = rtems_rfs_rtems_error ("file-write: write close", rc);
break;
}
}
iop->size = rtems_rfs_file_size (file);
139e26: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
139e29: 56 push %esi <== NOT EXECUTED
139e2a: 56 push %esi <== NOT EXECUTED
139e2b: 8d 90 84 00 00 00 lea 0x84(%eax),%edx <== NOT EXECUTED
139e31: 52 push %edx <== NOT EXECUTED
139e32: ff b0 98 00 00 00 pushl 0x98(%eax) <== NOT EXECUTED
139e38: e8 5d ae ff ff call 134c9a <rtems_rfs_block_get_size><== NOT EXECUTED
139e3d: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
139e40: 89 41 04 mov %eax,0x4(%ecx) <== NOT EXECUTED
139e43: 89 51 08 mov %edx,0x8(%ecx) <== NOT EXECUTED
rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));
139e46: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
139e49: 8b 80 98 00 00 00 mov 0x98(%eax),%eax <== NOT EXECUTED
139e4f: e8 a3 fc ff ff call 139af7 <rtems_rfs_rtems_unlock><== NOT EXECUTED
return write;
139e54: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
139e57: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED
139e5a: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
139e5d: 5b pop %ebx <== NOT EXECUTED
139e5e: 5e pop %esi <== NOT EXECUTED
139e5f: 5f pop %edi <== NOT EXECUTED
139e60: c9 leave <== NOT EXECUTED
139e61: c3 ret <== NOT EXECUTED
00121894 <rtems_rfs_rtems_freenodinfo>:
* @retval 0 Always returned.
*/
int
rtems_rfs_rtems_freenodinfo (rtems_filesystem_location_info_t* pathloc)
{
121894: 55 push %ebp <== NOT EXECUTED
121895: 89 e5 mov %esp,%ebp <== NOT EXECUTED
return 0;
}
121897: 31 c0 xor %eax,%eax <== NOT EXECUTED
121899: c9 leave <== NOT EXECUTED
12189a: c3 ret <== NOT EXECUTED
00122c74 <rtems_rfs_rtems_imode>:
return true;
}
uint16_t
rtems_rfs_rtems_imode (mode_t mode)
{
122c74: 55 push %ebp <== NOT EXECUTED
122c75: 89 e5 mov %esp,%ebp <== NOT EXECUTED
/*
* Mapping matches RTEMS so no need to change.
*/
return mode;
}
122c77: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
122c7a: c9 leave <== NOT EXECUTED
122c7b: c3 ret <== NOT EXECUTED
00121ca8 <rtems_rfs_rtems_initialise>:
*/
int
rtems_rfs_rtems_initialise (rtems_filesystem_mount_table_entry_t* mt_entry,
const void* data)
{
121ca8: 55 push %ebp <== NOT EXECUTED
121ca9: 89 e5 mov %esp,%ebp <== NOT EXECUTED
121cab: 57 push %edi <== NOT EXECUTED
121cac: 56 push %esi <== NOT EXECUTED
121cad: 53 push %ebx <== NOT EXECUTED
121cae: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED
121cb1: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
rtems_rfs_rtems_private* rtems;
rtems_rfs_file_system* fs;
uint32_t flags = 0;
uint32_t max_held_buffers = RTEMS_RFS_FS_MAX_HELD_BUFFERS;
const char* options = data;
121cb4: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
121cb7: c7 45 d4 05 00 00 00 movl $0x5,-0x2c(%ebp) <== NOT EXECUTED
121cbe: 31 ff xor %edi,%edi <== NOT EXECUTED
int rc;
/*
* Parse the options the user specifiies.
*/
while (options)
121cc0: e9 95 00 00 00 jmp 121d5a <rtems_rfs_rtems_initialise+0xb2><== NOT EXECUTED
{
printf ("options=%s\n", options);
121cc5: 52 push %edx <== NOT EXECUTED
121cc6: 52 push %edx <== NOT EXECUTED
121cc7: 53 push %ebx <== NOT EXECUTED
121cc8: 68 6d 9f 15 00 push $0x159f6d <== NOT EXECUTED
121ccd: e8 62 02 02 00 call 141f34 <printf> <== NOT EXECUTED
if (strncmp (options, "hold-bitmaps",
121cd2: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
121cd5: 6a 0c push $0xc <== NOT EXECUTED
121cd7: 68 79 9f 15 00 push $0x159f79 <== NOT EXECUTED
121cdc: 53 push %ebx <== NOT EXECUTED
121cdd: e8 42 20 02 00 call 143d24 <strncmp> <== NOT EXECUTED
121ce2: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
121ce5: 85 c0 test %eax,%eax <== NOT EXECUTED
121ce7: 75 05 jne 121cee <rtems_rfs_rtems_initialise+0x46><== NOT EXECUTED
sizeof ("hold-bitmaps") - 1) == 0)
flags |= RTEMS_RFS_FS_BITMAPS_HOLD;
121ce9: 83 cf 01 or $0x1,%edi <== NOT EXECUTED
121cec: eb 52 jmp 121d40 <rtems_rfs_rtems_initialise+0x98><== NOT EXECUTED
else if (strncmp (options, "no-local-cache",
121cee: 50 push %eax <== NOT EXECUTED
121cef: 6a 0e push $0xe <== NOT EXECUTED
121cf1: 68 86 9f 15 00 push $0x159f86 <== NOT EXECUTED
121cf6: 53 push %ebx <== NOT EXECUTED
121cf7: e8 28 20 02 00 call 143d24 <strncmp> <== NOT EXECUTED
121cfc: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
121cff: 85 c0 test %eax,%eax <== NOT EXECUTED
121d01: 75 05 jne 121d08 <rtems_rfs_rtems_initialise+0x60><== NOT EXECUTED
sizeof ("no-local-cache") - 1) == 0)
flags |= RTEMS_RFS_FS_NO_LOCAL_CACHE;
121d03: 83 cf 02 or $0x2,%edi <== NOT EXECUTED
121d06: eb 38 jmp 121d40 <rtems_rfs_rtems_initialise+0x98><== NOT EXECUTED
else if (strncmp (options, "max-held-bufs",
121d08: 51 push %ecx <== NOT EXECUTED
121d09: 6a 0d push $0xd <== NOT EXECUTED
121d0b: 68 95 9f 15 00 push $0x159f95 <== NOT EXECUTED
121d10: 53 push %ebx <== NOT EXECUTED
121d11: e8 0e 20 02 00 call 143d24 <strncmp> <== NOT EXECUTED
121d16: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
121d19: 85 c0 test %eax,%eax <== NOT EXECUTED
121d1b: 75 16 jne 121d33 <rtems_rfs_rtems_initialise+0x8b><== NOT EXECUTED
sizeof ("max-held-bufs") - 1) == 0)
{
max_held_buffers = strtoul (options + sizeof ("max-held-bufs"), 0, 0);
121d1d: 52 push %edx <== NOT EXECUTED
121d1e: 6a 00 push $0x0 <== NOT EXECUTED
121d20: 6a 00 push $0x0 <== NOT EXECUTED
121d22: 8d 43 0e lea 0xe(%ebx),%eax <== NOT EXECUTED
121d25: 50 push %eax <== NOT EXECUTED
121d26: e8 d9 36 02 00 call 145404 <strtoul> <== NOT EXECUTED
121d2b: 89 45 d4 mov %eax,-0x2c(%ebp) <== NOT EXECUTED
121d2e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
121d31: eb 0d jmp 121d40 <rtems_rfs_rtems_initialise+0x98><== NOT EXECUTED
}
else
return rtems_rfs_rtems_error ("initialise: invalid option", EINVAL);
121d33: e8 dc c2 01 00 call 13e014 <__errno> <== NOT EXECUTED
121d38: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
121d3e: eb 40 jmp 121d80 <rtems_rfs_rtems_initialise+0xd8><== NOT EXECUTED
options = strchr (options, ',');
121d40: 50 push %eax <== NOT EXECUTED
121d41: 50 push %eax <== NOT EXECUTED
121d42: 6a 2c push $0x2c <== NOT EXECUTED
121d44: 53 push %ebx <== NOT EXECUTED
121d45: e8 76 1a 02 00 call 1437c0 <strchr> <== NOT EXECUTED
121d4a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
if (options)
121d4d: 85 c0 test %eax,%eax <== NOT EXECUTED
121d4f: 74 11 je 121d62 <rtems_rfs_rtems_initialise+0xba><== NOT EXECUTED
{
++options;
121d51: 8d 58 01 lea 0x1(%eax),%ebx <== NOT EXECUTED
if (*options == '\0')
121d54: 80 78 01 00 cmpb $0x0,0x1(%eax) <== NOT EXECUTED
121d58: 74 08 je 121d62 <rtems_rfs_rtems_initialise+0xba><== NOT EXECUTED
int rc;
/*
* Parse the options the user specifiies.
*/
while (options)
121d5a: 85 db test %ebx,%ebx <== NOT EXECUTED
121d5c: 0f 85 63 ff ff ff jne 121cc5 <rtems_rfs_rtems_initialise+0x1d><== NOT EXECUTED
if (*options == '\0')
options = NULL;
}
}
rtems = malloc (sizeof (rtems_rfs_rtems_private));
121d62: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
121d65: 6a 04 push $0x4 <== NOT EXECUTED
121d67: e8 7c b6 fe ff call 10d3e8 <malloc> <== NOT EXECUTED
121d6c: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (!rtems)
121d6e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
121d71: 85 c0 test %eax,%eax <== NOT EXECUTED
121d73: 75 13 jne 121d88 <rtems_rfs_rtems_initialise+0xe0><== NOT EXECUTED
return rtems_rfs_rtems_error ("initialise: local data", ENOMEM);
121d75: e8 9a c2 01 00 call 13e014 <__errno> <== NOT EXECUTED
121d7a: c7 00 0c 00 00 00 movl $0xc,(%eax) <== NOT EXECUTED
121d80: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
121d83: e9 99 00 00 00 jmp 121e21 <rtems_rfs_rtems_initialise+0x179><== NOT EXECUTED
memset (rtems, 0, sizeof (rtems_rfs_rtems_private));
121d88: c7 00 00 00 00 00 movl $0x0,(%eax) <== NOT EXECUTED
rc = rtems_rfs_mutex_create (&rtems->access);
121d8e: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
121d91: 50 push %eax <== NOT EXECUTED
121d92: e8 ec 77 01 00 call 139583 <rtems_rfs_mutex_create><== NOT EXECUTED
if (rc > 0)
121d97: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
121d9a: 85 c0 test %eax,%eax <== NOT EXECUTED
121d9c: 7e 18 jle 121db6 <rtems_rfs_rtems_initialise+0x10e><== NOT EXECUTED
{
free (rtems);
121d9e: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
121da1: 53 push %ebx <== NOT EXECUTED
121da2: 89 45 d0 mov %eax,-0x30(%ebp) <== NOT EXECUTED
121da5: e8 f2 b0 fe ff call 10ce9c <free> <== NOT EXECUTED
return rtems_rfs_rtems_error ("initialise: cannot create mutex", rc);
121daa: e8 65 c2 01 00 call 13e014 <__errno> <== NOT EXECUTED
121daf: 8b 55 d0 mov -0x30(%ebp),%edx <== NOT EXECUTED
121db2: 89 10 mov %edx,(%eax) <== NOT EXECUTED
121db4: eb 41 jmp 121df7 <rtems_rfs_rtems_initialise+0x14f><== NOT EXECUTED
*/
static inline int
rtems_rfs_mutex_lock (rtems_rfs_mutex* mutex)
{
#if __rtems__
rtems_status_code sc = rtems_semaphore_obtain (*mutex, RTEMS_WAIT, 0);
121db6: 51 push %ecx <== NOT EXECUTED
121db7: 6a 00 push $0x0 <== NOT EXECUTED
121db9: 6a 00 push $0x0 <== NOT EXECUTED
121dbb: ff 33 pushl (%ebx) <== NOT EXECUTED
121dbd: e8 46 ee fe ff call 110c08 <rtems_semaphore_obtain><== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
121dc2: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
121dc5: 85 c0 test %eax,%eax <== NOT EXECUTED
121dc7: 74 60 je 121e29 <rtems_rfs_rtems_initialise+0x181><== NOT EXECUTED
}
rc = rtems_rfs_mutex_lock (&rtems->access);
if (rc > 0)
{
rtems_rfs_mutex_destroy (&rtems->access);
121dc9: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
121dcc: 53 push %ebx <== NOT EXECUTED
121dcd: e8 92 77 01 00 call 139564 <rtems_rfs_mutex_destroy><== NOT EXECUTED
free (rtems);
121dd2: 89 1c 24 mov %ebx,(%esp) <== NOT EXECUTED
121dd5: e8 c2 b0 fe ff call 10ce9c <free> <== NOT EXECUTED
return rtems_rfs_rtems_error ("initialise: cannot lock access mutex", rc);
121dda: e8 35 c2 01 00 call 13e014 <__errno> <== NOT EXECUTED
121ddf: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
121de5: eb 10 jmp 121df7 <rtems_rfs_rtems_initialise+0x14f><== NOT EXECUTED
}
rc = rtems_rfs_fs_open (mt_entry->dev, rtems, flags, max_held_buffers, &fs);
if (rc)
{
free (rtems);
121de7: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
121dea: 53 push %ebx <== NOT EXECUTED
121deb: e8 ac b0 fe ff call 10ce9c <free> <== NOT EXECUTED
return rtems_rfs_rtems_error ("initialise: open", rc);
121df0: e8 1f c2 01 00 call 13e014 <__errno> <== NOT EXECUTED
121df5: 89 38 mov %edi,(%eax) <== NOT EXECUTED
121df7: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
121dfa: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
121dfd: eb 22 jmp 121e21 <rtems_rfs_rtems_initialise+0x179><== NOT EXECUTED
}
mt_entry->fs_info = fs;
121dff: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
121e02: 89 46 34 mov %eax,0x34(%esi) <== NOT EXECUTED
mt_entry->mt_fs_root.node_access = (void*) RTEMS_RFS_ROOT_INO;
121e05: c7 46 1c 01 00 00 00 movl $0x1,0x1c(%esi) <== NOT EXECUTED
mt_entry->mt_fs_root.handlers = &rtems_rfs_rtems_dir_handlers;
121e0c: c7 46 24 24 eb 15 00 movl $0x15eb24,0x24(%esi) <== NOT EXECUTED
mt_entry->mt_fs_root.ops = &rtems_rfs_ops;
121e13: c7 46 28 dc 9f 15 00 movl $0x159fdc,0x28(%esi) <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
121e1a: e8 9c fa ff ff call 1218bb <rtems_rfs_rtems_unlock><== NOT EXECUTED
121e1f: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
}
121e21: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
121e24: 5b pop %ebx <== NOT EXECUTED
121e25: 5e pop %esi <== NOT EXECUTED
121e26: 5f pop %edi <== NOT EXECUTED
121e27: c9 leave <== NOT EXECUTED
121e28: c3 ret <== NOT EXECUTED
rtems_rfs_mutex_destroy (&rtems->access);
free (rtems);
return rtems_rfs_rtems_error ("initialise: cannot lock access mutex", rc);
}
rc = rtems_rfs_fs_open (mt_entry->dev, rtems, flags, max_held_buffers, &fs);
121e29: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
121e2c: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
121e2f: 50 push %eax <== NOT EXECUTED
121e30: ff 75 d4 pushl -0x2c(%ebp) <== NOT EXECUTED
121e33: 57 push %edi <== NOT EXECUTED
121e34: 53 push %ebx <== NOT EXECUTED
121e35: ff 76 70 pushl 0x70(%esi) <== NOT EXECUTED
121e38: e8 00 55 01 00 call 13733d <rtems_rfs_fs_open> <== NOT EXECUTED
121e3d: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc)
121e3f: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
121e42: 85 c0 test %eax,%eax <== NOT EXECUTED
121e44: 75 a1 jne 121de7 <rtems_rfs_rtems_initialise+0x13f><== NOT EXECUTED
121e46: eb b7 jmp 121dff <rtems_rfs_rtems_initialise+0x157><== NOT EXECUTED
00121ec9 <rtems_rfs_rtems_link>:
*/
int
rtems_rfs_rtems_link (rtems_filesystem_location_info_t* to_loc,
rtems_filesystem_location_info_t* parent_loc,
const char* name)
{
121ec9: 55 push %ebp <== NOT EXECUTED
121eca: 89 e5 mov %esp,%ebp <== NOT EXECUTED
121ecc: 57 push %edi <== NOT EXECUTED
121ecd: 56 push %esi <== NOT EXECUTED
121ece: 53 push %ebx <== NOT EXECUTED
121ecf: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
121ed2: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (to_loc);
121ed5: 8b 50 10 mov 0x10(%eax),%edx <== NOT EXECUTED
121ed8: 8b 5a 34 mov 0x34(%edx),%ebx <== NOT EXECUTED
rtems_rfs_ino target = rtems_rfs_rtems_get_pathloc_ino (to_loc);
121edb: 8b 30 mov (%eax),%esi <== NOT EXECUTED
rtems_rfs_ino parent = rtems_rfs_rtems_get_pathloc_ino (parent_loc);
121edd: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
121ee0: 8b 10 mov (%eax),%edx <== NOT EXECUTED
if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_LINK))
printf ("rtems-rfs-rtems: link: in: parent:%" PRId32 " target:%" PRId32 "\n",
parent, target);
rtems_rfs_rtems_lock (fs);
121ee2: 89 d8 mov %ebx,%eax <== NOT EXECUTED
121ee4: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED
121ee7: e8 b6 f9 ff ff call 1218a2 <rtems_rfs_rtems_lock> <== NOT EXECUTED
rc = rtems_rfs_link (fs, name, strlen (name), parent, target, false);
121eec: 31 c0 xor %eax,%eax <== NOT EXECUTED
121eee: 83 c9 ff or $0xffffffff,%ecx <== NOT EXECUTED
121ef1: 8b 7d 10 mov 0x10(%ebp),%edi <== NOT EXECUTED
121ef4: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED
121ef6: f7 d1 not %ecx <== NOT EXECUTED
121ef8: 49 dec %ecx <== NOT EXECUTED
121ef9: 57 push %edi <== NOT EXECUTED
121efa: 57 push %edi <== NOT EXECUTED
121efb: 6a 00 push $0x0 <== NOT EXECUTED
121efd: 56 push %esi <== NOT EXECUTED
121efe: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
121f01: 52 push %edx <== NOT EXECUTED
121f02: 51 push %ecx <== NOT EXECUTED
121f03: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
121f06: 53 push %ebx <== NOT EXECUTED
121f07: e8 37 75 01 00 call 139443 <rtems_rfs_link> <== NOT EXECUTED
121f0c: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc)
121f0e: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
121f11: 85 c0 test %eax,%eax <== NOT EXECUTED
121f13: 74 13 je 121f28 <rtems_rfs_rtems_link+0x5f><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
121f15: 89 d8 mov %ebx,%eax <== NOT EXECUTED
121f17: e8 9f f9 ff ff call 1218bb <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("link: linking", rc);
121f1c: e8 f3 c0 01 00 call 13e014 <__errno> <== NOT EXECUTED
121f21: 89 30 mov %esi,(%eax) <== NOT EXECUTED
121f23: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
121f26: eb 09 jmp 121f31 <rtems_rfs_rtems_link+0x68><== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
121f28: 89 d8 mov %ebx,%eax <== NOT EXECUTED
121f2a: e8 8c f9 ff ff call 1218bb <rtems_rfs_rtems_unlock><== NOT EXECUTED
121f2f: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
}
121f31: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
121f34: 5b pop %ebx <== NOT EXECUTED
121f35: 5e pop %esi <== NOT EXECUTED
121f36: 5f pop %edi <== NOT EXECUTED
121f37: c9 leave <== NOT EXECUTED
121f38: c3 ret <== NOT EXECUTED
001218a2 <rtems_rfs_rtems_lock>:
/**
* Lock the RFS file system.
*/
static inline void
rtems_rfs_rtems_lock (rtems_rfs_file_system* fs)
{
1218a2: 55 push %ebp <== NOT EXECUTED
1218a3: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1218a5: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
*/
static inline int
rtems_rfs_mutex_lock (rtems_rfs_mutex* mutex)
{
#if __rtems__
rtems_status_code sc = rtems_semaphore_obtain (*mutex, RTEMS_WAIT, 0);
1218a8: 6a 00 push $0x0 <== NOT EXECUTED
1218aa: 6a 00 push $0x0 <== NOT EXECUTED
1218ac: 8b 40 7c mov 0x7c(%eax),%eax <== NOT EXECUTED
1218af: ff 30 pushl (%eax) <== NOT EXECUTED
1218b1: e8 52 f3 fe ff call 110c08 <rtems_semaphore_obtain><== NOT EXECUTED
1218b6: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_rfs_rtems_private* rtems = rtems_rfs_fs_user (fs);
rtems_rfs_mutex_lock (&rtems->access);
}
1218b9: c9 leave <== NOT EXECUTED
1218ba: c3 ret <== NOT EXECUTED
001220d9 <rtems_rfs_rtems_mknod>:
int
rtems_rfs_rtems_mknod (const char *name,
mode_t mode,
dev_t dev,
rtems_filesystem_location_info_t *pathloc)
{
1220d9: 55 push %ebp <== NOT EXECUTED
1220da: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1220dc: 57 push %edi <== NOT EXECUTED
1220dd: 56 push %esi <== NOT EXECUTED
1220de: 53 push %ebx <== NOT EXECUTED
1220df: 83 ec 4c sub $0x4c,%esp <== NOT EXECUTED
1220e2: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
1220e5: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
1220e8: 89 45 ac mov %eax,-0x54(%ebp) <== NOT EXECUTED
1220eb: 8b 4d 14 mov 0x14(%ebp),%ecx <== NOT EXECUTED
1220ee: 89 4d a8 mov %ecx,-0x58(%ebp) <== NOT EXECUTED
1220f1: 8b 45 18 mov 0x18(%ebp),%eax <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
1220f4: 8b 50 10 mov 0x10(%eax),%edx <== NOT EXECUTED
1220f7: 8b 5a 34 mov 0x34(%edx),%ebx <== NOT EXECUTED
rtems_rfs_ino parent = rtems_rfs_rtems_get_pathloc_ino (pathloc);
1220fa: 8b 00 mov (%eax),%eax <== NOT EXECUTED
1220fc: 89 45 b0 mov %eax,-0x50(%ebp) <== NOT EXECUTED
uid_t uid;
gid_t gid;
int rc;
#if defined(RTEMS_POSIX_API)
uid = geteuid ();
1220ff: e8 9c 61 00 00 call 1282a0 <geteuid> <== NOT EXECUTED
122104: 66 89 45 b4 mov %ax,-0x4c(%ebp) <== NOT EXECUTED
gid = getegid ();
122108: e8 83 61 00 00 call 128290 <getegid> <== NOT EXECUTED
12210d: 66 89 45 b6 mov %ax,-0x4a(%ebp) <== NOT EXECUTED
#else
uid = 0;
gid = 0;
#endif
rtems_rfs_rtems_lock (fs);
122111: 89 d8 mov %ebx,%eax <== NOT EXECUTED
122113: e8 8a f7 ff ff call 1218a2 <rtems_rfs_rtems_lock> <== NOT EXECUTED
rc = rtems_rfs_inode_create (fs, parent, name, strlen (name),
rtems_rfs_rtems_imode (mode),
122118: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12211b: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
12211e: e8 51 0b 00 00 call 122c74 <rtems_rfs_rtems_imode> <== NOT EXECUTED
122123: 89 c2 mov %eax,%edx <== NOT EXECUTED
gid = 0;
#endif
rtems_rfs_rtems_lock (fs);
rc = rtems_rfs_inode_create (fs, parent, name, strlen (name),
122125: 31 c0 xor %eax,%eax <== NOT EXECUTED
122127: 83 c9 ff or $0xffffffff,%ecx <== NOT EXECUTED
12212a: 89 f7 mov %esi,%edi <== NOT EXECUTED
12212c: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED
12212e: f7 d1 not %ecx <== NOT EXECUTED
122130: 49 dec %ecx <== NOT EXECUTED
122131: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
122134: 89 04 24 mov %eax,(%esp) <== NOT EXECUTED
122137: 0f b7 45 b6 movzwl -0x4a(%ebp),%eax <== NOT EXECUTED
12213b: 50 push %eax <== NOT EXECUTED
12213c: 0f b7 45 b4 movzwl -0x4c(%ebp),%eax <== NOT EXECUTED
122140: 50 push %eax <== NOT EXECUTED
122141: 6a 01 push $0x1 <== NOT EXECUTED
122143: 0f b7 d2 movzwl %dx,%edx <== NOT EXECUTED
122146: 52 push %edx <== NOT EXECUTED
122147: 51 push %ecx <== NOT EXECUTED
122148: 56 push %esi <== NOT EXECUTED
122149: ff 75 b0 pushl -0x50(%ebp) <== NOT EXECUTED
12214c: 53 push %ebx <== NOT EXECUTED
12214d: e8 aa 6b 01 00 call 138cfc <rtems_rfs_inode_create><== NOT EXECUTED
122152: 89 c6 mov %eax,%esi <== NOT EXECUTED
rtems_rfs_rtems_imode (mode),
1, uid, gid, &ino);
if (rc > 0)
122154: 83 c4 30 add $0x30,%esp <== NOT EXECUTED
122157: 85 c0 test %eax,%eax <== NOT EXECUTED
122159: 0f 8f f2 00 00 00 jg 122251 <rtems_rfs_rtems_mknod+0x178><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
return rtems_rfs_rtems_error ("mknod: inode create", rc);
}
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
12215f: 6a 01 push $0x1 <== NOT EXECUTED
122161: 8d 75 bc lea -0x44(%ebp),%esi <== NOT EXECUTED
122164: 56 push %esi <== NOT EXECUTED
122165: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
122168: 53 push %ebx <== NOT EXECUTED
122169: e8 49 6a 01 00 call 138bb7 <rtems_rfs_inode_open> <== NOT EXECUTED
12216e: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc > 0)
122170: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
122173: 85 c0 test %eax,%eax <== NOT EXECUTED
122175: 7e 16 jle 12218d <rtems_rfs_rtems_mknod+0xb4><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
122177: 89 d8 mov %ebx,%eax <== NOT EXECUTED
122179: e8 3d f7 ff ff call 1218bb <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("mknod: inode open", rc);
12217e: e8 91 be 01 00 call 13e014 <__errno> <== NOT EXECUTED
122183: 89 38 mov %edi,(%eax) <== NOT EXECUTED
122185: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
122188: e9 e0 00 00 00 jmp 12226d <rtems_rfs_rtems_mknod+0x194><== NOT EXECUTED
}
if (S_ISDIR(mode) || S_ISREG(mode))
12218d: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
122190: 25 00 f0 00 00 and $0xf000,%eax <== NOT EXECUTED
122195: 3d 00 80 00 00 cmp $0x8000,%eax <== NOT EXECUTED
12219a: 0f 84 9c 00 00 00 je 12223c <rtems_rfs_rtems_mknod+0x163><== NOT EXECUTED
1221a0: 3d 00 40 00 00 cmp $0x4000,%eax <== NOT EXECUTED
1221a5: 0f 84 91 00 00 00 je 12223c <rtems_rfs_rtems_mknod+0x163><== NOT EXECUTED
{
}
else if (S_ISCHR (mode) || S_ISBLK (mode))
1221ab: 3d 00 60 00 00 cmp $0x6000,%eax <== NOT EXECUTED
1221b0: 74 07 je 1221b9 <rtems_rfs_rtems_mknod+0xe0><== NOT EXECUTED
1221b2: 3d 00 20 00 00 cmp $0x2000,%eax <== NOT EXECUTED
1221b7: 75 60 jne 122219 <rtems_rfs_rtems_mknod+0x140><== NOT EXECUTED
dev_t device
)
{
union __rtems_dev_t temp;
temp.device = device;
1221b9: 8b 55 ac mov -0x54(%ebp),%edx <== NOT EXECUTED
dev_t device
)
{
union __rtems_dev_t temp;
temp.device = device;
1221bc: 8b 45 a8 mov -0x58(%ebp),%eax <== NOT EXECUTED
* @param bno The block number.
*/
static inline void
rtems_rfs_inode_set_block (rtems_rfs_inode_handle* handle, int block, uint32_t bno)
{
rtems_rfs_write_u32 (&handle->node->data.blocks[block], bno);
1221bf: 89 d6 mov %edx,%esi <== NOT EXECUTED
1221c1: c1 ee 18 shr $0x18,%esi <== NOT EXECUTED
1221c4: 8b 7d c8 mov -0x38(%ebp),%edi <== NOT EXECUTED
1221c7: 89 f1 mov %esi,%ecx <== NOT EXECUTED
1221c9: 88 4f 1c mov %cl,0x1c(%edi) <== NOT EXECUTED
1221cc: 89 d6 mov %edx,%esi <== NOT EXECUTED
1221ce: c1 ee 10 shr $0x10,%esi <== NOT EXECUTED
1221d1: 8b 7d c8 mov -0x38(%ebp),%edi <== NOT EXECUTED
1221d4: 89 f1 mov %esi,%ecx <== NOT EXECUTED
1221d6: 88 4f 1d mov %cl,0x1d(%edi) <== NOT EXECUTED
1221d9: 89 d6 mov %edx,%esi <== NOT EXECUTED
1221db: c1 ee 08 shr $0x8,%esi <== NOT EXECUTED
1221de: 8b 7d c8 mov -0x38(%ebp),%edi <== NOT EXECUTED
1221e1: 89 f1 mov %esi,%ecx <== NOT EXECUTED
1221e3: 88 4f 1e mov %cl,0x1e(%edi) <== NOT EXECUTED
1221e6: 8b 4d c8 mov -0x38(%ebp),%ecx <== NOT EXECUTED
1221e9: 88 51 1f mov %dl,0x1f(%ecx) <== NOT EXECUTED
1221ec: 89 c1 mov %eax,%ecx <== NOT EXECUTED
1221ee: c1 e9 18 shr $0x18,%ecx <== NOT EXECUTED
1221f1: 8b 55 c8 mov -0x38(%ebp),%edx <== NOT EXECUTED
1221f4: 88 4a 20 mov %cl,0x20(%edx) <== NOT EXECUTED
1221f7: 89 c1 mov %eax,%ecx <== NOT EXECUTED
1221f9: c1 e9 10 shr $0x10,%ecx <== NOT EXECUTED
1221fc: 8b 55 c8 mov -0x38(%ebp),%edx <== NOT EXECUTED
1221ff: 88 4a 21 mov %cl,0x21(%edx) <== NOT EXECUTED
122202: 89 c1 mov %eax,%ecx <== NOT EXECUTED
122204: c1 e9 08 shr $0x8,%ecx <== NOT EXECUTED
122207: 8b 55 c8 mov -0x38(%ebp),%edx <== NOT EXECUTED
12220a: 88 4a 22 mov %cl,0x22(%edx) <== NOT EXECUTED
12220d: 8b 55 c8 mov -0x38(%ebp),%edx <== NOT EXECUTED
122210: 88 42 23 mov %al,0x23(%edx) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
122213: c6 45 cc 01 movb $0x1,-0x34(%ebp) <== NOT EXECUTED
122217: eb 23 jmp 12223c <rtems_rfs_rtems_mknod+0x163><== NOT EXECUTED
rtems_rfs_inode_set_block (&inode, 0, major);
rtems_rfs_inode_set_block (&inode, 1, minor);
}
else
{
rtems_rfs_inode_close (fs, &inode);
122219: 51 push %ecx <== NOT EXECUTED
12221a: 51 push %ecx <== NOT EXECUTED
12221b: 56 push %esi <== NOT EXECUTED
12221c: 53 push %ebx <== NOT EXECUTED
12221d: e8 26 69 01 00 call 138b48 <rtems_rfs_inode_close> <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
122222: 89 d8 mov %ebx,%eax <== NOT EXECUTED
122224: e8 92 f6 ff ff call 1218bb <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("mknod: bad mode", EINVAL);
122229: e8 e6 bd 01 00 call 13e014 <__errno> <== NOT EXECUTED
12222e: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
122234: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
122237: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12223a: eb 31 jmp 12226d <rtems_rfs_rtems_mknod+0x194><== NOT EXECUTED
}
rc = rtems_rfs_inode_close (fs, &inode);
12223c: 52 push %edx <== NOT EXECUTED
12223d: 52 push %edx <== NOT EXECUTED
12223e: 8d 45 bc lea -0x44(%ebp),%eax <== NOT EXECUTED
122241: 50 push %eax <== NOT EXECUTED
122242: 53 push %ebx <== NOT EXECUTED
122243: e8 00 69 01 00 call 138b48 <rtems_rfs_inode_close> <== NOT EXECUTED
122248: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
12224a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12224d: 85 c0 test %eax,%eax <== NOT EXECUTED
12224f: 7e 13 jle 122264 <rtems_rfs_rtems_mknod+0x18b><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
122251: 89 d8 mov %ebx,%eax <== NOT EXECUTED
122253: e8 63 f6 ff ff call 1218bb <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("mknod: closing inode", rc);
122258: e8 b7 bd 01 00 call 13e014 <__errno> <== NOT EXECUTED
12225d: 89 30 mov %esi,(%eax) <== NOT EXECUTED
12225f: e9 21 ff ff ff jmp 122185 <rtems_rfs_rtems_mknod+0xac><== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
122264: 89 d8 mov %ebx,%eax <== NOT EXECUTED
122266: e8 50 f6 ff ff call 1218bb <rtems_rfs_rtems_unlock><== NOT EXECUTED
12226b: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
}
12226d: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
122270: 5b pop %ebx <== NOT EXECUTED
122271: 5e pop %esi <== NOT EXECUTED
122272: 5f pop %edi <== NOT EXECUTED
122273: c9 leave <== NOT EXECUTED
122274: c3 ret <== NOT EXECUTED
00122c7c <rtems_rfs_rtems_mode>:
mode_t
rtems_rfs_rtems_mode (int imode)
{
122c7c: 55 push %ebp <== NOT EXECUTED
122c7d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
/*
* Mapping matches RTEMS so no need to change.
*/
return imode;
}
122c7f: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
122c82: c9 leave <== NOT EXECUTED
122c83: c3 ret <== NOT EXECUTED
00121bb4 <rtems_rfs_rtems_node_type>:
* @return rtems_filesystem_node_types_t
*/
rtems_filesystem_node_types_t
rtems_rfs_rtems_node_type (rtems_filesystem_location_info_t* pathloc)
{
121bb4: 55 push %ebp <== NOT EXECUTED
121bb5: 89 e5 mov %esp,%ebp <== NOT EXECUTED
121bb7: 57 push %edi <== NOT EXECUTED
121bb8: 56 push %esi <== NOT EXECUTED
121bb9: 53 push %ebx <== NOT EXECUTED
121bba: 83 ec 3c sub $0x3c,%esp <== NOT EXECUTED
121bbd: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
121bc0: 8b 50 10 mov 0x10(%eax),%edx <== NOT EXECUTED
121bc3: 8b 72 34 mov 0x34(%edx),%esi <== NOT EXECUTED
rtems_rfs_ino ino = rtems_rfs_rtems_get_pathloc_ino (pathloc);
121bc6: 8b 18 mov (%eax),%ebx <== NOT EXECUTED
rtems_filesystem_node_types_t type;
rtems_rfs_inode_handle inode;
uint16_t mode;
int rc;
rtems_rfs_rtems_lock (fs);
121bc8: 89 f0 mov %esi,%eax <== NOT EXECUTED
121bca: e8 d3 fc ff ff call 1218a2 <rtems_rfs_rtems_lock> <== NOT EXECUTED
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
121bcf: 6a 01 push $0x1 <== NOT EXECUTED
121bd1: 8d 45 c0 lea -0x40(%ebp),%eax <== NOT EXECUTED
121bd4: 50 push %eax <== NOT EXECUTED
121bd5: 53 push %ebx <== NOT EXECUTED
121bd6: 56 push %esi <== NOT EXECUTED
121bd7: e8 db 6f 01 00 call 138bb7 <rtems_rfs_inode_open> <== NOT EXECUTED
121bdc: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc > 0)
121bde: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
121be1: 85 c0 test %eax,%eax <== NOT EXECUTED
121be3: 7e 10 jle 121bf5 <rtems_rfs_rtems_node_type+0x41><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
121be5: 89 f0 mov %esi,%eax <== NOT EXECUTED
121be7: e8 cf fc ff ff call 1218bb <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("node_type: opening inode", rc);
121bec: e8 23 c4 01 00 call 13e014 <__errno> <== NOT EXECUTED
121bf1: 89 18 mov %ebx,(%eax) <== NOT EXECUTED
121bf3: eb 5c jmp 121c51 <rtems_rfs_rtems_node_type+0x9d><== NOT EXECUTED
* link is actually the normal path to a regular file, directory, device
* etc's inode. Links to inodes can be considered "the real" one, yet they
* are all links.
*/
mode = rtems_rfs_inode_get_mode (&inode);
if (RTEMS_RFS_S_ISDIR (mode))
121bf5: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED
121bf8: 0f b6 40 02 movzbl 0x2(%eax),%eax <== NOT EXECUTED
121bfc: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
121bff: 25 00 f0 00 00 and $0xf000,%eax <== NOT EXECUTED
121c04: bb 01 00 00 00 mov $0x1,%ebx <== NOT EXECUTED
121c09: 3d 00 40 00 00 cmp $0x4000,%eax <== NOT EXECUTED
121c0e: 74 1e je 121c2e <rtems_rfs_rtems_node_type+0x7a><== NOT EXECUTED
type = RTEMS_FILESYSTEM_DIRECTORY;
else if (RTEMS_RFS_S_ISLNK (mode))
121c10: b3 04 mov $0x4,%bl <== NOT EXECUTED
121c12: 3d 00 a0 00 00 cmp $0xa000,%eax <== NOT EXECUTED
121c17: 74 15 je 121c2e <rtems_rfs_rtems_node_type+0x7a><== NOT EXECUTED
type = RTEMS_FILESYSTEM_SYM_LINK;
else if (RTEMS_RFS_S_ISBLK (mode) || RTEMS_RFS_S_ISCHR (mode))
121c19: 3d 00 20 00 00 cmp $0x2000,%eax <== NOT EXECUTED
121c1e: 74 09 je 121c29 <rtems_rfs_rtems_node_type+0x75><== NOT EXECUTED
121c20: b3 05 mov $0x5,%bl <== NOT EXECUTED
121c22: 3d 00 60 00 00 cmp $0x6000,%eax <== NOT EXECUTED
121c27: 75 05 jne 121c2e <rtems_rfs_rtems_node_type+0x7a><== NOT EXECUTED
121c29: bb 02 00 00 00 mov $0x2,%ebx <== NOT EXECUTED
type = RTEMS_FILESYSTEM_DEVICE;
else
type = RTEMS_FILESYSTEM_MEMORY_FILE;
rc = rtems_rfs_inode_close (fs, &inode);
121c2e: 52 push %edx <== NOT EXECUTED
121c2f: 52 push %edx <== NOT EXECUTED
121c30: 8d 45 c0 lea -0x40(%ebp),%eax <== NOT EXECUTED
121c33: 50 push %eax <== NOT EXECUTED
121c34: 56 push %esi <== NOT EXECUTED
121c35: e8 0e 6f 01 00 call 138b48 <rtems_rfs_inode_close> <== NOT EXECUTED
121c3a: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc > 0)
121c3c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
121c3f: 85 c0 test %eax,%eax <== NOT EXECUTED
121c41: 7e 13 jle 121c56 <rtems_rfs_rtems_node_type+0xa2><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
121c43: 89 f0 mov %esi,%eax <== NOT EXECUTED
121c45: e8 71 fc ff ff call 1218bb <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("node_type: closing inode", rc);
121c4a: e8 c5 c3 01 00 call 13e014 <__errno> <== NOT EXECUTED
121c4f: 89 38 mov %edi,(%eax) <== NOT EXECUTED
121c51: 83 cb ff or $0xffffffff,%ebx <== NOT EXECUTED
121c54: eb 07 jmp 121c5d <rtems_rfs_rtems_node_type+0xa9><== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
121c56: 89 f0 mov %esi,%eax <== NOT EXECUTED
121c58: e8 5e fc ff ff call 1218bb <rtems_rfs_rtems_unlock><== NOT EXECUTED
return type;
}
121c5d: 89 d8 mov %ebx,%eax <== NOT EXECUTED
121c5f: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
121c62: 5b pop %ebx <== NOT EXECUTED
121c63: 5e pop %esi <== NOT EXECUTED
121c64: 5f pop %edi <== NOT EXECUTED
121c65: c9 leave <== NOT EXECUTED
121c66: c3 ret <== NOT EXECUTED
0012251e <rtems_rfs_rtems_readlink>:
int
rtems_rfs_rtems_readlink (rtems_filesystem_location_info_t* pathloc,
char* buf,
size_t bufsize)
{
12251e: 55 push %ebp <== NOT EXECUTED
12251f: 89 e5 mov %esp,%ebp <== NOT EXECUTED
122521: 56 push %esi <== NOT EXECUTED
122522: 53 push %ebx <== NOT EXECUTED
122523: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED
122526: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
122529: 8b 50 10 mov 0x10(%eax),%edx <== NOT EXECUTED
12252c: 8b 5a 34 mov 0x34(%edx),%ebx <== NOT EXECUTED
rtems_rfs_ino ino = rtems_rfs_rtems_get_pathloc_ino (pathloc);
12252f: 8b 30 mov (%eax),%esi <== NOT EXECUTED
int rc;
if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_READLINK))
printf ("rtems-rfs-rtems: readlink: in: ino:%" PRId32 "\n", ino);
rtems_rfs_rtems_lock (fs);
122531: 89 d8 mov %ebx,%eax <== NOT EXECUTED
122533: e8 6a f3 ff ff call 1218a2 <rtems_rfs_rtems_lock> <== NOT EXECUTED
rc = rtems_rfs_symlink_read (fs, ino, buf, bufsize, &length);
122538: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12253b: 8d 45 f4 lea -0xc(%ebp),%eax <== NOT EXECUTED
12253e: 50 push %eax <== NOT EXECUTED
12253f: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
122542: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
122545: 56 push %esi <== NOT EXECUTED
122546: 53 push %ebx <== NOT EXECUTED
122547: e8 d0 69 01 00 call 138f1c <rtems_rfs_symlink_read><== NOT EXECUTED
12254c: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc)
12254e: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
122551: 85 c0 test %eax,%eax <== NOT EXECUTED
122553: 74 13 je 122568 <rtems_rfs_rtems_readlink+0x4a><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
122555: 89 d8 mov %ebx,%eax <== NOT EXECUTED
122557: e8 5f f3 ff ff call 1218bb <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("readlink: reading link", rc);
12255c: e8 b3 ba 01 00 call 13e014 <__errno> <== NOT EXECUTED
122561: 89 30 mov %esi,(%eax) <== NOT EXECUTED
122563: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
122566: eb 0a jmp 122572 <rtems_rfs_rtems_readlink+0x54><== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
122568: 89 d8 mov %ebx,%eax <== NOT EXECUTED
12256a: e8 4c f3 ff ff call 1218bb <rtems_rfs_rtems_unlock><== NOT EXECUTED
return (int) length;
12256f: 8b 45 f4 mov -0xc(%ebp),%eax <== NOT EXECUTED
}
122572: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
122575: 5b pop %ebx <== NOT EXECUTED
122576: 5e pop %esi <== NOT EXECUTED
122577: c9 leave <== NOT EXECUTED
122578: c3 ret <== NOT EXECUTED
00121f39 <rtems_rfs_rtems_rename>:
int
rtems_rfs_rtems_rename(rtems_filesystem_location_info_t* old_parent_loc,
rtems_filesystem_location_info_t* old_loc,
rtems_filesystem_location_info_t* new_parent_loc,
const char* new_name)
{
121f39: 55 push %ebp <== NOT EXECUTED
121f3a: 89 e5 mov %esp,%ebp <== NOT EXECUTED
121f3c: 57 push %edi <== NOT EXECUTED
121f3d: 56 push %esi <== NOT EXECUTED
121f3e: 53 push %ebx <== NOT EXECUTED
121f3f: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
121f42: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (old_loc);
121f45: 8b 50 10 mov 0x10(%eax),%edx <== NOT EXECUTED
121f48: 8b 5a 34 mov 0x34(%edx),%ebx <== NOT EXECUTED
rtems_rfs_ino new_parent;
rtems_rfs_ino ino;
uint32_t doff;
int rc;
old_parent = rtems_rfs_rtems_get_pathloc_ino (old_parent_loc);
121f4b: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
121f4e: 8b 12 mov (%edx),%edx <== NOT EXECUTED
121f50: 89 55 e0 mov %edx,-0x20(%ebp) <== NOT EXECUTED
new_parent = rtems_rfs_rtems_get_pathloc_ino (new_parent_loc);
121f53: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
121f56: 8b 12 mov (%edx),%edx <== NOT EXECUTED
ino = rtems_rfs_rtems_get_pathloc_ino (old_loc);
121f58: 8b 30 mov (%eax),%esi <== NOT EXECUTED
doff = rtems_rfs_rtems_get_pathloc_doff (old_loc);
121f5a: 8b 40 04 mov 0x4(%eax),%eax <== NOT EXECUTED
121f5d: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_RENAME))
printf ("rtems-rfs: rename: ino:%" PRId32 " doff:%" PRIu32 ", new parent:%" PRId32 " new name:%s\n",
ino, doff, new_parent, new_name);
rtems_rfs_rtems_lock (fs);
121f60: 89 d8 mov %ebx,%eax <== NOT EXECUTED
121f62: 89 55 dc mov %edx,-0x24(%ebp) <== NOT EXECUTED
121f65: e8 38 f9 ff ff call 1218a2 <rtems_rfs_rtems_lock> <== NOT EXECUTED
/*
* Link to the inode before unlinking so the inode is not erased when
* unlinked.
*/
rc = rtems_rfs_link (fs, new_name, strlen (new_name), new_parent, ino, true);
121f6a: 31 c0 xor %eax,%eax <== NOT EXECUTED
121f6c: 83 c9 ff or $0xffffffff,%ecx <== NOT EXECUTED
121f6f: 8b 7d 14 mov 0x14(%ebp),%edi <== NOT EXECUTED
121f72: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED
121f74: f7 d1 not %ecx <== NOT EXECUTED
121f76: 49 dec %ecx <== NOT EXECUTED
121f77: 50 push %eax <== NOT EXECUTED
121f78: 50 push %eax <== NOT EXECUTED
121f79: 6a 01 push $0x1 <== NOT EXECUTED
121f7b: 56 push %esi <== NOT EXECUTED
121f7c: 8b 55 dc mov -0x24(%ebp),%edx <== NOT EXECUTED
121f7f: 52 push %edx <== NOT EXECUTED
121f80: 51 push %ecx <== NOT EXECUTED
121f81: ff 75 14 pushl 0x14(%ebp) <== NOT EXECUTED
121f84: 53 push %ebx <== NOT EXECUTED
121f85: e8 b9 74 01 00 call 139443 <rtems_rfs_link> <== NOT EXECUTED
121f8a: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc)
121f8c: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
121f8f: 85 c0 test %eax,%eax <== NOT EXECUTED
121f91: 74 10 je 121fa3 <rtems_rfs_rtems_rename+0x6a><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
121f93: 89 d8 mov %ebx,%eax <== NOT EXECUTED
121f95: e8 21 f9 ff ff call 1218bb <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("rename: linking", rc);
121f9a: e8 75 c0 01 00 call 13e014 <__errno> <== NOT EXECUTED
121f9f: 89 38 mov %edi,(%eax) <== NOT EXECUTED
121fa1: eb 29 jmp 121fcc <rtems_rfs_rtems_rename+0x93><== NOT EXECUTED
/*
* Unlink all inodes even directories with the dir option as false because a
* directory may not be empty.
*/
rc = rtems_rfs_unlink (fs, old_parent, ino, doff,
121fa3: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
121fa6: 6a 02 push $0x2 <== NOT EXECUTED
121fa8: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
121fab: 56 push %esi <== NOT EXECUTED
121fac: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
121faf: 53 push %ebx <== NOT EXECUTED
121fb0: e8 eb 72 01 00 call 1392a0 <rtems_rfs_unlink> <== NOT EXECUTED
121fb5: 89 c6 mov %eax,%esi <== NOT EXECUTED
rtems_rfs_unlink_dir_allowed);
if (rc)
121fb7: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
121fba: 85 c0 test %eax,%eax <== NOT EXECUTED
121fbc: 74 13 je 121fd1 <rtems_rfs_rtems_rename+0x98><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
121fbe: 89 d8 mov %ebx,%eax <== NOT EXECUTED
121fc0: e8 f6 f8 ff ff call 1218bb <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("rename: unlinking", rc);
121fc5: e8 4a c0 01 00 call 13e014 <__errno> <== NOT EXECUTED
121fca: 89 30 mov %esi,(%eax) <== NOT EXECUTED
121fcc: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
121fcf: eb 09 jmp 121fda <rtems_rfs_rtems_rename+0xa1><== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
121fd1: 89 d8 mov %ebx,%eax <== NOT EXECUTED
121fd3: e8 e3 f8 ff ff call 1218bb <rtems_rfs_rtems_unlock><== NOT EXECUTED
121fd8: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
}
121fda: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
121fdd: 5b pop %ebx <== NOT EXECUTED
121fde: 5e pop %esi <== NOT EXECUTED
121fdf: 5f pop %edi <== NOT EXECUTED
121fe0: c9 leave <== NOT EXECUTED
121fe1: c3 ret <== NOT EXECUTED
00121fe2 <rtems_rfs_rtems_rmnod>:
* @return int
*/
int
rtems_rfs_rtems_rmnod (rtems_filesystem_location_info_t* parent_pathloc,
rtems_filesystem_location_info_t* pathloc)
{
121fe2: 55 push %ebp <== NOT EXECUTED
121fe3: 89 e5 mov %esp,%ebp <== NOT EXECUTED
121fe5: 57 push %edi <== NOT EXECUTED
121fe6: 56 push %esi <== NOT EXECUTED
121fe7: 53 push %ebx <== NOT EXECUTED
121fe8: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
121feb: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
121fee: 8b 50 10 mov 0x10(%eax),%edx <== NOT EXECUTED
121ff1: 8b 5a 34 mov 0x34(%edx),%ebx <== NOT EXECUTED
rtems_rfs_ino parent = rtems_rfs_rtems_get_pathloc_ino (parent_pathloc);
121ff4: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
121ff7: 8b 32 mov (%edx),%esi <== NOT EXECUTED
rtems_rfs_ino ino = rtems_rfs_rtems_get_pathloc_ino (pathloc);
121ff9: 8b 38 mov (%eax),%edi <== NOT EXECUTED
uint32_t doff = rtems_rfs_rtems_get_pathloc_doff (pathloc);
121ffb: 8b 50 04 mov 0x4(%eax),%edx <== NOT EXECUTED
if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_RMNOD))
printf ("rtems-rfs: rmnod: parent:%" PRId32 " doff:%" PRIu32 ", ino:%" PRId32 "\n",
parent, doff, ino);
rtems_rfs_rtems_lock (fs);
121ffe: 89 d8 mov %ebx,%eax <== NOT EXECUTED
122000: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED
122003: e8 9a f8 ff ff call 1218a2 <rtems_rfs_rtems_lock> <== NOT EXECUTED
rc = rtems_rfs_unlink (fs, parent, ino, doff, rtems_rfs_unlink_dir_denied);
122008: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12200b: 6a 00 push $0x0 <== NOT EXECUTED
12200d: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
122010: 52 push %edx <== NOT EXECUTED
122011: 57 push %edi <== NOT EXECUTED
122012: 56 push %esi <== NOT EXECUTED
122013: 53 push %ebx <== NOT EXECUTED
122014: e8 87 72 01 00 call 1392a0 <rtems_rfs_unlink> <== NOT EXECUTED
122019: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc)
12201b: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
12201e: 85 c0 test %eax,%eax <== NOT EXECUTED
122020: 74 13 je 122035 <rtems_rfs_rtems_rmnod+0x53><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
122022: 89 d8 mov %ebx,%eax <== NOT EXECUTED
122024: e8 92 f8 ff ff call 1218bb <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("rmnod: unlinking", rc);
122029: e8 e6 bf 01 00 call 13e014 <__errno> <== NOT EXECUTED
12202e: 89 30 mov %esi,(%eax) <== NOT EXECUTED
122030: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
122033: eb 09 jmp 12203e <rtems_rfs_rtems_rmnod+0x5c><== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
122035: 89 d8 mov %ebx,%eax <== NOT EXECUTED
122037: e8 7f f8 ff ff call 1218bb <rtems_rfs_rtems_unlock><== NOT EXECUTED
12203c: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
}
12203e: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
122041: 5b pop %ebx <== NOT EXECUTED
122042: 5e pop %esi <== NOT EXECUTED
122043: 5f pop %edi <== NOT EXECUTED
122044: c9 leave <== NOT EXECUTED
122045: c3 ret <== NOT EXECUTED
00122c84 <rtems_rfs_rtems_set_handlers>:
*/
bool
rtems_rfs_rtems_set_handlers (rtems_filesystem_location_info_t* loc,
rtems_rfs_inode_handle* inode)
{
122c84: 55 push %ebp <== NOT EXECUTED
122c85: 89 e5 mov %esp,%ebp <== NOT EXECUTED
122c87: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
122c8a: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
* @return uint16_t The mode.
*/
static inline uint16_t
rtems_rfs_inode_get_mode (rtems_rfs_inode_handle* handle)
{
return rtems_rfs_read_u16 (&handle->node->mode);
122c8d: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
122c90: 8b 52 0c mov 0xc(%edx),%edx <== NOT EXECUTED
122c93: 0f b6 4a 02 movzbl 0x2(%edx),%ecx <== NOT EXECUTED
122c97: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
122c9a: 0f b6 52 03 movzbl 0x3(%edx),%edx <== NOT EXECUTED
122c9e: 09 ca or %ecx,%edx <== NOT EXECUTED
uint16_t mode = rtems_rfs_inode_get_mode (inode);
loc->handlers = NULL;
122ca0: c7 40 08 00 00 00 00 movl $0x0,0x8(%eax) <== NOT EXECUTED
if (RTEMS_RFS_S_ISDIR (mode))
122ca7: 0f b7 ca movzwl %dx,%ecx <== NOT EXECUTED
122caa: 89 ca mov %ecx,%edx <== NOT EXECUTED
122cac: 81 e2 00 f0 00 00 and $0xf000,%edx <== NOT EXECUTED
122cb2: 81 fa 00 40 00 00 cmp $0x4000,%edx <== NOT EXECUTED
122cb8: 75 09 jne 122cc3 <rtems_rfs_rtems_set_handlers+0x3f><== NOT EXECUTED
loc->handlers = rtems_rfs_rtems_handlers (dir);
122cba: c7 40 08 24 eb 15 00 movl $0x15eb24,0x8(%eax) <== NOT EXECUTED
122cc1: eb 17 jmp 122cda <rtems_rfs_rtems_set_handlers+0x56><== NOT EXECUTED
else if (RTEMS_RFS_S_ISCHR (mode) || RTEMS_RFS_S_ISBLK(mode))
122cc3: 81 fa 00 60 00 00 cmp $0x6000,%edx <== NOT EXECUTED
122cc9: 74 08 je 122cd3 <rtems_rfs_rtems_set_handlers+0x4f><== NOT EXECUTED
122ccb: 81 fa 00 20 00 00 cmp $0x2000,%edx <== NOT EXECUTED
122cd1: 75 0b jne 122cde <rtems_rfs_rtems_set_handlers+0x5a><== NOT EXECUTED
loc->handlers = rtems_rfs_rtems_handlers (device);
122cd3: c7 40 08 ec ea 15 00 movl $0x15eaec,0x8(%eax) <== NOT EXECUTED
122cda: b0 01 mov $0x1,%al <== NOT EXECUTED
122cdc: eb 34 jmp 122d12 <rtems_rfs_rtems_set_handlers+0x8e><== NOT EXECUTED
else if (RTEMS_RFS_S_ISLNK (mode))
122cde: 81 fa 00 a0 00 00 cmp $0xa000,%edx <== NOT EXECUTED
122ce4: 75 09 jne 122cef <rtems_rfs_rtems_set_handlers+0x6b><== NOT EXECUTED
loc->handlers = rtems_rfs_rtems_handlers (link);
122ce6: c7 40 08 a4 9f 15 00 movl $0x159fa4,0x8(%eax) <== NOT EXECUTED
122ced: eb eb jmp 122cda <rtems_rfs_rtems_set_handlers+0x56><== NOT EXECUTED
else if (RTEMS_RFS_S_ISREG (mode))
122cef: 81 fa 00 80 00 00 cmp $0x8000,%edx <== NOT EXECUTED
122cf5: 75 09 jne 122d00 <rtems_rfs_rtems_set_handlers+0x7c><== NOT EXECUTED
loc->handlers = rtems_rfs_rtems_handlers (file);
122cf7: c7 40 08 5c eb 15 00 movl $0x15eb5c,0x8(%eax) <== NOT EXECUTED
122cfe: eb da jmp 122cda <rtems_rfs_rtems_set_handlers+0x56><== NOT EXECUTED
else
{
printf ("rtems-rfs: mode type unknown: %04x\n", mode);
122d00: 50 push %eax <== NOT EXECUTED
122d01: 50 push %eax <== NOT EXECUTED
122d02: 51 push %ecx <== NOT EXECUTED
122d03: 68 24 a0 15 00 push $0x15a024 <== NOT EXECUTED
122d08: e8 27 f2 01 00 call 141f34 <printf> <== NOT EXECUTED
122d0d: 31 c0 xor %eax,%eax <== NOT EXECUTED
return false;
122d0f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
return true;
}
122d12: c9 leave <== NOT EXECUTED
122d13: c3 ret <== NOT EXECUTED
00121c67 <rtems_rfs_rtems_shutdown>:
/**
* Shutdown the file system.
*/
int
rtems_rfs_rtems_shutdown (rtems_filesystem_mount_table_entry_t* mt_entry)
{
121c67: 55 push %ebp <== NOT EXECUTED
121c68: 89 e5 mov %esp,%ebp <== NOT EXECUTED
121c6a: 56 push %esi <== NOT EXECUTED
121c6b: 53 push %ebx <== NOT EXECUTED
rtems_rfs_file_system* fs = mt_entry->fs_info;
121c6c: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
121c6f: 8b 40 34 mov 0x34(%eax),%eax <== NOT EXECUTED
rtems_rfs_rtems_private* rtems;
int rc;
rtems = rtems_rfs_fs_user (fs);
121c72: 8b 70 7c mov 0x7c(%eax),%esi <== NOT EXECUTED
rc = rtems_rfs_fs_close(fs);
121c75: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
121c78: 50 push %eax <== NOT EXECUTED
121c79: e8 59 56 01 00 call 1372d7 <rtems_rfs_fs_close> <== NOT EXECUTED
121c7e: 89 c3 mov %eax,%ebx <== NOT EXECUTED
rtems_rfs_mutex_destroy (&rtems->access);
121c80: 89 34 24 mov %esi,(%esp) <== NOT EXECUTED
121c83: e8 dc 78 01 00 call 139564 <rtems_rfs_mutex_destroy><== NOT EXECUTED
free (rtems);
121c88: 89 34 24 mov %esi,(%esp) <== NOT EXECUTED
121c8b: e8 0c b2 fe ff call 10ce9c <free> <== NOT EXECUTED
return rtems_rfs_rtems_error ("shutdown: close", rc);
121c90: e8 7f c3 01 00 call 13e014 <__errno> <== NOT EXECUTED
121c95: 89 18 mov %ebx,(%eax) <== NOT EXECUTED
121c97: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
121c9a: 83 fb 01 cmp $0x1,%ebx <== NOT EXECUTED
121c9d: 19 c0 sbb %eax,%eax <== NOT EXECUTED
121c9f: f7 d0 not %eax <== NOT EXECUTED
}
121ca1: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
121ca4: 5b pop %ebx <== NOT EXECUTED
121ca5: 5e pop %esi <== NOT EXECUTED
121ca6: c9 leave <== NOT EXECUTED
121ca7: c3 ret <== NOT EXECUTED
00122275 <rtems_rfs_rtems_stat>:
*/
int
rtems_rfs_rtems_stat (rtems_filesystem_location_info_t* pathloc,
struct stat* buf)
{
122275: 55 push %ebp <== NOT EXECUTED
122276: 89 e5 mov %esp,%ebp <== NOT EXECUTED
122278: 57 push %edi <== NOT EXECUTED
122279: 56 push %esi <== NOT EXECUTED
12227a: 53 push %ebx <== NOT EXECUTED
12227b: 83 ec 4c sub $0x4c,%esp <== NOT EXECUTED
12227e: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
122281: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
122284: 8b 50 10 mov 0x10(%eax),%edx <== NOT EXECUTED
122287: 8b 72 34 mov 0x34(%edx),%esi <== NOT EXECUTED
rtems_rfs_ino ino = rtems_rfs_rtems_get_pathloc_ino (pathloc);
12228a: 8b 00 mov (%eax),%eax <== NOT EXECUTED
12228c: 89 45 b4 mov %eax,-0x4c(%ebp) <== NOT EXECUTED
int rc;
if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_STAT))
printf ("rtems-rfs-rtems: stat: in: ino:%" PRId32 "\n", ino);
rtems_rfs_rtems_lock (fs);
12228f: 89 f0 mov %esi,%eax <== NOT EXECUTED
122291: e8 0c f6 ff ff call 1218a2 <rtems_rfs_rtems_lock> <== NOT EXECUTED
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
122296: 6a 01 push $0x1 <== NOT EXECUTED
122298: 8d 45 c0 lea -0x40(%ebp),%eax <== NOT EXECUTED
12229b: 50 push %eax <== NOT EXECUTED
12229c: ff 75 b4 pushl -0x4c(%ebp) <== NOT EXECUTED
12229f: 56 push %esi <== NOT EXECUTED
1222a0: e8 12 69 01 00 call 138bb7 <rtems_rfs_inode_open> <== NOT EXECUTED
1222a5: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc)
1222a7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1222aa: 85 c0 test %eax,%eax <== NOT EXECUTED
1222ac: 74 13 je 1222c1 <rtems_rfs_rtems_stat+0x4c><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
1222ae: 89 f0 mov %esi,%eax <== NOT EXECUTED
1222b0: e8 06 f6 ff ff call 1218bb <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("stat: opening inode", rc);
1222b5: e8 5a bd 01 00 call 13e014 <__errno> <== NOT EXECUTED
1222ba: 89 38 mov %edi,(%eax) <== NOT EXECUTED
1222bc: e9 47 02 00 00 jmp 122508 <rtems_rfs_rtems_stat+0x293><== NOT EXECUTED
* @return uint16_t The mode.
*/
static inline uint16_t
rtems_rfs_inode_get_mode (rtems_rfs_inode_handle* handle)
{
return rtems_rfs_read_u16 (&handle->node->mode);
1222c1: 8b 7d cc mov -0x34(%ebp),%edi <== NOT EXECUTED
}
mode = rtems_rfs_inode_get_mode (&inode);
if (RTEMS_RFS_S_ISCHR (mode) || RTEMS_RFS_S_ISBLK (mode))
1222c4: 0f b6 57 02 movzbl 0x2(%edi),%edx <== NOT EXECUTED
1222c8: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
1222cb: 0f b6 47 03 movzbl 0x3(%edi),%eax <== NOT EXECUTED
1222cf: 09 d0 or %edx,%eax <== NOT EXECUTED
1222d1: 0f b7 c0 movzwl %ax,%eax <== NOT EXECUTED
1222d4: 89 45 b0 mov %eax,-0x50(%ebp) <== NOT EXECUTED
1222d7: 25 00 f0 00 00 and $0xf000,%eax <== NOT EXECUTED
1222dc: 3d 00 60 00 00 cmp $0x6000,%eax <== NOT EXECUTED
1222e1: 74 07 je 1222ea <rtems_rfs_rtems_stat+0x75><== NOT EXECUTED
1222e3: 3d 00 20 00 00 cmp $0x2000,%eax <== NOT EXECUTED
1222e8: 75 47 jne 122331 <rtems_rfs_rtems_stat+0xbc><== NOT EXECUTED
* @return uint32_t The block number.
*/
static inline uint32_t
rtems_rfs_inode_get_block (rtems_rfs_inode_handle* handle, int block)
{
return rtems_rfs_read_u32 (&handle->node->data.blocks[block]);
1222ea: 8d 4f 1c lea 0x1c(%edi),%ecx <== NOT EXECUTED
1222ed: 0f b6 41 04 movzbl 0x4(%ecx),%eax <== NOT EXECUTED
1222f1: c1 e0 18 shl $0x18,%eax <== NOT EXECUTED
1222f4: 0f b6 51 05 movzbl 0x5(%ecx),%edx <== NOT EXECUTED
1222f8: c1 e2 10 shl $0x10,%edx <== NOT EXECUTED
1222fb: 09 d0 or %edx,%eax <== NOT EXECUTED
1222fd: 0f b6 51 07 movzbl 0x7(%ecx),%edx <== NOT EXECUTED
122301: 09 d0 or %edx,%eax <== NOT EXECUTED
122303: 0f b6 51 06 movzbl 0x6(%ecx),%edx <== NOT EXECUTED
122307: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
12230a: 09 d0 or %edx,%eax <== NOT EXECUTED
rtems_device_minor_number _minor
)
{
union __rtems_dev_t temp;
temp.__overlay.major = _major;
12230c: 0f b6 51 03 movzbl 0x3(%ecx),%edx <== NOT EXECUTED
122310: 0f b6 7f 1c movzbl 0x1c(%edi),%edi <== NOT EXECUTED
122314: c1 e7 18 shl $0x18,%edi <== NOT EXECUTED
122317: 09 fa or %edi,%edx <== NOT EXECUTED
122319: 0f b6 79 01 movzbl 0x1(%ecx),%edi <== NOT EXECUTED
12231d: c1 e7 10 shl $0x10,%edi <== NOT EXECUTED
122320: 09 fa or %edi,%edx <== NOT EXECUTED
122322: 0f b6 49 02 movzbl 0x2(%ecx),%ecx <== NOT EXECUTED
122326: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
122329: 09 ca or %ecx,%edx <== NOT EXECUTED
{
buf->st_rdev =
12232b: 89 53 18 mov %edx,0x18(%ebx) <== NOT EXECUTED
12232e: 89 43 1c mov %eax,0x1c(%ebx) <== NOT EXECUTED
rtems_filesystem_make_dev_t (rtems_rfs_inode_get_block (&inode, 0),
rtems_rfs_inode_get_block (&inode, 1));
}
buf->st_dev = rtems_rfs_fs_device (fs);
122331: 8b 46 0c mov 0xc(%esi),%eax <== NOT EXECUTED
122334: 8b 50 04 mov 0x4(%eax),%edx <== NOT EXECUTED
122337: 8b 00 mov (%eax),%eax <== NOT EXECUTED
122339: 89 03 mov %eax,(%ebx) <== NOT EXECUTED
12233b: 89 53 04 mov %edx,0x4(%ebx) <== NOT EXECUTED
buf->st_ino = ino;
12233e: 8b 45 b4 mov -0x4c(%ebp),%eax <== NOT EXECUTED
122341: 89 43 08 mov %eax,0x8(%ebx) <== NOT EXECUTED
buf->st_mode = rtems_rfs_rtems_mode (mode);
122344: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
122347: ff 75 b0 pushl -0x50(%ebp) <== NOT EXECUTED
12234a: e8 2d 09 00 00 call 122c7c <rtems_rfs_rtems_mode> <== NOT EXECUTED
12234f: 89 43 0c mov %eax,0xc(%ebx) <== NOT EXECUTED
*/
static inline uint16_t
rtems_rfs_inode_get_links (rtems_rfs_inode_handle* handle)
{
uint16_t links;
links = rtems_rfs_read_u16 (&handle->node->links);
122352: 8b 55 cc mov -0x34(%ebp),%edx <== NOT EXECUTED
122355: 0f b6 0a movzbl (%edx),%ecx <== NOT EXECUTED
122358: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
12235b: 0f b6 42 01 movzbl 0x1(%edx),%eax <== NOT EXECUTED
12235f: 09 c8 or %ecx,%eax <== NOT EXECUTED
if (links == 0xffff)
122361: 59 pop %ecx <== NOT EXECUTED
122362: 5f pop %edi <== NOT EXECUTED
122363: 31 c9 xor %ecx,%ecx <== NOT EXECUTED
122365: 66 83 f8 ff cmp $0xffffffff,%ax <== NOT EXECUTED
122369: 0f 95 c1 setne %cl <== NOT EXECUTED
12236c: f7 d9 neg %ecx <== NOT EXECUTED
12236e: 21 c8 and %ecx,%eax <== NOT EXECUTED
buf->st_nlink = rtems_rfs_inode_get_links (&inode);
122370: 66 89 43 10 mov %ax,0x10(%ebx) <== NOT EXECUTED
buf->st_uid = rtems_rfs_inode_get_uid (&inode);
122374: 0f b6 42 06 movzbl 0x6(%edx),%eax <== NOT EXECUTED
122378: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
12237b: 0f b6 4a 07 movzbl 0x7(%edx),%ecx <== NOT EXECUTED
12237f: 09 c8 or %ecx,%eax <== NOT EXECUTED
122381: 66 89 43 12 mov %ax,0x12(%ebx) <== NOT EXECUTED
buf->st_gid = rtems_rfs_inode_get_gid (&inode);
122385: 0f b6 42 04 movzbl 0x4(%edx),%eax <== NOT EXECUTED
122389: c1 e0 18 shl $0x18,%eax <== NOT EXECUTED
12238c: 0f b6 52 05 movzbl 0x5(%edx),%edx <== NOT EXECUTED
122390: c1 e2 10 shl $0x10,%edx <== NOT EXECUTED
122393: 09 d0 or %edx,%eax <== NOT EXECUTED
122395: c1 e8 10 shr $0x10,%eax <== NOT EXECUTED
122398: 66 89 43 14 mov %ax,0x14(%ebx) <== NOT EXECUTED
/*
* Need to check is the ino is an open file. If so we take the values from
* the open file rather than the inode.
*/
shared = rtems_rfs_file_get_shared (fs, ino);
12239c: ff 75 b4 pushl -0x4c(%ebp) <== NOT EXECUTED
12239f: 56 push %esi <== NOT EXECUTED
1223a0: e8 1b 45 01 00 call 1368c0 <rtems_rfs_file_get_shared><== NOT EXECUTED
if (shared)
1223a5: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1223a8: 85 c0 test %eax,%eax <== NOT EXECUTED
1223aa: 8b 53 0c mov 0xc(%ebx),%edx <== NOT EXECUTED
1223ad: 89 55 b4 mov %edx,-0x4c(%ebp) <== NOT EXECUTED
1223b0: 74 54 je 122406 <rtems_rfs_rtems_stat+0x191><== NOT EXECUTED
{
buf->st_atime = rtems_rfs_file_shared_get_atime (shared);
1223b2: 8b 90 8c 00 00 00 mov 0x8c(%eax),%edx <== NOT EXECUTED
1223b8: 89 53 28 mov %edx,0x28(%ebx) <== NOT EXECUTED
buf->st_mtime = rtems_rfs_file_shared_get_mtime (shared);
1223bb: 8b 90 90 00 00 00 mov 0x90(%eax),%edx <== NOT EXECUTED
1223c1: 89 53 30 mov %edx,0x30(%ebx) <== NOT EXECUTED
buf->st_ctime = rtems_rfs_file_shared_get_ctime (shared);
1223c4: 8b 90 94 00 00 00 mov 0x94(%eax),%edx <== NOT EXECUTED
1223ca: 89 53 38 mov %edx,0x38(%ebx) <== NOT EXECUTED
buf->st_blocks = rtems_rfs_file_shared_get_block_count (shared);
1223cd: 8b 90 84 00 00 00 mov 0x84(%eax),%edx <== NOT EXECUTED
1223d3: 89 53 44 mov %edx,0x44(%ebx) <== NOT EXECUTED
if (S_ISLNK (buf->st_mode))
1223d6: 8b 55 b4 mov -0x4c(%ebp),%edx <== NOT EXECUTED
1223d9: 81 e2 00 f0 00 00 and $0xf000,%edx <== NOT EXECUTED
1223df: 81 fa 00 a0 00 00 cmp $0xa000,%edx <== NOT EXECUTED
1223e5: 75 0c jne 1223f3 <rtems_rfs_rtems_stat+0x17e><== NOT EXECUTED
buf->st_size = rtems_rfs_file_shared_get_block_offset (shared);
1223e7: 0f b7 80 88 00 00 00 movzwl 0x88(%eax),%eax <== NOT EXECUTED
1223ee: e9 cb 00 00 00 jmp 1224be <rtems_rfs_rtems_stat+0x249><== NOT EXECUTED
*/
static inline rtems_rfs_pos
rtems_rfs_file_shared_get_size (rtems_rfs_file_system* fs,
rtems_rfs_file_shared* shared)
{
return rtems_rfs_block_get_size (fs, &shared->size);
1223f3: 52 push %edx <== NOT EXECUTED
1223f4: 52 push %edx <== NOT EXECUTED
1223f5: 05 84 00 00 00 add $0x84,%eax <== NOT EXECUTED
1223fa: 50 push %eax <== NOT EXECUTED
1223fb: 56 push %esi <== NOT EXECUTED
1223fc: e8 99 28 01 00 call 134c9a <rtems_rfs_block_get_size><== NOT EXECUTED
122401: e9 d0 00 00 00 jmp 1224d6 <rtems_rfs_rtems_stat+0x261><== NOT EXECUTED
* @return rtems_rfs_time The atime.
*/
static inline rtems_rfs_time
rtems_rfs_inode_get_atime (rtems_rfs_inode_handle* handle)
{
return rtems_rfs_read_u32 (&handle->node->atime);
122406: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED
122409: 8d 48 10 lea 0x10(%eax),%ecx <== NOT EXECUTED
else
buf->st_size = rtems_rfs_file_shared_get_size (fs, shared);
}
else
{
buf->st_atime = rtems_rfs_inode_get_atime (&inode);
12240c: 0f b6 51 03 movzbl 0x3(%ecx),%edx <== NOT EXECUTED
122410: 0f b6 78 10 movzbl 0x10(%eax),%edi <== NOT EXECUTED
122414: c1 e7 18 shl $0x18,%edi <== NOT EXECUTED
122417: 09 fa or %edi,%edx <== NOT EXECUTED
122419: 0f b6 79 01 movzbl 0x1(%ecx),%edi <== NOT EXECUTED
12241d: c1 e7 10 shl $0x10,%edi <== NOT EXECUTED
122420: 09 fa or %edi,%edx <== NOT EXECUTED
122422: 0f b6 49 02 movzbl 0x2(%ecx),%ecx <== NOT EXECUTED
122426: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
122429: 09 ca or %ecx,%edx <== NOT EXECUTED
12242b: 89 53 28 mov %edx,0x28(%ebx) <== NOT EXECUTED
* @return rtems_rfs_time The mtime.
*/
static inline rtems_rfs_time
rtems_rfs_inode_get_mtime (rtems_rfs_inode_handle* handle)
{
return rtems_rfs_read_u32 (&handle->node->mtime);
12242e: 8d 48 14 lea 0x14(%eax),%ecx <== NOT EXECUTED
buf->st_mtime = rtems_rfs_inode_get_mtime (&inode);
122431: 0f b6 51 03 movzbl 0x3(%ecx),%edx <== NOT EXECUTED
122435: 0f b6 78 14 movzbl 0x14(%eax),%edi <== NOT EXECUTED
122439: c1 e7 18 shl $0x18,%edi <== NOT EXECUTED
12243c: 09 fa or %edi,%edx <== NOT EXECUTED
12243e: 0f b6 79 01 movzbl 0x1(%ecx),%edi <== NOT EXECUTED
122442: c1 e7 10 shl $0x10,%edi <== NOT EXECUTED
122445: 09 fa or %edi,%edx <== NOT EXECUTED
122447: 0f b6 49 02 movzbl 0x2(%ecx),%ecx <== NOT EXECUTED
12244b: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
12244e: 09 ca or %ecx,%edx <== NOT EXECUTED
122450: 89 53 30 mov %edx,0x30(%ebx) <== NOT EXECUTED
* @return rtems_rfs_time The ctime.
*/
static inline rtems_rfs_time
rtems_rfs_inode_get_ctime (rtems_rfs_inode_handle* handle)
{
return rtems_rfs_read_u32 (&handle->node->ctime);
122453: 8d 48 18 lea 0x18(%eax),%ecx <== NOT EXECUTED
buf->st_ctime = rtems_rfs_inode_get_ctime (&inode);
122456: 0f b6 51 03 movzbl 0x3(%ecx),%edx <== NOT EXECUTED
12245a: 0f b6 78 18 movzbl 0x18(%eax),%edi <== NOT EXECUTED
12245e: c1 e7 18 shl $0x18,%edi <== NOT EXECUTED
122461: 09 fa or %edi,%edx <== NOT EXECUTED
122463: 0f b6 79 01 movzbl 0x1(%ecx),%edi <== NOT EXECUTED
122467: c1 e7 10 shl $0x10,%edi <== NOT EXECUTED
12246a: 09 fa or %edi,%edx <== NOT EXECUTED
12246c: 0f b6 49 02 movzbl 0x2(%ecx),%ecx <== NOT EXECUTED
122470: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
122473: 09 ca or %ecx,%edx <== NOT EXECUTED
122475: 89 53 38 mov %edx,0x38(%ebx) <== NOT EXECUTED
* @return uint32_t The block count.
*/
static inline uint32_t
rtems_rfs_inode_get_block_count (rtems_rfs_inode_handle* handle)
{
return rtems_rfs_read_u32 (&handle->node->block_count);
122478: 8d 48 0c lea 0xc(%eax),%ecx <== NOT EXECUTED
buf->st_blocks = rtems_rfs_inode_get_block_count (&inode);
12247b: 0f b6 51 03 movzbl 0x3(%ecx),%edx <== NOT EXECUTED
12247f: 0f b6 78 0c movzbl 0xc(%eax),%edi <== NOT EXECUTED
122483: c1 e7 18 shl $0x18,%edi <== NOT EXECUTED
122486: 09 fa or %edi,%edx <== NOT EXECUTED
122488: 0f b6 79 01 movzbl 0x1(%ecx),%edi <== NOT EXECUTED
12248c: c1 e7 10 shl $0x10,%edi <== NOT EXECUTED
12248f: 09 fa or %edi,%edx <== NOT EXECUTED
122491: 0f b6 49 02 movzbl 0x2(%ecx),%ecx <== NOT EXECUTED
122495: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
122498: 09 ca or %ecx,%edx <== NOT EXECUTED
12249a: 89 53 44 mov %edx,0x44(%ebx) <== NOT EXECUTED
if (S_ISLNK (buf->st_mode))
12249d: 8b 55 b4 mov -0x4c(%ebp),%edx <== NOT EXECUTED
1224a0: 81 e2 00 f0 00 00 and $0xf000,%edx <== NOT EXECUTED
1224a6: 81 fa 00 a0 00 00 cmp $0xa000,%edx <== NOT EXECUTED
1224ac: 75 1c jne 1224ca <rtems_rfs_rtems_stat+0x255><== NOT EXECUTED
buf->st_size = rtems_rfs_inode_get_block_offset (&inode);
1224ae: 0f b6 50 0a movzbl 0xa(%eax),%edx <== NOT EXECUTED
1224b2: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
1224b5: 0f b6 40 0b movzbl 0xb(%eax),%eax <== NOT EXECUTED
1224b9: 09 d0 or %edx,%eax <== NOT EXECUTED
1224bb: 0f b7 c0 movzwl %ax,%eax <== NOT EXECUTED
1224be: 89 43 20 mov %eax,0x20(%ebx) <== NOT EXECUTED
1224c1: c7 43 24 00 00 00 00 movl $0x0,0x24(%ebx) <== NOT EXECUTED
1224c8: eb 15 jmp 1224df <rtems_rfs_rtems_stat+0x26a><== NOT EXECUTED
else
buf->st_size = rtems_rfs_inode_get_size (fs, &inode);
1224ca: 57 push %edi <== NOT EXECUTED
1224cb: 57 push %edi <== NOT EXECUTED
1224cc: 8d 45 c0 lea -0x40(%ebp),%eax <== NOT EXECUTED
1224cf: 50 push %eax <== NOT EXECUTED
1224d0: 56 push %esi <== NOT EXECUTED
1224d1: e8 aa 63 01 00 call 138880 <rtems_rfs_inode_get_size><== NOT EXECUTED
1224d6: 89 43 20 mov %eax,0x20(%ebx) <== NOT EXECUTED
1224d9: 89 53 24 mov %edx,0x24(%ebx) <== NOT EXECUTED
1224dc: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
buf->st_blksize = rtems_rfs_fs_block_size (fs);
1224df: 8b 46 08 mov 0x8(%esi),%eax <== NOT EXECUTED
1224e2: 89 43 40 mov %eax,0x40(%ebx) <== NOT EXECUTED
rc = rtems_rfs_inode_close (fs, &inode);
1224e5: 53 push %ebx <== NOT EXECUTED
1224e6: 53 push %ebx <== NOT EXECUTED
1224e7: 8d 45 c0 lea -0x40(%ebp),%eax <== NOT EXECUTED
1224ea: 50 push %eax <== NOT EXECUTED
1224eb: 56 push %esi <== NOT EXECUTED
1224ec: e8 57 66 01 00 call 138b48 <rtems_rfs_inode_close> <== NOT EXECUTED
1224f1: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc > 0)
1224f3: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1224f6: 85 c0 test %eax,%eax <== NOT EXECUTED
1224f8: 7e 13 jle 12250d <rtems_rfs_rtems_stat+0x298><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
1224fa: 89 f0 mov %esi,%eax <== NOT EXECUTED
1224fc: e8 ba f3 ff ff call 1218bb <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("stat: closing inode", rc);
122501: e8 0e bb 01 00 call 13e014 <__errno> <== NOT EXECUTED
122506: 89 18 mov %ebx,(%eax) <== NOT EXECUTED
122508: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
12250b: eb 09 jmp 122516 <rtems_rfs_rtems_stat+0x2a1><== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
12250d: 89 f0 mov %esi,%eax <== NOT EXECUTED
12250f: e8 a7 f3 ff ff call 1218bb <rtems_rfs_rtems_unlock><== NOT EXECUTED
122514: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
}
122516: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
122519: 5b pop %ebx <== NOT EXECUTED
12251a: 5e pop %esi <== NOT EXECUTED
12251b: 5f pop %edi <== NOT EXECUTED
12251c: c9 leave <== NOT EXECUTED
12251d: c3 ret <== NOT EXECUTED
00121e48 <rtems_rfs_rtems_statvfs>:
* @return int
*/
int
rtems_rfs_rtems_statvfs (rtems_filesystem_location_info_t* pathloc,
struct statvfs* sb)
{
121e48: 55 push %ebp <== NOT EXECUTED
121e49: 89 e5 mov %esp,%ebp <== NOT EXECUTED
121e4b: 56 push %esi <== NOT EXECUTED
121e4c: 53 push %ebx <== NOT EXECUTED
121e4d: 83 ec 14 sub $0x14,%esp <== NOT EXECUTED
121e50: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
121e53: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
121e56: 8b 40 10 mov 0x10(%eax),%eax <== NOT EXECUTED
121e59: 8b 70 34 mov 0x34(%eax),%esi <== NOT EXECUTED
size_t blocks;
size_t inodes;
rtems_rfs_group_usage (fs, &blocks, &inodes);
121e5c: 8d 45 f0 lea -0x10(%ebp),%eax <== NOT EXECUTED
121e5f: 50 push %eax <== NOT EXECUTED
121e60: 8d 45 f4 lea -0xc(%ebp),%eax <== NOT EXECUTED
121e63: 50 push %eax <== NOT EXECUTED
121e64: 56 push %esi <== NOT EXECUTED
121e65: e8 fa 65 01 00 call 138464 <rtems_rfs_group_usage> <== NOT EXECUTED
sb->f_bsize = rtems_rfs_fs_block_size (fs);
121e6a: 8b 46 08 mov 0x8(%esi),%eax <== NOT EXECUTED
121e6d: 89 03 mov %eax,(%ebx) <== NOT EXECUTED
sb->f_frsize = rtems_rfs_fs_media_block_size (fs);
121e6f: 8b 46 0c mov 0xc(%esi),%eax <== NOT EXECUTED
121e72: 8b 50 24 mov 0x24(%eax),%edx <== NOT EXECUTED
121e75: 89 53 04 mov %edx,0x4(%ebx) <== NOT EXECUTED
sb->f_blocks = rtems_rfs_fs_media_blocks (fs);
121e78: 8b 50 1c mov 0x1c(%eax),%edx <== NOT EXECUTED
121e7b: 89 53 08 mov %edx,0x8(%ebx) <== NOT EXECUTED
121e7e: c7 43 0c 00 00 00 00 movl $0x0,0xc(%ebx) <== NOT EXECUTED
sb->f_bfree = rtems_rfs_fs_blocks (fs) - blocks;
121e85: 8b 46 04 mov 0x4(%esi),%eax <== NOT EXECUTED
121e88: 2b 45 f4 sub -0xc(%ebp),%eax <== NOT EXECUTED
121e8b: 89 43 10 mov %eax,0x10(%ebx) <== NOT EXECUTED
121e8e: c7 43 14 00 00 00 00 movl $0x0,0x14(%ebx) <== NOT EXECUTED
sb->f_bavail = sb->f_bfree;
121e95: 89 43 18 mov %eax,0x18(%ebx) <== NOT EXECUTED
121e98: c7 43 1c 00 00 00 00 movl $0x0,0x1c(%ebx) <== NOT EXECUTED
sb->f_files = rtems_rfs_fs_inodes (fs);
121e9f: 8b 46 10 mov 0x10(%esi),%eax <== NOT EXECUTED
121ea2: 89 43 20 mov %eax,0x20(%ebx) <== NOT EXECUTED
sb->f_ffree = rtems_rfs_fs_inodes (fs) - inodes;
121ea5: 2b 45 f0 sub -0x10(%ebp),%eax <== NOT EXECUTED
121ea8: 89 43 24 mov %eax,0x24(%ebx) <== NOT EXECUTED
sb->f_favail = sb->f_ffree;
121eab: 89 43 28 mov %eax,0x28(%ebx) <== NOT EXECUTED
sb->f_fsid = RTEMS_RFS_SB_MAGIC;
121eae: c7 43 2c 01 20 09 28 movl $0x28092001,0x2c(%ebx) <== NOT EXECUTED
sb->f_flag = rtems_rfs_fs_flags (fs);
121eb5: 8b 06 mov (%esi),%eax <== NOT EXECUTED
121eb7: 89 43 30 mov %eax,0x30(%ebx) <== NOT EXECUTED
sb->f_namemax = rtems_rfs_fs_max_name (fs);
121eba: 8b 46 18 mov 0x18(%esi),%eax <== NOT EXECUTED
121ebd: 89 43 34 mov %eax,0x34(%ebx) <== NOT EXECUTED
return 0;
}
121ec0: 31 c0 xor %eax,%eax <== NOT EXECUTED
121ec2: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
121ec5: 5b pop %ebx <== NOT EXECUTED
121ec6: 5e pop %esi <== NOT EXECUTED
121ec7: c9 leave <== NOT EXECUTED
121ec8: c3 ret <== NOT EXECUTED
00122579 <rtems_rfs_rtems_symlink>:
int
rtems_rfs_rtems_symlink (rtems_filesystem_location_info_t* parent_loc,
const char* link_name,
const char* node_name)
{
122579: 55 push %ebp <== NOT EXECUTED
12257a: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12257c: 57 push %edi <== NOT EXECUTED
12257d: 56 push %esi <== NOT EXECUTED
12257e: 53 push %ebx <== NOT EXECUTED
12257f: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
122582: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (parent_loc);
122585: 8b 50 10 mov 0x10(%eax),%edx <== NOT EXECUTED
122588: 8b 5a 34 mov 0x34(%edx),%ebx <== NOT EXECUTED
rtems_rfs_ino parent = rtems_rfs_rtems_get_pathloc_ino (parent_loc);
12258b: 8b 30 mov (%eax),%esi <== NOT EXECUTED
uid_t uid;
gid_t gid;
int rc;
#if defined(RTEMS_POSIX_API)
uid = geteuid ();
12258d: e8 0e 5d 00 00 call 1282a0 <geteuid> <== NOT EXECUTED
122592: 66 89 45 e4 mov %ax,-0x1c(%ebp) <== NOT EXECUTED
gid = getegid ();
122596: e8 f5 5c 00 00 call 128290 <getegid> <== NOT EXECUTED
12259b: 66 89 45 e6 mov %ax,-0x1a(%ebp) <== NOT EXECUTED
#else
uid = 0;
gid = 0;
#endif
rtems_rfs_rtems_lock (fs);
12259f: 89 d8 mov %ebx,%eax <== NOT EXECUTED
1225a1: e8 fc f2 ff ff call 1218a2 <rtems_rfs_rtems_lock> <== NOT EXECUTED
rc = rtems_rfs_symlink (fs, node_name, strlen (node_name),
link_name, strlen (link_name),
1225a6: 83 ca ff or $0xffffffff,%edx <== NOT EXECUTED
1225a9: 31 c0 xor %eax,%eax <== NOT EXECUTED
1225ab: 89 d1 mov %edx,%ecx <== NOT EXECUTED
1225ad: 8b 7d 0c mov 0xc(%ebp),%edi <== NOT EXECUTED
1225b0: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED
1225b2: f7 d1 not %ecx <== NOT EXECUTED
1225b4: 49 dec %ecx <== NOT EXECUTED
1225b5: 89 4d e0 mov %ecx,-0x20(%ebp) <== NOT EXECUTED
gid = 0;
#endif
rtems_rfs_rtems_lock (fs);
rc = rtems_rfs_symlink (fs, node_name, strlen (node_name),
1225b8: 89 d1 mov %edx,%ecx <== NOT EXECUTED
1225ba: 8b 7d 10 mov 0x10(%ebp),%edi <== NOT EXECUTED
1225bd: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED
1225bf: 89 ca mov %ecx,%edx <== NOT EXECUTED
1225c1: f7 d2 not %edx <== NOT EXECUTED
1225c3: 4a dec %edx <== NOT EXECUTED
1225c4: 56 push %esi <== NOT EXECUTED
1225c5: 0f b7 45 e6 movzwl -0x1a(%ebp),%eax <== NOT EXECUTED
1225c9: 50 push %eax <== NOT EXECUTED
1225ca: 0f b7 45 e4 movzwl -0x1c(%ebp),%eax <== NOT EXECUTED
1225ce: 50 push %eax <== NOT EXECUTED
1225cf: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
1225d2: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
1225d5: 52 push %edx <== NOT EXECUTED
1225d6: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
1225d9: 53 push %ebx <== NOT EXECUTED
1225da: e8 db 6a 01 00 call 1390ba <rtems_rfs_symlink> <== NOT EXECUTED
1225df: 89 c6 mov %eax,%esi <== NOT EXECUTED
link_name, strlen (link_name),
uid, gid, parent);
if (rc)
1225e1: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
1225e4: 85 c0 test %eax,%eax <== NOT EXECUTED
1225e6: 74 13 je 1225fb <rtems_rfs_rtems_symlink+0x82><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
1225e8: 89 d8 mov %ebx,%eax <== NOT EXECUTED
1225ea: e8 cc f2 ff ff call 1218bb <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("symlink: linking", rc);
1225ef: e8 20 ba 01 00 call 13e014 <__errno> <== NOT EXECUTED
1225f4: 89 30 mov %esi,(%eax) <== NOT EXECUTED
1225f6: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
1225f9: eb 09 jmp 122604 <rtems_rfs_rtems_symlink+0x8b><== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
1225fb: 89 d8 mov %ebx,%eax <== NOT EXECUTED
1225fd: e8 b9 f2 ff ff call 1218bb <rtems_rfs_rtems_unlock><== NOT EXECUTED
122602: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
}
122604: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
122607: 5b pop %ebx <== NOT EXECUTED
122608: 5e pop %esi <== NOT EXECUTED
122609: 5f pop %edi <== NOT EXECUTED
12260a: c9 leave <== NOT EXECUTED
12260b: c3 ret <== NOT EXECUTED
00122046 <rtems_rfs_rtems_unlink>:
*/
int
rtems_rfs_rtems_unlink (rtems_filesystem_location_info_t* parent_loc,
rtems_filesystem_location_info_t* loc)
{
122046: 55 push %ebp <== NOT EXECUTED
122047: 89 e5 mov %esp,%ebp <== NOT EXECUTED
122049: 57 push %edi <== NOT EXECUTED
12204a: 56 push %esi <== NOT EXECUTED
12204b: 53 push %ebx <== NOT EXECUTED
12204c: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
12204f: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
122052: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (parent_loc);
122055: 8b 4a 10 mov 0x10(%edx),%ecx <== NOT EXECUTED
122058: 8b 59 34 mov 0x34(%ecx),%ebx <== NOT EXECUTED
rtems_rfs_ino parent = rtems_rfs_rtems_get_pathloc_ino (parent_loc);
12205b: 8b 32 mov (%edx),%esi <== NOT EXECUTED
rtems_rfs_ino ino = rtems_rfs_rtems_get_pathloc_ino (loc);
12205d: 8b 38 mov (%eax),%edi <== NOT EXECUTED
uint32_t doff = rtems_rfs_rtems_get_pathloc_doff (loc);
12205f: 8b 50 04 mov 0x4(%eax),%edx <== NOT EXECUTED
int rc;
rtems_rfs_rtems_lock (fs);
122062: 89 d8 mov %ebx,%eax <== NOT EXECUTED
122064: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED
122067: e8 36 f8 ff ff call 1218a2 <rtems_rfs_rtems_lock> <== NOT EXECUTED
if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_UNLINK))
printf("rtems-rfs-rtems: unlink: parent:%" PRId32 " doff:%" PRIu32 " ino:%" PRId32 "\n",
parent, doff, ino);
rc = rtems_rfs_unlink (fs, parent, ino, doff, rtems_rfs_unlink_dir_denied);
12206c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12206f: 6a 00 push $0x0 <== NOT EXECUTED
122071: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
122074: 52 push %edx <== NOT EXECUTED
122075: 57 push %edi <== NOT EXECUTED
122076: 56 push %esi <== NOT EXECUTED
122077: 53 push %ebx <== NOT EXECUTED
122078: e8 23 72 01 00 call 1392a0 <rtems_rfs_unlink> <== NOT EXECUTED
12207d: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc)
12207f: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
122082: 85 c0 test %eax,%eax <== NOT EXECUTED
122084: 74 13 je 122099 <rtems_rfs_rtems_unlink+0x53><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
122086: 89 d8 mov %ebx,%eax <== NOT EXECUTED
122088: e8 2e f8 ff ff call 1218bb <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("unlink: unlink inode", rc);
12208d: e8 82 bf 01 00 call 13e014 <__errno> <== NOT EXECUTED
122092: 89 30 mov %esi,(%eax) <== NOT EXECUTED
122094: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
122097: eb 09 jmp 1220a2 <rtems_rfs_rtems_unlink+0x5c><== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
122099: 89 d8 mov %ebx,%eax <== NOT EXECUTED
12209b: e8 1b f8 ff ff call 1218bb <rtems_rfs_rtems_unlock><== NOT EXECUTED
1220a0: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
}
1220a2: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1220a5: 5b pop %ebx <== NOT EXECUTED
1220a6: 5e pop %esi <== NOT EXECUTED
1220a7: 5f pop %edi <== NOT EXECUTED
1220a8: c9 leave <== NOT EXECUTED
1220a9: c3 ret <== NOT EXECUTED
001218bb <rtems_rfs_rtems_unlock>:
/**
* Unlock the RFS file system.
*/
static inline void
rtems_rfs_rtems_unlock (rtems_rfs_file_system* fs)
{
1218bb: 55 push %ebp <== NOT EXECUTED
1218bc: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1218be: 53 push %ebx <== NOT EXECUTED
1218bf: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED
rtems_rfs_rtems_private* rtems = rtems_rfs_fs_user (fs);
1218c2: 8b 58 7c mov 0x7c(%eax),%ebx <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
1218c5: 50 push %eax <== NOT EXECUTED
1218c6: e8 6d 40 01 00 call 135938 <rtems_rfs_buffers_release><== NOT EXECUTED
*/
static inline int
rtems_rfs_mutex_unlock (rtems_rfs_mutex* mutex)
{
#if __rtems__
rtems_status_code sc = rtems_semaphore_release (*mutex);
1218cb: 58 pop %eax <== NOT EXECUTED
1218cc: ff 33 pushl (%ebx) <== NOT EXECUTED
1218ce: e8 21 f4 fe ff call 110cf4 <rtems_semaphore_release><== NOT EXECUTED
1218d3: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_rfs_mutex_unlock (&rtems->access);
}
1218d6: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
1218d9: c9 leave <== NOT EXECUTED
1218da: c3 ret <== NOT EXECUTED
00121ad1 <rtems_rfs_rtems_utime>:
int
rtems_rfs_rtems_utime(rtems_filesystem_location_info_t* pathloc,
time_t atime,
time_t mtime)
{
121ad1: 55 push %ebp <== NOT EXECUTED
121ad2: 89 e5 mov %esp,%ebp <== NOT EXECUTED
121ad4: 57 push %edi <== NOT EXECUTED
121ad5: 56 push %esi <== NOT EXECUTED
121ad6: 53 push %ebx <== NOT EXECUTED
121ad7: 83 ec 4c sub $0x4c,%esp <== NOT EXECUTED
121ada: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
121add: 8b 75 0c mov 0xc(%ebp),%esi <== NOT EXECUTED
121ae0: 8b 4d 10 mov 0x10(%ebp),%ecx <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
121ae3: 8b 50 10 mov 0x10(%eax),%edx <== NOT EXECUTED
121ae6: 8b 5a 34 mov 0x34(%edx),%ebx <== NOT EXECUTED
rtems_rfs_ino ino = rtems_rfs_rtems_get_pathloc_ino (pathloc);
121ae9: 8b 10 mov (%eax),%edx <== NOT EXECUTED
rtems_rfs_inode_handle inode;
int rc;
rtems_rfs_rtems_lock (fs);
121aeb: 89 d8 mov %ebx,%eax <== NOT EXECUTED
121aed: 89 55 b4 mov %edx,-0x4c(%ebp) <== NOT EXECUTED
121af0: 89 4d b0 mov %ecx,-0x50(%ebp) <== NOT EXECUTED
121af3: e8 aa fd ff ff call 1218a2 <rtems_rfs_rtems_lock> <== NOT EXECUTED
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
121af8: 6a 01 push $0x1 <== NOT EXECUTED
121afa: 8d 7d c0 lea -0x40(%ebp),%edi <== NOT EXECUTED
121afd: 57 push %edi <== NOT EXECUTED
121afe: 8b 55 b4 mov -0x4c(%ebp),%edx <== NOT EXECUTED
121b01: 52 push %edx <== NOT EXECUTED
121b02: 53 push %ebx <== NOT EXECUTED
121b03: e8 af 70 01 00 call 138bb7 <rtems_rfs_inode_open> <== NOT EXECUTED
121b08: 89 c2 mov %eax,%edx <== NOT EXECUTED
if (rc)
121b0a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
121b0d: 85 c0 test %eax,%eax <== NOT EXECUTED
121b0f: 8b 4d b0 mov -0x50(%ebp),%ecx <== NOT EXECUTED
121b12: 74 16 je 121b2a <rtems_rfs_rtems_utime+0x59><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
121b14: 89 d8 mov %ebx,%eax <== NOT EXECUTED
121b16: 89 55 b4 mov %edx,-0x4c(%ebp) <== NOT EXECUTED
121b19: e8 9d fd ff ff call 1218bb <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("utime: read inode", rc);
121b1e: e8 f1 c4 01 00 call 13e014 <__errno> <== NOT EXECUTED
121b23: 8b 55 b4 mov -0x4c(%ebp),%edx <== NOT EXECUTED
121b26: 89 10 mov %edx,(%eax) <== NOT EXECUTED
121b28: eb 74 jmp 121b9e <rtems_rfs_rtems_utime+0xcd><== NOT EXECUTED
*/
static inline void
rtems_rfs_inode_set_atime (rtems_rfs_inode_handle* handle,
rtems_rfs_time atime)
{
rtems_rfs_write_u32 (&handle->node->atime, atime);
121b2a: 89 f2 mov %esi,%edx <== NOT EXECUTED
121b2c: c1 ea 18 shr $0x18,%edx <== NOT EXECUTED
121b2f: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED
121b32: 88 50 10 mov %dl,0x10(%eax) <== NOT EXECUTED
121b35: 89 f2 mov %esi,%edx <== NOT EXECUTED
121b37: c1 ea 10 shr $0x10,%edx <== NOT EXECUTED
121b3a: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED
121b3d: 88 50 11 mov %dl,0x11(%eax) <== NOT EXECUTED
121b40: 89 f2 mov %esi,%edx <== NOT EXECUTED
121b42: c1 ea 08 shr $0x8,%edx <== NOT EXECUTED
121b45: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED
121b48: 88 50 12 mov %dl,0x12(%eax) <== NOT EXECUTED
121b4b: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED
121b4e: 89 f2 mov %esi,%edx <== NOT EXECUTED
121b50: 88 50 13 mov %dl,0x13(%eax) <== NOT EXECUTED
*/
static inline void
rtems_rfs_inode_set_mtime (rtems_rfs_inode_handle* handle,
rtems_rfs_time mtime)
{
rtems_rfs_write_u32 (&handle->node->mtime, mtime);
121b53: 89 ca mov %ecx,%edx <== NOT EXECUTED
121b55: c1 ea 18 shr $0x18,%edx <== NOT EXECUTED
121b58: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED
121b5b: 88 50 14 mov %dl,0x14(%eax) <== NOT EXECUTED
121b5e: 89 ca mov %ecx,%edx <== NOT EXECUTED
121b60: c1 ea 10 shr $0x10,%edx <== NOT EXECUTED
121b63: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED
121b66: 88 50 15 mov %dl,0x15(%eax) <== NOT EXECUTED
121b69: 89 ca mov %ecx,%edx <== NOT EXECUTED
121b6b: c1 ea 08 shr $0x8,%edx <== NOT EXECUTED
121b6e: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED
121b71: 88 50 16 mov %dl,0x16(%eax) <== NOT EXECUTED
121b74: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED
121b77: 88 48 17 mov %cl,0x17(%eax) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
121b7a: c6 45 d0 01 movb $0x1,-0x30(%ebp) <== NOT EXECUTED
}
rtems_rfs_inode_set_atime (&inode, atime);
rtems_rfs_inode_set_mtime (&inode, mtime);
rc = rtems_rfs_inode_close (fs, &inode);
121b7e: 50 push %eax <== NOT EXECUTED
121b7f: 50 push %eax <== NOT EXECUTED
121b80: 57 push %edi <== NOT EXECUTED
121b81: 53 push %ebx <== NOT EXECUTED
121b82: e8 c1 6f 01 00 call 138b48 <rtems_rfs_inode_close> <== NOT EXECUTED
121b87: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc)
121b89: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
121b8c: 85 c0 test %eax,%eax <== NOT EXECUTED
121b8e: 74 13 je 121ba3 <rtems_rfs_rtems_utime+0xd2><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
121b90: 89 d8 mov %ebx,%eax <== NOT EXECUTED
121b92: e8 24 fd ff ff call 1218bb <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("utime: closing inode", rc);
121b97: e8 78 c4 01 00 call 13e014 <__errno> <== NOT EXECUTED
121b9c: 89 30 mov %esi,(%eax) <== NOT EXECUTED
121b9e: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
121ba1: eb 09 jmp 121bac <rtems_rfs_rtems_utime+0xdb><== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
121ba3: 89 d8 mov %ebx,%eax <== NOT EXECUTED
121ba5: e8 11 fd ff ff call 1218bb <rtems_rfs_rtems_unlock><== NOT EXECUTED
121baa: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
}
121bac: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
121baf: 5b pop %ebx <== NOT EXECUTED
121bb0: 5e pop %esi <== NOT EXECUTED
121bb1: 5f pop %edi <== NOT EXECUTED
121bb2: c9 leave <== NOT EXECUTED
121bb3: c3 ret <== NOT EXECUTED
00137784 <rtems_rfs_rup_quotient>:
* Return a rounded up integer quotient given a dividend and divisor. That is:
* "quotient = dividend / divisor"
*/
int
rtems_rfs_rup_quotient (uint32_t dividend, uint32_t divisor)
{
137784: 55 push %ebp <== NOT EXECUTED
137785: 89 e5 mov %esp,%ebp <== NOT EXECUTED
137787: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
13778a: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED
if (dividend == 0)
13778d: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
137792: 85 d2 test %edx,%edx <== NOT EXECUTED
137794: 74 08 je 13779e <rtems_rfs_rup_quotient+0x1a><== NOT EXECUTED
return 1;
return ((dividend - 1) / divisor) + 1;
137796: 8d 42 ff lea -0x1(%edx),%eax <== NOT EXECUTED
137799: 31 d2 xor %edx,%edx <== NOT EXECUTED
13779b: f7 f1 div %ecx <== NOT EXECUTED
13779d: 40 inc %eax <== NOT EXECUTED
}
13779e: c9 leave <== NOT EXECUTED
13779f: c3 ret <== NOT EXECUTED
00123719 <rtems_rfs_shell_block>:
return 0;
}
static int
rtems_rfs_shell_block (rtems_rfs_file_system* fs, int argc, char *argv[])
{
123719: 55 push %ebp <== NOT EXECUTED
12371a: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12371c: 57 push %edi <== NOT EXECUTED
12371d: 56 push %esi <== NOT EXECUTED
12371e: 53 push %ebx <== NOT EXECUTED
12371f: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED
123722: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
uint8_t* data;
bool state;
int b;
int rc;
if (argc <= 1)
123725: 83 7d 0c 01 cmpl $0x1,0xc(%ebp) <== NOT EXECUTED
123729: 7f 17 jg 123742 <rtems_rfs_shell_block+0x29><== NOT EXECUTED
{
printf ("error: no block number provided\n");
12372b: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12372e: 68 ea a3 15 00 push $0x15a3ea <== NOT EXECUTED
123733: e8 10 ea 01 00 call 142148 <puts> <== NOT EXECUTED
123738: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
12373d: e9 70 01 00 00 jmp 1238b2 <rtems_rfs_shell_block+0x199><== NOT EXECUTED
return 1;
}
block = strtoul (argv[1], 0, 0);
123742: 50 push %eax <== NOT EXECUTED
123743: 6a 00 push $0x0 <== NOT EXECUTED
123745: 6a 00 push $0x0 <== NOT EXECUTED
123747: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
12374a: ff 70 04 pushl 0x4(%eax) <== NOT EXECUTED
12374d: e8 b2 1c 02 00 call 145404 <strtoul> <== NOT EXECUTED
123752: 89 c6 mov %eax,%esi <== NOT EXECUTED
123754: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
123757: 6a 00 push $0x0 <== NOT EXECUTED
123759: 6a 00 push $0x0 <== NOT EXECUTED
12375b: 8b 43 7c mov 0x7c(%ebx),%eax <== NOT EXECUTED
12375e: ff 30 pushl (%eax) <== NOT EXECUTED
123760: e8 a3 d4 fe ff call 110c08 <rtems_semaphore_obtain><== NOT EXECUTED
rtems_rfs_shell_lock_rfs (fs);
rc = rtems_rfs_group_bitmap_test (fs, false, block, &state);
123765: 8d 45 e7 lea -0x19(%ebp),%eax <== NOT EXECUTED
123768: 50 push %eax <== NOT EXECUTED
123769: 56 push %esi <== NOT EXECUTED
12376a: 6a 00 push $0x0 <== NOT EXECUTED
12376c: 53 push %ebx <== NOT EXECUTED
12376d: e8 58 4d 01 00 call 1384ca <rtems_rfs_group_bitmap_test><== NOT EXECUTED
123772: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc > 0)
123774: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
123777: 85 c0 test %eax,%eax <== NOT EXECUTED
123779: 7e 1a jle 123795 <rtems_rfs_shell_block+0x7c><== NOT EXECUTED
{
rtems_rfs_shell_unlock_rfs (fs);
12377b: 89 d8 mov %ebx,%eax <== NOT EXECUTED
12377d: e8 2f f8 ff ff call 122fb1 <rtems_rfs_shell_unlock_rfs><== NOT EXECUTED
printf ("error: testing block state: block=%" PRIu32 ": (%d) %s\n",
123782: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
123785: 57 push %edi <== NOT EXECUTED
123786: e8 31 02 02 00 call 1439bc <strerror> <== NOT EXECUTED
12378b: 50 push %eax <== NOT EXECUTED
12378c: 57 push %edi <== NOT EXECUTED
12378d: 56 push %esi <== NOT EXECUTED
12378e: 68 0a a4 15 00 push $0x15a40a <== NOT EXECUTED
123793: eb 7d jmp 123812 <rtems_rfs_shell_block+0xf9><== NOT EXECUTED
block, rc, strerror (rc));
return 1;
}
printf (" %5" PRIu32 ": block %s\n", block, state ? "allocated" : "free");
123795: b8 3a a4 15 00 mov $0x15a43a,%eax <== NOT EXECUTED
12379a: 80 7d e7 00 cmpb $0x0,-0x19(%ebp) <== NOT EXECUTED
12379e: 75 05 jne 1237a5 <rtems_rfs_shell_block+0x8c><== NOT EXECUTED
1237a0: b8 71 84 15 00 mov $0x158471,%eax <== NOT EXECUTED
1237a5: 57 push %edi <== NOT EXECUTED
1237a6: 50 push %eax <== NOT EXECUTED
1237a7: 56 push %esi <== NOT EXECUTED
1237a8: 68 44 a4 15 00 push $0x15a444 <== NOT EXECUTED
1237ad: e8 82 e7 01 00 call 141f34 <printf> <== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_open (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
handle->dirty = false;
1237b2: c6 45 d8 00 movb $0x0,-0x28(%ebp) <== NOT EXECUTED
handle->bnum = 0;
1237b6: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp) <== NOT EXECUTED
handle->buffer = NULL;
1237bd: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp) <== NOT EXECUTED
printf ("error: opening buffer handle: block=%" PRIu32 ": (%d) %s\n",
block, rc, strerror (rc));
return 1;
}
rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, true);
1237c4: 6a 01 push $0x1 <== NOT EXECUTED
1237c6: 56 push %esi <== NOT EXECUTED
1237c7: 8d 55 d8 lea -0x28(%ebp),%edx <== NOT EXECUTED
1237ca: 52 push %edx <== NOT EXECUTED
1237cb: 53 push %ebx <== NOT EXECUTED
1237cc: 89 55 d4 mov %edx,-0x2c(%ebp) <== NOT EXECUTED
1237cf: e8 86 23 01 00 call 135b5a <rtems_rfs_buffer_handle_request><== NOT EXECUTED
1237d4: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc > 0)
1237d6: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
1237d9: 85 c0 test %eax,%eax <== NOT EXECUTED
1237db: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED
1237de: 7e 44 jle 123824 <rtems_rfs_shell_block+0x10b><== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_close (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
rtems_rfs_buffer_handle_release (fs, handle);
1237e0: 51 push %ecx <== NOT EXECUTED
1237e1: 51 push %ecx <== NOT EXECUTED
1237e2: 52 push %edx <== NOT EXECUTED
1237e3: 53 push %ebx <== NOT EXECUTED
1237e4: e8 7a 22 01 00 call 135a63 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
handle->dirty = false;
1237e9: c6 45 d8 00 movb $0x0,-0x28(%ebp) <== NOT EXECUTED
handle->bnum = 0;
1237ed: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp) <== NOT EXECUTED
handle->buffer = NULL;
1237f4: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp) <== NOT EXECUTED
{
rtems_rfs_buffer_handle_close (fs, &buffer);
rtems_rfs_shell_unlock_rfs (fs);
1237fb: 89 d8 mov %ebx,%eax <== NOT EXECUTED
1237fd: e8 af f7 ff ff call 122fb1 <rtems_rfs_shell_unlock_rfs><== NOT EXECUTED
printf ("error: requesting buffer handle: block=%" PRIu32 ": (%d) %s\n",
123802: 89 3c 24 mov %edi,(%esp) <== NOT EXECUTED
123805: e8 b2 01 02 00 call 1439bc <strerror> <== NOT EXECUTED
12380a: 50 push %eax <== NOT EXECUTED
12380b: 57 push %edi <== NOT EXECUTED
12380c: 56 push %esi <== NOT EXECUTED
12380d: 68 55 a4 15 00 push $0x15a455 <== NOT EXECUTED
123812: e8 1d e7 01 00 call 141f34 <printf> <== NOT EXECUTED
123817: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
block, rc, strerror (rc));
return 1;
12381c: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
12381f: e9 91 00 00 00 jmp 1238b5 <rtems_rfs_shell_block+0x19c><== NOT EXECUTED
}
for (b = 0, data = rtems_rfs_buffer_data (&buffer);
123824: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
123827: 8b 78 20 mov 0x20(%eax),%edi <== NOT EXECUTED
12382a: 31 f6 xor %esi,%esi <== NOT EXECUTED
12382c: eb 4e jmp 12387c <rtems_rfs_shell_block+0x163><== NOT EXECUTED
b < rtems_rfs_fs_block_size (fs);
b++, data++)
{
int mod = b % 16;
if (mod == 0)
12382e: 89 f0 mov %esi,%eax <== NOT EXECUTED
123830: 83 e0 0f and $0xf,%eax <== NOT EXECUTED
123833: 75 20 jne 123855 <rtems_rfs_shell_block+0x13c><== NOT EXECUTED
{
if (b)
123835: 85 f6 test %esi,%esi <== NOT EXECUTED
123837: 74 0d je 123846 <rtems_rfs_shell_block+0x12d><== NOT EXECUTED
printf ("\n");
123839: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12383c: 6a 0a push $0xa <== NOT EXECUTED
12383e: e8 51 e8 01 00 call 142094 <putchar> <== NOT EXECUTED
123843: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
printf ("%04x ", b);
123846: 52 push %edx <== NOT EXECUTED
123847: 52 push %edx <== NOT EXECUTED
123848: 56 push %esi <== NOT EXECUTED
123849: 68 02 58 15 00 push $0x155802 <== NOT EXECUTED
12384e: e8 e1 e6 01 00 call 141f34 <printf> <== NOT EXECUTED
123853: eb 0f jmp 123864 <rtems_rfs_shell_block+0x14b><== NOT EXECUTED
}
if (mod == 8)
123855: 83 f8 08 cmp $0x8,%eax <== NOT EXECUTED
123858: 75 0d jne 123867 <rtems_rfs_shell_block+0x14e><== NOT EXECUTED
printf (" ");
12385a: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12385d: 6a 20 push $0x20 <== NOT EXECUTED
12385f: e8 30 e8 01 00 call 142094 <putchar> <== NOT EXECUTED
123864: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
printf ("%02x ", *data);
123867: 50 push %eax <== NOT EXECUTED
123868: 50 push %eax <== NOT EXECUTED
123869: 0f b6 04 37 movzbl (%edi,%esi,1),%eax <== NOT EXECUTED
12386d: 50 push %eax <== NOT EXECUTED
12386e: 68 0a a5 15 00 push $0x15a50a <== NOT EXECUTED
123873: e8 bc e6 01 00 call 141f34 <printf> <== NOT EXECUTED
return 1;
}
for (b = 0, data = rtems_rfs_buffer_data (&buffer);
b < rtems_rfs_fs_block_size (fs);
b++, data++)
123878: 46 inc %esi <== NOT EXECUTED
123879: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
block, rc, strerror (rc));
return 1;
}
for (b = 0, data = rtems_rfs_buffer_data (&buffer);
b < rtems_rfs_fs_block_size (fs);
12387c: 3b 73 08 cmp 0x8(%ebx),%esi <== NOT EXECUTED
12387f: 72 ad jb 12382e <rtems_rfs_shell_block+0x115><== NOT EXECUTED
if (mod == 8)
printf (" ");
printf ("%02x ", *data);
}
printf ("\n");
123881: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
123884: 6a 0a push $0xa <== NOT EXECUTED
123886: e8 09 e8 01 00 call 142094 <putchar> <== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_close (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
rtems_rfs_buffer_handle_release (fs, handle);
12388b: 5a pop %edx <== NOT EXECUTED
12388c: 59 pop %ecx <== NOT EXECUTED
12388d: 8d 45 d8 lea -0x28(%ebp),%eax <== NOT EXECUTED
123890: 50 push %eax <== NOT EXECUTED
123891: 53 push %ebx <== NOT EXECUTED
123892: e8 cc 21 01 00 call 135a63 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
handle->dirty = false;
123897: c6 45 d8 00 movb $0x0,-0x28(%ebp) <== NOT EXECUTED
handle->bnum = 0;
12389b: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp) <== NOT EXECUTED
handle->buffer = NULL;
1238a2: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp) <== NOT EXECUTED
printf ("error: closing buffer handle: block=%" PRIu32 ": (%d) %s\n",
block, rc, strerror (rc));
return 1;
}
rtems_rfs_shell_unlock_rfs (fs);
1238a9: 89 d8 mov %ebx,%eax <== NOT EXECUTED
1238ab: e8 01 f7 ff ff call 122fb1 <rtems_rfs_shell_unlock_rfs><== NOT EXECUTED
1238b0: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
1238b2: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
1238b5: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1238b8: 5b pop %ebx <== NOT EXECUTED
1238b9: 5e pop %esi <== NOT EXECUTED
1238ba: 5f pop %edi <== NOT EXECUTED
1238bb: c9 leave <== NOT EXECUTED
1238bc: c3 ret <== NOT EXECUTED
001238bd <rtems_rfs_shell_data>:
return rc;
}
static int
rtems_rfs_shell_data (rtems_rfs_file_system* fs, int argc, char *argv[])
{
1238bd: 55 push %ebp <== NOT EXECUTED
1238be: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1238c0: 56 push %esi <== NOT EXECUTED
1238c1: 53 push %ebx <== NOT EXECUTED
1238c2: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED
1238c5: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
size_t blocks;
size_t inodes;
int bpcent;
int ipcent;
printf ("RFS Filesystem Data\n");
1238c8: 68 10 a5 15 00 push $0x15a510 <== NOT EXECUTED
1238cd: e8 76 e8 01 00 call 142148 <puts> <== NOT EXECUTED
printf (" flags: %08" PRIx32 "\n", fs->flags);
1238d2: 5a pop %edx <== NOT EXECUTED
1238d3: 59 pop %ecx <== NOT EXECUTED
1238d4: ff 33 pushl (%ebx) <== NOT EXECUTED
1238d6: 68 24 a5 15 00 push $0x15a524 <== NOT EXECUTED
1238db: e8 54 e6 01 00 call 141f34 <printf> <== NOT EXECUTED
#if 0
printf (" device: %08lx\n", rtems_rfs_fs_device (fs));
#endif
printf (" blocks: %zu\n", rtems_rfs_fs_blocks (fs));
1238e0: 5e pop %esi <== NOT EXECUTED
1238e1: 58 pop %eax <== NOT EXECUTED
1238e2: ff 73 04 pushl 0x4(%ebx) <== NOT EXECUTED
1238e5: 68 3f a5 15 00 push $0x15a53f <== NOT EXECUTED
1238ea: e8 45 e6 01 00 call 141f34 <printf> <== NOT EXECUTED
printf (" block size: %zu\n", rtems_rfs_fs_block_size (fs));
1238ef: 5a pop %edx <== NOT EXECUTED
1238f0: 59 pop %ecx <== NOT EXECUTED
1238f1: ff 73 08 pushl 0x8(%ebx) <== NOT EXECUTED
1238f4: 68 58 a5 15 00 push $0x15a558 <== NOT EXECUTED
1238f9: e8 36 e6 01 00 call 141f34 <printf> <== NOT EXECUTED
printf (" size: %" PRIu64 "\n", rtems_rfs_fs_size (fs));
1238fe: 89 1c 24 mov %ebx,(%esp) <== NOT EXECUTED
123901: e8 b2 39 01 00 call 1372b8 <rtems_rfs_fs_size> <== NOT EXECUTED
123906: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
123909: 52 push %edx <== NOT EXECUTED
12390a: 50 push %eax <== NOT EXECUTED
12390b: 68 71 a5 15 00 push $0x15a571 <== NOT EXECUTED
123910: e8 1f e6 01 00 call 141f34 <printf> <== NOT EXECUTED
printf (" media block size: %" PRIu32 "\n", rtems_rfs_fs_media_block_size (fs));
123915: 5e pop %esi <== NOT EXECUTED
123916: 58 pop %eax <== NOT EXECUTED
123917: 8b 43 0c mov 0xc(%ebx),%eax <== NOT EXECUTED
12391a: ff 70 24 pushl 0x24(%eax) <== NOT EXECUTED
12391d: 68 8b a5 15 00 push $0x15a58b <== NOT EXECUTED
123922: e8 0d e6 01 00 call 141f34 <printf> <== NOT EXECUTED
printf (" media size: %" PRIu64 "\n", rtems_rfs_fs_media_size (fs));
123927: 89 1c 24 mov %ebx,(%esp) <== NOT EXECUTED
12392a: e8 97 39 01 00 call 1372c6 <rtems_rfs_fs_media_size><== NOT EXECUTED
12392f: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
123932: 52 push %edx <== NOT EXECUTED
123933: 50 push %eax <== NOT EXECUTED
123934: 68 a4 a5 15 00 push $0x15a5a4 <== NOT EXECUTED
123939: e8 f6 e5 01 00 call 141f34 <printf> <== NOT EXECUTED
printf (" inodes: %" PRIu32 "\n", rtems_rfs_fs_inodes (fs));
12393e: 5a pop %edx <== NOT EXECUTED
12393f: 59 pop %ecx <== NOT EXECUTED
123940: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED
123943: 68 be a5 15 00 push $0x15a5be <== NOT EXECUTED
123948: e8 e7 e5 01 00 call 141f34 <printf> <== NOT EXECUTED
printf (" bad blocks: %" PRIu32 "\n", fs->bad_blocks);
12394d: 5e pop %esi <== NOT EXECUTED
12394e: 58 pop %eax <== NOT EXECUTED
12394f: ff 73 14 pushl 0x14(%ebx) <== NOT EXECUTED
123952: 68 d7 a5 15 00 push $0x15a5d7 <== NOT EXECUTED
123957: e8 d8 e5 01 00 call 141f34 <printf> <== NOT EXECUTED
printf (" max. name length: %" PRIu32 "\n", rtems_rfs_fs_max_name (fs));
12395c: 5a pop %edx <== NOT EXECUTED
12395d: 59 pop %ecx <== NOT EXECUTED
12395e: ff 73 18 pushl 0x18(%ebx) <== NOT EXECUTED
123961: 68 f0 a5 15 00 push $0x15a5f0 <== NOT EXECUTED
123966: e8 c9 e5 01 00 call 141f34 <printf> <== NOT EXECUTED
printf (" groups: %d\n", fs->group_count);
12396b: 5e pop %esi <== NOT EXECUTED
12396c: 58 pop %eax <== NOT EXECUTED
12396d: ff 73 20 pushl 0x20(%ebx) <== NOT EXECUTED
123970: 68 09 a6 15 00 push $0x15a609 <== NOT EXECUTED
123975: e8 ba e5 01 00 call 141f34 <printf> <== NOT EXECUTED
printf (" group blocks: %zd\n", fs->group_blocks);
12397a: 5a pop %edx <== NOT EXECUTED
12397b: 59 pop %ecx <== NOT EXECUTED
12397c: ff 73 24 pushl 0x24(%ebx) <== NOT EXECUTED
12397f: 68 21 a6 15 00 push $0x15a621 <== NOT EXECUTED
123984: e8 ab e5 01 00 call 141f34 <printf> <== NOT EXECUTED
printf (" group inodes: %zd\n", fs->group_inodes);
123989: 5e pop %esi <== NOT EXECUTED
12398a: 58 pop %eax <== NOT EXECUTED
12398b: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
12398e: 68 3a a6 15 00 push $0x15a63a <== NOT EXECUTED
123993: e8 9c e5 01 00 call 141f34 <printf> <== NOT EXECUTED
printf (" inodes per block: %zd\n", fs->inodes_per_block);
123998: 5a pop %edx <== NOT EXECUTED
123999: 59 pop %ecx <== NOT EXECUTED
12399a: ff 73 2c pushl 0x2c(%ebx) <== NOT EXECUTED
12399d: 68 53 a6 15 00 push $0x15a653 <== NOT EXECUTED
1239a2: e8 8d e5 01 00 call 141f34 <printf> <== NOT EXECUTED
printf (" blocks per block: %zd\n", fs->blocks_per_block);
1239a7: 5e pop %esi <== NOT EXECUTED
1239a8: 58 pop %eax <== NOT EXECUTED
1239a9: ff 73 30 pushl 0x30(%ebx) <== NOT EXECUTED
1239ac: 68 6c a6 15 00 push $0x15a66c <== NOT EXECUTED
1239b1: e8 7e e5 01 00 call 141f34 <printf> <== NOT EXECUTED
printf (" singly blocks: %zd\n", fs->block_map_singly_blocks);
1239b6: 5a pop %edx <== NOT EXECUTED
1239b7: 59 pop %ecx <== NOT EXECUTED
1239b8: ff 73 34 pushl 0x34(%ebx) <== NOT EXECUTED
1239bb: 68 85 a6 15 00 push $0x15a685 <== NOT EXECUTED
1239c0: e8 6f e5 01 00 call 141f34 <printf> <== NOT EXECUTED
printf (" doublly blocks: %zd\n", fs->block_map_doubly_blocks);
1239c5: 5e pop %esi <== NOT EXECUTED
1239c6: 58 pop %eax <== NOT EXECUTED
1239c7: ff 73 38 pushl 0x38(%ebx) <== NOT EXECUTED
1239ca: 68 9e a6 15 00 push $0x15a69e <== NOT EXECUTED
1239cf: e8 60 e5 01 00 call 141f34 <printf> <== NOT EXECUTED
printf (" max. held buffers: %" PRId32 "\n", fs->max_held_buffers);
1239d4: 5a pop %edx <== NOT EXECUTED
1239d5: 59 pop %ecx <== NOT EXECUTED
1239d6: ff 73 3c pushl 0x3c(%ebx) <== NOT EXECUTED
1239d9: 68 b7 a6 15 00 push $0x15a6b7 <== NOT EXECUTED
1239de: e8 51 e5 01 00 call 141f34 <printf> <== NOT EXECUTED
1239e3: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
1239e6: 6a 00 push $0x0 <== NOT EXECUTED
1239e8: 6a 00 push $0x0 <== NOT EXECUTED
1239ea: 8b 43 7c mov 0x7c(%ebx),%eax <== NOT EXECUTED
1239ed: ff 30 pushl (%eax) <== NOT EXECUTED
1239ef: e8 14 d2 fe ff call 110c08 <rtems_semaphore_obtain><== NOT EXECUTED
rtems_rfs_shell_lock_rfs (fs);
rtems_rfs_group_usage (fs, &blocks, &inodes);
1239f4: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
1239f7: 8d 45 f0 lea -0x10(%ebp),%eax <== NOT EXECUTED
1239fa: 50 push %eax <== NOT EXECUTED
1239fb: 8d 45 f4 lea -0xc(%ebp),%eax <== NOT EXECUTED
1239fe: 50 push %eax <== NOT EXECUTED
1239ff: 53 push %ebx <== NOT EXECUTED
123a00: e8 5f 4a 01 00 call 138464 <rtems_rfs_group_usage> <== NOT EXECUTED
rtems_rfs_shell_unlock_rfs (fs);
123a05: 89 d8 mov %ebx,%eax <== NOT EXECUTED
123a07: e8 a5 f5 ff ff call 122fb1 <rtems_rfs_shell_unlock_rfs><== NOT EXECUTED
bpcent = (blocks * 1000) / rtems_rfs_fs_blocks (fs);
123a0c: 8b 75 f4 mov -0xc(%ebp),%esi <== NOT EXECUTED
123a0f: 69 c6 e8 03 00 00 imul $0x3e8,%esi,%eax <== NOT EXECUTED
123a15: 31 d2 xor %edx,%edx <== NOT EXECUTED
123a17: f7 73 04 divl 0x4(%ebx) <== NOT EXECUTED
123a1a: 89 c1 mov %eax,%ecx <== NOT EXECUTED
ipcent = (inodes * 1000) / rtems_rfs_fs_inodes (fs);
123a1c: 69 45 f0 e8 03 00 00 imul $0x3e8,-0x10(%ebp),%eax <== NOT EXECUTED
123a23: 31 d2 xor %edx,%edx <== NOT EXECUTED
123a25: f7 73 10 divl 0x10(%ebx) <== NOT EXECUTED
123a28: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
printf (" blocks used: %zd (%d.%d%%)\n",
123a2b: bb 0a 00 00 00 mov $0xa,%ebx <== NOT EXECUTED
123a30: 89 c8 mov %ecx,%eax <== NOT EXECUTED
123a32: 99 cltd <== NOT EXECUTED
123a33: f7 fb idiv %ebx <== NOT EXECUTED
123a35: 52 push %edx <== NOT EXECUTED
123a36: 50 push %eax <== NOT EXECUTED
123a37: 56 push %esi <== NOT EXECUTED
123a38: 68 d0 a6 15 00 push $0x15a6d0 <== NOT EXECUTED
123a3d: e8 f2 e4 01 00 call 141f34 <printf> <== NOT EXECUTED
blocks, bpcent / 10, bpcent % 10);
printf (" inodes used: %zd (%d.%d%%)\n",
123a42: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
123a45: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
123a48: 99 cltd <== NOT EXECUTED
123a49: f7 fb idiv %ebx <== NOT EXECUTED
123a4b: 52 push %edx <== NOT EXECUTED
123a4c: 50 push %eax <== NOT EXECUTED
123a4d: ff 75 f0 pushl -0x10(%ebp) <== NOT EXECUTED
123a50: 68 f3 a6 15 00 push $0x15a6f3 <== NOT EXECUTED
123a55: e8 da e4 01 00 call 141f34 <printf> <== NOT EXECUTED
inodes, ipcent / 10, ipcent % 10);
return 0;
}
123a5a: 31 c0 xor %eax,%eax <== NOT EXECUTED
123a5c: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
123a5f: 5b pop %ebx <== NOT EXECUTED
123a60: 5e pop %esi <== NOT EXECUTED
123a61: c9 leave <== NOT EXECUTED
123a62: c3 ret <== NOT EXECUTED
001234a2 <rtems_rfs_shell_dir>:
return 0;
}
static int
rtems_rfs_shell_dir (rtems_rfs_file_system* fs, int argc, char *argv[])
{
1234a2: 55 push %ebp <== NOT EXECUTED
1234a3: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1234a5: 57 push %edi <== NOT EXECUTED
1234a6: 56 push %esi <== NOT EXECUTED
1234a7: 53 push %ebx <== NOT EXECUTED
1234a8: 83 ec 3c sub $0x3c,%esp <== NOT EXECUTED
1234ab: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
bool state;
int entry;
int b;
int rc;
if (argc <= 1)
1234ae: 83 7d 0c 01 cmpl $0x1,0xc(%ebp) <== NOT EXECUTED
1234b2: 7f 17 jg 1234cb <rtems_rfs_shell_dir+0x29><== NOT EXECUTED
{
printf ("error: no block number provided\n");
1234b4: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1234b7: 68 ea a3 15 00 push $0x15a3ea <== NOT EXECUTED
1234bc: e8 87 ec 01 00 call 142148 <puts> <== NOT EXECUTED
1234c1: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
1234c6: e9 43 02 00 00 jmp 12370e <rtems_rfs_shell_dir+0x26c><== NOT EXECUTED
return 1;
}
block = strtoul (argv[1], 0, 0);
1234cb: 50 push %eax <== NOT EXECUTED
1234cc: 6a 00 push $0x0 <== NOT EXECUTED
1234ce: 6a 00 push $0x0 <== NOT EXECUTED
1234d0: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
1234d3: ff 70 04 pushl 0x4(%eax) <== NOT EXECUTED
1234d6: e8 29 1f 02 00 call 145404 <strtoul> <== NOT EXECUTED
1234db: 89 c3 mov %eax,%ebx <== NOT EXECUTED
1234dd: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
1234e0: 6a 00 push $0x0 <== NOT EXECUTED
1234e2: 6a 00 push $0x0 <== NOT EXECUTED
1234e4: 8b 46 7c mov 0x7c(%esi),%eax <== NOT EXECUTED
1234e7: ff 30 pushl (%eax) <== NOT EXECUTED
1234e9: e8 1a d7 fe ff call 110c08 <rtems_semaphore_obtain><== NOT EXECUTED
rtems_rfs_shell_lock_rfs (fs);
rc = rtems_rfs_group_bitmap_test (fs, false, block, &state);
1234ee: 8d 45 e7 lea -0x19(%ebp),%eax <== NOT EXECUTED
1234f1: 50 push %eax <== NOT EXECUTED
1234f2: 53 push %ebx <== NOT EXECUTED
1234f3: 6a 00 push $0x0 <== NOT EXECUTED
1234f5: 56 push %esi <== NOT EXECUTED
1234f6: e8 cf 4f 01 00 call 1384ca <rtems_rfs_group_bitmap_test><== NOT EXECUTED
1234fb: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc > 0)
1234fd: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
123500: 85 c0 test %eax,%eax <== NOT EXECUTED
123502: 7e 1a jle 12351e <rtems_rfs_shell_dir+0x7c><== NOT EXECUTED
{
rtems_rfs_shell_unlock_rfs (fs);
123504: 89 f0 mov %esi,%eax <== NOT EXECUTED
123506: e8 a6 fa ff ff call 122fb1 <rtems_rfs_shell_unlock_rfs><== NOT EXECUTED
printf ("error: testing block state: block=%" PRIu32 ": (%d) %s\n",
12350b: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12350e: 57 push %edi <== NOT EXECUTED
12350f: e8 a8 04 02 00 call 1439bc <strerror> <== NOT EXECUTED
123514: 50 push %eax <== NOT EXECUTED
123515: 57 push %edi <== NOT EXECUTED
123516: 53 push %ebx <== NOT EXECUTED
123517: 68 0a a4 15 00 push $0x15a40a <== NOT EXECUTED
12351c: eb 7d jmp 12359b <rtems_rfs_shell_dir+0xf9><== NOT EXECUTED
block, rc, strerror (rc));
return 1;
}
printf (" %5" PRIu32 ": block %s\n", block, state ? "allocated" : "free");
12351e: b8 3a a4 15 00 mov $0x15a43a,%eax <== NOT EXECUTED
123523: 80 7d e7 00 cmpb $0x0,-0x19(%ebp) <== NOT EXECUTED
123527: 75 05 jne 12352e <rtems_rfs_shell_dir+0x8c><== NOT EXECUTED
123529: b8 71 84 15 00 mov $0x158471,%eax <== NOT EXECUTED
12352e: 57 push %edi <== NOT EXECUTED
12352f: 50 push %eax <== NOT EXECUTED
123530: 53 push %ebx <== NOT EXECUTED
123531: 68 44 a4 15 00 push $0x15a444 <== NOT EXECUTED
123536: e8 f9 e9 01 00 call 141f34 <printf> <== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_open (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
handle->dirty = false;
12353b: c6 45 d8 00 movb $0x0,-0x28(%ebp) <== NOT EXECUTED
handle->bnum = 0;
12353f: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp) <== NOT EXECUTED
handle->buffer = NULL;
123546: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp) <== NOT EXECUTED
printf ("error: opening buffer handle: block=%" PRIu32 ": (%d) %s\n",
block, rc, strerror (rc));
return 1;
}
rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, true);
12354d: 6a 01 push $0x1 <== NOT EXECUTED
12354f: 53 push %ebx <== NOT EXECUTED
123550: 8d 55 d8 lea -0x28(%ebp),%edx <== NOT EXECUTED
123553: 52 push %edx <== NOT EXECUTED
123554: 56 push %esi <== NOT EXECUTED
123555: 89 55 c4 mov %edx,-0x3c(%ebp) <== NOT EXECUTED
123558: e8 fd 25 01 00 call 135b5a <rtems_rfs_buffer_handle_request><== NOT EXECUTED
12355d: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc > 0)
12355f: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
123562: 85 c0 test %eax,%eax <== NOT EXECUTED
123564: 8b 55 c4 mov -0x3c(%ebp),%edx <== NOT EXECUTED
123567: 7e 44 jle 1235ad <rtems_rfs_shell_dir+0x10b><== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_close (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
rtems_rfs_buffer_handle_release (fs, handle);
123569: 51 push %ecx <== NOT EXECUTED
12356a: 51 push %ecx <== NOT EXECUTED
12356b: 52 push %edx <== NOT EXECUTED
12356c: 56 push %esi <== NOT EXECUTED
12356d: e8 f1 24 01 00 call 135a63 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
handle->dirty = false;
123572: c6 45 d8 00 movb $0x0,-0x28(%ebp) <== NOT EXECUTED
handle->bnum = 0;
123576: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp) <== NOT EXECUTED
handle->buffer = NULL;
12357d: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp) <== NOT EXECUTED
{
rtems_rfs_buffer_handle_close (fs, &buffer);
rtems_rfs_shell_unlock_rfs (fs);
123584: 89 f0 mov %esi,%eax <== NOT EXECUTED
123586: e8 26 fa ff ff call 122fb1 <rtems_rfs_shell_unlock_rfs><== NOT EXECUTED
printf ("error: requesting buffer handle: block=%" PRIu32 ": (%d) %s\n",
12358b: 89 3c 24 mov %edi,(%esp) <== NOT EXECUTED
12358e: e8 29 04 02 00 call 1439bc <strerror> <== NOT EXECUTED
123593: 50 push %eax <== NOT EXECUTED
123594: 57 push %edi <== NOT EXECUTED
123595: 53 push %ebx <== NOT EXECUTED
123596: 68 55 a4 15 00 push $0x15a455 <== NOT EXECUTED
12359b: e8 94 e9 01 00 call 141f34 <printf> <== NOT EXECUTED
1235a0: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
block, rc, strerror (rc));
return 1;
1235a5: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
1235a8: e9 64 01 00 00 jmp 123711 <rtems_rfs_shell_dir+0x26f><== NOT EXECUTED
}
b = 0;
entry = 1;
data = rtems_rfs_buffer_data (&buffer);
1235ad: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
1235b0: 8b 58 20 mov 0x20(%eax),%ebx <== NOT EXECUTED
1235b3: c7 45 cc 00 00 00 00 movl $0x0,-0x34(%ebp) <== NOT EXECUTED
1235ba: c7 45 d0 01 00 00 00 movl $0x1,-0x30(%ebp) <== NOT EXECUTED
while (b < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE - 1))
1235c1: e9 12 01 00 00 jmp 1236d8 <rtems_rfs_shell_dir+0x236><== NOT EXECUTED
rtems_rfs_ino eino;
int elength;
int length;
int c;
eino = rtems_rfs_dir_entry_ino (data);
1235c6: 8a 03 mov (%ebx),%al <== NOT EXECUTED
1235c8: 8a 53 01 mov 0x1(%ebx),%dl <== NOT EXECUTED
1235cb: 88 55 cb mov %dl,-0x35(%ebp) <== NOT EXECUTED
1235ce: 8a 53 02 mov 0x2(%ebx),%dl <== NOT EXECUTED
1235d1: 88 55 d4 mov %dl,-0x2c(%ebp) <== NOT EXECUTED
1235d4: 8a 4b 03 mov 0x3(%ebx),%cl <== NOT EXECUTED
elength = rtems_rfs_dir_entry_length (data);
1235d7: 0f b6 7b 08 movzbl 0x8(%ebx),%edi <== NOT EXECUTED
1235db: c1 e7 08 shl $0x8,%edi <== NOT EXECUTED
1235de: 0f b6 53 09 movzbl 0x9(%ebx),%edx <== NOT EXECUTED
1235e2: 09 d7 or %edx,%edi <== NOT EXECUTED
if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)
1235e4: 81 ff ff ff 00 00 cmp $0xffff,%edi <== NOT EXECUTED
1235ea: 0f 84 f7 00 00 00 je 1236e7 <rtems_rfs_shell_dir+0x245><== NOT EXECUTED
break;
if ((elength < RTEMS_RFS_DIR_ENTRY_SIZE) ||
1235f0: 83 ff 09 cmp $0x9,%edi <== NOT EXECUTED
1235f3: 7e 05 jle 1235fa <rtems_rfs_shell_dir+0x158><== NOT EXECUTED
(elength >= rtems_rfs_fs_max_name (fs)))
1235f5: 3b 7e 18 cmp 0x18(%esi),%edi <== NOT EXECUTED
1235f8: 72 0c jb 123606 <rtems_rfs_shell_dir+0x164><== NOT EXECUTED
{
printf (" %5d: entry length appears corrupt: %d\n", entry, elength);
1235fa: 50 push %eax <== NOT EXECUTED
1235fb: 57 push %edi <== NOT EXECUTED
1235fc: ff 75 d0 pushl -0x30(%ebp) <== NOT EXECUTED
1235ff: 68 8a a4 15 00 push $0x15a48a <== NOT EXECUTED
123604: eb 2b jmp 123631 <rtems_rfs_shell_dir+0x18f><== NOT EXECUTED
rtems_rfs_ino eino;
int elength;
int length;
int c;
eino = rtems_rfs_dir_entry_ino (data);
123606: 0f b6 c9 movzbl %cl,%ecx <== NOT EXECUTED
123609: c1 e0 18 shl $0x18,%eax <== NOT EXECUTED
12360c: 09 c1 or %eax,%ecx <== NOT EXECUTED
12360e: 0f b6 45 cb movzbl -0x35(%ebp),%eax <== NOT EXECUTED
123612: c1 e0 10 shl $0x10,%eax <== NOT EXECUTED
123615: 09 c1 or %eax,%ecx <== NOT EXECUTED
123617: 0f b6 45 d4 movzbl -0x2c(%ebp),%eax <== NOT EXECUTED
12361b: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
{
printf (" %5d: entry length appears corrupt: %d\n", entry, elength);
break;
}
if ((eino < RTEMS_RFS_ROOT_INO) || (eino >= rtems_rfs_fs_inodes (fs)))
12361e: 09 c1 or %eax,%ecx <== NOT EXECUTED
123620: 74 05 je 123627 <rtems_rfs_shell_dir+0x185><== NOT EXECUTED
123622: 3b 4e 10 cmp 0x10(%esi),%ecx <== NOT EXECUTED
123625: 72 17 jb 12363e <rtems_rfs_shell_dir+0x19c><== NOT EXECUTED
{
printf (" %5d: entry ino appears corrupt: ino=%" PRId32 "\n", entry, eino);
123627: 53 push %ebx <== NOT EXECUTED
123628: 51 push %ecx <== NOT EXECUTED
123629: ff 75 d0 pushl -0x30(%ebp) <== NOT EXECUTED
12362c: 68 b2 a4 15 00 push $0x15a4b2 <== NOT EXECUTED
123631: e8 fe e8 01 00 call 141f34 <printf> <== NOT EXECUTED
break;
123636: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
123639: e9 a9 00 00 00 jmp 1236e7 <rtems_rfs_shell_dir+0x245><== NOT EXECUTED
}
length = elength - RTEMS_RFS_DIR_ENTRY_SIZE;
12363e: 8d 47 f6 lea -0xa(%edi),%eax <== NOT EXECUTED
123641: 89 45 d4 mov %eax,-0x2c(%ebp) <== NOT EXECUTED
printf (" %5d: %04x inode=%-6" PRIu32 " hash=%08" PRIx32 " name[%03u]=",
123644: 52 push %edx <== NOT EXECUTED
123645: 52 push %edx <== NOT EXECUTED
123646: 50 push %eax <== NOT EXECUTED
123647: 0f b6 43 04 movzbl 0x4(%ebx),%eax <== NOT EXECUTED
12364b: c1 e0 18 shl $0x18,%eax <== NOT EXECUTED
12364e: 0f b6 53 05 movzbl 0x5(%ebx),%edx <== NOT EXECUTED
123652: c1 e2 10 shl $0x10,%edx <== NOT EXECUTED
123655: 09 d0 or %edx,%eax <== NOT EXECUTED
123657: 0f b6 53 07 movzbl 0x7(%ebx),%edx <== NOT EXECUTED
12365b: 09 d0 or %edx,%eax <== NOT EXECUTED
12365d: 0f b6 53 06 movzbl 0x6(%ebx),%edx <== NOT EXECUTED
123661: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
123664: 09 d0 or %edx,%eax <== NOT EXECUTED
123666: 50 push %eax <== NOT EXECUTED
123667: 51 push %ecx <== NOT EXECUTED
123668: ff 75 cc pushl -0x34(%ebp) <== NOT EXECUTED
12366b: ff 75 d0 pushl -0x30(%ebp) <== NOT EXECUTED
12366e: 68 dc a4 15 00 push $0x15a4dc <== NOT EXECUTED
123673: e8 bc e8 01 00 call 141f34 <printf> <== NOT EXECUTED
123678: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
12367b: 8b 4d d4 mov -0x2c(%ebp),%ecx <== NOT EXECUTED
12367e: 83 f9 32 cmp $0x32,%ecx <== NOT EXECUTED
123681: 7e 05 jle 123688 <rtems_rfs_shell_dir+0x1e6><== NOT EXECUTED
123683: b9 32 00 00 00 mov $0x32,%ecx <== NOT EXECUTED
123688: 31 d2 xor %edx,%edx <== NOT EXECUTED
length);
if (length > 50)
length = 50;
for (c = 0; c < length; c++)
12368a: eb 1e jmp 1236aa <rtems_rfs_shell_dir+0x208><== NOT EXECUTED
printf ("%c", data[RTEMS_RFS_DIR_ENTRY_SIZE + c]);
12368c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12368f: 0f b6 44 13 0a movzbl 0xa(%ebx,%edx,1),%eax <== NOT EXECUTED
123694: 50 push %eax <== NOT EXECUTED
123695: 89 55 c4 mov %edx,-0x3c(%ebp) <== NOT EXECUTED
123698: 89 4d c0 mov %ecx,-0x40(%ebp) <== NOT EXECUTED
12369b: e8 f4 e9 01 00 call 142094 <putchar> <== NOT EXECUTED
length);
if (length > 50)
length = 50;
for (c = 0; c < length; c++)
1236a0: 8b 55 c4 mov -0x3c(%ebp),%edx <== NOT EXECUTED
1236a3: 42 inc %edx <== NOT EXECUTED
1236a4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1236a7: 8b 4d c0 mov -0x40(%ebp),%ecx <== NOT EXECUTED
1236aa: 39 ca cmp %ecx,%edx <== NOT EXECUTED
1236ac: 7c de jl 12368c <rtems_rfs_shell_dir+0x1ea><== NOT EXECUTED
printf ("%c", data[RTEMS_RFS_DIR_ENTRY_SIZE + c]);
if (length < elength - RTEMS_RFS_DIR_ENTRY_SIZE)
1236ae: 3b 4d d4 cmp -0x2c(%ebp),%ecx <== NOT EXECUTED
1236b1: 7d 10 jge 1236c3 <rtems_rfs_shell_dir+0x221><== NOT EXECUTED
printf ("...");
1236b3: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1236b6: 68 4b 90 15 00 push $0x15904b <== NOT EXECUTED
1236bb: e8 74 e8 01 00 call 141f34 <printf> <== NOT EXECUTED
1236c0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
printf ("\n");
1236c3: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1236c6: 6a 0a push $0xa <== NOT EXECUTED
1236c8: e8 c7 e9 01 00 call 142094 <putchar> <== NOT EXECUTED
b += elength;
1236cd: 01 7d cc add %edi,-0x34(%ebp) <== NOT EXECUTED
data += elength;
1236d0: 01 fb add %edi,%ebx <== NOT EXECUTED
entry++;
1236d2: ff 45 d0 incl -0x30(%ebp) <== NOT EXECUTED
1236d5: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
b = 0;
entry = 1;
data = rtems_rfs_buffer_data (&buffer);
while (b < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE - 1))
1236d8: 8b 46 08 mov 0x8(%esi),%eax <== NOT EXECUTED
1236db: 83 e8 0b sub $0xb,%eax <== NOT EXECUTED
1236de: 39 45 cc cmp %eax,-0x34(%ebp) <== NOT EXECUTED
1236e1: 0f 82 df fe ff ff jb 1235c6 <rtems_rfs_shell_dir+0x124><== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_close (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
rtems_rfs_buffer_handle_release (fs, handle);
1236e7: 50 push %eax <== NOT EXECUTED
1236e8: 50 push %eax <== NOT EXECUTED
1236e9: 8d 45 d8 lea -0x28(%ebp),%eax <== NOT EXECUTED
1236ec: 50 push %eax <== NOT EXECUTED
1236ed: 56 push %esi <== NOT EXECUTED
1236ee: e8 70 23 01 00 call 135a63 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
handle->dirty = false;
1236f3: c6 45 d8 00 movb $0x0,-0x28(%ebp) <== NOT EXECUTED
handle->bnum = 0;
1236f7: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp) <== NOT EXECUTED
handle->buffer = NULL;
1236fe: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp) <== NOT EXECUTED
printf ("error: closing buffer handle: block=%" PRIu32 ": (%d) %s\n",
block, rc, strerror (rc));
return 1;
}
rtems_rfs_shell_unlock_rfs (fs);
123705: 89 f0 mov %esi,%eax <== NOT EXECUTED
123707: e8 a5 f8 ff ff call 122fb1 <rtems_rfs_shell_unlock_rfs><== NOT EXECUTED
12370c: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
12370e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
123711: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
123714: 5b pop %ebx <== NOT EXECUTED
123715: 5e pop %esi <== NOT EXECUTED
123716: 5f pop %edi <== NOT EXECUTED
123717: c9 leave <== NOT EXECUTED
123718: c3 ret <== NOT EXECUTED
00123387 <rtems_rfs_shell_group>:
return 0;
}
static int
rtems_rfs_shell_group (rtems_rfs_file_system* fs, int argc, char *argv[])
{
123387: 55 push %ebp <== NOT EXECUTED
123388: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12338a: 57 push %edi <== NOT EXECUTED
12338b: 56 push %esi <== NOT EXECUTED
12338c: 53 push %ebx <== NOT EXECUTED
12338d: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
123390: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
123393: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
123396: 8b 75 10 mov 0x10(%ebp),%esi <== NOT EXECUTED
int start;
int end;
int g;
start = 0;
end = fs->group_count - 1;
123399: 8b 53 20 mov 0x20(%ebx),%edx <== NOT EXECUTED
switch (argc)
12339c: 83 f8 02 cmp $0x2,%eax <== NOT EXECUTED
12339f: 74 0a je 1233ab <rtems_rfs_shell_group+0x24><== NOT EXECUTED
1233a1: 83 f8 03 cmp $0x3,%eax <== NOT EXECUTED
1233a4: 74 18 je 1233be <rtems_rfs_shell_group+0x37><== NOT EXECUTED
1233a6: 48 dec %eax <== NOT EXECUTED
1233a7: 75 3a jne 1233e3 <rtems_rfs_shell_group+0x5c><== NOT EXECUTED
1233a9: eb 47 jmp 1233f2 <rtems_rfs_shell_group+0x6b><== NOT EXECUTED
{
case 1:
break;
case 2:
start = end = strtoul (argv[1], 0, 0);
1233ab: 57 push %edi <== NOT EXECUTED
1233ac: 6a 00 push $0x0 <== NOT EXECUTED
1233ae: 6a 00 push $0x0 <== NOT EXECUTED
1233b0: ff 76 04 pushl 0x4(%esi) <== NOT EXECUTED
1233b3: e8 4c 20 02 00 call 145404 <strtoul> <== NOT EXECUTED
1233b8: 89 c6 mov %eax,%esi <== NOT EXECUTED
1233ba: 89 c7 mov %eax,%edi <== NOT EXECUTED
1233bc: eb 20 jmp 1233de <rtems_rfs_shell_group+0x57><== NOT EXECUTED
break;
case 3:
start = strtoul (argv[1], 0, 0);
1233be: 51 push %ecx <== NOT EXECUTED
1233bf: 6a 00 push $0x0 <== NOT EXECUTED
1233c1: 6a 00 push $0x0 <== NOT EXECUTED
1233c3: ff 76 04 pushl 0x4(%esi) <== NOT EXECUTED
1233c6: e8 39 20 02 00 call 145404 <strtoul> <== NOT EXECUTED
1233cb: 89 c7 mov %eax,%edi <== NOT EXECUTED
end = strtoul (argv[2], 0, 0);
1233cd: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
1233d0: 6a 00 push $0x0 <== NOT EXECUTED
1233d2: 6a 00 push $0x0 <== NOT EXECUTED
1233d4: ff 76 08 pushl 0x8(%esi) <== NOT EXECUTED
1233d7: e8 28 20 02 00 call 145404 <strtoul> <== NOT EXECUTED
1233dc: 89 c6 mov %eax,%esi <== NOT EXECUTED
break;
1233de: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1233e1: eb 14 jmp 1233f7 <rtems_rfs_shell_group+0x70><== NOT EXECUTED
default:
printf ("error: too many arguments.\n");
1233e3: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1233e6: 68 63 a3 15 00 push $0x15a363 <== NOT EXECUTED
1233eb: e8 58 ed 01 00 call 142148 <puts> <== NOT EXECUTED
1233f0: eb 27 jmp 123419 <rtems_rfs_shell_group+0x92><== NOT EXECUTED
int start;
int end;
int g;
start = 0;
end = fs->group_count - 1;
1233f2: 8d 72 ff lea -0x1(%edx),%esi <== NOT EXECUTED
1233f5: 31 ff xor %edi,%edi <== NOT EXECUTED
default:
printf ("error: too many arguments.\n");
return 1;
}
if ((start < 0) || (end < 0) ||
1233f7: 85 f6 test %esi,%esi <== NOT EXECUTED
1233f9: 78 0f js 12340a <rtems_rfs_shell_group+0x83><== NOT EXECUTED
1233fb: 85 ff test %edi,%edi <== NOT EXECUTED
1233fd: 78 0b js 12340a <rtems_rfs_shell_group+0x83><== NOT EXECUTED
(start >= fs->group_count) || (end >= fs->group_count))
1233ff: 8b 43 20 mov 0x20(%ebx),%eax <== NOT EXECUTED
default:
printf ("error: too many arguments.\n");
return 1;
}
if ((start < 0) || (end < 0) ||
123402: 39 c7 cmp %eax,%edi <== NOT EXECUTED
123404: 7d 04 jge 12340a <rtems_rfs_shell_group+0x83><== NOT EXECUTED
123406: 39 c6 cmp %eax,%esi <== NOT EXECUTED
123408: 7c 19 jl 123423 <rtems_rfs_shell_group+0x9c><== NOT EXECUTED
(start >= fs->group_count) || (end >= fs->group_count))
{
printf ("error: group out of range (0->%d).\n", fs->group_count);
12340a: 52 push %edx <== NOT EXECUTED
12340b: 52 push %edx <== NOT EXECUTED
12340c: ff 73 20 pushl 0x20(%ebx) <== NOT EXECUTED
12340f: 68 7e a3 15 00 push $0x15a37e <== NOT EXECUTED
123414: e8 1b eb 01 00 call 141f34 <printf> <== NOT EXECUTED
123419: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
return 1;
12341e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
123421: eb 77 jmp 12349a <rtems_rfs_shell_group+0x113><== NOT EXECUTED
123423: 50 push %eax <== NOT EXECUTED
123424: 6a 00 push $0x0 <== NOT EXECUTED
123426: 6a 00 push $0x0 <== NOT EXECUTED
123428: 8b 43 7c mov 0x7c(%ebx),%eax <== NOT EXECUTED
12342b: ff 30 pushl (%eax) <== NOT EXECUTED
12342d: e8 d6 d7 fe ff call 110c08 <rtems_semaphore_obtain><== NOT EXECUTED
123432: 6b c7 50 imul $0x50,%edi,%eax <== NOT EXECUTED
123435: 89 45 e0 mov %eax,-0x20(%ebp) <== NOT EXECUTED
123438: 89 7d e4 mov %edi,-0x1c(%ebp) <== NOT EXECUTED
}
rtems_rfs_shell_lock_rfs (fs);
for (g = start; g <= end; g++)
12343b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12343e: eb 4c jmp 12348c <rtems_rfs_shell_group+0x105><== NOT EXECUTED
{
rtems_rfs_group* group = &fs->groups[g];
123440: 8b 4d e0 mov -0x20(%ebp),%ecx <== NOT EXECUTED
123443: 03 4b 1c add 0x1c(%ebx),%ecx <== NOT EXECUTED
size_t blocks;
size_t inodes;
blocks = group->size - rtems_rfs_bitmap_map_free (&group->block_bitmap);
123446: 8b 79 04 mov 0x4(%ecx),%edi <== NOT EXECUTED
123449: 89 f8 mov %edi,%eax <== NOT EXECUTED
12344b: 2b 41 18 sub 0x18(%ecx),%eax <== NOT EXECUTED
12344e: 89 45 d8 mov %eax,-0x28(%ebp) <== NOT EXECUTED
inodes = fs->group_inodes - rtems_rfs_bitmap_map_free (&group->inode_bitmap);
123451: 8b 43 28 mov 0x28(%ebx),%eax <== NOT EXECUTED
123454: 2b 41 3c sub 0x3c(%ecx),%eax <== NOT EXECUTED
123457: 89 45 dc mov %eax,-0x24(%ebp) <== NOT EXECUTED
printf (" %4d: base=%-7" PRIu32 " size=%-6zu blocks=%-5zu (%3zu%%) inode=%-5zu (%3zu%%)\n",
12345a: 6b c0 64 imul $0x64,%eax,%eax <== NOT EXECUTED
12345d: 31 d2 xor %edx,%edx <== NOT EXECUTED
12345f: f7 73 28 divl 0x28(%ebx) <== NOT EXECUTED
123462: 50 push %eax <== NOT EXECUTED
123463: ff 75 dc pushl -0x24(%ebp) <== NOT EXECUTED
123466: 6b 45 d8 64 imul $0x64,-0x28(%ebp),%eax <== NOT EXECUTED
12346a: 31 d2 xor %edx,%edx <== NOT EXECUTED
12346c: f7 f7 div %edi <== NOT EXECUTED
12346e: 50 push %eax <== NOT EXECUTED
12346f: ff 75 d8 pushl -0x28(%ebp) <== NOT EXECUTED
123472: 57 push %edi <== NOT EXECUTED
123473: ff 31 pushl (%ecx) <== NOT EXECUTED
123475: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
123478: 68 a2 a3 15 00 push $0x15a3a2 <== NOT EXECUTED
12347d: e8 b2 ea 01 00 call 141f34 <printf> <== NOT EXECUTED
return 1;
}
rtems_rfs_shell_lock_rfs (fs);
for (g = start; g <= end; g++)
123482: ff 45 e4 incl -0x1c(%ebp) <== NOT EXECUTED
123485: 83 45 e0 50 addl $0x50,-0x20(%ebp) <== NOT EXECUTED
123489: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
12348c: 39 75 e4 cmp %esi,-0x1c(%ebp) <== NOT EXECUTED
12348f: 7e af jle 123440 <rtems_rfs_shell_group+0xb9><== NOT EXECUTED
g, group->base, group->size,
blocks, (blocks * 100) / group->size,
inodes, (inodes * 100) / fs->group_inodes);
}
rtems_rfs_shell_unlock_rfs (fs);
123491: 89 d8 mov %ebx,%eax <== NOT EXECUTED
123493: e8 19 fb ff ff call 122fb1 <rtems_rfs_shell_unlock_rfs><== NOT EXECUTED
123498: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
}
12349a: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
12349d: 5b pop %ebx <== NOT EXECUTED
12349e: 5e pop %esi <== NOT EXECUTED
12349f: 5f pop %edi <== NOT EXECUTED
1234a0: c9 leave <== NOT EXECUTED
1234a1: c3 ret <== NOT EXECUTED
00122fd1 <rtems_rfs_shell_inode>:
return 0;
}
static int
rtems_rfs_shell_inode (rtems_rfs_file_system* fs, int argc, char *argv[])
{
122fd1: 55 push %ebp <== NOT EXECUTED
122fd2: 89 e5 mov %esp,%ebp <== NOT EXECUTED
122fd4: 57 push %edi <== NOT EXECUTED
122fd5: 56 push %esi <== NOT EXECUTED
122fd6: 53 push %ebx <== NOT EXECUTED
122fd7: 83 ec 6c sub $0x6c,%esp <== NOT EXECUTED
122fda: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
bool have_end;
int arg;
int b;
int rc;
total = fs->group_inodes * fs->group_count;
122fdd: 8b 73 20 mov 0x20(%ebx),%esi <== NOT EXECUTED
122fe0: 0f af 73 28 imul 0x28(%ebx),%esi <== NOT EXECUTED
start = RTEMS_RFS_ROOT_INO;
end = total - 1;
122fe4: 8d 46 ff lea -0x1(%esi),%eax <== NOT EXECUTED
122fe7: 89 45 ac mov %eax,-0x54(%ebp) <== NOT EXECUTED
122fea: 89 45 a8 mov %eax,-0x58(%ebp) <== NOT EXECUTED
122fed: bf 01 00 00 00 mov $0x1,%edi <== NOT EXECUTED
122ff2: c6 45 a7 00 movb $0x0,-0x59(%ebp) <== NOT EXECUTED
122ff6: c6 45 b6 00 movb $0x0,-0x4a(%ebp) <== NOT EXECUTED
122ffa: c6 45 a6 00 movb $0x0,-0x5a(%ebp) <== NOT EXECUTED
122ffe: c6 45 a5 00 movb $0x0,-0x5b(%ebp) <== NOT EXECUTED
123002: c6 45 a4 00 movb $0x0,-0x5c(%ebp) <== NOT EXECUTED
123006: c7 45 b0 01 00 00 00 movl $0x1,-0x50(%ebp) <== NOT EXECUTED
show_all = false;
error_check_only = false;
forced = false;
have_start = have_end = false;
for (arg = 1; arg < argc; arg++)
12300d: eb 7f jmp 12308e <rtems_rfs_shell_inode+0xbd><== NOT EXECUTED
{
if (argv[arg][0] == '-')
12300f: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
123012: 8b 04 ba mov (%edx,%edi,4),%eax <== NOT EXECUTED
123015: 80 38 2d cmpb $0x2d,(%eax) <== NOT EXECUTED
123018: 75 26 jne 123040 <rtems_rfs_shell_inode+0x6f><== NOT EXECUTED
{
switch (argv[arg][1])
12301a: 8a 50 01 mov 0x1(%eax),%dl <== NOT EXECUTED
12301d: 80 fa 65 cmp $0x65,%dl <== NOT EXECUTED
123020: 74 0c je 12302e <rtems_rfs_shell_inode+0x5d><== NOT EXECUTED
123022: 80 fa 66 cmp $0x66,%dl <== NOT EXECUTED
123025: 74 13 je 12303a <rtems_rfs_shell_inode+0x69><== NOT EXECUTED
123027: 80 fa 61 cmp $0x61,%dl <== NOT EXECUTED
12302a: 75 20 jne 12304c <rtems_rfs_shell_inode+0x7b><== NOT EXECUTED
12302c: eb 06 jmp 123034 <rtems_rfs_shell_inode+0x63><== NOT EXECUTED
12302e: c6 45 a5 01 movb $0x1,-0x5b(%ebp) <== NOT EXECUTED
123032: eb 59 jmp 12308d <rtems_rfs_shell_inode+0xbc><== NOT EXECUTED
123034: c6 45 a4 01 movb $0x1,-0x5c(%ebp) <== NOT EXECUTED
123038: eb 53 jmp 12308d <rtems_rfs_shell_inode+0xbc><== NOT EXECUTED
12303a: c6 45 a6 01 movb $0x1,-0x5a(%ebp) <== NOT EXECUTED
case 'e':
error_check_only = true;
break;
case 'f':
forced = true;
break;
12303e: eb 4d jmp 12308d <rtems_rfs_shell_inode+0xbc><== NOT EXECUTED
break;
}
}
else
{
if (have_end && have_start)
123040: 80 7d a7 00 cmpb $0x0,-0x59(%ebp) <== NOT EXECUTED
123044: 74 15 je 12305b <rtems_rfs_shell_inode+0x8a><== NOT EXECUTED
123046: 80 7d b6 00 cmpb $0x0,-0x4a(%ebp) <== NOT EXECUTED
12304a: 74 15 je 123061 <rtems_rfs_shell_inode+0x90><== NOT EXECUTED
printf ("warning: option ignored: %s\n", argv[arg]);
12304c: 51 push %ecx <== NOT EXECUTED
12304d: 51 push %ecx <== NOT EXECUTED
12304e: 50 push %eax <== NOT EXECUTED
12304f: 68 1f a2 15 00 push $0x15a21f <== NOT EXECUTED
123054: e8 db ee 01 00 call 141f34 <printf> <== NOT EXECUTED
123059: eb 2f jmp 12308a <rtems_rfs_shell_inode+0xb9><== NOT EXECUTED
else if (!have_start)
12305b: 80 7d b6 00 cmpb $0x0,-0x4a(%ebp) <== NOT EXECUTED
12305f: 75 17 jne 123078 <rtems_rfs_shell_inode+0xa7><== NOT EXECUTED
{
start = end = strtoul (argv[arg], 0, 0);
123061: 52 push %edx <== NOT EXECUTED
123062: 6a 00 push $0x0 <== NOT EXECUTED
123064: 6a 00 push $0x0 <== NOT EXECUTED
123066: 50 push %eax <== NOT EXECUTED
123067: e8 98 23 02 00 call 145404 <strtoul> <== NOT EXECUTED
12306c: 89 45 a8 mov %eax,-0x58(%ebp) <== NOT EXECUTED
12306f: 89 45 b0 mov %eax,-0x50(%ebp) <== NOT EXECUTED
123072: c6 45 b6 01 movb $0x1,-0x4a(%ebp) <== NOT EXECUTED
123076: eb 12 jmp 12308a <rtems_rfs_shell_inode+0xb9><== NOT EXECUTED
have_start = true;
}
else
{
end = strtoul (argv[arg], 0, 0);
123078: 51 push %ecx <== NOT EXECUTED
123079: 6a 00 push $0x0 <== NOT EXECUTED
12307b: 6a 00 push $0x0 <== NOT EXECUTED
12307d: 50 push %eax <== NOT EXECUTED
12307e: e8 81 23 02 00 call 145404 <strtoul> <== NOT EXECUTED
123083: 89 45 a8 mov %eax,-0x58(%ebp) <== NOT EXECUTED
123086: c6 45 a7 01 movb $0x1,-0x59(%ebp) <== NOT EXECUTED
12308a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
show_all = false;
error_check_only = false;
forced = false;
have_start = have_end = false;
for (arg = 1; arg < argc; arg++)
12308d: 47 inc %edi <== NOT EXECUTED
12308e: 3b 7d 0c cmp 0xc(%ebp),%edi <== NOT EXECUTED
123091: 0f 8c 78 ff ff ff jl 12300f <rtems_rfs_shell_inode+0x3e><== NOT EXECUTED
have_end = true;
}
}
}
if ((start >= total) || (end >= total))
123097: 39 75 a8 cmp %esi,-0x58(%ebp) <== NOT EXECUTED
12309a: 73 05 jae 1230a1 <rtems_rfs_shell_inode+0xd0><== NOT EXECUTED
12309c: 39 75 b0 cmp %esi,-0x50(%ebp) <== NOT EXECUTED
12309f: 72 1c jb 1230bd <rtems_rfs_shell_inode+0xec><== NOT EXECUTED
{
printf ("error: inode out of range (0->%" PRId32 ").\n", total - 1);
1230a1: 52 push %edx <== NOT EXECUTED
1230a2: 52 push %edx <== NOT EXECUTED
1230a3: ff 75 ac pushl -0x54(%ebp) <== NOT EXECUTED
1230a6: 68 3c a2 15 00 push $0x15a23c <== NOT EXECUTED
1230ab: e8 84 ee 01 00 call 141f34 <printf> <== NOT EXECUTED
1230b0: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
return 1;
1230b5: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1230b8: e9 c2 02 00 00 jmp 12337f <rtems_rfs_shell_inode+0x3ae><== NOT EXECUTED
*/
static inline int
rtems_rfs_mutex_lock (rtems_rfs_mutex* mutex)
{
#if __rtems__
rtems_status_code sc = rtems_semaphore_obtain (*mutex, RTEMS_WAIT, 0);
1230bd: 50 push %eax <== NOT EXECUTED
1230be: 6a 00 push $0x0 <== NOT EXECUTED
1230c0: 6a 00 push $0x0 <== NOT EXECUTED
1230c2: 8b 43 7c mov 0x7c(%ebx),%eax <== NOT EXECUTED
1230c5: ff 30 pushl (%eax) <== NOT EXECUTED
1230c7: e8 3c db fe ff call 110c08 <rtems_semaphore_obtain><== NOT EXECUTED
1230cc: 8b 75 b0 mov -0x50(%ebp),%esi <== NOT EXECUTED
}
rtems_rfs_shell_lock_rfs (fs);
for (ino = start; ino <= end; ino++)
1230cf: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1230d2: e9 96 02 00 00 jmp 12336d <rtems_rfs_shell_inode+0x39c><== NOT EXECUTED
{
rtems_rfs_inode_handle inode;
bool allocated;
rc = rtems_rfs_group_bitmap_test (fs, true, ino, &allocated);
1230d7: 8d 7d e7 lea -0x19(%ebp),%edi <== NOT EXECUTED
1230da: 57 push %edi <== NOT EXECUTED
1230db: 56 push %esi <== NOT EXECUTED
1230dc: 6a 01 push $0x1 <== NOT EXECUTED
1230de: 53 push %ebx <== NOT EXECUTED
1230df: e8 e6 53 01 00 call 1384ca <rtems_rfs_group_bitmap_test><== NOT EXECUTED
1230e4: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc > 0)
1230e6: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1230e9: 85 c0 test %eax,%eax <== NOT EXECUTED
1230eb: 7e 1a jle 123107 <rtems_rfs_shell_inode+0x136><== NOT EXECUTED
{
rtems_rfs_shell_unlock_rfs (fs);
1230ed: 89 d8 mov %ebx,%eax <== NOT EXECUTED
1230ef: e8 bd fe ff ff call 122fb1 <rtems_rfs_shell_unlock_rfs><== NOT EXECUTED
printf ("error: testing inode state: ino=%" PRIu32 ": (%d) %s\n",
1230f4: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1230f7: 57 push %edi <== NOT EXECUTED
1230f8: e8 bf 08 02 00 call 1439bc <strerror> <== NOT EXECUTED
1230fd: 50 push %eax <== NOT EXECUTED
1230fe: 57 push %edi <== NOT EXECUTED
1230ff: 56 push %esi <== NOT EXECUTED
123100: 68 61 a2 15 00 push $0x15a261 <== NOT EXECUTED
123105: eb 3e jmp 123145 <rtems_rfs_shell_inode+0x174><== NOT EXECUTED
ino, rc, strerror (rc));
return 1;
}
if (show_all || allocated)
123107: 80 7d a4 00 cmpb $0x0,-0x5c(%ebp) <== NOT EXECUTED
12310b: 75 0a jne 123117 <rtems_rfs_shell_inode+0x146><== NOT EXECUTED
12310d: 80 7d e7 00 cmpb $0x0,-0x19(%ebp) <== NOT EXECUTED
123111: 0f 84 55 02 00 00 je 12336c <rtems_rfs_shell_inode+0x39b><== NOT EXECUTED
{
uint16_t mode;
bool error;
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
123117: 6a 01 push $0x1 <== NOT EXECUTED
123119: 8d 45 bc lea -0x44(%ebp),%eax <== NOT EXECUTED
12311c: 50 push %eax <== NOT EXECUTED
12311d: 56 push %esi <== NOT EXECUTED
12311e: 53 push %ebx <== NOT EXECUTED
12311f: e8 93 5a 01 00 call 138bb7 <rtems_rfs_inode_open> <== NOT EXECUTED
123124: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc > 0)
123126: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
123129: 85 c0 test %eax,%eax <== NOT EXECUTED
12312b: 7e 2a jle 123157 <rtems_rfs_shell_inode+0x186><== NOT EXECUTED
{
rtems_rfs_shell_unlock_rfs (fs);
12312d: 89 d8 mov %ebx,%eax <== NOT EXECUTED
12312f: e8 7d fe ff ff call 122fb1 <rtems_rfs_shell_unlock_rfs><== NOT EXECUTED
printf ("error: opening inode handle: ino=%" PRIu32 ": (%d) %s\n",
123134: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
123137: 57 push %edi <== NOT EXECUTED
123138: e8 7f 08 02 00 call 1439bc <strerror> <== NOT EXECUTED
12313d: 50 push %eax <== NOT EXECUTED
12313e: 57 push %edi <== NOT EXECUTED
12313f: 56 push %esi <== NOT EXECUTED
123140: 68 8f a2 15 00 push $0x15a28f <== NOT EXECUTED
123145: e8 ea ed 01 00 call 141f34 <printf> <== NOT EXECUTED
12314a: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
ino, rc, strerror (rc));
return 1;
12314f: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
123152: e9 28 02 00 00 jmp 12337f <rtems_rfs_shell_inode+0x3ae><== NOT EXECUTED
123157: 8b 55 c8 mov -0x38(%ebp),%edx <== NOT EXECUTED
12315a: 0f b6 42 02 movzbl 0x2(%edx),%eax <== NOT EXECUTED
12315e: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
123161: 0f b6 7a 03 movzbl 0x3(%edx),%edi <== NOT EXECUTED
123165: 09 c7 or %eax,%edi <== NOT EXECUTED
error = false;
mode = rtems_rfs_inode_get_mode (&inode);
if (error_check_only)
123167: 80 7d a5 00 cmpb $0x0,-0x5b(%ebp) <== NOT EXECUTED
12316b: 74 3e je 1231ab <rtems_rfs_shell_inode+0x1da><== NOT EXECUTED
{
if (!RTEMS_RFS_S_ISDIR (mode) &&
12316d: 89 f8 mov %edi,%eax <== NOT EXECUTED
12316f: 25 00 f0 00 00 and $0xf000,%eax <== NOT EXECUTED
123174: 3d 00 20 00 00 cmp $0x2000,%eax <== NOT EXECUTED
123179: 0f 84 bb 01 00 00 je 12333a <rtems_rfs_shell_inode+0x369><== NOT EXECUTED
12317f: 3d 00 40 00 00 cmp $0x4000,%eax <== NOT EXECUTED
123184: 0f 84 b0 01 00 00 je 12333a <rtems_rfs_shell_inode+0x369><== NOT EXECUTED
12318a: 3d 00 60 00 00 cmp $0x6000,%eax <== NOT EXECUTED
12318f: 0f 84 a5 01 00 00 je 12333a <rtems_rfs_shell_inode+0x369><== NOT EXECUTED
123195: 3d 00 80 00 00 cmp $0x8000,%eax <== NOT EXECUTED
12319a: 0f 84 9a 01 00 00 je 12333a <rtems_rfs_shell_inode+0x369><== NOT EXECUTED
}
#endif
}
}
if (!error_check_only || error)
1231a0: 3d 00 a0 00 00 cmp $0xa000,%eax <== NOT EXECUTED
1231a5: 0f 84 8f 01 00 00 je 12333a <rtems_rfs_shell_inode+0x369><== NOT EXECUTED
{
printf (" %5" PRIu32 ": pos=%06" PRIu32 ":%04zx %c ",
1231ab: 80 7d e7 01 cmpb $0x1,-0x19(%ebp) <== NOT EXECUTED
1231af: 19 c0 sbb %eax,%eax <== NOT EXECUTED
1231b1: 83 e0 05 and $0x5,%eax <== NOT EXECUTED
1231b4: 83 c0 41 add $0x41,%eax <== NOT EXECUTED
1231b7: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1231ba: 50 push %eax <== NOT EXECUTED
1231bb: 6b 45 dc 38 imul $0x38,-0x24(%ebp),%eax <== NOT EXECUTED
1231bf: 50 push %eax <== NOT EXECUTED
1231c0: ff 75 d0 pushl -0x30(%ebp) <== NOT EXECUTED
1231c3: 56 push %esi <== NOT EXECUTED
1231c4: 68 be a2 15 00 push $0x15a2be <== NOT EXECUTED
1231c9: e8 66 ed 01 00 call 141f34 <printf> <== NOT EXECUTED
ino, rtems_rfs_buffer_bnum (&inode.buffer),
inode.offset * RTEMS_RFS_INODE_SIZE,
allocated ? 'A' : 'F');
if (!allocated && !forced)
1231ce: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
1231d1: 80 7d e7 00 cmpb $0x0,-0x19(%ebp) <== NOT EXECUTED
1231d5: 75 18 jne 1231ef <rtems_rfs_shell_inode+0x21e><== NOT EXECUTED
1231d7: 80 7d a6 00 cmpb $0x0,-0x5a(%ebp) <== NOT EXECUTED
1231db: 75 12 jne 1231ef <rtems_rfs_shell_inode+0x21e><== NOT EXECUTED
printf (" --\n");
1231dd: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1231e0: 68 d9 a2 15 00 push $0x15a2d9 <== NOT EXECUTED
1231e5: e8 5e ef 01 00 call 142148 <puts> <== NOT EXECUTED
1231ea: e9 48 01 00 00 jmp 123337 <rtems_rfs_shell_inode+0x366><== NOT EXECUTED
else
{
const char* type;
type = "UKN";
if (RTEMS_RFS_S_ISDIR (mode))
1231ef: 0f b7 ff movzwl %di,%edi <== NOT EXECUTED
1231f2: 89 7d b0 mov %edi,-0x50(%ebp) <== NOT EXECUTED
1231f5: 89 f8 mov %edi,%eax <== NOT EXECUTED
1231f7: 25 00 f0 00 00 and $0xf000,%eax <== NOT EXECUTED
1231fc: ba dd a2 15 00 mov $0x15a2dd,%edx <== NOT EXECUTED
123201: 3d 00 40 00 00 cmp $0x4000,%eax <== NOT EXECUTED
123206: 74 35 je 12323d <rtems_rfs_shell_inode+0x26c><== NOT EXECUTED
type = "DIR";
else if (RTEMS_RFS_S_ISCHR (mode))
123208: ba e1 a2 15 00 mov $0x15a2e1,%edx <== NOT EXECUTED
12320d: 3d 00 20 00 00 cmp $0x2000,%eax <== NOT EXECUTED
123212: 74 29 je 12323d <rtems_rfs_shell_inode+0x26c><== NOT EXECUTED
type = "CHR";
else if (RTEMS_RFS_S_ISBLK (mode))
123214: ba e5 a2 15 00 mov $0x15a2e5,%edx <== NOT EXECUTED
123219: 3d 00 60 00 00 cmp $0x6000,%eax <== NOT EXECUTED
12321e: 74 1d je 12323d <rtems_rfs_shell_inode+0x26c><== NOT EXECUTED
type = "BLK";
else if (RTEMS_RFS_S_ISREG (mode))
123220: ba e9 a2 15 00 mov $0x15a2e9,%edx <== NOT EXECUTED
123225: 3d 00 80 00 00 cmp $0x8000,%eax <== NOT EXECUTED
12322a: 74 11 je 12323d <rtems_rfs_shell_inode+0x26c><== NOT EXECUTED
type = "REG";
else if (RTEMS_RFS_S_ISLNK (mode))
12322c: ba f1 a2 15 00 mov $0x15a2f1,%edx <== NOT EXECUTED
123231: 3d 00 a0 00 00 cmp $0xa000,%eax <== NOT EXECUTED
123236: 75 05 jne 12323d <rtems_rfs_shell_inode+0x26c><== NOT EXECUTED
123238: ba ed a2 15 00 mov $0x15a2ed,%edx <== NOT EXECUTED
* @return uint32_t The block count.
*/
static inline uint32_t
rtems_rfs_inode_get_block_count (rtems_rfs_inode_handle* handle)
{
return rtems_rfs_read_u32 (&handle->node->block_count);
12323d: 8b 4d c8 mov -0x38(%ebp),%ecx <== NOT EXECUTED
123240: 8d 79 0c lea 0xc(%ecx),%edi <== NOT EXECUTED
123243: 89 7d ac mov %edi,-0x54(%ebp) <== NOT EXECUTED
*/
static inline uint16_t
rtems_rfs_inode_get_links (rtems_rfs_inode_handle* handle)
{
uint16_t links;
links = rtems_rfs_read_u16 (&handle->node->links);
123246: 0f b6 01 movzbl (%ecx),%eax <== NOT EXECUTED
123249: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
12324c: 0f b6 79 01 movzbl 0x1(%ecx),%edi <== NOT EXECUTED
123250: 66 89 7d b6 mov %di,-0x4a(%ebp) <== NOT EXECUTED
123254: 66 09 45 b6 or %ax,-0x4a(%ebp) <== NOT EXECUTED
if (links == 0xffff)
123258: 31 c0 xor %eax,%eax <== NOT EXECUTED
12325a: 66 83 7d b6 ff cmpw $0xffffffff,-0x4a(%ebp) <== NOT EXECUTED
12325f: 0f 95 c0 setne %al <== NOT EXECUTED
123262: f7 d8 neg %eax <== NOT EXECUTED
123264: 66 21 45 b6 and %ax,-0x4a(%ebp) <== NOT EXECUTED
type = "LNK";
printf ("links=%03i mode=%04x (%s/%03o) bo=%04u bc=%04" PRIu32 " b=[",
123268: 57 push %edi <== NOT EXECUTED
123269: 8b 7d ac mov -0x54(%ebp),%edi <== NOT EXECUTED
12326c: 0f b6 47 03 movzbl 0x3(%edi),%eax <== NOT EXECUTED
123270: 0f b6 79 0c movzbl 0xc(%ecx),%edi <== NOT EXECUTED
123274: c1 e7 18 shl $0x18,%edi <== NOT EXECUTED
123277: 09 f8 or %edi,%eax <== NOT EXECUTED
123279: 8b 7d ac mov -0x54(%ebp),%edi <== NOT EXECUTED
12327c: 0f b6 7f 01 movzbl 0x1(%edi),%edi <== NOT EXECUTED
123280: c1 e7 10 shl $0x10,%edi <== NOT EXECUTED
123283: 09 f8 or %edi,%eax <== NOT EXECUTED
123285: 8b 7d ac mov -0x54(%ebp),%edi <== NOT EXECUTED
123288: 0f b6 7f 02 movzbl 0x2(%edi),%edi <== NOT EXECUTED
12328c: c1 e7 08 shl $0x8,%edi <== NOT EXECUTED
12328f: 09 f8 or %edi,%eax <== NOT EXECUTED
123291: 50 push %eax <== NOT EXECUTED
123292: 0f b6 41 0a movzbl 0xa(%ecx),%eax <== NOT EXECUTED
123296: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
123299: 0f b6 49 0b movzbl 0xb(%ecx),%ecx <== NOT EXECUTED
12329d: 09 c1 or %eax,%ecx <== NOT EXECUTED
12329f: 0f b7 c9 movzwl %cx,%ecx <== NOT EXECUTED
1232a2: 51 push %ecx <== NOT EXECUTED
1232a3: 8b 45 b0 mov -0x50(%ebp),%eax <== NOT EXECUTED
1232a6: 25 ff 03 00 00 and $0x3ff,%eax <== NOT EXECUTED
1232ab: 50 push %eax <== NOT EXECUTED
1232ac: 52 push %edx <== NOT EXECUTED
1232ad: ff 75 b0 pushl -0x50(%ebp) <== NOT EXECUTED
1232b0: 0f b7 45 b6 movzwl -0x4a(%ebp),%eax <== NOT EXECUTED
1232b4: 50 push %eax <== NOT EXECUTED
1232b5: 68 f5 a2 15 00 push $0x15a2f5 <== NOT EXECUTED
1232ba: e8 75 ec 01 00 call 141f34 <printf> <== NOT EXECUTED
1232bf: 31 ff xor %edi,%edi <== NOT EXECUTED
1232c1: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
* @return uint32_t The block number.
*/
static inline uint32_t
rtems_rfs_inode_get_block (rtems_rfs_inode_handle* handle, int block)
{
return rtems_rfs_read_u32 (&handle->node->data.blocks[block]);
1232c4: 8b 4d c8 mov -0x38(%ebp),%ecx <== NOT EXECUTED
1232c7: 8d 51 1c lea 0x1c(%ecx),%edx <== NOT EXECUTED
rtems_rfs_inode_get_links (&inode),
mode, type, mode & ((1 << 10) - 1),
rtems_rfs_inode_get_block_offset (&inode),
rtems_rfs_inode_get_block_count (&inode));
for (b = 0; b < (RTEMS_RFS_INODE_BLOCKS - 1); b++)
printf ("%" PRIu32 " ", rtems_rfs_inode_get_block (&inode, b));
1232ca: 50 push %eax <== NOT EXECUTED
1232cb: 50 push %eax <== NOT EXECUTED
1232cc: 0f b6 44 3a 03 movzbl 0x3(%edx,%edi,1),%eax <== NOT EXECUTED
1232d1: 0f b6 4c 39 1c movzbl 0x1c(%ecx,%edi,1),%ecx <== NOT EXECUTED
1232d6: c1 e1 18 shl $0x18,%ecx <== NOT EXECUTED
1232d9: 09 c8 or %ecx,%eax <== NOT EXECUTED
1232db: 0f b6 4c 3a 01 movzbl 0x1(%edx,%edi,1),%ecx <== NOT EXECUTED
1232e0: c1 e1 10 shl $0x10,%ecx <== NOT EXECUTED
1232e3: 09 c8 or %ecx,%eax <== NOT EXECUTED
1232e5: 0f b6 54 3a 02 movzbl 0x2(%edx,%edi,1),%edx <== NOT EXECUTED
1232ea: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
1232ed: 09 d0 or %edx,%eax <== NOT EXECUTED
1232ef: 50 push %eax <== NOT EXECUTED
1232f0: 68 29 a3 15 00 push $0x15a329 <== NOT EXECUTED
1232f5: e8 3a ec 01 00 call 141f34 <printf> <== NOT EXECUTED
1232fa: 83 c7 04 add $0x4,%edi <== NOT EXECUTED
printf ("links=%03i mode=%04x (%s/%03o) bo=%04u bc=%04" PRIu32 " b=[",
rtems_rfs_inode_get_links (&inode),
mode, type, mode & ((1 << 10) - 1),
rtems_rfs_inode_get_block_offset (&inode),
rtems_rfs_inode_get_block_count (&inode));
for (b = 0; b < (RTEMS_RFS_INODE_BLOCKS - 1); b++)
1232fd: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
123300: 83 ff 10 cmp $0x10,%edi <== NOT EXECUTED
123303: 75 bf jne 1232c4 <rtems_rfs_shell_inode+0x2f3><== NOT EXECUTED
123305: 8b 55 c8 mov -0x38(%ebp),%edx <== NOT EXECUTED
123308: 83 c2 1c add $0x1c,%edx <== NOT EXECUTED
printf ("%" PRIu32 " ", rtems_rfs_inode_get_block (&inode, b));
printf ("%" PRIu32 "]\n", rtems_rfs_inode_get_block (&inode, b));
12330b: 57 push %edi <== NOT EXECUTED
12330c: 57 push %edi <== NOT EXECUTED
12330d: 0f b6 42 10 movzbl 0x10(%edx),%eax <== NOT EXECUTED
123311: c1 e0 18 shl $0x18,%eax <== NOT EXECUTED
123314: 0f b6 4a 11 movzbl 0x11(%edx),%ecx <== NOT EXECUTED
123318: c1 e1 10 shl $0x10,%ecx <== NOT EXECUTED
12331b: 09 c8 or %ecx,%eax <== NOT EXECUTED
12331d: 0f b6 4a 13 movzbl 0x13(%edx),%ecx <== NOT EXECUTED
123321: 09 c8 or %ecx,%eax <== NOT EXECUTED
123323: 0f b6 52 12 movzbl 0x12(%edx),%edx <== NOT EXECUTED
123327: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
12332a: 09 d0 or %edx,%eax <== NOT EXECUTED
12332c: 50 push %eax <== NOT EXECUTED
12332d: 68 2e a3 15 00 push $0x15a32e <== NOT EXECUTED
123332: e8 fd eb 01 00 call 141f34 <printf> <== NOT EXECUTED
123337: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
}
rc = rtems_rfs_inode_close (fs, &inode);
12333a: 51 push %ecx <== NOT EXECUTED
12333b: 51 push %ecx <== NOT EXECUTED
12333c: 8d 45 bc lea -0x44(%ebp),%eax <== NOT EXECUTED
12333f: 50 push %eax <== NOT EXECUTED
123340: 53 push %ebx <== NOT EXECUTED
123341: e8 02 58 01 00 call 138b48 <rtems_rfs_inode_close> <== NOT EXECUTED
123346: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc > 0)
123348: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12334b: 85 c0 test %eax,%eax <== NOT EXECUTED
12334d: 7e 1d jle 12336c <rtems_rfs_shell_inode+0x39b><== NOT EXECUTED
{
rtems_rfs_shell_unlock_rfs (fs);
12334f: 89 d8 mov %ebx,%eax <== NOT EXECUTED
123351: e8 5b fc ff ff call 122fb1 <rtems_rfs_shell_unlock_rfs><== NOT EXECUTED
printf ("error: closing inode handle: ino=%" PRIu32 ": (%d) %s\n",
123356: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
123359: 57 push %edi <== NOT EXECUTED
12335a: e8 5d 06 02 00 call 1439bc <strerror> <== NOT EXECUTED
12335f: 50 push %eax <== NOT EXECUTED
123360: 57 push %edi <== NOT EXECUTED
123361: 56 push %esi <== NOT EXECUTED
123362: 68 34 a3 15 00 push $0x15a334 <== NOT EXECUTED
123367: e9 d9 fd ff ff jmp 123145 <rtems_rfs_shell_inode+0x174><== NOT EXECUTED
return 1;
}
rtems_rfs_shell_lock_rfs (fs);
for (ino = start; ino <= end; ino++)
12336c: 46 inc %esi <== NOT EXECUTED
12336d: 3b 75 a8 cmp -0x58(%ebp),%esi <== NOT EXECUTED
123370: 0f 86 61 fd ff ff jbe 1230d7 <rtems_rfs_shell_inode+0x106><== NOT EXECUTED
return 1;
}
}
}
rtems_rfs_shell_unlock_rfs (fs);
123376: 89 d8 mov %ebx,%eax <== NOT EXECUTED
123378: e8 34 fc ff ff call 122fb1 <rtems_rfs_shell_unlock_rfs><== NOT EXECUTED
12337d: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
}
12337f: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
123382: 5b pop %ebx <== NOT EXECUTED
123383: 5e pop %esi <== NOT EXECUTED
123384: 5f pop %edi <== NOT EXECUTED
123385: c9 leave <== NOT EXECUTED
123386: c3 ret <== NOT EXECUTED
00122fb1 <rtems_rfs_shell_unlock_rfs>:
/**
* Unlock the file system.
*/
static void
rtems_rfs_shell_unlock_rfs (rtems_rfs_file_system* fs)
{
122fb1: 55 push %ebp <== NOT EXECUTED
122fb2: 89 e5 mov %esp,%ebp <== NOT EXECUTED
122fb4: 53 push %ebx <== NOT EXECUTED
122fb5: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED
* Unlock the RFS file system.
*/
static inline void
rtems_rfs_rtems_unlock (rtems_rfs_file_system* fs)
{
rtems_rfs_rtems_private* rtems = rtems_rfs_fs_user (fs);
122fb8: 8b 58 7c mov 0x7c(%eax),%ebx <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
122fbb: 50 push %eax <== NOT EXECUTED
122fbc: e8 77 29 01 00 call 135938 <rtems_rfs_buffers_release><== NOT EXECUTED
*/
static inline int
rtems_rfs_mutex_unlock (rtems_rfs_mutex* mutex)
{
#if __rtems__
rtems_status_code sc = rtems_semaphore_release (*mutex);
122fc1: 5a pop %edx <== NOT EXECUTED
122fc2: ff 33 pushl (%ebx) <== NOT EXECUTED
122fc4: e8 2b dd fe ff call 110cf4 <rtems_semaphore_release><== NOT EXECUTED
122fc9: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
#if __rtems__
rtems_rfs_rtems_unlock (fs);
#endif
}
122fcc: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
122fcf: c9 leave <== NOT EXECUTED
122fd0: c3 ret <== NOT EXECUTED
00122dbc <rtems_rfs_shell_usage>:
}
void
rtems_rfs_shell_usage (const char* arg)
{
122dbc: 55 push %ebp <== NOT EXECUTED
122dbd: 89 e5 mov %esp,%ebp <== NOT EXECUTED
122dbf: 53 push %ebx <== NOT EXECUTED
122dc0: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
122dc3: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
printf ("%s: RFS debugger\n", arg);
122dc6: 53 push %ebx <== NOT EXECUTED
122dc7: 68 48 a0 15 00 push $0x15a048 <== NOT EXECUTED
122dcc: e8 63 f1 01 00 call 141f34 <printf> <== NOT EXECUTED
printf (" %s [-hl] <path> <command>\n", arg);
122dd1: 58 pop %eax <== NOT EXECUTED
122dd2: 5a pop %edx <== NOT EXECUTED
122dd3: 53 push %ebx <== NOT EXECUTED
122dd4: 68 5a a0 15 00 push $0x15a05a <== NOT EXECUTED
122dd9: e8 56 f1 01 00 call 141f34 <printf> <== NOT EXECUTED
printf (" where:\n");
122dde: c7 04 24 77 a0 15 00 movl $0x15a077,(%esp) <== NOT EXECUTED
122de5: e8 5e f3 01 00 call 142148 <puts> <== NOT EXECUTED
printf (" path: Path to the mounted RFS file system\n");
122dea: c7 04 24 81 a0 15 00 movl $0x15a081,(%esp) <== NOT EXECUTED
122df1: e8 52 f3 01 00 call 142148 <puts> <== NOT EXECUTED
printf (" command: A debugger command. See -l for a list plus help.\n");
122df6: c7 04 24 b3 a0 15 00 movl $0x15a0b3,(%esp) <== NOT EXECUTED
122dfd: e8 46 f3 01 00 call 142148 <puts> <== NOT EXECUTED
printf (" -h: This help\n");
122e02: c7 04 24 f2 a0 15 00 movl $0x15a0f2,(%esp) <== NOT EXECUTED
122e09: e8 3a f3 01 00 call 142148 <puts> <== NOT EXECUTED
printf (" -l: The debugger command list.\n");
122e0e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
122e11: c7 45 08 0a a1 15 00 movl $0x15a10a,0x8(%ebp) <== NOT EXECUTED
}
122e18: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
122e1b: c9 leave <== NOT EXECUTED
printf (" %s [-hl] <path> <command>\n", arg);
printf (" where:\n");
printf (" path: Path to the mounted RFS file system\n");
printf (" command: A debugger command. See -l for a list plus help.\n");
printf (" -h: This help\n");
printf (" -l: The debugger command list.\n");
122e1c: e9 27 f3 01 00 jmp 142148 <puts> <== NOT EXECUTED
001390ba <rtems_rfs_symlink>:
const char* link,
int link_length,
uid_t uid,
gid_t gid,
rtems_rfs_ino parent)
{
1390ba: 55 push %ebp <== NOT EXECUTED
1390bb: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1390bd: 57 push %edi <== NOT EXECUTED
1390be: 56 push %esi <== NOT EXECUTED
1390bf: 53 push %ebx <== NOT EXECUTED
1390c0: 81 ec ac 00 00 00 sub $0xac,%esp <== NOT EXECUTED
1390c6: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
1390c9: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
1390cc: 8b 45 1c mov 0x1c(%ebp),%eax <== NOT EXECUTED
1390cf: 66 89 85 56 ff ff ff mov %ax,-0xaa(%ebp) <== NOT EXECUTED
1390d6: 8b 45 20 mov 0x20(%ebp),%eax <== NOT EXECUTED
1390d9: 66 89 85 54 ff ff ff mov %ax,-0xac(%ebp) <== NOT EXECUTED
printf (" link:");
for (c = 0; c < link_length; c++)
printf ("%c", link[c]);
}
if (link_length >= rtems_rfs_fs_block_size (fs))
1390e0: be 5b 00 00 00 mov $0x5b,%esi <== NOT EXECUTED
1390e5: 8b 45 18 mov 0x18(%ebp),%eax <== NOT EXECUTED
1390e8: 3b 43 08 cmp 0x8(%ebx),%eax <== NOT EXECUTED
1390eb: 0f 83 a5 01 00 00 jae 139296 <rtems_rfs_symlink+0x1dc><== NOT EXECUTED
return ENAMETOOLONG;
rc = rtems_rfs_inode_create (fs, parent, name, strlen (name),
1390f1: 31 c0 xor %eax,%eax <== NOT EXECUTED
1390f3: 83 c9 ff or $0xffffffff,%ecx <== NOT EXECUTED
1390f6: 89 d7 mov %edx,%edi <== NOT EXECUTED
1390f8: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED
1390fa: f7 d1 not %ecx <== NOT EXECUTED
1390fc: 49 dec %ecx <== NOT EXECUTED
1390fd: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
139100: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
139103: 50 push %eax <== NOT EXECUTED
139104: 0f b7 85 54 ff ff ff movzwl -0xac(%ebp),%eax <== NOT EXECUTED
13910b: 50 push %eax <== NOT EXECUTED
13910c: 0f b7 85 56 ff ff ff movzwl -0xaa(%ebp),%eax <== NOT EXECUTED
139113: 50 push %eax <== NOT EXECUTED
139114: 6a 01 push $0x1 <== NOT EXECUTED
139116: 68 ff a1 00 00 push $0xa1ff <== NOT EXECUTED
13911b: 51 push %ecx <== NOT EXECUTED
13911c: 52 push %edx <== NOT EXECUTED
13911d: ff 75 24 pushl 0x24(%ebp) <== NOT EXECUTED
139120: 53 push %ebx <== NOT EXECUTED
139121: e8 d6 fb ff ff call 138cfc <rtems_rfs_inode_create><== NOT EXECUTED
139126: 89 c6 mov %eax,%esi <== NOT EXECUTED
RTEMS_RFS_S_SYMLINK,
1, uid, gid, &ino);
if (rc > 0)
139128: 83 c4 30 add $0x30,%esp <== NOT EXECUTED
13912b: 85 c0 test %eax,%eax <== NOT EXECUTED
13912d: 0f 8f 63 01 00 00 jg 139296 <rtems_rfs_symlink+0x1dc><== NOT EXECUTED
return rc;
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
139133: 6a 01 push $0x1 <== NOT EXECUTED
139135: 8d 45 ac lea -0x54(%ebp),%eax <== NOT EXECUTED
139138: 50 push %eax <== NOT EXECUTED
139139: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
13913c: 53 push %ebx <== NOT EXECUTED
13913d: e8 75 fa ff ff call 138bb7 <rtems_rfs_inode_open> <== NOT EXECUTED
139142: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
139144: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
139147: 85 c0 test %eax,%eax <== NOT EXECUTED
139149: 0f 8f 47 01 00 00 jg 139296 <rtems_rfs_symlink+0x1dc><== NOT EXECUTED
/*
* If the link length is less than the length of data union in the inode
* place the link into the data area else allocate a block and write the link
* to that.
*/
if (link_length < RTEMS_RFS_INODE_DATA_NAME_SIZE)
13914f: 83 7d 18 13 cmpl $0x13,0x18(%ebp) <== NOT EXECUTED
139153: 77 42 ja 139197 <rtems_rfs_symlink+0xdd><== NOT EXECUTED
{
memset (inode.node->data.name, 0, RTEMS_RFS_INODE_DATA_NAME_SIZE);
139155: 8b 55 b8 mov -0x48(%ebp),%edx <== NOT EXECUTED
139158: 83 c2 1c add $0x1c,%edx <== NOT EXECUTED
13915b: b9 05 00 00 00 mov $0x5,%ecx <== NOT EXECUTED
139160: 31 c0 xor %eax,%eax <== NOT EXECUTED
139162: 89 d7 mov %edx,%edi <== NOT EXECUTED
139164: f3 ab rep stos %eax,%es:(%edi) <== NOT EXECUTED
memcpy (inode.node->data.name, link, link_length);
139166: 8b 45 b8 mov -0x48(%ebp),%eax <== NOT EXECUTED
139169: 83 c0 1c add $0x1c,%eax <== NOT EXECUTED
13916c: 89 c7 mov %eax,%edi <== NOT EXECUTED
13916e: 8b 75 14 mov 0x14(%ebp),%esi <== NOT EXECUTED
139171: 8b 4d 18 mov 0x18(%ebp),%ecx <== NOT EXECUTED
139174: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
* @param block_count The block count.
*/
static inline void
rtems_rfs_inode_set_block_count (rtems_rfs_inode_handle* handle, uint32_t block_count)
{
rtems_rfs_write_u32 (&handle->node->block_count, block_count);
139176: 8b 45 b8 mov -0x48(%ebp),%eax <== NOT EXECUTED
139179: c6 40 0c 00 movb $0x0,0xc(%eax) <== NOT EXECUTED
13917d: 8b 45 b8 mov -0x48(%ebp),%eax <== NOT EXECUTED
139180: c6 40 0d 00 movb $0x0,0xd(%eax) <== NOT EXECUTED
139184: 8b 45 b8 mov -0x48(%ebp),%eax <== NOT EXECUTED
139187: c6 40 0e 00 movb $0x0,0xe(%eax) <== NOT EXECUTED
13918b: 8b 45 b8 mov -0x48(%ebp),%eax <== NOT EXECUTED
13918e: c6 40 0f 00 movb $0x0,0xf(%eax) <== NOT EXECUTED
139192: e9 d5 00 00 00 jmp 13926c <rtems_rfs_symlink+0x1b2><== NOT EXECUTED
rtems_rfs_block_map map;
rtems_rfs_block_no block;
rtems_rfs_buffer_handle buffer;
uint8_t* data;
rc = rtems_rfs_block_map_open (fs, &inode, &map);
139197: 51 push %ecx <== NOT EXECUTED
139198: 8d 85 5c ff ff ff lea -0xa4(%ebp),%eax <== NOT EXECUTED
13919e: 50 push %eax <== NOT EXECUTED
13919f: 8d 45 ac lea -0x54(%ebp),%eax <== NOT EXECUTED
1391a2: 50 push %eax <== NOT EXECUTED
1391a3: 53 push %ebx <== NOT EXECUTED
1391a4: e8 9c c5 ff ff call 135745 <rtems_rfs_block_map_open><== NOT EXECUTED
1391a9: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
1391ab: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1391ae: 85 c0 test %eax,%eax <== NOT EXECUTED
1391b0: 0f 8f a8 00 00 00 jg 13925e <rtems_rfs_symlink+0x1a4><== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
return rc;
}
rc = rtems_rfs_block_map_grow (fs, &map, 1, &block);
1391b6: 8d 45 e0 lea -0x20(%ebp),%eax <== NOT EXECUTED
1391b9: 50 push %eax <== NOT EXECUTED
1391ba: 6a 01 push $0x1 <== NOT EXECUTED
1391bc: 8d 85 5c ff ff ff lea -0xa4(%ebp),%eax <== NOT EXECUTED
1391c2: 50 push %eax <== NOT EXECUTED
1391c3: 53 push %ebx <== NOT EXECUTED
1391c4: e8 41 c1 ff ff call 13530a <rtems_rfs_block_map_grow><== NOT EXECUTED
1391c9: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
1391cb: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1391ce: 85 c0 test %eax,%eax <== NOT EXECUTED
1391d0: 7f 2a jg 1391fc <rtems_rfs_symlink+0x142><== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_open (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
handle->dirty = false;
1391d2: c6 45 d4 00 movb $0x0,-0x2c(%ebp) <== NOT EXECUTED
handle->bnum = 0;
1391d6: c7 45 d8 00 00 00 00 movl $0x0,-0x28(%ebp) <== NOT EXECUTED
handle->buffer = NULL;
1391dd: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp) <== NOT EXECUTED
rtems_rfs_block_map_close (fs, &map);
rtems_rfs_inode_close (fs, &inode);
return rc;
}
rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, false);
1391e4: 6a 00 push $0x0 <== NOT EXECUTED
1391e6: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
1391e9: 8d 45 d4 lea -0x2c(%ebp),%eax <== NOT EXECUTED
1391ec: 50 push %eax <== NOT EXECUTED
1391ed: 53 push %ebx <== NOT EXECUTED
1391ee: e8 67 c9 ff ff call 135b5a <rtems_rfs_buffer_handle_request><== NOT EXECUTED
1391f3: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
1391f5: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1391f8: 85 c0 test %eax,%eax <== NOT EXECUTED
1391fa: 7e 13 jle 13920f <rtems_rfs_symlink+0x155><== NOT EXECUTED
{
rtems_rfs_block_map_close (fs, &map);
1391fc: 52 push %edx <== NOT EXECUTED
1391fd: 52 push %edx <== NOT EXECUTED
1391fe: 8d 85 5c ff ff ff lea -0xa4(%ebp),%eax <== NOT EXECUTED
139204: 50 push %eax <== NOT EXECUTED
139205: 53 push %ebx <== NOT EXECUTED
139206: e8 97 c3 ff ff call 1355a2 <rtems_rfs_block_map_close><== NOT EXECUTED
rtems_rfs_inode_close (fs, &inode);
13920b: 5f pop %edi <== NOT EXECUTED
13920c: 58 pop %eax <== NOT EXECUTED
13920d: eb 51 jmp 139260 <rtems_rfs_symlink+0x1a6><== NOT EXECUTED
return rc;
}
data = rtems_rfs_buffer_data (&buffer);
13920f: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED
139212: 8b 50 20 mov 0x20(%eax),%edx <== NOT EXECUTED
memset (data, 0xff, rtems_rfs_fs_block_size (fs));
139215: 8b 4b 08 mov 0x8(%ebx),%ecx <== NOT EXECUTED
139218: b0 ff mov $0xff,%al <== NOT EXECUTED
13921a: 89 d7 mov %edx,%edi <== NOT EXECUTED
13921c: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED
memcpy (data, link, link_length);
13921e: 89 d7 mov %edx,%edi <== NOT EXECUTED
139220: 8b 75 14 mov 0x14(%ebp),%esi <== NOT EXECUTED
139223: 8b 4d 18 mov 0x18(%ebp),%ecx <== NOT EXECUTED
139226: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_close (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
rtems_rfs_buffer_handle_release (fs, handle);
139228: 51 push %ecx <== NOT EXECUTED
139229: 51 push %ecx <== NOT EXECUTED
13922a: 8d 45 d4 lea -0x2c(%ebp),%eax <== NOT EXECUTED
13922d: 50 push %eax <== NOT EXECUTED
13922e: 53 push %ebx <== NOT EXECUTED
13922f: e8 2f c8 ff ff call 135a63 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
handle->dirty = false;
139234: c6 45 d4 00 movb $0x0,-0x2c(%ebp) <== NOT EXECUTED
handle->bnum = 0;
139238: c7 45 d8 00 00 00 00 movl $0x0,-0x28(%ebp) <== NOT EXECUTED
handle->buffer = NULL;
13923f: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp) <== NOT EXECUTED
rtems_rfs_block_map_close (fs, &map);
rtems_rfs_inode_close (fs, &inode);
return rc;
}
rc = rtems_rfs_block_map_close (fs, &map);
139246: 58 pop %eax <== NOT EXECUTED
139247: 5a pop %edx <== NOT EXECUTED
139248: 8d 85 5c ff ff ff lea -0xa4(%ebp),%eax <== NOT EXECUTED
13924e: 50 push %eax <== NOT EXECUTED
13924f: 53 push %ebx <== NOT EXECUTED
139250: e8 4d c3 ff ff call 1355a2 <rtems_rfs_block_map_close><== NOT EXECUTED
139255: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
139257: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13925a: 85 c0 test %eax,%eax <== NOT EXECUTED
13925c: 7e 0e jle 13926c <rtems_rfs_symlink+0x1b2><== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
13925e: 57 push %edi <== NOT EXECUTED
13925f: 57 push %edi <== NOT EXECUTED
139260: 8d 45 ac lea -0x54(%ebp),%eax <== NOT EXECUTED
139263: 50 push %eax <== NOT EXECUTED
139264: 53 push %ebx <== NOT EXECUTED
139265: e8 de f8 ff ff call 138b48 <rtems_rfs_inode_close> <== NOT EXECUTED
13926a: eb 27 jmp 139293 <rtems_rfs_symlink+0x1d9><== NOT EXECUTED
return rc;
}
}
rtems_rfs_inode_set_block_offset (&inode, link_length);
13926c: 8b 45 18 mov 0x18(%ebp),%eax <== NOT EXECUTED
*/
static inline void
rtems_rfs_inode_set_block_offset (rtems_rfs_inode_handle* handle,
uint16_t block_offset)
{
rtems_rfs_write_u16 (&handle->node->block_offset, block_offset);
13926f: 89 c1 mov %eax,%ecx <== NOT EXECUTED
139271: 66 c1 e9 08 shr $0x8,%cx <== NOT EXECUTED
139275: 8b 55 b8 mov -0x48(%ebp),%edx <== NOT EXECUTED
139278: 88 4a 0a mov %cl,0xa(%edx) <== NOT EXECUTED
13927b: 8b 55 b8 mov -0x48(%ebp),%edx <== NOT EXECUTED
13927e: 88 42 0b mov %al,0xb(%edx) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
139281: c6 45 bc 01 movb $0x1,-0x44(%ebp) <== NOT EXECUTED
rc = rtems_rfs_inode_close (fs, &inode);
139285: 51 push %ecx <== NOT EXECUTED
139286: 51 push %ecx <== NOT EXECUTED
139287: 8d 45 ac lea -0x54(%ebp),%eax <== NOT EXECUTED
13928a: 50 push %eax <== NOT EXECUTED
13928b: 53 push %ebx <== NOT EXECUTED
13928c: e8 b7 f8 ff ff call 138b48 <rtems_rfs_inode_close> <== NOT EXECUTED
139291: 89 c6 mov %eax,%esi <== NOT EXECUTED
return rc;
139293: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
139296: 89 f0 mov %esi,%eax <== NOT EXECUTED
139298: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13929b: 5b pop %ebx <== NOT EXECUTED
13929c: 5e pop %esi <== NOT EXECUTED
13929d: 5f pop %edi <== NOT EXECUTED
13929e: c9 leave <== NOT EXECUTED
13929f: c3 ret <== NOT EXECUTED
00138f1c <rtems_rfs_symlink_read>:
rtems_rfs_symlink_read (rtems_rfs_file_system* fs,
rtems_rfs_ino link,
char* path,
size_t size,
size_t* length)
{
138f1c: 55 push %ebp <== NOT EXECUTED
138f1d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
138f1f: 57 push %edi <== NOT EXECUTED
138f20: 56 push %esi <== NOT EXECUTED
138f21: 53 push %ebx <== NOT EXECUTED
138f22: 81 ec ac 00 00 00 sub $0xac,%esp <== NOT EXECUTED
138f28: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
int rc;
if (rtems_rfs_trace (RTEMS_RFS_TRACE_SYMLINK_READ))
printf ("rtems-rfs: symlink-read: link:%" PRIu32 "\n", link);
rc = rtems_rfs_inode_open (fs, link, &inode, true);
138f2b: 6a 01 push $0x1 <== NOT EXECUTED
138f2d: 8d 7d b0 lea -0x50(%ebp),%edi <== NOT EXECUTED
138f30: 57 push %edi <== NOT EXECUTED
138f31: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
138f34: 53 push %ebx <== NOT EXECUTED
138f35: e8 7d fc ff ff call 138bb7 <rtems_rfs_inode_open> <== NOT EXECUTED
138f3a: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc)
138f3c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
138f3f: 85 c0 test %eax,%eax <== NOT EXECUTED
138f41: 0f 85 69 01 00 00 jne 1390b0 <rtems_rfs_symlink_read+0x194><== NOT EXECUTED
* @return uint16_t The mode.
*/
static inline uint16_t
rtems_rfs_inode_get_mode (rtems_rfs_inode_handle* handle)
{
return rtems_rfs_read_u16 (&handle->node->mode);
138f47: 8b 75 bc mov -0x44(%ebp),%esi <== NOT EXECUTED
return rc;
if (!RTEMS_RFS_S_ISLNK (rtems_rfs_inode_get_mode (&inode)))
138f4a: 0f b6 46 02 movzbl 0x2(%esi),%eax <== NOT EXECUTED
138f4e: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
138f51: 25 00 f0 00 00 and $0xf000,%eax <== NOT EXECUTED
138f56: 3d 00 a0 00 00 cmp $0xa000,%eax <== NOT EXECUTED
138f5b: 75 1a jne 138f77 <rtems_rfs_symlink_read+0x5b><== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
return EINVAL;
}
*length = rtems_rfs_inode_get_block_offset (&inode);
138f5d: 0f b6 46 0a movzbl 0xa(%esi),%eax <== NOT EXECUTED
138f61: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
138f64: 0f b6 4e 0b movzbl 0xb(%esi),%ecx <== NOT EXECUTED
138f68: 09 c1 or %eax,%ecx <== NOT EXECUTED
138f6a: 0f b7 c9 movzwl %cx,%ecx <== NOT EXECUTED
138f6d: 8b 45 18 mov 0x18(%ebp),%eax <== NOT EXECUTED
138f70: 89 08 mov %ecx,(%eax) <== NOT EXECUTED
if (size < *length)
138f72: 39 4d 14 cmp %ecx,0x14(%ebp) <== NOT EXECUTED
138f75: 73 13 jae 138f8a <rtems_rfs_symlink_read+0x6e><== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
138f77: 52 push %edx <== NOT EXECUTED
138f78: 52 push %edx <== NOT EXECUTED
138f79: 57 push %edi <== NOT EXECUTED
138f7a: 53 push %ebx <== NOT EXECUTED
138f7b: e8 c8 fb ff ff call 138b48 <rtems_rfs_inode_close> <== NOT EXECUTED
138f80: be 16 00 00 00 mov $0x16,%esi <== NOT EXECUTED
138f85: e9 23 01 00 00 jmp 1390ad <rtems_rfs_symlink_read+0x191><== NOT EXECUTED
* @return uint32_t The block count.
*/
static inline uint32_t
rtems_rfs_inode_get_block_count (rtems_rfs_inode_handle* handle)
{
return rtems_rfs_read_u32 (&handle->node->block_count);
138f8a: 8d 46 0c lea 0xc(%esi),%eax <== NOT EXECUTED
return EINVAL;
}
if (rtems_rfs_inode_get_block_count (&inode) == 0)
138f8d: 80 78 03 00 cmpb $0x0,0x3(%eax) <== NOT EXECUTED
138f91: 75 1f jne 138fb2 <rtems_rfs_symlink_read+0x96><== NOT EXECUTED
138f93: 80 7e 0c 00 cmpb $0x0,0xc(%esi) <== NOT EXECUTED
138f97: 75 19 jne 138fb2 <rtems_rfs_symlink_read+0x96><== NOT EXECUTED
138f99: 80 78 01 00 cmpb $0x0,0x1(%eax) <== NOT EXECUTED
138f9d: 75 13 jne 138fb2 <rtems_rfs_symlink_read+0x96><== NOT EXECUTED
138f9f: 80 78 02 00 cmpb $0x0,0x2(%eax) <== NOT EXECUTED
138fa3: 75 0d jne 138fb2 <rtems_rfs_symlink_read+0x96><== NOT EXECUTED
{
memcpy (path, inode.node->data.name, *length);
138fa5: 83 c6 1c add $0x1c,%esi <== NOT EXECUTED
138fa8: 8b 7d 10 mov 0x10(%ebp),%edi <== NOT EXECUTED
138fab: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
138fad: e9 e1 00 00 00 jmp 139093 <rtems_rfs_symlink_read+0x177><== NOT EXECUTED
rtems_rfs_block_map map;
rtems_rfs_block_no block;
rtems_rfs_buffer_handle buffer;
char* data;
rc = rtems_rfs_block_map_open (fs, &inode, &map);
138fb2: 50 push %eax <== NOT EXECUTED
138fb3: 8d 95 60 ff ff ff lea -0xa0(%ebp),%edx <== NOT EXECUTED
138fb9: 52 push %edx <== NOT EXECUTED
138fba: 8d 45 b0 lea -0x50(%ebp),%eax <== NOT EXECUTED
138fbd: 50 push %eax <== NOT EXECUTED
138fbe: 53 push %ebx <== NOT EXECUTED
138fbf: e8 81 c7 ff ff call 135745 <rtems_rfs_block_map_open><== NOT EXECUTED
138fc4: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
138fc6: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
138fc9: 85 c0 test %eax,%eax <== NOT EXECUTED
138fcb: 7e 0b jle 138fd8 <rtems_rfs_symlink_read+0xbc><== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
138fcd: 57 push %edi <== NOT EXECUTED
138fce: 57 push %edi <== NOT EXECUTED
138fcf: 8d 55 b0 lea -0x50(%ebp),%edx <== NOT EXECUTED
138fd2: 52 push %edx <== NOT EXECUTED
138fd3: e9 b3 00 00 00 jmp 13908b <rtems_rfs_symlink_read+0x16f><== NOT EXECUTED
return rc;
}
rc = rtems_rfs_block_map_seek (fs, &map, 0, &block);
138fd8: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
138fdb: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
138fde: 50 push %eax <== NOT EXECUTED
138fdf: 6a 00 push $0x0 <== NOT EXECUTED
138fe1: 6a 00 push $0x0 <== NOT EXECUTED
138fe3: 8d 85 60 ff ff ff lea -0xa0(%ebp),%eax <== NOT EXECUTED
138fe9: 50 push %eax <== NOT EXECUTED
138fea: 53 push %ebx <== NOT EXECUTED
138feb: e8 b0 be ff ff call 134ea0 <rtems_rfs_block_map_seek><== NOT EXECUTED
138ff0: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
138ff2: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
138ff5: 85 c0 test %eax,%eax <== NOT EXECUTED
138ff7: 7f 36 jg 13902f <rtems_rfs_symlink_read+0x113><== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_open (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
handle->dirty = false;
138ff9: c6 45 d8 00 movb $0x0,-0x28(%ebp) <== NOT EXECUTED
handle->bnum = 0;
138ffd: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp) <== NOT EXECUTED
handle->buffer = NULL;
139004: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp) <== NOT EXECUTED
rtems_rfs_block_map_close (fs, &map);
rtems_rfs_inode_close (fs, &inode);
return rc;
}
rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, false);
13900b: 6a 00 push $0x0 <== NOT EXECUTED
13900d: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
139010: 8d 55 d8 lea -0x28(%ebp),%edx <== NOT EXECUTED
139013: 52 push %edx <== NOT EXECUTED
139014: 53 push %ebx <== NOT EXECUTED
139015: 89 95 54 ff ff ff mov %edx,-0xac(%ebp) <== NOT EXECUTED
13901b: e8 3a cb ff ff call 135b5a <rtems_rfs_buffer_handle_request><== NOT EXECUTED
139020: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
139022: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
139025: 85 c0 test %eax,%eax <== NOT EXECUTED
139027: 8b 95 54 ff ff ff mov -0xac(%ebp),%edx <== NOT EXECUTED
13902d: 7e 13 jle 139042 <rtems_rfs_symlink_read+0x126><== NOT EXECUTED
{
rtems_rfs_block_map_close (fs, &map);
13902f: 51 push %ecx <== NOT EXECUTED
139030: 51 push %ecx <== NOT EXECUTED
139031: 8d 95 60 ff ff ff lea -0xa0(%ebp),%edx <== NOT EXECUTED
139037: 52 push %edx <== NOT EXECUTED
139038: 53 push %ebx <== NOT EXECUTED
139039: e8 64 c5 ff ff call 1355a2 <rtems_rfs_block_map_close><== NOT EXECUTED
rtems_rfs_inode_close (fs, &inode);
13903e: 58 pop %eax <== NOT EXECUTED
13903f: 5a pop %edx <== NOT EXECUTED
139040: eb 45 jmp 139087 <rtems_rfs_symlink_read+0x16b><== NOT EXECUTED
return rc;
}
data = rtems_rfs_buffer_data (&buffer);
memcpy (path, data, *length);
139042: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
139045: 8b 70 20 mov 0x20(%eax),%esi <== NOT EXECUTED
139048: 8b 45 18 mov 0x18(%ebp),%eax <== NOT EXECUTED
13904b: 8b 08 mov (%eax),%ecx <== NOT EXECUTED
13904d: 8b 7d 10 mov 0x10(%ebp),%edi <== NOT EXECUTED
139050: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_close (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
rtems_rfs_buffer_handle_release (fs, handle);
139052: 57 push %edi <== NOT EXECUTED
139053: 57 push %edi <== NOT EXECUTED
139054: 52 push %edx <== NOT EXECUTED
139055: 53 push %ebx <== NOT EXECUTED
139056: e8 08 ca ff ff call 135a63 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
handle->dirty = false;
13905b: c6 45 d8 00 movb $0x0,-0x28(%ebp) <== NOT EXECUTED
handle->bnum = 0;
13905f: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp) <== NOT EXECUTED
handle->buffer = NULL;
139066: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp) <== NOT EXECUTED
rtems_rfs_block_map_close (fs, &map);
rtems_rfs_inode_close (fs, &inode);
return rc;
}
rc = rtems_rfs_block_map_close (fs, &map);
13906d: 59 pop %ecx <== NOT EXECUTED
13906e: 5e pop %esi <== NOT EXECUTED
13906f: 8d 95 60 ff ff ff lea -0xa0(%ebp),%edx <== NOT EXECUTED
139075: 52 push %edx <== NOT EXECUTED
139076: 53 push %ebx <== NOT EXECUTED
139077: e8 26 c5 ff ff call 1355a2 <rtems_rfs_block_map_close><== NOT EXECUTED
13907c: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
13907e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
139081: 85 c0 test %eax,%eax <== NOT EXECUTED
139083: 7e 0e jle 139093 <rtems_rfs_symlink_read+0x177><== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
139085: 52 push %edx <== NOT EXECUTED
139086: 52 push %edx <== NOT EXECUTED
139087: 8d 45 b0 lea -0x50(%ebp),%eax <== NOT EXECUTED
13908a: 50 push %eax <== NOT EXECUTED
13908b: 53 push %ebx <== NOT EXECUTED
13908c: e8 b7 fa ff ff call 138b48 <rtems_rfs_inode_close> <== NOT EXECUTED
139091: eb 1a jmp 1390ad <rtems_rfs_symlink_read+0x191><== NOT EXECUTED
return rc;
}
}
path[*length] = '\0';
139093: 8b 55 18 mov 0x18(%ebp),%edx <== NOT EXECUTED
139096: 8b 02 mov (%edx),%eax <== NOT EXECUTED
139098: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
13909b: c6 04 02 00 movb $0x0,(%edx,%eax,1) <== NOT EXECUTED
rc = rtems_rfs_inode_close (fs, &inode);
13909f: 50 push %eax <== NOT EXECUTED
1390a0: 50 push %eax <== NOT EXECUTED
1390a1: 8d 45 b0 lea -0x50(%ebp),%eax <== NOT EXECUTED
1390a4: 50 push %eax <== NOT EXECUTED
1390a5: 53 push %ebx <== NOT EXECUTED
1390a6: e8 9d fa ff ff call 138b48 <rtems_rfs_inode_close> <== NOT EXECUTED
1390ab: 89 c6 mov %eax,%esi <== NOT EXECUTED
return rc;
1390ad: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
1390b0: 89 f0 mov %esi,%eax <== NOT EXECUTED
1390b2: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1390b5: 5b pop %ebx <== NOT EXECUTED
1390b6: 5e pop %esi <== NOT EXECUTED
1390b7: 5f pop %edi <== NOT EXECUTED
1390b8: c9 leave <== NOT EXECUTED
1390b9: c3 ret <== NOT EXECUTED
001392a0 <rtems_rfs_unlink>:
rtems_rfs_unlink (rtems_rfs_file_system* fs,
rtems_rfs_ino parent,
rtems_rfs_ino target,
uint32_t doff,
rtems_rfs_unlink_dir dir_mode)
{
1392a0: 55 push %ebp <== NOT EXECUTED
1392a1: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1392a3: 57 push %edi <== NOT EXECUTED
1392a4: 56 push %esi <== NOT EXECUTED
1392a5: 53 push %ebx <== NOT EXECUTED
1392a6: 83 ec 6c sub $0x6c,%esp <== NOT EXECUTED
1392a9: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
int rc;
if (rtems_rfs_trace (RTEMS_RFS_TRACE_UNLINK))
printf ("rtems-rfs: unlink: parent(%" PRIu32 ") -X-> (%" PRIu32 ")\n", parent, target);
rc = rtems_rfs_inode_open (fs, target, &target_inode, true);
1392ac: 6a 01 push $0x1 <== NOT EXECUTED
1392ae: 8d 7d 98 lea -0x68(%ebp),%edi <== NOT EXECUTED
1392b1: 57 push %edi <== NOT EXECUTED
1392b2: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
1392b5: 53 push %ebx <== NOT EXECUTED
1392b6: e8 fc f8 ff ff call 138bb7 <rtems_rfs_inode_open> <== NOT EXECUTED
1392bb: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc)
1392bd: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1392c0: 85 c0 test %eax,%eax <== NOT EXECUTED
1392c2: 0f 85 71 01 00 00 jne 139439 <rtems_rfs_unlink+0x199><== NOT EXECUTED
/*
* If a directory process the unlink mode.
*/
dir = RTEMS_RFS_S_ISDIR (rtems_rfs_inode_get_mode (&target_inode));
1392c8: 8b 45 a4 mov -0x5c(%ebp),%eax <== NOT EXECUTED
1392cb: 0f b6 40 02 movzbl 0x2(%eax),%eax <== NOT EXECUTED
1392cf: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
1392d2: 25 00 f0 00 00 and $0xf000,%eax <== NOT EXECUTED
1392d7: 3d 00 40 00 00 cmp $0x4000,%eax <== NOT EXECUTED
if (dir)
1392dc: 0f 94 45 97 sete -0x69(%ebp) <== NOT EXECUTED
1392e0: 75 3a jne 13931c <rtems_rfs_unlink+0x7c> <== NOT EXECUTED
{
switch (dir_mode)
1392e2: 83 7d 18 00 cmpl $0x0,0x18(%ebp) <== NOT EXECUTED
1392e6: 74 08 je 1392f0 <rtems_rfs_unlink+0x50> <== NOT EXECUTED
1392e8: 83 7d 18 01 cmpl $0x1,0x18(%ebp) <== NOT EXECUTED
1392ec: 75 2e jne 13931c <rtems_rfs_unlink+0x7c> <== NOT EXECUTED
1392ee: eb 13 jmp 139303 <rtems_rfs_unlink+0x63> <== NOT EXECUTED
{
case rtems_rfs_unlink_dir_denied:
if (rtems_rfs_trace (RTEMS_RFS_TRACE_UNLINK))
printf ("rtems-rfs: link is a directory\n");
rtems_rfs_inode_close (fs, &target_inode);
1392f0: 51 push %ecx <== NOT EXECUTED
1392f1: 51 push %ecx <== NOT EXECUTED
1392f2: 57 push %edi <== NOT EXECUTED
1392f3: 53 push %ebx <== NOT EXECUTED
1392f4: e8 4f f8 ff ff call 138b48 <rtems_rfs_inode_close> <== NOT EXECUTED
1392f9: be 15 00 00 00 mov $0x15,%esi <== NOT EXECUTED
1392fe: e9 33 01 00 00 jmp 139436 <rtems_rfs_unlink+0x196><== NOT EXECUTED
return EISDIR;
case rtems_rfs_unlink_dir_if_empty:
rc = rtems_rfs_dir_empty (fs, &target_inode);
139303: 52 push %edx <== NOT EXECUTED
139304: 52 push %edx <== NOT EXECUTED
139305: 57 push %edi <== NOT EXECUTED
139306: 53 push %ebx <== NOT EXECUTED
139307: e8 14 ca ff ff call 135d20 <rtems_rfs_dir_empty> <== NOT EXECUTED
13930c: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
13930e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
139311: 85 c0 test %eax,%eax <== NOT EXECUTED
139313: 7e 07 jle 13931c <rtems_rfs_unlink+0x7c> <== NOT EXECUTED
{
if (rtems_rfs_trace (RTEMS_RFS_TRACE_UNLINK))
printf ("rtems-rfs: dir-empty: %d: %s\n", rc, strerror (rc));
rtems_rfs_inode_close (fs, &target_inode);
139315: 50 push %eax <== NOT EXECUTED
139316: 50 push %eax <== NOT EXECUTED
139317: e9 8c 00 00 00 jmp 1393a8 <rtems_rfs_unlink+0x108><== NOT EXECUTED
default:
break;
}
}
rc = rtems_rfs_inode_open (fs, parent, &parent_inode, true);
13931c: 6a 01 push $0x1 <== NOT EXECUTED
13931e: 8d 7d c0 lea -0x40(%ebp),%edi <== NOT EXECUTED
139321: 57 push %edi <== NOT EXECUTED
139322: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
139325: 53 push %ebx <== NOT EXECUTED
139326: e8 8c f8 ff ff call 138bb7 <rtems_rfs_inode_open> <== NOT EXECUTED
13932b: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc)
13932d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
139330: 85 c0 test %eax,%eax <== NOT EXECUTED
139332: 74 07 je 13933b <rtems_rfs_unlink+0x9b> <== NOT EXECUTED
{
if (rtems_rfs_trace (RTEMS_RFS_TRACE_UNLINK))
printf ("rtems-rfs: link: inode-open failed: %d: %s\n",
rc, strerror (rc));
rtems_rfs_inode_close (fs, &target_inode);
139334: 57 push %edi <== NOT EXECUTED
139335: 57 push %edi <== NOT EXECUTED
139336: e9 cb 00 00 00 jmp 139406 <rtems_rfs_unlink+0x166><== NOT EXECUTED
return rc;
}
rc = rtems_rfs_dir_del_entry (fs, &parent_inode, target, doff);
13933b: ff 75 14 pushl 0x14(%ebp) <== NOT EXECUTED
13933e: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
139341: 57 push %edi <== NOT EXECUTED
139342: 53 push %ebx <== NOT EXECUTED
139343: e8 01 ce ff ff call 136149 <rtems_rfs_dir_del_entry><== NOT EXECUTED
139348: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
13934a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13934d: 85 c0 test %eax,%eax <== NOT EXECUTED
13934f: 0f 8f a6 00 00 00 jg 1393fb <rtems_rfs_unlink+0x15b><== NOT EXECUTED
*/
static inline uint16_t
rtems_rfs_inode_get_links (rtems_rfs_inode_handle* handle)
{
uint16_t links;
links = rtems_rfs_read_u16 (&handle->node->links);
139355: 8b 55 a4 mov -0x5c(%ebp),%edx <== NOT EXECUTED
139358: 0f b6 0a movzbl (%edx),%ecx <== NOT EXECUTED
13935b: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
13935e: 0f b6 42 01 movzbl 0x1(%edx),%eax <== NOT EXECUTED
139362: 09 c8 or %ecx,%eax <== NOT EXECUTED
if (links == 0xffff)
139364: 66 83 f8 ff cmp $0xffffffff,%ax <== NOT EXECUTED
139368: 74 1b je 139385 <rtems_rfs_unlink+0xe5> <== NOT EXECUTED
links = rtems_rfs_inode_get_links (&target_inode);
if (rtems_rfs_trace (RTEMS_RFS_TRACE_UNLINK))
printf ("rtems-rfs: unlink: target:%" PRIu32 " links:%u\n", target, links);
if (links > 1)
13936a: 66 83 f8 01 cmp $0x1,%ax <== NOT EXECUTED
13936e: 76 15 jbe 139385 <rtems_rfs_unlink+0xe5> <== NOT EXECUTED
{
links--;
139370: 48 dec %eax <== NOT EXECUTED
* @prarm links The links.
*/
static inline void
rtems_rfs_inode_set_links (rtems_rfs_inode_handle* handle, uint16_t links)
{
rtems_rfs_write_u16 (&handle->node->links, links);
139371: 89 c1 mov %eax,%ecx <== NOT EXECUTED
139373: 66 c1 e9 08 shr $0x8,%cx <== NOT EXECUTED
139377: 88 0a mov %cl,(%edx) <== NOT EXECUTED
139379: 8b 55 a4 mov -0x5c(%ebp),%edx <== NOT EXECUTED
13937c: 88 42 01 mov %al,0x1(%edx) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
13937f: c6 45 a8 01 movb $0x1,-0x58(%ebp) <== NOT EXECUTED
139383: eb 5f jmp 1393e4 <rtems_rfs_unlink+0x144><== NOT EXECUTED
else
{
/*
* Erasing the inode releases all blocks attached to it.
*/
rc = rtems_rfs_inode_delete (fs, &target_inode);
139385: 51 push %ecx <== NOT EXECUTED
139386: 51 push %ecx <== NOT EXECUTED
139387: 8d 7d 98 lea -0x68(%ebp),%edi <== NOT EXECUTED
13938a: 57 push %edi <== NOT EXECUTED
13938b: 53 push %ebx <== NOT EXECUTED
13938c: e8 c4 f8 ff ff call 138c55 <rtems_rfs_inode_delete><== NOT EXECUTED
139391: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
139393: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
139396: 85 c0 test %eax,%eax <== NOT EXECUTED
139398: 7e 11 jle 1393ab <rtems_rfs_unlink+0x10b><== NOT EXECUTED
{
if (rtems_rfs_trace (RTEMS_RFS_TRACE_UNLINK))
printf ("rtems-rfs: unlink: inode-del failed: %d: %s\n",
rc, strerror (rc));
rtems_rfs_inode_close (fs, &parent_inode);
13939a: 52 push %edx <== NOT EXECUTED
13939b: 52 push %edx <== NOT EXECUTED
13939c: 8d 45 c0 lea -0x40(%ebp),%eax <== NOT EXECUTED
13939f: 50 push %eax <== NOT EXECUTED
1393a0: 53 push %ebx <== NOT EXECUTED
1393a1: e8 a2 f7 ff ff call 138b48 <rtems_rfs_inode_close> <== NOT EXECUTED
rtems_rfs_inode_close (fs, &target_inode);
1393a6: 59 pop %ecx <== NOT EXECUTED
1393a7: 58 pop %eax <== NOT EXECUTED
1393a8: 57 push %edi <== NOT EXECUTED
1393a9: eb 78 jmp 139423 <rtems_rfs_unlink+0x183><== NOT EXECUTED
return rc;
}
if (dir)
1393ab: 80 7d 97 00 cmpb $0x0,-0x69(%ebp) <== NOT EXECUTED
1393af: 74 33 je 1393e4 <rtems_rfs_unlink+0x144><== NOT EXECUTED
*/
static inline uint16_t
rtems_rfs_inode_get_links (rtems_rfs_inode_handle* handle)
{
uint16_t links;
links = rtems_rfs_read_u16 (&handle->node->links);
1393b1: 8b 55 cc mov -0x34(%ebp),%edx <== NOT EXECUTED
1393b4: 0f b6 0a movzbl (%edx),%ecx <== NOT EXECUTED
1393b7: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
1393ba: 0f b6 42 01 movzbl 0x1(%edx),%eax <== NOT EXECUTED
1393be: 09 c8 or %ecx,%eax <== NOT EXECUTED
if (links == 0xffff)
1393c0: 66 83 f8 ff cmp $0xffffffff,%ax <== NOT EXECUTED
1393c4: 75 04 jne 1393ca <rtems_rfs_unlink+0x12a><== NOT EXECUTED
1393c6: 31 c0 xor %eax,%eax <== NOT EXECUTED
1393c8: eb 08 jmp 1393d2 <rtems_rfs_unlink+0x132><== NOT EXECUTED
{
links = rtems_rfs_inode_get_links (&parent_inode);
if (links > 1)
links--;
1393ca: 66 83 f8 02 cmp $0x2,%ax <== NOT EXECUTED
1393ce: 66 83 d0 ff adc $0xffffffff,%ax <== NOT EXECUTED
* @prarm links The links.
*/
static inline void
rtems_rfs_inode_set_links (rtems_rfs_inode_handle* handle, uint16_t links)
{
rtems_rfs_write_u16 (&handle->node->links, links);
1393d2: 89 c1 mov %eax,%ecx <== NOT EXECUTED
1393d4: 66 c1 e9 08 shr $0x8,%cx <== NOT EXECUTED
1393d8: 88 0a mov %cl,(%edx) <== NOT EXECUTED
1393da: 8b 55 cc mov -0x34(%ebp),%edx <== NOT EXECUTED
1393dd: 88 42 01 mov %al,0x1(%edx) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
1393e0: c6 45 d0 01 movb $0x1,-0x30(%ebp) <== NOT EXECUTED
rtems_rfs_inode_set_links (&parent_inode, links);
}
}
rc = rtems_rfs_inode_time_stamp_now (&parent_inode, true, true);
1393e4: 52 push %edx <== NOT EXECUTED
1393e5: 6a 01 push $0x1 <== NOT EXECUTED
1393e7: 6a 01 push $0x1 <== NOT EXECUTED
1393e9: 8d 7d c0 lea -0x40(%ebp),%edi <== NOT EXECUTED
1393ec: 57 push %edi <== NOT EXECUTED
1393ed: e8 e4 f4 ff ff call 1388d6 <rtems_rfs_inode_time_stamp_now><== NOT EXECUTED
1393f2: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
1393f4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1393f7: 85 c0 test %eax,%eax <== NOT EXECUTED
1393f9: 7e 10 jle 13940b <rtems_rfs_unlink+0x16b><== NOT EXECUTED
{
if (rtems_rfs_trace (RTEMS_RFS_TRACE_UNLINK))
printf ("rtems-rfs: link: inode-time-stamp failed: %d: %s\n",
rc, strerror (rc));
rtems_rfs_inode_close (fs, &parent_inode);
1393fb: 50 push %eax <== NOT EXECUTED
1393fc: 50 push %eax <== NOT EXECUTED
1393fd: 57 push %edi <== NOT EXECUTED
1393fe: 53 push %ebx <== NOT EXECUTED
1393ff: e8 44 f7 ff ff call 138b48 <rtems_rfs_inode_close> <== NOT EXECUTED
rtems_rfs_inode_close (fs, &target_inode);
139404: 5a pop %edx <== NOT EXECUTED
139405: 59 pop %ecx <== NOT EXECUTED
139406: 8d 45 98 lea -0x68(%ebp),%eax <== NOT EXECUTED
139409: eb 17 jmp 139422 <rtems_rfs_unlink+0x182><== NOT EXECUTED
return rc;
}
rc = rtems_rfs_inode_close (fs, &parent_inode);
13940b: 50 push %eax <== NOT EXECUTED
13940c: 50 push %eax <== NOT EXECUTED
13940d: 57 push %edi <== NOT EXECUTED
13940e: 53 push %ebx <== NOT EXECUTED
13940f: e8 34 f7 ff ff call 138b48 <rtems_rfs_inode_close> <== NOT EXECUTED
139414: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
139416: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
139419: 85 c0 test %eax,%eax <== NOT EXECUTED
13941b: 8d 45 98 lea -0x68(%ebp),%eax <== NOT EXECUTED
13941e: 7e 0b jle 13942b <rtems_rfs_unlink+0x18b><== NOT EXECUTED
{
if (rtems_rfs_trace (RTEMS_RFS_TRACE_UNLINK))
printf ("rtems-rfs: link: parent inode-close failed: %d: %s\n",
rc, strerror (rc));
rtems_rfs_inode_close (fs, &target_inode);
139420: 57 push %edi <== NOT EXECUTED
139421: 57 push %edi <== NOT EXECUTED
139422: 50 push %eax <== NOT EXECUTED
139423: 53 push %ebx <== NOT EXECUTED
139424: e8 1f f7 ff ff call 138b48 <rtems_rfs_inode_close> <== NOT EXECUTED
139429: eb 0b jmp 139436 <rtems_rfs_unlink+0x196><== NOT EXECUTED
return rc;
}
rc = rtems_rfs_inode_close (fs, &target_inode);
13942b: 56 push %esi <== NOT EXECUTED
13942c: 56 push %esi <== NOT EXECUTED
13942d: 50 push %eax <== NOT EXECUTED
13942e: 53 push %ebx <== NOT EXECUTED
13942f: e8 14 f7 ff ff call 138b48 <rtems_rfs_inode_close> <== NOT EXECUTED
139434: 89 c6 mov %eax,%esi <== NOT EXECUTED
if ((rc > 0) && rtems_rfs_trace (RTEMS_RFS_TRACE_UNLINK))
printf ("rtems-rfs: link: target inode-close failed: %d: %s\n",
rc, strerror (rc));
return rc;
139436: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
139439: 89 f0 mov %esi,%eax <== NOT EXECUTED
13943b: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13943e: 5b pop %ebx <== NOT EXECUTED
13943f: 5e pop %esi <== NOT EXECUTED
139440: 5f pop %edi <== NOT EXECUTED
139441: c9 leave <== NOT EXECUTED
139442: c3 ret <== NOT EXECUTED
00123a63 <rtems_shell_debugrfs>:
printf (" -l: The debugger command list.\n");
}
int
rtems_shell_debugrfs (int argc, char *argv[])
{
123a63: 55 push %ebp <== NOT EXECUTED
123a64: 89 e5 mov %esp,%ebp <== NOT EXECUTED
123a66: 57 push %edi <== NOT EXECUTED
123a67: 56 push %esi <== NOT EXECUTED
123a68: 53 push %ebx <== NOT EXECUTED
123a69: 81 ec ac 00 00 00 sub $0xac,%esp <== NOT EXECUTED
"Display a block as a table for directory entrie, dir <bno>" },
{ "group", rtems_rfs_shell_group,
"Display the group data of a file system, group, group <group>, group <start> <end>" },
{ "inode", rtems_rfs_shell_inode,
"Display an inode, inode <ino>, inode> <ino>..<ino>" }
};
123a6f: 8d bd 60 ff ff ff lea -0xa0(%ebp),%edi <== NOT EXECUTED
123a75: be 24 a9 15 00 mov $0x15a924,%esi <== NOT EXECUTED
123a7a: b9 0f 00 00 00 mov $0xf,%ecx <== NOT EXECUTED
123a7f: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED
int arg;
int t;
for (arg = 1; arg < argc; arg++)
123a81: 83 7d 08 01 cmpl $0x1,0x8(%ebp) <== NOT EXECUTED
123a85: 0f 8e c8 00 00 00 jle 123b53 <rtems_shell_debugrfs+0xf0><== NOT EXECUTED
{
if (argv[arg][0] != '-')
123a8b: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
123a8e: 8b 58 04 mov 0x4(%eax),%ebx <== NOT EXECUTED
123a91: 80 3b 2d cmpb $0x2d,(%ebx) <== NOT EXECUTED
123a94: 0f 85 b3 00 00 00 jne 123b4d <rtems_shell_debugrfs+0xea><== NOT EXECUTED
break;
switch (argv[arg][1])
123a9a: 8a 43 01 mov 0x1(%ebx),%al <== NOT EXECUTED
123a9d: 3c 68 cmp $0x68,%al <== NOT EXECUTED
123a9f: 74 0a je 123aab <rtems_shell_debugrfs+0x48><== NOT EXECUTED
123aa1: 3c 6c cmp $0x6c,%al <== NOT EXECUTED
123aa3: 0f 85 97 00 00 00 jne 123b40 <rtems_shell_debugrfs+0xdd><== NOT EXECUTED
123aa9: eb 0f jmp 123aba <rtems_shell_debugrfs+0x57><== NOT EXECUTED
{
case 'h':
rtems_rfs_shell_usage (argv[0]);
123aab: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
123aae: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
123ab1: ff 30 pushl (%eax) <== NOT EXECUTED
123ab3: e8 04 f3 ff ff call 122dbc <rtems_rfs_shell_usage> <== NOT EXECUTED
123ab8: eb 7f jmp 123b39 <rtems_shell_debugrfs+0xd6><== NOT EXECUTED
return 0;
case 'l':
printf ("%s: commands are:\n", argv[0]);
123aba: 57 push %edi <== NOT EXECUTED
123abb: 57 push %edi <== NOT EXECUTED
123abc: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
123abf: ff 30 pushl (%eax) <== NOT EXECUTED
123ac1: 68 16 a7 15 00 push $0x15a716 <== NOT EXECUTED
123ac6: e8 69 e4 01 00 call 141f34 <printf> <== NOT EXECUTED
for (t = 0; t < (sizeof (table) / sizeof (const rtems_rfs_shell_cmd)); t++)
printf (" %s\t\t%s\n", table[t].name, table[t].help);
123acb: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
123ace: ff b5 68 ff ff ff pushl -0x98(%ebp) <== NOT EXECUTED
123ad4: ff b5 60 ff ff ff pushl -0xa0(%ebp) <== NOT EXECUTED
123ada: 68 29 a7 15 00 push $0x15a729 <== NOT EXECUTED
123adf: e8 50 e4 01 00 call 141f34 <printf> <== NOT EXECUTED
123ae4: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
123ae7: ff b5 74 ff ff ff pushl -0x8c(%ebp) <== NOT EXECUTED
123aed: ff b5 6c ff ff ff pushl -0x94(%ebp) <== NOT EXECUTED
123af3: 68 29 a7 15 00 push $0x15a729 <== NOT EXECUTED
123af8: e8 37 e4 01 00 call 141f34 <printf> <== NOT EXECUTED
123afd: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
123b00: ff 75 80 pushl -0x80(%ebp) <== NOT EXECUTED
123b03: ff b5 78 ff ff ff pushl -0x88(%ebp) <== NOT EXECUTED
123b09: 68 29 a7 15 00 push $0x15a729 <== NOT EXECUTED
123b0e: e8 21 e4 01 00 call 141f34 <printf> <== NOT EXECUTED
123b13: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
123b16: ff 75 8c pushl -0x74(%ebp) <== NOT EXECUTED
123b19: ff 75 84 pushl -0x7c(%ebp) <== NOT EXECUTED
123b1c: 68 29 a7 15 00 push $0x15a729 <== NOT EXECUTED
123b21: e8 0e e4 01 00 call 141f34 <printf> <== NOT EXECUTED
123b26: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
123b29: ff 75 98 pushl -0x68(%ebp) <== NOT EXECUTED
123b2c: ff 75 90 pushl -0x70(%ebp) <== NOT EXECUTED
123b2f: 68 29 a7 15 00 push $0x15a729 <== NOT EXECUTED
123b34: e8 fb e3 01 00 call 141f34 <printf> <== NOT EXECUTED
123b39: 31 c0 xor %eax,%eax <== NOT EXECUTED
123b3b: e9 2e 01 00 00 jmp 123c6e <rtems_shell_debugrfs+0x20b><== NOT EXECUTED
return 0;
default:
printf ("error: unknown option: %s\n", argv[arg]);
123b40: 56 push %esi <== NOT EXECUTED
123b41: 56 push %esi <== NOT EXECUTED
123b42: 53 push %ebx <== NOT EXECUTED
123b43: 68 33 a7 15 00 push $0x15a733 <== NOT EXECUTED
123b48: e9 17 01 00 00 jmp 123c64 <rtems_shell_debugrfs+0x201><== NOT EXECUTED
return 1;
}
}
if ((argc - arg) < 2)
123b4d: 83 7d 08 02 cmpl $0x2,0x8(%ebp) <== NOT EXECUTED
123b51: 75 11 jne 123b64 <rtems_shell_debugrfs+0x101><== NOT EXECUTED
printf ("error: you need at least a path and command, try %s -h\n", argv[0]);
123b53: 53 push %ebx <== NOT EXECUTED
123b54: 53 push %ebx <== NOT EXECUTED
123b55: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
123b58: ff 30 pushl (%eax) <== NOT EXECUTED
123b5a: 68 4e a7 15 00 push $0x15a74e <== NOT EXECUTED
123b5f: e9 00 01 00 00 jmp 123c64 <rtems_shell_debugrfs+0x201><== NOT EXECUTED
rtems_rfs_get_fs (const char* path, rtems_rfs_file_system** fs)
{
struct statvfs sb;
int rc;
rc = statvfs (path, &sb);
123b64: 51 push %ecx <== NOT EXECUTED
123b65: 51 push %ecx <== NOT EXECUTED
123b66: 8d 45 9c lea -0x64(%ebp),%eax <== NOT EXECUTED
123b69: 50 push %eax <== NOT EXECUTED
123b6a: 53 push %ebx <== NOT EXECUTED
123b6b: e8 cc 5a 00 00 call 12963c <statvfs> <== NOT EXECUTED
if (rc < 0)
123b70: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
123b73: 85 c0 test %eax,%eax <== NOT EXECUTED
123b75: 79 31 jns 123ba8 <rtems_shell_debugrfs+0x145><== NOT EXECUTED
{
printf ("error: cannot statvfs path: %s: (%d) %s\n",
123b77: e8 98 a4 01 00 call 13e014 <__errno> <== NOT EXECUTED
123b7c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
123b7f: ff 30 pushl (%eax) <== NOT EXECUTED
123b81: e8 36 fe 01 00 call 1439bc <strerror> <== NOT EXECUTED
123b86: 89 c6 mov %eax,%esi <== NOT EXECUTED
123b88: e8 87 a4 01 00 call 13e014 <__errno> <== NOT EXECUTED
123b8d: 56 push %esi <== NOT EXECUTED
123b8e: ff 30 pushl (%eax) <== NOT EXECUTED
123b90: 53 push %ebx <== NOT EXECUTED
123b91: 68 86 a7 15 00 push $0x15a786 <== NOT EXECUTED
123b96: e8 99 e3 01 00 call 141f34 <printf> <== NOT EXECUTED
123b9b: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
123ba0: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
123ba3: e9 c9 00 00 00 jmp 123c71 <rtems_shell_debugrfs+0x20e><== NOT EXECUTED
path, errno, strerror (errno));
return -1;
}
if (sb.f_fsid != RTEMS_RFS_SB_MAGIC)
123ba8: 81 7d c8 01 20 09 28 cmpl $0x28092001,-0x38(%ebp) <== NOT EXECUTED
123baf: 74 0d je 123bbe <rtems_shell_debugrfs+0x15b><== NOT EXECUTED
{
printf ("error: path '%s' is not on an RFS file system\n", path);
123bb1: 52 push %edx <== NOT EXECUTED
123bb2: 52 push %edx <== NOT EXECUTED
123bb3: 53 push %ebx <== NOT EXECUTED
123bb4: 68 af a7 15 00 push $0x15a7af <== NOT EXECUTED
123bb9: e9 a6 00 00 00 jmp 123c64 <rtems_shell_debugrfs+0x201><== NOT EXECUTED
* Now find the path location on the file system. This will give the file
* system data.
*/
{
rtems_filesystem_location_info_t pathloc;
rc = rtems_filesystem_evaluate_path (path, strlen (path), 0, &pathloc, true);
123bbe: 31 c0 xor %eax,%eax <== NOT EXECUTED
123bc0: 83 c9 ff or $0xffffffff,%ecx <== NOT EXECUTED
123bc3: 89 df mov %ebx,%edi <== NOT EXECUTED
123bc5: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED
123bc7: f7 d1 not %ecx <== NOT EXECUTED
123bc9: 49 dec %ecx <== NOT EXECUTED
123bca: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
123bcd: 6a 01 push $0x1 <== NOT EXECUTED
123bcf: 8d 75 d4 lea -0x2c(%ebp),%esi <== NOT EXECUTED
123bd2: 56 push %esi <== NOT EXECUTED
123bd3: 6a 00 push $0x0 <== NOT EXECUTED
123bd5: 51 push %ecx <== NOT EXECUTED
123bd6: 53 push %ebx <== NOT EXECUTED
123bd7: e8 55 92 fe ff call 10ce31 <rtems_filesystem_evaluate_path><== NOT EXECUTED
123bdc: 89 c3 mov %eax,%ebx <== NOT EXECUTED
*fs = rtems_rfs_rtems_pathloc_dev (&pathloc);
123bde: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
123be1: 8b 40 34 mov 0x34(%eax),%eax <== NOT EXECUTED
123be4: 89 85 54 ff ff ff mov %eax,-0xac(%ebp) <== NOT EXECUTED
rtems_filesystem_freenode (&pathloc);
123bea: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
123bed: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
123bf0: 85 c0 test %eax,%eax <== NOT EXECUTED
123bf2: 74 10 je 123c04 <rtems_shell_debugrfs+0x1a1><== NOT EXECUTED
123bf4: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED
123bf7: 85 c0 test %eax,%eax <== NOT EXECUTED
123bf9: 74 09 je 123c04 <rtems_shell_debugrfs+0x1a1><== NOT EXECUTED
123bfb: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
123bfe: 56 push %esi <== NOT EXECUTED
123bff: ff d0 call *%eax <== NOT EXECUTED
123c01: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
if ((argc - arg) < 2)
printf ("error: you need at least a path and command, try %s -h\n", argv[0]);
else
{
rtems_rfs_file_system* fs;
if (rtems_rfs_get_fs (argv[arg], &fs) == 0)
123c04: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
123c09: 85 db test %ebx,%ebx <== NOT EXECUTED
123c0b: 75 64 jne 123c71 <rtems_shell_debugrfs+0x20e><== NOT EXECUTED
123c0d: 8d b5 60 ff ff ff lea -0xa0(%ebp),%esi <== NOT EXECUTED
{
for (t = 0; t < (sizeof (table) / sizeof (const rtems_rfs_shell_cmd)); t++)
if (strcmp (argv[arg + 1], table[t].name) == 0)
123c13: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
123c16: 83 c2 08 add $0x8,%edx <== NOT EXECUTED
123c19: 8b 3a mov (%edx),%edi <== NOT EXECUTED
123c1b: 50 push %eax <== NOT EXECUTED
123c1c: 50 push %eax <== NOT EXECUTED
123c1d: ff 36 pushl (%esi) <== NOT EXECUTED
123c1f: 57 push %edi <== NOT EXECUTED
123c20: 89 95 50 ff ff ff mov %edx,-0xb0(%ebp) <== NOT EXECUTED
123c26: e8 91 fc 01 00 call 1438bc <strcmp> <== NOT EXECUTED
123c2b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
123c2e: 83 c6 0c add $0xc,%esi <== NOT EXECUTED
123c31: 85 c0 test %eax,%eax <== NOT EXECUTED
123c33: 8b 95 50 ff ff ff mov -0xb0(%ebp),%edx <== NOT EXECUTED
123c39: 75 1b jne 123c56 <rtems_shell_debugrfs+0x1f3><== NOT EXECUTED
return table[t].handler (fs, argc - 2, argv + 2);
123c3b: 56 push %esi <== NOT EXECUTED
123c3c: 6b db 0c imul $0xc,%ebx,%ebx <== NOT EXECUTED
123c3f: 52 push %edx <== NOT EXECUTED
123c40: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
123c43: 83 e8 02 sub $0x2,%eax <== NOT EXECUTED
123c46: 50 push %eax <== NOT EXECUTED
123c47: ff b5 54 ff ff ff pushl -0xac(%ebp) <== NOT EXECUTED
123c4d: ff 94 1d 64 ff ff ff call *-0x9c(%ebp,%ebx,1) <== NOT EXECUTED
123c54: eb 18 jmp 123c6e <rtems_shell_debugrfs+0x20b><== NOT EXECUTED
else
{
rtems_rfs_file_system* fs;
if (rtems_rfs_get_fs (argv[arg], &fs) == 0)
{
for (t = 0; t < (sizeof (table) / sizeof (const rtems_rfs_shell_cmd)); t++)
123c56: 43 inc %ebx <== NOT EXECUTED
123c57: 83 fb 05 cmp $0x5,%ebx <== NOT EXECUTED
123c5a: 75 bd jne 123c19 <rtems_shell_debugrfs+0x1b6><== NOT EXECUTED
if (strcmp (argv[arg + 1], table[t].name) == 0)
return table[t].handler (fs, argc - 2, argv + 2);
printf ("error: command not found: %s\n", argv[arg + 1]);
123c5c: 53 push %ebx <== NOT EXECUTED
123c5d: 53 push %ebx <== NOT EXECUTED
123c5e: 57 push %edi <== NOT EXECUTED
123c5f: 68 de a7 15 00 push $0x15a7de <== NOT EXECUTED
123c64: e8 cb e2 01 00 call 141f34 <printf> <== NOT EXECUTED
123c69: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
123c6e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
}
return 1;
}
123c71: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
123c74: 5b pop %ebx <== NOT EXECUTED
123c75: 5e pop %esi <== NOT EXECUTED
123c76: 5f pop %edi <== NOT EXECUTED
123c77: c9 leave <== NOT EXECUTED
123c78: c3 ret <== NOT EXECUTED
00122e21 <rtems_shell_rfs_format>:
return 1;
}
int
rtems_shell_rfs_format (int argc, char* argv[])
{
122e21: 55 push %ebp <== NOT EXECUTED
122e22: 89 e5 mov %esp,%ebp <== NOT EXECUTED
122e24: 57 push %edi <== NOT EXECUTED
122e25: 56 push %esi <== NOT EXECUTED
122e26: 53 push %ebx <== NOT EXECUTED
122e27: 83 ec 3c sub $0x3c,%esp <== NOT EXECUTED
122e2a: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
122e2d: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
rtems_rfs_format_config config;
const char* driver = NULL;
int arg;
memset (&config, 0, sizeof (rtems_rfs_format_config));
122e30: 8d 55 d0 lea -0x30(%ebp),%edx <== NOT EXECUTED
122e33: b9 06 00 00 00 mov $0x6,%ecx <== NOT EXECUTED
122e38: 31 c0 xor %eax,%eax <== NOT EXECUTED
122e3a: 89 d7 mov %edx,%edi <== NOT EXECUTED
122e3c: f3 ab rep stos %eax,%es:(%edi) <== NOT EXECUTED
122e3e: bf 01 00 00 00 mov $0x1,%edi <== NOT EXECUTED
122e43: c7 45 c4 00 00 00 00 movl $0x0,-0x3c(%ebp) <== NOT EXECUTED
for (arg = 1; arg < argc; arg++)
122e4a: e9 fc 00 00 00 jmp 122f4b <rtems_shell_rfs_format+0x12a><== NOT EXECUTED
{
if (argv[arg][0] == '-')
122e4f: 8b 04 bb mov (%ebx,%edi,4),%eax <== NOT EXECUTED
122e52: 80 38 2d cmpb $0x2d,(%eax) <== NOT EXECUTED
122e55: 0f 85 dc 00 00 00 jne 122f37 <rtems_shell_rfs_format+0x116><== NOT EXECUTED
{
switch (argv[arg][1])
122e5b: 8a 50 01 mov 0x1(%eax),%dl <== NOT EXECUTED
122e5e: 80 fa 69 cmp $0x69,%dl <== NOT EXECUTED
122e61: 74 79 je 122edc <rtems_shell_rfs_format+0xbb><== NOT EXECUTED
122e63: 7f 14 jg 122e79 <rtems_shell_rfs_format+0x58><== NOT EXECUTED
122e65: 80 fa 49 cmp $0x49,%dl <== NOT EXECUTED
122e68: 0f 84 8f 00 00 00 je 122efd <rtems_shell_rfs_format+0xdc><== NOT EXECUTED
122e6e: 80 fa 62 cmp $0x62,%dl <== NOT EXECUTED
122e71: 0f 85 b6 00 00 00 jne 122f2d <rtems_shell_rfs_format+0x10c><== NOT EXECUTED
122e77: eb 3f jmp 122eb8 <rtems_shell_rfs_format+0x97><== NOT EXECUTED
122e79: 80 fa 73 cmp $0x73,%dl <== NOT EXECUTED
122e7c: 74 16 je 122e94 <rtems_shell_rfs_format+0x73><== NOT EXECUTED
122e7e: 80 fa 76 cmp $0x76,%dl <== NOT EXECUTED
122e81: 74 0b je 122e8e <rtems_shell_rfs_format+0x6d><== NOT EXECUTED
122e83: 80 fa 6f cmp $0x6f,%dl <== NOT EXECUTED
122e86: 0f 85 a1 00 00 00 jne 122f2d <rtems_shell_rfs_format+0x10c><== NOT EXECUTED
122e8c: eb 78 jmp 122f06 <rtems_shell_rfs_format+0xe5><== NOT EXECUTED
{
case 'v':
config.verbose = true;
122e8e: c6 45 e5 01 movb $0x1,-0x1b(%ebp) <== NOT EXECUTED
122e92: eb 6d jmp 122f01 <rtems_shell_rfs_format+0xe0><== NOT EXECUTED
break;
case 's':
arg++;
122e94: 47 inc %edi <== NOT EXECUTED
if (arg >= argc)
122e95: 39 f7 cmp %esi,%edi <== NOT EXECUTED
122e97: 7c 0d jl 122ea6 <rtems_shell_rfs_format+0x85><== NOT EXECUTED
{
printf ("error: block size needs an argument\n");
122e99: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
122e9c: 68 33 a1 15 00 push $0x15a133 <== NOT EXECUTED
122ea1: e9 bb 00 00 00 jmp 122f61 <rtems_shell_rfs_format+0x140><== NOT EXECUTED
return 1;
}
config.block_size = strtoul (argv[arg], 0, 0);
122ea6: 50 push %eax <== NOT EXECUTED
122ea7: 6a 00 push $0x0 <== NOT EXECUTED
122ea9: 6a 00 push $0x0 <== NOT EXECUTED
122eab: ff 34 bb pushl (%ebx,%edi,4) <== NOT EXECUTED
122eae: e8 51 25 02 00 call 145404 <strtoul> <== NOT EXECUTED
122eb3: 89 45 d0 mov %eax,-0x30(%ebp) <== NOT EXECUTED
122eb6: eb 6d jmp 122f25 <rtems_shell_rfs_format+0x104><== NOT EXECUTED
break;
case 'b':
arg++;
122eb8: 47 inc %edi <== NOT EXECUTED
if (arg >= argc)
122eb9: 39 f7 cmp %esi,%edi <== NOT EXECUTED
122ebb: 7c 0d jl 122eca <rtems_shell_rfs_format+0xa9><== NOT EXECUTED
{
printf ("error: group block count needs an argument\n");
122ebd: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
122ec0: 68 57 a1 15 00 push $0x15a157 <== NOT EXECUTED
122ec5: e9 97 00 00 00 jmp 122f61 <rtems_shell_rfs_format+0x140><== NOT EXECUTED
return 1;
}
config.group_blocks = strtoul (argv[arg], 0, 0);
122eca: 51 push %ecx <== NOT EXECUTED
122ecb: 6a 00 push $0x0 <== NOT EXECUTED
122ecd: 6a 00 push $0x0 <== NOT EXECUTED
122ecf: ff 34 bb pushl (%ebx,%edi,4) <== NOT EXECUTED
122ed2: e8 2d 25 02 00 call 145404 <strtoul> <== NOT EXECUTED
122ed7: 89 45 d4 mov %eax,-0x2c(%ebp) <== NOT EXECUTED
122eda: eb 49 jmp 122f25 <rtems_shell_rfs_format+0x104><== NOT EXECUTED
break;
case 'i':
arg++;
122edc: 47 inc %edi <== NOT EXECUTED
if (arg >= argc)
122edd: 39 f7 cmp %esi,%edi <== NOT EXECUTED
122edf: 7c 0a jl 122eeb <rtems_shell_rfs_format+0xca><== NOT EXECUTED
{
printf ("error: group inode count needs an argument\n");
122ee1: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
122ee4: 68 82 a1 15 00 push $0x15a182 <== NOT EXECUTED
122ee9: eb 76 jmp 122f61 <rtems_shell_rfs_format+0x140><== NOT EXECUTED
return 1;
}
config.group_inodes = strtoul (argv[arg], 0, 0);
122eeb: 52 push %edx <== NOT EXECUTED
122eec: 6a 00 push $0x0 <== NOT EXECUTED
122eee: 6a 00 push $0x0 <== NOT EXECUTED
122ef0: ff 34 bb pushl (%ebx,%edi,4) <== NOT EXECUTED
122ef3: e8 0c 25 02 00 call 145404 <strtoul> <== NOT EXECUTED
122ef8: 89 45 d8 mov %eax,-0x28(%ebp) <== NOT EXECUTED
122efb: eb 28 jmp 122f25 <rtems_shell_rfs_format+0x104><== NOT EXECUTED
break;
case 'I':
config.initialise_inodes = true;
122efd: c6 45 e4 01 movb $0x1,-0x1c(%ebp) <== NOT EXECUTED
122f01: 8b 45 c4 mov -0x3c(%ebp),%eax <== NOT EXECUTED
break;
122f04: eb 41 jmp 122f47 <rtems_shell_rfs_format+0x126><== NOT EXECUTED
case 'o':
arg++;
122f06: 47 inc %edi <== NOT EXECUTED
if (arg >= argc)
122f07: 39 f7 cmp %esi,%edi <== NOT EXECUTED
122f09: 7c 0a jl 122f15 <rtems_shell_rfs_format+0xf4><== NOT EXECUTED
{
printf ("error: inode percentage overhead needs an argument\n");
122f0b: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
122f0e: 68 ad a1 15 00 push $0x15a1ad <== NOT EXECUTED
122f13: eb 4c jmp 122f61 <rtems_shell_rfs_format+0x140><== NOT EXECUTED
return 1;
}
config.inode_overhead = strtoul (argv[arg], 0, 0);
122f15: 50 push %eax <== NOT EXECUTED
122f16: 6a 00 push $0x0 <== NOT EXECUTED
122f18: 6a 00 push $0x0 <== NOT EXECUTED
122f1a: ff 34 bb pushl (%ebx,%edi,4) <== NOT EXECUTED
122f1d: e8 e2 24 02 00 call 145404 <strtoul> <== NOT EXECUTED
122f22: 89 45 dc mov %eax,-0x24(%ebp) <== NOT EXECUTED
122f25: 8b 45 c4 mov -0x3c(%ebp),%eax <== NOT EXECUTED
break;
122f28: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
122f2b: eb 1a jmp 122f47 <rtems_shell_rfs_format+0x126><== NOT EXECUTED
default:
printf ("error: invalid option: %s\n", argv[arg]);
122f2d: 56 push %esi <== NOT EXECUTED
122f2e: 56 push %esi <== NOT EXECUTED
122f2f: 50 push %eax <== NOT EXECUTED
122f30: 68 0a 4e 15 00 push $0x154e0a <== NOT EXECUTED
122f35: eb 65 jmp 122f9c <rtems_shell_rfs_format+0x17b><== NOT EXECUTED
return 1;
}
}
else
{
if (!driver)
122f37: 83 7d c4 00 cmpl $0x0,-0x3c(%ebp) <== NOT EXECUTED
122f3b: 74 0a je 122f47 <rtems_shell_rfs_format+0x126><== NOT EXECUTED
driver = argv[arg];
else
{
printf ("error: only one driver name allowed: %s\n", argv[arg]);
122f3d: 53 push %ebx <== NOT EXECUTED
122f3e: 53 push %ebx <== NOT EXECUTED
122f3f: 50 push %eax <== NOT EXECUTED
122f40: 68 97 4f 15 00 push $0x154f97 <== NOT EXECUTED
122f45: eb 55 jmp 122f9c <rtems_shell_rfs_format+0x17b><== NOT EXECUTED
const char* driver = NULL;
int arg;
memset (&config, 0, sizeof (rtems_rfs_format_config));
for (arg = 1; arg < argc; arg++)
122f47: 47 inc %edi <== NOT EXECUTED
122f48: 89 45 c4 mov %eax,-0x3c(%ebp) <== NOT EXECUTED
122f4b: 39 f7 cmp %esi,%edi <== NOT EXECUTED
122f4d: 0f 8c fc fe ff ff jl 122e4f <rtems_shell_rfs_format+0x2e><== NOT EXECUTED
return 1;
}
}
}
if (!driver) {
122f53: 83 7d c4 00 cmpl $0x0,-0x3c(%ebp) <== NOT EXECUTED
122f57: 75 0f jne 122f68 <rtems_shell_rfs_format+0x147><== NOT EXECUTED
printf ("error: no driver name provided\n");
122f59: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
122f5c: 68 e0 a1 15 00 push $0x15a1e0 <== NOT EXECUTED
122f61: e8 e2 f1 01 00 call 142148 <puts> <== NOT EXECUTED
122f66: eb 39 jmp 122fa1 <rtems_shell_rfs_format+0x180><== NOT EXECUTED
return 1;
}
if (rtems_rfs_format (driver, &config) < 0)
122f68: 51 push %ecx <== NOT EXECUTED
122f69: 51 push %ecx <== NOT EXECUTED
122f6a: 8d 45 d0 lea -0x30(%ebp),%eax <== NOT EXECUTED
122f6d: 50 push %eax <== NOT EXECUTED
122f6e: ff 75 c4 pushl -0x3c(%ebp) <== NOT EXECUTED
122f71: e8 8a 48 01 00 call 137800 <rtems_rfs_format> <== NOT EXECUTED
122f76: 89 c2 mov %eax,%edx <== NOT EXECUTED
122f78: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
122f7b: 31 c0 xor %eax,%eax <== NOT EXECUTED
122f7d: 85 d2 test %edx,%edx <== NOT EXECUTED
122f7f: 79 28 jns 122fa9 <rtems_shell_rfs_format+0x188><== NOT EXECUTED
{
printf ("error: format of %s failed: %s\n",
122f81: e8 8e b0 01 00 call 13e014 <__errno> <== NOT EXECUTED
122f86: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
122f89: ff 30 pushl (%eax) <== NOT EXECUTED
122f8b: e8 2c 0a 02 00 call 1439bc <strerror> <== NOT EXECUTED
122f90: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
122f93: 50 push %eax <== NOT EXECUTED
122f94: ff 75 c4 pushl -0x3c(%ebp) <== NOT EXECUTED
122f97: 68 ff a1 15 00 push $0x15a1ff <== NOT EXECUTED
122f9c: e8 93 ef 01 00 call 141f34 <printf> <== NOT EXECUTED
122fa1: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
driver, strerror (errno));
return 1;
122fa6: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
return 0;
}
122fa9: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
122fac: 5b pop %ebx <== NOT EXECUTED
122fad: 5e pop %esi <== NOT EXECUTED
122fae: 5f pop %edi <== NOT EXECUTED
122faf: c9 leave <== NOT EXECUTED
122fb0: c3 ret <== NOT EXECUTED
00116284 <rtems_signal_send>:
rtems_status_code rtems_signal_send(
rtems_id id,
rtems_signal_set signal_set
)
{
116284: 55 push %ebp
116285: 89 e5 mov %esp,%ebp
116287: 53 push %ebx
116288: 83 ec 14 sub $0x14,%esp
11628b: 8b 5d 0c mov 0xc(%ebp),%ebx
register Thread_Control *the_thread;
Objects_Locations location;
RTEMS_API_Control *api;
ASR_Information *asr;
if ( !signal_set )
11628e: b8 0a 00 00 00 mov $0xa,%eax
116293: 85 db test %ebx,%ebx
116295: 74 71 je 116308 <rtems_signal_send+0x84>
return RTEMS_INVALID_NUMBER;
the_thread = _Thread_Get( id, &location );
116297: 50 push %eax
116298: 50 push %eax
116299: 8d 45 f4 lea -0xc(%ebp),%eax
11629c: 50 push %eax
11629d: ff 75 08 pushl 0x8(%ebp)
1162a0: e8 43 36 00 00 call 1198e8 <_Thread_Get>
1162a5: 89 c1 mov %eax,%ecx
switch ( location ) {
1162a7: 83 c4 10 add $0x10,%esp
1162aa: b8 04 00 00 00 mov $0x4,%eax
1162af: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
1162b3: 75 53 jne 116308 <rtems_signal_send+0x84>
case OBJECTS_LOCAL:
api = the_thread->API_Extensions[ THREAD_API_RTEMS ];
1162b5: 8b 91 f4 00 00 00 mov 0xf4(%ecx),%edx
asr = &api->Signal;
1162bb: 83 7a 0c 00 cmpl $0x0,0xc(%edx)
1162bf: 74 3d je 1162fe <rtems_signal_send+0x7a>
if ( ! _ASR_Is_null_handler( asr->handler ) ) {
if ( asr->is_enabled ) {
1162c1: 80 7a 08 00 cmpb $0x0,0x8(%edx)
1162c5: 74 26 je 1162ed <rtems_signal_send+0x69>
rtems_signal_set *signal_set
)
{
ISR_Level _level;
_ISR_Disable( _level );
1162c7: 9c pushf
1162c8: fa cli
1162c9: 58 pop %eax
*signal_set |= signals;
1162ca: 09 5a 14 or %ebx,0x14(%edx)
_ISR_Enable( _level );
1162cd: 50 push %eax
1162ce: 9d popf
_ASR_Post_signals( signal_set, &asr->signals_posted );
the_thread->do_post_task_switch_extension = true;
1162cf: c6 41 74 01 movb $0x1,0x74(%ecx)
if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) )
1162d3: a1 74 f6 13 00 mov 0x13f674,%eax
1162d8: 85 c0 test %eax,%eax
1162da: 74 19 je 1162f5 <rtems_signal_send+0x71>
1162dc: 3b 0d 98 f6 13 00 cmp 0x13f698,%ecx
1162e2: 75 11 jne 1162f5 <rtems_signal_send+0x71><== NEVER TAKEN
_ISR_Signals_to_thread_executing = true;
1162e4: c6 05 2c f7 13 00 01 movb $0x1,0x13f72c
1162eb: eb 08 jmp 1162f5 <rtems_signal_send+0x71>
rtems_signal_set *signal_set
)
{
ISR_Level _level;
_ISR_Disable( _level );
1162ed: 9c pushf
1162ee: fa cli
1162ef: 58 pop %eax
*signal_set |= signals;
1162f0: 09 5a 18 or %ebx,0x18(%edx)
_ISR_Enable( _level );
1162f3: 50 push %eax
1162f4: 9d popf
} else {
_ASR_Post_signals( signal_set, &asr->signals_pending );
}
_Thread_Enable_dispatch();
1162f5: e8 9f 35 00 00 call 119899 <_Thread_Enable_dispatch>
1162fa: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
1162fc: eb 0a jmp 116308 <rtems_signal_send+0x84>
}
_Thread_Enable_dispatch();
1162fe: e8 96 35 00 00 call 119899 <_Thread_Enable_dispatch>
116303: b8 0b 00 00 00 mov $0xb,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
116308: 8b 5d fc mov -0x4(%ebp),%ebx
11630b: c9 leave
11630c: c3 ret
0010b654 <rtems_stack_checker_begin_extension>:
* rtems_stack_checker_Begin_extension
*/
void rtems_stack_checker_begin_extension(
Thread_Control *the_thread
)
{
10b654: 55 push %ebp
10b655: 89 e5 mov %esp,%ebp
10b657: 57 push %edi
10b658: 56 push %esi
10b659: 8b 45 08 mov 0x8(%ebp),%eax
Stack_check_Control *the_pattern;
if ( the_thread->Object.id == 0 ) /* skip system tasks */
10b65c: 83 78 08 00 cmpl $0x0,0x8(%eax)
10b660: 74 15 je 10b677 <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;
10b662: 8b b8 c8 00 00 00 mov 0xc8(%eax),%edi
10b668: 83 c7 08 add $0x8,%edi
10b66b: be b8 9f 16 00 mov $0x169fb8,%esi
10b670: b9 04 00 00 00 mov $0x4,%ecx
10b675: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
}
10b677: 5e pop %esi
10b678: 5f pop %edi
10b679: c9 leave
10b67a: c3 ret
0010ba12 <rtems_stack_checker_create_extension>:
*/
bool rtems_stack_checker_create_extension(
Thread_Control *running __attribute__((unused)),
Thread_Control *the_thread
)
{
10ba12: 55 push %ebp
10ba13: 89 e5 mov %esp,%ebp
10ba15: 57 push %edi
10ba16: 8b 7d 0c mov 0xc(%ebp),%edi
Stack_check_Initialize();
10ba19: e8 97 ff ff ff call 10b9b5 <Stack_check_Initialize>
if (the_thread)
10ba1e: 85 ff test %edi,%edi
10ba20: 74 12 je 10ba34 <rtems_stack_checker_create_extension+0x22><== NEVER TAKEN
Stack_check_Dope_stack(&the_thread->Start.Initial_stack);
10ba22: 8b 8f c4 00 00 00 mov 0xc4(%edi),%ecx
10ba28: 8b 97 c8 00 00 00 mov 0xc8(%edi),%edx
10ba2e: b0 a5 mov $0xa5,%al
10ba30: 89 d7 mov %edx,%edi
10ba32: f3 aa rep stos %al,%es:(%edi)
return true;
}
10ba34: b0 01 mov $0x1,%al
10ba36: 5f pop %edi
10ba37: c9 leave
10ba38: c3 ret
0010b8e4 <rtems_stack_checker_is_blown>:
/*
* Check if blown
*/
bool rtems_stack_checker_is_blown( void )
{
10b8e4: 55 push %ebp
10b8e5: 89 e5 mov %esp,%ebp
10b8e7: 53 push %ebx
10b8e8: 83 ec 04 sub $0x4,%esp
Stack_Control *the_stack = &_Thread_Executing->Start.Initial_stack;
10b8eb: 8b 15 e0 a1 16 00 mov 0x16a1e0,%edx
)
{
#if defined(__GNUC__)
void *sp = __builtin_frame_address(0);
if ( sp < the_stack->area ) {
10b8f1: 8b 82 c8 00 00 00 mov 0xc8(%edx),%eax
10b8f7: 31 db xor %ebx,%ebx
10b8f9: 39 c5 cmp %eax,%ebp
10b8fb: 72 0e jb 10b90b <rtems_stack_checker_is_blown+0x27><== NEVER TAKEN
}
/*
* Check if blown
*/
bool rtems_stack_checker_is_blown( void )
10b8fd: 8b 8a c4 00 00 00 mov 0xc4(%edx),%ecx
10b903: 8d 14 08 lea (%eax,%ecx,1),%edx
10b906: 39 d5 cmp %edx,%ebp
10b908: 0f 96 c3 setbe %bl
/*
* The stack checker must be initialized before the pattern is there
* to check.
*/
if ( Stack_check_Initialized ) {
10b90b: b2 01 mov $0x1,%dl
10b90d: 83 3d a0 73 16 00 00 cmpl $0x0,0x1673a0
10b914: 74 19 je 10b92f <rtems_stack_checker_is_blown+0x4b><== NEVER TAKEN
pattern_ok = (!memcmp(
10b916: 83 c0 08 add $0x8,%eax
10b919: 52 push %edx
10b91a: 6a 10 push $0x10
10b91c: 68 b8 9f 16 00 push $0x169fb8
10b921: 50 push %eax
10b922: e8 e1 56 03 00 call 141008 <memcmp>
10b927: 83 c4 10 add $0x10,%esp
10b92a: 85 c0 test %eax,%eax
10b92c: 0f 94 c2 sete %dl
}
/*
* The Stack Pointer and the Pattern Area are OK so return false.
*/
if ( sp_ok && pattern_ok )
10b92f: 84 db test %bl,%bl
10b931: 74 06 je 10b939 <rtems_stack_checker_is_blown+0x55><== NEVER TAKEN
10b933: 31 c0 xor %eax,%eax
10b935: 84 d2 test %dl,%dl
10b937: 75 16 jne 10b94f <rtems_stack_checker_is_blown+0x6b><== ALWAYS TAKEN
return false;
/*
* Let's report as much as we can.
*/
Stack_check_report_blown_task( _Thread_Executing, pattern_ok );
10b939: 53 push %ebx <== NOT EXECUTED
10b93a: 53 push %ebx <== NOT EXECUTED
10b93b: 0f b6 d2 movzbl %dl,%edx <== NOT EXECUTED
10b93e: 52 push %edx <== NOT EXECUTED
10b93f: ff 35 e0 a1 16 00 pushl 0x16a1e0 <== NOT EXECUTED
10b945: e8 e6 fe ff ff call 10b830 <Stack_check_report_blown_task><== NOT EXECUTED
10b94a: b0 01 mov $0x1,%al <== NOT EXECUTED
return true;
10b94c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
10b94f: 8b 5d fc mov -0x4(%ebp),%ebx
10b952: c9 leave
10b953: c3 ret
0010b819 <rtems_stack_checker_report_usage>:
void rtems_stack_checker_report_usage( void )
{
10b819: 55 push %ebp <== NOT EXECUTED
10b81a: 89 e5 mov %esp,%ebp <== NOT EXECUTED
10b81c: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED
rtems_stack_checker_report_usage_with_plugin( NULL, printk_plugin );
10b81f: 68 84 df 10 00 push $0x10df84 <== NOT EXECUTED
10b824: 6a 00 push $0x0 <== NOT EXECUTED
10b826: e8 8d ff ff ff call 10b7b8 <rtems_stack_checker_report_usage_with_plugin><== NOT EXECUTED
10b82b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
10b82e: c9 leave <== NOT EXECUTED
10b82f: c3 ret <== NOT EXECUTED
0010b7b8 <rtems_stack_checker_report_usage_with_plugin>:
void rtems_stack_checker_report_usage_with_plugin(
void *context,
rtems_printk_plugin_t print
)
{
10b7b8: 55 push %ebp <== NOT EXECUTED
10b7b9: 89 e5 mov %esp,%ebp <== NOT EXECUTED
10b7bb: 56 push %esi <== NOT EXECUTED
10b7bc: 53 push %ebx <== NOT EXECUTED
10b7bd: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
10b7c0: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
print_context = context;
10b7c3: 89 35 a4 73 16 00 mov %esi,0x1673a4 <== NOT EXECUTED
print_handler = print;
10b7c9: 89 1d a8 73 16 00 mov %ebx,0x1673a8 <== NOT EXECUTED
(*print)( context, "Stack usage by thread\n");
10b7cf: 51 push %ecx <== NOT EXECUTED
10b7d0: 51 push %ecx <== NOT EXECUTED
10b7d1: 68 a8 6a 15 00 push $0x156aa8 <== NOT EXECUTED
10b7d6: 56 push %esi <== NOT EXECUTED
10b7d7: ff d3 call *%ebx <== NOT EXECUTED
(*print)( context,
10b7d9: 58 pop %eax <== NOT EXECUTED
10b7da: 5a pop %edx <== NOT EXECUTED
10b7db: 68 bf 6a 15 00 push $0x156abf <== NOT EXECUTED
10b7e0: 56 push %esi <== NOT EXECUTED
10b7e1: 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 );
10b7e3: c7 04 24 a2 b6 10 00 movl $0x10b6a2,(%esp) <== NOT EXECUTED
10b7ea: e8 cd 69 00 00 call 1121bc <rtems_iterate_over_all_threads><== NOT EXECUTED
/* dump interrupt stack info if any */
Stack_check_Dump_threads_usage((Thread_Control *) -1);
10b7ef: c7 04 24 ff ff ff ff movl $0xffffffff,(%esp) <== NOT EXECUTED
10b7f6: e8 a7 fe ff ff call 10b6a2 <Stack_check_Dump_threads_usage><== NOT EXECUTED
print_context = NULL;
10b7fb: c7 05 a4 73 16 00 00 movl $0x0,0x1673a4 <== NOT EXECUTED
10b802: 00 00 00
print_handler = NULL;
10b805: c7 05 a8 73 16 00 00 movl $0x0,0x1673a8 <== NOT EXECUTED
10b80c: 00 00 00
10b80f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
10b812: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
10b815: 5b pop %ebx <== NOT EXECUTED
10b816: 5e pop %esi <== NOT EXECUTED
10b817: c9 leave <== NOT EXECUTED
10b818: c3 ret <== NOT EXECUTED
0010b954 <rtems_stack_checker_switch_extension>:
*/
void rtems_stack_checker_switch_extension(
Thread_Control *running __attribute__((unused)),
Thread_Control *heir __attribute__((unused))
)
{
10b954: 55 push %ebp
10b955: 89 e5 mov %esp,%ebp
10b957: 53 push %ebx
10b958: 83 ec 14 sub $0x14,%esp
10b95b: 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 = (void *) Stack_check_Get_pattern_area(the_stack)->pattern;
10b95e: 8b 83 c8 00 00 00 mov 0xc8(%ebx),%eax
)
{
#if defined(__GNUC__)
void *sp = __builtin_frame_address(0);
if ( sp < the_stack->area ) {
10b964: 31 d2 xor %edx,%edx
10b966: 39 c5 cmp %eax,%ebp
10b968: 72 0d jb 10b977 <rtems_stack_checker_switch_extension+0x23><== NEVER TAKEN
}
/*
* rtems_stack_checker_switch_extension
*/
void rtems_stack_checker_switch_extension(
10b96a: 8b 93 c4 00 00 00 mov 0xc4(%ebx),%edx
10b970: 01 c2 add %eax,%edx
10b972: 39 d5 cmp %edx,%ebp
10b974: 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,
10b977: 83 c0 08 add $0x8,%eax
10b97a: 51 push %ecx
10b97b: 6a 10 push $0x10
10b97d: 68 b8 9f 16 00 push $0x169fb8
10b982: 50 push %eax
10b983: 88 55 f4 mov %dl,-0xc(%ebp)
10b986: e8 7d 56 03 00 call 141008 <memcmp>
10b98b: 83 c4 10 add $0x10,%esp
10b98e: 85 c0 test %eax,%eax
10b990: 0f 94 c0 sete %al
(void *) Stack_check_Pattern.pattern, PATTERN_SIZE_BYTES));
if ( !sp_ok || !pattern_ok ) {
10b993: 8a 55 f4 mov -0xc(%ebp),%dl
10b996: 84 d2 test %dl,%dl
10b998: 74 04 je 10b99e <rtems_stack_checker_switch_extension+0x4a><== NEVER TAKEN
10b99a: 84 c0 test %al,%al
10b99c: 75 12 jne 10b9b0 <rtems_stack_checker_switch_extension+0x5c><== ALWAYS TAKEN
Stack_check_report_blown_task( running, pattern_ok );
10b99e: 0f b6 c0 movzbl %al,%eax <== NOT EXECUTED
10b9a1: 89 45 0c mov %eax,0xc(%ebp) <== NOT EXECUTED
10b9a4: 89 5d 08 mov %ebx,0x8(%ebp) <== NOT EXECUTED
}
}
10b9a7: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
10b9aa: c9 leave <== NOT EXECUTED
pattern_ok = (!memcmp( pattern,
(void *) Stack_check_Pattern.pattern, PATTERN_SIZE_BYTES));
if ( !sp_ok || !pattern_ok ) {
Stack_check_report_blown_task( running, pattern_ok );
10b9ab: e9 80 fe ff ff jmp 10b830 <Stack_check_report_blown_task><== NOT EXECUTED
}
}
10b9b0: 8b 5d fc mov -0x4(%ebp),%ebx
10b9b3: c9 leave
10b9b4: c3 ret
0010f190 <rtems_string_to_double>:
rtems_status_code rtems_string_to_double (
const char *s,
double *n,
char **endptr
)
{
10f190: 55 push %ebp
10f191: 89 e5 mov %esp,%ebp
10f193: 57 push %edi
10f194: 56 push %esi
10f195: 53 push %ebx
10f196: 83 ec 2c sub $0x2c,%esp
10f199: 8b 75 08 mov 0x8(%ebp),%esi
10f19c: 8b 5d 0c mov 0xc(%ebp),%ebx
10f19f: 8b 7d 10 mov 0x10(%ebp),%edi
double result;
char *end;
if ( !n )
10f1a2: b8 09 00 00 00 mov $0x9,%eax
10f1a7: 85 db test %ebx,%ebx
10f1a9: 0f 84 90 00 00 00 je 10f23f <rtems_string_to_double+0xaf>
return RTEMS_INVALID_ADDRESS;
errno = 0;
10f1af: e8 54 28 00 00 call 111a08 <__errno>
10f1b4: c7 00 00 00 00 00 movl $0x0,(%eax)
*n = 0;
10f1ba: c7 03 00 00 00 00 movl $0x0,(%ebx)
10f1c0: c7 43 04 00 00 00 00 movl $0x0,0x4(%ebx)
result = strtod( s, &end );
10f1c7: 50 push %eax
10f1c8: 50 push %eax
10f1c9: 8d 45 e4 lea -0x1c(%ebp),%eax
10f1cc: 50 push %eax
10f1cd: 56 push %esi
10f1ce: e8 15 53 00 00 call 1144e8 <strtod>
if ( endptr )
10f1d3: 83 c4 10 add $0x10,%esp
10f1d6: 85 ff test %edi,%edi
10f1d8: 74 05 je 10f1df <rtems_string_to_double+0x4f>
*endptr = end;
10f1da: 8b 45 e4 mov -0x1c(%ebp),%eax
10f1dd: 89 07 mov %eax,(%edi)
if ( end == s )
10f1df: b8 0b 00 00 00 mov $0xb,%eax
10f1e4: 39 75 e4 cmp %esi,-0x1c(%ebp)
10f1e7: 74 54 je 10f23d <rtems_string_to_double+0xad>
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
10f1e9: dd 5d c8 fstpl -0x38(%ebp)
10f1ec: e8 17 28 00 00 call 111a08 <__errno>
10f1f1: 83 38 22 cmpl $0x22,(%eax)
10f1f4: dd 45 c8 fldl -0x38(%ebp)
10f1f7: 75 2d jne 10f226 <rtems_string_to_double+0x96>
10f1f9: d9 ee fldz
10f1fb: d9 c9 fxch %st(1)
10f1fd: dd e1 fucom %st(1)
10f1ff: df e0 fnstsw %ax
10f201: dd d9 fstp %st(1)
10f203: 9e sahf
10f204: 7a 02 jp 10f208 <rtems_string_to_double+0x78><== NEVER TAKEN
10f206: 74 24 je 10f22c <rtems_string_to_double+0x9c><== NEVER TAKEN
10f208: dd 05 08 35 12 00 fldl 0x123508
10f20e: d9 c9 fxch %st(1)
10f210: dd e1 fucom %st(1)
10f212: df e0 fnstsw %ax
10f214: dd d9 fstp %st(1)
10f216: 9e sahf
10f217: 77 17 ja 10f230 <rtems_string_to_double+0xa0><== ALWAYS TAKEN
10f219: dd 05 10 35 12 00 fldl 0x123510 <== NOT EXECUTED
10f21f: dd e9 fucomp %st(1) <== NOT EXECUTED
10f221: df e0 fnstsw %ax <== NOT EXECUTED
10f223: 9e sahf <== NOT EXECUTED
10f224: 77 0e ja 10f234 <rtems_string_to_double+0xa4><== NOT EXECUTED
(( result == 0 ) || ( result == HUGE_VAL ) || ( result == -HUGE_VAL )))
return RTEMS_INVALID_NUMBER;
*n = result;
10f226: dd 1b fstpl (%ebx)
10f228: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
10f22a: eb 13 jmp 10f23f <rtems_string_to_double+0xaf>
10f22c: dd d8 fstp %st(0) <== NOT EXECUTED
10f22e: eb 06 jmp 10f236 <rtems_string_to_double+0xa6><== NOT EXECUTED
10f230: dd d8 fstp %st(0)
10f232: eb 02 jmp 10f236 <rtems_string_to_double+0xa6>
10f234: dd d8 fstp %st(0) <== NOT EXECUTED
10f236: b8 0a 00 00 00 mov $0xa,%eax
10f23b: eb 02 jmp 10f23f <rtems_string_to_double+0xaf>
10f23d: dd d8 fstp %st(0)
}
10f23f: 8d 65 f4 lea -0xc(%ebp),%esp
10f242: 5b pop %ebx
10f243: 5e pop %esi
10f244: 5f pop %edi
10f245: c9 leave
10f246: c3 ret
0010f248 <rtems_string_to_float>:
rtems_status_code rtems_string_to_float (
const char *s,
float *n,
char **endptr
)
{
10f248: 55 push %ebp
10f249: 89 e5 mov %esp,%ebp
10f24b: 57 push %edi
10f24c: 56 push %esi
10f24d: 53 push %ebx
10f24e: 83 ec 2c sub $0x2c,%esp
10f251: 8b 75 08 mov 0x8(%ebp),%esi
10f254: 8b 5d 0c mov 0xc(%ebp),%ebx
10f257: 8b 7d 10 mov 0x10(%ebp),%edi
float result;
char *end;
if ( !n )
10f25a: b8 09 00 00 00 mov $0x9,%eax
10f25f: 85 db test %ebx,%ebx
10f261: 0f 84 89 00 00 00 je 10f2f0 <rtems_string_to_float+0xa8>
return RTEMS_INVALID_ADDRESS;
errno = 0;
10f267: e8 9c 27 00 00 call 111a08 <__errno>
10f26c: c7 00 00 00 00 00 movl $0x0,(%eax)
*n = 0;
10f272: c7 03 00 00 00 00 movl $0x0,(%ebx)
result = strtof( s, &end );
10f278: 50 push %eax
10f279: 50 push %eax
10f27a: 8d 45 e4 lea -0x1c(%ebp),%eax
10f27d: 50 push %eax
10f27e: 56 push %esi
10f27f: e8 20 52 00 00 call 1144a4 <strtof>
if ( endptr )
10f284: 83 c4 10 add $0x10,%esp
10f287: 85 ff test %edi,%edi
10f289: 74 05 je 10f290 <rtems_string_to_float+0x48>
*endptr = end;
10f28b: 8b 45 e4 mov -0x1c(%ebp),%eax
10f28e: 89 07 mov %eax,(%edi)
if ( end == s )
10f290: b8 0b 00 00 00 mov $0xb,%eax
10f295: 39 75 e4 cmp %esi,-0x1c(%ebp)
10f298: 74 54 je 10f2ee <rtems_string_to_float+0xa6>
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
10f29a: d9 5d c8 fstps -0x38(%ebp)
10f29d: e8 66 27 00 00 call 111a08 <__errno>
10f2a2: 83 38 22 cmpl $0x22,(%eax)
10f2a5: d9 45 c8 flds -0x38(%ebp)
10f2a8: 75 2d jne 10f2d7 <rtems_string_to_float+0x8f>
10f2aa: d9 ee fldz
10f2ac: d9 c9 fxch %st(1)
10f2ae: dd e1 fucom %st(1)
10f2b0: df e0 fnstsw %ax
10f2b2: dd d9 fstp %st(1)
10f2b4: 9e sahf
10f2b5: 7a 02 jp 10f2b9 <rtems_string_to_float+0x71><== NEVER TAKEN
10f2b7: 74 24 je 10f2dd <rtems_string_to_float+0x95><== NEVER TAKEN
10f2b9: d9 05 18 35 12 00 flds 0x123518
10f2bf: d9 c9 fxch %st(1)
10f2c1: dd e1 fucom %st(1)
10f2c3: df e0 fnstsw %ax
10f2c5: dd d9 fstp %st(1)
10f2c7: 9e sahf
10f2c8: 77 17 ja 10f2e1 <rtems_string_to_float+0x99><== ALWAYS TAKEN
10f2ca: d9 05 1c 35 12 00 flds 0x12351c <== NOT EXECUTED
10f2d0: dd e9 fucomp %st(1) <== NOT EXECUTED
10f2d2: df e0 fnstsw %ax <== NOT EXECUTED
10f2d4: 9e sahf <== NOT EXECUTED
10f2d5: 77 0e ja 10f2e5 <rtems_string_to_float+0x9d><== NOT EXECUTED
(( result == 0 ) || ( result == HUGE_VALF ) || ( result == -HUGE_VALF )))
return RTEMS_INVALID_NUMBER;
*n = result;
10f2d7: d9 1b fstps (%ebx)
10f2d9: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
10f2db: eb 13 jmp 10f2f0 <rtems_string_to_float+0xa8>
10f2dd: dd d8 fstp %st(0) <== NOT EXECUTED
10f2df: eb 06 jmp 10f2e7 <rtems_string_to_float+0x9f><== NOT EXECUTED
10f2e1: dd d8 fstp %st(0)
10f2e3: eb 02 jmp 10f2e7 <rtems_string_to_float+0x9f>
10f2e5: dd d8 fstp %st(0) <== NOT EXECUTED
10f2e7: b8 0a 00 00 00 mov $0xa,%eax
10f2ec: eb 02 jmp 10f2f0 <rtems_string_to_float+0xa8>
10f2ee: dd d8 fstp %st(0)
}
10f2f0: 8d 65 f4 lea -0xc(%ebp),%esp
10f2f3: 5b pop %ebx
10f2f4: 5e pop %esi
10f2f5: 5f pop %edi
10f2f6: c9 leave
10f2f7: c3 ret
0011fb34 <rtems_string_to_int>:
const char *s,
int *n,
char **endptr,
int base
)
{
11fb34: 55 push %ebp
11fb35: 89 e5 mov %esp,%ebp
11fb37: 57 push %edi
11fb38: 56 push %esi
11fb39: 53 push %ebx
11fb3a: 83 ec 2c sub $0x2c,%esp
11fb3d: 8b 7d 08 mov 0x8(%ebp),%edi
11fb40: 8b 75 0c mov 0xc(%ebp),%esi
11fb43: 8b 55 10 mov 0x10(%ebp),%edx
long result;
char *end;
if ( !n )
11fb46: b8 09 00 00 00 mov $0x9,%eax
11fb4b: 85 f6 test %esi,%esi
11fb4d: 74 66 je 11fbb5 <rtems_string_to_int+0x81>
return RTEMS_INVALID_ADDRESS;
errno = 0;
11fb4f: 89 55 d4 mov %edx,-0x2c(%ebp)
11fb52: e8 bd e4 01 00 call 13e014 <__errno>
11fb57: c7 00 00 00 00 00 movl $0x0,(%eax)
*n = 0;
11fb5d: c7 06 00 00 00 00 movl $0x0,(%esi)
result = strtol( s, &end, base );
11fb63: 50 push %eax
11fb64: ff 75 14 pushl 0x14(%ebp)
11fb67: 8d 45 e4 lea -0x1c(%ebp),%eax
11fb6a: 50 push %eax
11fb6b: 57 push %edi
11fb6c: e8 17 54 02 00 call 144f88 <strtol>
11fb71: 89 c3 mov %eax,%ebx
if ( endptr )
11fb73: 83 c4 10 add $0x10,%esp
11fb76: 8b 55 d4 mov -0x2c(%ebp),%edx
11fb79: 85 d2 test %edx,%edx
11fb7b: 74 05 je 11fb82 <rtems_string_to_int+0x4e>
*endptr = end;
11fb7d: 8b 45 e4 mov -0x1c(%ebp),%eax
11fb80: 89 02 mov %eax,(%edx)
if ( end == s )
11fb82: b8 0b 00 00 00 mov $0xb,%eax
11fb87: 39 7d e4 cmp %edi,-0x1c(%ebp)
11fb8a: 74 29 je 11fbb5 <rtems_string_to_int+0x81>
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
11fb8c: e8 83 e4 01 00 call 13e014 <__errno>
11fb91: 83 38 22 cmpl $0x22,(%eax)
11fb94: 75 14 jne 11fbaa <rtems_string_to_int+0x76>
11fb96: 81 fb ff ff ff 7f cmp $0x7fffffff,%ebx
11fb9c: 74 12 je 11fbb0 <rtems_string_to_int+0x7c><== ALWAYS TAKEN
11fb9e: 85 db test %ebx,%ebx <== NOT EXECUTED
11fba0: 74 0e je 11fbb0 <rtems_string_to_int+0x7c><== NOT EXECUTED
11fba2: 81 fb 00 00 00 80 cmp $0x80000000,%ebx <== NOT EXECUTED
11fba8: 74 06 je 11fbb0 <rtems_string_to_int+0x7c><== NOT EXECUTED
errno = ERANGE;
return RTEMS_INVALID_NUMBER;
}
#endif
*n = result;
11fbaa: 89 1e mov %ebx,(%esi)
11fbac: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
11fbae: eb 05 jmp 11fbb5 <rtems_string_to_int+0x81>
11fbb0: b8 0a 00 00 00 mov $0xa,%eax
}
11fbb5: 8d 65 f4 lea -0xc(%ebp),%esp
11fbb8: 5b pop %ebx
11fbb9: 5e pop %esi
11fbba: 5f pop %edi
11fbbb: c9 leave
11fbbc: c3 ret
0010f424 <rtems_string_to_long>:
const char *s,
long *n,
char **endptr,
int base
)
{
10f424: 55 push %ebp
10f425: 89 e5 mov %esp,%ebp
10f427: 57 push %edi
10f428: 56 push %esi
10f429: 53 push %ebx
10f42a: 83 ec 2c sub $0x2c,%esp
10f42d: 8b 7d 08 mov 0x8(%ebp),%edi
10f430: 8b 75 0c mov 0xc(%ebp),%esi
10f433: 8b 55 10 mov 0x10(%ebp),%edx
long result;
char *end;
if ( !n )
10f436: b8 09 00 00 00 mov $0x9,%eax
10f43b: 85 f6 test %esi,%esi
10f43d: 74 66 je 10f4a5 <rtems_string_to_long+0x81>
return RTEMS_INVALID_ADDRESS;
errno = 0;
10f43f: 89 55 d4 mov %edx,-0x2c(%ebp)
10f442: e8 c1 25 00 00 call 111a08 <__errno>
10f447: c7 00 00 00 00 00 movl $0x0,(%eax)
*n = 0;
10f44d: c7 06 00 00 00 00 movl $0x0,(%esi)
result = strtol( s, &end, base );
10f453: 50 push %eax
10f454: ff 75 14 pushl 0x14(%ebp)
10f457: 8d 45 e4 lea -0x1c(%ebp),%eax
10f45a: 50 push %eax
10f45b: 57 push %edi
10f45c: e8 23 52 00 00 call 114684 <strtol>
10f461: 89 c3 mov %eax,%ebx
if ( endptr )
10f463: 83 c4 10 add $0x10,%esp
10f466: 8b 55 d4 mov -0x2c(%ebp),%edx
10f469: 85 d2 test %edx,%edx
10f46b: 74 05 je 10f472 <rtems_string_to_long+0x4e>
*endptr = end;
10f46d: 8b 45 e4 mov -0x1c(%ebp),%eax
10f470: 89 02 mov %eax,(%edx)
if ( end == s )
10f472: b8 0b 00 00 00 mov $0xb,%eax
10f477: 39 7d e4 cmp %edi,-0x1c(%ebp)
10f47a: 74 29 je 10f4a5 <rtems_string_to_long+0x81>
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
10f47c: e8 87 25 00 00 call 111a08 <__errno>
10f481: 83 38 22 cmpl $0x22,(%eax)
10f484: 75 14 jne 10f49a <rtems_string_to_long+0x76>
10f486: 81 fb ff ff ff 7f cmp $0x7fffffff,%ebx
10f48c: 74 12 je 10f4a0 <rtems_string_to_long+0x7c>
10f48e: 85 db test %ebx,%ebx
10f490: 74 0e je 10f4a0 <rtems_string_to_long+0x7c><== NEVER TAKEN
10f492: 81 fb 00 00 00 80 cmp $0x80000000,%ebx
10f498: 74 06 je 10f4a0 <rtems_string_to_long+0x7c><== ALWAYS TAKEN
(( result == 0 ) || ( result == LONG_MAX ) || ( result == LONG_MIN )))
return RTEMS_INVALID_NUMBER;
*n = result;
10f49a: 89 1e mov %ebx,(%esi)
10f49c: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
10f49e: eb 05 jmp 10f4a5 <rtems_string_to_long+0x81>
10f4a0: b8 0a 00 00 00 mov $0xa,%eax
}
10f4a5: 8d 65 f4 lea -0xc(%ebp),%esp
10f4a8: 5b pop %ebx
10f4a9: 5e pop %esi
10f4aa: 5f pop %edi
10f4ab: c9 leave
10f4ac: c3 ret
0010f384 <rtems_string_to_long_long>:
const char *s,
long long *n,
char **endptr,
int base
)
{
10f384: 55 push %ebp
10f385: 89 e5 mov %esp,%ebp
10f387: 57 push %edi
10f388: 56 push %esi
10f389: 53 push %ebx
10f38a: 83 ec 2c sub $0x2c,%esp
10f38d: 8b 5d 0c mov 0xc(%ebp),%ebx
10f390: 8b 7d 10 mov 0x10(%ebp),%edi
long long result;
char *end;
if ( !n )
10f393: b8 09 00 00 00 mov $0x9,%eax
10f398: 85 db test %ebx,%ebx
10f39a: 74 7e je 10f41a <rtems_string_to_long_long+0x96>
return RTEMS_INVALID_ADDRESS;
errno = 0;
10f39c: e8 67 26 00 00 call 111a08 <__errno>
10f3a1: c7 00 00 00 00 00 movl $0x0,(%eax)
*n = 0;
10f3a7: c7 03 00 00 00 00 movl $0x0,(%ebx)
10f3ad: c7 43 04 00 00 00 00 movl $0x0,0x4(%ebx)
result = strtoll( s, &end, base );
10f3b4: 50 push %eax
10f3b5: ff 75 14 pushl 0x14(%ebp)
10f3b8: 8d 45 e4 lea -0x1c(%ebp),%eax
10f3bb: 50 push %eax
10f3bc: ff 75 08 pushl 0x8(%ebp)
10f3bf: e8 dc 52 00 00 call 1146a0 <strtoll>
10f3c4: 89 c6 mov %eax,%esi
if ( endptr )
10f3c6: 83 c4 10 add $0x10,%esp
10f3c9: 85 ff test %edi,%edi
10f3cb: 74 05 je 10f3d2 <rtems_string_to_long_long+0x4e>
*endptr = end;
10f3cd: 8b 45 e4 mov -0x1c(%ebp),%eax
10f3d0: 89 07 mov %eax,(%edi)
if ( end == s )
10f3d2: b8 0b 00 00 00 mov $0xb,%eax
10f3d7: 8b 4d 08 mov 0x8(%ebp),%ecx
10f3da: 39 4d e4 cmp %ecx,-0x1c(%ebp)
10f3dd: 74 3b je 10f41a <rtems_string_to_long_long+0x96>
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
10f3df: 89 55 d4 mov %edx,-0x2c(%ebp)
10f3e2: e8 21 26 00 00 call 111a08 <__errno>
10f3e7: 83 38 22 cmpl $0x22,(%eax)
10f3ea: 8b 55 d4 mov -0x2c(%ebp),%edx
10f3ed: 75 1d jne 10f40c <rtems_string_to_long_long+0x88>
10f3ef: 81 fa ff ff ff 7f cmp $0x7fffffff,%edx
10f3f5: 75 05 jne 10f3fc <rtems_string_to_long_long+0x78>
10f3f7: 83 fe ff cmp $0xffffffff,%esi
10f3fa: 74 19 je 10f415 <rtems_string_to_long_long+0x91><== ALWAYS TAKEN
10f3fc: 89 d0 mov %edx,%eax
10f3fe: 09 f0 or %esi,%eax
10f400: 74 13 je 10f415 <rtems_string_to_long_long+0x91><== NEVER TAKEN
10f402: 8d 82 00 00 00 80 lea -0x80000000(%edx),%eax
10f408: 09 f0 or %esi,%eax
10f40a: 74 09 je 10f415 <rtems_string_to_long_long+0x91><== ALWAYS TAKEN
(( result == 0 ) || ( result == LONG_LONG_MAX ) || ( result == LONG_LONG_MIN )))
return RTEMS_INVALID_NUMBER;
*n = result;
10f40c: 89 33 mov %esi,(%ebx)
10f40e: 89 53 04 mov %edx,0x4(%ebx)
10f411: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
10f413: eb 05 jmp 10f41a <rtems_string_to_long_long+0x96>
10f415: b8 0a 00 00 00 mov $0xa,%eax
}
10f41a: 8d 65 f4 lea -0xc(%ebp),%esp
10f41d: 5b pop %ebx
10f41e: 5e pop %esi
10f41f: 5f pop %edi
10f420: c9 leave
10f421: c3 ret
0011fbd8 <rtems_string_to_unsigned_char>:
const char *s,
unsigned char *n,
char **endptr,
int base
)
{
11fbd8: 55 push %ebp
11fbd9: 89 e5 mov %esp,%ebp
11fbdb: 57 push %edi
11fbdc: 56 push %esi
11fbdd: 53 push %ebx
11fbde: 83 ec 2c sub $0x2c,%esp
11fbe1: 8b 7d 08 mov 0x8(%ebp),%edi
11fbe4: 8b 5d 0c mov 0xc(%ebp),%ebx
11fbe7: 8b 55 10 mov 0x10(%ebp),%edx
unsigned long result;
char *end;
if ( !n )
11fbea: b8 09 00 00 00 mov $0x9,%eax
11fbef: 85 db test %ebx,%ebx
11fbf1: 74 71 je 11fc64 <rtems_string_to_unsigned_char+0x8c>
return RTEMS_INVALID_ADDRESS;
errno = 0;
11fbf3: 89 55 d4 mov %edx,-0x2c(%ebp)
11fbf6: e8 19 e4 01 00 call 13e014 <__errno>
11fbfb: c7 00 00 00 00 00 movl $0x0,(%eax)
*n = 0;
11fc01: c6 03 00 movb $0x0,(%ebx)
result = strtoul( s, &end, base );
11fc04: 50 push %eax
11fc05: ff 75 14 pushl 0x14(%ebp)
11fc08: 8d 45 e4 lea -0x1c(%ebp),%eax
11fc0b: 50 push %eax
11fc0c: 57 push %edi
11fc0d: e8 f2 57 02 00 call 145404 <strtoul>
11fc12: 89 c6 mov %eax,%esi
if ( endptr )
11fc14: 83 c4 10 add $0x10,%esp
11fc17: 8b 55 d4 mov -0x2c(%ebp),%edx
11fc1a: 85 d2 test %edx,%edx
11fc1c: 74 05 je 11fc23 <rtems_string_to_unsigned_char+0x4b>
*endptr = end;
11fc1e: 8b 45 e4 mov -0x1c(%ebp),%eax
11fc21: 89 02 mov %eax,(%edx)
if ( end == s )
11fc23: b8 0b 00 00 00 mov $0xb,%eax
11fc28: 39 7d e4 cmp %edi,-0x1c(%ebp)
11fc2b: 74 37 je 11fc64 <rtems_string_to_unsigned_char+0x8c>
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
11fc2d: e8 e2 e3 01 00 call 13e014 <__errno>
11fc32: 83 38 22 cmpl $0x22,(%eax)
11fc35: 75 0d jne 11fc44 <rtems_string_to_unsigned_char+0x6c><== ALWAYS TAKEN
11fc37: 8d 56 ff lea -0x1(%esi),%edx <== NOT EXECUTED
11fc3a: b8 0a 00 00 00 mov $0xa,%eax <== NOT EXECUTED
11fc3f: 83 fa fd cmp $0xfffffffd,%edx <== NOT EXECUTED
11fc42: 77 20 ja 11fc64 <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 ) {
11fc44: 81 fe ff 00 00 00 cmp $0xff,%esi
11fc4a: 76 12 jbe 11fc5e <rtems_string_to_unsigned_char+0x86><== ALWAYS TAKEN
errno = ERANGE;
11fc4c: e8 c3 e3 01 00 call 13e014 <__errno> <== NOT EXECUTED
11fc51: c7 00 22 00 00 00 movl $0x22,(%eax) <== NOT EXECUTED
11fc57: b8 0a 00 00 00 mov $0xa,%eax <== NOT EXECUTED
return RTEMS_INVALID_NUMBER;
11fc5c: eb 06 jmp 11fc64 <rtems_string_to_unsigned_char+0x8c><== NOT EXECUTED
}
#endif
*n = result;
11fc5e: 89 f0 mov %esi,%eax
11fc60: 88 03 mov %al,(%ebx)
11fc62: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
}
11fc64: 8d 65 f4 lea -0xc(%ebp),%esp
11fc67: 5b pop %ebx
11fc68: 5e pop %esi
11fc69: 5f pop %edi
11fc6a: c9 leave
11fc6b: c3 ret
0010f55c <rtems_string_to_unsigned_int>:
const char *s,
unsigned int *n,
char **endptr,
int base
)
{
10f55c: 55 push %ebp
10f55d: 89 e5 mov %esp,%ebp
10f55f: 57 push %edi
10f560: 56 push %esi
10f561: 53 push %ebx
10f562: 83 ec 2c sub $0x2c,%esp
10f565: 8b 7d 08 mov 0x8(%ebp),%edi
10f568: 8b 5d 0c mov 0xc(%ebp),%ebx
10f56b: 8b 55 10 mov 0x10(%ebp),%edx
unsigned long result;
char *end;
if ( !n )
10f56e: b8 09 00 00 00 mov $0x9,%eax
10f573: 85 db test %ebx,%ebx
10f575: 74 58 je 10f5cf <rtems_string_to_unsigned_int+0x73>
return RTEMS_INVALID_ADDRESS;
errno = 0;
10f577: 89 55 d4 mov %edx,-0x2c(%ebp)
10f57a: e8 89 24 00 00 call 111a08 <__errno>
10f57f: c7 00 00 00 00 00 movl $0x0,(%eax)
*n = 0;
10f585: c7 03 00 00 00 00 movl $0x0,(%ebx)
result = strtoul( s, &end, base );
10f58b: 50 push %eax
10f58c: ff 75 14 pushl 0x14(%ebp)
10f58f: 8d 45 e4 lea -0x1c(%ebp),%eax
10f592: 50 push %eax
10f593: 57 push %edi
10f594: e8 67 55 00 00 call 114b00 <strtoul>
10f599: 89 c6 mov %eax,%esi
if ( endptr )
10f59b: 83 c4 10 add $0x10,%esp
10f59e: 8b 55 d4 mov -0x2c(%ebp),%edx
10f5a1: 85 d2 test %edx,%edx
10f5a3: 74 05 je 10f5aa <rtems_string_to_unsigned_int+0x4e>
*endptr = end;
10f5a5: 8b 45 e4 mov -0x1c(%ebp),%eax
10f5a8: 89 02 mov %eax,(%edx)
if ( end == s )
10f5aa: b8 0b 00 00 00 mov $0xb,%eax
10f5af: 39 7d e4 cmp %edi,-0x1c(%ebp)
10f5b2: 74 1b je 10f5cf <rtems_string_to_unsigned_int+0x73>
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
10f5b4: e8 4f 24 00 00 call 111a08 <__errno>
10f5b9: 83 38 22 cmpl $0x22,(%eax)
10f5bc: 75 0d jne 10f5cb <rtems_string_to_unsigned_int+0x6f>
10f5be: 8d 56 ff lea -0x1(%esi),%edx
10f5c1: b8 0a 00 00 00 mov $0xa,%eax
10f5c6: 83 fa fd cmp $0xfffffffd,%edx
10f5c9: 77 04 ja 10f5cf <rtems_string_to_unsigned_int+0x73><== ALWAYS TAKEN
errno = ERANGE;
return RTEMS_INVALID_NUMBER;
}
#endif
*n = result;
10f5cb: 89 33 mov %esi,(%ebx)
10f5cd: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
}
10f5cf: 8d 65 f4 lea -0xc(%ebp),%esp
10f5d2: 5b pop %ebx
10f5d3: 5e pop %esi
10f5d4: 5f pop %edi
10f5d5: c9 leave
10f5d6: c3 ret
0011fc6c <rtems_string_to_unsigned_long>:
const char *s,
unsigned long *n,
char **endptr,
int base
)
{
11fc6c: 55 push %ebp
11fc6d: 89 e5 mov %esp,%ebp
11fc6f: 57 push %edi
11fc70: 56 push %esi
11fc71: 53 push %ebx
11fc72: 83 ec 2c sub $0x2c,%esp
11fc75: 8b 7d 08 mov 0x8(%ebp),%edi
11fc78: 8b 5d 0c mov 0xc(%ebp),%ebx
11fc7b: 8b 55 10 mov 0x10(%ebp),%edx
unsigned long result;
char *end;
if ( !n )
11fc7e: b8 09 00 00 00 mov $0x9,%eax
11fc83: 85 db test %ebx,%ebx
11fc85: 74 58 je 11fcdf <rtems_string_to_unsigned_long+0x73>
return RTEMS_INVALID_ADDRESS;
errno = 0;
11fc87: 89 55 d4 mov %edx,-0x2c(%ebp)
11fc8a: e8 85 e3 01 00 call 13e014 <__errno>
11fc8f: c7 00 00 00 00 00 movl $0x0,(%eax)
*n = 0;
11fc95: c7 03 00 00 00 00 movl $0x0,(%ebx)
result = strtoul( s, &end, base );
11fc9b: 50 push %eax
11fc9c: ff 75 14 pushl 0x14(%ebp)
11fc9f: 8d 45 e4 lea -0x1c(%ebp),%eax
11fca2: 50 push %eax
11fca3: 57 push %edi
11fca4: e8 5b 57 02 00 call 145404 <strtoul>
11fca9: 89 c6 mov %eax,%esi
if ( endptr )
11fcab: 83 c4 10 add $0x10,%esp
11fcae: 8b 55 d4 mov -0x2c(%ebp),%edx
11fcb1: 85 d2 test %edx,%edx
11fcb3: 74 05 je 11fcba <rtems_string_to_unsigned_long+0x4e>
*endptr = end;
11fcb5: 8b 45 e4 mov -0x1c(%ebp),%eax
11fcb8: 89 02 mov %eax,(%edx)
if ( end == s )
11fcba: b8 0b 00 00 00 mov $0xb,%eax
11fcbf: 39 7d e4 cmp %edi,-0x1c(%ebp)
11fcc2: 74 1b je 11fcdf <rtems_string_to_unsigned_long+0x73>
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
11fcc4: e8 4b e3 01 00 call 13e014 <__errno>
11fcc9: 83 38 22 cmpl $0x22,(%eax)
11fccc: 75 0d jne 11fcdb <rtems_string_to_unsigned_long+0x6f>
11fcce: 8d 56 ff lea -0x1(%esi),%edx
11fcd1: b8 0a 00 00 00 mov $0xa,%eax
11fcd6: 83 fa fd cmp $0xfffffffd,%edx
11fcd9: 77 04 ja 11fcdf <rtems_string_to_unsigned_long+0x73><== ALWAYS TAKEN
(( result == 0 ) || ( result == ULONG_MAX )))
return RTEMS_INVALID_NUMBER;
*n = result;
11fcdb: 89 33 mov %esi,(%ebx)
11fcdd: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
}
11fcdf: 8d 65 f4 lea -0xc(%ebp),%esp
11fce2: 5b pop %ebx
11fce3: 5e pop %esi
11fce4: 5f pop %edi
11fce5: c9 leave
11fce6: c3 ret
0010f5d8 <rtems_string_to_unsigned_long_long>:
const char *s,
unsigned long long *n,
char **endptr,
int base
)
{
10f5d8: 55 push %ebp
10f5d9: 89 e5 mov %esp,%ebp
10f5db: 57 push %edi
10f5dc: 56 push %esi
10f5dd: 53 push %ebx
10f5de: 83 ec 2c sub $0x2c,%esp
10f5e1: 8b 7d 08 mov 0x8(%ebp),%edi
10f5e4: 8b 5d 0c mov 0xc(%ebp),%ebx
10f5e7: 8b 75 10 mov 0x10(%ebp),%esi
unsigned long long result;
char *end;
if ( !n )
10f5ea: b8 09 00 00 00 mov $0x9,%eax
10f5ef: 85 db test %ebx,%ebx
10f5f1: 74 76 je 10f669 <rtems_string_to_unsigned_long_long+0x91>
return RTEMS_INVALID_ADDRESS;
errno = 0;
10f5f3: e8 10 24 00 00 call 111a08 <__errno>
10f5f8: c7 00 00 00 00 00 movl $0x0,(%eax)
*n = 0;
10f5fe: c7 03 00 00 00 00 movl $0x0,(%ebx)
10f604: c7 43 04 00 00 00 00 movl $0x0,0x4(%ebx)
result = strtoull( s, &end, base );
10f60b: 50 push %eax
10f60c: ff 75 14 pushl 0x14(%ebp)
10f60f: 8d 45 e4 lea -0x1c(%ebp),%eax
10f612: 50 push %eax
10f613: 57 push %edi
10f614: e8 03 55 00 00 call 114b1c <strtoull>
10f619: 89 d1 mov %edx,%ecx
10f61b: 89 c2 mov %eax,%edx
if ( endptr )
10f61d: 83 c4 10 add $0x10,%esp
10f620: 85 f6 test %esi,%esi
10f622: 74 05 je 10f629 <rtems_string_to_unsigned_long_long+0x51>
*endptr = end;
10f624: 8b 45 e4 mov -0x1c(%ebp),%eax
10f627: 89 06 mov %eax,(%esi)
if ( end == s )
10f629: b8 0b 00 00 00 mov $0xb,%eax
10f62e: 39 7d e4 cmp %edi,-0x1c(%ebp)
10f631: 74 36 je 10f669 <rtems_string_to_unsigned_long_long+0x91>
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
10f633: 89 55 d4 mov %edx,-0x2c(%ebp)
10f636: 89 4d d0 mov %ecx,-0x30(%ebp)
10f639: e8 ca 23 00 00 call 111a08 <__errno>
10f63e: 83 38 22 cmpl $0x22,(%eax)
10f641: 8b 55 d4 mov -0x2c(%ebp),%edx
10f644: 8b 4d d0 mov -0x30(%ebp),%ecx
10f647: 75 19 jne 10f662 <rtems_string_to_unsigned_long_long+0x8a>
10f649: 89 d6 mov %edx,%esi
10f64b: 89 cf mov %ecx,%edi
10f64d: 83 c6 ff add $0xffffffff,%esi
10f650: 83 d7 ff adc $0xffffffff,%edi
10f653: 83 ff ff cmp $0xffffffff,%edi
10f656: 72 0a jb 10f662 <rtems_string_to_unsigned_long_long+0x8a><== NEVER TAKEN
10f658: b8 0a 00 00 00 mov $0xa,%eax
10f65d: 83 fe fd cmp $0xfffffffd,%esi
10f660: 77 07 ja 10f669 <rtems_string_to_unsigned_long_long+0x91><== ALWAYS TAKEN
(( result == 0 ) || ( result == ULONG_LONG_MAX )))
return RTEMS_INVALID_NUMBER;
*n = result;
10f662: 89 13 mov %edx,(%ebx)
10f664: 89 4b 04 mov %ecx,0x4(%ebx)
10f667: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
}
10f669: 8d 65 f4 lea -0xc(%ebp),%esp
10f66c: 5b pop %ebx
10f66d: 5e pop %esi
10f66e: 5f pop %edi
10f66f: c9 leave
10f670: c3 ret
0010e214 <rtems_task_set_priority>:
rtems_status_code rtems_task_set_priority(
rtems_id id,
rtems_task_priority new_priority,
rtems_task_priority *old_priority
)
{
10e214: 55 push %ebp
10e215: 89 e5 mov %esp,%ebp
10e217: 56 push %esi
10e218: 53 push %ebx
10e219: 83 ec 10 sub $0x10,%esp
10e21c: 8b 5d 0c mov 0xc(%ebp),%ebx
10e21f: 8b 75 10 mov 0x10(%ebp),%esi
register Thread_Control *the_thread;
Objects_Locations location;
if ( new_priority != RTEMS_CURRENT_PRIORITY &&
10e222: 85 db test %ebx,%ebx
10e224: 74 10 je 10e236 <rtems_task_set_priority+0x22>
10e226: 0f b6 05 14 62 12 00 movzbl 0x126214,%eax
10e22d: ba 13 00 00 00 mov $0x13,%edx
10e232: 39 c3 cmp %eax,%ebx
10e234: 77 50 ja 10e286 <rtems_task_set_priority+0x72>
!_RTEMS_tasks_Priority_is_valid( new_priority ) )
return RTEMS_INVALID_PRIORITY;
if ( !old_priority )
10e236: ba 09 00 00 00 mov $0x9,%edx
10e23b: 85 f6 test %esi,%esi
10e23d: 74 47 je 10e286 <rtems_task_set_priority+0x72>
return RTEMS_INVALID_ADDRESS;
the_thread = _Thread_Get( id, &location );
10e23f: 51 push %ecx
10e240: 51 push %ecx
10e241: 8d 45 f4 lea -0xc(%ebp),%eax
10e244: 50 push %eax
10e245: ff 75 08 pushl 0x8(%ebp)
10e248: e8 d3 1b 00 00 call 10fe20 <_Thread_Get>
switch ( location ) {
10e24d: 83 c4 10 add $0x10,%esp
10e250: ba 04 00 00 00 mov $0x4,%edx
10e255: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
10e259: 75 2b jne 10e286 <rtems_task_set_priority+0x72>
case OBJECTS_LOCAL:
/* XXX need helper to "convert" from core priority */
*old_priority = the_thread->current_priority;
10e25b: 8b 50 14 mov 0x14(%eax),%edx
10e25e: 89 16 mov %edx,(%esi)
if ( new_priority != RTEMS_CURRENT_PRIORITY ) {
10e260: 85 db test %ebx,%ebx
10e262: 74 1b je 10e27f <rtems_task_set_priority+0x6b>
the_thread->real_priority = new_priority;
10e264: 89 58 18 mov %ebx,0x18(%eax)
if ( the_thread->resource_count == 0 ||
10e267: 83 78 1c 00 cmpl $0x0,0x1c(%eax)
10e26b: 74 05 je 10e272 <rtems_task_set_priority+0x5e>
the_thread->current_priority > new_priority )
10e26d: 39 58 14 cmp %ebx,0x14(%eax)
10e270: 76 0d jbe 10e27f <rtems_task_set_priority+0x6b><== ALWAYS TAKEN
_Thread_Change_priority( the_thread, new_priority, false );
10e272: 52 push %edx
10e273: 6a 00 push $0x0
10e275: 53 push %ebx
10e276: 50 push %eax
10e277: e8 b8 16 00 00 call 10f934 <_Thread_Change_priority>
10e27c: 83 c4 10 add $0x10,%esp
}
_Thread_Enable_dispatch();
10e27f: e8 4d 1b 00 00 call 10fdd1 <_Thread_Enable_dispatch>
10e284: 31 d2 xor %edx,%edx
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
10e286: 89 d0 mov %edx,%eax
10e288: 8d 65 f8 lea -0x8(%ebp),%esp
10e28b: 5b pop %ebx
10e28c: 5e pop %esi
10e28d: c9 leave
10e28e: c3 ret
001095f0 <rtems_termios_baud_to_index>:
#include <rtems/termiostypes.h>
int rtems_termios_baud_to_index(
rtems_termios_baud_t termios_baud
)
{
1095f0: 55 push %ebp
1095f1: 89 e5 mov %esp,%ebp
1095f3: 8b 55 08 mov 0x8(%ebp),%edx
case B110: baud_index = 3; break;
case B134: baud_index = 4; break;
case B150: baud_index = 5; break;
case B200: baud_index = 6; break;
case B300: baud_index = 7; break;
case B600: baud_index = 8; break;
1095f6: b8 09 00 00 00 mov $0x9,%eax
rtems_termios_baud_t termios_baud
)
{
int baud_index;
switch (termios_baud) {
1095fb: 83 fa 09 cmp $0x9,%edx
1095fe: 0f 84 b5 00 00 00 je 1096b9 <rtems_termios_baud_to_index+0xc9><== NEVER TAKEN
109604: 7f 54 jg 10965a <rtems_termios_baud_to_index+0x6a><== NEVER TAKEN
case B0: baud_index = 0; break;
case B50: baud_index = 1; break;
case B75: baud_index = 2; break;
case B110: baud_index = 3; break;
109606: b0 04 mov $0x4,%al
rtems_termios_baud_t termios_baud
)
{
int baud_index;
switch (termios_baud) {
109608: 83 fa 04 cmp $0x4,%edx
10960b: 0f 84 a8 00 00 00 je 1096b9 <rtems_termios_baud_to_index+0xc9><== NEVER TAKEN
109611: 7f 2b jg 10963e <rtems_termios_baud_to_index+0x4e><== NEVER TAKEN
109613: b0 01 mov $0x1,%al
109615: 83 fa 01 cmp $0x1,%edx
109618: 0f 84 9b 00 00 00 je 1096b9 <rtems_termios_baud_to_index+0xc9><== NEVER TAKEN
10961e: 7f 09 jg 109629 <rtems_termios_baud_to_index+0x39><== NEVER TAKEN
109620: 30 c0 xor %al,%al
109622: 85 d2 test %edx,%edx
109624: e9 8b 00 00 00 jmp 1096b4 <rtems_termios_baud_to_index+0xc4>
109629: b8 02 00 00 00 mov $0x2,%eax <== NOT EXECUTED
10962e: 83 fa 02 cmp $0x2,%edx <== NOT EXECUTED
109631: 0f 84 82 00 00 00 je 1096b9 <rtems_termios_baud_to_index+0xc9><== NOT EXECUTED
case B0: baud_index = 0; break;
case B50: baud_index = 1; break;
case B75: baud_index = 2; break;
109637: b0 03 mov $0x3,%al <== NOT EXECUTED
rtems_termios_baud_t termios_baud
)
{
int baud_index;
switch (termios_baud) {
109639: 83 fa 03 cmp $0x3,%edx <== NOT EXECUTED
10963c: eb 76 jmp 1096b4 <rtems_termios_baud_to_index+0xc4><== NOT EXECUTED
case B0: baud_index = 0; break;
case B50: baud_index = 1; break;
case B75: baud_index = 2; break;
case B110: baud_index = 3; break;
case B134: baud_index = 4; break;
case B150: baud_index = 5; break;
10963e: b8 06 00 00 00 mov $0x6,%eax <== NOT EXECUTED
rtems_termios_baud_t termios_baud
)
{
int baud_index;
switch (termios_baud) {
109643: 83 fa 06 cmp $0x6,%edx <== NOT EXECUTED
109646: 74 71 je 1096b9 <rtems_termios_baud_to_index+0xc9><== NOT EXECUTED
case B0: baud_index = 0; break;
case B50: baud_index = 1; break;
case B75: baud_index = 2; break;
case B110: baud_index = 3; break;
case B134: baud_index = 4; break;
109648: b0 05 mov $0x5,%al <== NOT EXECUTED
rtems_termios_baud_t termios_baud
)
{
int baud_index;
switch (termios_baud) {
10964a: 7c 6d jl 1096b9 <rtems_termios_baud_to_index+0xc9><== NOT EXECUTED
case B50: baud_index = 1; break;
case B75: baud_index = 2; break;
case B110: baud_index = 3; break;
case B134: baud_index = 4; break;
case B150: baud_index = 5; break;
case B200: baud_index = 6; break;
10964c: b0 07 mov $0x7,%al <== NOT EXECUTED
rtems_termios_baud_t termios_baud
)
{
int baud_index;
switch (termios_baud) {
10964e: 83 fa 07 cmp $0x7,%edx <== NOT EXECUTED
109651: 74 66 je 1096b9 <rtems_termios_baud_to_index+0xc9><== NOT EXECUTED
case B75: baud_index = 2; break;
case B110: baud_index = 3; break;
case B134: baud_index = 4; break;
case B150: baud_index = 5; break;
case B200: baud_index = 6; break;
case B300: baud_index = 7; break;
109653: b0 08 mov $0x8,%al <== NOT EXECUTED
rtems_termios_baud_t termios_baud
)
{
int baud_index;
switch (termios_baud) {
109655: 83 fa 08 cmp $0x8,%edx <== NOT EXECUTED
109658: eb 5a jmp 1096b4 <rtems_termios_baud_to_index+0xc4><== NOT EXECUTED
case B600: baud_index = 8; break;
case B1200: baud_index = 9; break;
case B1800: baud_index = 10; break;
case B2400: baud_index = 11; break;
case B4800: baud_index = 12; break;
case B9600: baud_index = 13; break;
10965a: b8 0e 00 00 00 mov $0xe,%eax <== NOT EXECUTED
rtems_termios_baud_t termios_baud
)
{
int baud_index;
switch (termios_baud) {
10965f: 83 fa 0e cmp $0xe,%edx <== NOT EXECUTED
109662: 74 55 je 1096b9 <rtems_termios_baud_to_index+0xc9><== NOT EXECUTED
109664: 7f 19 jg 10967f <rtems_termios_baud_to_index+0x8f><== NOT EXECUTED
case B150: baud_index = 5; break;
case B200: baud_index = 6; break;
case B300: baud_index = 7; break;
case B600: baud_index = 8; break;
case B1200: baud_index = 9; break;
case B1800: baud_index = 10; break;
109666: b0 0b mov $0xb,%al <== NOT EXECUTED
rtems_termios_baud_t termios_baud
)
{
int baud_index;
switch (termios_baud) {
109668: 83 fa 0b cmp $0xb,%edx <== NOT EXECUTED
10966b: 74 4c je 1096b9 <rtems_termios_baud_to_index+0xc9><== NOT EXECUTED
case B134: baud_index = 4; break;
case B150: baud_index = 5; break;
case B200: baud_index = 6; break;
case B300: baud_index = 7; break;
case B600: baud_index = 8; break;
case B1200: baud_index = 9; break;
10966d: b0 0a mov $0xa,%al <== NOT EXECUTED
rtems_termios_baud_t termios_baud
)
{
int baud_index;
switch (termios_baud) {
10966f: 7c 48 jl 1096b9 <rtems_termios_baud_to_index+0xc9><== NOT EXECUTED
case B200: baud_index = 6; break;
case B300: baud_index = 7; break;
case B600: baud_index = 8; break;
case B1200: baud_index = 9; break;
case B1800: baud_index = 10; break;
case B2400: baud_index = 11; break;
109671: b0 0c mov $0xc,%al <== NOT EXECUTED
rtems_termios_baud_t termios_baud
)
{
int baud_index;
switch (termios_baud) {
109673: 83 fa 0c cmp $0xc,%edx <== NOT EXECUTED
109676: 74 41 je 1096b9 <rtems_termios_baud_to_index+0xc9><== NOT EXECUTED
case B300: baud_index = 7; break;
case B600: baud_index = 8; break;
case B1200: baud_index = 9; break;
case B1800: baud_index = 10; break;
case B2400: baud_index = 11; break;
case B4800: baud_index = 12; break;
109678: b0 0d mov $0xd,%al <== NOT EXECUTED
rtems_termios_baud_t termios_baud
)
{
int baud_index;
switch (termios_baud) {
10967a: 83 fa 0d cmp $0xd,%edx <== NOT EXECUTED
10967d: eb 35 jmp 1096b4 <rtems_termios_baud_to_index+0xc4><== NOT EXECUTED
case B2400: baud_index = 11; break;
case B4800: baud_index = 12; break;
case B9600: baud_index = 13; break;
case B19200: baud_index = 14; break;
case B38400: baud_index = 15; break;
case B57600: baud_index = 16; break;
10967f: b8 11 00 00 00 mov $0x11,%eax <== NOT EXECUTED
rtems_termios_baud_t termios_baud
)
{
int baud_index;
switch (termios_baud) {
109684: 81 fa 02 10 00 00 cmp $0x1002,%edx <== NOT EXECUTED
10968a: 74 2d je 1096b9 <rtems_termios_baud_to_index+0xc9><== NOT EXECUTED
10968c: 7f 11 jg 10969f <rtems_termios_baud_to_index+0xaf><== NOT EXECUTED
case B1200: baud_index = 9; break;
case B1800: baud_index = 10; break;
case B2400: baud_index = 11; break;
case B4800: baud_index = 12; break;
case B9600: baud_index = 13; break;
case B19200: baud_index = 14; break;
10968e: b0 0f mov $0xf,%al <== NOT EXECUTED
rtems_termios_baud_t termios_baud
)
{
int baud_index;
switch (termios_baud) {
109690: 83 fa 0f cmp $0xf,%edx <== NOT EXECUTED
109693: 74 24 je 1096b9 <rtems_termios_baud_to_index+0xc9><== NOT EXECUTED
case B1800: baud_index = 10; break;
case B2400: baud_index = 11; break;
case B4800: baud_index = 12; break;
case B9600: baud_index = 13; break;
case B19200: baud_index = 14; break;
case B38400: baud_index = 15; break;
109695: b0 10 mov $0x10,%al <== NOT EXECUTED
rtems_termios_baud_t termios_baud
)
{
int baud_index;
switch (termios_baud) {
109697: 81 fa 01 10 00 00 cmp $0x1001,%edx <== NOT EXECUTED
10969d: eb 15 jmp 1096b4 <rtems_termios_baud_to_index+0xc4><== NOT EXECUTED
case B4800: baud_index = 12; break;
case B9600: baud_index = 13; break;
case B19200: baud_index = 14; break;
case B38400: baud_index = 15; break;
case B57600: baud_index = 16; break;
case B115200: baud_index = 17; break;
10969f: b8 12 00 00 00 mov $0x12,%eax <== NOT EXECUTED
rtems_termios_baud_t termios_baud
)
{
int baud_index;
switch (termios_baud) {
1096a4: 81 fa 03 10 00 00 cmp $0x1003,%edx <== NOT EXECUTED
1096aa: 74 0d je 1096b9 <rtems_termios_baud_to_index+0xc9><== NOT EXECUTED
case B9600: baud_index = 13; break;
case B19200: baud_index = 14; break;
case B38400: baud_index = 15; break;
case B57600: baud_index = 16; break;
case B115200: baud_index = 17; break;
case B230400: baud_index = 18; break;
1096ac: b0 13 mov $0x13,%al <== NOT EXECUTED
rtems_termios_baud_t termios_baud
)
{
int baud_index;
switch (termios_baud) {
1096ae: 81 fa 04 10 00 00 cmp $0x1004,%edx <== NOT EXECUTED
1096b4: 74 03 je 1096b9 <rtems_termios_baud_to_index+0xc9><== NEVER TAKEN
case B19200: baud_index = 14; break;
case B38400: baud_index = 15; break;
case B57600: baud_index = 16; break;
case B115200: baud_index = 17; break;
case B230400: baud_index = 18; break;
case B460800: baud_index = 19; break;
1096b6: 83 c8 ff or $0xffffffff,%eax
default: baud_index = -1; break;
}
return baud_index;
}
1096b9: c9 leave
1096ba: c3 ret
00108550 <rtems_termios_bufsize>:
rtems_status_code rtems_termios_bufsize (
int cbufsize,
int raw_input,
int raw_output
)
{
108550: 55 push %ebp <== NOT EXECUTED
108551: 89 e5 mov %esp,%ebp <== NOT EXECUTED
rtems_termios_cbufsize = cbufsize;
108553: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
108556: a3 44 3f 12 00 mov %eax,0x123f44 <== NOT EXECUTED
rtems_termios_raw_input_size = raw_input;
10855b: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
10855e: a3 48 3f 12 00 mov %eax,0x123f48 <== NOT EXECUTED
rtems_termios_raw_output_size = raw_output;
108563: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
108566: a3 4c 3f 12 00 mov %eax,0x123f4c <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
}
10856b: 31 c0 xor %eax,%eax <== NOT EXECUTED
10856d: c9 leave <== NOT EXECUTED
10856e: c3 ret <== NOT EXECUTED
001096cf <rtems_termios_close>:
}
}
rtems_status_code
rtems_termios_close (void *arg)
{
1096cf: 55 push %ebp
1096d0: 89 e5 mov %esp,%ebp
1096d2: 56 push %esi
1096d3: 53 push %ebx
1096d4: 8b 75 08 mov 0x8(%ebp),%esi
rtems_libio_open_close_args_t *args = arg;
struct rtems_termios_tty *tty = args->iop->data1;
1096d7: 8b 06 mov (%esi),%eax
1096d9: 8b 58 34 mov 0x34(%eax),%ebx
rtems_status_code sc;
sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
1096dc: 50 push %eax
1096dd: 6a 00 push $0x0
1096df: 6a 00 push $0x0
1096e1: ff 35 fc 60 12 00 pushl 0x1260fc
1096e7: e8 0c 0f 00 00 call 10a5f8 <rtems_semaphore_obtain>
if (sc != RTEMS_SUCCESSFUL)
1096ec: 83 c4 10 add $0x10,%esp
1096ef: 85 c0 test %eax,%eax
1096f1: 75 7d jne 109770 <rtems_termios_close+0xa1><== NEVER TAKEN
rtems_fatal_error_occurred (sc);
if (--tty->refcount == 0) {
1096f3: 8b 43 08 mov 0x8(%ebx),%eax
1096f6: 48 dec %eax
1096f7: 89 43 08 mov %eax,0x8(%ebx)
1096fa: 85 c0 test %eax,%eax
1096fc: 0f 85 33 01 00 00 jne 109835 <rtems_termios_close+0x166>
if (rtems_termios_linesw[tty->t_line].l_close != NULL) {
109702: 8b 83 cc 00 00 00 mov 0xcc(%ebx),%eax
109708: c1 e0 05 shl $0x5,%eax
10970b: 8b 80 b4 5d 12 00 mov 0x125db4(%eax),%eax
109711: 85 c0 test %eax,%eax
109713: 74 0b je 109720 <rtems_termios_close+0x51><== ALWAYS TAKEN
/*
* call discipline-specific close
*/
sc = rtems_termios_linesw[tty->t_line].l_close(tty);
109715: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
109718: 53 push %ebx <== NOT EXECUTED
109719: ff d0 call *%eax <== NOT EXECUTED
10971b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10971e: eb 1b jmp 10973b <rtems_termios_close+0x6c><== NOT EXECUTED
}
else {
/*
* default: just flush output buffer
*/
sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
109720: 51 push %ecx
109721: 6a 00 push $0x0
109723: 6a 00 push $0x0
109725: ff 73 18 pushl 0x18(%ebx)
109728: e8 cb 0e 00 00 call 10a5f8 <rtems_semaphore_obtain>
if (sc != RTEMS_SUCCESSFUL) {
10972d: 83 c4 10 add $0x10,%esp
109730: 85 c0 test %eax,%eax
109732: 75 3c jne 109770 <rtems_termios_close+0xa1><== NEVER TAKEN
rtems_fatal_error_occurred (sc);
}
drainOutput (tty);
109734: 89 d8 mov %ebx,%eax
109736: e8 1b f9 ff ff call 109056 <drainOutput>
}
if (tty->device.outputUsesInterrupts
10973b: 83 bb b4 00 00 00 02 cmpl $0x2,0xb4(%ebx)
109742: 75 35 jne 109779 <rtems_termios_close+0xaa><== ALWAYS TAKEN
== TERMIOS_TASK_DRIVEN) {
/*
* send "terminate" to I/O tasks
*/
sc = rtems_event_send(
109744: 52 push %edx <== NOT EXECUTED
109745: 52 push %edx <== NOT EXECUTED
109746: 6a 01 push $0x1 <== NOT EXECUTED
109748: ff b3 c4 00 00 00 pushl 0xc4(%ebx) <== NOT EXECUTED
10974e: e8 3d 0a 00 00 call 10a190 <rtems_event_send> <== NOT EXECUTED
tty->rxTaskId,
TERMIOS_RX_TERMINATE_EVENT);
if (sc != RTEMS_SUCCESSFUL)
109753: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
109756: 85 c0 test %eax,%eax <== NOT EXECUTED
109758: 75 16 jne 109770 <rtems_termios_close+0xa1><== NOT EXECUTED
rtems_fatal_error_occurred (sc);
sc = rtems_event_send(
10975a: 50 push %eax <== NOT EXECUTED
10975b: 50 push %eax <== NOT EXECUTED
10975c: 6a 01 push $0x1 <== NOT EXECUTED
10975e: ff b3 c8 00 00 00 pushl 0xc8(%ebx) <== NOT EXECUTED
109764: e8 27 0a 00 00 call 10a190 <rtems_event_send> <== NOT EXECUTED
tty->txTaskId,
TERMIOS_TX_TERMINATE_EVENT);
if (sc != RTEMS_SUCCESSFUL)
109769: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10976c: 85 c0 test %eax,%eax <== NOT EXECUTED
10976e: 74 09 je 109779 <rtems_termios_close+0xaa><== NOT EXECUTED
rtems_fatal_error_occurred (sc);
109770: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
109773: 50 push %eax <== NOT EXECUTED
109774: e8 17 14 00 00 call 10ab90 <rtems_fatal_error_occurred><== NOT EXECUTED
}
if (tty->device.lastClose)
109779: 8b 83 9c 00 00 00 mov 0x9c(%ebx),%eax
10977f: 85 c0 test %eax,%eax
109781: 74 0d je 109790 <rtems_termios_close+0xc1>
(*tty->device.lastClose)(tty->major, tty->minor, arg);
109783: 51 push %ecx
109784: 56 push %esi
109785: ff 73 10 pushl 0x10(%ebx)
109788: ff 73 0c pushl 0xc(%ebx)
10978b: ff d0 call *%eax
10978d: 83 c4 10 add $0x10,%esp
if (tty->forw == NULL) {
109790: 8b 13 mov (%ebx),%edx
109792: 85 d2 test %edx,%edx
109794: 8b 43 04 mov 0x4(%ebx),%eax
109797: 75 11 jne 1097aa <rtems_termios_close+0xdb>
rtems_termios_ttyTail = tty->back;
109799: a3 00 61 12 00 mov %eax,0x126100
if ( rtems_termios_ttyTail != NULL ) {
10979e: 85 c0 test %eax,%eax
1097a0: 74 0b je 1097ad <rtems_termios_close+0xde><== ALWAYS TAKEN
rtems_termios_ttyTail->forw = NULL;
1097a2: c7 00 00 00 00 00 movl $0x0,(%eax) <== NOT EXECUTED
1097a8: eb 03 jmp 1097ad <rtems_termios_close+0xde><== NOT EXECUTED
}
}
else {
tty->forw->back = tty->back;
1097aa: 89 42 04 mov %eax,0x4(%edx)
}
if (tty->back == NULL) {
1097ad: 8b 53 04 mov 0x4(%ebx),%edx
1097b0: 85 d2 test %edx,%edx
1097b2: 8b 03 mov (%ebx),%eax
1097b4: 75 12 jne 1097c8 <rtems_termios_close+0xf9><== NEVER TAKEN
rtems_termios_ttyHead = tty->forw;
1097b6: a3 04 61 12 00 mov %eax,0x126104
if ( rtems_termios_ttyHead != NULL ) {
1097bb: 85 c0 test %eax,%eax
1097bd: 74 0b je 1097ca <rtems_termios_close+0xfb>
rtems_termios_ttyHead->back = NULL;
1097bf: c7 40 04 00 00 00 00 movl $0x0,0x4(%eax)
1097c6: eb 02 jmp 1097ca <rtems_termios_close+0xfb>
}
}
else {
tty->back->forw = tty->forw;
1097c8: 89 02 mov %eax,(%edx) <== NOT EXECUTED
}
rtems_semaphore_delete (tty->isem);
1097ca: 83 ec 0c sub $0xc,%esp
1097cd: ff 73 14 pushl 0x14(%ebx)
1097d0: e8 93 0d 00 00 call 10a568 <rtems_semaphore_delete>
rtems_semaphore_delete (tty->osem);
1097d5: 5a pop %edx
1097d6: ff 73 18 pushl 0x18(%ebx)
1097d9: e8 8a 0d 00 00 call 10a568 <rtems_semaphore_delete>
rtems_semaphore_delete (tty->rawOutBuf.Semaphore);
1097de: 58 pop %eax
1097df: ff b3 8c 00 00 00 pushl 0x8c(%ebx)
1097e5: e8 7e 0d 00 00 call 10a568 <rtems_semaphore_delete>
if ((tty->device.pollRead == NULL) ||
1097ea: 83 c4 10 add $0x10,%esp
1097ed: 83 bb a0 00 00 00 00 cmpl $0x0,0xa0(%ebx)
1097f4: 74 09 je 1097ff <rtems_termios_close+0x130>
(tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN))
1097f6: 83 bb b4 00 00 00 02 cmpl $0x2,0xb4(%ebx)
1097fd: 75 0e jne 10980d <rtems_termios_close+0x13e><== ALWAYS TAKEN
rtems_semaphore_delete (tty->rawInBuf.Semaphore);
1097ff: 83 ec 0c sub $0xc,%esp
109802: ff 73 68 pushl 0x68(%ebx)
109805: e8 5e 0d 00 00 call 10a568 <rtems_semaphore_delete>
10980a: 83 c4 10 add $0x10,%esp
free (tty->rawInBuf.theBuf);
10980d: 83 ec 0c sub $0xc,%esp
109810: ff 73 58 pushl 0x58(%ebx)
109813: e8 84 de ff ff call 10769c <free>
free (tty->rawOutBuf.theBuf);
109818: 5e pop %esi
109819: ff 73 7c pushl 0x7c(%ebx)
10981c: e8 7b de ff ff call 10769c <free>
free (tty->cbuf);
109821: 59 pop %ecx
109822: ff 73 1c pushl 0x1c(%ebx)
109825: e8 72 de ff ff call 10769c <free>
free (tty);
10982a: 89 1c 24 mov %ebx,(%esp)
10982d: e8 6a de ff ff call 10769c <free>
109832: 83 c4 10 add $0x10,%esp
}
rtems_semaphore_release (rtems_termios_ttyMutex);
109835: 83 ec 0c sub $0xc,%esp
109838: ff 35 fc 60 12 00 pushl 0x1260fc
10983e: e8 a1 0e 00 00 call 10a6e4 <rtems_semaphore_release>
return RTEMS_SUCCESSFUL;
}
109843: 31 c0 xor %eax,%eax
109845: 8d 65 f8 lea -0x8(%ebp),%esp
109848: 5b pop %ebx
109849: 5e pop %esi
10984a: c9 leave
10984b: c3 ret
0010874a <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)
{
10874a: 55 push %ebp
10874b: 89 e5 mov %esp,%ebp
10874d: 83 ec 08 sub $0x8,%esp
108750: 8b 45 08 mov 0x8(%ebp),%eax
rtems_status_code sc;
/*
* sum up character count already sent
*/
tty->t_dqlen += len;
108753: 8b 55 0c mov 0xc(%ebp),%edx
108756: 01 90 90 00 00 00 add %edx,0x90(%eax)
if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {
10875c: 83 b8 b4 00 00 00 02 cmpl $0x2,0xb4(%eax)
108763: 75 1f jne 108784 <rtems_termios_dequeue_characters+0x3a><== ALWAYS TAKEN
/*
* send wake up to transmitter task
*/
sc = rtems_event_send(tty->txTaskId,
108765: 52 push %edx <== NOT EXECUTED
108766: 52 push %edx <== NOT EXECUTED
108767: 6a 02 push $0x2 <== NOT EXECUTED
108769: ff b0 c8 00 00 00 pushl 0xc8(%eax) <== NOT EXECUTED
10876f: e8 1c 1a 00 00 call 10a190 <rtems_event_send> <== NOT EXECUTED
TERMIOS_TX_START_EVENT);
if (sc != RTEMS_SUCCESSFUL)
108774: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
108777: 85 c0 test %eax,%eax <== NOT EXECUTED
108779: 74 30 je 1087ab <rtems_termios_dequeue_characters+0x61><== NOT EXECUTED
rtems_fatal_error_occurred (sc);
10877b: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10877e: 50 push %eax <== NOT EXECUTED
10877f: e8 0c 24 00 00 call 10ab90 <rtems_fatal_error_occurred><== NOT EXECUTED
return 0; /* nothing to output in IRQ... */
}
else if (tty->t_line == PPPDISC ) {
108784: 83 b8 cc 00 00 00 05 cmpl $0x5,0xcc(%eax)
10878b: 75 15 jne 1087a2 <rtems_termios_dequeue_characters+0x58><== ALWAYS TAKEN
/*
* call any line discipline start function
*/
if (rtems_termios_linesw[tty->t_line].l_start != NULL) {
10878d: 8b 15 64 5e 12 00 mov 0x125e64,%edx <== NOT EXECUTED
108793: 85 d2 test %edx,%edx <== NOT EXECUTED
108795: 74 14 je 1087ab <rtems_termios_dequeue_characters+0x61><== NOT EXECUTED
rtems_termios_linesw[tty->t_line].l_start(tty);
108797: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10879a: 50 push %eax <== NOT EXECUTED
10879b: ff d2 call *%edx <== NOT EXECUTED
10879d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1087a0: eb 09 jmp 1087ab <rtems_termios_dequeue_characters+0x61><== NOT EXECUTED
}
return 0; /* nothing to output in IRQ... */
}
else {
return rtems_termios_refill_transmitter(tty);
1087a2: 89 45 08 mov %eax,0x8(%ebp)
}
}
1087a5: c9 leave
rtems_termios_linesw[tty->t_line].l_start(tty);
}
return 0; /* nothing to output in IRQ... */
}
else {
return rtems_termios_refill_transmitter(tty);
1087a6: e9 df fd ff ff jmp 10858a <rtems_termios_refill_transmitter>
}
}
1087ab: 31 c0 xor %eax,%eax
1087ad: c9 leave <== NOT EXECUTED
1087ae: c3 ret <== NOT EXECUTED
001087af <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)
{
1087af: 55 push %ebp <== NOT EXECUTED
1087b0: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1087b2: 57 push %edi <== NOT EXECUTED
1087b3: 56 push %esi <== NOT EXECUTED
1087b4: 53 push %ebx <== NOT EXECUTED
1087b5: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED
1087b8: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
1087bb: 8b 7d 0c mov 0xc(%ebp),%edi <== NOT EXECUTED
1087be: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
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) {
1087c1: 8b 93 cc 00 00 00 mov 0xcc(%ebx),%edx <== NOT EXECUTED
1087c7: c1 e2 05 shl $0x5,%edx <== NOT EXECUTED
/*
* check to see if rcv wakeup callback was set
*/
if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) {
(*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg);
1087ca: 89 c6 mov %eax,%esi <== NOT EXECUTED
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) {
1087cc: 83 ba c0 5d 12 00 00 cmpl $0x0,0x125dc0(%edx) <== NOT EXECUTED
1087d3: 75 35 jne 10880a <rtems_termios_enqueue_raw_characters+0x5b><== NOT EXECUTED
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,
1087d5: 8d 53 4a lea 0x4a(%ebx),%edx <== NOT EXECUTED
1087d8: 89 55 d0 mov %edx,-0x30(%ebp) <== NOT EXECUTED
/*
* check to see if rcv wakeup callback was set
*/
if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) {
(*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg);
1087db: 8d 4b 30 lea 0x30(%ebx),%ecx <== NOT EXECUTED
1087de: 89 4d d8 mov %ecx,-0x28(%ebp) <== NOT EXECUTED
1087e1: 89 45 e0 mov %eax,-0x20(%ebp) <== NOT EXECUTED
1087e4: c6 45 de 00 movb $0x0,-0x22(%ebp) <== NOT EXECUTED
1087e8: 31 f6 xor %esi,%esi <== NOT EXECUTED
1087ea: e9 1d 02 00 00 jmp 108a0c <rtems_termios_enqueue_raw_characters+0x25d><== NOT EXECUTED
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++;
1087ef: 0f be 17 movsbl (%edi),%edx <== NOT EXECUTED
1087f2: 47 inc %edi <== NOT EXECUTED
rtems_termios_linesw[tty->t_line].l_rint(c,tty);
1087f3: 50 push %eax <== NOT EXECUTED
1087f4: 50 push %eax <== NOT EXECUTED
1087f5: 8b 83 cc 00 00 00 mov 0xcc(%ebx),%eax <== NOT EXECUTED
1087fb: c1 e0 05 shl $0x5,%eax <== NOT EXECUTED
1087fe: 53 push %ebx <== NOT EXECUTED
1087ff: 52 push %edx <== NOT EXECUTED
108800: ff 90 c0 5d 12 00 call *0x125dc0(%eax) <== NOT EXECUTED
108806: 4e dec %esi <== NOT EXECUTED
108807: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
int dropped = 0;
bool flow_rcv = false; /* true, if flow control char received */
rtems_interrupt_level level;
if (rtems_termios_linesw[tty->t_line].l_rint != NULL) {
while (len--) {
10880a: 85 f6 test %esi,%esi <== NOT EXECUTED
10880c: 75 e1 jne 1087ef <rtems_termios_enqueue_raw_characters+0x40><== NOT EXECUTED
}
/*
* check to see if rcv wakeup callback was set
*/
if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) {
10880e: 83 bb e4 00 00 00 00 cmpl $0x0,0xe4(%ebx) <== NOT EXECUTED
108815: 0f 85 0e 02 00 00 jne 108a29 <rtems_termios_enqueue_raw_characters+0x27a><== NOT EXECUTED
10881b: 8b 83 dc 00 00 00 mov 0xdc(%ebx),%eax <== NOT EXECUTED
108821: 85 c0 test %eax,%eax <== NOT EXECUTED
108823: 0f 84 00 02 00 00 je 108a29 <rtems_termios_enqueue_raw_characters+0x27a><== NOT EXECUTED
(*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg);
108829: 51 push %ecx <== NOT EXECUTED
10882a: 51 push %ecx <== NOT EXECUTED
10882b: ff b3 e0 00 00 00 pushl 0xe0(%ebx) <== NOT EXECUTED
108831: 8d 53 30 lea 0x30(%ebx),%edx <== NOT EXECUTED
108834: 52 push %edx <== NOT EXECUTED
108835: ff d0 call *%eax <== NOT EXECUTED
tty->tty_rcvwakeup = 1;
108837: c7 83 e4 00 00 00 01 movl $0x1,0xe4(%ebx) <== NOT EXECUTED
10883e: 00 00 00
108841: e9 de 01 00 00 jmp 108a24 <rtems_termios_enqueue_raw_characters+0x275><== NOT EXECUTED
}
return 0;
}
while (len--) {
c = *buf++;
108846: 8a 07 mov (%edi),%al <== NOT EXECUTED
108848: 88 45 df mov %al,-0x21(%ebp) <== NOT EXECUTED
/* FIXME: implement IXANY: any character restarts output */
/* if incoming XON/XOFF controls outgoing stream: */
if (tty->flow_ctrl & FL_MDXON) {
10884b: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED
108851: f6 c4 02 test $0x2,%ah <== NOT EXECUTED
108854: 74 47 je 10889d <rtems_termios_enqueue_raw_characters+0xee><== NOT EXECUTED
/* if received char is V_STOP and V_START (both are equal value) */
if (c == tty->termios.c_cc[VSTOP]) {
108856: 0f be 45 df movsbl -0x21(%ebp),%eax <== NOT EXECUTED
10885a: 0f b6 53 4a movzbl 0x4a(%ebx),%edx <== NOT EXECUTED
10885e: 39 d0 cmp %edx,%eax <== NOT EXECUTED
108860: 75 28 jne 10888a <rtems_termios_enqueue_raw_characters+0xdb><== NOT EXECUTED
if (c == tty->termios.c_cc[VSTART]) {
108862: 0f b6 53 49 movzbl 0x49(%ebx),%edx <== NOT EXECUTED
108866: 39 d0 cmp %edx,%eax <== NOT EXECUTED
108868: 75 0b jne 108875 <rtems_termios_enqueue_raw_characters+0xc6><== NOT EXECUTED
/* received VSTOP and VSTART==VSTOP? */
/* then toggle "stop output" status */
tty->flow_ctrl = tty->flow_ctrl ^ FL_ORCVXOF;
10886a: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED
108870: 83 f0 10 xor $0x10,%eax <== NOT EXECUTED
108873: eb 09 jmp 10887e <rtems_termios_enqueue_raw_characters+0xcf><== NOT EXECUTED
}
else {
/* VSTOP received (other code than VSTART) */
/* stop output */
tty->flow_ctrl |= FL_ORCVXOF;
108875: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED
10887b: 83 c8 10 or $0x10,%eax <== NOT EXECUTED
10887e: 89 83 b8 00 00 00 mov %eax,0xb8(%ebx) <== NOT EXECUTED
}
}
}
tty->rawInBufDropped += dropped;
rtems_semaphore_release (tty->rawInBuf.Semaphore);
return dropped;
108884: c6 45 de 01 movb $0x1,-0x22(%ebp) <== NOT EXECUTED
108888: eb 19 jmp 1088a3 <rtems_termios_enqueue_raw_characters+0xf4><== NOT EXECUTED
/* stop output */
tty->flow_ctrl |= FL_ORCVXOF;
}
flow_rcv = true;
}
else if (c == tty->termios.c_cc[VSTART]) {
10888a: 0f b6 53 49 movzbl 0x49(%ebx),%edx <== NOT EXECUTED
10888e: 39 d0 cmp %edx,%eax <== NOT EXECUTED
108890: 75 0b jne 10889d <rtems_termios_enqueue_raw_characters+0xee><== NOT EXECUTED
/* VSTART received */
/* restart output */
tty->flow_ctrl &= ~FL_ORCVXOF;
108892: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED
108898: 83 e0 ef and $0xffffffef,%eax <== NOT EXECUTED
10889b: eb e1 jmp 10887e <rtems_termios_enqueue_raw_characters+0xcf><== NOT EXECUTED
flow_rcv = true;
}
}
if (flow_rcv) {
10889d: 80 7d de 00 cmpb $0x0,-0x22(%ebp) <== NOT EXECUTED
1088a1: 74 51 je 1088f4 <rtems_termios_enqueue_raw_characters+0x145><== NOT EXECUTED
/* restart output according to FL_ORCVXOF flag */
if ((tty->flow_ctrl & (FL_ORCVXOF | FL_OSTOP)) == FL_OSTOP) {
1088a3: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED
1088a9: 83 e0 30 and $0x30,%eax <== NOT EXECUTED
1088ac: 83 f8 20 cmp $0x20,%eax <== NOT EXECUTED
1088af: 0f 85 53 01 00 00 jne 108a08 <rtems_termios_enqueue_raw_characters+0x259><== NOT EXECUTED
/* disable interrupts */
rtems_interrupt_disable(level);
1088b5: 9c pushf <== NOT EXECUTED
1088b6: fa cli <== NOT EXECUTED
1088b7: 8f 45 e4 popl -0x1c(%ebp) <== NOT EXECUTED
tty->flow_ctrl &= ~FL_OSTOP;
1088ba: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED
1088c0: 83 e0 df and $0xffffffdf,%eax <== NOT EXECUTED
1088c3: 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) {
1088c9: 83 bb 94 00 00 00 00 cmpl $0x0,0x94(%ebx) <== NOT EXECUTED
1088d0: 74 19 je 1088eb <rtems_termios_enqueue_raw_characters+0x13c><== NOT EXECUTED
/* if chars available, call write function... */
(*tty->device.write)(tty->minor,
&tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail], 1);
1088d2: 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)(tty->minor,
1088d8: 52 push %edx <== NOT EXECUTED
1088d9: 6a 01 push $0x1 <== NOT EXECUTED
1088db: 03 43 7c add 0x7c(%ebx),%eax <== NOT EXECUTED
1088de: 50 push %eax <== NOT EXECUTED
1088df: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED
1088e2: ff 93 a4 00 00 00 call *0xa4(%ebx) <== NOT EXECUTED
1088e8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
&tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail], 1);
}
/* reenable interrupts */
rtems_interrupt_enable(level);
1088eb: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
1088ee: 9d popf <== NOT EXECUTED
1088ef: e9 14 01 00 00 jmp 108a08 <rtems_termios_enqueue_raw_characters+0x259><== NOT EXECUTED
}
}
else {
newTail = (tty->rawInBuf.Tail + 1) % tty->rawInBuf.Size;
1088f4: 8b 43 60 mov 0x60(%ebx),%eax <== NOT EXECUTED
1088f7: 8b 4b 64 mov 0x64(%ebx),%ecx <== NOT EXECUTED
1088fa: 40 inc %eax <== NOT EXECUTED
1088fb: 31 d2 xor %edx,%edx <== NOT EXECUTED
1088fd: f7 f1 div %ecx <== NOT EXECUTED
1088ff: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED
/* if chars_in_buffer > highwater */
rtems_interrupt_disable(level);
108902: 9c pushf <== NOT EXECUTED
108903: fa cli <== NOT EXECUTED
108904: 8f 45 d4 popl -0x2c(%ebp) <== NOT EXECUTED
if ((((newTail - tty->rawInBuf.Head + tty->rawInBuf.Size)
108907: 8b 53 5c mov 0x5c(%ebx),%edx <== NOT EXECUTED
10890a: 8b 43 64 mov 0x64(%ebx),%eax <== NOT EXECUTED
10890d: 8b 4b 64 mov 0x64(%ebx),%ecx <== NOT EXECUTED
108910: 29 d0 sub %edx,%eax <== NOT EXECUTED
108912: 03 45 e4 add -0x1c(%ebp),%eax <== NOT EXECUTED
108915: 31 d2 xor %edx,%edx <== NOT EXECUTED
108917: f7 f1 div %ecx <== NOT EXECUTED
% tty->rawInBuf.Size)
> tty->highwater) &&
108919: 3b 93 c0 00 00 00 cmp 0xc0(%ebx),%edx <== NOT EXECUTED
10891f: 0f 86 98 00 00 00 jbe 1089bd <rtems_termios_enqueue_raw_characters+0x20e><== NOT EXECUTED
!(tty->flow_ctrl & FL_IREQXOF)) {
108925: 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)
10892b: a8 01 test $0x1,%al <== NOT EXECUTED
10892d: 0f 85 8a 00 00 00 jne 1089bd <rtems_termios_enqueue_raw_characters+0x20e><== NOT EXECUTED
% tty->rawInBuf.Size)
> tty->highwater) &&
!(tty->flow_ctrl & FL_IREQXOF)) {
/* incoming data stream should be stopped */
tty->flow_ctrl |= FL_IREQXOF;
108933: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED
108939: 83 c8 01 or $0x1,%eax <== NOT EXECUTED
10893c: 89 83 b8 00 00 00 mov %eax,0xb8(%ebx) <== NOT EXECUTED
if ((tty->flow_ctrl & (FL_MDXOF | FL_ISNTXOF))
108942: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED
108948: 25 02 04 00 00 and $0x402,%eax <== NOT EXECUTED
10894d: 3d 00 04 00 00 cmp $0x400,%eax <== NOT EXECUTED
108952: 75 33 jne 108987 <rtems_termios_enqueue_raw_characters+0x1d8><== NOT EXECUTED
== (FL_MDXOF ) ){
if ((tty->flow_ctrl & FL_OSTOP) ||
108954: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED
10895a: a8 20 test $0x20,%al <== NOT EXECUTED
10895c: 75 09 jne 108967 <rtems_termios_enqueue_raw_characters+0x1b8><== NOT EXECUTED
(tty->rawOutBufState == rob_idle)) {
10895e: 83 bb 94 00 00 00 00 cmpl $0x0,0x94(%ebx) <== NOT EXECUTED
108965: 75 56 jne 1089bd <rtems_termios_enqueue_raw_characters+0x20e><== NOT EXECUTED
/* if tx is stopped due to XOFF or out of data */
/* call write function here */
tty->flow_ctrl |= FL_ISNTXOF;
108967: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED
10896d: 83 c8 02 or $0x2,%eax <== NOT EXECUTED
108970: 89 83 b8 00 00 00 mov %eax,0xb8(%ebx) <== NOT EXECUTED
(*tty->device.write)(tty->minor,
108976: 50 push %eax <== NOT EXECUTED
108977: 6a 01 push $0x1 <== NOT EXECUTED
108979: ff 75 d0 pushl -0x30(%ebp) <== NOT EXECUTED
10897c: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED
10897f: ff 93 a4 00 00 00 call *0xa4(%ebx) <== NOT EXECUTED
108985: eb 33 jmp 1089ba <rtems_termios_enqueue_raw_characters+0x20b><== NOT EXECUTED
(void *)&(tty->termios.c_cc[VSTOP]),
1);
}
}
else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF))
108987: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED
10898d: 25 04 01 00 00 and $0x104,%eax <== NOT EXECUTED
108992: 3d 00 01 00 00 cmp $0x100,%eax <== NOT EXECUTED
108997: 75 24 jne 1089bd <rtems_termios_enqueue_raw_characters+0x20e><== NOT EXECUTED
== (FL_MDRTS ) ) {
tty->flow_ctrl |= FL_IRTSOFF;
108999: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED
10899f: 83 c8 04 or $0x4,%eax <== NOT EXECUTED
1089a2: 89 83 b8 00 00 00 mov %eax,0xb8(%ebx) <== NOT EXECUTED
/* deactivate RTS line */
if (tty->device.stopRemoteTx != NULL) {
1089a8: 8b 83 ac 00 00 00 mov 0xac(%ebx),%eax <== NOT EXECUTED
1089ae: 85 c0 test %eax,%eax <== NOT EXECUTED
1089b0: 74 0b je 1089bd <rtems_termios_enqueue_raw_characters+0x20e><== NOT EXECUTED
tty->device.stopRemoteTx(tty->minor);
1089b2: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1089b5: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED
1089b8: ff d0 call *%eax <== NOT EXECUTED
1089ba: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
}
}
/* reenable interrupts */
rtems_interrupt_enable(level);
1089bd: ff 75 d4 pushl -0x2c(%ebp) <== NOT EXECUTED
1089c0: 9d popf <== NOT EXECUTED
if (newTail == tty->rawInBuf.Head) {
1089c1: 8b 43 5c mov 0x5c(%ebx),%eax <== NOT EXECUTED
1089c4: 39 45 e4 cmp %eax,-0x1c(%ebp) <== NOT EXECUTED
1089c7: 75 03 jne 1089cc <rtems_termios_enqueue_raw_characters+0x21d><== NOT EXECUTED
dropped++;
1089c9: 46 inc %esi <== NOT EXECUTED
1089ca: eb 3c jmp 108a08 <rtems_termios_enqueue_raw_characters+0x259><== NOT EXECUTED
}
else {
tty->rawInBuf.theBuf[newTail] = c;
1089cc: 8b 43 58 mov 0x58(%ebx),%eax <== NOT EXECUTED
1089cf: 8a 4d df mov -0x21(%ebp),%cl <== NOT EXECUTED
1089d2: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
1089d5: 88 0c 10 mov %cl,(%eax,%edx,1) <== NOT EXECUTED
tty->rawInBuf.Tail = newTail;
1089d8: 89 53 60 mov %edx,0x60(%ebx) <== NOT EXECUTED
/*
* check to see if rcv wakeup callback was set
*/
if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) {
1089db: 83 bb e4 00 00 00 00 cmpl $0x0,0xe4(%ebx) <== NOT EXECUTED
1089e2: 75 24 jne 108a08 <rtems_termios_enqueue_raw_characters+0x259><== NOT EXECUTED
1089e4: 8b 83 dc 00 00 00 mov 0xdc(%ebx),%eax <== NOT EXECUTED
1089ea: 85 c0 test %eax,%eax <== NOT EXECUTED
1089ec: 74 1a je 108a08 <rtems_termios_enqueue_raw_characters+0x259><== NOT EXECUTED
(*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg);
1089ee: 51 push %ecx <== NOT EXECUTED
1089ef: 51 push %ecx <== NOT EXECUTED
1089f0: ff b3 e0 00 00 00 pushl 0xe0(%ebx) <== NOT EXECUTED
1089f6: ff 75 d8 pushl -0x28(%ebp) <== NOT EXECUTED
1089f9: ff d0 call *%eax <== NOT EXECUTED
tty->tty_rcvwakeup = 1;
1089fb: c7 83 e4 00 00 00 01 movl $0x1,0xe4(%ebx) <== NOT EXECUTED
108a02: 00 00 00
108a05: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
return 0;
}
while (len--) {
c = *buf++;
108a08: 47 inc %edi <== NOT EXECUTED
108a09: ff 4d e0 decl -0x20(%ebp) <== NOT EXECUTED
tty->tty_rcvwakeup = 1;
}
return 0;
}
while (len--) {
108a0c: 83 7d e0 00 cmpl $0x0,-0x20(%ebp) <== NOT EXECUTED
108a10: 0f 85 30 fe ff ff jne 108846 <rtems_termios_enqueue_raw_characters+0x97><== NOT EXECUTED
tty->tty_rcvwakeup = 1;
}
}
}
}
tty->rawInBufDropped += dropped;
108a16: 01 73 78 add %esi,0x78(%ebx) <== NOT EXECUTED
rtems_semaphore_release (tty->rawInBuf.Semaphore);
108a19: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
108a1c: ff 73 68 pushl 0x68(%ebx) <== NOT EXECUTED
108a1f: e8 c0 1c 00 00 call 10a6e4 <rtems_semaphore_release><== NOT EXECUTED
return dropped;
108a24: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
108a27: eb 02 jmp 108a2b <rtems_termios_enqueue_raw_characters+0x27c><== NOT EXECUTED
108a29: 31 f6 xor %esi,%esi <== NOT EXECUTED
}
108a2b: 89 f0 mov %esi,%eax <== NOT EXECUTED
108a2d: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
108a30: 5b pop %ebx <== NOT EXECUTED
108a31: 5e pop %esi <== NOT EXECUTED
108a32: 5f pop %edi <== NOT EXECUTED
108a33: c9 leave <== NOT EXECUTED
108a34: c3 ret <== NOT EXECUTED
00108514 <rtems_termios_initialize>:
struct rtems_termios_tty *rtems_termios_ttyTail;
rtems_id rtems_termios_ttyMutex;
void
rtems_termios_initialize (void)
{
108514: 55 push %ebp
108515: 89 e5 mov %esp,%ebp
108517: 83 ec 08 sub $0x8,%esp
rtems_status_code sc;
/*
* Create the mutex semaphore for the tty list
*/
if (!rtems_termios_ttyMutex) {
10851a: 83 3d fc 60 12 00 00 cmpl $0x0,0x1260fc
108521: 75 28 jne 10854b <rtems_termios_initialize+0x37>
sc = rtems_semaphore_create (
108523: 83 ec 0c sub $0xc,%esp
108526: 68 fc 60 12 00 push $0x1260fc
10852b: 6a 00 push $0x0
10852d: 6a 54 push $0x54
10852f: 6a 01 push $0x1
108531: 68 69 6d 52 54 push $0x54526d69
108536: e8 91 1e 00 00 call 10a3cc <rtems_semaphore_create>
rtems_build_name ('T', 'R', 'm', 'i'),
1,
RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY,
RTEMS_NO_PRIORITY,
&rtems_termios_ttyMutex);
if (sc != RTEMS_SUCCESSFUL)
10853b: 83 c4 20 add $0x20,%esp
10853e: 85 c0 test %eax,%eax
108540: 74 09 je 10854b <rtems_termios_initialize+0x37><== ALWAYS TAKEN
rtems_fatal_error_occurred (sc);
108542: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
108545: 50 push %eax <== NOT EXECUTED
108546: e8 45 26 00 00 call 10ab90 <rtems_fatal_error_occurred><== NOT EXECUTED
}
}
10854b: c9 leave
10854c: c3 ret
00109384 <rtems_termios_ioctl>:
}
}
rtems_status_code
rtems_termios_ioctl (void *arg)
{
109384: 55 push %ebp
109385: 89 e5 mov %esp,%ebp
109387: 57 push %edi
109388: 56 push %esi
109389: 53 push %ebx
10938a: 83 ec 20 sub $0x20,%esp
rtems_libio_ioctl_args_t *args = arg;
struct rtems_termios_tty *tty = args->iop->data1;
10938d: 8b 55 08 mov 0x8(%ebp),%edx
109390: 8b 02 mov (%edx),%eax
109392: 8b 58 34 mov 0x34(%eax),%ebx
struct ttywakeup *wakeup = (struct ttywakeup *)args->buffer;
109395: 8b 72 08 mov 0x8(%edx),%esi
rtems_status_code sc;
args->ioctl_return = 0;
109398: c7 42 0c 00 00 00 00 movl $0x0,0xc(%edx)
sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
10939f: 6a 00 push $0x0
1093a1: 6a 00 push $0x0
1093a3: ff 73 18 pushl 0x18(%ebx)
1093a6: e8 4d 12 00 00 call 10a5f8 <rtems_semaphore_obtain>
1093ab: 89 45 e4 mov %eax,-0x1c(%ebp)
if (sc != RTEMS_SUCCESSFUL) {
1093ae: 83 c4 10 add $0x10,%esp
1093b1: 85 c0 test %eax,%eax
1093b3: 74 0b je 1093c0 <rtems_termios_ioctl+0x3c><== ALWAYS TAKEN
args->ioctl_return = sc;
1093b5: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
1093b8: 89 41 0c mov %eax,0xc(%ecx) <== NOT EXECUTED
return sc;
1093bb: e9 04 03 00 00 jmp 1096c4 <rtems_termios_ioctl+0x340><== NOT EXECUTED
}
switch (args->command) {
1093c0: 8b 55 08 mov 0x8(%ebp),%edx
1093c3: 8b 42 04 mov 0x4(%edx),%eax
1093c6: 83 f8 04 cmp $0x4,%eax
1093c9: 0f 84 4c 02 00 00 je 10961b <rtems_termios_ioctl+0x297><== NEVER TAKEN
1093cf: 77 10 ja 1093e1 <rtems_termios_ioctl+0x5d><== NEVER TAKEN
1093d1: 83 f8 02 cmp $0x2,%eax
1093d4: 74 77 je 10944d <rtems_termios_ioctl+0xc9>
1093d6: 0f 87 1d 02 00 00 ja 1095f9 <rtems_termios_ioctl+0x275>
1093dc: 48 dec %eax
1093dd: 75 2f jne 10940e <rtems_termios_ioctl+0x8a><== NEVER TAKEN
1093df: eb 55 jmp 109436 <rtems_termios_ioctl+0xb2>
1093e1: 3d 7f 66 04 40 cmp $0x4004667f,%eax <== NOT EXECUTED
1093e6: 0f 84 a4 02 00 00 je 109690 <rtems_termios_ioctl+0x30c><== NOT EXECUTED
1093ec: 77 0a ja 1093f8 <rtems_termios_ioctl+0x74><== NOT EXECUTED
1093ee: 83 f8 05 cmp $0x5,%eax <== NOT EXECUTED
1093f1: 75 1b jne 10940e <rtems_termios_ioctl+0x8a><== NOT EXECUTED
1093f3: e9 0d 02 00 00 jmp 109605 <rtems_termios_ioctl+0x281><== NOT EXECUTED
1093f8: 3d 1a 74 04 40 cmp $0x4004741a,%eax <== NOT EXECUTED
1093fd: 0f 84 7d 02 00 00 je 109680 <rtems_termios_ioctl+0x2fc><== NOT EXECUTED
109403: 3d 1b 74 04 80 cmp $0x8004741b,%eax <== NOT EXECUTED
109408: 0f 84 20 02 00 00 je 10962e <rtems_termios_ioctl+0x2aa><== NOT EXECUTED
default:
if (rtems_termios_linesw[tty->t_line].l_ioctl != NULL) {
10940e: 8b 83 cc 00 00 00 mov 0xcc(%ebx),%eax <== NOT EXECUTED
109414: c1 e0 05 shl $0x5,%eax <== NOT EXECUTED
109417: 8b 80 c8 5d 12 00 mov 0x125dc8(%eax),%eax <== NOT EXECUTED
10941d: c7 45 e4 0a 00 00 00 movl $0xa,-0x1c(%ebp) <== NOT EXECUTED
109424: 85 c0 test %eax,%eax <== NOT EXECUTED
109426: 0f 84 81 02 00 00 je 1096ad <rtems_termios_ioctl+0x329><== NOT EXECUTED
sc = rtems_termios_linesw[tty->t_line].l_ioctl(tty,args);
10942c: 52 push %edx <== NOT EXECUTED
10942d: 52 push %edx <== NOT EXECUTED
10942e: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
109431: e9 3f 02 00 00 jmp 109675 <rtems_termios_ioctl+0x2f1><== NOT EXECUTED
sc = RTEMS_INVALID_NUMBER;
}
break;
case RTEMS_IO_GET_ATTRIBUTES:
*(struct termios *)args->buffer = tty->termios;
109436: 8b 4d 08 mov 0x8(%ebp),%ecx
109439: 8b 41 08 mov 0x8(%ecx),%eax
10943c: 8d 73 30 lea 0x30(%ebx),%esi
10943f: b9 09 00 00 00 mov $0x9,%ecx
109444: 89 c7 mov %eax,%edi
109446: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
break;
109448: e9 60 02 00 00 jmp 1096ad <rtems_termios_ioctl+0x329>
case RTEMS_IO_SET_ATTRIBUTES:
tty->termios = *(struct termios *)args->buffer;
10944d: 8b 45 08 mov 0x8(%ebp),%eax
109450: 8b 70 08 mov 0x8(%eax),%esi
109453: 8d 7b 30 lea 0x30(%ebx),%edi
109456: b9 09 00 00 00 mov $0x9,%ecx
10945b: 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) &&
10945d: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax
109463: f6 c4 02 test $0x2,%ah
109466: 74 57 je 1094bf <rtems_termios_ioctl+0x13b>
109468: f6 43 31 04 testb $0x4,0x31(%ebx)
10946c: 75 51 jne 1094bf <rtems_termios_ioctl+0x13b><== ALWAYS TAKEN
!(tty->termios.c_iflag & IXON)) {
/* clear related flags in flow_ctrl */
tty->flow_ctrl &= ~(FL_MDXON | FL_ORCVXOF);
10946e: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED
109474: 25 ef fd ff ff and $0xfffffdef,%eax <== NOT EXECUTED
109479: 89 83 b8 00 00 00 mov %eax,0xb8(%ebx) <== NOT EXECUTED
/* has output been stopped due to received XOFF? */
if (tty->flow_ctrl & FL_OSTOP) {
10947f: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED
109485: a8 20 test $0x20,%al <== NOT EXECUTED
109487: 74 36 je 1094bf <rtems_termios_ioctl+0x13b><== NOT EXECUTED
/* disable interrupts */
rtems_interrupt_disable(level);
109489: 9c pushf <== NOT EXECUTED
10948a: fa cli <== NOT EXECUTED
10948b: 5e pop %esi <== NOT EXECUTED
tty->flow_ctrl &= ~FL_OSTOP;
10948c: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED
109492: 83 e0 df and $0xffffffdf,%eax <== NOT EXECUTED
109495: 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) {
10949b: 83 bb 94 00 00 00 00 cmpl $0x0,0x94(%ebx) <== NOT EXECUTED
1094a2: 74 19 je 1094bd <rtems_termios_ioctl+0x139><== NOT EXECUTED
/* if chars available, call write function... */
(*tty->device.write)(tty->minor,
&tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1);
1094a4: 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)(tty->minor,
1094aa: 57 push %edi <== NOT EXECUTED
1094ab: 6a 01 push $0x1 <== NOT EXECUTED
1094ad: 03 43 7c add 0x7c(%ebx),%eax <== NOT EXECUTED
1094b0: 50 push %eax <== NOT EXECUTED
1094b1: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED
1094b4: ff 93 a4 00 00 00 call *0xa4(%ebx) <== NOT EXECUTED
1094ba: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
&tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1);
}
/* reenable interrupts */
rtems_interrupt_enable(level);
1094bd: 56 push %esi <== NOT EXECUTED
1094be: 9d popf <== NOT EXECUTED
}
}
/* check for incoming XON/XOFF flow control switched off */
if (( tty->flow_ctrl & FL_MDXOF) &&
1094bf: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax
1094c5: f6 c4 04 test $0x4,%ah
1094c8: 74 24 je 1094ee <rtems_termios_ioctl+0x16a><== ALWAYS TAKEN
1094ca: f6 43 31 10 testb $0x10,0x31(%ebx) <== NOT EXECUTED
1094ce: 75 1e jne 1094ee <rtems_termios_ioctl+0x16a><== NOT EXECUTED
!(tty->termios.c_iflag & IXOFF)) {
/* clear related flags in flow_ctrl */
tty->flow_ctrl &= ~(FL_MDXOF);
1094d0: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED
1094d6: 80 e4 fb and $0xfb,%ah <== NOT EXECUTED
1094d9: 89 83 b8 00 00 00 mov %eax,0xb8(%ebx) <== NOT EXECUTED
/* FIXME: what happens, if we had sent XOFF but not yet XON? */
tty->flow_ctrl &= ~(FL_ISNTXOF);
1094df: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED
1094e5: 83 e0 fd and $0xfffffffd,%eax <== NOT EXECUTED
1094e8: 89 83 b8 00 00 00 mov %eax,0xb8(%ebx) <== NOT EXECUTED
}
/* check for incoming RTS/CTS flow control switched off */
if (( tty->flow_ctrl & FL_MDRTS) &&
1094ee: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax
1094f4: f6 c4 01 test $0x1,%ah
1094f7: 74 43 je 10953c <rtems_termios_ioctl+0x1b8><== ALWAYS TAKEN
1094f9: 83 7b 38 00 cmpl $0x0,0x38(%ebx) <== NOT EXECUTED
1094fd: 78 3d js 10953c <rtems_termios_ioctl+0x1b8><== NOT EXECUTED
!(tty->termios.c_cflag & CRTSCTS)) {
/* clear related flags in flow_ctrl */
tty->flow_ctrl &= ~(FL_MDRTS);
1094ff: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED
109505: 80 e4 fe and $0xfe,%ah <== NOT EXECUTED
109508: 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) &&
10950e: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED
109514: a8 04 test $0x4,%al <== NOT EXECUTED
109516: 74 15 je 10952d <rtems_termios_ioctl+0x1a9><== NOT EXECUTED
(tty->device.startRemoteTx != NULL)) {
109518: 8b 83 b0 00 00 00 mov 0xb0(%ebx),%eax <== NOT EXECUTED
!(tty->termios.c_cflag & CRTSCTS)) {
/* clear related flags in flow_ctrl */
tty->flow_ctrl &= ~(FL_MDRTS);
/* restart remote Tx, if it was stopped */
if ((tty->flow_ctrl & FL_IRTSOFF) &&
10951e: 85 c0 test %eax,%eax <== NOT EXECUTED
109520: 74 0b je 10952d <rtems_termios_ioctl+0x1a9><== NOT EXECUTED
(tty->device.startRemoteTx != NULL)) {
tty->device.startRemoteTx(tty->minor);
109522: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
109525: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED
109528: ff d0 call *%eax <== NOT EXECUTED
10952a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
tty->flow_ctrl &= ~(FL_IRTSOFF);
10952d: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED
109533: 83 e0 fb and $0xfffffffb,%eax <== NOT EXECUTED
109536: 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) {
10953c: 83 7b 38 00 cmpl $0x0,0x38(%ebx)
109540: 79 0f jns 109551 <rtems_termios_ioctl+0x1cd><== ALWAYS TAKEN
tty->flow_ctrl |= FL_MDRTS;
109542: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED
109548: 80 cc 01 or $0x1,%ah <== NOT EXECUTED
10954b: 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) {
109551: f6 43 31 10 testb $0x10,0x31(%ebx)
109555: 74 0f je 109566 <rtems_termios_ioctl+0x1e2><== ALWAYS TAKEN
tty->flow_ctrl |= FL_MDXOF;
109557: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED
10955d: 80 cc 04 or $0x4,%ah <== NOT EXECUTED
109560: 89 83 b8 00 00 00 mov %eax,0xb8(%ebx) <== NOT EXECUTED
}
/* check for outgoing XON/XOF flow control switched on */
if (tty->termios.c_iflag & IXON) {
109566: f6 43 31 04 testb $0x4,0x31(%ebx)
10956a: 74 0f je 10957b <rtems_termios_ioctl+0x1f7><== NEVER TAKEN
tty->flow_ctrl |= FL_MDXON;
10956c: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax
109572: 80 cc 02 or $0x2,%ah
109575: 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) {
10957b: f6 43 3c 02 testb $0x2,0x3c(%ebx)
10957f: 75 39 jne 1095ba <rtems_termios_ioctl+0x236>
tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT;
tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;
}
else {
tty->vtimeTicks = tty->termios.c_cc[VTIME] *
rtems_clock_get_ticks_per_second() / 10;
109581: 0f b6 73 46 movzbl 0x46(%ebx),%esi
109585: e8 2e 0a 00 00 call 109fb8 <rtems_clock_get_ticks_per_second>
tty->rawInBufSemaphoreOptions = RTEMS_WAIT;
tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT;
tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;
}
else {
tty->vtimeTicks = tty->termios.c_cc[VTIME] *
10958a: 0f af c6 imul %esi,%eax
10958d: b9 0a 00 00 00 mov $0xa,%ecx
109592: 31 d2 xor %edx,%edx
109594: f7 f1 div %ecx
109596: 89 43 54 mov %eax,0x54(%ebx)
rtems_clock_get_ticks_per_second() / 10;
if (tty->termios.c_cc[VTIME]) {
109599: 80 7b 46 00 cmpb $0x0,0x46(%ebx)
10959d: 74 15 je 1095b4 <rtems_termios_ioctl+0x230><== ALWAYS TAKEN
tty->rawInBufSemaphoreOptions = RTEMS_WAIT;
10959f: c7 43 6c 00 00 00 00 movl $0x0,0x6c(%ebx) <== NOT EXECUTED
tty->rawInBufSemaphoreTimeout = tty->vtimeTicks;
1095a6: 89 43 70 mov %eax,0x70(%ebx) <== NOT EXECUTED
if (tty->termios.c_cc[VMIN])
1095a9: 80 7b 47 00 cmpb $0x0,0x47(%ebx) <== NOT EXECUTED
1095ad: 75 19 jne 1095c8 <rtems_termios_ioctl+0x244><== NOT EXECUTED
tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;
else
tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks;
1095af: 89 43 74 mov %eax,0x74(%ebx) <== NOT EXECUTED
1095b2: eb 24 jmp 1095d8 <rtems_termios_ioctl+0x254><== NOT EXECUTED
}
else {
if (tty->termios.c_cc[VMIN]) {
1095b4: 80 7b 47 00 cmpb $0x0,0x47(%ebx)
1095b8: 74 17 je 1095d1 <rtems_termios_ioctl+0x24d><== NEVER TAKEN
tty->rawInBufSemaphoreOptions = RTEMS_WAIT;
1095ba: c7 43 6c 00 00 00 00 movl $0x0,0x6c(%ebx)
tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT;
1095c1: c7 43 70 00 00 00 00 movl $0x0,0x70(%ebx)
tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;
1095c8: c7 43 74 00 00 00 00 movl $0x0,0x74(%ebx)
1095cf: eb 07 jmp 1095d8 <rtems_termios_ioctl+0x254>
}
else {
tty->rawInBufSemaphoreOptions = RTEMS_NO_WAIT;
1095d1: c7 43 6c 01 00 00 00 movl $0x1,0x6c(%ebx) <== NOT EXECUTED
}
}
}
if (tty->device.setAttributes)
1095d8: 8b 83 a8 00 00 00 mov 0xa8(%ebx),%eax
1095de: 85 c0 test %eax,%eax
1095e0: 0f 84 c7 00 00 00 je 1096ad <rtems_termios_ioctl+0x329><== NEVER TAKEN
(*tty->device.setAttributes)(tty->minor, &tty->termios);
1095e6: 56 push %esi
1095e7: 56 push %esi
1095e8: 8d 53 30 lea 0x30(%ebx),%edx
1095eb: 52 push %edx
1095ec: ff 73 10 pushl 0x10(%ebx)
1095ef: ff d0 call *%eax
1095f1: 83 c4 10 add $0x10,%esp
1095f4: e9 b4 00 00 00 jmp 1096ad <rtems_termios_ioctl+0x329>
break;
case RTEMS_IO_TCDRAIN:
drainOutput (tty);
1095f9: 89 d8 mov %ebx,%eax
1095fb: e8 56 fa ff ff call 109056 <drainOutput>
break;
109600: e9 a8 00 00 00 jmp 1096ad <rtems_termios_ioctl+0x329>
case RTEMS_IO_SNDWAKEUP:
tty->tty_snd = *wakeup;
109605: 8b 06 mov (%esi),%eax <== NOT EXECUTED
109607: 8b 56 04 mov 0x4(%esi),%edx <== NOT EXECUTED
10960a: 89 83 d4 00 00 00 mov %eax,0xd4(%ebx) <== NOT EXECUTED
109610: 89 93 d8 00 00 00 mov %edx,0xd8(%ebx) <== NOT EXECUTED
break;
109616: e9 92 00 00 00 jmp 1096ad <rtems_termios_ioctl+0x329><== NOT EXECUTED
case RTEMS_IO_RCVWAKEUP:
tty->tty_rcv = *wakeup;
10961b: 8b 06 mov (%esi),%eax <== NOT EXECUTED
10961d: 8b 56 04 mov 0x4(%esi),%edx <== NOT EXECUTED
109620: 89 83 dc 00 00 00 mov %eax,0xdc(%ebx) <== NOT EXECUTED
109626: 89 93 e0 00 00 00 mov %edx,0xe0(%ebx) <== NOT EXECUTED
break;
10962c: eb 7f jmp 1096ad <rtems_termios_ioctl+0x329><== NOT EXECUTED
#if 1 /* FIXME */
case TIOCSETD:
/*
* close old line discipline
*/
if (rtems_termios_linesw[tty->t_line].l_close != NULL) {
10962e: 8b 83 cc 00 00 00 mov 0xcc(%ebx),%eax <== NOT EXECUTED
109634: c1 e0 05 shl $0x5,%eax <== NOT EXECUTED
109637: 8b 80 b4 5d 12 00 mov 0x125db4(%eax),%eax <== NOT EXECUTED
10963d: 85 c0 test %eax,%eax <== NOT EXECUTED
10963f: 74 0c je 10964d <rtems_termios_ioctl+0x2c9><== NOT EXECUTED
sc = rtems_termios_linesw[tty->t_line].l_close(tty);
109641: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
109644: 53 push %ebx <== NOT EXECUTED
109645: ff d0 call *%eax <== NOT EXECUTED
109647: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
10964a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
tty->t_line=*(int*)(args->buffer);
10964d: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
109650: 8b 42 08 mov 0x8(%edx),%eax <== NOT EXECUTED
109653: 8b 00 mov (%eax),%eax <== NOT EXECUTED
109655: 89 83 cc 00 00 00 mov %eax,0xcc(%ebx) <== NOT EXECUTED
tty->t_sc = NULL; /* ensure that no more valid data */
10965b: c7 83 d0 00 00 00 00 movl $0x0,0xd0(%ebx) <== NOT EXECUTED
109662: 00 00 00
/*
* open new line discipline
*/
if (rtems_termios_linesw[tty->t_line].l_open != NULL) {
109665: c1 e0 05 shl $0x5,%eax <== NOT EXECUTED
109668: 8b 80 b0 5d 12 00 mov 0x125db0(%eax),%eax <== NOT EXECUTED
10966e: 85 c0 test %eax,%eax <== NOT EXECUTED
109670: 74 3b je 1096ad <rtems_termios_ioctl+0x329><== NOT EXECUTED
sc = rtems_termios_linesw[tty->t_line].l_open(tty);
109672: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
109675: 53 push %ebx <== NOT EXECUTED
109676: ff d0 call *%eax <== NOT EXECUTED
109678: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
10967b: e9 71 ff ff ff jmp 1095f1 <rtems_termios_ioctl+0x26d><== NOT EXECUTED
}
break;
case TIOCGETD:
*(int*)(args->buffer)=tty->t_line;
109680: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
109683: 8b 41 08 mov 0x8(%ecx),%eax <== NOT EXECUTED
109686: 8b 93 cc 00 00 00 mov 0xcc(%ebx),%edx <== NOT EXECUTED
10968c: 89 10 mov %edx,(%eax) <== NOT EXECUTED
break;
10968e: eb 1d jmp 1096ad <rtems_termios_ioctl+0x329><== NOT EXECUTED
#endif
case FIONREAD:
{
int rawnc = tty->rawInBuf.Tail - tty->rawInBuf.Head;
109690: 8b 43 60 mov 0x60(%ebx),%eax <== NOT EXECUTED
109693: 8b 53 5c mov 0x5c(%ebx),%edx <== NOT EXECUTED
if ( rawnc < 0 )
109696: 29 d0 sub %edx,%eax <== NOT EXECUTED
109698: 79 05 jns 10969f <rtems_termios_ioctl+0x31b><== NOT EXECUTED
rawnc += tty->rawInBuf.Size;
10969a: 8b 53 64 mov 0x64(%ebx),%edx <== NOT EXECUTED
10969d: 01 d0 add %edx,%eax <== NOT EXECUTED
/* Half guess that this is the right operation */
*(int *)args->buffer = tty->ccount - tty->cindex + rawnc;
10969f: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
1096a2: 8b 51 08 mov 0x8(%ecx),%edx <== NOT EXECUTED
1096a5: 03 43 20 add 0x20(%ebx),%eax <== NOT EXECUTED
1096a8: 2b 43 24 sub 0x24(%ebx),%eax <== NOT EXECUTED
1096ab: 89 02 mov %eax,(%edx) <== NOT EXECUTED
}
break;
}
rtems_semaphore_release (tty->osem);
1096ad: 83 ec 0c sub $0xc,%esp
1096b0: ff 73 18 pushl 0x18(%ebx)
1096b3: e8 2c 10 00 00 call 10a6e4 <rtems_semaphore_release>
args->ioctl_return = sc;
1096b8: 8b 55 e4 mov -0x1c(%ebp),%edx
1096bb: 8b 45 08 mov 0x8(%ebp),%eax
1096be: 89 50 0c mov %edx,0xc(%eax)
return sc;
1096c1: 83 c4 10 add $0x10,%esp
}
1096c4: 8b 45 e4 mov -0x1c(%ebp),%eax
1096c7: 8d 65 f4 lea -0xc(%ebp),%esp
1096ca: 5b pop %ebx
1096cb: 5e pop %esi
1096cc: 5f pop %edi
1096cd: c9 leave
1096ce: c3 ret
0010984c <rtems_termios_open>:
rtems_device_major_number major,
rtems_device_minor_number minor,
void *arg,
const rtems_termios_callbacks *callbacks
)
{
10984c: 55 push %ebp
10984d: 89 e5 mov %esp,%ebp
10984f: 57 push %edi
109850: 56 push %esi
109851: 53 push %ebx
109852: 83 ec 20 sub $0x20,%esp
109855: 8b 75 14 mov 0x14(%ebp),%esi
struct rtems_termios_tty *tty;
/*
* See if the device has already been opened
*/
sc = rtems_semaphore_obtain (rtems_termios_ttyMutex,
109858: 6a 00 push $0x0
10985a: 6a 00 push $0x0
10985c: ff 35 fc 60 12 00 pushl 0x1260fc
109862: e8 91 0d 00 00 call 10a5f8 <rtems_semaphore_obtain>
109867: 89 45 e4 mov %eax,-0x1c(%ebp)
RTEMS_WAIT, RTEMS_NO_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
10986a: 83 c4 10 add $0x10,%esp
10986d: 85 c0 test %eax,%eax
10986f: 0f 85 cf 03 00 00 jne 109c44 <rtems_termios_open+0x3f8><== NEVER TAKEN
return sc;
for (tty = rtems_termios_ttyHead ; tty != NULL ; tty = tty->forw) {
109875: 8b 15 04 61 12 00 mov 0x126104,%edx
10987b: eb 16 jmp 109893 <rtems_termios_open+0x47>
if ((tty->major == major) && (tty->minor == minor))
10987d: 8b 45 08 mov 0x8(%ebp),%eax
109880: 39 42 0c cmp %eax,0xc(%edx)
109883: 75 0c jne 109891 <rtems_termios_open+0x45>
109885: 8b 4d 0c mov 0xc(%ebp),%ecx
109888: 39 4a 10 cmp %ecx,0x10(%edx)
10988b: 0f 84 24 03 00 00 je 109bb5 <rtems_termios_open+0x369><== 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) {
109891: 8b 12 mov (%edx),%edx
109893: 85 d2 test %edx,%edx
109895: 75 e6 jne 10987d <rtems_termios_open+0x31>
109897: e9 b3 03 00 00 jmp 109c4f <rtems_termios_open+0x403>
/*
* Create a new device
*/
tty = calloc (1, sizeof (struct rtems_termios_tty));
if (tty == NULL) {
rtems_semaphore_release (rtems_termios_ttyMutex);
10989c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10989f: e9 98 00 00 00 jmp 10993c <rtems_termios_open+0xf0><== NOT EXECUTED
return RTEMS_NO_MEMORY;
}
/*
* allocate raw input buffer
*/
tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE;
1098a4: a1 48 3f 12 00 mov 0x123f48,%eax
1098a9: 89 42 64 mov %eax,0x64(%edx)
tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size);
1098ac: 8b 42 64 mov 0x64(%edx),%eax
1098af: 83 ec 0c sub $0xc,%esp
1098b2: 50 push %eax
1098b3: 89 55 e0 mov %edx,-0x20(%ebp)
1098b6: e8 81 e0 ff ff call 10793c <malloc>
1098bb: 8b 55 e0 mov -0x20(%ebp),%edx
1098be: 89 42 58 mov %eax,0x58(%edx)
if (tty->rawInBuf.theBuf == NULL) {
1098c1: 83 c4 10 add $0x10,%esp
1098c4: 85 c0 test %eax,%eax
1098c6: 75 05 jne 1098cd <rtems_termios_open+0x81><== ALWAYS TAKEN
free(tty);
1098c8: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1098cb: eb 68 jmp 109935 <rtems_termios_open+0xe9><== NOT EXECUTED
return RTEMS_NO_MEMORY;
}
/*
* allocate raw output buffer
*/
tty->rawOutBuf.Size = RAW_OUTPUT_BUFFER_SIZE;
1098cd: a1 4c 3f 12 00 mov 0x123f4c,%eax
1098d2: 89 82 88 00 00 00 mov %eax,0x88(%edx)
tty->rawOutBuf.theBuf = malloc (tty->rawOutBuf.Size);
1098d8: 8b 82 88 00 00 00 mov 0x88(%edx),%eax
1098de: 83 ec 0c sub $0xc,%esp
1098e1: 50 push %eax
1098e2: 89 55 e0 mov %edx,-0x20(%ebp)
1098e5: e8 52 e0 ff ff call 10793c <malloc>
1098ea: 8b 55 e0 mov -0x20(%ebp),%edx
1098ed: 89 42 7c mov %eax,0x7c(%edx)
if (tty->rawOutBuf.theBuf == NULL) {
1098f0: 83 c4 10 add $0x10,%esp
1098f3: 85 c0 test %eax,%eax
1098f5: 75 05 jne 1098fc <rtems_termios_open+0xb0><== ALWAYS TAKEN
free((void *)(tty->rawInBuf.theBuf));
1098f7: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1098fa: eb 2d jmp 109929 <rtems_termios_open+0xdd><== NOT EXECUTED
return RTEMS_NO_MEMORY;
}
/*
* allocate cooked buffer
*/
tty->cbuf = malloc (CBUFSIZE);
1098fc: 83 ec 0c sub $0xc,%esp
1098ff: ff 35 44 3f 12 00 pushl 0x123f44
109905: 89 55 e0 mov %edx,-0x20(%ebp)
109908: e8 2f e0 ff ff call 10793c <malloc>
10990d: 8b 55 e0 mov -0x20(%ebp),%edx
109910: 89 42 1c mov %eax,0x1c(%edx)
if (tty->cbuf == NULL) {
109913: 83 c4 10 add $0x10,%esp
109916: 85 c0 test %eax,%eax
109918: 75 39 jne 109953 <rtems_termios_open+0x107><== ALWAYS TAKEN
free((void *)(tty->rawOutBuf.theBuf));
10991a: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10991d: ff 72 7c pushl 0x7c(%edx) <== NOT EXECUTED
109920: e8 77 dd ff ff call 10769c <free> <== NOT EXECUTED
free((void *)(tty->rawInBuf.theBuf));
109925: 5b pop %ebx <== NOT EXECUTED
109926: 8b 55 e0 mov -0x20(%ebp),%edx <== NOT EXECUTED
109929: ff 72 58 pushl 0x58(%edx) <== NOT EXECUTED
10992c: e8 6b dd ff ff call 10769c <free> <== NOT EXECUTED
free(tty);
109931: 59 pop %ecx <== NOT EXECUTED
109932: 8b 55 e0 mov -0x20(%ebp),%edx <== NOT EXECUTED
109935: 52 push %edx <== NOT EXECUTED
109936: e8 61 dd ff ff call 10769c <free> <== NOT EXECUTED
rtems_semaphore_release (rtems_termios_ttyMutex);
10993b: 5a pop %edx <== NOT EXECUTED
10993c: ff 35 fc 60 12 00 pushl 0x1260fc <== NOT EXECUTED
109942: e8 9d 0d 00 00 call 10a6e4 <rtems_semaphore_release><== NOT EXECUTED
109947: c7 45 e4 1a 00 00 00 movl $0x1a,-0x1c(%ebp) <== NOT EXECUTED
10994e: e9 ee 02 00 00 jmp 109c41 <rtems_termios_open+0x3f5><== NOT EXECUTED
return RTEMS_NO_MEMORY;
}
/*
* Initialize wakeup callbacks
*/
tty->tty_snd.sw_pfn = NULL;
109953: c7 82 d4 00 00 00 00 movl $0x0,0xd4(%edx)
10995a: 00 00 00
tty->tty_snd.sw_arg = NULL;
10995d: c7 82 d8 00 00 00 00 movl $0x0,0xd8(%edx)
109964: 00 00 00
tty->tty_rcv.sw_pfn = NULL;
109967: c7 82 dc 00 00 00 00 movl $0x0,0xdc(%edx)
10996e: 00 00 00
tty->tty_rcv.sw_arg = NULL;
109971: c7 82 e0 00 00 00 00 movl $0x0,0xe0(%edx)
109978: 00 00 00
tty->tty_rcvwakeup = 0;
10997b: c7 82 e4 00 00 00 00 movl $0x0,0xe4(%edx)
109982: 00 00 00
/*
* link tty
*/
tty->forw = rtems_termios_ttyHead;
109985: a1 04 61 12 00 mov 0x126104,%eax
10998a: 89 02 mov %eax,(%edx)
tty->back = NULL;
10998c: c7 42 04 00 00 00 00 movl $0x0,0x4(%edx)
if (rtems_termios_ttyHead != NULL)
109993: 85 c0 test %eax,%eax
109995: 74 03 je 10999a <rtems_termios_open+0x14e>
rtems_termios_ttyHead->back = tty;
109997: 89 50 04 mov %edx,0x4(%eax)
rtems_termios_ttyHead = tty;
10999a: 89 1d 04 61 12 00 mov %ebx,0x126104
if (rtems_termios_ttyTail == NULL)
1099a0: 83 3d 00 61 12 00 00 cmpl $0x0,0x126100
1099a7: 75 06 jne 1099af <rtems_termios_open+0x163>
rtems_termios_ttyTail = tty;
1099a9: 89 1d 00 61 12 00 mov %ebx,0x126100
tty->minor = minor;
1099af: 8b 45 0c mov 0xc(%ebp),%eax
1099b2: 89 43 10 mov %eax,0x10(%ebx)
tty->major = major;
1099b5: 8b 4d 08 mov 0x8(%ebp),%ecx
1099b8: 89 4b 0c mov %ecx,0xc(%ebx)
/*
* Set up mutex semaphores
*/
sc = rtems_semaphore_create (
1099bb: 83 ec 0c sub $0xc,%esp
1099be: 8d 43 14 lea 0x14(%ebx),%eax
1099c1: 50 push %eax
1099c2: 6a 00 push $0x0
1099c4: 6a 54 push $0x54
1099c6: 6a 01 push $0x1
1099c8: 0f be 05 50 3f 12 00 movsbl 0x123f50,%eax
1099cf: 0d 00 69 52 54 or $0x54526900,%eax
1099d4: 50 push %eax
1099d5: 89 55 e0 mov %edx,-0x20(%ebp)
1099d8: e8 ef 09 00 00 call 10a3cc <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)
1099dd: 83 c4 20 add $0x20,%esp
1099e0: 85 c0 test %eax,%eax
1099e2: 8b 55 e0 mov -0x20(%ebp),%edx
1099e5: 0f 85 3f 02 00 00 jne 109c2a <rtems_termios_open+0x3de><== NEVER TAKEN
rtems_fatal_error_occurred (sc);
sc = rtems_semaphore_create (
1099eb: 83 ec 0c sub $0xc,%esp
1099ee: 8d 43 18 lea 0x18(%ebx),%eax
1099f1: 50 push %eax
1099f2: 6a 00 push $0x0
1099f4: 6a 54 push $0x54
1099f6: 6a 01 push $0x1
1099f8: 0f be 05 50 3f 12 00 movsbl 0x123f50,%eax
1099ff: 0d 00 6f 52 54 or $0x54526f00,%eax
109a04: 50 push %eax
109a05: 89 55 e0 mov %edx,-0x20(%ebp)
109a08: e8 bf 09 00 00 call 10a3cc <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)
109a0d: 83 c4 20 add $0x20,%esp
109a10: 85 c0 test %eax,%eax
109a12: 8b 55 e0 mov -0x20(%ebp),%edx
109a15: 0f 85 0f 02 00 00 jne 109c2a <rtems_termios_open+0x3de><== NEVER TAKEN
rtems_fatal_error_occurred (sc);
sc = rtems_semaphore_create (
109a1b: 83 ec 0c sub $0xc,%esp
109a1e: 8d 83 8c 00 00 00 lea 0x8c(%ebx),%eax
109a24: 50 push %eax
109a25: 6a 00 push $0x0
109a27: 6a 20 push $0x20
109a29: 6a 00 push $0x0
109a2b: 0f be 05 50 3f 12 00 movsbl 0x123f50,%eax
109a32: 0d 00 78 52 54 or $0x54527800,%eax
109a37: 50 push %eax
109a38: 89 55 e0 mov %edx,-0x20(%ebp)
109a3b: e8 8c 09 00 00 call 10a3cc <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)
109a40: 83 c4 20 add $0x20,%esp
109a43: 85 c0 test %eax,%eax
109a45: 8b 55 e0 mov -0x20(%ebp),%edx
109a48: 0f 85 dc 01 00 00 jne 109c2a <rtems_termios_open+0x3de><== NEVER TAKEN
rtems_fatal_error_occurred (sc);
tty->rawOutBufState = rob_idle;
109a4e: c7 83 94 00 00 00 00 movl $0x0,0x94(%ebx)
109a55: 00 00 00
/*
* Set callbacks
*/
tty->device = *callbacks;
109a58: 8d bb 98 00 00 00 lea 0x98(%ebx),%edi
109a5e: b9 08 00 00 00 mov $0x8,%ecx
109a63: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
/*
* Create I/O tasks
*/
if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {
109a65: 83 bb b4 00 00 00 02 cmpl $0x2,0xb4(%ebx)
109a6c: 75 74 jne 109ae2 <rtems_termios_open+0x296><== ALWAYS TAKEN
sc = rtems_task_create (
109a6e: 50 push %eax <== NOT EXECUTED
109a6f: 50 push %eax <== NOT EXECUTED
109a70: 8d 83 c8 00 00 00 lea 0xc8(%ebx),%eax <== NOT EXECUTED
109a76: 50 push %eax <== NOT EXECUTED
109a77: 6a 00 push $0x0 <== NOT EXECUTED
109a79: 68 00 05 00 00 push $0x500 <== NOT EXECUTED
109a7e: 68 00 04 00 00 push $0x400 <== NOT EXECUTED
109a83: 6a 0a push $0xa <== NOT EXECUTED
109a85: 0f be 05 50 3f 12 00 movsbl 0x123f50,%eax <== NOT EXECUTED
109a8c: 0d 00 54 78 54 or $0x54785400,%eax <== NOT EXECUTED
109a91: 50 push %eax <== NOT EXECUTED
109a92: 89 55 e0 mov %edx,-0x20(%ebp) <== NOT EXECUTED
109a95: e8 da 0c 00 00 call 10a774 <rtems_task_create> <== NOT EXECUTED
TERMIOS_TXTASK_STACKSIZE,
RTEMS_NO_PREEMPT | RTEMS_NO_TIMESLICE |
RTEMS_NO_ASR,
RTEMS_NO_FLOATING_POINT | RTEMS_LOCAL,
&tty->txTaskId);
if (sc != RTEMS_SUCCESSFUL)
109a9a: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
109a9d: 85 c0 test %eax,%eax <== NOT EXECUTED
109a9f: 8b 55 e0 mov -0x20(%ebp),%edx <== NOT EXECUTED
109aa2: 0f 85 82 01 00 00 jne 109c2a <rtems_termios_open+0x3de><== NOT EXECUTED
rtems_fatal_error_occurred (sc);
sc = rtems_task_create (
109aa8: 57 push %edi <== NOT EXECUTED
109aa9: 57 push %edi <== NOT EXECUTED
109aaa: 8d 83 c4 00 00 00 lea 0xc4(%ebx),%eax <== NOT EXECUTED
109ab0: 50 push %eax <== NOT EXECUTED
109ab1: 6a 00 push $0x0 <== NOT EXECUTED
109ab3: 68 00 05 00 00 push $0x500 <== NOT EXECUTED
109ab8: 68 00 04 00 00 push $0x400 <== NOT EXECUTED
109abd: 6a 09 push $0x9 <== NOT EXECUTED
109abf: 0f be 05 50 3f 12 00 movsbl 0x123f50,%eax <== NOT EXECUTED
109ac6: 0d 00 54 78 52 or $0x52785400,%eax <== NOT EXECUTED
109acb: 50 push %eax <== NOT EXECUTED
109acc: 89 55 e0 mov %edx,-0x20(%ebp) <== NOT EXECUTED
109acf: e8 a0 0c 00 00 call 10a774 <rtems_task_create> <== NOT EXECUTED
TERMIOS_RXTASK_STACKSIZE,
RTEMS_NO_PREEMPT | RTEMS_NO_TIMESLICE |
RTEMS_NO_ASR,
RTEMS_NO_FLOATING_POINT | RTEMS_LOCAL,
&tty->rxTaskId);
if (sc != RTEMS_SUCCESSFUL)
109ad4: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
109ad7: 85 c0 test %eax,%eax <== NOT EXECUTED
109ad9: 8b 55 e0 mov -0x20(%ebp),%edx <== NOT EXECUTED
109adc: 0f 85 48 01 00 00 jne 109c2a <rtems_termios_open+0x3de><== NOT EXECUTED
rtems_fatal_error_occurred (sc);
}
if ((tty->device.pollRead == NULL) ||
109ae2: 83 bb a0 00 00 00 00 cmpl $0x0,0xa0(%ebx)
109ae9: 74 09 je 109af4 <rtems_termios_open+0x2a8>
(tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)){
109aeb: 83 bb b4 00 00 00 02 cmpl $0x2,0xb4(%ebx)
109af2: 75 30 jne 109b24 <rtems_termios_open+0x2d8><== ALWAYS TAKEN
sc = rtems_semaphore_create (
109af4: 83 ec 0c sub $0xc,%esp
109af7: 8d 43 68 lea 0x68(%ebx),%eax
109afa: 50 push %eax
109afb: 6a 00 push $0x0
109afd: 6a 24 push $0x24
109aff: 6a 00 push $0x0
109b01: 0f be 05 50 3f 12 00 movsbl 0x123f50,%eax
109b08: 0d 00 72 52 54 or $0x54527200,%eax
109b0d: 50 push %eax
109b0e: 89 55 e0 mov %edx,-0x20(%ebp)
109b11: e8 b6 08 00 00 call 10a3cc <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)
109b16: 83 c4 20 add $0x20,%esp
109b19: 85 c0 test %eax,%eax
109b1b: 8b 55 e0 mov -0x20(%ebp),%edx
109b1e: 0f 85 06 01 00 00 jne 109c2a <rtems_termios_open+0x3de><== NEVER TAKEN
}
/*
* Set default parameters
*/
tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL;
109b24: c7 43 30 02 25 00 00 movl $0x2502,0x30(%ebx)
tty->termios.c_oflag = OPOST | ONLCR | XTABS;
109b2b: c7 43 34 05 18 00 00 movl $0x1805,0x34(%ebx)
tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL;
109b32: c7 43 38 bd 08 00 00 movl $0x8bd,0x38(%ebx)
tty->termios.c_lflag = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL;
109b39: c7 43 3c 3b 82 00 00 movl $0x823b,0x3c(%ebx)
tty->termios.c_cc[VINTR] = '\003';
109b40: c6 43 41 03 movb $0x3,0x41(%ebx)
tty->termios.c_cc[VQUIT] = '\034';
109b44: c6 43 42 1c movb $0x1c,0x42(%ebx)
tty->termios.c_cc[VERASE] = '\177';
109b48: c6 43 43 7f movb $0x7f,0x43(%ebx)
tty->termios.c_cc[VKILL] = '\025';
109b4c: c6 43 44 15 movb $0x15,0x44(%ebx)
tty->termios.c_cc[VEOF] = '\004';
109b50: c6 43 45 04 movb $0x4,0x45(%ebx)
tty->termios.c_cc[VEOL] = '\000';
109b54: c6 43 4c 00 movb $0x0,0x4c(%ebx)
tty->termios.c_cc[VEOL2] = '\000';
109b58: c6 43 51 00 movb $0x0,0x51(%ebx)
tty->termios.c_cc[VSTART] = '\021';
109b5c: c6 43 49 11 movb $0x11,0x49(%ebx)
tty->termios.c_cc[VSTOP] = '\023';
109b60: c6 43 4a 13 movb $0x13,0x4a(%ebx)
tty->termios.c_cc[VSUSP] = '\032';
109b64: c6 43 4b 1a movb $0x1a,0x4b(%ebx)
tty->termios.c_cc[VREPRINT] = '\022';
109b68: c6 43 4d 12 movb $0x12,0x4d(%ebx)
tty->termios.c_cc[VDISCARD] = '\017';
109b6c: c6 43 4e 0f movb $0xf,0x4e(%ebx)
tty->termios.c_cc[VWERASE] = '\027';
109b70: c6 43 4f 17 movb $0x17,0x4f(%ebx)
tty->termios.c_cc[VLNEXT] = '\026';
109b74: c6 43 50 16 movb $0x16,0x50(%ebx)
/* start with no flow control, clear flow control flags */
tty->flow_ctrl = 0;
109b78: c7 83 b8 00 00 00 00 movl $0x0,0xb8(%ebx)
109b7f: 00 00 00
/*
* set low/highwater mark for XON/XOFF support
*/
tty->lowwater = tty->rawInBuf.Size * 1/2;
109b82: 8b 43 64 mov 0x64(%ebx),%eax
109b85: d1 e8 shr %eax
109b87: 89 83 bc 00 00 00 mov %eax,0xbc(%ebx)
tty->highwater = tty->rawInBuf.Size * 3/4;
109b8d: 8b 43 64 mov 0x64(%ebx),%eax
109b90: 8d 04 40 lea (%eax,%eax,2),%eax
109b93: c1 e8 02 shr $0x2,%eax
109b96: 89 83 c0 00 00 00 mov %eax,0xc0(%ebx)
/*
* Bump name characer
*/
if (c++ == 'z')
109b9c: a0 50 3f 12 00 mov 0x123f50,%al
109ba1: 8d 48 01 lea 0x1(%eax),%ecx
109ba4: 88 0d 50 3f 12 00 mov %cl,0x123f50
109baa: 3c 7a cmp $0x7a,%al
109bac: 75 07 jne 109bb5 <rtems_termios_open+0x369><== ALWAYS TAKEN
c = 'a';
109bae: c6 05 50 3f 12 00 61 movb $0x61,0x123f50 <== NOT EXECUTED
}
args->iop->data1 = tty;
109bb5: 8b 4d 10 mov 0x10(%ebp),%ecx
109bb8: 8b 01 mov (%ecx),%eax
109bba: 89 50 34 mov %edx,0x34(%eax)
if (!tty->refcount++) {
109bbd: 8b 42 08 mov 0x8(%edx),%eax
109bc0: 8d 48 01 lea 0x1(%eax),%ecx
109bc3: 89 4a 08 mov %ecx,0x8(%edx)
109bc6: 85 c0 test %eax,%eax
109bc8: 75 69 jne 109c33 <rtems_termios_open+0x3e7>
if (tty->device.firstOpen)
109bca: 8b 82 98 00 00 00 mov 0x98(%edx),%eax
109bd0: 85 c0 test %eax,%eax
109bd2: 74 15 je 109be9 <rtems_termios_open+0x39d>
(*tty->device.firstOpen)(major, minor, arg);
109bd4: 56 push %esi
109bd5: ff 75 10 pushl 0x10(%ebp)
109bd8: ff 75 0c pushl 0xc(%ebp)
109bdb: ff 75 08 pushl 0x8(%ebp)
109bde: 89 55 e0 mov %edx,-0x20(%ebp)
109be1: ff d0 call *%eax
109be3: 83 c4 10 add $0x10,%esp
109be6: 8b 55 e0 mov -0x20(%ebp),%edx
/*
* start I/O tasks, if needed
*/
if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {
109be9: 83 ba b4 00 00 00 02 cmpl $0x2,0xb4(%edx)
109bf0: 75 41 jne 109c33 <rtems_termios_open+0x3e7><== ALWAYS TAKEN
sc = rtems_task_start(tty->rxTaskId,
109bf2: 53 push %ebx <== NOT EXECUTED
109bf3: 52 push %edx <== NOT EXECUTED
109bf4: 68 d4 9c 10 00 push $0x109cd4 <== NOT EXECUTED
109bf9: ff b2 c4 00 00 00 pushl 0xc4(%edx) <== NOT EXECUTED
109bff: 89 55 e0 mov %edx,-0x20(%ebp) <== NOT EXECUTED
109c02: e8 d9 0d 00 00 call 10a9e0 <rtems_task_start> <== NOT EXECUTED
rtems_termios_rxdaemon,
(rtems_task_argument)tty);
if (sc != RTEMS_SUCCESSFUL)
109c07: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
109c0a: 85 c0 test %eax,%eax <== NOT EXECUTED
109c0c: 8b 55 e0 mov -0x20(%ebp),%edx <== NOT EXECUTED
109c0f: 75 19 jne 109c2a <rtems_termios_open+0x3de><== NOT EXECUTED
rtems_fatal_error_occurred (sc);
sc = rtems_task_start(tty->txTaskId,
109c11: 51 push %ecx <== NOT EXECUTED
109c12: 52 push %edx <== NOT EXECUTED
109c13: 68 71 9c 10 00 push $0x109c71 <== NOT EXECUTED
109c18: ff b2 c8 00 00 00 pushl 0xc8(%edx) <== NOT EXECUTED
109c1e: e8 bd 0d 00 00 call 10a9e0 <rtems_task_start> <== NOT EXECUTED
rtems_termios_txdaemon,
(rtems_task_argument)tty);
if (sc != RTEMS_SUCCESSFUL)
109c23: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
109c26: 85 c0 test %eax,%eax <== NOT EXECUTED
109c28: 74 09 je 109c33 <rtems_termios_open+0x3e7><== NOT EXECUTED
rtems_fatal_error_occurred (sc);
109c2a: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
109c2d: 50 push %eax <== NOT EXECUTED
109c2e: e8 5d 0f 00 00 call 10ab90 <rtems_fatal_error_occurred><== NOT EXECUTED
}
}
rtems_semaphore_release (rtems_termios_ttyMutex);
109c33: 83 ec 0c sub $0xc,%esp
109c36: ff 35 fc 60 12 00 pushl 0x1260fc
109c3c: e8 a3 0a 00 00 call 10a6e4 <rtems_semaphore_release>
return RTEMS_SUCCESSFUL;
109c41: 83 c4 10 add $0x10,%esp
}
109c44: 8b 45 e4 mov -0x1c(%ebp),%eax
109c47: 8d 65 f4 lea -0xc(%ebp),%esp
109c4a: 5b pop %ebx
109c4b: 5e pop %esi
109c4c: 5f pop %edi
109c4d: c9 leave
109c4e: c3 ret
static char c = 'a';
/*
* Create a new device
*/
tty = calloc (1, sizeof (struct rtems_termios_tty));
109c4f: 52 push %edx
109c50: 52 push %edx
109c51: 68 e8 00 00 00 push $0xe8
109c56: 6a 01 push $0x1
109c58: e8 5f d8 ff ff call 1074bc <calloc>
109c5d: 89 c2 mov %eax,%edx
109c5f: 89 c3 mov %eax,%ebx
if (tty == NULL) {
109c61: 83 c4 10 add $0x10,%esp
109c64: 85 c0 test %eax,%eax
109c66: 0f 85 38 fc ff ff jne 1098a4 <rtems_termios_open+0x58><== ALWAYS TAKEN
109c6c: e9 2b fc ff ff jmp 10989c <rtems_termios_open+0x50><== NOT EXECUTED
00108a35 <rtems_termios_puts>:
* Send characters to device-specific code
*/
void
rtems_termios_puts (
const void *_buf, int len, struct rtems_termios_tty *tty)
{
108a35: 55 push %ebp
108a36: 89 e5 mov %esp,%ebp
108a38: 57 push %edi
108a39: 56 push %esi
108a3a: 53 push %ebx
108a3b: 83 ec 3c sub $0x3c,%esp
108a3e: 8b 45 08 mov 0x8(%ebp),%eax
108a41: 8b 75 0c mov 0xc(%ebp),%esi
108a44: 8b 5d 10 mov 0x10(%ebp),%ebx
const unsigned char *buf = _buf;
108a47: 89 c7 mov %eax,%edi
unsigned int newHead;
rtems_interrupt_level level;
rtems_status_code sc;
if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) {
108a49: 83 bb b4 00 00 00 00 cmpl $0x0,0xb4(%ebx)
108a50: 75 1b jne 108a6d <rtems_termios_puts+0x38><== ALWAYS TAKEN
(*tty->device.write)(tty->minor, (void *)buf, len);
108a52: 89 75 10 mov %esi,0x10(%ebp) <== NOT EXECUTED
108a55: 89 45 0c mov %eax,0xc(%ebp) <== NOT EXECUTED
108a58: 8b 43 10 mov 0x10(%ebx),%eax <== NOT EXECUTED
108a5b: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED
108a5e: 8b 83 a4 00 00 00 mov 0xa4(%ebx),%eax <== NOT EXECUTED
tty->rawOutBufState = rob_busy;
}
rtems_interrupt_enable (level);
len--;
}
}
108a64: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
108a67: 5b pop %ebx <== NOT EXECUTED
108a68: 5e pop %esi <== NOT EXECUTED
108a69: 5f pop %edi <== NOT EXECUTED
108a6a: c9 leave <== NOT EXECUTED
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);
108a6b: ff e0 jmp *%eax <== NOT EXECUTED
return;
}
newHead = tty->rawOutBuf.Head;
108a6d: 8b 83 80 00 00 00 mov 0x80(%ebx),%eax
108a73: 89 45 e4 mov %eax,-0x1c(%ebp)
while (len) {
108a76: e9 ca 00 00 00 jmp 108b45 <rtems_termios_puts+0x110>
* len -= ncopy
*
* To minimize latency, the memcpy should be done
* with interrupts enabled.
*/
newHead = (newHead + 1) % tty->rawOutBuf.Size;
108a7b: 8b 45 e4 mov -0x1c(%ebp),%eax
108a7e: 40 inc %eax
108a7f: 8b 8b 88 00 00 00 mov 0x88(%ebx),%ecx
108a85: 31 d2 xor %edx,%edx
108a87: f7 f1 div %ecx
108a89: 89 55 c4 mov %edx,-0x3c(%ebp)
108a8c: 89 55 e4 mov %edx,-0x1c(%ebp)
rtems_interrupt_disable (level);
108a8f: 9c pushf
108a90: fa cli
108a91: 8f 45 d4 popl -0x2c(%ebp)
108a94: 8b 55 d4 mov -0x2c(%ebp),%edx
108a97: 8b 4d c4 mov -0x3c(%ebp),%ecx
while (newHead == tty->rawOutBuf.Tail) {
108a9a: eb 35 jmp 108ad1 <rtems_termios_puts+0x9c>
tty->rawOutBufState = rob_wait;
108a9c: c7 83 94 00 00 00 02 movl $0x2,0x94(%ebx)
108aa3: 00 00 00
rtems_interrupt_enable (level);
108aa6: 52 push %edx
108aa7: 9d popf
sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore,
108aa8: 50 push %eax
108aa9: 6a 00 push $0x0
108aab: 6a 00 push $0x0
108aad: ff b3 8c 00 00 00 pushl 0x8c(%ebx)
108ab3: 89 4d e0 mov %ecx,-0x20(%ebp)
108ab6: e8 3d 1b 00 00 call 10a5f8 <rtems_semaphore_obtain>
RTEMS_WAIT,
RTEMS_NO_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
108abb: 83 c4 10 add $0x10,%esp
108abe: 85 c0 test %eax,%eax
108ac0: 8b 4d e0 mov -0x20(%ebp),%ecx
108ac3: 74 09 je 108ace <rtems_termios_puts+0x99><== ALWAYS TAKEN
rtems_fatal_error_occurred (sc);
108ac5: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
108ac8: 50 push %eax <== NOT EXECUTED
108ac9: e8 c2 20 00 00 call 10ab90 <rtems_fatal_error_occurred><== NOT EXECUTED
rtems_interrupt_disable (level);
108ace: 9c pushf
108acf: fa cli
108ad0: 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) {
108ad1: 8b 83 84 00 00 00 mov 0x84(%ebx),%eax
108ad7: 39 c1 cmp %eax,%ecx
108ad9: 74 c1 je 108a9c <rtems_termios_puts+0x67>
108adb: 89 55 d4 mov %edx,-0x2c(%ebp)
108ade: 89 4d c4 mov %ecx,-0x3c(%ebp)
RTEMS_NO_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred (sc);
rtems_interrupt_disable (level);
}
tty->rawOutBuf.theBuf[tty->rawOutBuf.Head] = *buf++;
108ae1: 8b 8b 80 00 00 00 mov 0x80(%ebx),%ecx
108ae7: 8a 07 mov (%edi),%al
108ae9: 8b 53 7c mov 0x7c(%ebx),%edx
108aec: 88 04 0a mov %al,(%edx,%ecx,1)
tty->rawOutBuf.Head = newHead;
108aef: 8b 4d c4 mov -0x3c(%ebp),%ecx
108af2: 89 8b 80 00 00 00 mov %ecx,0x80(%ebx)
if (tty->rawOutBufState == rob_idle) {
108af8: 83 bb 94 00 00 00 00 cmpl $0x0,0x94(%ebx)
108aff: 75 3e jne 108b3f <rtems_termios_puts+0x10a>
/* check, whether XOFF has been received */
if (!(tty->flow_ctrl & FL_ORCVXOF)) {
108b01: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax
108b07: a8 10 test $0x10,%al
108b09: 75 1b jne 108b26 <rtems_termios_puts+0xf1><== NEVER TAKEN
(*tty->device.write)(tty->minor,
(char *)&tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1);
108b0b: 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,
108b11: 52 push %edx
108b12: 6a 01 push $0x1
108b14: 03 43 7c add 0x7c(%ebx),%eax
108b17: 50 push %eax
108b18: ff 73 10 pushl 0x10(%ebx)
108b1b: ff 93 a4 00 00 00 call *0xa4(%ebx)
108b21: 83 c4 10 add $0x10,%esp
108b24: eb 0f jmp 108b35 <rtems_termios_puts+0x100>
(char *)&tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1);
}
else {
/* remember that output has been stopped due to flow ctrl*/
tty->flow_ctrl |= FL_OSTOP;
108b26: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED
108b2c: 83 c8 20 or $0x20,%eax <== NOT EXECUTED
108b2f: 89 83 b8 00 00 00 mov %eax,0xb8(%ebx) <== NOT EXECUTED
}
tty->rawOutBufState = rob_busy;
108b35: c7 83 94 00 00 00 01 movl $0x1,0x94(%ebx)
108b3c: 00 00 00
RTEMS_NO_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred (sc);
rtems_interrupt_disable (level);
}
tty->rawOutBuf.theBuf[tty->rawOutBuf.Head] = *buf++;
108b3f: 47 inc %edi
/* remember that output has been stopped due to flow ctrl*/
tty->flow_ctrl |= FL_OSTOP;
}
tty->rawOutBufState = rob_busy;
}
rtems_interrupt_enable (level);
108b40: ff 75 d4 pushl -0x2c(%ebp)
108b43: 9d popf
len--;
108b44: 4e dec %esi
if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) {
(*tty->device.write)(tty->minor, (void *)buf, len);
return;
}
newHead = tty->rawOutBuf.Head;
while (len) {
108b45: 85 f6 test %esi,%esi
108b47: 0f 85 2e ff ff ff jne 108a7b <rtems_termios_puts+0x46>
tty->rawOutBufState = rob_busy;
}
rtems_interrupt_enable (level);
len--;
}
}
108b4d: 8d 65 f4 lea -0xc(%ebp),%esp
108b50: 5b pop %ebx
108b51: 5e pop %esi
108b52: 5f pop %edi
108b53: c9 leave
108b54: c3 ret
001090b0 <rtems_termios_read>:
return RTEMS_SUCCESSFUL;
}
rtems_status_code
rtems_termios_read (void *arg)
{
1090b0: 55 push %ebp
1090b1: 89 e5 mov %esp,%ebp
1090b3: 57 push %edi
1090b4: 56 push %esi
1090b5: 53 push %ebx
1090b6: 83 ec 50 sub $0x50,%esp
1090b9: 8b 75 08 mov 0x8(%ebp),%esi
rtems_libio_rw_args_t *args = arg;
struct rtems_termios_tty *tty = args->iop->data1;
1090bc: 8b 06 mov (%esi),%eax
1090be: 8b 58 34 mov 0x34(%eax),%ebx
uint32_t count = args->count;
1090c1: 8b 46 10 mov 0x10(%esi),%eax
1090c4: 89 45 e4 mov %eax,-0x1c(%ebp)
char *buffer = args->buffer;
1090c7: 8b 4e 0c mov 0xc(%esi),%ecx
1090ca: 89 4d e0 mov %ecx,-0x20(%ebp)
rtems_status_code sc;
sc = rtems_semaphore_obtain (tty->isem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
1090cd: 6a 00 push $0x0
1090cf: 6a 00 push $0x0
1090d1: ff 73 14 pushl 0x14(%ebx)
1090d4: e8 1f 15 00 00 call 10a5f8 <rtems_semaphore_obtain>
1090d9: 89 45 dc mov %eax,-0x24(%ebp)
if (sc != RTEMS_SUCCESSFUL)
1090dc: 83 c4 10 add $0x10,%esp
1090df: 85 c0 test %eax,%eax
1090e1: 0f 85 92 02 00 00 jne 109379 <rtems_termios_read+0x2c9><== NEVER TAKEN
return sc;
if (rtems_termios_linesw[tty->t_line].l_read != NULL) {
1090e7: 8b 83 cc 00 00 00 mov 0xcc(%ebx),%eax
1090ed: c1 e0 05 shl $0x5,%eax
1090f0: 8b 80 b8 5d 12 00 mov 0x125db8(%eax),%eax
1090f6: 85 c0 test %eax,%eax
1090f8: 74 19 je 109113 <rtems_termios_read+0x63><== ALWAYS TAKEN
sc = rtems_termios_linesw[tty->t_line].l_read(tty,args);
1090fa: 51 push %ecx <== NOT EXECUTED
1090fb: 51 push %ecx <== NOT EXECUTED
1090fc: 56 push %esi <== NOT EXECUTED
1090fd: 53 push %ebx <== NOT EXECUTED
1090fe: ff d0 call *%eax <== NOT EXECUTED
109100: 89 45 dc mov %eax,-0x24(%ebp) <== NOT EXECUTED
tty->tty_rcvwakeup = 0;
109103: c7 83 e4 00 00 00 00 movl $0x0,0xe4(%ebx) <== NOT EXECUTED
10910a: 00 00 00
rtems_semaphore_release (tty->isem);
10910d: 5a pop %edx <== NOT EXECUTED
10910e: e9 5b 02 00 00 jmp 10936e <rtems_termios_read+0x2be><== NOT EXECUTED
return sc;
}
if (tty->cindex == tty->ccount) {
109113: 8b 43 24 mov 0x24(%ebx),%eax
109116: 3b 43 20 cmp 0x20(%ebx),%eax
109119: 0f 85 25 02 00 00 jne 109344 <rtems_termios_read+0x294><== NEVER TAKEN
tty->cindex = tty->ccount = 0;
10911f: c7 43 20 00 00 00 00 movl $0x0,0x20(%ebx)
109126: c7 43 24 00 00 00 00 movl $0x0,0x24(%ebx)
tty->read_start_column = tty->column;
10912d: 8b 43 28 mov 0x28(%ebx),%eax
109130: 89 43 2c mov %eax,0x2c(%ebx)
if (tty->device.pollRead != NULL
109133: 83 bb a0 00 00 00 00 cmpl $0x0,0xa0(%ebx)
10913a: 0f 84 c4 00 00 00 je 109204 <rtems_termios_read+0x154><== ALWAYS TAKEN
&& tty->device.outputUsesInterrupts == TERMIOS_POLLED)
109140: 83 bb b4 00 00 00 00 cmpl $0x0,0xb4(%ebx) <== NOT EXECUTED
109147: 0f 85 b7 00 00 00 jne 109204 <rtems_termios_read+0x154><== NOT EXECUTED
static rtems_status_code
fillBufferPoll (struct rtems_termios_tty *tty)
{
int n;
if (tty->termios.c_lflag & ICANON) {
10914d: f6 43 3c 02 testb $0x2,0x3c(%ebx) <== NOT EXECUTED
109151: 74 35 je 109188 <rtems_termios_read+0xd8><== NOT EXECUTED
for (;;) {
n = (*tty->device.pollRead)(tty->minor);
109153: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
109156: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED
109159: ff 93 a0 00 00 00 call *0xa0(%ebx) <== NOT EXECUTED
if (n < 0) {
10915f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
109162: 85 c0 test %eax,%eax <== NOT EXECUTED
109164: 79 0f jns 109175 <rtems_termios_read+0xc5><== NOT EXECUTED
rtems_task_wake_after (1);
109166: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
109169: 6a 01 push $0x1 <== NOT EXECUTED
10916b: e8 d4 18 00 00 call 10aa44 <rtems_task_wake_after> <== NOT EXECUTED
109170: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
109173: eb de jmp 109153 <rtems_termios_read+0xa3><== NOT EXECUTED
}
else {
if (siproc (n, tty))
109175: 0f b6 c0 movzbl %al,%eax <== NOT EXECUTED
109178: 89 da mov %ebx,%edx <== NOT EXECUTED
10917a: e8 de fd ff ff call 108f5d <siproc> <== NOT EXECUTED
10917f: 85 c0 test %eax,%eax <== NOT EXECUTED
109181: 74 d0 je 109153 <rtems_termios_read+0xa3><== NOT EXECUTED
109183: e9 bc 01 00 00 jmp 109344 <rtems_termios_read+0x294><== NOT EXECUTED
}
}
}
else {
rtems_interval then, now;
then = rtems_clock_get_ticks_since_boot();
109188: e8 3f 0e 00 00 call 109fcc <rtems_clock_get_ticks_since_boot><== NOT EXECUTED
10918d: 89 c7 mov %eax,%edi <== NOT EXECUTED
for (;;) {
n = (*tty->device.pollRead)(tty->minor);
10918f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
109192: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED
109195: ff 93 a0 00 00 00 call *0xa0(%ebx) <== NOT EXECUTED
if (n < 0) {
10919b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10919e: 85 c0 test %eax,%eax <== NOT EXECUTED
1091a0: 79 3d jns 1091df <rtems_termios_read+0x12f><== NOT EXECUTED
if (tty->termios.c_cc[VMIN]) {
1091a2: 80 7b 47 00 cmpb $0x0,0x47(%ebx) <== NOT EXECUTED
1091a6: 74 0e je 1091b6 <rtems_termios_read+0x106><== NOT EXECUTED
if (tty->termios.c_cc[VTIME] && tty->ccount) {
1091a8: 80 7b 46 00 cmpb $0x0,0x46(%ebx) <== NOT EXECUTED
1091ac: 74 22 je 1091d0 <rtems_termios_read+0x120><== NOT EXECUTED
1091ae: 83 7b 20 00 cmpl $0x0,0x20(%ebx) <== NOT EXECUTED
1091b2: 74 1c je 1091d0 <rtems_termios_read+0x120><== NOT EXECUTED
1091b4: eb 0a jmp 1091c0 <rtems_termios_read+0x110><== NOT EXECUTED
break;
}
}
}
else {
if (!tty->termios.c_cc[VTIME])
1091b6: 80 7b 46 00 cmpb $0x0,0x46(%ebx) <== NOT EXECUTED
1091ba: 0f 84 84 01 00 00 je 109344 <rtems_termios_read+0x294><== NOT EXECUTED
break;
now = rtems_clock_get_ticks_since_boot();
1091c0: e8 07 0e 00 00 call 109fcc <rtems_clock_get_ticks_since_boot><== NOT EXECUTED
if ((now - then) > tty->vtimeTicks) {
1091c5: 29 f8 sub %edi,%eax <== NOT EXECUTED
1091c7: 3b 43 54 cmp 0x54(%ebx),%eax <== NOT EXECUTED
1091ca: 0f 87 74 01 00 00 ja 109344 <rtems_termios_read+0x294><== NOT EXECUTED
break;
}
}
rtems_task_wake_after (1);
1091d0: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1091d3: 6a 01 push $0x1 <== NOT EXECUTED
1091d5: e8 6a 18 00 00 call 10aa44 <rtems_task_wake_after> <== NOT EXECUTED
1091da: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1091dd: eb b0 jmp 10918f <rtems_termios_read+0xdf><== NOT EXECUTED
}
else {
siproc (n, tty);
1091df: 0f b6 c0 movzbl %al,%eax <== NOT EXECUTED
1091e2: 89 da mov %ebx,%edx <== NOT EXECUTED
1091e4: e8 74 fd ff ff call 108f5d <siproc> <== NOT EXECUTED
if (tty->ccount >= tty->termios.c_cc[VMIN])
1091e9: 8a 43 47 mov 0x47(%ebx),%al <== NOT EXECUTED
1091ec: 0f b6 d0 movzbl %al,%edx <== NOT EXECUTED
1091ef: 39 53 20 cmp %edx,0x20(%ebx) <== NOT EXECUTED
1091f2: 0f 8d 4c 01 00 00 jge 109344 <rtems_termios_read+0x294><== NOT EXECUTED
break;
if (tty->termios.c_cc[VMIN] && tty->termios.c_cc[VTIME])
1091f8: 84 c0 test %al,%al <== NOT EXECUTED
1091fa: 74 93 je 10918f <rtems_termios_read+0xdf><== NOT EXECUTED
1091fc: 80 7b 46 00 cmpb $0x0,0x46(%ebx) <== NOT EXECUTED
109200: 74 8d je 10918f <rtems_termios_read+0xdf><== NOT EXECUTED
109202: eb 84 jmp 109188 <rtems_termios_read+0xd8><== NOT EXECUTED
* Fill the input buffer from the raw input queue
*/
static rtems_status_code
fillBufferQueue (struct rtems_termios_tty *tty)
{
rtems_interval timeout = tty->rawInBufSemaphoreFirstTimeout;
109204: 8b 53 74 mov 0x74(%ebx),%edx
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)(tty->minor,
109207: 8d 43 49 lea 0x49(%ebx),%eax
10920a: 89 45 d0 mov %eax,-0x30(%ebp)
10920d: bf 01 00 00 00 mov $0x1,%edi
109212: e9 de 00 00 00 jmp 1092f5 <rtems_termios_read+0x245>
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;
109217: 8b 43 5c mov 0x5c(%ebx),%eax <== NOT EXECUTED
10921a: 8b 4b 64 mov 0x64(%ebx),%ecx <== NOT EXECUTED
10921d: 40 inc %eax <== NOT EXECUTED
10921e: 31 d2 xor %edx,%edx <== NOT EXECUTED
109220: f7 f1 div %ecx <== NOT EXECUTED
c = tty->rawInBuf.theBuf[newHead];
109222: 8b 43 58 mov 0x58(%ebx),%eax <== NOT EXECUTED
109225: 8a 04 10 mov (%eax,%edx,1),%al <== NOT EXECUTED
109228: 88 45 d7 mov %al,-0x29(%ebp) <== NOT EXECUTED
tty->rawInBuf.Head = newHead;
10922b: 89 53 5c mov %edx,0x5c(%ebx) <== NOT EXECUTED
if(((tty->rawInBuf.Tail-newHead+tty->rawInBuf.Size)
10922e: 8b 4b 60 mov 0x60(%ebx),%ecx <== NOT EXECUTED
109231: 89 4d c4 mov %ecx,-0x3c(%ebp) <== NOT EXECUTED
109234: 8b 43 64 mov 0x64(%ebx),%eax <== NOT EXECUTED
109237: 89 45 b4 mov %eax,-0x4c(%ebp) <== NOT EXECUTED
10923a: 8b 4b 64 mov 0x64(%ebx),%ecx <== NOT EXECUTED
10923d: 89 4d d8 mov %ecx,-0x28(%ebp) <== NOT EXECUTED
109240: 03 45 c4 add -0x3c(%ebp),%eax <== NOT EXECUTED
109243: 29 d0 sub %edx,%eax <== NOT EXECUTED
109245: 31 d2 xor %edx,%edx <== NOT EXECUTED
109247: f7 f1 div %ecx <== NOT EXECUTED
109249: 3b 93 bc 00 00 00 cmp 0xbc(%ebx),%edx <== NOT EXECUTED
10924f: 73 74 jae 1092c5 <rtems_termios_read+0x215><== NOT EXECUTED
% tty->rawInBuf.Size)
< tty->lowwater) {
tty->flow_ctrl &= ~FL_IREQXOF;
109251: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED
109257: 83 e0 fe and $0xfffffffe,%eax <== NOT EXECUTED
10925a: 89 83 b8 00 00 00 mov %eax,0xb8(%ebx) <== NOT EXECUTED
/* if tx stopped and XON should be sent... */
if (((tty->flow_ctrl & (FL_MDXON | FL_ISNTXOF))
109260: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED
109266: 25 02 02 00 00 and $0x202,%eax <== NOT EXECUTED
10926b: 3d 02 02 00 00 cmp $0x202,%eax <== NOT EXECUTED
109270: 75 24 jne 109296 <rtems_termios_read+0x1e6><== NOT EXECUTED
109272: 83 bb 94 00 00 00 00 cmpl $0x0,0x94(%ebx) <== NOT EXECUTED
109279: 74 0a je 109285 <rtems_termios_read+0x1d5><== NOT EXECUTED
== (FL_MDXON | FL_ISNTXOF))
&& ((tty->rawOutBufState == rob_idle)
|| (tty->flow_ctrl & FL_OSTOP))) {
10927b: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED
if(((tty->rawInBuf.Tail-newHead+tty->rawInBuf.Size)
% tty->rawInBuf.Size)
< tty->lowwater) {
tty->flow_ctrl &= ~FL_IREQXOF;
/* if tx stopped and XON should be sent... */
if (((tty->flow_ctrl & (FL_MDXON | FL_ISNTXOF))
109281: a8 20 test $0x20,%al <== NOT EXECUTED
109283: 74 11 je 109296 <rtems_termios_read+0x1e6><== NOT EXECUTED
== (FL_MDXON | FL_ISNTXOF))
&& ((tty->rawOutBufState == rob_idle)
|| (tty->flow_ctrl & FL_OSTOP))) {
/* XON should be sent now... */
(*tty->device.write)(tty->minor,
109285: 50 push %eax <== NOT EXECUTED
109286: 6a 01 push $0x1 <== NOT EXECUTED
109288: ff 75 d0 pushl -0x30(%ebp) <== NOT EXECUTED
10928b: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED
10928e: ff 93 a4 00 00 00 call *0xa4(%ebx) <== NOT EXECUTED
109294: eb 2c jmp 1092c2 <rtems_termios_read+0x212><== NOT EXECUTED
(void *)&(tty->termios.c_cc[VSTART]),
1);
}
else if (tty->flow_ctrl & FL_MDRTS) {
109296: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED
10929c: f6 c4 01 test $0x1,%ah <== NOT EXECUTED
10929f: 74 24 je 1092c5 <rtems_termios_read+0x215><== NOT EXECUTED
tty->flow_ctrl &= ~FL_IRTSOFF;
1092a1: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED
1092a7: 83 e0 fb and $0xfffffffb,%eax <== NOT EXECUTED
1092aa: 89 83 b8 00 00 00 mov %eax,0xb8(%ebx) <== NOT EXECUTED
/* activate RTS line */
if (tty->device.startRemoteTx != NULL) {
1092b0: 8b 83 b0 00 00 00 mov 0xb0(%ebx),%eax <== NOT EXECUTED
1092b6: 85 c0 test %eax,%eax <== NOT EXECUTED
1092b8: 74 0b je 1092c5 <rtems_termios_read+0x215><== NOT EXECUTED
tty->device.startRemoteTx(tty->minor);
1092ba: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1092bd: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED
1092c0: ff d0 call *%eax <== NOT EXECUTED
1092c2: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
}
}
/* continue processing new character */
if (tty->termios.c_lflag & ICANON) {
1092c5: f6 43 3c 02 testb $0x2,0x3c(%ebx) <== NOT EXECUTED
1092c9: 74 11 je 1092dc <rtems_termios_read+0x22c><== NOT EXECUTED
if (siproc (c, tty))
1092cb: 0f b6 45 d7 movzbl -0x29(%ebp),%eax <== NOT EXECUTED
1092cf: 89 da mov %ebx,%edx <== NOT EXECUTED
1092d1: e8 87 fc ff ff call 108f5d <siproc> <== NOT EXECUTED
1092d6: 85 c0 test %eax,%eax <== NOT EXECUTED
1092d8: 75 16 jne 1092f0 <rtems_termios_read+0x240><== NOT EXECUTED
1092da: eb 16 jmp 1092f2 <rtems_termios_read+0x242><== NOT EXECUTED
wait = 0;
}
else {
siproc (c, tty);
1092dc: 0f b6 45 d7 movzbl -0x29(%ebp),%eax <== NOT EXECUTED
1092e0: 89 da mov %ebx,%edx <== NOT EXECUTED
1092e2: e8 76 fc ff ff call 108f5d <siproc> <== NOT EXECUTED
if (tty->ccount >= tty->termios.c_cc[VMIN])
1092e7: 0f b6 43 47 movzbl 0x47(%ebx),%eax <== NOT EXECUTED
1092eb: 39 43 20 cmp %eax,0x20(%ebx) <== NOT EXECUTED
1092ee: 7c 02 jl 1092f2 <rtems_termios_read+0x242><== NOT EXECUTED
1092f0: 31 ff xor %edi,%edi <== NOT EXECUTED
wait = 0;
}
timeout = tty->rawInBufSemaphoreTimeout;
1092f2: 8b 53 70 mov 0x70(%ebx),%edx <== NOT EXECUTED
while ( wait ) {
/*
* Process characters read from raw queue
*/
while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&
1092f5: 8b 4b 5c mov 0x5c(%ebx),%ecx
1092f8: 8b 43 60 mov 0x60(%ebx),%eax
1092fb: 39 c1 cmp %eax,%ecx
1092fd: 74 0f je 10930e <rtems_termios_read+0x25e><== ALWAYS TAKEN
1092ff: a1 44 3f 12 00 mov 0x123f44,%eax <== NOT EXECUTED
109304: 48 dec %eax <== NOT EXECUTED
109305: 39 43 20 cmp %eax,0x20(%ebx) <== NOT EXECUTED
109308: 0f 8c 09 ff ff ff jl 109217 <rtems_termios_read+0x167><== NOT EXECUTED
}
/*
* Wait for characters
*/
if ( wait ) {
10930e: 85 ff test %edi,%edi
109310: 74 32 je 109344 <rtems_termios_read+0x294><== NEVER TAKEN
sc = rtems_semaphore_obtain (tty->rawInBuf.Semaphore,
109312: 51 push %ecx
109313: 52 push %edx
109314: ff 73 6c pushl 0x6c(%ebx)
109317: ff 73 68 pushl 0x68(%ebx)
10931a: 89 55 cc mov %edx,-0x34(%ebp)
10931d: e8 d6 12 00 00 call 10a5f8 <rtems_semaphore_obtain>
tty->rawInBufSemaphoreOptions,
timeout);
if (sc != RTEMS_SUCCESSFUL)
109322: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
109325: 85 c0 test %eax,%eax <== NOT EXECUTED
109327: 8b 55 cc mov -0x34(%ebp),%edx <== NOT EXECUTED
10932a: 74 c9 je 1092f5 <rtems_termios_read+0x245><== NOT EXECUTED
10932c: eb 16 jmp 109344 <rtems_termios_read+0x294><== NOT EXECUTED
sc = fillBufferQueue (tty);
if (sc != RTEMS_SUCCESSFUL)
tty->cindex = tty->ccount = 0;
}
while (count && (tty->cindex < tty->ccount)) {
*buffer++ = tty->cbuf[tty->cindex++];
10932e: 8b 7b 1c mov 0x1c(%ebx),%edi <== NOT EXECUTED
109331: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
109334: 8a 04 07 mov (%edi,%eax,1),%al <== NOT EXECUTED
109337: 88 02 mov %al,(%edx) <== NOT EXECUTED
109339: 42 inc %edx <== NOT EXECUTED
10933a: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
10933d: 40 inc %eax <== NOT EXECUTED
10933e: 89 43 24 mov %eax,0x24(%ebx) <== NOT EXECUTED
count--;
109341: 49 dec %ecx <== NOT EXECUTED
109342: eb 06 jmp 10934a <rtems_termios_read+0x29a><== NOT EXECUTED
109344: 8b 55 e0 mov -0x20(%ebp),%edx <== NOT EXECUTED
109347: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED
else
sc = fillBufferQueue (tty);
if (sc != RTEMS_SUCCESSFUL)
tty->cindex = tty->ccount = 0;
}
while (count && (tty->cindex < tty->ccount)) {
10934a: 85 c9 test %ecx,%ecx <== NOT EXECUTED
10934c: 74 0b je 109359 <rtems_termios_read+0x2a9><== NOT EXECUTED
10934e: 8b 43 24 mov 0x24(%ebx),%eax <== NOT EXECUTED
109351: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
109354: 3b 43 20 cmp 0x20(%ebx),%eax <== NOT EXECUTED
109357: 7c d5 jl 10932e <rtems_termios_read+0x27e><== NOT EXECUTED
*buffer++ = tty->cbuf[tty->cindex++];
count--;
}
args->bytes_moved = args->count - count;
109359: 8b 46 10 mov 0x10(%esi),%eax <== NOT EXECUTED
10935c: 29 c8 sub %ecx,%eax <== NOT EXECUTED
10935e: 89 46 18 mov %eax,0x18(%esi) <== NOT EXECUTED
tty->tty_rcvwakeup = 0;
109361: c7 83 e4 00 00 00 00 movl $0x0,0xe4(%ebx) <== NOT EXECUTED
109368: 00 00 00
rtems_semaphore_release (tty->isem);
10936b: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10936e: ff 73 14 pushl 0x14(%ebx) <== NOT EXECUTED
109371: e8 6e 13 00 00 call 10a6e4 <rtems_semaphore_release><== NOT EXECUTED
return sc;
109376: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
109379: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED
10937c: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
10937f: 5b pop %ebx <== NOT EXECUTED
109380: 5e pop %esi <== NOT EXECUTED
109381: 5f pop %edi <== NOT EXECUTED
109382: c9 leave <== NOT EXECUTED
109383: c3 ret <== NOT EXECUTED
0010858a <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)
{
10858a: 55 push %ebp
10858b: 89 e5 mov %esp,%ebp
10858d: 57 push %edi
10858e: 56 push %esi
10858f: 53 push %ebx
108590: 83 ec 0c sub $0xc,%esp
108593: 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))
108596: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax
10859c: 25 03 04 00 00 and $0x403,%eax
1085a1: 3d 01 04 00 00 cmp $0x401,%eax
1085a6: 75 24 jne 1085cc <rtems_termios_refill_transmitter+0x42><== ALWAYS TAKEN
== (FL_MDXOF | FL_IREQXOF)) {
/* XOFF should be sent now... */
(*tty->device.write)(tty->minor,
1085a8: 56 push %esi <== NOT EXECUTED
1085a9: 6a 01 push $0x1 <== NOT EXECUTED
1085ab: 8d 43 4a lea 0x4a(%ebx),%eax <== NOT EXECUTED
1085ae: 50 push %eax <== NOT EXECUTED
1085af: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED
1085b2: ff 93 a4 00 00 00 call *0xa4(%ebx) <== NOT EXECUTED
(void *)&(tty->termios.c_cc[VSTOP]), 1);
rtems_interrupt_disable(level);
1085b8: 9c pushf <== NOT EXECUTED
1085b9: fa cli <== NOT EXECUTED
1085ba: 5a pop %edx <== NOT EXECUTED
tty->t_dqlen--;
1085bb: ff 8b 90 00 00 00 decl 0x90(%ebx) <== NOT EXECUTED
tty->flow_ctrl |= FL_ISNTXOF;
1085c1: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED
1085c7: 83 c8 02 or $0x2,%eax <== NOT EXECUTED
1085ca: eb 30 jmp 1085fc <rtems_termios_refill_transmitter+0x72><== NOT EXECUTED
rtems_interrupt_enable(level);
nToSend = 1;
}
else if ((tty->flow_ctrl & (FL_IREQXOF | FL_ISNTXOF))
1085cc: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax
1085d2: 83 e0 03 and $0x3,%eax
1085d5: 83 f8 02 cmp $0x2,%eax
1085d8: 75 37 jne 108611 <rtems_termios_refill_transmitter+0x87><== 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,
1085da: 51 push %ecx <== NOT EXECUTED
1085db: 6a 01 push $0x1 <== NOT EXECUTED
1085dd: 8d 43 49 lea 0x49(%ebx),%eax <== NOT EXECUTED
1085e0: 50 push %eax <== NOT EXECUTED
1085e1: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED
1085e4: ff 93 a4 00 00 00 call *0xa4(%ebx) <== NOT EXECUTED
(void *)&(tty->termios.c_cc[VSTART]), 1);
rtems_interrupt_disable(level);
1085ea: 9c pushf <== NOT EXECUTED
1085eb: fa cli <== NOT EXECUTED
1085ec: 5a pop %edx <== NOT EXECUTED
tty->t_dqlen--;
1085ed: ff 8b 90 00 00 00 decl 0x90(%ebx) <== NOT EXECUTED
tty->flow_ctrl &= ~FL_ISNTXOF;
1085f3: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED
1085f9: 83 e0 fd and $0xfffffffd,%eax <== NOT EXECUTED
1085fc: 89 83 b8 00 00 00 mov %eax,0xb8(%ebx) <== NOT EXECUTED
rtems_interrupt_enable(level);
108602: 52 push %edx <== NOT EXECUTED
108603: 9d popf <== NOT EXECUTED
108604: be 01 00 00 00 mov $0x1,%esi <== NOT EXECUTED
108609: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10860c: e9 2f 01 00 00 jmp 108740 <rtems_termios_refill_transmitter+0x1b6><== NOT EXECUTED
nToSend = 1;
}
else {
if ( tty->rawOutBuf.Head == tty->rawOutBuf.Tail ) {
108611: 8b 93 80 00 00 00 mov 0x80(%ebx),%edx
108617: 8b 83 84 00 00 00 mov 0x84(%ebx),%eax
10861d: 39 c2 cmp %eax,%edx
10861f: 75 1f jne 108640 <rtems_termios_refill_transmitter+0xb6><== ALWAYS TAKEN
/*
* buffer was empty
*/
if (tty->rawOutBufState == rob_wait) {
108621: 31 f6 xor %esi,%esi
108623: 83 bb 94 00 00 00 02 cmpl $0x2,0x94(%ebx) <== NOT EXECUTED
10862a: 0f 85 10 01 00 00 jne 108740 <rtems_termios_refill_transmitter+0x1b6><== NOT EXECUTED
/*
* this should never happen...
*/
rtems_semaphore_release (tty->rawOutBuf.Semaphore);
108630: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
108633: ff b3 8c 00 00 00 pushl 0x8c(%ebx) <== NOT EXECUTED
108639: e8 a6 20 00 00 call 10a6e4 <rtems_semaphore_release><== NOT EXECUTED
10863e: eb c9 jmp 108609 <rtems_termios_refill_transmitter+0x7f><== NOT EXECUTED
}
return 0;
}
rtems_interrupt_disable(level);
108640: 9c pushf
108641: fa cli
108642: 58 pop %eax
len = tty->t_dqlen;
108643: 8b 8b 90 00 00 00 mov 0x90(%ebx),%ecx
tty->t_dqlen = 0;
108649: c7 83 90 00 00 00 00 movl $0x0,0x90(%ebx)
108650: 00 00 00
rtems_interrupt_enable(level);
108653: 50 push %eax
108654: 9d popf
newTail = (tty->rawOutBuf.Tail + len) % tty->rawOutBuf.Size;
108655: 8b 83 84 00 00 00 mov 0x84(%ebx),%eax
10865b: 8b b3 88 00 00 00 mov 0x88(%ebx),%esi
108661: 8d 04 01 lea (%ecx,%eax,1),%eax
108664: 31 d2 xor %edx,%edx
108666: f7 f6 div %esi
108668: 89 d7 mov %edx,%edi
tty->rawOutBuf.Tail = newTail;
10866a: 89 93 84 00 00 00 mov %edx,0x84(%ebx)
if (tty->rawOutBufState == rob_wait) {
108670: 83 bb 94 00 00 00 02 cmpl $0x2,0x94(%ebx)
108677: 75 11 jne 10868a <rtems_termios_refill_transmitter+0x100>
/*
* wake up any pending writer task
*/
rtems_semaphore_release (tty->rawOutBuf.Semaphore);
108679: 83 ec 0c sub $0xc,%esp
10867c: ff b3 8c 00 00 00 pushl 0x8c(%ebx)
108682: e8 5d 20 00 00 call 10a6e4 <rtems_semaphore_release>
108687: 83 c4 10 add $0x10,%esp
}
if (newTail == tty->rawOutBuf.Head) {
10868a: 8b 83 80 00 00 00 mov 0x80(%ebx),%eax
108690: 39 c7 cmp %eax,%edi
108692: 75 2a jne 1086be <rtems_termios_refill_transmitter+0x134>
/*
* Buffer has become empty
*/
tty->rawOutBufState = rob_idle;
108694: c7 83 94 00 00 00 00 movl $0x0,0x94(%ebx)
10869b: 00 00 00
nToSend = 0;
/*
* check to see if snd wakeup callback was set
*/
if ( tty->tty_snd.sw_pfn != NULL) {
10869e: 8b 83 d4 00 00 00 mov 0xd4(%ebx),%eax
1086a4: 31 f6 xor %esi,%esi
1086a6: 85 c0 test %eax,%eax
1086a8: 0f 84 8c 00 00 00 je 10873a <rtems_termios_refill_transmitter+0x1b0><== ALWAYS TAKEN
(*tty->tty_snd.sw_pfn)(&tty->termios, tty->tty_snd.sw_arg);
1086ae: 52 push %edx <== NOT EXECUTED
1086af: 52 push %edx <== NOT EXECUTED
1086b0: ff b3 d8 00 00 00 pushl 0xd8(%ebx) <== NOT EXECUTED
1086b6: 8d 53 30 lea 0x30(%ebx),%edx <== NOT EXECUTED
1086b9: 52 push %edx <== NOT EXECUTED
1086ba: ff d0 call *%eax <== NOT EXECUTED
1086bc: eb 79 jmp 108737 <rtems_termios_refill_transmitter+0x1ad><== NOT EXECUTED
}
}
/* check, whether output should stop due to received XOFF */
else if ((tty->flow_ctrl & (FL_MDXON | FL_ORCVXOF))
1086be: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax
1086c4: 25 10 02 00 00 and $0x210,%eax
1086c9: 3d 10 02 00 00 cmp $0x210,%eax
1086ce: 75 22 jne 1086f2 <rtems_termios_refill_transmitter+0x168><== 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);
1086d0: 9c pushf <== NOT EXECUTED
1086d1: fa cli <== NOT EXECUTED
1086d2: 5a pop %edx <== NOT EXECUTED
tty->flow_ctrl |= FL_OSTOP;
1086d3: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED
1086d9: 83 c8 20 or $0x20,%eax <== NOT EXECUTED
1086dc: 89 83 b8 00 00 00 mov %eax,0xb8(%ebx) <== NOT EXECUTED
tty->rawOutBufState = rob_busy; /*apm*/
1086e2: c7 83 94 00 00 00 01 movl $0x1,0x94(%ebx) <== NOT EXECUTED
1086e9: 00 00 00
rtems_interrupt_enable(level);
1086ec: 52 push %edx <== NOT EXECUTED
1086ed: 9d popf <== NOT EXECUTED
1086ee: 31 f6 xor %esi,%esi <== NOT EXECUTED
1086f0: eb 48 jmp 10873a <rtems_termios_refill_transmitter+0x1b0><== NOT EXECUTED
}
else {
/*
* Buffer not empty, start tranmitter
*/
if (newTail > tty->rawOutBuf.Head)
1086f2: 8b 83 80 00 00 00 mov 0x80(%ebx),%eax
1086f8: 39 c7 cmp %eax,%edi
1086fa: 76 08 jbe 108704 <rtems_termios_refill_transmitter+0x17a>
nToSend = tty->rawOutBuf.Size - newTail;
1086fc: 8b b3 88 00 00 00 mov 0x88(%ebx),%esi
108702: eb 06 jmp 10870a <rtems_termios_refill_transmitter+0x180>
else
nToSend = tty->rawOutBuf.Head - newTail;
108704: 8b b3 80 00 00 00 mov 0x80(%ebx),%esi
10870a: 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)) {
10870c: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax
108712: f6 c4 06 test $0x6,%ah
108715: 74 05 je 10871c <rtems_termios_refill_transmitter+0x192><== ALWAYS TAKEN
108717: be 01 00 00 00 mov $0x1,%esi <== NOT EXECUTED
nToSend = 1;
}
tty->rawOutBufState = rob_busy; /*apm*/
10871c: c7 83 94 00 00 00 01 movl $0x1,0x94(%ebx)
108723: 00 00 00
(*tty->device.write)(tty->minor,
108726: 50 push %eax
108727: 56 push %esi
108728: 8b 43 7c mov 0x7c(%ebx),%eax
10872b: 01 f8 add %edi,%eax
10872d: 50 push %eax
10872e: ff 73 10 pushl 0x10(%ebx)
108731: ff 93 a4 00 00 00 call *0xa4(%ebx)
108737: 83 c4 10 add $0x10,%esp
&tty->rawOutBuf.theBuf[newTail],
nToSend);
}
tty->rawOutBuf.Tail = newTail; /*apm*/
10873a: 89 bb 84 00 00 00 mov %edi,0x84(%ebx)
}
return nToSend;
}
108740: 89 f0 mov %esi,%eax
108742: 8d 65 f4 lea -0xc(%ebp),%esp
108745: 5b pop %ebx
108746: 5e pop %esi
108747: 5f pop %edi
108748: c9 leave
108749: c3 ret
00109cd4 <rtems_termios_rxdaemon>:
/*
* this task actually processes any receive events
*/
static rtems_task rtems_termios_rxdaemon(rtems_task_argument argument)
{
109cd4: 55 push %ebp <== NOT EXECUTED
109cd5: 89 e5 mov %esp,%ebp <== NOT EXECUTED
109cd7: 57 push %edi <== NOT EXECUTED
109cd8: 56 push %esi <== NOT EXECUTED
109cd9: 53 push %ebx <== NOT EXECUTED
109cda: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
109cdd: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
char c_buf;
while (1) {
/*
* wait for rtems event
*/
rtems_event_receive((TERMIOS_RX_PROC_EVENT |
109ce0: 8d 7d e0 lea -0x20(%ebp),%edi <== NOT EXECUTED
if (c != EOF) {
/*
* pollRead did call enqueue on its own
*/
c_buf = c;
rtems_termios_enqueue_raw_characters (
109ce3: 8d 75 e7 lea -0x19(%ebp),%esi <== NOT EXECUTED
char c_buf;
while (1) {
/*
* wait for rtems event
*/
rtems_event_receive((TERMIOS_RX_PROC_EVENT |
109ce6: 57 push %edi <== NOT EXECUTED
109ce7: 6a 00 push $0x0 <== NOT EXECUTED
109ce9: 6a 02 push $0x2 <== NOT EXECUTED
109ceb: 6a 03 push $0x3 <== NOT EXECUTED
109ced: e8 3e 03 00 00 call 10a030 <rtems_event_receive> <== NOT EXECUTED
TERMIOS_RX_TERMINATE_EVENT),
RTEMS_EVENT_ANY | RTEMS_WAIT,
RTEMS_NO_TIMEOUT,
&the_event);
if ((the_event & TERMIOS_RX_TERMINATE_EVENT) != 0) {
109cf2: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
109cf5: f6 45 e0 01 testb $0x1,-0x20(%ebp) <== NOT EXECUTED
109cf9: 74 16 je 109d11 <rtems_termios_rxdaemon+0x3d><== NOT EXECUTED
tty->rxTaskId = 0;
109cfb: c7 83 c4 00 00 00 00 movl $0x0,0xc4(%ebx) <== NOT EXECUTED
109d02: 00 00 00
rtems_task_delete(RTEMS_SELF);
109d05: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
109d08: 6a 00 push $0x0 <== NOT EXECUTED
109d0a: e8 95 0b 00 00 call 10a8a4 <rtems_task_delete> <== NOT EXECUTED
109d0f: eb 21 jmp 109d32 <rtems_termios_rxdaemon+0x5e><== NOT EXECUTED
}
else {
/*
* do something
*/
c = tty->device.pollRead(tty->minor);
109d11: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
109d14: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED
109d17: ff 93 a0 00 00 00 call *0xa0(%ebx) <== NOT EXECUTED
if (c != EOF) {
109d1d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
109d20: 83 f8 ff cmp $0xffffffff,%eax <== NOT EXECUTED
109d23: 74 c1 je 109ce6 <rtems_termios_rxdaemon+0x12><== NOT EXECUTED
/*
* pollRead did call enqueue on its own
*/
c_buf = c;
109d25: 88 45 e7 mov %al,-0x19(%ebp) <== NOT EXECUTED
rtems_termios_enqueue_raw_characters (
109d28: 50 push %eax <== NOT EXECUTED
109d29: 6a 01 push $0x1 <== NOT EXECUTED
109d2b: 56 push %esi <== NOT EXECUTED
109d2c: 53 push %ebx <== NOT EXECUTED
109d2d: e8 7d ea ff ff call 1087af <rtems_termios_enqueue_raw_characters><== NOT EXECUTED
109d32: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
109d35: eb af jmp 109ce6 <rtems_termios_rxdaemon+0x12><== NOT EXECUTED
0010856f <rtems_termios_rxirq_occured>:
* signal receive interrupt to rx daemon
* NOTE: This routine runs in the context of the
* device receive interrupt handler.
*/
void rtems_termios_rxirq_occured(struct rtems_termios_tty *tty)
{
10856f: 55 push %ebp <== NOT EXECUTED
108570: 89 e5 mov %esp,%ebp <== NOT EXECUTED
108572: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED
/*
* send event to rx daemon task
*/
rtems_event_send(tty->rxTaskId,TERMIOS_RX_PROC_EVENT);
108575: 6a 02 push $0x2 <== NOT EXECUTED
108577: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
10857a: ff b0 c4 00 00 00 pushl 0xc4(%eax) <== NOT EXECUTED
108580: e8 0b 1c 00 00 call 10a190 <rtems_event_send> <== NOT EXECUTED
108585: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
108588: c9 leave <== NOT EXECUTED
108589: c3 ret <== NOT EXECUTED
00109c71 <rtems_termios_txdaemon>:
/*
* this task actually processes any transmit events
*/
static rtems_task rtems_termios_txdaemon(rtems_task_argument argument)
{
109c71: 55 push %ebp <== NOT EXECUTED
109c72: 89 e5 mov %esp,%ebp <== NOT EXECUTED
109c74: 56 push %esi <== NOT EXECUTED
109c75: 53 push %ebx <== NOT EXECUTED
109c76: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED
109c79: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
while (1) {
/*
* wait for rtems event
*/
rtems_event_receive((TERMIOS_TX_START_EVENT |
109c7c: 8d 75 f4 lea -0xc(%ebp),%esi <== NOT EXECUTED
109c7f: 56 push %esi <== NOT EXECUTED
109c80: 6a 00 push $0x0 <== NOT EXECUTED
109c82: 6a 02 push $0x2 <== NOT EXECUTED
109c84: 6a 03 push $0x3 <== NOT EXECUTED
109c86: e8 a5 03 00 00 call 10a030 <rtems_event_receive> <== NOT EXECUTED
TERMIOS_TX_TERMINATE_EVENT),
RTEMS_EVENT_ANY | RTEMS_WAIT,
RTEMS_NO_TIMEOUT,
&the_event);
if ((the_event & TERMIOS_TX_TERMINATE_EVENT) != 0) {
109c8b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
109c8e: f6 45 f4 01 testb $0x1,-0xc(%ebp) <== NOT EXECUTED
109c92: 74 16 je 109caa <rtems_termios_txdaemon+0x39><== NOT EXECUTED
tty->txTaskId = 0;
109c94: c7 83 c8 00 00 00 00 movl $0x0,0xc8(%ebx) <== NOT EXECUTED
109c9b: 00 00 00
rtems_task_delete(RTEMS_SELF);
109c9e: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
109ca1: 6a 00 push $0x0 <== NOT EXECUTED
109ca3: e8 fc 0b 00 00 call 10a8a4 <rtems_task_delete> <== NOT EXECUTED
109ca8: eb 25 jmp 109ccf <rtems_termios_txdaemon+0x5e><== NOT EXECUTED
}
else {
/*
* call any line discipline start function
*/
if (rtems_termios_linesw[tty->t_line].l_start != NULL) {
109caa: 8b 83 cc 00 00 00 mov 0xcc(%ebx),%eax <== NOT EXECUTED
109cb0: c1 e0 05 shl $0x5,%eax <== NOT EXECUTED
109cb3: 8b 80 c4 5d 12 00 mov 0x125dc4(%eax),%eax <== NOT EXECUTED
109cb9: 85 c0 test %eax,%eax <== NOT EXECUTED
109cbb: 74 09 je 109cc6 <rtems_termios_txdaemon+0x55><== NOT EXECUTED
rtems_termios_linesw[tty->t_line].l_start(tty);
109cbd: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
109cc0: 53 push %ebx <== NOT EXECUTED
109cc1: ff d0 call *%eax <== NOT EXECUTED
109cc3: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
/*
* try to push further characters to device
*/
rtems_termios_refill_transmitter(tty);
109cc6: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
109cc9: 53 push %ebx <== NOT EXECUTED
109cca: e8 bb e8 ff ff call 10858a <rtems_termios_refill_transmitter><== NOT EXECUTED
109ccf: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
109cd2: eb ab jmp 109c7f <rtems_termios_txdaemon+0xe><== NOT EXECUTED
00108faf <rtems_termios_write>:
rtems_termios_puts (&c, 1, tty);
}
rtems_status_code
rtems_termios_write (void *arg)
{
108faf: 55 push %ebp
108fb0: 89 e5 mov %esp,%ebp
108fb2: 57 push %edi
108fb3: 56 push %esi
108fb4: 53 push %ebx
108fb5: 83 ec 20 sub $0x20,%esp
108fb8: 8b 5d 08 mov 0x8(%ebp),%ebx
rtems_libio_rw_args_t *args = arg;
struct rtems_termios_tty *tty = args->iop->data1;
108fbb: 8b 03 mov (%ebx),%eax
108fbd: 8b 70 34 mov 0x34(%eax),%esi
rtems_status_code sc;
sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
108fc0: 6a 00 push $0x0
108fc2: 6a 00 push $0x0
108fc4: ff 76 18 pushl 0x18(%esi)
108fc7: e8 2c 16 00 00 call 10a5f8 <rtems_semaphore_obtain>
108fcc: 89 c7 mov %eax,%edi
if (sc != RTEMS_SUCCESSFUL)
108fce: 83 c4 10 add $0x10,%esp
108fd1: 85 c0 test %eax,%eax
108fd3: 75 77 jne 10904c <rtems_termios_write+0x9d><== NEVER TAKEN
return sc;
if (rtems_termios_linesw[tty->t_line].l_write != NULL) {
108fd5: 8b 86 cc 00 00 00 mov 0xcc(%esi),%eax
108fdb: c1 e0 05 shl $0x5,%eax
108fde: 8b 80 bc 5d 12 00 mov 0x125dbc(%eax),%eax
108fe4: 85 c0 test %eax,%eax
108fe6: 74 0b je 108ff3 <rtems_termios_write+0x44><== ALWAYS TAKEN
sc = rtems_termios_linesw[tty->t_line].l_write(tty,args);
108fe8: 57 push %edi <== NOT EXECUTED
108fe9: 57 push %edi <== NOT EXECUTED
108fea: 53 push %ebx <== NOT EXECUTED
108feb: 56 push %esi <== NOT EXECUTED
108fec: ff d0 call *%eax <== NOT EXECUTED
108fee: 89 c7 mov %eax,%edi <== NOT EXECUTED
rtems_semaphore_release (tty->osem);
108ff0: 5b pop %ebx <== NOT EXECUTED
108ff1: eb 4e jmp 109041 <rtems_termios_write+0x92><== NOT EXECUTED
return sc;
}
if (tty->termios.c_oflag & OPOST) {
108ff3: f6 46 34 01 testb $0x1,0x34(%esi)
108ff7: 74 2f je 109028 <rtems_termios_write+0x79><== NEVER TAKEN
uint32_t count = args->count;
108ff9: 8b 4b 10 mov 0x10(%ebx),%ecx
char *buffer = args->buffer;
108ffc: 8b 43 0c mov 0xc(%ebx),%eax
108fff: 89 45 e4 mov %eax,-0x1c(%ebp)
while (count--)
109002: eb 18 jmp 10901c <rtems_termios_write+0x6d>
oproc (*buffer++, tty);
109004: 8b 55 e4 mov -0x1c(%ebp),%edx
109007: 0f b6 02 movzbl (%edx),%eax
10900a: 42 inc %edx
10900b: 89 55 e4 mov %edx,-0x1c(%ebp)
10900e: 89 f2 mov %esi,%edx
109010: 89 4d e0 mov %ecx,-0x20(%ebp)
109013: e8 3d fb ff ff call 108b55 <oproc>
109018: 8b 4d e0 mov -0x20(%ebp),%ecx
10901b: 49 dec %ecx
return sc;
}
if (tty->termios.c_oflag & OPOST) {
uint32_t count = args->count;
char *buffer = args->buffer;
while (count--)
10901c: 85 c9 test %ecx,%ecx
10901e: 75 e4 jne 109004 <rtems_termios_write+0x55>
oproc (*buffer++, tty);
args->bytes_moved = args->count;
109020: 8b 43 10 mov 0x10(%ebx),%eax
109023: 89 43 18 mov %eax,0x18(%ebx)
109026: eb 16 jmp 10903e <rtems_termios_write+0x8f>
}
else {
rtems_termios_puts (args->buffer, args->count, tty);
109028: 51 push %ecx <== NOT EXECUTED
109029: 56 push %esi <== NOT EXECUTED
10902a: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED
10902d: ff 73 0c pushl 0xc(%ebx) <== NOT EXECUTED
109030: e8 00 fa ff ff call 108a35 <rtems_termios_puts> <== NOT EXECUTED
args->bytes_moved = args->count;
109035: 8b 43 10 mov 0x10(%ebx),%eax <== NOT EXECUTED
109038: 89 43 18 mov %eax,0x18(%ebx) <== NOT EXECUTED
10903b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
rtems_semaphore_release (tty->osem);
10903e: 83 ec 0c sub $0xc,%esp
109041: ff 76 18 pushl 0x18(%esi)
109044: e8 9b 16 00 00 call 10a6e4 <rtems_semaphore_release>
return sc;
109049: 83 c4 10 add $0x10,%esp
}
10904c: 89 f8 mov %edi,%eax
10904e: 8d 65 f4 lea -0xc(%ebp),%esp
109051: 5b pop %ebx
109052: 5e pop %esi
109053: 5f pop %edi
109054: c9 leave
109055: c3 ret
00116acc <rtems_timer_cancel>:
*/
rtems_status_code rtems_timer_cancel(
rtems_id id
)
{
116acc: 55 push %ebp
116acd: 89 e5 mov %esp,%ebp
116acf: 83 ec 1c sub $0x1c,%esp
RTEMS_INLINE_ROUTINE Timer_Control *_Timer_Get (
Objects_Id id,
Objects_Locations *location
)
{
return (Timer_Control *)
116ad2: 8d 45 f4 lea -0xc(%ebp),%eax
116ad5: 50 push %eax
116ad6: ff 75 08 pushl 0x8(%ebp)
116ad9: 68 68 ff 13 00 push $0x13ff68
116ade: e8 51 25 00 00 call 119034 <_Objects_Get>
116ae3: 89 c2 mov %eax,%edx
Timer_Control *the_timer;
Objects_Locations location;
the_timer = _Timer_Get( id, &location );
switch ( location ) {
116ae5: 83 c4 10 add $0x10,%esp
116ae8: b8 04 00 00 00 mov $0x4,%eax
116aed: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
116af1: 75 1c jne 116b0f <rtems_timer_cancel+0x43>
case OBJECTS_LOCAL:
if ( !_Timer_Is_dormant_class( the_timer->the_class ) )
116af3: 83 7a 38 04 cmpl $0x4,0x38(%edx)
116af7: 74 0f je 116b08 <rtems_timer_cancel+0x3c><== NEVER TAKEN
(void) _Watchdog_Remove( &the_timer->Ticker );
116af9: 83 ec 0c sub $0xc,%esp
116afc: 83 c2 10 add $0x10,%edx
116aff: 52 push %edx
116b00: e8 f7 3f 00 00 call 11aafc <_Watchdog_Remove>
116b05: 83 c4 10 add $0x10,%esp
_Thread_Enable_dispatch();
116b08: e8 8c 2d 00 00 call 119899 <_Thread_Enable_dispatch>
116b0d: 31 c0 xor %eax,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
116b0f: c9 leave
116b10: c3 ret
00116f34 <rtems_timer_server_fire_when>:
rtems_id id,
rtems_time_of_day *wall_time,
rtems_timer_service_routine_entry routine,
void *user_data
)
{
116f34: 55 push %ebp
116f35: 89 e5 mov %esp,%ebp
116f37: 57 push %edi
116f38: 56 push %esi
116f39: 53 push %ebx
116f3a: 83 ec 1c sub $0x1c,%esp
116f3d: 8b 5d 0c mov 0xc(%ebp),%ebx
Timer_Control *the_timer;
Objects_Locations location;
rtems_interval seconds;
Timer_server_Control *timer_server = _Timer_server;
116f40: 8b 35 a8 ff 13 00 mov 0x13ffa8,%esi
if ( !timer_server )
116f46: b8 0e 00 00 00 mov $0xe,%eax
116f4b: 85 f6 test %esi,%esi
116f4d: 0f 84 b4 00 00 00 je 117007 <rtems_timer_server_fire_when+0xd3><== NEVER TAKEN
return RTEMS_INCORRECT_STATE;
if ( !_TOD_Is_set )
116f53: b0 0b mov $0xb,%al
116f55: 80 3d f0 f5 13 00 00 cmpb $0x0,0x13f5f0
116f5c: 0f 84 a5 00 00 00 je 117007 <rtems_timer_server_fire_when+0xd3><== NEVER TAKEN
return RTEMS_NOT_DEFINED;
if ( !routine )
116f62: b0 09 mov $0x9,%al
116f64: 83 7d 10 00 cmpl $0x0,0x10(%ebp)
116f68: 0f 84 99 00 00 00 je 117007 <rtems_timer_server_fire_when+0xd3><== NEVER TAKEN
return RTEMS_INVALID_ADDRESS;
if ( !_TOD_Validate( wall_time ) )
116f6e: 83 ec 0c sub $0xc,%esp
116f71: 53 push %ebx
116f72: e8 65 d6 ff ff call 1145dc <_TOD_Validate>
116f77: 83 c4 10 add $0x10,%esp
116f7a: 84 c0 test %al,%al
116f7c: 0f 84 80 00 00 00 je 117002 <rtems_timer_server_fire_when+0xce><== NEVER TAKEN
return RTEMS_INVALID_CLOCK;
seconds = _TOD_To_seconds( wall_time );
116f82: 83 ec 0c sub $0xc,%esp
116f85: 53 push %ebx
116f86: e8 e9 d5 ff ff call 114574 <_TOD_To_seconds>
116f8b: 89 c7 mov %eax,%edi
if ( seconds <= _TOD_Seconds_since_epoch() )
116f8d: 83 c4 10 add $0x10,%esp
116f90: 3b 05 6c f6 13 00 cmp 0x13f66c,%eax
116f96: 76 6a jbe 117002 <rtems_timer_server_fire_when+0xce><== NEVER TAKEN
116f98: 51 push %ecx
116f99: 8d 45 e4 lea -0x1c(%ebp),%eax
116f9c: 50 push %eax
116f9d: ff 75 08 pushl 0x8(%ebp)
116fa0: 68 68 ff 13 00 push $0x13ff68
116fa5: e8 8a 20 00 00 call 119034 <_Objects_Get>
116faa: 89 c3 mov %eax,%ebx
return RTEMS_INVALID_CLOCK;
the_timer = _Timer_Get( id, &location );
switch ( location ) {
116fac: 83 c4 10 add $0x10,%esp
116faf: b8 04 00 00 00 mov $0x4,%eax
116fb4: 83 7d e4 00 cmpl $0x0,-0x1c(%ebp)
116fb8: 75 4d jne 117007 <rtems_timer_server_fire_when+0xd3><== NEVER TAKEN
case OBJECTS_LOCAL:
(void) _Watchdog_Remove( &the_timer->Ticker );
116fba: 83 ec 0c sub $0xc,%esp
116fbd: 8d 43 10 lea 0x10(%ebx),%eax
116fc0: 50 push %eax
116fc1: e8 36 3b 00 00 call 11aafc <_Watchdog_Remove>
the_timer->the_class = TIMER_TIME_OF_DAY_ON_TASK;
116fc6: 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;
116fcd: c7 43 18 00 00 00 00 movl $0x0,0x18(%ebx)
the_watchdog->routine = routine;
116fd4: 8b 45 10 mov 0x10(%ebp),%eax
116fd7: 89 43 2c mov %eax,0x2c(%ebx)
the_watchdog->id = id;
116fda: 8b 45 08 mov 0x8(%ebp),%eax
116fdd: 89 43 30 mov %eax,0x30(%ebx)
the_watchdog->user_data = user_data;
116fe0: 8b 45 14 mov 0x14(%ebp),%eax
116fe3: 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();
116fe6: 2b 3d 6c f6 13 00 sub 0x13f66c,%edi
116fec: 89 7b 1c mov %edi,0x1c(%ebx)
(*timer_server->schedule_operation)( timer_server, the_timer );
116fef: 58 pop %eax
116ff0: 5a pop %edx
116ff1: 53 push %ebx
116ff2: 56 push %esi
116ff3: ff 56 04 call *0x4(%esi)
_Thread_Enable_dispatch();
116ff6: e8 9e 28 00 00 call 119899 <_Thread_Enable_dispatch>
116ffb: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
116ffd: 83 c4 10 add $0x10,%esp
117000: eb 05 jmp 117007 <rtems_timer_server_fire_when+0xd3>
117002: b8 14 00 00 00 mov $0x14,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
117007: 8d 65 f4 lea -0xc(%ebp),%esp
11700a: 5b pop %ebx
11700b: 5e pop %esi
11700c: 5f pop %edi
11700d: c9 leave
11700e: c3 ret
0010b531 <rtems_verror>:
static int rtems_verror(
rtems_error_code_t error_flag,
const char *printf_format,
va_list arglist
)
{
10b531: 55 push %ebp <== NOT EXECUTED
10b532: 89 e5 mov %esp,%ebp <== NOT EXECUTED
10b534: 57 push %edi <== NOT EXECUTED
10b535: 56 push %esi <== NOT EXECUTED
10b536: 53 push %ebx <== NOT EXECUTED
10b537: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
10b53a: 89 c3 mov %eax,%ebx <== NOT EXECUTED
10b53c: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED
10b53f: 89 4d dc mov %ecx,-0x24(%ebp) <== NOT EXECUTED
int local_errno = 0;
int chars_written = 0;
rtems_status_code status;
if (error_flag & RTEMS_ERROR_PANIC)
10b542: 25 00 00 00 20 and $0x20000000,%eax <== NOT EXECUTED
10b547: 89 45 e0 mov %eax,-0x20(%ebp) <== NOT EXECUTED
10b54a: 74 2a je 10b576 <rtems_verror+0x45> <== NOT EXECUTED
{
if (rtems_panic_in_progress++)
10b54c: a1 10 c2 12 00 mov 0x12c210,%eax <== NOT EXECUTED
10b551: 8d 50 01 lea 0x1(%eax),%edx <== NOT EXECUTED
10b554: 89 15 10 c2 12 00 mov %edx,0x12c210 <== NOT EXECUTED
10b55a: 85 c0 test %eax,%eax <== NOT EXECUTED
10b55c: 74 0b je 10b569 <rtems_verror+0x38> <== NOT EXECUTED
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
10b55e: a1 64 c3 12 00 mov 0x12c364,%eax <== NOT EXECUTED
10b563: 40 inc %eax <== NOT EXECUTED
10b564: a3 64 c3 12 00 mov %eax,0x12c364 <== NOT EXECUTED
_Thread_Disable_dispatch(); /* disable task switches */
/* don't aggravate things */
if (rtems_panic_in_progress > 2)
10b569: 83 3d 10 c2 12 00 02 cmpl $0x2,0x12c210 <== NOT EXECUTED
10b570: 0f 8f 1b 01 00 00 jg 10b691 <rtems_verror+0x160> <== NOT EXECUTED
return 0;
}
(void) fflush(stdout); /* in case stdout/stderr same */
10b576: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10b579: a1 a0 a0 12 00 mov 0x12a0a0,%eax <== NOT EXECUTED
10b57e: ff 70 08 pushl 0x8(%eax) <== NOT EXECUTED
10b581: e8 f2 bf 00 00 call 117578 <fflush> <== NOT EXECUTED
status = error_flag & ~RTEMS_ERROR_MASK;
10b586: 89 df mov %ebx,%edi <== NOT EXECUTED
10b588: 81 e7 ff ff ff 8f and $0x8fffffff,%edi <== NOT EXECUTED
if (error_flag & RTEMS_ERROR_ERRNO) /* include errno? */
10b58e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10b591: 31 f6 xor %esi,%esi <== NOT EXECUTED
10b593: f7 c3 00 00 00 40 test $0x40000000,%ebx <== NOT EXECUTED
10b599: 74 07 je 10b5a2 <rtems_verror+0x71> <== NOT EXECUTED
local_errno = errno;
10b59b: e8 5c bc 00 00 call 1171fc <__errno> <== NOT EXECUTED
10b5a0: 8b 30 mov (%eax),%esi <== NOT EXECUTED
#if defined(RTEMS_MULTIPROCESSING)
if (_System_state_Is_multiprocessing)
fprintf(stderr, "[%" PRIu32 "] ", _Configuration_MP_table->node);
#endif
chars_written += vfprintf(stderr, printf_format, arglist);
10b5a2: 52 push %edx <== NOT EXECUTED
10b5a3: ff 75 dc pushl -0x24(%ebp) <== NOT EXECUTED
10b5a6: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
10b5a9: a1 a0 a0 12 00 mov 0x12a0a0,%eax <== NOT EXECUTED
10b5ae: ff 70 0c pushl 0xc(%eax) <== NOT EXECUTED
10b5b1: e8 7a 1b 01 00 call 11d130 <vfprintf> <== NOT EXECUTED
10b5b6: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
if (status)
10b5b9: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10b5bc: 85 ff test %edi,%edi <== NOT EXECUTED
10b5be: 74 25 je 10b5e5 <rtems_verror+0xb4> <== NOT EXECUTED
chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status));
10b5c0: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10b5c3: 57 push %edi <== NOT EXECUTED
10b5c4: e8 53 ff ff ff call 10b51c <rtems_status_text> <== NOT EXECUTED
10b5c9: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
10b5cc: 50 push %eax <== NOT EXECUTED
10b5cd: 68 63 51 12 00 push $0x125163 <== NOT EXECUTED
10b5d2: a1 a0 a0 12 00 mov 0x12a0a0,%eax <== NOT EXECUTED
10b5d7: ff 70 0c pushl 0xc(%eax) <== NOT EXECUTED
10b5da: e8 e1 c2 00 00 call 1178c0 <fprintf> <== NOT EXECUTED
10b5df: 01 45 e4 add %eax,-0x1c(%ebp) <== NOT EXECUTED
10b5e2: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
if (local_errno)
10b5e5: 83 fe 00 cmp $0x0,%esi <== NOT EXECUTED
10b5e8: 74 41 je 10b62b <rtems_verror+0xfa> <== NOT EXECUTED
{
if ((local_errno > 0) && *strerror(local_errno))
10b5ea: 7e 25 jle 10b611 <rtems_verror+0xe0> <== NOT EXECUTED
10b5ec: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10b5ef: 56 push %esi <== NOT EXECUTED
10b5f0: e8 9b ca 00 00 call 118090 <strerror> <== NOT EXECUTED
10b5f5: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10b5f8: 80 38 00 cmpb $0x0,(%eax) <== NOT EXECUTED
10b5fb: 74 14 je 10b611 <rtems_verror+0xe0> <== NOT EXECUTED
chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno));
10b5fd: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10b600: 56 push %esi <== NOT EXECUTED
10b601: e8 8a ca 00 00 call 118090 <strerror> <== NOT EXECUTED
10b606: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
10b609: 50 push %eax <== NOT EXECUTED
10b60a: 68 71 51 12 00 push $0x125171 <== NOT EXECUTED
10b60f: eb 07 jmp 10b618 <rtems_verror+0xe7> <== NOT EXECUTED
else
chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno);
10b611: 50 push %eax <== NOT EXECUTED
10b612: 56 push %esi <== NOT EXECUTED
10b613: 68 7e 51 12 00 push $0x12517e <== NOT EXECUTED
10b618: a1 a0 a0 12 00 mov 0x12a0a0,%eax <== NOT EXECUTED
10b61d: ff 70 0c pushl 0xc(%eax) <== NOT EXECUTED
10b620: e8 9b c2 00 00 call 1178c0 <fprintf> <== NOT EXECUTED
10b625: 01 45 e4 add %eax,-0x1c(%ebp) <== NOT EXECUTED
10b628: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
chars_written += fprintf(stderr, "\n");
10b62b: 57 push %edi <== NOT EXECUTED
10b62c: 57 push %edi <== NOT EXECUTED
10b62d: 68 7c 58 12 00 push $0x12587c <== NOT EXECUTED
10b632: a1 a0 a0 12 00 mov 0x12a0a0,%eax <== NOT EXECUTED
10b637: ff 70 0c pushl 0xc(%eax) <== NOT EXECUTED
10b63a: e8 81 c2 00 00 call 1178c0 <fprintf> <== NOT EXECUTED
10b63f: 89 c7 mov %eax,%edi <== NOT EXECUTED
(void) fflush(stderr);
10b641: 59 pop %ecx <== NOT EXECUTED
10b642: a1 a0 a0 12 00 mov 0x12a0a0,%eax <== NOT EXECUTED
10b647: ff 70 0c pushl 0xc(%eax) <== NOT EXECUTED
10b64a: e8 29 bf 00 00 call 117578 <fflush> <== NOT EXECUTED
if (error_flag & (RTEMS_ERROR_PANIC | RTEMS_ERROR_ABORT))
10b64f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10b652: 81 e3 00 00 00 30 and $0x30000000,%ebx <== NOT EXECUTED
10b658: 75 08 jne 10b662 <rtems_verror+0x131> <== NOT EXECUTED
chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno));
else
chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno);
}
chars_written += fprintf(stderr, "\n");
10b65a: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
10b65d: 8d 04 17 lea (%edi,%edx,1),%eax <== NOT EXECUTED
10b660: eb 31 jmp 10b693 <rtems_verror+0x162> <== NOT EXECUTED
(void) fflush(stderr);
if (error_flag & (RTEMS_ERROR_PANIC | RTEMS_ERROR_ABORT))
{
if (error_flag & RTEMS_ERROR_PANIC)
10b662: 83 7d e0 00 cmpl $0x0,-0x20(%ebp) <== NOT EXECUTED
10b666: 74 16 je 10b67e <rtems_verror+0x14d> <== NOT EXECUTED
{
rtems_error(0, "fatal error, exiting");
10b668: 52 push %edx <== NOT EXECUTED
10b669: 52 push %edx <== NOT EXECUTED
10b66a: 68 92 51 12 00 push $0x125192 <== NOT EXECUTED
10b66f: 6a 00 push $0x0 <== NOT EXECUTED
10b671: e8 3d 00 00 00 call 10b6b3 <rtems_error> <== NOT EXECUTED
_exit(local_errno);
10b676: 89 34 24 mov %esi,(%esp) <== NOT EXECUTED
10b679: e8 92 09 00 00 call 10c010 <_exit> <== NOT EXECUTED
}
else
{
rtems_error(0, "fatal error, aborting");
10b67e: 50 push %eax <== NOT EXECUTED
10b67f: 50 push %eax <== NOT EXECUTED
10b680: 68 a7 51 12 00 push $0x1251a7 <== NOT EXECUTED
10b685: 6a 00 push $0x0 <== NOT EXECUTED
10b687: e8 27 00 00 00 call 10b6b3 <rtems_error> <== NOT EXECUTED
abort();
10b68c: e8 37 bb 00 00 call 1171c8 <abort> <== NOT EXECUTED
10b691: 31 c0 xor %eax,%eax <== NOT EXECUTED
}
}
return chars_written;
}
10b693: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
10b696: 5b pop %ebx <== NOT EXECUTED
10b697: 5e pop %esi <== NOT EXECUTED
10b698: 5f pop %edi <== NOT EXECUTED
10b699: c9 leave <== NOT EXECUTED
10b69a: c3 ret <== NOT EXECUTED
0012831e <scanInt>:
/*
* Extract an integer value from the database
*/
static int
scanInt(FILE *fp, int *val)
{
12831e: 55 push %ebp
12831f: 89 e5 mov %esp,%ebp
128321: 57 push %edi
128322: 56 push %esi
128323: 53 push %ebx
128324: 83 ec 3c sub $0x3c,%esp
128327: 89 c3 mov %eax,%ebx
128329: 89 55 e0 mov %edx,-0x20(%ebp)
12832c: 31 f6 xor %esi,%esi
12832e: c7 45 e4 ff ff ff 7f movl $0x7fffffff,-0x1c(%ebp)
128335: 31 ff xor %edi,%edi
sign = 1;
}
if (!isdigit(c))
return 0;
d = c - '0';
if ((i > (limit / 10))
128337: 89 7d c4 mov %edi,-0x3c(%ebp)
unsigned int limit = INT_MAX;
int sign = 0;
int d;
for (;;) {
c = getc(fp);
12833a: 8b 43 04 mov 0x4(%ebx),%eax
12833d: 48 dec %eax
12833e: 89 43 04 mov %eax,0x4(%ebx)
128341: 85 c0 test %eax,%eax
128343: 79 15 jns 12835a <scanInt+0x3c> <== ALWAYS TAKEN
128345: 50 push %eax <== NOT EXECUTED
128346: 50 push %eax <== NOT EXECUTED
128347: 53 push %ebx <== NOT EXECUTED
128348: ff 35 e0 4e 16 00 pushl 0x164ee0 <== NOT EXECUTED
12834e: e8 bd aa 01 00 call 142e10 <__srget_r> <== NOT EXECUTED
128353: 89 c1 mov %eax,%ecx <== NOT EXECUTED
128355: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
128358: eb 08 jmp 128362 <scanInt+0x44> <== NOT EXECUTED
12835a: 8b 03 mov (%ebx),%eax
12835c: 0f b6 08 movzbl (%eax),%ecx
12835f: 40 inc %eax
128360: 89 03 mov %eax,(%ebx)
if (c == ':')
128362: 83 f9 3a cmp $0x3a,%ecx
128365: 74 4a je 1283b1 <scanInt+0x93>
break;
if (sign == 0) {
128367: 85 f6 test %esi,%esi
128369: 75 11 jne 12837c <scanInt+0x5e> <== NEVER TAKEN
if (c == '-') {
sign = -1;
limit++;
continue;
12836b: 66 be 01 00 mov $0x1,%si
for (;;) {
c = getc(fp);
if (c == ':')
break;
if (sign == 0) {
if (c == '-') {
12836f: 83 f9 2d cmp $0x2d,%ecx
128372: 75 08 jne 12837c <scanInt+0x5e> <== ALWAYS TAKEN
sign = -1;
limit++;
128374: ff 45 e4 incl -0x1c(%ebp) <== NOT EXECUTED
128377: 83 ce ff or $0xffffffff,%esi <== NOT EXECUTED
continue;
12837a: eb be jmp 12833a <scanInt+0x1c> <== NOT EXECUTED
}
sign = 1;
}
if (!isdigit(c))
12837c: a1 c0 4e 16 00 mov 0x164ec0,%eax
128381: f6 44 08 01 04 testb $0x4,0x1(%eax,%ecx,1)
128386: 74 3f je 1283c7 <scanInt+0xa9> <== NEVER TAKEN
return 0;
d = c - '0';
if ((i > (limit / 10))
128388: 8b 45 e4 mov -0x1c(%ebp),%eax
12838b: bf 0a 00 00 00 mov $0xa,%edi
128390: 31 d2 xor %edx,%edx
128392: f7 f7 div %edi
128394: 89 55 d4 mov %edx,-0x2c(%ebp)
128397: 39 45 c4 cmp %eax,-0x3c(%ebp)
12839a: 77 2b ja 1283c7 <scanInt+0xa9> <== NEVER TAKEN
}
sign = 1;
}
if (!isdigit(c))
return 0;
d = c - '0';
12839c: 83 e9 30 sub $0x30,%ecx
if ((i > (limit / 10))
12839f: 39 45 c4 cmp %eax,-0x3c(%ebp)
1283a2: 75 04 jne 1283a8 <scanInt+0x8a> <== ALWAYS TAKEN
1283a4: 39 d1 cmp %edx,%ecx <== NOT EXECUTED
1283a6: 77 1f ja 1283c7 <scanInt+0xa9> <== NOT EXECUTED
|| ((i == (limit / 10)) && (d > (limit % 10))))
return 0;
i = i * 10 + d;
1283a8: 6b 7d c4 0a imul $0xa,-0x3c(%ebp),%edi
1283ac: 8d 3c 39 lea (%ecx,%edi,1),%edi
1283af: eb 86 jmp 128337 <scanInt+0x19>
1283b1: 8b 7d c4 mov -0x3c(%ebp),%edi
}
if (sign == 0)
1283b4: 85 f6 test %esi,%esi
1283b6: 74 0f je 1283c7 <scanInt+0xa9> <== NEVER TAKEN
return 0;
*val = i * sign;
1283b8: 0f af f7 imul %edi,%esi
1283bb: 8b 45 e0 mov -0x20(%ebp),%eax
1283be: 89 30 mov %esi,(%eax)
1283c0: b8 01 00 00 00 mov $0x1,%eax
return 1;
1283c5: eb 02 jmp 1283c9 <scanInt+0xab>
1283c7: 31 c0 xor %eax,%eax
}
1283c9: 8d 65 f4 lea -0xc(%ebp),%esp
1283cc: 5b pop %ebx
1283cd: 5e pop %esi
1283ce: 5f pop %edi
1283cf: c9 leave
1283d0: c3 ret
001283d1 <scanString>:
/*
* Extract a string value from the database
*/
static int
scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag)
{
1283d1: 55 push %ebp
1283d2: 89 e5 mov %esp,%ebp
1283d4: 57 push %edi
1283d5: 56 push %esi
1283d6: 53 push %ebx
1283d7: 83 ec 1c sub $0x1c,%esp
1283da: 89 c3 mov %eax,%ebx
1283dc: 89 ce mov %ecx,%esi
1283de: 8b 7d 08 mov 0x8(%ebp),%edi
1283e1: 8b 4d 0c mov 0xc(%ebp),%ecx
int c;
*name = *bufp;
1283e4: 8b 06 mov (%esi),%eax
1283e6: 89 02 mov %eax,(%edx)
for (;;) {
c = getc(fp);
1283e8: 8b 43 04 mov 0x4(%ebx),%eax
1283eb: 48 dec %eax
1283ec: 89 43 04 mov %eax,0x4(%ebx)
1283ef: 85 c0 test %eax,%eax
1283f1: 79 19 jns 12840c <scanString+0x3b>
1283f3: 52 push %edx
1283f4: 52 push %edx
1283f5: 53 push %ebx
1283f6: ff 35 e0 4e 16 00 pushl 0x164ee0
1283fc: 89 4d e4 mov %ecx,-0x1c(%ebp)
1283ff: e8 0c aa 01 00 call 142e10 <__srget_r>
128404: 83 c4 10 add $0x10,%esp
128407: 8b 4d e4 mov -0x1c(%ebp),%ecx
12840a: eb 08 jmp 128414 <scanString+0x43>
12840c: 8b 13 mov (%ebx),%edx
12840e: 0f b6 02 movzbl (%edx),%eax
128411: 42 inc %edx
128412: 89 13 mov %edx,(%ebx)
if (c == ':') {
128414: 83 f8 3a cmp $0x3a,%eax
128417: 75 06 jne 12841f <scanString+0x4e>
if (nlFlag)
128419: 85 c9 test %ecx,%ecx
12841b: 74 21 je 12843e <scanString+0x6d> <== ALWAYS TAKEN
12841d: eb 2f jmp 12844e <scanString+0x7d> <== NOT EXECUTED
return 0;
break;
}
if (c == '\n') {
12841f: 83 f8 0a cmp $0xa,%eax
128422: 75 06 jne 12842a <scanString+0x59>
if (!nlFlag)
128424: 85 c9 test %ecx,%ecx
128426: 75 16 jne 12843e <scanString+0x6d> <== ALWAYS TAKEN
128428: eb 24 jmp 12844e <scanString+0x7d> <== NOT EXECUTED
return 0;
break;
}
if (c == EOF)
12842a: 83 f8 ff cmp $0xffffffff,%eax
12842d: 74 1f je 12844e <scanString+0x7d> <== NEVER TAKEN
return 0;
if (*nleft < 2)
12842f: 83 3f 01 cmpl $0x1,(%edi)
128432: 76 1a jbe 12844e <scanString+0x7d> <== NEVER TAKEN
return 0;
**bufp = c;
128434: 8b 16 mov (%esi),%edx
128436: 88 02 mov %al,(%edx)
++(*bufp);
128438: ff 06 incl (%esi)
--(*nleft);
12843a: ff 0f decl (%edi)
}
12843c: eb aa jmp 1283e8 <scanString+0x17>
**bufp = '\0';
12843e: 8b 06 mov (%esi),%eax
128440: c6 00 00 movb $0x0,(%eax)
++(*bufp);
128443: ff 06 incl (%esi)
--(*nleft);
128445: ff 0f decl (%edi)
128447: b8 01 00 00 00 mov $0x1,%eax
return 1;
12844c: eb 02 jmp 128450 <scanString+0x7f>
12844e: 31 c0 xor %eax,%eax
}
128450: 8d 65 f4 lea -0xc(%ebp),%esp
128453: 5b pop %ebx
128454: 5e pop %esi
128455: 5f pop %edi
128456: c9 leave
128457: c3 ret
00128458 <scangr>:
FILE *fp,
struct group *grp,
char *buffer,
size_t bufsize
)
{
128458: 55 push %ebp
128459: 89 e5 mov %esp,%ebp
12845b: 57 push %edi
12845c: 56 push %esi
12845d: 53 push %ebx
12845e: 83 ec 34 sub $0x34,%esp
128461: 89 c6 mov %eax,%esi
128463: 89 d3 mov %edx,%ebx
128465: 89 4d d4 mov %ecx,-0x2c(%ebp)
int grgid;
char *grmem, *cp;
int memcount;
if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)
128468: 8d 7d d4 lea -0x2c(%ebp),%edi
12846b: 6a 00 push $0x0
12846d: 8d 45 08 lea 0x8(%ebp),%eax
128470: 50 push %eax
128471: 89 f9 mov %edi,%ecx
128473: 89 f0 mov %esi,%eax
128475: e8 57 ff ff ff call 1283d1 <scanString>
12847a: 83 c4 10 add $0x10,%esp
12847d: 85 c0 test %eax,%eax
12847f: 0f 84 c8 00 00 00 je 12854d <scangr+0xf5> <== NEVER TAKEN
|| !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0)
128485: 50 push %eax
128486: 50 push %eax
128487: 8d 53 04 lea 0x4(%ebx),%edx
12848a: 6a 00 push $0x0
12848c: 8d 45 08 lea 0x8(%ebp),%eax
12848f: 50 push %eax
128490: 89 f9 mov %edi,%ecx
128492: 89 f0 mov %esi,%eax
128494: e8 38 ff ff ff call 1283d1 <scanString>
{
int grgid;
char *grmem, *cp;
int memcount;
if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)
128499: 83 c4 10 add $0x10,%esp
12849c: 85 c0 test %eax,%eax
12849e: 0f 84 a9 00 00 00 je 12854d <scangr+0xf5> <== NEVER TAKEN
|| !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0)
|| !scanInt(fp, &grgid)
1284a4: 8d 55 e4 lea -0x1c(%ebp),%edx
1284a7: 89 f0 mov %esi,%eax
1284a9: e8 70 fe ff ff call 12831e <scanInt>
{
int grgid;
char *grmem, *cp;
int memcount;
if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)
1284ae: 85 c0 test %eax,%eax
1284b0: 0f 84 97 00 00 00 je 12854d <scangr+0xf5> <== NEVER TAKEN
|| !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0)
|| !scanInt(fp, &grgid)
|| !scanString(fp, &grmem, &buffer, &bufsize, 1))
1284b6: 51 push %ecx
1284b7: 51 push %ecx
1284b8: 8d 55 e0 lea -0x20(%ebp),%edx
1284bb: 6a 01 push $0x1
1284bd: 8d 45 08 lea 0x8(%ebp),%eax
1284c0: 50 push %eax
1284c1: 89 f9 mov %edi,%ecx
1284c3: 89 f0 mov %esi,%eax
1284c5: e8 07 ff ff ff call 1283d1 <scanString>
{
int grgid;
char *grmem, *cp;
int memcount;
if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)
1284ca: 83 c4 10 add $0x10,%esp
1284cd: 85 c0 test %eax,%eax
1284cf: 74 7c je 12854d <scangr+0xf5> <== NEVER TAKEN
|| !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0)
|| !scanInt(fp, &grgid)
|| !scanString(fp, &grmem, &buffer, &bufsize, 1))
return 0;
grp->gr_gid = grgid;
1284d1: 8b 45 e4 mov -0x1c(%ebp),%eax
1284d4: 66 89 43 08 mov %ax,0x8(%ebx)
/*
* Determine number of members
*/
for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {
1284d8: 8b 7d e0 mov -0x20(%ebp),%edi
1284db: 89 fa mov %edi,%edx
1284dd: b8 01 00 00 00 mov $0x1,%eax
1284e2: eb 12 jmp 1284f6 <scangr+0x9e>
if(*cp == ',')
memcount++;
1284e4: 80 7d d3 2c cmpb $0x2c,-0x2d(%ebp)
1284e8: 0f 94 c1 sete %cl
1284eb: 89 ce mov %ecx,%esi
1284ed: 81 e6 ff 00 00 00 and $0xff,%esi
1284f3: 01 f0 add %esi,%eax
grp->gr_gid = grgid;
/*
* Determine number of members
*/
for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {
1284f5: 42 inc %edx
1284f6: 8a 0a mov (%edx),%cl
1284f8: 88 4d d3 mov %cl,-0x2d(%ebp)
1284fb: 84 c9 test %cl,%cl
1284fd: 75 e5 jne 1284e4 <scangr+0x8c>
}
/*
* Hack to produce (hopefully) a suitably-aligned array of pointers
*/
if (bufsize < (((memcount+1)*sizeof(char *)) + 15))
1284ff: 8d 04 85 13 00 00 00 lea 0x13(,%eax,4),%eax
128506: 39 45 08 cmp %eax,0x8(%ebp)
128509: 72 42 jb 12854d <scangr+0xf5> <== NEVER TAKEN
return 0;
grp->gr_mem = (char **)(((uintptr_t)buffer + 15) & ~15);
12850b: 8b 45 d4 mov -0x2c(%ebp),%eax
12850e: 83 c0 0f add $0xf,%eax
128511: 83 e0 f0 and $0xfffffff0,%eax
128514: 89 43 0c mov %eax,0xc(%ebx)
/*
* Fill in pointer array
*/
grp->gr_mem[0] = grmem;
128517: 89 38 mov %edi,(%eax)
128519: 8b 45 e0 mov -0x20(%ebp),%eax
12851c: 40 inc %eax
12851d: ba 01 00 00 00 mov $0x1,%edx
for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {
128522: eb 11 jmp 128535 <scangr+0xdd>
if(*cp == ',') {
128524: 80 f9 2c cmp $0x2c,%cl
128527: 75 0b jne 128534 <scangr+0xdc> <== ALWAYS TAKEN
*cp = '\0';
128529: c6 40 ff 00 movb $0x0,-0x1(%eax) <== NOT EXECUTED
grp->gr_mem[memcount++] = cp + 1;
12852d: 8b 4b 0c mov 0xc(%ebx),%ecx <== NOT EXECUTED
128530: 89 04 91 mov %eax,(%ecx,%edx,4) <== NOT EXECUTED
128533: 42 inc %edx <== NOT EXECUTED
128534: 40 inc %eax
/*
* Fill in pointer array
*/
grp->gr_mem[0] = grmem;
for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {
128535: 8a 48 ff mov -0x1(%eax),%cl
128538: 84 c9 test %cl,%cl
12853a: 75 e8 jne 128524 <scangr+0xcc>
if(*cp == ',') {
*cp = '\0';
grp->gr_mem[memcount++] = cp + 1;
}
}
grp->gr_mem[memcount] = NULL;
12853c: 8b 43 0c mov 0xc(%ebx),%eax
12853f: c7 04 90 00 00 00 00 movl $0x0,(%eax,%edx,4)
128546: b8 01 00 00 00 mov $0x1,%eax
return 1;
12854b: eb 02 jmp 12854f <scangr+0xf7>
12854d: 31 c0 xor %eax,%eax
}
12854f: 8d 65 f4 lea -0xc(%ebp),%esp
128552: 5b pop %ebx
128553: 5e pop %esi
128554: 5f pop %edi
128555: c9 leave
128556: c3 ret
0012858f <scanpw>:
FILE *fp,
struct passwd *pwd,
char *buffer,
size_t bufsize
)
{
12858f: 55 push %ebp
128590: 89 e5 mov %esp,%ebp
128592: 57 push %edi
128593: 56 push %esi
128594: 53 push %ebx
128595: 83 ec 34 sub $0x34,%esp
128598: 89 c6 mov %eax,%esi
12859a: 89 d3 mov %edx,%ebx
12859c: 89 4d d4 mov %ecx,-0x2c(%ebp)
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
12859f: 8d 7d d4 lea -0x2c(%ebp),%edi
1285a2: 6a 00 push $0x0
1285a4: 8d 45 08 lea 0x8(%ebp),%eax
1285a7: 50 push %eax
1285a8: 89 f9 mov %edi,%ecx
1285aa: 89 f0 mov %esi,%eax
1285ac: e8 20 fe ff ff call 1283d1 <scanString>
1285b1: 83 c4 10 add $0x10,%esp
1285b4: 85 c0 test %eax,%eax
1285b6: 0f 84 c4 00 00 00 je 128680 <scanpw+0xf1> <== NEVER TAKEN
|| !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0)
1285bc: 51 push %ecx
1285bd: 51 push %ecx
1285be: 8d 53 04 lea 0x4(%ebx),%edx
1285c1: 6a 00 push $0x0
1285c3: 8d 45 08 lea 0x8(%ebp),%eax
1285c6: 50 push %eax
1285c7: 89 f9 mov %edi,%ecx
1285c9: 89 f0 mov %esi,%eax
1285cb: e8 01 fe ff ff call 1283d1 <scanString>
size_t bufsize
)
{
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
1285d0: 83 c4 10 add $0x10,%esp
1285d3: 85 c0 test %eax,%eax
1285d5: 0f 84 a5 00 00 00 je 128680 <scanpw+0xf1> <== NEVER TAKEN
|| !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0)
|| !scanInt(fp, &pwuid)
1285db: 8d 55 e4 lea -0x1c(%ebp),%edx
1285de: 89 f0 mov %esi,%eax
1285e0: e8 39 fd ff ff call 12831e <scanInt>
size_t bufsize
)
{
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
1285e5: 85 c0 test %eax,%eax
1285e7: 0f 84 93 00 00 00 je 128680 <scanpw+0xf1> <== NEVER TAKEN
|| !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0)
|| !scanInt(fp, &pwuid)
|| !scanInt(fp, &pwgid)
1285ed: 8d 55 e0 lea -0x20(%ebp),%edx
1285f0: 89 f0 mov %esi,%eax
1285f2: e8 27 fd ff ff call 12831e <scanInt>
size_t bufsize
)
{
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
1285f7: 85 c0 test %eax,%eax
1285f9: 0f 84 81 00 00 00 je 128680 <scanpw+0xf1> <== NEVER TAKEN
|| !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0)
|| !scanInt(fp, &pwuid)
|| !scanInt(fp, &pwgid)
|| !scanString(fp, &pwd->pw_comment, &buffer, &bufsize, 0)
1285ff: 52 push %edx
128600: 52 push %edx
128601: 8d 53 0c lea 0xc(%ebx),%edx
128604: 6a 00 push $0x0
128606: 8d 45 08 lea 0x8(%ebp),%eax
128609: 50 push %eax
12860a: 89 f9 mov %edi,%ecx
12860c: 89 f0 mov %esi,%eax
12860e: e8 be fd ff ff call 1283d1 <scanString>
size_t bufsize
)
{
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
128613: 83 c4 10 add $0x10,%esp
128616: 85 c0 test %eax,%eax
128618: 74 66 je 128680 <scanpw+0xf1> <== NEVER TAKEN
|| !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0)
|| !scanInt(fp, &pwuid)
|| !scanInt(fp, &pwgid)
|| !scanString(fp, &pwd->pw_comment, &buffer, &bufsize, 0)
|| !scanString(fp, &pwd->pw_gecos, &buffer, &bufsize, 0)
12861a: 50 push %eax
12861b: 50 push %eax
12861c: 8d 53 10 lea 0x10(%ebx),%edx
12861f: 6a 00 push $0x0
128621: 8d 45 08 lea 0x8(%ebp),%eax
128624: 50 push %eax
128625: 89 f9 mov %edi,%ecx
128627: 89 f0 mov %esi,%eax
128629: e8 a3 fd ff ff call 1283d1 <scanString>
size_t bufsize
)
{
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
12862e: 83 c4 10 add $0x10,%esp
128631: 85 c0 test %eax,%eax
128633: 74 4b je 128680 <scanpw+0xf1> <== NEVER TAKEN
|| !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0)
|| !scanInt(fp, &pwuid)
|| !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)
128635: 51 push %ecx
128636: 51 push %ecx
128637: 8d 53 14 lea 0x14(%ebx),%edx
12863a: 6a 00 push $0x0
12863c: 8d 45 08 lea 0x8(%ebp),%eax
12863f: 50 push %eax
128640: 89 f9 mov %edi,%ecx
128642: 89 f0 mov %esi,%eax
128644: e8 88 fd ff ff call 1283d1 <scanString>
size_t bufsize
)
{
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
128649: 83 c4 10 add $0x10,%esp
12864c: 85 c0 test %eax,%eax
12864e: 74 30 je 128680 <scanpw+0xf1> <== NEVER TAKEN
|| !scanInt(fp, &pwuid)
|| !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))
128650: 52 push %edx
128651: 52 push %edx
128652: 8d 53 18 lea 0x18(%ebx),%edx
128655: 6a 01 push $0x1
128657: 8d 45 08 lea 0x8(%ebp),%eax
12865a: 50 push %eax
12865b: 89 f9 mov %edi,%ecx
12865d: 89 f0 mov %esi,%eax
12865f: e8 6d fd ff ff call 1283d1 <scanString>
size_t bufsize
)
{
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
128664: 83 c4 10 add $0x10,%esp
128667: 85 c0 test %eax,%eax
128669: 74 15 je 128680 <scanpw+0xf1> <== NEVER TAKEN
|| !scanString(fp, &pwd->pw_comment, &buffer, &bufsize, 0)
|| !scanString(fp, &pwd->pw_gecos, &buffer, &bufsize, 0)
|| !scanString(fp, &pwd->pw_dir, &buffer, &bufsize, 0)
|| !scanString(fp, &pwd->pw_shell, &buffer, &bufsize, 1))
return 0;
pwd->pw_uid = pwuid;
12866b: 8b 45 e4 mov -0x1c(%ebp),%eax
12866e: 66 89 43 08 mov %ax,0x8(%ebx)
pwd->pw_gid = pwgid;
128672: 8b 45 e0 mov -0x20(%ebp),%eax
128675: 66 89 43 0a mov %ax,0xa(%ebx)
128679: b8 01 00 00 00 mov $0x1,%eax
return 1;
12867e: eb 02 jmp 128682 <scanpw+0xf3>
128680: 31 c0 xor %eax,%eax
}
128682: 8d 65 f4 lea -0xc(%ebp),%esp
128685: 5b pop %ebx
128686: 5e pop %esi
128687: 5f pop %edi
128688: c9 leave
128689: c3 ret
0010ad98 <sched_get_priority_max>:
#include <rtems/posix/priority.h>
int sched_get_priority_max(
int policy
)
{
10ad98: 55 push %ebp
10ad99: 89 e5 mov %esp,%ebp
10ad9b: 83 ec 08 sub $0x8,%esp
10ad9e: 8b 4d 08 mov 0x8(%ebp),%ecx
switch ( policy ) {
10ada1: 83 f9 04 cmp $0x4,%ecx
10ada4: 77 0b ja 10adb1 <sched_get_priority_max+0x19>
10ada6: b8 01 00 00 00 mov $0x1,%eax
10adab: d3 e0 shl %cl,%eax
10adad: a8 17 test $0x17,%al
10adaf: 75 10 jne 10adc1 <sched_get_priority_max+0x29><== ALWAYS TAKEN
case SCHED_RR:
case SCHED_SPORADIC:
break;
default:
rtems_set_errno_and_return_minus_one( EINVAL );
10adb1: e8 3e 89 00 00 call 1136f4 <__errno>
10adb6: c7 00 16 00 00 00 movl $0x16,(%eax)
10adbc: 83 c8 ff or $0xffffffff,%eax
10adbf: eb 08 jmp 10adc9 <sched_get_priority_max+0x31>
}
return POSIX_SCHEDULER_MAXIMUM_PRIORITY;
10adc1: 0f b6 05 18 32 12 00 movzbl 0x123218,%eax
10adc8: 48 dec %eax
}
10adc9: c9 leave
10adca: c3 ret
0010adcc <sched_get_priority_min>:
#include <rtems/posix/priority.h>
int sched_get_priority_min(
int policy
)
{
10adcc: 55 push %ebp
10adcd: 89 e5 mov %esp,%ebp
10adcf: 83 ec 08 sub $0x8,%esp
10add2: 8b 4d 08 mov 0x8(%ebp),%ecx
switch ( policy ) {
10add5: 83 f9 04 cmp $0x4,%ecx
10add8: 77 11 ja 10adeb <sched_get_priority_min+0x1f>
10adda: ba 01 00 00 00 mov $0x1,%edx
10addf: d3 e2 shl %cl,%edx
10ade1: b8 01 00 00 00 mov $0x1,%eax
10ade6: 80 e2 17 and $0x17,%dl
10ade9: 75 0e jne 10adf9 <sched_get_priority_min+0x2d><== ALWAYS TAKEN
case SCHED_RR:
case SCHED_SPORADIC:
break;
default:
rtems_set_errno_and_return_minus_one( EINVAL );
10adeb: e8 04 89 00 00 call 1136f4 <__errno>
10adf0: c7 00 16 00 00 00 movl $0x16,(%eax)
10adf6: 83 c8 ff or $0xffffffff,%eax
}
return POSIX_SCHEDULER_MINIMUM_PRIORITY;
}
10adf9: c9 leave
10adfa: c3 ret
0010adfc <sched_rr_get_interval>:
int sched_rr_get_interval(
pid_t pid,
struct timespec *interval
)
{
10adfc: 55 push %ebp
10adfd: 89 e5 mov %esp,%ebp
10adff: 56 push %esi
10ae00: 53 push %ebx
10ae01: 8b 75 08 mov 0x8(%ebp),%esi
10ae04: 8b 5d 0c mov 0xc(%ebp),%ebx
/*
* Only supported for the "calling process" (i.e. this node).
*/
if ( pid && pid != getpid() )
10ae07: 85 f6 test %esi,%esi
10ae09: 74 16 je 10ae21 <sched_rr_get_interval+0x25><== NEVER TAKEN
10ae0b: e8 14 cf ff ff call 107d24 <getpid>
10ae10: 39 c6 cmp %eax,%esi
10ae12: 74 0d je 10ae21 <sched_rr_get_interval+0x25>
rtems_set_errno_and_return_minus_one( ESRCH );
10ae14: e8 db 88 00 00 call 1136f4 <__errno>
10ae19: c7 00 03 00 00 00 movl $0x3,(%eax)
10ae1f: eb 0f jmp 10ae30 <sched_rr_get_interval+0x34>
if ( !interval )
10ae21: 85 db test %ebx,%ebx
10ae23: 75 10 jne 10ae35 <sched_rr_get_interval+0x39>
rtems_set_errno_and_return_minus_one( EINVAL );
10ae25: e8 ca 88 00 00 call 1136f4 <__errno>
10ae2a: c7 00 16 00 00 00 movl $0x16,(%eax)
10ae30: 83 c8 ff or $0xffffffff,%eax
10ae33: eb 13 jmp 10ae48 <sched_rr_get_interval+0x4c>
_Timespec_From_ticks( _Thread_Ticks_per_timeslice, interval );
10ae35: 50 push %eax
10ae36: 50 push %eax
10ae37: 53 push %ebx
10ae38: ff 35 c4 71 12 00 pushl 0x1271c4
10ae3e: e8 a9 2f 00 00 call 10ddec <_Timespec_From_ticks>
10ae43: 31 c0 xor %eax,%eax
return 0;
10ae45: 83 c4 10 add $0x10,%esp
}
10ae48: 8d 65 f8 lea -0x8(%ebp),%esp
10ae4b: 5b pop %ebx
10ae4c: 5e pop %esi
10ae4d: c9 leave
10ae4e: c3 ret
0010d3f8 <sem_open>:
int oflag,
...
/* mode_t mode, */
/* unsigned int value */
)
{
10d3f8: 55 push %ebp
10d3f9: 89 e5 mov %esp,%ebp
10d3fb: 57 push %edi
10d3fc: 56 push %esi
10d3fd: 53 push %ebx
10d3fe: 83 ec 2c sub $0x2c,%esp
10d401: 8b 75 08 mov 0x8(%ebp),%esi
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
10d404: a1 f8 b3 12 00 mov 0x12b3f8,%eax
10d409: 40 inc %eax
10d40a: a3 f8 b3 12 00 mov %eax,0x12b3f8
POSIX_Semaphore_Control *the_semaphore;
Objects_Locations location;
_Thread_Disable_dispatch();
if ( oflag & O_CREAT ) {
10d40f: 8b 45 0c mov 0xc(%ebp),%eax
10d412: 25 00 02 00 00 and $0x200,%eax
10d417: 89 45 d4 mov %eax,-0x2c(%ebp)
10d41a: 75 04 jne 10d420 <sem_open+0x28>
10d41c: 31 ff xor %edi,%edi
10d41e: eb 03 jmp 10d423 <sem_open+0x2b>
va_start(arg, oflag);
mode = (mode_t) va_arg( arg, unsigned int );
value = va_arg( arg, unsigned int );
10d420: 8b 7d 14 mov 0x14(%ebp),%edi
va_end(arg);
}
status = _POSIX_Semaphore_Name_to_id( name, &the_semaphore_id );
10d423: 52 push %edx
10d424: 52 push %edx
10d425: 8d 45 e4 lea -0x1c(%ebp),%eax
10d428: 50 push %eax
10d429: 56 push %esi
10d42a: e8 65 60 00 00 call 113494 <_POSIX_Semaphore_Name_to_id>
10d42f: 89 c3 mov %eax,%ebx
* and we can just return a pointer to the id. Otherwise we may
* need to check to see if this is a "semaphore does not exist"
* or some other miscellaneous error on the name.
*/
if ( status ) {
10d431: 83 c4 10 add $0x10,%esp
10d434: 85 c0 test %eax,%eax
10d436: 74 19 je 10d451 <sem_open+0x59>
/*
* Unless provided a valid name that did not already exist
* and we are willing to create then it is an error.
*/
if ( !( status == ENOENT && (oflag & O_CREAT) ) ) {
10d438: 83 f8 02 cmp $0x2,%eax
10d43b: 75 06 jne 10d443 <sem_open+0x4b> <== NEVER TAKEN
10d43d: 83 7d d4 00 cmpl $0x0,-0x2c(%ebp)
10d441: 75 59 jne 10d49c <sem_open+0xa4>
_Thread_Enable_dispatch();
10d443: e8 11 25 00 00 call 10f959 <_Thread_Enable_dispatch>
rtems_set_errno_and_return_minus_one_cast( status, sem_t * );
10d448: e8 23 95 00 00 call 116970 <__errno>
10d44d: 89 18 mov %ebx,(%eax)
10d44f: eb 1f jmp 10d470 <sem_open+0x78>
/*
* Check for existence with creation.
*/
if ( (oflag & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL) ) {
10d451: 8b 45 0c mov 0xc(%ebp),%eax
10d454: 25 00 0a 00 00 and $0xa00,%eax
10d459: 3d 00 0a 00 00 cmp $0xa00,%eax
10d45e: 75 15 jne 10d475 <sem_open+0x7d>
_Thread_Enable_dispatch();
10d460: e8 f4 24 00 00 call 10f959 <_Thread_Enable_dispatch>
rtems_set_errno_and_return_minus_one_cast( EEXIST, sem_t * );
10d465: e8 06 95 00 00 call 116970 <__errno>
10d46a: c7 00 11 00 00 00 movl $0x11,(%eax)
10d470: 83 c8 ff or $0xffffffff,%eax
10d473: eb 4a jmp 10d4bf <sem_open+0xc7>
10d475: 50 push %eax
10d476: 8d 45 dc lea -0x24(%ebp),%eax
10d479: 50 push %eax
10d47a: ff 75 e4 pushl -0x1c(%ebp)
10d47d: 68 e0 b6 12 00 push $0x12b6e0
10d482: e8 99 1c 00 00 call 10f120 <_Objects_Get>
}
the_semaphore = _POSIX_Semaphore_Get( &the_semaphore_id, &location );
10d487: 89 45 e0 mov %eax,-0x20(%ebp)
the_semaphore->open_count += 1;
10d48a: ff 40 18 incl 0x18(%eax)
_Thread_Enable_dispatch();
10d48d: e8 c7 24 00 00 call 10f959 <_Thread_Enable_dispatch>
_Thread_Enable_dispatch();
10d492: e8 c2 24 00 00 call 10f959 <_Thread_Enable_dispatch>
goto return_id;
10d497: 83 c4 10 add $0x10,%esp
10d49a: eb 1d jmp 10d4b9 <sem_open+0xc1>
/*
* At this point, the semaphore does not exist and everything has been
* checked. We should go ahead and create a semaphore.
*/
status =_POSIX_Semaphore_Create_support(
10d49c: 8d 45 e0 lea -0x20(%ebp),%eax
10d49f: 50 push %eax
10d4a0: 57 push %edi
10d4a1: 6a 00 push $0x0
10d4a3: 56 push %esi
10d4a4: e8 b7 5e 00 00 call 113360 <_POSIX_Semaphore_Create_support>
10d4a9: 89 c3 mov %eax,%ebx
/*
* errno was set by Create_support, so don't set it again.
*/
_Thread_Enable_dispatch();
10d4ab: e8 a9 24 00 00 call 10f959 <_Thread_Enable_dispatch>
if ( status == -1 )
10d4b0: 83 c4 10 add $0x10,%esp
10d4b3: 83 c8 ff or $0xffffffff,%eax
10d4b6: 43 inc %ebx
10d4b7: 74 06 je 10d4bf <sem_open+0xc7>
return_id:
#if defined(RTEMS_USE_16_BIT_OBJECT)
the_semaphore->Semaphore_id = the_semaphore->Object.id;
id = &the_semaphore->Semaphore_id;
#else
id = (sem_t *)&the_semaphore->Object.id;
10d4b9: 8b 45 e0 mov -0x20(%ebp),%eax
10d4bc: 83 c0 08 add $0x8,%eax
#endif
return id;
}
10d4bf: 8d 65 f4 lea -0xc(%ebp),%esp
10d4c2: 5b pop %ebx
10d4c3: 5e pop %esi
10d4c4: 5f pop %edi
10d4c5: c9 leave
10d4c6: c3 ret
001282bd <setgid>:
*/
int setgid(
gid_t gid
)
{
1282bd: 55 push %ebp <== NOT EXECUTED
1282be: 89 e5 mov %esp,%ebp <== NOT EXECUTED
_POSIX_types_Gid = gid;
1282c0: a1 fc 46 16 00 mov 0x1646fc,%eax <== NOT EXECUTED
1282c5: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
1282c8: 66 89 50 34 mov %dx,0x34(%eax) <== NOT EXECUTED
return 0;
}
1282cc: 31 c0 xor %eax,%eax <== NOT EXECUTED
1282ce: c9 leave <== NOT EXECUTED
1282cf: c3 ret <== NOT EXECUTED
00128793 <setgrent>:
return NULL;
return &grent;
}
void setgrent(void)
{
128793: 55 push %ebp <== NOT EXECUTED
128794: 89 e5 mov %esp,%ebp <== NOT EXECUTED
128796: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
init_etc_passwd_group();
128799: e8 24 ff ff ff call 1286c2 <init_etc_passwd_group> <== NOT EXECUTED
if (group_fp != NULL)
12879e: a1 0c 9c 16 00 mov 0x169c0c,%eax <== NOT EXECUTED
1287a3: 85 c0 test %eax,%eax <== NOT EXECUTED
1287a5: 74 0c je 1287b3 <setgrent+0x20> <== NOT EXECUTED
fclose(group_fp);
1287a7: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1287aa: 50 push %eax <== NOT EXECUTED
1287ab: e8 b0 59 01 00 call 13e160 <fclose> <== NOT EXECUTED
1287b0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
group_fp = fopen("/etc/group", "r");
1287b3: 52 push %edx <== NOT EXECUTED
1287b4: 52 push %edx <== NOT EXECUTED
1287b5: 68 ca 7d 15 00 push $0x157dca <== NOT EXECUTED
1287ba: 68 96 4b 15 00 push $0x154b96 <== NOT EXECUTED
1287bf: e8 b4 61 01 00 call 13e978 <fopen> <== NOT EXECUTED
1287c4: a3 0c 9c 16 00 mov %eax,0x169c0c <== NOT EXECUTED
1287c9: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
1287cc: c9 leave <== NOT EXECUTED
1287cd: c3 ret <== NOT EXECUTED
00128937 <setpwent>:
return NULL;
return &pwent;
}
void setpwent(void)
{
128937: 55 push %ebp <== NOT EXECUTED
128938: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12893a: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
init_etc_passwd_group();
12893d: e8 80 fd ff ff call 1286c2 <init_etc_passwd_group> <== NOT EXECUTED
if (passwd_fp != NULL)
128942: a1 24 9b 16 00 mov 0x169b24,%eax <== NOT EXECUTED
128947: 85 c0 test %eax,%eax <== NOT EXECUTED
128949: 74 0c je 128957 <setpwent+0x20> <== NOT EXECUTED
fclose(passwd_fp);
12894b: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12894e: 50 push %eax <== NOT EXECUTED
12894f: e8 0c 58 01 00 call 13e160 <fclose> <== NOT EXECUTED
128954: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
passwd_fp = fopen("/etc/passwd", "r");
128957: 50 push %eax <== NOT EXECUTED
128958: 50 push %eax <== NOT EXECUTED
128959: 68 ca 7d 15 00 push $0x157dca <== NOT EXECUTED
12895e: 68 51 4b 15 00 push $0x154b51 <== NOT EXECUTED
128963: e8 10 60 01 00 call 13e978 <fopen> <== NOT EXECUTED
128968: a3 24 9b 16 00 mov %eax,0x169b24 <== NOT EXECUTED
12896d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
128970: c9 leave <== NOT EXECUTED
128971: c3 ret <== NOT EXECUTED
0010cf96 <setuid>:
*/
int setuid(
uid_t uid
)
{
10cf96: 55 push %ebp <== NOT EXECUTED
10cf97: 89 e5 mov %esp,%ebp <== NOT EXECUTED
_POSIX_types_Uid = uid;
10cf99: a1 fc 46 16 00 mov 0x1646fc,%eax <== NOT EXECUTED
10cf9e: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
10cfa1: 66 89 50 32 mov %dx,0x32(%eax) <== NOT EXECUTED
return 0;
}
10cfa5: 31 c0 xor %eax,%eax <== NOT EXECUTED
10cfa7: c9 leave <== NOT EXECUTED
10cfa8: c3 ret <== NOT EXECUTED
0010ac1c <sigaction>:
int sigaction(
int sig,
const struct sigaction *act,
struct sigaction *oact
)
{
10ac1c: 55 push %ebp
10ac1d: 89 e5 mov %esp,%ebp
10ac1f: 57 push %edi
10ac20: 56 push %esi
10ac21: 53 push %ebx
10ac22: 83 ec 1c sub $0x1c,%esp
10ac25: 8b 5d 08 mov 0x8(%ebp),%ebx
10ac28: 8b 55 0c mov 0xc(%ebp),%edx
10ac2b: 8b 45 10 mov 0x10(%ebp),%eax
ISR_Level level;
if ( oact )
10ac2e: 85 c0 test %eax,%eax
10ac30: 74 12 je 10ac44 <sigaction+0x28>
*oact = _POSIX_signals_Vectors[ sig ];
10ac32: 6b f3 0c imul $0xc,%ebx,%esi
10ac35: 81 c6 a8 87 12 00 add $0x1287a8,%esi
10ac3b: b9 03 00 00 00 mov $0x3,%ecx
10ac40: 89 c7 mov %eax,%edi
10ac42: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
if ( !sig )
10ac44: 85 db test %ebx,%ebx
10ac46: 74 0d je 10ac55 <sigaction+0x39>
rtems_set_errno_and_return_minus_one( EINVAL );
if ( !is_valid_signo(sig) )
10ac48: 8d 43 ff lea -0x1(%ebx),%eax
10ac4b: 83 f8 1f cmp $0x1f,%eax
10ac4e: 77 05 ja 10ac55 <sigaction+0x39>
*
* NOTE: Solaris documentation claims to "silently enforce" this which
* contradicts the POSIX specification.
*/
if ( sig == SIGKILL )
10ac50: 83 fb 09 cmp $0x9,%ebx
10ac53: 75 10 jne 10ac65 <sigaction+0x49>
rtems_set_errno_and_return_minus_one( EINVAL );
10ac55: e8 a2 8b 00 00 call 1137fc <__errno>
10ac5a: c7 00 16 00 00 00 movl $0x16,(%eax)
10ac60: 83 c8 ff or $0xffffffff,%eax
10ac63: eb 53 jmp 10acb8 <sigaction+0x9c>
/*
* Evaluate the new action structure and set the global signal vector
* appropriately.
*/
if ( act ) {
10ac65: 31 c0 xor %eax,%eax
10ac67: 85 d2 test %edx,%edx
10ac69: 74 4d je 10acb8 <sigaction+0x9c> <== NEVER TAKEN
/*
* Unless the user is installing the default signal actions, then
* we can just copy the provided sigaction structure into the vectors.
*/
_ISR_Disable( level );
10ac6b: 9c pushf
10ac6c: fa cli
10ac6d: 8f 45 e4 popl -0x1c(%ebp)
if ( act->sa_handler == SIG_DFL ) {
10ac70: 83 7a 08 00 cmpl $0x0,0x8(%edx)
10ac74: 75 18 jne 10ac8e <sigaction+0x72>
_POSIX_signals_Vectors[ sig ] = _POSIX_signals_Default_vectors[ sig ];
10ac76: 6b db 0c imul $0xc,%ebx,%ebx
10ac79: 8d bb a8 87 12 00 lea 0x1287a8(%ebx),%edi
10ac7f: 8d b3 38 24 12 00 lea 0x122438(%ebx),%esi
10ac85: b9 03 00 00 00 mov $0x3,%ecx
10ac8a: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
10ac8c: eb 24 jmp 10acb2 <sigaction+0x96>
} else {
_POSIX_signals_Clear_process_signals( sig );
10ac8e: 83 ec 0c sub $0xc,%esp
10ac91: 53 push %ebx
10ac92: 89 55 e0 mov %edx,-0x20(%ebp)
10ac95: e8 02 58 00 00 call 11049c <_POSIX_signals_Clear_process_signals>
_POSIX_signals_Vectors[ sig ] = *act;
10ac9a: 6b db 0c imul $0xc,%ebx,%ebx
10ac9d: 8d bb a8 87 12 00 lea 0x1287a8(%ebx),%edi
10aca3: b9 03 00 00 00 mov $0x3,%ecx
10aca8: 8b 55 e0 mov -0x20(%ebp),%edx
10acab: 89 d6 mov %edx,%esi
10acad: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
10acaf: 83 c4 10 add $0x10,%esp
}
_ISR_Enable( level );
10acb2: ff 75 e4 pushl -0x1c(%ebp)
10acb5: 9d popf
10acb6: 31 c0 xor %eax,%eax
* + If we are now ignoring a signal that was previously pending,
* we clear the pending signal indicator.
*/
return 0;
}
10acb8: 8d 65 f4 lea -0xc(%ebp),%esp
10acbb: 5b pop %ebx
10acbc: 5e pop %esi
10acbd: 5f pop %edi
10acbe: c9 leave
10acbf: c3 ret
0010ca00 <sigsuspend>:
#include <rtems/seterr.h>
int sigsuspend(
const sigset_t *sigmask
)
{
10ca00: 55 push %ebp
10ca01: 89 e5 mov %esp,%ebp
10ca03: 56 push %esi
10ca04: 53 push %ebx
10ca05: 83 ec 14 sub $0x14,%esp
int status;
POSIX_API_Control *api;
api = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ];
status = sigprocmask( SIG_BLOCK, sigmask, &saved_signals_blocked );
10ca08: 8d 5d f4 lea -0xc(%ebp),%ebx
10ca0b: 53 push %ebx
10ca0c: ff 75 08 pushl 0x8(%ebp)
10ca0f: 6a 01 push $0x1
10ca11: e8 c6 ff ff ff call 10c9dc <sigprocmask>
(void) sigfillset( &all_signals );
10ca16: 8d 75 f0 lea -0x10(%ebp),%esi
10ca19: 89 34 24 mov %esi,(%esp)
10ca1c: e8 17 ff ff ff call 10c938 <sigfillset>
status = sigtimedwait( &all_signals, NULL, NULL );
10ca21: 83 c4 0c add $0xc,%esp
10ca24: 6a 00 push $0x0
10ca26: 6a 00 push $0x0
10ca28: 56 push %esi
10ca29: e8 69 00 00 00 call 10ca97 <sigtimedwait>
10ca2e: 89 c6 mov %eax,%esi
(void) sigprocmask( SIG_SETMASK, &saved_signals_blocked, NULL );
10ca30: 83 c4 0c add $0xc,%esp
10ca33: 6a 00 push $0x0
10ca35: 53 push %ebx
10ca36: 6a 00 push $0x0
10ca38: e8 9f ff ff ff call 10c9dc <sigprocmask>
/*
* sigtimedwait() returns the signal number while sigsuspend()
* is supposed to return -1 and EINTR when a signal is caught.
*/
if ( status != -1 )
10ca3d: 83 c4 10 add $0x10,%esp
10ca40: 46 inc %esi
10ca41: 74 0b je 10ca4e <sigsuspend+0x4e> <== NEVER TAKEN
rtems_set_errno_and_return_minus_one( EINTR );
10ca43: e8 bc 88 00 00 call 115304 <__errno>
10ca48: c7 00 04 00 00 00 movl $0x4,(%eax)
return status;
}
10ca4e: 83 c8 ff or $0xffffffff,%eax
10ca51: 8d 65 f8 lea -0x8(%ebp),%esp
10ca54: 5b pop %ebx
10ca55: 5e pop %esi
10ca56: c9 leave
10ca57: c3 ret
0010b053 <sigtimedwait>:
int sigtimedwait(
const sigset_t *set,
siginfo_t *info,
const struct timespec *timeout
)
{
10b053: 55 push %ebp
10b054: 89 e5 mov %esp,%ebp
10b056: 57 push %edi
10b057: 56 push %esi
10b058: 53 push %ebx
10b059: 83 ec 2c sub $0x2c,%esp
10b05c: 8b 7d 08 mov 0x8(%ebp),%edi
10b05f: 8b 5d 10 mov 0x10(%ebp),%ebx
ISR_Level level;
/*
* Error check parameters before disabling interrupts.
*/
if ( !set )
10b062: 85 ff test %edi,%edi
10b064: 74 24 je 10b08a <sigtimedwait+0x37>
/* NOTE: This is very specifically a RELATIVE not ABSOLUTE time
* in the Open Group specification.
*/
interval = 0;
if ( timeout ) {
10b066: 85 db test %ebx,%ebx
10b068: 74 33 je 10b09d <sigtimedwait+0x4a>
if ( !_Timespec_Is_valid( timeout ) )
10b06a: 83 ec 0c sub $0xc,%esp
10b06d: 53 push %ebx
10b06e: e8 01 30 00 00 call 10e074 <_Timespec_Is_valid>
10b073: 83 c4 10 add $0x10,%esp
10b076: 84 c0 test %al,%al
10b078: 74 10 je 10b08a <sigtimedwait+0x37>
rtems_set_errno_and_return_minus_one( EINVAL );
interval = _Timespec_To_ticks( timeout );
10b07a: 83 ec 0c sub $0xc,%esp
10b07d: 53 push %ebx
10b07e: e8 49 30 00 00 call 10e0cc <_Timespec_To_ticks>
if ( !interval )
10b083: 83 c4 10 add $0x10,%esp
10b086: 85 c0 test %eax,%eax
10b088: 75 15 jne 10b09f <sigtimedwait+0x4c> <== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( EINVAL );
10b08a: e8 7d 8a 00 00 call 113b0c <__errno>
10b08f: c7 00 16 00 00 00 movl $0x16,(%eax)
10b095: 83 cf ff or $0xffffffff,%edi
10b098: e9 13 01 00 00 jmp 10b1b0 <sigtimedwait+0x15d>
10b09d: 31 c0 xor %eax,%eax
/*
* Initialize local variables.
*/
the_info = ( info ) ? info : &signal_information;
10b09f: 8b 5d 0c mov 0xc(%ebp),%ebx
10b0a2: 85 db test %ebx,%ebx
10b0a4: 75 03 jne 10b0a9 <sigtimedwait+0x56>
10b0a6: 8d 5d dc lea -0x24(%ebp),%ebx
the_thread = _Thread_Executing;
10b0a9: 8b 15 04 83 12 00 mov 0x128304,%edx
api = the_thread->API_Extensions[ THREAD_API_POSIX ];
10b0af: 8b b2 f8 00 00 00 mov 0xf8(%edx),%esi
* What if they are already pending?
*/
/* API signals pending? */
_ISR_Disable( level );
10b0b5: 9c pushf
10b0b6: fa cli
10b0b7: 8f 45 d4 popl -0x2c(%ebp)
if ( *set & api->signals_pending ) {
10b0ba: 8b 0f mov (%edi),%ecx
10b0bc: 89 4d d0 mov %ecx,-0x30(%ebp)
10b0bf: 8b 8e d0 00 00 00 mov 0xd0(%esi),%ecx
10b0c5: 85 4d d0 test %ecx,-0x30(%ebp)
10b0c8: 74 32 je 10b0fc <sigtimedwait+0xa9>
/* XXX real info later */
the_info->si_signo = _POSIX_signals_Get_highest( api->signals_pending );
10b0ca: 83 ec 0c sub $0xc,%esp
10b0cd: 51 push %ecx
10b0ce: e8 41 ff ff ff call 10b014 <_POSIX_signals_Get_highest>
10b0d3: 89 03 mov %eax,(%ebx)
_POSIX_signals_Clear_signals(
10b0d5: c7 04 24 00 00 00 00 movl $0x0,(%esp)
10b0dc: 6a 00 push $0x0
10b0de: 53 push %ebx
10b0df: 50 push %eax
10b0e0: 56 push %esi
10b0e1: e8 2e 5a 00 00 call 110b14 <_POSIX_signals_Clear_signals>
the_info->si_signo,
the_info,
false,
false
);
_ISR_Enable( level );
10b0e6: ff 75 d4 pushl -0x2c(%ebp)
10b0e9: 9d popf
the_info->si_code = SI_USER;
10b0ea: c7 43 04 01 00 00 00 movl $0x1,0x4(%ebx)
the_info->si_value.sival_int = 0;
10b0f1: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx)
return the_info->si_signo;
10b0f8: 8b 3b mov (%ebx),%edi
10b0fa: eb 3b jmp 10b137 <sigtimedwait+0xe4>
}
/* Process pending signals? */
if ( *set & _POSIX_signals_Pending ) {
10b0fc: 8b 0d 9c 89 12 00 mov 0x12899c,%ecx
10b102: 85 4d d0 test %ecx,-0x30(%ebp)
10b105: 74 35 je 10b13c <sigtimedwait+0xe9>
signo = _POSIX_signals_Get_highest( _POSIX_signals_Pending );
10b107: 83 ec 0c sub $0xc,%esp
10b10a: 51 push %ecx
10b10b: e8 04 ff ff ff call 10b014 <_POSIX_signals_Get_highest>
10b110: 89 c7 mov %eax,%edi
_POSIX_signals_Clear_signals( api, signo, the_info, true, false );
10b112: c7 04 24 00 00 00 00 movl $0x0,(%esp)
10b119: 6a 01 push $0x1
10b11b: 53 push %ebx
10b11c: 50 push %eax
10b11d: 56 push %esi
10b11e: e8 f1 59 00 00 call 110b14 <_POSIX_signals_Clear_signals>
_ISR_Enable( level );
10b123: ff 75 d4 pushl -0x2c(%ebp)
10b126: 9d popf
the_info->si_signo = signo;
10b127: 89 3b mov %edi,(%ebx)
the_info->si_code = SI_USER;
10b129: c7 43 04 01 00 00 00 movl $0x1,0x4(%ebx)
the_info->si_value.sival_int = 0;
10b130: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx)
return signo;
10b137: 83 c4 20 add $0x20,%esp
10b13a: eb 74 jmp 10b1b0 <sigtimedwait+0x15d>
}
the_info->si_signo = -1;
10b13c: c7 03 ff ff ff ff movl $0xffffffff,(%ebx)
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
10b142: 8b 0d 48 82 12 00 mov 0x128248,%ecx
10b148: 41 inc %ecx
10b149: 89 0d 48 82 12 00 mov %ecx,0x128248
_Thread_Disable_dispatch();
the_thread->Wait.queue = &_POSIX_signals_Wait_queue;
10b14f: c7 42 44 34 89 12 00 movl $0x128934,0x44(%edx)
the_thread->Wait.return_code = EINTR;
10b156: c7 42 34 04 00 00 00 movl $0x4,0x34(%edx)
the_thread->Wait.option = *set;
10b15d: 8b 0f mov (%edi),%ecx
10b15f: 89 4a 30 mov %ecx,0x30(%edx)
the_thread->Wait.return_argument = the_info;
10b162: 89 5a 28 mov %ebx,0x28(%edx)
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;
10b165: c7 05 64 89 12 00 01 movl $0x1,0x128964
10b16c: 00 00 00
_Thread_queue_Enter_critical_section( &_POSIX_signals_Wait_queue );
_ISR_Enable( level );
10b16f: ff 75 d4 pushl -0x2c(%ebp)
10b172: 9d popf
_Thread_queue_Enqueue( &_POSIX_signals_Wait_queue, interval );
10b173: 52 push %edx
10b174: 68 6c dc 10 00 push $0x10dc6c
10b179: 50 push %eax
10b17a: 68 34 89 12 00 push $0x128934
10b17f: e8 38 28 00 00 call 10d9bc <_Thread_queue_Enqueue_with_handler>
_Thread_Enable_dispatch();
10b184: e8 7c 23 00 00 call 10d505 <_Thread_Enable_dispatch>
/*
* When the thread is set free by a signal, it is need to eliminate
* the signal.
*/
_POSIX_signals_Clear_signals( api, the_info->si_signo, the_info, false, false );
10b189: c7 04 24 00 00 00 00 movl $0x0,(%esp)
10b190: 6a 00 push $0x0
10b192: 53 push %ebx
10b193: ff 33 pushl (%ebx)
10b195: 56 push %esi
10b196: e8 79 59 00 00 call 110b14 <_POSIX_signals_Clear_signals>
errno = _Thread_Executing->Wait.return_code;
10b19b: 83 c4 20 add $0x20,%esp
10b19e: e8 69 89 00 00 call 113b0c <__errno>
10b1a3: 8b 15 04 83 12 00 mov 0x128304,%edx
10b1a9: 8b 52 34 mov 0x34(%edx),%edx
10b1ac: 89 10 mov %edx,(%eax)
return the_info->si_signo;
10b1ae: 8b 3b mov (%ebx),%edi
}
10b1b0: 89 f8 mov %edi,%eax
10b1b2: 8d 65 f4 lea -0xc(%ebp),%esp
10b1b5: 5b pop %ebx
10b1b6: 5e pop %esi
10b1b7: 5f pop %edi
10b1b8: c9 leave
10b1b9: c3 ret
0010cc18 <sigwait>:
int sigwait(
const sigset_t *set,
int *sig
)
{
10cc18: 55 push %ebp
10cc19: 89 e5 mov %esp,%ebp
10cc1b: 53 push %ebx
10cc1c: 83 ec 08 sub $0x8,%esp
10cc1f: 8b 5d 0c mov 0xc(%ebp),%ebx
int status;
status = sigtimedwait( set, NULL, NULL );
10cc22: 6a 00 push $0x0
10cc24: 6a 00 push $0x0
10cc26: ff 75 08 pushl 0x8(%ebp)
10cc29: e8 69 fe ff ff call 10ca97 <sigtimedwait>
10cc2e: 89 c2 mov %eax,%edx
if ( status != -1 ) {
10cc30: 83 c4 10 add $0x10,%esp
10cc33: 83 f8 ff cmp $0xffffffff,%eax
10cc36: 74 0a je 10cc42 <sigwait+0x2a>
if ( sig )
10cc38: 31 c0 xor %eax,%eax
10cc3a: 85 db test %ebx,%ebx
10cc3c: 74 0b je 10cc49 <sigwait+0x31> <== NEVER TAKEN
*sig = status;
10cc3e: 89 13 mov %edx,(%ebx)
10cc40: eb 07 jmp 10cc49 <sigwait+0x31>
return 0;
}
return errno;
10cc42: e8 bd 86 00 00 call 115304 <__errno>
10cc47: 8b 00 mov (%eax),%eax
}
10cc49: 8b 5d fc mov -0x4(%ebp),%ebx
10cc4c: c9 leave
10cc4d: c3 ret
00108f5d <siproc>:
/*
* Process input character, with semaphore.
*/
static int
siproc (unsigned char c, struct rtems_termios_tty *tty)
{
108f5d: 55 push %ebp <== NOT EXECUTED
108f5e: 89 e5 mov %esp,%ebp <== NOT EXECUTED
108f60: 56 push %esi <== NOT EXECUTED
108f61: 53 push %ebx <== NOT EXECUTED
108f62: 89 d3 mov %edx,%ebx <== NOT EXECUTED
108f64: 89 c6 mov %eax,%esi <== NOT EXECUTED
int i;
/*
* Obtain output semaphore if character will be echoed
*/
if (tty->termios.c_lflag & (ECHO|ECHOE|ECHOK|ECHONL|ECHOPRT|ECHOCTL|ECHOKE)) {
108f66: f7 42 3c 78 0e 00 00 testl $0xe78,0x3c(%edx) <== NOT EXECUTED
108f6d: 74 30 je 108f9f <siproc+0x42> <== NOT EXECUTED
rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
108f6f: 52 push %edx <== NOT EXECUTED
108f70: 6a 00 push $0x0 <== NOT EXECUTED
108f72: 6a 00 push $0x0 <== NOT EXECUTED
108f74: ff 73 18 pushl 0x18(%ebx) <== NOT EXECUTED
108f77: e8 7c 16 00 00 call 10a5f8 <rtems_semaphore_obtain><== NOT EXECUTED
i = iproc (c, tty);
108f7c: 89 f2 mov %esi,%edx <== NOT EXECUTED
108f7e: 0f b6 c2 movzbl %dl,%eax <== NOT EXECUTED
108f81: 89 da mov %ebx,%edx <== NOT EXECUTED
108f83: e8 bc fe ff ff call 108e44 <iproc> <== NOT EXECUTED
108f88: 89 c6 mov %eax,%esi <== NOT EXECUTED
rtems_semaphore_release (tty->osem);
108f8a: 58 pop %eax <== NOT EXECUTED
108f8b: ff 73 18 pushl 0x18(%ebx) <== NOT EXECUTED
108f8e: e8 51 17 00 00 call 10a6e4 <rtems_semaphore_release><== NOT EXECUTED
108f93: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
else {
i = iproc (c, tty);
}
return i;
}
108f96: 89 f0 mov %esi,%eax <== NOT EXECUTED
108f98: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
108f9b: 5b pop %ebx <== NOT EXECUTED
108f9c: 5e pop %esi <== NOT EXECUTED
108f9d: c9 leave <== NOT EXECUTED
108f9e: c3 ret <== 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);
108f9f: 0f b6 c0 movzbl %al,%eax <== NOT EXECUTED
108fa2: 89 da mov %ebx,%edx <== NOT EXECUTED
}
return i;
}
108fa4: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
108fa7: 5b pop %ebx <== NOT EXECUTED
108fa8: 5e pop %esi <== NOT EXECUTED
108fa9: 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);
108faa: e9 95 fe ff ff jmp 108e44 <iproc> <== NOT EXECUTED
0010e2ec <stat>:
int _STAT_NAME(
const char *path,
struct stat *buf
)
{
10e2ec: 55 push %ebp
10e2ed: 89 e5 mov %esp,%ebp
10e2ef: 57 push %edi
10e2f0: 56 push %esi
10e2f1: 53 push %ebx
10e2f2: 83 ec 2c sub $0x2c,%esp
10e2f5: 8b 55 08 mov 0x8(%ebp),%edx
10e2f8: 8b 75 0c mov 0xc(%ebp),%esi
/*
* Check to see if we were passed a valid pointer.
*/
if ( !buf )
10e2fb: 85 f6 test %esi,%esi
10e2fd: 75 0d jne 10e30c <stat+0x20>
rtems_set_errno_and_return_minus_one( EFAULT );
10e2ff: e8 10 fd 02 00 call 13e014 <__errno>
10e304: c7 00 0e 00 00 00 movl $0xe,(%eax)
10e30a: eb 53 jmp 10e35f <stat+0x73>
status = rtems_filesystem_evaluate_path( path, strlen( path ),
10e30c: 31 c0 xor %eax,%eax
10e30e: 83 c9 ff or $0xffffffff,%ecx
10e311: 89 d7 mov %edx,%edi
10e313: f2 ae repnz scas %es:(%edi),%al
10e315: f7 d1 not %ecx
10e317: 49 dec %ecx
10e318: 83 ec 0c sub $0xc,%esp
10e31b: 6a 01 push $0x1
10e31d: 8d 5d d4 lea -0x2c(%ebp),%ebx
10e320: 53 push %ebx
10e321: 6a 00 push $0x0
10e323: 51 push %ecx
10e324: 52 push %edx
10e325: e8 07 eb ff ff call 10ce31 <rtems_filesystem_evaluate_path>
0, &loc, _STAT_FOLLOW_LINKS );
if ( status != 0 )
10e32a: 83 c4 20 add $0x20,%esp
10e32d: 83 cf ff or $0xffffffff,%edi
10e330: 85 c0 test %eax,%eax
10e332: 75 5c jne 10e390 <stat+0xa4>
return -1;
if ( !loc.handlers->fstat_h ){
10e334: 8b 55 dc mov -0x24(%ebp),%edx
10e337: 83 7a 18 00 cmpl $0x0,0x18(%edx)
10e33b: 75 27 jne 10e364 <stat+0x78> <== ALWAYS TAKEN
rtems_filesystem_freenode( &loc );
10e33d: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
10e340: 85 c0 test %eax,%eax <== NOT EXECUTED
10e342: 74 10 je 10e354 <stat+0x68> <== NOT EXECUTED
10e344: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED
10e347: 85 c0 test %eax,%eax <== NOT EXECUTED
10e349: 74 09 je 10e354 <stat+0x68> <== NOT EXECUTED
10e34b: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10e34e: 53 push %ebx <== NOT EXECUTED
10e34f: ff d0 call *%eax <== NOT EXECUTED
10e351: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
10e354: e8 bb fc 02 00 call 13e014 <__errno> <== NOT EXECUTED
10e359: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
10e35f: 83 cf ff or $0xffffffff,%edi
10e362: eb 2c jmp 10e390 <stat+0xa4>
/*
* Zero out the stat structure so the various support
* versions of stat don't have to.
*/
memset( buf, 0, sizeof(struct stat) );
10e364: b9 12 00 00 00 mov $0x12,%ecx
10e369: 89 f7 mov %esi,%edi
10e36b: f3 ab rep stos %eax,%es:(%edi)
status = (*loc.handlers->fstat_h)( &loc, buf );
10e36d: 50 push %eax
10e36e: 50 push %eax
10e36f: 56 push %esi
10e370: 53 push %ebx
10e371: ff 52 18 call *0x18(%edx)
10e374: 89 c7 mov %eax,%edi
rtems_filesystem_freenode( &loc );
10e376: 8b 45 e0 mov -0x20(%ebp),%eax
10e379: 83 c4 10 add $0x10,%esp
10e37c: 85 c0 test %eax,%eax
10e37e: 74 10 je 10e390 <stat+0xa4> <== NEVER TAKEN
10e380: 8b 40 1c mov 0x1c(%eax),%eax
10e383: 85 c0 test %eax,%eax
10e385: 74 09 je 10e390 <stat+0xa4> <== NEVER TAKEN
10e387: 83 ec 0c sub $0xc,%esp
10e38a: 53 push %ebx
10e38b: ff d0 call *%eax
10e38d: 83 c4 10 add $0x10,%esp
return status;
}
10e390: 89 f8 mov %edi,%eax
10e392: 8d 65 f4 lea -0xc(%ebp),%esp
10e395: 5b pop %ebx
10e396: 5e pop %esi
10e397: 5f pop %edi
10e398: c9 leave
10e399: c3 ret
0012963c <statvfs>:
#include <sys/statvfs.h>
int
statvfs (const char *path, struct statvfs *sb)
{
12963c: 55 push %ebp <== NOT EXECUTED
12963d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12963f: 57 push %edi <== NOT EXECUTED
129640: 56 push %esi <== NOT EXECUTED
129641: 53 push %ebx <== NOT EXECUTED
129642: 83 ec 38 sub $0x38,%esp <== NOT EXECUTED
129645: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
129648: 8b 75 0c mov 0xc(%ebp),%esi <== NOT EXECUTED
* 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 ) )
12964b: 31 c0 xor %eax,%eax <== NOT EXECUTED
12964d: 83 c9 ff or $0xffffffff,%ecx <== NOT EXECUTED
129650: 89 d7 mov %edx,%edi <== NOT EXECUTED
129652: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED
129654: f7 d1 not %ecx <== NOT EXECUTED
129656: 49 dec %ecx <== NOT EXECUTED
129657: 6a 01 push $0x1 <== NOT EXECUTED
129659: 8d 5d d4 lea -0x2c(%ebp),%ebx <== NOT EXECUTED
12965c: 53 push %ebx <== NOT EXECUTED
12965d: 6a 00 push $0x0 <== NOT EXECUTED
12965f: 51 push %ecx <== NOT EXECUTED
129660: 52 push %edx <== NOT EXECUTED
129661: e8 cb 37 fe ff call 10ce31 <rtems_filesystem_evaluate_path><== NOT EXECUTED
129666: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
129669: 83 cf ff or $0xffffffff,%edi <== NOT EXECUTED
12966c: 85 c0 test %eax,%eax <== NOT EXECUTED
12966e: 75 4b jne 1296bb <statvfs+0x7f> <== NOT EXECUTED
return -1;
mt_entry = loc.mt_entry;
129670: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
fs_mount_root = &mt_entry->mt_fs_root;
129673: 8b 4a 28 mov 0x28(%edx),%ecx <== NOT EXECUTED
129676: 83 79 44 00 cmpl $0x0,0x44(%ecx) <== NOT EXECUTED
12967a: 75 0d jne 129689 <statvfs+0x4d> <== NOT EXECUTED
if ( !fs_mount_root->ops->statvfs_h )
rtems_set_errno_and_return_minus_one( ENOTSUP );
12967c: e8 93 49 01 00 call 13e014 <__errno> <== NOT EXECUTED
129681: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
129687: eb 32 jmp 1296bb <statvfs+0x7f> <== NOT EXECUTED
memset (sb, 0, sizeof (struct statvfs));
129689: b9 0e 00 00 00 mov $0xe,%ecx <== NOT EXECUTED
12968e: 89 f7 mov %esi,%edi <== NOT EXECUTED
129690: f3 ab rep stos %eax,%es:(%edi) <== NOT EXECUTED
result = ( fs_mount_root->ops->statvfs_h )( fs_mount_root, sb );
129692: 50 push %eax <== NOT EXECUTED
129693: 50 push %eax <== NOT EXECUTED
129694: 8b 42 28 mov 0x28(%edx),%eax <== NOT EXECUTED
129697: 56 push %esi <== NOT EXECUTED
129698: 83 c2 1c add $0x1c,%edx <== NOT EXECUTED
12969b: 52 push %edx <== NOT EXECUTED
12969c: ff 50 44 call *0x44(%eax) <== NOT EXECUTED
12969f: 89 c7 mov %eax,%edi <== NOT EXECUTED
rtems_filesystem_freenode( &loc );
1296a1: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
1296a4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1296a7: 85 c0 test %eax,%eax <== NOT EXECUTED
1296a9: 74 10 je 1296bb <statvfs+0x7f> <== NOT EXECUTED
1296ab: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED
1296ae: 85 c0 test %eax,%eax <== NOT EXECUTED
1296b0: 74 09 je 1296bb <statvfs+0x7f> <== NOT EXECUTED
1296b2: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1296b5: 53 push %ebx <== NOT EXECUTED
1296b6: ff d0 call *%eax <== NOT EXECUTED
1296b8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
return result;
}
1296bb: 89 f8 mov %edi,%eax <== NOT EXECUTED
1296bd: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1296c0: 5b pop %ebx <== NOT EXECUTED
1296c1: 5e pop %esi <== NOT EXECUTED
1296c2: 5f pop %edi <== NOT EXECUTED
1296c3: c9 leave <== NOT EXECUTED
1296c4: c3 ret <== NOT EXECUTED
00129710 <symlink>:
int symlink(
const char *actualpath,
const char *sympath
)
{
129710: 55 push %ebp
129711: 89 e5 mov %esp,%ebp
129713: 56 push %esi
129714: 53 push %ebx
129715: 83 ec 24 sub $0x24,%esp
129718: 8b 75 0c mov 0xc(%ebp),%esi
rtems_filesystem_location_info_t loc;
int i;
const char *name_start;
int result;
rtems_filesystem_get_start_loc( sympath, &i, &loc );
12971b: 8d 5d dc lea -0x24(%ebp),%ebx
12971e: 53 push %ebx
12971f: 8d 45 f4 lea -0xc(%ebp),%eax
129722: 50 push %eax
129723: 56 push %esi
129724: e8 8b 4c fe ff call 10e3b4 <rtems_filesystem_get_start_loc>
if ( !loc.ops->evalformake_h ) {
129729: 8b 45 e8 mov -0x18(%ebp),%eax
12972c: 8b 40 04 mov 0x4(%eax),%eax
12972f: 83 c4 10 add $0x10,%esp
129732: 85 c0 test %eax,%eax
129734: 74 30 je 129766 <symlink+0x56> <== NEVER TAKEN
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
result = (*loc.ops->evalformake_h)( &sympath[i], &loc, &name_start );
129736: 51 push %ecx
129737: 8d 55 f0 lea -0x10(%ebp),%edx
12973a: 52 push %edx
12973b: 53 push %ebx
12973c: 03 75 f4 add -0xc(%ebp),%esi
12973f: 56 push %esi
129740: ff d0 call *%eax
if ( result != 0 )
129742: 83 c4 10 add $0x10,%esp
129745: 83 ce ff or $0xffffffff,%esi
129748: 85 c0 test %eax,%eax
12974a: 75 50 jne 12979c <symlink+0x8c>
return -1;
if ( !loc.ops->symlink_h ) {
12974c: 8b 55 e8 mov -0x18(%ebp),%edx
12974f: 8b 42 38 mov 0x38(%edx),%eax
129752: 85 c0 test %eax,%eax
129754: 75 20 jne 129776 <symlink+0x66> <== ALWAYS TAKEN
rtems_filesystem_freenode( &loc );
129756: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED
129759: 85 c0 test %eax,%eax <== NOT EXECUTED
12975b: 74 09 je 129766 <symlink+0x56> <== NOT EXECUTED
12975d: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
129760: 53 push %ebx <== NOT EXECUTED
129761: ff d0 call *%eax <== NOT EXECUTED
129763: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
129766: e8 a9 48 01 00 call 13e014 <__errno> <== NOT EXECUTED
12976b: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
129771: 83 ce ff or $0xffffffff,%esi <== NOT EXECUTED
129774: eb 26 jmp 12979c <symlink+0x8c> <== NOT EXECUTED
}
result = (*loc.ops->symlink_h)( &loc, actualpath, name_start);
129776: 52 push %edx
129777: ff 75 f0 pushl -0x10(%ebp)
12977a: ff 75 08 pushl 0x8(%ebp)
12977d: 53 push %ebx
12977e: ff d0 call *%eax
129780: 89 c6 mov %eax,%esi
rtems_filesystem_freenode( &loc );
129782: 8b 45 e8 mov -0x18(%ebp),%eax
129785: 83 c4 10 add $0x10,%esp
129788: 85 c0 test %eax,%eax
12978a: 74 10 je 12979c <symlink+0x8c> <== NEVER TAKEN
12978c: 8b 40 1c mov 0x1c(%eax),%eax
12978f: 85 c0 test %eax,%eax
129791: 74 09 je 12979c <symlink+0x8c> <== NEVER TAKEN
129793: 83 ec 0c sub $0xc,%esp
129796: 53 push %ebx
129797: ff d0 call *%eax
129799: 83 c4 10 add $0x10,%esp
return result;
}
12979c: 89 f0 mov %esi,%eax
12979e: 8d 65 f8 lea -0x8(%ebp),%esp
1297a1: 5b pop %ebx
1297a2: 5e pop %esi
1297a3: c9 leave
1297a4: c3 ret
00109394 <sync_per_thread>:
fdatasync(fn);
}
/* iterate over all FILE *'s for this thread */
static void sync_per_thread(Thread_Control *t)
{
109394: 55 push %ebp
109395: 89 e5 mov %esp,%ebp
109397: 53 push %ebx
109398: 83 ec 04 sub $0x4,%esp
10939b: 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;
10939e: 8b 88 f0 00 00 00 mov 0xf0(%eax),%ecx
if ( this_reent ) {
1093a4: 85 c9 test %ecx,%ecx
1093a6: 74 32 je 1093da <sync_per_thread+0x46> <== NEVER TAKEN
current_reent = _Thread_Executing->libc_reent;
1093a8: 8b 15 c4 82 12 00 mov 0x1282c4,%edx
1093ae: 8b 9a f0 00 00 00 mov 0xf0(%edx),%ebx
_Thread_Executing->libc_reent = this_reent;
1093b4: 89 8a f0 00 00 00 mov %ecx,0xf0(%edx)
_fwalk (t->libc_reent, sync_wrapper);
1093ba: 52 push %edx
1093bb: 52 push %edx
1093bc: 68 06 94 10 00 push $0x109406
1093c1: ff b0 f0 00 00 00 pushl 0xf0(%eax)
1093c7: e8 f0 b4 00 00 call 1148bc <_fwalk>
_Thread_Executing->libc_reent = current_reent;
1093cc: a1 c4 82 12 00 mov 0x1282c4,%eax
1093d1: 89 98 f0 00 00 00 mov %ebx,0xf0(%eax)
1093d7: 83 c4 10 add $0x10,%esp
}
}
1093da: 8b 5d fc mov -0x4(%ebp),%ebx
1093dd: c9 leave
1093de: c3 ret
00114c14 <tcsetattr>:
int tcsetattr(
int fd,
int opt,
struct termios *tp
)
{
114c14: 55 push %ebp
114c15: 89 e5 mov %esp,%ebp
114c17: 56 push %esi
114c18: 53 push %ebx
114c19: 8b 5d 08 mov 0x8(%ebp),%ebx
114c1c: 8b 45 0c mov 0xc(%ebp),%eax
114c1f: 8b 75 10 mov 0x10(%ebp),%esi
switch (opt) {
114c22: 85 c0 test %eax,%eax
114c24: 74 22 je 114c48 <tcsetattr+0x34> <== ALWAYS TAKEN
114c26: 48 dec %eax <== NOT EXECUTED
114c27: 74 0d je 114c36 <tcsetattr+0x22> <== NOT EXECUTED
default:
rtems_set_errno_and_return_minus_one( ENOTSUP );
114c29: e8 ca 47 00 00 call 1193f8 <__errno> <== NOT EXECUTED
114c2e: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
114c34: eb 2a jmp 114c60 <tcsetattr+0x4c> <== NOT EXECUTED
case TCSADRAIN:
if (ioctl( fd, RTEMS_IO_TCDRAIN, NULL ) < 0)
114c36: 50 push %eax <== NOT EXECUTED
114c37: 6a 00 push $0x0 <== NOT EXECUTED
114c39: 6a 03 push $0x3 <== NOT EXECUTED
114c3b: 53 push %ebx <== NOT EXECUTED
114c3c: e8 6f 39 00 00 call 1185b0 <ioctl> <== NOT EXECUTED
114c41: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
114c44: 85 c0 test %eax,%eax <== NOT EXECUTED
114c46: 78 18 js 114c60 <tcsetattr+0x4c> <== NOT EXECUTED
return -1;
/*
* Fall through to....
*/
case TCSANOW:
return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp );
114c48: 89 75 10 mov %esi,0x10(%ebp)
114c4b: c7 45 0c 02 00 00 00 movl $0x2,0xc(%ebp)
114c52: 89 5d 08 mov %ebx,0x8(%ebp)
}
}
114c55: 8d 65 f8 lea -0x8(%ebp),%esp
114c58: 5b pop %ebx
114c59: 5e pop %esi
114c5a: c9 leave
return -1;
/*
* Fall through to....
*/
case TCSANOW:
return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp );
114c5b: e9 50 39 00 00 jmp 1185b0 <ioctl>
}
}
114c60: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
114c63: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
114c66: 5b pop %ebx <== NOT EXECUTED
114c67: 5e pop %esi <== NOT EXECUTED
114c68: c9 leave <== NOT EXECUTED
114c69: c3 ret <== NOT EXECUTED
0010a45c <timer_create>:
int timer_create(
clockid_t clock_id,
struct sigevent *evp,
timer_t *timerid
)
{
10a45c: 55 push %ebp
10a45d: 89 e5 mov %esp,%ebp
10a45f: 56 push %esi
10a460: 53 push %ebx
10a461: 8b 5d 0c mov 0xc(%ebp),%ebx
10a464: 8b 75 10 mov 0x10(%ebp),%esi
POSIX_Timer_Control *ptimer;
if ( clock_id != CLOCK_REALTIME )
10a467: 83 7d 08 01 cmpl $0x1,0x8(%ebp)
10a46b: 75 1d jne 10a48a <timer_create+0x2e>
rtems_set_errno_and_return_minus_one( EINVAL );
if ( !timerid )
10a46d: 85 f6 test %esi,%esi
10a46f: 74 19 je 10a48a <timer_create+0x2e>
/*
* The data of the structure evp are checked in order to verify if they
* are coherent.
*/
if (evp != NULL) {
10a471: 85 db test %ebx,%ebx
10a473: 74 22 je 10a497 <timer_create+0x3b>
/* The structure has data */
if ( ( evp->sigev_notify != SIGEV_NONE ) &&
10a475: 8b 03 mov (%ebx),%eax
10a477: 48 dec %eax
10a478: 83 f8 01 cmp $0x1,%eax
10a47b: 77 0d ja 10a48a <timer_create+0x2e> <== NEVER TAKEN
( evp->sigev_notify != SIGEV_SIGNAL ) ) {
/* The value of the field sigev_notify is not valid */
rtems_set_errno_and_return_minus_one( EINVAL );
}
if ( !evp->sigev_signo )
10a47d: 8b 43 04 mov 0x4(%ebx),%eax
10a480: 85 c0 test %eax,%eax
10a482: 74 06 je 10a48a <timer_create+0x2e> <== NEVER TAKEN
rtems_set_errno_and_return_minus_one( EINVAL );
if ( !is_valid_signo(evp->sigev_signo) )
10a484: 48 dec %eax
10a485: 83 f8 1f cmp $0x1f,%eax
10a488: 76 0d jbe 10a497 <timer_create+0x3b> <== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( EINVAL );
10a48a: e8 7d 90 00 00 call 11350c <__errno>
10a48f: c7 00 16 00 00 00 movl $0x16,(%eax)
10a495: eb 2f jmp 10a4c6 <timer_create+0x6a>
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
10a497: a1 5c 82 12 00 mov 0x12825c,%eax
10a49c: 40 inc %eax
10a49d: a3 5c 82 12 00 mov %eax,0x12825c
* the inactive chain of free timer control blocks.
*/
RTEMS_INLINE_ROUTINE POSIX_Timer_Control *_POSIX_Timer_Allocate( void )
{
return (POSIX_Timer_Control *) _Objects_Allocate( &_POSIX_Timer_Information );
10a4a2: 83 ec 0c sub $0xc,%esp
10a4a5: 68 84 85 12 00 push $0x128584
10a4aa: e8 39 1b 00 00 call 10bfe8 <_Objects_Allocate>
/*
* Allocate a timer
*/
ptimer = _POSIX_Timer_Allocate();
if ( !ptimer ) {
10a4af: 83 c4 10 add $0x10,%esp
10a4b2: 85 c0 test %eax,%eax
10a4b4: 75 18 jne 10a4ce <timer_create+0x72>
_Thread_Enable_dispatch();
10a4b6: e8 32 27 00 00 call 10cbed <_Thread_Enable_dispatch>
rtems_set_errno_and_return_minus_one( EAGAIN );
10a4bb: e8 4c 90 00 00 call 11350c <__errno>
10a4c0: c7 00 0b 00 00 00 movl $0xb,(%eax)
10a4c6: 83 c8 ff or $0xffffffff,%eax
10a4c9: e9 83 00 00 00 jmp 10a551 <timer_create+0xf5>
}
/* The data of the created timer are stored to use them later */
ptimer->state = POSIX_TIMER_STATE_CREATE_NEW;
10a4ce: c6 40 3c 02 movb $0x2,0x3c(%eax)
ptimer->thread_id = _Thread_Executing->Object.id;
10a4d2: 8b 15 18 83 12 00 mov 0x128318,%edx
10a4d8: 8b 52 08 mov 0x8(%edx),%edx
10a4db: 89 50 38 mov %edx,0x38(%eax)
if ( evp != NULL ) {
10a4de: 85 db test %ebx,%ebx
10a4e0: 74 11 je 10a4f3 <timer_create+0x97>
ptimer->inf.sigev_notify = evp->sigev_notify;
10a4e2: 8b 13 mov (%ebx),%edx
10a4e4: 89 50 40 mov %edx,0x40(%eax)
ptimer->inf.sigev_signo = evp->sigev_signo;
10a4e7: 8b 53 04 mov 0x4(%ebx),%edx
10a4ea: 89 50 44 mov %edx,0x44(%eax)
ptimer->inf.sigev_value = evp->sigev_value;
10a4ed: 8b 53 08 mov 0x8(%ebx),%edx
10a4f0: 89 50 48 mov %edx,0x48(%eax)
}
ptimer->overrun = 0;
10a4f3: c7 40 68 00 00 00 00 movl $0x0,0x68(%eax)
ptimer->timer_data.it_value.tv_sec = 0;
10a4fa: c7 40 5c 00 00 00 00 movl $0x0,0x5c(%eax)
ptimer->timer_data.it_value.tv_nsec = 0;
10a501: c7 40 60 00 00 00 00 movl $0x0,0x60(%eax)
ptimer->timer_data.it_interval.tv_sec = 0;
10a508: c7 40 54 00 00 00 00 movl $0x0,0x54(%eax)
ptimer->timer_data.it_interval.tv_nsec = 0;
10a50f: c7 40 58 00 00 00 00 movl $0x0,0x58(%eax)
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
10a516: c7 40 18 00 00 00 00 movl $0x0,0x18(%eax)
the_watchdog->routine = routine;
10a51d: c7 40 2c 00 00 00 00 movl $0x0,0x2c(%eax)
the_watchdog->id = id;
10a524: c7 40 30 00 00 00 00 movl $0x0,0x30(%eax)
the_watchdog->user_data = user_data;
10a52b: c7 40 34 00 00 00 00 movl $0x0,0x34(%eax)
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
10a532: 8b 50 08 mov 0x8(%eax),%edx
10a535: 0f b7 da movzwl %dx,%ebx
10a538: 8b 0d a0 85 12 00 mov 0x1285a0,%ecx
10a53e: 89 04 99 mov %eax,(%ecx,%ebx,4)
_Objects_Get_index( the_object->id ),
the_object
);
/* ASSERT: information->is_string == false */
the_object->name.name_u32 = name;
10a541: c7 40 0c 00 00 00 00 movl $0x0,0xc(%eax)
_Watchdog_Initialize( &ptimer->Timer, NULL, 0, NULL );
_Objects_Open_u32(&_POSIX_Timer_Information, &ptimer->Object, 0);
*timerid = ptimer->Object.id;
10a548: 89 16 mov %edx,(%esi)
_Thread_Enable_dispatch();
10a54a: e8 9e 26 00 00 call 10cbed <_Thread_Enable_dispatch>
10a54f: 31 c0 xor %eax,%eax
return 0;
}
10a551: 8d 65 f8 lea -0x8(%ebp),%esp
10a554: 5b pop %ebx
10a555: 5e pop %esi
10a556: c9 leave
10a557: c3 ret
0010a558 <timer_settime>:
timer_t timerid,
int flags,
const struct itimerspec *value,
struct itimerspec *ovalue
)
{
10a558: 55 push %ebp
10a559: 89 e5 mov %esp,%ebp
10a55b: 57 push %edi
10a55c: 56 push %esi
10a55d: 53 push %ebx
10a55e: 83 ec 2c sub $0x2c,%esp
10a561: 8b 45 0c mov 0xc(%ebp),%eax
Objects_Locations location;
bool activated;
uint32_t initial_period;
struct itimerspec normalize;
if ( !value )
10a564: 83 7d 10 00 cmpl $0x0,0x10(%ebp)
10a568: 0f 84 47 01 00 00 je 10a6b5 <timer_settime+0x15d> <== NEVER TAKEN
rtems_set_errno_and_return_minus_one( EINVAL );
/* First, it verifies if the structure "value" is correct */
if ( ( value->it_value.tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) ||
10a56e: 8b 55 10 mov 0x10(%ebp),%edx
10a571: 81 7a 0c ff c9 9a 3b cmpl $0x3b9ac9ff,0xc(%edx)
10a578: 0f 87 37 01 00 00 ja 10a6b5 <timer_settime+0x15d>
( value->it_value.tv_nsec < 0 ) ||
( value->it_interval.tv_nsec >= TOD_NANOSECONDS_PER_SECOND) ||
10a57e: 81 7a 04 ff c9 9a 3b cmpl $0x3b9ac9ff,0x4(%edx)
10a585: 0f 87 2a 01 00 00 ja 10a6b5 <timer_settime+0x15d> <== NEVER TAKEN
( value->it_interval.tv_nsec < 0 )) {
/* The number of nanoseconds is not correct */
rtems_set_errno_and_return_minus_one( EINVAL );
}
if ( flags != TIMER_ABSTIME && flags != POSIX_TIMER_RELATIVE ) {
10a58b: 85 c0 test %eax,%eax
10a58d: 74 09 je 10a598 <timer_settime+0x40>
10a58f: 83 f8 04 cmp $0x4,%eax
10a592: 0f 85 1d 01 00 00 jne 10a6b5 <timer_settime+0x15d>
rtems_set_errno_and_return_minus_one( EINVAL );
}
normalize = *value;
10a598: 8d 7d cc lea -0x34(%ebp),%edi
10a59b: b9 04 00 00 00 mov $0x4,%ecx
10a5a0: 8b 75 10 mov 0x10(%ebp),%esi
10a5a3: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
/* Convert absolute to relative time */
if (flags == TIMER_ABSTIME) {
10a5a5: 83 f8 04 cmp $0x4,%eax
10a5a8: 75 2f jne 10a5d9 <timer_settime+0x81>
struct timespec now;
_TOD_Get( &now );
10a5aa: 83 ec 0c sub $0xc,%esp
10a5ad: 8d 5d dc lea -0x24(%ebp),%ebx
10a5b0: 53 push %ebx
10a5b1: e8 a2 15 00 00 call 10bb58 <_TOD_Get>
/* Check for seconds in the past */
if ( _Timespec_Greater_than( &now, &normalize.it_value ) )
10a5b6: 59 pop %ecx
10a5b7: 5e pop %esi
10a5b8: 8d 75 d4 lea -0x2c(%ebp),%esi
10a5bb: 56 push %esi
10a5bc: 53 push %ebx
10a5bd: e8 9a 31 00 00 call 10d75c <_Timespec_Greater_than>
10a5c2: 83 c4 10 add $0x10,%esp
10a5c5: 84 c0 test %al,%al
10a5c7: 0f 85 e8 00 00 00 jne 10a6b5 <timer_settime+0x15d>
rtems_set_errno_and_return_minus_one( EINVAL );
_Timespec_Subtract( &now, &normalize.it_value, &normalize.it_value );
10a5cd: 52 push %edx
10a5ce: 56 push %esi
10a5cf: 56 push %esi
10a5d0: 53 push %ebx
10a5d1: e8 aa 31 00 00 call 10d780 <_Timespec_Subtract>
10a5d6: 83 c4 10 add $0x10,%esp
RTEMS_INLINE_ROUTINE POSIX_Timer_Control *_POSIX_Timer_Get (
timer_t id,
Objects_Locations *location
)
{
return (POSIX_Timer_Control *)
10a5d9: 50 push %eax
10a5da: 8d 45 e4 lea -0x1c(%ebp),%eax
10a5dd: 50 push %eax
10a5de: ff 75 08 pushl 0x8(%ebp)
10a5e1: 68 84 85 12 00 push $0x128584
10a5e6: e8 11 1e 00 00 call 10c3fc <_Objects_Get>
10a5eb: 89 c3 mov %eax,%ebx
* something with the structure of times of the timer: to stop, start
* or start it again
*/
ptimer = _POSIX_Timer_Get( timerid, &location );
switch ( location ) {
10a5ed: 83 c4 10 add $0x10,%esp
10a5f0: 83 7d e4 00 cmpl $0x0,-0x1c(%ebp)
10a5f4: 0f 85 bb 00 00 00 jne 10a6b5 <timer_settime+0x15d>
case OBJECTS_LOCAL:
/* First, it verifies if the timer must be stopped */
if ( normalize.it_value.tv_sec == 0 && normalize.it_value.tv_nsec == 0 ) {
10a5fa: 83 7d d4 00 cmpl $0x0,-0x2c(%ebp)
10a5fe: 75 3b jne 10a63b <timer_settime+0xe3>
10a600: 83 7d d8 00 cmpl $0x0,-0x28(%ebp)
10a604: 75 35 jne 10a63b <timer_settime+0xe3>
/* Stop the timer */
(void) _Watchdog_Remove( &ptimer->Timer );
10a606: 83 ec 0c sub $0xc,%esp
10a609: 8d 40 10 lea 0x10(%eax),%eax
10a60c: 50 push %eax
10a60d: e8 2e 35 00 00 call 10db40 <_Watchdog_Remove>
/* The old data of the timer are returned */
if ( ovalue )
10a612: 83 c4 10 add $0x10,%esp
10a615: 83 7d 14 00 cmpl $0x0,0x14(%ebp)
10a619: 74 0d je 10a628 <timer_settime+0xd0>
*ovalue = ptimer->timer_data;
10a61b: 8d 73 54 lea 0x54(%ebx),%esi
10a61e: b9 04 00 00 00 mov $0x4,%ecx
10a623: 8b 7d 14 mov 0x14(%ebp),%edi
10a626: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
/* The new data are set */
ptimer->timer_data = normalize;
10a628: 8d 7b 54 lea 0x54(%ebx),%edi
10a62b: 8d 75 cc lea -0x34(%ebp),%esi
10a62e: b9 04 00 00 00 mov $0x4,%ecx
10a633: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
/* Indicates that the timer is created and stopped */
ptimer->state = POSIX_TIMER_STATE_CREATE_STOP;
10a635: c6 43 3c 04 movb $0x4,0x3c(%ebx)
10a639: eb 35 jmp 10a670 <timer_settime+0x118>
_Thread_Enable_dispatch();
return 0;
}
/* Convert from seconds and nanoseconds to ticks */
ptimer->ticks = _Timespec_To_ticks( &value->it_interval );
10a63b: 83 ec 0c sub $0xc,%esp
10a63e: ff 75 10 pushl 0x10(%ebp)
10a641: e8 6e 31 00 00 call 10d7b4 <_Timespec_To_ticks>
10a646: 89 43 64 mov %eax,0x64(%ebx)
initial_period = _Timespec_To_ticks( &normalize.it_value );
10a649: 8d 45 d4 lea -0x2c(%ebp),%eax
10a64c: 89 04 24 mov %eax,(%esp)
10a64f: e8 60 31 00 00 call 10d7b4 <_Timespec_To_ticks>
activated = _POSIX_Timer_Insert_helper(
10a654: 89 1c 24 mov %ebx,(%esp)
10a657: 68 cc a6 10 00 push $0x10a6cc
10a65c: ff 73 08 pushl 0x8(%ebx)
10a65f: 50 push %eax
10a660: 8d 43 10 lea 0x10(%ebx),%eax
10a663: 50 push %eax
10a664: e8 33 5e 00 00 call 11049c <_POSIX_Timer_Insert_helper>
initial_period,
ptimer->Object.id,
_POSIX_Timer_TSR,
ptimer
);
if ( !activated ) {
10a669: 83 c4 20 add $0x20,%esp
10a66c: 84 c0 test %al,%al
10a66e: 75 09 jne 10a679 <timer_settime+0x121>
_Thread_Enable_dispatch();
10a670: e8 78 25 00 00 call 10cbed <_Thread_Enable_dispatch>
10a675: 31 c0 xor %eax,%eax
return 0;
10a677: eb 4a jmp 10a6c3 <timer_settime+0x16b>
/*
* The timer has been started and is running. So we return the
* old ones in "ovalue"
*/
if ( ovalue )
10a679: 83 7d 14 00 cmpl $0x0,0x14(%ebp)
10a67d: 74 0d je 10a68c <timer_settime+0x134>
*ovalue = ptimer->timer_data;
10a67f: 8d 73 54 lea 0x54(%ebx),%esi
10a682: b9 04 00 00 00 mov $0x4,%ecx
10a687: 8b 7d 14 mov 0x14(%ebp),%edi
10a68a: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
ptimer->timer_data = normalize;
10a68c: 8d 7b 54 lea 0x54(%ebx),%edi
10a68f: 8d 75 cc lea -0x34(%ebp),%esi
10a692: b9 04 00 00 00 mov $0x4,%ecx
10a697: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
/* Indicate that the time is running */
ptimer->state = POSIX_TIMER_STATE_CREATE_RUN;
10a699: c6 43 3c 03 movb $0x3,0x3c(%ebx)
_TOD_Get( &ptimer->time );
10a69d: 83 ec 0c sub $0xc,%esp
10a6a0: 83 c3 6c add $0x6c,%ebx
10a6a3: 53 push %ebx
10a6a4: e8 af 14 00 00 call 10bb58 <_TOD_Get>
_Thread_Enable_dispatch();
10a6a9: e8 3f 25 00 00 call 10cbed <_Thread_Enable_dispatch>
10a6ae: 31 c0 xor %eax,%eax
return 0;
10a6b0: 83 c4 10 add $0x10,%esp
10a6b3: eb 0e jmp 10a6c3 <timer_settime+0x16b>
#endif
case OBJECTS_ERROR:
break;
}
rtems_set_errno_and_return_minus_one( EINVAL );
10a6b5: e8 52 8e 00 00 call 11350c <__errno>
10a6ba: c7 00 16 00 00 00 movl $0x16,(%eax)
10a6c0: 83 c8 ff or $0xffffffff,%eax
}
10a6c3: 8d 65 f4 lea -0xc(%ebp),%esp
10a6c6: 5b pop %ebx
10a6c7: 5e pop %esi
10a6c8: 5f pop %edi
10a6c9: c9 leave
10a6ca: c3 ret
0010a370 <ualarm>:
useconds_t ualarm(
useconds_t useconds,
useconds_t interval
)
{
10a370: 55 push %ebp
10a371: 89 e5 mov %esp,%ebp
10a373: 57 push %edi
10a374: 56 push %esi
10a375: 53 push %ebx
10a376: 83 ec 1c sub $0x1c,%esp
10a379: 8b 75 08 mov 0x8(%ebp),%esi
/*
* Initialize the timer used to implement alarm().
*/
if ( !the_timer->routine ) {
10a37c: 83 3d ec 8c 12 00 00 cmpl $0x0,0x128cec
10a383: 75 2c jne 10a3b1 <ualarm+0x41>
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
10a385: c7 05 d8 8c 12 00 00 movl $0x0,0x128cd8
10a38c: 00 00 00
the_watchdog->routine = routine;
10a38f: c7 05 ec 8c 12 00 52 movl $0x10a452,0x128cec
10a396: a4 10 00
the_watchdog->id = id;
10a399: c7 05 f0 8c 12 00 00 movl $0x0,0x128cf0
10a3a0: 00 00 00
the_watchdog->user_data = user_data;
10a3a3: c7 05 f4 8c 12 00 00 movl $0x0,0x128cf4
10a3aa: 00 00 00
10a3ad: 31 db xor %ebx,%ebx
10a3af: eb 4f jmp 10a400 <ualarm+0x90>
_Watchdog_Initialize( the_timer, _POSIX_signals_Ualarm_TSR, 0, NULL );
} else {
Watchdog_States state;
state = _Watchdog_Remove( the_timer );
10a3b1: 83 ec 0c sub $0xc,%esp
10a3b4: 68 d0 8c 12 00 push $0x128cd0
10a3b9: e8 b6 33 00 00 call 10d774 <_Watchdog_Remove>
if ( (state == WATCHDOG_ACTIVE) || (state == WATCHDOG_REMOVE_IT) ) {
10a3be: 83 e8 02 sub $0x2,%eax
10a3c1: 83 c4 10 add $0x10,%esp
10a3c4: 31 db xor %ebx,%ebx
10a3c6: 83 f8 01 cmp $0x1,%eax
10a3c9: 77 35 ja 10a400 <ualarm+0x90> <== NEVER TAKEN
* boot. Since alarm() is dealing in seconds, we must account for
* this.
*/
ticks = the_timer->initial;
ticks -= (the_timer->stop_time - the_timer->start_time);
10a3cb: a1 e4 8c 12 00 mov 0x128ce4,%eax
10a3d0: 03 05 dc 8c 12 00 add 0x128cdc,%eax
/* remaining is now in ticks */
_Timespec_From_ticks( ticks, &tp );
10a3d6: 51 push %ecx
10a3d7: 51 push %ecx
10a3d8: 8d 55 e0 lea -0x20(%ebp),%edx
10a3db: 52 push %edx
10a3dc: 2b 05 e8 8c 12 00 sub 0x128ce8,%eax
10a3e2: 50 push %eax
10a3e3: e8 38 2f 00 00 call 10d320 <_Timespec_From_ticks>
remaining = tp.tv_sec * TOD_MICROSECONDS_PER_SECOND;
10a3e8: 69 4d e0 40 42 0f 00 imul $0xf4240,-0x20(%ebp),%ecx
remaining += tp.tv_nsec / 1000;
10a3ef: 8b 45 e4 mov -0x1c(%ebp),%eax
10a3f2: bf e8 03 00 00 mov $0x3e8,%edi
10a3f7: 99 cltd
10a3f8: f7 ff idiv %edi
10a3fa: 8d 1c 08 lea (%eax,%ecx,1),%ebx
10a3fd: 83 c4 10 add $0x10,%esp
/*
* If useconds is non-zero, then the caller wants to schedule
* the alarm repeatedly at that interval. If the interval is
* less than a single clock tick, then fudge it to a clock tick.
*/
if ( useconds ) {
10a400: 85 f6 test %esi,%esi
10a402: 74 44 je 10a448 <ualarm+0xd8>
Watchdog_Interval ticks;
tp.tv_sec = useconds / TOD_MICROSECONDS_PER_SECOND;
10a404: b9 40 42 0f 00 mov $0xf4240,%ecx
10a409: 89 f0 mov %esi,%eax
10a40b: 31 d2 xor %edx,%edx
10a40d: f7 f1 div %ecx
10a40f: 89 45 e0 mov %eax,-0x20(%ebp)
tp.tv_nsec = (useconds % TOD_MICROSECONDS_PER_SECOND) * 1000;
10a412: 69 d2 e8 03 00 00 imul $0x3e8,%edx,%edx
10a418: 89 55 e4 mov %edx,-0x1c(%ebp)
ticks = _Timespec_To_ticks( &tp );
10a41b: 83 ec 0c sub $0xc,%esp
10a41e: 8d 75 e0 lea -0x20(%ebp),%esi
10a421: 56 push %esi
10a422: e8 55 2f 00 00 call 10d37c <_Timespec_To_ticks>
if ( ticks == 0 )
ticks = 1;
_Watchdog_Insert_ticks( the_timer, _Timespec_To_ticks( &tp ) );
10a427: 89 34 24 mov %esi,(%esp)
10a42a: e8 4d 2f 00 00 call 10d37c <_Timespec_To_ticks>
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
10a42f: a3 dc 8c 12 00 mov %eax,0x128cdc
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
10a434: 58 pop %eax
10a435: 5a pop %edx
10a436: 68 d0 8c 12 00 push $0x128cd0
10a43b: 68 d4 84 12 00 push $0x1284d4
10a440: e8 1b 32 00 00 call 10d660 <_Watchdog_Insert>
10a445: 83 c4 10 add $0x10,%esp
}
return remaining;
}
10a448: 89 d8 mov %ebx,%eax
10a44a: 8d 65 f4 lea -0xc(%ebp),%esp
10a44d: 5b pop %ebx
10a44e: 5e pop %esi
10a44f: 5f pop %edi
10a450: c9 leave
10a451: c3 ret
00111c8c <unlink>:
#include <rtems/seterr.h>
int unlink(
const char *path
)
{
111c8c: 55 push %ebp
111c8d: 89 e5 mov %esp,%ebp
111c8f: 57 push %edi
111c90: 56 push %esi
111c91: 53 push %ebx
111c92: 83 ec 58 sub $0x58,%esp
/*
* Get the node to be unlinked. Find the parent path first.
*/
parentpathlen = rtems_filesystem_dirname ( path );
111c95: ff 75 08 pushl 0x8(%ebp)
111c98: e8 97 58 ff ff call 107534 <rtems_filesystem_dirname>
111c9d: 89 45 b4 mov %eax,-0x4c(%ebp)
if ( parentpathlen == 0 )
111ca0: 83 c4 10 add $0x10,%esp
111ca3: 85 c0 test %eax,%eax
111ca5: 8d 45 d0 lea -0x30(%ebp),%eax
111ca8: 75 15 jne 111cbf <unlink+0x33>
rtems_filesystem_get_start_loc( path, &i, &parentloc );
111caa: 51 push %ecx
111cab: 50 push %eax
111cac: 8d 45 e4 lea -0x1c(%ebp),%eax
111caf: 50 push %eax
111cb0: ff 75 08 pushl 0x8(%ebp)
111cb3: e8 f8 66 ff ff call 1083b0 <rtems_filesystem_get_start_loc>
111cb8: 31 db xor %ebx,%ebx
111cba: 83 c4 10 add $0x10,%esp
111cbd: eb 20 jmp 111cdf <unlink+0x53>
else {
result = rtems_filesystem_evaluate_path( path, parentpathlen,
111cbf: 83 ec 0c sub $0xc,%esp
111cc2: 6a 00 push $0x0
111cc4: 50 push %eax
111cc5: 6a 02 push $0x2
111cc7: ff 75 b4 pushl -0x4c(%ebp)
111cca: ff 75 08 pushl 0x8(%ebp)
111ccd: e8 5f 59 ff ff call 107631 <rtems_filesystem_evaluate_path>
RTEMS_LIBIO_PERMS_WRITE,
&parentloc,
false );
if ( result != 0 )
111cd2: 83 c4 20 add $0x20,%esp
111cd5: 85 c0 test %eax,%eax
111cd7: 0f 85 69 01 00 00 jne 111e46 <unlink+0x1ba> <== NEVER TAKEN
111cdd: b3 01 mov $0x1,%bl
/*
* Start from the parent to find the node that should be under it.
*/
loc = parentloc;
111cdf: 8d 7d bc lea -0x44(%ebp),%edi
111ce2: 8d 75 d0 lea -0x30(%ebp),%esi
111ce5: b9 05 00 00 00 mov $0x5,%ecx
111cea: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
name = path + parentpathlen;
111cec: 8b 75 08 mov 0x8(%ebp),%esi
111cef: 03 75 b4 add -0x4c(%ebp),%esi
name += rtems_filesystem_prefix_separators( name, strlen( name ) );
111cf2: 83 c9 ff or $0xffffffff,%ecx
111cf5: 89 f7 mov %esi,%edi
111cf7: 31 c0 xor %eax,%eax
111cf9: f2 ae repnz scas %es:(%edi),%al
111cfb: f7 d1 not %ecx
111cfd: 49 dec %ecx
111cfe: 52 push %edx
111cff: 52 push %edx
111d00: 51 push %ecx
111d01: 56 push %esi
111d02: e8 f1 57 ff ff call 1074f8 <rtems_filesystem_prefix_separators>
111d07: 01 c6 add %eax,%esi
result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
111d09: 83 c9 ff or $0xffffffff,%ecx
111d0c: 89 f7 mov %esi,%edi
111d0e: 31 c0 xor %eax,%eax
111d10: f2 ae repnz scas %es:(%edi),%al
111d12: f7 d1 not %ecx
111d14: 49 dec %ecx
111d15: c7 04 24 00 00 00 00 movl $0x0,(%esp)
111d1c: 8d 7d bc lea -0x44(%ebp),%edi
111d1f: 57 push %edi
111d20: 6a 00 push $0x0
111d22: 51 push %ecx
111d23: 56 push %esi
111d24: e8 4e 58 ff ff call 107577 <rtems_filesystem_evaluate_relative_path>
0, &loc, false );
if ( result != 0 ) {
111d29: 83 c4 20 add $0x20,%esp
111d2c: 85 c0 test %eax,%eax
111d2e: 74 2f je 111d5f <unlink+0xd3>
if ( free_parentloc )
111d30: 84 db test %bl,%bl
111d32: 0f 84 0e 01 00 00 je 111e46 <unlink+0x1ba> <== NEVER TAKEN
rtems_filesystem_freenode( &parentloc );
111d38: 8b 45 dc mov -0x24(%ebp),%eax
111d3b: 85 c0 test %eax,%eax
111d3d: 0f 84 03 01 00 00 je 111e46 <unlink+0x1ba> <== NEVER TAKEN
111d43: 8b 40 1c mov 0x1c(%eax),%eax
111d46: 85 c0 test %eax,%eax
111d48: 0f 84 f8 00 00 00 je 111e46 <unlink+0x1ba> <== NEVER TAKEN
111d4e: 83 ec 0c sub $0xc,%esp
111d51: 8d 55 d0 lea -0x30(%ebp),%edx
111d54: 52 push %edx
111d55: ff d0 call *%eax
111d57: 83 ce ff or $0xffffffff,%esi
111d5a: e9 e2 00 00 00 jmp 111e41 <unlink+0x1b5>
return -1;
}
if ( !loc.ops->node_type_h ) {
111d5f: 8b 55 c8 mov -0x38(%ebp),%edx
111d62: 8b 42 10 mov 0x10(%edx),%eax
111d65: 85 c0 test %eax,%eax
111d67: 75 05 jne 111d6e <unlink+0xe2> <== ALWAYS TAKEN
rtems_filesystem_freenode( &loc );
111d69: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED
111d6c: eb 5b jmp 111dc9 <unlink+0x13d> <== NOT EXECUTED
if ( free_parentloc )
rtems_filesystem_freenode( &parentloc );
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) {
111d6e: 83 ec 0c sub $0xc,%esp
111d71: 57 push %edi
111d72: ff d0 call *%eax
111d74: 83 c4 10 add $0x10,%esp
111d77: 48 dec %eax
111d78: 8b 45 c8 mov -0x38(%ebp),%eax
111d7b: 75 42 jne 111dbf <unlink+0x133>
rtems_filesystem_freenode( &loc );
111d7d: 85 c0 test %eax,%eax
111d7f: 74 10 je 111d91 <unlink+0x105> <== NEVER TAKEN
111d81: 8b 40 1c mov 0x1c(%eax),%eax
111d84: 85 c0 test %eax,%eax
111d86: 74 09 je 111d91 <unlink+0x105> <== NEVER TAKEN
111d88: 83 ec 0c sub $0xc,%esp
111d8b: 57 push %edi
111d8c: ff d0 call *%eax
111d8e: 83 c4 10 add $0x10,%esp
if ( free_parentloc )
111d91: 84 db test %bl,%bl
111d93: 74 1a je 111daf <unlink+0x123> <== ALWAYS TAKEN
rtems_filesystem_freenode( &parentloc );
111d95: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED
111d98: 85 c0 test %eax,%eax <== NOT EXECUTED
111d9a: 74 13 je 111daf <unlink+0x123> <== NOT EXECUTED
111d9c: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED
111d9f: 85 c0 test %eax,%eax <== NOT EXECUTED
111da1: 74 0c je 111daf <unlink+0x123> <== NOT EXECUTED
111da3: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
111da6: 8d 55 d0 lea -0x30(%ebp),%edx <== NOT EXECUTED
111da9: 52 push %edx <== NOT EXECUTED
111daa: ff d0 call *%eax <== NOT EXECUTED
111dac: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EISDIR );
111daf: e8 60 0c 00 00 call 112a14 <__errno>
111db4: c7 00 15 00 00 00 movl $0x15,(%eax)
111dba: e9 87 00 00 00 jmp 111e46 <unlink+0x1ba>
}
if ( !loc.ops->unlink_h ) {
111dbf: 8b 50 0c mov 0xc(%eax),%edx
111dc2: 85 d2 test %edx,%edx
111dc4: 75 3b jne 111e01 <unlink+0x175> <== ALWAYS TAKEN
rtems_filesystem_freenode( &loc );
111dc6: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED
111dc9: 85 c0 test %eax,%eax <== NOT EXECUTED
111dcb: 74 09 je 111dd6 <unlink+0x14a> <== NOT EXECUTED
111dcd: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
111dd0: 57 push %edi <== NOT EXECUTED
111dd1: ff d0 call *%eax <== NOT EXECUTED
111dd3: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
if ( free_parentloc )
111dd6: 84 db test %bl,%bl <== NOT EXECUTED
111dd8: 74 1a je 111df4 <unlink+0x168> <== NOT EXECUTED
rtems_filesystem_freenode( &parentloc );
111dda: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED
111ddd: 85 c0 test %eax,%eax <== NOT EXECUTED
111ddf: 74 13 je 111df4 <unlink+0x168> <== NOT EXECUTED
111de1: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED
111de4: 85 c0 test %eax,%eax <== NOT EXECUTED
111de6: 74 0c je 111df4 <unlink+0x168> <== NOT EXECUTED
111de8: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
111deb: 8d 55 d0 lea -0x30(%ebp),%edx <== NOT EXECUTED
111dee: 52 push %edx <== NOT EXECUTED
111def: ff d0 call *%eax <== NOT EXECUTED
111df1: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
111df4: e8 1b 0c 00 00 call 112a14 <__errno> <== NOT EXECUTED
111df9: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
111dff: eb 45 jmp 111e46 <unlink+0x1ba> <== NOT EXECUTED
}
result = (*loc.ops->unlink_h)( &parentloc, &loc );
111e01: 50 push %eax
111e02: 50 push %eax
111e03: 57 push %edi
111e04: 8d 45 d0 lea -0x30(%ebp),%eax
111e07: 50 push %eax
111e08: ff d2 call *%edx
111e0a: 89 c6 mov %eax,%esi
rtems_filesystem_freenode( &loc );
111e0c: 8b 45 c8 mov -0x38(%ebp),%eax
111e0f: 83 c4 10 add $0x10,%esp
111e12: 85 c0 test %eax,%eax
111e14: 74 10 je 111e26 <unlink+0x19a> <== NEVER TAKEN
111e16: 8b 40 1c mov 0x1c(%eax),%eax
111e19: 85 c0 test %eax,%eax
111e1b: 74 09 je 111e26 <unlink+0x19a> <== NEVER TAKEN
111e1d: 83 ec 0c sub $0xc,%esp
111e20: 57 push %edi
111e21: ff d0 call *%eax
111e23: 83 c4 10 add $0x10,%esp
if ( free_parentloc )
111e26: 84 db test %bl,%bl
111e28: 74 1f je 111e49 <unlink+0x1bd>
rtems_filesystem_freenode( &parentloc );
111e2a: 8b 45 dc mov -0x24(%ebp),%eax
111e2d: 85 c0 test %eax,%eax
111e2f: 74 18 je 111e49 <unlink+0x1bd> <== NEVER TAKEN
111e31: 8b 40 1c mov 0x1c(%eax),%eax
111e34: 85 c0 test %eax,%eax
111e36: 74 11 je 111e49 <unlink+0x1bd> <== NEVER TAKEN
111e38: 83 ec 0c sub $0xc,%esp
111e3b: 8d 55 d0 lea -0x30(%ebp),%edx
111e3e: 52 push %edx
111e3f: ff d0 call *%eax
111e41: 83 c4 10 add $0x10,%esp
111e44: eb 03 jmp 111e49 <unlink+0x1bd>
111e46: 83 ce ff or $0xffffffff,%esi
return result;
}
111e49: 89 f0 mov %esi,%eax
111e4b: 8d 65 f4 lea -0xc(%ebp),%esp
111e4e: 5b pop %ebx
111e4f: 5e pop %esi
111e50: 5f pop %edi
111e51: c9 leave
111e52: c3 ret
0012983d <unmount>:
*/
int unmount(
const char *path
)
{
12983d: 55 push %ebp
12983e: 89 e5 mov %esp,%ebp
129840: 57 push %edi
129841: 56 push %esi
129842: 53 push %ebx
129843: 83 ec 38 sub $0x38,%esp
129846: 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 ) )
129849: 31 c0 xor %eax,%eax
12984b: 83 c9 ff or $0xffffffff,%ecx
12984e: 89 d7 mov %edx,%edi
129850: f2 ae repnz scas %es:(%edi),%al
129852: f7 d1 not %ecx
129854: 49 dec %ecx
129855: 6a 01 push $0x1
129857: 8d 75 d4 lea -0x2c(%ebp),%esi
12985a: 56 push %esi
12985b: 6a 00 push $0x0
12985d: 51 push %ecx
12985e: 52 push %edx
12985f: e8 cd 35 fe ff call 10ce31 <rtems_filesystem_evaluate_path>
129864: 83 c4 20 add $0x20,%esp
129867: 85 c0 test %eax,%eax
129869: 0f 85 35 01 00 00 jne 1299a4 <unmount+0x167> <== NEVER TAKEN
return -1;
mt_entry = loc.mt_entry;
12986f: 8b 5d e4 mov -0x1c(%ebp),%ebx
fs_mount_loc = &mt_entry->mt_point_node;
fs_root_loc = &mt_entry->mt_fs_root;
129872: 8b 43 1c mov 0x1c(%ebx),%eax
129875: 3b 45 d4 cmp -0x2c(%ebp),%eax
129878: 8b 45 e0 mov -0x20(%ebp),%eax
12987b: 74 24 je 1298a1 <unmount+0x64>
/*
* Verify this is the root node for the file system to be unmounted.
*/
if ( fs_root_loc->node_access != loc.node_access ){
rtems_filesystem_freenode( &loc );
12987d: 85 c0 test %eax,%eax
12987f: 74 10 je 129891 <unmount+0x54> <== NEVER TAKEN
129881: 8b 40 1c mov 0x1c(%eax),%eax
129884: 85 c0 test %eax,%eax
129886: 74 09 je 129891 <unmount+0x54> <== NEVER TAKEN
129888: 83 ec 0c sub $0xc,%esp
12988b: 56 push %esi
12988c: ff d0 call *%eax
12988e: 83 c4 10 add $0x10,%esp
rtems_set_errno_and_return_minus_one( EACCES );
129891: e8 7e 47 01 00 call 13e014 <__errno>
129896: c7 00 0d 00 00 00 movl $0xd,(%eax)
12989c: e9 03 01 00 00 jmp 1299a4 <unmount+0x167>
/*
* Free the loc node and just use the nodes from the mt_entry .
*/
rtems_filesystem_freenode( &loc );
1298a1: 85 c0 test %eax,%eax
1298a3: 74 10 je 1298b5 <unmount+0x78> <== NEVER TAKEN
1298a5: 8b 40 1c mov 0x1c(%eax),%eax
1298a8: 85 c0 test %eax,%eax
1298aa: 74 09 je 1298b5 <unmount+0x78> <== NEVER TAKEN
1298ac: 83 ec 0c sub $0xc,%esp
1298af: 56 push %esi
1298b0: ff d0 call *%eax
1298b2: 83 c4 10 add $0x10,%esp
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;
1298b5: 8b 43 14 mov 0x14(%ebx),%eax
1298b8: 83 78 28 00 cmpl $0x0,0x28(%eax)
1298bc: 74 09 je 1298c7 <unmount+0x8a> <== NEVER TAKEN
fs_root_loc = &mt_entry->mt_fs_root;
1298be: 8b 43 28 mov 0x28(%ebx),%eax
1298c1: 83 78 2c 00 cmpl $0x0,0x2c(%eax)
1298c5: 75 10 jne 1298d7 <unmount+0x9a> <== ALWAYS TAKEN
if ( !fs_mount_loc->ops->unmount_h )
rtems_set_errno_and_return_minus_one( ENOTSUP );
if ( !fs_root_loc->ops->fsunmount_me_h )
rtems_set_errno_and_return_minus_one( ENOTSUP );
1298c7: e8 48 47 01 00 call 13e014 <__errno> <== NOT EXECUTED
1298cc: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
1298d2: e9 cd 00 00 00 jmp 1299a4 <unmount+0x167> <== NOT EXECUTED
* 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 )
1298d7: a1 fc 46 16 00 mov 0x1646fc,%eax
1298dc: 39 58 14 cmp %ebx,0x14(%eax)
1298df: 74 25 je 129906 <unmount+0xc9>
/*
* Verify there are no file systems below the path specified
*/
if ( rtems_filesystem_mount_iterate( is_fs_below_mount_point,
1298e1: 51 push %ecx
1298e2: 51 push %ecx
1298e3: ff 73 2c pushl 0x2c(%ebx)
1298e6: 68 2c 98 12 00 push $0x12982c
1298eb: e8 55 3d fe ff call 10d645 <rtems_filesystem_mount_iterate>
1298f0: 83 c4 10 add $0x10,%esp
1298f3: 84 c0 test %al,%al
1298f5: 75 0f jne 129906 <unmount+0xc9>
* 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 )
1298f7: 83 ec 0c sub $0xc,%esp
1298fa: 53 push %ebx
1298fb: e8 32 38 fe ff call 10d132 <rtems_libio_is_open_files_in_fs>
129900: 83 c4 10 add $0x10,%esp
129903: 48 dec %eax
129904: 75 10 jne 129916 <unmount+0xd9>
rtems_set_errno_and_return_minus_one( EBUSY );
129906: e8 09 47 01 00 call 13e014 <__errno>
12990b: c7 00 10 00 00 00 movl $0x10,(%eax)
129911: e9 8e 00 00 00 jmp 1299a4 <unmount+0x167>
* 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 )
129916: 83 ec 0c sub $0xc,%esp
129919: 8b 43 14 mov 0x14(%ebx),%eax
12991c: 53 push %ebx
12991d: ff 50 28 call *0x28(%eax)
129920: 83 c4 10 add $0x10,%esp
129923: 85 c0 test %eax,%eax
129925: 75 7d jne 1299a4 <unmount+0x167> <== 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){
129927: 83 ec 0c sub $0xc,%esp
12992a: 8b 43 28 mov 0x28(%ebx),%eax
12992d: 53 push %ebx
12992e: ff 50 2c call *0x2c(%eax)
129931: 83 c4 10 add $0x10,%esp
129934: 85 c0 test %eax,%eax
129936: 74 1b je 129953 <unmount+0x116> <== ALWAYS TAKEN
if (( fs_mount_loc->ops->mount_h )( mt_entry ) != 0 )
129938: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12993b: 8b 43 14 mov 0x14(%ebx),%eax <== NOT EXECUTED
12993e: 53 push %ebx <== NOT EXECUTED
12993f: ff 50 20 call *0x20(%eax) <== NOT EXECUTED
129942: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
129945: 85 c0 test %eax,%eax <== NOT EXECUTED
129947: 74 5b je 1299a4 <unmount+0x167> <== NOT EXECUTED
rtems_fatal_error_occurred( 0 );
129949: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12994c: 6a 00 push $0x0 <== NOT EXECUTED
12994e: e8 59 79 fe ff call 1112ac <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 );
129953: 52 push %edx
129954: 6a 00 push $0x0
129956: 6a 00 push $0x0
129958: ff 35 dc 9f 16 00 pushl 0x169fdc
12995e: e8 a5 72 fe ff call 110c08 <rtems_semaphore_obtain>
*/
RTEMS_INLINE_ROUTINE void rtems_chain_extract(
rtems_chain_node *the_node
)
{
_Chain_Extract( the_node );
129963: 89 1c 24 mov %ebx,(%esp)
129966: e8 2d 7d fe ff call 111698 <_Chain_Extract>
}
static inline void rtems_libio_unlock( void )
{
rtems_semaphore_release( rtems_libio_semaphore );
12996b: 58 pop %eax
12996c: ff 35 dc 9f 16 00 pushl 0x169fdc
129972: e8 7d 73 fe ff call 110cf4 <rtems_semaphore_release>
/*
* Free the memory node that was allocated in mount
* Free the memory associated with the extracted mount table entry.
*/
rtems_filesystem_freenode( fs_mount_loc );
129977: 8b 43 14 mov 0x14(%ebx),%eax
12997a: 83 c4 10 add $0x10,%esp
12997d: 85 c0 test %eax,%eax
12997f: 74 13 je 129994 <unmount+0x157> <== NEVER TAKEN
129981: 8b 40 1c mov 0x1c(%eax),%eax
129984: 85 c0 test %eax,%eax
129986: 74 0c je 129994 <unmount+0x157> <== NEVER TAKEN
129988: 83 ec 0c sub $0xc,%esp
12998b: 8d 53 08 lea 0x8(%ebx),%edx
12998e: 52 push %edx
12998f: ff d0 call *%eax
129991: 83 c4 10 add $0x10,%esp
free( mt_entry );
129994: 83 ec 0c sub $0xc,%esp
129997: 53 push %ebx
129998: e8 ff 34 fe ff call 10ce9c <free>
12999d: 31 c0 xor %eax,%eax
return 0;
12999f: 83 c4 10 add $0x10,%esp
1299a2: eb 03 jmp 1299a7 <unmount+0x16a>
1299a4: 83 c8 ff or $0xffffffff,%eax
}
1299a7: 8d 65 f4 lea -0xc(%ebp),%esp
1299aa: 5b pop %ebx
1299ab: 5e pop %esi
1299ac: 5f pop %edi
1299ad: c9 leave
1299ae: c3 ret
001299b0 <utime>:
int utime(
const char *path,
const struct utimbuf *times
)
{
1299b0: 55 push %ebp
1299b1: 89 e5 mov %esp,%ebp
1299b3: 57 push %edi
1299b4: 56 push %esi
1299b5: 53 push %ebx
1299b6: 83 ec 38 sub $0x38,%esp
1299b9: 8b 55 08 mov 0x8(%ebp),%edx
1299bc: 8b 5d 0c mov 0xc(%ebp),%ebx
rtems_filesystem_location_info_t temp_loc;
int result;
if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x00, &temp_loc, true ) )
1299bf: 31 c0 xor %eax,%eax
1299c1: 83 c9 ff or $0xffffffff,%ecx
1299c4: 89 d7 mov %edx,%edi
1299c6: f2 ae repnz scas %es:(%edi),%al
1299c8: f7 d1 not %ecx
1299ca: 49 dec %ecx
1299cb: 6a 01 push $0x1
1299cd: 8d 75 d4 lea -0x2c(%ebp),%esi
1299d0: 56 push %esi
1299d1: 6a 00 push $0x0
1299d3: 51 push %ecx
1299d4: 52 push %edx
1299d5: e8 57 34 fe ff call 10ce31 <rtems_filesystem_evaluate_path>
1299da: 83 c4 20 add $0x20,%esp
1299dd: 83 cf ff or $0xffffffff,%edi
1299e0: 85 c0 test %eax,%eax
1299e2: 75 4f jne 129a33 <utime+0x83>
return -1;
if ( !temp_loc.ops->utime_h ){
1299e4: 8b 55 e0 mov -0x20(%ebp),%edx
1299e7: 8b 42 30 mov 0x30(%edx),%eax
1299ea: 85 c0 test %eax,%eax
1299ec: 75 20 jne 129a0e <utime+0x5e> <== ALWAYS TAKEN
rtems_filesystem_freenode( &temp_loc );
1299ee: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED
1299f1: 85 c0 test %eax,%eax <== NOT EXECUTED
1299f3: 74 09 je 1299fe <utime+0x4e> <== NOT EXECUTED
1299f5: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1299f8: 56 push %esi <== NOT EXECUTED
1299f9: ff d0 call *%eax <== NOT EXECUTED
1299fb: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
1299fe: e8 11 46 01 00 call 13e014 <__errno> <== NOT EXECUTED
129a03: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
129a09: 83 cf ff or $0xffffffff,%edi <== NOT EXECUTED
129a0c: eb 25 jmp 129a33 <utime+0x83> <== NOT EXECUTED
}
result = (*temp_loc.ops->utime_h)( &temp_loc, times->actime, times->modtime );
129a0e: 52 push %edx
129a0f: ff 73 04 pushl 0x4(%ebx)
129a12: ff 33 pushl (%ebx)
129a14: 56 push %esi
129a15: ff d0 call *%eax
129a17: 89 c7 mov %eax,%edi
rtems_filesystem_freenode( &temp_loc );
129a19: 8b 45 e0 mov -0x20(%ebp),%eax
129a1c: 83 c4 10 add $0x10,%esp
129a1f: 85 c0 test %eax,%eax
129a21: 74 10 je 129a33 <utime+0x83> <== NEVER TAKEN
129a23: 8b 40 1c mov 0x1c(%eax),%eax
129a26: 85 c0 test %eax,%eax
129a28: 74 09 je 129a33 <utime+0x83> <== NEVER TAKEN
129a2a: 83 ec 0c sub $0xc,%esp
129a2d: 56 push %esi
129a2e: ff d0 call *%eax
129a30: 83 c4 10 add $0x10,%esp
return result;
}
129a33: 89 f8 mov %edi,%eax
129a35: 8d 65 f4 lea -0xc(%ebp),%esp
129a38: 5b pop %ebx
129a39: 5e pop %esi
129a3a: 5f pop %edi
129a3b: c9 leave
129a3c: c3 ret
00109d38 <vprintk>:
*/
void vprintk(
const char *fmt,
va_list ap
)
{
109d38: 55 push %ebp
109d39: 89 e5 mov %esp,%ebp
109d3b: 57 push %edi
109d3c: 56 push %esi
109d3d: 53 push %ebx
109d3e: 83 ec 4c sub $0x4c,%esp
109d41: 8b 5d 08 mov 0x8(%ebp),%ebx
109d44: 8b 75 0c mov 0xc(%ebp),%esi
for (; *fmt != '\0'; fmt++) {
109d47: e9 58 02 00 00 jmp 109fa4 <vprintk+0x26c>
bool minus = false;
bool sign = false;
char lead = ' ';
char c;
if (*fmt != '%') {
109d4c: 3c 25 cmp $0x25,%al
109d4e: 74 0c je 109d5c <vprintk+0x24>
BSP_output_char(*fmt);
109d50: 83 ec 0c sub $0xc,%esp
109d53: 0f be c0 movsbl %al,%eax
109d56: 50 push %eax
109d57: e9 52 01 00 00 jmp 109eae <vprintk+0x176>
continue;
}
fmt++;
109d5c: 43 inc %ebx
if (*fmt == '0' ) {
109d5d: c6 45 c4 20 movb $0x20,-0x3c(%ebp)
109d61: 80 3b 30 cmpb $0x30,(%ebx)
109d64: 75 05 jne 109d6b <vprintk+0x33>
lead = '0';
fmt++;
109d66: 43 inc %ebx
109d67: c6 45 c4 30 movb $0x30,-0x3c(%ebp)
}
if (*fmt == '-' ) {
109d6b: 31 c9 xor %ecx,%ecx
109d6d: 80 3b 2d cmpb $0x2d,(%ebx)
109d70: 75 03 jne 109d75 <vprintk+0x3d>
minus = true;
fmt++;
109d72: 43 inc %ebx
109d73: b1 01 mov $0x1,%cl
109d75: 31 ff xor %edi,%edi
109d77: eb 0b jmp 109d84 <vprintk+0x4c>
}
while (*fmt >= '0' && *fmt <= '9' ) {
width *= 10;
109d79: 6b ff 0a imul $0xa,%edi,%edi
width += ((unsigned) *fmt - '0');
109d7c: 0f be d2 movsbl %dl,%edx
109d7f: 8d 7c 17 d0 lea -0x30(%edi,%edx,1),%edi
fmt++;
109d83: 43 inc %ebx
}
if (*fmt == '-' ) {
minus = true;
fmt++;
}
while (*fmt >= '0' && *fmt <= '9' ) {
109d84: 8a 13 mov (%ebx),%dl
109d86: 8d 42 d0 lea -0x30(%edx),%eax
109d89: 3c 09 cmp $0x9,%al
109d8b: 76 ec jbe 109d79 <vprintk+0x41>
width *= 10;
width += ((unsigned) *fmt - '0');
fmt++;
}
if ((c = *fmt) == 'l') {
109d8d: c6 45 c0 00 movb $0x0,-0x40(%ebp)
109d91: 80 fa 6c cmp $0x6c,%dl
109d94: 75 07 jne 109d9d <vprintk+0x65>
lflag = true;
c = *++fmt;
109d96: 43 inc %ebx
109d97: 8a 13 mov (%ebx),%dl
109d99: c6 45 c0 01 movb $0x1,-0x40(%ebp)
}
if ( c == 'c' ) {
109d9d: 80 fa 63 cmp $0x63,%dl
109da0: 75 17 jne 109db9 <vprintk+0x81>
/* need a cast here since va_arg() only takes fully promoted types */
char chr = (char) va_arg(ap, int);
109da2: 8d 7e 04 lea 0x4(%esi),%edi
BSP_output_char(chr);
109da5: 83 ec 0c sub $0xc,%esp
109da8: 0f be 06 movsbl (%esi),%eax
109dab: 50 push %eax
109dac: ff 15 5c 22 12 00 call *0x12225c
109db2: 89 fe mov %edi,%esi
109db4: e9 fb 00 00 00 jmp 109eb4 <vprintk+0x17c>
continue;
}
if ( c == 's' ) {
109db9: 80 fa 73 cmp $0x73,%dl
109dbc: 0f 85 99 00 00 00 jne 109e5b <vprintk+0x123>
unsigned i, len;
char *s, *str;
str = va_arg(ap, char *);
109dc2: 8d 46 04 lea 0x4(%esi),%eax
109dc5: 89 45 c4 mov %eax,-0x3c(%ebp)
109dc8: 8b 06 mov (%esi),%eax
if ( str == NULL ) {
109dca: 85 c0 test %eax,%eax
109dcc: 75 05 jne 109dd3 <vprintk+0x9b>
109dce: b8 85 01 12 00 mov $0x120185,%eax
109dd3: 31 f6 xor %esi,%esi
str = "";
}
/* calculate length of string */
for ( len=0, s=str ; *s ; len++, s++ )
109dd5: eb 01 jmp 109dd8 <vprintk+0xa0>
109dd7: 46 inc %esi
109dd8: 80 3c 30 00 cmpb $0x0,(%eax,%esi,1)
109ddc: 75 f9 jne 109dd7 <vprintk+0x9f>
;
/* leading spaces */
if ( !minus )
109dde: 89 f2 mov %esi,%edx
109de0: 84 c9 test %cl,%cl
109de2: 74 23 je 109e07 <vprintk+0xcf>
109de4: eb 25 jmp 109e0b <vprintk+0xd3>
for ( i=len ; i<width ; i++ )
BSP_output_char(' ');
109de6: 83 ec 0c sub $0xc,%esp
109de9: 6a 20 push $0x20
109deb: 89 45 b0 mov %eax,-0x50(%ebp)
109dee: 89 55 a8 mov %edx,-0x58(%ebp)
109df1: 88 4d ac mov %cl,-0x54(%ebp)
109df4: ff 15 5c 22 12 00 call *0x12225c
for ( len=0, s=str ; *s ; len++, s++ )
;
/* leading spaces */
if ( !minus )
for ( i=len ; i<width ; i++ )
109dfa: 8b 55 a8 mov -0x58(%ebp),%edx
109dfd: 42 inc %edx
109dfe: 83 c4 10 add $0x10,%esp
109e01: 8b 45 b0 mov -0x50(%ebp),%eax
109e04: 8a 4d ac mov -0x54(%ebp),%cl
109e07: 39 fa cmp %edi,%edx
109e09: 72 db jb 109de6 <vprintk+0xae>
BSP_output_char(' ');
/* no width option */
if (width == 0) {
109e0b: 85 ff test %edi,%edi
109e0d: 75 02 jne 109e11 <vprintk+0xd9>
109e0f: 89 f7 mov %esi,%edi
width = len;
}
/* output the string */
for ( i=0 ; i<width && *str ; str++ )
109e11: 85 ff test %edi,%edi
109e13: 74 25 je 109e3a <vprintk+0x102>
109e15: eb 1d jmp 109e34 <vprintk+0xfc>
BSP_output_char(*str);
109e17: 83 ec 0c sub $0xc,%esp
109e1a: 0f be d2 movsbl %dl,%edx
109e1d: 52 push %edx
109e1e: 89 45 b0 mov %eax,-0x50(%ebp)
109e21: 88 4d ac mov %cl,-0x54(%ebp)
109e24: ff 15 5c 22 12 00 call *0x12225c
if (width == 0) {
width = len;
}
/* output the string */
for ( i=0 ; i<width && *str ; str++ )
109e2a: 8b 45 b0 mov -0x50(%ebp),%eax
109e2d: 40 inc %eax
109e2e: 83 c4 10 add $0x10,%esp
109e31: 8a 4d ac mov -0x54(%ebp),%cl
109e34: 8a 10 mov (%eax),%dl
109e36: 84 d2 test %dl,%dl
109e38: 75 dd jne 109e17 <vprintk+0xdf>
BSP_output_char(*str);
/* trailing spaces */
if ( minus )
109e3a: 84 c9 test %cl,%cl
109e3c: 75 14 jne 109e52 <vprintk+0x11a>
109e3e: e9 5d 01 00 00 jmp 109fa0 <vprintk+0x268>
for ( i=len ; i<width ; i++ )
BSP_output_char(' ');
109e43: 83 ec 0c sub $0xc,%esp
109e46: 6a 20 push $0x20
109e48: ff 15 5c 22 12 00 call *0x12225c
for ( i=0 ; i<width && *str ; str++ )
BSP_output_char(*str);
/* trailing spaces */
if ( minus )
for ( i=len ; i<width ; i++ )
109e4e: 46 inc %esi
109e4f: 83 c4 10 add $0x10,%esp
109e52: 39 fe cmp %edi,%esi
109e54: 72 ed jb 109e43 <vprintk+0x10b>
109e56: e9 45 01 00 00 jmp 109fa0 <vprintk+0x268>
continue;
}
/* must be a numeric format or something unsupported */
if ( c == 'o' || c == 'O' ) {
109e5b: 80 fa 4f cmp $0x4f,%dl
109e5e: 74 5c je 109ebc <vprintk+0x184>
109e60: 80 fa 6f cmp $0x6f,%dl
109e63: 74 57 je 109ebc <vprintk+0x184> <== NEVER TAKEN
base = 8; sign = false;
} else if ( c == 'i' || c == 'I' ||
109e65: 80 fa 49 cmp $0x49,%dl
109e68: 74 5b je 109ec5 <vprintk+0x18d>
109e6a: 80 fa 69 cmp $0x69,%dl
109e6d: 74 56 je 109ec5 <vprintk+0x18d>
109e6f: 80 fa 44 cmp $0x44,%dl
109e72: 74 51 je 109ec5 <vprintk+0x18d>
109e74: 80 fa 64 cmp $0x64,%dl
109e77: 74 4c je 109ec5 <vprintk+0x18d>
c == 'd' || c == 'D' ) {
base = 10; sign = true;
} else if ( c == 'u' || c == 'U' ) {
109e79: 80 fa 55 cmp $0x55,%dl
109e7c: 74 05 je 109e83 <vprintk+0x14b>
109e7e: 80 fa 75 cmp $0x75,%dl
109e81: 75 04 jne 109e87 <vprintk+0x14f>
109e83: 31 d2 xor %edx,%edx
109e85: eb 40 jmp 109ec7 <vprintk+0x18f>
base = 10; sign = false;
} else if ( c == 'x' || c == 'X' ) {
109e87: 80 fa 58 cmp $0x58,%dl
109e8a: 74 05 je 109e91 <vprintk+0x159>
109e8c: 80 fa 78 cmp $0x78,%dl
109e8f: 75 04 jne 109e95 <vprintk+0x15d>
109e91: 31 d2 xor %edx,%edx
109e93: eb 0b jmp 109ea0 <vprintk+0x168>
base = 16; sign = false;
} else if ( c == 'p' ) {
109e95: 80 fa 70 cmp $0x70,%dl
109e98: 75 0d jne 109ea7 <vprintk+0x16f>
109e9a: 31 d2 xor %edx,%edx
109e9c: c6 45 c0 01 movb $0x1,-0x40(%ebp)
109ea0: b9 10 00 00 00 mov $0x10,%ecx
109ea5: eb 25 jmp 109ecc <vprintk+0x194>
base = 16; sign = false; lflag = true;
} else {
BSP_output_char(c);
109ea7: 83 ec 0c sub $0xc,%esp
109eaa: 0f be d2 movsbl %dl,%edx
109ead: 52 push %edx
109eae: ff 15 5c 22 12 00 call *0x12225c
continue;
109eb4: 83 c4 10 add $0x10,%esp
109eb7: e9 e7 00 00 00 jmp 109fa3 <vprintk+0x26b>
109ebc: 31 d2 xor %edx,%edx
109ebe: b9 08 00 00 00 mov $0x8,%ecx
109ec3: eb 07 jmp 109ecc <vprintk+0x194>
109ec5: b2 01 mov $0x1,%dl
109ec7: b9 0a 00 00 00 mov $0xa,%ecx
}
printNum(
109ecc: 0f be 45 c4 movsbl -0x3c(%ebp),%eax
109ed0: 89 45 b4 mov %eax,-0x4c(%ebp)
109ed3: 8d 46 04 lea 0x4(%esi),%eax
109ed6: 89 45 c4 mov %eax,-0x3c(%ebp)
109ed9: 8b 06 mov (%esi),%eax
109edb: 8b 75 c4 mov -0x3c(%ebp),%esi
unsigned long unsigned_num;
unsigned long n;
unsigned count;
char toPrint[20];
if ( sign && (num < 0) ) {
109ede: 84 d2 test %dl,%dl
109ee0: 74 2b je 109f0d <vprintk+0x1d5>
109ee2: 85 c0 test %eax,%eax
109ee4: 79 27 jns 109f0d <vprintk+0x1d5>
BSP_output_char('-');
109ee6: 83 ec 0c sub $0xc,%esp
109ee9: 6a 2d push $0x2d
109eeb: 89 45 b0 mov %eax,-0x50(%ebp)
109eee: 89 4d ac mov %ecx,-0x54(%ebp)
109ef1: ff 15 5c 22 12 00 call *0x12225c
unsigned_num = (unsigned long) -num;
109ef7: 8b 45 b0 mov -0x50(%ebp),%eax
109efa: f7 d8 neg %eax
109efc: 89 45 c4 mov %eax,-0x3c(%ebp)
if (maxwidth) maxwidth--;
109eff: 83 c4 10 add $0x10,%esp
109f02: 83 ff 01 cmp $0x1,%edi
109f05: 83 d7 ff adc $0xffffffff,%edi
109f08: 8b 4d ac mov -0x54(%ebp),%ecx
109f0b: eb 03 jmp 109f10 <vprintk+0x1d8>
} else {
unsigned_num = (unsigned long) num;
109f0d: 89 45 c4 mov %eax,-0x3c(%ebp)
109f10: c7 45 c0 00 00 00 00 movl $0x0,-0x40(%ebp)
109f17: eb 1f jmp 109f38 <vprintk+0x200>
}
count = 0;
while ((n = unsigned_num / base) > 0) {
toPrint[count++] = (char) (unsigned_num - (n * base));
109f19: 8a 45 bc mov -0x44(%ebp),%al
109f1c: f6 e1 mul %cl
109f1e: 8a 55 c4 mov -0x3c(%ebp),%dl
109f21: 28 c2 sub %al,%dl
109f23: 88 d0 mov %dl,%al
109f25: 8b 55 c0 mov -0x40(%ebp),%edx
109f28: 88 44 15 d4 mov %al,-0x2c(%ebp,%edx,1)
109f2c: 8b 45 b8 mov -0x48(%ebp),%eax
109f2f: 89 45 c0 mov %eax,-0x40(%ebp)
109f32: 8b 55 bc mov -0x44(%ebp),%edx
109f35: 89 55 c4 mov %edx,-0x3c(%ebp)
} else {
unsigned_num = (unsigned long) num;
}
count = 0;
while ((n = unsigned_num / base) > 0) {
109f38: 8b 45 c4 mov -0x3c(%ebp),%eax
109f3b: 31 d2 xor %edx,%edx
109f3d: f7 f1 div %ecx
109f3f: 89 45 bc mov %eax,-0x44(%ebp)
109f42: 85 c0 test %eax,%eax
109f44: 8b 55 c0 mov -0x40(%ebp),%edx
109f47: 8d 52 01 lea 0x1(%edx),%edx
109f4a: 89 55 b8 mov %edx,-0x48(%ebp)
109f4d: 75 ca jne 109f19 <vprintk+0x1e1>
toPrint[count++] = (char) (unsigned_num - (n * base));
unsigned_num = n;
}
toPrint[count++] = (char) unsigned_num;
109f4f: 8a 45 c4 mov -0x3c(%ebp),%al
109f52: 8b 55 c0 mov -0x40(%ebp),%edx
109f55: 88 44 15 d4 mov %al,-0x2c(%ebp,%edx,1)
109f59: eb 10 jmp 109f6b <vprintk+0x233>
for (n=maxwidth ; n > count; n-- )
BSP_output_char(lead);
109f5b: 83 ec 0c sub $0xc,%esp
109f5e: ff 75 b4 pushl -0x4c(%ebp)
109f61: ff 15 5c 22 12 00 call *0x12225c
toPrint[count++] = (char) (unsigned_num - (n * base));
unsigned_num = n;
}
toPrint[count++] = (char) unsigned_num;
for (n=maxwidth ; n > count; n-- )
109f67: 4f dec %edi
109f68: 83 c4 10 add $0x10,%esp
109f6b: 3b 7d b8 cmp -0x48(%ebp),%edi
109f6e: 77 eb ja 109f5b <vprintk+0x223>
109f70: 8d 45 d4 lea -0x2c(%ebp),%eax
109f73: 03 45 c0 add -0x40(%ebp),%eax
109f76: 31 ff xor %edi,%edi
109f78: eb 1f jmp 109f99 <vprintk+0x261>
BSP_output_char(lead);
for (n = 0; n < count; n++) {
BSP_output_char("0123456789ABCDEF"[(int)(toPrint[count-(n+1)])]);
109f7a: 83 ec 0c sub $0xc,%esp
109f7d: 0f be 10 movsbl (%eax),%edx
109f80: 0f be 92 86 01 12 00 movsbl 0x120186(%edx),%edx
109f87: 52 push %edx
109f88: 89 45 b0 mov %eax,-0x50(%ebp)
109f8b: ff 15 5c 22 12 00 call *0x12225c
toPrint[count++] = (char) unsigned_num;
for (n=maxwidth ; n > count; n-- )
BSP_output_char(lead);
for (n = 0; n < count; n++) {
109f91: 47 inc %edi
109f92: 8b 45 b0 mov -0x50(%ebp),%eax
109f95: 48 dec %eax
109f96: 83 c4 10 add $0x10,%esp
109f99: 3b 7d b8 cmp -0x48(%ebp),%edi
109f9c: 72 dc jb 109f7a <vprintk+0x242>
109f9e: eb 03 jmp 109fa3 <vprintk+0x26b>
109fa0: 8b 75 c4 mov -0x3c(%ebp),%esi
void vprintk(
const char *fmt,
va_list ap
)
{
for (; *fmt != '\0'; fmt++) {
109fa3: 43 inc %ebx
109fa4: 8a 03 mov (%ebx),%al
109fa6: 84 c0 test %al,%al
109fa8: 0f 85 9e fd ff ff jne 109d4c <vprintk+0x14>
sign,
width,
lead
);
}
}
109fae: 8d 65 f4 lea -0xc(%ebp),%esp
109fb1: 5b pop %ebx
109fb2: 5e pop %esi
109fb3: 5f pop %edi
109fb4: c9 leave
109fb5: c3 ret
0011e3e8 <write>:
ssize_t write(
int fd,
const void *buffer,
size_t count
)
{
11e3e8: 55 push %ebp
11e3e9: 89 e5 mov %esp,%ebp
11e3eb: 56 push %esi
11e3ec: 53 push %ebx
11e3ed: 8b 5d 08 mov 0x8(%ebp),%ebx
11e3f0: 8b 55 0c mov 0xc(%ebp),%edx
11e3f3: 8b 4d 10 mov 0x10(%ebp),%ecx
ssize_t rc;
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
11e3f6: 3b 1d 44 21 12 00 cmp 0x122144,%ebx
11e3fc: 73 30 jae 11e42e <write+0x46> <== NEVER TAKEN
iop = rtems_libio_iop( fd );
11e3fe: c1 e3 06 shl $0x6,%ebx
11e401: 03 1d b8 60 12 00 add 0x1260b8,%ebx
rtems_libio_check_is_open( iop );
11e407: 8b 73 14 mov 0x14(%ebx),%esi
11e40a: f7 c6 00 01 00 00 test $0x100,%esi
11e410: 74 1c je 11e42e <write+0x46> <== NEVER TAKEN
rtems_libio_check_buffer( buffer );
11e412: 85 d2 test %edx,%edx
11e414: 75 0d jne 11e423 <write+0x3b> <== ALWAYS TAKEN
11e416: e8 f9 45 ff ff call 112a14 <__errno> <== NOT EXECUTED
11e41b: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
11e421: eb 2d jmp 11e450 <write+0x68> <== NOT EXECUTED
rtems_libio_check_count( count );
11e423: 31 c0 xor %eax,%eax
11e425: 85 c9 test %ecx,%ecx
11e427: 74 44 je 11e46d <write+0x85>
rtems_libio_check_permissions_with_error( iop, LIBIO_FLAGS_WRITE, EBADF );
11e429: 83 e6 04 and $0x4,%esi
11e42c: 75 0d jne 11e43b <write+0x53> <== ALWAYS TAKEN
11e42e: e8 e1 45 ff ff call 112a14 <__errno> <== NOT EXECUTED
11e433: c7 00 09 00 00 00 movl $0x9,(%eax) <== NOT EXECUTED
11e439: eb 15 jmp 11e450 <write+0x68> <== NOT EXECUTED
/*
* Now process the write() request.
*/
if ( !iop->handlers->write_h )
11e43b: 8b 43 3c mov 0x3c(%ebx),%eax
11e43e: 8b 40 0c mov 0xc(%eax),%eax
11e441: 85 c0 test %eax,%eax
11e443: 75 10 jne 11e455 <write+0x6d> <== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( ENOTSUP );
11e445: e8 ca 45 ff ff call 112a14 <__errno> <== NOT EXECUTED
11e44a: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
11e450: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
11e453: eb 18 jmp 11e46d <write+0x85> <== NOT EXECUTED
rc = (*iop->handlers->write_h)( iop, buffer, count );
11e455: 56 push %esi
11e456: 51 push %ecx
11e457: 52 push %edx
11e458: 53 push %ebx
11e459: ff d0 call *%eax
if ( rc > 0 )
11e45b: 83 c4 10 add $0x10,%esp
11e45e: 85 c0 test %eax,%eax
11e460: 7e 0b jle 11e46d <write+0x85> <== NEVER TAKEN
iop->offset += rc;
11e462: 89 c1 mov %eax,%ecx
11e464: c1 f9 1f sar $0x1f,%ecx
11e467: 01 43 0c add %eax,0xc(%ebx)
11e46a: 11 4b 10 adc %ecx,0x10(%ebx)
return rc;
}
11e46d: 8d 65 f8 lea -0x8(%ebp),%esp
11e470: 5b pop %ebx
11e471: 5e pop %esi
11e472: c9 leave
11e473: c3 ret
0010ac30 <writev>:
ssize_t writev(
int fd,
const struct iovec *iov,
int iovcnt
)
{
10ac30: 55 push %ebp
10ac31: 89 e5 mov %esp,%ebp
10ac33: 57 push %edi
10ac34: 56 push %esi
10ac35: 53 push %ebx
10ac36: 83 ec 1c sub $0x1c,%esp
10ac39: 8b 75 08 mov 0x8(%ebp),%esi
10ac3c: 8b 7d 0c mov 0xc(%ebp),%edi
int bytes;
rtems_libio_t *iop;
ssize_t old;
bool all_zeros;
rtems_libio_check_fd( fd );
10ac3f: 3b 35 44 41 12 00 cmp 0x124144,%esi
10ac45: 73 15 jae 10ac5c <writev+0x2c> <== NEVER TAKEN
iop = rtems_libio_iop( fd );
10ac47: c1 e6 06 shl $0x6,%esi
10ac4a: 03 35 88 88 12 00 add 0x128888,%esi
rtems_libio_check_is_open( iop );
10ac50: 8b 46 14 mov 0x14(%esi),%eax
10ac53: f6 c4 01 test $0x1,%ah
10ac56: 74 04 je 10ac5c <writev+0x2c>
rtems_libio_check_permissions_with_error( iop, LIBIO_FLAGS_WRITE, EBADF );
10ac58: a8 04 test $0x4,%al
10ac5a: 75 10 jne 10ac6c <writev+0x3c> <== ALWAYS TAKEN
10ac5c: e8 6f 8a 00 00 call 1136d0 <__errno>
10ac61: c7 00 09 00 00 00 movl $0x9,(%eax)
10ac67: e9 93 00 00 00 jmp 10acff <writev+0xcf>
/*
* Argument validation on IO vector
*/
if ( !iov )
10ac6c: 85 ff test %edi,%edi
10ac6e: 74 49 je 10acb9 <writev+0x89>
rtems_set_errno_and_return_minus_one( EINVAL );
if ( iovcnt <= 0 )
10ac70: 83 7d 10 00 cmpl $0x0,0x10(%ebp)
10ac74: 7e 43 jle 10acb9 <writev+0x89>
rtems_set_errno_and_return_minus_one( EINVAL );
if ( iovcnt > IOV_MAX )
10ac76: 81 7d 10 00 04 00 00 cmpl $0x400,0x10(%ebp)
10ac7d: 7f 3a jg 10acb9 <writev+0x89> <== NEVER TAKEN
rtems_set_errno_and_return_minus_one( EINVAL );
if ( !iop->handlers->write_h )
10ac7f: 8b 46 3c mov 0x3c(%esi),%eax
10ac82: 83 78 0c 00 cmpl $0x0,0xc(%eax)
10ac86: 75 0d jne 10ac95 <writev+0x65> <== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( ENOTSUP );
10ac88: e8 43 8a 00 00 call 1136d0 <__errno> <== NOT EXECUTED
10ac8d: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
10ac93: eb 6a jmp 10acff <writev+0xcf> <== NOT EXECUTED
10ac95: b1 01 mov $0x1,%cl
10ac97: 31 c0 xor %eax,%eax
10ac99: 31 d2 xor %edx,%edx
* entering the write loop.
*/
all_zeros = true;
for ( old=0, total=0, v=0 ; v < iovcnt ; v++ ) {
if ( !iov[v].iov_base )
10ac9b: 83 3c c7 00 cmpl $0x0,(%edi,%eax,8)
10ac9f: 74 18 je 10acb9 <writev+0x89>
rtems_set_errno_and_return_minus_one( EINVAL );
if ( iov[v].iov_len < 0 )
rtems_set_errno_and_return_minus_one( EINVAL );
if ( iov[v].iov_len )
10aca1: 83 7c c7 04 00 cmpl $0x0,0x4(%edi,%eax,8)
10aca6: 0f 94 c3 sete %bl
10aca9: f7 db neg %ebx
10acab: 21 d9 and %ebx,%ecx
all_zeros = false;
/* check for wrap */
old = total;
total += iov[v].iov_len;
if ( total < old || total > SSIZE_MAX )
10acad: 8b 5c c7 04 mov 0x4(%edi,%eax,8),%ebx
10acb1: 01 d3 add %edx,%ebx
10acb3: 78 04 js 10acb9 <writev+0x89>
10acb5: 39 d3 cmp %edx,%ebx
10acb7: 7d 0d jge 10acc6 <writev+0x96>
rtems_set_errno_and_return_minus_one( EINVAL );
10acb9: e8 12 8a 00 00 call 1136d0 <__errno>
10acbe: c7 00 16 00 00 00 movl $0x16,(%eax)
10acc4: eb 39 jmp 10acff <writev+0xcf>
* 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++ ) {
10acc6: 40 inc %eax
10acc7: 3b 45 10 cmp 0x10(%ebp),%eax
10acca: 7d 04 jge 10acd0 <writev+0xa0>
10accc: 89 da mov %ebx,%edx
10acce: eb cb jmp 10ac9b <writev+0x6b>
}
/*
* A writev with all zeros is supposed to have no effect per OpenGroup.
*/
if ( all_zeros == true ) {
10acd0: 31 db xor %ebx,%ebx
10acd2: 84 c9 test %cl,%cl
10acd4: 75 51 jne 10ad27 <writev+0xf7>
10acd6: 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 )
10acdd: 8b 55 e4 mov -0x1c(%ebp),%edx
10ace0: 8b 44 d7 04 mov 0x4(%edi,%edx,8),%eax
10ace4: 85 c0 test %eax,%eax
10ace6: 74 34 je 10ad1c <writev+0xec> <== NEVER TAKEN
continue;
bytes = (*iop->handlers->write_h)( iop, iov[v].iov_base, iov[v].iov_len );
10ace8: 52 push %edx
10ace9: 8b 56 3c mov 0x3c(%esi),%edx
10acec: 50 push %eax
10aced: 8b 45 e4 mov -0x1c(%ebp),%eax
10acf0: ff 34 c7 pushl (%edi,%eax,8)
10acf3: 56 push %esi
10acf4: ff 52 0c call *0xc(%edx)
if ( bytes < 0 )
10acf7: 83 c4 10 add $0x10,%esp
10acfa: 83 f8 00 cmp $0x0,%eax
10acfd: 7d 05 jge 10ad04 <writev+0xd4> <== ALWAYS TAKEN
10acff: 83 cb ff or $0xffffffff,%ebx
10ad02: eb 23 jmp 10ad27 <writev+0xf7>
return -1;
if ( bytes > 0 ) {
10ad04: 74 0d je 10ad13 <writev+0xe3> <== NEVER TAKEN
iop->offset += bytes;
10ad06: 89 c1 mov %eax,%ecx
10ad08: c1 f9 1f sar $0x1f,%ecx
10ad0b: 01 46 0c add %eax,0xc(%esi)
10ad0e: 11 4e 10 adc %ecx,0x10(%esi)
total += bytes;
10ad11: 01 c3 add %eax,%ebx
}
if (bytes != iov[ v ].iov_len)
10ad13: 8b 55 e4 mov -0x1c(%ebp),%edx
10ad16: 3b 44 d7 04 cmp 0x4(%edi,%edx,8),%eax
10ad1a: 75 0b jne 10ad27 <writev+0xf7> <== NEVER TAKEN
}
/*
* Now process the writev().
*/
for ( total=0, v=0 ; v < iovcnt ; v++ ) {
10ad1c: ff 45 e4 incl -0x1c(%ebp)
10ad1f: 8b 45 10 mov 0x10(%ebp),%eax
10ad22: 39 45 e4 cmp %eax,-0x1c(%ebp)
10ad25: 7c b6 jl 10acdd <writev+0xad>
if (bytes != iov[ v ].iov_len)
break;
}
return total;
}
10ad27: 89 d8 mov %ebx,%eax
10ad29: 8d 65 f4 lea -0xc(%ebp),%esp
10ad2c: 5b pop %ebx
10ad2d: 5e pop %esi
10ad2e: 5f pop %edi
10ad2f: c9 leave
10ad30: c3 ret