RTEMS 4.10.2Annotated Report
Tue Dec 13 16:41:52 2011
0010df98 <IMFS_Set_handlers>:
#define MAXSYMLINK 5
int IMFS_Set_handlers(
rtems_filesystem_location_info_t *loc
)
{
10df98: 55 push %ebp
10df99: 89 e5 mov %esp,%ebp
10df9b: 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;
10df9e: 8b 50 10 mov 0x10(%eax),%edx
10dfa1: 8b 52 34 mov 0x34(%edx),%edx
switch( node->type ) {
10dfa4: 8b 08 mov (%eax),%ecx
10dfa6: 8b 49 4c mov 0x4c(%ecx),%ecx
10dfa9: 49 dec %ecx
10dfaa: 83 f9 06 cmp $0x6,%ecx
10dfad: 77 2d ja 10dfdc <IMFS_Set_handlers+0x44><== NEVER TAKEN
10dfaf: ff 24 8d ec f3 11 00 jmp *0x11f3ec(,%ecx,4)
case IMFS_DIRECTORY:
loc->handlers = fs_info->directory_handlers;
10dfb6: 8b 52 0c mov 0xc(%edx),%edx
10dfb9: eb 15 jmp 10dfd0 <IMFS_Set_handlers+0x38>
break;
case IMFS_DEVICE:
loc->handlers = &IMFS_device_handlers;
10dfbb: c7 40 08 24 f5 11 00 movl $0x11f524,0x8(%eax)
break;
10dfc2: eb 18 jmp 10dfdc <IMFS_Set_handlers+0x44>
case IMFS_SYM_LINK:
case IMFS_HARD_LINK:
loc->handlers = &IMFS_link_handlers;
10dfc4: c7 40 08 94 f5 11 00 movl $0x11f594,0x8(%eax)
break;
10dfcb: eb 0f jmp 10dfdc <IMFS_Set_handlers+0x44>
case IMFS_LINEAR_FILE:
loc->handlers = fs_info->memfile_handlers;
10dfcd: 8b 52 08 mov 0x8(%edx),%edx
10dfd0: 89 50 08 mov %edx,0x8(%eax)
break;
10dfd3: eb 07 jmp 10dfdc <IMFS_Set_handlers+0x44>
case IMFS_MEMORY_FILE:
loc->handlers = fs_info->memfile_handlers;
break;
case IMFS_FIFO:
loc->handlers = &IMFS_fifo_handlers;
10dfd5: c7 40 08 68 f4 11 00 movl $0x11f468,0x8(%eax)
break;
}
return 0;
}
10dfdc: 31 c0 xor %eax,%eax
10dfde: c9 leave
10dfdf: c3 ret
0010ddfc <IMFS_allocate_node>:
IMFS_jnode_t *IMFS_allocate_node(
IMFS_jnode_types_t type,
const char *name,
mode_t mode
)
{
10ddfc: 55 push %ebp
10ddfd: 89 e5 mov %esp,%ebp
10ddff: 53 push %ebx
10de00: 83 ec 1c sub $0x1c,%esp
struct timeval tv;
/*
* Allocate an IMFS jnode
*/
node = calloc( 1, sizeof( IMFS_jnode_t ) );
10de03: 6a 64 push $0x64
10de05: 6a 01 push $0x1
10de07: e8 b0 96 ff ff call 1074bc <calloc>
10de0c: 89 c3 mov %eax,%ebx
if ( !node )
10de0e: 83 c4 10 add $0x10,%esp
10de11: 85 c0 test %eax,%eax
10de13: 74 49 je 10de5e <IMFS_allocate_node+0x62><== NEVER TAKEN
return NULL;
/*
* Fill in the basic information
*/
node->st_nlink = 1;
10de15: 66 c7 40 34 01 00 movw $0x1,0x34(%eax)
node->type = type;
10de1b: 8b 45 08 mov 0x8(%ebp),%eax
10de1e: 89 43 4c mov %eax,0x4c(%ebx)
strncpy( node->name, name, IMFS_NAME_MAX );
10de21: 51 push %ecx
10de22: 6a 20 push $0x20
10de24: ff 75 0c pushl 0xc(%ebp)
10de27: 8d 43 0c lea 0xc(%ebx),%eax
10de2a: 50 push %eax
10de2b: e8 a8 47 00 00 call 1125d8 <strncpy>
/*
* Fill in the mode and permission information for the jnode structure.
*/
node->st_mode = mode;
10de30: 8b 45 10 mov 0x10(%ebp),%eax
10de33: 89 43 30 mov %eax,0x30(%ebx)
#if defined(RTEMS_POSIX_API)
node->st_uid = geteuid();
node->st_gid = getegid();
#else
node->st_uid = 0;
10de36: 66 c7 43 3c 00 00 movw $0x0,0x3c(%ebx)
node->st_gid = 0;
10de3c: 66 c7 43 3e 00 00 movw $0x0,0x3e(%ebx)
#endif
/*
* Now set all the times.
*/
gettimeofday( &tv, 0 );
10de42: 58 pop %eax
10de43: 5a pop %edx
10de44: 6a 00 push $0x0
10de46: 8d 45 f0 lea -0x10(%ebp),%eax
10de49: 50 push %eax
10de4a: e8 c5 98 ff ff call 107714 <gettimeofday>
node->stat_atime = (time_t) tv.tv_sec;
10de4f: 8b 45 f0 mov -0x10(%ebp),%eax
10de52: 89 43 40 mov %eax,0x40(%ebx)
node->stat_mtime = (time_t) tv.tv_sec;
10de55: 89 43 44 mov %eax,0x44(%ebx)
node->stat_ctime = (time_t) tv.tv_sec;
10de58: 89 43 48 mov %eax,0x48(%ebx)
return node;
10de5b: 83 c4 10 add $0x10,%esp
}
10de5e: 89 d8 mov %ebx,%eax
10de60: 8b 5d fc mov -0x4(%ebp),%ebx
10de63: c9 leave
10de64: c3 ret
0010de98 <IMFS_create_node>:
IMFS_jnode_types_t type,
const char *name,
mode_t mode,
const IMFS_types_union *info
)
{
10de98: 55 push %ebp
10de99: 89 e5 mov %esp,%ebp
10de9b: 57 push %edi
10de9c: 56 push %esi
10de9d: 53 push %ebx
10de9e: 83 ec 1c sub $0x1c,%esp
10dea1: 8b 75 08 mov 0x8(%ebp),%esi
10dea4: 8b 7d 0c mov 0xc(%ebp),%edi
10dea7: 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 )
10deaa: 31 c0 xor %eax,%eax
10deac: 85 f6 test %esi,%esi
10deae: 0f 84 dc 00 00 00 je 10df90 <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 );
10deb4: 50 push %eax
10deb5: a1 74 34 12 00 mov 0x123474,%eax
10deba: 8b 40 2c mov 0x2c(%eax),%eax
10debd: f7 d0 not %eax
10debf: 23 45 14 and 0x14(%ebp),%eax
10dec2: 50 push %eax
10dec3: ff 75 10 pushl 0x10(%ebp)
10dec6: 57 push %edi
10dec7: e8 30 ff ff ff call 10ddfc <IMFS_allocate_node>
if ( !node )
10decc: 83 c4 10 add $0x10,%esp
10decf: 85 c0 test %eax,%eax
10ded1: 0f 84 b9 00 00 00 je 10df90 <IMFS_create_node+0xf8> <== NEVER TAKEN
return NULL;
/*
* Set the type specific information
*/
switch (type) {
10ded7: 4f dec %edi
10ded8: 83 ff 06 cmp $0x6,%edi
10dedb: 77 73 ja 10df50 <IMFS_create_node+0xb8> <== NEVER TAKEN
10dedd: ff 24 bd bc f3 11 00 jmp *0x11f3bc(,%edi,4)
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
10dee4: 8d 50 54 lea 0x54(%eax),%edx
10dee7: 89 50 50 mov %edx,0x50(%eax)
the_chain->permanent_null = NULL;
10deea: c7 40 54 00 00 00 00 movl $0x0,0x54(%eax)
the_chain->last = _Chain_Head(the_chain);
10def1: 8d 50 50 lea 0x50(%eax),%edx
10def4: 89 50 58 mov %edx,0x58(%eax)
10def7: eb 6d jmp 10df66 <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;
10def9: 8b 13 mov (%ebx),%edx
10defb: 89 50 50 mov %edx,0x50(%eax)
break;
10defe: eb 66 jmp 10df66 <IMFS_create_node+0xce>
case IMFS_DEVICE:
node->info.device.major = info->device.major;
10df00: 8b 13 mov (%ebx),%edx
10df02: 89 50 50 mov %edx,0x50(%eax)
node->info.device.minor = info->device.minor;
10df05: 8b 53 04 mov 0x4(%ebx),%edx
10df08: 89 50 54 mov %edx,0x54(%eax)
break;
10df0b: eb 59 jmp 10df66 <IMFS_create_node+0xce>
case IMFS_LINEAR_FILE:
node->info.linearfile.size = 0;
10df0d: c7 40 50 00 00 00 00 movl $0x0,0x50(%eax) <== NOT EXECUTED
10df14: c7 40 54 00 00 00 00 movl $0x0,0x54(%eax) <== NOT EXECUTED
node->info.linearfile.direct = 0;
10df1b: c7 40 58 00 00 00 00 movl $0x0,0x58(%eax) <== NOT EXECUTED
case IMFS_MEMORY_FILE:
node->info.file.size = 0;
10df22: c7 40 50 00 00 00 00 movl $0x0,0x50(%eax)
10df29: c7 40 54 00 00 00 00 movl $0x0,0x54(%eax)
node->info.file.indirect = 0;
10df30: c7 40 58 00 00 00 00 movl $0x0,0x58(%eax)
node->info.file.doubly_indirect = 0;
10df37: c7 40 5c 00 00 00 00 movl $0x0,0x5c(%eax)
node->info.file.triply_indirect = 0;
10df3e: c7 40 60 00 00 00 00 movl $0x0,0x60(%eax)
break;
10df45: eb 1f jmp 10df66 <IMFS_create_node+0xce>
case IMFS_FIFO:
node->info.fifo.pipe = NULL;
10df47: c7 40 50 00 00 00 00 movl $0x0,0x50(%eax)
break;
10df4e: eb 16 jmp 10df66 <IMFS_create_node+0xce>
default:
assert(0);
10df50: 68 77 e7 11 00 push $0x11e777 <== NOT EXECUTED
10df55: 68 d8 f3 11 00 push $0x11f3d8 <== NOT EXECUTED
10df5a: 6a 5c push $0x5c <== NOT EXECUTED
10df5c: 68 6c f3 11 00 push $0x11f36c <== NOT EXECUTED
10df61: e8 3a 94 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;
10df66: 8b 16 mov (%esi),%edx
fs_info = parent_loc->mt_entry->fs_info;
10df68: 8b 4e 10 mov 0x10(%esi),%ecx
10df6b: 8b 59 34 mov 0x34(%ecx),%ebx
node->Parent = parent;
10df6e: 89 50 08 mov %edx,0x8(%eax)
node->st_ino = ++fs_info->ino_count;
10df71: 8b 4b 04 mov 0x4(%ebx),%ecx
10df74: 41 inc %ecx
10df75: 89 4b 04 mov %ecx,0x4(%ebx)
10df78: 89 48 38 mov %ecx,0x38(%eax)
10df7b: 53 push %ebx
10df7c: 53 push %ebx
10df7d: 50 push %eax
10df7e: 83 c2 50 add $0x50,%edx
10df81: 52 push %edx
10df82: 89 45 e4 mov %eax,-0x1c(%ebp)
10df85: e8 5a ce ff ff call 10ade4 <_Chain_Append>
rtems_chain_append( &parent->info.directory.Entries, &node->Node );
return node;
10df8a: 83 c4 10 add $0x10,%esp
10df8d: 8b 45 e4 mov -0x1c(%ebp),%eax
}
10df90: 8d 65 f4 lea -0xc(%ebp),%esp
10df93: 5b pop %ebx
10df94: 5e pop %esi
10df95: 5f pop %edi
10df96: c9 leave
10df97: c3 ret
0010de65 <IMFS_create_root_node>:
IMFS_jnode_t *IMFS_create_root_node(void)
{
10de65: 55 push %ebp
10de66: 89 e5 mov %esp,%ebp
10de68: 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) );
10de6b: 68 ed 41 00 00 push $0x41ed
10de70: 68 25 f0 11 00 push $0x11f025
10de75: 6a 01 push $0x1
10de77: e8 80 ff ff ff call 10ddfc <IMFS_allocate_node>
if ( !node )
10de7c: 83 c4 10 add $0x10,%esp
10de7f: 85 c0 test %eax,%eax
10de81: 74 13 je 10de96 <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);
10de83: 8d 50 54 lea 0x54(%eax),%edx
10de86: 89 50 50 mov %edx,0x50(%eax)
the_chain->permanent_null = NULL;
10de89: c7 40 54 00 00 00 00 movl $0x0,0x54(%eax)
the_chain->last = _Chain_Head(the_chain);
10de90: 8d 50 50 lea 0x50(%eax),%edx
10de93: 89 50 58 mov %edx,0x58(%eax)
* NOTE: Root node is always a directory.
*/
rtems_chain_initialize_empty(&node->info.directory.Entries);
return node;
}
10de96: c9 leave
10de97: 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 f9 40 12 00 push $0x1240f9 <== NOT EXECUTED
108e63: 68 e4 41 12 00 push $0x1241e4 <== 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 07 41 12 00 push $0x124107 <== NOT EXECUTED
108e78: 68 e4 41 12 00 push $0x1241e4 <== NOT EXECUTED
108e7d: 68 86 00 00 00 push $0x86 <== NOT EXECUTED
108e82: 68 46 40 12 00 push $0x124046 <== 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 12 41 12 00 push $0x124112 <== NOT EXECUTED
108e97: 68 e4 41 12 00 push $0x1241e4 <== 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 00 90 12 00 mov 0x129000,%eax
108ebd: ff 70 08 pushl 0x8(%eax)
108ec0: 68 38 41 12 00 push $0x124138
108ec5: e8 5a c3 00 00 call 115224 <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
0010e100 <IMFS_eval_path>:
const char *pathname, /* IN */
size_t pathnamelen, /* IN */
int flags, /* IN */
rtems_filesystem_location_info_t *pathloc /* IN/OUT */
)
{
10e100: 55 push %ebp
10e101: 89 e5 mov %esp,%ebp
10e103: 57 push %edi
10e104: 56 push %esi
10e105: 53 push %ebx
10e106: 83 ec 4c sub $0x4c,%esp
10e109: 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 ) ) {
10e10c: f7 45 10 f8 ff ff ff testl $0xfffffff8,0x10(%ebp)
10e113: 74 19 je 10e12e <IMFS_eval_path+0x2e> <== ALWAYS TAKEN
assert( 0 );
10e115: 68 77 e7 11 00 push $0x11e777 <== NOT EXECUTED
10e11a: 68 08 f4 11 00 push $0x11f408 <== NOT EXECUTED
10e11f: 68 08 02 00 00 push $0x208 <== NOT EXECUTED
10e124: 68 17 f4 11 00 push $0x11f417 <== NOT EXECUTED
10e129: e8 72 92 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;
10e12e: 8b 3b mov (%ebx),%edi
10e130: c7 45 b4 00 00 00 00 movl $0x0,-0x4c(%ebp)
10e137: 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) ) {
10e13c: e9 98 01 00 00 jmp 10e2d9 <IMFS_eval_path+0x1d9>
type = IMFS_get_token( &pathname[i], pathnamelen, token, &len );
10e141: 8d 45 e4 lea -0x1c(%ebp),%eax
10e144: 50 push %eax
10e145: 8d 4d c3 lea -0x3d(%ebp),%ecx
10e148: 51 push %ecx
10e149: ff 75 0c pushl 0xc(%ebp)
10e14c: 8b 45 08 mov 0x8(%ebp),%eax
10e14f: 03 45 b4 add -0x4c(%ebp),%eax
10e152: 50 push %eax
10e153: e8 14 08 00 00 call 10e96c <IMFS_get_token>
10e158: 89 c6 mov %eax,%esi
pathnamelen -= len;
10e15a: 8b 55 e4 mov -0x1c(%ebp),%edx
i += len;
if ( !pathloc->node_access )
10e15d: 83 c4 10 add $0x10,%esp
10e160: 83 3b 00 cmpl $0x0,(%ebx)
10e163: 0f 84 d2 00 00 00 je 10e23b <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 )
10e169: 85 c0 test %eax,%eax
10e16b: 74 21 je 10e18e <IMFS_eval_path+0x8e>
if ( node->type == IMFS_DIRECTORY )
10e16d: 83 7f 4c 01 cmpl $0x1,0x4c(%edi)
10e171: 75 1b jne 10e18e <IMFS_eval_path+0x8e>
if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) )
10e173: 57 push %edi
10e174: 57 push %edi
10e175: 6a 01 push $0x1
10e177: 53 push %ebx
10e178: 89 55 b0 mov %edx,-0x50(%ebp)
10e17b: e8 60 fe ff ff call 10dfe0 <IMFS_evaluate_permission>
10e180: 83 c4 10 add $0x10,%esp
10e183: 85 c0 test %eax,%eax
10e185: 8b 55 b0 mov -0x50(%ebp),%edx
10e188: 0f 84 b2 01 00 00 je 10e340 <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;
10e18e: 29 55 0c sub %edx,0xc(%ebp)
i += len;
10e191: 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;
10e194: 8b 3b mov (%ebx),%edi
switch( type ) {
10e196: 83 fe 03 cmp $0x3,%esi
10e199: 74 39 je 10e1d4 <IMFS_eval_path+0xd4>
10e19b: 83 fe 04 cmp $0x4,%esi
10e19e: 0f 84 28 01 00 00 je 10e2cc <IMFS_eval_path+0x1cc>
10e1a4: 83 fe 02 cmp $0x2,%esi
10e1a7: 0f 85 2c 01 00 00 jne 10e2d9 <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 )
10e1ad: a1 74 34 12 00 mov 0x123474,%eax
10e1b2: 3b 78 18 cmp 0x18(%eax),%edi
10e1b5: 74 8a je 10e141 <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) {
10e1b7: 8b 73 10 mov 0x10(%ebx),%esi
/*
* Am I at the root of this mounted filesystem?
*/
if (pathloc->node_access ==
10e1ba: 3b 7e 1c cmp 0x1c(%esi),%edi
10e1bd: 75 08 jne 10e1c7 <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;
10e1bf: 83 c6 08 add $0x8,%esi
10e1c2: e9 2f 01 00 00 jmp 10e2f6 <IMFS_eval_path+0x1f6>
return (*pathloc->ops->evalpath_h)(&(pathname[i-len]),
pathnamelen+len,
flags,pathloc);
}
} else {
if ( !node->Parent )
10e1c7: 8b 7f 08 mov 0x8(%edi),%edi
10e1ca: 85 ff test %edi,%edi
10e1cc: 0f 85 f3 00 00 00 jne 10e2c5 <IMFS_eval_path+0x1c5>
10e1d2: eb 67 jmp 10e23b <IMFS_eval_path+0x13b>
case IMFS_NAME:
/*
* If we are at a link follow it.
*/
if ( node->type == IMFS_HARD_LINK ) {
10e1d4: 8b 47 4c mov 0x4c(%edi),%eax
10e1d7: 83 f8 03 cmp $0x3,%eax
10e1da: 75 15 jne 10e1f1 <IMFS_eval_path+0xf1>
IMFS_evaluate_hard_link( pathloc, 0 );
10e1dc: 51 push %ecx
10e1dd: 51 push %ecx
10e1de: 6a 00 push $0x0
10e1e0: 53 push %ebx
10e1e1: e8 31 fe ff ff call 10e017 <IMFS_evaluate_hard_link>
node = pathloc->node_access;
10e1e6: 8b 3b mov (%ebx),%edi
if ( !node )
10e1e8: 83 c4 10 add $0x10,%esp
10e1eb: 85 ff test %edi,%edi
10e1ed: 75 21 jne 10e210 <IMFS_eval_path+0x110> <== ALWAYS TAKEN
10e1ef: eb 25 jmp 10e216 <IMFS_eval_path+0x116> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTDIR );
} else if ( node->type == IMFS_SYM_LINK ) {
10e1f1: 83 f8 04 cmp $0x4,%eax
10e1f4: 75 1a jne 10e210 <IMFS_eval_path+0x110>
result = IMFS_evaluate_sym_link( pathloc, 0 );
10e1f6: 52 push %edx
10e1f7: 52 push %edx
10e1f8: 6a 00 push $0x0
10e1fa: 53 push %ebx
10e1fb: e8 6d fe ff ff call 10e06d <IMFS_evaluate_sym_link>
10e200: 89 c6 mov %eax,%esi
node = pathloc->node_access;
10e202: 8b 3b mov (%ebx),%edi
if ( result == -1 )
10e204: 83 c4 10 add $0x10,%esp
10e207: 83 f8 ff cmp $0xffffffff,%eax
10e20a: 0f 84 3e 01 00 00 je 10e34e <IMFS_eval_path+0x24e> <== NEVER TAKEN
/*
* Only a directory can be decended into.
*/
if ( node->type != IMFS_DIRECTORY )
10e210: 83 7f 4c 01 cmpl $0x1,0x4c(%edi)
10e214: 74 10 je 10e226 <IMFS_eval_path+0x126>
rtems_set_errno_and_return_minus_one( ENOTDIR );
10e216: e8 a5 36 00 00 call 1118c0 <__errno>
10e21b: c7 00 14 00 00 00 movl $0x14,(%eax)
10e221: e9 25 01 00 00 jmp 10e34b <IMFS_eval_path+0x24b>
/*
* Find the token name in the current node.
*/
node = IMFS_find_match_in_dir( node, token );
10e226: 50 push %eax
10e227: 50 push %eax
10e228: 8d 45 c3 lea -0x3d(%ebp),%eax
10e22b: 50 push %eax
10e22c: 57 push %edi
10e22d: e8 ae 06 00 00 call 10e8e0 <IMFS_find_match_in_dir>
10e232: 89 c7 mov %eax,%edi
if ( !node )
10e234: 83 c4 10 add $0x10,%esp
10e237: 85 c0 test %eax,%eax
10e239: 75 10 jne 10e24b <IMFS_eval_path+0x14b>
rtems_set_errno_and_return_minus_one( ENOENT );
10e23b: e8 80 36 00 00 call 1118c0 <__errno>
10e240: c7 00 02 00 00 00 movl $0x2,(%eax)
10e246: e9 00 01 00 00 jmp 10e34b <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 )) {
10e24b: 83 78 4c 01 cmpl $0x1,0x4c(%eax)
10e24f: 75 74 jne 10e2c5 <IMFS_eval_path+0x1c5>
10e251: 83 78 5c 00 cmpl $0x0,0x5c(%eax)
10e255: 74 6e je 10e2c5 <IMFS_eval_path+0x1c5>
10e257: 8b 75 08 mov 0x8(%ebp),%esi
10e25a: 03 75 b4 add -0x4c(%ebp),%esi
10e25d: eb 06 jmp 10e265 <IMFS_eval_path+0x165>
size_t *len, /* IN/OUT */
int *index /* IN/OUT */
)
{
while ( IMFS_is_separator( path[*index] ) && path[*index] && *len ) {
++(*index);
10e25f: ff 45 b4 incl -0x4c(%ebp)
--(*len);
10e262: 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 ) {
10e265: 83 ec 0c sub $0xc,%esp
10e268: 0f be 06 movsbl (%esi),%eax
10e26b: 50 push %eax
10e26c: 89 75 b0 mov %esi,-0x50(%ebp)
10e26f: e8 94 a1 ff ff call 108408 <rtems_filesystem_is_separator>
10e274: 83 c4 10 add $0x10,%esp
10e277: 85 c0 test %eax,%eax
10e279: 8b 55 b0 mov -0x50(%ebp),%edx
10e27c: 74 0c je 10e28a <IMFS_eval_path+0x18a>
10e27e: 80 3e 00 cmpb $0x0,(%esi)
10e281: 74 07 je 10e28a <IMFS_eval_path+0x18a>
10e283: 46 inc %esi
10e284: 83 7d 0c 00 cmpl $0x0,0xc(%ebp)
10e288: 75 d5 jne 10e25f <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] != '.')) {
10e28a: 80 3a 2e cmpb $0x2e,(%edx)
10e28d: 75 0d jne 10e29c <IMFS_eval_path+0x19c>
10e28f: 8b 45 08 mov 0x8(%ebp),%eax
10e292: 8b 4d b4 mov -0x4c(%ebp),%ecx
10e295: 80 7c 08 01 2e cmpb $0x2e,0x1(%eax,%ecx,1)
10e29a: 74 1e je 10e2ba <IMFS_eval_path+0x1ba>
*pathloc = node->info.directory.mt_fs->mt_fs_root;
10e29c: 8b 77 5c mov 0x5c(%edi),%esi
10e29f: 83 c6 1c add $0x1c,%esi
10e2a2: b9 05 00 00 00 mov $0x5,%ecx
10e2a7: 89 df mov %ebx,%edi
10e2a9: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
return (*pathloc->ops->evalpath_h)( &pathname[i],
10e2ab: 8b 43 0c mov 0xc(%ebx),%eax
10e2ae: 53 push %ebx
10e2af: ff 75 10 pushl 0x10(%ebp)
10e2b2: ff 75 0c pushl 0xc(%ebp)
10e2b5: 52 push %edx
10e2b6: ff 10 call *(%eax)
10e2b8: eb 62 jmp 10e31c <IMFS_eval_path+0x21c>
pathnamelen,
flags, pathloc );
}
i += 2;
10e2ba: 83 45 b4 02 addl $0x2,-0x4c(%ebp)
pathnamelen -= 2;
10e2be: 83 6d 0c 02 subl $0x2,0xc(%ebp)
node = node->Parent;
10e2c2: 8b 7f 08 mov 0x8(%edi),%edi
/*
* Set the node access to the point we have found.
*/
pathloc->node_access = node;
10e2c5: 89 3b mov %edi,(%ebx)
10e2c7: e9 75 fe ff ff jmp 10e141 <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 );
10e2cc: e8 ef 35 00 00 call 1118c0 <__errno>
10e2d1: c7 00 5b 00 00 00 movl $0x5b,(%eax)
10e2d7: eb 72 jmp 10e34b <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) ) {
10e2d9: 83 fe 04 cmp $0x4,%esi
10e2dc: 74 08 je 10e2e6 <IMFS_eval_path+0x1e6> <== NEVER TAKEN
10e2de: 85 f6 test %esi,%esi
10e2e0: 0f 85 5b fe ff ff jne 10e141 <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 ) {
10e2e6: 83 7f 4c 01 cmpl $0x1,0x4c(%edi)
10e2ea: 75 37 jne 10e323 <IMFS_eval_path+0x223>
if ( node->info.directory.mt_fs != NULL ) {
10e2ec: 8b 77 5c mov 0x5c(%edi),%esi
10e2ef: 85 f6 test %esi,%esi
10e2f1: 74 30 je 10e323 <IMFS_eval_path+0x223> <== ALWAYS TAKEN
*pathloc = node->info.directory.mt_fs->mt_fs_root;
10e2f3: 83 c6 1c add $0x1c,%esi <== NOT EXECUTED
10e2f6: b9 05 00 00 00 mov $0x5,%ecx
10e2fb: 89 df mov %ebx,%edi
10e2fd: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
return (*pathloc->ops->evalpath_h)( &pathname[i-len],
10e2ff: 8b 45 e4 mov -0x1c(%ebp),%eax
10e302: 8b 53 0c mov 0xc(%ebx),%edx
10e305: 53 push %ebx
10e306: ff 75 10 pushl 0x10(%ebp)
10e309: 8b 4d 0c mov 0xc(%ebp),%ecx
10e30c: 01 c1 add %eax,%ecx
10e30e: 51 push %ecx
10e30f: 8b 4d b4 mov -0x4c(%ebp),%ecx
10e312: 29 c1 sub %eax,%ecx
10e314: 8b 45 08 mov 0x8(%ebp),%eax
10e317: 01 c8 add %ecx,%eax
10e319: 50 push %eax
10e31a: ff 12 call *(%edx)
10e31c: 89 c6 mov %eax,%esi
10e31e: 83 c4 10 add $0x10,%esp
10e321: eb 2b jmp 10e34e <IMFS_eval_path+0x24e>
flags, pathloc );
} else {
result = IMFS_Set_handlers( pathloc );
}
} else {
result = IMFS_Set_handlers( pathloc );
10e323: 83 ec 0c sub $0xc,%esp
10e326: 53 push %ebx
10e327: e8 6c fc ff ff call 10df98 <IMFS_Set_handlers>
10e32c: 89 c6 mov %eax,%esi
10e32e: 59 pop %ecx
10e32f: 5f pop %edi
/*
* Verify we have the correct permissions for this node.
*/
if ( !IMFS_evaluate_permission( pathloc, flags ) )
10e330: ff 75 10 pushl 0x10(%ebp)
10e333: 53 push %ebx
10e334: e8 a7 fc ff ff call 10dfe0 <IMFS_evaluate_permission>
10e339: 83 c4 10 add $0x10,%esp
10e33c: 85 c0 test %eax,%eax
10e33e: 75 0e jne 10e34e <IMFS_eval_path+0x24e>
rtems_set_errno_and_return_minus_one( EACCES );
10e340: e8 7b 35 00 00 call 1118c0 <__errno>
10e345: c7 00 0d 00 00 00 movl $0xd,(%eax)
10e34b: 83 ce ff or $0xffffffff,%esi
return result;
}
10e34e: 89 f0 mov %esi,%eax
10e350: 8d 65 f4 lea -0xc(%ebp),%esp
10e353: 5b pop %ebx
10e354: 5e pop %esi
10e355: 5f pop %edi
10e356: c9 leave
10e357: c3 ret
0010e3db <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 */
)
{
10e3db: 55 push %ebp
10e3dc: 89 e5 mov %esp,%ebp
10e3de: 57 push %edi
10e3df: 56 push %esi
10e3e0: 53 push %ebx
10e3e1: 83 ec 4c sub $0x4c,%esp
10e3e4: 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;
10e3e7: 8b 1a mov (%edx),%ebx
/*
* Get the path length.
*/
pathlen = strlen( path );
10e3e9: 31 c0 xor %eax,%eax
10e3eb: 83 c9 ff or $0xffffffff,%ecx
10e3ee: 8b 7d 08 mov 0x8(%ebp),%edi
10e3f1: f2 ae repnz scas %es:(%edi),%al
10e3f3: f7 d1 not %ecx
10e3f5: 8d 79 ff lea -0x1(%ecx),%edi
10e3f8: 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 );
10e3ff: 89 d6 mov %edx,%esi
10e401: 8d 45 e4 lea -0x1c(%ebp),%eax
10e404: 50 push %eax
10e405: 8d 55 c3 lea -0x3d(%ebp),%edx
10e408: 52 push %edx
10e409: 57 push %edi
10e40a: 8b 45 08 mov 0x8(%ebp),%eax
10e40d: 03 45 b4 add -0x4c(%ebp),%eax
10e410: 50 push %eax
10e411: e8 56 05 00 00 call 10e96c <IMFS_get_token>
10e416: 89 c2 mov %eax,%edx
pathlen -= len;
10e418: 8b 4d e4 mov -0x1c(%ebp),%ecx
i += len;
if ( !pathloc->node_access )
10e41b: 83 c4 10 add $0x10,%esp
10e41e: 83 3e 00 cmpl $0x0,(%esi)
10e421: 0f 84 e5 01 00 00 je 10e60c <IMFS_evaluate_for_make+0x231><== NEVER TAKEN
/*
* I cannot move out of this directory without execute permission.
*/
if ( type != IMFS_NO_MORE_PATH )
10e427: 85 c0 test %eax,%eax
10e429: 74 36 je 10e461 <IMFS_evaluate_for_make+0x86>
if ( node->type == IMFS_DIRECTORY )
10e42b: 83 7b 4c 01 cmpl $0x1,0x4c(%ebx)
10e42f: 75 30 jne 10e461 <IMFS_evaluate_for_make+0x86>
if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) )
10e431: 50 push %eax
10e432: 50 push %eax
10e433: 6a 01 push $0x1
10e435: 56 push %esi
10e436: 89 55 ac mov %edx,-0x54(%ebp)
10e439: 89 4d a8 mov %ecx,-0x58(%ebp)
10e43c: e8 9f fb ff ff call 10dfe0 <IMFS_evaluate_permission>
10e441: 83 c4 10 add $0x10,%esp
10e444: 85 c0 test %eax,%eax
10e446: 8b 55 ac mov -0x54(%ebp),%edx
10e449: 8b 4d a8 mov -0x58(%ebp),%ecx
10e44c: 75 13 jne 10e461 <IMFS_evaluate_for_make+0x86>
rtems_set_errno_and_return_minus_one( EACCES );
10e44e: e8 6d 34 00 00 call 1118c0 <__errno>
10e453: c7 00 0d 00 00 00 movl $0xd,(%eax)
10e459: 83 cb ff or $0xffffffff,%ebx
10e45c: e9 05 02 00 00 jmp 10e666 <IMFS_evaluate_for_make+0x28b>
*/
while( !done ) {
type = IMFS_get_token( &path[i], pathlen, token, &len );
pathlen -= len;
10e461: 29 cf sub %ecx,%edi
i += len;
10e463: 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;
10e466: 8b 1e mov (%esi),%ebx
switch( type ) {
10e468: 83 fa 02 cmp $0x2,%edx
10e46b: 74 1f je 10e48c <IMFS_evaluate_for_make+0xb1>
10e46d: 77 0a ja 10e479 <IMFS_evaluate_for_make+0x9e>
10e46f: 85 d2 test %edx,%edx
10e471: 0f 84 43 01 00 00 je 10e5ba <IMFS_evaluate_for_make+0x1df>
10e477: eb 88 jmp 10e401 <IMFS_evaluate_for_make+0x26>
10e479: 83 fa 03 cmp $0x3,%edx
10e47c: 74 5b je 10e4d9 <IMFS_evaluate_for_make+0xfe>
10e47e: 83 fa 04 cmp $0x4,%edx
10e481: 0f 85 7a ff ff ff jne 10e401 <IMFS_evaluate_for_make+0x26><== NEVER TAKEN
10e487: e9 3e 01 00 00 jmp 10e5ca <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 )
10e48c: a1 74 34 12 00 mov 0x123474,%eax
10e491: 3b 58 18 cmp 0x18(%eax),%ebx
10e494: 0f 84 67 ff ff ff je 10e401 <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){
10e49a: 8b 46 10 mov 0x10(%esi),%eax
10e49d: 3b 58 1c cmp 0x1c(%eax),%ebx
10e4a0: 75 27 jne 10e4c9 <IMFS_evaluate_for_make+0xee>
10e4a2: 89 f2 mov %esi,%edx
10e4a4: 89 c6 mov %eax,%esi
if ( pathloc->node_access == rtems_filesystem_root.node_access ) {
break;
} else {
*pathloc = pathloc->mt_entry->mt_point_node;
10e4a6: 83 c6 08 add $0x8,%esi
10e4a9: b9 05 00 00 00 mov $0x5,%ecx
10e4ae: 89 d7 mov %edx,%edi
10e4b0: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name );
10e4b2: 53 push %ebx
10e4b3: 8b 42 0c mov 0xc(%edx),%eax
10e4b6: ff 75 10 pushl 0x10(%ebp)
10e4b9: 52 push %edx
10e4ba: 8b 55 b4 mov -0x4c(%ebp),%edx
10e4bd: 2b 55 e4 sub -0x1c(%ebp),%edx
10e4c0: 03 55 08 add 0x8(%ebp),%edx
10e4c3: 52 push %edx
10e4c4: e9 d3 00 00 00 jmp 10e59c <IMFS_evaluate_for_make+0x1c1>
}
} else {
if ( !node->Parent )
10e4c9: 8b 5b 08 mov 0x8(%ebx),%ebx
10e4cc: 85 db test %ebx,%ebx
10e4ce: 0f 85 df 00 00 00 jne 10e5b3 <IMFS_evaluate_for_make+0x1d8>
10e4d4: e9 33 01 00 00 jmp 10e60c <IMFS_evaluate_for_make+0x231>
case IMFS_NAME:
/*
* If we are at a link follow it.
*/
if ( node->type == IMFS_HARD_LINK ) {
10e4d9: 8b 43 4c mov 0x4c(%ebx),%eax
10e4dc: 83 f8 03 cmp $0x3,%eax
10e4df: 74 05 je 10e4e6 <IMFS_evaluate_for_make+0x10b>
result = IMFS_evaluate_link( pathloc, 0 );
if ( result == -1 )
return -1;
} else if ( node->type == IMFS_SYM_LINK ) {
10e4e1: 83 f8 04 cmp $0x4,%eax
10e4e4: 75 16 jne 10e4fc <IMFS_evaluate_for_make+0x121>
result = IMFS_evaluate_link( pathloc, 0 );
10e4e6: 51 push %ecx
10e4e7: 51 push %ecx
10e4e8: 6a 00 push $0x0
10e4ea: 56 push %esi
10e4eb: e8 68 fe ff ff call 10e358 <IMFS_evaluate_link>
if ( result == -1 )
10e4f0: 83 c4 10 add $0x10,%esp
10e4f3: 83 f8 ff cmp $0xffffffff,%eax
10e4f6: 0f 84 68 01 00 00 je 10e664 <IMFS_evaluate_for_make+0x289><== NEVER TAKEN
return -1;
}
node = pathloc->node_access;
10e4fc: 8b 06 mov (%esi),%eax
if ( !node )
10e4fe: 85 c0 test %eax,%eax
10e500: 0f 84 38 01 00 00 je 10e63e <IMFS_evaluate_for_make+0x263><== NEVER TAKEN
/*
* Only a directory can be decended into.
*/
if ( node->type != IMFS_DIRECTORY )
10e506: 83 78 4c 01 cmpl $0x1,0x4c(%eax)
10e50a: 0f 85 2e 01 00 00 jne 10e63e <IMFS_evaluate_for_make+0x263>
/*
* Find the token name in the present location.
*/
node = IMFS_find_match_in_dir( node, token );
10e510: 52 push %edx
10e511: 52 push %edx
10e512: 8d 4d c3 lea -0x3d(%ebp),%ecx
10e515: 51 push %ecx
10e516: 50 push %eax
10e517: e8 c4 03 00 00 call 10e8e0 <IMFS_find_match_in_dir>
10e51c: 89 c3 mov %eax,%ebx
/*
* If there is no node we have found the name of the node we
* wish to create.
*/
if ( ! node )
10e51e: 83 c4 10 add $0x10,%esp
10e521: 85 c0 test %eax,%eax
10e523: 0f 84 b1 00 00 00 je 10e5da <IMFS_evaluate_for_make+0x1ff>
done = true;
else {
if (( node->type == IMFS_DIRECTORY ) && ( node->info.directory.mt_fs != NULL )) {
10e529: 83 78 4c 01 cmpl $0x1,0x4c(%eax)
10e52d: 0f 85 80 00 00 00 jne 10e5b3 <IMFS_evaluate_for_make+0x1d8>
10e533: 83 78 5c 00 cmpl $0x0,0x5c(%eax)
10e537: 74 7a je 10e5b3 <IMFS_evaluate_for_make+0x1d8>
10e539: 8b 55 08 mov 0x8(%ebp),%edx
10e53c: 03 55 b4 add -0x4c(%ebp),%edx
10e53f: eb 04 jmp 10e545 <IMFS_evaluate_for_make+0x16a>
size_t *len, /* IN/OUT */
int *index /* IN/OUT */
)
{
while ( IMFS_is_separator( path[*index] ) && path[*index] && *len ) {
++(*index);
10e541: ff 45 b4 incl -0x4c(%ebp)
--(*len);
10e544: 4f dec %edi
10e545: 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 ) {
10e548: 83 ec 0c sub $0xc,%esp
10e54b: 0f be 02 movsbl (%edx),%eax
10e54e: 50 push %eax
10e54f: 89 55 ac mov %edx,-0x54(%ebp)
10e552: e8 b1 9e ff ff call 108408 <rtems_filesystem_is_separator>
10e557: 83 c4 10 add $0x10,%esp
10e55a: 85 c0 test %eax,%eax
10e55c: 8b 55 ac mov -0x54(%ebp),%edx
10e55f: 74 0a je 10e56b <IMFS_evaluate_for_make+0x190>
10e561: 80 3a 00 cmpb $0x0,(%edx)
10e564: 74 05 je 10e56b <IMFS_evaluate_for_make+0x190><== NEVER TAKEN
10e566: 42 inc %edx
10e567: 85 ff test %edi,%edi
10e569: 75 d6 jne 10e541 <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] != '.')) {
10e56b: 8b 45 b0 mov -0x50(%ebp),%eax
10e56e: 80 38 2e cmpb $0x2e,(%eax)
10e571: 75 0d jne 10e580 <IMFS_evaluate_for_make+0x1a5>
10e573: 8b 4d 08 mov 0x8(%ebp),%ecx
10e576: 8b 55 b4 mov -0x4c(%ebp),%edx
10e579: 80 7c 11 01 2e cmpb $0x2e,0x1(%ecx,%edx,1)
10e57e: 74 29 je 10e5a9 <IMFS_evaluate_for_make+0x1ce><== ALWAYS TAKEN
10e580: 89 f2 mov %esi,%edx
*pathloc = node->info.directory.mt_fs->mt_fs_root;
10e582: 8b 73 5c mov 0x5c(%ebx),%esi
10e585: 83 c6 1c add $0x1c,%esi
10e588: b9 05 00 00 00 mov $0x5,%ecx
10e58d: 89 d7 mov %edx,%edi
10e58f: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
return (*pathloc->ops->evalformake_h)( &path[i],
10e591: 53 push %ebx
10e592: 8b 42 0c mov 0xc(%edx),%eax
10e595: ff 75 10 pushl 0x10(%ebp)
10e598: 52 push %edx
10e599: ff 75 b0 pushl -0x50(%ebp)
10e59c: ff 50 04 call *0x4(%eax)
10e59f: 89 c3 mov %eax,%ebx
10e5a1: 83 c4 10 add $0x10,%esp
10e5a4: e9 bd 00 00 00 jmp 10e666 <IMFS_evaluate_for_make+0x28b>
pathloc,
name );
}
i += 2;
10e5a9: 83 45 b4 02 addl $0x2,-0x4c(%ebp)
pathlen -= 2;
10e5ad: 83 ef 02 sub $0x2,%edi
node = node->Parent;
10e5b0: 8b 5b 08 mov 0x8(%ebx),%ebx
}
pathloc->node_access = node;
10e5b3: 89 1e mov %ebx,(%esi)
10e5b5: e9 47 fe ff ff jmp 10e401 <IMFS_evaluate_for_make+0x26>
}
break;
case IMFS_NO_MORE_PATH:
rtems_set_errno_and_return_minus_one( EEXIST );
10e5ba: e8 01 33 00 00 call 1118c0 <__errno>
10e5bf: c7 00 11 00 00 00 movl $0x11,(%eax)
10e5c5: e9 8f fe ff ff jmp 10e459 <IMFS_evaluate_for_make+0x7e>
break;
case IMFS_INVALID_TOKEN:
rtems_set_errno_and_return_minus_one( ENAMETOOLONG );
10e5ca: e8 f1 32 00 00 call 1118c0 <__errno>
10e5cf: c7 00 5b 00 00 00 movl $0x5b,(%eax)
10e5d5: e9 7f fe ff ff jmp 10e459 <IMFS_evaluate_for_make+0x7e>
10e5da: 89 f2 mov %esi,%edx
case IMFS_CURRENT_DIR:
break;
}
}
*name = &path[ i - len ];
10e5dc: 8b 45 b4 mov -0x4c(%ebp),%eax
10e5df: 2b 45 e4 sub -0x1c(%ebp),%eax
10e5e2: 03 45 08 add 0x8(%ebp),%eax
10e5e5: 8b 4d 10 mov 0x10(%ebp),%ecx
10e5e8: 89 01 mov %eax,(%ecx)
10e5ea: 8b 5d 08 mov 0x8(%ebp),%ebx
10e5ed: 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++) {
10e5f0: eb 2a jmp 10e61c <IMFS_evaluate_for_make+0x241>
if ( !IMFS_is_separator( path[ i ] ) )
10e5f2: 83 ec 0c sub $0xc,%esp
10e5f5: 0f be c0 movsbl %al,%eax
10e5f8: 50 push %eax
10e5f9: 89 55 ac mov %edx,-0x54(%ebp)
10e5fc: e8 07 9e ff ff call 108408 <rtems_filesystem_is_separator>
10e601: 43 inc %ebx
10e602: 83 c4 10 add $0x10,%esp
10e605: 85 c0 test %eax,%eax
10e607: 8b 55 ac mov -0x54(%ebp),%edx
10e60a: 75 10 jne 10e61c <IMFS_evaluate_for_make+0x241>
rtems_set_errno_and_return_minus_one( ENOENT );
10e60c: e8 af 32 00 00 call 1118c0 <__errno>
10e611: c7 00 02 00 00 00 movl $0x2,(%eax)
10e617: e9 3d fe ff ff jmp 10e459 <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++) {
10e61c: 8a 03 mov (%ebx),%al
10e61e: 84 c0 test %al,%al
10e620: 75 d0 jne 10e5f2 <IMFS_evaluate_for_make+0x217>
/*
* Verify we can execute and write to this directory.
*/
result = IMFS_Set_handlers( pathloc );
10e622: 83 ec 0c sub $0xc,%esp
10e625: 52 push %edx
10e626: 89 55 ac mov %edx,-0x54(%ebp)
10e629: e8 6a f9 ff ff call 10df98 <IMFS_Set_handlers>
10e62e: 89 c3 mov %eax,%ebx
/*
* The returned node must be a directory
*/
node = pathloc->node_access;
10e630: 8b 55 ac mov -0x54(%ebp),%edx
10e633: 8b 02 mov (%edx),%eax
10e635: 83 c4 10 add $0x10,%esp
10e638: 83 78 4c 01 cmpl $0x1,0x4c(%eax)
10e63c: 74 10 je 10e64e <IMFS_evaluate_for_make+0x273><== ALWAYS TAKEN
if ( node->type != IMFS_DIRECTORY )
rtems_set_errno_and_return_minus_one( ENOTDIR );
10e63e: e8 7d 32 00 00 call 1118c0 <__errno>
10e643: c7 00 14 00 00 00 movl $0x14,(%eax)
10e649: e9 0b fe ff ff jmp 10e459 <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 ) )
10e64e: 51 push %ecx
10e64f: 51 push %ecx
10e650: 6a 03 push $0x3
10e652: 52 push %edx
10e653: e8 88 f9 ff ff call 10dfe0 <IMFS_evaluate_permission>
10e658: 83 c4 10 add $0x10,%esp
10e65b: 85 c0 test %eax,%eax
10e65d: 75 07 jne 10e666 <IMFS_evaluate_for_make+0x28b>
10e65f: e9 ea fd ff ff jmp 10e44e <IMFS_evaluate_for_make+0x73>
10e664: 89 c3 mov %eax,%ebx <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EACCES );
return result;
}
10e666: 89 d8 mov %ebx,%eax
10e668: 8d 65 f4 lea -0xc(%ebp),%esp
10e66b: 5b pop %ebx
10e66c: 5e pop %esi
10e66d: 5f pop %edi
10e66e: c9 leave
10e66f: c3 ret
0010e017 <IMFS_evaluate_hard_link>:
int IMFS_evaluate_hard_link(
rtems_filesystem_location_info_t *node, /* IN/OUT */
int flags /* IN */
)
{
10e017: 55 push %ebp
10e018: 89 e5 mov %esp,%ebp
10e01a: 53 push %ebx
10e01b: 83 ec 04 sub $0x4,%esp
10e01e: 8b 5d 08 mov 0x8(%ebp),%ebx
IMFS_jnode_t *jnode = node->node_access;
10e021: 8b 03 mov (%ebx),%eax
/*
* Check for things that should never happen.
*/
if ( jnode->type != IMFS_HARD_LINK )
10e023: 83 78 4c 03 cmpl $0x3,0x4c(%eax)
10e027: 74 0d je 10e036 <IMFS_evaluate_hard_link+0x1f><== ALWAYS TAKEN
rtems_fatal_error_occurred (0xABCD0000);
10e029: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10e02c: 68 00 00 cd ab push $0xabcd0000 <== NOT EXECUTED
10e031: e8 52 cb ff ff call 10ab88 <rtems_fatal_error_occurred><== NOT EXECUTED
/*
* Set the hard link value and the handlers.
*/
node->node_access = jnode->info.hard_link.link_node;
10e036: 8b 40 50 mov 0x50(%eax),%eax
10e039: 89 03 mov %eax,(%ebx)
IMFS_Set_handlers( node );
10e03b: 83 ec 0c sub $0xc,%esp
10e03e: 53 push %ebx
10e03f: e8 54 ff ff ff call 10df98 <IMFS_Set_handlers>
/*
* Verify we have the correct permissions for this node.
*/
if ( !IMFS_evaluate_permission( node, flags ) )
10e044: 58 pop %eax
10e045: 5a pop %edx
10e046: ff 75 0c pushl 0xc(%ebp)
10e049: 53 push %ebx
10e04a: e8 91 ff ff ff call 10dfe0 <IMFS_evaluate_permission>
10e04f: 89 c2 mov %eax,%edx
10e051: 83 c4 10 add $0x10,%esp
10e054: 31 c0 xor %eax,%eax
10e056: 85 d2 test %edx,%edx
10e058: 75 0e jne 10e068 <IMFS_evaluate_hard_link+0x51><== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( EACCES );
10e05a: e8 61 38 00 00 call 1118c0 <__errno> <== NOT EXECUTED
10e05f: c7 00 0d 00 00 00 movl $0xd,(%eax) <== NOT EXECUTED
10e065: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
return result;
}
10e068: 8b 5d fc mov -0x4(%ebp),%ebx
10e06b: c9 leave
10e06c: c3 ret
0010dfe0 <IMFS_evaluate_permission>:
int IMFS_evaluate_permission(
rtems_filesystem_location_info_t *node,
int flags
)
{
10dfe0: 55 push %ebp
10dfe1: 89 e5 mov %esp,%ebp
10dfe3: 83 ec 08 sub $0x8,%esp
10dfe6: 8b 45 0c mov 0xc(%ebp),%eax
uid_t st_uid;
gid_t st_gid;
IMFS_jnode_t *jnode;
int flags_to_test;
if ( !rtems_libio_is_valid_perms( flags ) )
10dfe9: a9 f8 ff ff ff test $0xfffffff8,%eax
10dfee: 74 10 je 10e000 <IMFS_evaluate_permission+0x20><== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( EPERM );
10dff0: e8 cb 38 00 00 call 1118c0 <__errno> <== NOT EXECUTED
10dff5: c7 00 01 00 00 00 movl $0x1,(%eax) <== NOT EXECUTED
10dffb: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
10dffe: eb 15 jmp 10e015 <IMFS_evaluate_permission+0x35><== NOT EXECUTED
/*
* If all of the flags are set we have permission
* to do this.
*/
if ( ( flags_to_test & jnode->st_mode) == flags_to_test )
10e000: c1 e0 06 shl $0x6,%eax
10e003: 8b 55 08 mov 0x8(%ebp),%edx
10e006: 8b 12 mov (%edx),%edx
10e008: 8b 52 30 mov 0x30(%edx),%edx
10e00b: 21 c2 and %eax,%edx
10e00d: 39 c2 cmp %eax,%edx
10e00f: 0f 94 c0 sete %al
10e012: 0f b6 c0 movzbl %al,%eax
return 1;
return 0;
}
10e015: c9 leave
10e016: c3 ret
0010e06d <IMFS_evaluate_sym_link>:
int IMFS_evaluate_sym_link(
rtems_filesystem_location_info_t *node, /* IN/OUT */
int flags /* IN */
)
{
10e06d: 55 push %ebp
10e06e: 89 e5 mov %esp,%ebp
10e070: 57 push %edi
10e071: 56 push %esi
10e072: 53 push %ebx
10e073: 83 ec 1c sub $0x1c,%esp
10e076: 8b 5d 08 mov 0x8(%ebp),%ebx
10e079: 8b 75 0c mov 0xc(%ebp),%esi
IMFS_jnode_t *jnode = node->node_access;
10e07c: 8b 3b mov (%ebx),%edi
/*
* Check for things that should never happen.
*/
if ( jnode->type != IMFS_SYM_LINK )
10e07e: 83 7f 4c 04 cmpl $0x4,0x4c(%edi)
10e082: 74 0a je 10e08e <IMFS_evaluate_sym_link+0x21><== ALWAYS TAKEN
rtems_fatal_error_occurred (0xABCD0000);
10e084: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10e087: 68 00 00 cd ab push $0xabcd0000 <== NOT EXECUTED
10e08c: eb 0f jmp 10e09d <IMFS_evaluate_sym_link+0x30><== NOT EXECUTED
if ( !jnode->Parent )
10e08e: 8b 47 08 mov 0x8(%edi),%eax
10e091: 85 c0 test %eax,%eax
10e093: 75 0d jne 10e0a2 <IMFS_evaluate_sym_link+0x35><== ALWAYS TAKEN
rtems_fatal_error_occurred( 0xBAD00000 );
10e095: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10e098: 68 00 00 d0 ba push $0xbad00000 <== NOT EXECUTED
10e09d: e8 e6 ca ff ff call 10ab88 <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;
10e0a2: 89 03 mov %eax,(%ebx)
rtems_filesystem_get_sym_start_loc(
10e0a4: 52 push %edx
10e0a5: 53 push %ebx
10e0a6: 8d 45 e4 lea -0x1c(%ebp),%eax
10e0a9: 50 push %eax
10e0aa: ff 77 50 pushl 0x50(%edi)
10e0ad: e8 46 10 00 00 call 10f0f8 <rtems_filesystem_get_sym_start_loc>
/*
* Use eval path to evaluate the path of the symbolic link.
*/
result = IMFS_eval_path(
10e0b2: 8b 57 50 mov 0x50(%edi),%edx
10e0b5: 03 55 e4 add -0x1c(%ebp),%edx
10e0b8: 31 c0 xor %eax,%eax
10e0ba: 83 c9 ff or $0xffffffff,%ecx
10e0bd: 89 d7 mov %edx,%edi
10e0bf: f2 ae repnz scas %es:(%edi),%al
10e0c1: f7 d1 not %ecx
10e0c3: 49 dec %ecx
10e0c4: 53 push %ebx
10e0c5: 56 push %esi
10e0c6: 51 push %ecx
10e0c7: 52 push %edx
10e0c8: e8 33 00 00 00 call 10e100 <IMFS_eval_path>
10e0cd: 89 c7 mov %eax,%edi
strlen( &jnode->info.sym_link.name[i] ),
flags,
node
);
IMFS_Set_handlers( node );
10e0cf: 83 c4 14 add $0x14,%esp
10e0d2: 53 push %ebx
10e0d3: e8 c0 fe ff ff call 10df98 <IMFS_Set_handlers>
/*
* Verify we have the correct permissions for this node.
*/
if ( !IMFS_evaluate_permission( node, flags ) )
10e0d8: 59 pop %ecx
10e0d9: 58 pop %eax
10e0da: 56 push %esi
10e0db: 53 push %ebx
10e0dc: e8 ff fe ff ff call 10dfe0 <IMFS_evaluate_permission>
10e0e1: 83 c4 10 add $0x10,%esp
10e0e4: 85 c0 test %eax,%eax
10e0e6: 75 0e jne 10e0f6 <IMFS_evaluate_sym_link+0x89><== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( EACCES );
10e0e8: e8 d3 37 00 00 call 1118c0 <__errno> <== NOT EXECUTED
10e0ed: c7 00 0d 00 00 00 movl $0xd,(%eax) <== NOT EXECUTED
10e0f3: 83 cf ff or $0xffffffff,%edi <== NOT EXECUTED
return result;
}
10e0f6: 89 f8 mov %edi,%eax
10e0f8: 8d 65 f4 lea -0xc(%ebp),%esp
10e0fb: 5b pop %ebx
10e0fc: 5e pop %esi
10e0fd: 5f pop %edi
10e0fe: c9 leave
10e0ff: c3 ret
0010e7b9 <IMFS_fifo_close>:
}
int IMFS_fifo_close(
rtems_libio_t *iop
)
{
10e7b9: 55 push %ebp <== NOT EXECUTED
10e7ba: 89 e5 mov %esp,%ebp <== NOT EXECUTED
10e7bc: 57 push %edi <== NOT EXECUTED
10e7bd: 56 push %esi <== NOT EXECUTED
10e7be: 53 push %ebx <== NOT EXECUTED
10e7bf: 83 ec 14 sub $0x14,%esp <== NOT EXECUTED
10e7c2: 8b 7d 08 mov 0x8(%ebp),%edi <== NOT EXECUTED
IMFS_jnode_t *jnode = iop->file_info;
10e7c5: 8b 77 38 mov 0x38(%edi),%esi <== NOT EXECUTED
int err = pipe_release(&JNODE2PIPE(jnode), iop);
10e7c8: 57 push %edi <== NOT EXECUTED
10e7c9: 8d 46 50 lea 0x50(%esi),%eax <== NOT EXECUTED
10e7cc: 50 push %eax <== NOT EXECUTED
10e7cd: e8 fa f1 ff ff call 10d9cc <pipe_release> <== NOT EXECUTED
10e7d2: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (! err) {
10e7d4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10e7d7: 83 f8 00 cmp $0x0,%eax <== NOT EXECUTED
10e7da: 75 2c jne 10e808 <IMFS_fifo_close+0x4f> <== NOT EXECUTED
iop->flags &= ~LIBIO_FLAGS_OPEN;
10e7dc: 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)
10e7e3: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10e7e6: 56 push %esi <== NOT EXECUTED
10e7e7: e8 02 05 00 00 call 10ecee <rtems_libio_is_file_open><== NOT EXECUTED
10e7ec: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10e7ef: 85 c0 test %eax,%eax <== NOT EXECUTED
10e7f1: 75 23 jne 10e816 <IMFS_fifo_close+0x5d> <== NOT EXECUTED
10e7f3: 66 83 7e 34 00 cmpw $0x0,0x34(%esi) <== NOT EXECUTED
10e7f8: 75 1c jne 10e816 <IMFS_fifo_close+0x5d> <== NOT EXECUTED
free(jnode);
10e7fa: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10e7fd: 56 push %esi <== NOT EXECUTED
10e7fe: e8 99 8e ff ff call 10769c <free> <== NOT EXECUTED
10e803: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10e806: eb 0e jmp 10e816 <IMFS_fifo_close+0x5d> <== NOT EXECUTED
}
IMFS_FIFO_RETURN(err);
10e808: 7d 0c jge 10e816 <IMFS_fifo_close+0x5d> <== NOT EXECUTED
10e80a: e8 b1 30 00 00 call 1118c0 <__errno> <== NOT EXECUTED
10e80f: f7 db neg %ebx <== NOT EXECUTED
10e811: 89 18 mov %ebx,(%eax) <== NOT EXECUTED
10e813: 83 cb ff or $0xffffffff,%ebx <== NOT EXECUTED
}
10e816: 89 d8 mov %ebx,%eax <== NOT EXECUTED
10e818: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
10e81b: 5b pop %ebx <== NOT EXECUTED
10e81c: 5e pop %esi <== NOT EXECUTED
10e81d: 5f pop %edi <== NOT EXECUTED
10e81e: c9 leave <== NOT EXECUTED
10e81f: c3 ret <== NOT EXECUTED
0010e6ac <IMFS_fifo_ioctl>:
int IMFS_fifo_ioctl(
rtems_libio_t *iop,
uint32_t command,
void *buffer
)
{
10e6ac: 55 push %ebp <== NOT EXECUTED
10e6ad: 89 e5 mov %esp,%ebp <== NOT EXECUTED
10e6af: 53 push %ebx <== NOT EXECUTED
10e6b0: 83 ec 04 sub $0x4,%esp <== NOT EXECUTED
10e6b3: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
10e6b6: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED
10e6b9: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
int err;
if (command == FIONBIO) {
10e6bc: 81 f9 7e 66 04 80 cmp $0x8004667e,%ecx <== NOT EXECUTED
10e6c2: 75 1c jne 10e6e0 <IMFS_fifo_ioctl+0x34> <== NOT EXECUTED
if (buffer == NULL)
10e6c4: bb f2 ff ff ff mov $0xfffffff2,%ebx <== NOT EXECUTED
10e6c9: 85 d2 test %edx,%edx <== NOT EXECUTED
10e6cb: 74 2a je 10e6f7 <IMFS_fifo_ioctl+0x4b> <== NOT EXECUTED
err = -EFAULT;
else {
if (*(int *)buffer)
10e6cd: 83 3a 00 cmpl $0x0,(%edx) <== NOT EXECUTED
10e6d0: 74 06 je 10e6d8 <IMFS_fifo_ioctl+0x2c> <== NOT EXECUTED
iop->flags |= LIBIO_FLAGS_NO_DELAY;
10e6d2: 83 48 14 01 orl $0x1,0x14(%eax) <== NOT EXECUTED
10e6d6: eb 04 jmp 10e6dc <IMFS_fifo_ioctl+0x30> <== NOT EXECUTED
else
iop->flags &= ~LIBIO_FLAGS_NO_DELAY;
10e6d8: 83 60 14 fe andl $0xfffffffe,0x14(%eax) <== NOT EXECUTED
10e6dc: 31 db xor %ebx,%ebx <== NOT EXECUTED
10e6de: eb 23 jmp 10e703 <IMFS_fifo_ioctl+0x57> <== NOT EXECUTED
return 0;
}
}
else
err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop);
10e6e0: 50 push %eax <== NOT EXECUTED
10e6e1: 52 push %edx <== NOT EXECUTED
10e6e2: 51 push %ecx <== NOT EXECUTED
10e6e3: 8b 40 38 mov 0x38(%eax),%eax <== NOT EXECUTED
10e6e6: ff 70 50 pushl 0x50(%eax) <== NOT EXECUTED
10e6e9: e8 59 ef ff ff call 10d647 <pipe_ioctl> <== NOT EXECUTED
10e6ee: 89 c3 mov %eax,%ebx <== NOT EXECUTED
IMFS_FIFO_RETURN(err);
10e6f0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10e6f3: 85 c0 test %eax,%eax <== NOT EXECUTED
10e6f5: 79 0c jns 10e703 <IMFS_fifo_ioctl+0x57> <== NOT EXECUTED
10e6f7: e8 c4 31 00 00 call 1118c0 <__errno> <== NOT EXECUTED
10e6fc: f7 db neg %ebx <== NOT EXECUTED
10e6fe: 89 18 mov %ebx,(%eax) <== NOT EXECUTED
10e700: 83 cb ff or $0xffffffff,%ebx <== NOT EXECUTED
}
10e703: 89 d8 mov %ebx,%eax <== NOT EXECUTED
10e705: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
10e708: c9 leave <== NOT EXECUTED
10e709: c3 ret <== NOT EXECUTED
0010e670 <IMFS_fifo_lseek>:
rtems_off64_t IMFS_fifo_lseek(
rtems_libio_t *iop,
rtems_off64_t offset,
int whence
)
{
10e670: 55 push %ebp <== NOT EXECUTED
10e671: 89 e5 mov %esp,%ebp <== NOT EXECUTED
10e673: 53 push %ebx <== NOT EXECUTED
10e674: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED
10e677: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop);
10e67a: 50 push %eax <== NOT EXECUTED
10e67b: ff 75 14 pushl 0x14(%ebp) <== NOT EXECUTED
10e67e: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
10e681: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
10e684: 8b 40 38 mov 0x38(%eax),%eax <== NOT EXECUTED
10e687: ff 70 50 pushl 0x50(%eax) <== NOT EXECUTED
10e68a: e8 61 ef ff ff call 10d5f0 <pipe_lseek> <== NOT EXECUTED
10e68f: 89 c3 mov %eax,%ebx <== NOT EXECUTED
10e691: 99 cltd <== NOT EXECUTED
IMFS_FIFO_RETURN(err);
10e692: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
10e695: 85 d2 test %edx,%edx <== NOT EXECUTED
10e697: 79 0e jns 10e6a7 <IMFS_fifo_lseek+0x37> <== NOT EXECUTED
10e699: e8 22 32 00 00 call 1118c0 <__errno> <== NOT EXECUTED
10e69e: f7 db neg %ebx <== NOT EXECUTED
10e6a0: 89 18 mov %ebx,(%eax) <== NOT EXECUTED
10e6a2: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
10e6a5: 89 c2 mov %eax,%edx <== NOT EXECUTED
}
10e6a7: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
10e6aa: c9 leave <== NOT EXECUTED
10e6ab: c3 ret <== NOT EXECUTED
0010e820 <IMFS_fifo_open>:
rtems_libio_t *iop,
const char *pathname,
uint32_t flag,
uint32_t mode
)
{
10e820: 55 push %ebp
10e821: 89 e5 mov %esp,%ebp
10e823: 53 push %ebx
10e824: 83 ec 0c sub $0xc,%esp
10e827: 8b 45 08 mov 0x8(%ebp),%eax
IMFS_jnode_t *jnode = iop->file_info;
int err = fifo_open(&JNODE2PIPE(jnode), iop);
10e82a: 50 push %eax
10e82b: 8b 40 38 mov 0x38(%eax),%eax
10e82e: 83 c0 50 add $0x50,%eax
10e831: 50 push %eax
10e832: e8 65 f2 ff ff call 10da9c <fifo_open>
10e837: 89 c3 mov %eax,%ebx
IMFS_FIFO_RETURN(err);
10e839: 83 c4 10 add $0x10,%esp
10e83c: 85 c0 test %eax,%eax
10e83e: 79 0c jns 10e84c <IMFS_fifo_open+0x2c> <== NEVER TAKEN
10e840: e8 7b 30 00 00 call 1118c0 <__errno>
10e845: f7 db neg %ebx
10e847: 89 18 mov %ebx,(%eax)
10e849: 83 cb ff or $0xffffffff,%ebx
}
10e84c: 89 d8 mov %ebx,%eax
10e84e: 8b 5d fc mov -0x4(%ebp),%ebx
10e851: c9 leave
10e852: c3 ret
0010e763 <IMFS_fifo_read>:
ssize_t IMFS_fifo_read(
rtems_libio_t *iop,
void *buffer,
size_t count
)
{
10e763: 55 push %ebp <== NOT EXECUTED
10e764: 89 e5 mov %esp,%ebp <== NOT EXECUTED
10e766: 56 push %esi <== NOT EXECUTED
10e767: 53 push %ebx <== NOT EXECUTED
10e768: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED
10e76b: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
IMFS_jnode_t *jnode = iop->file_info;
10e76e: 8b 70 38 mov 0x38(%eax),%esi <== NOT EXECUTED
int err = pipe_read(JNODE2PIPE(jnode), buffer, count, iop);
10e771: 50 push %eax <== NOT EXECUTED
10e772: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
10e775: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
10e778: ff 76 50 pushl 0x50(%esi) <== NOT EXECUTED
10e77b: e8 af f0 ff ff call 10d82f <pipe_read> <== NOT EXECUTED
10e780: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (err > 0)
10e782: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10e785: 83 f8 00 cmp $0x0,%eax <== NOT EXECUTED
10e788: 7e 18 jle 10e7a2 <IMFS_fifo_read+0x3f> <== NOT EXECUTED
IMFS_update_atime(jnode);
10e78a: 52 push %edx <== NOT EXECUTED
10e78b: 52 push %edx <== NOT EXECUTED
10e78c: 6a 00 push $0x0 <== NOT EXECUTED
10e78e: 8d 45 f0 lea -0x10(%ebp),%eax <== NOT EXECUTED
10e791: 50 push %eax <== NOT EXECUTED
10e792: e8 7d 8f ff ff call 107714 <gettimeofday> <== NOT EXECUTED
10e797: 8b 45 f0 mov -0x10(%ebp),%eax <== NOT EXECUTED
10e79a: 89 46 40 mov %eax,0x40(%esi) <== NOT EXECUTED
10e79d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10e7a0: eb 0e jmp 10e7b0 <IMFS_fifo_read+0x4d> <== NOT EXECUTED
IMFS_FIFO_RETURN(err);
10e7a2: 74 0c je 10e7b0 <IMFS_fifo_read+0x4d> <== NOT EXECUTED
10e7a4: e8 17 31 00 00 call 1118c0 <__errno> <== NOT EXECUTED
10e7a9: f7 db neg %ebx <== NOT EXECUTED
10e7ab: 89 18 mov %ebx,(%eax) <== NOT EXECUTED
10e7ad: 83 cb ff or $0xffffffff,%ebx <== NOT EXECUTED
}
10e7b0: 89 d8 mov %ebx,%eax <== NOT EXECUTED
10e7b2: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
10e7b5: 5b pop %ebx <== NOT EXECUTED
10e7b6: 5e pop %esi <== NOT EXECUTED
10e7b7: c9 leave <== NOT EXECUTED
10e7b8: c3 ret <== NOT EXECUTED
0010e70a <IMFS_fifo_write>:
ssize_t IMFS_fifo_write(
rtems_libio_t *iop,
const void *buffer,
size_t count
)
{
10e70a: 55 push %ebp <== NOT EXECUTED
10e70b: 89 e5 mov %esp,%ebp <== NOT EXECUTED
10e70d: 56 push %esi <== NOT EXECUTED
10e70e: 53 push %ebx <== NOT EXECUTED
10e70f: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED
10e712: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
IMFS_jnode_t *jnode = iop->file_info;
10e715: 8b 70 38 mov 0x38(%eax),%esi <== NOT EXECUTED
int err = pipe_write(JNODE2PIPE(jnode), buffer, count, iop);
10e718: 50 push %eax <== NOT EXECUTED
10e719: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
10e71c: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
10e71f: ff 76 50 pushl 0x50(%esi) <== NOT EXECUTED
10e722: e8 76 ef ff ff call 10d69d <pipe_write> <== NOT EXECUTED
10e727: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (err > 0) {
10e729: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10e72c: 83 f8 00 cmp $0x0,%eax <== NOT EXECUTED
10e72f: 7e 1b jle 10e74c <IMFS_fifo_write+0x42> <== NOT EXECUTED
IMFS_mtime_ctime_update(jnode);
10e731: 50 push %eax <== NOT EXECUTED
10e732: 50 push %eax <== NOT EXECUTED
10e733: 6a 00 push $0x0 <== NOT EXECUTED
10e735: 8d 45 f0 lea -0x10(%ebp),%eax <== NOT EXECUTED
10e738: 50 push %eax <== NOT EXECUTED
10e739: e8 d6 8f ff ff call 107714 <gettimeofday> <== NOT EXECUTED
10e73e: 8b 45 f0 mov -0x10(%ebp),%eax <== NOT EXECUTED
10e741: 89 46 44 mov %eax,0x44(%esi) <== NOT EXECUTED
10e744: 89 46 48 mov %eax,0x48(%esi) <== NOT EXECUTED
10e747: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10e74a: eb 0e jmp 10e75a <IMFS_fifo_write+0x50> <== NOT EXECUTED
}
IMFS_FIFO_RETURN(err);
10e74c: 74 0c je 10e75a <IMFS_fifo_write+0x50> <== NOT EXECUTED
10e74e: e8 6d 31 00 00 call 1118c0 <__errno> <== NOT EXECUTED
10e753: f7 db neg %ebx <== NOT EXECUTED
10e755: 89 18 mov %ebx,(%eax) <== NOT EXECUTED
10e757: 83 cb ff or $0xffffffff,%ebx <== NOT EXECUTED
}
10e75a: 89 d8 mov %ebx,%eax <== NOT EXECUTED
10e75c: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
10e75f: 5b pop %ebx <== NOT EXECUTED
10e760: 5e pop %esi <== NOT EXECUTED
10e761: c9 leave <== NOT EXECUTED
10e762: c3 ret <== NOT EXECUTED
0010e8e0 <IMFS_find_match_in_dir>:
IMFS_jnode_t *IMFS_find_match_in_dir(
IMFS_jnode_t *directory,
char *name
)
{
10e8e0: 55 push %ebp
10e8e1: 89 e5 mov %esp,%ebp
10e8e3: 57 push %edi
10e8e4: 56 push %esi
10e8e5: 53 push %ebx
10e8e6: 83 ec 0c sub $0xc,%esp
10e8e9: 8b 5d 08 mov 0x8(%ebp),%ebx
10e8ec: 8b 7d 0c mov 0xc(%ebp),%edi
/*
* Check for fatal errors. A NULL directory show a problem in the
* the IMFS code.
*/
assert( directory );
10e8ef: 85 db test %ebx,%ebx
10e8f1: 75 16 jne 10e909 <IMFS_find_match_in_dir+0x29><== ALWAYS TAKEN
10e8f3: 68 a0 f4 11 00 push $0x11f4a0 <== NOT EXECUTED
10e8f8: 68 08 f5 11 00 push $0x11f508 <== NOT EXECUTED
10e8fd: 6a 2a push $0x2a <== NOT EXECUTED
10e8ff: 68 aa f4 11 00 push $0x11f4aa <== NOT EXECUTED
10e904: e8 97 8a ff ff call 1073a0 <__assert_func> <== NOT EXECUTED
if ( !name )
10e909: 85 ff test %edi,%edi
10e90b: 74 52 je 10e95f <IMFS_find_match_in_dir+0x7f><== NEVER TAKEN
/*
* Check for "." and ".."
*/
if ( !strcmp( name, dotname ) )
10e90d: 56 push %esi
10e90e: 56 push %esi
10e90f: 68 00 f5 11 00 push $0x11f500
10e914: 57 push %edi
10e915: e8 c2 3a 00 00 call 1123dc <strcmp>
10e91a: 83 c4 10 add $0x10,%esp
10e91d: 85 c0 test %eax,%eax
10e91f: 74 40 je 10e961 <IMFS_find_match_in_dir+0x81><== NEVER TAKEN
return directory;
if ( !strcmp( name, dotdotname ) )
10e921: 51 push %ecx
10e922: 51 push %ecx
10e923: 68 02 f5 11 00 push $0x11f502
10e928: 57 push %edi
10e929: e8 ae 3a 00 00 call 1123dc <strcmp>
10e92e: 83 c4 10 add $0x10,%esp
10e931: 85 c0 test %eax,%eax
10e933: 75 05 jne 10e93a <IMFS_find_match_in_dir+0x5a><== ALWAYS TAKEN
return directory->Parent;
10e935: 8b 5b 08 mov 0x8(%ebx),%ebx <== NOT EXECUTED
10e938: eb 27 jmp 10e961 <IMFS_find_match_in_dir+0x81><== NOT EXECUTED
the_chain = &directory->info.directory.Entries;
for ( the_node = the_chain->first;
10e93a: 8b 73 50 mov 0x50(%ebx),%esi
10e93d: 83 c3 54 add $0x54,%ebx
10e940: eb 19 jmp 10e95b <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 ) )
10e942: 8d 46 0c lea 0xc(%esi),%eax
10e945: 52 push %edx
10e946: 52 push %edx
10e947: 50 push %eax
10e948: 57 push %edi
10e949: e8 8e 3a 00 00 call 1123dc <strcmp>
10e94e: 83 c4 10 add $0x10,%esp
10e951: 85 c0 test %eax,%eax
10e953: 75 04 jne 10e959 <IMFS_find_match_in_dir+0x79>
10e955: 89 f3 mov %esi,%ebx
10e957: eb 08 jmp 10e961 <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 ) {
10e959: 8b 36 mov (%esi),%esi
if ( !strcmp( name, dotdotname ) )
return directory->Parent;
the_chain = &directory->info.directory.Entries;
for ( the_node = the_chain->first;
10e95b: 39 de cmp %ebx,%esi
10e95d: 75 e3 jne 10e942 <IMFS_find_match_in_dir+0x62>
10e95f: 31 db xor %ebx,%ebx
if ( !strcmp( name, the_jnode->name ) )
return the_jnode;
}
return 0;
}
10e961: 89 d8 mov %ebx,%eax
10e963: 8d 65 f4 lea -0xc(%ebp),%esp
10e966: 5b pop %ebx
10e967: 5e pop %esi
10e968: 5f pop %edi
10e969: c9 leave
10e96a: c3 ret
0010e85c <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
)
{
10e85c: 55 push %ebp
10e85d: 89 e5 mov %esp,%ebp
10e85f: 57 push %edi
10e860: 56 push %esi
10e861: 53 push %ebx
10e862: 83 ec 2c sub $0x2c,%esp
10e865: 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;
10e868: 8b 58 1c mov 0x1c(%eax),%ebx
loc = temp_mt_entry->mt_fs_root;
10e86b: 8d 7d d4 lea -0x2c(%ebp),%edi
10e86e: 8d 70 1c lea 0x1c(%eax),%esi
10e871: b9 05 00 00 00 mov $0x5,%ecx
10e876: 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;
10e878: c7 40 1c 00 00 00 00 movl $0x0,0x1c(%eax)
do {
next = jnode->Parent;
loc.node_access = (void *)jnode;
IMFS_Set_handlers( &loc );
10e87f: 8d 75 d4 lea -0x2c(%ebp),%esi
*/
temp_mt_entry->mt_fs_root.node_access = NULL;
do {
next = jnode->Parent;
10e882: 8b 7b 08 mov 0x8(%ebx),%edi
loc.node_access = (void *)jnode;
10e885: 89 5d d4 mov %ebx,-0x2c(%ebp)
IMFS_Set_handlers( &loc );
10e888: 83 ec 0c sub $0xc,%esp
10e88b: 56 push %esi
10e88c: e8 07 f7 ff ff call 10df98 <IMFS_Set_handlers>
if ( jnode->type != IMFS_DIRECTORY ) {
10e891: 83 c4 10 add $0x10,%esp
10e894: 83 7b 4c 01 cmpl $0x1,0x4c(%ebx)
10e898: 75 08 jne 10e8a2 <IMFS_fsunmount+0x46>
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
10e89a: 8d 43 54 lea 0x54(%ebx),%eax
10e89d: 39 43 50 cmp %eax,0x50(%ebx)
10e8a0: 75 13 jne 10e8b5 <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 );
10e8a2: 50 push %eax
10e8a3: 50 push %eax
10e8a4: 56 push %esi
10e8a5: 6a 00 push $0x0
10e8a7: e8 e4 88 ff ff call 107190 <IMFS_unlink>
if (result != 0)
10e8ac: 83 c4 10 add $0x10,%esp
10e8af: 85 c0 test %eax,%eax
10e8b1: 75 1d jne 10e8d0 <IMFS_fsunmount+0x74> <== NEVER TAKEN
10e8b3: 89 fb mov %edi,%ebx
return -1;
jnode = next;
}
if ( jnode != NULL ) {
10e8b5: 85 db test %ebx,%ebx
10e8b7: 74 1c je 10e8d5 <IMFS_fsunmount+0x79>
if ( jnode->type == IMFS_DIRECTORY ) {
10e8b9: 83 7b 4c 01 cmpl $0x1,0x4c(%ebx)
10e8bd: 75 c3 jne 10e882 <IMFS_fsunmount+0x26> <== NEVER TAKEN
10e8bf: 8d 43 54 lea 0x54(%ebx),%eax
10e8c2: 39 43 50 cmp %eax,0x50(%ebx)
10e8c5: 74 bb je 10e882 <IMFS_fsunmount+0x26>
if ( jnode_has_children( jnode ) )
jnode = jnode_get_first_child( jnode );
10e8c7: 8b 5b 50 mov 0x50(%ebx),%ebx
}
}
} while (jnode != NULL);
10e8ca: 85 db test %ebx,%ebx
10e8cc: 75 b4 jne 10e882 <IMFS_fsunmount+0x26> <== ALWAYS TAKEN
10e8ce: eb 05 jmp 10e8d5 <IMFS_fsunmount+0x79> <== NOT EXECUTED
10e8d0: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
10e8d3: eb 02 jmp 10e8d7 <IMFS_fsunmount+0x7b> <== NOT EXECUTED
10e8d5: 31 c0 xor %eax,%eax
return 0;
}
10e8d7: 8d 65 f4 lea -0xc(%ebp),%esp
10e8da: 5b pop %ebx
10e8db: 5e pop %esi
10e8dc: 5f pop %edi
10e8dd: c9 leave
10e8de: c3 ret
0010e96c <IMFS_get_token>:
const char *path,
int pathlen,
char *token,
int *token_len
)
{
10e96c: 55 push %ebp
10e96d: 89 e5 mov %esp,%ebp
10e96f: 57 push %edi
10e970: 56 push %esi
10e971: 53 push %ebx
10e972: 83 ec 1c sub $0x1c,%esp
10e975: 8b 7d 08 mov 0x8(%ebp),%edi
10e978: 8b 75 10 mov 0x10(%ebp),%esi
register char c;
/*
* Copy a name into token. (Remember NULL is a token.)
*/
c = path[i];
10e97b: 8a 17 mov (%edi),%dl
10e97d: 31 db xor %ebx,%ebx
while ( (!IMFS_is_separator(c)) && (i < pathlen) && (i <= IMFS_NAME_MAX) ) {
10e97f: eb 16 jmp 10e997 <IMFS_get_token+0x2b>
token[i] = c;
10e981: 88 14 1e mov %dl,(%esi,%ebx,1)
if ( i == IMFS_NAME_MAX )
10e984: 83 fb 20 cmp $0x20,%ebx
10e987: 75 0a jne 10e993 <IMFS_get_token+0x27>
10e989: bf 04 00 00 00 mov $0x4,%edi
10e98e: e9 8c 00 00 00 jmp 10ea1f <IMFS_get_token+0xb3>
return IMFS_INVALID_TOKEN;
if ( !IMFS_is_valid_name_char(c) )
type = IMFS_INVALID_TOKEN;
c = path [++i];
10e993: 43 inc %ebx
10e994: 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) ) {
10e997: 83 ec 0c sub $0xc,%esp
10e99a: 0f be c2 movsbl %dl,%eax
10e99d: 50 push %eax
10e99e: 88 55 e4 mov %dl,-0x1c(%ebp)
10e9a1: e8 62 9a ff ff call 108408 <rtems_filesystem_is_separator>
10e9a6: 83 c4 10 add $0x10,%esp
10e9a9: 85 c0 test %eax,%eax
10e9ab: 8a 55 e4 mov -0x1c(%ebp),%dl
10e9ae: 75 05 jne 10e9b5 <IMFS_get_token+0x49>
10e9b0: 3b 5d 0c cmp 0xc(%ebp),%ebx
10e9b3: 7c cc jl 10e981 <IMFS_get_token+0x15>
/*
* Copy a seperator into token.
*/
if ( i == 0 ) {
10e9b5: 85 db test %ebx,%ebx
10e9b7: 75 19 jne 10e9d2 <IMFS_get_token+0x66>
token[i] = c;
10e9b9: 88 16 mov %dl,(%esi)
if ( (token[i] != '\0') && pathlen ) {
10e9bb: 84 d2 test %dl,%dl
10e9bd: 74 0f je 10e9ce <IMFS_get_token+0x62>
10e9bf: 83 7d 0c 00 cmpl $0x0,0xc(%ebp)
10e9c3: 74 09 je 10e9ce <IMFS_get_token+0x62>
10e9c5: bf 01 00 00 00 mov $0x1,%edi
10e9ca: b3 01 mov $0x1,%bl
10e9cc: eb 14 jmp 10e9e2 <IMFS_get_token+0x76>
10e9ce: 31 ff xor %edi,%edi
10e9d0: eb 10 jmp 10e9e2 <IMFS_get_token+0x76>
i++;
type = IMFS_CURRENT_DIR;
} else {
type = IMFS_NO_MORE_PATH;
}
} else if (token[ i-1 ] != '\0') {
10e9d2: bf 03 00 00 00 mov $0x3,%edi
10e9d7: 80 7c 1e ff 00 cmpb $0x0,-0x1(%esi,%ebx,1)
10e9dc: 74 04 je 10e9e2 <IMFS_get_token+0x76> <== NEVER TAKEN
token[i] = '\0';
10e9de: c6 04 1e 00 movb $0x0,(%esi,%ebx,1)
/*
* Set token_len to the number of characters copied.
*/
*token_len = i;
10e9e2: 8b 45 14 mov 0x14(%ebp),%eax
10e9e5: 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 ) {
10e9e7: 83 ff 03 cmp $0x3,%edi
10e9ea: 75 33 jne 10ea1f <IMFS_get_token+0xb3>
if ( strcmp( token, "..") == 0 )
10e9ec: 52 push %edx
10e9ed: 52 push %edx
10e9ee: 68 1f f5 11 00 push $0x11f51f
10e9f3: 56 push %esi
10e9f4: e8 e3 39 00 00 call 1123dc <strcmp>
10e9f9: 83 c4 10 add $0x10,%esp
10e9fc: 85 c0 test %eax,%eax
10e9fe: 75 06 jne 10ea06 <IMFS_get_token+0x9a>
10ea00: 66 bf 02 00 mov $0x2,%di
10ea04: eb 19 jmp 10ea1f <IMFS_get_token+0xb3>
type = IMFS_UP_DIR;
else if ( strcmp( token, "." ) == 0 )
10ea06: 50 push %eax
10ea07: 50 push %eax
10ea08: 68 20 f5 11 00 push $0x11f520
10ea0d: 56 push %esi
10ea0e: e8 c9 39 00 00 call 1123dc <strcmp>
10ea13: 83 c4 10 add $0x10,%esp
10ea16: 85 c0 test %eax,%eax
10ea18: 75 05 jne 10ea1f <IMFS_get_token+0xb3>
10ea1a: bf 01 00 00 00 mov $0x1,%edi
type = IMFS_CURRENT_DIR;
}
return type;
}
10ea1f: 89 f8 mov %edi,%eax
10ea21: 8d 65 f4 lea -0xc(%ebp),%esp
10ea24: 5b pop %ebx
10ea25: 5e pop %esi
10ea26: 5f pop %edi
10ea27: c9 leave
10ea28: 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 68 16 12 00 mov 0x121668,%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 2c 52 12 00 mov %eax,0x12522c
/*
* 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 21 70 00 00 call 10de65 <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 3c f3 11 00 mov $0x11f33c,%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 3c aa 00 00 call 1118c0 <__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 30 52 12 00 mov 0x125230,%edx
106e9b: 89 10 mov %edx,(%eax)
106e9d: 42 inc %edx
106e9e: 89 15 30 52 12 00 mov %edx,0x125230
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 34 67 00 00 call 10d5fa <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 d1 a9 00 00 call 1118c0 <__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 7a 00 00 call 10e96c <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 70 6f 00 00 call 10de98 <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 8c a9 00 00 call 1118c0 <__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
00110458 <IMFS_memfile_addblock>:
MEMFILE_STATIC int IMFS_memfile_addblock(
IMFS_jnode_t *the_jnode,
unsigned int block
)
{
110458: 55 push %ebp
110459: 89 e5 mov %esp,%ebp
11045b: 53 push %ebx
11045c: 83 ec 04 sub $0x4,%esp
11045f: 8b 45 08 mov 0x8(%ebp),%eax
block_p memory;
block_p *block_entry_ptr;
assert( the_jnode );
110462: 85 c0 test %eax,%eax
110464: 75 11 jne 110477 <IMFS_memfile_addblock+0x1f><== ALWAYS TAKEN
110466: 68 b4 f6 11 00 push $0x11f6b4 <== NOT EXECUTED
11046b: 68 60 f8 11 00 push $0x11f860 <== NOT EXECUTED
110470: 68 69 01 00 00 push $0x169 <== NOT EXECUTED
110475: eb 15 jmp 11048c <IMFS_memfile_addblock+0x34><== NOT EXECUTED
if ( !the_jnode )
rtems_set_errno_and_return_minus_one( EIO );
assert( the_jnode->type == IMFS_MEMORY_FILE );
110477: 83 78 4c 05 cmpl $0x5,0x4c(%eax)
11047b: 74 19 je 110496 <IMFS_memfile_addblock+0x3e><== ALWAYS TAKEN
11047d: 68 0b f7 11 00 push $0x11f70b <== NOT EXECUTED
110482: 68 60 f8 11 00 push $0x11f860 <== NOT EXECUTED
110487: 68 6d 01 00 00 push $0x16d <== NOT EXECUTED
11048c: 68 be f6 11 00 push $0x11f6be <== NOT EXECUTED
110491: e8 0a 6f 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 );
110496: 52 push %edx
110497: 6a 01 push $0x1
110499: ff 75 0c pushl 0xc(%ebp)
11049c: 50 push %eax
11049d: e8 90 fb ff ff call 110032 <IMFS_memfile_get_block_pointer>
1104a2: 89 c3 mov %eax,%ebx
if ( *block_entry_ptr )
1104a4: 83 c4 10 add $0x10,%esp
1104a7: 31 c0 xor %eax,%eax
1104a9: 83 3b 00 cmpl $0x0,(%ebx)
1104ac: 75 14 jne 1104c2 <IMFS_memfile_addblock+0x6a>
#if 0
fprintf(stdout, "%d %p", block, block_entry_ptr );
fflush(stdout);
#endif
memory = memfile_alloc_block();
1104ae: e8 5d fb ff ff call 110010 <memfile_alloc_block>
1104b3: 89 c2 mov %eax,%edx
if ( !memory )
1104b5: b8 01 00 00 00 mov $0x1,%eax
1104ba: 85 d2 test %edx,%edx
1104bc: 74 04 je 1104c2 <IMFS_memfile_addblock+0x6a><== NEVER TAKEN
return 1;
*block_entry_ptr = memory;
1104be: 89 13 mov %edx,(%ebx)
1104c0: 30 c0 xor %al,%al
return 0;
}
1104c2: 8b 5d fc mov -0x4(%ebp),%ebx
1104c5: c9 leave
1104c6: c3 ret
001104c7 <IMFS_memfile_extend>:
MEMFILE_STATIC int IMFS_memfile_extend(
IMFS_jnode_t *the_jnode,
off_t new_length
)
{
1104c7: 55 push %ebp
1104c8: 89 e5 mov %esp,%ebp
1104ca: 57 push %edi
1104cb: 56 push %esi
1104cc: 53 push %ebx
1104cd: 83 ec 2c sub $0x2c,%esp
1104d0: 8b 5d 08 mov 0x8(%ebp),%ebx
1104d3: 8b 75 0c mov 0xc(%ebp),%esi
1104d6: 8b 7d 10 mov 0x10(%ebp),%edi
/*
* Perform internal consistency checks
*/
assert( the_jnode );
1104d9: 85 db test %ebx,%ebx
1104db: 75 11 jne 1104ee <IMFS_memfile_extend+0x27><== ALWAYS TAKEN
1104dd: 68 b4 f6 11 00 push $0x11f6b4 <== NOT EXECUTED
1104e2: 68 78 f8 11 00 push $0x11f878 <== NOT EXECUTED
1104e7: 68 31 01 00 00 push $0x131 <== NOT EXECUTED
1104ec: eb 15 jmp 110503 <IMFS_memfile_extend+0x3c><== NOT EXECUTED
if ( !the_jnode )
rtems_set_errno_and_return_minus_one( EIO );
assert( the_jnode->type == IMFS_MEMORY_FILE );
1104ee: 83 7b 4c 05 cmpl $0x5,0x4c(%ebx)
1104f2: 74 19 je 11050d <IMFS_memfile_extend+0x46><== ALWAYS TAKEN
1104f4: 68 0b f7 11 00 push $0x11f70b <== NOT EXECUTED
1104f9: 68 78 f8 11 00 push $0x11f878 <== NOT EXECUTED
1104fe: 68 35 01 00 00 push $0x135 <== NOT EXECUTED
110503: 68 be f6 11 00 push $0x11f6be <== NOT EXECUTED
110508: e8 93 6e 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 )
11050d: a1 2c 52 12 00 mov 0x12522c,%eax
110512: 89 c1 mov %eax,%ecx
110514: c1 e9 02 shr $0x2,%ecx
110517: 8d 51 01 lea 0x1(%ecx),%edx
11051a: 0f af d1 imul %ecx,%edx
11051d: 42 inc %edx
11051e: 0f af d1 imul %ecx,%edx
110521: 4a dec %edx
110522: 0f af d0 imul %eax,%edx
110525: 83 ff 00 cmp $0x0,%edi
110528: 7c 16 jl 110540 <IMFS_memfile_extend+0x79><== NEVER TAKEN
11052a: 7f 04 jg 110530 <IMFS_memfile_extend+0x69><== NEVER TAKEN
11052c: 39 d6 cmp %edx,%esi
11052e: 72 10 jb 110540 <IMFS_memfile_extend+0x79><== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( EINVAL );
110530: e8 8b 13 00 00 call 1118c0 <__errno> <== NOT EXECUTED
110535: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
11053b: e9 92 00 00 00 jmp 1105d2 <IMFS_memfile_extend+0x10b><== NOT EXECUTED
if ( new_length <= the_jnode->info.file.size )
110540: 8b 53 50 mov 0x50(%ebx),%edx
110543: 8b 4b 54 mov 0x54(%ebx),%ecx
110546: 89 55 e0 mov %edx,-0x20(%ebp)
110549: 89 4d e4 mov %ecx,-0x1c(%ebp)
11054c: 39 cf cmp %ecx,%edi
11054e: 7f 0e jg 11055e <IMFS_memfile_extend+0x97><== NEVER TAKEN
110550: 0f 8c 8d 00 00 00 jl 1105e3 <IMFS_memfile_extend+0x11c><== NEVER TAKEN
110556: 39 d6 cmp %edx,%esi
110558: 0f 86 85 00 00 00 jbe 1105e3 <IMFS_memfile_extend+0x11c>
/*
* Calculate the number of range of blocks to allocate
*/
new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK;
11055e: 89 45 d8 mov %eax,-0x28(%ebp)
110561: 89 c1 mov %eax,%ecx
110563: c1 f9 1f sar $0x1f,%ecx
110566: 89 4d dc mov %ecx,-0x24(%ebp)
110569: ff 75 dc pushl -0x24(%ebp)
11056c: ff 75 d8 pushl -0x28(%ebp)
11056f: 57 push %edi
110570: 56 push %esi
110571: e8 e6 c3 00 00 call 11c95c <__divdi3>
110576: 83 c4 10 add $0x10,%esp
110579: 89 45 d4 mov %eax,-0x2c(%ebp)
old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK;
11057c: ff 75 dc pushl -0x24(%ebp)
11057f: ff 75 d8 pushl -0x28(%ebp)
110582: ff 75 e4 pushl -0x1c(%ebp)
110585: ff 75 e0 pushl -0x20(%ebp)
110588: e8 cf c3 00 00 call 11c95c <__divdi3>
11058d: 83 c4 10 add $0x10,%esp
110590: 89 45 e0 mov %eax,-0x20(%ebp)
110593: 89 c2 mov %eax,%edx
/*
* Now allocate each of those blocks.
*/
for ( block=old_blocks ; block<=new_blocks ; block++ ) {
110595: eb 41 jmp 1105d8 <IMFS_memfile_extend+0x111>
if ( IMFS_memfile_addblock( the_jnode, block ) ) {
110597: 50 push %eax
110598: 50 push %eax
110599: 52 push %edx
11059a: 53 push %ebx
11059b: 89 55 d0 mov %edx,-0x30(%ebp)
11059e: e8 b5 fe ff ff call 110458 <IMFS_memfile_addblock>
1105a3: 83 c4 10 add $0x10,%esp
1105a6: 85 c0 test %eax,%eax
1105a8: 8b 55 d0 mov -0x30(%ebp),%edx
1105ab: 74 2a je 1105d7 <IMFS_memfile_extend+0x110><== ALWAYS TAKEN
1105ad: eb 13 jmp 1105c2 <IMFS_memfile_extend+0xfb><== NOT EXECUTED
for ( ; block>=old_blocks ; block-- ) {
IMFS_memfile_remove_block( the_jnode, block );
1105af: 51 push %ecx <== NOT EXECUTED
1105b0: 51 push %ecx <== NOT EXECUTED
1105b1: 52 push %edx <== NOT EXECUTED
1105b2: 53 push %ebx <== NOT EXECUTED
1105b3: 89 55 d0 mov %edx,-0x30(%ebp) <== NOT EXECUTED
1105b6: e8 5c fc ff ff call 110217 <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-- ) {
1105bb: 8b 55 d0 mov -0x30(%ebp),%edx <== NOT EXECUTED
1105be: 4a dec %edx <== NOT EXECUTED
1105bf: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1105c2: 3b 55 e0 cmp -0x20(%ebp),%edx <== NOT EXECUTED
1105c5: 73 e8 jae 1105af <IMFS_memfile_extend+0xe8><== NOT EXECUTED
IMFS_memfile_remove_block( the_jnode, block );
}
rtems_set_errno_and_return_minus_one( ENOSPC );
1105c7: e8 f4 12 00 00 call 1118c0 <__errno> <== NOT EXECUTED
1105cc: c7 00 1c 00 00 00 movl $0x1c,(%eax) <== NOT EXECUTED
1105d2: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
1105d5: eb 0e jmp 1105e5 <IMFS_memfile_extend+0x11e><== NOT EXECUTED
/*
* Now allocate each of those blocks.
*/
for ( block=old_blocks ; block<=new_blocks ; block++ ) {
1105d7: 42 inc %edx
1105d8: 3b 55 d4 cmp -0x2c(%ebp),%edx
1105db: 76 ba jbe 110597 <IMFS_memfile_extend+0xd0>
/*
* Set the new length of the file.
*/
the_jnode->info.file.size = new_length;
1105dd: 89 73 50 mov %esi,0x50(%ebx)
1105e0: 89 7b 54 mov %edi,0x54(%ebx)
1105e3: 31 c0 xor %eax,%eax
return 0;
}
1105e5: 8d 65 f4 lea -0xc(%ebp),%esp
1105e8: 5b pop %ebx
1105e9: 5e pop %esi
1105ea: 5f pop %edi
1105eb: c9 leave
1105ec: c3 ret
00110032 <IMFS_memfile_get_block_pointer>:
#endif
IMFS_jnode_t *the_jnode,
unsigned int block,
int malloc_it
)
{
110032: 55 push %ebp
110033: 89 e5 mov %esp,%ebp
110035: 57 push %edi
110036: 56 push %esi
110037: 53 push %ebx
110038: 83 ec 1c sub $0x1c,%esp
11003b: 8b 5d 08 mov 0x8(%ebp),%ebx
11003e: 8b 7d 0c mov 0xc(%ebp),%edi
110041: 8b 75 10 mov 0x10(%ebp),%esi
/*
* Perform internal consistency checks
*/
assert( the_jnode );
110044: 85 db test %ebx,%ebx
110046: 75 11 jne 110059 <IMFS_memfile_get_block_pointer+0x27><== ALWAYS TAKEN
110048: 68 b4 f6 11 00 push $0x11f6b4 <== NOT EXECUTED
11004d: 68 c8 f7 11 00 push $0x11f7c8 <== NOT EXECUTED
110052: 68 88 03 00 00 push $0x388 <== NOT EXECUTED
110057: eb 15 jmp 11006e <IMFS_memfile_get_block_pointer+0x3c><== NOT EXECUTED
if ( !the_jnode )
return NULL;
assert( the_jnode->type == IMFS_MEMORY_FILE );
110059: 83 7b 4c 05 cmpl $0x5,0x4c(%ebx)
11005d: 74 19 je 110078 <IMFS_memfile_get_block_pointer+0x46><== ALWAYS TAKEN
11005f: 68 0b f7 11 00 push $0x11f70b <== NOT EXECUTED
110064: 68 c8 f7 11 00 push $0x11f7c8 <== NOT EXECUTED
110069: 68 8c 03 00 00 push $0x38c <== NOT EXECUTED
11006e: 68 be f6 11 00 push $0x11f6be <== NOT EXECUTED
110073: e8 28 73 ff ff call 1073a0 <__assert_func> <== NOT EXECUTED
/*
* Is the block number in the simple indirect portion?
*/
if ( my_block <= LAST_INDIRECT ) {
110078: 8b 0d 2c 52 12 00 mov 0x12522c,%ecx
11007e: c1 e9 02 shr $0x2,%ecx
110081: 8d 41 ff lea -0x1(%ecx),%eax
110084: 39 c7 cmp %eax,%edi
110086: 77 32 ja 1100ba <IMFS_memfile_get_block_pointer+0x88><== NEVER TAKEN
#if 0
fprintf(stdout, "(s %d) ", block );
fflush(stdout);
#endif
p = info->indirect;
110088: 8b 53 58 mov 0x58(%ebx),%edx
if ( malloc_it ) {
11008b: 85 f6 test %esi,%esi
11008d: 74 23 je 1100b2 <IMFS_memfile_get_block_pointer+0x80>
if ( !p ) {
11008f: 85 d2 test %edx,%edx
110091: 75 10 jne 1100a3 <IMFS_memfile_get_block_pointer+0x71>
p = memfile_alloc_block();
110093: e8 78 ff ff ff call 110010 <memfile_alloc_block>
if ( !p )
110098: 85 c0 test %eax,%eax
11009a: 0f 84 03 01 00 00 je 1101a3 <IMFS_memfile_get_block_pointer+0x171><== NEVER TAKEN
return 0;
info->indirect = p;
1100a0: 89 43 58 mov %eax,0x58(%ebx)
}
return &info->indirect[ my_block ];
1100a3: 8d 04 bd 00 00 00 00 lea 0x0(,%edi,4),%eax
1100aa: 03 43 58 add 0x58(%ebx),%eax
1100ad: e9 f3 00 00 00 jmp 1101a5 <IMFS_memfile_get_block_pointer+0x173>
}
if ( !p )
return 0;
return &info->indirect[ my_block ];
1100b2: 8d 04 ba lea (%edx,%edi,4),%eax
1100b5: e9 e5 00 00 00 jmp 11019f <IMFS_memfile_get_block_pointer+0x16d>
/*
* Is the block number in the doubly indirect portion?
*/
if ( my_block <= LAST_DOUBLY_INDIRECT ) {
1100ba: 8d 41 01 lea 0x1(%ecx),%eax <== NOT EXECUTED
1100bd: 0f af c1 imul %ecx,%eax <== NOT EXECUTED
1100c0: 8d 50 ff lea -0x1(%eax),%edx <== NOT EXECUTED
1100c3: 39 d7 cmp %edx,%edi <== NOT EXECUTED
1100c5: 77 58 ja 11011f <IMFS_memfile_get_block_pointer+0xed><== NOT EXECUTED
#if 0
fprintf(stdout, "(d %d) ", block );
fflush(stdout);
#endif
my_block -= FIRST_DOUBLY_INDIRECT;
1100c7: 29 cf sub %ecx,%edi <== NOT EXECUTED
singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;
1100c9: 89 f8 mov %edi,%eax <== NOT EXECUTED
1100cb: 31 d2 xor %edx,%edx <== NOT EXECUTED
1100cd: f7 f1 div %ecx <== NOT EXECUTED
1100cf: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED
1100d2: 89 c7 mov %eax,%edi <== NOT EXECUTED
doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;
p = info->doubly_indirect;
1100d4: 8b 43 5c mov 0x5c(%ebx),%eax <== NOT EXECUTED
if ( malloc_it ) {
1100d7: 85 f6 test %esi,%esi <== NOT EXECUTED
1100d9: 74 37 je 110112 <IMFS_memfile_get_block_pointer+0xe0><== NOT EXECUTED
if ( !p ) {
1100db: 85 c0 test %eax,%eax <== NOT EXECUTED
1100dd: 75 10 jne 1100ef <IMFS_memfile_get_block_pointer+0xbd><== NOT EXECUTED
p = memfile_alloc_block();
1100df: e8 2c ff ff ff call 110010 <memfile_alloc_block> <== NOT EXECUTED
if ( !p )
1100e4: 85 c0 test %eax,%eax <== NOT EXECUTED
1100e6: 0f 84 b7 00 00 00 je 1101a3 <IMFS_memfile_get_block_pointer+0x171><== NOT EXECUTED
return 0;
info->doubly_indirect = p;
1100ec: 89 43 5c mov %eax,0x5c(%ebx) <== NOT EXECUTED
}
p1 = (block_p *)p[ doubly ];
1100ef: 8d 1c b8 lea (%eax,%edi,4),%ebx <== NOT EXECUTED
1100f2: 8b 03 mov (%ebx),%eax <== NOT EXECUTED
if ( !p1 ) {
1100f4: 85 c0 test %eax,%eax <== NOT EXECUTED
1100f6: 75 0f jne 110107 <IMFS_memfile_get_block_pointer+0xd5><== NOT EXECUTED
p1 = memfile_alloc_block();
1100f8: e8 13 ff ff ff call 110010 <memfile_alloc_block> <== NOT EXECUTED
if ( !p1 )
1100fd: 85 c0 test %eax,%eax <== NOT EXECUTED
1100ff: 0f 84 9e 00 00 00 je 1101a3 <IMFS_memfile_get_block_pointer+0x171><== NOT EXECUTED
return 0;
p[ doubly ] = (block_p) p1;
110105: 89 03 mov %eax,(%ebx) <== NOT EXECUTED
}
return (block_p *)&p1[ singly ];
110107: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED
11010a: 8d 04 88 lea (%eax,%ecx,4),%eax <== NOT EXECUTED
11010d: e9 93 00 00 00 jmp 1101a5 <IMFS_memfile_get_block_pointer+0x173><== NOT EXECUTED
}
if ( !p )
110112: 85 c0 test %eax,%eax <== NOT EXECUTED
110114: 0f 84 89 00 00 00 je 1101a3 <IMFS_memfile_get_block_pointer+0x171><== NOT EXECUTED
return 0;
p = (block_p *)p[ doubly ];
11011a: 8b 14 b8 mov (%eax,%edi,4),%edx <== NOT EXECUTED
11011d: eb 7a jmp 110199 <IMFS_memfile_get_block_pointer+0x167><== NOT EXECUTED
#endif
/*
* Is the block number in the triply indirect portion?
*/
if ( my_block <= LAST_TRIPLY_INDIRECT ) {
11011f: 8d 50 01 lea 0x1(%eax),%edx <== NOT EXECUTED
110122: 0f af d1 imul %ecx,%edx <== NOT EXECUTED
110125: 4a dec %edx <== NOT EXECUTED
110126: 39 d7 cmp %edx,%edi <== NOT EXECUTED
110128: 77 79 ja 1101a3 <IMFS_memfile_get_block_pointer+0x171><== NOT EXECUTED
my_block -= FIRST_TRIPLY_INDIRECT;
11012a: 29 c7 sub %eax,%edi <== NOT EXECUTED
11012c: 89 f8 mov %edi,%eax <== NOT EXECUTED
singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;
11012e: 31 d2 xor %edx,%edx <== NOT EXECUTED
110130: f7 f1 div %ecx <== NOT EXECUTED
110132: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED
doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;
triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS;
110135: 31 d2 xor %edx,%edx <== NOT EXECUTED
110137: f7 f1 div %ecx <== NOT EXECUTED
110139: 89 55 e0 mov %edx,-0x20(%ebp) <== NOT EXECUTED
11013c: 89 c7 mov %eax,%edi <== NOT EXECUTED
doubly %= IMFS_MEMFILE_BLOCK_SLOTS;
p = info->triply_indirect;
11013e: 8b 43 60 mov 0x60(%ebx),%eax <== NOT EXECUTED
if ( malloc_it ) {
110141: 85 f6 test %esi,%esi <== NOT EXECUTED
110143: 74 43 je 110188 <IMFS_memfile_get_block_pointer+0x156><== NOT EXECUTED
if ( !p ) {
110145: 85 c0 test %eax,%eax <== NOT EXECUTED
110147: 75 0c jne 110155 <IMFS_memfile_get_block_pointer+0x123><== NOT EXECUTED
p = memfile_alloc_block();
110149: e8 c2 fe ff ff call 110010 <memfile_alloc_block> <== NOT EXECUTED
if ( !p )
11014e: 85 c0 test %eax,%eax <== NOT EXECUTED
110150: 74 51 je 1101a3 <IMFS_memfile_get_block_pointer+0x171><== NOT EXECUTED
return 0;
info->triply_indirect = p;
110152: 89 43 60 mov %eax,0x60(%ebx) <== NOT EXECUTED
}
p1 = (block_p *) p[ triply ];
110155: 8d 1c b8 lea (%eax,%edi,4),%ebx <== NOT EXECUTED
110158: 8b 03 mov (%ebx),%eax <== NOT EXECUTED
if ( !p1 ) {
11015a: 85 c0 test %eax,%eax <== NOT EXECUTED
11015c: 75 0b jne 110169 <IMFS_memfile_get_block_pointer+0x137><== NOT EXECUTED
p1 = memfile_alloc_block();
11015e: e8 ad fe ff ff call 110010 <memfile_alloc_block> <== NOT EXECUTED
if ( !p1 )
110163: 85 c0 test %eax,%eax <== NOT EXECUTED
110165: 74 3c je 1101a3 <IMFS_memfile_get_block_pointer+0x171><== NOT EXECUTED
return 0;
p[ triply ] = (block_p) p1;
110167: 89 03 mov %eax,(%ebx) <== NOT EXECUTED
}
p2 = (block_p *)p1[ doubly ];
110169: 8b 4d e0 mov -0x20(%ebp),%ecx <== NOT EXECUTED
11016c: 8d 1c 88 lea (%eax,%ecx,4),%ebx <== NOT EXECUTED
11016f: 8b 03 mov (%ebx),%eax <== NOT EXECUTED
if ( !p2 ) {
110171: 85 c0 test %eax,%eax <== NOT EXECUTED
110173: 75 0b jne 110180 <IMFS_memfile_get_block_pointer+0x14e><== NOT EXECUTED
p2 = memfile_alloc_block();
110175: e8 96 fe ff ff call 110010 <memfile_alloc_block> <== NOT EXECUTED
if ( !p2 )
11017a: 85 c0 test %eax,%eax <== NOT EXECUTED
11017c: 74 25 je 1101a3 <IMFS_memfile_get_block_pointer+0x171><== NOT EXECUTED
return 0;
p1[ doubly ] = (block_p) p2;
11017e: 89 03 mov %eax,(%ebx) <== NOT EXECUTED
}
return (block_p *)&p2[ singly ];
110180: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
110183: 8d 04 90 lea (%eax,%edx,4),%eax <== NOT EXECUTED
110186: eb 1d jmp 1101a5 <IMFS_memfile_get_block_pointer+0x173><== NOT EXECUTED
}
if ( !p )
110188: 85 c0 test %eax,%eax <== NOT EXECUTED
11018a: 74 17 je 1101a3 <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 ];
11018c: 8b 04 b8 mov (%eax,%edi,4),%eax <== NOT EXECUTED
if ( !p1 )
11018f: 85 c0 test %eax,%eax <== NOT EXECUTED
110191: 74 10 je 1101a3 <IMFS_memfile_get_block_pointer+0x171><== NOT EXECUTED
return 0;
p2 = (block_p *)p1[ doubly ];
110193: 8b 4d e0 mov -0x20(%ebp),%ecx <== NOT EXECUTED
110196: 8b 14 88 mov (%eax,%ecx,4),%edx <== NOT EXECUTED
if ( !p2 )
return 0;
return (block_p *)&p2[ singly ];
110199: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED
11019c: 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 )
11019f: 85 d2 test %edx,%edx
1101a1: 75 02 jne 1101a5 <IMFS_memfile_get_block_pointer+0x173><== ALWAYS TAKEN
return 0;
return (block_p *)&p2[ singly ];
1101a3: 31 c0 xor %eax,%eax
/*
* This means the requested block number is out of range.
*/
return 0;
}
1101a5: 8d 65 f4 lea -0xc(%ebp),%esp
1101a8: 5b pop %ebx
1101a9: 5e pop %esi
1101aa: 5f pop %edi
1101ab: c9 leave
1101ac: c3 ret
0011095e <IMFS_memfile_read>:
IMFS_jnode_t *the_jnode,
off_t start,
unsigned char *destination,
unsigned int length
)
{
11095e: 55 push %ebp
11095f: 89 e5 mov %esp,%ebp
110961: 57 push %edi
110962: 56 push %esi
110963: 53 push %ebx
110964: 83 ec 3c sub $0x3c,%esp
110967: 8b 75 0c mov 0xc(%ebp),%esi
11096a: 8b 7d 10 mov 0x10(%ebp),%edi
/*
* Perform internal consistency checks
*/
assert( the_jnode );
11096d: 83 7d 08 00 cmpl $0x0,0x8(%ebp)
110971: 75 11 jne 110984 <IMFS_memfile_read+0x26><== ALWAYS TAKEN
110973: 68 b4 f6 11 00 push $0x11f6b4 <== NOT EXECUTED
110978: 68 fc f7 11 00 push $0x11f7fc <== NOT EXECUTED
11097d: 68 4c 02 00 00 push $0x24c <== NOT EXECUTED
110982: eb 1d jmp 1109a1 <IMFS_memfile_read+0x43><== NOT EXECUTED
if ( !the_jnode )
rtems_set_errno_and_return_minus_one( EIO );
assert( the_jnode->type == IMFS_MEMORY_FILE ||
110984: 8b 55 08 mov 0x8(%ebp),%edx
110987: 8b 42 4c mov 0x4c(%edx),%eax
11098a: 8d 48 fb lea -0x5(%eax),%ecx
11098d: 83 f9 01 cmp $0x1,%ecx
110990: 76 19 jbe 1109ab <IMFS_memfile_read+0x4d><== ALWAYS TAKEN
110992: 68 75 f7 11 00 push $0x11f775 <== NOT EXECUTED
110997: 68 fc f7 11 00 push $0x11f7fc <== NOT EXECUTED
11099c: 68 51 02 00 00 push $0x251 <== NOT EXECUTED
1109a1: 68 be f6 11 00 push $0x11f6be <== NOT EXECUTED
1109a6: e8 f5 69 ff ff call 1073a0 <__assert_func> <== NOT EXECUTED
/*
* Error checks on arguments
*/
assert( dest );
1109ab: 83 7d 14 00 cmpl $0x0,0x14(%ebp)
1109af: 75 11 jne 1109c2 <IMFS_memfile_read+0x64><== ALWAYS TAKEN
1109b1: 68 c0 f7 11 00 push $0x11f7c0 <== NOT EXECUTED
1109b6: 68 fc f7 11 00 push $0x11f7fc <== NOT EXECUTED
1109bb: 68 5a 02 00 00 push $0x25a <== NOT EXECUTED
1109c0: eb df jmp 1109a1 <IMFS_memfile_read+0x43><== NOT EXECUTED
/*
* If there is nothing to read, then quick exit.
*/
my_length = length;
if ( !my_length )
1109c2: 83 7d 18 00 cmpl $0x0,0x18(%ebp)
1109c6: 75 13 jne 1109db <IMFS_memfile_read+0x7d><== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( EINVAL );
1109c8: e8 f3 0e 00 00 call 1118c0 <__errno> <== NOT EXECUTED
1109cd: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
1109d3: 83 ca ff or $0xffffffff,%edx <== NOT EXECUTED
1109d6: e9 d0 01 00 00 jmp 110bab <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) {
1109db: 83 f8 06 cmp $0x6,%eax
1109de: 75 64 jne 110a44 <IMFS_memfile_read+0xe6><== ALWAYS TAKEN
unsigned char *file_ptr;
file_ptr = (unsigned char *)the_jnode->info.linearfile.direct;
1109e0: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
1109e3: 8b 49 58 mov 0x58(%ecx),%ecx <== NOT EXECUTED
1109e6: 89 4d c8 mov %ecx,-0x38(%ebp) <== NOT EXECUTED
if (my_length > (the_jnode->info.linearfile.size - start))
1109e9: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
1109ec: 8b 48 50 mov 0x50(%eax),%ecx <== NOT EXECUTED
1109ef: 8b 58 54 mov 0x54(%eax),%ebx <== NOT EXECUTED
1109f2: 89 c8 mov %ecx,%eax <== NOT EXECUTED
1109f4: 89 da mov %ebx,%edx <== NOT EXECUTED
1109f6: 29 f0 sub %esi,%eax <== NOT EXECUTED
1109f8: 19 fa sbb %edi,%edx <== NOT EXECUTED
1109fa: 89 45 d0 mov %eax,-0x30(%ebp) <== NOT EXECUTED
1109fd: 89 55 d4 mov %edx,-0x2c(%ebp) <== NOT EXECUTED
110a00: 31 c0 xor %eax,%eax <== NOT EXECUTED
110a02: 39 d0 cmp %edx,%eax <== NOT EXECUTED
110a04: 7f 0f jg 110a15 <IMFS_memfile_read+0xb7><== NOT EXECUTED
110a06: 7c 08 jl 110a10 <IMFS_memfile_read+0xb2><== NOT EXECUTED
110a08: 8b 55 d0 mov -0x30(%ebp),%edx <== NOT EXECUTED
110a0b: 39 55 18 cmp %edx,0x18(%ebp) <== NOT EXECUTED
110a0e: 77 05 ja 110a15 <IMFS_memfile_read+0xb7><== NOT EXECUTED
110a10: 8b 55 18 mov 0x18(%ebp),%edx <== NOT EXECUTED
110a13: eb 04 jmp 110a19 <IMFS_memfile_read+0xbb><== NOT EXECUTED
my_length = the_jnode->info.linearfile.size - start;
110a15: 89 ca mov %ecx,%edx <== NOT EXECUTED
110a17: 29 f2 sub %esi,%edx <== NOT EXECUTED
memcpy(dest, &file_ptr[start], my_length);
110a19: 03 75 c8 add -0x38(%ebp),%esi <== NOT EXECUTED
110a1c: 8b 7d 14 mov 0x14(%ebp),%edi <== NOT EXECUTED
110a1f: 89 d1 mov %edx,%ecx <== NOT EXECUTED
110a21: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
IMFS_update_atime( the_jnode );
110a23: 51 push %ecx <== NOT EXECUTED
110a24: 51 push %ecx <== NOT EXECUTED
110a25: 6a 00 push $0x0 <== NOT EXECUTED
110a27: 8d 45 e0 lea -0x20(%ebp),%eax <== NOT EXECUTED
110a2a: 50 push %eax <== NOT EXECUTED
110a2b: 89 55 c0 mov %edx,-0x40(%ebp) <== NOT EXECUTED
110a2e: e8 e1 6c ff ff call 107714 <gettimeofday> <== NOT EXECUTED
110a33: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
110a36: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
110a39: 89 41 40 mov %eax,0x40(%ecx) <== NOT EXECUTED
return my_length;
110a3c: 8b 55 c0 mov -0x40(%ebp),%edx <== NOT EXECUTED
110a3f: e9 64 01 00 00 jmp 110ba8 <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;
110a44: 89 f0 mov %esi,%eax
if ( last_byte > the_jnode->info.file.size )
110a46: 8b 55 08 mov 0x8(%ebp),%edx
110a49: 8b 5a 50 mov 0x50(%edx),%ebx
110a4c: 8b 4d 18 mov 0x18(%ebp),%ecx
110a4f: 01 f1 add %esi,%ecx
110a51: 89 4d d0 mov %ecx,-0x30(%ebp)
110a54: 31 c9 xor %ecx,%ecx
110a56: 3b 4a 54 cmp 0x54(%edx),%ecx
110a59: 7f 0f jg 110a6a <IMFS_memfile_read+0x10c><== NEVER TAKEN
110a5b: 7c 05 jl 110a62 <IMFS_memfile_read+0x104><== NEVER TAKEN
110a5d: 39 5d d0 cmp %ebx,-0x30(%ebp)
110a60: 77 08 ja 110a6a <IMFS_memfile_read+0x10c>
110a62: 8b 45 18 mov 0x18(%ebp),%eax
110a65: 89 45 d0 mov %eax,-0x30(%ebp)
110a68: eb 05 jmp 110a6f <IMFS_memfile_read+0x111>
my_length = the_jnode->info.file.size - start;
110a6a: 29 c3 sub %eax,%ebx
110a6c: 89 5d d0 mov %ebx,-0x30(%ebp)
/*
* Phase 1: possibly the last part of one block
*/
start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;
110a6f: 8b 15 2c 52 12 00 mov 0x12522c,%edx
110a75: 89 55 c4 mov %edx,-0x3c(%ebp)
110a78: 89 d0 mov %edx,%eax
110a7a: 99 cltd
110a7b: 89 d3 mov %edx,%ebx
110a7d: 52 push %edx
110a7e: 50 push %eax
110a7f: 57 push %edi
110a80: 56 push %esi
110a81: 89 45 c0 mov %eax,-0x40(%ebp)
110a84: e8 23 c0 00 00 call 11caac <__moddi3>
110a89: 83 c4 10 add $0x10,%esp
110a8c: 89 45 c8 mov %eax,-0x38(%ebp)
block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;
110a8f: 8b 4d c0 mov -0x40(%ebp),%ecx
110a92: 53 push %ebx
110a93: 51 push %ecx
110a94: 57 push %edi
110a95: 56 push %esi
110a96: e8 c1 be 00 00 call 11c95c <__divdi3>
110a9b: 83 c4 10 add $0x10,%esp
110a9e: 89 c3 mov %eax,%ebx
if ( start_offset ) {
110aa0: 83 7d c8 00 cmpl $0x0,-0x38(%ebp)
110aa4: 75 0f jne 110ab5 <IMFS_memfile_read+0x157>
110aa6: 8b 55 14 mov 0x14(%ebp),%edx
110aa9: 89 55 c8 mov %edx,-0x38(%ebp)
110aac: c7 45 cc 00 00 00 00 movl $0x0,-0x34(%ebp)
110ab3: eb 4c jmp 110b01 <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 );
110ab5: 50 push %eax
110ab6: 6a 00 push $0x0
110ab8: 53 push %ebx
110ab9: ff 75 08 pushl 0x8(%ebp)
110abc: e8 71 f5 ff ff call 110032 <IMFS_memfile_get_block_pointer>
assert( block_ptr );
110ac1: 83 c4 10 add $0x10,%esp
110ac4: 85 c0 test %eax,%eax
110ac6: 75 14 jne 110adc <IMFS_memfile_read+0x17e><== ALWAYS TAKEN
110ac8: 68 3b f7 11 00 push $0x11f73b <== NOT EXECUTED
110acd: 68 fc f7 11 00 push $0x11f7fc <== NOT EXECUTED
110ad2: 68 96 02 00 00 push $0x296 <== NOT EXECUTED
110ad7: e9 c5 fe ff ff jmp 1109a1 <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;
110adc: 8b 4d c4 mov -0x3c(%ebp),%ecx
110adf: 2b 4d c8 sub -0x38(%ebp),%ecx
110ae2: 8b 55 d0 mov -0x30(%ebp),%edx
110ae5: 39 ca cmp %ecx,%edx
110ae7: 76 02 jbe 110aeb <IMFS_memfile_read+0x18d>
110ae9: 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 );
110aeb: 8b 75 c8 mov -0x38(%ebp),%esi
110aee: 03 30 add (%eax),%esi
dest += to_copy;
110af0: 8b 7d 14 mov 0x14(%ebp),%edi
110af3: 89 d1 mov %edx,%ecx
110af5: f3 a4 rep movsb %ds:(%esi),%es:(%edi)
110af7: 89 7d c8 mov %edi,-0x38(%ebp)
block++;
110afa: 43 inc %ebx
my_length -= to_copy;
110afb: 29 55 d0 sub %edx,-0x30(%ebp)
110afe: 89 55 cc mov %edx,-0x34(%ebp)
/*
* Phase 2: all of zero of more blocks
*/
to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;
110b01: 8b 15 2c 52 12 00 mov 0x12522c,%edx
while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {
110b07: eb 40 jmp 110b49 <IMFS_memfile_read+0x1eb>
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
110b09: 57 push %edi
110b0a: 6a 00 push $0x0
110b0c: 53 push %ebx
110b0d: ff 75 08 pushl 0x8(%ebp)
110b10: 89 55 c0 mov %edx,-0x40(%ebp)
110b13: e8 1a f5 ff ff call 110032 <IMFS_memfile_get_block_pointer>
assert( block_ptr );
110b18: 83 c4 10 add $0x10,%esp
110b1b: 85 c0 test %eax,%eax
110b1d: 8b 55 c0 mov -0x40(%ebp),%edx
110b20: 75 14 jne 110b36 <IMFS_memfile_read+0x1d8><== ALWAYS TAKEN
110b22: 68 3b f7 11 00 push $0x11f73b <== NOT EXECUTED
110b27: 68 fc f7 11 00 push $0x11f7fc <== NOT EXECUTED
110b2c: 68 a7 02 00 00 push $0x2a7 <== NOT EXECUTED
110b31: e9 6b fe ff ff jmp 1109a1 <IMFS_memfile_read+0x43><== NOT EXECUTED
if ( !block_ptr )
return copied;
memcpy( dest, &(*block_ptr)[ 0 ], to_copy );
110b36: 8b 30 mov (%eax),%esi
110b38: 8b 7d c8 mov -0x38(%ebp),%edi
110b3b: 89 d1 mov %edx,%ecx
110b3d: f3 a4 rep movsb %ds:(%esi),%es:(%edi)
dest += to_copy;
110b3f: 89 7d c8 mov %edi,-0x38(%ebp)
block++;
110b42: 43 inc %ebx
my_length -= to_copy;
110b43: 29 55 d0 sub %edx,-0x30(%ebp)
copied += to_copy;
110b46: 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 ) {
110b49: 8b 45 d0 mov -0x30(%ebp),%eax
110b4c: 3b 05 2c 52 12 00 cmp 0x12522c,%eax
110b52: 73 b5 jae 110b09 <IMFS_memfile_read+0x1ab>
* Phase 3: possibly the first part of one block
*/
assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK );
if ( my_length ) {
110b54: 85 c0 test %eax,%eax
110b56: 74 37 je 110b8f <IMFS_memfile_read+0x231>
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
110b58: 56 push %esi
110b59: 6a 00 push $0x0
110b5b: 53 push %ebx
110b5c: ff 75 08 pushl 0x8(%ebp)
110b5f: e8 ce f4 ff ff call 110032 <IMFS_memfile_get_block_pointer>
assert( block_ptr );
110b64: 83 c4 10 add $0x10,%esp
110b67: 85 c0 test %eax,%eax
110b69: 75 14 jne 110b7f <IMFS_memfile_read+0x221><== ALWAYS TAKEN
110b6b: 68 3b f7 11 00 push $0x11f73b <== NOT EXECUTED
110b70: 68 fc f7 11 00 push $0x11f7fc <== NOT EXECUTED
110b75: 68 b9 02 00 00 push $0x2b9 <== NOT EXECUTED
110b7a: e9 22 fe ff ff jmp 1109a1 <IMFS_memfile_read+0x43><== NOT EXECUTED
if ( !block_ptr )
return copied;
memcpy( dest, &(*block_ptr)[ 0 ], my_length );
110b7f: 8b 30 mov (%eax),%esi
110b81: 8b 7d c8 mov -0x38(%ebp),%edi
110b84: 8b 4d d0 mov -0x30(%ebp),%ecx
110b87: f3 a4 rep movsb %ds:(%esi),%es:(%edi)
copied += my_length;
110b89: 8b 55 d0 mov -0x30(%ebp),%edx
110b8c: 01 55 cc add %edx,-0x34(%ebp)
}
IMFS_update_atime( the_jnode );
110b8f: 53 push %ebx
110b90: 53 push %ebx
110b91: 6a 00 push $0x0
110b93: 8d 45 e0 lea -0x20(%ebp),%eax
110b96: 50 push %eax
110b97: e8 78 6b ff ff call 107714 <gettimeofday>
110b9c: 8b 45 e0 mov -0x20(%ebp),%eax
110b9f: 8b 4d 08 mov 0x8(%ebp),%ecx
110ba2: 89 41 40 mov %eax,0x40(%ecx)
return copied;
110ba5: 8b 55 cc mov -0x34(%ebp),%edx
110ba8: 83 c4 10 add $0x10,%esp
}
110bab: 89 d0 mov %edx,%eax
110bad: 8d 65 f4 lea -0xc(%ebp),%esp
110bb0: 5b pop %ebx
110bb1: 5e pop %esi
110bb2: 5f pop %edi
110bb3: c9 leave
110bb4: c3 ret
00110262 <IMFS_memfile_remove>:
*/
int IMFS_memfile_remove(
IMFS_jnode_t *the_jnode
)
{
110262: 55 push %ebp
110263: 89 e5 mov %esp,%ebp
110265: 57 push %edi
110266: 56 push %esi
110267: 53 push %ebx
110268: 83 ec 1c sub $0x1c,%esp
11026b: 8b 5d 08 mov 0x8(%ebp),%ebx
/*
* Perform internal consistency checks
*/
assert( the_jnode );
11026e: 85 db test %ebx,%ebx
110270: 75 11 jne 110283 <IMFS_memfile_remove+0x21><== ALWAYS TAKEN
110272: 68 b4 f6 11 00 push $0x11f6b4 <== NOT EXECUTED
110277: 68 10 f8 11 00 push $0x11f810 <== NOT EXECUTED
11027c: 68 ee 01 00 00 push $0x1ee <== NOT EXECUTED
110281: eb 15 jmp 110298 <IMFS_memfile_remove+0x36><== NOT EXECUTED
if ( !the_jnode )
rtems_set_errno_and_return_minus_one( EIO );
assert( the_jnode->type == IMFS_MEMORY_FILE );
110283: 83 7b 4c 05 cmpl $0x5,0x4c(%ebx)
110287: 74 19 je 1102a2 <IMFS_memfile_remove+0x40><== ALWAYS TAKEN
110289: 68 0b f7 11 00 push $0x11f70b <== NOT EXECUTED
11028e: 68 10 f8 11 00 push $0x11f810 <== NOT EXECUTED
110293: 68 f2 01 00 00 push $0x1f2 <== NOT EXECUTED
110298: 68 be f6 11 00 push $0x11f6be <== NOT EXECUTED
11029d: e8 fe 70 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;
1102a2: 8b 35 2c 52 12 00 mov 0x12522c,%esi
1102a8: c1 ee 02 shr $0x2,%esi
* + indirect
* + doubly indirect
* + triply indirect
*/
info = &the_jnode->info.file;
1102ab: 83 7b 58 00 cmpl $0x0,0x58(%ebx)
1102af: 74 0f je 1102c0 <IMFS_memfile_remove+0x5e>
if ( info->indirect ) {
memfile_free_blocks_in_table( &info->indirect, to_free );
1102b1: 57 push %edi
1102b2: 57 push %edi
1102b3: 56 push %esi
1102b4: 8d 43 58 lea 0x58(%ebx),%eax
1102b7: 50 push %eax
1102b8: e8 f0 fe ff ff call 1101ad <memfile_free_blocks_in_table>
1102bd: 83 c4 10 add $0x10,%esp
* + indirect
* + doubly indirect
* + triply indirect
*/
info = &the_jnode->info.file;
1102c0: 31 ff xor %edi,%edi
1102c2: 83 7b 5c 00 cmpl $0x0,0x5c(%ebx)
1102c6: 75 21 jne 1102e9 <IMFS_memfile_remove+0x87><== NEVER TAKEN
1102c8: eb 3a jmp 110304 <IMFS_memfile_remove+0xa2>
}
if ( info->doubly_indirect ) {
for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {
if ( info->doubly_indirect[i] ) {
1102ca: 8b 43 5c mov 0x5c(%ebx),%eax <== NOT EXECUTED
1102cd: 8d 14 bd 00 00 00 00 lea 0x0(,%edi,4),%edx <== NOT EXECUTED
1102d4: 83 3c b8 00 cmpl $0x0,(%eax,%edi,4) <== NOT EXECUTED
1102d8: 74 0e je 1102e8 <IMFS_memfile_remove+0x86><== NOT EXECUTED
memfile_free_blocks_in_table(
1102da: 51 push %ecx <== NOT EXECUTED
1102db: 51 push %ecx <== NOT EXECUTED
1102dc: 56 push %esi <== NOT EXECUTED
1102dd: 01 d0 add %edx,%eax <== NOT EXECUTED
1102df: 50 push %eax <== NOT EXECUTED
1102e0: e8 c8 fe ff ff call 1101ad <memfile_free_blocks_in_table><== NOT EXECUTED
1102e5: 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++ ) {
1102e8: 47 inc %edi <== NOT EXECUTED
1102e9: a1 2c 52 12 00 mov 0x12522c,%eax <== NOT EXECUTED
1102ee: c1 e8 02 shr $0x2,%eax <== NOT EXECUTED
1102f1: 39 c7 cmp %eax,%edi <== NOT EXECUTED
1102f3: 72 d5 jb 1102ca <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 );
1102f5: 57 push %edi <== NOT EXECUTED
1102f6: 57 push %edi <== NOT EXECUTED
1102f7: 56 push %esi <== NOT EXECUTED
1102f8: 8d 43 5c lea 0x5c(%ebx),%eax <== NOT EXECUTED
1102fb: 50 push %eax <== NOT EXECUTED
1102fc: e8 ac fe ff ff call 1101ad <memfile_free_blocks_in_table><== NOT EXECUTED
110301: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
* + indirect
* + doubly indirect
* + triply indirect
*/
info = &the_jnode->info.file;
110304: 31 ff xor %edi,%edi
110306: 83 7b 60 00 cmpl $0x0,0x60(%ebx)
11030a: 75 5b jne 110367 <IMFS_memfile_remove+0x105><== NEVER TAKEN
11030c: eb 74 jmp 110382 <IMFS_memfile_remove+0x120>
11030e: 8d 04 bd 00 00 00 00 lea 0x0(,%edi,4),%eax <== NOT EXECUTED
110315: 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];
110318: 8b 43 60 mov 0x60(%ebx),%eax <== NOT EXECUTED
11031b: 8b 04 b8 mov (%eax,%edi,4),%eax <== NOT EXECUTED
if ( !p ) /* ensure we have a valid pointer */
11031e: 85 c0 test %eax,%eax <== NOT EXECUTED
110320: 74 51 je 110373 <IMFS_memfile_remove+0x111><== NOT EXECUTED
110322: 31 d2 xor %edx,%edx <== NOT EXECUTED
110324: eb 21 jmp 110347 <IMFS_memfile_remove+0xe5><== NOT EXECUTED
break;
for ( j=0 ; j<IMFS_MEMFILE_BLOCK_SLOTS ; j++ ) {
if ( p[j] ) {
110326: 83 38 00 cmpl $0x0,(%eax) <== NOT EXECUTED
110329: 74 18 je 110343 <IMFS_memfile_remove+0xe1><== NOT EXECUTED
memfile_free_blocks_in_table( (block_p **)&p[j], to_free);
11032b: 51 push %ecx <== NOT EXECUTED
11032c: 51 push %ecx <== NOT EXECUTED
11032d: 56 push %esi <== NOT EXECUTED
11032e: 50 push %eax <== NOT EXECUTED
11032f: 89 45 e0 mov %eax,-0x20(%ebp) <== NOT EXECUTED
110332: 89 55 dc mov %edx,-0x24(%ebp) <== NOT EXECUTED
110335: e8 73 fe ff ff call 1101ad <memfile_free_blocks_in_table><== NOT EXECUTED
11033a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
11033d: 8b 55 dc mov -0x24(%ebp),%edx <== NOT EXECUTED
110340: 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++ ) {
110343: 42 inc %edx <== NOT EXECUTED
110344: 83 c0 04 add $0x4,%eax <== NOT EXECUTED
110347: 8b 0d 2c 52 12 00 mov 0x12522c,%ecx <== NOT EXECUTED
11034d: c1 e9 02 shr $0x2,%ecx <== NOT EXECUTED
110350: 39 ca cmp %ecx,%edx <== NOT EXECUTED
110352: 72 d2 jb 110326 <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(
110354: 52 push %edx <== NOT EXECUTED
110355: 52 push %edx <== NOT EXECUTED
110356: 56 push %esi <== NOT EXECUTED
110357: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
11035a: 03 43 60 add 0x60(%ebx),%eax <== NOT EXECUTED
11035d: 50 push %eax <== NOT EXECUTED
11035e: e8 4a fe ff ff call 1101ad <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++ ) {
110363: 47 inc %edi <== NOT EXECUTED
110364: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
110367: a1 2c 52 12 00 mov 0x12522c,%eax <== NOT EXECUTED
11036c: c1 e8 02 shr $0x2,%eax <== NOT EXECUTED
11036f: 39 c7 cmp %eax,%edi <== NOT EXECUTED
110371: 72 9b jb 11030e <IMFS_memfile_remove+0xac><== NOT EXECUTED
}
}
memfile_free_blocks_in_table(
(block_p **)&info->triply_indirect[i], to_free );
}
memfile_free_blocks_in_table(
110373: 50 push %eax <== NOT EXECUTED
110374: 50 push %eax <== NOT EXECUTED
110375: 56 push %esi <== NOT EXECUTED
110376: 83 c3 60 add $0x60,%ebx <== NOT EXECUTED
110379: 53 push %ebx <== NOT EXECUTED
11037a: e8 2e fe ff ff call 1101ad <memfile_free_blocks_in_table><== NOT EXECUTED
11037f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
(block_p **)&info->triply_indirect, to_free );
}
return 0;
}
110382: 31 c0 xor %eax,%eax
110384: 8d 65 f4 lea -0xc(%ebp),%esp
110387: 5b pop %ebx
110388: 5e pop %esi
110389: 5f pop %edi
11038a: c9 leave
11038b: c3 ret
00110217 <IMFS_memfile_remove_block>:
MEMFILE_STATIC int IMFS_memfile_remove_block(
IMFS_jnode_t *the_jnode,
unsigned int block
)
{
110217: 55 push %ebp <== NOT EXECUTED
110218: 89 e5 mov %esp,%ebp <== NOT EXECUTED
11021a: 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 );
11021d: 6a 00 push $0x0 <== NOT EXECUTED
11021f: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
110222: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
110225: e8 08 fe ff ff call 110032 <IMFS_memfile_get_block_pointer><== NOT EXECUTED
assert( block_ptr );
11022a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
11022d: 85 c0 test %eax,%eax <== NOT EXECUTED
11022f: 75 19 jne 11024a <IMFS_memfile_remove_block+0x33><== NOT EXECUTED
110231: 68 3b f7 11 00 push $0x11f73b <== NOT EXECUTED
110236: 68 44 f8 11 00 push $0x11f844 <== NOT EXECUTED
11023b: 68 96 01 00 00 push $0x196 <== NOT EXECUTED
110240: 68 be f6 11 00 push $0x11f6be <== NOT EXECUTED
110245: e8 56 71 ff ff call 1073a0 <__assert_func> <== NOT EXECUTED
if ( block_ptr ) {
ptr = *block_ptr;
11024a: 8b 10 mov (%eax),%edx <== NOT EXECUTED
*block_ptr = 0;
11024c: c7 00 00 00 00 00 movl $0x0,(%eax) <== NOT EXECUTED
memfile_free_block( ptr );
110252: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
110255: 52 push %edx <== NOT EXECUTED
110256: e8 9c fd ff ff call 10fff7 <memfile_free_block> <== NOT EXECUTED
}
return 1;
}
11025b: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
110260: c9 leave <== NOT EXECUTED
110261: c3 ret <== NOT EXECUTED
001106aa <IMFS_memfile_write>:
IMFS_jnode_t *the_jnode,
off_t start,
const unsigned char *source,
unsigned int length
)
{
1106aa: 55 push %ebp
1106ab: 89 e5 mov %esp,%ebp
1106ad: 57 push %edi
1106ae: 56 push %esi
1106af: 53 push %ebx
1106b0: 83 ec 3c sub $0x3c,%esp
1106b3: 8b 75 0c mov 0xc(%ebp),%esi
1106b6: 8b 7d 10 mov 0x10(%ebp),%edi
/*
* Perform internal consistency checks
*/
assert( the_jnode );
1106b9: 83 7d 08 00 cmpl $0x0,0x8(%ebp)
1106bd: 75 11 jne 1106d0 <IMFS_memfile_write+0x26><== ALWAYS TAKEN
1106bf: 68 b4 f6 11 00 push $0x11f6b4 <== NOT EXECUTED
1106c4: 68 e8 f7 11 00 push $0x11f7e8 <== NOT EXECUTED
1106c9: 68 e3 02 00 00 push $0x2e3 <== NOT EXECUTED
1106ce: eb 18 jmp 1106e8 <IMFS_memfile_write+0x3e><== NOT EXECUTED
if ( !the_jnode )
rtems_set_errno_and_return_minus_one( EIO );
assert( the_jnode->type == IMFS_MEMORY_FILE );
1106d0: 8b 45 08 mov 0x8(%ebp),%eax
1106d3: 83 78 4c 05 cmpl $0x5,0x4c(%eax)
1106d7: 74 19 je 1106f2 <IMFS_memfile_write+0x48><== ALWAYS TAKEN
1106d9: 68 0b f7 11 00 push $0x11f70b <== NOT EXECUTED
1106de: 68 e8 f7 11 00 push $0x11f7e8 <== NOT EXECUTED
1106e3: 68 e7 02 00 00 push $0x2e7 <== NOT EXECUTED
1106e8: 68 be f6 11 00 push $0x11f6be <== NOT EXECUTED
1106ed: e8 ae 6c ff ff call 1073a0 <__assert_func> <== NOT EXECUTED
/*
* Error check arguments
*/
assert( source );
1106f2: 83 7d 14 00 cmpl $0x0,0x14(%ebp)
1106f6: 75 11 jne 110709 <IMFS_memfile_write+0x5f><== ALWAYS TAKEN
1106f8: 68 45 f7 11 00 push $0x11f745 <== NOT EXECUTED
1106fd: 68 e8 f7 11 00 push $0x11f7e8 <== NOT EXECUTED
110702: 68 ef 02 00 00 push $0x2ef <== NOT EXECUTED
110707: eb df jmp 1106e8 <IMFS_memfile_write+0x3e><== NOT EXECUTED
/*
* If there is nothing to write, then quick exit.
*/
my_length = length;
if ( !my_length )
110709: 83 7d 18 00 cmpl $0x0,0x18(%ebp)
11070d: 75 0d jne 11071c <IMFS_memfile_write+0x72><== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( EINVAL );
11070f: e8 ac 11 00 00 call 1118c0 <__errno> <== NOT EXECUTED
110714: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
11071a: eb 33 jmp 11074f <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 ) {
11071c: 8b 45 18 mov 0x18(%ebp),%eax
11071f: 01 f0 add %esi,%eax
110721: 31 d2 xor %edx,%edx
110723: 8b 4d 08 mov 0x8(%ebp),%ecx
110726: 3b 51 54 cmp 0x54(%ecx),%edx
110729: 7c 2c jl 110757 <IMFS_memfile_write+0xad><== NEVER TAKEN
11072b: 7f 05 jg 110732 <IMFS_memfile_write+0x88><== NEVER TAKEN
11072d: 3b 41 50 cmp 0x50(%ecx),%eax
110730: 76 25 jbe 110757 <IMFS_memfile_write+0xad><== NEVER TAKEN
status = IMFS_memfile_extend( the_jnode, last_byte );
110732: 51 push %ecx
110733: 52 push %edx
110734: 50 push %eax
110735: ff 75 08 pushl 0x8(%ebp)
110738: e8 8a fd ff ff call 1104c7 <IMFS_memfile_extend>
if ( status )
11073d: 83 c4 10 add $0x10,%esp
110740: 85 c0 test %eax,%eax
110742: 74 13 je 110757 <IMFS_memfile_write+0xad><== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( ENOSPC );
110744: e8 77 11 00 00 call 1118c0 <__errno> <== NOT EXECUTED
110749: c7 00 1c 00 00 00 movl $0x1c,(%eax) <== NOT EXECUTED
11074f: 83 cb ff or $0xffffffff,%ebx <== NOT EXECUTED
110752: e9 3b 01 00 00 jmp 110892 <IMFS_memfile_write+0x1e8><== NOT EXECUTED
/*
* Phase 1: possibly the last part of one block
*/
start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;
110757: a1 2c 52 12 00 mov 0x12522c,%eax
11075c: 89 45 c8 mov %eax,-0x38(%ebp)
11075f: 99 cltd
110760: 89 d3 mov %edx,%ebx
110762: 52 push %edx
110763: 50 push %eax
110764: 57 push %edi
110765: 56 push %esi
110766: 89 45 c4 mov %eax,-0x3c(%ebp)
110769: e8 3e c3 00 00 call 11caac <__moddi3>
11076e: 83 c4 10 add $0x10,%esp
110771: 89 45 cc mov %eax,-0x34(%ebp)
block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;
110774: 8b 4d c4 mov -0x3c(%ebp),%ecx
110777: 53 push %ebx
110778: 51 push %ecx
110779: 57 push %edi
11077a: 56 push %esi
11077b: e8 dc c1 00 00 call 11c95c <__divdi3>
110780: 83 c4 10 add $0x10,%esp
110783: 89 45 d0 mov %eax,-0x30(%ebp)
if ( start_offset ) {
110786: 83 7d cc 00 cmpl $0x0,-0x34(%ebp)
11078a: 75 0d jne 110799 <IMFS_memfile_write+0xef>
11078c: 8b 75 14 mov 0x14(%ebp),%esi
11078f: 8b 55 18 mov 0x18(%ebp),%edx
110792: 89 55 d4 mov %edx,-0x2c(%ebp)
110795: 31 db xor %ebx,%ebx
110797: eb 52 jmp 1107eb <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 );
110799: 50 push %eax
11079a: 6a 00 push $0x0
11079c: ff 75 d0 pushl -0x30(%ebp)
11079f: ff 75 08 pushl 0x8(%ebp)
1107a2: e8 8b f8 ff ff call 110032 <IMFS_memfile_get_block_pointer>
assert( block_ptr );
1107a7: 83 c4 10 add $0x10,%esp
1107aa: 85 c0 test %eax,%eax
1107ac: 75 14 jne 1107c2 <IMFS_memfile_write+0x118><== ALWAYS TAKEN
1107ae: 68 3b f7 11 00 push $0x11f73b <== NOT EXECUTED
1107b3: 68 e8 f7 11 00 push $0x11f7e8 <== NOT EXECUTED
1107b8: 68 1c 03 00 00 push $0x31c <== NOT EXECUTED
1107bd: e9 26 ff ff ff jmp 1106e8 <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;
1107c2: 8b 55 c8 mov -0x38(%ebp),%edx
1107c5: 2b 55 cc sub -0x34(%ebp),%edx
1107c8: 3b 55 18 cmp 0x18(%ebp),%edx
1107cb: 76 03 jbe 1107d0 <IMFS_memfile_write+0x126>
1107cd: 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 );
1107d0: 8b 00 mov (%eax),%eax
1107d2: 03 45 cc add -0x34(%ebp),%eax
src += to_copy;
1107d5: 89 c7 mov %eax,%edi
1107d7: 8b 75 14 mov 0x14(%ebp),%esi
1107da: 89 d1 mov %edx,%ecx
1107dc: f3 a4 rep movsb %ds:(%esi),%es:(%edi)
block++;
1107de: ff 45 d0 incl -0x30(%ebp)
my_length -= to_copy;
1107e1: 8b 4d 18 mov 0x18(%ebp),%ecx
1107e4: 29 d1 sub %edx,%ecx
1107e6: 89 4d d4 mov %ecx,-0x2c(%ebp)
copied += to_copy;
1107e9: 89 d3 mov %edx,%ebx
/*
* Phase 2: all of zero of more blocks
*/
to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;
1107eb: 8b 15 2c 52 12 00 mov 0x12522c,%edx
while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {
1107f1: eb 3f jmp 110832 <IMFS_memfile_write+0x188>
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
1107f3: 57 push %edi
1107f4: 6a 00 push $0x0
1107f6: ff 75 d0 pushl -0x30(%ebp)
1107f9: ff 75 08 pushl 0x8(%ebp)
1107fc: 89 55 c4 mov %edx,-0x3c(%ebp)
1107ff: e8 2e f8 ff ff call 110032 <IMFS_memfile_get_block_pointer>
assert( block_ptr );
110804: 83 c4 10 add $0x10,%esp
110807: 85 c0 test %eax,%eax
110809: 8b 55 c4 mov -0x3c(%ebp),%edx
11080c: 75 14 jne 110822 <IMFS_memfile_write+0x178><== ALWAYS TAKEN
11080e: 68 3b f7 11 00 push $0x11f73b <== NOT EXECUTED
110813: 68 e8 f7 11 00 push $0x11f7e8 <== NOT EXECUTED
110818: 68 30 03 00 00 push $0x330 <== NOT EXECUTED
11081d: e9 c6 fe ff ff jmp 1106e8 <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 );
110822: 8b 00 mov (%eax),%eax
src += to_copy;
110824: 89 c7 mov %eax,%edi
110826: 89 d1 mov %edx,%ecx
110828: f3 a4 rep movsb %ds:(%esi),%es:(%edi)
block++;
11082a: ff 45 d0 incl -0x30(%ebp)
my_length -= to_copy;
11082d: 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(
110830: 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 ) {
110832: 8b 45 d4 mov -0x2c(%ebp),%eax
110835: 3b 05 2c 52 12 00 cmp 0x12522c,%eax
11083b: 73 b6 jae 1107f3 <IMFS_memfile_write+0x149>
*/
assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK );
to_copy = my_length;
if ( my_length ) {
11083d: 85 c0 test %eax,%eax
11083f: 74 35 je 110876 <IMFS_memfile_write+0x1cc>
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
110841: 51 push %ecx
110842: 6a 00 push $0x0
110844: ff 75 d0 pushl -0x30(%ebp)
110847: ff 75 08 pushl 0x8(%ebp)
11084a: e8 e3 f7 ff ff call 110032 <IMFS_memfile_get_block_pointer>
assert( block_ptr );
11084f: 83 c4 10 add $0x10,%esp
110852: 85 c0 test %eax,%eax
110854: 75 14 jne 11086a <IMFS_memfile_write+0x1c0><== ALWAYS TAKEN
110856: 68 3b f7 11 00 push $0x11f73b <== NOT EXECUTED
11085b: 68 e8 f7 11 00 push $0x11f7e8 <== NOT EXECUTED
110860: 68 46 03 00 00 push $0x346 <== NOT EXECUTED
110865: e9 7e fe ff ff jmp 1106e8 <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 );
11086a: 8b 00 mov (%eax),%eax
11086c: 89 c7 mov %eax,%edi
11086e: 8b 4d d4 mov -0x2c(%ebp),%ecx
110871: f3 a4 rep movsb %ds:(%esi),%es:(%edi)
my_length = 0;
copied += to_copy;
110873: 03 5d d4 add -0x2c(%ebp),%ebx
}
IMFS_mtime_ctime_update( the_jnode );
110876: 52 push %edx
110877: 52 push %edx
110878: 6a 00 push $0x0
11087a: 8d 45 e0 lea -0x20(%ebp),%eax
11087d: 50 push %eax
11087e: e8 91 6e ff ff call 107714 <gettimeofday>
110883: 8b 45 e0 mov -0x20(%ebp),%eax
110886: 8b 55 08 mov 0x8(%ebp),%edx
110889: 89 42 44 mov %eax,0x44(%edx)
11088c: 89 42 48 mov %eax,0x48(%edx)
return copied;
11088f: 83 c4 10 add $0x10,%esp
}
110892: 89 d8 mov %ebx,%eax
110894: 8d 65 f4 lea -0xc(%ebp),%esp
110897: 5b pop %ebx
110898: 5e pop %esi
110899: 5f pop %edi
11089a: c9 leave
11089b: 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 79 00 00 call 10e96c <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 e1 a8 00 00 call 1118c0 <__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 95 6e 00 00 call 10de98 <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 ad a8 00 00 call 1118c0 <__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 85 a8 00 00 call 1118c0 <__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 3c 40 12 00 push $0x12403c <== NOT EXECUTED
108d41: 68 f8 41 12 00 push $0x1241f8 <== 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 00 90 12 00 mov 0x129000,%eax
108d54: ff 70 08 pushl 0x8(%eax)
108d57: 8d 43 0c lea 0xc(%ebx),%eax
108d5a: 50 push %eax
108d5b: e8 c4 c4 00 00 call 115224 <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 00 90 12 00 mov 0x129000,%eax
108d77: ff 24 95 c8 41 12 00 jmp *0x1241c8(,%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 ae c3 00 00 call 115138 <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 96 40 12 00 push $0x124096
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 a9 40 12 00 push $0x1240a9 <== 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 b8 40 12 00 push $0x1240b8
108daf: ff 70 08 pushl 0x8(%eax)
108db2: e8 45 c3 00 00 call 1150fc <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 0d 44 12 00 movl $0x12440d,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 96 dc 00 00 jmp 116a60 <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 c4 40 12 00 push $0x1240c4 <== NOT EXECUTED
108dd4: e8 4b c4 00 00 call 115224 <fputs> <== NOT EXECUTED
assert(0);
108dd9: 68 8f 38 12 00 push $0x12388f <== NOT EXECUTED
108dde: 68 f8 41 12 00 push $0x1241f8 <== NOT EXECUTED
108de3: 6a 5d push $0x5d <== NOT EXECUTED
108de5: 68 46 40 12 00 push $0x124046 <== 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 c4 40 12 00 push $0x1240c4 <== NOT EXECUTED
108df9: e8 26 c4 00 00 call 115224 <fputs> <== NOT EXECUTED
assert(0);
108dfe: 68 8f 38 12 00 push $0x12388f <== NOT EXECUTED
108e03: 68 f8 41 12 00 push $0x1241f8 <== 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 d8 40 12 00 push $0x1240d8 <== NOT EXECUTED
108e16: e8 09 c4 00 00 call 115224 <fputs> <== NOT EXECUTED
assert(0);
108e1b: 68 8f 38 12 00 push $0x12388f <== NOT EXECUTED
108e20: 68 f8 41 12 00 push $0x1241f8 <== 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 eb 40 12 00 push $0x1240eb <== NOT EXECUTED
108e30: a1 00 90 12 00 mov 0x129000,%eax <== NOT EXECUTED
108e35: ff 70 08 pushl 0x8(%eax) <== NOT EXECUTED
108e38: e8 bf c2 00 00 call 1150fc <fprintf> <== NOT EXECUTED
assert(0);
108e3d: 68 8f 38 12 00 push $0x12388f <== NOT EXECUTED
108e42: 68 f8 41 12 00 push $0x1241f8 <== 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 43 a8 00 00 call 1118c0 <__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 1e b5 00 00 call 1125d8 <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 3c 3d 00 00 call 10ae08 <_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 01 3d 00 00 call 10ade4 <_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
0010ea2c <IMFS_rmnod>:
int IMFS_rmnod(
rtems_filesystem_location_info_t *parent_pathloc, /* IN */
rtems_filesystem_location_info_t *pathloc /* IN */
)
{
10ea2c: 55 push %ebp
10ea2d: 89 e5 mov %esp,%ebp
10ea2f: 56 push %esi
10ea30: 53 push %ebx
10ea31: 83 ec 10 sub $0x10,%esp
10ea34: 8b 75 0c mov 0xc(%ebp),%esi
IMFS_jnode_t *the_jnode;
the_jnode = (IMFS_jnode_t *) pathloc->node_access;
10ea37: 8b 1e mov (%esi),%ebx
/*
* Take the node out of the parent's chain that contains this node
*/
if ( the_jnode->Parent != NULL ) {
10ea39: 83 7b 08 00 cmpl $0x0,0x8(%ebx)
10ea3d: 74 13 je 10ea52 <IMFS_rmnod+0x26> <== NEVER TAKEN
*/
RTEMS_INLINE_ROUTINE void rtems_chain_extract(
rtems_chain_node *the_node
)
{
_Chain_Extract( the_node );
10ea3f: 83 ec 0c sub $0xc,%esp
10ea42: 53 push %ebx
10ea43: e8 c0 c3 ff ff call 10ae08 <_Chain_Extract>
rtems_chain_extract( (rtems_chain_node *) the_jnode );
the_jnode->Parent = NULL;
10ea48: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx)
10ea4f: 83 c4 10 add $0x10,%esp
/*
* Decrement the link counter and see if we can free the space.
*/
the_jnode->st_nlink--;
10ea52: 66 ff 4b 34 decw 0x34(%ebx)
IMFS_update_ctime( the_jnode );
10ea56: 50 push %eax
10ea57: 50 push %eax
10ea58: 6a 00 push $0x0
10ea5a: 8d 45 f0 lea -0x10(%ebp),%eax
10ea5d: 50 push %eax
10ea5e: e8 b1 8c ff ff call 107714 <gettimeofday>
10ea63: 8b 45 f0 mov -0x10(%ebp),%eax
10ea66: 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) ) {
10ea69: 89 1c 24 mov %ebx,(%esp)
10ea6c: e8 7d 02 00 00 call 10ecee <rtems_libio_is_file_open>
10ea71: 83 c4 10 add $0x10,%esp
10ea74: 85 c0 test %eax,%eax
10ea76: 75 3f jne 10eab7 <IMFS_rmnod+0x8b> <== NEVER TAKEN
10ea78: 66 83 7b 34 00 cmpw $0x0,0x34(%ebx)
10ea7d: 75 38 jne 10eab7 <IMFS_rmnod+0x8b> <== NEVER TAKEN
/*
* Is rtems_filesystem_current this node?
*/
if ( rtems_filesystem_current.node_access == pathloc->node_access )
10ea7f: a1 74 34 12 00 mov 0x123474,%eax
10ea84: 8b 50 04 mov 0x4(%eax),%edx
10ea87: 3b 16 cmp (%esi),%edx
10ea89: 75 07 jne 10ea92 <IMFS_rmnod+0x66> <== ALWAYS TAKEN
rtems_filesystem_current.node_access = NULL;
10ea8b: 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 ) {
10ea92: 83 7b 4c 04 cmpl $0x4,0x4c(%ebx)
10ea96: 75 13 jne 10eaab <IMFS_rmnod+0x7f>
if ( the_jnode->info.sym_link.name )
10ea98: 8b 43 50 mov 0x50(%ebx),%eax
10ea9b: 85 c0 test %eax,%eax
10ea9d: 74 0c je 10eaab <IMFS_rmnod+0x7f> <== NEVER TAKEN
free( (void*) the_jnode->info.sym_link.name );
10ea9f: 83 ec 0c sub $0xc,%esp
10eaa2: 50 push %eax
10eaa3: e8 f4 8b ff ff call 10769c <free>
10eaa8: 83 c4 10 add $0x10,%esp
}
free( the_jnode );
10eaab: 83 ec 0c sub $0xc,%esp
10eaae: 53 push %ebx
10eaaf: e8 e8 8b ff ff call 10769c <free>
10eab4: 83 c4 10 add $0x10,%esp
}
return 0;
}
10eab7: 31 c0 xor %eax,%eax
10eab9: 8d 65 f8 lea -0x8(%ebp),%esp
10eabc: 5b pop %ebx
10eabd: 5e pop %esi
10eabe: c9 leave
10eabf: c3 ret
0010eac0 <IMFS_stat>:
int IMFS_stat(
rtems_filesystem_location_info_t *loc,
struct stat *buf
)
{
10eac0: 55 push %ebp
10eac1: 89 e5 mov %esp,%ebp
10eac3: 56 push %esi
10eac4: 53 push %ebx
10eac5: 8b 4d 08 mov 0x8(%ebp),%ecx
10eac8: 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;
10eacb: 8b 11 mov (%ecx),%edx
switch ( the_jnode->type ) {
10eacd: 8b 5a 4c mov 0x4c(%edx),%ebx
10ead0: 83 eb 02 sub $0x2,%ebx
10ead3: 83 fb 05 cmp $0x5,%ebx
10ead6: 77 33 ja 10eb0b <IMFS_stat+0x4b> <== NEVER TAKEN
10ead8: ff 24 9d 04 f6 11 00 jmp *0x11f604(,%ebx,4)
case IMFS_DEVICE:
io = &the_jnode->info.device;
buf->st_rdev = rtems_filesystem_make_dev_t( io->major, io->minor );
10eadf: 8b 5a 54 mov 0x54(%edx),%ebx
rtems_device_minor_number _minor
)
{
union __rtems_dev_t temp;
temp.__overlay.major = _major;
10eae2: 8b 72 50 mov 0x50(%edx),%esi
10eae5: 89 70 18 mov %esi,0x18(%eax)
10eae8: 89 58 1c mov %ebx,0x1c(%eax)
break;
10eaeb: eb 2e jmp 10eb1b <IMFS_stat+0x5b>
case IMFS_LINEAR_FILE:
case IMFS_MEMORY_FILE:
buf->st_size = the_jnode->info.file.size;
10eaed: 8b 5a 50 mov 0x50(%edx),%ebx
10eaf0: 8b 72 54 mov 0x54(%edx),%esi
10eaf3: 89 58 20 mov %ebx,0x20(%eax)
10eaf6: 89 70 24 mov %esi,0x24(%eax)
break;
10eaf9: eb 20 jmp 10eb1b <IMFS_stat+0x5b>
case IMFS_SYM_LINK:
buf->st_size = 0;
break;
case IMFS_FIFO:
buf->st_size = 0;
10eafb: c7 40 20 00 00 00 00 movl $0x0,0x20(%eax) <== NOT EXECUTED
10eb02: c7 40 24 00 00 00 00 movl $0x0,0x24(%eax) <== NOT EXECUTED
break;
10eb09: eb 10 jmp 10eb1b <IMFS_stat+0x5b> <== NOT EXECUTED
default:
rtems_set_errno_and_return_minus_one( ENOTSUP );
10eb0b: e8 b0 2d 00 00 call 1118c0 <__errno> <== NOT EXECUTED
10eb10: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
10eb16: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
10eb19: eb 50 jmp 10eb6b <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 );
10eb1b: 8b 49 10 mov 0x10(%ecx),%ecx
10eb1e: 8b 49 34 mov 0x34(%ecx),%ecx
10eb21: 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 =
10eb23: c7 00 fe ff 00 00 movl $0xfffe,(%eax)
10eb29: 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;
10eb2c: 8b 4a 30 mov 0x30(%edx),%ecx
10eb2f: 89 48 0c mov %ecx,0xc(%eax)
buf->st_nlink = the_jnode->st_nlink;
10eb32: 8b 4a 34 mov 0x34(%edx),%ecx
10eb35: 66 89 48 10 mov %cx,0x10(%eax)
buf->st_ino = the_jnode->st_ino;
10eb39: 8b 4a 38 mov 0x38(%edx),%ecx
10eb3c: 89 48 08 mov %ecx,0x8(%eax)
buf->st_uid = the_jnode->st_uid;
10eb3f: 8b 4a 3c mov 0x3c(%edx),%ecx
10eb42: 66 89 48 12 mov %cx,0x12(%eax)
buf->st_gid = the_jnode->st_gid;
10eb46: 66 8b 4a 3e mov 0x3e(%edx),%cx
10eb4a: 66 89 48 14 mov %cx,0x14(%eax)
buf->st_atime = the_jnode->stat_atime;
10eb4e: 8b 4a 40 mov 0x40(%edx),%ecx
10eb51: 89 48 28 mov %ecx,0x28(%eax)
buf->st_mtime = the_jnode->stat_mtime;
10eb54: 8b 4a 44 mov 0x44(%edx),%ecx
10eb57: 89 48 30 mov %ecx,0x30(%eax)
buf->st_ctime = the_jnode->stat_ctime;
10eb5a: 8b 52 48 mov 0x48(%edx),%edx
10eb5d: 89 50 38 mov %edx,0x38(%eax)
buf->st_blksize = imfs_rq_memfile_bytes_per_block;
10eb60: 8b 15 68 16 12 00 mov 0x121668,%edx
10eb66: 89 50 40 mov %edx,0x40(%eax)
10eb69: 31 c0 xor %eax,%eax
return 0;
}
10eb6b: 5b pop %ebx
10eb6c: 5e pop %esi
10eb6d: c9 leave
10eb6e: 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 78 00 00 call 10e96c <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 55 b3 00 00 call 112484 <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 82 a7 00 00 call 1118c0 <__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 38 6d 00 00 call 10de98 <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 45 a7 00 00 call 1118c0 <__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 10 a7 00 00 call 1118c0 <__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 c1 6d 00 00 call 10df98 <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 71 a6 00 00 call 1118c0 <__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 5e a6 00 00 call 1118c0 <__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 f0 39 12 00 mov 0x1239f0,%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 f4 39 12 00 mov 0x1239f4,%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 ed 39 12 00 00 cmpb $0x0,0x1239ed
1078d5: 75 11 jne 1078e8 <RTEMS_Malloc_Initialize+0x54>
!rtems_unified_work_area
&& rtems_configuration_get_do_zero_of_workspace()
1078d7: 80 3d 40 17 12 00 00 cmpb $0x0,0x121740
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 ed 39 12 00 00 cmpb $0x0,0x1239ed
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 70 16 12 00 pushl 0x121670
1078fb: e8 d0 39 00 00 call 10b2d0 <_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 77 32 00 00 call 10ab88 <rtems_fatal_error_occurred><== NOT EXECUTED
}
}
MSBUMP( space_available, _Protected_heap_Get_size(RTEMS_Malloc_Heap) );
107911: 8b 1d 58 55 12 00 mov 0x125558,%ebx
107917: 83 ec 0c sub $0xc,%esp
10791a: ff 35 70 16 12 00 pushl 0x121670
107920: e8 17 44 00 00 call 10bd3c <_Protected_heap_Get_size>
107925: 8d 1c 18 lea (%eax,%ebx,1),%ebx
107928: 89 1d 58 55 12 00 mov %ebx,0x125558
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 2c 4e 16 00 mov 0x164e2c,%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 4c 7a 16 00 00 cmpl $0x0,0x167a4c <== NOT EXECUTED
10b6d2: 0f 84 d8 00 00 00 je 10b7b0 <Stack_check_Dump_threads_usage+0x10e><== NOT EXECUTED
10b6d8: be 48 7a 16 00 mov $0x167a48,%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 c0 00 00 00 lea 0xc0(%ebx),%esi <== NOT EXECUTED
current = (void *)_CPU_Context_Get_SP( &the_thread->Registers );
10b6ee: 8b 8b d4 00 00 00 mov 0xd4(%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 9c 57 15 00 push $0x15579c <== NOT EXECUTED
10b73e: ff 35 28 4e 16 00 pushl 0x164e28 <== 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 a9 57 15 00 push $0x1557a9 <== NOT EXECUTED
10b754: ff 35 28 4e 16 00 pushl 0x164e28 <== 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 b7 57 15 00 push $0x1557b7 <== NOT EXECUTED
10b778: ff 35 28 4e 16 00 pushl 0x164e28 <== NOT EXECUTED
10b77e: ff 15 2c 4e 16 00 call *0x164e2c <== 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 24 4e 16 00 00 cmpl $0x0,0x164e24 <== NOT EXECUTED
10b78e: a1 2c 4e 16 00 mov 0x164e2c,%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 d5 57 15 00 push $0x1557d5 <== 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 e2 57 15 00 push $0x1557e2 <== NOT EXECUTED
10b7a5: ff 35 28 4e 16 00 pushl 0x164e28 <== 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 24 4e 16 00 00 cmpl $0x0,0x164e24
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 1c 59 15 00 mov 0x15591c(,%edx,4),%edx
10b9d0: 89 14 85 38 7a 16 00 mov %edx,0x167a38(,%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 b4 7b 16 00 mov 0x167bb4,%edx
10b9e3: 85 d2 test %edx,%edx
10b9e5: 74 1e je 10ba05 <Stack_check_Initialize+0x50><== NEVER TAKEN
10b9e7: 8b 0d 74 7b 16 00 mov 0x167b74,%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 4c 7a 16 00 mov %edx,0x167a4c
Stack_check_Interrupt_stack.size = (char *) _CPU_Interrupt_stack_high -
10b9f7: 29 d1 sub %edx,%ecx
10b9f9: 89 0d 48 7a 16 00 mov %ecx,0x167a48
(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 24 4e 16 00 01 movl $0x1,0x164e24
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 c4 00 00 00 mov 0xc4(%ebx),%esi <== NOT EXECUTED
char name [32];
printk("BLOWN STACK!!!\n");
10b844: 68 49 58 15 00 push $0x155849 <== 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 59 58 15 00 push $0x155859 <== 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 76 58 15 00 push $0x155876 <== 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 88 58 15 00 push $0x155888 <== 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 9c 58 15 00 push $0x15589c <== 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 c4 00 00 00 mov 0xc4(%ebx),%ecx <== NOT EXECUTED
10b8a0: 8b 83 c0 00 00 00 mov 0xc0(%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 b2 58 15 00 push $0x1558b2 <== 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 e3 58 15 00 push $0x1558e3 <== 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 c0 59 00 00 call 1112a4 <rtems_fatal_error_occurred><== NOT EXECUTED
0013c3e6 <T.57>:
return 0;
}
static int
rtems_rfs_search_map_for_clear_bit (rtems_rfs_bitmap_control* control,
13c3e6: 55 push %ebp <== NOT EXECUTED
13c3e7: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13c3e9: 57 push %edi <== NOT EXECUTED
13c3ea: 56 push %esi <== NOT EXECUTED
13c3eb: 53 push %ebx <== NOT EXECUTED
13c3ec: 83 ec 6c sub $0x6c,%esp <== NOT EXECUTED
13c3ef: 89 45 c8 mov %eax,-0x38(%ebp) <== NOT EXECUTED
13c3f2: 89 55 b0 mov %edx,-0x50(%ebp) <== NOT EXECUTED
13c3f5: 89 4d ac mov %ecx,-0x54(%ebp) <== NOT EXECUTED
13c3f8: 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;
13c3fb: c6 01 00 movb $0x0,(%ecx) <== NOT EXECUTED
/*
* Load the bitmap.
*/
rc = rtems_rfs_bitmap_load_map (control, &map);
13c3fe: 8d 55 e4 lea -0x1c(%ebp),%edx <== NOT EXECUTED
13c401: e8 8c fc ff ff call 13c092 <rtems_rfs_bitmap_load_map><== NOT EXECUTED
if (rc > 0)
13c406: 85 c0 test %eax,%eax <== NOT EXECUTED
13c408: 0f 8f aa 01 00 00 jg 13c5b8 <T.57+0x1d2> <== NOT EXECUTED
return rc;
/*
* Calculate the bit we are testing plus the end point we search over.
*/
test_bit = *bit;
13c40e: 8b 55 b0 mov -0x50(%ebp),%edx <== NOT EXECUTED
13c411: 8b 02 mov (%edx),%eax <== NOT EXECUTED
end_bit = test_bit + (window * direction);
13c413: 89 da mov %ebx,%edx <== NOT EXECUTED
13c415: c1 e2 0b shl $0xb,%edx <== NOT EXECUTED
if (end_bit < 0)
13c418: 01 c2 add %eax,%edx <== NOT EXECUTED
13c41a: 89 55 d4 mov %edx,-0x2c(%ebp) <== NOT EXECUTED
13c41d: 79 09 jns 13c428 <T.57+0x42> <== NOT EXECUTED
13c41f: c7 45 d4 00 00 00 00 movl $0x0,-0x2c(%ebp) <== NOT EXECUTED
13c426: eb 0f jmp 13c437 <T.57+0x51> <== NOT EXECUTED
end_bit = 0;
else if (end_bit >= control->size)
13c428: 8b 4d c8 mov -0x38(%ebp),%ecx <== NOT EXECUTED
13c42b: 8b 51 0c mov 0xc(%ecx),%edx <== NOT EXECUTED
13c42e: 39 55 d4 cmp %edx,-0x2c(%ebp) <== NOT EXECUTED
13c431: 72 04 jb 13c437 <T.57+0x51> <== NOT EXECUTED
end_bit = control->size - 1;
13c433: 4a dec %edx <== NOT EXECUTED
13c434: 89 55 d4 mov %edx,-0x2c(%ebp) <== NOT EXECUTED
map_index = rtems_rfs_bitmap_map_index (test_bit);
13c437: 89 c2 mov %eax,%edx <== NOT EXECUTED
13c439: c1 fa 05 sar $0x5,%edx <== NOT EXECUTED
13c43c: 89 55 cc mov %edx,-0x34(%ebp) <== NOT EXECUTED
map_offset = rtems_rfs_bitmap_map_offset (test_bit);
13c43f: 89 c6 mov %eax,%esi <== NOT EXECUTED
13c441: 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);
13c444: 83 e2 1f and $0x1f,%edx <== NOT EXECUTED
search_bits = &control->search_bits[search_index];
13c447: 89 c1 mov %eax,%ecx <== NOT EXECUTED
13c449: c1 f9 0a sar $0xa,%ecx <== NOT EXECUTED
13c44c: c1 e1 02 shl $0x2,%ecx <== NOT EXECUTED
13c44f: 89 4d d0 mov %ecx,-0x30(%ebp) <== NOT EXECUTED
13c452: 8b 4d c8 mov -0x38(%ebp),%ecx <== NOT EXECUTED
13c455: 8b 49 14 mov 0x14(%ecx),%ecx <== NOT EXECUTED
13c458: 01 4d d0 add %ecx,-0x30(%ebp) <== NOT EXECUTED
map_bits = &map[map_index];
13c45b: 8b 7d cc mov -0x34(%ebp),%edi <== NOT EXECUTED
13c45e: c1 e7 02 shl $0x2,%edi <== NOT EXECUTED
13c461: 03 7d e4 add -0x1c(%ebp),%edi <== NOT EXECUTED
map_offset += direction;
test_bit += direction;
}
}
map_bits += direction;
13c464: 8d 0c 9d 00 00 00 00 lea 0x0(,%ebx,4),%ecx <== NOT EXECUTED
13c46b: 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,
13c46e: 89 d9 mov %ebx,%ecx <== NOT EXECUTED
13c470: c1 e1 05 shl $0x5,%ecx <== NOT EXECUTED
13c473: 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))
13c476: 8b 4d d0 mov -0x30(%ebp),%ecx <== NOT EXECUTED
13c479: 8b 09 mov (%ecx),%ecx <== NOT EXECUTED
13c47b: 89 4d c0 mov %ecx,-0x40(%ebp) <== NOT EXECUTED
13c47e: 85 c9 test %ecx,%ecx <== NOT EXECUTED
13c480: 0f 84 d2 00 00 00 je 13c558 <T.57+0x172> <== NOT EXECUTED
return 0;
}
static int
rtems_rfs_search_map_for_clear_bit (rtems_rfs_bitmap_control* control,
13c486: 8b 4d cc mov -0x34(%ebp),%ecx <== NOT EXECUTED
13c489: 01 d9 add %ebx,%ecx <== NOT EXECUTED
13c48b: c1 e1 05 shl $0x5,%ecx <== NOT EXECUTED
13c48e: 89 4d c4 mov %ecx,-0x3c(%ebp) <== NOT EXECUTED
13c491: 89 55 bc mov %edx,-0x44(%ebp) <== NOT EXECUTED
13c494: e9 b3 00 00 00 jmp 13c54c <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);
13c499: ba 01 00 00 00 mov $0x1,%edx <== NOT EXECUTED
13c49e: 8a 4d bc mov -0x44(%ebp),%cl <== NOT EXECUTED
13c4a1: d3 e2 shl %cl,%edx <== NOT EXECUTED
13c4a3: 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))
13c4a6: 8b 4d c0 mov -0x40(%ebp),%ecx <== NOT EXECUTED
13c4a9: 85 ca test %ecx,%edx <== NOT EXECUTED
13c4ab: 75 53 jne 13c500 <T.57+0x11a> <== NOT EXECUTED
13c4ad: eb 6a jmp 13c519 <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))
13c4af: 8b 17 mov (%edi),%edx <== NOT EXECUTED
13c4b1: 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);
13c4b4: ba 01 00 00 00 mov $0x1,%edx <== NOT EXECUTED
13c4b9: 89 f1 mov %esi,%ecx <== NOT EXECUTED
13c4bb: d3 e2 shl %cl,%edx <== NOT EXECUTED
13c4bd: 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))
13c4c0: 85 55 bc test %edx,-0x44(%ebp) <== NOT EXECUTED
13c4c3: 74 30 je 13c4f5 <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);
13c4c5: f7 d2 not %edx <== NOT EXECUTED
13c4c7: 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);
13c4ca: 89 17 mov %edx,(%edi) <== NOT EXECUTED
if (rtems_rfs_bitmap_match(*map_bits,
13c4cc: 85 d2 test %edx,%edx <== NOT EXECUTED
13c4ce: 75 0a jne 13c4da <T.57+0xf4> <== NOT EXECUTED
RTEMS_RFS_BITMAP_ELEMENT_SET))
*search_bits = rtems_rfs_bitmap_set (*search_bits,
13c4d0: 8b 55 b8 mov -0x48(%ebp),%edx <== NOT EXECUTED
13c4d3: f7 d2 not %edx <== NOT EXECUTED
13c4d5: 8b 4d d0 mov -0x30(%ebp),%ecx <== NOT EXECUTED
13c4d8: 21 11 and %edx,(%ecx) <== NOT EXECUTED
1 << search_offset);
control->free--;
13c4da: 8b 55 c8 mov -0x38(%ebp),%edx <== NOT EXECUTED
13c4dd: ff 4a 10 decl 0x10(%edx) <== NOT EXECUTED
*bit = test_bit;
13c4e0: 8b 4d b0 mov -0x50(%ebp),%ecx <== NOT EXECUTED
13c4e3: 89 01 mov %eax,(%ecx) <== NOT EXECUTED
*found = true;
13c4e5: 8b 45 ac mov -0x54(%ebp),%eax <== NOT EXECUTED
13c4e8: c6 00 01 movb $0x1,(%eax) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (control->buffer);
13c4eb: 8b 02 mov (%edx),%eax <== NOT EXECUTED
13c4ed: c6 00 01 movb $0x1,(%eax) <== NOT EXECUTED
13c4f0: e9 c1 00 00 00 jmp 13c5b6 <T.57+0x1d0> <== NOT EXECUTED
return 0;
}
if (test_bit == end_bit)
13c4f5: 3b 45 d4 cmp -0x2c(%ebp),%eax <== NOT EXECUTED
13c4f8: 74 19 je 13c513 <T.57+0x12d> <== NOT EXECUTED
13c4fa: 01 de add %ebx,%esi <== NOT EXECUTED
return 0;
}
static int
rtems_rfs_search_map_for_clear_bit (rtems_rfs_bitmap_control* control,
13c4fc: 01 d8 add %ebx,%eax <== NOT EXECUTED
13c4fe: eb 06 jmp 13c506 <T.57+0x120> <== NOT EXECUTED
13c500: 8b 55 bc mov -0x44(%ebp),%edx <== NOT EXECUTED
13c503: 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)
13c506: 83 fe 1f cmp $0x1f,%esi <== NOT EXECUTED
13c509: 76 a4 jbe 13c4af <T.57+0xc9> <== NOT EXECUTED
13c50b: 8b 4d 94 mov -0x6c(%ebp),%ecx <== NOT EXECUTED
13c50e: 89 4d bc mov %ecx,-0x44(%ebp) <== NOT EXECUTED
13c511: eb 06 jmp 13c519 <T.57+0x133> <== NOT EXECUTED
13c513: 8b 45 94 mov -0x6c(%ebp),%eax <== NOT EXECUTED
13c516: 89 45 bc mov %eax,-0x44(%ebp) <== NOT EXECUTED
map_offset += direction;
test_bit += direction;
}
}
map_bits += direction;
13c519: 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,
13c51c: 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;
13c51f: 85 db test %ebx,%ebx <== NOT EXECUTED
13c521: 0f 9f c0 setg %al <== NOT EXECUTED
13c524: 0f b6 f0 movzbl %al,%esi <== NOT EXECUTED
13c527: 4e dec %esi <== NOT EXECUTED
13c528: 83 e6 1f and $0x1f,%esi <== NOT EXECUTED
test_bit = (map_index * rtems_rfs_bitmap_element_bits ()) + map_offset;
13c52b: 8b 55 c4 mov -0x3c(%ebp),%edx <== NOT EXECUTED
13c52e: 8d 04 16 lea (%esi,%edx,1),%eax <== NOT EXECUTED
search_offset += direction;
if (((direction < 0) && (test_bit <= end_bit))
13c531: 3b 45 d4 cmp -0x2c(%ebp),%eax <== NOT EXECUTED
13c534: 7f 04 jg 13c53a <T.57+0x154> <== NOT EXECUTED
13c536: 85 db test %ebx,%ebx <== NOT EXECUTED
13c538: 78 51 js 13c58b <T.57+0x1a5> <== NOT EXECUTED
13c53a: 8b 4d a8 mov -0x58(%ebp),%ecx <== NOT EXECUTED
13c53d: 01 4d c4 add %ecx,-0x3c(%ebp) <== NOT EXECUTED
13c540: 3b 45 d4 cmp -0x2c(%ebp),%eax <== NOT EXECUTED
13c543: 7c 04 jl 13c549 <T.57+0x163> <== NOT EXECUTED
13c545: 85 db test %ebx,%ebx <== NOT EXECUTED
13c547: 7f 42 jg 13c58b <T.57+0x1a5> <== NOT EXECUTED
13c549: 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)
13c54c: 83 7d bc 1f cmpl $0x1f,-0x44(%ebp) <== NOT EXECUTED
13c550: 0f 86 43 ff ff ff jbe 13c499 <T.57+0xb3> <== NOT EXECUTED
13c556: eb 33 jmp 13c58b <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);
13c558: 83 e0 e0 and $0xffffffe0,%eax <== NOT EXECUTED
if (direction > 0)
13c55b: 85 db test %ebx,%ebx <== NOT EXECUTED
13c55d: 7e 13 jle 13c572 <T.57+0x18c> <== NOT EXECUTED
{
bits_skipped = rtems_rfs_bitmap_element_bits () - search_offset;
13c55f: b9 20 00 00 00 mov $0x20,%ecx <== NOT EXECUTED
13c564: 29 d1 sub %edx,%ecx <== NOT EXECUTED
test_bit += bits_skipped * rtems_rfs_bitmap_element_bits ();
13c566: 89 ca mov %ecx,%edx <== NOT EXECUTED
13c568: c1 e2 05 shl $0x5,%edx <== NOT EXECUTED
13c56b: 8d 04 02 lea (%edx,%eax,1),%eax <== NOT EXECUTED
13c56e: 31 f6 xor %esi,%esi <== NOT EXECUTED
13c570: eb 10 jmp 13c582 <T.57+0x19c> <== NOT EXECUTED
map_offset = 0;
}
else
{
bits_skipped = search_offset + 1;
13c572: 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;
13c575: c1 e2 05 shl $0x5,%edx <== NOT EXECUTED
13c578: f7 d2 not %edx <== NOT EXECUTED
13c57a: 8d 04 02 lea (%edx,%eax,1),%eax <== NOT EXECUTED
13c57d: be 1f 00 00 00 mov $0x1f,%esi <== NOT EXECUTED
map_offset = rtems_rfs_bitmap_element_bits () - 1;
}
map_bits += direction * bits_skipped;
13c582: 0f af cb imul %ebx,%ecx <== NOT EXECUTED
13c585: 8d 3c 8f lea (%edi,%ecx,4),%edi <== NOT EXECUTED
map_index += direction * bits_skipped;
13c588: 01 4d cc add %ecx,-0x34(%ebp) <== NOT EXECUTED
}
search_bits += direction;
13c58b: 8b 55 b4 mov -0x4c(%ebp),%edx <== NOT EXECUTED
13c58e: 01 55 d0 add %edx,-0x30(%ebp) <== NOT EXECUTED
search_offset = direction > 0 ? 0 : rtems_rfs_bitmap_element_bits () - 1;
13c591: 31 d2 xor %edx,%edx <== NOT EXECUTED
13c593: 85 db test %ebx,%ebx <== NOT EXECUTED
13c595: 0f 9f c2 setg %dl <== NOT EXECUTED
13c598: 4a dec %edx <== NOT EXECUTED
13c599: 83 e2 1f and $0x1f,%edx <== NOT EXECUTED
}
while (((direction < 0) && (test_bit >= end_bit))
|| ((direction > 0) && (test_bit <= end_bit)));
13c59c: 3b 45 d4 cmp -0x2c(%ebp),%eax <== NOT EXECUTED
13c59f: 7c 0d jl 13c5ae <T.57+0x1c8> <== NOT EXECUTED
13c5a1: 85 db test %ebx,%ebx <== NOT EXECUTED
13c5a3: 0f 88 cd fe ff ff js 13c476 <T.57+0x90> <== NOT EXECUTED
13c5a9: 3b 45 d4 cmp -0x2c(%ebp),%eax <== NOT EXECUTED
13c5ac: 7f 08 jg 13c5b6 <T.57+0x1d0> <== NOT EXECUTED
13c5ae: 85 db test %ebx,%ebx <== NOT EXECUTED
13c5b0: 0f 8f c0 fe ff ff jg 13c476 <T.57+0x90> <== NOT EXECUTED
13c5b6: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
}
13c5b8: 83 c4 6c add $0x6c,%esp <== NOT EXECUTED
13c5bb: 5b pop %ebx <== NOT EXECUTED
13c5bc: 5e pop %esi <== NOT EXECUTED
13c5bd: 5f pop %edi <== NOT EXECUTED
13c5be: c9 leave <== NOT EXECUTED
13c5bf: 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
00117a0c <_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
)
{
117a0c: 55 push %ebp
117a0d: 89 e5 mov %esp,%ebp
117a0f: 57 push %edi
117a10: 56 push %esi
117a11: 53 push %ebx
117a12: 83 ec 1c sub $0x1c,%esp
117a15: 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 ) {
117a18: b8 01 00 00 00 mov $0x1,%eax
117a1d: 8b 55 10 mov 0x10(%ebp),%edx
117a20: 3b 53 4c cmp 0x4c(%ebx),%edx
117a23: 77 4c ja 117a71 <_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))) {
117a25: 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 ) {
117a2c: 83 7b 48 00 cmpl $0x0,0x48(%ebx)
117a30: 74 23 je 117a55 <_CORE_message_queue_Broadcast+0x49>
*count = 0;
117a32: 8b 45 1c mov 0x1c(%ebp),%eax
117a35: c7 00 00 00 00 00 movl $0x0,(%eax)
117a3b: eb 32 jmp 117a6f <_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;
117a3d: ff 45 e4 incl -0x1c(%ebp)
const void *source,
void *destination,
size_t size
)
{
memcpy(destination, source, size);
117a40: 8b 42 2c mov 0x2c(%edx),%eax
117a43: 89 c7 mov %eax,%edi
117a45: 8b 75 0c mov 0xc(%ebp),%esi
117a48: 8b 4d 10 mov 0x10(%ebp),%ecx
117a4b: f3 a4 rep movsb %ds:(%esi),%es:(%edi)
buffer,
waitp->return_argument_second.mutable_object,
size
);
*(size_t *) the_thread->Wait.return_argument = size;
117a4d: 8b 42 28 mov 0x28(%edx),%eax
117a50: 8b 55 10 mov 0x10(%ebp),%edx
117a53: 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))) {
117a55: 83 ec 0c sub $0xc,%esp
117a58: 53 push %ebx
117a59: e8 b2 20 00 00 call 119b10 <_Thread_queue_Dequeue>
117a5e: 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 =
117a60: 83 c4 10 add $0x10,%esp
117a63: 85 c0 test %eax,%eax
117a65: 75 d6 jne 117a3d <_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;
117a67: 8b 55 e4 mov -0x1c(%ebp),%edx
117a6a: 8b 45 1c mov 0x1c(%ebp),%eax
117a6d: 89 10 mov %edx,(%eax)
117a6f: 31 c0 xor %eax,%eax
return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL;
}
117a71: 8d 65 f4 lea -0xc(%ebp),%esp
117a74: 5b pop %ebx
117a75: 5e pop %esi
117a76: 5f pop %edi
117a77: c9 leave
117a78: c3 ret
00112894 <_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
)
{
112894: 55 push %ebp
112895: 89 e5 mov %esp,%ebp
112897: 57 push %edi
112898: 56 push %esi
112899: 53 push %ebx
11289a: 83 ec 0c sub $0xc,%esp
11289d: 8b 5d 08 mov 0x8(%ebp),%ebx
1128a0: 8b 75 10 mov 0x10(%ebp),%esi
1128a3: 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;
1128a6: 89 73 44 mov %esi,0x44(%ebx)
the_message_queue->number_of_pending_messages = 0;
1128a9: c7 43 48 00 00 00 00 movl $0x0,0x48(%ebx)
the_message_queue->maximum_message_size = maximum_message_size;
1128b0: 89 53 4c mov %edx,0x4c(%ebx)
/*
* Round size up to multiple of a pointer for chain init and
* check for overflow on adding overhead to each message.
*/
allocated_message_size = maximum_message_size;
if (allocated_message_size & (sizeof(uint32_t) - 1)) {
1128b3: 89 d0 mov %edx,%eax
1128b5: f6 c2 03 test $0x3,%dl
1128b8: 74 0a je 1128c4 <_CORE_message_queue_Initialize+0x30>
allocated_message_size += sizeof(uint32_t);
1128ba: 8d 42 04 lea 0x4(%edx),%eax
allocated_message_size &= ~(sizeof(uint32_t) - 1);
1128bd: 83 e0 fc and $0xfffffffc,%eax
}
if (allocated_message_size < maximum_message_size)
1128c0: 39 d0 cmp %edx,%eax
1128c2: 72 5f jb 112923 <_CORE_message_queue_Initialize+0x8f><== 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));
1128c4: 8d 78 10 lea 0x10(%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 *
1128c7: 89 fa mov %edi,%edx
1128c9: 0f af d6 imul %esi,%edx
(allocated_message_size + sizeof(CORE_message_queue_Buffer_control));
if (message_buffering_required < allocated_message_size)
1128cc: 39 c2 cmp %eax,%edx
1128ce: 72 53 jb 112923 <_CORE_message_queue_Initialize+0x8f><== NEVER TAKEN
return false;
/*
* Attempt to allocate the message memory
*/
the_message_queue->message_buffers = (CORE_message_queue_Buffer *)
1128d0: 83 ec 0c sub $0xc,%esp
1128d3: 52 push %edx
1128d4: e8 4f 25 00 00 call 114e28 <_Workspace_Allocate>
1128d9: 89 43 5c mov %eax,0x5c(%ebx)
_Workspace_Allocate( message_buffering_required );
if (the_message_queue->message_buffers == 0)
1128dc: 83 c4 10 add $0x10,%esp
1128df: 85 c0 test %eax,%eax
1128e1: 74 40 je 112923 <_CORE_message_queue_Initialize+0x8f>
/*
* Initialize the pool of inactive messages, pending messages,
* and set of waiting threads.
*/
_Chain_Initialize (
1128e3: 57 push %edi
1128e4: 56 push %esi
1128e5: 50 push %eax
1128e6: 8d 43 60 lea 0x60(%ebx),%eax
1128e9: 50 push %eax
1128ea: e8 ed 4a 00 00 call 1173dc <_Chain_Initialize>
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
1128ef: 8d 43 54 lea 0x54(%ebx),%eax
1128f2: 89 43 50 mov %eax,0x50(%ebx)
the_chain->permanent_null = NULL;
1128f5: c7 43 54 00 00 00 00 movl $0x0,0x54(%ebx)
the_chain->last = _Chain_Head(the_chain);
1128fc: 8d 43 50 lea 0x50(%ebx),%eax
1128ff: 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(
112902: 6a 06 push $0x6
112904: 68 80 00 00 00 push $0x80
112909: 8b 45 0c mov 0xc(%ebp),%eax
11290c: 83 38 01 cmpl $0x1,(%eax)
11290f: 0f 94 c0 sete %al
112912: 0f b6 c0 movzbl %al,%eax
112915: 50 push %eax
112916: 53 push %ebx
112917: e8 20 1c 00 00 call 11453c <_Thread_queue_Initialize>
11291c: b0 01 mov $0x1,%al
THREAD_QUEUE_DISCIPLINE_PRIORITY : THREAD_QUEUE_DISCIPLINE_FIFO,
STATES_WAITING_FOR_MESSAGE,
CORE_MESSAGE_QUEUE_STATUS_TIMEOUT
);
return true;
11291e: 83 c4 20 add $0x20,%esp
112921: eb 02 jmp 112925 <_CORE_message_queue_Initialize+0x91>
112923: 31 c0 xor %eax,%eax
}
112925: 8d 65 f4 lea -0xc(%ebp),%esp
112928: 5b pop %ebx
112929: 5e pop %esi
11292a: 5f pop %edi
11292b: c9 leave
11292c: c3 ret
00112930 <_CORE_message_queue_Seize>:
void *buffer,
size_t *size_p,
bool wait,
Watchdog_Interval timeout
)
{
112930: 55 push %ebp
112931: 89 e5 mov %esp,%ebp
112933: 57 push %edi
112934: 56 push %esi
112935: 53 push %ebx
112936: 83 ec 2c sub $0x2c,%esp
112939: 8b 45 08 mov 0x8(%ebp),%eax
11293c: 8b 55 0c mov 0xc(%ebp),%edx
11293f: 89 55 dc mov %edx,-0x24(%ebp)
112942: 8b 55 10 mov 0x10(%ebp),%edx
112945: 89 55 e0 mov %edx,-0x20(%ebp)
112948: 8b 7d 14 mov 0x14(%ebp),%edi
11294b: 8b 55 1c mov 0x1c(%ebp),%edx
11294e: 89 55 d4 mov %edx,-0x2c(%ebp)
112951: 8a 55 18 mov 0x18(%ebp),%dl
112954: 88 55 db mov %dl,-0x25(%ebp)
ISR_Level level;
CORE_message_queue_Buffer_control *the_message;
Thread_Control *executing;
executing = _Thread_Executing;
112957: 8b 0d b4 d3 12 00 mov 0x12d3b4,%ecx
executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL;
11295d: c7 41 34 00 00 00 00 movl $0x0,0x34(%ecx)
_ISR_Disable( level );
112964: 9c pushf
112965: fa cli
112966: 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));
112969: 8b 50 50 mov 0x50(%eax),%edx
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
11296c: 8d 58 54 lea 0x54(%eax),%ebx
11296f: 39 da cmp %ebx,%edx
112971: 74 47 je 1129ba <_CORE_message_queue_Seize+0x8a>
{
Chain_Node *return_node;
Chain_Node *new_first;
return_node = the_chain->first;
new_first = return_node->next;
112973: 8b 32 mov (%edx),%esi
the_chain->first = new_first;
112975: 89 70 50 mov %esi,0x50(%eax)
new_first->previous = _Chain_Head(the_chain);
112978: 8d 58 50 lea 0x50(%eax),%ebx
11297b: 89 5e 04 mov %ebx,0x4(%esi)
the_message = _CORE_message_queue_Get_pending_message( the_message_queue );
if ( the_message != NULL ) {
11297e: 85 d2 test %edx,%edx
112980: 74 38 je 1129ba <_CORE_message_queue_Seize+0x8a><== NEVER TAKEN
the_message_queue->number_of_pending_messages -= 1;
112982: ff 48 48 decl 0x48(%eax)
_ISR_Enable( level );
112985: ff 75 e4 pushl -0x1c(%ebp)
112988: 9d popf
*size_p = the_message->Contents.size;
112989: 8b 4a 08 mov 0x8(%edx),%ecx
11298c: 89 0f mov %ecx,(%edi)
_Thread_Executing->Wait.count =
11298e: 8b 0d b4 d3 12 00 mov 0x12d3b4,%ecx
112994: c7 41 24 00 00 00 00 movl $0x0,0x24(%ecx)
const void *source,
void *destination,
size_t size
)
{
memcpy(destination, source, size);
11299b: 8d 72 0c lea 0xc(%edx),%esi
11299e: 8b 0f mov (%edi),%ecx
1129a0: 8b 7d e0 mov -0x20(%ebp),%edi
1129a3: f3 a4 rep movsb %ds:(%esi),%es:(%edi)
RTEMS_INLINE_ROUTINE void _CORE_message_queue_Free_message_buffer (
CORE_message_queue_Control *the_message_queue,
CORE_message_queue_Buffer_control *the_message
)
{
_Chain_Append( &the_message_queue->Inactive_messages, &the_message->Node );
1129a5: 89 55 0c mov %edx,0xc(%ebp)
1129a8: 83 c0 60 add $0x60,%eax
1129ab: 89 45 08 mov %eax,0x8(%ebp)
executing->Wait.return_argument = size_p;
/* Wait.count will be filled in with the message priority */
_ISR_Enable( level );
_Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout );
}
1129ae: 83 c4 2c add $0x2c,%esp
1129b1: 5b pop %ebx
1129b2: 5e pop %esi
1129b3: 5f pop %edi
1129b4: c9 leave
1129b5: e9 5a fe ff ff jmp 112814 <_Chain_Append>
return;
}
#endif
}
if ( !wait ) {
1129ba: 80 7d db 00 cmpb $0x0,-0x25(%ebp)
1129be: 75 13 jne 1129d3 <_CORE_message_queue_Seize+0xa3>
_ISR_Enable( level );
1129c0: ff 75 e4 pushl -0x1c(%ebp)
1129c3: 9d popf
executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_NOWAIT;
1129c4: c7 41 34 04 00 00 00 movl $0x4,0x34(%ecx)
executing->Wait.return_argument = size_p;
/* Wait.count will be filled in with the message priority */
_ISR_Enable( level );
_Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout );
}
1129cb: 83 c4 2c add $0x2c,%esp
1129ce: 5b pop %ebx
1129cf: 5e pop %esi
1129d0: 5f pop %edi
1129d1: c9 leave
1129d2: 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;
1129d3: c7 40 30 01 00 00 00 movl $0x1,0x30(%eax)
executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_NOWAIT;
return;
}
_Thread_queue_Enter_critical_section( &the_message_queue->Wait_queue );
executing->Wait.queue = &the_message_queue->Wait_queue;
1129da: 89 41 44 mov %eax,0x44(%ecx)
executing->Wait.id = id;
1129dd: 8b 55 dc mov -0x24(%ebp),%edx
1129e0: 89 51 20 mov %edx,0x20(%ecx)
executing->Wait.return_argument_second.mutable_object = buffer;
1129e3: 8b 55 e0 mov -0x20(%ebp),%edx
1129e6: 89 51 2c mov %edx,0x2c(%ecx)
executing->Wait.return_argument = size_p;
1129e9: 89 79 28 mov %edi,0x28(%ecx)
/* Wait.count will be filled in with the message priority */
_ISR_Enable( level );
1129ec: ff 75 e4 pushl -0x1c(%ebp)
1129ef: 9d popf
_Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout );
1129f0: c7 45 10 e0 45 11 00 movl $0x1145e0,0x10(%ebp)
1129f7: 8b 55 d4 mov -0x2c(%ebp),%edx
1129fa: 89 55 0c mov %edx,0xc(%ebp)
1129fd: 89 45 08 mov %eax,0x8(%ebp)
}
112a00: 83 c4 2c add $0x2c,%esp
112a03: 5b pop %ebx
112a04: 5e pop %esi
112a05: 5f pop %edi
112a06: 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 );
112a07: e9 24 19 00 00 jmp 114330 <_Thread_queue_Enqueue_with_handler>
0010afcd <_CORE_mutex_Seize>:
Objects_Id _id,
bool _wait,
Watchdog_Interval _timeout,
ISR_Level _level
)
{
10afcd: 55 push %ebp
10afce: 89 e5 mov %esp,%ebp
10afd0: 53 push %ebx
10afd1: 83 ec 14 sub $0x14,%esp
10afd4: 8b 5d 08 mov 0x8(%ebp),%ebx
10afd7: 8a 55 10 mov 0x10(%ebp),%dl
_CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level );
10afda: a1 90 56 12 00 mov 0x125690,%eax
10afdf: 85 c0 test %eax,%eax
10afe1: 74 19 je 10affc <_CORE_mutex_Seize+0x2f>
10afe3: 84 d2 test %dl,%dl
10afe5: 74 15 je 10affc <_CORE_mutex_Seize+0x2f><== NEVER TAKEN
10afe7: 83 3d 28 58 12 00 01 cmpl $0x1,0x125828
10afee: 76 0c jbe 10affc <_CORE_mutex_Seize+0x2f>
10aff0: 53 push %ebx
10aff1: 6a 13 push $0x13
10aff3: 6a 00 push $0x0
10aff5: 6a 00 push $0x0
10aff7: e8 c4 05 00 00 call 10b5c0 <_Internal_error_Occurred>
10affc: 51 push %ecx
10affd: 51 push %ecx
10affe: 8d 45 18 lea 0x18(%ebp),%eax
10b001: 50 push %eax
10b002: 53 push %ebx
10b003: 88 55 f4 mov %dl,-0xc(%ebp)
10b006: e8 79 47 00 00 call 10f784 <_CORE_mutex_Seize_interrupt_trylock>
10b00b: 83 c4 10 add $0x10,%esp
10b00e: 85 c0 test %eax,%eax
10b010: 8a 55 f4 mov -0xc(%ebp),%dl
10b013: 74 48 je 10b05d <_CORE_mutex_Seize+0x90>
10b015: 84 d2 test %dl,%dl
10b017: 75 12 jne 10b02b <_CORE_mutex_Seize+0x5e>
10b019: ff 75 18 pushl 0x18(%ebp)
10b01c: 9d popf
10b01d: a1 4c 57 12 00 mov 0x12574c,%eax
10b022: c7 40 34 01 00 00 00 movl $0x1,0x34(%eax)
10b029: eb 32 jmp 10b05d <_CORE_mutex_Seize+0x90>
RTEMS_INLINE_ROUTINE void _Thread_queue_Enter_critical_section (
Thread_queue_Control *the_thread_queue
)
{
the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;
10b02b: c7 43 30 01 00 00 00 movl $0x1,0x30(%ebx)
10b032: a1 4c 57 12 00 mov 0x12574c,%eax
10b037: 89 58 44 mov %ebx,0x44(%eax)
10b03a: 8b 55 0c mov 0xc(%ebp),%edx
10b03d: 89 50 20 mov %edx,0x20(%eax)
10b040: a1 90 56 12 00 mov 0x125690,%eax
10b045: 40 inc %eax
10b046: a3 90 56 12 00 mov %eax,0x125690
10b04b: ff 75 18 pushl 0x18(%ebp)
10b04e: 9d popf
10b04f: 50 push %eax
10b050: 50 push %eax
10b051: ff 75 14 pushl 0x14(%ebp)
10b054: 53 push %ebx
10b055: e8 26 ff ff ff call 10af80 <_CORE_mutex_Seize_interrupt_blocking>
10b05a: 83 c4 10 add $0x10,%esp
}
10b05d: 8b 5d fc mov -0x4(%ebp),%ebx
10b060: c9 leave
10b061: c3 ret
0010f784 <_CORE_mutex_Seize_interrupt_trylock>:
#if defined(__RTEMS_DO_NOT_INLINE_CORE_MUTEX_SEIZE__)
int _CORE_mutex_Seize_interrupt_trylock(
CORE_mutex_Control *the_mutex,
ISR_Level *level_p
)
{
10f784: 55 push %ebp
10f785: 89 e5 mov %esp,%ebp
10f787: 53 push %ebx
10f788: 83 ec 04 sub $0x4,%esp
10f78b: 8b 45 08 mov 0x8(%ebp),%eax
10f78e: 8b 4d 0c mov 0xc(%ebp),%ecx
{
Thread_Control *executing;
/* disabled when you get here */
executing = _Thread_Executing;
10f791: 8b 15 4c 57 12 00 mov 0x12574c,%edx
executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL;
10f797: c7 42 34 00 00 00 00 movl $0x0,0x34(%edx)
if ( !_CORE_mutex_Is_locked( the_mutex ) ) {
10f79e: 83 78 50 00 cmpl $0x0,0x50(%eax)
10f7a2: 74 7a je 10f81e <_CORE_mutex_Seize_interrupt_trylock+0x9a>
the_mutex->lock = CORE_MUTEX_LOCKED;
10f7a4: c7 40 50 00 00 00 00 movl $0x0,0x50(%eax)
the_mutex->holder = executing;
10f7ab: 89 50 5c mov %edx,0x5c(%eax)
the_mutex->holder_id = executing->Object.id;
10f7ae: 8b 5a 08 mov 0x8(%edx),%ebx
10f7b1: 89 58 60 mov %ebx,0x60(%eax)
the_mutex->nest_count = 1;
10f7b4: c7 40 54 01 00 00 00 movl $0x1,0x54(%eax)
*/
RTEMS_INLINE_ROUTINE bool _CORE_mutex_Is_inherit_priority(
CORE_mutex_Attributes *the_attribute
)
{
return the_attribute->discipline == CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT;
10f7bb: 8b 58 48 mov 0x48(%eax),%ebx
if ( !_CORE_mutex_Is_locked( the_mutex ) ) {
the_mutex->lock = CORE_MUTEX_LOCKED;
the_mutex->holder = executing;
the_mutex->holder_id = executing->Object.id;
the_mutex->nest_count = 1;
if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) ||
10f7be: 83 fb 02 cmp $0x2,%ebx
10f7c1: 74 05 je 10f7c8 <_CORE_mutex_Seize_interrupt_trylock+0x44>
10f7c3: 83 fb 03 cmp $0x3,%ebx
10f7c6: 75 75 jne 10f83d <_CORE_mutex_Seize_interrupt_trylock+0xb9>
_Chain_Prepend_unprotected( &executing->lock_mutex,
&the_mutex->queue.lock_queue );
the_mutex->queue.priority_before = executing->current_priority;
#endif
executing->resource_count++;
10f7c8: ff 42 1c incl 0x1c(%edx)
}
if ( !_CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) {
10f7cb: 83 fb 03 cmp $0x3,%ebx
10f7ce: 75 6d jne 10f83d <_CORE_mutex_Seize_interrupt_trylock+0xb9>
{
Priority_Control ceiling;
Priority_Control current;
ceiling = the_mutex->Attributes.priority_ceiling;
current = executing->current_priority;
10f7d0: 8b 5a 14 mov 0x14(%edx),%ebx
if ( current == ceiling ) {
10f7d3: 3b 58 4c cmp 0x4c(%eax),%ebx
10f7d6: 74 65 je 10f83d <_CORE_mutex_Seize_interrupt_trylock+0xb9>
_ISR_Enable( *level_p );
return 0;
}
if ( current > ceiling ) {
10f7d8: 76 2a jbe 10f804 <_CORE_mutex_Seize_interrupt_trylock+0x80>
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
10f7da: 8b 15 90 56 12 00 mov 0x125690,%edx
10f7e0: 42 inc %edx
10f7e1: 89 15 90 56 12 00 mov %edx,0x125690
_Thread_Disable_dispatch();
_ISR_Enable( *level_p );
10f7e7: ff 31 pushl (%ecx)
10f7e9: 9d popf
_Thread_Change_priority(
10f7ea: 52 push %edx
10f7eb: 6a 00 push $0x0
10f7ed: ff 70 4c pushl 0x4c(%eax)
10f7f0: ff 70 5c pushl 0x5c(%eax)
10f7f3: e8 9c c5 ff ff call 10bd94 <_Thread_Change_priority>
the_mutex->holder,
the_mutex->Attributes.priority_ceiling,
false
);
_Thread_Enable_dispatch();
10f7f8: e8 34 ca ff ff call 10c231 <_Thread_Enable_dispatch>
10f7fd: 31 c0 xor %eax,%eax
10f7ff: 83 c4 10 add $0x10,%esp
10f802: eb 45 jmp 10f849 <_CORE_mutex_Seize_interrupt_trylock+0xc5>
return 0;
}
/* if ( current < ceiling ) */ {
executing->Wait.return_code = CORE_MUTEX_STATUS_CEILING_VIOLATED;
10f804: c7 42 34 06 00 00 00 movl $0x6,0x34(%edx)
the_mutex->lock = CORE_MUTEX_UNLOCKED;
10f80b: c7 40 50 01 00 00 00 movl $0x1,0x50(%eax)
the_mutex->nest_count = 0; /* undo locking above */
10f812: c7 40 54 00 00 00 00 movl $0x0,0x54(%eax)
executing->resource_count--; /* undo locking above */
10f819: ff 4a 1c decl 0x1c(%edx)
10f81c: eb 1f jmp 10f83d <_CORE_mutex_Seize_interrupt_trylock+0xb9>
/*
* At this point, we know the mutex was not available. If this thread
* is the thread that has locked the mutex, let's see if we are allowed
* to nest access.
*/
if ( _Thread_Is_executing( the_mutex->holder ) ) {
10f81e: 8b 58 5c mov 0x5c(%eax),%ebx
10f821: 39 d3 cmp %edx,%ebx
10f823: 75 1f jne 10f844 <_CORE_mutex_Seize_interrupt_trylock+0xc0>
switch ( the_mutex->Attributes.lock_nesting_behavior ) {
10f825: 8b 50 40 mov 0x40(%eax),%edx
10f828: 85 d2 test %edx,%edx
10f82a: 74 05 je 10f831 <_CORE_mutex_Seize_interrupt_trylock+0xad>
10f82c: 4a dec %edx
10f82d: 75 15 jne 10f844 <_CORE_mutex_Seize_interrupt_trylock+0xc0><== ALWAYS TAKEN
10f82f: eb 05 jmp 10f836 <_CORE_mutex_Seize_interrupt_trylock+0xb2><== NOT EXECUTED
case CORE_MUTEX_NESTING_ACQUIRES:
the_mutex->nest_count++;
10f831: ff 40 54 incl 0x54(%eax)
10f834: eb 07 jmp 10f83d <_CORE_mutex_Seize_interrupt_trylock+0xb9>
_ISR_Enable( *level_p );
return 0;
case CORE_MUTEX_NESTING_IS_ERROR:
executing->Wait.return_code = CORE_MUTEX_STATUS_NESTING_NOT_ALLOWED;
10f836: c7 43 34 02 00 00 00 movl $0x2,0x34(%ebx) <== NOT EXECUTED
_ISR_Enable( *level_p );
10f83d: ff 31 pushl (%ecx)
10f83f: 9d popf
10f840: 31 c0 xor %eax,%eax
10f842: eb 05 jmp 10f849 <_CORE_mutex_Seize_interrupt_trylock+0xc5>
10f844: b8 01 00 00 00 mov $0x1,%eax
return _CORE_mutex_Seize_interrupt_trylock_body( the_mutex, level_p );
}
10f849: 8b 5d fc mov -0x4(%ebp),%ebx
10f84c: c9 leave
10f84d: c3 ret
0010b190 <_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
)
{
10b190: 55 push %ebp
10b191: 89 e5 mov %esp,%ebp
10b193: 53 push %ebx
10b194: 83 ec 10 sub $0x10,%esp
10b197: 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)) ) {
10b19a: 53 push %ebx
10b19b: e8 18 14 00 00 call 10c5b8 <_Thread_queue_Dequeue>
10b1a0: 89 c2 mov %eax,%edx
10b1a2: 83 c4 10 add $0x10,%esp
10b1a5: 31 c0 xor %eax,%eax
10b1a7: 85 d2 test %edx,%edx
10b1a9: 75 15 jne 10b1c0 <_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 );
10b1ab: 9c pushf
10b1ac: fa cli
10b1ad: 59 pop %ecx
if ( the_semaphore->count < the_semaphore->Attributes.maximum_count )
10b1ae: 8b 53 48 mov 0x48(%ebx),%edx
10b1b1: b0 04 mov $0x4,%al
10b1b3: 3b 53 40 cmp 0x40(%ebx),%edx
10b1b6: 73 06 jae 10b1be <_CORE_semaphore_Surrender+0x2e><== NEVER TAKEN
the_semaphore->count += 1;
10b1b8: 42 inc %edx
10b1b9: 89 53 48 mov %edx,0x48(%ebx)
10b1bc: 30 c0 xor %al,%al
else
status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED;
_ISR_Enable( level );
10b1be: 51 push %ecx
10b1bf: 9d popf
}
return status;
}
10b1c0: 8b 5d fc mov -0x4(%ebp),%ebx
10b1c3: c9 leave
10b1c4: 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 4c 57 12 00 mov 0x12574c,%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 f0 00 00 00 mov 0xf0(%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 24 59 12 00 01 movl $0x1,0x125924
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 6c 57 12 00 push $0x12576c
10a13f: e8 60 2e 00 00 call 10cfa4 <_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 b4 28 00 00 call 10ca08 <_Thread_Set_state>
_ISR_Disable( level );
10a154: 9c pushf
10a155: fa cli
10a156: 5a pop %edx
sync_state = _Event_Sync_state;
10a157: a1 24 59 12 00 mov 0x125924,%eax
_Event_Sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
10a15c: c7 05 24 59 12 00 00 movl $0x0,0x125924
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 c1 1b 00 00 jmp 10bd48 <_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 f0 00 00 00 mov 0xf0(%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 28 57 12 00 mov 0x125728,%ecx
10a20d: 85 c9 test %ecx,%ecx
10a20f: 74 47 je 10a258 <_Event_Surrender+0x7c>
10a211: 3b 1d 4c 57 12 00 cmp 0x12574c,%ebx
10a217: 75 3f jne 10a258 <_Event_Surrender+0x7c>
_Thread_Is_executing( the_thread ) &&
((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) ||
10a219: 8b 0d 24 59 12 00 mov 0x125924,%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 24 59 12 00 mov 0x125924,%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 24 59 12 00 03 movl $0x3,0x125924
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 17 2e 00 00 call 10d0b8 <_Watchdog_Remove>
10a2a1: 58 pop %eax
10a2a2: 5a pop %edx
10a2a3: 68 f8 ff 03 10 push $0x1003fff8
10a2a8: 53 push %ebx
10a2a9: e8 06 1c 00 00 call 10beb4 <_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 82 1f 00 00 call 10c254 <_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 4c 57 12 00 cmp 0x12574c,%eax
10a2eb: 75 13 jne 10a300 <_Event_Timeout+0x40>
if ( _Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )
10a2ed: 8b 0d 24 59 12 00 mov 0x125924,%ecx
10a2f3: 49 dec %ecx
10a2f4: 75 0a jne 10a300 <_Event_Timeout+0x40> <== ALWAYS TAKEN
_Event_Sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT;
10a2f6: c7 05 24 59 12 00 02 movl $0x2,0x125924 <== NOT EXECUTED
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 9e 1b 00 00 call 10beb4 <_Thread_Clear_state>
*/
RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void )
{
RTEMS_COMPILER_MEMORY_BARRIER();
_Thread_Dispatch_disable_level -= 1;
10a316: a1 90 56 12 00 mov 0x125690,%eax
10a31b: 48 dec %eax
10a31c: a3 90 56 12 00 mov %eax,0x125690
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
0010f8ac <_Heap_Allocate_aligned_with_boundary>:
Heap_Control *heap,
uintptr_t alloc_size,
uintptr_t alignment,
uintptr_t boundary
)
{
10f8ac: 55 push %ebp
10f8ad: 89 e5 mov %esp,%ebp
10f8af: 57 push %edi
10f8b0: 56 push %esi
10f8b1: 53 push %ebx
10f8b2: 83 ec 2c sub $0x2c,%esp
10f8b5: 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;
10f8b8: 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;
10f8bb: 8b 46 10 mov 0x10(%esi),%eax
10f8be: 89 45 e0 mov %eax,-0x20(%ebp)
uintptr_t alloc_begin = 0;
uint32_t search_count = 0;
if ( block_size_floor < alloc_size ) {
10f8c1: 8b 45 0c mov 0xc(%ebp),%eax
10f8c4: 83 c0 04 add $0x4,%eax
10f8c7: 89 45 cc mov %eax,-0x34(%ebp)
10f8ca: 0f 82 2f 01 00 00 jb 10f9ff <_Heap_Allocate_aligned_with_boundary+0x153>
/* Integer overflow occured */
return NULL;
}
if ( boundary != 0 ) {
10f8d0: 83 7d 14 00 cmpl $0x0,0x14(%ebp)
10f8d4: 74 18 je 10f8ee <_Heap_Allocate_aligned_with_boundary+0x42>
if ( boundary < alloc_size ) {
10f8d6: 8b 45 0c mov 0xc(%ebp),%eax
10f8d9: 39 45 14 cmp %eax,0x14(%ebp)
10f8dc: 0f 82 1d 01 00 00 jb 10f9ff <_Heap_Allocate_aligned_with_boundary+0x153>
return NULL;
}
if ( alignment == 0 ) {
10f8e2: 83 7d 10 00 cmpl $0x0,0x10(%ebp)
10f8e6: 75 06 jne 10f8ee <_Heap_Allocate_aligned_with_boundary+0x42>
10f8e8: 8b 45 e0 mov -0x20(%ebp),%eax
10f8eb: 89 45 10 mov %eax,0x10(%ebp)
10f8ee: 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;
10f8f5: 8b 45 e0 mov -0x20(%ebp),%eax
10f8f8: 83 c0 07 add $0x7,%eax
10f8fb: 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;
10f8fe: c7 45 d8 04 00 00 00 movl $0x4,-0x28(%ebp)
10f905: 8b 45 0c mov 0xc(%ebp),%eax
10f908: 29 45 d8 sub %eax,-0x28(%ebp)
10f90b: 89 f7 mov %esi,%edi
10f90d: e9 ba 00 00 00 jmp 10f9cc <_Heap_Allocate_aligned_with_boundary+0x120>
while ( block != free_list_tail ) {
_HAssert( _Heap_Is_prev_used( block ) );
/* Statistics */
++search_count;
10f912: 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 ) {
10f915: 8b 59 04 mov 0x4(%ecx),%ebx
10f918: 3b 5d cc cmp -0x34(%ebp),%ebx
10f91b: 0f 86 a8 00 00 00 jbe 10f9c9 <_Heap_Allocate_aligned_with_boundary+0x11d>
if ( alignment == 0 ) {
10f921: 83 7d 10 00 cmpl $0x0,0x10(%ebp)
10f925: 8d 41 08 lea 0x8(%ecx),%eax
10f928: 89 45 dc mov %eax,-0x24(%ebp)
10f92b: 75 07 jne 10f934 <_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;
10f92d: 89 c3 mov %eax,%ebx
10f92f: e9 91 00 00 00 jmp 10f9c5 <_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;
10f934: 8b 47 14 mov 0x14(%edi),%eax
10f937: 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;
10f93a: 83 e3 fe and $0xfffffffe,%ebx
10f93d: 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;
10f940: 8b 75 c8 mov -0x38(%ebp),%esi
10f943: 29 c6 sub %eax,%esi
10f945: 01 de add %ebx,%esi
uintptr_t alloc_end = block_end + HEAP_BLOCK_SIZE_OFFSET;
uintptr_t alloc_begin = alloc_end - alloc_size;
10f947: 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);
10f94a: 89 d8 mov %ebx,%eax
10f94c: 31 d2 xor %edx,%edx
10f94e: f7 75 10 divl 0x10(%ebp)
10f951: 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 ) {
10f953: 39 f3 cmp %esi,%ebx
10f955: 76 0b jbe 10f962 <_Heap_Allocate_aligned_with_boundary+0xb6>
10f957: 89 f0 mov %esi,%eax
10f959: 31 d2 xor %edx,%edx
10f95b: f7 75 10 divl 0x10(%ebp)
10f95e: 89 f3 mov %esi,%ebx
10f960: 29 d3 sub %edx,%ebx
}
alloc_end = alloc_begin + alloc_size;
/* Ensure boundary constaint */
if ( boundary != 0 ) {
10f962: 83 7d 14 00 cmpl $0x0,0x14(%ebp)
10f966: 74 3f je 10f9a7 <_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;
10f968: 8b 45 0c mov 0xc(%ebp),%eax
10f96b: 8d 34 03 lea (%ebx,%eax,1),%esi
/* Ensure boundary constaint */
if ( boundary != 0 ) {
uintptr_t const boundary_floor = alloc_begin_floor + alloc_size;
10f96e: 8b 45 dc mov -0x24(%ebp),%eax
10f971: 03 45 0c add 0xc(%ebp),%eax
10f974: 89 45 d0 mov %eax,-0x30(%ebp)
10f977: eb 19 jmp 10f992 <_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 ) {
10f979: 3b 55 d0 cmp -0x30(%ebp),%edx
10f97c: 72 4b jb 10f9c9 <_Heap_Allocate_aligned_with_boundary+0x11d>
return 0;
}
alloc_begin = boundary_line - alloc_size;
10f97e: 89 d3 mov %edx,%ebx
10f980: 2b 5d 0c sub 0xc(%ebp),%ebx
10f983: 89 d8 mov %ebx,%eax
10f985: 31 d2 xor %edx,%edx
10f987: f7 75 10 divl 0x10(%ebp)
10f98a: 29 d3 sub %edx,%ebx
alloc_begin = _Heap_Align_down( alloc_begin, alignment );
alloc_end = alloc_begin + alloc_size;
10f98c: 8b 45 0c mov 0xc(%ebp),%eax
10f98f: 8d 34 03 lea (%ebx,%eax,1),%esi
10f992: 89 f0 mov %esi,%eax
10f994: 31 d2 xor %edx,%edx
10f996: f7 75 14 divl 0x14(%ebp)
10f999: 89 f0 mov %esi,%eax
10f99b: 29 d0 sub %edx,%eax
10f99d: 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 ) {
10f99f: 39 f0 cmp %esi,%eax
10f9a1: 73 04 jae 10f9a7 <_Heap_Allocate_aligned_with_boundary+0xfb>
10f9a3: 39 c3 cmp %eax,%ebx
10f9a5: 72 d2 jb 10f979 <_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 ) {
10f9a7: 3b 5d dc cmp -0x24(%ebp),%ebx
10f9aa: 72 1d jb 10f9c9 <_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;
10f9ac: be f8 ff ff ff mov $0xfffffff8,%esi
10f9b1: 29 ce sub %ecx,%esi
10f9b3: 01 de add %ebx,%esi
10f9b5: 89 d8 mov %ebx,%eax
10f9b7: 31 d2 xor %edx,%edx
10f9b9: f7 75 e0 divl -0x20(%ebp)
if ( free_size >= min_block_size || free_size == 0 ) {
10f9bc: 29 d6 sub %edx,%esi
10f9be: 74 05 je 10f9c5 <_Heap_Allocate_aligned_with_boundary+0x119>
10f9c0: 3b 75 d4 cmp -0x2c(%ebp),%esi
10f9c3: 72 04 jb 10f9c9 <_Heap_Allocate_aligned_with_boundary+0x11d>
boundary
);
}
}
if ( alloc_begin != 0 ) {
10f9c5: 85 db test %ebx,%ebx
10f9c7: 75 11 jne 10f9da <_Heap_Allocate_aligned_with_boundary+0x12e><== ALWAYS TAKEN
break;
}
block = block->next;
10f9c9: 8b 49 08 mov 0x8(%ecx),%ecx
if ( alignment == 0 ) {
alignment = page_size;
}
}
while ( block != free_list_tail ) {
10f9cc: 39 f9 cmp %edi,%ecx
10f9ce: 0f 85 3e ff ff ff jne 10f912 <_Heap_Allocate_aligned_with_boundary+0x66>
10f9d4: 89 fe mov %edi,%esi
10f9d6: 31 db xor %ebx,%ebx
10f9d8: eb 16 jmp 10f9f0 <_Heap_Allocate_aligned_with_boundary+0x144>
10f9da: 89 fe mov %edi,%esi
block = block->next;
}
if ( alloc_begin != 0 ) {
/* Statistics */
stats->searches += search_count;
10f9dc: 8b 45 e4 mov -0x1c(%ebp),%eax
10f9df: 01 47 4c add %eax,0x4c(%edi)
block = _Heap_Block_allocate( heap, block, alloc_begin, alloc_size );
10f9e2: ff 75 0c pushl 0xc(%ebp)
10f9e5: 53 push %ebx
10f9e6: 51 push %ecx
10f9e7: 57 push %edi
10f9e8: e8 f7 ba ff ff call 10b4e4 <_Heap_Block_allocate>
10f9ed: 83 c4 10 add $0x10,%esp
uintptr_t alloc_size,
uintptr_t alignment,
uintptr_t boundary
)
{
Heap_Statistics *const stats = &heap->stats;
10f9f0: 8b 45 e4 mov -0x1c(%ebp),%eax
10f9f3: 39 46 44 cmp %eax,0x44(%esi)
10f9f6: 73 03 jae 10f9fb <_Heap_Allocate_aligned_with_boundary+0x14f>
);
}
/* Statistics */
if ( stats->max_search < search_count ) {
stats->max_search = search_count;
10f9f8: 89 46 44 mov %eax,0x44(%esi)
}
return (void *) alloc_begin;
10f9fb: 89 d8 mov %ebx,%eax
10f9fd: eb 02 jmp 10fa01 <_Heap_Allocate_aligned_with_boundary+0x155>
10f9ff: 31 c0 xor %eax,%eax
}
10fa01: 8d 65 f4 lea -0xc(%ebp),%esp
10fa04: 5b pop %ebx
10fa05: 5e pop %esi
10fa06: 5f pop %edi
10fa07: c9 leave
10fa08: c3 ret
00112d04 <_Heap_Extend>:
Heap_Control *heap,
void *area_begin_ptr,
uintptr_t area_size,
uintptr_t *amount_extended
)
{
112d04: 55 push %ebp
112d05: 89 e5 mov %esp,%ebp
112d07: 56 push %esi
112d08: 53 push %ebx
112d09: 8b 4d 08 mov 0x8(%ebp),%ecx
112d0c: 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;
112d0f: 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;
112d12: 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 ) {
112d15: 39 f2 cmp %esi,%edx
112d17: 73 0a jae 112d23 <_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;
112d19: b8 01 00 00 00 mov $0x1,%eax
112d1e: 3b 51 18 cmp 0x18(%ecx),%edx
112d21: 73 5f jae 112d82 <_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 ) {
112d23: b8 02 00 00 00 mov $0x2,%eax
112d28: 39 f2 cmp %esi,%edx
112d2a: 75 56 jne 112d82 <_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;
112d2c: 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;
112d2f: 89 51 1c mov %edx,0x1c(%ecx)
extend_size = new_heap_area_end
112d32: 29 da sub %ebx,%edx
112d34: 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);
112d37: 89 f0 mov %esi,%eax
112d39: 31 d2 xor %edx,%edx
112d3b: f7 71 10 divl 0x10(%ecx)
112d3e: 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;
112d40: 8b 45 14 mov 0x14(%ebp),%eax
112d43: 89 30 mov %esi,(%eax)
if( extend_size >= heap->min_block_size ) {
112d45: 31 c0 xor %eax,%eax
112d47: 3b 71 14 cmp 0x14(%ecx),%esi
112d4a: 72 36 jb 112d82 <_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);
112d4c: 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;
112d4f: 8b 43 04 mov 0x4(%ebx),%eax
112d52: 83 e0 01 and $0x1,%eax
112d55: 09 f0 or %esi,%eax
112d57: 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 =
112d5a: 8b 41 20 mov 0x20(%ecx),%eax
112d5d: 29 d0 sub %edx,%eax
112d5f: 83 c8 01 or $0x1,%eax
112d62: 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;
112d65: 89 51 24 mov %edx,0x24(%ecx)
/* Statistics */
stats->size += extend_size;
112d68: 01 71 2c add %esi,0x2c(%ecx)
++stats->used_blocks;
112d6b: ff 41 40 incl 0x40(%ecx)
--stats->frees; /* Do not count subsequent call as actual free() */
112d6e: ff 49 50 decl 0x50(%ecx)
_Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( last_block ));
112d71: 50 push %eax
112d72: 50 push %eax
112d73: 83 c3 08 add $0x8,%ebx
112d76: 53 push %ebx
112d77: 51 push %ecx
112d78: e8 67 b1 ff ff call 10dee4 <_Heap_Free>
112d7d: 31 c0 xor %eax,%eax
112d7f: 83 c4 10 add $0x10,%esp
}
return HEAP_EXTEND_SUCCESSFUL;
}
112d82: 8d 65 f8 lea -0x8(%ebp),%esp
112d85: 5b pop %ebx
112d86: 5e pop %esi
112d87: c9 leave
112d88: c3 ret
0010fa0c <_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 )
{
10fa0c: 55 push %ebp
10fa0d: 89 e5 mov %esp,%ebp
10fa0f: 57 push %edi
10fa10: 56 push %esi
10fa11: 53 push %ebx
10fa12: 83 ec 14 sub $0x14,%esp
10fa15: 8b 4d 08 mov 0x8(%ebp),%ecx
10fa18: 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 )
10fa1b: 8d 58 f8 lea -0x8(%eax),%ebx
10fa1e: 31 d2 xor %edx,%edx
10fa20: f7 71 10 divl 0x10(%ecx)
10fa23: 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;
10fa25: 8b 41 20 mov 0x20(%ecx),%eax
10fa28: 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
10fa2b: 31 c0 xor %eax,%eax
10fa2d: 3b 5d f0 cmp -0x10(%ebp),%ebx
10fa30: 72 08 jb 10fa3a <_Heap_Free+0x2e>
10fa32: 31 c0 xor %eax,%eax
10fa34: 39 59 24 cmp %ebx,0x24(%ecx)
10fa37: 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 ) ) {
10fa3a: 85 c0 test %eax,%eax
10fa3c: 0f 84 2d 01 00 00 je 10fb6f <_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;
10fa42: 8b 7b 04 mov 0x4(%ebx),%edi
10fa45: 89 fa mov %edi,%edx
10fa47: 83 e2 fe and $0xfffffffe,%edx
10fa4a: 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);
10fa4d: 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
10fa50: 31 f6 xor %esi,%esi
10fa52: 3b 45 f0 cmp -0x10(%ebp),%eax
10fa55: 72 0e jb 10fa65 <_Heap_Free+0x59> <== NEVER TAKEN
10fa57: 39 41 24 cmp %eax,0x24(%ecx)
10fa5a: 0f 93 c2 setae %dl
10fa5d: 89 d6 mov %edx,%esi
10fa5f: 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 ) ) {
10fa65: 85 f6 test %esi,%esi
10fa67: 0f 84 02 01 00 00 je 10fb6f <_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;
10fa6d: 8b 70 04 mov 0x4(%eax),%esi
_HAssert( false );
return false;
}
if ( !_Heap_Is_prev_used( next_block ) ) {
10fa70: f7 c6 01 00 00 00 test $0x1,%esi
10fa76: 0f 84 f3 00 00 00 je 10fb6f <_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;
10fa7c: 83 e6 fe and $0xfffffffe,%esi
10fa7f: 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 ));
10fa82: 8b 51 24 mov 0x24(%ecx),%edx
10fa85: 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
10fa88: 31 f6 xor %esi,%esi
10fa8a: 39 d0 cmp %edx,%eax
10fa8c: 74 0d je 10fa9b <_Heap_Free+0x8f>
10fa8e: 8b 55 e8 mov -0x18(%ebp),%edx
10fa91: 8b 74 10 04 mov 0x4(%eax,%edx,1),%esi
10fa95: 83 e6 01 and $0x1,%esi
10fa98: 83 f6 01 xor $0x1,%esi
&& !_Heap_Is_prev_used( _Heap_Block_at( next_block, next_block_size ));
if ( !_Heap_Is_prev_used( block ) ) {
10fa9b: 83 e7 01 and $0x1,%edi
10fa9e: 75 64 jne 10fb04 <_Heap_Free+0xf8>
uintptr_t const prev_size = block->prev_size;
10faa0: 8b 13 mov (%ebx),%edx
10faa2: 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);
10faa5: 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
10faa7: 31 ff xor %edi,%edi
10faa9: 3b 5d f0 cmp -0x10(%ebp),%ebx
10faac: 72 0e jb 10fabc <_Heap_Free+0xb0> <== NEVER TAKEN
10faae: 39 5d e4 cmp %ebx,-0x1c(%ebp)
10fab1: 0f 93 c2 setae %dl
10fab4: 89 d7 mov %edx,%edi
10fab6: 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 ) ) {
10fabc: 85 ff test %edi,%edi
10fabe: 0f 84 ab 00 00 00 je 10fb6f <_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) ) {
10fac4: f6 43 04 01 testb $0x1,0x4(%ebx)
10fac8: 0f 84 a1 00 00 00 je 10fb6f <_Heap_Free+0x163> <== NEVER TAKEN
_HAssert( false );
return( false );
}
if ( next_is_free ) { /* coalesce both */
10face: 89 f2 mov %esi,%edx
10fad0: 84 d2 test %dl,%dl
10fad2: 74 1a je 10faee <_Heap_Free+0xe2>
uintptr_t const size = block_size + prev_size + next_block_size;
10fad4: 8b 75 e0 mov -0x20(%ebp),%esi
10fad7: 03 75 e8 add -0x18(%ebp),%esi
10fada: 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;
10fadd: 8b 78 08 mov 0x8(%eax),%edi
Heap_Block *prev = block->prev;
10fae0: 8b 40 0c mov 0xc(%eax),%eax
prev->next = next;
10fae3: 89 78 08 mov %edi,0x8(%eax)
next->prev = prev;
10fae6: 89 47 0c mov %eax,0xc(%edi)
_Heap_Free_list_remove( next_block );
stats->free_blocks -= 1;
10fae9: ff 49 38 decl 0x38(%ecx)
10faec: eb 34 jmp 10fb22 <_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;
10faee: 8b 75 e0 mov -0x20(%ebp),%esi
10faf1: 03 75 ec add -0x14(%ebp),%esi
prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED;
10faf4: 89 f7 mov %esi,%edi
10faf6: 83 cf 01 or $0x1,%edi
10faf9: 89 7b 04 mov %edi,0x4(%ebx)
next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;
10fafc: 83 60 04 fe andl $0xfffffffe,0x4(%eax)
next_block->prev_size = size;
10fb00: 89 30 mov %esi,(%eax)
10fb02: eb 5b jmp 10fb5f <_Heap_Free+0x153>
}
} else if ( next_is_free ) { /* coalesce next */
10fb04: 89 f2 mov %esi,%edx
10fb06: 84 d2 test %dl,%dl
10fb08: 74 25 je 10fb2f <_Heap_Free+0x123>
uintptr_t const size = block_size + next_block_size;
10fb0a: 8b 75 e8 mov -0x18(%ebp),%esi
10fb0d: 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;
10fb10: 8b 78 08 mov 0x8(%eax),%edi
Heap_Block *prev = old_block->prev;
10fb13: 8b 40 0c mov 0xc(%eax),%eax
new_block->next = next;
10fb16: 89 7b 08 mov %edi,0x8(%ebx)
new_block->prev = prev;
10fb19: 89 43 0c mov %eax,0xc(%ebx)
next->prev = new_block;
10fb1c: 89 5f 0c mov %ebx,0xc(%edi)
prev->next = new_block;
10fb1f: 89 58 08 mov %ebx,0x8(%eax)
_Heap_Free_list_replace( next_block, block );
block->size_and_flag = size | HEAP_PREV_BLOCK_USED;
10fb22: 89 f0 mov %esi,%eax
10fb24: 83 c8 01 or $0x1,%eax
10fb27: 89 43 04 mov %eax,0x4(%ebx)
next_block = _Heap_Block_at( block, size );
next_block->prev_size = size;
10fb2a: 89 34 33 mov %esi,(%ebx,%esi,1)
10fb2d: eb 30 jmp 10fb5f <_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;
10fb2f: 8b 71 08 mov 0x8(%ecx),%esi
new_block->next = next;
10fb32: 89 73 08 mov %esi,0x8(%ebx)
new_block->prev = block_before;
10fb35: 89 4b 0c mov %ecx,0xc(%ebx)
block_before->next = new_block;
10fb38: 89 59 08 mov %ebx,0x8(%ecx)
next->prev = new_block;
10fb3b: 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;
10fb3e: 8b 75 e0 mov -0x20(%ebp),%esi
10fb41: 83 ce 01 or $0x1,%esi
10fb44: 89 73 04 mov %esi,0x4(%ebx)
next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;
10fb47: 83 60 04 fe andl $0xfffffffe,0x4(%eax)
next_block->prev_size = block_size;
10fb4b: 8b 55 e0 mov -0x20(%ebp),%edx
10fb4e: 89 10 mov %edx,(%eax)
/* Statistics */
++stats->free_blocks;
10fb50: 8b 41 38 mov 0x38(%ecx),%eax
10fb53: 40 inc %eax
10fb54: 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;
10fb57: 39 41 3c cmp %eax,0x3c(%ecx)
10fb5a: 73 03 jae 10fb5f <_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;
10fb5c: 89 41 3c mov %eax,0x3c(%ecx)
}
}
/* Statistics */
--stats->used_blocks;
10fb5f: ff 49 40 decl 0x40(%ecx)
++stats->frees;
10fb62: ff 41 50 incl 0x50(%ecx)
stats->free_size += block_size;
10fb65: 8b 45 e0 mov -0x20(%ebp),%eax
10fb68: 01 41 30 add %eax,0x30(%ecx)
10fb6b: b0 01 mov $0x1,%al
return( true );
10fb6d: eb 02 jmp 10fb71 <_Heap_Free+0x165>
10fb6f: 31 c0 xor %eax,%eax
}
10fb71: 83 c4 14 add $0x14,%esp
10fb74: 5b pop %ebx
10fb75: 5e pop %esi
10fb76: 5f pop %edi
10fb77: c9 leave
10fb78: c3 ret
0011d494 <_Heap_Size_of_alloc_area>:
bool _Heap_Size_of_alloc_area(
Heap_Control *heap,
void *alloc_begin_ptr,
uintptr_t *alloc_size
)
{
11d494: 55 push %ebp
11d495: 89 e5 mov %esp,%ebp
11d497: 56 push %esi
11d498: 53 push %ebx
11d499: 8b 5d 08 mov 0x8(%ebp),%ebx
11d49c: 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 )
11d49f: 8d 4e f8 lea -0x8(%esi),%ecx
11d4a2: 89 f0 mov %esi,%eax
11d4a4: 31 d2 xor %edx,%edx
11d4a6: f7 73 10 divl 0x10(%ebx)
11d4a9: 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;
11d4ab: 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
11d4ae: 31 c0 xor %eax,%eax
11d4b0: 39 d1 cmp %edx,%ecx
11d4b2: 72 08 jb 11d4bc <_Heap_Size_of_alloc_area+0x28>
11d4b4: 31 c0 xor %eax,%eax
11d4b6: 39 4b 24 cmp %ecx,0x24(%ebx)
11d4b9: 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 ) ) {
11d4bc: 85 c0 test %eax,%eax
11d4be: 74 2e je 11d4ee <_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);
11d4c0: 8b 41 04 mov 0x4(%ecx),%eax
11d4c3: 83 e0 fe and $0xfffffffe,%eax
11d4c6: 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
11d4c8: 31 c0 xor %eax,%eax
11d4ca: 39 d1 cmp %edx,%ecx
11d4cc: 72 08 jb 11d4d6 <_Heap_Size_of_alloc_area+0x42><== NEVER TAKEN
11d4ce: 31 c0 xor %eax,%eax
11d4d0: 39 4b 24 cmp %ecx,0x24(%ebx)
11d4d3: 0f 93 c0 setae %al
}
block_size = _Heap_Block_size( block );
next_block = _Heap_Block_at( block, block_size );
if (
11d4d6: 85 c0 test %eax,%eax
11d4d8: 74 14 je 11d4ee <_Heap_Size_of_alloc_area+0x5a><== NEVER TAKEN
11d4da: f6 41 04 01 testb $0x1,0x4(%ecx)
11d4de: 74 0e je 11d4ee <_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;
11d4e0: 29 f1 sub %esi,%ecx
11d4e2: 8d 51 04 lea 0x4(%ecx),%edx
11d4e5: 8b 45 10 mov 0x10(%ebp),%eax
11d4e8: 89 10 mov %edx,(%eax)
11d4ea: b0 01 mov $0x1,%al
return true;
11d4ec: eb 02 jmp 11d4f0 <_Heap_Size_of_alloc_area+0x5c>
11d4ee: 31 c0 xor %eax,%eax
}
11d4f0: 5b pop %ebx
11d4f1: 5e pop %esi
11d4f2: c9 leave
11d4f3: c3 ret
0010bfb9 <_Heap_Walk>:
bool _Heap_Walk(
Heap_Control *heap,
int source,
bool dump
)
{
10bfb9: 55 push %ebp
10bfba: 89 e5 mov %esp,%ebp
10bfbc: 57 push %edi
10bfbd: 56 push %esi
10bfbe: 53 push %ebx
10bfbf: 83 ec 4c sub $0x4c,%esp
10bfc2: 8b 7d 08 mov 0x8(%ebp),%edi
10bfc5: 8b 75 0c mov 0xc(%ebp),%esi
uintptr_t const page_size = heap->page_size;
10bfc8: 8b 4f 10 mov 0x10(%edi),%ecx
uintptr_t const min_block_size = heap->min_block_size;
10bfcb: 8b 47 14 mov 0x14(%edi),%eax
10bfce: 89 45 dc mov %eax,-0x24(%ebp)
Heap_Block *const last_block = heap->last_block;
10bfd1: 8b 57 24 mov 0x24(%edi),%edx
10bfd4: 89 55 d0 mov %edx,-0x30(%ebp)
Heap_Block *block = heap->first_block;
10bfd7: 8b 5f 20 mov 0x20(%edi),%ebx
Heap_Walk_printer printer = dump ?
_Heap_Walk_print : _Heap_Walk_print_nothing;
10bfda: c7 45 e4 cb c2 10 00 movl $0x10c2cb,-0x1c(%ebp)
10bfe1: 80 7d 10 00 cmpb $0x0,0x10(%ebp)
10bfe5: 75 07 jne 10bfee <_Heap_Walk+0x35>
10bfe7: c7 45 e4 b4 bf 10 00 movl $0x10bfb4,-0x1c(%ebp)
if ( !_System_state_Is_up( _System_state_Get() ) ) {
10bfee: 83 3d 90 73 12 00 03 cmpl $0x3,0x127390
10bff5: 0f 85 c6 02 00 00 jne 10c2c1 <_Heap_Walk+0x308> <== NEVER TAKEN
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)(
10bffb: 50 push %eax
10bffc: ff 77 0c pushl 0xc(%edi)
10bfff: ff 77 08 pushl 0x8(%edi)
10c002: ff 75 d0 pushl -0x30(%ebp)
10c005: 53 push %ebx
10c006: ff 77 1c pushl 0x1c(%edi)
10c009: ff 77 18 pushl 0x18(%edi)
10c00c: ff 75 dc pushl -0x24(%ebp)
10c00f: 51 push %ecx
10c010: 68 b4 01 12 00 push $0x1201b4
10c015: 6a 00 push $0x0
10c017: 56 push %esi
10c018: 89 4d bc mov %ecx,-0x44(%ebp)
10c01b: 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 ) {
10c01e: 83 c4 30 add $0x30,%esp
10c021: 8b 4d bc mov -0x44(%ebp),%ecx
10c024: 85 c9 test %ecx,%ecx
10c026: 75 0b jne 10c033 <_Heap_Walk+0x7a>
(*printer)( source, true, "page size is zero\n" );
10c028: 53 push %ebx
10c029: 68 45 02 12 00 push $0x120245
10c02e: e9 5b 02 00 00 jmp 10c28e <_Heap_Walk+0x2d5>
return false;
}
if ( !_Addresses_Is_aligned( (void *) page_size ) ) {
10c033: f6 c1 03 test $0x3,%cl
10c036: 74 0b je 10c043 <_Heap_Walk+0x8a>
(*printer)(
10c038: 51 push %ecx
10c039: 68 58 02 12 00 push $0x120258
10c03e: e9 4b 02 00 00 jmp 10c28e <_Heap_Walk+0x2d5>
);
return false;
}
if ( !_Heap_Is_aligned( min_block_size, page_size ) ) {
10c043: 8b 45 dc mov -0x24(%ebp),%eax
10c046: 31 d2 xor %edx,%edx
10c048: f7 f1 div %ecx
10c04a: 85 d2 test %edx,%edx
10c04c: 74 0d je 10c05b <_Heap_Walk+0xa2>
(*printer)(
10c04e: ff 75 dc pushl -0x24(%ebp)
10c051: 68 76 02 12 00 push $0x120276
10c056: e9 33 02 00 00 jmp 10c28e <_Heap_Walk+0x2d5>
);
return false;
}
if (
10c05b: 8d 43 08 lea 0x8(%ebx),%eax
10c05e: 31 d2 xor %edx,%edx
10c060: f7 f1 div %ecx
10c062: 85 d2 test %edx,%edx
10c064: 74 0b je 10c071 <_Heap_Walk+0xb8>
!_Heap_Is_aligned( _Heap_Alloc_area_of_block( first_block ), page_size )
) {
(*printer)(
10c066: 53 push %ebx
10c067: 68 9a 02 12 00 push $0x12029a
10c06c: e9 1d 02 00 00 jmp 10c28e <_Heap_Walk+0x2d5>
);
return false;
}
if ( !_Heap_Is_prev_used( first_block ) ) {
10c071: f6 43 04 01 testb $0x1,0x4(%ebx)
10c075: 75 0b jne 10c082 <_Heap_Walk+0xc9>
(*printer)(
10c077: 51 push %ecx
10c078: 68 cb 02 12 00 push $0x1202cb
10c07d: e9 0c 02 00 00 jmp 10c28e <_Heap_Walk+0x2d5>
);
return false;
}
if ( first_block->prev_size != page_size ) {
10c082: 8b 03 mov (%ebx),%eax
10c084: 89 45 d4 mov %eax,-0x2c(%ebp)
10c087: 39 c8 cmp %ecx,%eax
10c089: 74 0f je 10c09a <_Heap_Walk+0xe1>
(*printer)(
10c08b: 83 ec 0c sub $0xc,%esp
10c08e: 51 push %ecx
10c08f: 50 push %eax
10c090: 68 f9 02 12 00 push $0x1202f9
10c095: e9 3d 01 00 00 jmp 10c1d7 <_Heap_Walk+0x21e>
);
return false;
}
if ( _Heap_Is_free( last_block ) ) {
10c09a: 8b 55 d0 mov -0x30(%ebp),%edx
10c09d: 8b 42 04 mov 0x4(%edx),%eax
10c0a0: 83 e0 fe and $0xfffffffe,%eax
10c0a3: f6 44 02 04 01 testb $0x1,0x4(%edx,%eax,1)
10c0a8: 75 0b jne 10c0b5 <_Heap_Walk+0xfc>
(*printer)(
10c0aa: 52 push %edx
10c0ab: 68 24 03 12 00 push $0x120324
10c0b0: e9 d9 01 00 00 jmp 10c28e <_Heap_Walk+0x2d5>
int source,
Heap_Walk_printer printer,
Heap_Control *heap
)
{
uintptr_t const page_size = heap->page_size;
10c0b5: 8b 4f 10 mov 0x10(%edi),%ecx
10c0b8: 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;
10c0bb: 8b 4f 08 mov 0x8(%edi),%ecx
10c0be: 89 7d e0 mov %edi,-0x20(%ebp)
10c0c1: eb 6a jmp 10c12d <_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
10c0c3: 31 c0 xor %eax,%eax
10c0c5: 39 4f 20 cmp %ecx,0x20(%edi)
10c0c8: 77 08 ja 10c0d2 <_Heap_Walk+0x119>
10c0ca: 31 c0 xor %eax,%eax
10c0cc: 39 4f 24 cmp %ecx,0x24(%edi)
10c0cf: 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 ) ) {
10c0d2: 85 c0 test %eax,%eax
10c0d4: 75 0b jne 10c0e1 <_Heap_Walk+0x128>
(*printer)(
10c0d6: 51 push %ecx
10c0d7: 68 39 03 12 00 push $0x120339
10c0dc: e9 ad 01 00 00 jmp 10c28e <_Heap_Walk+0x2d5>
);
return false;
}
if (
10c0e1: 8d 41 08 lea 0x8(%ecx),%eax
10c0e4: 31 d2 xor %edx,%edx
10c0e6: f7 75 d8 divl -0x28(%ebp)
10c0e9: 85 d2 test %edx,%edx
10c0eb: 74 0b je 10c0f8 <_Heap_Walk+0x13f>
!_Heap_Is_aligned( _Heap_Alloc_area_of_block( free_block ), page_size )
) {
(*printer)(
10c0ed: 51 push %ecx
10c0ee: 68 59 03 12 00 push $0x120359
10c0f3: e9 96 01 00 00 jmp 10c28e <_Heap_Walk+0x2d5>
);
return false;
}
if ( _Heap_Is_used( free_block ) ) {
10c0f8: 8b 41 04 mov 0x4(%ecx),%eax
10c0fb: 83 e0 fe and $0xfffffffe,%eax
10c0fe: f6 44 01 04 01 testb $0x1,0x4(%ecx,%eax,1)
10c103: 74 0b je 10c110 <_Heap_Walk+0x157>
(*printer)(
10c105: 51 push %ecx
10c106: 68 89 03 12 00 push $0x120389
10c10b: e9 7e 01 00 00 jmp 10c28e <_Heap_Walk+0x2d5>
);
return false;
}
if ( free_block->prev != prev_block ) {
10c110: 8b 41 0c mov 0xc(%ecx),%eax
10c113: 3b 45 e0 cmp -0x20(%ebp),%eax
10c116: 74 0f je 10c127 <_Heap_Walk+0x16e>
(*printer)(
10c118: 83 ec 0c sub $0xc,%esp
10c11b: 50 push %eax
10c11c: 51 push %ecx
10c11d: 68 a5 03 12 00 push $0x1203a5
10c122: e9 b0 00 00 00 jmp 10c1d7 <_Heap_Walk+0x21e>
return false;
}
prev_block = free_block;
free_block = free_block->next;
10c127: 89 4d e0 mov %ecx,-0x20(%ebp)
10c12a: 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 ) {
10c12d: 39 f9 cmp %edi,%ecx
10c12f: 75 92 jne 10c0c3 <_Heap_Walk+0x10a>
10c131: 89 75 e0 mov %esi,-0x20(%ebp)
10c134: e9 7f 01 00 00 jmp 10c2b8 <_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;
10c139: 8b 43 04 mov 0x4(%ebx),%eax
10c13c: 89 c1 mov %eax,%ecx
10c13e: 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);
10c141: 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 ) {
10c144: a8 01 test $0x1,%al
10c146: 74 0c je 10c154 <_Heap_Walk+0x19b>
(*printer)(
10c148: 83 ec 0c sub $0xc,%esp
10c14b: 51 push %ecx
10c14c: 53 push %ebx
10c14d: 68 d7 03 12 00 push $0x1203d7
10c152: eb 0b jmp 10c15f <_Heap_Walk+0x1a6>
"block 0x%08x: size %u\n",
block,
block_size
);
} else {
(*printer)(
10c154: 50 push %eax
10c155: 50 push %eax
10c156: ff 33 pushl (%ebx)
10c158: 51 push %ecx
10c159: 53 push %ebx
10c15a: 68 ee 03 12 00 push $0x1203ee
10c15f: 6a 00 push $0x0
10c161: ff 75 e0 pushl -0x20(%ebp)
10c164: 89 4d bc mov %ecx,-0x44(%ebp)
10c167: ff 55 e4 call *-0x1c(%ebp)
10c16a: 83 c4 20 add $0x20,%esp
10c16d: 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
10c170: 31 c0 xor %eax,%eax
10c172: 39 77 20 cmp %esi,0x20(%edi)
10c175: 77 08 ja 10c17f <_Heap_Walk+0x1c6> <== NEVER TAKEN
10c177: 31 c0 xor %eax,%eax
10c179: 39 77 24 cmp %esi,0x24(%edi)
10c17c: 0f 93 c0 setae %al
block_size,
block->prev_size
);
}
if ( !_Heap_Is_block_in_heap( heap, next_block ) ) {
10c17f: 85 c0 test %eax,%eax
10c181: 75 11 jne 10c194 <_Heap_Walk+0x1db>
10c183: 89 f1 mov %esi,%ecx
10c185: 8b 75 e0 mov -0x20(%ebp),%esi
(*printer)(
10c188: 83 ec 0c sub $0xc,%esp
10c18b: 51 push %ecx
10c18c: 53 push %ebx
10c18d: 68 13 04 12 00 push $0x120413
10c192: eb 43 jmp 10c1d7 <_Heap_Walk+0x21e>
);
return false;
}
if ( !_Heap_Is_aligned( block_size, page_size ) ) {
10c194: 89 c8 mov %ecx,%eax
10c196: 31 d2 xor %edx,%edx
10c198: f7 75 d4 divl -0x2c(%ebp)
10c19b: 85 d2 test %edx,%edx
10c19d: 74 0f je 10c1ae <_Heap_Walk+0x1f5>
10c19f: 8b 75 e0 mov -0x20(%ebp),%esi
(*printer)(
10c1a2: 83 ec 0c sub $0xc,%esp
10c1a5: 51 push %ecx
10c1a6: 53 push %ebx
10c1a7: 68 40 04 12 00 push $0x120440
10c1ac: eb 29 jmp 10c1d7 <_Heap_Walk+0x21e>
);
return false;
}
if ( block_size < min_block_size ) {
10c1ae: 3b 4d dc cmp -0x24(%ebp),%ecx
10c1b1: 73 11 jae 10c1c4 <_Heap_Walk+0x20b>
10c1b3: 8b 75 e0 mov -0x20(%ebp),%esi
(*printer)(
10c1b6: 57 push %edi
10c1b7: 57 push %edi
10c1b8: ff 75 dc pushl -0x24(%ebp)
10c1bb: 51 push %ecx
10c1bc: 53 push %ebx
10c1bd: 68 6e 04 12 00 push $0x12046e
10c1c2: eb 13 jmp 10c1d7 <_Heap_Walk+0x21e>
);
return false;
}
if ( next_block_begin <= block_begin ) {
10c1c4: 39 de cmp %ebx,%esi
10c1c6: 77 1f ja 10c1e7 <_Heap_Walk+0x22e>
10c1c8: 89 f1 mov %esi,%ecx
10c1ca: 8b 75 e0 mov -0x20(%ebp),%esi
(*printer)(
10c1cd: 83 ec 0c sub $0xc,%esp
10c1d0: 51 push %ecx
10c1d1: 53 push %ebx
10c1d2: 68 99 04 12 00 push $0x120499
10c1d7: 6a 01 push $0x1
10c1d9: 56 push %esi
10c1da: ff 55 e4 call *-0x1c(%ebp)
10c1dd: 31 c0 xor %eax,%eax
"block 0x%08x: next block 0x%08x is not a successor\n",
block,
next_block
);
return false;
10c1df: 83 c4 20 add $0x20,%esp
10c1e2: e9 dc 00 00 00 jmp 10c2c3 <_Heap_Walk+0x30a>
}
if ( !_Heap_Is_prev_used( next_block ) ) {
10c1e7: f6 46 04 01 testb $0x1,0x4(%esi)
10c1eb: 0f 85 c5 00 00 00 jne 10c2b6 <_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;
10c1f1: 8b 47 08 mov 0x8(%edi),%eax
10c1f4: 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;
10c1f7: 8b 53 04 mov 0x4(%ebx),%edx
10c1fa: 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;
10c1fd: 83 e2 fe and $0xfffffffe,%edx
10c200: 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);
10c203: 01 da add %ebx,%edx
10c205: 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)(
10c208: 8b 4b 08 mov 0x8(%ebx),%ecx
10c20b: 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;
10c20e: ba cd 04 12 00 mov $0x1204cd,%edx
10c213: 3b 4f 0c cmp 0xc(%edi),%ecx
10c216: 74 0e je 10c226 <_Heap_Walk+0x26d>
" (= first)"
: (block->prev == free_list_head ? " (= head)" : ""),
block->next,
block->next == last_free_block ?
" (= last)"
: (block->next == free_list_tail ? " (= tail)" : "")
10c218: ba d7 04 12 00 mov $0x1204d7,%edx
10c21d: 39 f9 cmp %edi,%ecx
10c21f: 74 05 je 10c226 <_Heap_Walk+0x26d>
10c221: ba 01 01 12 00 mov $0x120101,%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)(
10c226: 8b 43 0c mov 0xc(%ebx),%eax
10c229: 89 45 d8 mov %eax,-0x28(%ebp)
10c22c: b8 e1 04 12 00 mov $0x1204e1,%eax
10c231: 8b 4d c0 mov -0x40(%ebp),%ecx
10c234: 39 4d d8 cmp %ecx,-0x28(%ebp)
10c237: 74 0f je 10c248 <_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)" : ""),
10c239: b8 ec 04 12 00 mov $0x1204ec,%eax
10c23e: 39 7d d8 cmp %edi,-0x28(%ebp)
10c241: 74 05 je 10c248 <_Heap_Walk+0x28f>
10c243: b8 01 01 12 00 mov $0x120101,%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)(
10c248: 52 push %edx
10c249: ff 75 b4 pushl -0x4c(%ebp)
10c24c: 50 push %eax
10c24d: ff 75 d8 pushl -0x28(%ebp)
10c250: 53 push %ebx
10c251: 68 f6 04 12 00 push $0x1204f6
10c256: 6a 00 push $0x0
10c258: ff 75 e0 pushl -0x20(%ebp)
10c25b: 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 ) {
10c25e: 8b 55 c8 mov -0x38(%ebp),%edx
10c261: 8b 02 mov (%edx),%eax
10c263: 83 c4 20 add $0x20,%esp
10c266: 39 45 cc cmp %eax,-0x34(%ebp)
10c269: 74 14 je 10c27f <_Heap_Walk+0x2c6>
10c26b: 8b 75 e0 mov -0x20(%ebp),%esi
(*printer)(
10c26e: 51 push %ecx
10c26f: 52 push %edx
10c270: 50 push %eax
10c271: ff 75 cc pushl -0x34(%ebp)
10c274: 53 push %ebx
10c275: 68 22 05 12 00 push $0x120522
10c27a: e9 58 ff ff ff jmp 10c1d7 <_Heap_Walk+0x21e>
);
return false;
}
if ( !prev_used ) {
10c27f: f6 45 c4 01 testb $0x1,-0x3c(%ebp)
10c283: 75 16 jne 10c29b <_Heap_Walk+0x2e2>
10c285: 8b 75 e0 mov -0x20(%ebp),%esi
(*printer)(
10c288: 53 push %ebx
10c289: 68 5b 05 12 00 push $0x12055b
10c28e: 6a 01 push $0x1
10c290: 56 push %esi
10c291: ff 55 e4 call *-0x1c(%ebp)
10c294: 31 c0 xor %eax,%eax
10c296: 83 c4 10 add $0x10,%esp
10c299: eb 28 jmp 10c2c3 <_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;
10c29b: 8b 47 08 mov 0x8(%edi),%eax
10c29e: eb 07 jmp 10c2a7 <_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 ) {
10c2a0: 39 d8 cmp %ebx,%eax
10c2a2: 74 12 je 10c2b6 <_Heap_Walk+0x2fd>
return true;
}
free_block = free_block->next;
10c2a4: 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 ) {
10c2a7: 39 f8 cmp %edi,%eax
10c2a9: 75 f5 jne 10c2a0 <_Heap_Walk+0x2e7>
10c2ab: 8b 75 e0 mov -0x20(%ebp),%esi
return false;
}
if ( !_Heap_Walk_is_in_free_list( heap, block ) ) {
(*printer)(
10c2ae: 53 push %ebx
10c2af: 68 8a 05 12 00 push $0x12058a
10c2b4: eb d8 jmp 10c28e <_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 ) {
10c2b6: 89 f3 mov %esi,%ebx
if ( !_Heap_Walk_check_control( source, printer, heap ) ) {
return false;
}
while ( block != last_block ) {
10c2b8: 3b 5d d0 cmp -0x30(%ebp),%ebx
10c2bb: 0f 85 78 fe ff ff jne 10c139 <_Heap_Walk+0x180>
10c2c1: b0 01 mov $0x1,%al
block = next_block;
}
return true;
}
10c2c3: 8d 65 f4 lea -0xc(%ebp),%esp
10c2c6: 5b pop %ebx
10c2c7: 5e pop %esi
10c2c8: 5f pop %edi
10c2c9: c9 leave
10c2ca: c3 ret
0010b5c0 <_Internal_error_Occurred>:
void _Internal_error_Occurred(
Internal_errors_Source the_source,
bool is_internal,
Internal_errors_t the_error
)
{
10b5c0: 55 push %ebp
10b5c1: 89 e5 mov %esp,%ebp
10b5c3: 53 push %ebx
10b5c4: 83 ec 08 sub $0x8,%esp
10b5c7: 8b 45 08 mov 0x8(%ebp),%eax
10b5ca: 8b 55 0c mov 0xc(%ebp),%edx
10b5cd: 8b 5d 10 mov 0x10(%ebp),%ebx
_Internal_errors_What_happened.the_source = the_source;
10b5d0: a3 34 57 12 00 mov %eax,0x125734
_Internal_errors_What_happened.is_internal = is_internal;
10b5d5: 88 15 38 57 12 00 mov %dl,0x125738
_Internal_errors_What_happened.the_error = the_error;
10b5db: 89 1d 3c 57 12 00 mov %ebx,0x12573c
_User_extensions_Fatal( the_source, is_internal, the_error );
10b5e1: 53 push %ebx
10b5e2: 0f b6 d2 movzbl %dl,%edx
10b5e5: 52 push %edx
10b5e6: 50 push %eax
10b5e7: e8 9b 18 00 00 call 10ce87 <_User_extensions_Fatal>
RTEMS_INLINE_ROUTINE void _System_state_Set (
System_state_Codes state
)
{
_System_state_Current = state;
10b5ec: c7 05 28 58 12 00 05 movl $0x5,0x125828 <== NOT EXECUTED
10b5f3: 00 00 00
_System_state_Set( SYSTEM_STATE_FAILED );
_CPU_Fatal_halt( the_error );
10b5f6: fa cli <== NOT EXECUTED
10b5f7: 89 d8 mov %ebx,%eax <== NOT EXECUTED
10b5f9: f4 hlt <== NOT EXECUTED
10b5fa: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10b5fd: eb fe jmp 10b5fd <_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
0010b658 <_Objects_Allocate>:
*/
Objects_Control *_Objects_Allocate(
Objects_Information *information
)
{
10b658: 55 push %ebp
10b659: 89 e5 mov %esp,%ebp
10b65b: 56 push %esi
10b65c: 53 push %ebx
10b65d: 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 )
10b660: 31 c9 xor %ecx,%ecx
10b662: 83 7b 18 00 cmpl $0x0,0x18(%ebx)
10b666: 74 53 je 10b6bb <_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 );
10b668: 8d 73 20 lea 0x20(%ebx),%esi
10b66b: 83 ec 0c sub $0xc,%esp
10b66e: 56 push %esi
10b66f: e8 ac f7 ff ff call 10ae20 <_Chain_Get>
10b674: 89 c1 mov %eax,%ecx
if ( information->auto_extend ) {
10b676: 83 c4 10 add $0x10,%esp
10b679: 80 7b 12 00 cmpb $0x0,0x12(%ebx)
10b67d: 74 3c je 10b6bb <_Objects_Allocate+0x63>
/*
* If the list is empty then we are out of objects and need to
* extend information base.
*/
if ( !the_object ) {
10b67f: 85 c0 test %eax,%eax
10b681: 75 1a jne 10b69d <_Objects_Allocate+0x45>
_Objects_Extend_information( information );
10b683: 83 ec 0c sub $0xc,%esp
10b686: 53 push %ebx
10b687: e8 60 00 00 00 call 10b6ec <_Objects_Extend_information>
the_object = (Objects_Control *) _Chain_Get( &information->Inactive );
10b68c: 89 34 24 mov %esi,(%esp)
10b68f: e8 8c f7 ff ff call 10ae20 <_Chain_Get>
10b694: 89 c1 mov %eax,%ecx
}
if ( the_object ) {
10b696: 83 c4 10 add $0x10,%esp
10b699: 85 c0 test %eax,%eax
10b69b: 74 1e je 10b6bb <_Objects_Allocate+0x63>
uint32_t block;
block = (uint32_t) _Objects_Get_index( the_object->id ) -
10b69d: 0f b7 41 08 movzwl 0x8(%ecx),%eax
10b6a1: 0f b7 53 08 movzwl 0x8(%ebx),%edx
10b6a5: 29 d0 sub %edx,%eax
_Objects_Get_index( information->minimum_id );
block /= information->allocation_size;
information->inactive_per_block[ block ]--;
10b6a7: 0f b7 73 14 movzwl 0x14(%ebx),%esi
10b6ab: 31 d2 xor %edx,%edx
10b6ad: f7 f6 div %esi
10b6af: c1 e0 02 shl $0x2,%eax
10b6b2: 03 43 30 add 0x30(%ebx),%eax
10b6b5: ff 08 decl (%eax)
information->inactive--;
10b6b7: 66 ff 4b 2c decw 0x2c(%ebx)
}
}
return the_object;
}
10b6bb: 89 c8 mov %ecx,%eax
10b6bd: 8d 65 f8 lea -0x8(%ebp),%esp
10b6c0: 5b pop %ebx
10b6c1: 5e pop %esi
10b6c2: c9 leave
10b6c3: c3 ret
0010b6ec <_Objects_Extend_information>:
*/
void _Objects_Extend_information(
Objects_Information *information
)
{
10b6ec: 55 push %ebp
10b6ed: 89 e5 mov %esp,%ebp
10b6ef: 57 push %edi
10b6f0: 56 push %esi
10b6f1: 53 push %ebx
10b6f2: 83 ec 4c sub $0x4c,%esp
10b6f5: 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 );
10b6f8: 0f b7 43 08 movzwl 0x8(%ebx),%eax
10b6fc: 89 45 c8 mov %eax,-0x38(%ebp)
index_base = minimum_index;
block = 0;
/* if ( information->maximum < minimum_index ) */
if ( information->object_blocks == NULL )
10b6ff: 8b 4b 34 mov 0x34(%ebx),%ecx
10b702: 85 c9 test %ecx,%ecx
10b704: 75 0e jne 10b714 <_Objects_Extend_information+0x28>
10b706: 89 45 d4 mov %eax,-0x2c(%ebp)
10b709: c7 45 cc 00 00 00 00 movl $0x0,-0x34(%ebp)
10b710: 31 d2 xor %edx,%edx
10b712: eb 31 jmp 10b745 <_Objects_Extend_information+0x59>
block_count = 0;
else {
block_count = information->maximum / information->allocation_size;
10b714: 0f b7 73 14 movzwl 0x14(%ebx),%esi
10b718: 8b 43 10 mov 0x10(%ebx),%eax
10b71b: 31 d2 xor %edx,%edx
10b71d: 66 f7 f6 div %si
10b720: 0f b7 d0 movzwl %ax,%edx
10b723: 8b 7d c8 mov -0x38(%ebp),%edi
10b726: 89 7d d4 mov %edi,-0x2c(%ebp)
10b729: c7 45 cc 00 00 00 00 movl $0x0,-0x34(%ebp)
10b730: 31 c0 xor %eax,%eax
for ( ; block < block_count; block++ ) {
10b732: eb 0a jmp 10b73e <_Objects_Extend_information+0x52>
if ( information->object_blocks[ block ] == NULL )
10b734: 83 3c 81 00 cmpl $0x0,(%ecx,%eax,4)
10b738: 74 08 je 10b742 <_Objects_Extend_information+0x56>
10b73a: 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++ ) {
10b73d: 40 inc %eax
10b73e: 39 d0 cmp %edx,%eax
10b740: 72 f2 jb 10b734 <_Objects_Extend_information+0x48>
10b742: 89 45 cc mov %eax,-0x34(%ebp)
else
index_base += information->allocation_size;
}
}
maximum = (uint32_t) information->maximum + information->allocation_size;
10b745: 0f b7 43 14 movzwl 0x14(%ebx),%eax
10b749: 0f b7 4b 10 movzwl 0x10(%ebx),%ecx
10b74d: 8d 0c 08 lea (%eax,%ecx,1),%ecx
10b750: 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 ) {
10b753: 81 f9 ff ff 00 00 cmp $0xffff,%ecx
10b759: 0f 87 db 01 00 00 ja 10b93a <_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;
10b75f: 0f af 43 18 imul 0x18(%ebx),%eax
if ( information->auto_extend ) {
10b763: 80 7b 12 00 cmpb $0x0,0x12(%ebx)
10b767: 74 1e je 10b787 <_Objects_Extend_information+0x9b>
new_object_block = _Workspace_Allocate( block_size );
10b769: 83 ec 0c sub $0xc,%esp
10b76c: 50 push %eax
10b76d: 89 55 b4 mov %edx,-0x4c(%ebp)
10b770: e8 3f 1a 00 00 call 10d1b4 <_Workspace_Allocate>
10b775: 89 45 bc mov %eax,-0x44(%ebp)
if ( !new_object_block )
10b778: 83 c4 10 add $0x10,%esp
10b77b: 85 c0 test %eax,%eax
10b77d: 8b 55 b4 mov -0x4c(%ebp),%edx
10b780: 75 1a jne 10b79c <_Objects_Extend_information+0xb0>
10b782: e9 b3 01 00 00 jmp 10b93a <_Objects_Extend_information+0x24e>
return;
} else {
new_object_block = _Workspace_Allocate_or_fatal_error( block_size );
10b787: 83 ec 0c sub $0xc,%esp
10b78a: 50 push %eax
10b78b: 89 55 b4 mov %edx,-0x4c(%ebp)
10b78e: e8 f5 19 00 00 call 10d188 <_Workspace_Allocate_or_fatal_error>
10b793: 89 45 bc mov %eax,-0x44(%ebp)
10b796: 83 c4 10 add $0x10,%esp
10b799: 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 ) {
10b79c: 0f b7 43 10 movzwl 0x10(%ebx),%eax
10b7a0: 39 45 d4 cmp %eax,-0x2c(%ebp)
10b7a3: 0f 82 14 01 00 00 jb 10b8bd <_Objects_Extend_information+0x1d1>
*/
/*
* Up the block count and maximum
*/
block_count++;
10b7a9: 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 );
10b7ac: 83 ec 0c sub $0xc,%esp
10b7af: 8b 4d b8 mov -0x48(%ebp),%ecx
10b7b2: 03 4d c8 add -0x38(%ebp),%ecx
10b7b5: 8d 04 76 lea (%esi,%esi,2),%eax
10b7b8: 8d 04 01 lea (%ecx,%eax,1),%eax
10b7bb: c1 e0 02 shl $0x2,%eax
10b7be: 50 push %eax
10b7bf: 89 55 b4 mov %edx,-0x4c(%ebp)
10b7c2: e8 ed 19 00 00 call 10d1b4 <_Workspace_Allocate>
if ( !object_blocks ) {
10b7c7: 83 c4 10 add $0x10,%esp
10b7ca: 85 c0 test %eax,%eax
10b7cc: 8b 55 b4 mov -0x4c(%ebp),%edx
10b7cf: 75 13 jne 10b7e4 <_Objects_Extend_information+0xf8>
_Workspace_Free( new_object_block );
10b7d1: 83 ec 0c sub $0xc,%esp
10b7d4: ff 75 bc pushl -0x44(%ebp)
10b7d7: e8 f1 19 00 00 call 10d1cd <_Workspace_Free>
return;
10b7dc: 83 c4 10 add $0x10,%esp
10b7df: e9 56 01 00 00 jmp 10b93a <_Objects_Extend_information+0x24e>
RTEMS_INLINE_ROUTINE void *_Addresses_Add_offset (
const void *base,
uintptr_t offset
)
{
return (void *)((uintptr_t)base + offset);
10b7e4: 8d 0c b0 lea (%eax,%esi,4),%ecx
10b7e7: 89 4d c0 mov %ecx,-0x40(%ebp)
10b7ea: 8d 34 f0 lea (%eax,%esi,8),%esi
10b7ed: 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 ) {
10b7f0: 0f b7 73 10 movzwl 0x10(%ebx),%esi
10b7f4: 31 c9 xor %ecx,%ecx
10b7f6: 3b 75 c8 cmp -0x38(%ebp),%esi
10b7f9: 76 3e jbe 10b839 <_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,
10b7fb: 8d 34 95 00 00 00 00 lea 0x0(,%edx,4),%esi
10b802: 89 75 d0 mov %esi,-0x30(%ebp)
10b805: 8b 73 34 mov 0x34(%ebx),%esi
10b808: 89 c7 mov %eax,%edi
10b80a: 8b 4d d0 mov -0x30(%ebp),%ecx
10b80d: f3 a4 rep movsb %ds:(%esi),%es:(%edi)
information->object_blocks,
block_count * sizeof(void*) );
memcpy( inactive_per_block,
10b80f: 8b 73 30 mov 0x30(%ebx),%esi
10b812: 8b 7d c0 mov -0x40(%ebp),%edi
10b815: 8b 4d d0 mov -0x30(%ebp),%ecx
10b818: f3 a4 rep movsb %ds:(%esi),%es:(%edi)
information->inactive_per_block,
block_count * sizeof(uint32_t) );
memcpy( local_table,
10b81a: 0f b7 4b 10 movzwl 0x10(%ebx),%ecx
10b81e: 03 4d c8 add -0x38(%ebp),%ecx
10b821: c1 e1 02 shl $0x2,%ecx
10b824: 8b 73 1c mov 0x1c(%ebx),%esi
10b827: 8b 7d c4 mov -0x3c(%ebp),%edi
10b82a: f3 a4 rep movsb %ds:(%esi),%es:(%edi)
10b82c: eb 10 jmp 10b83e <_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;
10b82e: 8b 7d c4 mov -0x3c(%ebp),%edi
10b831: 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++ ) {
10b838: 41 inc %ecx
10b839: 3b 4d c8 cmp -0x38(%ebp),%ecx
10b83c: 72 f0 jb 10b82e <_Objects_Extend_information+0x142>
}
/*
* Initialise the new entries in the table.
*/
object_blocks[block_count] = NULL;
10b83e: c7 04 90 00 00 00 00 movl $0x0,(%eax,%edx,4)
inactive_per_block[block_count] = 0;
10b845: 8b 4d c0 mov -0x40(%ebp),%ecx
10b848: c7 04 91 00 00 00 00 movl $0x0,(%ecx,%edx,4)
for ( index=index_base ;
index < ( information->allocation_size + index_base );
10b84f: 0f b7 53 14 movzwl 0x14(%ebx),%edx
10b853: 8b 75 d4 mov -0x2c(%ebp),%esi
10b856: 01 d6 add %edx,%esi
10b858: 8b 7d d4 mov -0x2c(%ebp),%edi
10b85b: 8b 55 c4 mov -0x3c(%ebp),%edx
10b85e: 8d 0c ba lea (%edx,%edi,4),%ecx
10b861: 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 ;
10b863: eb 0a jmp 10b86f <_Objects_Extend_information+0x183>
index < ( information->allocation_size + index_base );
index++ ) {
local_table[ index ] = NULL;
10b865: 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++ ) {
10b86b: 42 inc %edx
10b86c: 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 ;
10b86f: 39 f2 cmp %esi,%edx
10b871: 72 f2 jb 10b865 <_Objects_Extend_information+0x179>
index < ( information->allocation_size + index_base );
index++ ) {
local_table[ index ] = NULL;
}
_ISR_Disable( level );
10b873: 9c pushf
10b874: fa cli
10b875: 5e pop %esi
old_tables = information->object_blocks;
10b876: 8b 53 34 mov 0x34(%ebx),%edx
information->object_blocks = object_blocks;
10b879: 89 43 34 mov %eax,0x34(%ebx)
information->inactive_per_block = inactive_per_block;
10b87c: 8b 4d c0 mov -0x40(%ebp),%ecx
10b87f: 89 4b 30 mov %ecx,0x30(%ebx)
information->local_table = local_table;
10b882: 8b 7d c4 mov -0x3c(%ebp),%edi
10b885: 89 7b 1c mov %edi,0x1c(%ebx)
information->maximum = (Objects_Maximum) maximum;
10b888: 8b 45 b8 mov -0x48(%ebp),%eax
10b88b: 66 89 43 10 mov %ax,0x10(%ebx)
information->maximum_id = _Objects_Build_id(
10b88f: 8b 03 mov (%ebx),%eax
10b891: c1 e0 18 shl $0x18,%eax
10b894: 0d 00 00 01 00 or $0x10000,%eax
10b899: 0f b7 4b 04 movzwl 0x4(%ebx),%ecx
10b89d: c1 e1 1b shl $0x1b,%ecx
10b8a0: 09 c8 or %ecx,%eax
10b8a2: 0f b7 4d b8 movzwl -0x48(%ebp),%ecx
10b8a6: 09 c8 or %ecx,%eax
10b8a8: 89 43 0c mov %eax,0xc(%ebx)
information->the_class,
_Objects_Local_node,
information->maximum
);
_ISR_Enable( level );
10b8ab: 56 push %esi
10b8ac: 9d popf
if ( old_tables )
10b8ad: 85 d2 test %edx,%edx
10b8af: 74 0c je 10b8bd <_Objects_Extend_information+0x1d1>
_Workspace_Free( old_tables );
10b8b1: 83 ec 0c sub $0xc,%esp
10b8b4: 52 push %edx
10b8b5: e8 13 19 00 00 call 10d1cd <_Workspace_Free>
10b8ba: 83 c4 10 add $0x10,%esp
}
/*
* Assign the new object block to the object block table.
*/
information->object_blocks[ block ] = new_object_block;
10b8bd: 8b 55 cc mov -0x34(%ebp),%edx
10b8c0: c1 e2 02 shl $0x2,%edx
10b8c3: 89 55 d0 mov %edx,-0x30(%ebp)
10b8c6: 8b 43 34 mov 0x34(%ebx),%eax
10b8c9: 8b 75 bc mov -0x44(%ebp),%esi
10b8cc: 8b 4d cc mov -0x34(%ebp),%ecx
10b8cf: 89 34 88 mov %esi,(%eax,%ecx,4)
/*
* Initialize objects .. add to a local chain first.
*/
_Chain_Initialize(
10b8d2: ff 73 18 pushl 0x18(%ebx)
10b8d5: 0f b7 53 14 movzwl 0x14(%ebx),%edx
10b8d9: 52 push %edx
10b8da: ff 34 88 pushl (%eax,%ecx,4)
10b8dd: 8d 45 dc lea -0x24(%ebp),%eax
10b8e0: 50 push %eax
10b8e1: 89 45 b4 mov %eax,-0x4c(%ebp)
10b8e4: e8 37 3d 00 00 call 10f620 <_Chain_Initialize>
information->the_class,
_Objects_Local_node,
index
);
_Chain_Append( &information->Inactive, &the_object->Node );
10b8e9: 8d 7b 20 lea 0x20(%ebx),%edi
10b8ec: 8b 75 d4 mov -0x2c(%ebp),%esi
10b8ef: eb 23 jmp 10b914 <_Objects_Extend_information+0x228>
*/
index = index_base;
while ((the_object = (Objects_Control *) _Chain_Get( &Inactive )) != NULL ) {
the_object->id = _Objects_Build_id(
10b8f1: 8b 13 mov (%ebx),%edx
10b8f3: c1 e2 18 shl $0x18,%edx
10b8f6: 81 ca 00 00 01 00 or $0x10000,%edx
10b8fc: 0f b7 4b 04 movzwl 0x4(%ebx),%ecx
10b900: c1 e1 1b shl $0x1b,%ecx
10b903: 09 ca or %ecx,%edx
10b905: 09 f2 or %esi,%edx
10b907: 89 50 08 mov %edx,0x8(%eax)
information->the_class,
_Objects_Local_node,
index
);
_Chain_Append( &information->Inactive, &the_object->Node );
10b90a: 52 push %edx
10b90b: 52 push %edx
10b90c: 50 push %eax
10b90d: 57 push %edi
10b90e: e8 d1 f4 ff ff call 10ade4 <_Chain_Append>
index++;
10b913: 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 ) {
10b914: 8d 45 dc lea -0x24(%ebp),%eax
10b917: 89 04 24 mov %eax,(%esp)
10b91a: e8 01 f5 ff ff call 10ae20 <_Chain_Get>
10b91f: 83 c4 10 add $0x10,%esp
10b922: 85 c0 test %eax,%eax
10b924: 75 cb jne 10b8f1 <_Objects_Extend_information+0x205>
_Chain_Append( &information->Inactive, &the_object->Node );
index++;
}
information->inactive_per_block[ block ] = information->allocation_size;
10b926: 8b 43 30 mov 0x30(%ebx),%eax
10b929: 0f b7 53 14 movzwl 0x14(%ebx),%edx
10b92d: 8b 4d d0 mov -0x30(%ebp),%ecx
10b930: 89 14 08 mov %edx,(%eax,%ecx,1)
information->inactive =
10b933: 8b 43 14 mov 0x14(%ebx),%eax
10b936: 66 01 43 2c add %ax,0x2c(%ebx)
(Objects_Maximum)(information->inactive + information->allocation_size);
}
10b93a: 8d 65 f4 lea -0xc(%ebp),%esp
10b93d: 5b pop %ebx
10b93e: 5e pop %esi
10b93f: 5f pop %edi
10b940: c9 leave
10b941: c3 ret
0010b9d4 <_Objects_Get_information>:
Objects_Information *_Objects_Get_information(
Objects_APIs the_api,
uint32_t the_class
)
{
10b9d4: 55 push %ebp
10b9d5: 89 e5 mov %esp,%ebp
10b9d7: 56 push %esi
10b9d8: 53 push %ebx
10b9d9: 8b 75 08 mov 0x8(%ebp),%esi
10b9dc: 8b 5d 0c mov 0xc(%ebp),%ebx
Objects_Information *info;
int the_class_api_maximum;
if ( !the_class )
10b9df: 85 db test %ebx,%ebx
10b9e1: 74 2d je 10ba10 <_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 );
10b9e3: 83 ec 0c sub $0xc,%esp
10b9e6: 56 push %esi
10b9e7: e8 90 41 00 00 call 10fb7c <_Objects_API_maximum_class>
if ( the_class_api_maximum == 0 )
10b9ec: 83 c4 10 add $0x10,%esp
10b9ef: 85 c0 test %eax,%eax
10b9f1: 74 1d je 10ba10 <_Objects_Get_information+0x3c>
return NULL;
if ( the_class > (uint32_t) the_class_api_maximum )
10b9f3: 39 c3 cmp %eax,%ebx
10b9f5: 77 19 ja 10ba10 <_Objects_Get_information+0x3c>
return NULL;
if ( !_Objects_Information_table[ the_api ] )
10b9f7: 8b 04 b5 64 56 12 00 mov 0x125664(,%esi,4),%eax
10b9fe: 85 c0 test %eax,%eax
10ba00: 74 0e je 10ba10 <_Objects_Get_information+0x3c><== NEVER TAKEN
return NULL;
info = _Objects_Information_table[ the_api ][ the_class ];
10ba02: 8b 04 98 mov (%eax,%ebx,4),%eax
if ( !info )
10ba05: 85 c0 test %eax,%eax
10ba07: 74 09 je 10ba12 <_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 )
10ba09: 66 83 78 10 00 cmpw $0x0,0x10(%eax)
10ba0e: 75 02 jne 10ba12 <_Objects_Get_information+0x3e>
10ba10: 31 c0 xor %eax,%eax
return NULL;
#endif
return info;
}
10ba12: 8d 65 f8 lea -0x8(%ebp),%esp
10ba15: 5b pop %ebx
10ba16: 5e pop %esi
10ba17: c9 leave
10ba18: c3 ret
00118ef0 <_Objects_Get_no_protection>:
Objects_Control *_Objects_Get_no_protection(
Objects_Information *information,
Objects_Id id,
Objects_Locations *location
)
{
118ef0: 55 push %ebp
118ef1: 89 e5 mov %esp,%ebp
118ef3: 53 push %ebx
118ef4: 8b 55 08 mov 0x8(%ebp),%edx
118ef7: 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;
118efa: b8 01 00 00 00 mov $0x1,%eax
118eff: 2b 42 08 sub 0x8(%edx),%eax
118f02: 03 45 0c add 0xc(%ebp),%eax
if ( information->maximum >= index ) {
118f05: 0f b7 5a 10 movzwl 0x10(%edx),%ebx
118f09: 39 c3 cmp %eax,%ebx
118f0b: 72 12 jb 118f1f <_Objects_Get_no_protection+0x2f>
if ( (the_object = information->local_table[ index ]) != NULL ) {
118f0d: 8b 52 1c mov 0x1c(%edx),%edx
118f10: 8b 04 82 mov (%edx,%eax,4),%eax
118f13: 85 c0 test %eax,%eax
118f15: 74 08 je 118f1f <_Objects_Get_no_protection+0x2f><== NEVER TAKEN
*location = OBJECTS_LOCAL;
118f17: c7 01 00 00 00 00 movl $0x0,(%ecx)
return the_object;
118f1d: eb 08 jmp 118f27 <_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;
118f1f: c7 01 01 00 00 00 movl $0x1,(%ecx)
118f25: 31 c0 xor %eax,%eax
return NULL;
}
118f27: 5b pop %ebx
118f28: c9 leave
118f29: c3 ret
0010f06c <_Objects_Id_to_name>:
*/
Objects_Name_or_id_lookup_errors _Objects_Id_to_name (
Objects_Id id,
Objects_Name *name
)
{
10f06c: 55 push %ebp
10f06d: 89 e5 mov %esp,%ebp
10f06f: 83 ec 18 sub $0x18,%esp
/*
* Caller is trusted for name != NULL.
*/
tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id;
10f072: 8b 45 08 mov 0x8(%ebp),%eax
10f075: 85 c0 test %eax,%eax
10f077: 75 08 jne 10f081 <_Objects_Id_to_name+0x15>
10f079: a1 28 0b 13 00 mov 0x130b28,%eax
10f07e: 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);
10f081: 89 c2 mov %eax,%edx
10f083: c1 ea 18 shr $0x18,%edx
10f086: 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 )
10f089: 8d 4a ff lea -0x1(%edx),%ecx
10f08c: 83 f9 03 cmp $0x3,%ecx
10f08f: 77 32 ja 10f0c3 <_Objects_Id_to_name+0x57>
10f091: eb 37 jmp 10f0ca <_Objects_Id_to_name+0x5e>
if ( !_Objects_Information_table[ the_api ] )
return OBJECTS_INVALID_ID;
the_class = _Objects_Get_class( tmpId );
information = _Objects_Information_table[ the_api ][ the_class ];
10f093: 89 c1 mov %eax,%ecx
10f095: c1 e9 1b shr $0x1b,%ecx
10f098: 8b 14 8a mov (%edx,%ecx,4),%edx
if ( !information )
10f09b: 85 d2 test %edx,%edx
10f09d: 74 24 je 10f0c3 <_Objects_Id_to_name+0x57><== NEVER TAKEN
#if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES)
if ( information->is_string )
return OBJECTS_INVALID_ID;
#endif
the_object = _Objects_Get( information, tmpId, &ignored_location );
10f09f: 51 push %ecx
10f0a0: 8d 4d f4 lea -0xc(%ebp),%ecx
10f0a3: 51 push %ecx
10f0a4: 50 push %eax
10f0a5: 52 push %edx
10f0a6: e8 69 ff ff ff call 10f014 <_Objects_Get>
if ( !the_object )
10f0ab: 83 c4 10 add $0x10,%esp
10f0ae: 85 c0 test %eax,%eax
10f0b0: 74 11 je 10f0c3 <_Objects_Id_to_name+0x57>
return OBJECTS_INVALID_ID;
*name = the_object->name;
10f0b2: 8b 50 0c mov 0xc(%eax),%edx
10f0b5: 8b 45 0c mov 0xc(%ebp),%eax
10f0b8: 89 10 mov %edx,(%eax)
_Thread_Enable_dispatch();
10f0ba: e8 86 07 00 00 call 10f845 <_Thread_Enable_dispatch>
10f0bf: 31 c0 xor %eax,%eax
return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL;
10f0c1: eb 05 jmp 10f0c8 <_Objects_Id_to_name+0x5c>
10f0c3: b8 03 00 00 00 mov $0x3,%eax
}
10f0c8: c9 leave
10f0c9: 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 ] )
10f0ca: 8b 14 95 40 0a 13 00 mov 0x130a40(,%edx,4),%edx
10f0d1: 85 d2 test %edx,%edx
10f0d3: 75 be jne 10f093 <_Objects_Id_to_name+0x27>
10f0d5: eb ec jmp 10f0c3 <_Objects_Id_to_name+0x57>
0010bac4 <_Objects_Initialize_information>:
,
bool supports_global,
Objects_Thread_queue_Extract_callout extract
#endif
)
{
10bac4: 55 push %ebp
10bac5: 89 e5 mov %esp,%ebp
10bac7: 57 push %edi
10bac8: 56 push %esi
10bac9: 53 push %ebx
10baca: 83 ec 1c sub $0x1c,%esp
10bacd: 8b 45 08 mov 0x8(%ebp),%eax
10bad0: 8b 55 0c mov 0xc(%ebp),%edx
10bad3: 8b 75 10 mov 0x10(%ebp),%esi
10bad6: 8b 5d 14 mov 0x14(%ebp),%ebx
10bad9: 8b 4d 20 mov 0x20(%ebp),%ecx
10badc: 89 4d e4 mov %ecx,-0x1c(%ebp)
10badf: 0f b7 7d 18 movzwl 0x18(%ebp),%edi
uint32_t maximum_per_allocation;
#if defined(RTEMS_MULTIPROCESSING)
uint32_t index;
#endif
information->the_api = the_api;
10bae3: 89 10 mov %edx,(%eax)
information->the_class = the_class;
10bae5: 66 89 70 04 mov %si,0x4(%eax)
information->size = size;
10bae9: 89 78 18 mov %edi,0x18(%eax)
information->local_table = 0;
10baec: c7 40 1c 00 00 00 00 movl $0x0,0x1c(%eax)
information->inactive_per_block = 0;
10baf3: c7 40 30 00 00 00 00 movl $0x0,0x30(%eax)
information->object_blocks = 0;
10bafa: c7 40 34 00 00 00 00 movl $0x0,0x34(%eax)
information->inactive = 0;
10bb01: 66 c7 40 2c 00 00 movw $0x0,0x2c(%eax)
/*
* Set the maximum value to 0. It will be updated when objects are
* added to the inactive set from _Objects_Extend_information()
*/
information->maximum = 0;
10bb07: 66 c7 40 10 00 00 movw $0x0,0x10(%eax)
/*
* Register this Object Class in the Object Information Table.
*/
_Objects_Information_table[ the_api ][ the_class ] = information;
10bb0d: 8b 3c 95 64 56 12 00 mov 0x125664(,%edx,4),%edi
10bb14: 89 04 b7 mov %eax,(%edi,%esi,4)
/*
* Are we operating in limited or unlimited (e.g. auto-extend) mode.
*/
information->auto_extend =
(maximum & OBJECTS_UNLIMITED_OBJECTS) ? true : false;
10bb17: 89 df mov %ebx,%edi
10bb19: c1 ef 1f shr $0x1f,%edi
_Objects_Information_table[ the_api ][ the_class ] = information;
/*
* Are we operating in limited or unlimited (e.g. auto-extend) mode.
*/
information->auto_extend =
10bb1c: 89 f9 mov %edi,%ecx
10bb1e: 88 48 12 mov %cl,0x12(%eax)
(maximum & OBJECTS_UNLIMITED_OBJECTS) ? true : false;
maximum_per_allocation = maximum & ~OBJECTS_UNLIMITED_OBJECTS;
10bb21: 89 d9 mov %ebx,%ecx
10bb23: 81 e1 ff ff ff 7f and $0x7fffffff,%ecx
/*
* Unlimited and maximum of zero is illogical.
*/
if ( information->auto_extend && maximum_per_allocation == 0) {
10bb29: 85 ff test %edi,%edi
10bb2b: 74 10 je 10bb3d <_Objects_Initialize_information+0x79>
10bb2d: 85 c9 test %ecx,%ecx
10bb2f: 75 0c jne 10bb3d <_Objects_Initialize_information+0x79>
_Internal_error_Occurred(
10bb31: 50 push %eax
10bb32: 6a 14 push $0x14
10bb34: 6a 01 push $0x1
10bb36: 6a 00 push $0x0
10bb38: e8 83 fa ff ff call 10b5c0 <_Internal_error_Occurred>
}
/*
* The allocation unit is the maximum value
*/
information->allocation_size = maximum_per_allocation;
10bb3d: 66 89 48 14 mov %cx,0x14(%eax)
/*
* Provide a null local table entry for the case of any empty table.
*/
information->local_table = &null_local_table;
10bb41: c7 40 1c 38 53 12 00 movl $0x125338,0x1c(%eax)
/*
* Calculate minimum and maximum Id's
*/
minimum_index = (maximum_per_allocation == 0) ? 0 : 1;
information->minimum_id =
10bb48: c1 e2 18 shl $0x18,%edx
10bb4b: 81 ca 00 00 01 00 or $0x10000,%edx
10bb51: c1 e6 1b shl $0x1b,%esi
10bb54: 09 f2 or %esi,%edx
10bb56: 85 c9 test %ecx,%ecx
10bb58: 0f 95 c3 setne %bl
10bb5b: 89 de mov %ebx,%esi
10bb5d: 81 e6 ff 00 00 00 and $0xff,%esi
10bb63: 09 f2 or %esi,%edx
10bb65: 89 50 08 mov %edx,0x8(%eax)
/*
* Calculate the maximum name length
*/
name_length = maximum_name_length;
if ( name_length & (OBJECTS_NAME_ALIGNMENT-1) )
10bb68: 8b 55 e4 mov -0x1c(%ebp),%edx
10bb6b: f6 c2 03 test $0x3,%dl
10bb6e: 74 06 je 10bb76 <_Objects_Initialize_information+0xb2><== ALWAYS TAKEN
name_length = (name_length + OBJECTS_NAME_ALIGNMENT) &
10bb70: 83 c2 04 add $0x4,%edx <== NOT EXECUTED
10bb73: 83 e2 fc and $0xfffffffc,%edx <== NOT EXECUTED
~(OBJECTS_NAME_ALIGNMENT-1);
information->name_length = name_length;
10bb76: 66 89 50 38 mov %dx,0x38(%eax)
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
10bb7a: 8d 50 24 lea 0x24(%eax),%edx
10bb7d: 89 50 20 mov %edx,0x20(%eax)
the_chain->permanent_null = NULL;
10bb80: c7 40 24 00 00 00 00 movl $0x0,0x24(%eax)
the_chain->last = _Chain_Head(the_chain);
10bb87: 8d 50 20 lea 0x20(%eax),%edx
10bb8a: 89 50 28 mov %edx,0x28(%eax)
_Chain_Initialize_empty( &information->Inactive );
/*
* Initialize objects .. if there are any
*/
if ( maximum_per_allocation ) {
10bb8d: 85 c9 test %ecx,%ecx
10bb8f: 74 0f je 10bba0 <_Objects_Initialize_information+0xdc>
/*
* Always have the maximum size available so the current performance
* figures are create are met. If the user moves past the maximum
* number then a performance hit is taken.
*/
_Objects_Extend_information( information );
10bb91: 89 45 08 mov %eax,0x8(%ebp)
_Chain_Initialize_empty( &information->global_table[ index ] );
}
else
information->global_table = NULL;
#endif
}
10bb94: 8d 65 f4 lea -0xc(%ebp),%esp
10bb97: 5b pop %ebx
10bb98: 5e pop %esi
10bb99: 5f pop %edi
10bb9a: c9 leave
/*
* Always have the maximum size available so the current performance
* figures are create are met. If the user moves past the maximum
* number then a performance hit is taken.
*/
_Objects_Extend_information( information );
10bb9b: e9 4c fb ff ff jmp 10b6ec <_Objects_Extend_information>
_Chain_Initialize_empty( &information->global_table[ index ] );
}
else
information->global_table = NULL;
#endif
}
10bba0: 8d 65 f4 lea -0xc(%ebp),%esp
10bba3: 5b pop %ebx
10bba4: 5e pop %esi
10bba5: 5f pop %edi
10bba6: c9 leave
10bba7: 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
0010f3e2 <_RTEMS_tasks_Post_switch_extension>:
*/
void _RTEMS_tasks_Post_switch_extension(
Thread_Control *executing
)
{
10f3e2: 55 push %ebp
10f3e3: 89 e5 mov %esp,%ebp
10f3e5: 57 push %edi
10f3e6: 56 push %esi
10f3e7: 53 push %ebx
10f3e8: 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 ];
10f3eb: 8b 45 08 mov 0x8(%ebp),%eax
10f3ee: 8b 98 f0 00 00 00 mov 0xf0(%eax),%ebx
if ( !api )
10f3f4: 85 db test %ebx,%ebx
10f3f6: 74 45 je 10f43d <_RTEMS_tasks_Post_switch_extension+0x5b><== NEVER TAKEN
* Signal Processing
*/
asr = &api->Signal;
_ISR_Disable( level );
10f3f8: 9c pushf
10f3f9: fa cli
10f3fa: 58 pop %eax
signal_set = asr->signals_posted;
10f3fb: 8b 7b 14 mov 0x14(%ebx),%edi
asr->signals_posted = 0;
10f3fe: c7 43 14 00 00 00 00 movl $0x0,0x14(%ebx)
_ISR_Enable( level );
10f405: 50 push %eax
10f406: 9d popf
if ( !signal_set ) /* similar to _ASR_Are_signals_pending( asr ) */
10f407: 85 ff test %edi,%edi
10f409: 74 32 je 10f43d <_RTEMS_tasks_Post_switch_extension+0x5b><== NEVER TAKEN
return;
asr->nest_level += 1;
10f40b: ff 43 1c incl 0x1c(%ebx)
rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode );
10f40e: 50 push %eax
10f40f: 8d 75 e4 lea -0x1c(%ebp),%esi
10f412: 56 push %esi
10f413: 68 ff ff 00 00 push $0xffff
10f418: ff 73 10 pushl 0x10(%ebx)
10f41b: e8 b0 20 00 00 call 1114d0 <rtems_task_mode>
(*asr->handler)( signal_set );
10f420: 89 3c 24 mov %edi,(%esp)
10f423: ff 53 0c call *0xc(%ebx)
asr->nest_level -= 1;
10f426: ff 4b 1c decl 0x1c(%ebx)
rtems_task_mode( prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode );
10f429: 83 c4 0c add $0xc,%esp
10f42c: 56 push %esi
10f42d: 68 ff ff 00 00 push $0xffff
10f432: ff 75 e4 pushl -0x1c(%ebp)
10f435: e8 96 20 00 00 call 1114d0 <rtems_task_mode>
10f43a: 83 c4 10 add $0x10,%esp
}
10f43d: 8d 65 f4 lea -0xc(%ebp),%esp
10f440: 5b pop %ebx
10f441: 5e pop %esi
10f442: 5f pop %edi
10f443: c9 leave
10f444: 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
0013a768 <_Rate_monotonic_Timeout>:
void _Rate_monotonic_Timeout(
Objects_Id id,
void *ignored
)
{
13a768: 55 push %ebp
13a769: 89 e5 mov %esp,%ebp
13a76b: 53 push %ebx
13a76c: 83 ec 18 sub $0x18,%esp
13a76f: 8d 45 f4 lea -0xc(%ebp),%eax
13a772: 50 push %eax
13a773: ff 75 08 pushl 0x8(%ebp)
13a776: 68 f8 7f 16 00 push $0x167ff8
13a77b: e8 58 7e fd ff call 1125d8 <_Objects_Get>
13a780: 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 ) {
13a782: 83 c4 10 add $0x10,%esp
13a785: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
13a789: 75 64 jne 13a7ef <_Rate_monotonic_Timeout+0x87><== NEVER TAKEN
case OBJECTS_LOCAL:
the_thread = the_period->owner;
13a78b: 8b 40 40 mov 0x40(%eax),%eax
if ( _States_Is_waiting_for_period( the_thread->current_state ) &&
13a78e: f6 40 11 40 testb $0x40,0x11(%eax)
13a792: 74 18 je 13a7ac <_Rate_monotonic_Timeout+0x44>
the_thread->Wait.id == the_period->Object.id ) {
13a794: 8b 50 20 mov 0x20(%eax),%edx
13a797: 3b 53 08 cmp 0x8(%ebx),%edx
13a79a: 75 10 jne 13a7ac <_Rate_monotonic_Timeout+0x44>
RTEMS_INLINE_ROUTINE void _Thread_Unblock (
Thread_Control *the_thread
)
{
_Thread_Clear_state( the_thread, STATES_BLOCKED );
13a79c: 52 push %edx
13a79d: 52 push %edx
13a79e: 68 f8 ff 03 10 push $0x1003fff8
13a7a3: 50 push %eax
13a7a4: e8 27 83 fd ff call 112ad0 <_Thread_Clear_state>
_Thread_Unblock( the_thread );
_Rate_monotonic_Initiate_statistics( the_period );
13a7a9: 59 pop %ecx
13a7aa: eb 10 jmp 13a7bc <_Rate_monotonic_Timeout+0x54>
_Watchdog_Insert_ticks( &the_period->Timer, the_period->next_length );
} else if ( the_period->state == RATE_MONOTONIC_OWNER_IS_BLOCKING ) {
13a7ac: 83 7b 38 01 cmpl $0x1,0x38(%ebx)
13a7b0: 75 2b jne 13a7dd <_Rate_monotonic_Timeout+0x75>
the_period->state = RATE_MONOTONIC_EXPIRED_WHILE_BLOCKING;
13a7b2: c7 43 38 03 00 00 00 movl $0x3,0x38(%ebx)
_Rate_monotonic_Initiate_statistics( the_period );
13a7b9: 83 ec 0c sub $0xc,%esp
13a7bc: 53 push %ebx
13a7bd: e8 52 fc ff ff call 13a414 <_Rate_monotonic_Initiate_statistics>
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
13a7c2: 8b 43 3c mov 0x3c(%ebx),%eax
13a7c5: 89 43 1c mov %eax,0x1c(%ebx)
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
13a7c8: 58 pop %eax
13a7c9: 5a pop %edx
13a7ca: 83 c3 10 add $0x10,%ebx
13a7cd: 53 push %ebx
13a7ce: 68 80 7c 16 00 push $0x167c80
13a7d3: e8 14 94 fd ff call 113bec <_Watchdog_Insert>
13a7d8: 83 c4 10 add $0x10,%esp
13a7db: eb 07 jmp 13a7e4 <_Rate_monotonic_Timeout+0x7c>
_Watchdog_Insert_ticks( &the_period->Timer, the_period->next_length );
} else
the_period->state = RATE_MONOTONIC_EXPIRED;
13a7dd: 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;
13a7e4: a1 a4 7b 16 00 mov 0x167ba4,%eax
13a7e9: 48 dec %eax
13a7ea: a3 a4 7b 16 00 mov %eax,0x167ba4
case OBJECTS_REMOTE: /* impossible */
#endif
case OBJECTS_ERROR:
break;
}
}
13a7ef: 8b 5d fc mov -0x4(%ebp),%ebx
13a7f2: c9 leave
13a7f3: 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 04 42 12 00 mov 0x124204,%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 a0 19 12 00 mov 0x1219a0(,%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 6c 19 12 00 mov 0x12196c(,%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
0010bd94 <_Thread_Change_priority>:
void _Thread_Change_priority(
Thread_Control *the_thread,
Priority_Control new_priority,
bool prepend_it
)
{
10bd94: 55 push %ebp
10bd95: 89 e5 mov %esp,%ebp
10bd97: 57 push %edi
10bd98: 56 push %esi
10bd99: 53 push %ebx
10bd9a: 83 ec 28 sub $0x28,%esp
10bd9d: 8b 5d 08 mov 0x8(%ebp),%ebx
10bda0: 8b 7d 0c mov 0xc(%ebp),%edi
10bda3: 8a 45 10 mov 0x10(%ebp),%al
10bda6: 88 45 e7 mov %al,-0x19(%ebp)
*/
/*
* Save original state
*/
original_state = the_thread->current_state;
10bda9: 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 );
10bdac: 53 push %ebx
10bdad: e8 22 0d 00 00 call 10cad4 <_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 )
10bdb2: 83 c4 10 add $0x10,%esp
10bdb5: 39 7b 14 cmp %edi,0x14(%ebx)
10bdb8: 74 0c je 10bdc6 <_Thread_Change_priority+0x32>
_Thread_Set_priority( the_thread, new_priority );
10bdba: 50 push %eax
10bdbb: 50 push %eax
10bdbc: 57 push %edi
10bdbd: 53 push %ebx
10bdbe: e8 dd 0b 00 00 call 10c9a0 <_Thread_Set_priority>
10bdc3: 83 c4 10 add $0x10,%esp
_ISR_Disable( level );
10bdc6: 9c pushf
10bdc7: fa cli
10bdc8: 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;
10bdc9: 8b 43 10 mov 0x10(%ebx),%eax
if ( state != STATES_TRANSIENT ) {
10bdcc: 83 f8 04 cmp $0x4,%eax
10bdcf: 74 2f je 10be00 <_Thread_Change_priority+0x6c>
/* Only clear the transient state if it wasn't set already */
if ( ! _States_Is_transient( original_state ) )
10bdd1: 83 e6 04 and $0x4,%esi
10bdd4: 75 08 jne 10bdde <_Thread_Change_priority+0x4a><== NEVER TAKEN
the_thread->current_state = _States_Clear( STATES_TRANSIENT, state );
10bdd6: 89 c2 mov %eax,%edx
10bdd8: 83 e2 fb and $0xfffffffb,%edx
10bddb: 89 53 10 mov %edx,0x10(%ebx)
_ISR_Enable( level );
10bdde: 51 push %ecx
10bddf: 9d popf
if ( _States_Is_waiting_on_thread_queue( state ) ) {
10bde0: a9 e0 be 03 00 test $0x3bee0,%eax
10bde5: 0f 84 c0 00 00 00 je 10beab <_Thread_Change_priority+0x117>
_Thread_queue_Requeue( the_thread->Wait.queue, the_thread );
10bdeb: 89 5d 0c mov %ebx,0xc(%ebp)
10bdee: 8b 43 44 mov 0x44(%ebx),%eax
10bdf1: 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 );
}
10bdf4: 8d 65 f4 lea -0xc(%ebp),%esp
10bdf7: 5b pop %ebx
10bdf8: 5e pop %esi
10bdf9: 5f pop %edi
10bdfa: 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 );
10bdfb: e9 18 0b 00 00 jmp 10c918 <_Thread_queue_Requeue>
}
return;
}
/* Only clear the transient state if it wasn't set already */
if ( ! _States_Is_transient( original_state ) ) {
10be00: 83 e6 04 and $0x4,%esi
10be03: 75 53 jne 10be58 <_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 );
10be05: 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;
10be0c: 8b 83 90 00 00 00 mov 0x90(%ebx),%eax
10be12: 66 8b 93 96 00 00 00 mov 0x96(%ebx),%dx
10be19: 66 09 10 or %dx,(%eax)
_Priority_Major_bit_map |= the_priority_map->ready_major;
10be1c: 66 a1 40 57 12 00 mov 0x125740,%ax
10be22: 0b 83 94 00 00 00 or 0x94(%ebx),%eax
10be28: 66 a3 40 57 12 00 mov %ax,0x125740
_Priority_Add_to_bit_map( &the_thread->Priority_map );
if ( prepend_it )
10be2e: 80 7d e7 00 cmpb $0x0,-0x19(%ebp)
10be32: 8b 83 8c 00 00 00 mov 0x8c(%ebx),%eax
10be38: 74 0e je 10be48 <_Thread_Change_priority+0xb4>
Chain_Node *the_node
)
{
Chain_Node *before_node;
the_node->previous = after_node;
10be3a: 89 43 04 mov %eax,0x4(%ebx)
before_node = after_node->next;
10be3d: 8b 10 mov (%eax),%edx
after_node->next = the_node;
10be3f: 89 18 mov %ebx,(%eax)
the_node->next = before_node;
10be41: 89 13 mov %edx,(%ebx)
before_node->previous = the_node;
10be43: 89 5a 04 mov %ebx,0x4(%edx)
10be46: eb 10 jmp 10be58 <_Thread_Change_priority+0xc4>
Chain_Node *the_node
)
{
Chain_Node *old_last_node;
the_node->next = _Chain_Tail(the_chain);
10be48: 8d 50 04 lea 0x4(%eax),%edx
10be4b: 89 13 mov %edx,(%ebx)
old_last_node = the_chain->last;
10be4d: 8b 50 08 mov 0x8(%eax),%edx
the_chain->last = the_node;
10be50: 89 58 08 mov %ebx,0x8(%eax)
old_last_node->next = the_node;
10be53: 89 1a mov %ebx,(%edx)
the_node->previous = old_last_node;
10be55: 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 );
10be58: 51 push %ecx
10be59: 9d popf
10be5a: 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 );
10be5b: 66 8b 1d 40 57 12 00 mov 0x125740,%bx
10be62: 31 c0 xor %eax,%eax
10be64: 89 c2 mov %eax,%edx
10be66: 66 0f bc d3 bsf %bx,%dx
_Bitfield_Find_first_bit( _Priority_Bit_map[major], minor );
10be6a: 0f b7 d2 movzwl %dx,%edx
10be6d: 66 8b 9c 12 b8 57 12 mov 0x1257b8(%edx,%edx,1),%bx
10be74: 00
10be75: 66 0f bc c3 bsf %bx,%ax
* ready thread.
*/
RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void )
{
_Thread_Heir = (Thread_Control *)
10be79: c1 e2 04 shl $0x4,%edx
10be7c: 0f b7 c0 movzwl %ax,%eax
10be7f: 01 c2 add %eax,%edx
10be81: 6b d2 0c imul $0xc,%edx,%edx
10be84: 8b 1d 58 56 12 00 mov 0x125658,%ebx
10be8a: 8b 14 1a mov (%edx,%ebx,1),%edx
10be8d: 89 15 1c 57 12 00 mov %edx,0x12571c
* is also the heir thread, and false otherwise.
*/
RTEMS_INLINE_ROUTINE bool _Thread_Is_executing_also_the_heir( void )
{
return ( _Thread_Executing == _Thread_Heir );
10be93: a1 4c 57 12 00 mov 0x12574c,%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() &&
10be98: 39 d0 cmp %edx,%eax
10be9a: 74 0d je 10bea9 <_Thread_Change_priority+0x115>
_Thread_Executing->is_preemptible )
10be9c: 80 78 75 00 cmpb $0x0,0x75(%eax)
10bea0: 74 07 je 10bea9 <_Thread_Change_priority+0x115>
_Context_Switch_necessary = true;
10bea2: c6 05 5c 57 12 00 01 movb $0x1,0x12575c
_ISR_Enable( level );
10bea9: 51 push %ecx
10beaa: 9d popf
}
10beab: 8d 65 f4 lea -0xc(%ebp),%esp
10beae: 5b pop %ebx
10beaf: 5e pop %esi
10beb0: 5f pop %edi
10beb1: c9 leave
10beb2: c3 ret
0010beb4 <_Thread_Clear_state>:
void _Thread_Clear_state(
Thread_Control *the_thread,
States_Control state
)
{
10beb4: 55 push %ebp
10beb5: 89 e5 mov %esp,%ebp
10beb7: 53 push %ebx
10beb8: 8b 45 08 mov 0x8(%ebp),%eax
10bebb: 8b 55 0c mov 0xc(%ebp),%edx
ISR_Level level;
States_Control current_state;
_ISR_Disable( level );
10bebe: 9c pushf
10bebf: fa cli
10bec0: 59 pop %ecx
current_state = the_thread->current_state;
10bec1: 8b 58 10 mov 0x10(%eax),%ebx
if ( current_state & state ) {
10bec4: 85 da test %ebx,%edx
10bec6: 74 71 je 10bf39 <_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);
10bec8: f7 d2 not %edx
10beca: 21 da and %ebx,%edx
current_state =
10becc: 89 50 10 mov %edx,0x10(%eax)
the_thread->current_state = _States_Clear( state, current_state );
if ( _States_Is_ready( current_state ) ) {
10becf: 85 d2 test %edx,%edx
10bed1: 75 66 jne 10bf39 <_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;
10bed3: 8b 90 90 00 00 00 mov 0x90(%eax),%edx
10bed9: 66 8b 98 96 00 00 00 mov 0x96(%eax),%bx
10bee0: 66 09 1a or %bx,(%edx)
_Priority_Major_bit_map |= the_priority_map->ready_major;
10bee3: 66 8b 15 40 57 12 00 mov 0x125740,%dx
10beea: 0b 90 94 00 00 00 or 0x94(%eax),%edx
10bef0: 66 89 15 40 57 12 00 mov %dx,0x125740
_Priority_Add_to_bit_map( &the_thread->Priority_map );
_Chain_Append_unprotected(the_thread->ready, &the_thread->Object.Node);
10bef7: 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);
10befd: 8d 5a 04 lea 0x4(%edx),%ebx
10bf00: 89 18 mov %ebx,(%eax)
old_last_node = the_chain->last;
10bf02: 8b 5a 08 mov 0x8(%edx),%ebx
the_chain->last = the_node;
10bf05: 89 42 08 mov %eax,0x8(%edx)
old_last_node->next = the_node;
10bf08: 89 03 mov %eax,(%ebx)
the_node->previous = old_last_node;
10bf0a: 89 58 04 mov %ebx,0x4(%eax)
_ISR_Flash( level );
10bf0d: 51 push %ecx
10bf0e: 9d popf
10bf0f: 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 ) {
10bf10: 8b 50 14 mov 0x14(%eax),%edx
10bf13: 8b 1d 1c 57 12 00 mov 0x12571c,%ebx
10bf19: 3b 53 14 cmp 0x14(%ebx),%edx
10bf1c: 73 1b jae 10bf39 <_Thread_Clear_state+0x85>
_Thread_Heir = the_thread;
10bf1e: a3 1c 57 12 00 mov %eax,0x12571c
if ( _Thread_Executing->is_preemptible ||
10bf23: a1 4c 57 12 00 mov 0x12574c,%eax
10bf28: 80 78 75 00 cmpb $0x0,0x75(%eax)
10bf2c: 75 04 jne 10bf32 <_Thread_Clear_state+0x7e>
10bf2e: 85 d2 test %edx,%edx
10bf30: 75 07 jne 10bf39 <_Thread_Clear_state+0x85><== ALWAYS TAKEN
the_thread->current_priority == 0 )
_Context_Switch_necessary = true;
10bf32: c6 05 5c 57 12 00 01 movb $0x1,0x12575c
}
}
}
_ISR_Enable( level );
10bf39: 51 push %ecx
10bf3a: 9d popf
}
10bf3b: 5b pop %ebx
10bf3c: c9 leave
10bf3d: c3 ret
0010c0b4 <_Thread_Delay_ended>:
void _Thread_Delay_ended(
Objects_Id id,
void *ignored __attribute__((unused))
)
{
10c0b4: 55 push %ebp
10c0b5: 89 e5 mov %esp,%ebp
10c0b7: 83 ec 20 sub $0x20,%esp
Thread_Control *the_thread;
Objects_Locations location;
the_thread = _Thread_Get( id, &location );
10c0ba: 8d 45 f4 lea -0xc(%ebp),%eax
10c0bd: 50 push %eax
10c0be: ff 75 08 pushl 0x8(%ebp)
10c0c1: e8 8e 01 00 00 call 10c254 <_Thread_Get>
switch ( location ) {
10c0c6: 83 c4 10 add $0x10,%esp
10c0c9: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
10c0cd: 75 1b jne 10c0ea <_Thread_Delay_ended+0x36><== NEVER TAKEN
#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE: /* impossible */
#endif
break;
case OBJECTS_LOCAL:
_Thread_Clear_state(
10c0cf: 52 push %edx
10c0d0: 52 push %edx
10c0d1: 68 18 00 00 10 push $0x10000018
10c0d6: 50 push %eax
10c0d7: e8 d8 fd ff ff call 10beb4 <_Thread_Clear_state>
10c0dc: a1 90 56 12 00 mov 0x125690,%eax
10c0e1: 48 dec %eax
10c0e2: a3 90 56 12 00 mov %eax,0x125690
10c0e7: 83 c4 10 add $0x10,%esp
| STATES_INTERRUPTIBLE_BY_SIGNAL
);
_Thread_Unnest_dispatch();
break;
}
}
10c0ea: c9 leave
10c0eb: c3 ret
0010c0ec <_Thread_Dispatch>:
* dispatch thread
* no dispatch thread
*/
void _Thread_Dispatch( void )
{
10c0ec: 55 push %ebp
10c0ed: 89 e5 mov %esp,%ebp
10c0ef: 57 push %edi
10c0f0: 56 push %esi
10c0f1: 53 push %ebx
10c0f2: 83 ec 1c sub $0x1c,%esp
Thread_Control *executing;
Thread_Control *heir;
ISR_Level level;
executing = _Thread_Executing;
10c0f5: 8b 1d 4c 57 12 00 mov 0x12574c,%ebx
_ISR_Disable( level );
10c0fb: 9c pushf
10c0fc: fa cli
10c0fd: 58 pop %eax
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
{
Timestamp_Control uptime, ran;
_TOD_Get_uptime( &uptime );
_Timestamp_Subtract(
10c0fe: 8d 7d d8 lea -0x28(%ebp),%edi
Thread_Control *heir;
ISR_Level level;
executing = _Thread_Executing;
_ISR_Disable( level );
while ( _Context_Switch_necessary == true ) {
10c101: e9 f1 00 00 00 jmp 10c1f7 <_Thread_Dispatch+0x10b>
heir = _Thread_Heir;
10c106: 8b 35 1c 57 12 00 mov 0x12571c,%esi
_Thread_Dispatch_disable_level = 1;
10c10c: c7 05 90 56 12 00 01 movl $0x1,0x125690
10c113: 00 00 00
_Context_Switch_necessary = false;
10c116: c6 05 5c 57 12 00 00 movb $0x0,0x12575c
_Thread_Executing = heir;
10c11d: 89 35 4c 57 12 00 mov %esi,0x12574c
#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 )
10c123: 83 7e 7c 01 cmpl $0x1,0x7c(%esi)
10c127: 75 09 jne 10c132 <_Thread_Dispatch+0x46>
heir->cpu_time_budget = _Thread_Ticks_per_timeslice;
10c129: 8b 15 5c 56 12 00 mov 0x12565c,%edx
10c12f: 89 56 78 mov %edx,0x78(%esi)
_ISR_Enable( level );
10c132: 50 push %eax
10c133: 9d popf
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
{
Timestamp_Control uptime, ran;
_TOD_Get_uptime( &uptime );
10c134: 83 ec 0c sub $0xc,%esp
10c137: 8d 45 e0 lea -0x20(%ebp),%eax
10c13a: 50 push %eax
10c13b: e8 10 37 00 00 call 10f850 <_TOD_Get_uptime>
_Timestamp_Subtract(
10c140: 83 c4 0c add $0xc,%esp
10c143: 57 push %edi
10c144: 8d 45 e0 lea -0x20(%ebp),%eax
10c147: 50 push %eax
10c148: 68 54 57 12 00 push $0x125754
10c14d: e8 ee 0b 00 00 call 10cd40 <_Timespec_Subtract>
&_Thread_Time_of_last_context_switch,
&uptime,
&ran
);
_Timestamp_Add_to( &executing->cpu_time_used, &ran );
10c152: 58 pop %eax
10c153: 5a pop %edx
10c154: 57 push %edi
10c155: 8d 83 84 00 00 00 lea 0x84(%ebx),%eax
10c15b: 50 push %eax
10c15c: e8 af 0b 00 00 call 10cd10 <_Timespec_Add_to>
_Thread_Time_of_last_context_switch = uptime;
10c161: 8b 45 e0 mov -0x20(%ebp),%eax
10c164: 8b 55 e4 mov -0x1c(%ebp),%edx
10c167: a3 54 57 12 00 mov %eax,0x125754
10c16c: 89 15 58 57 12 00 mov %edx,0x125758
#endif
/*
* Switch libc's task specific data.
*/
if ( _Thread_libc_reent ) {
10c172: a1 18 57 12 00 mov 0x125718,%eax
10c177: 83 c4 10 add $0x10,%esp
10c17a: 85 c0 test %eax,%eax
10c17c: 74 10 je 10c18e <_Thread_Dispatch+0xa2> <== NEVER TAKEN
executing->libc_reent = *_Thread_libc_reent;
10c17e: 8b 10 mov (%eax),%edx
10c180: 89 93 ec 00 00 00 mov %edx,0xec(%ebx)
*_Thread_libc_reent = heir->libc_reent;
10c186: 8b 96 ec 00 00 00 mov 0xec(%esi),%edx
10c18c: 89 10 mov %edx,(%eax)
}
_User_extensions_Thread_switch( executing, heir );
10c18e: 51 push %ecx
10c18f: 51 push %ecx
10c190: 56 push %esi
10c191: 53 push %ebx
10c192: e8 d9 0d 00 00 call 10cf70 <_User_extensions_Thread_switch>
if ( executing->fp_context != NULL )
_Context_Save_fp( &executing->fp_context );
#endif
#endif
_Context_Switch( &executing->Registers, &heir->Registers );
10c197: 58 pop %eax
10c198: 5a pop %edx
10c199: 81 c6 d0 00 00 00 add $0xd0,%esi
10c19f: 56 push %esi
10c1a0: 8d 83 d0 00 00 00 lea 0xd0(%ebx),%eax
10c1a6: 50 push %eax
10c1a7: e8 84 10 00 00 call 10d230 <_CPU_Context_switch>
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
#if ( CPU_USE_DEFERRED_FP_SWITCH == TRUE )
if ( (executing->fp_context != NULL) &&
10c1ac: 83 c4 10 add $0x10,%esp
10c1af: 83 bb e8 00 00 00 00 cmpl $0x0,0xe8(%ebx)
10c1b6: 74 36 je 10c1ee <_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 );
10c1b8: a1 14 57 12 00 mov 0x125714,%eax
10c1bd: 39 c3 cmp %eax,%ebx
10c1bf: 74 2d je 10c1ee <_Thread_Dispatch+0x102>
!_Thread_Is_allocated_fp( executing ) ) {
if ( _Thread_Allocated_fp != NULL )
10c1c1: 85 c0 test %eax,%eax
10c1c3: 74 11 je 10c1d6 <_Thread_Dispatch+0xea>
_Context_Save_fp( &_Thread_Allocated_fp->fp_context );
10c1c5: 83 ec 0c sub $0xc,%esp
10c1c8: 05 e8 00 00 00 add $0xe8,%eax
10c1cd: 50 push %eax
10c1ce: e8 91 10 00 00 call 10d264 <_CPU_Context_save_fp>
10c1d3: 83 c4 10 add $0x10,%esp
_Context_Restore_fp( &executing->fp_context );
10c1d6: 83 ec 0c sub $0xc,%esp
10c1d9: 8d 83 e8 00 00 00 lea 0xe8(%ebx),%eax
10c1df: 50 push %eax
10c1e0: e8 89 10 00 00 call 10d26e <_CPU_Context_restore_fp>
_Thread_Allocated_fp = executing;
10c1e5: 89 1d 14 57 12 00 mov %ebx,0x125714
10c1eb: 83 c4 10 add $0x10,%esp
if ( executing->fp_context != NULL )
_Context_Restore_fp( &executing->fp_context );
#endif
#endif
executing = _Thread_Executing;
10c1ee: 8b 1d 4c 57 12 00 mov 0x12574c,%ebx
_ISR_Disable( level );
10c1f4: 9c pushf
10c1f5: fa cli
10c1f6: 58 pop %eax
Thread_Control *heir;
ISR_Level level;
executing = _Thread_Executing;
_ISR_Disable( level );
while ( _Context_Switch_necessary == true ) {
10c1f7: 8a 15 5c 57 12 00 mov 0x12575c,%dl
10c1fd: 84 d2 test %dl,%dl
10c1ff: 0f 85 01 ff ff ff jne 10c106 <_Thread_Dispatch+0x1a>
executing = _Thread_Executing;
_ISR_Disable( level );
}
_Thread_Dispatch_disable_level = 0;
10c205: c7 05 90 56 12 00 00 movl $0x0,0x125690
10c20c: 00 00 00
_ISR_Enable( level );
10c20f: 50 push %eax
10c210: 9d popf
if ( _Thread_Do_post_task_switch_extension ||
10c211: 83 3d 30 57 12 00 00 cmpl $0x0,0x125730
10c218: 75 06 jne 10c220 <_Thread_Dispatch+0x134><== NEVER TAKEN
executing->do_post_task_switch_extension ) {
10c21a: 80 7b 74 00 cmpb $0x0,0x74(%ebx)
10c21e: 74 09 je 10c229 <_Thread_Dispatch+0x13d>
executing->do_post_task_switch_extension = false;
10c220: c6 43 74 00 movb $0x0,0x74(%ebx)
_API_extensions_Run_postswitch();
10c224: e8 a6 ea ff ff call 10accf <_API_extensions_Run_postswitch>
}
}
10c229: 8d 65 f4 lea -0xc(%ebp),%esp
10c22c: 5b pop %ebx
10c22d: 5e pop %esi
10c22e: 5f pop %edi
10c22f: c9 leave
10c230: c3 ret
001116d8 <_Thread_Evaluate_mode>:
*
* XXX
*/
bool _Thread_Evaluate_mode( void )
{
1116d8: 55 push %ebp
1116d9: 89 e5 mov %esp,%ebp
Thread_Control *executing;
executing = _Thread_Executing;
1116db: a1 4c 57 12 00 mov 0x12574c,%eax
if ( !_States_Is_ready( executing->current_state ) ||
1116e0: 83 78 10 00 cmpl $0x0,0x10(%eax)
1116e4: 75 0e jne 1116f4 <_Thread_Evaluate_mode+0x1c><== NEVER TAKEN
1116e6: 3b 05 1c 57 12 00 cmp 0x12571c,%eax
1116ec: 74 11 je 1116ff <_Thread_Evaluate_mode+0x27>
( !_Thread_Is_heir( executing ) && executing->is_preemptible ) ) {
1116ee: 80 78 75 00 cmpb $0x0,0x75(%eax)
1116f2: 74 0b je 1116ff <_Thread_Evaluate_mode+0x27><== NEVER TAKEN
_Context_Switch_necessary = true;
1116f4: c6 05 5c 57 12 00 01 movb $0x1,0x12575c
1116fb: b0 01 mov $0x1,%al
return true;
1116fd: eb 02 jmp 111701 <_Thread_Evaluate_mode+0x29>
1116ff: 31 c0 xor %eax,%eax
}
return false;
}
111701: c9 leave
111702: c3 ret
00111704 <_Thread_Handler>:
*
* Output parameters: NONE
*/
void _Thread_Handler( void )
{
111704: 55 push %ebp
111705: 89 e5 mov %esp,%ebp
111707: 53 push %ebx
111708: 83 ec 14 sub $0x14,%esp
#if defined(EXECUTE_GLOBAL_CONSTRUCTORS)
static char doneConstructors;
char doneCons;
#endif
executing = _Thread_Executing;
11170b: 8b 1d 4c 57 12 00 mov 0x12574c,%ebx
/*
* have to put level into a register for those cpu's that use
* inline asm here
*/
level = executing->Start.isr_level;
111711: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax
_ISR_Set_level(level);
111717: 85 c0 test %eax,%eax
111719: 74 03 je 11171e <_Thread_Handler+0x1a>
11171b: fa cli
11171c: eb 01 jmp 11171f <_Thread_Handler+0x1b>
11171e: fb sti
#if defined(EXECUTE_GLOBAL_CONSTRUCTORS)
doneCons = doneConstructors;
11171f: a0 48 53 12 00 mov 0x125348,%al
111724: 88 45 f7 mov %al,-0x9(%ebp)
doneConstructors = 1;
111727: c6 05 48 53 12 00 01 movb $0x1,0x125348
#endif
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
#if ( CPU_USE_DEFERRED_FP_SWITCH == TRUE )
if ( (executing->fp_context != NULL) &&
11172e: 83 bb e8 00 00 00 00 cmpl $0x0,0xe8(%ebx)
111735: 74 24 je 11175b <_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 );
111737: a1 14 57 12 00 mov 0x125714,%eax
11173c: 39 c3 cmp %eax,%ebx
11173e: 74 1b je 11175b <_Thread_Handler+0x57>
!_Thread_Is_allocated_fp( executing ) ) {
if ( _Thread_Allocated_fp != NULL )
111740: 85 c0 test %eax,%eax
111742: 74 11 je 111755 <_Thread_Handler+0x51>
_Context_Save_fp( &_Thread_Allocated_fp->fp_context );
111744: 83 ec 0c sub $0xc,%esp
111747: 05 e8 00 00 00 add $0xe8,%eax
11174c: 50 push %eax
11174d: e8 12 bb ff ff call 10d264 <_CPU_Context_save_fp>
111752: 83 c4 10 add $0x10,%esp
_Thread_Allocated_fp = executing;
111755: 89 1d 14 57 12 00 mov %ebx,0x125714
/*
* 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 );
11175b: 83 ec 0c sub $0xc,%esp
11175e: 53 push %ebx
11175f: e8 c0 b6 ff ff call 10ce24 <_User_extensions_Thread_begin>
/*
* At this point, the dispatch disable level BETTER be 1.
*/
_Thread_Enable_dispatch();
111764: e8 c8 aa ff ff call 10c231 <_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) */ {
111769: 83 c4 10 add $0x10,%esp
11176c: 80 7d f7 00 cmpb $0x0,-0x9(%ebp)
111770: 75 05 jne 111777 <_Thread_Handler+0x73>
INIT_NAME ();
111772: e8 89 bf 00 00 call 11d700 <__start_set_sysctl_set>
}
#endif
if ( executing->Start.prototype == THREAD_START_NUMERIC ) {
111777: 83 bb a0 00 00 00 00 cmpl $0x0,0xa0(%ebx)
11177e: 75 15 jne 111795 <_Thread_Handler+0x91> <== NEVER TAKEN
executing->Wait.return_argument =
(*(Thread_Entry_numeric) executing->Start.entry_point)(
111780: 83 ec 0c sub $0xc,%esp
111783: ff b3 a8 00 00 00 pushl 0xa8(%ebx)
111789: ff 93 9c 00 00 00 call *0x9c(%ebx)
INIT_NAME ();
}
#endif
if ( executing->Start.prototype == THREAD_START_NUMERIC ) {
executing->Wait.return_argument =
11178f: 89 43 28 mov %eax,0x28(%ebx)
111792: 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 );
111795: 83 ec 0c sub $0xc,%esp
111798: 53 push %ebx
111799: e8 b7 b6 ff ff call 10ce55 <_User_extensions_Thread_exitted>
_Internal_error_Occurred(
11179e: 83 c4 0c add $0xc,%esp
1117a1: 6a 06 push $0x6
1117a3: 6a 01 push $0x1
1117a5: 6a 00 push $0x0
1117a7: e8 14 9e ff ff call 10b5c0 <_Internal_error_Occurred>
0010c2c8 <_Thread_Initialize>:
Thread_CPU_budget_algorithms budget_algorithm,
Thread_CPU_budget_algorithm_callout budget_callout,
uint32_t isr_level,
Objects_Name name
)
{
10c2c8: 55 push %ebp
10c2c9: 89 e5 mov %esp,%ebp
10c2cb: 57 push %edi
10c2cc: 56 push %esi
10c2cd: 53 push %ebx
10c2ce: 83 ec 24 sub $0x24,%esp
10c2d1: 8b 5d 0c mov 0xc(%ebp),%ebx
10c2d4: 8b 75 14 mov 0x14(%ebp),%esi
10c2d7: 8a 55 18 mov 0x18(%ebp),%dl
10c2da: 8a 45 20 mov 0x20(%ebp),%al
10c2dd: 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;
10c2e0: c7 83 f0 00 00 00 00 movl $0x0,0xf0(%ebx)
10c2e7: 00 00 00
10c2ea: c7 83 f4 00 00 00 00 movl $0x0,0xf4(%ebx)
10c2f1: 00 00 00
10c2f4: c7 83 f8 00 00 00 00 movl $0x0,0xf8(%ebx)
10c2fb: 00 00 00
extensions_area = NULL;
the_thread->libc_reent = NULL;
10c2fe: c7 83 ec 00 00 00 00 movl $0x0,0xec(%ebx)
10c305: 00 00 00
/*
* Allocate and Initialize the stack for this thread.
*/
#if !defined(RTEMS_SCORE_THREAD_ENABLE_USER_PROVIDED_STACK_VIA_API)
actual_stack_size = _Thread_Stack_Allocate( the_thread, stack_size );
10c308: 56 push %esi
10c309: 53 push %ebx
10c30a: 88 55 e0 mov %dl,-0x20(%ebp)
10c30d: e8 36 08 00 00 call 10cb48 <_Thread_Stack_Allocate>
if ( !actual_stack_size || actual_stack_size < stack_size )
10c312: 83 c4 10 add $0x10,%esp
10c315: 39 f0 cmp %esi,%eax
10c317: 8a 55 e0 mov -0x20(%ebp),%dl
10c31a: 72 04 jb 10c320 <_Thread_Initialize+0x58>
10c31c: 85 c0 test %eax,%eax
10c31e: 75 07 jne 10c327 <_Thread_Initialize+0x5f><== ALWAYS TAKEN
10c320: 31 c0 xor %eax,%eax
10c322: e9 b9 01 00 00 jmp 10c4e0 <_Thread_Initialize+0x218>
Stack_Control *the_stack,
void *starting_address,
size_t size
)
{
the_stack->area = starting_address;
10c327: 8b 8b cc 00 00 00 mov 0xcc(%ebx),%ecx
10c32d: 89 8b c4 00 00 00 mov %ecx,0xc4(%ebx)
the_stack->size = size;
10c333: 89 83 c0 00 00 00 mov %eax,0xc0(%ebx)
/*
* Allocate the floating point area for this thread
*/
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
if ( is_fp ) {
10c339: 31 ff xor %edi,%edi
10c33b: 84 d2 test %dl,%dl
10c33d: 74 19 je 10c358 <_Thread_Initialize+0x90>
fp_area = _Workspace_Allocate( CONTEXT_FP_SIZE );
10c33f: 83 ec 0c sub $0xc,%esp
10c342: 6a 6c push $0x6c
10c344: e8 6b 0e 00 00 call 10d1b4 <_Workspace_Allocate>
10c349: 89 c7 mov %eax,%edi
if ( !fp_area )
10c34b: 83 c4 10 add $0x10,%esp
10c34e: 31 f6 xor %esi,%esi
10c350: 85 c0 test %eax,%eax
10c352: 0f 84 02 01 00 00 je 10c45a <_Thread_Initialize+0x192>
goto failed;
fp_area = _Context_Fp_start( fp_area, 0 );
}
the_thread->fp_context = fp_area;
10c358: 89 bb e8 00 00 00 mov %edi,0xe8(%ebx)
the_thread->Start.fp_context = fp_area;
10c35e: 89 bb c8 00 00 00 mov %edi,0xc8(%ebx)
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
10c364: c7 43 50 00 00 00 00 movl $0x0,0x50(%ebx)
the_watchdog->routine = routine;
10c36b: c7 43 64 00 00 00 00 movl $0x0,0x64(%ebx)
the_watchdog->id = id;
10c372: c7 43 68 00 00 00 00 movl $0x0,0x68(%ebx)
the_watchdog->user_data = user_data;
10c379: c7 43 6c 00 00 00 00 movl $0x0,0x6c(%ebx)
#endif
/*
* Allocate the extensions area for this thread
*/
if ( _Thread_Maximum_extensions ) {
10c380: a1 2c 57 12 00 mov 0x12572c,%eax
10c385: 31 f6 xor %esi,%esi
10c387: 85 c0 test %eax,%eax
10c389: 74 1d je 10c3a8 <_Thread_Initialize+0xe0>
extensions_area = _Workspace_Allocate(
10c38b: 83 ec 0c sub $0xc,%esp
10c38e: 8d 04 85 04 00 00 00 lea 0x4(,%eax,4),%eax
10c395: 50 push %eax
10c396: e8 19 0e 00 00 call 10d1b4 <_Workspace_Allocate>
10c39b: 89 c6 mov %eax,%esi
(_Thread_Maximum_extensions + 1) * sizeof( void * )
);
if ( !extensions_area )
10c39d: 83 c4 10 add $0x10,%esp
10c3a0: 85 c0 test %eax,%eax
10c3a2: 0f 84 b2 00 00 00 je 10c45a <_Thread_Initialize+0x192>
goto failed;
}
the_thread->extensions = (void **) extensions_area;
10c3a8: 89 b3 fc 00 00 00 mov %esi,0xfc(%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 ) {
10c3ae: 85 f6 test %esi,%esi
10c3b0: 74 1c je 10c3ce <_Thread_Initialize+0x106>
for ( i = 0; i <= _Thread_Maximum_extensions ; i++ )
10c3b2: 8b 0d 2c 57 12 00 mov 0x12572c,%ecx
10c3b8: 31 c0 xor %eax,%eax
10c3ba: eb 0e jmp 10c3ca <_Thread_Initialize+0x102>
the_thread->extensions[i] = NULL;
10c3bc: 8b 93 fc 00 00 00 mov 0xfc(%ebx),%edx
10c3c2: 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++ )
10c3c9: 40 inc %eax
10c3ca: 39 c8 cmp %ecx,%eax
10c3cc: 76 ee jbe 10c3bc <_Thread_Initialize+0xf4>
/*
* General initialization
*/
the_thread->Start.is_preemptible = is_preemptible;
10c3ce: 8a 45 e7 mov -0x19(%ebp),%al
10c3d1: 88 83 ac 00 00 00 mov %al,0xac(%ebx)
the_thread->Start.budget_algorithm = budget_algorithm;
10c3d7: 8b 45 24 mov 0x24(%ebp),%eax
10c3da: 89 83 b0 00 00 00 mov %eax,0xb0(%ebx)
the_thread->Start.budget_callout = budget_callout;
10c3e0: 8b 45 28 mov 0x28(%ebp),%eax
10c3e3: 89 83 b4 00 00 00 mov %eax,0xb4(%ebx)
case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT:
break;
#endif
}
the_thread->Start.isr_level = isr_level;
10c3e9: 8b 45 2c mov 0x2c(%ebp),%eax
10c3ec: 89 83 b8 00 00 00 mov %eax,0xb8(%ebx)
the_thread->current_state = STATES_DORMANT;
10c3f2: c7 43 10 01 00 00 00 movl $0x1,0x10(%ebx)
the_thread->Wait.queue = NULL;
10c3f9: c7 43 44 00 00 00 00 movl $0x0,0x44(%ebx)
the_thread->resource_count = 0;
10c400: 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;
10c407: 8b 45 1c mov 0x1c(%ebp),%eax
10c40a: 89 43 18 mov %eax,0x18(%ebx)
the_thread->Start.initial_priority = priority;
10c40d: 89 83 bc 00 00 00 mov %eax,0xbc(%ebx)
_Thread_Set_priority( the_thread, priority );
10c413: 52 push %edx
10c414: 52 push %edx
10c415: 50 push %eax
10c416: 53 push %ebx
10c417: e8 84 05 00 00 call 10c9a0 <_Thread_Set_priority>
/*
* Initialize the CPU usage statistics
*/
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
_Timestamp_Set_to_zero( &the_thread->cpu_time_used );
10c41c: c7 83 84 00 00 00 00 movl $0x0,0x84(%ebx)
10c423: 00 00 00
10c426: c7 83 88 00 00 00 00 movl $0x0,0x88(%ebx)
10c42d: 00 00 00
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
10c430: 0f b7 53 08 movzwl 0x8(%ebx),%edx
10c434: 8b 45 08 mov 0x8(%ebp),%eax
10c437: 8b 40 1c mov 0x1c(%eax),%eax
10c43a: 89 1c 90 mov %ebx,(%eax,%edx,4)
information,
_Objects_Get_index( the_object->id ),
the_object
);
the_object->name = name;
10c43d: 8b 45 30 mov 0x30(%ebp),%eax
10c440: 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 );
10c443: 89 1c 24 mov %ebx,(%esp)
10c446: e8 79 0a 00 00 call 10cec4 <_User_extensions_Thread_create>
10c44b: 88 c2 mov %al,%dl
if ( extension_status )
10c44d: 83 c4 10 add $0x10,%esp
10c450: b0 01 mov $0x1,%al
10c452: 84 d2 test %dl,%dl
10c454: 0f 85 86 00 00 00 jne 10c4e0 <_Thread_Initialize+0x218>
return true;
failed:
if ( the_thread->libc_reent )
10c45a: 8b 83 ec 00 00 00 mov 0xec(%ebx),%eax
10c460: 85 c0 test %eax,%eax
10c462: 74 0c je 10c470 <_Thread_Initialize+0x1a8>
_Workspace_Free( the_thread->libc_reent );
10c464: 83 ec 0c sub $0xc,%esp
10c467: 50 push %eax
10c468: e8 60 0d 00 00 call 10d1cd <_Workspace_Free>
10c46d: 83 c4 10 add $0x10,%esp
for ( i=0 ; i <= THREAD_API_LAST ; i++ )
if ( the_thread->API_Extensions[i] )
10c470: 8b 83 f0 00 00 00 mov 0xf0(%ebx),%eax
10c476: 85 c0 test %eax,%eax
10c478: 74 0c je 10c486 <_Thread_Initialize+0x1be>
_Workspace_Free( the_thread->API_Extensions[i] );
10c47a: 83 ec 0c sub $0xc,%esp
10c47d: 50 push %eax
10c47e: e8 4a 0d 00 00 call 10d1cd <_Workspace_Free>
10c483: 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] )
10c486: 8b 83 f4 00 00 00 mov 0xf4(%ebx),%eax
10c48c: 85 c0 test %eax,%eax
10c48e: 74 0c je 10c49c <_Thread_Initialize+0x1d4><== ALWAYS TAKEN
_Workspace_Free( the_thread->API_Extensions[i] );
10c490: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10c493: 50 push %eax <== NOT EXECUTED
10c494: e8 34 0d 00 00 call 10d1cd <_Workspace_Free> <== NOT EXECUTED
10c499: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
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] )
10c49c: 8b 83 f8 00 00 00 mov 0xf8(%ebx),%eax
10c4a2: 85 c0 test %eax,%eax
10c4a4: 74 0c je 10c4b2 <_Thread_Initialize+0x1ea><== ALWAYS TAKEN
_Workspace_Free( the_thread->API_Extensions[i] );
10c4a6: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10c4a9: 50 push %eax <== NOT EXECUTED
10c4aa: e8 1e 0d 00 00 call 10d1cd <_Workspace_Free> <== NOT EXECUTED
10c4af: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
if ( extensions_area )
10c4b2: 85 f6 test %esi,%esi
10c4b4: 74 0c je 10c4c2 <_Thread_Initialize+0x1fa>
(void) _Workspace_Free( extensions_area );
10c4b6: 83 ec 0c sub $0xc,%esp
10c4b9: 56 push %esi
10c4ba: e8 0e 0d 00 00 call 10d1cd <_Workspace_Free>
10c4bf: 83 c4 10 add $0x10,%esp
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
if ( fp_area )
10c4c2: 85 ff test %edi,%edi
10c4c4: 74 0c je 10c4d2 <_Thread_Initialize+0x20a>
(void) _Workspace_Free( fp_area );
10c4c6: 83 ec 0c sub $0xc,%esp
10c4c9: 57 push %edi
10c4ca: e8 fe 0c 00 00 call 10d1cd <_Workspace_Free>
10c4cf: 83 c4 10 add $0x10,%esp
#endif
_Thread_Stack_Free( the_thread );
10c4d2: 83 ec 0c sub $0xc,%esp
10c4d5: 53 push %ebx
10c4d6: e8 bd 06 00 00 call 10cb98 <_Thread_Stack_Free>
10c4db: 31 c0 xor %eax,%eax
return false;
10c4dd: 83 c4 10 add $0x10,%esp
}
10c4e0: 8d 65 f4 lea -0xc(%ebp),%esp
10c4e3: 5b pop %ebx
10c4e4: 5e pop %esi
10c4e5: 5f pop %edi
10c4e6: c9 leave
10c4e7: c3 ret
0010fe90 <_Thread_Reset_timeslice>:
* ready chain
* select heir
*/
void _Thread_Reset_timeslice( void )
{
10fe90: 55 push %ebp
10fe91: 89 e5 mov %esp,%ebp
10fe93: 56 push %esi
10fe94: 53 push %ebx
ISR_Level level;
Thread_Control *executing;
Chain_Control *ready;
executing = _Thread_Executing;
10fe95: a1 4c 57 12 00 mov 0x12574c,%eax
ready = executing->ready;
10fe9a: 8b 90 8c 00 00 00 mov 0x8c(%eax),%edx
_ISR_Disable( level );
10fea0: 9c pushf
10fea1: fa cli
10fea2: 59 pop %ecx
if ( _Chain_Has_only_one_node( ready ) ) {
10fea3: 8b 1a mov (%edx),%ebx
10fea5: 3b 5a 08 cmp 0x8(%edx),%ebx
10fea8: 74 33 je 10fedd <_Thread_Reset_timeslice+0x4d>
)
{
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
10feaa: 8b 30 mov (%eax),%esi
previous = the_node->previous;
10feac: 8b 58 04 mov 0x4(%eax),%ebx
next->previous = previous;
10feaf: 89 5e 04 mov %ebx,0x4(%esi)
previous->next = next;
10feb2: 89 33 mov %esi,(%ebx)
Chain_Node *the_node
)
{
Chain_Node *old_last_node;
the_node->next = _Chain_Tail(the_chain);
10feb4: 8d 5a 04 lea 0x4(%edx),%ebx
10feb7: 89 18 mov %ebx,(%eax)
old_last_node = the_chain->last;
10feb9: 8b 5a 08 mov 0x8(%edx),%ebx
the_chain->last = the_node;
10febc: 89 42 08 mov %eax,0x8(%edx)
old_last_node->next = the_node;
10febf: 89 03 mov %eax,(%ebx)
the_node->previous = old_last_node;
10fec1: 89 58 04 mov %ebx,0x4(%eax)
return;
}
_Chain_Extract_unprotected( &executing->Object.Node );
_Chain_Append_unprotected( ready, &executing->Object.Node );
_ISR_Flash( level );
10fec4: 51 push %ecx
10fec5: 9d popf
10fec6: fa cli
if ( _Thread_Is_heir( executing ) )
10fec7: 3b 05 1c 57 12 00 cmp 0x12571c,%eax
10fecd: 75 07 jne 10fed6 <_Thread_Reset_timeslice+0x46><== NEVER TAKEN
_Thread_Heir = (Thread_Control *) ready->first;
10fecf: 8b 02 mov (%edx),%eax
10fed1: a3 1c 57 12 00 mov %eax,0x12571c
_Context_Switch_necessary = true;
10fed6: c6 05 5c 57 12 00 01 movb $0x1,0x12575c
_ISR_Enable( level );
10fedd: 51 push %ecx
10fede: 9d popf
}
10fedf: 5b pop %ebx
10fee0: 5e pop %esi
10fee1: c9 leave
10fee2: c3 ret
0010f7b0 <_Thread_Resume>:
void _Thread_Resume(
Thread_Control *the_thread,
bool force
)
{
10f7b0: 55 push %ebp
10f7b1: 89 e5 mov %esp,%ebp
10f7b3: 53 push %ebx
10f7b4: 8b 45 08 mov 0x8(%ebp),%eax
ISR_Level level;
States_Control current_state;
_ISR_Disable( level );
10f7b7: 9c pushf
10f7b8: fa cli
10f7b9: 59 pop %ecx
_ISR_Enable( level );
return;
}
#endif
current_state = the_thread->current_state;
10f7ba: 8b 50 10 mov 0x10(%eax),%edx
if ( current_state & STATES_SUSPENDED ) {
10f7bd: f6 c2 02 test $0x2,%dl
10f7c0: 74 70 je 10f832 <_Thread_Resume+0x82> <== NEVER TAKEN
10f7c2: 83 e2 fd and $0xfffffffd,%edx
current_state =
10f7c5: 89 50 10 mov %edx,0x10(%eax)
the_thread->current_state = _States_Clear(STATES_SUSPENDED, current_state);
if ( _States_Is_ready( current_state ) ) {
10f7c8: 85 d2 test %edx,%edx
10f7ca: 75 66 jne 10f832 <_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;
10f7cc: 8b 90 90 00 00 00 mov 0x90(%eax),%edx
10f7d2: 66 8b 98 96 00 00 00 mov 0x96(%eax),%bx
10f7d9: 66 09 1a or %bx,(%edx)
_Priority_Major_bit_map |= the_priority_map->ready_major;
10f7dc: 66 8b 15 50 89 12 00 mov 0x128950,%dx
10f7e3: 0b 90 94 00 00 00 or 0x94(%eax),%edx
10f7e9: 66 89 15 50 89 12 00 mov %dx,0x128950
_Priority_Add_to_bit_map( &the_thread->Priority_map );
_Chain_Append_unprotected(the_thread->ready, &the_thread->Object.Node);
10f7f0: 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);
10f7f6: 8d 5a 04 lea 0x4(%edx),%ebx
10f7f9: 89 18 mov %ebx,(%eax)
old_last_node = the_chain->last;
10f7fb: 8b 5a 08 mov 0x8(%edx),%ebx
the_chain->last = the_node;
10f7fe: 89 42 08 mov %eax,0x8(%edx)
old_last_node->next = the_node;
10f801: 89 03 mov %eax,(%ebx)
the_node->previous = old_last_node;
10f803: 89 58 04 mov %ebx,0x4(%eax)
_ISR_Flash( level );
10f806: 51 push %ecx
10f807: 9d popf
10f808: fa cli
if ( the_thread->current_priority < _Thread_Heir->current_priority ) {
10f809: 8b 50 14 mov 0x14(%eax),%edx
10f80c: 8b 1d 2c 89 12 00 mov 0x12892c,%ebx
10f812: 3b 53 14 cmp 0x14(%ebx),%edx
10f815: 73 1b jae 10f832 <_Thread_Resume+0x82>
_Thread_Heir = the_thread;
10f817: a3 2c 89 12 00 mov %eax,0x12892c
if ( _Thread_Executing->is_preemptible ||
10f81c: a1 5c 89 12 00 mov 0x12895c,%eax
10f821: 80 78 75 00 cmpb $0x0,0x75(%eax)
10f825: 75 04 jne 10f82b <_Thread_Resume+0x7b>
10f827: 85 d2 test %edx,%edx
10f829: 75 07 jne 10f832 <_Thread_Resume+0x82> <== ALWAYS TAKEN
the_thread->current_priority == 0 )
_Context_Switch_necessary = true;
10f82b: c6 05 6c 89 12 00 01 movb $0x1,0x12896c
}
}
}
_ISR_Enable( level );
10f832: 51 push %ecx
10f833: 9d popf
}
10f834: 5b pop %ebx
10f835: c9 leave
10f836: c3 ret
0010ccb0 <_Thread_Yield_processor>:
* ready chain
* select heir
*/
void _Thread_Yield_processor( void )
{
10ccb0: 55 push %ebp
10ccb1: 89 e5 mov %esp,%ebp
10ccb3: 56 push %esi
10ccb4: 53 push %ebx
ISR_Level level;
Thread_Control *executing;
Chain_Control *ready;
executing = _Thread_Executing;
10ccb5: a1 4c 57 12 00 mov 0x12574c,%eax
ready = executing->ready;
10ccba: 8b 90 8c 00 00 00 mov 0x8c(%eax),%edx
_ISR_Disable( level );
10ccc0: 9c pushf
10ccc1: fa cli
10ccc2: 59 pop %ecx
if ( !_Chain_Has_only_one_node( ready ) ) {
10ccc3: 8b 1a mov (%edx),%ebx
10ccc5: 3b 5a 08 cmp 0x8(%edx),%ebx
10ccc8: 74 2e je 10ccf8 <_Thread_Yield_processor+0x48>
)
{
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
10ccca: 8b 30 mov (%eax),%esi
previous = the_node->previous;
10cccc: 8b 58 04 mov 0x4(%eax),%ebx
next->previous = previous;
10cccf: 89 5e 04 mov %ebx,0x4(%esi)
previous->next = next;
10ccd2: 89 33 mov %esi,(%ebx)
Chain_Node *the_node
)
{
Chain_Node *old_last_node;
the_node->next = _Chain_Tail(the_chain);
10ccd4: 8d 5a 04 lea 0x4(%edx),%ebx
10ccd7: 89 18 mov %ebx,(%eax)
old_last_node = the_chain->last;
10ccd9: 8b 5a 08 mov 0x8(%edx),%ebx
the_chain->last = the_node;
10ccdc: 89 42 08 mov %eax,0x8(%edx)
old_last_node->next = the_node;
10ccdf: 89 03 mov %eax,(%ebx)
the_node->previous = old_last_node;
10cce1: 89 58 04 mov %ebx,0x4(%eax)
_Chain_Extract_unprotected( &executing->Object.Node );
_Chain_Append_unprotected( ready, &executing->Object.Node );
_ISR_Flash( level );
10cce4: 51 push %ecx
10cce5: 9d popf
10cce6: fa cli
if ( _Thread_Is_heir( executing ) )
10cce7: 3b 05 1c 57 12 00 cmp 0x12571c,%eax
10cced: 75 11 jne 10cd00 <_Thread_Yield_processor+0x50><== NEVER TAKEN
_Thread_Heir = (Thread_Control *) ready->first;
10ccef: 8b 02 mov (%edx),%eax
10ccf1: a3 1c 57 12 00 mov %eax,0x12571c
10ccf6: eb 08 jmp 10cd00 <_Thread_Yield_processor+0x50>
_Context_Switch_necessary = true;
}
else if ( !_Thread_Is_heir( executing ) )
10ccf8: 3b 05 1c 57 12 00 cmp 0x12571c,%eax
10ccfe: 74 07 je 10cd07 <_Thread_Yield_processor+0x57><== ALWAYS TAKEN
_Context_Switch_necessary = true;
10cd00: c6 05 5c 57 12 00 01 movb $0x1,0x12575c
_ISR_Enable( level );
10cd07: 51 push %ecx
10cd08: 9d popf
}
10cd09: 5b pop %ebx
10cd0a: 5e pop %esi
10cd0b: c9 leave
10cd0c: c3 ret
0010c748 <_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
)
{
10c748: 55 push %ebp
10c749: 89 e5 mov %esp,%ebp
10c74b: 57 push %edi
10c74c: 56 push %esi
10c74d: 53 push %ebx
10c74e: 83 ec 10 sub $0x10,%esp
10c751: 8b 4d 08 mov 0x8(%ebp),%ecx
10c754: 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);
10c757: 8d 50 3c lea 0x3c(%eax),%edx
10c75a: 89 50 38 mov %edx,0x38(%eax)
the_chain->permanent_null = NULL;
10c75d: c7 40 3c 00 00 00 00 movl $0x0,0x3c(%eax)
the_chain->last = _Chain_Head(the_chain);
10c764: 8d 50 38 lea 0x38(%eax),%edx
10c767: 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;
10c76a: 8b 58 14 mov 0x14(%eax),%ebx
header_index = _Thread_queue_Header_number( priority );
header = &the_thread_queue->Queues.Priority[ header_index ];
10c76d: 89 de mov %ebx,%esi
10c76f: c1 ee 06 shr $0x6,%esi
10c772: 6b f6 0c imul $0xc,%esi,%esi
10c775: 8d 34 31 lea (%ecx,%esi,1),%esi
block_state = the_thread_queue->state;
10c778: 8b 79 38 mov 0x38(%ecx),%edi
if ( _Thread_queue_Is_reverse_search( priority ) )
10c77b: f6 c3 20 test $0x20,%bl
10c77e: 75 65 jne 10c7e5 <_Thread_queue_Enqueue_priority+0x9d>
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
10c780: 8d 56 04 lea 0x4(%esi),%edx
10c783: 89 55 e8 mov %edx,-0x18(%ebp)
goto restart_reverse_search;
restart_forward_search:
search_priority = PRIORITY_MINIMUM - 1;
_ISR_Disable( level );
10c786: 9c pushf
10c787: fa cli
10c788: 8f 45 f0 popl -0x10(%ebp)
search_thread = (Thread_Control *) header->first;
10c78b: 8b 16 mov (%esi),%edx
10c78d: c7 45 ec ff ff ff ff movl $0xffffffff,-0x14(%ebp)
10c794: 89 75 e4 mov %esi,-0x1c(%ebp)
while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) {
10c797: eb 1f jmp 10c7b8 <_Thread_queue_Enqueue_priority+0x70>
search_priority = search_thread->current_priority;
10c799: 8b 72 14 mov 0x14(%edx),%esi
10c79c: 89 75 ec mov %esi,-0x14(%ebp)
if ( priority <= search_priority )
10c79f: 39 f3 cmp %esi,%ebx
10c7a1: 76 1a jbe 10c7bd <_Thread_queue_Enqueue_priority+0x75>
break;
search_priority = search_thread->current_priority;
if ( priority <= search_priority )
break;
#endif
_ISR_Flash( level );
10c7a3: ff 75 f0 pushl -0x10(%ebp)
10c7a6: 9d popf
10c7a7: fa cli
if ( !_States_Are_set( search_thread->current_state, block_state) ) {
10c7a8: 85 7a 10 test %edi,0x10(%edx)
10c7ab: 75 09 jne 10c7b6 <_Thread_queue_Enqueue_priority+0x6e><== ALWAYS TAKEN
10c7ad: 8b 75 e4 mov -0x1c(%ebp),%esi <== NOT EXECUTED
_ISR_Enable( level );
10c7b0: ff 75 f0 pushl -0x10(%ebp) <== NOT EXECUTED
10c7b3: 9d popf <== NOT EXECUTED
goto restart_forward_search;
10c7b4: eb d0 jmp 10c786 <_Thread_queue_Enqueue_priority+0x3e><== NOT EXECUTED
}
search_thread =
(Thread_Control *)search_thread->Object.Node.next;
10c7b6: 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 ) ) {
10c7b8: 3b 55 e8 cmp -0x18(%ebp),%edx
10c7bb: 75 dc jne 10c799 <_Thread_queue_Enqueue_priority+0x51>
10c7bd: 8b 75 f0 mov -0x10(%ebp),%esi
}
search_thread =
(Thread_Control *)search_thread->Object.Node.next;
}
if ( the_thread_queue->sync_state !=
10c7c0: 83 79 30 01 cmpl $0x1,0x30(%ecx)
10c7c4: 0f 85 9e 00 00 00 jne 10c868 <_Thread_queue_Enqueue_priority+0x120>
THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )
goto synchronize;
the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
10c7ca: c7 41 30 00 00 00 00 movl $0x0,0x30(%ecx)
if ( priority == search_priority )
10c7d1: 3b 5d ec cmp -0x14(%ebp),%ebx
10c7d4: 74 7b je 10c851 <_Thread_queue_Enqueue_priority+0x109>
goto equal_priority;
search_node = (Chain_Node *) search_thread;
previous_node = search_node->previous;
10c7d6: 8b 5a 04 mov 0x4(%edx),%ebx
the_node = (Chain_Node *) the_thread;
the_node->next = search_node;
10c7d9: 89 10 mov %edx,(%eax)
the_node->previous = previous_node;
10c7db: 89 58 04 mov %ebx,0x4(%eax)
previous_node->next = the_node;
10c7de: 89 03 mov %eax,(%ebx)
search_node->previous = the_node;
10c7e0: 89 42 04 mov %eax,0x4(%edx)
10c7e3: eb 5e jmp 10c843 <_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;
10c7e5: 0f b6 15 14 17 12 00 movzbl 0x121714,%edx
10c7ec: 42 inc %edx
10c7ed: 89 55 ec mov %edx,-0x14(%ebp)
_ISR_Disable( level );
10c7f0: 9c pushf
10c7f1: fa cli
10c7f2: 8f 45 f0 popl -0x10(%ebp)
search_thread = (Thread_Control *) header->last;
10c7f5: 8b 56 08 mov 0x8(%esi),%edx
10c7f8: 89 75 e8 mov %esi,-0x18(%ebp)
while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) {
10c7fb: eb 20 jmp 10c81d <_Thread_queue_Enqueue_priority+0xd5>
search_priority = search_thread->current_priority;
10c7fd: 8b 72 14 mov 0x14(%edx),%esi
10c800: 89 75 ec mov %esi,-0x14(%ebp)
if ( priority >= search_priority )
10c803: 39 f3 cmp %esi,%ebx
10c805: 73 1b jae 10c822 <_Thread_queue_Enqueue_priority+0xda>
break;
search_priority = search_thread->current_priority;
if ( priority >= search_priority )
break;
#endif
_ISR_Flash( level );
10c807: ff 75 f0 pushl -0x10(%ebp)
10c80a: 9d popf
10c80b: fa cli
if ( !_States_Are_set( search_thread->current_state, block_state) ) {
10c80c: 85 7a 10 test %edi,0x10(%edx)
10c80f: 75 09 jne 10c81a <_Thread_queue_Enqueue_priority+0xd2>
10c811: 8b 75 e8 mov -0x18(%ebp),%esi
_ISR_Enable( level );
10c814: ff 75 f0 pushl -0x10(%ebp)
10c817: 9d popf
goto restart_reverse_search;
10c818: eb cb jmp 10c7e5 <_Thread_queue_Enqueue_priority+0x9d>
}
search_thread = (Thread_Control *)
10c81a: 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 ) ) {
10c81d: 3b 55 e8 cmp -0x18(%ebp),%edx
10c820: 75 db jne 10c7fd <_Thread_queue_Enqueue_priority+0xb5>
10c822: 8b 75 f0 mov -0x10(%ebp),%esi
}
search_thread = (Thread_Control *)
search_thread->Object.Node.previous;
}
if ( the_thread_queue->sync_state !=
10c825: 83 79 30 01 cmpl $0x1,0x30(%ecx)
10c829: 75 3d jne 10c868 <_Thread_queue_Enqueue_priority+0x120>
THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )
goto synchronize;
the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
10c82b: c7 41 30 00 00 00 00 movl $0x0,0x30(%ecx)
if ( priority == search_priority )
10c832: 3b 5d ec cmp -0x14(%ebp),%ebx
10c835: 74 1a je 10c851 <_Thread_queue_Enqueue_priority+0x109>
goto equal_priority;
search_node = (Chain_Node *) search_thread;
next_node = search_node->next;
10c837: 8b 1a mov (%edx),%ebx
the_node = (Chain_Node *) the_thread;
the_node->next = next_node;
10c839: 89 18 mov %ebx,(%eax)
the_node->previous = search_node;
10c83b: 89 50 04 mov %edx,0x4(%eax)
search_node->next = the_node;
10c83e: 89 02 mov %eax,(%edx)
next_node->previous = the_node;
10c840: 89 43 04 mov %eax,0x4(%ebx)
the_thread->Wait.queue = the_thread_queue;
10c843: 89 48 44 mov %ecx,0x44(%eax)
_ISR_Enable( level );
10c846: ff 75 f0 pushl -0x10(%ebp)
10c849: 9d popf
10c84a: b8 01 00 00 00 mov $0x1,%eax
return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;
10c84f: eb 1f jmp 10c870 <_Thread_queue_Enqueue_priority+0x128>
10c851: 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;
10c854: 8b 5a 04 mov 0x4(%edx),%ebx
the_node = (Chain_Node *) the_thread;
the_node->next = search_node;
10c857: 89 10 mov %edx,(%eax)
the_node->previous = previous_node;
10c859: 89 58 04 mov %ebx,0x4(%eax)
previous_node->next = the_node;
10c85c: 89 03 mov %eax,(%ebx)
search_node->previous = the_node;
10c85e: 89 42 04 mov %eax,0x4(%edx)
the_thread->Wait.queue = the_thread_queue;
10c861: 89 48 44 mov %ecx,0x44(%eax)
_ISR_Enable( level );
10c864: 56 push %esi
10c865: 9d popf
10c866: eb e2 jmp 10c84a <_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;
10c868: 8b 45 10 mov 0x10(%ebp),%eax
10c86b: 89 30 mov %esi,(%eax)
return the_thread_queue->sync_state;
10c86d: 8b 41 30 mov 0x30(%ecx),%eax
}
10c870: 83 c4 10 add $0x10,%esp
10c873: 5b pop %ebx
10c874: 5e pop %esi
10c875: 5f pop %edi
10c876: c9 leave
10c877: c3 ret
0010c918 <_Thread_queue_Requeue>:
void _Thread_queue_Requeue(
Thread_queue_Control *the_thread_queue,
Thread_Control *the_thread
)
{
10c918: 55 push %ebp
10c919: 89 e5 mov %esp,%ebp
10c91b: 57 push %edi
10c91c: 56 push %esi
10c91d: 53 push %ebx
10c91e: 83 ec 1c sub $0x1c,%esp
10c921: 8b 75 08 mov 0x8(%ebp),%esi
10c924: 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 )
10c927: 85 f6 test %esi,%esi
10c929: 74 36 je 10c961 <_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 ) {
10c92b: 83 7e 34 01 cmpl $0x1,0x34(%esi)
10c92f: 75 30 jne 10c961 <_Thread_queue_Requeue+0x49><== NEVER TAKEN
Thread_queue_Control *tq = the_thread_queue;
ISR_Level level;
ISR_Level level_ignored;
_ISR_Disable( level );
10c931: 9c pushf
10c932: fa cli
10c933: 5b pop %ebx
if ( _States_Is_waiting_on_thread_queue( the_thread->current_state ) ) {
10c934: f7 47 10 e0 be 03 00 testl $0x3bee0,0x10(%edi)
10c93b: 74 22 je 10c95f <_Thread_queue_Requeue+0x47><== NEVER TAKEN
10c93d: 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 );
10c944: 50 push %eax
10c945: 6a 01 push $0x1
10c947: 57 push %edi
10c948: 56 push %esi
10c949: e8 aa 33 00 00 call 10fcf8 <_Thread_queue_Extract_priority_helper>
(void) _Thread_queue_Enqueue_priority( tq, the_thread, &level_ignored );
10c94e: 83 c4 0c add $0xc,%esp
10c951: 8d 45 e4 lea -0x1c(%ebp),%eax
10c954: 50 push %eax
10c955: 57 push %edi
10c956: 56 push %esi
10c957: e8 ec fd ff ff call 10c748 <_Thread_queue_Enqueue_priority>
10c95c: 83 c4 10 add $0x10,%esp
}
_ISR_Enable( level );
10c95f: 53 push %ebx
10c960: 9d popf
}
}
10c961: 8d 65 f4 lea -0xc(%ebp),%esp
10c964: 5b pop %ebx
10c965: 5e pop %esi
10c966: 5f pop %edi
10c967: c9 leave
10c968: c3 ret
0010c96c <_Thread_queue_Timeout>:
void _Thread_queue_Timeout(
Objects_Id id,
void *ignored __attribute__((unused))
)
{
10c96c: 55 push %ebp
10c96d: 89 e5 mov %esp,%ebp
10c96f: 83 ec 20 sub $0x20,%esp
Thread_Control *the_thread;
Objects_Locations location;
the_thread = _Thread_Get( id, &location );
10c972: 8d 45 f4 lea -0xc(%ebp),%eax
10c975: 50 push %eax
10c976: ff 75 08 pushl 0x8(%ebp)
10c979: e8 d6 f8 ff ff call 10c254 <_Thread_Get>
switch ( location ) {
10c97e: 83 c4 10 add $0x10,%esp
10c981: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
10c985: 75 17 jne 10c99e <_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 );
10c987: 83 ec 0c sub $0xc,%esp
10c98a: 50 push %eax
10c98b: e8 14 34 00 00 call 10fda4 <_Thread_queue_Process_timeout>
*/
RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void )
{
RTEMS_COMPILER_MEMORY_BARRIER();
_Thread_Dispatch_disable_level -= 1;
10c990: a1 90 56 12 00 mov 0x125690,%eax
10c995: 48 dec %eax
10c996: a3 90 56 12 00 mov %eax,0x125690
10c99b: 83 c4 10 add $0x10,%esp
_Thread_Unnest_dispatch();
break;
}
}
10c99e: c9 leave
10c99f: 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 b0 e6 13 00 mov 0x13e6b0,%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 3a 35 00 00 call 11a7c4 <_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 f4 e5 13 00 mov 0x13e5f4,%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 16 35 00 00 call 11a7c4 <_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 99 34 00 00 call 11a758 <_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 dc 06 00 00 call 1179b0 <_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 4d 35 00 00 call 11a84c <_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 64 e5 13 00 mov 0x13e564,%eax
117369: 40 inc %eax
11736a: a3 64 e5 13 00 mov %eax,0x13e564
/*
* 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 f2 2c 00 00 call 11a06c <_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 d0 23 00 00 call 11975d <_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 c6 35 00 00 call 11a960 <_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 bd 35 00 00 call 11a960 <_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 64 e5 13 00 mov 0x13e564,%edx
1173cb: 42 inc %edx
1173cc: 89 15 64 e5 13 00 mov %edx,0x13e564
* 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 b0 e6 13 00 mov 0x13e6b0,%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 2b 34 00 00 call 11a84c <_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 f4 e5 13 00 mov 0x13e5f4,%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 be 33 00 00 call 11a84c <_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 b2 22 00 00 jmp 11975d <_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 b4 04 00 00 jmp 117974 <_Chain_Append> <== NOT EXECUTED
0010ce55 <_User_extensions_Thread_exitted>:
void _User_extensions_Thread_exitted (
Thread_Control *executing
)
{
10ce55: 55 push %ebp
10ce56: 89 e5 mov %esp,%ebp
10ce58: 56 push %esi
10ce59: 53 push %ebx
10ce5a: 8b 75 08 mov 0x8(%ebp),%esi
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.last ;
10ce5d: 8b 1d a8 58 12 00 mov 0x1258a8,%ebx
10ce63: eb 13 jmp 10ce78 <_User_extensions_Thread_exitted+0x23>
!_Chain_Is_head( &_User_extensions_List, the_node ) ;
the_node = the_node->previous ) {
the_extension = (User_extensions_Control *) the_node;
if ( the_extension->Callouts.thread_exitted != NULL )
10ce65: 8b 43 2c mov 0x2c(%ebx),%eax
10ce68: 85 c0 test %eax,%eax
10ce6a: 74 09 je 10ce75 <_User_extensions_Thread_exitted+0x20>
(*the_extension->Callouts.thread_exitted)( executing );
10ce6c: 83 ec 0c sub $0xc,%esp
10ce6f: 56 push %esi
10ce70: ff d0 call *%eax
10ce72: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.last ;
!_Chain_Is_head( &_User_extensions_List, the_node ) ;
the_node = the_node->previous ) {
10ce75: 8b 5b 04 mov 0x4(%ebx),%ebx
{
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.last ;
!_Chain_Is_head( &_User_extensions_List, the_node ) ;
10ce78: 81 fb a0 58 12 00 cmp $0x1258a0,%ebx
10ce7e: 75 e5 jne 10ce65 <_User_extensions_Thread_exitted+0x10>
the_extension = (User_extensions_Control *) the_node;
if ( the_extension->Callouts.thread_exitted != NULL )
(*the_extension->Callouts.thread_exitted)( executing );
}
}
10ce80: 8d 65 f8 lea -0x8(%ebp),%esp
10ce83: 5b pop %ebx
10ce84: 5e pop %esi
10ce85: c9 leave
10ce86: c3 ret
0010e7b0 <_Watchdog_Adjust>:
void _Watchdog_Adjust(
Chain_Control *header,
Watchdog_Adjust_directions direction,
Watchdog_Interval units
)
{
10e7b0: 55 push %ebp
10e7b1: 89 e5 mov %esp,%ebp
10e7b3: 57 push %edi
10e7b4: 56 push %esi
10e7b5: 53 push %ebx
10e7b6: 83 ec 1c sub $0x1c,%esp
10e7b9: 8b 75 08 mov 0x8(%ebp),%esi
10e7bc: 8b 7d 0c mov 0xc(%ebp),%edi
10e7bf: 8b 5d 10 mov 0x10(%ebp),%ebx
ISR_Level level;
_ISR_Disable( level );
10e7c2: 9c pushf
10e7c3: fa cli
10e7c4: 58 pop %eax
*/
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
Chain_Control *the_chain
)
{
return (the_chain->first == _Chain_Tail(the_chain));
10e7c5: 8b 16 mov (%esi),%edx
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
10e7c7: 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 ) ) {
10e7ca: 39 ca cmp %ecx,%edx
10e7cc: 74 44 je 10e812 <_Watchdog_Adjust+0x62>
switch ( direction ) {
10e7ce: 85 ff test %edi,%edi
10e7d0: 74 3c je 10e80e <_Watchdog_Adjust+0x5e>
10e7d2: 4f dec %edi
10e7d3: 75 3d jne 10e812 <_Watchdog_Adjust+0x62> <== NEVER TAKEN
case WATCHDOG_BACKWARD:
_Watchdog_First( header )->delta_interval += units;
10e7d5: 01 5a 10 add %ebx,0x10(%edx)
break;
10e7d8: eb 38 jmp 10e812 <_Watchdog_Adjust+0x62>
RTEMS_INLINE_ROUTINE Watchdog_Control *_Watchdog_First(
Chain_Control *header
)
{
return ( (Watchdog_Control *) header->first );
10e7da: 8b 16 mov (%esi),%edx
case WATCHDOG_FORWARD:
while ( units ) {
if ( units < _Watchdog_First( header )->delta_interval ) {
10e7dc: 8b 7a 10 mov 0x10(%edx),%edi
10e7df: 39 fb cmp %edi,%ebx
10e7e1: 73 07 jae 10e7ea <_Watchdog_Adjust+0x3a>
_Watchdog_First( header )->delta_interval -= units;
10e7e3: 29 df sub %ebx,%edi
10e7e5: 89 7a 10 mov %edi,0x10(%edx)
break;
10e7e8: eb 28 jmp 10e812 <_Watchdog_Adjust+0x62>
} else {
units -= _Watchdog_First( header )->delta_interval;
_Watchdog_First( header )->delta_interval = 1;
10e7ea: c7 42 10 01 00 00 00 movl $0x1,0x10(%edx)
_ISR_Enable( level );
10e7f1: 50 push %eax
10e7f2: 9d popf
_Watchdog_Tickle( header );
10e7f3: 83 ec 0c sub $0xc,%esp
10e7f6: 56 push %esi
10e7f7: 89 4d e4 mov %ecx,-0x1c(%ebp)
10e7fa: e8 99 01 00 00 call 10e998 <_Watchdog_Tickle>
_ISR_Disable( level );
10e7ff: 9c pushf
10e800: fa cli
10e801: 58 pop %eax
if ( _Chain_Is_empty( header ) )
10e802: 83 c4 10 add $0x10,%esp
10e805: 8b 4d e4 mov -0x1c(%ebp),%ecx
10e808: 39 0e cmp %ecx,(%esi)
10e80a: 74 06 je 10e812 <_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;
10e80c: 29 fb sub %edi,%ebx
switch ( direction ) {
case WATCHDOG_BACKWARD:
_Watchdog_First( header )->delta_interval += units;
break;
case WATCHDOG_FORWARD:
while ( units ) {
10e80e: 85 db test %ebx,%ebx
10e810: 75 c8 jne 10e7da <_Watchdog_Adjust+0x2a> <== ALWAYS TAKEN
}
break;
}
}
_ISR_Enable( level );
10e812: 50 push %eax
10e813: 9d popf
}
10e814: 8d 65 f4 lea -0xc(%ebp),%esp
10e817: 5b pop %ebx
10e818: 5e pop %esi
10e819: 5f pop %edi
10e81a: c9 leave
10e81b: c3 ret
0010d0b8 <_Watchdog_Remove>:
*/
Watchdog_States _Watchdog_Remove(
Watchdog_Control *the_watchdog
)
{
10d0b8: 55 push %ebp
10d0b9: 89 e5 mov %esp,%ebp
10d0bb: 56 push %esi
10d0bc: 53 push %ebx
10d0bd: 8b 55 08 mov 0x8(%ebp),%edx
ISR_Level level;
Watchdog_States previous_state;
Watchdog_Control *next_watchdog;
_ISR_Disable( level );
10d0c0: 9c pushf
10d0c1: fa cli
10d0c2: 5e pop %esi
previous_state = the_watchdog->state;
10d0c3: 8b 42 08 mov 0x8(%edx),%eax
switch ( previous_state ) {
10d0c6: 83 f8 01 cmp $0x1,%eax
10d0c9: 74 09 je 10d0d4 <_Watchdog_Remove+0x1c>
10d0cb: 72 44 jb 10d111 <_Watchdog_Remove+0x59>
10d0cd: 83 f8 03 cmp $0x3,%eax
10d0d0: 77 3f ja 10d111 <_Watchdog_Remove+0x59> <== NEVER TAKEN
10d0d2: eb 09 jmp 10d0dd <_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;
10d0d4: c7 42 08 00 00 00 00 movl $0x0,0x8(%edx)
break;
10d0db: eb 34 jmp 10d111 <_Watchdog_Remove+0x59>
case WATCHDOG_ACTIVE:
case WATCHDOG_REMOVE_IT:
the_watchdog->state = WATCHDOG_INACTIVE;
10d0dd: 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 );
10d0e4: 8b 0a mov (%edx),%ecx
next_watchdog = _Watchdog_Next( the_watchdog );
if ( _Watchdog_Next(next_watchdog) )
10d0e6: 83 39 00 cmpl $0x0,(%ecx)
10d0e9: 74 06 je 10d0f1 <_Watchdog_Remove+0x39>
next_watchdog->delta_interval += the_watchdog->delta_interval;
10d0eb: 8b 5a 10 mov 0x10(%edx),%ebx
10d0ee: 01 59 10 add %ebx,0x10(%ecx)
if ( _Watchdog_Sync_count )
10d0f1: 8b 0d d8 57 12 00 mov 0x1257d8,%ecx
10d0f7: 85 c9 test %ecx,%ecx
10d0f9: 74 0c je 10d107 <_Watchdog_Remove+0x4f>
_Watchdog_Sync_level = _ISR_Nest_level;
10d0fb: 8b 0d 28 57 12 00 mov 0x125728,%ecx
10d101: 89 0d 48 57 12 00 mov %ecx,0x125748
)
{
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
10d107: 8b 1a mov (%edx),%ebx
previous = the_node->previous;
10d109: 8b 4a 04 mov 0x4(%edx),%ecx
next->previous = previous;
10d10c: 89 4b 04 mov %ecx,0x4(%ebx)
previous->next = next;
10d10f: 89 19 mov %ebx,(%ecx)
_Chain_Extract_unprotected( &the_watchdog->Node );
break;
}
the_watchdog->stop_time = _Watchdog_Ticks_since_boot;
10d111: 8b 0d dc 57 12 00 mov 0x1257dc,%ecx
10d117: 89 4a 18 mov %ecx,0x18(%edx)
_ISR_Enable( level );
10d11a: 56 push %esi
10d11b: 9d popf
return( previous_state );
}
10d11c: 5b pop %ebx
10d11d: 5e pop %esi
10d11e: c9 leave
10d11f: c3 ret
0010e2e8 <_Watchdog_Report_chain>:
void _Watchdog_Report_chain(
const char *name,
Chain_Control *header
)
{
10e2e8: 55 push %ebp
10e2e9: 89 e5 mov %esp,%ebp
10e2eb: 57 push %edi
10e2ec: 56 push %esi
10e2ed: 53 push %ebx
10e2ee: 83 ec 20 sub $0x20,%esp
10e2f1: 8b 7d 08 mov 0x8(%ebp),%edi
10e2f4: 8b 75 0c mov 0xc(%ebp),%esi
ISR_Level level;
Chain_Node *node;
_ISR_Disable( level );
10e2f7: 9c pushf
10e2f8: fa cli
10e2f9: 8f 45 e4 popl -0x1c(%ebp)
printk( "Watchdog Chain: %s %p\n", name, header );
10e2fc: 56 push %esi
10e2fd: 57 push %edi
10e2fe: 68 e4 15 12 00 push $0x1215e4
10e303: e8 74 ab ff ff call 108e7c <printk>
*/
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
Chain_Control *the_chain
)
{
return (the_chain->first == _Chain_Tail(the_chain));
10e308: 8b 1e mov (%esi),%ebx
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
10e30a: 83 c6 04 add $0x4,%esi
if ( !_Chain_Is_empty( header ) ) {
10e30d: 83 c4 10 add $0x10,%esp
10e310: 39 f3 cmp %esi,%ebx
10e312: 74 1d je 10e331 <_Watchdog_Report_chain+0x49>
node != _Chain_Tail(header) ;
node = node->next )
{
Watchdog_Control *watch = (Watchdog_Control *) node;
_Watchdog_Report( NULL, watch );
10e314: 52 push %edx
10e315: 52 push %edx
10e316: 53 push %ebx
10e317: 6a 00 push $0x0
10e319: e8 32 00 00 00 call 10e350 <_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 )
10e31e: 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 ;
10e320: 83 c4 10 add $0x10,%esp
10e323: 39 f3 cmp %esi,%ebx
10e325: 75 ed jne 10e314 <_Watchdog_Report_chain+0x2c><== NEVER TAKEN
{
Watchdog_Control *watch = (Watchdog_Control *) node;
_Watchdog_Report( NULL, watch );
}
printk( "== end of %s \n", name );
10e327: 50 push %eax
10e328: 50 push %eax
10e329: 57 push %edi
10e32a: 68 fb 15 12 00 push $0x1215fb
10e32f: eb 08 jmp 10e339 <_Watchdog_Report_chain+0x51>
} else {
printk( "Chain is empty\n" );
10e331: 83 ec 0c sub $0xc,%esp
10e334: 68 0a 16 12 00 push $0x12160a
10e339: e8 3e ab ff ff call 108e7c <printk>
10e33e: 83 c4 10 add $0x10,%esp
}
_ISR_Enable( level );
10e341: ff 75 e4 pushl -0x1c(%ebp)
10e344: 9d popf
}
10e345: 8d 65 f4 lea -0xc(%ebp),%esp
10e348: 5b pop %ebx
10e349: 5e pop %esi
10e34a: 5f pop %edi
10e34b: c9 leave
10e34c: c3 ret
00121bee <__kill>:
#endif
int __kill( pid_t pid, int sig )
{
121bee: 55 push %ebp <== NOT EXECUTED
121bef: 89 e5 mov %esp,%ebp <== NOT EXECUTED
return 0;
}
121bf1: 31 c0 xor %eax,%eax <== NOT EXECUTED
121bf3: c9 leave <== NOT EXECUTED
121bf4: c3 ret <== NOT EXECUTED
0011d08c <_exit>:
/*
* If the toolset uses init/fini sections, then we need to
* run the global destructors now.
*/
#if defined(__USE_INIT_FINI__)
FINI_SYMBOL();
11d08c: 55 push %ebp
11d08d: 89 e5 mov %esp,%ebp
11d08f: 83 ec 08 sub $0x8,%esp
11d092: e8 76 06 00 00 call 11d70d <_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();
11d097: e8 8c ff ff ff call 11d028 <libc_wrapup>
rtems_shutdown_executive(status);
11d09c: 83 ec 0c sub $0xc,%esp
11d09f: ff 75 08 pushl 0x8(%ebp)
11d0a2: e8 e9 00 00 00 call 11d190 <rtems_shutdown_executive>
11d0a7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
11d0aa: eb fe jmp 11d0aa <_exit+0x1e> <== NOT EXECUTED
00125c72 <_fat_block_read>:
uint32_t start,
uint32_t offset,
uint32_t count,
void *buff
)
{
125c72: 55 push %ebp <== NOT EXECUTED
125c73: 89 e5 mov %esp,%ebp <== NOT EXECUTED
125c75: 57 push %edi <== NOT EXECUTED
125c76: 56 push %esi <== NOT EXECUTED
125c77: 53 push %ebx <== NOT EXECUTED
125c78: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED
125c7b: 8b 55 14 mov 0x14(%ebp),%edx <== NOT EXECUTED
int rc = RC_OK;
register fat_fs_info_t *fs_info = mt_entry->fs_info;
125c7e: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
125c81: 8b 40 34 mov 0x34(%eax),%eax <== NOT EXECUTED
125c84: 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;
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 d4 mov %eax,-0x2c(%ebp) <== NOT EXECUTED
125c97: 31 db xor %ebx,%ebx <== NOT EXECUTED
uint32_t c = 0;
while (count > 0)
125c99: eb 50 jmp 125ceb <_fat_block_read+0x79> <== NOT EXECUTED
{
rc = fat_buf_access(fs_info, blk, FAT_OP_TYPE_READ, &block);
125c9b: 8d 4d e4 lea -0x1c(%ebp),%ecx <== NOT EXECUTED
125c9e: 51 push %ecx <== NOT EXECUTED
125c9f: 6a 01 push $0x1 <== NOT EXECUTED
125ca1: ff 75 d4 pushl -0x2c(%ebp) <== NOT EXECUTED
125ca4: ff 75 d0 pushl -0x30(%ebp) <== NOT EXECUTED
125ca7: 89 55 c8 mov %edx,-0x38(%ebp) <== NOT EXECUTED
125caa: e8 ff fa ff ff call 1257ae <fat_buf_access> <== NOT EXECUTED
if (rc != RC_OK)
125caf: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
125cb2: 85 c0 test %eax,%eax <== NOT EXECUTED
125cb4: 8b 55 c8 mov -0x38(%ebp),%edx <== NOT EXECUTED
125cb7: 74 05 je 125cbe <_fat_block_read+0x4c> <== NOT EXECUTED
125cb9: 83 cb ff or $0xffffffff,%ebx <== NOT EXECUTED
125cbc: eb 31 jmp 125cef <_fat_block_read+0x7d> <== NOT EXECUTED
return -1;
c = MIN(count, (fs_info->vol.bps - ofs));
125cbe: 8b 4d d0 mov -0x30(%ebp),%ecx <== NOT EXECUTED
125cc1: 0f b7 01 movzwl (%ecx),%eax <== NOT EXECUTED
125cc4: 29 f0 sub %esi,%eax <== NOT EXECUTED
125cc6: 39 d0 cmp %edx,%eax <== NOT EXECUTED
125cc8: 76 02 jbe 125ccc <_fat_block_read+0x5a> <== NOT EXECUTED
125cca: 89 d0 mov %edx,%eax <== NOT EXECUTED
memcpy((buff + cmpltd), (block->buffer + ofs), c);
125ccc: 8b 4d 18 mov 0x18(%ebp),%ecx <== NOT EXECUTED
125ccf: 01 d9 add %ebx,%ecx <== NOT EXECUTED
125cd1: 89 4d cc mov %ecx,-0x34(%ebp) <== NOT EXECUTED
125cd4: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED
125cd7: 03 71 20 add 0x20(%ecx),%esi <== NOT EXECUTED
125cda: 8b 7d cc mov -0x34(%ebp),%edi <== NOT EXECUTED
125cdd: 89 c1 mov %eax,%ecx <== NOT EXECUTED
125cdf: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
count -= c;
125ce1: 29 c2 sub %eax,%edx <== NOT EXECUTED
cmpltd += c;
125ce3: 8d 1c 18 lea (%eax,%ebx,1),%ebx <== NOT EXECUTED
blk++;
125ce6: ff 45 d4 incl -0x2c(%ebp) <== NOT EXECUTED
125ce9: 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)
125ceb: 85 d2 test %edx,%edx <== NOT EXECUTED
125ced: 75 ac jne 125c9b <_fat_block_read+0x29> <== NOT EXECUTED
cmpltd += c;
blk++;
ofs = 0;
}
return cmpltd;
}
125cef: 89 d8 mov %ebx,%eax <== NOT EXECUTED
125cf1: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
125cf4: 5b pop %ebx <== NOT EXECUTED
125cf5: 5e pop %esi <== NOT EXECUTED
125cf6: 5f pop %edi <== NOT EXECUTED
125cf7: c9 leave <== NOT EXECUTED
125cf8: c3 ret <== NOT EXECUTED
00125799 <_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)
{
125799: 55 push %ebp <== NOT EXECUTED
12579a: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12579c: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
fat_fs_info_t *fs_info = mt_entry->fs_info;
return fat_buf_release(fs_info);
12579f: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
1257a2: 8b 40 34 mov 0x34(%eax),%eax <== NOT EXECUTED
1257a5: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED
}
1257a8: 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);
1257a9: e9 b9 fe ff ff jmp 125667 <fat_buf_release> <== NOT EXECUTED
00125980 <_fat_block_write>:
rtems_filesystem_mount_table_entry_t *mt_entry,
uint32_t start,
uint32_t offset,
uint32_t count,
const void *buff)
{
125980: 55 push %ebp <== NOT EXECUTED
125981: 89 e5 mov %esp,%ebp <== NOT EXECUTED
125983: 57 push %edi <== NOT EXECUTED
125984: 56 push %esi <== NOT EXECUTED
125985: 53 push %ebx <== NOT EXECUTED
125986: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED
int rc = RC_OK;
fat_fs_info_t *fs_info = mt_entry->fs_info;
125989: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
12598c: 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;
12598f: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) <== NOT EXECUTED
125996: 8b 75 10 mov 0x10(%ebp),%esi <== NOT EXECUTED
125999: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
12599c: 89 45 d0 mov %eax,-0x30(%ebp) <== NOT EXECUTED
12599f: 31 d2 xor %edx,%edx <== NOT EXECUTED
uint32_t c = 0;
while(count > 0)
1259a1: eb 6b jmp 125a0e <_fat_block_write+0x8e> <== NOT EXECUTED
{
c = MIN(count, (fs_info->vol.bps - ofs));
1259a3: 0f b7 03 movzwl (%ebx),%eax <== NOT EXECUTED
1259a6: 89 c1 mov %eax,%ecx <== NOT EXECUTED
1259a8: 29 f1 sub %esi,%ecx <== NOT EXECUTED
1259aa: 89 4d d4 mov %ecx,-0x2c(%ebp) <== NOT EXECUTED
1259ad: 8b 4d 14 mov 0x14(%ebp),%ecx <== NOT EXECUTED
1259b0: 39 4d d4 cmp %ecx,-0x2c(%ebp) <== NOT EXECUTED
1259b3: 76 03 jbe 1259b8 <_fat_block_write+0x38> <== NOT EXECUTED
1259b5: 89 4d d4 mov %ecx,-0x2c(%ebp) <== NOT EXECUTED
if (c == fs_info->vol.bps)
1259b8: 39 45 d4 cmp %eax,-0x2c(%ebp) <== NOT EXECUTED
1259bb: 75 08 jne 1259c5 <_fat_block_write+0x45> <== NOT EXECUTED
rc = fat_buf_access(fs_info, blk, FAT_OP_TYPE_GET, &block);
1259bd: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
1259c0: 50 push %eax <== NOT EXECUTED
1259c1: 6a 02 push $0x2 <== NOT EXECUTED
1259c3: eb 06 jmp 1259cb <_fat_block_write+0x4b> <== NOT EXECUTED
else
rc = fat_buf_access(fs_info, blk, FAT_OP_TYPE_READ, &block);
1259c5: 8d 4d e4 lea -0x1c(%ebp),%ecx <== NOT EXECUTED
1259c8: 51 push %ecx <== NOT EXECUTED
1259c9: 6a 01 push $0x1 <== NOT EXECUTED
1259cb: ff 75 d0 pushl -0x30(%ebp) <== NOT EXECUTED
1259ce: 53 push %ebx <== NOT EXECUTED
1259cf: 89 55 cc mov %edx,-0x34(%ebp) <== NOT EXECUTED
1259d2: e8 d7 fd ff ff call 1257ae <fat_buf_access> <== NOT EXECUTED
1259d7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1259da: 8b 55 cc mov -0x34(%ebp),%edx <== NOT EXECUTED
if (rc != RC_OK)
1259dd: 85 c0 test %eax,%eax <== NOT EXECUTED
1259df: 74 05 je 1259e6 <_fat_block_write+0x66> <== NOT EXECUTED
1259e1: 83 ca ff or $0xffffffff,%edx <== NOT EXECUTED
1259e4: eb 2e jmp 125a14 <_fat_block_write+0x94> <== NOT EXECUTED
return -1;
memcpy((block->buffer + ofs), (buff + cmpltd), c);
1259e6: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
1259e9: 03 70 20 add 0x20(%eax),%esi <== NOT EXECUTED
1259ec: 89 f0 mov %esi,%eax <== NOT EXECUTED
1259ee: 8b 75 18 mov 0x18(%ebp),%esi <== NOT EXECUTED
1259f1: 01 d6 add %edx,%esi <== NOT EXECUTED
1259f3: 89 c7 mov %eax,%edi <== NOT EXECUTED
1259f5: 8b 4d d4 mov -0x2c(%ebp),%ecx <== NOT EXECUTED
1259f8: 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;
1259fa: c6 83 80 00 00 00 01 movb $0x1,0x80(%ebx) <== NOT EXECUTED
fat_buf_mark_modified(fs_info);
count -= c;
125a01: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED
125a04: 29 45 14 sub %eax,0x14(%ebp) <== NOT EXECUTED
cmpltd +=c;
125a07: 01 c2 add %eax,%edx <== NOT EXECUTED
blk++;
125a09: ff 45 d0 incl -0x30(%ebp) <== NOT EXECUTED
125a0c: 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)
125a0e: 83 7d 14 00 cmpl $0x0,0x14(%ebp) <== NOT EXECUTED
125a12: 75 8f jne 1259a3 <_fat_block_write+0x23> <== NOT EXECUTED
cmpltd +=c;
blk++;
ofs = 0;
}
return cmpltd;
}
125a14: 89 d0 mov %edx,%eax <== NOT EXECUTED
125a16: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
125a19: 5b pop %ebx <== NOT EXECUTED
125a1a: 5e pop %esi <== NOT EXECUTED
125a1b: 5f pop %edi <== NOT EXECUTED
125a1c: c9 leave <== NOT EXECUTED
125a1d: c3 ret <== NOT EXECUTED
0013a276 <_fcntl_r>:
struct _reent *ptr __attribute__((unused)),
int fd,
int cmd,
int arg
)
{
13a276: 55 push %ebp <== NOT EXECUTED
13a277: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13a279: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13a27c: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
13a27f: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
return fcntl( fd, cmd, arg );
13a282: 8b 4d 14 mov 0x14(%ebp),%ecx <== NOT EXECUTED
13a285: 89 4d 10 mov %ecx,0x10(%ebp) <== NOT EXECUTED
13a288: 89 55 0c mov %edx,0xc(%ebp) <== NOT EXECUTED
13a28b: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED
}
13a28e: c9 leave <== NOT EXECUTED
int fd,
int cmd,
int arg
)
{
return fcntl( fd, cmd, arg );
13a28f: e9 98 fe ff ff jmp 13a12c <fcntl> <== NOT EXECUTED
00121bc2 <_getpid_r>:
#include <reent.h>
pid_t _getpid_r(
struct _reent *ptr __attribute__((unused))
)
{
121bc2: 55 push %ebp <== NOT EXECUTED
121bc3: 89 e5 mov %esp,%ebp <== NOT EXECUTED
return getpid();
}
121bc5: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
121bca: c9 leave <== NOT EXECUTED
121bcb: 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
00121be7 <_kill_r>:
#if defined(RTEMS_NEWLIB)
#include <reent.h>
int _kill_r( struct _reent *ptr, pid_t pid, int sig )
{
121be7: 55 push %ebp <== NOT EXECUTED
121be8: 89 e5 mov %esp,%ebp <== NOT EXECUTED
return 0;
}
121bea: 31 c0 xor %eax,%eax <== NOT EXECUTED
121bec: c9 leave <== NOT EXECUTED
121bed: c3 ret <== NOT EXECUTED
00128897 <_link_r>:
int _link_r(
struct _reent *ptr __attribute__((unused)),
const char *existing,
const char *new
)
{
128897: 55 push %ebp <== NOT EXECUTED
128898: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12889a: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
12889d: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
return link( existing, new );
1288a0: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
1288a3: 89 55 0c mov %edx,0xc(%ebp) <== NOT EXECUTED
1288a6: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED
}
1288a9: c9 leave <== NOT EXECUTED
struct _reent *ptr __attribute__((unused)),
const char *existing,
const char *new
)
{
return link( existing, new );
1288aa: e9 61 fe ff ff jmp 128710 <link> <== NOT EXECUTED
00128a52 <_lstat_r>:
int _STAT_R_NAME(
struct _reent *ptr __attribute__((unused)),
const char *path,
struct stat *buf
)
{
128a52: 55 push %ebp <== NOT EXECUTED
128a53: 89 e5 mov %esp,%ebp <== NOT EXECUTED
128a55: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
128a58: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
return _STAT_NAME( path, buf );
128a5b: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
128a5e: 89 55 0c mov %edx,0xc(%ebp) <== NOT EXECUTED
128a61: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED
}
128a64: c9 leave <== NOT EXECUTED
struct _reent *ptr __attribute__((unused)),
const char *path,
struct stat *buf
)
{
return _STAT_NAME( path, buf );
128a65: e9 3a ff ff ff jmp 1289a4 <lstat> <== NOT EXECUTED
0011d158 <_realloc_r>:
void *_realloc_r(
struct _reent *ignored __attribute__((unused)),
void *ptr,
size_t size
)
{
11d158: 55 push %ebp <== NOT EXECUTED
11d159: 89 e5 mov %esp,%ebp <== NOT EXECUTED
11d15b: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
11d15e: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
return realloc( ptr, size );
11d161: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
11d164: 89 55 0c mov %edx,0xc(%ebp) <== NOT EXECUTED
11d167: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED
}
11d16a: c9 leave <== NOT EXECUTED
struct _reent *ignored __attribute__((unused)),
void *ptr,
size_t size
)
{
return realloc( ptr, size );
11d16b: e9 48 00 00 00 jmp 11d1b8 <realloc> <== NOT EXECUTED
00152d6c <_rename_r>:
int _rename_r(
struct _reent *ptr __attribute__((unused)),
const char *old,
const char *new
)
{
152d6c: 55 push %ebp
152d6d: 89 e5 mov %esp,%ebp
152d6f: 57 push %edi
152d70: 56 push %esi
152d71: 53 push %ebx
152d72: 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 );
152d75: ff 75 0c pushl 0xc(%ebp)
152d78: e8 b7 9f fb ff call 10cd34 <rtems_filesystem_dirname>
152d7d: 89 45 94 mov %eax,-0x6c(%ebp)
if ( old_parent_pathlen == 0 )
152d80: 83 c4 10 add $0x10,%esp
152d83: 85 c0 test %eax,%eax
152d85: 8d 45 b8 lea -0x48(%ebp),%eax
152d88: 75 15 jne 152d9f <_rename_r+0x33>
rtems_filesystem_get_start_loc( old, &i, &old_parent_loc );
152d8a: 52 push %edx
152d8b: 50 push %eax
152d8c: 8d 45 e4 lea -0x1c(%ebp),%eax
152d8f: 50 push %eax
152d90: ff 75 0c pushl 0xc(%ebp)
152d93: e8 1c b6 fb ff call 10e3b4 <rtems_filesystem_get_start_loc>
152d98: 31 db xor %ebx,%ebx
152d9a: 83 c4 10 add $0x10,%esp
152d9d: eb 20 jmp 152dbf <_rename_r+0x53>
else {
result = rtems_filesystem_evaluate_path( old, old_parent_pathlen,
152d9f: 83 ec 0c sub $0xc,%esp
152da2: 6a 00 push $0x0
152da4: 50 push %eax
152da5: 6a 02 push $0x2
152da7: ff 75 94 pushl -0x6c(%ebp)
152daa: ff 75 0c pushl 0xc(%ebp)
152dad: e8 7f a0 fb ff call 10ce31 <rtems_filesystem_evaluate_path>
RTEMS_LIBIO_PERMS_WRITE,
&old_parent_loc,
false );
if ( result != 0 )
152db2: 83 c4 20 add $0x20,%esp
152db5: 85 c0 test %eax,%eax
152db7: 0f 85 3d 02 00 00 jne 152ffa <_rename_r+0x28e> <== NEVER TAKEN
152dbd: b3 01 mov $0x1,%bl
/*
* Start from the parent to find the node that should be under it.
*/
old_loc = old_parent_loc;
152dbf: 8d 7d cc lea -0x34(%ebp),%edi
152dc2: 8d 75 b8 lea -0x48(%ebp),%esi
152dc5: b9 05 00 00 00 mov $0x5,%ecx
152dca: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
name = old + old_parent_pathlen;
152dcc: 8b 75 0c mov 0xc(%ebp),%esi
152dcf: 03 75 94 add -0x6c(%ebp),%esi
152dd2: 89 75 e0 mov %esi,-0x20(%ebp)
name += rtems_filesystem_prefix_separators( name, strlen( name ) );
152dd5: 83 c9 ff or $0xffffffff,%ecx
152dd8: 89 f7 mov %esi,%edi
152dda: 31 c0 xor %eax,%eax
152ddc: f2 ae repnz scas %es:(%edi),%al
152dde: f7 d1 not %ecx
152de0: 49 dec %ecx
152de1: 57 push %edi
152de2: 57 push %edi
152de3: 51 push %ecx
152de4: 56 push %esi
152de5: e8 0e 9f fb ff call 10ccf8 <rtems_filesystem_prefix_separators>
152dea: 01 c6 add %eax,%esi
152dec: 89 75 e0 mov %esi,-0x20(%ebp)
result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
152def: 83 c9 ff or $0xffffffff,%ecx
152df2: 89 f7 mov %esi,%edi
152df4: 31 c0 xor %eax,%eax
152df6: f2 ae repnz scas %es:(%edi),%al
152df8: f7 d1 not %ecx
152dfa: 49 dec %ecx
152dfb: c7 04 24 00 00 00 00 movl $0x0,(%esp)
152e02: 8d 7d cc lea -0x34(%ebp),%edi
152e05: 57 push %edi
152e06: 6a 00 push $0x0
152e08: 51 push %ecx
152e09: 56 push %esi
152e0a: e8 68 9f fb ff call 10cd77 <rtems_filesystem_evaluate_relative_path>
0, &old_loc, false );
if ( result != 0 ) {
152e0f: 83 c4 20 add $0x20,%esp
152e12: 85 c0 test %eax,%eax
152e14: 74 29 je 152e3f <_rename_r+0xd3>
if ( free_old_parentloc )
152e16: 84 db test %bl,%bl
152e18: 0f 84 dc 01 00 00 je 152ffa <_rename_r+0x28e> <== NEVER TAKEN
rtems_filesystem_freenode( &old_parent_loc );
152e1e: 8b 45 c4 mov -0x3c(%ebp),%eax
152e21: 85 c0 test %eax,%eax
152e23: 0f 84 d1 01 00 00 je 152ffa <_rename_r+0x28e> <== NEVER TAKEN
152e29: 8b 40 1c mov 0x1c(%eax),%eax
152e2c: 85 c0 test %eax,%eax
152e2e: 0f 84 c6 01 00 00 je 152ffa <_rename_r+0x28e> <== NEVER TAKEN
152e34: 83 ec 0c sub $0xc,%esp
152e37: 8d 55 b8 lea -0x48(%ebp),%edx
152e3a: e9 89 00 00 00 jmp 152ec8 <_rename_r+0x15c>
/*
* Get the parent of the new node we are renaming to.
*/
rtems_filesystem_get_start_loc( new, &i, &new_parent_loc );
152e3f: 51 push %ecx
152e40: 8d 75 a4 lea -0x5c(%ebp),%esi
152e43: 56 push %esi
152e44: 8d 45 e4 lea -0x1c(%ebp),%eax
152e47: 50 push %eax
152e48: ff 75 10 pushl 0x10(%ebp)
152e4b: e8 64 b5 fb ff call 10e3b4 <rtems_filesystem_get_start_loc>
if ( !new_parent_loc.ops->evalformake_h ) {
152e50: 8b 45 b0 mov -0x50(%ebp),%eax
152e53: 8b 40 04 mov 0x4(%eax),%eax
152e56: 83 c4 10 add $0x10,%esp
152e59: 85 c0 test %eax,%eax
152e5b: 0f 84 f3 00 00 00 je 152f54 <_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 );
152e61: 52 push %edx
152e62: 8d 55 e0 lea -0x20(%ebp),%edx
152e65: 52 push %edx
152e66: 56 push %esi
152e67: 8b 55 10 mov 0x10(%ebp),%edx
152e6a: 03 55 e4 add -0x1c(%ebp),%edx
152e6d: 52 push %edx
152e6e: ff d0 call *%eax
if ( result != 0 ) {
152e70: 83 c4 10 add $0x10,%esp
152e73: 85 c0 test %eax,%eax
152e75: 74 5f je 152ed6 <_rename_r+0x16a>
rtems_filesystem_freenode( &new_parent_loc );
152e77: 8b 45 b0 mov -0x50(%ebp),%eax
152e7a: 85 c0 test %eax,%eax
152e7c: 74 10 je 152e8e <_rename_r+0x122> <== NEVER TAKEN
152e7e: 8b 40 1c mov 0x1c(%eax),%eax
152e81: 85 c0 test %eax,%eax
152e83: 74 09 je 152e8e <_rename_r+0x122> <== NEVER TAKEN
152e85: 83 ec 0c sub $0xc,%esp
152e88: 56 push %esi
152e89: ff d0 call *%eax
152e8b: 83 c4 10 add $0x10,%esp
if ( free_old_parentloc )
152e8e: 84 db test %bl,%bl
152e90: 74 1a je 152eac <_rename_r+0x140> <== NEVER TAKEN
rtems_filesystem_freenode( &old_parent_loc );
152e92: 8b 45 c4 mov -0x3c(%ebp),%eax
152e95: 85 c0 test %eax,%eax
152e97: 74 13 je 152eac <_rename_r+0x140> <== NEVER TAKEN
152e99: 8b 40 1c mov 0x1c(%eax),%eax
152e9c: 85 c0 test %eax,%eax
152e9e: 74 0c je 152eac <_rename_r+0x140> <== NEVER TAKEN
152ea0: 83 ec 0c sub $0xc,%esp
152ea3: 8d 55 b8 lea -0x48(%ebp),%edx
152ea6: 52 push %edx
152ea7: ff d0 call *%eax
152ea9: 83 c4 10 add $0x10,%esp
rtems_filesystem_freenode( &old_loc );
152eac: 8b 45 d8 mov -0x28(%ebp),%eax
152eaf: 85 c0 test %eax,%eax
152eb1: 0f 84 43 01 00 00 je 152ffa <_rename_r+0x28e> <== NEVER TAKEN
152eb7: 8b 40 1c mov 0x1c(%eax),%eax
152eba: 85 c0 test %eax,%eax
152ebc: 0f 84 38 01 00 00 je 152ffa <_rename_r+0x28e> <== NEVER TAKEN
152ec2: 83 ec 0c sub $0xc,%esp
152ec5: 8d 55 cc lea -0x34(%ebp),%edx
152ec8: 52 push %edx
152ec9: ff d0 call *%eax
152ecb: 83 cf ff or $0xffffffff,%edi
152ece: 83 c4 10 add $0x10,%esp
152ed1: e9 27 01 00 00 jmp 152ffd <_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 ) {
152ed6: 8b 45 c8 mov -0x38(%ebp),%eax
152ed9: 3b 45 b4 cmp -0x4c(%ebp),%eax
152edc: 8b 45 b0 mov -0x50(%ebp),%eax
152edf: 74 5c je 152f3d <_rename_r+0x1d1>
rtems_filesystem_freenode( &new_parent_loc );
152ee1: 85 c0 test %eax,%eax
152ee3: 74 10 je 152ef5 <_rename_r+0x189> <== NEVER TAKEN
152ee5: 8b 40 1c mov 0x1c(%eax),%eax
152ee8: 85 c0 test %eax,%eax
152eea: 74 09 je 152ef5 <_rename_r+0x189> <== NEVER TAKEN
152eec: 83 ec 0c sub $0xc,%esp
152eef: 56 push %esi
152ef0: ff d0 call *%eax
152ef2: 83 c4 10 add $0x10,%esp
if ( free_old_parentloc )
152ef5: 84 db test %bl,%bl
152ef7: 74 1a je 152f13 <_rename_r+0x1a7>
rtems_filesystem_freenode( &old_parent_loc );
152ef9: 8b 45 c4 mov -0x3c(%ebp),%eax
152efc: 85 c0 test %eax,%eax
152efe: 74 13 je 152f13 <_rename_r+0x1a7> <== NEVER TAKEN
152f00: 8b 40 1c mov 0x1c(%eax),%eax
152f03: 85 c0 test %eax,%eax
152f05: 74 0c je 152f13 <_rename_r+0x1a7> <== NEVER TAKEN
152f07: 83 ec 0c sub $0xc,%esp
152f0a: 8d 55 b8 lea -0x48(%ebp),%edx
152f0d: 52 push %edx
152f0e: ff d0 call *%eax
152f10: 83 c4 10 add $0x10,%esp
rtems_filesystem_freenode( &old_loc );
152f13: 8b 45 d8 mov -0x28(%ebp),%eax
152f16: 85 c0 test %eax,%eax
152f18: 74 13 je 152f2d <_rename_r+0x1c1> <== NEVER TAKEN
152f1a: 8b 40 1c mov 0x1c(%eax),%eax
152f1d: 85 c0 test %eax,%eax
152f1f: 74 0c je 152f2d <_rename_r+0x1c1> <== NEVER TAKEN
152f21: 83 ec 0c sub $0xc,%esp
152f24: 8d 55 cc lea -0x34(%ebp),%edx
152f27: 52 push %edx
152f28: ff d0 call *%eax
152f2a: 83 c4 10 add $0x10,%esp
rtems_set_errno_and_return_minus_one( EXDEV );
152f2d: e8 66 9e fe ff call 13cd98 <__errno>
152f32: c7 00 12 00 00 00 movl $0x12,(%eax)
152f38: e9 bd 00 00 00 jmp 152ffa <_rename_r+0x28e>
}
if ( !new_parent_loc.ops->rename_h ) {
152f3d: 8b 50 40 mov 0x40(%eax),%edx
152f40: 85 d2 test %edx,%edx
152f42: 75 55 jne 152f99 <_rename_r+0x22d>
rtems_filesystem_freenode( &new_parent_loc );
152f44: 8b 40 1c mov 0x1c(%eax),%eax
152f47: 85 c0 test %eax,%eax
152f49: 74 09 je 152f54 <_rename_r+0x1e8> <== NEVER TAKEN
152f4b: 83 ec 0c sub $0xc,%esp
152f4e: 56 push %esi
152f4f: ff d0 call *%eax
152f51: 83 c4 10 add $0x10,%esp
if ( free_old_parentloc )
152f54: 84 db test %bl,%bl
152f56: 74 1a je 152f72 <_rename_r+0x206> <== NEVER TAKEN
rtems_filesystem_freenode( &old_parent_loc );
152f58: 8b 45 c4 mov -0x3c(%ebp),%eax
152f5b: 85 c0 test %eax,%eax
152f5d: 74 13 je 152f72 <_rename_r+0x206> <== NEVER TAKEN
152f5f: 8b 40 1c mov 0x1c(%eax),%eax
152f62: 85 c0 test %eax,%eax
152f64: 74 0c je 152f72 <_rename_r+0x206> <== NEVER TAKEN
152f66: 83 ec 0c sub $0xc,%esp
152f69: 8d 55 b8 lea -0x48(%ebp),%edx
152f6c: 52 push %edx
152f6d: ff d0 call *%eax
152f6f: 83 c4 10 add $0x10,%esp
rtems_filesystem_freenode( &old_loc );
152f72: 8b 45 d8 mov -0x28(%ebp),%eax
152f75: 85 c0 test %eax,%eax
152f77: 74 13 je 152f8c <_rename_r+0x220> <== NEVER TAKEN
152f79: 8b 40 1c mov 0x1c(%eax),%eax
152f7c: 85 c0 test %eax,%eax
152f7e: 74 0c je 152f8c <_rename_r+0x220> <== NEVER TAKEN
152f80: 83 ec 0c sub $0xc,%esp
152f83: 8d 55 cc lea -0x34(%ebp),%edx
152f86: 52 push %edx
152f87: ff d0 call *%eax
152f89: 83 c4 10 add $0x10,%esp
rtems_set_errno_and_return_minus_one( ENOTSUP );
152f8c: e8 07 9e fe ff call 13cd98 <__errno>
152f91: c7 00 86 00 00 00 movl $0x86,(%eax)
152f97: eb 61 jmp 152ffa <_rename_r+0x28e>
}
result = (*new_parent_loc.ops->rename_h)( &old_parent_loc, &old_loc, &new_parent_loc, name );
152f99: ff 75 e0 pushl -0x20(%ebp)
152f9c: 56 push %esi
152f9d: 57 push %edi
152f9e: 8d 45 b8 lea -0x48(%ebp),%eax
152fa1: 50 push %eax
152fa2: ff d2 call *%edx
152fa4: 89 c7 mov %eax,%edi
rtems_filesystem_freenode( &new_parent_loc );
152fa6: 8b 45 b0 mov -0x50(%ebp),%eax
152fa9: 83 c4 10 add $0x10,%esp
152fac: 85 c0 test %eax,%eax
152fae: 74 10 je 152fc0 <_rename_r+0x254> <== NEVER TAKEN
152fb0: 8b 40 1c mov 0x1c(%eax),%eax
152fb3: 85 c0 test %eax,%eax
152fb5: 74 09 je 152fc0 <_rename_r+0x254> <== NEVER TAKEN
152fb7: 83 ec 0c sub $0xc,%esp
152fba: 56 push %esi
152fbb: ff d0 call *%eax
152fbd: 83 c4 10 add $0x10,%esp
if ( free_old_parentloc )
152fc0: 84 db test %bl,%bl
152fc2: 74 1a je 152fde <_rename_r+0x272>
rtems_filesystem_freenode( &old_parent_loc );
152fc4: 8b 45 c4 mov -0x3c(%ebp),%eax
152fc7: 85 c0 test %eax,%eax
152fc9: 74 13 je 152fde <_rename_r+0x272> <== NEVER TAKEN
152fcb: 8b 40 1c mov 0x1c(%eax),%eax
152fce: 85 c0 test %eax,%eax
152fd0: 74 0c je 152fde <_rename_r+0x272> <== NEVER TAKEN
152fd2: 83 ec 0c sub $0xc,%esp
152fd5: 8d 55 b8 lea -0x48(%ebp),%edx
152fd8: 52 push %edx
152fd9: ff d0 call *%eax
152fdb: 83 c4 10 add $0x10,%esp
rtems_filesystem_freenode( &old_loc );
152fde: 8b 45 d8 mov -0x28(%ebp),%eax
152fe1: 85 c0 test %eax,%eax
152fe3: 74 18 je 152ffd <_rename_r+0x291> <== NEVER TAKEN
152fe5: 8b 40 1c mov 0x1c(%eax),%eax
152fe8: 85 c0 test %eax,%eax
152fea: 74 11 je 152ffd <_rename_r+0x291> <== NEVER TAKEN
152fec: 83 ec 0c sub $0xc,%esp
152fef: 8d 55 cc lea -0x34(%ebp),%edx
152ff2: 52 push %edx
152ff3: ff d0 call *%eax
152ff5: e9 d4 fe ff ff jmp 152ece <_rename_r+0x162>
152ffa: 83 cf ff or $0xffffffff,%edi
return result;
}
152ffd: 89 f8 mov %edi,%eax
152fff: 8d 65 f4 lea -0xc(%ebp),%esp
153002: 5b pop %ebx
153003: 5e pop %esi
153004: 5f pop %edi
153005: c9 leave
153006: 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
001114ab <_unlink_r>:
int _unlink_r(
struct _reent *ptr __attribute__((unused)),
const char *path
)
{
1114ab: 55 push %ebp <== NOT EXECUTED
1114ac: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1114ae: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
return unlink( path );
1114b1: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
1114b4: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED
}
1114b7: c9 leave <== NOT EXECUTED
int _unlink_r(
struct _reent *ptr __attribute__((unused)),
const char *path
)
{
return unlink( path );
1114b8: e9 27 fe ff ff jmp 1112e4 <unlink> <== NOT EXECUTED
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 6c 55 12 00 incl 0x12556c
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 5c 55 12 00 decl 0x12555c
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
00127a24 <chdir>:
#include <rtems/seterr.h>
int chdir(
const char *pathname
)
{
127a24: 55 push %ebp
127a25: 89 e5 mov %esp,%ebp
127a27: 57 push %edi
127a28: 56 push %esi
127a29: 83 ec 20 sub $0x20,%esp
127a2c: 8b 55 08 mov 0x8(%ebp),%edx
rtems_filesystem_location_info_t loc;
int result;
if ( !pathname )
127a2f: 85 d2 test %edx,%edx
127a31: 75 0d jne 127a40 <chdir+0x1c>
rtems_set_errno_and_return_minus_one( EFAULT );
127a33: e8 60 53 01 00 call 13cd98 <__errno>
127a38: c7 00 0e 00 00 00 movl $0xe,(%eax)
127a3e: eb 53 jmp 127a93 <chdir+0x6f>
/*
* Get the node where we wish to go.
*/
result = rtems_filesystem_evaluate_path(
127a40: 31 c0 xor %eax,%eax
127a42: 83 c9 ff or $0xffffffff,%ecx
127a45: 89 d7 mov %edx,%edi
127a47: f2 ae repnz scas %es:(%edi),%al
127a49: f7 d1 not %ecx
127a4b: 49 dec %ecx
127a4c: 83 ec 0c sub $0xc,%esp
127a4f: 6a 01 push $0x1
127a51: 8d 75 e4 lea -0x1c(%ebp),%esi
127a54: 56 push %esi
127a55: 6a 01 push $0x1
127a57: 51 push %ecx
127a58: 52 push %edx
127a59: e8 d3 53 fe ff call 10ce31 <rtems_filesystem_evaluate_path>
127a5e: 89 c2 mov %eax,%edx
pathname, strlen( pathname ), RTEMS_LIBIO_PERMS_SEARCH, &loc, true );
if ( result != 0 )
127a60: 83 c4 20 add $0x20,%esp
127a63: 83 c8 ff or $0xffffffff,%eax
127a66: 85 d2 test %edx,%edx
127a68: 0f 85 8f 00 00 00 jne 127afd <chdir+0xd9>
return -1;
/*
* Verify you can change directory into this node.
*/
if ( !loc.ops->node_type_h ) {
127a6e: 8b 55 f0 mov -0x10(%ebp),%edx
127a71: 8b 42 10 mov 0x10(%edx),%eax
127a74: 85 c0 test %eax,%eax
127a76: 75 20 jne 127a98 <chdir+0x74> <== ALWAYS TAKEN
rtems_filesystem_freenode( &loc );
127a78: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED
127a7b: 85 c0 test %eax,%eax <== NOT EXECUTED
127a7d: 74 09 je 127a88 <chdir+0x64> <== NOT EXECUTED
127a7f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
127a82: 56 push %esi <== NOT EXECUTED
127a83: ff d0 call *%eax <== NOT EXECUTED
127a85: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
127a88: e8 0b 53 01 00 call 13cd98 <__errno> <== NOT EXECUTED
127a8d: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
127a93: 83 c8 ff or $0xffffffff,%eax
127a96: eb 65 jmp 127afd <chdir+0xd9>
}
if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) {
127a98: 83 ec 0c sub $0xc,%esp
127a9b: 56 push %esi
127a9c: ff d0 call *%eax
127a9e: 83 c4 10 add $0x10,%esp
127aa1: 48 dec %eax
127aa2: 74 24 je 127ac8 <chdir+0xa4>
rtems_filesystem_freenode( &loc );
127aa4: 8b 45 f0 mov -0x10(%ebp),%eax
127aa7: 85 c0 test %eax,%eax
127aa9: 74 10 je 127abb <chdir+0x97> <== NEVER TAKEN
127aab: 8b 40 1c mov 0x1c(%eax),%eax
127aae: 85 c0 test %eax,%eax
127ab0: 74 09 je 127abb <chdir+0x97> <== NEVER TAKEN
127ab2: 83 ec 0c sub $0xc,%esp
127ab5: 56 push %esi
127ab6: ff d0 call *%eax
127ab8: 83 c4 10 add $0x10,%esp
rtems_set_errno_and_return_minus_one( ENOTDIR );
127abb: e8 d8 52 01 00 call 13cd98 <__errno>
127ac0: c7 00 14 00 00 00 movl $0x14,(%eax)
127ac6: eb cb jmp 127a93 <chdir+0x6f>
}
rtems_filesystem_freenode( &rtems_filesystem_current );
127ac8: 8b 15 fc 21 16 00 mov 0x1621fc,%edx
127ace: 8b 42 10 mov 0x10(%edx),%eax
127ad1: 85 c0 test %eax,%eax
127ad3: 74 13 je 127ae8 <chdir+0xc4> <== NEVER TAKEN
127ad5: 8b 40 1c mov 0x1c(%eax),%eax
127ad8: 85 c0 test %eax,%eax
127ada: 74 0c je 127ae8 <chdir+0xc4> <== NEVER TAKEN
127adc: 83 ec 0c sub $0xc,%esp
127adf: 83 c2 04 add $0x4,%edx
127ae2: 52 push %edx
127ae3: ff d0 call *%eax
127ae5: 83 c4 10 add $0x10,%esp
rtems_filesystem_current = loc;
127ae8: 8b 3d fc 21 16 00 mov 0x1621fc,%edi
127aee: 83 c7 04 add $0x4,%edi
127af1: 8d 75 e4 lea -0x1c(%ebp),%esi
127af4: b9 05 00 00 00 mov $0x5,%ecx
127af9: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
127afb: 31 c0 xor %eax,%eax
return 0;
}
127afd: 8d 65 f8 lea -0x8(%ebp),%esp
127b00: 5e pop %esi
127b01: 5f pop %edi
127b02: c9 leave
127b03: 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 3c 03 03 00 call 13cd98 <__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 11 03 03 00 call 13cd98 <__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
00127b04 <chown>:
int chown(
const char *path,
uid_t owner,
gid_t group
)
{
127b04: 55 push %ebp
127b05: 89 e5 mov %esp,%ebp
127b07: 57 push %edi
127b08: 56 push %esi
127b09: 53 push %ebx
127b0a: 83 ec 48 sub $0x48,%esp
127b0d: 8b 55 08 mov 0x8(%ebp),%edx
127b10: 8b 75 0c mov 0xc(%ebp),%esi
127b13: 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 ) )
127b16: 31 c0 xor %eax,%eax
127b18: 83 c9 ff or $0xffffffff,%ecx
127b1b: 89 d7 mov %edx,%edi
127b1d: f2 ae repnz scas %es:(%edi),%al
127b1f: f7 d1 not %ecx
127b21: 49 dec %ecx
127b22: 6a 01 push $0x1
127b24: 8d 7d d4 lea -0x2c(%ebp),%edi
127b27: 57 push %edi
127b28: 6a 00 push $0x0
127b2a: 51 push %ecx
127b2b: 52 push %edx
127b2c: e8 00 53 fe ff call 10ce31 <rtems_filesystem_evaluate_path>
127b31: 83 c4 20 add $0x20,%esp
127b34: 83 ca ff or $0xffffffff,%edx
127b37: 85 c0 test %eax,%eax
127b39: 75 58 jne 127b93 <chown+0x8f>
return -1;
if ( !loc.ops->chown_h ) {
127b3b: 8b 55 e0 mov -0x20(%ebp),%edx
127b3e: 8b 42 18 mov 0x18(%edx),%eax
127b41: 85 c0 test %eax,%eax
127b43: 75 20 jne 127b65 <chown+0x61> <== ALWAYS TAKEN
rtems_filesystem_freenode( &loc );
127b45: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED
127b48: 85 c0 test %eax,%eax <== NOT EXECUTED
127b4a: 74 09 je 127b55 <chown+0x51> <== NOT EXECUTED
127b4c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
127b4f: 57 push %edi <== NOT EXECUTED
127b50: ff d0 call *%eax <== NOT EXECUTED
127b52: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
127b55: e8 3e 52 01 00 call 13cd98 <__errno> <== NOT EXECUTED
127b5a: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
127b60: 83 ca ff or $0xffffffff,%edx <== NOT EXECUTED
127b63: eb 2e jmp 127b93 <chown+0x8f> <== NOT EXECUTED
}
result = (*loc.ops->chown_h)( &loc, owner, group );
127b65: 52 push %edx
127b66: 0f b7 db movzwl %bx,%ebx
127b69: 53 push %ebx
127b6a: 0f b7 f6 movzwl %si,%esi
127b6d: 56 push %esi
127b6e: 57 push %edi
127b6f: ff d0 call *%eax
127b71: 89 c2 mov %eax,%edx
rtems_filesystem_freenode( &loc );
127b73: 8b 45 e0 mov -0x20(%ebp),%eax
127b76: 83 c4 10 add $0x10,%esp
127b79: 85 c0 test %eax,%eax
127b7b: 74 16 je 127b93 <chown+0x8f> <== NEVER TAKEN
127b7d: 8b 40 1c mov 0x1c(%eax),%eax
127b80: 85 c0 test %eax,%eax
127b82: 74 0f je 127b93 <chown+0x8f> <== NEVER TAKEN
127b84: 83 ec 0c sub $0xc,%esp
127b87: 57 push %edi
127b88: 89 55 c4 mov %edx,-0x3c(%ebp)
127b8b: ff d0 call *%eax
127b8d: 83 c4 10 add $0x10,%esp
127b90: 8b 55 c4 mov -0x3c(%ebp),%edx
return result;
}
127b93: 89 d0 mov %edx,%eax
127b95: 8d 65 f4 lea -0xc(%ebp),%esp
127b98: 5b pop %ebx
127b99: 5e pop %esi
127b9a: 5f pop %edi
127b9b: c9 leave
127b9c: c3 ret
00127ba0 <chroot>:
#include <rtems/seterr.h>
int chroot(
const char *pathname
)
{
127ba0: 55 push %ebp
127ba1: 89 e5 mov %esp,%ebp
127ba3: 57 push %edi
127ba4: 56 push %esi
127ba5: 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) {
127ba8: 81 3d fc 21 16 00 a4 cmpl $0x167aa4,0x1621fc
127baf: 7a 16 00
127bb2: 75 1e jne 127bd2 <chroot+0x32> <== NEVER TAKEN
rtems_libio_set_private_env(); /* try to set a new private env*/
127bb4: e8 07 13 00 00 call 128ec0 <rtems_libio_set_private_env>
if (rtems_current_user_env == &rtems_global_user_env) /* not ok */
127bb9: 81 3d fc 21 16 00 a4 cmpl $0x167aa4,0x1621fc
127bc0: 7a 16 00
127bc3: 75 0d jne 127bd2 <chroot+0x32> <== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( ENOTSUP );
127bc5: e8 ce 51 01 00 call 13cd98 <__errno> <== NOT EXECUTED
127bca: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
127bd0: eb 22 jmp 127bf4 <chroot+0x54> <== NOT EXECUTED
}
result = chdir(pathname);
127bd2: 83 ec 0c sub $0xc,%esp
127bd5: ff 75 08 pushl 0x8(%ebp)
127bd8: e8 47 fe ff ff call 127a24 <chdir>
if (result) {
127bdd: 83 c4 10 add $0x10,%esp
127be0: 85 c0 test %eax,%eax
127be2: 74 15 je 127bf9 <chroot+0x59> <== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( errno );
127be4: e8 af 51 01 00 call 13cd98 <__errno> <== NOT EXECUTED
127be9: 89 c6 mov %eax,%esi <== NOT EXECUTED
127beb: e8 a8 51 01 00 call 13cd98 <__errno> <== NOT EXECUTED
127bf0: 8b 00 mov (%eax),%eax <== NOT EXECUTED
127bf2: 89 06 mov %eax,(%esi) <== NOT EXECUTED
127bf4: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
127bf7: eb 53 jmp 127c4c <chroot+0xac> <== NOT EXECUTED
}
/* clone the new root location */
if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) {
127bf9: 83 ec 0c sub $0xc,%esp
127bfc: 6a 00 push $0x0
127bfe: 8d 45 e4 lea -0x1c(%ebp),%eax
127c01: 50 push %eax
127c02: 6a 00 push $0x0
127c04: 6a 01 push $0x1
127c06: 68 fe 74 15 00 push $0x1574fe
127c0b: e8 21 52 fe ff call 10ce31 <rtems_filesystem_evaluate_path>
127c10: 83 c4 20 add $0x20,%esp
127c13: 85 c0 test %eax,%eax
127c15: 75 cd jne 127be4 <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);
127c17: 8b 15 fc 21 16 00 mov 0x1621fc,%edx
127c1d: 8b 42 24 mov 0x24(%edx),%eax
127c20: 85 c0 test %eax,%eax
127c22: 74 13 je 127c37 <chroot+0x97> <== NEVER TAKEN
127c24: 8b 40 1c mov 0x1c(%eax),%eax
127c27: 85 c0 test %eax,%eax
127c29: 74 0c je 127c37 <chroot+0x97> <== NEVER TAKEN
127c2b: 83 ec 0c sub $0xc,%esp
127c2e: 83 c2 18 add $0x18,%edx
127c31: 52 push %edx
127c32: ff d0 call *%eax
127c34: 83 c4 10 add $0x10,%esp
rtems_filesystem_root = loc;
127c37: 8b 3d fc 21 16 00 mov 0x1621fc,%edi
127c3d: 83 c7 18 add $0x18,%edi
127c40: 8d 75 e4 lea -0x1c(%ebp),%esi
127c43: b9 05 00 00 00 mov $0x5,%ecx
127c48: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
127c4a: 31 c0 xor %eax,%eax
return 0;
}
127c4c: 8d 65 f8 lea -0x8(%ebp),%esp
127c4f: 5e pop %esi
127c50: 5f pop %edi
127c51: c9 leave
127c52: c3 ret
0010eb70 <close>:
#include <rtems/libio_.h>
int close(
int fd
)
{
10eb70: 55 push %ebp
10eb71: 89 e5 mov %esp,%ebp
10eb73: 56 push %esi
10eb74: 53 push %ebx
10eb75: 8b 5d 08 mov 0x8(%ebp),%ebx
rtems_libio_t *iop;
rtems_status_code rc;
rtems_libio_check_fd(fd);
10eb78: 3b 1d 64 16 12 00 cmp 0x121664,%ebx
10eb7e: 73 0f jae 10eb8f <close+0x1f>
iop = rtems_libio_iop(fd);
10eb80: c1 e3 06 shl $0x6,%ebx
10eb83: 03 1d 40 55 12 00 add 0x125540,%ebx
rtems_libio_check_is_open(iop);
10eb89: f6 43 15 01 testb $0x1,0x15(%ebx)
10eb8d: 75 10 jne 10eb9f <close+0x2f>
10eb8f: e8 2c 2d 00 00 call 1118c0 <__errno>
10eb94: c7 00 09 00 00 00 movl $0x9,(%eax)
10eb9a: 83 c8 ff or $0xffffffff,%eax
10eb9d: eb 3f jmp 10ebde <close+0x6e>
rc = RTEMS_SUCCESSFUL;
if ( iop->handlers->close_h )
10eb9f: 8b 43 3c mov 0x3c(%ebx),%eax
10eba2: 8b 40 04 mov 0x4(%eax),%eax
10eba5: 31 f6 xor %esi,%esi
10eba7: 85 c0 test %eax,%eax
10eba9: 74 0b je 10ebb6 <close+0x46> <== NEVER TAKEN
rc = (*iop->handlers->close_h)( iop );
10ebab: 83 ec 0c sub $0xc,%esp
10ebae: 53 push %ebx
10ebaf: ff d0 call *%eax
10ebb1: 89 c6 mov %eax,%esi
10ebb3: 83 c4 10 add $0x10,%esp
rtems_filesystem_freenode( &iop->pathinfo );
10ebb6: 8b 43 24 mov 0x24(%ebx),%eax
10ebb9: 85 c0 test %eax,%eax
10ebbb: 74 13 je 10ebd0 <close+0x60> <== NEVER TAKEN
10ebbd: 8b 40 1c mov 0x1c(%eax),%eax
10ebc0: 85 c0 test %eax,%eax
10ebc2: 74 0c je 10ebd0 <close+0x60>
10ebc4: 83 ec 0c sub $0xc,%esp
10ebc7: 8d 53 18 lea 0x18(%ebx),%edx
10ebca: 52 push %edx
10ebcb: ff d0 call *%eax
10ebcd: 83 c4 10 add $0x10,%esp
rtems_libio_free( iop );
10ebd0: 83 ec 0c sub $0xc,%esp
10ebd3: 53 push %ebx
10ebd4: e8 cd 01 00 00 call 10eda6 <rtems_libio_free>
return rc;
10ebd9: 89 f0 mov %esi,%eax
10ebdb: 83 c4 10 add $0x10,%esp
}
10ebde: 8d 65 f8 lea -0x8(%ebp),%esp
10ebe1: 5b pop %ebx
10ebe2: 5e pop %esi
10ebe3: c9 leave
10ebe4: 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 70 86 12 00 mov 0x128670,%edi
1077bd: 39 f8 cmp %edi,%eax
1077bf: 72 4e jb 10780f <create_disk+0x6e>
rtems_disk_device_table *table = disktab;
1077c1: a1 6c 86 12 00 mov 0x12866c,%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 6c 86 12 00 mov %edx,0x12866c <== NOT EXECUTED
disktab_size = new_size;
107807: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
10780a: a3 70 86 12 00 mov %eax,0x128670 <== 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 6c 86 12 00 add 0x12866c,%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 6c 86 12 00 add 0x12866c,%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 6c 86 12 00 mov 0x12866c,%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 aa e0 00 00 call 11597c <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
0010d330 <devFS_close>:
#include "devfs.h"
int devFS_close(
rtems_libio_t *iop
)
{
10d330: 55 push %ebp
10d331: 89 e5 mov %esp,%ebp
10d333: 83 ec 1c sub $0x1c,%esp
10d336: 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;
10d339: 8b 42 38 mov 0x38(%edx),%eax
args.iop = iop;
10d33c: 89 55 ec mov %edx,-0x14(%ebp)
args.flags = 0;
10d33f: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp)
args.mode = 0;
10d346: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
status = rtems_io_close(
10d34d: 8d 55 ec lea -0x14(%ebp),%edx
10d350: 52 push %edx
10d351: ff 70 0c pushl 0xc(%eax)
10d354: ff 70 08 pushl 0x8(%eax)
10d357: e8 c8 09 00 00 call 10dd24 <rtems_io_close>
10d35c: 89 c2 mov %eax,%edx
np->major,
np->minor,
(void *) &args
);
if ( status ) {
10d35e: 83 c4 10 add $0x10,%esp
10d361: 31 c0 xor %eax,%eax
10d363: 85 d2 test %edx,%edx
10d365: 74 0c je 10d373 <devFS_close+0x43> <== ALWAYS TAKEN
return rtems_deviceio_errno(status);
10d367: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10d36a: 52 push %edx <== NOT EXECUTED
10d36b: e8 c0 00 00 00 call 10d430 <rtems_deviceio_errno> <== NOT EXECUTED
10d370: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
return 0;
}
10d373: c9 leave
10d374: c3 ret
0010d387 <devFS_evaluate_path>:
const char *pathname,
size_t pathnamelen,
int flags,
rtems_filesystem_location_info_t *pathloc
)
{
10d387: 55 push %ebp
10d388: 89 e5 mov %esp,%ebp
10d38a: 57 push %edi
10d38b: 56 push %esi
10d38c: 53 push %ebx
10d38d: 83 ec 1c sub $0x1c,%esp
10d390: 8b 4d 0c mov 0xc(%ebp),%ecx
10d393: 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 ) )
10d396: f7 45 10 f8 ff ff ff testl $0xfffffff8,0x10(%ebp)
10d39d: 74 0d je 10d3ac <devFS_evaluate_path+0x25><== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( EPERM );
10d39f: e8 38 16 00 00 call 10e9dc <__errno> <== NOT EXECUTED
10d3a4: c7 00 01 00 00 00 movl $0x1,(%eax) <== NOT EXECUTED
10d3aa: eb 77 jmp 10d423 <devFS_evaluate_path+0x9c><== NOT EXECUTED
/* get the device name table */
device_name_table = (rtems_device_name_t *)pathloc->node_access;
10d3ac: 8b 33 mov (%ebx),%esi
if (!device_name_table)
10d3ae: 85 f6 test %esi,%esi
10d3b0: 74 04 je 10d3b6 <devFS_evaluate_path+0x2f><== NEVER TAKEN
10d3b2: 31 ff xor %edi,%edi
10d3b4: eb 5a jmp 10d410 <devFS_evaluate_path+0x89>
rtems_set_errno_and_return_minus_one( EFAULT );
10d3b6: e8 21 16 00 00 call 10e9dc <__errno> <== NOT EXECUTED
10d3bb: c7 00 0e 00 00 00 movl $0xe,(%eax) <== NOT EXECUTED
10d3c1: eb 60 jmp 10d423 <devFS_evaluate_path+0x9c><== NOT EXECUTED
for (i = 0; i < rtems_device_table_size; i++) {
if (!device_name_table[i].device_name)
10d3c3: 8b 16 mov (%esi),%edx
10d3c5: 85 d2 test %edx,%edx
10d3c7: 74 43 je 10d40c <devFS_evaluate_path+0x85>
continue;
if (strncmp(pathname, device_name_table[i].device_name, pathnamelen) != 0)
10d3c9: 50 push %eax
10d3ca: 51 push %ecx
10d3cb: 52 push %edx
10d3cc: ff 75 08 pushl 0x8(%ebp)
10d3cf: 89 55 e4 mov %edx,-0x1c(%ebp)
10d3d2: 89 4d e0 mov %ecx,-0x20(%ebp)
10d3d5: e8 12 22 00 00 call 10f5ec <strncmp>
10d3da: 83 c4 10 add $0x10,%esp
10d3dd: 85 c0 test %eax,%eax
10d3df: 8b 55 e4 mov -0x1c(%ebp),%edx
10d3e2: 8b 4d e0 mov -0x20(%ebp),%ecx
10d3e5: 75 25 jne 10d40c <devFS_evaluate_path+0x85><== NEVER TAKEN
continue;
if (device_name_table[i].device_name[pathnamelen] != '\0')
10d3e7: 80 3c 0a 00 cmpb $0x0,(%edx,%ecx,1)
10d3eb: 75 1f jne 10d40c <devFS_evaluate_path+0x85><== NEVER TAKEN
continue;
/* find the device, set proper values */
pathloc->node_access = (void *)&device_name_table[i];
10d3ed: 89 33 mov %esi,(%ebx)
pathloc->handlers = &devFS_file_handlers;
10d3ef: c7 43 08 68 ef 11 00 movl $0x11ef68,0x8(%ebx)
pathloc->ops = &devFS_ops;
10d3f6: c7 43 0c 20 ef 11 00 movl $0x11ef20,0xc(%ebx)
pathloc->mt_entry = rtems_filesystem_root.mt_entry;
10d3fd: a1 c0 ef 11 00 mov 0x11efc0,%eax
10d402: 8b 40 28 mov 0x28(%eax),%eax
10d405: 89 43 10 mov %eax,0x10(%ebx)
10d408: 31 c0 xor %eax,%eax
return 0;
10d40a: eb 1a jmp 10d426 <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++) {
10d40c: 47 inc %edi
10d40d: 83 c6 14 add $0x14,%esi
10d410: 3b 3d 48 d1 11 00 cmp 0x11d148,%edi
10d416: 72 ab jb 10d3c3 <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 );
10d418: e8 bf 15 00 00 call 10e9dc <__errno>
10d41d: c7 00 02 00 00 00 movl $0x2,(%eax)
10d423: 83 c8 ff or $0xffffffff,%eax
}
10d426: 8d 65 f4 lea -0xc(%ebp),%esp
10d429: 5b pop %ebx
10d42a: 5e pop %esi
10d42b: 5f pop %edi
10d42c: c9 leave
10d42d: 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 d1 11 00 14 imul $0x14,0x11d148,%eax
106d92: 50 push %eax
106d93: e8 54 61 00 00 call 10ceec <_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 36 7c 00 00 call 10e9dc <__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 d1 11 00 14 imul $0x14,0x11d148,%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 ef 11 00 movl $0x11ef68,0x24(%ebx)
temp_mt_entry->mt_fs_root.ops = &devFS_ops;
106dc5: c7 43 28 20 ef 11 00 movl $0x11ef20,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 7a 39 00 00 call 10a888 <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 12 65 00 00 call 10d430 <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 ba 7b 00 00 call 10e9dc <__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 95 7b 00 00 call 10e9dc <__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 54 86 00 00 call 10f4bc <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 62 7b 00 00 call 10e9dc <__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 d1 11 00 cmp 0x11d148,%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 42 7b 00 00 call 10e9dc <__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 0e 3a 00 00 call 10a960 <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 ca 64 00 00 call 10d430 <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 e0 39 00 00 call 10a990 <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 70 64 00 00 call 10d430 <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 f4 79 00 00 call 10e9dc <__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 70 39 00 00 call 10a9c0 <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 d0 63 00 00 call 10d430 <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
00110e38 <device_close>:
*/
int device_close(
rtems_libio_t *iop
)
{
110e38: 55 push %ebp
110e39: 89 e5 mov %esp,%ebp
110e3b: 83 ec 1c sub $0x1c,%esp
110e3e: 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;
110e41: 8b 42 38 mov 0x38(%edx),%eax
args.iop = iop;
110e44: 89 55 ec mov %edx,-0x14(%ebp)
args.flags = 0;
110e47: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp)
args.mode = 0;
110e4e: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
status = rtems_io_close(
110e55: 8d 55 ec lea -0x14(%ebp),%edx
110e58: 52 push %edx
110e59: ff 70 54 pushl 0x54(%eax)
110e5c: ff 70 50 pushl 0x50(%eax)
110e5f: e8 84 07 00 00 call 1115e8 <rtems_io_close>
110e64: 89 c2 mov %eax,%edx
the_jnode->info.device.major,
the_jnode->info.device.minor,
(void *) &args
);
if ( status ) {
110e66: 83 c4 10 add $0x10,%esp
110e69: 31 c0 xor %eax,%eax
110e6b: 85 d2 test %edx,%edx
110e6d: 74 0c je 110e7b <device_close+0x43> <== ALWAYS TAKEN
return rtems_deviceio_errno(status);
110e6f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
110e72: 52 push %edx <== NOT EXECUTED
110e73: e8 98 09 00 00 call 111810 <rtems_deviceio_errno> <== NOT EXECUTED
110e78: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
return 0;
}
110e7b: c9 leave
110e7c: c3 ret
00110d32 <device_ioctl>:
int device_ioctl(
rtems_libio_t *iop,
uint32_t command,
void *buffer
)
{
110d32: 55 push %ebp
110d33: 89 e5 mov %esp,%ebp
110d35: 83 ec 1c sub $0x1c,%esp
110d38: 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;
110d3b: 89 45 e8 mov %eax,-0x18(%ebp)
args.command = command;
110d3e: 8b 55 0c mov 0xc(%ebp),%edx
110d41: 89 55 ec mov %edx,-0x14(%ebp)
args.buffer = buffer;
110d44: 8b 55 10 mov 0x10(%ebp),%edx
110d47: 89 55 f0 mov %edx,-0x10(%ebp)
the_jnode = iop->file_info;
110d4a: 8b 40 38 mov 0x38(%eax),%eax
status = rtems_io_control(
110d4d: 8d 55 e8 lea -0x18(%ebp),%edx
110d50: 52 push %edx
110d51: ff 70 54 pushl 0x54(%eax)
110d54: ff 70 50 pushl 0x50(%eax)
110d57: e8 bc 08 00 00 call 111618 <rtems_io_control>
the_jnode->info.device.major,
the_jnode->info.device.minor,
(void *) &args
);
if ( status )
110d5c: 83 c4 10 add $0x10,%esp
110d5f: 85 c0 test %eax,%eax
110d61: 74 0e je 110d71 <device_ioctl+0x3f> <== ALWAYS TAKEN
return rtems_deviceio_errno(status);
110d63: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
110d66: 50 push %eax <== NOT EXECUTED
110d67: e8 a4 0a 00 00 call 111810 <rtems_deviceio_errno> <== NOT EXECUTED
110d6c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
110d6f: eb 03 jmp 110d74 <device_ioctl+0x42> <== NOT EXECUTED
return args.ioctl_return;
110d71: 8b 45 f4 mov -0xc(%ebp),%eax
}
110d74: c9 leave
110d75: c3 ret
00110e7d <device_open>:
rtems_libio_t *iop,
const char *pathname,
uint32_t flag,
uint32_t mode
)
{
110e7d: 55 push %ebp
110e7e: 89 e5 mov %esp,%ebp
110e80: 83 ec 1c sub $0x1c,%esp
110e83: 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;
110e86: 8b 50 38 mov 0x38(%eax),%edx
args.iop = iop;
110e89: 89 45 ec mov %eax,-0x14(%ebp)
args.flags = iop->flags;
110e8c: 8b 40 14 mov 0x14(%eax),%eax
110e8f: 89 45 f0 mov %eax,-0x10(%ebp)
args.mode = mode;
110e92: 8b 45 14 mov 0x14(%ebp),%eax
110e95: 89 45 f4 mov %eax,-0xc(%ebp)
status = rtems_io_open(
110e98: 8d 45 ec lea -0x14(%ebp),%eax
110e9b: 50 push %eax
110e9c: ff 72 54 pushl 0x54(%edx)
110e9f: ff 72 50 pushl 0x50(%edx)
110ea2: e8 a1 07 00 00 call 111648 <rtems_io_open>
110ea7: 89 c2 mov %eax,%edx
the_jnode->info.device.major,
the_jnode->info.device.minor,
(void *) &args
);
if ( status )
110ea9: 83 c4 10 add $0x10,%esp
110eac: 31 c0 xor %eax,%eax
110eae: 85 d2 test %edx,%edx
110eb0: 74 0c je 110ebe <device_open+0x41> <== ALWAYS TAKEN
return rtems_deviceio_errno(status);
110eb2: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
110eb5: 52 push %edx <== NOT EXECUTED
110eb6: e8 55 09 00 00 call 111810 <rtems_deviceio_errno> <== NOT EXECUTED
110ebb: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
return 0;
}
110ebe: c9 leave
110ebf: c3 ret
00110dd7 <device_read>:
ssize_t device_read(
rtems_libio_t *iop,
void *buffer,
size_t count
)
{
110dd7: 55 push %ebp
110dd8: 89 e5 mov %esp,%ebp
110dda: 53 push %ebx
110ddb: 83 ec 28 sub $0x28,%esp
110dde: 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;
110de1: 8b 50 38 mov 0x38(%eax),%edx
args.iop = iop;
110de4: 89 45 dc mov %eax,-0x24(%ebp)
args.offset = iop->offset;
110de7: 8b 48 0c mov 0xc(%eax),%ecx
110dea: 8b 58 10 mov 0x10(%eax),%ebx
110ded: 89 4d e0 mov %ecx,-0x20(%ebp)
110df0: 89 5d e4 mov %ebx,-0x1c(%ebp)
args.buffer = buffer;
110df3: 8b 4d 0c mov 0xc(%ebp),%ecx
110df6: 89 4d e8 mov %ecx,-0x18(%ebp)
args.count = count;
110df9: 8b 4d 10 mov 0x10(%ebp),%ecx
110dfc: 89 4d ec mov %ecx,-0x14(%ebp)
args.flags = iop->flags;
110dff: 8b 40 14 mov 0x14(%eax),%eax
110e02: 89 45 f0 mov %eax,-0x10(%ebp)
args.bytes_moved = 0;
110e05: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
status = rtems_io_read(
110e0c: 8d 45 dc lea -0x24(%ebp),%eax
110e0f: 50 push %eax
110e10: ff 72 54 pushl 0x54(%edx)
110e13: ff 72 50 pushl 0x50(%edx)
110e16: e8 5d 08 00 00 call 111678 <rtems_io_read>
the_jnode->info.device.major,
the_jnode->info.device.minor,
(void *) &args
);
if ( status )
110e1b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
110e1e: 85 c0 test %eax,%eax <== NOT EXECUTED
110e20: 74 0e je 110e30 <device_read+0x59> <== NOT EXECUTED
return rtems_deviceio_errno(status);
110e22: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
110e25: 50 push %eax <== NOT EXECUTED
110e26: e8 e5 09 00 00 call 111810 <rtems_deviceio_errno> <== NOT EXECUTED
110e2b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
110e2e: eb 03 jmp 110e33 <device_read+0x5c> <== NOT EXECUTED
return (ssize_t) args.bytes_moved;
110e30: 8b 45 f4 mov -0xc(%ebp),%eax <== NOT EXECUTED
}
110e33: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
110e36: c9 leave <== NOT EXECUTED
110e37: c3 ret <== NOT EXECUTED
00110d76 <device_write>:
ssize_t device_write(
rtems_libio_t *iop,
const void *buffer,
size_t count
)
{
110d76: 55 push %ebp
110d77: 89 e5 mov %esp,%ebp
110d79: 53 push %ebx
110d7a: 83 ec 28 sub $0x28,%esp
110d7d: 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;
110d80: 8b 50 38 mov 0x38(%eax),%edx
args.iop = iop;
110d83: 89 45 dc mov %eax,-0x24(%ebp)
args.offset = iop->offset;
110d86: 8b 48 0c mov 0xc(%eax),%ecx
110d89: 8b 58 10 mov 0x10(%eax),%ebx
110d8c: 89 4d e0 mov %ecx,-0x20(%ebp)
110d8f: 89 5d e4 mov %ebx,-0x1c(%ebp)
args.buffer = (void *) buffer;
110d92: 8b 4d 0c mov 0xc(%ebp),%ecx
110d95: 89 4d e8 mov %ecx,-0x18(%ebp)
args.count = count;
110d98: 8b 4d 10 mov 0x10(%ebp),%ecx
110d9b: 89 4d ec mov %ecx,-0x14(%ebp)
args.flags = iop->flags;
110d9e: 8b 40 14 mov 0x14(%eax),%eax
110da1: 89 45 f0 mov %eax,-0x10(%ebp)
args.bytes_moved = 0;
110da4: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
status = rtems_io_write(
110dab: 8d 45 dc lea -0x24(%ebp),%eax
110dae: 50 push %eax
110daf: ff 72 54 pushl 0x54(%edx)
110db2: ff 72 50 pushl 0x50(%edx)
110db5: e8 ee 08 00 00 call 1116a8 <rtems_io_write>
the_jnode->info.device.major,
the_jnode->info.device.minor,
(void *) &args
);
if ( status )
110dba: 83 c4 10 add $0x10,%esp
110dbd: 85 c0 test %eax,%eax
110dbf: 74 0e je 110dcf <device_write+0x59> <== ALWAYS TAKEN
return rtems_deviceio_errno(status);
110dc1: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
110dc4: 50 push %eax <== NOT EXECUTED
110dc5: e8 46 0a 00 00 call 111810 <rtems_deviceio_errno> <== NOT EXECUTED
110dca: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
110dcd: eb 03 jmp 110dd2 <device_write+0x5c> <== NOT EXECUTED
return (ssize_t) args.bytes_moved;
110dcf: 8b 45 f4 mov -0xc(%ebp),%eax
}
110dd2: 8b 5d fc mov -0x4(%ebp),%ebx
110dd5: c9 leave
110dd6: 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 74 86 12 00 pushl 0x128674
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 78 86 12 00 01 movb $0x1,0x128678
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 78 86 12 00 00 movb $0x0,0x128678
sc = rtems_semaphore_release(diskdevs_mutex);
107527: ff 35 74 86 12 00 pushl 0x128674
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 a6 45 00 00 call 10baec <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 f2 1a 00 00 call 10ab88 <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 fc 34 12 00 mov 0x1234fc,%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
00127f18 <endgrent>:
fclose(group_fp);
group_fp = fopen("/etc/group", "r");
}
void endgrent(void)
{
127f18: 55 push %ebp <== NOT EXECUTED
127f19: 89 e5 mov %esp,%ebp <== NOT EXECUTED
127f1b: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
if (group_fp != NULL)
127f1e: a1 8c 76 16 00 mov 0x16768c,%eax <== NOT EXECUTED
127f23: 85 c0 test %eax,%eax <== NOT EXECUTED
127f25: 74 0c je 127f33 <endgrent+0x1b> <== NOT EXECUTED
fclose(group_fp);
127f27: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
127f2a: 50 push %eax <== NOT EXECUTED
127f2b: e8 b4 4f 01 00 call 13cee4 <fclose> <== NOT EXECUTED
127f30: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
127f33: c9 leave <== NOT EXECUTED
127f34: c3 ret <== NOT EXECUTED
00127f35 <endpwent>:
fclose(passwd_fp);
passwd_fp = fopen("/etc/passwd", "r");
}
void endpwent(void)
{
127f35: 55 push %ebp <== NOT EXECUTED
127f36: 89 e5 mov %esp,%ebp <== NOT EXECUTED
127f38: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
if (passwd_fp != NULL)
127f3b: a1 a4 75 16 00 mov 0x1675a4,%eax <== NOT EXECUTED
127f40: 85 c0 test %eax,%eax <== NOT EXECUTED
127f42: 74 0c je 127f50 <endpwent+0x1b> <== NOT EXECUTED
fclose(passwd_fp);
127f44: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
127f47: 50 push %eax <== NOT EXECUTED
127f48: e8 97 4f 01 00 call 13cee4 <fclose> <== NOT EXECUTED
127f4d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
127f50: c9 leave <== NOT EXECUTED
127f51: 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 fc 34 12 00 mov 0x1234fc,%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 24 f0 11 00 push $0x11f024 <== 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 22 f0 11 00 push $0x11f022 <== 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 fc 34 12 00 mov 0x1234fc,%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 22 f0 11 00 push $0x11f022 <== 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
001257ae <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)
{
1257ae: 55 push %ebp <== NOT EXECUTED
1257af: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1257b1: 57 push %edi <== NOT EXECUTED
1257b2: 56 push %esi <== NOT EXECUTED
1257b3: 53 push %ebx <== NOT EXECUTED
1257b4: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED
1257b7: 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)
1257ba: 80 bb 81 00 00 00 00 cmpb $0x0,0x81(%ebx) <== NOT EXECUTED
1257c1: 75 4b jne 12580e <fat_buf_access+0x60> <== NOT EXECUTED
{
if (op_type == FAT_OP_TYPE_READ)
1257c3: 83 7d 10 01 cmpl $0x1,0x10(%ebp) <== NOT EXECUTED
1257c7: 8d 83 84 00 00 00 lea 0x84(%ebx),%eax <== NOT EXECUTED
1257cd: 75 11 jne 1257e0 <fat_buf_access+0x32> <== NOT EXECUTED
sc = rtems_bdbuf_read(fs_info->vol.dev, blk, &fs_info->c.buf);
1257cf: 50 push %eax <== NOT EXECUTED
1257d0: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
1257d3: ff 73 58 pushl 0x58(%ebx) <== NOT EXECUTED
1257d6: ff 73 54 pushl 0x54(%ebx) <== NOT EXECUTED
1257d9: e8 36 57 fe ff call 10af14 <rtems_bdbuf_read> <== NOT EXECUTED
1257de: eb 0f jmp 1257ef <fat_buf_access+0x41> <== NOT EXECUTED
else
sc = rtems_bdbuf_get(fs_info->vol.dev, blk, &fs_info->c.buf);
1257e0: 50 push %eax <== NOT EXECUTED
1257e1: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
1257e4: ff 73 58 pushl 0x58(%ebx) <== NOT EXECUTED
1257e7: ff 73 54 pushl 0x54(%ebx) <== NOT EXECUTED
1257ea: e8 67 56 fe ff call 10ae56 <rtems_bdbuf_get> <== NOT EXECUTED
1257ef: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
1257f2: 85 c0 test %eax,%eax <== NOT EXECUTED
1257f4: 0f 85 54 01 00 00 jne 12594e <fat_buf_access+0x1a0> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
fs_info->c.blk_num = blk;
1257fa: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
1257fd: 89 43 7c mov %eax,0x7c(%ebx) <== NOT EXECUTED
fs_info->c.modified = 0;
125800: c6 83 80 00 00 00 00 movb $0x0,0x80(%ebx) <== NOT EXECUTED
fs_info->c.state = FAT_CACHE_ACTUAL;
125807: 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) &&
12580e: 8b 43 7c mov 0x7c(%ebx),%eax <== NOT EXECUTED
125811: 0f b7 4b 14 movzwl 0x14(%ebx),%ecx <== NOT EXECUTED
125815: 31 d2 xor %edx,%edx <== NOT EXECUTED
125817: 39 c8 cmp %ecx,%eax <== NOT EXECUTED
125819: 72 08 jb 125823 <fat_buf_access+0x75> <== NOT EXECUTED
12581b: 31 d2 xor %edx,%edx <== NOT EXECUTED
12581d: 3b 43 1c cmp 0x1c(%ebx),%eax <== NOT EXECUTED
125820: 0f 92 c2 setb %dl <== NOT EXECUTED
(fs_info->c.blk_num < fs_info->vol.rdir_loc));
if (fs_info->c.blk_num != blk)
125823: 3b 45 0c cmp 0xc(%ebp),%eax <== NOT EXECUTED
125826: 0f 84 3f 01 00 00 je 12596b <fat_buf_access+0x1bd> <== NOT EXECUTED
{
if (fs_info->c.modified)
12582c: 80 bb 80 00 00 00 00 cmpb $0x0,0x80(%ebx) <== NOT EXECUTED
125833: 0f 84 c6 00 00 00 je 1258ff <fat_buf_access+0x151> <== NOT EXECUTED
{
if (sec_of_fat && !fs_info->vol.mirror)
125839: 84 d2 test %dl,%dl <== NOT EXECUTED
12583b: 74 1c je 125859 <fat_buf_access+0xab> <== NOT EXECUTED
12583d: 80 7b 48 00 cmpb $0x0,0x48(%ebx) <== NOT EXECUTED
125841: 75 16 jne 125859 <fat_buf_access+0xab> <== NOT EXECUTED
memcpy(fs_info->sec_buf, fs_info->c.buf->buffer,
125843: 8b 83 88 00 00 00 mov 0x88(%ebx),%eax <== NOT EXECUTED
125849: 0f b7 0b movzwl (%ebx),%ecx <== NOT EXECUTED
12584c: 8b b3 84 00 00 00 mov 0x84(%ebx),%esi <== NOT EXECUTED
125852: 8b 76 20 mov 0x20(%esi),%esi <== NOT EXECUTED
125855: 89 c7 mov %eax,%edi <== NOT EXECUTED
125857: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
fs_info->vol.bps);
sc = rtems_bdbuf_release_modified(fs_info->c.buf);
125859: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12585c: ff b3 84 00 00 00 pushl 0x84(%ebx) <== NOT EXECUTED
125862: 88 55 d0 mov %dl,-0x30(%ebp) <== NOT EXECUTED
125865: e8 a4 47 fe ff call 10a00e <rtems_bdbuf_release_modified><== NOT EXECUTED
fs_info->c.state = FAT_CACHE_EMPTY;
12586a: c6 83 81 00 00 00 00 movb $0x0,0x81(%ebx) <== NOT EXECUTED
fs_info->c.modified = 0;
125871: c6 83 80 00 00 00 00 movb $0x0,0x80(%ebx) <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
125878: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12587b: 85 c0 test %eax,%eax <== NOT EXECUTED
12587d: 8a 55 d0 mov -0x30(%ebp),%dl <== NOT EXECUTED
125880: 0f 85 c8 00 00 00 jne 12594e <fat_buf_access+0x1a0> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
if (sec_of_fat && !fs_info->vol.mirror)
125886: 84 d2 test %dl,%dl <== NOT EXECUTED
125888: 0f 84 8d 00 00 00 je 12591b <fat_buf_access+0x16d> <== NOT EXECUTED
12588e: 80 7b 48 00 cmpb $0x0,0x48(%ebx) <== NOT EXECUTED
125892: 0f 85 83 00 00 00 jne 12591b <fat_buf_access+0x16d> <== NOT EXECUTED
125898: c6 45 d7 01 movb $0x1,-0x29(%ebp) <== NOT EXECUTED
12589c: eb 57 jmp 1258f5 <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,
12589e: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
1258a1: 50 push %eax <== NOT EXECUTED
1258a2: 0f b6 45 d7 movzbl -0x29(%ebp),%eax <== NOT EXECUTED
1258a6: 0f af 43 18 imul 0x18(%ebx),%eax <== NOT EXECUTED
1258aa: 03 43 7c add 0x7c(%ebx),%eax <== NOT EXECUTED
1258ad: 50 push %eax <== NOT EXECUTED
1258ae: ff 73 58 pushl 0x58(%ebx) <== NOT EXECUTED
1258b1: ff 73 54 pushl 0x54(%ebx) <== NOT EXECUTED
1258b4: e8 9d 55 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)
1258b9: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1258bc: 85 c0 test %eax,%eax <== NOT EXECUTED
1258be: 75 25 jne 1258e5 <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);
1258c0: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
1258c3: 8b 40 20 mov 0x20(%eax),%eax <== NOT EXECUTED
1258c6: 0f b7 0b movzwl (%ebx),%ecx <== NOT EXECUTED
1258c9: 8b b3 88 00 00 00 mov 0x88(%ebx),%esi <== NOT EXECUTED
1258cf: 89 c7 mov %eax,%edi <== NOT EXECUTED
1258d1: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
sc = rtems_bdbuf_release_modified(b);
1258d3: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1258d6: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
1258d9: e8 30 47 fe ff call 10a00e <rtems_bdbuf_release_modified><== NOT EXECUTED
if ( sc != RTEMS_SUCCESSFUL)
1258de: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1258e1: 85 c0 test %eax,%eax <== NOT EXECUTED
1258e3: 74 0d je 1258f2 <fat_buf_access+0x144> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(ENOMEM);
1258e5: e8 ae 74 01 00 call 13cd98 <__errno> <== NOT EXECUTED
1258ea: c7 00 0c 00 00 00 movl $0xc,(%eax) <== NOT EXECUTED
1258f0: eb 67 jmp 125959 <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++)
1258f2: fe 45 d7 incb -0x29(%ebp) <== NOT EXECUTED
1258f5: 8a 45 d7 mov -0x29(%ebp),%al <== NOT EXECUTED
1258f8: 3a 43 09 cmp 0x9(%ebx),%al <== NOT EXECUTED
1258fb: 72 a1 jb 12589e <fat_buf_access+0xf0> <== NOT EXECUTED
1258fd: eb 1c jmp 12591b <fat_buf_access+0x16d> <== NOT EXECUTED
}
}
}
else
{
sc = rtems_bdbuf_release(fs_info->c.buf);
1258ff: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
125902: ff b3 84 00 00 00 pushl 0x84(%ebx) <== NOT EXECUTED
125908: e8 6a 47 fe ff call 10a077 <rtems_bdbuf_release> <== NOT EXECUTED
fs_info->c.state = FAT_CACHE_EMPTY;
12590d: c6 83 81 00 00 00 00 movb $0x0,0x81(%ebx) <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
125914: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
125917: 85 c0 test %eax,%eax <== NOT EXECUTED
125919: 75 33 jne 12594e <fat_buf_access+0x1a0> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
}
if (op_type == FAT_OP_TYPE_READ)
12591b: 83 7d 10 01 cmpl $0x1,0x10(%ebp) <== NOT EXECUTED
12591f: 8d 83 84 00 00 00 lea 0x84(%ebx),%eax <== NOT EXECUTED
125925: 75 11 jne 125938 <fat_buf_access+0x18a> <== NOT EXECUTED
sc = rtems_bdbuf_read(fs_info->vol.dev, blk, &fs_info->c.buf);
125927: 50 push %eax <== NOT EXECUTED
125928: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
12592b: ff 73 58 pushl 0x58(%ebx) <== NOT EXECUTED
12592e: ff 73 54 pushl 0x54(%ebx) <== NOT EXECUTED
125931: e8 de 55 fe ff call 10af14 <rtems_bdbuf_read> <== NOT EXECUTED
125936: eb 0f jmp 125947 <fat_buf_access+0x199> <== NOT EXECUTED
else
sc = rtems_bdbuf_get(fs_info->vol.dev, blk, &fs_info->c.buf);
125938: 50 push %eax <== NOT EXECUTED
125939: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
12593c: ff 73 58 pushl 0x58(%ebx) <== NOT EXECUTED
12593f: ff 73 54 pushl 0x54(%ebx) <== NOT EXECUTED
125942: e8 0f 55 fe ff call 10ae56 <rtems_bdbuf_get> <== NOT EXECUTED
125947: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
12594a: 85 c0 test %eax,%eax <== NOT EXECUTED
12594c: 74 10 je 12595e <fat_buf_access+0x1b0> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
12594e: e8 45 74 01 00 call 13cd98 <__errno> <== NOT EXECUTED
125953: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
125959: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
12595c: eb 1a jmp 125978 <fat_buf_access+0x1ca> <== NOT EXECUTED
fs_info->c.blk_num = blk;
12595e: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
125961: 89 43 7c mov %eax,0x7c(%ebx) <== NOT EXECUTED
fs_info->c.state = FAT_CACHE_ACTUAL;
125964: c6 83 81 00 00 00 01 movb $0x1,0x81(%ebx) <== NOT EXECUTED
}
*buf = fs_info->c.buf;
12596b: 8b 93 84 00 00 00 mov 0x84(%ebx),%edx <== NOT EXECUTED
125971: 8b 45 14 mov 0x14(%ebp),%eax <== NOT EXECUTED
125974: 89 10 mov %edx,(%eax) <== NOT EXECUTED
125976: 31 c0 xor %eax,%eax <== NOT EXECUTED
return RC_OK;
}
125978: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
12597b: 5b pop %ebx <== NOT EXECUTED
12597c: 5e pop %esi <== NOT EXECUTED
12597d: 5f pop %edi <== NOT EXECUTED
12597e: c9 leave <== NOT EXECUTED
12597f: c3 ret <== NOT EXECUTED
00125667 <fat_buf_release>:
return RC_OK;
}
int
fat_buf_release(fat_fs_info_t *fs_info)
{
125667: 55 push %ebp <== NOT EXECUTED
125668: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12566a: 57 push %edi <== NOT EXECUTED
12566b: 56 push %esi <== NOT EXECUTED
12566c: 53 push %ebx <== NOT EXECUTED
12566d: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED
125670: 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)
125673: 31 c0 xor %eax,%eax <== NOT EXECUTED
125675: 80 bb 81 00 00 00 00 cmpb $0x0,0x81(%ebx) <== NOT EXECUTED
12567c: 0f 84 0f 01 00 00 je 125791 <fat_buf_release+0x12a> <== NOT EXECUTED
return RC_OK;
sec_of_fat = ((fs_info->c.blk_num >= fs_info->vol.fat_loc) &&
125682: 8b 43 7c mov 0x7c(%ebx),%eax <== NOT EXECUTED
125685: 0f b7 4b 14 movzwl 0x14(%ebx),%ecx <== NOT EXECUTED
125689: 31 d2 xor %edx,%edx <== NOT EXECUTED
12568b: 39 c8 cmp %ecx,%eax <== NOT EXECUTED
12568d: 72 08 jb 125697 <fat_buf_release+0x30> <== NOT EXECUTED
12568f: 31 d2 xor %edx,%edx <== NOT EXECUTED
125691: 3b 43 1c cmp 0x1c(%ebx),%eax <== NOT EXECUTED
125694: 0f 92 c2 setb %dl <== NOT EXECUTED
(fs_info->c.blk_num < fs_info->vol.rdir_loc));
if (fs_info->c.modified)
125697: 80 bb 80 00 00 00 00 cmpb $0x0,0x80(%ebx) <== NOT EXECUTED
12569e: 0f 84 c2 00 00 00 je 125766 <fat_buf_release+0xff> <== NOT EXECUTED
{
if (sec_of_fat && !fs_info->vol.mirror)
1256a4: 84 d2 test %dl,%dl <== NOT EXECUTED
1256a6: 74 1c je 1256c4 <fat_buf_release+0x5d> <== NOT EXECUTED
1256a8: 80 7b 48 00 cmpb $0x0,0x48(%ebx) <== NOT EXECUTED
1256ac: 75 16 jne 1256c4 <fat_buf_release+0x5d> <== NOT EXECUTED
memcpy(fs_info->sec_buf, fs_info->c.buf->buffer, fs_info->vol.bps);
1256ae: 8b 83 88 00 00 00 mov 0x88(%ebx),%eax <== NOT EXECUTED
1256b4: 0f b7 0b movzwl (%ebx),%ecx <== NOT EXECUTED
1256b7: 8b b3 84 00 00 00 mov 0x84(%ebx),%esi <== NOT EXECUTED
1256bd: 8b 76 20 mov 0x20(%esi),%esi <== NOT EXECUTED
1256c0: 89 c7 mov %eax,%edi <== NOT EXECUTED
1256c2: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
sc = rtems_bdbuf_release_modified(fs_info->c.buf);
1256c4: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1256c7: ff b3 84 00 00 00 pushl 0x84(%ebx) <== NOT EXECUTED
1256cd: 88 55 d0 mov %dl,-0x30(%ebp) <== NOT EXECUTED
1256d0: e8 39 49 fe ff call 10a00e <rtems_bdbuf_release_modified><== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
1256d5: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1256d8: 85 c0 test %eax,%eax <== NOT EXECUTED
1256da: 8a 55 d0 mov -0x30(%ebp),%dl <== NOT EXECUTED
1256dd: 0f 85 98 00 00 00 jne 12577b <fat_buf_release+0x114> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
fs_info->c.modified = 0;
1256e3: c6 83 80 00 00 00 00 movb $0x0,0x80(%ebx) <== NOT EXECUTED
if (sec_of_fat && !fs_info->vol.mirror)
1256ea: 84 d2 test %dl,%dl <== NOT EXECUTED
1256ec: 0f 84 96 00 00 00 je 125788 <fat_buf_release+0x121> <== NOT EXECUTED
1256f2: 80 7b 48 00 cmpb $0x0,0x48(%ebx) <== NOT EXECUTED
1256f6: 0f 85 8c 00 00 00 jne 125788 <fat_buf_release+0x121> <== NOT EXECUTED
1256fc: c6 45 d7 01 movb $0x1,-0x29(%ebp) <== NOT EXECUTED
125700: eb 5a jmp 12575c <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,
125702: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
125705: 50 push %eax <== NOT EXECUTED
125706: 0f b6 45 d7 movzbl -0x29(%ebp),%eax <== NOT EXECUTED
12570a: 0f af 43 18 imul 0x18(%ebx),%eax <== NOT EXECUTED
12570e: 03 43 7c add 0x7c(%ebx),%eax <== NOT EXECUTED
125711: 50 push %eax <== NOT EXECUTED
125712: ff 73 58 pushl 0x58(%ebx) <== NOT EXECUTED
125715: ff 73 54 pushl 0x54(%ebx) <== NOT EXECUTED
125718: e8 39 57 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)
12571d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
125720: 85 c0 test %eax,%eax <== NOT EXECUTED
125722: 74 10 je 125734 <fat_buf_release+0xcd> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(ENOMEM);
125724: e8 6f 76 01 00 call 13cd98 <__errno> <== NOT EXECUTED
125729: c7 00 0c 00 00 00 movl $0xc,(%eax) <== NOT EXECUTED
12572f: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
125732: eb 5d jmp 125791 <fat_buf_release+0x12a> <== NOT EXECUTED
memcpy(b->buffer, fs_info->sec_buf, fs_info->vol.bps);
125734: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
125737: 8b 40 20 mov 0x20(%eax),%eax <== NOT EXECUTED
12573a: 0f b7 0b movzwl (%ebx),%ecx <== NOT EXECUTED
12573d: 8b b3 88 00 00 00 mov 0x88(%ebx),%esi <== NOT EXECUTED
125743: 89 c7 mov %eax,%edi <== NOT EXECUTED
125745: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
sc = rtems_bdbuf_release_modified(b);
125747: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12574a: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
12574d: e8 bc 48 fe ff call 10a00e <rtems_bdbuf_release_modified><== NOT EXECUTED
if ( sc != RTEMS_SUCCESSFUL)
125752: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
125755: 85 c0 test %eax,%eax <== NOT EXECUTED
125757: 75 cb jne 125724 <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++)
125759: fe 45 d7 incb -0x29(%ebp) <== NOT EXECUTED
12575c: 8a 45 d7 mov -0x29(%ebp),%al <== NOT EXECUTED
12575f: 3a 43 09 cmp 0x9(%ebx),%al <== NOT EXECUTED
125762: 72 9e jb 125702 <fat_buf_release+0x9b> <== NOT EXECUTED
125764: eb 22 jmp 125788 <fat_buf_release+0x121> <== NOT EXECUTED
}
}
}
else
{
sc = rtems_bdbuf_release(fs_info->c.buf);
125766: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
125769: ff b3 84 00 00 00 pushl 0x84(%ebx) <== NOT EXECUTED
12576f: e8 03 49 fe ff call 10a077 <rtems_bdbuf_release> <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
125774: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
125777: 85 c0 test %eax,%eax <== NOT EXECUTED
125779: 74 0d je 125788 <fat_buf_release+0x121> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
12577b: e8 18 76 01 00 call 13cd98 <__errno> <== NOT EXECUTED
125780: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
125786: eb a7 jmp 12572f <fat_buf_release+0xc8> <== NOT EXECUTED
}
fs_info->c.state = FAT_CACHE_EMPTY;
125788: c6 83 81 00 00 00 00 movb $0x0,0x81(%ebx) <== NOT EXECUTED
12578f: 31 c0 xor %eax,%eax <== NOT EXECUTED
return RC_OK;
}
125791: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
125794: 5b pop %ebx <== NOT EXECUTED
125795: 5e pop %esi <== NOT EXECUTED
125796: 5f pop %edi <== NOT EXECUTED
125797: c9 leave <== NOT EXECUTED
125798: c3 ret <== NOT EXECUTED
001262eb <fat_cluster_read>:
fat_cluster_read(
rtems_filesystem_mount_table_entry_t *mt_entry,
uint32_t cln,
void *buff
)
{
1262eb: 55 push %ebp <== NOT EXECUTED
1262ec: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1262ee: 56 push %esi <== NOT EXECUTED
1262ef: 53 push %ebx <== NOT EXECUTED
1262f0: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
1262f3: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
fat_fs_info_t *fs_info = mt_entry->fs_info;
1262f6: 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)) )
1262f9: 85 c0 test %eax,%eax <== NOT EXECUTED
1262fb: 75 0b jne 126308 <fat_cluster_read+0x1d> <== NOT EXECUTED
1262fd: f6 42 0a 03 testb $0x3,0xa(%edx) <== NOT EXECUTED
126301: 74 05 je 126308 <fat_cluster_read+0x1d> <== NOT EXECUTED
return fs_info->vol.rdir_loc;
126303: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED
126306: eb 0c jmp 126314 <fat_cluster_read+0x29> <== NOT EXECUTED
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
126308: 83 e8 02 sub $0x2,%eax <== NOT EXECUTED
12630b: 0f b6 4a 05 movzbl 0x5(%edx),%ecx <== NOT EXECUTED
12630f: d3 e0 shl %cl,%eax <== NOT EXECUTED
126311: 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,
126314: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
126317: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
12631a: 0f b6 5a 04 movzbl 0x4(%edx),%ebx <== NOT EXECUTED
12631e: 0f b6 4a 02 movzbl 0x2(%edx),%ecx <== NOT EXECUTED
126322: d3 e3 shl %cl,%ebx <== NOT EXECUTED
126324: 53 push %ebx <== NOT EXECUTED
126325: 6a 00 push $0x0 <== NOT EXECUTED
126327: 50 push %eax <== NOT EXECUTED
126328: 56 push %esi <== NOT EXECUTED
126329: e8 44 f9 ff ff call 125c72 <_fat_block_read> <== NOT EXECUTED
fs_info->vol.spc << fs_info->vol.sec_log2, buff);
}
12632e: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
126331: 5b pop %ebx <== NOT EXECUTED
126332: 5e pop %esi <== NOT EXECUTED
126333: c9 leave <== NOT EXECUTED
126334: c3 ret <== NOT EXECUTED
00125b85 <fat_cluster_write>:
fat_cluster_write(
rtems_filesystem_mount_table_entry_t *mt_entry,
uint32_t cln,
const void *buff
)
{
125b85: 55 push %ebp <== NOT EXECUTED
125b86: 89 e5 mov %esp,%ebp <== NOT EXECUTED
125b88: 56 push %esi <== NOT EXECUTED
125b89: 53 push %ebx <== NOT EXECUTED
125b8a: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
125b8d: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
fat_fs_info_t *fs_info = mt_entry->fs_info;
125b90: 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)) )
125b93: 85 c0 test %eax,%eax <== NOT EXECUTED
125b95: 75 0b jne 125ba2 <fat_cluster_write+0x1d><== NOT EXECUTED
125b97: f6 42 0a 03 testb $0x3,0xa(%edx) <== NOT EXECUTED
125b9b: 74 05 je 125ba2 <fat_cluster_write+0x1d><== NOT EXECUTED
return fs_info->vol.rdir_loc;
125b9d: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED
125ba0: eb 0c jmp 125bae <fat_cluster_write+0x29><== NOT EXECUTED
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
125ba2: 83 e8 02 sub $0x2,%eax <== NOT EXECUTED
125ba5: 0f b6 4a 05 movzbl 0x5(%edx),%ecx <== NOT EXECUTED
125ba9: d3 e0 shl %cl,%eax <== NOT EXECUTED
125bab: 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,
125bae: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
125bb1: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
125bb4: 0f b6 5a 04 movzbl 0x4(%edx),%ebx <== NOT EXECUTED
125bb8: 0f b6 4a 02 movzbl 0x2(%edx),%ecx <== NOT EXECUTED
125bbc: d3 e3 shl %cl,%ebx <== NOT EXECUTED
125bbe: 53 push %ebx <== NOT EXECUTED
125bbf: 6a 00 push $0x0 <== NOT EXECUTED
125bc1: 50 push %eax <== NOT EXECUTED
125bc2: 56 push %esi <== NOT EXECUTED
125bc3: e8 b8 fd ff ff call 125980 <_fat_block_write> <== NOT EXECUTED
fs_info->vol.spc << fs_info->vol.sec_log2, buff);
}
125bc8: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
125bcb: 5b pop %ebx <== NOT EXECUTED
125bcc: 5e pop %esi <== NOT EXECUTED
125bcd: c9 leave <== NOT EXECUTED
125bce: c3 ret <== NOT EXECUTED
00125a1e <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
)
{
125a1e: 55 push %ebp <== NOT EXECUTED
125a1f: 89 e5 mov %esp,%ebp <== NOT EXECUTED
125a21: 57 push %edi <== NOT EXECUTED
125a22: 56 push %esi <== NOT EXECUTED
125a23: 53 push %ebx <== NOT EXECUTED
125a24: 83 ec 28 sub $0x28,%esp <== NOT EXECUTED
125a27: 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;
125a2a: 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);
125a2d: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
125a30: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
le_next_free = CT_LE_L(next_free);
125a33: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
125a36: 89 45 e0 mov %eax,-0x20(%ebp) <== NOT EXECUTED
ret1 = _fat_block_write(mt_entry,
125a39: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
125a3c: 50 push %eax <== NOT EXECUTED
125a3d: 6a 04 push $0x4 <== NOT EXECUTED
125a3f: 68 e8 01 00 00 push $0x1e8 <== NOT EXECUTED
125a44: 0f b7 46 3c movzwl 0x3c(%esi),%eax <== NOT EXECUTED
125a48: 50 push %eax <== NOT EXECUTED
125a49: 53 push %ebx <== NOT EXECUTED
125a4a: e8 31 ff ff ff call 125980 <_fat_block_write> <== NOT EXECUTED
125a4f: 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,
125a51: 83 c4 14 add $0x14,%esp <== NOT EXECUTED
125a54: 8d 45 e0 lea -0x20(%ebp),%eax <== NOT EXECUTED
125a57: 50 push %eax <== NOT EXECUTED
125a58: 6a 04 push $0x4 <== NOT EXECUTED
125a5a: 68 ec 01 00 00 push $0x1ec <== NOT EXECUTED
125a5f: 0f b7 46 3c movzwl 0x3c(%esi),%eax <== NOT EXECUTED
125a63: 50 push %eax <== NOT EXECUTED
125a64: 53 push %ebx <== NOT EXECUTED
125a65: e8 16 ff ff ff call 125980 <_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) )
125a6a: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
125a6d: 85 c0 test %eax,%eax <== NOT EXECUTED
125a6f: 78 06 js 125a77 <fat_fat32_update_fsinfo_sector+0x59><== NOT EXECUTED
125a71: 31 c0 xor %eax,%eax <== NOT EXECUTED
125a73: 85 ff test %edi,%edi <== NOT EXECUTED
125a75: 79 03 jns 125a7a <fat_fat32_update_fsinfo_sector+0x5c><== NOT EXECUTED
125a77: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
return -1;
return RC_OK;
}
125a7a: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
125a7d: 5b pop %ebx <== NOT EXECUTED
125a7e: 5e pop %esi <== NOT EXECUTED
125a7f: 5f pop %edi <== NOT EXECUTED
125a80: c9 leave <== NOT EXECUTED
125a81: c3 ret <== NOT EXECUTED
001252d5 <fat_file_close>:
int
fat_file_close(
rtems_filesystem_mount_table_entry_t *mt_entry,
fat_file_fd_t *fat_fd
)
{
1252d5: 55 push %ebp <== NOT EXECUTED
1252d6: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1252d8: 57 push %edi <== NOT EXECUTED
1252d9: 56 push %esi <== NOT EXECUTED
1252da: 53 push %ebx <== NOT EXECUTED
1252db: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1252de: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
1252e1: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
int rc = RC_OK;
fat_fs_info_t *fs_info = mt_entry->fs_info;
1252e4: 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)
1252e7: 8b 43 08 mov 0x8(%ebx),%eax <== NOT EXECUTED
1252ea: 83 f8 01 cmp $0x1,%eax <== NOT EXECUTED
1252ed: 76 0b jbe 1252fa <fat_file_close+0x25> <== NOT EXECUTED
{
fat_fd->links_num--;
1252ef: 48 dec %eax <== NOT EXECUTED
1252f0: 89 43 08 mov %eax,0x8(%ebx) <== NOT EXECUTED
1252f3: 31 c0 xor %eax,%eax <== NOT EXECUTED
return rc;
1252f5: e9 82 00 00 00 jmp 12537c <fat_file_close+0xa7> <== NOT EXECUTED
}
key = fat_construct_key(mt_entry, &fat_fd->dir_pos.sname);
if (fat_fd->flags & FAT_FILE_REMOVED)
1252fa: f6 43 30 01 testb $0x1,0x30(%ebx) <== NOT EXECUTED
1252fe: 74 3f je 12533f <fat_file_close+0x6a> <== NOT EXECUTED
{
rc = fat_file_truncate(mt_entry, fat_fd, 0);
125300: 50 push %eax <== NOT EXECUTED
125301: 6a 00 push $0x0 <== NOT EXECUTED
125303: 53 push %ebx <== NOT EXECUTED
125304: 56 push %esi <== NOT EXECUTED
125305: e8 9d f9 ff ff call 124ca7 <fat_file_truncate> <== NOT EXECUTED
if ( rc != RC_OK )
12530a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12530d: 85 c0 test %eax,%eax <== NOT EXECUTED
12530f: 75 6b jne 12537c <fat_file_close+0xa7> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void rtems_chain_extract(
rtems_chain_node *the_node
)
{
_Chain_Extract( the_node );
125311: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
125314: 53 push %ebx <== NOT EXECUTED
125315: e8 2e c3 fe ff call 111648 <_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) )
12531a: 5a pop %edx <== NOT EXECUTED
12531b: 59 pop %ecx <== NOT EXECUTED
12531c: ff 73 0c pushl 0xc(%ebx) <== NOT EXECUTED
12531f: 56 push %esi <== NOT EXECUTED
125320: e8 92 02 00 00 call 1255b7 <fat_ino_is_unique> <== NOT EXECUTED
125325: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
125328: 84 c0 test %al,%al <== NOT EXECUTED
12532a: 74 0e je 12533a <fat_file_close+0x65> <== NOT EXECUTED
fat_free_unique_ino(mt_entry, fat_fd->ino);
12532c: 50 push %eax <== NOT EXECUTED
12532d: 50 push %eax <== NOT EXECUTED
12532e: ff 73 0c pushl 0xc(%ebx) <== NOT EXECUTED
125331: 56 push %esi <== NOT EXECUTED
125332: e8 59 02 00 00 call 125590 <fat_free_unique_ino> <== NOT EXECUTED
125337: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
free(fat_fd);
12533a: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12533d: eb 25 jmp 125364 <fat_file_close+0x8f> <== NOT EXECUTED
}
else
{
if (fat_ino_is_unique(mt_entry, fat_fd->ino))
12533f: 51 push %ecx <== NOT EXECUTED
125340: 51 push %ecx <== NOT EXECUTED
125341: ff 73 0c pushl 0xc(%ebx) <== NOT EXECUTED
125344: 56 push %esi <== NOT EXECUTED
125345: e8 6d 02 00 00 call 1255b7 <fat_ino_is_unique> <== NOT EXECUTED
12534a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12534d: 84 c0 test %al,%al <== NOT EXECUTED
12534f: 74 09 je 12535a <fat_file_close+0x85> <== NOT EXECUTED
{
fat_fd->links_num = 0;
125351: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx) <== NOT EXECUTED
125358: eb 13 jmp 12536d <fat_file_close+0x98> <== NOT EXECUTED
12535a: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12535d: 53 push %ebx <== NOT EXECUTED
12535e: e8 e5 c2 fe ff call 111648 <_Chain_Extract> <== NOT EXECUTED
}
else
{
_hash_delete(fs_info->vhash, key, fat_fd->ino, fat_fd);
free(fat_fd);
125363: 5a pop %edx <== NOT EXECUTED
125364: 53 push %ebx <== NOT EXECUTED
125365: e8 32 7b fe ff call 10ce9c <free> <== NOT EXECUTED
12536a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
}
/*
* flush any modified "cached" buffer back to disk
*/
rc = fat_buf_release(fs_info);
12536d: 89 7d 08 mov %edi,0x8(%ebp) <== NOT EXECUTED
return rc;
}
125370: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
125373: 5b pop %ebx <== NOT EXECUTED
125374: 5e pop %esi <== NOT EXECUTED
125375: 5f pop %edi <== NOT EXECUTED
125376: c9 leave <== NOT EXECUTED
}
}
/*
* flush any modified "cached" buffer back to disk
*/
rc = fat_buf_release(fs_info);
125377: e9 eb 02 00 00 jmp 125667 <fat_buf_release> <== NOT EXECUTED
return rc;
}
12537c: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
12537f: 5b pop %ebx <== NOT EXECUTED
125380: 5e pop %esi <== NOT EXECUTED
125381: 5f pop %edi <== NOT EXECUTED
125382: c9 leave <== NOT EXECUTED
125383: c3 ret <== NOT EXECUTED
00124adc <fat_file_datasync>:
int
fat_file_datasync(
rtems_filesystem_mount_table_entry_t *mt_entry,
fat_file_fd_t *fat_fd
)
{
124adc: 55 push %ebp <== NOT EXECUTED
124add: 89 e5 mov %esp,%ebp <== NOT EXECUTED
124adf: 57 push %edi <== NOT EXECUTED
124ae0: 56 push %esi <== NOT EXECUTED
124ae1: 53 push %ebx <== NOT EXECUTED
124ae2: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED
124ae5: 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;
124ae8: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
124aeb: 8b 72 34 mov 0x34(%edx),%esi <== NOT EXECUTED
uint32_t cur_cln = fat_fd->cln;
124aee: 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)
124af1: 31 db xor %ebx,%ebx <== NOT EXECUTED
124af3: 83 78 18 00 cmpl $0x0,0x18(%eax) <== NOT EXECUTED
124af7: 0f 84 c9 00 00 00 je 124bc6 <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;
124afd: 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;
124b04: 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);
124b07: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
124b0a: 56 push %esi <== NOT EXECUTED
124b0b: e8 57 0b 00 00 call 125667 <fat_buf_release> <== NOT EXECUTED
124b10: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc != RC_OK)
124b12: 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);
124b15: 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)
124b17: 85 c0 test %eax,%eax <== NOT EXECUTED
124b19: 0f 84 94 00 00 00 je 124bb3 <fat_file_datasync+0xd7><== NOT EXECUTED
124b1f: e9 a2 00 00 00 jmp 124bc6 <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;
124b24: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
124b27: 8b 42 34 mov 0x34(%edx),%eax <== NOT EXECUTED
if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) )
124b2a: 85 db test %ebx,%ebx <== NOT EXECUTED
124b2c: 75 0b jne 124b39 <fat_file_datasync+0x5d><== NOT EXECUTED
124b2e: f6 40 0a 03 testb $0x3,0xa(%eax) <== NOT EXECUTED
124b32: 74 05 je 124b39 <fat_file_datasync+0x5d><== NOT EXECUTED
return fs_info->vol.rdir_loc;
124b34: 8b 58 1c mov 0x1c(%eax),%ebx <== NOT EXECUTED
124b37: eb 0c jmp 124b45 <fat_file_datasync+0x69><== NOT EXECUTED
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
124b39: 83 eb 02 sub $0x2,%ebx <== NOT EXECUTED
124b3c: 0f b6 48 05 movzbl 0x5(%eax),%ecx <== NOT EXECUTED
124b40: d3 e3 shl %cl,%ebx <== NOT EXECUTED
124b42: 03 58 30 add 0x30(%eax),%ebx <== NOT EXECUTED
124b45: 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++ )
124b4c: eb 41 jmp 124b8f <fat_file_datasync+0xb3><== NOT EXECUTED
{
/* ... sync it */
sc = rtems_bdbuf_read(fs_info->vol.dev, (sec + i), &block);
124b4e: 8d 45 e0 lea -0x20(%ebp),%eax <== NOT EXECUTED
124b51: 50 push %eax <== NOT EXECUTED
124b52: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED
124b55: 01 d8 add %ebx,%eax <== NOT EXECUTED
124b57: 50 push %eax <== NOT EXECUTED
124b58: ff 76 58 pushl 0x58(%esi) <== NOT EXECUTED
124b5b: ff 76 54 pushl 0x54(%esi) <== NOT EXECUTED
124b5e: e8 b1 63 fe ff call 10af14 <rtems_bdbuf_read> <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
124b63: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
124b66: 85 c0 test %eax,%eax <== NOT EXECUTED
124b68: 75 12 jne 124b7c <fat_file_datasync+0xa0><== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EIO );
sc = rtems_bdbuf_sync(block);
124b6a: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
124b6d: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
124b70: e8 10 5d fe ff call 10a885 <rtems_bdbuf_sync> <== NOT EXECUTED
if ( sc != RTEMS_SUCCESSFUL )
124b75: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
124b78: 85 c0 test %eax,%eax <== NOT EXECUTED
124b7a: 74 10 je 124b8c <fat_file_datasync+0xb0><== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EIO );
124b7c: e8 17 82 01 00 call 13cd98 <__errno> <== NOT EXECUTED
124b81: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
124b87: 83 cb ff or $0xffffffff,%ebx <== NOT EXECUTED
124b8a: eb 3a jmp 124bc6 <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++ )
124b8c: ff 45 d4 incl -0x2c(%ebp) <== NOT EXECUTED
124b8f: 0f b6 46 04 movzbl 0x4(%esi),%eax <== NOT EXECUTED
124b93: 39 45 d4 cmp %eax,-0x2c(%ebp) <== NOT EXECUTED
124b96: 72 b6 jb 124b4e <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);
124b98: 52 push %edx <== NOT EXECUTED
124b99: 8d 55 e4 lea -0x1c(%ebp),%edx <== NOT EXECUTED
124b9c: 52 push %edx <== NOT EXECUTED
124b9d: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
124ba0: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
124ba3: e8 6d 4d 01 00 call 139915 <fat_get_fat_cluster> <== NOT EXECUTED
if ( rc != RC_OK )
124ba8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
124bab: 85 c0 test %eax,%eax <== NOT EXECUTED
124bad: 74 04 je 124bb3 <fat_file_datasync+0xd7><== NOT EXECUTED
124baf: 89 c3 mov %eax,%ebx <== NOT EXECUTED
124bb1: eb 13 jmp 124bc6 <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)
124bb3: 8b 5d e4 mov -0x1c(%ebp),%ebx <== NOT EXECUTED
124bb6: 8b 46 0c mov 0xc(%esi),%eax <== NOT EXECUTED
124bb9: 21 d8 and %ebx,%eax <== NOT EXECUTED
124bbb: 3b 46 10 cmp 0x10(%esi),%eax <== NOT EXECUTED
124bbe: 0f 82 60 ff ff ff jb 124b24 <fat_file_datasync+0x48><== NOT EXECUTED
124bc4: 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;
}
124bc6: 89 d8 mov %ebx,%eax <== NOT EXECUTED
124bc8: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
124bcb: 5b pop %ebx <== NOT EXECUTED
124bcc: 5e pop %esi <== NOT EXECUTED
124bcd: 5f pop %edi <== NOT EXECUTED
124bce: c9 leave <== NOT EXECUTED
124bcf: c3 ret <== NOT EXECUTED
00124d81 <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
)
{
124d81: 55 push %ebp <== NOT EXECUTED
124d82: 89 e5 mov %esp,%ebp <== NOT EXECUTED
124d84: 57 push %edi <== NOT EXECUTED
124d85: 56 push %esi <== NOT EXECUTED
124d86: 53 push %ebx <== NOT EXECUTED
124d87: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED
124d8a: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
124d8d: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
int rc = RC_OK;
fat_fs_info_t *fs_info = mt_entry->fs_info;
124d90: 8b 7e 34 mov 0x34(%esi),%edi <== NOT EXECUTED
uint32_t chain = 0;
124d93: 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;
124d9a: 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;
124da1: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
124da4: 8b 45 14 mov 0x14(%ebp),%eax <== NOT EXECUTED
124da7: 89 10 mov %edx,(%eax) <== NOT EXECUTED
if (new_length <= fat_fd->fat_file_size)
124da9: 8b 43 18 mov 0x18(%ebx),%eax <== NOT EXECUTED
124dac: 39 c2 cmp %eax,%edx <== NOT EXECUTED
124dae: 0f 86 61 01 00 00 jbe 124f15 <fat_file_extend+0x194> <== NOT EXECUTED
return RC_OK;
if ((FAT_FD_OF_ROOT_DIR(fat_fd)) &&
124db4: 83 7b 20 01 cmpl $0x1,0x20(%ebx) <== NOT EXECUTED
124db8: 75 0c jne 124dc6 <fat_file_extend+0x45> <== NOT EXECUTED
124dba: 83 7b 24 00 cmpl $0x0,0x24(%ebx) <== NOT EXECUTED
124dbe: 75 06 jne 124dc6 <fat_file_extend+0x45> <== NOT EXECUTED
(fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)))
124dc0: f6 47 0a 03 testb $0x3,0xa(%edi) <== NOT EXECUTED
124dc4: 75 73 jne 124e39 <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))) &
124dc6: 0f b7 4f 06 movzwl 0x6(%edi),%ecx <== NOT EXECUTED
124dca: 8d 51 ff lea -0x1(%ecx),%edx <== NOT EXECUTED
124dcd: 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 -
124dd0: 21 c2 and %eax,%edx <== NOT EXECUTED
124dd2: 29 d1 sub %edx,%ecx <== NOT EXECUTED
124dd4: 89 4d d4 mov %ecx,-0x2c(%ebp) <== NOT EXECUTED
124dd7: 8b 55 d0 mov -0x30(%ebp),%edx <== NOT EXECUTED
124dda: 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;
124ddd: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
124de0: 29 c2 sub %eax,%edx <== NOT EXECUTED
124de2: 89 d0 mov %edx,%eax <== NOT EXECUTED
if (bytes2add > bytes_remain)
124de4: 3b 55 d4 cmp -0x2c(%ebp),%edx <== NOT EXECUTED
124de7: 0f 86 28 01 00 00 jbe 124f15 <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)
124ded: 2b 45 d4 sub -0x2c(%ebp),%eax <== NOT EXECUTED
124df0: 89 45 d0 mov %eax,-0x30(%ebp) <== NOT EXECUTED
124df3: 0f 84 1c 01 00 00 je 124f15 <fat_file_extend+0x194> <== NOT EXECUTED
return RC_OK;
cls2add = ((bytes2add - 1) >> fs_info->vol.bpc_log2) + 1;
124df9: 48 dec %eax <== NOT EXECUTED
124dfa: 0f b6 4f 08 movzbl 0x8(%edi),%ecx <== NOT EXECUTED
124dfe: d3 e8 shr %cl,%eax <== NOT EXECUTED
124e00: 8d 48 01 lea 0x1(%eax),%ecx <== NOT EXECUTED
rc = fat_scan_fat_for_free_clusters(mt_entry, &chain, cls2add,
124e03: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
124e06: 8d 45 dc lea -0x24(%ebp),%eax <== NOT EXECUTED
124e09: 50 push %eax <== NOT EXECUTED
124e0a: 8d 45 d8 lea -0x28(%ebp),%eax <== NOT EXECUTED
124e0d: 50 push %eax <== NOT EXECUTED
124e0e: 51 push %ecx <== NOT EXECUTED
124e0f: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
124e12: 50 push %eax <== NOT EXECUTED
124e13: 56 push %esi <== NOT EXECUTED
124e14: 89 4d cc mov %ecx,-0x34(%ebp) <== NOT EXECUTED
124e17: e8 0f 4d 01 00 call 139b2b <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)
124e1c: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
124e1f: 89 c2 mov %eax,%edx <== NOT EXECUTED
124e21: 85 c0 test %eax,%eax <== NOT EXECUTED
124e23: 8b 4d cc mov -0x34(%ebp),%ecx <== NOT EXECUTED
124e26: 0f 85 eb 00 00 00 jne 124f17 <fat_file_extend+0x196> <== NOT EXECUTED
return rc;
/* this means that no space left on device */
if ((cls_added == 0) && (bytes_remain == 0))
124e2c: 8b 45 d8 mov -0x28(%ebp),%eax <== NOT EXECUTED
124e2f: 83 7d d4 00 cmpl $0x0,-0x2c(%ebp) <== NOT EXECUTED
124e33: 75 17 jne 124e4c <fat_file_extend+0xcb> <== NOT EXECUTED
124e35: 85 c0 test %eax,%eax <== NOT EXECUTED
124e37: 75 13 jne 124e4c <fat_file_extend+0xcb> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(ENOSPC);
124e39: e8 5a 7f 01 00 call 13cd98 <__errno> <== NOT EXECUTED
124e3e: c7 00 1c 00 00 00 movl $0x1c,(%eax) <== NOT EXECUTED
124e44: 83 ca ff or $0xffffffff,%edx <== NOT EXECUTED
124e47: e9 cb 00 00 00 jmp 124f17 <fat_file_extend+0x196> <== NOT EXECUTED
/* check wether we satisfied request for 'cls2add' clusters */
if (cls2add != cls_added)
124e4c: 39 c1 cmp %eax,%ecx <== NOT EXECUTED
124e4e: 74 20 je 124e70 <fat_file_extend+0xef> <== NOT EXECUTED
*a_length = new_length -
124e50: f7 d0 not %eax <== NOT EXECUTED
124e52: 01 c8 add %ecx,%eax <== NOT EXECUTED
124e54: 0f b6 4f 08 movzbl 0x8(%edi),%ecx <== NOT EXECUTED
124e58: d3 e0 shl %cl,%eax <== NOT EXECUTED
124e5a: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
124e5d: 29 c2 sub %eax,%edx <== NOT EXECUTED
124e5f: 89 d0 mov %edx,%eax <== NOT EXECUTED
124e61: 0f b7 57 06 movzwl 0x6(%edi),%edx <== NOT EXECUTED
124e65: 4a dec %edx <== NOT EXECUTED
124e66: 23 55 d0 and -0x30(%ebp),%edx <== NOT EXECUTED
124e69: 29 d0 sub %edx,%eax <== NOT EXECUTED
124e6b: 8b 55 14 mov 0x14(%ebp),%edx <== NOT EXECUTED
124e6e: 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 )
124e70: 8b 43 18 mov 0x18(%ebx),%eax <== NOT EXECUTED
124e73: 85 c0 test %eax,%eax <== NOT EXECUTED
124e75: 75 12 jne 124e89 <fat_file_extend+0x108> <== NOT EXECUTED
{
fat_fd->map.disk_cln = fat_fd->cln = chain;
124e77: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
124e7a: 89 43 1c mov %eax,0x1c(%ebx) <== NOT EXECUTED
124e7d: 89 43 38 mov %eax,0x38(%ebx) <== NOT EXECUTED
fat_fd->map.file_cln = 0;
124e80: c7 43 34 00 00 00 00 movl $0x0,0x34(%ebx) <== NOT EXECUTED
124e87: eb 4a jmp 124ed3 <fat_file_extend+0x152> <== NOT EXECUTED
}
else
{
if (fat_fd->map.last_cln != FAT_UNDEFINED_VALUE)
124e89: 8b 53 3c mov 0x3c(%ebx),%edx <== NOT EXECUTED
124e8c: 83 fa ff cmp $0xffffffff,%edx <== NOT EXECUTED
124e8f: 74 05 je 124e96 <fat_file_extend+0x115> <== NOT EXECUTED
{
old_last_cl = fat_fd->map.last_cln;
124e91: 89 55 e0 mov %edx,-0x20(%ebp) <== NOT EXECUTED
124e94: eb 1b jmp 124eb1 <fat_file_extend+0x130> <== NOT EXECUTED
}
else
{
rc = fat_file_ioctl(mt_entry, fat_fd, F_CLU_NUM,
124e96: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
124e99: 8d 55 e0 lea -0x20(%ebp),%edx <== NOT EXECUTED
124e9c: 52 push %edx <== NOT EXECUTED
124e9d: 48 dec %eax <== NOT EXECUTED
124e9e: 50 push %eax <== NOT EXECUTED
124e9f: 6a 01 push $0x1 <== NOT EXECUTED
124ea1: 53 push %ebx <== NOT EXECUTED
124ea2: 56 push %esi <== NOT EXECUTED
124ea3: e8 76 fd ff ff call 124c1e <fat_file_ioctl> <== NOT EXECUTED
124ea8: 89 c2 mov %eax,%edx <== NOT EXECUTED
(fat_fd->fat_file_size - 1), &old_last_cl);
if ( rc != RC_OK )
124eaa: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
124ead: 85 c0 test %eax,%eax <== NOT EXECUTED
124eaf: 75 48 jne 124ef9 <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);
124eb1: 50 push %eax <== NOT EXECUTED
124eb2: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
124eb5: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
124eb8: 56 push %esi <== NOT EXECUTED
124eb9: e8 3e 48 01 00 call 1396fc <fat_set_fat_cluster> <== NOT EXECUTED
124ebe: 89 c2 mov %eax,%edx <== NOT EXECUTED
if ( rc != RC_OK )
124ec0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
124ec3: 85 c0 test %eax,%eax <== NOT EXECUTED
124ec5: 75 32 jne 124ef9 <fat_file_extend+0x178> <== NOT EXECUTED
{
fat_free_fat_clusters_chain(mt_entry, chain);
return rc;
}
fat_buf_release(fs_info);
124ec7: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
124eca: 57 push %edi <== NOT EXECUTED
124ecb: e8 97 07 00 00 call 125667 <fat_buf_release> <== NOT EXECUTED
124ed0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
/* update number of the last cluster of the file if it changed */
if (cls_added != 0)
124ed3: 83 7d d8 00 cmpl $0x0,-0x28(%ebp) <== NOT EXECUTED
124ed7: 74 36 je 124f0f <fat_file_extend+0x18e> <== NOT EXECUTED
{
fat_fd->map.last_cln = last_cl;
124ed9: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED
124edc: 89 43 3c mov %eax,0x3c(%ebx) <== NOT EXECUTED
if (fat_fd->fat_file_type == FAT_DIRECTORY)
124edf: 83 7b 10 01 cmpl $0x1,0x10(%ebx) <== NOT EXECUTED
124ee3: 75 2a jne 124f0f <fat_file_extend+0x18e> <== NOT EXECUTED
{
rc = fat_init_clusters_chain(mt_entry, chain);
124ee5: 57 push %edi <== NOT EXECUTED
124ee6: 57 push %edi <== NOT EXECUTED
124ee7: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
124eea: 56 push %esi <== NOT EXECUTED
124eeb: e8 df 0c 00 00 call 125bcf <fat_init_clusters_chain><== NOT EXECUTED
124ef0: 89 c2 mov %eax,%edx <== NOT EXECUTED
if ( rc != RC_OK )
124ef2: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
124ef5: 85 c0 test %eax,%eax <== NOT EXECUTED
124ef7: 74 16 je 124f0f <fat_file_extend+0x18e> <== NOT EXECUTED
{
fat_free_fat_clusters_chain(mt_entry, chain);
124ef9: 53 push %ebx <== NOT EXECUTED
124efa: 53 push %ebx <== NOT EXECUTED
124efb: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
124efe: 56 push %esi <== NOT EXECUTED
124eff: 89 55 cc mov %edx,-0x34(%ebp) <== NOT EXECUTED
124f02: e8 78 4b 01 00 call 139a7f <fat_free_fat_clusters_chain><== NOT EXECUTED
return rc;
124f07: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
124f0a: 8b 55 cc mov -0x34(%ebp),%edx <== NOT EXECUTED
124f0d: eb 08 jmp 124f17 <fat_file_extend+0x196> <== NOT EXECUTED
}
}
}
fat_fd->fat_file_size = new_length;
124f0f: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
124f12: 89 43 18 mov %eax,0x18(%ebx) <== NOT EXECUTED
return RC_OK;
124f15: 31 d2 xor %edx,%edx <== NOT EXECUTED
}
124f17: 89 d0 mov %edx,%eax <== NOT EXECUTED
124f19: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
124f1c: 5b pop %ebx <== NOT EXECUTED
124f1d: 5e pop %esi <== NOT EXECUTED
124f1e: 5f pop %edi <== NOT EXECUTED
124f1f: c9 leave <== NOT EXECUTED
124f20: c3 ret <== NOT EXECUTED
00124c1e <fat_file_ioctl>:
fat_file_ioctl(
rtems_filesystem_mount_table_entry_t *mt_entry,
fat_file_fd_t *fat_fd,
int cmd,
...)
{
124c1e: 55 push %ebp <== NOT EXECUTED
124c1f: 89 e5 mov %esp,%ebp <== NOT EXECUTED
124c21: 56 push %esi <== NOT EXECUTED
124c22: 53 push %ebx <== NOT EXECUTED
124c23: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED
124c26: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
124c29: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
int rc = RC_OK;
fat_fs_info_t *fs_info = mt_entry->fs_info;
124c2c: 8b 48 34 mov 0x34(%eax),%ecx <== NOT EXECUTED
uint32_t cur_cln = 0;
124c2f: 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)
124c36: 83 7d 10 01 cmpl $0x1,0x10(%ebp) <== NOT EXECUTED
124c3a: 75 56 jne 124c92 <fat_file_ioctl+0x74> <== NOT EXECUTED
{
case F_CLU_NUM:
pos = va_arg(ap, uint32_t );
124c3c: 8b 75 14 mov 0x14(%ebp),%esi <== NOT EXECUTED
ret = va_arg(ap, uint32_t *);
124c3f: 8b 5d 18 mov 0x18(%ebp),%ebx <== NOT EXECUTED
/* sanity check */
if ( pos >= fat_fd->fat_file_size )
124c42: 3b 72 18 cmp 0x18(%edx),%esi <== NOT EXECUTED
124c45: 72 0d jb 124c54 <fat_file_ioctl+0x36> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EIO );
124c47: e8 4c 81 01 00 call 13cd98 <__errno> <== NOT EXECUTED
124c4c: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
124c52: eb 49 jmp 124c9d <fat_file_ioctl+0x7f> <== NOT EXECUTED
if ((FAT_FD_OF_ROOT_DIR(fat_fd)) &&
124c54: 83 7a 20 01 cmpl $0x1,0x20(%edx) <== NOT EXECUTED
124c58: 75 16 jne 124c70 <fat_file_ioctl+0x52> <== NOT EXECUTED
124c5a: 83 7a 24 00 cmpl $0x0,0x24(%edx) <== NOT EXECUTED
124c5e: 75 10 jne 124c70 <fat_file_ioctl+0x52> <== NOT EXECUTED
(fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)))
124c60: f6 41 0a 03 testb $0x3,0xa(%ecx) <== NOT EXECUTED
124c64: 74 0a je 124c70 <fat_file_ioctl+0x52> <== NOT EXECUTED
{
/* cluster 0 (zero) reserved for root dir */
*ret = 0;
124c66: c7 03 00 00 00 00 movl $0x0,(%ebx) <== NOT EXECUTED
124c6c: 31 c0 xor %eax,%eax <== NOT EXECUTED
return RC_OK;
124c6e: eb 30 jmp 124ca0 <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);
124c70: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
124c73: 0f b6 49 08 movzbl 0x8(%ecx),%ecx <== NOT EXECUTED
124c77: d3 ee shr %cl,%esi <== NOT EXECUTED
124c79: 89 f1 mov %esi,%ecx <== NOT EXECUTED
124c7b: 8d 75 f4 lea -0xc(%ebp),%esi <== NOT EXECUTED
124c7e: 56 push %esi <== NOT EXECUTED
124c7f: e8 db fd ff ff call 124a5f <fat_file_lseek> <== NOT EXECUTED
if ( rc != RC_OK )
124c84: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
124c87: 85 c0 test %eax,%eax <== NOT EXECUTED
124c89: 75 15 jne 124ca0 <fat_file_ioctl+0x82> <== NOT EXECUTED
return rc;
*ret = cur_cln;
124c8b: 8b 55 f4 mov -0xc(%ebp),%edx <== NOT EXECUTED
124c8e: 89 13 mov %edx,(%ebx) <== NOT EXECUTED
break;
124c90: eb 0e jmp 124ca0 <fat_file_ioctl+0x82> <== NOT EXECUTED
default:
errno = EINVAL;
124c92: e8 01 81 01 00 call 13cd98 <__errno> <== NOT EXECUTED
124c97: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
124c9d: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
rc = -1;
break;
}
return rc;
}
124ca0: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
124ca3: 5b pop %ebx <== NOT EXECUTED
124ca4: 5e pop %esi <== NOT EXECUTED
124ca5: c9 leave <== NOT EXECUTED
124ca6: c3 ret <== NOT EXECUTED
00124a5f <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
)
{
124a5f: 55 push %ebp <== NOT EXECUTED
124a60: 89 e5 mov %esp,%ebp <== NOT EXECUTED
124a62: 57 push %edi <== NOT EXECUTED
124a63: 56 push %esi <== NOT EXECUTED
124a64: 53 push %ebx <== NOT EXECUTED
124a65: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED
124a68: 89 45 d4 mov %eax,-0x2c(%ebp) <== NOT EXECUTED
124a6b: 89 d3 mov %edx,%ebx <== NOT EXECUTED
124a6d: 89 ce mov %ecx,%esi <== NOT EXECUTED
int rc = RC_OK;
if (file_cln == fat_fd->map.file_cln)
124a6f: 8b 52 34 mov 0x34(%edx),%edx <== NOT EXECUTED
124a72: 39 d1 cmp %edx,%ecx <== NOT EXECUTED
124a74: 75 05 jne 124a7b <fat_file_lseek+0x1c> <== NOT EXECUTED
*disk_cln = fat_fd->map.disk_cln;
124a76: 8b 43 38 mov 0x38(%ebx),%eax <== NOT EXECUTED
124a79: eb 50 jmp 124acb <fat_file_lseek+0x6c> <== NOT EXECUTED
{
uint32_t cur_cln;
uint32_t count;
uint32_t i;
if (file_cln > fat_fd->map.file_cln)
124a7b: 76 0e jbe 124a8b <fat_file_lseek+0x2c> <== NOT EXECUTED
{
cur_cln = fat_fd->map.disk_cln;
124a7d: 8b 43 38 mov 0x38(%ebx),%eax <== NOT EXECUTED
124a80: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
count = file_cln - fat_fd->map.file_cln;
124a83: 89 c8 mov %ecx,%eax <== NOT EXECUTED
124a85: 29 d0 sub %edx,%eax <== NOT EXECUTED
124a87: 89 c2 mov %eax,%edx <== NOT EXECUTED
124a89: eb 08 jmp 124a93 <fat_file_lseek+0x34> <== NOT EXECUTED
}
else
{
cur_cln = fat_fd->cln;
124a8b: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
124a8e: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
124a91: 89 ca mov %ecx,%edx <== NOT EXECUTED
124a93: 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);
124a95: 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++)
124a98: eb 24 jmp 124abe <fat_file_lseek+0x5f> <== NOT EXECUTED
{
rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln);
124a9a: 50 push %eax <== NOT EXECUTED
124a9b: 51 push %ecx <== NOT EXECUTED
124a9c: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
124a9f: ff 75 d4 pushl -0x2c(%ebp) <== NOT EXECUTED
124aa2: 89 55 cc mov %edx,-0x34(%ebp) <== NOT EXECUTED
124aa5: 89 4d d0 mov %ecx,-0x30(%ebp) <== NOT EXECUTED
124aa8: e8 68 4e 01 00 call 139915 <fat_get_fat_cluster> <== NOT EXECUTED
if ( rc != RC_OK )
124aad: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
124ab0: 85 c0 test %eax,%eax <== NOT EXECUTED
124ab2: 8b 55 cc mov -0x34(%ebp),%edx <== NOT EXECUTED
124ab5: 8b 4d d0 mov -0x30(%ebp),%ecx <== NOT EXECUTED
124ab8: 74 03 je 124abd <fat_file_lseek+0x5e> <== NOT EXECUTED
return rc;
124aba: 99 cltd <== NOT EXECUTED
124abb: eb 17 jmp 124ad4 <fat_file_lseek+0x75> <== NOT EXECUTED
cur_cln = fat_fd->cln;
count = file_cln;
}
/* skip over the clusters */
for (i = 0; i < count; i++)
124abd: 47 inc %edi <== NOT EXECUTED
124abe: 39 d7 cmp %edx,%edi <== NOT EXECUTED
124ac0: 72 d8 jb 124a9a <fat_file_lseek+0x3b> <== NOT EXECUTED
if ( rc != RC_OK )
return rc;
}
/* update cache */
fat_fd->map.file_cln = file_cln;
124ac2: 89 73 34 mov %esi,0x34(%ebx) <== NOT EXECUTED
fat_fd->map.disk_cln = cur_cln;
124ac5: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
124ac8: 89 43 38 mov %eax,0x38(%ebx) <== NOT EXECUTED
*disk_cln = cur_cln;
124acb: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
124ace: 89 02 mov %eax,(%edx) <== NOT EXECUTED
124ad0: 31 c0 xor %eax,%eax <== NOT EXECUTED
124ad2: 31 d2 xor %edx,%edx <== NOT EXECUTED
}
return RC_OK;
}
124ad4: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
124ad7: 5b pop %ebx <== NOT EXECUTED
124ad8: 5e pop %esi <== NOT EXECUTED
124ad9: 5f pop %edi <== NOT EXECUTED
124ada: c9 leave <== NOT EXECUTED
124adb: c3 ret <== NOT EXECUTED
00124bd0 <fat_file_mark_removed>:
void
fat_file_mark_removed(
rtems_filesystem_mount_table_entry_t *mt_entry,
fat_file_fd_t *fat_fd
)
{
124bd0: 55 push %ebp <== NOT EXECUTED
124bd1: 89 e5 mov %esp,%ebp <== NOT EXECUTED
124bd3: 57 push %edi <== NOT EXECUTED
124bd4: 56 push %esi <== NOT EXECUTED
124bd5: 53 push %ebx <== NOT EXECUTED
124bd6: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
124bd9: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
fat_fs_info_t *fs_info = mt_entry->fs_info;
124bdc: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
124bdf: 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) +
124be2: 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)
124be5: 83 f8 01 cmp $0x1,%eax <== NOT EXECUTED
124be8: 74 02 je 124bec <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)) )
124bea: 85 c0 test %eax,%eax <== NOT EXECUTED
(pos->ofs >> FAT_SECTOR512_BITS)) << 4) +
124bec: 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 );
124bef: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
124bf2: 53 push %ebx <== NOT EXECUTED
124bf3: e8 50 ca fe ff call 111648 <_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 );
124bf8: 59 pop %ecx <== NOT EXECUTED
124bf9: 58 pop %eax <== NOT EXECUTED
124bfa: 53 push %ebx <== NOT EXECUTED
124bfb: 89 f8 mov %edi,%eax <== NOT EXECUTED
124bfd: c1 e8 05 shr $0x5,%eax <== NOT EXECUTED
124c00: 83 e0 01 and $0x1,%eax <== NOT EXECUTED
124c03: 6b c0 0c imul $0xc,%eax,%eax <== NOT EXECUTED
124c06: 03 46 68 add 0x68(%esi),%eax <== NOT EXECUTED
124c09: 50 push %eax <== NOT EXECUTED
124c0a: e8 15 ca fe ff call 111624 <_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;
124c0f: 80 4b 30 01 orb $0x1,0x30(%ebx) <== NOT EXECUTED
124c13: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
124c16: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
124c19: 5b pop %ebx <== NOT EXECUTED
124c1a: 5e pop %esi <== NOT EXECUTED
124c1b: 5f pop %edi <== NOT EXECUTED
124c1c: c9 leave <== NOT EXECUTED
124c1d: c3 ret <== NOT EXECUTED
00125384 <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
)
{
125384: 55 push %ebp <== NOT EXECUTED
125385: 89 e5 mov %esp,%ebp <== NOT EXECUTED
125387: 57 push %edi <== NOT EXECUTED
125388: 56 push %esi <== NOT EXECUTED
125389: 53 push %ebx <== NOT EXECUTED
12538a: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
12538d: 8b 75 0c mov 0xc(%ebp),%esi <== NOT EXECUTED
int rc = RC_OK;
fat_fs_info_t *fs_info = mt_entry->fs_info;
125390: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
125393: 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) +
125396: 8b 06 mov (%esi),%eax <== NOT EXECUTED
uint32_t cln
)
{
fat_fs_info_t *fs_info = mt_entry->fs_info;
if (cln == 1)
125398: b9 01 00 00 00 mov $0x1,%ecx <== NOT EXECUTED
12539d: 83 f8 01 cmp $0x1,%eax <== NOT EXECUTED
1253a0: 74 23 je 1253c5 <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)) )
1253a2: 85 c0 test %eax,%eax <== NOT EXECUTED
1253a4: 75 0b jne 1253b1 <fat_file_open+0x2d> <== NOT EXECUTED
1253a6: f6 43 0a 03 testb $0x3,0xa(%ebx) <== NOT EXECUTED
1253aa: 74 05 je 1253b1 <fat_file_open+0x2d> <== NOT EXECUTED
return fs_info->vol.rdir_loc;
1253ac: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
1253af: eb 0c jmp 1253bd <fat_file_open+0x39> <== NOT EXECUTED
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
1253b1: 83 e8 02 sub $0x2,%eax <== NOT EXECUTED
1253b4: 0f b6 4b 05 movzbl 0x5(%ebx),%ecx <== NOT EXECUTED
1253b8: d3 e0 shl %cl,%eax <== NOT EXECUTED
1253ba: 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) <<
1253bd: 0f b6 4b 03 movzbl 0x3(%ebx),%ecx <== NOT EXECUTED
1253c1: d3 e0 shl %cl,%eax <== NOT EXECUTED
1253c3: 89 c1 mov %eax,%ecx <== NOT EXECUTED
(pos->ofs >> FAT_SECTOR512_BITS)) << 4) +
1253c5: 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) +
1253c8: 89 d0 mov %edx,%eax <== NOT EXECUTED
1253ca: c1 e8 09 shr $0x9,%eax <== NOT EXECUTED
1253cd: 8d 04 01 lea (%ecx,%eax,1),%eax <== NOT EXECUTED
1253d0: c1 e0 04 shl $0x4,%eax <== NOT EXECUTED
1253d3: c1 ea 05 shr $0x5,%edx <== NOT EXECUTED
1253d6: 83 e2 0f and $0xf,%edx <== NOT EXECUTED
1253d9: 8d 14 10 lea (%eax,%edx,1),%edx <== NOT EXECUTED
1253dc: 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;
1253df: 89 d0 mov %edx,%eax <== NOT EXECUTED
1253e1: 83 e0 01 and $0x1,%eax <== NOT EXECUTED
1253e4: 6b c0 0c imul $0xc,%eax,%eax <== NOT EXECUTED
1253e7: 89 45 dc mov %eax,-0x24(%ebp) <== NOT EXECUTED
1253ea: 8b 53 64 mov 0x64(%ebx),%edx <== NOT EXECUTED
1253ed: 01 c2 add %eax,%edx <== NOT EXECUTED
1253ef: 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;
1253f1: 83 c2 04 add $0x4,%edx <== NOT EXECUTED
1253f4: 89 55 e0 mov %edx,-0x20(%ebp) <== NOT EXECUTED
1253f7: eb 5c jmp 125455 <fat_file_open+0xd1> <== NOT EXECUTED
1253f9: 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)
1253fc: b9 01 00 00 00 mov $0x1,%ecx <== NOT EXECUTED
125401: 83 fa 01 cmp $0x1,%edx <== NOT EXECUTED
125404: 74 23 je 125429 <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)) )
125406: 85 d2 test %edx,%edx <== NOT EXECUTED
125408: 75 0b jne 125415 <fat_file_open+0x91> <== NOT EXECUTED
12540a: f6 43 0a 03 testb $0x3,0xa(%ebx) <== NOT EXECUTED
12540e: 74 05 je 125415 <fat_file_open+0x91> <== NOT EXECUTED
return fs_info->vol.rdir_loc;
125410: 8b 53 1c mov 0x1c(%ebx),%edx <== NOT EXECUTED
125413: eb 0c jmp 125421 <fat_file_open+0x9d> <== NOT EXECUTED
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
125415: 83 ea 02 sub $0x2,%edx <== NOT EXECUTED
125418: 0f b6 4b 05 movzbl 0x5(%ebx),%ecx <== NOT EXECUTED
12541c: d3 e2 shl %cl,%edx <== NOT EXECUTED
12541e: 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) <<
125421: 0f b6 4b 03 movzbl 0x3(%ebx),%ecx <== NOT EXECUTED
125425: d3 e2 shl %cl,%edx <== NOT EXECUTED
125427: 89 d1 mov %edx,%ecx <== NOT EXECUTED
(pos->ofs >> FAT_SECTOR512_BITS)) << 4) +
125429: 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)
12542c: 89 fa mov %edi,%edx <== NOT EXECUTED
12542e: c1 ea 09 shr $0x9,%edx <== NOT EXECUTED
125431: 8d 14 11 lea (%ecx,%edx,1),%edx <== NOT EXECUTED
125434: c1 e2 04 shl $0x4,%edx <== NOT EXECUTED
125437: c1 ef 05 shr $0x5,%edi <== NOT EXECUTED
12543a: 83 e7 0f and $0xf,%edi <== NOT EXECUTED
12543d: 01 fa add %edi,%edx <== NOT EXECUTED
12543f: 39 55 e4 cmp %edx,-0x1c(%ebp) <== NOT EXECUTED
125442: 75 0f jne 125453 <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;
125444: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
125447: 89 02 mov %eax,(%edx) <== NOT EXECUTED
lfat_fd->links_num++;
125449: ff 40 08 incl 0x8(%eax) <== NOT EXECUTED
12544c: 31 c0 xor %eax,%eax <== NOT EXECUTED
return rc;
12544e: e9 22 01 00 00 jmp 125575 <fat_file_open+0x1f1> <== NOT EXECUTED
{
*ret = (void *)the_node;
return 0;
}
}
the_node = the_node->next;
125453: 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) ; )
125455: 3b 45 e0 cmp -0x20(%ebp),%eax <== NOT EXECUTED
125458: 75 9f jne 1253f9 <fat_file_open+0x75> <== NOT EXECUTED
12545a: e9 1e 01 00 00 jmp 12557d <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) +
12545f: 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)
125462: b9 01 00 00 00 mov $0x1,%ecx <== NOT EXECUTED
125467: 83 fa 01 cmp $0x1,%edx <== NOT EXECUTED
12546a: 74 23 je 12548f <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)) )
12546c: 85 d2 test %edx,%edx <== NOT EXECUTED
12546e: 75 0b jne 12547b <fat_file_open+0xf7> <== NOT EXECUTED
125470: f6 43 0a 03 testb $0x3,0xa(%ebx) <== NOT EXECUTED
125474: 74 05 je 12547b <fat_file_open+0xf7> <== NOT EXECUTED
return fs_info->vol.rdir_loc;
125476: 8b 53 1c mov 0x1c(%ebx),%edx <== NOT EXECUTED
125479: eb 0c jmp 125487 <fat_file_open+0x103> <== NOT EXECUTED
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
12547b: 83 ea 02 sub $0x2,%edx <== NOT EXECUTED
12547e: 0f b6 4b 05 movzbl 0x5(%ebx),%ecx <== NOT EXECUTED
125482: d3 e2 shl %cl,%edx <== NOT EXECUTED
125484: 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) <<
125487: 0f b6 4b 03 movzbl 0x3(%ebx),%ecx <== NOT EXECUTED
12548b: d3 e2 shl %cl,%edx <== NOT EXECUTED
12548d: 89 d1 mov %edx,%ecx <== NOT EXECUTED
(pos->ofs >> FAT_SECTOR512_BITS)) << 4) +
12548f: 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)
125492: 89 fa mov %edi,%edx <== NOT EXECUTED
125494: c1 ea 09 shr $0x9,%edx <== NOT EXECUTED
125497: 8d 14 11 lea (%ecx,%edx,1),%edx <== NOT EXECUTED
12549a: c1 e2 04 shl $0x4,%edx <== NOT EXECUTED
12549d: c1 ef 05 shr $0x5,%edi <== NOT EXECUTED
1254a0: 83 e7 0f and $0xf,%edi <== NOT EXECUTED
1254a3: 01 fa add %edi,%edx <== NOT EXECUTED
1254a5: 39 55 e4 cmp %edx,-0x1c(%ebp) <== NOT EXECUTED
1254a8: 75 0e jne 1254b8 <fat_file_open+0x134> <== NOT EXECUTED
{
if ( ((key2) == 0) || ((key2) == ffd->ino) )
1254aa: 83 7d e4 00 cmpl $0x0,-0x1c(%ebp) <== NOT EXECUTED
1254ae: 74 18 je 1254c8 <fat_file_open+0x144> <== NOT EXECUTED
1254b0: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
1254b3: 3b 50 0c cmp 0xc(%eax),%edx <== NOT EXECUTED
1254b6: 74 10 je 1254c8 <fat_file_open+0x144> <== NOT EXECUTED
{
*ret = (void *)the_node;
return 0;
}
}
the_node = the_node->next;
1254b8: 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) ; )
1254ba: 3b 45 e0 cmp -0x20(%ebp),%eax <== NOT EXECUTED
1254bd: 75 a0 jne 12545f <fat_file_open+0xdb> <== NOT EXECUTED
1254bf: c7 45 e0 ff ff ff ff movl $0xffffffff,-0x20(%ebp) <== NOT EXECUTED
1254c6: eb 07 jmp 1254cf <fat_file_open+0x14b> <== NOT EXECUTED
1254c8: 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));
1254cf: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1254d2: 6a 44 push $0x44 <== NOT EXECUTED
1254d4: e8 0f 7f fe ff call 10d3e8 <malloc> <== NOT EXECUTED
1254d9: 89 c2 mov %eax,%edx <== NOT EXECUTED
1254db: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
1254de: 89 10 mov %edx,(%eax) <== NOT EXECUTED
if ( lfat_fd == NULL )
1254e0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1254e3: 85 d2 test %edx,%edx <== NOT EXECUTED
1254e5: 75 10 jne 1254f7 <fat_file_open+0x173> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOMEM );
1254e7: e8 ac 78 01 00 call 13cd98 <__errno> <== NOT EXECUTED
1254ec: c7 00 0c 00 00 00 movl $0xc,(%eax) <== NOT EXECUTED
1254f2: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
1254f5: eb 7e jmp 125575 <fat_file_open+0x1f1> <== NOT EXECUTED
memset(lfat_fd, 0, sizeof(fat_file_fd_t));
1254f7: b9 11 00 00 00 mov $0x11,%ecx <== NOT EXECUTED
1254fc: 31 c0 xor %eax,%eax <== NOT EXECUTED
1254fe: 89 d7 mov %edx,%edi <== NOT EXECUTED
125500: f3 ab rep stos %eax,%es:(%edi) <== NOT EXECUTED
lfat_fd->links_num = 1;
125502: c7 42 08 01 00 00 00 movl $0x1,0x8(%edx) <== NOT EXECUTED
lfat_fd->flags &= ~FAT_FILE_REMOVED;
125509: 80 62 30 fe andb $0xfe,0x30(%edx) <== NOT EXECUTED
lfat_fd->map.last_cln = FAT_UNDEFINED_VALUE;
12550d: c7 42 3c ff ff ff ff movl $0xffffffff,0x3c(%edx) <== NOT EXECUTED
lfat_fd->dir_pos = *dir_pos;
125514: 8d 7a 20 lea 0x20(%edx),%edi <== NOT EXECUTED
125517: b1 04 mov $0x4,%cl <== NOT EXECUTED
125519: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED
if ( rc != RC_OK )
12551b: 83 7d e0 00 cmpl $0x0,-0x20(%ebp) <== NOT EXECUTED
12551f: 74 08 je 125529 <fat_file_open+0x1a5> <== NOT EXECUTED
lfat_fd->ino = key;
125521: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
125524: 89 42 0c mov %eax,0xc(%edx) <== NOT EXECUTED
125527: eb 38 jmp 125561 <fat_file_open+0x1dd> <== NOT EXECUTED
else
{
lfat_fd->ino = fat_get_unique_ino(mt_entry);
125529: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12552c: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
12552f: 89 55 d8 mov %edx,-0x28(%ebp) <== NOT EXECUTED
125532: e8 94 00 00 00 call 1255cb <fat_get_unique_ino> <== NOT EXECUTED
125537: 8b 55 d8 mov -0x28(%ebp),%edx <== NOT EXECUTED
12553a: 89 42 0c mov %eax,0xc(%edx) <== NOT EXECUTED
if ( lfat_fd->ino == 0 )
12553d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
125540: 85 c0 test %eax,%eax <== NOT EXECUTED
125542: 75 1d jne 125561 <fat_file_open+0x1dd> <== NOT EXECUTED
{
free((*fat_fd));
125544: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
125547: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
12554a: ff 32 pushl (%edx) <== NOT EXECUTED
12554c: e8 4b 79 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 );
125551: e8 42 78 01 00 call 13cd98 <__errno> <== NOT EXECUTED
125556: c7 00 0c 00 00 00 movl $0xc,(%eax) <== NOT EXECUTED
12555c: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
12555f: eb 11 jmp 125572 <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 );
125561: 51 push %ecx <== NOT EXECUTED
125562: 51 push %ecx <== NOT EXECUTED
125563: 52 push %edx <== NOT EXECUTED
125564: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED
125567: 03 43 64 add 0x64(%ebx),%eax <== NOT EXECUTED
12556a: 50 push %eax <== NOT EXECUTED
12556b: e8 b4 c0 fe ff call 111624 <_Chain_Append> <== NOT EXECUTED
125570: 31 c0 xor %eax,%eax <== NOT EXECUTED
/*
* other fields of fat-file descriptor will be initialized on upper
* level
*/
return RC_OK;
125572: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
125575: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
125578: 5b pop %ebx <== NOT EXECUTED
125579: 5e pop %esi <== NOT EXECUTED
12557a: 5f pop %edi <== NOT EXECUTED
12557b: c9 leave <== NOT EXECUTED
12557c: 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;
12557d: 8b 55 dc mov -0x24(%ebp),%edx <== NOT EXECUTED
125580: 03 53 68 add 0x68(%ebx),%edx <== NOT EXECUTED
125583: 8b 02 mov (%edx),%eax <== NOT EXECUTED
125585: 83 c2 04 add $0x4,%edx <== NOT EXECUTED
125588: 89 55 e0 mov %edx,-0x20(%ebp) <== NOT EXECUTED
12558b: e9 2a ff ff ff jmp 1254ba <fat_file_open+0x136> <== NOT EXECUTED
00125123 <fat_file_read>:
fat_file_fd_t *fat_fd,
uint32_t start,
uint32_t count,
uint8_t *buf
)
{
125123: 55 push %ebp <== NOT EXECUTED
125124: 89 e5 mov %esp,%ebp <== NOT EXECUTED
125126: 57 push %edi <== NOT EXECUTED
125127: 56 push %esi <== NOT EXECUTED
125128: 53 push %ebx <== NOT EXECUTED
125129: 83 ec 3c sub $0x3c,%esp <== NOT EXECUTED
12512c: 8b 7d 0c mov 0xc(%ebp),%edi <== NOT EXECUTED
12512f: 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;
125132: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
125135: 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)
125138: 85 f6 test %esi,%esi <== NOT EXECUTED
12513a: 0f 84 86 01 00 00 je 1252c6 <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 )
125140: 8b 47 18 mov 0x18(%edi),%eax <== NOT EXECUTED
125143: 39 45 10 cmp %eax,0x10(%ebp) <== NOT EXECUTED
125146: 0f 83 7a 01 00 00 jae 1252c6 <fat_file_read+0x1a3> <== NOT EXECUTED
return FAT_EOF;
if ((count > fat_fd->fat_file_size) ||
12514c: 39 c6 cmp %eax,%esi <== NOT EXECUTED
12514e: 77 09 ja 125159 <fat_file_read+0x36> <== NOT EXECUTED
125150: 89 c2 mov %eax,%edx <== NOT EXECUTED
125152: 29 f2 sub %esi,%edx <== NOT EXECUTED
125154: 39 55 10 cmp %edx,0x10(%ebp) <== NOT EXECUTED
125157: 76 05 jbe 12515e <fat_file_read+0x3b> <== NOT EXECUTED
(start > fat_fd->fat_file_size - count))
count = fat_fd->fat_file_size - start;
125159: 89 c6 mov %eax,%esi <== NOT EXECUTED
12515b: 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;
12515e: 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)) &&
125165: 83 7f 20 01 cmpl $0x1,0x20(%edi) <== NOT EXECUTED
125169: 75 57 jne 1251c2 <fat_file_read+0x9f> <== NOT EXECUTED
12516b: 83 7f 24 00 cmpl $0x0,0x24(%edi) <== NOT EXECUTED
12516f: 75 51 jne 1251c2 <fat_file_read+0x9f> <== NOT EXECUTED
(fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)))
125171: f6 43 0a 03 testb $0x3,0xa(%ebx) <== NOT EXECUTED
125175: 74 4b je 1251c2 <fat_file_read+0x9f> <== NOT EXECUTED
{
sec = fat_cluster_num_to_sector_num(mt_entry, fat_fd->cln);
125177: 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)) )
12517a: 85 c0 test %eax,%eax <== NOT EXECUTED
12517c: 75 05 jne 125183 <fat_file_read+0x60> <== NOT EXECUTED
return fs_info->vol.rdir_loc;
12517e: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
125181: eb 0c jmp 12518f <fat_file_read+0x6c> <== NOT EXECUTED
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
125183: 83 e8 02 sub $0x2,%eax <== NOT EXECUTED
125186: 0f b6 4b 05 movzbl 0x5(%ebx),%ecx <== NOT EXECUTED
12518a: d3 e0 shl %cl,%eax <== NOT EXECUTED
12518c: 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);
12518f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
125192: ff 75 18 pushl 0x18(%ebp) <== NOT EXECUTED
125195: 56 push %esi <== NOT EXECUTED
125196: 0f b7 13 movzwl (%ebx),%edx <== NOT EXECUTED
125199: 4a dec %edx <== NOT EXECUTED
12519a: 23 55 10 and 0x10(%ebp),%edx <== NOT EXECUTED
12519d: 52 push %edx <== NOT EXECUTED
12519e: 0f b6 4b 02 movzbl 0x2(%ebx),%ecx <== NOT EXECUTED
1251a2: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
1251a5: d3 ea shr %cl,%edx <== NOT EXECUTED
1251a7: 01 d0 add %edx,%eax <== NOT EXECUTED
1251a9: 50 push %eax <== NOT EXECUTED
1251aa: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
1251ad: e8 c0 0a 00 00 call 125c72 <_fat_block_read> <== NOT EXECUTED
if ( ret < 0 )
1251b2: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
1251b5: 85 c0 test %eax,%eax <== NOT EXECUTED
1251b7: 0f 89 10 01 00 00 jns 1252cd <fat_file_read+0x1aa> <== NOT EXECUTED
1251bd: e9 08 01 00 00 jmp 1252ca <fat_file_read+0x1a7> <== NOT EXECUTED
return -1;
return ret;
}
cl_start = start >> fs_info->vol.bpc_log2;
1251c2: 0f b6 4b 08 movzbl 0x8(%ebx),%ecx <== NOT EXECUTED
1251c6: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
1251c9: d3 e8 shr %cl,%eax <== NOT EXECUTED
1251cb: 89 45 c8 mov %eax,-0x38(%ebp) <== NOT EXECUTED
save_ofs = ofs = start & (fs_info->vol.bpc - 1);
1251ce: 66 8b 53 06 mov 0x6(%ebx),%dx <== NOT EXECUTED
1251d2: 66 89 55 d0 mov %dx,-0x30(%ebp) <== NOT EXECUTED
rc = fat_file_lseek(mt_entry, fat_fd, cl_start, &cur_cln);
1251d6: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1251d9: 8d 4d e4 lea -0x1c(%ebp),%ecx <== NOT EXECUTED
1251dc: 51 push %ecx <== NOT EXECUTED
1251dd: 89 c1 mov %eax,%ecx <== NOT EXECUTED
1251df: 89 fa mov %edi,%edx <== NOT EXECUTED
1251e1: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
1251e4: e8 76 f8 ff ff call 124a5f <fat_file_lseek> <== NOT EXECUTED
if (rc != RC_OK)
1251e9: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1251ec: 85 c0 test %eax,%eax <== NOT EXECUTED
1251ee: 0f 85 d9 00 00 00 jne 1252cd <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);
1251f4: 0f b7 45 d0 movzwl -0x30(%ebp),%eax <== NOT EXECUTED
1251f8: 48 dec %eax <== NOT EXECUTED
1251f9: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
1251fc: 21 d0 and %edx,%eax <== NOT EXECUTED
1251fe: 89 45 d0 mov %eax,-0x30(%ebp) <== NOT EXECUTED
125201: 89 45 cc mov %eax,-0x34(%ebp) <== NOT EXECUTED
125204: 31 d2 xor %edx,%edx <== NOT EXECUTED
125206: c7 45 d4 00 00 00 00 movl $0x0,-0x2c(%ebp) <== NOT EXECUTED
12520d: 89 7d c4 mov %edi,-0x3c(%ebp) <== NOT EXECUTED
125210: e9 89 00 00 00 jmp 12529e <fat_file_read+0x17b> <== NOT EXECUTED
if (rc != RC_OK)
return rc;
while (count > 0)
{
c = MIN(count, (fs_info->vol.bpc - ofs));
125215: 0f b7 7b 06 movzwl 0x6(%ebx),%edi <== NOT EXECUTED
125219: 2b 7d cc sub -0x34(%ebp),%edi <== NOT EXECUTED
12521c: 39 f7 cmp %esi,%edi <== NOT EXECUTED
12521e: 76 02 jbe 125222 <fat_file_read+0xff> <== NOT EXECUTED
125220: 89 f7 mov %esi,%edi <== NOT EXECUTED
sec = fat_cluster_num_to_sector_num(mt_entry, cur_cln);
125222: 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;
125225: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
125228: 8b 51 34 mov 0x34(%ecx),%edx <== NOT EXECUTED
if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) )
12522b: 85 c0 test %eax,%eax <== NOT EXECUTED
12522d: 75 0b jne 12523a <fat_file_read+0x117> <== NOT EXECUTED
12522f: f6 42 0a 03 testb $0x3,0xa(%edx) <== NOT EXECUTED
125233: 74 05 je 12523a <fat_file_read+0x117> <== NOT EXECUTED
return fs_info->vol.rdir_loc;
125235: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED
125238: eb 0c jmp 125246 <fat_file_read+0x123> <== NOT EXECUTED
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
12523a: 83 e8 02 sub $0x2,%eax <== NOT EXECUTED
12523d: 0f b6 4a 05 movzbl 0x5(%edx),%ecx <== NOT EXECUTED
125241: d3 e0 shl %cl,%eax <== NOT EXECUTED
125243: 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);
125246: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
125249: 8b 55 18 mov 0x18(%ebp),%edx <== NOT EXECUTED
12524c: 03 55 d4 add -0x2c(%ebp),%edx <== NOT EXECUTED
12524f: 52 push %edx <== NOT EXECUTED
125250: 57 push %edi <== NOT EXECUTED
125251: 0f b7 13 movzwl (%ebx),%edx <== NOT EXECUTED
125254: 4a dec %edx <== NOT EXECUTED
125255: 23 55 cc and -0x34(%ebp),%edx <== NOT EXECUTED
125258: 52 push %edx <== NOT EXECUTED
125259: 0f b6 4b 02 movzbl 0x2(%ebx),%ecx <== NOT EXECUTED
12525d: 8b 55 cc mov -0x34(%ebp),%edx <== NOT EXECUTED
125260: d3 ea shr %cl,%edx <== NOT EXECUTED
125262: 01 d0 add %edx,%eax <== NOT EXECUTED
125264: 50 push %eax <== NOT EXECUTED
125265: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
125268: e8 05 0a 00 00 call 125c72 <_fat_block_read> <== NOT EXECUTED
if ( ret < 0 )
12526d: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
125270: 85 c0 test %eax,%eax <== NOT EXECUTED
125272: 78 56 js 1252ca <fat_file_read+0x1a7> <== NOT EXECUTED
return -1;
count -= c;
cmpltd += c;
save_cln = cur_cln;
125274: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln);
125277: 50 push %eax <== NOT EXECUTED
125278: 8d 4d e4 lea -0x1c(%ebp),%ecx <== NOT EXECUTED
12527b: 51 push %ecx <== NOT EXECUTED
12527c: 52 push %edx <== NOT EXECUTED
12527d: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
125280: 89 55 c0 mov %edx,-0x40(%ebp) <== NOT EXECUTED
125283: e8 8d 46 01 00 call 139915 <fat_get_fat_cluster> <== NOT EXECUTED
if ( rc != RC_OK )
125288: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12528b: 85 c0 test %eax,%eax <== NOT EXECUTED
12528d: 8b 55 c0 mov -0x40(%ebp),%edx <== NOT EXECUTED
125290: 75 3b jne 1252cd <fat_file_read+0x1aa> <== NOT EXECUTED
ret = _fat_block_read(mt_entry, sec, byte, c, buf + cmpltd);
if ( ret < 0 )
return -1;
count -= c;
125292: 29 fe sub %edi,%esi <== NOT EXECUTED
cmpltd += c;
125294: 01 7d d4 add %edi,-0x2c(%ebp) <== NOT EXECUTED
125297: 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)
12529e: 85 f6 test %esi,%esi <== NOT EXECUTED
1252a0: 0f 85 6f ff ff ff jne 125215 <fat_file_read+0xf2> <== NOT EXECUTED
1252a6: 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 +
1252a9: 8b 4d d0 mov -0x30(%ebp),%ecx <== NOT EXECUTED
1252ac: 8b 75 d4 mov -0x2c(%ebp),%esi <== NOT EXECUTED
1252af: 8d 44 31 ff lea -0x1(%ecx,%esi,1),%eax <== NOT EXECUTED
1252b3: 0f b6 4b 08 movzbl 0x8(%ebx),%ecx <== NOT EXECUTED
1252b7: d3 e8 shr %cl,%eax <== NOT EXECUTED
1252b9: 03 45 c8 add -0x38(%ebp),%eax <== NOT EXECUTED
1252bc: 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;
1252bf: 89 57 38 mov %edx,0x38(%edi) <== NOT EXECUTED
return cmpltd;
1252c2: 89 f0 mov %esi,%eax <== NOT EXECUTED
1252c4: eb 07 jmp 1252cd <fat_file_read+0x1aa> <== NOT EXECUTED
1252c6: 31 c0 xor %eax,%eax <== NOT EXECUTED
1252c8: eb 03 jmp 1252cd <fat_file_read+0x1aa> <== NOT EXECUTED
1252ca: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
}
1252cd: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1252d0: 5b pop %ebx <== NOT EXECUTED
1252d1: 5e pop %esi <== NOT EXECUTED
1252d2: 5f pop %edi <== NOT EXECUTED
1252d3: c9 leave <== NOT EXECUTED
1252d4: c3 ret <== NOT EXECUTED
001249d4 <fat_file_reopen>:
* RETURNS:
* RC_OK
*/
int
fat_file_reopen(fat_file_fd_t *fat_fd)
{
1249d4: 55 push %ebp <== NOT EXECUTED
1249d5: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1249d7: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
fat_fd->links_num++;
1249da: ff 40 08 incl 0x8(%eax) <== NOT EXECUTED
return RC_OK;
}
1249dd: 31 c0 xor %eax,%eax <== NOT EXECUTED
1249df: c9 leave <== NOT EXECUTED
1249e0: c3 ret <== NOT EXECUTED
001249e1 <fat_file_size>:
int
fat_file_size(
rtems_filesystem_mount_table_entry_t *mt_entry,
fat_file_fd_t *fat_fd
)
{
1249e1: 55 push %ebp <== NOT EXECUTED
1249e2: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1249e4: 57 push %edi <== NOT EXECUTED
1249e5: 56 push %esi <== NOT EXECUTED
1249e6: 53 push %ebx <== NOT EXECUTED
1249e7: 83 ec 3c sub $0x3c,%esp <== NOT EXECUTED
1249ea: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
1249ed: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
int rc = RC_OK;
fat_fs_info_t *fs_info = mt_entry->fs_info;
1249f0: 8b 72 34 mov 0x34(%edx),%esi <== NOT EXECUTED
uint32_t cur_cln = fat_fd->cln;
1249f3: 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)) &&
1249f6: 83 7b 20 01 cmpl $0x1,0x20(%ebx) <== NOT EXECUTED
1249fa: 75 14 jne 124a10 <fat_file_size+0x2f> <== NOT EXECUTED
1249fc: 83 7b 24 00 cmpl $0x0,0x24(%ebx) <== NOT EXECUTED
124a00: 75 0e jne 124a10 <fat_file_size+0x2f> <== NOT EXECUTED
(fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)))
124a02: f6 46 0a 03 testb $0x3,0xa(%esi) <== NOT EXECUTED
124a06: 74 08 je 124a10 <fat_file_size+0x2f> <== NOT EXECUTED
{
fat_fd->fat_file_size = fs_info->vol.rdir_size;
124a08: 8b 46 28 mov 0x28(%esi),%eax <== NOT EXECUTED
124a0b: 89 43 18 mov %eax,0x18(%ebx) <== NOT EXECUTED
124a0e: eb 45 jmp 124a55 <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;
124a10: 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;
124a13: c7 43 18 00 00 00 00 movl $0x0,0x18(%ebx) <== NOT EXECUTED
124a1a: 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);
124a1c: 8d 4d e4 lea -0x1c(%ebp),%ecx <== NOT EXECUTED
124a1f: 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)
124a22: eb 21 jmp 124a45 <fat_file_size+0x64> <== NOT EXECUTED
{
save_cln = cur_cln;
rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln);
124a24: 50 push %eax <== NOT EXECUTED
124a25: 51 push %ecx <== NOT EXECUTED
124a26: 57 push %edi <== NOT EXECUTED
124a27: ff 75 c4 pushl -0x3c(%ebp) <== NOT EXECUTED
124a2a: 89 4d d0 mov %ecx,-0x30(%ebp) <== NOT EXECUTED
124a2d: e8 e3 4e 01 00 call 139915 <fat_get_fat_cluster> <== NOT EXECUTED
if ( rc != RC_OK )
124a32: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
124a35: 85 c0 test %eax,%eax <== NOT EXECUTED
124a37: 8b 4d d0 mov -0x30(%ebp),%ecx <== NOT EXECUTED
124a3a: 75 1b jne 124a57 <fat_file_size+0x76> <== NOT EXECUTED
return rc;
fat_fd->fat_file_size += fs_info->vol.bpc;
124a3c: 0f b7 46 06 movzwl 0x6(%esi),%eax <== NOT EXECUTED
124a40: 01 43 18 add %eax,0x18(%ebx) <== NOT EXECUTED
124a43: 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)
124a45: 8b 7d e4 mov -0x1c(%ebp),%edi <== NOT EXECUTED
124a48: 8b 56 0c mov 0xc(%esi),%edx <== NOT EXECUTED
124a4b: 21 fa and %edi,%edx <== NOT EXECUTED
124a4d: 3b 56 10 cmp 0x10(%esi),%edx <== NOT EXECUTED
124a50: 72 d2 jb 124a24 <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;
124a52: 89 43 3c mov %eax,0x3c(%ebx) <== NOT EXECUTED
124a55: 31 c0 xor %eax,%eax <== NOT EXECUTED
return rc;
}
124a57: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
124a5a: 5b pop %ebx <== NOT EXECUTED
124a5b: 5e pop %esi <== NOT EXECUTED
124a5c: 5f pop %edi <== NOT EXECUTED
124a5d: c9 leave <== NOT EXECUTED
124a5e: c3 ret <== NOT EXECUTED
00124ca7 <fat_file_truncate>:
fat_file_truncate(
rtems_filesystem_mount_table_entry_t *mt_entry,
fat_file_fd_t *fat_fd,
uint32_t new_length
)
{
124ca7: 55 push %ebp <== NOT EXECUTED
124ca8: 89 e5 mov %esp,%ebp <== NOT EXECUTED
124caa: 57 push %edi <== NOT EXECUTED
124cab: 56 push %esi <== NOT EXECUTED
124cac: 53 push %ebx <== NOT EXECUTED
124cad: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
124cb0: 8b 7d 08 mov 0x8(%ebp),%edi <== NOT EXECUTED
124cb3: 8b 75 0c mov 0xc(%ebp),%esi <== NOT EXECUTED
124cb6: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
int rc = RC_OK;
fat_fs_info_t *fs_info = mt_entry->fs_info;
124cb9: 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 )
124cbc: 8b 46 18 mov 0x18(%esi),%eax <== NOT EXECUTED
124cbf: 39 c2 cmp %eax,%edx <== NOT EXECUTED
124cc1: 0f 83 b0 00 00 00 jae 124d77 <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;
124cc7: 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;
124cce: 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);
124cd5: 85 c0 test %eax,%eax <== NOT EXECUTED
124cd7: 75 19 jne 124cf2 <fat_file_truncate+0x4b><== NOT EXECUTED
124cd9: 68 cd 9a 15 00 push $0x159acd <== NOT EXECUTED
124cde: 68 34 9b 15 00 push $0x159b34 <== NOT EXECUTED
124ce3: 68 6d 02 00 00 push $0x26d <== NOT EXECUTED
124ce8: 68 e3 9a 15 00 push $0x159ae3 <== NOT EXECUTED
124ced: e8 be 7b fe ff call 10c8b0 <__assert_func> <== NOT EXECUTED
cl_start = (new_length + fs_info->vol.bpc - 1) >> fs_info->vol.bpc_log2;
124cf2: 0f b6 4b 08 movzbl 0x8(%ebx),%ecx <== NOT EXECUTED
124cf6: 0f b7 5b 06 movzwl 0x6(%ebx),%ebx <== NOT EXECUTED
124cfa: 8d 5c 1a ff lea -0x1(%edx,%ebx,1),%ebx <== NOT EXECUTED
124cfe: d3 eb shr %cl,%ebx <== NOT EXECUTED
if ((cl_start << fs_info->vol.bpc_log2) >= fat_fd->fat_file_size)
124d00: 89 da mov %ebx,%edx <== NOT EXECUTED
124d02: d3 e2 shl %cl,%edx <== NOT EXECUTED
124d04: 39 c2 cmp %eax,%edx <== NOT EXECUTED
124d06: 73 6f jae 124d77 <fat_file_truncate+0xd0><== NOT EXECUTED
return RC_OK;
if (cl_start != 0)
124d08: 85 db test %ebx,%ebx <== NOT EXECUTED
124d0a: 74 1a je 124d26 <fat_file_truncate+0x7f><== NOT EXECUTED
{
rc = fat_file_lseek(mt_entry, fat_fd, cl_start - 1, &new_last_cln);
124d0c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
124d0f: 8d 4b ff lea -0x1(%ebx),%ecx <== NOT EXECUTED
124d12: 8d 45 e0 lea -0x20(%ebp),%eax <== NOT EXECUTED
124d15: 50 push %eax <== NOT EXECUTED
124d16: 89 f2 mov %esi,%edx <== NOT EXECUTED
124d18: 89 f8 mov %edi,%eax <== NOT EXECUTED
124d1a: e8 40 fd ff ff call 124a5f <fat_file_lseek> <== NOT EXECUTED
if (rc != RC_OK)
124d1f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
124d22: 85 c0 test %eax,%eax <== NOT EXECUTED
124d24: 75 53 jne 124d79 <fat_file_truncate+0xd2><== NOT EXECUTED
return rc;
}
rc = fat_file_lseek(mt_entry, fat_fd, cl_start, &cur_cln);
124d26: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
124d29: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
124d2c: 50 push %eax <== NOT EXECUTED
124d2d: 89 d9 mov %ebx,%ecx <== NOT EXECUTED
124d2f: 89 f2 mov %esi,%edx <== NOT EXECUTED
124d31: 89 f8 mov %edi,%eax <== NOT EXECUTED
124d33: e8 27 fd ff ff call 124a5f <fat_file_lseek> <== NOT EXECUTED
if (rc != RC_OK)
124d38: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
124d3b: 85 c0 test %eax,%eax <== NOT EXECUTED
124d3d: 75 3a jne 124d79 <fat_file_truncate+0xd2><== NOT EXECUTED
return rc;
rc = fat_free_fat_clusters_chain(mt_entry, cur_cln);
124d3f: 51 push %ecx <== NOT EXECUTED
124d40: 51 push %ecx <== NOT EXECUTED
124d41: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
124d44: 57 push %edi <== NOT EXECUTED
124d45: e8 35 4d 01 00 call 139a7f <fat_free_fat_clusters_chain><== NOT EXECUTED
if (rc != RC_OK)
124d4a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
124d4d: 85 c0 test %eax,%eax <== NOT EXECUTED
124d4f: 75 28 jne 124d79 <fat_file_truncate+0xd2><== NOT EXECUTED
return rc;
if (cl_start != 0)
124d51: 85 db test %ebx,%ebx <== NOT EXECUTED
124d53: 74 24 je 124d79 <fat_file_truncate+0xd2><== NOT EXECUTED
{
rc = fat_set_fat_cluster(mt_entry, new_last_cln, FAT_GENFAT_EOC);
124d55: 52 push %edx <== NOT EXECUTED
124d56: 6a ff push $0xffffffff <== NOT EXECUTED
124d58: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
124d5b: 57 push %edi <== NOT EXECUTED
124d5c: e8 9b 49 01 00 call 1396fc <fat_set_fat_cluster> <== NOT EXECUTED
if ( rc != RC_OK )
124d61: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
124d64: 85 c0 test %eax,%eax <== NOT EXECUTED
124d66: 75 11 jne 124d79 <fat_file_truncate+0xd2><== NOT EXECUTED
return rc;
fat_fd->map.file_cln = cl_start - 1;
124d68: 4b dec %ebx <== NOT EXECUTED
124d69: 89 5e 34 mov %ebx,0x34(%esi) <== NOT EXECUTED
fat_fd->map.disk_cln = new_last_cln;
124d6c: 8b 55 e0 mov -0x20(%ebp),%edx <== NOT EXECUTED
124d6f: 89 56 38 mov %edx,0x38(%esi) <== NOT EXECUTED
fat_fd->map.last_cln = new_last_cln;
124d72: 89 56 3c mov %edx,0x3c(%esi) <== NOT EXECUTED
124d75: eb 02 jmp 124d79 <fat_file_truncate+0xd2><== NOT EXECUTED
124d77: 31 c0 xor %eax,%eax <== NOT EXECUTED
}
return RC_OK;
}
124d79: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
124d7c: 5b pop %ebx <== NOT EXECUTED
124d7d: 5e pop %esi <== NOT EXECUTED
124d7e: 5f pop %edi <== NOT EXECUTED
124d7f: c9 leave <== NOT EXECUTED
124d80: c3 ret <== NOT EXECUTED
00124f21 <fat_file_write>:
fat_file_fd_t *fat_fd,
uint32_t start,
uint32_t count,
const uint8_t *buf
)
{
124f21: 55 push %ebp <== NOT EXECUTED
124f22: 89 e5 mov %esp,%ebp <== NOT EXECUTED
124f24: 57 push %edi <== NOT EXECUTED
124f25: 56 push %esi <== NOT EXECUTED
124f26: 53 push %ebx <== NOT EXECUTED
124f27: 83 ec 3c sub $0x3c,%esp <== NOT EXECUTED
124f2a: 8b 75 0c mov 0xc(%ebp),%esi <== NOT EXECUTED
124f2d: 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;
124f30: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
124f33: 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 )
124f36: 31 c0 xor %eax,%eax <== NOT EXECUTED
124f38: 85 ff test %edi,%edi <== NOT EXECUTED
124f3a: 0f 84 db 01 00 00 je 12511b <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;
124f40: 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;
124f47: 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 )
124f4e: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
124f51: 3b 56 18 cmp 0x18(%esi),%edx <== NOT EXECUTED
124f54: 77 0e ja 124f64 <fat_file_write+0x43> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EIO );
if ((count > fat_fd->size_limit) ||
124f56: 8b 46 14 mov 0x14(%esi),%eax <== NOT EXECUTED
124f59: 39 c7 cmp %eax,%edi <== NOT EXECUTED
124f5b: 77 07 ja 124f64 <fat_file_write+0x43> <== NOT EXECUTED
124f5d: 29 f8 sub %edi,%eax <== NOT EXECUTED
124f5f: 39 45 10 cmp %eax,0x10(%ebp) <== NOT EXECUTED
124f62: 76 10 jbe 124f74 <fat_file_write+0x53> <== NOT EXECUTED
(start > fat_fd->size_limit - count))
rtems_set_errno_and_return_minus_one( EIO );
124f64: e8 2f 7e 01 00 call 13cd98 <__errno> <== NOT EXECUTED
124f69: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
124f6f: e9 a4 01 00 00 jmp 125118 <fat_file_write+0x1f7> <== NOT EXECUTED
rc = fat_file_extend(mt_entry, fat_fd, start + count, &c);
124f74: 8b 4d 10 mov 0x10(%ebp),%ecx <== NOT EXECUTED
124f77: 8d 14 0f lea (%edi,%ecx,1),%edx <== NOT EXECUTED
124f7a: 8d 45 e0 lea -0x20(%ebp),%eax <== NOT EXECUTED
124f7d: 50 push %eax <== NOT EXECUTED
124f7e: 52 push %edx <== NOT EXECUTED
124f7f: 56 push %esi <== NOT EXECUTED
124f80: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
124f83: 89 55 c0 mov %edx,-0x40(%ebp) <== NOT EXECUTED
124f86: e8 f6 fd ff ff call 124d81 <fat_file_extend> <== NOT EXECUTED
if (rc != RC_OK)
124f8b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
124f8e: 85 c0 test %eax,%eax <== NOT EXECUTED
124f90: 8b 55 c0 mov -0x40(%ebp),%edx <== NOT EXECUTED
124f93: 0f 85 82 01 00 00 jne 12511b <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))
124f99: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
124f9c: 39 d0 cmp %edx,%eax <== NOT EXECUTED
124f9e: 74 05 je 124fa5 <fat_file_write+0x84> <== NOT EXECUTED
count = c - start;
124fa0: 89 c7 mov %eax,%edi <== NOT EXECUTED
124fa2: 2b 7d 10 sub 0x10(%ebp),%edi <== NOT EXECUTED
if ((FAT_FD_OF_ROOT_DIR(fat_fd)) &&
124fa5: 83 7e 20 01 cmpl $0x1,0x20(%esi) <== NOT EXECUTED
124fa9: 75 63 jne 12500e <fat_file_write+0xed> <== NOT EXECUTED
124fab: 83 7e 24 00 cmpl $0x0,0x24(%esi) <== NOT EXECUTED
124faf: 75 5d jne 12500e <fat_file_write+0xed> <== NOT EXECUTED
(fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)))
124fb1: f6 43 0a 03 testb $0x3,0xa(%ebx) <== NOT EXECUTED
124fb5: 74 57 je 12500e <fat_file_write+0xed> <== NOT EXECUTED
{
sec = fat_cluster_num_to_sector_num(mt_entry, fat_fd->cln);
124fb7: 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;
124fba: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
124fbd: 8b 51 34 mov 0x34(%ecx),%edx <== NOT EXECUTED
if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) )
124fc0: 85 c0 test %eax,%eax <== NOT EXECUTED
124fc2: 75 0b jne 124fcf <fat_file_write+0xae> <== NOT EXECUTED
124fc4: f6 42 0a 03 testb $0x3,0xa(%edx) <== NOT EXECUTED
124fc8: 74 05 je 124fcf <fat_file_write+0xae> <== NOT EXECUTED
return fs_info->vol.rdir_loc;
124fca: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED
124fcd: eb 0c jmp 124fdb <fat_file_write+0xba> <== NOT EXECUTED
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
124fcf: 83 e8 02 sub $0x2,%eax <== NOT EXECUTED
124fd2: 0f b6 4a 05 movzbl 0x5(%edx),%ecx <== NOT EXECUTED
124fd6: d3 e0 shl %cl,%eax <== NOT EXECUTED
124fd8: 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);
124fdb: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
124fde: ff 75 18 pushl 0x18(%ebp) <== NOT EXECUTED
124fe1: 57 push %edi <== NOT EXECUTED
124fe2: 0f b7 13 movzwl (%ebx),%edx <== NOT EXECUTED
124fe5: 4a dec %edx <== NOT EXECUTED
124fe6: 23 55 10 and 0x10(%ebp),%edx <== NOT EXECUTED
124fe9: 52 push %edx <== NOT EXECUTED
124fea: 0f b6 4b 02 movzbl 0x2(%ebx),%ecx <== NOT EXECUTED
124fee: 8b 7d 10 mov 0x10(%ebp),%edi <== NOT EXECUTED
124ff1: d3 ef shr %cl,%edi <== NOT EXECUTED
124ff3: 01 f8 add %edi,%eax <== NOT EXECUTED
124ff5: 50 push %eax <== NOT EXECUTED
124ff6: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
124ff9: e8 82 09 00 00 call 125980 <_fat_block_write> <== NOT EXECUTED
if ( ret < 0 )
124ffe: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
125001: 85 c0 test %eax,%eax <== NOT EXECUTED
125003: 0f 89 12 01 00 00 jns 12511b <fat_file_write+0x1fa> <== NOT EXECUTED
125009: e9 0a 01 00 00 jmp 125118 <fat_file_write+0x1f7> <== NOT EXECUTED
return -1;
return ret;
}
cl_start = start >> fs_info->vol.bpc_log2;
12500e: 0f b6 4b 08 movzbl 0x8(%ebx),%ecx <== NOT EXECUTED
125012: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
125015: d3 e8 shr %cl,%eax <== NOT EXECUTED
125017: 89 45 c8 mov %eax,-0x38(%ebp) <== NOT EXECUTED
save_ofs = ofs = start & (fs_info->vol.bpc - 1);
12501a: 66 8b 53 06 mov 0x6(%ebx),%dx <== NOT EXECUTED
12501e: 66 89 55 d0 mov %dx,-0x30(%ebp) <== NOT EXECUTED
rc = fat_file_lseek(mt_entry, fat_fd, cl_start, &cur_cln);
125022: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
125025: 8d 4d e4 lea -0x1c(%ebp),%ecx <== NOT EXECUTED
125028: 51 push %ecx <== NOT EXECUTED
125029: 89 c1 mov %eax,%ecx <== NOT EXECUTED
12502b: 89 f2 mov %esi,%edx <== NOT EXECUTED
12502d: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
125030: e8 2a fa ff ff call 124a5f <fat_file_lseek> <== NOT EXECUTED
if (rc != RC_OK)
125035: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
125038: 85 c0 test %eax,%eax <== NOT EXECUTED
12503a: 0f 85 db 00 00 00 jne 12511b <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);
125040: 0f b7 45 d0 movzwl -0x30(%ebp),%eax <== NOT EXECUTED
125044: 48 dec %eax <== NOT EXECUTED
125045: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
125048: 21 d0 and %edx,%eax <== NOT EXECUTED
12504a: 89 45 d0 mov %eax,-0x30(%ebp) <== NOT EXECUTED
12504d: 89 45 cc mov %eax,-0x34(%ebp) <== NOT EXECUTED
125050: 31 d2 xor %edx,%edx <== NOT EXECUTED
125052: c7 45 d4 00 00 00 00 movl $0x0,-0x2c(%ebp) <== NOT EXECUTED
125059: 89 75 c4 mov %esi,-0x3c(%ebp) <== NOT EXECUTED
12505c: e9 8f 00 00 00 jmp 1250f0 <fat_file_write+0x1cf> <== NOT EXECUTED
if (rc != RC_OK)
return rc;
while (count > 0)
{
c = MIN(count, (fs_info->vol.bpc - ofs));
125061: 0f b7 43 06 movzwl 0x6(%ebx),%eax <== NOT EXECUTED
125065: 2b 45 cc sub -0x34(%ebp),%eax <== NOT EXECUTED
125068: 39 f8 cmp %edi,%eax <== NOT EXECUTED
12506a: 76 02 jbe 12506e <fat_file_write+0x14d> <== NOT EXECUTED
12506c: 89 f8 mov %edi,%eax <== NOT EXECUTED
sec = fat_cluster_num_to_sector_num(mt_entry, cur_cln);
12506e: 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;
125071: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
125074: 8b 51 34 mov 0x34(%ecx),%edx <== NOT EXECUTED
if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) )
125077: 85 f6 test %esi,%esi <== NOT EXECUTED
125079: 75 0b jne 125086 <fat_file_write+0x165> <== NOT EXECUTED
12507b: f6 42 0a 03 testb $0x3,0xa(%edx) <== NOT EXECUTED
12507f: 74 05 je 125086 <fat_file_write+0x165> <== NOT EXECUTED
return fs_info->vol.rdir_loc;
125081: 8b 72 1c mov 0x1c(%edx),%esi <== NOT EXECUTED
125084: eb 0c jmp 125092 <fat_file_write+0x171> <== NOT EXECUTED
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
125086: 83 ee 02 sub $0x2,%esi <== NOT EXECUTED
125089: 0f b6 4a 05 movzbl 0x5(%edx),%ecx <== NOT EXECUTED
12508d: d3 e6 shl %cl,%esi <== NOT EXECUTED
12508f: 03 72 30 add 0x30(%edx),%esi <== NOT EXECUTED
sec += (ofs >> fs_info->vol.sec_log2);
125092: 0f b6 4b 02 movzbl 0x2(%ebx),%ecx <== NOT EXECUTED
125096: 8b 55 cc mov -0x34(%ebp),%edx <== NOT EXECUTED
125099: d3 ea shr %cl,%edx <== NOT EXECUTED
12509b: 01 d6 add %edx,%esi <== NOT EXECUTED
byte = ofs & (fs_info->vol.bps - 1);
12509d: 0f b7 13 movzwl (%ebx),%edx <== NOT EXECUTED
1250a0: 4a dec %edx <== NOT EXECUTED
1250a1: 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));
1250a4: 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);
1250a7: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1250aa: 8b 4d 18 mov 0x18(%ebp),%ecx <== NOT EXECUTED
1250ad: 03 4d d4 add -0x2c(%ebp),%ecx <== NOT EXECUTED
1250b0: 51 push %ecx <== NOT EXECUTED
1250b1: 50 push %eax <== NOT EXECUTED
1250b2: 52 push %edx <== NOT EXECUTED
1250b3: 56 push %esi <== NOT EXECUTED
1250b4: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
1250b7: e8 c4 08 00 00 call 125980 <_fat_block_write> <== NOT EXECUTED
if ( ret < 0 )
1250bc: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
1250bf: 85 c0 test %eax,%eax <== NOT EXECUTED
1250c1: 78 55 js 125118 <fat_file_write+0x1f7> <== NOT EXECUTED
return -1;
count -= c;
1250c3: 8b 75 e0 mov -0x20(%ebp),%esi <== NOT EXECUTED
cmpltd += c;
save_cln = cur_cln;
1250c6: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln);
1250c9: 51 push %ecx <== NOT EXECUTED
1250ca: 8d 4d e4 lea -0x1c(%ebp),%ecx <== NOT EXECUTED
1250cd: 51 push %ecx <== NOT EXECUTED
1250ce: 52 push %edx <== NOT EXECUTED
1250cf: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
1250d2: 89 55 c0 mov %edx,-0x40(%ebp) <== NOT EXECUTED
1250d5: e8 3b 48 01 00 call 139915 <fat_get_fat_cluster> <== NOT EXECUTED
if ( rc != RC_OK )
1250da: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1250dd: 85 c0 test %eax,%eax <== NOT EXECUTED
1250df: 8b 55 c0 mov -0x40(%ebp),%edx <== NOT EXECUTED
1250e2: 75 37 jne 12511b <fat_file_write+0x1fa> <== NOT EXECUTED
ret = _fat_block_write(mt_entry, sec, byte, c, buf + cmpltd);
if ( ret < 0 )
return -1;
count -= c;
1250e4: 29 f7 sub %esi,%edi <== NOT EXECUTED
cmpltd += c;
1250e6: 01 75 d4 add %esi,-0x2c(%ebp) <== NOT EXECUTED
1250e9: 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)
1250f0: 85 ff test %edi,%edi <== NOT EXECUTED
1250f2: 0f 85 69 ff ff ff jne 125061 <fat_file_write+0x140> <== NOT EXECUTED
1250f8: 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 +
1250fb: 8b 4d d0 mov -0x30(%ebp),%ecx <== NOT EXECUTED
1250fe: 8b 7d d4 mov -0x2c(%ebp),%edi <== NOT EXECUTED
125101: 8d 44 39 ff lea -0x1(%ecx,%edi,1),%eax <== NOT EXECUTED
125105: 0f b6 4b 08 movzbl 0x8(%ebx),%ecx <== NOT EXECUTED
125109: d3 e8 shr %cl,%eax <== NOT EXECUTED
12510b: 03 45 c8 add -0x38(%ebp),%eax <== NOT EXECUTED
12510e: 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;
125111: 89 56 38 mov %edx,0x38(%esi) <== NOT EXECUTED
return cmpltd;
125114: 89 f8 mov %edi,%eax <== NOT EXECUTED
125116: eb 03 jmp 12511b <fat_file_write+0x1fa> <== NOT EXECUTED
125118: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
}
12511b: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
12511e: 5b pop %ebx <== NOT EXECUTED
12511f: 5e pop %esi <== NOT EXECUTED
125120: 5f pop %edi <== NOT EXECUTED
125121: c9 leave <== NOT EXECUTED
125122: c3 ret <== NOT EXECUTED
00139a7f <fat_free_fat_clusters_chain>:
int
fat_free_fat_clusters_chain(
rtems_filesystem_mount_table_entry_t *mt_entry,
uint32_t chain
)
{
139a7f: 55 push %ebp <== NOT EXECUTED
139a80: 89 e5 mov %esp,%ebp <== NOT EXECUTED
139a82: 57 push %edi <== NOT EXECUTED
139a83: 56 push %esi <== NOT EXECUTED
139a84: 53 push %ebx <== NOT EXECUTED
139a85: 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;
139a88: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
139a8b: 8b 58 34 mov 0x34(%eax),%ebx <== NOT EXECUTED
uint32_t cur_cln = chain;
uint32_t next_cln = 0;
139a8e: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) <== NOT EXECUTED
139a95: 8b 75 0c mov 0xc(%ebp),%esi <== NOT EXECUTED
139a98: c7 45 d4 00 00 00 00 movl $0x0,-0x2c(%ebp) <== NOT EXECUTED
139a9f: 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)
139aa6: eb 4c jmp 139af4 <fat_free_fat_clusters_chain+0x75><== NOT EXECUTED
{
rc = fat_get_fat_cluster(mt_entry, cur_cln, &next_cln);
139aa8: 52 push %edx <== NOT EXECUTED
139aa9: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
139aac: 50 push %eax <== NOT EXECUTED
139aad: 56 push %esi <== NOT EXECUTED
139aae: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
139ab1: e8 5f fe ff ff call 139915 <fat_get_fat_cluster> <== NOT EXECUTED
139ab6: 89 c7 mov %eax,%edi <== NOT EXECUTED
if ( rc != RC_OK )
139ab8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
139abb: 85 c0 test %eax,%eax <== NOT EXECUTED
139abd: 74 19 je 139ad8 <fat_free_fat_clusters_chain+0x59><== NOT EXECUTED
{
if(fs_info->vol.free_cls != FAT_UNDEFINED_VALUE)
139abf: 8b 43 40 mov 0x40(%ebx),%eax <== NOT EXECUTED
139ac2: 83 f8 ff cmp $0xffffffff,%eax <== NOT EXECUTED
139ac5: 74 06 je 139acd <fat_free_fat_clusters_chain+0x4e><== NOT EXECUTED
fs_info->vol.free_cls += freed_cls_cnt;
139ac7: 03 45 d4 add -0x2c(%ebp),%eax <== NOT EXECUTED
139aca: 89 43 40 mov %eax,0x40(%ebx) <== NOT EXECUTED
fat_buf_release(fs_info);
139acd: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
139ad0: 53 push %ebx <== NOT EXECUTED
139ad1: e8 91 bb fe ff call 125667 <fat_buf_release> <== NOT EXECUTED
139ad6: eb 46 jmp 139b1e <fat_free_fat_clusters_chain+0x9f><== NOT EXECUTED
return rc;
}
rc = fat_set_fat_cluster(mt_entry, cur_cln, FAT_GENFAT_FREE);
139ad8: 50 push %eax <== NOT EXECUTED
139ad9: 6a 00 push $0x0 <== NOT EXECUTED
139adb: 56 push %esi <== NOT EXECUTED
139adc: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
139adf: e8 18 fc ff ff call 1396fc <fat_set_fat_cluster> <== NOT EXECUTED
if ( rc != RC_OK )
139ae4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
139ae7: 85 c0 test %eax,%eax <== NOT EXECUTED
139ae9: 74 03 je 139aee <fat_free_fat_clusters_chain+0x6f><== NOT EXECUTED
139aeb: 89 45 d0 mov %eax,-0x30(%ebp) <== NOT EXECUTED
rc1 = rc;
freed_cls_cnt++;
139aee: ff 45 d4 incl -0x2c(%ebp) <== NOT EXECUTED
cur_cln = next_cln;
139af1: 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)
139af4: 8b 43 0c mov 0xc(%ebx),%eax <== NOT EXECUTED
139af7: 21 f0 and %esi,%eax <== NOT EXECUTED
139af9: 3b 43 10 cmp 0x10(%ebx),%eax <== NOT EXECUTED
139afc: 72 aa jb 139aa8 <fat_free_fat_clusters_chain+0x29><== NOT EXECUTED
freed_cls_cnt++;
cur_cln = next_cln;
}
fs_info->vol.next_cl = chain;
139afe: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
139b01: 89 43 44 mov %eax,0x44(%ebx) <== NOT EXECUTED
if (fs_info->vol.free_cls != FAT_UNDEFINED_VALUE)
139b04: 8b 43 40 mov 0x40(%ebx),%eax <== NOT EXECUTED
139b07: 83 f8 ff cmp $0xffffffff,%eax <== NOT EXECUTED
139b0a: 74 06 je 139b12 <fat_free_fat_clusters_chain+0x93><== NOT EXECUTED
fs_info->vol.free_cls += freed_cls_cnt;
139b0c: 03 45 d4 add -0x2c(%ebp),%eax <== NOT EXECUTED
139b0f: 89 43 40 mov %eax,0x40(%ebx) <== NOT EXECUTED
fat_buf_release(fs_info);
139b12: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
139b15: 53 push %ebx <== NOT EXECUTED
139b16: e8 4c bb fe ff call 125667 <fat_buf_release> <== NOT EXECUTED
139b1b: 8b 7d d0 mov -0x30(%ebp),%edi <== NOT EXECUTED
139b1e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
if (rc1 != RC_OK)
return rc1;
return RC_OK;
}
139b21: 89 f8 mov %edi,%eax <== NOT EXECUTED
139b23: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
139b26: 5b pop %ebx <== NOT EXECUTED
139b27: 5e pop %esi <== NOT EXECUTED
139b28: 5f pop %edi <== NOT EXECUTED
139b29: c9 leave <== NOT EXECUTED
139b2a: c3 ret <== NOT EXECUTED
00125590 <fat_free_unique_ino>:
void
fat_free_unique_ino(
rtems_filesystem_mount_table_entry_t *mt_entry,
uint32_t ino
)
{
125590: 55 push %ebp <== NOT EXECUTED
125591: 89 e5 mov %esp,%ebp <== NOT EXECUTED
125593: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED
fat_fs_info_t *fs_info = mt_entry->fs_info;
125596: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
125599: 8b 50 34 mov 0x34(%eax),%edx <== NOT EXECUTED
FAT_SET_UNIQ_INO_FREE((ino - fs_info->uino_base), fs_info->uino);
12559c: 2b 4a 78 sub 0x78(%edx),%ecx <== NOT EXECUTED
12559f: 89 c8 mov %ecx,%eax <== NOT EXECUTED
1255a1: c1 e8 03 shr $0x3,%eax <== NOT EXECUTED
1255a4: 03 42 6c add 0x6c(%edx),%eax <== NOT EXECUTED
1255a7: 83 e1 07 and $0x7,%ecx <== NOT EXECUTED
1255aa: ba 01 00 00 00 mov $0x1,%edx <== NOT EXECUTED
1255af: d3 e2 shl %cl,%edx <== NOT EXECUTED
1255b1: f7 d2 not %edx <== NOT EXECUTED
1255b3: 20 10 and %dl,(%eax) <== NOT EXECUTED
}
1255b5: c9 leave <== NOT EXECUTED
1255b6: c3 ret <== NOT EXECUTED
00139915 <fat_get_fat_cluster>:
fat_get_fat_cluster(
rtems_filesystem_mount_table_entry_t *mt_entry,
uint32_t cln,
uint32_t *ret_val
)
{
139915: 55 push %ebp <== NOT EXECUTED
139916: 89 e5 mov %esp,%ebp <== NOT EXECUTED
139918: 57 push %edi <== NOT EXECUTED
139919: 56 push %esi <== NOT EXECUTED
13991a: 53 push %ebx <== NOT EXECUTED
13991b: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED
13991e: 8b 7d 0c mov 0xc(%ebp),%edi <== NOT EXECUTED
139921: 8b 5d 10 mov 0x10(%ebp),%ebx <== NOT EXECUTED
int rc = RC_OK;
register fat_fs_info_t *fs_info = mt_entry->fs_info;
139924: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
139927: 8b 70 34 mov 0x34(%eax),%esi <== NOT EXECUTED
rtems_bdbuf_buffer *block0 = NULL;
13992a: 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)) )
139931: 83 ff 01 cmp $0x1,%edi <== NOT EXECUTED
139934: 0f 86 2d 01 00 00 jbe 139a67 <fat_get_fat_cluster+0x152><== NOT EXECUTED
13993a: 8b 46 34 mov 0x34(%esi),%eax <== NOT EXECUTED
13993d: 40 inc %eax <== NOT EXECUTED
13993e: 39 c7 cmp %eax,%edi <== NOT EXECUTED
139940: 0f 87 21 01 00 00 ja 139a67 <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) +
139946: 0f b6 56 0a movzbl 0xa(%esi),%edx <== NOT EXECUTED
13994a: 89 d0 mov %edx,%eax <== NOT EXECUTED
13994c: 83 e0 01 and $0x1,%eax <== NOT EXECUTED
13994f: 89 45 d4 mov %eax,-0x2c(%ebp) <== NOT EXECUTED
139952: 74 08 je 13995c <fat_get_fat_cluster+0x47><== NOT EXECUTED
139954: 89 f8 mov %edi,%eax <== NOT EXECUTED
139956: d1 e8 shr %eax <== NOT EXECUTED
139958: 01 f8 add %edi,%eax <== NOT EXECUTED
13995a: eb 0f jmp 13996b <fat_get_fat_cluster+0x56><== NOT EXECUTED
13995c: 8d 04 3f lea (%edi,%edi,1),%eax <== NOT EXECUTED
13995f: f6 c2 02 test $0x2,%dl <== NOT EXECUTED
139962: 75 07 jne 13996b <fat_get_fat_cluster+0x56><== NOT EXECUTED
139964: 8d 04 bd 00 00 00 00 lea 0x0(,%edi,4),%eax <== NOT EXECUTED
13996b: 0f b6 4e 02 movzbl 0x2(%esi),%ecx <== NOT EXECUTED
13996f: d3 e8 shr %cl,%eax <== NOT EXECUTED
139971: 8b 4e 4c mov 0x4c(%esi),%ecx <== NOT EXECUTED
139974: 01 c8 add %ecx,%eax <== NOT EXECUTED
139976: 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);
139979: 83 7d d4 00 cmpl $0x0,-0x2c(%ebp) <== NOT EXECUTED
13997d: 74 08 je 139987 <fat_get_fat_cluster+0x72><== NOT EXECUTED
13997f: 89 f9 mov %edi,%ecx <== NOT EXECUTED
139981: d1 e9 shr %ecx <== NOT EXECUTED
139983: 01 f9 add %edi,%ecx <== NOT EXECUTED
139985: eb 11 jmp 139998 <fat_get_fat_cluster+0x83><== NOT EXECUTED
139987: 80 e2 02 and $0x2,%dl <== NOT EXECUTED
13998a: 74 05 je 139991 <fat_get_fat_cluster+0x7c><== NOT EXECUTED
13998c: 8d 0c 3f lea (%edi,%edi,1),%ecx <== NOT EXECUTED
13998f: eb 07 jmp 139998 <fat_get_fat_cluster+0x83><== NOT EXECUTED
139991: 8d 0c bd 00 00 00 00 lea 0x0(,%edi,4),%ecx <== NOT EXECUTED
139998: 8b 06 mov (%esi),%eax <== NOT EXECUTED
13999a: 66 89 45 d4 mov %ax,-0x2c(%ebp) <== NOT EXECUTED
rc = fat_buf_access(fs_info, sec, FAT_OP_TYPE_READ, &block0);
13999e: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
1399a1: 50 push %eax <== NOT EXECUTED
1399a2: 6a 01 push $0x1 <== NOT EXECUTED
1399a4: ff 75 d0 pushl -0x30(%ebp) <== NOT EXECUTED
1399a7: 56 push %esi <== NOT EXECUTED
1399a8: 89 4d c8 mov %ecx,-0x38(%ebp) <== NOT EXECUTED
1399ab: e8 fe bd fe ff call 1257ae <fat_buf_access> <== NOT EXECUTED
1399b0: 89 c2 mov %eax,%edx <== NOT EXECUTED
if (rc != RC_OK)
1399b2: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1399b5: 85 c0 test %eax,%eax <== NOT EXECUTED
1399b7: 8b 4d c8 mov -0x38(%ebp),%ecx <== NOT EXECUTED
1399ba: 0f 85 b5 00 00 00 jne 139a75 <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);
1399c0: 0f b7 45 d4 movzwl -0x2c(%ebp),%eax <== NOT EXECUTED
1399c4: 48 dec %eax <== NOT EXECUTED
1399c5: 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 )
1399c7: 8a 4e 0a mov 0xa(%esi),%cl <== NOT EXECUTED
1399ca: 80 f9 02 cmp $0x2,%cl <== NOT EXECUTED
1399cd: 74 7f je 139a4e <fat_get_fat_cluster+0x139><== NOT EXECUTED
1399cf: 80 f9 04 cmp $0x4,%cl <== NOT EXECUTED
1399d2: 0f 84 82 00 00 00 je 139a5a <fat_get_fat_cluster+0x145><== NOT EXECUTED
1399d8: fe c9 dec %cl <== NOT EXECUTED
1399da: 0f 85 87 00 00 00 jne 139a67 <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)));
1399e0: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED
1399e3: 8b 49 20 mov 0x20(%ecx),%ecx <== NOT EXECUTED
1399e6: 89 4d cc mov %ecx,-0x34(%ebp) <== NOT EXECUTED
1399e9: 0f b6 0c 01 movzbl (%ecx,%eax,1),%ecx <== NOT EXECUTED
1399ed: 89 4d d4 mov %ecx,-0x2c(%ebp) <== NOT EXECUTED
1399f0: 89 0b mov %ecx,(%ebx) <== NOT EXECUTED
if ( ofs == (fs_info->vol.bps - 1) )
1399f2: 0f b7 0e movzwl (%esi),%ecx <== NOT EXECUTED
1399f5: 49 dec %ecx <== NOT EXECUTED
1399f6: 39 c8 cmp %ecx,%eax <== NOT EXECUTED
1399f8: 75 32 jne 139a2c <fat_get_fat_cluster+0x117><== NOT EXECUTED
{
rc = fat_buf_access(fs_info, sec + 1, FAT_OP_TYPE_READ,
1399fa: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
1399fd: 50 push %eax <== NOT EXECUTED
1399fe: 6a 01 push $0x1 <== NOT EXECUTED
139a00: 8b 45 d0 mov -0x30(%ebp),%eax <== NOT EXECUTED
139a03: 40 inc %eax <== NOT EXECUTED
139a04: 50 push %eax <== NOT EXECUTED
139a05: 56 push %esi <== NOT EXECUTED
139a06: 89 55 c8 mov %edx,-0x38(%ebp) <== NOT EXECUTED
139a09: e8 a0 bd fe ff call 1257ae <fat_buf_access> <== NOT EXECUTED
&block0);
if (rc != RC_OK)
139a0e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
139a11: 85 c0 test %eax,%eax <== NOT EXECUTED
139a13: 8b 55 c8 mov -0x38(%ebp),%edx <== NOT EXECUTED
139a16: 74 04 je 139a1c <fat_get_fat_cluster+0x107><== NOT EXECUTED
139a18: 89 c2 mov %eax,%edx <== NOT EXECUTED
139a1a: eb 59 jmp 139a75 <fat_get_fat_cluster+0x160><== NOT EXECUTED
return rc;
*ret_val |= (*((uint8_t *)(block0->buffer)))<<8;
139a1c: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
139a1f: 8b 40 20 mov 0x20(%eax),%eax <== NOT EXECUTED
139a22: 0f b6 00 movzbl (%eax),%eax <== NOT EXECUTED
139a25: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
139a28: 09 03 or %eax,(%ebx) <== NOT EXECUTED
139a2a: eb 10 jmp 139a3c <fat_get_fat_cluster+0x127><== NOT EXECUTED
}
else
{
*ret_val |= (*((uint8_t *)(block0->buffer + ofs + 1)))<<8;
139a2c: 8b 4d cc mov -0x34(%ebp),%ecx <== NOT EXECUTED
139a2f: 0f b6 44 01 01 movzbl 0x1(%ecx,%eax,1),%eax <== NOT EXECUTED
139a34: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
139a37: 0b 45 d4 or -0x2c(%ebp),%eax <== NOT EXECUTED
139a3a: 89 03 mov %eax,(%ebx) <== NOT EXECUTED
}
if ( FAT_CLUSTER_IS_ODD(cln) )
139a3c: 83 e7 01 and $0x1,%edi <== NOT EXECUTED
139a3f: 74 05 je 139a46 <fat_get_fat_cluster+0x131><== NOT EXECUTED
*ret_val = (*ret_val) >> FAT12_SHIFT;
139a41: c1 2b 04 shrl $0x4,(%ebx) <== NOT EXECUTED
139a44: eb 2f jmp 139a75 <fat_get_fat_cluster+0x160><== NOT EXECUTED
else
*ret_val = (*ret_val) & FAT_FAT12_MASK;
139a46: 81 23 ff 0f 00 00 andl $0xfff,(%ebx) <== NOT EXECUTED
139a4c: eb 27 jmp 139a75 <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);
139a4e: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED
139a51: 8b 49 20 mov 0x20(%ecx),%ecx <== NOT EXECUTED
139a54: 0f b7 04 01 movzwl (%ecx,%eax,1),%eax <== NOT EXECUTED
139a58: eb 09 jmp 139a63 <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);
139a5a: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED
139a5d: 8b 49 20 mov 0x20(%ecx),%ecx <== NOT EXECUTED
139a60: 8b 04 01 mov (%ecx,%eax,1),%eax <== NOT EXECUTED
139a63: 89 03 mov %eax,(%ebx) <== NOT EXECUTED
break;
139a65: eb 0e jmp 139a75 <fat_get_fat_cluster+0x160><== NOT EXECUTED
default:
rtems_set_errno_and_return_minus_one(EIO);
139a67: e8 2c 33 00 00 call 13cd98 <__errno> <== NOT EXECUTED
139a6c: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
139a72: 83 ca ff or $0xffffffff,%edx <== NOT EXECUTED
break;
}
return RC_OK;
}
139a75: 89 d0 mov %edx,%eax <== NOT EXECUTED
139a77: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
139a7a: 5b pop %ebx <== NOT EXECUTED
139a7b: 5e pop %esi <== NOT EXECUTED
139a7c: 5f pop %edi <== NOT EXECUTED
139a7d: c9 leave <== NOT EXECUTED
139a7e: c3 ret <== NOT EXECUTED
001255cb <fat_get_unique_ino>:
* 0 means FAILED !!!
*
*/
uint32_t
fat_get_unique_ino(rtems_filesystem_mount_table_entry_t *mt_entry)
{
1255cb: 55 push %ebp <== NOT EXECUTED
1255cc: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1255ce: 57 push %edi <== NOT EXECUTED
1255cf: 56 push %esi <== NOT EXECUTED
1255d0: 53 push %ebx <== NOT EXECUTED
1255d1: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
register fat_fs_info_t *fs_info = mt_entry->fs_info;
1255d4: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
1255d7: 8b 58 34 mov 0x34(%eax),%ebx <== NOT EXECUTED
1255da: eb 77 jmp 125653 <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))
1255dc: 8b 73 70 mov 0x70(%ebx),%esi <== NOT EXECUTED
1255df: 89 f0 mov %esi,%eax <== NOT EXECUTED
1255e1: c1 e8 03 shr $0x3,%eax <== NOT EXECUTED
1255e4: 03 43 6c add 0x6c(%ebx),%eax <== NOT EXECUTED
1255e7: 8a 08 mov (%eax),%cl <== NOT EXECUTED
1255e9: 88 4d e3 mov %cl,-0x1d(%ebp) <== NOT EXECUTED
1255ec: 89 f1 mov %esi,%ecx <== NOT EXECUTED
1255ee: 83 e1 07 and $0x7,%ecx <== NOT EXECUTED
1255f1: 0f be 7d e3 movsbl -0x1d(%ebp),%edi <== NOT EXECUTED
1255f5: 0f a3 cf bt %ecx,%edi <== NOT EXECUTED
1255f8: 72 14 jb 12560e <fat_get_unique_ino+0x43><== NOT EXECUTED
{
FAT_SET_UNIQ_INO_BUSY(fs_info->index, fs_info->uino);
1255fa: ba 01 00 00 00 mov $0x1,%edx <== NOT EXECUTED
1255ff: d3 e2 shl %cl,%edx <== NOT EXECUTED
125601: 0a 55 e3 or -0x1d(%ebp),%dl <== NOT EXECUTED
125604: 88 10 mov %dl,(%eax) <== NOT EXECUTED
return (fs_info->uino_base + fs_info->index);
125606: 8b 43 70 mov 0x70(%ebx),%eax <== NOT EXECUTED
125609: 03 43 78 add 0x78(%ebx),%eax <== NOT EXECUTED
12560c: eb 51 jmp 12565f <fat_get_unique_ino+0x94><== NOT EXECUTED
}
fs_info->index++;
12560e: 46 inc %esi <== NOT EXECUTED
12560f: 89 73 70 mov %esi,0x70(%ebx) <== NOT EXECUTED
if (fs_info->index >= fs_info->uino_pool_size)
125612: 3b 73 74 cmp 0x74(%ebx),%esi <== NOT EXECUTED
125615: 72 07 jb 12561e <fat_get_unique_ino+0x53><== NOT EXECUTED
fs_info->index = 0;
125617: 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++)
12561e: 42 inc %edx <== NOT EXECUTED
12561f: 3b 55 e4 cmp -0x1c(%ebp),%edx <== NOT EXECUTED
125622: 72 b8 jb 1255dc <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))
125624: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
125627: d1 e0 shl %eax <== NOT EXECUTED
125629: ba ff ff ff 0f mov $0xfffffff,%edx <== NOT EXECUTED
12562e: 2b 53 78 sub 0x78(%ebx),%edx <== NOT EXECUTED
125631: 39 d0 cmp %edx,%eax <== NOT EXECUTED
125633: 73 28 jae 12565d <fat_get_unique_ino+0x92><== NOT EXECUTED
{
fs_info->uino_pool_size <<= 1;
125635: 89 43 74 mov %eax,0x74(%ebx) <== NOT EXECUTED
fs_info->uino = realloc(fs_info->uino, fs_info->uino_pool_size);
125638: 52 push %edx <== NOT EXECUTED
125639: 52 push %edx <== NOT EXECUTED
12563a: 50 push %eax <== NOT EXECUTED
12563b: ff 73 6c pushl 0x6c(%ebx) <== NOT EXECUTED
12563e: e8 05 8a fe ff call 10e048 <realloc> <== NOT EXECUTED
125643: 89 43 6c mov %eax,0x6c(%ebx) <== NOT EXECUTED
if (fs_info->uino != NULL)
125646: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
125649: 85 c0 test %eax,%eax <== NOT EXECUTED
12564b: 74 10 je 12565d <fat_get_unique_ino+0x92><== NOT EXECUTED
fs_info->index = fs_info->uino_pool_size;
12564d: 8b 43 74 mov 0x74(%ebx),%eax <== NOT EXECUTED
125650: 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++)
125653: 8b 43 74 mov 0x74(%ebx),%eax <== NOT EXECUTED
125656: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
125659: 31 d2 xor %edx,%edx <== NOT EXECUTED
12565b: eb c2 jmp 12561f <fat_get_unique_ino+0x54><== NOT EXECUTED
12565d: 31 c0 xor %eax,%eax <== NOT EXECUTED
}
else
resrc_unsuff = true;
}
return 0;
}
12565f: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
125662: 5b pop %ebx <== NOT EXECUTED
125663: 5e pop %esi <== NOT EXECUTED
125664: 5f pop %edi <== NOT EXECUTED
125665: c9 leave <== NOT EXECUTED
125666: c3 ret <== NOT EXECUTED
00125bcf <fat_init_clusters_chain>:
int
fat_init_clusters_chain(
rtems_filesystem_mount_table_entry_t *mt_entry,
uint32_t start_cln
)
{
125bcf: 55 push %ebp <== NOT EXECUTED
125bd0: 89 e5 mov %esp,%ebp <== NOT EXECUTED
125bd2: 57 push %edi <== NOT EXECUTED
125bd3: 56 push %esi <== NOT EXECUTED
125bd4: 53 push %ebx <== NOT EXECUTED
125bd5: 83 ec 34 sub $0x34,%esp <== NOT EXECUTED
125bd8: 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;
125bdb: 8b 77 34 mov 0x34(%edi),%esi <== NOT EXECUTED
uint32_t cur_cln = start_cln;
125bde: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
125be1: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
char *buf;
buf = calloc(fs_info->vol.bpc, sizeof(char));
125be4: 6a 01 push $0x1 <== NOT EXECUTED
125be6: 0f b7 46 06 movzwl 0x6(%esi),%eax <== NOT EXECUTED
125bea: 50 push %eax <== NOT EXECUTED
125beb: e8 dc 6d fe ff call 10c9cc <calloc> <== NOT EXECUTED
125bf0: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if ( buf == NULL )
125bf2: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
125bf5: 85 c0 test %eax,%eax <== NOT EXECUTED
125bf7: 75 56 jne 125c4f <fat_init_clusters_chain+0x80><== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EIO );
125bf9: e8 9a 71 01 00 call 13cd98 <__errno> <== NOT EXECUTED
125bfe: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
125c04: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
125c07: eb 61 jmp 125c6a <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);
125c09: 52 push %edx <== NOT EXECUTED
125c0a: 53 push %ebx <== NOT EXECUTED
125c0b: 50 push %eax <== NOT EXECUTED
125c0c: 57 push %edi <== NOT EXECUTED
125c0d: e8 73 ff ff ff call 125b85 <fat_cluster_write> <== NOT EXECUTED
if ( ret == -1 )
125c12: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
125c15: 40 inc %eax <== NOT EXECUTED
125c16: 75 0e jne 125c26 <fat_init_clusters_chain+0x57><== NOT EXECUTED
{
free(buf);
125c18: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
125c1b: 53 push %ebx <== NOT EXECUTED
125c1c: e8 7b 72 fe ff call 10ce9c <free> <== NOT EXECUTED
125c21: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
125c24: eb 41 jmp 125c67 <fat_init_clusters_chain+0x98><== NOT EXECUTED
return -1;
}
rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln);
125c26: 51 push %ecx <== NOT EXECUTED
125c27: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
125c2a: 50 push %eax <== NOT EXECUTED
125c2b: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
125c2e: 57 push %edi <== NOT EXECUTED
125c2f: e8 e1 3c 01 00 call 139915 <fat_get_fat_cluster> <== NOT EXECUTED
if ( rc != RC_OK )
125c34: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
125c37: 85 c0 test %eax,%eax <== NOT EXECUTED
125c39: 74 14 je 125c4f <fat_init_clusters_chain+0x80><== NOT EXECUTED
{
free(buf);
125c3b: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
125c3e: 53 push %ebx <== NOT EXECUTED
125c3f: 89 45 d4 mov %eax,-0x2c(%ebp) <== NOT EXECUTED
125c42: e8 55 72 fe ff call 10ce9c <free> <== NOT EXECUTED
return rc;
125c47: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
125c4a: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED
125c4d: eb 1b jmp 125c6a <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)
125c4f: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
125c52: 8b 56 0c mov 0xc(%esi),%edx <== NOT EXECUTED
125c55: 21 c2 and %eax,%edx <== NOT EXECUTED
125c57: 3b 56 10 cmp 0x10(%esi),%edx <== NOT EXECUTED
125c5a: 72 ad jb 125c09 <fat_init_clusters_chain+0x3a><== NOT EXECUTED
free(buf);
return rc;
}
}
free(buf);
125c5c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
125c5f: 53 push %ebx <== NOT EXECUTED
125c60: e8 37 72 fe ff call 10ce9c <free> <== NOT EXECUTED
125c65: 31 c0 xor %eax,%eax <== NOT EXECUTED
return rc;
125c67: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
125c6a: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
125c6d: 5b pop %ebx <== NOT EXECUTED
125c6e: 5e pop %esi <== NOT EXECUTED
125c6f: 5f pop %edi <== NOT EXECUTED
125c70: c9 leave <== NOT EXECUTED
125c71: c3 ret <== NOT EXECUTED
00125cf9 <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)
{
125cf9: 55 push %ebp <== NOT EXECUTED
125cfa: 89 e5 mov %esp,%ebp <== NOT EXECUTED
125cfc: 57 push %edi <== NOT EXECUTED
125cfd: 56 push %esi <== NOT EXECUTED
125cfe: 53 push %ebx <== NOT EXECUTED
125cff: 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;
125d05: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
125d08: 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;
125d0b: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) <== NOT EXECUTED
rc = stat(mt_entry->dev, &stat_buf);
125d12: 8d 45 90 lea -0x70(%ebp),%eax <== NOT EXECUTED
125d15: 50 push %eax <== NOT EXECUTED
125d16: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
125d19: ff 70 70 pushl 0x70(%eax) <== NOT EXECUTED
125d1c: e8 cb 85 fe ff call 10e2ec <stat> <== NOT EXECUTED
125d21: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc == -1)
125d23: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
125d26: 83 f8 ff cmp $0xffffffff,%eax <== NOT EXECUTED
125d29: 0f 84 b2 05 00 00 je 1262e1 <fat_init_volume_info+0x5e8><== NOT EXECUTED
return rc;
/* Must be a block device. */
if (!S_ISBLK(stat_buf.st_mode))
125d2f: 8b 45 9c mov -0x64(%ebp),%eax <== NOT EXECUTED
125d32: 25 00 f0 00 00 and $0xf000,%eax <== NOT EXECUTED
125d37: 3d 00 60 00 00 cmp $0x6000,%eax <== NOT EXECUTED
125d3c: 74 0d je 125d4b <fat_init_volume_info+0x52><== NOT EXECUTED
rtems_set_errno_and_return_minus_one(ENOTTY);
125d3e: e8 55 70 01 00 call 13cd98 <__errno> <== NOT EXECUTED
125d43: c7 00 19 00 00 00 movl $0x19,(%eax) <== NOT EXECUTED
125d49: eb 22 jmp 125d6d <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);
125d4b: 56 push %esi <== NOT EXECUTED
125d4c: 56 push %esi <== NOT EXECUTED
125d4d: ff 75 ac pushl -0x54(%ebp) <== NOT EXECUTED
125d50: ff 75 a8 pushl -0x58(%ebp) <== NOT EXECUTED
125d53: e8 95 5f fe ff call 10bced <rtems_disk_obtain> <== NOT EXECUTED
125d58: 89 43 5c mov %eax,0x5c(%ebx) <== NOT EXECUTED
if (vol->dd == NULL)
125d5b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
125d5e: 85 c0 test %eax,%eax <== NOT EXECUTED
125d60: 75 13 jne 125d75 <fat_init_volume_info+0x7c><== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
125d62: e8 31 70 01 00 call 13cd98 <__errno> <== NOT EXECUTED
125d67: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
125d6d: 83 ce ff or $0xffffffff,%esi <== NOT EXECUTED
125d70: e9 6c 05 00 00 jmp 1262e1 <fat_init_volume_info+0x5e8><== NOT EXECUTED
vol->dev = stat_buf.st_rdev;
125d75: 8b 45 a8 mov -0x58(%ebp),%eax <== NOT EXECUTED
125d78: 8b 55 ac mov -0x54(%ebp),%edx <== NOT EXECUTED
125d7b: 89 43 54 mov %eax,0x54(%ebx) <== NOT EXECUTED
125d7e: 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);
125d81: 8d 4d e4 lea -0x1c(%ebp),%ecx <== NOT EXECUTED
125d84: 51 push %ecx <== NOT EXECUTED
125d85: 6a 00 push $0x0 <== NOT EXECUTED
125d87: 52 push %edx <== NOT EXECUTED
125d88: 50 push %eax <== NOT EXECUTED
125d89: e8 86 51 fe ff call 10af14 <rtems_bdbuf_read> <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
125d8e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
125d91: 85 c0 test %eax,%eax <== NOT EXECUTED
125d93: 75 25 jne 125dba <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);
125d95: 8d 95 36 ff ff ff lea -0xca(%ebp),%edx <== NOT EXECUTED
125d9b: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
125d9e: 8b 70 20 mov 0x20(%eax),%esi <== NOT EXECUTED
125da1: b9 5a 00 00 00 mov $0x5a,%ecx <== NOT EXECUTED
125da6: 89 d7 mov %edx,%edi <== NOT EXECUTED
125da8: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
sc = rtems_bdbuf_release( block);
125daa: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
125dad: 50 push %eax <== NOT EXECUTED
125dae: e8 c4 42 fe ff call 10a077 <rtems_bdbuf_release> <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
125db3: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
125db6: 85 c0 test %eax,%eax <== NOT EXECUTED
125db8: 74 1b je 125dd5 <fat_init_volume_info+0xdc><== NOT EXECUTED
{
rtems_disk_release(vol->dd);
125dba: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
125dbd: ff 73 5c pushl 0x5c(%ebx) <== NOT EXECUTED
125dc0: e8 af 60 fe ff call 10be74 <rtems_disk_release> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EIO );
125dc5: e8 ce 6f 01 00 call 13cd98 <__errno> <== NOT EXECUTED
125dca: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
125dd0: e9 06 05 00 00 jmp 1262db <fat_init_volume_info+0x5e2><== NOT EXECUTED
}
/* Evaluate boot record */
vol->bps = FAT_GET_BR_BYTES_PER_SECTOR(boot_rec);
125dd5: 0f b6 95 42 ff ff ff movzbl -0xbe(%ebp),%edx <== NOT EXECUTED
125ddc: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
125ddf: 0f b6 85 41 ff ff ff movzbl -0xbf(%ebp),%eax <== NOT EXECUTED
125de6: 09 d0 or %edx,%eax <== NOT EXECUTED
125de8: 66 89 03 mov %ax,(%ebx) <== NOT EXECUTED
if ( (vol->bps != 512) &&
125deb: 66 3d 00 04 cmp $0x400,%ax <== NOT EXECUTED
125def: 74 16 je 125e07 <fat_init_volume_info+0x10e><== NOT EXECUTED
125df1: 66 3d 00 02 cmp $0x200,%ax <== NOT EXECUTED
125df5: 74 10 je 125e07 <fat_init_volume_info+0x10e><== NOT EXECUTED
125df7: 66 3d 00 08 cmp $0x800,%ax <== NOT EXECUTED
125dfb: 74 0a je 125e07 <fat_init_volume_info+0x10e><== NOT EXECUTED
125dfd: 66 3d 00 10 cmp $0x1000,%ax <== NOT EXECUTED
125e01: 0f 85 43 02 00 00 jne 12604a <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;
125e07: c6 43 03 00 movb $0x0,0x3(%ebx) <== NOT EXECUTED
125e0b: 66 c1 e8 09 shr $0x9,%ax <== NOT EXECUTED
125e0f: 0f b7 c0 movzwl %ax,%eax <== NOT EXECUTED
125e12: eb 05 jmp 125e19 <fat_init_volume_info+0x120><== NOT EXECUTED
i >>= 1, vol->sec_mul++);
125e14: d1 f8 sar %eax <== NOT EXECUTED
125e16: 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;
125e19: a8 01 test $0x1,%al <== NOT EXECUTED
125e1b: 74 f7 je 125e14 <fat_init_volume_info+0x11b><== NOT EXECUTED
i >>= 1, vol->sec_mul++);
for (vol->sec_log2 = 0, i = vol->bps; (i & 1) == 0;
125e1d: c6 43 02 00 movb $0x0,0x2(%ebx) <== NOT EXECUTED
125e21: 0f b7 03 movzwl (%ebx),%eax <== NOT EXECUTED
125e24: eb 05 jmp 125e2b <fat_init_volume_info+0x132><== NOT EXECUTED
i >>= 1, vol->sec_log2++);
125e26: d1 f8 sar %eax <== NOT EXECUTED
125e28: 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;
125e2b: a8 01 test $0x1,%al <== NOT EXECUTED
125e2d: 74 f7 je 125e26 <fat_init_volume_info+0x12d><== NOT EXECUTED
if ( (ret1 < 0) || (ret2 < 0) )
return -1;
return RC_OK;
}
125e2f: 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);
125e35: 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)
125e38: 84 c0 test %al,%al <== NOT EXECUTED
125e3a: 0f 84 0a 02 00 00 je 12604a <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;
125e40: c6 43 05 00 movb $0x0,0x5(%ebx) <== NOT EXECUTED
125e44: 0f b6 c0 movzbl %al,%eax <== NOT EXECUTED
125e47: eb 05 jmp 125e4e <fat_init_volume_info+0x155><== NOT EXECUTED
i >>= 1, vol->spc_log2++);
125e49: d1 f8 sar %eax <== NOT EXECUTED
125e4b: 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;
125e4e: a8 01 test $0x1,%al <== NOT EXECUTED
125e50: 74 f7 je 125e49 <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)
125e52: 0f b7 03 movzwl (%ebx),%eax <== NOT EXECUTED
125e55: 0f b6 4b 05 movzbl 0x5(%ebx),%ecx <== NOT EXECUTED
125e59: d3 e0 shl %cl,%eax <== NOT EXECUTED
125e5b: 66 89 43 06 mov %ax,0x6(%ebx) <== NOT EXECUTED
125e5f: 66 3d 00 80 cmp $0x8000,%ax <== NOT EXECUTED
125e63: 0f 87 e1 01 00 00 ja 12604a <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;
125e69: c6 43 08 00 movb $0x0,0x8(%ebx) <== NOT EXECUTED
125e6d: 0f b7 c0 movzwl %ax,%eax <== NOT EXECUTED
125e70: eb 05 jmp 125e77 <fat_init_volume_info+0x17e><== NOT EXECUTED
i >>= 1, vol->bpc_log2++);
125e72: d1 f8 sar %eax <== NOT EXECUTED
125e74: 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;
125e77: a8 01 test $0x1,%al <== NOT EXECUTED
125e79: 74 f7 je 125e72 <fat_init_volume_info+0x179><== NOT EXECUTED
i >>= 1, vol->bpc_log2++);
vol->fats = FAT_GET_BR_FAT_NUM(boot_rec);
125e7b: 8a 85 46 ff ff ff mov -0xba(%ebp),%al <== NOT EXECUTED
125e81: 88 43 09 mov %al,0x9(%ebx) <== NOT EXECUTED
vol->fat_loc = FAT_GET_BR_RESERVED_SECTORS_NUM(boot_rec);
125e84: 0f b6 95 45 ff ff ff movzbl -0xbb(%ebp),%edx <== NOT EXECUTED
125e8b: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
125e8e: 0f b6 85 44 ff ff ff movzbl -0xbc(%ebp),%eax <== NOT EXECUTED
125e95: 09 d0 or %edx,%eax <== NOT EXECUTED
125e97: 66 89 43 14 mov %ax,0x14(%ebx) <== NOT EXECUTED
vol->rdir_entrs = FAT_GET_BR_FILES_PER_ROOT_DIR(boot_rec);
125e9b: 0f b6 95 48 ff ff ff movzbl -0xb8(%ebp),%edx <== NOT EXECUTED
125ea2: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
125ea5: 0f b6 85 47 ff ff ff movzbl -0xb9(%ebp),%eax <== NOT EXECUTED
125eac: 09 d0 or %edx,%eax <== NOT EXECUTED
125eae: 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)) /
125eb2: 0f b7 0b movzwl (%ebx),%ecx <== NOT EXECUTED
125eb5: 0f b7 c0 movzwl %ax,%eax <== NOT EXECUTED
125eb8: c1 e0 05 shl $0x5,%eax <== NOT EXECUTED
125ebb: 8d 44 01 ff lea -0x1(%ecx,%eax,1),%eax <== NOT EXECUTED
125ebf: 99 cltd <== NOT EXECUTED
125ec0: f7 f9 idiv %ecx <== NOT EXECUTED
125ec2: 89 43 24 mov %eax,0x24(%ebx) <== NOT EXECUTED
vol->bps;
vol->rdir_size = vol->rdir_secs << vol->sec_log2;
125ec5: 0f b6 4b 02 movzbl 0x2(%ebx),%ecx <== NOT EXECUTED
125ec9: d3 e0 shl %cl,%eax <== NOT EXECUTED
125ecb: 89 43 28 mov %eax,0x28(%ebx) <== NOT EXECUTED
if ( (FAT_GET_BR_SECTORS_PER_FAT(boot_rec)) != 0)
125ece: 0f b6 85 4d ff ff ff movzbl -0xb3(%ebp),%eax <== NOT EXECUTED
125ed5: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
125ed8: 0f b6 95 4c ff ff ff movzbl -0xb4(%ebp),%edx <== NOT EXECUTED
125edf: 66 09 d0 or %dx,%ax <== NOT EXECUTED
125ee2: 74 05 je 125ee9 <fat_init_volume_info+0x1f0><== NOT EXECUTED
vol->fat_length = FAT_GET_BR_SECTORS_PER_FAT(boot_rec);
125ee4: 0f b7 c0 movzwl %ax,%eax <== NOT EXECUTED
125ee7: eb 2b jmp 125f14 <fat_init_volume_info+0x21b><== NOT EXECUTED
else
vol->fat_length = FAT_GET_BR_SECTORS_PER_FAT32(boot_rec);
125ee9: 0f b6 85 5b ff ff ff movzbl -0xa5(%ebp),%eax <== NOT EXECUTED
125ef0: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
125ef3: 0f b6 95 5c ff ff ff movzbl -0xa4(%ebp),%edx <== NOT EXECUTED
125efa: c1 e2 10 shl $0x10,%edx <== NOT EXECUTED
125efd: 09 d0 or %edx,%eax <== NOT EXECUTED
125eff: 0f b6 95 5a ff ff ff movzbl -0xa6(%ebp),%edx <== NOT EXECUTED
125f06: 09 d0 or %edx,%eax <== NOT EXECUTED
125f08: 0f b6 95 5d ff ff ff movzbl -0xa3(%ebp),%edx <== NOT EXECUTED
125f0f: c1 e2 18 shl $0x18,%edx <== NOT EXECUTED
125f12: 09 d0 or %edx,%eax <== NOT EXECUTED
125f14: 89 43 18 mov %eax,0x18(%ebx) <== NOT EXECUTED
vol->data_fsec = vol->fat_loc + vol->fats * vol->fat_length +
125f17: 0f b7 53 14 movzwl 0x14(%ebx),%edx <== NOT EXECUTED
125f1b: 8b 4b 24 mov 0x24(%ebx),%ecx <== NOT EXECUTED
125f1e: 01 d1 add %edx,%ecx <== NOT EXECUTED
125f20: 0f b6 43 09 movzbl 0x9(%ebx),%eax <== NOT EXECUTED
125f24: 0f af 43 18 imul 0x18(%ebx),%eax <== NOT EXECUTED
125f28: 01 c1 add %eax,%ecx <== NOT EXECUTED
125f2a: 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;
125f2d: 01 d0 add %edx,%eax <== NOT EXECUTED
125f2f: 89 43 1c mov %eax,0x1c(%ebx) <== NOT EXECUTED
if ( (FAT_GET_BR_TOTAL_SECTORS_NUM16(boot_rec)) != 0)
125f32: 0f b6 85 4a ff ff ff movzbl -0xb6(%ebp),%eax <== NOT EXECUTED
125f39: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
125f3c: 0f b6 95 49 ff ff ff movzbl -0xb7(%ebp),%edx <== NOT EXECUTED
125f43: 66 09 d0 or %dx,%ax <== NOT EXECUTED
125f46: 74 05 je 125f4d <fat_init_volume_info+0x254><== NOT EXECUTED
vol->tot_secs = FAT_GET_BR_TOTAL_SECTORS_NUM16(boot_rec);
125f48: 0f b7 c0 movzwl %ax,%eax <== NOT EXECUTED
125f4b: eb 2b jmp 125f78 <fat_init_volume_info+0x27f><== NOT EXECUTED
else
vol->tot_secs = FAT_GET_BR_TOTAL_SECTORS_NUM32(boot_rec);
125f4d: 0f b6 85 57 ff ff ff movzbl -0xa9(%ebp),%eax <== NOT EXECUTED
125f54: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
125f57: 0f b6 95 58 ff ff ff movzbl -0xa8(%ebp),%edx <== NOT EXECUTED
125f5e: c1 e2 10 shl $0x10,%edx <== NOT EXECUTED
125f61: 09 d0 or %edx,%eax <== NOT EXECUTED
125f63: 0f b6 95 56 ff ff ff movzbl -0xaa(%ebp),%edx <== NOT EXECUTED
125f6a: 09 d0 or %edx,%eax <== NOT EXECUTED
125f6c: 0f b6 95 59 ff ff ff movzbl -0xa7(%ebp),%edx <== NOT EXECUTED
125f73: c1 e2 18 shl $0x18,%edx <== NOT EXECUTED
125f76: 09 d0 or %edx,%eax <== NOT EXECUTED
125f78: 89 43 2c mov %eax,0x2c(%ebx) <== NOT EXECUTED
data_secs = vol->tot_secs - vol->data_fsec;
vol->data_cls = data_secs / vol->spc;
125f7b: 8b 43 2c mov 0x2c(%ebx),%eax <== NOT EXECUTED
125f7e: 2b 43 30 sub 0x30(%ebx),%eax <== NOT EXECUTED
125f81: 0f b6 4b 04 movzbl 0x4(%ebx),%ecx <== NOT EXECUTED
125f85: 31 d2 xor %edx,%edx <== NOT EXECUTED
125f87: f7 f1 div %ecx <== NOT EXECUTED
125f89: 89 43 34 mov %eax,0x34(%ebx) <== NOT EXECUTED
/* determine FAT type at least */
if ( vol->data_cls < FAT_FAT12_MAX_CLN)
125f8c: 3d f4 0f 00 00 cmp $0xff4,%eax <== NOT EXECUTED
125f91: 77 14 ja 125fa7 <fat_init_volume_info+0x2ae><== NOT EXECUTED
{
vol->type = FAT_FAT12;
125f93: c6 43 0a 01 movb $0x1,0xa(%ebx) <== NOT EXECUTED
vol->mask = FAT_FAT12_MASK;
125f97: c7 43 0c ff 0f 00 00 movl $0xfff,0xc(%ebx) <== NOT EXECUTED
vol->eoc_val = FAT_FAT12_EOC;
125f9e: c7 43 10 f8 0f 00 00 movl $0xff8,0x10(%ebx) <== NOT EXECUTED
125fa5: eb 2d jmp 125fd4 <fat_init_volume_info+0x2db><== NOT EXECUTED
}
else
{
if ( vol->data_cls < FAT_FAT16_MAX_CLN)
125fa7: 3d f4 ff 00 00 cmp $0xfff4,%eax <== NOT EXECUTED
125fac: 77 14 ja 125fc2 <fat_init_volume_info+0x2c9><== NOT EXECUTED
{
vol->type = FAT_FAT16;
125fae: c6 43 0a 02 movb $0x2,0xa(%ebx) <== NOT EXECUTED
vol->mask = FAT_FAT16_MASK;
125fb2: c7 43 0c ff ff 00 00 movl $0xffff,0xc(%ebx) <== NOT EXECUTED
vol->eoc_val = FAT_FAT16_EOC;
125fb9: c7 43 10 f8 ff 00 00 movl $0xfff8,0x10(%ebx) <== NOT EXECUTED
125fc0: eb 12 jmp 125fd4 <fat_init_volume_info+0x2db><== NOT EXECUTED
}
else
{
vol->type = FAT_FAT32;
125fc2: c6 43 0a 04 movb $0x4,0xa(%ebx) <== NOT EXECUTED
vol->mask = FAT_FAT32_MASK;
125fc6: c7 43 0c ff ff ff 0f movl $0xfffffff,0xc(%ebx) <== NOT EXECUTED
vol->eoc_val = FAT_FAT32_EOC;
125fcd: 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;
125fd4: 80 7b 0a 04 cmpb $0x4,0xa(%ebx) <== NOT EXECUTED
125fd8: 0f 85 92 01 00 00 jne 126170 <fat_init_volume_info+0x477><== NOT EXECUTED
}
}
if (vol->type == FAT_FAT32)
{
vol->rdir_cl = FAT_GET_BR_FAT32_ROOT_CLUSTER(boot_rec);
125fde: 0f b6 85 63 ff ff ff movzbl -0x9d(%ebp),%eax <== NOT EXECUTED
125fe5: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
125fe8: 0f b6 95 64 ff ff ff movzbl -0x9c(%ebp),%edx <== NOT EXECUTED
125fef: c1 e2 10 shl $0x10,%edx <== NOT EXECUTED
125ff2: 09 d0 or %edx,%eax <== NOT EXECUTED
125ff4: 0f b6 95 62 ff ff ff movzbl -0x9e(%ebp),%edx <== NOT EXECUTED
125ffb: 09 d0 or %edx,%eax <== NOT EXECUTED
125ffd: 0f b6 95 65 ff ff ff movzbl -0x9b(%ebp),%edx <== NOT EXECUTED
126004: c1 e2 18 shl $0x18,%edx <== NOT EXECUTED
126007: 09 d0 or %edx,%eax <== NOT EXECUTED
126009: 89 43 38 mov %eax,0x38(%ebx) <== NOT EXECUTED
vol->mirror = FAT_GET_BR_EXT_FLAGS(boot_rec) & FAT_BR_EXT_FLAGS_MIRROR;
12600c: 8a 85 5e ff ff ff mov -0xa2(%ebp),%al <== NOT EXECUTED
126012: 83 e0 80 and $0xffffff80,%eax <== NOT EXECUTED
126015: 88 43 48 mov %al,0x48(%ebx) <== NOT EXECUTED
if (vol->mirror)
126018: 84 c0 test %al,%al <== NOT EXECUTED
12601a: 74 0e je 12602a <fat_init_volume_info+0x331><== NOT EXECUTED
vol->afat = FAT_GET_BR_EXT_FLAGS(boot_rec) & FAT_BR_EXT_FLAGS_FAT_NUM;
12601c: 8a 85 5e ff ff ff mov -0xa2(%ebp),%al <== NOT EXECUTED
126022: 83 e0 0f and $0xf,%eax <== NOT EXECUTED
126025: 88 43 50 mov %al,0x50(%ebx) <== NOT EXECUTED
126028: eb 04 jmp 12602e <fat_init_volume_info+0x335><== NOT EXECUTED
else
vol->afat = 0;
12602a: c6 43 50 00 movb $0x0,0x50(%ebx) <== NOT EXECUTED
vol->info_sec = FAT_GET_BR_FAT32_FS_INFO_SECTOR(boot_rec);
12602e: 0f b6 95 67 ff ff ff movzbl -0x99(%ebp),%edx <== NOT EXECUTED
126035: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
126038: 0f b6 85 66 ff ff ff movzbl -0x9a(%ebp),%eax <== NOT EXECUTED
12603f: 09 d0 or %edx,%eax <== NOT EXECUTED
126041: 66 89 43 3c mov %ax,0x3c(%ebx) <== NOT EXECUTED
if( vol->info_sec == 0 )
126045: 66 85 c0 test %ax,%ax <== NOT EXECUTED
126048: 75 05 jne 12604f <fat_init_volume_info+0x356><== NOT EXECUTED
{
rtems_disk_release(vol->dd);
12604a: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12604d: eb 58 jmp 1260a7 <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,
12604f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
126052: 8d 75 d8 lea -0x28(%ebp),%esi <== NOT EXECUTED
126055: 56 push %esi <== NOT EXECUTED
126056: 6a 04 push $0x4 <== NOT EXECUTED
126058: 6a 00 push $0x0 <== NOT EXECUTED
12605a: 0f b7 c0 movzwl %ax,%eax <== NOT EXECUTED
12605d: 50 push %eax <== NOT EXECUTED
12605e: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
126061: e8 0c fc ff ff call 125c72 <_fat_block_read> <== NOT EXECUTED
FAT_FSI_LEADSIG_SIZE, fs_info_sector);
if ( ret < 0 )
126066: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
126069: 85 c0 test %eax,%eax <== NOT EXECUTED
12606b: 79 05 jns 126072 <fat_init_volume_info+0x379><== NOT EXECUTED
{
rtems_disk_release(vol->dd);
12606d: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
126070: eb 7b jmp 1260ed <fat_init_volume_info+0x3f4><== NOT EXECUTED
return -1;
}
if (FAT_GET_FSINFO_LEAD_SIGNATURE(fs_info_sector) !=
126072: 0f b6 45 d9 movzbl -0x27(%ebp),%eax <== NOT EXECUTED
126076: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
126079: 0f b6 55 da movzbl -0x26(%ebp),%edx <== NOT EXECUTED
12607d: c1 e2 10 shl $0x10,%edx <== NOT EXECUTED
126080: 09 d0 or %edx,%eax <== NOT EXECUTED
126082: 0f b6 55 d8 movzbl -0x28(%ebp),%edx <== NOT EXECUTED
126086: 09 d0 or %edx,%eax <== NOT EXECUTED
126088: 0f b6 55 db movzbl -0x25(%ebp),%edx <== NOT EXECUTED
12608c: c1 e2 18 shl $0x18,%edx <== NOT EXECUTED
12608f: 09 d0 or %edx,%eax <== NOT EXECUTED
126091: 3d 52 52 61 41 cmp $0x41615252,%eax <== NOT EXECUTED
126096: 74 27 je 1260bf <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);
126098: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12609b: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
12609e: ff 70 34 pushl 0x34(%eax) <== NOT EXECUTED
1260a1: e8 c1 f5 ff ff call 125667 <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);
1260a6: 59 pop %ecx <== NOT EXECUTED
1260a7: ff 73 5c pushl 0x5c(%ebx) <== NOT EXECUTED
1260aa: e8 c5 5d fe ff call 10be74 <rtems_disk_release> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
1260af: e8 e4 6c 01 00 call 13cd98 <__errno> <== NOT EXECUTED
1260b4: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
1260ba: e9 1c 02 00 00 jmp 1262db <fat_init_volume_info+0x5e2><== NOT EXECUTED
}
else
{
ret = _fat_block_read(mt_entry, vol->info_sec , FAT_FSI_INFO,
1260bf: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1260c2: 56 push %esi <== NOT EXECUTED
1260c3: 6a 0c push $0xc <== NOT EXECUTED
1260c5: 68 e4 01 00 00 push $0x1e4 <== NOT EXECUTED
1260ca: 0f b7 43 3c movzwl 0x3c(%ebx),%eax <== NOT EXECUTED
1260ce: 50 push %eax <== NOT EXECUTED
1260cf: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
1260d2: e8 9b fb ff ff call 125c72 <_fat_block_read> <== NOT EXECUTED
FAT_USEFUL_INFO_SIZE, fs_info_sector);
if ( ret < 0 )
1260d7: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
1260da: 85 c0 test %eax,%eax <== NOT EXECUTED
1260dc: 79 1c jns 1260fa <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);
1260de: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1260e1: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
1260e4: ff 70 34 pushl 0x34(%eax) <== NOT EXECUTED
1260e7: e8 7b f5 ff ff call 125667 <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);
1260ec: 5a pop %edx <== NOT EXECUTED
1260ed: ff 73 5c pushl 0x5c(%ebx) <== NOT EXECUTED
1260f0: e8 7f 5d fe ff call 10be74 <rtems_disk_release> <== NOT EXECUTED
1260f5: e9 e1 01 00 00 jmp 1262db <fat_init_volume_info+0x5e2><== NOT EXECUTED
return -1;
}
vol->free_cls = FAT_GET_FSINFO_FREE_CLUSTER_COUNT(fs_info_sector);
1260fa: 0f b6 45 dd movzbl -0x23(%ebp),%eax <== NOT EXECUTED
1260fe: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
126101: 0f b6 55 de movzbl -0x22(%ebp),%edx <== NOT EXECUTED
126105: c1 e2 10 shl $0x10,%edx <== NOT EXECUTED
126108: 09 d0 or %edx,%eax <== NOT EXECUTED
12610a: 0f b6 55 dc movzbl -0x24(%ebp),%edx <== NOT EXECUTED
12610e: 09 d0 or %edx,%eax <== NOT EXECUTED
126110: 0f b6 55 df movzbl -0x21(%ebp),%edx <== NOT EXECUTED
126114: c1 e2 18 shl $0x18,%edx <== NOT EXECUTED
126117: 09 d0 or %edx,%eax <== NOT EXECUTED
126119: 89 43 40 mov %eax,0x40(%ebx) <== NOT EXECUTED
vol->next_cl = FAT_GET_FSINFO_NEXT_FREE_CLUSTER(fs_info_sector);
12611c: 0f b6 45 e1 movzbl -0x1f(%ebp),%eax <== NOT EXECUTED
126120: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
126123: 0f b6 55 e2 movzbl -0x1e(%ebp),%edx <== NOT EXECUTED
126127: c1 e2 10 shl $0x10,%edx <== NOT EXECUTED
12612a: 09 d0 or %edx,%eax <== NOT EXECUTED
12612c: 0f b6 55 e0 movzbl -0x20(%ebp),%edx <== NOT EXECUTED
126130: 09 d0 or %edx,%eax <== NOT EXECUTED
126132: 0f b6 55 e3 movzbl -0x1d(%ebp),%edx <== NOT EXECUTED
126136: c1 e2 18 shl $0x18,%edx <== NOT EXECUTED
126139: 09 d0 or %edx,%eax <== NOT EXECUTED
12613b: 89 43 44 mov %eax,0x44(%ebx) <== NOT EXECUTED
rc = fat_fat32_update_fsinfo_sector(mt_entry, 0xFFFFFFFF,
12613e: 50 push %eax <== NOT EXECUTED
12613f: 6a ff push $0xffffffff <== NOT EXECUTED
126141: 6a ff push $0xffffffff <== NOT EXECUTED
126143: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
126146: e8 d3 f8 ff ff call 125a1e <fat_fat32_update_fsinfo_sector><== NOT EXECUTED
12614b: 89 c6 mov %eax,%esi <== NOT EXECUTED
0xFFFFFFFF);
if ( rc != RC_OK )
12614d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
126150: 85 c0 test %eax,%eax <== NOT EXECUTED
126152: 74 39 je 12618d <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);
126154: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
126157: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
12615a: ff 70 34 pushl 0x34(%eax) <== NOT EXECUTED
12615d: e8 05 f5 ff ff call 125667 <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);
126162: 5f pop %edi <== NOT EXECUTED
126163: ff 73 5c pushl 0x5c(%ebx) <== NOT EXECUTED
126166: e8 09 5d fe ff call 10be74 <rtems_disk_release> <== NOT EXECUTED
12616b: e9 6e 01 00 00 jmp 1262de <fat_init_volume_info+0x5e5><== NOT EXECUTED
}
}
}
else
{
vol->rdir_cl = 0;
126170: c7 43 38 00 00 00 00 movl $0x0,0x38(%ebx) <== NOT EXECUTED
vol->mirror = 0;
126177: c6 43 48 00 movb $0x0,0x48(%ebx) <== NOT EXECUTED
vol->afat = 0;
12617b: c6 43 50 00 movb $0x0,0x50(%ebx) <== NOT EXECUTED
vol->free_cls = 0xFFFFFFFF;
12617f: c7 43 40 ff ff ff ff movl $0xffffffff,0x40(%ebx) <== NOT EXECUTED
vol->next_cl = 0xFFFFFFFF;
126186: 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);
12618d: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
126190: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
126193: ff 70 34 pushl 0x34(%eax) <== NOT EXECUTED
126196: e8 cc f4 ff ff call 125667 <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;
12619b: 0f b6 43 50 movzbl 0x50(%ebx),%eax <== NOT EXECUTED
12619f: 0f af 43 18 imul 0x18(%ebx),%eax <== NOT EXECUTED
1261a3: 0f b7 53 14 movzwl 0x14(%ebx),%edx <== NOT EXECUTED
1261a7: 01 d0 add %edx,%eax <== NOT EXECUTED
1261a9: 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));
1261ac: 5a pop %edx <== NOT EXECUTED
1261ad: 59 pop %ecx <== NOT EXECUTED
1261ae: 6a 0c push $0xc <== NOT EXECUTED
1261b0: 6a 02 push $0x2 <== NOT EXECUTED
1261b2: e8 15 68 fe ff call 10c9cc <calloc> <== NOT EXECUTED
1261b7: 89 43 64 mov %eax,0x64(%ebx) <== NOT EXECUTED
if ( fs_info->vhash == NULL )
1261ba: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1261bd: 85 c0 test %eax,%eax <== NOT EXECUTED
1261bf: 74 39 je 1261fa <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);
1261c1: 8d 50 04 lea 0x4(%eax),%edx <== NOT EXECUTED
1261c4: 89 10 mov %edx,(%eax) <== NOT EXECUTED
the_chain->permanent_null = NULL;
1261c6: c7 40 04 00 00 00 00 movl $0x0,0x4(%eax) <== NOT EXECUTED
the_chain->last = _Chain_Head(the_chain);
1261cd: 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);
1261d0: 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);
1261d3: 8d 48 10 lea 0x10(%eax),%ecx <== NOT EXECUTED
1261d6: 89 48 0c mov %ecx,0xc(%eax) <== NOT EXECUTED
the_chain->permanent_null = NULL;
1261d9: c7 42 04 00 00 00 00 movl $0x0,0x4(%edx) <== NOT EXECUTED
the_chain->last = _Chain_Head(the_chain);
1261e0: 89 52 08 mov %edx,0x8(%edx) <== NOT EXECUTED
fs_info->rhash = calloc(FAT_HASH_SIZE, sizeof(rtems_chain_control));
1261e3: 50 push %eax <== NOT EXECUTED
1261e4: 50 push %eax <== NOT EXECUTED
1261e5: 6a 0c push $0xc <== NOT EXECUTED
1261e7: 6a 02 push $0x2 <== NOT EXECUTED
1261e9: e8 de 67 fe ff call 10c9cc <calloc> <== NOT EXECUTED
1261ee: 89 43 68 mov %eax,0x68(%ebx) <== NOT EXECUTED
if ( fs_info->rhash == NULL )
1261f1: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1261f4: 85 c0 test %eax,%eax <== NOT EXECUTED
1261f6: 75 12 jne 12620a <fat_init_volume_info+0x511><== NOT EXECUTED
1261f8: eb 69 jmp 126263 <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);
1261fa: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1261fd: ff 73 5c pushl 0x5c(%ebx) <== NOT EXECUTED
126200: e8 6f 5c fe ff call 10be74 <rtems_disk_release> <== NOT EXECUTED
126205: e9 c6 00 00 00 jmp 1262d0 <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);
12620a: 8d 50 04 lea 0x4(%eax),%edx <== NOT EXECUTED
12620d: 89 10 mov %edx,(%eax) <== NOT EXECUTED
the_chain->permanent_null = NULL;
12620f: c7 40 04 00 00 00 00 movl $0x0,0x4(%eax) <== NOT EXECUTED
the_chain->last = _Chain_Head(the_chain);
126216: 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);
126219: 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);
12621c: 8d 48 10 lea 0x10(%eax),%ecx <== NOT EXECUTED
12621f: 89 48 0c mov %ecx,0xc(%eax) <== NOT EXECUTED
the_chain->permanent_null = NULL;
126222: c7 42 04 00 00 00 00 movl $0x0,0x4(%edx) <== NOT EXECUTED
the_chain->last = _Chain_Head(the_chain);
126229: 89 52 08 mov %edx,0x8(%edx) <== NOT EXECUTED
fs_info->uino_pool_size = FAT_UINO_POOL_INIT_SIZE;
12622c: c7 43 74 00 01 00 00 movl $0x100,0x74(%ebx) <== NOT EXECUTED
fs_info->uino_base = (vol->tot_secs << vol->sec_mul) << 4;
126233: 0f b6 4b 03 movzbl 0x3(%ebx),%ecx <== NOT EXECUTED
126237: 8b 43 2c mov 0x2c(%ebx),%eax <== NOT EXECUTED
12623a: d3 e0 shl %cl,%eax <== NOT EXECUTED
12623c: c1 e0 04 shl $0x4,%eax <== NOT EXECUTED
12623f: 89 43 78 mov %eax,0x78(%ebx) <== NOT EXECUTED
fs_info->index = 0;
126242: 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));
126249: 57 push %edi <== NOT EXECUTED
12624a: 57 push %edi <== NOT EXECUTED
12624b: 6a 01 push $0x1 <== NOT EXECUTED
12624d: 68 00 01 00 00 push $0x100 <== NOT EXECUTED
126252: e8 75 67 fe ff call 10c9cc <calloc> <== NOT EXECUTED
126257: 89 43 6c mov %eax,0x6c(%ebx) <== NOT EXECUTED
if ( fs_info->uino == NULL )
12625a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12625d: 85 c0 test %eax,%eax <== NOT EXECUTED
12625f: 75 2d jne 12628e <fat_init_volume_info+0x595><== NOT EXECUTED
126261: eb 11 jmp 126274 <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);
126263: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
126266: ff 73 5c pushl 0x5c(%ebx) <== NOT EXECUTED
126269: e8 06 5c fe ff call 10be74 <rtems_disk_release> <== NOT EXECUTED
free(fs_info->vhash);
12626e: 5e pop %esi <== NOT EXECUTED
12626f: ff 73 64 pushl 0x64(%ebx) <== NOT EXECUTED
126272: eb 57 jmp 1262cb <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);
126274: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
126277: ff 73 5c pushl 0x5c(%ebx) <== NOT EXECUTED
12627a: e8 f5 5b fe ff call 10be74 <rtems_disk_release> <== NOT EXECUTED
free(fs_info->vhash);
12627f: 59 pop %ecx <== NOT EXECUTED
126280: ff 73 64 pushl 0x64(%ebx) <== NOT EXECUTED
126283: e8 14 6c fe ff call 10ce9c <free> <== NOT EXECUTED
free(fs_info->rhash);
126288: 5a pop %edx <== NOT EXECUTED
126289: ff 73 68 pushl 0x68(%ebx) <== NOT EXECUTED
12628c: eb 3d jmp 1262cb <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));
12628e: 50 push %eax <== NOT EXECUTED
12628f: 50 push %eax <== NOT EXECUTED
126290: 6a 01 push $0x1 <== NOT EXECUTED
126292: 0f b7 03 movzwl (%ebx),%eax <== NOT EXECUTED
126295: 50 push %eax <== NOT EXECUTED
126296: e8 31 67 fe ff call 10c9cc <calloc> <== NOT EXECUTED
12629b: 89 83 88 00 00 00 mov %eax,0x88(%ebx) <== NOT EXECUTED
if (fs_info->sec_buf == NULL)
1262a1: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1262a4: 31 f6 xor %esi,%esi <== NOT EXECUTED
1262a6: 85 c0 test %eax,%eax <== NOT EXECUTED
1262a8: 75 37 jne 1262e1 <fat_init_volume_info+0x5e8><== NOT EXECUTED
{
rtems_disk_release(vol->dd);
1262aa: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1262ad: ff 73 5c pushl 0x5c(%ebx) <== NOT EXECUTED
1262b0: e8 bf 5b fe ff call 10be74 <rtems_disk_release> <== NOT EXECUTED
free(fs_info->vhash);
1262b5: 5f pop %edi <== NOT EXECUTED
1262b6: ff 73 64 pushl 0x64(%ebx) <== NOT EXECUTED
1262b9: e8 de 6b fe ff call 10ce9c <free> <== NOT EXECUTED
free(fs_info->rhash);
1262be: 5e pop %esi <== NOT EXECUTED
1262bf: ff 73 68 pushl 0x68(%ebx) <== NOT EXECUTED
1262c2: e8 d5 6b fe ff call 10ce9c <free> <== NOT EXECUTED
free(fs_info->uino);
1262c7: 59 pop %ecx <== NOT EXECUTED
1262c8: ff 73 6c pushl 0x6c(%ebx) <== NOT EXECUTED
1262cb: e8 cc 6b fe ff call 10ce9c <free> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOMEM );
1262d0: e8 c3 6a 01 00 call 13cd98 <__errno> <== NOT EXECUTED
1262d5: c7 00 0c 00 00 00 movl $0xc,(%eax) <== NOT EXECUTED
1262db: 83 ce ff or $0xffffffff,%esi <== NOT EXECUTED
1262de: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
return RC_OK;
}
1262e1: 89 f0 mov %esi,%eax <== NOT EXECUTED
1262e3: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1262e6: 5b pop %ebx <== NOT EXECUTED
1262e7: 5e pop %esi <== NOT EXECUTED
1262e8: 5f pop %edi <== NOT EXECUTED
1262e9: c9 leave <== NOT EXECUTED
1262ea: c3 ret <== NOT EXECUTED
001255b7 <fat_ino_is_unique>:
inline bool
fat_ino_is_unique(
rtems_filesystem_mount_table_entry_t *mt_entry,
uint32_t ino
)
{
1255b7: 55 push %ebp <== NOT EXECUTED
1255b8: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1255ba: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
1255bd: 8b 40 34 mov 0x34(%eax),%eax <== NOT EXECUTED
1255c0: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
1255c3: 3b 50 78 cmp 0x78(%eax),%edx <== NOT EXECUTED
1255c6: 0f 93 c0 setae %al <== NOT EXECUTED
fat_fs_info_t *fs_info = mt_entry->fs_info;
return (ino >= fs_info->uino_base);
}
1255c9: c9 leave <== NOT EXECUTED
1255ca: c3 ret <== NOT EXECUTED
00139b2b <fat_scan_fat_for_free_clusters>:
uint32_t *chain,
uint32_t count,
uint32_t *cls_added,
uint32_t *last_cl
)
{
139b2b: 55 push %ebp <== NOT EXECUTED
139b2c: 89 e5 mov %esp,%ebp <== NOT EXECUTED
139b2e: 57 push %edi <== NOT EXECUTED
139b2f: 56 push %esi <== NOT EXECUTED
139b30: 53 push %ebx <== NOT EXECUTED
139b31: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED
139b34: 8b 55 14 mov 0x14(%ebp),%edx <== NOT EXECUTED
int rc = RC_OK;
fat_fs_info_t *fs_info = mt_entry->fs_info;
139b37: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
139b3a: 8b 78 34 mov 0x34(%eax),%edi <== NOT EXECUTED
uint32_t cl4find = 2;
uint32_t next_cln = 0;
139b3d: 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;
139b44: 8b 47 34 mov 0x34(%edi),%eax <== NOT EXECUTED
139b47: 83 c0 02 add $0x2,%eax <== NOT EXECUTED
139b4a: 89 45 d0 mov %eax,-0x30(%ebp) <== NOT EXECUTED
uint32_t i = 2;
*cls_added = 0;
139b4d: c7 02 00 00 00 00 movl $0x0,(%edx) <== NOT EXECUTED
if (count == 0)
139b53: 31 f6 xor %esi,%esi <== NOT EXECUTED
139b55: 83 7d 10 00 cmpl $0x0,0x10(%ebp) <== NOT EXECUTED
139b59: 0f 84 3f 01 00 00 je 139c9e <fat_scan_fat_for_free_clusters+0x173><== NOT EXECUTED
return rc;
if (fs_info->vol.next_cl != FAT_UNDEFINED_VALUE)
139b5f: 8b 5f 44 mov 0x44(%edi),%ebx <== NOT EXECUTED
139b62: 83 fb ff cmp $0xffffffff,%ebx <== NOT EXECUTED
139b65: 75 05 jne 139b6c <fat_scan_fat_for_free_clusters+0x41><== NOT EXECUTED
139b67: bb 02 00 00 00 mov $0x2,%ebx <== NOT EXECUTED
139b6c: c7 45 d4 02 00 00 00 movl $0x2,-0x2c(%ebp) <== NOT EXECUTED
139b73: 31 c9 xor %ecx,%ecx <== NOT EXECUTED
139b75: 89 d6 mov %edx,%esi <== NOT EXECUTED
139b77: e9 f3 00 00 00 jmp 139c6f <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);
139b7c: 50 push %eax <== NOT EXECUTED
139b7d: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
139b80: 50 push %eax <== NOT EXECUTED
139b81: 53 push %ebx <== NOT EXECUTED
139b82: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
139b85: 89 4d cc mov %ecx,-0x34(%ebp) <== NOT EXECUTED
139b88: e8 88 fd ff ff call 139915 <fat_get_fat_cluster> <== NOT EXECUTED
if ( rc != RC_OK )
139b8d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
139b90: 85 c0 test %eax,%eax <== NOT EXECUTED
139b92: 8b 4d cc mov -0x34(%ebp),%ecx <== NOT EXECUTED
139b95: 74 0f je 139ba6 <fat_scan_fat_for_free_clusters+0x7b><== NOT EXECUTED
139b97: 89 f2 mov %esi,%edx <== NOT EXECUTED
{
if (*cls_added != 0)
139b99: 89 c6 mov %eax,%esi <== NOT EXECUTED
139b9b: 83 3a 00 cmpl $0x0,(%edx) <== NOT EXECUTED
139b9e: 0f 84 fa 00 00 00 je 139c9e <fat_scan_fat_for_free_clusters+0x173><== NOT EXECUTED
139ba4: eb 49 jmp 139bef <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)
139ba6: 83 7d e4 00 cmpl $0x0,-0x1c(%ebp) <== NOT EXECUTED
139baa: 0f 85 b1 00 00 00 jne 139c61 <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)
139bb0: 83 3e 00 cmpl $0x0,(%esi) <== NOT EXECUTED
139bb3: 75 1f jne 139bd4 <fat_scan_fat_for_free_clusters+0xa9><== NOT EXECUTED
{
*chain = cl4find;
139bb5: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
139bb8: 89 18 mov %ebx,(%eax) <== NOT EXECUTED
rc = fat_set_fat_cluster(mt_entry, cl4find, FAT_GENFAT_EOC);
139bba: 52 push %edx <== NOT EXECUTED
139bbb: 6a ff push $0xffffffff <== NOT EXECUTED
139bbd: 53 push %ebx <== NOT EXECUTED
139bbe: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
139bc1: e8 36 fb ff ff call 1396fc <fat_set_fat_cluster> <== NOT EXECUTED
if ( rc != RC_OK )
139bc6: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
139bc9: 85 c0 test %eax,%eax <== NOT EXECUTED
139bcb: 74 71 je 139c3e <fat_scan_fat_for_free_clusters+0x113><== NOT EXECUTED
139bcd: 89 c6 mov %eax,%esi <== NOT EXECUTED
139bcf: e9 ca 00 00 00 jmp 139c9e <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);
139bd4: 50 push %eax <== NOT EXECUTED
139bd5: 6a ff push $0xffffffff <== NOT EXECUTED
139bd7: 53 push %ebx <== NOT EXECUTED
139bd8: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
139bdb: 89 4d cc mov %ecx,-0x34(%ebp) <== NOT EXECUTED
139bde: e8 19 fb ff ff call 1396fc <fat_set_fat_cluster> <== NOT EXECUTED
if ( rc != RC_OK )
139be3: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
139be6: 85 c0 test %eax,%eax <== NOT EXECUTED
139be8: 8b 4d cc mov -0x34(%ebp),%ecx <== NOT EXECUTED
139beb: 74 16 je 139c03 <fat_scan_fat_for_free_clusters+0xd8><== NOT EXECUTED
139bed: 89 c6 mov %eax,%esi <== NOT EXECUTED
{
/* cleanup activity */
fat_free_fat_clusters_chain(mt_entry, (*chain));
139bef: 52 push %edx <== NOT EXECUTED
139bf0: 52 push %edx <== NOT EXECUTED
139bf1: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
139bf4: ff 30 pushl (%eax) <== NOT EXECUTED
139bf6: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
139bf9: e8 81 fe ff ff call 139a7f <fat_free_fat_clusters_chain><== NOT EXECUTED
139bfe: e9 98 00 00 00 jmp 139c9b <fat_scan_fat_for_free_clusters+0x170><== NOT EXECUTED
return rc;
}
rc = fat_set_fat_cluster(mt_entry, save_cln, cl4find);
139c03: 50 push %eax <== NOT EXECUTED
139c04: 53 push %ebx <== NOT EXECUTED
139c05: 51 push %ecx <== NOT EXECUTED
139c06: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
139c09: e8 ee fa ff ff call 1396fc <fat_set_fat_cluster> <== NOT EXECUTED
if ( rc != RC_OK )
139c0e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
139c11: 85 c0 test %eax,%eax <== NOT EXECUTED
139c13: 74 29 je 139c3e <fat_scan_fat_for_free_clusters+0x113><== NOT EXECUTED
139c15: 89 c6 mov %eax,%esi <== NOT EXECUTED
{
/* cleanup activity */
fat_free_fat_clusters_chain(mt_entry, (*chain));
139c17: 51 push %ecx <== NOT EXECUTED
139c18: 51 push %ecx <== NOT EXECUTED
139c19: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
139c1c: ff 30 pushl (%eax) <== NOT EXECUTED
139c1e: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
139c21: e8 59 fe ff ff call 139a7f <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);
139c26: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
139c29: 6a 00 push $0x0 <== NOT EXECUTED
139c2b: 53 push %ebx <== NOT EXECUTED
139c2c: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
139c2f: e8 c8 fa ff ff call 1396fc <fat_set_fat_cluster> <== NOT EXECUTED
fat_buf_release(fs_info);
139c34: 89 3c 24 mov %edi,(%esp) <== NOT EXECUTED
139c37: e8 2b ba fe ff call 125667 <fat_buf_release> <== NOT EXECUTED
139c3c: eb 5d jmp 139c9b <fat_scan_fat_for_free_clusters+0x170><== NOT EXECUTED
return rc;
}
}
save_cln = cl4find;
(*cls_added)++;
139c3e: 8b 06 mov (%esi),%eax <== NOT EXECUTED
139c40: 40 inc %eax <== NOT EXECUTED
139c41: 89 06 mov %eax,(%esi) <== NOT EXECUTED
/* have we satisfied request ? */
if (*cls_added == count)
139c43: 3b 45 10 cmp 0x10(%ebp),%eax <== NOT EXECUTED
139c46: 75 17 jne 139c5f <fat_scan_fat_for_free_clusters+0x134><== NOT EXECUTED
{
fs_info->vol.next_cl = save_cln;
139c48: 89 5f 44 mov %ebx,0x44(%edi) <== NOT EXECUTED
if (fs_info->vol.free_cls != 0xFFFFFFFF)
139c4b: 8b 47 40 mov 0x40(%edi),%eax <== NOT EXECUTED
139c4e: 83 f8 ff cmp $0xffffffff,%eax <== NOT EXECUTED
139c51: 74 05 je 139c58 <fat_scan_fat_for_free_clusters+0x12d><== NOT EXECUTED
fs_info->vol.free_cls -= (*cls_added);
139c53: 2b 06 sub (%esi),%eax <== NOT EXECUTED
139c55: 89 47 40 mov %eax,0x40(%edi) <== NOT EXECUTED
*last_cl = save_cln;
139c58: 8b 45 18 mov 0x18(%ebp),%eax <== NOT EXECUTED
139c5b: 89 18 mov %ebx,(%eax) <== NOT EXECUTED
139c5d: eb 31 jmp 139c90 <fat_scan_fat_for_free_clusters+0x165><== NOT EXECUTED
fat_buf_release(fs_info);
return rc;
139c5f: 89 d9 mov %ebx,%ecx <== NOT EXECUTED
}
}
i++;
cl4find++;
139c61: 43 inc %ebx <== NOT EXECUTED
if (cl4find >= data_cls_val)
139c62: 3b 5d d0 cmp -0x30(%ebp),%ebx <== NOT EXECUTED
139c65: 72 05 jb 139c6c <fat_scan_fat_for_free_clusters+0x141><== NOT EXECUTED
139c67: bb 02 00 00 00 mov $0x2,%ebx <== NOT EXECUTED
*last_cl = save_cln;
fat_buf_release(fs_info);
return rc;
}
}
i++;
139c6c: 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)
139c6f: 8b 45 d0 mov -0x30(%ebp),%eax <== NOT EXECUTED
139c72: 39 45 d4 cmp %eax,-0x2c(%ebp) <== NOT EXECUTED
139c75: 0f 82 01 ff ff ff jb 139b7c <fat_scan_fat_for_free_clusters+0x51><== NOT EXECUTED
cl4find++;
if (cl4find >= data_cls_val)
cl4find = 2;
}
fs_info->vol.next_cl = save_cln;
139c7b: 89 4f 44 mov %ecx,0x44(%edi) <== NOT EXECUTED
if (fs_info->vol.free_cls != 0xFFFFFFFF)
139c7e: 8b 47 40 mov 0x40(%edi),%eax <== NOT EXECUTED
139c81: 83 f8 ff cmp $0xffffffff,%eax <== NOT EXECUTED
139c84: 74 05 je 139c8b <fat_scan_fat_for_free_clusters+0x160><== NOT EXECUTED
fs_info->vol.free_cls -= (*cls_added);
139c86: 2b 06 sub (%esi),%eax <== NOT EXECUTED
139c88: 89 47 40 mov %eax,0x40(%edi) <== NOT EXECUTED
*last_cl = save_cln;
139c8b: 8b 45 18 mov 0x18(%ebp),%eax <== NOT EXECUTED
139c8e: 89 08 mov %ecx,(%eax) <== NOT EXECUTED
fat_buf_release(fs_info);
139c90: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
139c93: 57 push %edi <== NOT EXECUTED
139c94: e8 ce b9 fe ff call 125667 <fat_buf_release> <== NOT EXECUTED
139c99: 31 f6 xor %esi,%esi <== NOT EXECUTED
return RC_OK;
139c9b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
139c9e: 89 f0 mov %esi,%eax <== NOT EXECUTED
139ca0: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
139ca3: 5b pop %ebx <== NOT EXECUTED
139ca4: 5e pop %esi <== NOT EXECUTED
139ca5: 5f pop %edi <== NOT EXECUTED
139ca6: c9 leave <== NOT EXECUTED
139ca7: c3 ret <== NOT EXECUTED
001396fc <fat_set_fat_cluster>:
fat_set_fat_cluster(
rtems_filesystem_mount_table_entry_t *mt_entry,
uint32_t cln,
uint32_t in_val
)
{
1396fc: 55 push %ebp <== NOT EXECUTED
1396fd: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1396ff: 57 push %edi <== NOT EXECUTED
139700: 56 push %esi <== NOT EXECUTED
139701: 53 push %ebx <== NOT EXECUTED
139702: 83 ec 3c sub $0x3c,%esp <== NOT EXECUTED
139705: 8b 75 0c mov 0xc(%ebp),%esi <== NOT EXECUTED
int rc = RC_OK;
fat_fs_info_t *fs_info = mt_entry->fs_info;
139708: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
13970b: 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;
13970e: 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)) )
139715: 83 fe 01 cmp $0x1,%esi <== NOT EXECUTED
139718: 0f 86 e1 01 00 00 jbe 1398ff <fat_set_fat_cluster+0x203><== NOT EXECUTED
13971e: 8b 43 34 mov 0x34(%ebx),%eax <== NOT EXECUTED
139721: 40 inc %eax <== NOT EXECUTED
139722: 39 c6 cmp %eax,%esi <== NOT EXECUTED
139724: 0f 87 d5 01 00 00 ja 1398ff <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) +
13972a: 0f b6 43 0a movzbl 0xa(%ebx),%eax <== NOT EXECUTED
13972e: 89 c2 mov %eax,%edx <== NOT EXECUTED
139730: 83 e2 01 and $0x1,%edx <== NOT EXECUTED
139733: 74 08 je 13973d <fat_set_fat_cluster+0x41><== NOT EXECUTED
139735: 89 f7 mov %esi,%edi <== NOT EXECUTED
139737: d1 ef shr %edi <== NOT EXECUTED
139739: 01 f7 add %esi,%edi <== NOT EXECUTED
13973b: eb 0e jmp 13974b <fat_set_fat_cluster+0x4f><== NOT EXECUTED
13973d: 8d 3c 36 lea (%esi,%esi,1),%edi <== NOT EXECUTED
139740: a8 02 test $0x2,%al <== NOT EXECUTED
139742: 75 07 jne 13974b <fat_set_fat_cluster+0x4f><== NOT EXECUTED
139744: 8d 3c b5 00 00 00 00 lea 0x0(,%esi,4),%edi <== NOT EXECUTED
13974b: 0f b6 4b 02 movzbl 0x2(%ebx),%ecx <== NOT EXECUTED
13974f: d3 ef shr %cl,%edi <== NOT EXECUTED
139751: 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);
139754: 85 d2 test %edx,%edx <== NOT EXECUTED
139756: 74 08 je 139760 <fat_set_fat_cluster+0x64><== NOT EXECUTED
139758: 89 f2 mov %esi,%edx <== NOT EXECUTED
13975a: d1 ea shr %edx <== NOT EXECUTED
13975c: 01 f2 add %esi,%edx <== NOT EXECUTED
13975e: eb 0e jmp 13976e <fat_set_fat_cluster+0x72><== NOT EXECUTED
139760: 8d 14 36 lea (%esi,%esi,1),%edx <== NOT EXECUTED
139763: a8 02 test $0x2,%al <== NOT EXECUTED
139765: 75 07 jne 13976e <fat_set_fat_cluster+0x72><== NOT EXECUTED
139767: 8d 14 b5 00 00 00 00 lea 0x0(,%esi,4),%edx <== NOT EXECUTED
13976e: 8b 03 mov (%ebx),%eax <== NOT EXECUTED
139770: 66 89 45 d6 mov %ax,-0x2a(%ebp) <== NOT EXECUTED
rc = fat_buf_access(fs_info, sec, FAT_OP_TYPE_READ, &block0);
139774: 8d 4d e4 lea -0x1c(%ebp),%ecx <== NOT EXECUTED
139777: 51 push %ecx <== NOT EXECUTED
139778: 6a 01 push $0x1 <== NOT EXECUTED
13977a: 57 push %edi <== NOT EXECUTED
13977b: 53 push %ebx <== NOT EXECUTED
13977c: 89 55 d0 mov %edx,-0x30(%ebp) <== NOT EXECUTED
13977f: e8 2a c0 fe ff call 1257ae <fat_buf_access> <== NOT EXECUTED
if (rc != RC_OK)
139784: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
139787: 85 c0 test %eax,%eax <== NOT EXECUTED
139789: 8b 55 d0 mov -0x30(%ebp),%edx <== NOT EXECUTED
13978c: 0f 85 7b 01 00 00 jne 13990d <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);
139792: 0f b7 4d d6 movzwl -0x2a(%ebp),%ecx <== NOT EXECUTED
139796: 49 dec %ecx <== NOT EXECUTED
139797: 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 )
139799: 8a 53 0a mov 0xa(%ebx),%dl <== NOT EXECUTED
13979c: 80 fa 02 cmp $0x2,%dl <== NOT EXECUTED
13979f: 0f 84 2b 01 00 00 je 1398d0 <fat_set_fat_cluster+0x1d4><== NOT EXECUTED
1397a5: 80 fa 04 cmp $0x4,%dl <== NOT EXECUTED
1397a8: 0f 84 31 01 00 00 je 1398df <fat_set_fat_cluster+0x1e3><== NOT EXECUTED
1397ae: fe ca dec %dl <== NOT EXECUTED
1397b0: 0f 85 49 01 00 00 jne 1398ff <fat_set_fat_cluster+0x203><== NOT EXECUTED
{
case FAT_FAT12:
if ( FAT_CLUSTER_IS_ODD(cln) )
1397b6: 83 e6 01 and $0x1,%esi <== NOT EXECUTED
1397b9: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
1397bc: 0f 84 89 00 00 00 je 13984b <fat_set_fat_cluster+0x14f><== NOT EXECUTED
{
fat16_clv = ((uint16_t )in_val) << FAT_FAT12_SHIFT;
1397c2: 8b 75 10 mov 0x10(%ebp),%esi <== NOT EXECUTED
1397c5: c1 e6 04 shl $0x4,%esi <== NOT EXECUTED
1397c8: 66 89 75 d6 mov %si,-0x2a(%ebp) <== NOT EXECUTED
*((uint8_t *)(block0->buffer + ofs)) =
(*((uint8_t *)(block0->buffer + ofs))) & 0x0F;
1397cc: 8b 52 20 mov 0x20(%edx),%edx <== NOT EXECUTED
1397cf: 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)) =
1397d1: 80 22 0f andb $0xf,(%edx) <== NOT EXECUTED
(*((uint8_t *)(block0->buffer + ofs))) & 0x0F;
*((uint8_t *)(block0->buffer + ofs)) =
(*((uint8_t *)(block0->buffer + ofs))) |
1397d4: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
1397d7: 8b 72 20 mov 0x20(%edx),%esi <== NOT EXECUTED
1397da: 01 ce add %ecx,%esi <== NOT EXECUTED
1397dc: 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)) =
1397df: 8a 55 d6 mov -0x2a(%ebp),%dl <== NOT EXECUTED
1397e2: 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;
1397e4: 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) )
1397eb: 0f b7 13 movzwl (%ebx),%edx <== NOT EXECUTED
1397ee: 4a dec %edx <== NOT EXECUTED
1397ef: 39 d1 cmp %edx,%ecx <== NOT EXECUTED
1397f1: 75 35 jne 139828 <fat_set_fat_cluster+0x12c><== NOT EXECUTED
{
rc = fat_buf_access(fs_info, sec + 1, FAT_OP_TYPE_READ,
1397f3: 8d 4d e4 lea -0x1c(%ebp),%ecx <== NOT EXECUTED
1397f6: 51 push %ecx <== NOT EXECUTED
1397f7: 6a 01 push $0x1 <== NOT EXECUTED
1397f9: 47 inc %edi <== NOT EXECUTED
1397fa: 57 push %edi <== NOT EXECUTED
1397fb: 53 push %ebx <== NOT EXECUTED
1397fc: e8 ad bf fe ff call 1257ae <fat_buf_access> <== NOT EXECUTED
&block0);
if (rc != RC_OK)
139801: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
139804: 85 c0 test %eax,%eax <== NOT EXECUTED
139806: 0f 85 01 01 00 00 jne 13990d <fat_set_fat_cluster+0x211><== NOT EXECUTED
return rc;
*((uint8_t *)(block0->buffer)) &= 0x00;
13980c: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
13980f: 8b 52 20 mov 0x20(%edx),%edx <== NOT EXECUTED
139812: c6 02 00 movb $0x0,(%edx) <== NOT EXECUTED
*((uint8_t *)(block0->buffer)) =
(*((uint8_t *)(block0->buffer))) |
139815: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
139818: 8b 52 20 mov 0x20(%edx),%edx <== NOT EXECUTED
if (rc != RC_OK)
return rc;
*((uint8_t *)(block0->buffer)) &= 0x00;
*((uint8_t *)(block0->buffer)) =
13981b: 66 8b 4d d6 mov -0x2a(%ebp),%cx <== NOT EXECUTED
13981f: 66 c1 e9 08 shr $0x8,%cx <== NOT EXECUTED
139823: e9 83 00 00 00 jmp 1398ab <fat_set_fat_cluster+0x1af><== NOT EXECUTED
fat_buf_mark_modified(fs_info);
}
else
{
*((uint8_t *)(block0->buffer + ofs + 1)) &= 0x00;
139828: 8d 51 01 lea 0x1(%ecx),%edx <== NOT EXECUTED
13982b: 8b 5d e4 mov -0x1c(%ebp),%ebx <== NOT EXECUTED
13982e: 8b 5b 20 mov 0x20(%ebx),%ebx <== NOT EXECUTED
139831: 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))) |
139836: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED
139839: 03 51 20 add 0x20(%ecx),%edx <== NOT EXECUTED
}
else
{
*((uint8_t *)(block0->buffer + ofs + 1)) &= 0x00;
*((uint8_t *)(block0->buffer + ofs + 1)) =
13983c: 66 8b 4d d6 mov -0x2a(%ebp),%cx <== NOT EXECUTED
139840: 66 c1 e9 08 shr $0x8,%cx <== NOT EXECUTED
139844: 08 0a or %cl,(%edx) <== NOT EXECUTED
139846: e9 c2 00 00 00 jmp 13990d <fat_set_fat_cluster+0x211><== NOT EXECUTED
(uint8_t )((fat16_clv & 0xFF00)>>8);
}
}
else
{
fat16_clv = ((uint16_t )in_val) & FAT_FAT12_MASK;
13984b: 8b 75 10 mov 0x10(%ebp),%esi <== NOT EXECUTED
13984e: 66 81 e6 ff 0f and $0xfff,%si <== NOT EXECUTED
139853: 66 89 75 d6 mov %si,-0x2a(%ebp) <== NOT EXECUTED
*((uint8_t *)(block0->buffer + ofs)) &= 0x00;
139857: 8b 52 20 mov 0x20(%edx),%edx <== NOT EXECUTED
13985a: c6 04 0a 00 movb $0x0,(%edx,%ecx,1) <== NOT EXECUTED
*((uint8_t *)(block0->buffer + ofs)) =
(*((uint8_t *)(block0->buffer + ofs))) |
13985e: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
139861: 8b 72 20 mov 0x20(%edx),%esi <== NOT EXECUTED
139864: 01 ce add %ecx,%esi <== NOT EXECUTED
139866: 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)) =
139869: 8a 55 d6 mov -0x2a(%ebp),%dl <== NOT EXECUTED
13986c: 08 16 or %dl,(%esi) <== NOT EXECUTED
13986e: 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) )
139875: 0f b7 13 movzwl (%ebx),%edx <== NOT EXECUTED
139878: 4a dec %edx <== NOT EXECUTED
139879: 39 d1 cmp %edx,%ecx <== NOT EXECUTED
13987b: 75 32 jne 1398af <fat_set_fat_cluster+0x1b3><== NOT EXECUTED
{
rc = fat_buf_access(fs_info, sec + 1, FAT_OP_TYPE_READ,
13987d: 8d 4d e4 lea -0x1c(%ebp),%ecx <== NOT EXECUTED
139880: 51 push %ecx <== NOT EXECUTED
139881: 6a 01 push $0x1 <== NOT EXECUTED
139883: 47 inc %edi <== NOT EXECUTED
139884: 57 push %edi <== NOT EXECUTED
139885: 53 push %ebx <== NOT EXECUTED
139886: e8 23 bf fe ff call 1257ae <fat_buf_access> <== NOT EXECUTED
&block0);
if (rc != RC_OK)
13988b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13988e: 85 c0 test %eax,%eax <== NOT EXECUTED
139890: 75 7b jne 13990d <fat_set_fat_cluster+0x211><== NOT EXECUTED
return rc;
*((uint8_t *)(block0->buffer)) =
(*((uint8_t *)(block0->buffer))) & 0xF0;
139892: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
139895: 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)) =
139898: 80 22 f0 andb $0xf0,(%edx) <== NOT EXECUTED
(*((uint8_t *)(block0->buffer))) & 0xF0;
*((uint8_t *)(block0->buffer)) =
(*((uint8_t *)(block0->buffer))) |
13989b: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
13989e: 8b 52 20 mov 0x20(%edx),%edx <== NOT EXECUTED
return rc;
*((uint8_t *)(block0->buffer)) =
(*((uint8_t *)(block0->buffer))) & 0xF0;
*((uint8_t *)(block0->buffer)) =
1398a1: 66 8b 75 d6 mov -0x2a(%ebp),%si <== NOT EXECUTED
1398a5: 66 c1 ee 08 shr $0x8,%si <== NOT EXECUTED
1398a9: 89 f1 mov %esi,%ecx <== NOT EXECUTED
1398ab: 08 0a or %cl,(%edx) <== NOT EXECUTED
1398ad: eb 47 jmp 1398f6 <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;
1398af: 41 inc %ecx <== NOT EXECUTED
1398b0: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
1398b3: 8b 5a 20 mov 0x20(%edx),%ebx <== NOT EXECUTED
1398b6: 8d 14 19 lea (%ecx,%ebx,1),%edx <== NOT EXECUTED
fat_buf_mark_modified(fs_info);
}
else
{
*((uint8_t *)(block0->buffer + ofs + 1)) =
1398b9: 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))) |
1398bc: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
1398bf: 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)) =
1398c2: 66 8b 75 d6 mov -0x2a(%ebp),%si <== NOT EXECUTED
1398c6: 66 c1 ee 08 shr $0x8,%si <== NOT EXECUTED
1398ca: 89 f2 mov %esi,%edx <== NOT EXECUTED
1398cc: 08 11 or %dl,(%ecx) <== NOT EXECUTED
1398ce: eb 3d jmp 13990d <fat_set_fat_cluster+0x211><== NOT EXECUTED
}
}
break;
case FAT_FAT16:
*((uint16_t *)(block0->buffer + ofs)) =
1398d0: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
1398d3: 8b 52 20 mov 0x20(%edx),%edx <== NOT EXECUTED
1398d6: 8b 75 10 mov 0x10(%ebp),%esi <== NOT EXECUTED
1398d9: 66 89 34 0a mov %si,(%edx,%ecx,1) <== NOT EXECUTED
1398dd: eb 17 jmp 1398f6 <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));
1398df: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
1398e2: 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)) =
1398e5: 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)) =
1398eb: 8b 75 10 mov 0x10(%ebp),%esi <== NOT EXECUTED
1398ee: 81 e6 ff ff ff 0f and $0xfffffff,%esi <== NOT EXECUTED
1398f4: 09 31 or %esi,(%ecx) <== NOT EXECUTED
1398f6: c6 83 80 00 00 00 01 movb $0x1,0x80(%ebx) <== NOT EXECUTED
1398fd: eb 0e jmp 13990d <fat_set_fat_cluster+0x211><== NOT EXECUTED
fat_buf_mark_modified(fs_info);
break;
default:
rtems_set_errno_and_return_minus_one(EIO);
1398ff: e8 94 34 00 00 call 13cd98 <__errno> <== NOT EXECUTED
139904: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
13990a: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
break;
}
return RC_OK;
}
13990d: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
139910: 5b pop %ebx <== NOT EXECUTED
139911: 5e pop %esi <== NOT EXECUTED
139912: 5f pop %edi <== NOT EXECUTED
139913: c9 leave <== NOT EXECUTED
139914: c3 ret <== NOT EXECUTED
00125a82 <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)
{
125a82: 55 push %ebp <== NOT EXECUTED
125a83: 89 e5 mov %esp,%ebp <== NOT EXECUTED
125a85: 57 push %edi <== NOT EXECUTED
125a86: 56 push %esi <== NOT EXECUTED
125a87: 53 push %ebx <== NOT EXECUTED
125a88: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
125a8b: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
int rc = RC_OK;
fat_fs_info_t *fs_info = mt_entry->fs_info;
125a8e: 8b 58 34 mov 0x34(%eax),%ebx <== NOT EXECUTED
int i = 0;
if (fs_info->vol.type & FAT_FAT32)
125a91: 31 f6 xor %esi,%esi <== NOT EXECUTED
125a93: f6 43 0a 04 testb $0x4,0xa(%ebx) <== NOT EXECUTED
125a97: 74 19 je 125ab2 <fat_shutdown_drive+0x30><== NOT EXECUTED
{
rc = fat_fat32_update_fsinfo_sector(mt_entry, fs_info->vol.free_cls,
125a99: 52 push %edx <== NOT EXECUTED
125a9a: ff 73 44 pushl 0x44(%ebx) <== NOT EXECUTED
125a9d: ff 73 40 pushl 0x40(%ebx) <== NOT EXECUTED
125aa0: 50 push %eax <== NOT EXECUTED
125aa1: e8 78 ff ff ff call 125a1e <fat_fat32_update_fsinfo_sector><== NOT EXECUTED
125aa6: 89 c6 mov %eax,%esi <== NOT EXECUTED
fs_info->vol.next_cl);
if ( rc != RC_OK )
125aa8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
125aab: 85 c0 test %eax,%eax <== NOT EXECUTED
125aad: 74 03 je 125ab2 <fat_shutdown_drive+0x30><== NOT EXECUTED
125aaf: 83 ce ff or $0xffffffff,%esi <== NOT EXECUTED
rc = -1;
}
fat_buf_release(fs_info);
125ab2: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
125ab5: 53 push %ebx <== NOT EXECUTED
125ab6: e8 ac fb ff ff call 125667 <fat_buf_release> <== NOT EXECUTED
if (rtems_bdbuf_syncdev(fs_info->vol.dev) != RTEMS_SUCCESSFUL)
125abb: 59 pop %ecx <== NOT EXECUTED
125abc: 5f pop %edi <== NOT EXECUTED
125abd: ff 73 58 pushl 0x58(%ebx) <== NOT EXECUTED
125ac0: ff 73 54 pushl 0x54(%ebx) <== NOT EXECUTED
125ac3: e8 5a 3c fe ff call 109722 <rtems_bdbuf_syncdev> <== NOT EXECUTED
125ac8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
125acb: 85 c0 test %eax,%eax <== NOT EXECUTED
125acd: 74 03 je 125ad2 <fat_shutdown_drive+0x50><== NOT EXECUTED
125acf: 83 ce ff or $0xffffffff,%esi <== NOT EXECUTED
125ad2: 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;
125ad4: 8b 43 64 mov 0x64(%ebx),%eax <== NOT EXECUTED
125ad7: 01 f8 add %edi,%eax <== NOT EXECUTED
125ad9: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
while ( (node = rtems_chain_get(the_chain)) != NULL )
125adc: eb 0c jmp 125aea <fat_shutdown_drive+0x68><== NOT EXECUTED
free(node);
125ade: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
125ae1: 50 push %eax <== NOT EXECUTED
125ae2: e8 b5 73 fe ff call 10ce9c <free> <== NOT EXECUTED
125ae7: 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 );
125aea: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
125aed: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
125af0: e8 6b bb fe ff call 111660 <_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 )
125af5: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
125af8: 85 c0 test %eax,%eax <== NOT EXECUTED
125afa: 75 e2 jne 125ade <fat_shutdown_drive+0x5c><== NOT EXECUTED
125afc: 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++)
125aff: 83 ff 18 cmp $0x18,%edi <== NOT EXECUTED
125b02: 75 d0 jne 125ad4 <fat_shutdown_drive+0x52><== NOT EXECUTED
125b04: 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;
125b07: 8b 43 68 mov 0x68(%ebx),%eax <== NOT EXECUTED
125b0a: 01 f8 add %edi,%eax <== NOT EXECUTED
125b0c: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
while ( (node = rtems_chain_get(the_chain)) != NULL )
125b0f: eb 0c jmp 125b1d <fat_shutdown_drive+0x9b><== NOT EXECUTED
free(node);
125b11: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
125b14: 50 push %eax <== NOT EXECUTED
125b15: e8 82 73 fe ff call 10ce9c <free> <== NOT EXECUTED
125b1a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
125b1d: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
125b20: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
125b23: e8 38 bb fe ff call 111660 <_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 )
125b28: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
125b2b: 85 c0 test %eax,%eax <== NOT EXECUTED
125b2d: 75 e2 jne 125b11 <fat_shutdown_drive+0x8f><== NOT EXECUTED
125b2f: 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++)
125b32: 83 ff 18 cmp $0x18,%edi <== NOT EXECUTED
125b35: 75 d0 jne 125b07 <fat_shutdown_drive+0x85><== NOT EXECUTED
while ( (node = rtems_chain_get(the_chain)) != NULL )
free(node);
}
free(fs_info->vhash);
125b37: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
125b3a: ff 73 64 pushl 0x64(%ebx) <== NOT EXECUTED
125b3d: e8 5a 73 fe ff call 10ce9c <free> <== NOT EXECUTED
free(fs_info->rhash);
125b42: 5a pop %edx <== NOT EXECUTED
125b43: ff 73 68 pushl 0x68(%ebx) <== NOT EXECUTED
125b46: e8 51 73 fe ff call 10ce9c <free> <== NOT EXECUTED
free(fs_info->uino);
125b4b: 58 pop %eax <== NOT EXECUTED
125b4c: ff 73 6c pushl 0x6c(%ebx) <== NOT EXECUTED
125b4f: e8 48 73 fe ff call 10ce9c <free> <== NOT EXECUTED
free(fs_info->sec_buf);
125b54: 5f pop %edi <== NOT EXECUTED
125b55: ff b3 88 00 00 00 pushl 0x88(%ebx) <== NOT EXECUTED
125b5b: e8 3c 73 fe ff call 10ce9c <free> <== NOT EXECUTED
rtems_disk_release(fs_info->vol.dd);
125b60: 59 pop %ecx <== NOT EXECUTED
125b61: ff 73 5c pushl 0x5c(%ebx) <== NOT EXECUTED
125b64: e8 0b 63 fe ff call 10be74 <rtems_disk_release> <== NOT EXECUTED
if (rc)
125b69: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
125b6c: 85 f6 test %esi,%esi <== NOT EXECUTED
125b6e: 74 0b je 125b7b <fat_shutdown_drive+0xf9><== NOT EXECUTED
errno = EIO;
125b70: e8 23 72 01 00 call 13cd98 <__errno> <== NOT EXECUTED
125b75: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
return rc;
}
125b7b: 89 f0 mov %esi,%eax <== NOT EXECUTED
125b7d: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
125b80: 5b pop %ebx <== NOT EXECUTED
125b81: 5e pop %esi <== NOT EXECUTED
125b82: 5f pop %edi <== NOT EXECUTED
125b83: c9 leave <== NOT EXECUTED
125b84: c3 ret <== NOT EXECUTED
0013a038 <fchdir>:
#include <rtems/seterr.h>
int fchdir(
int fd
)
{
13a038: 55 push %ebp <== NOT EXECUTED
13a039: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13a03b: 57 push %edi <== NOT EXECUTED
13a03c: 56 push %esi <== NOT EXECUTED
13a03d: 53 push %ebx <== NOT EXECUTED
13a03e: 83 ec 3c sub $0x3c,%esp <== NOT EXECUTED
13a041: 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 );
13a044: 3b 1d 44 01 16 00 cmp 0x160144,%ebx <== NOT EXECUTED
13a04a: 73 0f jae 13a05b <fchdir+0x23> <== NOT EXECUTED
iop = rtems_libio_iop( fd );
13a04c: c1 e3 06 shl $0x6,%ebx <== NOT EXECUTED
13a04f: 03 1d 54 7a 16 00 add 0x167a54,%ebx <== NOT EXECUTED
rtems_libio_check_is_open(iop);
13a055: f6 43 15 01 testb $0x1,0x15(%ebx) <== NOT EXECUTED
13a059: 75 10 jne 13a06b <fchdir+0x33> <== NOT EXECUTED
13a05b: e8 38 2d 00 00 call 13cd98 <__errno> <== NOT EXECUTED
13a060: c7 00 09 00 00 00 movl $0x9,(%eax) <== NOT EXECUTED
13a066: e9 83 00 00 00 jmp 13a0ee <fchdir+0xb6> <== NOT EXECUTED
/*
* Verify you can change directory into this node.
*/
if ( !iop->pathinfo.ops ) {
13a06b: 8b 43 24 mov 0x24(%ebx),%eax <== NOT EXECUTED
13a06e: 85 c0 test %eax,%eax <== NOT EXECUTED
13a070: 74 07 je 13a079 <fchdir+0x41> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
if ( !iop->pathinfo.ops->node_type_h ) {
13a072: 8b 40 10 mov 0x10(%eax),%eax <== NOT EXECUTED
13a075: 85 c0 test %eax,%eax <== NOT EXECUTED
13a077: 75 0d jne 13a086 <fchdir+0x4e> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
13a079: e8 1a 2d 00 00 call 13cd98 <__errno> <== NOT EXECUTED
13a07e: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
13a084: eb 68 jmp 13a0ee <fchdir+0xb6> <== NOT EXECUTED
}
if ( (*iop->pathinfo.ops->node_type_h)( &iop->pathinfo ) !=
13a086: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13a089: 83 c3 18 add $0x18,%ebx <== NOT EXECUTED
13a08c: 53 push %ebx <== NOT EXECUTED
13a08d: ff d0 call *%eax <== NOT EXECUTED
13a08f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13a092: 48 dec %eax <== NOT EXECUTED
13a093: 74 0d je 13a0a2 <fchdir+0x6a> <== NOT EXECUTED
RTEMS_FILESYSTEM_DIRECTORY ) {
rtems_set_errno_and_return_minus_one( ENOTDIR );
13a095: e8 fe 2c 00 00 call 13cd98 <__errno> <== NOT EXECUTED
13a09a: c7 00 14 00 00 00 movl $0x14,(%eax) <== NOT EXECUTED
13a0a0: eb 4c jmp 13a0ee <fchdir+0xb6> <== NOT EXECUTED
* but note the race condition. Threads who
* share their rtems_filesystem_current better
* be synchronized!
*/
saved = rtems_filesystem_current;
13a0a2: a1 fc 21 16 00 mov 0x1621fc,%eax <== NOT EXECUTED
13a0a7: 8d 7d c0 lea -0x40(%ebp),%edi <== NOT EXECUTED
13a0aa: 8d 70 04 lea 0x4(%eax),%esi <== NOT EXECUTED
13a0ad: b9 05 00 00 00 mov $0x5,%ecx <== NOT EXECUTED
13a0b2: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED
rtems_filesystem_current = iop->pathinfo;
13a0b4: 8d 78 04 lea 0x4(%eax),%edi <== NOT EXECUTED
13a0b7: b1 05 mov $0x5,%cl <== NOT EXECUTED
13a0b9: 89 de mov %ebx,%esi <== NOT EXECUTED
13a0bb: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED
/* clone the current node */
if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) {
13a0bd: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13a0c0: 6a 00 push $0x0 <== NOT EXECUTED
13a0c2: 8d 45 d4 lea -0x2c(%ebp),%eax <== NOT EXECUTED
13a0c5: 50 push %eax <== NOT EXECUTED
13a0c6: 6a 00 push $0x0 <== NOT EXECUTED
13a0c8: 6a 01 push $0x1 <== NOT EXECUTED
13a0ca: 68 fe 74 15 00 push $0x1574fe <== NOT EXECUTED
13a0cf: e8 5d 2d fd ff call 10ce31 <rtems_filesystem_evaluate_path><== NOT EXECUTED
13a0d4: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
13a0d7: 85 c0 test %eax,%eax <== NOT EXECUTED
13a0d9: 74 18 je 13a0f3 <fchdir+0xbb> <== NOT EXECUTED
/* cloning failed; restore original and bail out */
rtems_filesystem_current = saved;
13a0db: 8b 3d fc 21 16 00 mov 0x1621fc,%edi <== NOT EXECUTED
13a0e1: 83 c7 04 add $0x4,%edi <== NOT EXECUTED
13a0e4: 8d 75 c0 lea -0x40(%ebp),%esi <== NOT EXECUTED
13a0e7: b9 05 00 00 00 mov $0x5,%ecx <== NOT EXECUTED
13a0ec: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED
13a0ee: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
return -1;
13a0f1: eb 2f jmp 13a122 <fchdir+0xea> <== NOT EXECUTED
}
/* release the old one */
rtems_filesystem_freenode( &saved );
13a0f3: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED
13a0f6: 85 c0 test %eax,%eax <== NOT EXECUTED
13a0f8: 74 13 je 13a10d <fchdir+0xd5> <== NOT EXECUTED
13a0fa: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED
13a0fd: 85 c0 test %eax,%eax <== NOT EXECUTED
13a0ff: 74 0c je 13a10d <fchdir+0xd5> <== NOT EXECUTED
13a101: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13a104: 8d 55 c0 lea -0x40(%ebp),%edx <== NOT EXECUTED
13a107: 52 push %edx <== NOT EXECUTED
13a108: ff d0 call *%eax <== NOT EXECUTED
13a10a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_filesystem_current = loc;
13a10d: 8b 3d fc 21 16 00 mov 0x1621fc,%edi <== NOT EXECUTED
13a113: 83 c7 04 add $0x4,%edi <== NOT EXECUTED
13a116: 8d 75 d4 lea -0x2c(%ebp),%esi <== NOT EXECUTED
13a119: b9 05 00 00 00 mov $0x5,%ecx <== NOT EXECUTED
13a11e: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED
13a120: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
}
13a122: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13a125: 5b pop %ebx <== NOT EXECUTED
13a126: 5e pop %esi <== NOT EXECUTED
13a127: 5f pop %edi <== NOT EXECUTED
13a128: c9 leave <== NOT EXECUTED
13a129: c3 ret <== NOT EXECUTED
00127c54 <fchmod>:
int fchmod(
int fd,
mode_t mode
)
{
127c54: 55 push %ebp <== NOT EXECUTED
127c55: 89 e5 mov %esp,%ebp <== NOT EXECUTED
127c57: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
127c5a: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
127c5d: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
127c60: 3b 05 44 01 16 00 cmp 0x160144,%eax <== NOT EXECUTED
127c66: 73 0f jae 127c77 <fchmod+0x23> <== NOT EXECUTED
iop = rtems_libio_iop( fd );
127c68: c1 e0 06 shl $0x6,%eax <== NOT EXECUTED
127c6b: 03 05 54 7a 16 00 add 0x167a54,%eax <== NOT EXECUTED
rtems_libio_check_is_open(iop);
127c71: f6 40 15 01 testb $0x1,0x15(%eax) <== NOT EXECUTED
127c75: 75 0d jne 127c84 <fchmod+0x30> <== NOT EXECUTED
127c77: e8 1c 51 01 00 call 13cd98 <__errno> <== NOT EXECUTED
127c7c: c7 00 09 00 00 00 movl $0x9,(%eax) <== NOT EXECUTED
127c82: eb 28 jmp 127cac <fchmod+0x58> <== NOT EXECUTED
/*
* Now process the fchmod().
*/
if ( !iop->handlers->fchmod_h )
127c84: 8b 50 3c mov 0x3c(%eax),%edx <== NOT EXECUTED
127c87: 83 7a 1c 00 cmpl $0x0,0x1c(%edx) <== NOT EXECUTED
127c8b: 75 0d jne 127c9a <fchmod+0x46> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
127c8d: e8 06 51 01 00 call 13cd98 <__errno> <== NOT EXECUTED
127c92: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
127c98: eb 12 jmp 127cac <fchmod+0x58> <== NOT EXECUTED
return (*iop->pathinfo.handlers->fchmod_h)( &iop->pathinfo, mode );
127c9a: 8b 50 20 mov 0x20(%eax),%edx <== NOT EXECUTED
127c9d: 89 4d 0c mov %ecx,0xc(%ebp) <== NOT EXECUTED
127ca0: 83 c0 18 add $0x18,%eax <== NOT EXECUTED
127ca3: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED
127ca6: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED
}
127ca9: 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 );
127caa: ff e0 jmp *%eax <== NOT EXECUTED
}
127cac: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
127caf: c9 leave <== NOT EXECUTED
127cb0: c3 ret <== NOT EXECUTED
00127cb4 <fchown>:
int fchown(
int fd,
uid_t owner,
gid_t group
)
{
127cb4: 55 push %ebp <== NOT EXECUTED
127cb5: 89 e5 mov %esp,%ebp <== NOT EXECUTED
127cb7: 53 push %ebx <== NOT EXECUTED
127cb8: 83 ec 04 sub $0x4,%esp <== NOT EXECUTED
127cbb: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
127cbe: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED
127cc1: 8b 5d 10 mov 0x10(%ebp),%ebx <== NOT EXECUTED
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
127cc4: 3b 05 44 01 16 00 cmp 0x160144,%eax <== NOT EXECUTED
127cca: 73 11 jae 127cdd <fchown+0x29> <== NOT EXECUTED
iop = rtems_libio_iop( fd );
127ccc: c1 e0 06 shl $0x6,%eax <== NOT EXECUTED
127ccf: 03 05 54 7a 16 00 add 0x167a54,%eax <== NOT EXECUTED
rtems_libio_check_is_open(iop);
127cd5: 8b 50 14 mov 0x14(%eax),%edx <== NOT EXECUTED
127cd8: f6 c6 01 test $0x1,%dh <== NOT EXECUTED
127cdb: 75 0d jne 127cea <fchown+0x36> <== NOT EXECUTED
127cdd: e8 b6 50 01 00 call 13cd98 <__errno> <== NOT EXECUTED
127ce2: c7 00 09 00 00 00 movl $0x9,(%eax) <== NOT EXECUTED
127ce8: eb 40 jmp 127d2a <fchown+0x76> <== NOT EXECUTED
rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );
127cea: 80 e2 04 and $0x4,%dl <== NOT EXECUTED
127ced: 75 0d jne 127cfc <fchown+0x48> <== NOT EXECUTED
127cef: e8 a4 50 01 00 call 13cd98 <__errno> <== NOT EXECUTED
127cf4: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
127cfa: eb 2e jmp 127d2a <fchown+0x76> <== NOT EXECUTED
if ( !iop->pathinfo.ops->chown_h )
127cfc: 8b 50 24 mov 0x24(%eax),%edx <== NOT EXECUTED
127cff: 8b 52 18 mov 0x18(%edx),%edx <== NOT EXECUTED
127d02: 85 d2 test %edx,%edx <== NOT EXECUTED
127d04: 75 0d jne 127d13 <fchown+0x5f> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
127d06: e8 8d 50 01 00 call 13cd98 <__errno> <== NOT EXECUTED
127d0b: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
127d11: eb 17 jmp 127d2a <fchown+0x76> <== NOT EXECUTED
return (*iop->pathinfo.ops->chown_h)( &iop->pathinfo, owner, group );
127d13: 0f b7 db movzwl %bx,%ebx <== NOT EXECUTED
127d16: 89 5d 10 mov %ebx,0x10(%ebp) <== NOT EXECUTED
127d19: 0f b7 c9 movzwl %cx,%ecx <== NOT EXECUTED
127d1c: 89 4d 0c mov %ecx,0xc(%ebp) <== NOT EXECUTED
127d1f: 83 c0 18 add $0x18,%eax <== NOT EXECUTED
127d22: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED
}
127d25: 59 pop %ecx <== NOT EXECUTED
127d26: 5b pop %ebx <== NOT EXECUTED
127d27: 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 );
127d28: ff e2 jmp *%edx <== NOT EXECUTED
}
127d2a: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
127d2d: 5a pop %edx <== NOT EXECUTED
127d2e: 5b pop %ebx <== NOT EXECUTED
127d2f: c9 leave <== NOT EXECUTED
127d30: c3 ret <== NOT EXECUTED
0013a12c <fcntl>:
int fcntl(
int fd,
int cmd,
...
)
{
13a12c: 55 push %ebp
13a12d: 89 e5 mov %esp,%ebp
13a12f: 57 push %edi
13a130: 56 push %esi
13a131: 53 push %ebx
13a132: 83 ec 0c sub $0xc,%esp
13a135: 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, ...));
13a138: 8d 55 10 lea 0x10(%ebp),%edx
int fd2;
int flags;
int mask;
int ret = 0;
rtems_libio_check_fd( fd );
13a13b: 8b 0d 44 01 16 00 mov 0x160144,%ecx
13a141: 39 cb cmp %ecx,%ebx
13a143: 73 16 jae 13a15b <fcntl+0x2f> <== NEVER TAKEN
iop = rtems_libio_iop( fd );
13a145: a1 54 7a 16 00 mov 0x167a54,%eax
13a14a: c1 e3 06 shl $0x6,%ebx
13a14d: 8d 1c 18 lea (%eax,%ebx,1),%ebx
rtems_libio_check_is_open(iop);
13a150: 8b 73 14 mov 0x14(%ebx),%esi
13a153: f7 c6 00 01 00 00 test $0x100,%esi
13a159: 75 10 jne 13a16b <fcntl+0x3f> <== ALWAYS TAKEN
13a15b: e8 38 2c 00 00 call 13cd98 <__errno> <== NOT EXECUTED
13a160: c7 00 09 00 00 00 movl $0x9,(%eax) <== NOT EXECUTED
13a166: e9 fe 00 00 00 jmp 13a269 <fcntl+0x13d> <== NOT EXECUTED
/*
* This switch should contain all the cases from POSIX.
*/
switch ( cmd ) {
13a16b: 83 7d 0c 09 cmpl $0x9,0xc(%ebp)
13a16f: 0f 87 c1 00 00 00 ja 13a236 <fcntl+0x10a>
13a175: 8b 7d 0c mov 0xc(%ebp),%edi
13a178: ff 24 bd a8 d7 15 00 jmp *0x15d7a8(,%edi,4)
case F_DUPFD: /* dup */
fd2 = va_arg( ap, int );
13a17f: 8b 32 mov (%edx),%esi
if ( fd2 )
13a181: 85 f6 test %esi,%esi
13a183: 74 10 je 13a195 <fcntl+0x69> <== ALWAYS TAKEN
diop = rtems_libio_iop( fd2 );
13a185: 31 d2 xor %edx,%edx <== NOT EXECUTED
13a187: 39 ce cmp %ecx,%esi <== NOT EXECUTED
13a189: 73 1c jae 13a1a7 <fcntl+0x7b> <== NOT EXECUTED
13a18b: 89 f2 mov %esi,%edx <== NOT EXECUTED
13a18d: c1 e2 06 shl $0x6,%edx <== NOT EXECUTED
13a190: 8d 14 10 lea (%eax,%edx,1),%edx <== NOT EXECUTED
13a193: eb 12 jmp 13a1a7 <fcntl+0x7b> <== NOT EXECUTED
else {
/* allocate a file control block */
diop = rtems_libio_allocate();
13a195: e8 49 30 fd ff call 10d1e3 <rtems_libio_allocate>
13a19a: 89 c2 mov %eax,%edx
if ( diop == 0 ) {
13a19c: 83 ce ff or $0xffffffff,%esi
13a19f: 85 c0 test %eax,%eax
13a1a1: 0f 84 c5 00 00 00 je 13a26c <fcntl+0x140> <== NEVER TAKEN
ret = -1;
break;
}
}
diop->handlers = iop->handlers;
13a1a7: 8b 43 3c mov 0x3c(%ebx),%eax
13a1aa: 89 42 3c mov %eax,0x3c(%edx)
diop->file_info = iop->file_info;
13a1ad: 8b 43 38 mov 0x38(%ebx),%eax
13a1b0: 89 42 38 mov %eax,0x38(%edx)
diop->flags = iop->flags;
13a1b3: 8b 43 14 mov 0x14(%ebx),%eax
13a1b6: 89 42 14 mov %eax,0x14(%edx)
diop->pathinfo = iop->pathinfo;
13a1b9: 8d 7a 18 lea 0x18(%edx),%edi
13a1bc: 8d 73 18 lea 0x18(%ebx),%esi
13a1bf: b9 05 00 00 00 mov $0x5,%ecx
13a1c4: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
ret = (int) (diop - rtems_libio_iops);
13a1c6: 89 d6 mov %edx,%esi
13a1c8: 2b 35 54 7a 16 00 sub 0x167a54,%esi
13a1ce: c1 fe 06 sar $0x6,%esi
13a1d1: eb 70 jmp 13a243 <fcntl+0x117>
break;
case F_GETFD: /* get f_flags */
ret = ((iop->flags & LIBIO_FLAGS_CLOSE_ON_EXEC) != 0);
13a1d3: c1 ee 0b shr $0xb,%esi
13a1d6: 83 e6 01 and $0x1,%esi
13a1d9: eb 6c jmp 13a247 <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 ) )
13a1db: 83 3a 00 cmpl $0x0,(%edx)
13a1de: 74 08 je 13a1e8 <fcntl+0xbc> <== NEVER TAKEN
iop->flags |= LIBIO_FLAGS_CLOSE_ON_EXEC;
13a1e0: 81 ce 00 08 00 00 or $0x800,%esi
13a1e6: eb 06 jmp 13a1ee <fcntl+0xc2>
else
iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC;
13a1e8: 81 e6 ff f7 ff ff and $0xfffff7ff,%esi <== NOT EXECUTED
13a1ee: 89 73 14 mov %esi,0x14(%ebx)
13a1f1: 31 f6 xor %esi,%esi
13a1f3: eb 52 jmp 13a247 <fcntl+0x11b>
break;
case F_GETFL: /* more flags (cloexec) */
ret = rtems_libio_to_fcntl_flags( iop->flags );
13a1f5: 83 ec 0c sub $0xc,%esp
13a1f8: 56 push %esi
13a1f9: e8 9a 2e fd ff call 10d098 <rtems_libio_to_fcntl_flags>
13a1fe: 89 c6 mov %eax,%esi
13a200: 83 c4 10 add $0x10,%esp
13a203: eb 3e jmp 13a243 <fcntl+0x117>
break;
case F_SETFL:
flags = rtems_libio_fcntl_flags( va_arg( ap, int ) );
13a205: 83 ec 0c sub $0xc,%esp
13a208: ff 32 pushl (%edx)
13a20a: e8 5f 30 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);
13a20f: 25 01 02 00 00 and $0x201,%eax
13a214: 8b 53 14 mov 0x14(%ebx),%edx
13a217: 81 e2 fe fd ff ff and $0xfffffdfe,%edx
13a21d: 09 d0 or %edx,%eax
13a21f: 89 43 14 mov %eax,0x14(%ebx)
13a222: 31 f6 xor %esi,%esi
13a224: 83 c4 10 add $0x10,%esp
13a227: eb 1e jmp 13a247 <fcntl+0x11b>
errno = ENOTSUP;
ret = -1;
break;
case F_GETOWN: /* for sockets. */
errno = ENOTSUP;
13a229: e8 6a 2b 00 00 call 13cd98 <__errno>
13a22e: c7 00 86 00 00 00 movl $0x86,(%eax)
13a234: eb 33 jmp 13a269 <fcntl+0x13d>
ret = -1;
break;
default:
errno = EINVAL;
13a236: e8 5d 2b 00 00 call 13cd98 <__errno>
13a23b: c7 00 16 00 00 00 movl $0x16,(%eax)
13a241: eb 26 jmp 13a269 <fcntl+0x13d>
/*
* If we got this far successfully, then we give the optional
* filesystem specific handler a chance to process this.
*/
if (ret >= 0) {
13a243: 85 f6 test %esi,%esi
13a245: 78 25 js 13a26c <fcntl+0x140> <== NEVER TAKEN
if (iop->handlers->fcntl_h) {
13a247: 8b 43 3c mov 0x3c(%ebx),%eax
13a24a: 8b 40 30 mov 0x30(%eax),%eax
13a24d: 85 c0 test %eax,%eax
13a24f: 74 1b je 13a26c <fcntl+0x140> <== NEVER TAKEN
int err = (*iop->handlers->fcntl_h)( cmd, iop );
13a251: 52 push %edx
13a252: 52 push %edx
13a253: 53 push %ebx
13a254: ff 75 0c pushl 0xc(%ebp)
13a257: ff d0 call *%eax
13a259: 89 c3 mov %eax,%ebx
if (err) {
13a25b: 83 c4 10 add $0x10,%esp
13a25e: 85 c0 test %eax,%eax
13a260: 74 0a je 13a26c <fcntl+0x140> <== ALWAYS TAKEN
errno = err;
13a262: e8 31 2b 00 00 call 13cd98 <__errno> <== NOT EXECUTED
13a267: 89 18 mov %ebx,(%eax) <== NOT EXECUTED
13a269: 83 ce ff or $0xffffffff,%esi
va_list ap;
va_start( ap, cmd );
ret = vfcntl(fd,cmd,ap);
va_end(ap);
return ret;
}
13a26c: 89 f0 mov %esi,%eax
13a26e: 8d 65 f4 lea -0xc(%ebp),%esp
13a271: 5b pop %ebx
13a272: 5e pop %esi
13a273: 5f pop %edi
13a274: c9 leave
13a275: 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 21 12 00 cmp 0x122144,%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 20 60 12 00 add 0x126020,%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 20 a8 00 00 call 112854 <__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 09 a8 00 00 call 112854 <__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
0010da9c <fifo_open>:
*/
int fifo_open(
pipe_control_t **pipep,
rtems_libio_t *iop
)
{
10da9c: 55 push %ebp
10da9d: 89 e5 mov %esp,%ebp
10da9f: 57 push %edi
10daa0: 56 push %esi
10daa1: 53 push %ebx
10daa2: 83 ec 30 sub $0x30,%esp
)
{
pipe_control_t *pipe;
int err = 0;
if (rtems_semaphore_obtain(rtems_pipe_semaphore,
10daa5: 6a 00 push $0x0
10daa7: 6a 00 push $0x0
10daa9: ff 35 3c 53 12 00 pushl 0x12533c
10daaf: e8 44 cb ff ff call 10a5f8 <rtems_semaphore_obtain>
10dab4: 89 c2 mov %eax,%edx
10dab6: 83 c4 10 add $0x10,%esp
10dab9: be fc ff ff ff mov $0xfffffffc,%esi
10dabe: 85 c0 test %eax,%eax
10dac0: 0f 85 f8 02 00 00 jne 10ddbe <fifo_open+0x322> <== ALWAYS TAKEN
RTEMS_WAIT, RTEMS_NO_TIMEOUT) != RTEMS_SUCCESSFUL)
return -EINTR;
pipe = *pipep;
10dac6: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
10dac9: 8b 18 mov (%eax),%ebx <== NOT EXECUTED
if (pipe == NULL) {
10dacb: 85 db test %ebx,%ebx <== NOT EXECUTED
10dacd: 0f 85 0a 01 00 00 jne 10dbdd <fifo_open+0x141> <== NOT EXECUTED
{
static char c = 'a';
pipe_control_t *pipe;
int err = -ENOMEM;
pipe = malloc(sizeof(pipe_control_t));
10dad3: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10dad6: 6a 34 push $0x34 <== NOT EXECUTED
10dad8: 89 55 d4 mov %edx,-0x2c(%ebp) <== NOT EXECUTED
10dadb: e8 5c 9e ff ff call 10793c <malloc> <== NOT EXECUTED
10dae0: 89 c3 mov %eax,%ebx <== NOT EXECUTED
10dae2: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (pipe == NULL)
10dae4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10dae7: 85 c0 test %eax,%eax <== NOT EXECUTED
10dae9: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED
10daec: 0f 84 e4 00 00 00 je 10dbd6 <fifo_open+0x13a> <== NOT EXECUTED
return err;
memset(pipe, 0, sizeof(pipe_control_t));
10daf2: b9 0d 00 00 00 mov $0xd,%ecx <== NOT EXECUTED
10daf7: 89 c7 mov %eax,%edi <== NOT EXECUTED
10daf9: 89 d0 mov %edx,%eax <== NOT EXECUTED
10dafb: f3 ab rep stos %eax,%es:(%edi) <== NOT EXECUTED
pipe->Size = PIPE_BUF;
10dafd: c7 43 04 00 02 00 00 movl $0x200,0x4(%ebx) <== NOT EXECUTED
pipe->Buffer = malloc(pipe->Size);
10db04: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10db07: 68 00 02 00 00 push $0x200 <== NOT EXECUTED
10db0c: e8 2b 9e ff ff call 10793c <malloc> <== NOT EXECUTED
10db11: 89 03 mov %eax,(%ebx) <== NOT EXECUTED
if (! pipe->Buffer)
10db13: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10db16: 85 c0 test %eax,%eax <== NOT EXECUTED
10db18: 0f 84 ac 00 00 00 je 10dbca <fifo_open+0x12e> <== NOT EXECUTED
goto err_buf;
err = -ENOMEM;
if (rtems_barrier_create(
10db1e: 8d 43 2c lea 0x2c(%ebx),%eax <== NOT EXECUTED
10db21: 50 push %eax <== NOT EXECUTED
10db22: 6a 00 push $0x0 <== NOT EXECUTED
10db24: 6a 00 push $0x0 <== NOT EXECUTED
10db26: 0f be 05 98 34 12 00 movsbl 0x123498,%eax <== NOT EXECUTED
10db2d: 0d 00 72 49 50 or $0x50497200,%eax <== NOT EXECUTED
10db32: 50 push %eax <== NOT EXECUTED
10db33: e8 08 16 00 00 call 10f140 <rtems_barrier_create> <== NOT EXECUTED
10db38: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10db3b: 85 c0 test %eax,%eax <== NOT EXECUTED
10db3d: 75 7e jne 10dbbd <fifo_open+0x121> <== 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(
10db3f: 8d 43 30 lea 0x30(%ebx),%eax <== NOT EXECUTED
10db42: 50 push %eax <== NOT EXECUTED
10db43: 6a 00 push $0x0 <== NOT EXECUTED
10db45: 6a 00 push $0x0 <== NOT EXECUTED
10db47: 0f be 05 98 34 12 00 movsbl 0x123498,%eax <== NOT EXECUTED
10db4e: 0d 00 77 49 50 or $0x50497700,%eax <== NOT EXECUTED
10db53: 50 push %eax <== NOT EXECUTED
10db54: e8 e7 15 00 00 call 10f140 <rtems_barrier_create> <== NOT EXECUTED
10db59: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10db5c: 85 c0 test %eax,%eax <== NOT EXECUTED
10db5e: 75 4f jne 10dbaf <fifo_open+0x113> <== 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(
10db60: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10db63: 8d 43 28 lea 0x28(%ebx),%eax <== NOT EXECUTED
10db66: 50 push %eax <== NOT EXECUTED
10db67: 6a 00 push $0x0 <== NOT EXECUTED
10db69: 6a 10 push $0x10 <== NOT EXECUTED
10db6b: 6a 01 push $0x1 <== NOT EXECUTED
10db6d: 0f be 05 98 34 12 00 movsbl 0x123498,%eax <== NOT EXECUTED
10db74: 0d 00 73 49 50 or $0x50497300,%eax <== NOT EXECUTED
10db79: 50 push %eax <== NOT EXECUTED
10db7a: e8 4d c8 ff ff call 10a3cc <rtems_semaphore_create><== NOT EXECUTED
10db7f: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
10db82: 85 c0 test %eax,%eax <== NOT EXECUTED
10db84: 75 1b jne 10dba1 <fifo_open+0x105> <== NOT EXECUTED
#ifdef RTEMS_POSIX_API
pipe_interruptible(pipe);
#endif
*pipep = pipe;
if (c ++ == 'z')
10db86: a0 98 34 12 00 mov 0x123498,%al <== NOT EXECUTED
10db8b: 8d 50 01 lea 0x1(%eax),%edx <== NOT EXECUTED
10db8e: 88 15 98 34 12 00 mov %dl,0x123498 <== NOT EXECUTED
10db94: 3c 7a cmp $0x7a,%al <== NOT EXECUTED
10db96: 75 45 jne 10dbdd <fifo_open+0x141> <== NOT EXECUTED
c = 'a';
10db98: c6 05 98 34 12 00 61 movb $0x61,0x123498 <== NOT EXECUTED
10db9f: eb 3c jmp 10dbdd <fifo_open+0x141> <== NOT EXECUTED
return 0;
err_sem:
rtems_barrier_delete(pipe->writeBarrier);
10dba1: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10dba4: ff 73 30 pushl 0x30(%ebx) <== NOT EXECUTED
10dba7: e8 4c 16 00 00 call 10f1f8 <rtems_barrier_delete> <== NOT EXECUTED
10dbac: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
err_wbar:
rtems_barrier_delete(pipe->readBarrier);
10dbaf: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10dbb2: ff 76 2c pushl 0x2c(%esi) <== NOT EXECUTED
10dbb5: e8 3e 16 00 00 call 10f1f8 <rtems_barrier_delete> <== NOT EXECUTED
10dbba: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
err_rbar:
free(pipe->Buffer);
10dbbd: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10dbc0: ff 36 pushl (%esi) <== NOT EXECUTED
10dbc2: e8 d5 9a ff ff call 10769c <free> <== NOT EXECUTED
10dbc7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
err_buf:
free(pipe);
10dbca: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10dbcd: 56 push %esi <== NOT EXECUTED
10dbce: e8 c9 9a ff ff call 10769c <free> <== NOT EXECUTED
10dbd3: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10dbd6: be f4 ff ff ff mov $0xfffffff4,%esi <== NOT EXECUTED
10dbdb: eb 34 jmp 10dc11 <fifo_open+0x175> <== NOT EXECUTED
err = pipe_alloc(&pipe);
if (err)
goto out;
}
if (! PIPE_LOCK(pipe))
10dbdd: 50 push %eax <== NOT EXECUTED
10dbde: 6a 00 push $0x0 <== NOT EXECUTED
10dbe0: 6a 00 push $0x0 <== NOT EXECUTED
10dbe2: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
10dbe5: e8 0e ca ff ff call 10a5f8 <rtems_semaphore_obtain><== NOT EXECUTED
10dbea: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10dbed: 83 f8 01 cmp $0x1,%eax <== NOT EXECUTED
10dbf0: 19 f6 sbb %esi,%esi <== NOT EXECUTED
10dbf2: f7 d6 not %esi <== NOT EXECUTED
10dbf4: 83 e6 fc and $0xfffffffc,%esi <== NOT EXECUTED
err = -EINTR;
if (*pipep == NULL) {
10dbf7: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
10dbfa: 83 3a 00 cmpl $0x0,(%edx) <== NOT EXECUTED
10dbfd: 75 12 jne 10dc11 <fifo_open+0x175> <== NOT EXECUTED
if (err)
10dbff: 85 f6 test %esi,%esi <== NOT EXECUTED
10dc01: 74 09 je 10dc0c <fifo_open+0x170> <== NOT EXECUTED
pipe_free(pipe);
10dc03: 89 d8 mov %ebx,%eax <== NOT EXECUTED
10dc05: e8 87 fd ff ff call 10d991 <pipe_free> <== NOT EXECUTED
10dc0a: eb 05 jmp 10dc11 <fifo_open+0x175> <== NOT EXECUTED
else
*pipep = pipe;
10dc0c: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
10dc0f: 89 18 mov %ebx,(%eax) <== NOT EXECUTED
}
out:
rtems_semaphore_release(rtems_pipe_semaphore);
10dc11: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10dc14: ff 35 3c 53 12 00 pushl 0x12533c <== NOT EXECUTED
10dc1a: e8 c5 ca ff ff call 10a6e4 <rtems_semaphore_release><== NOT EXECUTED
pipe_control_t *pipe;
unsigned int prevCounter;
int err;
err = pipe_new(pipep);
if (err)
10dc1f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10dc22: 85 f6 test %esi,%esi <== NOT EXECUTED
10dc24: 0f 85 94 01 00 00 jne 10ddbe <fifo_open+0x322> <== NOT EXECUTED
return err;
pipe = *pipep;
10dc2a: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
10dc2d: 8b 1a mov (%edx),%ebx <== NOT EXECUTED
switch (LIBIO_ACCMODE(iop)) {
10dc2f: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
10dc32: 8b 42 14 mov 0x14(%edx),%eax <== NOT EXECUTED
10dc35: 83 e0 06 and $0x6,%eax <== NOT EXECUTED
10dc38: 83 f8 04 cmp $0x4,%eax <== NOT EXECUTED
10dc3b: 0f 84 91 00 00 00 je 10dcd2 <fifo_open+0x236> <== NOT EXECUTED
10dc41: 83 f8 06 cmp $0x6,%eax <== NOT EXECUTED
10dc44: 0f 84 10 01 00 00 je 10dd5a <fifo_open+0x2be> <== NOT EXECUTED
10dc4a: 83 f8 02 cmp $0x2,%eax <== NOT EXECUTED
10dc4d: 0f 85 49 01 00 00 jne 10dd9c <fifo_open+0x300> <== NOT EXECUTED
case LIBIO_FLAGS_READ:
pipe->readerCounter ++;
10dc53: ff 43 20 incl 0x20(%ebx) <== NOT EXECUTED
if (pipe->Readers ++ == 0)
10dc56: 8b 43 10 mov 0x10(%ebx),%eax <== NOT EXECUTED
10dc59: 8d 50 01 lea 0x1(%eax),%edx <== NOT EXECUTED
10dc5c: 89 53 10 mov %edx,0x10(%ebx) <== NOT EXECUTED
10dc5f: 85 c0 test %eax,%eax <== NOT EXECUTED
10dc61: 75 11 jne 10dc74 <fifo_open+0x1d8> <== NOT EXECUTED
PIPE_WAKEUPWRITERS(pipe);
10dc63: 57 push %edi <== NOT EXECUTED
10dc64: 57 push %edi <== NOT EXECUTED
10dc65: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
10dc68: 50 push %eax <== NOT EXECUTED
10dc69: ff 73 30 pushl 0x30(%ebx) <== NOT EXECUTED
10dc6c: e8 e7 15 00 00 call 10f258 <rtems_barrier_release> <== NOT EXECUTED
10dc71: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
if (pipe->Writers == 0) {
10dc74: 83 7b 14 00 cmpl $0x0,0x14(%ebx) <== NOT EXECUTED
10dc78: 0f 85 1e 01 00 00 jne 10dd9c <fifo_open+0x300> <== NOT EXECUTED
/* Not an error */
if (LIBIO_NODELAY(iop))
10dc7e: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
10dc81: f6 40 14 01 testb $0x1,0x14(%eax) <== NOT EXECUTED
10dc85: 0f 85 11 01 00 00 jne 10dd9c <fifo_open+0x300> <== NOT EXECUTED
break;
prevCounter = pipe->writerCounter;
10dc8b: 8b 7b 24 mov 0x24(%ebx),%edi <== NOT EXECUTED
err = -EINTR;
/* Wait until a writer opens the pipe */
do {
PIPE_UNLOCK(pipe);
10dc8e: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10dc91: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
10dc94: e8 4b ca ff ff call 10a6e4 <rtems_semaphore_release><== NOT EXECUTED
if (! PIPE_READWAIT(pipe))
10dc99: 5a pop %edx <== NOT EXECUTED
10dc9a: 59 pop %ecx <== NOT EXECUTED
10dc9b: 6a 00 push $0x0 <== NOT EXECUTED
10dc9d: ff 73 2c pushl 0x2c(%ebx) <== NOT EXECUTED
10dca0: e8 0b 16 00 00 call 10f2b0 <rtems_barrier_wait> <== NOT EXECUTED
10dca5: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10dca8: 85 c0 test %eax,%eax <== NOT EXECUTED
10dcaa: 0f 85 f9 00 00 00 jne 10dda9 <fifo_open+0x30d> <== NOT EXECUTED
goto out_error;
if (! PIPE_LOCK(pipe))
10dcb0: 50 push %eax <== NOT EXECUTED
10dcb1: 6a 00 push $0x0 <== NOT EXECUTED
10dcb3: 6a 00 push $0x0 <== NOT EXECUTED
10dcb5: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
10dcb8: e8 3b c9 ff ff call 10a5f8 <rtems_semaphore_obtain><== NOT EXECUTED
10dcbd: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10dcc0: 85 c0 test %eax,%eax <== NOT EXECUTED
10dcc2: 0f 85 e1 00 00 00 jne 10dda9 <fifo_open+0x30d> <== NOT EXECUTED
goto out_error;
} while (prevCounter == pipe->writerCounter);
10dcc8: 3b 7b 24 cmp 0x24(%ebx),%edi <== NOT EXECUTED
10dccb: 74 c1 je 10dc8e <fifo_open+0x1f2> <== NOT EXECUTED
10dccd: e9 ca 00 00 00 jmp 10dd9c <fifo_open+0x300> <== NOT EXECUTED
}
break;
case LIBIO_FLAGS_WRITE:
pipe->writerCounter ++;
10dcd2: ff 43 24 incl 0x24(%ebx) <== NOT EXECUTED
if (pipe->Writers ++ == 0)
10dcd5: 8b 43 14 mov 0x14(%ebx),%eax <== NOT EXECUTED
10dcd8: 8d 50 01 lea 0x1(%eax),%edx <== NOT EXECUTED
10dcdb: 89 53 14 mov %edx,0x14(%ebx) <== NOT EXECUTED
10dcde: 85 c0 test %eax,%eax <== NOT EXECUTED
10dce0: 75 11 jne 10dcf3 <fifo_open+0x257> <== NOT EXECUTED
PIPE_WAKEUPREADERS(pipe);
10dce2: 57 push %edi <== NOT EXECUTED
10dce3: 57 push %edi <== NOT EXECUTED
10dce4: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
10dce7: 50 push %eax <== NOT EXECUTED
10dce8: ff 73 2c pushl 0x2c(%ebx) <== NOT EXECUTED
10dceb: e8 68 15 00 00 call 10f258 <rtems_barrier_release> <== NOT EXECUTED
10dcf0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) {
10dcf3: 83 7b 10 00 cmpl $0x0,0x10(%ebx) <== NOT EXECUTED
10dcf7: 0f 85 9f 00 00 00 jne 10dd9c <fifo_open+0x300> <== NOT EXECUTED
10dcfd: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
10dd00: f6 42 14 01 testb $0x1,0x14(%edx) <== NOT EXECUTED
10dd04: 74 18 je 10dd1e <fifo_open+0x282> <== NOT EXECUTED
PIPE_UNLOCK(pipe);
10dd06: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10dd09: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
10dd0c: e8 d3 c9 ff ff call 10a6e4 <rtems_semaphore_release><== NOT EXECUTED
10dd11: be fa ff ff ff mov $0xfffffffa,%esi <== NOT EXECUTED
err = -ENXIO;
goto out_error;
10dd16: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10dd19: e9 90 00 00 00 jmp 10ddae <fifo_open+0x312> <== NOT EXECUTED
}
if (pipe->Readers == 0) {
prevCounter = pipe->readerCounter;
10dd1e: 8b 7b 20 mov 0x20(%ebx),%edi <== NOT EXECUTED
err = -EINTR;
do {
PIPE_UNLOCK(pipe);
10dd21: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10dd24: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
10dd27: e8 b8 c9 ff ff call 10a6e4 <rtems_semaphore_release><== NOT EXECUTED
if (! PIPE_WRITEWAIT(pipe))
10dd2c: 5a pop %edx <== NOT EXECUTED
10dd2d: 59 pop %ecx <== NOT EXECUTED
10dd2e: 6a 00 push $0x0 <== NOT EXECUTED
10dd30: ff 73 30 pushl 0x30(%ebx) <== NOT EXECUTED
10dd33: e8 78 15 00 00 call 10f2b0 <rtems_barrier_wait> <== NOT EXECUTED
10dd38: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10dd3b: 85 c0 test %eax,%eax <== NOT EXECUTED
10dd3d: 75 6a jne 10dda9 <fifo_open+0x30d> <== NOT EXECUTED
goto out_error;
if (! PIPE_LOCK(pipe))
10dd3f: 50 push %eax <== NOT EXECUTED
10dd40: 6a 00 push $0x0 <== NOT EXECUTED
10dd42: 6a 00 push $0x0 <== NOT EXECUTED
10dd44: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
10dd47: e8 ac c8 ff ff call 10a5f8 <rtems_semaphore_obtain><== NOT EXECUTED
10dd4c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10dd4f: 85 c0 test %eax,%eax <== NOT EXECUTED
10dd51: 75 56 jne 10dda9 <fifo_open+0x30d> <== NOT EXECUTED
goto out_error;
} while (prevCounter == pipe->readerCounter);
10dd53: 3b 7b 20 cmp 0x20(%ebx),%edi <== NOT EXECUTED
10dd56: 74 c9 je 10dd21 <fifo_open+0x285> <== NOT EXECUTED
10dd58: eb 42 jmp 10dd9c <fifo_open+0x300> <== NOT EXECUTED
}
break;
case LIBIO_FLAGS_READ_WRITE:
pipe->readerCounter ++;
10dd5a: ff 43 20 incl 0x20(%ebx) <== NOT EXECUTED
if (pipe->Readers ++ == 0)
10dd5d: 8b 43 10 mov 0x10(%ebx),%eax <== NOT EXECUTED
10dd60: 8d 50 01 lea 0x1(%eax),%edx <== NOT EXECUTED
10dd63: 89 53 10 mov %edx,0x10(%ebx) <== NOT EXECUTED
10dd66: 85 c0 test %eax,%eax <== NOT EXECUTED
10dd68: 75 11 jne 10dd7b <fifo_open+0x2df> <== NOT EXECUTED
PIPE_WAKEUPWRITERS(pipe);
10dd6a: 57 push %edi <== NOT EXECUTED
10dd6b: 57 push %edi <== NOT EXECUTED
10dd6c: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
10dd6f: 50 push %eax <== NOT EXECUTED
10dd70: ff 73 30 pushl 0x30(%ebx) <== NOT EXECUTED
10dd73: e8 e0 14 00 00 call 10f258 <rtems_barrier_release> <== NOT EXECUTED
10dd78: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
pipe->writerCounter ++;
10dd7b: ff 43 24 incl 0x24(%ebx) <== NOT EXECUTED
if (pipe->Writers ++ == 0)
10dd7e: 8b 43 14 mov 0x14(%ebx),%eax <== NOT EXECUTED
10dd81: 8d 50 01 lea 0x1(%eax),%edx <== NOT EXECUTED
10dd84: 89 53 14 mov %edx,0x14(%ebx) <== NOT EXECUTED
10dd87: 85 c0 test %eax,%eax <== NOT EXECUTED
10dd89: 75 11 jne 10dd9c <fifo_open+0x300> <== NOT EXECUTED
PIPE_WAKEUPREADERS(pipe);
10dd8b: 51 push %ecx <== NOT EXECUTED
10dd8c: 51 push %ecx <== NOT EXECUTED
10dd8d: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
10dd90: 50 push %eax <== NOT EXECUTED
10dd91: ff 73 2c pushl 0x2c(%ebx) <== NOT EXECUTED
10dd94: e8 bf 14 00 00 call 10f258 <rtems_barrier_release> <== NOT EXECUTED
10dd99: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
break;
}
PIPE_UNLOCK(pipe);
10dd9c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10dd9f: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
10dda2: e8 3d c9 ff ff call 10a6e4 <rtems_semaphore_release><== NOT EXECUTED
10dda7: eb 12 jmp 10ddbb <fifo_open+0x31f> <== NOT EXECUTED
return 0;
10dda9: be fc ff ff ff mov $0xfffffffc,%esi <== NOT EXECUTED
out_error:
pipe_release(pipep, iop);
10ddae: 52 push %edx <== NOT EXECUTED
10ddaf: 52 push %edx <== NOT EXECUTED
10ddb0: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
10ddb3: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
10ddb6: e8 11 fc ff ff call 10d9cc <pipe_release> <== NOT EXECUTED
return err;
10ddbb: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
10ddbe: 89 f0 mov %esi,%eax
10ddc0: 8d 65 f4 lea -0xc(%ebp),%esp
10ddc3: 5b pop %ebx
10ddc4: 5e pop %esi
10ddc5: 5f pop %edi
10ddc6: c9 leave
10ddc7: 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 21 12 00 cmp 0x122144,%eax
108072: 73 0f jae 108083 <fpathconf+0x23>
iop = rtems_libio_iop(fd);
108074: c1 e0 06 shl $0x6,%eax
108077: 03 05 20 60 12 00 add 0x126020,%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 cc a7 00 00 call 112854 <__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 50 0a 12 00 jmp *0x120a50(,%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 74 a7 00 00 call 112854 <__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 64 55 12 00 incl 0x125564
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 28 58 12 00 03 cmpl $0x3,0x125828
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 f0 39 12 00 mov 0x1239f0,%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 70 16 12 00 pushl 0x121670
1076ea: e8 19 46 00 00 call 10bd08 <_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 70 16 12 00 mov 0x121670,%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 b7 ef 11 00 push $0x11efb7 <== 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
00128dd4 <free_user_env>:
* NOTE: this must be called with
* thread dispatching disabled!
*/
static void
free_user_env(void *venv)
{
128dd4: 55 push %ebp <== NOT EXECUTED
128dd5: 89 e5 mov %esp,%ebp <== NOT EXECUTED
128dd7: 53 push %ebx <== NOT EXECUTED
128dd8: 83 ec 04 sub $0x4,%esp <== NOT EXECUTED
128ddb: 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
128dde: 81 fb a4 7a 16 00 cmp $0x167aa4,%ebx <== NOT EXECUTED
128de4: 74 40 je 128e26 <free_user_env+0x52> <== NOT EXECUTED
#ifdef HAVE_USERENV_REFCNT
&& --env->refcnt <= 0
#endif
) {
rtems_filesystem_freenode( &env->current_directory);
128de6: 8b 43 10 mov 0x10(%ebx),%eax <== NOT EXECUTED
128de9: 85 c0 test %eax,%eax <== NOT EXECUTED
128deb: 74 13 je 128e00 <free_user_env+0x2c> <== NOT EXECUTED
128ded: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED
128df0: 85 c0 test %eax,%eax <== NOT EXECUTED
128df2: 74 0c je 128e00 <free_user_env+0x2c> <== NOT EXECUTED
128df4: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
128df7: 8d 53 04 lea 0x4(%ebx),%edx <== NOT EXECUTED
128dfa: 52 push %edx <== NOT EXECUTED
128dfb: ff d0 call *%eax <== NOT EXECUTED
128dfd: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_filesystem_freenode( &env->root_directory);
128e00: 8b 43 24 mov 0x24(%ebx),%eax <== NOT EXECUTED
128e03: 85 c0 test %eax,%eax <== NOT EXECUTED
128e05: 74 13 je 128e1a <free_user_env+0x46> <== NOT EXECUTED
128e07: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED
128e0a: 85 c0 test %eax,%eax <== NOT EXECUTED
128e0c: 74 0c je 128e1a <free_user_env+0x46> <== NOT EXECUTED
128e0e: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
128e11: 8d 53 18 lea 0x18(%ebx),%edx <== NOT EXECUTED
128e14: 52 push %edx <== NOT EXECUTED
128e15: ff d0 call *%eax <== NOT EXECUTED
128e17: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
free(env);
128e1a: 89 5d 08 mov %ebx,0x8(%ebp) <== NOT EXECUTED
}
}
128e1d: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
128e20: c9 leave <== NOT EXECUTED
&& --env->refcnt <= 0
#endif
) {
rtems_filesystem_freenode( &env->current_directory);
rtems_filesystem_freenode( &env->root_directory);
free(env);
128e21: e9 76 40 fe ff jmp 10ce9c <free> <== NOT EXECUTED
}
}
128e26: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
128e29: c9 leave <== NOT EXECUTED
128e2a: c3 ret <== NOT EXECUTED
0011ce74 <fstat>:
int fstat(
int fd,
struct stat *sbuf
)
{
11ce74: 55 push %ebp
11ce75: 89 e5 mov %esp,%ebp
11ce77: 57 push %edi
11ce78: 53 push %ebx
11ce79: 8b 55 08 mov 0x8(%ebp),%edx
11ce7c: 8b 5d 0c mov 0xc(%ebp),%ebx
/*
* Check to see if we were passed a valid pointer.
*/
if ( !sbuf )
11ce7f: 85 db test %ebx,%ebx
11ce81: 75 0d jne 11ce90 <fstat+0x1c>
rtems_set_errno_and_return_minus_one( EFAULT );
11ce83: e8 38 4a ff ff call 1118c0 <__errno>
11ce88: c7 00 0e 00 00 00 movl $0xe,(%eax)
11ce8e: eb 5d jmp 11ceed <fstat+0x79>
/*
* Now process the stat() request.
*/
iop = rtems_libio_iop( fd );
11ce90: 3b 15 64 16 12 00 cmp 0x121664,%edx
11ce96: 73 16 jae 11ceae <fstat+0x3a>
11ce98: c1 e2 06 shl $0x6,%edx
11ce9b: 03 15 40 55 12 00 add 0x125540,%edx
rtems_libio_check_fd( fd );
rtems_libio_check_is_open(iop);
11cea1: f6 42 15 01 testb $0x1,0x15(%edx)
11cea5: 74 07 je 11ceae <fstat+0x3a> <== NEVER TAKEN
if ( !iop->handlers )
11cea7: 8b 42 3c mov 0x3c(%edx),%eax
11ceaa: 85 c0 test %eax,%eax
11ceac: 75 0d jne 11cebb <fstat+0x47> <== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( EBADF );
11ceae: e8 0d 4a ff ff call 1118c0 <__errno>
11ceb3: c7 00 09 00 00 00 movl $0x9,(%eax)
11ceb9: eb 32 jmp 11ceed <fstat+0x79>
if ( !iop->handlers->fstat_h )
11cebb: 83 78 18 00 cmpl $0x0,0x18(%eax)
11cebf: 75 0d jne 11cece <fstat+0x5a> <== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( ENOTSUP );
11cec1: e8 fa 49 ff ff call 1118c0 <__errno> <== NOT EXECUTED
11cec6: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
11cecc: eb 1f jmp 11ceed <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) );
11cece: b9 12 00 00 00 mov $0x12,%ecx
11ced3: 31 c0 xor %eax,%eax
11ced5: 89 df mov %ebx,%edi
11ced7: f3 ab rep stos %eax,%es:(%edi)
return (*iop->handlers->fstat_h)( &iop->pathinfo, sbuf );
11ced9: 8b 42 3c mov 0x3c(%edx),%eax
11cedc: 89 5d 0c mov %ebx,0xc(%ebp)
11cedf: 83 c2 18 add $0x18,%edx
11cee2: 89 55 08 mov %edx,0x8(%ebp)
11cee5: 8b 40 18 mov 0x18(%eax),%eax
}
11cee8: 5b pop %ebx
11cee9: 5f pop %edi
11ceea: 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 );
11ceeb: ff e0 jmp *%eax
}
11ceed: 83 c8 ff or $0xffffffff,%eax
11cef0: 5b pop %ebx
11cef1: 5f pop %edi
11cef2: c9 leave
11cef3: c3 ret
00127dcc <fsync>:
#include <rtems/seterr.h>
int fsync(
int fd
)
{
127dcc: 55 push %ebp
127dcd: 89 e5 mov %esp,%ebp
127dcf: 83 ec 08 sub $0x8,%esp
127dd2: 8b 45 08 mov 0x8(%ebp),%eax
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
127dd5: 3b 05 44 01 16 00 cmp 0x160144,%eax
127ddb: 73 16 jae 127df3 <fsync+0x27> <== NEVER TAKEN
iop = rtems_libio_iop( fd );
127ddd: c1 e0 06 shl $0x6,%eax
127de0: 03 05 54 7a 16 00 add 0x167a54,%eax
rtems_libio_check_is_open(iop);
127de6: f6 40 15 01 testb $0x1,0x15(%eax)
127dea: 74 07 je 127df3 <fsync+0x27> <== NEVER TAKEN
/*
* Now process the fsync().
*/
if ( !iop->handlers )
127dec: 8b 50 3c mov 0x3c(%eax),%edx
127def: 85 d2 test %edx,%edx
127df1: 75 0d jne 127e00 <fsync+0x34> <== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( EBADF );
127df3: e8 a0 4f 01 00 call 13cd98 <__errno> <== NOT EXECUTED
127df8: c7 00 09 00 00 00 movl $0x9,(%eax) <== NOT EXECUTED
127dfe: eb 1a jmp 127e1a <fsync+0x4e> <== NOT EXECUTED
if ( !iop->handlers->fsync_h )
127e00: 8b 52 28 mov 0x28(%edx),%edx
127e03: 85 d2 test %edx,%edx
127e05: 75 0d jne 127e14 <fsync+0x48>
rtems_set_errno_and_return_minus_one( ENOTSUP );
127e07: e8 8c 4f 01 00 call 13cd98 <__errno>
127e0c: c7 00 86 00 00 00 movl $0x86,(%eax)
127e12: eb 06 jmp 127e1a <fsync+0x4e>
return (*iop->handlers->fsync_h)( iop );
127e14: 89 45 08 mov %eax,0x8(%ebp)
}
127e17: 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 );
127e18: ff e2 jmp *%edx
}
127e1a: 83 c8 ff or $0xffffffff,%eax
127e1d: c9 leave
127e1e: c3 ret
0010ebf8 <ftruncate>:
int ftruncate(
int fd,
off_t length
)
{
10ebf8: 55 push %ebp
10ebf9: 89 e5 mov %esp,%ebp
10ebfb: 57 push %edi
10ebfc: 56 push %esi
10ebfd: 53 push %ebx
10ebfe: 83 ec 3c sub $0x3c,%esp
10ec01: 8b 5d 08 mov 0x8(%ebp),%ebx
10ec04: 8b 45 0c mov 0xc(%ebp),%eax
10ec07: 8b 55 10 mov 0x10(%ebp),%edx
10ec0a: 89 45 c0 mov %eax,-0x40(%ebp)
10ec0d: 89 55 c4 mov %edx,-0x3c(%ebp)
rtems_libio_t *iop;
rtems_filesystem_location_info_t loc;
rtems_libio_check_fd( fd );
10ec10: 3b 1d 64 16 12 00 cmp 0x121664,%ebx
10ec16: 73 11 jae 10ec29 <ftruncate+0x31> <== NEVER TAKEN
iop = rtems_libio_iop( fd );
10ec18: c1 e3 06 shl $0x6,%ebx
10ec1b: 03 1d 40 55 12 00 add 0x125540,%ebx
rtems_libio_check_is_open(iop);
10ec21: 8b 43 14 mov 0x14(%ebx),%eax
10ec24: f6 c4 01 test $0x1,%ah
10ec27: 75 0d jne 10ec36 <ftruncate+0x3e> <== ALWAYS TAKEN
10ec29: e8 92 2c 00 00 call 1118c0 <__errno> <== NOT EXECUTED
10ec2e: c7 00 09 00 00 00 movl $0x9,(%eax) <== NOT EXECUTED
10ec34: eb 5f jmp 10ec95 <ftruncate+0x9d> <== NOT EXECUTED
rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );
10ec36: a8 04 test $0x4,%al
10ec38: 74 39 je 10ec73 <ftruncate+0x7b> <== NEVER TAKEN
/*
* Make sure we are not working on a directory
*/
loc = iop->pathinfo;
10ec3a: 8d 7d d4 lea -0x2c(%ebp),%edi
10ec3d: 8d 73 18 lea 0x18(%ebx),%esi
10ec40: b9 05 00 00 00 mov $0x5,%ecx
10ec45: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
if ( !loc.ops->node_type_h )
10ec47: 8b 45 e0 mov -0x20(%ebp),%eax
10ec4a: 8b 40 10 mov 0x10(%eax),%eax
10ec4d: 85 c0 test %eax,%eax
10ec4f: 74 39 je 10ec8a <ftruncate+0x92> <== NEVER TAKEN
rtems_set_errno_and_return_minus_one( ENOTSUP );
if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY )
10ec51: 83 ec 0c sub $0xc,%esp
10ec54: 8d 55 d4 lea -0x2c(%ebp),%edx
10ec57: 52 push %edx
10ec58: ff d0 call *%eax
10ec5a: 83 c4 10 add $0x10,%esp
10ec5d: 48 dec %eax
10ec5e: 75 0d jne 10ec6d <ftruncate+0x75>
rtems_set_errno_and_return_minus_one( EISDIR );
10ec60: e8 5b 2c 00 00 call 1118c0 <__errno>
10ec65: c7 00 15 00 00 00 movl $0x15,(%eax)
10ec6b: eb 28 jmp 10ec95 <ftruncate+0x9d>
rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );
10ec6d: f6 43 14 04 testb $0x4,0x14(%ebx)
10ec71: 75 0d jne 10ec80 <ftruncate+0x88> <== ALWAYS TAKEN
10ec73: e8 48 2c 00 00 call 1118c0 <__errno> <== NOT EXECUTED
10ec78: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
10ec7e: eb 15 jmp 10ec95 <ftruncate+0x9d> <== NOT EXECUTED
if ( !iop->handlers->ftruncate_h )
10ec80: 8b 43 3c mov 0x3c(%ebx),%eax
10ec83: 8b 40 20 mov 0x20(%eax),%eax
10ec86: 85 c0 test %eax,%eax
10ec88: 75 10 jne 10ec9a <ftruncate+0xa2> <== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( ENOTSUP );
10ec8a: e8 31 2c 00 00 call 1118c0 <__errno> <== NOT EXECUTED
10ec8f: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
10ec95: 83 c8 ff or $0xffffffff,%eax
10ec98: eb 0d jmp 10eca7 <ftruncate+0xaf>
return (*iop->handlers->ftruncate_h)( iop, length );
10ec9a: 52 push %edx
10ec9b: ff 75 c4 pushl -0x3c(%ebp)
10ec9e: ff 75 c0 pushl -0x40(%ebp)
10eca1: 53 push %ebx
10eca2: ff d0 call *%eax
10eca4: 83 c4 10 add $0x10,%esp
}
10eca7: 8d 65 f4 lea -0xc(%ebp),%esp
10ecaa: 5b pop %ebx
10ecab: 5e pop %esi
10ecac: 5f pop %edi
10ecad: c9 leave
10ecae: 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 70 86 12 00 cmp 0x128670,%eax
10733a: 73 2e jae 10736a <get_disk_entry+0x3a> <== NEVER TAKEN
10733c: 8b 1d 6c 86 12 00 mov 0x12866c,%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
00152c7c <getdents>:
int getdents(
int dd_fd,
char *dd_buf,
int dd_len
)
{
152c7c: 55 push %ebp
152c7d: 89 e5 mov %esp,%ebp
152c7f: 57 push %edi
152c80: 56 push %esi
152c81: 53 push %ebx
152c82: 83 ec 2c sub $0x2c,%esp
152c85: 8b 45 08 mov 0x8(%ebp),%eax
/*
* Get the file control block structure associated with the file descriptor
*/
iop = rtems_libio_iop( dd_fd );
152c88: 31 db xor %ebx,%ebx
152c8a: 3b 05 44 01 16 00 cmp 0x160144,%eax
152c90: 73 0b jae 152c9d <getdents+0x21> <== NEVER TAKEN
152c92: 89 c3 mov %eax,%ebx
152c94: c1 e3 06 shl $0x6,%ebx
152c97: 03 1d 54 7a 16 00 add 0x167a54,%ebx
/*
* Make sure we are working on a directory
*/
loc = iop->pathinfo;
152c9d: 8d 7d d4 lea -0x2c(%ebp),%edi
152ca0: 8d 73 18 lea 0x18(%ebx),%esi
152ca3: b9 05 00 00 00 mov $0x5,%ecx
152ca8: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
if ( !loc.ops->node_type_h )
152caa: 8b 45 e0 mov -0x20(%ebp),%eax
152cad: 8b 40 10 mov 0x10(%eax),%eax
152cb0: 85 c0 test %eax,%eax
152cb2: 74 29 je 152cdd <getdents+0x61> <== NEVER TAKEN
rtems_set_errno_and_return_minus_one( ENOTSUP );
if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY )
152cb4: 83 ec 0c sub $0xc,%esp
152cb7: 8d 55 d4 lea -0x2c(%ebp),%edx
152cba: 52 push %edx
152cbb: ff d0 call *%eax
152cbd: 83 c4 10 add $0x10,%esp
152cc0: 48 dec %eax
152cc1: 74 10 je 152cd3 <getdents+0x57>
rtems_set_errno_and_return_minus_one( ENOTDIR );
152cc3: e8 d0 a0 fe ff call 13cd98 <__errno>
152cc8: c7 00 14 00 00 00 movl $0x14,(%eax)
152cce: 83 c8 ff or $0xffffffff,%eax
152cd1: eb 24 jmp 152cf7 <getdents+0x7b>
/*
* Return the number of bytes that were actually transfered as a result
* of the read attempt.
*/
if ( !iop->handlers->read_h )
152cd3: 8b 43 3c mov 0x3c(%ebx),%eax
152cd6: 8b 40 08 mov 0x8(%eax),%eax
152cd9: 85 c0 test %eax,%eax
152cdb: 75 0d jne 152cea <getdents+0x6e> <== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( ENOTSUP );
152cdd: e8 b6 a0 fe ff call 13cd98 <__errno> <== NOT EXECUTED
152ce2: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
152ce8: eb e4 jmp 152cce <getdents+0x52> <== NOT EXECUTED
return (*iop->handlers->read_h)( iop, dd_buf, dd_len );
152cea: 52 push %edx
152ceb: ff 75 10 pushl 0x10(%ebp)
152cee: ff 75 0c pushl 0xc(%ebp)
152cf1: 53 push %ebx
152cf2: ff d0 call *%eax
152cf4: 83 c4 10 add $0x10,%esp
}
152cf7: 8d 65 f4 lea -0xc(%ebp),%esp
152cfa: 5b pop %ebx
152cfb: 5e pop %esi
152cfc: 5f pop %edi
152cfd: c9 leave
152cfe: c3 ret
00127ef8 <getgid>:
* 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs,
* P1003.1b-1993, p. 84
*/
gid_t getgid( void )
{
127ef8: 55 push %ebp <== NOT EXECUTED
127ef9: 89 e5 mov %esp,%ebp <== NOT EXECUTED
127efb: a1 fc 21 16 00 mov 0x1621fc,%eax <== NOT EXECUTED
127f00: 8b 40 34 mov 0x34(%eax),%eax <== NOT EXECUTED
return _POSIX_types_Gid;
}
127f03: c9 leave <== NOT EXECUTED
127f04: c3 ret <== NOT EXECUTED
00128402 <getgr_r>:
struct group *grp,
char *buffer,
size_t bufsize,
struct group **result
)
{
128402: 55 push %ebp
128403: 89 e5 mov %esp,%ebp
128405: 57 push %edi
128406: 56 push %esi
128407: 53 push %ebx
128408: 83 ec 1c sub $0x1c,%esp
12840b: 89 c7 mov %eax,%edi
12840d: 89 55 e4 mov %edx,-0x1c(%ebp)
128410: 89 ce mov %ecx,%esi
FILE *fp;
int match;
init_etc_passwd_group();
128412: e8 df fe ff ff call 1282f6 <init_etc_passwd_group>
if ((fp = fopen("/etc/group", "r")) == NULL) {
128417: 53 push %ebx
128418: 53 push %ebx
128419: 68 0a 6b 15 00 push $0x156b0a
12841e: 68 d6 38 15 00 push $0x1538d6
128423: e8 d4 52 01 00 call 13d6fc <fopen>
128428: 89 c3 mov %eax,%ebx
12842a: 83 c4 10 add $0x10,%esp
12842d: 85 c0 test %eax,%eax
12842f: 75 10 jne 128441 <getgr_r+0x3f> <== ALWAYS TAKEN
errno = EINVAL;
128431: e8 62 49 01 00 call 13cd98 <__errno> <== NOT EXECUTED
128436: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
12843c: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
return -1;
12843f: eb 6b jmp 1284ac <getgr_r+0xaa> <== NOT EXECUTED
}
for(;;) {
if (!scangr(fp, grp, buffer, bufsize)) {
128441: 83 ec 0c sub $0xc,%esp
128444: ff 75 0c pushl 0xc(%ebp)
128447: 8b 4d 08 mov 0x8(%ebp),%ecx
12844a: 89 f2 mov %esi,%edx
12844c: 89 d8 mov %ebx,%eax
12844e: e8 39 fc ff ff call 12808c <scangr>
128453: 83 c4 10 add $0x10,%esp
128456: 85 c0 test %eax,%eax
128458: 75 19 jne 128473 <getgr_r+0x71> <== ALWAYS TAKEN
errno = EINVAL;
12845a: e8 39 49 01 00 call 13cd98 <__errno> <== NOT EXECUTED
12845f: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
fclose(fp);
128465: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
128468: 53 push %ebx <== NOT EXECUTED
128469: e8 76 4a 01 00 call 13cee4 <fclose> <== NOT EXECUTED
12846e: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
128471: eb 36 jmp 1284a9 <getgr_r+0xa7> <== NOT EXECUTED
return -1;
}
if (name) {
128473: 85 ff test %edi,%edi
128475: 74 11 je 128488 <getgr_r+0x86> <== NEVER TAKEN
match = (strcmp(grp->gr_name, name) == 0);
128477: 51 push %ecx
128478: 51 push %ecx
128479: 57 push %edi
12847a: ff 36 pushl (%esi)
12847c: e8 7b a1 01 00 call 1425fc <strcmp>
128481: 83 c4 10 add $0x10,%esp
128484: 85 c0 test %eax,%eax
128486: eb 07 jmp 12848f <getgr_r+0x8d>
}
else {
match = (grp->gr_gid == gid);
128488: 0f b7 46 08 movzwl 0x8(%esi),%eax <== NOT EXECUTED
12848c: 3b 45 e4 cmp -0x1c(%ebp),%eax <== NOT EXECUTED
12848f: 0f 94 c0 sete %al
128492: 0f b6 c0 movzbl %al,%eax
}
if (match) {
128495: 85 c0 test %eax,%eax
128497: 74 a8 je 128441 <getgr_r+0x3f>
fclose(fp);
128499: 83 ec 0c sub $0xc,%esp
12849c: 53 push %ebx
12849d: e8 42 4a 01 00 call 13cee4 <fclose>
*result = grp;
1284a2: 8b 45 10 mov 0x10(%ebp),%eax
1284a5: 89 30 mov %esi,(%eax)
1284a7: 31 c0 xor %eax,%eax
return 0;
1284a9: 83 c4 10 add $0x10,%esp
}
}
fclose(fp);
errno = EINVAL;
return -1;
}
1284ac: 8d 65 f4 lea -0xc(%ebp),%esp
1284af: 5b pop %ebx
1284b0: 5e pop %esi
1284b1: 5f pop %edi
1284b2: c9 leave
1284b3: c3 ret
0012818b <getgrent>:
return NULL;
return p;
}
struct group *getgrent(void)
{
12818b: 55 push %ebp <== NOT EXECUTED
12818c: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12818e: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
if (group_fp == NULL)
128191: a1 8c 76 16 00 mov 0x16768c,%eax <== NOT EXECUTED
128196: 85 c0 test %eax,%eax <== NOT EXECUTED
128198: 74 25 je 1281bf <getgrent+0x34> <== NOT EXECUTED
return NULL;
if (!scangr(group_fp, &grent, grbuf, sizeof grbuf))
12819a: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12819d: 68 c8 00 00 00 push $0xc8 <== NOT EXECUTED
1281a2: b9 90 76 16 00 mov $0x167690,%ecx <== NOT EXECUTED
1281a7: ba 58 77 16 00 mov $0x167758,%edx <== NOT EXECUTED
1281ac: e8 db fe ff ff call 12808c <scangr> <== NOT EXECUTED
1281b1: 89 c2 mov %eax,%edx <== NOT EXECUTED
1281b3: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1281b6: b8 58 77 16 00 mov $0x167758,%eax <== NOT EXECUTED
1281bb: 85 d2 test %edx,%edx <== NOT EXECUTED
1281bd: 75 02 jne 1281c1 <getgrent+0x36> <== NOT EXECUTED
1281bf: 31 c0 xor %eax,%eax <== NOT EXECUTED
return NULL;
return &grent;
}
1281c1: c9 leave <== NOT EXECUTED
1281c2: c3 ret <== NOT EXECUTED
001284de <getgrgid>:
}
struct group *getgrgid(
gid_t gid
)
{
1284de: 55 push %ebp <== NOT EXECUTED
1284df: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1284e1: 83 ec 24 sub $0x24,%esp <== NOT EXECUTED
struct group *p;
if(getgrgid_r(gid, &grent, grbuf, sizeof grbuf, &p))
1284e4: 8d 45 f4 lea -0xc(%ebp),%eax <== NOT EXECUTED
1284e7: 50 push %eax <== NOT EXECUTED
1284e8: 68 c8 00 00 00 push $0xc8 <== NOT EXECUTED
1284ed: 68 90 76 16 00 push $0x167690 <== NOT EXECUTED
1284f2: 68 58 77 16 00 push $0x167758 <== NOT EXECUTED
1284f7: 0f b7 45 08 movzwl 0x8(%ebp),%eax <== NOT EXECUTED
1284fb: 50 push %eax <== NOT EXECUTED
1284fc: e8 b3 ff ff ff call 1284b4 <getgrgid_r> <== NOT EXECUTED
128501: 89 c2 mov %eax,%edx <== NOT EXECUTED
128503: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
128506: 31 c0 xor %eax,%eax <== NOT EXECUTED
128508: 85 d2 test %edx,%edx <== NOT EXECUTED
12850a: 75 03 jne 12850f <getgrgid+0x31> <== NOT EXECUTED
return NULL;
return p;
12850c: 8b 45 f4 mov -0xc(%ebp),%eax <== NOT EXECUTED
}
12850f: c9 leave <== NOT EXECUTED
128510: c3 ret <== NOT EXECUTED
001284b4 <getgrgid_r>:
struct group *grp,
char *buffer,
size_t bufsize,
struct group **result
)
{
1284b4: 55 push %ebp <== NOT EXECUTED
1284b5: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1284b7: 53 push %ebx <== NOT EXECUTED
1284b8: 83 ec 04 sub $0x4,%esp <== NOT EXECUTED
1284bb: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED
1284be: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
return getgr_r(NULL, gid, grp, buffer, bufsize, result);
1284c1: 0f b7 55 08 movzwl 0x8(%ebp),%edx <== NOT EXECUTED
1284c5: 8b 5d 18 mov 0x18(%ebp),%ebx <== NOT EXECUTED
1284c8: 89 5d 10 mov %ebx,0x10(%ebp) <== NOT EXECUTED
1284cb: 8b 5d 14 mov 0x14(%ebp),%ebx <== NOT EXECUTED
1284ce: 89 5d 0c mov %ebx,0xc(%ebp) <== NOT EXECUTED
1284d1: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED
1284d4: 31 c0 xor %eax,%eax <== NOT EXECUTED
}
1284d6: 5b pop %ebx <== NOT EXECUTED
1284d7: 5b pop %ebx <== NOT EXECUTED
1284d8: c9 leave <== NOT EXECUTED
char *buffer,
size_t bufsize,
struct group **result
)
{
return getgr_r(NULL, gid, grp, buffer, bufsize, result);
1284d9: e9 24 ff ff ff jmp 128402 <getgr_r> <== NOT EXECUTED
0012853a <getgrnam>:
}
struct group *getgrnam(
const char *name
)
{
12853a: 55 push %ebp
12853b: 89 e5 mov %esp,%ebp
12853d: 83 ec 24 sub $0x24,%esp
struct group *p;
if(getgrnam_r(name, &grent, grbuf, sizeof grbuf, &p))
128540: 8d 45 f4 lea -0xc(%ebp),%eax
128543: 50 push %eax
128544: 68 c8 00 00 00 push $0xc8
128549: 68 90 76 16 00 push $0x167690
12854e: 68 58 77 16 00 push $0x167758
128553: ff 75 08 pushl 0x8(%ebp)
128556: e8 b6 ff ff ff call 128511 <getgrnam_r>
12855b: 89 c2 mov %eax,%edx
12855d: 83 c4 20 add $0x20,%esp
128560: 31 c0 xor %eax,%eax
128562: 85 d2 test %edx,%edx
128564: 75 03 jne 128569 <getgrnam+0x2f> <== NEVER TAKEN
return NULL;
return p;
128566: 8b 45 f4 mov -0xc(%ebp),%eax
}
128569: c9 leave
12856a: c3 ret
00121bb8 <getpid>:
*
* 4.1.1 Get Process and Parent Process IDs, P1003.1b-1993, p. 83
*/
pid_t getpid( void )
{
121bb8: 55 push %ebp <== NOT EXECUTED
121bb9: 89 e5 mov %esp,%ebp <== NOT EXECUTED
return _Objects_Local_node;
}
121bbb: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
121bc0: c9 leave <== NOT EXECUTED
121bc1: c3 ret <== NOT EXECUTED
001285a6 <getpw_r>:
struct passwd *pwd,
char *buffer,
size_t bufsize,
struct passwd **result
)
{
1285a6: 55 push %ebp
1285a7: 89 e5 mov %esp,%ebp
1285a9: 57 push %edi
1285aa: 56 push %esi
1285ab: 53 push %ebx
1285ac: 83 ec 1c sub $0x1c,%esp
1285af: 89 c7 mov %eax,%edi
1285b1: 89 55 e4 mov %edx,-0x1c(%ebp)
1285b4: 89 ce mov %ecx,%esi
FILE *fp;
int match;
init_etc_passwd_group();
1285b6: e8 3b fd ff ff call 1282f6 <init_etc_passwd_group>
if ((fp = fopen("/etc/passwd", "r")) == NULL) {
1285bb: 51 push %ecx
1285bc: 51 push %ecx
1285bd: 68 0a 6b 15 00 push $0x156b0a
1285c2: 68 91 38 15 00 push $0x153891
1285c7: e8 30 51 01 00 call 13d6fc <fopen>
1285cc: 89 c3 mov %eax,%ebx
1285ce: 83 c4 10 add $0x10,%esp
1285d1: 85 c0 test %eax,%eax
1285d3: 75 10 jne 1285e5 <getpw_r+0x3f> <== ALWAYS TAKEN
errno = EINVAL;
1285d5: e8 be 47 01 00 call 13cd98 <__errno> <== NOT EXECUTED
1285da: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
1285e0: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
return -1;
1285e3: eb 6b jmp 128650 <getpw_r+0xaa> <== NOT EXECUTED
}
for(;;) {
if (!scanpw(fp, pwd, buffer, bufsize)) {
1285e5: 83 ec 0c sub $0xc,%esp
1285e8: ff 75 0c pushl 0xc(%ebp)
1285eb: 8b 4d 08 mov 0x8(%ebp),%ecx
1285ee: 89 f2 mov %esi,%edx
1285f0: 89 d8 mov %ebx,%eax
1285f2: e8 cc fb ff ff call 1281c3 <scanpw>
1285f7: 83 c4 10 add $0x10,%esp
1285fa: 85 c0 test %eax,%eax
1285fc: 75 19 jne 128617 <getpw_r+0x71> <== ALWAYS TAKEN
errno = EINVAL;
1285fe: e8 95 47 01 00 call 13cd98 <__errno> <== NOT EXECUTED
128603: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
fclose(fp);
128609: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12860c: 53 push %ebx <== NOT EXECUTED
12860d: e8 d2 48 01 00 call 13cee4 <fclose> <== NOT EXECUTED
128612: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
128615: eb 36 jmp 12864d <getpw_r+0xa7> <== NOT EXECUTED
return -1;
}
if (name) {
128617: 85 ff test %edi,%edi
128619: 74 11 je 12862c <getpw_r+0x86> <== NEVER TAKEN
match = (strcmp(pwd->pw_name, name) == 0);
12861b: 52 push %edx
12861c: 52 push %edx
12861d: 57 push %edi
12861e: ff 36 pushl (%esi)
128620: e8 d7 9f 01 00 call 1425fc <strcmp>
128625: 83 c4 10 add $0x10,%esp
128628: 85 c0 test %eax,%eax
12862a: eb 07 jmp 128633 <getpw_r+0x8d>
}
else {
match = (pwd->pw_uid == uid);
12862c: 0f b7 46 08 movzwl 0x8(%esi),%eax <== NOT EXECUTED
128630: 3b 45 e4 cmp -0x1c(%ebp),%eax <== NOT EXECUTED
128633: 0f 94 c0 sete %al
128636: 0f b6 c0 movzbl %al,%eax
}
if (match) {
128639: 85 c0 test %eax,%eax
12863b: 74 a8 je 1285e5 <getpw_r+0x3f>
fclose(fp);
12863d: 83 ec 0c sub $0xc,%esp
128640: 53 push %ebx
128641: e8 9e 48 01 00 call 13cee4 <fclose>
*result = pwd;
128646: 8b 45 10 mov 0x10(%ebp),%eax
128649: 89 30 mov %esi,(%eax)
12864b: 31 c0 xor %eax,%eax
return 0;
12864d: 83 c4 10 add $0x10,%esp
}
}
fclose(fp);
errno = EINVAL;
return -1;
}
128650: 8d 65 f4 lea -0xc(%ebp),%esp
128653: 5b pop %ebx
128654: 5e pop %esi
128655: 5f pop %edi
128656: c9 leave
128657: c3 ret
001282be <getpwent>:
return NULL;
return p;
}
struct passwd *getpwent(void)
{
1282be: 55 push %ebp <== NOT EXECUTED
1282bf: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1282c1: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
if (passwd_fp == NULL)
1282c4: a1 a4 75 16 00 mov 0x1675a4,%eax <== NOT EXECUTED
1282c9: 85 c0 test %eax,%eax <== NOT EXECUTED
1282cb: 74 25 je 1282f2 <getpwent+0x34> <== NOT EXECUTED
return NULL;
if (!scanpw(passwd_fp, &pwent, pwbuf, sizeof pwbuf))
1282cd: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1282d0: 68 c8 00 00 00 push $0xc8 <== NOT EXECUTED
1282d5: b9 a8 75 16 00 mov $0x1675a8,%ecx <== NOT EXECUTED
1282da: ba 70 76 16 00 mov $0x167670,%edx <== NOT EXECUTED
1282df: e8 df fe ff ff call 1281c3 <scanpw> <== NOT EXECUTED
1282e4: 89 c2 mov %eax,%edx <== NOT EXECUTED
1282e6: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1282e9: b8 70 76 16 00 mov $0x167670,%eax <== NOT EXECUTED
1282ee: 85 d2 test %edx,%edx <== NOT EXECUTED
1282f0: 75 02 jne 1282f4 <getpwent+0x36> <== NOT EXECUTED
1282f2: 31 c0 xor %eax,%eax <== NOT EXECUTED
return NULL;
return &pwent;
}
1282f4: c9 leave <== NOT EXECUTED
1282f5: c3 ret <== NOT EXECUTED
001286de <getpwnam>:
}
struct passwd *getpwnam(
const char *name
)
{
1286de: 55 push %ebp
1286df: 89 e5 mov %esp,%ebp
1286e1: 83 ec 24 sub $0x24,%esp
struct passwd *p;
if(getpwnam_r(name, &pwent, pwbuf, sizeof pwbuf, &p))
1286e4: 8d 45 f4 lea -0xc(%ebp),%eax
1286e7: 50 push %eax
1286e8: 68 c8 00 00 00 push $0xc8
1286ed: 68 a8 75 16 00 push $0x1675a8
1286f2: 68 70 76 16 00 push $0x167670
1286f7: ff 75 08 pushl 0x8(%ebp)
1286fa: e8 b6 ff ff ff call 1286b5 <getpwnam_r>
1286ff: 89 c2 mov %eax,%edx
128701: 83 c4 20 add $0x20,%esp
128704: 31 c0 xor %eax,%eax
128706: 85 d2 test %edx,%edx
128708: 75 03 jne 12870d <getpwnam+0x2f> <== NEVER TAKEN
return NULL;
return p;
12870a: 8b 45 f4 mov -0xc(%ebp),%eax
}
12870d: c9 leave
12870e: c3 ret
00128682 <getpwuid>:
}
struct passwd *getpwuid(
uid_t uid
)
{
128682: 55 push %ebp <== NOT EXECUTED
128683: 89 e5 mov %esp,%ebp <== NOT EXECUTED
128685: 83 ec 24 sub $0x24,%esp <== NOT EXECUTED
struct passwd *p;
if(getpwuid_r(uid, &pwent, pwbuf, sizeof pwbuf, &p))
128688: 8d 45 f4 lea -0xc(%ebp),%eax <== NOT EXECUTED
12868b: 50 push %eax <== NOT EXECUTED
12868c: 68 c8 00 00 00 push $0xc8 <== NOT EXECUTED
128691: 68 a8 75 16 00 push $0x1675a8 <== NOT EXECUTED
128696: 68 70 76 16 00 push $0x167670 <== NOT EXECUTED
12869b: 0f b7 45 08 movzwl 0x8(%ebp),%eax <== NOT EXECUTED
12869f: 50 push %eax <== NOT EXECUTED
1286a0: e8 b3 ff ff ff call 128658 <getpwuid_r> <== NOT EXECUTED
1286a5: 89 c2 mov %eax,%edx <== NOT EXECUTED
1286a7: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
1286aa: 31 c0 xor %eax,%eax <== NOT EXECUTED
1286ac: 85 d2 test %edx,%edx <== NOT EXECUTED
1286ae: 75 03 jne 1286b3 <getpwuid+0x31> <== NOT EXECUTED
return NULL;
return p;
1286b0: 8b 45 f4 mov -0xc(%ebp),%eax <== NOT EXECUTED
}
1286b3: c9 leave <== NOT EXECUTED
1286b4: c3 ret <== NOT EXECUTED
00128658 <getpwuid_r>:
struct passwd *pwd,
char *buffer,
size_t bufsize,
struct passwd **result
)
{
128658: 55 push %ebp <== NOT EXECUTED
128659: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12865b: 53 push %ebx <== NOT EXECUTED
12865c: 83 ec 04 sub $0x4,%esp <== NOT EXECUTED
12865f: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED
128662: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
return getpw_r(NULL, uid, pwd, buffer, bufsize, result);
128665: 0f b7 55 08 movzwl 0x8(%ebp),%edx <== NOT EXECUTED
128669: 8b 5d 18 mov 0x18(%ebp),%ebx <== NOT EXECUTED
12866c: 89 5d 10 mov %ebx,0x10(%ebp) <== NOT EXECUTED
12866f: 8b 5d 14 mov 0x14(%ebp),%ebx <== NOT EXECUTED
128672: 89 5d 0c mov %ebx,0xc(%ebp) <== NOT EXECUTED
128675: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED
128678: 31 c0 xor %eax,%eax <== NOT EXECUTED
}
12867a: 5b pop %ebx <== NOT EXECUTED
12867b: 5b pop %ebx <== NOT EXECUTED
12867c: c9 leave <== NOT EXECUTED
char *buffer,
size_t bufsize,
struct passwd **result
)
{
return getpw_r(NULL, uid, pwd, buffer, bufsize, result);
12867d: e9 24 ff ff ff jmp 1285a6 <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 98 a1 00 00 call 1118c0 <__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 86 3a 00 00 call 10b1c8 <_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 21 16 00 mov 0x1621fc,%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
00110ec0 <imfs_dir_open>:
rtems_libio_t *iop,
const char *pathname,
uint32_t flag,
uint32_t mode
)
{
110ec0: 55 push %ebp
110ec1: 89 e5 mov %esp,%ebp
110ec3: 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;
110ec6: 8b 4a 38 mov 0x38(%edx),%ecx
110ec9: 83 c8 ff or $0xffffffff,%eax
110ecc: 83 79 4c 01 cmpl $0x1,0x4c(%ecx)
110ed0: 75 10 jne 110ee2 <imfs_dir_open+0x22> <== NEVER TAKEN
if ( the_jnode->type != IMFS_DIRECTORY )
return -1; /* It wasn't a directory --> return error */
iop->offset = 0;
110ed2: c7 42 0c 00 00 00 00 movl $0x0,0xc(%edx)
110ed9: c7 42 10 00 00 00 00 movl $0x0,0x10(%edx)
110ee0: 31 c0 xor %eax,%eax
return 0;
}
110ee2: c9 leave
110ee3: c3 ret
00110fe4 <imfs_dir_rmnod>:
int imfs_dir_rmnod(
rtems_filesystem_location_info_t *parent_pathloc, /* IN */
rtems_filesystem_location_info_t *pathloc /* IN */
)
{
110fe4: 55 push %ebp
110fe5: 89 e5 mov %esp,%ebp
110fe7: 56 push %esi
110fe8: 53 push %ebx
110fe9: 83 ec 10 sub $0x10,%esp
110fec: 8b 75 0c mov 0xc(%ebp),%esi
IMFS_jnode_t *the_jnode;
the_jnode = (IMFS_jnode_t *) pathloc->node_access;
110fef: 8b 1e mov (%esi),%ebx
110ff1: 8d 43 54 lea 0x54(%ebx),%eax
110ff4: 39 43 50 cmp %eax,0x50(%ebx)
110ff7: 74 0d je 111006 <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 );
110ff9: e8 c2 08 00 00 call 1118c0 <__errno>
110ffe: c7 00 5a 00 00 00 movl $0x5a,(%eax)
111004: eb 19 jmp 11101f <imfs_dir_rmnod+0x3b>
/*
* You cannot remove the file system root node.
*/
if ( pathloc->mt_entry->mt_fs_root.node_access == pathloc->node_access )
111006: 8b 46 10 mov 0x10(%esi),%eax
111009: 39 58 1c cmp %ebx,0x1c(%eax)
11100c: 74 06 je 111014 <imfs_dir_rmnod+0x30>
/*
* You cannot remove a mountpoint.
*/
if ( the_jnode->info.directory.mt_fs != NULL )
11100e: 83 7b 5c 00 cmpl $0x0,0x5c(%ebx)
111012: 74 10 je 111024 <imfs_dir_rmnod+0x40> <== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( EBUSY );
111014: e8 a7 08 00 00 call 1118c0 <__errno>
111019: c7 00 10 00 00 00 movl $0x10,(%eax)
11101f: 83 c8 ff or $0xffffffff,%eax
111022: eb 6b jmp 11108f <imfs_dir_rmnod+0xab>
/*
* Take the node out of the parent's chain that contains this node
*/
if ( the_jnode->Parent != NULL ) {
111024: 83 7b 08 00 cmpl $0x0,0x8(%ebx)
111028: 74 13 je 11103d <imfs_dir_rmnod+0x59>
11102a: 83 ec 0c sub $0xc,%esp
11102d: 53 push %ebx
11102e: e8 d5 9d ff ff call 10ae08 <_Chain_Extract>
rtems_chain_extract( (rtems_chain_node *) the_jnode );
the_jnode->Parent = NULL;
111033: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx)
11103a: 83 c4 10 add $0x10,%esp
/*
* Decrement the link counter and see if we can free the space.
*/
the_jnode->st_nlink--;
11103d: 66 ff 4b 34 decw 0x34(%ebx)
IMFS_update_ctime( the_jnode );
111041: 50 push %eax
111042: 50 push %eax
111043: 6a 00 push $0x0
111045: 8d 45 f0 lea -0x10(%ebp),%eax
111048: 50 push %eax
111049: e8 c6 66 ff ff call 107714 <gettimeofday>
11104e: 8b 45 f0 mov -0x10(%ebp),%eax
111051: 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) ) {
111054: 89 1c 24 mov %ebx,(%esp)
111057: e8 92 dc ff ff call 10ecee <rtems_libio_is_file_open>
11105c: 83 c4 10 add $0x10,%esp
11105f: 85 c0 test %eax,%eax
111061: 75 2a jne 11108d <imfs_dir_rmnod+0xa9>
111063: 66 83 7b 34 00 cmpw $0x0,0x34(%ebx)
111068: 75 23 jne 11108d <imfs_dir_rmnod+0xa9>
/*
* Is the rtems_filesystem_current is this node?
*/
if ( rtems_filesystem_current.node_access == pathloc->node_access )
11106a: a1 74 34 12 00 mov 0x123474,%eax
11106f: 8b 50 04 mov 0x4(%eax),%edx
111072: 3b 16 cmp (%esi),%edx
111074: 75 07 jne 11107d <imfs_dir_rmnod+0x99> <== ALWAYS TAKEN
rtems_filesystem_current.node_access = NULL;
111076: c7 40 04 00 00 00 00 movl $0x0,0x4(%eax) <== NOT EXECUTED
/*
* Free memory associated with a memory file.
*/
free( the_jnode );
11107d: 83 ec 0c sub $0xc,%esp
111080: 53 push %ebx
111081: e8 16 66 ff ff call 10769c <free>
111086: 31 c0 xor %eax,%eax
111088: 83 c4 10 add $0x10,%esp
11108b: eb 02 jmp 11108f <imfs_dir_rmnod+0xab>
11108d: 31 c0 xor %eax,%eax
}
return 0;
}
11108f: 8d 65 f8 lea -0x8(%ebp),%esp
111092: 5b pop %ebx
111093: 5e pop %esi
111094: c9 leave
111095: c3 ret
001282f6 <init_etc_passwd_group>:
/*
* Initialize useable but dummy databases
*/
void init_etc_passwd_group(void)
{
1282f6: 55 push %ebp
1282f7: 89 e5 mov %esp,%ebp
1282f9: 53 push %ebx
1282fa: 83 ec 04 sub $0x4,%esp
FILE *fp;
static char etc_passwd_initted = 0;
if (etc_passwd_initted)
1282fd: 80 3d a0 75 16 00 00 cmpb $0x0,0x1675a0
128304: 0f 85 b8 00 00 00 jne 1283c2 <init_etc_passwd_group+0xcc>
return;
etc_passwd_initted = 1;
12830a: c6 05 a0 75 16 00 01 movb $0x1,0x1675a0
mkdir("/etc", 0777);
128311: 50 push %eax
128312: 50 push %eax
128313: 68 ff 01 00 00 push $0x1ff
128318: 68 77 37 15 00 push $0x153777
12831d: e8 0e 52 fe ff call 10d530 <mkdir>
/*
* Initialize /etc/passwd
*/
if ((fp = fopen("/etc/passwd", "r")) != NULL) {
128322: 59 pop %ecx
128323: 5b pop %ebx
128324: 68 0a 6b 15 00 push $0x156b0a
128329: 68 91 38 15 00 push $0x153891
12832e: e8 c9 53 01 00 call 13d6fc <fopen>
128333: 83 c4 10 add $0x10,%esp
128336: 85 c0 test %eax,%eax
128338: 74 06 je 128340 <init_etc_passwd_group+0x4a><== ALWAYS TAKEN
fclose(fp);
12833a: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12833d: 50 push %eax <== NOT EXECUTED
12833e: eb 2a jmp 12836a <init_etc_passwd_group+0x74><== NOT EXECUTED
}
else if ((fp = fopen("/etc/passwd", "w")) != NULL) {
128340: 52 push %edx
128341: 52 push %edx
128342: 68 80 67 15 00 push $0x156780
128347: 68 91 38 15 00 push $0x153891
12834c: e8 ab 53 01 00 call 13d6fc <fopen>
128351: 89 c3 mov %eax,%ebx
128353: 83 c4 10 add $0x10,%esp
128356: 85 c0 test %eax,%eax
128358: 74 18 je 128372 <init_etc_passwd_group+0x7c><== NEVER TAKEN
fprintf(fp, "root:*:0:0:root::/:/bin/sh\n"
12835a: 50 push %eax
12835b: 50 push %eax
12835c: 53 push %ebx
12835d: 68 22 9e 15 00 push $0x159e22
128362: e8 d9 54 01 00 call 13d840 <fputs>
"rtems:*:1:1:RTEMS Application::/:/bin/sh\n"
"tty:!:2:2:tty owner::/:/bin/false\n" );
fclose(fp);
128367: 89 1c 24 mov %ebx,(%esp)
12836a: e8 75 4b 01 00 call 13cee4 <fclose>
12836f: 83 c4 10 add $0x10,%esp
}
/*
* Initialize /etc/group
*/
if ((fp = fopen("/etc/group", "r")) != NULL) {
128372: 51 push %ecx
128373: 51 push %ecx
128374: 68 0a 6b 15 00 push $0x156b0a
128379: 68 d6 38 15 00 push $0x1538d6
12837e: e8 79 53 01 00 call 13d6fc <fopen>
128383: 83 c4 10 add $0x10,%esp
128386: 85 c0 test %eax,%eax
128388: 74 06 je 128390 <init_etc_passwd_group+0x9a><== ALWAYS TAKEN
fclose(fp);
12838a: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12838d: 50 push %eax <== NOT EXECUTED
12838e: eb 2a jmp 1283ba <init_etc_passwd_group+0xc4><== NOT EXECUTED
}
else if ((fp = fopen("/etc/group", "w")) != NULL) {
128390: 52 push %edx
128391: 52 push %edx
128392: 68 80 67 15 00 push $0x156780
128397: 68 d6 38 15 00 push $0x1538d6
12839c: e8 5b 53 01 00 call 13d6fc <fopen>
1283a1: 89 c3 mov %eax,%ebx
1283a3: 83 c4 10 add $0x10,%esp
1283a6: 85 c0 test %eax,%eax
1283a8: 74 18 je 1283c2 <init_etc_passwd_group+0xcc><== NEVER TAKEN
fprintf( fp, "root:x:0:root\n"
1283aa: 50 push %eax
1283ab: 50 push %eax
1283ac: 53 push %ebx
1283ad: 68 89 9e 15 00 push $0x159e89
1283b2: e8 89 54 01 00 call 13d840 <fputs>
"rtems:x:1:rtems\n"
"tty:x:2:tty\n" );
fclose(fp);
1283b7: 89 1c 24 mov %ebx,(%esp)
1283ba: e8 25 4b 01 00 call 13cee4 <fclose>
1283bf: 83 c4 10 add $0x10,%esp
}
}
1283c2: 8b 5d fc mov -0x4(%ebp),%ebx
1283c5: c9 leave
1283c6: 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 41 12 00 cmp 0x124144,%eax
10a3e7: 73 19 jae 10a402 <ioctl+0x2a>
iop = rtems_libio_iop( fd );
10a3e9: c1 e0 06 shl $0x6,%eax
10a3ec: 03 05 f0 80 12 00 add 0x1280f0,%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 69 ac 00 00 call 115070 <__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 55 ac 00 00 call 115070 <__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 fc 34 12 00 mov 0x1234fc,%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 64 34 12 00 mov 0x123464,%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
00121be0 <kill>:
* These are directly supported (and completely correct) in the posix api.
*/
#if !defined(RTEMS_POSIX_API)
int kill( pid_t pid, int sig )
{
121be0: 55 push %ebp <== NOT EXECUTED
121be1: 89 e5 mov %esp,%ebp <== NOT EXECUTED
return 0;
}
121be3: 31 c0 xor %eax,%eax <== NOT EXECUTED
121be5: c9 leave <== NOT EXECUTED
121be6: c3 ret <== NOT EXECUTED
00128710 <link>:
int link(
const char *existing,
const char *new
)
{
128710: 55 push %ebp
128711: 89 e5 mov %esp,%ebp
128713: 57 push %edi
128714: 56 push %esi
128715: 53 push %ebx
128716: 83 ec 48 sub $0x48,%esp
128719: 8b 55 08 mov 0x8(%ebp),%edx
12871c: 8b 5d 0c mov 0xc(%ebp),%ebx
/*
* Get the node we are linking to.
*/
result = rtems_filesystem_evaluate_path( existing, strlen( existing ),
12871f: 31 c0 xor %eax,%eax
128721: 83 c9 ff or $0xffffffff,%ecx
128724: 89 d7 mov %edx,%edi
128726: f2 ae repnz scas %es:(%edi),%al
128728: f7 d1 not %ecx
12872a: 49 dec %ecx
12872b: 6a 01 push $0x1
12872d: 8d 75 cc lea -0x34(%ebp),%esi
128730: 56 push %esi
128731: 6a 00 push $0x0
128733: 51 push %ecx
128734: 52 push %edx
128735: e8 f7 46 fe ff call 10ce31 <rtems_filesystem_evaluate_path>
0, &existing_loc, true );
if ( result != 0 )
12873a: 83 c4 20 add $0x20,%esp
12873d: 83 cf ff or $0xffffffff,%edi
128740: 85 c0 test %eax,%eax
128742: 0f 85 45 01 00 00 jne 12888d <link+0x17d>
/*
* Get the parent of the node we are creating.
*/
rtems_filesystem_get_start_loc( new, &i, &parent_loc );
128748: 57 push %edi
128749: 8d 7d b8 lea -0x48(%ebp),%edi
12874c: 57 push %edi
12874d: 8d 45 e4 lea -0x1c(%ebp),%eax
128750: 50 push %eax
128751: 53 push %ebx
128752: e8 5d 5c fe ff call 10e3b4 <rtems_filesystem_get_start_loc>
if ( !parent_loc.ops->evalformake_h ) {
128757: 8b 45 c4 mov -0x3c(%ebp),%eax
12875a: 8b 40 04 mov 0x4(%eax),%eax
12875d: 83 c4 10 add $0x10,%esp
128760: 85 c0 test %eax,%eax
128762: 75 1f jne 128783 <link+0x73> <== ALWAYS TAKEN
rtems_filesystem_freenode( &existing_loc );
128764: 8b 45 d8 mov -0x28(%ebp),%eax <== NOT EXECUTED
128767: 85 c0 test %eax,%eax <== NOT EXECUTED
128769: 0f 84 d0 00 00 00 je 12883f <link+0x12f> <== NOT EXECUTED
12876f: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED
128772: 85 c0 test %eax,%eax <== NOT EXECUTED
128774: 0f 84 c5 00 00 00 je 12883f <link+0x12f> <== NOT EXECUTED
12877a: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12877d: 56 push %esi <== NOT EXECUTED
12877e: e9 b7 00 00 00 jmp 12883a <link+0x12a> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
result = (*parent_loc.ops->evalformake_h)( &new[i], &parent_loc, &name_start );
128783: 51 push %ecx
128784: 8d 55 e0 lea -0x20(%ebp),%edx
128787: 52 push %edx
128788: 57 push %edi
128789: 03 5d e4 add -0x1c(%ebp),%ebx
12878c: 53 push %ebx
12878d: ff d0 call *%eax
12878f: 89 c3 mov %eax,%ebx
if ( result != 0 ) {
128791: 83 c4 10 add $0x10,%esp
128794: 85 c0 test %eax,%eax
128796: 74 26 je 1287be <link+0xae>
rtems_filesystem_freenode( &existing_loc );
128798: 8b 45 d8 mov -0x28(%ebp),%eax
12879b: 85 c0 test %eax,%eax
12879d: 74 10 je 1287af <link+0x9f> <== NEVER TAKEN
12879f: 8b 40 1c mov 0x1c(%eax),%eax
1287a2: 85 c0 test %eax,%eax
1287a4: 74 09 je 1287af <link+0x9f> <== NEVER TAKEN
1287a6: 83 ec 0c sub $0xc,%esp
1287a9: 56 push %esi
1287aa: ff d0 call *%eax
1287ac: 83 c4 10 add $0x10,%esp
rtems_set_errno_and_return_minus_one( result );
1287af: e8 e4 45 01 00 call 13cd98 <__errno>
1287b4: 89 18 mov %ebx,(%eax)
1287b6: 83 cf ff or $0xffffffff,%edi
1287b9: e9 cf 00 00 00 jmp 12888d <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 ) {
1287be: 8b 45 c8 mov -0x38(%ebp),%eax
1287c1: 3b 45 dc cmp -0x24(%ebp),%eax
1287c4: 74 3e je 128804 <link+0xf4>
rtems_filesystem_freenode( &existing_loc );
1287c6: 8b 45 d8 mov -0x28(%ebp),%eax
1287c9: 85 c0 test %eax,%eax
1287cb: 74 10 je 1287dd <link+0xcd> <== NEVER TAKEN
1287cd: 8b 40 1c mov 0x1c(%eax),%eax
1287d0: 85 c0 test %eax,%eax
1287d2: 74 09 je 1287dd <link+0xcd> <== NEVER TAKEN
1287d4: 83 ec 0c sub $0xc,%esp
1287d7: 56 push %esi
1287d8: ff d0 call *%eax
1287da: 83 c4 10 add $0x10,%esp
rtems_filesystem_freenode( &parent_loc );
1287dd: 8b 45 c4 mov -0x3c(%ebp),%eax
1287e0: 85 c0 test %eax,%eax
1287e2: 74 13 je 1287f7 <link+0xe7> <== NEVER TAKEN
1287e4: 8b 40 1c mov 0x1c(%eax),%eax
1287e7: 85 c0 test %eax,%eax
1287e9: 74 0c je 1287f7 <link+0xe7> <== NEVER TAKEN
1287eb: 83 ec 0c sub $0xc,%esp
1287ee: 8d 55 b8 lea -0x48(%ebp),%edx
1287f1: 52 push %edx
1287f2: ff d0 call *%eax
1287f4: 83 c4 10 add $0x10,%esp
rtems_set_errno_and_return_minus_one( EXDEV );
1287f7: e8 9c 45 01 00 call 13cd98 <__errno>
1287fc: c7 00 12 00 00 00 movl $0x12,(%eax)
128802: eb b2 jmp 1287b6 <link+0xa6>
}
if ( !parent_loc.ops->link_h ) {
128804: 8b 45 c4 mov -0x3c(%ebp),%eax
128807: 8b 40 08 mov 0x8(%eax),%eax
12880a: 85 c0 test %eax,%eax
12880c: 75 41 jne 12884f <link+0x13f> <== ALWAYS TAKEN
rtems_filesystem_freenode( &existing_loc );
12880e: 8b 45 d8 mov -0x28(%ebp),%eax <== NOT EXECUTED
128811: 85 c0 test %eax,%eax <== NOT EXECUTED
128813: 74 10 je 128825 <link+0x115> <== NOT EXECUTED
128815: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED
128818: 85 c0 test %eax,%eax <== NOT EXECUTED
12881a: 74 09 je 128825 <link+0x115> <== NOT EXECUTED
12881c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12881f: 56 push %esi <== NOT EXECUTED
128820: ff d0 call *%eax <== NOT EXECUTED
128822: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_filesystem_freenode( &parent_loc );
128825: 8b 45 c4 mov -0x3c(%ebp),%eax <== NOT EXECUTED
128828: 85 c0 test %eax,%eax <== NOT EXECUTED
12882a: 74 13 je 12883f <link+0x12f> <== NOT EXECUTED
12882c: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED
12882f: 85 c0 test %eax,%eax <== NOT EXECUTED
128831: 74 0c je 12883f <link+0x12f> <== NOT EXECUTED
128833: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
128836: 8d 55 b8 lea -0x48(%ebp),%edx <== NOT EXECUTED
128839: 52 push %edx <== NOT EXECUTED
12883a: ff d0 call *%eax <== NOT EXECUTED
12883c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
12883f: e8 54 45 01 00 call 13cd98 <__errno> <== NOT EXECUTED
128844: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
12884a: e9 67 ff ff ff jmp 1287b6 <link+0xa6> <== NOT EXECUTED
}
result = (*parent_loc.ops->link_h)( &existing_loc, &parent_loc, name_start );
12884f: 52 push %edx
128850: ff 75 e0 pushl -0x20(%ebp)
128853: 57 push %edi
128854: 56 push %esi
128855: ff d0 call *%eax
128857: 89 c7 mov %eax,%edi
rtems_filesystem_freenode( &existing_loc );
128859: 8b 45 d8 mov -0x28(%ebp),%eax
12885c: 83 c4 10 add $0x10,%esp
12885f: 85 c0 test %eax,%eax
128861: 74 10 je 128873 <link+0x163> <== NEVER TAKEN
128863: 8b 40 1c mov 0x1c(%eax),%eax
128866: 85 c0 test %eax,%eax
128868: 74 09 je 128873 <link+0x163> <== NEVER TAKEN
12886a: 83 ec 0c sub $0xc,%esp
12886d: 56 push %esi
12886e: ff d0 call *%eax
128870: 83 c4 10 add $0x10,%esp
rtems_filesystem_freenode( &parent_loc );
128873: 8b 45 c4 mov -0x3c(%ebp),%eax
128876: 85 c0 test %eax,%eax
128878: 74 13 je 12888d <link+0x17d> <== NEVER TAKEN
12887a: 8b 40 1c mov 0x1c(%eax),%eax
12887d: 85 c0 test %eax,%eax
12887f: 74 0c je 12888d <link+0x17d> <== NEVER TAKEN
128881: 83 ec 0c sub $0xc,%esp
128884: 8d 55 b8 lea -0x48(%ebp),%edx
128887: 52 push %edx
128888: ff d0 call *%eax
12888a: 83 c4 10 add $0x10,%esp
return result;
}
12888d: 89 f8 mov %edi,%eax
12888f: 8d 65 f4 lea -0xc(%ebp),%esp
128892: 5b pop %ebx
128893: 5e pop %esi
128894: 5f pop %edi
128895: c9 leave
128896: c3 ret
0011cf20 <lseek>:
off_t lseek(
int fd,
off_t offset,
int whence
)
{
11cf20: 55 push %ebp
11cf21: 89 e5 mov %esp,%ebp
11cf23: 57 push %edi
11cf24: 56 push %esi
11cf25: 53 push %ebx
11cf26: 83 ec 1c sub $0x1c,%esp
11cf29: 8b 5d 08 mov 0x8(%ebp),%ebx
11cf2c: 8b 45 0c mov 0xc(%ebp),%eax
11cf2f: 8b 55 10 mov 0x10(%ebp),%edx
11cf32: 8b 4d 14 mov 0x14(%ebp),%ecx
rtems_libio_t *iop;
off_t old_offset;
off_t status;
rtems_libio_check_fd( fd );
11cf35: 3b 1d 64 16 12 00 cmp 0x121664,%ebx
11cf3b: 73 0f jae 11cf4c <lseek+0x2c> <== NEVER TAKEN
iop = rtems_libio_iop( fd );
11cf3d: c1 e3 06 shl $0x6,%ebx
11cf40: 03 1d 40 55 12 00 add 0x125540,%ebx
rtems_libio_check_is_open(iop);
11cf46: f6 43 15 01 testb $0x1,0x15(%ebx)
11cf4a: 75 0d jne 11cf59 <lseek+0x39> <== ALWAYS TAKEN
11cf4c: e8 6f 49 ff ff call 1118c0 <__errno> <== NOT EXECUTED
11cf51: c7 00 09 00 00 00 movl $0x9,(%eax) <== NOT EXECUTED
11cf57: eb 61 jmp 11cfba <lseek+0x9a> <== NOT EXECUTED
/*
* Check as many errors as possible before touching iop->offset.
*/
if ( !iop->handlers->lseek_h )
11cf59: 8b 73 3c mov 0x3c(%ebx),%esi
11cf5c: 83 7e 14 00 cmpl $0x0,0x14(%esi)
11cf60: 75 0d jne 11cf6f <lseek+0x4f> <== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( ENOTSUP );
11cf62: e8 59 49 ff ff call 1118c0 <__errno> <== NOT EXECUTED
11cf67: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
11cf6d: eb 4b jmp 11cfba <lseek+0x9a> <== NOT EXECUTED
/*
* Now process the lseek().
*/
old_offset = iop->offset;
11cf6f: 8b 73 0c mov 0xc(%ebx),%esi
11cf72: 8b 7b 10 mov 0x10(%ebx),%edi
11cf75: 89 75 e0 mov %esi,-0x20(%ebp)
11cf78: 89 7d e4 mov %edi,-0x1c(%ebp)
switch ( whence ) {
11cf7b: 83 f9 01 cmp $0x1,%ecx
11cf7e: 74 11 je 11cf91 <lseek+0x71>
11cf80: 83 f9 02 cmp $0x2,%ecx
11cf83: 74 18 je 11cf9d <lseek+0x7d>
11cf85: 85 c9 test %ecx,%ecx
11cf87: 75 26 jne 11cfaf <lseek+0x8f>
case SEEK_SET:
iop->offset = offset;
11cf89: 89 43 0c mov %eax,0xc(%ebx)
11cf8c: 89 53 10 mov %edx,0x10(%ebx)
break;
11cf8f: eb 30 jmp 11cfc1 <lseek+0xa1>
case SEEK_CUR:
iop->offset += offset;
11cf91: 8b 75 e0 mov -0x20(%ebp),%esi
11cf94: 8b 7d e4 mov -0x1c(%ebp),%edi
11cf97: 01 c6 add %eax,%esi
11cf99: 11 d7 adc %edx,%edi
11cf9b: eb 0a jmp 11cfa7 <lseek+0x87>
break;
case SEEK_END:
iop->offset = iop->size + offset;
11cf9d: 89 c6 mov %eax,%esi
11cf9f: 89 d7 mov %edx,%edi
11cfa1: 03 73 04 add 0x4(%ebx),%esi
11cfa4: 13 7b 08 adc 0x8(%ebx),%edi
11cfa7: 89 73 0c mov %esi,0xc(%ebx)
11cfaa: 89 7b 10 mov %edi,0x10(%ebx)
break;
11cfad: eb 12 jmp 11cfc1 <lseek+0xa1>
default:
rtems_set_errno_and_return_minus_one( EINVAL );
11cfaf: e8 0c 49 ff ff call 1118c0 <__errno>
11cfb4: c7 00 16 00 00 00 movl $0x16,(%eax)
11cfba: 83 c8 ff or $0xffffffff,%eax
11cfbd: 89 c2 mov %eax,%edx
11cfbf: eb 23 jmp 11cfe4 <lseek+0xc4>
/*
* At this time, handlers assume iop->offset has the desired
* new offset.
*/
status = (*iop->handlers->lseek_h)( iop, offset, whence );
11cfc1: 8b 73 3c mov 0x3c(%ebx),%esi
11cfc4: 51 push %ecx
11cfc5: 52 push %edx
11cfc6: 50 push %eax
11cfc7: 53 push %ebx
11cfc8: ff 56 14 call *0x14(%esi)
if ( status == (off_t) -1 )
11cfcb: 83 c4 10 add $0x10,%esp
11cfce: 83 fa ff cmp $0xffffffff,%edx
11cfd1: 75 11 jne 11cfe4 <lseek+0xc4>
11cfd3: 83 f8 ff cmp $0xffffffff,%eax
11cfd6: 75 0c jne 11cfe4 <lseek+0xc4> <== NEVER TAKEN
iop->offset = old_offset;
11cfd8: 8b 75 e0 mov -0x20(%ebp),%esi
11cfdb: 8b 7d e4 mov -0x1c(%ebp),%edi
11cfde: 89 73 0c mov %esi,0xc(%ebx)
11cfe1: 89 7b 10 mov %edi,0x10(%ebx)
/*
* So if the operation failed, we have to restore iop->offset.
*/
return status;
}
11cfe4: 8d 65 f4 lea -0xc(%ebp),%esp
11cfe7: 5b pop %ebx
11cfe8: 5e pop %esi
11cfe9: 5f pop %edi
11cfea: c9 leave
11cfeb: c3 ret
001289a4 <lstat>:
int _STAT_NAME(
const char *path,
struct stat *buf
)
{
1289a4: 55 push %ebp <== NOT EXECUTED
1289a5: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1289a7: 57 push %edi <== NOT EXECUTED
1289a8: 56 push %esi <== NOT EXECUTED
1289a9: 53 push %ebx <== NOT EXECUTED
1289aa: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED
1289ad: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
1289b0: 8b 75 0c mov 0xc(%ebp),%esi <== NOT EXECUTED
/*
* Check to see if we were passed a valid pointer.
*/
if ( !buf )
1289b3: 85 f6 test %esi,%esi <== NOT EXECUTED
1289b5: 75 0d jne 1289c4 <lstat+0x20> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EFAULT );
1289b7: e8 dc 43 01 00 call 13cd98 <__errno> <== NOT EXECUTED
1289bc: c7 00 0e 00 00 00 movl $0xe,(%eax) <== NOT EXECUTED
1289c2: eb 53 jmp 128a17 <lstat+0x73> <== NOT EXECUTED
status = rtems_filesystem_evaluate_path( path, strlen( path ),
1289c4: 31 c0 xor %eax,%eax <== NOT EXECUTED
1289c6: 83 c9 ff or $0xffffffff,%ecx <== NOT EXECUTED
1289c9: 89 d7 mov %edx,%edi <== NOT EXECUTED
1289cb: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED
1289cd: f7 d1 not %ecx <== NOT EXECUTED
1289cf: 49 dec %ecx <== NOT EXECUTED
1289d0: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1289d3: 6a 00 push $0x0 <== NOT EXECUTED
1289d5: 8d 5d d4 lea -0x2c(%ebp),%ebx <== NOT EXECUTED
1289d8: 53 push %ebx <== NOT EXECUTED
1289d9: 6a 00 push $0x0 <== NOT EXECUTED
1289db: 51 push %ecx <== NOT EXECUTED
1289dc: 52 push %edx <== NOT EXECUTED
1289dd: e8 4f 44 fe ff call 10ce31 <rtems_filesystem_evaluate_path><== NOT EXECUTED
0, &loc, _STAT_FOLLOW_LINKS );
if ( status != 0 )
1289e2: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
1289e5: 83 cf ff or $0xffffffff,%edi <== NOT EXECUTED
1289e8: 85 c0 test %eax,%eax <== NOT EXECUTED
1289ea: 75 5c jne 128a48 <lstat+0xa4> <== NOT EXECUTED
return -1;
if ( !loc.handlers->fstat_h ){
1289ec: 8b 55 dc mov -0x24(%ebp),%edx <== NOT EXECUTED
1289ef: 83 7a 18 00 cmpl $0x0,0x18(%edx) <== NOT EXECUTED
1289f3: 75 27 jne 128a1c <lstat+0x78> <== NOT EXECUTED
rtems_filesystem_freenode( &loc );
1289f5: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
1289f8: 85 c0 test %eax,%eax <== NOT EXECUTED
1289fa: 74 10 je 128a0c <lstat+0x68> <== NOT EXECUTED
1289fc: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED
1289ff: 85 c0 test %eax,%eax <== NOT EXECUTED
128a01: 74 09 je 128a0c <lstat+0x68> <== NOT EXECUTED
128a03: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
128a06: 53 push %ebx <== NOT EXECUTED
128a07: ff d0 call *%eax <== NOT EXECUTED
128a09: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
128a0c: e8 87 43 01 00 call 13cd98 <__errno> <== NOT EXECUTED
128a11: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
128a17: 83 cf ff or $0xffffffff,%edi <== NOT EXECUTED
128a1a: eb 2c jmp 128a48 <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) );
128a1c: b9 12 00 00 00 mov $0x12,%ecx <== NOT EXECUTED
128a21: 89 f7 mov %esi,%edi <== NOT EXECUTED
128a23: f3 ab rep stos %eax,%es:(%edi) <== NOT EXECUTED
status = (*loc.handlers->fstat_h)( &loc, buf );
128a25: 50 push %eax <== NOT EXECUTED
128a26: 50 push %eax <== NOT EXECUTED
128a27: 56 push %esi <== NOT EXECUTED
128a28: 53 push %ebx <== NOT EXECUTED
128a29: ff 52 18 call *0x18(%edx) <== NOT EXECUTED
128a2c: 89 c7 mov %eax,%edi <== NOT EXECUTED
rtems_filesystem_freenode( &loc );
128a2e: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
128a31: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
128a34: 85 c0 test %eax,%eax <== NOT EXECUTED
128a36: 74 10 je 128a48 <lstat+0xa4> <== NOT EXECUTED
128a38: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED
128a3b: 85 c0 test %eax,%eax <== NOT EXECUTED
128a3d: 74 09 je 128a48 <lstat+0xa4> <== NOT EXECUTED
128a3f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
128a42: 53 push %ebx <== NOT EXECUTED
128a43: ff d0 call *%eax <== NOT EXECUTED
128a45: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
return status;
}
128a48: 89 f8 mov %edi,%eax <== NOT EXECUTED
128a4a: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
128a4d: 5b pop %ebx <== NOT EXECUTED
128a4e: 5e pop %esi <== NOT EXECUTED
128a4f: 5f pop %edi <== NOT EXECUTED
128a50: c9 leave <== NOT EXECUTED
128a51: 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 5c 55 12 00 incl 0x12555c
/*
* 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 28 58 12 00 03 cmpl $0x3,0x125828
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 70 16 12 00 pushl 0x121670
107974: e8 57 43 00 00 call 10bcd0 <_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 f4 39 12 00 mov 0x1239f4,%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 1e 9f 00 00 call 1118c0 <__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 f8 39 12 00 mov 0x1239f8,%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 f0 39 12 00 mov 0x1239f0,%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 4c 55 12 00 push $0x12554c <== NOT EXECUTED
107860: e8 7f 35 00 00 call 10ade4 <_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 4c 55 12 00 push $0x12554c
107886: e8 95 35 00 00 call 10ae20 <_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 90 56 12 00 mov 0x125690,%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 28 57 12 00 mov 0x125728,%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
00110010 <memfile_alloc_block>:
*/
int memfile_blocks_allocated = 0;
void *memfile_alloc_block(void)
{
110010: 55 push %ebp
110011: 89 e5 mov %esp,%ebp
110013: 83 ec 10 sub $0x10,%esp
void *memory;
memory = (void *)calloc(1, IMFS_MEMFILE_BYTES_PER_BLOCK);
110016: ff 35 2c 52 12 00 pushl 0x12522c
11001c: 6a 01 push $0x1
11001e: e8 99 74 ff ff call 1074bc <calloc>
if ( memory )
110023: 83 c4 10 add $0x10,%esp
110026: 85 c0 test %eax,%eax
110028: 74 06 je 110030 <memfile_alloc_block+0x20><== NEVER TAKEN
memfile_blocks_allocated++;
11002a: ff 05 40 53 12 00 incl 0x125340
return memory;
}
110030: c9 leave
110031: c3 ret
0011038c <memfile_check_rmnod>:
return memfile_check_rmnod( the_jnode );
}
int memfile_check_rmnod( IMFS_jnode_t *the_jnode ){
11038c: 55 push %ebp
11038d: 89 e5 mov %esp,%ebp
11038f: 53 push %ebx
110390: 83 ec 10 sub $0x10,%esp
110393: 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) ) {
110396: 53 push %ebx
110397: e8 52 e9 ff ff call 10ecee <rtems_libio_is_file_open>
11039c: 83 c4 10 add $0x10,%esp
11039f: 85 c0 test %eax,%eax
1103a1: 75 36 jne 1103d9 <memfile_check_rmnod+0x4d>
1103a3: 66 83 7b 34 00 cmpw $0x0,0x34(%ebx)
1103a8: 75 2f jne 1103d9 <memfile_check_rmnod+0x4d><== NEVER TAKEN
/*
* Is the rtems_filesystem_current is this node?
*/
if ( rtems_filesystem_current.node_access == the_jnode )
1103aa: a1 74 34 12 00 mov 0x123474,%eax
1103af: 39 58 04 cmp %ebx,0x4(%eax)
1103b2: 75 07 jne 1103bb <memfile_check_rmnod+0x2f><== ALWAYS TAKEN
rtems_filesystem_current.node_access = NULL;
1103b4: 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)
1103bb: 83 7b 4c 06 cmpl $0x6,0x4c(%ebx)
1103bf: 74 0c je 1103cd <memfile_check_rmnod+0x41><== NEVER TAKEN
IMFS_memfile_remove( the_jnode );
1103c1: 83 ec 0c sub $0xc,%esp
1103c4: 53 push %ebx
1103c5: e8 98 fe ff ff call 110262 <IMFS_memfile_remove>
1103ca: 83 c4 10 add $0x10,%esp
free( the_jnode );
1103cd: 83 ec 0c sub $0xc,%esp
1103d0: 53 push %ebx
1103d1: e8 c6 72 ff ff call 10769c <free>
1103d6: 83 c4 10 add $0x10,%esp
}
return 0;
}
1103d9: 31 c0 xor %eax,%eax
1103db: 8b 5d fc mov -0x4(%ebp),%ebx
1103de: c9 leave
1103df: c3 ret
001101ad <memfile_free_blocks_in_table>:
void memfile_free_blocks_in_table(
block_p **block_table,
int entries
)
{
1101ad: 55 push %ebp
1101ae: 89 e5 mov %esp,%ebp
1101b0: 57 push %edi
1101b1: 56 push %esi
1101b2: 53 push %ebx
1101b3: 83 ec 0c sub $0xc,%esp
1101b6: 8b 75 08 mov 0x8(%ebp),%esi
/*
* Perform internal consistency checks
*/
assert( block_table );
1101b9: 85 f6 test %esi,%esi
1101bb: 75 19 jne 1101d6 <memfile_free_blocks_in_table+0x29><== ALWAYS TAKEN
1101bd: 68 2f f7 11 00 push $0x11f72f <== NOT EXECUTED
1101c2: 68 24 f8 11 00 push $0x11f824 <== NOT EXECUTED
1101c7: 68 b3 01 00 00 push $0x1b3 <== NOT EXECUTED
1101cc: 68 be f6 11 00 push $0x11f6be <== NOT EXECUTED
1101d1: e8 ca 71 ff ff call 1073a0 <__assert_func> <== NOT EXECUTED
/*
* Now go through all the slots in the table and free the memory.
*/
b = *block_table;
1101d6: 8b 3e mov (%esi),%edi
1101d8: 31 db xor %ebx,%ebx
for ( i=0 ; i<entries ; i++ ) {
1101da: eb 1b jmp 1101f7 <memfile_free_blocks_in_table+0x4a>
if ( b[i] ) {
1101dc: 8b 04 9f mov (%edi,%ebx,4),%eax
1101df: 85 c0 test %eax,%eax
1101e1: 74 13 je 1101f6 <memfile_free_blocks_in_table+0x49>
memfile_free_block( b[i] );
1101e3: 83 ec 0c sub $0xc,%esp
1101e6: 50 push %eax
1101e7: e8 0b fe ff ff call 10fff7 <memfile_free_block>
b[i] = 0;
1101ec: c7 04 9f 00 00 00 00 movl $0x0,(%edi,%ebx,4)
1101f3: 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++ ) {
1101f6: 43 inc %ebx
1101f7: 3b 5d 0c cmp 0xc(%ebp),%ebx
1101fa: 7c e0 jl 1101dc <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 );
1101fc: 83 ec 0c sub $0xc,%esp
1101ff: ff 36 pushl (%esi)
110201: e8 f1 fd ff ff call 10fff7 <memfile_free_block>
*block_table = 0;
110206: c7 06 00 00 00 00 movl $0x0,(%esi)
11020c: 83 c4 10 add $0x10,%esp
}
11020f: 8d 65 f4 lea -0xc(%ebp),%esp
110212: 5b pop %ebx
110213: 5e pop %esi
110214: 5f pop %edi
110215: c9 leave
110216: c3 ret
001105ed <memfile_ftruncate>:
int memfile_ftruncate(
rtems_libio_t *iop,
rtems_off64_t length
)
{
1105ed: 55 push %ebp
1105ee: 89 e5 mov %esp,%ebp
1105f0: 53 push %ebx
1105f1: 83 ec 14 sub $0x14,%esp
1105f4: 8b 4d 08 mov 0x8(%ebp),%ecx
1105f7: 8b 45 0c mov 0xc(%ebp),%eax
1105fa: 8b 55 10 mov 0x10(%ebp),%edx
IMFS_jnode_t *the_jnode;
the_jnode = iop->file_info;
1105fd: 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 )
110600: 3b 53 54 cmp 0x54(%ebx),%edx
110603: 7c 12 jl 110617 <memfile_ftruncate+0x2a><== NEVER TAKEN
110605: 7f 05 jg 11060c <memfile_ftruncate+0x1f><== NEVER TAKEN
110607: 3b 43 50 cmp 0x50(%ebx),%eax
11060a: 76 0b jbe 110617 <memfile_ftruncate+0x2a><== ALWAYS TAKEN
return IMFS_memfile_extend( the_jnode, length );
11060c: 51 push %ecx <== NOT EXECUTED
11060d: 52 push %edx <== NOT EXECUTED
11060e: 50 push %eax <== NOT EXECUTED
11060f: 53 push %ebx <== NOT EXECUTED
110610: e8 b2 fe ff ff call 1104c7 <IMFS_memfile_extend> <== NOT EXECUTED
110615: eb 21 jmp 110638 <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;
110617: 89 43 50 mov %eax,0x50(%ebx)
11061a: 89 53 54 mov %edx,0x54(%ebx)
iop->size = the_jnode->info.file.size;
11061d: 89 41 04 mov %eax,0x4(%ecx)
110620: 89 51 08 mov %edx,0x8(%ecx)
IMFS_update_atime( the_jnode );
110623: 52 push %edx
110624: 52 push %edx
110625: 6a 00 push $0x0
110627: 8d 45 f0 lea -0x10(%ebp),%eax
11062a: 50 push %eax
11062b: e8 e4 70 ff ff call 107714 <gettimeofday>
110630: 8b 45 f0 mov -0x10(%ebp),%eax
110633: 89 43 40 mov %eax,0x40(%ebx)
110636: 31 c0 xor %eax,%eax
return 0;
110638: 83 c4 10 add $0x10,%esp
}
11063b: 8b 5d fc mov -0x4(%ebp),%ebx
11063e: c9 leave
11063f: c3 ret
00110640 <memfile_lseek>:
rtems_off64_t memfile_lseek(
rtems_libio_t *iop,
rtems_off64_t offset,
int whence
)
{
110640: 55 push %ebp
110641: 89 e5 mov %esp,%ebp
110643: 56 push %esi
110644: 53 push %ebx
110645: 8b 5d 08 mov 0x8(%ebp),%ebx
IMFS_jnode_t *the_jnode;
the_jnode = iop->file_info;
110648: 8b 73 38 mov 0x38(%ebx),%esi
if (the_jnode->type == IMFS_LINEAR_FILE) {
11064b: 83 7e 4c 06 cmpl $0x6,0x4c(%esi)
11064f: 75 1a jne 11066b <memfile_lseek+0x2b> <== ALWAYS TAKEN
if (iop->offset > the_jnode->info.linearfile.size)
110651: 8b 56 50 mov 0x50(%esi),%edx <== NOT EXECUTED
110654: 8b 46 54 mov 0x54(%esi),%eax <== NOT EXECUTED
110657: 39 43 10 cmp %eax,0x10(%ebx) <== NOT EXECUTED
11065a: 7c 41 jl 11069d <memfile_lseek+0x5d> <== NOT EXECUTED
11065c: 7f 05 jg 110663 <memfile_lseek+0x23> <== NOT EXECUTED
11065e: 39 53 0c cmp %edx,0xc(%ebx) <== NOT EXECUTED
110661: 76 3a jbe 11069d <memfile_lseek+0x5d> <== NOT EXECUTED
iop->offset = the_jnode->info.linearfile.size;
110663: 89 53 0c mov %edx,0xc(%ebx) <== NOT EXECUTED
110666: 89 43 10 mov %eax,0x10(%ebx) <== NOT EXECUTED
110669: eb 32 jmp 11069d <memfile_lseek+0x5d> <== NOT EXECUTED
}
else { /* Must be a block file (IMFS_MEMORY_FILE). */
if (IMFS_memfile_extend( the_jnode, iop->offset ))
11066b: 50 push %eax
11066c: ff 73 10 pushl 0x10(%ebx)
11066f: ff 73 0c pushl 0xc(%ebx)
110672: 56 push %esi
110673: e8 4f fe ff ff call 1104c7 <IMFS_memfile_extend>
110678: 83 c4 10 add $0x10,%esp
11067b: 85 c0 test %eax,%eax
11067d: 74 12 je 110691 <memfile_lseek+0x51> <== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( ENOSPC );
11067f: e8 3c 12 00 00 call 1118c0 <__errno> <== NOT EXECUTED
110684: c7 00 1c 00 00 00 movl $0x1c,(%eax) <== NOT EXECUTED
11068a: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
11068d: 89 c2 mov %eax,%edx <== NOT EXECUTED
11068f: eb 12 jmp 1106a3 <memfile_lseek+0x63> <== NOT EXECUTED
iop->size = the_jnode->info.file.size;
110691: 8b 46 50 mov 0x50(%esi),%eax
110694: 8b 56 54 mov 0x54(%esi),%edx
110697: 89 43 04 mov %eax,0x4(%ebx)
11069a: 89 53 08 mov %edx,0x8(%ebx)
}
return iop->offset;
11069d: 8b 43 0c mov 0xc(%ebx),%eax
1106a0: 8b 53 10 mov 0x10(%ebx),%edx
}
1106a3: 8d 65 f8 lea -0x8(%ebp),%esp
1106a6: 5b pop %ebx
1106a7: 5e pop %esi
1106a8: c9 leave
1106a9: c3 ret
001108cf <memfile_open>:
rtems_libio_t *iop,
const char *pathname,
uint32_t flag,
uint32_t mode
)
{
1108cf: 55 push %ebp
1108d0: 89 e5 mov %esp,%ebp
1108d2: 56 push %esi
1108d3: 53 push %ebx
1108d4: 8b 75 08 mov 0x8(%ebp),%esi
IMFS_jnode_t *the_jnode;
the_jnode = iop->file_info;
1108d7: 8b 5e 38 mov 0x38(%esi),%ebx
/*
* Perform 'copy on write' for linear files
*/
if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND))
1108da: f7 46 14 04 02 00 00 testl $0x204,0x14(%esi)
1108e1: 74 54 je 110937 <memfile_open+0x68>
&& (the_jnode->type == IMFS_LINEAR_FILE)) {
1108e3: 83 7b 4c 06 cmpl $0x6,0x4c(%ebx)
1108e7: 75 4e jne 110937 <memfile_open+0x68> <== ALWAYS TAKEN
uint32_t count = the_jnode->info.linearfile.size;
1108e9: 8b 43 50 mov 0x50(%ebx),%eax <== NOT EXECUTED
const unsigned char *buffer = the_jnode->info.linearfile.direct;
1108ec: 8b 53 58 mov 0x58(%ebx),%edx <== NOT EXECUTED
the_jnode->type = IMFS_MEMORY_FILE;
1108ef: c7 43 4c 05 00 00 00 movl $0x5,0x4c(%ebx) <== NOT EXECUTED
the_jnode->info.file.size = 0;
1108f6: c7 43 50 00 00 00 00 movl $0x0,0x50(%ebx) <== NOT EXECUTED
1108fd: c7 43 54 00 00 00 00 movl $0x0,0x54(%ebx) <== NOT EXECUTED
the_jnode->info.file.indirect = 0;
110904: c7 43 58 00 00 00 00 movl $0x0,0x58(%ebx) <== NOT EXECUTED
the_jnode->info.file.doubly_indirect = 0;
11090b: c7 43 5c 00 00 00 00 movl $0x0,0x5c(%ebx) <== NOT EXECUTED
the_jnode->info.file.triply_indirect = 0;
110912: c7 43 60 00 00 00 00 movl $0x0,0x60(%ebx) <== NOT EXECUTED
if ((count != 0)
110919: 85 c0 test %eax,%eax <== NOT EXECUTED
11091b: 74 1a je 110937 <memfile_open+0x68> <== NOT EXECUTED
&& (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1))
11091d: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
110920: 50 push %eax <== NOT EXECUTED
110921: 52 push %edx <== NOT EXECUTED
110922: 6a 00 push $0x0 <== NOT EXECUTED
110924: 6a 00 push $0x0 <== NOT EXECUTED
110926: 53 push %ebx <== NOT EXECUTED
110927: e8 7e fd ff ff call 1106aa <IMFS_memfile_write> <== NOT EXECUTED
11092c: 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)
11092e: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
110931: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
110934: 42 inc %edx <== NOT EXECUTED
110935: 74 20 je 110957 <memfile_open+0x88> <== NOT EXECUTED
&& (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1))
return -1;
}
if (iop->flags & LIBIO_FLAGS_APPEND)
110937: f6 46 15 02 testb $0x2,0x15(%esi)
11093b: 74 0c je 110949 <memfile_open+0x7a>
iop->offset = the_jnode->info.file.size;
11093d: 8b 43 50 mov 0x50(%ebx),%eax
110940: 8b 53 54 mov 0x54(%ebx),%edx
110943: 89 46 0c mov %eax,0xc(%esi)
110946: 89 56 10 mov %edx,0x10(%esi)
iop->size = the_jnode->info.file.size;
110949: 8b 43 50 mov 0x50(%ebx),%eax
11094c: 8b 53 54 mov 0x54(%ebx),%edx
11094f: 89 46 04 mov %eax,0x4(%esi)
110952: 89 56 08 mov %edx,0x8(%esi)
110955: 31 c0 xor %eax,%eax
return 0;
}
110957: 8d 65 f8 lea -0x8(%ebp),%esp
11095a: 5b pop %ebx
11095b: 5e pop %esi
11095c: c9 leave
11095d: c3 ret
001103e0 <memfile_rmnod>:
int memfile_rmnod(
rtems_filesystem_location_info_t *parent_pathloc, /* IN */
rtems_filesystem_location_info_t *pathloc /* IN */
)
{
1103e0: 55 push %ebp
1103e1: 89 e5 mov %esp,%ebp
1103e3: 53 push %ebx
1103e4: 83 ec 14 sub $0x14,%esp
IMFS_jnode_t *the_jnode;
the_jnode = (IMFS_jnode_t *) pathloc->node_access;
1103e7: 8b 45 0c mov 0xc(%ebp),%eax
1103ea: 8b 18 mov (%eax),%ebx
/*
* Take the node out of the parent's chain that contains this node
*/
if ( the_jnode->Parent != NULL ) {
1103ec: 83 7b 08 00 cmpl $0x0,0x8(%ebx)
1103f0: 74 13 je 110405 <memfile_rmnod+0x25> <== NEVER TAKEN
1103f2: 83 ec 0c sub $0xc,%esp
1103f5: 53 push %ebx
1103f6: e8 0d aa ff ff call 10ae08 <_Chain_Extract>
rtems_chain_extract( (rtems_chain_node *) the_jnode );
the_jnode->Parent = NULL;
1103fb: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx)
110402: 83 c4 10 add $0x10,%esp
/*
* Decrement the link counter and see if we can free the space.
*/
the_jnode->st_nlink--;
110405: 66 ff 4b 34 decw 0x34(%ebx)
IMFS_update_ctime( the_jnode );
110409: 50 push %eax
11040a: 50 push %eax
11040b: 6a 00 push $0x0
11040d: 8d 45 f0 lea -0x10(%ebp),%eax
110410: 50 push %eax
110411: e8 fe 72 ff ff call 107714 <gettimeofday>
110416: 8b 45 f0 mov -0x10(%ebp),%eax
110419: 89 43 48 mov %eax,0x48(%ebx)
return memfile_check_rmnod( the_jnode );
11041c: 89 1c 24 mov %ebx,(%esp)
11041f: e8 68 ff ff ff call 11038c <memfile_check_rmnod>
}
110424: 8b 5d fc mov -0x4(%ebp),%ebx
110427: c9 leave
110428: 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 78 9e 00 00 call 1118c0 <__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 4f 9e 00 00 call 1118c0 <__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 a0 74 00 00 call 10f00b <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 46 9d 00 00 call 1118c0 <__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 b0 ef 11 00 movl $0x11efb0,-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 32 a8 00 00 call 112434 <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 1c a8 00 00 call 112434 <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 08 a8 00 00 call 112434 <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 f0 ef 11 00 mov $0x11eff0,%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 65 9c 00 00 call 1118c0 <__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 1f 9c 00 00 call 1118c0 <__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 f9 9b 00 00 call 1118c0 <__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 ca 9b 00 00 call 1118c0 <__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 54 34 12 00 58 cmpl $0x123458,0x123454
107d1c: 34 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 9a 9b 00 00 call 1118c0 <__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 48 55 12 00 pushl 0x125548
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 54 34 12 00 push $0x123454
107d6b: e8 74 30 00 00 call 10ade4 <_Chain_Append>
}
static inline void rtems_libio_unlock( void )
{
rtems_semaphore_release( rtems_libio_semaphore );
107d70: 5a pop %edx
107d71: ff 35 48 55 12 00 pushl 0x125548
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 74 34 12 00 mov 0x123474,%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
00131e5c <msdos_creat_node>:
msdos_node_type_t type,
const char *name,
int name_len,
mode_t mode,
const fat_file_fd_t *link_fd)
{
131e5c: 55 push %ebp <== NOT EXECUTED
131e5d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
131e5f: 57 push %edi <== NOT EXECUTED
131e60: 56 push %esi <== NOT EXECUTED
131e61: 53 push %ebx <== NOT EXECUTED
131e62: 81 ec cc 00 00 00 sub $0xcc,%esp <== NOT EXECUTED
131e68: 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;
131e6b: 8b 43 10 mov 0x10(%ebx),%eax <== NOT EXECUTED
131e6e: 8b 40 34 mov 0x34(%eax),%eax <== NOT EXECUTED
131e71: 89 85 44 ff ff ff mov %eax,-0xbc(%ebp) <== NOT EXECUTED
fat_file_fd_t *parent_fat_fd = parent_loc->node_access;
131e77: 8b 03 mov (%ebx),%eax <== NOT EXECUTED
131e79: 89 85 40 ff ff ff mov %eax,-0xc0(%ebp) <== NOT EXECUTED
fat_file_fd_t *fat_fd = NULL;
131e7f: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp) <== NOT EXECUTED
time_t time_ret = 0;
uint16_t time_val = 0;
131e86: 66 c7 45 e6 00 00 movw $0x0,-0x1a(%ebp) <== NOT EXECUTED
uint16_t date = 0;
131e8c: 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;
131e92: c7 45 d0 00 00 00 00 movl $0x0,-0x30(%ebp) <== NOT EXECUTED
dir_pos->sname.ofs = 0;
131e99: c7 45 d4 00 00 00 00 movl $0x0,-0x2c(%ebp) <== NOT EXECUTED
dir_pos->lname.cln = FAT_FILE_SHORT_NAME;
131ea0: c7 45 d8 ff ff ff ff movl $0xffffffff,-0x28(%ebp) <== NOT EXECUTED
dir_pos->lname.ofs = FAT_FILE_SHORT_NAME;
131ea7: 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);
131eae: 8d 75 b0 lea -0x50(%ebp),%esi <== NOT EXECUTED
131eb1: 31 c0 xor %eax,%eax <== NOT EXECUTED
131eb3: b9 08 00 00 00 mov $0x8,%ecx <== NOT EXECUTED
131eb8: 89 f7 mov %esi,%edi <== NOT EXECUTED
131eba: f3 ab rep stos %eax,%es:(%edi) <== NOT EXECUTED
memset(dot_dotdot, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE * 2);
131ebc: 8d 95 50 ff ff ff lea -0xb0(%ebp),%edx <== NOT EXECUTED
131ec2: b1 10 mov $0x10,%cl <== NOT EXECUTED
131ec4: 89 d7 mov %edx,%edi <== NOT EXECUTED
131ec6: f3 ab rep stos %eax,%es:(%edi) <== NOT EXECUTED
name_type = msdos_long_to_short (name, name_len,
131ec8: 6a 0b push $0xb <== NOT EXECUTED
131eca: 56 push %esi <== NOT EXECUTED
131ecb: ff 75 14 pushl 0x14(%ebp) <== NOT EXECUTED
131ece: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
131ed1: e8 14 1b 00 00 call 1339ea <msdos_long_to_short> <== NOT EXECUTED
131ed6: 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;
131edc: c6 45 bc 00 movb $0x0,-0x44(%ebp) <== NOT EXECUTED
/* set up last write date and time */
time_ret = time(NULL);
131ee0: c7 04 24 00 00 00 00 movl $0x0,(%esp) <== NOT EXECUTED
131ee7: e8 44 5b 01 00 call 147a30 <time> <== NOT EXECUTED
if ( time_ret == -1 )
131eec: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
131eef: 83 f8 ff cmp $0xffffffff,%eax <== NOT EXECUTED
131ef2: 0f 84 85 02 00 00 je 13217d <msdos_creat_node+0x321><== NOT EXECUTED
return -1;
msdos_date_unix2dos(time_ret, &date, &time_val);
131ef8: 51 push %ecx <== NOT EXECUTED
131ef9: 8d 55 e6 lea -0x1a(%ebp),%edx <== NOT EXECUTED
131efc: 52 push %edx <== NOT EXECUTED
131efd: 8d 55 e4 lea -0x1c(%ebp),%edx <== NOT EXECUTED
131f00: 52 push %edx <== NOT EXECUTED
131f01: 50 push %eax <== NOT EXECUTED
131f02: e8 61 96 00 00 call 13b568 <msdos_date_unix2dos> <== NOT EXECUTED
*MSDOS_DIR_WRITE_TIME(short_node) = CT_LE_W(time_val);
131f07: 66 8b 45 e6 mov -0x1a(%ebp),%ax <== NOT EXECUTED
131f0b: 66 89 45 c6 mov %ax,-0x3a(%ebp) <== NOT EXECUTED
*MSDOS_DIR_WRITE_DATE(short_node) = CT_LE_W(date);
131f0f: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
131f12: 66 89 45 c8 mov %ax,-0x38(%ebp) <== NOT EXECUTED
/* initialize directory/file size */
*MSDOS_DIR_FILE_SIZE(short_node) = MSDOS_INIT_DIR_SIZE;
131f16: c7 45 cc 00 00 00 00 movl $0x0,-0x34(%ebp) <== NOT EXECUTED
if (type == MSDOS_DIRECTORY) {
131f1d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
131f20: 83 7d 0c 01 cmpl $0x1,0xc(%ebp) <== NOT EXECUTED
131f24: 75 0b jne 131f31 <msdos_creat_node+0xd5> <== NOT EXECUTED
*MSDOS_DIR_ATTR(short_node) |= MSDOS_ATTR_DIRECTORY;
131f26: 8a 45 bb mov -0x45(%ebp),%al <== NOT EXECUTED
131f29: 83 c8 10 or $0x10,%eax <== NOT EXECUTED
131f2c: e9 b2 00 00 00 jmp 131fe3 <msdos_creat_node+0x187><== NOT EXECUTED
}
else if (type == MSDOS_HARD_LINK) {
131f31: 83 7d 0c 03 cmpl $0x3,0xc(%ebp) <== NOT EXECUTED
131f35: 0f 85 a2 00 00 00 jne 131fdd <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,
131f3b: 8b 55 1c mov 0x1c(%ebp),%edx <== NOT EXECUTED
131f3e: 8b 42 20 mov 0x20(%edx),%eax <== NOT EXECUTED
131f41: 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;
131f44: 8b 56 34 mov 0x34(%esi),%edx <== NOT EXECUTED
if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) )
131f47: 85 c0 test %eax,%eax <== NOT EXECUTED
131f49: 75 0b jne 131f56 <msdos_creat_node+0xfa> <== NOT EXECUTED
131f4b: f6 42 0a 03 testb $0x3,0xa(%edx) <== NOT EXECUTED
131f4f: 74 05 je 131f56 <msdos_creat_node+0xfa> <== NOT EXECUTED
return fs_info->vol.rdir_loc;
131f51: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED
131f54: eb 0c jmp 131f62 <msdos_creat_node+0x106><== NOT EXECUTED
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
131f56: 83 e8 02 sub $0x2,%eax <== NOT EXECUTED
131f59: 0f b6 4a 05 movzbl 0x5(%edx),%ecx <== NOT EXECUTED
131f5d: d3 e0 shl %cl,%eax <== NOT EXECUTED
131f5f: 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);
131f62: 8b 4d 1c mov 0x1c(%ebp),%ecx <== NOT EXECUTED
131f65: 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,
131f68: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
131f6b: 8d 4d 90 lea -0x70(%ebp),%ecx <== NOT EXECUTED
131f6e: 51 push %ecx <== NOT EXECUTED
131f6f: 6a 20 push $0x20 <== NOT EXECUTED
131f71: 8b 8d 44 ff ff ff mov -0xbc(%ebp),%ecx <== NOT EXECUTED
131f77: 0f b7 39 movzwl (%ecx),%edi <== NOT EXECUTED
131f7a: 8d 4f ff lea -0x1(%edi),%ecx <== NOT EXECUTED
131f7d: 21 d1 and %edx,%ecx <== NOT EXECUTED
131f7f: 51 push %ecx <== NOT EXECUTED
131f80: 8b bd 44 ff ff ff mov -0xbc(%ebp),%edi <== NOT EXECUTED
131f86: 0f b6 4f 02 movzbl 0x2(%edi),%ecx <== NOT EXECUTED
131f8a: d3 ea shr %cl,%edx <== NOT EXECUTED
131f8c: 8d 14 10 lea (%eax,%edx,1),%edx <== NOT EXECUTED
131f8f: 52 push %edx <== NOT EXECUTED
131f90: 56 push %esi <== NOT EXECUTED
131f91: e8 dc 3c ff ff call 125c72 <_fat_block_read> <== NOT EXECUTED
sec, byte, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE,
link_node);
if (ret < 0) {
131f96: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
131f99: 85 c0 test %eax,%eax <== NOT EXECUTED
131f9b: 0f 88 dc 01 00 00 js 13217d <msdos_creat_node+0x321><== NOT EXECUTED
return -1;
}
/*
* copy various attributes
*/
*MSDOS_DIR_ATTR(short_node) =*MSDOS_DIR_ATTR(link_node);
131fa1: 8a 45 9b mov -0x65(%ebp),%al <== NOT EXECUTED
*MSDOS_DIR_CRT_TIME_TENTH(short_node)=*MSDOS_DIR_CRT_TIME_TENTH(link_node);
131fa4: 8a 55 9d mov -0x63(%ebp),%dl <== NOT EXECUTED
131fa7: 88 55 bd mov %dl,-0x43(%ebp) <== NOT EXECUTED
*MSDOS_DIR_CRT_TIME(short_node) =*MSDOS_DIR_CRT_TIME(link_node);
131faa: 66 8b 55 9e mov -0x62(%ebp),%dx <== NOT EXECUTED
131fae: 66 89 55 be mov %dx,-0x42(%ebp) <== NOT EXECUTED
*MSDOS_DIR_CRT_DATE(short_node) =*MSDOS_DIR_CRT_DATE(link_node);
131fb2: 8b 55 a0 mov -0x60(%ebp),%edx <== NOT EXECUTED
131fb5: 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);
131fb9: 8b 55 ac mov -0x54(%ebp),%edx <== NOT EXECUTED
131fbc: 89 55 cc mov %edx,-0x34(%ebp) <== NOT EXECUTED
*MSDOS_DIR_FIRST_CLUSTER_LOW(short_node) =
131fbf: 66 8b 55 aa mov -0x56(%ebp),%dx <== NOT EXECUTED
131fc3: 66 89 55 ca mov %dx,-0x36(%ebp) <== NOT EXECUTED
*MSDOS_DIR_FIRST_CLUSTER_LOW(link_node);
*MSDOS_DIR_FIRST_CLUSTER_HI(short_node) =
131fc7: 8b 55 a4 mov -0x5c(%ebp),%edx <== NOT EXECUTED
131fca: 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;
131fce: 83 c8 20 or $0x20,%eax <== NOT EXECUTED
131fd1: 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);
131fd4: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
131fd7: 66 89 45 c2 mov %ax,-0x3e(%ebp) <== NOT EXECUTED
131fdb: eb 09 jmp 131fe6 <msdos_creat_node+0x18a><== NOT EXECUTED
}
else { /* regular file... */
*MSDOS_DIR_ATTR(short_node) |= MSDOS_ATTR_ARCHIVE;
131fdd: 8a 45 bb mov -0x45(%ebp),%al <== NOT EXECUTED
131fe0: 83 c8 20 or $0x20,%eax <== NOT EXECUTED
131fe3: 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,
131fe6: 52 push %edx <== NOT EXECUTED
131fe7: 8d 45 b0 lea -0x50(%ebp),%eax <== NOT EXECUTED
131fea: 89 85 34 ff ff ff mov %eax,-0xcc(%ebp) <== NOT EXECUTED
131ff0: 50 push %eax <== NOT EXECUTED
131ff1: 8d 7d d0 lea -0x30(%ebp),%edi <== NOT EXECUTED
131ff4: 57 push %edi <== NOT EXECUTED
131ff5: ff b5 3c ff ff ff pushl -0xc4(%ebp) <== NOT EXECUTED
131ffb: ff 75 14 pushl 0x14(%ebp) <== NOT EXECUTED
131ffe: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
132001: 6a 01 push $0x1 <== NOT EXECUTED
132003: 53 push %ebx <== NOT EXECUTED
132004: e8 46 1d 00 00 call 133d4f <msdos_get_name_node> <== NOT EXECUTED
132009: 89 c6 mov %eax,%esi <== NOT EXECUTED
name_type, &dir_pos, short_node);
if ( rc != RC_OK )
13200b: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
13200e: 85 c0 test %eax,%eax <== NOT EXECUTED
132010: 0f 85 6a 01 00 00 jne 132180 <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)
132016: 83 7d 0c 01 cmpl $0x1,0xc(%ebp) <== NOT EXECUTED
13201a: 0f 85 60 01 00 00 jne 132180 <msdos_creat_node+0x324><== NOT EXECUTED
{
/* open new directory as fat-file */
rc = fat_file_open(parent_loc->mt_entry, &dir_pos, &fat_fd);
132020: 50 push %eax <== NOT EXECUTED
132021: 8d 45 e0 lea -0x20(%ebp),%eax <== NOT EXECUTED
132024: 50 push %eax <== NOT EXECUTED
132025: 57 push %edi <== NOT EXECUTED
132026: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED
132029: e8 56 33 ff ff call 125384 <fat_file_open> <== NOT EXECUTED
13202e: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc != RC_OK)
132030: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
132033: 85 c0 test %eax,%eax <== NOT EXECUTED
132035: 0f 85 2b 01 00 00 jne 132166 <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;
13203b: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
13203e: c7 40 18 00 00 00 00 movl $0x0,0x18(%eax) <== NOT EXECUTED
fat_fd->fat_file_type = FAT_DIRECTORY;
132045: c7 40 10 01 00 00 00 movl $0x1,0x10(%eax) <== NOT EXECUTED
fat_fd->size_limit = MSDOS_MAX_DIR_LENGHT;
13204c: 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,
132053: 8d 85 50 ff ff ff lea -0xb0(%ebp),%eax <== NOT EXECUTED
132059: b9 08 00 00 00 mov $0x8,%ecx <== NOT EXECUTED
13205e: 89 c7 mov %eax,%edi <== NOT EXECUTED
132060: 8b b5 34 ff ff ff mov -0xcc(%ebp),%esi <== NOT EXECUTED
132066: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED
MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
memcpy(DOTDOT_NODE_P(dot_dotdot), short_node,
132068: 8d 95 70 ff ff ff lea -0x90(%ebp),%edx <== NOT EXECUTED
13206e: b1 08 mov $0x8,%cl <== NOT EXECUTED
132070: 89 d7 mov %edx,%edi <== NOT EXECUTED
132072: 8b b5 34 ff ff ff mov -0xcc(%ebp),%esi <== NOT EXECUTED
132078: 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,
13207a: 8b 35 0c 29 16 00 mov 0x16290c,%esi <== NOT EXECUTED
132080: b1 0b mov $0xb,%cl <== NOT EXECUTED
132082: 89 c7 mov %eax,%edi <== NOT EXECUTED
132084: 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,
132086: 8b 35 10 29 16 00 mov 0x162910,%esi <== NOT EXECUTED
13208c: b1 0b mov $0xb,%cl <== NOT EXECUTED
13208e: 89 d7 mov %edx,%edi <== NOT EXECUTED
132090: 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)) &&
132092: 8b 8d 40 ff ff ff mov -0xc0(%ebp),%ecx <== NOT EXECUTED
132098: 83 79 20 01 cmpl $0x1,0x20(%ecx) <== NOT EXECUTED
13209c: 75 20 jne 1320be <msdos_creat_node+0x262><== NOT EXECUTED
13209e: 83 79 24 00 cmpl $0x0,0x24(%ecx) <== NOT EXECUTED
1320a2: 75 1a jne 1320be <msdos_creat_node+0x262><== NOT EXECUTED
(fs_info->fat.vol.type & FAT_FAT32))
1320a4: 8b bd 44 ff ff ff mov -0xbc(%ebp),%edi <== NOT EXECUTED
1320aa: f6 47 0a 04 testb $0x4,0xa(%edi) <== NOT EXECUTED
1320ae: 74 0e je 1320be <msdos_creat_node+0x262><== NOT EXECUTED
{
*MSDOS_DIR_FIRST_CLUSTER_LOW(DOTDOT_NODE_P(dot_dotdot)) = 0x0000;
1320b0: 66 c7 40 3a 00 00 movw $0x0,0x3a(%eax) <== NOT EXECUTED
*MSDOS_DIR_FIRST_CLUSTER_HI(DOTDOT_NODE_P(dot_dotdot)) = 0x0000;
1320b6: 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)) &&
1320bc: eb 14 jmp 1320d2 <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)) =
1320be: 8b 95 40 ff ff ff mov -0xc0(%ebp),%edx <== NOT EXECUTED
1320c4: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED
1320c7: 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)) =
1320cb: c1 e8 10 shr $0x10,%eax <== NOT EXECUTED
1320ce: 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,
1320d2: 8d b5 50 ff ff ff lea -0xb0(%ebp),%esi <== NOT EXECUTED
1320d8: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1320db: 56 push %esi <== NOT EXECUTED
1320dc: 6a 40 push $0x40 <== NOT EXECUTED
1320de: 6a 00 push $0x0 <== NOT EXECUTED
1320e0: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
1320e3: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED
1320e6: e8 36 2e ff ff call 124f21 <fat_file_write> <== NOT EXECUTED
MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE * 2,
(uint8_t *)dot_dotdot);
if (ret < 0)
1320eb: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
1320ee: 85 c0 test %eax,%eax <== NOT EXECUTED
1320f0: 78 61 js 132153 <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;
1320f2: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
1320f5: 8b 8d 44 ff ff ff mov -0xbc(%ebp),%ecx <== NOT EXECUTED
1320fb: 0f b7 51 06 movzwl 0x6(%ecx),%edx <== NOT EXECUTED
1320ff: 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)) =
132102: 8b 50 1c mov 0x1c(%eax),%edx <== NOT EXECUTED
132105: 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)) =
13210c: c1 ea 10 shr $0x10,%edx <== NOT EXECUTED
13210f: 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,
132116: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
132119: 56 push %esi <== NOT EXECUTED
13211a: 6a 20 push $0x20 <== NOT EXECUTED
13211c: 6a 00 push $0x0 <== NOT EXECUTED
13211e: 50 push %eax <== NOT EXECUTED
13211f: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED
132122: e8 fa 2d ff ff call 124f21 <fat_file_write> <== NOT EXECUTED
MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE,
(uint8_t *)DOT_NODE_P(dot_dotdot));
if (ret < 0)
132127: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
13212a: 85 c0 test %eax,%eax <== NOT EXECUTED
13212c: 78 25 js 132153 <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);
13212e: 56 push %esi <== NOT EXECUTED
13212f: 56 push %esi <== NOT EXECUTED
132130: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
132133: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED
132136: e8 60 15 00 00 call 13369b <msdos_set_first_cluster_num><== NOT EXECUTED
13213b: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc != RC_OK)
13213d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
132140: 85 c0 test %eax,%eax <== NOT EXECUTED
132142: 75 12 jne 132156 <msdos_creat_node+0x2fa><== NOT EXECUTED
goto error;
fat_file_close(parent_loc->mt_entry, fat_fd);
132144: 51 push %ecx <== NOT EXECUTED
132145: 51 push %ecx <== NOT EXECUTED
132146: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
132149: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED
13214c: e8 84 31 ff ff call 1252d5 <fat_file_close> <== NOT EXECUTED
132151: eb 25 jmp 132178 <msdos_creat_node+0x31c><== NOT EXECUTED
132153: 83 ce ff or $0xffffffff,%esi <== NOT EXECUTED
}
return RC_OK;
error:
fat_file_close(parent_loc->mt_entry, fat_fd);
132156: 52 push %edx <== NOT EXECUTED
132157: 52 push %edx <== NOT EXECUTED
132158: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
13215b: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED
13215e: e8 72 31 ff ff call 1252d5 <fat_file_close> <== NOT EXECUTED
132163: 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);
132166: 50 push %eax <== NOT EXECUTED
132167: 68 e5 00 00 00 push $0xe5 <== NOT EXECUTED
13216c: 8d 45 d0 lea -0x30(%ebp),%eax <== NOT EXECUTED
13216f: 50 push %eax <== NOT EXECUTED
132170: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED
132173: e8 cc 15 00 00 call 133744 <msdos_set_first_char4file_name><== NOT EXECUTED
return rc;
132178: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13217b: eb 03 jmp 132180 <msdos_creat_node+0x324><== NOT EXECUTED
13217d: 83 ce ff or $0xffffffff,%esi <== NOT EXECUTED
}
132180: 89 f0 mov %esi,%eax <== NOT EXECUTED
132182: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
132185: 5b pop %ebx <== NOT EXECUTED
132186: 5e pop %esi <== NOT EXECUTED
132187: 5f pop %edi <== NOT EXECUTED
132188: c9 leave <== NOT EXECUTED
132189: c3 ret <== NOT EXECUTED
0013b65b <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)
{
13b65b: 55 push %ebp <== NOT EXECUTED
13b65c: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13b65e: 57 push %edi <== NOT EXECUTED
13b65f: 56 push %esi <== NOT EXECUTED
13b660: 53 push %ebx <== NOT EXECUTED
13b661: 83 ec 04 sub $0x4,%esp <== NOT EXECUTED
13b664: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
13b667: 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) {
13b66a: 0f b7 05 94 77 16 00 movzwl 0x167794,%eax <== NOT EXECUTED
13b671: 39 c8 cmp %ecx,%eax <== NOT EXECUTED
13b673: 74 7a je 13b6ef <msdos_date_dos2unix+0x94><== NOT EXECUTED
lastdosdate = dd;
13b675: 66 89 0d 94 77 16 00 mov %cx,0x167794 <== NOT EXECUTED
days = 0;
year = (dd & MSDOS_DD_YEAR_MASK) >> MSDOS_DD_YEAR_SHIFT;
13b67c: 89 c8 mov %ecx,%eax <== NOT EXECUTED
13b67e: 25 00 fe 00 00 and $0xfe00,%eax <== NOT EXECUTED
13b683: c1 e8 09 shr $0x9,%eax <== NOT EXECUTED
13b686: 31 d2 xor %edx,%edx <== NOT EXECUTED
13b688: 31 f6 xor %esi,%esi <== NOT EXECUTED
for (y = 0; y < year; y++)
13b68a: eb 14 jmp 13b6a0 <msdos_date_dos2unix+0x45><== NOT EXECUTED
days += y & 0x03 ? 365 : 366;
13b68c: 89 f7 mov %esi,%edi <== NOT EXECUTED
13b68e: 83 e7 03 and $0x3,%edi <== NOT EXECUTED
13b691: 83 ff 01 cmp $0x1,%edi <== NOT EXECUTED
13b694: 19 ff sbb %edi,%edi <== NOT EXECUTED
13b696: f7 d7 not %edi <== NOT EXECUTED
13b698: 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++)
13b69f: 46 inc %esi <== NOT EXECUTED
13b6a0: 39 c6 cmp %eax,%esi <== NOT EXECUTED
13b6a2: 72 e8 jb 13b68c <msdos_date_dos2unix+0x31><== NOT EXECUTED
days += y & 0x03 ? 365 : 366;
months = year & 0x03 ? regyear : leapyear;
13b6a4: be 4c 29 16 00 mov $0x16294c,%esi <== NOT EXECUTED
13b6a9: a8 03 test $0x3,%al <== NOT EXECUTED
13b6ab: 75 05 jne 13b6b2 <msdos_date_dos2unix+0x57><== NOT EXECUTED
13b6ad: be 64 29 16 00 mov $0x162964,%esi <== NOT EXECUTED
/*
* Prevent going from 0 to 0xffffffff in the following
* loop.
*/
month = (dd & MSDOS_DD_MONTH_MASK) >> MSDOS_DD_MONTH_SHIFT;
13b6b2: 89 cf mov %ecx,%edi <== NOT EXECUTED
13b6b4: 81 e7 e0 01 00 00 and $0x1e0,%edi <== NOT EXECUTED
if (month == 0) {
13b6ba: c1 ef 05 shr $0x5,%edi <== NOT EXECUTED
13b6bd: 75 05 jne 13b6c4 <msdos_date_dos2unix+0x69><== NOT EXECUTED
13b6bf: bf 01 00 00 00 mov $0x1,%edi <== NOT EXECUTED
13b6c4: 31 c0 xor %eax,%eax <== NOT EXECUTED
month = 1;
}
for (m = 0; m < month - 1; m++)
13b6c6: 4f dec %edi <== NOT EXECUTED
13b6c7: 89 7d f0 mov %edi,-0x10(%ebp) <== NOT EXECUTED
13b6ca: eb 07 jmp 13b6d3 <msdos_date_dos2unix+0x78><== NOT EXECUTED
days += months[m];
13b6cc: 0f b7 3c 46 movzwl (%esi,%eax,2),%edi <== NOT EXECUTED
13b6d0: 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++)
13b6d2: 40 inc %eax <== NOT EXECUTED
13b6d3: 3b 45 f0 cmp -0x10(%ebp),%eax <== NOT EXECUTED
13b6d6: 72 f4 jb 13b6cc <msdos_date_dos2unix+0x71><== NOT EXECUTED
days += months[m];
days += ((dd & MSDOS_DD_DAY_MASK) >> MSDOS_DD_DAY_SHIFT) - 1;
lastseconds = (days + DAYSTO1980) * SECONDSPERDAY;
13b6d8: 83 e1 1f and $0x1f,%ecx <== NOT EXECUTED
13b6db: 8d 44 0a ff lea -0x1(%edx,%ecx,1),%eax <== NOT EXECUTED
13b6df: 69 c0 80 51 01 00 imul $0x15180,%eax,%eax <== NOT EXECUTED
13b6e5: 05 00 a6 ce 12 add $0x12cea600,%eax <== NOT EXECUTED
13b6ea: a3 98 77 16 00 mov %eax,0x167798 <== NOT EXECUTED
13b6ef: 89 d8 mov %ebx,%eax <== NOT EXECUTED
13b6f1: 83 e0 1f and $0x1f,%eax <== NOT EXECUTED
13b6f4: 03 05 98 77 16 00 add 0x167798,%eax <== NOT EXECUTED
13b6fa: 89 da mov %ebx,%edx <== NOT EXECUTED
13b6fc: 81 e2 00 f8 00 00 and $0xf800,%edx <== NOT EXECUTED
13b702: c1 ea 0b shr $0xb,%edx <== NOT EXECUTED
13b705: 69 d2 10 0e 00 00 imul $0xe10,%edx,%edx <== NOT EXECUTED
13b70b: 01 d0 add %edx,%eax <== NOT EXECUTED
13b70d: 81 e3 e0 07 00 00 and $0x7e0,%ebx <== NOT EXECUTED
13b713: c1 eb 05 shr $0x5,%ebx <== NOT EXECUTED
13b716: 6b db 3c imul $0x3c,%ebx,%ebx <== NOT EXECUTED
13b719: 01 d8 add %ebx,%eax <== NOT EXECUTED
}
return seconds + lastseconds;
}
13b71b: 5a pop %edx <== NOT EXECUTED
13b71c: 5b pop %ebx <== NOT EXECUTED
13b71d: 5e pop %esi <== NOT EXECUTED
13b71e: 5f pop %edi <== NOT EXECUTED
13b71f: c9 leave <== NOT EXECUTED
13b720: c3 ret <== NOT EXECUTED
0013b568 <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)
{
13b568: 55 push %ebp <== NOT EXECUTED
13b569: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13b56b: 57 push %edi <== NOT EXECUTED
13b56c: 56 push %esi <== NOT EXECUTED
13b56d: 53 push %ebx <== NOT EXECUTED
13b56e: 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) {
13b571: 39 0d 88 77 16 00 cmp %ecx,0x167788 <== NOT EXECUTED
13b577: 0f 84 bf 00 00 00 je 13b63c <msdos_date_unix2dos+0xd4><== NOT EXECUTED
lasttime = t;
13b57d: 89 0d 88 77 16 00 mov %ecx,0x167788 <== NOT EXECUTED
lastdtime = (((t % 60) >> 1) << MSDOS_DT_2SECONDS_SHIFT)
13b583: bb 3c 00 00 00 mov $0x3c,%ebx <== NOT EXECUTED
13b588: 89 c8 mov %ecx,%eax <== NOT EXECUTED
13b58a: 31 d2 xor %edx,%edx <== NOT EXECUTED
13b58c: f7 f3 div %ebx <== NOT EXECUTED
13b58e: 89 d6 mov %edx,%esi <== NOT EXECUTED
13b590: 31 d2 xor %edx,%edx <== NOT EXECUTED
13b592: f7 f3 div %ebx <== NOT EXECUTED
13b594: 89 d7 mov %edx,%edi <== NOT EXECUTED
13b596: c1 e7 05 shl $0x5,%edi <== NOT EXECUTED
13b599: 66 bb 10 0e mov $0xe10,%bx <== NOT EXECUTED
13b59d: 89 c8 mov %ecx,%eax <== NOT EXECUTED
13b59f: 31 d2 xor %edx,%edx <== NOT EXECUTED
13b5a1: f7 f3 div %ebx <== NOT EXECUTED
13b5a3: 66 bb 18 00 mov $0x18,%bx <== NOT EXECUTED
13b5a7: 31 d2 xor %edx,%edx <== NOT EXECUTED
13b5a9: f7 f3 div %ebx <== NOT EXECUTED
13b5ab: c1 e2 0b shl $0xb,%edx <== NOT EXECUTED
13b5ae: 01 d7 add %edx,%edi <== NOT EXECUTED
13b5b0: d1 ee shr %esi <== NOT EXECUTED
13b5b2: 8d 34 37 lea (%edi,%esi,1),%esi <== NOT EXECUTED
13b5b5: 66 89 35 92 77 16 00 mov %si,0x167792 <== 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);
13b5bc: bb 80 51 01 00 mov $0x15180,%ebx <== NOT EXECUTED
13b5c1: 89 c8 mov %ecx,%eax <== NOT EXECUTED
13b5c3: 31 d2 xor %edx,%edx <== NOT EXECUTED
13b5c5: f7 f3 div %ebx <== NOT EXECUTED
13b5c7: 89 c1 mov %eax,%ecx <== NOT EXECUTED
if (days != lastday) {
13b5c9: 3b 05 8c 77 16 00 cmp 0x16778c,%eax <== NOT EXECUTED
13b5cf: 74 6b je 13b63c <msdos_date_unix2dos+0xd4><== NOT EXECUTED
lastday = days;
13b5d1: a3 8c 77 16 00 mov %eax,0x16778c <== NOT EXECUTED
13b5d6: ba b2 07 00 00 mov $0x7b2,%edx <== NOT EXECUTED
for (year = 1970;; year++) {
inc = year & 0x03 ? 365 : 366;
13b5db: 89 d6 mov %edx,%esi <== NOT EXECUTED
13b5dd: 83 e6 03 and $0x3,%esi <== NOT EXECUTED
13b5e0: 83 fe 01 cmp $0x1,%esi <== NOT EXECUTED
13b5e3: 19 c0 sbb %eax,%eax <== NOT EXECUTED
13b5e5: f7 d0 not %eax <== NOT EXECUTED
13b5e7: 05 6e 01 00 00 add $0x16e,%eax <== NOT EXECUTED
if (days < inc)
13b5ec: 39 c1 cmp %eax,%ecx <== NOT EXECUTED
13b5ee: 72 05 jb 13b5f5 <msdos_date_unix2dos+0x8d><== NOT EXECUTED
break;
days -= inc;
13b5f0: 29 c1 sub %eax,%ecx <== NOT EXECUTED
* and month stuff.
*/
days = t / (SECONDSPERDAY);
if (days != lastday) {
lastday = days;
for (year = 1970;; year++) {
13b5f2: 42 inc %edx <== NOT EXECUTED
inc = year & 0x03 ? 365 : 366;
if (days < inc)
break;
days -= inc;
}
13b5f3: eb e6 jmp 13b5db <msdos_date_unix2dos+0x73><== NOT EXECUTED
months = year & 0x03 ? regyear : leapyear;
13b5f5: bb 4c 29 16 00 mov $0x16294c,%ebx <== NOT EXECUTED
13b5fa: 85 f6 test %esi,%esi <== NOT EXECUTED
13b5fc: 75 05 jne 13b603 <msdos_date_unix2dos+0x9b><== NOT EXECUTED
13b5fe: bb 64 29 16 00 mov $0x162964,%ebx <== NOT EXECUTED
13b603: 31 c0 xor %eax,%eax <== NOT EXECUTED
for (month = 0; month < 12; month++) {
if (days < months[month])
13b605: 0f b7 34 43 movzwl (%ebx,%eax,2),%esi <== NOT EXECUTED
13b609: 39 f1 cmp %esi,%ecx <== NOT EXECUTED
13b60b: 72 08 jb 13b615 <msdos_date_unix2dos+0xad><== NOT EXECUTED
break;
days -= months[month];
13b60d: 29 f1 sub %esi,%ecx <== NOT EXECUTED
if (days < inc)
break;
days -= inc;
}
months = year & 0x03 ? regyear : leapyear;
for (month = 0; month < 12; month++) {
13b60f: 40 inc %eax <== NOT EXECUTED
13b610: 83 f8 0c cmp $0xc,%eax <== NOT EXECUTED
13b613: 75 f0 jne 13b605 <msdos_date_unix2dos+0x9d><== NOT EXECUTED
if (days < months[month])
break;
days -= months[month];
}
lastddate = ((days + 1) << MSDOS_DD_DAY_SHIFT)
13b615: c1 e0 05 shl $0x5,%eax <== NOT EXECUTED
13b618: 8d 4c 08 21 lea 0x21(%eax,%ecx,1),%ecx <== NOT EXECUTED
13b61c: 66 89 0d 90 77 16 00 mov %cx,0x167790 <== 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)
13b623: 81 fa bc 07 00 00 cmp $0x7bc,%edx <== NOT EXECUTED
13b629: 76 11 jbe 13b63c <msdos_date_unix2dos+0xd4><== NOT EXECUTED
lastddate += (year - 1980) <<
13b62b: c1 e2 09 shl $0x9,%edx <== NOT EXECUTED
13b62e: 8d 8c 0a 00 88 ff ff lea -0x7800(%edx,%ecx,1),%ecx <== NOT EXECUTED
13b635: 66 89 0d 90 77 16 00 mov %cx,0x167790 <== NOT EXECUTED
MSDOS_DD_YEAR_SHIFT;
}
}
*dtp = lastdtime;
13b63c: 66 8b 15 92 77 16 00 mov 0x167792,%dx <== NOT EXECUTED
13b643: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
13b646: 66 89 10 mov %dx,(%eax) <== NOT EXECUTED
*ddp = lastddate;
13b649: 66 8b 15 90 77 16 00 mov 0x167790,%dx <== NOT EXECUTED
13b650: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
13b653: 66 89 10 mov %dx,(%eax) <== NOT EXECUTED
}
13b656: 5b pop %ebx <== NOT EXECUTED
13b657: 5e pop %esi <== NOT EXECUTED
13b658: 5f pop %edi <== NOT EXECUTED
13b659: c9 leave <== NOT EXECUTED
13b65a: c3 ret <== NOT EXECUTED
0013b800 <msdos_dir_chmod>:
* RC_OK always
*/
int
msdos_dir_chmod(rtems_filesystem_location_info_t *pathloc,
mode_t mode)
{
13b800: 55 push %ebp <== NOT EXECUTED
13b801: 89 e5 mov %esp,%ebp <== NOT EXECUTED
return RC_OK;
}
13b803: 31 c0 xor %eax,%eax <== NOT EXECUTED
13b805: c9 leave <== NOT EXECUTED
13b806: c3 ret <== NOT EXECUTED
0013bf70 <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)
{
13bf70: 55 push %ebp <== NOT EXECUTED
13bf71: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13bf73: 57 push %edi <== NOT EXECUTED
13bf74: 56 push %esi <== NOT EXECUTED
13bf75: 53 push %ebx <== NOT EXECUTED
13bf76: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED
13bf79: 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;
13bf7c: 8b 43 28 mov 0x28(%ebx),%eax <== NOT EXECUTED
13bf7f: 8b 70 34 mov 0x34(%eax),%esi <== NOT EXECUTED
fat_file_fd_t *fat_fd = iop->file_info;
13bf82: 8b 7b 38 mov 0x38(%ebx),%edi <== NOT EXECUTED
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
13bf85: 6a 00 push $0x0 <== NOT EXECUTED
13bf87: 6a 00 push $0x0 <== NOT EXECUTED
13bf89: ff b6 94 00 00 00 pushl 0x94(%esi) <== NOT EXECUTED
13bf8f: e8 74 4c fd ff call 110c08 <rtems_semaphore_obtain><== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
13bf94: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13bf97: 85 c0 test %eax,%eax <== NOT EXECUTED
13bf99: 74 10 je 13bfab <msdos_dir_close+0x3b> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EIO );
13bf9b: e8 f8 0d 00 00 call 13cd98 <__errno> <== NOT EXECUTED
13bfa0: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
13bfa6: 83 cb ff or $0xffffffff,%ebx <== NOT EXECUTED
13bfa9: eb 1c jmp 13bfc7 <msdos_dir_close+0x57> <== NOT EXECUTED
rc = fat_file_close(iop->pathinfo.mt_entry, fat_fd);
13bfab: 50 push %eax <== NOT EXECUTED
13bfac: 50 push %eax <== NOT EXECUTED
13bfad: 57 push %edi <== NOT EXECUTED
13bfae: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
13bfb1: e8 1f 93 fe ff call 1252d5 <fat_file_close> <== NOT EXECUTED
13bfb6: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc != RC_OK)
13bfb8: 59 pop %ecx <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
return rc;
}
rtems_semaphore_release(fs_info->vol_sema);
13bfb9: ff b6 94 00 00 00 pushl 0x94(%esi) <== NOT EXECUTED
13bfbf: e8 30 4d fd ff call 110cf4 <rtems_semaphore_release><== NOT EXECUTED
return RC_OK;
13bfc4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
13bfc7: 89 d8 mov %ebx,%eax <== NOT EXECUTED
13bfc9: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13bfcc: 5b pop %ebx <== NOT EXECUTED
13bfcd: 5e pop %esi <== NOT EXECUTED
13bfce: 5f pop %edi <== NOT EXECUTED
13bfcf: c9 leave <== NOT EXECUTED
13bfd0: c3 ret <== NOT EXECUTED
0013354b <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
)
{
13354b: 55 push %ebp <== NOT EXECUTED
13354c: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13354e: 57 push %edi <== NOT EXECUTED
13354f: 56 push %esi <== NOT EXECUTED
133550: 53 push %ebx <== NOT EXECUTED
133551: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
ssize_t ret = 0;
msdos_fs_info_t *fs_info = mt_entry->fs_info;
133554: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
133557: 8b 70 34 mov 0x34(%eax),%esi <== NOT EXECUTED
uint32_t j = 0, i = 0;
/* dir is not empty */
*ret_val = false;
13355a: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
13355d: c6 00 00 movb $0x0,(%eax) <== NOT EXECUTED
133560: 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,
133567: e9 8d 00 00 00 jmp 1335f9 <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)
13356c: 83 f8 1f cmp $0x1f,%eax <== NOT EXECUTED
13356f: 7f 08 jg 133579 <msdos_dir_is_empty+0x2e><== NOT EXECUTED
133571: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
133574: e9 b0 00 00 00 jmp 133629 <msdos_dir_is_empty+0xde><== NOT EXECUTED
return -1;
assert(ret == fs_info->fat.vol.bps);
133579: 0f b7 16 movzwl (%esi),%edx <== NOT EXECUTED
13357c: 39 d0 cmp %edx,%eax <== NOT EXECUTED
13357e: 74 6c je 1335ec <msdos_dir_is_empty+0xa1><== NOT EXECUTED
133580: 68 44 cc 15 00 push $0x15cc44 <== NOT EXECUTED
133585: 68 e0 cc 15 00 push $0x15cce0 <== NOT EXECUTED
13358a: 68 b5 03 00 00 push $0x3b5 <== NOT EXECUTED
13358f: 68 e6 cb 15 00 push $0x15cbe6 <== NOT EXECUTED
133594: e8 17 93 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;
133599: 8b 9e 98 00 00 00 mov 0x98(%esi),%ebx <== NOT EXECUTED
13359f: 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)) ==
1335a1: 80 3b e5 cmpb $0xe5,(%ebx) <== NOT EXECUTED
1335a4: 74 38 je 1335de <msdos_dir_is_empty+0x93><== NOT EXECUTED
MSDOS_THIS_DIR_ENTRY_EMPTY) ||
((*MSDOS_DIR_ATTR(entry) & MSDOS_ATTR_LFN_MASK) ==
1335a6: 0f b6 43 0b movzbl 0xb(%ebx),%eax <== NOT EXECUTED
1335aa: 83 e0 3f and $0x3f,%eax <== NOT EXECUTED
1335ad: 83 f8 0f cmp $0xf,%eax <== NOT EXECUTED
1335b0: 74 2c je 1335de <msdos_dir_is_empty+0x93><== NOT EXECUTED
MSDOS_ATTR_LFN) ||
(strncmp(MSDOS_DIR_NAME((entry)), MSDOS_DOT_NAME,
1335b2: 51 push %ecx <== NOT EXECUTED
1335b3: 6a 0b push $0xb <== NOT EXECUTED
1335b5: ff 35 0c 29 16 00 pushl 0x16290c <== NOT EXECUTED
1335bb: 53 push %ebx <== NOT EXECUTED
1335bc: e8 a3 f4 00 00 call 142a64 <strncmp> <== NOT EXECUTED
1335c1: 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)) ==
1335c4: 85 c0 test %eax,%eax <== NOT EXECUTED
1335c6: 74 16 je 1335de <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)),
1335c8: 52 push %edx <== NOT EXECUTED
1335c9: 6a 0b push $0xb <== NOT EXECUTED
1335cb: ff 35 10 29 16 00 pushl 0x162910 <== NOT EXECUTED
1335d1: 53 push %ebx <== NOT EXECUTED
1335d2: e8 8d f4 00 00 call 142a64 <strncmp> <== NOT EXECUTED
1335d7: 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)) ==
1335da: 85 c0 test %eax,%eax <== NOT EXECUTED
1335dc: 75 05 jne 1335e3 <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)
1335de: 83 c7 20 add $0x20,%edi <== NOT EXECUTED
1335e1: eb 0e jmp 1335f1 <msdos_dir_is_empty+0xa6><== NOT EXECUTED
continue;
/*
* Nothing more to look at.
*/
if ((*MSDOS_DIR_NAME(entry)) ==
1335e3: 31 c0 xor %eax,%eax <== NOT EXECUTED
1335e5: 80 3b 00 cmpb $0x0,(%ebx) <== NOT EXECUTED
1335e8: 75 3f jne 133629 <msdos_dir_is_empty+0xde><== NOT EXECUTED
1335ea: eb 35 jmp 133621 <msdos_dir_is_empty+0xd6><== NOT EXECUTED
MSDOS_THIS_DIR_ENTRY_AND_REST_EMPTY)
{
*ret_val = true;
return RC_OK;
1335ec: 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;
1335ee: 89 45 e0 mov %eax,-0x20(%ebp) <== NOT EXECUTED
1335f1: 3b 7d e0 cmp -0x20(%ebp),%edi <== NOT EXECUTED
1335f4: 72 a3 jb 133599 <msdos_dir_is_empty+0x4e><== NOT EXECUTED
/*
* Short file name entries mean not empty.
*/
return RC_OK;
}
j++;
1335f6: 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,
1335f9: 0f b7 06 movzwl (%esi),%eax <== NOT EXECUTED
1335fc: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1335ff: ff b6 98 00 00 00 pushl 0x98(%esi) <== NOT EXECUTED
133605: 50 push %eax <== NOT EXECUTED
133606: 0f af 45 e4 imul -0x1c(%ebp),%eax <== NOT EXECUTED
13360a: 50 push %eax <== NOT EXECUTED
13360b: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
13360e: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
133611: e8 0d 1b ff ff call 125123 <fat_file_read> <== NOT EXECUTED
133616: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
133619: 85 c0 test %eax,%eax <== NOT EXECUTED
13361b: 0f 85 4b ff ff ff jne 13356c <msdos_dir_is_empty+0x21><== NOT EXECUTED
*/
return RC_OK;
}
j++;
}
*ret_val = true;
133621: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
133624: c6 00 01 movb $0x1,(%eax) <== NOT EXECUTED
133627: 31 c0 xor %eax,%eax <== NOT EXECUTED
return RC_OK;
}
133629: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13362c: 5b pop %ebx <== NOT EXECUTED
13362d: 5e pop %esi <== NOT EXECUTED
13362e: 5f pop %edi <== NOT EXECUTED
13362f: c9 leave <== NOT EXECUTED
133630: c3 ret <== NOT EXECUTED
0013b807 <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)
{
13b807: 55 push %ebp <== NOT EXECUTED
13b808: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13b80a: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
switch (whence)
13b80d: 31 c0 xor %eax,%eax <== NOT EXECUTED
13b80f: 31 d2 xor %edx,%edx <== NOT EXECUTED
13b811: 83 7d 14 01 cmpl $0x1,0x14(%ebp) <== NOT EXECUTED
13b815: 76 10 jbe 13b827 <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 );
13b817: e8 7c 15 00 00 call 13cd98 <__errno> <== NOT EXECUTED
13b81c: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
13b822: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
13b825: 89 c2 mov %eax,%edx <== NOT EXECUTED
break;
}
return RC_OK;
}
13b827: c9 leave <== NOT EXECUTED
13b828: c3 ret <== NOT EXECUTED
0013bfd1 <msdos_dir_open>:
* set apropriately)
*/
int
msdos_dir_open(rtems_libio_t *iop, const char *pathname, uint32_t flag,
uint32_t mode)
{
13bfd1: 55 push %ebp <== NOT EXECUTED
13bfd2: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13bfd4: 57 push %edi <== NOT EXECUTED
13bfd5: 56 push %esi <== NOT EXECUTED
13bfd6: 53 push %ebx <== NOT EXECUTED
13bfd7: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED
13bfda: 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;
13bfdd: 8b 47 28 mov 0x28(%edi),%eax <== NOT EXECUTED
13bfe0: 8b 70 34 mov 0x34(%eax),%esi <== NOT EXECUTED
fat_file_fd_t *fat_fd = iop->file_info;
13bfe3: 8b 5f 38 mov 0x38(%edi),%ebx <== NOT EXECUTED
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
13bfe6: 6a 00 push $0x0 <== NOT EXECUTED
13bfe8: 6a 00 push $0x0 <== NOT EXECUTED
13bfea: ff b6 94 00 00 00 pushl 0x94(%esi) <== NOT EXECUTED
13bff0: e8 13 4c fd ff call 110c08 <rtems_semaphore_obtain><== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
13bff5: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13bff8: 85 c0 test %eax,%eax <== NOT EXECUTED
13bffa: 74 10 je 13c00c <msdos_dir_open+0x3b> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EIO );
13bffc: e8 97 0d 00 00 call 13cd98 <__errno> <== NOT EXECUTED
13c001: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
13c007: 83 cb ff or $0xffffffff,%ebx <== NOT EXECUTED
13c00a: eb 31 jmp 13c03d <msdos_dir_open+0x6c> <== NOT EXECUTED
rc = fat_file_reopen(fat_fd);
13c00c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13c00f: 53 push %ebx <== NOT EXECUTED
13c010: e8 bf 89 fe ff call 1249d4 <fat_file_reopen> <== NOT EXECUTED
13c015: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc != RC_OK)
13c017: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13c01a: 85 c0 test %eax,%eax <== NOT EXECUTED
13c01c: 75 0e jne 13c02c <msdos_dir_open+0x5b> <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
return rc;
}
iop->offset = 0;
13c01e: c7 47 0c 00 00 00 00 movl $0x0,0xc(%edi) <== NOT EXECUTED
13c025: c7 47 10 00 00 00 00 movl $0x0,0x10(%edi) <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
13c02c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13c02f: ff b6 94 00 00 00 pushl 0x94(%esi) <== NOT EXECUTED
13c035: e8 ba 4c fd ff call 110cf4 <rtems_semaphore_release><== NOT EXECUTED
return RC_OK;
13c03a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
13c03d: 89 d8 mov %ebx,%eax <== NOT EXECUTED
13c03f: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13c042: 5b pop %ebx <== NOT EXECUTED
13c043: 5e pop %esi <== NOT EXECUTED
13c044: 5f pop %edi <== NOT EXECUTED
13c045: c9 leave <== NOT EXECUTED
13c046: c3 ret <== NOT EXECUTED
0013ba1d <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)
{
13ba1d: 55 push %ebp <== NOT EXECUTED
13ba1e: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13ba20: 57 push %edi <== NOT EXECUTED
13ba21: 56 push %esi <== NOT EXECUTED
13ba22: 53 push %ebx <== NOT EXECUTED
13ba23: 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;
13ba29: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
13ba2c: 8b 42 28 mov 0x28(%edx),%eax <== NOT EXECUTED
13ba2f: 8b 58 34 mov 0x34(%eax),%ebx <== NOT EXECUTED
fat_file_fd_t *fat_fd = iop->file_info;
13ba32: 8b 4a 38 mov 0x38(%edx),%ecx <== NOT EXECUTED
13ba35: 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);
13ba3b: 8b 72 0c mov 0xc(%edx),%esi <== NOT EXECUTED
13ba3e: 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) &&
13ba41: 83 79 20 01 cmpl $0x1,0x20(%ecx) <== NOT EXECUTED
13ba45: 75 17 jne 13ba5e <msdos_dir_read+0x41> <== NOT EXECUTED
13ba47: 83 79 24 00 cmpl $0x0,0x24(%ecx) <== NOT EXECUTED
13ba4b: 75 11 jne 13ba5e <msdos_dir_read+0x41> <== NOT EXECUTED
(fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16))) ?
13ba4d: f6 43 0a 03 testb $0x3,0xa(%ebx) <== NOT EXECUTED
13ba51: 74 0b je 13ba5e <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) &&
13ba53: 8b 51 18 mov 0x18(%ecx),%edx <== NOT EXECUTED
13ba56: 89 95 8c fe ff ff mov %edx,-0x174(%ebp) <== NOT EXECUTED
13ba5c: eb 0a jmp 13ba68 <msdos_dir_read+0x4b> <== NOT EXECUTED
13ba5e: 0f b7 4b 06 movzwl 0x6(%ebx),%ecx <== NOT EXECUTED
13ba62: 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,
13ba68: 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;
13ba6e: 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;
13ba75: 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,
13ba7c: 52 push %edx <== NOT EXECUTED
13ba7d: 6a 00 push $0x0 <== NOT EXECUTED
13ba7f: 6a 00 push $0x0 <== NOT EXECUTED
13ba81: 50 push %eax <== NOT EXECUTED
13ba82: e8 81 51 fd ff call 110c08 <rtems_semaphore_obtain><== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
13ba87: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13ba8a: 85 c0 test %eax,%eax <== NOT EXECUTED
13ba8c: 75 69 jne 13baf7 <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);
13ba8e: 6a 00 push $0x0 <== NOT EXECUTED
13ba90: 68 10 01 00 00 push $0x110 <== NOT EXECUTED
13ba95: 57 push %edi <== NOT EXECUTED
13ba96: 56 push %esi <== NOT EXECUTED
13ba97: e8 c8 6c 01 00 call 152764 <__divdi3> <== NOT EXECUTED
13ba9c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13ba9f: 89 85 88 fe ff ff mov %eax,-0x178(%ebp) <== NOT EXECUTED
count = (count / sizeof(struct dirent)) * sizeof(struct dirent);
13baa5: b9 10 01 00 00 mov $0x110,%ecx <== NOT EXECUTED
13baaa: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
13baad: 31 d2 xor %edx,%edx <== NOT EXECUTED
13baaf: f7 f1 div %ecx <== NOT EXECUTED
13bab1: 69 c0 10 01 00 00 imul $0x110,%eax,%eax <== NOT EXECUTED
13bab7: 89 85 98 fe ff ff mov %eax,-0x168(%ebp) <== NOT EXECUTED
13babd: c7 85 a0 fe ff ff 00 movl $0x0,-0x160(%ebp) <== NOT EXECUTED
13bac4: 00 00 00
13bac7: c7 85 ac fe ff ff 00 movl $0x0,-0x154(%ebp) <== NOT EXECUTED
13bace: 00 00 00
13bad1: c6 85 93 fe ff ff 00 movb $0x0,-0x16d(%ebp) <== NOT EXECUTED
13bad8: c7 85 b4 fe ff ff ff movl $0xffffffff,-0x14c(%ebp) <== NOT EXECUTED
13badf: ff ff ff
13bae2: c7 85 a4 fe ff ff 00 movl $0x0,-0x15c(%ebp) <== NOT EXECUTED
13bae9: 00 00 00
13baec: 89 9d b0 fe ff ff mov %ebx,-0x150(%ebp) <== NOT EXECUTED
13baf2: e9 04 04 00 00 jmp 13befb <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);
13baf7: e8 9c 12 00 00 call 13cd98 <__errno> <== NOT EXECUTED
13bafc: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
13bb02: 83 cf ff or $0xffffffff,%edi <== NOT EXECUTED
13bb05: e9 1b 04 00 00 jmp 13bf25 <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),
13bb0a: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13bb0d: 8b bd b0 fe ff ff mov -0x150(%ebp),%edi <== NOT EXECUTED
13bb13: ff b7 98 00 00 00 pushl 0x98(%edi) <== NOT EXECUTED
13bb19: ff b5 8c fe ff ff pushl -0x174(%ebp) <== NOT EXECUTED
13bb1f: ff b5 a0 fe ff ff pushl -0x160(%ebp) <== NOT EXECUTED
13bb25: ff b5 9c fe ff ff pushl -0x164(%ebp) <== NOT EXECUTED
13bb2b: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
13bb2e: ff 70 28 pushl 0x28(%eax) <== NOT EXECUTED
13bb31: e8 ed 95 fe ff call 125123 <fat_file_read> <== NOT EXECUTED
13bb36: 89 85 84 fe ff ff mov %eax,-0x17c(%ebp) <== NOT EXECUTED
bts2rd, fs_info->cl_buf);
if (ret < MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)
13bb3c: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
13bb3f: 83 f8 1f cmp $0x1f,%eax <== NOT EXECUTED
13bb42: 7e 27 jle 13bb6b <msdos_dir_read+0x14e> <== NOT EXECUTED
13bb44: c7 85 a8 fe ff ff 00 movl $0x0,-0x158(%ebp) <== NOT EXECUTED
13bb4b: 00 00 00
else
{
tmp_dirent.d_namlen = strlen(tmp_dirent.d_name);
}
memcpy(buffer + cmpltd, &tmp_dirent, sizeof(struct dirent));
13bb4e: 8d 95 c0 fe ff ff lea -0x140(%ebp),%edx <== NOT EXECUTED
13bb54: 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 ,
13bb5a: 8d 8d d0 fe ff ff lea -0x130(%ebp),%ecx <== NOT EXECUTED
13bb60: 89 8d 74 fe ff ff mov %ecx,-0x18c(%ebp) <== NOT EXECUTED
13bb66: e9 72 03 00 00 jmp 13bedd <msdos_dir_read+0x4c0> <== NOT EXECUTED
13bb6b: 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);
13bb71: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13bb74: ff b3 94 00 00 00 pushl 0x94(%ebx) <== NOT EXECUTED
13bb7a: e8 75 51 fd ff call 110cf4 <rtems_semaphore_release><== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
13bb7f: e8 14 12 00 00 call 13cd98 <__errno> <== NOT EXECUTED
13bb84: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
13bb8a: 83 cf ff or $0xffffffff,%edi <== NOT EXECUTED
13bb8d: e9 90 03 00 00 jmp 13bf22 <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;
13bb92: 8b 9d a8 fe ff ff mov -0x158(%ebp),%ebx <== NOT EXECUTED
13bb98: 8b bd b0 fe ff ff mov -0x150(%ebp),%edi <== NOT EXECUTED
13bb9e: 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)) ==
13bba4: 89 de mov %ebx,%esi <== NOT EXECUTED
13bba6: 8a 03 mov (%ebx),%al <== NOT EXECUTED
13bba8: 84 c0 test %al,%al <== NOT EXECUTED
13bbaa: 75 07 jne 13bbb3 <msdos_dir_read+0x196> <== NOT EXECUTED
13bbac: 89 fb mov %edi,%ebx <== NOT EXECUTED
13bbae: e9 5b 03 00 00 jmp 13bf0e <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)
13bbb3: 3c e5 cmp $0xe5,%al <== NOT EXECUTED
13bbb5: 0f 84 1b 03 00 00 je 13bed6 <msdos_dir_read+0x4b9> <== NOT EXECUTED
continue;
/* Is the directory entry empty a volume label */
if (((*MSDOS_DIR_ATTR(entry)) & MSDOS_ATTR_VOLUME_ID) &&
13bbbb: 0f b6 53 0b movzbl 0xb(%ebx),%edx <== NOT EXECUTED
13bbbf: f6 c2 08 test $0x8,%dl <== NOT EXECUTED
13bbc2: 74 0e je 13bbd2 <msdos_dir_read+0x1b5> <== NOT EXECUTED
13bbc4: 89 d1 mov %edx,%ecx <== NOT EXECUTED
13bbc6: 83 e1 3f and $0x3f,%ecx <== NOT EXECUTED
13bbc9: 83 f9 0f cmp $0xf,%ecx <== NOT EXECUTED
13bbcc: 0f 85 04 03 00 00 jne 13bed6 <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) ==
13bbd2: 83 e2 3f and $0x3f,%edx <== NOT EXECUTED
13bbd5: 83 fa 0f cmp $0xf,%edx <== NOT EXECUTED
13bbd8: 0f 85 c4 00 00 00 jne 13bca2 <msdos_dir_read+0x285> <== NOT EXECUTED
int q;
/*
* Is this is the first entry of a LFN ?
*/
if (lfn_start == FAT_FILE_SHORT_NAME)
13bbde: 83 bd b4 fe ff ff ff cmpl $0xffffffff,-0x14c(%ebp) <== NOT EXECUTED
13bbe5: 75 41 jne 13bc28 <msdos_dir_read+0x20b> <== NOT EXECUTED
{
/*
* The first entry must have the last long entry flag set.
*/
if ((*MSDOS_DIR_ENTRY_TYPE(entry) &
13bbe7: 0f b6 c0 movzbl %al,%eax <== NOT EXECUTED
13bbea: a8 40 test $0x40,%al <== NOT EXECUTED
13bbec: 0f 84 e4 02 00 00 je 13bed6 <msdos_dir_read+0x4b9> <== NOT EXECUTED
continue;
/*
* Remember the start location of the long file name.
*/
lfn_start =
13bbf2: 8b 95 a8 fe ff ff mov -0x158(%ebp),%edx <== NOT EXECUTED
13bbf8: 03 95 a0 fe ff ff add -0x160(%ebp),%edx <== NOT EXECUTED
13bbfe: c1 ea 05 shr $0x5,%edx <== NOT EXECUTED
13bc01: 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) &
13bc07: 83 e0 3f and $0x3f,%eax <== NOT EXECUTED
13bc0a: 89 85 ac fe ff ff mov %eax,-0x154(%ebp) <== NOT EXECUTED
MSDOS_LAST_LONG_ENTRY_MASK);
lfn_checksum = *MSDOS_DIR_LFN_CHECKSUM(entry);
13bc10: 8a 4b 0d mov 0xd(%ebx),%cl <== NOT EXECUTED
13bc13: 88 8d 93 fe ff ff mov %cl,-0x16d(%ebp) <== NOT EXECUTED
memset (tmp_dirent.d_name, 0, sizeof(tmp_dirent.d_name));
13bc19: b9 40 00 00 00 mov $0x40,%ecx <== NOT EXECUTED
13bc1e: 31 c0 xor %eax,%eax <== NOT EXECUTED
13bc20: 8b bd 74 fe ff ff mov -0x18c(%ebp),%edi <== NOT EXECUTED
13bc26: 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) &
13bc28: 0f b6 03 movzbl (%ebx),%eax <== NOT EXECUTED
13bc2b: 83 e0 3f and $0x3f,%eax <== NOT EXECUTED
13bc2e: 39 85 ac fe ff ff cmp %eax,-0x154(%ebp) <== NOT EXECUTED
13bc34: 0f 85 92 02 00 00 jne 13becc <msdos_dir_read+0x4af> <== NOT EXECUTED
MSDOS_LAST_LONG_ENTRY_MASK)) ||
(lfn_checksum != *MSDOS_DIR_LFN_CHECKSUM(entry)))
13bc3a: 8a 85 93 fe ff ff mov -0x16d(%ebp),%al <== NOT EXECUTED
13bc40: 3a 43 0d cmp 0xd(%ebx),%al <== NOT EXECUTED
13bc43: 0f 85 83 02 00 00 jne 13becc <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--;
13bc49: ff 8d ac fe ff ff decl -0x154(%ebp) <== NOT EXECUTED
p = entry + 1;
13bc4f: 43 inc %ebx <== NOT EXECUTED
o = lfn_entries * MSDOS_LFN_LEN_PER_ENTRY;
13bc50: 6b 95 ac fe ff ff 0d imul $0xd,-0x154(%ebp),%edx <== NOT EXECUTED
13bc57: 8d 8c 15 d0 fe ff ff lea -0x130(%ebp,%edx,1),%ecx <== NOT EXECUTED
13bc5e: 31 c0 xor %eax,%eax <== NOT EXECUTED
13bc60: 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))
13bc62: 81 fe fe 00 00 00 cmp $0xfe,%esi <== NOT EXECUTED
13bc68: 0f 87 68 02 00 00 ja 13bed6 <msdos_dir_read+0x4b9> <== NOT EXECUTED
break;
tmp_dirent.d_name[o++] = *p;
13bc6e: 8a 13 mov (%ebx),%dl <== NOT EXECUTED
13bc70: 88 11 mov %dl,(%ecx) <== NOT EXECUTED
if (*p == '\0')
13bc72: 80 3b 00 cmpb $0x0,(%ebx) <== NOT EXECUTED
13bc75: 0f 84 5b 02 00 00 je 13bed6 <msdos_dir_read+0x4b9> <== NOT EXECUTED
break;
switch (q)
13bc7b: 83 f8 04 cmp $0x4,%eax <== NOT EXECUTED
13bc7e: 74 07 je 13bc87 <msdos_dir_read+0x26a> <== NOT EXECUTED
13bc80: 83 f8 0a cmp $0xa,%eax <== NOT EXECUTED
13bc83: 75 0c jne 13bc91 <msdos_dir_read+0x274> <== NOT EXECUTED
13bc85: eb 05 jmp 13bc8c <msdos_dir_read+0x26f> <== NOT EXECUTED
{
case 4:
p += 5;
13bc87: 83 c3 05 add $0x5,%ebx <== NOT EXECUTED
break;
13bc8a: eb 08 jmp 13bc94 <msdos_dir_read+0x277> <== NOT EXECUTED
case 10:
p += 4;
13bc8c: 83 c3 04 add $0x4,%ebx <== NOT EXECUTED
break;
13bc8f: eb 03 jmp 13bc94 <msdos_dir_read+0x277> <== NOT EXECUTED
default:
p += 2;
13bc91: 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++)
13bc94: 40 inc %eax <== NOT EXECUTED
13bc95: 41 inc %ecx <== NOT EXECUTED
13bc96: 83 f8 0d cmp $0xd,%eax <== NOT EXECUTED
13bc99: 0f 84 37 02 00 00 je 13bed6 <msdos_dir_read+0x4b9> <== NOT EXECUTED
{
if (o >= (sizeof(tmp_dirent.d_name) - 1))
break;
tmp_dirent.d_name[o++] = *p;
13bc9f: 46 inc %esi <== NOT EXECUTED
13bca0: eb c0 jmp 13bc62 <msdos_dir_read+0x245> <== NOT EXECUTED
fat_dir_pos_t dir_pos;
/*
* Skip active entries until get the entry to start from.
*/
if (start)
13bca2: 83 bd 88 fe ff ff 00 cmpl $0x0,-0x178(%ebp) <== NOT EXECUTED
13bca9: 74 0b je 13bcb6 <msdos_dir_read+0x299> <== NOT EXECUTED
{
lfn_start = FAT_FILE_SHORT_NAME;
start--;
13bcab: ff 8d 88 fe ff ff decl -0x178(%ebp) <== NOT EXECUTED
13bcb1: e9 16 02 00 00 jmp 13becc <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,
13bcb6: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13bcb9: 8d 4d e0 lea -0x20(%ebp),%ecx <== NOT EXECUTED
13bcbc: 51 push %ecx <== NOT EXECUTED
13bcbd: ff b5 a0 fe ff ff pushl -0x160(%ebp) <== NOT EXECUTED
13bcc3: 6a 01 push $0x1 <== NOT EXECUTED
13bcc5: ff b5 9c fe ff ff pushl -0x164(%ebp) <== NOT EXECUTED
13bccb: 8b 7d 08 mov 0x8(%ebp),%edi <== NOT EXECUTED
13bcce: ff 77 28 pushl 0x28(%edi) <== NOT EXECUTED
13bcd1: e8 48 8f fe ff call 124c1e <fat_file_ioctl> <== NOT EXECUTED
j * bts2rd, &cur_cln);
if (rc != RC_OK)
13bcd6: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
13bcd9: 85 c0 test %eax,%eax <== NOT EXECUTED
13bcdb: 0f 85 bb 01 00 00 jne 13be9c <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;
13bce1: c7 45 d8 ff ff ff ff movl $0xffffffff,-0x28(%ebp) <== NOT EXECUTED
dir_pos->lname.ofs = FAT_FILE_SHORT_NAME;
13bce8: 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;
13bcef: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
13bcf2: 89 45 d0 mov %eax,-0x30(%ebp) <== NOT EXECUTED
dir_pos.sname.ofs = i;
13bcf5: 8b 85 a8 fe ff ff mov -0x158(%ebp),%eax <== NOT EXECUTED
13bcfb: 89 45 d4 mov %eax,-0x2c(%ebp) <== NOT EXECUTED
rc = fat_file_open(iop->pathinfo.mt_entry, &dir_pos, &tmp_fat_fd);
13bcfe: 51 push %ecx <== NOT EXECUTED
13bcff: 8d 55 e4 lea -0x1c(%ebp),%edx <== NOT EXECUTED
13bd02: 52 push %edx <== NOT EXECUTED
13bd03: 8d 4d d0 lea -0x30(%ebp),%ecx <== NOT EXECUTED
13bd06: 51 push %ecx <== NOT EXECUTED
13bd07: 8b 7d 08 mov 0x8(%ebp),%edi <== NOT EXECUTED
13bd0a: ff 77 28 pushl 0x28(%edi) <== NOT EXECUTED
13bd0d: e8 72 96 fe ff call 125384 <fat_file_open> <== NOT EXECUTED
if (rc != RC_OK)
13bd12: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13bd15: 85 c0 test %eax,%eax <== NOT EXECUTED
13bd17: 0f 85 7f 01 00 00 jne 13be9c <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;
13bd1d: 8b 85 a4 fe ff ff mov -0x15c(%ebp),%eax <== NOT EXECUTED
13bd23: 89 85 c4 fe ff ff mov %eax,-0x13c(%ebp) <== NOT EXECUTED
13bd29: c7 85 c8 fe ff ff 00 movl $0x0,-0x138(%ebp) <== NOT EXECUTED
13bd30: 00 00 00
tmp_dirent.d_reclen = sizeof(struct dirent);
13bd33: 66 c7 85 cc fe ff ff movw $0x110,-0x134(%ebp) <== NOT EXECUTED
13bd3a: 10 01
tmp_dirent.d_ino = tmp_fat_fd->ino;
13bd3c: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
13bd3f: 8b 40 0c mov 0xc(%eax),%eax <== NOT EXECUTED
13bd42: 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)
13bd48: 83 bd b4 fe ff ff ff cmpl $0xffffffff,-0x14c(%ebp) <== NOT EXECUTED
13bd4f: 74 47 je 13bd98 <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)
13bd51: 8d 4b 0a lea 0xa(%ebx),%ecx <== NOT EXECUTED
13bd54: 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;
13bd56: 89 c2 mov %eax,%edx <== NOT EXECUTED
13bd58: 83 e2 01 and $0x1,%edx <== NOT EXECUTED
13bd5b: f7 da neg %edx <== NOT EXECUTED
13bd5d: 83 e2 80 and $0xffffff80,%edx <== NOT EXECUTED
13bd60: d0 e8 shr %al <== NOT EXECUTED
13bd62: 02 06 add (%esi),%al <== NOT EXECUTED
13bd64: 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++)
13bd66: 39 ce cmp %ecx,%esi <== NOT EXECUTED
13bd68: 74 03 je 13bd6d <msdos_dir_read+0x350> <== NOT EXECUTED
13bd6a: 46 inc %esi <== NOT EXECUTED
13bd6b: eb e9 jmp 13bd56 <msdos_dir_read+0x339> <== NOT EXECUTED
cs = ((cs & 1) ? 0x80 : 0) + (cs >> 1) + *p;
if (lfn_entries || (lfn_checksum != cs))
13bd6d: 38 85 93 fe ff ff cmp %al,-0x16d(%ebp) <== NOT EXECUTED
13bd73: 75 23 jne 13bd98 <msdos_dir_read+0x37b> <== NOT EXECUTED
13bd75: 83 bd ac fe ff ff 00 cmpl $0x0,-0x154(%ebp) <== NOT EXECUTED
13bd7c: 75 1a jne 13bd98 <msdos_dir_read+0x37b> <== NOT EXECUTED
13bd7e: e9 ac 01 00 00 jmp 13bf2f <msdos_dir_read+0x512> <== NOT EXECUTED
const char *src_tmp;
/*
* find last non-blank character of base name
*/
for ((i = MSDOS_SHORT_BASE_LEN ,
13bd83: 4a dec %edx <== NOT EXECUTED
13bd84: 75 17 jne 13bd9d <msdos_dir_read+0x380> <== NOT EXECUTED
13bd86: 89 d6 mov %edx,%esi <== NOT EXECUTED
13bd88: 31 c9 xor %ecx,%ecx <== NOT EXECUTED
13bd8a: 8d 85 d0 fe ff ff lea -0x130(%ebp),%eax <== NOT EXECUTED
13bd90: 89 95 6c fe ff ff mov %edx,-0x194(%ebp) <== NOT EXECUTED
13bd96: eb 38 jmp 13bdd0 <msdos_dir_read+0x3b3> <== NOT EXECUTED
13bd98: ba 08 00 00 00 mov $0x8,%edx <== NOT EXECUTED
13bd9d: 80 7c 13 ff 20 cmpb $0x20,-0x1(%ebx,%edx,1) <== NOT EXECUTED
13bda2: 74 df je 13bd83 <msdos_dir_read+0x366> <== NOT EXECUTED
13bda4: eb e0 jmp 13bd86 <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++));
13bda6: 0f b6 14 0b movzbl (%ebx,%ecx,1),%edx <== NOT EXECUTED
13bdaa: 89 95 94 fe ff ff mov %edx,-0x16c(%ebp) <== NOT EXECUTED
13bdb0: 8b 15 7c 29 16 00 mov 0x16297c,%edx <== NOT EXECUTED
13bdb6: 8b bd 94 fe ff ff mov -0x16c(%ebp),%edi <== NOT EXECUTED
13bdbc: 0f be 54 3a 01 movsbl 0x1(%edx,%edi,1),%edx <== NOT EXECUTED
13bdc1: 83 e2 03 and $0x3,%edx <== NOT EXECUTED
13bdc4: 4a dec %edx <== NOT EXECUTED
13bdc5: 75 03 jne 13bdca <msdos_dir_read+0x3ad> <== NOT EXECUTED
13bdc7: 83 c7 20 add $0x20,%edi <== NOT EXECUTED
13bdca: 89 fa mov %edi,%edx <== NOT EXECUTED
13bdcc: 88 10 mov %dl,(%eax) <== NOT EXECUTED
13bdce: 40 inc %eax <== NOT EXECUTED
13bdcf: 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)
13bdd0: 8b bd 6c fe ff ff mov -0x194(%ebp),%edi <== NOT EXECUTED
13bdd6: 29 cf sub %ecx,%edi <== NOT EXECUTED
/*
* copy base name to destination
*/
src_tmp = src;
len = i;
while (i-- > 0) {
13bdd8: 85 ff test %edi,%edi <== NOT EXECUTED
13bdda: 7f ca jg 13bda6 <msdos_dir_read+0x389> <== NOT EXECUTED
13bddc: 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 ,
13bde2: 80 7b 0a 20 cmpb $0x20,0xa(%ebx) <== NOT EXECUTED
13bde6: 74 0f je 13bdf7 <msdos_dir_read+0x3da> <== NOT EXECUTED
13bde8: b9 03 00 00 00 mov $0x3,%ecx <== NOT EXECUTED
13bded: be 03 00 00 00 mov $0x3,%esi <== NOT EXECUTED
13bdf2: e9 5e 01 00 00 jmp 13bf55 <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--)
13bdf7: 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 ,
13bdfa: 80 7b 09 20 cmpb $0x20,0x9(%ebx) <== NOT EXECUTED
13bdfe: 74 0f je 13be0f <msdos_dir_read+0x3f2> <== NOT EXECUTED
13be00: b9 02 00 00 00 mov $0x2,%ecx <== NOT EXECUTED
13be05: be 02 00 00 00 mov $0x2,%esi <== NOT EXECUTED
13be0a: e9 46 01 00 00 jmp 13bf55 <msdos_dir_read+0x538> <== NOT EXECUTED
13be0f: 80 79 ff 20 cmpb $0x20,-0x1(%ecx) <== NOT EXECUTED
13be13: 74 39 je 13be4e <msdos_dir_read+0x431> <== NOT EXECUTED
13be15: e9 31 01 00 00 jmp 13bf4b <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++));
13be1a: 0f b6 74 13 08 movzbl 0x8(%ebx,%edx,1),%esi <== NOT EXECUTED
13be1f: 8b 3d 7c 29 16 00 mov 0x16297c,%edi <== NOT EXECUTED
13be25: 0f be 7c 37 01 movsbl 0x1(%edi,%esi,1),%edi <== NOT EXECUTED
13be2a: 83 e7 03 and $0x3,%edi <== NOT EXECUTED
13be2d: 4f dec %edi <== NOT EXECUTED
13be2e: 75 03 jne 13be33 <msdos_dir_read+0x416> <== NOT EXECUTED
13be30: 83 c6 20 add $0x20,%esi <== NOT EXECUTED
13be33: 89 f1 mov %esi,%ecx <== NOT EXECUTED
13be35: 88 08 mov %cl,(%eax) <== NOT EXECUTED
13be37: 40 inc %eax <== NOT EXECUTED
13be38: 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)
13be39: 8b bd b4 fe ff ff mov -0x14c(%ebp),%edi <== NOT EXECUTED
13be3f: 8d 34 3a lea (%edx,%edi,1),%esi <== NOT EXECUTED
13be42: 8b bd 94 fe ff ff mov -0x16c(%ebp),%edi <== NOT EXECUTED
13be48: 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) {
13be4a: 85 ff test %edi,%edi <== NOT EXECUTED
13be4c: 7f cc jg 13be1a <msdos_dir_read+0x3fd> <== NOT EXECUTED
*dst++ = tolower((unsigned char)(*src_tmp++));
len++;
}
}
*dst = '\0'; /* terminate string */
13be4e: 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(
13be51: 66 89 b5 ce fe ff ff mov %si,-0x132(%ebp) <== NOT EXECUTED
13be58: c7 85 b4 fe ff ff ff movl $0xffffffff,-0x14c(%ebp) <== NOT EXECUTED
13be5f: ff ff ff
else
{
tmp_dirent.d_namlen = strlen(tmp_dirent.d_name);
}
memcpy(buffer + cmpltd, &tmp_dirent, sizeof(struct dirent));
13be62: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
13be65: 03 85 a4 fe ff ff add -0x15c(%ebp),%eax <== NOT EXECUTED
13be6b: b9 44 00 00 00 mov $0x44,%ecx <== NOT EXECUTED
13be70: 89 c7 mov %eax,%edi <== NOT EXECUTED
13be72: 8b b5 70 fe ff ff mov -0x190(%ebp),%esi <== NOT EXECUTED
13be78: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED
iop->offset = iop->offset + sizeof(struct dirent);
13be7a: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
13be7d: 81 40 0c 10 01 00 00 addl $0x110,0xc(%eax) <== NOT EXECUTED
13be84: 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);
13be88: 52 push %edx <== NOT EXECUTED
13be89: 52 push %edx <== NOT EXECUTED
13be8a: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
13be8d: ff 70 28 pushl 0x28(%eax) <== NOT EXECUTED
13be90: e8 40 94 fe ff call 1252d5 <fat_file_close> <== NOT EXECUTED
if (rc != RC_OK)
13be95: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13be98: 85 c0 test %eax,%eax <== NOT EXECUTED
13be9a: 74 18 je 13beb4 <msdos_dir_read+0x497> <== NOT EXECUTED
13be9c: 8b 9d b0 fe ff ff mov -0x150(%ebp),%ebx <== NOT EXECUTED
13bea2: 89 c7 mov %eax,%edi <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
13bea4: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13bea7: ff b3 94 00 00 00 pushl 0x94(%ebx) <== NOT EXECUTED
13bead: e8 42 4e fd ff call 110cf4 <rtems_semaphore_release><== NOT EXECUTED
13beb2: eb 6e jmp 13bf22 <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));
13beb4: 81 85 a4 fe ff ff 10 addl $0x110,-0x15c(%ebp) <== NOT EXECUTED
13bebb: 01 00 00
rtems_semaphore_release(fs_info->vol_sema);
return rc;
}
}
if (count <= 0)
13bebe: 81 ad 98 fe ff ff 10 subl $0x110,-0x168(%ebp) <== NOT EXECUTED
13bec5: 01 00 00
13bec8: 75 0c jne 13bed6 <msdos_dir_read+0x4b9> <== NOT EXECUTED
13beca: eb 23 jmp 13beef <msdos_dir_read+0x4d2> <== NOT EXECUTED
13becc: c7 85 b4 fe ff ff ff movl $0xffffffff,-0x14c(%ebp) <== NOT EXECUTED
13bed3: 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)
13bed6: 83 85 a8 fe ff ff 20 addl $0x20,-0x158(%ebp) <== NOT EXECUTED
13bedd: 8b 95 84 fe ff ff mov -0x17c(%ebp),%edx <== NOT EXECUTED
13bee3: 39 95 a8 fe ff ff cmp %edx,-0x158(%ebp) <== NOT EXECUTED
13bee9: 0f 82 a3 fc ff ff jb 13bb92 <msdos_dir_read+0x175> <== NOT EXECUTED
13beef: 8b 8d 8c fe ff ff mov -0x174(%ebp),%ecx <== NOT EXECUTED
13bef5: 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)
13befb: 83 bd 98 fe ff ff 00 cmpl $0x0,-0x168(%ebp) <== NOT EXECUTED
13bf02: 0f 85 02 fc ff ff jne 13bb0a <msdos_dir_read+0xed> <== NOT EXECUTED
13bf08: 8b 9d b0 fe ff ff mov -0x150(%ebp),%ebx <== NOT EXECUTED
break;
}
j++;
}
rtems_semaphore_release(fs_info->vol_sema);
13bf0e: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13bf11: ff b3 94 00 00 00 pushl 0x94(%ebx) <== NOT EXECUTED
13bf17: e8 d8 4d fd ff call 110cf4 <rtems_semaphore_release><== NOT EXECUTED
return cmpltd;
13bf1c: 8b bd a4 fe ff ff mov -0x15c(%ebp),%edi <== NOT EXECUTED
13bf22: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
13bf25: 89 f8 mov %edi,%eax <== NOT EXECUTED
13bf27: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13bf2a: 5b pop %ebx <== NOT EXECUTED
13bf2b: 5e pop %esi <== NOT EXECUTED
13bf2c: 5f pop %edi <== NOT EXECUTED
13bf2d: c9 leave <== NOT EXECUTED
13bf2e: 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);
13bf2f: 31 c0 xor %eax,%eax <== NOT EXECUTED
13bf31: 83 c9 ff or $0xffffffff,%ecx <== NOT EXECUTED
13bf34: 8b bd 74 fe ff ff mov -0x18c(%ebp),%edi <== NOT EXECUTED
13bf3a: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED
13bf3c: f7 d1 not %ecx <== NOT EXECUTED
13bf3e: 49 dec %ecx <== NOT EXECUTED
13bf3f: 66 89 8d ce fe ff ff mov %cx,-0x132(%ebp) <== NOT EXECUTED
13bf46: e9 17 ff ff ff jmp 13be62 <msdos_dir_read+0x445> <== NOT EXECUTED
13bf4b: b9 01 00 00 00 mov $0x1,%ecx <== NOT EXECUTED
13bf50: be 01 00 00 00 mov $0x1,%esi <== NOT EXECUTED
{};
/*
* extension is not empty
*/
if (i > 0) {
*dst++ = '.'; /* append dot */
13bf55: c6 00 2e movb $0x2e,(%eax) <== NOT EXECUTED
13bf58: 40 inc %eax <== NOT EXECUTED
len += i + 1; /* extension + dot */
13bf59: 8d 54 16 01 lea 0x1(%esi,%edx,1),%edx <== NOT EXECUTED
13bf5d: 89 95 b4 fe ff ff mov %edx,-0x14c(%ebp) <== NOT EXECUTED
13bf63: 31 d2 xor %edx,%edx <== NOT EXECUTED
13bf65: 89 8d 94 fe ff ff mov %ecx,-0x16c(%ebp) <== NOT EXECUTED
13bf6b: e9 c9 fe ff ff jmp 13be39 <msdos_dir_read+0x41c> <== NOT EXECUTED
0013b8c6 <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)
{
13b8c6: 55 push %ebp <== NOT EXECUTED
13b8c7: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13b8c9: 57 push %edi <== NOT EXECUTED
13b8ca: 56 push %esi <== NOT EXECUTED
13b8cb: 53 push %ebx <== NOT EXECUTED
13b8cc: 83 ec 30 sub $0x30,%esp <== NOT EXECUTED
13b8cf: 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;
13b8d2: 8b 47 10 mov 0x10(%edi),%eax <== NOT EXECUTED
13b8d5: 8b 70 34 mov 0x34(%eax),%esi <== NOT EXECUTED
fat_file_fd_t *fat_fd = pathloc->node_access;
13b8d8: 8b 07 mov (%edi),%eax <== NOT EXECUTED
13b8da: 89 45 d4 mov %eax,-0x2c(%ebp) <== NOT EXECUTED
bool is_empty = false;
13b8dd: c6 45 e7 00 movb $0x0,-0x19(%ebp) <== NOT EXECUTED
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
13b8e1: 6a 00 push $0x0 <== NOT EXECUTED
13b8e3: 6a 00 push $0x0 <== NOT EXECUTED
13b8e5: ff b6 94 00 00 00 pushl 0x94(%esi) <== NOT EXECUTED
13b8eb: e8 18 53 fd ff call 110c08 <rtems_semaphore_obtain><== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
13b8f0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13b8f3: 85 c0 test %eax,%eax <== NOT EXECUTED
13b8f5: 74 13 je 13b90a <msdos_dir_rmnod+0x44> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
13b8f7: e8 9c 14 00 00 call 13cd98 <__errno> <== NOT EXECUTED
13b8fc: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
13b902: 83 cb ff or $0xffffffff,%ebx <== NOT EXECUTED
13b905: e9 a8 00 00 00 jmp 13b9b2 <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)
13b90a: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED
13b90d: 83 78 08 01 cmpl $0x1,0x8(%eax) <== NOT EXECUTED
13b911: 77 44 ja 13b957 <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);
13b913: 53 push %ebx <== NOT EXECUTED
13b914: 8d 45 e7 lea -0x19(%ebp),%eax <== NOT EXECUTED
13b917: 50 push %eax <== NOT EXECUTED
13b918: ff 75 d4 pushl -0x2c(%ebp) <== NOT EXECUTED
13b91b: ff 77 10 pushl 0x10(%edi) <== NOT EXECUTED
13b91e: e8 28 7c ff ff call 13354b <msdos_dir_is_empty> <== NOT EXECUTED
13b923: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc != RC_OK)
13b925: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13b928: 85 c0 test %eax,%eax <== NOT EXECUTED
13b92a: 75 65 jne 13b991 <msdos_dir_rmnod+0xcb> <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
return rc;
}
if (!is_empty)
13b92c: 80 7d e7 00 cmpb $0x0,-0x19(%ebp) <== NOT EXECUTED
13b930: 75 1b jne 13b94d <msdos_dir_rmnod+0x87> <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
13b932: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13b935: ff b6 94 00 00 00 pushl 0x94(%esi) <== NOT EXECUTED
13b93b: e8 b4 53 fd ff call 110cf4 <rtems_semaphore_release><== NOT EXECUTED
rtems_set_errno_and_return_minus_one(ENOTEMPTY);
13b940: e8 53 14 00 00 call 13cd98 <__errno> <== NOT EXECUTED
13b945: c7 00 5a 00 00 00 movl $0x5a,(%eax) <== NOT EXECUTED
13b94b: eb 23 jmp 13b970 <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)
13b94d: 8b 47 10 mov 0x10(%edi),%eax <== NOT EXECUTED
13b950: 8b 50 1c mov 0x1c(%eax),%edx <== NOT EXECUTED
13b953: 3b 17 cmp (%edi),%edx <== NOT EXECUTED
13b955: 75 1e jne 13b975 <msdos_dir_rmnod+0xaf> <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
13b957: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13b95a: ff b6 94 00 00 00 pushl 0x94(%esi) <== NOT EXECUTED
13b960: e8 8f 53 fd ff call 110cf4 <rtems_semaphore_release><== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EBUSY);
13b965: e8 2e 14 00 00 call 13cd98 <__errno> <== NOT EXECUTED
13b96a: c7 00 10 00 00 00 movl $0x10,(%eax) <== NOT EXECUTED
13b970: 83 cb ff or $0xffffffff,%ebx <== NOT EXECUTED
13b973: eb 3a jmp 13b9af <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,
13b975: 51 push %ecx <== NOT EXECUTED
13b976: 68 e5 00 00 00 push $0xe5 <== NOT EXECUTED
13b97b: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED
13b97e: 83 c2 20 add $0x20,%edx <== NOT EXECUTED
13b981: 52 push %edx <== NOT EXECUTED
13b982: 50 push %eax <== NOT EXECUTED
13b983: e8 bc 7d ff ff call 133744 <msdos_set_first_char4file_name><== NOT EXECUTED
13b988: 89 c3 mov %eax,%ebx <== NOT EXECUTED
MSDOS_THIS_DIR_ENTRY_EMPTY);
if (rc != RC_OK)
13b98a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13b98d: 85 c0 test %eax,%eax <== NOT EXECUTED
13b98f: 74 05 je 13b996 <msdos_dir_rmnod+0xd0> <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
13b991: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13b994: eb 0e jmp 13b9a4 <msdos_dir_rmnod+0xde> <== NOT EXECUTED
return rc;
}
fat_file_mark_removed(pathloc->mt_entry, fat_fd);
13b996: 52 push %edx <== NOT EXECUTED
13b997: 52 push %edx <== NOT EXECUTED
13b998: ff 75 d4 pushl -0x2c(%ebp) <== NOT EXECUTED
13b99b: ff 77 10 pushl 0x10(%edi) <== NOT EXECUTED
13b99e: e8 2d 92 fe ff call 124bd0 <fat_file_mark_removed> <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
13b9a3: 58 pop %eax <== NOT EXECUTED
13b9a4: ff b6 94 00 00 00 pushl 0x94(%esi) <== NOT EXECUTED
13b9aa: e8 45 53 fd ff call 110cf4 <rtems_semaphore_release><== NOT EXECUTED
return rc;
13b9af: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
13b9b2: 89 d8 mov %ebx,%eax <== NOT EXECUTED
13b9b4: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13b9b7: 5b pop %ebx <== NOT EXECUTED
13b9b8: 5e pop %esi <== NOT EXECUTED
13b9b9: 5f pop %edi <== NOT EXECUTED
13b9ba: c9 leave <== NOT EXECUTED
13b9bb: c3 ret <== NOT EXECUTED
0013b829 <msdos_dir_stat>:
int
msdos_dir_stat(
rtems_filesystem_location_info_t *loc,
struct stat *buf
)
{
13b829: 55 push %ebp <== NOT EXECUTED
13b82a: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13b82c: 57 push %edi <== NOT EXECUTED
13b82d: 56 push %esi <== NOT EXECUTED
13b82e: 53 push %ebx <== NOT EXECUTED
13b82f: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED
13b832: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
13b835: 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;
13b838: 8b 50 10 mov 0x10(%eax),%edx <== NOT EXECUTED
13b83b: 8b 72 34 mov 0x34(%edx),%esi <== NOT EXECUTED
fat_file_fd_t *fat_fd = loc->node_access;
13b83e: 8b 38 mov (%eax),%edi <== NOT EXECUTED
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
13b840: 6a 00 push $0x0 <== NOT EXECUTED
13b842: 6a 00 push $0x0 <== NOT EXECUTED
13b844: ff b6 94 00 00 00 pushl 0x94(%esi) <== NOT EXECUTED
13b84a: e8 b9 53 fd ff call 110c08 <rtems_semaphore_obtain><== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
13b84f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13b852: 85 c0 test %eax,%eax <== NOT EXECUTED
13b854: 74 10 je 13b866 <msdos_dir_stat+0x3d> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
13b856: e8 3d 15 00 00 call 13cd98 <__errno> <== NOT EXECUTED
13b85b: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
13b861: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
13b864: eb 58 jmp 13b8be <msdos_dir_stat+0x95> <== NOT EXECUTED
buf->st_dev = fs_info->fat.vol.dev;
13b866: 8b 46 54 mov 0x54(%esi),%eax <== NOT EXECUTED
13b869: 8b 56 58 mov 0x58(%esi),%edx <== NOT EXECUTED
13b86c: 89 03 mov %eax,(%ebx) <== NOT EXECUTED
13b86e: 89 53 04 mov %edx,0x4(%ebx) <== NOT EXECUTED
buf->st_ino = fat_fd->ino;
13b871: 8b 47 0c mov 0xc(%edi),%eax <== NOT EXECUTED
13b874: 89 43 08 mov %eax,0x8(%ebx) <== NOT EXECUTED
buf->st_mode = S_IFDIR | S_IRWXU | S_IRWXG | S_IRWXO;
13b877: c7 43 0c ff 41 00 00 movl $0x41ff,0xc(%ebx) <== NOT EXECUTED
buf->st_rdev = 0ll;
13b87e: c7 43 18 00 00 00 00 movl $0x0,0x18(%ebx) <== NOT EXECUTED
13b885: c7 43 1c 00 00 00 00 movl $0x0,0x1c(%ebx) <== NOT EXECUTED
buf->st_size = fat_fd->fat_file_size;
13b88c: 8b 47 18 mov 0x18(%edi),%eax <== NOT EXECUTED
13b88f: 89 43 20 mov %eax,0x20(%ebx) <== NOT EXECUTED
13b892: c7 43 24 00 00 00 00 movl $0x0,0x24(%ebx) <== NOT EXECUTED
buf->st_blocks = fat_fd->fat_file_size >> FAT_SECTOR512_BITS;
13b899: c1 e8 09 shr $0x9,%eax <== NOT EXECUTED
13b89c: 89 43 44 mov %eax,0x44(%ebx) <== NOT EXECUTED
buf->st_blksize = fs_info->fat.vol.bps;
13b89f: 0f b7 06 movzwl (%esi),%eax <== NOT EXECUTED
13b8a2: 89 43 40 mov %eax,0x40(%ebx) <== NOT EXECUTED
buf->st_mtime = fat_fd->mtime;
13b8a5: 8b 47 40 mov 0x40(%edi),%eax <== NOT EXECUTED
13b8a8: 89 43 30 mov %eax,0x30(%ebx) <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
13b8ab: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13b8ae: ff b6 94 00 00 00 pushl 0x94(%esi) <== NOT EXECUTED
13b8b4: e8 3b 54 fd ff call 110cf4 <rtems_semaphore_release><== NOT EXECUTED
13b8b9: 31 c0 xor %eax,%eax <== NOT EXECUTED
return RC_OK;
13b8bb: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
13b8be: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13b8c1: 5b pop %ebx <== NOT EXECUTED
13b8c2: 5e pop %esi <== NOT EXECUTED
13b8c3: 5f pop %edi <== NOT EXECUTED
13b8c4: c9 leave <== NOT EXECUTED
13b8c5: c3 ret <== NOT EXECUTED
0013b9bc <msdos_dir_sync>:
* RETURNS:
* RC_OK on success, or -1 if error occured (errno set apropriately).
*/
int
msdos_dir_sync(rtems_libio_t *iop)
{
13b9bc: 55 push %ebp <== NOT EXECUTED
13b9bd: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13b9bf: 57 push %edi <== NOT EXECUTED
13b9c0: 56 push %esi <== NOT EXECUTED
13b9c1: 53 push %ebx <== NOT EXECUTED
13b9c2: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED
13b9c5: 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;
13b9c8: 8b 7b 38 mov 0x38(%ebx),%edi <== NOT EXECUTED
msdos_fs_info_t *fs_info = iop->pathinfo.mt_entry->fs_info;
13b9cb: 8b 43 28 mov 0x28(%ebx),%eax <== NOT EXECUTED
13b9ce: 8b 70 34 mov 0x34(%eax),%esi <== NOT EXECUTED
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
13b9d1: 6a 00 push $0x0 <== NOT EXECUTED
13b9d3: 6a 00 push $0x0 <== NOT EXECUTED
13b9d5: ff b6 94 00 00 00 pushl 0x94(%esi) <== NOT EXECUTED
13b9db: e8 28 52 fd ff call 110c08 <rtems_semaphore_obtain><== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
13b9e0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13b9e3: 85 c0 test %eax,%eax <== NOT EXECUTED
13b9e5: 74 10 je 13b9f7 <msdos_dir_sync+0x3b> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
13b9e7: e8 ac 13 00 00 call 13cd98 <__errno> <== NOT EXECUTED
13b9ec: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
13b9f2: 83 cb ff or $0xffffffff,%ebx <== NOT EXECUTED
13b9f5: eb 1c jmp 13ba13 <msdos_dir_sync+0x57> <== NOT EXECUTED
rc = fat_file_datasync(iop->pathinfo.mt_entry, fat_fd);
13b9f7: 50 push %eax <== NOT EXECUTED
13b9f8: 50 push %eax <== NOT EXECUTED
13b9f9: 57 push %edi <== NOT EXECUTED
13b9fa: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
13b9fd: e8 da 90 fe ff call 124adc <fat_file_datasync> <== NOT EXECUTED
13ba02: 89 c3 mov %eax,%ebx <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
13ba04: 5f pop %edi <== NOT EXECUTED
13ba05: ff b6 94 00 00 00 pushl 0x94(%esi) <== NOT EXECUTED
13ba0b: e8 e4 52 fd ff call 110cf4 <rtems_semaphore_release><== NOT EXECUTED
return rc;
13ba10: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
13ba13: 89 d8 mov %ebx,%eax <== NOT EXECUTED
13ba15: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13ba18: 5b pop %ebx <== NOT EXECUTED
13ba19: 5e pop %esi <== NOT EXECUTED
13ba1a: 5f pop %edi <== NOT EXECUTED
13ba1b: c9 leave <== NOT EXECUTED
13ba1c: c3 ret <== NOT EXECUTED
001323ac <msdos_eval4make>:
msdos_eval4make(
const char *path,
rtems_filesystem_location_info_t *pathloc,
const char **name
)
{
1323ac: 55 push %ebp <== NOT EXECUTED
1323ad: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1323af: 57 push %edi <== NOT EXECUTED
1323b0: 56 push %esi <== NOT EXECUTED
1323b1: 53 push %ebx <== NOT EXECUTED
1323b2: 83 ec 40 sub $0x40,%esp <== NOT EXECUTED
1323b5: 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;
1323b8: 8b 43 10 mov 0x10(%ebx),%eax <== NOT EXECUTED
1323bb: 8b 40 34 mov 0x34(%eax),%eax <== NOT EXECUTED
1323be: 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,
1323c1: 6a 00 push $0x0 <== NOT EXECUTED
1323c3: 6a 00 push $0x0 <== NOT EXECUTED
1323c5: ff b0 94 00 00 00 pushl 0x94(%eax) <== NOT EXECUTED
1323cb: e8 38 e8 fd ff call 110c08 <rtems_semaphore_obtain><== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
1323d0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1323d3: 85 c0 test %eax,%eax <== NOT EXECUTED
1323d5: 74 13 je 1323ea <msdos_eval4make+0x3e> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
1323d7: e8 bc a9 00 00 call 13cd98 <__errno> <== NOT EXECUTED
1323dc: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
1323e2: 83 ce ff or $0xffffffff,%esi <== NOT EXECUTED
1323e5: e9 17 02 00 00 jmp 132601 <msdos_eval4make+0x255> <== NOT EXECUTED
if (!pathloc->node_access)
1323ea: 8b 03 mov (%ebx),%eax <== NOT EXECUTED
1323ec: 85 c0 test %eax,%eax <== NOT EXECUTED
1323ee: 75 13 jne 132403 <msdos_eval4make+0x57> <== NOT EXECUTED
{
errno = ENOENT;
1323f0: e8 a3 a9 00 00 call 13cd98 <__errno> <== NOT EXECUTED
1323f5: c7 00 02 00 00 00 movl $0x2,(%eax) <== NOT EXECUTED
1323fb: 83 ce ff or $0xffffffff,%esi <== NOT EXECUTED
rc = -1;
goto err;
1323fe: e9 ea 01 00 00 jmp 1325ed <msdos_eval4make+0x241> <== NOT EXECUTED
}
fat_fd = pathloc->node_access;
rc = fat_file_reopen(fat_fd);
132403: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
132406: 50 push %eax <== NOT EXECUTED
132407: e8 c8 25 ff ff call 1249d4 <fat_file_reopen> <== NOT EXECUTED
13240c: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc != RC_OK)
13240e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
132411: 85 c0 test %eax,%eax <== NOT EXECUTED
132413: 0f 85 d4 01 00 00 jne 1325ed <msdos_eval4make+0x241> <== NOT EXECUTED
132419: 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);
132420: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
132423: 03 55 c0 add -0x40(%ebp),%edx <== NOT EXECUTED
132426: 31 c0 xor %eax,%eax <== NOT EXECUTED
132428: 83 c9 ff or $0xffffffff,%ecx <== NOT EXECUTED
13242b: 89 d7 mov %edx,%edi <== NOT EXECUTED
13242d: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED
13242f: f7 d1 not %ecx <== NOT EXECUTED
132431: 49 dec %ecx <== NOT EXECUTED
132432: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
132435: 50 push %eax <== NOT EXECUTED
132436: 8d 45 e0 lea -0x20(%ebp),%eax <== NOT EXECUTED
132439: 50 push %eax <== NOT EXECUTED
13243a: 51 push %ecx <== NOT EXECUTED
13243b: 52 push %edx <== NOT EXECUTED
13243c: e8 fc 14 00 00 call 13393d <msdos_get_token> <== NOT EXECUTED
i += token_len;
132441: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
132444: 01 55 c0 add %edx,-0x40(%ebp) <== NOT EXECUTED
fat_fd = pathloc->node_access;
132447: 8b 3b mov (%ebx),%edi <== NOT EXECUTED
switch (type)
132449: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13244c: 83 f8 02 cmp $0x2,%eax <== NOT EXECUTED
13244f: 74 2d je 13247e <msdos_eval4make+0xd2> <== NOT EXECUTED
132451: 77 0a ja 13245d <msdos_eval4make+0xb1> <== NOT EXECUTED
132453: 85 c0 test %eax,%eax <== NOT EXECUTED
132455: 0f 84 08 01 00 00 je 132563 <msdos_eval4make+0x1b7> <== NOT EXECUTED
13245b: eb c3 jmp 132420 <msdos_eval4make+0x74> <== NOT EXECUTED
13245d: 83 f8 03 cmp $0x3,%eax <== NOT EXECUTED
132460: 0f 84 d0 00 00 00 je 132536 <msdos_eval4make+0x18a> <== NOT EXECUTED
132466: 83 f8 04 cmp $0x4,%eax <== NOT EXECUTED
132469: 75 b5 jne 132420 <msdos_eval4make+0x74> <== NOT EXECUTED
13246b: 89 7d c4 mov %edi,-0x3c(%ebp) <== NOT EXECUTED
case MSDOS_CURRENT_DIR:
break;
case MSDOS_INVALID_TOKEN:
errno = ENAMETOOLONG;
13246e: e8 25 a9 00 00 call 13cd98 <__errno> <== NOT EXECUTED
132473: c7 00 5b 00 00 00 movl $0x5b,(%eax) <== NOT EXECUTED
132479: e9 b0 00 00 00 jmp 13252e <msdos_eval4make+0x182> <== NOT EXECUTED
{
case MSDOS_UP_DIR:
/*
* Only a directory can be decended into.
*/
if (fat_fd->fat_file_type != FAT_DIRECTORY)
13247e: 83 7f 10 01 cmpl $0x1,0x10(%edi) <== NOT EXECUTED
132482: 0f 85 b4 00 00 00 jne 13253c <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)
132488: 8b 43 10 mov 0x10(%ebx),%eax <== NOT EXECUTED
}
/*
* Am I at the root of this mounted filesystem?
*/
if (pathloc->node_access ==
13248b: 3b 78 1c cmp 0x1c(%eax),%edi <== NOT EXECUTED
13248e: 75 6d jne 1324fd <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)
132490: 8b 15 fc 21 16 00 mov 0x1621fc,%edx <== NOT EXECUTED
132496: 3b 7a 18 cmp 0x18(%edx),%edi <== NOT EXECUTED
132499: 74 85 je 132420 <msdos_eval4make+0x74> <== NOT EXECUTED
13249b: 89 7d c4 mov %edi,-0x3c(%ebp) <== NOT EXECUTED
{
break; /* Throw out the .. in this case */
}
else
{
newloc = pathloc->mt_entry->mt_point_node;
13249e: 8d 7d cc lea -0x34(%ebp),%edi <== NOT EXECUTED
1324a1: 8d 70 08 lea 0x8(%eax),%esi <== NOT EXECUTED
1324a4: b9 05 00 00 00 mov $0x5,%ecx <== NOT EXECUTED
1324a9: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED
*pathloc = newloc;
1324ab: 8d 75 cc lea -0x34(%ebp),%esi <== NOT EXECUTED
1324ae: b1 05 mov $0x5,%cl <== NOT EXECUTED
1324b0: 89 df mov %ebx,%edi <== NOT EXECUTED
1324b2: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED
rc = fat_file_close(pathloc->mt_entry, fat_fd);
1324b4: 52 push %edx <== NOT EXECUTED
1324b5: 52 push %edx <== NOT EXECUTED
1324b6: ff 75 c4 pushl -0x3c(%ebp) <== NOT EXECUTED
1324b9: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED
1324bc: e8 14 2e ff ff call 1252d5 <fat_file_close> <== NOT EXECUTED
1324c1: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc != RC_OK)
1324c3: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1324c6: 85 c0 test %eax,%eax <== NOT EXECUTED
1324c8: 0f 85 1f 01 00 00 jne 1325ed <msdos_eval4make+0x241> <== NOT EXECUTED
goto err;
rtems_semaphore_release(fs_info->vol_sema);
1324ce: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1324d1: 8b 55 bc mov -0x44(%ebp),%edx <== NOT EXECUTED
1324d4: ff b2 94 00 00 00 pushl 0x94(%edx) <== NOT EXECUTED
1324da: e8 15 e8 fd ff call 110cf4 <rtems_semaphore_release><== NOT EXECUTED
return (*pathloc->ops->evalformake_h)(&path[i-token_len],
1324df: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
1324e2: 8b 43 0c mov 0xc(%ebx),%eax <== NOT EXECUTED
1324e5: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
1324e8: 53 push %ebx <== NOT EXECUTED
1324e9: 8b 7d c0 mov -0x40(%ebp),%edi <== NOT EXECUTED
1324ec: 2b 7d e4 sub -0x1c(%ebp),%edi <== NOT EXECUTED
1324ef: 03 7d 08 add 0x8(%ebp),%edi <== NOT EXECUTED
1324f2: 57 push %edi <== NOT EXECUTED
1324f3: ff 50 04 call *0x4(%eax) <== NOT EXECUTED
1324f6: 89 c6 mov %eax,%esi <== NOT EXECUTED
1324f8: e9 01 01 00 00 jmp 1325fe <msdos_eval4make+0x252> <== NOT EXECUTED
pathloc, name);
}
}
else
{
rc = msdos_find_name(pathloc, token, token_len);
1324fd: 50 push %eax <== NOT EXECUTED
1324fe: 52 push %edx <== NOT EXECUTED
1324ff: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
132502: 53 push %ebx <== NOT EXECUTED
132503: e8 13 19 00 00 call 133e1b <msdos_find_name> <== NOT EXECUTED
if (rc != RC_OK)
132508: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13250b: 85 c0 test %eax,%eax <== NOT EXECUTED
13250d: 0f 84 0d ff ff ff je 132420 <msdos_eval4make+0x74> <== NOT EXECUTED
132513: 89 7d c4 mov %edi,-0x3c(%ebp) <== NOT EXECUTED
132516: 89 c7 mov %eax,%edi <== NOT EXECUTED
{
if (rc == MSDOS_NAME_NOT_FOUND_ERR)
132518: 3d 01 7d 00 00 cmp $0x7d01,%eax <== NOT EXECUTED
13251d: 0f 85 b8 00 00 00 jne 1325db <msdos_eval4make+0x22f> <== NOT EXECUTED
{
errno = ENOENT;
132523: e8 70 a8 00 00 call 13cd98 <__errno> <== NOT EXECUTED
132528: c7 00 02 00 00 00 movl $0x2,(%eax) <== NOT EXECUTED
13252e: 83 cf ff or $0xffffffff,%edi <== NOT EXECUTED
132531: e9 a5 00 00 00 jmp 1325db <msdos_eval4make+0x22f> <== NOT EXECUTED
case MSDOS_NAME:
/*
* Only a directory can be decended into.
*/
if (fat_fd->fat_file_type != FAT_DIRECTORY)
132536: 83 7f 10 01 cmpl $0x1,0x10(%edi) <== NOT EXECUTED
13253a: 74 05 je 132541 <msdos_eval4make+0x195> <== NOT EXECUTED
13253c: 89 7d c4 mov %edi,-0x3c(%ebp) <== NOT EXECUTED
13253f: eb 6d jmp 1325ae <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);
132541: 51 push %ecx <== NOT EXECUTED
132542: 52 push %edx <== NOT EXECUTED
132543: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
132546: 53 push %ebx <== NOT EXECUTED
132547: e8 cf 18 00 00 call 133e1b <msdos_find_name> <== NOT EXECUTED
if (rc)
13254c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13254f: 85 c0 test %eax,%eax <== NOT EXECUTED
132551: 0f 84 c9 fe ff ff je 132420 <msdos_eval4make+0x74> <== NOT EXECUTED
132557: 89 7d c4 mov %edi,-0x3c(%ebp) <== NOT EXECUTED
{
if (rc != MSDOS_NAME_NOT_FOUND_ERR)
13255a: 3d 01 7d 00 00 cmp $0x7d01,%eax <== NOT EXECUTED
13255f: 74 12 je 132573 <msdos_eval4make+0x1c7> <== NOT EXECUTED
132561: eb c0 jmp 132523 <msdos_eval4make+0x177> <== NOT EXECUTED
132563: 89 7d c4 mov %edi,-0x3c(%ebp) <== NOT EXECUTED
done = true;
}
break;
case MSDOS_NO_MORE_PATH:
errno = EEXIST;
132566: e8 2d a8 00 00 call 13cd98 <__errno> <== NOT EXECUTED
13256b: c7 00 11 00 00 00 movl $0x11,(%eax) <== NOT EXECUTED
132571: eb bb jmp 13252e <msdos_eval4make+0x182> <== NOT EXECUTED
break;
}
}
*name = &path[i - token_len];
132573: 8b 45 c0 mov -0x40(%ebp),%eax <== NOT EXECUTED
132576: 2b 45 e4 sub -0x1c(%ebp),%eax <== NOT EXECUTED
132579: 03 45 08 add 0x8(%ebp),%eax <== NOT EXECUTED
13257c: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
13257f: 89 02 mov %eax,(%edx) <== NOT EXECUTED
132581: 8b 7d 08 mov 0x8(%ebp),%edi <== NOT EXECUTED
132584: 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++)
132587: eb 14 jmp 13259d <msdos_eval4make+0x1f1> <== NOT EXECUTED
{
if (!msdos_is_separator(path[i]))
132589: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13258c: 0f be c0 movsbl %al,%eax <== NOT EXECUTED
13258f: 50 push %eax <== NOT EXECUTED
132590: e8 77 be fd ff call 10e40c <rtems_filesystem_is_separator><== NOT EXECUTED
132595: 47 inc %edi <== NOT EXECUTED
132596: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
132599: 85 c0 test %eax,%eax <== NOT EXECUTED
13259b: 74 86 je 132523 <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++)
13259d: 8a 07 mov (%edi),%al <== NOT EXECUTED
13259f: 84 c0 test %al,%al <== NOT EXECUTED
1325a1: 75 e6 jne 132589 <msdos_eval4make+0x1dd> <== NOT EXECUTED
rc = -1;
goto error;
}
}
fat_fd = pathloc->node_access;
1325a3: 8b 03 mov (%ebx),%eax <== NOT EXECUTED
1325a5: 89 45 c4 mov %eax,-0x3c(%ebp) <== NOT EXECUTED
if (fat_fd->fat_file_type != FAT_DIRECTORY)
1325a8: 83 78 10 01 cmpl $0x1,0x10(%eax) <== NOT EXECUTED
1325ac: 74 10 je 1325be <msdos_eval4make+0x212> <== NOT EXECUTED
{
errno = ENOTDIR;
1325ae: e8 e5 a7 00 00 call 13cd98 <__errno> <== NOT EXECUTED
1325b3: c7 00 14 00 00 00 movl $0x14,(%eax) <== NOT EXECUTED
1325b9: e9 70 ff ff ff jmp 13252e <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;
1325be: 8b 43 10 mov 0x10(%ebx),%eax <== NOT EXECUTED
1325c1: 8b 40 34 mov 0x34(%eax),%eax <== NOT EXECUTED
1325c4: 8b 80 8c 00 00 00 mov 0x8c(%eax),%eax <== NOT EXECUTED
1325ca: 89 43 08 mov %eax,0x8(%ebx) <== NOT EXECUTED
goto error;
}
msdos_set_handlers(pathloc);
rtems_semaphore_release(fs_info->vol_sema);
1325cd: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1325d0: 8b 55 bc mov -0x44(%ebp),%edx <== NOT EXECUTED
1325d3: ff b2 94 00 00 00 pushl 0x94(%edx) <== NOT EXECUTED
1325d9: eb 1e jmp 1325f9 <msdos_eval4make+0x24d> <== NOT EXECUTED
return RC_OK;
error:
fat_file_close(pathloc->mt_entry, fat_fd);
1325db: 50 push %eax <== NOT EXECUTED
1325dc: 50 push %eax <== NOT EXECUTED
1325dd: ff 75 c4 pushl -0x3c(%ebp) <== NOT EXECUTED
1325e0: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED
1325e3: e8 ed 2c ff ff call 1252d5 <fat_file_close> <== NOT EXECUTED
1325e8: 89 fe mov %edi,%esi <== NOT EXECUTED
1325ea: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
err:
rtems_semaphore_release(fs_info->vol_sema);
1325ed: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1325f0: 8b 45 bc mov -0x44(%ebp),%eax <== NOT EXECUTED
1325f3: ff b0 94 00 00 00 pushl 0x94(%eax) <== NOT EXECUTED
1325f9: e8 f6 e6 fd ff call 110cf4 <rtems_semaphore_release><== NOT EXECUTED
return rc;
1325fe: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
132601: 89 f0 mov %esi,%eax <== NOT EXECUTED
132603: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
132606: 5b pop %ebx <== NOT EXECUTED
132607: 5e pop %esi <== NOT EXECUTED
132608: 5f pop %edi <== NOT EXECUTED
132609: c9 leave <== NOT EXECUTED
13260a: c3 ret <== NOT EXECUTED
0013218c <msdos_eval_path>:
const char *pathname,
size_t pathnamelen,
int flags,
rtems_filesystem_location_info_t *pathloc
)
{
13218c: 55 push %ebp <== NOT EXECUTED
13218d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13218f: 57 push %edi <== NOT EXECUTED
132190: 56 push %esi <== NOT EXECUTED
132191: 53 push %ebx <== NOT EXECUTED
132192: 83 ec 40 sub $0x40,%esp <== NOT EXECUTED
132195: 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;
132198: 8b 43 10 mov 0x10(%ebx),%eax <== NOT EXECUTED
13219b: 8b 40 34 mov 0x34(%eax),%eax <== NOT EXECUTED
13219e: 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;
1321a1: 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,
1321a8: 6a 00 push $0x0 <== NOT EXECUTED
1321aa: 6a 00 push $0x0 <== NOT EXECUTED
1321ac: ff b0 94 00 00 00 pushl 0x94(%eax) <== NOT EXECUTED
1321b2: e8 51 ea fd ff call 110c08 <rtems_semaphore_obtain><== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
1321b7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1321ba: 85 c0 test %eax,%eax <== NOT EXECUTED
1321bc: 74 13 je 1321d1 <msdos_eval_path+0x45> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
1321be: e8 d5 ab 00 00 call 13cd98 <__errno> <== NOT EXECUTED
1321c3: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
1321c9: 83 cf ff or $0xffffffff,%edi <== NOT EXECUTED
1321cc: e9 d1 01 00 00 jmp 1323a2 <msdos_eval_path+0x216> <== NOT EXECUTED
if (!pathloc->node_access)
1321d1: 8b 03 mov (%ebx),%eax <== NOT EXECUTED
1321d3: 85 c0 test %eax,%eax <== NOT EXECUTED
1321d5: 75 13 jne 1321ea <msdos_eval_path+0x5e> <== NOT EXECUTED
{
errno = ENOENT;
1321d7: e8 bc ab 00 00 call 13cd98 <__errno> <== NOT EXECUTED
1321dc: c7 00 02 00 00 00 movl $0x2,(%eax) <== NOT EXECUTED
1321e2: 83 cf ff or $0xffffffff,%edi <== NOT EXECUTED
rc = -1;
goto err;
1321e5: e9 a4 01 00 00 jmp 13238e <msdos_eval_path+0x202> <== NOT EXECUTED
}
fat_fd = pathloc->node_access;
rc = fat_file_reopen(fat_fd);
1321ea: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1321ed: 50 push %eax <== NOT EXECUTED
1321ee: e8 e1 27 ff ff call 1249d4 <fat_file_reopen> <== NOT EXECUTED
1321f3: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc != RC_OK)
1321f5: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1321f8: 85 c0 test %eax,%eax <== NOT EXECUTED
1321fa: 0f 85 8e 01 00 00 jne 13238e <msdos_eval_path+0x202> <== NOT EXECUTED
132200: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
132205: c7 45 c0 00 00 00 00 movl $0x0,-0x40(%ebp) <== NOT EXECUTED
13220c: 89 7d c4 mov %edi,-0x3c(%ebp) <== NOT EXECUTED
13220f: 89 df mov %ebx,%edi <== NOT EXECUTED
132211: e9 27 01 00 00 jmp 13233d <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);
132216: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
132219: 50 push %eax <== NOT EXECUTED
13221a: 8d 4d e0 lea -0x20(%ebp),%ecx <== NOT EXECUTED
13221d: 51 push %ecx <== NOT EXECUTED
13221e: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
132221: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
132224: 03 45 c0 add -0x40(%ebp),%eax <== NOT EXECUTED
132227: 50 push %eax <== NOT EXECUTED
132228: e8 10 17 00 00 call 13393d <msdos_get_token> <== NOT EXECUTED
pathnamelen -= token_len;
13222d: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
132230: 29 55 0c sub %edx,0xc(%ebp) <== NOT EXECUTED
i += token_len;
132233: 01 55 c0 add %edx,-0x40(%ebp) <== NOT EXECUTED
fat_fd = pathloc->node_access;
132236: 8b 1f mov (%edi),%ebx <== NOT EXECUTED
switch (type)
132238: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13223b: 83 f8 03 cmp $0x3,%eax <== NOT EXECUTED
13223e: 0f 84 cf 00 00 00 je 132313 <msdos_eval_path+0x187> <== NOT EXECUTED
132244: 83 f8 04 cmp $0x4,%eax <== NOT EXECUTED
132247: 0f 84 de 00 00 00 je 13232b <msdos_eval_path+0x19f> <== NOT EXECUTED
13224d: 83 f8 02 cmp $0x2,%eax <== NOT EXECUTED
132250: 0f 85 e7 00 00 00 jne 13233d <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)
132256: 83 7b 10 01 cmpl $0x1,0x10(%ebx) <== NOT EXECUTED
13225a: 0f 85 b9 00 00 00 jne 132319 <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)
132260: 8b 77 10 mov 0x10(%edi),%esi <== NOT EXECUTED
}
/*
* Am I at the root of this mounted filesystem?
*/
if (pathloc->node_access ==
132263: 3b 5e 1c cmp 0x1c(%esi),%ebx <== NOT EXECUTED
132266: 75 77 jne 1322df <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)
132268: a1 fc 21 16 00 mov 0x1621fc,%eax <== NOT EXECUTED
13226d: 3b 58 18 cmp 0x18(%eax),%ebx <== NOT EXECUTED
132270: 74 a4 je 132216 <msdos_eval_path+0x8a> <== NOT EXECUTED
132272: 89 5d c4 mov %ebx,-0x3c(%ebp) <== NOT EXECUTED
132275: 89 fb mov %edi,%ebx <== NOT EXECUTED
{
break; /* Throw out the .. in this case */
}
else
{
newloc = pathloc->mt_entry->mt_point_node;
132277: 8d 7d cc lea -0x34(%ebp),%edi <== NOT EXECUTED
13227a: 83 c6 08 add $0x8,%esi <== NOT EXECUTED
13227d: b9 05 00 00 00 mov $0x5,%ecx <== NOT EXECUTED
132282: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED
*pathloc = newloc;
132284: 8d 75 cc lea -0x34(%ebp),%esi <== NOT EXECUTED
132287: b1 05 mov $0x5,%cl <== NOT EXECUTED
132289: 89 df mov %ebx,%edi <== NOT EXECUTED
13228b: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED
rc = fat_file_close(pathloc->mt_entry, fat_fd);
13228d: 56 push %esi <== NOT EXECUTED
13228e: 56 push %esi <== NOT EXECUTED
13228f: ff 75 c4 pushl -0x3c(%ebp) <== NOT EXECUTED
132292: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED
132295: e8 3b 30 ff ff call 1252d5 <fat_file_close> <== NOT EXECUTED
13229a: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc != RC_OK)
13229c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13229f: 85 c0 test %eax,%eax <== NOT EXECUTED
1322a1: 0f 85 e7 00 00 00 jne 13238e <msdos_eval_path+0x202> <== NOT EXECUTED
goto err;
rtems_semaphore_release(fs_info->vol_sema);
1322a7: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1322aa: 8b 45 bc mov -0x44(%ebp),%eax <== NOT EXECUTED
1322ad: ff b0 94 00 00 00 pushl 0x94(%eax) <== NOT EXECUTED
1322b3: e8 3c ea fd ff call 110cf4 <rtems_semaphore_release><== NOT EXECUTED
return (*pathloc->ops->evalpath_h)(&(pathname[i-token_len]),
1322b8: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
1322bb: 8b 53 0c mov 0xc(%ebx),%edx <== NOT EXECUTED
1322be: 53 push %ebx <== NOT EXECUTED
1322bf: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
1322c2: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED
1322c5: 01 c1 add %eax,%ecx <== NOT EXECUTED
1322c7: 51 push %ecx <== NOT EXECUTED
1322c8: 8b 4d c0 mov -0x40(%ebp),%ecx <== NOT EXECUTED
1322cb: 29 c1 sub %eax,%ecx <== NOT EXECUTED
1322cd: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
1322d0: 01 c8 add %ecx,%eax <== NOT EXECUTED
1322d2: 50 push %eax <== NOT EXECUTED
1322d3: ff 12 call *(%edx) <== NOT EXECUTED
1322d5: 89 c7 mov %eax,%edi <== NOT EXECUTED
1322d7: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
1322da: e9 c3 00 00 00 jmp 1323a2 <msdos_eval_path+0x216> <== NOT EXECUTED
flags, pathloc);
}
}
else
{
rc = msdos_find_name(pathloc, token, token_len);
1322df: 51 push %ecx <== NOT EXECUTED
1322e0: 52 push %edx <== NOT EXECUTED
1322e1: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
1322e4: 57 push %edi <== NOT EXECUTED
1322e5: e8 31 1b 00 00 call 133e1b <msdos_find_name> <== NOT EXECUTED
if (rc != RC_OK)
1322ea: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1322ed: 85 c0 test %eax,%eax <== NOT EXECUTED
1322ef: 0f 84 21 ff ff ff je 132216 <msdos_eval_path+0x8a> <== NOT EXECUTED
1322f5: 89 5d c4 mov %ebx,-0x3c(%ebp) <== NOT EXECUTED
1322f8: 89 c6 mov %eax,%esi <== NOT EXECUTED
1322fa: 89 fb mov %edi,%ebx <== NOT EXECUTED
{
if (rc == MSDOS_NAME_NOT_FOUND_ERR)
1322fc: 3d 01 7d 00 00 cmp $0x7d01,%eax <== NOT EXECUTED
132301: 75 79 jne 13237c <msdos_eval_path+0x1f0> <== NOT EXECUTED
{
errno = ENOENT;
132303: e8 90 aa 00 00 call 13cd98 <__errno> <== NOT EXECUTED
132308: c7 00 02 00 00 00 movl $0x2,(%eax) <== NOT EXECUTED
13230e: 83 ce ff or $0xffffffff,%esi <== NOT EXECUTED
132311: eb 69 jmp 13237c <msdos_eval_path+0x1f0> <== NOT EXECUTED
case MSDOS_NAME:
/*
* Only a directory can be decended into.
*/
if (fat_fd->fat_file_type != FAT_DIRECTORY)
132313: 83 7b 10 01 cmpl $0x1,0x10(%ebx) <== NOT EXECUTED
132317: 74 c6 je 1322df <msdos_eval_path+0x153> <== NOT EXECUTED
132319: 89 5d c4 mov %ebx,-0x3c(%ebp) <== NOT EXECUTED
13231c: 89 fb mov %edi,%ebx <== NOT EXECUTED
{
errno = ENOTSUP;
13231e: e8 75 aa 00 00 call 13cd98 <__errno> <== NOT EXECUTED
132323: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
132329: eb e3 jmp 13230e <msdos_eval_path+0x182> <== NOT EXECUTED
13232b: 89 5d c4 mov %ebx,-0x3c(%ebp) <== NOT EXECUTED
13232e: 89 fb mov %edi,%ebx <== NOT EXECUTED
case MSDOS_NO_MORE_PATH:
case MSDOS_CURRENT_DIR:
break;
case MSDOS_INVALID_TOKEN:
errno = ENAMETOOLONG;
132330: e8 63 aa 00 00 call 13cd98 <__errno> <== NOT EXECUTED
132335: c7 00 5b 00 00 00 movl $0x5b,(%eax) <== NOT EXECUTED
13233b: eb d1 jmp 13230e <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))
13233d: 83 f8 04 cmp $0x4,%eax <== NOT EXECUTED
132340: 74 08 je 13234a <msdos_eval_path+0x1be> <== NOT EXECUTED
132342: 85 c0 test %eax,%eax <== NOT EXECUTED
132344: 0f 85 cc fe ff ff jne 132216 <msdos_eval_path+0x8a> <== NOT EXECUTED
13234a: 89 fb mov %edi,%ebx <== NOT EXECUTED
13234c: 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;
13234f: 8b 43 10 mov 0x10(%ebx),%eax <== NOT EXECUTED
132352: 8b 40 34 mov 0x34(%eax),%eax <== NOT EXECUTED
fat_file_fd_t *fat_fd = loc->node_access;
132355: 8b 13 mov (%ebx),%edx <== NOT EXECUTED
132357: 83 7a 10 01 cmpl $0x1,0x10(%edx) <== NOT EXECUTED
13235b: 75 08 jne 132365 <msdos_eval_path+0x1d9> <== NOT EXECUTED
if (fat_fd->fat_file_type == FAT_DIRECTORY)
loc->handlers = fs_info->directory_handlers;
13235d: 8b 80 8c 00 00 00 mov 0x8c(%eax),%eax <== NOT EXECUTED
132363: eb 06 jmp 13236b <msdos_eval_path+0x1df> <== NOT EXECUTED
else
loc->handlers = fs_info->file_handlers;
132365: 8b 80 90 00 00 00 mov 0x90(%eax),%eax <== NOT EXECUTED
13236b: 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);
13236e: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
132371: 8b 45 bc mov -0x44(%ebp),%eax <== NOT EXECUTED
132374: ff b0 94 00 00 00 pushl 0x94(%eax) <== NOT EXECUTED
13237a: eb 1e jmp 13239a <msdos_eval_path+0x20e> <== NOT EXECUTED
return RC_OK;
error:
fat_file_close(pathloc->mt_entry, fat_fd);
13237c: 50 push %eax <== NOT EXECUTED
13237d: 50 push %eax <== NOT EXECUTED
13237e: ff 75 c4 pushl -0x3c(%ebp) <== NOT EXECUTED
132381: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED
132384: e8 4c 2f ff ff call 1252d5 <fat_file_close> <== NOT EXECUTED
132389: 89 f7 mov %esi,%edi <== NOT EXECUTED
13238b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
err:
rtems_semaphore_release(fs_info->vol_sema);
13238e: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
132391: 8b 4d bc mov -0x44(%ebp),%ecx <== NOT EXECUTED
132394: ff b1 94 00 00 00 pushl 0x94(%ecx) <== NOT EXECUTED
13239a: e8 55 e9 fd ff call 110cf4 <rtems_semaphore_release><== NOT EXECUTED
return rc;
13239f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
1323a2: 89 f8 mov %edi,%eax <== NOT EXECUTED
1323a4: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1323a7: 5b pop %ebx <== NOT EXECUTED
1323a8: 5e pop %esi <== NOT EXECUTED
1323a9: 5f pop %edi <== NOT EXECUTED
1323aa: c9 leave <== NOT EXECUTED
1323ab: c3 ret <== NOT EXECUTED
00132613 <msdos_file_chmod>:
* RC_OK always
*/
int
msdos_file_chmod(rtems_filesystem_location_info_t *pathloc,
mode_t mode)
{
132613: 55 push %ebp <== NOT EXECUTED
132614: 89 e5 mov %esp,%ebp <== NOT EXECUTED
return RC_OK;
}
132616: 31 c0 xor %eax,%eax <== NOT EXECUTED
132618: c9 leave <== NOT EXECUTED
132619: c3 ret <== NOT EXECUTED
00132b3f <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)
{
132b3f: 55 push %ebp <== NOT EXECUTED
132b40: 89 e5 mov %esp,%ebp <== NOT EXECUTED
132b42: 57 push %edi <== NOT EXECUTED
132b43: 56 push %esi <== NOT EXECUTED
132b44: 53 push %ebx <== NOT EXECUTED
132b45: 83 ec 20 sub $0x20,%esp <== NOT EXECUTED
132b48: 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;
132b4b: 8b 46 28 mov 0x28(%esi),%eax <== NOT EXECUTED
132b4e: 8b 78 34 mov 0x34(%eax),%edi <== NOT EXECUTED
fat_file_fd_t *fat_fd = iop->file_info;
132b51: 8b 46 38 mov 0x38(%esi),%eax <== NOT EXECUTED
132b54: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
132b57: 6a 00 push $0x0 <== NOT EXECUTED
132b59: 6a 00 push $0x0 <== NOT EXECUTED
132b5b: ff b7 94 00 00 00 pushl 0x94(%edi) <== NOT EXECUTED
132b61: e8 a2 e0 fd ff call 110c08 <rtems_semaphore_obtain><== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
132b66: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
132b69: 85 c0 test %eax,%eax <== NOT EXECUTED
132b6b: 74 10 je 132b7d <msdos_file_close+0x3e> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
132b6d: e8 26 a2 00 00 call 13cd98 <__errno> <== NOT EXECUTED
132b72: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
132b78: 83 cb ff or $0xffffffff,%ebx <== NOT EXECUTED
132b7b: eb 6c jmp 132be9 <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))
132b7d: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
132b80: f6 40 30 01 testb $0x1,0x30(%eax) <== NOT EXECUTED
132b84: 75 45 jne 132bcb <msdos_file_close+0x8c> <== NOT EXECUTED
{
rc = msdos_set_first_cluster_num(iop->pathinfo.mt_entry, fat_fd);
132b86: 52 push %edx <== NOT EXECUTED
132b87: 52 push %edx <== NOT EXECUTED
132b88: 50 push %eax <== NOT EXECUTED
132b89: ff 76 28 pushl 0x28(%esi) <== NOT EXECUTED
132b8c: e8 0a 0b 00 00 call 13369b <msdos_set_first_cluster_num><== NOT EXECUTED
132b91: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc != RC_OK)
132b93: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
132b96: 85 c0 test %eax,%eax <== NOT EXECUTED
132b98: 75 2c jne 132bc6 <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);
132b9a: 53 push %ebx <== NOT EXECUTED
132b9b: 53 push %ebx <== NOT EXECUTED
132b9c: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
132b9f: ff 76 28 pushl 0x28(%esi) <== NOT EXECUTED
132ba2: e8 8a 0a 00 00 call 133631 <msdos_set_file_size> <== NOT EXECUTED
132ba7: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc != RC_OK)
132ba9: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
132bac: 85 c0 test %eax,%eax <== NOT EXECUTED
132bae: 75 16 jne 132bc6 <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);
132bb0: 51 push %ecx <== NOT EXECUTED
132bb1: 51 push %ecx <== NOT EXECUTED
132bb2: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
132bb5: ff 76 28 pushl 0x28(%esi) <== NOT EXECUTED
132bb8: e8 7f 0c 00 00 call 13383c <msdos_set_dir_wrt_time_and_date><== NOT EXECUTED
132bbd: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc != RC_OK)
132bbf: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
132bc2: 85 c0 test %eax,%eax <== NOT EXECUTED
132bc4: 74 05 je 132bcb <msdos_file_close+0x8c> <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
132bc6: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
132bc9: eb 10 jmp 132bdb <msdos_file_close+0x9c> <== NOT EXECUTED
return rc;
}
}
rc = fat_file_close(iop->pathinfo.mt_entry, fat_fd);
132bcb: 52 push %edx <== NOT EXECUTED
132bcc: 52 push %edx <== NOT EXECUTED
132bcd: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
132bd0: ff 76 28 pushl 0x28(%esi) <== NOT EXECUTED
132bd3: e8 fd 26 ff ff call 1252d5 <fat_file_close> <== NOT EXECUTED
132bd8: 89 c3 mov %eax,%ebx <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
132bda: 58 pop %eax <== NOT EXECUTED
132bdb: ff b7 94 00 00 00 pushl 0x94(%edi) <== NOT EXECUTED
132be1: e8 0e e1 fd ff call 110cf4 <rtems_semaphore_release><== NOT EXECUTED
return rc;
132be6: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
132be9: 89 d8 mov %ebx,%eax <== NOT EXECUTED
132beb: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
132bee: 5b pop %ebx <== NOT EXECUTED
132bef: 5e pop %esi <== NOT EXECUTED
132bf0: 5f pop %edi <== NOT EXECUTED
132bf1: c9 leave <== NOT EXECUTED
132bf2: c3 ret <== NOT EXECUTED
0013273d <msdos_file_datasync>:
* RETURNS:
* RC_OK on success, or -1 if error occured (errno set appropriately)
*/
int
msdos_file_datasync(rtems_libio_t *iop)
{
13273d: 55 push %ebp <== NOT EXECUTED
13273e: 89 e5 mov %esp,%ebp <== NOT EXECUTED
132740: 57 push %edi <== NOT EXECUTED
132741: 56 push %esi <== NOT EXECUTED
132742: 53 push %ebx <== NOT EXECUTED
132743: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED
132746: 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;
132749: 8b 7b 38 mov 0x38(%ebx),%edi <== NOT EXECUTED
msdos_fs_info_t *fs_info = iop->pathinfo.mt_entry->fs_info;
13274c: 8b 43 28 mov 0x28(%ebx),%eax <== NOT EXECUTED
13274f: 8b 70 34 mov 0x34(%eax),%esi <== NOT EXECUTED
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
132752: 6a 00 push $0x0 <== NOT EXECUTED
132754: 6a 00 push $0x0 <== NOT EXECUTED
132756: ff b6 94 00 00 00 pushl 0x94(%esi) <== NOT EXECUTED
13275c: e8 a7 e4 fd ff call 110c08 <rtems_semaphore_obtain><== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
132761: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
132764: 85 c0 test %eax,%eax <== NOT EXECUTED
132766: 74 10 je 132778 <msdos_file_datasync+0x3b><== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
132768: e8 2b a6 00 00 call 13cd98 <__errno> <== NOT EXECUTED
13276d: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
132773: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
132776: eb 1c jmp 132794 <msdos_file_datasync+0x57><== NOT EXECUTED
/* synchronize file data */
rc = fat_file_datasync(iop->pathinfo.mt_entry, fat_fd);
132778: 50 push %eax <== NOT EXECUTED
132779: 50 push %eax <== NOT EXECUTED
13277a: 57 push %edi <== NOT EXECUTED
13277b: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
13277e: e8 59 23 ff ff call 124adc <fat_file_datasync> <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
132783: 5b pop %ebx <== NOT EXECUTED
132784: ff b6 94 00 00 00 pushl 0x94(%esi) <== NOT EXECUTED
13278a: e8 65 e5 fd ff call 110cf4 <rtems_semaphore_release><== NOT EXECUTED
13278f: 31 c0 xor %eax,%eax <== NOT EXECUTED
return RC_OK;
132791: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
132794: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
132797: 5b pop %ebx <== NOT EXECUTED
132798: 5e pop %esi <== NOT EXECUTED
132799: 5f pop %edi <== NOT EXECUTED
13279a: c9 leave <== NOT EXECUTED
13279b: c3 ret <== NOT EXECUTED
00132869 <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)
{
132869: 55 push %ebp <== NOT EXECUTED
13286a: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13286c: 57 push %edi <== NOT EXECUTED
13286d: 56 push %esi <== NOT EXECUTED
13286e: 53 push %ebx <== NOT EXECUTED
13286f: 83 ec 3c sub $0x3c,%esp <== NOT EXECUTED
132872: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
132875: 8b 75 0c mov 0xc(%ebp),%esi <== NOT EXECUTED
132878: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
13287b: 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;
13287e: 8b 43 28 mov 0x28(%ebx),%eax <== NOT EXECUTED
132881: 8b 48 34 mov 0x34(%eax),%ecx <== NOT EXECUTED
fat_file_fd_t *fat_fd = iop->file_info;
132884: 8b 53 38 mov 0x38(%ebx),%edx <== NOT EXECUTED
132887: 89 55 c4 mov %edx,-0x3c(%ebp) <== NOT EXECUTED
if (length >= fat_fd->fat_file_size)
13288a: 8b 42 18 mov 0x18(%edx),%eax <== NOT EXECUTED
13288d: 31 d2 xor %edx,%edx <== NOT EXECUTED
13288f: 89 45 e0 mov %eax,-0x20(%ebp) <== NOT EXECUTED
132892: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED
132895: 83 7d dc 00 cmpl $0x0,-0x24(%ebp) <== NOT EXECUTED
132899: 7c 0d jl 1328a8 <msdos_file_ftruncate+0x3f><== NOT EXECUTED
13289b: 7f 04 jg 1328a1 <msdos_file_ftruncate+0x38><== NOT EXECUTED
13289d: 39 c6 cmp %eax,%esi <== NOT EXECUTED
13289f: 72 07 jb 1328a8 <msdos_file_ftruncate+0x3f><== NOT EXECUTED
1328a1: 31 ff xor %edi,%edi <== NOT EXECUTED
1328a3: e9 84 00 00 00 jmp 13292c <msdos_file_ftruncate+0xc3><== NOT EXECUTED
return RC_OK;
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
1328a8: 57 push %edi <== NOT EXECUTED
1328a9: 6a 00 push $0x0 <== NOT EXECUTED
1328ab: 6a 00 push $0x0 <== NOT EXECUTED
1328ad: ff b1 94 00 00 00 pushl 0x94(%ecx) <== NOT EXECUTED
1328b3: 89 4d d8 mov %ecx,-0x28(%ebp) <== NOT EXECUTED
1328b6: e8 4d e3 fd ff call 110c08 <rtems_semaphore_obtain><== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
1328bb: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1328be: 85 c0 test %eax,%eax <== NOT EXECUTED
1328c0: 8b 4d d8 mov -0x28(%ebp),%ecx <== NOT EXECUTED
1328c3: 74 10 je 1328d5 <msdos_file_ftruncate+0x6c><== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
1328c5: e8 ce a4 00 00 call 13cd98 <__errno> <== NOT EXECUTED
1328ca: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
1328d0: 83 cf ff or $0xffffffff,%edi <== NOT EXECUTED
1328d3: eb 57 jmp 13292c <msdos_file_ftruncate+0xc3><== NOT EXECUTED
rc = fat_file_truncate(iop->pathinfo.mt_entry, fat_fd, length);
1328d5: 52 push %edx <== NOT EXECUTED
1328d6: 56 push %esi <== NOT EXECUTED
1328d7: ff 75 c4 pushl -0x3c(%ebp) <== NOT EXECUTED
1328da: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
1328dd: 89 4d d8 mov %ecx,-0x28(%ebp) <== NOT EXECUTED
1328e0: e8 c2 23 ff ff call 124ca7 <fat_file_truncate> <== NOT EXECUTED
1328e5: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc != RC_OK)
1328e7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1328ea: 85 c0 test %eax,%eax <== NOT EXECUTED
1328ec: 8b 4d d8 mov -0x28(%ebp),%ecx <== NOT EXECUTED
1328ef: 75 2a jne 13291b <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)
1328f1: 8b 55 c4 mov -0x3c(%ebp),%edx <== NOT EXECUTED
1328f4: 8b 42 18 mov 0x18(%edx),%eax <== NOT EXECUTED
1328f7: 31 d2 xor %edx,%edx <== NOT EXECUTED
1328f9: 89 45 e0 mov %eax,-0x20(%ebp) <== NOT EXECUTED
1328fc: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED
1328ff: 83 7d dc 00 cmpl $0x0,-0x24(%ebp) <== NOT EXECUTED
132903: 7f 16 jg 13291b <msdos_file_ftruncate+0xb2><== NOT EXECUTED
132905: 7c 04 jl 13290b <msdos_file_ftruncate+0xa2><== NOT EXECUTED
132907: 39 c6 cmp %eax,%esi <== NOT EXECUTED
132909: 73 10 jae 13291b <msdos_file_ftruncate+0xb2><== NOT EXECUTED
iop->size = fat_fd->fat_file_size = length;
13290b: 8b 45 c4 mov -0x3c(%ebp),%eax <== NOT EXECUTED
13290e: 89 70 18 mov %esi,0x18(%eax) <== NOT EXECUTED
132911: 89 73 04 mov %esi,0x4(%ebx) <== NOT EXECUTED
132914: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx) <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
13291b: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13291e: ff b1 94 00 00 00 pushl 0x94(%ecx) <== NOT EXECUTED
132924: e8 cb e3 fd ff call 110cf4 <rtems_semaphore_release><== NOT EXECUTED
return RC_OK;
132929: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
13292c: 89 f8 mov %edi,%eax <== NOT EXECUTED
13292e: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
132931: 5b pop %ebx <== NOT EXECUTED
132932: 5e pop %esi <== NOT EXECUTED
132933: 5f pop %edi <== NOT EXECUTED
132934: c9 leave <== NOT EXECUTED
132935: c3 ret <== NOT EXECUTED
0013260c <msdos_file_ioctl>:
* RETURNS:
*
*/
int
msdos_file_ioctl(rtems_libio_t *iop,uint32_t command, void *buffer)
{
13260c: 55 push %ebp <== NOT EXECUTED
13260d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
int rc = RC_OK;
return rc;
}
13260f: 31 c0 xor %eax,%eax <== NOT EXECUTED
132611: c9 leave <== NOT EXECUTED
132612: c3 ret <== NOT EXECUTED
00132936 <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)
{
132936: 55 push %ebp <== NOT EXECUTED
132937: 89 e5 mov %esp,%ebp <== NOT EXECUTED
132939: 57 push %edi <== NOT EXECUTED
13293a: 56 push %esi <== NOT EXECUTED
13293b: 53 push %ebx <== NOT EXECUTED
13293c: 83 ec 30 sub $0x30,%esp <== NOT EXECUTED
13293f: 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;
132942: 8b 43 28 mov 0x28(%ebx),%eax <== NOT EXECUTED
132945: 8b 78 34 mov 0x34(%eax),%edi <== NOT EXECUTED
fat_file_fd_t *fat_fd = iop->file_info;
132948: 8b 73 38 mov 0x38(%ebx),%esi <== NOT EXECUTED
uint32_t real_size = 0;
13294b: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) <== NOT EXECUTED
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
132952: 6a 00 push $0x0 <== NOT EXECUTED
132954: 6a 00 push $0x0 <== NOT EXECUTED
132956: ff b7 94 00 00 00 pushl 0x94(%edi) <== NOT EXECUTED
13295c: e8 a7 e2 fd ff call 110c08 <rtems_semaphore_obtain><== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
132961: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
132964: 85 c0 test %eax,%eax <== NOT EXECUTED
132966: 74 12 je 13297a <msdos_file_lseek+0x44> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
132968: e8 2b a4 00 00 call 13cd98 <__errno> <== NOT EXECUTED
13296d: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
132973: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
132976: 89 c2 mov %eax,%edx <== NOT EXECUTED
132978: eb 69 jmp 1329e3 <msdos_file_lseek+0xad> <== NOT EXECUTED
rc = fat_file_extend(iop->pathinfo.mt_entry, fat_fd, iop->offset,
13297a: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
13297d: 50 push %eax <== NOT EXECUTED
13297e: ff 73 0c pushl 0xc(%ebx) <== NOT EXECUTED
132981: 56 push %esi <== NOT EXECUTED
132982: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
132985: e8 f7 23 ff ff call 124d81 <fat_file_extend> <== NOT EXECUTED
&real_size);
if (rc != RC_OK)
13298a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13298d: 85 c0 test %eax,%eax <== NOT EXECUTED
13298f: 74 19 je 1329aa <msdos_file_lseek+0x74> <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
132991: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
132994: ff b7 94 00 00 00 pushl 0x94(%edi) <== NOT EXECUTED
13299a: 89 45 d4 mov %eax,-0x2c(%ebp) <== NOT EXECUTED
13299d: e8 52 e3 fd ff call 110cf4 <rtems_semaphore_release><== NOT EXECUTED
return rc;
1329a2: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED
1329a5: 89 d0 mov %edx,%eax <== NOT EXECUTED
1329a7: 99 cltd <== NOT EXECUTED
1329a8: eb 36 jmp 1329e0 <msdos_file_lseek+0xaa> <== NOT EXECUTED
}
if (real_size > fat_fd->fat_file_size)
1329aa: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
1329ad: 3b 46 18 cmp 0x18(%esi),%eax <== NOT EXECUTED
1329b0: 76 0d jbe 1329bf <msdos_file_lseek+0x89> <== NOT EXECUTED
fat_fd->fat_file_size = iop->offset = real_size;
1329b2: 89 43 0c mov %eax,0xc(%ebx) <== NOT EXECUTED
1329b5: c7 43 10 00 00 00 00 movl $0x0,0x10(%ebx) <== NOT EXECUTED
1329bc: 89 46 18 mov %eax,0x18(%esi) <== NOT EXECUTED
iop->size = fat_fd->fat_file_size;
1329bf: 8b 46 18 mov 0x18(%esi),%eax <== NOT EXECUTED
1329c2: 89 43 04 mov %eax,0x4(%ebx) <== NOT EXECUTED
1329c5: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx) <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
1329cc: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1329cf: ff b7 94 00 00 00 pushl 0x94(%edi) <== NOT EXECUTED
1329d5: e8 1a e3 fd ff call 110cf4 <rtems_semaphore_release><== NOT EXECUTED
return iop->offset;
1329da: 8b 43 0c mov 0xc(%ebx),%eax <== NOT EXECUTED
1329dd: 8b 53 10 mov 0x10(%ebx),%edx <== NOT EXECUTED
1329e0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
1329e3: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1329e6: 5b pop %ebx <== NOT EXECUTED
1329e7: 5e pop %esi <== NOT EXECUTED
1329e8: 5f pop %edi <== NOT EXECUTED
1329e9: c9 leave <== NOT EXECUTED
1329ea: c3 ret <== NOT EXECUTED
00132bf3 <msdos_file_open>:
* and errno set appropriately
*/
int
msdos_file_open(rtems_libio_t *iop, const char *pathname, uint32_t flag,
uint32_t mode)
{
132bf3: 55 push %ebp <== NOT EXECUTED
132bf4: 89 e5 mov %esp,%ebp <== NOT EXECUTED
132bf6: 57 push %edi <== NOT EXECUTED
132bf7: 56 push %esi <== NOT EXECUTED
132bf8: 53 push %ebx <== NOT EXECUTED
132bf9: 83 ec 20 sub $0x20,%esp <== NOT EXECUTED
132bfc: 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;
132bff: 8b 43 28 mov 0x28(%ebx),%eax <== NOT EXECUTED
132c02: 8b 78 34 mov 0x34(%eax),%edi <== NOT EXECUTED
fat_file_fd_t *fat_fd = iop->file_info;
132c05: 8b 53 38 mov 0x38(%ebx),%edx <== NOT EXECUTED
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
132c08: 6a 00 push $0x0 <== NOT EXECUTED
132c0a: 6a 00 push $0x0 <== NOT EXECUTED
132c0c: ff b7 94 00 00 00 pushl 0x94(%edi) <== NOT EXECUTED
132c12: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED
132c15: e8 ee df fd ff call 110c08 <rtems_semaphore_obtain><== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
132c1a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
132c1d: 85 c0 test %eax,%eax <== NOT EXECUTED
132c1f: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
132c22: 74 10 je 132c34 <msdos_file_open+0x41> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
132c24: e8 6f a1 00 00 call 13cd98 <__errno> <== NOT EXECUTED
132c29: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
132c2f: 83 ce ff or $0xffffffff,%esi <== NOT EXECUTED
132c32: eb 49 jmp 132c7d <msdos_file_open+0x8a> <== NOT EXECUTED
rc = fat_file_reopen(fat_fd);
132c34: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
132c37: 52 push %edx <== NOT EXECUTED
132c38: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED
132c3b: e8 94 1d ff ff call 1249d4 <fat_file_reopen> <== NOT EXECUTED
132c40: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc != RC_OK)
132c42: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
132c45: 85 c0 test %eax,%eax <== NOT EXECUTED
132c47: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
132c4a: 75 20 jne 132c6c <msdos_file_open+0x79> <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
return rc;
}
if (iop->flags & LIBIO_FLAGS_APPEND)
132c4c: f6 43 15 02 testb $0x2,0x15(%ebx) <== NOT EXECUTED
132c50: 74 0d je 132c5f <msdos_file_open+0x6c> <== NOT EXECUTED
iop->offset = fat_fd->fat_file_size;
132c52: 8b 42 18 mov 0x18(%edx),%eax <== NOT EXECUTED
132c55: 89 43 0c mov %eax,0xc(%ebx) <== NOT EXECUTED
132c58: c7 43 10 00 00 00 00 movl $0x0,0x10(%ebx) <== NOT EXECUTED
iop->size = fat_fd->fat_file_size;
132c5f: 8b 42 18 mov 0x18(%edx),%eax <== NOT EXECUTED
132c62: 89 43 04 mov %eax,0x4(%ebx) <== NOT EXECUTED
132c65: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx) <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
132c6c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
132c6f: ff b7 94 00 00 00 pushl 0x94(%edi) <== NOT EXECUTED
132c75: e8 7a e0 fd ff call 110cf4 <rtems_semaphore_release><== NOT EXECUTED
return RC_OK;
132c7a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
132c7d: 89 f0 mov %esi,%eax <== NOT EXECUTED
132c7f: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
132c82: 5b pop %ebx <== NOT EXECUTED
132c83: 5e pop %esi <== NOT EXECUTED
132c84: 5f pop %edi <== NOT EXECUTED
132c85: c9 leave <== NOT EXECUTED
132c86: c3 ret <== NOT EXECUTED
00132ad2 <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)
{
132ad2: 55 push %ebp <== NOT EXECUTED
132ad3: 89 e5 mov %esp,%ebp <== NOT EXECUTED
132ad5: 57 push %edi <== NOT EXECUTED
132ad6: 56 push %esi <== NOT EXECUTED
132ad7: 53 push %ebx <== NOT EXECUTED
132ad8: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED
132adb: 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;
132ade: 8b 43 28 mov 0x28(%ebx),%eax <== NOT EXECUTED
132ae1: 8b 70 34 mov 0x34(%eax),%esi <== NOT EXECUTED
fat_file_fd_t *fat_fd = iop->file_info;
132ae4: 8b 7b 38 mov 0x38(%ebx),%edi <== NOT EXECUTED
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
132ae7: 6a 00 push $0x0 <== NOT EXECUTED
132ae9: 6a 00 push $0x0 <== NOT EXECUTED
132aeb: ff b6 94 00 00 00 pushl 0x94(%esi) <== NOT EXECUTED
132af1: e8 12 e1 fd ff call 110c08 <rtems_semaphore_obtain><== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
132af6: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
132af9: 85 c0 test %eax,%eax <== NOT EXECUTED
132afb: 74 10 je 132b0d <msdos_file_read+0x3b> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
132afd: e8 96 a2 00 00 call 13cd98 <__errno> <== NOT EXECUTED
132b02: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
132b08: 83 cb ff or $0xffffffff,%ebx <== NOT EXECUTED
132b0b: eb 28 jmp 132b35 <msdos_file_read+0x63> <== NOT EXECUTED
ret = fat_file_read(iop->pathinfo.mt_entry, fat_fd, iop->offset, count,
132b0d: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
132b10: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
132b13: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
132b16: ff 73 0c pushl 0xc(%ebx) <== NOT EXECUTED
132b19: 57 push %edi <== NOT EXECUTED
132b1a: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
132b1d: e8 01 26 ff ff call 125123 <fat_file_read> <== NOT EXECUTED
132b22: 89 c3 mov %eax,%ebx <== NOT EXECUTED
buffer);
rtems_semaphore_release(fs_info->vol_sema);
132b24: 83 c4 14 add $0x14,%esp <== NOT EXECUTED
132b27: ff b6 94 00 00 00 pushl 0x94(%esi) <== NOT EXECUTED
132b2d: e8 c2 e1 fd ff call 110cf4 <rtems_semaphore_release><== NOT EXECUTED
return ret;
132b32: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
132b35: 89 d8 mov %ebx,%eax <== NOT EXECUTED
132b37: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
132b3a: 5b pop %ebx <== NOT EXECUTED
132b3b: 5e pop %esi <== NOT EXECUTED
132b3c: 5f pop %edi <== NOT EXECUTED
132b3d: c9 leave <== NOT EXECUTED
132b3e: c3 ret <== NOT EXECUTED
001326b7 <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)
{
1326b7: 55 push %ebp <== NOT EXECUTED
1326b8: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1326ba: 57 push %edi <== NOT EXECUTED
1326bb: 56 push %esi <== NOT EXECUTED
1326bc: 53 push %ebx <== NOT EXECUTED
1326bd: 83 ec 20 sub $0x20,%esp <== NOT EXECUTED
1326c0: 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;
1326c3: 8b 43 10 mov 0x10(%ebx),%eax <== NOT EXECUTED
1326c6: 8b 78 34 mov 0x34(%eax),%edi <== NOT EXECUTED
fat_file_fd_t *fat_fd = pathloc->node_access;
1326c9: 8b 03 mov (%ebx),%eax <== NOT EXECUTED
1326cb: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
1326ce: 6a 00 push $0x0 <== NOT EXECUTED
1326d0: 6a 00 push $0x0 <== NOT EXECUTED
1326d2: ff b7 94 00 00 00 pushl 0x94(%edi) <== NOT EXECUTED
1326d8: e8 2b e5 fd ff call 110c08 <rtems_semaphore_obtain><== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
1326dd: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1326e0: 85 c0 test %eax,%eax <== NOT EXECUTED
1326e2: 74 10 je 1326f4 <msdos_file_rmnod+0x3d> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
1326e4: e8 af a6 00 00 call 13cd98 <__errno> <== NOT EXECUTED
1326e9: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
1326ef: 83 ce ff or $0xffffffff,%esi <== NOT EXECUTED
1326f2: eb 3f jmp 132733 <msdos_file_rmnod+0x7c> <== NOT EXECUTED
/* mark file removed */
rc = msdos_set_first_char4file_name(pathloc->mt_entry,
1326f4: 51 push %ecx <== NOT EXECUTED
1326f5: 68 e5 00 00 00 push $0xe5 <== NOT EXECUTED
1326fa: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
1326fd: 83 c0 20 add $0x20,%eax <== NOT EXECUTED
132700: 50 push %eax <== NOT EXECUTED
132701: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED
132704: e8 3b 10 00 00 call 133744 <msdos_set_first_char4file_name><== NOT EXECUTED
132709: 89 c6 mov %eax,%esi <== NOT EXECUTED
&fat_fd->dir_pos,
MSDOS_THIS_DIR_ENTRY_EMPTY);
if (rc != RC_OK)
13270b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13270e: 85 c0 test %eax,%eax <== NOT EXECUTED
132710: 74 05 je 132717 <msdos_file_rmnod+0x60> <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
132712: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
132715: eb 0e jmp 132725 <msdos_file_rmnod+0x6e> <== NOT EXECUTED
return rc;
}
fat_file_mark_removed(pathloc->mt_entry, fat_fd);
132717: 52 push %edx <== NOT EXECUTED
132718: 52 push %edx <== NOT EXECUTED
132719: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
13271c: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED
13271f: e8 ac 24 ff ff call 124bd0 <fat_file_mark_removed> <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
132724: 58 pop %eax <== NOT EXECUTED
132725: ff b7 94 00 00 00 pushl 0x94(%edi) <== NOT EXECUTED
13272b: e8 c4 e5 fd ff call 110cf4 <rtems_semaphore_release><== NOT EXECUTED
return RC_OK;
132730: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
132733: 89 f0 mov %esi,%eax <== NOT EXECUTED
132735: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
132738: 5b pop %ebx <== NOT EXECUTED
132739: 5e pop %esi <== NOT EXECUTED
13273a: 5f pop %edi <== NOT EXECUTED
13273b: c9 leave <== NOT EXECUTED
13273c: c3 ret <== NOT EXECUTED
0013261a <msdos_file_stat>:
int
msdos_file_stat(
rtems_filesystem_location_info_t *loc,
struct stat *buf
)
{
13261a: 55 push %ebp <== NOT EXECUTED
13261b: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13261d: 57 push %edi <== NOT EXECUTED
13261e: 56 push %esi <== NOT EXECUTED
13261f: 53 push %ebx <== NOT EXECUTED
132620: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED
132623: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
132626: 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;
132629: 8b 50 10 mov 0x10(%eax),%edx <== NOT EXECUTED
13262c: 8b 72 34 mov 0x34(%edx),%esi <== NOT EXECUTED
fat_file_fd_t *fat_fd = loc->node_access;
13262f: 8b 38 mov (%eax),%edi <== NOT EXECUTED
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
132631: 6a 00 push $0x0 <== NOT EXECUTED
132633: 6a 00 push $0x0 <== NOT EXECUTED
132635: ff b6 94 00 00 00 pushl 0x94(%esi) <== NOT EXECUTED
13263b: e8 c8 e5 fd ff call 110c08 <rtems_semaphore_obtain><== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
132640: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
132643: 85 c0 test %eax,%eax <== NOT EXECUTED
132645: 74 10 je 132657 <msdos_file_stat+0x3d> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
132647: e8 4c a7 00 00 call 13cd98 <__errno> <== NOT EXECUTED
13264c: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
132652: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
132655: eb 58 jmp 1326af <msdos_file_stat+0x95> <== NOT EXECUTED
buf->st_dev = fs_info->fat.vol.dev;
132657: 8b 46 54 mov 0x54(%esi),%eax <== NOT EXECUTED
13265a: 8b 56 58 mov 0x58(%esi),%edx <== NOT EXECUTED
13265d: 89 03 mov %eax,(%ebx) <== NOT EXECUTED
13265f: 89 53 04 mov %edx,0x4(%ebx) <== NOT EXECUTED
buf->st_ino = fat_fd->ino;
132662: 8b 47 0c mov 0xc(%edi),%eax <== NOT EXECUTED
132665: 89 43 08 mov %eax,0x8(%ebx) <== NOT EXECUTED
buf->st_mode = S_IFREG | S_IRWXU | S_IRWXG | S_IRWXO;
132668: c7 43 0c ff 81 00 00 movl $0x81ff,0xc(%ebx) <== NOT EXECUTED
buf->st_rdev = 0ll;
13266f: c7 43 18 00 00 00 00 movl $0x0,0x18(%ebx) <== NOT EXECUTED
132676: c7 43 1c 00 00 00 00 movl $0x0,0x1c(%ebx) <== NOT EXECUTED
buf->st_size = fat_fd->fat_file_size;
13267d: 8b 47 18 mov 0x18(%edi),%eax <== NOT EXECUTED
132680: 89 43 20 mov %eax,0x20(%ebx) <== NOT EXECUTED
132683: c7 43 24 00 00 00 00 movl $0x0,0x24(%ebx) <== NOT EXECUTED
buf->st_blocks = fat_fd->fat_file_size >> FAT_SECTOR512_BITS;
13268a: c1 e8 09 shr $0x9,%eax <== NOT EXECUTED
13268d: 89 43 44 mov %eax,0x44(%ebx) <== NOT EXECUTED
buf->st_blksize = fs_info->fat.vol.bps;
132690: 0f b7 06 movzwl (%esi),%eax <== NOT EXECUTED
132693: 89 43 40 mov %eax,0x40(%ebx) <== NOT EXECUTED
buf->st_mtime = fat_fd->mtime;
132696: 8b 47 40 mov 0x40(%edi),%eax <== NOT EXECUTED
132699: 89 43 30 mov %eax,0x30(%ebx) <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
13269c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13269f: ff b6 94 00 00 00 pushl 0x94(%esi) <== NOT EXECUTED
1326a5: e8 4a e6 fd ff call 110cf4 <rtems_semaphore_release><== NOT EXECUTED
1326aa: 31 c0 xor %eax,%eax <== NOT EXECUTED
return RC_OK;
1326ac: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
1326af: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1326b2: 5b pop %ebx <== NOT EXECUTED
1326b3: 5e pop %esi <== NOT EXECUTED
1326b4: 5f pop %edi <== NOT EXECUTED
1326b5: c9 leave <== NOT EXECUTED
1326b6: c3 ret <== NOT EXECUTED
0013279c <msdos_file_sync>:
* RETURNS:
* RC_OK on success, or -1 if error occured (errno set appropriately)
*/
int
msdos_file_sync(rtems_libio_t *iop)
{
13279c: 55 push %ebp <== NOT EXECUTED
13279d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13279f: 57 push %edi <== NOT EXECUTED
1327a0: 56 push %esi <== NOT EXECUTED
1327a1: 53 push %ebx <== NOT EXECUTED
1327a2: 83 ec 20 sub $0x20,%esp <== NOT EXECUTED
1327a5: 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;
1327a8: 8b 47 38 mov 0x38(%edi),%eax <== NOT EXECUTED
1327ab: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
msdos_fs_info_t *fs_info = iop->pathinfo.mt_entry->fs_info;
1327ae: 8b 47 28 mov 0x28(%edi),%eax <== NOT EXECUTED
1327b1: 8b 70 34 mov 0x34(%eax),%esi <== NOT EXECUTED
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
1327b4: 6a 00 push $0x0 <== NOT EXECUTED
1327b6: 6a 00 push $0x0 <== NOT EXECUTED
1327b8: ff b6 94 00 00 00 pushl 0x94(%esi) <== NOT EXECUTED
1327be: e8 45 e4 fd ff call 110c08 <rtems_semaphore_obtain><== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
1327c3: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1327c6: 85 c0 test %eax,%eax <== NOT EXECUTED
1327c8: 74 13 je 1327dd <msdos_file_sync+0x41> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
1327ca: e8 c9 a5 00 00 call 13cd98 <__errno> <== NOT EXECUTED
1327cf: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
1327d5: 83 cb ff or $0xffffffff,%ebx <== NOT EXECUTED
1327d8: e9 82 00 00 00 jmp 13285f <msdos_file_sync+0xc3> <== NOT EXECUTED
/* synchronize file data */
rc = fat_file_datasync(iop->pathinfo.mt_entry, fat_fd);
1327dd: 50 push %eax <== NOT EXECUTED
1327de: 50 push %eax <== NOT EXECUTED
1327df: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
1327e2: ff 77 28 pushl 0x28(%edi) <== NOT EXECUTED
1327e5: e8 f2 22 ff ff call 124adc <fat_file_datasync> <== NOT EXECUTED
1327ea: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc != RC_OK)
1327ec: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1327ef: 85 c0 test %eax,%eax <== NOT EXECUTED
1327f1: 75 49 jne 13283c <msdos_file_sync+0xa0> <== NOT EXECUTED
/*
* if fat-file descriptor is not marked "removed" - synchronize file
* metadata
*/
if (!FAT_FILE_IS_REMOVED(fat_fd))
1327f3: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
1327f6: f6 40 30 01 testb $0x1,0x30(%eax) <== NOT EXECUTED
1327fa: 75 50 jne 13284c <msdos_file_sync+0xb0> <== NOT EXECUTED
{
rc = msdos_set_first_cluster_num(iop->pathinfo.mt_entry, fat_fd);
1327fc: 53 push %ebx <== NOT EXECUTED
1327fd: 53 push %ebx <== NOT EXECUTED
1327fe: 50 push %eax <== NOT EXECUTED
1327ff: ff 77 28 pushl 0x28(%edi) <== NOT EXECUTED
132802: e8 94 0e 00 00 call 13369b <msdos_set_first_cluster_num><== NOT EXECUTED
132807: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc != RC_OK)
132809: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13280c: 85 c0 test %eax,%eax <== NOT EXECUTED
13280e: 75 2c jne 13283c <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);
132810: 51 push %ecx <== NOT EXECUTED
132811: 51 push %ecx <== NOT EXECUTED
132812: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
132815: ff 77 28 pushl 0x28(%edi) <== NOT EXECUTED
132818: e8 14 0e 00 00 call 133631 <msdos_set_file_size> <== NOT EXECUTED
13281d: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc != RC_OK)
13281f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
132822: 85 c0 test %eax,%eax <== NOT EXECUTED
132824: 75 16 jne 13283c <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);
132826: 52 push %edx <== NOT EXECUTED
132827: 52 push %edx <== NOT EXECUTED
132828: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
13282b: ff 77 28 pushl 0x28(%edi) <== NOT EXECUTED
13282e: e8 09 10 00 00 call 13383c <msdos_set_dir_wrt_time_and_date><== NOT EXECUTED
132833: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc != RC_OK)
132835: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
132838: 85 c0 test %eax,%eax <== NOT EXECUTED
13283a: 74 10 je 13284c <msdos_file_sync+0xb0> <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
13283c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13283f: ff b6 94 00 00 00 pushl 0x94(%esi) <== NOT EXECUTED
132845: e8 aa e4 fd ff call 110cf4 <rtems_semaphore_release><== NOT EXECUTED
13284a: eb 10 jmp 13285c <msdos_file_sync+0xc0> <== NOT EXECUTED
return rc;
}
}
rtems_semaphore_release(fs_info->vol_sema);
13284c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13284f: ff b6 94 00 00 00 pushl 0x94(%esi) <== NOT EXECUTED
132855: e8 9a e4 fd ff call 110cf4 <rtems_semaphore_release><== NOT EXECUTED
13285a: 31 db xor %ebx,%ebx <== NOT EXECUTED
return RC_OK;
13285c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
13285f: 89 d8 mov %ebx,%eax <== NOT EXECUTED
132861: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
132864: 5b pop %ebx <== NOT EXECUTED
132865: 5e pop %esi <== NOT EXECUTED
132866: 5f pop %edi <== NOT EXECUTED
132867: c9 leave <== NOT EXECUTED
132868: c3 ret <== NOT EXECUTED
001329eb <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)
{
1329eb: 55 push %ebp <== NOT EXECUTED
1329ec: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1329ee: 57 push %edi <== NOT EXECUTED
1329ef: 56 push %esi <== NOT EXECUTED
1329f0: 53 push %ebx <== NOT EXECUTED
1329f1: 83 ec 30 sub $0x30,%esp <== NOT EXECUTED
1329f4: 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;
1329f7: 8b 46 28 mov 0x28(%esi),%eax <== NOT EXECUTED
1329fa: 8b 48 34 mov 0x34(%eax),%ecx <== NOT EXECUTED
fat_file_fd_t *fat_fd = iop->file_info;
1329fd: 8b 7e 38 mov 0x38(%esi),%edi <== NOT EXECUTED
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
132a00: 6a 00 push $0x0 <== NOT EXECUTED
132a02: 6a 00 push $0x0 <== NOT EXECUTED
132a04: ff b1 94 00 00 00 pushl 0x94(%ecx) <== NOT EXECUTED
132a0a: 89 4d cc mov %ecx,-0x34(%ebp) <== NOT EXECUTED
132a0d: e8 f6 e1 fd ff call 110c08 <rtems_semaphore_obtain><== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
132a12: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
132a15: 85 c0 test %eax,%eax <== NOT EXECUTED
132a17: 8b 4d cc mov -0x34(%ebp),%ecx <== NOT EXECUTED
132a1a: 74 13 je 132a2f <msdos_file_write+0x44> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
132a1c: e8 77 a3 00 00 call 13cd98 <__errno> <== NOT EXECUTED
132a21: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
132a27: 83 cb ff or $0xffffffff,%ebx <== NOT EXECUTED
132a2a: e9 99 00 00 00 jmp 132ac8 <msdos_file_write+0xdd> <== NOT EXECUTED
ret = fat_file_write(iop->pathinfo.mt_entry, fat_fd, iop->offset, count,
132a2f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
132a32: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
132a35: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
132a38: ff 76 0c pushl 0xc(%esi) <== NOT EXECUTED
132a3b: 57 push %edi <== NOT EXECUTED
132a3c: ff 76 28 pushl 0x28(%esi) <== NOT EXECUTED
132a3f: 89 4d cc mov %ecx,-0x34(%ebp) <== NOT EXECUTED
132a42: e8 da 24 ff ff call 124f21 <fat_file_write> <== NOT EXECUTED
132a47: 89 c3 mov %eax,%ebx <== NOT EXECUTED
buffer);
if (ret < 0)
132a49: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
132a4c: 85 c0 test %eax,%eax <== NOT EXECUTED
132a4e: 8b 4d cc mov -0x34(%ebp),%ecx <== NOT EXECUTED
132a51: 79 13 jns 132a66 <msdos_file_write+0x7b> <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
132a53: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
132a56: ff b1 94 00 00 00 pushl 0x94(%ecx) <== NOT EXECUTED
132a5c: e8 93 e2 fd ff call 110cf4 <rtems_semaphore_release><== NOT EXECUTED
132a61: 83 cb ff or $0xffffffff,%ebx <== NOT EXECUTED
132a64: eb 5f jmp 132ac5 <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)
132a66: 8b 46 0c mov 0xc(%esi),%eax <== NOT EXECUTED
132a69: 8b 56 10 mov 0x10(%esi),%edx <== NOT EXECUTED
132a6c: 89 45 d8 mov %eax,-0x28(%ebp) <== NOT EXECUTED
132a6f: 89 55 dc mov %edx,-0x24(%ebp) <== NOT EXECUTED
132a72: 89 5d e0 mov %ebx,-0x20(%ebp) <== NOT EXECUTED
132a75: 89 da mov %ebx,%edx <== NOT EXECUTED
132a77: c1 fa 1f sar $0x1f,%edx <== NOT EXECUTED
132a7a: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED
132a7d: 8b 45 d8 mov -0x28(%ebp),%eax <== NOT EXECUTED
132a80: 8b 55 dc mov -0x24(%ebp),%edx <== NOT EXECUTED
132a83: 01 45 e0 add %eax,-0x20(%ebp) <== NOT EXECUTED
132a86: 11 55 e4 adc %edx,-0x1c(%ebp) <== NOT EXECUTED
132a89: 8b 47 18 mov 0x18(%edi),%eax <== NOT EXECUTED
132a8c: 31 d2 xor %edx,%edx <== NOT EXECUTED
132a8e: 89 45 d0 mov %eax,-0x30(%ebp) <== NOT EXECUTED
132a91: 89 55 d4 mov %edx,-0x2c(%ebp) <== NOT EXECUTED
132a94: 83 7d e4 00 cmpl $0x0,-0x1c(%ebp) <== NOT EXECUTED
132a98: 7c 10 jl 132aaa <msdos_file_write+0xbf> <== NOT EXECUTED
132a9a: 7f 05 jg 132aa1 <msdos_file_write+0xb6> <== NOT EXECUTED
132a9c: 39 45 e0 cmp %eax,-0x20(%ebp) <== NOT EXECUTED
132a9f: 76 09 jbe 132aaa <msdos_file_write+0xbf> <== NOT EXECUTED
fat_fd->fat_file_size = iop->offset + ret;
132aa1: 8b 55 d8 mov -0x28(%ebp),%edx <== NOT EXECUTED
132aa4: 8d 04 13 lea (%ebx,%edx,1),%eax <== NOT EXECUTED
132aa7: 89 47 18 mov %eax,0x18(%edi) <== NOT EXECUTED
iop->size = fat_fd->fat_file_size;
132aaa: 8b 47 18 mov 0x18(%edi),%eax <== NOT EXECUTED
132aad: 89 46 04 mov %eax,0x4(%esi) <== NOT EXECUTED
132ab0: c7 46 08 00 00 00 00 movl $0x0,0x8(%esi) <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
132ab7: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
132aba: ff b1 94 00 00 00 pushl 0x94(%ecx) <== NOT EXECUTED
132ac0: e8 2f e2 fd ff call 110cf4 <rtems_semaphore_release><== NOT EXECUTED
return ret;
132ac5: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
132ac8: 89 d8 mov %ebx,%eax <== NOT EXECUTED
132aca: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
132acd: 5b pop %ebx <== NOT EXECUTED
132ace: 5e pop %esi <== NOT EXECUTED
132acf: 5f pop %edi <== NOT EXECUTED
132ad0: c9 leave <== NOT EXECUTED
132ad1: c3 ret <== NOT EXECUTED
0013b721 <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)
{
13b721: 55 push %ebp <== NOT EXECUTED
13b722: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13b724: 57 push %edi <== NOT EXECUTED
13b725: 56 push %esi <== NOT EXECUTED
13b726: 53 push %ebx <== NOT EXECUTED
13b727: 83 ec 04 sub $0x4,%esp <== NOT EXECUTED
13b72a: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
13b72d: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
13b730: 8b 4d 10 mov 0x10(%ebp),%ecx <== NOT EXECUTED
13b733: 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] = ' ';
13b735: 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++)
13b739: 43 inc %ebx <== NOT EXECUTED
13b73a: 83 fb 0b cmp $0xb,%ebx <== NOT EXECUTED
13b73d: 75 f6 jne 13b735 <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) {
13b73f: 80 3a 2e cmpb $0x2e,(%edx) <== NOT EXECUTED
13b742: 0f 94 c3 sete %bl <== NOT EXECUTED
13b745: 83 f8 01 cmp $0x1,%eax <== NOT EXECUTED
13b748: 75 0c jne 13b756 <msdos_filename_unix2dos+0x35><== NOT EXECUTED
13b74a: 84 db test %bl,%bl <== NOT EXECUTED
13b74c: 74 25 je 13b773 <msdos_filename_unix2dos+0x52><== NOT EXECUTED
dn[0] = '.';
13b74e: c6 01 2e movb $0x2e,(%ecx) <== NOT EXECUTED
return 0;
13b751: e9 a0 00 00 00 jmp 13b7f6 <msdos_filename_unix2dos+0xd5><== NOT EXECUTED
}
if (un[0] == '.' && un[1] == '.' && unlen == 2) {
13b756: 84 db test %bl,%bl <== NOT EXECUTED
13b758: 74 19 je 13b773 <msdos_filename_unix2dos+0x52><== NOT EXECUTED
13b75a: 80 7a 01 2e cmpb $0x2e,0x1(%edx) <== NOT EXECUTED
13b75e: 75 13 jne 13b773 <msdos_filename_unix2dos+0x52><== NOT EXECUTED
13b760: 83 f8 02 cmp $0x2,%eax <== NOT EXECUTED
13b763: 75 0e jne 13b773 <msdos_filename_unix2dos+0x52><== NOT EXECUTED
dn[0] = '.';
13b765: c6 01 2e movb $0x2e,(%ecx) <== NOT EXECUTED
dn[1] = '.';
13b768: c6 41 01 2e movb $0x2e,0x1(%ecx) <== NOT EXECUTED
return 0;
13b76c: e9 85 00 00 00 jmp 13b7f6 <msdos_filename_unix2dos+0xd5><== NOT EXECUTED
/*
* Remove any dots from the start of a file name.
*/
while (unlen && (*un == '.')) {
un++;
13b771: 42 inc %edx <== NOT EXECUTED
unlen--;
13b772: 48 dec %eax <== NOT EXECUTED
}
/*
* Remove any dots from the start of a file name.
*/
while (unlen && (*un == '.')) {
13b773: 85 c0 test %eax,%eax <== NOT EXECUTED
13b775: 75 04 jne 13b77b <msdos_filename_unix2dos+0x5a><== NOT EXECUTED
13b777: 31 ff xor %edi,%edi <== NOT EXECUTED
13b779: eb 1e jmp 13b799 <msdos_filename_unix2dos+0x78><== NOT EXECUTED
13b77b: 80 3a 2e cmpb $0x2e,(%edx) <== NOT EXECUTED
13b77e: 74 f1 je 13b771 <msdos_filename_unix2dos+0x50><== NOT EXECUTED
13b780: eb f5 jmp 13b777 <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)
13b782: 0f b6 75 f3 movzbl -0xd(%ebp),%esi <== NOT EXECUTED
13b786: 0f b6 b6 d8 db 15 00 movzbl 0x15dbd8(%esi),%esi <== NOT EXECUTED
13b78d: 89 f3 mov %esi,%ebx <== NOT EXECUTED
13b78f: 84 db test %bl,%bl <== NOT EXECUTED
13b791: 74 26 je 13b7b9 <msdos_filename_unix2dos+0x98><== NOT EXECUTED
break;
dn[i] = msdos_map[c];
13b793: 88 1c 39 mov %bl,(%ecx,%edi,1) <== NOT EXECUTED
un++;
13b796: 42 inc %edx <== NOT EXECUTED
unlen--;
13b797: 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++) {
13b798: 47 inc %edi <== NOT EXECUTED
13b799: 85 c0 test %eax,%eax <== NOT EXECUTED
13b79b: 74 26 je 13b7c3 <msdos_filename_unix2dos+0xa2><== NOT EXECUTED
13b79d: 83 ff 07 cmp $0x7,%edi <== NOT EXECUTED
13b7a0: 7f 17 jg 13b7b9 <msdos_filename_unix2dos+0x98><== NOT EXECUTED
13b7a2: 8a 1a mov (%edx),%bl <== NOT EXECUTED
13b7a4: 88 5d f3 mov %bl,-0xd(%ebp) <== NOT EXECUTED
13b7a7: 84 db test %bl,%bl <== NOT EXECUTED
13b7a9: 74 0e je 13b7b9 <msdos_filename_unix2dos+0x98><== NOT EXECUTED
13b7ab: 80 fb 2e cmp $0x2e,%bl <== NOT EXECUTED
13b7ae: 75 d2 jne 13b782 <msdos_filename_unix2dos+0x61><== NOT EXECUTED
13b7b0: eb 07 jmp 13b7b9 <msdos_filename_unix2dos+0x98><== NOT EXECUTED
/*
* Strip any further characters up to a '.' or the end of the
* string.
*/
while (unlen && (c = *un)) {
un++;
13b7b2: 42 inc %edx <== NOT EXECUTED
unlen--;
13b7b3: 48 dec %eax <== NOT EXECUTED
/* Make sure we've skipped over the dot before stopping. */
if (c == '.')
13b7b4: 80 fb 2e cmp $0x2e,%bl <== NOT EXECUTED
13b7b7: 74 0a je 13b7c3 <msdos_filename_unix2dos+0xa2><== NOT EXECUTED
/*
* Strip any further characters up to a '.' or the end of the
* string.
*/
while (unlen && (c = *un)) {
13b7b9: 85 c0 test %eax,%eax <== NOT EXECUTED
13b7bb: 74 06 je 13b7c3 <msdos_filename_unix2dos+0xa2><== NOT EXECUTED
13b7bd: 8a 1a mov (%edx),%bl <== NOT EXECUTED
13b7bf: 84 db test %bl,%bl <== NOT EXECUTED
13b7c1: 75 ef jne 13b7b2 <msdos_filename_unix2dos+0x91><== NOT EXECUTED
13b7c3: bf 08 00 00 00 mov $0x8,%edi <== NOT EXECUTED
13b7c8: eb 18 jmp 13b7e2 <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)
13b7ca: 81 e6 ff 00 00 00 and $0xff,%esi <== NOT EXECUTED
13b7d0: 0f b6 b6 d8 db 15 00 movzbl 0x15dbd8(%esi),%esi <== NOT EXECUTED
13b7d7: 89 f3 mov %esi,%ebx <== NOT EXECUTED
13b7d9: 84 db test %bl,%bl <== NOT EXECUTED
13b7db: 74 19 je 13b7f6 <msdos_filename_unix2dos+0xd5><== NOT EXECUTED
break;
dn[i] = msdos_map[c];
13b7dd: 88 1c 39 mov %bl,(%ecx,%edi,1) <== NOT EXECUTED
un++;
unlen--;
13b7e0: 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++) {
13b7e1: 47 inc %edi <== NOT EXECUTED
13b7e2: 85 c0 test %eax,%eax <== NOT EXECUTED
13b7e4: 74 10 je 13b7f6 <msdos_filename_unix2dos+0xd5><== NOT EXECUTED
13b7e6: 83 ff 0a cmp $0xa,%edi <== NOT EXECUTED
13b7e9: 7f 0b jg 13b7f6 <msdos_filename_unix2dos+0xd5><== NOT EXECUTED
13b7eb: 0f b6 74 3a f8 movzbl -0x8(%edx,%edi,1),%esi <== NOT EXECUTED
13b7f0: 89 f3 mov %esi,%ebx <== NOT EXECUTED
13b7f2: 84 db test %bl,%bl <== NOT EXECUTED
13b7f4: 75 d4 jne 13b7ca <msdos_filename_unix2dos+0xa9><== NOT EXECUTED
dn[i] = msdos_map[c];
un++;
unlen--;
}
return 0;
}
13b7f6: 31 c0 xor %eax,%eax <== NOT EXECUTED
13b7f8: 59 pop %ecx <== NOT EXECUTED
13b7f9: 5b pop %ebx <== NOT EXECUTED
13b7fa: 5e pop %esi <== NOT EXECUTED
13b7fb: 5f pop %edi <== NOT EXECUTED
13b7fc: c9 leave <== NOT EXECUTED
13b7fd: c3 ret <== NOT EXECUTED
00133e1b <msdos_find_name>:
msdos_find_name(
rtems_filesystem_location_info_t *parent_loc,
const char *name,
int name_len
)
{
133e1b: 55 push %ebp <== NOT EXECUTED
133e1c: 89 e5 mov %esp,%ebp <== NOT EXECUTED
133e1e: 57 push %edi <== NOT EXECUTED
133e1f: 56 push %esi <== NOT EXECUTED
133e20: 53 push %ebx <== NOT EXECUTED
133e21: 83 ec 5c sub $0x5c,%esp <== NOT EXECUTED
133e24: 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;
133e27: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
133e2a: 8b 41 10 mov 0x10(%ecx),%eax <== NOT EXECUTED
133e2d: 8b 40 34 mov 0x34(%eax),%eax <== NOT EXECUTED
133e30: 89 45 a4 mov %eax,-0x5c(%ebp) <== NOT EXECUTED
fat_file_fd_t *fat_fd = NULL;
133e33: 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);
133e3a: 8d 5d b4 lea -0x4c(%ebp),%ebx <== NOT EXECUTED
133e3d: b9 08 00 00 00 mov $0x8,%ecx <== NOT EXECUTED
133e42: 31 c0 xor %eax,%eax <== NOT EXECUTED
133e44: 89 df mov %ebx,%edi <== NOT EXECUTED
133e46: f3 ab rep stos %eax,%es:(%edi) <== NOT EXECUTED
name_type = msdos_long_to_short (name,
133e48: 6a 0b push $0xb <== NOT EXECUTED
133e4a: 53 push %ebx <== NOT EXECUTED
133e4b: 52 push %edx <== NOT EXECUTED
133e4c: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
133e4f: 89 55 a0 mov %edx,-0x60(%ebp) <== NOT EXECUTED
133e52: e8 93 fb ff ff call 1339ea <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,
133e57: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
133e5a: 53 push %ebx <== NOT EXECUTED
133e5b: 8d 75 d4 lea -0x2c(%ebp),%esi <== NOT EXECUTED
133e5e: 56 push %esi <== NOT EXECUTED
133e5f: 50 push %eax <== NOT EXECUTED
133e60: 8b 55 a0 mov -0x60(%ebp),%edx <== NOT EXECUTED
133e63: 52 push %edx <== NOT EXECUTED
133e64: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
133e67: 6a 00 push $0x0 <== NOT EXECUTED
133e69: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
133e6c: e8 de fe ff ff call 133d4f <msdos_get_name_node> <== NOT EXECUTED
133e71: 89 c7 mov %eax,%edi <== NOT EXECUTED
&dir_pos, node_entry);
if (rc != RC_OK)
133e73: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
133e76: 85 c0 test %eax,%eax <== NOT EXECUTED
133e78: 0f 85 33 01 00 00 jne 133fb1 <msdos_find_name+0x196> <== NOT EXECUTED
return rc;
if (((*MSDOS_DIR_ATTR(node_entry)) & MSDOS_ATTR_VOLUME_ID) ||
133e7e: 0f b6 45 bf movzbl -0x41(%ebp),%eax <== NOT EXECUTED
133e82: a8 08 test $0x8,%al <== NOT EXECUTED
133e84: 0f 85 22 01 00 00 jne 133fac <msdos_find_name+0x191> <== NOT EXECUTED
133e8a: 83 e0 3f and $0x3f,%eax <== NOT EXECUTED
133e8d: 83 f8 0f cmp $0xf,%eax <== NOT EXECUTED
133e90: 0f 84 16 01 00 00 je 133fac <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);
133e96: 50 push %eax <== NOT EXECUTED
133e97: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
133e9a: 50 push %eax <== NOT EXECUTED
133e9b: 56 push %esi <== NOT EXECUTED
133e9c: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
133e9f: ff 70 10 pushl 0x10(%eax) <== NOT EXECUTED
133ea2: e8 dd 14 ff ff call 125384 <fat_file_open> <== NOT EXECUTED
133ea7: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc != RC_OK)
133ea9: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
133eac: 85 c0 test %eax,%eax <== NOT EXECUTED
133eae: 0f 85 fd 00 00 00 jne 133fb1 <msdos_find_name+0x196> <== NOT EXECUTED
return rc;
fat_fd->dir_pos = dir_pos;
133eb4: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
133eb7: 8d 7a 20 lea 0x20(%edx),%edi <== NOT EXECUTED
133eba: b9 04 00 00 00 mov $0x4,%ecx <== NOT EXECUTED
133ebf: 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)
133ec1: 83 7a 08 01 cmpl $0x1,0x8(%edx) <== NOT EXECUTED
133ec5: 0f 85 aa 00 00 00 jne 133f75 <msdos_find_name+0x15a> <== NOT EXECUTED
{
fat_fd->cln = MSDOS_EXTRACT_CLUSTER_NUM(node_entry);
133ecb: 0f b7 43 14 movzwl 0x14(%ebx),%eax <== NOT EXECUTED
133ecf: c1 e0 10 shl $0x10,%eax <== NOT EXECUTED
133ed2: 0f b7 4b 1a movzwl 0x1a(%ebx),%ecx <== NOT EXECUTED
133ed6: 09 c8 or %ecx,%eax <== NOT EXECUTED
133ed8: 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));
133edb: 57 push %edi <== NOT EXECUTED
133edc: 57 push %edi <== NOT EXECUTED
133edd: 0f b7 43 16 movzwl 0x16(%ebx),%eax <== NOT EXECUTED
133ee1: 50 push %eax <== NOT EXECUTED
133ee2: 0f b7 43 18 movzwl 0x18(%ebx),%eax <== NOT EXECUTED
133ee6: 50 push %eax <== NOT EXECUTED
133ee7: 89 55 a0 mov %edx,-0x60(%ebp) <== NOT EXECUTED
133eea: e8 6c 77 00 00 call 13b65b <msdos_date_dos2unix> <== NOT EXECUTED
133eef: 8b 55 a0 mov -0x60(%ebp),%edx <== NOT EXECUTED
133ef2: 89 42 40 mov %eax,0x40(%edx) <== NOT EXECUTED
if ((*MSDOS_DIR_ATTR(node_entry)) & MSDOS_ATTR_DIRECTORY)
133ef5: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
133ef8: f6 45 bf 10 testb $0x10,-0x41(%ebp) <== NOT EXECUTED
133efc: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
133eff: 74 32 je 133f33 <msdos_find_name+0x118> <== NOT EXECUTED
{
fat_fd->fat_file_type = FAT_DIRECTORY;
133f01: c7 40 10 01 00 00 00 movl $0x1,0x10(%eax) <== NOT EXECUTED
fat_fd->size_limit = MSDOS_MAX_DIR_LENGHT;
133f08: c7 40 14 00 00 20 00 movl $0x200000,0x14(%eax) <== NOT EXECUTED
rc = fat_file_size(parent_loc->mt_entry, fat_fd);
133f0f: 56 push %esi <== NOT EXECUTED
133f10: 56 push %esi <== NOT EXECUTED
133f11: 50 push %eax <== NOT EXECUTED
133f12: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
133f15: ff 72 10 pushl 0x10(%edx) <== NOT EXECUTED
133f18: e8 c4 0a ff ff call 1249e1 <fat_file_size> <== NOT EXECUTED
133f1d: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc != RC_OK)
133f1f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
133f22: 85 c0 test %eax,%eax <== NOT EXECUTED
133f24: 74 21 je 133f47 <msdos_find_name+0x12c> <== NOT EXECUTED
{
fat_file_close(parent_loc->mt_entry, fat_fd);
133f26: 53 push %ebx <== NOT EXECUTED
133f27: 53 push %ebx <== NOT EXECUTED
133f28: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
133f2b: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
133f2e: ff 71 10 pushl 0x10(%ecx) <== NOT EXECUTED
133f31: eb 65 jmp 133f98 <msdos_find_name+0x17d> <== NOT EXECUTED
return rc;
}
}
else
{
fat_fd->fat_file_size = CF_LE_L(*MSDOS_DIR_FILE_SIZE(node_entry));
133f33: 8b 53 1c mov 0x1c(%ebx),%edx <== NOT EXECUTED
133f36: 89 50 18 mov %edx,0x18(%eax) <== NOT EXECUTED
fat_fd->fat_file_type = FAT_FILE;
133f39: c7 40 10 05 00 00 00 movl $0x5,0x10(%eax) <== NOT EXECUTED
fat_fd->size_limit = MSDOS_MAX_FILE_SIZE;
133f40: 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;
133f47: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
133f4a: c7 40 34 00 00 00 00 movl $0x0,0x34(%eax) <== NOT EXECUTED
fat_fd->map.disk_cln = fat_fd->cln;
133f51: 8b 50 1c mov 0x1c(%eax),%edx <== NOT EXECUTED
133f54: 89 50 38 mov %edx,0x38(%eax) <== NOT EXECUTED
if ((fat_fd->fat_file_size != 0) &&
133f57: 8b 48 18 mov 0x18(%eax),%ecx <== NOT EXECUTED
133f5a: 85 c9 test %ecx,%ecx <== NOT EXECUTED
133f5c: 74 10 je 133f6e <msdos_find_name+0x153> <== NOT EXECUTED
(fat_fd->fat_file_size <= fs_info->fat.vol.bpc))
133f5e: 8b 75 a4 mov -0x5c(%ebp),%esi <== NOT EXECUTED
133f61: 0f b7 5e 06 movzwl 0x6(%esi),%ebx <== NOT EXECUTED
133f65: 39 d9 cmp %ebx,%ecx <== NOT EXECUTED
133f67: 77 05 ja 133f6e <msdos_find_name+0x153> <== NOT EXECUTED
{
fat_fd->map.last_cln = fat_fd->cln;
133f69: 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) &&
133f6c: eb 07 jmp 133f75 <msdos_find_name+0x15a> <== NOT EXECUTED
{
fat_fd->map.last_cln = fat_fd->cln;
}
else
{
fat_fd->map.last_cln = FAT_UNDEFINED_VALUE;
133f6e: 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);
133f75: 51 push %ecx <== NOT EXECUTED
133f76: 51 push %ecx <== NOT EXECUTED
133f77: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
133f7a: ff 30 pushl (%eax) <== NOT EXECUTED
133f7c: ff 70 10 pushl 0x10(%eax) <== NOT EXECUTED
133f7f: e8 51 13 ff ff call 1252d5 <fat_file_close> <== NOT EXECUTED
133f84: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc != RC_OK)
133f86: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
133f89: 85 c0 test %eax,%eax <== NOT EXECUTED
133f8b: 74 15 je 133fa2 <msdos_find_name+0x187> <== NOT EXECUTED
{
fat_file_close(parent_loc->mt_entry, fat_fd);
133f8d: 52 push %edx <== NOT EXECUTED
133f8e: 52 push %edx <== NOT EXECUTED
133f8f: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
133f92: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
133f95: ff 72 10 pushl 0x10(%edx) <== NOT EXECUTED
133f98: e8 38 13 ff ff call 1252d5 <fat_file_close> <== NOT EXECUTED
return rc;
133f9d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
133fa0: eb 0f jmp 133fb1 <msdos_find_name+0x196> <== NOT EXECUTED
}
/* update node_info_ptr field */
parent_loc->node_access = fat_fd;
133fa2: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
133fa5: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
133fa8: 89 01 mov %eax,(%ecx) <== NOT EXECUTED
return rc;
133faa: eb 05 jmp 133fb1 <msdos_find_name+0x196> <== NOT EXECUTED
133fac: bf 01 7d 00 00 mov $0x7d01,%edi <== NOT EXECUTED
}
133fb1: 89 f8 mov %edi,%eax <== NOT EXECUTED
133fb3: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
133fb6: 5b pop %ebx <== NOT EXECUTED
133fb7: 5e pop %esi <== NOT EXECUTED
133fb8: 5f pop %edi <== NOT EXECUTED
133fb9: c9 leave <== NOT EXECUTED
133fba: c3 ret <== NOT EXECUTED
00132e67 <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
)
{
132e67: 55 push %ebp <== NOT EXECUTED
132e68: 89 e5 mov %esp,%ebp <== NOT EXECUTED
132e6a: 57 push %edi <== NOT EXECUTED
132e6b: 56 push %esi <== NOT EXECUTED
132e6c: 53 push %ebx <== NOT EXECUTED
132e6d: 83 ec 7c sub $0x7c,%esp <== NOT EXECUTED
132e70: 8a 45 10 mov 0x10(%ebp),%al <== NOT EXECUTED
132e73: 88 45 d0 mov %al,-0x30(%ebp) <== NOT EXECUTED
ssize_t ret = 0;
msdos_fs_info_t *fs_info = mt_entry->fs_info;
132e76: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
132e79: 8b 52 34 mov 0x34(%edx),%edx <== NOT EXECUTED
132e7c: 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);
132e7f: 83 7d 18 00 cmpl $0x0,0x18(%ebp) <== NOT EXECUTED
132e83: 7f 14 jg 132e99 <msdos_find_name_in_fat_file+0x32><== NOT EXECUTED
132e85: 68 37 cc 15 00 push $0x15cc37 <== NOT EXECUTED
132e8a: 68 c0 cc 15 00 push $0x15ccc0 <== NOT EXECUTED
132e8f: 68 19 04 00 00 push $0x419 <== NOT EXECUTED
132e94: e9 cf 00 00 00 jmp 132f68 <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;
132e99: 8b 4d 20 mov 0x20(%ebp),%ecx <== NOT EXECUTED
132e9c: c7 01 00 00 00 00 movl $0x0,(%ecx) <== NOT EXECUTED
dir_pos->sname.ofs = 0;
132ea2: c7 41 04 00 00 00 00 movl $0x0,0x4(%ecx) <== NOT EXECUTED
dir_pos->lname.cln = FAT_FILE_SHORT_NAME;
132ea9: c7 41 08 ff ff ff ff movl $0xffffffff,0x8(%ecx) <== NOT EXECUTED
dir_pos->lname.ofs = FAT_FILE_SHORT_NAME;
132eb0: 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))
132eb7: 80 7d d0 00 cmpb $0x0,-0x30(%ebp) <== NOT EXECUTED
132ebb: 74 0d je 132eca <msdos_find_name_in_fat_file+0x63><== NOT EXECUTED
132ebd: c7 45 b4 00 00 00 00 movl $0x0,-0x4c(%ebp) <== NOT EXECUTED
132ec4: 83 7d 1c 01 cmpl $0x1,0x1c(%ebp) <== NOT EXECUTED
132ec8: 74 13 je 132edd <msdos_find_name_in_fat_file+0x76><== NOT EXECUTED
lfn_entries = 0;
else
lfn_entries =
132eca: 8b 55 18 mov 0x18(%ebp),%edx <== NOT EXECUTED
132ecd: 83 c2 0c add $0xc,%edx <== NOT EXECUTED
132ed0: b9 0d 00 00 00 mov $0xd,%ecx <== NOT EXECUTED
132ed5: 89 d0 mov %edx,%eax <== NOT EXECUTED
132ed7: 99 cltd <== NOT EXECUTED
132ed8: f7 f9 idiv %ecx <== NOT EXECUTED
132eda: 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) &&
132edd: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
132ee0: 83 7a 20 01 cmpl $0x1,0x20(%edx) <== NOT EXECUTED
132ee4: 75 17 jne 132efd <msdos_find_name_in_fat_file+0x96><== NOT EXECUTED
132ee6: 83 7a 24 00 cmpl $0x0,0x24(%edx) <== NOT EXECUTED
132eea: 75 11 jne 132efd <msdos_find_name_in_fat_file+0x96><== NOT EXECUTED
(fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16)))
132eec: 8b 4d b0 mov -0x50(%ebp),%ecx <== NOT EXECUTED
132eef: f6 41 0a 03 testb $0x3,0xa(%ecx) <== NOT EXECUTED
132ef3: 74 08 je 132efd <msdos_find_name_in_fat_file+0x96><== NOT EXECUTED
bts2rd = fat_fd->fat_file_size;
132ef5: 8b 72 18 mov 0x18(%edx),%esi <== NOT EXECUTED
132ef8: 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) &&
132efb: eb 0a jmp 132f07 <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;
132efd: 8b 7d b0 mov -0x50(%ebp),%edi <== NOT EXECUTED
132f00: 0f b7 7f 06 movzwl 0x6(%edi),%edi <== NOT EXECUTED
132f04: 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;
132f07: c7 45 e0 ff ff ff ff movl $0xffffffff,-0x20(%ebp) <== NOT EXECUTED
132f0e: c7 45 dc ff ff ff ff movl $0xffffffff,-0x24(%ebp) <== NOT EXECUTED
132f15: c7 45 ac 00 00 00 00 movl $0x0,-0x54(%ebp) <== NOT EXECUTED
132f1c: c6 45 9c 00 movb $0x0,-0x64(%ebp) <== NOT EXECUTED
132f20: 31 db xor %ebx,%ebx <== NOT EXECUTED
132f22: c7 45 a8 00 00 00 00 movl $0x0,-0x58(%ebp) <== NOT EXECUTED
132f29: c7 45 a4 00 00 00 00 movl $0x0,-0x5c(%ebp) <== NOT EXECUTED
132f30: 31 ff xor %edi,%edi <== NOT EXECUTED
132f32: c6 45 9b 00 movb $0x0,-0x65(%ebp) <== NOT EXECUTED
132f36: 31 d2 xor %edx,%edx <== NOT EXECUTED
132f38: 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))
132f3f: 8b 45 b4 mov -0x4c(%ebp),%eax <== NOT EXECUTED
132f42: 40 inc %eax <== NOT EXECUTED
132f43: 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),
132f46: e9 9e 02 00 00 jmp 1331e9 <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)
132f4b: 83 f8 1f cmp $0x1f,%eax <== NOT EXECUTED
132f4e: 0f 8e bc 05 00 00 jle 133510 <msdos_find_name_in_fat_file+0x6a9><== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
assert(ret == bts2rd);
132f54: 3b 45 d4 cmp -0x2c(%ebp),%eax <== NOT EXECUTED
132f57: 74 19 je 132f72 <msdos_find_name_in_fat_file+0x10b><== NOT EXECUTED
132f59: 68 d8 cb 15 00 push $0x15cbd8 <== NOT EXECUTED
132f5e: 68 c0 cc 15 00 push $0x15ccc0 <== NOT EXECUTED
132f63: 68 49 04 00 00 push $0x449 <== NOT EXECUTED
132f68: 68 e6 cb 15 00 push $0x15cbe6 <== NOT EXECUTED
132f6d: e8 3e 99 fd ff call 10c8b0 <__assert_func> <== NOT EXECUTED
132f72: 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;
132f74: 8b 45 b0 mov -0x50(%ebp),%eax <== NOT EXECUTED
132f77: 8b b0 98 00 00 00 mov 0x98(%eax),%esi <== NOT EXECUTED
132f7d: 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) ==
132f7f: 89 75 b8 mov %esi,-0x48(%ebp) <== NOT EXECUTED
132f82: 8a 06 mov (%esi),%al <== NOT EXECUTED
132f84: 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)
132f87: 85 db test %ebx,%ebx <== NOT EXECUTED
132f89: 75 09 jne 132f94 <msdos_find_name_in_fat_file+0x12d><== NOT EXECUTED
132f8b: 89 4d a8 mov %ecx,-0x58(%ebp) <== NOT EXECUTED
132f8e: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED
132f91: 89 45 a4 mov %eax,-0x5c(%ebp) <== NOT EXECUTED
{
empty_space_entry = dir_entry;
empty_space_offset = dir_offset;
}
if (remainder_empty)
132f94: 80 7d a0 00 cmpb $0x0,-0x60(%ebp) <== NOT EXECUTED
132f98: 75 26 jne 132fc0 <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)
132f9a: 80 7d d0 00 cmpb $0x0,-0x30(%ebp) <== NOT EXECUTED
132f9e: 0f 84 95 05 00 00 je 133539 <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)
132fa4: 80 7d 9c 00 cmpb $0x0,-0x64(%ebp) <== NOT EXECUTED
132fa8: 0f 85 73 02 00 00 jne 133221 <msdos_find_name_in_fat_file+0x3ba><== NOT EXECUTED
{
empty_space_count +=
entries_per_block - (dir_entry / MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
132fae: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED
132fb1: c1 e8 05 shr $0x5,%eax <== NOT EXECUTED
132fb4: 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 +=
132fb6: c1 e9 05 shr $0x5,%ecx <== NOT EXECUTED
132fb9: 29 cb sub %ecx,%ebx <== NOT EXECUTED
132fbb: e9 61 02 00 00 jmp 133221 <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)
132fc0: 80 7d a0 e5 cmpb $0xe5,-0x60(%ebp) <== NOT EXECUTED
132fc4: 75 1d jne 132fe3 <msdos_find_name_in_fat_file+0x17c><== NOT EXECUTED
{
if (create_node)
132fc6: 80 7d d0 00 cmpb $0x0,-0x30(%ebp) <== NOT EXECUTED
132fca: 0f 84 04 02 00 00 je 1331d4 <msdos_find_name_in_fat_file+0x36d><== NOT EXECUTED
{
/*
* Remainder is not empty so is this entry empty ?
*/
empty_space_count++;
132fd0: 43 inc %ebx <== NOT EXECUTED
if (empty_space_count == (lfn_entries + 1))
132fd1: 3b 5d 8c cmp -0x74(%ebp),%ebx <== NOT EXECUTED
132fd4: 0f 85 fa 01 00 00 jne 1331d4 <msdos_find_name_in_fat_file+0x36d><== NOT EXECUTED
132fda: c6 45 9c 01 movb $0x1,-0x64(%ebp) <== NOT EXECUTED
132fde: e9 f1 01 00 00 jmp 1331d4 <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)
132fe3: 80 7d d0 00 cmpb $0x0,-0x30(%ebp) <== NOT EXECUTED
132fe7: 74 0f je 132ff8 <msdos_find_name_in_fat_file+0x191><== NOT EXECUTED
132fe9: 80 7d 9c 00 cmpb $0x0,-0x64(%ebp) <== NOT EXECUTED
132fed: 75 09 jne 132ff8 <msdos_find_name_in_fat_file+0x191><== NOT EXECUTED
132fef: 31 db xor %ebx,%ebx <== NOT EXECUTED
132ff1: 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) ==
132ff8: 0f b6 46 0b movzbl 0xb(%esi),%eax <== NOT EXECUTED
132ffc: 83 e0 3f and $0x3f,%eax <== NOT EXECUTED
132fff: 83 f8 0f cmp $0xf,%eax <== NOT EXECUTED
133002: 0f 85 e4 00 00 00 jne 1330ec <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)
133008: 83 7d dc ff cmpl $0xffffffff,-0x24(%ebp) <== NOT EXECUTED
13300c: 75 2c jne 13303a <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) &
13300e: 0f b6 45 a0 movzbl -0x60(%ebp),%eax <== NOT EXECUTED
133012: a8 40 test $0x40,%al <== NOT EXECUTED
133014: 0f 84 b8 01 00 00 je 1331d2 <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) &
13301a: 83 e0 3f and $0x3f,%eax <== NOT EXECUTED
13301d: 39 45 b4 cmp %eax,-0x4c(%ebp) <== NOT EXECUTED
133020: 0f 85 ac 01 00 00 jne 1331d2 <msdos_find_name_in_fat_file+0x36b><== NOT EXECUTED
continue;
/*
* Get the checksum of the short entry.
*/
lfn_start.cln = dir_offset;
133026: 8b 55 cc mov -0x34(%ebp),%edx <== NOT EXECUTED
133029: 89 55 dc mov %edx,-0x24(%ebp) <== NOT EXECUTED
lfn_start.ofs = dir_entry;
13302c: 89 4d e0 mov %ecx,-0x20(%ebp) <== NOT EXECUTED
lfn_entry = lfn_entries;
lfn_checksum = *MSDOS_DIR_LFN_CHECKSUM(entry);
13302f: 8a 46 0d mov 0xd(%esi),%al <== NOT EXECUTED
133032: 88 45 9b mov %al,-0x65(%ebp) <== NOT EXECUTED
133035: 8b 7d b4 mov -0x4c(%ebp),%edi <== NOT EXECUTED
133038: 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) &
13303a: 0f b6 06 movzbl (%esi),%eax <== NOT EXECUTED
13303d: 83 e0 3f and $0x3f,%eax <== NOT EXECUTED
133040: 39 c7 cmp %eax,%edi <== NOT EXECUTED
133042: 75 08 jne 13304c <msdos_find_name_in_fat_file+0x1e5><== NOT EXECUTED
MSDOS_LAST_LONG_ENTRY_MASK)) ||
(lfn_checksum != *MSDOS_DIR_LFN_CHECKSUM(entry)))
133044: 8a 45 9b mov -0x65(%ebp),%al <== NOT EXECUTED
133047: 3a 46 0d cmp 0xd(%esi),%al <== NOT EXECUTED
13304a: 74 0c je 133058 <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;
13304c: c7 45 dc ff ff ff ff movl $0xffffffff,-0x24(%ebp) <== NOT EXECUTED
continue;
133053: e9 7c 01 00 00 jmp 1331d4 <msdos_find_name_in_fat_file+0x36d><== NOT EXECUTED
}
lfn_entry--;
133058: 8d 57 ff lea -0x1(%edi),%edx <== NOT EXECUTED
13305b: 89 55 b8 mov %edx,-0x48(%ebp) <== NOT EXECUTED
o = lfn_entry * MSDOS_LFN_LEN_PER_ENTRY;
13305e: 6b d2 0d imul $0xd,%edx,%edx <== NOT EXECUTED
p = entry + 1;
133061: 46 inc %esi <== NOT EXECUTED
133062: 89 75 a0 mov %esi,-0x60(%ebp) <== NOT EXECUTED
133065: 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]))
133067: 8b 75 14 mov 0x14(%ebp),%esi <== NOT EXECUTED
13306a: 01 d6 add %edx,%esi <== NOT EXECUTED
13306c: 89 75 90 mov %esi,-0x70(%ebp) <== NOT EXECUTED
13306f: 89 55 84 mov %edx,-0x7c(%ebp) <== NOT EXECUTED
133072: 8b 75 a0 mov -0x60(%ebp),%esi <== NOT EXECUTED
133075: 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')
133078: 8a 16 mov (%esi),%dl <== NOT EXECUTED
13307a: 88 55 a0 mov %dl,-0x60(%ebp) <== NOT EXECUTED
13307d: 84 d2 test %dl,%dl <== NOT EXECUTED
13307f: 75 14 jne 133095 <msdos_find_name_in_fat_file+0x22e><== NOT EXECUTED
133081: 8b 55 84 mov -0x7c(%ebp),%edx <== NOT EXECUTED
133084: 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) &&
133087: 3b 7d b4 cmp -0x4c(%ebp),%edi <== NOT EXECUTED
13308a: 75 47 jne 1330d3 <msdos_find_name_in_fat_file+0x26c><== NOT EXECUTED
13308c: 01 d0 add %edx,%eax <== NOT EXECUTED
13308e: 3b 45 18 cmp 0x18(%ebp),%eax <== NOT EXECUTED
133091: 75 18 jne 1330ab <msdos_find_name_in_fat_file+0x244><== NOT EXECUTED
133093: eb 3e jmp 1330d3 <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]))
133095: 8b 55 84 mov -0x7c(%ebp),%edx <== NOT EXECUTED
133098: 8d 3c 10 lea (%eax,%edx,1),%edi <== NOT EXECUTED
13309b: 3b 7d 18 cmp 0x18(%ebp),%edi <== NOT EXECUTED
13309e: 7d 0b jge 1330ab <msdos_find_name_in_fat_file+0x244><== NOT EXECUTED
1330a0: 8a 55 a0 mov -0x60(%ebp),%dl <== NOT EXECUTED
1330a3: 8b 7d 90 mov -0x70(%ebp),%edi <== NOT EXECUTED
1330a6: 3a 14 07 cmp (%edi,%eax,1),%dl <== NOT EXECUTED
1330a9: 74 09 je 1330b4 <msdos_find_name_in_fat_file+0x24d><== NOT EXECUTED
{
lfn_start.cln = FAT_FILE_SHORT_NAME;
1330ab: c7 45 dc ff ff ff ff movl $0xffffffff,-0x24(%ebp) <== NOT EXECUTED
break;
1330b2: eb 1f jmp 1330d3 <msdos_find_name_in_fat_file+0x26c><== NOT EXECUTED
}
switch (i)
1330b4: 83 f8 04 cmp $0x4,%eax <== NOT EXECUTED
1330b7: 74 07 je 1330c0 <msdos_find_name_in_fat_file+0x259><== NOT EXECUTED
1330b9: 83 f8 0a cmp $0xa,%eax <== NOT EXECUTED
1330bc: 75 0c jne 1330ca <msdos_find_name_in_fat_file+0x263><== NOT EXECUTED
1330be: eb 05 jmp 1330c5 <msdos_find_name_in_fat_file+0x25e><== NOT EXECUTED
{
case 4:
p += 5;
1330c0: 83 c6 05 add $0x5,%esi <== NOT EXECUTED
break;
1330c3: eb 08 jmp 1330cd <msdos_find_name_in_fat_file+0x266><== NOT EXECUTED
case 10:
p += 4;
1330c5: 83 c6 04 add $0x4,%esi <== NOT EXECUTED
break;
1330c8: eb 03 jmp 1330cd <msdos_find_name_in_fat_file+0x266><== NOT EXECUTED
default:
p += 2;
1330ca: 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++)
1330cd: 40 inc %eax <== NOT EXECUTED
1330ce: 83 f8 0d cmp $0xd,%eax <== NOT EXECUTED
1330d1: 75 a5 jne 133078 <msdos_find_name_in_fat_file+0x211><== NOT EXECUTED
p += 2;
break;
}
}
lfn_matched = ((lfn_entry == 0) &&
1330d3: 31 d2 xor %edx,%edx <== NOT EXECUTED
1330d5: 83 7d b8 00 cmpl $0x0,-0x48(%ebp) <== NOT EXECUTED
1330d9: 75 09 jne 1330e4 <msdos_find_name_in_fat_file+0x27d><== NOT EXECUTED
1330db: 31 d2 xor %edx,%edx <== NOT EXECUTED
1330dd: 83 7d dc ff cmpl $0xffffffff,-0x24(%ebp) <== NOT EXECUTED
1330e1: 0f 95 c2 setne %dl <== NOT EXECUTED
1330e4: 8b 7d b8 mov -0x48(%ebp),%edi <== NOT EXECUTED
1330e7: e9 e8 00 00 00 jmp 1331d4 <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)
1330ec: 84 d2 test %dl,%dl <== NOT EXECUTED
1330ee: 74 37 je 133127 <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(
1330f0: 8d 46 0a lea 0xa(%esi),%eax <== NOT EXECUTED
1330f3: 89 45 a0 mov %eax,-0x60(%ebp) <== NOT EXECUTED
1330f6: 31 c0 xor %eax,%eax <== NOT EXECUTED
1330f8: 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;
1330fb: 89 c2 mov %eax,%edx <== NOT EXECUTED
1330fd: 83 e2 01 and $0x1,%edx <== NOT EXECUTED
133100: f7 da neg %edx <== NOT EXECUTED
133102: 83 e2 80 and $0xffffff80,%edx <== NOT EXECUTED
133105: d0 e8 shr %al <== NOT EXECUTED
133107: 8b 4d b8 mov -0x48(%ebp),%ecx <== NOT EXECUTED
13310a: 02 01 add (%ecx),%al <== NOT EXECUTED
13310c: 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++)
13310e: 8b 55 a0 mov -0x60(%ebp),%edx <== NOT EXECUTED
133111: 39 d1 cmp %edx,%ecx <== NOT EXECUTED
133113: 74 06 je 13311b <msdos_find_name_in_fat_file+0x2b4><== NOT EXECUTED
133115: 41 inc %ecx <== NOT EXECUTED
133116: 89 4d b8 mov %ecx,-0x48(%ebp) <== NOT EXECUTED
133119: eb e0 jmp 1330fb <msdos_find_name_in_fat_file+0x294><== NOT EXECUTED
13311b: 8b 4d 94 mov -0x6c(%ebp),%ecx <== NOT EXECUTED
cs = ((cs & 1) ? 0x80 : 0) + (cs >> 1) + *p;
if (lfn_entry || (lfn_checksum != cs))
13311e: 38 45 9b cmp %al,-0x65(%ebp) <== NOT EXECUTED
133121: 75 04 jne 133127 <msdos_find_name_in_fat_file+0x2c0><== NOT EXECUTED
133123: 85 ff test %edi,%edi <== NOT EXECUTED
133125: 74 2d je 133154 <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 ||
133127: 83 7d 1c 01 cmpl $0x1,0x1c(%ebp) <== NOT EXECUTED
13312b: 0f 85 9a 00 00 00 jne 1331cb <msdos_find_name_in_fat_file+0x364><== NOT EXECUTED
133131: 83 7d dc ff cmpl $0xffffffff,-0x24(%ebp) <== NOT EXECUTED
133135: 0f 85 90 00 00 00 jne 1331cb <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),
13313b: 50 push %eax <== NOT EXECUTED
13313c: 6a 0b push $0xb <== NOT EXECUTED
13313e: ff 75 24 pushl 0x24(%ebp) <== NOT EXECUTED
133141: 56 push %esi <== NOT EXECUTED
133142: 89 4d 88 mov %ecx,-0x78(%ebp) <== NOT EXECUTED
133145: e8 3e cc 00 00 call 13fd88 <memcmp> <== NOT EXECUTED
13314a: 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 ||
13314d: 85 c0 test %eax,%eax <== NOT EXECUTED
13314f: 8b 4d 88 mov -0x78(%ebp),%ecx <== NOT EXECUTED
133152: 75 77 jne 1331cb <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,
133154: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
133157: ff 75 20 pushl 0x20(%ebp) <== NOT EXECUTED
13315a: ff 75 ac pushl -0x54(%ebp) <== NOT EXECUTED
13315d: 6a 01 push $0x1 <== NOT EXECUTED
13315f: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
133162: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
133165: 89 4d 88 mov %ecx,-0x78(%ebp) <== NOT EXECUTED
133168: e8 b1 1a ff ff call 124c1e <fat_file_ioctl> <== NOT EXECUTED
dir_offset * bts2rd,
&dir_pos->sname.cln);
if (rc != RC_OK)
13316d: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
133170: 85 c0 test %eax,%eax <== NOT EXECUTED
133172: 8b 4d 88 mov -0x78(%ebp),%ecx <== NOT EXECUTED
133175: 0f 85 c8 03 00 00 jne 133543 <msdos_find_name_in_fat_file+0x6dc><== NOT EXECUTED
return rc;
dir_pos->sname.ofs = dir_entry;
13317b: 8b 7d 20 mov 0x20(%ebp),%edi <== NOT EXECUTED
13317e: 89 4f 04 mov %ecx,0x4(%edi) <== NOT EXECUTED
if (lfn_start.cln != FAT_FILE_SHORT_NAME)
133181: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED
133184: 83 f8 ff cmp $0xffffffff,%eax <== NOT EXECUTED
133187: 74 24 je 1331ad <msdos_find_name_in_fat_file+0x346><== NOT EXECUTED
{
rc = fat_file_ioctl(mt_entry, fat_fd, F_CLU_NUM,
133189: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13318c: 8d 55 dc lea -0x24(%ebp),%edx <== NOT EXECUTED
13318f: 52 push %edx <== NOT EXECUTED
133190: 0f af 45 d4 imul -0x2c(%ebp),%eax <== NOT EXECUTED
133194: 50 push %eax <== NOT EXECUTED
133195: 6a 01 push $0x1 <== NOT EXECUTED
133197: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
13319a: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
13319d: e8 7c 1a ff ff call 124c1e <fat_file_ioctl> <== NOT EXECUTED
lfn_start.cln * bts2rd,
&lfn_start.cln);
if (rc != RC_OK)
1331a2: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
1331a5: 85 c0 test %eax,%eax <== NOT EXECUTED
1331a7: 0f 85 96 03 00 00 jne 133543 <msdos_find_name_in_fat_file+0x6dc><== NOT EXECUTED
return rc;
}
dir_pos->lname.cln = lfn_start.cln;
1331ad: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED
1331b0: 8b 55 20 mov 0x20(%ebp),%edx <== NOT EXECUTED
1331b3: 89 42 08 mov %eax,0x8(%edx) <== NOT EXECUTED
dir_pos->lname.ofs = lfn_start.ofs;
1331b6: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
1331b9: 89 42 0c mov %eax,0xc(%edx) <== NOT EXECUTED
memcpy(name_dir_entry, entry,
1331bc: b9 08 00 00 00 mov $0x8,%ecx <== NOT EXECUTED
1331c1: 8b 7d 24 mov 0x24(%ebp),%edi <== NOT EXECUTED
1331c4: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED
1331c6: e9 6a 03 00 00 jmp 133535 <msdos_find_name_in_fat_file+0x6ce><== NOT EXECUTED
MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
return RC_OK;
}
lfn_start.cln = FAT_FILE_SHORT_NAME;
1331cb: c7 45 dc ff ff ff ff movl $0xffffffff,-0x24(%ebp) <== NOT EXECUTED
1331d2: 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)
1331d4: 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;
1331d7: 3b 4d d4 cmp -0x2c(%ebp),%ecx <== NOT EXECUTED
1331da: 0f 82 94 fd ff ff jb 132f74 <msdos_find_name_in_fat_file+0x10d><== NOT EXECUTED
1331e0: 8b 4d d4 mov -0x2c(%ebp),%ecx <== NOT EXECUTED
1331e3: 01 4d ac add %ecx,-0x54(%ebp) <== NOT EXECUTED
}
if (remainder_empty)
break;
dir_offset++;
1331e6: 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),
1331e9: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1331ec: 8b 75 b0 mov -0x50(%ebp),%esi <== NOT EXECUTED
1331ef: ff b6 98 00 00 00 pushl 0x98(%esi) <== NOT EXECUTED
1331f5: ff 75 d4 pushl -0x2c(%ebp) <== NOT EXECUTED
1331f8: ff 75 ac pushl -0x54(%ebp) <== NOT EXECUTED
1331fb: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
1331fe: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
133201: 88 55 88 mov %dl,-0x78(%ebp) <== NOT EXECUTED
133204: e8 1a 1f ff ff call 125123 <fat_file_read> <== NOT EXECUTED
133209: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
13320c: 85 c0 test %eax,%eax <== NOT EXECUTED
13320e: 8a 55 88 mov -0x78(%ebp),%dl <== NOT EXECUTED
133211: 0f 85 34 fd ff ff jne 132f4b <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)
133217: 80 7d d0 00 cmpb $0x0,-0x30(%ebp) <== NOT EXECUTED
13321b: 0f 84 18 03 00 00 je 133539 <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)
133221: 83 7d 1c 02 cmpl $0x2,0x1c(%ebp) <== NOT EXECUTED
133225: 75 5c jne 133283 <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;
133227: 8b 45 a4 mov -0x5c(%ebp),%eax <== NOT EXECUTED
13322a: 0f af 45 d4 imul -0x2c(%ebp),%eax <== NOT EXECUTED
13322e: 03 45 a8 add -0x58(%ebp),%eax <== NOT EXECUTED
133231: c1 e8 05 shr $0x5,%eax <== NOT EXECUTED
133234: 8b 55 b4 mov -0x4c(%ebp),%edx <== NOT EXECUTED
133237: 8d 7c 02 01 lea 0x1(%edx,%eax,1),%edi <== NOT EXECUTED
13323b: 31 c0 xor %eax,%eax <== NOT EXECUTED
13323d: 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 == '.'))
133240: 8a 14 01 mov (%ecx,%eax,1),%dl <== NOT EXECUTED
133243: 80 fa 2e cmp $0x2e,%dl <== NOT EXECUTED
133246: 74 05 je 13324d <msdos_find_name_in_fat_file+0x3e6><== NOT EXECUTED
133248: 80 fa 20 cmp $0x20,%dl <== NOT EXECUTED
13324b: 75 04 jne 133251 <msdos_find_name_in_fat_file+0x3ea><== NOT EXECUTED
*c = '~';
13324d: 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++)
133251: 40 inc %eax <== NOT EXECUTED
133252: 83 f8 03 cmp $0x3,%eax <== NOT EXECUTED
133255: 75 e9 jne 133240 <msdos_find_name_in_fat_file+0x3d9><== NOT EXECUTED
if ((*c == ' ') || (*c == '.'))
*c = '~';
*c++ = '~';
133257: 8b 4d 24 mov 0x24(%ebp),%ecx <== NOT EXECUTED
13325a: c6 41 03 7e movb $0x7e,0x3(%ecx) <== NOT EXECUTED
13325e: 89 c8 mov %ecx,%eax <== NOT EXECUTED
133260: 83 c0 04 add $0x4,%eax <== NOT EXECUTED
for (i = 0; i < 4; i++, c++)
*c = hex[(num >> ((3 - i) * 4)) & 0xf];
133263: b9 0c 00 00 00 mov $0xc,%ecx <== NOT EXECUTED
133268: 89 fe mov %edi,%esi <== NOT EXECUTED
13326a: d3 fe sar %cl,%esi <== NOT EXECUTED
13326c: 83 e6 0f and $0xf,%esi <== NOT EXECUTED
13326f: 8b 15 dc cc 15 00 mov 0x15ccdc,%edx <== NOT EXECUTED
133275: 8a 14 32 mov (%edx,%esi,1),%dl <== NOT EXECUTED
133278: 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++)
13327a: 40 inc %eax <== NOT EXECUTED
13327b: 83 e9 04 sub $0x4,%ecx <== NOT EXECUTED
13327e: 83 f9 fc cmp $0xfffffffc,%ecx <== NOT EXECUTED
133281: 75 e5 jne 133268 <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++)
133283: 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)
133287: 83 7d b4 00 cmpl $0x0,-0x4c(%ebp) <== NOT EXECUTED
13328b: 74 27 je 1332b4 <msdos_find_name_in_fat_file+0x44d><== NOT EXECUTED
{
uint8_t* p = (uint8_t*) MSDOS_DIR_NAME(name_dir_entry);
13328d: 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(
133290: 89 c6 mov %eax,%esi <== NOT EXECUTED
133292: 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 =
133295: 8a 55 b8 mov -0x48(%ebp),%dl <== NOT EXECUTED
133298: 83 e2 01 and $0x1,%edx <== NOT EXECUTED
13329b: f7 da neg %edx <== NOT EXECUTED
13329d: 83 e2 80 and $0xffffff80,%edx <== NOT EXECUTED
1332a0: 8a 4d b8 mov -0x48(%ebp),%cl <== NOT EXECUTED
1332a3: d0 e9 shr %cl <== NOT EXECUTED
1332a5: 02 08 add (%eax),%cl <== NOT EXECUTED
1332a7: 8d 14 11 lea (%ecx,%edx,1),%edx <== NOT EXECUTED
1332aa: 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++)
1332ad: 39 f0 cmp %esi,%eax <== NOT EXECUTED
1332af: 74 03 je 1332b4 <msdos_find_name_in_fat_file+0x44d><== NOT EXECUTED
1332b1: 40 inc %eax <== NOT EXECUTED
1332b2: eb e1 jmp 133295 <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)
1332b4: 85 db test %ebx,%ebx <== NOT EXECUTED
1332b6: 75 0b jne 1332c3 <msdos_find_name_in_fat_file+0x45c><== NOT EXECUTED
1332b8: b0 01 mov $0x1,%al <== NOT EXECUTED
1332ba: c7 45 a8 00 00 00 00 movl $0x0,-0x58(%ebp) <== NOT EXECUTED
1332c1: eb 0c jmp 1332cf <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)
1332c3: b0 01 mov $0x1,%al <== NOT EXECUTED
1332c5: 8b 4d a4 mov -0x5c(%ebp),%ecx <== NOT EXECUTED
1332c8: 39 4d cc cmp %ecx,-0x34(%ebp) <== NOT EXECUTED
1332cb: 75 08 jne 1332d5 <msdos_find_name_in_fat_file+0x46e><== NOT EXECUTED
1332cd: 31 c0 xor %eax,%eax <== NOT EXECUTED
1332cf: 8b 75 cc mov -0x34(%ebp),%esi <== NOT EXECUTED
1332d2: 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;
1332d5: c7 45 e0 ff ff ff ff movl $0xffffffff,-0x20(%ebp) <== NOT EXECUTED
1332dc: 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,
1332e3: 8b 7d a4 mov -0x5c(%ebp),%edi <== NOT EXECUTED
1332e6: 0f af 7d d4 imul -0x2c(%ebp),%edi <== NOT EXECUTED
1332ea: 89 7d cc mov %edi,-0x34(%ebp) <== NOT EXECUTED
1332ed: 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))
1332f4: 8b 55 b4 mov -0x4c(%ebp),%edx <== NOT EXECUTED
1332f7: 42 inc %edx <== NOT EXECUTED
1332f8: 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++)
1332fb: 8a 4d b4 mov -0x4c(%ebp),%cl <== NOT EXECUTED
1332fe: 41 inc %ecx <== NOT EXECUTED
1332ff: 88 4d 9b mov %cl,-0x65(%ebp) <== NOT EXECUTED
#endif
/*
* The one more is the short entry.
*/
while (lfn_entry < (lfn_entries + 1))
133302: e9 22 02 00 00 jmp 133529 <msdos_find_name_in_fat_file+0x6c2><== NOT EXECUTED
{
int length = 0;
if (read_cluster)
133307: 84 c0 test %al,%al <== NOT EXECUTED
133309: 0f 84 9a 00 00 00 je 1333a9 <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,
13330f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
133312: 8b 75 b0 mov -0x50(%ebp),%esi <== NOT EXECUTED
133315: ff b6 98 00 00 00 pushl 0x98(%esi) <== NOT EXECUTED
13331b: ff 75 d4 pushl -0x2c(%ebp) <== NOT EXECUTED
13331e: ff 75 cc pushl -0x34(%ebp) <== NOT EXECUTED
133321: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
133324: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
133327: e8 f7 1d ff ff call 125123 <fat_file_read> <== NOT EXECUTED
(empty_space_offset * bts2rd), bts2rd,
fs_info->cl_buf);
if (ret != bts2rd)
13332c: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
13332f: 3b 45 d4 cmp -0x2c(%ebp),%eax <== NOT EXECUTED
133332: 74 75 je 1333a9 <msdos_find_name_in_fat_file+0x542><== NOT EXECUTED
{
if (ret != FAT_EOF)
133334: 85 c0 test %eax,%eax <== NOT EXECUTED
133336: 0f 85 d4 01 00 00 jne 133510 <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,
13333c: 8d 7d e4 lea -0x1c(%ebp),%edi <== NOT EXECUTED
13333f: 57 push %edi <== NOT EXECUTED
133340: ff 75 cc pushl -0x34(%ebp) <== NOT EXECUTED
133343: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
133346: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
133349: e8 33 1a ff ff call 124d81 <fat_file_extend> <== NOT EXECUTED
&new_length);
if (ret != RC_OK)
13334e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
133351: 85 c0 test %eax,%eax <== NOT EXECUTED
133353: 0f 85 ea 01 00 00 jne 133543 <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))
133359: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED
13335c: 39 45 e4 cmp %eax,-0x1c(%ebp) <== NOT EXECUTED
13335f: 0f 85 ab 01 00 00 jne 133510 <msdos_find_name_in_fat_file+0x6a9><== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
memset(fs_info->cl_buf, 0, bts2rd);
133365: 8b 4d b0 mov -0x50(%ebp),%ecx <== NOT EXECUTED
133368: 8b 91 98 00 00 00 mov 0x98(%ecx),%edx <== NOT EXECUTED
13336e: 31 c0 xor %eax,%eax <== NOT EXECUTED
133370: 89 d7 mov %edx,%edi <== NOT EXECUTED
133372: 8b 4d d4 mov -0x2c(%ebp),%ecx <== NOT EXECUTED
133375: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED
ret = fat_file_write(mt_entry, fat_fd,
133377: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13337a: 8b 75 b0 mov -0x50(%ebp),%esi <== NOT EXECUTED
13337d: ff b6 98 00 00 00 pushl 0x98(%esi) <== NOT EXECUTED
133383: ff 75 d4 pushl -0x2c(%ebp) <== NOT EXECUTED
133386: ff 75 cc pushl -0x34(%ebp) <== NOT EXECUTED
133389: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
13338c: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
13338f: e8 8d 1b ff ff call 124f21 <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)
133394: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
133397: 83 f8 ff cmp $0xffffffff,%eax <== NOT EXECUTED
13339a: 0f 84 a0 01 00 00 je 133540 <msdos_find_name_in_fat_file+0x6d9><== NOT EXECUTED
return ret;
else if (ret != bts2rd)
1333a0: 3b 45 d4 cmp -0x2c(%ebp),%eax <== NOT EXECUTED
1333a3: 0f 85 67 01 00 00 jne 133510 <msdos_find_name_in_fat_file+0x6a9><== NOT EXECUTED
1333a9: 8b 55 d0 mov -0x30(%ebp),%edx <== NOT EXECUTED
1333ac: 42 inc %edx <== NOT EXECUTED
1333ad: 8b 45 d0 mov -0x30(%ebp),%eax <== NOT EXECUTED
1333b0: f7 d0 not %eax <== NOT EXECUTED
1333b2: 03 45 b4 add -0x4c(%ebp),%eax <== NOT EXECUTED
1333b5: 6b c0 0d imul $0xd,%eax,%eax <== NOT EXECUTED
1333b8: 03 45 14 add 0x14(%ebp),%eax <== NOT EXECUTED
1333bb: 89 45 d0 mov %eax,-0x30(%ebp) <== NOT EXECUTED
1333be: 8b 75 a8 mov -0x58(%ebp),%esi <== NOT EXECUTED
1333c1: c7 45 ac 00 00 00 00 movl $0x0,-0x54(%ebp) <== NOT EXECUTED
1333c8: e9 fc 00 00 00 jmp 1334c9 <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;
1333cd: 8b 7d b0 mov -0x50(%ebp),%edi <== NOT EXECUTED
1333d0: 8b 9f 98 00 00 00 mov 0x98(%edi),%ebx <== NOT EXECUTED
1333d6: 01 f3 add %esi,%ebx <== NOT EXECUTED
char* p;
const char* n;
int i;
length += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE;
1333d8: 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))
1333dc: 3b 55 9c cmp -0x64(%ebp),%edx <== NOT EXECUTED
1333df: 75 76 jne 133457 <msdos_find_name_in_fat_file+0x5f0><== NOT EXECUTED
1333e1: 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,
1333e4: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1333e7: ff 75 20 pushl 0x20(%ebp) <== NOT EXECUTED
1333ea: ff 75 cc pushl -0x34(%ebp) <== NOT EXECUTED
1333ed: 6a 01 push $0x1 <== NOT EXECUTED
1333ef: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
1333f2: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
1333f5: e8 24 18 ff ff call 124c1e <fat_file_ioctl> <== NOT EXECUTED
empty_space_offset * bts2rd,
&dir_pos->sname.cln);
if (rc != RC_OK)
1333fa: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
1333fd: 85 c0 test %eax,%eax <== NOT EXECUTED
1333ff: 0f 85 3e 01 00 00 jne 133543 <msdos_find_name_in_fat_file+0x6dc><== NOT EXECUTED
return rc;
dir_pos->sname.ofs = dir_entry;
133405: 8b 45 20 mov 0x20(%ebp),%eax <== NOT EXECUTED
133408: 89 70 04 mov %esi,0x4(%eax) <== NOT EXECUTED
if (lfn_start.cln != FAT_FILE_SHORT_NAME)
13340b: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED
13340e: 83 f8 ff cmp $0xffffffff,%eax <== NOT EXECUTED
133411: 74 24 je 133437 <msdos_find_name_in_fat_file+0x5d0><== NOT EXECUTED
{
rc = fat_file_ioctl(mt_entry, fat_fd, F_CLU_NUM,
133413: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
133416: 8d 55 dc lea -0x24(%ebp),%edx <== NOT EXECUTED
133419: 52 push %edx <== NOT EXECUTED
13341a: 0f af 45 d4 imul -0x2c(%ebp),%eax <== NOT EXECUTED
13341e: 50 push %eax <== NOT EXECUTED
13341f: 6a 01 push $0x1 <== NOT EXECUTED
133421: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
133424: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
133427: e8 f2 17 ff ff call 124c1e <fat_file_ioctl> <== NOT EXECUTED
lfn_start.cln * bts2rd,
&lfn_start.cln);
if (rc != RC_OK)
13342c: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
13342f: 85 c0 test %eax,%eax <== NOT EXECUTED
133431: 0f 85 0c 01 00 00 jne 133543 <msdos_find_name_in_fat_file+0x6dc><== NOT EXECUTED
return rc;
}
dir_pos->lname.cln = lfn_start.cln;
133437: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED
13343a: 8b 55 20 mov 0x20(%ebp),%edx <== NOT EXECUTED
13343d: 89 42 08 mov %eax,0x8(%edx) <== NOT EXECUTED
dir_pos->lname.ofs = lfn_start.ofs;
133440: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
133443: 89 42 0c mov %eax,0xc(%edx) <== NOT EXECUTED
/* write new node entry */
memcpy (entry, (uint8_t *) name_dir_entry,
133446: b9 08 00 00 00 mov $0x8,%ecx <== NOT EXECUTED
13344b: 89 df mov %ebx,%edi <== NOT EXECUTED
13344d: 8b 75 24 mov 0x24(%ebp),%esi <== NOT EXECUTED
133450: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED
MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
break;
133452: e9 81 00 00 00 jmp 1334d8 <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)
133457: 83 7d dc ff cmpl $0xffffffff,-0x24(%ebp) <== NOT EXECUTED
13345b: 75 09 jne 133466 <msdos_find_name_in_fat_file+0x5ff><== NOT EXECUTED
{
lfn_start.cln = empty_space_offset;
13345d: 8b 4d a4 mov -0x5c(%ebp),%ecx <== NOT EXECUTED
133460: 89 4d dc mov %ecx,-0x24(%ebp) <== NOT EXECUTED
lfn_start.ofs = dir_entry;
133463: 89 75 e0 mov %esi,-0x20(%ebp) <== NOT EXECUTED
}
/*
* Clear the entry before loading the data.
*/
memset (entry, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
133466: b9 08 00 00 00 mov $0x8,%ecx <== NOT EXECUTED
13346b: 31 c0 xor %eax,%eax <== NOT EXECUTED
13346d: 89 df mov %ebx,%edi <== NOT EXECUTED
13346f: f3 ab rep stos %eax,%es:(%edi) <== NOT EXECUTED
*MSDOS_DIR_LFN_CHECKSUM(entry) = lfn_checksum;
133471: 8a 45 b8 mov -0x48(%ebp),%al <== NOT EXECUTED
133474: 88 43 0d mov %al,0xd(%ebx) <== NOT EXECUTED
p = entry + 1;
133477: 8d 43 01 lea 0x1(%ebx),%eax <== NOT EXECUTED
13347a: 8b 7d d0 mov -0x30(%ebp),%edi <== NOT EXECUTED
13347d: 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;
133480: 8a 17 mov (%edi),%dl <== NOT EXECUTED
133482: 88 10 mov %dl,(%eax) <== NOT EXECUTED
if (*n != 0)
n++;
133484: 80 3f 01 cmpb $0x1,(%edi) <== NOT EXECUTED
133487: 83 df ff sbb $0xffffffff,%edi <== NOT EXECUTED
switch (i)
13348a: 83 f9 04 cmp $0x4,%ecx <== NOT EXECUTED
13348d: 74 07 je 133496 <msdos_find_name_in_fat_file+0x62f><== NOT EXECUTED
13348f: 83 f9 0a cmp $0xa,%ecx <== NOT EXECUTED
133492: 75 0c jne 1334a0 <msdos_find_name_in_fat_file+0x639><== NOT EXECUTED
133494: eb 05 jmp 13349b <msdos_find_name_in_fat_file+0x634><== NOT EXECUTED
{
case 4:
p += 5;
133496: 83 c0 05 add $0x5,%eax <== NOT EXECUTED
break;
133499: eb 08 jmp 1334a3 <msdos_find_name_in_fat_file+0x63c><== NOT EXECUTED
case 10:
p += 4;
13349b: 83 c0 04 add $0x4,%eax <== NOT EXECUTED
break;
13349e: eb 03 jmp 1334a3 <msdos_find_name_in_fat_file+0x63c><== NOT EXECUTED
default:
p += 2;
1334a0: 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++)
1334a3: 41 inc %ecx <== NOT EXECUTED
1334a4: 83 f9 0d cmp $0xd,%ecx <== NOT EXECUTED
1334a7: 75 d7 jne 133480 <msdos_find_name_in_fat_file+0x619><== NOT EXECUTED
1334a9: 8b 55 a0 mov -0x60(%ebp),%edx <== NOT EXECUTED
1334ac: 8a 45 9b mov -0x65(%ebp),%al <== NOT EXECUTED
1334af: 28 d0 sub %dl,%al <== NOT EXECUTED
p += 2;
break;
}
}
*MSDOS_DIR_ENTRY_TYPE(entry) = (lfn_entries - lfn_entry) + 1;
1334b1: 88 03 mov %al,(%ebx) <== NOT EXECUTED
if (lfn_entry == 1)
1334b3: 83 fa 01 cmp $0x1,%edx <== NOT EXECUTED
1334b6: 75 05 jne 1334bd <msdos_find_name_in_fat_file+0x656><== NOT EXECUTED
*MSDOS_DIR_ENTRY_TYPE(entry) |= MSDOS_LAST_LONG_ENTRY;
1334b8: 83 c8 40 or $0x40,%eax <== NOT EXECUTED
1334bb: 88 03 mov %al,(%ebx) <== NOT EXECUTED
*MSDOS_DIR_ATTR(entry) |= MSDOS_ATTR_LFN;
1334bd: 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)
1334c1: 83 c6 20 add $0x20,%esi <== NOT EXECUTED
1334c4: 42 inc %edx <== NOT EXECUTED
1334c5: 83 6d d0 0d subl $0xd,-0x30(%ebp) <== NOT EXECUTED
1334c9: 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;
1334cc: 3b 75 d4 cmp -0x2c(%ebp),%esi <== NOT EXECUTED
1334cf: 0f 82 f8 fe ff ff jb 1333cd <msdos_find_name_in_fat_file+0x566><== NOT EXECUTED
1334d5: 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,
1334d8: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1334db: 8b 45 a8 mov -0x58(%ebp),%eax <== NOT EXECUTED
1334de: 8b 4d b0 mov -0x50(%ebp),%ecx <== NOT EXECUTED
1334e1: 03 81 98 00 00 00 add 0x98(%ecx),%eax <== NOT EXECUTED
1334e7: 50 push %eax <== NOT EXECUTED
1334e8: ff 75 ac pushl -0x54(%ebp) <== NOT EXECUTED
1334eb: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED
1334ee: 03 45 a8 add -0x58(%ebp),%eax <== NOT EXECUTED
1334f1: 50 push %eax <== NOT EXECUTED
1334f2: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
1334f5: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
1334f8: e8 24 1a ff ff call 124f21 <fat_file_write> <== NOT EXECUTED
(empty_space_offset * bts2rd) + empty_space_entry,
length, fs_info->cl_buf + empty_space_entry);
if (ret == -1)
1334fd: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
133500: 83 f8 ff cmp $0xffffffff,%eax <== NOT EXECUTED
133503: 74 3b je 133540 <msdos_find_name_in_fat_file+0x6d9><== NOT EXECUTED
133505: 8b 75 d4 mov -0x2c(%ebp),%esi <== NOT EXECUTED
133508: 01 75 cc add %esi,-0x34(%ebp) <== NOT EXECUTED
return ret;
else if (ret != length)
13350b: 3b 45 ac cmp -0x54(%ebp),%eax <== NOT EXECUTED
13350e: 74 0d je 13351d <msdos_find_name_in_fat_file+0x6b6><== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
133510: e8 83 98 00 00 call 13cd98 <__errno> <== NOT EXECUTED
133515: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
13351b: eb 23 jmp 133540 <msdos_find_name_in_fat_file+0x6d9><== NOT EXECUTED
empty_space_offset++;
13351d: ff 45 a4 incl -0x5c(%ebp) <== NOT EXECUTED
133520: c7 45 a8 00 00 00 00 movl $0x0,-0x58(%ebp) <== NOT EXECUTED
133527: b0 01 mov $0x1,%al <== NOT EXECUTED
#endif
/*
* The one more is the short entry.
*/
while (lfn_entry < (lfn_entries + 1))
133529: 8b 7d d0 mov -0x30(%ebp),%edi <== NOT EXECUTED
13352c: 39 7d b4 cmp %edi,-0x4c(%ebp) <== NOT EXECUTED
13352f: 0f 8d d2 fd ff ff jge 133307 <msdos_find_name_in_fat_file+0x4a0><== NOT EXECUTED
133535: 31 c0 xor %eax,%eax <== NOT EXECUTED
133537: eb 0a jmp 133543 <msdos_find_name_in_fat_file+0x6dc><== NOT EXECUTED
133539: b8 01 7d 00 00 mov $0x7d01,%eax <== NOT EXECUTED
13353e: eb 03 jmp 133543 <msdos_find_name_in_fat_file+0x6dc><== NOT EXECUTED
133540: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
empty_space_entry = 0;
read_cluster = true;
}
return 0;
}
133543: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
133546: 5b pop %ebx <== NOT EXECUTED
133547: 5e pop %esi <== NOT EXECUTED
133548: 5f pop %edi <== NOT EXECUTED
133549: c9 leave <== NOT EXECUTED
13354a: c3 ret <== NOT EXECUTED
00132d44 <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
)
{
132d44: 55 push %ebp <== NOT EXECUTED
132d45: 89 e5 mov %esp,%ebp <== NOT EXECUTED
132d47: 57 push %edi <== NOT EXECUTED
132d48: 56 push %esi <== NOT EXECUTED
132d49: 53 push %ebx <== NOT EXECUTED
132d4a: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
132d4d: 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;
132d50: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
132d53: 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) &&
132d56: 83 7f 20 01 cmpl $0x1,0x20(%edi) <== NOT EXECUTED
132d5a: 75 1b jne 132d77 <msdos_find_node_by_cluster_num_in_fat_file+0x33><== NOT EXECUTED
132d5c: 83 7f 24 00 cmpl $0x0,0x24(%edi) <== NOT EXECUTED
132d60: 75 15 jne 132d77 <msdos_find_node_by_cluster_num_in_fat_file+0x33><== NOT EXECUTED
(fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16)))
132d62: f6 42 0a 03 testb $0x3,0xa(%edx) <== NOT EXECUTED
132d66: 74 0f je 132d77 <msdos_find_node_by_cluster_num_in_fat_file+0x33><== NOT EXECUTED
bts2rd = fat_fd->fat_file_size;
132d68: 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) &&
132d6b: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp) <== NOT EXECUTED
132d72: e9 bc 00 00 00 jmp 132e33 <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;
132d77: 0f b7 5a 06 movzwl 0x6(%edx),%ebx <== NOT EXECUTED
132d7b: eb ee jmp 132d6b <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 )
132d7d: 83 f8 1f cmp $0x1f,%eax <== NOT EXECUTED
132d80: 7f 13 jg 132d95 <msdos_find_node_by_cluster_num_in_fat_file+0x51><== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EIO );
132d82: e8 11 a0 00 00 call 13cd98 <__errno> <== NOT EXECUTED
132d87: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
132d8d: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
132d90: e9 ca 00 00 00 jmp 132e5f <msdos_find_node_by_cluster_num_in_fat_file+0x11b><== NOT EXECUTED
assert(ret == bts2rd);
132d95: 39 d8 cmp %ebx,%eax <== NOT EXECUTED
132d97: 74 19 je 132db2 <msdos_find_node_by_cluster_num_in_fat_file+0x6e><== NOT EXECUTED
132d99: 68 d8 cb 15 00 push $0x15cbd8 <== NOT EXECUTED
132d9e: 68 94 cc 15 00 push $0x15cc94 <== NOT EXECUTED
132da3: 68 95 06 00 00 push $0x695 <== NOT EXECUTED
132da8: 68 e6 cb 15 00 push $0x15cbe6 <== NOT EXECUTED
132dad: e8 fe 9a 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;
132db2: 8b 82 98 00 00 00 mov 0x98(%edx),%eax <== NOT EXECUTED
132db8: 31 f6 xor %esi,%esi <== NOT EXECUTED
132dba: 8d 0c 30 lea (%eax,%esi,1),%ecx <== NOT EXECUTED
132dbd: 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)) ==
132dc0: 8a 0c 30 mov (%eax,%esi,1),%cl <== NOT EXECUTED
132dc3: 84 c9 test %cl,%cl <== NOT EXECUTED
132dc5: 0f 84 8f 00 00 00 je 132e5a <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)) ==
132dcb: 80 f9 e5 cmp $0xe5,%cl <== NOT EXECUTED
132dce: 74 59 je 132e29 <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)
132dd0: 0f b7 4c 30 14 movzwl 0x14(%eax,%esi,1),%ecx <== NOT EXECUTED
132dd5: c1 e1 10 shl $0x10,%ecx <== NOT EXECUTED
132dd8: 89 4d e4 mov %ecx,-0x1c(%ebp) <== NOT EXECUTED
132ddb: 0f b7 4c 30 1a movzwl 0x1a(%eax,%esi,1),%ecx <== NOT EXECUTED
132de0: 09 4d e4 or %ecx,-0x1c(%ebp) <== NOT EXECUTED
132de3: 8b 4d 10 mov 0x10(%ebp),%ecx <== NOT EXECUTED
132de6: 39 4d e4 cmp %ecx,-0x1c(%ebp) <== NOT EXECUTED
132de9: 75 3e jne 132e29 <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,
132deb: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
132dee: ff 75 14 pushl 0x14(%ebp) <== NOT EXECUTED
132df1: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
132df4: 6a 01 push $0x1 <== NOT EXECUTED
132df6: 57 push %edi <== NOT EXECUTED
132df7: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
132dfa: e8 1f 1e ff ff call 124c1e <fat_file_ioctl> <== NOT EXECUTED
&dir_pos->sname.cln);
if (rc != RC_OK)
132dff: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
132e02: 85 c0 test %eax,%eax <== NOT EXECUTED
132e04: 75 59 jne 132e5f <msdos_find_node_by_cluster_num_in_fat_file+0x11b><== NOT EXECUTED
return rc;
dir_pos->sname.ofs = i;
132e06: 8b 55 14 mov 0x14(%ebp),%edx <== NOT EXECUTED
132e09: 89 72 04 mov %esi,0x4(%edx) <== NOT EXECUTED
dir_pos->lname.cln = FAT_FILE_SHORT_NAME;
132e0c: c7 42 08 ff ff ff ff movl $0xffffffff,0x8(%edx) <== NOT EXECUTED
dir_pos->lname.ofs = FAT_FILE_SHORT_NAME;
132e13: c7 42 0c ff ff ff ff movl $0xffffffff,0xc(%edx) <== NOT EXECUTED
memcpy(dir_entry, entry,
132e1a: b9 08 00 00 00 mov $0x8,%ecx <== NOT EXECUTED
132e1f: 8b 7d 18 mov 0x18(%ebp),%edi <== NOT EXECUTED
132e22: 8b 75 dc mov -0x24(%ebp),%esi <== NOT EXECUTED
132e25: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED
MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
return RC_OK;
132e27: eb 36 jmp 132e5f <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)
132e29: 83 c6 20 add $0x20,%esi <== NOT EXECUTED
132e2c: 39 de cmp %ebx,%esi <== NOT EXECUTED
132e2e: 72 8a jb 132dba <msdos_find_node_by_cluster_num_in_fat_file+0x76><== NOT EXECUTED
132e30: 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,
132e33: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
132e36: ff b2 98 00 00 00 pushl 0x98(%edx) <== NOT EXECUTED
132e3c: 53 push %ebx <== NOT EXECUTED
132e3d: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
132e40: 57 push %edi <== NOT EXECUTED
132e41: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
132e44: 89 55 d8 mov %edx,-0x28(%ebp) <== NOT EXECUTED
132e47: e8 d7 22 ff ff call 125123 <fat_file_read> <== NOT EXECUTED
132e4c: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
132e4f: 85 c0 test %eax,%eax <== NOT EXECUTED
132e51: 8b 55 d8 mov -0x28(%ebp),%edx <== NOT EXECUTED
132e54: 0f 85 23 ff ff ff jne 132d7d <msdos_find_node_by_cluster_num_in_fat_file+0x39><== NOT EXECUTED
132e5a: b8 01 7d 00 00 mov $0x7d01,%eax <== NOT EXECUTED
}
}
j++;
}
return MSDOS_NAME_NOT_FOUND_ERR;
}
132e5f: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
132e62: 5b pop %ebx <== NOT EXECUTED
132e63: 5e pop %esi <== NOT EXECUTED
132e64: 5f pop %edi <== NOT EXECUTED
132e65: c9 leave <== NOT EXECUTED
132e66: c3 ret <== NOT EXECUTED
0011fca5 <msdos_format>:
)
/*-------------------------------------------------------------------------*\
| Return Value: |
| 0, if success, -1 and errno if failed |
\*=========================================================================*/
{
11fca5: 55 push %ebp <== NOT EXECUTED
11fca6: 89 e5 mov %esp,%ebp <== NOT EXECUTED
11fca8: 57 push %edi <== NOT EXECUTED
11fca9: 56 push %esi <== NOT EXECUTED
11fcaa: 53 push %ebx <== NOT EXECUTED
11fcab: 81 ec fc 02 00 00 sub $0x2fc,%esp <== NOT EXECUTED
11fcb1: 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,
11fcb4: 57 push %edi <== NOT EXECUTED
11fcb5: 68 91 8a 15 00 push $0x158a91 <== NOT EXECUTED
11fcba: 6a 01 push $0x1 <== NOT EXECUTED
11fcbc: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
11fcbf: e8 5c fe ff ff call 11fb20 <msdos_format_printf> <== NOT EXECUTED
"formating: %s\n", devname);
/*
* sanity check on device
*/
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,
11fcc4: 57 push %edi <== NOT EXECUTED
11fcc5: 68 a0 8a 15 00 push $0x158aa0 <== NOT EXECUTED
11fcca: 6a 02 push $0x2 <== NOT EXECUTED
11fccc: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
11fccf: e8 4c fe ff ff call 11fb20 <msdos_format_printf> <== NOT EXECUTED
"stat check: %s\n", devname);
if (ret_val == 0) {
rc = stat(devname, &stat_buf);
11fcd4: 83 c4 18 add $0x18,%esp <== NOT EXECUTED
11fcd7: 8d 45 94 lea -0x6c(%ebp),%eax <== NOT EXECUTED
11fcda: 50 push %eax <== NOT EXECUTED
11fcdb: 57 push %edi <== NOT EXECUTED
11fcdc: e8 0b e6 fe ff call 10e2ec <stat> <== NOT EXECUTED
11fce1: 89 c6 mov %eax,%esi <== NOT EXECUTED
ret_val = rc;
}
/* rtems feature: no block devices, all are character devices */
if ((ret_val == 0) &&
11fce3: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
11fce6: 89 c3 mov %eax,%ebx <== NOT EXECUTED
11fce8: 85 c0 test %eax,%eax <== NOT EXECUTED
11fcea: 75 21 jne 11fd0d <msdos_format+0x68> <== NOT EXECUTED
(!S_ISBLK(stat_buf.st_mode))) {
11fcec: 8b 45 a0 mov -0x60(%ebp),%eax <== NOT EXECUTED
11fcef: 25 00 f0 00 00 and $0xf000,%eax <== NOT EXECUTED
11fcf4: 3d 00 60 00 00 cmp $0x6000,%eax <== NOT EXECUTED
11fcf9: 0f 84 58 0b 00 00 je 120857 <msdos_format+0xbb2> <== NOT EXECUTED
errno = ENOTTY;
11fcff: e8 94 d0 01 00 call 13cd98 <__errno> <== NOT EXECUTED
11fd04: c7 00 19 00 00 00 movl $0x19,(%eax) <== NOT EXECUTED
11fd0a: 83 cb ff or $0xffffffff,%ebx <== NOT EXECUTED
11fd0d: c7 85 2c fd ff ff 00 movl $0x0,-0x2d4(%ebp) <== NOT EXECUTED
11fd14: 00 00 00
11fd17: eb 0e jmp 11fd27 <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;
11fd19: e8 7a d0 01 00 call 13cd98 <__errno> <== NOT EXECUTED
11fd1e: c7 00 19 00 00 00 movl $0x19,(%eax) <== NOT EXECUTED
11fd24: 83 cb ff or $0xffffffff,%ebx <== NOT EXECUTED
11fd27: c7 85 34 fd ff ff ff movl $0xffffffff,-0x2cc(%ebp) <== NOT EXECUTED
11fd2e: 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) &&
11fd31: 85 db test %ebx,%ebx <== NOT EXECUTED
11fd33: 0f 85 fa 0a 00 00 jne 120833 <msdos_format+0xb8e> <== NOT EXECUTED
11fd39: e9 cc 04 00 00 jmp 12020a <msdos_format+0x565> <== NOT EXECUTED
/*
* determine number of FATs
*/
if (ret_val == 0) {
if ((rqdata == NULL) ||
(rqdata->fat_num == 0)) {
11fd3e: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
11fd41: 8b 43 0c mov 0xc(%ebx),%eax <== NOT EXECUTED
}
/*
* determine number of FATs
*/
if (ret_val == 0) {
if ((rqdata == NULL) ||
11fd44: 85 c0 test %eax,%eax <== NOT EXECUTED
11fd46: 75 09 jne 11fd51 <msdos_format+0xac> <== NOT EXECUTED
(rqdata->fat_num == 0)) {
fmt_params->fat_num = 2;
11fd48: c6 85 74 ff ff ff 02 movb $0x2,-0x8c(%ebp) <== NOT EXECUTED
11fd4f: eb 14 jmp 11fd65 <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) {
11fd51: 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) {
11fd56: 83 f8 06 cmp $0x6,%eax <== NOT EXECUTED
11fd59: 0f 87 8e 03 00 00 ja 1200ed <msdos_format+0x448> <== NOT EXECUTED
fmt_params->fat_num = rqdata->fat_num;
11fd5f: 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,
11fd65: 0f b6 85 74 ff ff ff movzbl -0x8c(%ebp),%eax <== NOT EXECUTED
11fd6c: 50 push %eax <== NOT EXECUTED
11fd6d: 68 b0 8a 15 00 push $0x158ab0 <== NOT EXECUTED
11fd72: 6a 02 push $0x2 <== NOT EXECUTED
11fd74: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
11fd77: 89 95 18 fd ff ff mov %edx,-0x2e8(%ebp) <== NOT EXECUTED
11fd7d: 89 8d 14 fd ff ff mov %ecx,-0x2ec(%ebp) <== NOT EXECUTED
11fd83: e8 98 fd ff ff call 11fb20 <msdos_format_printf> <== NOT EXECUTED
/*
* determine FAT type and sectors per cluster
* depends on
*/
if (ret_val == 0) {
fmt_params->sectors_per_cluster = 1;
11fd88: c7 85 50 ff ff ff 01 movl $0x1,-0xb0(%ebp) <== NOT EXECUTED
11fd8f: 00 00 00
if ((rqdata != NULL) &&
11fd92: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
11fd95: 83 7d 0c 00 cmpl $0x0,0xc(%ebp) <== NOT EXECUTED
11fd99: 8b 95 18 fd ff ff mov -0x2e8(%ebp),%edx <== NOT EXECUTED
11fd9f: 8b 8d 14 fd ff ff mov -0x2ec(%ebp),%ecx <== NOT EXECUTED
11fda5: 74 46 je 11fded <msdos_format+0x148> <== NOT EXECUTED
(rqdata->fattype == MSDOS_FMT_FAT12)) {
11fda7: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
11fdaa: 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) &&
11fdad: 3c 01 cmp $0x1,%al <== NOT EXECUTED
11fdaf: 75 09 jne 11fdba <msdos_format+0x115> <== NOT EXECUTED
(rqdata->fattype == MSDOS_FMT_FAT12)) {
fmt_params->fattype = FAT_FAT12;
11fdb1: c6 85 76 ff ff ff 01 movb $0x1,-0x8a(%ebp) <== NOT EXECUTED
11fdb8: eb 18 jmp 11fdd2 <msdos_format+0x12d> <== NOT EXECUTED
}
else if ((rqdata != NULL) &&
11fdba: 3c 02 cmp $0x2,%al <== NOT EXECUTED
11fdbc: 75 09 jne 11fdc7 <msdos_format+0x122> <== NOT EXECUTED
(rqdata->fattype == MSDOS_FMT_FAT16)) {
fmt_params->fattype = FAT_FAT16;
11fdbe: c6 85 76 ff ff ff 02 movb $0x2,-0x8a(%ebp) <== NOT EXECUTED
11fdc5: eb 0b jmp 11fdd2 <msdos_format+0x12d> <== NOT EXECUTED
}
else if ((rqdata != NULL) &&
11fdc7: 3c 03 cmp $0x3,%al <== NOT EXECUTED
11fdc9: 75 0e jne 11fdd9 <msdos_format+0x134> <== NOT EXECUTED
(rqdata->fattype == MSDOS_FMT_FAT32)) {
fmt_params->fattype = FAT_FAT32;
11fdcb: c6 85 76 ff ff ff 04 movb $0x4,-0x8a(%ebp) <== NOT EXECUTED
11fdd2: 31 db xor %ebx,%ebx <== NOT EXECUTED
11fdd4: e9 8a 00 00 00 jmp 11fe63 <msdos_format+0x1be> <== NOT EXECUTED
}
else if ((rqdata != NULL) &&
11fdd9: 84 c0 test %al,%al <== NOT EXECUTED
11fddb: 74 10 je 11fded <msdos_format+0x148> <== NOT EXECUTED
(rqdata->fattype != MSDOS_FMT_FATANY)) {
ret_val = -1;
errno = EINVAL;
11fddd: e8 b6 cf 01 00 call 13cd98 <__errno> <== NOT EXECUTED
11fde2: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
11fde8: 83 cb ff or $0xffffffff,%ebx <== NOT EXECUTED
11fdeb: eb 76 jmp 11fe63 <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
11fded: 8b 85 48 ff ff ff mov -0xb8(%ebp),%eax <== NOT EXECUTED
11fdf3: 3d a7 7f 00 00 cmp $0x7fa7,%eax <== NOT EXECUTED
11fdf8: 77 09 ja 11fe03 <msdos_format+0x15e> <== NOT EXECUTED
< ((uint32_t)FAT_FAT12_MAX_CLN)*8) {
fmt_params->fattype = FAT_FAT12;
11fdfa: c6 85 76 ff ff ff 01 movb $0x1,-0x8a(%ebp) <== NOT EXECUTED
11fe01: eb 0e jmp 11fe11 <msdos_format+0x16c> <== NOT EXECUTED
/* start trying with small clusters */
fmt_params->sectors_per_cluster = 2;
}
else if (fmt_params->totl_sector_cnt
11fe03: 3d 9f fe 1f 00 cmp $0x1ffe9f,%eax <== NOT EXECUTED
11fe08: 77 13 ja 11fe1d <msdos_format+0x178> <== NOT EXECUTED
< ((uint32_t)FAT_FAT16_MAX_CLN)*32) {
fmt_params->fattype = FAT_FAT16;
11fe0a: c6 85 76 ff ff ff 02 movb $0x2,-0x8a(%ebp) <== NOT EXECUTED
/* start trying with small clusters */
fmt_params->sectors_per_cluster = 2;
11fe11: c7 85 50 ff ff ff 02 movl $0x2,-0xb0(%ebp) <== NOT EXECUTED
11fe18: 00 00 00
11fe1b: eb 39 jmp 11fe56 <msdos_format+0x1b1> <== NOT EXECUTED
}
else {
#define ONE_GB (1024L * 1024L * 1024L)
uint32_t gigs = (total_size + ONE_GB) / ONE_GB;
11fe1d: 81 c2 00 00 00 40 add $0x40000000,%edx <== NOT EXECUTED
11fe23: 83 d1 00 adc $0x0,%ecx <== NOT EXECUTED
11fe26: 0f ac ca 1e shrd $0x1e,%ecx,%edx <== NOT EXECUTED
11fe2a: c1 e9 1e shr $0x1e,%ecx <== NOT EXECUTED
11fe2d: 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)
11fe32: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
11fe37: 89 c3 mov %eax,%ebx <== NOT EXECUTED
11fe39: d3 e3 shl %cl,%ebx <== NOT EXECUTED
11fe3b: 85 d3 test %edx,%ebx <== NOT EXECUTED
11fe3d: 75 03 jne 11fe42 <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--)
11fe3f: 49 dec %ecx <== NOT EXECUTED
11fe40: 75 f5 jne 11fe37 <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;
11fe42: 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;
11fe49: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
11fe4e: d3 e0 shl %cl,%eax <== NOT EXECUTED
11fe50: 89 85 50 ff ff ff mov %eax,-0xb0(%ebp) <== NOT EXECUTED
}
}
/*
* try to use user requested cluster size
*/
if ((rqdata != NULL) &&
11fe56: 31 db xor %ebx,%ebx <== NOT EXECUTED
11fe58: 83 7d 0c 00 cmpl $0x0,0xc(%ebp) <== NOT EXECUTED
11fe5c: 75 05 jne 11fe63 <msdos_format+0x1be> <== NOT EXECUTED
11fe5e: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
11fe61: eb 10 jmp 11fe73 <msdos_format+0x1ce> <== NOT EXECUTED
(rqdata->sectors_per_cluster > 0)) {
11fe63: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
11fe66: 8b 42 08 mov 0x8(%edx),%eax <== NOT EXECUTED
}
}
/*
* try to use user requested cluster size
*/
if ((rqdata != NULL) &&
11fe69: 85 c0 test %eax,%eax <== NOT EXECUTED
11fe6b: 74 06 je 11fe73 <msdos_format+0x1ce> <== NOT EXECUTED
(rqdata->sectors_per_cluster > 0)) {
fmt_params->sectors_per_cluster =
11fe6d: 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) {
11fe73: 8b bd 44 ff ff ff mov -0xbc(%ebp),%edi <== NOT EXECUTED
11fe79: 8b 95 50 ff ff ff mov -0xb0(%ebp),%edx <== NOT EXECUTED
11fe7f: 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
11fe84: 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) {
11fe89: 39 ca cmp %ecx,%edx <== NOT EXECUTED
11fe8b: 72 11 jb 11fe9e <msdos_format+0x1f9> <== NOT EXECUTED
fmt_params->sectors_per_cluster = onebit;
if (fmt_params->sectors_per_cluster
11fe8d: 89 f0 mov %esi,%eax <== NOT EXECUTED
11fe8f: 31 d2 xor %edx,%edx <== NOT EXECUTED
11fe91: f7 f7 div %edi <== NOT EXECUTED
11fe93: 89 ca mov %ecx,%edx <== NOT EXECUTED
11fe95: 39 c1 cmp %eax,%ecx <== NOT EXECUTED
11fe97: 77 05 ja 11fe9e <msdos_format+0x1f9> <== NOT EXECUTED
11fe99: 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) {
11fe9e: d1 e9 shr %ecx <== NOT EXECUTED
11fea0: 75 e7 jne 11fe89 <msdos_format+0x1e4> <== NOT EXECUTED
11fea2: 89 95 50 ff ff ff mov %edx,-0xb0(%ebp) <== NOT EXECUTED
}
}
}
}
if (ret_val == 0) {
11fea8: 85 db test %ebx,%ebx <== NOT EXECUTED
11feaa: 0f 85 3d 02 00 00 jne 1200ed <msdos_format+0x448> <== NOT EXECUTED
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,
11feb0: 52 push %edx <== NOT EXECUTED
11feb1: 68 c4 8a 15 00 push $0x158ac4 <== NOT EXECUTED
11feb6: 6a 02 push $0x2 <== NOT EXECUTED
11feb8: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
11febb: e8 60 fc ff ff call 11fb20 <msdos_format_printf> <== NOT EXECUTED
"sectors per cluster: %d\n", fmt_params->sectors_per_cluster);
if (fmt_params->fattype == FAT_FAT32) {
11fec0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
11fec3: 80 bd 76 ff ff ff 04 cmpb $0x4,-0x8a(%ebp) <== NOT EXECUTED
11feca: 75 2a jne 11fef6 <msdos_format+0x251> <== NOT EXECUTED
/* recommended: for FAT32, always set reserved sector count to 32 */
fmt_params->rsvd_sector_cnt = 32;
11fecc: c7 85 4c ff ff ff 20 movl $0x20,-0xb4(%ebp) <== NOT EXECUTED
11fed3: 00 00 00
/* for FAT32, always set files per root directory 0 */
fmt_params->files_per_root_dir = 0;
11fed6: c7 85 5c ff ff ff 00 movl $0x0,-0xa4(%ebp) <== NOT EXECUTED
11fedd: 00 00 00
/* location of copy of MBR */
fmt_params->mbr_copy_sec = 6;
11fee0: c7 85 6c ff ff ff 06 movl $0x6,-0x94(%ebp) <== NOT EXECUTED
11fee7: 00 00 00
/* location of fsinfo sector */
fmt_params->fsinfo_sec = 1;
11feea: c7 85 70 ff ff ff 01 movl $0x1,-0x90(%ebp) <== NOT EXECUTED
11fef1: 00 00 00
11fef4: eb 5b jmp 11ff51 <msdos_format+0x2ac> <== NOT EXECUTED
}
else {
/* recommended: for FAT12/FAT16, always set reserved sector count to 1 */
fmt_params->rsvd_sector_cnt = 1;
11fef6: c7 85 4c ff ff ff 01 movl $0x1,-0xb4(%ebp) <== NOT EXECUTED
11fefd: 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) &&
11ff00: 83 7d 0c 00 cmpl $0x0,0xc(%ebp) <== NOT EXECUTED
11ff04: 74 0a je 11ff10 <msdos_format+0x26b> <== NOT EXECUTED
(rqdata->files_per_root_dir > 0)) {
11ff06: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED
11ff09: 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) &&
11ff0c: 85 c0 test %eax,%eax <== NOT EXECUTED
11ff0e: 75 17 jne 11ff27 <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;
11ff10: 31 c0 xor %eax,%eax <== NOT EXECUTED
11ff12: 80 bd 76 ff ff ff 02 cmpb $0x2,-0x8a(%ebp) <== NOT EXECUTED
11ff19: 0f 94 c0 sete %al <== NOT EXECUTED
11ff1c: 48 dec %eax <== NOT EXECUTED
11ff1d: 25 40 fe ff ff and $0xfffffe40,%eax <== NOT EXECUTED
11ff22: 05 00 02 00 00 add $0x200,%eax <== NOT EXECUTED
11ff27: 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 +
11ff2d: 8b 95 44 ff ff ff mov -0xbc(%ebp),%edx <== NOT EXECUTED
11ff33: 8d 3c 12 lea (%edx,%edx,1),%edi <== NOT EXECUTED
11ff36: c1 ef 05 shr $0x5,%edi <== NOT EXECUTED
11ff39: 8b 85 5c ff ff ff mov -0xa4(%ebp),%eax <== NOT EXECUTED
11ff3f: 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 %
11ff43: 89 c8 mov %ecx,%eax <== NOT EXECUTED
11ff45: 31 d2 xor %edx,%edx <== NOT EXECUTED
11ff47: f7 f7 div %edi <== NOT EXECUTED
11ff49: 29 d1 sub %edx,%ecx <== NOT EXECUTED
11ff4b: 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)
11ff51: 8b 8d 44 ff ff ff mov -0xbc(%ebp),%ecx <== NOT EXECUTED
11ff57: 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)
11ff5d: 8b 85 5c ff ff ff mov -0xa4(%ebp),%eax <== NOT EXECUTED
11ff63: c1 e0 05 shl $0x5,%eax <== NOT EXECUTED
11ff66: 8d 44 01 ff lea -0x1(%ecx,%eax,1),%eax <== NOT EXECUTED
11ff6a: 31 d2 xor %edx,%edx <== NOT EXECUTED
11ff6c: 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 =
11ff6e: 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 -
11ff74: 8b b5 48 ff ff ff mov -0xb8(%ebp),%esi <== NOT EXECUTED
11ff7a: 2b b5 4c ff ff ff sub -0xb4(%ebp),%esi <== NOT EXECUTED
11ff80: 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
11ff82: 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,
11ff88: 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
11ff8e: 0f b6 85 76 ff ff ff movzbl -0x8a(%ebp),%eax <== NOT EXECUTED
11ff95: 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) {
11ff9b: b8 00 80 00 00 mov $0x8000,%eax <== NOT EXECUTED
11ffa0: 31 d2 xor %edx,%edx <== NOT EXECUTED
11ffa2: f7 b5 30 fd ff ff divl -0x2d0(%ebp) <== NOT EXECUTED
11ffa8: eb 02 jmp 11ffac <msdos_format+0x307> <== NOT EXECUTED
sectors_per_cluster /= 2;
11ffaa: 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) {
11ffac: 39 c8 cmp %ecx,%eax <== NOT EXECUTED
11ffae: 72 fa jb 11ffaa <msdos_format+0x305> <== NOT EXECUTED
}
else { /* FAT32 */
fat_capacity = fatdata_cluster_cnt * 4;
}
sectors_per_fat = ((fat_capacity
11ffb0: 8b 95 30 fd ff ff mov -0x2d0(%ebp),%edx <== NOT EXECUTED
11ffb6: 4a dec %edx <== NOT EXECUTED
11ffb7: 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 -
11ffbd: 89 f8 mov %edi,%eax <== NOT EXECUTED
11ffbf: 0f b6 f8 movzbl %al,%edi <== NOT EXECUTED
11ffc2: 89 bd 1c fd ff ff mov %edi,-0x2e4(%ebp) <== NOT EXECUTED
11ffc8: 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;
11ffca: 89 f0 mov %esi,%eax <== NOT EXECUTED
11ffcc: 31 d2 xor %edx,%edx <== NOT EXECUTED
11ffce: f7 f1 div %ecx <== NOT EXECUTED
11ffd0: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (fattype == FAT_FAT12) {
11ffd2: 83 bd 28 fd ff ff 01 cmpl $0x1,-0x2d8(%ebp) <== NOT EXECUTED
11ffd9: 75 07 jne 11ffe2 <msdos_format+0x33d> <== NOT EXECUTED
fat_capacity = fatdata_cluster_cnt * 3 / 2;
11ffdb: 8d 04 40 lea (%eax,%eax,2),%eax <== NOT EXECUTED
11ffde: d1 e8 shr %eax <== NOT EXECUTED
11ffe0: eb 13 jmp 11fff5 <msdos_format+0x350> <== NOT EXECUTED
}
else if (fattype == FAT_FAT16) {
fat_capacity = fatdata_cluster_cnt * 2;
11ffe2: 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) {
11ffe5: 83 bd 28 fd ff ff 02 cmpl $0x2,-0x2d8(%ebp) <== NOT EXECUTED
11ffec: 74 07 je 11fff5 <msdos_format+0x350> <== NOT EXECUTED
fat_capacity = fatdata_cluster_cnt * 2;
}
else { /* FAT32 */
fat_capacity = fatdata_cluster_cnt * 4;
11ffee: 8d 04 9d 00 00 00 00 lea 0x0(,%ebx,4),%eax <== NOT EXECUTED
}
sectors_per_fat = ((fat_capacity
11fff5: 03 85 20 fd ff ff add -0x2e0(%ebp),%eax <== NOT EXECUTED
11fffb: 31 d2 xor %edx,%edx <== NOT EXECUTED
11fffd: f7 b5 30 fd ff ff divl -0x2d0(%ebp) <== NOT EXECUTED
120003: 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 -
120009: 0f af 85 1c fd ff ff imul -0x2e4(%ebp),%eax <== NOT EXECUTED
120010: 8d 44 01 ff lea -0x1(%ecx,%eax,1),%eax <== NOT EXECUTED
120014: 31 d2 xor %edx,%edx <== NOT EXECUTED
120016: f7 f1 div %ecx <== NOT EXECUTED
120018: 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)) ||
12001a: 81 fb f5 0f 00 00 cmp $0xff5,%ebx <== NOT EXECUTED
120020: 76 09 jbe 12002b <msdos_format+0x386> <== NOT EXECUTED
120022: 83 bd 28 fd ff ff 01 cmpl $0x1,-0x2d8(%ebp) <== NOT EXECUTED
120029: 74 15 je 120040 <msdos_format+0x39b> <== NOT EXECUTED
12002b: 81 fb f5 ff 00 00 cmp $0xfff5,%ebx <== NOT EXECUTED
120031: 76 09 jbe 12003c <msdos_format+0x397> <== NOT EXECUTED
120033: 83 bd 28 fd ff ff 02 cmpl $0x2,-0x2d8(%ebp) <== NOT EXECUTED
12003a: 74 04 je 120040 <msdos_format+0x39b> <== NOT EXECUTED
12003c: b0 01 mov $0x1,%al <== NOT EXECUTED
12003e: eb 04 jmp 120044 <msdos_format+0x39f> <== NOT EXECUTED
((fattype == FAT_FAT16) && (data_cluster_cnt > FAT_FAT16_MAX_CLN))) {
sectors_per_cluster *= 2;
120040: d1 e1 shl %ecx <== NOT EXECUTED
120042: 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)
120044: 8b 95 30 fd ff ff mov -0x2d0(%ebp),%edx <== NOT EXECUTED
12004a: 0f af d1 imul %ecx,%edx <== NOT EXECUTED
12004d: 81 fa 00 80 00 00 cmp $0x8000,%edx <== NOT EXECUTED
120053: 77 18 ja 12006d <msdos_format+0x3c8> <== NOT EXECUTED
> MS_BYTES_PER_CLUSTER_LIMIT) {
ret_val = EINVAL;
finished = true;
}
} while (!finished);
120055: 84 c0 test %al,%al <== NOT EXECUTED
120057: 0f 84 6d ff ff ff je 11ffca <msdos_format+0x325> <== NOT EXECUTED
12005d: 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;
12005f: 8b 95 24 fd ff ff mov -0x2dc(%ebp),%edx <== NOT EXECUTED
120065: 89 95 54 ff ff ff mov %edx,-0xac(%ebp) <== NOT EXECUTED
12006b: eb 10 jmp 12007d <msdos_format+0x3d8> <== NOT EXECUTED
finished = true;
}
} while (!finished);
if (ret_val != 0) {
rtems_set_errno_and_return_minus_one(ret_val);
12006d: e8 26 cd 01 00 call 13cd98 <__errno> <== NOT EXECUTED
120072: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
120078: 31 c9 xor %ecx,%ecx <== NOT EXECUTED
12007a: 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;
12007d: 89 8d 50 ff ff ff mov %ecx,-0xb0(%ebp) <== NOT EXECUTED
}
/*
* determine media code
*/
if (ret_val == 0) {
120083: 85 db test %ebx,%ebx <== NOT EXECUTED
120085: 75 52 jne 1200d9 <msdos_format+0x434> <== NOT EXECUTED
if ((rqdata != NULL) &&
120087: 83 7d 0c 00 cmpl $0x0,0xc(%ebp) <== NOT EXECUTED
12008b: 74 59 je 1200e6 <msdos_format+0x441> <== NOT EXECUTED
12008d: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED
120090: 80 79 15 00 cmpb $0x0,0x15(%ecx) <== NOT EXECUTED
120094: 74 50 je 1200e6 <msdos_format+0x441> <== NOT EXECUTED
(rqdata->media != 0)) {
const char valid_media_codes[] =
{0xF0,0xF8,0xF9,0xFA,0xFB,0xFC,0xFD,0xFE,0xFF};
120096: 8d 7d dc lea -0x24(%ebp),%edi <== NOT EXECUTED
120099: be 88 8b 15 00 mov $0x158b88,%esi <== NOT EXECUTED
12009e: b9 09 00 00 00 mov $0x9,%ecx <== NOT EXECUTED
1200a3: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
if (NULL==memchr(valid_media_codes,
rqdata->media,
1200a5: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
1200a8: 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,
1200ab: 57 push %edi <== NOT EXECUTED
1200ac: 6a 09 push $0x9 <== NOT EXECUTED
1200ae: 0f b6 c2 movzbl %dl,%eax <== NOT EXECUTED
1200b1: 50 push %eax <== NOT EXECUTED
1200b2: 8d 45 dc lea -0x24(%ebp),%eax <== NOT EXECUTED
1200b5: 50 push %eax <== NOT EXECUTED
1200b6: 88 95 18 fd ff ff mov %dl,-0x2e8(%ebp) <== NOT EXECUTED
1200bc: e8 2f fc 01 00 call 13fcf0 <memchr> <== NOT EXECUTED
1200c1: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1200c4: 85 c0 test %eax,%eax <== NOT EXECUTED
1200c6: 8a 95 18 fd ff ff mov -0x2e8(%ebp),%dl <== NOT EXECUTED
1200cc: 75 10 jne 1200de <msdos_format+0x439> <== NOT EXECUTED
rqdata->media,
sizeof(valid_media_codes))) {
ret_val = -1;
errno = EINVAL;
1200ce: e8 c5 cc 01 00 call 13cd98 <__errno> <== NOT EXECUTED
1200d3: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
1200d9: 83 cb ff or $0xffffffff,%ebx <== NOT EXECUTED
1200dc: eb 0f jmp 1200ed <msdos_format+0x448> <== NOT EXECUTED
}
else {
fmt_params->media_code = rqdata->media;
1200de: 88 95 75 ff ff ff mov %dl,-0x8b(%ebp) <== NOT EXECUTED
1200e4: eb 07 jmp 1200ed <msdos_format+0x448> <== NOT EXECUTED
}
}
else {
fmt_params->media_code = FAT_BR_MEDIA_FIXED;
1200e6: 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) {
1200ed: 83 bd 60 ff ff ff 00 cmpl $0x0,-0xa0(%ebp) <== NOT EXECUTED
1200f4: 74 22 je 120118 <msdos_format+0x473> <== NOT EXECUTED
fmt_params->root_dir_start_sec =
1200f6: 0f b6 85 74 ff ff ff movzbl -0x8c(%ebp),%eax <== NOT EXECUTED
1200fd: 0f af 85 54 ff ff ff imul -0xac(%ebp),%eax <== NOT EXECUTED
120104: 03 85 4c ff ff ff add -0xb4(%ebp),%eax <== NOT EXECUTED
12010a: 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;
120110: 8b 85 60 ff ff ff mov -0xa0(%ebp),%eax <== NOT EXECUTED
120116: eb 20 jmp 120138 <msdos_format+0x493> <== NOT EXECUTED
}
else {
/*
* for FAT32: root directory is in cluster 2
*/
fmt_params->root_dir_start_sec =
120118: 0f b6 85 74 ff ff ff movzbl -0x8c(%ebp),%eax <== NOT EXECUTED
12011f: 0f af 85 54 ff ff ff imul -0xac(%ebp),%eax <== NOT EXECUTED
120126: 03 85 4c ff ff ff add -0xb4(%ebp),%eax <== NOT EXECUTED
12012c: 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;
120132: 8b 85 50 ff ff ff mov -0xb0(%ebp),%eax <== NOT EXECUTED
120138: 89 85 68 ff ff ff mov %eax,-0x98(%ebp) <== NOT EXECUTED
}
/*
* determine usable OEMName
*/
if (ret_val == 0) {
12013e: 85 db test %ebx,%ebx <== NOT EXECUTED
120140: 0f 85 b8 00 00 00 jne 1201fe <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) &&
120146: ba 38 79 15 00 mov $0x157938,%edx <== NOT EXECUTED
12014b: 83 7d 0c 00 cmpl $0x0,0xc(%ebp) <== NOT EXECUTED
12014f: 74 0e je 12015f <msdos_format+0x4ba> <== NOT EXECUTED
(rqdata->OEMName != NULL)) {
120151: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED
120154: 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) &&
120156: 85 d2 test %edx,%edx <== NOT EXECUTED
120158: 75 05 jne 12015f <msdos_format+0x4ba> <== NOT EXECUTED
12015a: ba 38 79 15 00 mov $0x157938,%edx <== NOT EXECUTED
from = rqdata->OEMName;
}
for (cnt = 0;
cnt < (sizeof(fmt_params->OEMName)-1);
cnt++) {
if (isprint((unsigned char)*from)) {
12015f: 8b 0d 7c 29 16 00 mov 0x16297c,%ecx <== NOT EXECUTED
120165: 8d 85 78 ff ff ff lea -0x88(%ebp),%eax <== NOT EXECUTED
}
/*=========================================================================*\
| Function: |
\*-------------------------------------------------------------------------*/
int msdos_format
12016b: 8d 7d 80 lea -0x80(%ebp),%edi <== NOT EXECUTED
12016e: eb 1a jmp 12018a <msdos_format+0x4e5> <== NOT EXECUTED
from = rqdata->OEMName;
}
for (cnt = 0;
cnt < (sizeof(fmt_params->OEMName)-1);
cnt++) {
if (isprint((unsigned char)*from)) {
120170: 8a 1a mov (%edx),%bl <== NOT EXECUTED
120172: 0f b6 f3 movzbl %bl,%esi <== NOT EXECUTED
120175: f6 44 31 01 97 testb $0x97,0x1(%ecx,%esi,1) <== NOT EXECUTED
12017a: 74 06 je 120182 <msdos_format+0x4dd> <== NOT EXECUTED
*to++ = *from++;
12017c: 88 58 ff mov %bl,-0x1(%eax) <== NOT EXECUTED
12017f: 42 inc %edx <== NOT EXECUTED
120180: eb 04 jmp 120186 <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++=' ';
120182: c6 40 ff 20 movb $0x20,-0x1(%eax) <== NOT EXECUTED
}
*to = '\0';
120186: c6 00 00 movb $0x0,(%eax) <== NOT EXECUTED
120189: 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;
12018a: 39 f8 cmp %edi,%eax <== NOT EXECUTED
12018c: 75 e2 jne 120170 <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) &&
12018e: ba b1 5f 15 00 mov $0x155fb1,%edx <== NOT EXECUTED
120193: 83 7d 0c 00 cmpl $0x0,0xc(%ebp) <== NOT EXECUTED
120197: 74 15 je 1201ae <msdos_format+0x509> <== NOT EXECUTED
(rqdata->VolLabel != NULL)) {
120199: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
12019c: 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) &&
12019f: 85 d2 test %edx,%edx <== NOT EXECUTED
1201a1: 75 07 jne 1201aa <msdos_format+0x505> <== NOT EXECUTED
1201a3: ba b1 5f 15 00 mov $0x155fb1,%edx <== NOT EXECUTED
1201a8: eb 04 jmp 1201ae <msdos_format+0x509> <== NOT EXECUTED
(rqdata->VolLabel != NULL)) {
from = rqdata->VolLabel;
fmt_params->VolLabel_present = true;
1201aa: c6 45 8c 01 movb $0x1,-0x74(%ebp) <== NOT EXECUTED
1201ae: 8d 45 81 lea -0x7f(%ebp),%eax <== NOT EXECUTED
}
/*=========================================================================*\
| Function: |
\*-------------------------------------------------------------------------*/
int msdos_format
1201b1: 8d bd 44 ff ff ff lea -0xbc(%ebp),%edi <== NOT EXECUTED
1201b7: 83 c7 48 add $0x48,%edi <== NOT EXECUTED
1201ba: eb 1a jmp 1201d6 <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)) {
1201bc: 8a 1a mov (%edx),%bl <== NOT EXECUTED
1201be: 0f b6 f3 movzbl %bl,%esi <== NOT EXECUTED
1201c1: f6 44 31 01 97 testb $0x97,0x1(%ecx,%esi,1) <== NOT EXECUTED
1201c6: 74 06 je 1201ce <msdos_format+0x529> <== NOT EXECUTED
*to++ = *from++;
1201c8: 88 58 ff mov %bl,-0x1(%eax) <== NOT EXECUTED
1201cb: 42 inc %edx <== NOT EXECUTED
1201cc: eb 04 jmp 1201d2 <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++=' ';
1201ce: c6 40 ff 20 movb $0x20,-0x1(%eax) <== NOT EXECUTED
}
*to = '\0';
1201d2: c6 00 00 movb $0x0,(%eax) <== NOT EXECUTED
1201d5: 40 inc %eax <== NOT EXECUTED
if ((rqdata != NULL) &&
(rqdata->VolLabel != NULL)) {
from = rqdata->VolLabel;
fmt_params->VolLabel_present = true;
}
for (cnt = 0;
1201d6: 39 f8 cmp %edi,%eax <== NOT EXECUTED
1201d8: 75 e2 jne 1201bc <msdos_format+0x517> <== NOT EXECUTED
{
int ret_val = 0;
int rc;
struct timeval time_value;
rc = rtems_clock_get_tod_timeval(&time_value);
1201da: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1201dd: 8d 45 dc lea -0x24(%ebp),%eax <== NOT EXECUTED
1201e0: 50 push %eax <== NOT EXECUTED
1201e1: e8 9e 01 ff ff call 110384 <rtems_clock_get_tod_timeval><== NOT EXECUTED
if (rc == RTEMS_SUCCESSFUL) {
1201e6: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1201e9: 85 c0 test %eax,%eax <== NOT EXECUTED
1201eb: 75 07 jne 1201f4 <msdos_format+0x54f> <== NOT EXECUTED
*volid_ptr = time_value.tv_sec + time_value.tv_sec;
1201ed: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED
1201f0: d1 e0 shl %eax <== NOT EXECUTED
1201f2: eb 05 jmp 1201f9 <msdos_format+0x554> <== NOT EXECUTED
}
else {
*volid_ptr = rand();
1201f4: e8 5f 15 02 00 call 141758 <rand> <== NOT EXECUTED
1201f9: 89 45 90 mov %eax,-0x70(%ebp) <== NOT EXECUTED
1201fc: eb 0c jmp 12020a <msdos_format+0x565> <== NOT EXECUTED
}
/*
* Phuuu.... That's it.
*/
if (ret_val != 0) {
rtems_set_errno_and_return_minus_one(ret_val);
1201fe: e8 95 cb 01 00 call 13cd98 <__errno> <== NOT EXECUTED
120203: 89 18 mov %ebx,(%eax) <== NOT EXECUTED
120205: e9 85 00 00 00 jmp 12028f <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) &&
12020a: 83 7d 0c 00 cmpl $0x0,0xc(%ebp) <== NOT EXECUTED
12020e: 74 32 je 120242 <msdos_format+0x59d> <== NOT EXECUTED
(rqdata != NULL) &&
!(rqdata->quick_format)) {
120210: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
120213: 80 78 16 00 cmpb $0x0,0x16(%eax) <== NOT EXECUTED
120217: 75 29 jne 120242 <msdos_format+0x59d> <== NOT EXECUTED
ret_val = msdos_format_fill_sectors
120219: 56 push %esi <== NOT EXECUTED
12021a: 6a e5 push $0xffffffe5 <== NOT EXECUTED
12021c: ff b5 44 ff ff ff pushl -0xbc(%ebp) <== NOT EXECUTED
120222: ff b5 48 ff ff ff pushl -0xb8(%ebp) <== NOT EXECUTED
120228: 31 c9 xor %ecx,%ecx <== NOT EXECUTED
12022a: 8b 95 34 fd ff ff mov -0x2cc(%ebp),%edx <== NOT EXECUTED
120230: e8 6b f9 ff ff call 11fba0 <msdos_format_fill_sectors><== NOT EXECUTED
120235: 89 c3 mov %eax,%ebx <== NOT EXECUTED
120237: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
0xe5);
}
/*
* create master boot record
*/
if (ret_val == 0) {
12023a: 85 c0 test %eax,%eax <== NOT EXECUTED
12023c: 0f 85 d7 05 00 00 jne 120819 <msdos_format+0xb74> <== NOT EXECUTED
/*
* Read the current MBR to obtain the partition table.
*/
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,
120242: 53 push %ebx <== NOT EXECUTED
120243: 68 dd 8a 15 00 push $0x158add <== NOT EXECUTED
120248: 6a 02 push $0x2 <== NOT EXECUTED
12024a: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
12024d: e8 ce f8 ff ff call 11fb20 <msdos_format_printf> <== NOT EXECUTED
"read MRB sector\n");
ret_val = msdos_format_read_sec(fd,
120252: 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)) {
120258: 6a 00 push $0x0 <== NOT EXECUTED
12025a: 6a 00 push $0x0 <== NOT EXECUTED
12025c: 6a 00 push $0x0 <== NOT EXECUTED
12025e: ff b5 34 fd ff ff pushl -0x2cc(%ebp) <== NOT EXECUTED
120264: e8 47 86 00 00 call 1288b0 <lseek> <== NOT EXECUTED
120269: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
12026c: 85 d2 test %edx,%edx <== NOT EXECUTED
12026e: 78 1f js 12028f <msdos_format+0x5ea> <== NOT EXECUTED
ret_val = -1;
}
if (ret_val == 0) {
if (0 > read(fd,buffer,sector_size)) {
120270: 51 push %ecx <== NOT EXECUTED
120271: 53 push %ebx <== NOT EXECUTED
120272: 8d 85 44 fd ff ff lea -0x2bc(%ebp),%eax <== NOT EXECUTED
120278: 50 push %eax <== NOT EXECUTED
120279: ff b5 34 fd ff ff pushl -0x2cc(%ebp) <== NOT EXECUTED
12027f: e8 18 dd fe ff call 10df9c <read> <== NOT EXECUTED
120284: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
120287: 85 c0 test %eax,%eax <== NOT EXECUTED
120289: 0f 89 81 06 00 00 jns 120910 <msdos_format+0xc6b> <== NOT EXECUTED
12028f: 83 cb ff or $0xffffffff,%ebx <== NOT EXECUTED
120292: e9 82 05 00 00 jmp 120819 <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);
120297: 8d 8d 44 fd ff ff lea -0x2bc(%ebp),%ecx <== NOT EXECUTED
12029d: 89 8d 04 fd ff ff mov %ecx,-0x2fc(%ebp) <== NOT EXECUTED
1202a3: be be 01 00 00 mov $0x1be,%esi <== NOT EXECUTED
1202a8: 89 cf mov %ecx,%edi <== NOT EXECUTED
1202aa: 89 f1 mov %esi,%ecx <== NOT EXECUTED
1202ac: 31 c0 xor %eax,%eax <== NOT EXECUTED
1202ae: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED
1202b0: 89 ce mov %ecx,%esi <== NOT EXECUTED
memset(mbr + RTEMS_IDE_PARTITION_TABLE_OFFSET + RTEMS_IDE_PARTITION_TABLE_SIZE,
1202b2: 66 c7 85 42 ff ff ff movw $0x0,-0xbe(%ebp) <== NOT EXECUTED
1202b9: 00 00
* with 0xEB,....
*/
/*
* fill OEMName
*/
memcpy(FAT_GET_ADDR_BR_OEMNAME(mbr),
1202bb: 8b 85 77 ff ff ff mov -0x89(%ebp),%eax <== NOT EXECUTED
1202c1: 89 85 47 fd ff ff mov %eax,-0x2b9(%ebp) <== NOT EXECUTED
1202c7: 8b 85 7b ff ff ff mov -0x85(%ebp),%eax <== NOT EXECUTED
1202cd: 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);
1202d3: 8b 85 44 ff ff ff mov -0xbc(%ebp),%eax <== NOT EXECUTED
1202d9: 88 85 4f fd ff ff mov %al,-0x2b1(%ebp) <== NOT EXECUTED
1202df: c1 e8 08 shr $0x8,%eax <== NOT EXECUTED
1202e2: 88 85 50 fd ff ff mov %al,-0x2b0(%ebp) <== NOT EXECUTED
FAT_SET_BR_SECTORS_PER_CLUSTER(mbr , fmt_params->sectors_per_cluster);
1202e8: 8b 85 50 ff ff ff mov -0xb0(%ebp),%eax <== NOT EXECUTED
1202ee: 88 85 51 fd ff ff mov %al,-0x2af(%ebp) <== NOT EXECUTED
FAT_SET_BR_RESERVED_SECTORS_NUM(mbr, fmt_params->rsvd_sector_cnt);
1202f4: 8b 85 4c ff ff ff mov -0xb4(%ebp),%eax <== NOT EXECUTED
1202fa: 88 85 52 fd ff ff mov %al,-0x2ae(%ebp) <== NOT EXECUTED
120300: c1 e8 08 shr $0x8,%eax <== NOT EXECUTED
120303: 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 */
120309: 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);
120310: 8b 85 5c ff ff ff mov -0xa4(%ebp),%eax <== NOT EXECUTED
120316: 88 85 55 fd ff ff mov %al,-0x2ab(%ebp) <== NOT EXECUTED
12031c: c1 e8 08 shr $0x8,%eax <== NOT EXECUTED
12031f: 88 85 56 fd ff ff mov %al,-0x2aa(%ebp) <== NOT EXECUTED
FAT_SET_BR_TOTAL_SECTORS_NUM16(mbr , total_sectors_num16);
120325: 88 9d 57 fd ff ff mov %bl,-0x2a9(%ebp) <== NOT EXECUTED
12032b: c1 eb 08 shr $0x8,%ebx <== NOT EXECUTED
12032e: 88 9d 58 fd ff ff mov %bl,-0x2a8(%ebp) <== NOT EXECUTED
FAT_SET_BR_MEDIA(mbr , fmt_params->media_code);
120334: 8a 85 75 ff ff ff mov -0x8b(%ebp),%al <== NOT EXECUTED
12033a: 88 85 59 fd ff ff mov %al,-0x2a7(%ebp) <== NOT EXECUTED
FAT_SET_BR_SECTORS_PER_TRACK(mbr , 255); /* only needed for INT13... */
120340: 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... */
120347: c6 85 5e fd ff ff 06 movb $0x6,-0x2a2(%ebp) <== NOT EXECUTED
FAT_SET_BR_HIDDEN_SECTORS(mbr , 1); /* only needed for INT13... */
12034e: c6 85 60 fd ff ff 01 movb $0x1,-0x2a0(%ebp) <== NOT EXECUTED
FAT_SET_BR_TOTAL_SECTORS_NUM32(mbr , total_sectors_num32);
120355: 88 95 64 fd ff ff mov %dl,-0x29c(%ebp) <== NOT EXECUTED
12035b: 0f b6 c6 movzbl %dh,%eax <== NOT EXECUTED
12035e: 88 85 65 fd ff ff mov %al,-0x29b(%ebp) <== NOT EXECUTED
120364: 89 d0 mov %edx,%eax <== NOT EXECUTED
120366: c1 e8 10 shr $0x10,%eax <== NOT EXECUTED
120369: 88 85 66 fd ff ff mov %al,-0x29a(%ebp) <== NOT EXECUTED
12036f: c1 ea 18 shr $0x18,%edx <== NOT EXECUTED
120372: 88 95 67 fd ff ff mov %dl,-0x299(%ebp) <== NOT EXECUTED
if (fmt_params->fattype != FAT_FAT32) {
120378: 80 bd 76 ff ff ff 04 cmpb $0x4,-0x8a(%ebp) <== NOT EXECUTED
12037f: 8b 85 54 ff ff ff mov -0xac(%ebp),%eax <== NOT EXECUTED
120385: 0f 84 82 00 00 00 je 12040d <msdos_format+0x768> <== NOT EXECUTED
FAT_SET_BR_SECTORS_PER_FAT(mbr ,fmt_params->sectors_per_fat);
12038b: 88 85 5a fd ff ff mov %al,-0x2a6(%ebp) <== NOT EXECUTED
120391: c1 e8 08 shr $0x8,%eax <== NOT EXECUTED
120394: 88 85 5b fd ff ff mov %al,-0x2a5(%ebp) <== NOT EXECUTED
FAT_SET_BR_DRVNUM(mbr , 0); /* only needed for INT13... */
12039a: c6 85 68 fd ff ff 00 movb $0x0,-0x298(%ebp) <== NOT EXECUTED
FAT_SET_BR_RSVD1(mbr , 0); /* fill with zero */
1203a1: c6 85 69 fd ff ff 00 movb $0x0,-0x297(%ebp) <== NOT EXECUTED
FAT_SET_BR_BOOTSIG(mbr , FAT_BR_BOOTSIG_VAL);
1203a8: c6 85 6a fd ff ff 29 movb $0x29,-0x296(%ebp) <== NOT EXECUTED
FAT_SET_BR_VOLID(mbr , fmt_params->vol_id); /* volume id */
1203af: 8b 45 90 mov -0x70(%ebp),%eax <== NOT EXECUTED
1203b2: 88 85 6b fd ff ff mov %al,-0x295(%ebp) <== NOT EXECUTED
1203b8: 0f b6 d4 movzbl %ah,%edx <== NOT EXECUTED
1203bb: 88 95 6c fd ff ff mov %dl,-0x294(%ebp) <== NOT EXECUTED
1203c1: 89 c2 mov %eax,%edx <== NOT EXECUTED
1203c3: c1 ea 10 shr $0x10,%edx <== NOT EXECUTED
1203c6: 88 95 6d fd ff ff mov %dl,-0x293(%ebp) <== NOT EXECUTED
1203cc: c1 e8 18 shr $0x18,%eax <== NOT EXECUTED
1203cf: 88 85 6e fd ff ff mov %al,-0x292(%ebp) <== NOT EXECUTED
memcpy(FAT_GET_ADDR_BR_VOLLAB(mbr),
1203d5: 8d 85 6f fd ff ff lea -0x291(%ebp),%eax <== NOT EXECUTED
1203db: 8d 75 80 lea -0x80(%ebp),%esi <== NOT EXECUTED
1203de: b1 0b mov $0xb,%cl <== NOT EXECUTED
1203e0: 89 c7 mov %eax,%edi <== NOT EXECUTED
1203e2: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
fmt_params->VolLabel,
FAT_BR_VOLLAB_SIZE);
memcpy(FAT_GET_ADDR_BR_FILSYSTYPE(mbr),
1203e4: b8 f7 8a 15 00 mov $0x158af7,%eax <== NOT EXECUTED
1203e9: 80 bd 76 ff ff ff 01 cmpb $0x1,-0x8a(%ebp) <== NOT EXECUTED
1203f0: 74 05 je 1203f7 <msdos_format+0x752> <== NOT EXECUTED
1203f2: b8 ee 8a 15 00 mov $0x158aee,%eax <== NOT EXECUTED
1203f7: 8b 10 mov (%eax),%edx <== NOT EXECUTED
1203f9: 89 95 7a fd ff ff mov %edx,-0x286(%ebp) <== NOT EXECUTED
1203ff: 8b 40 04 mov 0x4(%eax),%eax <== NOT EXECUTED
120402: 89 85 7e fd ff ff mov %eax,-0x282(%ebp) <== NOT EXECUTED
120408: e9 e2 00 00 00 jmp 1204ef <msdos_format+0x84a> <== NOT EXECUTED
? "FAT12 "
: "FAT16 ",
FAT_BR_FILSYSTYPE_SIZE);
}
else {
FAT_SET_BR_SECTORS_PER_FAT32(mbr ,fmt_params->sectors_per_fat);
12040d: 88 85 68 fd ff ff mov %al,-0x298(%ebp) <== NOT EXECUTED
120413: 0f b6 d4 movzbl %ah,%edx <== NOT EXECUTED
120416: 88 95 69 fd ff ff mov %dl,-0x297(%ebp) <== NOT EXECUTED
12041c: 89 c2 mov %eax,%edx <== NOT EXECUTED
12041e: c1 ea 10 shr $0x10,%edx <== NOT EXECUTED
120421: 88 95 6a fd ff ff mov %dl,-0x296(%ebp) <== NOT EXECUTED
120427: c1 e8 18 shr $0x18,%eax <== NOT EXECUTED
12042a: 88 85 6b fd ff ff mov %al,-0x295(%ebp) <== NOT EXECUTED
FAT_SET_BR_EXT_FLAGS(mbr , 0);
120430: c6 85 6c fd ff ff 00 movb $0x0,-0x294(%ebp) <== NOT EXECUTED
120437: c6 85 6d fd ff ff 00 movb $0x0,-0x293(%ebp) <== NOT EXECUTED
FAT_SET_BR_FSVER(mbr , 0); /* FAT32 Version:0.0 */
12043e: c6 85 6e fd ff ff 00 movb $0x0,-0x292(%ebp) <== NOT EXECUTED
120445: 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 */
12044c: c6 85 70 fd ff ff 02 movb $0x2,-0x290(%ebp) <== NOT EXECUTED
120453: c6 85 71 fd ff ff 00 movb $0x0,-0x28f(%ebp) <== NOT EXECUTED
12045a: c6 85 72 fd ff ff 00 movb $0x0,-0x28e(%ebp) <== NOT EXECUTED
120461: 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*/
120468: c6 85 74 fd ff ff 01 movb $0x1,-0x28c(%ebp) <== NOT EXECUTED
12046f: 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 */
120476: 8b 85 6c ff ff ff mov -0x94(%ebp),%eax <== NOT EXECUTED
12047c: 88 85 76 fd ff ff mov %al,-0x28a(%ebp) <== NOT EXECUTED
120482: c1 e8 08 shr $0x8,%eax <== NOT EXECUTED
120485: 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);
12048b: 8d 95 78 fd ff ff lea -0x288(%ebp),%edx <== NOT EXECUTED
120491: b9 03 00 00 00 mov $0x3,%ecx <== NOT EXECUTED
120496: 89 d7 mov %edx,%edi <== NOT EXECUTED
120498: 89 f0 mov %esi,%eax <== NOT EXECUTED
12049a: f3 ab rep stos %eax,%es:(%edi) <== NOT EXECUTED
FAT_SET_BR_FAT32_DRVNUM(mbr , 0); /* only needed for INT13... */
12049c: c6 85 84 fd ff ff 00 movb $0x0,-0x27c(%ebp) <== NOT EXECUTED
FAT_SET_BR_FAT32_RSVD1(mbr , 0); /* fill with zero */
1204a3: c6 85 85 fd ff ff 00 movb $0x0,-0x27b(%ebp) <== NOT EXECUTED
FAT_SET_BR_FAT32_BOOTSIG(mbr ,FAT_BR_FAT32_BOOTSIG_VAL);
1204aa: c6 85 86 fd ff ff 29 movb $0x29,-0x27a(%ebp) <== NOT EXECUTED
FAT_SET_BR_FAT32_VOLID(mbr , 0); /* not set */
1204b1: c6 85 87 fd ff ff 00 movb $0x0,-0x279(%ebp) <== NOT EXECUTED
1204b8: c6 85 88 fd ff ff 00 movb $0x0,-0x278(%ebp) <== NOT EXECUTED
1204bf: c6 85 89 fd ff ff 00 movb $0x0,-0x277(%ebp) <== NOT EXECUTED
1204c6: 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);
1204cd: 8d 95 8b fd ff ff lea -0x275(%ebp),%edx <== NOT EXECUTED
1204d3: b1 0b mov $0xb,%cl <== NOT EXECUTED
1204d5: 89 d7 mov %edx,%edi <== NOT EXECUTED
1204d7: 31 c0 xor %eax,%eax <== NOT EXECUTED
1204d9: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED
memcpy(FAT_GET_ADDR_BR_FAT32_FILSYSTYPE(mbr),
1204db: c7 85 96 fd ff ff 46 movl $0x33544146,-0x26a(%ebp) <== NOT EXECUTED
1204e2: 41 54 33
1204e5: c7 85 9a fd ff ff 32 movl $0x20202032,-0x266(%ebp) <== NOT EXECUTED
1204ec: 20 20 20
FAT_BR_FILSYSTYPE_SIZE);
}
/*
* add boot record signature
*/
FAT_SET_BR_SIGNATURE(mbr, FAT_BR_SIGNATURE_VAL);
1204ef: c6 85 42 ff ff ff 55 movb $0x55,-0xbe(%ebp) <== NOT EXECUTED
1204f6: 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);
1204fd: c6 85 44 fd ff ff eb movb $0xeb,-0x2bc(%ebp) <== NOT EXECUTED
FAT_SET_VAL8(mbr,1,0x3c);
120504: c6 85 45 fd ff ff 3c movb $0x3c,-0x2bb(%ebp) <== NOT EXECUTED
FAT_SET_VAL8(mbr,2,0x90);
12050b: 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,
120512: 52 push %edx <== NOT EXECUTED
120513: 68 00 8b 15 00 push $0x158b00 <== NOT EXECUTED
120518: 6a 02 push $0x2 <== NOT EXECUTED
12051a: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
12051d: e8 fe f5 ff ff call 11fb20 <msdos_format_printf> <== NOT EXECUTED
"write MRB sector\n");
ret_val = msdos_format_write_sec(fd,
120522: 8d b5 44 fd ff ff lea -0x2bc(%ebp),%esi <== NOT EXECUTED
120528: 89 34 24 mov %esi,(%esp) <== NOT EXECUTED
12052b: 8b 8d 44 ff ff ff mov -0xbc(%ebp),%ecx <== NOT EXECUTED
120531: 31 d2 xor %edx,%edx <== NOT EXECUTED
120533: 8b 85 34 fd ff ff mov -0x2cc(%ebp),%eax <== NOT EXECUTED
120539: e8 1f f6 ff ff call 11fb5d <msdos_format_write_sec><== NOT EXECUTED
12053e: 89 c3 mov %eax,%ebx <== NOT EXECUTED
0,
fmt_params.bytes_per_sector,
tmp_sec);
}
if ((ret_val == 0) &&
120540: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
120543: 85 c0 test %eax,%eax <== NOT EXECUTED
120545: 0f 85 ce 02 00 00 jne 120819 <msdos_format+0xb74> <== NOT EXECUTED
12054b: 83 bd 6c ff ff ff 00 cmpl $0x0,-0x94(%ebp) <== NOT EXECUTED
120552: 74 37 je 12058b <msdos_format+0x8e6> <== NOT EXECUTED
(fmt_params.mbr_copy_sec != 0)) {
/*
* write copy of MBR
*/
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,
120554: 50 push %eax <== NOT EXECUTED
120555: 68 12 8b 15 00 push $0x158b12 <== NOT EXECUTED
12055a: 6a 02 push $0x2 <== NOT EXECUTED
12055c: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
12055f: e8 bc f5 ff ff call 11fb20 <msdos_format_printf> <== NOT EXECUTED
"write back up MRB sector\n");
ret_val = msdos_format_write_sec(fd,
120564: 89 34 24 mov %esi,(%esp) <== NOT EXECUTED
120567: 8b 8d 44 ff ff ff mov -0xbc(%ebp),%ecx <== NOT EXECUTED
12056d: 8b 95 6c ff ff ff mov -0x94(%ebp),%edx <== NOT EXECUTED
120573: 8b 85 34 fd ff ff mov -0x2cc(%ebp),%eax <== NOT EXECUTED
120579: e8 df f5 ff ff call 11fb5d <msdos_format_write_sec><== NOT EXECUTED
12057e: 89 c3 mov %eax,%ebx <== NOT EXECUTED
}
}
/*
* for FAT32: initialize info sector on disk
*/
if ((ret_val == 0) &&
120580: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
120583: 85 c0 test %eax,%eax <== NOT EXECUTED
120585: 0f 85 8e 02 00 00 jne 120819 <msdos_format+0xb74> <== NOT EXECUTED
12058b: 83 bd 70 ff ff ff 00 cmpl $0x0,-0x90(%ebp) <== NOT EXECUTED
120592: 0f 84 a8 03 00 00 je 120940 <msdos_format+0xc9b> <== NOT EXECUTED
\*=========================================================================*/
{
/*
* clear fsinfo sector data
*/
memset(fsinfo,0,FAT_TOTAL_FSINFO_SIZE);
120598: 8d 95 44 fd ff ff lea -0x2bc(%ebp),%edx <== NOT EXECUTED
12059e: b9 80 00 00 00 mov $0x80,%ecx <== NOT EXECUTED
1205a3: 31 c0 xor %eax,%eax <== NOT EXECUTED
1205a5: 89 d7 mov %edx,%edi <== NOT EXECUTED
1205a7: f3 ab rep stos %eax,%es:(%edi) <== NOT EXECUTED
/*
* write LEADSIG, STRUCTSIG, TRAILSIG
*/
FAT_SET_FSINFO_LEAD_SIGNATURE (fsinfo,FAT_FSINFO_LEAD_SIGNATURE_VALUE );
1205a9: c6 85 44 fd ff ff 52 movb $0x52,-0x2bc(%ebp) <== NOT EXECUTED
1205b0: c6 85 45 fd ff ff 52 movb $0x52,-0x2bb(%ebp) <== NOT EXECUTED
1205b7: c6 85 46 fd ff ff 61 movb $0x61,-0x2ba(%ebp) <== NOT EXECUTED
1205be: c6 85 47 fd ff ff 41 movb $0x41,-0x2b9(%ebp) <== NOT EXECUTED
FAT_SET_FSINFO_STRUC_SIGNATURE(fsinfo,FAT_FSINFO_STRUC_SIGNATURE_VALUE);
1205c5: c6 85 28 ff ff ff 72 movb $0x72,-0xd8(%ebp) <== NOT EXECUTED
1205cc: c6 85 29 ff ff ff 72 movb $0x72,-0xd7(%ebp) <== NOT EXECUTED
1205d3: c6 85 2a ff ff ff 41 movb $0x41,-0xd6(%ebp) <== NOT EXECUTED
1205da: c6 85 2b ff ff ff 61 movb $0x61,-0xd5(%ebp) <== NOT EXECUTED
FAT_SET_FSINFO_TRAIL_SIGNATURE(fsinfo,FAT_FSINFO_TRAIL_SIGNATURE_VALUE);
1205e1: c6 85 42 ff ff ff 55 movb $0x55,-0xbe(%ebp) <== NOT EXECUTED
1205e8: 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,
1205ef: c6 85 2c ff ff ff ff movb $0xff,-0xd4(%ebp) <== NOT EXECUTED
1205f6: c6 85 2d ff ff ff ff movb $0xff,-0xd3(%ebp) <== NOT EXECUTED
1205fd: c6 85 2e ff ff ff ff movb $0xff,-0xd2(%ebp) <== NOT EXECUTED
120604: c6 85 2f ff ff ff ff movb $0xff,-0xd1(%ebp) <== NOT EXECUTED
0xffffffff);
FAT_SET_FSINFO_NEXT_FREE_CLUSTER (fsinfo+FAT_FSI_INFO,
12060b: c6 85 30 ff ff ff ff movb $0xff,-0xd0(%ebp) <== NOT EXECUTED
120612: c6 85 31 ff ff ff ff movb $0xff,-0xcf(%ebp) <== NOT EXECUTED
120619: c6 85 32 ff ff ff ff movb $0xff,-0xce(%ebp) <== NOT EXECUTED
120620: c6 85 33 ff ff ff ff movb $0xff,-0xcd(%ebp) <== NOT EXECUTED
120627: e9 14 03 00 00 jmp 120940 <msdos_format+0xc9b> <== NOT EXECUTED
/*
* write fsinfo sector
*/
if ((ret_val == 0) &&
(fmt_params.fsinfo_sec != 0)) {
ret_val = msdos_format_write_sec(fd,
12062c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12062f: 8d 85 44 fd ff ff lea -0x2bc(%ebp),%eax <== NOT EXECUTED
120635: 50 push %eax <== NOT EXECUTED
120636: 8b 8d 44 ff ff ff mov -0xbc(%ebp),%ecx <== NOT EXECUTED
12063c: 8b 85 34 fd ff ff mov -0x2cc(%ebp),%eax <== NOT EXECUTED
120642: e8 16 f5 ff ff call 11fb5d <msdos_format_write_sec><== NOT EXECUTED
120647: 89 c3 mov %eax,%ebx <== NOT EXECUTED
}
/*
* write FAT as all empty
* -> write all FAT sectors as zero
*/
if (ret_val == 0) {
120649: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12064c: 85 c0 test %eax,%eax <== NOT EXECUTED
12064e: 0f 85 c5 01 00 00 jne 120819 <msdos_format+0xb74> <== NOT EXECUTED
ret_val = msdos_format_fill_sectors
120654: 57 push %edi <== NOT EXECUTED
120655: 6a 00 push $0x0 <== NOT EXECUTED
120657: ff b5 44 ff ff ff pushl -0xbc(%ebp) <== NOT EXECUTED
12065d: 0f b6 85 74 ff ff ff movzbl -0x8c(%ebp),%eax <== NOT EXECUTED
120664: 0f af 85 54 ff ff ff imul -0xac(%ebp),%eax <== NOT EXECUTED
12066b: 50 push %eax <== NOT EXECUTED
12066c: 8b 8d 4c ff ff ff mov -0xb4(%ebp),%ecx <== NOT EXECUTED
120672: 8b 95 34 fd ff ff mov -0x2cc(%ebp),%edx <== NOT EXECUTED
120678: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
12067b: e8 20 f5 ff ff call 11fba0 <msdos_format_fill_sectors><== NOT EXECUTED
120680: 89 c3 mov %eax,%ebx <== NOT EXECUTED
}
/*
* clear/init root directory
* -> write all directory sectors as 0x00
*/
if (ret_val == 0) {
120682: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
120685: 85 c0 test %eax,%eax <== NOT EXECUTED
120687: 0f 85 8c 01 00 00 jne 120819 <msdos_format+0xb74> <== NOT EXECUTED
ret_val = msdos_format_fill_sectors
12068d: 56 push %esi <== NOT EXECUTED
12068e: 6a 00 push $0x0 <== NOT EXECUTED
120690: ff b5 44 ff ff ff pushl -0xbc(%ebp) <== NOT EXECUTED
120696: ff b5 68 ff ff ff pushl -0x98(%ebp) <== NOT EXECUTED
12069c: 8b 8d 64 ff ff ff mov -0x9c(%ebp),%ecx <== NOT EXECUTED
1206a2: 8b 95 34 fd ff ff mov -0x2cc(%ebp),%edx <== NOT EXECUTED
1206a8: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
1206ab: e8 f0 f4 ff ff call 11fba0 <msdos_format_fill_sectors><== NOT EXECUTED
1206b0: 89 c3 mov %eax,%ebx <== NOT EXECUTED
0x00);
}
/*
* write volume label to first entry of directory
*/
if ((ret_val == 0) && fmt_params.VolLabel_present) {
1206b2: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1206b5: 85 c0 test %eax,%eax <== NOT EXECUTED
1206b7: 0f 85 5c 01 00 00 jne 120819 <msdos_format+0xb74> <== NOT EXECUTED
1206bd: 80 7d 8c 00 cmpb $0x0,-0x74(%ebp) <== NOT EXECUTED
1206c1: 74 48 je 12070b <msdos_format+0xa66> <== NOT EXECUTED
memset(tmp_sec,0,sizeof(tmp_sec));
1206c3: 8d 95 44 fd ff ff lea -0x2bc(%ebp),%edx <== NOT EXECUTED
1206c9: b9 80 00 00 00 mov $0x80,%ecx <== NOT EXECUTED
1206ce: 89 d7 mov %edx,%edi <== NOT EXECUTED
1206d0: f3 ab rep stos %eax,%es:(%edi) <== NOT EXECUTED
memcpy(MSDOS_DIR_NAME(tmp_sec),fmt_params.VolLabel,MSDOS_SHORT_NAME_LEN);
1206d2: 8d 75 80 lea -0x80(%ebp),%esi <== NOT EXECUTED
1206d5: b1 0b mov $0xb,%cl <== NOT EXECUTED
1206d7: 89 d7 mov %edx,%edi <== NOT EXECUTED
1206d9: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
*MSDOS_DIR_ATTR(tmp_sec) = MSDOS_ATTR_VOLUME_ID;
1206db: c6 85 4f fd ff ff 08 movb $0x8,-0x2b1(%ebp) <== NOT EXECUTED
ret_val = msdos_format_write_sec
1206e2: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1206e5: 52 push %edx <== NOT EXECUTED
1206e6: 8b 8d 44 ff ff ff mov -0xbc(%ebp),%ecx <== NOT EXECUTED
1206ec: 8b 95 64 ff ff ff mov -0x9c(%ebp),%edx <== NOT EXECUTED
1206f2: 8b 85 34 fd ff ff mov -0x2cc(%ebp),%eax <== NOT EXECUTED
1206f8: e8 60 f4 ff ff call 11fb5d <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){
1206fd: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
120700: 85 c0 test %eax,%eax <== NOT EXECUTED
120702: 74 07 je 12070b <msdos_format+0xa66> <== NOT EXECUTED
120704: 89 c3 mov %eax,%ebx <== NOT EXECUTED
120706: e9 0e 01 00 00 jmp 120819 <msdos_format+0xb74> <== NOT EXECUTED
12070b: 80 7d 8c 00 cmpb $0x0,-0x74(%ebp) <== NOT EXECUTED
12070f: 0f 84 04 01 00 00 je 120819 <msdos_format+0xb74> <== NOT EXECUTED
/*
* empty sector: all clusters are free/do not link further on
*/
memset(tmp_sec,0,sizeof(tmp_sec));
120715: 8d 95 44 fd ff ff lea -0x2bc(%ebp),%edx <== NOT EXECUTED
12071b: b9 80 00 00 00 mov $0x80,%ecx <== NOT EXECUTED
120720: 31 c0 xor %eax,%eax <== NOT EXECUTED
120722: 89 d7 mov %edx,%edi <== NOT EXECUTED
120724: f3 ab rep stos %eax,%es:(%edi) <== NOT EXECUTED
switch(fmt_params.fattype) {
120726: 8a 85 76 ff ff ff mov -0x8a(%ebp),%al <== NOT EXECUTED
12072c: 3c 02 cmp $0x2,%al <== NOT EXECUTED
12072e: 74 1e je 12074e <msdos_format+0xaa9> <== NOT EXECUTED
120730: 3c 04 cmp $0x4,%al <== NOT EXECUTED
120732: 74 3d je 120771 <msdos_format+0xacc> <== NOT EXECUTED
120734: fe c8 dec %al <== NOT EXECUTED
120736: 75 6b jne 1207a3 <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));
120738: 8a 85 75 ff ff ff mov -0x8b(%ebp),%al <== NOT EXECUTED
12073e: 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)));
120744: 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));
120748: c6 42 02 ff movb $0xff,0x2(%edx) <== NOT EXECUTED
break;
12074c: eb 63 jmp 1207b1 <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);
12074e: 8a 85 75 ff ff ff mov -0x8b(%ebp),%al <== NOT EXECUTED
120754: 88 85 44 fd ff ff mov %al,-0x2bc(%ebp) <== NOT EXECUTED
12075a: 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);
120761: c6 85 46 fd ff ff f8 movb $0xf8,-0x2ba(%ebp) <== NOT EXECUTED
120768: c6 85 47 fd ff ff ff movb $0xff,-0x2b9(%ebp) <== NOT EXECUTED
break;
12076f: eb 40 jmp 1207b1 <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);
120771: 0f b6 85 75 ff ff ff movzbl -0x8b(%ebp),%eax <== NOT EXECUTED
120778: 0d 00 ff ff ff or $0xffffff00,%eax <== NOT EXECUTED
12077d: 88 85 44 fd ff ff mov %al,-0x2bc(%ebp) <== NOT EXECUTED
120783: c1 e8 18 shr $0x18,%eax <== NOT EXECUTED
120786: 88 42 01 mov %al,0x1(%edx) <== NOT EXECUTED
120789: c6 42 02 ff movb $0xff,0x2(%edx) <== NOT EXECUTED
12078d: c6 42 03 ff movb $0xff,0x3(%edx) <== NOT EXECUTED
/* FAT entry 1: EOC */
FAT_SET_VAL32(tmp_sec,4,FAT_FAT32_EOC);
120791: c6 42 04 f8 movb $0xf8,0x4(%edx) <== NOT EXECUTED
120795: c6 42 05 ff movb $0xff,0x5(%edx) <== NOT EXECUTED
120799: c6 42 06 ff movb $0xff,0x6(%edx) <== NOT EXECUTED
12079d: c6 42 07 0f movb $0xf,0x7(%edx) <== NOT EXECUTED
break;
1207a1: eb 0e jmp 1207b1 <msdos_format+0xb0c> <== NOT EXECUTED
default:
ret_val = -1;
errno = EINVAL;
1207a3: e8 f0 c5 01 00 call 13cd98 <__errno> <== NOT EXECUTED
1207a8: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
1207ae: 83 cb ff or $0xffffffff,%ebx <== NOT EXECUTED
}
if (fmt_params.fattype == FAT_FAT32) {
1207b1: 80 bd 76 ff ff ff 04 cmpb $0x4,-0x8a(%ebp) <== NOT EXECUTED
1207b8: 75 1c jne 1207d6 <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);
1207ba: c6 85 4c fd ff ff f8 movb $0xf8,-0x2b4(%ebp) <== NOT EXECUTED
1207c1: c6 85 4d fd ff ff ff movb $0xff,-0x2b3(%ebp) <== NOT EXECUTED
1207c8: c6 85 4e fd ff ff ff movb $0xff,-0x2b2(%ebp) <== NOT EXECUTED
1207cf: c6 85 4f fd ff ff 0f movb $0xf,-0x2b1(%ebp) <== NOT EXECUTED
1207d6: 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
1207d8: 8d bd 44 fd ff ff lea -0x2bc(%ebp),%edi <== NOT EXECUTED
1207de: eb 2a jmp 12080a <msdos_format+0xb65> <== NOT EXECUTED
1207e0: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1207e3: 8b 95 54 ff ff ff mov -0xac(%ebp),%edx <== NOT EXECUTED
1207e9: 0f af d6 imul %esi,%edx <== NOT EXECUTED
1207ec: 03 95 4c ff ff ff add -0xb4(%ebp),%edx <== NOT EXECUTED
1207f2: 57 push %edi <== NOT EXECUTED
1207f3: 8b 8d 44 ff ff ff mov -0xbc(%ebp),%ecx <== NOT EXECUTED
1207f9: 8b 85 34 fd ff ff mov -0x2cc(%ebp),%eax <== NOT EXECUTED
1207ff: e8 59 f3 ff ff call 11fb5d <msdos_format_write_sec><== NOT EXECUTED
120804: 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++) {
120806: 46 inc %esi <== NOT EXECUTED
120807: 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;
12080a: 85 db test %ebx,%ebx <== NOT EXECUTED
12080c: 75 0b jne 120819 <msdos_format+0xb74> <== NOT EXECUTED
12080e: 0f b6 85 74 ff ff ff movzbl -0x8c(%ebp),%eax <== NOT EXECUTED
120815: 39 c6 cmp %eax,%esi <== NOT EXECUTED
120817: 7c c7 jl 1207e0 <msdos_format+0xb3b> <== NOT EXECUTED
/*
* cleanup:
* sync and unlock disk
* free any data structures (not needed now)
*/
if (fd != -1) {
120819: 83 bd 34 fd ff ff ff cmpl $0xffffffff,-0x2cc(%ebp) <== NOT EXECUTED
120820: 74 11 je 120833 <msdos_format+0xb8e> <== NOT EXECUTED
close(fd);
120822: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
120825: ff b5 34 fd ff ff pushl -0x2cc(%ebp) <== NOT EXECUTED
12082b: e8 90 c2 fe ff call 10cac0 <close> <== NOT EXECUTED
120830: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
if (dd != NULL) {
120833: 83 bd 2c fd ff ff 00 cmpl $0x0,-0x2d4(%ebp) <== NOT EXECUTED
12083a: 74 11 je 12084d <msdos_format+0xba8> <== NOT EXECUTED
rtems_disk_release(dd);
12083c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12083f: ff b5 2c fd ff ff pushl -0x2d4(%ebp) <== NOT EXECUTED
120845: e8 2a b6 fe ff call 10be74 <rtems_disk_release> <== NOT EXECUTED
12084a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
return ret_val;
}
12084d: 89 d8 mov %ebx,%eax <== NOT EXECUTED
12084f: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
120852: 5b pop %ebx <== NOT EXECUTED
120853: 5e pop %esi <== NOT EXECUTED
120854: 5f pop %edi <== NOT EXECUTED
120855: c9 leave <== NOT EXECUTED
120856: 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);
120857: 53 push %ebx <== NOT EXECUTED
120858: 53 push %ebx <== NOT EXECUTED
120859: ff 75 b0 pushl -0x50(%ebp) <== NOT EXECUTED
12085c: ff 75 ac pushl -0x54(%ebp) <== NOT EXECUTED
12085f: e8 89 b4 fe ff call 10bced <rtems_disk_obtain> <== NOT EXECUTED
120864: 89 85 2c fd ff ff mov %eax,-0x2d4(%ebp) <== NOT EXECUTED
if (dd == NULL) {
12086a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12086d: 85 c0 test %eax,%eax <== NOT EXECUTED
12086f: 0f 84 a4 f4 ff ff je 11fd19 <msdos_format+0x74> <== NOT EXECUTED
/*
* open device for writing
*/
if (ret_val == 0) {
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,
120875: 51 push %ecx <== NOT EXECUTED
120876: 68 2c 8b 15 00 push $0x158b2c <== NOT EXECUTED
12087b: 6a 02 push $0x2 <== NOT EXECUTED
12087d: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
120880: e8 9b f2 ff ff call 11fb20 <msdos_format_printf> <== NOT EXECUTED
"open device\n");
fd = open(devname, O_RDWR);
120885: 58 pop %eax <== NOT EXECUTED
120886: 5a pop %edx <== NOT EXECUTED
120887: 6a 02 push $0x2 <== NOT EXECUTED
120889: 57 push %edi <== NOT EXECUTED
12088a: e8 b5 d4 fe ff call 10dd44 <open> <== NOT EXECUTED
12088f: 89 85 34 fd ff ff mov %eax,-0x2cc(%ebp) <== NOT EXECUTED
if (fd == -1)
120895: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
120898: 83 cb ff or $0xffffffff,%ebx <== NOT EXECUTED
12089b: 40 inc %eax <== NOT EXECUTED
12089c: 0f 84 85 f4 ff ff je 11fd27 <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));
1208a2: 8d 95 44 ff ff ff lea -0xbc(%ebp),%edx <== NOT EXECUTED
1208a8: b9 14 00 00 00 mov $0x14,%ecx <== NOT EXECUTED
1208ad: 89 d7 mov %edx,%edi <== NOT EXECUTED
1208af: 89 f0 mov %esi,%eax <== NOT EXECUTED
1208b1: 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;
1208b3: 8b 95 2c fd ff ff mov -0x2d4(%ebp),%edx <== NOT EXECUTED
1208b9: 8b 42 20 mov 0x20(%edx),%eax <== NOT EXECUTED
1208bc: 89 85 44 ff ff ff mov %eax,-0xbc(%ebp) <== NOT EXECUTED
fmt_params->totl_sector_cnt = dd->size;
1208c2: 8b 5a 1c mov 0x1c(%edx),%ebx <== NOT EXECUTED
1208c5: 89 9d 48 ff ff ff mov %ebx,-0xb8(%ebp) <== NOT EXECUTED
total_size = dd->block_size * dd->size;
1208cb: 89 da mov %ebx,%edx <== NOT EXECUTED
1208cd: 0f af d0 imul %eax,%edx <== NOT EXECUTED
1208d0: 31 c9 xor %ecx,%ecx <== NOT EXECUTED
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,
1208d2: 56 push %esi <== NOT EXECUTED
1208d3: 51 push %ecx <== NOT EXECUTED
1208d4: 52 push %edx <== NOT EXECUTED
1208d5: 53 push %ebx <== NOT EXECUTED
1208d6: 50 push %eax <== NOT EXECUTED
1208d7: 68 39 8b 15 00 push $0x158b39 <== NOT EXECUTED
1208dc: 6a 02 push $0x2 <== NOT EXECUTED
1208de: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
1208e1: 89 95 18 fd ff ff mov %edx,-0x2e8(%ebp) <== NOT EXECUTED
1208e7: 89 8d 14 fd ff ff mov %ecx,-0x2ec(%ebp) <== NOT EXECUTED
1208ed: e8 2e f2 ff ff call 11fb20 <msdos_format_printf> <== NOT EXECUTED
}
/*
* determine number of FATs
*/
if (ret_val == 0) {
if ((rqdata == NULL) ||
1208f2: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
1208f5: 83 7d 0c 00 cmpl $0x0,0xc(%ebp) <== NOT EXECUTED
1208f9: 8b 95 18 fd ff ff mov -0x2e8(%ebp),%edx <== NOT EXECUTED
1208ff: 8b 8d 14 fd ff ff mov -0x2ec(%ebp),%ecx <== NOT EXECUTED
120905: 0f 85 33 f4 ff ff jne 11fd3e <msdos_format+0x99> <== NOT EXECUTED
12090b: e9 38 f4 ff ff jmp 11fd48 <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,
120910: 50 push %eax <== NOT EXECUTED
120911: 68 71 8b 15 00 push $0x158b71 <== NOT EXECUTED
120916: 6a 02 push $0x2 <== NOT EXECUTED
120918: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
12091b: e8 00 f2 ff ff call 11fb20 <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) {
120920: 8b 95 48 ff ff ff mov -0xb8(%ebp),%edx <== NOT EXECUTED
120926: 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)) {
120929: 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) {
12092b: 81 fa ff ff 00 00 cmp $0xffff,%edx <== NOT EXECUTED
120931: 0f 87 60 f9 ff ff ja 120297 <msdos_format+0x5f2> <== NOT EXECUTED
120937: 89 d3 mov %edx,%ebx <== NOT EXECUTED
120939: 31 d2 xor %edx,%edx <== NOT EXECUTED
12093b: e9 57 f9 ff ff jmp 120297 <msdos_format+0x5f2> <== NOT EXECUTED
}
/*
* write fsinfo sector
*/
if ((ret_val == 0) &&
(fmt_params.fsinfo_sec != 0)) {
120940: 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) &&
120946: 85 d2 test %edx,%edx <== NOT EXECUTED
120948: 0f 84 06 fd ff ff je 120654 <msdos_format+0x9af> <== NOT EXECUTED
12094e: e9 d9 fc ff ff jmp 12062c <msdos_format+0x987> <== NOT EXECUTED
0011fba0 <msdos_format_fill_sectors>:
)
/*-------------------------------------------------------------------------*\
| Return Value: |
| 0, if success, -1 and errno if failed |
\*=========================================================================*/
{
11fba0: 55 push %ebp <== NOT EXECUTED
11fba1: 89 e5 mov %esp,%ebp <== NOT EXECUTED
11fba3: 57 push %edi <== NOT EXECUTED
11fba4: 56 push %esi <== NOT EXECUTED
11fba5: 53 push %ebx <== NOT EXECUTED
11fba6: 83 ec 38 sub $0x38,%esp <== NOT EXECUTED
11fba9: 89 c6 mov %eax,%esi <== NOT EXECUTED
11fbab: 89 55 d8 mov %edx,-0x28(%ebp) <== NOT EXECUTED
11fbae: 89 4d e0 mov %ecx,-0x20(%ebp) <== NOT EXECUTED
11fbb1: 8a 45 10 mov 0x10(%ebp),%al <== NOT EXECUTED
11fbb4: 88 45 e4 mov %al,-0x1c(%ebp) <== NOT EXECUTED
/*
* allocate and fill buffer
*/
if (ret_val == 0) {
fill_buffer = malloc(sector_size);
11fbb7: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
11fbba: e8 29 d8 fe ff call 10d3e8 <malloc> <== NOT EXECUTED
11fbbf: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (fill_buffer == NULL) {
11fbc1: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
11fbc4: 85 c0 test %eax,%eax <== NOT EXECUTED
11fbc6: 75 10 jne 11fbd8 <msdos_format_fill_sectors+0x38><== NOT EXECUTED
errno = ENOMEM;
11fbc8: e8 cb d1 01 00 call 13cd98 <__errno> <== NOT EXECUTED
11fbcd: c7 00 0c 00 00 00 movl $0xc,(%eax) <== NOT EXECUTED
11fbd3: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
11fbd6: eb 0c jmp 11fbe4 <msdos_format_fill_sectors+0x44><== NOT EXECUTED
ret_val = -1;
}
else {
memset(fill_buffer,fill_byte,sector_size);
11fbd8: 89 c7 mov %eax,%edi <== NOT EXECUTED
11fbda: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED
11fbdd: 8a 45 e4 mov -0x1c(%ebp),%al <== NOT EXECUTED
11fbe0: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED
11fbe2: 31 c0 xor %eax,%eax <== NOT EXECUTED
}
}
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,
11fbe4: 57 push %edi <== NOT EXECUTED
11fbe5: 68 69 8a 15 00 push $0x158a69 <== NOT EXECUTED
11fbea: 6a 02 push $0x2 <== NOT EXECUTED
11fbec: 56 push %esi <== NOT EXECUTED
11fbed: 89 45 d4 mov %eax,-0x2c(%ebp) <== NOT EXECUTED
11fbf0: e8 2b ff ff ff call 11fb20 <msdos_format_printf> <== NOT EXECUTED
11fbf5: 6b 55 08 64 imul $0x64,0x8(%ebp),%edx <== NOT EXECUTED
11fbf9: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED
11fbfc: 8b 7d 08 mov 0x8(%ebp),%edi <== NOT EXECUTED
11fbff: 83 c9 ff or $0xffffffff,%ecx <== NOT EXECUTED
"Filling : ");
/*
* write to consecutive sectors
*/
while ((ret_val == 0) &&
11fc02: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
11fc05: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED
11fc08: eb 44 jmp 11fc4e <msdos_format_fill_sectors+0xae><== NOT EXECUTED
(sector_cnt > 0)) {
int percent = (sector_cnt * 100) / total_sectors;
11fc0a: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
11fc0d: 31 d2 xor %edx,%edx <== NOT EXECUTED
11fc0f: f7 75 08 divl 0x8(%ebp) <== NOT EXECUTED
11fc12: 89 45 dc mov %eax,-0x24(%ebp) <== NOT EXECUTED
if (percent != last_percent) {
11fc15: 39 c8 cmp %ecx,%eax <== NOT EXECUTED
11fc17: 74 15 je 11fc2e <msdos_format_fill_sectors+0x8e><== NOT EXECUTED
if ((percent & 1) == 0)
11fc19: a8 01 test $0x1,%al <== NOT EXECUTED
11fc1b: 75 11 jne 11fc2e <msdos_format_fill_sectors+0x8e><== NOT EXECUTED
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL, ".");
11fc1d: 51 push %ecx <== NOT EXECUTED
11fc1e: 68 fe 74 15 00 push $0x1574fe <== NOT EXECUTED
11fc23: 6a 02 push $0x2 <== NOT EXECUTED
11fc25: 56 push %esi <== NOT EXECUTED
11fc26: e8 f5 fe ff ff call 11fb20 <msdos_format_printf> <== NOT EXECUTED
11fc2b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
last_percent = percent;
}
ret_val = msdos_format_write_sec(fd,start_sector,sector_size,fill_buffer);
11fc2e: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
11fc31: 53 push %ebx <== NOT EXECUTED
11fc32: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED
11fc35: 8b 55 e0 mov -0x20(%ebp),%edx <== NOT EXECUTED
11fc38: 8b 45 d8 mov -0x28(%ebp),%eax <== NOT EXECUTED
11fc3b: e8 1d ff ff ff call 11fb5d <msdos_format_write_sec><== NOT EXECUTED
start_sector++;
11fc40: ff 45 e0 incl -0x20(%ebp) <== NOT EXECUTED
sector_cnt--;
11fc43: 4f dec %edi <== NOT EXECUTED
11fc44: 83 6d e4 64 subl $0x64,-0x1c(%ebp) <== NOT EXECUTED
11fc48: 8b 4d dc mov -0x24(%ebp),%ecx <== NOT EXECUTED
11fc4b: 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) &&
11fc4e: 85 ff test %edi,%edi <== NOT EXECUTED
11fc50: 74 04 je 11fc56 <msdos_format_fill_sectors+0xb6><== NOT EXECUTED
11fc52: 85 c0 test %eax,%eax <== NOT EXECUTED
11fc54: 74 b4 je 11fc0a <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");
11fc56: 52 push %edx <== NOT EXECUTED
11fc57: 68 c5 ba 15 00 push $0x15bac5 <== NOT EXECUTED
11fc5c: 6a 02 push $0x2 <== NOT EXECUTED
11fc5e: 56 push %esi <== NOT EXECUTED
11fc5f: 89 45 d4 mov %eax,-0x2c(%ebp) <== NOT EXECUTED
11fc62: e8 b9 fe ff ff call 11fb20 <msdos_format_printf> <== NOT EXECUTED
if (ret_val)
11fc67: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
11fc6a: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED
11fc6d: 85 c0 test %eax,%eax <== NOT EXECUTED
11fc6f: 74 16 je 11fc87 <msdos_format_fill_sectors+0xe7><== NOT EXECUTED
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_INFO,
11fc71: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
11fc74: 68 74 8a 15 00 push $0x158a74 <== NOT EXECUTED
11fc79: 6a 01 push $0x1 <== NOT EXECUTED
11fc7b: 56 push %esi <== NOT EXECUTED
11fc7c: e8 9f fe ff ff call 11fb20 <msdos_format_printf> <== NOT EXECUTED
11fc81: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
11fc84: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED
"filling error on sector: %d\n", start_sector);
/*
* cleanup
*/
if (fill_buffer != NULL) {
11fc87: 85 db test %ebx,%ebx <== NOT EXECUTED
11fc89: 74 12 je 11fc9d <msdos_format_fill_sectors+0xfd><== NOT EXECUTED
free(fill_buffer);
11fc8b: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
11fc8e: 53 push %ebx <== NOT EXECUTED
11fc8f: 89 45 d4 mov %eax,-0x2c(%ebp) <== NOT EXECUTED
11fc92: e8 05 d2 fe ff call 10ce9c <free> <== NOT EXECUTED
11fc97: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
11fc9a: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED
fill_buffer = NULL;
}
return ret_val;
}
11fc9d: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
11fca0: 5b pop %ebx <== NOT EXECUTED
11fca1: 5e pop %esi <== NOT EXECUTED
11fca2: 5f pop %edi <== NOT EXECUTED
11fca3: c9 leave <== NOT EXECUTED
11fca4: c3 ret <== NOT EXECUTED
0011fb20 <msdos_format_printf>:
*/
static void
msdos_format_printf (const msdos_format_request_param_t *rqdata,
int info_level,
const char *format, ...)
{
11fb20: 55 push %ebp <== NOT EXECUTED
11fb21: 89 e5 mov %esp,%ebp <== NOT EXECUTED
11fb23: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
11fb26: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
/*
* Formatted output.
*/
static void
msdos_format_printf (const msdos_format_request_param_t *rqdata,
11fb29: 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)
11fb2c: 85 c0 test %eax,%eax <== NOT EXECUTED
11fb2e: 74 2b je 11fb5b <msdos_format_printf+0x3b><== NOT EXECUTED
11fb30: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED
11fb33: 39 48 1c cmp %ecx,0x1c(%eax) <== NOT EXECUTED
11fb36: 7c 23 jl 11fb5b <msdos_format_printf+0x3b><== NOT EXECUTED
{
vfprintf (stdout, format, args);
11fb38: 51 push %ecx <== NOT EXECUTED
11fb39: 52 push %edx <== NOT EXECUTED
11fb3a: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
11fb3d: a1 a0 29 16 00 mov 0x1629a0,%eax <== NOT EXECUTED
11fb42: ff 70 08 pushl 0x8(%eax) <== NOT EXECUTED
11fb45: e8 2a aa 02 00 call 14a574 <vfprintf> <== NOT EXECUTED
fflush (stdout);
11fb4a: 58 pop %eax <== NOT EXECUTED
11fb4b: a1 a0 29 16 00 mov 0x1629a0,%eax <== NOT EXECUTED
11fb50: ff 70 08 pushl 0x8(%eax) <== NOT EXECUTED
11fb53: e8 bc d5 01 00 call 13d114 <fflush> <== NOT EXECUTED
11fb58: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
va_end (args);
}
11fb5b: c9 leave <== NOT EXECUTED
11fb5c: c3 ret <== NOT EXECUTED
0011fb5d <msdos_format_write_sec>:
)
/*-------------------------------------------------------------------------*\
| Return Value: |
| 0, if success, -1 and errno if failed |
\*=========================================================================*/
{
11fb5d: 55 push %ebp <== NOT EXECUTED
11fb5e: 89 e5 mov %esp,%ebp <== NOT EXECUTED
11fb60: 57 push %edi <== NOT EXECUTED
11fb61: 56 push %esi <== NOT EXECUTED
11fb62: 53 push %ebx <== NOT EXECUTED
11fb63: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
11fb66: 89 c3 mov %eax,%ebx <== NOT EXECUTED
11fb68: 89 ce mov %ecx,%esi <== NOT EXECUTED
int ret_val = 0;
if (0 > lseek(fd,((off_t)start_sector)*sector_size,SEEK_SET)) {
11fb6a: 6a 00 push $0x0 <== NOT EXECUTED
11fb6c: 89 c8 mov %ecx,%eax <== NOT EXECUTED
11fb6e: f7 e2 mul %edx <== NOT EXECUTED
11fb70: 52 push %edx <== NOT EXECUTED
11fb71: 50 push %eax <== NOT EXECUTED
11fb72: 53 push %ebx <== NOT EXECUTED
11fb73: e8 38 8d 00 00 call 1288b0 <lseek> <== NOT EXECUTED
11fb78: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
11fb7b: 85 d2 test %edx,%edx <== NOT EXECUTED
11fb7d: 78 16 js 11fb95 <msdos_format_write_sec+0x38><== NOT EXECUTED
ret_val = -1;
}
if (ret_val == 0) {
if (0 > write(fd,buffer,sector_size)) {
11fb7f: 57 push %edi <== NOT EXECUTED
11fb80: 56 push %esi <== NOT EXECUTED
11fb81: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
11fb84: 53 push %ebx <== NOT EXECUTED
11fb85: e8 22 06 ff ff call 1101ac <write> <== NOT EXECUTED
11fb8a: 89 c2 mov %eax,%edx <== NOT EXECUTED
11fb8c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
11fb8f: 31 c0 xor %eax,%eax <== NOT EXECUTED
11fb91: 85 d2 test %edx,%edx <== NOT EXECUTED
11fb93: 79 03 jns 11fb98 <msdos_format_write_sec+0x3b><== NOT EXECUTED
11fb95: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
ret_val = -1;
}
}
return ret_val;
}
11fb98: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
11fb9b: 5b pop %ebx <== NOT EXECUTED
11fb9c: 5e pop %esi <== NOT EXECUTED
11fb9d: 5f pop %edi <== NOT EXECUTED
11fb9e: c9 leave <== NOT EXECUTED
11fb9f: c3 ret <== NOT EXECUTED
00132c88 <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)
{
132c88: 55 push %ebp <== NOT EXECUTED
132c89: 89 e5 mov %esp,%ebp <== NOT EXECUTED
132c8b: 56 push %esi <== NOT EXECUTED
132c8c: 53 push %ebx <== NOT EXECUTED
132c8d: 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;
132c90: 8b 43 10 mov 0x10(%ebx),%eax <== NOT EXECUTED
132c93: 8b 70 34 mov 0x34(%eax),%esi <== NOT EXECUTED
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
132c96: 51 push %ecx <== NOT EXECUTED
132c97: 6a 00 push $0x0 <== NOT EXECUTED
132c99: 6a 00 push $0x0 <== NOT EXECUTED
132c9b: ff b6 94 00 00 00 pushl 0x94(%esi) <== NOT EXECUTED
132ca1: e8 62 df fd ff call 110c08 <rtems_semaphore_obtain><== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
132ca6: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
132ca9: 85 c0 test %eax,%eax <== NOT EXECUTED
132cab: 74 10 je 132cbd <msdos_free_node_info+0x35><== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
132cad: e8 e6 a0 00 00 call 13cd98 <__errno> <== NOT EXECUTED
132cb2: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
132cb8: 83 cb ff or $0xffffffff,%ebx <== NOT EXECUTED
132cbb: eb 1d jmp 132cda <msdos_free_node_info+0x52><== NOT EXECUTED
rc = fat_file_close(pathloc->mt_entry, pathloc->node_access);
132cbd: 52 push %edx <== NOT EXECUTED
132cbe: 52 push %edx <== NOT EXECUTED
132cbf: ff 33 pushl (%ebx) <== NOT EXECUTED
132cc1: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED
132cc4: e8 0c 26 ff ff call 1252d5 <fat_file_close> <== NOT EXECUTED
132cc9: 89 c3 mov %eax,%ebx <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
132ccb: 58 pop %eax <== NOT EXECUTED
132ccc: ff b6 94 00 00 00 pushl 0x94(%esi) <== NOT EXECUTED
132cd2: e8 1d e0 fd ff call 110cf4 <rtems_semaphore_release><== NOT EXECUTED
return rc;
132cd7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
132cda: 89 d8 mov %ebx,%eax <== NOT EXECUTED
132cdc: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
132cdf: 5b pop %ebx <== NOT EXECUTED
132ce0: 5e pop %esi <== NOT EXECUTED
132ce1: c9 leave <== NOT EXECUTED
132ce2: c3 ret <== NOT EXECUTED
00133b2e <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
)
{
133b2e: 55 push %ebp <== NOT EXECUTED
133b2f: 89 e5 mov %esp,%ebp <== NOT EXECUTED
133b31: 57 push %edi <== NOT EXECUTED
133b32: 56 push %esi <== NOT EXECUTED
133b33: 53 push %ebx <== NOT EXECUTED
133b34: 81 ec 90 00 00 00 sub $0x90,%esp <== NOT EXECUTED
133b3a: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
133b3d: 8b 7d 0c mov 0xc(%ebp),%edi <== NOT EXECUTED
int rc = RC_OK;
msdos_fs_info_t *fs_info = mt_entry->fs_info;
133b40: 8b 46 34 mov 0x34(%esi),%eax <== NOT EXECUTED
133b43: 89 45 80 mov %eax,-0x80(%ebp) <== NOT EXECUTED
fat_file_fd_t *fat_fd = NULL;
133b46: 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);
133b4d: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
133b50: 50 push %eax <== NOT EXECUTED
133b51: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
133b54: 56 push %esi <== NOT EXECUTED
133b55: e8 2a 18 ff ff call 125384 <fat_file_open> <== NOT EXECUTED
133b5a: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc != RC_OK)
133b5c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
133b5f: 85 c0 test %eax,%eax <== NOT EXECUTED
133b61: 0f 85 de 01 00 00 jne 133d45 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x217><== NOT EXECUTED
return rc;
fat_fd->cln = cln;
133b67: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
133b6a: 89 78 1c mov %edi,0x1c(%eax) <== NOT EXECUTED
fat_fd->fat_file_type = FAT_DIRECTORY;
133b6d: c7 40 10 01 00 00 00 movl $0x1,0x10(%eax) <== NOT EXECUTED
fat_fd->size_limit = MSDOS_MAX_DIR_LENGHT;
133b74: c7 40 14 00 00 20 00 movl $0x200000,0x14(%eax) <== NOT EXECUTED
fat_fd->map.file_cln = 0;
133b7b: c7 40 34 00 00 00 00 movl $0x0,0x34(%eax) <== NOT EXECUTED
fat_fd->map.disk_cln = fat_fd->cln;
133b82: 89 78 38 mov %edi,0x38(%eax) <== NOT EXECUTED
rc = fat_file_size(mt_entry, fat_fd);
133b85: 52 push %edx <== NOT EXECUTED
133b86: 52 push %edx <== NOT EXECUTED
133b87: 50 push %eax <== NOT EXECUTED
133b88: 56 push %esi <== NOT EXECUTED
133b89: e8 53 0e ff ff call 1249e1 <fat_file_size> <== NOT EXECUTED
133b8e: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc != RC_OK)
133b90: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
133b93: 85 c0 test %eax,%eax <== NOT EXECUTED
133b95: 0f 85 8d 01 00 00 jne 133d28 <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);
133b9b: 8d 4d c4 lea -0x3c(%ebp),%ecx <== NOT EXECUTED
133b9e: 89 8d 74 ff ff ff mov %ecx,-0x8c(%ebp) <== NOT EXECUTED
133ba4: b9 08 00 00 00 mov $0x8,%ecx <== NOT EXECUTED
133ba9: 8b bd 74 ff ff ff mov -0x8c(%ebp),%edi <== NOT EXECUTED
133baf: f3 ab rep stos %eax,%es:(%edi) <== NOT EXECUTED
msdos_long_to_short(".", 1, dot_node, MSDOS_SHORT_NAME_LEN);
133bb1: 6a 0b push $0xb <== NOT EXECUTED
133bb3: 8d 4d c4 lea -0x3c(%ebp),%ecx <== NOT EXECUTED
133bb6: 51 push %ecx <== NOT EXECUTED
133bb7: 6a 01 push $0x1 <== NOT EXECUTED
133bb9: 68 fe 74 15 00 push $0x1574fe <== NOT EXECUTED
133bbe: e8 27 fe ff ff call 1339ea <msdos_long_to_short> <== NOT EXECUTED
rc = msdos_find_name_in_fat_file(mt_entry, fat_fd, false, ".", 1,
133bc3: 8d 45 c4 lea -0x3c(%ebp),%eax <== NOT EXECUTED
133bc6: 50 push %eax <== NOT EXECUTED
133bc7: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
133bca: 6a 01 push $0x1 <== NOT EXECUTED
133bcc: 6a 01 push $0x1 <== NOT EXECUTED
133bce: 68 fe 74 15 00 push $0x1574fe <== NOT EXECUTED
133bd3: 6a 00 push $0x0 <== NOT EXECUTED
133bd5: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
133bd8: 56 push %esi <== NOT EXECUTED
133bd9: e8 89 f2 ff ff call 132e67 <msdos_find_name_in_fat_file><== NOT EXECUTED
133bde: 89 c3 mov %eax,%ebx <== NOT EXECUTED
MSDOS_NAME_SHORT, dir_pos, dot_node);
if (rc != RC_OK)
133be0: 83 c4 30 add $0x30,%esp <== NOT EXECUTED
133be3: 85 c0 test %eax,%eax <== NOT EXECUTED
133be5: 0f 85 3d 01 00 00 jne 133d28 <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);
133beb: 8d 55 a4 lea -0x5c(%ebp),%edx <== NOT EXECUTED
133bee: b9 08 00 00 00 mov $0x8,%ecx <== NOT EXECUTED
133bf3: 89 d7 mov %edx,%edi <== NOT EXECUTED
133bf5: f3 ab rep stos %eax,%es:(%edi) <== NOT EXECUTED
msdos_long_to_short("..", 2, dotdot_node, MSDOS_SHORT_NAME_LEN);
133bf7: 6a 0b push $0xb <== NOT EXECUTED
133bf9: 52 push %edx <== NOT EXECUTED
133bfa: 6a 02 push $0x2 <== NOT EXECUTED
133bfc: 68 8c 7d 15 00 push $0x157d8c <== NOT EXECUTED
133c01: 89 95 7c ff ff ff mov %edx,-0x84(%ebp) <== NOT EXECUTED
133c07: e8 de fd ff ff call 1339ea <msdos_long_to_short> <== NOT EXECUTED
rc = msdos_find_name_in_fat_file(mt_entry, fat_fd, false, "..", 2,
133c0c: 8b 95 7c ff ff ff mov -0x84(%ebp),%edx <== NOT EXECUTED
133c12: 52 push %edx <== NOT EXECUTED
133c13: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
133c16: 6a 01 push $0x1 <== NOT EXECUTED
133c18: 6a 02 push $0x2 <== NOT EXECUTED
133c1a: 68 8c 7d 15 00 push $0x157d8c <== NOT EXECUTED
133c1f: 6a 00 push $0x0 <== NOT EXECUTED
133c21: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
133c24: 56 push %esi <== NOT EXECUTED
133c25: e8 3d f2 ff ff call 132e67 <msdos_find_name_in_fat_file><== NOT EXECUTED
133c2a: 89 c3 mov %eax,%ebx <== NOT EXECUTED
MSDOS_NAME_SHORT, dir_pos,
dotdot_node);
if (rc != RC_OK)
133c2c: 83 c4 30 add $0x30,%esp <== NOT EXECUTED
133c2f: 85 c0 test %eax,%eax <== NOT EXECUTED
133c31: 0f 85 f1 00 00 00 jne 133d28 <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);
133c37: 66 8b 4d de mov -0x22(%ebp),%cx <== NOT EXECUTED
133c3b: 66 89 4d 86 mov %cx,-0x7a(%ebp) <== NOT EXECUTED
133c3f: 8b 45 d8 mov -0x28(%ebp),%eax <== NOT EXECUTED
133c42: 66 89 45 88 mov %ax,-0x78(%ebp) <== NOT EXECUTED
/* close fat-file corresponded to ".." directory */
rc = fat_file_close(mt_entry, fat_fd);
133c46: 57 push %edi <== NOT EXECUTED
133c47: 57 push %edi <== NOT EXECUTED
133c48: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
133c4b: 56 push %esi <== NOT EXECUTED
133c4c: e8 84 16 ff ff call 1252d5 <fat_file_close> <== NOT EXECUTED
133c51: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if ( rc != RC_OK )
133c53: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
133c56: 85 c0 test %eax,%eax <== NOT EXECUTED
133c58: 0f 85 e7 00 00 00 jne 133d45 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x217><== NOT EXECUTED
return rc;
if ( (MSDOS_EXTRACT_CLUSTER_NUM(dotdot_node)) == 0)
133c5e: 8d 55 be lea -0x42(%ebp),%edx <== NOT EXECUTED
133c61: 8d 7d b8 lea -0x48(%ebp),%edi <== NOT EXECUTED
133c64: 66 83 7d b8 00 cmpw $0x0,-0x48(%ebp) <== NOT EXECUTED
133c69: 75 25 jne 133c90 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x162><== NOT EXECUTED
133c6b: 66 83 7d be 00 cmpw $0x0,-0x42(%ebp) <== NOT EXECUTED
133c70: 75 1e jne 133c90 <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;
133c72: 8b 4d 10 mov 0x10(%ebp),%ecx <== NOT EXECUTED
133c75: c7 41 04 00 00 00 00 movl $0x0,0x4(%ecx) <== NOT EXECUTED
dir_pos->lname.cln = FAT_FILE_SHORT_NAME;
133c7c: c7 41 08 ff ff ff ff movl $0xffffffff,0x8(%ecx) <== NOT EXECUTED
dir_pos->lname.ofs = FAT_FILE_SHORT_NAME;
133c83: 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;
133c8a: 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);
133c90: 53 push %ebx <== NOT EXECUTED
133c91: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
133c94: 50 push %eax <== NOT EXECUTED
133c95: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
133c98: 56 push %esi <== NOT EXECUTED
133c99: 89 95 7c ff ff ff mov %edx,-0x84(%ebp) <== NOT EXECUTED
133c9f: e8 e0 16 ff ff call 125384 <fat_file_open> <== NOT EXECUTED
133ca4: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc != RC_OK)
133ca6: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
133ca9: 85 c0 test %eax,%eax <== NOT EXECUTED
133cab: 8b 95 7c ff ff ff mov -0x84(%ebp),%edx <== NOT EXECUTED
133cb1: 0f 85 8e 00 00 00 jne 133d45 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x217><== NOT EXECUTED
return rc;
if ((MSDOS_EXTRACT_CLUSTER_NUM(dotdot_node)) == 0)
133cb7: 0f b7 07 movzwl (%edi),%eax <== NOT EXECUTED
133cba: c1 e0 10 shl $0x10,%eax <== NOT EXECUTED
133cbd: 0f b7 12 movzwl (%edx),%edx <== NOT EXECUTED
133cc0: 09 d0 or %edx,%eax <== NOT EXECUTED
133cc2: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
133cc5: 75 06 jne 133ccd <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x19f><== NOT EXECUTED
fat_fd->cln = fs_info->fat.vol.rdir_cl;
133cc7: 8b 4d 80 mov -0x80(%ebp),%ecx <== NOT EXECUTED
133cca: 8b 41 38 mov 0x38(%ecx),%eax <== NOT EXECUTED
else
fat_fd->cln = MSDOS_EXTRACT_CLUSTER_NUM(dotdot_node);
133ccd: 89 42 1c mov %eax,0x1c(%edx) <== NOT EXECUTED
fat_fd->fat_file_type = FAT_DIRECTORY;
133cd0: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
133cd3: c7 40 10 01 00 00 00 movl $0x1,0x10(%eax) <== NOT EXECUTED
fat_fd->size_limit = MSDOS_MAX_DIR_LENGHT;
133cda: c7 40 14 00 00 20 00 movl $0x200000,0x14(%eax) <== NOT EXECUTED
fat_fd->map.file_cln = 0;
133ce1: c7 40 34 00 00 00 00 movl $0x0,0x34(%eax) <== NOT EXECUTED
fat_fd->map.disk_cln = fat_fd->cln;
133ce8: 8b 50 1c mov 0x1c(%eax),%edx <== NOT EXECUTED
133ceb: 89 50 38 mov %edx,0x38(%eax) <== NOT EXECUTED
rc = fat_file_size(mt_entry, fat_fd);
133cee: 51 push %ecx <== NOT EXECUTED
133cef: 51 push %ecx <== NOT EXECUTED
133cf0: 50 push %eax <== NOT EXECUTED
133cf1: 56 push %esi <== NOT EXECUTED
133cf2: e8 ea 0c ff ff call 1249e1 <fat_file_size> <== NOT EXECUTED
133cf7: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc != RC_OK)
133cf9: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
133cfc: 85 c0 test %eax,%eax <== NOT EXECUTED
133cfe: 75 28 jne 133d28 <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,
133d00: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
133d03: ff 75 14 pushl 0x14(%ebp) <== NOT EXECUTED
133d06: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
133d09: 8b 45 88 mov -0x78(%ebp),%eax <== NOT EXECUTED
133d0c: c1 e0 10 shl $0x10,%eax <== NOT EXECUTED
133d0f: 0f b7 55 86 movzwl -0x7a(%ebp),%edx <== NOT EXECUTED
133d13: 09 d0 or %edx,%eax <== NOT EXECUTED
133d15: 50 push %eax <== NOT EXECUTED
133d16: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
133d19: 56 push %esi <== NOT EXECUTED
133d1a: e8 25 f0 ff ff call 132d44 <msdos_find_node_by_cluster_num_in_fat_file><== NOT EXECUTED
133d1f: 89 c3 mov %eax,%ebx <== NOT EXECUTED
dir_pos, dir_entry);
if (rc != RC_OK)
133d21: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
133d24: 85 c0 test %eax,%eax <== NOT EXECUTED
133d26: 74 0d je 133d35 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x207><== NOT EXECUTED
{
fat_file_close(mt_entry, fat_fd);
133d28: 52 push %edx <== NOT EXECUTED
133d29: 52 push %edx <== NOT EXECUTED
133d2a: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
133d2d: 56 push %esi <== NOT EXECUTED
133d2e: e8 a2 15 ff ff call 1252d5 <fat_file_close> <== NOT EXECUTED
133d33: eb 0d jmp 133d42 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x214><== NOT EXECUTED
return rc;
}
rc = fat_file_close(mt_entry, fat_fd);
133d35: 50 push %eax <== NOT EXECUTED
133d36: 50 push %eax <== NOT EXECUTED
133d37: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
133d3a: 56 push %esi <== NOT EXECUTED
133d3b: e8 95 15 ff ff call 1252d5 <fat_file_close> <== NOT EXECUTED
133d40: 89 c3 mov %eax,%ebx <== NOT EXECUTED
return rc;
133d42: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
133d45: 89 d8 mov %ebx,%eax <== NOT EXECUTED
133d47: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
133d4a: 5b pop %ebx <== NOT EXECUTED
133d4b: 5e pop %esi <== NOT EXECUTED
133d4c: 5f pop %edi <== NOT EXECUTED
133d4d: c9 leave <== NOT EXECUTED
133d4e: c3 ret <== NOT EXECUTED
00133d4f <msdos_get_name_node>:
int name_len,
msdos_name_type_t name_type,
fat_dir_pos_t *dir_pos,
char *name_dir_entry
)
{
133d4f: 55 push %ebp <== NOT EXECUTED
133d50: 89 e5 mov %esp,%ebp <== NOT EXECUTED
133d52: 57 push %edi <== NOT EXECUTED
133d53: 56 push %esi <== NOT EXECUTED
133d54: 53 push %ebx <== NOT EXECUTED
133d55: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
133d58: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
133d5b: 8b 4d 10 mov 0x10(%ebp),%ecx <== NOT EXECUTED
133d5e: 8b 5d 1c mov 0x1c(%ebp),%ebx <== NOT EXECUTED
133d61: 8b 7d 20 mov 0x20(%ebp),%edi <== NOT EXECUTED
133d64: 8a 45 0c mov 0xc(%ebp),%al <== NOT EXECUTED
133d67: 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,
133d6a: 57 push %edi <== NOT EXECUTED
133d6b: 53 push %ebx <== NOT EXECUTED
133d6c: ff 75 18 pushl 0x18(%ebp) <== NOT EXECUTED
133d6f: ff 75 14 pushl 0x14(%ebp) <== NOT EXECUTED
133d72: 51 push %ecx <== NOT EXECUTED
133d73: 0f b6 c0 movzbl %al,%eax <== NOT EXECUTED
133d76: 50 push %eax <== NOT EXECUTED
133d77: ff 32 pushl (%edx) <== NOT EXECUTED
133d79: ff 72 10 pushl 0x10(%edx) <== NOT EXECUTED
133d7c: 89 55 e0 mov %edx,-0x20(%ebp) <== NOT EXECUTED
133d7f: 89 4d dc mov %ecx,-0x24(%ebp) <== NOT EXECUTED
133d82: e8 e0 f0 ff ff call 132e67 <msdos_find_name_in_fat_file><== NOT EXECUTED
133d87: 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))
133d89: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
133d8c: 3d 01 7d 00 00 cmp $0x7d01,%eax <== NOT EXECUTED
133d91: 8b 55 e0 mov -0x20(%ebp),%edx <== NOT EXECUTED
133d94: 8b 4d dc mov -0x24(%ebp),%ecx <== NOT EXECUTED
133d97: 74 04 je 133d9d <msdos_get_name_node+0x4e><== NOT EXECUTED
133d99: 85 c0 test %eax,%eax <== NOT EXECUTED
133d9b: 75 74 jne 133e11 <msdos_get_name_node+0xc2><== NOT EXECUTED
return rc;
if (!create_node)
133d9d: 80 7d e7 00 cmpb $0x0,-0x19(%ebp) <== NOT EXECUTED
133da1: 75 6e jne 133e11 <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)
133da3: 81 fe 01 7d 00 00 cmp $0x7d01,%esi <== NOT EXECUTED
133da9: 74 66 je 133e11 <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)
133dab: 85 f6 test %esi,%esi <== NOT EXECUTED
133dad: 75 62 jne 133e11 <msdos_get_name_node+0xc2><== NOT EXECUTED
{
if (strncmp(name, "..", 2) == 0)
133daf: 50 push %eax <== NOT EXECUTED
133db0: 6a 02 push $0x2 <== NOT EXECUTED
133db2: 68 8c 7d 15 00 push $0x157d8c <== NOT EXECUTED
133db7: 51 push %ecx <== NOT EXECUTED
133db8: 89 55 e0 mov %edx,-0x20(%ebp) <== NOT EXECUTED
133dbb: e8 a4 ec 00 00 call 142a64 <strncmp> <== NOT EXECUTED
133dc0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
133dc3: 85 c0 test %eax,%eax <== NOT EXECUTED
133dc5: 8b 55 e0 mov -0x20(%ebp),%edx <== NOT EXECUTED
133dc8: 75 47 jne 133e11 <msdos_get_name_node+0xc2><== NOT EXECUTED
{
dotdot_cln = MSDOS_EXTRACT_CLUSTER_NUM((name_dir_entry));
133dca: 0f b7 47 14 movzwl 0x14(%edi),%eax <== NOT EXECUTED
133dce: c1 e0 10 shl $0x10,%eax <== NOT EXECUTED
133dd1: 0f b7 4f 1a movzwl 0x1a(%edi),%ecx <== NOT EXECUTED
/* are we right under root dir ? */
if (dotdot_cln == 0)
133dd5: 09 c8 or %ecx,%eax <== NOT EXECUTED
133dd7: 75 1d jne 133df6 <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;
133dd9: c7 43 04 00 00 00 00 movl $0x0,0x4(%ebx) <== NOT EXECUTED
dir_pos->lname.cln = FAT_FILE_SHORT_NAME;
133de0: c7 43 08 ff ff ff ff movl $0xffffffff,0x8(%ebx) <== NOT EXECUTED
dir_pos->lname.ofs = FAT_FILE_SHORT_NAME;
133de7: 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;
133dee: c7 03 01 00 00 00 movl $0x1,(%ebx) <== NOT EXECUTED
133df4: eb 1b jmp 133e11 <msdos_get_name_node+0xc2><== NOT EXECUTED
}
else
{
rc =
msdos_get_dotdot_dir_info_cluster_num_and_offset(parent_loc->mt_entry,
133df6: 89 7d 14 mov %edi,0x14(%ebp) <== NOT EXECUTED
133df9: 89 5d 10 mov %ebx,0x10(%ebp) <== NOT EXECUTED
133dfc: 89 45 0c mov %eax,0xc(%ebp) <== NOT EXECUTED
133dff: 8b 42 10 mov 0x10(%edx),%eax <== NOT EXECUTED
133e02: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED
}
}
}
}
return rc;
}
133e05: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
133e08: 5b pop %ebx <== NOT EXECUTED
133e09: 5e pop %esi <== NOT EXECUTED
133e0a: 5f pop %edi <== NOT EXECUTED
133e0b: 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,
133e0c: e9 1d fd ff ff jmp 133b2e <msdos_get_dotdot_dir_info_cluster_num_and_offset><== NOT EXECUTED
}
}
}
}
return rc;
}
133e11: 89 f0 mov %esi,%eax <== NOT EXECUTED
133e13: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
133e16: 5b pop %ebx <== NOT EXECUTED
133e17: 5e pop %esi <== NOT EXECUTED
133e18: 5f pop %edi <== NOT EXECUTED
133e19: c9 leave <== NOT EXECUTED
133e1a: c3 ret <== NOT EXECUTED
0013393d <msdos_get_token>:
msdos_token_types_t
msdos_get_token(const char *path,
int pathlen,
const char **ret_token,
int *ret_token_len)
{
13393d: 55 push %ebp <== NOT EXECUTED
13393e: 89 e5 mov %esp,%ebp <== NOT EXECUTED
133940: 57 push %edi <== NOT EXECUTED
133941: 56 push %esi <== NOT EXECUTED
133942: 53 push %ebx <== NOT EXECUTED
133943: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
133946: 8b 7d 08 mov 0x8(%ebp),%edi <== NOT EXECUTED
133949: 8b 75 10 mov 0x10(%ebp),%esi <== NOT EXECUTED
msdos_token_types_t type = MSDOS_NAME;
int i = 0;
*ret_token = NULL;
13394c: c7 06 00 00 00 00 movl $0x0,(%esi) <== NOT EXECUTED
*ret_token_len = 0;
133952: 8b 45 14 mov 0x14(%ebp),%eax <== NOT EXECUTED
133955: c7 00 00 00 00 00 movl $0x0,(%eax) <== NOT EXECUTED
if (pathlen == 0)
13395b: 31 db xor %ebx,%ebx <== NOT EXECUTED
13395d: 31 c0 xor %eax,%eax <== NOT EXECUTED
13395f: 83 7d 0c 00 cmpl $0x0,0xc(%ebp) <== NOT EXECUTED
133963: 75 18 jne 13397d <msdos_get_token+0x40> <== NOT EXECUTED
133965: eb 7b jmp 1339e2 <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]) )
133967: 0f be 04 1f movsbl (%edi,%ebx,1),%eax <== NOT EXECUTED
13396b: e8 6e ff ff ff call 1338de <msdos_is_valid_name_char><== NOT EXECUTED
133970: 85 c0 test %eax,%eax <== NOT EXECUTED
133972: 74 69 je 1339dd <msdos_get_token+0xa0> <== NOT EXECUTED
return MSDOS_INVALID_TOKEN;
++i;
133974: 43 inc %ebx <== NOT EXECUTED
if ( i == MSDOS_NAME_MAX_LFN_WITH_DOT )
133975: 81 fb 04 01 00 00 cmp $0x104,%ebx <== NOT EXECUTED
13397b: 74 60 je 1339dd <msdos_get_token+0xa0> <== NOT EXECUTED
return MSDOS_NO_MORE_PATH;
/*
* Check for a separator.
*/
while (!msdos_is_separator(path[i]) && (i < pathlen))
13397d: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
133980: 0f be 04 1f movsbl (%edi,%ebx,1),%eax <== NOT EXECUTED
133984: 50 push %eax <== NOT EXECUTED
133985: e8 82 aa fd ff call 10e40c <rtems_filesystem_is_separator><== NOT EXECUTED
13398a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13398d: 85 c0 test %eax,%eax <== NOT EXECUTED
13398f: 75 05 jne 133996 <msdos_get_token+0x59> <== NOT EXECUTED
133991: 3b 5d 0c cmp 0xc(%ebp),%ebx <== NOT EXECUTED
133994: 7c d1 jl 133967 <msdos_get_token+0x2a> <== NOT EXECUTED
++i;
if ( i == MSDOS_NAME_MAX_LFN_WITH_DOT )
return MSDOS_INVALID_TOKEN;
}
*ret_token = path;
133996: 89 3e mov %edi,(%esi) <== NOT EXECUTED
/*
* If it is just a separator then it is the current dir.
*/
if ( i == 0 )
133998: b8 03 00 00 00 mov $0x3,%eax <== NOT EXECUTED
13399d: 85 db test %ebx,%ebx <== NOT EXECUTED
13399f: 75 0b jne 1339ac <msdos_get_token+0x6f> <== NOT EXECUTED
{
if ( (*path != '\0') && pathlen )
1339a1: 30 c0 xor %al,%al <== NOT EXECUTED
1339a3: 80 3f 00 cmpb $0x0,(%edi) <== NOT EXECUTED
1339a6: 74 04 je 1339ac <msdos_get_token+0x6f> <== NOT EXECUTED
1339a8: b3 01 mov $0x1,%bl <== NOT EXECUTED
1339aa: b0 01 mov $0x1,%al <== NOT EXECUTED
}
/*
* Set the token and token_len to the token start and length.
*/
*ret_token_len = i;
1339ac: 8b 55 14 mov 0x14(%ebp),%edx <== NOT EXECUTED
1339af: 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 )
1339b1: 83 f8 03 cmp $0x3,%eax <== NOT EXECUTED
1339b4: 75 2c jne 1339e2 <msdos_get_token+0xa5> <== NOT EXECUTED
{
if ((i == 2) && ((*ret_token)[0] == '.') && ((*ret_token)[1] == '.'))
1339b6: 83 fb 02 cmp $0x2,%ebx <== NOT EXECUTED
1339b9: 75 11 jne 1339cc <msdos_get_token+0x8f> <== NOT EXECUTED
1339bb: 8b 16 mov (%esi),%edx <== NOT EXECUTED
1339bd: 80 3a 2e cmpb $0x2e,(%edx) <== NOT EXECUTED
1339c0: 75 20 jne 1339e2 <msdos_get_token+0xa5> <== NOT EXECUTED
1339c2: 80 7a 01 2e cmpb $0x2e,0x1(%edx) <== NOT EXECUTED
1339c6: 75 1a jne 1339e2 <msdos_get_token+0xa5> <== NOT EXECUTED
1339c8: b0 02 mov $0x2,%al <== NOT EXECUTED
1339ca: eb 16 jmp 1339e2 <msdos_get_token+0xa5> <== NOT EXECUTED
{
type = MSDOS_UP_DIR;
return type;
}
if ((i == 1) && ((*ret_token)[0] == '.'))
1339cc: 4b dec %ebx <== NOT EXECUTED
1339cd: 75 13 jne 1339e2 <msdos_get_token+0xa5> <== NOT EXECUTED
1339cf: 8b 16 mov (%esi),%edx <== NOT EXECUTED
1339d1: 80 3a 2e cmpb $0x2e,(%edx) <== NOT EXECUTED
1339d4: 75 0c jne 1339e2 <msdos_get_token+0xa5> <== NOT EXECUTED
1339d6: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
1339db: eb 05 jmp 1339e2 <msdos_get_token+0xa5> <== NOT EXECUTED
1339dd: b8 04 00 00 00 mov $0x4,%eax <== NOT EXECUTED
return type;
}
}
return type;
}
1339e2: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1339e5: 5b pop %ebx <== NOT EXECUTED
1339e6: 5e pop %esi <== NOT EXECUTED
1339e7: 5f pop %edi <== NOT EXECUTED
1339e8: c9 leave <== NOT EXECUTED
1339e9: c3 ret <== NOT EXECUTED
00120974 <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
)
{
120974: 55 push %ebp <== NOT EXECUTED
120975: 89 e5 mov %esp,%ebp <== NOT EXECUTED
120977: 57 push %edi <== NOT EXECUTED
120978: 56 push %esi <== NOT EXECUTED
120979: 53 push %ebx <== NOT EXECUTED
12097a: 83 ec 34 sub $0x34,%esp <== NOT EXECUTED
12097d: 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;
120980: 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));
120987: 68 9c 00 00 00 push $0x9c <== NOT EXECUTED
12098c: 6a 01 push $0x1 <== NOT EXECUTED
12098e: e8 39 c0 fe ff call 10c9cc <calloc> <== NOT EXECUTED
120993: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (!fs_info)
120995: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
120998: 85 c0 test %eax,%eax <== NOT EXECUTED
12099a: 75 13 jne 1209af <msdos_initialize_support+0x3b><== NOT EXECUTED
rtems_set_errno_and_return_minus_one(ENOMEM);
12099c: e8 f7 c3 01 00 call 13cd98 <__errno> <== NOT EXECUTED
1209a1: c7 00 0c 00 00 00 movl $0xc,(%eax) <== NOT EXECUTED
1209a7: 83 cf ff or $0xffffffff,%edi <== NOT EXECUTED
1209aa: e9 81 01 00 00 jmp 120b30 <msdos_initialize_support+0x1bc><== NOT EXECUTED
temp_mt_entry->fs_info = fs_info;
1209af: 89 46 34 mov %eax,0x34(%esi) <== NOT EXECUTED
rc = fat_init_volume_info(temp_mt_entry);
1209b2: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1209b5: 56 push %esi <== NOT EXECUTED
1209b6: e8 3e 53 00 00 call 125cf9 <fat_init_volume_info> <== NOT EXECUTED
1209bb: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc != RC_OK)
1209bd: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1209c0: 85 c0 test %eax,%eax <== NOT EXECUTED
1209c2: 74 05 je 1209c9 <msdos_initialize_support+0x55><== NOT EXECUTED
{
free(fs_info);
1209c4: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1209c7: eb 50 jmp 120a19 <msdos_initialize_support+0xa5><== NOT EXECUTED
return rc;
}
fs_info->file_handlers = file_handlers;
1209c9: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
1209cc: 89 83 90 00 00 00 mov %eax,0x90(%ebx) <== NOT EXECUTED
fs_info->directory_handlers = directory_handlers;
1209d2: 8b 45 14 mov 0x14(%ebp),%eax <== NOT EXECUTED
1209d5: 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;
1209db: c7 45 d8 00 00 00 00 movl $0x0,-0x28(%ebp) <== NOT EXECUTED
dir_pos->lname.cln = FAT_FILE_SHORT_NAME;
1209e2: c7 45 dc ff ff ff ff movl $0xffffffff,-0x24(%ebp) <== NOT EXECUTED
dir_pos->lname.ofs = FAT_FILE_SHORT_NAME;
1209e9: 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;
1209f0: c7 45 d4 01 00 00 00 movl $0x1,-0x2c(%ebp) <== NOT EXECUTED
rc = fat_file_open(temp_mt_entry, &root_pos, &fat_fd);
1209f7: 57 push %edi <== NOT EXECUTED
1209f8: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
1209fb: 50 push %eax <== NOT EXECUTED
1209fc: 8d 45 d4 lea -0x2c(%ebp),%eax <== NOT EXECUTED
1209ff: 50 push %eax <== NOT EXECUTED
120a00: 56 push %esi <== NOT EXECUTED
120a01: e8 7e 49 00 00 call 125384 <fat_file_open> <== NOT EXECUTED
120a06: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc != RC_OK)
120a08: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
120a0b: 85 c0 test %eax,%eax <== NOT EXECUTED
120a0d: 74 18 je 120a27 <msdos_initialize_support+0xb3><== NOT EXECUTED
{
fat_shutdown_drive(temp_mt_entry);
120a0f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
120a12: 56 push %esi <== NOT EXECUTED
120a13: e8 6a 50 00 00 call 125a82 <fat_shutdown_drive> <== NOT EXECUTED
free(fs_info);
120a18: 5e pop %esi <== NOT EXECUTED
120a19: 53 push %ebx <== NOT EXECUTED
120a1a: e8 7d c4 fe ff call 10ce9c <free> <== NOT EXECUTED
return rc;
120a1f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
120a22: e9 09 01 00 00 jmp 120b30 <msdos_initialize_support+0x1bc><== NOT EXECUTED
}
/* again: unfortunately "fat-file" is just almost fat file :( */
fat_fd->fat_file_type = FAT_DIRECTORY;
120a27: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
120a2a: c7 40 10 01 00 00 00 movl $0x1,0x10(%eax) <== NOT EXECUTED
fat_fd->size_limit = MSDOS_MAX_DIR_LENGHT;
120a31: c7 40 14 00 00 20 00 movl $0x200000,0x14(%eax) <== NOT EXECUTED
fat_fd->cln = fs_info->fat.vol.rdir_cl;
120a38: 8b 53 38 mov 0x38(%ebx),%edx <== NOT EXECUTED
120a3b: 89 50 1c mov %edx,0x1c(%eax) <== NOT EXECUTED
fat_fd->map.file_cln = 0;
120a3e: c7 40 34 00 00 00 00 movl $0x0,0x34(%eax) <== NOT EXECUTED
fat_fd->map.disk_cln = fat_fd->cln;
120a45: 89 50 38 mov %edx,0x38(%eax) <== NOT EXECUTED
/* if we have FAT12/16 */
if ( fat_fd->cln == 0 )
120a48: 85 d2 test %edx,%edx <== NOT EXECUTED
120a4a: 75 15 jne 120a61 <msdos_initialize_support+0xed><== NOT EXECUTED
{
fat_fd->fat_file_size = fs_info->fat.vol.rdir_size;
120a4c: 8b 53 28 mov 0x28(%ebx),%edx <== NOT EXECUTED
120a4f: 89 50 18 mov %edx,0x18(%eax) <== NOT EXECUTED
cl_buf_size = (fs_info->fat.vol.bpc > fs_info->fat.vol.rdir_size) ?
120a52: 0f b7 43 06 movzwl 0x6(%ebx),%eax <== NOT EXECUTED
120a56: 8b 53 28 mov 0x28(%ebx),%edx <== NOT EXECUTED
120a59: 39 d0 cmp %edx,%eax <== NOT EXECUTED
120a5b: 73 28 jae 120a85 <msdos_initialize_support+0x111><== NOT EXECUTED
120a5d: 89 d0 mov %edx,%eax <== NOT EXECUTED
120a5f: eb 24 jmp 120a85 <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);
120a61: 51 push %ecx <== NOT EXECUTED
120a62: 51 push %ecx <== NOT EXECUTED
120a63: 50 push %eax <== NOT EXECUTED
120a64: 56 push %esi <== NOT EXECUTED
120a65: e8 77 3f 00 00 call 1249e1 <fat_file_size> <== NOT EXECUTED
120a6a: 89 c7 mov %eax,%edi <== NOT EXECUTED
if ( rc != RC_OK )
120a6c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
120a6f: 85 c0 test %eax,%eax <== NOT EXECUTED
120a71: 74 0e je 120a81 <msdos_initialize_support+0x10d><== NOT EXECUTED
{
fat_file_close(temp_mt_entry, fat_fd);
120a73: 52 push %edx <== NOT EXECUTED
120a74: 52 push %edx <== NOT EXECUTED
120a75: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
120a78: 56 push %esi <== NOT EXECUTED
120a79: e8 57 48 00 00 call 1252d5 <fat_file_close> <== NOT EXECUTED
fat_shutdown_drive(temp_mt_entry);
120a7e: 58 pop %eax <== NOT EXECUTED
120a7f: eb 91 jmp 120a12 <msdos_initialize_support+0x9e><== NOT EXECUTED
free(fs_info);
return rc;
}
cl_buf_size = fs_info->fat.vol.bpc;
120a81: 0f b7 43 06 movzwl 0x6(%ebx),%eax <== NOT EXECUTED
}
fs_info->cl_buf = (uint8_t *)calloc(cl_buf_size, sizeof(char));
120a85: 57 push %edi <== NOT EXECUTED
120a86: 57 push %edi <== NOT EXECUTED
120a87: 6a 01 push $0x1 <== NOT EXECUTED
120a89: 50 push %eax <== NOT EXECUTED
120a8a: e8 3d bf fe ff call 10c9cc <calloc> <== NOT EXECUTED
120a8f: 89 83 98 00 00 00 mov %eax,0x98(%ebx) <== NOT EXECUTED
if (fs_info->cl_buf == NULL)
120a95: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
120a98: 85 c0 test %eax,%eax <== NOT EXECUTED
120a9a: 75 28 jne 120ac4 <msdos_initialize_support+0x150><== NOT EXECUTED
{
fat_file_close(temp_mt_entry, fat_fd);
120a9c: 51 push %ecx <== NOT EXECUTED
120a9d: 51 push %ecx <== NOT EXECUTED
120a9e: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
120aa1: 56 push %esi <== NOT EXECUTED
120aa2: e8 2e 48 00 00 call 1252d5 <fat_file_close> <== NOT EXECUTED
fat_shutdown_drive(temp_mt_entry);
120aa7: 89 34 24 mov %esi,(%esp) <== NOT EXECUTED
120aaa: e8 d3 4f 00 00 call 125a82 <fat_shutdown_drive> <== NOT EXECUTED
free(fs_info);
120aaf: 89 1c 24 mov %ebx,(%esp) <== NOT EXECUTED
120ab2: e8 e5 c3 fe ff call 10ce9c <free> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(ENOMEM);
120ab7: e8 dc c2 01 00 call 13cd98 <__errno> <== NOT EXECUTED
120abc: c7 00 0c 00 00 00 movl $0xc,(%eax) <== NOT EXECUTED
120ac2: eb 50 jmp 120b14 <msdos_initialize_support+0x1a0><== NOT EXECUTED
}
sc = rtems_semaphore_create(3,
120ac4: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
120ac7: 8d 83 94 00 00 00 lea 0x94(%ebx),%eax <== NOT EXECUTED
120acd: 50 push %eax <== NOT EXECUTED
120ace: 6a 00 push $0x0 <== NOT EXECUTED
120ad0: 6a 10 push $0x10 <== NOT EXECUTED
120ad2: 6a 01 push $0x1 <== NOT EXECUTED
120ad4: 6a 03 push $0x3 <== NOT EXECUTED
120ad6: e8 ad fe fe ff call 110988 <rtems_semaphore_create><== NOT EXECUTED
1,
RTEMS_BINARY_SEMAPHORE | RTEMS_FIFO,
0,
&fs_info->vol_sema);
if (sc != RTEMS_SUCCESSFUL)
120adb: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
120ade: 85 c0 test %eax,%eax <== NOT EXECUTED
120ae0: 74 3a je 120b1c <msdos_initialize_support+0x1a8><== NOT EXECUTED
{
fat_file_close(temp_mt_entry, fat_fd);
120ae2: 52 push %edx <== NOT EXECUTED
120ae3: 52 push %edx <== NOT EXECUTED
120ae4: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
120ae7: 56 push %esi <== NOT EXECUTED
120ae8: e8 e8 47 00 00 call 1252d5 <fat_file_close> <== NOT EXECUTED
fat_shutdown_drive(temp_mt_entry);
120aed: 89 34 24 mov %esi,(%esp) <== NOT EXECUTED
120af0: e8 8d 4f 00 00 call 125a82 <fat_shutdown_drive> <== NOT EXECUTED
free(fs_info->cl_buf);
120af5: 58 pop %eax <== NOT EXECUTED
120af6: ff b3 98 00 00 00 pushl 0x98(%ebx) <== NOT EXECUTED
120afc: e8 9b c3 fe ff call 10ce9c <free> <== NOT EXECUTED
free(fs_info);
120b01: 89 1c 24 mov %ebx,(%esp) <== NOT EXECUTED
120b04: e8 93 c3 fe ff call 10ce9c <free> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EIO );
120b09: e8 8a c2 01 00 call 13cd98 <__errno> <== NOT EXECUTED
120b0e: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
120b14: 83 cf ff or $0xffffffff,%edi <== NOT EXECUTED
120b17: e9 03 ff ff ff jmp 120a1f <msdos_initialize_support+0xab><== NOT EXECUTED
}
temp_mt_entry->mt_fs_root.node_access = fat_fd;
120b1c: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
120b1f: 89 46 1c mov %eax,0x1c(%esi) <== NOT EXECUTED
temp_mt_entry->mt_fs_root.handlers = directory_handlers;
120b22: 8b 45 14 mov 0x14(%ebp),%eax <== NOT EXECUTED
120b25: 89 46 24 mov %eax,0x24(%esi) <== NOT EXECUTED
temp_mt_entry->mt_fs_root.ops = op_table;
120b28: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
120b2b: 89 46 28 mov %eax,0x28(%esi) <== NOT EXECUTED
120b2e: 31 ff xor %edi,%edi <== NOT EXECUTED
return rc;
}
120b30: 89 f8 mov %edi,%eax <== NOT EXECUTED
120b32: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
120b35: 5b pop %ebx <== NOT EXECUTED
120b36: 5e pop %esi <== NOT EXECUTED
120b37: 5f pop %edi <== NOT EXECUTED
120b38: c9 leave <== NOT EXECUTED
120b39: c3 ret <== NOT EXECUTED
001338de <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)
{
1338de: 55 push %ebp <== NOT EXECUTED
1338df: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1338e1: 56 push %esi <== NOT EXECUTED
1338e2: 53 push %ebx <== NOT EXECUTED
1338e3: 88 c3 mov %al,%bl <== NOT EXECUTED
if (strchr(" +,;=[]", ch) != NULL)
1338e5: 0f be f0 movsbl %al,%esi <== NOT EXECUTED
1338e8: 51 push %ecx <== NOT EXECUTED
1338e9: 51 push %ecx <== NOT EXECUTED
1338ea: 56 push %esi <== NOT EXECUTED
1338eb: 68 60 cc 15 00 push $0x15cc60 <== NOT EXECUTED
1338f0: e8 0b ec 00 00 call 142500 <strchr> <== NOT EXECUTED
1338f5: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1338f8: 89 c2 mov %eax,%edx <== NOT EXECUTED
1338fa: b8 02 00 00 00 mov $0x2,%eax <== NOT EXECUTED
1338ff: 85 d2 test %edx,%edx <== NOT EXECUTED
133901: 75 33 jne 133936 <msdos_is_valid_name_char+0x58><== NOT EXECUTED
return MSDOS_NAME_LONG;
if ((ch == '.') || isalnum((unsigned char)ch) ||
133903: 80 fb 2e cmp $0x2e,%bl <== NOT EXECUTED
133906: 74 29 je 133931 <msdos_is_valid_name_char+0x53><== NOT EXECUTED
133908: 0f b6 db movzbl %bl,%ebx <== NOT EXECUTED
13390b: a1 7c 29 16 00 mov 0x16297c,%eax <== NOT EXECUTED
133910: f6 44 18 01 07 testb $0x7,0x1(%eax,%ebx,1) <== NOT EXECUTED
133915: 75 1a jne 133931 <msdos_is_valid_name_char+0x53><== NOT EXECUTED
(strchr("$%'-_@~`!(){}^#&", ch) != NULL))
133917: 52 push %edx <== NOT EXECUTED
133918: 52 push %edx <== NOT EXECUTED
133919: 56 push %esi <== NOT EXECUTED
13391a: 68 68 cc 15 00 push $0x15cc68 <== NOT EXECUTED
13391f: e8 dc eb 00 00 call 142500 <strchr> <== NOT EXECUTED
133924: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
133927: 85 c0 test %eax,%eax <== NOT EXECUTED
133929: 0f 95 c0 setne %al <== NOT EXECUTED
13392c: 0f b6 c0 movzbl %al,%eax <== NOT EXECUTED
13392f: eb 05 jmp 133936 <msdos_is_valid_name_char+0x58><== NOT EXECUTED
133931: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
return MSDOS_NAME_SHORT;
return MSDOS_NAME_INVALID;
}
133936: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
133939: 5b pop %ebx <== NOT EXECUTED
13393a: 5e pop %esi <== NOT EXECUTED
13393b: c9 leave <== NOT EXECUTED
13393c: c3 ret <== NOT EXECUTED
001339ea <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)
{
1339ea: 55 push %ebp <== NOT EXECUTED
1339eb: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1339ed: 57 push %edi <== NOT EXECUTED
1339ee: 56 push %esi <== NOT EXECUTED
1339ef: 53 push %ebx <== NOT EXECUTED
1339f0: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
1339f3: 8b 5d 10 mov 0x10(%ebp),%ebx <== NOT EXECUTED
1339f6: 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);
1339f9: b0 20 mov $0x20,%al <== NOT EXECUTED
1339fb: 89 df mov %ebx,%edi <== NOT EXECUTED
1339fd: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED
/*
* Handle '.' and '..' specially.
*/
if ((lfn[0] == '.') && (lfn_len == 1))
1339ff: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
133a02: 80 38 2e cmpb $0x2e,(%eax) <== NOT EXECUTED
133a05: 0f 94 c0 sete %al <== NOT EXECUTED
133a08: 83 7d 0c 01 cmpl $0x1,0xc(%ebp) <== NOT EXECUTED
133a0c: 75 06 jne 133a14 <msdos_long_to_short+0x2a><== NOT EXECUTED
133a0e: 84 c0 test %al,%al <== NOT EXECUTED
133a10: 74 3d je 133a4f <msdos_long_to_short+0x65><== NOT EXECUTED
133a12: eb 17 jmp 133a2b <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))
133a14: 84 c0 test %al,%al <== NOT EXECUTED
133a16: 74 37 je 133a4f <msdos_long_to_short+0x65><== NOT EXECUTED
133a18: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
133a1b: 80 79 01 2e cmpb $0x2e,0x1(%ecx) <== NOT EXECUTED
133a1f: 75 2e jne 133a4f <msdos_long_to_short+0x65><== NOT EXECUTED
133a21: 83 7d 0c 02 cmpl $0x2,0xc(%ebp) <== NOT EXECUTED
133a25: 75 28 jne 133a4f <msdos_long_to_short+0x65><== NOT EXECUTED
{
sfn[0] = sfn[1] = '.';
133a27: c6 43 01 2e movb $0x2e,0x1(%ebx) <== NOT EXECUTED
133a2b: c6 03 2e movb $0x2e,(%ebx) <== NOT EXECUTED
133a2e: 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;
133a33: e9 e0 00 00 00 jmp 133b18 <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] != '.'))
133a38: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
133a3b: 8a 14 01 mov (%ecx,%eax,1),%dl <== NOT EXECUTED
133a3e: 80 fa 2e cmp $0x2e,%dl <== NOT EXECUTED
133a41: 74 09 je 133a4c <msdos_long_to_short+0x62><== NOT EXECUTED
133a43: 80 fa 20 cmp $0x20,%dl <== NOT EXECUTED
133a46: 0f 85 86 00 00 00 jne 133ad2 <msdos_long_to_short+0xe8><== NOT EXECUTED
}
/*
* Filenames with only blanks and dots are not allowed!
*/
for (i = 0; i < lfn_len; i++)
133a4c: 40 inc %eax <== NOT EXECUTED
133a4d: eb 02 jmp 133a51 <msdos_long_to_short+0x67><== NOT EXECUTED
133a4f: 31 c0 xor %eax,%eax <== NOT EXECUTED
133a51: 3b 45 0c cmp 0xc(%ebp),%eax <== NOT EXECUTED
133a54: 7c e2 jl 133a38 <msdos_long_to_short+0x4e><== NOT EXECUTED
if ((lfn[i] != ' ') && (lfn[i] != '.'))
break;
if (i == lfn_len)
133a56: 75 7a jne 133ad2 <msdos_long_to_short+0xe8><== NOT EXECUTED
133a58: 31 c0 xor %eax,%eax <== NOT EXECUTED
133a5a: e9 b9 00 00 00 jmp 133b18 <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);
133a5f: 0f be c2 movsbl %dl,%eax <== NOT EXECUTED
133a62: 88 55 e0 mov %dl,-0x20(%ebp) <== NOT EXECUTED
133a65: 89 4d dc mov %ecx,-0x24(%ebp) <== NOT EXECUTED
133a68: e8 71 fe ff ff call 1338de <msdos_is_valid_name_char><== NOT EXECUTED
133a6d: 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))
133a6f: 83 f8 02 cmp $0x2,%eax <== NOT EXECUTED
133a72: 8a 55 e0 mov -0x20(%ebp),%dl <== NOT EXECUTED
133a75: 8b 4d dc mov -0x24(%ebp),%ecx <== NOT EXECUTED
133a78: 0f 84 82 00 00 00 je 133b00 <msdos_long_to_short+0x116><== NOT EXECUTED
133a7e: 85 c0 test %eax,%eax <== NOT EXECUTED
133a80: 74 7e je 133b00 <msdos_long_to_short+0x116><== NOT EXECUTED
int dot_at = -1;
int count = 0;
while (*name && (count < name_len))
{
bool is_dot = *name == '.';
133a82: 80 fa 2e cmp $0x2e,%dl <== NOT EXECUTED
133a85: 0f 94 c0 sete %al <== NOT EXECUTED
#endif
if ((type == MSDOS_NAME_INVALID) || (type == MSDOS_NAME_LONG))
return type;
if (dot_at >= 0)
133a88: 83 f9 ff cmp $0xffffffff,%ecx <== NOT EXECUTED
133a8b: 74 16 je 133aa3 <msdos_long_to_short+0xb9><== NOT EXECUTED
{
if (is_dot || ((count - dot_at) > 3))
133a8d: 84 c0 test %al,%al <== NOT EXECUTED
133a8f: 0f 85 92 00 00 00 jne 133b27 <msdos_long_to_short+0x13d><== NOT EXECUTED
133a95: 89 f8 mov %edi,%eax <== NOT EXECUTED
133a97: 29 c8 sub %ecx,%eax <== NOT EXECUTED
133a99: 83 f8 03 cmp $0x3,%eax <== NOT EXECUTED
133a9c: 7e 14 jle 133ab2 <msdos_long_to_short+0xc8><== NOT EXECUTED
133a9e: e9 84 00 00 00 jmp 133b27 <msdos_long_to_short+0x13d><== NOT EXECUTED
return MSDOS_NAME_LONG;
}
}
else
{
if (count == 8 && !is_dot)
133aa3: 83 ff 08 cmp $0x8,%edi <== NOT EXECUTED
133aa6: 75 06 jne 133aae <msdos_long_to_short+0xc4><== NOT EXECUTED
133aa8: 84 c0 test %al,%al <== NOT EXECUTED
133aaa: 75 21 jne 133acd <msdos_long_to_short+0xe3><== NOT EXECUTED
133aac: eb 79 jmp 133b27 <msdos_long_to_short+0x13d><== NOT EXECUTED
#endif
return MSDOS_NAME_LONG;
}
}
if (is_dot)
133aae: 84 c0 test %al,%al <== NOT EXECUTED
133ab0: 75 1b jne 133acd <msdos_long_to_short+0xe3><== NOT EXECUTED
dot_at = count;
else if ((*name >= 'A') && (*name <= 'Z'))
133ab2: 8d 42 bf lea -0x41(%edx),%eax <== NOT EXECUTED
133ab5: 3c 19 cmp $0x19,%al <== NOT EXECUTED
133ab7: 77 06 ja 133abf <msdos_long_to_short+0xd5><== NOT EXECUTED
133ab9: c6 45 e6 01 movb $0x1,-0x1a(%ebp) <== NOT EXECUTED
133abd: eb 10 jmp 133acf <msdos_long_to_short+0xe5><== NOT EXECUTED
uppercase = true;
else if ((*name >= 'a') && (*name <= 'z'))
133abf: 83 ea 61 sub $0x61,%edx <== NOT EXECUTED
133ac2: 80 fa 19 cmp $0x19,%dl <== NOT EXECUTED
133ac5: 77 08 ja 133acf <msdos_long_to_short+0xe5><== NOT EXECUTED
133ac7: c6 45 e7 01 movb $0x1,-0x19(%ebp) <== NOT EXECUTED
133acb: eb 02 jmp 133acf <msdos_long_to_short+0xe5><== NOT EXECUTED
133acd: 89 f9 mov %edi,%ecx <== NOT EXECUTED
lowercase = true;
count++;
133acf: 47 inc %edi <== NOT EXECUTED
133ad0: eb 0d jmp 133adf <msdos_long_to_short+0xf5><== NOT EXECUTED
133ad2: 31 ff xor %edi,%edi <== NOT EXECUTED
133ad4: 83 c9 ff or $0xffffffff,%ecx <== NOT EXECUTED
133ad7: c6 45 e6 00 movb $0x0,-0x1a(%ebp) <== NOT EXECUTED
133adb: 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))
133adf: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
133ae2: 8a 14 38 mov (%eax,%edi,1),%dl <== NOT EXECUTED
133ae5: 3b 7d 0c cmp 0xc(%ebp),%edi <== NOT EXECUTED
133ae8: 7d 08 jge 133af2 <msdos_long_to_short+0x108><== NOT EXECUTED
133aea: 84 d2 test %dl,%dl <== NOT EXECUTED
133aec: 0f 85 6d ff ff ff jne 133a5f <msdos_long_to_short+0x75><== NOT EXECUTED
count++;
name++;
}
if (lowercase && uppercase)
133af2: 80 7d e7 00 cmpb $0x0,-0x19(%ebp) <== NOT EXECUTED
133af6: 74 28 je 133b20 <msdos_long_to_short+0x136><== NOT EXECUTED
133af8: 80 7d e6 00 cmpb $0x0,-0x1a(%ebp) <== NOT EXECUTED
133afc: 75 29 jne 133b27 <msdos_long_to_short+0x13d><== NOT EXECUTED
133afe: eb 20 jmp 133b20 <msdos_long_to_short+0x136><== NOT EXECUTED
133b00: 89 f0 mov %esi,%eax <== NOT EXECUTED
* Is this a short name ?
*/
type = msdos_name_type (lfn, lfn_len);
if (type == MSDOS_NAME_INVALID)
133b02: 85 f6 test %esi,%esi <== NOT EXECUTED
133b04: 74 12 je 133b18 <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);
133b06: 57 push %edi <== NOT EXECUTED
133b07: 53 push %ebx <== NOT EXECUTED
133b08: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
133b0b: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
133b0e: e8 0e 7c 00 00 call 13b721 <msdos_filename_unix2dos><== NOT EXECUTED
133b13: 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;
133b15: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
133b18: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
133b1b: 5b pop %ebx <== NOT EXECUTED
133b1c: 5e pop %esi <== NOT EXECUTED
133b1d: 5f pop %edi <== NOT EXECUTED
133b1e: c9 leave <== NOT EXECUTED
133b1f: 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;
133b20: be 01 00 00 00 mov $0x1,%esi <== NOT EXECUTED
133b25: eb df jmp 133b06 <msdos_long_to_short+0x11c><== NOT EXECUTED
133b27: be 02 00 00 00 mov $0x2,%esi <== NOT EXECUTED
133b2c: eb d8 jmp 133b06 <msdos_long_to_short+0x11c><== NOT EXECUTED
00120b3c <msdos_mknod>:
const char *name,
mode_t mode,
dev_t dev,
rtems_filesystem_location_info_t *pathloc
)
{
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 1c sub $0x1c,%esp <== NOT EXECUTED
120b45: 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;
120b48: 8b 46 10 mov 0x10(%esi),%eax <== NOT EXECUTED
120b4b: 8b 40 34 mov 0x34(%eax),%eax <== NOT EXECUTED
120b4e: 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))
120b51: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
120b54: 25 00 f0 00 00 and $0xf000,%eax <== NOT EXECUTED
120b59: 3d 00 40 00 00 cmp $0x4000,%eax <== NOT EXECUTED
120b5e: 74 19 je 120b79 <msdos_mknod+0x3d> <== NOT EXECUTED
{
type = MSDOS_DIRECTORY;
}
else if (S_ISREG(mode))
120b60: bb 05 00 00 00 mov $0x5,%ebx <== NOT EXECUTED
120b65: 3d 00 80 00 00 cmp $0x8000,%eax <== NOT EXECUTED
120b6a: 74 12 je 120b7e <msdos_mknod+0x42> <== NOT EXECUTED
{
type = MSDOS_REGULAR_FILE;
}
else
rtems_set_errno_and_return_minus_one(EINVAL);
120b6c: e8 27 c2 01 00 call 13cd98 <__errno> <== NOT EXECUTED
120b71: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
120b77: eb 2a jmp 120ba3 <msdos_mknod+0x67> <== NOT EXECUTED
120b79: bb 01 00 00 00 mov $0x1,%ebx <== NOT EXECUTED
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
120b7e: 52 push %edx <== NOT EXECUTED
120b7f: 6a 00 push $0x0 <== NOT EXECUTED
120b81: 6a 00 push $0x0 <== NOT EXECUTED
120b83: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
120b86: ff b0 94 00 00 00 pushl 0x94(%eax) <== NOT EXECUTED
120b8c: e8 77 00 ff ff call 110c08 <rtems_semaphore_obtain><== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
120b91: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
120b94: 85 c0 test %eax,%eax <== NOT EXECUTED
120b96: 74 10 je 120ba8 <msdos_mknod+0x6c> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
120b98: e8 fb c1 01 00 call 13cd98 <__errno> <== NOT EXECUTED
120b9d: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
120ba3: 83 cb ff or $0xffffffff,%ebx <== NOT EXECUTED
120ba6: eb 35 jmp 120bdd <msdos_mknod+0xa1> <== NOT EXECUTED
/* Create an MSDOS node */
rc = msdos_creat_node(pathloc, type, name, strlen(name), mode, NULL);
120ba8: 31 c0 xor %eax,%eax <== NOT EXECUTED
120baa: 83 c9 ff or $0xffffffff,%ecx <== NOT EXECUTED
120bad: 8b 7d 08 mov 0x8(%ebp),%edi <== NOT EXECUTED
120bb0: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED
120bb2: f7 d1 not %ecx <== NOT EXECUTED
120bb4: 49 dec %ecx <== NOT EXECUTED
120bb5: 50 push %eax <== NOT EXECUTED
120bb6: 50 push %eax <== NOT EXECUTED
120bb7: 6a 00 push $0x0 <== NOT EXECUTED
120bb9: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
120bbc: 51 push %ecx <== NOT EXECUTED
120bbd: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
120bc0: 53 push %ebx <== NOT EXECUTED
120bc1: 56 push %esi <== NOT EXECUTED
120bc2: e8 95 12 01 00 call 131e5c <msdos_creat_node> <== NOT EXECUTED
120bc7: 89 c3 mov %eax,%ebx <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
120bc9: 83 c4 14 add $0x14,%esp <== NOT EXECUTED
120bcc: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
120bcf: ff b0 94 00 00 00 pushl 0x94(%eax) <== NOT EXECUTED
120bd5: e8 1a 01 ff ff call 110cf4 <rtems_semaphore_release><== NOT EXECUTED
return rc;
120bda: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
120bdd: 89 d8 mov %ebx,%eax <== NOT EXECUTED
120bdf: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
120be2: 5b pop %ebx <== NOT EXECUTED
120be3: 5e pop %esi <== NOT EXECUTED
120be4: 5f pop %edi <== NOT EXECUTED
120be5: c9 leave <== NOT EXECUTED
120be6: c3 ret <== NOT EXECUTED
00120be8 <msdos_node_type>:
* node type
*
*/
rtems_filesystem_node_types_t
msdos_node_type(rtems_filesystem_location_info_t *pathloc)
{
120be8: 55 push %ebp <== NOT EXECUTED
120be9: 89 e5 mov %esp,%ebp <== NOT EXECUTED
120beb: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
120bee: 8b 00 mov (%eax),%eax <== NOT EXECUTED
120bf0: 8b 40 10 mov 0x10(%eax),%eax <== NOT EXECUTED
* call
*/
fat_fd = pathloc->node_access;
return fat_fd->fat_file_type;
}
120bf3: c9 leave <== NOT EXECUTED
120bf4: c3 ret <== NOT EXECUTED
00120bf8 <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)
{
120bf8: 55 push %ebp <== NOT EXECUTED
120bf9: 89 e5 mov %esp,%ebp <== NOT EXECUTED
120bfb: 57 push %edi <== NOT EXECUTED
120bfc: 56 push %esi <== NOT EXECUTED
120bfd: 53 push %ebx <== NOT EXECUTED
120bfe: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED
120c01: 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;
120c04: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
120c07: 8b 42 10 mov 0x10(%edx),%eax <== NOT EXECUTED
120c0a: 8b 58 34 mov 0x34(%eax),%ebx <== NOT EXECUTED
fat_file_fd_t *old_fat_fd = old_loc->node_access;
120c0d: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
120c10: 8b 00 mov (%eax),%eax <== NOT EXECUTED
120c12: 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)) {
120c15: 31 c0 xor %eax,%eax <== NOT EXECUTED
120c17: 83 c9 ff or $0xffffffff,%ecx <== NOT EXECUTED
120c1a: 89 f7 mov %esi,%edi <== NOT EXECUTED
120c1c: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED
120c1e: f7 d1 not %ecx <== NOT EXECUTED
120c20: 49 dec %ecx <== NOT EXECUTED
120c21: 8d 45 e0 lea -0x20(%ebp),%eax <== NOT EXECUTED
120c24: 50 push %eax <== NOT EXECUTED
120c25: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
120c28: 50 push %eax <== NOT EXECUTED
120c29: 51 push %ecx <== NOT EXECUTED
120c2a: 56 push %esi <== NOT EXECUTED
120c2b: e8 0d 2d 01 00 call 13393d <msdos_get_token> <== NOT EXECUTED
120c30: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
120c33: 83 f8 03 cmp $0x3,%eax <== NOT EXECUTED
120c36: 74 0d je 120c45 <msdos_rename+0x4d> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(ENAMETOOLONG);
120c38: e8 5b c1 01 00 call 13cd98 <__errno> <== NOT EXECUTED
120c3d: c7 00 5b 00 00 00 movl $0x5b,(%eax) <== NOT EXECUTED
120c43: eb 22 jmp 120c67 <msdos_rename+0x6f> <== NOT EXECUTED
}
/*
* lock volume
*/
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
120c45: 57 push %edi <== NOT EXECUTED
120c46: 6a 00 push $0x0 <== NOT EXECUTED
120c48: 6a 00 push $0x0 <== NOT EXECUTED
120c4a: ff b3 94 00 00 00 pushl 0x94(%ebx) <== NOT EXECUTED
120c50: e8 b3 ff fe ff call 110c08 <rtems_semaphore_obtain><== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
120c55: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
120c58: 85 c0 test %eax,%eax <== NOT EXECUTED
120c5a: 74 10 je 120c6c <msdos_rename+0x74> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
120c5c: e8 37 c1 01 00 call 13cd98 <__errno> <== NOT EXECUTED
120c61: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
120c67: 83 ce ff or $0xffffffff,%esi <== NOT EXECUTED
120c6a: eb 4f jmp 120cbb <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,
120c6c: 51 push %ecx <== NOT EXECUTED
120c6d: 51 push %ecx <== NOT EXECUTED
120c6e: ff 75 d4 pushl -0x2c(%ebp) <== NOT EXECUTED
120c71: 68 00 80 00 00 push $0x8000 <== NOT EXECUTED
120c76: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
120c79: 56 push %esi <== NOT EXECUTED
120c7a: 6a 03 push $0x3 <== NOT EXECUTED
120c7c: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
120c7f: e8 d8 11 01 00 call 131e5c <msdos_creat_node> <== NOT EXECUTED
120c84: 89 c6 mov %eax,%esi <== NOT EXECUTED
MSDOS_HARD_LINK,new_name,len,S_IFREG,
old_fat_fd);
if (rc != RC_OK)
120c86: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
120c89: 85 c0 test %eax,%eax <== NOT EXECUTED
120c8b: 74 05 je 120c92 <msdos_rename+0x9a> <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
120c8d: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
120c90: eb 1b jmp 120cad <msdos_rename+0xb5> <== NOT EXECUTED
}
/*
* mark file removed
*/
rc = msdos_set_first_char4file_name(old_loc->mt_entry,
120c92: 52 push %edx <== NOT EXECUTED
120c93: 68 e5 00 00 00 push $0xe5 <== NOT EXECUTED
120c98: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED
120c9b: 83 c0 20 add $0x20,%eax <== NOT EXECUTED
120c9e: 50 push %eax <== NOT EXECUTED
120c9f: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
120ca2: ff 72 10 pushl 0x10(%edx) <== NOT EXECUTED
120ca5: e8 9a 2a 01 00 call 133744 <msdos_set_first_char4file_name><== NOT EXECUTED
120caa: 89 c6 mov %eax,%esi <== NOT EXECUTED
&old_fat_fd->dir_pos,
MSDOS_THIS_DIR_ENTRY_EMPTY);
rtems_semaphore_release(fs_info->vol_sema);
120cac: 58 pop %eax <== NOT EXECUTED
120cad: ff b3 94 00 00 00 pushl 0x94(%ebx) <== NOT EXECUTED
120cb3: e8 3c 00 ff ff call 110cf4 <rtems_semaphore_release><== NOT EXECUTED
return rc;
120cb8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
120cbb: 89 f0 mov %esi,%eax <== NOT EXECUTED
120cbd: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
120cc0: 5b pop %ebx <== NOT EXECUTED
120cc1: 5e pop %esi <== NOT EXECUTED
120cc2: 5f pop %edi <== NOT EXECUTED
120cc3: c9 leave <== NOT EXECUTED
120cc4: c3 ret <== NOT EXECUTED
0013383c <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
)
{
13383c: 55 push %ebp <== NOT EXECUTED
13383d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13383f: 57 push %edi <== NOT EXECUTED
133840: 56 push %esi <== NOT EXECUTED
133841: 53 push %ebx <== NOT EXECUTED
133842: 83 ec 30 sub $0x30,%esp <== NOT EXECUTED
133845: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
133848: 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;
13384b: 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);
13384e: 8d 45 e6 lea -0x1a(%ebp),%eax <== NOT EXECUTED
133851: 50 push %eax <== NOT EXECUTED
133852: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
133855: 50 push %eax <== NOT EXECUTED
133856: ff 76 40 pushl 0x40(%esi) <== NOT EXECUTED
133859: e8 0a 7d 00 00 call 13b568 <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);
13385e: 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;
133861: 8b 53 34 mov 0x34(%ebx),%edx <== NOT EXECUTED
if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) )
133864: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
133867: 85 c0 test %eax,%eax <== NOT EXECUTED
133869: 75 0b jne 133876 <msdos_set_dir_wrt_time_and_date+0x3a><== NOT EXECUTED
13386b: f6 42 0a 03 testb $0x3,0xa(%edx) <== NOT EXECUTED
13386f: 74 05 je 133876 <msdos_set_dir_wrt_time_and_date+0x3a><== NOT EXECUTED
return fs_info->vol.rdir_loc;
133871: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED
133874: eb 0c jmp 133882 <msdos_set_dir_wrt_time_and_date+0x46><== NOT EXECUTED
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
133876: 83 e8 02 sub $0x2,%eax <== NOT EXECUTED
133879: 0f b6 4a 05 movzbl 0x5(%edx),%ecx <== NOT EXECUTED
13387d: d3 e0 shl %cl,%eax <== NOT EXECUTED
13387f: 03 42 30 add 0x30(%edx),%eax <== NOT EXECUTED
sec += (fat_fd->dir_pos.sname.ofs >> fs_info->fat.vol.sec_log2);
133882: 8b 56 24 mov 0x24(%esi),%edx <== NOT EXECUTED
133885: 0f b6 4f 02 movzbl 0x2(%edi),%ecx <== NOT EXECUTED
133889: 89 d6 mov %edx,%esi <== NOT EXECUTED
13388b: d3 ee shr %cl,%esi <== NOT EXECUTED
13388d: 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);
133890: 0f b7 3f movzwl (%edi),%edi <== NOT EXECUTED
133893: 4f dec %edi <== NOT EXECUTED
133894: 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,
133896: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
133899: 8d 45 e6 lea -0x1a(%ebp),%eax <== NOT EXECUTED
13389c: 50 push %eax <== NOT EXECUTED
13389d: 6a 02 push $0x2 <== NOT EXECUTED
13389f: 8d 47 16 lea 0x16(%edi),%eax <== NOT EXECUTED
1338a2: 50 push %eax <== NOT EXECUTED
1338a3: 56 push %esi <== NOT EXECUTED
1338a4: 53 push %ebx <== NOT EXECUTED
1338a5: e8 d6 20 ff ff call 125980 <_fat_block_write> <== NOT EXECUTED
1338aa: 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,
1338ac: 83 c4 14 add $0x14,%esp <== NOT EXECUTED
1338af: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
1338b2: 50 push %eax <== NOT EXECUTED
1338b3: 6a 02 push $0x2 <== NOT EXECUTED
1338b5: 83 c7 18 add $0x18,%edi <== NOT EXECUTED
1338b8: 57 push %edi <== NOT EXECUTED
1338b9: 56 push %esi <== NOT EXECUTED
1338ba: 53 push %ebx <== NOT EXECUTED
1338bb: 89 55 d4 mov %edx,-0x2c(%ebp) <== NOT EXECUTED
1338be: e8 bd 20 ff ff call 125980 <_fat_block_write> <== NOT EXECUTED
2, (char *)(&date));
if ( (ret1 < 0) || (ret2 < 0) )
1338c3: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
1338c6: 85 c0 test %eax,%eax <== NOT EXECUTED
1338c8: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED
1338cb: 78 06 js 1338d3 <msdos_set_dir_wrt_time_and_date+0x97><== NOT EXECUTED
1338cd: 31 c0 xor %eax,%eax <== NOT EXECUTED
1338cf: 85 d2 test %edx,%edx <== NOT EXECUTED
1338d1: 79 03 jns 1338d6 <msdos_set_dir_wrt_time_and_date+0x9a><== NOT EXECUTED
1338d3: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
return -1;
return RC_OK;
}
1338d6: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1338d9: 5b pop %ebx <== NOT EXECUTED
1338da: 5e pop %esi <== NOT EXECUTED
1338db: 5f pop %edi <== NOT EXECUTED
1338dc: c9 leave <== NOT EXECUTED
1338dd: c3 ret <== NOT EXECUTED
00133631 <msdos_set_file_size>:
int
msdos_set_file_size(
rtems_filesystem_mount_table_entry_t *mt_entry,
fat_file_fd_t *fat_fd
)
{
133631: 55 push %ebp <== NOT EXECUTED
133632: 89 e5 mov %esp,%ebp <== NOT EXECUTED
133634: 57 push %edi <== NOT EXECUTED
133635: 56 push %esi <== NOT EXECUTED
133636: 53 push %ebx <== NOT EXECUTED
133637: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED
13363a: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
13363d: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
ssize_t ret = 0;
msdos_fs_info_t *fs_info = mt_entry->fs_info;
133640: 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);
133643: 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)) )
133646: 85 d2 test %edx,%edx <== NOT EXECUTED
133648: 75 0b jne 133655 <msdos_set_file_size+0x24><== NOT EXECUTED
13364a: f6 40 0a 03 testb $0x3,0xa(%eax) <== NOT EXECUTED
13364e: 74 05 je 133655 <msdos_set_file_size+0x24><== NOT EXECUTED
return fs_info->vol.rdir_loc;
133650: 8b 50 1c mov 0x1c(%eax),%edx <== NOT EXECUTED
133653: eb 0c jmp 133661 <msdos_set_file_size+0x30><== NOT EXECUTED
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
133655: 83 ea 02 sub $0x2,%edx <== NOT EXECUTED
133658: 0f b6 48 05 movzbl 0x5(%eax),%ecx <== NOT EXECUTED
13365c: d3 e2 shl %cl,%edx <== NOT EXECUTED
13365e: 03 50 30 add 0x30(%eax),%edx <== NOT EXECUTED
sec += (fat_fd->dir_pos.sname.ofs >> fs_info->fat.vol.sec_log2);
133661: 0f b6 48 02 movzbl 0x2(%eax),%ecx <== NOT EXECUTED
133665: 8b 7b 24 mov 0x24(%ebx),%edi <== NOT EXECUTED
133668: d3 ef shr %cl,%edi <== NOT EXECUTED
13366a: 01 fa add %edi,%edx <== NOT EXECUTED
byte = (fat_fd->dir_pos.sname.ofs & (fs_info->fat.vol.bps - 1));
13366c: 0f b7 00 movzwl (%eax),%eax <== NOT EXECUTED
13366f: 48 dec %eax <== NOT EXECUTED
133670: 23 43 24 and 0x24(%ebx),%eax <== NOT EXECUTED
le_new_length = CT_LE_L((fat_fd->fat_file_size));
133673: 8b 4b 18 mov 0x18(%ebx),%ecx <== NOT EXECUTED
133676: 89 4d e4 mov %ecx,-0x1c(%ebp) <== NOT EXECUTED
ret = _fat_block_write(mt_entry, sec, byte + MSDOS_FILE_SIZE_OFFSET, 4,
133679: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13367c: 8d 4d e4 lea -0x1c(%ebp),%ecx <== NOT EXECUTED
13367f: 51 push %ecx <== NOT EXECUTED
133680: 6a 04 push $0x4 <== NOT EXECUTED
133682: 83 c0 1c add $0x1c,%eax <== NOT EXECUTED
133685: 50 push %eax <== NOT EXECUTED
133686: 52 push %edx <== NOT EXECUTED
133687: 56 push %esi <== NOT EXECUTED
133688: e8 f3 22 ff ff call 125980 <_fat_block_write> <== NOT EXECUTED
(char *)(&le_new_length));
if ( ret < 0 )
13368d: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
133690: c1 f8 1f sar $0x1f,%eax <== NOT EXECUTED
return -1;
return RC_OK;
}
133693: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
133696: 5b pop %ebx <== NOT EXECUTED
133697: 5e pop %esi <== NOT EXECUTED
133698: 5f pop %edi <== NOT EXECUTED
133699: c9 leave <== NOT EXECUTED
13369a: c3 ret <== NOT EXECUTED
00133744 <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
)
{
133744: 55 push %ebp <== NOT EXECUTED
133745: 89 e5 mov %esp,%ebp <== NOT EXECUTED
133747: 57 push %edi <== NOT EXECUTED
133748: 56 push %esi <== NOT EXECUTED
133749: 53 push %ebx <== NOT EXECUTED
13374a: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED
13374d: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
133750: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
133753: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
133756: 88 55 d4 mov %dl,-0x2c(%ebp) <== NOT EXECUTED
ssize_t ret;
msdos_fs_info_t *fs_info = mt_entry->fs_info;
133759: 8b 5e 34 mov 0x34(%esi),%ebx <== NOT EXECUTED
uint32_t dir_block_size;
fat_pos_t start = dir_pos->lname;
13375c: 8b 50 08 mov 0x8(%eax),%edx <== NOT EXECUTED
13375f: 8b 48 0c mov 0xc(%eax),%ecx <== NOT EXECUTED
133762: 89 55 e0 mov %edx,-0x20(%ebp) <== NOT EXECUTED
133765: 89 4d e4 mov %ecx,-0x1c(%ebp) <== NOT EXECUTED
fat_pos_t end = dir_pos->sname;
133768: 8b 50 04 mov 0x4(%eax),%edx <== NOT EXECUTED
13376b: 89 55 cc mov %edx,-0x34(%ebp) <== NOT EXECUTED
13376e: 8b 38 mov (%eax),%edi <== NOT EXECUTED
if ((end.cln == fs_info->fat.vol.rdir_cl) &&
133770: 3b 7b 38 cmp 0x38(%ebx),%edi <== NOT EXECUTED
133773: 75 0e jne 133783 <msdos_set_first_char4file_name+0x3f><== NOT EXECUTED
(fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16)))
133775: f6 43 0a 03 testb $0x3,0xa(%ebx) <== NOT EXECUTED
133779: 74 08 je 133783 <msdos_set_first_char4file_name+0x3f><== NOT EXECUTED
dir_block_size = fs_info->fat.vol.rdir_size;
13377b: 8b 4b 28 mov 0x28(%ebx),%ecx <== NOT EXECUTED
13377e: 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) &&
133781: eb 07 jmp 13378a <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;
133783: 0f b7 53 06 movzwl 0x6(%ebx),%edx <== NOT EXECUTED
133787: 89 55 d0 mov %edx,-0x30(%ebp) <== NOT EXECUTED
if (dir_pos->lname.cln == FAT_FILE_SHORT_NAME)
13378a: 83 78 08 ff cmpl $0xffffffff,0x8(%eax) <== NOT EXECUTED
13378e: 75 0b jne 13379b <msdos_set_first_char4file_name+0x57><== NOT EXECUTED
start = dir_pos->sname;
133790: 8b 50 04 mov 0x4(%eax),%edx <== NOT EXECUTED
133793: 8b 00 mov (%eax),%eax <== NOT EXECUTED
133795: 89 45 e0 mov %eax,-0x20(%ebp) <== NOT EXECUTED
133798: 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) +
13379b: 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;
13379e: 8b 46 34 mov 0x34(%esi),%eax <== NOT EXECUTED
if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) )
1337a1: 85 d2 test %edx,%edx <== NOT EXECUTED
1337a3: 75 0b jne 1337b0 <msdos_set_first_char4file_name+0x6c><== NOT EXECUTED
1337a5: f6 40 0a 03 testb $0x3,0xa(%eax) <== NOT EXECUTED
1337a9: 74 05 je 1337b0 <msdos_set_first_char4file_name+0x6c><== NOT EXECUTED
return fs_info->vol.rdir_loc;
1337ab: 8b 50 1c mov 0x1c(%eax),%edx <== NOT EXECUTED
1337ae: eb 0c jmp 1337bc <msdos_set_first_char4file_name+0x78><== NOT EXECUTED
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
1337b0: 83 ea 02 sub $0x2,%edx <== NOT EXECUTED
1337b3: 0f b6 48 05 movzbl 0x5(%eax),%ecx <== NOT EXECUTED
1337b7: d3 e2 shl %cl,%edx <== NOT EXECUTED
1337b9: 03 50 30 add 0x30(%eax),%edx <== NOT EXECUTED
(start.ofs >> fs_info->fat.vol.sec_log2));
1337bc: 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,
1337bf: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1337c2: 8d 4d d4 lea -0x2c(%ebp),%ecx <== NOT EXECUTED
1337c5: 51 push %ecx <== NOT EXECUTED
1337c6: 6a 01 push $0x1 <== NOT EXECUTED
1337c8: 0f b7 0b movzwl (%ebx),%ecx <== NOT EXECUTED
1337cb: 49 dec %ecx <== NOT EXECUTED
1337cc: 21 c1 and %eax,%ecx <== NOT EXECUTED
1337ce: 51 push %ecx <== NOT EXECUTED
1337cf: 0f b6 4b 02 movzbl 0x2(%ebx),%ecx <== NOT EXECUTED
1337d3: d3 e8 shr %cl,%eax <== NOT EXECUTED
1337d5: 8d 04 02 lea (%edx,%eax,1),%eax <== NOT EXECUTED
1337d8: 50 push %eax <== NOT EXECUTED
1337d9: 56 push %esi <== NOT EXECUTED
1337da: e8 a1 21 ff ff call 125980 <_fat_block_write> <== NOT EXECUTED
&fchar);
if (ret < 0)
1337df: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
1337e2: 85 c0 test %eax,%eax <== NOT EXECUTED
1337e4: 78 47 js 13382d <msdos_set_first_char4file_name+0xe9><== NOT EXECUTED
return -1;
if ((start.cln == end.cln) && (start.ofs == end.ofs))
1337e6: 39 7d e0 cmp %edi,-0x20(%ebp) <== NOT EXECUTED
1337e9: 75 08 jne 1337f3 <msdos_set_first_char4file_name+0xaf><== NOT EXECUTED
1337eb: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED
1337ee: 39 45 e4 cmp %eax,-0x1c(%ebp) <== NOT EXECUTED
1337f1: 74 3f je 133832 <msdos_set_first_char4file_name+0xee><== NOT EXECUTED
break;
start.ofs += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE;
1337f3: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
1337f6: 83 c0 20 add $0x20,%eax <== NOT EXECUTED
1337f9: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
if (start.ofs >= dir_block_size)
1337fc: 3b 45 d0 cmp -0x30(%ebp),%eax <== NOT EXECUTED
1337ff: 72 9a jb 13379b <msdos_set_first_char4file_name+0x57><== NOT EXECUTED
{
int rc;
if ((end.cln == fs_info->fat.vol.rdir_cl) &&
133801: 3b 7b 38 cmp 0x38(%ebx),%edi <== NOT EXECUTED
133804: 75 06 jne 13380c <msdos_set_first_char4file_name+0xc8><== NOT EXECUTED
(fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16)))
133806: f6 43 0a 03 testb $0x3,0xa(%ebx) <== NOT EXECUTED
13380a: 75 26 jne 133832 <msdos_set_first_char4file_name+0xee><== NOT EXECUTED
break;
rc = fat_get_fat_cluster(mt_entry, start.cln, &start.cln);
13380c: 50 push %eax <== NOT EXECUTED
13380d: 8d 55 e0 lea -0x20(%ebp),%edx <== NOT EXECUTED
133810: 52 push %edx <== NOT EXECUTED
133811: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
133814: 56 push %esi <== NOT EXECUTED
133815: e8 fb 60 00 00 call 139915 <fat_get_fat_cluster> <== NOT EXECUTED
if ( rc != RC_OK )
13381a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13381d: 85 c0 test %eax,%eax <== NOT EXECUTED
13381f: 75 13 jne 133834 <msdos_set_first_char4file_name+0xf0><== NOT EXECUTED
return rc;
start.ofs = 0;
133821: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) <== NOT EXECUTED
133828: e9 6e ff ff ff jmp 13379b <msdos_set_first_char4file_name+0x57><== NOT EXECUTED
13382d: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
133830: eb 02 jmp 133834 <msdos_set_first_char4file_name+0xf0><== NOT EXECUTED
133832: 31 c0 xor %eax,%eax <== NOT EXECUTED
}
}
return RC_OK;
}
133834: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
133837: 5b pop %ebx <== NOT EXECUTED
133838: 5e pop %esi <== NOT EXECUTED
133839: 5f pop %edi <== NOT EXECUTED
13383a: c9 leave <== NOT EXECUTED
13383b: c3 ret <== NOT EXECUTED
0013369b <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
)
{
13369b: 55 push %ebp <== NOT EXECUTED
13369c: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13369e: 57 push %edi <== NOT EXECUTED
13369f: 56 push %esi <== NOT EXECUTED
1336a0: 53 push %ebx <== NOT EXECUTED
1336a1: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED
1336a4: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
1336a7: 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;
1336aa: 8b 43 34 mov 0x34(%ebx),%eax <== NOT EXECUTED
uint32_t new_cln = fat_fd->cln;
1336ad: 8b 56 1c mov 0x1c(%esi),%edx <== NOT EXECUTED
1336b0: 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);
1336b3: 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)) )
1336b6: 85 d2 test %edx,%edx <== NOT EXECUTED
1336b8: 75 0b jne 1336c5 <msdos_set_first_cluster_num+0x2a><== NOT EXECUTED
1336ba: f6 40 0a 03 testb $0x3,0xa(%eax) <== NOT EXECUTED
1336be: 74 05 je 1336c5 <msdos_set_first_cluster_num+0x2a><== NOT EXECUTED
return fs_info->vol.rdir_loc;
1336c0: 8b 50 1c mov 0x1c(%eax),%edx <== NOT EXECUTED
1336c3: eb 0c jmp 1336d1 <msdos_set_first_cluster_num+0x36><== NOT EXECUTED
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
1336c5: 83 ea 02 sub $0x2,%edx <== NOT EXECUTED
1336c8: 0f b6 48 05 movzbl 0x5(%eax),%ecx <== NOT EXECUTED
1336cc: d3 e2 shl %cl,%edx <== NOT EXECUTED
1336ce: 03 50 30 add 0x30(%eax),%edx <== NOT EXECUTED
sec += (fat_fd->dir_pos.sname.ofs >> fs_info->fat.vol.sec_log2);
1336d1: 8b 76 24 mov 0x24(%esi),%esi <== NOT EXECUTED
1336d4: 0f b6 48 02 movzbl 0x2(%eax),%ecx <== NOT EXECUTED
1336d8: 89 f7 mov %esi,%edi <== NOT EXECUTED
1336da: d3 ef shr %cl,%edi <== NOT EXECUTED
1336dc: 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);
1336df: 0f b7 10 movzwl (%eax),%edx <== NOT EXECUTED
1336e2: 4a dec %edx <== NOT EXECUTED
1336e3: 21 f2 and %esi,%edx <== NOT EXECUTED
le_cl_low = CT_LE_W((uint16_t )(new_cln & 0x0000FFFF));
1336e5: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED
1336e8: 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;
1336ec: 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,
1336f2: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1336f5: 8d 45 e6 lea -0x1a(%ebp),%eax <== NOT EXECUTED
1336f8: 50 push %eax <== NOT EXECUTED
1336f9: 6a 02 push $0x2 <== NOT EXECUTED
1336fb: 8d 42 1a lea 0x1a(%edx),%eax <== NOT EXECUTED
1336fe: 50 push %eax <== NOT EXECUTED
1336ff: 57 push %edi <== NOT EXECUTED
133700: 53 push %ebx <== NOT EXECUTED
133701: 89 55 d0 mov %edx,-0x30(%ebp) <== NOT EXECUTED
133704: e8 77 22 ff ff call 125980 <_fat_block_write> <== NOT EXECUTED
133709: 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));
13370b: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED
13370e: c1 e8 10 shr $0x10,%eax <== NOT EXECUTED
133711: 66 89 45 e4 mov %ax,-0x1c(%ebp) <== NOT EXECUTED
ret2 = _fat_block_write(mt_entry, sec,
133715: 83 c4 14 add $0x14,%esp <== NOT EXECUTED
133718: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
13371b: 50 push %eax <== NOT EXECUTED
13371c: 6a 02 push $0x2 <== NOT EXECUTED
13371e: 8b 55 d0 mov -0x30(%ebp),%edx <== NOT EXECUTED
133721: 83 c2 14 add $0x14,%edx <== NOT EXECUTED
133724: 52 push %edx <== NOT EXECUTED
133725: 57 push %edi <== NOT EXECUTED
133726: 53 push %ebx <== NOT EXECUTED
133727: e8 54 22 ff ff call 125980 <_fat_block_write> <== NOT EXECUTED
byte + MSDOS_FIRST_CLUSTER_HI_OFFSET, 2,
(char *)(&le_cl_hi));
if ( (ret1 < 0) || (ret2 < 0) )
13372c: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
13372f: 85 c0 test %eax,%eax <== NOT EXECUTED
133731: 78 06 js 133739 <msdos_set_first_cluster_num+0x9e><== NOT EXECUTED
133733: 31 c0 xor %eax,%eax <== NOT EXECUTED
133735: 85 f6 test %esi,%esi <== NOT EXECUTED
133737: 79 03 jns 13373c <msdos_set_first_cluster_num+0xa1><== NOT EXECUTED
133739: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
return -1;
return RC_OK;
}
13373c: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13373f: 5b pop %ebx <== NOT EXECUTED
133740: 5e pop %esi <== NOT EXECUTED
133741: 5f pop %edi <== NOT EXECUTED
133742: c9 leave <== NOT EXECUTED
133743: c3 ret <== NOT EXECUTED
00132ce4 <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)
{
132ce4: 55 push %ebp <== NOT EXECUTED
132ce5: 89 e5 mov %esp,%ebp <== NOT EXECUTED
132ce7: 57 push %edi <== NOT EXECUTED
132ce8: 56 push %esi <== NOT EXECUTED
132ce9: 53 push %ebx <== NOT EXECUTED
132cea: 83 ec 14 sub $0x14,%esp <== NOT EXECUTED
132ced: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
int rc = RC_OK;
msdos_fs_info_t *fs_info = temp_mt_entry->fs_info;
132cf0: 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)
132cf3: ff 73 1c pushl 0x1c(%ebx) <== NOT EXECUTED
132cf6: 53 push %ebx <== NOT EXECUTED
132cf7: e8 d9 25 ff ff call 1252d5 <fat_file_close> <== NOT EXECUTED
132cfc: 83 f8 01 cmp $0x1,%eax <== NOT EXECUTED
132cff: 19 f6 sbb %esi,%esi <== NOT EXECUTED
132d01: 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)
132d03: 89 1c 24 mov %ebx,(%esp) <== NOT EXECUTED
132d06: e8 77 2d ff ff call 125a82 <fat_shutdown_drive> <== NOT EXECUTED
132d0b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
132d0e: 85 c0 test %eax,%eax <== NOT EXECUTED
132d10: 74 03 je 132d15 <msdos_shut_down+0x31> <== NOT EXECUTED
132d12: 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);
132d15: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
132d18: ff b7 94 00 00 00 pushl 0x94(%edi) <== NOT EXECUTED
132d1e: e8 01 de fd ff call 110b24 <rtems_semaphore_delete><== NOT EXECUTED
free(fs_info->cl_buf);
132d23: 5a pop %edx <== NOT EXECUTED
132d24: ff b7 98 00 00 00 pushl 0x98(%edi) <== NOT EXECUTED
132d2a: e8 6d a1 fd ff call 10ce9c <free> <== NOT EXECUTED
free(temp_mt_entry->fs_info);
132d2f: 58 pop %eax <== NOT EXECUTED
132d30: ff 73 34 pushl 0x34(%ebx) <== NOT EXECUTED
132d33: e8 64 a1 fd ff call 10ce9c <free> <== NOT EXECUTED
return rc;
}
132d38: 89 f0 mov %esi,%eax <== NOT EXECUTED
132d3a: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
132d3d: 5b pop %ebx <== NOT EXECUTED
132d3e: 5e pop %esi <== NOT EXECUTED
132d3f: 5f pop %edi <== NOT EXECUTED
132d40: c9 leave <== NOT EXECUTED
132d41: c3 ret <== NOT EXECUTED
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 00 35 12 00 mov 0x123500,%ebx
107df9: eb 06 jmp 107e01 <newlib_delete_hook+0x21>
} else {
ptr = deleted_task->libc_reent;
107dfb: 8b 9e ec 00 00 00 mov 0xec(%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 40 fc 11 00 cmp 0x11fc40,%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 56 a2 00 00 call 112070 <_fwalk>
#if REENT_MALLOCED
free(ptr);
#else
_Workspace_Free(ptr);
107e1a: 89 1c 24 mov %ebx,(%esp)
107e1d: e8 ab 53 00 00 call 10d1cd <_Workspace_Free>
107e22: 83 c4 10 add $0x10,%esp
#endif
}
deleted_task->libc_reent = NULL;
107e25: c7 86 ec 00 00 00 00 movl $0x0,0xec(%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 00 35 12 00 00 movl $0x0,0x123500
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 23 9e 00 00 call 111c78 <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 80 9b 00 00 call 111a0c <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 04 77 12 00 00 cmpb $0x0,0x127704
1078f1: 75 2b jne 10791e <null_initialize+0x3e>
initialized = 1;
1078f3: c6 05 04 77 12 00 01 movb $0x1,0x127704
status = rtems_io_register_name(
1078fa: 50 push %eax
1078fb: 6a 00 push $0x0
1078fd: 53 push %ebx
1078fe: 68 d8 06 12 00 push $0x1206d8
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 c0 3f 00 00 call 10b8d8 <rtems_fatal_error_occurred><== NOT EXECUTED
NULL_major = major;
107918: 89 1d 38 7a 12 00 mov %ebx,0x127a38
}
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 62 6c 00 00 call 10edfb <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 e9 96 00 00 call 1118c0 <__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 b0 96 00 00 call 1118c0 <__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 04 6c 00 00 call 10ee86 <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 fc 95 00 00 call 1118c0 <__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 40 55 12 00 sub 0x125540,%eax
1082e5: c1 f8 06 sar $0x6,%eax
1082e8: 50 push %eax
1082e9: e8 0a 69 00 00 call 10ebf8 <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 c4 95 00 00 call 1118c0 <__errno> <== NOT EXECUTED
1082fc: 83 38 00 cmpl $0x0,(%eax) <== NOT EXECUTED
1082ff: 74 07 je 108308 <open+0x198> <== NOT EXECUTED
108301: e8 ba 95 00 00 call 1118c0 <__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 40 55 12 00 sub 0x125540,%ebx <== NOT EXECUTED
108311: c1 fb 06 sar $0x6,%ebx <== NOT EXECUTED
108314: 53 push %ebx <== NOT EXECUTED
108315: e8 56 68 00 00 call 10eb70 <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 74 6a 00 00 call 10eda6 <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 6b 95 00 00 call 1118c0 <__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 40 55 12 00 sub 0x125540,%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 8b d9 11 00 push $0x11d98b
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 8b d9 11 00 push $0x11d98b
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 8b d9 11 00 push $0x11d98b
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 1d 2a 00 00 call 10ab88 <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 20 f0 11 00 push $0x11f020
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 54 ec 11 00 push $0x11ec54
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 fc 34 12 00 mov 0x1234fc,%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 fc 34 12 00 mov 0x1234fc,%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
00110bd4 <pipe_create>:
* Called by pipe() to create an anonymous pipe.
*/
int pipe_create(
int filsdes[2]
)
{
110bd4: 55 push %ebp
110bd5: 89 e5 mov %esp,%ebp
110bd7: 57 push %edi
110bd8: 56 push %esi
110bd9: 53 push %ebx
110bda: 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)
110bdd: 6a 01 push $0x1
110bdf: 8d 5d c4 lea -0x3c(%ebp),%ebx
110be2: 53 push %ebx
110be3: 6a 07 push $0x7
110be5: 6a 03 push $0x3
110be7: 68 8c f8 11 00 push $0x11f88c
110bec: e8 40 6a ff ff call 107631 <rtems_filesystem_evaluate_path>
110bf1: 83 c4 20 add $0x20,%esp
110bf4: 85 c0 test %eax,%eax
110bf6: 74 2b je 110c23 <pipe_create+0x4f> <== NEVER TAKEN
!= 0) {
if (errno != ENOENT)
110bf8: e8 c3 0c 00 00 call 1118c0 <__errno>
110bfd: 83 38 02 cmpl $0x2,(%eax)
110c00: 0f 85 0c 01 00 00 jne 110d12 <pipe_create+0x13e> <== NEVER TAKEN
return -1;
if (mkdir("/tmp", S_IRWXU|S_IRWXG|S_IRWXO|S_ISVTX) != 0)
110c06: 50 push %eax
110c07: 50 push %eax
110c08: 68 ff 03 00 00 push $0x3ff
110c0d: 68 8c f8 11 00 push $0x11f88c
110c12: e8 c9 6d ff ff call 1079e0 <mkdir>
110c17: 83 c4 10 add $0x10,%esp
110c1a: 85 c0 test %eax,%eax
110c1c: 74 1c je 110c3a <pipe_create+0x66> <== ALWAYS TAKEN
110c1e: e9 ef 00 00 00 jmp 110d12 <pipe_create+0x13e> <== NOT EXECUTED
return -1;
}
else
rtems_filesystem_freenode(&loc);
110c23: 8b 45 d0 mov -0x30(%ebp),%eax <== NOT EXECUTED
110c26: 85 c0 test %eax,%eax <== NOT EXECUTED
110c28: 74 10 je 110c3a <pipe_create+0x66> <== NOT EXECUTED
110c2a: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED
110c2d: 85 c0 test %eax,%eax <== NOT EXECUTED
110c2f: 74 09 je 110c3a <pipe_create+0x66> <== NOT EXECUTED
110c31: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
110c34: 53 push %ebx <== NOT EXECUTED
110c35: ff d0 call *%eax <== NOT EXECUTED
110c37: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
/* /tmp/.fifoXXXX */
char fifopath[15];
memcpy(fifopath, "/tmp/.fifo", 10);
110c3a: 8d 5d d9 lea -0x27(%ebp),%ebx
110c3d: be 91 f8 11 00 mov $0x11f891,%esi
110c42: b9 0a 00 00 00 mov $0xa,%ecx
110c47: 89 df mov %ebx,%edi
110c49: f3 a4 rep movsb %ds:(%esi),%es:(%edi)
sprintf(fifopath + 10, "%04x", rtems_pipe_no ++);
110c4b: 0f b7 05 44 53 12 00 movzwl 0x125344,%eax
110c52: 8d 50 01 lea 0x1(%eax),%edx
110c55: 66 89 15 44 53 12 00 mov %dx,0x125344
110c5c: 57 push %edi
110c5d: 50 push %eax
110c5e: 68 9c f8 11 00 push $0x11f89c
110c63: 8d 45 e3 lea -0x1d(%ebp),%eax
110c66: 50 push %eax
110c67: e8 e8 15 00 00 call 112254 <sprintf>
/* Try creating FIFO file until find an available file name */
while (mkfifo(fifopath, S_IRUSR|S_IWUSR) != 0) {
110c6c: 59 pop %ecx
110c6d: 5e pop %esi
110c6e: 68 80 01 00 00 push $0x180
110c73: 53 push %ebx
110c74: e8 4f 06 00 00 call 1112c8 <mkfifo>
110c79: 83 c4 10 add $0x10,%esp
110c7c: 85 c0 test %eax,%eax
110c7e: 74 0a je 110c8a <pipe_create+0xb6> <== ALWAYS TAKEN
if (errno != EEXIST){
110c80: e8 3b 0c 00 00 call 1118c0 <__errno> <== NOT EXECUTED
110c85: e9 88 00 00 00 jmp 110d12 <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);
110c8a: 52 push %edx
110c8b: 52 push %edx
110c8c: 68 00 40 00 00 push $0x4000
110c91: 53 push %ebx
110c92: e8 d9 74 ff ff call 108170 <open>
110c97: 8b 55 08 mov 0x8(%ebp),%edx
110c9a: 89 02 mov %eax,(%edx)
if (filsdes[0] < 0) {
110c9c: 83 c4 10 add $0x10,%esp
110c9f: 85 c0 test %eax,%eax
110ca1: 79 0d jns 110cb0 <pipe_create+0xdc> <== NEVER TAKEN
err = errno;
110ca3: e8 18 0c 00 00 call 1118c0 <__errno>
110ca8: 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);
110caa: 83 ec 0c sub $0xc,%esp
110cad: 53 push %ebx
110cae: eb 53 jmp 110d03 <pipe_create+0x12f>
}
else {
/* Reset open file to blocking mode */
iop = rtems_libio_iop(filsdes[0]);
110cb0: 31 d2 xor %edx,%edx <== NOT EXECUTED
110cb2: 3b 05 64 16 12 00 cmp 0x121664,%eax <== NOT EXECUTED
110cb8: 73 0b jae 110cc5 <pipe_create+0xf1> <== NOT EXECUTED
110cba: 89 c2 mov %eax,%edx <== NOT EXECUTED
110cbc: c1 e2 06 shl $0x6,%edx <== NOT EXECUTED
110cbf: 03 15 40 55 12 00 add 0x125540,%edx <== NOT EXECUTED
iop->flags &= ~LIBIO_FLAGS_NO_DELAY;
110cc5: 83 62 14 fe andl $0xfffffffe,0x14(%edx) <== NOT EXECUTED
filsdes[1] = open(fifopath, O_WRONLY);
110cc9: 50 push %eax <== NOT EXECUTED
110cca: 50 push %eax <== NOT EXECUTED
110ccb: 6a 01 push $0x1 <== NOT EXECUTED
110ccd: 8d 45 d9 lea -0x27(%ebp),%eax <== NOT EXECUTED
110cd0: 50 push %eax <== NOT EXECUTED
110cd1: e8 9a 74 ff ff call 108170 <open> <== NOT EXECUTED
110cd6: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
110cd9: 89 42 04 mov %eax,0x4(%edx) <== NOT EXECUTED
if (filsdes[1] < 0) {
110cdc: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
110cdf: 31 f6 xor %esi,%esi <== NOT EXECUTED
110ce1: 85 c0 test %eax,%eax <== NOT EXECUTED
110ce3: 79 17 jns 110cfc <pipe_create+0x128> <== NOT EXECUTED
err = errno;
110ce5: e8 d6 0b 00 00 call 1118c0 <__errno> <== NOT EXECUTED
110cea: 8b 30 mov (%eax),%esi <== NOT EXECUTED
close(filsdes[0]);
110cec: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
110cef: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
110cf2: ff 30 pushl (%eax) <== NOT EXECUTED
110cf4: e8 77 de ff ff call 10eb70 <close> <== NOT EXECUTED
110cf9: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
unlink(fifopath);
110cfc: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
110cff: 8d 45 d9 lea -0x27(%ebp),%eax <== NOT EXECUTED
110d02: 50 push %eax <== NOT EXECUTED
110d03: e8 dc 05 00 00 call 1112e4 <unlink>
110d08: 83 c4 10 add $0x10,%esp
}
rtems_set_errno_and_return_minus_one(err);
110d0b: e8 b0 0b 00 00 call 1118c0 <__errno>
110d10: 89 30 mov %esi,(%eax)
}
110d12: 83 c8 ff or $0xffffffff,%eax
110d15: 8d 65 f4 lea -0xc(%ebp),%esp
110d18: 5b pop %ebx
110d19: 5e pop %esi
110d1a: 5f pop %edi
110d1b: c9 leave
110d1c: c3 ret
0010d991 <pipe_free>:
/* Called with rtems_pipe_semaphore held. */
static inline void pipe_free(
pipe_control_t *pipe
)
{
10d991: 55 push %ebp <== NOT EXECUTED
10d992: 89 e5 mov %esp,%ebp <== NOT EXECUTED
10d994: 53 push %ebx <== NOT EXECUTED
10d995: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED
10d998: 89 c3 mov %eax,%ebx <== NOT EXECUTED
rtems_barrier_delete(pipe->readBarrier);
10d99a: ff 70 2c pushl 0x2c(%eax) <== NOT EXECUTED
10d99d: e8 56 18 00 00 call 10f1f8 <rtems_barrier_delete> <== NOT EXECUTED
rtems_barrier_delete(pipe->writeBarrier);
10d9a2: 59 pop %ecx <== NOT EXECUTED
10d9a3: ff 73 30 pushl 0x30(%ebx) <== NOT EXECUTED
10d9a6: e8 4d 18 00 00 call 10f1f8 <rtems_barrier_delete> <== NOT EXECUTED
rtems_semaphore_delete(pipe->Semaphore);
10d9ab: 5a pop %edx <== NOT EXECUTED
10d9ac: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
10d9af: e8 b4 cb ff ff call 10a568 <rtems_semaphore_delete><== NOT EXECUTED
free(pipe->Buffer);
10d9b4: 58 pop %eax <== NOT EXECUTED
10d9b5: ff 33 pushl (%ebx) <== NOT EXECUTED
10d9b7: e8 e0 9c ff ff call 10769c <free> <== NOT EXECUTED
free(pipe);
10d9bc: 89 1c 24 mov %ebx,(%esp) <== NOT EXECUTED
10d9bf: e8 d8 9c ff ff call 10769c <free> <== NOT EXECUTED
10d9c4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
10d9c7: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
10d9ca: c9 leave <== NOT EXECUTED
10d9cb: c3 ret <== NOT EXECUTED
0010d647 <pipe_ioctl>:
pipe_control_t *pipe,
uint32_t cmd,
void *buffer,
rtems_libio_t *iop
)
{
10d647: 55 push %ebp <== NOT EXECUTED
10d648: 89 e5 mov %esp,%ebp <== NOT EXECUTED
10d64a: 56 push %esi <== NOT EXECUTED
10d64b: 53 push %ebx <== NOT EXECUTED
10d64c: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
10d64f: 8b 75 10 mov 0x10(%ebp),%esi <== NOT EXECUTED
if (cmd == FIONREAD) {
10d652: b8 ea ff ff ff mov $0xffffffea,%eax <== NOT EXECUTED
10d657: 81 7d 0c 7f 66 04 40 cmpl $0x4004667f,0xc(%ebp) <== NOT EXECUTED
10d65e: 75 36 jne 10d696 <pipe_ioctl+0x4f> <== NOT EXECUTED
if (buffer == NULL)
10d660: b0 f2 mov $0xf2,%al <== NOT EXECUTED
10d662: 85 f6 test %esi,%esi <== NOT EXECUTED
10d664: 74 30 je 10d696 <pipe_ioctl+0x4f> <== NOT EXECUTED
return -EFAULT;
if (! PIPE_LOCK(pipe))
10d666: 50 push %eax <== NOT EXECUTED
10d667: 6a 00 push $0x0 <== NOT EXECUTED
10d669: 6a 00 push $0x0 <== NOT EXECUTED
10d66b: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
10d66e: e8 85 cf ff ff call 10a5f8 <rtems_semaphore_obtain><== NOT EXECUTED
10d673: 89 c2 mov %eax,%edx <== NOT EXECUTED
10d675: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10d678: b8 fc ff ff ff mov $0xfffffffc,%eax <== NOT EXECUTED
10d67d: 85 d2 test %edx,%edx <== NOT EXECUTED
10d67f: 75 15 jne 10d696 <pipe_ioctl+0x4f> <== NOT EXECUTED
return -EINTR;
/* Return length of pipe */
*(unsigned int *)buffer = pipe->Length;
10d681: 8b 43 0c mov 0xc(%ebx),%eax <== NOT EXECUTED
10d684: 89 06 mov %eax,(%esi) <== NOT EXECUTED
PIPE_UNLOCK(pipe);
10d686: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10d689: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
10d68c: e8 53 d0 ff ff call 10a6e4 <rtems_semaphore_release><== NOT EXECUTED
10d691: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
10d693: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
return -EINVAL;
}
10d696: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
10d699: 5b pop %ebx <== NOT EXECUTED
10d69a: 5e pop %esi <== NOT EXECUTED
10d69b: c9 leave <== NOT EXECUTED
10d69c: c3 ret <== NOT EXECUTED
0010d5f0 <pipe_lseek>:
pipe_control_t *pipe,
off_t offset,
int whence,
rtems_libio_t *iop
)
{
10d5f0: 55 push %ebp <== NOT EXECUTED
10d5f1: 89 e5 mov %esp,%ebp <== NOT EXECUTED
/* Seek on pipe is not supported */
return -ESPIPE;
}
10d5f3: b8 e3 ff ff ff mov $0xffffffe3,%eax <== NOT EXECUTED
10d5f8: c9 leave <== NOT EXECUTED
10d5f9: c3 ret <== NOT EXECUTED
0010d82f <pipe_read>:
pipe_control_t *pipe,
void *buffer,
size_t count,
rtems_libio_t *iop
)
{
10d82f: 55 push %ebp <== NOT EXECUTED
10d830: 89 e5 mov %esp,%ebp <== NOT EXECUTED
10d832: 57 push %edi <== NOT EXECUTED
10d833: 56 push %esi <== NOT EXECUTED
10d834: 53 push %ebx <== NOT EXECUTED
10d835: 83 ec 30 sub $0x30,%esp <== NOT EXECUTED
10d838: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
int chunk, chunk1, read = 0, ret = 0;
if (! PIPE_LOCK(pipe))
10d83b: 6a 00 push $0x0 <== NOT EXECUTED
10d83d: 6a 00 push $0x0 <== NOT EXECUTED
10d83f: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
10d842: e8 b1 cd ff ff call 10a5f8 <rtems_semaphore_obtain><== NOT EXECUTED
10d847: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10d84a: c7 45 d4 00 00 00 00 movl $0x0,-0x2c(%ebp) <== NOT EXECUTED
10d851: 85 c0 test %eax,%eax <== NOT EXECUTED
10d853: 0f 84 08 01 00 00 je 10d961 <pipe_read+0x132> <== NOT EXECUTED
10d859: c7 45 d4 fc ff ff ff movl $0xfffffffc,-0x2c(%ebp) <== NOT EXECUTED
10d860: e9 21 01 00 00 jmp 10d986 <pipe_read+0x157> <== NOT EXECUTED
return -EINTR;
while (read < count) {
while (PIPE_EMPTY(pipe)) {
/* Not an error */
if (pipe->Writers == 0)
10d865: 83 7b 14 00 cmpl $0x0,0x14(%ebx) <== NOT EXECUTED
10d869: 0f 84 fe 00 00 00 je 10d96d <pipe_read+0x13e> <== NOT EXECUTED
goto out_locked;
if (LIBIO_NODELAY(iop)) {
10d86f: 8b 45 14 mov 0x14(%ebp),%eax <== NOT EXECUTED
10d872: f6 40 14 01 testb $0x1,0x14(%eax) <== NOT EXECUTED
10d876: 74 0a je 10d882 <pipe_read+0x53> <== NOT EXECUTED
10d878: be f5 ff ff ff mov $0xfffffff5,%esi <== NOT EXECUTED
10d87d: e9 ed 00 00 00 jmp 10d96f <pipe_read+0x140> <== NOT EXECUTED
ret = -EAGAIN;
goto out_locked;
}
/* Wait until pipe is no more empty or no writer exists */
pipe->waitingReaders ++;
10d882: ff 43 18 incl 0x18(%ebx) <== NOT EXECUTED
PIPE_UNLOCK(pipe);
10d885: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10d888: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
10d88b: e8 54 ce ff ff call 10a6e4 <rtems_semaphore_release><== NOT EXECUTED
if (! PIPE_READWAIT(pipe))
10d890: 5a pop %edx <== NOT EXECUTED
10d891: 59 pop %ecx <== NOT EXECUTED
10d892: 6a 00 push $0x0 <== NOT EXECUTED
10d894: ff 73 2c pushl 0x2c(%ebx) <== NOT EXECUTED
10d897: e8 14 1a 00 00 call 10f2b0 <rtems_barrier_wait> <== NOT EXECUTED
10d89c: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
10d89f: 83 f8 01 cmp $0x1,%eax <== NOT EXECUTED
10d8a2: 19 f6 sbb %esi,%esi <== NOT EXECUTED
10d8a4: f7 d6 not %esi <== NOT EXECUTED
10d8a6: 83 e6 fc and $0xfffffffc,%esi <== NOT EXECUTED
ret = -EINTR;
if (! PIPE_LOCK(pipe)) {
10d8a9: 6a 00 push $0x0 <== NOT EXECUTED
10d8ab: 6a 00 push $0x0 <== NOT EXECUTED
10d8ad: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
10d8b0: e8 43 cd ff ff call 10a5f8 <rtems_semaphore_obtain><== NOT EXECUTED
10d8b5: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10d8b8: 85 c0 test %eax,%eax <== NOT EXECUTED
10d8ba: 74 0a je 10d8c6 <pipe_read+0x97> <== NOT EXECUTED
10d8bc: be fc ff ff ff mov $0xfffffffc,%esi <== NOT EXECUTED
10d8c1: e9 b7 00 00 00 jmp 10d97d <pipe_read+0x14e> <== NOT EXECUTED
/* WARN waitingReaders not restored! */
ret = -EINTR;
goto out_nolock;
}
pipe->waitingReaders --;
10d8c6: ff 4b 18 decl 0x18(%ebx) <== NOT EXECUTED
if (ret != 0)
10d8c9: 85 f6 test %esi,%esi <== NOT EXECUTED
10d8cb: 0f 85 9e 00 00 00 jne 10d96f <pipe_read+0x140> <== NOT EXECUTED
if (! PIPE_LOCK(pipe))
return -EINTR;
while (read < count) {
while (PIPE_EMPTY(pipe)) {
10d8d1: 8b 53 0c mov 0xc(%ebx),%edx <== NOT EXECUTED
10d8d4: 85 d2 test %edx,%edx <== NOT EXECUTED
10d8d6: 74 8d je 10d865 <pipe_read+0x36> <== NOT EXECUTED
if (ret != 0)
goto out_locked;
}
/* Read chunk bytes */
chunk = MIN(count - read, pipe->Length);
10d8d8: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
10d8db: 2b 45 d4 sub -0x2c(%ebp),%eax <== NOT EXECUTED
10d8de: 89 55 d0 mov %edx,-0x30(%ebp) <== NOT EXECUTED
10d8e1: 39 c2 cmp %eax,%edx <== NOT EXECUTED
10d8e3: 76 03 jbe 10d8e8 <pipe_read+0xb9> <== NOT EXECUTED
10d8e5: 89 45 d0 mov %eax,-0x30(%ebp) <== NOT EXECUTED
chunk1 = pipe->Size - pipe->Start;
10d8e8: 8b 73 08 mov 0x8(%ebx),%esi <== NOT EXECUTED
10d8eb: 8b 43 04 mov 0x4(%ebx),%eax <== NOT EXECUTED
10d8ee: 29 f0 sub %esi,%eax <== NOT EXECUTED
if (chunk > chunk1) {
10d8f0: 39 45 d0 cmp %eax,-0x30(%ebp) <== NOT EXECUTED
10d8f3: 8b 7d 0c mov 0xc(%ebp),%edi <== NOT EXECUTED
10d8f6: 8b 4d d4 mov -0x2c(%ebp),%ecx <== NOT EXECUTED
10d8f9: 8d 14 0f lea (%edi,%ecx,1),%edx <== NOT EXECUTED
10d8fc: 7e 1b jle 10d919 <pipe_read+0xea> <== NOT EXECUTED
memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk1);
10d8fe: 03 33 add (%ebx),%esi <== NOT EXECUTED
10d900: 89 d7 mov %edx,%edi <== NOT EXECUTED
10d902: 89 c1 mov %eax,%ecx <== NOT EXECUTED
10d904: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
memcpy(buffer + read + chunk1, pipe->Buffer, chunk - chunk1);
10d906: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED
10d909: 01 c2 add %eax,%edx <== NOT EXECUTED
10d90b: 03 55 0c add 0xc(%ebp),%edx <== NOT EXECUTED
10d90e: 8b 4d d0 mov -0x30(%ebp),%ecx <== NOT EXECUTED
10d911: 29 c1 sub %eax,%ecx <== NOT EXECUTED
10d913: 8b 33 mov (%ebx),%esi <== NOT EXECUTED
10d915: 89 d7 mov %edx,%edi <== NOT EXECUTED
10d917: eb 07 jmp 10d920 <pipe_read+0xf1> <== NOT EXECUTED
}
else
memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk);
10d919: 03 33 add (%ebx),%esi <== NOT EXECUTED
10d91b: 89 d7 mov %edx,%edi <== NOT EXECUTED
10d91d: 8b 4d d0 mov -0x30(%ebp),%ecx <== NOT EXECUTED
10d920: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
pipe->Start += chunk;
10d922: 8b 45 d0 mov -0x30(%ebp),%eax <== NOT EXECUTED
10d925: 03 43 08 add 0x8(%ebx),%eax <== NOT EXECUTED
pipe->Start %= pipe->Size;
10d928: 31 d2 xor %edx,%edx <== NOT EXECUTED
10d92a: f7 73 04 divl 0x4(%ebx) <== NOT EXECUTED
10d92d: 89 53 08 mov %edx,0x8(%ebx) <== NOT EXECUTED
pipe->Length -= chunk;
10d930: 8b 43 0c mov 0xc(%ebx),%eax <== NOT EXECUTED
10d933: 2b 45 d0 sub -0x30(%ebp),%eax <== NOT EXECUTED
10d936: 89 43 0c mov %eax,0xc(%ebx) <== NOT EXECUTED
/* For buffering optimization */
if (PIPE_EMPTY(pipe))
10d939: 85 c0 test %eax,%eax <== NOT EXECUTED
10d93b: 75 07 jne 10d944 <pipe_read+0x115> <== NOT EXECUTED
pipe->Start = 0;
10d93d: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx) <== NOT EXECUTED
if (pipe->waitingWriters > 0)
10d944: 83 7b 1c 00 cmpl $0x0,0x1c(%ebx) <== NOT EXECUTED
10d948: 74 11 je 10d95b <pipe_read+0x12c> <== NOT EXECUTED
PIPE_WAKEUPWRITERS(pipe);
10d94a: 50 push %eax <== NOT EXECUTED
10d94b: 50 push %eax <== NOT EXECUTED
10d94c: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
10d94f: 50 push %eax <== NOT EXECUTED
10d950: ff 73 30 pushl 0x30(%ebx) <== NOT EXECUTED
10d953: e8 00 19 00 00 call 10f258 <rtems_barrier_release> <== NOT EXECUTED
10d958: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
read += chunk;
10d95b: 8b 4d d0 mov -0x30(%ebp),%ecx <== NOT EXECUTED
10d95e: 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) {
10d961: 8b 7d 10 mov 0x10(%ebp),%edi <== NOT EXECUTED
10d964: 39 7d d4 cmp %edi,-0x2c(%ebp) <== NOT EXECUTED
10d967: 0f 82 64 ff ff ff jb 10d8d1 <pipe_read+0xa2> <== NOT EXECUTED
10d96d: 31 f6 xor %esi,%esi <== NOT EXECUTED
PIPE_WAKEUPWRITERS(pipe);
read += chunk;
}
out_locked:
PIPE_UNLOCK(pipe);
10d96f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10d972: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
10d975: e8 6a cd ff ff call 10a6e4 <rtems_semaphore_release><== NOT EXECUTED
10d97a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
out_nolock:
if (read > 0)
10d97d: 83 7d d4 00 cmpl $0x0,-0x2c(%ebp) <== NOT EXECUTED
10d981: 7f 03 jg 10d986 <pipe_read+0x157> <== NOT EXECUTED
10d983: 89 75 d4 mov %esi,-0x2c(%ebp) <== NOT EXECUTED
return read;
return ret;
}
10d986: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED
10d989: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
10d98c: 5b pop %ebx <== NOT EXECUTED
10d98d: 5e pop %esi <== NOT EXECUTED
10d98e: 5f pop %edi <== NOT EXECUTED
10d98f: c9 leave <== NOT EXECUTED
10d990: c3 ret <== NOT EXECUTED
0010d9cc <pipe_release>:
*/
int pipe_release(
pipe_control_t **pipep,
rtems_libio_t *iop
)
{
10d9cc: 55 push %ebp <== NOT EXECUTED
10d9cd: 89 e5 mov %esp,%ebp <== NOT EXECUTED
10d9cf: 57 push %edi <== NOT EXECUTED
10d9d0: 56 push %esi <== NOT EXECUTED
10d9d1: 53 push %ebx <== NOT EXECUTED
10d9d2: 83 ec 20 sub $0x20,%esp <== NOT EXECUTED
10d9d5: 8b 7d 08 mov 0x8(%ebp),%edi <== NOT EXECUTED
pipe_control_t *pipe = *pipep;
10d9d8: 8b 1f mov (%edi),%ebx <== NOT EXECUTED
uint32_t mode;
rtems_status_code sc;
sc = rtems_semaphore_obtain(pipe->Semaphore,
10d9da: 6a 00 push $0x0 <== NOT EXECUTED
10d9dc: 6a 00 push $0x0 <== NOT EXECUTED
10d9de: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
10d9e1: e8 12 cc ff ff call 10a5f8 <rtems_semaphore_obtain><== NOT EXECUTED
RTEMS_WAIT, RTEMS_NO_TIMEOUT);
/* WARN pipe not released! */
if(sc != RTEMS_SUCCESSFUL)
10d9e6: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10d9e9: 85 c0 test %eax,%eax <== NOT EXECUTED
10d9eb: 75 34 jne 10da21 <pipe_release+0x55> <== NOT EXECUTED
rtems_fatal_error_occurred(sc);
mode = LIBIO_ACCMODE(iop);
10d9ed: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
10d9f0: 8b 40 14 mov 0x14(%eax),%eax <== NOT EXECUTED
10d9f3: 89 c6 mov %eax,%esi <== NOT EXECUTED
10d9f5: 83 e6 06 and $0x6,%esi <== NOT EXECUTED
if (mode & LIBIO_FLAGS_READ)
10d9f8: a8 02 test $0x2,%al <== NOT EXECUTED
10d9fa: 74 03 je 10d9ff <pipe_release+0x33> <== NOT EXECUTED
pipe->Readers --;
10d9fc: ff 4b 10 decl 0x10(%ebx) <== NOT EXECUTED
if (mode & LIBIO_FLAGS_WRITE)
10d9ff: f7 c6 04 00 00 00 test $0x4,%esi <== NOT EXECUTED
10da05: 74 03 je 10da0a <pipe_release+0x3e> <== NOT EXECUTED
pipe->Writers --;
10da07: ff 4b 14 decl 0x14(%ebx) <== NOT EXECUTED
sc = rtems_semaphore_obtain(rtems_pipe_semaphore,
10da0a: 50 push %eax <== NOT EXECUTED
10da0b: 6a 00 push $0x0 <== NOT EXECUTED
10da0d: 6a 00 push $0x0 <== NOT EXECUTED
10da0f: ff 35 3c 53 12 00 pushl 0x12533c <== NOT EXECUTED
10da15: e8 de cb 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)
10da1a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10da1d: 85 c0 test %eax,%eax <== NOT EXECUTED
10da1f: 74 09 je 10da2a <pipe_release+0x5e> <== NOT EXECUTED
rtems_fatal_error_occurred(sc);
10da21: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10da24: 50 push %eax <== NOT EXECUTED
10da25: e8 5e d1 ff ff call 10ab88 <rtems_fatal_error_occurred><== NOT EXECUTED
PIPE_UNLOCK(pipe);
10da2a: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10da2d: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
10da30: e8 af cc ff ff call 10a6e4 <rtems_semaphore_release><== NOT EXECUTED
if (pipe->Readers == 0 && pipe->Writers == 0) {
10da35: 8b 43 10 mov 0x10(%ebx),%eax <== NOT EXECUTED
10da38: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10da3b: 85 c0 test %eax,%eax <== NOT EXECUTED
10da3d: 75 15 jne 10da54 <pipe_release+0x88> <== NOT EXECUTED
10da3f: 83 7b 14 00 cmpl $0x0,0x14(%ebx) <== NOT EXECUTED
10da43: 75 0f jne 10da54 <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);
10da45: 89 d8 mov %ebx,%eax <== NOT EXECUTED
10da47: e8 45 ff ff ff call 10d991 <pipe_free> <== NOT EXECUTED
*pipep = NULL;
10da4c: 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) {
10da52: eb 30 jmp 10da84 <pipe_release+0xb8> <== NOT EXECUTED
delfile = TRUE;
#endif
pipe_free(pipe);
*pipep = NULL;
}
else if (pipe->Readers == 0 && mode != LIBIO_FLAGS_WRITE)
10da54: 83 fe 04 cmp $0x4,%esi <== NOT EXECUTED
10da57: 74 0f je 10da68 <pipe_release+0x9c> <== NOT EXECUTED
10da59: 85 c0 test %eax,%eax <== NOT EXECUTED
10da5b: 75 0b jne 10da68 <pipe_release+0x9c> <== NOT EXECUTED
/* Notify waiting Writers that all their partners left */
PIPE_WAKEUPWRITERS(pipe);
10da5d: 57 push %edi <== NOT EXECUTED
10da5e: 57 push %edi <== NOT EXECUTED
10da5f: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
10da62: 50 push %eax <== NOT EXECUTED
10da63: ff 73 30 pushl 0x30(%ebx) <== NOT EXECUTED
10da66: eb 14 jmp 10da7c <pipe_release+0xb0> <== NOT EXECUTED
else if (pipe->Writers == 0 && mode != LIBIO_FLAGS_READ)
10da68: 83 fe 02 cmp $0x2,%esi <== NOT EXECUTED
10da6b: 74 17 je 10da84 <pipe_release+0xb8> <== NOT EXECUTED
10da6d: 83 7b 14 00 cmpl $0x0,0x14(%ebx) <== NOT EXECUTED
10da71: 75 11 jne 10da84 <pipe_release+0xb8> <== NOT EXECUTED
PIPE_WAKEUPREADERS(pipe);
10da73: 56 push %esi <== NOT EXECUTED
10da74: 56 push %esi <== NOT EXECUTED
10da75: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
10da78: 50 push %eax <== NOT EXECUTED
10da79: ff 73 2c pushl 0x2c(%ebx) <== NOT EXECUTED
10da7c: e8 d7 17 00 00 call 10f258 <rtems_barrier_release> <== NOT EXECUTED
10da81: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_semaphore_release(rtems_pipe_semaphore);
10da84: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10da87: ff 35 3c 53 12 00 pushl 0x12533c <== NOT EXECUTED
10da8d: e8 52 cc ff ff call 10a6e4 <rtems_semaphore_release><== NOT EXECUTED
if(iop->pathinfo.ops->unlink_h(&iop->pathinfo))
return -errno;
#endif
return 0;
}
10da92: 31 c0 xor %eax,%eax <== NOT EXECUTED
10da94: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
10da97: 5b pop %ebx <== NOT EXECUTED
10da98: 5e pop %esi <== NOT EXECUTED
10da99: 5f pop %edi <== NOT EXECUTED
10da9a: c9 leave <== NOT EXECUTED
10da9b: c3 ret <== NOT EXECUTED
0010d69d <pipe_write>:
pipe_control_t *pipe,
const void *buffer,
size_t count,
rtems_libio_t *iop
)
{
10d69d: 55 push %ebp <== NOT EXECUTED
10d69e: 89 e5 mov %esp,%ebp <== NOT EXECUTED
10d6a0: 57 push %edi <== NOT EXECUTED
10d6a1: 56 push %esi <== NOT EXECUTED
10d6a2: 53 push %ebx <== NOT EXECUTED
10d6a3: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED
10d6a6: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
int chunk, chunk1, written = 0, ret = 0;
/* Write nothing */
if (count == 0)
10d6a9: c7 45 d4 00 00 00 00 movl $0x0,-0x2c(%ebp) <== NOT EXECUTED
10d6b0: 83 7d 10 00 cmpl $0x0,0x10(%ebp) <== NOT EXECUTED
10d6b4: 0f 84 6a 01 00 00 je 10d824 <pipe_write+0x187> <== NOT EXECUTED
return 0;
if (! PIPE_LOCK(pipe))
10d6ba: 57 push %edi <== NOT EXECUTED
10d6bb: 6a 00 push $0x0 <== NOT EXECUTED
10d6bd: 6a 00 push $0x0 <== NOT EXECUTED
10d6bf: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
10d6c2: e8 31 cf ff ff call 10a5f8 <rtems_semaphore_obtain><== NOT EXECUTED
10d6c7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10d6ca: c7 45 d4 fc ff ff ff movl $0xfffffffc,-0x2c(%ebp) <== NOT EXECUTED
10d6d1: 85 c0 test %eax,%eax <== NOT EXECUTED
10d6d3: 0f 85 4b 01 00 00 jne 10d824 <pipe_write+0x187> <== NOT EXECUTED
return -EINTR;
if (pipe->Readers == 0) {
10d6d9: 83 7b 10 00 cmpl $0x0,0x10(%ebx) <== NOT EXECUTED
10d6dd: 75 11 jne 10d6f0 <pipe_write+0x53> <== NOT EXECUTED
10d6df: be e0 ff ff ff mov $0xffffffe0,%esi <== NOT EXECUTED
10d6e4: c7 45 d4 00 00 00 00 movl $0x0,-0x2c(%ebp) <== NOT EXECUTED
10d6eb: e9 1d 01 00 00 jmp 10d80d <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;
10d6f0: 8b 7d 10 mov 0x10(%ebp),%edi <== NOT EXECUTED
10d6f3: 3b 7b 04 cmp 0x4(%ebx),%edi <== NOT EXECUTED
10d6f6: 76 05 jbe 10d6fd <pipe_write+0x60> <== NOT EXECUTED
10d6f8: bf 01 00 00 00 mov $0x1,%edi <== NOT EXECUTED
10d6fd: c7 45 d4 00 00 00 00 movl $0x0,-0x2c(%ebp) <== NOT EXECUTED
10d704: e9 f6 00 00 00 jmp 10d7ff <pipe_write+0x162> <== NOT EXECUTED
while (written < count) {
while (PIPE_SPACE(pipe) < chunk) {
if (LIBIO_NODELAY(iop)) {
10d709: 8b 45 14 mov 0x14(%ebp),%eax <== NOT EXECUTED
10d70c: f6 40 14 01 testb $0x1,0x14(%eax) <== NOT EXECUTED
10d710: 74 0a je 10d71c <pipe_write+0x7f> <== NOT EXECUTED
10d712: be f5 ff ff ff mov $0xfffffff5,%esi <== NOT EXECUTED
10d717: e9 f1 00 00 00 jmp 10d80d <pipe_write+0x170> <== NOT EXECUTED
ret = -EAGAIN;
goto out_locked;
}
/* Wait until there is chunk bytes space or no reader exists */
pipe->waitingWriters ++;
10d71c: ff 43 1c incl 0x1c(%ebx) <== NOT EXECUTED
PIPE_UNLOCK(pipe);
10d71f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10d722: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
10d725: e8 ba cf ff ff call 10a6e4 <rtems_semaphore_release><== NOT EXECUTED
if (! PIPE_WRITEWAIT(pipe))
10d72a: 59 pop %ecx <== NOT EXECUTED
10d72b: 5e pop %esi <== NOT EXECUTED
10d72c: 6a 00 push $0x0 <== NOT EXECUTED
10d72e: ff 73 30 pushl 0x30(%ebx) <== NOT EXECUTED
10d731: e8 7a 1b 00 00 call 10f2b0 <rtems_barrier_wait> <== NOT EXECUTED
10d736: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
10d739: 83 f8 01 cmp $0x1,%eax <== NOT EXECUTED
10d73c: 19 f6 sbb %esi,%esi <== NOT EXECUTED
10d73e: f7 d6 not %esi <== NOT EXECUTED
10d740: 83 e6 fc and $0xfffffffc,%esi <== NOT EXECUTED
ret = -EINTR;
if (! PIPE_LOCK(pipe)) {
10d743: 6a 00 push $0x0 <== NOT EXECUTED
10d745: 6a 00 push $0x0 <== NOT EXECUTED
10d747: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
10d74a: e8 a9 ce ff ff call 10a5f8 <rtems_semaphore_obtain><== NOT EXECUTED
10d74f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10d752: 85 c0 test %eax,%eax <== NOT EXECUTED
10d754: 74 0a je 10d760 <pipe_write+0xc3> <== NOT EXECUTED
10d756: be fc ff ff ff mov $0xfffffffc,%esi <== NOT EXECUTED
10d75b: e9 bb 00 00 00 jmp 10d81b <pipe_write+0x17e> <== NOT EXECUTED
/* WARN waitingWriters not restored! */
ret = -EINTR;
goto out_nolock;
}
pipe->waitingWriters --;
10d760: ff 4b 1c decl 0x1c(%ebx) <== NOT EXECUTED
if (ret != 0)
10d763: 85 f6 test %esi,%esi <== NOT EXECUTED
10d765: 0f 85 a2 00 00 00 jne 10d80d <pipe_write+0x170> <== NOT EXECUTED
goto out_locked;
if (pipe->Readers == 0) {
10d76b: 83 7b 10 00 cmpl $0x0,0x10(%ebx) <== NOT EXECUTED
10d76f: 75 0a jne 10d77b <pipe_write+0xde> <== NOT EXECUTED
10d771: be e0 ff ff ff mov $0xffffffe0,%esi <== NOT EXECUTED
10d776: e9 92 00 00 00 jmp 10d80d <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) {
10d77b: 8b 73 04 mov 0x4(%ebx),%esi <== NOT EXECUTED
10d77e: 8b 43 0c mov 0xc(%ebx),%eax <== NOT EXECUTED
10d781: 89 f1 mov %esi,%ecx <== NOT EXECUTED
10d783: 29 c1 sub %eax,%ecx <== NOT EXECUTED
10d785: 39 f9 cmp %edi,%ecx <== NOT EXECUTED
10d787: 72 80 jb 10d709 <pipe_write+0x6c> <== NOT EXECUTED
ret = -EPIPE;
goto out_locked;
}
}
chunk = MIN(count - written, PIPE_SPACE(pipe));
10d789: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
10d78c: 2b 55 d4 sub -0x2c(%ebp),%edx <== NOT EXECUTED
10d78f: 89 4d d0 mov %ecx,-0x30(%ebp) <== NOT EXECUTED
10d792: 39 d1 cmp %edx,%ecx <== NOT EXECUTED
10d794: 76 03 jbe 10d799 <pipe_write+0xfc> <== NOT EXECUTED
10d796: 89 55 d0 mov %edx,-0x30(%ebp) <== NOT EXECUTED
chunk1 = pipe->Size - PIPE_WSTART(pipe);
10d799: 03 43 08 add 0x8(%ebx),%eax <== NOT EXECUTED
10d79c: 31 d2 xor %edx,%edx <== NOT EXECUTED
10d79e: f7 f6 div %esi <== NOT EXECUTED
10d7a0: 89 f0 mov %esi,%eax <== NOT EXECUTED
10d7a2: 29 d0 sub %edx,%eax <== NOT EXECUTED
if (chunk > chunk1) {
10d7a4: 39 45 d0 cmp %eax,-0x30(%ebp) <== NOT EXECUTED
10d7a7: 8b 7d 0c mov 0xc(%ebp),%edi <== NOT EXECUTED
10d7aa: 8b 4d d4 mov -0x2c(%ebp),%ecx <== NOT EXECUTED
10d7ad: 8d 34 0f lea (%edi,%ecx,1),%esi <== NOT EXECUTED
10d7b0: 7e 1c jle 10d7ce <pipe_write+0x131> <== NOT EXECUTED
memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk1);
10d7b2: 03 13 add (%ebx),%edx <== NOT EXECUTED
10d7b4: 89 d7 mov %edx,%edi <== NOT EXECUTED
10d7b6: 89 c1 mov %eax,%ecx <== NOT EXECUTED
10d7b8: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
memcpy(pipe->Buffer, buffer + written + chunk1, chunk - chunk1);
10d7ba: 8b 13 mov (%ebx),%edx <== NOT EXECUTED
10d7bc: 8b 4d d0 mov -0x30(%ebp),%ecx <== NOT EXECUTED
10d7bf: 29 c1 sub %eax,%ecx <== NOT EXECUTED
10d7c1: 8b 7d d4 mov -0x2c(%ebp),%edi <== NOT EXECUTED
10d7c4: 8d 34 38 lea (%eax,%edi,1),%esi <== NOT EXECUTED
10d7c7: 03 75 0c add 0xc(%ebp),%esi <== NOT EXECUTED
10d7ca: 89 d7 mov %edx,%edi <== NOT EXECUTED
10d7cc: eb 07 jmp 10d7d5 <pipe_write+0x138> <== NOT EXECUTED
}
else
memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk);
10d7ce: 03 13 add (%ebx),%edx <== NOT EXECUTED
10d7d0: 89 d7 mov %edx,%edi <== NOT EXECUTED
10d7d2: 8b 4d d0 mov -0x30(%ebp),%ecx <== NOT EXECUTED
10d7d5: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
pipe->Length += chunk;
10d7d7: 8b 45 d0 mov -0x30(%ebp),%eax <== NOT EXECUTED
10d7da: 01 43 0c add %eax,0xc(%ebx) <== NOT EXECUTED
if (pipe->waitingReaders > 0)
10d7dd: 83 7b 18 00 cmpl $0x0,0x18(%ebx) <== NOT EXECUTED
10d7e1: 74 11 je 10d7f4 <pipe_write+0x157> <== NOT EXECUTED
PIPE_WAKEUPREADERS(pipe);
10d7e3: 52 push %edx <== NOT EXECUTED
10d7e4: 52 push %edx <== NOT EXECUTED
10d7e5: 8d 4d e4 lea -0x1c(%ebp),%ecx <== NOT EXECUTED
10d7e8: 51 push %ecx <== NOT EXECUTED
10d7e9: ff 73 2c pushl 0x2c(%ebx) <== NOT EXECUTED
10d7ec: e8 67 1a 00 00 call 10f258 <rtems_barrier_release> <== NOT EXECUTED
10d7f1: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
written += chunk;
10d7f4: 8b 7d d0 mov -0x30(%ebp),%edi <== NOT EXECUTED
10d7f7: 01 7d d4 add %edi,-0x2c(%ebp) <== NOT EXECUTED
10d7fa: 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) {
10d7ff: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
10d802: 39 45 d4 cmp %eax,-0x2c(%ebp) <== NOT EXECUTED
10d805: 0f 82 70 ff ff ff jb 10d77b <pipe_write+0xde> <== NOT EXECUTED
10d80b: 31 f6 xor %esi,%esi <== NOT EXECUTED
/* Write of more than PIPE_BUF bytes can be interleaved */
chunk = 1;
}
out_locked:
PIPE_UNLOCK(pipe);
10d80d: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10d810: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
10d813: e8 cc ce ff ff call 10a6e4 <rtems_semaphore_release><== NOT EXECUTED
10d818: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
/* Signal SIGPIPE */
if (ret == -EPIPE)
kill(getpid(), SIGPIPE);
#endif
if (written > 0)
10d81b: 83 7d d4 00 cmpl $0x0,-0x2c(%ebp) <== NOT EXECUTED
10d81f: 7f 03 jg 10d824 <pipe_write+0x187> <== NOT EXECUTED
10d821: 89 75 d4 mov %esi,-0x2c(%ebp) <== NOT EXECUTED
return written;
return ret;
}
10d824: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED
10d827: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
10d82a: 5b pop %ebx <== NOT EXECUTED
10d82b: 5e pop %esi <== NOT EXECUTED
10d82c: 5f pop %edi <== NOT EXECUTED
10d82d: c9 leave <== NOT EXECUTED
10d82e: 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 d4 ba 12 00 incl 0x12bad4
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>
0010e863 <ramdisk_allocate>:
void *area_begin,
uint32_t block_size,
rtems_blkdev_bnum block_count,
bool trace
)
{
10e863: 55 push %ebp
10e864: 89 e5 mov %esp,%ebp
10e866: 57 push %edi
10e867: 56 push %esi
10e868: 53 push %ebx
10e869: 83 ec 28 sub $0x28,%esp
10e86c: 8b 7d 08 mov 0x8(%ebp),%edi
10e86f: 8a 45 14 mov 0x14(%ebp),%al
10e872: 88 45 e7 mov %al,-0x19(%ebp)
struct ramdisk *rd = malloc(sizeof(struct ramdisk));
10e875: 6a 10 push $0x10
10e877: e8 ac 9d ff ff call 108628 <malloc>
10e87c: 89 c6 mov %eax,%esi
10e87e: 89 c3 mov %eax,%ebx
if (rd == NULL) {
10e880: 83 c4 10 add $0x10,%esp
10e883: 85 c0 test %eax,%eax
10e885: 74 4c je 10e8d3 <ramdisk_allocate+0x70> <== NEVER TAKEN
return NULL;
}
if (area_begin == NULL) {
10e887: 85 ff test %edi,%edi
10e889: 75 2c jne 10e8b7 <ramdisk_allocate+0x54> <== NEVER TAKEN
area_begin = calloc(block_count, block_size);
10e88b: 50 push %eax
10e88c: 50 push %eax
10e88d: ff 75 0c pushl 0xc(%ebp)
10e890: ff 75 10 pushl 0x10(%ebp)
10e893: e8 10 99 ff ff call 1081a8 <calloc>
10e898: 89 c7 mov %eax,%edi
if (area_begin == NULL) {
10e89a: 83 c4 10 add $0x10,%esp
10e89d: 85 c0 test %eax,%eax
10e89f: 75 10 jne 10e8b1 <ramdisk_allocate+0x4e> <== ALWAYS TAKEN
free(rd);
10e8a1: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10e8a4: 56 push %esi <== NOT EXECUTED
10e8a5: e8 de 9a ff ff call 108388 <free> <== NOT EXECUTED
10e8aa: 31 f6 xor %esi,%esi <== NOT EXECUTED
return NULL;
10e8ac: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10e8af: eb 22 jmp 10e8d3 <ramdisk_allocate+0x70> <== NOT EXECUTED
}
rd->malloced = true;
10e8b1: c6 46 0d 01 movb $0x1,0xd(%esi)
10e8b5: eb 04 jmp 10e8bb <ramdisk_allocate+0x58>
} else {
rd->malloced = false;
10e8b7: c6 40 0d 00 movb $0x0,0xd(%eax) <== NOT EXECUTED
}
rd->block_size = block_size;
10e8bb: 8b 45 0c mov 0xc(%ebp),%eax
10e8be: 89 03 mov %eax,(%ebx)
rd->block_num = block_count;
10e8c0: 8b 45 10 mov 0x10(%ebp),%eax
10e8c3: 89 43 04 mov %eax,0x4(%ebx)
rd->area = area_begin;
10e8c6: 89 7b 08 mov %edi,0x8(%ebx)
rd->trace = trace;
10e8c9: 8a 45 e7 mov -0x19(%ebp),%al
10e8cc: 88 43 0e mov %al,0xe(%ebx)
rd->initialized = true;
10e8cf: c6 43 0c 01 movb $0x1,0xc(%ebx)
return rd;
}
10e8d3: 89 f0 mov %esi,%eax
10e8d5: 8d 65 f4 lea -0xc(%ebp),%esp
10e8d8: 5b pop %ebx
10e8d9: 5e pop %esi
10e8da: 5f pop %edi
10e8db: c9 leave
10e8dc: c3 ret
0010e830 <ramdisk_free>:
return rd;
}
void ramdisk_free(ramdisk *rd)
{
10e830: 55 push %ebp
10e831: 89 e5 mov %esp,%ebp
10e833: 53 push %ebx
10e834: 83 ec 04 sub $0x4,%esp
10e837: 8b 5d 08 mov 0x8(%ebp),%ebx
if (rd != NULL) {
10e83a: 85 db test %ebx,%ebx
10e83c: 74 20 je 10e85e <ramdisk_free+0x2e> <== NEVER TAKEN
if (rd->malloced) {
10e83e: 80 7b 0d 00 cmpb $0x0,0xd(%ebx)
10e842: 74 0e je 10e852 <ramdisk_free+0x22> <== NEVER TAKEN
free(rd->area);
10e844: 83 ec 0c sub $0xc,%esp
10e847: ff 73 08 pushl 0x8(%ebx)
10e84a: e8 39 9b ff ff call 108388 <free>
10e84f: 83 c4 10 add $0x10,%esp
}
free(rd);
10e852: 89 5d 08 mov %ebx,0x8(%ebp)
}
}
10e855: 8b 5d fc mov -0x4(%ebp),%ebx
10e858: c9 leave
{
if (rd != NULL) {
if (rd->malloced) {
free(rd->area);
}
free(rd);
10e859: e9 2a 9b ff ff jmp 108388 <free>
}
}
10e85e: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
10e861: c9 leave <== NOT EXECUTED
10e862: c3 ret <== NOT EXECUTED
001214d0 <ramdisk_initialize>:
rtems_device_driver
ramdisk_initialize(
rtems_device_major_number major,
rtems_device_minor_number minor __attribute__((unused)),
void *arg __attribute__((unused)))
{
1214d0: 55 push %ebp <== NOT EXECUTED
1214d1: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1214d3: 57 push %edi <== NOT EXECUTED
1214d4: 56 push %esi <== NOT EXECUTED
1214d5: 53 push %ebx <== NOT EXECUTED
1214d6: 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();
1214d9: e8 71 a6 fe ff call 10bb4f <rtems_disk_io_initialize><== NOT EXECUTED
1214de: 89 45 c0 mov %eax,-0x40(%ebp) <== NOT EXECUTED
if (rc != RTEMS_SUCCESSFUL)
1214e1: 85 c0 test %eax,%eax <== NOT EXECUTED
1214e3: 0f 85 f6 00 00 00 jne 1215df <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));
1214e9: 52 push %edx <== NOT EXECUTED
1214ea: 52 push %edx <== NOT EXECUTED
1214eb: 6a 10 push $0x10 <== NOT EXECUTED
1214ed: ff 35 a4 02 16 00 pushl 0x1602a4 <== NOT EXECUTED
1214f3: e8 d4 b4 fe ff call 10c9cc <calloc> <== NOT EXECUTED
1214f8: 89 c3 mov %eax,%ebx <== NOT EXECUTED
r->trace = false;
1214fa: c6 40 0e 00 movb $0x0,0xe(%eax) <== NOT EXECUTED
1214fe: ba 98 02 16 00 mov $0x160298,%edx <== NOT EXECUTED
121503: c7 45 c4 00 00 00 00 movl $0x0,-0x3c(%ebp) <== NOT EXECUTED
for (i = 0; i < rtems_ramdisk_configuration_size; i++, c++, r++)
12150a: 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";
12150d: 8d 45 d7 lea -0x29(%ebp),%eax <== NOT EXECUTED
121510: 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++)
121513: e9 b8 00 00 00 jmp 1215d0 <ramdisk_initialize+0x100><== NOT EXECUTED
rtems_device_minor_number _minor
)
{
union __rtems_dev_t temp;
temp.__overlay.major = _major;
121518: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
12151b: 89 75 e0 mov %esi,-0x20(%ebp) <== NOT EXECUTED
temp.__overlay.minor = _minor;
12151e: 8b 45 c4 mov -0x3c(%ebp),%eax <== NOT EXECUTED
121521: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
return temp.device;
121524: 8b 75 e0 mov -0x20(%ebp),%esi <== NOT EXECUTED
121527: 8b 7d e4 mov -0x1c(%ebp),%edi <== NOT EXECUTED
12152a: 89 75 b8 mov %esi,-0x48(%ebp) <== NOT EXECUTED
12152d: 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";
121530: b9 09 00 00 00 mov $0x9,%ecx <== NOT EXECUTED
121535: 8b 7d a4 mov -0x5c(%ebp),%edi <== NOT EXECUTED
121538: be a4 8c 15 00 mov $0x158ca4,%esi <== NOT EXECUTED
12153d: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
name [sizeof(RAMDISK_DEVICE_BASE_NAME)] += i;
12153f: 00 45 df add %al,-0x21(%ebp) <== NOT EXECUTED
r->block_size = c->block_size;
121542: 8b 0a mov (%edx),%ecx <== NOT EXECUTED
121544: 89 0b mov %ecx,(%ebx) <== NOT EXECUTED
r->block_num = c->block_num;
121546: 8b 72 04 mov 0x4(%edx),%esi <== NOT EXECUTED
121549: 89 73 04 mov %esi,0x4(%ebx) <== NOT EXECUTED
if (c->location == NULL)
12154c: 8b 42 08 mov 0x8(%edx),%eax <== NOT EXECUTED
12154f: 85 c0 test %eax,%eax <== NOT EXECUTED
121551: 75 26 jne 121579 <ramdisk_initialize+0xa9><== NOT EXECUTED
{
r->malloced = true;
121553: c6 43 0d 01 movb $0x1,0xd(%ebx) <== NOT EXECUTED
r->area = malloc(r->block_size * r->block_num);
121557: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12155a: 0f af ce imul %esi,%ecx <== NOT EXECUTED
12155d: 51 push %ecx <== NOT EXECUTED
12155e: 89 55 b4 mov %edx,-0x4c(%ebp) <== NOT EXECUTED
121561: e8 82 be fe ff call 10d3e8 <malloc> <== NOT EXECUTED
121566: 89 43 08 mov %eax,0x8(%ebx) <== NOT EXECUTED
if (r->area == NULL) /* No enough memory for this disk */
121569: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12156c: 85 c0 test %eax,%eax <== NOT EXECUTED
12156e: 8b 55 b4 mov -0x4c(%ebp),%edx <== NOT EXECUTED
121571: 74 50 je 1215c3 <ramdisk_initialize+0xf3><== NOT EXECUTED
r->initialized = false;
continue;
}
else
{
r->initialized = true;
121573: c6 43 0c 01 movb $0x1,0xc(%ebx) <== NOT EXECUTED
121577: eb 0b jmp 121584 <ramdisk_initialize+0xb4><== NOT EXECUTED
}
}
else
{
r->malloced = false;
121579: c6 43 0d 00 movb $0x0,0xd(%ebx) <== NOT EXECUTED
r->initialized = true;
12157d: c6 43 0c 01 movb $0x1,0xc(%ebx) <== NOT EXECUTED
r->area = c->location;
121581: 89 43 08 mov %eax,0x8(%ebx) <== NOT EXECUTED
}
rc = rtems_disk_create_phys(dev, c->block_size, c->block_num,
121584: 50 push %eax <== NOT EXECUTED
121585: 8d 7d d7 lea -0x29(%ebp),%edi <== NOT EXECUTED
121588: 57 push %edi <== NOT EXECUTED
121589: 53 push %ebx <== NOT EXECUTED
12158a: 68 ec 15 12 00 push $0x1215ec <== NOT EXECUTED
12158f: ff 72 04 pushl 0x4(%edx) <== NOT EXECUTED
121592: ff 32 pushl (%edx) <== NOT EXECUTED
121594: ff 75 bc pushl -0x44(%ebp) <== NOT EXECUTED
121597: ff 75 b8 pushl -0x48(%ebp) <== NOT EXECUTED
12159a: 89 55 b4 mov %edx,-0x4c(%ebp) <== NOT EXECUTED
12159d: e8 8d ab fe ff call 10c12f <rtems_disk_create_phys><== NOT EXECUTED
ramdisk_ioctl, r, name);
if (rc != RTEMS_SUCCESSFUL)
1215a2: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
1215a5: 85 c0 test %eax,%eax <== NOT EXECUTED
1215a7: 8b 55 b4 mov -0x4c(%ebp),%edx <== NOT EXECUTED
1215aa: 74 1b je 1215c7 <ramdisk_initialize+0xf7><== NOT EXECUTED
{
if (r->malloced)
1215ac: 80 7b 0d 00 cmpb $0x0,0xd(%ebx) <== NOT EXECUTED
1215b0: 74 11 je 1215c3 <ramdisk_initialize+0xf3><== NOT EXECUTED
{
free(r->area);
1215b2: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1215b5: ff 73 08 pushl 0x8(%ebx) <== NOT EXECUTED
1215b8: e8 df b8 fe ff call 10ce9c <free> <== NOT EXECUTED
1215bd: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1215c0: 8b 55 b4 mov -0x4c(%ebp),%edx <== NOT EXECUTED
}
r->initialized = false;
1215c3: 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++)
1215c7: ff 45 c4 incl -0x3c(%ebp) <== NOT EXECUTED
1215ca: 83 c2 0c add $0xc,%edx <== NOT EXECUTED
1215cd: 83 c3 10 add $0x10,%ebx <== NOT EXECUTED
1215d0: 8b 45 c4 mov -0x3c(%ebp),%eax <== NOT EXECUTED
1215d3: 3b 05 a4 02 16 00 cmp 0x1602a4,%eax <== NOT EXECUTED
1215d9: 0f 82 39 ff ff ff jb 121518 <ramdisk_initialize+0x48><== NOT EXECUTED
}
r->initialized = false;
}
}
return RTEMS_SUCCESSFUL;
}
1215df: 8b 45 c0 mov -0x40(%ebp),%eax <== NOT EXECUTED
1215e2: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1215e5: 5b pop %ebx <== NOT EXECUTED
1215e6: 5e pop %esi <== NOT EXECUTED
1215e7: 5f pop %edi <== NOT EXECUTED
1215e8: c9 leave <== NOT EXECUTED
1215e9: c3 ret <== NOT EXECUTED
0010e750 <ramdisk_ioctl>:
return 0;
}
int
ramdisk_ioctl(rtems_disk_device *dd, uint32_t req, void *argp)
{
10e750: 55 push %ebp
10e751: 89 e5 mov %esp,%ebp
10e753: 57 push %edi
10e754: 56 push %esi
10e755: 53 push %ebx
10e756: 83 ec 1c sub $0x1c,%esp
10e759: 8b 55 08 mov 0x8(%ebp),%edx
10e75c: 8b 4d 0c mov 0xc(%ebp),%ecx
10e75f: 8b 45 10 mov 0x10(%ebp),%eax
switch (req)
10e762: 81 f9 01 42 18 c0 cmp $0xc0184201,%ecx
10e768: 0f 85 a2 00 00 00 jne 10e810 <ramdisk_ioctl+0xc0>
{
case RTEMS_BLKIO_REQUEST:
{
rtems_blkdev_request *r = argp;
struct ramdisk *rd = rtems_disk_get_driver_data(dd);
10e76e: 8b 5a 2c mov 0x2c(%edx),%ebx
switch (r->req)
10e771: 8b 10 mov (%eax),%edx
10e773: 85 d2 test %edx,%edx
10e775: 74 09 je 10e780 <ramdisk_ioctl+0x30> <== NEVER TAKEN
10e777: 4a dec %edx
10e778: 0f 85 82 00 00 00 jne 10e800 <ramdisk_ioctl+0xb0> <== NEVER TAKEN
10e77e: eb 32 jmp 10e7b2 <ramdisk_ioctl+0x62>
#endif
static int
ramdisk_read(struct ramdisk *rd, rtems_blkdev_request *req)
{
uint8_t *from = rd->area;
10e780: 8b 53 08 mov 0x8(%ebx),%edx <== NOT EXECUTED
10e783: 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++)
10e786: 8d 50 18 lea 0x18(%eax),%edx <== NOT EXECUTED
10e789: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) <== NOT EXECUTED
10e790: eb 16 jmp 10e7a8 <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);
10e792: 8b 33 mov (%ebx),%esi <== NOT EXECUTED
10e794: 0f af 32 imul (%edx),%esi <== NOT EXECUTED
10e797: 03 75 dc add -0x24(%ebp),%esi <== NOT EXECUTED
10e79a: 8b 4a 04 mov 0x4(%edx),%ecx <== NOT EXECUTED
10e79d: 8b 7a 08 mov 0x8(%edx),%edi <== NOT EXECUTED
10e7a0: 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++)
10e7a2: ff 45 e4 incl -0x1c(%ebp) <== NOT EXECUTED
10e7a5: 83 c2 10 add $0x10,%edx <== NOT EXECUTED
10e7a8: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED
10e7ab: 3b 48 10 cmp 0x10(%eax),%ecx <== NOT EXECUTED
10e7ae: 72 e2 jb 10e792 <ramdisk_ioctl+0x42> <== NOT EXECUTED
10e7b0: eb 36 jmp 10e7e8 <ramdisk_ioctl+0x98> <== NOT EXECUTED
}
static int
ramdisk_write(struct ramdisk *rd, rtems_blkdev_request *req)
{
uint8_t *to = rd->area;
10e7b2: 8b 53 08 mov 0x8(%ebx),%edx
10e7b5: 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++)
10e7b8: 8d 50 18 lea 0x18(%eax),%edx
10e7bb: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp)
10e7c2: eb 1c jmp 10e7e0 <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);
10e7c4: 8b 0b mov (%ebx),%ecx
10e7c6: 0f af 0a imul (%edx),%ecx
10e7c9: 03 4d dc add -0x24(%ebp),%ecx
10e7cc: 89 4d e0 mov %ecx,-0x20(%ebp)
10e7cf: 8b 72 08 mov 0x8(%edx),%esi
10e7d2: 8b 4a 04 mov 0x4(%edx),%ecx
10e7d5: 8b 7d e0 mov -0x20(%ebp),%edi
10e7d8: 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++)
10e7da: ff 45 e4 incl -0x1c(%ebp)
10e7dd: 83 c2 10 add $0x10,%edx
10e7e0: 8b 4d e4 mov -0x1c(%ebp),%ecx
10e7e3: 3b 48 10 cmp 0x10(%eax),%ecx
10e7e6: 72 dc jb 10e7c4 <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;
10e7e8: c7 40 0c 00 00 00 00 movl $0x0,0xc(%eax)
req->req_done(req->done_arg, RTEMS_SUCCESSFUL);
10e7ef: 52 push %edx
10e7f0: 52 push %edx
10e7f1: 6a 00 push $0x0
10e7f3: ff 70 08 pushl 0x8(%eax)
10e7f6: ff 50 04 call *0x4(%eax)
10e7f9: 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);
10e7fb: 83 c4 10 add $0x10,%esp
10e7fe: eb 25 jmp 10e825 <ramdisk_ioctl+0xd5>
default:
errno = EINVAL;
10e800: e8 4b 66 00 00 call 114e50 <__errno> <== NOT EXECUTED
10e805: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
10e80b: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
return -1;
10e80e: eb 15 jmp 10e825 <ramdisk_ioctl+0xd5> <== NOT EXECUTED
}
break;
}
default:
return rtems_blkdev_ioctl (dd, req, argp);
10e810: 89 45 10 mov %eax,0x10(%ebp)
10e813: 89 4d 0c mov %ecx,0xc(%ebp)
10e816: 89 55 08 mov %edx,0x8(%ebp)
break;
}
errno = EINVAL;
return -1;
}
10e819: 8d 65 f4 lea -0xc(%ebp),%esp
10e81c: 5b pop %ebx
10e81d: 5e pop %esi
10e81e: 5f pop %edi
10e81f: c9 leave
}
break;
}
default:
return rtems_blkdev_ioctl (dd, req, argp);
10e820: e9 c7 1f 00 00 jmp 1107ec <rtems_blkdev_ioctl>
break;
}
errno = EINVAL;
return -1;
}
10e825: 8d 65 f4 lea -0xc(%ebp),%esp
10e828: 5b pop %ebx
10e829: 5e pop %esi
10e82a: 5f pop %edi
10e82b: c9 leave
10e82c: c3 ret
0010e8dd <ramdisk_register>:
rtems_blkdev_bnum block_count,
bool trace,
const char *disk,
dev_t *dev_ptr
)
{
10e8dd: 55 push %ebp
10e8de: 89 e5 mov %esp,%ebp
10e8e0: 57 push %edi
10e8e1: 56 push %esi
10e8e2: 53 push %ebx
10e8e3: 83 ec 20 sub $0x20,%esp
10e8e6: 8a 5d 10 mov 0x10(%ebp),%bl
rtems_status_code sc = RTEMS_SUCCESSFUL;
rtems_device_major_number major = 0;
10e8e9: 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);
10e8f0: 8d 45 e4 lea -0x1c(%ebp),%eax
10e8f3: 50 push %eax
10e8f4: 68 b0 26 12 00 push $0x1226b0
10e8f9: 6a 00 push $0x0
10e8fb: e8 a8 d2 ff ff call 10bba8 <rtems_io_register_driver>
10e900: 89 c2 mov %eax,%edx
if (sc != RTEMS_SUCCESSFUL) {
10e902: 83 c4 10 add $0x10,%esp
10e905: b8 0d 00 00 00 mov $0xd,%eax
10e90a: 85 d2 test %edx,%edx
10e90c: 75 68 jne 10e976 <ramdisk_register+0x99> <== NEVER TAKEN
return RTEMS_UNSATISFIED;
}
rd = ramdisk_allocate(NULL, block_size, block_count, trace);
10e90e: 0f b6 db movzbl %bl,%ebx
10e911: 53 push %ebx
10e912: ff 75 0c pushl 0xc(%ebp)
10e915: ff 75 08 pushl 0x8(%ebp)
10e918: 6a 00 push $0x0
10e91a: e8 44 ff ff ff call 10e863 <ramdisk_allocate>
10e91f: 89 c7 mov %eax,%edi
if (rd == NULL) {
10e921: 83 c4 10 add $0x10,%esp
10e924: 85 c0 test %eax,%eax
10e926: 75 05 jne 10e92d <ramdisk_register+0x50> <== ALWAYS TAKEN
rtems_io_unregister_driver(major);
10e928: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10e92b: eb 2d jmp 10e95a <ramdisk_register+0x7d> <== NOT EXECUTED
{
union __rtems_dev_t temp;
temp.__overlay.major = _major;
temp.__overlay.minor = _minor;
return temp.device;
10e92d: 8b 5d e4 mov -0x1c(%ebp),%ebx
10e930: 31 f6 xor %esi,%esi
return RTEMS_UNSATISFIED;
}
dev = rtems_filesystem_make_dev_t(major, 0);
sc = rtems_disk_create_phys(
10e932: 51 push %ecx
10e933: ff 75 14 pushl 0x14(%ebp)
10e936: 50 push %eax
10e937: 68 50 e7 10 00 push $0x10e750
10e93c: ff 75 0c pushl 0xc(%ebp)
10e93f: ff 75 08 pushl 0x8(%ebp)
10e942: 56 push %esi
10e943: 53 push %ebx
10e944: e8 da 90 ff ff call 107a23 <rtems_disk_create_phys>
block_count,
ramdisk_ioctl,
rd,
disk
);
if (sc != RTEMS_SUCCESSFUL) {
10e949: 83 c4 20 add $0x20,%esp
10e94c: 85 c0 test %eax,%eax
10e94e: 74 1c je 10e96c <ramdisk_register+0x8f> <== ALWAYS TAKEN
ramdisk_free(rd);
10e950: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10e953: 57 push %edi <== NOT EXECUTED
10e954: e8 d7 fe ff ff call 10e830 <ramdisk_free> <== NOT EXECUTED
rtems_io_unregister_driver(major);
10e959: 5a pop %edx <== NOT EXECUTED
10e95a: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
10e95d: e8 6a d3 ff ff call 10bccc <rtems_io_unregister_driver><== NOT EXECUTED
10e962: b8 0d 00 00 00 mov $0xd,%eax <== NOT EXECUTED
return RTEMS_UNSATISFIED;
10e967: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10e96a: eb 0a jmp 10e976 <ramdisk_register+0x99> <== NOT EXECUTED
}
*dev_ptr = dev;
10e96c: 8b 45 18 mov 0x18(%ebp),%eax
10e96f: 89 18 mov %ebx,(%eax)
10e971: 89 70 04 mov %esi,0x4(%eax)
10e974: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
}
10e976: 8d 65 f4 lea -0xc(%ebp),%esp
10e979: 5b pop %ebx
10e97a: 5e pop %esi
10e97b: 5f pop %edi
10e97c: c9 leave
10e97d: c3 ret
0011d0ac <read>:
ssize_t read(
int fd,
void *buffer,
size_t count
)
{
11d0ac: 55 push %ebp
11d0ad: 89 e5 mov %esp,%ebp
11d0af: 56 push %esi
11d0b0: 53 push %ebx
11d0b1: 8b 5d 08 mov 0x8(%ebp),%ebx
11d0b4: 8b 55 0c mov 0xc(%ebp),%edx
11d0b7: 8b 4d 10 mov 0x10(%ebp),%ecx
ssize_t rc;
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
11d0ba: 3b 1d 64 16 12 00 cmp 0x121664,%ebx
11d0c0: 73 30 jae 11d0f2 <read+0x46> <== NEVER TAKEN
iop = rtems_libio_iop( fd );
11d0c2: c1 e3 06 shl $0x6,%ebx
11d0c5: 03 1d 40 55 12 00 add 0x125540,%ebx
rtems_libio_check_is_open( iop );
11d0cb: 8b 73 14 mov 0x14(%ebx),%esi
11d0ce: f7 c6 00 01 00 00 test $0x100,%esi
11d0d4: 74 1c je 11d0f2 <read+0x46>
rtems_libio_check_buffer( buffer );
11d0d6: 85 d2 test %edx,%edx
11d0d8: 75 0d jne 11d0e7 <read+0x3b> <== ALWAYS TAKEN
11d0da: e8 e1 47 ff ff call 1118c0 <__errno> <== NOT EXECUTED
11d0df: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
11d0e5: eb 2d jmp 11d114 <read+0x68> <== NOT EXECUTED
rtems_libio_check_count( count );
11d0e7: 31 c0 xor %eax,%eax
11d0e9: 85 c9 test %ecx,%ecx
11d0eb: 74 44 je 11d131 <read+0x85> <== NEVER TAKEN
rtems_libio_check_permissions_with_error( iop, LIBIO_FLAGS_READ, EBADF );
11d0ed: 83 e6 02 and $0x2,%esi
11d0f0: 75 0d jne 11d0ff <read+0x53> <== ALWAYS TAKEN
11d0f2: e8 c9 47 ff ff call 1118c0 <__errno>
11d0f7: c7 00 09 00 00 00 movl $0x9,(%eax)
11d0fd: eb 15 jmp 11d114 <read+0x68>
/*
* Now process the read().
*/
if ( !iop->handlers->read_h )
11d0ff: 8b 43 3c mov 0x3c(%ebx),%eax
11d102: 8b 40 08 mov 0x8(%eax),%eax
11d105: 85 c0 test %eax,%eax
11d107: 75 10 jne 11d119 <read+0x6d> <== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( ENOTSUP );
11d109: e8 b2 47 ff ff call 1118c0 <__errno> <== NOT EXECUTED
11d10e: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
11d114: 83 c8 ff or $0xffffffff,%eax
11d117: eb 18 jmp 11d131 <read+0x85>
rc = (*iop->handlers->read_h)( iop, buffer, count );
11d119: 56 push %esi
11d11a: 51 push %ecx
11d11b: 52 push %edx
11d11c: 53 push %ebx
11d11d: ff d0 call *%eax
if ( rc > 0 )
11d11f: 83 c4 10 add $0x10,%esp
11d122: 85 c0 test %eax,%eax
11d124: 7e 0b jle 11d131 <read+0x85>
iop->offset += rc;
11d126: 89 c1 mov %eax,%ecx
11d128: c1 f9 1f sar $0x1f,%ecx
11d12b: 01 43 0c add %eax,0xc(%ebx)
11d12e: 11 4b 10 adc %ecx,0x10(%ebx)
return rc;
}
11d131: 8d 65 f8 lea -0x8(%ebp),%esp
11d134: 5b pop %ebx
11d135: 5e pop %esi
11d136: c9 leave
11d137: c3 ret
00128fb8 <readlink>:
ssize_t readlink(
const char *pathname,
char *buf,
size_t bufsize
)
{
128fb8: 55 push %ebp
128fb9: 89 e5 mov %esp,%ebp
128fbb: 57 push %edi
128fbc: 56 push %esi
128fbd: 53 push %ebx
128fbe: 83 ec 2c sub $0x2c,%esp
128fc1: 8b 55 08 mov 0x8(%ebp),%edx
128fc4: 8b 5d 0c mov 0xc(%ebp),%ebx
rtems_filesystem_location_info_t loc;
int result;
if (!buf)
128fc7: 85 db test %ebx,%ebx
128fc9: 75 0d jne 128fd8 <readlink+0x20> <== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( EFAULT );
128fcb: e8 c8 3d 01 00 call 13cd98 <__errno> <== NOT EXECUTED
128fd0: c7 00 0e 00 00 00 movl $0xe,(%eax) <== NOT EXECUTED
128fd6: eb 51 jmp 129029 <readlink+0x71> <== NOT EXECUTED
result = rtems_filesystem_evaluate_path( pathname, strlen( pathname ),
128fd8: 31 c0 xor %eax,%eax
128fda: 83 c9 ff or $0xffffffff,%ecx
128fdd: 89 d7 mov %edx,%edi
128fdf: f2 ae repnz scas %es:(%edi),%al
128fe1: f7 d1 not %ecx
128fe3: 49 dec %ecx
128fe4: 83 ec 0c sub $0xc,%esp
128fe7: 6a 00 push $0x0
128fe9: 8d 75 d4 lea -0x2c(%ebp),%esi
128fec: 56 push %esi
128fed: 6a 00 push $0x0
128fef: 51 push %ecx
128ff0: 52 push %edx
128ff1: e8 3b 3e fe ff call 10ce31 <rtems_filesystem_evaluate_path>
0, &loc, false );
if ( result != 0 )
128ff6: 83 c4 20 add $0x20,%esp
128ff9: 83 cf ff or $0xffffffff,%edi
128ffc: 85 c0 test %eax,%eax
128ffe: 0f 85 8c 00 00 00 jne 129090 <readlink+0xd8> <== NEVER TAKEN
return -1;
if ( !loc.ops->node_type_h ){
129004: 8b 55 e0 mov -0x20(%ebp),%edx
129007: 8b 42 10 mov 0x10(%edx),%eax
12900a: 85 c0 test %eax,%eax
12900c: 75 20 jne 12902e <readlink+0x76> <== ALWAYS TAKEN
rtems_filesystem_freenode( &loc );
12900e: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED
129011: 85 c0 test %eax,%eax <== NOT EXECUTED
129013: 74 09 je 12901e <readlink+0x66> <== NOT EXECUTED
129015: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
129018: 56 push %esi <== NOT EXECUTED
129019: ff d0 call *%eax <== NOT EXECUTED
12901b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
12901e: e8 75 3d 01 00 call 13cd98 <__errno> <== NOT EXECUTED
129023: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
129029: 83 cf ff or $0xffffffff,%edi
12902c: eb 62 jmp 129090 <readlink+0xd8>
}
if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_SYM_LINK ){
12902e: 83 ec 0c sub $0xc,%esp
129031: 56 push %esi
129032: ff d0 call *%eax
129034: 83 c4 10 add $0x10,%esp
129037: 83 f8 04 cmp $0x4,%eax
12903a: 8b 45 e0 mov -0x20(%ebp),%eax
12903d: 74 21 je 129060 <readlink+0xa8>
rtems_filesystem_freenode( &loc );
12903f: 85 c0 test %eax,%eax
129041: 74 10 je 129053 <readlink+0x9b> <== NEVER TAKEN
129043: 8b 40 1c mov 0x1c(%eax),%eax
129046: 85 c0 test %eax,%eax
129048: 74 09 je 129053 <readlink+0x9b> <== NEVER TAKEN
12904a: 83 ec 0c sub $0xc,%esp
12904d: 56 push %esi
12904e: ff d0 call *%eax
129050: 83 c4 10 add $0x10,%esp
rtems_set_errno_and_return_minus_one( EINVAL );
129053: e8 40 3d 01 00 call 13cd98 <__errno>
129058: c7 00 16 00 00 00 movl $0x16,(%eax)
12905e: eb c9 jmp 129029 <readlink+0x71>
}
if ( !loc.ops->readlink_h ){
129060: 8b 50 3c mov 0x3c(%eax),%edx
129063: 85 d2 test %edx,%edx
129065: 75 05 jne 12906c <readlink+0xb4> <== ALWAYS TAKEN
rtems_filesystem_freenode( &loc );
129067: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED
12906a: eb a5 jmp 129011 <readlink+0x59> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
result = (*loc.ops->readlink_h)( &loc, buf, bufsize );
12906c: 50 push %eax
12906d: ff 75 10 pushl 0x10(%ebp)
129070: 53 push %ebx
129071: 56 push %esi
129072: ff d2 call *%edx
129074: 89 c7 mov %eax,%edi
rtems_filesystem_freenode( &loc );
129076: 8b 45 e0 mov -0x20(%ebp),%eax
129079: 83 c4 10 add $0x10,%esp
12907c: 85 c0 test %eax,%eax
12907e: 74 10 je 129090 <readlink+0xd8> <== NEVER TAKEN
129080: 8b 40 1c mov 0x1c(%eax),%eax
129083: 85 c0 test %eax,%eax
129085: 74 09 je 129090 <readlink+0xd8> <== NEVER TAKEN
129087: 83 ec 0c sub $0xc,%esp
12908a: 56 push %esi
12908b: ff d0 call *%eax
12908d: 83 c4 10 add $0x10,%esp
return result;
}
129090: 89 f8 mov %edi,%eax
129092: 8d 65 f4 lea -0xc(%ebp),%esp
129095: 5b pop %ebx
129096: 5e pop %esi
129097: 5f pop %edi
129098: c9 leave
129099: 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 31 12 00 cmp 0x123144,%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 f0 77 12 00 add 0x1277f0,%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 ff 97 00 00 call 11257c <__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 d3 97 00 00 call 11257c <__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 a9 97 00 00 call 11257c <__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
0011d1b8 <realloc>:
{
uintptr_t old_size;
char *new_area;
uintptr_t resize;
MSBUMP(realloc_calls, 1);
11d1b8: 55 push %ebp
11d1b9: 89 e5 mov %esp,%ebp
11d1bb: 57 push %edi
11d1bc: 56 push %esi
11d1bd: 53 push %ebx
11d1be: 83 ec 2c sub $0x2c,%esp
11d1c1: 8b 5d 08 mov 0x8(%ebp),%ebx
11d1c4: 8b 75 0c mov 0xc(%ebp),%esi
11d1c7: ff 05 68 55 12 00 incl 0x125568
/*
* Do not attempt to allocate memory if in a critical section or ISR.
*/
if (_System_state_Is_up(_System_state_Get())) {
11d1cd: 83 3d 28 58 12 00 03 cmpl $0x3,0x125828
11d1d4: 75 1a jne 11d1f0 <realloc+0x38>
if (_Thread_Dispatch_disable_level > 0)
11d1d6: a1 90 56 12 00 mov 0x125690,%eax
11d1db: 85 c0 test %eax,%eax
11d1dd: 0f 85 a7 00 00 00 jne 11d28a <realloc+0xd2> <== NEVER TAKEN
return (void *) 0;
if (_ISR_Nest_level > 0)
11d1e3: a1 28 57 12 00 mov 0x125728,%eax
11d1e8: 85 c0 test %eax,%eax
11d1ea: 0f 85 9a 00 00 00 jne 11d28a <realloc+0xd2> <== NEVER TAKEN
}
/*
* Continue with realloc().
*/
if ( !ptr )
11d1f0: 85 db test %ebx,%ebx
11d1f2: 75 0e jne 11d202 <realloc+0x4a>
return malloc( size );
11d1f4: 83 ec 0c sub $0xc,%esp
11d1f7: 56 push %esi
11d1f8: e8 3f a7 fe ff call 10793c <malloc>
11d1fd: e9 81 00 00 00 jmp 11d283 <realloc+0xcb>
if ( !size ) {
11d202: 85 f6 test %esi,%esi
11d204: 75 0d jne 11d213 <realloc+0x5b> <== ALWAYS TAKEN
free( ptr );
11d206: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
11d209: 53 push %ebx <== NOT EXECUTED
11d20a: e8 8d a4 fe ff call 10769c <free> <== NOT EXECUTED
11d20f: 31 db xor %ebx,%ebx <== NOT EXECUTED
11d211: eb 72 jmp 11d285 <realloc+0xcd> <== NOT EXECUTED
return (void *) 0;
}
if ( !_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, ptr, &old_size) ) {
11d213: 52 push %edx
11d214: 8d 45 e4 lea -0x1c(%ebp),%eax
11d217: 50 push %eax
11d218: 53 push %ebx
11d219: ff 35 70 16 12 00 pushl 0x121670
11d21f: e8 00 01 00 00 call 11d324 <_Protected_heap_Get_block_size>
11d224: 83 c4 10 add $0x10,%esp
11d227: 84 c0 test %al,%al
11d229: 75 0d jne 11d238 <realloc+0x80>
errno = EINVAL;
11d22b: e8 90 46 ff ff call 1118c0 <__errno>
11d230: c7 00 16 00 00 00 movl $0x16,(%eax)
11d236: eb 52 jmp 11d28a <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 ) ) {
11d238: 50 push %eax
11d239: 56 push %esi
11d23a: 53 push %ebx
11d23b: ff 35 70 16 12 00 pushl 0x121670
11d241: e8 16 01 00 00 call 11d35c <_Protected_heap_Resize_block>
11d246: 83 c4 10 add $0x10,%esp
11d249: 84 c0 test %al,%al
11d24b: 75 3f jne 11d28c <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 );
11d24d: 83 ec 0c sub $0xc,%esp
11d250: 56 push %esi
11d251: e8 e6 a6 fe ff call 10793c <malloc>
MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */
11d256: ff 0d 5c 55 12 00 decl 0x12555c
if ( !new_area ) {
11d25c: 83 c4 10 add $0x10,%esp
11d25f: 85 c0 test %eax,%eax
11d261: 74 27 je 11d28a <realloc+0xd2>
return (void *) 0;
}
memcpy( new_area, ptr, (size < old_size) ? size : old_size );
11d263: 8b 55 e4 mov -0x1c(%ebp),%edx
11d266: 89 f1 mov %esi,%ecx
11d268: 39 d6 cmp %edx,%esi
11d26a: 76 02 jbe 11d26e <realloc+0xb6> <== NEVER TAKEN
11d26c: 89 d1 mov %edx,%ecx
11d26e: 89 c7 mov %eax,%edi
11d270: 89 de mov %ebx,%esi
11d272: f3 a4 rep movsb %ds:(%esi),%es:(%edi)
free( ptr );
11d274: 83 ec 0c sub $0xc,%esp
11d277: 53 push %ebx
11d278: 89 45 d4 mov %eax,-0x2c(%ebp)
11d27b: e8 1c a4 fe ff call 10769c <free>
11d280: 8b 45 d4 mov -0x2c(%ebp),%eax
11d283: 89 c3 mov %eax,%ebx
return new_area;
11d285: 83 c4 10 add $0x10,%esp
11d288: eb 02 jmp 11d28c <realloc+0xd4>
11d28a: 31 db xor %ebx,%ebx
}
11d28c: 89 d8 mov %ebx,%eax
11d28e: 8d 65 f4 lea -0xc(%ebp),%esp
11d291: 5b pop %ebx
11d292: 5e pop %esi
11d293: 5f pop %edi
11d294: c9 leave
11d295: c3 ret
0012909c <rmdir>:
#include <rtems/seterr.h>
int rmdir(
const char *pathname
)
{
12909c: 55 push %ebp
12909d: 89 e5 mov %esp,%ebp
12909f: 57 push %edi
1290a0: 56 push %esi
1290a1: 53 push %ebx
1290a2: 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 );
1290a5: ff 75 08 pushl 0x8(%ebp)
1290a8: e8 87 3c fe ff call 10cd34 <rtems_filesystem_dirname>
1290ad: 89 45 b4 mov %eax,-0x4c(%ebp)
if ( parentpathlen == 0 )
1290b0: 83 c4 10 add $0x10,%esp
1290b3: 85 c0 test %eax,%eax
1290b5: 8d 45 d0 lea -0x30(%ebp),%eax
1290b8: 75 15 jne 1290cf <rmdir+0x33>
rtems_filesystem_get_start_loc( pathname, &i, &parentloc );
1290ba: 52 push %edx
1290bb: 50 push %eax
1290bc: 8d 45 e4 lea -0x1c(%ebp),%eax
1290bf: 50 push %eax
1290c0: ff 75 08 pushl 0x8(%ebp)
1290c3: e8 ec 52 fe ff call 10e3b4 <rtems_filesystem_get_start_loc>
1290c8: 31 db xor %ebx,%ebx
1290ca: 83 c4 10 add $0x10,%esp
1290cd: eb 20 jmp 1290ef <rmdir+0x53>
else {
result = rtems_filesystem_evaluate_path(pathname, parentpathlen,
1290cf: 83 ec 0c sub $0xc,%esp
1290d2: 6a 00 push $0x0
1290d4: 50 push %eax
1290d5: 6a 02 push $0x2
1290d7: ff 75 b4 pushl -0x4c(%ebp)
1290da: ff 75 08 pushl 0x8(%ebp)
1290dd: e8 4f 3d fe ff call 10ce31 <rtems_filesystem_evaluate_path>
RTEMS_LIBIO_PERMS_WRITE,
&parentloc,
false );
if ( result != 0 )
1290e2: 83 c4 20 add $0x20,%esp
1290e5: 85 c0 test %eax,%eax
1290e7: 0f 85 73 01 00 00 jne 129260 <rmdir+0x1c4> <== NEVER TAKEN
1290ed: b3 01 mov $0x1,%bl
/*
* Start from the parent to find the node that should be under it.
*/
loc = parentloc;
1290ef: 8d 7d bc lea -0x44(%ebp),%edi
1290f2: 8d 75 d0 lea -0x30(%ebp),%esi
1290f5: b9 05 00 00 00 mov $0x5,%ecx
1290fa: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
name = pathname + parentpathlen;
1290fc: 8b 75 08 mov 0x8(%ebp),%esi
1290ff: 03 75 b4 add -0x4c(%ebp),%esi
name += rtems_filesystem_prefix_separators( name, strlen( name ) );
129102: 83 c9 ff or $0xffffffff,%ecx
129105: 89 f7 mov %esi,%edi
129107: 31 c0 xor %eax,%eax
129109: f2 ae repnz scas %es:(%edi),%al
12910b: f7 d1 not %ecx
12910d: 49 dec %ecx
12910e: 57 push %edi
12910f: 57 push %edi
129110: 51 push %ecx
129111: 56 push %esi
129112: e8 e1 3b fe ff call 10ccf8 <rtems_filesystem_prefix_separators>
129117: 01 c6 add %eax,%esi
result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
129119: 83 c9 ff or $0xffffffff,%ecx
12911c: 89 f7 mov %esi,%edi
12911e: 31 c0 xor %eax,%eax
129120: f2 ae repnz scas %es:(%edi),%al
129122: f7 d1 not %ecx
129124: 49 dec %ecx
129125: c7 04 24 00 00 00 00 movl $0x0,(%esp)
12912c: 8d 7d bc lea -0x44(%ebp),%edi
12912f: 57 push %edi
129130: 6a 00 push $0x0
129132: 51 push %ecx
129133: 56 push %esi
129134: e8 3e 3c fe ff call 10cd77 <rtems_filesystem_evaluate_relative_path>
0, &loc, false );
if ( result != 0 ) {
129139: 83 c4 20 add $0x20,%esp
12913c: 85 c0 test %eax,%eax
12913e: 74 2f je 12916f <rmdir+0xd3>
if ( free_parentloc )
129140: 84 db test %bl,%bl
129142: 0f 84 18 01 00 00 je 129260 <rmdir+0x1c4> <== ALWAYS TAKEN
rtems_filesystem_freenode( &parentloc );
129148: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED
12914b: 85 c0 test %eax,%eax <== NOT EXECUTED
12914d: 0f 84 0d 01 00 00 je 129260 <rmdir+0x1c4> <== NOT EXECUTED
129153: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED
129156: 85 c0 test %eax,%eax <== NOT EXECUTED
129158: 0f 84 02 01 00 00 je 129260 <rmdir+0x1c4> <== NOT EXECUTED
12915e: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
129161: 8d 55 d0 lea -0x30(%ebp),%edx <== NOT EXECUTED
129164: 52 push %edx <== NOT EXECUTED
129165: ff d0 call *%eax <== NOT EXECUTED
129167: 83 ce ff or $0xffffffff,%esi <== NOT EXECUTED
12916a: e9 ec 00 00 00 jmp 12925b <rmdir+0x1bf> <== NOT EXECUTED
/*
* Verify you can remove this node as a directory.
*/
if ( !loc.ops->node_type_h ){
12916f: 8b 55 c8 mov -0x38(%ebp),%edx
129172: 8b 42 10 mov 0x10(%edx),%eax
129175: 85 c0 test %eax,%eax
129177: 75 05 jne 12917e <rmdir+0xe2> <== ALWAYS TAKEN
rtems_filesystem_freenode( &loc );
129179: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED
12917c: eb 65 jmp 1291e3 <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 ){
12917e: 83 ec 0c sub $0xc,%esp
129181: 57 push %edi
129182: ff d0 call *%eax
129184: 83 c4 10 add $0x10,%esp
129187: 48 dec %eax
129188: 74 45 je 1291cf <rmdir+0x133>
rtems_filesystem_freenode( &loc );
12918a: 8b 45 c8 mov -0x38(%ebp),%eax
12918d: 85 c0 test %eax,%eax
12918f: 74 10 je 1291a1 <rmdir+0x105> <== NEVER TAKEN
129191: 8b 40 1c mov 0x1c(%eax),%eax
129194: 85 c0 test %eax,%eax
129196: 74 09 je 1291a1 <rmdir+0x105> <== NEVER TAKEN
129198: 83 ec 0c sub $0xc,%esp
12919b: 57 push %edi
12919c: ff d0 call *%eax
12919e: 83 c4 10 add $0x10,%esp
if ( free_parentloc )
1291a1: 84 db test %bl,%bl
1291a3: 74 1a je 1291bf <rmdir+0x123> <== NEVER TAKEN
rtems_filesystem_freenode( &parentloc );
1291a5: 8b 45 dc mov -0x24(%ebp),%eax
1291a8: 85 c0 test %eax,%eax
1291aa: 74 13 je 1291bf <rmdir+0x123> <== NEVER TAKEN
1291ac: 8b 40 1c mov 0x1c(%eax),%eax
1291af: 85 c0 test %eax,%eax
1291b1: 74 0c je 1291bf <rmdir+0x123> <== NEVER TAKEN
1291b3: 83 ec 0c sub $0xc,%esp
1291b6: 8d 55 d0 lea -0x30(%ebp),%edx
1291b9: 52 push %edx
1291ba: ff d0 call *%eax
1291bc: 83 c4 10 add $0x10,%esp
rtems_set_errno_and_return_minus_one( ENOTDIR );
1291bf: e8 d4 3b 01 00 call 13cd98 <__errno>
1291c4: c7 00 14 00 00 00 movl $0x14,(%eax)
1291ca: e9 91 00 00 00 jmp 129260 <rmdir+0x1c4>
/*
* Use the filesystems rmnod to remove the node.
*/
if ( !loc.handlers->rmnod_h ){
1291cf: 8b 45 c4 mov -0x3c(%ebp),%eax
1291d2: 8b 40 34 mov 0x34(%eax),%eax
1291d5: 85 c0 test %eax,%eax
1291d7: 75 42 jne 12921b <rmdir+0x17f> <== ALWAYS TAKEN
rtems_filesystem_freenode( &loc );
1291d9: 8b 45 c8 mov -0x38(%ebp),%eax <== NOT EXECUTED
1291dc: 85 c0 test %eax,%eax <== NOT EXECUTED
1291de: 74 10 je 1291f0 <rmdir+0x154> <== NOT EXECUTED
1291e0: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED
1291e3: 85 c0 test %eax,%eax <== NOT EXECUTED
1291e5: 74 09 je 1291f0 <rmdir+0x154> <== NOT EXECUTED
1291e7: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1291ea: 57 push %edi <== NOT EXECUTED
1291eb: ff d0 call *%eax <== NOT EXECUTED
1291ed: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
if ( free_parentloc )
1291f0: 84 db test %bl,%bl <== NOT EXECUTED
1291f2: 74 1a je 12920e <rmdir+0x172> <== NOT EXECUTED
rtems_filesystem_freenode( &parentloc );
1291f4: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED
1291f7: 85 c0 test %eax,%eax <== NOT EXECUTED
1291f9: 74 13 je 12920e <rmdir+0x172> <== NOT EXECUTED
1291fb: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED
1291fe: 85 c0 test %eax,%eax <== NOT EXECUTED
129200: 74 0c je 12920e <rmdir+0x172> <== NOT EXECUTED
129202: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
129205: 8d 55 d0 lea -0x30(%ebp),%edx <== NOT EXECUTED
129208: 52 push %edx <== NOT EXECUTED
129209: ff d0 call *%eax <== NOT EXECUTED
12920b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
12920e: e8 85 3b 01 00 call 13cd98 <__errno> <== NOT EXECUTED
129213: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
129219: eb 45 jmp 129260 <rmdir+0x1c4> <== NOT EXECUTED
}
result = (*loc.handlers->rmnod_h)( &parentloc, &loc );
12921b: 52 push %edx
12921c: 52 push %edx
12921d: 57 push %edi
12921e: 8d 55 d0 lea -0x30(%ebp),%edx
129221: 52 push %edx
129222: ff d0 call *%eax
129224: 89 c6 mov %eax,%esi
rtems_filesystem_freenode( &loc );
129226: 8b 45 c8 mov -0x38(%ebp),%eax
129229: 83 c4 10 add $0x10,%esp
12922c: 85 c0 test %eax,%eax
12922e: 74 10 je 129240 <rmdir+0x1a4> <== NEVER TAKEN
129230: 8b 40 1c mov 0x1c(%eax),%eax
129233: 85 c0 test %eax,%eax
129235: 74 09 je 129240 <rmdir+0x1a4> <== NEVER TAKEN
129237: 83 ec 0c sub $0xc,%esp
12923a: 57 push %edi
12923b: ff d0 call *%eax
12923d: 83 c4 10 add $0x10,%esp
if ( free_parentloc )
129240: 84 db test %bl,%bl
129242: 74 1f je 129263 <rmdir+0x1c7>
rtems_filesystem_freenode( &parentloc );
129244: 8b 45 dc mov -0x24(%ebp),%eax
129247: 85 c0 test %eax,%eax
129249: 74 18 je 129263 <rmdir+0x1c7> <== NEVER TAKEN
12924b: 8b 40 1c mov 0x1c(%eax),%eax
12924e: 85 c0 test %eax,%eax
129250: 74 11 je 129263 <rmdir+0x1c7> <== NEVER TAKEN
129252: 83 ec 0c sub $0xc,%esp
129255: 8d 55 d0 lea -0x30(%ebp),%edx
129258: 52 push %edx
129259: ff d0 call *%eax
12925b: 83 c4 10 add $0x10,%esp
12925e: eb 03 jmp 129263 <rmdir+0x1c7>
129260: 83 ce ff or $0xffffffff,%esi
return result;
}
129263: 89 f0 mov %esi,%eax
129265: 8d 65 f4 lea -0xc(%ebp),%esp
129268: 5b pop %ebx
129269: 5e pop %esi
12926a: 5f pop %edi
12926b: c9 leave
12926c: c3 ret
00115da8 <rtems_assoc_name_bad>:
uint32_t bad_value
#else
uint32_t bad_value __attribute((unused))
#endif
)
{
115da8: 55 push %ebp <== NOT EXECUTED
115da9: 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;
}
115dab: b8 40 92 12 00 mov $0x129240,%eax <== NOT EXECUTED
115db0: c9 leave <== NOT EXECUTED
115db1: c3 ret <== NOT EXECUTED
001134c0 <rtems_assoc_name_by_local>:
const char *rtems_assoc_name_by_local(
const rtems_assoc_t *ap,
uint32_t local_value
)
{
1134c0: 55 push %ebp
1134c1: 89 e5 mov %esp,%ebp
1134c3: 53 push %ebx
1134c4: 83 ec 0c sub $0xc,%esp
1134c7: 8b 5d 0c mov 0xc(%ebp),%ebx
const rtems_assoc_t *nap;
nap = rtems_assoc_ptr_by_local(ap, local_value);
1134ca: 53 push %ebx
1134cb: ff 75 08 pushl 0x8(%ebp)
1134ce: e8 1d 00 00 00 call 1134f0 <rtems_assoc_ptr_by_local>
if (nap)
1134d3: 83 c4 10 add $0x10,%esp
1134d6: 85 c0 test %eax,%eax
1134d8: 74 07 je 1134e1 <rtems_assoc_name_by_local+0x21><== NEVER TAKEN
return nap->name;
1134da: 8b 00 mov (%eax),%eax
return rtems_assoc_name_bad(local_value);
}
1134dc: 8b 5d fc mov -0x4(%ebp),%ebx
1134df: c9 leave
1134e0: c3 ret
nap = rtems_assoc_ptr_by_local(ap, local_value);
if (nap)
return nap->name;
return rtems_assoc_name_bad(local_value);
1134e1: 89 5d 08 mov %ebx,0x8(%ebp) <== NOT EXECUTED
}
1134e4: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
1134e7: 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);
1134e8: e9 bb 28 00 00 jmp 115da8 <rtems_assoc_name_bad> <== NOT EXECUTED
00111860 <rtems_assoc_ptr_by_local>:
const rtems_assoc_t *rtems_assoc_ptr_by_local(
const rtems_assoc_t *ap,
uint32_t local_value
)
{
111860: 55 push %ebp
111861: 89 e5 mov %esp,%ebp
111863: 56 push %esi
111864: 53 push %ebx
111865: 8b 5d 08 mov 0x8(%ebp),%ebx
111868: 8b 75 0c mov 0xc(%ebp),%esi
const rtems_assoc_t *default_ap = 0;
if (rtems_assoc_is_default(ap))
11186b: 8b 03 mov (%ebx),%eax
11186d: 85 c0 test %eax,%eax
11186f: 74 1b je 11188c <rtems_assoc_ptr_by_local+0x2c><== NEVER TAKEN
111871: 52 push %edx
111872: 52 push %edx
111873: 68 a1 f8 11 00 push $0x11f8a1
111878: 50 push %eax
111879: e8 5e 0b 00 00 call 1123dc <strcmp>
11187e: 83 c4 10 add $0x10,%esp
111881: 85 c0 test %eax,%eax
111883: 75 07 jne 11188c <rtems_assoc_ptr_by_local+0x2c><== ALWAYS TAKEN
default_ap = ap++;
111885: 89 d8 mov %ebx,%eax <== NOT EXECUTED
111887: 83 c3 0c add $0xc,%ebx <== NOT EXECUTED
11188a: eb 0c jmp 111898 <rtems_assoc_ptr_by_local+0x38><== NOT EXECUTED
11188c: 31 c0 xor %eax,%eax
11188e: eb 08 jmp 111898 <rtems_assoc_ptr_by_local+0x38>
for ( ; ap->name; ap++)
if (ap->local_value == local_value)
111890: 39 73 04 cmp %esi,0x4(%ebx)
111893: 74 0a je 11189f <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++)
111895: 83 c3 0c add $0xc,%ebx
111898: 83 3b 00 cmpl $0x0,(%ebx)
11189b: 75 f3 jne 111890 <rtems_assoc_ptr_by_local+0x30>
11189d: 89 c3 mov %eax,%ebx
if (ap->local_value == local_value)
return ap;
return default_ap;
}
11189f: 89 d8 mov %ebx,%eax
1118a1: 8d 65 f8 lea -0x8(%ebp),%esp
1118a4: 5b pop %ebx
1118a5: 5e pop %esi
1118a6: c9 leave
1118a7: c3 ret
00111280 <rtems_assoc_ptr_by_remote>:
const rtems_assoc_t *rtems_assoc_ptr_by_remote(
const rtems_assoc_t *ap,
uint32_t remote_value
)
{
111280: 55 push %ebp
111281: 89 e5 mov %esp,%ebp
111283: 56 push %esi
111284: 53 push %ebx
111285: 8b 5d 08 mov 0x8(%ebp),%ebx
111288: 8b 75 0c mov 0xc(%ebp),%esi
const rtems_assoc_t *default_ap = 0;
if (rtems_assoc_is_default(ap))
11128b: 8b 03 mov (%ebx),%eax
11128d: 85 c0 test %eax,%eax
11128f: 74 1b je 1112ac <rtems_assoc_ptr_by_remote+0x2c><== NEVER TAKEN
111291: 52 push %edx
111292: 52 push %edx
111293: 68 a1 f8 11 00 push $0x11f8a1
111298: 50 push %eax
111299: e8 3e 11 00 00 call 1123dc <strcmp>
11129e: 83 c4 10 add $0x10,%esp
1112a1: 85 c0 test %eax,%eax
1112a3: 75 07 jne 1112ac <rtems_assoc_ptr_by_remote+0x2c><== ALWAYS TAKEN
default_ap = ap++;
1112a5: 89 d8 mov %ebx,%eax <== NOT EXECUTED
1112a7: 83 c3 0c add $0xc,%ebx <== NOT EXECUTED
1112aa: eb 0c jmp 1112b8 <rtems_assoc_ptr_by_remote+0x38><== NOT EXECUTED
1112ac: 31 c0 xor %eax,%eax
1112ae: eb 08 jmp 1112b8 <rtems_assoc_ptr_by_remote+0x38>
for ( ; ap->name; ap++)
if (ap->remote_value == remote_value)
1112b0: 39 73 08 cmp %esi,0x8(%ebx)
1112b3: 74 0a je 1112bf <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++)
1112b5: 83 c3 0c add $0xc,%ebx
1112b8: 83 3b 00 cmpl $0x0,(%ebx)
1112bb: 75 f3 jne 1112b0 <rtems_assoc_ptr_by_remote+0x30>
1112bd: 89 c3 mov %eax,%ebx
if (ap->remote_value == remote_value)
return ap;
return default_ap;
}
1112bf: 89 d8 mov %ebx,%eax
1112c1: 8d 65 f8 lea -0x8(%ebp),%esp
1112c4: 5b pop %ebx
1112c5: 5e pop %esi
1112c6: c9 leave
1112c7: c3 ret
0011183c <rtems_assoc_remote_by_local>:
uint32_t rtems_assoc_remote_by_local(
const rtems_assoc_t *ap,
uint32_t local_value
)
{
11183c: 55 push %ebp <== NOT EXECUTED
11183d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
11183f: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED
const rtems_assoc_t *nap;
nap = rtems_assoc_ptr_by_local(ap, local_value);
111842: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
111845: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
111848: e8 13 00 00 00 call 111860 <rtems_assoc_ptr_by_local><== NOT EXECUTED
11184d: 89 c2 mov %eax,%edx <== NOT EXECUTED
if (nap)
11184f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
111852: 31 c0 xor %eax,%eax <== NOT EXECUTED
111854: 85 d2 test %edx,%edx <== NOT EXECUTED
111856: 74 03 je 11185b <rtems_assoc_remote_by_local+0x1f><== NOT EXECUTED
return nap->remote_value;
111858: 8b 42 08 mov 0x8(%edx),%eax <== NOT EXECUTED
return 0;
}
11185b: c9 leave <== NOT EXECUTED
11185c: c3 ret <== NOT EXECUTED
0010eca4 <rtems_bdbuf_add_to_modified_list_after_access>:
}
}
static void
rtems_bdbuf_add_to_modified_list_after_access (rtems_bdbuf_buffer *bd)
{
10eca4: 55 push %ebp
10eca5: 89 e5 mov %esp,%ebp
10eca7: 53 push %ebx
10eca8: 83 ec 04 sub $0x4,%esp
10ecab: 89 c3 mov %eax,%ebx
if (bdbuf_cache.sync_active && bdbuf_cache.sync_device == bd->dev)
10ecad: a0 bc 87 12 00 mov 0x1287bc,%al
10ecb2: 84 c0 test %al,%al
10ecb4: 74 33 je 10ece9 <rtems_bdbuf_add_to_modified_list_after_access+0x45><== ALWAYS TAKEN
10ecb6: a1 c4 87 12 00 mov 0x1287c4,%eax <== NOT EXECUTED
10ecbb: 8b 15 c8 87 12 00 mov 0x1287c8,%edx <== NOT EXECUTED
10ecc1: 3b 53 18 cmp 0x18(%ebx),%edx <== NOT EXECUTED
10ecc4: 75 23 jne 10ece9 <rtems_bdbuf_add_to_modified_list_after_access+0x45><== NOT EXECUTED
10ecc6: 3b 43 14 cmp 0x14(%ebx),%eax <== NOT EXECUTED
10ecc9: 75 1e jne 10ece9 <rtems_bdbuf_add_to_modified_list_after_access+0x45><== NOT EXECUTED
{
rtems_bdbuf_unlock_cache ();
10eccb: e8 79 fe ff ff call 10eb49 <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);
10ecd0: ba 0b 00 00 42 mov $0x4200000b,%edx <== NOT EXECUTED
10ecd5: a1 b8 87 12 00 mov 0x1287b8,%eax <== NOT EXECUTED
10ecda: e8 cd fc ff ff call 10e9ac <rtems_bdbuf_lock> <== NOT EXECUTED
/*
* Wait for the sync lock.
*/
rtems_bdbuf_lock_sync ();
rtems_bdbuf_unlock_sync ();
10ecdf: e8 8c fe ff ff call 10eb70 <rtems_bdbuf_unlock_sync><== NOT EXECUTED
rtems_bdbuf_lock_cache ();
10ece4: e8 eb fc ff ff call 10e9d4 <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)
10ece9: 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
10ecec: 83 f8 03 cmp $0x3,%eax
10ecef: 74 08 je 10ecf9 <rtems_bdbuf_add_to_modified_list_after_access+0x55>
|| bd->state == RTEMS_BDBUF_STATE_ACCESS_EMPTY)
10ecf1: 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
10ecf4: 83 f8 05 cmp $0x5,%eax
10ecf7: 75 08 jne 10ed01 <rtems_bdbuf_add_to_modified_list_after_access+0x5d>
|| bd->state == RTEMS_BDBUF_STATE_ACCESS_EMPTY)
bd->hold_timer = bdbuf_config.swap_block_hold;
10ecf9: a1 78 0b 12 00 mov 0x120b78,%eax
10ecfe: 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;
10ed01: 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 );
10ed08: 50 push %eax
10ed09: 50 push %eax
10ed0a: 53 push %ebx
10ed0b: 68 dc 87 12 00 push $0x1287dc
10ed10: e8 a7 d1 ff ff call 10bebc <_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)
10ed15: 8b 43 28 mov 0x28(%ebx),%eax
10ed18: 83 c4 10 add $0x10,%esp
10ed1b: 85 c0 test %eax,%eax
10ed1d: 74 0e je 10ed2d <rtems_bdbuf_add_to_modified_list_after_access+0x89>
rtems_bdbuf_wake (&bdbuf_cache.access_waiters);
10ed1f: b8 f4 87 12 00 mov $0x1287f4,%eax
else if (rtems_bdbuf_has_buffer_waiters ())
rtems_bdbuf_wake_swapper ();
}
10ed24: 8b 5d fc mov -0x4(%ebp),%ebx
10ed27: 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);
10ed28: e9 ba fc ff ff jmp 10e9e7 <rtems_bdbuf_wake>
}
static bool
rtems_bdbuf_has_buffer_waiters (void)
{
return bdbuf_cache.buffer_waiters.count;
10ed2d: a1 04 88 12 00 mov 0x128804,%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 ())
10ed32: 85 c0 test %eax,%eax
10ed34: 74 09 je 10ed3f <rtems_bdbuf_add_to_modified_list_after_access+0x9b>
rtems_bdbuf_wake_swapper ();
}
10ed36: 8b 5d fc mov -0x4(%ebp),%ebx
10ed39: 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 ();
10ed3a: e9 3c ff ff ff jmp 10ec7b <rtems_bdbuf_wake_swapper>
}
10ed3f: 8b 5d fc mov -0x4(%ebp),%ebx
10ed42: c9 leave
10ed43: c3 ret
0010ee99 <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)
{
10ee99: 55 push %ebp
10ee9a: 89 e5 mov %esp,%ebp
10ee9c: 56 push %esi
10ee9d: 53 push %ebx
10ee9e: 89 c3 mov %eax,%ebx
rtems_mode prev_mode;
/*
* Indicate we are waiting.
*/
++waiters->count;
10eea0: 8b 00 mov (%eax),%eax
10eea2: 40 inc %eax
10eea3: 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 ();
10eea5: e8 86 ff ff ff call 10ee30 <rtems_bdbuf_disable_preemption>
10eeaa: 89 c6 mov %eax,%esi
/*
* Unlock the cache, wait, and lock the cache when we return.
*/
rtems_bdbuf_unlock_cache ();
10eeac: e8 98 fc ff ff call 10eb49 <rtems_bdbuf_unlock_cache>
sc = rtems_semaphore_obtain (waiters->sema, RTEMS_WAIT, RTEMS_BDBUF_WAIT_TIMEOUT);
10eeb1: 52 push %edx
10eeb2: 6a 00 push $0x0
10eeb4: 6a 00 push $0x0
10eeb6: ff 73 04 pushl 0x4(%ebx)
10eeb9: e8 e2 c6 ff ff call 10b5a0 <rtems_semaphore_obtain>
if (sc == RTEMS_TIMEOUT)
10eebe: 83 c4 10 add $0x10,%esp
10eec1: 83 f8 06 cmp $0x6,%eax
10eec4: 75 0a jne 10eed0 <rtems_bdbuf_anonymous_wait+0x37><== ALWAYS TAKEN
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_CACHE_WAIT_TO);
10eec6: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10eec9: 68 12 00 00 42 push $0x42000012 <== NOT EXECUTED
10eece: eb 0d jmp 10eedd <rtems_bdbuf_anonymous_wait+0x44><== NOT EXECUTED
if (sc != RTEMS_UNSATISFIED)
10eed0: 83 f8 0d cmp $0xd,%eax
10eed3: 74 0d je 10eee2 <rtems_bdbuf_anonymous_wait+0x49><== ALWAYS TAKEN
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_CACHE_WAIT_2);
10eed5: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10eed8: 68 10 00 00 42 push $0x42000010 <== NOT EXECUTED
10eedd: e8 0a cc ff ff call 10baec <rtems_fatal_error_occurred><== NOT EXECUTED
rtems_bdbuf_lock_cache ();
10eee2: e8 ed fa ff ff call 10e9d4 <rtems_bdbuf_lock_cache>
rtems_bdbuf_restore_preemption (prev_mode);
10eee7: 89 f0 mov %esi,%eax
10eee9: e8 7b ff ff ff call 10ee69 <rtems_bdbuf_restore_preemption>
--waiters->count;
10eeee: 8b 03 mov (%ebx),%eax
10eef0: 48 dec %eax
10eef1: 89 03 mov %eax,(%ebx)
}
10eef3: 8d 65 f8 lea -0x8(%ebp),%esp
10eef6: 5b pop %ebx
10eef7: 5e pop %esi
10eef8: c9 leave
10eef9: c3 ret
0010ee30 <rtems_bdbuf_disable_preemption>:
--bd->group->users;
}
static rtems_mode
rtems_bdbuf_disable_preemption (void)
{
10ee30: 55 push %ebp
10ee31: 89 e5 mov %esp,%ebp
10ee33: 83 ec 1c sub $0x1c,%esp
rtems_status_code sc = RTEMS_SUCCESSFUL;
rtems_mode prev_mode = 0;
10ee36: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
sc = rtems_task_mode (RTEMS_NO_PREEMPT, RTEMS_PREEMPT_MASK, &prev_mode);
10ee3d: 8d 45 f4 lea -0xc(%ebp),%eax
10ee40: 50 push %eax
10ee41: 68 00 01 00 00 push $0x100
10ee46: 68 00 01 00 00 push $0x100
10ee4b: e8 d4 3a 00 00 call 112924 <rtems_task_mode>
if (sc != RTEMS_SUCCESSFUL)
10ee50: 83 c4 10 add $0x10,%esp
10ee53: 85 c0 test %eax,%eax
10ee55: 74 0d je 10ee64 <rtems_bdbuf_disable_preemption+0x34><== ALWAYS TAKEN
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_PREEMPT_DIS);
10ee57: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10ee5a: 68 0f 00 00 42 push $0x4200000f <== NOT EXECUTED
10ee5f: e8 88 cc ff ff call 10baec <rtems_fatal_error_occurred><== NOT EXECUTED
return prev_mode;
}
10ee64: 8b 45 f4 mov -0xc(%ebp),%eax
10ee67: c9 leave
10ee68: c3 ret
001104d6 <rtems_bdbuf_get>:
rtems_status_code
rtems_bdbuf_get (dev_t dev,
rtems_blkdev_bnum block,
rtems_bdbuf_buffer **bd_ptr)
{
1104d6: 55 push %ebp
1104d7: 89 e5 mov %esp,%ebp
1104d9: 57 push %edi
1104da: 56 push %esi
1104db: 53 push %ebx
1104dc: 83 ec 20 sub $0x20,%esp
1104df: 8b 5d 08 mov 0x8(%ebp),%ebx
1104e2: 8b 75 0c mov 0xc(%ebp),%esi
rtems_status_code sc = RTEMS_SUCCESSFUL;
rtems_disk_device *dd = NULL;
1104e5: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp)
rtems_bdbuf_buffer *bd = NULL;
rtems_blkdev_bnum media_block = 0;
1104ec: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp)
size_t bds_per_group = 0;
1104f3: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp)
sc = rtems_bdbuf_obtain_disk (dev, block, &dd, &media_block, &bds_per_group);
1104fa: 8d 45 dc lea -0x24(%ebp),%eax
1104fd: 50 push %eax
1104fe: 8d 45 e0 lea -0x20(%ebp),%eax
110501: 50 push %eax
110502: 8d 45 e4 lea -0x1c(%ebp),%eax
110505: 50 push %eax
110506: 8b 4d 10 mov 0x10(%ebp),%ecx
110509: 89 d8 mov %ebx,%eax
11050b: 89 f2 mov %esi,%edx
11050d: e8 85 e6 ff ff call 10eb97 <rtems_bdbuf_obtain_disk>
110512: 89 c7 mov %eax,%edi
if (sc != RTEMS_SUCCESSFUL)
110514: 83 c4 10 add $0x10,%esp
110517: 85 c0 test %eax,%eax
110519: 75 6f jne 11058a <rtems_bdbuf_get+0xb4> <== NEVER TAKEN
return sc;
rtems_bdbuf_lock_cache ();
11051b: e8 b4 e4 ff ff call 10e9d4 <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);
110520: 83 ec 0c sub $0xc,%esp
110523: ff 75 dc pushl -0x24(%ebp)
110526: 8b 4d e0 mov -0x20(%ebp),%ecx
110529: 89 d8 mov %ebx,%eax
11052b: 89 f2 mov %esi,%edx
11052d: e8 16 fe ff ff call 110348 <rtems_bdbuf_get_buffer_for_access>
110532: 89 c3 mov %eax,%ebx
switch (bd->state)
110534: 8b 40 24 mov 0x24(%eax),%eax
110537: 83 c4 10 add $0x10,%esp
11053a: 83 f8 02 cmp $0x2,%eax
11053d: 74 0a je 110549 <rtems_bdbuf_get+0x73>
11053f: 83 f8 07 cmp $0x7,%eax
110542: 74 17 je 11055b <rtems_bdbuf_get+0x85>
110544: 48 dec %eax
110545: 75 1d jne 110564 <rtems_bdbuf_get+0x8e> <== NEVER TAKEN
110547: eb 09 jmp 110552 <rtems_bdbuf_get+0x7c>
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
110549: 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;
110550: eb 26 jmp 110578 <rtems_bdbuf_get+0xa2>
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
110552: 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;
110559: eb 1d jmp 110578 <rtems_bdbuf_get+0xa2>
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
11055b: 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;
110562: eb 14 jmp 110578 <rtems_bdbuf_get+0xa2>
default:
rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_STATE_2);
110564: 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);
110567: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
11056a: c1 e0 10 shl $0x10,%eax <== NOT EXECUTED
11056d: 0d 1e 00 00 42 or $0x4200001e,%eax <== NOT EXECUTED
110572: 50 push %eax <== NOT EXECUTED
110573: e8 74 b5 ff ff call 10baec <rtems_fatal_error_occurred><== NOT EXECUTED
{
rtems_bdbuf_show_users ("get", bd);
rtems_bdbuf_show_usage ();
}
rtems_bdbuf_unlock_cache ();
110578: e8 cc e5 ff ff call 10eb49 <rtems_bdbuf_unlock_cache>
rtems_bdbuf_release_disk (dd);
11057d: 8b 45 e4 mov -0x1c(%ebp),%eax
110580: e8 d4 e6 ff ff call 10ec59 <rtems_bdbuf_release_disk>
*bd_ptr = bd;
110585: 8b 45 14 mov 0x14(%ebp),%eax
110588: 89 18 mov %ebx,(%eax)
return RTEMS_SUCCESSFUL;
}
11058a: 89 f8 mov %edi,%eax
11058c: 8d 65 f4 lea -0xc(%ebp),%esp
11058f: 5b pop %ebx
110590: 5e pop %esi
110591: 5f pop %edi
110592: c9 leave
110593: c3 ret
00110348 <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)
{
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 1c sub $0x1c,%esp
110351: 89 c3 mov %eax,%ebx
110353: 89 d7 mov %edx,%edi
110355: 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;
110358: 8b 35 cc 87 12 00 mov 0x1287cc,%esi
11035e: eb 12 jmp 110372 <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)))
110360: 39 fa cmp %edi,%edx
110362: 72 06 jb 11036a <rtems_bdbuf_get_buffer_for_access+0x22><== NEVER TAKEN
110364: 77 09 ja 11036f <rtems_bdbuf_get_buffer_for_access+0x27><== NEVER TAKEN
110366: 39 d8 cmp %ebx,%eax
110368: 73 05 jae 11036f <rtems_bdbuf_get_buffer_for_access+0x27>
{
p = p->avl.right;
11036a: 8b 76 0c mov 0xc(%esi),%esi
11036d: eb 03 jmp 110372 <rtems_bdbuf_get_buffer_for_access+0x2a>
}
else
{
p = p->avl.left;
11036f: 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)))
110372: 85 f6 test %esi,%esi
110374: 74 1b je 110391 <rtems_bdbuf_get_buffer_for_access+0x49>
110376: 8b 46 14 mov 0x14(%esi),%eax
110379: 8b 56 18 mov 0x18(%esi),%edx
11037c: 39 fa cmp %edi,%edx
11037e: 75 e0 jne 110360 <rtems_bdbuf_get_buffer_for_access+0x18><== NEVER TAKEN
110380: 39 d8 cmp %ebx,%eax
110382: 75 dc jne 110360 <rtems_bdbuf_get_buffer_for_access+0x18>
110384: 8b 45 e4 mov -0x1c(%ebp),%eax
110387: 39 46 1c cmp %eax,0x1c(%esi)
11038a: 75 dc jne 110368 <rtems_bdbuf_get_buffer_for_access+0x20>
11038c: e9 35 01 00 00 jmp 1104c6 <rtems_bdbuf_get_buffer_for_access+0x17e>
bd = NULL;
}
}
else
{
bd = rtems_bdbuf_get_buffer_from_lru_list (dev, block, bds_per_group);
110391: 83 ec 0c sub $0xc,%esp
110394: ff 75 08 pushl 0x8(%ebp)
110397: 8b 4d e4 mov -0x1c(%ebp),%ecx
11039a: 89 d8 mov %ebx,%eax
11039c: 89 fa mov %edi,%edx
11039e: e8 77 fc ff ff call 11001a <rtems_bdbuf_get_buffer_from_lru_list>
1103a3: 89 c6 mov %eax,%esi
if (bd == NULL)
1103a5: 83 c4 10 add $0x10,%esp
1103a8: 85 c0 test %eax,%eax
1103aa: 0f 85 b9 00 00 00 jne 110469 <rtems_bdbuf_get_buffer_for_access+0x121>
1103b0: e9 94 00 00 00 jmp 110449 <rtems_bdbuf_get_buffer_for_access+0x101>
static bool
rtems_bdbuf_wait_for_recycle (rtems_bdbuf_buffer *bd)
{
while (true)
{
switch (bd->state)
1103b5: 8b 46 24 mov 0x24(%esi),%eax
1103b8: 83 f8 0a cmp $0xa,%eax
1103bb: 77 4c ja 110409 <rtems_bdbuf_get_buffer_for_access+0xc1><== NEVER TAKEN
1103bd: ff 24 85 f4 26 12 00 jmp *0x1226f4(,%eax,4)
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
1103c4: 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 );
1103cb: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1103ce: 56 push %esi <== NOT EXECUTED
1103cf: e8 0c bb ff ff call 10bee0 <_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 );
1103d4: 5a pop %edx <== NOT EXECUTED
1103d5: 59 pop %ecx <== NOT EXECUTED
1103d6: 56 push %esi <== NOT EXECUTED
1103d7: 68 e8 87 12 00 push $0x1287e8 <== NOT EXECUTED
1103dc: e8 db ba ff ff call 10bebc <_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 ();
1103e1: e8 95 e8 ff ff call 10ec7b <rtems_bdbuf_wake_swapper><== NOT EXECUTED
1103e6: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1103e9: eb ca jmp 1103b5 <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)
1103eb: 8b 46 28 mov 0x28(%esi),%eax
1103ee: 85 c0 test %eax,%eax
1103f0: 74 2a je 11041c <rtems_bdbuf_get_buffer_for_access+0xd4><== NEVER TAKEN
1103f2: eb 66 jmp 11045a <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);
1103f4: ba f4 87 12 00 mov $0x1287f4,%edx
1103f9: eb 05 jmp 110400 <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);
1103fb: ba fc 87 12 00 mov $0x1287fc,%edx <== NOT EXECUTED
110400: 89 f0 mov %esi,%eax
110402: e8 f3 ea ff ff call 10eefa <rtems_bdbuf_wait>
110407: eb ac jmp 1103b5 <rtems_bdbuf_get_buffer_for_access+0x6d>
break;
default:
rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_STATE_8);
110409: 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);
11040c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
11040f: c1 e0 10 shl $0x10,%eax <== NOT EXECUTED
110412: 0d 06 00 00 42 or $0x42000006,%eax <== NOT EXECUTED
110417: e9 94 00 00 00 jmp 1104b0 <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);
11041c: 89 f0 mov %esi,%eax <== NOT EXECUTED
11041e: e8 bd f1 ff ff call 10f5e0 <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;
110423: 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);
11042a: 50 push %eax <== NOT EXECUTED
11042b: 50 push %eax <== NOT EXECUTED
11042c: 56 push %esi <== NOT EXECUTED
11042d: 68 d0 87 12 00 push $0x1287d0 <== NOT EXECUTED
110432: e8 fd 28 00 00 call 112d34 <_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);
110437: b8 04 88 12 00 mov $0x128804,%eax <== NOT EXECUTED
11043c: e8 a6 e5 ff ff call 10e9e7 <rtems_bdbuf_wake> <== NOT EXECUTED
110441: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
110444: e9 0f ff ff ff jmp 110358 <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;
110449: 81 3d dc 87 12 00 e0 cmpl $0x1287e0,0x1287dc
110450: 87 12 00
110453: 74 05 je 11045a <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 ();
110455: e8 21 e8 ff ff call 10ec7b <rtems_bdbuf_wake_swapper>
rtems_bdbuf_anonymous_wait (&bdbuf_cache.buffer_waiters);
11045a: b8 04 88 12 00 mov $0x128804,%eax
11045f: e8 35 ea ff ff call 10ee99 <rtems_bdbuf_anonymous_wait>
110464: e9 ef fe ff ff jmp 110358 <rtems_bdbuf_get_buffer_for_access+0x10>
static void
rtems_bdbuf_wait_for_access (rtems_bdbuf_buffer *bd)
{
while (true)
{
switch (bd->state)
110469: 8b 46 24 mov 0x24(%esi),%eax
11046c: 48 dec %eax
11046d: 83 f8 09 cmp $0x9,%eax
110470: 77 30 ja 1104a2 <rtems_bdbuf_get_buffer_for_access+0x15a><== NEVER TAKEN
110472: ff 24 85 20 27 12 00 jmp *0x122720(,%eax,4)
}
static void
rtems_bdbuf_group_release (rtems_bdbuf_buffer *bd)
{
--bd->group->users;
110479: 8b 46 2c mov 0x2c(%esi),%eax
11047c: ff 48 0c decl 0xc(%eax)
*/
RTEMS_INLINE_ROUTINE void rtems_chain_extract(
rtems_chain_node *the_node
)
{
_Chain_Extract( the_node );
11047f: 83 ec 0c sub $0xc,%esp
110482: 56 push %esi
110483: e8 58 ba ff ff call 10bee0 <_Chain_Extract>
110488: 83 c4 10 add $0x10,%esp
11048b: eb 29 jmp 1104b6 <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);
11048d: ba f4 87 12 00 mov $0x1287f4,%edx
110492: eb 05 jmp 110499 <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);
110494: ba fc 87 12 00 mov $0x1287fc,%edx
110499: 89 f0 mov %esi,%eax
11049b: e8 5a ea ff ff call 10eefa <rtems_bdbuf_wait>
1104a0: eb c7 jmp 110469 <rtems_bdbuf_get_buffer_for_access+0x121>
break;
default:
rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_STATE_7);
1104a2: 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);
1104a5: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1104a8: c1 e0 10 shl $0x10,%eax <== NOT EXECUTED
1104ab: 0d 05 00 00 42 or $0x42000005,%eax <== NOT EXECUTED
1104b0: 50 push %eax <== NOT EXECUTED
1104b1: e8 36 b6 ff ff call 10baec <rtems_fatal_error_occurred><== NOT EXECUTED
}
static void
rtems_bdbuf_group_obtain (rtems_bdbuf_buffer *bd)
{
++bd->group->users;
1104b6: 8b 46 2c mov 0x2c(%esi),%eax
1104b9: ff 40 0c incl 0xc(%eax)
rtems_bdbuf_wait_for_access (bd);
rtems_bdbuf_group_obtain (bd);
return bd;
}
1104bc: 89 f0 mov %esi,%eax
1104be: 8d 65 f4 lea -0xc(%ebp),%esp
1104c1: 5b pop %ebx
1104c2: 5e pop %esi
1104c3: 5f pop %edi
1104c4: c9 leave
1104c5: c3 ret
{
bd = rtems_bdbuf_avl_search (&bdbuf_cache.tree, dev, block);
if (bd != NULL)
{
if (bd->group->bds_per_group != bds_per_group)
1104c6: 8b 46 2c mov 0x2c(%esi),%eax
1104c9: 8b 55 08 mov 0x8(%ebp),%edx
1104cc: 39 50 08 cmp %edx,0x8(%eax)
1104cf: 74 98 je 110469 <rtems_bdbuf_get_buffer_for_access+0x121>
1104d1: e9 df fe ff ff jmp 1103b5 <rtems_bdbuf_get_buffer_for_access+0x6d>
0011001a <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)
{
11001a: 55 push %ebp
11001b: 89 e5 mov %esp,%ebp
11001d: 57 push %edi
11001e: 56 push %esi
11001f: 53 push %ebx
110020: 81 ec bc 00 00 00 sub $0xbc,%esp
110026: 89 85 60 ff ff ff mov %eax,-0xa0(%ebp)
11002c: 89 95 5c ff ff ff mov %edx,-0xa4(%ebp)
110032: 89 cf mov %ecx,%edi
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(
Chain_Control *the_chain
)
{
return the_chain->first;
110034: 8b 35 d0 87 12 00 mov 0x1287d0,%esi
rtems_chain_node *node = rtems_chain_first (&bdbuf_cache.lru);
while (!rtems_chain_is_tail (&bdbuf_cache.lru, node))
11003a: e9 e6 02 00 00 jmp 110325 <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)
11003f: 8b 46 28 mov 0x28(%esi),%eax
110042: 85 c0 test %eax,%eax
110044: 0f 85 d9 02 00 00 jne 110323 <rtems_bdbuf_get_buffer_from_lru_list+0x309>
{
if (bd->group->bds_per_group == bds_per_group)
11004a: 8b 5e 2c mov 0x2c(%esi),%ebx
11004d: 8b 4b 08 mov 0x8(%ebx),%ecx
110050: 3b 4d 08 cmp 0x8(%ebp),%ecx
110053: 75 0e jne 110063 <rtems_bdbuf_get_buffer_from_lru_list+0x49>
{
rtems_bdbuf_remove_from_tree_and_lru_list (bd);
110055: 89 f0 mov %esi,%eax
110057: e8 84 f5 ff ff call 10f5e0 <rtems_bdbuf_remove_from_tree_and_lru_list>
11005c: 89 f0 mov %esi,%eax
11005e: e9 c7 00 00 00 jmp 11012a <rtems_bdbuf_get_buffer_from_lru_list+0x110>
empty_bd = bd;
}
else if (bd->group->users == 0)
110063: 83 7b 0c 00 cmpl $0x0,0xc(%ebx)
110067: 0f 85 b6 02 00 00 jne 110323 <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;
11006d: 8b 43 10 mov 0x10(%ebx),%eax
110070: 89 85 64 ff ff ff mov %eax,-0x9c(%ebp)
b < group->bds_per_group;
b++, bd += bufs_per_bd)
110076: a1 ac 87 12 00 mov 0x1287ac,%eax
11007b: 31 d2 xor %edx,%edx
11007d: f7 f1 div %ecx
11007f: 6b c0 3c imul $0x3c,%eax,%eax
110082: 89 85 58 ff ff ff mov %eax,-0xa8(%ebp)
110088: 31 d2 xor %edx,%edx
11008a: eb 24 jmp 1100b0 <rtems_bdbuf_get_buffer_from_lru_list+0x96>
rtems_bdbuf_remove_from_tree_and_lru_list (bd);
11008c: 8b 85 64 ff ff ff mov -0x9c(%ebp),%eax
110092: 89 95 54 ff ff ff mov %edx,-0xac(%ebp)
110098: e8 43 f5 ff ff call 10f5e0 <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)
11009d: 8b 95 54 ff ff ff mov -0xac(%ebp),%edx
1100a3: 42 inc %edx
1100a4: 8b 85 58 ff ff ff mov -0xa8(%ebp),%eax
1100aa: 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;
1100b0: 3b 53 08 cmp 0x8(%ebx),%edx
1100b3: 72 d7 jb 11008c <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;
1100b5: 8b 55 08 mov 0x8(%ebp),%edx
1100b8: 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;
1100bb: a1 ac 87 12 00 mov 0x1287ac,%eax
1100c0: 31 d2 xor %edx,%edx
1100c2: f7 75 08 divl 0x8(%ebp)
1100c5: 6b c0 3c imul $0x3c,%eax,%eax
1100c8: 8b 4b 10 mov 0x10(%ebx),%ecx
1100cb: 01 c1 add %eax,%ecx
1100cd: ba 01 00 00 00 mov $0x1,%edx
1100d2: eb 3f jmp 110113 <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;
1100d4: 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);
1100db: 83 ec 08 sub $0x8,%esp
1100de: 51 push %ecx
1100df: 68 d0 87 12 00 push $0x1287d0
1100e4: 89 85 4c ff ff ff mov %eax,-0xb4(%ebp)
1100ea: 89 95 54 ff ff ff mov %edx,-0xac(%ebp)
1100f0: 89 8d 50 ff ff ff mov %ecx,-0xb0(%ebp)
1100f6: e8 39 2c 00 00 call 112d34 <_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)
1100fb: 8b 95 54 ff ff ff mov -0xac(%ebp),%edx
110101: 42 inc %edx
110102: 8b 85 4c ff ff ff mov -0xb4(%ebp),%eax
110108: 8b 8d 50 ff ff ff mov -0xb0(%ebp),%ecx
11010e: 01 c1 add %eax,%ecx
110110: 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;
110113: 3b 53 08 cmp 0x8(%ebx),%edx
110116: 72 bc jb 1100d4 <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)
110118: 83 fa 01 cmp $0x1,%edx
11011b: 76 0a jbe 110127 <rtems_bdbuf_get_buffer_from_lru_list+0x10d>
rtems_bdbuf_wake (&bdbuf_cache.buffer_waiters);
11011d: b8 04 88 12 00 mov $0x128804,%eax
110122: e8 c0 e8 ff ff call 10e9e7 <rtems_bdbuf_wake>
return group->bdbuf;
110127: 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)
11012a: 85 c0 test %eax,%eax
11012c: 0f 84 f1 01 00 00 je 110323 <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;
110132: 8b 9d 60 ff ff ff mov -0xa0(%ebp),%ebx
110138: 89 58 14 mov %ebx,0x14(%eax)
11013b: 8b 95 5c ff ff ff mov -0xa4(%ebp),%edx
110141: 89 50 18 mov %edx,0x18(%eax)
bd->block = block;
110144: 89 78 1c mov %edi,0x1c(%eax)
bd->avl.left = NULL;
110147: c7 40 08 00 00 00 00 movl $0x0,0x8(%eax)
bd->avl.right = NULL;
11014e: c7 40 0c 00 00 00 00 movl $0x0,0xc(%eax)
bd->waiters = 0;
110155: 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;
11015c: 8b 15 cc 87 12 00 mov 0x1287cc,%edx
rtems_bdbuf_buffer* buf_stack[RTEMS_BDBUF_AVL_MAX_HEIGHT];
rtems_bdbuf_buffer** buf_prev = buf_stack;
bool modified = false;
if (p == NULL)
110162: 8d 8d 68 ff ff ff lea -0x98(%ebp),%ecx
110168: 85 d2 test %edx,%edx
11016a: 75 59 jne 1101c5 <rtems_bdbuf_get_buffer_from_lru_list+0x1ab>
{
*root = node;
11016c: a3 cc 87 12 00 mov %eax,0x1287cc
node->avl.left = NULL;
110171: c7 40 08 00 00 00 00 movl $0x0,0x8(%eax)
node->avl.right = NULL;
110178: c7 40 0c 00 00 00 00 movl $0x0,0xc(%eax)
node->avl.bal = 0;
11017f: c6 40 11 00 movb $0x0,0x11(%eax)
110183: e9 92 01 00 00 jmp 11031a <rtems_bdbuf_get_buffer_from_lru_list+0x300>
while (p != NULL)
{
*buf_prev++ = p;
if ((p->dev < dev) || ((p->dev == dev) && (p->block < block)))
110188: 3b b5 5c ff ff ff cmp -0xa4(%ebp),%esi
11018e: 75 23 jne 1101b3 <rtems_bdbuf_get_buffer_from_lru_list+0x199><== NEVER TAKEN
110190: 3b 9d 60 ff ff ff cmp -0xa0(%ebp),%ebx
110196: 75 1b jne 1101b3 <rtems_bdbuf_get_buffer_from_lru_list+0x199><== NEVER TAKEN
110198: 39 7a 1c cmp %edi,0x1c(%edx)
11019b: 73 10 jae 1101ad <rtems_bdbuf_get_buffer_from_lru_list+0x193>
{
p->avl.cache = 1;
11019d: c6 42 10 01 movb $0x1,0x10(%edx)
q = p->avl.right;
1101a1: 8b 5a 0c mov 0xc(%edx),%ebx
if (q == NULL)
1101a4: 85 db test %ebx,%ebx
1101a6: 75 1b jne 1101c3 <rtems_bdbuf_get_buffer_from_lru_list+0x1a9>
{
q = node;
p->avl.right = q = node;
1101a8: 89 42 0c mov %eax,0xc(%edx)
1101ab: eb 37 jmp 1101e4 <rtems_bdbuf_get_buffer_from_lru_list+0x1ca>
break;
}
}
else if ((p->dev != dev) || (p->block != block))
1101ad: 0f 84 88 01 00 00 je 11033b <rtems_bdbuf_get_buffer_from_lru_list+0x321><== NEVER TAKEN
{
p->avl.cache = -1;
1101b3: c6 42 10 ff movb $0xff,0x10(%edx)
q = p->avl.left;
1101b7: 8b 5a 08 mov 0x8(%edx),%ebx
if (q == NULL)
1101ba: 85 db test %ebx,%ebx
1101bc: 75 05 jne 1101c3 <rtems_bdbuf_get_buffer_from_lru_list+0x1a9>
{
q = node;
p->avl.left = q;
1101be: 89 42 08 mov %eax,0x8(%edx)
1101c1: eb 21 jmp 1101e4 <rtems_bdbuf_get_buffer_from_lru_list+0x1ca>
1101c3: 89 da mov %ebx,%edx
return 0;
}
while (p != NULL)
{
*buf_prev++ = p;
1101c5: 89 11 mov %edx,(%ecx)
1101c7: 83 c1 04 add $0x4,%ecx
if ((p->dev < dev) || ((p->dev == dev) && (p->block < block)))
1101ca: 8b 5a 14 mov 0x14(%edx),%ebx
1101cd: 8b 72 18 mov 0x18(%edx),%esi
1101d0: 3b b5 5c ff ff ff cmp -0xa4(%ebp),%esi
1101d6: 72 c5 jb 11019d <rtems_bdbuf_get_buffer_from_lru_list+0x183><== NEVER TAKEN
1101d8: 77 ae ja 110188 <rtems_bdbuf_get_buffer_from_lru_list+0x16e><== NEVER TAKEN
1101da: 3b 9d 60 ff ff ff cmp -0xa0(%ebp),%ebx
1101e0: 72 bb jb 11019d <rtems_bdbuf_get_buffer_from_lru_list+0x183><== NEVER TAKEN
1101e2: eb a4 jmp 110188 <rtems_bdbuf_get_buffer_from_lru_list+0x16e>
}
p = q;
}
q->avl.left = q->avl.right = NULL;
1101e4: c7 40 0c 00 00 00 00 movl $0x0,0xc(%eax)
1101eb: c7 40 08 00 00 00 00 movl $0x0,0x8(%eax)
q->avl.bal = 0;
1101f2: c6 40 11 00 movb $0x0,0x11(%eax)
modified = true;
buf_prev--;
1101f6: 83 e9 04 sub $0x4,%ecx
default:
break;
}
}
q = p;
if (buf_prev > buf_stack)
1101f9: 8d 9d 68 ff ff ff lea -0x98(%ebp),%ebx
1101ff: 89 9d 44 ff ff ff mov %ebx,-0xbc(%ebp)
110205: 89 85 64 ff ff ff mov %eax,-0x9c(%ebp)
modified = true;
buf_prev--;
while (modified)
{
if (p->avl.cache == -1)
11020b: 80 7a 10 ff cmpb $0xff,0x10(%edx)
11020f: 8a 5a 11 mov 0x11(%edx),%bl
110212: 75 56 jne 11026a <rtems_bdbuf_get_buffer_from_lru_list+0x250>
{
switch (p->avl.bal)
110214: 84 db test %bl,%bl
110216: 74 0f je 110227 <rtems_bdbuf_get_buffer_from_lru_list+0x20d>
110218: 80 fb 01 cmp $0x1,%bl
11021b: 74 5a je 110277 <rtems_bdbuf_get_buffer_from_lru_list+0x25d><== NEVER TAKEN
11021d: fe c3 inc %bl
11021f: 0f 85 b3 00 00 00 jne 1102d8 <rtems_bdbuf_get_buffer_from_lru_list+0x2be><== NEVER TAKEN
110225: eb 09 jmp 110230 <rtems_bdbuf_get_buffer_from_lru_list+0x216>
p->avl.bal = 0;
modified = false;
break;
case 0:
p->avl.bal = -1;
110227: c6 42 11 ff movb $0xff,0x11(%edx)
11022b: e9 a8 00 00 00 jmp 1102d8 <rtems_bdbuf_get_buffer_from_lru_list+0x2be>
break;
case -1:
p1 = p->avl.left;
110230: 8b 5a 08 mov 0x8(%edx),%ebx
if (p1->avl.bal == -1) /* simple LL-turn */
110233: 80 7b 11 ff cmpb $0xff,0x11(%ebx)
110237: 8b 73 0c mov 0xc(%ebx),%esi
11023a: 75 08 jne 110244 <rtems_bdbuf_get_buffer_from_lru_list+0x22a><== ALWAYS TAKEN
{
p->avl.left = p1->avl.right;
11023c: 89 72 08 mov %esi,0x8(%edx) <== NOT EXECUTED
p1->avl.right = p;
11023f: 89 53 0c mov %edx,0xc(%ebx) <== NOT EXECUTED
110242: eb 53 jmp 110297 <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;
110244: 8b 7e 08 mov 0x8(%esi),%edi
110247: 89 7b 0c mov %edi,0xc(%ebx)
p2->avl.left = p1;
11024a: 89 5e 08 mov %ebx,0x8(%esi)
p->avl.left = p2->avl.right;
11024d: 8b 7e 0c mov 0xc(%esi),%edi
110250: 89 7a 08 mov %edi,0x8(%edx)
p2->avl.right = p;
110253: 89 56 0c mov %edx,0xc(%esi)
if (p2->avl.bal == -1) p->avl.bal = +1; else p->avl.bal = 0;
110256: 80 7e 11 ff cmpb $0xff,0x11(%esi)
11025a: 0f 94 42 11 sete 0x11(%edx)
if (p2->avl.bal == +1) p1->avl.bal = -1; else p1->avl.bal = 0;
11025e: 80 7e 11 01 cmpb $0x1,0x11(%esi)
110262: 75 66 jne 1102ca <rtems_bdbuf_get_buffer_from_lru_list+0x2b0><== ALWAYS TAKEN
110264: c6 43 11 ff movb $0xff,0x11(%ebx) <== NOT EXECUTED
110268: eb 64 jmp 1102ce <rtems_bdbuf_get_buffer_from_lru_list+0x2b4><== NOT EXECUTED
break;
}
}
else
{
switch (p->avl.bal)
11026a: 84 db test %bl,%bl
11026c: 74 11 je 11027f <rtems_bdbuf_get_buffer_from_lru_list+0x265>
11026e: 80 fb 01 cmp $0x1,%bl
110271: 74 12 je 110285 <rtems_bdbuf_get_buffer_from_lru_list+0x26b>
110273: fe c3 inc %bl
110275: 75 61 jne 1102d8 <rtems_bdbuf_get_buffer_from_lru_list+0x2be><== NEVER TAKEN
{
case -1:
p->avl.bal = 0;
110277: c6 42 11 00 movb $0x0,0x11(%edx)
11027b: 89 d3 mov %edx,%ebx
11027d: eb 55 jmp 1102d4 <rtems_bdbuf_get_buffer_from_lru_list+0x2ba>
modified = false;
break;
case 0:
p->avl.bal = 1;
11027f: c6 42 11 01 movb $0x1,0x11(%edx)
110283: eb 53 jmp 1102d8 <rtems_bdbuf_get_buffer_from_lru_list+0x2be>
break;
case 1:
p1 = p->avl.right;
110285: 8b 5a 0c mov 0xc(%edx),%ebx
if (p1->avl.bal == 1) /* simple RR-turn */
110288: 80 7b 11 01 cmpb $0x1,0x11(%ebx)
11028c: 8b 73 08 mov 0x8(%ebx),%esi
11028f: 75 0c jne 11029d <rtems_bdbuf_get_buffer_from_lru_list+0x283><== NEVER TAKEN
{
p->avl.right = p1->avl.left;
110291: 89 72 0c mov %esi,0xc(%edx)
p1->avl.left = p;
110294: 89 53 08 mov %edx,0x8(%ebx)
p->avl.bal = 0;
110297: c6 42 11 00 movb $0x0,0x11(%edx)
11029b: eb 33 jmp 1102d0 <rtems_bdbuf_get_buffer_from_lru_list+0x2b6>
p = p1;
}
else /* double RL-turn */
{
p2 = p1->avl.left;
p1->avl.left = p2->avl.right;
11029d: 8b 7e 0c mov 0xc(%esi),%edi <== NOT EXECUTED
1102a0: 89 7b 08 mov %edi,0x8(%ebx) <== NOT EXECUTED
p2->avl.right = p1;
1102a3: 89 5e 0c mov %ebx,0xc(%esi) <== NOT EXECUTED
p->avl.right = p2->avl.left;
1102a6: 8b 7e 08 mov 0x8(%esi),%edi <== NOT EXECUTED
1102a9: 89 7a 0c mov %edi,0xc(%edx) <== NOT EXECUTED
p2->avl.left = p;
1102ac: 89 56 08 mov %edx,0x8(%esi) <== NOT EXECUTED
if (p2->avl.bal == +1) p->avl.bal = -1; else p->avl.bal = 0;
1102af: 80 7e 11 01 cmpb $0x1,0x11(%esi) <== NOT EXECUTED
1102b3: 0f 95 c0 setne %al <== NOT EXECUTED
1102b6: 89 c7 mov %eax,%edi <== NOT EXECUTED
1102b8: 4f dec %edi <== NOT EXECUTED
1102b9: 89 f8 mov %edi,%eax <== NOT EXECUTED
1102bb: 88 42 11 mov %al,0x11(%edx) <== NOT EXECUTED
if (p2->avl.bal == -1) p1->avl.bal = +1; else p1->avl.bal = 0;
1102be: 80 7e 11 ff cmpb $0xff,0x11(%esi) <== NOT EXECUTED
1102c2: 75 06 jne 1102ca <rtems_bdbuf_get_buffer_from_lru_list+0x2b0><== NOT EXECUTED
1102c4: c6 43 11 01 movb $0x1,0x11(%ebx) <== NOT EXECUTED
1102c8: eb 04 jmp 1102ce <rtems_bdbuf_get_buffer_from_lru_list+0x2b4><== NOT EXECUTED
1102ca: c6 43 11 00 movb $0x0,0x11(%ebx)
1102ce: 89 f3 mov %esi,%ebx
p = p2;
}
p->avl.bal = 0;
1102d0: c6 43 11 00 movb $0x0,0x11(%ebx)
1102d4: 31 f6 xor %esi,%esi
1102d6: eb 07 jmp 1102df <rtems_bdbuf_get_buffer_from_lru_list+0x2c5>
1102d8: 89 d3 mov %edx,%ebx
1102da: be 01 00 00 00 mov $0x1,%esi
default:
break;
}
}
q = p;
if (buf_prev > buf_stack)
1102df: 3b 8d 44 ff ff ff cmp -0xbc(%ebp),%ecx
1102e5: 76 15 jbe 1102fc <rtems_bdbuf_get_buffer_from_lru_list+0x2e2>
{
p = *--buf_prev;
1102e7: 83 e9 04 sub $0x4,%ecx
1102ea: 8b 11 mov (%ecx),%edx
if (p->avl.cache == -1)
1102ec: 80 7a 10 ff cmpb $0xff,0x10(%edx)
1102f0: 75 05 jne 1102f7 <rtems_bdbuf_get_buffer_from_lru_list+0x2dd>
{
p->avl.left = q;
1102f2: 89 5a 08 mov %ebx,0x8(%edx)
1102f5: eb 13 jmp 11030a <rtems_bdbuf_get_buffer_from_lru_list+0x2f0>
}
else
{
p->avl.right = q;
1102f7: 89 5a 0c mov %ebx,0xc(%edx)
1102fa: eb 0e jmp 11030a <rtems_bdbuf_get_buffer_from_lru_list+0x2f0>
1102fc: 8b 85 64 ff ff ff mov -0x9c(%ebp),%eax
}
}
else
{
*root = p;
110302: 89 1d cc 87 12 00 mov %ebx,0x1287cc
110308: eb 10 jmp 11031a <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)
11030a: 89 f3 mov %esi,%ebx
11030c: 84 db test %bl,%bl
11030e: 0f 85 f7 fe ff ff jne 11020b <rtems_bdbuf_get_buffer_from_lru_list+0x1f1>
110314: 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;
11031a: 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;
110321: eb 10 jmp 110333 <rtems_bdbuf_get_buffer_from_lru_list+0x319>
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Next(
Chain_Node *the_node
)
{
return the_node->next;
110323: 8b 36 mov (%esi),%esi
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
110325: 81 fe d4 87 12 00 cmp $0x1287d4,%esi
11032b: 0f 85 0e fd ff ff jne 11003f <rtems_bdbuf_get_buffer_from_lru_list+0x25>
110331: 31 c0 xor %eax,%eax
node = rtems_chain_next (node);
}
return NULL;
}
110333: 8d 65 f4 lea -0xc(%ebp),%esp
110336: 5b pop %ebx
110337: 5e pop %esi
110338: 5f pop %edi
110339: c9 leave
11033a: 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);
11033b: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
11033e: 68 1b 00 00 42 push $0x4200001b <== NOT EXECUTED
110343: e8 a4 b7 ff ff call 10baec <rtems_fatal_error_occurred><== NOT EXECUTED
0010ef28 <rtems_bdbuf_init>:
*
* @return rtems_status_code The initialisation status.
*/
rtems_status_code
rtems_bdbuf_init (void)
{
10ef28: 55 push %ebp
10ef29: 89 e5 mov %esp,%ebp
10ef2b: 57 push %edi
10ef2c: 56 push %esi
10ef2d: 53 push %ebx
10ef2e: 83 ec 1c sub $0x1c,%esp
rtems_mode prev_mode;
if (rtems_bdbuf_tracer)
printf ("bdbuf:init\n");
if (rtems_interrupt_is_in_progress())
10ef31: 8b 15 00 8c 12 00 mov 0x128c00,%edx
10ef37: b8 12 00 00 00 mov $0x12,%eax
10ef3c: 85 d2 test %edx,%edx
10ef3e: 0f 85 ae 03 00 00 jne 10f2f2 <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)
10ef44: a1 8c 0b 12 00 mov 0x120b8c,%eax
10ef49: 31 d2 xor %edx,%edx
10ef4b: f7 35 88 0b 12 00 divl 0x120b88
10ef51: 89 55 e4 mov %edx,-0x1c(%ebp)
10ef54: 89 c6 mov %eax,%esi
10ef56: b8 0a 00 00 00 mov $0xa,%eax
10ef5b: 85 d2 test %edx,%edx
10ef5d: 0f 85 8f 03 00 00 jne 10f2f2 <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 ();
10ef63: e8 c8 fe ff ff call 10ee30 <rtems_bdbuf_disable_preemption>
10ef68: 89 c2 mov %eax,%edx
if (bdbuf_cache.initialised)
10ef6a: 80 3d 14 88 12 00 00 cmpb $0x0,0x128814
10ef71: 74 0f je 10ef82 <rtems_bdbuf_init+0x5a> <== ALWAYS TAKEN
{
rtems_bdbuf_restore_preemption (prev_mode);
10ef73: e8 f1 fe ff ff call 10ee69 <rtems_bdbuf_restore_preemption><== NOT EXECUTED
10ef78: b8 0c 00 00 00 mov $0xc,%eax <== NOT EXECUTED
return RTEMS_RESOURCE_IN_USE;
10ef7d: e9 70 03 00 00 jmp 10f2f2 <rtems_bdbuf_init+0x3ca><== NOT EXECUTED
}
memset(&bdbuf_cache, 0, sizeof(bdbuf_cache));
10ef82: bb 8c 87 12 00 mov $0x12878c,%ebx
10ef87: b9 23 00 00 00 mov $0x23,%ecx
10ef8c: 89 df mov %ebx,%edi
10ef8e: 8b 45 e4 mov -0x1c(%ebp),%eax
10ef91: f3 ab rep stos %eax,%es:(%edi)
bdbuf_cache.initialised = true;
10ef93: c6 05 14 88 12 00 01 movb $0x1,0x128814
rtems_bdbuf_restore_preemption (prev_mode);
10ef9a: 89 d0 mov %edx,%eax
10ef9c: e8 c8 fe ff ff call 10ee69 <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;
10efa1: c7 05 c4 87 12 00 ff movl $0xffffffff,0x1287c4
10efa8: ff ff ff
10efab: c7 05 c8 87 12 00 ff movl $0xffffffff,0x1287c8
10efb2: ff ff ff
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
10efb5: c7 05 94 87 12 00 98 movl $0x128798,0x128794
10efbc: 87 12 00
the_chain->permanent_null = NULL;
10efbf: c7 05 98 87 12 00 00 movl $0x0,0x128798
10efc6: 00 00 00
the_chain->last = _Chain_Head(the_chain);
10efc9: c7 05 9c 87 12 00 94 movl $0x128794,0x12879c
10efd0: 87 12 00
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
10efd3: c7 05 d0 87 12 00 d4 movl $0x1287d4,0x1287d0
10efda: 87 12 00
the_chain->permanent_null = NULL;
10efdd: c7 05 d4 87 12 00 00 movl $0x0,0x1287d4
10efe4: 00 00 00
the_chain->last = _Chain_Head(the_chain);
10efe7: c7 05 d8 87 12 00 d0 movl $0x1287d0,0x1287d8
10efee: 87 12 00
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
10eff1: c7 05 dc 87 12 00 e0 movl $0x1287e0,0x1287dc
10eff8: 87 12 00
the_chain->permanent_null = NULL;
10effb: c7 05 e0 87 12 00 00 movl $0x0,0x1287e0
10f002: 00 00 00
the_chain->last = _Chain_Head(the_chain);
10f005: c7 05 e4 87 12 00 dc movl $0x1287dc,0x1287e4
10f00c: 87 12 00
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
10f00f: c7 05 e8 87 12 00 ec movl $0x1287ec,0x1287e8
10f016: 87 12 00
the_chain->permanent_null = NULL;
10f019: c7 05 ec 87 12 00 00 movl $0x0,0x1287ec
10f020: 00 00 00
the_chain->last = _Chain_Head(the_chain);
10f023: c7 05 f0 87 12 00 e8 movl $0x1287e8,0x1287f0
10f02a: 87 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'),
10f02d: 83 ec 0c sub $0xc,%esp
10f030: 68 b4 87 12 00 push $0x1287b4
10f035: 6a 00 push $0x0
10f037: 6a 54 push $0x54
10f039: 6a 01 push $0x1
10f03b: 68 6c 43 44 42 push $0x4244436c
10f040: e8 2f c3 ff ff call 10b374 <rtems_semaphore_create>
1, RTEMS_BDBUF_CACHE_LOCK_ATTRIBS, 0,
&bdbuf_cache.lock);
if (sc != RTEMS_SUCCESSFUL)
10f045: 83 c4 20 add $0x20,%esp
10f048: 85 c0 test %eax,%eax
10f04a: 0f 85 09 02 00 00 jne 10f259 <rtems_bdbuf_init+0x331><== NEVER TAKEN
goto error;
rtems_bdbuf_lock_cache ();
10f050: e8 7f f9 ff ff call 10e9d4 <rtems_bdbuf_lock_cache>
sc = rtems_semaphore_create (rtems_build_name ('B', 'D', 'C', 's'),
10f055: 83 ec 0c sub $0xc,%esp
10f058: 68 b8 87 12 00 push $0x1287b8
10f05d: 6a 00 push $0x0
10f05f: 6a 54 push $0x54
10f061: 6a 01 push $0x1
10f063: 68 73 43 44 42 push $0x42444373
10f068: e8 07 c3 ff ff call 10b374 <rtems_semaphore_create>
1, RTEMS_BDBUF_CACHE_LOCK_ATTRIBS, 0,
&bdbuf_cache.sync_lock);
if (sc != RTEMS_SUCCESSFUL)
10f06d: 83 c4 20 add $0x20,%esp
10f070: 85 c0 test %eax,%eax
10f072: 0f 85 e1 01 00 00 jne 10f259 <rtems_bdbuf_init+0x331><== NEVER TAKEN
goto error;
sc = rtems_semaphore_create (rtems_build_name ('B', 'D', 'C', 'a'),
10f078: 83 ec 0c sub $0xc,%esp
10f07b: 68 f8 87 12 00 push $0x1287f8
10f080: 6a 00 push $0x0
10f082: 6a 24 push $0x24
10f084: 6a 00 push $0x0
10f086: 68 61 43 44 42 push $0x42444361
10f08b: e8 e4 c2 ff ff call 10b374 <rtems_semaphore_create>
0, RTEMS_BDBUF_CACHE_WAITER_ATTRIBS, 0,
&bdbuf_cache.access_waiters.sema);
if (sc != RTEMS_SUCCESSFUL)
10f090: 83 c4 20 add $0x20,%esp
10f093: 85 c0 test %eax,%eax
10f095: 0f 85 be 01 00 00 jne 10f259 <rtems_bdbuf_init+0x331><== NEVER TAKEN
goto error;
sc = rtems_semaphore_create (rtems_build_name ('B', 'D', 'C', 't'),
10f09b: 83 ec 0c sub $0xc,%esp
10f09e: 68 00 88 12 00 push $0x128800
10f0a3: 6a 00 push $0x0
10f0a5: 6a 24 push $0x24
10f0a7: 6a 00 push $0x0
10f0a9: 68 74 43 44 42 push $0x42444374
10f0ae: e8 c1 c2 ff ff call 10b374 <rtems_semaphore_create>
0, RTEMS_BDBUF_CACHE_WAITER_ATTRIBS, 0,
&bdbuf_cache.transfer_waiters.sema);
if (sc != RTEMS_SUCCESSFUL)
10f0b3: 83 c4 20 add $0x20,%esp
10f0b6: 85 c0 test %eax,%eax
10f0b8: 0f 85 9b 01 00 00 jne 10f259 <rtems_bdbuf_init+0x331><== NEVER TAKEN
goto error;
sc = rtems_semaphore_create (rtems_build_name ('B', 'D', 'C', 'b'),
10f0be: 83 ec 0c sub $0xc,%esp
10f0c1: 68 08 88 12 00 push $0x128808
10f0c6: 6a 00 push $0x0
10f0c8: 6a 24 push $0x24
10f0ca: 6a 00 push $0x0
10f0cc: 68 62 43 44 42 push $0x42444362
10f0d1: e8 9e c2 ff ff call 10b374 <rtems_semaphore_create>
0, RTEMS_BDBUF_CACHE_WAITER_ATTRIBS, 0,
&bdbuf_cache.buffer_waiters.sema);
if (sc != RTEMS_SUCCESSFUL)
10f0d6: 83 c4 20 add $0x20,%esp
10f0d9: 85 c0 test %eax,%eax
10f0db: 0f 85 78 01 00 00 jne 10f259 <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;
10f0e1: a1 84 0b 12 00 mov 0x120b84,%eax
10f0e6: 31 d2 xor %edx,%edx
10f0e8: f7 35 88 0b 12 00 divl 0x120b88
10f0ee: 89 c1 mov %eax,%ecx
goto error;
/*
* Compute the various number of elements in the cache.
*/
bdbuf_cache.buffer_min_count =
10f0f0: a3 a8 87 12 00 mov %eax,0x1287a8
bdbuf_config.size / bdbuf_config.buffer_min;
bdbuf_cache.max_bds_per_group =
10f0f5: 89 35 ac 87 12 00 mov %esi,0x1287ac
bdbuf_config.buffer_max / bdbuf_config.buffer_min;
bdbuf_cache.group_count =
10f0fb: 31 d2 xor %edx,%edx
10f0fd: f7 f6 div %esi
10f0ff: a3 0c 88 12 00 mov %eax,0x12880c
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),
10f104: 53 push %ebx
10f105: 53 push %ebx
10f106: 51 push %ecx
10f107: 6a 3c push $0x3c
10f109: e8 9a 90 ff ff call 1081a8 <calloc>
10f10e: a3 a0 87 12 00 mov %eax,0x1287a0
bdbuf_cache.buffer_min_count);
if (!bdbuf_cache.bds)
10f113: 83 c4 10 add $0x10,%esp
10f116: 85 c0 test %eax,%eax
10f118: 0f 84 3b 01 00 00 je 10f259 <rtems_bdbuf_init+0x331><== NEVER TAKEN
goto error;
/*
* Allocate the memory for the buffer descriptors.
*/
bdbuf_cache.groups = calloc (sizeof (rtems_bdbuf_group),
10f11e: 51 push %ecx
10f11f: 51 push %ecx
10f120: ff 35 0c 88 12 00 pushl 0x12880c
10f126: 6a 14 push $0x14
10f128: e8 7b 90 ff ff call 1081a8 <calloc>
10f12d: a3 10 88 12 00 mov %eax,0x128810
bdbuf_cache.group_count);
if (!bdbuf_cache.groups)
10f132: 83 c4 10 add $0x10,%esp
10f135: 85 c0 test %eax,%eax
10f137: 0f 84 1c 01 00 00 je 10f259 <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,
10f13d: 52 push %edx
10f13e: a1 88 0b 12 00 mov 0x120b88,%eax
10f143: 0f af 05 a8 87 12 00 imul 0x1287a8,%eax
10f14a: 50 push %eax
10f14b: 6a 20 push $0x20
10f14d: 68 a4 87 12 00 push $0x1287a4
10f152: e8 b9 34 00 00 call 112610 <rtems_memalign>
10f157: 83 c4 10 add $0x10,%esp
10f15a: 85 c0 test %eax,%eax
10f15c: 0f 85 f7 00 00 00 jne 10f259 <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,
10f162: 8b 35 10 88 12 00 mov 0x128810,%esi
bd = bdbuf_cache.bds, buffer = bdbuf_cache.buffers;
10f168: 8b 1d a0 87 12 00 mov 0x1287a0,%ebx
10f16e: 8b 3d a4 87 12 00 mov 0x1287a4,%edi
10f174: 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,
10f176: eb 4b jmp 10f1c3 <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;
10f178: c7 43 14 ff ff ff ff movl $0xffffffff,0x14(%ebx)
10f17f: c7 43 18 ff ff ff ff movl $0xffffffff,0x18(%ebx)
bd->group = group;
10f186: 89 73 2c mov %esi,0x2c(%ebx)
bd->buffer = buffer;
10f189: 89 7b 20 mov %edi,0x20(%ebx)
10f18c: 50 push %eax
10f18d: 50 push %eax
10f18e: 53 push %ebx
10f18f: 68 d0 87 12 00 push $0x1287d0
10f194: 89 4d e0 mov %ecx,-0x20(%ebp)
10f197: e8 20 cd ff ff call 10bebc <_Chain_Append>
rtems_chain_append (&bdbuf_cache.lru, &bd->link);
if ((b % bdbuf_cache.max_bds_per_group) ==
10f19c: 8b 4d e0 mov -0x20(%ebp),%ecx
10f19f: 89 c8 mov %ecx,%eax
10f1a1: 31 d2 xor %edx,%edx
10f1a3: f7 35 ac 87 12 00 divl 0x1287ac
10f1a9: a1 ac 87 12 00 mov 0x1287ac,%eax
10f1ae: 48 dec %eax
10f1af: 83 c4 10 add $0x10,%esp
10f1b2: 39 c2 cmp %eax,%edx
10f1b4: 75 03 jne 10f1b9 <rtems_bdbuf_init+0x291>
(bdbuf_cache.max_bds_per_group - 1))
group++;
10f1b6: 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)
10f1b9: 41 inc %ecx
10f1ba: 83 c3 3c add $0x3c,%ebx
10f1bd: 03 3d 88 0b 12 00 add 0x120b88,%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,
10f1c3: 3b 0d a8 87 12 00 cmp 0x1287a8,%ecx
10f1c9: 72 ad jb 10f178 <rtems_bdbuf_init+0x250>
(bdbuf_cache.max_bds_per_group - 1))
group++;
}
for (b = 0,
group = bdbuf_cache.groups,
10f1cb: a1 10 88 12 00 mov 0x128810,%eax
bd = bdbuf_cache.bds;
10f1d0: 8b 0d a0 87 12 00 mov 0x1287a0,%ecx
b < bdbuf_cache.group_count;
10f1d6: 8b 3d 0c 88 12 00 mov 0x12880c,%edi
b++,
group++,
bd += bdbuf_cache.max_bds_per_group)
{
group->bds_per_group = bdbuf_cache.max_bds_per_group;
10f1dc: 8b 1d ac 87 12 00 mov 0x1287ac,%ebx
group = bdbuf_cache.groups,
bd = bdbuf_cache.bds;
b < bdbuf_cache.group_count;
b++,
group++,
bd += bdbuf_cache.max_bds_per_group)
10f1e2: 6b f3 3c imul $0x3c,%ebx,%esi
10f1e5: 31 d2 xor %edx,%edx
if ((b % bdbuf_cache.max_bds_per_group) ==
(bdbuf_cache.max_bds_per_group - 1))
group++;
}
for (b = 0,
10f1e7: eb 0c jmp 10f1f5 <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;
10f1e9: 89 58 08 mov %ebx,0x8(%eax)
group->bdbuf = bd;
10f1ec: 89 48 10 mov %ecx,0x10(%eax)
for (b = 0,
group = bdbuf_cache.groups,
bd = bdbuf_cache.bds;
b < bdbuf_cache.group_count;
b++,
10f1ef: 42 inc %edx
group++,
10f1f0: 83 c0 14 add $0x14,%eax
bd += bdbuf_cache.max_bds_per_group)
10f1f3: 01 f1 add %esi,%ecx
if ((b % bdbuf_cache.max_bds_per_group) ==
(bdbuf_cache.max_bds_per_group - 1))
group++;
}
for (b = 0,
10f1f5: 39 fa cmp %edi,%edx
10f1f7: 72 f0 jb 10f1e9 <rtems_bdbuf_init+0x2c1>
/*
* Create and start swapout task. This task will create and manage the worker
* threads.
*/
bdbuf_cache.swapout_enabled = true;
10f1f9: c6 05 90 87 12 00 01 movb $0x1,0x128790
sc = rtems_task_create (rtems_build_name('B', 'S', 'W', 'P'),
bdbuf_config.swapout_priority ?
10f200: a1 70 0b 12 00 mov 0x120b70,%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'),
10f205: 85 c0 test %eax,%eax
10f207: 75 02 jne 10f20b <rtems_bdbuf_init+0x2e3><== ALWAYS TAKEN
10f209: b0 0f mov $0xf,%al <== NOT EXECUTED
10f20b: 56 push %esi
10f20c: 56 push %esi
10f20d: 68 8c 87 12 00 push $0x12878c
10f212: 6a 00 push $0x0
10f214: 68 00 04 00 00 push $0x400
10f219: 68 00 20 00 00 push $0x2000
10f21e: 50 push %eax
10f21f: 68 50 57 53 42 push $0x42535750
10f224: e8 f3 c4 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)
10f229: 83 c4 20 add $0x20,%esp
10f22c: 85 c0 test %eax,%eax
10f22e: 75 29 jne 10f259 <rtems_bdbuf_init+0x331><== NEVER TAKEN
goto error;
sc = rtems_task_start (bdbuf_cache.swapout,
10f230: 53 push %ebx
10f231: 68 8c 87 12 00 push $0x12878c
10f236: 68 76 fb 10 00 push $0x10fb76
10f23b: ff 35 8c 87 12 00 pushl 0x12878c
10f241: e8 fe c6 ff ff call 10b944 <rtems_task_start>
rtems_bdbuf_swapout_task,
(rtems_task_argument) &bdbuf_cache);
if (sc != RTEMS_SUCCESSFUL)
10f246: 83 c4 10 add $0x10,%esp
10f249: 85 c0 test %eax,%eax
10f24b: 75 0c jne 10f259 <rtems_bdbuf_init+0x331><== NEVER TAKEN
goto error;
rtems_bdbuf_unlock_cache ();
10f24d: e8 f7 f8 ff ff call 10eb49 <rtems_bdbuf_unlock_cache>
10f252: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
10f254: e9 99 00 00 00 jmp 10f2f2 <rtems_bdbuf_init+0x3ca>
error:
if (bdbuf_cache.swapout != 0)
10f259: a1 8c 87 12 00 mov 0x12878c,%eax <== NOT EXECUTED
10f25e: 85 c0 test %eax,%eax <== NOT EXECUTED
10f260: 74 0c je 10f26e <rtems_bdbuf_init+0x346><== NOT EXECUTED
rtems_task_delete (bdbuf_cache.swapout);
10f262: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10f265: 50 push %eax <== NOT EXECUTED
10f266: e8 e1 c5 ff ff call 10b84c <rtems_task_delete> <== NOT EXECUTED
10f26b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
free (bdbuf_cache.buffers);
10f26e: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10f271: ff 35 a4 87 12 00 pushl 0x1287a4 <== NOT EXECUTED
10f277: e8 0c 91 ff ff call 108388 <free> <== NOT EXECUTED
free (bdbuf_cache.groups);
10f27c: 59 pop %ecx <== NOT EXECUTED
10f27d: ff 35 10 88 12 00 pushl 0x128810 <== NOT EXECUTED
10f283: e8 00 91 ff ff call 108388 <free> <== NOT EXECUTED
free (bdbuf_cache.bds);
10f288: 5a pop %edx <== NOT EXECUTED
10f289: ff 35 a0 87 12 00 pushl 0x1287a0 <== NOT EXECUTED
10f28f: e8 f4 90 ff ff call 108388 <free> <== NOT EXECUTED
rtems_semaphore_delete (bdbuf_cache.buffer_waiters.sema);
10f294: 58 pop %eax <== NOT EXECUTED
10f295: ff 35 08 88 12 00 pushl 0x128808 <== NOT EXECUTED
10f29b: e8 70 c2 ff ff call 10b510 <rtems_semaphore_delete><== NOT EXECUTED
rtems_semaphore_delete (bdbuf_cache.access_waiters.sema);
10f2a0: 5f pop %edi <== NOT EXECUTED
10f2a1: ff 35 f8 87 12 00 pushl 0x1287f8 <== NOT EXECUTED
10f2a7: e8 64 c2 ff ff call 10b510 <rtems_semaphore_delete><== NOT EXECUTED
rtems_semaphore_delete (bdbuf_cache.transfer_waiters.sema);
10f2ac: 5e pop %esi <== NOT EXECUTED
10f2ad: ff 35 00 88 12 00 pushl 0x128800 <== NOT EXECUTED
10f2b3: e8 58 c2 ff ff call 10b510 <rtems_semaphore_delete><== NOT EXECUTED
rtems_semaphore_delete (bdbuf_cache.sync_lock);
10f2b8: 5b pop %ebx <== NOT EXECUTED
10f2b9: ff 35 b8 87 12 00 pushl 0x1287b8 <== NOT EXECUTED
10f2bf: e8 4c c2 ff ff call 10b510 <rtems_semaphore_delete><== NOT EXECUTED
if (bdbuf_cache.lock != 0)
10f2c4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10f2c7: 83 3d b4 87 12 00 00 cmpl $0x0,0x1287b4 <== NOT EXECUTED
10f2ce: 74 16 je 10f2e6 <rtems_bdbuf_init+0x3be><== NOT EXECUTED
{
rtems_bdbuf_unlock_cache ();
10f2d0: e8 74 f8 ff ff call 10eb49 <rtems_bdbuf_unlock_cache><== NOT EXECUTED
rtems_semaphore_delete (bdbuf_cache.lock);
10f2d5: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10f2d8: ff 35 b4 87 12 00 pushl 0x1287b4 <== NOT EXECUTED
10f2de: e8 2d c2 ff ff call 10b510 <rtems_semaphore_delete><== NOT EXECUTED
10f2e3: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
bdbuf_cache.initialised = false;
10f2e6: c6 05 14 88 12 00 00 movb $0x0,0x128814 <== NOT EXECUTED
10f2ed: b8 0d 00 00 00 mov $0xd,%eax <== NOT EXECUTED
return RTEMS_UNSATISFIED;
}
10f2f2: 8d 65 f4 lea -0xc(%ebp),%esp
10f2f5: 5b pop %ebx
10f2f6: 5e pop %esi
10f2f7: 5f pop %edi
10f2f8: c9 leave
10f2f9: c3 ret
0010e9ac <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)
{
10e9ac: 55 push %ebp
10e9ad: 89 e5 mov %esp,%ebp
10e9af: 53 push %ebx
10e9b0: 83 ec 08 sub $0x8,%esp
10e9b3: 89 d3 mov %edx,%ebx
rtems_status_code sc = rtems_semaphore_obtain (lock,
10e9b5: 6a 00 push $0x0
10e9b7: 6a 00 push $0x0
10e9b9: 50 push %eax
10e9ba: e8 e1 cb ff ff call 10b5a0 <rtems_semaphore_obtain>
RTEMS_WAIT,
RTEMS_NO_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
10e9bf: 83 c4 10 add $0x10,%esp
10e9c2: 85 c0 test %eax,%eax
10e9c4: 74 09 je 10e9cf <rtems_bdbuf_lock+0x23> <== ALWAYS TAKEN
rtems_fatal_error_occurred (fatal_error_code);
10e9c6: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10e9c9: 53 push %ebx <== NOT EXECUTED
10e9ca: e8 1d d1 ff ff call 10baec <rtems_fatal_error_occurred><== NOT EXECUTED
}
10e9cf: 8b 5d fc mov -0x4(%ebp),%ebx
10e9d2: c9 leave
10e9d3: c3 ret
0010eb97 <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)
{
10eb97: 55 push %ebp
10eb98: 89 e5 mov %esp,%ebp
10eb9a: 57 push %edi
10eb9b: 56 push %esi
10eb9c: 53 push %ebx
10eb9d: 83 ec 2c sub $0x2c,%esp
10eba0: 89 4d e0 mov %ecx,-0x20(%ebp)
10eba3: 8b 75 0c mov 0xc(%ebp),%esi
10eba6: 8b 7d 10 mov 0x10(%ebp),%edi
rtems_disk_device *dd = NULL;
if (!bdbuf_cache.initialised)
10eba9: b9 16 00 00 00 mov $0x16,%ecx
10ebae: 80 3d 14 88 12 00 00 cmpb $0x0,0x128814
10ebb5: 0f 84 94 00 00 00 je 10ec4f <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);
10ebbb: 51 push %ecx
10ebbc: 51 push %ecx
10ebbd: 52 push %edx
10ebbe: 50 push %eax
10ebbf: e8 1d 8a ff ff call 1075e1 <rtems_disk_obtain>
10ebc4: 89 c3 mov %eax,%ebx
if (dd == NULL)
10ebc6: 83 c4 10 add $0x10,%esp
10ebc9: b9 04 00 00 00 mov $0x4,%ecx
10ebce: 85 c0 test %eax,%eax
10ebd0: 74 7d je 10ec4f <rtems_bdbuf_obtain_disk+0xb8><== NEVER TAKEN
return RTEMS_INVALID_ID;
*dd_ptr = dd;
10ebd2: 8b 45 08 mov 0x8(%ebp),%eax
10ebd5: 89 18 mov %ebx,(%eax)
if (media_block_ptr != NULL)
10ebd7: 85 f6 test %esi,%esi
10ebd9: 74 2b je 10ec06 <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)
10ebdb: 8b 45 e0 mov -0x20(%ebp),%eax
10ebde: f7 63 20 mull 0x20(%ebx)
10ebe1: 89 45 d0 mov %eax,-0x30(%ebp)
10ebe4: 89 55 d4 mov %edx,-0x2c(%ebp)
10ebe7: 8b 43 24 mov 0x24(%ebx),%eax
10ebea: 31 d2 xor %edx,%edx
10ebec: 52 push %edx
10ebed: 50 push %eax
10ebee: ff 75 d4 pushl -0x2c(%ebp)
10ebf1: ff 75 d0 pushl -0x30(%ebp)
10ebf4: e8 37 15 01 00 call 120130 <__udivdi3>
10ebf9: 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)
10ebfc: 3b 43 1c cmp 0x1c(%ebx),%eax
10ebff: 73 37 jae 10ec38 <rtems_bdbuf_obtain_disk+0xa1><== NEVER TAKEN
{
rtems_disk_release(dd);
return RTEMS_INVALID_NUMBER;
}
*media_block_ptr = mb + dd->start;
10ec01: 03 43 18 add 0x18(%ebx),%eax
10ec04: 89 06 mov %eax,(%esi)
}
if (bds_per_group_ptr != NULL)
10ec06: 31 c9 xor %ecx,%ecx
10ec08: 85 ff test %edi,%edi
10ec0a: 74 43 je 10ec4f <rtems_bdbuf_obtain_disk+0xb8>
{
size_t bds_per_group = rtems_bdbuf_bds_per_group (dd->block_size);
10ec0c: 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)
10ec0f: 3b 05 8c 0b 12 00 cmp 0x120b8c,%eax
10ec15: 77 21 ja 10ec38 <rtems_bdbuf_obtain_disk+0xa1><== NEVER TAKEN
return 0;
bufs_per_size = ((size - 1) / bdbuf_config.buffer_min) + 1;
10ec17: 48 dec %eax
10ec18: 31 d2 xor %edx,%edx
10ec1a: f7 35 88 0b 12 00 divl 0x120b88
10ec20: 40 inc %eax
10ec21: b1 01 mov $0x1,%cl
10ec23: eb 02 jmp 10ec27 <rtems_bdbuf_obtain_disk+0x90>
for (bds_per_size = 1;
bds_per_size < bufs_per_size;
bds_per_size <<= 1)
10ec25: 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;
10ec27: 39 c1 cmp %eax,%ecx
10ec29: 72 fa jb 10ec25 <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;
10ec2b: a1 ac 87 12 00 mov 0x1287ac,%eax
10ec30: 31 d2 xor %edx,%edx
10ec32: 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)
10ec34: 85 c0 test %eax,%eax
10ec36: 75 13 jne 10ec4b <rtems_bdbuf_obtain_disk+0xb4><== ALWAYS TAKEN
{
rtems_disk_release (dd);
10ec38: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10ec3b: 53 push %ebx <== NOT EXECUTED
10ec3c: e8 27 8b ff ff call 107768 <rtems_disk_release> <== NOT EXECUTED
10ec41: b9 0a 00 00 00 mov $0xa,%ecx <== NOT EXECUTED
return RTEMS_INVALID_NUMBER;
10ec46: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10ec49: eb 04 jmp 10ec4f <rtems_bdbuf_obtain_disk+0xb8><== NOT EXECUTED
}
*bds_per_group_ptr = bds_per_group;
10ec4b: 89 07 mov %eax,(%edi)
10ec4d: 31 c9 xor %ecx,%ecx
}
return RTEMS_SUCCESSFUL;
}
10ec4f: 89 c8 mov %ecx,%eax
10ec51: 8d 65 f4 lea -0xc(%ebp),%esp
10ec54: 5b pop %ebx
10ec55: 5e pop %esi
10ec56: 5f pop %edi
10ec57: c9 leave
10ec58: c3 ret
0010f7a3 <rtems_bdbuf_purge>:
}
}
static void
rtems_bdbuf_purge (rtems_bdbuf_purge_compare compare, dev_t dev)
{
10f7a3: 55 push %ebp
10f7a4: 89 e5 mov %esp,%ebp
10f7a6: 57 push %edi
10f7a7: 56 push %esi
10f7a8: 53 push %ebx
10f7a9: 81 ec ac 00 00 00 sub $0xac,%esp
10f7af: 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);
10f7b5: 8d 7d dc lea -0x24(%ebp),%edi
10f7b8: 8d 45 e0 lea -0x20(%ebp),%eax
10f7bb: 89 45 dc mov %eax,-0x24(%ebp)
the_chain->permanent_null = NULL;
10f7be: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp)
the_chain->last = _Chain_Head(the_chain);
10f7c5: 89 7d e4 mov %edi,-0x1c(%ebp)
rtems_chain_control purge_list;
rtems_chain_initialize_empty (&purge_list);
rtems_bdbuf_lock_cache ();
10f7c8: 89 95 50 ff ff ff mov %edx,-0xb0(%ebp)
10f7ce: 89 8d 4c ff ff ff mov %ecx,-0xb4(%ebp)
10f7d4: e8 fb f1 ff ff call 10e9d4 <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;
10f7d9: 8b 1d cc 87 12 00 mov 0x1287cc,%ebx
*prev = NULL;
10f7df: c7 85 5c ff ff ff 00 movl $0x0,-0xa4(%ebp)
10f7e6: 00 00 00
10f7e9: 8d b5 5c ff ff ff lea -0xa4(%ebp),%esi
10f7ef: 8b 95 50 ff ff ff mov -0xb0(%ebp),%edx
10f7f5: 8b 8d 4c ff ff ff mov -0xb4(%ebp),%ecx
10f7fb: e9 ea 00 00 00 jmp 10f8ea <rtems_bdbuf_purge+0x147>
while (cur != NULL)
{
if ((*compare) (cur->dev, dev))
10f800: 51 push %ecx
10f801: 52 push %edx
10f802: ff 73 18 pushl 0x18(%ebx)
10f805: ff 73 14 pushl 0x14(%ebx)
10f808: 89 95 50 ff ff ff mov %edx,-0xb0(%ebp)
10f80e: 89 8d 4c ff ff ff mov %ecx,-0xb4(%ebp)
10f814: ff 95 54 ff ff ff call *-0xac(%ebp)
10f81a: 83 c4 10 add $0x10,%esp
10f81d: 84 c0 test %al,%al
10f81f: 8b 95 50 ff ff ff mov -0xb0(%ebp),%edx
10f825: 8b 8d 4c ff ff ff mov -0xb4(%ebp),%ecx
10f82b: 0f 84 85 00 00 00 je 10f8b6 <rtems_bdbuf_purge+0x113><== NEVER TAKEN
{
switch (cur->state)
10f831: 8b 43 24 mov 0x24(%ebx),%eax
10f834: 83 f8 0a cmp $0xa,%eax
10f837: 77 70 ja 10f8a9 <rtems_bdbuf_purge+0x106><== NEVER TAKEN
10f839: ff 24 85 c8 26 12 00 jmp *0x1226c8(,%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);
10f840: b8 fc 87 12 00 mov $0x1287fc,%eax
10f845: 89 95 50 ff ff ff mov %edx,-0xb0(%ebp)
10f84b: 89 8d 4c ff ff ff mov %ecx,-0xb4(%ebp)
10f851: e8 91 f1 ff ff call 10e9e7 <rtems_bdbuf_wake>
10f856: 8b 8d 4c ff ff ff mov -0xb4(%ebp),%ecx
10f85c: 8b 95 50 ff ff ff mov -0xb0(%ebp),%edx
}
static void
rtems_bdbuf_group_release (rtems_bdbuf_buffer *bd)
{
--bd->group->users;
10f862: 8b 43 2c mov 0x2c(%ebx),%eax
10f865: ff 48 0c decl 0xc(%eax)
*/
RTEMS_INLINE_ROUTINE void rtems_chain_extract(
rtems_chain_node *the_node
)
{
_Chain_Extract( the_node );
10f868: 83 ec 0c sub $0xc,%esp
10f86b: 53 push %ebx
10f86c: 89 95 50 ff ff ff mov %edx,-0xb0(%ebp)
10f872: 89 8d 4c ff ff ff mov %ecx,-0xb4(%ebp)
10f878: e8 63 c6 ff ff call 10bee0 <_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 );
10f87d: 58 pop %eax
10f87e: 5a pop %edx
10f87f: 53 push %ebx
10f880: 57 push %edi
10f881: e8 36 c6 ff ff call 10bebc <_Chain_Append>
10f886: 83 c4 10 add $0x10,%esp
10f889: 8b 95 50 ff ff ff mov -0xb0(%ebp),%edx
10f88f: 8b 8d 4c ff ff ff mov -0xb4(%ebp),%ecx
10f895: eb 1f jmp 10f8b6 <rtems_bdbuf_purge+0x113>
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
10f897: c7 43 24 0a 00 00 00 movl $0xa,0x24(%ebx)
10f89e: eb 16 jmp 10f8b6 <rtems_bdbuf_purge+0x113>
10f8a0: c7 43 24 06 00 00 00 movl $0x6,0x24(%ebx)
10f8a7: eb 0d jmp 10f8b6 <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);
10f8a9: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10f8ac: 68 01 00 00 42 push $0x42000001 <== NOT EXECUTED
10f8b1: e8 36 c2 ff ff call 10baec <rtems_fatal_error_occurred><== NOT EXECUTED
}
}
if (cur->avl.left != NULL)
10f8b6: 83 7b 08 00 cmpl $0x0,0x8(%ebx)
10f8ba: 74 0a je 10f8c6 <rtems_bdbuf_purge+0x123><== ALWAYS TAKEN
{
/* Left */
++prev;
10f8bc: 83 c6 04 add $0x4,%esi <== NOT EXECUTED
*prev = cur;
10f8bf: 89 1e mov %ebx,(%esi) <== NOT EXECUTED
cur = cur->avl.left;
10f8c1: 8b 43 08 mov 0x8(%ebx),%eax <== NOT EXECUTED
10f8c4: eb 22 jmp 10f8e8 <rtems_bdbuf_purge+0x145><== NOT EXECUTED
}
else if (cur->avl.right != NULL)
10f8c6: 83 7b 0c 00 cmpl $0x0,0xc(%ebx)
10f8ca: 74 0f je 10f8db <rtems_bdbuf_purge+0x138><== ALWAYS TAKEN
{
/* Right */
++prev;
10f8cc: 83 c6 04 add $0x4,%esi <== NOT EXECUTED
*prev = cur;
10f8cf: 89 1e mov %ebx,(%esi) <== NOT EXECUTED
cur = cur->avl.right;
10f8d1: 8b 43 0c mov 0xc(%ebx),%eax <== NOT EXECUTED
10f8d4: eb 12 jmp 10f8e8 <rtems_bdbuf_purge+0x145><== NOT EXECUTED
{
while (*prev != NULL && cur == (*prev)->avl.right)
{
/* Up */
cur = *prev;
--prev;
10f8d6: 83 ee 04 sub $0x4,%esi <== NOT EXECUTED
10f8d9: 89 c3 mov %eax,%ebx <== NOT EXECUTED
*prev = cur;
cur = cur->avl.right;
}
else
{
while (*prev != NULL && cur == (*prev)->avl.right)
10f8db: 8b 06 mov (%esi),%eax
10f8dd: 85 c0 test %eax,%eax
10f8df: 74 07 je 10f8e8 <rtems_bdbuf_purge+0x145><== ALWAYS TAKEN
10f8e1: 3b 58 0c cmp 0xc(%eax),%ebx <== NOT EXECUTED
10f8e4: 74 f0 je 10f8d6 <rtems_bdbuf_purge+0x133><== NOT EXECUTED
10f8e6: eb 48 jmp 10f930 <rtems_bdbuf_purge+0x18d><== NOT EXECUTED
10f8e8: 89 c3 mov %eax,%ebx
rtems_bdbuf_buffer **prev = stack;
rtems_bdbuf_buffer *cur = bdbuf_cache.tree;
*prev = NULL;
while (cur != NULL)
10f8ea: 85 db test %ebx,%ebx
10f8ec: 0f 85 0e ff ff ff jne 10f800 <rtems_bdbuf_purge+0x5d>
*/
RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get(
rtems_chain_control *the_chain
)
{
return _Chain_Get( the_chain );
10f8f2: 8d 75 dc lea -0x24(%ebp),%esi
10f8f5: eb 0e jmp 10f905 <rtems_bdbuf_purge+0x162>
while ((node = rtems_chain_get (purge_list)) != NULL)
{
rtems_bdbuf_buffer *bd = (rtems_bdbuf_buffer *) node;
if (bd->waiters == 0)
10f8f7: 8b 50 28 mov 0x28(%eax),%edx
10f8fa: 85 d2 test %edx,%edx
10f8fc: 75 02 jne 10f900 <rtems_bdbuf_purge+0x15d>
10f8fe: b3 01 mov $0x1,%bl
wake_buffer_waiters = true;
rtems_bdbuf_discard_buffer (bd);
10f900: e8 1e fd ff ff call 10f623 <rtems_bdbuf_discard_buffer>
10f905: 83 ec 0c sub $0xc,%esp
10f908: 56 push %esi
10f909: e8 ea c5 ff ff call 10bef8 <_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)
10f90e: 83 c4 10 add $0x10,%esp
10f911: 85 c0 test %eax,%eax
10f913: 75 e2 jne 10f8f7 <rtems_bdbuf_purge+0x154>
wake_buffer_waiters = true;
rtems_bdbuf_discard_buffer (bd);
}
if (wake_buffer_waiters)
10f915: 84 db test %bl,%bl
10f917: 74 0a je 10f923 <rtems_bdbuf_purge+0x180>
rtems_bdbuf_wake (&bdbuf_cache.buffer_waiters);
10f919: b8 04 88 12 00 mov $0x128804,%eax
10f91e: e8 c4 f0 ff ff call 10e9e7 <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 ();
10f923: e8 21 f2 ff ff call 10eb49 <rtems_bdbuf_unlock_cache>
}
10f928: 8d 65 f4 lea -0xc(%ebp),%esp
10f92b: 5b pop %ebx
10f92c: 5e pop %esi
10f92d: 5f pop %edi
10f92e: c9 leave
10f92f: c3 ret
cur = *prev;
--prev;
}
if (*prev != NULL)
/* Right */
cur = (*prev)->avl.right;
10f930: 8b 40 0c mov 0xc(%eax),%eax <== NOT EXECUTED
10f933: eb b3 jmp 10f8e8 <rtems_bdbuf_purge+0x145><== NOT EXECUTED
0010e99e <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)
{
10e99e: 55 push %ebp <== NOT EXECUTED
10e99f: 89 e5 mov %esp,%ebp <== NOT EXECUTED
dev_t device
)
{
union __rtems_dev_t temp;
temp.device = device;
10e9a1: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
10e9a4: 39 45 08 cmp %eax,0x8(%ebp) <== NOT EXECUTED
10e9a7: 0f 94 c0 sete %al <== NOT EXECUTED
return rtems_filesystem_dev_major_t (a) == rtems_filesystem_dev_major_t (b);
}
10e9aa: c9 leave <== NOT EXECUTED
10e9ab: c3 ret <== NOT EXECUTED
0010f935 <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)
{
10f935: 55 push %ebp <== NOT EXECUTED
10f936: 89 e5 mov %esp,%ebp <== NOT EXECUTED
10f938: 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);
10f93b: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
10f93e: 31 c9 xor %ecx,%ecx <== NOT EXECUTED
10f940: b8 9e e9 10 00 mov $0x10e99e,%eax <== NOT EXECUTED
}
10f945: 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);
10f946: e9 58 fe ff ff jmp 10f7a3 <rtems_bdbuf_purge> <== NOT EXECUTED
00110594 <rtems_bdbuf_read>:
rtems_status_code
rtems_bdbuf_read (dev_t dev,
rtems_blkdev_bnum block,
rtems_bdbuf_buffer **bd_ptr)
{
110594: 55 push %ebp
110595: 89 e5 mov %esp,%ebp
110597: 57 push %edi
110598: 56 push %esi
110599: 53 push %ebx
11059a: 83 ec 50 sub $0x50,%esp
rtems_status_code sc = RTEMS_SUCCESSFUL;
rtems_disk_device *dd = NULL;
11059d: 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;
1105a4: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp)
size_t bds_per_group = 0;
1105ab: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp)
sc = rtems_bdbuf_obtain_disk (dev, block, &dd, &media_block, &bds_per_group);
1105b2: 8d 45 dc lea -0x24(%ebp),%eax
1105b5: 50 push %eax
1105b6: 8d 45 e0 lea -0x20(%ebp),%eax
1105b9: 50 push %eax
1105ba: 8d 45 e4 lea -0x1c(%ebp),%eax
1105bd: 50 push %eax
1105be: 8b 4d 10 mov 0x10(%ebp),%ecx
1105c1: 8b 45 08 mov 0x8(%ebp),%eax
1105c4: 8b 55 0c mov 0xc(%ebp),%edx
1105c7: e8 cb e5 ff ff call 10eb97 <rtems_bdbuf_obtain_disk>
1105cc: 89 45 bc mov %eax,-0x44(%ebp)
if (sc != RTEMS_SUCCESSFUL)
1105cf: 83 c4 10 add $0x10,%esp
1105d2: 85 c0 test %eax,%eax
1105d4: 0f 85 f6 01 00 00 jne 1107d0 <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) +
1105da: 8b 35 68 0b 12 00 mov 0x120b68,%esi
1105e0: 46 inc %esi
1105e1: 89 f0 mov %esi,%eax
1105e3: c1 e0 04 shl $0x4,%eax
1105e6: 83 c0 30 add $0x30,%eax
1105e9: 29 c4 sub %eax,%esp
1105eb: 8d 5c 24 0f lea 0xf(%esp),%ebx
1105ef: 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 ();
1105f2: e8 dd e3 ff ff call 10e9d4 <rtems_bdbuf_lock_cache>
rtems_bdbuf_create_read_request (dd, media_block, bds_per_group, req, &bd);
1105f7: 8b 45 dc mov -0x24(%ebp),%eax
1105fa: 89 45 b8 mov %eax,-0x48(%ebp)
1105fd: 8b 55 e0 mov -0x20(%ebp),%edx
110600: 89 55 d4 mov %edx,-0x2c(%ebp)
110603: 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;
110606: 8b 41 20 mov 0x20(%ecx),%eax
110609: 89 45 cc mov %eax,-0x34(%ebp)
11060c: 31 d2 xor %edx,%edx
11060e: f7 71 24 divl 0x24(%ecx)
110611: 89 45 b4 mov %eax,-0x4c(%ebp)
dev_t dev = dd->dev;
110614: 8b 11 mov (%ecx),%edx
110616: 89 55 c4 mov %edx,-0x3c(%ebp)
110619: 8b 41 04 mov 0x4(%ecx),%eax
11061c: 89 45 c0 mov %eax,-0x40(%ebp)
11061f: 8b 51 1c mov 0x1c(%ecx),%edx
110622: 8b 41 18 mov 0x18(%ecx),%eax
110625: 01 c2 add %eax,%edx
110627: 8b 45 d4 mov -0x2c(%ebp),%eax
11062a: 29 c2 sub %eax,%edx
11062c: 89 55 d0 mov %edx,-0x30(%ebp)
11062f: 39 f2 cmp %esi,%edx
110631: 76 03 jbe 110636 <rtems_bdbuf_read+0xa2>
110633: 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;
110636: c7 03 00 00 00 00 movl $0x0,(%ebx)
req->req_done = rtems_bdbuf_transfer_done;
11063c: c7 43 04 44 ed 10 00 movl $0x10ed44,0x4(%ebx)
req->done_arg = req;
110643: 89 5b 08 mov %ebx,0x8(%ebx)
req->io_task = rtems_task_self ();
110646: e8 f1 23 00 00 call 112a3c <rtems_task_self>
11064b: 89 43 14 mov %eax,0x14(%ebx)
req->status = RTEMS_RESOURCE_IN_USE;
11064e: c7 43 0c 0c 00 00 00 movl $0xc,0xc(%ebx)
req->bufnum = 0;
110655: c7 43 10 00 00 00 00 movl $0x0,0x10(%ebx)
bd = rtems_bdbuf_get_buffer_for_access (dev, media_block, bds_per_group);
11065c: 83 ec 0c sub $0xc,%esp
11065f: ff 75 b8 pushl -0x48(%ebp)
110662: 8b 4d d4 mov -0x2c(%ebp),%ecx
110665: 8b 45 c4 mov -0x3c(%ebp),%eax
110668: 8b 55 c0 mov -0x40(%ebp),%edx
11066b: e8 d8 fc ff ff call 110348 <rtems_bdbuf_get_buffer_for_access>
110670: 89 c6 mov %eax,%esi
*bd_ptr = bd;
req->bufs [0].user = bd;
110672: 89 43 24 mov %eax,0x24(%ebx)
req->bufs [0].block = media_block;
110675: 8b 55 d4 mov -0x2c(%ebp),%edx
110678: 89 53 18 mov %edx,0x18(%ebx)
req->bufs [0].length = block_size;
11067b: 8b 45 cc mov -0x34(%ebp),%eax
11067e: 89 43 1c mov %eax,0x1c(%ebx)
req->bufs [0].buffer = bd->buffer;
110681: 8b 46 20 mov 0x20(%esi),%eax
110684: 89 43 20 mov %eax,0x20(%ebx)
if (rtems_bdbuf_tracer)
rtems_bdbuf_show_users ("read", bd);
switch (bd->state)
110687: 8b 46 24 mov 0x24(%esi),%eax
11068a: 83 c4 10 add $0x10,%esp
11068d: 83 f8 02 cmp $0x2,%eax
110690: 0f 84 c8 00 00 00 je 11075e <rtems_bdbuf_read+0x1ca>
110696: 83 f8 07 cmp $0x7,%eax
110699: 0f 84 bf 00 00 00 je 11075e <rtems_bdbuf_read+0x1ca>
11069f: 48 dec %eax
1106a0: 75 15 jne 1106b7 <rtems_bdbuf_read+0x123><== NEVER TAKEN
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
1106a2: c7 46 24 09 00 00 00 movl $0x9,0x24(%esi)
1106a9: 89 df mov %ebx,%edi
1106ab: c7 45 c8 01 00 00 00 movl $0x1,-0x38(%ebp)
1106b2: e9 95 00 00 00 jmp 11074c <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);
1106b7: 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);
1106ba: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1106bd: c1 e0 10 shl $0x10,%eax <== NOT EXECUTED
1106c0: 0d 1d 00 00 42 or $0x4200001d,%eax <== NOT EXECUTED
1106c5: e9 ee 00 00 00 jmp 1107b8 <rtems_bdbuf_read+0x224><== NOT EXECUTED
break;
}
while (transfer_index < transfer_count)
{
media_block += media_block_count;
1106ca: 8b 55 b4 mov -0x4c(%ebp),%edx
1106cd: 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;
1106d0: a1 cc 87 12 00 mov 0x1287cc,%eax
1106d5: eb 14 jmp 1106eb <rtems_bdbuf_read+0x157>
while ((p != NULL) && ((p->dev != dev) || (p->block != block)))
{
if ((p->dev < dev) || ((p->dev == dev) && (p->block < block)))
1106d7: 3b 4d c0 cmp -0x40(%ebp),%ecx <== NOT EXECUTED
1106da: 72 07 jb 1106e3 <rtems_bdbuf_read+0x14f><== NOT EXECUTED
1106dc: 77 0a ja 1106e8 <rtems_bdbuf_read+0x154><== NOT EXECUTED
1106de: 3b 55 c4 cmp -0x3c(%ebp),%edx <== NOT EXECUTED
1106e1: 73 05 jae 1106e8 <rtems_bdbuf_read+0x154><== NEVER TAKEN
{
p = p->avl.right;
1106e3: 8b 40 0c mov 0xc(%eax),%eax
1106e6: eb 03 jmp 1106eb <rtems_bdbuf_read+0x157>
}
else
{
p = p->avl.left;
1106e8: 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)))
1106eb: 85 c0 test %eax,%eax
1106ed: 74 1a je 110709 <rtems_bdbuf_read+0x175>
1106ef: 8b 50 14 mov 0x14(%eax),%edx
1106f2: 8b 48 18 mov 0x18(%eax),%ecx
1106f5: 3b 4d c0 cmp -0x40(%ebp),%ecx
1106f8: 75 dd jne 1106d7 <rtems_bdbuf_read+0x143><== NEVER TAKEN
1106fa: 3b 55 c4 cmp -0x3c(%ebp),%edx
1106fd: 75 d8 jne 1106d7 <rtems_bdbuf_read+0x143><== NEVER TAKEN
1106ff: 8b 55 d4 mov -0x2c(%ebp),%edx
110702: 39 50 1c cmp %edx,0x1c(%eax)
110705: 75 da jne 1106e1 <rtems_bdbuf_read+0x14d><== ALWAYS TAKEN
110707: eb 4f jmp 110758 <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);
110709: 83 ec 0c sub $0xc,%esp
11070c: ff 75 b8 pushl -0x48(%ebp)
11070f: 8b 4d d4 mov -0x2c(%ebp),%ecx
110712: 8b 45 c4 mov -0x3c(%ebp),%eax
110715: 8b 55 c0 mov -0x40(%ebp),%edx
110718: e8 fd f8 ff ff call 11001a <rtems_bdbuf_get_buffer_from_lru_list>
11071d: 83 c7 10 add $0x10,%edi
if (bd != NULL)
110720: 83 c4 10 add $0x10,%esp
110723: 85 c0 test %eax,%eax
110725: 74 31 je 110758 <rtems_bdbuf_read+0x1c4><== ALWAYS TAKEN
}
static void
rtems_bdbuf_group_obtain (rtems_bdbuf_buffer *bd)
{
++bd->group->users;
110727: 8b 50 2c mov 0x2c(%eax),%edx <== NOT EXECUTED
11072a: 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;
11072d: 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;
110734: 89 47 24 mov %eax,0x24(%edi) <== NOT EXECUTED
req->bufs [transfer_index].block = media_block;
110737: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED
11073a: 89 57 18 mov %edx,0x18(%edi) <== NOT EXECUTED
req->bufs [transfer_index].length = block_size;
11073d: 8b 55 cc mov -0x34(%ebp),%edx <== NOT EXECUTED
110740: 89 57 1c mov %edx,0x1c(%edi) <== NOT EXECUTED
req->bufs [transfer_index].buffer = bd->buffer;
110743: 8b 40 20 mov 0x20(%eax),%eax <== NOT EXECUTED
110746: 89 47 20 mov %eax,0x20(%edi) <== NOT EXECUTED
if (rtems_bdbuf_tracer)
rtems_bdbuf_show_users ("read-ahead", bd);
++transfer_index;
110749: 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)
11074c: 8b 45 d0 mov -0x30(%ebp),%eax
11074f: 39 45 c8 cmp %eax,-0x38(%ebp)
110752: 0f 82 72 ff ff ff jb 1106ca <rtems_bdbuf_read+0x136>
rtems_bdbuf_show_users ("read-ahead", bd);
++transfer_index;
}
req->bufnum = transfer_index;
110758: 8b 55 c8 mov -0x38(%ebp),%edx
11075b: 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)
11075e: 83 7b 10 00 cmpl $0x0,0x10(%ebx)
110762: 74 25 je 110789 <rtems_bdbuf_read+0x1f5>
{
sc = rtems_bdbuf_execute_transfer_request (dd, req, true);
110764: b9 01 00 00 00 mov $0x1,%ecx
110769: 89 da mov %ebx,%edx
11076b: 8b 45 e4 mov -0x1c(%ebp),%eax
11076e: e8 ef f1 ff ff call 10f962 <rtems_bdbuf_execute_transfer_request>
if (sc == RTEMS_SUCCESSFUL)
110773: 85 c0 test %eax,%eax
110775: 75 64 jne 1107db <rtems_bdbuf_read+0x247>
110777: 83 ec 0c sub $0xc,%esp
11077a: 56 push %esi
11077b: e8 60 b7 ff ff call 10bee0 <_Chain_Extract>
}
static void
rtems_bdbuf_group_obtain (rtems_bdbuf_buffer *bd)
{
++bd->group->users;
110780: 8b 46 2c mov 0x2c(%esi),%eax
110783: ff 40 0c incl 0xc(%eax)
110786: 83 c4 10 add $0x10,%esp
}
}
if (sc == RTEMS_SUCCESSFUL)
{
switch (bd->state)
110789: 8b 46 24 mov 0x24(%esi),%eax
11078c: 83 f8 02 cmp $0x2,%eax
11078f: 74 07 je 110798 <rtems_bdbuf_read+0x204>
110791: 83 f8 07 cmp $0x7,%eax
110794: 75 14 jne 1107aa <rtems_bdbuf_read+0x216><== NEVER TAKEN
110796: eb 09 jmp 1107a1 <rtems_bdbuf_read+0x20d>
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
110798: c7 46 24 03 00 00 00 movl $0x3,0x24(%esi)
11079f: eb 1d jmp 1107be <rtems_bdbuf_read+0x22a>
1107a1: c7 46 24 04 00 00 00 movl $0x4,0x24(%esi)
1107a8: eb 14 jmp 1107be <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);
1107aa: 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);
1107ad: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1107b0: c1 e0 10 shl $0x10,%eax <== NOT EXECUTED
1107b3: 0d 02 00 00 42 or $0x42000002,%eax <== NOT EXECUTED
1107b8: 50 push %eax <== NOT EXECUTED
1107b9: e8 2e b3 ff ff call 10baec <rtems_fatal_error_occurred><== NOT EXECUTED
{
rtems_bdbuf_show_users ("read", bd);
rtems_bdbuf_show_usage ();
}
*bd_ptr = bd;
1107be: 8b 45 14 mov 0x14(%ebp),%eax
1107c1: 89 30 mov %esi,(%eax)
}
else
*bd_ptr = NULL;
rtems_bdbuf_unlock_cache ();
1107c3: e8 81 e3 ff ff call 10eb49 <rtems_bdbuf_unlock_cache>
rtems_bdbuf_release_disk (dd);
1107c8: 8b 45 e4 mov -0x1c(%ebp),%eax
1107cb: e8 89 e4 ff ff call 10ec59 <rtems_bdbuf_release_disk>
return sc;
}
1107d0: 8b 45 bc mov -0x44(%ebp),%eax
1107d3: 8d 65 f4 lea -0xc(%ebp),%esp
1107d6: 5b pop %ebx
1107d7: 5e pop %esi
1107d8: 5f pop %edi
1107d9: c9 leave
1107da: c3 ret
}
*bd_ptr = bd;
}
else
*bd_ptr = NULL;
1107db: 8b 55 14 mov 0x14(%ebp),%edx
1107de: c7 02 00 00 00 00 movl $0x0,(%edx)
1107e4: 89 45 bc mov %eax,-0x44(%ebp)
1107e7: eb da jmp 1107c3 <rtems_bdbuf_read+0x22f>
0010f6f7 <rtems_bdbuf_release>:
return RTEMS_SUCCESSFUL;
}
rtems_status_code
rtems_bdbuf_release (rtems_bdbuf_buffer *bd)
{
10f6f7: 55 push %ebp
10f6f8: 89 e5 mov %esp,%ebp
10f6fa: 53 push %ebx
10f6fb: 83 ec 04 sub $0x4,%esp
10f6fe: 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)
10f701: 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)
10f706: 80 3d 14 88 12 00 00 cmpb $0x0,0x128814
10f70d: 0f 84 8b 00 00 00 je 10f79e <rtems_bdbuf_release+0xa7><== NEVER TAKEN
return RTEMS_NOT_CONFIGURED;
if (bd == NULL)
10f713: b0 09 mov $0x9,%al
10f715: 85 db test %ebx,%ebx
10f717: 0f 84 81 00 00 00 je 10f79e <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();
10f71d: e8 b2 f2 ff ff call 10e9d4 <rtems_bdbuf_lock_cache>
sc = rtems_bdbuf_check_bd_and_lock_cache (bd, "release");
if (sc != RTEMS_SUCCESSFUL)
return sc;
switch (bd->state)
10f722: 8b 43 24 mov 0x24(%ebx),%eax
10f725: 83 f8 04 cmp $0x4,%eax
10f728: 74 50 je 10f77a <rtems_bdbuf_release+0x83>
10f72a: 77 07 ja 10f733 <rtems_bdbuf_release+0x3c>
10f72c: 83 f8 03 cmp $0x3,%eax
10f72f: 75 52 jne 10f783 <rtems_bdbuf_release+0x8c><== NEVER TAKEN
10f731: eb 07 jmp 10f73a <rtems_bdbuf_release+0x43>
10f733: 83 f8 06 cmp $0x6,%eax
10f736: 77 4b ja 10f783 <rtems_bdbuf_release+0x8c><== NEVER TAKEN
10f738: eb 37 jmp 10f771 <rtems_bdbuf_release+0x7a>
}
static void
rtems_bdbuf_group_release (rtems_bdbuf_buffer *bd)
{
--bd->group->users;
10f73a: 8b 43 2c mov 0x2c(%ebx),%eax
10f73d: ff 48 0c decl 0xc(%eax)
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
10f740: 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 );
10f747: 51 push %ecx
10f748: 51 push %ecx
10f749: 53 push %ebx
10f74a: 68 d0 87 12 00 push $0x1287d0
10f74f: e8 68 c7 ff ff call 10bebc <_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)
10f754: 8b 43 28 mov 0x28(%ebx),%eax
10f757: 83 c4 10 add $0x10,%esp
10f75a: 85 c0 test %eax,%eax
10f75c: 74 07 je 10f765 <rtems_bdbuf_release+0x6e>
rtems_bdbuf_wake (&bdbuf_cache.access_waiters);
10f75e: b8 f4 87 12 00 mov $0x1287f4,%eax
10f763: eb 05 jmp 10f76a <rtems_bdbuf_release+0x73>
else
rtems_bdbuf_wake (&bdbuf_cache.buffer_waiters);
10f765: b8 04 88 12 00 mov $0x128804,%eax
10f76a: e8 78 f2 ff ff call 10e9e7 <rtems_bdbuf_wake>
10f76f: eb 26 jmp 10f797 <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);
10f771: 89 d8 mov %ebx,%eax
10f773: e8 e5 fe ff ff call 10f65d <rtems_bdbuf_discard_buffer_after_access>
break;
10f778: eb 1d jmp 10f797 <rtems_bdbuf_release+0xa0>
case RTEMS_BDBUF_STATE_ACCESS_MODIFIED:
rtems_bdbuf_add_to_modified_list_after_access (bd);
10f77a: 89 d8 mov %ebx,%eax
10f77c: e8 23 f5 ff ff call 10eca4 <rtems_bdbuf_add_to_modified_list_after_access>
break;
10f781: eb 14 jmp 10f797 <rtems_bdbuf_release+0xa0>
default:
rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_STATE_0);
10f783: 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);
10f786: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10f789: c1 e0 10 shl $0x10,%eax <== NOT EXECUTED
10f78c: 0d 1c 00 00 42 or $0x4200001c,%eax <== NOT EXECUTED
10f791: 50 push %eax <== NOT EXECUTED
10f792: e8 55 c3 ff ff call 10baec <rtems_fatal_error_occurred><== NOT EXECUTED
}
if (rtems_bdbuf_tracer)
rtems_bdbuf_show_usage ();
rtems_bdbuf_unlock_cache ();
10f797: e8 ad f3 ff ff call 10eb49 <rtems_bdbuf_unlock_cache>
10f79c: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
}
10f79e: 8b 5d fc mov -0x4(%ebp),%ebx
10f7a1: c9 leave
10f7a2: c3 ret
0010ec59 <rtems_bdbuf_release_disk>:
static void
rtems_bdbuf_release_disk (rtems_disk_device *dd)
{
10ec59: 55 push %ebp
10ec5a: 89 e5 mov %esp,%ebp
10ec5c: 83 ec 14 sub $0x14,%esp
rtems_status_code sc = RTEMS_SUCCESSFUL;
sc = rtems_disk_release (dd);
10ec5f: 50 push %eax
10ec60: e8 03 8b ff ff call 107768 <rtems_disk_release>
if (sc != RTEMS_SUCCESSFUL)
10ec65: 83 c4 10 add $0x10,%esp
10ec68: 85 c0 test %eax,%eax
10ec6a: 74 0d je 10ec79 <rtems_bdbuf_release_disk+0x20><== ALWAYS TAKEN
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_DISK_REL);
10ec6c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10ec6f: 68 1f 00 00 42 push $0x4200001f <== NOT EXECUTED
10ec74: e8 73 ce ff ff call 10baec <rtems_fatal_error_occurred><== NOT EXECUTED
}
10ec79: c9 leave
10ec7a: c3 ret
0010f68e <rtems_bdbuf_release_modified>:
return RTEMS_SUCCESSFUL;
}
rtems_status_code
rtems_bdbuf_release_modified (rtems_bdbuf_buffer *bd)
{
10f68e: 55 push %ebp
10f68f: 89 e5 mov %esp,%ebp
10f691: 83 ec 18 sub $0x18,%esp
10f694: 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)
10f697: 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)
10f69c: 80 3d 14 88 12 00 00 cmpb $0x0,0x128814
10f6a3: 74 4e je 10f6f3 <rtems_bdbuf_release_modified+0x65><== NEVER TAKEN
return RTEMS_NOT_CONFIGURED;
if (bd == NULL)
10f6a5: b2 09 mov $0x9,%dl
10f6a7: 85 c0 test %eax,%eax
10f6a9: 74 48 je 10f6f3 <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();
10f6ab: 89 45 f4 mov %eax,-0xc(%ebp)
10f6ae: e8 21 f3 ff ff call 10e9d4 <rtems_bdbuf_lock_cache>
sc = rtems_bdbuf_check_bd_and_lock_cache (bd, "release modified");
if (sc != RTEMS_SUCCESSFUL)
return sc;
switch (bd->state)
10f6b3: 8b 45 f4 mov -0xc(%ebp),%eax
10f6b6: 8b 50 24 mov 0x24(%eax),%edx
10f6b9: 83 fa 03 cmp $0x3,%edx
10f6bc: 72 1a jb 10f6d8 <rtems_bdbuf_release_modified+0x4a><== NEVER TAKEN
10f6be: 83 fa 05 cmp $0x5,%edx
10f6c1: 76 07 jbe 10f6ca <rtems_bdbuf_release_modified+0x3c>
10f6c3: 83 fa 06 cmp $0x6,%edx
10f6c6: 75 10 jne 10f6d8 <rtems_bdbuf_release_modified+0x4a><== NEVER TAKEN
10f6c8: eb 07 jmp 10f6d1 <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);
10f6ca: e8 d5 f5 ff ff call 10eca4 <rtems_bdbuf_add_to_modified_list_after_access>
break;
10f6cf: eb 1b jmp 10f6ec <rtems_bdbuf_release_modified+0x5e>
case RTEMS_BDBUF_STATE_ACCESS_PURGED:
rtems_bdbuf_discard_buffer_after_access (bd);
10f6d1: e8 87 ff ff ff call 10f65d <rtems_bdbuf_discard_buffer_after_access>
break;
10f6d6: eb 14 jmp 10f6ec <rtems_bdbuf_release_modified+0x5e>
default:
rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_STATE_6);
10f6d8: 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);
10f6db: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10f6de: c1 e0 10 shl $0x10,%eax <== NOT EXECUTED
10f6e1: 0d 04 00 00 42 or $0x42000004,%eax <== NOT EXECUTED
10f6e6: 50 push %eax <== NOT EXECUTED
10f6e7: e8 00 c4 ff ff call 10baec <rtems_fatal_error_occurred><== NOT EXECUTED
}
if (rtems_bdbuf_tracer)
rtems_bdbuf_show_usage ();
rtems_bdbuf_unlock_cache ();
10f6ec: e8 58 f4 ff ff call 10eb49 <rtems_bdbuf_unlock_cache>
10f6f1: 31 d2 xor %edx,%edx
return RTEMS_SUCCESSFUL;
}
10f6f3: 89 d0 mov %edx,%eax
10f6f5: c9 leave
10f6f6: c3 ret
0010f347 <rtems_bdbuf_remove_from_tree>:
return bdbuf_cache.buffer_waiters.count;
}
static void
rtems_bdbuf_remove_from_tree (rtems_bdbuf_buffer *bd)
{
10f347: 55 push %ebp
10f348: 89 e5 mov %esp,%ebp
10f34a: 57 push %edi
10f34b: 56 push %esi
10f34c: 53 push %ebx
10f34d: 81 ec 9c 00 00 00 sub $0x9c,%esp
10f353: 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;
10f355: 8b 40 14 mov 0x14(%eax),%eax
10f358: 89 85 64 ff ff ff mov %eax,-0x9c(%ebp)
10f35e: 8b 53 18 mov 0x18(%ebx),%edx
10f361: 89 95 60 ff ff ff mov %edx,-0xa0(%ebp)
rtems_blkdev_bnum block = node->block;
10f367: 8b 4b 1c mov 0x1c(%ebx),%ecx
10f36a: 89 8d 5c ff ff ff mov %ecx,-0xa4(%ebp)
rtems_bdbuf_buffer* p = *root;
10f370: 8b 15 cc 87 12 00 mov 0x1287cc,%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));
10f376: 8d b5 68 ff ff ff lea -0x98(%ebp),%esi
10f37c: b9 20 00 00 00 mov $0x20,%ecx
10f381: 31 c0 xor %eax,%eax
10f383: 89 f7 mov %esi,%edi
10f385: f3 ab rep stos %eax,%es:(%edi)
10f387: eb 4a jmp 10f3d3 <rtems_bdbuf_remove_from_tree+0x8c>
while (p != NULL)
{
*buf_prev++ = p;
10f389: 89 16 mov %edx,(%esi)
10f38b: 83 c6 04 add $0x4,%esi
if ((p->dev < dev) || ((p->dev == dev) && (p->block < block)))
10f38e: 8b 42 14 mov 0x14(%edx),%eax
10f391: 8b 4a 18 mov 0x18(%edx),%ecx
10f394: 3b 8d 60 ff ff ff cmp -0xa0(%ebp),%ecx
10f39a: 72 25 jb 10f3c1 <rtems_bdbuf_remove_from_tree+0x7a><== NEVER TAKEN
10f39c: 77 08 ja 10f3a6 <rtems_bdbuf_remove_from_tree+0x5f><== NEVER TAKEN
10f39e: 3b 85 64 ff ff ff cmp -0x9c(%ebp),%eax
10f3a4: 72 1b jb 10f3c1 <rtems_bdbuf_remove_from_tree+0x7a><== NEVER TAKEN
10f3a6: 3b 8d 60 ff ff ff cmp -0xa0(%ebp),%ecx
10f3ac: 75 1e jne 10f3cc <rtems_bdbuf_remove_from_tree+0x85><== NEVER TAKEN
10f3ae: 3b 85 64 ff ff ff cmp -0x9c(%ebp),%eax
10f3b4: 75 16 jne 10f3cc <rtems_bdbuf_remove_from_tree+0x85><== NEVER TAKEN
10f3b6: 8b bd 5c ff ff ff mov -0xa4(%ebp),%edi
10f3bc: 39 7a 1c cmp %edi,0x1c(%edx)
10f3bf: 73 09 jae 10f3ca <rtems_bdbuf_remove_from_tree+0x83>
{
p->avl.cache = 1;
10f3c1: c6 42 10 01 movb $0x1,0x10(%edx)
p = p->avl.right;
10f3c5: 8b 52 0c mov 0xc(%edx),%edx
10f3c8: eb 09 jmp 10f3d3 <rtems_bdbuf_remove_from_tree+0x8c>
}
else if ((p->dev != dev) || (p->block != block))
10f3ca: 74 10 je 10f3dc <rtems_bdbuf_remove_from_tree+0x95>
{
p->avl.cache = -1;
10f3cc: c6 42 10 ff movb $0xff,0x10(%edx)
p = p->avl.left;
10f3d0: 8b 52 08 mov 0x8(%edx),%edx
bool modified = false;
memset (buf_stack, 0, sizeof(buf_stack));
while (p != NULL)
10f3d3: 85 d2 test %edx,%edx
10f3d5: 75 b2 jne 10f389 <rtems_bdbuf_remove_from_tree+0x42><== ALWAYS TAKEN
10f3d7: e9 e8 01 00 00 jmp 10f5c4 <rtems_bdbuf_remove_from_tree+0x27d><== NOT EXECUTED
return -1;
}
q = p;
buf_prev--;
10f3dc: 8d 46 fc lea -0x4(%esi),%eax
10f3df: 89 85 60 ff ff ff mov %eax,-0xa0(%ebp)
if (buf_prev > buf_stack)
10f3e5: 8d 85 68 ff ff ff lea -0x98(%ebp),%eax
10f3eb: 31 db xor %ebx,%ebx
10f3ed: 39 85 60 ff ff ff cmp %eax,-0xa0(%ebp)
10f3f3: 76 09 jbe 10f3fe <rtems_bdbuf_remove_from_tree+0xb7>
{
p = *(buf_prev - 1);
10f3f5: 8b 8d 60 ff ff ff mov -0xa0(%ebp),%ecx
10f3fb: 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)
10f3fe: 8b 42 0c mov 0xc(%edx),%eax
10f401: 85 c0 test %eax,%eax
10f403: 75 19 jne 10f41e <rtems_bdbuf_remove_from_tree+0xd7>
{
r = q->avl.left;
10f405: 8b 42 08 mov 0x8(%edx),%eax
if (r != NULL)
10f408: 8b b5 60 ff ff ff mov -0xa0(%ebp),%esi
10f40e: 85 c0 test %eax,%eax
10f410: 74 78 je 10f48a <rtems_bdbuf_remove_from_tree+0x143>
{
r->avl.bal = 0;
10f412: c6 40 11 00 movb $0x0,0x11(%eax)
10f416: 8b b5 60 ff ff ff mov -0xa0(%ebp),%esi
10f41c: eb 6c jmp 10f48a <rtems_bdbuf_remove_from_tree+0x143>
{
rtems_bdbuf_buffer **t;
r = q->avl.right;
if (r->avl.left == NULL)
10f41e: 89 85 64 ff ff ff mov %eax,-0x9c(%ebp)
10f424: 83 78 08 00 cmpl $0x0,0x8(%eax)
10f428: 75 24 jne 10f44e <rtems_bdbuf_remove_from_tree+0x107><== NEVER TAKEN
{
r->avl.left = q->avl.left;
10f42a: 8b 7a 08 mov 0x8(%edx),%edi
10f42d: 89 78 08 mov %edi,0x8(%eax)
10f430: eb 46 jmp 10f478 <rtems_bdbuf_remove_from_tree+0x131>
t = buf_prev++;
s = r;
while (s->avl.left != NULL)
{
*buf_prev++ = r = s;
10f432: 89 06 mov %eax,(%esi) <== NOT EXECUTED
10f434: 83 c6 04 add $0x4,%esi <== NOT EXECUTED
s = r->avl.left;
10f437: 8b 78 08 mov 0x8(%eax),%edi <== NOT EXECUTED
10f43a: 89 bd 64 ff ff ff mov %edi,-0x9c(%ebp) <== NOT EXECUTED
r->avl.cache = -1;
10f440: c6 40 10 ff movb $0xff,0x10(%eax) <== NOT EXECUTED
10f444: 89 c7 mov %eax,%edi <== NOT EXECUTED
10f446: 8b 85 64 ff ff ff mov -0x9c(%ebp),%eax <== NOT EXECUTED
10f44c: eb 0c jmp 10f45a <rtems_bdbuf_remove_from_tree+0x113><== NOT EXECUTED
10f44e: 8b 8d 60 ff ff ff mov -0xa0(%ebp),%ecx <== NOT EXECUTED
10f454: 8b bd 64 ff ff ff mov -0x9c(%ebp),%edi <== NOT EXECUTED
else
{
t = buf_prev++;
s = r;
while (s->avl.left != NULL)
10f45a: 83 78 08 00 cmpl $0x0,0x8(%eax) <== NOT EXECUTED
10f45e: 75 d2 jne 10f432 <rtems_bdbuf_remove_from_tree+0xeb><== NOT EXECUTED
10f460: 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;
10f466: 8b 4a 08 mov 0x8(%edx),%ecx <== NOT EXECUTED
10f469: 89 48 08 mov %ecx,0x8(%eax) <== NOT EXECUTED
r->avl.left = s->avl.right;
10f46c: 8b 48 0c mov 0xc(%eax),%ecx <== NOT EXECUTED
10f46f: 89 4f 08 mov %ecx,0x8(%edi) <== NOT EXECUTED
s->avl.right = q->avl.right;
10f472: 8b 7a 0c mov 0xc(%edx),%edi <== NOT EXECUTED
10f475: 89 78 0c mov %edi,0xc(%eax) <== NOT EXECUTED
s->avl.bal = q->avl.bal;
10f478: 8a 52 11 mov 0x11(%edx),%dl
10f47b: 88 50 11 mov %dl,0x11(%eax)
s->avl.cache = 1;
10f47e: c6 40 10 01 movb $0x1,0x10(%eax)
*t = q = s;
10f482: 8b bd 60 ff ff ff mov -0xa0(%ebp),%edi
10f488: 89 07 mov %eax,(%edi)
}
}
if (p != NULL)
10f48a: 85 db test %ebx,%ebx
10f48c: 74 1d je 10f4ab <rtems_bdbuf_remove_from_tree+0x164>
{
if (p->avl.cache == -1)
10f48e: 80 7b 10 ff cmpb $0xff,0x10(%ebx)
10f492: 75 05 jne 10f499 <rtems_bdbuf_remove_from_tree+0x152>
{
p->avl.left = q;
10f494: 89 43 08 mov %eax,0x8(%ebx)
10f497: eb 03 jmp 10f49c <rtems_bdbuf_remove_from_tree+0x155>
}
else
{
p->avl.right = q;
10f499: 89 43 0c mov %eax,0xc(%ebx)
modified = true;
while (modified)
{
if (buf_prev > buf_stack)
10f49c: 8d 9d 68 ff ff ff lea -0x98(%ebp),%ebx
10f4a2: 39 de cmp %ebx,%esi
10f4a4: 77 0c ja 10f4b2 <rtems_bdbuf_remove_from_tree+0x16b>
10f4a6: e9 2d 01 00 00 jmp 10f5d8 <rtems_bdbuf_remove_from_tree+0x291>
p->avl.right = q;
}
}
else
{
*root = q;
10f4ab: a3 cc 87 12 00 mov %eax,0x1287cc
10f4b0: eb ea jmp 10f49c <rtems_bdbuf_remove_from_tree+0x155>
10f4b2: 89 9d 64 ff ff ff mov %ebx,-0x9c(%ebp)
while (modified)
{
if (buf_prev > buf_stack)
{
p = *--buf_prev;
10f4b8: 83 ee 04 sub $0x4,%esi
10f4bb: 8b 16 mov (%esi),%edx
else
{
break;
}
if (p->avl.cache == -1)
10f4bd: 80 7a 10 ff cmpb $0xff,0x10(%edx)
10f4c1: 8a 42 11 mov 0x11(%edx),%al
10f4c4: 75 5d jne 10f523 <rtems_bdbuf_remove_from_tree+0x1dc>
{
/* rebalance left branch */
switch (p->avl.bal)
10f4c6: 84 c0 test %al,%al
10f4c8: 74 0e je 10f4d8 <rtems_bdbuf_remove_from_tree+0x191>
10f4ca: 3c 01 cmp $0x1,%al
10f4cc: 74 10 je 10f4de <rtems_bdbuf_remove_from_tree+0x197>
10f4ce: fe c0 inc %al
10f4d0: 0f 85 be 00 00 00 jne 10f594 <rtems_bdbuf_remove_from_tree+0x24d><== NEVER TAKEN
10f4d6: eb 59 jmp 10f531 <rtems_bdbuf_remove_from_tree+0x1ea>
{
case -1:
p->avl.bal = 0;
break;
case 0:
p->avl.bal = 1;
10f4d8: c6 42 11 01 movb $0x1,0x11(%edx)
10f4dc: eb 5d jmp 10f53b <rtems_bdbuf_remove_from_tree+0x1f4>
modified = false;
break;
case +1:
p1 = p->avl.right;
10f4de: 8b 4a 0c mov 0xc(%edx),%ecx
if (p1->avl.bal >= 0) /* simple RR-turn */
10f4e1: 80 79 11 00 cmpb $0x0,0x11(%ecx)
10f4e5: 8b 41 08 mov 0x8(%ecx),%eax
10f4e8: 7c 0e jl 10f4f8 <rtems_bdbuf_remove_from_tree+0x1b1><== NEVER TAKEN
{
p->avl.right = p1->avl.left;
10f4ea: 89 42 0c mov %eax,0xc(%edx)
p1->avl.left = p;
10f4ed: 89 51 08 mov %edx,0x8(%ecx)
if (p1->avl.bal == 0)
10f4f0: 75 6b jne 10f55d <rtems_bdbuf_remove_from_tree+0x216><== NEVER TAKEN
{
p1->avl.bal = -1;
10f4f2: c6 41 11 ff movb $0xff,0x11(%ecx)
10f4f6: eb 61 jmp 10f559 <rtems_bdbuf_remove_from_tree+0x212>
}
else /* double RL-turn */
{
p2 = p1->avl.left;
p1->avl.left = p2->avl.right;
10f4f8: 8b 78 0c mov 0xc(%eax),%edi <== NOT EXECUTED
10f4fb: 89 79 08 mov %edi,0x8(%ecx) <== NOT EXECUTED
p2->avl.right = p1;
10f4fe: 89 48 0c mov %ecx,0xc(%eax) <== NOT EXECUTED
p->avl.right = p2->avl.left;
10f501: 8b 78 08 mov 0x8(%eax),%edi <== NOT EXECUTED
10f504: 89 7a 0c mov %edi,0xc(%edx) <== NOT EXECUTED
p2->avl.left = p;
10f507: 89 50 08 mov %edx,0x8(%eax) <== NOT EXECUTED
if (p2->avl.bal == +1) p->avl.bal = -1; else p->avl.bal = 0;
10f50a: 80 78 11 01 cmpb $0x1,0x11(%eax) <== NOT EXECUTED
10f50e: 0f 95 c3 setne %bl <== NOT EXECUTED
10f511: 89 df mov %ebx,%edi <== NOT EXECUTED
10f513: 4f dec %edi <== NOT EXECUTED
10f514: 89 fb mov %edi,%ebx <== NOT EXECUTED
10f516: 88 5a 11 mov %bl,0x11(%edx) <== NOT EXECUTED
if (p2->avl.bal == -1) p1->avl.bal = 1; else p1->avl.bal = 0;
10f519: 80 78 11 ff cmpb $0xff,0x11(%eax) <== NOT EXECUTED
10f51d: 0f 94 41 11 sete 0x11(%ecx) <== NOT EXECUTED
10f521: eb 6b jmp 10f58e <rtems_bdbuf_remove_from_tree+0x247><== NOT EXECUTED
}
}
else
{
/* rebalance right branch */
switch (p->avl.bal)
10f523: 84 c0 test %al,%al
10f525: 74 10 je 10f537 <rtems_bdbuf_remove_from_tree+0x1f0><== NEVER TAKEN
10f527: 3c 01 cmp $0x1,%al
10f529: 74 06 je 10f531 <rtems_bdbuf_remove_from_tree+0x1ea><== ALWAYS TAKEN
10f52b: fe c0 inc %al <== NOT EXECUTED
10f52d: 75 65 jne 10f594 <rtems_bdbuf_remove_from_tree+0x24d><== NOT EXECUTED
10f52f: eb 10 jmp 10f541 <rtems_bdbuf_remove_from_tree+0x1fa><== NOT EXECUTED
{
case +1:
p->avl.bal = 0;
10f531: c6 42 11 00 movb $0x0,0x11(%edx)
10f535: eb 5d jmp 10f594 <rtems_bdbuf_remove_from_tree+0x24d>
break;
case 0:
p->avl.bal = -1;
10f537: c6 42 11 ff movb $0xff,0x11(%edx) <== NOT EXECUTED
10f53b: 89 d0 mov %edx,%eax
10f53d: 31 d2 xor %edx,%edx
10f53f: eb 57 jmp 10f598 <rtems_bdbuf_remove_from_tree+0x251>
modified = false;
break;
case -1:
p1 = p->avl.left;
10f541: 8b 4a 08 mov 0x8(%edx),%ecx <== NOT EXECUTED
if (p1->avl.bal <= 0) /* simple LL-turn */
10f544: 80 79 11 00 cmpb $0x0,0x11(%ecx) <== NOT EXECUTED
10f548: 8b 41 0c mov 0xc(%ecx),%eax <== NOT EXECUTED
10f54b: 7f 1c jg 10f569 <rtems_bdbuf_remove_from_tree+0x222><== NOT EXECUTED
{
p->avl.left = p1->avl.right;
10f54d: 89 42 08 mov %eax,0x8(%edx) <== NOT EXECUTED
p1->avl.right = p;
10f550: 89 51 0c mov %edx,0xc(%ecx) <== NOT EXECUTED
if (p1->avl.bal == 0)
10f553: 75 08 jne 10f55d <rtems_bdbuf_remove_from_tree+0x216><== NOT EXECUTED
{
p1->avl.bal = 1;
10f555: c6 41 11 01 movb $0x1,0x11(%ecx) <== NOT EXECUTED
10f559: 89 c8 mov %ecx,%eax
10f55b: eb e0 jmp 10f53d <rtems_bdbuf_remove_from_tree+0x1f6>
modified = false;
}
else
{
p->avl.bal = 0;
10f55d: c6 42 11 00 movb $0x0,0x11(%edx) <== NOT EXECUTED
p1->avl.bal = 0;
10f561: c6 41 11 00 movb $0x0,0x11(%ecx) <== NOT EXECUTED
10f565: 89 c8 mov %ecx,%eax <== NOT EXECUTED
10f567: eb 2d jmp 10f596 <rtems_bdbuf_remove_from_tree+0x24f><== NOT EXECUTED
}
else /* double LR-turn */
{
p2 = p1->avl.right;
p1->avl.right = p2->avl.left;
10f569: 8b 78 08 mov 0x8(%eax),%edi <== NOT EXECUTED
10f56c: 89 79 0c mov %edi,0xc(%ecx) <== NOT EXECUTED
p2->avl.left = p1;
10f56f: 89 48 08 mov %ecx,0x8(%eax) <== NOT EXECUTED
p->avl.left = p2->avl.right;
10f572: 8b 78 0c mov 0xc(%eax),%edi <== NOT EXECUTED
10f575: 89 7a 08 mov %edi,0x8(%edx) <== NOT EXECUTED
p2->avl.right = p;
10f578: 89 50 0c mov %edx,0xc(%eax) <== NOT EXECUTED
if (p2->avl.bal == -1) p->avl.bal = 1; else p->avl.bal = 0;
10f57b: 80 78 11 ff cmpb $0xff,0x11(%eax) <== NOT EXECUTED
10f57f: 0f 94 42 11 sete 0x11(%edx) <== NOT EXECUTED
if (p2->avl.bal == +1) p1->avl.bal = -1; else p1->avl.bal = 0;
10f583: 80 78 11 01 cmpb $0x1,0x11(%eax) <== NOT EXECUTED
10f587: 0f 95 c2 setne %dl <== NOT EXECUTED
10f58a: 4a dec %edx <== NOT EXECUTED
10f58b: 88 51 11 mov %dl,0x11(%ecx) <== NOT EXECUTED
p = p2;
p2->avl.bal = 0;
10f58e: c6 40 11 00 movb $0x0,0x11(%eax) <== NOT EXECUTED
10f592: eb 02 jmp 10f596 <rtems_bdbuf_remove_from_tree+0x24f><== NOT EXECUTED
10f594: 89 d0 mov %edx,%eax
10f596: b2 01 mov $0x1,%dl
default:
break;
}
}
if (buf_prev > buf_stack)
10f598: 3b b5 64 ff ff ff cmp -0x9c(%ebp),%esi
10f59e: 76 13 jbe 10f5b3 <rtems_bdbuf_remove_from_tree+0x26c>
{
q = *(buf_prev - 1);
10f5a0: 8b 4e fc mov -0x4(%esi),%ecx
if (q->avl.cache == -1)
10f5a3: 80 79 10 ff cmpb $0xff,0x10(%ecx)
10f5a7: 75 05 jne 10f5ae <rtems_bdbuf_remove_from_tree+0x267><== NEVER TAKEN
{
q->avl.left = p;
10f5a9: 89 41 08 mov %eax,0x8(%ecx)
10f5ac: eb 0c jmp 10f5ba <rtems_bdbuf_remove_from_tree+0x273>
}
else
{
q->avl.right = p;
10f5ae: 89 41 0c mov %eax,0xc(%ecx) <== NOT EXECUTED
10f5b1: eb 07 jmp 10f5ba <rtems_bdbuf_remove_from_tree+0x273><== NOT EXECUTED
}
}
else
{
*root = p;
10f5b3: a3 cc 87 12 00 mov %eax,0x1287cc
10f5b8: eb 1e jmp 10f5d8 <rtems_bdbuf_remove_from_tree+0x291>
*root = q;
}
modified = true;
while (modified)
10f5ba: 84 d2 test %dl,%dl
10f5bc: 0f 85 f6 fe ff ff jne 10f4b8 <rtems_bdbuf_remove_from_tree+0x171><== ALWAYS TAKEN
10f5c2: eb 14 jmp 10f5d8 <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);
10f5c4: 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);
10f5c7: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10f5ca: c1 e0 10 shl $0x10,%eax <== NOT EXECUTED
10f5cd: 0d 09 00 00 42 or $0x42000009,%eax <== NOT EXECUTED
10f5d2: 50 push %eax <== NOT EXECUTED
10f5d3: e8 14 c5 ff ff call 10baec <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);
}
10f5d8: 8d 65 f4 lea -0xc(%ebp),%esp
10f5db: 5b pop %ebx
10f5dc: 5e pop %esi
10f5dd: 5f pop %edi
10f5de: c9 leave
10f5df: c3 ret
0010f5e0 <rtems_bdbuf_remove_from_tree_and_lru_list>:
static void
rtems_bdbuf_remove_from_tree_and_lru_list (rtems_bdbuf_buffer *bd)
{
10f5e0: 55 push %ebp
10f5e1: 89 e5 mov %esp,%ebp
10f5e3: 53 push %ebx
10f5e4: 83 ec 04 sub $0x4,%esp
10f5e7: 89 c3 mov %eax,%ebx
switch (bd->state)
10f5e9: 8b 40 24 mov 0x24(%eax),%eax
10f5ec: 85 c0 test %eax,%eax
10f5ee: 74 22 je 10f612 <rtems_bdbuf_remove_from_tree_and_lru_list+0x32>
10f5f0: 83 f8 02 cmp $0x2,%eax
10f5f3: 75 09 jne 10f5fe <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);
10f5f5: 89 d8 mov %ebx,%eax
10f5f7: e8 4b fd ff ff call 10f347 <rtems_bdbuf_remove_from_tree>
break;
10f5fc: eb 14 jmp 10f612 <rtems_bdbuf_remove_from_tree_and_lru_list+0x32>
default:
rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_STATE_10);
10f5fe: 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);
10f601: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10f604: c1 e0 10 shl $0x10,%eax <== NOT EXECUTED
10f607: 0d 08 00 00 42 or $0x42000008,%eax <== NOT EXECUTED
10f60c: 50 push %eax <== NOT EXECUTED
10f60d: e8 da c4 ff ff call 10baec <rtems_fatal_error_occurred><== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void rtems_chain_extract(
rtems_chain_node *the_node
)
{
_Chain_Extract( the_node );
10f612: 83 ec 0c sub $0xc,%esp
10f615: 53 push %ebx
10f616: e8 c5 c8 ff ff call 10bee0 <_Chain_Extract>
10f61b: 83 c4 10 add $0x10,%esp
default:
rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_STATE_10);
}
rtems_chain_extract (&bd->link);
}
10f61e: 8b 5d fc mov -0x4(%ebp),%ebx
10f621: c9 leave
10f622: c3 ret
0010ee69 <rtems_bdbuf_restore_preemption>:
static void
rtems_bdbuf_restore_preemption (rtems_mode prev_mode)
{
10ee69: 55 push %ebp
10ee6a: 89 e5 mov %esp,%ebp
10ee6c: 83 ec 1c sub $0x1c,%esp
10ee6f: 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);
10ee72: 8d 45 f4 lea -0xc(%ebp),%eax
10ee75: 50 push %eax
10ee76: 68 ff ff 00 00 push $0xffff
10ee7b: ff 75 f4 pushl -0xc(%ebp)
10ee7e: e8 a1 3a 00 00 call 112924 <rtems_task_mode>
if (sc != RTEMS_SUCCESSFUL)
10ee83: 83 c4 10 add $0x10,%esp
10ee86: 85 c0 test %eax,%eax
10ee88: 74 0d je 10ee97 <rtems_bdbuf_restore_preemption+0x2e><== ALWAYS TAKEN
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_PREEMPT_RST);
10ee8a: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10ee8d: 68 11 00 00 42 push $0x42000011 <== NOT EXECUTED
10ee92: e8 55 cc ff ff call 10baec <rtems_fatal_error_occurred><== NOT EXECUTED
}
10ee97: c9 leave
10ee98: c3 ret
0010ea14 <rtems_bdbuf_swapout_modified_processing>:
rtems_chain_control* chain,
rtems_chain_control* transfer,
bool sync_active,
bool update_timers,
uint32_t timer_delta)
{
10ea14: 55 push %ebp
10ea15: 89 e5 mov %esp,%ebp
10ea17: 57 push %edi
10ea18: 56 push %esi
10ea19: 53 push %ebx
10ea1a: 83 ec 2c sub $0x2c,%esp
10ea1d: 89 c3 mov %eax,%ebx
10ea1f: 89 cf mov %ecx,%edi
10ea21: 8a 45 08 mov 0x8(%ebp),%al
10ea24: 88 45 e2 mov %al,-0x1e(%ebp)
10ea27: 8a 45 0c mov 0xc(%ebp),%al
10ea2a: 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;
10ea2d: 8d 42 04 lea 0x4(%edx),%eax
10ea30: 89 45 e4 mov %eax,-0x1c(%ebp)
if (!rtems_chain_is_empty (chain))
10ea33: 39 02 cmp %eax,(%edx)
10ea35: 0f 84 06 01 00 00 je 10eb41 <rtems_bdbuf_swapout_modified_processing+0x12d>
{
rtems_chain_node* node = rtems_chain_head (chain);
bool sync_all;
node = node->next;
10ea3b: 8b 32 mov (%edx),%esi
/*
* A sync active with no valid dev means sync all.
*/
if (sync_active && (*dev == BDBUF_INVALID_DEV))
10ea3d: c6 45 e3 00 movb $0x0,-0x1d(%ebp)
10ea41: 80 7d e2 00 cmpb $0x0,-0x1e(%ebp)
10ea45: 74 0a je 10ea51 <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,
10ea47: 8b 03 mov (%ebx),%eax
10ea49: 23 43 04 and 0x4(%ebx),%eax
10ea4c: 40 inc %eax
10ea4d: 0f 94 45 e3 sete -0x1d(%ebp)
10ea51: 8d 57 04 lea 0x4(%edi),%edx
10ea54: 89 55 d8 mov %edx,-0x28(%ebp)
10ea57: 89 7d dc mov %edi,-0x24(%ebp)
10ea5a: e9 c5 00 00 00 jmp 10eb24 <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))
10ea5f: 80 7d e3 00 cmpb $0x0,-0x1d(%ebp)
10ea63: 75 1e jne 10ea83 <rtems_bdbuf_swapout_modified_processing+0x6f>
10ea65: 80 7d e2 00 cmpb $0x0,-0x1e(%ebp)
10ea69: 74 0f je 10ea7a <rtems_bdbuf_swapout_modified_processing+0x66>
10ea6b: 8b 03 mov (%ebx),%eax
10ea6d: 8b 53 04 mov 0x4(%ebx),%edx
10ea70: 3b 56 18 cmp 0x18(%esi),%edx
10ea73: 75 05 jne 10ea7a <rtems_bdbuf_swapout_modified_processing+0x66><== NEVER TAKEN
10ea75: 3b 46 14 cmp 0x14(%esi),%eax
10ea78: 74 09 je 10ea83 <rtems_bdbuf_swapout_modified_processing+0x6f>
}
static bool
rtems_bdbuf_has_buffer_waiters (void)
{
return bdbuf_cache.buffer_waiters.count;
10ea7a: a1 04 88 12 00 mov 0x128804,%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))
10ea7f: 85 c0 test %eax,%eax
10ea81: 74 07 je 10ea8a <rtems_bdbuf_swapout_modified_processing+0x76>
|| rtems_bdbuf_has_buffer_waiters ())
bd->hold_timer = 0;
10ea83: c7 46 30 00 00 00 00 movl $0x0,0x30(%esi)
if (bd->hold_timer)
10ea8a: 8b 46 30 mov 0x30(%esi),%eax
10ea8d: 85 c0 test %eax,%eax
10ea8f: 74 27 je 10eab8 <rtems_bdbuf_swapout_modified_processing+0xa4>
{
if (update_timers)
10ea91: 80 7d d7 00 cmpb $0x0,-0x29(%ebp)
10ea95: 74 1a je 10eab1 <rtems_bdbuf_swapout_modified_processing+0x9d>
{
if (bd->hold_timer > timer_delta)
10ea97: 8b 46 30 mov 0x30(%esi),%eax
10ea9a: 3b 45 10 cmp 0x10(%ebp),%eax
10ea9d: 76 0b jbe 10eaaa <rtems_bdbuf_swapout_modified_processing+0x96>
bd->hold_timer -= timer_delta;
10ea9f: 8b 46 30 mov 0x30(%esi),%eax
10eaa2: 2b 45 10 sub 0x10(%ebp),%eax
10eaa5: 89 46 30 mov %eax,0x30(%esi)
10eaa8: eb 07 jmp 10eab1 <rtems_bdbuf_swapout_modified_processing+0x9d>
else
bd->hold_timer = 0;
10eaaa: c7 46 30 00 00 00 00 movl $0x0,0x30(%esi)
}
if (bd->hold_timer)
10eab1: 8b 46 30 mov 0x30(%esi),%eax
10eab4: 85 c0 test %eax,%eax
10eab6: 75 6a jne 10eb22 <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)
10eab8: 83 7b 04 ff cmpl $0xffffffff,0x4(%ebx)
10eabc: 75 10 jne 10eace <rtems_bdbuf_swapout_modified_processing+0xba>
10eabe: 83 3b ff cmpl $0xffffffff,(%ebx)
10eac1: 75 0b jne 10eace <rtems_bdbuf_swapout_modified_processing+0xba><== NEVER TAKEN
*dev = bd->dev;
10eac3: 8b 46 14 mov 0x14(%esi),%eax
10eac6: 8b 56 18 mov 0x18(%esi),%edx
10eac9: 89 03 mov %eax,(%ebx)
10eacb: 89 53 04 mov %edx,0x4(%ebx)
if (bd->dev == *dev)
10eace: 8b 46 14 mov 0x14(%esi),%eax
10ead1: 8b 56 18 mov 0x18(%esi),%edx
10ead4: 3b 53 04 cmp 0x4(%ebx),%edx
10ead7: 75 49 jne 10eb22 <rtems_bdbuf_swapout_modified_processing+0x10e><== NEVER TAKEN
10ead9: 3b 03 cmp (%ebx),%eax
10eadb: 75 45 jne 10eb22 <rtems_bdbuf_swapout_modified_processing+0x10e><== NEVER TAKEN
{
rtems_chain_node* next_node = node->next;
10eadd: 8b 3e mov (%esi),%edi
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
10eadf: 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 );
10eae6: 83 ec 0c sub $0xc,%esp
10eae9: 56 push %esi
10eaea: e8 f1 d3 ff ff call 10bee0 <_Chain_Extract>
rtems_bdbuf_set_state (bd, RTEMS_BDBUF_STATE_TRANSFER);
rtems_chain_extract (node);
tnode = tnode->previous;
10eaef: 8b 55 d8 mov -0x28(%ebp),%edx
10eaf2: 8b 42 04 mov 0x4(%edx),%eax
while (node && !rtems_chain_is_head (transfer, tnode))
10eaf5: 83 c4 10 add $0x10,%esp
10eaf8: eb 19 jmp 10eb13 <rtems_bdbuf_swapout_modified_processing+0xff>
{
rtems_bdbuf_buffer* tbd = (rtems_bdbuf_buffer*) tnode;
if (bd->block > tbd->block)
10eafa: 8b 56 1c mov 0x1c(%esi),%edx
10eafd: 3b 50 1c cmp 0x1c(%eax),%edx
10eb00: 76 0e jbe 10eb10 <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 );
10eb02: 52 push %edx
10eb03: 52 push %edx
10eb04: 56 push %esi
10eb05: 50 push %eax
10eb06: e8 29 42 00 00 call 112d34 <_Chain_Insert>
10eb0b: 83 c4 10 add $0x10,%esp
10eb0e: eb 07 jmp 10eb17 <rtems_bdbuf_swapout_modified_processing+0x103>
{
rtems_chain_insert (tnode, node);
node = NULL;
}
else
tnode = tnode->previous;
10eb10: 8b 40 04 mov 0x4(%eax),%eax
rtems_chain_extract (node);
tnode = tnode->previous;
while (node && !rtems_chain_is_head (transfer, tnode))
10eb13: 85 f6 test %esi,%esi
10eb15: 75 04 jne 10eb1b <rtems_bdbuf_swapout_modified_processing+0x107><== ALWAYS TAKEN
10eb17: 89 fe mov %edi,%esi
10eb19: eb 09 jmp 10eb24 <rtems_bdbuf_swapout_modified_processing+0x110>
10eb1b: 3b 45 dc cmp -0x24(%ebp),%eax
10eb1e: 75 da jne 10eafa <rtems_bdbuf_swapout_modified_processing+0xe6>
10eb20: eb 0d jmp 10eb2f <rtems_bdbuf_swapout_modified_processing+0x11b>
node = next_node;
}
else
{
node = node->next;
10eb22: 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))
10eb24: 3b 75 e4 cmp -0x1c(%ebp),%esi
10eb27: 0f 85 32 ff ff ff jne 10ea5f <rtems_bdbuf_swapout_modified_processing+0x4b>
10eb2d: eb 12 jmp 10eb41 <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);
10eb2f: 50 push %eax
10eb30: 50 push %eax
10eb31: 56 push %esi
10eb32: ff 75 dc pushl -0x24(%ebp)
10eb35: e8 fa 41 00 00 call 112d34 <_Chain_Insert>
10eb3a: 89 fe mov %edi,%esi
10eb3c: 83 c4 10 add $0x10,%esp
10eb3f: eb e3 jmp 10eb24 <rtems_bdbuf_swapout_modified_processing+0x110>
{
node = node->next;
}
}
}
}
10eb41: 8d 65 f4 lea -0xc(%ebp),%esp
10eb44: 5b pop %ebx
10eb45: 5e pop %esi
10eb46: 5f pop %edi
10eb47: c9 leave
10eb48: c3 ret
0010fb76 <rtems_bdbuf_swapout_task>:
* not this.
* @return rtems_task Not used.
*/
static rtems_task
rtems_bdbuf_swapout_task (rtems_task_argument arg)
{
10fb76: 55 push %ebp
10fb77: 89 e5 mov %esp,%ebp
10fb79: 57 push %edi
10fb7a: 56 push %esi
10fb7b: 53 push %ebx
10fb7c: 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 ();
10fb7f: e8 76 f7 ff ff call 10f2fa <rtems_bdbuf_swapout_writereq_alloc>
10fb84: 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);
10fb87: 8d 45 c4 lea -0x3c(%ebp),%eax
10fb8a: 8d 55 c8 lea -0x38(%ebp),%edx
10fb8d: 89 55 c4 mov %edx,-0x3c(%ebp)
the_chain->permanent_null = NULL;
10fb90: c7 45 c8 00 00 00 00 movl $0x0,-0x38(%ebp)
the_chain->last = _Chain_Head(the_chain);
10fb97: 89 45 cc mov %eax,-0x34(%ebp)
rtems_chain_initialize_empty (&transfer.bds);
transfer.dev = BDBUF_INVALID_DEV;
10fb9a: c7 45 d0 ff ff ff ff movl $0xffffffff,-0x30(%ebp)
10fba1: c7 45 d4 ff ff ff ff movl $0xffffffff,-0x2c(%ebp)
transfer.syncing = false;
10fba8: c6 45 d8 00 movb $0x0,-0x28(%ebp)
/*
* Localise the period.
*/
period_in_ticks = RTEMS_MICROSECONDS_TO_TICKS (period_in_msecs * 1000);
10fbac: 69 05 74 0b 12 00 e8 imul $0x3e8,0x120b74,%eax
10fbb3: 03 00 00
10fbb6: 31 d2 xor %edx,%edx
10fbb8: f7 35 2c 4b 12 00 divl 0x124b2c
10fbbe: 89 45 ac mov %eax,-0x54(%ebp)
rtems_bdbuf_swapout_workers_open (void)
{
rtems_status_code sc;
size_t w;
rtems_bdbuf_lock_cache ();
10fbc1: e8 0e ee ff ff call 10e9d4 <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 ?
10fbc6: 8b 3d 70 0b 12 00 mov 0x120b70,%edi
10fbcc: 31 f6 xor %esi,%esi
10fbce: e9 bb 00 00 00 jmp 10fc8e <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));
10fbd3: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10fbd6: 6a 30 push $0x30 <== NOT EXECUTED
10fbd8: e8 4b 8a ff ff call 108628 <malloc> <== NOT EXECUTED
10fbdd: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (!worker)
10fbdf: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10fbe2: 85 c0 test %eax,%eax <== NOT EXECUTED
10fbe4: 75 0a jne 10fbf0 <rtems_bdbuf_swapout_task+0x7a><== NOT EXECUTED
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_SO_NOMEM);
10fbe6: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10fbe9: 68 15 00 00 42 push $0x42000015 <== NOT EXECUTED
10fbee: eb 78 jmp 10fc68 <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 );
10fbf0: 51 push %ecx <== NOT EXECUTED
10fbf1: 51 push %ecx <== NOT EXECUTED
10fbf2: 50 push %eax <== NOT EXECUTED
10fbf3: 68 94 87 12 00 push $0x128794 <== NOT EXECUTED
10fbf8: e8 bf c2 ff ff call 10bebc <_Chain_Append> <== NOT EXECUTED
rtems_chain_append (&bdbuf_cache.swapout_workers, &worker->link);
worker->enabled = true;
10fbfd: c6 43 0c 01 movb $0x1,0xc(%ebx) <== NOT EXECUTED
worker->transfer.write_req = rtems_bdbuf_swapout_writereq_alloc ();
10fc01: e8 f4 f6 ff ff call 10f2fa <rtems_bdbuf_swapout_writereq_alloc><== NOT EXECUTED
10fc06: 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);
10fc09: 8d 43 14 lea 0x14(%ebx),%eax <== NOT EXECUTED
10fc0c: 89 43 10 mov %eax,0x10(%ebx) <== NOT EXECUTED
the_chain->permanent_null = NULL;
10fc0f: c7 43 14 00 00 00 00 movl $0x0,0x14(%ebx) <== NOT EXECUTED
the_chain->last = _Chain_Head(the_chain);
10fc16: 8d 43 10 lea 0x10(%ebx),%eax <== NOT EXECUTED
10fc19: 89 43 18 mov %eax,0x18(%ebx) <== NOT EXECUTED
rtems_chain_initialize_empty (&worker->transfer.bds);
worker->transfer.dev = BDBUF_INVALID_DEV;
10fc1c: c7 43 1c ff ff ff ff movl $0xffffffff,0x1c(%ebx) <== NOT EXECUTED
10fc23: 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),
10fc2a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10fc2d: 89 f8 mov %edi,%eax <== NOT EXECUTED
10fc2f: 85 ff test %edi,%edi <== NOT EXECUTED
10fc31: 75 05 jne 10fc38 <rtems_bdbuf_swapout_task+0xc2><== NOT EXECUTED
10fc33: b8 0f 00 00 00 mov $0xf,%eax <== NOT EXECUTED
10fc38: 52 push %edx <== NOT EXECUTED
10fc39: 52 push %edx <== NOT EXECUTED
10fc3a: 8d 53 08 lea 0x8(%ebx),%edx <== NOT EXECUTED
10fc3d: 52 push %edx <== NOT EXECUTED
10fc3e: 6a 00 push $0x0 <== NOT EXECUTED
10fc40: 68 00 04 00 00 push $0x400 <== NOT EXECUTED
10fc45: 68 00 20 00 00 push $0x2000 <== NOT EXECUTED
10fc4a: 50 push %eax <== NOT EXECUTED
10fc4b: 8d 46 61 lea 0x61(%esi),%eax <== NOT EXECUTED
10fc4e: 0d 00 6f 44 42 or $0x42446f00,%eax <== NOT EXECUTED
10fc53: 50 push %eax <== NOT EXECUTED
10fc54: e8 c3 ba 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)
10fc59: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
10fc5c: 85 c0 test %eax,%eax <== NOT EXECUTED
10fc5e: 74 0d je 10fc6d <rtems_bdbuf_swapout_task+0xf7><== NOT EXECUTED
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_SO_WK_CREATE);
10fc60: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10fc63: 68 16 00 00 42 push $0x42000016 <== NOT EXECUTED
10fc68: e8 7f be ff ff call 10baec <rtems_fatal_error_occurred><== NOT EXECUTED
sc = rtems_task_start (worker->id,
10fc6d: 50 push %eax <== NOT EXECUTED
10fc6e: 53 push %ebx <== NOT EXECUTED
10fc6f: 68 7b fe 10 00 push $0x10fe7b <== NOT EXECUTED
10fc74: ff 73 08 pushl 0x8(%ebx) <== NOT EXECUTED
10fc77: e8 c8 bc ff ff call 10b944 <rtems_task_start> <== NOT EXECUTED
rtems_bdbuf_swapout_worker_task,
(rtems_task_argument) worker);
if (sc != RTEMS_SUCCESSFUL)
10fc7c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10fc7f: 85 c0 test %eax,%eax <== NOT EXECUTED
10fc81: 74 0a je 10fc8d <rtems_bdbuf_swapout_task+0x117><== NOT EXECUTED
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_SO_WK_START);
10fc83: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10fc86: 68 17 00 00 42 push $0x42000017 <== NOT EXECUTED
10fc8b: eb db jmp 10fc68 <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++)
10fc8d: 46 inc %esi <== NOT EXECUTED
10fc8e: 3b 35 7c 0b 12 00 cmp 0x120b7c,%esi
10fc94: 0f 82 39 ff ff ff jb 10fbd3 <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 ();
10fc9a: e8 aa ee ff ff call 10eb49 <rtems_bdbuf_unlock_cache>
/*
* Create the worker threads.
*/
rtems_bdbuf_swapout_workers_open ();
while (bdbuf_cache.swapout_enabled)
10fc9f: e9 79 01 00 00 jmp 10fe1d <rtems_bdbuf_swapout_task+0x2a7>
10fca4: 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 ();
10fca9: e8 26 ed ff ff call 10e9d4 <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)
10fcae: a0 bc 87 12 00 mov 0x1287bc,%al
10fcb3: 84 c0 test %al,%al
10fcb5: 74 07 je 10fcbe <rtems_bdbuf_swapout_task+0x148>
10fcb7: 31 f6 xor %esi,%esi
10fcb9: 8d 5d c4 lea -0x3c(%ebp),%ebx
10fcbc: eb 1c jmp 10fcda <rtems_bdbuf_swapout_task+0x164>
*/
RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get(
rtems_chain_control *the_chain
)
{
return _Chain_Get( the_chain );
10fcbe: 83 ec 0c sub $0xc,%esp
10fcc1: 68 94 87 12 00 push $0x128794
10fcc6: e8 2d c2 ff ff call 10bef8 <_Chain_Get>
10fccb: 89 c6 mov %eax,%esi
worker = NULL;
else
{
worker = (rtems_bdbuf_swapout_worker*)
rtems_chain_get (&bdbuf_cache.swapout_workers);
if (worker)
10fccd: 83 c4 10 add $0x10,%esp
10fcd0: 8d 5d c4 lea -0x3c(%ebp),%ebx
10fcd3: 85 c0 test %eax,%eax
10fcd5: 74 03 je 10fcda <rtems_bdbuf_swapout_task+0x164><== ALWAYS TAKEN
transfer = &worker->transfer;
10fcd7: 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;
10fcda: 8d 43 04 lea 0x4(%ebx),%eax
10fcdd: 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);
10fce0: 89 03 mov %eax,(%ebx)
the_chain->permanent_null = NULL;
10fce2: c7 43 04 00 00 00 00 movl $0x0,0x4(%ebx)
the_chain->last = _Chain_Head(the_chain);
10fce9: 89 5b 08 mov %ebx,0x8(%ebx)
}
rtems_chain_initialize_empty (&transfer->bds);
transfer->dev = BDBUF_INVALID_DEV;
10fcec: c7 43 0c ff ff ff ff movl $0xffffffff,0xc(%ebx)
10fcf3: c7 43 10 ff ff ff ff movl $0xffffffff,0x10(%ebx)
transfer->syncing = bdbuf_cache.sync_active;
10fcfa: a0 bc 87 12 00 mov 0x1287bc,%al
10fcff: 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)
10fd02: a0 bc 87 12 00 mov 0x1287bc,%al
10fd07: 84 c0 test %al,%al
10fd09: 74 11 je 10fd1c <rtems_bdbuf_swapout_task+0x1a6>
transfer->dev = bdbuf_cache.sync_device;
10fd0b: a1 c4 87 12 00 mov 0x1287c4,%eax
10fd10: 8b 15 c8 87 12 00 mov 0x1287c8,%edx
10fd16: 89 43 0c mov %eax,0xc(%ebx)
10fd19: 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,
10fd1c: 8d 53 0c lea 0xc(%ebx),%edx
10fd1f: 89 55 b4 mov %edx,-0x4c(%ebp)
10fd22: 51 push %ecx
10fd23: ff 35 74 0b 12 00 pushl 0x120b74
10fd29: 6a 00 push $0x0
10fd2b: 6a 01 push $0x1
10fd2d: 89 d9 mov %ebx,%ecx
10fd2f: ba e8 87 12 00 mov $0x1287e8,%edx
10fd34: 8b 45 b4 mov -0x4c(%ebp),%eax
10fd37: e8 d8 ec ff ff call 10ea14 <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,
10fd3c: a0 bc 87 12 00 mov 0x1287bc,%al
timer_delta);
/*
* Process the cache's modified list.
*/
rtems_bdbuf_swapout_modified_processing (&transfer->dev,
10fd41: 83 c4 0c add $0xc,%esp
10fd44: ff 35 74 0b 12 00 pushl 0x120b74
10fd4a: 81 e7 ff 00 00 00 and $0xff,%edi
10fd50: 57 push %edi
10fd51: 0f b6 c0 movzbl %al,%eax
10fd54: 50 push %eax
10fd55: 89 d9 mov %ebx,%ecx
10fd57: ba dc 87 12 00 mov $0x1287dc,%edx
10fd5c: 8b 45 b4 mov -0x4c(%ebp),%eax
10fd5f: e8 b0 ec ff ff call 10ea14 <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 ();
10fd64: e8 e0 ed ff ff call 10eb49 <rtems_bdbuf_unlock_cache>
/*
* If there are buffers to transfer to the media transfer them.
*/
if (!rtems_chain_is_empty (&transfer->bds))
10fd69: 83 c4 10 add $0x10,%esp
10fd6c: 31 c0 xor %eax,%eax
10fd6e: 8b 55 b0 mov -0x50(%ebp),%edx
10fd71: 39 13 cmp %edx,(%ebx)
10fd73: 74 2d je 10fda2 <rtems_bdbuf_swapout_task+0x22c>
{
if (worker)
10fd75: 85 f6 test %esi,%esi
10fd77: 74 20 je 10fd99 <rtems_bdbuf_swapout_task+0x223><== ALWAYS TAKEN
{
rtems_status_code sc = rtems_event_send (worker->id,
10fd79: 52 push %edx <== NOT EXECUTED
10fd7a: 52 push %edx <== NOT EXECUTED
10fd7b: 6a 04 push $0x4 <== NOT EXECUTED
10fd7d: ff 76 08 pushl 0x8(%esi) <== NOT EXECUTED
10fd80: e8 b3 b3 ff ff call 10b138 <rtems_event_send> <== NOT EXECUTED
RTEMS_BDBUF_SWAPOUT_SYNC);
if (sc != RTEMS_SUCCESSFUL)
10fd85: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10fd88: 85 c0 test %eax,%eax <== NOT EXECUTED
10fd8a: 74 14 je 10fda0 <rtems_bdbuf_swapout_task+0x22a><== NOT EXECUTED
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_SO_WAKE);
10fd8c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10fd8f: 68 14 00 00 42 push $0x42000014 <== NOT EXECUTED
10fd94: e9 cf fe ff ff jmp 10fc68 <rtems_bdbuf_swapout_task+0xf2><== NOT EXECUTED
}
else
{
rtems_bdbuf_swapout_write (transfer);
10fd99: 89 d8 mov %ebx,%eax
10fd9b: e8 a2 fc ff ff call 10fa42 <rtems_bdbuf_swapout_write>
10fda0: b0 01 mov $0x1,%al
}
transfered_buffers = true;
}
if (bdbuf_cache.sync_active && !transfered_buffers)
10fda2: 8a 15 bc 87 12 00 mov 0x1287bc,%dl
10fda8: 84 d2 test %dl,%dl
10fdaa: 74 3e je 10fdea <rtems_bdbuf_swapout_task+0x274>
10fdac: 31 ff xor %edi,%edi
10fdae: 84 c0 test %al,%al
10fdb0: 0f 85 f3 fe ff ff jne 10fca9 <rtems_bdbuf_swapout_task+0x133>
{
rtems_id sync_requester;
rtems_bdbuf_lock_cache ();
10fdb6: e8 19 ec ff ff call 10e9d4 <rtems_bdbuf_lock_cache>
sync_requester = bdbuf_cache.sync_requester;
10fdbb: 8b 1d c0 87 12 00 mov 0x1287c0,%ebx
bdbuf_cache.sync_active = false;
10fdc1: c6 05 bc 87 12 00 00 movb $0x0,0x1287bc
bdbuf_cache.sync_requester = 0;
10fdc8: c7 05 c0 87 12 00 00 movl $0x0,0x1287c0
10fdcf: 00 00 00
rtems_bdbuf_unlock_cache ();
10fdd2: e8 72 ed ff ff call 10eb49 <rtems_bdbuf_unlock_cache>
if (sync_requester)
10fdd7: 85 db test %ebx,%ebx
10fdd9: 74 19 je 10fdf4 <rtems_bdbuf_swapout_task+0x27e><== NEVER TAKEN
rtems_event_send (sync_requester, RTEMS_BDBUF_TRANSFER_SYNC);
10fddb: 50 push %eax
10fddc: 50 push %eax
10fddd: 6a 02 push $0x2
10fddf: 53 push %ebx
10fde0: e8 53 b3 ff ff call 10b138 <rtems_event_send>
10fde5: 83 c4 10 add $0x10,%esp
10fde8: eb 0a jmp 10fdf4 <rtems_bdbuf_swapout_task+0x27e>
10fdea: 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,
10fdec: 84 c0 test %al,%al
10fdee: 0f 85 b5 fe ff ff jne 10fca9 <rtems_bdbuf_swapout_task+0x133>
*/
update_timers = false;
}
while (transfered_buffers);
sc = rtems_event_receive (RTEMS_BDBUF_SWAPOUT_SYNC,
10fdf4: 8d 45 e4 lea -0x1c(%ebp),%eax
10fdf7: 50 push %eax
10fdf8: ff 75 ac pushl -0x54(%ebp)
10fdfb: 6a 00 push $0x0
10fdfd: 6a 04 push $0x4
10fdff: e8 d4 b1 ff ff call 10afd8 <rtems_event_receive>
RTEMS_EVENT_ALL | RTEMS_WAIT,
period_in_ticks,
&out);
if ((sc != RTEMS_SUCCESSFUL) && (sc != RTEMS_TIMEOUT))
10fe04: 83 c4 10 add $0x10,%esp
10fe07: 83 f8 06 cmp $0x6,%eax
10fe0a: 74 11 je 10fe1d <rtems_bdbuf_swapout_task+0x2a7>
10fe0c: 85 c0 test %eax,%eax
10fe0e: 74 0d je 10fe1d <rtems_bdbuf_swapout_task+0x2a7><== ALWAYS TAKEN
rtems_fatal_error_occurred (BLKDEV_FATAL_BDBUF_SWAPOUT_RE);
10fe10: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10fe13: 68 18 00 00 42 push $0x42000018 <== NOT EXECUTED
10fe18: e9 4b fe ff ff jmp 10fc68 <rtems_bdbuf_swapout_task+0xf2><== NOT EXECUTED
/*
* Create the worker threads.
*/
rtems_bdbuf_swapout_workers_open ();
while (bdbuf_cache.swapout_enabled)
10fe1d: a0 90 87 12 00 mov 0x128790,%al
10fe22: 84 c0 test %al,%al
10fe24: 0f 85 7a fe ff ff jne 10fca4 <rtems_bdbuf_swapout_task+0x12e><== ALWAYS TAKEN
static void
rtems_bdbuf_swapout_workers_close (void)
{
rtems_chain_node* node;
rtems_bdbuf_lock_cache ();
10fe2a: e8 a5 eb ff ff call 10e9d4 <rtems_bdbuf_lock_cache><== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(
Chain_Control *the_chain
)
{
return the_chain->first;
10fe2f: 8b 1d 94 87 12 00 mov 0x128794,%ebx <== NOT EXECUTED
10fe35: eb 15 jmp 10fe4c <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;
10fe37: c6 43 0c 00 movb $0x0,0xc(%ebx) <== NOT EXECUTED
rtems_event_send (worker->id, RTEMS_BDBUF_SWAPOUT_SYNC);
10fe3b: 57 push %edi <== NOT EXECUTED
10fe3c: 57 push %edi <== NOT EXECUTED
10fe3d: 6a 04 push $0x4 <== NOT EXECUTED
10fe3f: ff 73 08 pushl 0x8(%ebx) <== NOT EXECUTED
10fe42: e8 f1 b2 ff ff call 10b138 <rtems_event_send> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Next(
Chain_Node *the_node
)
{
return the_node->next;
10fe47: 8b 1b mov (%ebx),%ebx <== NOT EXECUTED
10fe49: 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;
10fe4c: 81 fb 98 87 12 00 cmp $0x128798,%ebx <== NOT EXECUTED
10fe52: 75 e3 jne 10fe37 <rtems_bdbuf_swapout_task+0x2c1><== NOT EXECUTED
node = rtems_chain_next (node);
}
rtems_bdbuf_unlock_cache ();
10fe54: e8 f0 ec ff ff call 10eb49 <rtems_bdbuf_unlock_cache><== NOT EXECUTED
rtems_fatal_error_occurred (BLKDEV_FATAL_BDBUF_SWAPOUT_RE);
}
rtems_bdbuf_swapout_workers_close ();
free (transfer.write_req);
10fe59: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10fe5c: ff 75 dc pushl -0x24(%ebp) <== NOT EXECUTED
10fe5f: e8 24 85 ff ff call 108388 <free> <== NOT EXECUTED
rtems_task_delete (RTEMS_SELF);
10fe64: c7 04 24 00 00 00 00 movl $0x0,(%esp) <== NOT EXECUTED
10fe6b: e8 dc b9 ff ff call 10b84c <rtems_task_delete> <== NOT EXECUTED
10fe70: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
10fe73: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
10fe76: 5b pop %ebx <== NOT EXECUTED
10fe77: 5e pop %esi <== NOT EXECUTED
10fe78: 5f pop %edi <== NOT EXECUTED
10fe79: c9 leave <== NOT EXECUTED
10fe7a: c3 ret <== NOT EXECUTED
0010fe7b <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)
{
10fe7b: 55 push %ebp <== NOT EXECUTED
10fe7c: 89 e5 mov %esp,%ebp <== NOT EXECUTED
10fe7e: 57 push %edi <== NOT EXECUTED
10fe7f: 56 push %esi <== NOT EXECUTED
10fe80: 53 push %ebx <== NOT EXECUTED
10fe81: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10fe84: 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);
10fe87: 8d 73 10 lea 0x10(%ebx),%esi <== NOT EXECUTED
10fe8a: 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)
10fe8d: eb 46 jmp 10fed5 <rtems_bdbuf_swapout_worker_task+0x5a><== NOT EXECUTED
{
rtems_bdbuf_wait_for_event (RTEMS_BDBUF_SWAPOUT_SYNC);
10fe8f: b8 04 00 00 00 mov $0x4,%eax <== NOT EXECUTED
10fe94: e8 cd ee ff ff call 10ed66 <rtems_bdbuf_wait_for_event><== NOT EXECUTED
rtems_bdbuf_swapout_write (&worker->transfer);
10fe99: 89 f0 mov %esi,%eax <== NOT EXECUTED
10fe9b: e8 a2 fb ff ff call 10fa42 <rtems_bdbuf_swapout_write><== NOT EXECUTED
rtems_bdbuf_lock_cache ();
10fea0: e8 2f eb ff ff call 10e9d4 <rtems_bdbuf_lock_cache><== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
10fea5: 89 7b 10 mov %edi,0x10(%ebx) <== NOT EXECUTED
the_chain->permanent_null = NULL;
10fea8: c7 43 14 00 00 00 00 movl $0x0,0x14(%ebx) <== NOT EXECUTED
the_chain->last = _Chain_Head(the_chain);
10feaf: 89 73 18 mov %esi,0x18(%ebx) <== NOT EXECUTED
rtems_chain_initialize_empty (&worker->transfer.bds);
worker->transfer.dev = BDBUF_INVALID_DEV;
10feb2: c7 43 1c ff ff ff ff movl $0xffffffff,0x1c(%ebx) <== NOT EXECUTED
10feb9: 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 );
10fec0: 50 push %eax <== NOT EXECUTED
10fec1: 50 push %eax <== NOT EXECUTED
10fec2: 53 push %ebx <== NOT EXECUTED
10fec3: 68 94 87 12 00 push $0x128794 <== NOT EXECUTED
10fec8: e8 ef bf ff ff call 10bebc <_Chain_Append> <== NOT EXECUTED
rtems_chain_append (&bdbuf_cache.swapout_workers, &worker->link);
rtems_bdbuf_unlock_cache ();
10fecd: e8 77 ec ff ff call 10eb49 <rtems_bdbuf_unlock_cache><== NOT EXECUTED
10fed2: 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)
10fed5: 8a 43 0c mov 0xc(%ebx),%al <== NOT EXECUTED
10fed8: 84 c0 test %al,%al <== NOT EXECUTED
10feda: 75 b3 jne 10fe8f <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);
10fedc: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10fedf: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
10fee2: e8 a1 84 ff ff call 108388 <free> <== NOT EXECUTED
free (worker);
10fee7: 89 1c 24 mov %ebx,(%esp) <== NOT EXECUTED
10feea: e8 99 84 ff ff call 108388 <free> <== NOT EXECUTED
rtems_task_delete (RTEMS_SELF);
10feef: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10fef2: c7 45 08 00 00 00 00 movl $0x0,0x8(%ebp) <== NOT EXECUTED
}
10fef9: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
10fefc: 5b pop %ebx <== NOT EXECUTED
10fefd: 5e pop %esi <== NOT EXECUTED
10fefe: 5f pop %edi <== NOT EXECUTED
10feff: c9 leave <== NOT EXECUTED
}
free (worker->transfer.write_req);
free (worker);
rtems_task_delete (RTEMS_SELF);
10ff00: e9 47 b9 ff ff jmp 10b84c <rtems_task_delete> <== NOT EXECUTED
0010fa42 <rtems_bdbuf_swapout_write>:
*
* @param transfer The transfer transaction.
*/
static void
rtems_bdbuf_swapout_write (rtems_bdbuf_swapout_transfer* transfer)
{
10fa42: 55 push %ebp
10fa43: 89 e5 mov %esp,%ebp
10fa45: 57 push %edi
10fa46: 56 push %esi
10fa47: 53 push %ebx
10fa48: 83 ec 1c sub $0x1c,%esp
10fa4b: 89 c3 mov %eax,%ebx
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
10fa4d: 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))
10fa50: 39 38 cmp %edi,(%eax)
10fa52: 0f 84 16 01 00 00 je 10fb6e <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);
10fa58: 56 push %esi
10fa59: 56 push %esi
10fa5a: ff 70 10 pushl 0x10(%eax)
10fa5d: ff 70 0c pushl 0xc(%eax)
10fa60: e8 7c 7b ff ff call 1075e1 <rtems_disk_obtain>
10fa65: 89 c6 mov %eax,%esi
if (dd == NULL)
10fa67: 83 c4 10 add $0x10,%esp
10fa6a: 85 c0 test %eax,%eax
10fa6c: 75 05 jne 10fa73 <rtems_bdbuf_swapout_write+0x31>
10fa6e: be a4 68 12 00 mov $0x1268a4,%esi
dd = &null_disk;
bufs_per_bd = dd->block_size / bdbuf_config.buffer_min;
10fa73: 8b 46 20 mov 0x20(%esi),%eax
10fa76: 31 d2 xor %edx,%edx
10fa78: f7 35 88 0b 12 00 divl 0x120b88
10fa7e: 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;
10fa81: 8b 43 18 mov 0x18(%ebx),%eax
10fa84: c7 40 0c 0c 00 00 00 movl $0xc,0xc(%eax)
transfer->write_req->bufnum = 0;
10fa8b: 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))
10fa92: 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)
10fa99: e9 8d 00 00 00 jmp 10fb2b <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) &&
10fa9e: 8b 56 08 mov 0x8(%esi),%edx
10faa1: f6 42 0c 01 testb $0x1,0xc(%edx)
10faa5: 74 24 je 10facb <rtems_bdbuf_swapout_write+0x89><== ALWAYS TAKEN
transfer->write_req->bufnum &&
10faa7: 8b 53 18 mov 0x18(%ebx),%edx <== NOT EXECUTED
10faaa: 83 7a 10 00 cmpl $0x0,0x10(%edx) <== NOT EXECUTED
10faae: 74 1b je 10facb <rtems_bdbuf_swapout_write+0x89><== NOT EXECUTED
(bd->block != (last_block + bufs_per_bd)))
10fab0: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
10fab3: 03 55 e0 add -0x20(%ebp),%edx <== NOT EXECUTED
10fab6: 39 50 1c cmp %edx,0x1c(%eax) <== NOT EXECUTED
10fab9: 74 10 je 10facb <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);
10fabb: 51 push %ecx <== NOT EXECUTED
10fabc: 51 push %ecx <== NOT EXECUTED
10fabd: 50 push %eax <== NOT EXECUTED
10fabe: 53 push %ebx <== NOT EXECUTED
10fabf: e8 70 32 00 00 call 112d34 <_Chain_Insert> <== NOT EXECUTED
10fac4: 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) &&
10fac6: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10fac9: eb 2d jmp 10faf8 <rtems_bdbuf_swapout_write+0xb6><== NOT EXECUTED
write = true;
}
else
{
rtems_blkdev_sg_buffer* buf;
buf = &transfer->write_req->bufs[transfer->write_req->bufnum];
10facb: 8b 4b 18 mov 0x18(%ebx),%ecx
10face: 8b 51 10 mov 0x10(%ecx),%edx
transfer->write_req->bufnum++;
10fad1: 42 inc %edx
10fad2: 89 51 10 mov %edx,0x10(%ecx)
buf->user = bd;
10fad5: c1 e2 04 shl $0x4,%edx
10fad8: 8d 14 11 lea (%ecx,%edx,1),%edx
10fadb: 89 42 14 mov %eax,0x14(%edx)
buf->block = bd->block;
10fade: 8b 48 1c mov 0x1c(%eax),%ecx
10fae1: 89 4a 08 mov %ecx,0x8(%edx)
buf->length = dd->block_size;
10fae4: 8b 4e 20 mov 0x20(%esi),%ecx
10fae7: 89 4a 0c mov %ecx,0xc(%edx)
buf->buffer = bd->buffer;
10faea: 8b 48 20 mov 0x20(%eax),%ecx
10faed: 89 4a 10 mov %ecx,0x10(%edx)
last_block = bd->block;
10faf0: 8b 40 1c mov 0x1c(%eax),%eax
10faf3: 89 45 e4 mov %eax,-0x1c(%ebp)
10faf6: 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) ||
10faf8: 39 3b cmp %edi,(%ebx)
10fafa: 74 12 je 10fb0e <rtems_bdbuf_swapout_write+0xcc>
(transfer->write_req->bufnum >= bdbuf_config.max_write_blocks))
10fafc: 8b 53 18 mov 0x18(%ebx),%edx
10faff: 8b 0d 6c 0b 12 00 mov 0x120b6c,%ecx
10fb05: 39 4a 10 cmp %ecx,0x10(%edx)
10fb08: 73 04 jae 10fb0e <rtems_bdbuf_swapout_write+0xcc>
write = true;
if (write)
10fb0a: 84 c0 test %al,%al
10fb0c: 74 1d je 10fb2b <rtems_bdbuf_swapout_write+0xe9><== ALWAYS TAKEN
{
rtems_bdbuf_execute_transfer_request (dd, transfer->write_req, false);
10fb0e: 8b 53 18 mov 0x18(%ebx),%edx
10fb11: 31 c9 xor %ecx,%ecx
10fb13: 89 f0 mov %esi,%eax
10fb15: e8 48 fe ff ff call 10f962 <rtems_bdbuf_execute_transfer_request>
transfer->write_req->status = RTEMS_RESOURCE_IN_USE;
10fb1a: 8b 43 18 mov 0x18(%ebx),%eax
10fb1d: c7 40 0c 0c 00 00 00 movl $0xc,0xc(%eax)
transfer->write_req->bufnum = 0;
10fb24: 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 );
10fb2b: 83 ec 0c sub $0xc,%esp
10fb2e: 53 push %ebx
10fb2f: e8 c4 c3 ff ff call 10bef8 <_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)
10fb34: 83 c4 10 add $0x10,%esp
10fb37: 85 c0 test %eax,%eax
10fb39: 0f 85 5f ff ff ff jne 10fa9e <rtems_bdbuf_swapout_write+0x5c>
transfer->write_req->status = RTEMS_RESOURCE_IN_USE;
transfer->write_req->bufnum = 0;
}
}
if (dd != &null_disk)
10fb3f: 81 fe a4 68 12 00 cmp $0x1268a4,%esi
10fb45: 74 27 je 10fb6e <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 &&
10fb47: 80 7b 14 00 cmpb $0x0,0x14(%ebx)
10fb4b: 74 15 je 10fb62 <rtems_bdbuf_swapout_write+0x120>
(dd->phys_dev->capabilities & RTEMS_BLKDEV_CAP_SYNC))
10fb4d: 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 &&
10fb50: f6 40 0c 02 testb $0x2,0xc(%eax)
10fb54: 74 0c je 10fb62 <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);
10fb56: 52 push %edx <== NOT EXECUTED
10fb57: 6a 00 push $0x0 <== NOT EXECUTED
10fb59: 6a 02 push $0x2 <== NOT EXECUTED
10fb5b: 50 push %eax <== NOT EXECUTED
10fb5c: ff 56 28 call *0x28(%esi) <== NOT EXECUTED
10fb5f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
/* How should the error be handled ? */
}
rtems_disk_release (dd);
10fb62: 83 ec 0c sub $0xc,%esp
10fb65: 56 push %esi
10fb66: e8 fd 7b ff ff call 107768 <rtems_disk_release>
10fb6b: 83 c4 10 add $0x10,%esp
}
}
}
10fb6e: 8d 65 f4 lea -0xc(%ebp),%esp
10fb71: 5b pop %ebx
10fb72: 5e pop %esi
10fb73: 5f pop %edi
10fb74: c9 leave
10fb75: c3 ret
0010f2fa <rtems_bdbuf_swapout_writereq_alloc>:
*
* @return rtems_blkdev_request* The write reference memory.
*/
static rtems_blkdev_request*
rtems_bdbuf_swapout_writereq_alloc (void)
{
10f2fa: 55 push %ebp
10f2fb: 89 e5 mov %esp,%ebp
10f2fd: 53 push %ebx
10f2fe: 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) +
10f301: a1 6c 0b 12 00 mov 0x120b6c,%eax
10f306: c1 e0 04 shl $0x4,%eax
10f309: 83 c0 18 add $0x18,%eax
10f30c: 50 push %eax
10f30d: e8 16 93 ff ff call 108628 <malloc>
10f312: 89 c3 mov %eax,%ebx
(bdbuf_config.max_write_blocks * sizeof (rtems_blkdev_sg_buffer)));
if (!write_req)
10f314: 83 c4 10 add $0x10,%esp
10f317: 85 c0 test %eax,%eax
10f319: 75 0d jne 10f328 <rtems_bdbuf_swapout_writereq_alloc+0x2e><== ALWAYS TAKEN
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_SO_NOMEM);
10f31b: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10f31e: 68 15 00 00 42 push $0x42000015 <== NOT EXECUTED
10f323: e8 c4 c7 ff ff call 10baec <rtems_fatal_error_occurred><== NOT EXECUTED
write_req->req = RTEMS_BLKDEV_REQ_WRITE;
10f328: c7 00 01 00 00 00 movl $0x1,(%eax)
write_req->req_done = rtems_bdbuf_transfer_done;
10f32e: c7 40 04 44 ed 10 00 movl $0x10ed44,0x4(%eax)
write_req->done_arg = write_req;
10f335: 89 43 08 mov %eax,0x8(%ebx)
write_req->io_task = rtems_task_self ();
10f338: e8 ff 36 00 00 call 112a3c <rtems_task_self>
10f33d: 89 43 14 mov %eax,0x14(%ebx)
return write_req;
}
10f340: 89 d8 mov %ebx,%eax
10f342: 8b 5d fc mov -0x4(%ebp),%ebx
10f345: c9 leave
10f346: c3 ret
0010ff05 <rtems_bdbuf_sync>:
return RTEMS_SUCCESSFUL;
}
rtems_status_code
rtems_bdbuf_sync (rtems_bdbuf_buffer *bd)
{
10ff05: 55 push %ebp
10ff06: 89 e5 mov %esp,%ebp
10ff08: 53 push %ebx
10ff09: 83 ec 04 sub $0x4,%esp
10ff0c: 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)
10ff0f: 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)
10ff14: 80 3d 14 88 12 00 00 cmpb $0x0,0x128814
10ff1b: 0f 84 f4 00 00 00 je 110015 <rtems_bdbuf_sync+0x110><== NEVER TAKEN
return RTEMS_NOT_CONFIGURED;
if (bd == NULL)
10ff21: b0 09 mov $0x9,%al
10ff23: 85 db test %ebx,%ebx
10ff25: 0f 84 ea 00 00 00 je 110015 <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();
10ff2b: e8 a4 ea ff ff call 10e9d4 <rtems_bdbuf_lock_cache>
sc = rtems_bdbuf_check_bd_and_lock_cache (bd, "sync");
if (sc != RTEMS_SUCCESSFUL)
return sc;
switch (bd->state)
10ff30: 8b 43 24 mov 0x24(%ebx),%eax
10ff33: 83 f8 03 cmp $0x3,%eax
10ff36: 0f 82 be 00 00 00 jb 10fffa <rtems_bdbuf_sync+0xf5> <== NEVER TAKEN
10ff3c: 83 f8 05 cmp $0x5,%eax
10ff3f: 76 0e jbe 10ff4f <rtems_bdbuf_sync+0x4a>
10ff41: 83 f8 06 cmp $0x6,%eax
10ff44: 0f 85 b0 00 00 00 jne 10fffa <rtems_bdbuf_sync+0xf5> <== NEVER TAKEN
10ff4a: e9 a2 00 00 00 jmp 10fff1 <rtems_bdbuf_sync+0xec>
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
10ff4f: c7 43 24 08 00 00 00 movl $0x8,0x24(%ebx)
10ff56: 51 push %ecx
10ff57: 51 push %ecx
10ff58: 53 push %ebx
10ff59: 68 e8 87 12 00 push $0x1287e8
10ff5e: e8 59 bf ff ff call 10bebc <_Chain_Append>
{
rtems_bdbuf_set_state (bd, RTEMS_BDBUF_STATE_SYNC);
rtems_chain_append (&bdbuf_cache.sync, &bd->link);
if (bd->waiters)
10ff63: 8b 43 28 mov 0x28(%ebx),%eax
10ff66: 83 c4 10 add $0x10,%esp
10ff69: 85 c0 test %eax,%eax
10ff6b: 74 0a je 10ff77 <rtems_bdbuf_sync+0x72>
rtems_bdbuf_wake (&bdbuf_cache.access_waiters);
10ff6d: b8 f4 87 12 00 mov $0x1287f4,%eax
10ff72: e8 70 ea ff ff call 10e9e7 <rtems_bdbuf_wake>
rtems_bdbuf_wake_swapper ();
10ff77: e8 ff ec ff ff call 10ec7b <rtems_bdbuf_wake_swapper>
static void
rtems_bdbuf_wait_for_sync_done (rtems_bdbuf_buffer *bd)
{
while (true)
{
switch (bd->state)
10ff7c: 8b 43 24 mov 0x24(%ebx),%eax
10ff7f: 83 f8 01 cmp $0x1,%eax
10ff82: 72 18 jb 10ff9c <rtems_bdbuf_sync+0x97> <== NEVER TAKEN
10ff84: 83 f8 07 cmp $0x7,%eax
10ff87: 76 23 jbe 10ffac <rtems_bdbuf_sync+0xa7>
10ff89: 83 f8 0a cmp $0xa,%eax
10ff8c: 77 0e ja 10ff9c <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);
10ff8e: ba fc 87 12 00 mov $0x1287fc,%edx
10ff93: 89 d8 mov %ebx,%eax
10ff95: e8 60 ef ff ff call 10eefa <rtems_bdbuf_wait>
10ff9a: eb e0 jmp 10ff7c <rtems_bdbuf_sync+0x77>
break;
default:
rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_STATE_9);
10ff9c: 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);
10ff9f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10ffa2: c1 e0 10 shl $0x10,%eax <== NOT EXECUTED
10ffa5: 0d 07 00 00 42 or $0x42000007,%eax <== NOT EXECUTED
10ffaa: eb 5c jmp 110008 <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
10ffac: 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
10ffaf: 85 c0 test %eax,%eax
10ffb1: 75 5b jne 11000e <rtems_bdbuf_sync+0x109>
&& (bd->state == RTEMS_BDBUF_STATE_CACHED
|| bd->state == RTEMS_BDBUF_STATE_EMPTY))
10ffb3: 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
10ffb6: 83 f8 02 cmp $0x2,%eax
10ffb9: 74 06 je 10ffc1 <rtems_bdbuf_sync+0xbc>
&& (bd->state == RTEMS_BDBUF_STATE_CACHED
|| bd->state == RTEMS_BDBUF_STATE_EMPTY))
10ffbb: 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
10ffbe: 48 dec %eax
10ffbf: 75 4d jne 11000e <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)
10ffc1: 8b 43 24 mov 0x24(%ebx),%eax
10ffc4: 48 dec %eax
10ffc5: 75 1e jne 10ffe5 <rtems_bdbuf_sync+0xe0>
{
rtems_bdbuf_remove_from_tree (bd);
10ffc7: 89 d8 mov %ebx,%eax
10ffc9: e8 79 f3 ff ff call 10f347 <rtems_bdbuf_remove_from_tree>
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
10ffce: 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);
10ffd5: 52 push %edx
10ffd6: 52 push %edx
10ffd7: 53 push %ebx
10ffd8: 68 d0 87 12 00 push $0x1287d0
10ffdd: e8 52 2d 00 00 call 112d34 <_Chain_Insert>
10ffe2: 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);
10ffe5: b8 04 88 12 00 mov $0x128804,%eax
10ffea: e8 f8 e9 ff ff call 10e9e7 <rtems_bdbuf_wake>
10ffef: eb 1d jmp 11000e <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);
10fff1: 89 d8 mov %ebx,%eax
10fff3: e8 65 f6 ff ff call 10f65d <rtems_bdbuf_discard_buffer_after_access>
break;
10fff8: eb 14 jmp 11000e <rtems_bdbuf_sync+0x109>
default:
rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_STATE_5);
10fffa: 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);
10fffd: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
110000: c1 e0 10 shl $0x10,%eax <== NOT EXECUTED
110003: 0d 03 00 00 42 or $0x42000003,%eax <== NOT EXECUTED
110008: 50 push %eax <== NOT EXECUTED
110009: e8 de ba ff ff call 10baec <rtems_fatal_error_occurred><== NOT EXECUTED
}
if (rtems_bdbuf_tracer)
rtems_bdbuf_show_usage ();
rtems_bdbuf_unlock_cache ();
11000e: e8 36 eb ff ff call 10eb49 <rtems_bdbuf_unlock_cache>
110013: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
}
110015: 8b 5d fc mov -0x4(%ebp),%ebx
110018: c9 leave
110019: c3 ret
0010eda2 <rtems_bdbuf_syncdev>:
return RTEMS_SUCCESSFUL;
}
rtems_status_code
rtems_bdbuf_syncdev (dev_t dev)
{
10eda2: 55 push %ebp
10eda3: 89 e5 mov %esp,%ebp
10eda5: 57 push %edi
10eda6: 56 push %esi
10eda7: 53 push %ebx
10eda8: 83 ec 20 sub $0x20,%esp
10edab: 8b 5d 08 mov 0x8(%ebp),%ebx
10edae: 8b 75 0c mov 0xc(%ebp),%esi
rtems_status_code sc = RTEMS_SUCCESSFUL;
rtems_disk_device *dd = NULL;
10edb1: 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);
10edb8: 6a 00 push $0x0
10edba: 6a 00 push $0x0
10edbc: 8d 45 e4 lea -0x1c(%ebp),%eax
10edbf: 50 push %eax
10edc0: 31 c9 xor %ecx,%ecx
10edc2: 89 d8 mov %ebx,%eax
10edc4: 89 f2 mov %esi,%edx
10edc6: e8 cc fd ff ff call 10eb97 <rtems_bdbuf_obtain_disk>
10edcb: 89 c7 mov %eax,%edi
if (sc != RTEMS_SUCCESSFUL)
10edcd: 83 c4 10 add $0x10,%esp
10edd0: 85 c0 test %eax,%eax
10edd2: 75 52 jne 10ee26 <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);
10edd4: ba 0b 00 00 42 mov $0x4200000b,%edx
10edd9: a1 b8 87 12 00 mov 0x1287b8,%eax
10edde: e8 c9 fb ff ff call 10e9ac <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 ();
10ede3: e8 ec fb ff ff call 10e9d4 <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;
10ede8: c6 05 bc 87 12 00 01 movb $0x1,0x1287bc
bdbuf_cache.sync_requester = rtems_task_self ();
10edef: e8 48 3c 00 00 call 112a3c <rtems_task_self>
10edf4: a3 c0 87 12 00 mov %eax,0x1287c0
bdbuf_cache.sync_device = dev;
10edf9: 89 1d c4 87 12 00 mov %ebx,0x1287c4
10edff: 89 35 c8 87 12 00 mov %esi,0x1287c8
rtems_bdbuf_wake_swapper ();
10ee05: e8 71 fe ff ff call 10ec7b <rtems_bdbuf_wake_swapper>
rtems_bdbuf_unlock_cache ();
10ee0a: e8 3a fd ff ff call 10eb49 <rtems_bdbuf_unlock_cache>
rtems_bdbuf_wait_for_event (RTEMS_BDBUF_TRANSFER_SYNC);
10ee0f: b8 02 00 00 00 mov $0x2,%eax
10ee14: e8 4d ff ff ff call 10ed66 <rtems_bdbuf_wait_for_event>
rtems_bdbuf_unlock_sync ();
10ee19: e8 52 fd ff ff call 10eb70 <rtems_bdbuf_unlock_sync>
rtems_bdbuf_release_disk (dd);
10ee1e: 8b 45 e4 mov -0x1c(%ebp),%eax
10ee21: e8 33 fe ff ff call 10ec59 <rtems_bdbuf_release_disk>
return RTEMS_SUCCESSFUL;
}
10ee26: 89 f8 mov %edi,%eax
10ee28: 8d 65 f4 lea -0xc(%ebp),%esp
10ee2b: 5b pop %ebx
10ee2c: 5e pop %esi
10ee2d: 5f pop %edi
10ee2e: c9 leave
10ee2f: c3 ret
0010eb49 <rtems_bdbuf_unlock_cache>:
/**
* Unlock the cache.
*/
static void
rtems_bdbuf_unlock_cache (void)
{
10eb49: 55 push %ebp
10eb4a: 89 e5 mov %esp,%ebp
10eb4c: 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);
10eb4f: ff 35 b4 87 12 00 pushl 0x1287b4
10eb55: e8 32 cb ff ff call 10b68c <rtems_semaphore_release>
if (sc != RTEMS_SUCCESSFUL)
10eb5a: 83 c4 10 add $0x10,%esp
10eb5d: 85 c0 test %eax,%eax
10eb5f: 74 0d je 10eb6e <rtems_bdbuf_unlock_cache+0x25><== ALWAYS TAKEN
rtems_fatal_error_occurred (fatal_error_code);
10eb61: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10eb64: 68 0e 00 00 42 push $0x4200000e <== NOT EXECUTED
10eb69: e8 7e cf ff ff call 10baec <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);
}
10eb6e: c9 leave
10eb6f: c3 ret
0010eb70 <rtems_bdbuf_unlock_sync>:
/**
* Unlock the cache's sync lock. Any blocked writers are woken.
*/
static void
rtems_bdbuf_unlock_sync (void)
{
10eb70: 55 push %ebp
10eb71: 89 e5 mov %esp,%ebp
10eb73: 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);
10eb76: ff 35 b8 87 12 00 pushl 0x1287b8
10eb7c: e8 0b cb ff ff call 10b68c <rtems_semaphore_release>
if (sc != RTEMS_SUCCESSFUL)
10eb81: 83 c4 10 add $0x10,%esp
10eb84: 85 c0 test %eax,%eax
10eb86: 74 0d je 10eb95 <rtems_bdbuf_unlock_sync+0x25><== ALWAYS TAKEN
rtems_fatal_error_occurred (fatal_error_code);
10eb88: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10eb8b: 68 0c 00 00 42 push $0x4200000c <== NOT EXECUTED
10eb90: e8 57 cf ff ff call 10baec <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);
}
10eb95: c9 leave
10eb96: c3 ret
0010ed66 <rtems_bdbuf_wait_for_event>:
return RTEMS_UNSATISFIED;
}
static void
rtems_bdbuf_wait_for_event (rtems_event_set event)
{
10ed66: 55 push %ebp
10ed67: 89 e5 mov %esp,%ebp
10ed69: 53 push %ebx
10ed6a: 83 ec 14 sub $0x14,%esp
10ed6d: 89 c3 mov %eax,%ebx
rtems_status_code sc = RTEMS_SUCCESSFUL;
rtems_event_set out = 0;
10ed6f: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
sc = rtems_event_receive (event,
10ed76: 8d 45 f4 lea -0xc(%ebp),%eax
10ed79: 50 push %eax
10ed7a: 6a 00 push $0x0
10ed7c: 6a 00 push $0x0
10ed7e: 53 push %ebx
10ed7f: e8 54 c2 ff ff call 10afd8 <rtems_event_receive>
RTEMS_EVENT_ALL | RTEMS_WAIT,
RTEMS_NO_TIMEOUT,
&out);
if (sc != RTEMS_SUCCESSFUL || out != event)
10ed84: 83 c4 10 add $0x10,%esp
10ed87: 85 c0 test %eax,%eax
10ed89: 75 05 jne 10ed90 <rtems_bdbuf_wait_for_event+0x2a><== NEVER TAKEN
10ed8b: 39 5d f4 cmp %ebx,-0xc(%ebp)
10ed8e: 74 0d je 10ed9d <rtems_bdbuf_wait_for_event+0x37><== ALWAYS TAKEN
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_WAIT_EVNT);
10ed90: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10ed93: 68 1a 00 00 42 push $0x4200001a <== NOT EXECUTED
10ed98: e8 4f cd ff ff call 10baec <rtems_fatal_error_occurred><== NOT EXECUTED
}
10ed9d: 8b 5d fc mov -0x4(%ebp),%ebx
10eda0: c9 leave
10eda1: c3 ret
0010e9e7 <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)
{
10e9e7: 55 push %ebp
10e9e8: 89 e5 mov %esp,%ebp
10e9ea: 83 ec 08 sub $0x8,%esp
rtems_status_code sc = RTEMS_SUCCESSFUL;
if (waiters->count > 0)
10e9ed: 8b 10 mov (%eax),%edx
10e9ef: 85 d2 test %edx,%edx
10e9f1: 74 1f je 10ea12 <rtems_bdbuf_wake+0x2b>
{
sc = rtems_semaphore_flush (waiters->sema);
10e9f3: 83 ec 0c sub $0xc,%esp
10e9f6: ff 70 04 pushl 0x4(%eax)
10e9f9: e8 aa 3e 00 00 call 1128a8 <rtems_semaphore_flush>
if (sc != RTEMS_SUCCESSFUL)
10e9fe: 83 c4 10 add $0x10,%esp
10ea01: 85 c0 test %eax,%eax
10ea03: 74 0d je 10ea12 <rtems_bdbuf_wake+0x2b> <== ALWAYS TAKEN
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_CACHE_WAKE);
10ea05: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10ea08: 68 13 00 00 42 push $0x42000013 <== NOT EXECUTED
10ea0d: e8 da d0 ff ff call 10baec <rtems_fatal_error_occurred><== NOT EXECUTED
}
}
10ea12: c9 leave
10ea13: c3 ret
0010ec7b <rtems_bdbuf_wake_swapper>:
}
}
static void
rtems_bdbuf_wake_swapper (void)
{
10ec7b: 55 push %ebp
10ec7c: 89 e5 mov %esp,%ebp
10ec7e: 83 ec 10 sub $0x10,%esp
rtems_status_code sc = rtems_event_send (bdbuf_cache.swapout,
10ec81: 6a 04 push $0x4
10ec83: ff 35 8c 87 12 00 pushl 0x12878c
10ec89: e8 aa c4 ff ff call 10b138 <rtems_event_send>
RTEMS_BDBUF_SWAPOUT_SYNC);
if (sc != RTEMS_SUCCESSFUL)
10ec8e: 83 c4 10 add $0x10,%esp
10ec91: 85 c0 test %eax,%eax
10ec93: 74 0d je 10eca2 <rtems_bdbuf_wake_swapper+0x27><== ALWAYS TAKEN
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_SO_WAKE);
10ec95: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10ec98: 68 14 00 00 42 push $0x42000014 <== NOT EXECUTED
10ec9d: e8 4a ce ff ff call 10baec <rtems_fatal_error_occurred><== NOT EXECUTED
}
10eca2: c9 leave
10eca3: c3 ret
00123984 <rtems_bdpart_create>:
const rtems_bdpart_format *format,
rtems_bdpart_partition *pt,
const unsigned *dist,
size_t count
)
{
123984: 55 push %ebp <== NOT EXECUTED
123985: 89 e5 mov %esp,%ebp <== NOT EXECUTED
123987: 57 push %edi <== NOT EXECUTED
123988: 56 push %esi <== NOT EXECUTED
123989: 53 push %ebx <== NOT EXECUTED
12398a: 83 ec 4c sub $0x4c,%esp <== NOT EXECUTED
12398d: 8b 7d 0c mov 0xc(%ebp),%edi <== NOT EXECUTED
123990: 8b 75 18 mov 0x18(%ebp),%esi <== NOT EXECUTED
rtems_status_code sc = RTEMS_SUCCESSFUL;
bool dos_compatibility = format != NULL
123993: 85 ff test %edi,%edi <== NOT EXECUTED
123995: 74 0b je 1239a2 <rtems_bdpart_create+0x1e><== NOT EXECUTED
&& format->type == RTEMS_BDPART_FORMAT_MBR
123997: 83 3f 00 cmpl $0x0,(%edi) <== NOT EXECUTED
12399a: 75 06 jne 1239a2 <rtems_bdpart_create+0x1e><== NOT EXECUTED
12399c: 0f b6 47 08 movzbl 0x8(%edi),%eax <== NOT EXECUTED
1239a0: eb 02 jmp 1239a4 <rtems_bdpart_create+0x20><== NOT EXECUTED
1239a2: 31 c0 xor %eax,%eax <== NOT EXECUTED
&& format->mbr.dos_compatibility;
1239a4: 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;
1239a7: 3c 01 cmp $0x1,%al <== NOT EXECUTED
1239a9: 19 db sbb %ebx,%ebx <== NOT EXECUTED
1239ab: 83 e3 c2 and $0xffffffc2,%ebx <== NOT EXECUTED
1239ae: 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) {
1239b1: 31 c9 xor %ecx,%ecx <== NOT EXECUTED
1239b3: 85 f6 test %esi,%esi <== NOT EXECUTED
1239b5: 0f 84 68 01 00 00 je 123b23 <rtems_bdpart_create+0x19f><== NOT EXECUTED
/* Nothing to do */
return RTEMS_SUCCESSFUL;
}
/* Check parameter */
if (format == NULL || pt == NULL || dist == NULL) {
1239bb: 83 7d 10 00 cmpl $0x0,0x10(%ebp) <== NOT EXECUTED
1239bf: 0f 84 52 01 00 00 je 123b17 <rtems_bdpart_create+0x193><== NOT EXECUTED
1239c5: 85 ff test %edi,%edi <== NOT EXECUTED
1239c7: 0f 84 4a 01 00 00 je 123b17 <rtems_bdpart_create+0x193><== NOT EXECUTED
1239cd: 83 7d 14 00 cmpl $0x0,0x14(%ebp) <== NOT EXECUTED
1239d1: 0f 84 40 01 00 00 je 123b17 <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;
1239d7: c7 45 d8 00 00 00 00 movl $0x0,-0x28(%ebp) <== NOT EXECUTED
1239de: 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;
1239e5: 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);
1239ec: 50 push %eax <== NOT EXECUTED
1239ed: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
1239f0: 50 push %eax <== NOT EXECUTED
1239f1: 8d 45 d8 lea -0x28(%ebp),%eax <== NOT EXECUTED
1239f4: 50 push %eax <== NOT EXECUTED
1239f5: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
1239f8: e8 20 05 00 00 call 123f1d <rtems_bdpart_get_disk_data><== NOT EXECUTED
1239fd: 89 c1 mov %eax,%ecx <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
1239ff: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
123a02: 85 c0 test %eax,%eax <== NOT EXECUTED
123a04: 0f 85 19 01 00 00 jne 123b23 <rtems_bdpart_create+0x19f><== NOT EXECUTED
123a0a: 31 c0 xor %eax,%eax <== NOT EXECUTED
123a0c: c7 45 d0 00 00 00 00 movl $0x0,-0x30(%ebp) <== NOT EXECUTED
123a13: 89 4d cc mov %ecx,-0x34(%ebp) <== NOT EXECUTED
123a16: eb 1d jmp 123a35 <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];
123a18: 8b 4d 14 mov 0x14(%ebp),%ecx <== NOT EXECUTED
123a1b: 8b 14 81 mov (%ecx,%eax,4),%edx <== NOT EXECUTED
if (dist_sum < prev_sum) {
123a1e: 8b 4d d0 mov -0x30(%ebp),%ecx <== NOT EXECUTED
123a21: 01 d1 add %edx,%ecx <== NOT EXECUTED
123a23: 89 4d d0 mov %ecx,-0x30(%ebp) <== NOT EXECUTED
123a26: 0f 82 f2 00 00 00 jb 123b1e <rtems_bdpart_create+0x19a><== NOT EXECUTED
return RTEMS_INVALID_NUMBER;
}
if (dist [i] == 0) {
123a2c: 85 d2 test %edx,%edx <== NOT EXECUTED
123a2e: 0f 84 ea 00 00 00 je 123b1e <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) {
123a34: 40 inc %eax <== NOT EXECUTED
123a35: 39 f0 cmp %esi,%eax <== NOT EXECUTED
123a37: 72 df jb 123a18 <rtems_bdpart_create+0x94><== NOT EXECUTED
123a39: 8b 4d cc mov -0x34(%ebp),%ecx <== NOT EXECUTED
return RTEMS_INVALID_NUMBER;
}
}
/* Check format */
if (format->type != RTEMS_BDPART_FORMAT_MBR) {
123a3c: 83 3f 00 cmpl $0x0,(%edi) <== NOT EXECUTED
123a3f: 74 0a je 123a4b <rtems_bdpart_create+0xc7><== NOT EXECUTED
123a41: b9 18 00 00 00 mov $0x18,%ecx <== NOT EXECUTED
123a46: e9 d8 00 00 00 jmp 123b23 <rtems_bdpart_create+0x19f><== NOT EXECUTED
return RTEMS_NOT_IMPLEMENTED;
}
/* Align end of disk on cylinder boundary if necessary */
if (dos_compatibility) {
123a4b: 80 7d d4 00 cmpb $0x0,-0x2c(%ebp) <== NOT EXECUTED
123a4f: 74 0e je 123a5f <rtems_bdpart_create+0xdb><== NOT EXECUTED
disk_end -= (disk_end % record_space);
123a51: 8b 7d e4 mov -0x1c(%ebp),%edi <== NOT EXECUTED
123a54: 89 f8 mov %edi,%eax <== NOT EXECUTED
123a56: 31 d2 xor %edx,%edx <== NOT EXECUTED
123a58: f7 f3 div %ebx <== NOT EXECUTED
123a5a: 29 d7 sub %edx,%edi <== NOT EXECUTED
123a5c: 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) {
123a5f: 89 d8 mov %ebx,%eax <== NOT EXECUTED
123a61: 83 fe 04 cmp $0x4,%esi <== NOT EXECUTED
123a64: 76 08 jbe 123a6e <rtems_bdpart_create+0xea><== NOT EXECUTED
overhead += (count - 3) * record_space;
123a66: 8d 46 fd lea -0x3(%esi),%eax <== NOT EXECUTED
123a69: 0f af c3 imul %ebx,%eax <== NOT EXECUTED
123a6c: 01 d8 add %ebx,%eax <== NOT EXECUTED
/*
* Account space to align every partition on cylinder boundaries if
* necessary.
*/
if (dos_compatibility) {
123a6e: 80 7d d4 00 cmpb $0x0,-0x2c(%ebp) <== NOT EXECUTED
123a72: 74 08 je 123a7c <rtems_bdpart_create+0xf8><== NOT EXECUTED
overhead += (count - 1) * record_space;
123a74: 8d 56 ff lea -0x1(%esi),%edx <== NOT EXECUTED
123a77: 0f af d3 imul %ebx,%edx <== NOT EXECUTED
123a7a: 01 d0 add %edx,%eax <== NOT EXECUTED
}
/* Check disk space */
if ((overhead + count) > disk_end) {
123a7c: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
123a7f: 89 55 c8 mov %edx,-0x38(%ebp) <== NOT EXECUTED
123a82: 8d 14 30 lea (%eax,%esi,1),%edx <== NOT EXECUTED
123a85: 3b 55 c8 cmp -0x38(%ebp),%edx <== NOT EXECUTED
123a88: 76 0a jbe 123a94 <rtems_bdpart_create+0x110><== NOT EXECUTED
123a8a: b9 1b 00 00 00 mov $0x1b,%ecx <== NOT EXECUTED
123a8f: e9 8f 00 00 00 jmp 123b23 <rtems_bdpart_create+0x19f><== NOT EXECUTED
/* Begin of first primary partition */
pos = record_space;
/* Space for partitions */
free_space = disk_end - overhead;
123a94: 8b 55 c8 mov -0x38(%ebp),%edx <== NOT EXECUTED
123a97: 29 c2 sub %eax,%edx <== NOT EXECUTED
123a99: 89 55 c4 mov %edx,-0x3c(%ebp) <== NOT EXECUTED
123a9c: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
123a9f: 89 45 cc mov %eax,-0x34(%ebp) <== NOT EXECUTED
123aa2: 89 df mov %ebx,%edi <== NOT EXECUTED
123aa4: c7 45 d4 00 00 00 00 movl $0x0,-0x2c(%ebp) <== NOT EXECUTED
123aab: 89 5d b4 mov %ebx,-0x4c(%ebp) <== NOT EXECUTED
for (i = 0; i < count; ++i) {
123aae: eb 52 jmp 123b02 <rtems_bdpart_create+0x17e><== NOT EXECUTED
rtems_bdpart_partition *p = pt + i;
/* Partition size */
rtems_blkdev_bnum s = free_space * dist [i];
123ab0: 8b 5d d4 mov -0x2c(%ebp),%ebx <== NOT EXECUTED
123ab3: 8b 45 14 mov 0x14(%ebp),%eax <== NOT EXECUTED
123ab6: 8b 14 98 mov (%eax,%ebx,4),%edx <== NOT EXECUTED
123ab9: 8b 45 c4 mov -0x3c(%ebp),%eax <== NOT EXECUTED
123abc: 0f af c2 imul %edx,%eax <== NOT EXECUTED
if (s < free_space || s < dist [i]) {
123abf: 3b 45 c4 cmp -0x3c(%ebp),%eax <== NOT EXECUTED
123ac2: 72 5a jb 123b1e <rtems_bdpart_create+0x19a><== NOT EXECUTED
123ac4: 39 d0 cmp %edx,%eax <== NOT EXECUTED
123ac6: 72 56 jb 123b1e <rtems_bdpart_create+0x19a><== NOT EXECUTED
/* TODO: Calculate without overflow */
return RTEMS_INVALID_NUMBER;
}
s /= dist_sum;
123ac8: 31 d2 xor %edx,%edx <== NOT EXECUTED
123aca: f7 75 d0 divl -0x30(%ebp) <== NOT EXECUTED
/* Ensure that the partition is not empty */
if (s == 0) {
123acd: 85 c0 test %eax,%eax <== NOT EXECUTED
123acf: 75 02 jne 123ad3 <rtems_bdpart_create+0x14f><== NOT EXECUTED
123ad1: b0 01 mov $0x1,%al <== NOT EXECUTED
/* Align partition upwards */
s += record_space - (s % record_space);
/* Partition begin and end */
p->begin = pos;
123ad3: 8b 55 cc mov -0x34(%ebp),%edx <== NOT EXECUTED
123ad6: 89 3a mov %edi,(%edx) <== NOT EXECUTED
if (s == 0) {
s = 1;
}
/* Align partition upwards */
s += record_space - (s % record_space);
123ad8: 8b 55 b4 mov -0x4c(%ebp),%edx <== NOT EXECUTED
123adb: 8d 1c 17 lea (%edi,%edx,1),%ebx <== NOT EXECUTED
/* Partition begin and end */
p->begin = pos;
pos += s;
123ade: 8d 3c 03 lea (%ebx,%eax,1),%edi <== NOT EXECUTED
123ae1: 31 d2 xor %edx,%edx <== NOT EXECUTED
123ae3: f7 75 b4 divl -0x4c(%ebp) <== NOT EXECUTED
123ae6: 29 d7 sub %edx,%edi <== NOT EXECUTED
p->end = pos;
123ae8: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED
123aeb: 89 78 04 mov %edi,0x4(%eax) <== NOT EXECUTED
/* Reserve space for the EBR if necessary */
if (count > 4 && i > 2) {
123aee: 83 7d d4 02 cmpl $0x2,-0x2c(%ebp) <== NOT EXECUTED
123af2: 76 07 jbe 123afb <rtems_bdpart_create+0x177><== NOT EXECUTED
123af4: 83 fe 04 cmp $0x4,%esi <== NOT EXECUTED
123af7: 76 02 jbe 123afb <rtems_bdpart_create+0x177><== NOT EXECUTED
p->begin += record_space;
123af9: 89 18 mov %ebx,(%eax) <== NOT EXECUTED
pos = record_space;
/* Space for partitions */
free_space = disk_end - overhead;
for (i = 0; i < count; ++i) {
123afb: ff 45 d4 incl -0x2c(%ebp) <== NOT EXECUTED
123afe: 83 45 cc 30 addl $0x30,-0x34(%ebp) <== NOT EXECUTED
123b02: 39 75 d4 cmp %esi,-0x2c(%ebp) <== NOT EXECUTED
123b05: 72 a9 jb 123ab0 <rtems_bdpart_create+0x12c><== NOT EXECUTED
p->begin += record_space;
}
}
/* Expand the last partition to the disk end */
pt [count - 1].end = disk_end;
123b07: 4e dec %esi <== NOT EXECUTED
123b08: 6b f6 30 imul $0x30,%esi,%esi <== NOT EXECUTED
123b0b: 8b 5d c8 mov -0x38(%ebp),%ebx <== NOT EXECUTED
123b0e: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
123b11: 89 5c 16 04 mov %ebx,0x4(%esi,%edx,1) <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
123b15: eb 0c jmp 123b23 <rtems_bdpart_create+0x19f><== NOT EXECUTED
123b17: b9 09 00 00 00 mov $0x9,%ecx <== NOT EXECUTED
123b1c: eb 05 jmp 123b23 <rtems_bdpart_create+0x19f><== NOT EXECUTED
123b1e: b9 0a 00 00 00 mov $0xa,%ecx <== NOT EXECUTED
}
123b23: 89 c8 mov %ecx,%eax <== NOT EXECUTED
123b25: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
123b28: 5b pop %ebx <== NOT EXECUTED
123b29: 5e pop %esi <== NOT EXECUTED
123b2a: 5f pop %edi <== NOT EXECUTED
123b2b: c9 leave <== NOT EXECUTED
123b2c: c3 ret <== NOT EXECUTED
00123b30 <rtems_bdpart_dump>:
{
uuid_unparse_lower( type, str);
}
void rtems_bdpart_dump( const rtems_bdpart_partition *pt, size_t count)
{
123b30: 55 push %ebp <== NOT EXECUTED
123b31: 89 e5 mov %esp,%ebp <== NOT EXECUTED
123b33: 57 push %edi <== NOT EXECUTED
123b34: 56 push %esi <== NOT EXECUTED
123b35: 53 push %ebx <== NOT EXECUTED
123b36: 83 ec 68 sub $0x68,%esp <== NOT EXECUTED
size_t i = 0;
printf(
123b39: 68 a0 96 15 00 push $0x1596a0 <== NOT EXECUTED
123b3e: e8 85 d3 01 00 call 140ec8 <puts> <== NOT EXECUTED
123b43: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
123b46: 31 ff xor %edi,%edi <== NOT EXECUTED
"------------+------------+-----------------------------------------------------\n"
" BEGIN | END | TYPE\n"
"------------+------------+-----------------------------------------------------\n"
);
for (i = 0; i < count; ++i) {
123b48: 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);
123b4b: 8d 75 b3 lea -0x4d(%ebp),%esi <== NOT EXECUTED
"------------+------------+-----------------------------------------------------\n"
" BEGIN | END | TYPE\n"
"------------+------------+-----------------------------------------------------\n"
);
for (i = 0; i < count; ++i) {
123b4e: e9 99 00 00 00 jmp 123bec <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;
123b53: c6 45 e7 00 movb $0x0,-0x19(%ebp) <== NOT EXECUTED
if (rtems_bdpart_to_mbr_partition_type( p->type, &type_mbr)) {
123b57: 8d 53 08 lea 0x8(%ebx),%edx <== NOT EXECUTED
123b5a: 51 push %ecx <== NOT EXECUTED
123b5b: 51 push %ecx <== NOT EXECUTED
123b5c: 8d 45 e7 lea -0x19(%ebp),%eax <== NOT EXECUTED
123b5f: 50 push %eax <== NOT EXECUTED
123b60: 52 push %edx <== NOT EXECUTED
123b61: 89 55 a4 mov %edx,-0x5c(%ebp) <== NOT EXECUTED
123b64: e8 2c 04 00 00 call 123f95 <rtems_bdpart_to_mbr_partition_type><== NOT EXECUTED
123b69: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
123b6c: 84 c0 test %al,%al <== NOT EXECUTED
123b6e: 8b 55 a4 mov -0x5c(%ebp),%edx <== NOT EXECUTED
123b71: 74 54 je 123bc7 <rtems_bdpart_dump+0x97><== NOT EXECUTED
switch (type_mbr) {
123b73: 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;
123b76: b8 f9 97 15 00 mov $0x1597f9,%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) {
123b7b: 80 fa 0b cmp $0xb,%dl <== NOT EXECUTED
123b7e: 74 55 je 123bd5 <rtems_bdpart_dump+0xa5><== NOT EXECUTED
123b80: 77 14 ja 123b96 <rtems_bdpart_dump+0x66><== NOT EXECUTED
123b82: b8 e7 97 15 00 mov $0x1597e7,%eax <== NOT EXECUTED
123b87: 80 fa 01 cmp $0x1,%dl <== NOT EXECUTED
123b8a: 74 49 je 123bd5 <rtems_bdpart_dump+0xa5><== NOT EXECUTED
123b8c: b8 e0 97 15 00 mov $0x1597e0,%eax <== NOT EXECUTED
123b91: 80 fa 04 cmp $0x4,%dl <== NOT EXECUTED
123b94: eb 1c jmp 123bb2 <rtems_bdpart_dump+0x82><== NOT EXECUTED
123b96: b8 ee 97 15 00 mov $0x1597ee,%eax <== NOT EXECUTED
123b9b: 80 fa 0e cmp $0xe,%dl <== NOT EXECUTED
123b9e: 74 35 je 123bd5 <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;
123ba0: b8 0b 98 15 00 mov $0x15980b,%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) {
123ba5: 80 fa da cmp $0xda,%dl <== NOT EXECUTED
123ba8: 74 2b je 123bd5 <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;
123baa: b8 00 98 15 00 mov $0x159800,%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) {
123baf: 80 fa 0c cmp $0xc,%dl <== NOT EXECUTED
123bb2: 74 21 je 123bd5 <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);
123bb4: 0f b6 d2 movzbl %dl,%edx <== NOT EXECUTED
123bb7: 52 push %edx <== NOT EXECUTED
123bb8: 68 10 98 15 00 push $0x159810 <== NOT EXECUTED
123bbd: 6a 34 push $0x34 <== NOT EXECUTED
123bbf: 56 push %esi <== NOT EXECUTED
123bc0: e8 5b e5 01 00 call 142120 <snprintf> <== NOT EXECUTED
123bc5: eb 09 jmp 123bd0 <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);
123bc7: 50 push %eax <== NOT EXECUTED
123bc8: 50 push %eax <== NOT EXECUTED
123bc9: 56 push %esi <== NOT EXECUTED
123bca: 52 push %edx <== NOT EXECUTED
123bcb: e8 48 59 01 00 call 139518 <uuid_unparse_lower> <== NOT EXECUTED
123bd0: 89 f0 mov %esi,%eax <== NOT EXECUTED
123bd2: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
} else {
rtems_bdpart_type_to_string( p->type, type_buffer);
type = type_buffer;
}
printf(
123bd5: 50 push %eax <== NOT EXECUTED
123bd6: ff 73 04 pushl 0x4(%ebx) <== NOT EXECUTED
123bd9: ff 33 pushl (%ebx) <== NOT EXECUTED
123bdb: 68 17 98 15 00 push $0x159817 <== NOT EXECUTED
123be0: e8 cf d0 01 00 call 140cb4 <printf> <== NOT EXECUTED
"------------+------------+-----------------------------------------------------\n"
" BEGIN | END | TYPE\n"
"------------+------------+-----------------------------------------------------\n"
);
for (i = 0; i < count; ++i) {
123be5: 47 inc %edi <== NOT EXECUTED
123be6: 83 c3 30 add $0x30,%ebx <== NOT EXECUTED
123be9: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
123bec: 3b 7d 0c cmp 0xc(%ebp),%edi <== NOT EXECUTED
123bef: 0f 82 5e ff ff ff jb 123b53 <rtems_bdpart_dump+0x23><== NOT EXECUTED
p->end,
type
);
}
puts( "------------+------------+-----------------------------------------------------");
123bf5: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
123bf8: 68 90 97 15 00 push $0x159790 <== NOT EXECUTED
123bfd: e8 c6 d2 01 00 call 140ec8 <puts> <== NOT EXECUTED
123c02: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
123c05: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
123c08: 5b pop %ebx <== NOT EXECUTED
123c09: 5e pop %esi <== NOT EXECUTED
123c0a: 5f pop %edi <== NOT EXECUTED
123c0b: c9 leave <== NOT EXECUTED
123c0c: c3 ret <== NOT EXECUTED
00123f1d <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
)
{
123f1d: 55 push %ebp <== NOT EXECUTED
123f1e: 89 e5 mov %esp,%ebp <== NOT EXECUTED
123f20: 56 push %esi <== NOT EXECUTED
123f21: 53 push %ebx <== NOT EXECUTED
123f22: 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);
123f25: 8d 45 b0 lea -0x50(%ebp),%eax <== NOT EXECUTED
123f28: 50 push %eax <== NOT EXECUTED
123f29: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
123f2c: e8 bb a3 fe ff call 10e2ec <stat> <== NOT EXECUTED
if (rv != 0) {
123f31: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
123f34: 85 c0 test %eax,%eax <== NOT EXECUTED
123f36: 75 4a jne 123f82 <rtems_bdpart_get_disk_data+0x65><== NOT EXECUTED
return RTEMS_INVALID_NAME;
}
*disk = st.st_rdev;
123f38: 8b 45 c8 mov -0x38(%ebp),%eax <== NOT EXECUTED
123f3b: 8b 55 cc mov -0x34(%ebp),%edx <== NOT EXECUTED
123f3e: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED
123f41: 89 01 mov %eax,(%ecx) <== NOT EXECUTED
123f43: 89 51 04 mov %edx,0x4(%ecx) <== NOT EXECUTED
/* Get disk begin, end and block size */
dd = rtems_disk_obtain( *disk);
123f46: 51 push %ecx <== NOT EXECUTED
123f47: 51 push %ecx <== NOT EXECUTED
123f48: 52 push %edx <== NOT EXECUTED
123f49: 50 push %eax <== NOT EXECUTED
123f4a: e8 9e 7d fe ff call 10bced <rtems_disk_obtain> <== NOT EXECUTED
if (dd == NULL) {
123f4f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
123f52: 85 c0 test %eax,%eax <== NOT EXECUTED
123f54: 74 2c je 123f82 <rtems_bdpart_get_disk_data+0x65><== NOT EXECUTED
return RTEMS_INVALID_NAME;
}
disk_begin = dd->start;
123f56: 8b 58 18 mov 0x18(%eax),%ebx <== NOT EXECUTED
*disk_end = dd->size;
123f59: 8b 48 1c mov 0x1c(%eax),%ecx <== NOT EXECUTED
123f5c: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
123f5f: 89 0a mov %ecx,(%edx) <== NOT EXECUTED
block_size = dd->block_size;
123f61: 8b 70 20 mov 0x20(%eax),%esi <== NOT EXECUTED
sc = rtems_disk_release( dd);
123f64: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
123f67: 50 push %eax <== NOT EXECUTED
123f68: e8 07 7f fe ff call 10be74 <rtems_disk_release> <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
123f6d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
123f70: 85 c0 test %eax,%eax <== NOT EXECUTED
123f72: 75 1a jne 123f8e <rtems_bdpart_get_disk_data+0x71><== NOT EXECUTED
return sc;
}
/* Check block size */
if (block_size < RTEMS_BDPART_BLOCK_SIZE) {
123f74: 81 fe ff 01 00 00 cmp $0x1ff,%esi <== NOT EXECUTED
123f7a: 76 0d jbe 123f89 <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) {
123f7c: 85 db test %ebx,%ebx <== NOT EXECUTED
123f7e: 74 0e je 123f8e <rtems_bdpart_get_disk_data+0x71><== NOT EXECUTED
123f80: eb 07 jmp 123f89 <rtems_bdpart_get_disk_data+0x6c><== NOT EXECUTED
123f82: b8 03 00 00 00 mov $0x3,%eax <== NOT EXECUTED
123f87: eb 05 jmp 123f8e <rtems_bdpart_get_disk_data+0x71><== NOT EXECUTED
123f89: b8 1b 00 00 00 mov $0x1b,%eax <== NOT EXECUTED
return RTEMS_IO_ERROR;
}
return RTEMS_SUCCESSFUL;
}
123f8e: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
123f91: 5b pop %ebx <== NOT EXECUTED
123f92: 5e pop %esi <== NOT EXECUTED
123f93: c9 leave <== NOT EXECUTED
123f94: c3 ret <== NOT EXECUTED
00123d1c <rtems_bdpart_mount>:
const char *disk_name,
const rtems_bdpart_partition *pt __attribute__((unused)),
size_t count,
const char *mount_base
)
{
123d1c: 55 push %ebp <== NOT EXECUTED
123d1d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
123d1f: 57 push %edi <== NOT EXECUTED
123d20: 56 push %esi <== NOT EXECUTED
123d21: 53 push %ebx <== NOT EXECUTED
123d22: 83 ec 34 sub $0x34,%esp <== NOT EXECUTED
123d25: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
rtems_status_code esc = RTEMS_SUCCESSFUL;
const char *disk_file_name = strrchr( disk_name, '/');
123d28: 6a 2f push $0x2f <== NOT EXECUTED
123d2a: 56 push %esi <== NOT EXECUTED
123d2b: e8 30 f4 01 00 call 143160 <strrchr> <== NOT EXECUTED
123d30: 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);
123d33: 83 c9 ff or $0xffffffff,%ecx <== NOT EXECUTED
123d36: 89 f7 mov %esi,%edi <== NOT EXECUTED
123d38: 31 c0 xor %eax,%eax <== NOT EXECUTED
123d3a: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED
123d3c: 89 ca mov %ecx,%edx <== NOT EXECUTED
123d3e: f7 d2 not %edx <== NOT EXECUTED
123d40: 8d 42 ff lea -0x1(%edx),%eax <== NOT EXECUTED
123d43: 89 45 d8 mov %eax,-0x28(%ebp) <== NOT EXECUTED
size_t mount_base_size = strlen( mount_base);
123d46: 83 c9 ff or $0xffffffff,%ecx <== NOT EXECUTED
123d49: 8b 7d 14 mov 0x14(%ebp),%edi <== NOT EXECUTED
123d4c: 31 c0 xor %eax,%eax <== NOT EXECUTED
123d4e: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED
123d50: f7 d1 not %ecx <== NOT EXECUTED
123d52: 89 4d e4 mov %ecx,-0x1c(%ebp) <== NOT EXECUTED
123d55: 49 dec %ecx <== NOT EXECUTED
123d56: 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);
123d59: 83 c2 03 add $0x3,%edx <== NOT EXECUTED
123d5c: 89 14 24 mov %edx,(%esp) <== NOT EXECUTED
123d5f: e8 84 96 fe ff call 10d3e8 <malloc> <== NOT EXECUTED
123d64: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (logical_disk_name == NULL) {
123d66: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
123d69: b8 1a 00 00 00 mov $0x1a,%eax <== NOT EXECUTED
123d6e: 85 db test %ebx,%ebx <== NOT EXECUTED
123d70: 0f 84 2e 01 00 00 je 123ea4 <rtems_bdpart_mount+0x188><== NOT EXECUTED
return RTEMS_NO_MEMORY;
}
strncpy( logical_disk_name, disk_name, disk_name_size);
123d76: 51 push %ecx <== NOT EXECUTED
123d77: ff 75 d8 pushl -0x28(%ebp) <== NOT EXECUTED
123d7a: 56 push %esi <== NOT EXECUTED
123d7b: 53 push %ebx <== NOT EXECUTED
123d7c: e8 5f ed 01 00 call 142ae0 <strncpy> <== NOT EXECUTED
/* Get disk file name */
if (disk_file_name != NULL) {
123d81: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
123d84: 83 7d e0 00 cmpl $0x0,-0x20(%ebp) <== NOT EXECUTED
123d88: 75 08 jne 123d92 <rtems_bdpart_mount+0x76><== NOT EXECUTED
123d8a: 89 75 e0 mov %esi,-0x20(%ebp) <== NOT EXECUTED
123d8d: 8b 7d d8 mov -0x28(%ebp),%edi <== NOT EXECUTED
123d90: eb 15 jmp 123da7 <rtems_bdpart_mount+0x8b><== NOT EXECUTED
disk_file_name += 1;
123d92: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
123d95: 40 inc %eax <== NOT EXECUTED
123d96: 89 45 e0 mov %eax,-0x20(%ebp) <== NOT EXECUTED
disk_file_name_size = strlen( disk_file_name);
123d99: 83 c9 ff or $0xffffffff,%ecx <== NOT EXECUTED
123d9c: 89 c7 mov %eax,%edi <== NOT EXECUTED
123d9e: 31 c0 xor %eax,%eax <== NOT EXECUTED
123da0: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED
123da2: f7 d1 not %ecx <== NOT EXECUTED
123da4: 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);
123da7: 8b 55 dc mov -0x24(%ebp),%edx <== NOT EXECUTED
123daa: 01 fa add %edi,%edx <== NOT EXECUTED
123dac: 89 55 d4 mov %edx,-0x2c(%ebp) <== NOT EXECUTED
123daf: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
123db2: 89 d0 mov %edx,%eax <== NOT EXECUTED
123db4: 83 c0 05 add $0x5,%eax <== NOT EXECUTED
123db7: 50 push %eax <== NOT EXECUTED
123db8: e8 2b 96 fe ff call 10d3e8 <malloc> <== NOT EXECUTED
123dbd: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (mount_point == NULL) {
123dbf: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
123dc2: b8 1a 00 00 00 mov $0x1a,%eax <== NOT EXECUTED
123dc7: 85 f6 test %esi,%esi <== NOT EXECUTED
123dc9: 0f 84 bb 00 00 00 je 123e8a <rtems_bdpart_mount+0x16e><== NOT EXECUTED
esc = RTEMS_NO_MEMORY;
goto cleanup;
}
strncpy( mount_point, mount_base, mount_base_size);
123dcf: 52 push %edx <== NOT EXECUTED
123dd0: ff 75 dc pushl -0x24(%ebp) <== NOT EXECUTED
123dd3: ff 75 14 pushl 0x14(%ebp) <== NOT EXECUTED
123dd6: 56 push %esi <== NOT EXECUTED
123dd7: e8 04 ed 01 00 call 142ae0 <strncpy> <== NOT EXECUTED
mount_point [mount_base_size] = '/';
123ddc: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED
123ddf: 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);
123de4: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
123de7: 57 push %edi <== NOT EXECUTED
123de8: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
123deb: 8b 55 dc mov -0x24(%ebp),%edx <== NOT EXECUTED
123dee: 8d 44 16 01 lea 0x1(%esi,%edx,1),%eax <== NOT EXECUTED
123df2: 50 push %eax <== NOT EXECUTED
123df3: e8 e8 ec 01 00 call 142ae0 <strncpy> <== NOT EXECUTED
/* Markers */
logical_disk_marker = logical_disk_name + disk_name_size;
123df8: 8b 4d d8 mov -0x28(%ebp),%ecx <== NOT EXECUTED
123dfb: 8d 3c 0b lea (%ebx,%ecx,1),%edi <== NOT EXECUTED
mount_marker = mount_point + mount_base_size + 1 + disk_file_name_size;
123dfe: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED
123e01: 8d 44 06 01 lea 0x1(%esi,%eax,1),%eax <== NOT EXECUTED
123e05: 89 45 dc mov %eax,-0x24(%ebp) <== NOT EXECUTED
123e08: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) <== NOT EXECUTED
123e0f: eb 6c jmp 123e7d <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);
123e11: ff 45 e4 incl -0x1c(%ebp) <== NOT EXECUTED
123e14: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
123e17: 68 47 b1 15 00 push $0x15b147 <== NOT EXECUTED
123e1c: 6a 04 push $0x4 <== NOT EXECUTED
123e1e: 57 push %edi <== NOT EXECUTED
123e1f: e8 fc e2 01 00 call 142120 <snprintf> <== NOT EXECUTED
if (rv >= RTEMS_BDPART_NUMBER_SIZE) {
123e24: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
123e27: 83 f8 03 cmp $0x3,%eax <== NOT EXECUTED
123e2a: 7e 07 jle 123e33 <rtems_bdpart_mount+0x117><== NOT EXECUTED
123e2c: b8 03 00 00 00 mov $0x3,%eax <== NOT EXECUTED
123e31: eb 57 jmp 123e8a <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);
123e33: 50 push %eax <== NOT EXECUTED
123e34: 6a 04 push $0x4 <== NOT EXECUTED
123e36: 57 push %edi <== NOT EXECUTED
123e37: ff 75 dc pushl -0x24(%ebp) <== NOT EXECUTED
123e3a: e8 a1 ec 01 00 call 142ae0 <strncpy> <== NOT EXECUTED
rv = rtems_mkdir( mount_point, S_IRWXU | S_IRWXG | S_IRWXO);
123e3f: 5a pop %edx <== NOT EXECUTED
123e40: 59 pop %ecx <== NOT EXECUTED
123e41: 68 ff 01 00 00 push $0x1ff <== NOT EXECUTED
123e46: 56 push %esi <== NOT EXECUTED
123e47: e8 4c a3 fe ff call 10e198 <rtems_mkdir> <== NOT EXECUTED
if (rv != 0) {
123e4c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
123e4f: 85 c0 test %eax,%eax <== NOT EXECUTED
123e51: 74 07 je 123e5a <rtems_bdpart_mount+0x13e><== NOT EXECUTED
123e53: b8 1b 00 00 00 mov $0x1b,%eax <== NOT EXECUTED
123e58: eb 30 jmp 123e8a <rtems_bdpart_mount+0x16e><== NOT EXECUTED
esc = RTEMS_IO_ERROR;
goto cleanup;
}
/* Mount */
rv = mount(
123e5a: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
123e5d: 6a 00 push $0x0 <== NOT EXECUTED
123e5f: 6a 00 push $0x0 <== NOT EXECUTED
123e61: 68 2d 98 15 00 push $0x15982d <== NOT EXECUTED
123e66: 56 push %esi <== NOT EXECUTED
123e67: 53 push %ebx <== NOT EXECUTED
123e68: e8 31 98 fe ff call 10d69e <mount> <== NOT EXECUTED
mount_point,
"msdos",
0,
NULL
);
if (rv != 0) {
123e6d: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
123e70: 85 c0 test %eax,%eax <== NOT EXECUTED
123e72: 74 0c je 123e80 <rtems_bdpart_mount+0x164><== NOT EXECUTED
rmdir( mount_point);
123e74: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
123e77: 56 push %esi <== NOT EXECUTED
123e78: e8 1f 52 00 00 call 12909c <rmdir> <== NOT EXECUTED
123e7d: 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) {
123e80: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
123e83: 39 55 e4 cmp %edx,-0x1c(%ebp) <== NOT EXECUTED
123e86: 72 89 jb 123e11 <rtems_bdpart_mount+0xf5><== NOT EXECUTED
123e88: 31 c0 xor %eax,%eax <== NOT EXECUTED
}
}
cleanup:
free( logical_disk_name);
123e8a: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
123e8d: 53 push %ebx <== NOT EXECUTED
123e8e: 89 45 d0 mov %eax,-0x30(%ebp) <== NOT EXECUTED
123e91: e8 06 90 fe ff call 10ce9c <free> <== NOT EXECUTED
free( mount_point);
123e96: 89 34 24 mov %esi,(%esp) <== NOT EXECUTED
123e99: e8 fe 8f fe ff call 10ce9c <free> <== NOT EXECUTED
return esc;
123e9e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
123ea1: 8b 45 d0 mov -0x30(%ebp),%eax <== NOT EXECUTED
}
123ea4: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
123ea7: 5b pop %ebx <== NOT EXECUTED
123ea8: 5e pop %esi <== NOT EXECUTED
123ea9: 5f pop %edi <== NOT EXECUTED
123eaa: c9 leave <== NOT EXECUTED
123eab: c3 ret <== NOT EXECUTED
00124314 <rtems_bdpart_new_record>:
static rtems_status_code rtems_bdpart_new_record(
dev_t disk,
rtems_blkdev_bnum index,
rtems_bdbuf_buffer **block
)
{
124314: 55 push %ebp <== NOT EXECUTED
124315: 89 e5 mov %esp,%ebp <== NOT EXECUTED
124317: 57 push %edi <== NOT EXECUTED
124318: 56 push %esi <== NOT EXECUTED
124319: 53 push %ebx <== NOT EXECUTED
12431a: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
12431d: 89 c3 mov %eax,%ebx <== NOT EXECUTED
12431f: 89 d6 mov %edx,%esi <== NOT EXECUTED
124321: 89 cf mov %ecx,%edi <== NOT EXECUTED
124323: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
rtems_status_code sc = RTEMS_SUCCESSFUL;
/* Synchronize previous block if necessary */
if (*block != NULL) {
124326: 8b 02 mov (%edx),%eax <== NOT EXECUTED
124328: 85 c0 test %eax,%eax <== NOT EXECUTED
12432a: 74 16 je 124342 <rtems_bdpart_new_record+0x2e><== NOT EXECUTED
sc = rtems_bdbuf_sync( *block);
12432c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12432f: 50 push %eax <== NOT EXECUTED
124330: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED
124333: e8 4d 65 fe ff call 10a885 <rtems_bdbuf_sync> <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
124338: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12433b: 85 c0 test %eax,%eax <== NOT EXECUTED
12433d: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
124340: 75 44 jne 124386 <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);
124342: 52 push %edx <== NOT EXECUTED
124343: 57 push %edi <== NOT EXECUTED
124344: 56 push %esi <== NOT EXECUTED
124345: 53 push %ebx <== NOT EXECUTED
124346: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED
124349: e8 c6 6b fe ff call 10af14 <rtems_bdbuf_read> <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
12434e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
124351: 85 c0 test %eax,%eax <== NOT EXECUTED
124353: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
124356: 75 2e jne 124386 <rtems_bdpart_new_record+0x72><== NOT EXECUTED
return sc;
}
/* just in case block did not get filled in */
if ( *block == NULL ) {
124358: 8b 0a mov (%edx),%ecx <== NOT EXECUTED
12435a: 85 c9 test %ecx,%ecx <== NOT EXECUTED
12435c: 75 04 jne 124362 <rtems_bdpart_new_record+0x4e><== NOT EXECUTED
12435e: b0 09 mov $0x9,%al <== NOT EXECUTED
124360: eb 24 jmp 124386 <rtems_bdpart_new_record+0x72><== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
}
/* Clear record */
memset( (*block)->buffer, 0, RTEMS_BDPART_BLOCK_SIZE);
124362: 8b 59 20 mov 0x20(%ecx),%ebx <== NOT EXECUTED
124365: b9 80 00 00 00 mov $0x80,%ecx <== NOT EXECUTED
12436a: 89 df mov %ebx,%edi <== NOT EXECUTED
12436c: f3 ab rep stos %eax,%es:(%edi) <== NOT EXECUTED
/* Write signature */
(*block)->buffer [RTEMS_BDPART_MBR_OFFSET_SIGNATURE_0] =
12436e: 8b 0a mov (%edx),%ecx <== NOT EXECUTED
124370: 8b 49 20 mov 0x20(%ecx),%ecx <== NOT EXECUTED
124373: 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] =
12437a: 8b 12 mov (%edx),%edx <== NOT EXECUTED
12437c: 8b 52 20 mov 0x20(%edx),%edx <== NOT EXECUTED
12437f: c6 82 ff 01 00 00 aa movb $0xaa,0x1ff(%edx) <== NOT EXECUTED
RTEMS_BDPART_MBR_SIGNATURE_1;
return RTEMS_SUCCESSFUL;
}
124386: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
124389: 5b pop %ebx <== NOT EXECUTED
12438a: 5e pop %esi <== NOT EXECUTED
12438b: 5f pop %edi <== NOT EXECUTED
12438c: c9 leave <== NOT EXECUTED
12438d: c3 ret <== NOT EXECUTED
001240bd <rtems_bdpart_read>:
const char *disk_name,
rtems_bdpart_format *format,
rtems_bdpart_partition *pt,
size_t *count
)
{
1240bd: 55 push %ebp <== NOT EXECUTED
1240be: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1240c0: 57 push %edi <== NOT EXECUTED
1240c1: 56 push %esi <== NOT EXECUTED
1240c2: 53 push %ebx <== NOT EXECUTED
1240c3: 83 ec 3c sub $0x3c,%esp <== NOT EXECUTED
1240c6: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
1240c9: 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);
1240cc: 31 ff xor %edi,%edi <== NOT EXECUTED
1240ce: 85 f6 test %esi,%esi <== NOT EXECUTED
1240d0: 74 03 je 1240d5 <rtems_bdpart_read+0x18><== NOT EXECUTED
1240d2: 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) {
1240d5: 83 7d 10 00 cmpl $0x0,0x10(%ebp) <== NOT EXECUTED
1240d9: 0f 84 25 02 00 00 je 124304 <rtems_bdpart_read+0x247><== NOT EXECUTED
1240df: 85 db test %ebx,%ebx <== NOT EXECUTED
1240e1: 0f 84 1d 02 00 00 je 124304 <rtems_bdpart_read+0x247><== NOT EXECUTED
1240e7: 85 f6 test %esi,%esi <== NOT EXECUTED
1240e9: 0f 84 15 02 00 00 je 124304 <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;
1240ef: 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 */
1240f6: 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;
1240fd: 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;
124103: c7 45 d0 00 00 00 00 movl $0x0,-0x30(%ebp) <== NOT EXECUTED
12410a: 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;
124111: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
124114: 83 e8 30 sub $0x30,%eax <== NOT EXECUTED
124117: 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;
12411a: 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);
124121: 50 push %eax <== NOT EXECUTED
124122: 8d 45 d8 lea -0x28(%ebp),%eax <== NOT EXECUTED
124125: 50 push %eax <== NOT EXECUTED
124126: 8d 45 d0 lea -0x30(%ebp),%eax <== NOT EXECUTED
124129: 50 push %eax <== NOT EXECUTED
12412a: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
12412d: e8 eb fd ff ff call 123f1d <rtems_bdpart_get_disk_data><== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
124132: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
124135: 85 c0 test %eax,%eax <== NOT EXECUTED
124137: 0f 85 cc 01 00 00 jne 124309 <rtems_bdpart_read+0x24c><== NOT EXECUTED
return sc;
}
/* Read MBR */
sc = rtems_bdpart_read_record( disk, 0, &block);
12413d: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
124140: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
124143: 50 push %eax <== NOT EXECUTED
124144: 31 c9 xor %ecx,%ecx <== NOT EXECUTED
124146: 8b 45 d0 mov -0x30(%ebp),%eax <== NOT EXECUTED
124149: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED
12414c: e8 5b fd ff ff call 123eac <rtems_bdpart_read_record><== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
124151: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
124154: 89 c2 mov %eax,%edx <== NOT EXECUTED
124156: 85 c0 test %eax,%eax <== NOT EXECUTED
124158: 0f 85 87 01 00 00 jne 1242e5 <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);
12415e: 03 7d 10 add 0x10(%ebp),%edi <== NOT EXECUTED
124161: 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;
124164: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
124167: 8b 40 20 mov 0x20(%eax),%eax <== NOT EXECUTED
12416a: 89 45 c0 mov %eax,-0x40(%ebp) <== NOT EXECUTED
12416d: 05 be 01 00 00 add $0x1be,%eax <== NOT EXECUTED
124172: 89 45 c4 mov %eax,-0x3c(%ebp) <== NOT EXECUTED
sc = rtems_bdpart_read_mbr_partition( data, &p, p_end, &ep_begin);
124175: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
124178: 8d 45 dc lea -0x24(%ebp),%eax <== NOT EXECUTED
12417b: 50 push %eax <== NOT EXECUTED
12417c: 89 f9 mov %edi,%ecx <== NOT EXECUTED
12417e: 8d 55 e0 lea -0x20(%ebp),%edx <== NOT EXECUTED
124181: 8b 45 c4 mov -0x3c(%ebp),%eax <== NOT EXECUTED
124184: e8 54 fe ff ff call 123fdd <rtems_bdpart_read_mbr_partition><== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
124189: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12418c: 89 c2 mov %eax,%edx <== NOT EXECUTED
12418e: 85 c0 test %eax,%eax <== NOT EXECUTED
124190: 0f 85 4f 01 00 00 jne 1242e5 <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) {
124196: b2 18 mov $0x18,%dl <== NOT EXECUTED
124198: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
12419b: 80 78 08 ee cmpb $0xee,0x8(%eax) <== NOT EXECUTED
12419f: 0f 84 40 01 00 00 je 1242e5 <rtems_bdpart_read+0x228><== NOT EXECUTED
esc = RTEMS_NOT_IMPLEMENTED;
goto cleanup;
}
/* Set format */
format->type = RTEMS_BDPART_FORMAT_MBR;
1241a5: c7 03 00 00 00 00 movl $0x0,(%ebx) <== NOT EXECUTED
format->mbr.disk_id = rtems_uint32_from_little_endian(
1241ab: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
1241ae: 8b 48 20 mov 0x20(%eax),%ecx <== NOT EXECUTED
1241b1: 8d 81 b8 01 00 00 lea 0x1b8(%ecx),%eax <== NOT EXECUTED
1241b7: 0f b6 50 03 movzbl 0x3(%eax),%edx <== NOT EXECUTED
1241bb: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
1241be: 0f b6 78 02 movzbl 0x2(%eax),%edi <== NOT EXECUTED
1241c2: 01 fa add %edi,%edx <== NOT EXECUTED
1241c4: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
1241c7: 0f b6 78 01 movzbl 0x1(%eax),%edi <== NOT EXECUTED
1241cb: 01 fa add %edi,%edx <== NOT EXECUTED
1241cd: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
1241d0: 0f b6 b9 b8 01 00 00 movzbl 0x1b8(%ecx),%edi <== NOT EXECUTED
1241d7: 01 fa add %edi,%edx <== NOT EXECUTED
1241d9: 89 53 04 mov %edx,0x4(%ebx) <== NOT EXECUTED
block->buffer + RTEMS_BDPART_MBR_OFFSET_DISK_ID
);
format->mbr.dos_compatibility = true;
1241dc: c6 43 08 01 movb $0x1,0x8(%ebx) <== NOT EXECUTED
}
return RTEMS_SUCCESSFUL;
}
rtems_status_code rtems_bdpart_read(
1241e0: 8b 45 c0 mov -0x40(%ebp),%eax <== NOT EXECUTED
1241e3: 05 ee 01 00 00 add $0x1ee,%eax <== NOT EXECUTED
1241e8: 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);
1241eb: 8d 7d e0 lea -0x20(%ebp),%edi <== NOT EXECUTED
1241ee: 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;
1241f1: 83 45 c4 10 addl $0x10,-0x3c(%ebp) <== NOT EXECUTED
sc = rtems_bdpart_read_mbr_partition( data, &p, p_end, &ep_begin);
1241f5: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1241f8: 53 push %ebx <== NOT EXECUTED
1241f9: 8b 4d bc mov -0x44(%ebp),%ecx <== NOT EXECUTED
1241fc: 89 fa mov %edi,%edx <== NOT EXECUTED
1241fe: 8b 45 c4 mov -0x3c(%ebp),%eax <== NOT EXECUTED
124201: e8 d7 fd ff ff call 123fdd <rtems_bdpart_read_mbr_partition><== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
124206: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
124209: 85 c0 test %eax,%eax <== NOT EXECUTED
12420b: 75 4d jne 12425a <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) {
12420d: 8b 45 c0 mov -0x40(%ebp),%eax <== NOT EXECUTED
124210: 39 45 c4 cmp %eax,-0x3c(%ebp) <== NOT EXECUTED
124213: 75 dc jne 1241f1 <rtems_bdpart_read+0x134><== NOT EXECUTED
goto cleanup;
}
}
/* Iterate through the logical partitions within the extended partition */
ebr = ep_begin;
124215: 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);
124218: 8d 7d e4 lea -0x1c(%ebp),%edi <== NOT EXECUTED
}
}
/* Iterate through the logical partitions within the extended partition */
ebr = ep_begin;
while (ebr != 0) {
12421b: e9 a2 00 00 00 jmp 1242c2 <rtems_bdpart_read+0x205><== NOT EXECUTED
rtems_blkdev_bnum tmp = 0;
/* Read EBR */
sc = rtems_bdpart_read_record( disk, ebr, &block);
124220: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
124223: 57 push %edi <== NOT EXECUTED
124224: 89 d9 mov %ebx,%ecx <== NOT EXECUTED
124226: 8b 45 d0 mov -0x30(%ebp),%eax <== NOT EXECUTED
124229: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED
12422c: e8 7b fc ff ff call 123eac <rtems_bdpart_read_record><== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
124231: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
124234: 85 c0 test %eax,%eax <== NOT EXECUTED
124236: 75 22 jne 12425a <rtems_bdpart_read+0x19d><== NOT EXECUTED
esc = sc;
goto cleanup;
}
/* Read first partition entry */
sc = rtems_bdpart_read_mbr_partition(
124238: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12423b: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
12423e: 8b 40 20 mov 0x20(%eax),%eax <== NOT EXECUTED
124241: 05 be 01 00 00 add $0x1be,%eax <== NOT EXECUTED
124246: 6a 00 push $0x0 <== NOT EXECUTED
124248: 8b 4d bc mov -0x44(%ebp),%ecx <== NOT EXECUTED
12424b: 8d 55 e0 lea -0x20(%ebp),%edx <== NOT EXECUTED
12424e: e8 8a fd ff ff call 123fdd <rtems_bdpart_read_mbr_partition><== NOT EXECUTED
block->buffer + RTEMS_BDPART_MBR_OFFSET_TABLE_0,
&p,
p_end,
NULL
);
if (sc != RTEMS_SUCCESSFUL) {
124253: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
124256: 85 c0 test %eax,%eax <== NOT EXECUTED
124258: 74 07 je 124261 <rtems_bdpart_read+0x1a4><== NOT EXECUTED
12425a: 89 c2 mov %eax,%edx <== NOT EXECUTED
12425c: e9 84 00 00 00 jmp 1242e5 <rtems_bdpart_read+0x228><== NOT EXECUTED
esc = sc;
goto cleanup;
}
/* Adjust partition begin */
tmp = p->begin + ebr;
124261: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
124264: 8b 08 mov (%eax),%ecx <== NOT EXECUTED
124266: 8d 14 0b lea (%ebx,%ecx,1),%edx <== NOT EXECUTED
if (tmp > p->begin) {
124269: 39 ca cmp %ecx,%edx <== NOT EXECUTED
12426b: 76 73 jbe 1242e0 <rtems_bdpart_read+0x223><== NOT EXECUTED
p->begin = tmp;
12426d: 89 10 mov %edx,(%eax) <== NOT EXECUTED
esc = RTEMS_IO_ERROR;
goto cleanup;
}
/* Adjust partition end */
tmp = p->end + ebr;
12426f: 8b 50 04 mov 0x4(%eax),%edx <== NOT EXECUTED
124272: 01 d3 add %edx,%ebx <== NOT EXECUTED
if (tmp > p->end) {
124274: 39 d3 cmp %edx,%ebx <== NOT EXECUTED
124276: 76 68 jbe 1242e0 <rtems_bdpart_read+0x223><== NOT EXECUTED
p->end = tmp;
124278: 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(
12427b: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
12427e: 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);
124281: 8d 90 d6 01 00 00 lea 0x1d6(%eax),%edx <== NOT EXECUTED
124287: 0f b6 4a 03 movzbl 0x3(%edx),%ecx <== NOT EXECUTED
12428b: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
12428e: 0f b6 5a 02 movzbl 0x2(%edx),%ebx <== NOT EXECUTED
124292: 01 d9 add %ebx,%ecx <== NOT EXECUTED
124294: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
124297: 0f b6 5a 01 movzbl 0x1(%edx),%ebx <== NOT EXECUTED
12429b: 8d 1c 19 lea (%ecx,%ebx,1),%ebx <== NOT EXECUTED
12429e: c1 e3 08 shl $0x8,%ebx <== NOT EXECUTED
1242a1: 0f b6 90 d6 01 00 00 movzbl 0x1d6(%eax),%edx <== NOT EXECUTED
1242a8: 01 d3 add %edx,%ebx <== NOT EXECUTED
uint8_t type = data [RTEMS_BDPART_MBR_OFFSET_TYPE];
if (type == RTEMS_BDPART_MBR_EXTENDED) {
1242aa: 80 b8 d2 01 00 00 05 cmpb $0x5,0x1d2(%eax) <== NOT EXECUTED
1242b1: 75 17 jne 1242ca <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) {
1242b3: 85 db test %ebx,%ebx <== NOT EXECUTED
1242b5: 74 13 je 1242ca <rtems_bdpart_read+0x20d><== NOT EXECUTED
/* Adjust partition EBR block index */
tmp = ebr + ep_begin;
1242b7: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED
1242ba: 01 d8 add %ebx,%eax <== NOT EXECUTED
if (tmp > ebr) {
1242bc: 39 d8 cmp %ebx,%eax <== NOT EXECUTED
1242be: 76 20 jbe 1242e0 <rtems_bdpart_read+0x223><== NOT EXECUTED
1242c0: 89 c3 mov %eax,%ebx <== NOT EXECUTED
}
}
/* Iterate through the logical partitions within the extended partition */
ebr = ep_begin;
while (ebr != 0) {
1242c2: 85 db test %ebx,%ebx <== NOT EXECUTED
1242c4: 0f 85 56 ff ff ff jne 124220 <rtems_bdpart_read+0x163><== NOT EXECUTED
}
}
}
/* Return partition count */
*count = (size_t) (p - pt + 1);
1242ca: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
1242cd: 2b 45 10 sub 0x10(%ebp),%eax <== NOT EXECUTED
1242d0: c1 f8 04 sar $0x4,%eax <== NOT EXECUTED
1242d3: 69 c0 ab aa aa aa imul $0xaaaaaaab,%eax,%eax <== NOT EXECUTED
1242d9: 40 inc %eax <== NOT EXECUTED
1242da: 89 06 mov %eax,(%esi) <== NOT EXECUTED
1242dc: 31 d2 xor %edx,%edx <== NOT EXECUTED
1242de: eb 05 jmp 1242e5 <rtems_bdpart_read+0x228><== NOT EXECUTED
1242e0: ba 1b 00 00 00 mov $0x1b,%edx <== NOT EXECUTED
cleanup:
if (block != NULL) {
1242e5: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED
1242e8: 89 d0 mov %edx,%eax <== NOT EXECUTED
1242ea: 85 c9 test %ecx,%ecx <== NOT EXECUTED
1242ec: 74 1b je 124309 <rtems_bdpart_read+0x24c><== NOT EXECUTED
rtems_bdbuf_release( block);
1242ee: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1242f1: 51 push %ecx <== NOT EXECUTED
1242f2: 89 55 b8 mov %edx,-0x48(%ebp) <== NOT EXECUTED
1242f5: e8 7d 5d fe ff call 10a077 <rtems_bdbuf_release> <== NOT EXECUTED
1242fa: 8b 55 b8 mov -0x48(%ebp),%edx <== NOT EXECUTED
1242fd: 89 d0 mov %edx,%eax <== NOT EXECUTED
1242ff: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
124302: eb 05 jmp 124309 <rtems_bdpart_read+0x24c><== NOT EXECUTED
124304: b8 09 00 00 00 mov $0x9,%eax <== NOT EXECUTED
}
return esc;
}
124309: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
12430c: 5b pop %ebx <== NOT EXECUTED
12430d: 5e pop %esi <== NOT EXECUTED
12430e: 5f pop %edi <== NOT EXECUTED
12430f: c9 leave <== NOT EXECUTED
124310: c3 ret <== NOT EXECUTED
00123fdd <rtems_bdpart_read_mbr_partition>:
const uint8_t *data,
rtems_bdpart_partition **p,
const rtems_bdpart_partition *p_end,
rtems_blkdev_bnum *ep_begin
)
{
123fdd: 55 push %ebp <== NOT EXECUTED
123fde: 89 e5 mov %esp,%ebp <== NOT EXECUTED
123fe0: 57 push %edi <== NOT EXECUTED
123fe1: 56 push %esi <== NOT EXECUTED
123fe2: 53 push %ebx <== NOT EXECUTED
123fe3: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
123fe6: 89 c3 mov %eax,%ebx <== NOT EXECUTED
123fe8: 89 d6 mov %edx,%esi <== NOT EXECUTED
rtems_blkdev_bnum begin =
rtems_uint32_from_little_endian( data + RTEMS_BDPART_MBR_OFFSET_BEGIN);
123fea: 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];
123fed: 0f b6 50 03 movzbl 0x3(%eax),%edx <== NOT EXECUTED
123ff1: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
123ff4: 0f b6 78 02 movzbl 0x2(%eax),%edi <== NOT EXECUTED
123ff8: 01 fa add %edi,%edx <== NOT EXECUTED
123ffa: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
123ffd: 0f b6 78 01 movzbl 0x1(%eax),%edi <== NOT EXECUTED
124001: 01 fa add %edi,%edx <== NOT EXECUTED
124003: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
124006: 0f b6 43 08 movzbl 0x8(%ebx),%eax <== NOT EXECUTED
12400a: 8d 04 02 lea (%edx,%eax,1),%eax <== NOT EXECUTED
12400d: 89 45 ec mov %eax,-0x14(%ebp) <== NOT EXECUTED
rtems_blkdev_bnum size =
rtems_uint32_from_little_endian( data + RTEMS_BDPART_MBR_OFFSET_SIZE);
124010: 8d 43 0c lea 0xc(%ebx),%eax <== NOT EXECUTED
124013: 0f b6 50 03 movzbl 0x3(%eax),%edx <== NOT EXECUTED
124017: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
12401a: 0f b6 78 02 movzbl 0x2(%eax),%edi <== NOT EXECUTED
12401e: 01 fa add %edi,%edx <== NOT EXECUTED
124020: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
124023: 0f b6 78 01 movzbl 0x1(%eax),%edi <== NOT EXECUTED
124027: 01 fa add %edi,%edx <== NOT EXECUTED
124029: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
12402c: 0f b6 7b 0c movzbl 0xc(%ebx),%edi <== NOT EXECUTED
124030: 8d 3c 3a lea (%edx,%edi,1),%edi <== NOT EXECUTED
124033: 89 7d e8 mov %edi,-0x18(%ebp) <== NOT EXECUTED
rtems_blkdev_bnum end = begin + size;
uint8_t type = data [RTEMS_BDPART_MBR_OFFSET_TYPE];
124036: 8a 53 04 mov 0x4(%ebx),%dl <== NOT EXECUTED
if (type == RTEMS_BDPART_MBR_EMPTY) {
124039: 84 d2 test %dl,%dl <== NOT EXECUTED
12403b: 74 76 je 1240b3 <rtems_bdpart_read_mbr_partition+0xd6><== NOT EXECUTED
return RTEMS_SUCCESSFUL;
} else if (*p == p_end) {
12403d: 8b 3e mov (%esi),%edi <== NOT EXECUTED
12403f: b8 05 00 00 00 mov $0x5,%eax <== NOT EXECUTED
124044: 39 cf cmp %ecx,%edi <== NOT EXECUTED
124046: 74 6d je 1240b5 <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;
124048: 8b 45 e8 mov -0x18(%ebp),%eax <== NOT EXECUTED
12404b: 03 45 ec add -0x14(%ebp),%eax <== NOT EXECUTED
12404e: 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) {
124051: b8 1b 00 00 00 mov $0x1b,%eax <== NOT EXECUTED
124056: 8b 4d e8 mov -0x18(%ebp),%ecx <== NOT EXECUTED
124059: 39 4d ec cmp %ecx,-0x14(%ebp) <== NOT EXECUTED
12405c: 73 57 jae 1240b5 <rtems_bdpart_read_mbr_partition+0xd8><== NOT EXECUTED
return RTEMS_IO_ERROR;
} else if (type == RTEMS_BDPART_MBR_EXTENDED) {
12405e: 80 fa 05 cmp $0x5,%dl <== NOT EXECUTED
124061: 75 10 jne 124073 <rtems_bdpart_read_mbr_partition+0x96><== NOT EXECUTED
if (ep_begin != NULL) {
124063: 83 7d 08 00 cmpl $0x0,0x8(%ebp) <== NOT EXECUTED
124067: 74 4a je 1240b3 <rtems_bdpart_read_mbr_partition+0xd6><== NOT EXECUTED
*ep_begin = begin;
124069: 8b 55 ec mov -0x14(%ebp),%edx <== NOT EXECUTED
12406c: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
12406f: 89 10 mov %edx,(%eax) <== NOT EXECUTED
124071: eb 40 jmp 1240b3 <rtems_bdpart_read_mbr_partition+0xd6><== NOT EXECUTED
}
} else {
/* Increment partition index */
++(*p);
124073: 83 c7 30 add $0x30,%edi <== NOT EXECUTED
124076: 89 7d f0 mov %edi,-0x10(%ebp) <== NOT EXECUTED
124079: 89 3e mov %edi,(%esi) <== NOT EXECUTED
/* Clear partition */
memset( *p, 0, sizeof( rtems_bdpart_partition));
12407b: b9 0c 00 00 00 mov $0xc,%ecx <== NOT EXECUTED
124080: 31 c0 xor %eax,%eax <== NOT EXECUTED
124082: f3 ab rep stos %eax,%es:(%edi) <== NOT EXECUTED
/* Set values */
(*p)->begin = begin;
124084: 8b 06 mov (%esi),%eax <== NOT EXECUTED
124086: 8b 4d ec mov -0x14(%ebp),%ecx <== NOT EXECUTED
124089: 89 08 mov %ecx,(%eax) <== NOT EXECUTED
(*p)->end = end;
12408b: 8b 4d e8 mov -0x18(%ebp),%ecx <== NOT EXECUTED
12408e: 89 48 04 mov %ecx,0x4(%eax) <== NOT EXECUTED
rtems_bdpart_to_partition_type( type, (*p)->type);
124091: 83 c0 08 add $0x8,%eax <== NOT EXECUTED
124094: 50 push %eax <== NOT EXECUTED
124095: 0f b6 d2 movzbl %dl,%edx <== NOT EXECUTED
124098: 52 push %edx <== NOT EXECUTED
124099: e8 1f ff ff ff call 123fbd <rtems_bdpart_to_partition_type><== NOT EXECUTED
(*p)->flags = data [RTEMS_BDPART_MBR_OFFSET_FLAGS];
12409e: 8b 06 mov (%esi),%eax <== NOT EXECUTED
1240a0: 0f b6 13 movzbl (%ebx),%edx <== NOT EXECUTED
1240a3: 89 50 28 mov %edx,0x28(%eax) <== NOT EXECUTED
1240a6: c7 40 2c 00 00 00 00 movl $0x0,0x2c(%eax) <== NOT EXECUTED
1240ad: 31 c0 xor %eax,%eax <== NOT EXECUTED
1240af: 5b pop %ebx <== NOT EXECUTED
1240b0: 5e pop %esi <== NOT EXECUTED
1240b1: eb 02 jmp 1240b5 <rtems_bdpart_read_mbr_partition+0xd8><== NOT EXECUTED
1240b3: 31 c0 xor %eax,%eax <== NOT EXECUTED
}
return RTEMS_SUCCESSFUL;
}
1240b5: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1240b8: 5b pop %ebx <== NOT EXECUTED
1240b9: 5e pop %esi <== NOT EXECUTED
1240ba: 5f pop %edi <== NOT EXECUTED
1240bb: c9 leave <== NOT EXECUTED
1240bc: c3 ret <== NOT EXECUTED
00123eac <rtems_bdpart_read_record>:
static rtems_status_code rtems_bdpart_read_record(
dev_t disk,
rtems_blkdev_bnum index,
rtems_bdbuf_buffer **block
)
{
123eac: 55 push %ebp <== NOT EXECUTED
123ead: 89 e5 mov %esp,%ebp <== NOT EXECUTED
123eaf: 57 push %edi <== NOT EXECUTED
123eb0: 56 push %esi <== NOT EXECUTED
123eb1: 53 push %ebx <== NOT EXECUTED
123eb2: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
123eb5: 89 c3 mov %eax,%ebx <== NOT EXECUTED
123eb7: 89 d6 mov %edx,%esi <== NOT EXECUTED
123eb9: 8b 7d 08 mov 0x8(%ebp),%edi <== NOT EXECUTED
rtems_status_code sc = RTEMS_SUCCESSFUL;
/* Release previous block if necessary */
if (*block != NULL) {
123ebc: 8b 07 mov (%edi),%eax <== NOT EXECUTED
123ebe: 85 c0 test %eax,%eax <== NOT EXECUTED
123ec0: 74 16 je 123ed8 <rtems_bdpart_read_record+0x2c><== NOT EXECUTED
sc = rtems_bdbuf_release( *block);
123ec2: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
123ec5: 50 push %eax <== NOT EXECUTED
123ec6: 89 4d e4 mov %ecx,-0x1c(%ebp) <== NOT EXECUTED
123ec9: e8 a9 61 fe ff call 10a077 <rtems_bdbuf_release> <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
123ece: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
123ed1: 85 c0 test %eax,%eax <== NOT EXECUTED
123ed3: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED
123ed6: 75 3d jne 123f15 <rtems_bdpart_read_record+0x69><== NOT EXECUTED
return sc;
}
}
/* Read the record block */
sc = rtems_bdbuf_read( disk, index, block);
123ed8: 57 push %edi <== NOT EXECUTED
123ed9: 51 push %ecx <== NOT EXECUTED
123eda: 56 push %esi <== NOT EXECUTED
123edb: 53 push %ebx <== NOT EXECUTED
123edc: e8 33 70 fe ff call 10af14 <rtems_bdbuf_read> <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
123ee1: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
123ee4: 85 c0 test %eax,%eax <== NOT EXECUTED
123ee6: 75 2d jne 123f15 <rtems_bdpart_read_record+0x69><== NOT EXECUTED
return sc;
}
/* just in case block did not get filled in */
if ( *block == NULL ) {
123ee8: 8b 17 mov (%edi),%edx <== NOT EXECUTED
123eea: 85 d2 test %edx,%edx <== NOT EXECUTED
123eec: 75 04 jne 123ef2 <rtems_bdpart_read_record+0x46><== NOT EXECUTED
123eee: b0 09 mov $0x9,%al <== NOT EXECUTED
123ef0: eb 23 jmp 123f15 <rtems_bdpart_read_record+0x69><== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
}
/* Check MBR signature */
if (!rtems_bdpart_is_valid_record( (*block)->buffer)) {
123ef2: 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]
123ef5: 31 d2 xor %edx,%edx <== NOT EXECUTED
123ef7: 80 b9 fe 01 00 00 55 cmpb $0x55,0x1fe(%ecx) <== NOT EXECUTED
123efe: 75 0c jne 123f0c <rtems_bdpart_read_record+0x60><== NOT EXECUTED
123f00: 31 d2 xor %edx,%edx <== NOT EXECUTED
123f02: 80 b9 ff 01 00 00 aa cmpb $0xaa,0x1ff(%ecx) <== NOT EXECUTED
123f09: 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)) {
123f0c: 85 d2 test %edx,%edx <== NOT EXECUTED
123f0e: 75 05 jne 123f15 <rtems_bdpart_read_record+0x69><== NOT EXECUTED
123f10: b8 1b 00 00 00 mov $0x1b,%eax <== NOT EXECUTED
return RTEMS_IO_ERROR;
}
return RTEMS_SUCCESSFUL;
}
123f15: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
123f18: 5b pop %ebx <== NOT EXECUTED
123f19: 5e pop %esi <== NOT EXECUTED
123f1a: 5f pop %edi <== NOT EXECUTED
123f1b: c9 leave <== NOT EXECUTED
123f1c: 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 ff 8c 01 00 call 123f1d <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 81 78 03 00 call 142ae0 <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 47 b1 15 00 push $0x15b147 <== 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 85 6e 03 00 call 142120 <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 a1 8d 01 00 call 1240bd <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
00123f95 <rtems_bdpart_to_mbr_partition_type>:
bool rtems_bdpart_to_mbr_partition_type(
const uuid_t type,
uint8_t *mbr_type
)
{
123f95: 55 push %ebp <== NOT EXECUTED
123f96: 89 e5 mov %esp,%ebp <== NOT EXECUTED
123f98: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
123f9b: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
*mbr_type = rtems_bdpart_mbr_partition_type( type);
123f9e: 8a 08 mov (%eax),%cl <== NOT EXECUTED
123fa0: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
123fa3: 88 0a mov %cl,(%edx) <== NOT EXECUTED
return memcmp(
123fa5: 40 inc %eax <== NOT EXECUTED
123fa6: 6a 0f push $0xf <== NOT EXECUTED
123fa8: 68 35 98 15 00 push $0x159835 <== NOT EXECUTED
123fad: 50 push %eax <== NOT EXECUTED
123fae: e8 d5 bd 01 00 call 13fd88 <memcmp> <== NOT EXECUTED
123fb3: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
123fb6: 85 c0 test %eax,%eax <== NOT EXECUTED
123fb8: 0f 94 c0 sete %al <== NOT EXECUTED
type + 1,
RTEMS_BDPART_MBR_MASTER_TYPE + 1,
sizeof( uuid_t) - 1
) == 0;
}
123fbb: c9 leave <== NOT EXECUTED
123fbc: c3 ret <== NOT EXECUTED
00123fbd <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)
{
123fbd: 55 push %ebp <== NOT EXECUTED
123fbe: 89 e5 mov %esp,%ebp <== NOT EXECUTED
123fc0: 57 push %edi <== NOT EXECUTED
123fc1: 56 push %esi <== NOT EXECUTED
123fc2: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
type [0] = mbr_type;
123fc5: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
123fc8: 88 10 mov %dl,(%eax) <== NOT EXECUTED
memcpy( type + 1, RTEMS_BDPART_MBR_MASTER_TYPE + 1, sizeof( uuid_t) - 1);
123fca: 40 inc %eax <== NOT EXECUTED
123fcb: be 35 98 15 00 mov $0x159835,%esi <== NOT EXECUTED
123fd0: b9 0f 00 00 00 mov $0xf,%ecx <== NOT EXECUTED
123fd5: 89 c7 mov %eax,%edi <== NOT EXECUTED
123fd7: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
}
123fd9: 5e pop %esi <== NOT EXECUTED
123fda: 5f pop %edi <== NOT EXECUTED
123fdb: c9 leave <== NOT EXECUTED
123fdc: c3 ret <== NOT EXECUTED
00123c10 <rtems_bdpart_unmount>:
const char *disk_name,
const rtems_bdpart_partition *pt __attribute__((unused)),
size_t count,
const char *mount_base
)
{
123c10: 55 push %ebp <== NOT EXECUTED
123c11: 89 e5 mov %esp,%ebp <== NOT EXECUTED
123c13: 57 push %edi <== NOT EXECUTED
123c14: 56 push %esi <== NOT EXECUTED
123c15: 53 push %ebx <== NOT EXECUTED
123c16: 83 ec 24 sub $0x24,%esp <== NOT EXECUTED
rtems_status_code esc = RTEMS_SUCCESSFUL;
const char *disk_file_name = strrchr( disk_name, '/');
123c19: 6a 2f push $0x2f <== NOT EXECUTED
123c1b: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
123c1e: e8 3d f5 01 00 call 143160 <strrchr> <== NOT EXECUTED
123c23: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
123c26: 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);
123c28: 83 ce ff or $0xffffffff,%esi <== NOT EXECUTED
123c2b: 31 c0 xor %eax,%eax <== NOT EXECUTED
123c2d: 89 f1 mov %esi,%ecx <== NOT EXECUTED
123c2f: 8b 7d 08 mov 0x8(%ebp),%edi <== NOT EXECUTED
123c32: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED
123c34: f7 d1 not %ecx <== NOT EXECUTED
123c36: 49 dec %ecx <== NOT EXECUTED
123c37: 89 4d dc mov %ecx,-0x24(%ebp) <== NOT EXECUTED
size_t mount_base_size = strlen( mount_base);
123c3a: 89 f1 mov %esi,%ecx <== NOT EXECUTED
123c3c: 8b 7d 14 mov 0x14(%ebp),%edi <== NOT EXECUTED
123c3f: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED
123c41: f7 d1 not %ecx <== NOT EXECUTED
123c43: 89 4d e0 mov %ecx,-0x20(%ebp) <== NOT EXECUTED
123c46: 89 cb mov %ecx,%ebx <== NOT EXECUTED
123c48: 4b dec %ebx <== NOT EXECUTED
size_t i = 0;
/* Get disk file name */
if (disk_file_name != NULL) {
123c49: 85 d2 test %edx,%edx <== NOT EXECUTED
123c4b: 75 0b jne 123c58 <rtems_bdpart_unmount+0x48><== NOT EXECUTED
123c4d: 8b 75 dc mov -0x24(%ebp),%esi <== NOT EXECUTED
123c50: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
123c53: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
123c56: eb 0f jmp 123c67 <rtems_bdpart_unmount+0x57><== NOT EXECUTED
disk_file_name += 1;
123c58: 42 inc %edx <== NOT EXECUTED
123c59: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED
disk_file_name_size = strlen( disk_file_name);
123c5c: 89 f1 mov %esi,%ecx <== NOT EXECUTED
123c5e: 89 d7 mov %edx,%edi <== NOT EXECUTED
123c60: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED
123c62: 89 ce mov %ecx,%esi <== NOT EXECUTED
123c64: f7 d6 not %esi <== NOT EXECUTED
123c66: 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);
123c67: 8d 04 1e lea (%esi,%ebx,1),%eax <== NOT EXECUTED
123c6a: 89 45 dc mov %eax,-0x24(%ebp) <== NOT EXECUTED
123c6d: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
123c70: 83 c0 05 add $0x5,%eax <== NOT EXECUTED
123c73: 50 push %eax <== NOT EXECUTED
123c74: e8 6f 97 fe ff call 10d3e8 <malloc> <== NOT EXECUTED
123c79: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (mount_point == NULL) {
123c7b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
123c7e: b8 1a 00 00 00 mov $0x1a,%eax <== NOT EXECUTED
123c83: 85 ff test %edi,%edi <== NOT EXECUTED
123c85: 74 7e je 123d05 <rtems_bdpart_unmount+0xf5><== NOT EXECUTED
esc = RTEMS_NO_MEMORY;
goto cleanup;
}
strncpy( mount_point, mount_base, mount_base_size);
123c87: 50 push %eax <== NOT EXECUTED
123c88: 53 push %ebx <== NOT EXECUTED
123c89: ff 75 14 pushl 0x14(%ebp) <== NOT EXECUTED
123c8c: 57 push %edi <== NOT EXECUTED
123c8d: e8 4e ee 01 00 call 142ae0 <strncpy> <== NOT EXECUTED
mount_point [mount_base_size] = '/';
123c92: 8b 4d e0 mov -0x20(%ebp),%ecx <== NOT EXECUTED
123c95: 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);
123c9a: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
123c9d: 56 push %esi <== NOT EXECUTED
123c9e: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
123ca1: 8d 44 1f 01 lea 0x1(%edi,%ebx,1),%eax <== NOT EXECUTED
123ca5: 50 push %eax <== NOT EXECUTED
123ca6: e8 35 ee 01 00 call 142ae0 <strncpy> <== NOT EXECUTED
/* Marker */
mount_marker = mount_point + mount_base_size + 1 + disk_file_name_size;
123cab: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED
123cae: 8d 74 07 01 lea 0x1(%edi,%eax,1),%esi <== NOT EXECUTED
123cb2: 31 db xor %ebx,%ebx <== NOT EXECUTED
/* Mount supported file systems for each partition */
for (i = 0; i < count; ++i) {
123cb4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
123cb7: eb 45 jmp 123cfe <rtems_bdpart_unmount+0xee><== NOT EXECUTED
/* Create mount point */
int rv = snprintf( mount_marker, RTEMS_BDPART_NUMBER_SIZE, "%zu", i + 1);
123cb9: 43 inc %ebx <== NOT EXECUTED
123cba: 53 push %ebx <== NOT EXECUTED
123cbb: 68 47 b1 15 00 push $0x15b147 <== NOT EXECUTED
123cc0: 6a 04 push $0x4 <== NOT EXECUTED
123cc2: 56 push %esi <== NOT EXECUTED
123cc3: e8 58 e4 01 00 call 142120 <snprintf> <== NOT EXECUTED
if (rv >= RTEMS_BDPART_NUMBER_SIZE) {
123cc8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
123ccb: 83 f8 03 cmp $0x3,%eax <== NOT EXECUTED
123cce: 7e 07 jle 123cd7 <rtems_bdpart_unmount+0xc7><== NOT EXECUTED
123cd0: b8 03 00 00 00 mov $0x3,%eax <== NOT EXECUTED
123cd5: eb 2e jmp 123d05 <rtems_bdpart_unmount+0xf5><== NOT EXECUTED
esc = RTEMS_INVALID_NAME;
goto cleanup;
}
/* Unmount */
rv = unmount( mount_point);
123cd7: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
123cda: 57 push %edi <== NOT EXECUTED
123cdb: e8 91 57 00 00 call 129471 <unmount> <== NOT EXECUTED
if (rv == 0) {
123ce0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
123ce3: 85 c0 test %eax,%eax <== NOT EXECUTED
123ce5: 75 17 jne 123cfe <rtems_bdpart_unmount+0xee><== NOT EXECUTED
/* Remove mount point */
rv = rmdir( mount_point);
123ce7: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
123cea: 57 push %edi <== NOT EXECUTED
123ceb: e8 ac 53 00 00 call 12909c <rmdir> <== NOT EXECUTED
if (rv != 0) {
123cf0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
123cf3: 85 c0 test %eax,%eax <== NOT EXECUTED
123cf5: 74 07 je 123cfe <rtems_bdpart_unmount+0xee><== NOT EXECUTED
123cf7: b8 1b 00 00 00 mov $0x1b,%eax <== NOT EXECUTED
123cfc: eb 07 jmp 123d05 <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) {
123cfe: 3b 5d 10 cmp 0x10(%ebp),%ebx <== NOT EXECUTED
123d01: 72 b6 jb 123cb9 <rtems_bdpart_unmount+0xa9><== NOT EXECUTED
123d03: 31 c0 xor %eax,%eax <== NOT EXECUTED
}
}
cleanup:
free( mount_point);
123d05: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
123d08: 57 push %edi <== NOT EXECUTED
123d09: 89 45 d8 mov %eax,-0x28(%ebp) <== NOT EXECUTED
123d0c: e8 8b 91 fe ff call 10ce9c <free> <== NOT EXECUTED
return esc;
}
123d11: 8b 45 d8 mov -0x28(%ebp),%eax <== NOT EXECUTED
123d14: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
123d17: 5b pop %ebx <== NOT EXECUTED
123d18: 5e pop %esi <== NOT EXECUTED
123d19: 5f pop %edi <== NOT EXECUTED
123d1a: c9 leave <== NOT EXECUTED
123d1b: 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 83 8d 01 00 call 123f1d <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
0012438e <rtems_bdpart_write>:
const char *disk_name,
const rtems_bdpart_format *format,
const rtems_bdpart_partition *pt,
size_t count
)
{
12438e: 55 push %ebp <== NOT EXECUTED
12438f: 89 e5 mov %esp,%ebp <== NOT EXECUTED
124391: 57 push %edi <== NOT EXECUTED
124392: 56 push %esi <== NOT EXECUTED
124393: 53 push %ebx <== NOT EXECUTED
124394: 83 ec 6c sub $0x6c,%esp <== NOT EXECUTED
124397: 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
12439a: 85 f6 test %esi,%esi <== NOT EXECUTED
12439c: 74 0b je 1243a9 <rtems_bdpart_write+0x1b><== NOT EXECUTED
&& format->type == RTEMS_BDPART_FORMAT_MBR
12439e: 83 3e 00 cmpl $0x0,(%esi) <== NOT EXECUTED
1243a1: 75 06 jne 1243a9 <rtems_bdpart_write+0x1b><== NOT EXECUTED
1243a3: 0f b6 4e 08 movzbl 0x8(%esi),%ecx <== NOT EXECUTED
1243a7: eb 02 jmp 1243ab <rtems_bdpart_write+0x1d><== NOT EXECUTED
1243a9: 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;
1243ab: 80 f9 01 cmp $0x1,%cl <== NOT EXECUTED
1243ae: 19 c0 sbb %eax,%eax <== NOT EXECUTED
1243b0: 83 e0 c2 and $0xffffffc2,%eax <== NOT EXECUTED
1243b3: 83 c0 3f add $0x3f,%eax <== NOT EXECUTED
1243b6: 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) {
1243b9: 31 c0 xor %eax,%eax <== NOT EXECUTED
1243bb: 83 7d 14 00 cmpl $0x0,0x14(%ebp) <== NOT EXECUTED
1243bf: 0f 84 2a 04 00 00 je 1247ef <rtems_bdpart_write+0x461><== NOT EXECUTED
/* Nothing to do */
return RTEMS_SUCCESSFUL;
}
/* Check parameter */
if (format == NULL || pt == NULL) {
1243c5: 83 7d 10 00 cmpl $0x0,0x10(%ebp) <== NOT EXECUTED
1243c9: 74 04 je 1243cf <rtems_bdpart_write+0x41><== NOT EXECUTED
1243cb: 85 f6 test %esi,%esi <== NOT EXECUTED
1243cd: 75 0a jne 1243d9 <rtems_bdpart_write+0x4b><== NOT EXECUTED
1243cf: b8 09 00 00 00 mov $0x9,%eax <== NOT EXECUTED
1243d4: e9 16 04 00 00 jmp 1247ef <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;
1243d9: c7 45 d0 00 00 00 00 movl $0x0,-0x30(%ebp) <== NOT EXECUTED
1243e0: 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;
1243e7: 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;
1243ee: 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);
1243f5: 52 push %edx <== NOT EXECUTED
1243f6: 8d 45 dc lea -0x24(%ebp),%eax <== NOT EXECUTED
1243f9: 50 push %eax <== NOT EXECUTED
1243fa: 8d 45 d0 lea -0x30(%ebp),%eax <== NOT EXECUTED
1243fd: 50 push %eax <== NOT EXECUTED
1243fe: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
124401: 88 4d a4 mov %cl,-0x5c(%ebp) <== NOT EXECUTED
124404: e8 14 fb ff ff call 123f1d <rtems_bdpart_get_disk_data><== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
124409: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12440c: 85 c0 test %eax,%eax <== NOT EXECUTED
12440e: 8a 4d a4 mov -0x5c(%ebp),%cl <== NOT EXECUTED
124411: 0f 85 d8 03 00 00 jne 1247ef <rtems_bdpart_write+0x461><== NOT EXECUTED
return sc;
}
/* Align end of disk on cylinder boundary if necessary */
if (dos_compatibility) {
124417: 84 c9 test %cl,%cl <== NOT EXECUTED
124419: 74 0f je 12442a <rtems_bdpart_write+0x9c><== NOT EXECUTED
disk_end -= (disk_end % record_space);
12441b: 8b 5d dc mov -0x24(%ebp),%ebx <== NOT EXECUTED
12441e: 89 d8 mov %ebx,%eax <== NOT EXECUTED
124420: 31 d2 xor %edx,%edx <== NOT EXECUTED
124422: f7 75 b8 divl -0x48(%ebp) <== NOT EXECUTED
124425: 29 d3 sub %edx,%ebx <== NOT EXECUTED
124427: 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) {
12442a: 8b 55 dc mov -0x24(%ebp),%edx <== NOT EXECUTED
12442d: 89 55 bc mov %edx,-0x44(%ebp) <== NOT EXECUTED
124430: 8b 5d 10 mov 0x10(%ebp),%ebx <== NOT EXECUTED
124433: 89 d8 mov %ebx,%eax <== NOT EXECUTED
124435: 31 d2 xor %edx,%edx <== NOT EXECUTED
124437: 89 5d c0 mov %ebx,-0x40(%ebp) <== NOT EXECUTED
12443a: eb 37 jmp 124473 <rtems_bdpart_write+0xe5><== NOT EXECUTED
12443c: 8b 38 mov (%eax),%edi <== NOT EXECUTED
12443e: 3b 7d bc cmp -0x44(%ebp),%edi <== NOT EXECUTED
124441: 0f 83 81 03 00 00 jae 1247c8 <rtems_bdpart_write+0x43a><== NOT EXECUTED
124447: 8b 58 04 mov 0x4(%eax),%ebx <== NOT EXECUTED
12444a: 89 5d c4 mov %ebx,-0x3c(%ebp) <== NOT EXECUTED
12444d: 8b 5d bc mov -0x44(%ebp),%ebx <== NOT EXECUTED
124450: 39 5d c4 cmp %ebx,-0x3c(%ebp) <== NOT EXECUTED
124453: 0f 87 6f 03 00 00 ja 1247c8 <rtems_bdpart_write+0x43a><== NOT EXECUTED
esc = RTEMS_INVALID_NUMBER;
goto cleanup;
}
/* Check that begin and end are valid */
if (p->begin >= p->end) {
124459: 3b 7d c4 cmp -0x3c(%ebp),%edi <== NOT EXECUTED
12445c: 0f 83 66 03 00 00 jae 1247c8 <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) {
124462: 85 d2 test %edx,%edx <== NOT EXECUTED
124464: 74 09 je 12446f <rtems_bdpart_write+0xe1><== NOT EXECUTED
124466: 39 78 d4 cmp %edi,-0x2c(%eax) <== NOT EXECUTED
124469: 0f 87 59 03 00 00 ja 1247c8 <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) {
12446f: 42 inc %edx <== NOT EXECUTED
124470: 83 c0 30 add $0x30,%eax <== NOT EXECUTED
124473: 3b 55 14 cmp 0x14(%ebp),%edx <== NOT EXECUTED
124476: 72 c4 jb 12443c <rtems_bdpart_write+0xae><== NOT EXECUTED
124478: 8b 5d c0 mov -0x40(%ebp),%ebx <== NOT EXECUTED
goto cleanup;
}
}
/* Check format */
if (format->type != RTEMS_BDPART_FORMAT_MBR) {
12447b: bf 18 00 00 00 mov $0x18,%edi <== NOT EXECUTED
124480: 83 3e 00 cmpl $0x0,(%esi) <== NOT EXECUTED
124483: 0f 85 4f 03 00 00 jne 1247d8 <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;
124489: c7 45 bc 03 00 00 00 movl $0x3,-0x44(%ebp) <== NOT EXECUTED
124490: 83 7d 14 04 cmpl $0x4,0x14(%ebp) <== NOT EXECUTED
124494: 77 06 ja 12449c <rtems_bdpart_write+0x10e><== NOT EXECUTED
124496: 8b 7d 14 mov 0x14(%ebp),%edi <== NOT EXECUTED
124499: 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) {
12449c: 84 c9 test %cl,%cl <== NOT EXECUTED
12449e: 75 24 jne 1244c4 <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) {
1244a0: 6b 45 bc 30 imul $0x30,-0x44(%ebp),%eax <== NOT EXECUTED
1244a4: 89 45 b4 mov %eax,-0x4c(%ebp) <== NOT EXECUTED
1244a7: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
1244aa: 01 c2 add %eax,%edx <== NOT EXECUTED
1244ac: 89 55 ac mov %edx,-0x54(%ebp) <== NOT EXECUTED
1244af: 89 d1 mov %edx,%ecx <== NOT EXECUTED
1244b1: 8b 45 bc mov -0x44(%ebp),%eax <== NOT EXECUTED
1244b4: 48 dec %eax <== NOT EXECUTED
1244b5: 6b c0 30 imul $0x30,%eax,%eax <== NOT EXECUTED
1244b8: 8b 7d 10 mov 0x10(%ebp),%edi <== NOT EXECUTED
1244bb: 8d 54 07 04 lea 0x4(%edi,%eax,1),%edx <== NOT EXECUTED
1244bf: 8b 45 bc mov -0x44(%ebp),%eax <== NOT EXECUTED
1244c2: eb 22 jmp 1244e6 <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) {
1244c4: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
1244c7: 83 38 3f cmpl $0x3f,(%eax) <== NOT EXECUTED
1244ca: 0f 85 f8 02 00 00 jne 1247c8 <rtems_bdpart_write+0x43a><== NOT EXECUTED
1244d0: eb ce jmp 1244a0 <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) {
1244d2: 8b 39 mov (%ecx),%edi <== NOT EXECUTED
1244d4: 2b 3a sub (%edx),%edi <== NOT EXECUTED
1244d6: 83 c1 30 add $0x30,%ecx <== NOT EXECUTED
1244d9: 83 c2 30 add $0x30,%edx <== NOT EXECUTED
1244dc: 3b 7d b8 cmp -0x48(%ebp),%edi <== NOT EXECUTED
1244df: 0f 82 e3 02 00 00 jb 1247c8 <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) {
1244e5: 40 inc %eax <== NOT EXECUTED
1244e6: 3b 45 14 cmp 0x14(%ebp),%eax <== NOT EXECUTED
1244e9: 72 e7 jb 1244d2 <rtems_bdpart_write+0x144><== NOT EXECUTED
1244eb: 8b 7d 10 mov 0x10(%ebp),%edi <== NOT EXECUTED
1244ee: 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)) {
1244f0: 8d 4d e7 lea -0x19(%ebp),%ecx <== NOT EXECUTED
1244f3: eb 4a jmp 12453f <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;
1244f5: 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)) {
1244f9: 50 push %eax <== NOT EXECUTED
1244fa: 50 push %eax <== NOT EXECUTED
1244fb: 51 push %ecx <== NOT EXECUTED
1244fc: 8d 47 08 lea 0x8(%edi),%eax <== NOT EXECUTED
1244ff: 50 push %eax <== NOT EXECUTED
124500: 89 55 a0 mov %edx,-0x60(%ebp) <== NOT EXECUTED
124503: 89 4d a4 mov %ecx,-0x5c(%ebp) <== NOT EXECUTED
124506: e8 8a fa ff ff call 123f95 <rtems_bdpart_to_mbr_partition_type><== NOT EXECUTED
12450b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12450e: 84 c0 test %al,%al <== NOT EXECUTED
124510: 8b 55 a0 mov -0x60(%ebp),%edx <== NOT EXECUTED
124513: 8b 4d a4 mov -0x5c(%ebp),%ecx <== NOT EXECUTED
124516: 0f 84 b3 02 00 00 je 1247cf <rtems_bdpart_write+0x441><== NOT EXECUTED
esc = RTEMS_INVALID_ID;
goto cleanup;
}
/* Check flags */
if (p->flags > 0xffU) {
12451c: 8b 47 28 mov 0x28(%edi),%eax <== NOT EXECUTED
12451f: 89 45 c4 mov %eax,-0x3c(%ebp) <== NOT EXECUTED
124522: 8b 47 2c mov 0x2c(%edi),%eax <== NOT EXECUTED
124525: 83 c7 30 add $0x30,%edi <== NOT EXECUTED
124528: 83 f8 00 cmp $0x0,%eax <== NOT EXECUTED
12452b: 0f 87 9e 02 00 00 ja 1247cf <rtems_bdpart_write+0x441><== NOT EXECUTED
124531: 81 7d c4 ff 00 00 00 cmpl $0xff,-0x3c(%ebp) <== NOT EXECUTED
124538: 0f 87 91 02 00 00 ja 1247cf <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) {
12453e: 42 inc %edx <== NOT EXECUTED
12453f: 3b 55 14 cmp 0x14(%ebp),%edx <== NOT EXECUTED
124542: 72 b1 jb 1244f5 <rtems_bdpart_write+0x167><== NOT EXECUTED
/* Check ID */
/* TODO */
}
/* New MBR */
sc = rtems_bdpart_new_record( disk, 0, &block);
124544: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
124547: 8d 45 e0 lea -0x20(%ebp),%eax <== NOT EXECUTED
12454a: 50 push %eax <== NOT EXECUTED
12454b: 31 c9 xor %ecx,%ecx <== NOT EXECUTED
12454d: 8b 45 d0 mov -0x30(%ebp),%eax <== NOT EXECUTED
124550: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED
124553: e8 bc fd ff ff call 124314 <rtems_bdpart_new_record><== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
124558: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12455b: 89 c7 mov %eax,%edi <== NOT EXECUTED
12455d: 85 c0 test %eax,%eax <== NOT EXECUTED
12455f: 0f 85 73 02 00 00 jne 1247d8 <rtems_bdpart_write+0x44a><== NOT EXECUTED
esc = sc;
goto cleanup;
}
/* Write disk ID */
rtems_uint32_to_little_endian(
124565: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
124568: 8b 50 20 mov 0x20(%eax),%edx <== NOT EXECUTED
12456b: 8d 82 b8 01 00 00 lea 0x1b8(%edx),%eax <== NOT EXECUTED
124571: 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;
124574: 88 8a b8 01 00 00 mov %cl,0x1b8(%edx) <== NOT EXECUTED
value >>= 8;
12457a: 89 ca mov %ecx,%edx <== NOT EXECUTED
12457c: 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;
12457f: 88 50 01 mov %dl,0x1(%eax) <== NOT EXECUTED
value >>= 8;
124582: 89 ca mov %ecx,%edx <== NOT EXECUTED
124584: 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;
124587: 88 50 02 mov %dl,0x2(%eax) <== NOT EXECUTED
12458a: c1 e9 18 shr $0x18,%ecx <== NOT EXECUTED
12458d: 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;
124590: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
124593: 8b 40 20 mov 0x20(%eax),%eax <== NOT EXECUTED
124596: 05 be 01 00 00 add $0x1be,%eax <== NOT EXECUTED
12459b: 89 45 c4 mov %eax,-0x3c(%ebp) <== NOT EXECUTED
12459e: 31 f6 xor %esi,%esi <== NOT EXECUTED
for (i = 0; i < ppc; ++i) {
1245a0: eb 6a jmp 12460c <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
1245a2: 8b 53 28 mov 0x28(%ebx),%edx <== NOT EXECUTED
1245a5: 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];
1245a8: 8a 4b 08 mov 0x8(%ebx),%cl <== NOT EXECUTED
1245ab: 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(
1245ae: 8b 53 04 mov 0x4(%ebx),%edx <== NOT EXECUTED
1245b1: 8b 0b mov (%ebx),%ecx <== NOT EXECUTED
1245b3: 89 4d c0 mov %ecx,-0x40(%ebp) <== NOT EXECUTED
1245b6: 88 48 08 mov %cl,0x8(%eax) <== NOT EXECUTED
value >>= 8;
1245b9: 8b 7d c0 mov -0x40(%ebp),%edi <== NOT EXECUTED
1245bc: c1 ef 08 shr $0x8,%edi <== NOT EXECUTED
1245bf: 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;
1245c2: 8a 4d b0 mov -0x50(%ebp),%cl <== NOT EXECUTED
1245c5: 88 48 09 mov %cl,0x9(%eax) <== NOT EXECUTED
value >>= 8;
1245c8: 8b 7d c0 mov -0x40(%ebp),%edi <== NOT EXECUTED
1245cb: 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;
1245ce: 89 f9 mov %edi,%ecx <== NOT EXECUTED
1245d0: 88 48 0a mov %cl,0xa(%eax) <== NOT EXECUTED
1245d3: 8b 7d c0 mov -0x40(%ebp),%edi <== NOT EXECUTED
1245d6: c1 ef 18 shr $0x18,%edi <== NOT EXECUTED
1245d9: 89 f9 mov %edi,%ecx <== NOT EXECUTED
1245db: 88 48 0b mov %cl,0xb(%eax) <== NOT EXECUTED
1245de: 2b 55 c0 sub -0x40(%ebp),%edx <== NOT EXECUTED
1245e1: 88 50 0c mov %dl,0xc(%eax) <== NOT EXECUTED
value >>= 8;
1245e4: 89 d1 mov %edx,%ecx <== NOT EXECUTED
1245e6: 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;
1245e9: 88 48 0d mov %cl,0xd(%eax) <== NOT EXECUTED
value >>= 8;
1245ec: 89 d1 mov %edx,%ecx <== NOT EXECUTED
1245ee: 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;
1245f1: 88 48 0e mov %cl,0xe(%eax) <== NOT EXECUTED
1245f4: c1 ea 18 shr $0x18,%edx <== NOT EXECUTED
1245f7: 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;
1245fa: 8a 55 97 mov -0x69(%ebp),%dl <== NOT EXECUTED
1245fd: 88 50 04 mov %dl,0x4(%eax) <== NOT EXECUTED
data [RTEMS_BDPART_MBR_OFFSET_FLAGS] = flags;
124600: 8a 4d a8 mov -0x58(%ebp),%cl <== NOT EXECUTED
124603: 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;
124605: 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) {
124608: 46 inc %esi <== NOT EXECUTED
124609: 83 c3 30 add $0x30,%ebx <== NOT EXECUTED
12460c: 3b 75 bc cmp -0x44(%ebp),%esi <== NOT EXECUTED
12460f: 72 91 jb 1245a2 <rtems_bdpart_write+0x214><== NOT EXECUTED
124611: 8b 45 bc mov -0x44(%ebp),%eax <== NOT EXECUTED
124614: c1 e0 04 shl $0x4,%eax <== NOT EXECUTED
124617: 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) {
12461a: 8b 5d 14 mov 0x14(%ebp),%ebx <== NOT EXECUTED
12461d: 39 5d bc cmp %ebx,-0x44(%ebp) <== NOT EXECUTED
124620: 0f 84 b0 01 00 00 je 1247d6 <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;
124626: 8b 7d ac mov -0x54(%ebp),%edi <== NOT EXECUTED
124629: 8b 37 mov (%edi),%esi <== NOT EXECUTED
12462b: 2b 75 b8 sub -0x48(%ebp),%esi <== NOT EXECUTED
/* Write extended partition */
rtems_bdpart_write_mbr_partition(
12462e: 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);
124631: 8d 48 08 lea 0x8(%eax),%ecx <== NOT EXECUTED
124634: 89 f3 mov %esi,%ebx <== NOT EXECUTED
124636: 88 58 08 mov %bl,0x8(%eax) <== NOT EXECUTED
value >>= 8;
124639: 89 f3 mov %esi,%ebx <== NOT EXECUTED
12463b: 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;
12463e: 88 59 01 mov %bl,0x1(%ecx) <== NOT EXECUTED
value >>= 8;
124641: 89 f3 mov %esi,%ebx <== NOT EXECUTED
124643: 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;
124646: 88 59 02 mov %bl,0x2(%ecx) <== NOT EXECUTED
124649: 89 f3 mov %esi,%ebx <== NOT EXECUTED
12464b: c1 eb 18 shr $0x18,%ebx <== NOT EXECUTED
12464e: 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(
124651: 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);
124653: 8d 48 0c lea 0xc(%eax),%ecx <== NOT EXECUTED
124656: 88 50 0c mov %dl,0xc(%eax) <== NOT EXECUTED
value >>= 8;
124659: 89 d3 mov %edx,%ebx <== NOT EXECUTED
12465b: 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;
12465e: 88 59 01 mov %bl,0x1(%ecx) <== NOT EXECUTED
value >>= 8;
124661: 89 d3 mov %edx,%ebx <== NOT EXECUTED
124663: 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;
124666: 88 59 02 mov %bl,0x2(%ecx) <== NOT EXECUTED
124669: c1 ea 18 shr $0x18,%edx <== NOT EXECUTED
12466c: 88 51 03 mov %dl,0x3(%ecx) <== NOT EXECUTED
data [RTEMS_BDPART_MBR_OFFSET_TYPE] = type;
12466f: c6 40 04 05 movb $0x5,0x4(%eax) <== NOT EXECUTED
data [RTEMS_BDPART_MBR_OFFSET_FLAGS] = flags;
124673: c6 00 00 movb $0x0,(%eax) <== NOT EXECUTED
124676: 8b 5d 10 mov 0x10(%ebp),%ebx <== NOT EXECUTED
124679: 03 5d b4 add -0x4c(%ebp),%ebx <== NOT EXECUTED
12467c: 8b 7d bc mov -0x44(%ebp),%edi <== NOT EXECUTED
12467f: 89 7d c0 mov %edi,-0x40(%ebp) <== NOT EXECUTED
RTEMS_BDPART_MBR_EXTENDED,
0
);
/* Write logical partitions */
for (i = ppc; i < count; ++i) {
124682: e9 33 01 00 00 jmp 1247ba <rtems_bdpart_write+0x42c><== NOT EXECUTED
const rtems_bdpart_partition *p = pt + i;
/* Write second partition entry */
if (i > ppc) {
124687: 8b 45 bc mov -0x44(%ebp),%eax <== NOT EXECUTED
12468a: 39 45 c0 cmp %eax,-0x40(%ebp) <== NOT EXECUTED
12468d: 0f 86 84 00 00 00 jbe 124717 <rtems_bdpart_write+0x389><== NOT EXECUTED
rtems_blkdev_bnum begin = p->begin - record_space;
124693: 8b 13 mov (%ebx),%edx <== NOT EXECUTED
124695: 8b 4d b8 mov -0x48(%ebp),%ecx <== NOT EXECUTED
124698: 29 ca sub %ecx,%edx <== NOT EXECUTED
12469a: 89 55 c4 mov %edx,-0x3c(%ebp) <== NOT EXECUTED
rtems_bdpart_write_mbr_partition(
12469d: 8b 55 dc mov -0x24(%ebp),%edx <== NOT EXECUTED
1246a0: 8b 7d c4 mov -0x3c(%ebp),%edi <== NOT EXECUTED
1246a3: 29 f7 sub %esi,%edi <== NOT EXECUTED
1246a5: 89 7d b0 mov %edi,-0x50(%ebp) <== NOT EXECUTED
1246a8: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
1246ab: 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);
1246ae: 8d b8 d6 01 00 00 lea 0x1d6(%eax),%edi <== NOT EXECUTED
1246b4: 8a 4d b0 mov -0x50(%ebp),%cl <== NOT EXECUTED
1246b7: 88 88 d6 01 00 00 mov %cl,0x1d6(%eax) <== NOT EXECUTED
value >>= 8;
1246bd: 8b 4d b0 mov -0x50(%ebp),%ecx <== NOT EXECUTED
1246c0: 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;
1246c3: 88 4f 01 mov %cl,0x1(%edi) <== NOT EXECUTED
value >>= 8;
1246c6: 8b 4d b0 mov -0x50(%ebp),%ecx <== NOT EXECUTED
1246c9: 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;
1246cc: 88 4f 02 mov %cl,0x2(%edi) <== NOT EXECUTED
1246cf: 8b 4d b0 mov -0x50(%ebp),%ecx <== NOT EXECUTED
1246d2: c1 e9 18 shr $0x18,%ecx <== NOT EXECUTED
1246d5: 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(
1246d8: 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);
1246db: 8d b8 da 01 00 00 lea 0x1da(%eax),%edi <== NOT EXECUTED
1246e1: 89 7d c4 mov %edi,-0x3c(%ebp) <== NOT EXECUTED
1246e4: 88 90 da 01 00 00 mov %dl,0x1da(%eax) <== NOT EXECUTED
value >>= 8;
1246ea: 89 d1 mov %edx,%ecx <== NOT EXECUTED
1246ec: 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;
1246ef: 88 4f 01 mov %cl,0x1(%edi) <== NOT EXECUTED
value >>= 8;
1246f2: 89 d7 mov %edx,%edi <== NOT EXECUTED
1246f4: c1 ef 10 shr $0x10,%edi <== NOT EXECUTED
1246f7: 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;
1246fa: 8a 4d b4 mov -0x4c(%ebp),%cl <== NOT EXECUTED
1246fd: 8b 7d c4 mov -0x3c(%ebp),%edi <== NOT EXECUTED
124700: 88 4f 02 mov %cl,0x2(%edi) <== NOT EXECUTED
124703: c1 ea 18 shr $0x18,%edx <== NOT EXECUTED
124706: 88 57 03 mov %dl,0x3(%edi) <== NOT EXECUTED
data [RTEMS_BDPART_MBR_OFFSET_TYPE] = type;
124709: c6 80 d2 01 00 00 05 movb $0x5,0x1d2(%eax) <== NOT EXECUTED
data [RTEMS_BDPART_MBR_OFFSET_FLAGS] = flags;
124710: 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);
124717: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12471a: 8b 0b mov (%ebx),%ecx <== NOT EXECUTED
12471c: 2b 4d b8 sub -0x48(%ebp),%ecx <== NOT EXECUTED
12471f: 8d 45 e0 lea -0x20(%ebp),%eax <== NOT EXECUTED
124722: 50 push %eax <== NOT EXECUTED
124723: 8b 45 d0 mov -0x30(%ebp),%eax <== NOT EXECUTED
124726: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED
124729: e8 e6 fb ff ff call 124314 <rtems_bdpart_new_record><== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
12472e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
124731: 85 c0 test %eax,%eax <== NOT EXECUTED
124733: 74 07 je 12473c <rtems_bdpart_write+0x3ae><== NOT EXECUTED
124735: 89 c7 mov %eax,%edi <== NOT EXECUTED
124737: e9 9c 00 00 00 jmp 1247d8 <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
12473c: 8b 53 28 mov 0x28(%ebx),%edx <== NOT EXECUTED
12473f: 89 55 b0 mov %edx,-0x50(%ebp) <== NOT EXECUTED
124742: 8a 4b 08 mov 0x8(%ebx),%cl <== NOT EXECUTED
124745: 88 4d b4 mov %cl,-0x4c(%ebp) <== NOT EXECUTED
esc = sc;
goto cleanup;
}
/* Write first partition entry */
rtems_bdpart_write_mbr_partition(
124748: 8b 7b 04 mov 0x4(%ebx),%edi <== NOT EXECUTED
12474b: 89 7d ac mov %edi,-0x54(%ebp) <== NOT EXECUTED
12474e: 8b 03 mov (%ebx),%eax <== NOT EXECUTED
124750: 89 45 c4 mov %eax,-0x3c(%ebp) <== NOT EXECUTED
124753: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
124756: 8b 50 20 mov 0x20(%eax),%edx <== NOT EXECUTED
124759: 8d 8a be 01 00 00 lea 0x1be(%edx),%ecx <== NOT EXECUTED
12475f: 8b 7d b8 mov -0x48(%ebp),%edi <== NOT EXECUTED
124762: 31 c0 xor %eax,%eax <== NOT EXECUTED
124764: 89 4d a8 mov %ecx,-0x58(%ebp) <== NOT EXECUTED
124767: 89 f9 mov %edi,%ecx <== NOT EXECUTED
124769: 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) {
124770: 40 inc %eax <== NOT EXECUTED
124771: 31 ff xor %edi,%edi <== NOT EXECUTED
124773: 83 f8 04 cmp $0x4,%eax <== NOT EXECUTED
124776: 75 ef jne 124767 <rtems_bdpart_write+0x3d9><== NOT EXECUTED
124778: 8b 4d a8 mov -0x58(%ebp),%ecx <== NOT EXECUTED
12477b: 8b 45 ac mov -0x54(%ebp),%eax <== NOT EXECUTED
12477e: 2b 45 c4 sub -0x3c(%ebp),%eax <== NOT EXECUTED
124781: 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);
124784: 8d 79 0c lea 0xc(%ecx),%edi <== NOT EXECUTED
data [i] = (uint8_t) value;
124787: 88 41 0c mov %al,0xc(%ecx) <== NOT EXECUTED
value >>= 8;
12478a: 8b 45 ac mov -0x54(%ebp),%eax <== NOT EXECUTED
12478d: 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;
124790: 88 47 01 mov %al,0x1(%edi) <== NOT EXECUTED
value >>= 8;
124793: 8b 45 ac mov -0x54(%ebp),%eax <== NOT EXECUTED
124796: 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;
124799: 88 47 02 mov %al,0x2(%edi) <== NOT EXECUTED
12479c: 8b 45 ac mov -0x54(%ebp),%eax <== NOT EXECUTED
12479f: c1 e8 18 shr $0x18,%eax <== NOT EXECUTED
1247a2: 88 47 03 mov %al,0x3(%edi) <== NOT EXECUTED
data [RTEMS_BDPART_MBR_OFFSET_TYPE] = type;
1247a5: 8a 45 b4 mov -0x4c(%ebp),%al <== NOT EXECUTED
1247a8: 88 41 04 mov %al,0x4(%ecx) <== NOT EXECUTED
data [RTEMS_BDPART_MBR_OFFSET_FLAGS] = flags;
1247ab: 8a 4d b0 mov -0x50(%ebp),%cl <== NOT EXECUTED
1247ae: 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) {
1247b4: ff 45 c0 incl -0x40(%ebp) <== NOT EXECUTED
1247b7: 83 c3 30 add $0x30,%ebx <== NOT EXECUTED
1247ba: 8b 7d 14 mov 0x14(%ebp),%edi <== NOT EXECUTED
1247bd: 39 7d c0 cmp %edi,-0x40(%ebp) <== NOT EXECUTED
1247c0: 0f 82 c1 fe ff ff jb 124687 <rtems_bdpart_write+0x2f9><== NOT EXECUTED
1247c6: eb 0e jmp 1247d6 <rtems_bdpart_write+0x448><== NOT EXECUTED
1247c8: bf 0a 00 00 00 mov $0xa,%edi <== NOT EXECUTED
1247cd: eb 09 jmp 1247d8 <rtems_bdpart_write+0x44a><== NOT EXECUTED
1247cf: bf 04 00 00 00 mov $0x4,%edi <== NOT EXECUTED
1247d4: eb 02 jmp 1247d8 <rtems_bdpart_write+0x44a><== NOT EXECUTED
1247d6: 31 ff xor %edi,%edi <== NOT EXECUTED
}
}
cleanup:
if (block != NULL) {
1247d8: 8b 55 e0 mov -0x20(%ebp),%edx <== NOT EXECUTED
1247db: 89 f8 mov %edi,%eax <== NOT EXECUTED
1247dd: 85 d2 test %edx,%edx <== NOT EXECUTED
1247df: 74 0e je 1247ef <rtems_bdpart_write+0x461><== NOT EXECUTED
rtems_bdbuf_sync( block);
1247e1: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1247e4: 52 push %edx <== NOT EXECUTED
1247e5: e8 9b 60 fe ff call 10a885 <rtems_bdbuf_sync> <== NOT EXECUTED
1247ea: 89 f8 mov %edi,%eax <== NOT EXECUTED
1247ec: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
return esc;
}
1247ef: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1247f2: 5b pop %ebx <== NOT EXECUTED
1247f3: 5e pop %esi <== NOT EXECUTED
1247f4: 5f pop %edi <== NOT EXECUTED
1247f5: c9 leave <== NOT EXECUTED
1247f6: c3 ret <== NOT EXECUTED
0011084b <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)
{
11084b: 55 push %ebp
11084c: 89 e5 mov %esp,%ebp
11084e: 53 push %ebx
11084f: 83 ec 04 sub $0x4,%esp
110852: 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;
110855: 8b 03 mov (%ebx),%eax
110857: 8b 40 34 mov 0x34(%eax),%eax
int rc;
switch (args->command)
11085a: 8b 53 04 mov 0x4(%ebx),%edx
11085d: 81 fa 03 42 04 40 cmp $0x40044203,%edx
110863: 74 36 je 11089b <rtems_blkdev_generic_ioctl+0x50><== NEVER TAKEN
110865: 77 12 ja 110879 <rtems_blkdev_generic_ioctl+0x2e><== ALWAYS TAKEN
110867: 81 fa 06 42 00 20 cmp $0x20004206,%edx <== NOT EXECUTED
11086d: 74 4f je 1108be <rtems_blkdev_generic_ioctl+0x73><== NOT EXECUTED
11086f: 81 fa 02 42 04 40 cmp $0x40044202,%edx <== NOT EXECUTED
110875: 75 6b jne 1108e2 <rtems_blkdev_generic_ioctl+0x97><== NOT EXECUTED
110877: eb 1a jmp 110893 <rtems_blkdev_generic_ioctl+0x48><== NOT EXECUTED
110879: 81 fa 04 42 04 80 cmp $0x80044204,%edx
11087f: 74 2b je 1108ac <rtems_blkdev_generic_ioctl+0x61><== ALWAYS TAKEN
110881: 81 fa 01 42 18 c0 cmp $0xc0184201,%edx <== NOT EXECUTED
110887: 74 50 je 1108d9 <rtems_blkdev_generic_ioctl+0x8e><== NOT EXECUTED
110889: 81 fa 05 42 04 40 cmp $0x40044205,%edx <== NOT EXECUTED
11088f: 75 51 jne 1108e2 <rtems_blkdev_generic_ioctl+0x97><== NOT EXECUTED
110891: eb 23 jmp 1108b6 <rtems_blkdev_generic_ioctl+0x6b><== NOT EXECUTED
{
case RTEMS_BLKIO_GETMEDIABLKSIZE:
*((uint32_t *) args->buffer) = dd->media_block_size;
110893: 8b 53 08 mov 0x8(%ebx),%edx <== NOT EXECUTED
110896: 8b 40 24 mov 0x24(%eax),%eax <== NOT EXECUTED
110899: eb 06 jmp 1108a1 <rtems_blkdev_generic_ioctl+0x56><== NOT EXECUTED
args->ioctl_return = 0;
break;
case RTEMS_BLKIO_GETBLKSIZE:
*((uint32_t *) args->buffer) = dd->block_size;
11089b: 8b 53 08 mov 0x8(%ebx),%edx <== NOT EXECUTED
11089e: 8b 40 20 mov 0x20(%eax),%eax <== NOT EXECUTED
1108a1: 89 02 mov %eax,(%edx) <== NOT EXECUTED
args->ioctl_return = 0;
1108a3: c7 43 0c 00 00 00 00 movl $0x0,0xc(%ebx)
break;
1108aa: eb 47 jmp 1108f3 <rtems_blkdev_generic_ioctl+0xa8>
case RTEMS_BLKIO_SETBLKSIZE:
dd->block_size = *((uint32_t *) args->buffer);
1108ac: 8b 53 08 mov 0x8(%ebx),%edx
1108af: 8b 12 mov (%edx),%edx
1108b1: 89 50 20 mov %edx,0x20(%eax)
1108b4: eb ed jmp 1108a3 <rtems_blkdev_generic_ioctl+0x58>
args->ioctl_return = 0;
break;
case RTEMS_BLKIO_GETSIZE:
*((rtems_blkdev_bnum *) args->buffer) = dd->size;
1108b6: 8b 53 08 mov 0x8(%ebx),%edx <== NOT EXECUTED
1108b9: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED
1108bc: eb e3 jmp 1108a1 <rtems_blkdev_generic_ioctl+0x56><== NOT EXECUTED
args->ioctl_return = 0;
break;
case RTEMS_BLKIO_SYNCDEV:
rc = rtems_bdbuf_syncdev(dd->dev);
1108be: 52 push %edx <== NOT EXECUTED
1108bf: 52 push %edx <== NOT EXECUTED
1108c0: ff 70 04 pushl 0x4(%eax) <== NOT EXECUTED
1108c3: ff 30 pushl (%eax) <== NOT EXECUTED
1108c5: e8 d8 e4 ff ff call 10eda2 <rtems_bdbuf_syncdev> <== NOT EXECUTED
args->ioctl_return = (uint32_t) (rc == RTEMS_SUCCESSFUL ? 0 : -1);
1108ca: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1108cd: 83 f8 01 cmp $0x1,%eax <== NOT EXECUTED
1108d0: 19 c0 sbb %eax,%eax <== NOT EXECUTED
1108d2: f7 d0 not %eax <== NOT EXECUTED
1108d4: 89 43 0c mov %eax,0xc(%ebx) <== NOT EXECUTED
break;
1108d7: eb 1a jmp 1108f3 <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;
1108d9: c7 43 0c ff ff ff ff movl $0xffffffff,0xc(%ebx) <== NOT EXECUTED
break;
1108e0: eb 11 jmp 1108f3 <rtems_blkdev_generic_ioctl+0xa8><== NOT EXECUTED
default:
args->ioctl_return = (uint32_t) dd->ioctl(dd->phys_dev,
1108e2: 51 push %ecx <== NOT EXECUTED
1108e3: ff 73 08 pushl 0x8(%ebx) <== NOT EXECUTED
1108e6: 52 push %edx <== NOT EXECUTED
1108e7: ff 70 08 pushl 0x8(%eax) <== NOT EXECUTED
1108ea: ff 50 28 call *0x28(%eax) <== NOT EXECUTED
1108ed: 89 43 0c mov %eax,0xc(%ebx) <== NOT EXECUTED
1108f0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
args->buffer);
break;
}
return RTEMS_SUCCESSFUL;
}
1108f3: 31 c0 xor %eax,%eax
1108f5: 8b 5d fc mov -0x4(%ebp),%ebx
1108f8: c9 leave
1108f9: c3 ret
00110a37 <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)
{
110a37: 55 push %ebp <== NOT EXECUTED
110a38: 89 e5 mov %esp,%ebp <== NOT EXECUTED
110a3a: 57 push %edi <== NOT EXECUTED
110a3b: 56 push %esi <== NOT EXECUTED
110a3c: 53 push %ebx <== NOT EXECUTED
110a3d: 83 ec 3c sub $0x3c,%esp <== NOT EXECUTED
110a40: 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;
110a43: 8b 03 mov (%ebx),%eax <== NOT EXECUTED
110a45: 8b 48 34 mov 0x34(%eax),%ecx <== NOT EXECUTED
uint32_t block_size = dd->block_size;
110a48: 8b 41 20 mov 0x20(%ecx),%eax <== NOT EXECUTED
110a4b: 89 45 bc mov %eax,-0x44(%ebp) <== NOT EXECUTED
char *buf = args->buffer;
110a4e: 8b 53 0c mov 0xc(%ebx),%edx <== NOT EXECUTED
110a51: 89 55 c0 mov %edx,-0x40(%ebp) <== NOT EXECUTED
uint32_t count = args->count;
110a54: 8b 43 10 mov 0x10(%ebx),%eax <== NOT EXECUTED
110a57: 89 45 d4 mov %eax,-0x2c(%ebp) <== NOT EXECUTED
rtems_blkdev_bnum block = (rtems_blkdev_bnum) (args->offset / block_size);
110a5a: 8b 75 bc mov -0x44(%ebp),%esi <== NOT EXECUTED
110a5d: 31 ff xor %edi,%edi <== NOT EXECUTED
110a5f: 57 push %edi <== NOT EXECUTED
110a60: 56 push %esi <== NOT EXECUTED
110a61: ff 73 08 pushl 0x8(%ebx) <== NOT EXECUTED
110a64: ff 73 04 pushl 0x4(%ebx) <== NOT EXECUTED
110a67: 89 4d b8 mov %ecx,-0x48(%ebp) <== NOT EXECUTED
110a6a: e8 ed f3 00 00 call 11fe5c <__divdi3> <== NOT EXECUTED
110a6f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
110a72: 89 45 c4 mov %eax,-0x3c(%ebp) <== NOT EXECUTED
uint32_t blkofs = (uint32_t) (args->offset % block_size);
110a75: 57 push %edi <== NOT EXECUTED
110a76: 56 push %esi <== NOT EXECUTED
110a77: ff 73 08 pushl 0x8(%ebx) <== NOT EXECUTED
110a7a: ff 73 04 pushl 0x4(%ebx) <== NOT EXECUTED
110a7d: e8 2a f5 00 00 call 11ffac <__moddi3> <== NOT EXECUTED
110a82: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
110a85: 89 c6 mov %eax,%esi <== NOT EXECUTED
dev_t dev = dd->dev;
110a87: 8b 4d b8 mov -0x48(%ebp),%ecx <== NOT EXECUTED
110a8a: 8b 01 mov (%ecx),%eax <== NOT EXECUTED
110a8c: 8b 51 04 mov 0x4(%ecx),%edx <== NOT EXECUTED
110a8f: 89 45 c8 mov %eax,-0x38(%ebp) <== NOT EXECUTED
110a92: 89 55 cc mov %edx,-0x34(%ebp) <== NOT EXECUTED
args->bytes_moved = 0;
110a95: c7 43 18 00 00 00 00 movl $0x0,0x18(%ebx) <== NOT EXECUTED
while (count > 0)
110a9c: eb 59 jmp 110af7 <rtems_blkdev_generic_read+0xc0><== NOT EXECUTED
{
rtems_bdbuf_buffer *diskbuf;
uint32_t copy;
rc = rtems_bdbuf_read(dev, block, &diskbuf);
110a9e: 8d 55 e4 lea -0x1c(%ebp),%edx <== NOT EXECUTED
110aa1: 52 push %edx <== NOT EXECUTED
110aa2: ff 75 c4 pushl -0x3c(%ebp) <== NOT EXECUTED
110aa5: ff 75 cc pushl -0x34(%ebp) <== NOT EXECUTED
110aa8: ff 75 c8 pushl -0x38(%ebp) <== NOT EXECUTED
110aab: e8 e4 fa ff ff call 110594 <rtems_bdbuf_read> <== NOT EXECUTED
if (rc != RTEMS_SUCCESSFUL)
110ab0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
110ab3: 85 c0 test %eax,%eax <== NOT EXECUTED
110ab5: 75 48 jne 110aff <rtems_blkdev_generic_read+0xc8><== NOT EXECUTED
break;
copy = block_size - blkofs;
110ab7: 8b 55 bc mov -0x44(%ebp),%edx <== NOT EXECUTED
110aba: 29 f2 sub %esi,%edx <== NOT EXECUTED
110abc: 3b 55 d4 cmp -0x2c(%ebp),%edx <== NOT EXECUTED
110abf: 76 03 jbe 110ac4 <rtems_blkdev_generic_read+0x8d><== NOT EXECUTED
110ac1: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED
if (copy > count)
copy = count;
memcpy(buf, (char *)diskbuf->buffer + blkofs, copy);
110ac4: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
110ac7: 03 70 20 add 0x20(%eax),%esi <== NOT EXECUTED
110aca: 8b 7d c0 mov -0x40(%ebp),%edi <== NOT EXECUTED
110acd: 89 d1 mov %edx,%ecx <== NOT EXECUTED
110acf: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
rc = rtems_bdbuf_release(diskbuf);
110ad1: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
110ad4: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
110ad7: 89 55 b8 mov %edx,-0x48(%ebp) <== NOT EXECUTED
110ada: e8 18 ec ff ff call 10f6f7 <rtems_bdbuf_release> <== NOT EXECUTED
args->bytes_moved += copy;
110adf: 8b 55 b8 mov -0x48(%ebp),%edx <== NOT EXECUTED
110ae2: 01 53 18 add %edx,0x18(%ebx) <== NOT EXECUTED
if (rc != RTEMS_SUCCESSFUL)
110ae5: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
110ae8: 85 c0 test %eax,%eax <== NOT EXECUTED
110aea: 75 13 jne 110aff <rtems_blkdev_generic_read+0xc8><== NOT EXECUTED
break;
count -= copy;
110aec: 29 55 d4 sub %edx,-0x2c(%ebp) <== NOT EXECUTED
buf += copy;
110aef: 89 7d c0 mov %edi,-0x40(%ebp) <== NOT EXECUTED
blkofs = 0;
block++;
110af2: ff 45 c4 incl -0x3c(%ebp) <== NOT EXECUTED
110af5: 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)
110af7: 83 7d d4 00 cmpl $0x0,-0x2c(%ebp) <== NOT EXECUTED
110afb: 75 a1 jne 110a9e <rtems_blkdev_generic_read+0x67><== NOT EXECUTED
110afd: 31 c0 xor %eax,%eax <== NOT EXECUTED
blkofs = 0;
block++;
}
return rc;
}
110aff: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
110b02: 5b pop %ebx <== NOT EXECUTED
110b03: 5e pop %esi <== NOT EXECUTED
110b04: 5f pop %edi <== NOT EXECUTED
110b05: c9 leave <== NOT EXECUTED
110b06: c3 ret <== NOT EXECUTED
0011093d <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)
{
11093d: 55 push %ebp <== NOT EXECUTED
11093e: 89 e5 mov %esp,%ebp <== NOT EXECUTED
110940: 57 push %edi <== NOT EXECUTED
110941: 56 push %esi <== NOT EXECUTED
110942: 53 push %ebx <== NOT EXECUTED
110943: 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;
110946: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
110949: 8b 02 mov (%edx),%eax <== NOT EXECUTED
11094b: 8b 78 34 mov 0x34(%eax),%edi <== NOT EXECUTED
uint32_t block_size = dd->block_size;
11094e: 8b 47 20 mov 0x20(%edi),%eax <== NOT EXECUTED
110951: 89 45 bc mov %eax,-0x44(%ebp) <== NOT EXECUTED
char *buf = args->buffer;
110954: 8b 52 0c mov 0xc(%edx),%edx <== NOT EXECUTED
110957: 89 55 c0 mov %edx,-0x40(%ebp) <== NOT EXECUTED
uint32_t count = args->count;
11095a: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
11095d: 8b 40 10 mov 0x10(%eax),%eax <== NOT EXECUTED
110960: 89 45 d4 mov %eax,-0x2c(%ebp) <== NOT EXECUTED
rtems_blkdev_bnum block = (rtems_blkdev_bnum) (args->offset / block_size);
110963: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
110966: 8b 42 04 mov 0x4(%edx),%eax <== NOT EXECUTED
110969: 8b 52 08 mov 0x8(%edx),%edx <== NOT EXECUTED
11096c: 89 45 b0 mov %eax,-0x50(%ebp) <== NOT EXECUTED
11096f: 89 55 b4 mov %edx,-0x4c(%ebp) <== NOT EXECUTED
110972: 8b 5d bc mov -0x44(%ebp),%ebx <== NOT EXECUTED
110975: 31 f6 xor %esi,%esi <== NOT EXECUTED
110977: 56 push %esi <== NOT EXECUTED
110978: 53 push %ebx <== NOT EXECUTED
110979: 52 push %edx <== NOT EXECUTED
11097a: 50 push %eax <== NOT EXECUTED
11097b: e8 dc f4 00 00 call 11fe5c <__divdi3> <== NOT EXECUTED
110980: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
110983: 89 45 c4 mov %eax,-0x3c(%ebp) <== NOT EXECUTED
uint32_t blkofs = (uint32_t) (args->offset % block_size);
110986: 56 push %esi <== NOT EXECUTED
110987: 53 push %ebx <== NOT EXECUTED
110988: ff 75 b4 pushl -0x4c(%ebp) <== NOT EXECUTED
11098b: ff 75 b0 pushl -0x50(%ebp) <== NOT EXECUTED
11098e: e8 19 f6 00 00 call 11ffac <__moddi3> <== NOT EXECUTED
110993: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
110996: 89 c6 mov %eax,%esi <== NOT EXECUTED
dev_t dev = dd->dev;
110998: 8b 07 mov (%edi),%eax <== NOT EXECUTED
11099a: 8b 57 04 mov 0x4(%edi),%edx <== NOT EXECUTED
11099d: 89 45 c8 mov %eax,-0x38(%ebp) <== NOT EXECUTED
1109a0: 89 55 cc mov %edx,-0x34(%ebp) <== NOT EXECUTED
args->bytes_moved = 0;
1109a3: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
1109a6: c7 42 18 00 00 00 00 movl $0x0,0x18(%edx) <== NOT EXECUTED
while (count > 0)
1109ad: eb 78 jmp 110a27 <rtems_blkdev_generic_write+0xea><== NOT EXECUTED
{
rtems_bdbuf_buffer *diskbuf;
uint32_t copy;
if ((blkofs == 0) && (count >= block_size))
1109af: 8b 45 bc mov -0x44(%ebp),%eax <== NOT EXECUTED
1109b2: 39 45 d4 cmp %eax,-0x2c(%ebp) <== NOT EXECUTED
1109b5: 72 18 jb 1109cf <rtems_blkdev_generic_write+0x92><== NOT EXECUTED
1109b7: 85 f6 test %esi,%esi <== NOT EXECUTED
1109b9: 75 14 jne 1109cf <rtems_blkdev_generic_write+0x92><== NOT EXECUTED
rc = rtems_bdbuf_get(dev, block, &diskbuf);
1109bb: 8d 55 e4 lea -0x1c(%ebp),%edx <== NOT EXECUTED
1109be: 52 push %edx <== NOT EXECUTED
1109bf: ff 75 c4 pushl -0x3c(%ebp) <== NOT EXECUTED
1109c2: ff 75 cc pushl -0x34(%ebp) <== NOT EXECUTED
1109c5: ff 75 c8 pushl -0x38(%ebp) <== NOT EXECUTED
1109c8: e8 09 fb ff ff call 1104d6 <rtems_bdbuf_get> <== NOT EXECUTED
1109cd: eb 12 jmp 1109e1 <rtems_blkdev_generic_write+0xa4><== NOT EXECUTED
else
rc = rtems_bdbuf_read(dev, block, &diskbuf);
1109cf: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
1109d2: 50 push %eax <== NOT EXECUTED
1109d3: ff 75 c4 pushl -0x3c(%ebp) <== NOT EXECUTED
1109d6: ff 75 cc pushl -0x34(%ebp) <== NOT EXECUTED
1109d9: ff 75 c8 pushl -0x38(%ebp) <== NOT EXECUTED
1109dc: e8 b3 fb ff ff call 110594 <rtems_bdbuf_read> <== NOT EXECUTED
1109e1: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
if (rc != RTEMS_SUCCESSFUL)
1109e4: 85 c0 test %eax,%eax <== NOT EXECUTED
1109e6: 75 47 jne 110a2f <rtems_blkdev_generic_write+0xf2><== NOT EXECUTED
break;
copy = block_size - blkofs;
1109e8: 8b 5d bc mov -0x44(%ebp),%ebx <== NOT EXECUTED
1109eb: 29 f3 sub %esi,%ebx <== NOT EXECUTED
1109ed: 3b 5d d4 cmp -0x2c(%ebp),%ebx <== NOT EXECUTED
1109f0: 76 03 jbe 1109f5 <rtems_blkdev_generic_write+0xb8><== NOT EXECUTED
1109f2: 8b 5d d4 mov -0x2c(%ebp),%ebx <== NOT EXECUTED
if (copy > count)
copy = count;
memcpy((char *)diskbuf->buffer + blkofs, buf, copy);
1109f5: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
1109f8: 03 70 20 add 0x20(%eax),%esi <== NOT EXECUTED
1109fb: 89 f7 mov %esi,%edi <== NOT EXECUTED
1109fd: 8b 75 c0 mov -0x40(%ebp),%esi <== NOT EXECUTED
110a00: 89 d9 mov %ebx,%ecx <== NOT EXECUTED
110a02: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
args->bytes_moved += copy;
110a04: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
110a07: 01 5a 18 add %ebx,0x18(%edx) <== NOT EXECUTED
rc = rtems_bdbuf_release_modified(diskbuf);
110a0a: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
110a0d: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
110a10: e8 79 ec ff ff call 10f68e <rtems_bdbuf_release_modified><== NOT EXECUTED
if (rc != RTEMS_SUCCESSFUL)
110a15: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
110a18: 85 c0 test %eax,%eax <== NOT EXECUTED
110a1a: 75 13 jne 110a2f <rtems_blkdev_generic_write+0xf2><== NOT EXECUTED
break;
count -= copy;
110a1c: 29 5d d4 sub %ebx,-0x2c(%ebp) <== NOT EXECUTED
buf += copy;
110a1f: 89 75 c0 mov %esi,-0x40(%ebp) <== NOT EXECUTED
blkofs = 0;
block++;
110a22: ff 45 c4 incl -0x3c(%ebp) <== NOT EXECUTED
110a25: 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)
110a27: 83 7d d4 00 cmpl $0x0,-0x2c(%ebp) <== NOT EXECUTED
110a2b: 75 82 jne 1109af <rtems_blkdev_generic_write+0x72><== NOT EXECUTED
110a2d: 31 c0 xor %eax,%eax <== NOT EXECUTED
blkofs = 0;
block++;
}
return rc;
}
110a2f: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
110a32: 5b pop %ebx <== NOT EXECUTED
110a33: 5e pop %esi <== NOT EXECUTED
110a34: 5f pop %edi <== NOT EXECUTED
110a35: c9 leave <== NOT EXECUTED
110a36: c3 ret <== NOT EXECUTED
001107ec <rtems_blkdev_ioctl>:
return RTEMS_SUCCESSFUL;
}
int
rtems_blkdev_ioctl(rtems_disk_device *dd, uint32_t req, void *argp)
{
1107ec: 55 push %ebp
1107ed: 89 e5 mov %esp,%ebp
1107ef: 83 ec 08 sub $0x8,%esp
1107f2: 8b 55 08 mov 0x8(%ebp),%edx
1107f5: 8b 4d 0c mov 0xc(%ebp),%ecx
1107f8: 8b 45 10 mov 0x10(%ebp),%eax
size_t *arg_size = argp;
int rc = 0;
switch (req)
1107fb: 81 f9 03 42 04 40 cmp $0x40044203,%ecx
110801: 74 23 je 110826 <rtems_blkdev_ioctl+0x3a><== NEVER TAKEN
110803: 77 0a ja 11080f <rtems_blkdev_ioctl+0x23><== NEVER TAKEN
110805: 81 f9 02 42 04 40 cmp $0x40044202,%ecx
11080b: 75 2e jne 11083b <rtems_blkdev_ioctl+0x4f><== ALWAYS TAKEN
11080d: eb 12 jmp 110821 <rtems_blkdev_ioctl+0x35><== NOT EXECUTED
11080f: 81 f9 05 42 04 40 cmp $0x40044205,%ecx <== NOT EXECUTED
110815: 74 1f je 110836 <rtems_blkdev_ioctl+0x4a><== NOT EXECUTED
110817: 81 f9 04 42 04 80 cmp $0x80044204,%ecx <== NOT EXECUTED
11081d: 75 1c jne 11083b <rtems_blkdev_ioctl+0x4f><== NOT EXECUTED
11081f: eb 0e jmp 11082f <rtems_blkdev_ioctl+0x43><== NOT EXECUTED
{
case RTEMS_BLKIO_GETMEDIABLKSIZE:
*arg_size = dd->media_block_size;
110821: 8b 52 24 mov 0x24(%edx),%edx <== NOT EXECUTED
110824: eb 03 jmp 110829 <rtems_blkdev_ioctl+0x3d><== NOT EXECUTED
break;
case RTEMS_BLKIO_GETBLKSIZE:
*arg_size = dd->block_size;
110826: 8b 52 20 mov 0x20(%edx),%edx <== NOT EXECUTED
110829: 89 10 mov %edx,(%eax) <== NOT EXECUTED
11082b: 31 c0 xor %eax,%eax <== NOT EXECUTED
break;
11082d: eb 1a jmp 110849 <rtems_blkdev_ioctl+0x5d><== NOT EXECUTED
case RTEMS_BLKIO_SETBLKSIZE:
dd->block_size = *arg_size;
11082f: 8b 00 mov (%eax),%eax <== NOT EXECUTED
110831: 89 42 20 mov %eax,0x20(%edx) <== NOT EXECUTED
110834: eb f5 jmp 11082b <rtems_blkdev_ioctl+0x3f><== NOT EXECUTED
break;
case RTEMS_BLKIO_GETSIZE:
*arg_size = dd->size;
110836: 8b 52 1c mov 0x1c(%edx),%edx <== NOT EXECUTED
110839: eb ee jmp 110829 <rtems_blkdev_ioctl+0x3d><== NOT EXECUTED
break;
default:
errno = EINVAL;
11083b: e8 10 46 00 00 call 114e50 <__errno>
110840: c7 00 16 00 00 00 movl $0x16,(%eax)
110846: 83 c8 ff or $0xffffffff,%eax
rc = -1;
break;
}
return rc;
}
110849: c9 leave
11084a: 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 9a 4c 00 00 call 10c5dc <_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 28 88 12 00 push $0x128828
10794f: e8 bc 6b 00 00 call 10e510 <_Timespec_Subtract>
}
}
}
#endif
(*print)(
107954: 5e pop %esi
107955: 5f pop %edi
107956: 68 24 11 12 00 push $0x121124
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 68 85 12 00 mov 0x128568(,%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 96 12 12 00 push $0x121296
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 50 86 12 00 mov 0x128650,%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 58 86 12 00 push $0x128658
1079fb: 89 45 a0 mov %eax,-0x60(%ebp)
1079fe: e8 0d 6b 00 00 call 10e510 <_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 02 6a 00 00 call 10e414 <_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 1a 6a 00 00 call 10e444 <_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 a9 12 12 00 push $0x1212a9
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 c1 12 12 00 push $0x1212c1
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
00111810 <rtems_deviceio_errno>:
{ 0, 0, 0 },
};
int
rtems_deviceio_errno(rtems_status_code code)
{
111810: 55 push %ebp <== NOT EXECUTED
111811: 89 e5 mov %esp,%ebp <== NOT EXECUTED
111813: 53 push %ebx <== NOT EXECUTED
111814: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
int rc;
if ((rc = rtems_assoc_remote_by_local(errno_assoc, (uint32_t ) code)))
111817: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
11181a: 68 18 f9 11 00 push $0x11f918 <== NOT EXECUTED
11181f: e8 18 00 00 00 call 11183c <rtems_assoc_remote_by_local><== NOT EXECUTED
111824: 89 c3 mov %eax,%ebx <== NOT EXECUTED
111826: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
111829: 85 c0 test %eax,%eax <== NOT EXECUTED
11182b: 74 07 je 111834 <rtems_deviceio_errno+0x24><== NOT EXECUTED
{
errno = rc;
11182d: e8 8e 00 00 00 call 1118c0 <__errno> <== NOT EXECUTED
111832: 89 18 mov %ebx,(%eax) <== NOT EXECUTED
return -1;
}
return -1;
}
111834: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
111837: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
11183a: c9 leave <== NOT EXECUTED
11183b: 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 6c 86 12 00 add 0x12866c,%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 70 86 12 00 cmp 0x128670,%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 6c 86 12 00 mov 0x12866c,%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 6c 86 12 00 mov 0x12866c,%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 6c 86 12 00 add 0x12866c,%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 70 86 12 00 cmp 0x128670,%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 6c 86 12 00 pushl 0x12866c
10740a: e8 79 0f 00 00 call 108388 <free>
rtems_semaphore_delete(diskdevs_mutex);
10740f: 59 pop %ecx
107410: ff 35 74 86 12 00 pushl 0x128674
107416: e8 f5 40 00 00 call 10b510 <rtems_semaphore_delete>
diskdevs_mutex = RTEMS_ID_NONE;
10741b: c7 05 74 86 12 00 00 movl $0x0,0x128674
107422: 00 00 00
disktab = NULL;
107425: c7 05 6c 86 12 00 00 movl $0x0,0x12866c
10742c: 00 00 00
disktab_size = 0;
10742f: c7 05 70 86 12 00 00 movl $0x0,0x128670
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 70 86 12 00 00 cmpl $0x0,0x128670
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 6c 86 12 00 mov %eax,0x12866c
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 78 86 12 00 00 movb $0x0,0x128678
sc = rtems_semaphore_create(
10747d: 83 ec 0c sub $0xc,%esp
107480: 68 74 86 12 00 push $0x128674
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 6c 86 12 00 pushl 0x12866c <== 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 72 7a 00 00 call 10ef28 <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 74 86 12 00 pushl 0x128674 <== 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 6c 86 12 00 pushl 0x12866c <== 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 70 86 12 00 08 movl $0x8,0x128670
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 70 86 12 00 mov 0x128670,%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 6c 86 12 00 mov 0x12866c,%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 78 86 12 00 mov 0x128678,%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
00120954 <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)
{
120954: 55 push %ebp <== NOT EXECUTED
120955: 89 e5 mov %esp,%ebp <== NOT EXECUTED
120957: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
int rc;
rc = msdos_initialize_support(mt_entry,
12095a: 68 68 cb 15 00 push $0x15cb68 <== NOT EXECUTED
12095f: 68 a0 cb 15 00 push $0x15cba0 <== NOT EXECUTED
120964: 68 94 8b 15 00 push $0x158b94 <== NOT EXECUTED
120969: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
12096c: e8 03 00 00 00 call 120974 <msdos_initialize_support><== NOT EXECUTED
&msdos_ops,
&msdos_file_handlers,
&msdos_dir_handlers);
return rc;
}
120971: c9 leave <== NOT EXECUTED
120972: 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 71 a2 00 00 call 1118c0 <__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 60 a2 00 00 call 1118c0 <__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 28 a3 00 00 call 1118c0 <__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 17 a3 00 00 call 1118c0 <__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 b0 a2 00 00 call 1118c0 <__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
0010f00b <rtems_filesystem_get_mount_handler>:
rtems_filesystem_fsmount_me_t
rtems_filesystem_get_mount_handler(
const char *type
)
{
10f00b: 55 push %ebp
10f00c: 89 e5 mov %esp,%ebp
10f00e: 83 ec 18 sub $0x18,%esp
10f011: 8b 45 08 mov 0x8(%ebp),%eax
find_arg fa = {
.type = type,
.mount_h = NULL
};
10f014: 89 45 f0 mov %eax,-0x10(%ebp)
10f017: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
if ( type != NULL ) {
10f01e: 85 c0 test %eax,%eax
10f020: 74 13 je 10f035 <rtems_filesystem_get_mount_handler+0x2a><== NEVER TAKEN
rtems_filesystem_iterate( find_handler, &fa );
10f022: 50 push %eax
10f023: 50 push %eax
10f024: 8d 45 f0 lea -0x10(%ebp),%eax
10f027: 50 push %eax
10f028: 68 bc ee 10 00 push $0x10eebc
10f02d: e8 54 ff ff ff call 10ef86 <rtems_filesystem_iterate>
10f032: 83 c4 10 add $0x10,%esp
}
return fa.mount_h;
}
10f035: 8b 45 f4 mov -0xc(%ebp),%eax
10f038: c9 leave
10f039: 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 74 34 12 00 mov 0x123474,%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 a0 d7 11 00 00 cmpl $0x0,0x11d7a0
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 6c 16 12 00 mov 0x12166c,%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 57 37 00 00 call 10ab88 <rtems_fatal_error_occurred><== NOT EXECUTED
rtems_filesystem_link_counts = 0;
107431: a1 74 34 12 00 mov 0x123474,%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 b0 ef 11 00 push $0x11efb0
10744e: e8 de 01 00 00 call 107631 <rtems_filesystem_evaluate_path>
rtems_filesystem_root = loc;
107453: 8b 3d 74 34 12 00 mov 0x123474,%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 b0 ef 11 00 push $0x11efb0
107474: e8 b8 01 00 00 call 107631 <rtems_filesystem_evaluate_path>
rtems_filesystem_current = loc;
107479: 8b 3d 74 34 12 00 mov 0x123474,%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 b2 ef 11 00 push $0x11efb2
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 48 55 12 00 pushl 0x125548
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 54 34 12 00 mov 0x123454,%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 58 34 12 00 cmp $0x123458,%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 48 55 12 00 pushl 0x125548
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
0010f03a <rtems_filesystem_register>:
int
rtems_filesystem_register(
const char *type,
rtems_filesystem_fsmount_me_t mount_h
)
{
10f03a: 55 push %ebp
10f03b: 89 e5 mov %esp,%ebp
10f03d: 57 push %edi
10f03e: 56 push %esi
10f03f: 53 push %ebx
10f040: 83 ec 18 sub $0x18,%esp
10f043: 8b 5d 08 mov 0x8(%ebp),%ebx
size_t fsn_size = sizeof( filesystem_node ) + strlen(type) + 1;
10f046: 31 c0 xor %eax,%eax
10f048: 83 c9 ff or $0xffffffff,%ecx
10f04b: 89 df mov %ebx,%edi
10f04d: f2 ae repnz scas %es:(%edi),%al
10f04f: f7 d1 not %ecx
filesystem_node *fsn = malloc( fsn_size );
10f051: 83 c1 10 add $0x10,%ecx
10f054: 51 push %ecx
10f055: e8 e2 88 ff ff call 10793c <malloc>
10f05a: 89 c6 mov %eax,%esi
char *type_storage = (char *) fsn + sizeof( filesystem_node );
if ( fsn == NULL )
10f05c: 83 c4 10 add $0x10,%esp
10f05f: 85 c0 test %eax,%eax
10f061: 75 10 jne 10f073 <rtems_filesystem_register+0x39><== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( ENOMEM );
10f063: e8 58 28 00 00 call 1118c0 <__errno> <== NOT EXECUTED
10f068: c7 00 0c 00 00 00 movl $0xc,(%eax) <== NOT EXECUTED
10f06e: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
10f071: eb 7a jmp 10f0ed <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 );
10f073: 8d 78 10 lea 0x10(%eax),%edi
if ( fsn == NULL )
rtems_set_errno_and_return_minus_one( ENOMEM );
strcpy(type_storage, type);
10f076: 50 push %eax
10f077: 50 push %eax
10f078: 53 push %ebx
10f079: 57 push %edi
10f07a: e8 b5 33 00 00 call 112434 <strcpy>
fsn->entry.type = type_storage;
10f07f: 89 7e 08 mov %edi,0x8(%esi)
fsn->entry.mount_h = mount_h;
10f082: 8b 45 0c mov 0xc(%ebp),%eax
10f085: 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 );
10f088: 83 c4 0c add $0xc,%esp
10f08b: 6a 00 push $0x0
10f08d: 6a 00 push $0x0
10f08f: ff 35 48 55 12 00 pushl 0x125548
10f095: e8 5e b5 ff ff call 10a5f8 <rtems_semaphore_obtain>
rtems_libio_lock();
if ( rtems_filesystem_get_mount_handler( type ) == NULL ) {
10f09a: 89 1c 24 mov %ebx,(%esp)
10f09d: e8 69 ff ff ff call 10f00b <rtems_filesystem_get_mount_handler>
10f0a2: 83 c4 10 add $0x10,%esp
10f0a5: 85 c0 test %eax,%eax
10f0a7: 75 1d jne 10f0c6 <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 );
10f0a9: 51 push %ecx
10f0aa: 51 push %ecx
10f0ab: 56 push %esi
10f0ac: 68 9c 34 12 00 push $0x12349c
10f0b1: e8 2e bd ff ff call 10ade4 <_Chain_Append>
}
static inline void rtems_libio_unlock( void )
{
rtems_semaphore_release( rtems_libio_semaphore );
10f0b6: 5a pop %edx
10f0b7: ff 35 48 55 12 00 pushl 0x125548
10f0bd: e8 22 b6 ff ff call 10a6e4 <rtems_semaphore_release>
10f0c2: 31 c0 xor %eax,%eax
10f0c4: eb 24 jmp 10f0ea <rtems_filesystem_register+0xb0>
10f0c6: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10f0c9: ff 35 48 55 12 00 pushl 0x125548 <== NOT EXECUTED
10f0cf: e8 10 b6 ff ff call 10a6e4 <rtems_semaphore_release><== NOT EXECUTED
rtems_chain_append( &filesystem_chain, &fsn->node );
} else {
rtems_libio_unlock();
free( fsn );
10f0d4: 89 34 24 mov %esi,(%esp) <== NOT EXECUTED
10f0d7: e8 c0 85 ff ff call 10769c <free> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
10f0dc: e8 df 27 00 00 call 1118c0 <__errno> <== NOT EXECUTED
10f0e1: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
10f0e7: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
10f0ea: 83 c4 10 add $0x10,%esp
}
rtems_libio_unlock();
return 0;
}
10f0ed: 8d 65 f4 lea -0xc(%ebp),%esp
10f0f0: 5b pop %ebx
10f0f1: 5e pop %esi
10f0f2: 5f pop %edi
10f0f3: c9 leave
10f0f4: c3 ret
0010eeec <rtems_filesystem_unregister>:
int
rtems_filesystem_unregister(
const char *type
)
{
10eeec: 55 push %ebp <== NOT EXECUTED
10eeed: 89 e5 mov %esp,%ebp <== NOT EXECUTED
10eeef: 56 push %esi <== NOT EXECUTED
10eef0: 53 push %ebx <== NOT EXECUTED
10eef1: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
rtems_chain_node *node = NULL;
if ( type == NULL ) {
10eef4: 85 f6 test %esi,%esi <== NOT EXECUTED
10eef6: 75 10 jne 10ef08 <rtems_filesystem_unregister+0x1c><== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
10eef8: e8 c3 29 00 00 call 1118c0 <__errno> <== NOT EXECUTED
10eefd: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
10ef03: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
10ef06: eb 77 jmp 10ef7f <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 );
10ef08: 53 push %ebx <== NOT EXECUTED
10ef09: 6a 00 push $0x0 <== NOT EXECUTED
10ef0b: 6a 00 push $0x0 <== NOT EXECUTED
10ef0d: ff 35 48 55 12 00 pushl 0x125548 <== NOT EXECUTED
10ef13: e8 e0 b6 ff ff call 10a5f8 <rtems_semaphore_obtain><== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(
Chain_Control *the_chain
)
{
return the_chain->first;
10ef18: 8b 1d 9c 34 12 00 mov 0x12349c,%ebx <== NOT EXECUTED
}
rtems_libio_lock();
for (
10ef1e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10ef21: eb 35 jmp 10ef58 <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 ) {
10ef23: 51 push %ecx <== NOT EXECUTED
10ef24: 51 push %ecx <== NOT EXECUTED
10ef25: 56 push %esi <== NOT EXECUTED
10ef26: ff 73 08 pushl 0x8(%ebx) <== NOT EXECUTED
10ef29: e8 ae 34 00 00 call 1123dc <strcmp> <== NOT EXECUTED
10ef2e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10ef31: 85 c0 test %eax,%eax <== NOT EXECUTED
10ef33: 75 21 jne 10ef56 <rtems_filesystem_unregister+0x6a><== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void rtems_chain_extract(
rtems_chain_node *the_node
)
{
_Chain_Extract( the_node );
10ef35: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10ef38: 53 push %ebx <== NOT EXECUTED
10ef39: e8 ca be ff ff call 10ae08 <_Chain_Extract> <== NOT EXECUTED
rtems_chain_extract( node );
free( fsn );
10ef3e: 89 1c 24 mov %ebx,(%esp) <== NOT EXECUTED
10ef41: e8 56 87 ff ff call 10769c <free> <== NOT EXECUTED
}
static inline void rtems_libio_unlock( void )
{
rtems_semaphore_release( rtems_libio_semaphore );
10ef46: 5a pop %edx <== NOT EXECUTED
10ef47: ff 35 48 55 12 00 pushl 0x125548 <== NOT EXECUTED
10ef4d: e8 92 b7 ff ff call 10a6e4 <rtems_semaphore_release><== NOT EXECUTED
10ef52: 31 c0 xor %eax,%eax <== NOT EXECUTED
10ef54: eb 26 jmp 10ef7c <rtems_filesystem_unregister+0x90><== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Next(
Chain_Node *the_node
)
{
return the_node->next;
10ef56: 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;
10ef58: 81 fb a0 34 12 00 cmp $0x1234a0,%ebx <== NOT EXECUTED
10ef5e: 75 c3 jne 10ef23 <rtems_filesystem_unregister+0x37><== NOT EXECUTED
10ef60: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10ef63: ff 35 48 55 12 00 pushl 0x125548 <== NOT EXECUTED
10ef69: e8 76 b7 ff ff call 10a6e4 <rtems_semaphore_release><== NOT EXECUTED
return 0;
}
}
rtems_libio_unlock();
rtems_set_errno_and_return_minus_one( ENOENT );
10ef6e: e8 4d 29 00 00 call 1118c0 <__errno> <== NOT EXECUTED
10ef73: c7 00 02 00 00 00 movl $0x2,(%eax) <== NOT EXECUTED
10ef79: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
10ef7c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
10ef7f: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
10ef82: 5b pop %ebx <== NOT EXECUTED
10ef83: 5e pop %esi <== NOT EXECUTED
10ef84: c9 leave <== NOT EXECUTED
10ef85: 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 70 0b 03 00 call 13cd98 <__errno> <== NOT EXECUTED
10c228: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10c22b: ff 30 pushl (%eax) <== NOT EXECUTED
10c22d: e8 ca 64 03 00 call 1426fc <strerror> <== NOT EXECUTED
10c232: 50 push %eax <== NOT EXECUTED
10c233: ff 73 04 pushl 0x4(%ebx) <== NOT EXECUTED
10c236: 68 2c 59 15 00 push $0x15592c <== NOT EXECUTED
10c23b: a1 a0 29 16 00 mov 0x1629a0,%eax <== NOT EXECUTED
10c240: ff 70 08 pushl 0x8(%eax) <== NOT EXECUTED
10c243: e8 d0 14 03 00 call 13d718 <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 38 0b 03 00 call 13cd98 <__errno> <== NOT EXECUTED
10c260: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10c263: ff 30 pushl (%eax) <== NOT EXECUTED
10c265: e8 92 64 03 00 call 1426fc <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 5e 59 15 00 push $0x15595e <== NOT EXECUTED
10c277: a1 a0 29 16 00 mov 0x1629a0,%eax <== NOT EXECUTED
10c27c: ff 70 08 pushl 0x8(%eax) <== NOT EXECUTED
10c27f: e8 94 14 03 00 call 13d718 <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 8c 59 15 00 push $0x15598c <== NOT EXECUTED
10c2a0: a1 a0 29 16 00 mov 0x1629a0,%eax <== NOT EXECUTED
10c2a5: ff 70 08 pushl 0x8(%eax) <== NOT EXECUTED
10c2a8: e8 6b 14 03 00 call 13d718 <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 d9 a5 00 00 call 1118c0 <__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
0010cac8 <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)
{
10cac8: 55 push %ebp
10cac9: 89 e5 mov %esp,%ebp
10cacb: 57 push %edi
10cacc: 56 push %esi
10cacd: 53 push %ebx
10cace: 83 ec 0c sub $0xc,%esp
uint32_t i;
uint32_t api_index;
Thread_Control *the_thread;
Objects_Information *information;
if ( !routine )
10cad1: 83 7d 08 00 cmpl $0x0,0x8(%ebp)
10cad5: 74 41 je 10cb18 <rtems_iterate_over_all_threads+0x50><== NEVER TAKEN
10cad7: 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 ] )
10cadc: 8b 04 9d 68 85 12 00 mov 0x128568(,%ebx,4),%eax
10cae3: 85 c0 test %eax,%eax
10cae5: 74 2b je 10cb12 <rtems_iterate_over_all_threads+0x4a>
continue;
information = _Objects_Information_table[ api_index ][ 1 ];
10cae7: 8b 78 04 mov 0x4(%eax),%edi
if ( !information )
10caea: be 01 00 00 00 mov $0x1,%esi
10caef: 85 ff test %edi,%edi
10caf1: 75 17 jne 10cb0a <rtems_iterate_over_all_threads+0x42>
10caf3: eb 1d jmp 10cb12 <rtems_iterate_over_all_threads+0x4a>
continue;
for ( i=1 ; i <= information->maximum ; i++ ) {
the_thread = (Thread_Control *)information->local_table[ i ];
10caf5: 8b 47 1c mov 0x1c(%edi),%eax
10caf8: 8b 04 b0 mov (%eax,%esi,4),%eax
if ( !the_thread )
10cafb: 85 c0 test %eax,%eax
10cafd: 74 0a je 10cb09 <rtems_iterate_over_all_threads+0x41><== NEVER TAKEN
continue;
(*routine)(the_thread);
10caff: 83 ec 0c sub $0xc,%esp
10cb02: 50 push %eax
10cb03: ff 55 08 call *0x8(%ebp)
10cb06: 83 c4 10 add $0x10,%esp
information = _Objects_Information_table[ api_index ][ 1 ];
if ( !information )
continue;
for ( i=1 ; i <= information->maximum ; i++ ) {
10cb09: 46 inc %esi
10cb0a: 0f b7 47 10 movzwl 0x10(%edi),%eax
10cb0e: 39 c6 cmp %eax,%esi
10cb10: 76 e3 jbe 10caf5 <rtems_iterate_over_all_threads+0x2d>
Objects_Information *information;
if ( !routine )
return;
for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) {
10cb12: 43 inc %ebx
10cb13: 83 fb 05 cmp $0x5,%ebx
10cb16: 75 c4 jne 10cadc <rtems_iterate_over_all_threads+0x14>
(*routine)(the_thread);
}
}
}
10cb18: 8d 65 f4 lea -0xc(%ebp),%esp
10cb1b: 5b pop %ebx
10cb1c: 5e pop %esi
10cb1d: 5f pop %edi
10cb1e: c9 leave
10cb1f: c3 ret
0010edfb <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 )
{
10edfb: 55 push %ebp
10edfc: 89 e5 mov %esp,%ebp
10edfe: 57 push %edi
10edff: 53 push %ebx
10ee00: 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 );
10ee03: 6a 00 push $0x0
10ee05: 6a 00 push $0x0
10ee07: ff 35 48 55 12 00 pushl 0x125548
10ee0d: e8 e6 b7 ff ff call 10a5f8 <rtems_semaphore_obtain>
rtems_status_code rc;
rtems_id sema;
rtems_libio_lock();
if (rtems_libio_iop_freelist) {
10ee12: a1 44 55 12 00 mov 0x125544,%eax
10ee17: 83 c4 10 add $0x10,%esp
10ee1a: 85 c0 test %eax,%eax
10ee1c: 74 4f je 10ee6d <rtems_libio_allocate+0x72>
rc = rtems_semaphore_create(
10ee1e: 83 ec 0c sub $0xc,%esp
10ee21: 8d 55 f4 lea -0xc(%ebp),%edx
10ee24: 52 push %edx
10ee25: 6a 00 push $0x0
10ee27: 6a 54 push $0x54
10ee29: 6a 01 push $0x1
10ee2b: 2b 05 40 55 12 00 sub 0x125540,%eax
10ee31: c1 f8 06 sar $0x6,%eax
10ee34: 0d 00 49 42 4c or $0x4c424900,%eax
10ee39: 50 push %eax
10ee3a: e8 8d b5 ff ff call 10a3cc <rtems_semaphore_create>
1,
RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY,
0,
&sema
);
if (rc != RTEMS_SUCCESSFUL)
10ee3f: 83 c4 20 add $0x20,%esp
10ee42: 85 c0 test %eax,%eax
10ee44: 75 27 jne 10ee6d <rtems_libio_allocate+0x72><== NEVER TAKEN
goto failed;
iop = rtems_libio_iop_freelist;
10ee46: 8b 1d 44 55 12 00 mov 0x125544,%ebx
next = iop->data1;
10ee4c: 8b 53 34 mov 0x34(%ebx),%edx
(void) memset( iop, 0, sizeof(rtems_libio_t) );
10ee4f: b9 10 00 00 00 mov $0x10,%ecx
10ee54: 89 df mov %ebx,%edi
10ee56: f3 ab rep stos %eax,%es:(%edi)
iop->flags = LIBIO_FLAGS_OPEN;
10ee58: c7 43 14 00 01 00 00 movl $0x100,0x14(%ebx)
iop->sem = sema;
10ee5f: 8b 45 f4 mov -0xc(%ebp),%eax
10ee62: 89 43 2c mov %eax,0x2c(%ebx)
rtems_libio_iop_freelist = next;
10ee65: 89 15 44 55 12 00 mov %edx,0x125544
goto done;
10ee6b: eb 02 jmp 10ee6f <rtems_libio_allocate+0x74>
10ee6d: 31 db xor %ebx,%ebx
}
static inline void rtems_libio_unlock( void )
{
rtems_semaphore_release( rtems_libio_semaphore );
10ee6f: 83 ec 0c sub $0xc,%esp
10ee72: ff 35 48 55 12 00 pushl 0x125548
10ee78: e8 67 b8 ff ff call 10a6e4 <rtems_semaphore_release>
iop = 0;
done:
rtems_libio_unlock();
return iop;
}
10ee7d: 89 d8 mov %ebx,%eax
10ee7f: 8d 65 f8 lea -0x8(%ebp),%esp
10ee82: 5b pop %ebx
10ee83: 5f pop %edi
10ee84: c9 leave
10ee85: c3 ret
0010eda6 <rtems_libio_free>:
*/
void rtems_libio_free(
rtems_libio_t *iop
)
{
10eda6: 55 push %ebp
10eda7: 89 e5 mov %esp,%ebp
10eda9: 53 push %ebx
10edaa: 83 ec 08 sub $0x8,%esp
10edad: 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 );
10edb0: 6a 00 push $0x0
10edb2: 6a 00 push $0x0
10edb4: ff 35 48 55 12 00 pushl 0x125548
10edba: e8 39 b8 ff ff call 10a5f8 <rtems_semaphore_obtain>
rtems_libio_lock();
if (iop->sem)
10edbf: 8b 43 2c mov 0x2c(%ebx),%eax
10edc2: 83 c4 10 add $0x10,%esp
10edc5: 85 c0 test %eax,%eax
10edc7: 74 0c je 10edd5 <rtems_libio_free+0x2f> <== NEVER TAKEN
rtems_semaphore_delete(iop->sem);
10edc9: 83 ec 0c sub $0xc,%esp
10edcc: 50 push %eax
10edcd: e8 96 b7 ff ff call 10a568 <rtems_semaphore_delete>
10edd2: 83 c4 10 add $0x10,%esp
iop->flags &= ~LIBIO_FLAGS_OPEN;
10edd5: 81 63 14 ff fe ff ff andl $0xfffffeff,0x14(%ebx)
iop->data1 = rtems_libio_iop_freelist;
10eddc: a1 44 55 12 00 mov 0x125544,%eax
10ede1: 89 43 34 mov %eax,0x34(%ebx)
rtems_libio_iop_freelist = iop;
10ede4: 89 1d 44 55 12 00 mov %ebx,0x125544
}
static inline void rtems_libio_unlock( void )
{
rtems_semaphore_release( rtems_libio_semaphore );
10edea: a1 48 55 12 00 mov 0x125548,%eax
10edef: 89 45 08 mov %eax,0x8(%ebp)
rtems_libio_unlock();
}
10edf2: 8b 5d fc mov -0x4(%ebp),%ebx
10edf5: c9 leave
10edf6: e9 e9 b8 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 64 16 12 00 mov 0x121664,%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 40 55 12 00 mov %eax,0x125540
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 44 55 12 00 mov %eax,0x125544
for (i = 0 ; (i + 1) < rtems_libio_number_iops ; i++, iop++)
1077ba: 8b 1d 64 16 12 00 mov 0x121664,%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 48 55 12 00 push $0x125548
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 88 33 00 00 call 10ab88 <rtems_fatal_error_occurred><== NOT EXECUTED
/*
* Initialize the base file system infrastructure.
*/
if (rtems_fs_init_helper)
107800: a1 60 16 12 00 mov 0x121660,%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
00128ec0 <rtems_libio_set_private_env>:
rtems_filesystem_freenode( &env->root_directory);
free(env);
}
}
rtems_status_code rtems_libio_set_private_env(void) {
128ec0: 55 push %ebp
128ec1: 89 e5 mov %esp,%ebp
128ec3: 57 push %edi
128ec4: 56 push %esi
128ec5: 53 push %ebx
128ec6: 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);
128ec9: 8d 45 e4 lea -0x1c(%ebp),%eax
128ecc: 50 push %eax
128ecd: 6a 00 push $0x0
128ecf: 6a 00 push $0x0
128ed1: e8 9a 0e 00 00 call 129d70 <rtems_task_ident>
128ed6: 89 45 c4 mov %eax,-0x3c(%ebp)
if (sc != RTEMS_SUCCESSFUL) return sc;
128ed9: 83 c4 10 add $0x10,%esp
128edc: 85 c0 test %eax,%eax
128ede: 0f 85 c7 00 00 00 jne 128fab <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) {
128ee4: 81 3d fc 21 16 00 a4 cmpl $0x167aa4,0x1621fc
128eeb: 7a 16 00
128eee: 75 51 jne 128f41 <rtems_libio_set_private_env+0x81>
rtems_user_env_t *tmp = malloc(sizeof(rtems_user_env_t));
128ef0: 83 ec 0c sub $0xc,%esp
128ef3: 6a 48 push $0x48
128ef5: e8 ee 44 fe ff call 10d3e8 <malloc>
128efa: 89 c3 mov %eax,%ebx
if (!tmp)
128efc: 83 c4 10 add $0x10,%esp
128eff: 85 c0 test %eax,%eax
128f01: 75 0c jne 128f0f <rtems_libio_set_private_env+0x4f><== ALWAYS TAKEN
128f03: c7 45 c4 1a 00 00 00 movl $0x1a,-0x3c(%ebp) <== NOT EXECUTED
128f0a: e9 9c 00 00 00 jmp 128fab <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);
128f0f: 56 push %esi
128f10: 68 d4 8d 12 00 push $0x128dd4
128f15: 68 fc 21 16 00 push $0x1621fc
128f1a: 6a 00 push $0x0
128f1c: e8 cb 10 00 00 call 129fec <rtems_task_variable_add>
128f21: 89 c6 mov %eax,%esi
if (sc != RTEMS_SUCCESSFUL) {
128f23: 83 c4 10 add $0x10,%esp
128f26: 85 c0 test %eax,%eax
128f28: 74 11 je 128f3b <rtems_libio_set_private_env+0x7b><== ALWAYS TAKEN
/* don't use free_user_env because the pathlocs are
* not initialized yet
*/
free(tmp);
128f2a: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
128f2d: 53 push %ebx <== NOT EXECUTED
128f2e: e8 69 3f fe ff call 10ce9c <free> <== NOT EXECUTED
128f33: 89 75 c4 mov %esi,-0x3c(%ebp) <== NOT EXECUTED
return sc;
128f36: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
128f39: eb 70 jmp 128fab <rtems_libio_set_private_env+0xeb><== NOT EXECUTED
}
rtems_current_user_env = tmp;
128f3b: 89 1d fc 21 16 00 mov %ebx,0x1621fc
};
*rtems_current_user_env = rtems_global_user_env; /* get the global values*/
128f41: a1 fc 21 16 00 mov 0x1621fc,%eax
128f46: be a4 7a 16 00 mov $0x167aa4,%esi
128f4b: b9 12 00 00 00 mov $0x12,%ecx
128f50: 89 c7 mov %eax,%edi
128f52: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
rtems_current_user_env->task_id=task_id; /* mark the local values*/
128f54: 8b 55 e4 mov -0x1c(%ebp),%edx
128f57: 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);
128f59: 83 ec 0c sub $0xc,%esp
128f5c: 6a 00 push $0x0
128f5e: 8d 5d d0 lea -0x30(%ebp),%ebx
128f61: 53 push %ebx
128f62: 6a 00 push $0x0
128f64: 6a 01 push $0x1
128f66: 68 66 f3 15 00 push $0x15f366
128f6b: e8 c1 3e fe ff call 10ce31 <rtems_filesystem_evaluate_path>
rtems_filesystem_root = loc;
128f70: 8b 3d fc 21 16 00 mov 0x1621fc,%edi
128f76: 83 c7 18 add $0x18,%edi
128f79: b9 05 00 00 00 mov $0x5,%ecx
128f7e: 89 de mov %ebx,%esi
128f80: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
128f82: 83 c4 14 add $0x14,%esp
128f85: 6a 00 push $0x0
128f87: 53 push %ebx
128f88: 6a 00 push $0x0
128f8a: 6a 01 push $0x1
128f8c: 68 66 f3 15 00 push $0x15f366
128f91: e8 9b 3e fe ff call 10ce31 <rtems_filesystem_evaluate_path>
rtems_filesystem_current = loc;
128f96: 8b 3d fc 21 16 00 mov 0x1621fc,%edi
128f9c: 83 c7 04 add $0x4,%edi
128f9f: b9 05 00 00 00 mov $0x5,%ecx
128fa4: 89 de mov %ebx,%esi
128fa6: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
return RTEMS_SUCCESSFUL;
128fa8: 83 c4 20 add $0x20,%esp
}
128fab: 8b 45 c4 mov -0x3c(%ebp),%eax
128fae: 8d 65 f4 lea -0xc(%ebp),%esp
128fb1: 5b pop %ebx
128fb2: 5e pop %esi
128fb3: 5f pop %edi
128fb4: c9 leave
128fb5: c3 ret
00128e2b <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) {
128e2b: 55 push %ebp <== NOT EXECUTED
128e2c: 89 e5 mov %esp,%ebp <== NOT EXECUTED
128e2e: 53 push %ebx <== NOT EXECUTED
128e2f: 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);
128e32: 8d 45 f0 lea -0x10(%ebp),%eax <== NOT EXECUTED
128e35: 50 push %eax <== NOT EXECUTED
128e36: 6a 00 push $0x0 <== NOT EXECUTED
128e38: 6a 00 push $0x0 <== NOT EXECUTED
128e3a: e8 31 0f 00 00 call 129d70 <rtems_task_ident> <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) return sc;
128e3f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
128e42: 85 c0 test %eax,%eax <== NOT EXECUTED
128e44: 75 75 jne 128ebb <rtems_libio_share_private_env+0x90><== NOT EXECUTED
if (rtems_current_user_env->task_id==current_task_id) {
128e46: 8b 1d fc 21 16 00 mov 0x1621fc,%ebx <== NOT EXECUTED
128e4c: 8b 03 mov (%ebx),%eax <== NOT EXECUTED
128e4e: 3b 45 f0 cmp -0x10(%ebp),%eax <== NOT EXECUTED
128e51: 75 21 jne 128e74 <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);
128e53: 51 push %ecx <== NOT EXECUTED
128e54: 51 push %ecx <== NOT EXECUTED
128e55: 68 fc 21 16 00 push $0x1621fc <== NOT EXECUTED
128e5a: 6a 00 push $0x0 <== NOT EXECUTED
128e5c: e8 1f 12 00 00 call 12a080 <rtems_task_variable_delete><== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) return sc;
128e61: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
128e64: 85 c0 test %eax,%eax <== NOT EXECUTED
128e66: 75 53 jne 128ebb <rtems_libio_share_private_env+0x90><== NOT EXECUTED
free_user_env(tmp);
128e68: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
128e6b: 53 push %ebx <== NOT EXECUTED
128e6c: e8 63 ff ff ff call 128dd4 <free_user_env> <== NOT EXECUTED
128e71: 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,
128e74: 52 push %edx <== NOT EXECUTED
128e75: 8d 45 f4 lea -0xc(%ebp),%eax <== NOT EXECUTED
128e78: 50 push %eax <== NOT EXECUTED
128e79: 68 fc 21 16 00 push $0x1621fc <== NOT EXECUTED
128e7e: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
128e81: e8 76 12 00 00 call 12a0fc <rtems_task_variable_get><== NOT EXECUTED
(void*)&shared_user_env );
if (sc != RTEMS_SUCCESSFUL)
128e86: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
128e89: 85 c0 test %eax,%eax <== NOT EXECUTED
128e8b: 75 24 jne 128eb1 <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);
128e8d: 50 push %eax <== NOT EXECUTED
128e8e: 68 d4 8d 12 00 push $0x128dd4 <== NOT EXECUTED
128e93: 68 fc 21 16 00 push $0x1621fc <== NOT EXECUTED
128e98: 6a 00 push $0x0 <== NOT EXECUTED
128e9a: e8 4d 11 00 00 call 129fec <rtems_task_variable_add><== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
128e9f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
128ea2: 85 c0 test %eax,%eax <== NOT EXECUTED
128ea4: 75 0b jne 128eb1 <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;
128ea6: 8b 55 f4 mov -0xc(%ebp),%edx <== NOT EXECUTED
128ea9: 89 15 fc 21 16 00 mov %edx,0x1621fc <== NOT EXECUTED
/* increase the reference count */
#ifdef HAVE_USERENV_REFCNT
rtems_current_user_env->refcnt++;
#endif
return RTEMS_SUCCESSFUL;
128eaf: eb 0a jmp 128ebb <rtems_libio_share_private_env+0x90><== NOT EXECUTED
bailout:
/* fallback to the global env */
rtems_current_user_env = &rtems_global_user_env;
128eb1: c7 05 fc 21 16 00 a4 movl $0x167aa4,0x1621fc <== NOT EXECUTED
128eb8: 7a 16 00
return sc;
}
128ebb: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
128ebe: c9 leave <== NOT EXECUTED
128ebf: c3 ret <== NOT EXECUTED
0010ecb0 <rtems_libio_to_fcntl_flags>:
*/
uint32_t rtems_libio_to_fcntl_flags(
uint32_t flags
)
{
10ecb0: 55 push %ebp
10ecb1: 89 e5 mov %esp,%ebp
10ecb3: 8b 55 08 mov 0x8(%ebp),%edx
uint32_t fcntl_flags = 0;
if ( (flags & LIBIO_FLAGS_READ_WRITE) == LIBIO_FLAGS_READ_WRITE ) {
10ecb6: 89 d1 mov %edx,%ecx
10ecb8: 83 e1 06 and $0x6,%ecx
10ecbb: b8 02 00 00 00 mov $0x2,%eax
10ecc0: 83 f9 06 cmp $0x6,%ecx
10ecc3: 74 0f je 10ecd4 <rtems_libio_to_fcntl_flags+0x24><== NEVER TAKEN
fcntl_flags |= O_RDWR;
} else if ( (flags & LIBIO_FLAGS_READ) == LIBIO_FLAGS_READ) {
10ecc5: 30 c0 xor %al,%al
10ecc7: f6 c2 02 test $0x2,%dl
10ecca: 75 08 jne 10ecd4 <rtems_libio_to_fcntl_flags+0x24><== ALWAYS TAKEN
10eccc: 89 d0 mov %edx,%eax <== NOT EXECUTED
10ecce: c1 e8 02 shr $0x2,%eax <== NOT EXECUTED
10ecd1: 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 ) {
10ecd4: f6 c2 01 test $0x1,%dl
10ecd7: 74 03 je 10ecdc <rtems_libio_to_fcntl_flags+0x2c>
fcntl_flags |= O_NONBLOCK;
10ecd9: 80 cc 40 or $0x40,%ah
}
if ( (flags & LIBIO_FLAGS_APPEND) == LIBIO_FLAGS_APPEND ) {
10ecdc: f6 c6 02 test $0x2,%dh
10ecdf: 74 03 je 10ece4 <rtems_libio_to_fcntl_flags+0x34>
fcntl_flags |= O_APPEND;
10ece1: 83 c8 08 or $0x8,%eax
}
if ( (flags & LIBIO_FLAGS_CREATE) == LIBIO_FLAGS_CREATE ) {
10ece4: 80 e6 04 and $0x4,%dh
10ece7: 74 03 je 10ecec <rtems_libio_to_fcntl_flags+0x3c>
fcntl_flags |= O_CREAT;
10ece9: 80 cc 02 or $0x2,%ah
}
return fcntl_flags;
}
10ecec: c9 leave
10eced: 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 01 16 00 pushl 0x160150
10d49f: e8 04 54 00 00 call 1128a8 <_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 90 7a 16 00 add %eax,0x167a90
10d4b6: 11 15 94 7a 16 00 adc %edx,0x167a94
}
}
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 01 16 00 pushl 0x160150
10d4de: e8 c5 53 00 00 call 1128a8 <_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 88 7a 16 00 add 0x167a88,%eax
10d4ee: 13 15 8c 7a 16 00 adc 0x167a8c,%edx
10d4f4: a3 88 7a 16 00 mov %eax,0x167a88
10d4f9: 89 15 8c 7a 16 00 mov %edx,0x167a8c
current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed);
10d4ff: 2b 05 90 7a 16 00 sub 0x167a90,%eax
if (current_depth > s->max_depth)
10d505: 83 c4 10 add $0x10,%esp
10d508: 3b 05 84 7a 16 00 cmp 0x167a84,%eax
10d50e: 76 05 jbe 10d515 <rtems_malloc_statistics_at_malloc+0x57>
s->max_depth = current_depth;
10d510: a3 84 7a 16 00 mov %eax,0x167a84
}
10d515: c9 leave
10d516: c3 ret
00112610 <rtems_memalign>:
int rtems_memalign(
void **pointer,
size_t alignment,
size_t size
)
{
112610: 55 push %ebp
112611: 89 e5 mov %esp,%ebp
112613: 56 push %esi
112614: 53 push %ebx
112615: 8b 5d 08 mov 0x8(%ebp),%ebx
void *return_this;
/*
* Parameter error checks
*/
if ( !pointer )
112618: 85 db test %ebx,%ebx
11261a: 74 57 je 112673 <rtems_memalign+0x63>
return EINVAL;
*pointer = NULL;
11261c: 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()) &&
112622: 83 3d 00 8d 12 00 03 cmpl $0x3,0x128d00
112629: 75 09 jne 112634 <rtems_memalign+0x24>
11262b: e8 d0 5e ff ff call 108500 <malloc_is_system_state_OK>
112630: 84 c0 test %al,%al
112632: 74 3f je 112673 <rtems_memalign+0x63> <== NEVER TAKEN
/*
*
* If some free's have been deferred, then do them now.
*/
malloc_deferred_frees_process();
112634: e8 1d 5f 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 );
112639: 6a 00 push $0x0
11263b: ff 75 0c pushl 0xc(%ebp)
11263e: ff 75 10 pushl 0x10(%ebp)
112641: ff 35 90 4a 12 00 pushl 0x124a90
112647: e8 5c a7 ff ff call 10cda8 <_Protected_heap_Allocate_aligned_with_boundary>
11264c: 89 c6 mov %eax,%esi
return_this = _Protected_heap_Allocate_aligned(
RTEMS_Malloc_Heap,
size,
alignment
);
if ( !return_this )
11264e: 83 c4 10 add $0x10,%esp
112651: b8 0c 00 00 00 mov $0xc,%eax
112656: 85 f6 test %esi,%esi
112658: 74 1e je 112678 <rtems_memalign+0x68>
return ENOMEM;
/*
* If configured, update the more involved statistics
*/
if ( rtems_malloc_statistics_helpers )
11265a: a1 30 6e 12 00 mov 0x126e30,%eax
11265f: 85 c0 test %eax,%eax
112661: 74 0a je 11266d <rtems_memalign+0x5d>
(*rtems_malloc_statistics_helpers->at_malloc)(pointer);
112663: 83 ec 0c sub $0xc,%esp
112666: 53 push %ebx
112667: ff 50 04 call *0x4(%eax)
11266a: 83 c4 10 add $0x10,%esp
*/
if (rtems_malloc_boundary_helpers)
(*rtems_malloc_boundary_helpers->at_malloc)(return_this, size);
#endif
*pointer = return_this;
11266d: 89 33 mov %esi,(%ebx)
11266f: 31 c0 xor %eax,%eax
return 0;
112671: eb 05 jmp 112678 <rtems_memalign+0x68>
112673: b8 16 00 00 00 mov $0x16,%eax
}
112678: 8d 65 f8 lea -0x8(%ebp),%esp
11267b: 5b pop %ebx
11267c: 5e pop %esi
11267d: c9 leave
11267e: 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 fb 44 03 00 call 1426a4 <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 51 eb 02 00 call 13cd98 <__errno> <== NOT EXECUTED
10e247: 83 38 11 cmpl $0x11,(%eax) <== NOT EXECUTED
10e24a: 74 0a je 10e256 <rtems_mkdir+0xbe> <== NOT EXECUTED
10e24c: e8 47 eb 02 00 call 13cd98 <__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 17 eb 02 00 call 13cd98 <__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 08 eb 02 00 call 13cd98 <__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
00121217 <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)
{
121217: 55 push %ebp <== NOT EXECUTED
121218: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12121a: 56 push %esi <== NOT EXECUTED
12121b: 53 push %ebx <== NOT EXECUTED
12121c: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
uint32_t b;
rtems_nvdisk_crc16_factor = malloc (sizeof (uint16_t) * 256);
12121f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
121222: 68 00 02 00 00 push $0x200 <== NOT EXECUTED
121227: e8 bc c1 fe ff call 10d3e8 <malloc> <== NOT EXECUTED
12122c: a3 98 75 16 00 mov %eax,0x167598 <== NOT EXECUTED
if (!rtems_nvdisk_crc16_factor)
121231: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
121234: 31 c9 xor %ecx,%ecx <== NOT EXECUTED
121236: ba 1a 00 00 00 mov $0x1a,%edx <== NOT EXECUTED
12123b: 85 c0 test %eax,%eax <== NOT EXECUTED
12123d: 74 2d je 12126c <rtems_nvdisk_crc16_gen_factors+0x55><== NOT EXECUTED
12123f: 89 ca mov %ecx,%edx <== NOT EXECUTED
121241: 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--;)
121246: eb 0f jmp 121257 <rtems_nvdisk_crc16_gen_factors+0x40><== NOT EXECUTED
v = v & 1 ? (v >> 1) ^ pattern : v >> 1;
121248: f6 c2 01 test $0x1,%dl <== NOT EXECUTED
12124b: 74 07 je 121254 <rtems_nvdisk_crc16_gen_factors+0x3d><== NOT EXECUTED
12124d: 66 d1 ea shr %dx <== NOT EXECUTED
121250: 31 da xor %ebx,%edx <== NOT EXECUTED
121252: eb 03 jmp 121257 <rtems_nvdisk_crc16_gen_factors+0x40><== NOT EXECUTED
121254: 66 d1 ea shr %dx <== NOT EXECUTED
for (b = 0; b < 256; b++)
{
uint32_t i;
uint16_t v = b;
for (i = 8; i--;)
121257: 4e dec %esi <== NOT EXECUTED
121258: 83 fe ff cmp $0xffffffff,%esi <== NOT EXECUTED
12125b: 75 eb jne 121248 <rtems_nvdisk_crc16_gen_factors+0x31><== NOT EXECUTED
v = v & 1 ? (v >> 1) ^ pattern : v >> 1;
rtems_nvdisk_crc16_factor[b] = v & 0xffff;
12125d: 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++)
121261: 41 inc %ecx <== NOT EXECUTED
121262: 81 f9 00 01 00 00 cmp $0x100,%ecx <== NOT EXECUTED
121268: 75 d5 jne 12123f <rtems_nvdisk_crc16_gen_factors+0x28><== NOT EXECUTED
12126a: 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;
}
12126c: 89 d0 mov %edx,%eax <== NOT EXECUTED
12126e: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
121271: 5b pop %ebx <== NOT EXECUTED
121272: 5e pop %esi <== NOT EXECUTED
121273: c9 leave <== NOT EXECUTED
121274: c3 ret <== NOT EXECUTED
00120cc8 <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, ...)
{
120cc8: 55 push %ebp <== NOT EXECUTED
120cc9: 89 e5 mov %esp,%ebp <== NOT EXECUTED
120ccb: 53 push %ebx <== NOT EXECUTED
120ccc: 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, ...)
120ccf: 8d 5d 0c lea 0xc(%ebp),%ebx <== NOT EXECUTED
{
int ret;
va_list args;
va_start (args, format);
fprintf (stderr, "nvdisk:error:");
120cd2: a1 a0 29 16 00 mov 0x1629a0,%eax <== NOT EXECUTED
120cd7: ff 70 0c pushl 0xc(%eax) <== NOT EXECUTED
120cda: 68 dc 8b 15 00 push $0x158bdc <== NOT EXECUTED
120cdf: e8 5c cb 01 00 call 13d840 <fputs> <== NOT EXECUTED
ret = vfprintf (stderr, format, args);
120ce4: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
120ce7: 53 push %ebx <== NOT EXECUTED
120ce8: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
120ceb: a1 a0 29 16 00 mov 0x1629a0,%eax <== NOT EXECUTED
120cf0: ff 70 0c pushl 0xc(%eax) <== NOT EXECUTED
120cf3: e8 7c 98 02 00 call 14a574 <vfprintf> <== NOT EXECUTED
120cf8: 89 c3 mov %eax,%ebx <== NOT EXECUTED
fprintf (stderr, "\n");
120cfa: 5a pop %edx <== NOT EXECUTED
120cfb: 59 pop %ecx <== NOT EXECUTED
120cfc: a1 a0 29 16 00 mov 0x1629a0,%eax <== NOT EXECUTED
120d01: ff 70 0c pushl 0xc(%eax) <== NOT EXECUTED
120d04: 6a 0a push $0xa <== NOT EXECUTED
120d06: e8 49 ca 01 00 call 13d754 <fputc> <== NOT EXECUTED
fflush (stderr);
120d0b: 58 pop %eax <== NOT EXECUTED
120d0c: a1 a0 29 16 00 mov 0x1629a0,%eax <== NOT EXECUTED
120d11: ff 70 0c pushl 0xc(%eax) <== NOT EXECUTED
120d14: e8 fb c3 01 00 call 13d114 <fflush> <== NOT EXECUTED
va_end (args);
return ret;
}
120d19: 89 d8 mov %ebx,%eax <== NOT EXECUTED
120d1b: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
120d1e: c9 leave <== NOT EXECUTED
120d1f: c3 ret <== NOT EXECUTED
00120d20 <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)
{
120d20: 55 push %ebp <== NOT EXECUTED
120d21: 89 e5 mov %esp,%ebp <== NOT EXECUTED
120d23: 57 push %edi <== NOT EXECUTED
120d24: 56 push %esi <== NOT EXECUTED
120d25: 53 push %ebx <== NOT EXECUTED
120d26: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
uint32_t device;
if (block >= nvd->block_count)
120d29: 3b 50 10 cmp 0x10(%eax),%edx <== NOT EXECUTED
120d2c: 73 07 jae 120d35 <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++)
120d2e: 8b 78 18 mov 0x18(%eax),%edi <== NOT EXECUTED
120d31: 31 db xor %ebx,%ebx <== NOT EXECUTED
120d33: eb 22 jmp 120d57 <rtems_nvdisk_get_device+0x37><== NOT EXECUTED
{
uint32_t device;
if (block >= nvd->block_count)
{
rtems_nvdisk_error ("read-block: bad block: %d", block);
120d35: 56 push %esi <== NOT EXECUTED
120d36: 56 push %esi <== NOT EXECUTED
120d37: 52 push %edx <== NOT EXECUTED
120d38: 68 ea 8b 15 00 push $0x158bea <== NOT EXECUTED
120d3d: eb 24 jmp 120d63 <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];
120d3f: 6b cb 14 imul $0x14,%ebx,%ecx <== NOT EXECUTED
120d42: 03 48 14 add 0x14(%eax),%ecx <== NOT EXECUTED
if ((block >= dc->block_base) &&
120d45: 8b 71 0c mov 0xc(%ecx),%esi <== NOT EXECUTED
120d48: 39 f2 cmp %esi,%edx <== NOT EXECUTED
120d4a: 72 0a jb 120d56 <rtems_nvdisk_get_device+0x36><== NOT EXECUTED
(block < (dc->block_base + dc->pages - dc->pages_desc)))
120d4c: 03 71 04 add 0x4(%ecx),%esi <== NOT EXECUTED
120d4f: 2b 71 08 sub 0x8(%ecx),%esi <== NOT EXECUTED
120d52: 39 f2 cmp %esi,%edx <== NOT EXECUTED
120d54: 72 17 jb 120d6d <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++)
120d56: 43 inc %ebx <== NOT EXECUTED
120d57: 39 fb cmp %edi,%ebx <== NOT EXECUTED
120d59: 72 e4 jb 120d3f <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);
120d5b: 53 push %ebx <== NOT EXECUTED
120d5c: 53 push %ebx <== NOT EXECUTED
120d5d: 52 push %edx <== NOT EXECUTED
120d5e: 68 04 8c 15 00 push $0x158c04 <== NOT EXECUTED
120d63: e8 60 ff ff ff call 120cc8 <rtems_nvdisk_error> <== NOT EXECUTED
120d68: 31 c9 xor %ecx,%ecx <== NOT EXECUTED
return NULL;
120d6a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
120d6d: 89 c8 mov %ecx,%eax <== NOT EXECUTED
120d6f: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
120d72: 5b pop %ebx <== NOT EXECUTED
120d73: 5e pop %esi <== NOT EXECUTED
120d74: 5f pop %edi <== NOT EXECUTED
120d75: c9 leave <== NOT EXECUTED
120d76: c3 ret <== NOT EXECUTED
00121275 <rtems_nvdisk_initialize>:
*/
rtems_device_driver
rtems_nvdisk_initialize (rtems_device_major_number major,
rtems_device_minor_number minor,
void* arg __attribute__((unused)))
{
121275: 55 push %ebp <== NOT EXECUTED
121276: 89 e5 mov %esp,%ebp <== NOT EXECUTED
121278: 57 push %edi <== NOT EXECUTED
121279: 56 push %esi <== NOT EXECUTED
12127a: 53 push %ebx <== NOT EXECUTED
12127b: 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 ();
12127e: e8 cc a8 fe ff call 10bb4f <rtems_disk_io_initialize><== NOT EXECUTED
121283: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
121285: 85 c0 test %eax,%eax <== NOT EXECUTED
121287: 0f 85 d8 01 00 00 jne 121465 <rtems_nvdisk_initialize+0x1f0><== NOT EXECUTED
return sc;
sc = rtems_nvdisk_crc16_gen_factors (0x8408);
12128d: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
121290: 68 08 84 00 00 push $0x8408 <== NOT EXECUTED
121295: e8 7d ff ff ff call 121217 <rtems_nvdisk_crc16_gen_factors><== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
12129a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12129d: 89 c7 mov %eax,%edi <== NOT EXECUTED
12129f: 85 c0 test %eax,%eax <== NOT EXECUTED
1212a1: 0f 85 be 01 00 00 jne 121465 <rtems_nvdisk_initialize+0x1f0><== NOT EXECUTED
return sc;
rtems_nvdisks = calloc (rtems_nvdisk_configuration_size,
1212a7: 53 push %ebx <== NOT EXECUTED
1212a8: 53 push %ebx <== NOT EXECUTED
1212a9: 6a 28 push $0x28 <== NOT EXECUTED
1212ab: ff 35 d0 02 16 00 pushl 0x1602d0 <== NOT EXECUTED
1212b1: e8 16 b7 fe ff call 10c9cc <calloc> <== NOT EXECUTED
1212b6: a3 90 75 16 00 mov %eax,0x167590 <== NOT EXECUTED
sizeof (rtems_nvdisk));
if (!rtems_nvdisks)
1212bb: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1212be: 85 c0 test %eax,%eax <== NOT EXECUTED
1212c0: 0f 84 9a 01 00 00 je 121460 <rtems_nvdisk_initialize+0x1eb><== NOT EXECUTED
1212c6: 31 db xor %ebx,%ebx <== NOT EXECUTED
1212c8: 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";
1212cf: 8d 45 d6 lea -0x2a(%ebp),%eax <== NOT EXECUTED
1212d2: 89 45 a4 mov %eax,-0x5c(%ebp) <== NOT EXECUTED
1212d5: e9 6f 01 00 00 jmp 121449 <rtems_nvdisk_initialize+0x1d4><== NOT EXECUTED
1212da: b9 0a 00 00 00 mov $0xa,%ecx <== NOT EXECUTED
1212df: 8b 7d a4 mov -0x5c(%ebp),%edi <== NOT EXECUTED
1212e2: be 8d 8c 15 00 mov $0x158c8d,%esi <== NOT EXECUTED
1212e7: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
rtems_device_minor_number _minor
)
{
union __rtems_dev_t temp;
temp.__overlay.major = _major;
1212e9: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
1212ec: 89 55 e0 mov %edx,-0x20(%ebp) <== NOT EXECUTED
temp.__overlay.minor = _minor;
1212ef: 8b 45 c4 mov -0x3c(%ebp),%eax <== NOT EXECUTED
1212f2: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
return temp.device;
1212f5: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
1212f8: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
1212fb: 89 45 b0 mov %eax,-0x50(%ebp) <== NOT EXECUTED
1212fe: 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];
121301: 8d 34 1b lea (%ebx,%ebx,1),%esi <== NOT EXECUTED
121304: 03 35 90 75 16 00 add 0x167590,%esi <== NOT EXECUTED
name [sizeof(RTEMS_NVDISK_DEVICE_BASE_NAME)] += minor;
12130a: 8a 55 c4 mov -0x3c(%ebp),%dl <== NOT EXECUTED
12130d: 00 55 df add %dl,-0x21(%ebp) <== NOT EXECUTED
nvd->major = major;
121310: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
121313: 89 06 mov %eax,(%esi) <== NOT EXECUTED
nvd->minor = minor;
121315: 8b 55 c4 mov -0x3c(%ebp),%edx <== NOT EXECUTED
121318: 89 56 04 mov %edx,0x4(%esi) <== NOT EXECUTED
nvd->flags = c->flags;
12131b: 8b 83 78 3f 15 00 mov 0x153f78(%ebx),%eax <== NOT EXECUTED
121321: 89 46 08 mov %eax,0x8(%esi) <== NOT EXECUTED
nvd->block_size = c->block_size;
121324: 8b 83 6c 3f 15 00 mov 0x153f6c(%ebx),%eax <== NOT EXECUTED
12132a: 89 46 0c mov %eax,0xc(%esi) <== NOT EXECUTED
nvd->info_level = c->info_level;
12132d: 8b 83 7c 3f 15 00 mov 0x153f7c(%ebx),%eax <== NOT EXECUTED
121333: 89 46 24 mov %eax,0x24(%esi) <== NOT EXECUTED
nvd->devices = calloc (c->device_count, sizeof (rtems_nvdisk_device_ctl));
121336: 51 push %ecx <== NOT EXECUTED
121337: 51 push %ecx <== NOT EXECUTED
121338: 6a 14 push $0x14 <== NOT EXECUTED
12133a: ff b3 70 3f 15 00 pushl 0x153f70(%ebx) <== NOT EXECUTED
121340: e8 87 b6 fe ff call 10c9cc <calloc> <== NOT EXECUTED
121345: 89 46 14 mov %eax,0x14(%esi) <== NOT EXECUTED
if (!nvd->devices)
121348: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12134b: 85 c0 test %eax,%eax <== NOT EXECUTED
12134d: 0f 84 0d 01 00 00 je 121460 <rtems_nvdisk_initialize+0x1eb><== NOT EXECUTED
121353: c7 45 c0 00 00 00 00 movl $0x0,-0x40(%ebp) <== NOT EXECUTED
12135a: 31 ff xor %edi,%edi <== NOT EXECUTED
12135c: eb 69 jmp 1213c7 <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];
12135e: 6b cf 14 imul $0x14,%edi,%ecx <== NOT EXECUTED
121361: 03 4e 14 add 0x14(%esi),%ecx <== NOT EXECUTED
dc->device = device;
121364: 89 39 mov %edi,(%ecx) <== NOT EXECUTED
121366: 89 f8 mov %edi,%eax <== NOT EXECUTED
121368: c1 e0 04 shl $0x4,%eax <== NOT EXECUTED
12136b: 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;
12136e: 8b 93 74 3f 15 00 mov 0x153f74(%ebx),%edx <== NOT EXECUTED
121374: 8b 54 02 08 mov 0x8(%edx,%eax,1),%edx <== NOT EXECUTED
121378: 89 55 9c mov %edx,-0x64(%ebp) <== NOT EXECUTED
12137b: 89 d0 mov %edx,%eax <== NOT EXECUTED
12137d: 31 d2 xor %edx,%edx <== NOT EXECUTED
12137f: f7 76 0c divl 0xc(%esi) <== NOT EXECUTED
121382: 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]);
121385: 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;
121388: 8b 83 74 3f 15 00 mov 0x153f74(%ebx),%eax <== NOT EXECUTED
12138e: 8b 55 bc mov -0x44(%ebp),%edx <== NOT EXECUTED
121391: 8b 54 10 08 mov 0x8(%eax,%edx,1),%edx <== NOT EXECUTED
121395: 89 55 a0 mov %edx,-0x60(%ebp) <== NOT EXECUTED
121398: 89 d0 mov %edx,%eax <== NOT EXECUTED
12139a: 31 d2 xor %edx,%edx <== NOT EXECUTED
12139c: f7 76 0c divl 0xc(%esi) <== NOT EXECUTED
12139f: 8d 44 00 ff lea -0x1(%eax,%eax,1),%eax <== NOT EXECUTED
1213a3: 31 d2 xor %edx,%edx <== NOT EXECUTED
1213a5: f7 76 0c divl 0xc(%esi) <== NOT EXECUTED
1213a8: 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]);
1213a9: 89 41 08 mov %eax,0x8(%ecx) <== NOT EXECUTED
dc->block_base = blocks;
1213ac: 8b 55 c0 mov -0x40(%ebp),%edx <== NOT EXECUTED
1213af: 89 51 0c mov %edx,0xc(%ecx) <== NOT EXECUTED
blocks += dc->pages - dc->pages_desc;
1213b2: 8b 55 b8 mov -0x48(%ebp),%edx <== NOT EXECUTED
1213b5: 29 c2 sub %eax,%edx <== NOT EXECUTED
1213b7: 01 55 c0 add %edx,-0x40(%ebp) <== NOT EXECUTED
dc->descriptor = &c->devices[device];
1213ba: 8b 45 bc mov -0x44(%ebp),%eax <== NOT EXECUTED
1213bd: 03 83 74 3f 15 00 add 0x153f74(%ebx),%eax <== NOT EXECUTED
1213c3: 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++)
1213c6: 47 inc %edi <== NOT EXECUTED
1213c7: 3b bb 70 3f 15 00 cmp 0x153f70(%ebx),%edi <== NOT EXECUTED
1213cd: 72 8f jb 12135e <rtems_nvdisk_initialize+0xe9><== NOT EXECUTED
blocks += dc->pages - dc->pages_desc;
dc->descriptor = &c->devices[device];
}
nvd->block_count = blocks;
1213cf: 8b 45 c0 mov -0x40(%ebp),%eax <== NOT EXECUTED
1213d2: 89 46 10 mov %eax,0x10(%esi) <== NOT EXECUTED
nvd->device_count = c->device_count;
1213d5: 8b 83 70 3f 15 00 mov 0x153f70(%ebx),%eax <== NOT EXECUTED
1213db: 89 46 18 mov %eax,0x18(%esi) <== NOT EXECUTED
sc = rtems_disk_create_phys(dev, c->block_size, blocks,
1213de: 52 push %edx <== NOT EXECUTED
1213df: 8d 55 d6 lea -0x2a(%ebp),%edx <== NOT EXECUTED
1213e2: 52 push %edx <== NOT EXECUTED
1213e3: 6a 00 push $0x0 <== NOT EXECUTED
1213e5: 68 77 0d 12 00 push $0x120d77 <== NOT EXECUTED
1213ea: ff 75 c0 pushl -0x40(%ebp) <== NOT EXECUTED
1213ed: ff b3 6c 3f 15 00 pushl 0x153f6c(%ebx) <== NOT EXECUTED
1213f3: ff 75 b4 pushl -0x4c(%ebp) <== NOT EXECUTED
1213f6: ff 75 b0 pushl -0x50(%ebp) <== NOT EXECUTED
1213f9: e8 31 ad fe ff call 10c12f <rtems_disk_create_phys><== NOT EXECUTED
rtems_nvdisk_ioctl, NULL, name);
if (sc != RTEMS_SUCCESSFUL)
1213fe: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
121401: 85 c0 test %eax,%eax <== NOT EXECUTED
121403: 74 0c je 121411 <rtems_nvdisk_initialize+0x19c><== NOT EXECUTED
121405: 89 c7 mov %eax,%edi <== NOT EXECUTED
{
rtems_nvdisk_error ("disk create phy failed");
121407: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12140a: 68 5e 8c 15 00 push $0x158c5e <== NOT EXECUTED
12140f: eb 2b jmp 12143c <rtems_nvdisk_initialize+0x1c7><== NOT EXECUTED
return sc;
}
sc = rtems_semaphore_create (rtems_build_name ('N', 'V', 'D', 'K'), 1,
121411: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
121414: 83 c6 20 add $0x20,%esi <== NOT EXECUTED
121417: 56 push %esi <== NOT EXECUTED
121418: 6a 00 push $0x0 <== NOT EXECUTED
12141a: 6a 54 push $0x54 <== NOT EXECUTED
12141c: 6a 01 push $0x1 <== NOT EXECUTED
12141e: 68 4b 44 56 4e push $0x4e56444b <== NOT EXECUTED
121423: e8 60 f5 fe ff call 110988 <rtems_semaphore_create><== NOT EXECUTED
121428: 83 c3 14 add $0x14,%ebx <== NOT EXECUTED
RTEMS_PRIORITY | RTEMS_BINARY_SEMAPHORE |
RTEMS_INHERIT_PRIORITY, 0, &nvd->lock);
if (sc != RTEMS_SUCCESSFUL)
12142b: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
12142e: 85 c0 test %eax,%eax <== NOT EXECUTED
121430: 74 14 je 121446 <rtems_nvdisk_initialize+0x1d1><== NOT EXECUTED
121432: 89 c7 mov %eax,%edi <== NOT EXECUTED
{
rtems_nvdisk_error ("disk lock create failed");
121434: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
121437: 68 75 8c 15 00 push $0x158c75 <== NOT EXECUTED
12143c: e8 87 f8 ff ff call 120cc8 <rtems_nvdisk_error> <== NOT EXECUTED
return sc;
121441: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
121444: eb 1f jmp 121465 <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++)
121446: ff 45 c4 incl -0x3c(%ebp) <== NOT EXECUTED
121449: a1 d0 02 16 00 mov 0x1602d0,%eax <== NOT EXECUTED
12144e: 39 45 c4 cmp %eax,-0x3c(%ebp) <== NOT EXECUTED
121451: 0f 82 83 fe ff ff jb 1212da <rtems_nvdisk_initialize+0x65><== NOT EXECUTED
rtems_nvdisk_error ("disk lock create failed");
return sc;
}
}
rtems_nvdisk_count = rtems_nvdisk_configuration_size;
121457: a3 94 75 16 00 mov %eax,0x167594 <== NOT EXECUTED
12145c: 31 ff xor %edi,%edi <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
12145e: eb 05 jmp 121465 <rtems_nvdisk_initialize+0x1f0><== NOT EXECUTED
121460: bf 1a 00 00 00 mov $0x1a,%edi <== NOT EXECUTED
}
121465: 89 f8 mov %edi,%eax <== NOT EXECUTED
121467: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
12146a: 5b pop %ebx <== NOT EXECUTED
12146b: 5e pop %esi <== NOT EXECUTED
12146c: 5f pop %edi <== NOT EXECUTED
12146d: c9 leave <== NOT EXECUTED
12146e: c3 ret <== NOT EXECUTED
00120d77 <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)
{
120d77: 55 push %ebp <== NOT EXECUTED
120d78: 89 e5 mov %esp,%ebp <== NOT EXECUTED
120d7a: 57 push %edi <== NOT EXECUTED
120d7b: 56 push %esi <== NOT EXECUTED
120d7c: 53 push %ebx <== NOT EXECUTED
120d7d: 83 ec 5c sub $0x5c,%esp <== NOT EXECUTED
120d80: 8b 7d 08 mov 0x8(%ebp),%edi <== NOT EXECUTED
120d83: 8b 75 0c mov 0xc(%ebp),%esi <== NOT EXECUTED
120d86: 8b 5d 10 mov 0x10(%ebp),%ebx <== NOT EXECUTED
120d89: 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)
120d8c: 3b 05 94 75 16 00 cmp 0x167594,%eax <== NOT EXECUTED
120d92: 73 15 jae 120da9 <rtems_nvdisk_ioctl+0x32><== NOT EXECUTED
{
errno = ENODEV;
return -1;
}
if (rtems_nvdisks[minor].device_count == 0)
120d94: 6b c0 28 imul $0x28,%eax,%eax <== NOT EXECUTED
120d97: 89 45 c8 mov %eax,-0x38(%ebp) <== NOT EXECUTED
120d9a: a1 90 75 16 00 mov 0x167590,%eax <== NOT EXECUTED
120d9f: 8b 55 c8 mov -0x38(%ebp),%edx <== NOT EXECUTED
120da2: 83 7c 10 18 00 cmpl $0x0,0x18(%eax,%edx,1) <== NOT EXECUTED
120da7: 75 13 jne 120dbc <rtems_nvdisk_ioctl+0x45><== NOT EXECUTED
{
errno = ENODEV;
120da9: e8 ea bf 01 00 call 13cd98 <__errno> <== NOT EXECUTED
120dae: c7 00 13 00 00 00 movl $0x13,(%eax) <== NOT EXECUTED
120db4: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
return -1;
120db7: e9 31 04 00 00 jmp 1211ed <rtems_nvdisk_ioctl+0x476><== NOT EXECUTED
}
errno = 0;
120dbc: e8 d7 bf 01 00 call 13cd98 <__errno> <== NOT EXECUTED
120dc1: c7 00 00 00 00 00 movl $0x0,(%eax) <== NOT EXECUTED
sc = rtems_semaphore_obtain (rtems_nvdisks[minor].lock, RTEMS_WAIT, 0);
120dc7: 50 push %eax <== NOT EXECUTED
120dc8: 6a 00 push $0x0 <== NOT EXECUTED
120dca: 6a 00 push $0x0 <== NOT EXECUTED
120dcc: a1 90 75 16 00 mov 0x167590,%eax <== NOT EXECUTED
120dd1: 8b 4d c8 mov -0x38(%ebp),%ecx <== NOT EXECUTED
120dd4: ff 74 08 20 pushl 0x20(%eax,%ecx,1) <== NOT EXECUTED
120dd8: e8 2b fe fe ff call 110c08 <rtems_semaphore_obtain><== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
120ddd: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
120de0: 85 c0 test %eax,%eax <== NOT EXECUTED
120de2: 0f 85 ee 03 00 00 jne 1211d6 <rtems_nvdisk_ioctl+0x45f><== NOT EXECUTED
errno = EIO;
else
{
errno = 0;
120de8: e8 ab bf 01 00 call 13cd98 <__errno> <== NOT EXECUTED
120ded: c7 00 00 00 00 00 movl $0x0,(%eax) <== NOT EXECUTED
switch (req)
120df3: 81 fe 82 42 00 20 cmp $0x20004282,%esi <== NOT EXECUTED
120df9: 0f 84 a2 03 00 00 je 1211a1 <rtems_nvdisk_ioctl+0x42a><== NOT EXECUTED
120dff: 81 fe 01 42 18 c0 cmp $0xc0184201,%esi <== NOT EXECUTED
120e05: 74 11 je 120e18 <rtems_nvdisk_ioctl+0xa1><== NOT EXECUTED
120e07: 81 fe 80 42 00 20 cmp $0x20004280,%esi <== NOT EXECUTED
120e0d: 0f 85 9c 03 00 00 jne 1211af <rtems_nvdisk_ioctl+0x438><== NOT EXECUTED
120e13: e9 0e 03 00 00 jmp 121126 <rtems_nvdisk_ioctl+0x3af><== NOT EXECUTED
{
case RTEMS_BLKIO_REQUEST:
switch (r->req)
120e18: 8b 03 mov (%ebx),%eax <== NOT EXECUTED
120e1a: 85 c0 test %eax,%eax <== NOT EXECUTED
120e1c: 74 0c je 120e2a <rtems_nvdisk_ioctl+0xb3><== NOT EXECUTED
120e1e: 48 dec %eax <== NOT EXECUTED
120e1f: 0f 85 f1 02 00 00 jne 121116 <rtems_nvdisk_ioctl+0x39f><== NOT EXECUTED
120e25: e9 88 01 00 00 jmp 120fb2 <rtems_nvdisk_ioctl+0x23b><== NOT EXECUTED
{
case RTEMS_BLKDEV_REQ_READ:
errno = rtems_nvdisk_read (&rtems_nvdisks[minor], r);
120e2a: e8 69 bf 01 00 call 13cd98 <__errno> <== NOT EXECUTED
120e2f: 89 45 b8 mov %eax,-0x48(%ebp) <== NOT EXECUTED
120e32: 8b 75 c8 mov -0x38(%ebp),%esi <== NOT EXECUTED
120e35: 03 35 90 75 16 00 add 0x167590,%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;
120e3b: 8d 43 18 lea 0x18(%ebx),%eax <== NOT EXECUTED
120e3e: 89 45 cc mov %eax,-0x34(%ebp) <== NOT EXECUTED
120e41: c7 45 c0 00 00 00 00 movl $0x0,-0x40(%ebp) <== NOT EXECUTED
120e48: 89 5d d4 mov %ebx,-0x2c(%ebp) <== NOT EXECUTED
120e4b: e9 31 01 00 00 jmp 120f81 <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;
120e50: 8b 55 cc mov -0x34(%ebp),%edx <== NOT EXECUTED
120e53: 8b 42 04 mov 0x4(%edx),%eax <== NOT EXECUTED
120e56: 31 d2 xor %edx,%edx <== NOT EXECUTED
120e58: f7 76 0c divl 0xc(%esi) <== NOT EXECUTED
120e5b: 89 45 b0 mov %eax,-0x50(%ebp) <== NOT EXECUTED
data = sg->buffer;
120e5e: 8b 4d cc mov -0x34(%ebp),%ecx <== NOT EXECUTED
120e61: 8b 59 08 mov 0x8(%ecx),%ebx <== NOT EXECUTED
120e64: c7 45 d0 00 00 00 00 movl $0x0,-0x30(%ebp) <== NOT EXECUTED
120e6b: e9 00 01 00 00 jmp 120f70 <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);
120e70: 8b 55 d0 mov -0x30(%ebp),%edx <== NOT EXECUTED
120e73: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED
120e76: 03 10 add (%eax),%edx <== NOT EXECUTED
120e78: 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);
120e7b: 89 f0 mov %esi,%eax <== NOT EXECUTED
120e7d: e8 9e fe ff ff call 120d20 <rtems_nvdisk_get_device><== NOT EXECUTED
120e82: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (!dc)
120e84: 85 c0 test %eax,%eax <== NOT EXECUTED
120e86: 75 0d jne 120e95 <rtems_nvdisk_ioctl+0x11e><== NOT EXECUTED
120e88: 8b 5d d4 mov -0x2c(%ebp),%ebx <== NOT EXECUTED
120e8b: b8 05 00 00 00 mov $0x5,%eax <== NOT EXECUTED
120e90: e9 d4 00 00 00 jmp 120f69 <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;
120e95: 8b 4d c4 mov -0x3c(%ebp),%ecx <== NOT EXECUTED
120e98: 2b 48 0c sub 0xc(%eax),%ecx <== NOT EXECUTED
120e9b: 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);
120e9e: 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;
120ea0: 8b 4e 14 mov 0x14(%esi),%ecx <== NOT EXECUTED
120ea3: 6b c2 14 imul $0x14,%edx,%eax <== NOT EXECUTED
120ea6: 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);
120eaa: 51 push %ecx <== NOT EXECUTED
120eab: 51 push %ecx <== NOT EXECUTED
120eac: 8b 48 0c mov 0xc(%eax),%ecx <== NOT EXECUTED
120eaf: 89 4d bc mov %ecx,-0x44(%ebp) <== NOT EXECUTED
120eb2: 6a 02 push $0x2 <== NOT EXECUTED
120eb4: 8d 4d e6 lea -0x1a(%ebp),%ecx <== NOT EXECUTED
120eb7: 51 push %ecx <== NOT EXECUTED
120eb8: 8b 4d b4 mov -0x4c(%ebp),%ecx <== NOT EXECUTED
120ebb: d1 e1 shl %ecx <== NOT EXECUTED
120ebd: 51 push %ecx <== NOT EXECUTED
120ebe: ff 70 04 pushl 0x4(%eax) <== NOT EXECUTED
120ec1: ff 30 pushl (%eax) <== NOT EXECUTED
120ec3: 52 push %edx <== NOT EXECUTED
120ec4: 8b 55 bc mov -0x44(%ebp),%edx <== NOT EXECUTED
120ec7: ff 12 call *(%edx) <== NOT EXECUTED
block, dc->device, page, crc);
#endif
ret = rtems_nvdisk_read_checksum (nvd, dc->device, page, &crc);
if (ret)
120ec9: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
120ecc: 85 c0 test %eax,%eax <== NOT EXECUTED
120ece: 0f 85 92 00 00 00 jne 120f66 <rtems_nvdisk_ioctl+0x1ef><== NOT EXECUTED
return ret;
if (crc == 0xffff)
120ed4: 66 83 7d e6 ff cmpw $0xffffffff,-0x1a(%ebp) <== NOT EXECUTED
120ed9: 8b 4e 0c mov 0xc(%esi),%ecx <== NOT EXECUTED
120edc: 75 09 jne 120ee7 <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);
120ede: 89 df mov %ebx,%edi <== NOT EXECUTED
120ee0: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED
120ee2: e9 0e 03 00 00 jmp 1211f5 <rtems_nvdisk_ioctl+0x47e><== NOT EXECUTED
return 0;
}
ret = rtems_nvdisk_read_page (nvd, dc->device, page + dc->pages_desc, buffer);
120ee7: 8b 07 mov (%edi),%eax <== NOT EXECUTED
120ee9: 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;
120eec: 6b d0 14 imul $0x14,%eax,%edx <== NOT EXECUTED
120eef: 8b 46 14 mov 0x14(%esi),%eax <== NOT EXECUTED
120ef2: 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);
120ef6: 52 push %edx <== NOT EXECUTED
120ef7: 52 push %edx <== NOT EXECUTED
120ef8: 8b 50 0c mov 0xc(%eax),%edx <== NOT EXECUTED
120efb: 51 push %ecx <== NOT EXECUTED
120efc: 53 push %ebx <== NOT EXECUTED
120efd: 8b 7f 08 mov 0x8(%edi),%edi <== NOT EXECUTED
120f00: 03 7d b4 add -0x4c(%ebp),%edi <== NOT EXECUTED
120f03: 0f af f9 imul %ecx,%edi <== NOT EXECUTED
120f06: 57 push %edi <== NOT EXECUTED
120f07: ff 70 04 pushl 0x4(%eax) <== NOT EXECUTED
120f0a: ff 30 pushl (%eax) <== NOT EXECUTED
120f0c: ff 75 a4 pushl -0x5c(%ebp) <== NOT EXECUTED
120f0f: ff 12 call *(%edx) <== NOT EXECUTED
return 0;
}
ret = rtems_nvdisk_read_page (nvd, dc->device, page + dc->pages_desc, buffer);
if (ret)
120f11: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
120f14: 85 c0 test %eax,%eax <== NOT EXECUTED
120f16: 75 4e jne 120f66 <rtems_nvdisk_ioctl+0x1ef><== NOT EXECUTED
return ret;
cs = rtems_nvdisk_page_checksum (buffer, nvd->block_size);
120f18: 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);
120f1b: 8b 0d 98 75 16 00 mov 0x167598,%ecx <== NOT EXECUTED
120f21: 31 d2 xor %edx,%edx <== NOT EXECUTED
120f23: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
120f26: eb 0b jmp 120f33 <rtems_nvdisk_ioctl+0x1bc><== NOT EXECUTED
120f28: 32 04 13 xor (%ebx,%edx,1),%al <== NOT EXECUTED
120f2b: 0f b6 c0 movzbl %al,%eax <== NOT EXECUTED
120f2e: 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++)
120f32: 42 inc %edx <== NOT EXECUTED
120f33: 39 fa cmp %edi,%edx <== NOT EXECUTED
120f35: 72 f1 jb 120f28 <rtems_nvdisk_ioctl+0x1b1><== NOT EXECUTED
if (ret)
return ret;
cs = rtems_nvdisk_page_checksum (buffer, nvd->block_size);
if (cs != crc)
120f37: 66 8b 55 e6 mov -0x1a(%ebp),%dx <== NOT EXECUTED
120f3b: 66 39 d0 cmp %dx,%ax <== NOT EXECUTED
120f3e: 0f 84 b1 02 00 00 je 1211f5 <rtems_nvdisk_ioctl+0x47e><== NOT EXECUTED
120f44: 8b 5d d4 mov -0x2c(%ebp),%ebx <== NOT EXECUTED
{
rtems_nvdisk_error ("read-block: crc failure: %d: buffer:%04x page:%04x",
120f47: 0f b7 d2 movzwl %dx,%edx <== NOT EXECUTED
120f4a: 52 push %edx <== NOT EXECUTED
120f4b: 0f b7 c0 movzwl %ax,%eax <== NOT EXECUTED
120f4e: 50 push %eax <== NOT EXECUTED
120f4f: ff 75 c4 pushl -0x3c(%ebp) <== NOT EXECUTED
120f52: 68 2b 8c 15 00 push $0x158c2b <== NOT EXECUTED
120f57: e8 6c fd ff ff call 120cc8 <rtems_nvdisk_error> <== NOT EXECUTED
120f5c: b8 05 00 00 00 mov $0x5,%eax <== NOT EXECUTED
120f61: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
120f64: eb 03 jmp 120f69 <rtems_nvdisk_ioctl+0x1f2><== NOT EXECUTED
120f66: 8b 5d d4 mov -0x2c(%ebp),%ebx <== NOT EXECUTED
120f69: ba 1b 00 00 00 mov $0x1b,%edx <== NOT EXECUTED
120f6e: eb 26 jmp 120f96 <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)
120f70: 8b 4d b0 mov -0x50(%ebp),%ecx <== NOT EXECUTED
120f73: 39 4d d0 cmp %ecx,-0x30(%ebp) <== NOT EXECUTED
120f76: 0f 82 f4 fe ff ff jb 120e70 <rtems_nvdisk_ioctl+0xf9><== NOT EXECUTED
120f7c: e9 7f 02 00 00 jmp 121200 <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++)
120f81: 8b 55 c0 mov -0x40(%ebp),%edx <== NOT EXECUTED
120f84: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED
120f87: 3b 50 10 cmp 0x10(%eax),%edx <== NOT EXECUTED
120f8a: 0f 82 c0 fe ff ff jb 120e50 <rtems_nvdisk_ioctl+0xd9><== NOT EXECUTED
120f90: 89 c3 mov %eax,%ebx <== NOT EXECUTED
120f92: 31 c0 xor %eax,%eax <== NOT EXECUTED
120f94: 31 d2 xor %edx,%edx <== NOT EXECUTED
if (ret)
break;
}
}
req->status = ret ? RTEMS_IO_ERROR : RTEMS_SUCCESSFUL;
120f96: 89 53 0c mov %edx,0xc(%ebx) <== NOT EXECUTED
req->req_done (req->done_arg, req->status);
120f99: 56 push %esi <== NOT EXECUTED
120f9a: 56 push %esi <== NOT EXECUTED
120f9b: 52 push %edx <== NOT EXECUTED
120f9c: ff 73 08 pushl 0x8(%ebx) <== NOT EXECUTED
120f9f: 89 45 a8 mov %eax,-0x58(%ebp) <== NOT EXECUTED
120fa2: 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);
120fa5: 8b 45 a8 mov -0x58(%ebp),%eax <== NOT EXECUTED
120fa8: 8b 4d b8 mov -0x48(%ebp),%ecx <== NOT EXECUTED
120fab: 89 01 mov %eax,(%ecx) <== NOT EXECUTED
120fad: e9 06 02 00 00 jmp 1211b8 <rtems_nvdisk_ioctl+0x441><== NOT EXECUTED
break;
case RTEMS_BLKDEV_REQ_WRITE:
errno = rtems_nvdisk_write (&rtems_nvdisks[minor], r);
120fb2: e8 e1 bd 01 00 call 13cd98 <__errno> <== NOT EXECUTED
120fb7: 89 45 b0 mov %eax,-0x50(%ebp) <== NOT EXECUTED
120fba: 8b 75 c8 mov -0x38(%ebp),%esi <== NOT EXECUTED
120fbd: 03 35 90 75 16 00 add 0x167590,%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;
120fc3: 8d 7b 18 lea 0x18(%ebx),%edi <== NOT EXECUTED
120fc6: c7 45 cc 00 00 00 00 movl $0x0,-0x34(%ebp) <== NOT EXECUTED
120fcd: 89 5d c0 mov %ebx,-0x40(%ebp) <== NOT EXECUTED
120fd0: e9 14 01 00 00 jmp 1210e9 <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;
120fd5: 8b 47 04 mov 0x4(%edi),%eax <== NOT EXECUTED
120fd8: 31 d2 xor %edx,%edx <== NOT EXECUTED
120fda: f7 76 0c divl 0xc(%esi) <== NOT EXECUTED
120fdd: 89 45 bc mov %eax,-0x44(%ebp) <== NOT EXECUTED
data = sg->buffer;
120fe0: 8b 5f 08 mov 0x8(%edi),%ebx <== NOT EXECUTED
120fe3: c7 45 d4 00 00 00 00 movl $0x0,-0x2c(%ebp) <== NOT EXECUTED
120fea: e9 df 00 00 00 jmp 1210ce <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);
120fef: 8b 4d d4 mov -0x2c(%ebp),%ecx <== NOT EXECUTED
120ff2: 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);
120ff4: 89 ca mov %ecx,%edx <== NOT EXECUTED
120ff6: 89 f0 mov %esi,%eax <== NOT EXECUTED
120ff8: 89 4d a8 mov %ecx,-0x58(%ebp) <== NOT EXECUTED
120ffb: e8 20 fd ff ff call 120d20 <rtems_nvdisk_get_device><== NOT EXECUTED
121000: 89 c2 mov %eax,%edx <== NOT EXECUTED
if (!dc)
121002: 85 c0 test %eax,%eax <== NOT EXECUTED
121004: 8b 4d a8 mov -0x58(%ebp),%ecx <== NOT EXECUTED
121007: 0f 84 d2 00 00 00 je 1210df <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;
12100d: 2b 48 0c sub 0xc(%eax),%ecx <== NOT EXECUTED
121010: 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);
121013: 8b 46 0c mov 0xc(%esi),%eax <== NOT EXECUTED
121016: 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);
121019: 8b 0d 98 75 16 00 mov 0x167598,%ecx <== NOT EXECUTED
12101f: 89 4d b8 mov %ecx,-0x48(%ebp) <== NOT EXECUTED
121022: 31 c0 xor %eax,%eax <== NOT EXECUTED
121024: 66 c7 45 d0 ff ff movw $0xffff,-0x30(%ebp) <== NOT EXECUTED
12102a: 83 c9 ff or $0xffffffff,%ecx <== NOT EXECUTED
12102d: 89 55 ac mov %edx,-0x54(%ebp) <== NOT EXECUTED
121030: eb 0e jmp 121040 <rtems_nvdisk_ioctl+0x2c9><== NOT EXECUTED
121032: 32 0c 03 xor (%ebx,%eax,1),%cl <== NOT EXECUTED
121035: 0f b6 c9 movzbl %cl,%ecx <== NOT EXECUTED
121038: 8b 55 b8 mov -0x48(%ebp),%edx <== NOT EXECUTED
12103b: 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++)
12103f: 40 inc %eax <== NOT EXECUTED
121040: 3b 45 c4 cmp -0x3c(%ebp),%eax <== NOT EXECUTED
121043: 72 ed jb 121032 <rtems_nvdisk_ioctl+0x2bb><== NOT EXECUTED
121045: 66 89 4d d0 mov %cx,-0x30(%ebp) <== NOT EXECUTED
121049: 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);
12104c: 8b 0a mov (%edx),%ecx <== NOT EXECUTED
12104e: 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;
121051: 8b 4e 14 mov 0x14(%esi),%ecx <== NOT EXECUTED
121054: 6b 45 b8 14 imul $0x14,-0x48(%ebp),%eax <== NOT EXECUTED
121058: 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);
12105c: 51 push %ecx <== NOT EXECUTED
12105d: 51 push %ecx <== NOT EXECUTED
12105e: 8b 48 0c mov 0xc(%eax),%ecx <== NOT EXECUTED
121061: 89 4d ac mov %ecx,-0x54(%ebp) <== NOT EXECUTED
121064: ff 75 c4 pushl -0x3c(%ebp) <== NOT EXECUTED
121067: 53 push %ebx <== NOT EXECUTED
121068: 8b 4d b4 mov -0x4c(%ebp),%ecx <== NOT EXECUTED
12106b: 03 4a 08 add 0x8(%edx),%ecx <== NOT EXECUTED
12106e: 0f af 4d c4 imul -0x3c(%ebp),%ecx <== NOT EXECUTED
121072: 51 push %ecx <== NOT EXECUTED
121073: ff 70 04 pushl 0x4(%eax) <== NOT EXECUTED
121076: ff 30 pushl (%eax) <== NOT EXECUTED
121078: ff 75 b8 pushl -0x48(%ebp) <== NOT EXECUTED
12107b: 89 55 a8 mov %edx,-0x58(%ebp) <== NOT EXECUTED
12107e: 8b 4d ac mov -0x54(%ebp),%ecx <== NOT EXECUTED
121081: 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)
121084: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
121087: 85 c0 test %eax,%eax <== NOT EXECUTED
121089: 8b 55 a8 mov -0x58(%ebp),%edx <== NOT EXECUTED
12108c: 75 51 jne 1210df <rtems_nvdisk_ioctl+0x368><== NOT EXECUTED
return ret;
return rtems_nvdisk_write_checksum (nvd, dc->device, page, cs);
12108e: 8b 12 mov (%edx),%edx <== NOT EXECUTED
121090: 8b 45 d0 mov -0x30(%ebp),%eax <== NOT EXECUTED
121093: 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;
121097: 8b 46 14 mov 0x14(%esi),%eax <== NOT EXECUTED
12109a: 6b ca 14 imul $0x14,%edx,%ecx <== NOT EXECUTED
12109d: 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);
1210a1: 51 push %ecx <== NOT EXECUTED
1210a2: 51 push %ecx <== NOT EXECUTED
1210a3: 8b 48 0c mov 0xc(%eax),%ecx <== NOT EXECUTED
1210a6: 89 4d d0 mov %ecx,-0x30(%ebp) <== NOT EXECUTED
1210a9: 6a 02 push $0x2 <== NOT EXECUTED
1210ab: 8d 4d e6 lea -0x1a(%ebp),%ecx <== NOT EXECUTED
1210ae: 51 push %ecx <== NOT EXECUTED
1210af: 8b 4d b4 mov -0x4c(%ebp),%ecx <== NOT EXECUTED
1210b2: d1 e1 shl %ecx <== NOT EXECUTED
1210b4: 51 push %ecx <== NOT EXECUTED
1210b5: ff 70 04 pushl 0x4(%eax) <== NOT EXECUTED
1210b8: ff 30 pushl (%eax) <== NOT EXECUTED
1210ba: 52 push %edx <== NOT EXECUTED
1210bb: 8b 55 d0 mov -0x30(%ebp),%edx <== NOT EXECUTED
1210be: 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)
1210c1: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
1210c4: 85 c0 test %eax,%eax <== NOT EXECUTED
1210c6: 75 17 jne 1210df <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)
1210c8: ff 45 d4 incl -0x2c(%ebp) <== NOT EXECUTED
1210cb: 03 5e 0c add 0xc(%esi),%ebx <== NOT EXECUTED
1210ce: 8b 4d bc mov -0x44(%ebp),%ecx <== NOT EXECUTED
1210d1: 39 4d d4 cmp %ecx,-0x2c(%ebp) <== NOT EXECUTED
1210d4: 0f 82 15 ff ff ff jb 120fef <rtems_nvdisk_ioctl+0x278><== NOT EXECUTED
1210da: e9 2d 01 00 00 jmp 12120c <rtems_nvdisk_ioctl+0x495><== NOT EXECUTED
1210df: 8b 5d c0 mov -0x40(%ebp),%ebx <== NOT EXECUTED
1210e2: b8 1b 00 00 00 mov $0x1b,%eax <== NOT EXECUTED
1210e7: eb 13 jmp 1210fc <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++)
1210e9: 8b 55 cc mov -0x34(%ebp),%edx <== NOT EXECUTED
1210ec: 8b 45 c0 mov -0x40(%ebp),%eax <== NOT EXECUTED
1210ef: 3b 50 10 cmp 0x10(%eax),%edx <== NOT EXECUTED
1210f2: 0f 82 dd fe ff ff jb 120fd5 <rtems_nvdisk_ioctl+0x25e><== NOT EXECUTED
1210f8: 89 c3 mov %eax,%ebx <== NOT EXECUTED
1210fa: 31 c0 xor %eax,%eax <== NOT EXECUTED
if (ret)
break;
}
}
req->status = ret ? RTEMS_IO_ERROR : RTEMS_SUCCESSFUL;
1210fc: 89 43 0c mov %eax,0xc(%ebx) <== NOT EXECUTED
req->req_done (req->done_arg, req->status);
1210ff: 56 push %esi <== NOT EXECUTED
121100: 56 push %esi <== NOT EXECUTED
121101: 50 push %eax <== NOT EXECUTED
121102: ff 73 08 pushl 0x8(%ebx) <== NOT EXECUTED
121105: 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);
121108: 8b 4d b0 mov -0x50(%ebp),%ecx <== NOT EXECUTED
12110b: c7 01 00 00 00 00 movl $0x0,(%ecx) <== NOT EXECUTED
121111: e9 a2 00 00 00 jmp 1211b8 <rtems_nvdisk_ioctl+0x441><== NOT EXECUTED
break;
default:
errno = EINVAL;
121116: e8 7d bc 01 00 call 13cd98 <__errno> <== NOT EXECUTED
12111b: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
121121: e9 95 00 00 00 jmp 1211bb <rtems_nvdisk_ioctl+0x444><== NOT EXECUTED
break;
}
break;
case RTEMS_NVDISK_IOCTL_ERASE_DISK:
errno = rtems_nvdisk_erase_disk (&rtems_nvdisks[minor]);
121126: e8 6d bc 01 00 call 13cd98 <__errno> <== NOT EXECUTED
12112b: 89 45 cc mov %eax,-0x34(%ebp) <== NOT EXECUTED
12112e: 8b 55 c8 mov -0x38(%ebp),%edx <== NOT EXECUTED
121131: 03 15 90 75 16 00 add 0x167590,%edx <== NOT EXECUTED
121137: 31 f6 xor %esi,%esi <== NOT EXECUTED
121139: eb 58 jmp 121193 <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];
12113b: 6b de 14 imul $0x14,%esi,%ebx <== NOT EXECUTED
12113e: 03 5a 14 add 0x14(%edx),%ebx <== NOT EXECUTED
121141: 31 ff xor %edi,%edi <== NOT EXECUTED
121143: eb 43 jmp 121188 <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);
121145: 8b 03 mov (%ebx),%eax <== NOT EXECUTED
121147: 89 45 d4 mov %eax,-0x2c(%ebp) <== NOT EXECUTED
12114a: 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;
121150: 8b 4a 14 mov 0x14(%edx),%ecx <== NOT EXECUTED
121153: 6b c0 14 imul $0x14,%eax,%eax <== NOT EXECUTED
121156: 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);
12115a: 51 push %ecx <== NOT EXECUTED
12115b: 51 push %ecx <== NOT EXECUTED
12115c: 8b 48 0c mov 0xc(%eax),%ecx <== NOT EXECUTED
12115f: 89 4d d0 mov %ecx,-0x30(%ebp) <== NOT EXECUTED
121162: 6a 02 push $0x2 <== NOT EXECUTED
121164: 8d 4d e6 lea -0x1a(%ebp),%ecx <== NOT EXECUTED
121167: 51 push %ecx <== NOT EXECUTED
121168: 8d 0c 3f lea (%edi,%edi,1),%ecx <== NOT EXECUTED
12116b: 51 push %ecx <== NOT EXECUTED
12116c: ff 70 04 pushl 0x4(%eax) <== NOT EXECUTED
12116f: ff 30 pushl (%eax) <== NOT EXECUTED
121171: ff 75 d4 pushl -0x2c(%ebp) <== NOT EXECUTED
121174: 89 55 a8 mov %edx,-0x58(%ebp) <== NOT EXECUTED
121177: 8b 4d d0 mov -0x30(%ebp),%ecx <== NOT EXECUTED
12117a: 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)
12117d: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
121180: 85 c0 test %eax,%eax <== NOT EXECUTED
121182: 8b 55 a8 mov -0x58(%ebp),%edx <== NOT EXECUTED
121185: 75 13 jne 12119a <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++)
121187: 47 inc %edi <== NOT EXECUTED
121188: 8b 43 04 mov 0x4(%ebx),%eax <== NOT EXECUTED
12118b: 2b 43 08 sub 0x8(%ebx),%eax <== NOT EXECUTED
12118e: 39 c7 cmp %eax,%edi <== NOT EXECUTED
121190: 72 b3 jb 121145 <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++)
121192: 46 inc %esi <== NOT EXECUTED
121193: 3b 72 18 cmp 0x18(%edx),%esi <== NOT EXECUTED
121196: 72 a3 jb 12113b <rtems_nvdisk_ioctl+0x3c4><== NOT EXECUTED
121198: 31 c0 xor %eax,%eax <== NOT EXECUTED
break;
}
break;
case RTEMS_NVDISK_IOCTL_ERASE_DISK:
errno = rtems_nvdisk_erase_disk (&rtems_nvdisks[minor]);
12119a: 8b 55 cc mov -0x34(%ebp),%edx <== NOT EXECUTED
12119d: 89 02 mov %eax,(%edx) <== NOT EXECUTED
break;
12119f: eb 1a jmp 1211bb <rtems_nvdisk_ioctl+0x444><== NOT EXECUTED
case RTEMS_NVDISK_IOCTL_INFO_LEVEL:
rtems_nvdisks[minor].info_level = (uintptr_t) argp;
1211a1: a1 90 75 16 00 mov 0x167590,%eax <== NOT EXECUTED
1211a6: 8b 4d c8 mov -0x38(%ebp),%ecx <== NOT EXECUTED
1211a9: 89 5c 08 24 mov %ebx,0x24(%eax,%ecx,1) <== NOT EXECUTED
break;
1211ad: eb 0c jmp 1211bb <rtems_nvdisk_ioctl+0x444><== NOT EXECUTED
default:
rtems_blkdev_ioctl (dd, req, argp);
1211af: 50 push %eax <== NOT EXECUTED
1211b0: 53 push %ebx <== NOT EXECUTED
1211b1: 56 push %esi <== NOT EXECUTED
1211b2: 57 push %edi <== NOT EXECUTED
1211b3: e8 80 a1 fe ff call 10b338 <rtems_blkdev_ioctl> <== NOT EXECUTED
1211b8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
break;
}
sc = rtems_semaphore_release (rtems_nvdisks[minor].lock);
1211bb: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1211be: a1 90 75 16 00 mov 0x167590,%eax <== NOT EXECUTED
1211c3: 8b 55 c8 mov -0x38(%ebp),%edx <== NOT EXECUTED
1211c6: ff 74 10 20 pushl 0x20(%eax,%edx,1) <== NOT EXECUTED
1211ca: e8 25 fb fe ff call 110cf4 <rtems_semaphore_release><== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
1211cf: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1211d2: 85 c0 test %eax,%eax <== NOT EXECUTED
1211d4: 74 0b je 1211e1 <rtems_nvdisk_ioctl+0x46a><== NOT EXECUTED
errno = EIO;
1211d6: e8 bd bb 01 00 call 13cd98 <__errno> <== NOT EXECUTED
1211db: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
}
return errno == 0 ? 0 : -1;
1211e1: e8 b2 bb 01 00 call 13cd98 <__errno> <== NOT EXECUTED
1211e6: 83 38 01 cmpl $0x1,(%eax) <== NOT EXECUTED
1211e9: 19 c0 sbb %eax,%eax <== NOT EXECUTED
1211eb: f7 d0 not %eax <== NOT EXECUTED
}
1211ed: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1211f0: 5b pop %ebx <== NOT EXECUTED
1211f1: 5e pop %esi <== NOT EXECUTED
1211f2: 5f pop %edi <== NOT EXECUTED
1211f3: c9 leave <== NOT EXECUTED
1211f4: 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)
1211f5: ff 45 d0 incl -0x30(%ebp) <== NOT EXECUTED
1211f8: 03 5e 0c add 0xc(%esi),%ebx <== NOT EXECUTED
1211fb: e9 70 fd ff ff jmp 120f70 <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++)
121200: ff 45 c0 incl -0x40(%ebp) <== NOT EXECUTED
121203: 83 45 cc 10 addl $0x10,-0x34(%ebp) <== NOT EXECUTED
121207: e9 75 fd ff ff jmp 120f81 <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++)
12120c: ff 45 cc incl -0x34(%ebp) <== NOT EXECUTED
12120f: 83 c7 10 add $0x10,%edi <== NOT EXECUTED
121212: e9 d2 fe ff ff jmp 1210e9 <rtems_nvdisk_ioctl+0x372><== NOT EXECUTED
001214b2 <rtems_nvdisk_sram_read>:
uint32_t flags __attribute__((unused)),
void* base,
uint32_t offset,
void* buffer,
size_t size)
{
1214b2: 55 push %ebp <== NOT EXECUTED
1214b3: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1214b5: 57 push %edi <== NOT EXECUTED
1214b6: 56 push %esi <== NOT EXECUTED
1214b7: 8b 75 14 mov 0x14(%ebp),%esi <== NOT EXECUTED
1214ba: 8b 45 18 mov 0x18(%ebp),%eax <== NOT EXECUTED
1214bd: 8b 4d 1c mov 0x1c(%ebp),%ecx <== NOT EXECUTED
memcpy (buffer, (base + offset), size);
1214c0: 03 75 10 add 0x10(%ebp),%esi <== NOT EXECUTED
1214c3: 89 c7 mov %eax,%edi <== NOT EXECUTED
1214c5: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
return 0;
}
1214c7: 31 c0 xor %eax,%eax <== NOT EXECUTED
1214c9: 5e pop %esi <== NOT EXECUTED
1214ca: 5f pop %edi <== NOT EXECUTED
1214cb: c9 leave <== NOT EXECUTED
1214cc: c3 ret <== NOT EXECUTED
00121470 <rtems_nvdisk_sram_verify>:
uint32_t flags __attribute__((unused)),
void* base,
uint32_t offset,
const void* buffer,
size_t size)
{
121470: 55 push %ebp <== NOT EXECUTED
121471: 89 e5 mov %esp,%ebp <== NOT EXECUTED
121473: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
121476: 8b 45 14 mov 0x14(%ebp),%eax <== NOT EXECUTED
return memcmp ((base + offset), buffer, size) == 0 ? 0 : EIO;
121479: 03 45 10 add 0x10(%ebp),%eax <== NOT EXECUTED
12147c: ff 75 1c pushl 0x1c(%ebp) <== NOT EXECUTED
12147f: ff 75 18 pushl 0x18(%ebp) <== NOT EXECUTED
121482: 50 push %eax <== NOT EXECUTED
121483: e8 00 e9 01 00 call 13fd88 <memcmp> <== NOT EXECUTED
121488: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12148b: 83 f8 01 cmp $0x1,%eax <== NOT EXECUTED
12148e: 19 c0 sbb %eax,%eax <== NOT EXECUTED
121490: f7 d0 not %eax <== NOT EXECUTED
121492: 83 e0 05 and $0x5,%eax <== NOT EXECUTED
}
121495: c9 leave <== NOT EXECUTED
121496: c3 ret <== NOT EXECUTED
00121497 <rtems_nvdisk_sram_write>:
uint32_t flags __attribute__((unused)),
void* base,
uint32_t offset,
const void* buffer,
size_t size)
{
121497: 55 push %ebp <== NOT EXECUTED
121498: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12149a: 57 push %edi <== NOT EXECUTED
12149b: 56 push %esi <== NOT EXECUTED
12149c: 8b 45 14 mov 0x14(%ebp),%eax <== NOT EXECUTED
12149f: 8b 75 18 mov 0x18(%ebp),%esi <== NOT EXECUTED
1214a2: 8b 4d 1c mov 0x1c(%ebp),%ecx <== NOT EXECUTED
memcpy ((base + offset), buffer, size);
1214a5: 03 45 10 add 0x10(%ebp),%eax <== NOT EXECUTED
1214a8: 89 c7 mov %eax,%edi <== NOT EXECUTED
1214aa: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
return 0;
}
1214ac: 31 c0 xor %eax,%eax <== NOT EXECUTED
1214ae: 5e pop %esi <== NOT EXECUTED
1214af: 5f pop %edi <== NOT EXECUTED
1214b0: c9 leave <== NOT EXECUTED
1214b1: 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 64 e5 13 00 mov 0x13e564,%eax
114f44: 40 inc %eax
114f45: a3 64 e5 13 00 mov %eax,0x13e564
* 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 ec e3 13 00 push $0x13e3ec
114f52: 89 55 e4 mov %edx,-0x1c(%ebp)
114f55: e8 82 3b 00 00 call 118adc <_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 f2 47 00 00 call 11975d <_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 3a 2a 00 00 call 1179d4 <_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 08 e4 13 00 mov 0x13e408,%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 a4 47 00 00 call 11975d <_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 ec e3 13 00 push $0x13e3ec
114fe7: e8 40 3f 00 00 call 118f2c <_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 ec e3 13 00 push $0x13e3ec
11500a: e8 39 3b 00 00 call 118b48 <_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 ec e3 13 00 push $0x13e3ec
115017: e8 ac 3d 00 00 call 118dc8 <_Objects_Free>
0 /* Not used */
);
}
#endif
_Thread_Enable_dispatch();
11501c: e8 3c 47 00 00 call 11975d <_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 30 47 00 00 call 11975d <_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
0010d5fa <rtems_pipe_initialize>:
/*
* Initialization of FIFO/pipe module.
*/
void rtems_pipe_initialize (void)
{
10d5fa: 55 push %ebp
10d5fb: 89 e5 mov %esp,%ebp
10d5fd: 83 ec 08 sub $0x8,%esp
if (!rtems_pipe_configured)
10d600: 80 3d ec 39 12 00 00 cmpb $0x0,0x1239ec
10d607: 74 3c je 10d645 <rtems_pipe_initialize+0x4b><== ALWAYS TAKEN
return;
if (rtems_pipe_semaphore)
10d609: 83 3d 3c 53 12 00 00 cmpl $0x0,0x12533c <== NOT EXECUTED
10d610: 75 33 jne 10d645 <rtems_pipe_initialize+0x4b><== NOT EXECUTED
return;
rtems_status_code sc;
sc = rtems_semaphore_create(
10d612: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10d615: 68 3c 53 12 00 push $0x12533c <== NOT EXECUTED
10d61a: 6a 00 push $0x0 <== NOT EXECUTED
10d61c: 6a 54 push $0x54 <== NOT EXECUTED
10d61e: 6a 01 push $0x1 <== NOT EXECUTED
10d620: 68 45 50 49 50 push $0x50495045 <== NOT EXECUTED
10d625: e8 a2 cd 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)
10d62a: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
10d62d: 85 c0 test %eax,%eax <== NOT EXECUTED
10d62f: 74 09 je 10d63a <rtems_pipe_initialize+0x40><== NOT EXECUTED
rtems_fatal_error_occurred (sc);
10d631: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10d634: 50 push %eax <== NOT EXECUTED
10d635: e8 4e d5 ff ff call 10ab88 <rtems_fatal_error_occurred><== NOT EXECUTED
rtems_interval now;
now = rtems_clock_get_ticks_since_boot();
10d63a: e8 8d c9 ff ff call 109fcc <rtems_clock_get_ticks_since_boot><== NOT EXECUTED
rtems_pipe_no = now;
10d63f: 66 a3 44 53 12 00 mov %ax,0x125344 <== NOT EXECUTED
}
10d645: c9 leave
10d646: c3 ret
0013a5e9 <rtems_rate_monotonic_period>:
rtems_status_code rtems_rate_monotonic_period(
rtems_id id,
rtems_interval length
)
{
13a5e9: 55 push %ebp
13a5ea: 89 e5 mov %esp,%ebp
13a5ec: 57 push %edi
13a5ed: 56 push %esi
13a5ee: 53 push %ebx
13a5ef: 83 ec 30 sub $0x30,%esp
13a5f2: 8b 75 08 mov 0x8(%ebp),%esi
13a5f5: 8b 5d 0c mov 0xc(%ebp),%ebx
13a5f8: 8d 45 e4 lea -0x1c(%ebp),%eax
13a5fb: 50 push %eax
13a5fc: 56 push %esi
13a5fd: 68 f8 7f 16 00 push $0x167ff8
13a602: e8 d1 7f fd ff call 1125d8 <_Objects_Get>
13a607: 89 c7 mov %eax,%edi
rtems_rate_monotonic_period_states local_state;
ISR_Level level;
the_period = _Rate_monotonic_Get( id, &location );
switch ( location ) {
13a609: 83 c4 10 add $0x10,%esp
13a60c: 83 7d e4 00 cmpl $0x0,-0x1c(%ebp)
13a610: 0f 85 40 01 00 00 jne 13a756 <rtems_rate_monotonic_period+0x16d>
case OBJECTS_LOCAL:
if ( !_Thread_Is_executing( the_period->owner ) ) {
13a616: 8b 40 40 mov 0x40(%eax),%eax
13a619: 3b 05 60 7c 16 00 cmp 0x167c60,%eax
13a61f: 74 0f je 13a630 <rtems_rate_monotonic_period+0x47>
_Thread_Enable_dispatch();
13a621: e8 27 88 fd ff call 112e4d <_Thread_Enable_dispatch>
13a626: bb 17 00 00 00 mov $0x17,%ebx
return RTEMS_NOT_OWNER_OF_RESOURCE;
13a62b: e9 2b 01 00 00 jmp 13a75b <rtems_rate_monotonic_period+0x172>
}
if ( length == RTEMS_PERIOD_STATUS ) {
13a630: 85 db test %ebx,%ebx
13a632: 75 19 jne 13a64d <rtems_rate_monotonic_period+0x64>
switch ( the_period->state ) {
13a634: 8b 47 38 mov 0x38(%edi),%eax
13a637: 83 f8 04 cmp $0x4,%eax
13a63a: 77 07 ja 13a643 <rtems_rate_monotonic_period+0x5a><== NEVER TAKEN
13a63c: 8b 1c 85 d0 d7 15 00 mov 0x15d7d0(,%eax,4),%ebx
case RATE_MONOTONIC_ACTIVE:
default: /* unreached -- only to remove warnings */
return_value = RTEMS_SUCCESSFUL;
break;
}
_Thread_Enable_dispatch();
13a643: e8 05 88 fd ff call 112e4d <_Thread_Enable_dispatch>
return( return_value );
13a648: e9 0e 01 00 00 jmp 13a75b <rtems_rate_monotonic_period+0x172>
}
_ISR_Disable( level );
13a64d: 9c pushf
13a64e: fa cli
13a64f: 8f 45 d4 popl -0x2c(%ebp)
switch ( the_period->state ) {
13a652: 8b 47 38 mov 0x38(%edi),%eax
13a655: 83 f8 02 cmp $0x2,%eax
13a658: 74 5f je 13a6b9 <rtems_rate_monotonic_period+0xd0>
13a65a: 83 f8 04 cmp $0x4,%eax
13a65d: 0f 84 ba 00 00 00 je 13a71d <rtems_rate_monotonic_period+0x134>
13a663: 85 c0 test %eax,%eax
13a665: 0f 85 eb 00 00 00 jne 13a756 <rtems_rate_monotonic_period+0x16d><== NEVER TAKEN
case RATE_MONOTONIC_INACTIVE: {
_ISR_Enable( level );
13a66b: ff 75 d4 pushl -0x2c(%ebp)
13a66e: 9d popf
/*
* Baseline statistics information for the beginning of a period.
*/
_Rate_monotonic_Initiate_statistics( the_period );
13a66f: 83 ec 0c sub $0xc,%esp
13a672: 57 push %edi
13a673: e8 9c fd ff ff call 13a414 <_Rate_monotonic_Initiate_statistics>
the_period->state = RATE_MONOTONIC_ACTIVE;
13a678: 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;
13a67f: c7 47 18 00 00 00 00 movl $0x0,0x18(%edi)
the_watchdog->routine = routine;
13a686: c7 47 2c 68 a7 13 00 movl $0x13a768,0x2c(%edi)
the_watchdog->id = id;
13a68d: 89 77 30 mov %esi,0x30(%edi)
the_watchdog->user_data = user_data;
13a690: c7 47 34 00 00 00 00 movl $0x0,0x34(%edi)
_Rate_monotonic_Timeout,
id,
NULL
);
the_period->next_length = length;
13a697: 89 5f 3c mov %ebx,0x3c(%edi)
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
13a69a: 89 5f 1c mov %ebx,0x1c(%edi)
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
13a69d: 5b pop %ebx
13a69e: 5e pop %esi
13a69f: 83 c7 10 add $0x10,%edi
13a6a2: 57 push %edi
13a6a3: 68 80 7c 16 00 push $0x167c80
13a6a8: e8 3f 95 fd ff call 113bec <_Watchdog_Insert>
_Watchdog_Insert_ticks( &the_period->Timer, length );
_Thread_Enable_dispatch();
13a6ad: e8 9b 87 fd ff call 112e4d <_Thread_Enable_dispatch>
13a6b2: 31 db xor %ebx,%ebx
13a6b4: e9 98 00 00 00 jmp 13a751 <rtems_rate_monotonic_period+0x168>
case RATE_MONOTONIC_ACTIVE:
/*
* Update statistics from the concluding period.
*/
_Rate_monotonic_Update_statistics( the_period );
13a6b9: 83 ec 0c sub $0xc,%esp
13a6bc: 57 push %edi
13a6bd: e8 4c fe ff ff call 13a50e <_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;
13a6c2: c7 47 38 01 00 00 00 movl $0x1,0x38(%edi)
the_period->next_length = length;
13a6c9: 89 5f 3c mov %ebx,0x3c(%edi)
_ISR_Enable( level );
13a6cc: ff 75 d4 pushl -0x2c(%ebp)
13a6cf: 9d popf
_Thread_Executing->Wait.id = the_period->Object.id;
13a6d0: a1 60 7c 16 00 mov 0x167c60,%eax
13a6d5: 8b 57 08 mov 0x8(%edi),%edx
13a6d8: 89 50 20 mov %edx,0x20(%eax)
_Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD );
13a6db: 5a pop %edx
13a6dc: 59 pop %ecx
13a6dd: 68 00 40 00 00 push $0x4000
13a6e2: 50 push %eax
13a6e3: e8 68 8f fd ff call 113650 <_Thread_Set_state>
/*
* Did the watchdog timer expire while we were actually blocking
* on it?
*/
_ISR_Disable( level );
13a6e8: 9c pushf
13a6e9: fa cli
13a6ea: 5a pop %edx
local_state = the_period->state;
13a6eb: 8b 47 38 mov 0x38(%edi),%eax
the_period->state = RATE_MONOTONIC_ACTIVE;
13a6ee: c7 47 38 02 00 00 00 movl $0x2,0x38(%edi)
_ISR_Enable( level );
13a6f5: 52 push %edx
13a6f6: 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 )
13a6f7: 83 c4 10 add $0x10,%esp
13a6fa: 83 f8 03 cmp $0x3,%eax
13a6fd: 75 15 jne 13a714 <rtems_rate_monotonic_period+0x12b>
_Thread_Clear_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD );
13a6ff: 56 push %esi
13a700: 56 push %esi
13a701: 68 00 40 00 00 push $0x4000
13a706: ff 35 60 7c 16 00 pushl 0x167c60
13a70c: e8 bf 83 fd ff call 112ad0 <_Thread_Clear_state>
13a711: 83 c4 10 add $0x10,%esp
_Thread_Enable_dispatch();
13a714: e8 34 87 fd ff call 112e4d <_Thread_Enable_dispatch>
13a719: 31 db xor %ebx,%ebx
return RTEMS_SUCCESSFUL;
13a71b: eb 3e jmp 13a75b <rtems_rate_monotonic_period+0x172>
case RATE_MONOTONIC_EXPIRED:
/*
* Update statistics from the concluding period
*/
_Rate_monotonic_Update_statistics( the_period );
13a71d: 83 ec 0c sub $0xc,%esp
13a720: 57 push %edi
13a721: e8 e8 fd ff ff call 13a50e <_Rate_monotonic_Update_statistics>
_ISR_Enable( level );
13a726: ff 75 d4 pushl -0x2c(%ebp)
13a729: 9d popf
the_period->state = RATE_MONOTONIC_ACTIVE;
13a72a: c7 47 38 02 00 00 00 movl $0x2,0x38(%edi)
the_period->next_length = length;
13a731: 89 5f 3c mov %ebx,0x3c(%edi)
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
13a734: 89 5f 1c mov %ebx,0x1c(%edi)
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
13a737: 59 pop %ecx
13a738: 5b pop %ebx
13a739: 83 c7 10 add $0x10,%edi
13a73c: 57 push %edi
13a73d: 68 80 7c 16 00 push $0x167c80
13a742: e8 a5 94 fd ff call 113bec <_Watchdog_Insert>
_Watchdog_Insert_ticks( &the_period->Timer, length );
_Thread_Enable_dispatch();
13a747: e8 01 87 fd ff call 112e4d <_Thread_Enable_dispatch>
13a74c: bb 06 00 00 00 mov $0x6,%ebx
return RTEMS_TIMEOUT;
13a751: 83 c4 10 add $0x10,%esp
13a754: eb 05 jmp 13a75b <rtems_rate_monotonic_period+0x172>
13a756: bb 04 00 00 00 mov $0x4,%ebx
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
13a75b: 89 d8 mov %ebx,%eax
13a75d: 8d 65 f4 lea -0xc(%ebp),%esp
13a760: 5b pop %ebx
13a761: 5e pop %esi
13a762: 5f pop %edi
13a763: c9 leave
13a764: c3 ret
00129b4c <rtems_rate_monotonic_report_statistics_with_plugin>:
*/
void rtems_rate_monotonic_report_statistics_with_plugin(
void *context,
rtems_printk_plugin_t print
)
{
129b4c: 55 push %ebp
129b4d: 89 e5 mov %esp,%ebp
129b4f: 57 push %edi
129b50: 56 push %esi
129b51: 53 push %ebx
129b52: 83 ec 7c sub $0x7c,%esp
129b55: 8b 5d 08 mov 0x8(%ebp),%ebx
129b58: 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 )
129b5b: 85 ff test %edi,%edi
129b5d: 0f 84 2b 01 00 00 je 129c8e <rtems_rate_monotonic_report_statistics_with_plugin+0x142><== NEVER TAKEN
return;
(*print)( context, "Period information by period\n" );
129b63: 52 push %edx
129b64: 52 push %edx
129b65: 68 0c a0 15 00 push $0x15a00c
129b6a: 53 push %ebx
129b6b: ff d7 call *%edi
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
(*print)( context, "--- CPU times are in seconds ---\n" );
129b6d: 5e pop %esi
129b6e: 58 pop %eax
129b6f: 68 2a a0 15 00 push $0x15a02a
129b74: 53 push %ebx
129b75: ff d7 call *%edi
(*print)( context, "--- Wall times are in seconds ---\n" );
129b77: 5a pop %edx
129b78: 59 pop %ecx
129b79: 68 4c a0 15 00 push $0x15a04c
129b7e: 53 push %ebx
129b7f: ff d7 call *%edi
Be sure to test the various cases.
(*print)( context,"\
1234567890123456789012345678901234567890123456789012345678901234567890123456789\
\n");
*/
(*print)( context, " ID OWNER COUNT MISSED "
129b81: 5e pop %esi
129b82: 58 pop %eax
129b83: 68 6f a0 15 00 push $0x15a06f
129b88: 53 push %ebx
129b89: ff d7 call *%edi
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
" "
#endif
" WALL TIME\n"
);
(*print)( context, " "
129b8b: 5a pop %edx
129b8c: 59 pop %ecx
129b8d: 68 ba a0 15 00 push $0x15a0ba
129b92: 53 push %ebx
129b93: 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 ;
129b95: 8b 35 00 80 16 00 mov 0x168000,%esi
129b9b: 83 c4 10 add $0x10,%esp
129b9e: e9 df 00 00 00 jmp 129c82 <rtems_rate_monotonic_report_statistics_with_plugin+0x136>
id <= _Rate_monotonic_Information.maximum_id ;
id++ ) {
status = rtems_rate_monotonic_get_statistics( id, &the_stats );
129ba3: 50 push %eax
129ba4: 50 push %eax
129ba5: 8d 45 88 lea -0x78(%ebp),%eax
129ba8: 50 push %eax
129ba9: 56 push %esi
129baa: e8 11 07 01 00 call 13a2c0 <rtems_rate_monotonic_get_statistics>
if ( status != RTEMS_SUCCESSFUL )
129baf: 83 c4 10 add $0x10,%esp
129bb2: 85 c0 test %eax,%eax
129bb4: 0f 85 c7 00 00 00 jne 129c81 <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 );
129bba: 51 push %ecx
129bbb: 51 push %ecx
129bbc: 8d 55 c0 lea -0x40(%ebp),%edx
129bbf: 52 push %edx
129bc0: 56 push %esi
129bc1: e8 9e 07 01 00 call 13a364 <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 );
129bc6: 83 c4 0c add $0xc,%esp
129bc9: 8d 45 e3 lea -0x1d(%ebp),%eax
129bcc: 50 push %eax
129bcd: 6a 05 push $0x5
129bcf: ff 75 c0 pushl -0x40(%ebp)
129bd2: e8 a5 6d fe ff call 11097c <rtems_object_get_name>
/*
* Print part of report line that is not dependent on granularity
*/
(*print)( context,
129bd7: 58 pop %eax
129bd8: 5a pop %edx
129bd9: ff 75 8c pushl -0x74(%ebp)
129bdc: ff 75 88 pushl -0x78(%ebp)
129bdf: 8d 55 e3 lea -0x1d(%ebp),%edx
129be2: 52 push %edx
129be3: 56 push %esi
129be4: 68 06 a1 15 00 push $0x15a106
129be9: 53 push %ebx
129bea: ff d7 call *%edi
);
/*
* If the count is zero, don't print statistics
*/
if (the_stats.count == 0) {
129bec: 8b 45 88 mov -0x78(%ebp),%eax
129bef: 83 c4 20 add $0x20,%esp
129bf2: 85 c0 test %eax,%eax
129bf4: 75 0f jne 129c05 <rtems_rate_monotonic_report_statistics_with_plugin+0xb9>
(*print)( context, "\n" );
129bf6: 51 push %ecx
129bf7: 51 push %ecx
129bf8: 68 c5 ba 15 00 push $0x15bac5
129bfd: 53 push %ebx
129bfe: ff d7 call *%edi
continue;
129c00: 83 c4 10 add $0x10,%esp
129c03: eb 7c jmp 129c81 <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 );
129c05: 52 push %edx
129c06: 8d 55 d8 lea -0x28(%ebp),%edx
129c09: 52 push %edx
129c0a: 50 push %eax
129c0b: 8d 45 a0 lea -0x60(%ebp),%eax
129c0e: 50 push %eax
129c0f: e8 ec 11 00 00 call 12ae00 <_Timespec_Divide_by_integer>
(*print)( context,
129c14: 8b 45 dc mov -0x24(%ebp),%eax
129c17: b9 e8 03 00 00 mov $0x3e8,%ecx
129c1c: 99 cltd
129c1d: f7 f9 idiv %ecx
129c1f: 50 push %eax
129c20: ff 75 d8 pushl -0x28(%ebp)
129c23: 8b 45 9c mov -0x64(%ebp),%eax
129c26: 99 cltd
129c27: f7 f9 idiv %ecx
129c29: 50 push %eax
129c2a: ff 75 98 pushl -0x68(%ebp)
129c2d: 8b 45 94 mov -0x6c(%ebp),%eax
129c30: 99 cltd
129c31: f7 f9 idiv %ecx
129c33: 50 push %eax
129c34: ff 75 90 pushl -0x70(%ebp)
129c37: 68 1d a1 15 00 push $0x15a11d
129c3c: 53 push %ebx
129c3d: 89 4d 84 mov %ecx,-0x7c(%ebp)
129c40: 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);
129c42: 83 c4 2c add $0x2c,%esp
129c45: 8d 55 d8 lea -0x28(%ebp),%edx
129c48: 52 push %edx
129c49: ff 75 88 pushl -0x78(%ebp)
129c4c: 8d 45 b8 lea -0x48(%ebp),%eax
129c4f: 50 push %eax
129c50: e8 ab 11 00 00 call 12ae00 <_Timespec_Divide_by_integer>
(*print)( context,
129c55: 8b 45 dc mov -0x24(%ebp),%eax
129c58: 8b 4d 84 mov -0x7c(%ebp),%ecx
129c5b: 99 cltd
129c5c: f7 f9 idiv %ecx
129c5e: 50 push %eax
129c5f: ff 75 d8 pushl -0x28(%ebp)
129c62: 8b 45 b4 mov -0x4c(%ebp),%eax
129c65: 99 cltd
129c66: f7 f9 idiv %ecx
129c68: 50 push %eax
129c69: ff 75 b0 pushl -0x50(%ebp)
129c6c: 8b 45 ac mov -0x54(%ebp),%eax
129c6f: 99 cltd
129c70: f7 f9 idiv %ecx
129c72: 50 push %eax
129c73: ff 75 a8 pushl -0x58(%ebp)
129c76: 68 3c a1 15 00 push $0x15a13c
129c7b: 53 push %ebx
129c7c: ff d7 call *%edi
129c7e: 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++ ) {
129c81: 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 ;
129c82: 3b 35 04 80 16 00 cmp 0x168004,%esi
129c88: 0f 86 15 ff ff ff jbe 129ba3 <rtems_rate_monotonic_report_statistics_with_plugin+0x57>
the_stats.min_wall_time, the_stats.max_wall_time, ival_wall, fval_wall
);
#endif
}
}
}
129c8e: 8d 65 f4 lea -0xc(%ebp),%esp
129c91: 5b pop %ebx
129c92: 5e pop %esi
129c93: 5f pop %edi
129c94: c9 leave
129c95: c3 ret
0013c07d <rtems_rfs_bitmap_close>:
return rtems_rfs_bitmap_create_search (control);
}
int
rtems_rfs_bitmap_close (rtems_rfs_bitmap_control* control)
{
13c07d: 55 push %ebp <== NOT EXECUTED
13c07e: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13c080: 83 ec 14 sub $0x14,%esp <== NOT EXECUTED
free (control->search_bits);
13c083: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
13c086: ff 70 14 pushl 0x14(%eax) <== NOT EXECUTED
13c089: e8 0e 0e fd ff call 10ce9c <free> <== NOT EXECUTED
return 0;
}
13c08e: 31 c0 xor %eax,%eax <== NOT EXECUTED
13c090: c9 leave <== NOT EXECUTED
13c091: c3 ret <== NOT EXECUTED
0013c0d2 <rtems_rfs_bitmap_create_search>:
return 0;
}
int
rtems_rfs_bitmap_create_search (rtems_rfs_bitmap_control* control)
{
13c0d2: 55 push %ebp <== NOT EXECUTED
13c0d3: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13c0d5: 57 push %edi <== NOT EXECUTED
13c0d6: 56 push %esi <== NOT EXECUTED
13c0d7: 53 push %ebx <== NOT EXECUTED
13c0d8: 83 ec 4c sub $0x4c,%esp <== NOT EXECUTED
13c0db: 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);
13c0de: 8d 55 e4 lea -0x1c(%ebp),%edx <== NOT EXECUTED
13c0e1: 89 d8 mov %ebx,%eax <== NOT EXECUTED
13c0e3: e8 aa ff ff ff call 13c092 <rtems_rfs_bitmap_load_map><== NOT EXECUTED
if (rc > 0)
13c0e8: 85 c0 test %eax,%eax <== NOT EXECUTED
13c0ea: 0f 8f 94 00 00 00 jg 13c184 <rtems_rfs_bitmap_create_search+0xb2><== NOT EXECUTED
return rc;
control->free = 0;
13c0f0: c7 43 10 00 00 00 00 movl $0x0,0x10(%ebx) <== NOT EXECUTED
search_map = control->search_bits;
13c0f7: 8b 73 14 mov 0x14(%ebx),%esi <== NOT EXECUTED
size = control->size;
13c0fa: 8b 53 0c mov 0xc(%ebx),%edx <== NOT EXECUTED
bit = 0;
*search_map = RTEMS_RFS_BITMAP_ELEMENT_CLEAR;
13c0fd: c7 06 ff ff ff ff movl $0xffffffff,(%esi) <== NOT EXECUTED
13c103: 8b 7d e4 mov -0x1c(%ebp),%edi <== NOT EXECUTED
13c106: c7 45 d0 00 00 00 00 movl $0x0,-0x30(%ebp) <== NOT EXECUTED
while (size)
13c10d: eb 6f jmp 13c17e <rtems_rfs_bitmap_create_search+0xac><== NOT EXECUTED
{
rtems_rfs_bitmap_element bits;
int available;
if (size < rtems_rfs_bitmap_element_bits ())
13c10f: 83 fa 1f cmp $0x1f,%edx <== NOT EXECUTED
13c112: 77 13 ja 13c127 <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;
13c114: b9 20 00 00 00 mov $0x20,%ecx <== NOT EXECUTED
13c119: 29 d1 sub %edx,%ecx <== NOT EXECUTED
13c11b: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
13c11e: d3 e8 shr %cl,%eax <== NOT EXECUTED
13c120: 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;
13c122: 89 55 cc mov %edx,-0x34(%ebp) <== NOT EXECUTED
13c125: eb 09 jmp 13c130 <rtems_rfs_bitmap_create_search+0x5e><== NOT EXECUTED
}
else
{
bits = *map;
13c127: 8b 07 mov (%edi),%eax <== NOT EXECUTED
13c129: 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))
13c130: 85 c0 test %eax,%eax <== NOT EXECUTED
13c132: 74 29 je 13c15d <rtems_rfs_bitmap_create_search+0x8b><== NOT EXECUTED
13c134: c7 45 d4 00 00 00 00 movl $0x0,-0x2c(%ebp) <== NOT EXECUTED
13c13b: 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))
13c13e: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
13c143: 8a 4d d4 mov -0x2c(%ebp),%cl <== NOT EXECUTED
13c146: d3 e0 shl %cl,%eax <== NOT EXECUTED
13c148: 8b 4d b4 mov -0x4c(%ebp),%ecx <== NOT EXECUTED
13c14b: 85 c8 test %ecx,%eax <== NOT EXECUTED
13c14d: 74 03 je 13c152 <rtems_rfs_bitmap_create_search+0x80><== NOT EXECUTED
control->free++;
13c14f: 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++)
13c152: ff 45 d4 incl -0x2c(%ebp) <== NOT EXECUTED
13c155: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED
13c158: 39 45 d4 cmp %eax,-0x2c(%ebp) <== NOT EXECUTED
13c15b: 7c e1 jl 13c13e <rtems_rfs_bitmap_create_search+0x6c><== NOT EXECUTED
control->free++;
}
size -= available;
if (bit == rtems_rfs_bitmap_element_bits ())
13c15d: 83 7d d0 20 cmpl $0x20,-0x30(%ebp) <== NOT EXECUTED
13c161: 75 12 jne 13c175 <rtems_rfs_bitmap_create_search+0xa3><== NOT EXECUTED
{
bit = 0;
search_map++;
13c163: 83 c6 04 add $0x4,%esi <== NOT EXECUTED
*search_map = RTEMS_RFS_BITMAP_ELEMENT_CLEAR;
13c166: c7 06 ff ff ff ff movl $0xffffffff,(%esi) <== NOT EXECUTED
13c16c: c7 45 d0 00 00 00 00 movl $0x0,-0x30(%ebp) <== NOT EXECUTED
13c173: eb 03 jmp 13c178 <rtems_rfs_bitmap_create_search+0xa6><== NOT EXECUTED
}
else
bit++;
13c175: 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;
13c178: 2b 55 cc sub -0x34(%ebp),%edx <== NOT EXECUTED
13c17b: 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)
13c17e: 85 d2 test %edx,%edx <== NOT EXECUTED
13c180: 75 8d jne 13c10f <rtems_rfs_bitmap_create_search+0x3d><== NOT EXECUTED
13c182: 31 c0 xor %eax,%eax <== NOT EXECUTED
bit++;
map++;
}
return 0;
}
13c184: 83 c4 4c add $0x4c,%esp <== NOT EXECUTED
13c187: 5b pop %ebx <== NOT EXECUTED
13c188: 5e pop %esi <== NOT EXECUTED
13c189: 5f pop %edi <== NOT EXECUTED
13c18a: c9 leave <== NOT EXECUTED
13c18b: c3 ret <== NOT EXECUTED
0013c092 <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)
{
13c092: 55 push %ebp <== NOT EXECUTED
13c093: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13c095: 56 push %esi <== NOT EXECUTED
13c096: 53 push %ebx <== NOT EXECUTED
13c097: 89 c3 mov %eax,%ebx <== NOT EXECUTED
13c099: 89 d6 mov %edx,%esi <== NOT EXECUTED
int rc;
if (!control->buffer)
13c09b: b8 06 00 00 00 mov $0x6,%eax <== NOT EXECUTED
13c0a0: 83 3b 00 cmpl $0x0,(%ebx) <== NOT EXECUTED
13c0a3: 74 26 je 13c0cb <rtems_rfs_bitmap_load_map+0x39><== NOT EXECUTED
return ENXIO;
*map = NULL;
13c0a5: c7 02 00 00 00 00 movl $0x0,(%edx) <== NOT EXECUTED
rc = rtems_rfs_buffer_handle_request (control->fs,
13c0ab: 6a 01 push $0x1 <== NOT EXECUTED
13c0ad: ff 73 08 pushl 0x8(%ebx) <== NOT EXECUTED
13c0b0: ff 33 pushl (%ebx) <== NOT EXECUTED
13c0b2: ff 73 04 pushl 0x4(%ebx) <== NOT EXECUTED
13c0b5: e8 c4 8f ff ff call 13507e <rtems_rfs_buffer_handle_request><== NOT EXECUTED
control->buffer,
control->block,
true);
if (rc)
13c0ba: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13c0bd: 85 c0 test %eax,%eax <== NOT EXECUTED
13c0bf: 75 0a jne 13c0cb <rtems_rfs_bitmap_load_map+0x39><== NOT EXECUTED
return rc;
*map = rtems_rfs_buffer_data (control->buffer);
13c0c1: 8b 13 mov (%ebx),%edx <== NOT EXECUTED
13c0c3: 8b 52 08 mov 0x8(%edx),%edx <== NOT EXECUTED
13c0c6: 8b 52 20 mov 0x20(%edx),%edx <== NOT EXECUTED
13c0c9: 89 16 mov %edx,(%esi) <== NOT EXECUTED
return 0;
}
13c0cb: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
13c0ce: 5b pop %ebx <== NOT EXECUTED
13c0cf: 5e pop %esi <== NOT EXECUTED
13c0d0: c9 leave <== NOT EXECUTED
13c0d1: c3 ret <== NOT EXECUTED
0013c5c0 <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)
{
13c5c0: 55 push %ebp <== NOT EXECUTED
13c5c1: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13c5c3: 57 push %edi <== NOT EXECUTED
13c5c4: 56 push %esi <== NOT EXECUTED
13c5c5: 53 push %ebx <== NOT EXECUTED
13c5c6: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13c5c9: 8b 7d 08 mov 0x8(%ebp),%edi <== NOT EXECUTED
int rc = 0;
/*
* By default we assume the allocation failed.
*/
*allocated = false;
13c5cc: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
13c5cf: c6 00 00 movb $0x0,(%eax) <== NOT EXECUTED
13c5d2: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
13c5d5: 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))
13c5d7: eb 68 jmp 13c641 <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)
13c5d9: 3b 77 0c cmp 0xc(%edi),%esi <== NOT EXECUTED
13c5dc: 73 25 jae 13c603 <rtems_rfs_bitmap_map_alloc+0x43><== NOT EXECUTED
{
*bit = upper_seed;
13c5de: 8b 45 14 mov 0x14(%ebp),%eax <== NOT EXECUTED
13c5e1: 89 30 mov %esi,(%eax) <== NOT EXECUTED
rc = rtems_rfs_search_map_for_clear_bit (control, bit, allocated,
13c5e3: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13c5e6: 6a 01 push $0x1 <== NOT EXECUTED
13c5e8: 8b 4d 10 mov 0x10(%ebp),%ecx <== NOT EXECUTED
13c5eb: 89 c2 mov %eax,%edx <== NOT EXECUTED
13c5ed: 89 f8 mov %edi,%eax <== NOT EXECUTED
13c5ef: e8 f2 fd ff ff call 13c3e6 <T.57> <== NOT EXECUTED
window, 1);
if ((rc > 0) || *allocated)
13c5f4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13c5f7: 85 c0 test %eax,%eax <== NOT EXECUTED
13c5f9: 7f 58 jg 13c653 <rtems_rfs_bitmap_map_alloc+0x93><== NOT EXECUTED
13c5fb: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
13c5fe: 80 38 00 cmpb $0x0,(%eax) <== NOT EXECUTED
13c601: 75 50 jne 13c653 <rtems_rfs_bitmap_map_alloc+0x93><== NOT EXECUTED
break;
}
if (lower_seed >= 0)
13c603: 85 db test %ebx,%ebx <== NOT EXECUTED
13c605: 78 25 js 13c62c <rtems_rfs_bitmap_map_alloc+0x6c><== NOT EXECUTED
{
*bit = lower_seed;
13c607: 8b 45 14 mov 0x14(%ebp),%eax <== NOT EXECUTED
13c60a: 89 18 mov %ebx,(%eax) <== NOT EXECUTED
rc = rtems_rfs_search_map_for_clear_bit (control, bit, allocated,
13c60c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13c60f: 6a ff push $0xffffffff <== NOT EXECUTED
13c611: 8b 4d 10 mov 0x10(%ebp),%ecx <== NOT EXECUTED
13c614: 89 c2 mov %eax,%edx <== NOT EXECUTED
13c616: 89 f8 mov %edi,%eax <== NOT EXECUTED
13c618: e8 c9 fd ff ff call 13c3e6 <T.57> <== NOT EXECUTED
window, -1);
if ((rc > 0) || *allocated)
13c61d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13c620: 85 c0 test %eax,%eax <== NOT EXECUTED
13c622: 7f 2f jg 13c653 <rtems_rfs_bitmap_map_alloc+0x93><== NOT EXECUTED
13c624: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
13c627: 80 38 00 cmpb $0x0,(%eax) <== NOT EXECUTED
13c62a: 75 27 jne 13c653 <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)
13c62c: 3b 77 0c cmp 0xc(%edi),%esi <== NOT EXECUTED
13c62f: 73 06 jae 13c637 <rtems_rfs_bitmap_map_alloc+0x77><== NOT EXECUTED
upper_seed += window;
13c631: 81 c6 00 08 00 00 add $0x800,%esi <== NOT EXECUTED
if (lower_seed >= 0)
13c637: 85 db test %ebx,%ebx <== NOT EXECUTED
13c639: 78 06 js 13c641 <rtems_rfs_bitmap_map_alloc+0x81><== NOT EXECUTED
lower_seed -= window;
13c63b: 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))
13c641: 85 f6 test %esi,%esi <== NOT EXECUTED
13c643: 78 05 js 13c64a <rtems_rfs_bitmap_map_alloc+0x8a><== NOT EXECUTED
13c645: 3b 77 0c cmp 0xc(%edi),%esi <== NOT EXECUTED
13c648: 72 8f jb 13c5d9 <rtems_rfs_bitmap_map_alloc+0x19><== NOT EXECUTED
13c64a: 85 db test %ebx,%ebx <== NOT EXECUTED
13c64c: 78 05 js 13c653 <rtems_rfs_bitmap_map_alloc+0x93><== NOT EXECUTED
|| ((lower_seed >= 0) && (lower_seed < control->size)))
13c64e: 3b 5f 0c cmp 0xc(%edi),%ebx <== NOT EXECUTED
13c651: 72 86 jb 13c5d9 <rtems_rfs_bitmap_map_alloc+0x19><== NOT EXECUTED
if (lower_seed >= 0)
lower_seed -= window;
}
return 0;
}
13c653: 31 c0 xor %eax,%eax <== NOT EXECUTED
13c655: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13c658: 5b pop %ebx <== NOT EXECUTED
13c659: 5e pop %esi <== NOT EXECUTED
13c65a: 5f pop %edi <== NOT EXECUTED
13c65b: c9 leave <== NOT EXECUTED
13c65c: c3 ret <== NOT EXECUTED
0013c2fd <rtems_rfs_bitmap_map_clear>:
}
int
rtems_rfs_bitmap_map_clear (rtems_rfs_bitmap_control* control,
rtems_rfs_bitmap_bit bit)
{
13c2fd: 55 push %ebp <== NOT EXECUTED
13c2fe: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13c300: 57 push %edi <== NOT EXECUTED
13c301: 56 push %esi <== NOT EXECUTED
13c302: 53 push %ebx <== NOT EXECUTED
13c303: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED
13c306: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
13c309: 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);
13c30c: 8d 55 e4 lea -0x1c(%ebp),%edx <== NOT EXECUTED
13c30f: 89 d8 mov %ebx,%eax <== NOT EXECUTED
13c311: e8 7c fd ff ff call 13c092 <rtems_rfs_bitmap_load_map><== NOT EXECUTED
if (rc > 0)
13c316: 85 c0 test %eax,%eax <== NOT EXECUTED
13c318: 7f 4c jg 13c366 <rtems_rfs_bitmap_map_clear+0x69><== NOT EXECUTED
return rc;
if (bit >= control->size)
13c31a: b8 16 00 00 00 mov $0x16,%eax <== NOT EXECUTED
13c31f: 3b 7b 0c cmp 0xc(%ebx),%edi <== NOT EXECUTED
13c322: 73 42 jae 13c366 <rtems_rfs_bitmap_map_clear+0x69><== NOT EXECUTED
return EINVAL;
search_map = control->search_bits;
index = rtems_rfs_bitmap_map_index (bit);
13c324: 89 fe mov %edi,%esi <== NOT EXECUTED
13c326: 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);
13c329: 8d 04 b5 00 00 00 00 lea 0x0(,%esi,4),%eax <== NOT EXECUTED
13c330: 03 45 e4 add -0x1c(%ebp),%eax <== NOT EXECUTED
13c333: 89 fa mov %edi,%edx <== NOT EXECUTED
13c335: 83 e2 1f and $0x1f,%edx <== NOT EXECUTED
13c338: 89 55 d4 mov %edx,-0x2c(%ebp) <== NOT EXECUTED
13c33b: ba 01 00 00 00 mov $0x1,%edx <== NOT EXECUTED
13c340: 8a 4d d4 mov -0x2c(%ebp),%cl <== NOT EXECUTED
13c343: d3 e2 shl %cl,%edx <== NOT EXECUTED
13c345: 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);
13c347: c1 ff 0a sar $0xa,%edi <== NOT EXECUTED
13c34a: 89 f1 mov %esi,%ecx <== NOT EXECUTED
13c34c: 83 e1 1f and $0x1f,%ecx <== NOT EXECUTED
13c34f: ba 01 00 00 00 mov $0x1,%edx <== NOT EXECUTED
13c354: d3 e2 shl %cl,%edx <== NOT EXECUTED
13c356: 8b 4b 14 mov 0x14(%ebx),%ecx <== NOT EXECUTED
13c359: 09 14 b9 or %edx,(%ecx,%edi,4) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (control->buffer);
13c35c: 8b 03 mov (%ebx),%eax <== NOT EXECUTED
13c35e: c6 00 01 movb $0x1,(%eax) <== NOT EXECUTED
control->free++;
13c361: ff 43 10 incl 0x10(%ebx) <== NOT EXECUTED
13c364: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
}
13c366: 83 c4 2c add $0x2c,%esp <== NOT EXECUTED
13c369: 5b pop %ebx <== NOT EXECUTED
13c36a: 5e pop %esi <== NOT EXECUTED
13c36b: 5f pop %edi <== NOT EXECUTED
13c36c: c9 leave <== NOT EXECUTED
13c36d: c3 ret <== NOT EXECUTED
0013c1db <rtems_rfs_bitmap_map_clear_all>:
return 0;
}
int
rtems_rfs_bitmap_map_clear_all (rtems_rfs_bitmap_control* control)
{
13c1db: 55 push %ebp <== NOT EXECUTED
13c1dc: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13c1de: 56 push %esi <== NOT EXECUTED
13c1df: 53 push %ebx <== NOT EXECUTED
13c1e0: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED
13c1e3: 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);
13c1e6: 8d 55 f4 lea -0xc(%ebp),%edx <== NOT EXECUTED
13c1e9: 89 d8 mov %ebx,%eax <== NOT EXECUTED
13c1eb: e8 a2 fe ff ff call 13c092 <rtems_rfs_bitmap_load_map><== NOT EXECUTED
if (rc > 0)
13c1f0: 85 c0 test %eax,%eax <== NOT EXECUTED
13c1f2: 7f 58 jg 13c24c <rtems_rfs_bitmap_map_clear_all+0x71><== NOT EXECUTED
return rc;
elements = rtems_rfs_bitmap_elements (control->size);
13c1f4: 8b 43 0c mov 0xc(%ebx),%eax <== NOT EXECUTED
13c1f7: 48 dec %eax <== NOT EXECUTED
13c1f8: c1 e8 05 shr $0x5,%eax <== NOT EXECUTED
13c1fb: 8d 50 01 lea 0x1(%eax),%edx <== NOT EXECUTED
control->free = elements;
13c1fe: 89 53 10 mov %edx,0x10(%ebx) <== NOT EXECUTED
for (e = 0; e < elements; e++)
map[e] = RTEMS_RFS_BITMAP_ELEMENT_CLEAR;
13c201: 8b 75 f4 mov -0xc(%ebp),%esi <== NOT EXECUTED
13c204: 31 c9 xor %ecx,%ecx <== NOT EXECUTED
elements = rtems_rfs_bitmap_elements (control->size);
control->free = elements;
for (e = 0; e < elements; e++)
13c206: eb 08 jmp 13c210 <rtems_rfs_bitmap_map_clear_all+0x35><== NOT EXECUTED
map[e] = RTEMS_RFS_BITMAP_ELEMENT_CLEAR;
13c208: 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++)
13c20f: 41 inc %ecx <== NOT EXECUTED
13c210: 39 d1 cmp %edx,%ecx <== NOT EXECUTED
13c212: 72 f4 jb 13c208 <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)
13c214: 83 e2 1f and $0x1f,%edx <== NOT EXECUTED
13c217: 75 05 jne 13c21e <rtems_rfs_bitmap_map_clear_all+0x43><== NOT EXECUTED
13c219: ba 20 00 00 00 mov $0x20,%edx <== NOT EXECUTED
last_search_bit = rtems_rfs_bitmap_element_bits ();
elements = rtems_rfs_bitmap_elements (elements);
13c21e: 89 c1 mov %eax,%ecx <== NOT EXECUTED
13c220: c1 e9 05 shr $0x5,%ecx <== NOT EXECUTED
return 0;
}
int
rtems_rfs_bitmap_map_clear_all (rtems_rfs_bitmap_control* control)
13c223: 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++)
13c225: eb 08 jmp 13c22f <rtems_rfs_bitmap_map_clear_all+0x54><== NOT EXECUTED
control->search_bits[e] = RTEMS_RFS_BITMAP_ELEMENT_CLEAR;
13c227: 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++)
13c22e: 40 inc %eax <== NOT EXECUTED
13c22f: 39 c8 cmp %ecx,%eax <== NOT EXECUTED
13c231: 8b 73 14 mov 0x14(%ebx),%esi <== NOT EXECUTED
13c234: 75 f1 jne 13c227 <rtems_rfs_bitmap_map_clear_all+0x4c><== NOT EXECUTED
control->search_bits[e] = RTEMS_RFS_BITMAP_ELEMENT_CLEAR;
control->search_bits[elements - 1] =
13c236: b9 20 00 00 00 mov $0x20,%ecx <== NOT EXECUTED
13c23b: 29 d1 sub %edx,%ecx <== NOT EXECUTED
13c23d: 83 ca ff or $0xffffffff,%edx <== NOT EXECUTED
13c240: d3 ea shr %cl,%edx <== NOT EXECUTED
13c242: 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);
13c245: 8b 03 mov (%ebx),%eax <== NOT EXECUTED
13c247: c6 00 01 movb $0x1,(%eax) <== NOT EXECUTED
13c24a: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
}
13c24c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13c24f: 5b pop %ebx <== NOT EXECUTED
13c250: 5e pop %esi <== NOT EXECUTED
13c251: c9 leave <== NOT EXECUTED
13c252: c3 ret <== NOT EXECUTED
0013c36e <rtems_rfs_bitmap_map_set>:
}
int
rtems_rfs_bitmap_map_set (rtems_rfs_bitmap_control* control,
rtems_rfs_bitmap_bit bit)
{
13c36e: 55 push %ebp <== NOT EXECUTED
13c36f: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13c371: 57 push %edi <== NOT EXECUTED
13c372: 56 push %esi <== NOT EXECUTED
13c373: 53 push %ebx <== NOT EXECUTED
13c374: 83 ec 3c sub $0x3c,%esp <== NOT EXECUTED
13c377: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
13c37a: 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);
13c37d: 8d 55 e4 lea -0x1c(%ebp),%edx <== NOT EXECUTED
13c380: 89 d8 mov %ebx,%eax <== NOT EXECUTED
13c382: e8 0b fd ff ff call 13c092 <rtems_rfs_bitmap_load_map><== NOT EXECUTED
if (rc > 0)
13c387: 85 c0 test %eax,%eax <== NOT EXECUTED
13c389: 7f 53 jg 13c3de <rtems_rfs_bitmap_map_set+0x70><== NOT EXECUTED
return rc;
if (bit >= control->size)
13c38b: b8 16 00 00 00 mov $0x16,%eax <== NOT EXECUTED
13c390: 3b 7b 0c cmp 0xc(%ebx),%edi <== NOT EXECUTED
13c393: 73 49 jae 13c3de <rtems_rfs_bitmap_map_set+0x70><== NOT EXECUTED
return EINVAL;
search_map = control->search_bits;
13c395: 8b 53 14 mov 0x14(%ebx),%edx <== NOT EXECUTED
index = rtems_rfs_bitmap_map_index (bit);
13c398: 89 f8 mov %edi,%eax <== NOT EXECUTED
13c39a: c1 f8 05 sar $0x5,%eax <== NOT EXECUTED
13c39d: 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);
13c3a0: c1 e0 02 shl $0x2,%eax <== NOT EXECUTED
13c3a3: 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);
13c3a6: 89 f9 mov %edi,%ecx <== NOT EXECUTED
13c3a8: 83 e1 1f and $0x1f,%ecx <== NOT EXECUTED
13c3ab: be 01 00 00 00 mov $0x1,%esi <== NOT EXECUTED
13c3b0: d3 e6 shl %cl,%esi <== NOT EXECUTED
13c3b2: f7 d6 not %esi <== NOT EXECUTED
13c3b4: 8b 08 mov (%eax),%ecx <== NOT EXECUTED
13c3b6: 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);
13c3b8: 89 30 mov %esi,(%eax) <== NOT EXECUTED
if (rtems_rfs_bitmap_match(map[index], RTEMS_RFS_BITMAP_ELEMENT_SET))
13c3ba: 31 c0 xor %eax,%eax <== NOT EXECUTED
13c3bc: 85 f6 test %esi,%esi <== NOT EXECUTED
13c3be: 75 1e jne 13c3de <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);
13c3c0: c1 ff 0a sar $0xa,%edi <== NOT EXECUTED
13c3c3: 8b 4d c4 mov -0x3c(%ebp),%ecx <== NOT EXECUTED
13c3c6: 83 e1 1f and $0x1f,%ecx <== NOT EXECUTED
13c3c9: 66 be 01 00 mov $0x1,%si <== NOT EXECUTED
13c3cd: d3 e6 shl %cl,%esi <== NOT EXECUTED
13c3cf: f7 d6 not %esi <== NOT EXECUTED
13c3d1: 21 34 ba and %esi,(%edx,%edi,4) <== NOT EXECUTED
control->free--;
13c3d4: ff 4b 10 decl 0x10(%ebx) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (control->buffer);
13c3d7: 8b 03 mov (%ebx),%eax <== NOT EXECUTED
13c3d9: c6 00 01 movb $0x1,(%eax) <== NOT EXECUTED
13c3dc: 31 c0 xor %eax,%eax <== NOT EXECUTED
}
return 0;
}
13c3de: 83 c4 3c add $0x3c,%esp <== NOT EXECUTED
13c3e1: 5b pop %ebx <== NOT EXECUTED
13c3e2: 5e pop %esi <== NOT EXECUTED
13c3e3: 5f pop %edi <== NOT EXECUTED
13c3e4: c9 leave <== NOT EXECUTED
13c3e5: c3 ret <== NOT EXECUTED
0013c253 <rtems_rfs_bitmap_map_set_all>:
return 0;
}
int
rtems_rfs_bitmap_map_set_all (rtems_rfs_bitmap_control* control)
{
13c253: 55 push %ebp <== NOT EXECUTED
13c254: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13c256: 56 push %esi <== NOT EXECUTED
13c257: 53 push %ebx <== NOT EXECUTED
13c258: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED
13c25b: 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);
13c25e: 8d 55 f4 lea -0xc(%ebp),%edx <== NOT EXECUTED
13c261: 89 d8 mov %ebx,%eax <== NOT EXECUTED
13c263: e8 2a fe ff ff call 13c092 <rtems_rfs_bitmap_load_map><== NOT EXECUTED
if (rc > 0)
13c268: 85 c0 test %eax,%eax <== NOT EXECUTED
13c26a: 7f 44 jg 13c2b0 <rtems_rfs_bitmap_map_set_all+0x5d><== NOT EXECUTED
return rc;
elements = rtems_rfs_bitmap_elements (control->size);
13c26c: 8b 43 0c mov 0xc(%ebx),%eax <== NOT EXECUTED
13c26f: 48 dec %eax <== NOT EXECUTED
13c270: c1 e8 05 shr $0x5,%eax <== NOT EXECUTED
13c273: 8d 70 01 lea 0x1(%eax),%esi <== NOT EXECUTED
control->free = 0;
13c276: 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;
13c27d: 8b 4d f4 mov -0xc(%ebp),%ecx <== NOT EXECUTED
13c280: 31 d2 xor %edx,%edx <== NOT EXECUTED
elements = rtems_rfs_bitmap_elements (control->size);
control->free = 0;
for (e = 0; e < elements; e++)
13c282: eb 08 jmp 13c28c <rtems_rfs_bitmap_map_set_all+0x39><== NOT EXECUTED
map[e] = RTEMS_RFS_BITMAP_ELEMENT_SET;
13c284: 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++)
13c28b: 42 inc %edx <== NOT EXECUTED
13c28c: 39 f2 cmp %esi,%edx <== NOT EXECUTED
13c28e: 72 f4 jb 13c284 <rtems_rfs_bitmap_map_set_all+0x31><== NOT EXECUTED
map[e] = RTEMS_RFS_BITMAP_ELEMENT_SET;
elements = rtems_rfs_bitmap_elements (elements);
13c290: c1 e8 05 shr $0x5,%eax <== NOT EXECUTED
13c293: 8d 50 01 lea 0x1(%eax),%edx <== NOT EXECUTED
13c296: 31 c0 xor %eax,%eax <== NOT EXECUTED
for (e = 0; e < elements; e++)
13c298: eb 0b jmp 13c2a5 <rtems_rfs_bitmap_map_set_all+0x52><== NOT EXECUTED
control->search_bits[e] = RTEMS_RFS_BITMAP_ELEMENT_SET;
13c29a: 8b 4b 14 mov 0x14(%ebx),%ecx <== NOT EXECUTED
13c29d: 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++)
13c2a4: 40 inc %eax <== NOT EXECUTED
13c2a5: 39 d0 cmp %edx,%eax <== NOT EXECUTED
13c2a7: 72 f1 jb 13c29a <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);
13c2a9: 8b 03 mov (%ebx),%eax <== NOT EXECUTED
13c2ab: c6 00 01 movb $0x1,(%eax) <== NOT EXECUTED
13c2ae: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
}
13c2b0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13c2b3: 5b pop %ebx <== NOT EXECUTED
13c2b4: 5e pop %esi <== NOT EXECUTED
13c2b5: c9 leave <== NOT EXECUTED
13c2b6: c3 ret <== NOT EXECUTED
0013c2b7 <rtems_rfs_bitmap_map_test>:
int
rtems_rfs_bitmap_map_test (rtems_rfs_bitmap_control* control,
rtems_rfs_bitmap_bit bit,
bool* state)
{
13c2b7: 55 push %ebp <== NOT EXECUTED
13c2b8: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13c2ba: 56 push %esi <== NOT EXECUTED
13c2bb: 53 push %ebx <== NOT EXECUTED
13c2bc: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED
13c2bf: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
13c2c2: 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);
13c2c5: 8d 55 f4 lea -0xc(%ebp),%edx <== NOT EXECUTED
13c2c8: 89 f0 mov %esi,%eax <== NOT EXECUTED
13c2ca: e8 c3 fd ff ff call 13c092 <rtems_rfs_bitmap_load_map><== NOT EXECUTED
if (rc > 0)
13c2cf: 85 c0 test %eax,%eax <== NOT EXECUTED
13c2d1: 7f 23 jg 13c2f6 <rtems_rfs_bitmap_map_test+0x3f><== NOT EXECUTED
return rc;
if (bit >= control->size)
13c2d3: b8 16 00 00 00 mov $0x16,%eax <== NOT EXECUTED
13c2d8: 3b 5e 0c cmp 0xc(%esi),%ebx <== NOT EXECUTED
13c2db: 73 19 jae 13c2f6 <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);
13c2dd: 89 da mov %ebx,%edx <== NOT EXECUTED
13c2df: c1 fa 05 sar $0x5,%edx <== NOT EXECUTED
13c2e2: b0 01 mov $0x1,%al <== NOT EXECUTED
13c2e4: 88 d9 mov %bl,%cl <== NOT EXECUTED
13c2e6: d3 e0 shl %cl,%eax <== NOT EXECUTED
13c2e8: 8b 4d f4 mov -0xc(%ebp),%ecx <== NOT EXECUTED
13c2eb: 85 04 91 test %eax,(%ecx,%edx,4) <== NOT EXECUTED
13c2ee: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
13c2f1: 0f 94 00 sete (%eax) <== NOT EXECUTED
13c2f4: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
}
13c2f6: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13c2f9: 5b pop %ebx <== NOT EXECUTED
13c2fa: 5e pop %esi <== NOT EXECUTED
13c2fb: c9 leave <== NOT EXECUTED
13c2fc: c3 ret <== NOT EXECUTED
0013c048 <rtems_rfs_bitmap_mask>:
return 0;
}
rtems_rfs_bitmap_element
rtems_rfs_bitmap_mask (unsigned int size)
{
13c048: 55 push %ebp <== NOT EXECUTED
13c049: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13c04b: b9 20 00 00 00 mov $0x20,%ecx <== NOT EXECUTED
13c050: 2b 4d 08 sub 0x8(%ebp),%ecx <== NOT EXECUTED
13c053: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
13c056: 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;
}
13c058: c9 leave <== NOT EXECUTED
13c059: c3 ret <== NOT EXECUTED
0013c05a <rtems_rfs_bitmap_mask_section>:
rtems_rfs_bitmap_element
rtems_rfs_bitmap_mask_section (unsigned int start, unsigned int end)
{
13c05a: 55 push %ebp <== NOT EXECUTED
13c05b: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13c05d: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
13c060: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED
rtems_rfs_bitmap_element mask = 0;
if (end > start)
13c063: 31 c0 xor %eax,%eax <== NOT EXECUTED
13c065: 39 d1 cmp %edx,%ecx <== NOT EXECUTED
13c067: 76 12 jbe 13c07b <rtems_rfs_bitmap_mask_section+0x21><== NOT EXECUTED
mask = rtems_rfs_bitmap_mask (end - start) << start;
13c069: 89 d0 mov %edx,%eax <== NOT EXECUTED
13c06b: 29 c8 sub %ecx,%eax <== NOT EXECUTED
13c06d: 89 c1 mov %eax,%ecx <== NOT EXECUTED
13c06f: 83 c1 20 add $0x20,%ecx <== NOT EXECUTED
13c072: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
13c075: d3 e8 shr %cl,%eax <== NOT EXECUTED
13c077: 88 d1 mov %dl,%cl <== NOT EXECUTED
13c079: d3 e0 shl %cl,%eax <== NOT EXECUTED
return mask;
}
13c07b: c9 leave <== NOT EXECUTED
13c07c: c3 ret <== NOT EXECUTED
0013c18c <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)
{
13c18c: 55 push %ebp <== NOT EXECUTED
13c18d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13c18f: 53 push %ebx <== NOT EXECUTED
13c190: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED
13c193: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
13c196: 8b 45 14 mov 0x14(%ebp),%eax <== NOT EXECUTED
size_t elements = rtems_rfs_bitmap_elements (size);
control->buffer = buffer;
13c199: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
13c19c: 89 13 mov %edx,(%ebx) <== NOT EXECUTED
control->fs = fs;
13c19e: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
13c1a1: 89 53 04 mov %edx,0x4(%ebx) <== NOT EXECUTED
control->block = block;
13c1a4: 8b 55 18 mov 0x18(%ebp),%edx <== NOT EXECUTED
13c1a7: 89 53 08 mov %edx,0x8(%ebx) <== NOT EXECUTED
control->size = size;
13c1aa: 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));
13c1ad: 48 dec %eax <== NOT EXECUTED
13c1ae: c1 e8 0a shr $0xa,%eax <== NOT EXECUTED
13c1b1: 8d 04 85 04 00 00 00 lea 0x4(,%eax,4),%eax <== NOT EXECUTED
13c1b8: 50 push %eax <== NOT EXECUTED
13c1b9: e8 2a 12 fd ff call 10d3e8 <malloc> <== NOT EXECUTED
13c1be: 89 43 14 mov %eax,0x14(%ebx) <== NOT EXECUTED
if (!control->search_bits)
13c1c1: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13c1c4: 85 c0 test %eax,%eax <== NOT EXECUTED
13c1c6: 75 07 jne 13c1cf <rtems_rfs_bitmap_open+0x43><== NOT EXECUTED
return ENOMEM;
return rtems_rfs_bitmap_create_search (control);
}
13c1c8: b0 0c mov $0xc,%al <== NOT EXECUTED
13c1ca: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
13c1cd: c9 leave <== NOT EXECUTED
13c1ce: 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);
13c1cf: 89 5d 08 mov %ebx,0x8(%ebp) <== NOT EXECUTED
}
13c1d2: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
13c1d5: 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);
13c1d6: e9 f7 fe ff ff jmp 13c0d2 <rtems_rfs_bitmap_create_search><== NOT EXECUTED
0013420d <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)
{
13420d: 55 push %ebp <== NOT EXECUTED
13420e: 89 e5 mov %esp,%ebp <== NOT EXECUTED
134210: 57 push %edi <== NOT EXECUTED
134211: 56 push %esi <== NOT EXECUTED
134212: 53 push %ebx <== NOT EXECUTED
134213: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
134216: 89 c3 mov %eax,%ebx <== NOT EXECUTED
134218: 89 d6 mov %edx,%esi <== NOT EXECUTED
13421a: 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);
13421d: 6a 01 push $0x1 <== NOT EXECUTED
13421f: 51 push %ecx <== NOT EXECUTED
134220: 52 push %edx <== NOT EXECUTED
134221: 50 push %eax <== NOT EXECUTED
134222: e8 57 0e 00 00 call 13507e <rtems_rfs_buffer_handle_request><== NOT EXECUTED
if (rc > 0)
134227: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13422a: 85 c0 test %eax,%eax <== NOT EXECUTED
13422c: 7f 52 jg 134280 <rtems_rfs_block_find_indirect+0x73><== NOT EXECUTED
return rc;
*result = rtems_rfs_block_get_number (buffer, offset);
13422e: 8b 46 08 mov 0x8(%esi),%eax <== NOT EXECUTED
134231: 8b 40 20 mov 0x20(%eax),%eax <== NOT EXECUTED
134234: 8d 34 bd 00 00 00 00 lea 0x0(,%edi,4),%esi <== NOT EXECUTED
13423b: 0f b6 54 30 03 movzbl 0x3(%eax,%esi,1),%edx <== NOT EXECUTED
134240: 0f b6 0c b8 movzbl (%eax,%edi,4),%ecx <== NOT EXECUTED
134244: c1 e1 18 shl $0x18,%ecx <== NOT EXECUTED
134247: 09 ca or %ecx,%edx <== NOT EXECUTED
134249: 0f b6 4c 30 01 movzbl 0x1(%eax,%esi,1),%ecx <== NOT EXECUTED
13424e: c1 e1 10 shl $0x10,%ecx <== NOT EXECUTED
134251: 09 ca or %ecx,%edx <== NOT EXECUTED
134253: 0f b6 44 b8 02 movzbl 0x2(%eax,%edi,4),%eax <== NOT EXECUTED
134258: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
13425b: 09 c2 or %eax,%edx <== NOT EXECUTED
if ((*result + 1) == 0)
13425d: 31 c0 xor %eax,%eax <== NOT EXECUTED
13425f: 83 fa ff cmp $0xffffffff,%edx <== NOT EXECUTED
134262: 0f 95 c0 setne %al <== NOT EXECUTED
134265: f7 d8 neg %eax <== NOT EXECUTED
134267: 21 c2 and %eax,%edx <== NOT EXECUTED
134269: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
13426c: 89 10 mov %edx,(%eax) <== NOT EXECUTED
*result = 0;
if (*result >= rtems_rfs_fs_blocks (fs))
13426e: 31 c0 xor %eax,%eax <== NOT EXECUTED
134270: 3b 53 04 cmp 0x4(%ebx),%edx <== NOT EXECUTED
134273: 72 0b jb 134280 <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;
134275: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
134278: c7 00 00 00 00 00 movl $0x0,(%eax) <== NOT EXECUTED
13427e: 31 c0 xor %eax,%eax <== NOT EXECUTED
rc = EIO;
}
return 0;
}
134280: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
134283: 5b pop %ebx <== NOT EXECUTED
134284: 5e pop %esi <== NOT EXECUTED
134285: 5f pop %edi <== NOT EXECUTED
134286: c9 leave <== NOT EXECUTED
134287: c3 ret <== NOT EXECUTED
0013415f <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)
{
13415f: 55 push %ebp <== NOT EXECUTED
134160: 89 e5 mov %esp,%ebp <== NOT EXECUTED
134162: 57 push %edi <== NOT EXECUTED
134163: 56 push %esi <== NOT EXECUTED
134164: 53 push %ebx <== NOT EXECUTED
134165: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
134168: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
13416b: 8b 75 10 mov 0x10(%ebp),%esi <== NOT EXECUTED
13416e: 8b 7d 14 mov 0x14(%ebp),%edi <== NOT EXECUTED
if (pos == 0)
134171: 89 f0 mov %esi,%eax <== NOT EXECUTED
134173: 09 d8 or %ebx,%eax <== NOT EXECUTED
134175: 75 0f jne 134186 <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;
134177: c7 07 00 00 00 00 movl $0x0,(%edi) <== NOT EXECUTED
size->offset = 0;
13417d: c7 47 04 00 00 00 00 movl $0x0,0x4(%edi) <== NOT EXECUTED
134184: eb 30 jmp 1341b6 <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;
134186: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
134189: 8b 50 08 mov 0x8(%eax),%edx <== NOT EXECUTED
13418c: 31 c9 xor %ecx,%ecx <== NOT EXECUTED
13418e: 89 55 e0 mov %edx,-0x20(%ebp) <== NOT EXECUTED
134191: 89 4d e4 mov %ecx,-0x1c(%ebp) <== NOT EXECUTED
134194: 51 push %ecx <== NOT EXECUTED
134195: 52 push %edx <== NOT EXECUTED
134196: 56 push %esi <== NOT EXECUTED
134197: 53 push %ebx <== NOT EXECUTED
134198: e8 9b e8 01 00 call 152a38 <__udivdi3> <== NOT EXECUTED
13419d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1341a0: 40 inc %eax <== NOT EXECUTED
1341a1: 89 07 mov %eax,(%edi) <== NOT EXECUTED
size->offset = pos % rtems_rfs_fs_block_size (fs);
1341a3: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
1341a6: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
1341a9: 56 push %esi <== NOT EXECUTED
1341aa: 53 push %ebx <== NOT EXECUTED
1341ab: e8 98 e9 01 00 call 152b48 <__umoddi3> <== NOT EXECUTED
1341b0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1341b3: 89 47 04 mov %eax,0x4(%edi) <== NOT EXECUTED
}
}
1341b6: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1341b9: 5b pop %ebx <== NOT EXECUTED
1341ba: 5e pop %esi <== NOT EXECUTED
1341bb: 5f pop %edi <== NOT EXECUTED
1341bc: c9 leave <== NOT EXECUTED
1341bd: c3 ret <== NOT EXECUTED
00134108 <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)
{
134108: 55 push %ebp <== NOT EXECUTED
134109: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13410b: 57 push %edi <== NOT EXECUTED
13410c: 56 push %esi <== NOT EXECUTED
13410d: 53 push %ebx <== NOT EXECUTED
13410e: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
134111: 8b 7d 14 mov 0x14(%ebp),%edi <== NOT EXECUTED
bpos->bno = pos / rtems_rfs_fs_block_size (fs);
134114: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
134117: 8b 58 08 mov 0x8(%eax),%ebx <== NOT EXECUTED
13411a: 31 f6 xor %esi,%esi <== NOT EXECUTED
13411c: 56 push %esi <== NOT EXECUTED
13411d: 53 push %ebx <== NOT EXECUTED
13411e: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
134121: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
134124: e8 0f e9 01 00 call 152a38 <__udivdi3> <== NOT EXECUTED
134129: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13412c: 89 07 mov %eax,(%edi) <== NOT EXECUTED
bpos->boff = pos % rtems_rfs_fs_block_size (fs);
13412e: 56 push %esi <== NOT EXECUTED
13412f: 53 push %ebx <== NOT EXECUTED
134130: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
134133: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
134136: e8 0d ea 01 00 call 152b48 <__umoddi3> <== NOT EXECUTED
13413b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13413e: 89 47 04 mov %eax,0x4(%edi) <== NOT EXECUTED
}
134141: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
134144: 5b pop %ebx <== NOT EXECUTED
134145: 5e pop %esi <== NOT EXECUTED
134146: 5f pop %edi <== NOT EXECUTED
134147: c9 leave <== NOT EXECUTED
134148: c3 ret <== NOT EXECUTED
00134149 <rtems_rfs_block_get_pos>:
rtems_rfs_pos
rtems_rfs_block_get_pos (rtems_rfs_file_system* fs,
rtems_rfs_block_pos* bpos)
{
134149: 55 push %ebp <== NOT EXECUTED
13414a: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13414c: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
13414f: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
134152: 8b 40 08 mov 0x8(%eax),%eax <== NOT EXECUTED
134155: 0f af 02 imul (%edx),%eax <== NOT EXECUTED
134158: 03 42 04 add 0x4(%edx),%eax <== NOT EXECUTED
return (bpos->bno * rtems_rfs_fs_block_size (fs)) + bpos->boff;
}
13415b: 31 d2 xor %edx,%edx <== NOT EXECUTED
13415d: c9 leave <== NOT EXECUTED
13415e: c3 ret <== NOT EXECUTED
001341be <rtems_rfs_block_get_size>:
rtems_rfs_pos
rtems_rfs_block_get_size (rtems_rfs_file_system* fs,
rtems_rfs_block_size* size)
{
1341be: 55 push %ebp <== NOT EXECUTED
1341bf: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1341c1: 56 push %esi <== NOT EXECUTED
1341c2: 53 push %ebx <== NOT EXECUTED
1341c3: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED
1341c6: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
1341c9: 8b 75 0c mov 0xc(%ebp),%esi <== NOT EXECUTED
uint32_t offset;
uint64_t block_size;
if (size->count == 0)
1341cc: 8b 1e mov (%esi),%ebx <== NOT EXECUTED
1341ce: c7 45 e8 00 00 00 00 movl $0x0,-0x18(%ebp) <== NOT EXECUTED
1341d5: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp) <== NOT EXECUTED
1341dc: 85 db test %ebx,%ebx <== NOT EXECUTED
1341de: 74 20 je 134200 <rtems_rfs_block_get_size+0x42><== NOT EXECUTED
return 0;
if (size->offset == 0)
1341e0: 8b 46 04 mov 0x4(%esi),%eax <== NOT EXECUTED
1341e3: 85 c0 test %eax,%eax <== NOT EXECUTED
1341e5: 75 03 jne 1341ea <rtems_rfs_block_get_size+0x2c><== NOT EXECUTED
offset = rtems_rfs_fs_block_size (fs);
1341e7: 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;
1341ea: 89 45 e8 mov %eax,-0x18(%ebp) <== NOT EXECUTED
1341ed: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp) <== NOT EXECUTED
1341f4: 4b dec %ebx <== NOT EXECUTED
1341f5: 89 d8 mov %ebx,%eax <== NOT EXECUTED
1341f7: f7 61 08 mull 0x8(%ecx) <== NOT EXECUTED
1341fa: 01 45 e8 add %eax,-0x18(%ebp) <== NOT EXECUTED
1341fd: 11 55 ec adc %edx,-0x14(%ebp) <== NOT EXECUTED
}
134200: 8b 45 e8 mov -0x18(%ebp),%eax <== NOT EXECUTED
134203: 8b 55 ec mov -0x14(%ebp),%edx <== NOT EXECUTED
134206: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
134209: 5b pop %ebx <== NOT EXECUTED
13420a: 5e pop %esi <== NOT EXECUTED
13420b: c9 leave <== NOT EXECUTED
13420c: c3 ret <== NOT EXECUTED
00134ac6 <rtems_rfs_block_map_close>:
}
int
rtems_rfs_block_map_close (rtems_rfs_file_system* fs,
rtems_rfs_block_map* map)
{
134ac6: 55 push %ebp <== NOT EXECUTED
134ac7: 89 e5 mov %esp,%ebp <== NOT EXECUTED
134ac9: 57 push %edi <== NOT EXECUTED
134aca: 56 push %esi <== NOT EXECUTED
134acb: 53 push %ebx <== NOT EXECUTED
134acc: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
134acf: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
134ad2: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
int rc = 0;
int brc;
if (map->dirty && map->inode)
134ad5: 80 3b 00 cmpb $0x0,(%ebx) <== NOT EXECUTED
134ad8: 0f 84 3c 01 00 00 je 134c1a <rtems_rfs_block_map_close+0x154><== NOT EXECUTED
134ade: 8b 43 04 mov 0x4(%ebx),%eax <== NOT EXECUTED
134ae1: 85 c0 test %eax,%eax <== NOT EXECUTED
134ae3: 0f 84 31 01 00 00 je 134c1a <rtems_rfs_block_map_close+0x154><== NOT EXECUTED
{
brc = rtems_rfs_inode_load (fs, map->inode);
134ae9: 52 push %edx <== NOT EXECUTED
134aea: 52 push %edx <== NOT EXECUTED
134aeb: 50 push %eax <== NOT EXECUTED
134aec: 56 push %esi <== NOT EXECUTED
134aed: e8 aa 35 00 00 call 13809c <rtems_rfs_inode_load> <== NOT EXECUTED
if (brc > 0)
134af2: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
134af5: 89 c7 mov %eax,%edi <== NOT EXECUTED
134af7: 85 c0 test %eax,%eax <== NOT EXECUTED
134af9: 0f 8f 1d 01 00 00 jg 134c1c <rtems_rfs_block_map_close+0x156><== NOT EXECUTED
134aff: 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]);
134b01: 8b 54 03 24 mov 0x24(%ebx,%eax,1),%edx <== NOT EXECUTED
134b05: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED
134b08: 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);
134b0b: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED
134b0e: c1 e9 18 shr $0x18,%ecx <== NOT EXECUTED
134b11: 8b 7a 0c mov 0xc(%edx),%edi <== NOT EXECUTED
134b14: 88 4c 07 1c mov %cl,0x1c(%edi,%eax,1) <== NOT EXECUTED
134b18: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED
134b1b: c1 e9 10 shr $0x10,%ecx <== NOT EXECUTED
134b1e: 8b 7a 0c mov 0xc(%edx),%edi <== NOT EXECUTED
134b21: 88 4c 07 1d mov %cl,0x1d(%edi,%eax,1) <== NOT EXECUTED
134b25: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED
134b28: c1 e9 08 shr $0x8,%ecx <== NOT EXECUTED
134b2b: 8b 7a 0c mov 0xc(%edx),%edi <== NOT EXECUTED
134b2e: 88 4c 07 1e mov %cl,0x1e(%edi,%eax,1) <== NOT EXECUTED
134b32: 8b 7a 0c mov 0xc(%edx),%edi <== NOT EXECUTED
134b35: 8a 4d e4 mov -0x1c(%ebp),%cl <== NOT EXECUTED
134b38: 88 4c 07 1f mov %cl,0x1f(%edi,%eax,1) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
134b3c: c6 42 10 01 movb $0x1,0x10(%edx) <== NOT EXECUTED
134b40: 83 c0 04 add $0x4,%eax <== NOT EXECUTED
if (rc == 0)
{
int b;
for (b = 0; b < RTEMS_RFS_INODE_BLOCKS; b++)
134b43: 83 f8 14 cmp $0x14,%eax <== NOT EXECUTED
134b46: 75 b9 jne 134b01 <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);
134b48: 8b 53 08 mov 0x8(%ebx),%edx <== NOT EXECUTED
134b4b: 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);
134b4e: 89 d7 mov %edx,%edi <== NOT EXECUTED
134b50: c1 ef 18 shr $0x18,%edi <== NOT EXECUTED
134b53: 89 7d e4 mov %edi,-0x1c(%ebp) <== NOT EXECUTED
134b56: 8a 4d e4 mov -0x1c(%ebp),%cl <== NOT EXECUTED
134b59: 8b 78 0c mov 0xc(%eax),%edi <== NOT EXECUTED
134b5c: 88 4f 0c mov %cl,0xc(%edi) <== NOT EXECUTED
134b5f: 89 d1 mov %edx,%ecx <== NOT EXECUTED
134b61: c1 e9 10 shr $0x10,%ecx <== NOT EXECUTED
134b64: 8b 78 0c mov 0xc(%eax),%edi <== NOT EXECUTED
134b67: 88 4f 0d mov %cl,0xd(%edi) <== NOT EXECUTED
134b6a: 89 d1 mov %edx,%ecx <== NOT EXECUTED
134b6c: c1 e9 08 shr $0x8,%ecx <== NOT EXECUTED
134b6f: 8b 78 0c mov 0xc(%eax),%edi <== NOT EXECUTED
134b72: 88 4f 0e mov %cl,0xe(%edi) <== NOT EXECUTED
134b75: 8b 48 0c mov 0xc(%eax),%ecx <== NOT EXECUTED
134b78: 88 51 0f mov %dl,0xf(%ecx) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
134b7b: c6 40 10 01 movb $0x1,0x10(%eax) <== NOT EXECUTED
rtems_rfs_inode_set_block_offset (map->inode, map->size.offset);
134b7f: 8b 53 0c mov 0xc(%ebx),%edx <== NOT EXECUTED
134b82: 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);
134b85: 89 d1 mov %edx,%ecx <== NOT EXECUTED
134b87: 66 c1 e9 08 shr $0x8,%cx <== NOT EXECUTED
134b8b: 8b 78 0c mov 0xc(%eax),%edi <== NOT EXECUTED
134b8e: 88 4f 0a mov %cl,0xa(%edi) <== NOT EXECUTED
134b91: 8b 48 0c mov 0xc(%eax),%ecx <== NOT EXECUTED
134b94: 88 51 0b mov %dl,0xb(%ecx) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
134b97: c6 40 10 01 movb $0x1,0x10(%eax) <== NOT EXECUTED
rtems_rfs_inode_set_last_map_block (map->inode, map->last_map_block);
134b9b: 8b 53 1c mov 0x1c(%ebx),%edx <== NOT EXECUTED
134b9e: 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);
134ba1: 89 d1 mov %edx,%ecx <== NOT EXECUTED
134ba3: c1 e9 18 shr $0x18,%ecx <== NOT EXECUTED
134ba6: 8b 78 0c mov 0xc(%eax),%edi <== NOT EXECUTED
134ba9: 88 4f 30 mov %cl,0x30(%edi) <== NOT EXECUTED
134bac: 89 d1 mov %edx,%ecx <== NOT EXECUTED
134bae: c1 e9 10 shr $0x10,%ecx <== NOT EXECUTED
134bb1: 8b 78 0c mov 0xc(%eax),%edi <== NOT EXECUTED
134bb4: 88 4f 31 mov %cl,0x31(%edi) <== NOT EXECUTED
134bb7: 89 d1 mov %edx,%ecx <== NOT EXECUTED
134bb9: c1 e9 08 shr $0x8,%ecx <== NOT EXECUTED
134bbc: 8b 78 0c mov 0xc(%eax),%edi <== NOT EXECUTED
134bbf: 88 4f 32 mov %cl,0x32(%edi) <== NOT EXECUTED
134bc2: 8b 48 0c mov 0xc(%eax),%ecx <== NOT EXECUTED
134bc5: 88 51 33 mov %dl,0x33(%ecx) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
134bc8: c6 40 10 01 movb $0x1,0x10(%eax) <== NOT EXECUTED
rtems_rfs_inode_set_last_data_block (map->inode, map->last_data_block);
134bcc: 8b 53 20 mov 0x20(%ebx),%edx <== NOT EXECUTED
134bcf: 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);
134bd2: 89 d1 mov %edx,%ecx <== NOT EXECUTED
134bd4: c1 e9 18 shr $0x18,%ecx <== NOT EXECUTED
134bd7: 8b 78 0c mov 0xc(%eax),%edi <== NOT EXECUTED
134bda: 88 4f 34 mov %cl,0x34(%edi) <== NOT EXECUTED
134bdd: 89 d1 mov %edx,%ecx <== NOT EXECUTED
134bdf: c1 e9 10 shr $0x10,%ecx <== NOT EXECUTED
134be2: 8b 78 0c mov 0xc(%eax),%edi <== NOT EXECUTED
134be5: 88 4f 35 mov %cl,0x35(%edi) <== NOT EXECUTED
134be8: 89 d1 mov %edx,%ecx <== NOT EXECUTED
134bea: c1 e9 08 shr $0x8,%ecx <== NOT EXECUTED
134bed: 8b 78 0c mov 0xc(%eax),%edi <== NOT EXECUTED
134bf0: 88 4f 36 mov %cl,0x36(%edi) <== NOT EXECUTED
134bf3: 8b 48 0c mov 0xc(%eax),%ecx <== NOT EXECUTED
134bf6: 88 51 37 mov %dl,0x37(%ecx) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
134bf9: c6 40 10 01 movb $0x1,0x10(%eax) <== NOT EXECUTED
brc = rtems_rfs_inode_unload (fs, map->inode, true);
134bfd: 57 push %edi <== NOT EXECUTED
134bfe: 6a 01 push $0x1 <== NOT EXECUTED
134c00: ff 73 04 pushl 0x4(%ebx) <== NOT EXECUTED
134c03: 56 push %esi <== NOT EXECUTED
134c04: e8 d7 33 00 00 call 137fe0 <rtems_rfs_inode_unload><== NOT EXECUTED
134c09: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
134c0c: 89 c7 mov %eax,%edi <== NOT EXECUTED
134c0e: f7 d7 not %edi <== NOT EXECUTED
134c10: c1 ff 1f sar $0x1f,%edi <== NOT EXECUTED
134c13: 21 c7 and %eax,%edi <== NOT EXECUTED
if (brc > 0)
rc = brc;
map->dirty = false;
134c15: c6 03 00 movb $0x0,(%ebx) <== NOT EXECUTED
134c18: eb 02 jmp 134c1c <rtems_rfs_block_map_close+0x156><== NOT EXECUTED
134c1a: 31 ff xor %edi,%edi <== NOT EXECUTED
}
}
map->inode = NULL;
134c1c: 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);
134c23: 51 push %ecx <== NOT EXECUTED
134c24: 51 push %ecx <== NOT EXECUTED
134c25: 8d 43 38 lea 0x38(%ebx),%eax <== NOT EXECUTED
134c28: 50 push %eax <== NOT EXECUTED
134c29: 56 push %esi <== NOT EXECUTED
134c2a: e8 58 03 00 00 call 134f87 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
handle->dirty = false;
134c2f: c6 43 38 00 movb $0x0,0x38(%ebx) <== NOT EXECUTED
handle->bnum = 0;
134c33: c7 43 3c 00 00 00 00 movl $0x0,0x3c(%ebx) <== NOT EXECUTED
handle->buffer = NULL;
134c3a: 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);
134c41: 58 pop %eax <== NOT EXECUTED
134c42: 5a pop %edx <== NOT EXECUTED
134c43: 8d 43 44 lea 0x44(%ebx),%eax <== NOT EXECUTED
134c46: 50 push %eax <== NOT EXECUTED
134c47: 56 push %esi <== NOT EXECUTED
134c48: e8 3a 03 00 00 call 134f87 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
handle->dirty = false;
134c4d: c6 43 44 00 movb $0x0,0x44(%ebx) <== NOT EXECUTED
handle->bnum = 0;
134c51: c7 43 48 00 00 00 00 movl $0x0,0x48(%ebx) <== NOT EXECUTED
handle->buffer = NULL;
134c58: 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;
}
134c5f: 89 f8 mov %edi,%eax <== NOT EXECUTED
134c61: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
134c64: 5b pop %ebx <== NOT EXECUTED
134c65: 5e pop %esi <== NOT EXECUTED
134c66: 5f pop %edi <== NOT EXECUTED
134c67: c9 leave <== NOT EXECUTED
134c68: c3 ret <== NOT EXECUTED
00134288 <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)
{
134288: 55 push %ebp <== NOT EXECUTED
134289: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13428b: 57 push %edi <== NOT EXECUTED
13428c: 56 push %esi <== NOT EXECUTED
13428d: 53 push %ebx <== NOT EXECUTED
13428e: 83 ec 3c sub $0x3c,%esp <== NOT EXECUTED
134291: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
134294: 8b 75 10 mov 0x10(%ebp),%esi <== NOT EXECUTED
134297: 8b 7d 14 mov 0x14(%ebp),%edi <== NOT EXECUTED
int rc = 0;
*block = 0;
13429a: 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))
1342a0: 8b 06 mov (%esi),%eax <== NOT EXECUTED
1342a2: 85 c0 test %eax,%eax <== NOT EXECUTED
1342a4: 74 0a je 1342b0 <rtems_rfs_block_map_find+0x28><== NOT EXECUTED
1342a6: 83 7b 08 00 cmpl $0x0,0x8(%ebx) <== NOT EXECUTED
1342aa: 0f 84 d7 00 00 00 je 134387 <rtems_rfs_block_map_find+0xff><== NOT EXECUTED
1342b0: 8b 53 08 mov 0x8(%ebx),%edx <== NOT EXECUTED
1342b3: 89 55 d4 mov %edx,-0x2c(%ebp) <== NOT EXECUTED
1342b6: 39 d0 cmp %edx,%eax <== NOT EXECUTED
1342b8: 0f 83 c9 00 00 00 jae 134387 <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))
1342be: 3b 43 10 cmp 0x10(%ebx),%eax <== NOT EXECUTED
1342c1: 75 0e jne 1342d1 <rtems_rfs_block_map_find+0x49><== NOT EXECUTED
1342c3: 8b 53 18 mov 0x18(%ebx),%edx <== NOT EXECUTED
1342c6: 85 d2 test %edx,%edx <== NOT EXECUTED
1342c8: 74 07 je 1342d1 <rtems_rfs_block_map_find+0x49><== NOT EXECUTED
{
*block = map->bpos.block;
1342ca: 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))
1342cc: e9 9c 00 00 00 jmp 13436d <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)
1342d1: 83 7d d4 05 cmpl $0x5,-0x2c(%ebp) <== NOT EXECUTED
1342d5: 77 0b ja 1342e2 <rtems_rfs_block_map_find+0x5a><== NOT EXECUTED
{
*block = map->blocks[bpos->bno];
1342d7: 8b 44 83 24 mov 0x24(%ebx,%eax,4),%eax <== NOT EXECUTED
1342db: 89 07 mov %eax,(%edi) <== NOT EXECUTED
1342dd: e9 8b 00 00 00 jmp 13436d <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;
1342e2: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
1342e5: 8b 49 30 mov 0x30(%ecx),%ecx <== NOT EXECUTED
1342e8: 89 4d d0 mov %ecx,-0x30(%ebp) <== NOT EXECUTED
1342eb: 31 d2 xor %edx,%edx <== NOT EXECUTED
1342ed: f7 f1 div %ecx <== NOT EXECUTED
1342ef: 89 55 cc mov %edx,-0x34(%ebp) <== NOT EXECUTED
1342f2: 89 45 c4 mov %eax,-0x3c(%ebp) <== NOT EXECUTED
singly = bpos->bno / fs->blocks_per_block;
1342f5: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
if (map->size.count <= fs->block_map_singly_blocks)
1342f8: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED
1342fb: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
1342fe: 3b 41 34 cmp 0x34(%ecx),%eax <== NOT EXECUTED
134301: 77 12 ja 134315 <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,
134303: 51 push %ecx <== NOT EXECUTED
134304: 51 push %ecx <== NOT EXECUTED
134305: 8b 55 c4 mov -0x3c(%ebp),%edx <== NOT EXECUTED
134308: 8b 4c 93 24 mov 0x24(%ebx,%edx,4),%ecx <== NOT EXECUTED
13430c: 8d 53 38 lea 0x38(%ebx),%edx <== NOT EXECUTED
13430f: 57 push %edi <== NOT EXECUTED
134310: ff 75 cc pushl -0x34(%ebp) <== NOT EXECUTED
134313: eb 49 jmp 13435e <rtems_rfs_block_map_find+0xd6><== NOT EXECUTED
}
if (rc == 0)
{
rtems_rfs_block_copy_bpos (&map->bpos, bpos);
map->bpos.block = *block;
134315: 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)
13431a: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED
13431d: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
134320: 3b 51 38 cmp 0x38(%ecx),%edx <== NOT EXECUTED
134323: 73 67 jae 13438c <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;
134325: 8b 45 c4 mov -0x3c(%ebp),%eax <== NOT EXECUTED
134328: 31 d2 xor %edx,%edx <== NOT EXECUTED
13432a: f7 75 d0 divl -0x30(%ebp) <== NOT EXECUTED
13432d: 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,
134330: 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;
134334: 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,
134337: 52 push %edx <== NOT EXECUTED
134338: 52 push %edx <== NOT EXECUTED
134339: 8d 53 44 lea 0x44(%ebx),%edx <== NOT EXECUTED
13433c: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
13433f: 50 push %eax <== NOT EXECUTED
134340: ff 75 d4 pushl -0x2c(%ebp) <== NOT EXECUTED
134343: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
134346: e8 c2 fe ff ff call 13420d <rtems_rfs_block_find_indirect><== NOT EXECUTED
&map->doubly_buffer,
map->blocks[doubly],
singly, &singly);
if (rc == 0)
13434b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13434e: 85 c0 test %eax,%eax <== NOT EXECUTED
134350: 75 3a jne 13438c <rtems_rfs_block_map_find+0x104><== NOT EXECUTED
{
rc = rtems_rfs_block_find_indirect (fs,
134352: 50 push %eax <== NOT EXECUTED
134353: 50 push %eax <== NOT EXECUTED
134354: 8d 53 38 lea 0x38(%ebx),%edx <== NOT EXECUTED
134357: 57 push %edi <== NOT EXECUTED
134358: ff 75 cc pushl -0x34(%ebp) <== NOT EXECUTED
13435b: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED
13435e: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
134361: e8 a7 fe ff ff call 13420d <rtems_rfs_block_find_indirect><== NOT EXECUTED
134366: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
}
}
}
if (rc == 0)
134369: 85 c0 test %eax,%eax <== NOT EXECUTED
13436b: 75 1f jne 13438c <rtems_rfs_block_map_find+0x104><== NOT EXECUTED
{
rtems_rfs_block_copy_bpos (&map->bpos, bpos);
13436d: 8b 06 mov (%esi),%eax <== NOT EXECUTED
13436f: 89 43 10 mov %eax,0x10(%ebx) <== NOT EXECUTED
134372: 8b 46 04 mov 0x4(%esi),%eax <== NOT EXECUTED
134375: 89 43 14 mov %eax,0x14(%ebx) <== NOT EXECUTED
134378: 8b 46 08 mov 0x8(%esi),%eax <== NOT EXECUTED
13437b: 89 43 18 mov %eax,0x18(%ebx) <== NOT EXECUTED
map->bpos.block = *block;
13437e: 8b 07 mov (%edi),%eax <== NOT EXECUTED
134380: 89 43 18 mov %eax,0x18(%ebx) <== NOT EXECUTED
134383: 31 c0 xor %eax,%eax <== NOT EXECUTED
134385: eb 05 jmp 13438c <rtems_rfs_block_map_find+0x104><== NOT EXECUTED
134387: b8 06 00 00 00 mov $0x6,%eax <== NOT EXECUTED
}
return rc;
}
13438c: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13438f: 5b pop %ebx <== NOT EXECUTED
134390: 5e pop %esi <== NOT EXECUTED
134391: 5f pop %edi <== NOT EXECUTED
134392: c9 leave <== NOT EXECUTED
134393: c3 ret <== NOT EXECUTED
00134736 <rtems_rfs_block_map_free_all>:
int
rtems_rfs_block_map_free_all (rtems_rfs_file_system* fs,
rtems_rfs_block_map* map)
{
134736: 55 push %ebp <== NOT EXECUTED
134737: 89 e5 mov %esp,%ebp <== NOT EXECUTED
134739: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13473c: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
return rtems_rfs_block_map_shrink (fs, map, map->size.count);
13473f: ff 70 08 pushl 0x8(%eax) <== NOT EXECUTED
134742: 50 push %eax <== NOT EXECUTED
134743: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
134746: e8 6e fd ff ff call 1344b9 <rtems_rfs_block_map_shrink><== NOT EXECUTED
}
13474b: c9 leave <== NOT EXECUTED
13474c: c3 ret <== NOT EXECUTED
0013482e <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)
{
13482e: 55 push %ebp <== NOT EXECUTED
13482f: 89 e5 mov %esp,%ebp <== NOT EXECUTED
134831: 57 push %edi <== NOT EXECUTED
134832: 56 push %esi <== NOT EXECUTED
134833: 53 push %ebx <== NOT EXECUTED
134834: 83 ec 3c sub $0x3c,%esp <== NOT EXECUTED
134837: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
13483a: 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))
13483d: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
134840: 03 43 08 add 0x8(%ebx),%eax <== NOT EXECUTED
134843: ba 1b 00 00 00 mov $0x1b,%edx <== NOT EXECUTED
134848: 3b 46 38 cmp 0x38(%esi),%eax <== NOT EXECUTED
13484b: 0f 83 6b 02 00 00 jae 134abc <rtems_rfs_block_map_grow+0x28e><== NOT EXECUTED
&map->blocks[singly],
upping);
}
else
{
rc = rtems_rfs_buffer_handle_request (fs, &map->singly_buffer,
134851: 8d 43 38 lea 0x38(%ebx),%eax <== NOT EXECUTED
134854: 89 45 c8 mov %eax,-0x38(%ebp) <== NOT EXECUTED
return rc;
}
}
else
{
rc = rtems_rfs_buffer_handle_request (fs, &map->doubly_buffer,
134857: 8d 53 44 lea 0x44(%ebx),%edx <== NOT EXECUTED
13485a: 89 55 c4 mov %edx,-0x3c(%ebp) <== NOT EXECUTED
13485d: c7 45 cc 00 00 00 00 movl $0x0,-0x34(%ebp) <== NOT EXECUTED
134864: e9 41 02 00 00 jmp 134aaa <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,
134869: 8d 4d e4 lea -0x1c(%ebp),%ecx <== NOT EXECUTED
13486c: 51 push %ecx <== NOT EXECUTED
13486d: 6a 00 push $0x0 <== NOT EXECUTED
13486f: ff 73 20 pushl 0x20(%ebx) <== NOT EXECUTED
134872: 56 push %esi <== NOT EXECUTED
134873: e8 5f 32 00 00 call 137ad7 <rtems_rfs_group_bitmap_alloc><== NOT EXECUTED
false, &block);
if (rc > 0)
134878: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13487b: 85 c0 test %eax,%eax <== NOT EXECUTED
13487d: 0f 8f 37 02 00 00 jg 134aba <rtems_rfs_block_map_grow+0x28c><== NOT EXECUTED
return rc;
if (map->size.count < RTEMS_RFS_INODE_BLOCKS)
134883: 8b 4b 08 mov 0x8(%ebx),%ecx <== NOT EXECUTED
134886: 83 f9 04 cmp $0x4,%ecx <== NOT EXECUTED
134889: 77 0c ja 134897 <rtems_rfs_block_map_grow+0x69><== NOT EXECUTED
map->blocks[map->size.count] = block;
13488b: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
13488e: 89 44 8b 24 mov %eax,0x24(%ebx,%ecx,4) <== NOT EXECUTED
134892: e9 ef 01 00 00 jmp 134a86 <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;
134897: 8b 7e 30 mov 0x30(%esi),%edi <== NOT EXECUTED
13489a: 89 7d d4 mov %edi,-0x2c(%ebp) <== NOT EXECUTED
13489d: 89 c8 mov %ecx,%eax <== NOT EXECUTED
13489f: 31 d2 xor %edx,%edx <== NOT EXECUTED
1348a1: f7 f7 div %edi <== NOT EXECUTED
1348a3: 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)
1348a6: 3b 4e 34 cmp 0x34(%esi),%ecx <== NOT EXECUTED
1348a9: 73 39 jae 1348e4 <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) ||
1348ab: 85 d2 test %edx,%edx <== NOT EXECUTED
1348ad: 74 09 je 1348b8 <rtems_rfs_block_map_grow+0x8a><== NOT EXECUTED
1348af: 83 fa 05 cmp $0x5,%edx <== NOT EXECUTED
1348b2: 75 25 jne 1348d9 <rtems_rfs_block_map_grow+0xab><== NOT EXECUTED
1348b4: 85 c0 test %eax,%eax <== NOT EXECUTED
1348b6: 75 21 jne 1348d9 <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,
1348b8: 57 push %edi <== NOT EXECUTED
1348b9: 57 push %edi <== NOT EXECUTED
1348ba: 31 d2 xor %edx,%edx <== NOT EXECUTED
1348bc: 83 f9 05 cmp $0x5,%ecx <== NOT EXECUTED
1348bf: 0f 94 c2 sete %dl <== NOT EXECUTED
1348c2: 52 push %edx <== NOT EXECUTED
1348c3: 8d 44 83 24 lea 0x24(%ebx,%eax,4),%eax <== NOT EXECUTED
1348c7: 50 push %eax <== NOT EXECUTED
1348c8: 8b 4d c8 mov -0x38(%ebp),%ecx <== NOT EXECUTED
1348cb: 89 da mov %ebx,%edx <== NOT EXECUTED
1348cd: 89 f0 mov %esi,%eax <== NOT EXECUTED
1348cf: e8 79 fe ff ff call 13474d <rtems_rfs_block_map_indirect_alloc><== NOT EXECUTED
1348d4: e9 4a 01 00 00 jmp 134a23 <rtems_rfs_block_map_grow+0x1f5><== NOT EXECUTED
&map->blocks[singly],
upping);
}
else
{
rc = rtems_rfs_buffer_handle_request (fs, &map->singly_buffer,
1348d9: 6a 01 push $0x1 <== NOT EXECUTED
1348db: ff 74 83 24 pushl 0x24(%ebx,%eax,4) <== NOT EXECUTED
1348df: e9 36 01 00 00 jmp 134a1a <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;
1348e4: 31 d2 xor %edx,%edx <== NOT EXECUTED
1348e6: f7 75 d4 divl -0x2c(%ebp) <== NOT EXECUTED
1348e9: 89 d7 mov %edx,%edi <== NOT EXECUTED
1348eb: 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)
1348ee: 83 7d d0 00 cmpl $0x0,-0x30(%ebp) <== NOT EXECUTED
1348f2: 0f 85 ce 00 00 00 jne 1349c6 <rtems_rfs_block_map_grow+0x198><== NOT EXECUTED
{
rc = rtems_rfs_block_map_indirect_alloc (fs, map,
1348f8: 52 push %edx <== NOT EXECUTED
1348f9: 52 push %edx <== NOT EXECUTED
1348fa: 6a 00 push $0x0 <== NOT EXECUTED
1348fc: 8d 4d e0 lea -0x20(%ebp),%ecx <== NOT EXECUTED
1348ff: 51 push %ecx <== NOT EXECUTED
134900: 8b 4d c8 mov -0x38(%ebp),%ecx <== NOT EXECUTED
134903: 89 da mov %ebx,%edx <== NOT EXECUTED
134905: 89 f0 mov %esi,%eax <== NOT EXECUTED
134907: e8 41 fe ff ff call 13474d <rtems_rfs_block_map_indirect_alloc><== NOT EXECUTED
&map->singly_buffer,
&singly_block,
false);
if (rc > 0)
13490c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13490f: 85 c0 test %eax,%eax <== NOT EXECUTED
134911: 0f 8f 13 01 00 00 jg 134a2a <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) ||
134917: 85 ff test %edi,%edi <== NOT EXECUTED
134919: 74 0b je 134926 <rtems_rfs_block_map_grow+0xf8><== NOT EXECUTED
13491b: 83 ff 05 cmp $0x5,%edi <== NOT EXECUTED
13491e: 75 2b jne 13494b <rtems_rfs_block_map_grow+0x11d><== NOT EXECUTED
134920: 83 7d d4 00 cmpl $0x0,-0x2c(%ebp) <== NOT EXECUTED
134924: 75 25 jne 13494b <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,
134926: 50 push %eax <== NOT EXECUTED
134927: 50 push %eax <== NOT EXECUTED
134928: 8b 43 08 mov 0x8(%ebx),%eax <== NOT EXECUTED
13492b: 3b 46 34 cmp 0x34(%esi),%eax <== NOT EXECUTED
13492e: 0f 94 c0 sete %al <== NOT EXECUTED
134931: 0f b6 c0 movzbl %al,%eax <== NOT EXECUTED
134934: 50 push %eax <== NOT EXECUTED
134935: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED
134938: 8d 44 93 24 lea 0x24(%ebx,%edx,4),%eax <== NOT EXECUTED
13493c: 50 push %eax <== NOT EXECUTED
13493d: 8b 4d c4 mov -0x3c(%ebp),%ecx <== NOT EXECUTED
134940: 89 da mov %ebx,%edx <== NOT EXECUTED
134942: 89 f0 mov %esi,%eax <== NOT EXECUTED
134944: e8 04 fe ff ff call 13474d <rtems_rfs_block_map_indirect_alloc><== NOT EXECUTED
134949: eb 12 jmp 13495d <rtems_rfs_block_map_grow+0x12f><== NOT EXECUTED
return rc;
}
}
else
{
rc = rtems_rfs_buffer_handle_request (fs, &map->doubly_buffer,
13494b: 6a 01 push $0x1 <== NOT EXECUTED
13494d: 8b 4d d4 mov -0x2c(%ebp),%ecx <== NOT EXECUTED
134950: ff 74 8b 24 pushl 0x24(%ebx,%ecx,4) <== NOT EXECUTED
134954: ff 75 c4 pushl -0x3c(%ebp) <== NOT EXECUTED
134957: 56 push %esi <== NOT EXECUTED
134958: e8 21 07 00 00 call 13507e <rtems_rfs_buffer_handle_request><== NOT EXECUTED
map->blocks[doubly], true);
if (rc > 0)
13495d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
134960: 85 c0 test %eax,%eax <== NOT EXECUTED
134962: 7e 1d jle 134981 <rtems_rfs_block_map_grow+0x153><== NOT EXECUTED
{
rtems_rfs_group_bitmap_free (fs, false, singly_block);
134964: 57 push %edi <== NOT EXECUTED
134965: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
134968: 6a 00 push $0x0 <== NOT EXECUTED
13496a: 56 push %esi <== NOT EXECUTED
13496b: 89 45 c0 mov %eax,-0x40(%ebp) <== NOT EXECUTED
13496e: e8 fb 30 00 00 call 137a6e <rtems_rfs_group_bitmap_free><== NOT EXECUTED
rtems_rfs_group_bitmap_free (fs, false, block);
134973: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
134976: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
134979: 6a 00 push $0x0 <== NOT EXECUTED
13497b: 56 push %esi <== NOT EXECUTED
13497c: e9 b3 00 00 00 jmp 134a34 <rtems_rfs_block_map_grow+0x206><== NOT EXECUTED
return rc;
}
}
rtems_rfs_block_set_number (&map->doubly_buffer,
134981: 8d 14 bd 00 00 00 00 lea 0x0(,%edi,4),%edx <== NOT EXECUTED
134988: 8b 43 4c mov 0x4c(%ebx),%eax <== NOT EXECUTED
13498b: 8b 40 20 mov 0x20(%eax),%eax <== NOT EXECUTED
13498e: 0f b6 4d e3 movzbl -0x1d(%ebp),%ecx <== NOT EXECUTED
134992: 88 0c b8 mov %cl,(%eax,%edi,4) <== NOT EXECUTED
134995: 8b 43 4c mov 0x4c(%ebx),%eax <== NOT EXECUTED
134998: 8b 40 20 mov 0x20(%eax),%eax <== NOT EXECUTED
13499b: 0f b7 4d e2 movzwl -0x1e(%ebp),%ecx <== NOT EXECUTED
13499f: 88 4c 10 01 mov %cl,0x1(%eax,%edx,1) <== NOT EXECUTED
1349a3: 8b 43 4c mov 0x4c(%ebx),%eax <== NOT EXECUTED
1349a6: 8b 48 20 mov 0x20(%eax),%ecx <== NOT EXECUTED
1349a9: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
1349ac: c1 e8 08 shr $0x8,%eax <== NOT EXECUTED
1349af: 88 44 b9 02 mov %al,0x2(%ecx,%edi,4) <== NOT EXECUTED
1349b3: 8b 43 4c mov 0x4c(%ebx),%eax <== NOT EXECUTED
1349b6: 8b 40 20 mov 0x20(%eax),%eax <== NOT EXECUTED
1349b9: 8b 4d e0 mov -0x20(%ebp),%ecx <== NOT EXECUTED
1349bc: 88 4c 10 03 mov %cl,0x3(%eax,%edx,1) <== NOT EXECUTED
1349c0: c6 43 44 01 movb $0x1,0x44(%ebx) <== NOT EXECUTED
1349c4: eb 7b jmp 134a41 <rtems_rfs_block_map_grow+0x213><== NOT EXECUTED
singly,
singly_block);
}
else
{
rc = rtems_rfs_buffer_handle_request (fs,
1349c6: 6a 01 push $0x1 <== NOT EXECUTED
1349c8: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED
1349cb: ff 74 83 24 pushl 0x24(%ebx,%eax,4) <== NOT EXECUTED
1349cf: ff 75 c4 pushl -0x3c(%ebp) <== NOT EXECUTED
1349d2: 56 push %esi <== NOT EXECUTED
1349d3: e8 a6 06 00 00 call 13507e <rtems_rfs_buffer_handle_request><== NOT EXECUTED
&map->doubly_buffer,
map->blocks[doubly],
true);
if (rc > 0)
1349d8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1349db: 85 c0 test %eax,%eax <== NOT EXECUTED
1349dd: 7f 4b jg 134a2a <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,
1349df: 8b 43 4c mov 0x4c(%ebx),%eax <== NOT EXECUTED
1349e2: 8b 50 20 mov 0x20(%eax),%edx <== NOT EXECUTED
1349e5: 8d 0c bd 00 00 00 00 lea 0x0(,%edi,4),%ecx <== NOT EXECUTED
1349ec: 89 4d d4 mov %ecx,-0x2c(%ebp) <== NOT EXECUTED
1349ef: 0f b6 44 0a 03 movzbl 0x3(%edx,%ecx,1),%eax <== NOT EXECUTED
1349f4: 0f b6 0c ba movzbl (%edx,%edi,4),%ecx <== NOT EXECUTED
1349f8: c1 e1 18 shl $0x18,%ecx <== NOT EXECUTED
1349fb: 09 c8 or %ecx,%eax <== NOT EXECUTED
1349fd: 8b 4d d4 mov -0x2c(%ebp),%ecx <== NOT EXECUTED
134a00: 0f b6 4c 0a 01 movzbl 0x1(%edx,%ecx,1),%ecx <== NOT EXECUTED
134a05: c1 e1 10 shl $0x10,%ecx <== NOT EXECUTED
134a08: 09 c8 or %ecx,%eax <== NOT EXECUTED
134a0a: 0f b6 54 ba 02 movzbl 0x2(%edx,%edi,4),%edx <== NOT EXECUTED
134a0f: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
134a12: 09 d0 or %edx,%eax <== NOT EXECUTED
134a14: 89 45 e0 mov %eax,-0x20(%ebp) <== NOT EXECUTED
singly);
rc = rtems_rfs_buffer_handle_request (fs, &map->singly_buffer,
134a17: 6a 01 push $0x1 <== NOT EXECUTED
134a19: 50 push %eax <== NOT EXECUTED
134a1a: ff 75 c8 pushl -0x38(%ebp) <== NOT EXECUTED
134a1d: 56 push %esi <== NOT EXECUTED
134a1e: e8 5b 06 00 00 call 13507e <rtems_rfs_buffer_handle_request><== NOT EXECUTED
singly_block, true);
if (rc > 0)
134a23: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
134a26: 85 c0 test %eax,%eax <== NOT EXECUTED
134a28: 7e 17 jle 134a41 <rtems_rfs_block_map_grow+0x213><== NOT EXECUTED
{
rtems_rfs_group_bitmap_free (fs, false, block);
134a2a: 53 push %ebx <== NOT EXECUTED
134a2b: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
134a2e: 6a 00 push $0x0 <== NOT EXECUTED
134a30: 56 push %esi <== NOT EXECUTED
134a31: 89 45 c0 mov %eax,-0x40(%ebp) <== NOT EXECUTED
134a34: e8 35 30 00 00 call 137a6e <rtems_rfs_group_bitmap_free><== NOT EXECUTED
return rc;
134a39: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
134a3c: 8b 55 c0 mov -0x40(%ebp),%edx <== NOT EXECUTED
134a3f: eb 7b jmp 134abc <rtems_rfs_block_map_grow+0x28e><== NOT EXECUTED
}
}
}
rtems_rfs_block_set_number (&map->singly_buffer, direct, block);
134a41: 8b 55 d0 mov -0x30(%ebp),%edx <== NOT EXECUTED
134a44: c1 e2 02 shl $0x2,%edx <== NOT EXECUTED
134a47: 8b 43 40 mov 0x40(%ebx),%eax <== NOT EXECUTED
134a4a: 8b 40 20 mov 0x20(%eax),%eax <== NOT EXECUTED
134a4d: 0f b6 4d e7 movzbl -0x19(%ebp),%ecx <== NOT EXECUTED
134a51: 8b 7d d0 mov -0x30(%ebp),%edi <== NOT EXECUTED
134a54: 88 0c b8 mov %cl,(%eax,%edi,4) <== NOT EXECUTED
134a57: 8b 43 40 mov 0x40(%ebx),%eax <== NOT EXECUTED
134a5a: 8b 40 20 mov 0x20(%eax),%eax <== NOT EXECUTED
134a5d: 0f b7 4d e6 movzwl -0x1a(%ebp),%ecx <== NOT EXECUTED
134a61: 88 4c 10 01 mov %cl,0x1(%eax,%edx,1) <== NOT EXECUTED
134a65: 8b 43 40 mov 0x40(%ebx),%eax <== NOT EXECUTED
134a68: 8b 48 20 mov 0x20(%eax),%ecx <== NOT EXECUTED
134a6b: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
134a6e: c1 e8 08 shr $0x8,%eax <== NOT EXECUTED
134a71: 88 44 b9 02 mov %al,0x2(%ecx,%edi,4) <== NOT EXECUTED
134a75: 8b 43 40 mov 0x40(%ebx),%eax <== NOT EXECUTED
134a78: 8b 40 20 mov 0x20(%eax),%eax <== NOT EXECUTED
134a7b: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED
134a7e: 88 4c 10 03 mov %cl,0x3(%eax,%edx,1) <== NOT EXECUTED
134a82: c6 43 38 01 movb $0x1,0x38(%ebx) <== NOT EXECUTED
}
map->size.count++;
134a86: ff 43 08 incl 0x8(%ebx) <== NOT EXECUTED
map->size.offset = 0;
134a89: c7 43 0c 00 00 00 00 movl $0x0,0xc(%ebx) <== NOT EXECUTED
if (b == 0)
134a90: 83 7d cc 00 cmpl $0x0,-0x34(%ebp) <== NOT EXECUTED
134a94: 75 08 jne 134a9e <rtems_rfs_block_map_grow+0x270><== NOT EXECUTED
*new_block = block;
134a96: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
134a99: 8b 55 14 mov 0x14(%ebp),%edx <== NOT EXECUTED
134a9c: 89 02 mov %eax,(%edx) <== NOT EXECUTED
map->last_data_block = block;
134a9e: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
134aa1: 89 43 20 mov %eax,0x20(%ebx) <== NOT EXECUTED
map->dirty = true;
134aa4: 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++)
134aa7: ff 45 cc incl -0x34(%ebp) <== NOT EXECUTED
134aaa: 8b 4d 10 mov 0x10(%ebp),%ecx <== NOT EXECUTED
134aad: 39 4d cc cmp %ecx,-0x34(%ebp) <== NOT EXECUTED
134ab0: 0f 82 b3 fd ff ff jb 134869 <rtems_rfs_block_map_grow+0x3b><== NOT EXECUTED
134ab6: 31 d2 xor %edx,%edx <== NOT EXECUTED
134ab8: eb 02 jmp 134abc <rtems_rfs_block_map_grow+0x28e><== NOT EXECUTED
134aba: 89 c2 mov %eax,%edx <== NOT EXECUTED
map->last_data_block = block;
map->dirty = true;
}
return 0;
}
134abc: 89 d0 mov %edx,%eax <== NOT EXECUTED
134abe: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
134ac1: 5b pop %ebx <== NOT EXECUTED
134ac2: 5e pop %esi <== NOT EXECUTED
134ac3: 5f pop %edi <== NOT EXECUTED
134ac4: c9 leave <== NOT EXECUTED
134ac5: c3 ret <== NOT EXECUTED
0013474d <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)
{
13474d: 55 push %ebp <== NOT EXECUTED
13474e: 89 e5 mov %esp,%ebp <== NOT EXECUTED
134750: 57 push %edi <== NOT EXECUTED
134751: 56 push %esi <== NOT EXECUTED
134752: 53 push %ebx <== NOT EXECUTED
134753: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED
134756: 89 c7 mov %eax,%edi <== NOT EXECUTED
134758: 89 d6 mov %edx,%esi <== NOT EXECUTED
13475a: 89 cb mov %ecx,%ebx <== NOT EXECUTED
13475c: 8a 45 0c mov 0xc(%ebp),%al <== NOT EXECUTED
13475f: 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);
134762: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
134765: 50 push %eax <== NOT EXECUTED
134766: 6a 00 push $0x0 <== NOT EXECUTED
134768: ff 72 1c pushl 0x1c(%edx) <== NOT EXECUTED
13476b: 57 push %edi <== NOT EXECUTED
13476c: e8 66 33 00 00 call 137ad7 <rtems_rfs_group_bitmap_alloc><== NOT EXECUTED
134771: 89 c2 mov %eax,%edx <== NOT EXECUTED
if (rc > 0)
134773: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
134776: 85 c0 test %eax,%eax <== NOT EXECUTED
134778: 0f 8f a6 00 00 00 jg 134824 <rtems_rfs_block_map_indirect_alloc+0xd7><== NOT EXECUTED
return rc;
rc = rtems_rfs_buffer_handle_request (fs, buffer, new_block, false);
13477e: 6a 00 push $0x0 <== NOT EXECUTED
134780: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
134783: 53 push %ebx <== NOT EXECUTED
134784: 57 push %edi <== NOT EXECUTED
134785: e8 f4 08 00 00 call 13507e <rtems_rfs_buffer_handle_request><== NOT EXECUTED
if (rc > 0)
13478a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13478d: 85 c0 test %eax,%eax <== NOT EXECUTED
13478f: 7e 17 jle 1347a8 <rtems_rfs_block_map_indirect_alloc+0x5b><== NOT EXECUTED
{
rtems_rfs_group_bitmap_free (fs, false, new_block);
134791: 51 push %ecx <== NOT EXECUTED
134792: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
134795: 6a 00 push $0x0 <== NOT EXECUTED
134797: 57 push %edi <== NOT EXECUTED
134798: 89 45 d0 mov %eax,-0x30(%ebp) <== NOT EXECUTED
13479b: e8 ce 32 00 00 call 137a6e <rtems_rfs_group_bitmap_free><== NOT EXECUTED
return rc;
1347a0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1347a3: 8b 55 d0 mov -0x30(%ebp),%edx <== NOT EXECUTED
1347a6: eb 7c jmp 134824 <rtems_rfs_block_map_indirect_alloc+0xd7><== NOT EXECUTED
}
memset (rtems_rfs_buffer_data (buffer), 0xff, rtems_rfs_fs_block_size (fs));
1347a8: 8b 4f 08 mov 0x8(%edi),%ecx <== NOT EXECUTED
1347ab: 8b 43 08 mov 0x8(%ebx),%eax <== NOT EXECUTED
1347ae: 8b 50 20 mov 0x20(%eax),%edx <== NOT EXECUTED
1347b1: b0 ff mov $0xff,%al <== NOT EXECUTED
1347b3: 89 d7 mov %edx,%edi <== NOT EXECUTED
1347b5: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED
if (upping)
1347b7: 80 7d d7 00 cmpb $0x0,-0x29(%ebp) <== NOT EXECUTED
1347bb: 74 57 je 134814 <rtems_rfs_block_map_indirect_alloc+0xc7><== NOT EXECUTED
1347bd: 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]);
1347bf: 8b 53 08 mov 0x8(%ebx),%edx <== NOT EXECUTED
1347c2: 8b 52 20 mov 0x20(%edx),%edx <== NOT EXECUTED
1347c5: 0f b6 4c 06 27 movzbl 0x27(%esi,%eax,1),%ecx <== NOT EXECUTED
1347ca: 88 0c 02 mov %cl,(%edx,%eax,1) <== NOT EXECUTED
1347cd: 8b 53 08 mov 0x8(%ebx),%edx <== NOT EXECUTED
1347d0: 8b 52 20 mov 0x20(%edx),%edx <== NOT EXECUTED
1347d3: 0f b7 4c 06 26 movzwl 0x26(%esi,%eax,1),%ecx <== NOT EXECUTED
1347d8: 88 4c 02 01 mov %cl,0x1(%edx,%eax,1) <== NOT EXECUTED
1347dc: 8b 53 08 mov 0x8(%ebx),%edx <== NOT EXECUTED
1347df: 8b 4a 20 mov 0x20(%edx),%ecx <== NOT EXECUTED
1347e2: 8b 54 06 24 mov 0x24(%esi,%eax,1),%edx <== NOT EXECUTED
1347e6: c1 ea 08 shr $0x8,%edx <== NOT EXECUTED
1347e9: 88 54 01 02 mov %dl,0x2(%ecx,%eax,1) <== NOT EXECUTED
1347ed: 8b 53 08 mov 0x8(%ebx),%edx <== NOT EXECUTED
1347f0: 8b 52 20 mov 0x20(%edx),%edx <== NOT EXECUTED
1347f3: 8b 4c 06 24 mov 0x24(%esi,%eax,1),%ecx <== NOT EXECUTED
1347f7: 88 4c 02 03 mov %cl,0x3(%edx,%eax,1) <== NOT EXECUTED
1347fb: c6 03 01 movb $0x1,(%ebx) <== NOT EXECUTED
1347fe: 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++)
134801: 83 f8 14 cmp $0x14,%eax <== NOT EXECUTED
134804: 75 b9 jne 1347bf <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));
134806: 8d 56 24 lea 0x24(%esi),%edx <== NOT EXECUTED
134809: b9 05 00 00 00 mov $0x5,%ecx <== NOT EXECUTED
13480e: 30 c0 xor %al,%al <== NOT EXECUTED
134810: 89 d7 mov %edx,%edi <== NOT EXECUTED
134812: f3 ab rep stos %eax,%es:(%edi) <== NOT EXECUTED
}
rtems_rfs_buffer_mark_dirty (buffer);
134814: c6 03 01 movb $0x1,(%ebx) <== NOT EXECUTED
*block = new_block;
134817: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
13481a: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
13481d: 89 02 mov %eax,(%edx) <== NOT EXECUTED
map->last_map_block = new_block;
13481f: 89 46 1c mov %eax,0x1c(%esi) <== NOT EXECUTED
134822: 31 d2 xor %edx,%edx <== NOT EXECUTED
return 0;
}
134824: 89 d0 mov %edx,%eax <== NOT EXECUTED
134826: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
134829: 5b pop %ebx <== NOT EXECUTED
13482a: 5e pop %esi <== NOT EXECUTED
13482b: 5f pop %edi <== NOT EXECUTED
13482c: c9 leave <== NOT EXECUTED
13482d: c3 ret <== NOT EXECUTED
00134428 <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)
{
134428: 55 push %ebp <== NOT EXECUTED
134429: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13442b: 57 push %edi <== NOT EXECUTED
13442c: 56 push %esi <== NOT EXECUTED
13442d: 53 push %ebx <== NOT EXECUTED
13442e: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
134431: 89 d3 mov %edx,%ebx <== NOT EXECUTED
134433: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
134436: 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) ||
134439: 85 f6 test %esi,%esi <== NOT EXECUTED
13443b: 74 0d je 13444a <rtems_rfs_block_map_indirect_shrink+0x22><== NOT EXECUTED
13443d: 83 fe 05 cmp $0x5,%esi <== NOT EXECUTED
134440: 75 04 jne 134446 <rtems_rfs_block_map_indirect_shrink+0x1e><== NOT EXECUTED
134442: 85 d2 test %edx,%edx <== NOT EXECUTED
134444: 74 04 je 13444a <rtems_rfs_block_map_indirect_shrink+0x22><== NOT EXECUTED
134446: 31 c0 xor %eax,%eax <== NOT EXECUTED
134448: eb 67 jmp 1344b1 <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];
13444a: 8b 7c 93 24 mov 0x24(%ebx,%edx,4),%edi <== NOT EXECUTED
13444e: 89 7d e4 mov %edi,-0x1c(%ebp) <== NOT EXECUTED
if ((indirect == 0) && (index == RTEMS_RFS_INODE_BLOCKS))
134451: 83 fe 05 cmp $0x5,%esi <== NOT EXECUTED
134454: 75 3a jne 134490 <rtems_rfs_block_map_indirect_shrink+0x68><== NOT EXECUTED
134456: 85 d2 test %edx,%edx <== NOT EXECUTED
134458: 75 36 jne 134490 <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);
13445a: 8b 51 08 mov 0x8(%ecx),%edx <== NOT EXECUTED
13445d: 8b 72 20 mov 0x20(%edx),%esi <== NOT EXECUTED
134460: 31 c9 xor %ecx,%ecx <== NOT EXECUTED
134462: 0f b6 14 8e movzbl (%esi,%ecx,4),%edx <== NOT EXECUTED
134466: c1 e2 18 shl $0x18,%edx <== NOT EXECUTED
134469: 0f b6 7c 8e 01 movzbl 0x1(%esi,%ecx,4),%edi <== NOT EXECUTED
13446e: c1 e7 10 shl $0x10,%edi <== NOT EXECUTED
134471: 09 fa or %edi,%edx <== NOT EXECUTED
134473: 0f b6 7c 8e 03 movzbl 0x3(%esi,%ecx,4),%edi <== NOT EXECUTED
134478: 09 fa or %edi,%edx <== NOT EXECUTED
13447a: 0f b6 7c 8e 02 movzbl 0x2(%esi,%ecx,4),%edi <== NOT EXECUTED
13447f: c1 e7 08 shl $0x8,%edi <== NOT EXECUTED
134482: 09 fa or %edi,%edx <== NOT EXECUTED
134484: 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++)
134488: 41 inc %ecx <== NOT EXECUTED
134489: 83 f9 05 cmp $0x5,%ecx <== NOT EXECUTED
13448c: 75 d4 jne 134462 <rtems_rfs_block_map_indirect_shrink+0x3a><== NOT EXECUTED
13448e: eb 08 jmp 134498 <rtems_rfs_block_map_indirect_shrink+0x70><== NOT EXECUTED
else
{
/*
* One less singly indirect block in the inode.
*/
map->blocks[indirect] = 0;
134490: c7 44 93 24 00 00 00 movl $0x0,0x24(%ebx,%edx,4) <== NOT EXECUTED
134497: 00
}
rc = rtems_rfs_group_bitmap_free (fs, false, block_to_free);
134498: 56 push %esi <== NOT EXECUTED
134499: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
13449c: 6a 00 push $0x0 <== NOT EXECUTED
13449e: 50 push %eax <== NOT EXECUTED
13449f: e8 ca 35 00 00 call 137a6e <rtems_rfs_group_bitmap_free><== NOT EXECUTED
if (rc > 0)
1344a4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1344a7: 85 c0 test %eax,%eax <== NOT EXECUTED
1344a9: 7f 06 jg 1344b1 <rtems_rfs_block_map_indirect_shrink+0x89><== NOT EXECUTED
return rc;
map->last_map_block = block_to_free;
1344ab: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
1344ae: 89 53 1c mov %edx,0x1c(%ebx) <== NOT EXECUTED
}
return rc;
}
1344b1: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1344b4: 5b pop %ebx <== NOT EXECUTED
1344b5: 5e pop %esi <== NOT EXECUTED
1344b6: 5f pop %edi <== NOT EXECUTED
1344b7: c9 leave <== NOT EXECUTED
1344b8: c3 ret <== NOT EXECUTED
00134394 <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)
{
134394: 55 push %ebp <== NOT EXECUTED
134395: 89 e5 mov %esp,%ebp <== NOT EXECUTED
134397: 83 ec 18 sub $0x18,%esp <== NOT EXECUTED
13439a: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
rtems_rfs_block_pos bpos;
bpos.bno = map->bpos.bno + 1;
13439d: 8b 50 10 mov 0x10(%eax),%edx <== NOT EXECUTED
1343a0: 42 inc %edx <== NOT EXECUTED
1343a1: 89 55 ec mov %edx,-0x14(%ebp) <== NOT EXECUTED
bpos.boff = 0;
1343a4: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) <== NOT EXECUTED
bpos.block = 0;
1343ab: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) <== NOT EXECUTED
return rtems_rfs_block_map_find (fs, map, &bpos, block);
1343b2: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
1343b5: 8d 55 ec lea -0x14(%ebp),%edx <== NOT EXECUTED
1343b8: 52 push %edx <== NOT EXECUTED
1343b9: 50 push %eax <== NOT EXECUTED
1343ba: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
1343bd: e8 c6 fe ff ff call 134288 <rtems_rfs_block_map_find><== NOT EXECUTED
}
1343c2: c9 leave <== NOT EXECUTED
1343c3: c3 ret <== NOT EXECUTED
00134c69 <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)
{
134c69: 55 push %ebp <== NOT EXECUTED
134c6a: 89 e5 mov %esp,%ebp <== NOT EXECUTED
134c6c: 57 push %edi <== NOT EXECUTED
134c6d: 56 push %esi <== NOT EXECUTED
134c6e: 53 push %ebx <== NOT EXECUTED
134c6f: 83 ec 24 sub $0x24,%esp <== NOT EXECUTED
134c72: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
134c75: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
134c78: 8b 75 0c mov 0xc(%ebp),%esi <== NOT EXECUTED
134c7b: 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;
134c7e: c6 03 00 movb $0x0,(%ebx) <== NOT EXECUTED
map->inode = NULL;
134c81: 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;
134c88: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx) <== NOT EXECUTED
size->offset = 0;
134c8f: 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;
134c96: c7 43 10 00 00 00 00 movl $0x0,0x10(%ebx) <== NOT EXECUTED
bpos->boff = 0;
134c9d: c7 43 14 00 00 00 00 movl $0x0,0x14(%ebx) <== NOT EXECUTED
bpos->block = 0;
134ca4: 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;
134cab: c6 43 38 00 movb $0x0,0x38(%ebx) <== NOT EXECUTED
handle->bnum = 0;
134caf: c7 43 3c 00 00 00 00 movl $0x0,0x3c(%ebx) <== NOT EXECUTED
handle->buffer = NULL;
134cb6: 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;
134cbd: c6 43 44 00 movb $0x0,0x44(%ebx) <== NOT EXECUTED
handle->bnum = 0;
134cc1: c7 43 48 00 00 00 00 movl $0x0,0x48(%ebx) <== NOT EXECUTED
handle->buffer = NULL;
134cc8: 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);
134ccf: 56 push %esi <== NOT EXECUTED
134cd0: 50 push %eax <== NOT EXECUTED
134cd1: e8 c6 33 00 00 call 13809c <rtems_rfs_inode_load> <== NOT EXECUTED
134cd6: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc > 0)
134cd8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
134cdb: 85 c0 test %eax,%eax <== NOT EXECUTED
134cdd: 7e 4d jle 134d2c <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);
134cdf: 50 push %eax <== NOT EXECUTED
134ce0: 50 push %eax <== NOT EXECUTED
134ce1: 8d 43 38 lea 0x38(%ebx),%eax <== NOT EXECUTED
134ce4: 50 push %eax <== NOT EXECUTED
134ce5: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
134ce8: e8 9a 02 00 00 call 134f87 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
handle->dirty = false;
134ced: c6 43 38 00 movb $0x0,0x38(%ebx) <== NOT EXECUTED
handle->bnum = 0;
134cf1: c7 43 3c 00 00 00 00 movl $0x0,0x3c(%ebx) <== NOT EXECUTED
handle->buffer = NULL;
134cf8: 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);
134cff: 59 pop %ecx <== NOT EXECUTED
134d00: 5e pop %esi <== NOT EXECUTED
134d01: 8d 43 44 lea 0x44(%ebx),%eax <== NOT EXECUTED
134d04: 50 push %eax <== NOT EXECUTED
134d05: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
134d08: e8 7a 02 00 00 call 134f87 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
handle->dirty = false;
134d0d: c6 43 44 00 movb $0x0,0x44(%ebx) <== NOT EXECUTED
handle->bnum = 0;
134d11: c7 43 48 00 00 00 00 movl $0x0,0x48(%ebx) <== NOT EXECUTED
handle->buffer = NULL;
134d18: 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;
134d1f: 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;
}
134d22: 89 f8 mov %edi,%eax <== NOT EXECUTED
134d24: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
134d27: 5b pop %ebx <== NOT EXECUTED
134d28: 5e pop %esi <== NOT EXECUTED
134d29: 5f pop %edi <== NOT EXECUTED
134d2a: c9 leave <== NOT EXECUTED
134d2b: c3 ret <== NOT EXECUTED
/*
* Extract the block and block count data from the inode into the targets
* byte order.
*/
map->inode = inode;
134d2c: 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]);
134d2f: 8b 4e 0c mov 0xc(%esi),%ecx <== NOT EXECUTED
134d32: 83 c1 1c add $0x1c,%ecx <== NOT EXECUTED
134d35: 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);
134d37: 0f b6 04 91 movzbl (%ecx,%edx,4),%eax <== NOT EXECUTED
134d3b: c1 e0 18 shl $0x18,%eax <== NOT EXECUTED
134d3e: 0f b6 7c 91 01 movzbl 0x1(%ecx,%edx,4),%edi <== NOT EXECUTED
134d43: c1 e7 10 shl $0x10,%edi <== NOT EXECUTED
134d46: 09 f8 or %edi,%eax <== NOT EXECUTED
134d48: 0f b6 7c 91 03 movzbl 0x3(%ecx,%edx,4),%edi <== NOT EXECUTED
134d4d: 09 f8 or %edi,%eax <== NOT EXECUTED
134d4f: 0f b6 7c 91 02 movzbl 0x2(%ecx,%edx,4),%edi <== NOT EXECUTED
134d54: c1 e7 08 shl $0x8,%edi <== NOT EXECUTED
134d57: 09 f8 or %edi,%eax <== NOT EXECUTED
134d59: 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++)
134d5d: 42 inc %edx <== NOT EXECUTED
134d5e: 83 fa 05 cmp $0x5,%edx <== NOT EXECUTED
134d61: 75 d4 jne 134d37 <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);
134d63: 8b 46 0c mov 0xc(%esi),%eax <== NOT EXECUTED
134d66: 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);
134d69: 0f b6 51 03 movzbl 0x3(%ecx),%edx <== NOT EXECUTED
134d6d: 0f b6 78 0c movzbl 0xc(%eax),%edi <== NOT EXECUTED
134d71: c1 e7 18 shl $0x18,%edi <== NOT EXECUTED
134d74: 09 fa or %edi,%edx <== NOT EXECUTED
134d76: 0f b6 79 01 movzbl 0x1(%ecx),%edi <== NOT EXECUTED
134d7a: c1 e7 10 shl $0x10,%edi <== NOT EXECUTED
134d7d: 09 fa or %edi,%edx <== NOT EXECUTED
134d7f: 0f b6 49 02 movzbl 0x2(%ecx),%ecx <== NOT EXECUTED
134d83: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
134d86: 09 ca or %ecx,%edx <== NOT EXECUTED
134d88: 89 53 08 mov %edx,0x8(%ebx) <== NOT EXECUTED
map->size.offset = rtems_rfs_inode_get_block_offset (inode);
134d8b: 0f b6 48 0a movzbl 0xa(%eax),%ecx <== NOT EXECUTED
134d8f: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
134d92: 0f b6 50 0b movzbl 0xb(%eax),%edx <== NOT EXECUTED
134d96: 09 ca or %ecx,%edx <== NOT EXECUTED
134d98: 0f b7 d2 movzwl %dx,%edx <== NOT EXECUTED
134d9b: 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);
134d9e: 8d 48 30 lea 0x30(%eax),%ecx <== NOT EXECUTED
map->last_map_block = rtems_rfs_inode_get_last_map_block (inode);
134da1: 0f b6 51 03 movzbl 0x3(%ecx),%edx <== NOT EXECUTED
134da5: 0f b6 78 30 movzbl 0x30(%eax),%edi <== NOT EXECUTED
134da9: c1 e7 18 shl $0x18,%edi <== NOT EXECUTED
134dac: 09 fa or %edi,%edx <== NOT EXECUTED
134dae: 0f b6 79 01 movzbl 0x1(%ecx),%edi <== NOT EXECUTED
134db2: c1 e7 10 shl $0x10,%edi <== NOT EXECUTED
134db5: 09 fa or %edi,%edx <== NOT EXECUTED
134db7: 0f b6 49 02 movzbl 0x2(%ecx),%ecx <== NOT EXECUTED
134dbb: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
134dbe: 09 ca or %ecx,%edx <== NOT EXECUTED
134dc0: 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);
134dc3: 8d 48 34 lea 0x34(%eax),%ecx <== NOT EXECUTED
map->last_data_block = rtems_rfs_inode_get_last_data_block (inode);
134dc6: 0f b6 51 03 movzbl 0x3(%ecx),%edx <== NOT EXECUTED
134dca: 0f b6 40 34 movzbl 0x34(%eax),%eax <== NOT EXECUTED
134dce: c1 e0 18 shl $0x18,%eax <== NOT EXECUTED
134dd1: 09 c2 or %eax,%edx <== NOT EXECUTED
134dd3: 0f b6 41 01 movzbl 0x1(%ecx),%eax <== NOT EXECUTED
134dd7: c1 e0 10 shl $0x10,%eax <== NOT EXECUTED
134dda: 09 c2 or %eax,%edx <== NOT EXECUTED
134ddc: 0f b6 41 02 movzbl 0x2(%ecx),%eax <== NOT EXECUTED
134de0: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
134de3: 09 c2 or %eax,%edx <== NOT EXECUTED
134de5: 89 53 20 mov %edx,0x20(%ebx) <== NOT EXECUTED
rc = rtems_rfs_inode_unload (fs, inode, false);
134de8: c7 45 10 00 00 00 00 movl $0x0,0x10(%ebp) <== NOT EXECUTED
134def: 89 75 0c mov %esi,0xc(%ebp) <== NOT EXECUTED
134df2: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
134df5: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED
return rc;
}
134df8: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
134dfb: 5b pop %ebx <== NOT EXECUTED
134dfc: 5e pop %esi <== NOT EXECUTED
134dfd: 5f pop %edi <== NOT EXECUTED
134dfe: 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);
134dff: e9 dc 31 00 00 jmp 137fe0 <rtems_rfs_inode_unload><== NOT EXECUTED
001343c4 <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)
{
1343c4: 55 push %ebp <== NOT EXECUTED
1343c5: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1343c7: 57 push %edi <== NOT EXECUTED
1343c8: 56 push %esi <== NOT EXECUTED
1343c9: 53 push %ebx <== NOT EXECUTED
1343ca: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED
1343cd: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
1343d0: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
1343d3: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
1343d6: 8b 55 14 mov 0x14(%ebp),%edx <== NOT EXECUTED
rtems_rfs_block_pos bpos;
rtems_rfs_block_copy_bpos (&bpos, &map->bpos);
1343d9: 8b 4b 10 mov 0x10(%ebx),%ecx <== NOT EXECUTED
1343dc: 89 4d dc mov %ecx,-0x24(%ebp) <== NOT EXECUTED
1343df: 8b 7b 14 mov 0x14(%ebx),%edi <== NOT EXECUTED
1343e2: 89 7d e0 mov %edi,-0x20(%ebp) <== NOT EXECUTED
1343e5: 8b 7b 18 mov 0x18(%ebx),%edi <== NOT EXECUTED
1343e8: 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,
1343eb: 8d 7d dc lea -0x24(%ebp),%edi <== NOT EXECUTED
1343ee: 57 push %edi <== NOT EXECUTED
1343ef: 0f af 4e 08 imul 0x8(%esi),%ecx <== NOT EXECUTED
1343f3: 03 4b 14 add 0x14(%ebx),%ecx <== NOT EXECUTED
1343f6: 89 4d d0 mov %ecx,-0x30(%ebp) <== NOT EXECUTED
1343f9: c7 45 d4 00 00 00 00 movl $0x0,-0x2c(%ebp) <== NOT EXECUTED
134400: 03 45 d0 add -0x30(%ebp),%eax <== NOT EXECUTED
134403: 13 55 d4 adc -0x2c(%ebp),%edx <== NOT EXECUTED
134406: 52 push %edx <== NOT EXECUTED
134407: 50 push %eax <== NOT EXECUTED
134408: 56 push %esi <== NOT EXECUTED
134409: e8 fa fc ff ff call 134108 <rtems_rfs_block_get_bpos><== NOT EXECUTED
rtems_rfs_block_get_pos (fs, bpos) + offset,
bpos);
bpos->block = 0;
13440e: 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);
134415: ff 75 18 pushl 0x18(%ebp) <== NOT EXECUTED
134418: 57 push %edi <== NOT EXECUTED
134419: 53 push %ebx <== NOT EXECUTED
13441a: 56 push %esi <== NOT EXECUTED
13441b: e8 68 fe ff ff call 134288 <rtems_rfs_block_map_find><== NOT EXECUTED
}
134420: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
134423: 5b pop %ebx <== NOT EXECUTED
134424: 5e pop %esi <== NOT EXECUTED
134425: 5f pop %edi <== NOT EXECUTED
134426: c9 leave <== NOT EXECUTED
134427: c3 ret <== NOT EXECUTED
001344b9 <rtems_rfs_block_map_shrink>:
int
rtems_rfs_block_map_shrink (rtems_rfs_file_system* fs,
rtems_rfs_block_map* map,
size_t blocks)
{
1344b9: 55 push %ebp <== NOT EXECUTED
1344ba: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1344bc: 57 push %edi <== NOT EXECUTED
1344bd: 56 push %esi <== NOT EXECUTED
1344be: 53 push %ebx <== NOT EXECUTED
1344bf: 83 ec 4c sub $0x4c,%esp <== NOT EXECUTED
1344c2: 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)
1344c5: 8b 43 08 mov 0x8(%ebx),%eax <== NOT EXECUTED
1344c8: 85 c0 test %eax,%eax <== NOT EXECUTED
1344ca: 0f 84 5c 02 00 00 je 13472c <rtems_rfs_block_map_shrink+0x273><== NOT EXECUTED
1344d0: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
1344d3: 89 55 dc mov %edx,-0x24(%ebp) <== NOT EXECUTED
1344d6: 39 c2 cmp %eax,%edx <== NOT EXECUTED
1344d8: 76 03 jbe 1344dd <rtems_rfs_block_map_shrink+0x24><== NOT EXECUTED
1344da: 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,
1344dd: 8d 4b 38 lea 0x38(%ebx),%ecx <== NOT EXECUTED
1344e0: 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,
1344e3: 8d 43 44 lea 0x44(%ebx),%eax <== NOT EXECUTED
1344e6: 89 45 d0 mov %eax,-0x30(%ebp) <== NOT EXECUTED
1344e9: e9 e4 01 00 00 jmp 1346d2 <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;
1344ee: 8b 43 08 mov 0x8(%ebx),%eax <== NOT EXECUTED
1344f1: 8d 48 ff lea -0x1(%eax),%ecx <== NOT EXECUTED
if (block < RTEMS_RFS_INODE_BLOCKS)
1344f4: 83 f9 04 cmp $0x4,%ecx <== NOT EXECUTED
1344f7: 77 14 ja 13450d <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];
1344f9: 83 c0 07 add $0x7,%eax <== NOT EXECUTED
1344fc: 8b 74 83 04 mov 0x4(%ebx,%eax,4),%esi <== NOT EXECUTED
map->blocks[block] = 0;
134500: c7 44 83 04 00 00 00 movl $0x0,0x4(%ebx,%eax,4) <== NOT EXECUTED
134507: 00
134508: e9 9f 01 00 00 jmp 1346ac <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;
13450d: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
134510: 8b 52 30 mov 0x30(%edx),%edx <== NOT EXECUTED
134513: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED
134516: 89 c8 mov %ecx,%eax <== NOT EXECUTED
134518: 31 d2 xor %edx,%edx <== NOT EXECUTED
13451a: f7 75 e4 divl -0x1c(%ebp) <== NOT EXECUTED
13451d: 89 d7 mov %edx,%edi <== NOT EXECUTED
13451f: 89 c6 mov %eax,%esi <== NOT EXECUTED
singly = block / fs->blocks_per_block;
if (block < fs->block_map_singly_blocks)
134521: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
134524: 3b 48 34 cmp 0x34(%eax),%ecx <== NOT EXECUTED
134527: 0f 83 81 00 00 00 jae 1345ae <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,
13452d: 6a 01 push $0x1 <== NOT EXECUTED
13452f: ff 74 b3 24 pushl 0x24(%ebx,%esi,4) <== NOT EXECUTED
134533: ff 75 d4 pushl -0x2c(%ebp) <== NOT EXECUTED
134536: 50 push %eax <== NOT EXECUTED
134537: e8 42 0b 00 00 call 13507e <rtems_rfs_buffer_handle_request><== NOT EXECUTED
map->blocks[singly], true);
if (rc > 0)
13453c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13453f: 85 c0 test %eax,%eax <== NOT EXECUTED
134541: 0f 8f e7 01 00 00 jg 13472e <rtems_rfs_block_map_shrink+0x275><== NOT EXECUTED
return rc;
block_to_free = rtems_rfs_block_get_number (&map->singly_buffer,
134547: 8b 43 40 mov 0x40(%ebx),%eax <== NOT EXECUTED
13454a: 8b 40 20 mov 0x20(%eax),%eax <== NOT EXECUTED
13454d: 8d 14 bd 00 00 00 00 lea 0x0(,%edi,4),%edx <== NOT EXECUTED
134554: 8a 0c b8 mov (%eax,%edi,4),%cl <== NOT EXECUTED
134557: 88 4d b8 mov %cl,-0x48(%ebp) <== NOT EXECUTED
13455a: 8a 4c 10 01 mov 0x1(%eax,%edx,1),%cl <== NOT EXECUTED
13455e: 88 4d d8 mov %cl,-0x28(%ebp) <== NOT EXECUTED
134561: 8a 4c b8 02 mov 0x2(%eax,%edi,4),%cl <== NOT EXECUTED
134565: 88 4d e0 mov %cl,-0x20(%ebp) <== NOT EXECUTED
134568: 8a 44 10 03 mov 0x3(%eax,%edx,1),%al <== NOT EXECUTED
13456c: 88 45 e4 mov %al,-0x1c(%ebp) <== NOT EXECUTED
direct);
rc = rtems_rfs_block_map_indirect_shrink (fs, map, &map->singly_buffer,
13456f: 50 push %eax <== NOT EXECUTED
134570: 50 push %eax <== NOT EXECUTED
134571: 57 push %edi <== NOT EXECUTED
134572: 56 push %esi <== NOT EXECUTED
134573: 8b 4d d4 mov -0x2c(%ebp),%ecx <== NOT EXECUTED
134576: 89 da mov %ebx,%edx <== NOT EXECUTED
134578: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
13457b: e8 a8 fe ff ff call 134428 <rtems_rfs_block_map_indirect_shrink><== NOT EXECUTED
singly, direct);
if (rc)
134580: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
134583: 85 c0 test %eax,%eax <== NOT EXECUTED
134585: 0f 85 a3 01 00 00 jne 13472e <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,
13458b: 0f b6 75 e4 movzbl -0x1c(%ebp),%esi <== NOT EXECUTED
13458f: 8a 45 b8 mov -0x48(%ebp),%al <== NOT EXECUTED
134592: c1 e0 18 shl $0x18,%eax <== NOT EXECUTED
134595: 09 c6 or %eax,%esi <== NOT EXECUTED
134597: 0f b6 45 d8 movzbl -0x28(%ebp),%eax <== NOT EXECUTED
13459b: c1 e0 10 shl $0x10,%eax <== NOT EXECUTED
13459e: 09 c6 or %eax,%esi <== NOT EXECUTED
1345a0: 0f b6 45 e0 movzbl -0x20(%ebp),%eax <== NOT EXECUTED
1345a4: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
1345a7: 09 c6 or %eax,%esi <== NOT EXECUTED
1345a9: e9 fe 00 00 00 jmp 1346ac <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)
1345ae: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
1345b1: 3b 48 38 cmp 0x38(%eax),%ecx <== NOT EXECUTED
1345b4: 0f 83 22 01 00 00 jae 1346dc <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;
1345ba: 89 f0 mov %esi,%eax <== NOT EXECUTED
1345bc: 31 d2 xor %edx,%edx <== NOT EXECUTED
1345be: f7 75 e4 divl -0x1c(%ebp) <== NOT EXECUTED
1345c1: 89 55 e0 mov %edx,-0x20(%ebp) <== NOT EXECUTED
1345c4: 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,
1345c7: 6a 01 push $0x1 <== NOT EXECUTED
1345c9: ff 74 83 24 pushl 0x24(%ebx,%eax,4) <== NOT EXECUTED
1345cd: ff 75 d0 pushl -0x30(%ebp) <== NOT EXECUTED
1345d0: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
1345d3: e8 a6 0a 00 00 call 13507e <rtems_rfs_buffer_handle_request><== NOT EXECUTED
map->blocks[doubly], true);
if (rc > 0)
1345d8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1345db: 85 c0 test %eax,%eax <== NOT EXECUTED
1345dd: 0f 8f 4b 01 00 00 jg 13472e <rtems_rfs_block_map_shrink+0x275><== NOT EXECUTED
return rc;
singly = rtems_rfs_block_get_number (&map->doubly_buffer,
1345e3: 8b 43 4c mov 0x4c(%ebx),%eax <== NOT EXECUTED
1345e6: 8b 40 20 mov 0x20(%eax),%eax <== NOT EXECUTED
1345e9: 8b 75 e0 mov -0x20(%ebp),%esi <== NOT EXECUTED
1345ec: c1 e6 02 shl $0x2,%esi <== NOT EXECUTED
1345ef: 0f b6 54 30 03 movzbl 0x3(%eax,%esi,1),%edx <== NOT EXECUTED
1345f4: 8b 4d e0 mov -0x20(%ebp),%ecx <== NOT EXECUTED
1345f7: 0f b6 0c 88 movzbl (%eax,%ecx,4),%ecx <== NOT EXECUTED
1345fb: c1 e1 18 shl $0x18,%ecx <== NOT EXECUTED
1345fe: 09 ca or %ecx,%edx <== NOT EXECUTED
134600: 0f b6 4c 30 01 movzbl 0x1(%eax,%esi,1),%ecx <== NOT EXECUTED
134605: c1 e1 10 shl $0x10,%ecx <== NOT EXECUTED
134608: 09 ca or %ecx,%edx <== NOT EXECUTED
13460a: 8b 4d e0 mov -0x20(%ebp),%ecx <== NOT EXECUTED
13460d: 0f b6 44 88 02 movzbl 0x2(%eax,%ecx,4),%eax <== NOT EXECUTED
134612: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
134615: 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,
134617: 6a 01 push $0x1 <== NOT EXECUTED
134619: 52 push %edx <== NOT EXECUTED
13461a: ff 75 d4 pushl -0x2c(%ebp) <== NOT EXECUTED
13461d: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
134620: 89 55 b4 mov %edx,-0x4c(%ebp) <== NOT EXECUTED
134623: e8 56 0a 00 00 call 13507e <rtems_rfs_buffer_handle_request><== NOT EXECUTED
singly, true);
if (rc > 0)
134628: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13462b: 85 c0 test %eax,%eax <== NOT EXECUTED
13462d: 8b 55 b4 mov -0x4c(%ebp),%edx <== NOT EXECUTED
134630: 0f 8f f8 00 00 00 jg 13472e <rtems_rfs_block_map_shrink+0x275><== NOT EXECUTED
return rc;
block_to_free = rtems_rfs_block_get_number (&map->singly_buffer,
134636: 8b 43 40 mov 0x40(%ebx),%eax <== NOT EXECUTED
134639: 8b 40 20 mov 0x20(%eax),%eax <== NOT EXECUTED
13463c: 8d 0c bd 00 00 00 00 lea 0x0(,%edi,4),%ecx <== NOT EXECUTED
134643: 89 4d e4 mov %ecx,-0x1c(%ebp) <== NOT EXECUTED
134646: 0f b6 74 08 03 movzbl 0x3(%eax,%ecx,1),%esi <== NOT EXECUTED
13464b: 0f b6 0c b8 movzbl (%eax,%edi,4),%ecx <== NOT EXECUTED
13464f: c1 e1 18 shl $0x18,%ecx <== NOT EXECUTED
134652: 09 ce or %ecx,%esi <== NOT EXECUTED
134654: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED
134657: 0f b6 4c 08 01 movzbl 0x1(%eax,%ecx,1),%ecx <== NOT EXECUTED
13465c: c1 e1 10 shl $0x10,%ecx <== NOT EXECUTED
13465f: 09 ce or %ecx,%esi <== NOT EXECUTED
134661: 0f b6 44 b8 02 movzbl 0x2(%eax,%edi,4),%eax <== NOT EXECUTED
134666: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
134669: 09 c6 or %eax,%esi <== NOT EXECUTED
direct);
if (direct == 0)
13466b: 85 ff test %edi,%edi <== NOT EXECUTED
13466d: 75 3d jne 1346ac <rtems_rfs_block_map_shrink+0x1f3><== NOT EXECUTED
{
rc = rtems_rfs_group_bitmap_free (fs, false, singly);
13466f: 51 push %ecx <== NOT EXECUTED
134670: 52 push %edx <== NOT EXECUTED
134671: 6a 00 push $0x0 <== NOT EXECUTED
134673: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
134676: e8 f3 33 00 00 call 137a6e <rtems_rfs_group_bitmap_free><== NOT EXECUTED
if (rc > 0)
13467b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13467e: 85 c0 test %eax,%eax <== NOT EXECUTED
134680: 8b 55 b4 mov -0x4c(%ebp),%edx <== NOT EXECUTED
134683: 0f 8f a5 00 00 00 jg 13472e <rtems_rfs_block_map_shrink+0x275><== NOT EXECUTED
return rc;
map->last_map_block = singly;
134689: 89 53 1c mov %edx,0x1c(%ebx) <== NOT EXECUTED
rc = rtems_rfs_block_map_indirect_shrink (fs, map, &map->doubly_buffer,
13468c: 50 push %eax <== NOT EXECUTED
13468d: 50 push %eax <== NOT EXECUTED
13468e: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
134691: ff 75 d8 pushl -0x28(%ebp) <== NOT EXECUTED
134694: 8b 4d d0 mov -0x30(%ebp),%ecx <== NOT EXECUTED
134697: 89 da mov %ebx,%edx <== NOT EXECUTED
134699: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
13469c: e8 87 fd ff ff call 134428 <rtems_rfs_block_map_indirect_shrink><== NOT EXECUTED
doubly, doubly_singly);
if (rc)
1346a1: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1346a4: 85 c0 test %eax,%eax <== NOT EXECUTED
1346a6: 0f 85 82 00 00 00 jne 13472e <rtems_rfs_block_map_shrink+0x275><== NOT EXECUTED
{
rc = EIO;
break;
}
}
rc = rtems_rfs_group_bitmap_free (fs, false, block_to_free);
1346ac: 57 push %edi <== NOT EXECUTED
1346ad: 56 push %esi <== NOT EXECUTED
1346ae: 6a 00 push $0x0 <== NOT EXECUTED
1346b0: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
1346b3: e8 b6 33 00 00 call 137a6e <rtems_rfs_group_bitmap_free><== NOT EXECUTED
if (rc > 0)
1346b8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1346bb: 85 c0 test %eax,%eax <== NOT EXECUTED
1346bd: 7f 6f jg 13472e <rtems_rfs_block_map_shrink+0x275><== NOT EXECUTED
return rc;
map->size.count--;
1346bf: ff 4b 08 decl 0x8(%ebx) <== NOT EXECUTED
map->size.offset = 0;
1346c2: c7 43 0c 00 00 00 00 movl $0x0,0xc(%ebx) <== NOT EXECUTED
map->last_data_block = block_to_free;
1346c9: 89 73 20 mov %esi,0x20(%ebx) <== NOT EXECUTED
map->dirty = true;
1346cc: c6 03 01 movb $0x1,(%ebx) <== NOT EXECUTED
blocks--;
1346cf: ff 4d dc decl -0x24(%ebp) <== NOT EXECUTED
return 0;
if (blocks > map->size.count)
blocks = map->size.count;
while (blocks)
1346d2: 83 7d dc 00 cmpl $0x0,-0x24(%ebp) <== NOT EXECUTED
1346d6: 0f 85 12 fe ff ff jne 1344ee <rtems_rfs_block_map_shrink+0x35><== NOT EXECUTED
map->last_data_block = block_to_free;
map->dirty = true;
blocks--;
}
if (map->size.count == 0)
1346dc: 83 7b 08 00 cmpl $0x0,0x8(%ebx) <== NOT EXECUTED
1346e0: 75 0e jne 1346f0 <rtems_rfs_block_map_shrink+0x237><== NOT EXECUTED
{
map->last_map_block = 0;
1346e2: c7 43 1c 00 00 00 00 movl $0x0,0x1c(%ebx) <== NOT EXECUTED
map->last_data_block = 0;
1346e9: 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))
1346f0: 8b 43 10 mov 0x10(%ebx),%eax <== NOT EXECUTED
1346f3: 85 c0 test %eax,%eax <== NOT EXECUTED
1346f5: 74 06 je 1346fd <rtems_rfs_block_map_shrink+0x244><== NOT EXECUTED
1346f7: 83 7b 08 00 cmpl $0x0,0x8(%ebx) <== NOT EXECUTED
1346fb: 74 14 je 134711 <rtems_rfs_block_map_shrink+0x258><== NOT EXECUTED
1346fd: 8b 53 08 mov 0x8(%ebx),%edx <== NOT EXECUTED
134700: 39 d0 cmp %edx,%eax <== NOT EXECUTED
134702: 73 0d jae 134711 <rtems_rfs_block_map_shrink+0x258><== NOT EXECUTED
134704: 4a dec %edx <== NOT EXECUTED
134705: 39 d0 cmp %edx,%eax <== NOT EXECUTED
134707: 75 23 jne 13472c <rtems_rfs_block_map_shrink+0x273><== NOT EXECUTED
134709: 8b 43 14 mov 0x14(%ebx),%eax <== NOT EXECUTED
13470c: 3b 43 0c cmp 0xc(%ebx),%eax <== NOT EXECUTED
13470f: 76 1b jbe 13472c <rtems_rfs_block_map_shrink+0x273><== NOT EXECUTED
rtems_rfs_block_size_get_bpos (&map->size, &map->bpos);
134711: 8b 43 08 mov 0x8(%ebx),%eax <== NOT EXECUTED
134714: 89 43 10 mov %eax,0x10(%ebx) <== NOT EXECUTED
134717: 8b 53 0c mov 0xc(%ebx),%edx <== NOT EXECUTED
13471a: 89 53 14 mov %edx,0x14(%ebx) <== NOT EXECUTED
13471d: c7 43 18 00 00 00 00 movl $0x0,0x18(%ebx) <== NOT EXECUTED
134724: 85 d2 test %edx,%edx <== NOT EXECUTED
134726: 74 04 je 13472c <rtems_rfs_block_map_shrink+0x273><== NOT EXECUTED
134728: 48 dec %eax <== NOT EXECUTED
134729: 89 43 10 mov %eax,0x10(%ebx) <== NOT EXECUTED
13472c: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
}
13472e: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
134731: 5b pop %ebx <== NOT EXECUTED
134732: 5e pop %esi <== NOT EXECUTED
134733: 5f pop %edi <== NOT EXECUTED
134734: c9 leave <== NOT EXECUTED
134735: c3 ret <== NOT EXECUTED
0013c660 <rtems_rfs_buffer_bdbuf_release>:
}
int
rtems_rfs_buffer_bdbuf_release (rtems_rfs_buffer* buffer,
bool modified)
{
13c660: 55 push %ebp <== NOT EXECUTED
13c661: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13c663: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13c666: 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)
13c669: 80 7d 0c 00 cmpb $0x0,0xc(%ebp) <== NOT EXECUTED
13c66d: 74 0b je 13c67a <rtems_rfs_buffer_bdbuf_release+0x1a><== NOT EXECUTED
sc = rtems_bdbuf_release_modified (buffer);
13c66f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13c672: 50 push %eax <== NOT EXECUTED
13c673: e8 96 d9 fc ff call 10a00e <rtems_bdbuf_release_modified><== NOT EXECUTED
13c678: eb 09 jmp 13c683 <rtems_rfs_buffer_bdbuf_release+0x23><== NOT EXECUTED
else
sc = rtems_bdbuf_release (buffer);
13c67a: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13c67d: 50 push %eax <== NOT EXECUTED
13c67e: e8 f4 d9 fc ff call 10a077 <rtems_bdbuf_release> <== NOT EXECUTED
13c683: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
13c686: 83 f8 01 cmp $0x1,%eax <== NOT EXECUTED
13c689: 19 c0 sbb %eax,%eax <== NOT EXECUTED
13c68b: f7 d0 not %eax <== NOT EXECUTED
13c68d: 83 e0 05 and $0x5,%eax <== NOT EXECUTED
#endif
rc = EIO;
}
return rc;
}
13c690: c9 leave <== NOT EXECUTED
13c691: c3 ret <== NOT EXECUTED
0013c692 <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)
{
13c692: 55 push %ebp <== NOT EXECUTED
13c693: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13c695: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13c698: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
13c69b: 8b 4d 14 mov 0x14(%ebp),%ecx <== NOT EXECUTED
rtems_status_code sc;
int rc = 0;
if (read)
13c69e: 80 7d 10 00 cmpb $0x0,0x10(%ebp) <== NOT EXECUTED
13c6a2: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
13c6a5: 8b 40 0c mov 0xc(%eax),%eax <== NOT EXECUTED
13c6a8: 74 0e je 13c6b8 <rtems_rfs_buffer_bdbuf_request+0x26><== NOT EXECUTED
sc = rtems_bdbuf_read (rtems_rfs_fs_device (fs), block, buffer);
13c6aa: 51 push %ecx <== NOT EXECUTED
13c6ab: 52 push %edx <== NOT EXECUTED
13c6ac: ff 70 04 pushl 0x4(%eax) <== NOT EXECUTED
13c6af: ff 30 pushl (%eax) <== NOT EXECUTED
13c6b1: e8 5e e8 fc ff call 10af14 <rtems_bdbuf_read> <== NOT EXECUTED
13c6b6: eb 0c jmp 13c6c4 <rtems_rfs_buffer_bdbuf_request+0x32><== NOT EXECUTED
else
sc = rtems_bdbuf_get (rtems_rfs_fs_device (fs), block, buffer);
13c6b8: 51 push %ecx <== NOT EXECUTED
13c6b9: 52 push %edx <== NOT EXECUTED
13c6ba: ff 70 04 pushl 0x4(%eax) <== NOT EXECUTED
13c6bd: ff 30 pushl (%eax) <== NOT EXECUTED
13c6bf: e8 92 e7 fc ff call 10ae56 <rtems_bdbuf_get> <== NOT EXECUTED
13c6c4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
13c6c7: 83 f8 01 cmp $0x1,%eax <== NOT EXECUTED
13c6ca: 19 c0 sbb %eax,%eax <== NOT EXECUTED
13c6cc: f7 d0 not %eax <== NOT EXECUTED
13c6ce: 83 e0 05 and $0x5,%eax <== NOT EXECUTED
#endif
rc = EIO;
}
return rc;
}
13c6d1: c9 leave <== NOT EXECUTED
13c6d2: c3 ret <== NOT EXECUTED
00134f0b <rtems_rfs_buffer_close>:
return 0;
}
int
rtems_rfs_buffer_close (rtems_rfs_file_system* fs)
{
134f0b: 55 push %ebp <== NOT EXECUTED
134f0c: 89 e5 mov %esp,%ebp <== NOT EXECUTED
134f0e: 56 push %esi <== NOT EXECUTED
134f0f: 53 push %ebx <== NOT EXECUTED
134f10: 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));
134f13: 51 push %ecx <== NOT EXECUTED
134f14: 51 push %ecx <== NOT EXECUTED
134f15: 8b 43 0c mov 0xc(%ebx),%eax <== NOT EXECUTED
134f18: ff 70 24 pushl 0x24(%eax) <== NOT EXECUTED
134f1b: 53 push %ebx <== NOT EXECUTED
134f1c: e8 ac ff ff ff call 134ecd <rtems_rfs_buffer_setblksize><== NOT EXECUTED
134f21: 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);
134f23: 5a pop %edx <== NOT EXECUTED
134f24: ff 73 0c pushl 0xc(%ebx) <== NOT EXECUTED
134f27: e8 48 6f fd ff call 10be74 <rtems_disk_release> <== NOT EXECUTED
rc, strerror (rc));
}
#endif
return rc;
}
134f2c: 89 f0 mov %esi,%eax <== NOT EXECUTED
134f2e: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
134f31: 5b pop %ebx <== NOT EXECUTED
134f32: 5e pop %esi <== NOT EXECUTED
134f33: c9 leave <== NOT EXECUTED
134f34: c3 ret <== NOT EXECUTED
0013521c <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)
{
13521c: 55 push %ebp <== NOT EXECUTED
13521d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13521f: 53 push %ebx <== NOT EXECUTED
135220: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
135223: 89 d3 mov %edx,%ebx <== NOT EXECUTED
rtems_rfs_buffer_handle_release (fs, handle);
135225: 52 push %edx <== NOT EXECUTED
135226: 50 push %eax <== NOT EXECUTED
135227: e8 5b fd ff ff call 134f87 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
handle->dirty = false;
13522c: c6 03 00 movb $0x0,(%ebx) <== NOT EXECUTED
handle->bnum = 0;
13522f: c7 43 04 00 00 00 00 movl $0x0,0x4(%ebx) <== NOT EXECUTED
handle->buffer = NULL;
135236: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx) <== NOT EXECUTED
return 0;
}
13523d: 31 c0 xor %eax,%eax <== NOT EXECUTED
13523f: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
135242: c9 leave <== NOT EXECUTED
135243: c3 ret <== NOT EXECUTED
00134f87 <rtems_rfs_buffer_handle_release>:
}
int
rtems_rfs_buffer_handle_release (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
134f87: 55 push %ebp <== NOT EXECUTED
134f88: 89 e5 mov %esp,%ebp <== NOT EXECUTED
134f8a: 57 push %edi <== NOT EXECUTED
134f8b: 56 push %esi <== NOT EXECUTED
134f8c: 53 push %ebx <== NOT EXECUTED
134f8d: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
134f90: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
134f93: 8b 75 0c mov 0xc(%ebp),%esi <== NOT EXECUTED
int rc = 0;
if (rtems_rfs_buffer_handle_has_block (handle))
134f96: 8b 56 08 mov 0x8(%esi),%edx <== NOT EXECUTED
134f99: 31 c0 xor %eax,%eax <== NOT EXECUTED
134f9b: 85 d2 test %edx,%edx <== NOT EXECUTED
134f9d: 0f 84 d3 00 00 00 je 135076 <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)
134fa3: 8b 42 34 mov 0x34(%edx),%eax <== NOT EXECUTED
134fa6: 85 c0 test %eax,%eax <== NOT EXECUTED
134fa8: 7e 04 jle 134fae <rtems_rfs_buffer_handle_release+0x27><== NOT EXECUTED
rtems_rfs_buffer_refs_down (handle);
134faa: 48 dec %eax <== NOT EXECUTED
134fab: 89 42 34 mov %eax,0x34(%edx) <== NOT EXECUTED
if (rtems_rfs_buffer_refs (handle) == 0)
134fae: 31 c0 xor %eax,%eax <== NOT EXECUTED
134fb0: 83 7a 34 00 cmpl $0x0,0x34(%edx) <== NOT EXECUTED
134fb4: 0f 85 b5 00 00 00 jne 13506f <rtems_rfs_buffer_handle_release+0xe8><== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void rtems_chain_extract(
rtems_chain_node *the_node
)
{
_Chain_Extract( the_node );
134fba: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
134fbd: 52 push %edx <== NOT EXECUTED
134fbe: e8 85 c6 fd ff call 111648 <_Chain_Extract> <== NOT EXECUTED
{
rtems_chain_extract (rtems_rfs_buffer_link (handle));
fs->buffers_count--;
134fc3: ff 4b 4c decl 0x4c(%ebx) <== NOT EXECUTED
if (rtems_rfs_fs_no_local_cache (fs))
134fc6: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
134fc9: f6 03 02 testb $0x2,(%ebx) <== NOT EXECUTED
134fcc: 74 1e je 134fec <rtems_rfs_buffer_handle_release+0x65><== NOT EXECUTED
{
handle->buffer->user = (void*) 0;
134fce: 8b 46 08 mov 0x8(%esi),%eax <== NOT EXECUTED
134fd1: c7 40 38 00 00 00 00 movl $0x0,0x38(%eax) <== NOT EXECUTED
rc = rtems_rfs_buffer_io_release (handle->buffer,
134fd8: 53 push %ebx <== NOT EXECUTED
134fd9: 53 push %ebx <== NOT EXECUTED
134fda: 0f b6 16 movzbl (%esi),%edx <== NOT EXECUTED
134fdd: 52 push %edx <== NOT EXECUTED
134fde: 50 push %eax <== NOT EXECUTED
134fdf: e8 7c 76 00 00 call 13c660 <rtems_rfs_buffer_bdbuf_release><== NOT EXECUTED
134fe4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
134fe7: e9 83 00 00 00 jmp 13506f <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 +
134fec: 8b 4b 5c mov 0x5c(%ebx),%ecx <== NOT EXECUTED
134fef: 8b 53 6c mov 0x6c(%ebx),%edx <== NOT EXECUTED
134ff2: 8d 3c 0a lea (%edx,%ecx,1),%edi <== NOT EXECUTED
fs->release_modified_count) >= fs->max_held_buffers)
134ff5: 31 c0 xor %eax,%eax <== NOT EXECUTED
134ff7: 3b 7b 3c cmp 0x3c(%ebx),%edi <== NOT EXECUTED
134ffa: 72 3e jb 13503a <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)
134ffc: 39 d1 cmp %edx,%ecx <== NOT EXECUTED
134ffe: 76 13 jbe 135013 <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 );
135000: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
135003: 8d 43 50 lea 0x50(%ebx),%eax <== NOT EXECUTED
135006: 50 push %eax <== NOT EXECUTED
135007: e8 54 c6 fd ff call 111660 <_Chain_Get> <== NOT EXECUTED
{
buffer = (rtems_rfs_buffer*) rtems_chain_get (&fs->release);
fs->release_count--;
13500c: ff 4b 5c decl 0x5c(%ebx) <== NOT EXECUTED
13500f: 31 d2 xor %edx,%edx <== NOT EXECUTED
135011: eb 11 jmp 135024 <rtems_rfs_buffer_handle_release+0x9d><== NOT EXECUTED
135013: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
135016: 8d 43 60 lea 0x60(%ebx),%eax <== NOT EXECUTED
135019: 50 push %eax <== NOT EXECUTED
13501a: e8 41 c6 fd ff call 111660 <_Chain_Get> <== NOT EXECUTED
}
else
{
buffer =
(rtems_rfs_buffer*) rtems_chain_get (&fs->release_modified);
fs->release_modified_count--;
13501f: ff 4b 6c decl 0x6c(%ebx) <== NOT EXECUTED
135022: b2 01 mov $0x1,%dl <== NOT EXECUTED
135024: 5f pop %edi <== NOT EXECUTED
135025: 59 pop %ecx <== NOT EXECUTED
modified = true;
}
buffer->user = (void*) 0;
135026: c7 40 38 00 00 00 00 movl $0x0,0x38(%eax) <== NOT EXECUTED
rc = rtems_rfs_buffer_io_release (buffer, modified);
13502d: 0f b6 d2 movzbl %dl,%edx <== NOT EXECUTED
135030: 52 push %edx <== NOT EXECUTED
135031: 50 push %eax <== NOT EXECUTED
135032: e8 29 76 00 00 call 13c660 <rtems_rfs_buffer_bdbuf_release><== NOT EXECUTED
135037: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
if (rtems_rfs_buffer_dirty (handle))
13503a: 80 3e 00 cmpb $0x0,(%esi) <== NOT EXECUTED
13503d: 74 16 je 135055 <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 );
13503f: 51 push %ecx <== NOT EXECUTED
135040: 51 push %ecx <== NOT EXECUTED
135041: ff 76 08 pushl 0x8(%esi) <== NOT EXECUTED
135044: 8d 53 60 lea 0x60(%ebx),%edx <== NOT EXECUTED
135047: 52 push %edx <== NOT EXECUTED
135048: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
13504b: e8 d4 c5 fd ff call 111624 <_Chain_Append> <== NOT EXECUTED
{
rtems_chain_append (&fs->release_modified,
rtems_rfs_buffer_link (handle));
fs->release_modified_count++;
135050: ff 43 6c incl 0x6c(%ebx) <== NOT EXECUTED
135053: eb 14 jmp 135069 <rtems_rfs_buffer_handle_release+0xe2><== NOT EXECUTED
135055: 52 push %edx <== NOT EXECUTED
135056: 52 push %edx <== NOT EXECUTED
135057: ff 76 08 pushl 0x8(%esi) <== NOT EXECUTED
13505a: 8d 53 50 lea 0x50(%ebx),%edx <== NOT EXECUTED
13505d: 52 push %edx <== NOT EXECUTED
13505e: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
135061: e8 be c5 fd ff call 111624 <_Chain_Append> <== NOT EXECUTED
}
else
{
rtems_chain_append (&fs->release, rtems_rfs_buffer_link (handle));
fs->release_count++;
135066: ff 43 5c incl 0x5c(%ebx) <== NOT EXECUTED
135069: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13506c: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
}
}
}
handle->buffer = NULL;
13506f: c7 46 08 00 00 00 00 movl $0x0,0x8(%esi) <== NOT EXECUTED
}
return rc;
}
135076: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
135079: 5b pop %ebx <== NOT EXECUTED
13507a: 5e pop %esi <== NOT EXECUTED
13507b: 5f pop %edi <== NOT EXECUTED
13507c: c9 leave <== NOT EXECUTED
13507d: c3 ret <== NOT EXECUTED
0013507e <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)
{
13507e: 55 push %ebp <== NOT EXECUTED
13507f: 89 e5 mov %esp,%ebp <== NOT EXECUTED
135081: 57 push %edi <== NOT EXECUTED
135082: 56 push %esi <== NOT EXECUTED
135083: 53 push %ebx <== NOT EXECUTED
135084: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
135087: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
13508a: 8b 75 0c mov 0xc(%ebp),%esi <== NOT EXECUTED
13508d: 8b 7d 10 mov 0x10(%ebp),%edi <== NOT EXECUTED
135090: 8a 45 14 mov 0x14(%ebp),%al <== NOT EXECUTED
135093: 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))
135096: 83 7e 08 00 cmpl $0x0,0x8(%esi) <== NOT EXECUTED
13509a: 74 2d je 1350c9 <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))
13509c: 85 ff test %edi,%edi <== NOT EXECUTED
13509e: 74 0b je 1350ab <rtems_rfs_buffer_handle_request+0x2d><== NOT EXECUTED
1350a0: 31 c0 xor %eax,%eax <== NOT EXECUTED
1350a2: 39 7e 04 cmp %edi,0x4(%esi) <== NOT EXECUTED
1350a5: 0f 84 69 01 00 00 je 135214 <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);
1350ab: 51 push %ecx <== NOT EXECUTED
1350ac: 51 push %ecx <== NOT EXECUTED
1350ad: 56 push %esi <== NOT EXECUTED
1350ae: 53 push %ebx <== NOT EXECUTED
1350af: e8 d3 fe ff ff call 134f87 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
if (rc > 0)
1350b4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1350b7: 85 c0 test %eax,%eax <== NOT EXECUTED
1350b9: 0f 8f 55 01 00 00 jg 135214 <rtems_rfs_buffer_handle_request+0x196><== NOT EXECUTED
return rc;
handle->dirty = false;
1350bf: c6 06 00 movb $0x0,(%esi) <== NOT EXECUTED
handle->bnum = 0;
1350c2: 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)
1350c9: 8b 4b 4c mov 0x4c(%ebx),%ecx <== NOT EXECUTED
1350cc: 85 c9 test %ecx,%ecx <== NOT EXECUTED
1350ce: 74 42 je 135112 <rtems_rfs_buffer_handle_request+0x94><== NOT EXECUTED
{
/*
* Check the active buffer list for shared buffers.
*/
handle->buffer = rtems_rfs_scan_chain (&fs->buffers,
1350d0: 8d 43 40 lea 0x40(%ebx),%eax <== NOT EXECUTED
1350d3: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Last(
Chain_Control *the_chain
)
{
return the_chain->last;
1350d6: 8b 53 48 mov 0x48(%ebx),%edx <== NOT EXECUTED
1350d9: eb 2d jmp 135108 <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)
1350db: 39 7a 38 cmp %edi,0x38(%edx) <== NOT EXECUTED
1350de: 75 25 jne 135105 <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)--;
1350e0: 49 dec %ecx <== NOT EXECUTED
1350e1: 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 );
1350e4: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1350e7: 52 push %edx <== NOT EXECUTED
1350e8: 89 55 dc mov %edx,-0x24(%ebp) <== NOT EXECUTED
1350eb: e8 58 c5 fd ff call 111648 <_Chain_Extract> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Chain_Set_off_chain(
Chain_Node *node
)
{
node->next = node->previous = NULL;
1350f0: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED
1350f3: c7 40 04 00 00 00 00 movl $0x0,0x4(%eax) <== NOT EXECUTED
1350fa: c7 00 00 00 00 00 movl $0x0,(%eax) <== NOT EXECUTED
135100: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
135103: eb 0a jmp 13510f <rtems_rfs_buffer_handle_request+0x91><== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Previous(
Chain_Node *the_node
)
{
return the_node->previous;
135105: 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))
135108: 3b 55 e4 cmp -0x1c(%ebp),%edx <== NOT EXECUTED
13510b: 75 ce jne 1350db <rtems_rfs_buffer_handle_request+0x5d><== NOT EXECUTED
13510d: 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,
13510f: 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) &&
135112: f6 03 02 testb $0x2,(%ebx) <== NOT EXECUTED
135115: 0f 85 a9 00 00 00 jne 1351c4 <rtems_rfs_buffer_handle_request+0x146><== NOT EXECUTED
!rtems_rfs_buffer_handle_has_block (handle))
13511b: 83 7e 08 00 cmpl $0x0,0x8(%esi) <== NOT EXECUTED
13511f: 0f 85 9f 00 00 00 jne 1351c4 <rtems_rfs_buffer_handle_request+0x146><== NOT EXECUTED
{
/*
* Check the local cache of released buffers.
*/
if (fs->release_count)
135125: 8b 4b 5c mov 0x5c(%ebx),%ecx <== NOT EXECUTED
135128: 85 c9 test %ecx,%ecx <== NOT EXECUTED
13512a: 74 42 je 13516e <rtems_rfs_buffer_handle_request+0xf0><== NOT EXECUTED
handle->buffer = rtems_rfs_scan_chain (&fs->release,
13512c: 8d 43 50 lea 0x50(%ebx),%eax <== NOT EXECUTED
13512f: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Last(
Chain_Control *the_chain
)
{
return the_chain->last;
135132: 8b 53 58 mov 0x58(%ebx),%edx <== NOT EXECUTED
135135: eb 2d jmp 135164 <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)
135137: 39 7a 38 cmp %edi,0x38(%edx) <== NOT EXECUTED
13513a: 75 25 jne 135161 <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)--;
13513c: 49 dec %ecx <== NOT EXECUTED
13513d: 89 4b 5c mov %ecx,0x5c(%ebx) <== NOT EXECUTED
135140: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
135143: 52 push %edx <== NOT EXECUTED
135144: 89 55 dc mov %edx,-0x24(%ebp) <== NOT EXECUTED
135147: e8 fc c4 fd ff call 111648 <_Chain_Extract> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Chain_Set_off_chain(
Chain_Node *node
)
{
node->next = node->previous = NULL;
13514c: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED
13514f: c7 40 04 00 00 00 00 movl $0x0,0x4(%eax) <== NOT EXECUTED
135156: c7 00 00 00 00 00 movl $0x0,(%eax) <== NOT EXECUTED
13515c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13515f: eb 0a jmp 13516b <rtems_rfs_buffer_handle_request+0xed><== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Previous(
Chain_Node *the_node
)
{
return the_node->previous;
135161: 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))
135164: 3b 55 e4 cmp -0x1c(%ebp),%edx <== NOT EXECUTED
135167: 75 ce jne 135137 <rtems_rfs_buffer_handle_request+0xb9><== NOT EXECUTED
135169: 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,
13516b: 89 46 08 mov %eax,0x8(%esi) <== NOT EXECUTED
&fs->release_count,
block);
if (!rtems_rfs_buffer_handle_has_block (handle) &&
13516e: 83 7e 08 00 cmpl $0x0,0x8(%esi) <== NOT EXECUTED
135172: 75 50 jne 1351c4 <rtems_rfs_buffer_handle_request+0x146><== NOT EXECUTED
fs->release_modified_count)
135174: 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) &&
135177: 85 c9 test %ecx,%ecx <== NOT EXECUTED
135179: 74 49 je 1351c4 <rtems_rfs_buffer_handle_request+0x146><== NOT EXECUTED
fs->release_modified_count)
{
handle->buffer = rtems_rfs_scan_chain (&fs->release_modified,
13517b: 8d 43 60 lea 0x60(%ebx),%eax <== NOT EXECUTED
13517e: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Last(
Chain_Control *the_chain
)
{
return the_chain->last;
135181: 8b 53 68 mov 0x68(%ebx),%edx <== NOT EXECUTED
135184: eb 2d jmp 1351b3 <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)
135186: 39 7a 38 cmp %edi,0x38(%edx) <== NOT EXECUTED
135189: 75 25 jne 1351b0 <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)--;
13518b: 49 dec %ecx <== NOT EXECUTED
13518c: 89 4b 6c mov %ecx,0x6c(%ebx) <== NOT EXECUTED
13518f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
135192: 52 push %edx <== NOT EXECUTED
135193: 89 55 dc mov %edx,-0x24(%ebp) <== NOT EXECUTED
135196: e8 ad c4 fd ff call 111648 <_Chain_Extract> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Chain_Set_off_chain(
Chain_Node *node
)
{
node->next = node->previous = NULL;
13519b: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED
13519e: c7 40 04 00 00 00 00 movl $0x0,0x4(%eax) <== NOT EXECUTED
1351a5: c7 00 00 00 00 00 movl $0x0,(%eax) <== NOT EXECUTED
1351ab: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1351ae: eb 0a jmp 1351ba <rtems_rfs_buffer_handle_request+0x13c><== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Previous(
Chain_Node *the_node
)
{
return the_node->previous;
1351b0: 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))
1351b3: 3b 55 e4 cmp -0x1c(%ebp),%edx <== NOT EXECUTED
1351b6: 75 ce jne 135186 <rtems_rfs_buffer_handle_request+0x108><== NOT EXECUTED
1351b8: 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,
1351ba: 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))
1351bd: 85 c0 test %eax,%eax <== NOT EXECUTED
1351bf: 74 03 je 1351c4 <rtems_rfs_buffer_handle_request+0x146><== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (handle);
1351c1: 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))
1351c4: 83 7e 08 00 cmpl $0x0,0x8(%esi) <== NOT EXECUTED
1351c8: 75 27 jne 1351f1 <rtems_rfs_buffer_handle_request+0x173><== NOT EXECUTED
{
rc = rtems_rfs_buffer_io_request (fs, block, read, &handle->buffer);
1351ca: 8d 46 08 lea 0x8(%esi),%eax <== NOT EXECUTED
1351cd: 50 push %eax <== NOT EXECUTED
1351ce: 0f b6 45 e3 movzbl -0x1d(%ebp),%eax <== NOT EXECUTED
1351d2: 50 push %eax <== NOT EXECUTED
1351d3: 57 push %edi <== NOT EXECUTED
1351d4: 53 push %ebx <== NOT EXECUTED
1351d5: e8 b8 74 00 00 call 13c692 <rtems_rfs_buffer_bdbuf_request><== NOT EXECUTED
rtems_chain_set_off_chain (rtems_rfs_buffer_link(handle));
1351da: 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;
1351dd: c7 42 04 00 00 00 00 movl $0x0,0x4(%edx) <== NOT EXECUTED
1351e4: c7 02 00 00 00 00 movl $0x0,(%edx) <== NOT EXECUTED
if (rc > 0)
1351ea: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1351ed: 85 c0 test %eax,%eax <== NOT EXECUTED
1351ef: 7f 23 jg 135214 <rtems_rfs_buffer_handle_request+0x196><== NOT EXECUTED
}
/*
* Increase the reference count of the buffer.
*/
rtems_rfs_buffer_refs_up (handle);
1351f1: 8b 46 08 mov 0x8(%esi),%eax <== NOT EXECUTED
1351f4: 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 );
1351f7: 52 push %edx <== NOT EXECUTED
1351f8: 52 push %edx <== NOT EXECUTED
1351f9: 50 push %eax <== NOT EXECUTED
1351fa: 8d 43 40 lea 0x40(%ebx),%eax <== NOT EXECUTED
1351fd: 50 push %eax <== NOT EXECUTED
1351fe: e8 21 c4 fd ff call 111624 <_Chain_Append> <== NOT EXECUTED
rtems_chain_append (&fs->buffers, rtems_rfs_buffer_link (handle));
fs->buffers_count++;
135203: ff 43 4c incl 0x4c(%ebx) <== NOT EXECUTED
handle->buffer->user = (void*) ((intptr_t) block);
135206: 8b 46 08 mov 0x8(%esi),%eax <== NOT EXECUTED
135209: 89 78 38 mov %edi,0x38(%eax) <== NOT EXECUTED
handle->bnum = block;
13520c: 89 7e 04 mov %edi,0x4(%esi) <== NOT EXECUTED
13520f: 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;
135211: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
135214: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
135217: 5b pop %ebx <== NOT EXECUTED
135218: 5e pop %esi <== NOT EXECUTED
135219: 5f pop %edi <== NOT EXECUTED
13521a: c9 leave <== NOT EXECUTED
13521b: c3 ret <== NOT EXECUTED
00134f35 <rtems_rfs_buffer_open>:
return rc;
}
int
rtems_rfs_buffer_open (const char* name, rtems_rfs_file_system* fs)
{
134f35: 55 push %ebp <== NOT EXECUTED
134f36: 89 e5 mov %esp,%ebp <== NOT EXECUTED
134f38: 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)
134f3b: 8d 45 b0 lea -0x50(%ebp),%eax <== NOT EXECUTED
134f3e: 50 push %eax <== NOT EXECUTED
134f3f: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
134f42: e8 a5 93 fd ff call 10e2ec <stat> <== NOT EXECUTED
134f47: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
134f4a: ba 02 00 00 00 mov $0x2,%edx <== NOT EXECUTED
134f4f: 85 c0 test %eax,%eax <== NOT EXECUTED
134f51: 78 30 js 134f83 <rtems_rfs_buffer_open+0x4e><== NOT EXECUTED
#if RTEMS_RFS_USE_LIBBLOCK
/*
* Is the device a block device ?
*/
if (!S_ISBLK (st.st_mode))
134f53: 8b 45 bc mov -0x44(%ebp),%eax <== NOT EXECUTED
134f56: 25 00 f0 00 00 and $0xf000,%eax <== NOT EXECUTED
134f5b: 3d 00 60 00 00 cmp $0x6000,%eax <== NOT EXECUTED
134f60: 75 1c jne 134f7e <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);
134f62: 50 push %eax <== NOT EXECUTED
134f63: 50 push %eax <== NOT EXECUTED
134f64: ff 75 cc pushl -0x34(%ebp) <== NOT EXECUTED
134f67: ff 75 c8 pushl -0x38(%ebp) <== NOT EXECUTED
134f6a: e8 7e 6d fd ff call 10bced <rtems_disk_obtain> <== NOT EXECUTED
134f6f: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
134f72: 89 42 0c mov %eax,0xc(%edx) <== NOT EXECUTED
if (!fs->disk)
134f75: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
134f78: 31 d2 xor %edx,%edx <== NOT EXECUTED
134f7a: 85 c0 test %eax,%eax <== NOT EXECUTED
134f7c: 75 05 jne 134f83 <rtems_rfs_buffer_open+0x4e><== NOT EXECUTED
134f7e: 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;
}
134f83: 89 d0 mov %edx,%eax <== NOT EXECUTED
134f85: c9 leave <== NOT EXECUTED
134f86: c3 ret <== NOT EXECUTED
00134ecd <rtems_rfs_buffer_setblksize>:
int
rtems_rfs_buffer_setblksize (rtems_rfs_file_system* fs, size_t size)
{
134ecd: 55 push %ebp <== NOT EXECUTED
134ece: 89 e5 mov %esp,%ebp <== NOT EXECUTED
134ed0: 53 push %ebx <== NOT EXECUTED
134ed1: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED
134ed4: 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);
134ed7: 53 push %ebx <== NOT EXECUTED
134ed8: e8 7f ff ff ff call 134e5c <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);
134edd: 89 1c 24 mov %ebx,(%esp) <== NOT EXECUTED
134ee0: e8 b5 ff ff ff call 134e9a <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);
134ee5: 8b 43 0c mov 0xc(%ebx),%eax <== NOT EXECUTED
134ee8: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
134eeb: 8d 55 0c lea 0xc(%ebp),%edx <== NOT EXECUTED
134eee: 52 push %edx <== NOT EXECUTED
134eef: 68 04 42 04 80 push $0x80044204 <== NOT EXECUTED
134ef4: 50 push %eax <== NOT EXECUTED
134ef5: ff 50 28 call *0x28(%eax) <== NOT EXECUTED
if (rc < 0)
134ef8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
134efb: 85 c0 test %eax,%eax <== NOT EXECUTED
134efd: 79 07 jns 134f06 <rtems_rfs_buffer_setblksize+0x39><== NOT EXECUTED
rc = errno;
134eff: e8 94 7e 00 00 call 13cd98 <__errno> <== NOT EXECUTED
134f04: 8b 00 mov (%eax),%eax <== NOT EXECUTED
#endif
return rc;
}
134f06: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
134f09: c9 leave <== NOT EXECUTED
134f0a: c3 ret <== NOT EXECUTED
00134e9a <rtems_rfs_buffer_sync>:
return rc;
}
int
rtems_rfs_buffer_sync (rtems_rfs_file_system* fs)
{
134e9a: 55 push %ebp <== NOT EXECUTED
134e9b: 89 e5 mov %esp,%ebp <== NOT EXECUTED
134e9d: 56 push %esi <== NOT EXECUTED
134e9e: 53 push %ebx <== NOT EXECUTED
134e9f: 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));
134ea2: 50 push %eax <== NOT EXECUTED
134ea3: 50 push %eax <== NOT EXECUTED
134ea4: 8b 46 0c mov 0xc(%esi),%eax <== NOT EXECUTED
134ea7: ff 70 04 pushl 0x4(%eax) <== NOT EXECUTED
134eaa: ff 30 pushl (%eax) <== NOT EXECUTED
134eac: e8 71 48 fd ff call 109722 <rtems_bdbuf_syncdev> <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
134eb1: 5b pop %ebx <== NOT EXECUTED
134eb2: 83 f8 01 cmp $0x1,%eax <== NOT EXECUTED
134eb5: 19 db sbb %ebx,%ebx <== NOT EXECUTED
134eb7: f7 d3 not %ebx <== NOT EXECUTED
134eb9: 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);
134ebc: ff 76 0c pushl 0xc(%esi) <== NOT EXECUTED
134ebf: e8 b0 6f 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;
}
134ec4: 89 d8 mov %ebx,%eax <== NOT EXECUTED
134ec6: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
134ec9: 5b pop %ebx <== NOT EXECUTED
134eca: 5e pop %esi <== NOT EXECUTED
134ecb: c9 leave <== NOT EXECUTED
134ecc: c3 ret <== NOT EXECUTED
00134e5c <rtems_rfs_buffers_release>:
int
rtems_rfs_buffers_release (rtems_rfs_file_system* fs)
{
134e5c: 55 push %ebp <== NOT EXECUTED
134e5d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
134e5f: 56 push %esi <== NOT EXECUTED
134e60: 53 push %ebx <== NOT EXECUTED
134e61: 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,
134e64: 8d 56 5c lea 0x5c(%esi),%edx <== NOT EXECUTED
134e67: 8d 46 50 lea 0x50(%esi),%eax <== NOT EXECUTED
134e6a: 31 c9 xor %ecx,%ecx <== NOT EXECUTED
134e6c: e8 93 ff ff ff call 134e04 <rtems_rfs_release_chain><== NOT EXECUTED
134e71: 89 c3 mov %eax,%ebx <== NOT EXECUTED
134e73: f7 d0 not %eax <== NOT EXECUTED
134e75: c1 f8 1f sar $0x1f,%eax <== NOT EXECUTED
134e78: 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,
134e7a: 8d 56 6c lea 0x6c(%esi),%edx <== NOT EXECUTED
134e7d: 8d 46 60 lea 0x60(%esi),%eax <== NOT EXECUTED
134e80: b9 01 00 00 00 mov $0x1,%ecx <== NOT EXECUTED
134e85: e8 7a ff ff ff call 134e04 <rtems_rfs_release_chain><== NOT EXECUTED
&fs->release_modified_count,
true);
if ((rc > 0) && (rrc == 0))
134e8a: 85 db test %ebx,%ebx <== NOT EXECUTED
134e8c: 75 06 jne 134e94 <rtems_rfs_buffers_release+0x38><== NOT EXECUTED
134e8e: 85 c0 test %eax,%eax <== NOT EXECUTED
134e90: 7e 02 jle 134e94 <rtems_rfs_buffers_release+0x38><== NOT EXECUTED
134e92: 89 c3 mov %eax,%ebx <== NOT EXECUTED
rrc = rc;
return rrc;
}
134e94: 89 d8 mov %ebx,%eax <== NOT EXECUTED
134e96: 5b pop %ebx <== NOT EXECUTED
134e97: 5e pop %esi <== NOT EXECUTED
134e98: c9 leave <== NOT EXECUTED
134e99: c3 ret <== NOT EXECUTED
001358f4 <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)
{
1358f4: 55 push %ebp <== NOT EXECUTED
1358f5: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1358f7: 57 push %edi <== NOT EXECUTED
1358f8: 56 push %esi <== NOT EXECUTED
1358f9: 53 push %ebx <== NOT EXECUTED
1358fa: 81 ec d0 00 00 00 sub $0xd0,%esp <== NOT EXECUTED
135900: 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);
135903: 8d bd 7c ff ff ff lea -0x84(%ebp),%edi <== NOT EXECUTED
135909: 57 push %edi <== NOT EXECUTED
13590a: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
13590d: 53 push %ebx <== NOT EXECUTED
13590e: e8 56 f3 ff ff call 134c69 <rtems_rfs_block_map_open><== NOT EXECUTED
135913: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
135915: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
135918: 85 c0 test %eax,%eax <== NOT EXECUTED
13591a: 0f 8f 83 02 00 00 jg 135ba3 <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;
135920: c6 45 cc 00 movb $0x0,-0x34(%ebp) <== NOT EXECUTED
handle->bnum = 0;
135924: c7 45 d0 00 00 00 00 movl $0x0,-0x30(%ebp) <== NOT EXECUTED
handle->buffer = NULL;
13592b: 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;
135932: c7 45 d8 00 00 00 00 movl $0x0,-0x28(%ebp) <== NOT EXECUTED
bpos->boff = 0;
135939: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp) <== NOT EXECUTED
bpos->block = 0;
135940: 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) <
135947: 8b 45 14 mov 0x14(%ebp),%eax <== NOT EXECUTED
13594a: 83 c0 0a add $0xa,%eax <== NOT EXECUTED
13594d: 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);
135953: 8d 55 e4 lea -0x1c(%ebp),%edx <== NOT EXECUTED
135956: 52 push %edx <== NOT EXECUTED
135957: 8d 4d d8 lea -0x28(%ebp),%ecx <== NOT EXECUTED
13595a: 51 push %ecx <== NOT EXECUTED
13595b: 8d 85 7c ff ff ff lea -0x84(%ebp),%eax <== NOT EXECUTED
135961: 50 push %eax <== NOT EXECUTED
135962: 53 push %ebx <== NOT EXECUTED
135963: e8 20 e9 ff ff call 134288 <rtems_rfs_block_map_find><== NOT EXECUTED
if (rc > 0)
135968: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13596b: b2 01 mov $0x1,%dl <== NOT EXECUTED
13596d: 85 c0 test %eax,%eax <== NOT EXECUTED
13596f: 7e 29 jle 13599a <rtems_rfs_dir_add_entry+0xa6><== NOT EXECUTED
{
if (rc != ENXIO)
135971: 83 f8 06 cmp $0x6,%eax <== NOT EXECUTED
135974: 0f 85 0b 02 00 00 jne 135b85 <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);
13597a: 8d 55 e4 lea -0x1c(%ebp),%edx <== NOT EXECUTED
13597d: 52 push %edx <== NOT EXECUTED
13597e: 6a 01 push $0x1 <== NOT EXECUTED
135980: 8d 8d 7c ff ff ff lea -0x84(%ebp),%ecx <== NOT EXECUTED
135986: 51 push %ecx <== NOT EXECUTED
135987: 53 push %ebx <== NOT EXECUTED
135988: e8 a1 ee ff ff call 13482e <rtems_rfs_block_map_grow><== NOT EXECUTED
if (rc > 0)
13598d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
135990: 85 c0 test %eax,%eax <== NOT EXECUTED
135992: 0f 8f ed 01 00 00 jg 135b85 <rtems_rfs_dir_add_entry+0x291><== NOT EXECUTED
135998: 31 d2 xor %edx,%edx <== NOT EXECUTED
}
read = false;
}
bpos.bno++;
13599a: ff 45 d8 incl -0x28(%ebp) <== NOT EXECUTED
rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, read);
13599d: 0f b6 c2 movzbl %dl,%eax <== NOT EXECUTED
1359a0: 50 push %eax <== NOT EXECUTED
1359a1: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
1359a4: 8d 45 cc lea -0x34(%ebp),%eax <== NOT EXECUTED
1359a7: 50 push %eax <== NOT EXECUTED
1359a8: 53 push %ebx <== NOT EXECUTED
1359a9: 88 95 38 ff ff ff mov %dl,-0xc8(%ebp) <== NOT EXECUTED
1359af: e8 ca f6 ff ff call 13507e <rtems_rfs_buffer_handle_request><== NOT EXECUTED
if (rc > 0)
1359b4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1359b7: 85 c0 test %eax,%eax <== NOT EXECUTED
1359b9: 8a 95 38 ff ff ff mov -0xc8(%ebp),%dl <== NOT EXECUTED
1359bf: 0f 8f c0 01 00 00 jg 135b85 <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);
1359c5: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED
1359c8: 8b 70 20 mov 0x20(%eax),%esi <== NOT EXECUTED
if (!read)
1359cb: 84 d2 test %dl,%dl <== NOT EXECUTED
1359cd: 75 09 jne 1359d8 <rtems_rfs_dir_add_entry+0xe4><== NOT EXECUTED
memset (entry, 0xff, rtems_rfs_fs_block_size (fs));
1359cf: 8b 4b 08 mov 0x8(%ebx),%ecx <== NOT EXECUTED
1359d2: b0 ff mov $0xff,%al <== NOT EXECUTED
1359d4: 89 f7 mov %esi,%edi <== NOT EXECUTED
1359d6: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED
offset = 0;
while (offset < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
1359d8: 8b 53 08 mov 0x8(%ebx),%edx <== NOT EXECUTED
1359db: 89 95 74 ff ff ff mov %edx,-0x8c(%ebp) <== NOT EXECUTED
1359e1: 83 ea 0a sub $0xa,%edx <== NOT EXECUTED
1359e4: 89 95 70 ff ff ff mov %edx,-0x90(%ebp) <== NOT EXECUTED
1359ea: 31 c9 xor %ecx,%ecx <== NOT EXECUTED
1359ec: 89 8d 34 ff ff ff mov %ecx,-0xcc(%ebp) <== NOT EXECUTED
1359f2: e9 77 01 00 00 jmp 135b6e <rtems_rfs_dir_add_entry+0x27a><== NOT EXECUTED
{
rtems_rfs_ino eino;
int elength;
elength = rtems_rfs_dir_entry_length (entry);
1359f7: 8d 4e 08 lea 0x8(%esi),%ecx <== NOT EXECUTED
1359fa: 89 8d 40 ff ff ff mov %ecx,-0xc0(%ebp) <== NOT EXECUTED
135a00: 8d 46 09 lea 0x9(%esi),%eax <== NOT EXECUTED
135a03: 89 85 44 ff ff ff mov %eax,-0xbc(%ebp) <== NOT EXECUTED
135a09: 0f b6 46 08 movzbl 0x8(%esi),%eax <== NOT EXECUTED
135a0d: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
135a10: 0f b6 56 09 movzbl 0x9(%esi),%edx <== NOT EXECUTED
135a14: 09 d0 or %edx,%eax <== NOT EXECUTED
eino = rtems_rfs_dir_entry_ino (entry);
135a16: 8a 16 mov (%esi),%dl <== NOT EXECUTED
135a18: 88 95 48 ff ff ff mov %dl,-0xb8(%ebp) <== NOT EXECUTED
135a1e: 8d 7e 01 lea 0x1(%esi),%edi <== NOT EXECUTED
135a21: 8a 4e 01 mov 0x1(%esi),%cl <== NOT EXECUTED
135a24: 88 8d 63 ff ff ff mov %cl,-0x9d(%ebp) <== NOT EXECUTED
135a2a: 8d 56 02 lea 0x2(%esi),%edx <== NOT EXECUTED
135a2d: 89 95 64 ff ff ff mov %edx,-0x9c(%ebp) <== NOT EXECUTED
135a33: 8a 4e 02 mov 0x2(%esi),%cl <== NOT EXECUTED
135a36: 88 8d 6b ff ff ff mov %cl,-0x95(%ebp) <== NOT EXECUTED
135a3c: 8d 56 03 lea 0x3(%esi),%edx <== NOT EXECUTED
135a3f: 89 95 6c ff ff ff mov %edx,-0x94(%ebp) <== NOT EXECUTED
135a45: 8a 56 03 mov 0x3(%esi),%dl <== NOT EXECUTED
if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)
135a48: 3d ff ff 00 00 cmp $0xffff,%eax <== NOT EXECUTED
135a4d: 0f 85 bc 00 00 00 jne 135b0f <rtems_rfs_dir_add_entry+0x21b><== NOT EXECUTED
135a53: 8b 8d 34 ff ff ff mov -0xcc(%ebp),%ecx <== NOT EXECUTED
{
if ((length + RTEMS_RFS_DIR_ENTRY_SIZE) <
135a59: 8b 85 74 ff ff ff mov -0x8c(%ebp),%eax <== NOT EXECUTED
135a5f: 29 c8 sub %ecx,%eax <== NOT EXECUTED
135a61: 39 85 3c ff ff ff cmp %eax,-0xc4(%ebp) <== NOT EXECUTED
135a67: 0f 83 e6 fe ff ff jae 135953 <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);
135a6d: 50 push %eax <== NOT EXECUTED
135a6e: 50 push %eax <== NOT EXECUTED
135a6f: ff 75 14 pushl 0x14(%ebp) <== NOT EXECUTED
135a72: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
135a75: e8 5a 6c 00 00 call 13c6d4 <rtems_rfs_dir_hash> <== NOT EXECUTED
rtems_rfs_dir_set_entry_hash (entry, hash);
135a7a: 89 c2 mov %eax,%edx <== NOT EXECUTED
135a7c: c1 ea 18 shr $0x18,%edx <== NOT EXECUTED
135a7f: 88 56 04 mov %dl,0x4(%esi) <== NOT EXECUTED
135a82: 89 c2 mov %eax,%edx <== NOT EXECUTED
135a84: c1 ea 10 shr $0x10,%edx <== NOT EXECUTED
135a87: 88 56 05 mov %dl,0x5(%esi) <== NOT EXECUTED
135a8a: 89 c2 mov %eax,%edx <== NOT EXECUTED
135a8c: c1 ea 08 shr $0x8,%edx <== NOT EXECUTED
135a8f: 88 56 06 mov %dl,0x6(%esi) <== NOT EXECUTED
135a92: 88 46 07 mov %al,0x7(%esi) <== NOT EXECUTED
rtems_rfs_dir_set_entry_ino (entry, ino);
135a95: 8b 45 18 mov 0x18(%ebp),%eax <== NOT EXECUTED
135a98: c1 e8 18 shr $0x18,%eax <== NOT EXECUTED
135a9b: 88 06 mov %al,(%esi) <== NOT EXECUTED
135a9d: 8b 45 18 mov 0x18(%ebp),%eax <== NOT EXECUTED
135aa0: c1 e8 10 shr $0x10,%eax <== NOT EXECUTED
135aa3: 88 07 mov %al,(%edi) <== NOT EXECUTED
135aa5: 8b 45 18 mov 0x18(%ebp),%eax <== NOT EXECUTED
135aa8: c1 e8 08 shr $0x8,%eax <== NOT EXECUTED
135aab: 8b 95 64 ff ff ff mov -0x9c(%ebp),%edx <== NOT EXECUTED
135ab1: 88 02 mov %al,(%edx) <== NOT EXECUTED
135ab3: 8a 4d 18 mov 0x18(%ebp),%cl <== NOT EXECUTED
135ab6: 8b 85 6c ff ff ff mov -0x94(%ebp),%eax <== NOT EXECUTED
135abc: 88 08 mov %cl,(%eax) <== NOT EXECUTED
rtems_rfs_dir_set_entry_length (entry,
135abe: 8b 45 14 mov 0x14(%ebp),%eax <== NOT EXECUTED
135ac1: 83 c0 0a add $0xa,%eax <== NOT EXECUTED
135ac4: 66 c1 e8 08 shr $0x8,%ax <== NOT EXECUTED
135ac8: 8b 95 40 ff ff ff mov -0xc0(%ebp),%edx <== NOT EXECUTED
135ace: 88 02 mov %al,(%edx) <== NOT EXECUTED
135ad0: 8a 45 14 mov 0x14(%ebp),%al <== NOT EXECUTED
135ad3: 83 c0 0a add $0xa,%eax <== NOT EXECUTED
135ad6: 8b 8d 44 ff ff ff mov -0xbc(%ebp),%ecx <== NOT EXECUTED
135adc: 88 01 mov %al,(%ecx) <== NOT EXECUTED
RTEMS_RFS_DIR_ENTRY_SIZE + length);
memcpy (entry + RTEMS_RFS_DIR_ENTRY_SIZE, name, length);
135ade: 8d 46 0a lea 0xa(%esi),%eax <== NOT EXECUTED
135ae1: 89 c7 mov %eax,%edi <== NOT EXECUTED
135ae3: 8b 75 10 mov 0x10(%ebp),%esi <== NOT EXECUTED
135ae6: 8b 4d 14 mov 0x14(%ebp),%ecx <== NOT EXECUTED
135ae9: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&buffer);
135aeb: c6 45 cc 01 movb $0x1,-0x34(%ebp) <== NOT EXECUTED
rtems_rfs_buffer_handle_close (fs, &buffer);
135aef: 8d 55 cc lea -0x34(%ebp),%edx <== NOT EXECUTED
135af2: 89 d8 mov %ebx,%eax <== NOT EXECUTED
135af4: e8 23 f7 ff ff call 13521c <rtems_rfs_buffer_handle_close><== NOT EXECUTED
rtems_rfs_block_map_close (fs, &map);
135af9: 5e pop %esi <== NOT EXECUTED
135afa: 5f pop %edi <== NOT EXECUTED
135afb: 8d 85 7c ff ff ff lea -0x84(%ebp),%eax <== NOT EXECUTED
135b01: 50 push %eax <== NOT EXECUTED
135b02: 53 push %ebx <== NOT EXECUTED
135b03: e8 be ef ff ff call 134ac6 <rtems_rfs_block_map_close><== NOT EXECUTED
135b08: 31 f6 xor %esi,%esi <== NOT EXECUTED
135b0a: e9 91 00 00 00 jmp 135ba0 <rtems_rfs_dir_add_entry+0x2ac><== NOT EXECUTED
}
break;
}
if (rtems_rfs_dir_entry_valid (fs, elength, eino))
135b0f: 83 f8 0a cmp $0xa,%eax <== NOT EXECUTED
135b12: 7e 32 jle 135b46 <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);
135b14: 0f b6 d2 movzbl %dl,%edx <== NOT EXECUTED
135b17: 8a 8d 48 ff ff ff mov -0xb8(%ebp),%cl <== NOT EXECUTED
135b1d: c1 e1 18 shl $0x18,%ecx <== NOT EXECUTED
135b20: 09 ca or %ecx,%edx <== NOT EXECUTED
135b22: 0f b6 bd 63 ff ff ff movzbl -0x9d(%ebp),%edi <== NOT EXECUTED
135b29: c1 e7 10 shl $0x10,%edi <== NOT EXECUTED
135b2c: 09 fa or %edi,%edx <== NOT EXECUTED
135b2e: 0f b6 bd 6b ff ff ff movzbl -0x95(%ebp),%edi <== NOT EXECUTED
135b35: c1 e7 08 shl $0x8,%edi <== NOT EXECUTED
}
break;
}
if (rtems_rfs_dir_entry_valid (fs, elength, eino))
135b38: 09 fa or %edi,%edx <== NOT EXECUTED
135b3a: 74 0a je 135b46 <rtems_rfs_dir_add_entry+0x252><== NOT EXECUTED
135b3c: 3b 43 18 cmp 0x18(%ebx),%eax <== NOT EXECUTED
135b3f: 73 05 jae 135b46 <rtems_rfs_dir_add_entry+0x252><== NOT EXECUTED
135b41: 3b 53 10 cmp 0x10(%ebx),%edx <== NOT EXECUTED
135b44: 76 20 jbe 135b66 <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);
135b46: 8d 55 cc lea -0x34(%ebp),%edx <== NOT EXECUTED
135b49: 89 d8 mov %ebx,%eax <== NOT EXECUTED
135b4b: e8 cc f6 ff ff call 13521c <rtems_rfs_buffer_handle_close><== NOT EXECUTED
rtems_rfs_block_map_close (fs, &map);
135b50: 51 push %ecx <== NOT EXECUTED
135b51: 51 push %ecx <== NOT EXECUTED
135b52: 8d 85 7c ff ff ff lea -0x84(%ebp),%eax <== NOT EXECUTED
135b58: 50 push %eax <== NOT EXECUTED
135b59: 53 push %ebx <== NOT EXECUTED
135b5a: e8 67 ef ff ff call 134ac6 <rtems_rfs_block_map_close><== NOT EXECUTED
135b5f: be 05 00 00 00 mov $0x5,%esi <== NOT EXECUTED
135b64: eb 3a jmp 135ba0 <rtems_rfs_dir_add_entry+0x2ac><== NOT EXECUTED
return EIO;
}
entry += elength;
135b66: 01 c6 add %eax,%esi <== NOT EXECUTED
offset += elength;
135b68: 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))
135b6e: 8b 85 70 ff ff ff mov -0x90(%ebp),%eax <== NOT EXECUTED
135b74: 39 85 34 ff ff ff cmp %eax,-0xcc(%ebp) <== NOT EXECUTED
135b7a: 0f 83 d3 fd ff ff jae 135953 <rtems_rfs_dir_add_entry+0x5f><== NOT EXECUTED
135b80: e9 72 fe ff ff jmp 1359f7 <rtems_rfs_dir_add_entry+0x103><== NOT EXECUTED
135b85: 89 c6 mov %eax,%esi <== NOT EXECUTED
entry += elength;
offset += elength;
}
}
rtems_rfs_buffer_handle_close (fs, &buffer);
135b87: 8d 55 cc lea -0x34(%ebp),%edx <== NOT EXECUTED
135b8a: 89 d8 mov %ebx,%eax <== NOT EXECUTED
135b8c: e8 8b f6 ff ff call 13521c <rtems_rfs_buffer_handle_close><== NOT EXECUTED
rtems_rfs_block_map_close (fs, &map);
135b91: 52 push %edx <== NOT EXECUTED
135b92: 52 push %edx <== NOT EXECUTED
135b93: 8d 85 7c ff ff ff lea -0x84(%ebp),%eax <== NOT EXECUTED
135b99: 50 push %eax <== NOT EXECUTED
135b9a: 53 push %ebx <== NOT EXECUTED
135b9b: e8 26 ef ff ff call 134ac6 <rtems_rfs_block_map_close><== NOT EXECUTED
return rc;
135ba0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
135ba3: 89 f0 mov %esi,%eax <== NOT EXECUTED
135ba5: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
135ba8: 5b pop %ebx <== NOT EXECUTED
135ba9: 5e pop %esi <== NOT EXECUTED
135baa: 5f pop %edi <== NOT EXECUTED
135bab: c9 leave <== NOT EXECUTED
135bac: c3 ret <== NOT EXECUTED
0013566d <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)
{
13566d: 55 push %ebp <== NOT EXECUTED
13566e: 89 e5 mov %esp,%ebp <== NOT EXECUTED
135670: 57 push %edi <== NOT EXECUTED
135671: 56 push %esi <== NOT EXECUTED
135672: 53 push %ebx <== NOT EXECUTED
135673: 81 ec a0 00 00 00 sub $0xa0,%esp <== NOT EXECUTED
135679: 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);
13567c: 8d 7d 88 lea -0x78(%ebp),%edi <== NOT EXECUTED
13567f: 57 push %edi <== NOT EXECUTED
135680: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
135683: 53 push %ebx <== NOT EXECUTED
135684: e8 e0 f5 ff ff call 134c69 <rtems_rfs_block_map_open><== NOT EXECUTED
135689: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
13568b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13568e: 85 c0 test %eax,%eax <== NOT EXECUTED
135690: 0f 8f 54 02 00 00 jg 1358ea <rtems_rfs_dir_del_entry+0x27d><== NOT EXECUTED
return rc;
rc = rtems_rfs_block_map_seek (fs, &map, offset, &block);
135696: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
135699: 8d 55 e4 lea -0x1c(%ebp),%edx <== NOT EXECUTED
13569c: 52 push %edx <== NOT EXECUTED
13569d: 8b 45 14 mov 0x14(%ebp),%eax <== NOT EXECUTED
1356a0: 89 45 80 mov %eax,-0x80(%ebp) <== NOT EXECUTED
1356a3: c7 45 84 00 00 00 00 movl $0x0,-0x7c(%ebp) <== NOT EXECUTED
1356aa: ff 75 84 pushl -0x7c(%ebp) <== NOT EXECUTED
1356ad: ff 75 80 pushl -0x80(%ebp) <== NOT EXECUTED
1356b0: 57 push %edi <== NOT EXECUTED
1356b1: 53 push %ebx <== NOT EXECUTED
1356b2: 89 95 60 ff ff ff mov %edx,-0xa0(%ebp) <== NOT EXECUTED
1356b8: e8 07 ed ff ff call 1343c4 <rtems_rfs_block_map_seek><== NOT EXECUTED
1356bd: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
1356bf: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
1356c2: 85 c0 test %eax,%eax <== NOT EXECUTED
1356c4: 7e 12 jle 1356d8 <rtems_rfs_dir_del_entry+0x6b><== NOT EXECUTED
{
if (rc == ENXIO)
1356c6: 83 f8 06 cmp $0x6,%eax <== NOT EXECUTED
1356c9: 0f 85 0c 02 00 00 jne 1358db <rtems_rfs_dir_del_entry+0x26e><== NOT EXECUTED
1356cf: 66 be 02 00 mov $0x2,%si <== NOT EXECUTED
1356d3: e9 03 02 00 00 jmp 1358db <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;
1356d8: c6 45 d8 00 movb $0x0,-0x28(%ebp) <== NOT EXECUTED
handle->bnum = 0;
1356dc: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp) <== NOT EXECUTED
handle->buffer = NULL;
1356e3: 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;
1356ea: 83 7d 14 00 cmpl $0x0,0x14(%ebp) <== NOT EXECUTED
1356ee: 0f 94 85 77 ff ff ff sete -0x89(%ebp) <== NOT EXECUTED
1356f5: 31 f6 xor %esi,%esi <== NOT EXECUTED
while (rc == 0)
1356f7: e9 cd 01 00 00 jmp 1358c9 <rtems_rfs_dir_del_entry+0x25c><== NOT EXECUTED
{
uint8_t* entry;
int eoffset;
rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, true);
1356fc: 6a 01 push $0x1 <== NOT EXECUTED
1356fe: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
135701: 8d 55 d8 lea -0x28(%ebp),%edx <== NOT EXECUTED
135704: 52 push %edx <== NOT EXECUTED
135705: 53 push %ebx <== NOT EXECUTED
135706: e8 73 f9 ff ff call 13507e <rtems_rfs_buffer_handle_request><== NOT EXECUTED
13570b: 89 85 7c ff ff ff mov %eax,-0x84(%ebp) <== NOT EXECUTED
if (rc > 0)
135711: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
135714: 85 c0 test %eax,%eax <== NOT EXECUTED
135716: 7e 07 jle 13571f <rtems_rfs_dir_del_entry+0xb2><== NOT EXECUTED
135718: 89 c6 mov %eax,%esi <== NOT EXECUTED
13571a: e9 b2 01 00 00 jmp 1358d1 <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)
13571f: c7 45 80 00 00 00 00 movl $0x0,-0x80(%ebp) <== NOT EXECUTED
135726: 80 bd 77 ff ff ff 00 cmpb $0x0,-0x89(%ebp) <== NOT EXECUTED
13572d: 75 0b jne 13573a <rtems_rfs_dir_del_entry+0xcd><== NOT EXECUTED
eoffset = 0;
else
eoffset = offset % rtems_rfs_fs_block_size (fs);
13572f: 8b 45 14 mov 0x14(%ebp),%eax <== NOT EXECUTED
135732: 31 d2 xor %edx,%edx <== NOT EXECUTED
135734: f7 73 08 divl 0x8(%ebx) <== NOT EXECUTED
135737: 89 55 80 mov %edx,-0x80(%ebp) <== NOT EXECUTED
entry = rtems_rfs_buffer_data (&buffer) + eoffset;
13573a: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
13573d: 8b 7d 80 mov -0x80(%ebp),%edi <== NOT EXECUTED
135740: 03 78 20 add 0x20(%eax),%edi <== NOT EXECUTED
while (eoffset < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
135743: 8b 4b 08 mov 0x8(%ebx),%ecx <== NOT EXECUTED
135746: 89 8d 78 ff ff ff mov %ecx,-0x88(%ebp) <== NOT EXECUTED
13574c: 83 e9 0a sub $0xa,%ecx <== NOT EXECUTED
13574f: 89 8d 70 ff ff ff mov %ecx,-0x90(%ebp) <== NOT EXECUTED
135755: e9 28 01 00 00 jmp 135882 <rtems_rfs_dir_del_entry+0x215><== NOT EXECUTED
{
rtems_rfs_ino eino;
int elength;
elength = rtems_rfs_dir_entry_length (entry);
13575a: 8d 47 08 lea 0x8(%edi),%eax <== NOT EXECUTED
13575d: 89 85 64 ff ff ff mov %eax,-0x9c(%ebp) <== NOT EXECUTED
135763: 8d 57 09 lea 0x9(%edi),%edx <== NOT EXECUTED
135766: 89 95 68 ff ff ff mov %edx,-0x98(%ebp) <== NOT EXECUTED
13576c: 0f b6 4f 08 movzbl 0x8(%edi),%ecx <== NOT EXECUTED
135770: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
135773: 0f b6 47 09 movzbl 0x9(%edi),%eax <== NOT EXECUTED
135777: 09 c1 or %eax,%ecx <== NOT EXECUTED
eino = rtems_rfs_dir_entry_ino (entry);
135779: 8a 17 mov (%edi),%dl <== NOT EXECUTED
13577b: 8a 47 01 mov 0x1(%edi),%al <== NOT EXECUTED
13577e: 88 85 6e ff ff ff mov %al,-0x92(%ebp) <== NOT EXECUTED
135784: 8a 47 02 mov 0x2(%edi),%al <== NOT EXECUTED
135787: 88 85 6f ff ff ff mov %al,-0x91(%ebp) <== NOT EXECUTED
13578d: 8a 47 03 mov 0x3(%edi),%al <== NOT EXECUTED
if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)
135790: 81 f9 ff ff 00 00 cmp $0xffff,%ecx <== NOT EXECUTED
135796: 0f 84 f5 00 00 00 je 135891 <rtems_rfs_dir_del_entry+0x224><== NOT EXECUTED
break;
if (rtems_rfs_dir_entry_valid (fs, elength, eino))
13579c: 83 f9 0a cmp $0xa,%ecx <== NOT EXECUTED
13579f: 0f 8e 14 01 00 00 jle 1358b9 <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);
1357a5: 0f b6 c0 movzbl %al,%eax <== NOT EXECUTED
1357a8: c1 e2 18 shl $0x18,%edx <== NOT EXECUTED
1357ab: 09 d0 or %edx,%eax <== NOT EXECUTED
1357ad: 0f b6 95 6e ff ff ff movzbl -0x92(%ebp),%edx <== NOT EXECUTED
1357b4: c1 e2 10 shl $0x10,%edx <== NOT EXECUTED
1357b7: 09 d0 or %edx,%eax <== NOT EXECUTED
1357b9: 0f b6 95 6f ff ff ff movzbl -0x91(%ebp),%edx <== NOT EXECUTED
1357c0: 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))
1357c3: 09 d0 or %edx,%eax <== NOT EXECUTED
1357c5: 0f 84 ee 00 00 00 je 1358b9 <rtems_rfs_dir_del_entry+0x24c><== NOT EXECUTED
1357cb: 3b 4b 18 cmp 0x18(%ebx),%ecx <== NOT EXECUTED
1357ce: 0f 83 e5 00 00 00 jae 1358b9 <rtems_rfs_dir_del_entry+0x24c><== NOT EXECUTED
1357d4: 3b 43 10 cmp 0x10(%ebx),%eax <== NOT EXECUTED
1357d7: 0f 87 dc 00 00 00 ja 1358b9 <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))
1357dd: 39 45 10 cmp %eax,0x10(%ebp) <== NOT EXECUTED
1357e0: 0f 85 8e 00 00 00 jne 135874 <rtems_rfs_dir_del_entry+0x207><== NOT EXECUTED
{
uint32_t remaining;
remaining = rtems_rfs_fs_block_size (fs) - (eoffset + elength);
1357e6: 8b 55 80 mov -0x80(%ebp),%edx <== NOT EXECUTED
1357e9: 01 ca add %ecx,%edx <== NOT EXECUTED
1357eb: 8b 85 78 ff ff ff mov -0x88(%ebp),%eax <== NOT EXECUTED
1357f1: 29 d0 sub %edx,%eax <== NOT EXECUTED
1357f3: 89 c2 mov %eax,%edx <== NOT EXECUTED
memmove (entry, entry + elength, remaining);
1357f5: 50 push %eax <== NOT EXECUTED
1357f6: 52 push %edx <== NOT EXECUTED
1357f7: 8d 04 0f lea (%edi,%ecx,1),%eax <== NOT EXECUTED
1357fa: 50 push %eax <== NOT EXECUTED
1357fb: 57 push %edi <== NOT EXECUTED
1357fc: 89 95 60 ff ff ff mov %edx,-0xa0(%ebp) <== NOT EXECUTED
135802: 89 8d 5c ff ff ff mov %ecx,-0xa4(%ebp) <== NOT EXECUTED
135808: e8 23 a6 00 00 call 13fe30 <memmove> <== NOT EXECUTED
memset (entry + remaining, 0xff, elength);
13580d: 8b 95 60 ff ff ff mov -0xa0(%ebp),%edx <== NOT EXECUTED
135813: 8d 14 17 lea (%edi,%edx,1),%edx <== NOT EXECUTED
135816: b0 ff mov $0xff,%al <== NOT EXECUTED
135818: 8b 8d 5c ff ff ff mov -0xa4(%ebp),%ecx <== NOT EXECUTED
13581e: 89 d7 mov %edx,%edi <== NOT EXECUTED
135820: 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);
135822: 8b 95 64 ff ff ff mov -0x9c(%ebp),%edx <== NOT EXECUTED
135828: 0f b6 02 movzbl (%edx),%eax <== NOT EXECUTED
13582b: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
13582e: 8b 8d 68 ff ff ff mov -0x98(%ebp),%ecx <== NOT EXECUTED
135834: 0f b6 11 movzbl (%ecx),%edx <== NOT EXECUTED
135837: 09 d0 or %edx,%eax <== NOT EXECUTED
135839: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13583c: 3d ff ff 00 00 cmp $0xffff,%eax <== NOT EXECUTED
135841: 75 2b jne 13586e <rtems_rfs_dir_del_entry+0x201><== NOT EXECUTED
135843: 83 7d 80 00 cmpl $0x0,-0x80(%ebp) <== NOT EXECUTED
135847: 75 25 jne 13586e <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))
135849: 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) &&
13584c: 85 c0 test %eax,%eax <== NOT EXECUTED
13584e: 75 06 jne 135856 <rtems_rfs_dir_del_entry+0x1e9><== NOT EXECUTED
135850: 83 7d 90 00 cmpl $0x0,-0x70(%ebp) <== NOT EXECUTED
135854: 74 08 je 13585e <rtems_rfs_dir_del_entry+0x1f1><== NOT EXECUTED
135856: 8b 55 90 mov -0x70(%ebp),%edx <== NOT EXECUTED
135859: 4a dec %edx <== NOT EXECUTED
13585a: 39 d0 cmp %edx,%eax <== NOT EXECUTED
13585c: 75 10 jne 13586e <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);
13585e: 57 push %edi <== NOT EXECUTED
13585f: 6a 01 push $0x1 <== NOT EXECUTED
135861: 8d 45 88 lea -0x78(%ebp),%eax <== NOT EXECUTED
135864: 50 push %eax <== NOT EXECUTED
135865: 53 push %ebx <== NOT EXECUTED
135866: e8 4e ec ff ff call 1344b9 <rtems_rfs_block_map_shrink><== NOT EXECUTED
13586b: 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);
13586e: c6 45 d8 01 movb $0x1,-0x28(%ebp) <== NOT EXECUTED
135872: eb 5d jmp 1358d1 <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)
135874: 80 bd 77 ff ff ff 00 cmpb $0x0,-0x89(%ebp) <== NOT EXECUTED
13587b: 74 3c je 1358b9 <rtems_rfs_dir_del_entry+0x24c><== NOT EXECUTED
{
rc = EIO;
break;
}
entry += elength;
13587d: 01 cf add %ecx,%edi <== NOT EXECUTED
eoffset += elength;
13587f: 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))
135882: 8b 85 70 ff ff ff mov -0x90(%ebp),%eax <== NOT EXECUTED
135888: 39 45 80 cmp %eax,-0x80(%ebp) <== NOT EXECUTED
13588b: 0f 82 c9 fe ff ff jb 13575a <rtems_rfs_dir_del_entry+0xed><== NOT EXECUTED
entry += elength;
eoffset += elength;
}
if (rc == 0)
135891: 83 bd 7c ff ff ff 00 cmpl $0x0,-0x84(%ebp) <== NOT EXECUTED
135898: 75 29 jne 1358c3 <rtems_rfs_dir_del_entry+0x256><== NOT EXECUTED
{
rc = rtems_rfs_block_map_next_block (fs, &map, &block);
13589a: 51 push %ecx <== NOT EXECUTED
13589b: 8d 55 e4 lea -0x1c(%ebp),%edx <== NOT EXECUTED
13589e: 52 push %edx <== NOT EXECUTED
13589f: 8d 4d 88 lea -0x78(%ebp),%ecx <== NOT EXECUTED
1358a2: 51 push %ecx <== NOT EXECUTED
1358a3: 53 push %ebx <== NOT EXECUTED
1358a4: e8 eb ea ff ff call 134394 <rtems_rfs_block_map_next_block><== NOT EXECUTED
1358a9: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc == ENXIO)
1358ab: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1358ae: 83 f8 06 cmp $0x6,%eax <== NOT EXECUTED
1358b1: 75 16 jne 1358c9 <rtems_rfs_dir_del_entry+0x25c><== NOT EXECUTED
1358b3: 66 be 02 00 mov $0x2,%si <== NOT EXECUTED
1358b7: eb 18 jmp 1358d1 <rtems_rfs_dir_del_entry+0x264><== NOT EXECUTED
1358b9: c7 85 7c ff ff ff 05 movl $0x5,-0x84(%ebp) <== NOT EXECUTED
1358c0: 00 00 00
1358c3: 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)
1358c9: 85 f6 test %esi,%esi <== NOT EXECUTED
1358cb: 0f 84 2b fe ff ff je 1356fc <rtems_rfs_dir_del_entry+0x8f><== NOT EXECUTED
if (rc == ENXIO)
rc = ENOENT;
}
}
rtems_rfs_buffer_handle_close (fs, &buffer);
1358d1: 8d 55 d8 lea -0x28(%ebp),%edx <== NOT EXECUTED
1358d4: 89 d8 mov %ebx,%eax <== NOT EXECUTED
1358d6: e8 41 f9 ff ff call 13521c <rtems_rfs_buffer_handle_close><== NOT EXECUTED
rtems_rfs_block_map_close (fs, &map);
1358db: 52 push %edx <== NOT EXECUTED
1358dc: 52 push %edx <== NOT EXECUTED
1358dd: 8d 45 88 lea -0x78(%ebp),%eax <== NOT EXECUTED
1358e0: 50 push %eax <== NOT EXECUTED
1358e1: 53 push %ebx <== NOT EXECUTED
1358e2: e8 df f1 ff ff call 134ac6 <rtems_rfs_block_map_close><== NOT EXECUTED
return rc;
1358e7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
1358ea: 89 f0 mov %esi,%eax <== NOT EXECUTED
1358ec: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1358ef: 5b pop %ebx <== NOT EXECUTED
1358f0: 5e pop %esi <== NOT EXECUTED
1358f1: 5f pop %edi <== NOT EXECUTED
1358f2: c9 leave <== NOT EXECUTED
1358f3: c3 ret <== NOT EXECUTED
00135244 <rtems_rfs_dir_empty>:
}
int
rtems_rfs_dir_empty (rtems_rfs_file_system* fs,
rtems_rfs_inode_handle* dir)
{
135244: 55 push %ebp <== NOT EXECUTED
135245: 89 e5 mov %esp,%ebp <== NOT EXECUTED
135247: 57 push %edi <== NOT EXECUTED
135248: 56 push %esi <== NOT EXECUTED
135249: 53 push %ebx <== NOT EXECUTED
13524a: 83 c4 80 add $0xffffff80,%esp <== NOT EXECUTED
13524d: 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);
135250: 8d 7d 88 lea -0x78(%ebp),%edi <== NOT EXECUTED
135253: 57 push %edi <== NOT EXECUTED
135254: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
135257: 56 push %esi <== NOT EXECUTED
135258: e8 0c fa ff ff call 134c69 <rtems_rfs_block_map_open><== NOT EXECUTED
13525d: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc > 0)
13525f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
135262: 85 c0 test %eax,%eax <== NOT EXECUTED
135264: 0f 8f 42 01 00 00 jg 1353ac <rtems_rfs_dir_empty+0x168><== NOT EXECUTED
return rc;
rc = rtems_rfs_block_map_seek (fs, &map, 0, &block);
13526a: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13526d: 8d 55 e4 lea -0x1c(%ebp),%edx <== NOT EXECUTED
135270: 52 push %edx <== NOT EXECUTED
135271: 6a 00 push $0x0 <== NOT EXECUTED
135273: 6a 00 push $0x0 <== NOT EXECUTED
135275: 57 push %edi <== NOT EXECUTED
135276: 56 push %esi <== NOT EXECUTED
135277: 89 95 78 ff ff ff mov %edx,-0x88(%ebp) <== NOT EXECUTED
13527d: e8 42 f1 ff ff call 1343c4 <rtems_rfs_block_map_seek><== NOT EXECUTED
135282: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc > 0)
135284: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
135287: 85 c0 test %eax,%eax <== NOT EXECUTED
135289: 7e 08 jle 135293 <rtems_rfs_dir_empty+0x4f><== NOT EXECUTED
{
rtems_rfs_block_map_close (fs, &map);
13528b: 51 push %ecx <== NOT EXECUTED
13528c: 51 push %ecx <== NOT EXECUTED
13528d: 57 push %edi <== NOT EXECUTED
13528e: e9 10 01 00 00 jmp 1353a3 <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;
135293: c6 45 d8 00 movb $0x0,-0x28(%ebp) <== NOT EXECUTED
handle->bnum = 0;
135297: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp) <== NOT EXECUTED
handle->buffer = NULL;
13529e: 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);
1352a5: 6a 01 push $0x1 <== NOT EXECUTED
1352a7: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
1352aa: 8d 45 d8 lea -0x28(%ebp),%eax <== NOT EXECUTED
1352ad: 50 push %eax <== NOT EXECUTED
1352ae: 56 push %esi <== NOT EXECUTED
1352af: e8 ca fd ff ff call 13507e <rtems_rfs_buffer_handle_request><== NOT EXECUTED
1352b4: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc > 0)
1352b6: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1352b9: 85 c0 test %eax,%eax <== NOT EXECUTED
1352bb: 0f 8f d2 00 00 00 jg 135393 <rtems_rfs_dir_empty+0x14f><== NOT EXECUTED
break;
entry = rtems_rfs_buffer_data (&buffer);
1352c1: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
1352c4: 8b 50 20 mov 0x20(%eax),%edx <== NOT EXECUTED
offset = 0;
while (offset < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
1352c7: 8b 46 08 mov 0x8(%esi),%eax <== NOT EXECUTED
1352ca: 83 e8 0a sub $0xa,%eax <== NOT EXECUTED
1352cd: 89 45 80 mov %eax,-0x80(%ebp) <== NOT EXECUTED
1352d0: c7 45 84 00 00 00 00 movl $0x0,-0x7c(%ebp) <== NOT EXECUTED
1352d7: eb 7e jmp 135357 <rtems_rfs_dir_empty+0x113><== NOT EXECUTED
{
rtems_rfs_ino eino;
int elength;
elength = rtems_rfs_dir_entry_length (entry);
1352d9: 0f b6 42 08 movzbl 0x8(%edx),%eax <== NOT EXECUTED
1352dd: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
1352e0: 0f b6 4a 09 movzbl 0x9(%edx),%ecx <== NOT EXECUTED
1352e4: 09 c8 or %ecx,%eax <== NOT EXECUTED
eino = rtems_rfs_dir_entry_ino (entry);
1352e6: 0f b6 3a movzbl (%edx),%edi <== NOT EXECUTED
1352e9: 8a 4a 01 mov 0x1(%edx),%cl <== NOT EXECUTED
1352ec: 88 8d 7e ff ff ff mov %cl,-0x82(%ebp) <== NOT EXECUTED
1352f2: 8a 4a 02 mov 0x2(%edx),%cl <== NOT EXECUTED
1352f5: 88 8d 7f ff ff ff mov %cl,-0x81(%ebp) <== NOT EXECUTED
1352fb: 8a 4a 03 mov 0x3(%edx),%cl <== NOT EXECUTED
if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)
1352fe: 3d ff ff 00 00 cmp $0xffff,%eax <== NOT EXECUTED
135303: 74 5e je 135363 <rtems_rfs_dir_empty+0x11f><== NOT EXECUTED
break;
if (rtems_rfs_dir_entry_valid (fs, elength, eino))
135305: 83 f8 0a cmp $0xa,%eax <== NOT EXECUTED
135308: 7e 59 jle 135363 <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);
13530a: 0f b6 c9 movzbl %cl,%ecx <== NOT EXECUTED
13530d: c1 e7 18 shl $0x18,%edi <== NOT EXECUTED
135310: 09 f9 or %edi,%ecx <== NOT EXECUTED
135312: 0f b6 bd 7e ff ff ff movzbl -0x82(%ebp),%edi <== NOT EXECUTED
135319: c1 e7 10 shl $0x10,%edi <== NOT EXECUTED
13531c: 09 f9 or %edi,%ecx <== NOT EXECUTED
13531e: 0f b6 bd 7f ff ff ff movzbl -0x81(%ebp),%edi <== NOT EXECUTED
135325: 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))
135328: 09 f9 or %edi,%ecx <== NOT EXECUTED
13532a: 74 37 je 135363 <rtems_rfs_dir_empty+0x11f><== NOT EXECUTED
13532c: 3b 46 18 cmp 0x18(%esi),%eax <== NOT EXECUTED
13532f: 73 32 jae 135363 <rtems_rfs_dir_empty+0x11f><== NOT EXECUTED
135331: 3b 4e 10 cmp 0x10(%esi),%ecx <== NOT EXECUTED
135334: 77 2d ja 135363 <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)) ||
135336: 83 f8 0b cmp $0xb,%eax <== NOT EXECUTED
135339: 75 06 jne 135341 <rtems_rfs_dir_empty+0xfd><== NOT EXECUTED
(entry[RTEMS_RFS_DIR_ENTRY_SIZE] != '.')) &&
13533b: 80 7a 0a 2e cmpb $0x2e,0xa(%edx) <== NOT EXECUTED
13533f: eb 0f jmp 135350 <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)) ||
135341: 83 f8 0c cmp $0xc,%eax <== NOT EXECUTED
135344: 75 47 jne 13538d <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] != '.') ||
135346: 80 7a 0a 2e cmpb $0x2e,0xa(%edx) <== NOT EXECUTED
13534a: 75 41 jne 13538d <rtems_rfs_dir_empty+0x149><== NOT EXECUTED
(entry[RTEMS_RFS_DIR_ENTRY_SIZE + 1] != '.')))
13534c: 80 7a 0b 2e cmpb $0x2e,0xb(%edx) <== NOT EXECUTED
135350: 75 3b jne 13538d <rtems_rfs_dir_empty+0x149><== NOT EXECUTED
{
empty = false;
break;
}
entry += elength;
135352: 01 c2 add %eax,%edx <== NOT EXECUTED
offset += elength;
135354: 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))
135357: 8b 45 80 mov -0x80(%ebp),%eax <== NOT EXECUTED
13535a: 39 45 84 cmp %eax,-0x7c(%ebp) <== NOT EXECUTED
13535d: 0f 82 76 ff ff ff jb 1352d9 <rtems_rfs_dir_empty+0x95><== NOT EXECUTED
offset += elength;
}
if (empty)
{
rc = rtems_rfs_block_map_next_block (fs, &map, &block);
135363: 52 push %edx <== NOT EXECUTED
135364: 8d 4d e4 lea -0x1c(%ebp),%ecx <== NOT EXECUTED
135367: 51 push %ecx <== NOT EXECUTED
135368: 8d 45 88 lea -0x78(%ebp),%eax <== NOT EXECUTED
13536b: 50 push %eax <== NOT EXECUTED
13536c: 56 push %esi <== NOT EXECUTED
13536d: e8 22 f0 ff ff call 134394 <rtems_rfs_block_map_next_block><== NOT EXECUTED
135372: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc > 0)
135374: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
135377: 85 c0 test %eax,%eax <== NOT EXECUTED
135379: 0f 8e 26 ff ff ff jle 1352a5 <rtems_rfs_dir_empty+0x61><== NOT EXECUTED
{
if (rc == ENXIO)
13537f: 31 c0 xor %eax,%eax <== NOT EXECUTED
135381: 83 fb 06 cmp $0x6,%ebx <== NOT EXECUTED
135384: 0f 95 c0 setne %al <== NOT EXECUTED
135387: f7 d8 neg %eax <== NOT EXECUTED
135389: 21 c3 and %eax,%ebx <== NOT EXECUTED
13538b: eb 06 jmp 135393 <rtems_rfs_dir_empty+0x14f><== NOT EXECUTED
break;
}
}
}
if ((rc == 0) && !empty)
13538d: 85 db test %ebx,%ebx <== NOT EXECUTED
13538f: 75 02 jne 135393 <rtems_rfs_dir_empty+0x14f><== NOT EXECUTED
135391: b3 5a mov $0x5a,%bl <== NOT EXECUTED
rc = ENOTEMPTY;
rtems_rfs_buffer_handle_close (fs, &buffer);
135393: 8d 55 d8 lea -0x28(%ebp),%edx <== NOT EXECUTED
135396: 89 f0 mov %esi,%eax <== NOT EXECUTED
135398: e8 7f fe ff ff call 13521c <rtems_rfs_buffer_handle_close><== NOT EXECUTED
rtems_rfs_block_map_close (fs, &map);
13539d: 50 push %eax <== NOT EXECUTED
13539e: 50 push %eax <== NOT EXECUTED
13539f: 8d 45 88 lea -0x78(%ebp),%eax <== NOT EXECUTED
1353a2: 50 push %eax <== NOT EXECUTED
1353a3: 56 push %esi <== NOT EXECUTED
1353a4: e8 1d f7 ff ff call 134ac6 <rtems_rfs_block_map_close><== NOT EXECUTED
return rc;
1353a9: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
1353ac: 89 d8 mov %ebx,%eax <== NOT EXECUTED
1353ae: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1353b1: 5b pop %ebx <== NOT EXECUTED
1353b2: 5e pop %esi <== NOT EXECUTED
1353b3: 5f pop %edi <== NOT EXECUTED
1353b4: c9 leave <== NOT EXECUTED
1353b5: c3 ret <== NOT EXECUTED
0013c6d4 <rtems_rfs_dir_hash>:
*/
#define initval (20010928)
uint32_t
rtems_rfs_dir_hash (const void *key, size_t length)
{
13c6d4: 55 push %ebp <== NOT EXECUTED
13c6d5: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13c6d7: 57 push %edi <== NOT EXECUTED
13c6d8: 56 push %esi <== NOT EXECUTED
13c6d9: 53 push %ebx <== NOT EXECUTED
13c6da: 83 ec 04 sub $0x4,%esp <== NOT EXECUTED
13c6dd: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
13c6e0: 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;
13c6e3: 8d 83 9f 16 df df lea -0x2020e961(%ebx),%eax <== NOT EXECUTED
u.ptr = key;
if (HASH_LITTLE_ENDIAN && ((u.i & 0x3) == 0)) {
13c6e9: f6 c1 03 test $0x3,%cl <== NOT EXECUTED
13c6ec: 0f 85 ef 00 00 00 jne 13c7e1 <rtems_rfs_dir_hash+0x10d><== NOT EXECUTED
const uint32_t *k = (const uint32_t *)key; /* read 32-bit chunks */
13c6f2: 89 c2 mov %eax,%edx <== NOT EXECUTED
13c6f4: 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)
13c6f6: eb 57 jmp 13c74f <rtems_rfs_dir_hash+0x7b><== NOT EXECUTED
{
a += k[0];
13c6f8: 03 31 add (%ecx),%esi <== NOT EXECUTED
b += k[1];
13c6fa: 03 51 04 add 0x4(%ecx),%edx <== NOT EXECUTED
c += k[2];
13c6fd: 03 41 08 add 0x8(%ecx),%eax <== NOT EXECUTED
mix(a,b,c);
13c700: 29 c6 sub %eax,%esi <== NOT EXECUTED
13c702: 89 c7 mov %eax,%edi <== NOT EXECUTED
13c704: c1 cf 1c ror $0x1c,%edi <== NOT EXECUTED
13c707: 31 fe xor %edi,%esi <== NOT EXECUTED
13c709: 01 d0 add %edx,%eax <== NOT EXECUTED
13c70b: 29 f2 sub %esi,%edx <== NOT EXECUTED
13c70d: 89 f7 mov %esi,%edi <== NOT EXECUTED
13c70f: c1 cf 1a ror $0x1a,%edi <== NOT EXECUTED
13c712: 31 d7 xor %edx,%edi <== NOT EXECUTED
13c714: 01 c6 add %eax,%esi <== NOT EXECUTED
13c716: 29 f8 sub %edi,%eax <== NOT EXECUTED
13c718: 89 fa mov %edi,%edx <== NOT EXECUTED
13c71a: c1 ca 18 ror $0x18,%edx <== NOT EXECUTED
13c71d: 31 c2 xor %eax,%edx <== NOT EXECUTED
13c71f: 01 f7 add %esi,%edi <== NOT EXECUTED
13c721: 29 d6 sub %edx,%esi <== NOT EXECUTED
13c723: 89 d0 mov %edx,%eax <== NOT EXECUTED
13c725: c1 c8 10 ror $0x10,%eax <== NOT EXECUTED
13c728: 31 f0 xor %esi,%eax <== NOT EXECUTED
13c72a: 01 fa add %edi,%edx <== NOT EXECUTED
13c72c: 89 55 f0 mov %edx,-0x10(%ebp) <== NOT EXECUTED
13c72f: 29 c7 sub %eax,%edi <== NOT EXECUTED
13c731: 89 c2 mov %eax,%edx <== NOT EXECUTED
13c733: c1 ca 0d ror $0xd,%edx <== NOT EXECUTED
13c736: 31 fa xor %edi,%edx <== NOT EXECUTED
13c738: 8b 7d f0 mov -0x10(%ebp),%edi <== NOT EXECUTED
13c73b: 8d 34 38 lea (%eax,%edi,1),%esi <== NOT EXECUTED
13c73e: 29 d7 sub %edx,%edi <== NOT EXECUTED
13c740: 89 d0 mov %edx,%eax <== NOT EXECUTED
13c742: c1 c8 1c ror $0x1c,%eax <== NOT EXECUTED
13c745: 31 f8 xor %edi,%eax <== NOT EXECUTED
13c747: 01 f2 add %esi,%edx <== NOT EXECUTED
length -= 12;
13c749: 83 eb 0c sub $0xc,%ebx <== NOT EXECUTED
k += 3;
13c74c: 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)
13c74f: 83 fb 0c cmp $0xc,%ebx <== NOT EXECUTED
13c752: 77 a4 ja 13c6f8 <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)
13c754: 4b dec %ebx <== NOT EXECUTED
13c755: 83 fb 0b cmp $0xb,%ebx <== NOT EXECUTED
13c758: 0f 87 56 03 00 00 ja 13cab4 <rtems_rfs_dir_hash+0x3e0><== NOT EXECUTED
13c75e: ff 24 9d d8 dc 15 00 jmp *0x15dcd8(,%ebx,4) <== NOT EXECUTED
{
case 12: c+=k[2]; b+=k[1]; a+=k[0]; break;
13c765: 03 41 08 add 0x8(%ecx),%eax <== NOT EXECUTED
13c768: eb 0c jmp 13c776 <rtems_rfs_dir_hash+0xa2><== NOT EXECUTED
case 11: c+=k[2]&0xffffff; b+=k[1]; a+=k[0]; break;
13c76a: 8b 59 08 mov 0x8(%ecx),%ebx <== NOT EXECUTED
13c76d: 81 e3 ff ff ff 00 and $0xffffff,%ebx <== NOT EXECUTED
13c773: 8d 04 03 lea (%ebx,%eax,1),%eax <== NOT EXECUTED
13c776: 03 51 04 add 0x4(%ecx),%edx <== NOT EXECUTED
13c779: eb 38 jmp 13c7b3 <rtems_rfs_dir_hash+0xdf><== NOT EXECUTED
case 10: c+=k[2]&0xffff; b+=k[1]; a+=k[0]; break;
13c77b: 8b 59 08 mov 0x8(%ecx),%ebx <== NOT EXECUTED
13c77e: 81 e3 ff ff 00 00 and $0xffff,%ebx <== NOT EXECUTED
13c784: eb ed jmp 13c773 <rtems_rfs_dir_hash+0x9f><== NOT EXECUTED
case 9 : c+=k[2]&0xff; b+=k[1]; a+=k[0]; break;
13c786: 8b 59 08 mov 0x8(%ecx),%ebx <== NOT EXECUTED
13c789: 81 e3 ff 00 00 00 and $0xff,%ebx <== NOT EXECUTED
13c78f: eb e2 jmp 13c773 <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;
13c791: 8b 59 04 mov 0x4(%ecx),%ebx <== NOT EXECUTED
13c794: 81 e3 ff ff ff 00 and $0xffffff,%ebx <== NOT EXECUTED
13c79a: eb 14 jmp 13c7b0 <rtems_rfs_dir_hash+0xdc><== NOT EXECUTED
case 6 : b+=k[1]&0xffff; a+=k[0]; break;
13c79c: 8b 59 04 mov 0x4(%ecx),%ebx <== NOT EXECUTED
13c79f: 81 e3 ff ff 00 00 and $0xffff,%ebx <== NOT EXECUTED
13c7a5: eb 09 jmp 13c7b0 <rtems_rfs_dir_hash+0xdc><== NOT EXECUTED
case 5 : b+=k[1]&0xff; a+=k[0]; break;
13c7a7: 8b 59 04 mov 0x4(%ecx),%ebx <== NOT EXECUTED
13c7aa: 81 e3 ff 00 00 00 and $0xff,%ebx <== NOT EXECUTED
13c7b0: 8d 14 13 lea (%ebx,%edx,1),%edx <== NOT EXECUTED
case 4 : a+=k[0]; break;
13c7b3: 03 31 add (%ecx),%esi <== NOT EXECUTED
13c7b5: e9 bf 02 00 00 jmp 13ca79 <rtems_rfs_dir_hash+0x3a5><== NOT EXECUTED
case 3 : a+=k[0]&0xffffff; break;
13c7ba: 8b 09 mov (%ecx),%ecx <== NOT EXECUTED
13c7bc: 81 e1 ff ff ff 00 and $0xffffff,%ecx <== NOT EXECUTED
13c7c2: e9 4c 01 00 00 jmp 13c913 <rtems_rfs_dir_hash+0x23f><== NOT EXECUTED
case 2 : a+=k[0]&0xffff; break;
13c7c7: 8b 09 mov (%ecx),%ecx <== NOT EXECUTED
13c7c9: 81 e1 ff ff 00 00 and $0xffff,%ecx <== NOT EXECUTED
13c7cf: e9 3f 01 00 00 jmp 13c913 <rtems_rfs_dir_hash+0x23f><== NOT EXECUTED
case 1 : a+=k[0]&0xff; break;
13c7d4: 8b 09 mov (%ecx),%ecx <== NOT EXECUTED
13c7d6: 81 e1 ff 00 00 00 and $0xff,%ecx <== NOT EXECUTED
13c7dc: e9 32 01 00 00 jmp 13c913 <rtems_rfs_dir_hash+0x23f><== NOT EXECUTED
case 0 : return c;
}
#endif /* !valgrind */
} else if (HASH_LITTLE_ENDIAN && ((u.i & 0x1) == 0)) {
13c7e1: f6 c1 01 test $0x1,%cl <== NOT EXECUTED
13c7e4: 0f 85 31 01 00 00 jne 13c91b <rtems_rfs_dir_hash+0x247><== NOT EXECUTED
const uint16_t *k = (const uint16_t *)key; /* read 16-bit chunks */
13c7ea: 89 c2 mov %eax,%edx <== NOT EXECUTED
13c7ec: 89 c6 mov %eax,%esi <== NOT EXECUTED
const uint8_t *k8;
/*--------------- all but last block: aligned reads and different mixing */
while (length > 12)
13c7ee: e9 8d 00 00 00 jmp 13c880 <rtems_rfs_dir_hash+0x1ac><== NOT EXECUTED
{
a += k[0] + (((uint32_t)k[1])<<16);
13c7f3: 0f b7 79 02 movzwl 0x2(%ecx),%edi <== NOT EXECUTED
13c7f7: c1 e7 10 shl $0x10,%edi <== NOT EXECUTED
13c7fa: 89 7d f0 mov %edi,-0x10(%ebp) <== NOT EXECUTED
13c7fd: 0f b7 39 movzwl (%ecx),%edi <== NOT EXECUTED
13c800: 03 7d f0 add -0x10(%ebp),%edi <== NOT EXECUTED
13c803: 8d 34 37 lea (%edi,%esi,1),%esi <== NOT EXECUTED
b += k[2] + (((uint32_t)k[3])<<16);
13c806: 0f b7 79 06 movzwl 0x6(%ecx),%edi <== NOT EXECUTED
13c80a: c1 e7 10 shl $0x10,%edi <== NOT EXECUTED
13c80d: 89 7d f0 mov %edi,-0x10(%ebp) <== NOT EXECUTED
13c810: 0f b7 79 04 movzwl 0x4(%ecx),%edi <== NOT EXECUTED
13c814: 03 7d f0 add -0x10(%ebp),%edi <== NOT EXECUTED
13c817: 8d 14 17 lea (%edi,%edx,1),%edx <== NOT EXECUTED
13c81a: 89 55 f0 mov %edx,-0x10(%ebp) <== NOT EXECUTED
c += k[4] + (((uint32_t)k[5])<<16);
13c81d: 0f b7 51 0a movzwl 0xa(%ecx),%edx <== NOT EXECUTED
13c821: c1 e2 10 shl $0x10,%edx <== NOT EXECUTED
13c824: 0f b7 79 08 movzwl 0x8(%ecx),%edi <== NOT EXECUTED
13c828: 01 fa add %edi,%edx <== NOT EXECUTED
13c82a: 01 c2 add %eax,%edx <== NOT EXECUTED
mix(a,b,c);
13c82c: 29 d6 sub %edx,%esi <== NOT EXECUTED
13c82e: 89 d0 mov %edx,%eax <== NOT EXECUTED
13c830: c1 c8 1c ror $0x1c,%eax <== NOT EXECUTED
13c833: 31 c6 xor %eax,%esi <== NOT EXECUTED
13c835: 03 55 f0 add -0x10(%ebp),%edx <== NOT EXECUTED
13c838: 8b 45 f0 mov -0x10(%ebp),%eax <== NOT EXECUTED
13c83b: 29 f0 sub %esi,%eax <== NOT EXECUTED
13c83d: 89 f7 mov %esi,%edi <== NOT EXECUTED
13c83f: c1 cf 1a ror $0x1a,%edi <== NOT EXECUTED
13c842: 31 c7 xor %eax,%edi <== NOT EXECUTED
13c844: 8d 04 16 lea (%esi,%edx,1),%eax <== NOT EXECUTED
13c847: 89 d6 mov %edx,%esi <== NOT EXECUTED
13c849: 29 fe sub %edi,%esi <== NOT EXECUTED
13c84b: 89 fa mov %edi,%edx <== NOT EXECUTED
13c84d: c1 ca 18 ror $0x18,%edx <== NOT EXECUTED
13c850: 31 f2 xor %esi,%edx <== NOT EXECUTED
13c852: 8d 34 07 lea (%edi,%eax,1),%esi <== NOT EXECUTED
13c855: 89 c7 mov %eax,%edi <== NOT EXECUTED
13c857: 29 d7 sub %edx,%edi <== NOT EXECUTED
13c859: 89 d0 mov %edx,%eax <== NOT EXECUTED
13c85b: c1 c8 10 ror $0x10,%eax <== NOT EXECUTED
13c85e: 31 f8 xor %edi,%eax <== NOT EXECUTED
13c860: 8d 3c 32 lea (%edx,%esi,1),%edi <== NOT EXECUTED
13c863: 29 c6 sub %eax,%esi <== NOT EXECUTED
13c865: 89 c2 mov %eax,%edx <== NOT EXECUTED
13c867: c1 ca 0d ror $0xd,%edx <== NOT EXECUTED
13c86a: 31 f2 xor %esi,%edx <== NOT EXECUTED
13c86c: 8d 34 38 lea (%eax,%edi,1),%esi <== NOT EXECUTED
13c86f: 29 d7 sub %edx,%edi <== NOT EXECUTED
13c871: 89 d0 mov %edx,%eax <== NOT EXECUTED
13c873: c1 c8 1c ror $0x1c,%eax <== NOT EXECUTED
13c876: 31 f8 xor %edi,%eax <== NOT EXECUTED
13c878: 01 f2 add %esi,%edx <== NOT EXECUTED
length -= 12;
13c87a: 83 eb 0c sub $0xc,%ebx <== NOT EXECUTED
k += 6;
13c87d: 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)
13c880: 83 fb 0c cmp $0xc,%ebx <== NOT EXECUTED
13c883: 0f 87 6a ff ff ff ja 13c7f3 <rtems_rfs_dir_hash+0x11f><== NOT EXECUTED
k += 6;
}
/*----------------------------- handle the last (probably partial) block */
k8 = (const uint8_t *)k;
switch(length)
13c889: 4b dec %ebx <== NOT EXECUTED
13c88a: 83 fb 0b cmp $0xb,%ebx <== NOT EXECUTED
13c88d: 0f 87 21 02 00 00 ja 13cab4 <rtems_rfs_dir_hash+0x3e0><== NOT EXECUTED
13c893: ff 24 9d 08 dd 15 00 jmp *0x15dd08(,%ebx,4) <== NOT EXECUTED
{
case 12: c+=k[4]+(((uint32_t)k[5])<<16);
13c89a: 0f b7 59 08 movzwl 0x8(%ecx),%ebx <== NOT EXECUTED
13c89e: 8d 04 03 lea (%ebx,%eax,1),%eax <== NOT EXECUTED
13c8a1: 0f b7 59 0a movzwl 0xa(%ecx),%ebx <== NOT EXECUTED
13c8a5: c1 e3 10 shl $0x10,%ebx <== NOT EXECUTED
13c8a8: eb 0e jmp 13c8b8 <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 */
13c8aa: 0f b6 59 0a movzbl 0xa(%ecx),%ebx <== NOT EXECUTED
13c8ae: c1 e3 10 shl $0x10,%ebx <== NOT EXECUTED
13c8b1: 8d 04 03 lea (%ebx,%eax,1),%eax <== NOT EXECUTED
case 10: c+=k[4];
13c8b4: 0f b7 59 08 movzwl 0x8(%ecx),%ebx <== NOT EXECUTED
13c8b8: 01 d8 add %ebx,%eax <== NOT EXECUTED
b+=k[2]+(((uint32_t)k[3])<<16);
13c8ba: 0f b7 59 04 movzwl 0x4(%ecx),%ebx <== NOT EXECUTED
13c8be: 8d 14 13 lea (%ebx,%edx,1),%edx <== NOT EXECUTED
13c8c1: 0f b7 59 06 movzwl 0x6(%ecx),%ebx <== NOT EXECUTED
13c8c5: c1 e3 10 shl $0x10,%ebx <== NOT EXECUTED
13c8c8: eb 17 jmp 13c8e1 <rtems_rfs_dir_hash+0x20d><== NOT EXECUTED
a+=k[0]+(((uint32_t)k[1])<<16);
break;
case 9 : c+=k8[8]; /* fall through */
13c8ca: 0f b6 59 08 movzbl 0x8(%ecx),%ebx <== NOT EXECUTED
13c8ce: 8d 04 03 lea (%ebx,%eax,1),%eax <== NOT EXECUTED
13c8d1: eb e7 jmp 13c8ba <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 */
13c8d3: 0f b6 59 06 movzbl 0x6(%ecx),%ebx <== NOT EXECUTED
13c8d7: c1 e3 10 shl $0x10,%ebx <== NOT EXECUTED
13c8da: 8d 14 13 lea (%ebx,%edx,1),%edx <== NOT EXECUTED
case 6 : b+=k[2];
13c8dd: 0f b7 59 04 movzwl 0x4(%ecx),%ebx <== NOT EXECUTED
13c8e1: 01 da add %ebx,%edx <== NOT EXECUTED
13c8e3: eb 07 jmp 13c8ec <rtems_rfs_dir_hash+0x218><== NOT EXECUTED
a+=k[0]+(((uint32_t)k[1])<<16);
break;
case 5 : b+=k8[4]; /* fall through */
13c8e5: 0f b6 59 04 movzbl 0x4(%ecx),%ebx <== NOT EXECUTED
13c8e9: 8d 14 13 lea (%ebx,%edx,1),%edx <== NOT EXECUTED
case 4 : a+=k[0]+(((uint32_t)k[1])<<16);
13c8ec: 0f b7 19 movzwl (%ecx),%ebx <== NOT EXECUTED
13c8ef: 8d 34 33 lea (%ebx,%esi,1),%esi <== NOT EXECUTED
13c8f2: 0f b7 49 02 movzwl 0x2(%ecx),%ecx <== NOT EXECUTED
13c8f6: c1 e1 10 shl $0x10,%ecx <== NOT EXECUTED
13c8f9: e9 79 01 00 00 jmp 13ca77 <rtems_rfs_dir_hash+0x3a3><== NOT EXECUTED
break;
case 3 : a+=((uint32_t)k8[2])<<16; /* fall through */
13c8fe: 0f b6 59 02 movzbl 0x2(%ecx),%ebx <== NOT EXECUTED
13c902: c1 e3 10 shl $0x10,%ebx <== NOT EXECUTED
13c905: 8d 34 33 lea (%ebx,%esi,1),%esi <== NOT EXECUTED
case 2 : a+=k[0];
13c908: 0f b7 09 movzwl (%ecx),%ecx <== NOT EXECUTED
13c90b: e9 67 01 00 00 jmp 13ca77 <rtems_rfs_dir_hash+0x3a3><== NOT EXECUTED
break;
case 1 : a+=k8[0];
13c910: 0f b6 09 movzbl (%ecx),%ecx <== NOT EXECUTED
13c913: 8d 34 31 lea (%ecx,%esi,1),%esi <== NOT EXECUTED
break;
13c916: e9 5e 01 00 00 jmp 13ca79 <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;
13c91b: 89 c2 mov %eax,%edx <== NOT EXECUTED
13c91d: 89 c6 mov %eax,%esi <== NOT EXECUTED
/*--------------- all but the last block: affect some 32 bits of (a,b,c) */
while (length > 12)
13c91f: e9 d6 00 00 00 jmp 13c9fa <rtems_rfs_dir_hash+0x326><== NOT EXECUTED
{
a += k[0];
13c924: 0f b6 79 01 movzbl 0x1(%ecx),%edi <== NOT EXECUTED
13c928: c1 e7 08 shl $0x8,%edi <== NOT EXECUTED
13c92b: 89 7d f0 mov %edi,-0x10(%ebp) <== NOT EXECUTED
13c92e: 0f b6 79 02 movzbl 0x2(%ecx),%edi <== NOT EXECUTED
13c932: c1 e7 10 shl $0x10,%edi <== NOT EXECUTED
13c935: 03 7d f0 add -0x10(%ebp),%edi <== NOT EXECUTED
13c938: 89 7d f0 mov %edi,-0x10(%ebp) <== NOT EXECUTED
a += ((uint32_t)k[1])<<8;
13c93b: 0f b6 39 movzbl (%ecx),%edi <== NOT EXECUTED
13c93e: 03 7d f0 add -0x10(%ebp),%edi <== NOT EXECUTED
13c941: 89 7d f0 mov %edi,-0x10(%ebp) <== NOT EXECUTED
a += ((uint32_t)k[2])<<16;
13c944: 0f b6 79 03 movzbl 0x3(%ecx),%edi <== NOT EXECUTED
13c948: c1 e7 18 shl $0x18,%edi <== NOT EXECUTED
13c94b: 03 7d f0 add -0x10(%ebp),%edi <== NOT EXECUTED
a += ((uint32_t)k[3])<<24;
13c94e: 8d 34 37 lea (%edi,%esi,1),%esi <== NOT EXECUTED
b += k[4];
13c951: 0f b6 79 05 movzbl 0x5(%ecx),%edi <== NOT EXECUTED
13c955: c1 e7 08 shl $0x8,%edi <== NOT EXECUTED
13c958: 89 7d f0 mov %edi,-0x10(%ebp) <== NOT EXECUTED
13c95b: 0f b6 79 06 movzbl 0x6(%ecx),%edi <== NOT EXECUTED
13c95f: c1 e7 10 shl $0x10,%edi <== NOT EXECUTED
13c962: 03 7d f0 add -0x10(%ebp),%edi <== NOT EXECUTED
13c965: 89 7d f0 mov %edi,-0x10(%ebp) <== NOT EXECUTED
b += ((uint32_t)k[5])<<8;
13c968: 0f b6 79 04 movzbl 0x4(%ecx),%edi <== NOT EXECUTED
13c96c: 03 7d f0 add -0x10(%ebp),%edi <== NOT EXECUTED
13c96f: 89 7d f0 mov %edi,-0x10(%ebp) <== NOT EXECUTED
b += ((uint32_t)k[6])<<16;
13c972: 0f b6 79 07 movzbl 0x7(%ecx),%edi <== NOT EXECUTED
13c976: c1 e7 18 shl $0x18,%edi <== NOT EXECUTED
13c979: 03 7d f0 add -0x10(%ebp),%edi <== NOT EXECUTED
b += ((uint32_t)k[7])<<24;
13c97c: 8d 14 17 lea (%edi,%edx,1),%edx <== NOT EXECUTED
13c97f: 89 55 f0 mov %edx,-0x10(%ebp) <== NOT EXECUTED
c += k[8];
13c982: 0f b6 79 09 movzbl 0x9(%ecx),%edi <== NOT EXECUTED
13c986: c1 e7 08 shl $0x8,%edi <== NOT EXECUTED
13c989: 0f b6 51 0a movzbl 0xa(%ecx),%edx <== NOT EXECUTED
13c98d: c1 e2 10 shl $0x10,%edx <== NOT EXECUTED
13c990: 8d 14 17 lea (%edi,%edx,1),%edx <== NOT EXECUTED
c += ((uint32_t)k[9])<<8;
13c993: 0f b6 79 08 movzbl 0x8(%ecx),%edi <== NOT EXECUTED
13c997: 8d 3c 3a lea (%edx,%edi,1),%edi <== NOT EXECUTED
c += ((uint32_t)k[10])<<16;
13c99a: 0f b6 51 0b movzbl 0xb(%ecx),%edx <== NOT EXECUTED
13c99e: c1 e2 18 shl $0x18,%edx <== NOT EXECUTED
13c9a1: 8d 14 17 lea (%edi,%edx,1),%edx <== NOT EXECUTED
c += ((uint32_t)k[11])<<24;
13c9a4: 01 c2 add %eax,%edx <== NOT EXECUTED
mix(a,b,c);
13c9a6: 29 d6 sub %edx,%esi <== NOT EXECUTED
13c9a8: 89 d0 mov %edx,%eax <== NOT EXECUTED
13c9aa: c1 c8 1c ror $0x1c,%eax <== NOT EXECUTED
13c9ad: 31 c6 xor %eax,%esi <== NOT EXECUTED
13c9af: 03 55 f0 add -0x10(%ebp),%edx <== NOT EXECUTED
13c9b2: 8b 45 f0 mov -0x10(%ebp),%eax <== NOT EXECUTED
13c9b5: 29 f0 sub %esi,%eax <== NOT EXECUTED
13c9b7: 89 f7 mov %esi,%edi <== NOT EXECUTED
13c9b9: c1 cf 1a ror $0x1a,%edi <== NOT EXECUTED
13c9bc: 31 c7 xor %eax,%edi <== NOT EXECUTED
13c9be: 8d 04 16 lea (%esi,%edx,1),%eax <== NOT EXECUTED
13c9c1: 89 d6 mov %edx,%esi <== NOT EXECUTED
13c9c3: 29 fe sub %edi,%esi <== NOT EXECUTED
13c9c5: 89 fa mov %edi,%edx <== NOT EXECUTED
13c9c7: c1 ca 18 ror $0x18,%edx <== NOT EXECUTED
13c9ca: 31 f2 xor %esi,%edx <== NOT EXECUTED
13c9cc: 8d 34 07 lea (%edi,%eax,1),%esi <== NOT EXECUTED
13c9cf: 89 c7 mov %eax,%edi <== NOT EXECUTED
13c9d1: 29 d7 sub %edx,%edi <== NOT EXECUTED
13c9d3: 89 d0 mov %edx,%eax <== NOT EXECUTED
13c9d5: c1 c8 10 ror $0x10,%eax <== NOT EXECUTED
13c9d8: 31 f8 xor %edi,%eax <== NOT EXECUTED
13c9da: 8d 3c 32 lea (%edx,%esi,1),%edi <== NOT EXECUTED
13c9dd: 29 c6 sub %eax,%esi <== NOT EXECUTED
13c9df: 89 c2 mov %eax,%edx <== NOT EXECUTED
13c9e1: c1 ca 0d ror $0xd,%edx <== NOT EXECUTED
13c9e4: 31 f2 xor %esi,%edx <== NOT EXECUTED
13c9e6: 8d 34 38 lea (%eax,%edi,1),%esi <== NOT EXECUTED
13c9e9: 29 d7 sub %edx,%edi <== NOT EXECUTED
13c9eb: 89 d0 mov %edx,%eax <== NOT EXECUTED
13c9ed: c1 c8 1c ror $0x1c,%eax <== NOT EXECUTED
13c9f0: 31 f8 xor %edi,%eax <== NOT EXECUTED
13c9f2: 01 f2 add %esi,%edx <== NOT EXECUTED
length -= 12;
13c9f4: 83 eb 0c sub $0xc,%ebx <== NOT EXECUTED
k += 12;
13c9f7: 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)
13c9fa: 83 fb 0c cmp $0xc,%ebx <== NOT EXECUTED
13c9fd: 0f 87 21 ff ff ff ja 13c924 <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 */
13ca03: 4b dec %ebx <== NOT EXECUTED
13ca04: 83 fb 0b cmp $0xb,%ebx <== NOT EXECUTED
13ca07: 0f 87 a7 00 00 00 ja 13cab4 <rtems_rfs_dir_hash+0x3e0><== NOT EXECUTED
13ca0d: ff 24 9d 38 dd 15 00 jmp *0x15dd38(,%ebx,4) <== NOT EXECUTED
{
case 12: c+=((uint32_t)k[11])<<24;
13ca14: 0f b6 59 0b movzbl 0xb(%ecx),%ebx <== NOT EXECUTED
13ca18: c1 e3 18 shl $0x18,%ebx <== NOT EXECUTED
13ca1b: 8d 04 03 lea (%ebx,%eax,1),%eax <== NOT EXECUTED
case 11: c+=((uint32_t)k[10])<<16;
13ca1e: 0f b6 59 0a movzbl 0xa(%ecx),%ebx <== NOT EXECUTED
13ca22: c1 e3 10 shl $0x10,%ebx <== NOT EXECUTED
13ca25: 01 d8 add %ebx,%eax <== NOT EXECUTED
case 10: c+=((uint32_t)k[9])<<8;
13ca27: 0f b6 59 09 movzbl 0x9(%ecx),%ebx <== NOT EXECUTED
13ca2b: c1 e3 08 shl $0x8,%ebx <== NOT EXECUTED
13ca2e: 01 d8 add %ebx,%eax <== NOT EXECUTED
case 9 : c+=k[8];
13ca30: 0f b6 59 08 movzbl 0x8(%ecx),%ebx <== NOT EXECUTED
13ca34: 01 d8 add %ebx,%eax <== NOT EXECUTED
case 8 : b+=((uint32_t)k[7])<<24;
13ca36: 0f b6 59 07 movzbl 0x7(%ecx),%ebx <== NOT EXECUTED
13ca3a: c1 e3 18 shl $0x18,%ebx <== NOT EXECUTED
13ca3d: 8d 14 13 lea (%ebx,%edx,1),%edx <== NOT EXECUTED
case 7 : b+=((uint32_t)k[6])<<16;
13ca40: 0f b6 59 06 movzbl 0x6(%ecx),%ebx <== NOT EXECUTED
13ca44: c1 e3 10 shl $0x10,%ebx <== NOT EXECUTED
13ca47: 01 da add %ebx,%edx <== NOT EXECUTED
case 6 : b+=((uint32_t)k[5])<<8;
13ca49: 0f b6 59 05 movzbl 0x5(%ecx),%ebx <== NOT EXECUTED
13ca4d: c1 e3 08 shl $0x8,%ebx <== NOT EXECUTED
13ca50: 01 da add %ebx,%edx <== NOT EXECUTED
case 5 : b+=k[4];
13ca52: 0f b6 59 04 movzbl 0x4(%ecx),%ebx <== NOT EXECUTED
13ca56: 01 da add %ebx,%edx <== NOT EXECUTED
case 4 : a+=((uint32_t)k[3])<<24;
13ca58: 0f b6 59 03 movzbl 0x3(%ecx),%ebx <== NOT EXECUTED
13ca5c: c1 e3 18 shl $0x18,%ebx <== NOT EXECUTED
13ca5f: 8d 34 33 lea (%ebx,%esi,1),%esi <== NOT EXECUTED
case 3 : a+=((uint32_t)k[2])<<16;
13ca62: 0f b6 59 02 movzbl 0x2(%ecx),%ebx <== NOT EXECUTED
13ca66: c1 e3 10 shl $0x10,%ebx <== NOT EXECUTED
13ca69: 01 de add %ebx,%esi <== NOT EXECUTED
case 2 : a+=((uint32_t)k[1])<<8;
13ca6b: 0f b6 59 01 movzbl 0x1(%ecx),%ebx <== NOT EXECUTED
13ca6f: c1 e3 08 shl $0x8,%ebx <== NOT EXECUTED
13ca72: 01 de add %ebx,%esi <== NOT EXECUTED
case 1 : a+=k[0];
13ca74: 0f b6 09 movzbl (%ecx),%ecx <== NOT EXECUTED
13ca77: 01 ce add %ecx,%esi <== NOT EXECUTED
break;
case 0 : return c;
}
}
final(a,b,c);
13ca79: 31 d0 xor %edx,%eax <== NOT EXECUTED
13ca7b: 89 d1 mov %edx,%ecx <== NOT EXECUTED
13ca7d: c1 c9 12 ror $0x12,%ecx <== NOT EXECUTED
13ca80: 29 c8 sub %ecx,%eax <== NOT EXECUTED
13ca82: 31 c6 xor %eax,%esi <== NOT EXECUTED
13ca84: 89 c1 mov %eax,%ecx <== NOT EXECUTED
13ca86: c1 c9 15 ror $0x15,%ecx <== NOT EXECUTED
13ca89: 29 ce sub %ecx,%esi <== NOT EXECUTED
13ca8b: 31 f2 xor %esi,%edx <== NOT EXECUTED
13ca8d: 89 f1 mov %esi,%ecx <== NOT EXECUTED
13ca8f: c1 c9 07 ror $0x7,%ecx <== NOT EXECUTED
13ca92: 29 ca sub %ecx,%edx <== NOT EXECUTED
13ca94: 31 d0 xor %edx,%eax <== NOT EXECUTED
13ca96: 89 d1 mov %edx,%ecx <== NOT EXECUTED
13ca98: c1 c9 10 ror $0x10,%ecx <== NOT EXECUTED
13ca9b: 29 c8 sub %ecx,%eax <== NOT EXECUTED
13ca9d: 31 c6 xor %eax,%esi <== NOT EXECUTED
13ca9f: 89 c1 mov %eax,%ecx <== NOT EXECUTED
13caa1: c1 c9 1c ror $0x1c,%ecx <== NOT EXECUTED
13caa4: 29 ce sub %ecx,%esi <== NOT EXECUTED
13caa6: 31 f2 xor %esi,%edx <== NOT EXECUTED
13caa8: c1 ce 12 ror $0x12,%esi <== NOT EXECUTED
13caab: 29 f2 sub %esi,%edx <== NOT EXECUTED
13caad: 31 d0 xor %edx,%eax <== NOT EXECUTED
13caaf: c1 ca 08 ror $0x8,%edx <== NOT EXECUTED
13cab2: 29 d0 sub %edx,%eax <== NOT EXECUTED
return c;
}
13cab4: 5a pop %edx <== NOT EXECUTED
13cab5: 5b pop %ebx <== NOT EXECUTED
13cab6: 5e pop %esi <== NOT EXECUTED
13cab7: 5f pop %edi <== NOT EXECUTED
13cab8: c9 leave <== NOT EXECUTED
13cab9: c3 ret <== NOT EXECUTED
00135bad <rtems_rfs_dir_lookup_ino>:
rtems_rfs_inode_handle* inode,
const char* name,
int length,
rtems_rfs_ino* ino,
uint32_t* offset)
{
135bad: 55 push %ebp <== NOT EXECUTED
135bae: 89 e5 mov %esp,%ebp <== NOT EXECUTED
135bb0: 57 push %edi <== NOT EXECUTED
135bb1: 56 push %esi <== NOT EXECUTED
135bb2: 53 push %ebx <== NOT EXECUTED
135bb3: 81 ec a0 00 00 00 sub $0xa0,%esp <== NOT EXECUTED
135bb9: 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;
135bbc: 8b 45 18 mov 0x18(%ebp),%eax <== NOT EXECUTED
135bbf: c7 00 00 00 00 00 movl $0x0,(%eax) <== NOT EXECUTED
*offset = 0;
135bc5: 8b 55 1c mov 0x1c(%ebp),%edx <== NOT EXECUTED
135bc8: c7 02 00 00 00 00 movl $0x0,(%edx) <== NOT EXECUTED
rc = rtems_rfs_block_map_open (fs, inode, &map);
135bce: 8d 7d 88 lea -0x78(%ebp),%edi <== NOT EXECUTED
135bd1: 57 push %edi <== NOT EXECUTED
135bd2: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
135bd5: 53 push %ebx <== NOT EXECUTED
135bd6: e8 8e f0 ff ff call 134c69 <rtems_rfs_block_map_open><== NOT EXECUTED
135bdb: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
135bdd: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
135be0: 85 c0 test %eax,%eax <== NOT EXECUTED
135be2: 0f 8f e9 01 00 00 jg 135dd1 <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;
135be8: c6 45 d8 00 movb $0x0,-0x28(%ebp) <== NOT EXECUTED
handle->bnum = 0;
135bec: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp) <== NOT EXECUTED
handle->buffer = NULL;
135bf3: 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);
135bfa: 56 push %esi <== NOT EXECUTED
135bfb: 56 push %esi <== NOT EXECUTED
135bfc: ff 75 14 pushl 0x14(%ebp) <== NOT EXECUTED
135bff: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
135c02: e8 cd 6a 00 00 call 13c6d4 <rtems_rfs_dir_hash> <== NOT EXECUTED
135c07: 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);
135c0a: 8d 55 e4 lea -0x1c(%ebp),%edx <== NOT EXECUTED
135c0d: 89 14 24 mov %edx,(%esp) <== NOT EXECUTED
135c10: 6a 00 push $0x0 <== NOT EXECUTED
135c12: 6a 00 push $0x0 <== NOT EXECUTED
135c14: 57 push %edi <== NOT EXECUTED
135c15: 53 push %ebx <== NOT EXECUTED
135c16: 89 95 64 ff ff ff mov %edx,-0x9c(%ebp) <== NOT EXECUTED
135c1c: e8 a3 e7 ff ff call 1343c4 <rtems_rfs_block_map_seek><== NOT EXECUTED
135c21: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
135c23: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
135c26: 85 c0 test %eax,%eax <== NOT EXECUTED
135c28: 0f 8e 76 01 00 00 jle 135da4 <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)
135c2e: 83 f8 06 cmp $0x6,%eax <== NOT EXECUTED
135c31: 0f 85 81 01 00 00 jne 135db8 <rtems_rfs_dir_lookup_ino+0x20b><== NOT EXECUTED
135c37: e9 58 01 00 00 jmp 135d94 <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);
135c3c: 6a 01 push $0x1 <== NOT EXECUTED
135c3e: 50 push %eax <== NOT EXECUTED
135c3f: 8d 4d d8 lea -0x28(%ebp),%ecx <== NOT EXECUTED
135c42: 51 push %ecx <== NOT EXECUTED
135c43: 53 push %ebx <== NOT EXECUTED
135c44: e8 35 f4 ff ff call 13507e <rtems_rfs_buffer_handle_request><== NOT EXECUTED
135c49: 89 45 84 mov %eax,-0x7c(%ebp) <== NOT EXECUTED
if (rc > 0)
135c4c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
135c4f: 85 c0 test %eax,%eax <== NOT EXECUTED
135c51: 0f 8f 5e 01 00 00 jg 135db5 <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);
135c57: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
135c5a: 8b 78 20 mov 0x20(%eax),%edi <== NOT EXECUTED
map.bpos.boff = 0;
135c5d: 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))
135c64: e9 fd 00 00 00 jmp 135d66 <rtems_rfs_dir_lookup_ino+0x1b9><== NOT EXECUTED
{
uint32_t ehash;
int elength;
ehash = rtems_rfs_dir_entry_hash (entry);
135c69: 8a 47 04 mov 0x4(%edi),%al <== NOT EXECUTED
135c6c: 88 85 68 ff ff ff mov %al,-0x98(%ebp) <== NOT EXECUTED
135c72: 8a 57 05 mov 0x5(%edi),%dl <== NOT EXECUTED
135c75: 88 95 7d ff ff ff mov %dl,-0x83(%ebp) <== NOT EXECUTED
135c7b: 8a 4f 06 mov 0x6(%edi),%cl <== NOT EXECUTED
135c7e: 88 8d 7e ff ff ff mov %cl,-0x82(%ebp) <== NOT EXECUTED
135c84: 8a 47 07 mov 0x7(%edi),%al <== NOT EXECUTED
135c87: 88 85 7f ff ff ff mov %al,-0x81(%ebp) <== NOT EXECUTED
elength = rtems_rfs_dir_entry_length (entry);
135c8d: 0f b6 57 08 movzbl 0x8(%edi),%edx <== NOT EXECUTED
135c91: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
135c94: 0f b6 47 09 movzbl 0x9(%edi),%eax <== NOT EXECUTED
135c98: 09 c2 or %eax,%edx <== NOT EXECUTED
*ino = rtems_rfs_dir_entry_ino (entry);
135c9a: 0f b6 47 03 movzbl 0x3(%edi),%eax <== NOT EXECUTED
135c9e: 0f b6 0f movzbl (%edi),%ecx <== NOT EXECUTED
135ca1: c1 e1 18 shl $0x18,%ecx <== NOT EXECUTED
135ca4: 09 c8 or %ecx,%eax <== NOT EXECUTED
135ca6: 0f b6 4f 01 movzbl 0x1(%edi),%ecx <== NOT EXECUTED
135caa: c1 e1 10 shl $0x10,%ecx <== NOT EXECUTED
135cad: 09 c8 or %ecx,%eax <== NOT EXECUTED
135caf: 0f b6 4f 02 movzbl 0x2(%edi),%ecx <== NOT EXECUTED
135cb3: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
135cb6: 09 c8 or %ecx,%eax <== NOT EXECUTED
135cb8: 8b 4d 18 mov 0x18(%ebp),%ecx <== NOT EXECUTED
135cbb: 89 01 mov %eax,(%ecx) <== NOT EXECUTED
if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)
135cbd: 81 fa ff ff 00 00 cmp $0xffff,%edx <== NOT EXECUTED
135cc3: 0f 84 ac 00 00 00 je 135d75 <rtems_rfs_dir_lookup_ino+0x1c8><== NOT EXECUTED
break;
if (rtems_rfs_dir_entry_valid (fs, elength, *ino))
135cc9: 83 fa 0a cmp $0xa,%edx <== NOT EXECUTED
135ccc: 0f 8e c8 00 00 00 jle 135d9a <rtems_rfs_dir_lookup_ino+0x1ed><== NOT EXECUTED
135cd2: 3b 53 18 cmp 0x18(%ebx),%edx <== NOT EXECUTED
135cd5: 0f 83 bf 00 00 00 jae 135d9a <rtems_rfs_dir_lookup_ino+0x1ed><== NOT EXECUTED
135cdb: 85 c0 test %eax,%eax <== NOT EXECUTED
135cdd: 0f 84 b7 00 00 00 je 135d9a <rtems_rfs_dir_lookup_ino+0x1ed><== NOT EXECUTED
135ce3: 3b 43 10 cmp 0x10(%ebx),%eax <== NOT EXECUTED
135ce6: 0f 87 ae 00 00 00 ja 135d9a <rtems_rfs_dir_lookup_ino+0x1ed><== NOT EXECUTED
rtems_rfs_inode_ino (inode), elength, *ino, map.bpos.boff);
rc = EIO;
break;
}
if (ehash == hash)
135cec: 8a 85 68 ff ff ff mov -0x98(%ebp),%al <== NOT EXECUTED
135cf2: c1 e0 18 shl $0x18,%eax <== NOT EXECUTED
135cf5: 0f b6 8d 7d ff ff ff movzbl -0x83(%ebp),%ecx <== NOT EXECUTED
135cfc: c1 e1 10 shl $0x10,%ecx <== NOT EXECUTED
135cff: 09 c8 or %ecx,%eax <== NOT EXECUTED
135d01: 0f b6 8d 7f ff ff ff movzbl -0x81(%ebp),%ecx <== NOT EXECUTED
135d08: 09 c8 or %ecx,%eax <== NOT EXECUTED
135d0a: 0f b6 8d 7e ff ff ff movzbl -0x82(%ebp),%ecx <== NOT EXECUTED
135d11: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
135d14: 09 c8 or %ecx,%eax <== NOT EXECUTED
135d16: 3b 45 80 cmp -0x80(%ebp),%eax <== NOT EXECUTED
135d19: 75 46 jne 135d61 <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)
135d1b: 8d 47 0a lea 0xa(%edi),%eax <== NOT EXECUTED
135d1e: 51 push %ecx <== NOT EXECUTED
135d1f: ff 75 14 pushl 0x14(%ebp) <== NOT EXECUTED
135d22: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
135d25: 50 push %eax <== NOT EXECUTED
135d26: 89 95 64 ff ff ff mov %edx,-0x9c(%ebp) <== NOT EXECUTED
135d2c: e8 57 a0 00 00 call 13fd88 <memcmp> <== NOT EXECUTED
135d31: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
135d34: 85 c0 test %eax,%eax <== NOT EXECUTED
135d36: 8b 95 64 ff ff ff mov -0x9c(%ebp),%edx <== NOT EXECUTED
135d3c: 75 23 jne 135d61 <rtems_rfs_dir_lookup_ino+0x1b4><== NOT EXECUTED
{
*offset = rtems_rfs_block_map_pos (fs, &map);
135d3e: 51 push %ecx <== NOT EXECUTED
135d3f: 51 push %ecx <== NOT EXECUTED
135d40: 8d 7d 88 lea -0x78(%ebp),%edi <== NOT EXECUTED
135d43: 8d 45 98 lea -0x68(%ebp),%eax <== NOT EXECUTED
135d46: 50 push %eax <== NOT EXECUTED
135d47: 53 push %ebx <== NOT EXECUTED
135d48: e8 fc e3 ff ff call 134149 <rtems_rfs_block_get_pos><== NOT EXECUTED
135d4d: 8b 55 1c mov 0x1c(%ebp),%edx <== NOT EXECUTED
135d50: 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);
135d52: 8d 55 d8 lea -0x28(%ebp),%edx <== NOT EXECUTED
135d55: 89 d8 mov %ebx,%eax <== NOT EXECUTED
135d57: e8 c0 f4 ff ff call 13521c <rtems_rfs_buffer_handle_close><== NOT EXECUTED
rtems_rfs_block_map_close (fs, &map);
135d5c: 58 pop %eax <== NOT EXECUTED
135d5d: 5a pop %edx <== NOT EXECUTED
135d5e: 57 push %edi <== NOT EXECUTED
135d5f: eb 67 jmp 135dc8 <rtems_rfs_dir_lookup_ino+0x21b><== NOT EXECUTED
return 0;
}
}
map.bpos.boff += elength;
135d61: 01 55 9c add %edx,-0x64(%ebp) <== NOT EXECUTED
entry += elength;
135d64: 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))
135d66: 8b 43 08 mov 0x8(%ebx),%eax <== NOT EXECUTED
135d69: 83 e8 0a sub $0xa,%eax <== NOT EXECUTED
135d6c: 39 45 9c cmp %eax,-0x64(%ebp) <== NOT EXECUTED
135d6f: 0f 82 f4 fe ff ff jb 135c69 <rtems_rfs_dir_lookup_ino+0xbc><== NOT EXECUTED
map.bpos.boff += elength;
entry += elength;
}
if (rc == 0)
135d75: 83 7d 84 00 cmpl $0x0,-0x7c(%ebp) <== NOT EXECUTED
135d79: 75 26 jne 135da1 <rtems_rfs_dir_lookup_ino+0x1f4><== NOT EXECUTED
{
rc = rtems_rfs_block_map_next_block (fs, &map, &block);
135d7b: 51 push %ecx <== NOT EXECUTED
135d7c: 8d 4d e4 lea -0x1c(%ebp),%ecx <== NOT EXECUTED
135d7f: 51 push %ecx <== NOT EXECUTED
135d80: 8d 45 88 lea -0x78(%ebp),%eax <== NOT EXECUTED
135d83: 50 push %eax <== NOT EXECUTED
135d84: 53 push %ebx <== NOT EXECUTED
135d85: e8 0a e6 ff ff call 134394 <rtems_rfs_block_map_next_block><== NOT EXECUTED
135d8a: 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)
135d8c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
135d8f: 83 f8 06 cmp $0x6,%eax <== NOT EXECUTED
135d92: 75 10 jne 135da4 <rtems_rfs_dir_lookup_ino+0x1f7><== NOT EXECUTED
135d94: 66 be 02 00 mov $0x2,%si <== NOT EXECUTED
135d98: eb 1e jmp 135db8 <rtems_rfs_dir_lookup_ino+0x20b><== NOT EXECUTED
135d9a: c7 45 84 05 00 00 00 movl $0x5,-0x7c(%ebp) <== NOT EXECUTED
135da1: 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)
135da4: 85 f6 test %esi,%esi <== NOT EXECUTED
135da6: 75 10 jne 135db8 <rtems_rfs_dir_lookup_ino+0x20b><== NOT EXECUTED
135da8: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
135dab: 85 c0 test %eax,%eax <== NOT EXECUTED
135dad: 0f 85 89 fe ff ff jne 135c3c <rtems_rfs_dir_lookup_ino+0x8f><== NOT EXECUTED
135db3: eb 26 jmp 135ddb <rtems_rfs_dir_lookup_ino+0x22e><== NOT EXECUTED
135db5: 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);
135db8: 8d 55 d8 lea -0x28(%ebp),%edx <== NOT EXECUTED
135dbb: 89 d8 mov %ebx,%eax <== NOT EXECUTED
135dbd: e8 5a f4 ff ff call 13521c <rtems_rfs_buffer_handle_close><== NOT EXECUTED
rtems_rfs_block_map_close (fs, &map);
135dc2: 52 push %edx <== NOT EXECUTED
135dc3: 52 push %edx <== NOT EXECUTED
135dc4: 8d 45 88 lea -0x78(%ebp),%eax <== NOT EXECUTED
135dc7: 50 push %eax <== NOT EXECUTED
135dc8: 53 push %ebx <== NOT EXECUTED
135dc9: e8 f8 ec ff ff call 134ac6 <rtems_rfs_block_map_close><== NOT EXECUTED
return rc;
135dce: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
135dd1: 89 f0 mov %esi,%eax <== NOT EXECUTED
135dd3: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
135dd6: 5b pop %ebx <== NOT EXECUTED
135dd7: 5e pop %esi <== NOT EXECUTED
135dd8: 5f pop %edi <== NOT EXECUTED
135dd9: c9 leave <== NOT EXECUTED
135dda: c3 ret <== NOT EXECUTED
if (rc == ENXIO)
rc = ENOENT;
}
}
if ((rc == 0) && (block == 0))
135ddb: be 05 00 00 00 mov $0x5,%esi <== NOT EXECUTED
135de0: eb d6 jmp 135db8 <rtems_rfs_dir_lookup_ino+0x20b><== NOT EXECUTED
001353b6 <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)
{
1353b6: 55 push %ebp <== NOT EXECUTED
1353b7: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1353b9: 57 push %edi <== NOT EXECUTED
1353ba: 56 push %esi <== NOT EXECUTED
1353bb: 53 push %ebx <== NOT EXECUTED
1353bc: 81 ec a0 00 00 00 sub $0xa0,%esp <== NOT EXECUTED
1353c2: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
1353c5: 8b 55 14 mov 0x14(%ebp),%edx <== NOT EXECUTED
1353c8: 89 45 80 mov %eax,-0x80(%ebp) <== NOT EXECUTED
1353cb: 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;
1353ce: 8b 55 1c mov 0x1c(%ebp),%edx <== NOT EXECUTED
1353d1: c7 02 00 00 00 00 movl $0x0,(%edx) <== NOT EXECUTED
rc = rtems_rfs_block_map_open (fs, dir, &map);
1353d7: 8d 45 88 lea -0x78(%ebp),%eax <== NOT EXECUTED
1353da: 50 push %eax <== NOT EXECUTED
1353db: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
1353de: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
1353e1: e8 83 f8 ff ff call 134c69 <rtems_rfs_block_map_open><== NOT EXECUTED
1353e6: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc > 0)
1353e8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1353eb: 85 c0 test %eax,%eax <== NOT EXECUTED
1353ed: 0f 8f 70 02 00 00 jg 135663 <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))
1353f3: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
1353f6: 8b 59 08 mov 0x8(%ecx),%ebx <== NOT EXECUTED
1353f9: 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) -
1353fb: 56 push %esi <== NOT EXECUTED
1353fc: 53 push %ebx <== NOT EXECUTED
1353fd: ff 75 84 pushl -0x7c(%ebp) <== NOT EXECUTED
135400: ff 75 80 pushl -0x80(%ebp) <== NOT EXECUTED
135403: e8 ac d4 01 00 call 1528b4 <__moddi3> <== NOT EXECUTED
135408: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13540b: 89 85 58 ff ff ff mov %eax,-0xa8(%ebp) <== NOT EXECUTED
135411: 89 95 5c ff ff ff mov %edx,-0xa4(%ebp) <== NOT EXECUTED
135417: 89 d8 mov %ebx,%eax <== NOT EXECUTED
135419: 89 f2 mov %esi,%edx <== NOT EXECUTED
13541b: 2b 85 58 ff ff ff sub -0xa8(%ebp),%eax <== NOT EXECUTED
135421: 1b 95 5c ff ff ff sbb -0xa4(%ebp),%edx <== NOT EXECUTED
135427: 89 85 58 ff ff ff mov %eax,-0xa8(%ebp) <== NOT EXECUTED
13542d: 89 95 5c ff ff ff mov %edx,-0xa4(%ebp) <== NOT EXECUTED
135433: 83 fa 00 cmp $0x0,%edx <== NOT EXECUTED
135436: 7f 38 jg 135470 <rtems_rfs_dir_read+0xba><== NOT EXECUTED
135438: 7c 05 jl 13543f <rtems_rfs_dir_read+0x89><== NOT EXECUTED
13543a: 83 f8 0a cmp $0xa,%eax <== NOT EXECUTED
13543d: 77 31 ja 135470 <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) *
13543f: 56 push %esi <== NOT EXECUTED
135440: 53 push %ebx <== NOT EXECUTED
135441: ff 75 84 pushl -0x7c(%ebp) <== NOT EXECUTED
135444: ff 75 80 pushl -0x80(%ebp) <== NOT EXECUTED
135447: e8 18 d3 01 00 call 152764 <__divdi3> <== NOT EXECUTED
13544c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13544f: 89 45 80 mov %eax,-0x80(%ebp) <== NOT EXECUTED
135452: 89 55 84 mov %edx,-0x7c(%ebp) <== NOT EXECUTED
135455: 83 45 80 01 addl $0x1,-0x80(%ebp) <== NOT EXECUTED
135459: 83 55 84 00 adcl $0x0,-0x7c(%ebp) <== NOT EXECUTED
13545d: 8b 4d 84 mov -0x7c(%ebp),%ecx <== NOT EXECUTED
135460: 0f af cb imul %ebx,%ecx <== NOT EXECUTED
135463: 8b 45 80 mov -0x80(%ebp),%eax <== NOT EXECUTED
135466: f7 e3 mul %ebx <== NOT EXECUTED
135468: 89 45 80 mov %eax,-0x80(%ebp) <== NOT EXECUTED
13546b: 01 ca add %ecx,%edx <== NOT EXECUTED
13546d: 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);
135470: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
135473: 8d 7d e4 lea -0x1c(%ebp),%edi <== NOT EXECUTED
135476: 57 push %edi <== NOT EXECUTED
135477: ff 75 84 pushl -0x7c(%ebp) <== NOT EXECUTED
13547a: ff 75 80 pushl -0x80(%ebp) <== NOT EXECUTED
13547d: 8d 75 88 lea -0x78(%ebp),%esi <== NOT EXECUTED
135480: 56 push %esi <== NOT EXECUTED
135481: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
135484: e8 3b ef ff ff call 1343c4 <rtems_rfs_block_map_seek><== NOT EXECUTED
135489: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc > 0)
13548b: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
13548e: 85 c0 test %eax,%eax <== NOT EXECUTED
135490: 7e 10 jle 1354a2 <rtems_rfs_dir_read+0xec><== NOT EXECUTED
{
if (rc == ENXIO)
135492: 83 f8 06 cmp $0x6,%eax <== NOT EXECUTED
135495: 0f 85 b7 01 00 00 jne 135652 <rtems_rfs_dir_read+0x29c><== NOT EXECUTED
13549b: b3 02 mov $0x2,%bl <== NOT EXECUTED
13549d: e9 b0 01 00 00 jmp 135652 <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;
1354a2: c6 45 d8 00 movb $0x0,-0x28(%ebp) <== NOT EXECUTED
handle->bnum = 0;
1354a6: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp) <== NOT EXECUTED
handle->buffer = NULL;
1354ad: 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);
1354b4: 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);
1354b6: 6a 01 push $0x1 <== NOT EXECUTED
1354b8: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
1354bb: 8d 55 d8 lea -0x28(%ebp),%edx <== NOT EXECUTED
1354be: 52 push %edx <== NOT EXECUTED
1354bf: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
1354c2: e8 b7 fb ff ff call 13507e <rtems_rfs_buffer_handle_request><== NOT EXECUTED
1354c7: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc > 0)
1354c9: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1354cc: 85 c0 test %eax,%eax <== NOT EXECUTED
1354ce: 0f 8f 73 01 00 00 jg 135647 <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;
1354d4: 8b 4d 9c mov -0x64(%ebp),%ecx <== NOT EXECUTED
1354d7: 89 8d 7c ff ff ff mov %ecx,-0x84(%ebp) <== NOT EXECUTED
1354dd: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
1354e0: 8b 50 20 mov 0x20(%eax),%edx <== NOT EXECUTED
1354e3: 01 ca add %ecx,%edx <== NOT EXECUTED
elength = rtems_rfs_dir_entry_length (entry);
1354e5: 0f b6 72 08 movzbl 0x8(%edx),%esi <== NOT EXECUTED
1354e9: c1 e6 08 shl $0x8,%esi <== NOT EXECUTED
1354ec: 0f b6 42 09 movzbl 0x9(%edx),%eax <== NOT EXECUTED
1354f0: 09 c6 or %eax,%esi <== NOT EXECUTED
eino = rtems_rfs_dir_entry_ino (entry);
1354f2: 8d 42 01 lea 0x1(%edx),%eax <== NOT EXECUTED
1354f5: 89 85 70 ff ff ff mov %eax,-0x90(%ebp) <== NOT EXECUTED
1354fb: 8d 4a 02 lea 0x2(%edx),%ecx <== NOT EXECUTED
1354fe: 89 8d 74 ff ff ff mov %ecx,-0x8c(%ebp) <== NOT EXECUTED
135504: 8d 42 03 lea 0x3(%edx),%eax <== NOT EXECUTED
135507: 89 85 78 ff ff ff mov %eax,-0x88(%ebp) <== NOT EXECUTED
13550d: 0f b6 42 03 movzbl 0x3(%edx),%eax <== NOT EXECUTED
135511: 0f b6 0a movzbl (%edx),%ecx <== NOT EXECUTED
135514: c1 e1 18 shl $0x18,%ecx <== NOT EXECUTED
135517: 09 c8 or %ecx,%eax <== NOT EXECUTED
135519: 0f b6 4a 01 movzbl 0x1(%edx),%ecx <== NOT EXECUTED
13551d: c1 e1 10 shl $0x10,%ecx <== NOT EXECUTED
135520: 09 c8 or %ecx,%eax <== NOT EXECUTED
135522: 0f b6 4a 02 movzbl 0x2(%edx),%ecx <== NOT EXECUTED
135526: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
135529: 09 c8 or %ecx,%eax <== NOT EXECUTED
if (elength != RTEMS_RFS_DIR_ENTRY_EMPTY)
13552b: 81 fe ff ff 00 00 cmp $0xffff,%esi <== NOT EXECUTED
135531: 0f 84 d6 00 00 00 je 13560d <rtems_rfs_dir_read+0x257><== NOT EXECUTED
135537: 89 95 64 ff ff ff mov %edx,-0x9c(%ebp) <== NOT EXECUTED
{
if (rtems_rfs_dir_entry_valid (fs, elength, eino))
13553d: 83 fe 0a cmp $0xa,%esi <== NOT EXECUTED
135540: 0f 8e fc 00 00 00 jle 135642 <rtems_rfs_dir_read+0x28c><== NOT EXECUTED
135546: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
135549: 3b 72 18 cmp 0x18(%edx),%esi <== NOT EXECUTED
13554c: 0f 83 f0 00 00 00 jae 135642 <rtems_rfs_dir_read+0x28c><== NOT EXECUTED
135552: 85 c0 test %eax,%eax <== NOT EXECUTED
135554: 0f 84 e8 00 00 00 je 135642 <rtems_rfs_dir_read+0x28c><== NOT EXECUTED
13555a: 3b 42 10 cmp 0x10(%edx),%eax <== NOT EXECUTED
13555d: 0f 87 df 00 00 00 ja 135642 <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));
135563: b9 44 00 00 00 mov $0x44,%ecx <== NOT EXECUTED
135568: 31 c0 xor %eax,%eax <== NOT EXECUTED
13556a: 8b 7d 18 mov 0x18(%ebp),%edi <== NOT EXECUTED
13556d: f3 ab rep stos %eax,%es:(%edi) <== NOT EXECUTED
dirent->d_off = offset;
13556f: 8b 45 80 mov -0x80(%ebp),%eax <== NOT EXECUTED
135572: 8b 55 84 mov -0x7c(%ebp),%edx <== NOT EXECUTED
135575: 8b 4d 18 mov 0x18(%ebp),%ecx <== NOT EXECUTED
135578: 89 41 04 mov %eax,0x4(%ecx) <== NOT EXECUTED
13557b: 89 51 08 mov %edx,0x8(%ecx) <== NOT EXECUTED
dirent->d_reclen = sizeof (struct dirent);
13557e: 66 c7 41 0c 10 01 movw $0x110,0xc(%ecx) <== NOT EXECUTED
*length += elength;
135584: 89 f1 mov %esi,%ecx <== NOT EXECUTED
135586: 8b 45 1c mov 0x1c(%ebp),%eax <== NOT EXECUTED
135589: 03 08 add (%eax),%ecx <== NOT EXECUTED
13558b: 89 08 mov %ecx,(%eax) <== NOT EXECUTED
remaining = rtems_rfs_fs_block_size (fs) - (map.bpos.boff + elength);
13558d: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
135590: 8b 42 08 mov 0x8(%edx),%eax <== NOT EXECUTED
135593: 2b 85 7c ff ff ff sub -0x84(%ebp),%eax <== NOT EXECUTED
135599: 29 f0 sub %esi,%eax <== NOT EXECUTED
if (remaining <= RTEMS_RFS_DIR_ENTRY_SIZE)
13559b: 83 f8 0a cmp $0xa,%eax <== NOT EXECUTED
13559e: 7f 07 jg 1355a7 <rtems_rfs_dir_read+0x1f1><== NOT EXECUTED
*length += remaining;
1355a0: 01 c8 add %ecx,%eax <== NOT EXECUTED
1355a2: 8b 4d 1c mov 0x1c(%ebp),%ecx <== NOT EXECUTED
1355a5: 89 01 mov %eax,(%ecx) <== NOT EXECUTED
elength -= RTEMS_RFS_DIR_ENTRY_SIZE;
1355a7: 8d 46 f6 lea -0xa(%esi),%eax <== NOT EXECUTED
1355aa: 3d ff 00 00 00 cmp $0xff,%eax <== NOT EXECUTED
1355af: 7e 05 jle 1355b6 <rtems_rfs_dir_read+0x200><== NOT EXECUTED
1355b1: 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);
1355b6: 8b 75 18 mov 0x18(%ebp),%esi <== NOT EXECUTED
1355b9: 83 c6 10 add $0x10,%esi <== NOT EXECUTED
1355bc: 89 75 80 mov %esi,-0x80(%ebp) <== NOT EXECUTED
1355bf: 8b b5 64 ff ff ff mov -0x9c(%ebp),%esi <== NOT EXECUTED
1355c5: 83 c6 0a add $0xa,%esi <== NOT EXECUTED
1355c8: 8b 7d 80 mov -0x80(%ebp),%edi <== NOT EXECUTED
1355cb: 89 c1 mov %eax,%ecx <== NOT EXECUTED
1355cd: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
dirent->d_ino = rtems_rfs_dir_entry_ino (entry);
1355cf: 8b 8d 64 ff ff ff mov -0x9c(%ebp),%ecx <== NOT EXECUTED
1355d5: 0f b6 11 movzbl (%ecx),%edx <== NOT EXECUTED
1355d8: c1 e2 18 shl $0x18,%edx <== NOT EXECUTED
1355db: 8b b5 70 ff ff ff mov -0x90(%ebp),%esi <== NOT EXECUTED
1355e1: 0f b6 0e movzbl (%esi),%ecx <== NOT EXECUTED
1355e4: c1 e1 10 shl $0x10,%ecx <== NOT EXECUTED
1355e7: 09 ca or %ecx,%edx <== NOT EXECUTED
1355e9: 8b b5 78 ff ff ff mov -0x88(%ebp),%esi <== NOT EXECUTED
1355ef: 0f b6 0e movzbl (%esi),%ecx <== NOT EXECUTED
1355f2: 09 ca or %ecx,%edx <== NOT EXECUTED
1355f4: 8b b5 74 ff ff ff mov -0x8c(%ebp),%esi <== NOT EXECUTED
1355fa: 0f b6 0e movzbl (%esi),%ecx <== NOT EXECUTED
1355fd: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
135600: 09 ca or %ecx,%edx <== NOT EXECUTED
135602: 8b 4d 18 mov 0x18(%ebp),%ecx <== NOT EXECUTED
135605: 89 11 mov %edx,(%ecx) <== NOT EXECUTED
dirent->d_namlen = elength;
135607: 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;
13560b: eb 3a jmp 135647 <rtems_rfs_dir_read+0x291><== NOT EXECUTED
}
*length += rtems_rfs_fs_block_size (fs) - map.bpos.boff;
13560d: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
135610: 8b 46 08 mov 0x8(%esi),%eax <== NOT EXECUTED
135613: 2b 85 7c ff ff ff sub -0x84(%ebp),%eax <== NOT EXECUTED
135619: 8b 55 1c mov 0x1c(%ebp),%edx <== NOT EXECUTED
13561c: 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);
13561e: 50 push %eax <== NOT EXECUTED
13561f: 8d 4d e4 lea -0x1c(%ebp),%ecx <== NOT EXECUTED
135622: 51 push %ecx <== NOT EXECUTED
135623: 57 push %edi <== NOT EXECUTED
135624: 56 push %esi <== NOT EXECUTED
135625: e8 6a ed ff ff call 134394 <rtems_rfs_block_map_next_block><== NOT EXECUTED
13562a: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc == ENXIO)
13562c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13562f: 83 f8 06 cmp $0x6,%eax <== NOT EXECUTED
135632: 75 04 jne 135638 <rtems_rfs_dir_read+0x282><== NOT EXECUTED
135634: b3 02 mov $0x2,%bl <== NOT EXECUTED
135636: eb 0f jmp 135647 <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)
135638: 85 c0 test %eax,%eax <== NOT EXECUTED
13563a: 0f 84 76 fe ff ff je 1354b6 <rtems_rfs_dir_read+0x100><== NOT EXECUTED
135640: eb 05 jmp 135647 <rtems_rfs_dir_read+0x291><== NOT EXECUTED
135642: 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);
135647: 8d 55 d8 lea -0x28(%ebp),%edx <== NOT EXECUTED
13564a: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
13564d: e8 ca fb ff ff call 13521c <rtems_rfs_buffer_handle_close><== NOT EXECUTED
rtems_rfs_block_map_close (fs, &map);
135652: 56 push %esi <== NOT EXECUTED
135653: 56 push %esi <== NOT EXECUTED
135654: 8d 45 88 lea -0x78(%ebp),%eax <== NOT EXECUTED
135657: 50 push %eax <== NOT EXECUTED
135658: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
13565b: e8 66 f4 ff ff call 134ac6 <rtems_rfs_block_map_close><== NOT EXECUTED
return rc;
135660: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
135663: 89 d8 mov %ebx,%eax <== NOT EXECUTED
135665: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
135668: 5b pop %ebx <== NOT EXECUTED
135669: 5e pop %esi <== NOT EXECUTED
13566a: 5f pop %edi <== NOT EXECUTED
13566b: c9 leave <== NOT EXECUTED
13566c: c3 ret <== NOT EXECUTED
00136417 <rtems_rfs_file_close>:
}
int
rtems_rfs_file_close (rtems_rfs_file_system* fs,
rtems_rfs_file_handle* handle)
{
136417: 55 push %ebp <== NOT EXECUTED
136418: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13641a: 57 push %edi <== NOT EXECUTED
13641b: 56 push %esi <== NOT EXECUTED
13641c: 53 push %ebx <== NOT EXECUTED
13641d: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
136420: 8b 7d 08 mov 0x8(%ebp),%edi <== NOT EXECUTED
136423: 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)
136426: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
136429: 8b 50 08 mov 0x8(%eax),%edx <== NOT EXECUTED
13642c: 85 d2 test %edx,%edx <== NOT EXECUTED
13642e: 7e 04 jle 136434 <rtems_rfs_file_close+0x1d><== NOT EXECUTED
handle->shared->references--;
136430: 4a dec %edx <== NOT EXECUTED
136431: 89 50 08 mov %edx,0x8(%eax) <== NOT EXECUTED
if (handle->shared->references == 0)
136434: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
136437: 31 f6 xor %esi,%esi <== NOT EXECUTED
136439: 83 78 08 00 cmpl $0x0,0x8(%eax) <== NOT EXECUTED
13643d: 0f 85 37 01 00 00 jne 13657a <rtems_rfs_file_close+0x163><== NOT EXECUTED
{
if (!rtems_rfs_inode_is_loaded (&handle->shared->inode))
136443: 83 78 18 00 cmpl $0x0,0x18(%eax) <== NOT EXECUTED
136447: 75 19 jne 136462 <rtems_rfs_file_close+0x4b><== NOT EXECUTED
rrc = rtems_rfs_inode_load (fs, &handle->shared->inode);
136449: 56 push %esi <== NOT EXECUTED
13644a: 56 push %esi <== NOT EXECUTED
13644b: 83 c0 0c add $0xc,%eax <== NOT EXECUTED
13644e: 50 push %eax <== NOT EXECUTED
13644f: 57 push %edi <== NOT EXECUTED
136450: e8 47 1c 00 00 call 13809c <rtems_rfs_inode_load> <== NOT EXECUTED
136455: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rrc == 0)
136457: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13645a: 85 c0 test %eax,%eax <== NOT EXECUTED
13645c: 0f 85 c9 00 00 00 jne 13652b <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);
136462: 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,
136465: 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);
13646b: 89 d1 mov %edx,%ecx <== NOT EXECUTED
13646d: c1 e9 18 shr $0x18,%ecx <== NOT EXECUTED
136470: 8b 70 18 mov 0x18(%eax),%esi <== NOT EXECUTED
136473: 88 4e 10 mov %cl,0x10(%esi) <== NOT EXECUTED
136476: 89 d1 mov %edx,%ecx <== NOT EXECUTED
136478: c1 e9 10 shr $0x10,%ecx <== NOT EXECUTED
13647b: 8b 70 18 mov 0x18(%eax),%esi <== NOT EXECUTED
13647e: 88 4e 11 mov %cl,0x11(%esi) <== NOT EXECUTED
136481: 89 d1 mov %edx,%ecx <== NOT EXECUTED
136483: c1 e9 08 shr $0x8,%ecx <== NOT EXECUTED
136486: 8b 70 18 mov 0x18(%eax),%esi <== NOT EXECUTED
136489: 88 4e 12 mov %cl,0x12(%esi) <== NOT EXECUTED
13648c: 8b 48 18 mov 0x18(%eax),%ecx <== NOT EXECUTED
13648f: 88 51 13 mov %dl,0x13(%ecx) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
136492: c6 40 1c 01 movb $0x1,0x1c(%eax) <== NOT EXECUTED
handle->shared->atime);
rtems_rfs_inode_set_mtime (&handle->shared->inode,
handle->shared->mtime);
136496: 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,
136499: 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);
13649f: 89 d1 mov %edx,%ecx <== NOT EXECUTED
1364a1: c1 e9 18 shr $0x18,%ecx <== NOT EXECUTED
1364a4: 8b 70 18 mov 0x18(%eax),%esi <== NOT EXECUTED
1364a7: 88 4e 14 mov %cl,0x14(%esi) <== NOT EXECUTED
1364aa: 89 d1 mov %edx,%ecx <== NOT EXECUTED
1364ac: c1 e9 10 shr $0x10,%ecx <== NOT EXECUTED
1364af: 8b 70 18 mov 0x18(%eax),%esi <== NOT EXECUTED
1364b2: 88 4e 15 mov %cl,0x15(%esi) <== NOT EXECUTED
1364b5: 89 d1 mov %edx,%ecx <== NOT EXECUTED
1364b7: c1 e9 08 shr $0x8,%ecx <== NOT EXECUTED
1364ba: 8b 70 18 mov 0x18(%eax),%esi <== NOT EXECUTED
1364bd: 88 4e 16 mov %cl,0x16(%esi) <== NOT EXECUTED
1364c0: 8b 48 18 mov 0x18(%eax),%ecx <== NOT EXECUTED
1364c3: 88 51 17 mov %dl,0x17(%ecx) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
1364c6: c6 40 1c 01 movb $0x1,0x1c(%eax) <== NOT EXECUTED
handle->shared->mtime);
rtems_rfs_inode_set_ctime (&handle->shared->inode,
handle->shared->ctime);
1364ca: 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,
1364cd: 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);
1364d3: 89 d1 mov %edx,%ecx <== NOT EXECUTED
1364d5: c1 e9 18 shr $0x18,%ecx <== NOT EXECUTED
1364d8: 8b 70 18 mov 0x18(%eax),%esi <== NOT EXECUTED
1364db: 88 4e 18 mov %cl,0x18(%esi) <== NOT EXECUTED
1364de: 89 d1 mov %edx,%ecx <== NOT EXECUTED
1364e0: c1 e9 10 shr $0x10,%ecx <== NOT EXECUTED
1364e3: 8b 70 18 mov 0x18(%eax),%esi <== NOT EXECUTED
1364e6: 88 4e 19 mov %cl,0x19(%esi) <== NOT EXECUTED
1364e9: 89 d1 mov %edx,%ecx <== NOT EXECUTED
1364eb: c1 e9 08 shr $0x8,%ecx <== NOT EXECUTED
1364ee: 8b 70 18 mov 0x18(%eax),%esi <== NOT EXECUTED
1364f1: 88 4e 1a mov %cl,0x1a(%esi) <== NOT EXECUTED
1364f4: 8b 48 18 mov 0x18(%eax),%ecx <== NOT EXECUTED
1364f7: 88 51 1b mov %dl,0x1b(%ecx) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
1364fa: c6 40 1c 01 movb $0x1,0x1c(%eax) <== NOT EXECUTED
handle->shared->ctime);
if (!rtems_rfs_block_size_equal (&handle->shared->size,
1364fe: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
136501: 8b 90 84 00 00 00 mov 0x84(%eax),%edx <== NOT EXECUTED
136507: 3b 50 3c cmp 0x3c(%eax),%edx <== NOT EXECUTED
13650a: 75 0d jne 136519 <rtems_rfs_file_close+0x102><== NOT EXECUTED
13650c: 8b 88 88 00 00 00 mov 0x88(%eax),%ecx <== NOT EXECUTED
136512: 31 f6 xor %esi,%esi <== NOT EXECUTED
136514: 3b 48 40 cmp 0x40(%eax),%ecx <== NOT EXECUTED
136517: 74 12 je 13652b <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);
136519: 89 50 3c mov %edx,0x3c(%eax) <== NOT EXECUTED
13651c: 8b 90 88 00 00 00 mov 0x88(%eax),%edx <== NOT EXECUTED
136522: 89 50 40 mov %edx,0x40(%eax) <== NOT EXECUTED
map->dirty = true;
136525: c6 40 34 01 movb $0x1,0x34(%eax) <== NOT EXECUTED
136529: 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);
13652b: 51 push %ecx <== NOT EXECUTED
13652c: 51 push %ecx <== NOT EXECUTED
13652d: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
136530: 83 c0 34 add $0x34,%eax <== NOT EXECUTED
136533: 50 push %eax <== NOT EXECUTED
136534: 57 push %edi <== NOT EXECUTED
136535: e8 8c e5 ff ff call 134ac6 <rtems_rfs_block_map_close><== NOT EXECUTED
if (rc > 0)
13653a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13653d: 85 c0 test %eax,%eax <== NOT EXECUTED
13653f: 7e 06 jle 136547 <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)
136541: 85 f6 test %esi,%esi <== NOT EXECUTED
136543: 75 02 jne 136547 <rtems_rfs_file_close+0x130><== NOT EXECUTED
136545: 89 c6 mov %eax,%esi <== NOT EXECUTED
rrc = rc;
}
rc = rtems_rfs_inode_close (fs, &handle->shared->inode);
136547: 52 push %edx <== NOT EXECUTED
136548: 52 push %edx <== NOT EXECUTED
136549: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
13654c: 83 c0 0c add $0xc,%eax <== NOT EXECUTED
13654f: 50 push %eax <== NOT EXECUTED
136550: 57 push %edi <== NOT EXECUTED
136551: e8 16 1b 00 00 call 13806c <rtems_rfs_inode_close> <== NOT EXECUTED
if (rc > 0)
136556: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
136559: 85 c0 test %eax,%eax <== NOT EXECUTED
13655b: 7e 06 jle 136563 <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)
13655d: 85 f6 test %esi,%esi <== NOT EXECUTED
13655f: 75 02 jne 136563 <rtems_rfs_file_close+0x14c><== NOT EXECUTED
136561: 89 c6 mov %eax,%esi <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void rtems_chain_extract(
rtems_chain_node *the_node
)
{
_Chain_Extract( the_node );
136563: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
136566: ff 73 1c pushl 0x1c(%ebx) <== NOT EXECUTED
136569: e8 da b0 fd ff call 111648 <_Chain_Extract> <== NOT EXECUTED
rrc = rc;
}
rtems_chain_extract (&handle->shared->link);
free (handle->shared);
13656e: 58 pop %eax <== NOT EXECUTED
13656f: ff 73 1c pushl 0x1c(%ebx) <== NOT EXECUTED
136572: e8 25 69 fd ff call 10ce9c <free> <== NOT EXECUTED
136577: 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);
13657a: 51 push %ecx <== NOT EXECUTED
13657b: 51 push %ecx <== NOT EXECUTED
13657c: 8d 43 04 lea 0x4(%ebx),%eax <== NOT EXECUTED
13657f: 50 push %eax <== NOT EXECUTED
136580: 57 push %edi <== NOT EXECUTED
136581: e8 01 ea ff ff call 134f87 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
handle->dirty = false;
136586: c6 43 04 00 movb $0x0,0x4(%ebx) <== NOT EXECUTED
handle->bnum = 0;
13658a: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx) <== NOT EXECUTED
handle->buffer = NULL;
136591: 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);
136598: 89 1c 24 mov %ebx,(%esp) <== NOT EXECUTED
13659b: e8 fc 68 fd ff call 10ce9c <free> <== NOT EXECUTED
return rrc;
}
1365a0: 89 f0 mov %esi,%eax <== NOT EXECUTED
1365a2: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1365a5: 5b pop %ebx <== NOT EXECUTED
1365a6: 5e pop %esi <== NOT EXECUTED
1365a7: 5f pop %edi <== NOT EXECUTED
1365a8: c9 leave <== NOT EXECUTED
1365a9: c3 ret <== NOT EXECUTED
00135de4 <rtems_rfs_file_get_shared>:
}
rtems_rfs_file_shared*
rtems_rfs_file_get_shared (rtems_rfs_file_system* fs,
rtems_rfs_ino ino)
{
135de4: 55 push %ebp <== NOT EXECUTED
135de5: 89 e5 mov %esp,%ebp <== NOT EXECUTED
135de7: 53 push %ebx <== NOT EXECUTED
135de8: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
135deb: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(
Chain_Control *the_chain
)
{
return the_chain->first;
135dee: 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;
135df1: 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))
135df4: eb 09 jmp 135dff <rtems_rfs_file_get_shared+0x1b><== NOT EXECUTED
{
rtems_rfs_file_shared* shared;
shared = (rtems_rfs_file_shared*) node;
135df6: 89 d0 mov %edx,%eax <== NOT EXECUTED
if (shared->inode.ino == ino)
135df8: 39 5a 14 cmp %ebx,0x14(%edx) <== NOT EXECUTED
135dfb: 74 08 je 135e05 <rtems_rfs_file_get_shared+0x21><== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Next(
Chain_Node *the_node
)
{
return the_node->next;
135dfd: 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))
135dff: 39 ca cmp %ecx,%edx <== NOT EXECUTED
135e01: 75 f3 jne 135df6 <rtems_rfs_file_get_shared+0x12><== NOT EXECUTED
135e03: 31 c0 xor %eax,%eax <== NOT EXECUTED
if (shared->inode.ino == ino)
return shared;
node = rtems_chain_next (node);
}
return NULL;
}
135e05: 5b pop %ebx <== NOT EXECUTED
135e06: c9 leave <== NOT EXECUTED
135e07: c3 ret <== NOT EXECUTED
001362b7 <rtems_rfs_file_io_end>:
int
rtems_rfs_file_io_end (rtems_rfs_file_handle* handle,
size_t size,
bool read)
{
1362b7: 55 push %ebp <== NOT EXECUTED
1362b8: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1362ba: 57 push %edi <== NOT EXECUTED
1362bb: 56 push %esi <== NOT EXECUTED
1362bc: 53 push %ebx <== NOT EXECUTED
1362bd: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
1362c0: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
1362c3: 8b 7d 0c mov 0xc(%ebp),%edi <== NOT EXECUTED
1362c6: 8a 45 10 mov 0x10(%ebp),%al <== NOT EXECUTED
1362c9: 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))
1362cc: 83 7b 0c 00 cmpl $0x0,0xc(%ebx) <== NOT EXECUTED
1362d0: 74 5a je 13632c <rtems_rfs_file_io_end+0x75><== NOT EXECUTED
{
if (!read)
1362d2: 84 c0 test %al,%al <== NOT EXECUTED
1362d4: 75 04 jne 1362da <rtems_rfs_file_io_end+0x23><== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (rtems_rfs_file_buffer (handle));
1362d6: c6 43 04 01 movb $0x1,0x4(%ebx) <== NOT EXECUTED
rc = rtems_rfs_buffer_handle_release (rtems_rfs_file_fs (handle),
1362da: 52 push %edx <== NOT EXECUTED
1362db: 52 push %edx <== NOT EXECUTED
1362dc: 8d 43 04 lea 0x4(%ebx),%eax <== NOT EXECUTED
1362df: 50 push %eax <== NOT EXECUTED
1362e0: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
1362e3: ff b0 98 00 00 00 pushl 0x98(%eax) <== NOT EXECUTED
1362e9: e8 99 ec ff ff call 134f87 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
1362ee: 89 c6 mov %eax,%esi <== NOT EXECUTED
rtems_rfs_file_buffer (handle));
if (rc > 0)
1362f0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1362f3: 85 c0 test %eax,%eax <== NOT EXECUTED
1362f5: 7e 37 jle 13632e <rtems_rfs_file_io_end+0x77><== NOT EXECUTED
{
printf (
1362f7: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1362fa: 50 push %eax <== NOT EXECUTED
1362fb: e8 fc c3 00 00 call 1426fc <strerror> <== NOT EXECUTED
136300: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
136303: ba 1b 33 15 00 mov $0x15331b,%edx <== NOT EXECUTED
136308: 80 7d e7 00 cmpb $0x0,-0x19(%ebp) <== NOT EXECUTED
13630c: 75 05 jne 136313 <rtems_rfs_file_io_end+0x5c><== NOT EXECUTED
13630e: ba f5 34 15 00 mov $0x1534f5,%edx <== NOT EXECUTED
136313: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
136316: 50 push %eax <== NOT EXECUTED
136317: 56 push %esi <== NOT EXECUTED
136318: 57 push %edi <== NOT EXECUTED
136319: 52 push %edx <== NOT EXECUTED
13631a: 68 03 cd 15 00 push $0x15cd03 <== NOT EXECUTED
13631f: e8 90 a9 00 00 call 140cb4 <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;
136324: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
136327: e9 e1 00 00 00 jmp 13640d <rtems_rfs_file_io_end+0x156><== NOT EXECUTED
13632c: 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;
13632e: 03 7b 14 add 0x14(%ebx),%edi <== NOT EXECUTED
136331: 89 7b 14 mov %edi,0x14(%ebx) <== NOT EXECUTED
if (handle->bpos.boff >=
rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle)))
136334: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
136337: 8b 80 98 00 00 00 mov 0x98(%eax),%eax <== NOT EXECUTED
13633d: 3b 78 08 cmp 0x8(%eax),%edi <== NOT EXECUTED
136340: 72 09 jb 13634b <rtems_rfs_file_io_end+0x94><== NOT EXECUTED
{
handle->bpos.bno++;
136342: ff 43 10 incl 0x10(%ebx) <== NOT EXECUTED
handle->bpos.boff -= rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle));
136345: 2b 78 08 sub 0x8(%eax),%edi <== NOT EXECUTED
136348: 89 7b 14 mov %edi,0x14(%ebx) <== NOT EXECUTED
}
length = false;
mtime = false;
if (!read &&
13634b: 80 7d e7 00 cmpb $0x0,-0x19(%ebp) <== NOT EXECUTED
13634f: 75 3c jne 13638d <rtems_rfs_file_io_end+0xd6><== NOT EXECUTED
rtems_rfs_block_map_past_end (rtems_rfs_file_map (handle),
136351: 8b 43 10 mov 0x10(%ebx),%eax <== NOT EXECUTED
}
length = false;
mtime = false;
if (!read &&
136354: 85 c0 test %eax,%eax <== NOT EXECUTED
136356: 74 09 je 136361 <rtems_rfs_file_io_end+0xaa><== NOT EXECUTED
rtems_rfs_block_map_past_end (rtems_rfs_file_map (handle),
136358: 8b 53 1c mov 0x1c(%ebx),%edx <== NOT EXECUTED
13635b: 83 7a 3c 00 cmpl $0x0,0x3c(%edx) <== NOT EXECUTED
13635f: 74 17 je 136378 <rtems_rfs_file_io_end+0xc1><== NOT EXECUTED
136361: 8b 53 1c mov 0x1c(%ebx),%edx <== NOT EXECUTED
136364: 8b 4a 3c mov 0x3c(%edx),%ecx <== NOT EXECUTED
}
length = false;
mtime = false;
if (!read &&
136367: 39 c8 cmp %ecx,%eax <== NOT EXECUTED
136369: 73 0d jae 136378 <rtems_rfs_file_io_end+0xc1><== NOT EXECUTED
13636b: 49 dec %ecx <== NOT EXECUTED
13636c: 39 c8 cmp %ecx,%eax <== NOT EXECUTED
13636e: 75 1d jne 13638d <rtems_rfs_file_io_end+0xd6><== NOT EXECUTED
rtems_rfs_block_map_past_end (rtems_rfs_file_map (handle),
136370: 8b 43 14 mov 0x14(%ebx),%eax <== NOT EXECUTED
136373: 3b 42 40 cmp 0x40(%edx),%eax <== NOT EXECUTED
136376: 76 15 jbe 13638d <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),
136378: 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;
13637b: 8b 53 14 mov 0x14(%ebx),%edx <== NOT EXECUTED
13637e: 89 50 40 mov %edx,0x40(%eax) <== NOT EXECUTED
map->dirty = true;
136381: c6 40 34 01 movb $0x1,0x34(%eax) <== NOT EXECUTED
136385: c6 45 e6 01 movb $0x1,-0x1a(%ebp) <== NOT EXECUTED
136389: b1 01 mov $0x1,%cl <== NOT EXECUTED
13638b: eb 06 jmp 136393 <rtems_rfs_file_io_end+0xdc><== NOT EXECUTED
13638d: c6 45 e6 00 movb $0x0,-0x1a(%ebp) <== NOT EXECUTED
136391: 31 c9 xor %ecx,%ecx <== NOT EXECUTED
handle->bpos.boff);
length = true;
mtime = true;
}
atime = rtems_rfs_file_update_atime (handle);
136393: 8b 03 mov (%ebx),%eax <== NOT EXECUTED
136395: 89 c2 mov %eax,%edx <== NOT EXECUTED
136397: 83 f2 01 xor $0x1,%edx <== NOT EXECUTED
13639a: 83 e2 01 and $0x1,%edx <== NOT EXECUTED
13639d: 88 55 e5 mov %dl,-0x1b(%ebp) <== NOT EXECUTED
mtime = rtems_rfs_file_update_mtime (handle) && mtime;
1363a0: 31 d2 xor %edx,%edx <== NOT EXECUTED
1363a2: a8 02 test $0x2,%al <== NOT EXECUTED
1363a4: 75 03 jne 1363a9 <rtems_rfs_file_io_end+0xf2><== NOT EXECUTED
1363a6: 0f b6 d1 movzbl %cl,%edx <== NOT EXECUTED
length = rtems_rfs_file_update_length (handle) && length;
1363a9: 31 ff xor %edi,%edi <== NOT EXECUTED
1363ab: a8 04 test $0x4,%al <== NOT EXECUTED
1363ad: 75 04 jne 1363b3 <rtems_rfs_file_io_end+0xfc><== NOT EXECUTED
1363af: 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)
1363b3: 80 7d e5 00 cmpb $0x0,-0x1b(%ebp) <== NOT EXECUTED
1363b7: 75 04 jne 1363bd <rtems_rfs_file_io_end+0x106><== NOT EXECUTED
1363b9: 84 d2 test %dl,%dl <== NOT EXECUTED
1363bb: 74 37 je 1363f4 <rtems_rfs_file_io_end+0x13d><== NOT EXECUTED
{
time_t now = time (NULL);
1363bd: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1363c0: 6a 00 push $0x0 <== NOT EXECUTED
1363c2: 88 55 e0 mov %dl,-0x20(%ebp) <== NOT EXECUTED
1363c5: e8 66 16 01 00 call 147a30 <time> <== NOT EXECUTED
if (read && atime)
1363ca: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1363cd: 80 7d e7 00 cmpb $0x0,-0x19(%ebp) <== NOT EXECUTED
1363d1: 8a 55 e0 mov -0x20(%ebp),%dl <== NOT EXECUTED
1363d4: 74 11 je 1363e7 <rtems_rfs_file_io_end+0x130><== NOT EXECUTED
1363d6: 80 7d e5 00 cmpb $0x0,-0x1b(%ebp) <== NOT EXECUTED
1363da: 74 18 je 1363f4 <rtems_rfs_file_io_end+0x13d><== NOT EXECUTED
handle->shared->atime = now;
1363dc: 8b 53 1c mov 0x1c(%ebx),%edx <== NOT EXECUTED
1363df: 89 82 8c 00 00 00 mov %eax,0x8c(%edx) <== NOT EXECUTED
1363e5: eb 0d jmp 1363f4 <rtems_rfs_file_io_end+0x13d><== NOT EXECUTED
if (!read && mtime)
1363e7: 84 d2 test %dl,%dl <== NOT EXECUTED
1363e9: 74 09 je 1363f4 <rtems_rfs_file_io_end+0x13d><== NOT EXECUTED
handle->shared->mtime = now;
1363eb: 8b 53 1c mov 0x1c(%ebx),%edx <== NOT EXECUTED
1363ee: 89 82 90 00 00 00 mov %eax,0x90(%edx) <== NOT EXECUTED
}
if (length)
1363f4: 85 ff test %edi,%edi <== NOT EXECUTED
1363f6: 74 15 je 13640d <rtems_rfs_file_io_end+0x156><== NOT EXECUTED
{
handle->shared->size.count =
rtems_rfs_block_map_count (rtems_rfs_file_map (handle));
1363f8: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
if (!read && mtime)
handle->shared->mtime = now;
}
if (length)
{
handle->shared->size.count =
1363fb: 8b 50 3c mov 0x3c(%eax),%edx <== NOT EXECUTED
1363fe: 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 =
136404: 8b 50 40 mov 0x40(%eax),%edx <== NOT EXECUTED
136407: 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;
}
13640d: 89 f0 mov %esi,%eax <== NOT EXECUTED
13640f: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
136412: 5b pop %ebx <== NOT EXECUTED
136413: 5e pop %esi <== NOT EXECUTED
136414: 5f pop %edi <== NOT EXECUTED
136415: c9 leave <== NOT EXECUTED
136416: c3 ret <== NOT EXECUTED
00135f18 <rtems_rfs_file_io_release>:
return rc;
}
int
rtems_rfs_file_io_release (rtems_rfs_file_handle* handle)
{
135f18: 55 push %ebp <== NOT EXECUTED
135f19: 89 e5 mov %esp,%ebp <== NOT EXECUTED
135f1b: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
135f1e: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
int rc = 0;
if (rtems_rfs_buffer_handle_has_block (&handle->buffer))
135f21: 31 c0 xor %eax,%eax <== NOT EXECUTED
135f23: 83 7a 0c 00 cmpl $0x0,0xc(%edx) <== NOT EXECUTED
135f27: 74 17 je 135f40 <rtems_rfs_file_io_release+0x28><== NOT EXECUTED
rc = rtems_rfs_buffer_handle_release (rtems_rfs_file_fs (handle),
135f29: 50 push %eax <== NOT EXECUTED
135f2a: 50 push %eax <== NOT EXECUTED
135f2b: 8d 42 04 lea 0x4(%edx),%eax <== NOT EXECUTED
135f2e: 50 push %eax <== NOT EXECUTED
135f2f: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED
135f32: ff b0 98 00 00 00 pushl 0x98(%eax) <== NOT EXECUTED
135f38: e8 4a f0 ff ff call 134f87 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
135f3d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_rfs_file_buffer (handle));
return rc;
}
135f40: c9 leave <== NOT EXECUTED
135f41: c3 ret <== NOT EXECUTED
00135e08 <rtems_rfs_file_io_start>:
int
rtems_rfs_file_io_start (rtems_rfs_file_handle* handle,
size_t* available,
bool read)
{
135e08: 55 push %ebp <== NOT EXECUTED
135e09: 89 e5 mov %esp,%ebp <== NOT EXECUTED
135e0b: 57 push %edi <== NOT EXECUTED
135e0c: 56 push %esi <== NOT EXECUTED
135e0d: 53 push %ebx <== NOT EXECUTED
135e0e: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED
135e11: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
135e14: 8b 75 0c mov 0xc(%ebp),%esi <== NOT EXECUTED
135e17: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
135e1a: 89 45 d4 mov %eax,-0x2c(%ebp) <== NOT EXECUTED
135e1d: 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))
135e1f: 83 7b 0c 00 cmpl $0x0,0xc(%ebx) <== NOT EXECUTED
135e23: 0f 85 af 00 00 00 jne 135ed8 <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),
135e29: 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),
135e2c: 8d 55 e4 lea -0x1c(%ebp),%edx <== NOT EXECUTED
135e2f: 52 push %edx <== NOT EXECUTED
135e30: 8d 4b 10 lea 0x10(%ebx),%ecx <== NOT EXECUTED
135e33: 51 push %ecx <== NOT EXECUTED
135e34: 8d 48 34 lea 0x34(%eax),%ecx <== NOT EXECUTED
135e37: 51 push %ecx <== NOT EXECUTED
135e38: ff b0 98 00 00 00 pushl 0x98(%eax) <== NOT EXECUTED
135e3e: 89 55 d0 mov %edx,-0x30(%ebp) <== NOT EXECUTED
135e41: e8 42 e4 ff ff call 134288 <rtems_rfs_block_map_find><== NOT EXECUTED
rtems_rfs_file_map (handle),
rtems_rfs_file_bpos (handle),
&block);
if (rc > 0)
135e46: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
135e49: 85 c0 test %eax,%eax <== NOT EXECUTED
135e4b: 8b 55 d0 mov -0x30(%ebp),%edx <== NOT EXECUTED
135e4e: 7e 43 jle 135e93 <rtems_rfs_file_io_start+0x8b><== NOT EXECUTED
{
/*
* Has the read reached the EOF ?
*/
if (read && (rc == ENXIO))
135e50: 89 f9 mov %edi,%ecx <== NOT EXECUTED
135e52: 84 c9 test %cl,%cl <== NOT EXECUTED
135e54: 74 16 je 135e6c <rtems_rfs_file_io_start+0x64><== NOT EXECUTED
135e56: 83 f8 06 cmp $0x6,%eax <== NOT EXECUTED
135e59: 0f 85 b1 00 00 00 jne 135f10 <rtems_rfs_file_io_start+0x108><== NOT EXECUTED
{
*available = 0;
135e5f: c7 06 00 00 00 00 movl $0x0,(%esi) <== NOT EXECUTED
135e65: 30 c0 xor %al,%al <== NOT EXECUTED
return 0;
135e67: e9 a4 00 00 00 jmp 135f10 <rtems_rfs_file_io_start+0x108><== NOT EXECUTED
}
if (rc != ENXIO)
135e6c: 83 f8 06 cmp $0x6,%eax <== NOT EXECUTED
135e6f: 0f 85 9b 00 00 00 jne 135f10 <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),
135e75: 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),
135e78: 52 push %edx <== NOT EXECUTED
135e79: 6a 01 push $0x1 <== NOT EXECUTED
135e7b: 8d 50 34 lea 0x34(%eax),%edx <== NOT EXECUTED
135e7e: 52 push %edx <== NOT EXECUTED
135e7f: ff b0 98 00 00 00 pushl 0x98(%eax) <== NOT EXECUTED
135e85: e8 a4 e9 ff ff call 13482e <rtems_rfs_block_map_grow><== NOT EXECUTED
rtems_rfs_file_map (handle),
1, &block);
if (rc > 0)
135e8a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
135e8d: 85 c0 test %eax,%eax <== NOT EXECUTED
135e8f: 7f 7f jg 135f10 <rtems_rfs_file_io_start+0x108><== NOT EXECUTED
135e91: eb 1f jmp 135eb2 <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 &&
135e93: 8a 45 d4 mov -0x2c(%ebp),%al <== NOT EXECUTED
135e96: 89 fa mov %edi,%edx <== NOT EXECUTED
135e98: 84 d2 test %dl,%dl <== NOT EXECUTED
135e9a: 75 1c jne 135eb8 <rtems_rfs_file_io_start+0xb0><== NOT EXECUTED
(rtems_rfs_file_block_offset (handle) ||
135e9c: 83 7b 14 00 cmpl $0x0,0x14(%ebx) <== NOT EXECUTED
135ea0: 75 14 jne 135eb6 <rtems_rfs_file_io_start+0xae><== NOT EXECUTED
(*available < rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle)))))
135ea2: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
135ea5: 8b 80 98 00 00 00 mov 0x98(%eax),%eax <== NOT EXECUTED
135eab: 8b 16 mov (%esi),%edx <== NOT EXECUTED
135ead: 3b 50 08 cmp 0x8(%eax),%edx <== NOT EXECUTED
135eb0: 72 04 jb 135eb6 <rtems_rfs_file_io_start+0xae><== NOT EXECUTED
135eb2: 31 c0 xor %eax,%eax <== NOT EXECUTED
135eb4: eb 02 jmp 135eb8 <rtems_rfs_file_io_start+0xb0><== NOT EXECUTED
135eb6: 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),
135eb8: 0f b6 c0 movzbl %al,%eax <== NOT EXECUTED
135ebb: 50 push %eax <== NOT EXECUTED
135ebc: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
135ebf: 8d 43 04 lea 0x4(%ebx),%eax <== NOT EXECUTED
135ec2: 50 push %eax <== NOT EXECUTED
135ec3: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
135ec6: ff b0 98 00 00 00 pushl 0x98(%eax) <== NOT EXECUTED
135ecc: e8 ad f1 ff ff call 13507e <rtems_rfs_buffer_handle_request><== NOT EXECUTED
rtems_rfs_file_buffer (handle),
block, request_read);
if (rc > 0)
135ed1: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
135ed4: 85 c0 test %eax,%eax <== NOT EXECUTED
135ed6: 7f 38 jg 135f10 <rtems_rfs_file_io_start+0x108><== NOT EXECUTED
return rc;
}
if (read
135ed8: 89 f9 mov %edi,%ecx <== NOT EXECUTED
135eda: 84 c9 test %cl,%cl <== NOT EXECUTED
135edc: 74 1f je 135efd <rtems_rfs_file_io_start+0xf5><== NOT EXECUTED
&& rtems_rfs_block_map_last (rtems_rfs_file_map (handle))
135ede: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
135ee1: 8b 50 44 mov 0x44(%eax),%edx <== NOT EXECUTED
block, request_read);
if (rc > 0)
return rc;
}
if (read
135ee4: 85 d2 test %edx,%edx <== NOT EXECUTED
135ee6: 75 06 jne 135eee <rtems_rfs_file_io_start+0xe6><== NOT EXECUTED
&& rtems_rfs_block_map_last (rtems_rfs_file_map (handle))
135ee8: 83 78 3c 00 cmpl $0x0,0x3c(%eax) <== NOT EXECUTED
135eec: 74 08 je 135ef6 <rtems_rfs_file_io_start+0xee><== NOT EXECUTED
block, request_read);
if (rc > 0)
return rc;
}
if (read
135eee: 8b 48 3c mov 0x3c(%eax),%ecx <== NOT EXECUTED
135ef1: 49 dec %ecx <== NOT EXECUTED
135ef2: 39 ca cmp %ecx,%edx <== NOT EXECUTED
135ef4: 75 07 jne 135efd <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)))
135ef6: 8b 40 40 mov 0x40(%eax),%eax <== NOT EXECUTED
block, request_read);
if (rc > 0)
return rc;
}
if (read
135ef9: 85 c0 test %eax,%eax <== NOT EXECUTED
135efb: 75 0c jne 135f09 <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));
135efd: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
135f00: 8b 80 98 00 00 00 mov 0x98(%eax),%eax <== NOT EXECUTED
135f06: 8b 40 08 mov 0x8(%eax),%eax <== NOT EXECUTED
*available = size - rtems_rfs_file_block_offset (handle);
135f09: 2b 43 14 sub 0x14(%ebx),%eax <== NOT EXECUTED
135f0c: 89 06 mov %eax,(%esi) <== NOT EXECUTED
135f0e: 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;
}
135f10: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
135f13: 5b pop %ebx <== NOT EXECUTED
135f14: 5e pop %esi <== NOT EXECUTED
135f15: 5f pop %edi <== NOT EXECUTED
135f16: c9 leave <== NOT EXECUTED
135f17: c3 ret <== NOT EXECUTED
001365aa <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)
{
1365aa: 55 push %ebp <== NOT EXECUTED
1365ab: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1365ad: 57 push %edi <== NOT EXECUTED
1365ae: 56 push %esi <== NOT EXECUTED
1365af: 53 push %ebx <== NOT EXECUTED
1365b0: 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;
1365b3: 8b 45 14 mov 0x14(%ebp),%eax <== NOT EXECUTED
1365b6: 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));
1365bc: 6a 20 push $0x20 <== NOT EXECUTED
1365be: e8 25 6e fd ff call 10d3e8 <malloc> <== NOT EXECUTED
1365c3: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (!handle)
1365c5: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1365c8: bf 0c 00 00 00 mov $0xc,%edi <== NOT EXECUTED
1365cd: 85 c0 test %eax,%eax <== NOT EXECUTED
1365cf: 0f 84 fb 01 00 00 je 1367d0 <rtems_rfs_file_open+0x226><== NOT EXECUTED
return ENOMEM;
memset (handle, 0, sizeof (rtems_rfs_file_handle));
1365d5: b9 08 00 00 00 mov $0x8,%ecx <== NOT EXECUTED
1365da: 31 c0 xor %eax,%eax <== NOT EXECUTED
1365dc: 89 f7 mov %esi,%edi <== NOT EXECUTED
1365de: f3 ab rep stos %eax,%es:(%edi) <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(
Chain_Control *the_chain
)
{
return the_chain->first;
1365e0: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
1365e3: 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;
1365e6: 83 c2 74 add $0x74,%edx <== NOT EXECUTED
1365e9: eb 0c jmp 1365f7 <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;
1365eb: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (shared->inode.ino == ino)
1365ed: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED
1365f0: 39 48 14 cmp %ecx,0x14(%eax) <== NOT EXECUTED
1365f3: 74 08 je 1365fd <rtems_rfs_file_open+0x53><== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Next(
Chain_Node *the_node
)
{
return the_node->next;
1365f5: 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))
1365f7: 39 d0 cmp %edx,%eax <== NOT EXECUTED
1365f9: 75 f0 jne 1365eb <rtems_rfs_file_open+0x41><== NOT EXECUTED
1365fb: eb 08 jmp 136605 <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++;
1365fd: ff 40 08 incl 0x8(%eax) <== NOT EXECUTED
136600: e9 bc 01 00 00 jmp 1367c1 <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));
136605: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
136608: 68 9c 00 00 00 push $0x9c <== NOT EXECUTED
13660d: e8 d6 6d fd ff call 10d3e8 <malloc> <== NOT EXECUTED
136612: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (!shared)
136614: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
136617: 85 c0 test %eax,%eax <== NOT EXECUTED
136619: 75 32 jne 13664d <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);
13661b: 51 push %ecx <== NOT EXECUTED
13661c: 51 push %ecx <== NOT EXECUTED
13661d: 8d 46 04 lea 0x4(%esi),%eax <== NOT EXECUTED
136620: 50 push %eax <== NOT EXECUTED
136621: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
136624: e8 5e e9 ff ff call 134f87 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
handle->dirty = false;
136629: c6 46 04 00 movb $0x0,0x4(%esi) <== NOT EXECUTED
handle->bnum = 0;
13662d: c7 46 08 00 00 00 00 movl $0x0,0x8(%esi) <== NOT EXECUTED
handle->buffer = NULL;
136634: c7 46 0c 00 00 00 00 movl $0x0,0xc(%esi) <== NOT EXECUTED
{
rtems_rfs_buffer_handle_close (fs, &handle->buffer);
free (handle);
13663b: 89 34 24 mov %esi,(%esp) <== NOT EXECUTED
13663e: e8 59 68 fd ff call 10ce9c <free> <== NOT EXECUTED
136643: bf 0c 00 00 00 mov $0xc,%edi <== NOT EXECUTED
136648: e9 82 00 00 00 jmp 1366cf <rtems_rfs_file_open+0x125><== NOT EXECUTED
return ENOMEM;
}
memset (shared, 0, sizeof (rtems_rfs_file_shared));
13664d: b9 27 00 00 00 mov $0x27,%ecx <== NOT EXECUTED
136652: 31 c0 xor %eax,%eax <== NOT EXECUTED
136654: 89 df mov %ebx,%edi <== NOT EXECUTED
136656: f3 ab rep stos %eax,%es:(%edi) <== NOT EXECUTED
rc = rtems_rfs_inode_open (fs, ino, &shared->inode, true);
136658: 8d 43 0c lea 0xc(%ebx),%eax <== NOT EXECUTED
13665b: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
13665e: 6a 01 push $0x1 <== NOT EXECUTED
136660: 50 push %eax <== NOT EXECUTED
136661: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
136664: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
136667: e8 6f 1a 00 00 call 1380db <rtems_rfs_inode_open> <== NOT EXECUTED
13666c: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc > 0)
13666e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
136671: 85 c0 test %eax,%eax <== NOT EXECUTED
136673: 7e 05 jle 13667a <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);
136675: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
136678: eb 27 jmp 1366a1 <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);
13667a: 52 push %edx <== NOT EXECUTED
13667b: 8d 43 34 lea 0x34(%ebx),%eax <== NOT EXECUTED
13667e: 50 push %eax <== NOT EXECUTED
13667f: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
136682: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
136685: e8 df e5 ff ff call 134c69 <rtems_rfs_block_map_open><== NOT EXECUTED
13668a: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc > 0)
13668c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13668f: 85 c0 test %eax,%eax <== NOT EXECUTED
136691: 7e 44 jle 1366d7 <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);
136693: 50 push %eax <== NOT EXECUTED
136694: 50 push %eax <== NOT EXECUTED
136695: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
136698: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
13669b: e8 cc 19 00 00 call 13806c <rtems_rfs_inode_close> <== NOT EXECUTED
free (shared);
1366a0: 59 pop %ecx <== NOT EXECUTED
1366a1: 53 push %ebx <== NOT EXECUTED
1366a2: e8 f5 67 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);
1366a7: 58 pop %eax <== NOT EXECUTED
1366a8: 5a pop %edx <== NOT EXECUTED
1366a9: 8d 46 04 lea 0x4(%esi),%eax <== NOT EXECUTED
1366ac: 50 push %eax <== NOT EXECUTED
1366ad: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
1366b0: e8 d2 e8 ff ff call 134f87 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
handle->dirty = false;
1366b5: c6 46 04 00 movb $0x0,0x4(%esi) <== NOT EXECUTED
handle->bnum = 0;
1366b9: c7 46 08 00 00 00 00 movl $0x0,0x8(%esi) <== NOT EXECUTED
handle->buffer = NULL;
1366c0: c7 46 0c 00 00 00 00 movl $0x0,0xc(%esi) <== NOT EXECUTED
rtems_rfs_buffer_handle_close (fs, &handle->buffer);
free (handle);
1366c7: 89 34 24 mov %esi,(%esp) <== NOT EXECUTED
1366ca: e8 cd 67 fd ff call 10ce9c <free> <== NOT EXECUTED
return rc;
1366cf: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1366d2: e9 f9 00 00 00 jmp 1367d0 <rtems_rfs_file_open+0x226><== NOT EXECUTED
}
shared->references = 1;
1366d7: 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);
1366de: 8b 43 18 mov 0x18(%ebx),%eax <== NOT EXECUTED
1366e1: 8d 78 0c lea 0xc(%eax),%edi <== NOT EXECUTED
shared->size.count = rtems_rfs_inode_get_block_count (&shared->inode);
1366e4: 0f b6 57 03 movzbl 0x3(%edi),%edx <== NOT EXECUTED
1366e8: 0f b6 48 0c movzbl 0xc(%eax),%ecx <== NOT EXECUTED
1366ec: c1 e1 18 shl $0x18,%ecx <== NOT EXECUTED
1366ef: 09 ca or %ecx,%edx <== NOT EXECUTED
1366f1: 0f b6 4f 01 movzbl 0x1(%edi),%ecx <== NOT EXECUTED
1366f5: c1 e1 10 shl $0x10,%ecx <== NOT EXECUTED
1366f8: 09 ca or %ecx,%edx <== NOT EXECUTED
1366fa: 0f b6 4f 02 movzbl 0x2(%edi),%ecx <== NOT EXECUTED
1366fe: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
136701: 09 ca or %ecx,%edx <== NOT EXECUTED
136703: 89 93 84 00 00 00 mov %edx,0x84(%ebx) <== NOT EXECUTED
shared->size.offset = rtems_rfs_inode_get_block_offset (&shared->inode);
136709: 0f b6 48 0a movzbl 0xa(%eax),%ecx <== NOT EXECUTED
13670d: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
136710: 0f b6 50 0b movzbl 0xb(%eax),%edx <== NOT EXECUTED
136714: 09 ca or %ecx,%edx <== NOT EXECUTED
136716: 0f b7 d2 movzwl %dx,%edx <== NOT EXECUTED
136719: 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);
13671f: 8d 78 10 lea 0x10(%eax),%edi <== NOT EXECUTED
shared->atime = rtems_rfs_inode_get_atime (&shared->inode);
136722: 0f b6 57 03 movzbl 0x3(%edi),%edx <== NOT EXECUTED
136726: 0f b6 48 10 movzbl 0x10(%eax),%ecx <== NOT EXECUTED
13672a: c1 e1 18 shl $0x18,%ecx <== NOT EXECUTED
13672d: 09 ca or %ecx,%edx <== NOT EXECUTED
13672f: 0f b6 4f 01 movzbl 0x1(%edi),%ecx <== NOT EXECUTED
136733: c1 e1 10 shl $0x10,%ecx <== NOT EXECUTED
136736: 09 ca or %ecx,%edx <== NOT EXECUTED
136738: 0f b6 4f 02 movzbl 0x2(%edi),%ecx <== NOT EXECUTED
13673c: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
13673f: 09 ca or %ecx,%edx <== NOT EXECUTED
136741: 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);
136747: 8d 78 14 lea 0x14(%eax),%edi <== NOT EXECUTED
shared->mtime = rtems_rfs_inode_get_mtime (&shared->inode);
13674a: 0f b6 57 03 movzbl 0x3(%edi),%edx <== NOT EXECUTED
13674e: 0f b6 48 14 movzbl 0x14(%eax),%ecx <== NOT EXECUTED
136752: c1 e1 18 shl $0x18,%ecx <== NOT EXECUTED
136755: 09 ca or %ecx,%edx <== NOT EXECUTED
136757: 0f b6 4f 01 movzbl 0x1(%edi),%ecx <== NOT EXECUTED
13675b: c1 e1 10 shl $0x10,%ecx <== NOT EXECUTED
13675e: 09 ca or %ecx,%edx <== NOT EXECUTED
136760: 0f b6 4f 02 movzbl 0x2(%edi),%ecx <== NOT EXECUTED
136764: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
136767: 09 ca or %ecx,%edx <== NOT EXECUTED
136769: 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);
13676f: 8d 48 18 lea 0x18(%eax),%ecx <== NOT EXECUTED
shared->ctime = rtems_rfs_inode_get_ctime (&shared->inode);
136772: 0f b6 51 03 movzbl 0x3(%ecx),%edx <== NOT EXECUTED
136776: 0f b6 40 18 movzbl 0x18(%eax),%eax <== NOT EXECUTED
13677a: c1 e0 18 shl $0x18,%eax <== NOT EXECUTED
13677d: 09 c2 or %eax,%edx <== NOT EXECUTED
13677f: 0f b6 41 01 movzbl 0x1(%ecx),%eax <== NOT EXECUTED
136783: c1 e0 10 shl $0x10,%eax <== NOT EXECUTED
136786: 09 c2 or %eax,%edx <== NOT EXECUTED
136788: 0f b6 41 02 movzbl 0x2(%ecx),%eax <== NOT EXECUTED
13678c: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
13678f: 09 c2 or %eax,%edx <== NOT EXECUTED
136791: 89 93 94 00 00 00 mov %edx,0x94(%ebx) <== NOT EXECUTED
shared->fs = fs;
136797: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
13679a: 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 );
1367a0: 57 push %edi <== NOT EXECUTED
1367a1: 57 push %edi <== NOT EXECUTED
1367a2: 53 push %ebx <== NOT EXECUTED
1367a3: 89 d0 mov %edx,%eax <== NOT EXECUTED
1367a5: 83 c0 70 add $0x70,%eax <== NOT EXECUTED
1367a8: 50 push %eax <== NOT EXECUTED
1367a9: e8 76 ae fd ff call 111624 <_Chain_Append> <== NOT EXECUTED
rtems_chain_append (&fs->file_shares, &shared->link);
rtems_rfs_inode_unload (fs, &shared->inode, false);
1367ae: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
1367b1: 6a 00 push $0x0 <== NOT EXECUTED
1367b3: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
1367b6: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
1367b9: e8 22 18 00 00 call 137fe0 <rtems_rfs_inode_unload><== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_OPEN))
1367be: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
printf ("rtems-rfs: file-open: ino=%" PRId32 " share created\n", ino);
}
handle->flags = flags;
1367c1: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
1367c4: 89 06 mov %eax,(%esi) <== NOT EXECUTED
handle->shared = shared;
1367c6: 89 5e 1c mov %ebx,0x1c(%esi) <== NOT EXECUTED
*file = handle;
1367c9: 8b 4d 14 mov 0x14(%ebp),%ecx <== NOT EXECUTED
1367cc: 89 31 mov %esi,(%ecx) <== NOT EXECUTED
1367ce: 31 ff xor %edi,%edi <== NOT EXECUTED
return 0;
}
1367d0: 89 f8 mov %edi,%eax <== NOT EXECUTED
1367d2: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1367d5: 5b pop %ebx <== NOT EXECUTED
1367d6: 5e pop %esi <== NOT EXECUTED
1367d7: 5f pop %edi <== NOT EXECUTED
1367d8: c9 leave <== NOT EXECUTED
1367d9: c3 ret <== NOT EXECUTED
00136202 <rtems_rfs_file_seek>:
int
rtems_rfs_file_seek (rtems_rfs_file_handle* handle,
rtems_rfs_pos pos,
rtems_rfs_pos* new_pos)
{
136202: 55 push %ebp <== NOT EXECUTED
136203: 89 e5 mov %esp,%ebp <== NOT EXECUTED
136205: 57 push %edi <== NOT EXECUTED
136206: 56 push %esi <== NOT EXECUTED
136207: 53 push %ebx <== NOT EXECUTED
136208: 83 ec 34 sub $0x34,%esp <== NOT EXECUTED
13620b: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
13620e: 8b 75 0c mov 0xc(%ebp),%esi <== NOT EXECUTED
136211: 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),
136214: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
136217: 8d 90 84 00 00 00 lea 0x84(%eax),%edx <== NOT EXECUTED
13621d: 52 push %edx <== NOT EXECUTED
13621e: ff b0 98 00 00 00 pushl 0x98(%eax) <== NOT EXECUTED
136224: e8 95 df ff ff call 1341be <rtems_rfs_block_get_size><== NOT EXECUTED
136229: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13622c: 39 d7 cmp %edx,%edi <== NOT EXECUTED
13622e: 77 65 ja 136295 <rtems_rfs_file_seek+0x93><== NOT EXECUTED
136230: 72 04 jb 136236 <rtems_rfs_file_seek+0x34><== NOT EXECUTED
136232: 39 c6 cmp %eax,%esi <== NOT EXECUTED
136234: 73 5f jae 136295 <rtems_rfs_file_seek+0x93><== NOT EXECUTED
handle->shared))
{
rtems_rfs_file_set_bpos (handle, pos);
136236: 8d 53 10 lea 0x10(%ebx),%edx <== NOT EXECUTED
136239: 52 push %edx <== NOT EXECUTED
13623a: 57 push %edi <== NOT EXECUTED
13623b: 56 push %esi <== NOT EXECUTED
13623c: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
13623f: ff b0 98 00 00 00 pushl 0x98(%eax) <== NOT EXECUTED
136245: 89 55 d4 mov %edx,-0x2c(%ebp) <== NOT EXECUTED
136248: e8 bb de ff ff call 134108 <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))
13624d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
136250: 83 7b 0c 00 cmpl $0x0,0xc(%ebx) <== NOT EXECUTED
136254: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED
136257: 74 4c je 1362a5 <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),
136259: 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),
13625c: 8d 4d e4 lea -0x1c(%ebp),%ecx <== NOT EXECUTED
13625f: 51 push %ecx <== NOT EXECUTED
136260: 52 push %edx <== NOT EXECUTED
136261: 8d 50 34 lea 0x34(%eax),%edx <== NOT EXECUTED
136264: 52 push %edx <== NOT EXECUTED
136265: ff b0 98 00 00 00 pushl 0x98(%eax) <== NOT EXECUTED
13626b: e8 18 e0 ff ff call 134288 <rtems_rfs_block_map_find><== NOT EXECUTED
rtems_rfs_file_map (handle),
rtems_rfs_file_bpos (handle),
&block);
if (rc > 0)
136270: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
136273: 85 c0 test %eax,%eax <== NOT EXECUTED
136275: 7f 38 jg 1362af <rtems_rfs_file_seek+0xad><== NOT EXECUTED
return rc;
if (rtems_rfs_buffer_bnum (&handle->buffer) != block)
136277: 8b 43 08 mov 0x8(%ebx),%eax <== NOT EXECUTED
13627a: 3b 45 e4 cmp -0x1c(%ebp),%eax <== NOT EXECUTED
13627d: 74 26 je 1362a5 <rtems_rfs_file_seek+0xa3><== NOT EXECUTED
{
rc = rtems_rfs_buffer_handle_release (rtems_rfs_file_fs (handle),
13627f: 50 push %eax <== NOT EXECUTED
136280: 50 push %eax <== NOT EXECUTED
136281: 8d 43 04 lea 0x4(%ebx),%eax <== NOT EXECUTED
136284: 50 push %eax <== NOT EXECUTED
136285: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
136288: ff b0 98 00 00 00 pushl 0x98(%eax) <== NOT EXECUTED
13628e: e8 f4 ec ff ff call 134f87 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
136293: eb 09 jmp 13629e <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);
136295: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
136298: 53 push %ebx <== NOT EXECUTED
136299: e8 7a fc ff ff call 135f18 <rtems_rfs_file_io_release><== NOT EXECUTED
if (rc > 0)
13629e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1362a1: 85 c0 test %eax,%eax <== NOT EXECUTED
1362a3: 7f 0a jg 1362af <rtems_rfs_file_seek+0xad><== NOT EXECUTED
return rc;
}
*new_pos = pos;
1362a5: 8b 45 14 mov 0x14(%ebp),%eax <== NOT EXECUTED
1362a8: 89 30 mov %esi,(%eax) <== NOT EXECUTED
1362aa: 89 78 04 mov %edi,0x4(%eax) <== NOT EXECUTED
1362ad: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
}
1362af: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1362b2: 5b pop %ebx <== NOT EXECUTED
1362b3: 5e pop %esi <== NOT EXECUTED
1362b4: 5f pop %edi <== NOT EXECUTED
1362b5: c9 leave <== NOT EXECUTED
1362b6: c3 ret <== NOT EXECUTED
00135f42 <rtems_rfs_file_set_size>:
}
int
rtems_rfs_file_set_size (rtems_rfs_file_handle* handle,
rtems_rfs_pos new_size)
{
135f42: 55 push %ebp <== NOT EXECUTED
135f43: 89 e5 mov %esp,%ebp <== NOT EXECUTED
135f45: 57 push %edi <== NOT EXECUTED
135f46: 56 push %esi <== NOT EXECUTED
135f47: 53 push %ebx <== NOT EXECUTED
135f48: 83 ec 44 sub $0x44,%esp <== NOT EXECUTED
135f4b: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
135f4e: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
135f51: 89 45 d0 mov %eax,-0x30(%ebp) <== NOT EXECUTED
135f54: 89 55 d4 mov %edx,-0x2c(%ebp) <== NOT EXECUTED
rtems_rfs_block_map* map = rtems_rfs_file_map (handle);
135f57: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
135f5a: 8b 72 1c mov 0x1c(%edx),%esi <== NOT EXECUTED
135f5d: 8d 86 84 00 00 00 lea 0x84(%esi),%eax <== NOT EXECUTED
135f63: 50 push %eax <== NOT EXECUTED
135f64: ff b6 98 00 00 00 pushl 0x98(%esi) <== NOT EXECUTED
135f6a: e8 4f e2 ff ff call 1341be <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)
135f6f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
135f72: 3b 55 d4 cmp -0x2c(%ebp),%edx <== NOT EXECUTED
135f75: 75 09 jne 135f80 <rtems_rfs_file_set_size+0x3e><== NOT EXECUTED
135f77: 3b 45 d0 cmp -0x30(%ebp),%eax <== NOT EXECUTED
135f7a: 0f 84 78 02 00 00 je 1361f8 <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);
135f80: 8d 4e 34 lea 0x34(%esi),%ecx <== NOT EXECUTED
135f83: 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)
135f86: 8b 5d d4 mov -0x2c(%ebp),%ebx <== NOT EXECUTED
135f89: 0b 5d d0 or -0x30(%ebp),%ebx <== NOT EXECUTED
135f8c: 75 24 jne 135fb2 <rtems_rfs_file_set_size+0x70><== NOT EXECUTED
{
rc = rtems_rfs_block_map_free_all (rtems_rfs_file_fs (handle), map);
135f8e: 53 push %ebx <== NOT EXECUTED
135f8f: 53 push %ebx <== NOT EXECUTED
135f90: 51 push %ecx <== NOT EXECUTED
135f91: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
135f94: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED
135f97: ff b0 98 00 00 00 pushl 0x98(%eax) <== NOT EXECUTED
135f9d: e8 94 e7 ff ff call 134736 <rtems_rfs_block_map_free_all><== NOT EXECUTED
if (rc > 0)
135fa2: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
135fa5: 85 c0 test %eax,%eax <== NOT EXECUTED
135fa7: 0f 8f 4d 02 00 00 jg 1361fa <rtems_rfs_file_set_size+0x2b8><== NOT EXECUTED
135fad: e9 12 02 00 00 jmp 1361c4 <rtems_rfs_file_set_size+0x282><== NOT EXECUTED
return rc;
}
else
{
if (size < new_size)
135fb2: 3b 55 d4 cmp -0x2c(%ebp),%edx <== NOT EXECUTED
135fb5: 0f 87 52 01 00 00 ja 13610d <rtems_rfs_file_set_size+0x1cb><== NOT EXECUTED
135fbb: 72 09 jb 135fc6 <rtems_rfs_file_set_size+0x84><== NOT EXECUTED
135fbd: 3b 45 d0 cmp -0x30(%ebp),%eax <== NOT EXECUTED
135fc0: 0f 83 47 01 00 00 jae 13610d <rtems_rfs_file_set_size+0x1cb><== NOT EXECUTED
*/
rtems_rfs_pos count;
uint32_t length;
bool read_block;
count = new_size - size;
135fc6: 8b 4d d0 mov -0x30(%ebp),%ecx <== NOT EXECUTED
135fc9: 8b 5d d4 mov -0x2c(%ebp),%ebx <== NOT EXECUTED
135fcc: 29 c1 sub %eax,%ecx <== NOT EXECUTED
135fce: 19 d3 sbb %edx,%ebx <== NOT EXECUTED
135fd0: 89 4d d0 mov %ecx,-0x30(%ebp) <== NOT EXECUTED
135fd3: 89 5d d4 mov %ebx,-0x2c(%ebp) <== NOT EXECUTED
length = rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle));
135fd6: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
135fd9: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
135fdc: 8b 80 98 00 00 00 mov 0x98(%eax),%eax <== NOT EXECUTED
135fe2: 8b 40 08 mov 0x8(%eax),%eax <== NOT EXECUTED
135fe5: 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),
135fe8: 83 c3 04 add $0x4,%ebx <== NOT EXECUTED
135feb: 89 5d bc mov %ebx,-0x44(%ebp) <== NOT EXECUTED
135fee: c6 45 c3 00 movb $0x0,-0x3d(%ebp) <== NOT EXECUTED
135ff2: 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)
135ff5: e9 ff 00 00 00 jmp 1360f9 <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);
135ffa: 8b 46 3c mov 0x3c(%esi),%eax <== NOT EXECUTED
135ffd: 89 45 d8 mov %eax,-0x28(%ebp) <== NOT EXECUTED
136000: 8b 56 40 mov 0x40(%esi),%edx <== NOT EXECUTED
136003: 89 55 dc mov %edx,-0x24(%ebp) <== NOT EXECUTED
136006: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp) <== NOT EXECUTED
13600d: 85 d2 test %edx,%edx <== NOT EXECUTED
13600f: 74 04 je 136015 <rtems_rfs_file_set_size+0xd3><== NOT EXECUTED
136011: 48 dec %eax <== NOT EXECUTED
136012: 89 45 d8 mov %eax,-0x28(%ebp) <== NOT EXECUTED
rc = rtems_rfs_block_map_find (rtems_rfs_file_fs (handle),
136015: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
136018: 50 push %eax <== NOT EXECUTED
136019: 8d 55 d8 lea -0x28(%ebp),%edx <== NOT EXECUTED
13601c: 52 push %edx <== NOT EXECUTED
13601d: ff 75 c4 pushl -0x3c(%ebp) <== NOT EXECUTED
136020: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
136023: ff b0 98 00 00 00 pushl 0x98(%eax) <== NOT EXECUTED
136029: e8 5a e2 ff ff call 134288 <rtems_rfs_block_map_find><== NOT EXECUTED
map, &bpos, &block);
if (rc > 0)
13602e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
136031: 85 c0 test %eax,%eax <== NOT EXECUTED
136033: 7e 2b jle 136060 <rtems_rfs_file_set_size+0x11e><== NOT EXECUTED
{
/*
* Have we reached the EOF ?
*/
if (rc != ENXIO)
136035: 83 f8 06 cmp $0x6,%eax <== NOT EXECUTED
136038: 0f 85 bc 01 00 00 jne 1361fa <rtems_rfs_file_set_size+0x2b8><== NOT EXECUTED
return rc;
rc = rtems_rfs_block_map_grow (rtems_rfs_file_fs (handle),
13603e: 8d 4d e4 lea -0x1c(%ebp),%ecx <== NOT EXECUTED
136041: 51 push %ecx <== NOT EXECUTED
136042: 6a 01 push $0x1 <== NOT EXECUTED
136044: ff 75 c4 pushl -0x3c(%ebp) <== NOT EXECUTED
136047: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
13604a: ff b0 98 00 00 00 pushl 0x98(%eax) <== NOT EXECUTED
136050: e8 d9 e7 ff ff call 13482e <rtems_rfs_block_map_grow><== NOT EXECUTED
map, 1, &block);
if (rc > 0)
136055: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
136058: 85 c0 test %eax,%eax <== NOT EXECUTED
13605a: 0f 8f 9a 01 00 00 jg 1361fa <rtems_rfs_file_set_size+0x2b8><== NOT EXECUTED
return rc;
}
if (count < (length - bpos.boff))
136060: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED
136063: 8b 55 c8 mov -0x38(%ebp),%edx <== NOT EXECUTED
136066: 29 c2 sub %eax,%edx <== NOT EXECUTED
136068: 83 7d d4 00 cmpl $0x0,-0x2c(%ebp) <== NOT EXECUTED
13606c: 77 18 ja 136086 <rtems_rfs_file_set_size+0x144><== NOT EXECUTED
13606e: 39 55 d0 cmp %edx,-0x30(%ebp) <== NOT EXECUTED
136071: 73 13 jae 136086 <rtems_rfs_file_set_size+0x144><== NOT EXECUTED
{
length = count + bpos.boff;
136073: 03 45 d0 add -0x30(%ebp),%eax <== NOT EXECUTED
136076: 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;
136079: 89 46 40 mov %eax,0x40(%esi) <== NOT EXECUTED
map->dirty = true;
13607c: c6 46 34 01 movb $0x1,0x34(%esi) <== NOT EXECUTED
136080: c6 45 c3 01 movb $0x1,-0x3d(%ebp) <== NOT EXECUTED
136084: eb 0b jmp 136091 <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;
136086: c7 46 40 00 00 00 00 movl $0x0,0x40(%esi) <== NOT EXECUTED
map->dirty = true;
13608d: 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),
136091: 0f b6 45 c3 movzbl -0x3d(%ebp),%eax <== NOT EXECUTED
136095: 50 push %eax <== NOT EXECUTED
136096: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
136099: ff 75 bc pushl -0x44(%ebp) <== NOT EXECUTED
13609c: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
13609f: ff b0 98 00 00 00 pushl 0x98(%eax) <== NOT EXECUTED
1360a5: e8 d4 ef ff ff call 13507e <rtems_rfs_buffer_handle_request><== NOT EXECUTED
rtems_rfs_file_buffer (handle),
block, read_block);
if (rc > 0)
1360aa: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1360ad: 85 c0 test %eax,%eax <== NOT EXECUTED
1360af: 0f 8f 45 01 00 00 jg 1361fa <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);
1360b5: 8b 55 dc mov -0x24(%ebp),%edx <== NOT EXECUTED
1360b8: 8b 4d c8 mov -0x38(%ebp),%ecx <== NOT EXECUTED
1360bb: 29 d1 sub %edx,%ecx <== NOT EXECUTED
1360bd: 8b 43 0c mov 0xc(%ebx),%eax <== NOT EXECUTED
1360c0: 03 50 20 add 0x20(%eax),%edx <== NOT EXECUTED
1360c3: 31 c0 xor %eax,%eax <== NOT EXECUTED
1360c5: 89 d7 mov %edx,%edi <== NOT EXECUTED
1360c7: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (rtems_rfs_file_buffer (handle));
1360c9: c6 43 04 01 movb $0x1,0x4(%ebx) <== NOT EXECUTED
rc = rtems_rfs_buffer_handle_release (rtems_rfs_file_fs (handle),
1360cd: 51 push %ecx <== NOT EXECUTED
1360ce: 51 push %ecx <== NOT EXECUTED
1360cf: ff 75 bc pushl -0x44(%ebp) <== NOT EXECUTED
1360d2: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
1360d5: ff b0 98 00 00 00 pushl 0x98(%eax) <== NOT EXECUTED
1360db: e8 a7 ee ff ff call 134f87 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
rtems_rfs_file_buffer (handle));
if (rc > 0)
1360e0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1360e3: 85 c0 test %eax,%eax <== NOT EXECUTED
1360e5: 0f 8f 0f 01 00 00 jg 1361fa <rtems_rfs_file_set_size+0x2b8><== NOT EXECUTED
return rc;
count -= length - bpos.boff;
1360eb: 8b 45 c8 mov -0x38(%ebp),%eax <== NOT EXECUTED
1360ee: 2b 45 dc sub -0x24(%ebp),%eax <== NOT EXECUTED
1360f1: 31 d2 xor %edx,%edx <== NOT EXECUTED
1360f3: 29 45 d0 sub %eax,-0x30(%ebp) <== NOT EXECUTED
1360f6: 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)
1360f9: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED
1360fc: 0b 45 d0 or -0x30(%ebp),%eax <== NOT EXECUTED
1360ff: 0f 85 f5 fe ff ff jne 135ffa <rtems_rfs_file_set_size+0xb8><== NOT EXECUTED
136105: 89 5d 08 mov %ebx,0x8(%ebp) <== NOT EXECUTED
136108: e9 b7 00 00 00 jmp 1361c4 <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);
13610d: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
136110: 8b 4a 1c mov 0x1c(%edx),%ecx <== NOT EXECUTED
136113: 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) /
136119: 8b 47 08 mov 0x8(%edi),%eax <== NOT EXECUTED
13611c: 31 d2 xor %edx,%edx <== NOT EXECUTED
13611e: 89 45 c8 mov %eax,-0x38(%ebp) <== NOT EXECUTED
136121: 89 55 cc mov %edx,-0x34(%ebp) <== NOT EXECUTED
* Shrink
*/
rtems_rfs_block_no blocks;
uint32_t offset;
blocks =
136124: 8b 45 d0 mov -0x30(%ebp),%eax <== NOT EXECUTED
136127: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED
13612a: 83 c0 ff add $0xffffffff,%eax <== NOT EXECUTED
13612d: 83 d2 ff adc $0xffffffff,%edx <== NOT EXECUTED
136130: ff 75 cc pushl -0x34(%ebp) <== NOT EXECUTED
136133: ff 75 c8 pushl -0x38(%ebp) <== NOT EXECUTED
136136: 52 push %edx <== NOT EXECUTED
136137: 50 push %eax <== NOT EXECUTED
136138: 89 4d b8 mov %ecx,-0x48(%ebp) <== NOT EXECUTED
13613b: e8 f8 c8 01 00 call 152a38 <__udivdi3> <== NOT EXECUTED
136140: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
136143: 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)
136145: 03 46 3c add 0x3c(%esi),%eax <== NOT EXECUTED
136148: 8b 4d b8 mov -0x48(%ebp),%ecx <== NOT EXECUTED
13614b: 74 17 je 136164 <rtems_rfs_file_set_size+0x222><== NOT EXECUTED
{
int rc;
rc = rtems_rfs_block_map_shrink (rtems_rfs_file_fs (handle),
13614d: 52 push %edx <== NOT EXECUTED
13614e: 50 push %eax <== NOT EXECUTED
13614f: 8d 41 34 lea 0x34(%ecx),%eax <== NOT EXECUTED
136152: 50 push %eax <== NOT EXECUTED
136153: 57 push %edi <== NOT EXECUTED
136154: e8 60 e3 ff ff call 1344b9 <rtems_rfs_block_map_shrink><== NOT EXECUTED
rtems_rfs_file_map (handle),
blocks);
if (rc > 0)
136159: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13615c: 85 c0 test %eax,%eax <== NOT EXECUTED
13615e: 0f 8f 96 00 00 00 jg 1361fa <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 =
136164: ff 75 cc pushl -0x34(%ebp) <== NOT EXECUTED
136167: ff 75 c8 pushl -0x38(%ebp) <== NOT EXECUTED
13616a: ff 75 d4 pushl -0x2c(%ebp) <== NOT EXECUTED
13616d: ff 75 d0 pushl -0x30(%ebp) <== NOT EXECUTED
136170: e8 d3 c9 01 00 call 152b48 <__umoddi3> <== NOT EXECUTED
136175: 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;
136178: 89 46 40 mov %eax,0x40(%esi) <== NOT EXECUTED
map->dirty = true;
13617b: 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),
13617f: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
136182: 8b 51 10 mov 0x10(%ecx),%edx <== NOT EXECUTED
136185: 85 d2 test %edx,%edx <== NOT EXECUTED
136187: 74 06 je 13618f <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);
136189: 83 7e 3c 00 cmpl $0x0,0x3c(%esi) <== NOT EXECUTED
13618d: 74 14 je 1361a3 <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),
13618f: 8b 4e 3c mov 0x3c(%esi),%ecx <== NOT EXECUTED
136192: 39 ca cmp %ecx,%edx <== NOT EXECUTED
136194: 73 0d jae 1361a3 <rtems_rfs_file_set_size+0x261><== NOT EXECUTED
136196: 49 dec %ecx <== NOT EXECUTED
136197: 39 ca cmp %ecx,%edx <== NOT EXECUTED
136199: 75 29 jne 1361c4 <rtems_rfs_file_set_size+0x282><== NOT EXECUTED
13619b: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
13619e: 39 43 14 cmp %eax,0x14(%ebx) <== NOT EXECUTED
1361a1: 76 21 jbe 1361c4 <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),
1361a3: 8b 46 3c mov 0x3c(%esi),%eax <== NOT EXECUTED
1361a6: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
1361a9: 89 42 10 mov %eax,0x10(%edx) <== NOT EXECUTED
1361ac: 8b 56 40 mov 0x40(%esi),%edx <== NOT EXECUTED
1361af: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
1361b2: 89 51 14 mov %edx,0x14(%ecx) <== NOT EXECUTED
1361b5: c7 41 18 00 00 00 00 movl $0x0,0x18(%ecx) <== NOT EXECUTED
1361bc: 85 d2 test %edx,%edx <== NOT EXECUTED
1361be: 74 04 je 1361c4 <rtems_rfs_file_set_size+0x282><== NOT EXECUTED
1361c0: 48 dec %eax <== NOT EXECUTED
1361c1: 89 41 10 mov %eax,0x10(%ecx) <== NOT EXECUTED
rtems_rfs_file_bpos (handle));
}
}
handle->shared->size.count = rtems_rfs_block_map_count (map);
1361c4: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
1361c7: 8b 7b 1c mov 0x1c(%ebx),%edi <== NOT EXECUTED
1361ca: 8b 46 3c mov 0x3c(%esi),%eax <== NOT EXECUTED
1361cd: 89 87 84 00 00 00 mov %eax,0x84(%edi) <== NOT EXECUTED
handle->shared->size.offset = rtems_rfs_block_map_size_offset (map);
1361d3: 8b 46 40 mov 0x40(%esi),%eax <== NOT EXECUTED
1361d6: 89 87 88 00 00 00 mov %eax,0x88(%edi) <== NOT EXECUTED
if (rtems_rfs_file_update_mtime (handle))
1361dc: f6 03 02 testb $0x2,(%ebx) <== NOT EXECUTED
1361df: 75 17 jne 1361f8 <rtems_rfs_file_set_size+0x2b6><== NOT EXECUTED
handle->shared->mtime = time (NULL);
1361e1: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1361e4: 6a 00 push $0x0 <== NOT EXECUTED
1361e6: e8 45 18 01 00 call 147a30 <time> <== NOT EXECUTED
1361eb: 89 87 90 00 00 00 mov %eax,0x90(%edi) <== NOT EXECUTED
1361f1: 31 c0 xor %eax,%eax <== NOT EXECUTED
1361f3: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1361f6: eb 02 jmp 1361fa <rtems_rfs_file_set_size+0x2b8><== NOT EXECUTED
1361f8: 31 c0 xor %eax,%eax <== NOT EXECUTED
}
return 0;
}
1361fa: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1361fd: 5b pop %ebx <== NOT EXECUTED
1361fe: 5e pop %esi <== NOT EXECUTED
1361ff: 5f pop %edi <== NOT EXECUTED
136200: c9 leave <== NOT EXECUTED
136201: c3 ret <== NOT EXECUTED
00136d24 <rtems_rfs_format>:
return rc;
}
int
rtems_rfs_format (const char* name, const rtems_rfs_format_config* config)
{
136d24: 55 push %ebp <== NOT EXECUTED
136d25: 89 e5 mov %esp,%ebp <== NOT EXECUTED
136d27: 57 push %edi <== NOT EXECUTED
136d28: 56 push %esi <== NOT EXECUTED
136d29: 53 push %ebx <== NOT EXECUTED
136d2a: 81 ec 0c 01 00 00 sub $0x10c,%esp <== NOT EXECUTED
rtems_rfs_file_system fs;
int group;
int rc;
if (config->verbose)
136d30: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
136d33: 80 78 15 00 cmpb $0x0,0x15(%eax) <== NOT EXECUTED
136d37: 74 12 je 136d4b <rtems_rfs_format+0x27> <== NOT EXECUTED
printf ("rtems-rfs: format: %s\n", name);
136d39: 52 push %edx <== NOT EXECUTED
136d3a: 52 push %edx <== NOT EXECUTED
136d3b: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
136d3e: 68 45 cd 15 00 push $0x15cd45 <== NOT EXECUTED
136d43: e8 6c 9f 00 00 call 140cb4 <printf> <== NOT EXECUTED
136d48: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
memset (&fs, 0, sizeof (rtems_rfs_file_system));
136d4b: 8d 9d 14 ff ff ff lea -0xec(%ebp),%ebx <== NOT EXECUTED
136d51: b9 20 00 00 00 mov $0x20,%ecx <== NOT EXECUTED
136d56: 31 c0 xor %eax,%eax <== NOT EXECUTED
136d58: 89 df mov %ebx,%edi <== NOT EXECUTED
136d5a: 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);
136d5c: 8d 85 58 ff ff ff lea -0xa8(%ebp),%eax <== NOT EXECUTED
136d62: 89 85 54 ff ff ff mov %eax,-0xac(%ebp) <== NOT EXECUTED
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
136d68: 8d 85 54 ff ff ff lea -0xac(%ebp),%eax <== NOT EXECUTED
136d6e: 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);
136d74: 8d 85 68 ff ff ff lea -0x98(%ebp),%eax <== NOT EXECUTED
136d7a: 89 85 64 ff ff ff mov %eax,-0x9c(%ebp) <== NOT EXECUTED
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
136d80: 8d 85 64 ff ff ff lea -0x9c(%ebp),%eax <== NOT EXECUTED
136d86: 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);
136d8c: 8d 85 78 ff ff ff lea -0x88(%ebp),%eax <== NOT EXECUTED
136d92: 89 85 74 ff ff ff mov %eax,-0x8c(%ebp) <== NOT EXECUTED
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
136d98: 8d 85 74 ff ff ff lea -0x8c(%ebp),%eax <== NOT EXECUTED
136d9e: 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);
136da4: 8d 45 88 lea -0x78(%ebp),%eax <== NOT EXECUTED
136da7: 89 45 84 mov %eax,-0x7c(%ebp) <== NOT EXECUTED
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
136daa: 8d 45 84 lea -0x7c(%ebp),%eax <== NOT EXECUTED
136dad: 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;
136db0: c7 85 50 ff ff ff 05 movl $0x5,-0xb0(%ebp) <== NOT EXECUTED
136db7: 00 00 00
fs.release_count = 0;
fs.release_modified_count = 0;
fs.flags = RTEMS_RFS_FS_NO_LOCAL_CACHE;
136dba: c7 85 14 ff ff ff 02 movl $0x2,-0xec(%ebp) <== NOT EXECUTED
136dc1: 00 00 00
/*
* Open the buffer interface.
*/
rc = rtems_rfs_buffer_open (name, &fs);
136dc4: 50 push %eax <== NOT EXECUTED
136dc5: 50 push %eax <== NOT EXECUTED
136dc6: 53 push %ebx <== NOT EXECUTED
136dc7: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
136dca: e8 66 e1 ff ff call 134f35 <rtems_rfs_buffer_open> <== NOT EXECUTED
136dcf: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
136dd1: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
136dd4: 85 c0 test %eax,%eax <== NOT EXECUTED
136dd6: 7e 18 jle 136df0 <rtems_rfs_format+0xcc> <== NOT EXECUTED
{
printf ("rtems-rfs: format: buffer open failed: %d: %s\n",
136dd8: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
136ddb: 50 push %eax <== NOT EXECUTED
136ddc: e8 1b b9 00 00 call 1426fc <strerror> <== NOT EXECUTED
136de1: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
136de4: 50 push %eax <== NOT EXECUTED
136de5: 56 push %esi <== NOT EXECUTED
136de6: 68 5c cd 15 00 push $0x15cd5c <== NOT EXECUTED
136deb: e9 68 0b 00 00 jmp 137958 <rtems_rfs_format+0xc34><== NOT EXECUTED
}
/*
* Check the media.
*/
if (rtems_rfs_fs_media_block_size (&fs) == 0)
136df0: 8b 85 20 ff ff ff mov -0xe0(%ebp),%eax <== NOT EXECUTED
136df6: 83 78 24 00 cmpl $0x0,0x24(%eax) <== NOT EXECUTED
136dfa: 75 0e jne 136e0a <rtems_rfs_format+0xe6> <== NOT EXECUTED
{
printf ("rtems-rfs: media block is invalid: %" PRIu32 "\n",
136dfc: 57 push %edi <== NOT EXECUTED
136dfd: 57 push %edi <== NOT EXECUTED
136dfe: 6a 00 push $0x0 <== NOT EXECUTED
136e00: 68 8b cd 15 00 push $0x15cd8b <== NOT EXECUTED
136e05: e9 4e 0b 00 00 jmp 137958 <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;
136e0a: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
136e0d: 8b 02 mov (%edx),%eax <== NOT EXECUTED
136e0f: 89 85 1c ff ff ff mov %eax,-0xe4(%ebp) <== NOT EXECUTED
if (!fs->block_size)
136e15: 85 c0 test %eax,%eax <== NOT EXECUTED
136e17: 75 75 jne 136e8e <rtems_rfs_format+0x16a><== NOT EXECUTED
{
uint64_t total_size = rtems_rfs_fs_media_size (fs);
136e19: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
136e1c: 53 push %ebx <== NOT EXECUTED
136e1d: e8 c8 f9 ff ff call 1367ea <rtems_rfs_fs_media_size><== NOT EXECUTED
if (total_size >= GIGS (1))
136e22: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
136e25: 83 fa 00 cmp $0x0,%edx <== NOT EXECUTED
136e28: 77 07 ja 136e31 <rtems_rfs_format+0x10d><== NOT EXECUTED
136e2a: 3d ff ff 0f 00 cmp $0xfffff,%eax <== NOT EXECUTED
136e2f: 76 31 jbe 136e62 <rtems_rfs_format+0x13e><== NOT EXECUTED
{
uint32_t gigs = (total_size + GIGS (1)) / GIGS (1);
136e31: 05 00 00 10 00 add $0x100000,%eax <== NOT EXECUTED
136e36: 83 d2 00 adc $0x0,%edx <== NOT EXECUTED
136e39: 0f ac d0 14 shrd $0x14,%edx,%eax <== NOT EXECUTED
136e3d: c1 ea 14 shr $0x14,%edx <== NOT EXECUTED
136e40: b9 1f 00 00 00 mov $0x1f,%ecx <== NOT EXECUTED
int b;
for (b = 31; b > 0; b--)
if ((gigs & (1 << b)) != 0)
136e45: ba 01 00 00 00 mov $0x1,%edx <== NOT EXECUTED
136e4a: 89 d3 mov %edx,%ebx <== NOT EXECUTED
136e4c: d3 e3 shl %cl,%ebx <== NOT EXECUTED
136e4e: 85 c3 test %eax,%ebx <== NOT EXECUTED
136e50: 75 03 jne 136e55 <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--)
136e52: 49 dec %ecx <== NOT EXECUTED
136e53: 75 f5 jne 136e4a <rtems_rfs_format+0x126><== NOT EXECUTED
if ((gigs & (1 << b)) != 0)
break;
fs->block_size = 1 << b;
136e55: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
136e5a: d3 e0 shl %cl,%eax <== NOT EXECUTED
136e5c: 89 85 1c ff ff ff mov %eax,-0xe4(%ebp) <== NOT EXECUTED
}
if (fs->block_size < 512)
136e62: 81 bd 1c ff ff ff ff cmpl $0x1ff,-0xe4(%ebp) <== NOT EXECUTED
136e69: 01 00 00
136e6c: 77 0a ja 136e78 <rtems_rfs_format+0x154><== NOT EXECUTED
fs->block_size = 512;
136e6e: c7 85 1c ff ff ff 00 movl $0x200,-0xe4(%ebp) <== NOT EXECUTED
136e75: 02 00 00
if (fs->block_size > (4 * 1024))
136e78: 81 bd 1c ff ff ff 00 cmpl $0x1000,-0xe4(%ebp) <== NOT EXECUTED
136e7f: 10 00 00
136e82: 76 0a jbe 136e8e <rtems_rfs_format+0x16a><== NOT EXECUTED
fs->block_size = (4 * 1024);
136e84: c7 85 1c ff ff ff 00 movl $0x1000,-0xe4(%ebp) <== NOT EXECUTED
136e8b: 10 00 00
}
if ((fs->block_size % rtems_rfs_fs_media_block_size (fs)) != 0)
136e8e: 8b 8d 1c ff ff ff mov -0xe4(%ebp),%ecx <== NOT EXECUTED
136e94: 8b 85 20 ff ff ff mov -0xe0(%ebp),%eax <== NOT EXECUTED
136e9a: 8b 58 24 mov 0x24(%eax),%ebx <== NOT EXECUTED
136e9d: 89 c8 mov %ecx,%eax <== NOT EXECUTED
136e9f: 31 d2 xor %edx,%edx <== NOT EXECUTED
136ea1: f7 f3 div %ebx <== NOT EXECUTED
136ea3: 85 d2 test %edx,%edx <== NOT EXECUTED
136ea5: 74 0d je 136eb4 <rtems_rfs_format+0x190><== NOT EXECUTED
{
printf ("block size (%zd) is not a multiple of media block size (%" PRId32 ")\n",
136ea7: 56 push %esi <== NOT EXECUTED
136ea8: 53 push %ebx <== NOT EXECUTED
136ea9: 51 push %ecx <== NOT EXECUTED
136eaa: 68 b3 cd 15 00 push $0x15cdb3 <== NOT EXECUTED
136eaf: e9 a4 0a 00 00 jmp 137958 <rtems_rfs_format+0xc34><== NOT EXECUTED
fs->block_size, rtems_rfs_fs_media_block_size (fs));
return false;
}
fs->group_blocks = config->group_blocks;
136eb4: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
136eb7: 8b 42 04 mov 0x4(%edx),%eax <== NOT EXECUTED
136eba: 89 85 38 ff ff ff mov %eax,-0xc8(%ebp) <== NOT EXECUTED
if (!fs->group_blocks)
136ec0: 85 c0 test %eax,%eax <== NOT EXECUTED
136ec2: 75 09 jne 136ecd <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);
136ec4: c1 e1 03 shl $0x3,%ecx <== NOT EXECUTED
136ec7: 89 8d 38 ff ff ff mov %ecx,-0xc8(%ebp) <== NOT EXECUTED
}
if (fs->group_blocks > rtems_rfs_bitmap_numof_bits (fs->block_size))
136ecd: 8b 85 1c ff ff ff mov -0xe4(%ebp),%eax <== NOT EXECUTED
136ed3: c1 e0 03 shl $0x3,%eax <== NOT EXECUTED
136ed6: 39 85 38 ff ff ff cmp %eax,-0xc8(%ebp) <== NOT EXECUTED
136edc: 76 0d jbe 136eeb <rtems_rfs_format+0x1c7><== NOT EXECUTED
{
printf ("group block count is higher than bits in block\n");
136ede: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
136ee1: 68 f1 cd 15 00 push $0x15cdf1 <== NOT EXECUTED
136ee6: e9 5e 04 00 00 jmp 137349 <rtems_rfs_format+0x625><== NOT EXECUTED
return false;
}
fs->blocks = rtems_rfs_fs_media_size (fs) / fs->block_size;
136eeb: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
136eee: 8d 85 14 ff ff ff lea -0xec(%ebp),%eax <== NOT EXECUTED
136ef4: 50 push %eax <== NOT EXECUTED
136ef5: e8 f0 f8 ff ff call 1367ea <rtems_rfs_fs_media_size><== NOT EXECUTED
136efa: 8b 8d 1c ff ff ff mov -0xe4(%ebp),%ecx <== NOT EXECUTED
136f00: 31 db xor %ebx,%ebx <== NOT EXECUTED
136f02: 53 push %ebx <== NOT EXECUTED
136f03: 51 push %ecx <== NOT EXECUTED
136f04: 52 push %edx <== NOT EXECUTED
136f05: 50 push %eax <== NOT EXECUTED
136f06: e8 2d bb 01 00 call 152a38 <__udivdi3> <== NOT EXECUTED
136f0b: 89 c3 mov %eax,%ebx <== NOT EXECUTED
136f0d: 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));
136f13: 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)
136f19: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
136f1c: b9 01 00 00 00 mov $0x1,%ecx <== NOT EXECUTED
136f21: 85 c0 test %eax,%eax <== NOT EXECUTED
136f23: 74 0d je 136f32 <rtems_rfs_format+0x20e><== NOT EXECUTED
return 1;
return ((dividend - 1) / divisor) + 1;
136f25: 8d 40 ff lea -0x1(%eax),%eax <== NOT EXECUTED
136f28: c1 e6 03 shl $0x3,%esi <== NOT EXECUTED
136f2b: 31 d2 xor %edx,%edx <== NOT EXECUTED
136f2d: f7 f6 div %esi <== NOT EXECUTED
136f2f: 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),
136f32: 89 8d 34 ff ff ff mov %ecx,-0xcc(%ebp) <== NOT EXECUTED
rtems_rfs_bits_per_block (fs));
fs->group_inodes = config->group_inodes;
136f38: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
136f3b: 8b 42 08 mov 0x8(%edx),%eax <== NOT EXECUTED
136f3e: 89 85 3c ff ff ff mov %eax,-0xc4(%ebp) <== NOT EXECUTED
if (!fs->group_inodes)
136f44: 85 c0 test %eax,%eax <== NOT EXECUTED
136f46: 75 3f jne 136f87 <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)
136f48: 8b 42 0c mov 0xc(%edx),%eax <== NOT EXECUTED
136f4b: 85 c0 test %eax,%eax <== NOT EXECUTED
136f4d: 75 02 jne 136f51 <rtems_rfs_format+0x22d><== NOT EXECUTED
136f4f: 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) -
136f51: 4b dec %ebx <== NOT EXECUTED
136f52: 0f af c3 imul %ebx,%eax <== NOT EXECUTED
136f55: bf 64 00 00 00 mov $0x64,%edi <== NOT EXECUTED
136f5a: 31 d2 xor %edx,%edx <== NOT EXECUTED
136f5c: f7 f7 div %edi <== NOT EXECUTED
* "quotient = dividend / divisor"
*/
int
rtems_rfs_rup_quotient (uint32_t dividend, uint32_t divisor)
{
if (dividend == 0)
136f5e: be 01 00 00 00 mov $0x1,%esi <== NOT EXECUTED
136f63: 85 c0 test %eax,%eax <== NOT EXECUTED
136f65: 74 08 je 136f6f <rtems_rfs_format+0x24b><== NOT EXECUTED
return 1;
return ((dividend - 1) / divisor) + 1;
136f67: 48 dec %eax <== NOT EXECUTED
136f68: 31 d2 xor %edx,%edx <== NOT EXECUTED
136f6a: f7 f1 div %ecx <== NOT EXECUTED
136f6c: 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);
136f6f: 8b 85 1c ff ff ff mov -0xe4(%ebp),%eax <== NOT EXECUTED
136f75: bb 38 00 00 00 mov $0x38,%ebx <== NOT EXECUTED
136f7a: 31 d2 xor %edx,%edx <== NOT EXECUTED
136f7c: f7 f3 div %ebx <== NOT EXECUTED
136f7e: 0f af f0 imul %eax,%esi <== NOT EXECUTED
136f81: 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;
136f87: 8b 85 1c ff ff ff mov -0xe4(%ebp),%eax <== NOT EXECUTED
136f8d: bb 38 00 00 00 mov $0x38,%ebx <== NOT EXECUTED
136f92: 31 d2 xor %edx,%edx <== NOT EXECUTED
136f94: f7 f3 div %ebx <== NOT EXECUTED
136f96: 89 c1 mov %eax,%ecx <== NOT EXECUTED
136f98: 89 85 40 ff ff ff mov %eax,-0xc0(%ebp) <== NOT EXECUTED
fs->group_inodes =
rtems_rfs_rup_quotient (fs->group_inodes,
136f9e: 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)
136fa4: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
136fa9: 85 d2 test %edx,%edx <== NOT EXECUTED
136fab: 74 08 je 136fb5 <rtems_rfs_format+0x291><== NOT EXECUTED
return 1;
return ((dividend - 1) / divisor) + 1;
136fad: 8d 42 ff lea -0x1(%edx),%eax <== NOT EXECUTED
136fb0: 31 d2 xor %edx,%edx <== NOT EXECUTED
136fb2: f7 f1 div %ecx <== NOT EXECUTED
136fb4: 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,
136fb5: 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 =
136fb8: 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))
136fbe: 8b 95 1c ff ff ff mov -0xe4(%ebp),%edx <== NOT EXECUTED
136fc4: c1 e2 03 shl $0x3,%edx <== NOT EXECUTED
136fc7: 39 d1 cmp %edx,%ecx <== NOT EXECUTED
136fc9: 76 06 jbe 136fd1 <rtems_rfs_format+0x2ad><== NOT EXECUTED
fs->group_inodes = rtems_rfs_bitmap_numof_bits (fs->block_size);
136fcb: 89 95 3c ff ff ff mov %edx,-0xc4(%ebp) <== NOT EXECUTED
fs->max_name_length = config->max_name_length;
136fd1: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
136fd4: 8b 42 10 mov 0x10(%edx),%eax <== NOT EXECUTED
136fd7: 89 85 2c ff ff ff mov %eax,-0xd4(%ebp) <== NOT EXECUTED
if (!fs->max_name_length)
136fdd: 85 c0 test %eax,%eax <== NOT EXECUTED
136fdf: 0f 85 86 09 00 00 jne 13796b <rtems_rfs_format+0xc47><== NOT EXECUTED
{
fs->max_name_length = 512;
136fe5: c7 85 2c ff ff ff 00 movl $0x200,-0xd4(%ebp) <== NOT EXECUTED
136fec: 02 00 00
136fef: e9 77 09 00 00 jmp 13796b <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",
136ff4: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
136ff7: 8d 9d 14 ff ff ff lea -0xec(%ebp),%ebx <== NOT EXECUTED
136ffd: 53 push %ebx <== NOT EXECUTED
136ffe: e8 e7 f7 ff ff call 1367ea <rtems_rfs_fs_media_size><== NOT EXECUTED
137003: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
137006: 52 push %edx <== NOT EXECUTED
137007: 50 push %eax <== NOT EXECUTED
137008: 68 20 ce 15 00 push $0x15ce20 <== NOT EXECUTED
13700d: e8 a2 9c 00 00 call 140cb4 <printf> <== NOT EXECUTED
rtems_rfs_fs_media_size (&fs));
printf ("rtems-rfs: format: media blocks = %" PRIu32 "\n",
137012: 5a pop %edx <== NOT EXECUTED
137013: 59 pop %ecx <== NOT EXECUTED
137014: 8b 85 20 ff ff ff mov -0xe0(%ebp),%eax <== NOT EXECUTED
13701a: ff 70 1c pushl 0x1c(%eax) <== NOT EXECUTED
13701d: 68 46 ce 15 00 push $0x15ce46 <== NOT EXECUTED
137022: e8 8d 9c 00 00 call 140cb4 <printf> <== NOT EXECUTED
rtems_rfs_fs_media_blocks (&fs));
printf ("rtems-rfs: format: media block size = %" PRIu32 "\n",
137027: 5f pop %edi <== NOT EXECUTED
137028: 58 pop %eax <== NOT EXECUTED
137029: 8b 85 20 ff ff ff mov -0xe0(%ebp),%eax <== NOT EXECUTED
13702f: ff 70 24 pushl 0x24(%eax) <== NOT EXECUTED
137032: 68 6d ce 15 00 push $0x15ce6d <== NOT EXECUTED
137037: e8 78 9c 00 00 call 140cb4 <printf> <== NOT EXECUTED
rtems_rfs_fs_media_block_size (&fs));
printf ("rtems-rfs: format: size = %" PRIu64 "\n",
13703c: 89 1c 24 mov %ebx,(%esp) <== NOT EXECUTED
13703f: e8 98 f7 ff ff call 1367dc <rtems_rfs_fs_size> <== NOT EXECUTED
137044: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
137047: 52 push %edx <== NOT EXECUTED
137048: 50 push %eax <== NOT EXECUTED
137049: 68 98 ce 15 00 push $0x15ce98 <== NOT EXECUTED
13704e: e8 61 9c 00 00 call 140cb4 <printf> <== NOT EXECUTED
rtems_rfs_fs_size (&fs));
printf ("rtems-rfs: format: blocks = %zu\n",
137053: 59 pop %ecx <== NOT EXECUTED
137054: 5e pop %esi <== NOT EXECUTED
137055: ff b5 18 ff ff ff pushl -0xe8(%ebp) <== NOT EXECUTED
13705b: 68 b8 ce 15 00 push $0x15ceb8 <== NOT EXECUTED
137060: e8 4f 9c 00 00 call 140cb4 <printf> <== NOT EXECUTED
rtems_rfs_fs_blocks (&fs));
printf ("rtems-rfs: format: block size = %zu\n",
137065: 58 pop %eax <== NOT EXECUTED
137066: 5a pop %edx <== NOT EXECUTED
137067: ff b5 1c ff ff ff pushl -0xe4(%ebp) <== NOT EXECUTED
13706d: 68 d9 ce 15 00 push $0x15ced9 <== NOT EXECUTED
137072: e8 3d 9c 00 00 call 140cb4 <printf> <== NOT EXECUTED
rtems_rfs_fs_block_size (&fs));
printf ("rtems-rfs: format: bits per block = %u\n",
137077: 5e pop %esi <== NOT EXECUTED
137078: 5f pop %edi <== NOT EXECUTED
137079: 8b 85 1c ff ff ff mov -0xe4(%ebp),%eax <== NOT EXECUTED
13707f: c1 e0 03 shl $0x3,%eax <== NOT EXECUTED
137082: 50 push %eax <== NOT EXECUTED
137083: 68 fe ce 15 00 push $0x15cefe <== NOT EXECUTED
137088: e8 27 9c 00 00 call 140cb4 <printf> <== NOT EXECUTED
rtems_rfs_bits_per_block (&fs));
printf ("rtems-rfs: format: inode size = %zu\n", RTEMS_RFS_INODE_SIZE);
13708d: 5a pop %edx <== NOT EXECUTED
13708e: 59 pop %ecx <== NOT EXECUTED
13708f: 6a 38 push $0x38 <== NOT EXECUTED
137091: 68 26 cf 15 00 push $0x15cf26 <== NOT EXECUTED
137096: e8 19 9c 00 00 call 140cb4 <printf> <== NOT EXECUTED
printf ("rtems-rfs: format: inodes = %zu (%d.%d%%)\n",
13709b: 89 d8 mov %ebx,%eax <== NOT EXECUTED
13709d: e8 22 fc ff ff call 136cc4 <rtems_rfs_inode_overhead><== NOT EXECUTED
1370a2: b9 0a 00 00 00 mov $0xa,%ecx <== NOT EXECUTED
1370a7: 99 cltd <== NOT EXECUTED
1370a8: f7 f9 idiv %ecx <== NOT EXECUTED
1370aa: 52 push %edx <== NOT EXECUTED
1370ab: 50 push %eax <== NOT EXECUTED
1370ac: 8b 85 34 ff ff ff mov -0xcc(%ebp),%eax <== NOT EXECUTED
1370b2: 0f af 85 3c ff ff ff imul -0xc4(%ebp),%eax <== NOT EXECUTED
1370b9: 50 push %eax <== NOT EXECUTED
1370ba: 68 4b cf 15 00 push $0x15cf4b <== NOT EXECUTED
1370bf: e8 f0 9b 00 00 call 140cb4 <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);
1370c4: 83 c4 18 add $0x18,%esp <== NOT EXECUTED
1370c7: ff b5 34 ff ff ff pushl -0xcc(%ebp) <== NOT EXECUTED
1370cd: 68 76 cf 15 00 push $0x15cf76 <== NOT EXECUTED
1370d2: e8 dd 9b 00 00 call 140cb4 <printf> <== NOT EXECUTED
printf ("rtems-rfs: format: group blocks = %zu\n", fs.group_blocks);
1370d7: 5f pop %edi <== NOT EXECUTED
1370d8: 58 pop %eax <== NOT EXECUTED
1370d9: ff b5 38 ff ff ff pushl -0xc8(%ebp) <== NOT EXECUTED
1370df: 68 96 cf 15 00 push $0x15cf96 <== NOT EXECUTED
1370e4: e8 cb 9b 00 00 call 140cb4 <printf> <== NOT EXECUTED
printf ("rtems-rfs: format: group inodes = %zu\n", fs.group_inodes);
1370e9: 5b pop %ebx <== NOT EXECUTED
1370ea: 5e pop %esi <== NOT EXECUTED
1370eb: ff b5 3c ff ff ff pushl -0xc4(%ebp) <== NOT EXECUTED
1370f1: 68 bd cf 15 00 push $0x15cfbd <== NOT EXECUTED
1370f6: e8 b9 9b 00 00 call 140cb4 <printf> <== NOT EXECUTED
1370fb: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
rc = rtems_rfs_buffer_setblksize (&fs, rtems_rfs_fs_block_size (&fs));
1370fe: 51 push %ecx <== NOT EXECUTED
1370ff: 51 push %ecx <== NOT EXECUTED
137100: ff b5 1c ff ff ff pushl -0xe4(%ebp) <== NOT EXECUTED
137106: 8d 9d 14 ff ff ff lea -0xec(%ebp),%ebx <== NOT EXECUTED
13710c: 53 push %ebx <== NOT EXECUTED
13710d: e8 bb dd ff ff call 134ecd <rtems_rfs_buffer_setblksize><== NOT EXECUTED
137112: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
137114: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
137117: 85 c0 test %eax,%eax <== NOT EXECUTED
137119: 7e 18 jle 137133 <rtems_rfs_format+0x40f><== NOT EXECUTED
{
printf ("rtems-rfs: format: setting block size failed: %d: %s\n",
13711b: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13711e: 50 push %eax <== NOT EXECUTED
13711f: e8 d8 b5 00 00 call 1426fc <strerror> <== NOT EXECUTED
137124: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
137127: 50 push %eax <== NOT EXECUTED
137128: 56 push %esi <== NOT EXECUTED
137129: 68 e4 cf 15 00 push $0x15cfe4 <== NOT EXECUTED
13712e: e9 25 08 00 00 jmp 137958 <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;
137133: c6 45 d4 00 movb $0x0,-0x2c(%ebp) <== NOT EXECUTED
handle->bnum = 0;
137137: c7 45 d8 00 00 00 00 movl $0x0,-0x28(%ebp) <== NOT EXECUTED
handle->buffer = NULL;
13713e: 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);
137145: 6a 00 push $0x0 <== NOT EXECUTED
137147: 6a 00 push $0x0 <== NOT EXECUTED
137149: 8d 45 d4 lea -0x2c(%ebp),%eax <== NOT EXECUTED
13714c: 50 push %eax <== NOT EXECUTED
13714d: 53 push %ebx <== NOT EXECUTED
13714e: e8 2b df ff ff call 13507e <rtems_rfs_buffer_handle_request><== NOT EXECUTED
137153: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
137155: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
137158: 85 c0 test %eax,%eax <== NOT EXECUTED
13715a: 7e 22 jle 13717e <rtems_rfs_format+0x45a><== NOT EXECUTED
{
rtems_rfs_buffer_handle_close (fs, &handle);
13715c: 8d 55 d4 lea -0x2c(%ebp),%edx <== NOT EXECUTED
13715f: 89 d8 mov %ebx,%eax <== NOT EXECUTED
137161: e8 96 fb ff ff call 136cfc <rtems_rfs_buffer_handle_close><== NOT EXECUTED
printf ("rtems-rfs: write-superblock: request failed: %d: %s\n",
137166: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
137169: 56 push %esi <== NOT EXECUTED
13716a: e8 8d b5 00 00 call 1426fc <strerror> <== NOT EXECUTED
13716f: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
137172: 50 push %eax <== NOT EXECUTED
137173: 56 push %esi <== NOT EXECUTED
137174: 68 1a d0 15 00 push $0x15d01a <== NOT EXECUTED
137179: e9 bf 01 00 00 jmp 13733d <rtems_rfs_format+0x619><== NOT EXECUTED
rc, strerror (rc));
return false;
}
sb = rtems_rfs_buffer_data (&handle);
13717e: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED
137181: 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));
137184: 8b 8d 1c ff ff ff mov -0xe4(%ebp),%ecx <== NOT EXECUTED
13718a: b0 ff mov $0xff,%al <== NOT EXECUTED
13718c: 89 d7 mov %edx,%edi <== NOT EXECUTED
13718e: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED
write_sb (RTEMS_RFS_SB_OFFSET_MAGIC, RTEMS_RFS_SB_MAGIC);
137190: c6 02 28 movb $0x28,(%edx) <== NOT EXECUTED
137193: c6 42 01 09 movb $0x9,0x1(%edx) <== NOT EXECUTED
137197: c6 42 02 20 movb $0x20,0x2(%edx) <== NOT EXECUTED
13719b: c6 42 03 01 movb $0x1,0x3(%edx) <== NOT EXECUTED
write_sb (RTEMS_RFS_SB_OFFSET_VERSION, RTEMS_RFS_VERSION);
13719f: c6 42 04 00 movb $0x0,0x4(%edx) <== NOT EXECUTED
1371a3: c6 42 05 00 movb $0x0,0x5(%edx) <== NOT EXECUTED
1371a7: c6 42 06 00 movb $0x0,0x6(%edx) <== NOT EXECUTED
1371ab: c6 42 07 00 movb $0x0,0x7(%edx) <== NOT EXECUTED
write_sb (RTEMS_RFS_SB_OFFSET_BLOCKS, rtems_rfs_fs_blocks (fs));
1371af: 0f b6 85 1b ff ff ff movzbl -0xe5(%ebp),%eax <== NOT EXECUTED
1371b6: 88 42 0c mov %al,0xc(%edx) <== NOT EXECUTED
1371b9: 0f b7 85 1a ff ff ff movzwl -0xe6(%ebp),%eax <== NOT EXECUTED
1371c0: 88 42 0d mov %al,0xd(%edx) <== NOT EXECUTED
1371c3: 8b 85 18 ff ff ff mov -0xe8(%ebp),%eax <== NOT EXECUTED
1371c9: c1 e8 08 shr $0x8,%eax <== NOT EXECUTED
1371cc: 88 42 0e mov %al,0xe(%edx) <== NOT EXECUTED
1371cf: 8b 85 18 ff ff ff mov -0xe8(%ebp),%eax <== NOT EXECUTED
1371d5: 88 42 0f mov %al,0xf(%edx) <== NOT EXECUTED
write_sb (RTEMS_RFS_SB_OFFSET_BLOCK_SIZE, rtems_rfs_fs_block_size (fs));
1371d8: 0f b6 85 1f ff ff ff movzbl -0xe1(%ebp),%eax <== NOT EXECUTED
1371df: 88 42 08 mov %al,0x8(%edx) <== NOT EXECUTED
1371e2: 0f b7 85 1e ff ff ff movzwl -0xe2(%ebp),%eax <== NOT EXECUTED
1371e9: 88 42 09 mov %al,0x9(%edx) <== NOT EXECUTED
1371ec: 8b 85 1c ff ff ff mov -0xe4(%ebp),%eax <== NOT EXECUTED
1371f2: c1 e8 08 shr $0x8,%eax <== NOT EXECUTED
1371f5: 88 42 0a mov %al,0xa(%edx) <== NOT EXECUTED
1371f8: 8b 85 1c ff ff ff mov -0xe4(%ebp),%eax <== NOT EXECUTED
1371fe: 88 42 0b mov %al,0xb(%edx) <== NOT EXECUTED
write_sb (RTEMS_RFS_SB_OFFSET_BAD_BLOCKS, fs->bad_blocks);
137201: 0f b6 85 2b ff ff ff movzbl -0xd5(%ebp),%eax <== NOT EXECUTED
137208: 88 42 10 mov %al,0x10(%edx) <== NOT EXECUTED
13720b: 0f b7 85 2a ff ff ff movzwl -0xd6(%ebp),%eax <== NOT EXECUTED
137212: 88 42 11 mov %al,0x11(%edx) <== NOT EXECUTED
137215: 8b 85 28 ff ff ff mov -0xd8(%ebp),%eax <== NOT EXECUTED
13721b: c1 e8 08 shr $0x8,%eax <== NOT EXECUTED
13721e: 88 42 12 mov %al,0x12(%edx) <== NOT EXECUTED
137221: 8b 85 28 ff ff ff mov -0xd8(%ebp),%eax <== NOT EXECUTED
137227: 88 42 13 mov %al,0x13(%edx) <== NOT EXECUTED
write_sb (RTEMS_RFS_SB_OFFSET_MAX_NAME_LENGTH, fs->max_name_length);
13722a: 0f b6 85 2f ff ff ff movzbl -0xd1(%ebp),%eax <== NOT EXECUTED
137231: 88 42 14 mov %al,0x14(%edx) <== NOT EXECUTED
137234: 0f b7 85 2e ff ff ff movzwl -0xd2(%ebp),%eax <== NOT EXECUTED
13723b: 88 42 15 mov %al,0x15(%edx) <== NOT EXECUTED
13723e: 8b 85 2c ff ff ff mov -0xd4(%ebp),%eax <== NOT EXECUTED
137244: c1 e8 08 shr $0x8,%eax <== NOT EXECUTED
137247: 88 42 16 mov %al,0x16(%edx) <== NOT EXECUTED
13724a: 8b 85 2c ff ff ff mov -0xd4(%ebp),%eax <== NOT EXECUTED
137250: 88 42 17 mov %al,0x17(%edx) <== NOT EXECUTED
write_sb (RTEMS_RFS_SB_OFFSET_GROUPS, fs->group_count);
137253: 0f b6 85 37 ff ff ff movzbl -0xc9(%ebp),%eax <== NOT EXECUTED
13725a: 88 42 18 mov %al,0x18(%edx) <== NOT EXECUTED
13725d: 0f b7 85 36 ff ff ff movzwl -0xca(%ebp),%eax <== NOT EXECUTED
137264: 88 42 19 mov %al,0x19(%edx) <== NOT EXECUTED
137267: 8b 85 34 ff ff ff mov -0xcc(%ebp),%eax <== NOT EXECUTED
13726d: c1 e8 08 shr $0x8,%eax <== NOT EXECUTED
137270: 88 42 1a mov %al,0x1a(%edx) <== NOT EXECUTED
137273: 8b 85 34 ff ff ff mov -0xcc(%ebp),%eax <== NOT EXECUTED
137279: 88 42 1b mov %al,0x1b(%edx) <== NOT EXECUTED
write_sb (RTEMS_RFS_SB_OFFSET_GROUP_BLOCKS, fs->group_blocks);
13727c: 0f b6 85 3b ff ff ff movzbl -0xc5(%ebp),%eax <== NOT EXECUTED
137283: 88 42 1c mov %al,0x1c(%edx) <== NOT EXECUTED
137286: 0f b7 85 3a ff ff ff movzwl -0xc6(%ebp),%eax <== NOT EXECUTED
13728d: 88 42 1d mov %al,0x1d(%edx) <== NOT EXECUTED
137290: 8b 85 38 ff ff ff mov -0xc8(%ebp),%eax <== NOT EXECUTED
137296: c1 e8 08 shr $0x8,%eax <== NOT EXECUTED
137299: 88 42 1e mov %al,0x1e(%edx) <== NOT EXECUTED
13729c: 8b 85 38 ff ff ff mov -0xc8(%ebp),%eax <== NOT EXECUTED
1372a2: 88 42 1f mov %al,0x1f(%edx) <== NOT EXECUTED
write_sb (RTEMS_RFS_SB_OFFSET_GROUP_INODES, fs->group_inodes);
1372a5: 0f b6 85 3f ff ff ff movzbl -0xc1(%ebp),%eax <== NOT EXECUTED
1372ac: 88 42 20 mov %al,0x20(%edx) <== NOT EXECUTED
1372af: 0f b7 85 3e ff ff ff movzwl -0xc2(%ebp),%eax <== NOT EXECUTED
1372b6: 88 42 21 mov %al,0x21(%edx) <== NOT EXECUTED
1372b9: 8b 85 3c ff ff ff mov -0xc4(%ebp),%eax <== NOT EXECUTED
1372bf: c1 e8 08 shr $0x8,%eax <== NOT EXECUTED
1372c2: 88 42 22 mov %al,0x22(%edx) <== NOT EXECUTED
1372c5: 8b 85 3c ff ff ff mov -0xc4(%ebp),%eax <== NOT EXECUTED
1372cb: 88 42 23 mov %al,0x23(%edx) <== NOT EXECUTED
write_sb (RTEMS_RFS_SB_OFFSET_INODE_SIZE, RTEMS_RFS_INODE_SIZE);
1372ce: c6 42 24 00 movb $0x0,0x24(%edx) <== NOT EXECUTED
1372d2: c6 42 25 00 movb $0x0,0x25(%edx) <== NOT EXECUTED
1372d6: c6 42 26 00 movb $0x0,0x26(%edx) <== NOT EXECUTED
1372da: c6 42 27 38 movb $0x38,0x27(%edx) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle);
1372de: c6 45 d4 01 movb $0x1,-0x2c(%ebp) <== NOT EXECUTED
rc = rtems_rfs_buffer_handle_release (fs, &handle);
1372e2: 52 push %edx <== NOT EXECUTED
1372e3: 52 push %edx <== NOT EXECUTED
1372e4: 8d 55 d4 lea -0x2c(%ebp),%edx <== NOT EXECUTED
1372e7: 52 push %edx <== NOT EXECUTED
1372e8: 53 push %ebx <== NOT EXECUTED
1372e9: e8 99 dc ff ff call 134f87 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
1372ee: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
1372f0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1372f3: 85 c0 test %eax,%eax <== NOT EXECUTED
1372f5: 7e 1f jle 137316 <rtems_rfs_format+0x5f2><== NOT EXECUTED
{
rtems_rfs_buffer_handle_close (fs, &handle);
1372f7: 8d 55 d4 lea -0x2c(%ebp),%edx <== NOT EXECUTED
1372fa: 89 d8 mov %ebx,%eax <== NOT EXECUTED
1372fc: e8 fb f9 ff ff call 136cfc <rtems_rfs_buffer_handle_close><== NOT EXECUTED
printf ("rtems-rfs: write-superblock: buffer release failed: %d: %s\n",
137301: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
137304: 56 push %esi <== NOT EXECUTED
137305: e8 f2 b3 00 00 call 1426fc <strerror> <== NOT EXECUTED
13730a: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
13730d: 50 push %eax <== NOT EXECUTED
13730e: 56 push %esi <== NOT EXECUTED
13730f: 68 4f d0 15 00 push $0x15d04f <== NOT EXECUTED
137314: eb 27 jmp 13733d <rtems_rfs_format+0x619><== NOT EXECUTED
rc, strerror (rc));
return false;
}
rc = rtems_rfs_buffer_handle_close (fs, &handle);
137316: 8d 55 d4 lea -0x2c(%ebp),%edx <== NOT EXECUTED
137319: 89 d8 mov %ebx,%eax <== NOT EXECUTED
13731b: e8 dc f9 ff ff call 136cfc <rtems_rfs_buffer_handle_close><== NOT EXECUTED
137320: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
137322: 85 c0 test %eax,%eax <== NOT EXECUTED
137324: 0f 8e e1 03 00 00 jle 13770b <rtems_rfs_format+0x9e7><== NOT EXECUTED
{
printf ("rtems-rfs: write-superblock: buffer handle close failed: %d: %s\n",
13732a: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13732d: 50 push %eax <== NOT EXECUTED
13732e: e8 c9 b3 00 00 call 1426fc <strerror> <== NOT EXECUTED
137333: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
137336: 50 push %eax <== NOT EXECUTED
137337: 56 push %esi <== NOT EXECUTED
137338: 68 8b d0 15 00 push $0x15d08b <== NOT EXECUTED
13733d: e8 72 99 00 00 call 140cb4 <printf> <== NOT EXECUTED
return -1;
}
if (!rtems_rfs_write_superblock (&fs))
{
printf ("rtems-rfs: format: superblock write failed\n");
137342: c7 04 24 cc d0 15 00 movl $0x15d0cc,(%esp) <== NOT EXECUTED
137349: e8 7a 9b 00 00 call 140ec8 <puts> <== NOT EXECUTED
13734e: e9 0a 06 00 00 jmp 13795d <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))
137353: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
137356: 8a 40 15 mov 0x15(%eax),%al <== NOT EXECUTED
137359: 88 85 ff fe ff ff mov %al,-0x101(%ebp) <== NOT EXECUTED
13735f: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
137362: 8a 52 14 mov 0x14(%edx),%dl <== NOT EXECUTED
137365: 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);
13736b: 8b b5 38 ff ff ff mov -0xc8(%ebp),%esi <== NOT EXECUTED
137371: 8b 85 04 ff ff ff mov -0xfc(%ebp),%eax <== NOT EXECUTED
137377: 0f af c6 imul %esi,%eax <== NOT EXECUTED
13737a: 89 85 f4 fe ff ff mov %eax,-0x10c(%ebp) <== NOT EXECUTED
137380: 40 inc %eax <== NOT EXECUTED
137381: 89 85 00 ff ff ff mov %eax,-0x100(%ebp) <== NOT EXECUTED
if (group_base > rtems_rfs_fs_blocks (fs))
137387: 8b 85 18 ff ff ff mov -0xe8(%ebp),%eax <== NOT EXECUTED
13738d: 39 85 00 ff ff ff cmp %eax,-0x100(%ebp) <== NOT EXECUTED
137393: 76 12 jbe 1373a7 <rtems_rfs_format+0x683><== NOT EXECUTED
{
printf ("rtems-rfs: write-group: group %d base beyond disk limit\n",
137395: 50 push %eax <== NOT EXECUTED
137396: 50 push %eax <== NOT EXECUTED
137397: ff b5 04 ff ff ff pushl -0xfc(%ebp) <== NOT EXECUTED
13739d: 68 f7 d0 15 00 push $0x15d0f7 <== NOT EXECUTED
1373a2: e9 b1 05 00 00 jmp 137958 <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))
1373a7: 8b 95 00 ff ff ff mov -0x100(%ebp),%edx <== NOT EXECUTED
1373ad: 01 f2 add %esi,%edx <== NOT EXECUTED
1373af: 39 c2 cmp %eax,%edx <== NOT EXECUTED
1373b1: 76 08 jbe 1373bb <rtems_rfs_format+0x697><== NOT EXECUTED
group_size = rtems_rfs_fs_blocks (fs) - group_base;
1373b3: 89 c6 mov %eax,%esi <== NOT EXECUTED
1373b5: 2b b5 00 ff ff ff sub -0x100(%ebp),%esi <== NOT EXECUTED
if (verbose)
1373bb: 80 bd ff fe ff ff 00 cmpb $0x0,-0x101(%ebp) <== NOT EXECUTED
1373c2: 74 1a je 1373de <rtems_rfs_format+0x6ba><== NOT EXECUTED
printf ("\rrtems-rfs: format: group %3d: base = %" PRId32 ", size = %zd",
1373c4: 56 push %esi <== NOT EXECUTED
1373c5: ff b5 00 ff ff ff pushl -0x100(%ebp) <== NOT EXECUTED
1373cb: ff b5 04 ff ff ff pushl -0xfc(%ebp) <== NOT EXECUTED
1373d1: 68 30 d1 15 00 push $0x15d130 <== NOT EXECUTED
1373d6: e8 d9 98 00 00 call 140cb4 <printf> <== NOT EXECUTED
1373db: 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;
1373de: c6 45 d4 00 movb $0x0,-0x2c(%ebp) <== NOT EXECUTED
handle->bnum = 0;
1373e2: c7 45 d8 00 00 00 00 movl $0x0,-0x28(%ebp) <== NOT EXECUTED
handle->buffer = NULL;
1373e9: 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)
1373f0: 80 bd ff fe ff ff 00 cmpb $0x0,-0x101(%ebp) <== NOT EXECUTED
1373f7: 74 10 je 137409 <rtems_rfs_format+0x6e5><== NOT EXECUTED
printf (", blocks");
1373f9: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1373fc: 68 66 d1 15 00 push $0x15d166 <== NOT EXECUTED
137401: e8 ae 98 00 00 call 140cb4 <printf> <== NOT EXECUTED
137406: 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,
137409: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13740c: ff b5 00 ff ff ff pushl -0x100(%ebp) <== NOT EXECUTED
137412: 56 push %esi <== NOT EXECUTED
137413: 8d 55 d4 lea -0x2c(%ebp),%edx <== NOT EXECUTED
137416: 52 push %edx <== NOT EXECUTED
137417: 8d 85 14 ff ff ff lea -0xec(%ebp),%eax <== NOT EXECUTED
13741d: 50 push %eax <== NOT EXECUTED
13741e: 53 push %ebx <== NOT EXECUTED
13741f: e8 68 4d 00 00 call 13c18c <rtems_rfs_bitmap_open> <== NOT EXECUTED
group_base + RTEMS_RFS_GROUP_BLOCK_BITMAP_BLOCK);
if (rc > 0)
137424: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
137427: 85 c0 test %eax,%eax <== NOT EXECUTED
137429: 7e 28 jle 137453 <rtems_rfs_format+0x72f><== NOT EXECUTED
13742b: 89 c6 mov %eax,%esi <== NOT EXECUTED
{
rtems_rfs_buffer_handle_close (fs, &handle);
13742d: 8d 55 d4 lea -0x2c(%ebp),%edx <== NOT EXECUTED
137430: 8d 85 14 ff ff ff lea -0xec(%ebp),%eax <== NOT EXECUTED
137436: e8 c1 f8 ff ff call 136cfc <rtems_rfs_buffer_handle_close><== NOT EXECUTED
printf ("\nrtems-rfs: write-group: group %3d: open block bitmap failed: %d: %s\n",
13743b: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13743e: 56 push %esi <== NOT EXECUTED
13743f: e8 b8 b2 00 00 call 1426fc <strerror> <== NOT EXECUTED
137444: 50 push %eax <== NOT EXECUTED
137445: 56 push %esi <== NOT EXECUTED
137446: ff b5 04 ff ff ff pushl -0xfc(%ebp) <== NOT EXECUTED
13744c: 68 6f d1 15 00 push $0x15d16f <== NOT EXECUTED
137451: eb 50 jmp 1374a3 <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));
137453: 8b 8d 1c ff ff ff mov -0xe4(%ebp),%ecx <== NOT EXECUTED
137459: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED
13745c: 8b 50 20 mov 0x20(%eax),%edx <== NOT EXECUTED
13745f: b0 ff mov $0xff,%al <== NOT EXECUTED
137461: 89 d7 mov %edx,%edi <== NOT EXECUTED
137463: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED
/*
* Clear the bitmap.
*/
rc = rtems_rfs_bitmap_map_clear_all (&bitmap);
137465: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
137468: 53 push %ebx <== NOT EXECUTED
137469: e8 6d 4d 00 00 call 13c1db <rtems_rfs_bitmap_map_clear_all><== NOT EXECUTED
if (rc > 0)
13746e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
137471: 85 c0 test %eax,%eax <== NOT EXECUTED
137473: 7e 38 jle 1374ad <rtems_rfs_format+0x789><== NOT EXECUTED
137475: 89 c6 mov %eax,%esi <== NOT EXECUTED
{
rtems_rfs_bitmap_close (&bitmap);
137477: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13747a: 53 push %ebx <== NOT EXECUTED
13747b: e8 fd 4b 00 00 call 13c07d <rtems_rfs_bitmap_close><== NOT EXECUTED
rtems_rfs_buffer_handle_close (fs, &handle);
137480: 8d 55 d4 lea -0x2c(%ebp),%edx <== NOT EXECUTED
137483: 8d 85 14 ff ff ff lea -0xec(%ebp),%eax <== NOT EXECUTED
137489: e8 6e f8 ff ff call 136cfc <rtems_rfs_buffer_handle_close><== NOT EXECUTED
printf ("\nrtems-rfs: write-group: group %3d: block bitmap clear all failed: %d: %s\n",
13748e: 89 34 24 mov %esi,(%esp) <== NOT EXECUTED
137491: e8 66 b2 00 00 call 1426fc <strerror> <== NOT EXECUTED
137496: 50 push %eax <== NOT EXECUTED
137497: 56 push %esi <== NOT EXECUTED
137498: ff b5 04 ff ff ff pushl -0xfc(%ebp) <== NOT EXECUTED
13749e: 68 b5 d1 15 00 push $0x15d1b5 <== NOT EXECUTED
1374a3: e8 0c 98 00 00 call 140cb4 <printf> <== NOT EXECUTED
1374a8: e9 04 02 00 00 jmp 1376b1 <rtems_rfs_format+0x98d><== NOT EXECUTED
}
/*
* Forced allocation of the block bitmap.
*/
rtems_rfs_bitmap_map_set (&bitmap, RTEMS_RFS_GROUP_BLOCK_BITMAP_BLOCK);
1374ad: 57 push %edi <== NOT EXECUTED
1374ae: 57 push %edi <== NOT EXECUTED
1374af: 6a 00 push $0x0 <== NOT EXECUTED
1374b1: 53 push %ebx <== NOT EXECUTED
1374b2: e8 b7 4e 00 00 call 13c36e <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);
1374b7: 5a pop %edx <== NOT EXECUTED
1374b8: 59 pop %ecx <== NOT EXECUTED
1374b9: 6a 01 push $0x1 <== NOT EXECUTED
1374bb: 53 push %ebx <== NOT EXECUTED
1374bc: e8 ad 4e 00 00 call 13c36e <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);
1374c1: 8b 8d 40 ff ff ff mov -0xc0(%ebp),%ecx <== NOT EXECUTED
1374c7: 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)
1374cd: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1374d0: c7 85 f8 fe ff ff 01 movl $0x1,-0x108(%ebp) <== NOT EXECUTED
1374d7: 00 00 00
1374da: 85 c0 test %eax,%eax <== NOT EXECUTED
1374dc: 74 0c je 1374ea <rtems_rfs_format+0x7c6><== NOT EXECUTED
return 1;
return ((dividend - 1) / divisor) + 1;
1374de: 48 dec %eax <== NOT EXECUTED
1374df: 31 d2 xor %edx,%edx <== NOT EXECUTED
1374e1: f7 f1 div %ecx <== NOT EXECUTED
1374e3: 40 inc %eax <== NOT EXECUTED
1374e4: 89 85 f8 fe ff ff mov %eax,-0x108(%ebp) <== NOT EXECUTED
1374ea: 31 ff xor %edi,%edi <== NOT EXECUTED
1374ec: eb 10 jmp 1374fe <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);
1374ee: 50 push %eax <== NOT EXECUTED
1374ef: 50 push %eax <== NOT EXECUTED
1374f0: 8d 47 02 lea 0x2(%edi),%eax <== NOT EXECUTED
1374f3: 50 push %eax <== NOT EXECUTED
1374f4: 53 push %ebx <== NOT EXECUTED
1374f5: e8 74 4e 00 00 call 13c36e <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++)
1374fa: 47 inc %edi <== NOT EXECUTED
1374fb: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1374fe: 3b bd f8 fe ff ff cmp -0x108(%ebp),%edi <== NOT EXECUTED
137504: 7c e8 jl 1374ee <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);
137506: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
137509: 53 push %ebx <== NOT EXECUTED
13750a: e8 6e 4b 00 00 call 13c07d <rtems_rfs_bitmap_close><== NOT EXECUTED
if (rc > 0)
13750f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
137512: 85 c0 test %eax,%eax <== NOT EXECUTED
137514: 7e 2b jle 137541 <rtems_rfs_format+0x81d><== NOT EXECUTED
137516: 89 c6 mov %eax,%esi <== NOT EXECUTED
{
rtems_rfs_buffer_handle_close (fs, &handle);
137518: 8d 55 d4 lea -0x2c(%ebp),%edx <== NOT EXECUTED
13751b: 8d 85 14 ff ff ff lea -0xec(%ebp),%eax <== NOT EXECUTED
137521: e8 d6 f7 ff ff call 136cfc <rtems_rfs_buffer_handle_close><== NOT EXECUTED
printf ("\nrtems-rfs: write-group: group %3d: close block bitmap failed: %d: %s\n",
137526: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
137529: 56 push %esi <== NOT EXECUTED
13752a: e8 cd b1 00 00 call 1426fc <strerror> <== NOT EXECUTED
13752f: 50 push %eax <== NOT EXECUTED
137530: 56 push %esi <== NOT EXECUTED
137531: ff b5 04 ff ff ff pushl -0xfc(%ebp) <== NOT EXECUTED
137537: 68 00 d2 15 00 push $0x15d200 <== NOT EXECUTED
13753c: e9 62 ff ff ff jmp 1374a3 <rtems_rfs_format+0x77f><== NOT EXECUTED
group, rc, strerror (rc));
return false;
}
rtems_rfs_buffer_mark_dirty (&handle);
137541: c6 45 d4 01 movb $0x1,-0x2c(%ebp) <== NOT EXECUTED
if (verbose)
137545: 80 bd ff fe ff ff 00 cmpb $0x0,-0x101(%ebp) <== NOT EXECUTED
13754c: 74 10 je 13755e <rtems_rfs_format+0x83a><== NOT EXECUTED
printf (", inodes");
13754e: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
137551: 68 47 d2 15 00 push $0x15d247 <== NOT EXECUTED
137556: e8 59 97 00 00 call 140cb4 <printf> <== NOT EXECUTED
13755b: 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,
13755e: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
137561: 8b 85 00 ff ff ff mov -0x100(%ebp),%eax <== NOT EXECUTED
137567: 40 inc %eax <== NOT EXECUTED
137568: 50 push %eax <== NOT EXECUTED
137569: 56 push %esi <== NOT EXECUTED
13756a: 8d 55 d4 lea -0x2c(%ebp),%edx <== NOT EXECUTED
13756d: 52 push %edx <== NOT EXECUTED
13756e: 8d 85 14 ff ff ff lea -0xec(%ebp),%eax <== NOT EXECUTED
137574: 50 push %eax <== NOT EXECUTED
137575: 53 push %ebx <== NOT EXECUTED
137576: e8 11 4c 00 00 call 13c18c <rtems_rfs_bitmap_open> <== NOT EXECUTED
13757b: 89 c6 mov %eax,%esi <== NOT EXECUTED
group_base + RTEMS_RFS_GROUP_INODE_BITMAP_BLOCK);
if (rc > 0)
13757d: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
137580: 85 c0 test %eax,%eax <== NOT EXECUTED
137582: 7e 29 jle 1375ad <rtems_rfs_format+0x889><== NOT EXECUTED
{
rtems_rfs_buffer_handle_close (fs, &handle);
137584: 8d 55 d4 lea -0x2c(%ebp),%edx <== NOT EXECUTED
137587: 8d 85 14 ff ff ff lea -0xec(%ebp),%eax <== NOT EXECUTED
13758d: e8 6a f7 ff ff call 136cfc <rtems_rfs_buffer_handle_close><== NOT EXECUTED
printf ("\nrtems-rfs: write-group: group %3d: open inode bitmap failed: %d: %s\n",
137592: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
137595: 56 push %esi <== NOT EXECUTED
137596: e8 61 b1 00 00 call 1426fc <strerror> <== NOT EXECUTED
13759b: 50 push %eax <== NOT EXECUTED
13759c: 56 push %esi <== NOT EXECUTED
13759d: ff b5 04 ff ff ff pushl -0xfc(%ebp) <== NOT EXECUTED
1375a3: 68 50 d2 15 00 push $0x15d250 <== NOT EXECUTED
1375a8: e9 f6 fe ff ff jmp 1374a3 <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));
1375ad: 8b 8d 1c ff ff ff mov -0xe4(%ebp),%ecx <== NOT EXECUTED
1375b3: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED
1375b6: 8b 50 20 mov 0x20(%eax),%edx <== NOT EXECUTED
1375b9: 31 c0 xor %eax,%eax <== NOT EXECUTED
1375bb: 89 d7 mov %edx,%edi <== NOT EXECUTED
1375bd: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED
/*
* Clear the inode bitmap.
*/
rc = rtems_rfs_bitmap_map_clear_all (&bitmap);
1375bf: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1375c2: 53 push %ebx <== NOT EXECUTED
1375c3: e8 13 4c 00 00 call 13c1db <rtems_rfs_bitmap_map_clear_all><== NOT EXECUTED
1375c8: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
1375ca: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1375cd: 85 c0 test %eax,%eax <== NOT EXECUTED
1375cf: 7e 31 jle 137602 <rtems_rfs_format+0x8de><== NOT EXECUTED
{
rtems_rfs_bitmap_close (&bitmap);
1375d1: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1375d4: 53 push %ebx <== NOT EXECUTED
1375d5: e8 a3 4a 00 00 call 13c07d <rtems_rfs_bitmap_close><== NOT EXECUTED
rtems_rfs_buffer_handle_close (fs, &handle);
1375da: 8d 55 d4 lea -0x2c(%ebp),%edx <== NOT EXECUTED
1375dd: 8d 85 14 ff ff ff lea -0xec(%ebp),%eax <== NOT EXECUTED
1375e3: e8 14 f7 ff ff call 136cfc <rtems_rfs_buffer_handle_close><== NOT EXECUTED
printf ("\nrtems-rfs: write-group: group %3d: inode bitmap" \
1375e8: 89 34 24 mov %esi,(%esp) <== NOT EXECUTED
1375eb: e8 0c b1 00 00 call 1426fc <strerror> <== NOT EXECUTED
1375f0: 50 push %eax <== NOT EXECUTED
1375f1: 56 push %esi <== NOT EXECUTED
1375f2: ff b5 04 ff ff ff pushl -0xfc(%ebp) <== NOT EXECUTED
1375f8: 68 96 d2 15 00 push $0x15d296 <== NOT EXECUTED
1375fd: e9 a1 fe ff ff jmp 1374a3 <rtems_rfs_format+0x77f><== NOT EXECUTED
}
/*
* Close the inode bitmap.
*/
rc = rtems_rfs_bitmap_close (&bitmap);
137602: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
137605: 53 push %ebx <== NOT EXECUTED
137606: e8 72 4a 00 00 call 13c07d <rtems_rfs_bitmap_close><== NOT EXECUTED
13760b: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
13760d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
137610: 85 c0 test %eax,%eax <== NOT EXECUTED
137612: 7e 29 jle 13763d <rtems_rfs_format+0x919><== NOT EXECUTED
{
rtems_rfs_buffer_handle_close (fs, &handle);
137614: 8d 55 d4 lea -0x2c(%ebp),%edx <== NOT EXECUTED
137617: 8d 85 14 ff ff ff lea -0xec(%ebp),%eax <== NOT EXECUTED
13761d: e8 da f6 ff ff call 136cfc <rtems_rfs_buffer_handle_close><== NOT EXECUTED
printf ("\nrtems-rfs: write-group: group %3d: close inode" \
137622: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
137625: 56 push %esi <== NOT EXECUTED
137626: e8 d1 b0 00 00 call 1426fc <strerror> <== NOT EXECUTED
13762b: 50 push %eax <== NOT EXECUTED
13762c: 56 push %esi <== NOT EXECUTED
13762d: ff b5 04 ff ff ff pushl -0xfc(%ebp) <== NOT EXECUTED
137633: 68 e1 d2 15 00 push $0x15d2e1 <== NOT EXECUTED
137638: e9 66 fe ff ff jmp 1374a3 <rtems_rfs_format+0x77f><== NOT EXECUTED
" bitmap failed: %d: %s\n", group, rc, strerror (rc));
return false;
}
rtems_rfs_buffer_mark_dirty (&handle);
13763d: c6 45 d4 01 movb $0x1,-0x2c(%ebp) <== NOT EXECUTED
/*
* Initialise the inode tables if required to do so.
*/
if (initialise_inodes)
137641: 80 bd f3 fe ff ff 00 cmpb $0x0,-0x10d(%ebp) <== NOT EXECUTED
137648: 0f 84 8d 00 00 00 je 1376db <rtems_rfs_format+0x9b7><== NOT EXECUTED
13764e: 31 f6 xor %esi,%esi <== NOT EXECUTED
137650: 8b 95 f4 fe ff ff mov -0x10c(%ebp),%edx <== NOT EXECUTED
137656: 83 c2 03 add $0x3,%edx <== NOT EXECUTED
137659: 89 95 00 ff ff ff mov %edx,-0x100(%ebp) <== NOT EXECUTED
13765f: eb 72 jmp 1376d3 <rtems_rfs_format+0x9af><== NOT EXECUTED
137661: 8b bd 00 ff ff ff mov -0x100(%ebp),%edi <== NOT EXECUTED
137667: 01 f7 add %esi,%edi <== NOT EXECUTED
{
for (b = 0; b < blocks; b++)
{
rc = rtems_rfs_buffer_handle_request (fs, &handle,
137669: 6a 00 push $0x0 <== NOT EXECUTED
13766b: 57 push %edi <== NOT EXECUTED
13766c: 8d 45 d4 lea -0x2c(%ebp),%eax <== NOT EXECUTED
13766f: 50 push %eax <== NOT EXECUTED
137670: 8d 95 14 ff ff ff lea -0xec(%ebp),%edx <== NOT EXECUTED
137676: 52 push %edx <== NOT EXECUTED
137677: e8 02 da ff ff call 13507e <rtems_rfs_buffer_handle_request><== NOT EXECUTED
group_base + b + RTEMS_RFS_GROUP_INODE_BLOCK,
false);
if (rc > 0)
13767c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13767f: 85 c0 test %eax,%eax <== NOT EXECUTED
137681: 7e 39 jle 1376bc <rtems_rfs_format+0x998><== NOT EXECUTED
137683: 89 c6 mov %eax,%esi <== NOT EXECUTED
{
rtems_rfs_buffer_handle_close (fs, &handle);
137685: 8d 55 d4 lea -0x2c(%ebp),%edx <== NOT EXECUTED
137688: 8d 85 14 ff ff ff lea -0xec(%ebp),%eax <== NOT EXECUTED
13768e: e8 69 f6 ff ff call 136cfc <rtems_rfs_buffer_handle_close><== NOT EXECUTED
printf ("\nrtems-rfs: write-group: group %3d: block %" PRId32 " request failed: %d: %s\n",
137693: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
137696: 56 push %esi <== NOT EXECUTED
137697: e8 60 b0 00 00 call 1426fc <strerror> <== NOT EXECUTED
13769c: 89 04 24 mov %eax,(%esp) <== NOT EXECUTED
13769f: 56 push %esi <== NOT EXECUTED
1376a0: 57 push %edi <== NOT EXECUTED
1376a1: ff b5 04 ff ff ff pushl -0xfc(%ebp) <== NOT EXECUTED
1376a7: 68 28 d3 15 00 push $0x15d328 <== NOT EXECUTED
1376ac: e8 03 96 00 00 call 140cb4 <printf> <== NOT EXECUTED
1376b1: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
1376b4: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
1376b7: e9 a7 02 00 00 jmp 137963 <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));
1376bc: 8b 8d 1c ff ff ff mov -0xe4(%ebp),%ecx <== NOT EXECUTED
1376c2: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED
1376c5: 8b 50 20 mov 0x20(%eax),%edx <== NOT EXECUTED
1376c8: 89 d7 mov %edx,%edi <== NOT EXECUTED
1376ca: b0 ff mov $0xff,%al <== NOT EXECUTED
1376cc: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle);
1376ce: 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++)
1376d2: 46 inc %esi <== NOT EXECUTED
1376d3: 3b b5 f8 fe ff ff cmp -0x108(%ebp),%esi <== NOT EXECUTED
1376d9: 7c 86 jl 137661 <rtems_rfs_format+0x93d><== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle);
}
}
rc = rtems_rfs_buffer_handle_close (fs, &handle);
1376db: 8d 55 d4 lea -0x2c(%ebp),%edx <== NOT EXECUTED
1376de: 8d 85 14 ff ff ff lea -0xec(%ebp),%eax <== NOT EXECUTED
1376e4: e8 13 f6 ff ff call 136cfc <rtems_rfs_buffer_handle_close><== NOT EXECUTED
1376e9: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
1376eb: 85 c0 test %eax,%eax <== NOT EXECUTED
1376ed: 0f 8e 8a 02 00 00 jle 13797d <rtems_rfs_format+0xc59><== NOT EXECUTED
{
printf ("\nrtems-rfs: write-group: buffer handle close failed: %d: %s\n",
1376f3: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1376f6: 50 push %eax <== NOT EXECUTED
1376f7: e8 00 b0 00 00 call 1426fc <strerror> <== NOT EXECUTED
1376fc: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
1376ff: 50 push %eax <== NOT EXECUTED
137700: 56 push %esi <== NOT EXECUTED
137701: 68 6e d3 15 00 push $0x15d36e <== NOT EXECUTED
137706: e9 4d 02 00 00 jmp 137958 <rtems_rfs_format+0xc34><== NOT EXECUTED
13770b: c7 85 04 ff ff ff 00 movl $0x0,-0xfc(%ebp) <== NOT EXECUTED
137712: 00 00 00
printf (", blocks");
/*
* Open the block bitmap using the new buffer.
*/
rc = rtems_rfs_bitmap_open (&bitmap, fs, &handle, group_size,
137715: 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++)
137718: 8b 95 04 ff ff ff mov -0xfc(%ebp),%edx <== NOT EXECUTED
13771e: 3b 95 34 ff ff ff cmp -0xcc(%ebp),%edx <== NOT EXECUTED
137724: 0f 8c 29 fc ff ff jl 137353 <rtems_rfs_format+0x62f><== NOT EXECUTED
if (!rtems_rfs_write_group (&fs, group,
config->initialise_inodes, config->verbose))
return -1;
if (config->verbose)
13772a: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
13772d: 80 78 15 00 cmpb $0x0,0x15(%eax) <== NOT EXECUTED
137731: 74 0d je 137740 <rtems_rfs_format+0xa1c><== NOT EXECUTED
printf ("\n");
137733: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
137736: 6a 0a push $0xa <== NOT EXECUTED
137738: e8 d7 96 00 00 call 140e14 <putchar> <== NOT EXECUTED
13773d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rc = rtems_rfs_buffer_close (&fs);
137740: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
137743: 8d 85 14 ff ff ff lea -0xec(%ebp),%eax <== NOT EXECUTED
137749: 50 push %eax <== NOT EXECUTED
13774a: e8 bc d7 ff ff call 134f0b <rtems_rfs_buffer_close><== NOT EXECUTED
13774f: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc > 0)
137751: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
137754: 85 c0 test %eax,%eax <== NOT EXECUTED
137756: 7e 18 jle 137770 <rtems_rfs_format+0xa4c><== NOT EXECUTED
{
printf ("rtems-rfs: format: buffer close failed: %d: %s\n",
137758: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13775b: 50 push %eax <== NOT EXECUTED
13775c: e8 9b af 00 00 call 1426fc <strerror> <== NOT EXECUTED
137761: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
137764: 50 push %eax <== NOT EXECUTED
137765: 53 push %ebx <== NOT EXECUTED
137766: 68 ab d3 15 00 push $0x15d3ab <== NOT EXECUTED
13776b: e9 e8 01 00 00 jmp 137958 <rtems_rfs_format+0xc34><== NOT EXECUTED
int rc;
/*
* External API so returns -1.
*/
rc = rtems_rfs_fs_open (name, NULL,
137770: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
137773: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
137776: 50 push %eax <== NOT EXECUTED
137777: 6a 00 push $0x0 <== NOT EXECUTED
137779: 6a 06 push $0x6 <== NOT EXECUTED
13777b: 6a 00 push $0x0 <== NOT EXECUTED
13777d: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
137780: e8 dc f0 ff ff call 136861 <rtems_rfs_fs_open> <== NOT EXECUTED
RTEMS_RFS_FS_FORCE_OPEN | RTEMS_RFS_FS_NO_LOCAL_CACHE,
0, &fs);
if (rc < 0)
137785: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
137788: 85 c0 test %eax,%eax <== NOT EXECUTED
13778a: 79 26 jns 1377b2 <rtems_rfs_format+0xa8e><== NOT EXECUTED
{
printf ("rtems-rfs: format: file system open failed: %d: %s\n",
13778c: e8 07 56 00 00 call 13cd98 <__errno> <== NOT EXECUTED
137791: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
137794: ff 30 pushl (%eax) <== NOT EXECUTED
137796: e8 61 af 00 00 call 1426fc <strerror> <== NOT EXECUTED
13779b: 89 c3 mov %eax,%ebx <== NOT EXECUTED
13779d: e8 f6 55 00 00 call 13cd98 <__errno> <== NOT EXECUTED
1377a2: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
1377a5: 53 push %ebx <== NOT EXECUTED
1377a6: ff 30 pushl (%eax) <== NOT EXECUTED
1377a8: 68 db d3 15 00 push $0x15d3db <== NOT EXECUTED
1377ad: e9 84 01 00 00 jmp 137936 <rtems_rfs_format+0xc12><== NOT EXECUTED
errno, strerror (errno));
return -1;
}
rc = rtems_rfs_inode_alloc (fs, RTEMS_RFS_ROOT_INO, &ino);
1377b2: 56 push %esi <== NOT EXECUTED
1377b3: 8d 45 e0 lea -0x20(%ebp),%eax <== NOT EXECUTED
1377b6: 50 push %eax <== NOT EXECUTED
1377b7: 6a 01 push $0x1 <== NOT EXECUTED
1377b9: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
1377bc: e8 3e 0a 00 00 call 1381ff <rtems_rfs_inode_alloc> <== NOT EXECUTED
1377c1: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc > 0)
1377c3: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1377c6: 85 c0 test %eax,%eax <== NOT EXECUTED
1377c8: 7e 1a jle 1377e4 <rtems_rfs_format+0xac0><== NOT EXECUTED
{
printf ("rtems-rfs: format: inode allocation failed: %d: %s\n",
1377ca: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1377cd: 50 push %eax <== NOT EXECUTED
1377ce: e8 29 af 00 00 call 1426fc <strerror> <== NOT EXECUTED
1377d3: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
1377d6: 50 push %eax <== NOT EXECUTED
1377d7: 53 push %ebx <== NOT EXECUTED
1377d8: 68 0f d4 15 00 push $0x15d40f <== NOT EXECUTED
1377dd: e8 d2 94 00 00 call 140cb4 <printf> <== NOT EXECUTED
1377e2: eb 64 jmp 137848 <rtems_rfs_format+0xb24><== NOT EXECUTED
rc, strerror (rc));
rtems_rfs_fs_close (fs);
return rc;
}
if (ino != RTEMS_RFS_ROOT_INO)
1377e4: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
1377e7: 83 f8 01 cmp $0x1,%eax <== NOT EXECUTED
1377ea: 74 1b je 137807 <rtems_rfs_format+0xae3><== NOT EXECUTED
{
printf ("rtems-rfs: format: allocated inode not root ino: %" PRId32 "\n", ino);
1377ec: 53 push %ebx <== NOT EXECUTED
1377ed: 53 push %ebx <== NOT EXECUTED
1377ee: 50 push %eax <== NOT EXECUTED
1377ef: 68 43 d4 15 00 push $0x15d443 <== NOT EXECUTED
1377f4: e8 bb 94 00 00 call 140cb4 <printf> <== NOT EXECUTED
rtems_rfs_fs_close (fs);
1377f9: 59 pop %ecx <== NOT EXECUTED
1377fa: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
1377fd: e8 f9 ef ff ff call 1367fb <rtems_rfs_fs_close> <== NOT EXECUTED
137802: e9 34 01 00 00 jmp 13793b <rtems_rfs_format+0xc17><== NOT EXECUTED
return rc;
}
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
137807: 6a 01 push $0x1 <== NOT EXECUTED
137809: 8d 75 94 lea -0x6c(%ebp),%esi <== NOT EXECUTED
13780c: 56 push %esi <== NOT EXECUTED
13780d: 6a 01 push $0x1 <== NOT EXECUTED
13780f: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
137812: e8 c4 08 00 00 call 1380db <rtems_rfs_inode_open> <== NOT EXECUTED
137817: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc > 0)
137819: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13781c: 85 c0 test %eax,%eax <== NOT EXECUTED
13781e: 7e 39 jle 137859 <rtems_rfs_format+0xb35><== NOT EXECUTED
{
printf ("rtems-rfs: format: inode open failed: %d: %s\n",
137820: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
137823: 50 push %eax <== NOT EXECUTED
137824: e8 d3 ae 00 00 call 1426fc <strerror> <== NOT EXECUTED
137829: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
13782c: 50 push %eax <== NOT EXECUTED
13782d: 53 push %ebx <== NOT EXECUTED
13782e: 68 79 d4 15 00 push $0x15d479 <== NOT EXECUTED
137833: e8 7c 94 00 00 call 140cb4 <printf> <== NOT EXECUTED
rc, strerror (rc));
rtems_rfs_group_bitmap_free (fs, true, ino);
137838: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
13783b: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
13783e: 6a 01 push $0x1 <== NOT EXECUTED
137840: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
137843: e8 26 02 00 00 call 137a6e <rtems_rfs_group_bitmap_free><== NOT EXECUTED
rtems_rfs_fs_close (fs);
137848: 5a pop %edx <== NOT EXECUTED
137849: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
13784c: e8 aa ef ff ff call 1367fb <rtems_rfs_fs_close> <== NOT EXECUTED
137851: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
137854: e9 ec 00 00 00 jmp 137945 <rtems_rfs_format+0xc21><== NOT EXECUTED
return rc;
}
rc = rtems_rfs_inode_initialise (&inode, 0,
137859: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13785c: 6a 00 push $0x0 <== NOT EXECUTED
13785e: 6a 00 push $0x0 <== NOT EXECUTED
137860: 68 c9 41 00 00 push $0x41c9 <== NOT EXECUTED
137865: 6a 00 push $0x0 <== NOT EXECUTED
137867: 56 push %esi <== NOT EXECUTED
137868: e8 33 06 00 00 call 137ea0 <rtems_rfs_inode_initialise><== NOT EXECUTED
13786d: 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)
13786f: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
137872: 85 c0 test %eax,%eax <== NOT EXECUTED
137874: 7e 1b jle 137891 <rtems_rfs_format+0xb6d><== NOT EXECUTED
printf ("rtems-rfs: format: inode initialise failed: %d: %s\n",
137876: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
137879: 50 push %eax <== NOT EXECUTED
13787a: e8 7d ae 00 00 call 1426fc <strerror> <== NOT EXECUTED
13787f: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
137882: 50 push %eax <== NOT EXECUTED
137883: 53 push %ebx <== NOT EXECUTED
137884: 68 a7 d4 15 00 push $0x15d4a7 <== NOT EXECUTED
137889: e8 26 94 00 00 call 140cb4 <printf> <== NOT EXECUTED
13788e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rc, strerror (rc));
rc = rtems_rfs_dir_add_entry (fs, &inode, ".", 1, ino);
137891: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
137894: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
137897: 6a 01 push $0x1 <== NOT EXECUTED
137899: 68 fe 74 15 00 push $0x1574fe <== NOT EXECUTED
13789e: 8d 45 94 lea -0x6c(%ebp),%eax <== NOT EXECUTED
1378a1: 50 push %eax <== NOT EXECUTED
1378a2: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
1378a5: e8 4a e0 ff ff call 1358f4 <rtems_rfs_dir_add_entry><== NOT EXECUTED
1378aa: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc > 0)
1378ac: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
1378af: 85 c0 test %eax,%eax <== NOT EXECUTED
1378b1: 7e 1b jle 1378ce <rtems_rfs_format+0xbaa><== NOT EXECUTED
printf ("rtems-rfs: format: directory add failed: %d: %s\n",
1378b3: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1378b6: 50 push %eax <== NOT EXECUTED
1378b7: e8 40 ae 00 00 call 1426fc <strerror> <== NOT EXECUTED
1378bc: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
1378bf: 50 push %eax <== NOT EXECUTED
1378c0: 53 push %ebx <== NOT EXECUTED
1378c1: 68 db d4 15 00 push $0x15d4db <== NOT EXECUTED
1378c6: e8 e9 93 00 00 call 140cb4 <printf> <== NOT EXECUTED
1378cb: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rc, strerror (rc));
rc = rtems_rfs_inode_close (fs, &inode);
1378ce: 50 push %eax <== NOT EXECUTED
1378cf: 50 push %eax <== NOT EXECUTED
1378d0: 8d 45 94 lea -0x6c(%ebp),%eax <== NOT EXECUTED
1378d3: 50 push %eax <== NOT EXECUTED
1378d4: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
1378d7: e8 90 07 00 00 call 13806c <rtems_rfs_inode_close> <== NOT EXECUTED
1378dc: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc > 0)
1378de: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1378e1: 85 c0 test %eax,%eax <== NOT EXECUTED
1378e3: 7e 1b jle 137900 <rtems_rfs_format+0xbdc><== NOT EXECUTED
printf ("rtems-rfs: format: inode close failed: %d: %s\n",
1378e5: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1378e8: 50 push %eax <== NOT EXECUTED
1378e9: e8 0e ae 00 00 call 1426fc <strerror> <== NOT EXECUTED
1378ee: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
1378f1: 50 push %eax <== NOT EXECUTED
1378f2: 53 push %ebx <== NOT EXECUTED
1378f3: 68 0c d5 15 00 push $0x15d50c <== NOT EXECUTED
1378f8: e8 b7 93 00 00 call 140cb4 <printf> <== NOT EXECUTED
1378fd: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rc, strerror (rc));
rc = rtems_rfs_fs_close (fs);
137900: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
137903: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
137906: e8 f0 ee ff ff call 1367fb <rtems_rfs_fs_close> <== NOT EXECUTED
13790b: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc < 0)
13790d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
137910: 83 f8 00 cmp $0x0,%eax <== NOT EXECUTED
137913: 7d 2a jge 13793f <rtems_rfs_format+0xc1b><== NOT EXECUTED
printf ("rtems-rfs: format: file system close failed: %d: %s\n",
137915: e8 7e 54 00 00 call 13cd98 <__errno> <== NOT EXECUTED
13791a: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13791d: ff 30 pushl (%eax) <== NOT EXECUTED
13791f: e8 d8 ad 00 00 call 1426fc <strerror> <== NOT EXECUTED
137924: 89 c3 mov %eax,%ebx <== NOT EXECUTED
137926: e8 6d 54 00 00 call 13cd98 <__errno> <== NOT EXECUTED
13792b: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
13792e: 53 push %ebx <== NOT EXECUTED
13792f: ff 30 pushl (%eax) <== NOT EXECUTED
137931: 68 3b d5 15 00 push $0x15d53b <== NOT EXECUTED
137936: e8 79 93 00 00 call 140cb4 <printf> <== NOT EXECUTED
13793b: 31 c0 xor %eax,%eax <== NOT EXECUTED
13793d: eb 21 jmp 137960 <rtems_rfs_format+0xc3c><== NOT EXECUTED
rc, strerror (rc));
return -1;
}
rc = rtems_rfs_write_root_dir (name);
if (rc > 0)
13793f: 7f 04 jg 137945 <rtems_rfs_format+0xc21><== NOT EXECUTED
137941: 31 c0 xor %eax,%eax <== NOT EXECUTED
137943: eb 1e jmp 137963 <rtems_rfs_format+0xc3f><== NOT EXECUTED
{
printf ("rtems-rfs: format: writing root dir failed: %d: %s\n",
137945: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
137948: 53 push %ebx <== NOT EXECUTED
137949: e8 ae ad 00 00 call 1426fc <strerror> <== NOT EXECUTED
13794e: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
137951: 50 push %eax <== NOT EXECUTED
137952: 53 push %ebx <== NOT EXECUTED
137953: 68 70 d5 15 00 push $0x15d570 <== NOT EXECUTED
137958: e8 57 93 00 00 call 140cb4 <printf> <== NOT EXECUTED
13795d: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
rc, strerror (rc));
return -1;
137960: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
return 0;
}
137963: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
137966: 5b pop %ebx <== NOT EXECUTED
137967: 5e pop %esi <== NOT EXECUTED
137968: 5f pop %edi <== NOT EXECUTED
137969: c9 leave <== NOT EXECUTED
13796a: c3 ret <== NOT EXECUTED
* Check the configuration data.
*/
if (!rtems_rfs_check_config (&fs, config))
return -1;
if (config->verbose)
13796b: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
13796e: 80 7a 15 00 cmpb $0x0,0x15(%edx) <== NOT EXECUTED
137972: 0f 84 86 f7 ff ff je 1370fe <rtems_rfs_format+0x3da><== NOT EXECUTED
137978: e9 77 f6 ff ff jmp 136ff4 <rtems_rfs_format+0x2d0><== NOT EXECUTED
{
printf ("rtems-rfs: format: superblock write failed\n");
return -1;
}
for (group = 0; group < fs.group_count; group++)
13797d: ff 85 04 ff ff ff incl -0xfc(%ebp) <== NOT EXECUTED
137983: e9 90 fd ff ff jmp 137718 <rtems_rfs_format+0x9f4><== NOT EXECUTED
001367fb <rtems_rfs_fs_close>:
return 0;
}
int
rtems_rfs_fs_close (rtems_rfs_file_system* fs)
{
1367fb: 55 push %ebp <== NOT EXECUTED
1367fc: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1367fe: 56 push %esi <== NOT EXECUTED
1367ff: 53 push %ebx <== NOT EXECUTED
136800: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
136803: 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++)
136805: eb 13 jmp 13681a <rtems_rfs_fs_close+0x1f><== NOT EXECUTED
rtems_rfs_group_close (fs, &fs->groups[group]);
136807: 50 push %eax <== NOT EXECUTED
136808: 50 push %eax <== NOT EXECUTED
136809: 6b c6 50 imul $0x50,%esi,%eax <== NOT EXECUTED
13680c: 03 43 1c add 0x1c(%ebx),%eax <== NOT EXECUTED
13680f: 50 push %eax <== NOT EXECUTED
136810: 53 push %ebx <== NOT EXECUTED
136811: e8 e7 13 00 00 call 137bfd <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++)
136816: 46 inc %esi <== NOT EXECUTED
136817: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13681a: 3b 73 20 cmp 0x20(%ebx),%esi <== NOT EXECUTED
13681d: 7c e8 jl 136807 <rtems_rfs_fs_close+0xc><== NOT EXECUTED
rtems_rfs_group_close (fs, &fs->groups[group]);
rtems_rfs_buffer_close (fs);
13681f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
136822: 53 push %ebx <== NOT EXECUTED
136823: e8 e3 e6 ff ff call 134f0b <rtems_rfs_buffer_close><== NOT EXECUTED
free (fs);
136828: 89 1c 24 mov %ebx,(%esp) <== NOT EXECUTED
13682b: e8 6c 66 fd ff call 10ce9c <free> <== NOT EXECUTED
return 0;
}
136830: 31 c0 xor %eax,%eax <== NOT EXECUTED
136832: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
136835: 5b pop %ebx <== NOT EXECUTED
136836: 5e pop %esi <== NOT EXECUTED
136837: c9 leave <== NOT EXECUTED
136838: c3 ret <== NOT EXECUTED
001367ea <rtems_rfs_fs_media_size>:
uint64_t
rtems_rfs_fs_media_size (rtems_rfs_file_system* fs)
{
1367ea: 55 push %ebp <== NOT EXECUTED
1367eb: 89 e5 mov %esp,%ebp <== NOT EXECUTED
uint64_t media_blocks = (uint64_t) rtems_rfs_fs_media_blocks (fs);
1367ed: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
1367f0: 8b 50 0c mov 0xc(%eax),%edx <== NOT EXECUTED
1367f3: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED
1367f6: 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;
}
1367f9: c9 leave <== NOT EXECUTED
1367fa: c3 ret <== NOT EXECUTED
00136861 <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)
{
136861: 55 push %ebp <== NOT EXECUTED
136862: 89 e5 mov %esp,%ebp <== NOT EXECUTED
136864: 57 push %edi <== NOT EXECUTED
136865: 56 push %esi <== NOT EXECUTED
136866: 53 push %ebx <== NOT EXECUTED
136867: 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));
13686a: 68 80 00 00 00 push $0x80 <== NOT EXECUTED
13686f: e8 74 6b fd ff call 10d3e8 <malloc> <== NOT EXECUTED
136874: 89 c2 mov %eax,%edx <== NOT EXECUTED
136876: 8b 45 18 mov 0x18(%ebp),%eax <== NOT EXECUTED
136879: 89 10 mov %edx,(%eax) <== NOT EXECUTED
if (!*fs)
13687b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13687e: 85 d2 test %edx,%edx <== NOT EXECUTED
136880: 75 13 jne 136895 <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;
136882: e8 11 65 00 00 call 13cd98 <__errno> <== NOT EXECUTED
136887: c7 00 0c 00 00 00 movl $0xc,(%eax) <== NOT EXECUTED
13688d: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
return -1;
136890: e9 e7 03 00 00 jmp 136c7c <rtems_rfs_fs_open+0x41b><== NOT EXECUTED
}
memset (*fs, 0, sizeof (rtems_rfs_file_system));
136895: b9 20 00 00 00 mov $0x20,%ecx <== NOT EXECUTED
13689a: 31 c0 xor %eax,%eax <== NOT EXECUTED
13689c: 89 d7 mov %edx,%edi <== NOT EXECUTED
13689e: f3 ab rep stos %eax,%es:(%edi) <== NOT EXECUTED
(*fs)->user = user;
1368a0: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
1368a3: 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);
1368a6: 8d 42 44 lea 0x44(%edx),%eax <== NOT EXECUTED
1368a9: 89 42 40 mov %eax,0x40(%edx) <== NOT EXECUTED
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
1368ac: 8d 42 40 lea 0x40(%edx),%eax <== NOT EXECUTED
1368af: 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);
1368b2: 8d 42 54 lea 0x54(%edx),%eax <== NOT EXECUTED
1368b5: 89 42 50 mov %eax,0x50(%edx) <== NOT EXECUTED
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
1368b8: 8d 42 50 lea 0x50(%edx),%eax <== NOT EXECUTED
1368bb: 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);
1368be: 8d 42 64 lea 0x64(%edx),%eax <== NOT EXECUTED
1368c1: 89 42 60 mov %eax,0x60(%edx) <== NOT EXECUTED
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
1368c4: 8d 42 60 lea 0x60(%edx),%eax <== NOT EXECUTED
1368c7: 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);
1368ca: 8d 42 74 lea 0x74(%edx),%eax <== NOT EXECUTED
1368cd: 89 42 70 mov %eax,0x70(%edx) <== NOT EXECUTED
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
1368d0: 8d 42 70 lea 0x70(%edx),%eax <== NOT EXECUTED
1368d3: 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;
1368d6: 8b 45 14 mov 0x14(%ebp),%eax <== NOT EXECUTED
1368d9: 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;
1368dc: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
1368df: 89 02 mov %eax,(%edx) <== NOT EXECUTED
group_base = 0;
/*
* Open the buffer interface.
*/
rc = rtems_rfs_buffer_open (name, *fs);
1368e1: 50 push %eax <== NOT EXECUTED
1368e2: 50 push %eax <== NOT EXECUTED
1368e3: 52 push %edx <== NOT EXECUTED
1368e4: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
1368e7: e8 49 e6 ff ff call 134f35 <rtems_rfs_buffer_open> <== NOT EXECUTED
1368ec: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc > 0)
1368ee: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1368f1: 85 c0 test %eax,%eax <== NOT EXECUTED
1368f3: 7e 08 jle 1368fd <rtems_rfs_fs_open+0x9c><== NOT EXECUTED
{
free (*fs);
1368f5: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1368f8: e9 5c 03 00 00 jmp 136c59 <rtems_rfs_fs_open+0x3f8><== NOT EXECUTED
rc, strerror (rc));
errno = rc;
return -1;
}
rc = rtems_rfs_fs_read_superblock (*fs);
1368fd: 8b 75 18 mov 0x18(%ebp),%esi <== NOT EXECUTED
136900: 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;
136902: c6 45 dc 00 movb $0x0,-0x24(%ebp) <== NOT EXECUTED
handle->bnum = 0;
136906: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp) <== NOT EXECUTED
handle->buffer = NULL;
13690d: 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);
136914: 6a 01 push $0x1 <== NOT EXECUTED
136916: 6a 00 push $0x0 <== NOT EXECUTED
136918: 8d 7d dc lea -0x24(%ebp),%edi <== NOT EXECUTED
13691b: 57 push %edi <== NOT EXECUTED
13691c: 53 push %ebx <== NOT EXECUTED
13691d: e8 5c e7 ff ff call 13507e <rtems_rfs_buffer_handle_request><== NOT EXECUTED
136922: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
136924: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
136927: 85 c0 test %eax,%eax <== NOT EXECUTED
136929: 0f 8f 6d 02 00 00 jg 136b9c <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);
13692f: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
136932: 8b 40 20 mov 0x20(%eax),%eax <== NOT EXECUTED
136935: 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)
136938: 0f b6 50 03 movzbl 0x3(%eax),%edx <== NOT EXECUTED
13693c: 0f b6 08 movzbl (%eax),%ecx <== NOT EXECUTED
13693f: c1 e1 18 shl $0x18,%ecx <== NOT EXECUTED
136942: 09 ca or %ecx,%edx <== NOT EXECUTED
136944: 0f b6 48 01 movzbl 0x1(%eax),%ecx <== NOT EXECUTED
136948: c1 e1 10 shl $0x10,%ecx <== NOT EXECUTED
13694b: 09 ca or %ecx,%edx <== NOT EXECUTED
13694d: 0f b6 48 02 movzbl 0x2(%eax),%ecx <== NOT EXECUTED
136951: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
136954: 09 ca or %ecx,%edx <== NOT EXECUTED
136956: 81 fa 01 20 09 28 cmp $0x28092001,%edx <== NOT EXECUTED
13695c: 74 04 je 136962 <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);
13695e: 89 fa mov %edi,%edx <== NOT EXECUTED
136960: eb 71 jmp 1369d3 <rtems_rfs_fs_open+0x172><== NOT EXECUTED
return EIO;
}
fs->blocks = read_sb (RTEMS_RFS_SB_OFFSET_BLOCKS);
136962: 8b 45 94 mov -0x6c(%ebp),%eax <== NOT EXECUTED
136965: 0f b6 70 0c movzbl 0xc(%eax),%esi <== NOT EXECUTED
136969: c1 e6 18 shl $0x18,%esi <== NOT EXECUTED
13696c: 0f b6 48 0d movzbl 0xd(%eax),%ecx <== NOT EXECUTED
136970: c1 e1 10 shl $0x10,%ecx <== NOT EXECUTED
136973: 09 ce or %ecx,%esi <== NOT EXECUTED
136975: 0f b6 48 0f movzbl 0xf(%eax),%ecx <== NOT EXECUTED
136979: 09 ce or %ecx,%esi <== NOT EXECUTED
13697b: 0f b6 48 0e movzbl 0xe(%eax),%ecx <== NOT EXECUTED
13697f: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
136982: 09 ce or %ecx,%esi <== NOT EXECUTED
136984: 89 73 04 mov %esi,0x4(%ebx) <== NOT EXECUTED
fs->block_size = read_sb (RTEMS_RFS_SB_OFFSET_BLOCK_SIZE);
136987: 0f b6 78 08 movzbl 0x8(%eax),%edi <== NOT EXECUTED
13698b: c1 e7 18 shl $0x18,%edi <== NOT EXECUTED
13698e: 0f b6 48 09 movzbl 0x9(%eax),%ecx <== NOT EXECUTED
136992: c1 e1 10 shl $0x10,%ecx <== NOT EXECUTED
136995: 09 cf or %ecx,%edi <== NOT EXECUTED
136997: 0f b6 48 0b movzbl 0xb(%eax),%ecx <== NOT EXECUTED
13699b: 09 cf or %ecx,%edi <== NOT EXECUTED
13699d: 0f b6 48 0a movzbl 0xa(%eax),%ecx <== NOT EXECUTED
1369a1: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
1369a4: 09 cf or %ecx,%edi <== NOT EXECUTED
1369a6: 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);
1369a9: 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))
1369ac: 89 f8 mov %edi,%eax <== NOT EXECUTED
1369ae: f7 e6 mul %esi <== NOT EXECUTED
1369b0: 89 45 a0 mov %eax,-0x60(%ebp) <== NOT EXECUTED
1369b3: 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);
1369b6: 8b 71 1c mov 0x1c(%ecx),%esi <== NOT EXECUTED
1369b9: 8b 41 24 mov 0x24(%ecx),%eax <== NOT EXECUTED
1369bc: f7 e6 mul %esi <== NOT EXECUTED
1369be: 89 45 88 mov %eax,-0x78(%ebp) <== NOT EXECUTED
1369c1: 89 55 8c mov %edx,-0x74(%ebp) <== NOT EXECUTED
1369c4: 39 55 a4 cmp %edx,-0x5c(%ebp) <== NOT EXECUTED
1369c7: 72 1b jb 1369e4 <rtems_rfs_fs_open+0x183><== NOT EXECUTED
1369c9: 77 05 ja 1369d0 <rtems_rfs_fs_open+0x16f><== NOT EXECUTED
1369cb: 39 45 a0 cmp %eax,-0x60(%ebp) <== NOT EXECUTED
1369ce: 76 14 jbe 1369e4 <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);
1369d0: 8d 55 dc lea -0x24(%ebp),%edx <== NOT EXECUTED
1369d3: 89 d8 mov %ebx,%eax <== NOT EXECUTED
1369d5: e8 5f fe ff ff call 136839 <rtems_rfs_buffer_handle_close><== NOT EXECUTED
1369da: be 05 00 00 00 mov $0x5,%esi <== NOT EXECUTED
1369df: e9 b8 01 00 00 jmp 136b9c <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)
1369e4: 8b 55 94 mov -0x6c(%ebp),%edx <== NOT EXECUTED
1369e7: 0f b6 52 24 movzbl 0x24(%edx),%edx <== NOT EXECUTED
1369eb: c1 e2 18 shl $0x18,%edx <== NOT EXECUTED
1369ee: 89 55 a0 mov %edx,-0x60(%ebp) <== NOT EXECUTED
1369f1: 8b 75 94 mov -0x6c(%ebp),%esi <== NOT EXECUTED
1369f4: 0f b6 56 25 movzbl 0x25(%esi),%edx <== NOT EXECUTED
1369f8: c1 e2 10 shl $0x10,%edx <== NOT EXECUTED
1369fb: 09 55 a0 or %edx,-0x60(%ebp) <== NOT EXECUTED
1369fe: 0f b6 56 27 movzbl 0x27(%esi),%edx <== NOT EXECUTED
136a02: 09 55 a0 or %edx,-0x60(%ebp) <== NOT EXECUTED
136a05: 0f b6 56 26 movzbl 0x26(%esi),%edx <== NOT EXECUTED
136a09: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
136a0c: 09 55 a0 or %edx,-0x60(%ebp) <== NOT EXECUTED
136a0f: 83 7d a0 38 cmpl $0x38,-0x60(%ebp) <== NOT EXECUTED
136a13: 75 bb jne 1369d0 <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);
136a15: 8b 45 94 mov -0x6c(%ebp),%eax <== NOT EXECUTED
136a18: 0f b6 50 10 movzbl 0x10(%eax),%edx <== NOT EXECUTED
136a1c: c1 e2 18 shl $0x18,%edx <== NOT EXECUTED
136a1f: 0f b6 48 11 movzbl 0x11(%eax),%ecx <== NOT EXECUTED
136a23: c1 e1 10 shl $0x10,%ecx <== NOT EXECUTED
136a26: 09 ca or %ecx,%edx <== NOT EXECUTED
136a28: 0f b6 48 13 movzbl 0x13(%eax),%ecx <== NOT EXECUTED
136a2c: 09 ca or %ecx,%edx <== NOT EXECUTED
136a2e: 0f b6 48 12 movzbl 0x12(%eax),%ecx <== NOT EXECUTED
136a32: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
136a35: 09 ca or %ecx,%edx <== NOT EXECUTED
136a37: 89 53 14 mov %edx,0x14(%ebx) <== NOT EXECUTED
fs->max_name_length = read_sb (RTEMS_RFS_SB_OFFSET_MAX_NAME_LENGTH);
136a3a: 0f b6 50 14 movzbl 0x14(%eax),%edx <== NOT EXECUTED
136a3e: c1 e2 18 shl $0x18,%edx <== NOT EXECUTED
136a41: 0f b6 48 15 movzbl 0x15(%eax),%ecx <== NOT EXECUTED
136a45: c1 e1 10 shl $0x10,%ecx <== NOT EXECUTED
136a48: 09 ca or %ecx,%edx <== NOT EXECUTED
136a4a: 0f b6 48 17 movzbl 0x17(%eax),%ecx <== NOT EXECUTED
136a4e: 09 ca or %ecx,%edx <== NOT EXECUTED
136a50: 0f b6 48 16 movzbl 0x16(%eax),%ecx <== NOT EXECUTED
136a54: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
136a57: 09 ca or %ecx,%edx <== NOT EXECUTED
136a59: 89 53 18 mov %edx,0x18(%ebx) <== NOT EXECUTED
fs->group_count = read_sb (RTEMS_RFS_SB_OFFSET_GROUPS);
136a5c: 0f b6 50 18 movzbl 0x18(%eax),%edx <== NOT EXECUTED
136a60: c1 e2 18 shl $0x18,%edx <== NOT EXECUTED
136a63: 0f b6 48 19 movzbl 0x19(%eax),%ecx <== NOT EXECUTED
136a67: c1 e1 10 shl $0x10,%ecx <== NOT EXECUTED
136a6a: 09 ca or %ecx,%edx <== NOT EXECUTED
136a6c: 0f b6 48 1b movzbl 0x1b(%eax),%ecx <== NOT EXECUTED
136a70: 09 ca or %ecx,%edx <== NOT EXECUTED
136a72: 0f b6 48 1a movzbl 0x1a(%eax),%ecx <== NOT EXECUTED
136a76: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
136a79: 09 ca or %ecx,%edx <== NOT EXECUTED
136a7b: 89 53 20 mov %edx,0x20(%ebx) <== NOT EXECUTED
fs->group_blocks = read_sb (RTEMS_RFS_SB_OFFSET_GROUP_BLOCKS);
136a7e: 0f b6 70 1c movzbl 0x1c(%eax),%esi <== NOT EXECUTED
136a82: c1 e6 18 shl $0x18,%esi <== NOT EXECUTED
136a85: 0f b6 48 1d movzbl 0x1d(%eax),%ecx <== NOT EXECUTED
136a89: c1 e1 10 shl $0x10,%ecx <== NOT EXECUTED
136a8c: 09 ce or %ecx,%esi <== NOT EXECUTED
136a8e: 0f b6 48 1f movzbl 0x1f(%eax),%ecx <== NOT EXECUTED
136a92: 09 ce or %ecx,%esi <== NOT EXECUTED
136a94: 0f b6 48 1e movzbl 0x1e(%eax),%ecx <== NOT EXECUTED
136a98: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
136a9b: 09 ce or %ecx,%esi <== NOT EXECUTED
136a9d: 89 75 9c mov %esi,-0x64(%ebp) <== NOT EXECUTED
136aa0: 89 73 24 mov %esi,0x24(%ebx) <== NOT EXECUTED
fs->group_inodes = read_sb (RTEMS_RFS_SB_OFFSET_GROUP_INODES);
136aa3: 0f b6 48 20 movzbl 0x20(%eax),%ecx <== NOT EXECUTED
136aa7: c1 e1 18 shl $0x18,%ecx <== NOT EXECUTED
136aaa: 0f b6 70 21 movzbl 0x21(%eax),%esi <== NOT EXECUTED
136aae: c1 e6 10 shl $0x10,%esi <== NOT EXECUTED
136ab1: 09 f1 or %esi,%ecx <== NOT EXECUTED
136ab3: 0f b6 70 23 movzbl 0x23(%eax),%esi <== NOT EXECUTED
136ab7: 09 f1 or %esi,%ecx <== NOT EXECUTED
136ab9: 0f b6 40 22 movzbl 0x22(%eax),%eax <== NOT EXECUTED
136abd: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
136ac0: 09 c1 or %eax,%ecx <== NOT EXECUTED
136ac2: 89 4b 28 mov %ecx,0x28(%ebx) <== NOT EXECUTED
fs->blocks_per_block =
rtems_rfs_fs_block_size (fs) / sizeof (rtems_rfs_inode_block);
136ac5: 89 fe mov %edi,%esi <== NOT EXECUTED
136ac7: 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 =
136aca: 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 =
136acd: 8d 04 b6 lea (%esi,%esi,4),%eax <== NOT EXECUTED
136ad0: 89 43 34 mov %eax,0x34(%ebx) <== NOT EXECUTED
fs->blocks_per_block * RTEMS_RFS_INODE_BLOCKS;
fs->block_map_doubly_blocks =
136ad3: 0f af f6 imul %esi,%esi <== NOT EXECUTED
136ad6: 8d 34 b6 lea (%esi,%esi,4),%esi <== NOT EXECUTED
136ad9: 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;
136adc: 0f af d1 imul %ecx,%edx <== NOT EXECUTED
136adf: 89 53 10 mov %edx,0x10(%ebx) <== NOT EXECUTED
fs->inodes_per_block = fs->block_size / RTEMS_RFS_INODE_SIZE;
136ae2: 89 f8 mov %edi,%eax <== NOT EXECUTED
136ae4: 31 d2 xor %edx,%edx <== NOT EXECUTED
136ae6: f7 75 a0 divl -0x60(%ebp) <== NOT EXECUTED
136ae9: 89 43 2c mov %eax,0x2c(%ebx) <== NOT EXECUTED
if (fs->group_blocks >
136aec: c1 e7 03 shl $0x3,%edi <== NOT EXECUTED
136aef: 39 7d 9c cmp %edi,-0x64(%ebp) <== NOT EXECUTED
136af2: 0f 87 d8 fe ff ff ja 1369d0 <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);
136af8: 8d 55 dc lea -0x24(%ebp),%edx <== NOT EXECUTED
136afb: 89 d8 mov %ebx,%eax <== NOT EXECUTED
136afd: e8 37 fd ff ff call 136839 <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));
136b02: 57 push %edi <== NOT EXECUTED
136b03: 57 push %edi <== NOT EXECUTED
136b04: ff 73 08 pushl 0x8(%ebx) <== NOT EXECUTED
136b07: 53 push %ebx <== NOT EXECUTED
136b08: e8 c0 e3 ff ff call 134ecd <rtems_rfs_buffer_setblksize><== NOT EXECUTED
136b0d: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
136b0f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
136b12: 85 c0 test %eax,%eax <== NOT EXECUTED
136b14: 7f 6f jg 136b85 <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));
136b16: 56 push %esi <== NOT EXECUTED
136b17: 56 push %esi <== NOT EXECUTED
136b18: 6a 50 push $0x50 <== NOT EXECUTED
136b1a: ff 73 20 pushl 0x20(%ebx) <== NOT EXECUTED
136b1d: e8 aa 5e fd ff call 10c9cc <calloc> <== NOT EXECUTED
136b22: 89 43 1c mov %eax,0x1c(%ebx) <== NOT EXECUTED
if (!fs->groups)
136b25: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
136b28: 31 ff xor %edi,%edi <== NOT EXECUTED
136b2a: 85 c0 test %eax,%eax <== NOT EXECUTED
136b2c: 75 64 jne 136b92 <rtems_rfs_fs_open+0x331><== NOT EXECUTED
{
rtems_rfs_buffer_handle_close (fs, &handle);
136b2e: 8d 55 dc lea -0x24(%ebp),%edx <== NOT EXECUTED
136b31: 89 d8 mov %ebx,%eax <== NOT EXECUTED
136b33: e8 01 fd ff ff call 136839 <rtems_rfs_buffer_handle_close><== NOT EXECUTED
136b38: be 0c 00 00 00 mov $0xc,%esi <== NOT EXECUTED
136b3d: eb 5d jmp 136b9c <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),
136b3f: 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,
136b42: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
136b45: 6b c7 50 imul $0x50,%edi,%eax <== NOT EXECUTED
136b48: 03 43 1c add 0x1c(%ebx),%eax <== NOT EXECUTED
136b4b: 50 push %eax <== NOT EXECUTED
136b4c: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
136b4f: 52 push %edx <== NOT EXECUTED
136b50: 0f af d7 imul %edi,%edx <== NOT EXECUTED
136b53: 42 inc %edx <== NOT EXECUTED
136b54: 52 push %edx <== NOT EXECUTED
136b55: 53 push %ebx <== NOT EXECUTED
136b56: e8 25 11 00 00 call 137c80 <rtems_rfs_group_open> <== NOT EXECUTED
136b5b: 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)
136b5d: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
136b60: 85 c0 test %eax,%eax <== NOT EXECUTED
136b62: 7e 2d jle 136b91 <rtems_rfs_fs_open+0x330><== NOT EXECUTED
136b64: 31 d2 xor %edx,%edx <== NOT EXECUTED
136b66: eb 19 jmp 136b81 <rtems_rfs_fs_open+0x320><== NOT EXECUTED
{
int g;
for (g = 0; g < group; g++)
rtems_rfs_group_close (fs, &fs->groups[g]);
136b68: 51 push %ecx <== NOT EXECUTED
136b69: 51 push %ecx <== NOT EXECUTED
136b6a: 6b c2 50 imul $0x50,%edx,%eax <== NOT EXECUTED
136b6d: 03 43 1c add 0x1c(%ebx),%eax <== NOT EXECUTED
136b70: 50 push %eax <== NOT EXECUTED
136b71: 53 push %ebx <== NOT EXECUTED
136b72: 89 55 98 mov %edx,-0x68(%ebp) <== NOT EXECUTED
136b75: e8 83 10 00 00 call 137bfd <rtems_rfs_group_close> <== NOT EXECUTED
fs->group_inodes,
&fs->groups[group]);
if (rc > 0)
{
int g;
for (g = 0; g < group; g++)
136b7a: 8b 55 98 mov -0x68(%ebp),%edx <== NOT EXECUTED
136b7d: 42 inc %edx <== NOT EXECUTED
136b7e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
136b81: 39 fa cmp %edi,%edx <== NOT EXECUTED
136b83: 7c e3 jl 136b68 <rtems_rfs_fs_open+0x307><== NOT EXECUTED
rtems_rfs_group_close (fs, &fs->groups[g]);
rtems_rfs_buffer_handle_close (fs, &handle);
136b85: 8d 55 dc lea -0x24(%ebp),%edx <== NOT EXECUTED
136b88: 89 d8 mov %ebx,%eax <== NOT EXECUTED
136b8a: e8 aa fc ff ff call 136839 <rtems_rfs_buffer_handle_close><== NOT EXECUTED
136b8f: eb 0b jmp 136b9c <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++)
136b91: 47 inc %edi <== NOT EXECUTED
136b92: 3b 7b 20 cmp 0x20(%ebx),%edi <== NOT EXECUTED
136b95: 7c a8 jl 136b3f <rtems_rfs_fs_open+0x2de><== NOT EXECUTED
136b97: e9 e8 00 00 00 jmp 136c84 <rtems_rfs_fs_open+0x423><== NOT EXECUTED
}
rc = rtems_rfs_fs_read_superblock (*fs);
if (rc > 0)
{
rtems_rfs_buffer_close (*fs);
136b9c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
136b9f: 8b 45 18 mov 0x18(%ebp),%eax <== NOT EXECUTED
136ba2: ff 30 pushl (%eax) <== NOT EXECUTED
136ba4: e8 62 e3 ff ff call 134f0b <rtems_rfs_buffer_close><== NOT EXECUTED
free (*fs);
136ba9: 5a pop %edx <== NOT EXECUTED
136baa: 8b 55 18 mov 0x18(%ebp),%edx <== NOT EXECUTED
136bad: ff 32 pushl (%edx) <== NOT EXECUTED
136baf: e8 e8 62 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;
136bb4: e8 df 61 00 00 call 13cd98 <__errno> <== NOT EXECUTED
136bb9: 89 30 mov %esi,(%eax) <== NOT EXECUTED
136bbb: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
return -1;
136bbe: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
136bc1: e9 b6 00 00 00 jmp 136c7c <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);
136bc6: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
136bc9: 8b 75 18 mov 0x18(%ebp),%esi <== NOT EXECUTED
136bcc: ff 36 pushl (%esi) <== NOT EXECUTED
136bce: e8 38 e3 ff ff call 134f0b <rtems_rfs_buffer_close><== NOT EXECUTED
free (*fs);
136bd3: 58 pop %eax <== NOT EXECUTED
136bd4: ff 36 pushl (%esi) <== NOT EXECUTED
136bd6: e9 83 00 00 00 jmp 136c5e <rtems_rfs_fs_open+0x3fd><== NOT EXECUTED
rc, strerror (rc));
errno = rc;
return -1;
}
if (((*fs)->flags & RTEMS_RFS_FS_FORCE_OPEN) == 0)
136bdb: 8b 45 18 mov 0x18(%ebp),%eax <== NOT EXECUTED
136bde: 8b 10 mov (%eax),%edx <== NOT EXECUTED
136be0: f6 02 04 testb $0x4,(%edx) <== NOT EXECUTED
136be3: 75 51 jne 136c36 <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);
136be5: 8b 45 c0 mov -0x40(%ebp),%eax <== NOT EXECUTED
136be8: 0f b6 48 02 movzbl 0x2(%eax),%ecx <== NOT EXECUTED
136bec: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
136bef: 0f b6 40 03 movzbl 0x3(%eax),%eax <== NOT EXECUTED
136bf3: 09 c8 or %ecx,%eax <== NOT EXECUTED
{
mode = rtems_rfs_inode_get_mode (&inode);
if ((mode == 0xffff) || !RTEMS_RFS_S_ISDIR (mode))
136bf5: 66 83 f8 ff cmp $0xffffffff,%ax <== NOT EXECUTED
136bf9: 74 0c je 136c07 <rtems_rfs_fs_open+0x3a6><== NOT EXECUTED
136bfb: 25 00 f0 00 00 and $0xf000,%eax <== NOT EXECUTED
136c00: 3d 00 40 00 00 cmp $0x4000,%eax <== NOT EXECUTED
136c05: 74 2f je 136c36 <rtems_rfs_fs_open+0x3d5><== NOT EXECUTED
{
rtems_rfs_inode_close (*fs, &inode);
136c07: 57 push %edi <== NOT EXECUTED
136c08: 57 push %edi <== NOT EXECUTED
136c09: 8d 45 b4 lea -0x4c(%ebp),%eax <== NOT EXECUTED
136c0c: 50 push %eax <== NOT EXECUTED
136c0d: 52 push %edx <== NOT EXECUTED
136c0e: e8 59 14 00 00 call 13806c <rtems_rfs_inode_close> <== NOT EXECUTED
rtems_rfs_buffer_close (*fs);
136c13: 5e pop %esi <== NOT EXECUTED
136c14: 8b 55 18 mov 0x18(%ebp),%edx <== NOT EXECUTED
136c17: ff 32 pushl (%edx) <== NOT EXECUTED
136c19: e8 ed e2 ff ff call 134f0b <rtems_rfs_buffer_close><== NOT EXECUTED
free (*fs);
136c1e: 5b pop %ebx <== NOT EXECUTED
136c1f: 8b 75 18 mov 0x18(%ebp),%esi <== NOT EXECUTED
136c22: ff 36 pushl (%esi) <== NOT EXECUTED
136c24: e8 73 62 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;
136c29: e8 6a 61 00 00 call 13cd98 <__errno> <== NOT EXECUTED
136c2e: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
136c34: eb 85 jmp 136bbb <rtems_rfs_fs_open+0x35a><== NOT EXECUTED
return -1;
}
}
rc = rtems_rfs_inode_close (*fs, &inode);
136c36: 51 push %ecx <== NOT EXECUTED
136c37: 51 push %ecx <== NOT EXECUTED
136c38: 8d 45 b4 lea -0x4c(%ebp),%eax <== NOT EXECUTED
136c3b: 50 push %eax <== NOT EXECUTED
136c3c: 52 push %edx <== NOT EXECUTED
136c3d: e8 2a 14 00 00 call 13806c <rtems_rfs_inode_close> <== NOT EXECUTED
136c42: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc > 0)
136c44: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
136c47: 85 c0 test %eax,%eax <== NOT EXECUTED
136c49: 7e 24 jle 136c6f <rtems_rfs_fs_open+0x40e><== NOT EXECUTED
{
rtems_rfs_buffer_close (*fs);
136c4b: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
136c4e: 8b 45 18 mov 0x18(%ebp),%eax <== NOT EXECUTED
136c51: ff 30 pushl (%eax) <== NOT EXECUTED
136c53: e8 b3 e2 ff ff call 134f0b <rtems_rfs_buffer_close><== NOT EXECUTED
free (*fs);
136c58: 5a pop %edx <== NOT EXECUTED
136c59: 8b 55 18 mov 0x18(%ebp),%edx <== NOT EXECUTED
136c5c: ff 32 pushl (%edx) <== NOT EXECUTED
136c5e: e8 39 62 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;
136c63: e8 30 61 00 00 call 13cd98 <__errno> <== NOT EXECUTED
136c68: 89 18 mov %ebx,(%eax) <== NOT EXECUTED
136c6a: e9 4c ff ff ff jmp 136bbb <rtems_rfs_fs_open+0x35a><== NOT EXECUTED
return -1;
}
errno = 0;
136c6f: e8 24 61 00 00 call 13cd98 <__errno> <== NOT EXECUTED
136c74: c7 00 00 00 00 00 movl $0x0,(%eax) <== NOT EXECUTED
136c7a: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
}
136c7c: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
136c7f: 5b pop %ebx <== NOT EXECUTED
136c80: 5e pop %esi <== NOT EXECUTED
136c81: 5f pop %edi <== NOT EXECUTED
136c82: c9 leave <== NOT EXECUTED
136c83: c3 ret <== NOT EXECUTED
rc, strerror (rc));
errno = rc;
return -1;
}
rc = rtems_rfs_inode_open (*fs, RTEMS_RFS_ROOT_INO, &inode, true);
136c84: 6a 01 push $0x1 <== NOT EXECUTED
136c86: 8d 45 b4 lea -0x4c(%ebp),%eax <== NOT EXECUTED
136c89: 50 push %eax <== NOT EXECUTED
136c8a: 6a 01 push $0x1 <== NOT EXECUTED
136c8c: 8b 75 18 mov 0x18(%ebp),%esi <== NOT EXECUTED
136c8f: ff 36 pushl (%esi) <== NOT EXECUTED
136c91: e8 45 14 00 00 call 1380db <rtems_rfs_inode_open> <== NOT EXECUTED
136c96: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc > 0)
136c98: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
136c9b: 85 c0 test %eax,%eax <== NOT EXECUTED
136c9d: 0f 8e 38 ff ff ff jle 136bdb <rtems_rfs_fs_open+0x37a><== NOT EXECUTED
136ca3: e9 1e ff ff ff jmp 136bc6 <rtems_rfs_fs_open+0x365><== NOT EXECUTED
001367dc <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)
{
1367dc: 55 push %ebp <== NOT EXECUTED
1367dd: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1367df: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
1367e2: 8b 42 04 mov 0x4(%edx),%eax <== NOT EXECUTED
1367e5: 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;
}
1367e8: c9 leave <== NOT EXECUTED
1367e9: c3 ret <== NOT EXECUTED
00137ad7 <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)
{
137ad7: 55 push %ebp <== NOT EXECUTED
137ad8: 89 e5 mov %esp,%ebp <== NOT EXECUTED
137ada: 57 push %edi <== NOT EXECUTED
137adb: 56 push %esi <== NOT EXECUTED
137adc: 53 push %ebx <== NOT EXECUTED
137add: 83 ec 3c sub $0x3c,%esp <== NOT EXECUTED
137ae0: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
137ae3: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
137ae6: 8a 4d 10 mov 0x10(%ebp),%cl <== NOT EXECUTED
rtems_rfs_bitmap_bit bit;
int offset;
bool updown;
int direction;
if (inode)
137ae9: 84 c9 test %cl,%cl <== NOT EXECUTED
137aeb: 74 06 je 137af3 <rtems_rfs_group_bitmap_alloc+0x1c><== NOT EXECUTED
{
size = fs->group_inodes;
137aed: 8b 7b 28 mov 0x28(%ebx),%edi <== NOT EXECUTED
goal -= RTEMS_RFS_ROOT_INO;
137af0: 48 dec %eax <== NOT EXECUTED
137af1: eb 03 jmp 137af6 <rtems_rfs_group_bitmap_alloc+0x1f><== NOT EXECUTED
}
else
size = fs->group_blocks;
137af3: 8b 7b 24 mov 0x24(%ebx),%edi <== NOT EXECUTED
group_start = goal / size;
137af6: 31 d2 xor %edx,%edx <== NOT EXECUTED
137af8: f7 f7 div %edi <== NOT EXECUTED
137afa: 89 45 cc mov %eax,-0x34(%ebp) <== NOT EXECUTED
bit = (rtems_rfs_bitmap_bit) (goal % size);
137afd: 89 55 e0 mov %edx,-0x20(%ebp) <== NOT EXECUTED
137b00: be 01 00 00 00 mov $0x1,%esi <== NOT EXECUTED
137b05: b2 01 mov $0x1,%dl <== NOT EXECUTED
137b07: 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;
137b0e: 4f dec %edi <== NOT EXECUTED
137b0f: 89 7d c8 mov %edi,-0x38(%ebp) <== NOT EXECUTED
137b12: eb 05 jmp 137b19 <rtems_rfs_group_bitmap_alloc+0x42><== NOT EXECUTED
}
else
size = fs->group_blocks;
group_start = goal / size;
bit = (rtems_rfs_bitmap_bit) (goal % size);
137b14: 83 ce ff or $0xffffffff,%esi <== NOT EXECUTED
137b17: 31 d2 xor %edx,%edx <== NOT EXECUTED
*/
while (true)
{
rtems_rfs_bitmap_control* bitmap;
int group;
bool allocated = false;
137b19: 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);
137b1d: 8b 7d d4 mov -0x2c(%ebp),%edi <== NOT EXECUTED
137b20: 0f af fe imul %esi,%edi <== NOT EXECUTED
137b23: 03 7d cc add -0x34(%ebp),%edi <== NOT EXECUTED
if (offset)
137b26: 83 7d d4 00 cmpl $0x0,-0x2c(%ebp) <== NOT EXECUTED
137b2a: 74 0d je 137b39 <rtems_rfs_group_bitmap_alloc+0x62><== NOT EXECUTED
bit = direction > 0 ? 0 : size - 1;
137b2c: 31 c0 xor %eax,%eax <== NOT EXECUTED
137b2e: 83 fe 01 cmp $0x1,%esi <== NOT EXECUTED
137b31: 74 03 je 137b36 <rtems_rfs_group_bitmap_alloc+0x5f><== NOT EXECUTED
137b33: 8b 45 c8 mov -0x38(%ebp),%eax <== NOT EXECUTED
137b36: 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))
137b39: 85 ff test %edi,%edi <== NOT EXECUTED
137b3b: 78 05 js 137b42 <rtems_rfs_group_bitmap_alloc+0x6b><== NOT EXECUTED
137b3d: 3b 7b 20 cmp 0x20(%ebx),%edi <== NOT EXECUTED
137b40: 7c 12 jl 137b54 <rtems_rfs_group_bitmap_alloc+0x7d><== NOT EXECUTED
{
if (!updown)
137b42: 84 d2 test %dl,%dl <== NOT EXECUTED
137b44: 0f 84 a6 00 00 00 je 137bf0 <rtems_rfs_group_bitmap_alloc+0x119><== NOT EXECUTED
break;
direction = direction > 0 ? -1 : 1;
137b4a: 4e dec %esi <== NOT EXECUTED
137b4b: 74 c7 je 137b14 <rtems_rfs_group_bitmap_alloc+0x3d><== NOT EXECUTED
137b4d: be 01 00 00 00 mov $0x1,%esi <== NOT EXECUTED
137b52: eb c3 jmp 137b17 <rtems_rfs_group_bitmap_alloc+0x40><== NOT EXECUTED
updown = false;
continue;
}
if (inode)
137b54: 84 c9 test %cl,%cl <== NOT EXECUTED
137b56: 74 0b je 137b63 <rtems_rfs_group_bitmap_alloc+0x8c><== NOT EXECUTED
bitmap = &fs->groups[group].inode_bitmap;
137b58: 6b c7 50 imul $0x50,%edi,%eax <== NOT EXECUTED
137b5b: 03 43 1c add 0x1c(%ebx),%eax <== NOT EXECUTED
137b5e: 83 c0 2c add $0x2c,%eax <== NOT EXECUTED
137b61: eb 09 jmp 137b6c <rtems_rfs_group_bitmap_alloc+0x95><== NOT EXECUTED
else
bitmap = &fs->groups[group].block_bitmap;
137b63: 6b c7 50 imul $0x50,%edi,%eax <== NOT EXECUTED
137b66: 03 43 1c add 0x1c(%ebx),%eax <== NOT EXECUTED
137b69: 83 c0 08 add $0x8,%eax <== NOT EXECUTED
137b6c: 89 45 d0 mov %eax,-0x30(%ebp) <== NOT EXECUTED
rc = rtems_rfs_bitmap_map_alloc (bitmap, bit, &allocated, &bit);
137b6f: 8d 45 e0 lea -0x20(%ebp),%eax <== NOT EXECUTED
137b72: 50 push %eax <== NOT EXECUTED
137b73: 8d 45 e7 lea -0x19(%ebp),%eax <== NOT EXECUTED
137b76: 50 push %eax <== NOT EXECUTED
137b77: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
137b7a: ff 75 d0 pushl -0x30(%ebp) <== NOT EXECUTED
137b7d: 88 55 c4 mov %dl,-0x3c(%ebp) <== NOT EXECUTED
137b80: 88 4d c0 mov %cl,-0x40(%ebp) <== NOT EXECUTED
137b83: e8 38 4a 00 00 call 13c5c0 <rtems_rfs_bitmap_map_alloc><== NOT EXECUTED
if (rc > 0)
137b88: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
137b8b: 85 c0 test %eax,%eax <== NOT EXECUTED
137b8d: 8a 55 c4 mov -0x3c(%ebp),%dl <== NOT EXECUTED
137b90: 8a 4d c0 mov -0x40(%ebp),%cl <== NOT EXECUTED
137b93: 7f 60 jg 137bf5 <rtems_rfs_group_bitmap_alloc+0x11e><== NOT EXECUTED
return rc;
if (rtems_rfs_fs_release_bitmaps (fs))
137b95: f6 03 01 testb $0x1,(%ebx) <== NOT EXECUTED
137b98: 75 16 jne 137bb0 <rtems_rfs_group_bitmap_alloc+0xd9><== NOT EXECUTED
rtems_rfs_bitmap_release_buffer (fs, bitmap);
137b9a: 51 push %ecx <== NOT EXECUTED
137b9b: 51 push %ecx <== NOT EXECUTED
137b9c: 8b 45 d0 mov -0x30(%ebp),%eax <== NOT EXECUTED
137b9f: ff 30 pushl (%eax) <== NOT EXECUTED
137ba1: 53 push %ebx <== NOT EXECUTED
137ba2: e8 e0 d3 ff ff call 134f87 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
137ba7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
137baa: 8a 4d c0 mov -0x40(%ebp),%cl <== NOT EXECUTED
137bad: 8a 55 c4 mov -0x3c(%ebp),%dl <== NOT EXECUTED
if (allocated)
137bb0: 80 7d e7 00 cmpb $0x0,-0x19(%ebp) <== NOT EXECUTED
137bb4: 74 23 je 137bd9 <rtems_rfs_group_bitmap_alloc+0x102><== NOT EXECUTED
{
if (inode)
137bb6: 84 c9 test %cl,%cl <== NOT EXECUTED
137bb8: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
137bbb: 74 0a je 137bc7 <rtems_rfs_group_bitmap_alloc+0xf0><== NOT EXECUTED
*result = rtems_rfs_group_inode (fs, group, bit);
137bbd: 0f af 7b 28 imul 0x28(%ebx),%edi <== NOT EXECUTED
137bc1: 8d 44 07 01 lea 0x1(%edi,%eax,1),%eax <== NOT EXECUTED
137bc5: eb 09 jmp 137bd0 <rtems_rfs_group_bitmap_alloc+0xf9><== NOT EXECUTED
else
*result = rtems_rfs_group_block (&fs->groups[group], bit);
137bc7: 8b 53 1c mov 0x1c(%ebx),%edx <== NOT EXECUTED
137bca: 6b ff 50 imul $0x50,%edi,%edi <== NOT EXECUTED
137bcd: 03 04 3a add (%edx,%edi,1),%eax <== NOT EXECUTED
137bd0: 8b 55 14 mov 0x14(%ebp),%edx <== NOT EXECUTED
137bd3: 89 02 mov %eax,(%edx) <== NOT EXECUTED
137bd5: 31 c0 xor %eax,%eax <== NOT EXECUTED
137bd7: eb 1c jmp 137bf5 <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)
137bd9: 84 d2 test %dl,%dl <== NOT EXECUTED
137bdb: 74 0b je 137be8 <rtems_rfs_group_bitmap_alloc+0x111><== NOT EXECUTED
direction = direction > 0 ? -1 : 1;
137bdd: 4e dec %esi <== NOT EXECUTED
137bde: 0f 95 c0 setne %al <== NOT EXECUTED
137be1: 0f b6 f0 movzbl %al,%esi <== NOT EXECUTED
137be4: 8d 74 36 ff lea -0x1(%esi,%esi,1),%esi <== NOT EXECUTED
offset++;
137be8: ff 45 d4 incl -0x2c(%ebp) <== NOT EXECUTED
137beb: e9 29 ff ff ff jmp 137b19 <rtems_rfs_group_bitmap_alloc+0x42><== NOT EXECUTED
137bf0: 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;
}
137bf5: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
137bf8: 5b pop %ebx <== NOT EXECUTED
137bf9: 5e pop %esi <== NOT EXECUTED
137bfa: 5f pop %edi <== NOT EXECUTED
137bfb: c9 leave <== NOT EXECUTED
137bfc: c3 ret <== NOT EXECUTED
00137a6e <rtems_rfs_group_bitmap_free>:
int
rtems_rfs_group_bitmap_free (rtems_rfs_file_system* fs,
bool inode,
rtems_rfs_bitmap_bit no)
{
137a6e: 55 push %ebp <== NOT EXECUTED
137a6f: 89 e5 mov %esp,%ebp <== NOT EXECUTED
137a71: 57 push %edi <== NOT EXECUTED
137a72: 56 push %esi <== NOT EXECUTED
137a73: 53 push %ebx <== NOT EXECUTED
137a74: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
137a77: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
137a7a: 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)
137a7d: 84 c9 test %cl,%cl <== NOT EXECUTED
137a7f: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
137a82: 8d 78 ff lea -0x1(%eax),%edi <== NOT EXECUTED
137a85: 74 05 je 137a8c <rtems_rfs_group_bitmap_free+0x1e><== NOT EXECUTED
{
no -= RTEMS_RFS_ROOT_INO;
size = fs->group_inodes;
137a87: 8b 43 28 mov 0x28(%ebx),%eax <== NOT EXECUTED
137a8a: eb 03 jmp 137a8f <rtems_rfs_group_bitmap_free+0x21><== NOT EXECUTED
}
else
{
no -= RTEMS_RFS_SUPERBLOCK_SIZE;
size = fs->group_blocks;
137a8c: 8b 43 24 mov 0x24(%ebx),%eax <== NOT EXECUTED
137a8f: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
}
group = no / size;
137a92: 89 f8 mov %edi,%eax <== NOT EXECUTED
137a94: 31 d2 xor %edx,%edx <== NOT EXECUTED
137a96: f7 75 e4 divl -0x1c(%ebp) <== NOT EXECUTED
bit = (rtems_rfs_bitmap_bit) (no % size);
if (inode)
137a99: 84 c9 test %cl,%cl <== NOT EXECUTED
137a9b: 74 0b je 137aa8 <rtems_rfs_group_bitmap_free+0x3a><== NOT EXECUTED
bitmap = &fs->groups[group].inode_bitmap;
137a9d: 6b f0 50 imul $0x50,%eax,%esi <== NOT EXECUTED
137aa0: 03 73 1c add 0x1c(%ebx),%esi <== NOT EXECUTED
137aa3: 83 c6 2c add $0x2c,%esi <== NOT EXECUTED
137aa6: eb 09 jmp 137ab1 <rtems_rfs_group_bitmap_free+0x43><== NOT EXECUTED
else
bitmap = &fs->groups[group].block_bitmap;
137aa8: 6b f0 50 imul $0x50,%eax,%esi <== NOT EXECUTED
137aab: 03 73 1c add 0x1c(%ebx),%esi <== NOT EXECUTED
137aae: 83 c6 08 add $0x8,%esi <== NOT EXECUTED
rc = rtems_rfs_bitmap_map_clear (bitmap, bit);
137ab1: 52 push %edx <== NOT EXECUTED
137ab2: 52 push %edx <== NOT EXECUTED
137ab3: 89 f8 mov %edi,%eax <== NOT EXECUTED
137ab5: 31 d2 xor %edx,%edx <== NOT EXECUTED
137ab7: f7 75 e4 divl -0x1c(%ebp) <== NOT EXECUTED
137aba: 52 push %edx <== NOT EXECUTED
137abb: 56 push %esi <== NOT EXECUTED
137abc: e8 3c 48 00 00 call 13c2fd <rtems_rfs_bitmap_map_clear><== NOT EXECUTED
137ac1: 89 c7 mov %eax,%edi <== NOT EXECUTED
rtems_rfs_bitmap_release_buffer (fs, bitmap);
137ac3: 59 pop %ecx <== NOT EXECUTED
137ac4: 58 pop %eax <== NOT EXECUTED
137ac5: ff 36 pushl (%esi) <== NOT EXECUTED
137ac7: 53 push %ebx <== NOT EXECUTED
137ac8: e8 ba d4 ff ff call 134f87 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
return rc;
}
137acd: 89 f8 mov %edi,%eax <== NOT EXECUTED
137acf: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
137ad2: 5b pop %ebx <== NOT EXECUTED
137ad3: 5e pop %esi <== NOT EXECUTED
137ad4: 5f pop %edi <== NOT EXECUTED
137ad5: c9 leave <== NOT EXECUTED
137ad6: c3 ret <== NOT EXECUTED
001379ee <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)
{
1379ee: 55 push %ebp <== NOT EXECUTED
1379ef: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1379f1: 57 push %edi <== NOT EXECUTED
1379f2: 56 push %esi <== NOT EXECUTED
1379f3: 53 push %ebx <== NOT EXECUTED
1379f4: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1379f7: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
1379fa: 8b 4d 10 mov 0x10(%ebp),%ecx <== NOT EXECUTED
1379fd: 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)
137a00: 89 f0 mov %esi,%eax <== NOT EXECUTED
137a02: 84 c0 test %al,%al <== NOT EXECUTED
137a04: 74 0f je 137a15 <rtems_rfs_group_bitmap_test+0x27><== NOT EXECUTED
{
if ((no < RTEMS_RFS_ROOT_INO) || (no > rtems_rfs_fs_inodes (fs)))
137a06: 85 c9 test %ecx,%ecx <== NOT EXECUTED
137a08: 7e 55 jle 137a5f <rtems_rfs_group_bitmap_test+0x71><== NOT EXECUTED
137a0a: 3b 4b 10 cmp 0x10(%ebx),%ecx <== NOT EXECUTED
137a0d: 77 50 ja 137a5f <rtems_rfs_group_bitmap_test+0x71><== NOT EXECUTED
return EINVAL;
no -= RTEMS_RFS_ROOT_INO;
137a0f: 49 dec %ecx <== NOT EXECUTED
size = fs->group_inodes;
137a10: 8b 7b 28 mov 0x28(%ebx),%edi <== NOT EXECUTED
137a13: eb 08 jmp 137a1d <rtems_rfs_group_bitmap_test+0x2f><== NOT EXECUTED
}
else
{
if (no >= rtems_rfs_fs_blocks (fs))
137a15: 3b 4b 04 cmp 0x4(%ebx),%ecx <== NOT EXECUTED
137a18: 73 45 jae 137a5f <rtems_rfs_group_bitmap_test+0x71><== NOT EXECUTED
return EINVAL;
size = fs->group_blocks;
137a1a: 8b 7b 24 mov 0x24(%ebx),%edi <== NOT EXECUTED
}
group = no / size;
137a1d: 89 c8 mov %ecx,%eax <== NOT EXECUTED
137a1f: 31 d2 xor %edx,%edx <== NOT EXECUTED
137a21: f7 f7 div %edi <== NOT EXECUTED
bit = (rtems_rfs_bitmap_bit) (no % size);
if (inode)
137a23: 89 f2 mov %esi,%edx <== NOT EXECUTED
137a25: 84 d2 test %dl,%dl <== NOT EXECUTED
137a27: 74 0b je 137a34 <rtems_rfs_group_bitmap_test+0x46><== NOT EXECUTED
bitmap = &fs->groups[group].inode_bitmap;
137a29: 6b f0 50 imul $0x50,%eax,%esi <== NOT EXECUTED
137a2c: 03 73 1c add 0x1c(%ebx),%esi <== NOT EXECUTED
137a2f: 83 c6 2c add $0x2c,%esi <== NOT EXECUTED
137a32: eb 09 jmp 137a3d <rtems_rfs_group_bitmap_test+0x4f><== NOT EXECUTED
else
bitmap = &fs->groups[group].block_bitmap;
137a34: 6b f0 50 imul $0x50,%eax,%esi <== NOT EXECUTED
137a37: 03 73 1c add 0x1c(%ebx),%esi <== NOT EXECUTED
137a3a: 83 c6 08 add $0x8,%esi <== NOT EXECUTED
rc = rtems_rfs_bitmap_map_test (bitmap, bit, state);
137a3d: 52 push %edx <== NOT EXECUTED
137a3e: ff 75 14 pushl 0x14(%ebp) <== NOT EXECUTED
137a41: 89 c8 mov %ecx,%eax <== NOT EXECUTED
137a43: 31 d2 xor %edx,%edx <== NOT EXECUTED
137a45: f7 f7 div %edi <== NOT EXECUTED
137a47: 52 push %edx <== NOT EXECUTED
137a48: 56 push %esi <== NOT EXECUTED
137a49: e8 69 48 00 00 call 13c2b7 <rtems_rfs_bitmap_map_test><== NOT EXECUTED
137a4e: 89 c7 mov %eax,%edi <== NOT EXECUTED
rtems_rfs_bitmap_release_buffer (fs, bitmap);
137a50: 59 pop %ecx <== NOT EXECUTED
137a51: 58 pop %eax <== NOT EXECUTED
137a52: ff 36 pushl (%esi) <== NOT EXECUTED
137a54: 53 push %ebx <== NOT EXECUTED
137a55: e8 2d d5 ff ff call 134f87 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
return rc;
137a5a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
137a5d: eb 05 jmp 137a64 <rtems_rfs_group_bitmap_test+0x76><== NOT EXECUTED
137a5f: bf 16 00 00 00 mov $0x16,%edi <== NOT EXECUTED
}
137a64: 89 f8 mov %edi,%eax <== NOT EXECUTED
137a66: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
137a69: 5b pop %ebx <== NOT EXECUTED
137a6a: 5e pop %esi <== NOT EXECUTED
137a6b: 5f pop %edi <== NOT EXECUTED
137a6c: c9 leave <== NOT EXECUTED
137a6d: c3 ret <== NOT EXECUTED
00137bfd <rtems_rfs_group_close>:
return 0;
}
int
rtems_rfs_group_close (rtems_rfs_file_system* fs, rtems_rfs_group* group)
{
137bfd: 55 push %ebp <== NOT EXECUTED
137bfe: 89 e5 mov %esp,%ebp <== NOT EXECUTED
137c00: 57 push %edi <== NOT EXECUTED
137c01: 56 push %esi <== NOT EXECUTED
137c02: 53 push %ebx <== NOT EXECUTED
137c03: 83 ec 28 sub $0x28,%esp <== NOT EXECUTED
137c06: 8b 7d 08 mov 0x8(%ebp),%edi <== NOT EXECUTED
137c09: 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);
137c0c: 8d 43 2c lea 0x2c(%ebx),%eax <== NOT EXECUTED
137c0f: 50 push %eax <== NOT EXECUTED
137c10: e8 68 44 00 00 call 13c07d <rtems_rfs_bitmap_close><== NOT EXECUTED
137c15: 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);
137c17: 59 pop %ecx <== NOT EXECUTED
137c18: 5e pop %esi <== NOT EXECUTED
137c19: 8d 43 44 lea 0x44(%ebx),%eax <== NOT EXECUTED
137c1c: 50 push %eax <== NOT EXECUTED
137c1d: 57 push %edi <== NOT EXECUTED
137c1e: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED
137c21: e8 61 d3 ff ff call 134f87 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
handle->dirty = false;
137c26: c6 43 44 00 movb $0x0,0x44(%ebx) <== NOT EXECUTED
handle->bnum = 0;
137c2a: c7 43 48 00 00 00 00 movl $0x0,0x48(%ebx) <== NOT EXECUTED
handle->buffer = NULL;
137c31: 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);
137c38: 8d 43 08 lea 0x8(%ebx),%eax <== NOT EXECUTED
137c3b: 89 04 24 mov %eax,(%esp) <== NOT EXECUTED
137c3e: e8 3a 44 00 00 call 13c07d <rtems_rfs_bitmap_close><== NOT EXECUTED
if (rc > 0)
137c43: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
137c46: 89 c6 mov %eax,%esi <== NOT EXECUTED
137c48: 85 c0 test %eax,%eax <== NOT EXECUTED
137c4a: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
137c4d: 7f 09 jg 137c58 <rtems_rfs_group_close+0x5b><== NOT EXECUTED
137c4f: 89 d6 mov %edx,%esi <== NOT EXECUTED
137c51: f7 d6 not %esi <== NOT EXECUTED
137c53: c1 fe 1f sar $0x1f,%esi <== NOT EXECUTED
137c56: 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);
137c58: 50 push %eax <== NOT EXECUTED
137c59: 50 push %eax <== NOT EXECUTED
137c5a: 8d 43 20 lea 0x20(%ebx),%eax <== NOT EXECUTED
137c5d: 50 push %eax <== NOT EXECUTED
137c5e: 57 push %edi <== NOT EXECUTED
137c5f: e8 23 d3 ff ff call 134f87 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
handle->dirty = false;
137c64: c6 43 20 00 movb $0x0,0x20(%ebx) <== NOT EXECUTED
handle->bnum = 0;
137c68: c7 43 24 00 00 00 00 movl $0x0,0x24(%ebx) <== NOT EXECUTED
handle->buffer = NULL;
137c6f: 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;
}
137c76: 89 f0 mov %esi,%eax <== NOT EXECUTED
137c78: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
137c7b: 5b pop %ebx <== NOT EXECUTED
137c7c: 5e pop %esi <== NOT EXECUTED
137c7d: 5f pop %edi <== NOT EXECUTED
137c7e: c9 leave <== NOT EXECUTED
137c7f: c3 ret <== NOT EXECUTED
00137c80 <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)
{
137c80: 55 push %ebp <== NOT EXECUTED
137c81: 89 e5 mov %esp,%ebp <== NOT EXECUTED
137c83: 57 push %edi <== NOT EXECUTED
137c84: 56 push %esi <== NOT EXECUTED
137c85: 53 push %ebx <== NOT EXECUTED
137c86: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
137c89: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
137c8c: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
137c8f: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
137c92: 8b 5d 18 mov 0x18(%ebp),%ebx <== NOT EXECUTED
int rc;
if (base >= rtems_rfs_fs_blocks (fs))
137c95: 8b 4e 04 mov 0x4(%esi),%ecx <== NOT EXECUTED
137c98: bf 05 00 00 00 mov $0x5,%edi <== NOT EXECUTED
137c9d: 39 c8 cmp %ecx,%eax <== NOT EXECUTED
137c9f: 0f 83 f2 00 00 00 jae 137d97 <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))
137ca5: 8d 3c 02 lea (%edx,%eax,1),%edi <== NOT EXECUTED
137ca8: 39 cf cmp %ecx,%edi <== NOT EXECUTED
137caa: 72 04 jb 137cb0 <rtems_rfs_group_open+0x30><== NOT EXECUTED
size = rtems_rfs_fs_blocks (fs) - base;
137cac: 89 ca mov %ecx,%edx <== NOT EXECUTED
137cae: 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;
137cb0: 89 03 mov %eax,(%ebx) <== NOT EXECUTED
group->size = size;
137cb2: 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;
137cb5: c6 43 20 00 movb $0x0,0x20(%ebx) <== NOT EXECUTED
handle->bnum = 0;
137cb9: c7 43 24 00 00 00 00 movl $0x0,0x24(%ebx) <== NOT EXECUTED
handle->buffer = NULL;
137cc0: 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,
137cc7: 8d 4b 20 lea 0x20(%ebx),%ecx <== NOT EXECUTED
137cca: 89 4d e4 mov %ecx,-0x1c(%ebp) <== NOT EXECUTED
137ccd: 8d 4b 08 lea 0x8(%ebx),%ecx <== NOT EXECUTED
137cd0: 89 4d e0 mov %ecx,-0x20(%ebp) <== NOT EXECUTED
137cd3: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
137cd6: 50 push %eax <== NOT EXECUTED
137cd7: 52 push %edx <== NOT EXECUTED
137cd8: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
137cdb: 56 push %esi <== NOT EXECUTED
137cdc: 51 push %ecx <== NOT EXECUTED
137cdd: 89 55 dc mov %edx,-0x24(%ebp) <== NOT EXECUTED
137ce0: e8 a7 44 00 00 call 13c18c <rtems_rfs_bitmap_open> <== NOT EXECUTED
137ce5: 89 c7 mov %eax,%edi <== NOT EXECUTED
&group->block_bitmap_buffer, size,
group->base + RTEMS_RFS_GROUP_BLOCK_BITMAP_BLOCK);
if (rc > 0)
137ce7: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
137cea: 85 c0 test %eax,%eax <== NOT EXECUTED
137cec: 8b 55 dc mov -0x24(%ebp),%edx <== NOT EXECUTED
137cef: 7e 04 jle 137cf5 <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);
137cf1: 52 push %edx <== NOT EXECUTED
137cf2: 52 push %edx <== NOT EXECUTED
137cf3: eb 65 jmp 137d5a <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;
137cf5: c6 43 44 00 movb $0x0,0x44(%ebx) <== NOT EXECUTED
handle->bnum = 0;
137cf9: c7 43 48 00 00 00 00 movl $0x0,0x48(%ebx) <== NOT EXECUTED
handle->buffer = NULL;
137d00: 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,
137d07: 8d 4b 44 lea 0x44(%ebx),%ecx <== NOT EXECUTED
137d0a: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
137d0d: 8b 03 mov (%ebx),%eax <== NOT EXECUTED
137d0f: 40 inc %eax <== NOT EXECUTED
137d10: 50 push %eax <== NOT EXECUTED
137d11: 3b 55 14 cmp 0x14(%ebp),%edx <== NOT EXECUTED
137d14: 76 03 jbe 137d19 <rtems_rfs_group_open+0x99><== NOT EXECUTED
137d16: 8b 55 14 mov 0x14(%ebp),%edx <== NOT EXECUTED
137d19: 52 push %edx <== NOT EXECUTED
137d1a: 51 push %ecx <== NOT EXECUTED
137d1b: 56 push %esi <== NOT EXECUTED
137d1c: 8d 43 2c lea 0x2c(%ebx),%eax <== NOT EXECUTED
137d1f: 50 push %eax <== NOT EXECUTED
137d20: 89 4d dc mov %ecx,-0x24(%ebp) <== NOT EXECUTED
137d23: e8 64 44 00 00 call 13c18c <rtems_rfs_bitmap_open> <== NOT EXECUTED
137d28: 89 c7 mov %eax,%edi <== NOT EXECUTED
&group->inode_bitmap_buffer, inodes,
group->base + RTEMS_RFS_GROUP_INODE_BITMAP_BLOCK);
if (rc > 0)
137d2a: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
137d2d: 85 c0 test %eax,%eax <== NOT EXECUTED
137d2f: 8b 4d dc mov -0x24(%ebp),%ecx <== NOT EXECUTED
137d32: 7e 43 jle 137d77 <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);
137d34: 50 push %eax <== NOT EXECUTED
137d35: 50 push %eax <== NOT EXECUTED
137d36: 51 push %ecx <== NOT EXECUTED
137d37: 56 push %esi <== NOT EXECUTED
137d38: e8 4a d2 ff ff call 134f87 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
handle->dirty = false;
137d3d: c6 43 44 00 movb $0x0,0x44(%ebx) <== NOT EXECUTED
handle->bnum = 0;
137d41: c7 43 48 00 00 00 00 movl $0x0,0x48(%ebx) <== NOT EXECUTED
handle->buffer = NULL;
137d48: 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);
137d4f: 59 pop %ecx <== NOT EXECUTED
137d50: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
137d53: e8 25 43 00 00 call 13c07d <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);
137d58: 58 pop %eax <== NOT EXECUTED
137d59: 5a pop %edx <== NOT EXECUTED
137d5a: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
137d5d: 56 push %esi <== NOT EXECUTED
137d5e: e8 24 d2 ff ff call 134f87 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
handle->dirty = false;
137d63: c6 43 20 00 movb $0x0,0x20(%ebx) <== NOT EXECUTED
handle->bnum = 0;
137d67: c7 43 24 00 00 00 00 movl $0x0,0x24(%ebx) <== NOT EXECUTED
handle->buffer = NULL;
137d6e: c7 43 28 00 00 00 00 movl $0x0,0x28(%ebx) <== NOT EXECUTED
137d75: eb 1d jmp 137d94 <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))
137d77: 31 ff xor %edi,%edi <== NOT EXECUTED
137d79: f6 06 01 testb $0x1,(%esi) <== NOT EXECUTED
137d7c: 75 19 jne 137d97 <rtems_rfs_group_open+0x117><== NOT EXECUTED
{
rtems_rfs_bitmap_release_buffer (fs, &group->block_bitmap);
137d7e: 51 push %ecx <== NOT EXECUTED
137d7f: 51 push %ecx <== NOT EXECUTED
137d80: ff 73 08 pushl 0x8(%ebx) <== NOT EXECUTED
137d83: 56 push %esi <== NOT EXECUTED
137d84: e8 fe d1 ff ff call 134f87 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
rtems_rfs_bitmap_release_buffer (fs, &group->inode_bitmap);
137d89: 58 pop %eax <== NOT EXECUTED
137d8a: 5a pop %edx <== NOT EXECUTED
137d8b: ff 73 2c pushl 0x2c(%ebx) <== NOT EXECUTED
137d8e: 56 push %esi <== NOT EXECUTED
137d8f: e8 f3 d1 ff ff call 134f87 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
137d94: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
return 0;
}
137d97: 89 f8 mov %edi,%eax <== NOT EXECUTED
137d99: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
137d9c: 5b pop %ebx <== NOT EXECUTED
137d9d: 5e pop %esi <== NOT EXECUTED
137d9e: 5f pop %edi <== NOT EXECUTED
137d9f: c9 leave <== NOT EXECUTED
137da0: c3 ret <== NOT EXECUTED
00137988 <rtems_rfs_group_usage>:
int
rtems_rfs_group_usage (rtems_rfs_file_system* fs,
size_t* blocks,
size_t* inodes)
{
137988: 55 push %ebp <== NOT EXECUTED
137989: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13798b: 57 push %edi <== NOT EXECUTED
13798c: 56 push %esi <== NOT EXECUTED
13798d: 53 push %ebx <== NOT EXECUTED
13798e: 83 ec 04 sub $0x4,%esp <== NOT EXECUTED
137991: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
137994: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED
137997: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
int g;
*blocks = 0;
13799a: c7 01 00 00 00 00 movl $0x0,(%ecx) <== NOT EXECUTED
*inodes = 0;
1379a0: c7 02 00 00 00 00 movl $0x0,(%edx) <== NOT EXECUTED
for (g = 0; g < fs->group_count; g++)
1379a6: 8b 43 20 mov 0x20(%ebx),%eax <== NOT EXECUTED
1379a9: 89 45 f0 mov %eax,-0x10(%ebp) <== NOT EXECUTED
1379ac: 31 f6 xor %esi,%esi <== NOT EXECUTED
1379ae: eb 17 jmp 1379c7 <rtems_rfs_group_usage+0x3f><== NOT EXECUTED
{
rtems_rfs_group* group = &fs->groups[g];
1379b0: 6b c6 50 imul $0x50,%esi,%eax <== NOT EXECUTED
1379b3: 03 43 1c add 0x1c(%ebx),%eax <== NOT EXECUTED
*blocks +=
1379b6: 8b 78 14 mov 0x14(%eax),%edi <== NOT EXECUTED
1379b9: 2b 78 18 sub 0x18(%eax),%edi <== NOT EXECUTED
1379bc: 01 39 add %edi,(%ecx) <== NOT EXECUTED
rtems_rfs_bitmap_map_size(&group->block_bitmap) -
rtems_rfs_bitmap_map_free (&group->block_bitmap);
*inodes +=
1379be: 8b 78 38 mov 0x38(%eax),%edi <== NOT EXECUTED
1379c1: 2b 78 3c sub 0x3c(%eax),%edi <== NOT EXECUTED
1379c4: 01 3a add %edi,(%edx) <== NOT EXECUTED
int g;
*blocks = 0;
*inodes = 0;
for (g = 0; g < fs->group_count; g++)
1379c6: 46 inc %esi <== NOT EXECUTED
1379c7: 3b 75 f0 cmp -0x10(%ebp),%esi <== NOT EXECUTED
1379ca: 7c e4 jl 1379b0 <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))
1379cc: 8b 31 mov (%ecx),%esi <== NOT EXECUTED
1379ce: 8b 43 04 mov 0x4(%ebx),%eax <== NOT EXECUTED
1379d1: 39 c6 cmp %eax,%esi <== NOT EXECUTED
1379d3: 77 02 ja 1379d7 <rtems_rfs_group_usage+0x4f><== NOT EXECUTED
1379d5: 89 f0 mov %esi,%eax <== NOT EXECUTED
1379d7: 89 01 mov %eax,(%ecx) <== NOT EXECUTED
*blocks = rtems_rfs_fs_blocks (fs);
if (*inodes > rtems_rfs_fs_inodes (fs))
1379d9: 8b 4b 10 mov 0x10(%ebx),%ecx <== NOT EXECUTED
1379dc: 8b 02 mov (%edx),%eax <== NOT EXECUTED
1379de: 39 c8 cmp %ecx,%eax <== NOT EXECUTED
1379e0: 76 02 jbe 1379e4 <rtems_rfs_group_usage+0x5c><== NOT EXECUTED
1379e2: 89 c8 mov %ecx,%eax <== NOT EXECUTED
1379e4: 89 02 mov %eax,(%edx) <== NOT EXECUTED
*inodes = rtems_rfs_fs_inodes (fs);
return 0;
}
1379e6: 31 c0 xor %eax,%eax <== NOT EXECUTED
1379e8: 5a pop %edx <== NOT EXECUTED
1379e9: 5b pop %ebx <== NOT EXECUTED
1379ea: 5e pop %esi <== NOT EXECUTED
1379eb: 5f pop %edi <== NOT EXECUTED
1379ec: c9 leave <== NOT EXECUTED
1379ed: c3 ret <== NOT EXECUTED
001381ff <rtems_rfs_inode_alloc>:
int
rtems_rfs_inode_alloc (rtems_rfs_file_system* fs,
rtems_rfs_bitmap_bit goal,
rtems_rfs_ino* ino)
{
1381ff: 55 push %ebp <== NOT EXECUTED
138200: 89 e5 mov %esp,%ebp <== NOT EXECUTED
138202: 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);
138205: 8d 45 f4 lea -0xc(%ebp),%eax <== NOT EXECUTED
138208: 50 push %eax <== NOT EXECUTED
138209: 6a 01 push $0x1 <== NOT EXECUTED
13820b: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
13820e: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
138211: e8 c1 f8 ff ff call 137ad7 <rtems_rfs_group_bitmap_alloc><== NOT EXECUTED
*ino = bit;
138216: 8b 4d f4 mov -0xc(%ebp),%ecx <== NOT EXECUTED
138219: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
13821c: 89 0a mov %ecx,(%edx) <== NOT EXECUTED
return rc;
}
13821e: c9 leave <== NOT EXECUTED
13821f: c3 ret <== NOT EXECUTED
0013806c <rtems_rfs_inode_close>:
}
int
rtems_rfs_inode_close (rtems_rfs_file_system* fs,
rtems_rfs_inode_handle* handle)
{
13806c: 55 push %ebp <== NOT EXECUTED
13806d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13806f: 53 push %ebx <== NOT EXECUTED
138070: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
138073: 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);
138076: 6a 01 push $0x1 <== NOT EXECUTED
138078: 53 push %ebx <== NOT EXECUTED
138079: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
13807c: e8 5f ff ff ff call 137fe0 <rtems_rfs_inode_unload><== NOT EXECUTED
if ((rc == 0) && (handle->loads > 0))
138081: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
138084: 85 c0 test %eax,%eax <== NOT EXECUTED
138086: 75 08 jne 138090 <rtems_rfs_inode_close+0x24><== NOT EXECUTED
138088: 83 7b 24 00 cmpl $0x0,0x24(%ebx) <== NOT EXECUTED
13808c: 7e 02 jle 138090 <rtems_rfs_inode_close+0x24><== NOT EXECUTED
13808e: b0 05 mov $0x5,%al <== NOT EXECUTED
printf ("rtems-rfs: inode-close: bad loads number: %d\n",
handle->loads);
rc = EIO;
}
handle->ino = 0;
138090: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx) <== NOT EXECUTED
return rc;
}
138097: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
13809a: c9 leave <== NOT EXECUTED
13809b: c3 ret <== NOT EXECUTED
00138220 <rtems_rfs_inode_create>:
uint16_t mode,
uint16_t links,
uid_t uid,
gid_t gid,
rtems_rfs_ino* ino)
{
138220: 55 push %ebp <== NOT EXECUTED
138221: 89 e5 mov %esp,%ebp <== NOT EXECUTED
138223: 57 push %edi <== NOT EXECUTED
138224: 56 push %esi <== NOT EXECUTED
138225: 53 push %ebx <== NOT EXECUTED
138226: 83 ec 7c sub $0x7c,%esp <== NOT EXECUTED
138229: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
13822c: 8b 7d 28 mov 0x28(%ebp),%edi <== NOT EXECUTED
13822f: 8b 45 1c mov 0x1c(%ebp),%eax <== NOT EXECUTED
138232: 66 89 45 8e mov %ax,-0x72(%ebp) <== NOT EXECUTED
138236: 8b 45 20 mov 0x20(%ebp),%eax <== NOT EXECUTED
138239: 66 89 45 8c mov %ax,-0x74(%ebp) <== NOT EXECUTED
13823d: 8b 45 24 mov 0x24(%ebp),%eax <== NOT EXECUTED
138240: 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)
138244: 0f b7 45 18 movzwl 0x18(%ebp),%eax <== NOT EXECUTED
138248: 89 45 90 mov %eax,-0x70(%ebp) <== NOT EXECUTED
13824b: 25 00 f0 00 00 and $0xf000,%eax <== NOT EXECUTED
138250: 89 45 94 mov %eax,-0x6c(%ebp) <== NOT EXECUTED
138253: 3d 00 60 00 00 cmp $0x6000,%eax <== NOT EXECUTED
138258: 74 2c je 138286 <rtems_rfs_inode_create+0x66><== NOT EXECUTED
13825a: 7f 0e jg 13826a <rtems_rfs_inode_create+0x4a><== NOT EXECUTED
13825c: 3d 00 20 00 00 cmp $0x2000,%eax <== NOT EXECUTED
138261: 74 23 je 138286 <rtems_rfs_inode_create+0x66><== NOT EXECUTED
138263: 3d 00 40 00 00 cmp $0x4000,%eax <== NOT EXECUTED
138268: eb 10 jmp 13827a <rtems_rfs_inode_create+0x5a><== NOT EXECUTED
13826a: 81 7d 94 00 80 00 00 cmpl $0x8000,-0x6c(%ebp) <== NOT EXECUTED
138271: 74 13 je 138286 <rtems_rfs_inode_create+0x66><== NOT EXECUTED
138273: 81 7d 94 00 a0 00 00 cmpl $0xa000,-0x6c(%ebp) <== NOT EXECUTED
13827a: 74 0a je 138286 <rtems_rfs_inode_create+0x66><== NOT EXECUTED
13827c: be 16 00 00 00 mov $0x16,%esi <== NOT EXECUTED
138281: e9 af 01 00 00 jmp 138435 <rtems_rfs_inode_create+0x215><== NOT EXECUTED
break;
default:
return EINVAL;
}
rc = rtems_rfs_inode_alloc (fs, parent, ino);
138286: 56 push %esi <== NOT EXECUTED
138287: 57 push %edi <== NOT EXECUTED
138288: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
13828b: 53 push %ebx <== NOT EXECUTED
13828c: e8 6e ff ff ff call 1381ff <rtems_rfs_inode_alloc> <== NOT EXECUTED
138291: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
138293: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
138296: 85 c0 test %eax,%eax <== NOT EXECUTED
138298: 0f 8f 97 01 00 00 jg 138435 <rtems_rfs_inode_create+0x215><== NOT EXECUTED
return rc;
rc = rtems_rfs_inode_open (fs, *ino, &inode, true);
13829e: 6a 01 push $0x1 <== NOT EXECUTED
1382a0: 8d 55 98 lea -0x68(%ebp),%edx <== NOT EXECUTED
1382a3: 52 push %edx <== NOT EXECUTED
1382a4: ff 37 pushl (%edi) <== NOT EXECUTED
1382a6: 53 push %ebx <== NOT EXECUTED
1382a7: 89 55 84 mov %edx,-0x7c(%ebp) <== NOT EXECUTED
1382aa: e8 2c fe ff ff call 1380db <rtems_rfs_inode_open> <== NOT EXECUTED
1382af: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
1382b1: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1382b4: 85 c0 test %eax,%eax <== NOT EXECUTED
1382b6: 8b 55 84 mov -0x7c(%ebp),%edx <== NOT EXECUTED
1382b9: 0f 8f 69 01 00 00 jg 138428 <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);
1382bf: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1382c2: 0f b7 45 8a movzwl -0x76(%ebp),%eax <== NOT EXECUTED
1382c6: 50 push %eax <== NOT EXECUTED
1382c7: 0f b7 45 8c movzwl -0x74(%ebp),%eax <== NOT EXECUTED
1382cb: 50 push %eax <== NOT EXECUTED
1382cc: ff 75 90 pushl -0x70(%ebp) <== NOT EXECUTED
1382cf: 0f b7 45 8e movzwl -0x72(%ebp),%eax <== NOT EXECUTED
1382d3: 50 push %eax <== NOT EXECUTED
1382d4: 52 push %edx <== NOT EXECUTED
1382d5: 89 55 84 mov %edx,-0x7c(%ebp) <== NOT EXECUTED
1382d8: e8 c3 fb ff ff call 137ea0 <rtems_rfs_inode_initialise><== NOT EXECUTED
1382dd: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
1382df: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
1382e2: 85 c0 test %eax,%eax <== NOT EXECUTED
1382e4: 8b 55 84 mov -0x7c(%ebp),%edx <== NOT EXECUTED
1382e7: 7e 10 jle 1382f9 <rtems_rfs_inode_create+0xd9><== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
1382e9: 51 push %ecx <== NOT EXECUTED
1382ea: 51 push %ecx <== NOT EXECUTED
1382eb: 52 push %edx <== NOT EXECUTED
1382ec: 53 push %ebx <== NOT EXECUTED
1382ed: e8 7a fd ff ff call 13806c <rtems_rfs_inode_close> <== NOT EXECUTED
rtems_rfs_inode_free (fs, *ino);
1382f2: 58 pop %eax <== NOT EXECUTED
1382f3: 5a pop %edx <== NOT EXECUTED
1382f4: e9 31 01 00 00 jmp 13842a <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))
1382f9: 81 7d 94 00 40 00 00 cmpl $0x4000,-0x6c(%ebp) <== NOT EXECUTED
138300: 75 3f jne 138341 <rtems_rfs_inode_create+0x121><== NOT EXECUTED
{
rc = rtems_rfs_dir_add_entry (fs, &inode, ".", 1, *ino);
138302: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
138305: ff 37 pushl (%edi) <== NOT EXECUTED
138307: 6a 01 push $0x1 <== NOT EXECUTED
138309: 68 fe 74 15 00 push $0x1574fe <== NOT EXECUTED
13830e: 52 push %edx <== NOT EXECUTED
13830f: 53 push %ebx <== NOT EXECUTED
138310: 89 55 84 mov %edx,-0x7c(%ebp) <== NOT EXECUTED
138313: e8 dc d5 ff ff call 1358f4 <rtems_rfs_dir_add_entry><== NOT EXECUTED
138318: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc == 0)
13831a: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
13831d: 85 c0 test %eax,%eax <== NOT EXECUTED
13831f: 8b 55 84 mov -0x7c(%ebp),%edx <== NOT EXECUTED
138322: 75 19 jne 13833d <rtems_rfs_inode_create+0x11d><== NOT EXECUTED
rc = rtems_rfs_dir_add_entry (fs, &inode, "..", 2, parent);
138324: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
138327: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
13832a: 6a 02 push $0x2 <== NOT EXECUTED
13832c: 68 8c 7d 15 00 push $0x157d8c <== NOT EXECUTED
138331: 52 push %edx <== NOT EXECUTED
138332: 53 push %ebx <== NOT EXECUTED
138333: e8 bc d5 ff ff call 1358f4 <rtems_rfs_dir_add_entry><== NOT EXECUTED
138338: 89 c6 mov %eax,%esi <== NOT EXECUTED
13833a: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
if (rc > 0)
13833d: 85 f6 test %esi,%esi <== NOT EXECUTED
13833f: 7f 18 jg 138359 <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);
138341: 6a 01 push $0x1 <== NOT EXECUTED
138343: 8d 45 c0 lea -0x40(%ebp),%eax <== NOT EXECUTED
138346: 50 push %eax <== NOT EXECUTED
138347: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
13834a: 53 push %ebx <== NOT EXECUTED
13834b: e8 8b fd ff ff call 1380db <rtems_rfs_inode_open> <== NOT EXECUTED
138350: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
138352: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
138355: 85 c0 test %eax,%eax <== NOT EXECUTED
138357: 7e 14 jle 13836d <rtems_rfs_inode_create+0x14d><== NOT EXECUTED
{
rtems_rfs_inode_delete (fs, &inode);
138359: 51 push %ecx <== NOT EXECUTED
13835a: 51 push %ecx <== NOT EXECUTED
13835b: 8d 7d 98 lea -0x68(%ebp),%edi <== NOT EXECUTED
13835e: 57 push %edi <== NOT EXECUTED
13835f: 53 push %ebx <== NOT EXECUTED
138360: e8 14 fe ff ff call 138179 <rtems_rfs_inode_delete><== NOT EXECUTED
rtems_rfs_inode_close (fs, &inode);
138365: 58 pop %eax <== NOT EXECUTED
138366: 5a pop %edx <== NOT EXECUTED
138367: 57 push %edi <== NOT EXECUTED
138368: e9 9d 00 00 00 jmp 13840a <rtems_rfs_inode_create+0x1ea><== NOT EXECUTED
return rc;
}
rc = rtems_rfs_dir_add_entry (fs, &parent_inode, name, length, *ino);
13836d: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
138370: ff 37 pushl (%edi) <== NOT EXECUTED
138372: ff 75 14 pushl 0x14(%ebp) <== NOT EXECUTED
138375: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
138378: 8d 45 c0 lea -0x40(%ebp),%eax <== NOT EXECUTED
13837b: 50 push %eax <== NOT EXECUTED
13837c: 53 push %ebx <== NOT EXECUTED
13837d: e8 72 d5 ff ff call 1358f4 <rtems_rfs_dir_add_entry><== NOT EXECUTED
138382: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
138384: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
138387: 85 c0 test %eax,%eax <== NOT EXECUTED
138389: 7e 1d jle 1383a8 <rtems_rfs_inode_create+0x188><== NOT EXECUTED
{
rtems_rfs_inode_delete (fs, &inode);
13838b: 57 push %edi <== NOT EXECUTED
13838c: 57 push %edi <== NOT EXECUTED
13838d: 8d 7d 98 lea -0x68(%ebp),%edi <== NOT EXECUTED
138390: 57 push %edi <== NOT EXECUTED
138391: 53 push %ebx <== NOT EXECUTED
138392: e8 e2 fd ff ff call 138179 <rtems_rfs_inode_delete><== NOT EXECUTED
rtems_rfs_inode_close (fs, &inode);
138397: 5a pop %edx <== NOT EXECUTED
138398: 59 pop %ecx <== NOT EXECUTED
138399: 57 push %edi <== NOT EXECUTED
13839a: 53 push %ebx <== NOT EXECUTED
13839b: e8 cc fc ff ff call 13806c <rtems_rfs_inode_close> <== NOT EXECUTED
rtems_rfs_inode_close (fs, &parent_inode);
1383a0: 5f pop %edi <== NOT EXECUTED
1383a1: 58 pop %eax <== NOT EXECUTED
1383a2: 8d 45 c0 lea -0x40(%ebp),%eax <== NOT EXECUTED
1383a5: 50 push %eax <== NOT EXECUTED
1383a6: eb 62 jmp 13840a <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))
1383a8: 81 7d 94 00 40 00 00 cmpl $0x4000,-0x6c(%ebp) <== NOT EXECUTED
1383af: 75 2f jne 1383e0 <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);
1383b1: 8b 55 cc mov -0x34(%ebp),%edx <== NOT EXECUTED
1383b4: 0f b6 0a movzbl (%edx),%ecx <== NOT EXECUTED
1383b7: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
1383ba: 0f b6 42 01 movzbl 0x1(%edx),%eax <== NOT EXECUTED
1383be: 09 c8 or %ecx,%eax <== NOT EXECUTED
if (links == 0xffff)
1383c0: 31 c9 xor %ecx,%ecx <== NOT EXECUTED
1383c2: 66 83 f8 ff cmp $0xffffffff,%ax <== NOT EXECUTED
1383c6: 0f 95 c1 setne %cl <== NOT EXECUTED
1383c9: f7 d9 neg %ecx <== NOT EXECUTED
1383cb: 21 c8 and %ecx,%eax <== NOT EXECUTED
rtems_rfs_inode_set_links (&parent_inode,
1383cd: 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);
1383ce: 89 c1 mov %eax,%ecx <== NOT EXECUTED
1383d0: 66 c1 e9 08 shr $0x8,%cx <== NOT EXECUTED
1383d4: 88 0a mov %cl,(%edx) <== NOT EXECUTED
1383d6: 8b 55 cc mov -0x34(%ebp),%edx <== NOT EXECUTED
1383d9: 88 42 01 mov %al,0x1(%edx) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
1383dc: 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);
1383e0: 56 push %esi <== NOT EXECUTED
1383e1: 56 push %esi <== NOT EXECUTED
1383e2: 8d 45 c0 lea -0x40(%ebp),%eax <== NOT EXECUTED
1383e5: 50 push %eax <== NOT EXECUTED
1383e6: 53 push %ebx <== NOT EXECUTED
1383e7: e8 80 fc ff ff call 13806c <rtems_rfs_inode_close> <== NOT EXECUTED
1383ec: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
1383ee: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1383f1: 85 c0 test %eax,%eax <== NOT EXECUTED
1383f3: 8d 55 98 lea -0x68(%ebp),%edx <== NOT EXECUTED
1383f6: 7e 1a jle 138412 <rtems_rfs_inode_create+0x1f2><== NOT EXECUTED
{
rtems_rfs_inode_delete (fs, &inode);
1383f8: 51 push %ecx <== NOT EXECUTED
1383f9: 51 push %ecx <== NOT EXECUTED
1383fa: 52 push %edx <== NOT EXECUTED
1383fb: 53 push %ebx <== NOT EXECUTED
1383fc: 89 55 84 mov %edx,-0x7c(%ebp) <== NOT EXECUTED
1383ff: e8 75 fd ff ff call 138179 <rtems_rfs_inode_delete><== NOT EXECUTED
rtems_rfs_inode_close (fs, &inode);
138404: 5f pop %edi <== NOT EXECUTED
138405: 58 pop %eax <== NOT EXECUTED
138406: 8b 55 84 mov -0x7c(%ebp),%edx <== NOT EXECUTED
138409: 52 push %edx <== NOT EXECUTED
13840a: 53 push %ebx <== NOT EXECUTED
13840b: e8 5c fc ff ff call 13806c <rtems_rfs_inode_close> <== NOT EXECUTED
138410: eb 20 jmp 138432 <rtems_rfs_inode_create+0x212><== NOT EXECUTED
return rc;
}
rc = rtems_rfs_inode_close (fs, &inode);
138412: 51 push %ecx <== NOT EXECUTED
138413: 51 push %ecx <== NOT EXECUTED
138414: 52 push %edx <== NOT EXECUTED
138415: 53 push %ebx <== NOT EXECUTED
138416: e8 51 fc ff ff call 13806c <rtems_rfs_inode_close> <== NOT EXECUTED
13841b: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
13841d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
138420: 85 c0 test %eax,%eax <== NOT EXECUTED
138422: 7f 04 jg 138428 <rtems_rfs_inode_create+0x208><== NOT EXECUTED
138424: 31 f6 xor %esi,%esi <== NOT EXECUTED
138426: eb 0d jmp 138435 <rtems_rfs_inode_create+0x215><== NOT EXECUTED
{
rtems_rfs_inode_free (fs, *ino);
138428: 52 push %edx <== NOT EXECUTED
138429: 52 push %edx <== NOT EXECUTED
13842a: ff 37 pushl (%edi) <== NOT EXECUTED
13842c: 53 push %ebx <== NOT EXECUTED
13842d: e8 32 fd ff ff call 138164 <rtems_rfs_inode_free> <== NOT EXECUTED
return rc;
138432: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
return 0;
}
138435: 89 f0 mov %esi,%eax <== NOT EXECUTED
138437: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13843a: 5b pop %ebx <== NOT EXECUTED
13843b: 5e pop %esi <== NOT EXECUTED
13843c: 5f pop %edi <== NOT EXECUTED
13843d: c9 leave <== NOT EXECUTED
13843e: c3 ret <== NOT EXECUTED
00138179 <rtems_rfs_inode_delete>:
}
int
rtems_rfs_inode_delete (rtems_rfs_file_system* fs,
rtems_rfs_inode_handle* handle)
{
138179: 55 push %ebp <== NOT EXECUTED
13817a: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13817c: 57 push %edi <== NOT EXECUTED
13817d: 56 push %esi <== NOT EXECUTED
13817e: 53 push %ebx <== NOT EXECUTED
13817f: 83 ec 5c sub $0x5c,%esp <== NOT EXECUTED
138182: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
138185: 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))
138188: 31 c0 xor %eax,%eax <== NOT EXECUTED
13818a: 83 7b 0c 00 cmpl $0x0,0xc(%ebx) <== NOT EXECUTED
13818e: 74 67 je 1381f7 <rtems_rfs_inode_delete+0x7e><== NOT EXECUTED
rtems_rfs_block_map map;
/*
* Free the ino number.
*/
rc = rtems_rfs_inode_free (fs, handle->ino);
138190: 50 push %eax <== NOT EXECUTED
138191: 50 push %eax <== NOT EXECUTED
138192: ff 73 08 pushl 0x8(%ebx) <== NOT EXECUTED
138195: 56 push %esi <== NOT EXECUTED
138196: e8 c9 ff ff ff call 138164 <rtems_rfs_inode_free> <== NOT EXECUTED
if (rc > 0)
13819b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13819e: 85 c0 test %eax,%eax <== NOT EXECUTED
1381a0: 7f 55 jg 1381f7 <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);
1381a2: 57 push %edi <== NOT EXECUTED
1381a3: 8d 7d 98 lea -0x68(%ebp),%edi <== NOT EXECUTED
1381a6: 57 push %edi <== NOT EXECUTED
1381a7: 53 push %ebx <== NOT EXECUTED
1381a8: 56 push %esi <== NOT EXECUTED
1381a9: e8 bb ca ff ff call 134c69 <rtems_rfs_block_map_open><== NOT EXECUTED
if (rc == 0)
1381ae: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1381b1: 85 c0 test %eax,%eax <== NOT EXECUTED
1381b3: 75 42 jne 1381f7 <rtems_rfs_inode_delete+0x7e><== NOT EXECUTED
{
int rrc;
rrc = rtems_rfs_block_map_free_all (fs, &map);
1381b5: 51 push %ecx <== NOT EXECUTED
1381b6: 51 push %ecx <== NOT EXECUTED
1381b7: 57 push %edi <== NOT EXECUTED
1381b8: 56 push %esi <== NOT EXECUTED
1381b9: e8 78 c5 ff ff call 134736 <rtems_rfs_block_map_free_all><== NOT EXECUTED
rc = rtems_rfs_block_map_close (fs, &map);
1381be: 58 pop %eax <== NOT EXECUTED
1381bf: 5a pop %edx <== NOT EXECUTED
1381c0: 57 push %edi <== NOT EXECUTED
1381c1: 56 push %esi <== NOT EXECUTED
1381c2: e8 ff c8 ff ff call 134ac6 <rtems_rfs_block_map_close><== NOT EXECUTED
if (rc > 0)
rrc = rc;
memset (handle->node, 0xff, RTEMS_RFS_INODE_SIZE);
1381c7: 8b 53 0c mov 0xc(%ebx),%edx <== NOT EXECUTED
1381ca: b9 0e 00 00 00 mov $0xe,%ecx <== NOT EXECUTED
1381cf: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
1381d2: 89 d7 mov %edx,%edi <== NOT EXECUTED
1381d4: f3 ab rep stos %eax,%es:(%edi) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
1381d6: 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);
1381da: 5a pop %edx <== NOT EXECUTED
1381db: 59 pop %ecx <== NOT EXECUTED
1381dc: 8d 43 10 lea 0x10(%ebx),%eax <== NOT EXECUTED
1381df: 50 push %eax <== NOT EXECUTED
1381e0: 56 push %esi <== NOT EXECUTED
1381e1: e8 a1 cd ff ff call 134f87 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
handle->loads = 0;
1381e6: c7 43 24 00 00 00 00 movl $0x0,0x24(%ebx) <== NOT EXECUTED
handle->node = NULL;
1381ed: c7 43 0c 00 00 00 00 movl $0x0,0xc(%ebx) <== NOT EXECUTED
1381f4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
}
return rc;
}
1381f7: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1381fa: 5b pop %ebx <== NOT EXECUTED
1381fb: 5e pop %esi <== NOT EXECUTED
1381fc: 5f pop %edi <== NOT EXECUTED
1381fd: c9 leave <== NOT EXECUTED
1381fe: c3 ret <== NOT EXECUTED
00138164 <rtems_rfs_inode_free>:
}
int
rtems_rfs_inode_free (rtems_rfs_file_system* fs,
rtems_rfs_ino ino)
{
138164: 55 push %ebp <== NOT EXECUTED
138165: 89 e5 mov %esp,%ebp <== NOT EXECUTED
138167: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
rtems_rfs_bitmap_bit bit;
bit = ino;
return rtems_rfs_group_bitmap_free (fs, true, bit);
13816a: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
13816d: 6a 01 push $0x1 <== NOT EXECUTED
13816f: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
138172: e8 f7 f8 ff ff call 137a6e <rtems_rfs_group_bitmap_free><== NOT EXECUTED
}
138177: c9 leave <== NOT EXECUTED
138178: c3 ret <== NOT EXECUTED
00137da4 <rtems_rfs_inode_get_size>:
}
rtems_rfs_pos
rtems_rfs_inode_get_size (rtems_rfs_file_system* fs,
rtems_rfs_inode_handle* handle)
{
137da4: 55 push %ebp <== NOT EXECUTED
137da5: 89 e5 mov %esp,%ebp <== NOT EXECUTED
137da7: 53 push %ebx <== NOT EXECUTED
137da8: 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);
137dab: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
137dae: 8b 50 0c mov 0xc(%eax),%edx <== NOT EXECUTED
137db1: 8d 4a 0c lea 0xc(%edx),%ecx <== NOT EXECUTED
rtems_rfs_block_size size;
size.count = rtems_rfs_inode_get_block_count (handle);
137db4: 0f b6 41 03 movzbl 0x3(%ecx),%eax <== NOT EXECUTED
137db8: 0f b6 5a 0c movzbl 0xc(%edx),%ebx <== NOT EXECUTED
137dbc: c1 e3 18 shl $0x18,%ebx <== NOT EXECUTED
137dbf: 09 d8 or %ebx,%eax <== NOT EXECUTED
137dc1: 0f b6 59 01 movzbl 0x1(%ecx),%ebx <== NOT EXECUTED
137dc5: c1 e3 10 shl $0x10,%ebx <== NOT EXECUTED
137dc8: 09 d8 or %ebx,%eax <== NOT EXECUTED
137dca: 0f b6 49 02 movzbl 0x2(%ecx),%ecx <== NOT EXECUTED
137dce: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
137dd1: 09 c8 or %ecx,%eax <== NOT EXECUTED
137dd3: 89 45 f0 mov %eax,-0x10(%ebp) <== NOT EXECUTED
size.offset = rtems_rfs_inode_get_block_offset (handle);
137dd6: 0f b6 4a 0a movzbl 0xa(%edx),%ecx <== NOT EXECUTED
137dda: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
137ddd: 0f b6 42 0b movzbl 0xb(%edx),%eax <== NOT EXECUTED
137de1: 09 c8 or %ecx,%eax <== NOT EXECUTED
137de3: 0f b7 c0 movzwl %ax,%eax <== NOT EXECUTED
137de6: 89 45 f4 mov %eax,-0xc(%ebp) <== NOT EXECUTED
return rtems_rfs_block_get_size (fs, &size);
137de9: 8d 45 f0 lea -0x10(%ebp),%eax <== NOT EXECUTED
137dec: 50 push %eax <== NOT EXECUTED
137ded: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
137df0: e8 c9 c3 ff ff call 1341be <rtems_rfs_block_get_size><== NOT EXECUTED
}
137df5: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
137df8: c9 leave <== NOT EXECUTED
137df9: c3 ret <== NOT EXECUTED
00137ea0 <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)
{
137ea0: 55 push %ebp <== NOT EXECUTED
137ea1: 89 e5 mov %esp,%ebp <== NOT EXECUTED
137ea3: 57 push %edi <== NOT EXECUTED
137ea4: 56 push %esi <== NOT EXECUTED
137ea5: 53 push %ebx <== NOT EXECUTED
137ea6: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED
137ea9: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
137eac: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
137eaf: 8b 4d 10 mov 0x10(%ebp),%ecx <== NOT EXECUTED
137eb2: 8b 55 14 mov 0x14(%ebp),%edx <== NOT EXECUTED
137eb5: 66 89 55 e6 mov %dx,-0x1a(%ebp) <== NOT EXECUTED
137eb9: 8b 75 18 mov 0x18(%ebp),%esi <== NOT EXECUTED
137ebc: 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);
137ec0: 89 df mov %ebx,%edi <== NOT EXECUTED
137ec2: 66 c1 ef 08 shr $0x8,%di <== NOT EXECUTED
137ec6: 89 fa mov %edi,%edx <== NOT EXECUTED
137ec8: 8b 70 0c mov 0xc(%eax),%esi <== NOT EXECUTED
137ecb: 88 16 mov %dl,(%esi) <== NOT EXECUTED
137ecd: 8b 78 0c mov 0xc(%eax),%edi <== NOT EXECUTED
137ed0: 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);
137ed3: 8b 58 0c mov 0xc(%eax),%ebx <== NOT EXECUTED
137ed6: c6 43 08 00 movb $0x0,0x8(%ebx) <== NOT EXECUTED
137eda: 8b 58 0c mov 0xc(%eax),%ebx <== NOT EXECUTED
137edd: 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);
137ee1: 8b 58 0c mov 0xc(%eax),%ebx <== NOT EXECUTED
137ee4: 89 cf mov %ecx,%edi <== NOT EXECUTED
137ee6: 66 c1 ef 08 shr $0x8,%di <== NOT EXECUTED
137eea: 89 fa mov %edi,%edx <== NOT EXECUTED
137eec: 88 53 02 mov %dl,0x2(%ebx) <== NOT EXECUTED
137eef: 8b 58 0c mov 0xc(%eax),%ebx <== NOT EXECUTED
137ef2: 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);
137ef5: 8b 75 c8 mov -0x38(%ebp),%esi <== NOT EXECUTED
137ef8: c1 e6 10 shl $0x10,%esi <== NOT EXECUTED
137efb: 0f b7 4d e6 movzwl -0x1a(%ebp),%ecx <== NOT EXECUTED
137eff: 09 ce or %ecx,%esi <== NOT EXECUTED
137f01: 8b 48 0c mov 0xc(%eax),%ecx <== NOT EXECUTED
137f04: 89 f3 mov %esi,%ebx <== NOT EXECUTED
137f06: c1 eb 18 shr $0x18,%ebx <== NOT EXECUTED
137f09: 88 59 04 mov %bl,0x4(%ecx) <== NOT EXECUTED
137f0c: 8b 48 0c mov 0xc(%eax),%ecx <== NOT EXECUTED
137f0f: 89 f3 mov %esi,%ebx <== NOT EXECUTED
137f11: c1 eb 10 shr $0x10,%ebx <== NOT EXECUTED
137f14: 88 59 05 mov %bl,0x5(%ecx) <== NOT EXECUTED
137f17: 8b 48 0c mov 0xc(%eax),%ecx <== NOT EXECUTED
137f1a: c1 ee 08 shr $0x8,%esi <== NOT EXECUTED
137f1d: 89 f2 mov %esi,%edx <== NOT EXECUTED
137f1f: 88 51 06 mov %dl,0x6(%ecx) <== NOT EXECUTED
137f22: 8b 48 0c mov 0xc(%eax),%ecx <== NOT EXECUTED
137f25: 8a 55 e6 mov -0x1a(%ebp),%dl <== NOT EXECUTED
137f28: 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);
137f2b: 8b 50 0c mov 0xc(%eax),%edx <== NOT EXECUTED
137f2e: c6 42 0a 00 movb $0x0,0xa(%edx) <== NOT EXECUTED
137f32: 8b 50 0c mov 0xc(%eax),%edx <== NOT EXECUTED
137f35: 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);
137f39: 8b 50 0c mov 0xc(%eax),%edx <== NOT EXECUTED
137f3c: c6 42 0c 00 movb $0x0,0xc(%edx) <== NOT EXECUTED
137f40: 8b 50 0c mov 0xc(%eax),%edx <== NOT EXECUTED
137f43: c6 42 0d 00 movb $0x0,0xd(%edx) <== NOT EXECUTED
137f47: 8b 50 0c mov 0xc(%eax),%edx <== NOT EXECUTED
137f4a: c6 42 0e 00 movb $0x0,0xe(%edx) <== NOT EXECUTED
137f4e: 8b 50 0c mov 0xc(%eax),%edx <== NOT EXECUTED
137f51: c6 42 0f 00 movb $0x0,0xf(%edx) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
137f55: c6 40 10 01 movb $0x1,0x10(%eax) <== NOT EXECUTED
137f59: 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);
137f5b: 8b 48 0c mov 0xc(%eax),%ecx <== NOT EXECUTED
137f5e: c6 44 11 1c 00 movb $0x0,0x1c(%ecx,%edx,1) <== NOT EXECUTED
137f63: 8b 48 0c mov 0xc(%eax),%ecx <== NOT EXECUTED
137f66: c6 44 11 1d 00 movb $0x0,0x1d(%ecx,%edx,1) <== NOT EXECUTED
137f6b: 8b 48 0c mov 0xc(%eax),%ecx <== NOT EXECUTED
137f6e: c6 44 11 1e 00 movb $0x0,0x1e(%ecx,%edx,1) <== NOT EXECUTED
137f73: 8b 48 0c mov 0xc(%eax),%ecx <== NOT EXECUTED
137f76: c6 44 11 1f 00 movb $0x0,0x1f(%ecx,%edx,1) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
137f7b: c6 40 10 01 movb $0x1,0x10(%eax) <== NOT EXECUTED
137f7f: 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++)
137f82: 83 fa 14 cmp $0x14,%edx <== NOT EXECUTED
137f85: 75 d4 jne 137f5b <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);
137f87: 8b 50 0c mov 0xc(%eax),%edx <== NOT EXECUTED
137f8a: c6 42 30 00 movb $0x0,0x30(%edx) <== NOT EXECUTED
137f8e: 8b 50 0c mov 0xc(%eax),%edx <== NOT EXECUTED
137f91: c6 42 31 00 movb $0x0,0x31(%edx) <== NOT EXECUTED
137f95: 8b 50 0c mov 0xc(%eax),%edx <== NOT EXECUTED
137f98: c6 42 32 00 movb $0x0,0x32(%edx) <== NOT EXECUTED
137f9c: 8b 50 0c mov 0xc(%eax),%edx <== NOT EXECUTED
137f9f: 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);
137fa3: 8b 50 0c mov 0xc(%eax),%edx <== NOT EXECUTED
137fa6: c6 42 34 00 movb $0x0,0x34(%edx) <== NOT EXECUTED
137faa: 8b 50 0c mov 0xc(%eax),%edx <== NOT EXECUTED
137fad: c6 42 35 00 movb $0x0,0x35(%edx) <== NOT EXECUTED
137fb1: 8b 50 0c mov 0xc(%eax),%edx <== NOT EXECUTED
137fb4: c6 42 36 00 movb $0x0,0x36(%edx) <== NOT EXECUTED
137fb8: 8b 50 0c mov 0xc(%eax),%edx <== NOT EXECUTED
137fbb: c6 42 37 00 movb $0x0,0x37(%edx) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
137fbf: 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);
137fc3: c7 45 10 01 00 00 00 movl $0x1,0x10(%ebp) <== NOT EXECUTED
137fca: c7 45 0c 01 00 00 00 movl $0x1,0xc(%ebp) <== NOT EXECUTED
137fd1: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED
}
137fd4: 83 c4 2c add $0x2c,%esp <== NOT EXECUTED
137fd7: 5b pop %ebx <== NOT EXECUTED
137fd8: 5e pop %esi <== NOT EXECUTED
137fd9: 5f pop %edi <== NOT EXECUTED
137fda: 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);
137fdb: e9 1a fe ff ff jmp 137dfa <rtems_rfs_inode_time_stamp_now><== NOT EXECUTED
0013809c <rtems_rfs_inode_load>:
int
rtems_rfs_inode_load (rtems_rfs_file_system* fs,
rtems_rfs_inode_handle* handle)
{
13809c: 55 push %ebp <== NOT EXECUTED
13809d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13809f: 53 push %ebx <== NOT EXECUTED
1380a0: 83 ec 04 sub $0x4,%esp <== NOT EXECUTED
1380a3: 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))
1380a6: 83 7b 0c 00 cmpl $0x0,0xc(%ebx) <== NOT EXECUTED
1380aa: 75 25 jne 1380d1 <rtems_rfs_inode_load+0x35><== NOT EXECUTED
{
int rc;
rc = rtems_rfs_buffer_handle_request (fs,&handle->buffer,
1380ac: 6a 01 push $0x1 <== NOT EXECUTED
1380ae: ff 73 1c pushl 0x1c(%ebx) <== NOT EXECUTED
1380b1: 8d 43 10 lea 0x10(%ebx),%eax <== NOT EXECUTED
1380b4: 50 push %eax <== NOT EXECUTED
1380b5: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
1380b8: e8 c1 cf ff ff call 13507e <rtems_rfs_buffer_handle_request><== NOT EXECUTED
handle->block, true);
if (rc > 0)
1380bd: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1380c0: 85 c0 test %eax,%eax <== NOT EXECUTED
1380c2: 7f 12 jg 1380d6 <rtems_rfs_inode_load+0x3a><== NOT EXECUTED
return rc;
handle->node = rtems_rfs_buffer_data (&handle->buffer);
1380c4: 8b 53 18 mov 0x18(%ebx),%edx <== NOT EXECUTED
handle->node += handle->offset;
1380c7: 6b 43 20 38 imul $0x38,0x20(%ebx),%eax <== NOT EXECUTED
1380cb: 03 42 20 add 0x20(%edx),%eax <== NOT EXECUTED
1380ce: 89 43 0c mov %eax,0xc(%ebx) <== NOT EXECUTED
}
handle->loads++;
1380d1: ff 43 24 incl 0x24(%ebx) <== NOT EXECUTED
1380d4: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
}
1380d6: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
1380d9: c9 leave <== NOT EXECUTED
1380da: c3 ret <== NOT EXECUTED
001380db <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)
{
1380db: 55 push %ebp <== NOT EXECUTED
1380dc: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1380de: 56 push %esi <== NOT EXECUTED
1380df: 53 push %ebx <== NOT EXECUTED
1380e0: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED
1380e3: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
1380e6: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
1380e9: 8b 4d 10 mov 0x10(%ebp),%ecx <== NOT EXECUTED
1380ec: 8a 45 14 mov 0x14(%ebp),%al <== NOT EXECUTED
1380ef: 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)
1380f2: 85 d2 test %edx,%edx <== NOT EXECUTED
1380f4: 74 62 je 138158 <rtems_rfs_inode_open+0x7d><== NOT EXECUTED
return EINVAL;
if ((ino - RTEMS_RFS_ROOT_INO) > rtems_rfs_fs_inodes (fs))
1380f6: 8d 42 ff lea -0x1(%edx),%eax <== NOT EXECUTED
1380f9: 3b 43 10 cmp 0x10(%ebx),%eax <== NOT EXECUTED
1380fc: 77 5a ja 138158 <rtems_rfs_inode_open+0x7d><== NOT EXECUTED
return EINVAL;
handle->ino = ino;
1380fe: 89 51 08 mov %edx,0x8(%ecx) <== NOT EXECUTED
handle->node = NULL;
138101: c7 41 0c 00 00 00 00 movl $0x0,0xc(%ecx) <== NOT EXECUTED
handle->loads = 0;
138108: 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;
13810f: 31 d2 xor %edx,%edx <== NOT EXECUTED
138111: f7 73 28 divl 0x28(%ebx) <== NOT EXECUTED
138114: 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;
138116: 89 d0 mov %edx,%eax <== NOT EXECUTED
138118: 31 d2 xor %edx,%edx <== NOT EXECUTED
13811a: f7 73 2c divl 0x2c(%ebx) <== NOT EXECUTED
13811d: 89 51 20 mov %edx,0x20(%ecx) <== NOT EXECUTED
handle->block = rtems_rfs_group_block (&fs->groups[group], index);
138120: 8b 53 1c mov 0x1c(%ebx),%edx <== NOT EXECUTED
138123: 6b f6 50 imul $0x50,%esi,%esi <== NOT EXECUTED
138126: 8b 14 16 mov (%esi,%edx,1),%edx <== NOT EXECUTED
138129: 8d 44 10 02 lea 0x2(%eax,%edx,1),%eax <== NOT EXECUTED
13812d: 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;
138130: c6 41 10 00 movb $0x0,0x10(%ecx) <== NOT EXECUTED
handle->bnum = 0;
138134: c7 41 14 00 00 00 00 movl $0x0,0x14(%ecx) <== NOT EXECUTED
handle->buffer = NULL;
13813b: 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)
138142: 31 c0 xor %eax,%eax <== NOT EXECUTED
138144: 80 7d f7 00 cmpb $0x0,-0x9(%ebp) <== NOT EXECUTED
138148: 74 13 je 13815d <rtems_rfs_inode_open+0x82><== NOT EXECUTED
rc = rtems_rfs_inode_load (fs, handle);
13814a: 89 4d 0c mov %ecx,0xc(%ebp) <== NOT EXECUTED
return rc;
}
13814d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
138150: 5b pop %ebx <== NOT EXECUTED
138151: 5e pop %esi <== NOT EXECUTED
138152: 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);
138153: e9 44 ff ff ff jmp 13809c <rtems_rfs_inode_load> <== NOT EXECUTED
138158: b8 16 00 00 00 mov $0x16,%eax <== NOT EXECUTED
return rc;
}
13815d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
138160: 5b pop %ebx <== NOT EXECUTED
138161: 5e pop %esi <== NOT EXECUTED
138162: c9 leave <== NOT EXECUTED
138163: c3 ret <== NOT EXECUTED
00136cc4 <rtems_rfs_inode_overhead>:
/**
* Return the inode overhead given a number of inodes.
*/
static int
rtems_rfs_inode_overhead (rtems_rfs_file_system* fs)
{
136cc4: 55 push %ebp <== NOT EXECUTED
136cc5: 89 e5 mov %esp,%ebp <== NOT EXECUTED
136cc7: 53 push %ebx <== NOT EXECUTED
136cc8: 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,
136cca: 8b 58 08 mov 0x8(%eax),%ebx <== NOT EXECUTED
136ccd: 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)
136cd1: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
136cd6: 85 d2 test %edx,%edx <== NOT EXECUTED
136cd8: 74 08 je 136ce2 <rtems_rfs_inode_overhead+0x1e><== NOT EXECUTED
return 1;
return ((dividend - 1) / divisor) + 1;
136cda: 8d 42 ff lea -0x1(%edx),%eax <== NOT EXECUTED
136cdd: 31 d2 xor %edx,%edx <== NOT EXECUTED
136cdf: f7 f3 div %ebx <== NOT EXECUTED
136ce1: 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));
136ce2: 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))
136ce5: 8b 49 04 mov 0x4(%ecx),%ecx <== NOT EXECUTED
bits_per_block = rtems_rfs_fs_blocks (fs) - RTEMS_RFS_SUPERBLOCK_SIZE;
136ce8: 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))
136ce9: 39 cb cmp %ecx,%ebx <== NOT EXECUTED
136ceb: 77 02 ja 136cef <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));
136ced: 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;
136cef: 40 inc %eax <== NOT EXECUTED
136cf0: 69 c0 e8 03 00 00 imul $0x3e8,%eax,%eax <== NOT EXECUTED
136cf6: 99 cltd <== NOT EXECUTED
136cf7: f7 f9 idiv %ecx <== NOT EXECUTED
return ((blocks + 1) * 100 * 10) / bits_per_block;
}
136cf9: 5b pop %ebx <== NOT EXECUTED
136cfa: c9 leave <== NOT EXECUTED
136cfb: c3 ret <== NOT EXECUTED
00137dfa <rtems_rfs_inode_time_stamp_now>:
int
rtems_rfs_inode_time_stamp_now (rtems_rfs_inode_handle* handle,
bool atime,
bool mtime)
{
137dfa: 55 push %ebp <== NOT EXECUTED
137dfb: 89 e5 mov %esp,%ebp <== NOT EXECUTED
137dfd: 57 push %edi <== NOT EXECUTED
137dfe: 56 push %esi <== NOT EXECUTED
137dff: 53 push %ebx <== NOT EXECUTED
137e00: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
137e03: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
137e06: 8a 4d 0c mov 0xc(%ebp),%cl <== NOT EXECUTED
137e09: 8a 55 10 mov 0x10(%ebp),%dl <== NOT EXECUTED
time_t now;
if (!rtems_rfs_inode_is_loaded (handle))
137e0c: be 06 00 00 00 mov $0x6,%esi <== NOT EXECUTED
137e11: 83 7b 0c 00 cmpl $0x0,0xc(%ebx) <== NOT EXECUTED
137e15: 74 7f je 137e96 <rtems_rfs_inode_time_stamp_now+0x9c><== NOT EXECUTED
return ENXIO;
now = time (NULL);
137e17: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
137e1a: 6a 00 push $0x0 <== NOT EXECUTED
137e1c: 88 55 e0 mov %dl,-0x20(%ebp) <== NOT EXECUTED
137e1f: 88 4d e4 mov %cl,-0x1c(%ebp) <== NOT EXECUTED
137e22: e8 09 fc 00 00 call 147a30 <time> <== NOT EXECUTED
if (atime)
137e27: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
137e2a: 8a 4d e4 mov -0x1c(%ebp),%cl <== NOT EXECUTED
137e2d: 84 c9 test %cl,%cl <== NOT EXECUTED
137e2f: 8a 55 e0 mov -0x20(%ebp),%dl <== NOT EXECUTED
137e32: 74 31 je 137e65 <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);
137e34: 8b 7b 0c mov 0xc(%ebx),%edi <== NOT EXECUTED
137e37: 89 c6 mov %eax,%esi <== NOT EXECUTED
137e39: c1 ee 18 shr $0x18,%esi <== NOT EXECUTED
137e3c: 89 f1 mov %esi,%ecx <== NOT EXECUTED
137e3e: 88 4f 10 mov %cl,0x10(%edi) <== NOT EXECUTED
137e41: 8b 7b 0c mov 0xc(%ebx),%edi <== NOT EXECUTED
137e44: 89 c6 mov %eax,%esi <== NOT EXECUTED
137e46: c1 ee 10 shr $0x10,%esi <== NOT EXECUTED
137e49: 89 f1 mov %esi,%ecx <== NOT EXECUTED
137e4b: 88 4f 11 mov %cl,0x11(%edi) <== NOT EXECUTED
137e4e: 8b 7b 0c mov 0xc(%ebx),%edi <== NOT EXECUTED
137e51: 89 c6 mov %eax,%esi <== NOT EXECUTED
137e53: c1 ee 08 shr $0x8,%esi <== NOT EXECUTED
137e56: 89 f1 mov %esi,%ecx <== NOT EXECUTED
137e58: 88 4f 12 mov %cl,0x12(%edi) <== NOT EXECUTED
137e5b: 8b 4b 0c mov 0xc(%ebx),%ecx <== NOT EXECUTED
137e5e: 88 41 13 mov %al,0x13(%ecx) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
137e61: c6 43 10 01 movb $0x1,0x10(%ebx) <== NOT EXECUTED
rtems_rfs_inode_set_atime (handle, now);
if (mtime)
137e65: 31 f6 xor %esi,%esi <== NOT EXECUTED
137e67: 84 d2 test %dl,%dl <== NOT EXECUTED
137e69: 74 2b je 137e96 <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);
137e6b: 8b 53 0c mov 0xc(%ebx),%edx <== NOT EXECUTED
137e6e: 89 c1 mov %eax,%ecx <== NOT EXECUTED
137e70: c1 e9 18 shr $0x18,%ecx <== NOT EXECUTED
137e73: 88 4a 14 mov %cl,0x14(%edx) <== NOT EXECUTED
137e76: 8b 53 0c mov 0xc(%ebx),%edx <== NOT EXECUTED
137e79: 89 c1 mov %eax,%ecx <== NOT EXECUTED
137e7b: c1 e9 10 shr $0x10,%ecx <== NOT EXECUTED
137e7e: 88 4a 15 mov %cl,0x15(%edx) <== NOT EXECUTED
137e81: 8b 53 0c mov 0xc(%ebx),%edx <== NOT EXECUTED
137e84: 89 c1 mov %eax,%ecx <== NOT EXECUTED
137e86: c1 e9 08 shr $0x8,%ecx <== NOT EXECUTED
137e89: 88 4a 16 mov %cl,0x16(%edx) <== NOT EXECUTED
137e8c: 8b 53 0c mov 0xc(%ebx),%edx <== NOT EXECUTED
137e8f: 88 42 17 mov %al,0x17(%edx) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
137e92: c6 43 10 01 movb $0x1,0x10(%ebx) <== NOT EXECUTED
rtems_rfs_inode_set_mtime (handle, now);
return 0;
}
137e96: 89 f0 mov %esi,%eax <== NOT EXECUTED
137e98: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
137e9b: 5b pop %ebx <== NOT EXECUTED
137e9c: 5e pop %esi <== NOT EXECUTED
137e9d: 5f pop %edi <== NOT EXECUTED
137e9e: c9 leave <== NOT EXECUTED
137e9f: c3 ret <== NOT EXECUTED
00137fe0 <rtems_rfs_inode_unload>:
int
rtems_rfs_inode_unload (rtems_rfs_file_system* fs,
rtems_rfs_inode_handle* handle,
bool update_ctime)
{
137fe0: 55 push %ebp <== NOT EXECUTED
137fe1: 89 e5 mov %esp,%ebp <== NOT EXECUTED
137fe3: 53 push %ebx <== NOT EXECUTED
137fe4: 83 ec 04 sub $0x4,%esp <== NOT EXECUTED
137fe7: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
137fea: 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))
137fed: 83 7b 0c 00 cmpl $0x0,0xc(%ebx) <== NOT EXECUTED
137ff1: 74 72 je 138065 <rtems_rfs_inode_unload+0x85><== NOT EXECUTED
{
if (handle->loads == 0)
137ff3: 8b 53 24 mov 0x24(%ebx),%edx <== NOT EXECUTED
137ff6: b8 05 00 00 00 mov $0x5,%eax <== NOT EXECUTED
137ffb: 85 d2 test %edx,%edx <== NOT EXECUTED
137ffd: 74 68 je 138067 <rtems_rfs_inode_unload+0x87><== NOT EXECUTED
return EIO;
handle->loads--;
137fff: 8d 42 ff lea -0x1(%edx),%eax <== NOT EXECUTED
138002: 89 43 24 mov %eax,0x24(%ebx) <== NOT EXECUTED
if (handle->loads == 0)
138005: 85 c0 test %eax,%eax <== NOT EXECUTED
138007: 75 5c jne 138065 <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)
138009: 80 7b 10 00 cmpb $0x0,0x10(%ebx) <== NOT EXECUTED
13800d: 74 3c je 13804b <rtems_rfs_inode_unload+0x6b><== NOT EXECUTED
13800f: 84 c9 test %cl,%cl <== NOT EXECUTED
138011: 74 38 je 13804b <rtems_rfs_inode_unload+0x6b><== NOT EXECUTED
rtems_rfs_inode_set_ctime (handle, time (NULL));
138013: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
138016: 6a 00 push $0x0 <== NOT EXECUTED
138018: e8 13 fa 00 00 call 147a30 <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);
13801d: 8b 53 0c mov 0xc(%ebx),%edx <== NOT EXECUTED
138020: 89 c1 mov %eax,%ecx <== NOT EXECUTED
138022: c1 e9 18 shr $0x18,%ecx <== NOT EXECUTED
138025: 88 4a 18 mov %cl,0x18(%edx) <== NOT EXECUTED
138028: 8b 53 0c mov 0xc(%ebx),%edx <== NOT EXECUTED
13802b: 89 c1 mov %eax,%ecx <== NOT EXECUTED
13802d: c1 e9 10 shr $0x10,%ecx <== NOT EXECUTED
138030: 88 4a 19 mov %cl,0x19(%edx) <== NOT EXECUTED
138033: 8b 53 0c mov 0xc(%ebx),%edx <== NOT EXECUTED
138036: 89 c1 mov %eax,%ecx <== NOT EXECUTED
138038: c1 e9 08 shr $0x8,%ecx <== NOT EXECUTED
13803b: 88 4a 1a mov %cl,0x1a(%edx) <== NOT EXECUTED
13803e: 8b 53 0c mov 0xc(%ebx),%edx <== NOT EXECUTED
138041: 88 42 1b mov %al,0x1b(%edx) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
138044: c6 43 10 01 movb $0x1,0x10(%ebx) <== NOT EXECUTED
138048: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rc = rtems_rfs_buffer_handle_release (fs, &handle->buffer);
13804b: 50 push %eax <== NOT EXECUTED
13804c: 50 push %eax <== NOT EXECUTED
13804d: 8d 43 10 lea 0x10(%ebx),%eax <== NOT EXECUTED
138050: 50 push %eax <== NOT EXECUTED
138051: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
138054: e8 2e cf ff ff call 134f87 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
handle->node = NULL;
138059: c7 43 0c 00 00 00 00 movl $0x0,0xc(%ebx) <== NOT EXECUTED
138060: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
138063: eb 02 jmp 138067 <rtems_rfs_inode_unload+0x87><== NOT EXECUTED
138065: 31 c0 xor %eax,%eax <== NOT EXECUTED
}
}
return rc;
}
138067: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
13806a: c9 leave <== NOT EXECUTED
13806b: c3 ret <== NOT EXECUTED
00138967 <rtems_rfs_link>:
const char* name,
int length,
rtems_rfs_ino parent,
rtems_rfs_ino target,
bool link_dir)
{
138967: 55 push %ebp <== NOT EXECUTED
138968: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13896a: 57 push %edi <== NOT EXECUTED
13896b: 56 push %esi <== NOT EXECUTED
13896c: 53 push %ebx <== NOT EXECUTED
13896d: 83 ec 6c sub $0x6c,%esp <== NOT EXECUTED
138970: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
138973: 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);
138976: 6a 01 push $0x1 <== NOT EXECUTED
138978: 8d 7d 98 lea -0x68(%ebp),%edi <== NOT EXECUTED
13897b: 57 push %edi <== NOT EXECUTED
13897c: ff 75 18 pushl 0x18(%ebp) <== NOT EXECUTED
13897f: 56 push %esi <== NOT EXECUTED
138980: 88 55 94 mov %dl,-0x6c(%ebp) <== NOT EXECUTED
138983: e8 53 f7 ff ff call 1380db <rtems_rfs_inode_open> <== NOT EXECUTED
138988: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc)
13898a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13898d: 85 c0 test %eax,%eax <== NOT EXECUTED
13898f: 8a 55 94 mov -0x6c(%ebp),%dl <== NOT EXECUTED
138992: 0f 85 e3 00 00 00 jne 138a7b <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)))
138998: 84 d2 test %dl,%dl <== NOT EXECUTED
13899a: 75 26 jne 1389c2 <rtems_rfs_link+0x5b> <== NOT EXECUTED
13899c: 8b 45 a4 mov -0x5c(%ebp),%eax <== NOT EXECUTED
13899f: 0f b6 40 02 movzbl 0x2(%eax),%eax <== NOT EXECUTED
1389a3: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
1389a6: 25 00 f0 00 00 and $0xf000,%eax <== NOT EXECUTED
1389ab: 3d 00 40 00 00 cmp $0x4000,%eax <== NOT EXECUTED
1389b0: 75 10 jne 1389c2 <rtems_rfs_link+0x5b> <== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &target_inode);
1389b2: 50 push %eax <== NOT EXECUTED
1389b3: 50 push %eax <== NOT EXECUTED
1389b4: 57 push %edi <== NOT EXECUTED
1389b5: 56 push %esi <== NOT EXECUTED
1389b6: e8 b1 f6 ff ff call 13806c <rtems_rfs_inode_close> <== NOT EXECUTED
1389bb: b3 86 mov $0x86,%bl <== NOT EXECUTED
1389bd: e9 b6 00 00 00 jmp 138a78 <rtems_rfs_link+0x111> <== NOT EXECUTED
return ENOTSUP;
}
rc = rtems_rfs_inode_open (fs, parent, &parent_inode, true);
1389c2: 6a 01 push $0x1 <== NOT EXECUTED
1389c4: 8d 7d c0 lea -0x40(%ebp),%edi <== NOT EXECUTED
1389c7: 57 push %edi <== NOT EXECUTED
1389c8: ff 75 14 pushl 0x14(%ebp) <== NOT EXECUTED
1389cb: 56 push %esi <== NOT EXECUTED
1389cc: e8 0a f7 ff ff call 1380db <rtems_rfs_inode_open> <== NOT EXECUTED
1389d1: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc)
1389d3: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1389d6: 85 c0 test %eax,%eax <== NOT EXECUTED
1389d8: 74 04 je 1389de <rtems_rfs_link+0x77> <== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &target_inode);
1389da: 51 push %ecx <== NOT EXECUTED
1389db: 51 push %ecx <== NOT EXECUTED
1389dc: eb 6a jmp 138a48 <rtems_rfs_link+0xe1> <== NOT EXECUTED
return rc;
}
rc = rtems_rfs_dir_add_entry (fs, &parent_inode, name, length, target);
1389de: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1389e1: ff 75 18 pushl 0x18(%ebp) <== NOT EXECUTED
1389e4: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
1389e7: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
1389ea: 57 push %edi <== NOT EXECUTED
1389eb: 56 push %esi <== NOT EXECUTED
1389ec: e8 03 cf ff ff call 1358f4 <rtems_rfs_dir_add_entry><== NOT EXECUTED
1389f1: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc > 0)
1389f3: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
1389f6: 85 c0 test %eax,%eax <== NOT EXECUTED
1389f8: 7f 43 jg 138a3d <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);
1389fa: 8b 55 a4 mov -0x5c(%ebp),%edx <== NOT EXECUTED
1389fd: 0f b6 0a movzbl (%edx),%ecx <== NOT EXECUTED
138a00: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
138a03: 0f b6 42 01 movzbl 0x1(%edx),%eax <== NOT EXECUTED
138a07: 09 c8 or %ecx,%eax <== NOT EXECUTED
if (links == 0xffff)
138a09: 31 c9 xor %ecx,%ecx <== NOT EXECUTED
138a0b: 66 83 f8 ff cmp $0xffffffff,%ax <== NOT EXECUTED
138a0f: 0f 95 c1 setne %cl <== NOT EXECUTED
138a12: f7 d9 neg %ecx <== NOT EXECUTED
138a14: 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;
138a16: 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);
138a17: 89 c1 mov %eax,%ecx <== NOT EXECUTED
138a19: 66 c1 e9 08 shr $0x8,%cx <== NOT EXECUTED
138a1d: 88 0a mov %cl,(%edx) <== NOT EXECUTED
138a1f: 8b 55 a4 mov -0x5c(%ebp),%edx <== NOT EXECUTED
138a22: 88 42 01 mov %al,0x1(%edx) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
138a25: 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);
138a29: 52 push %edx <== NOT EXECUTED
138a2a: 6a 01 push $0x1 <== NOT EXECUTED
138a2c: 6a 01 push $0x1 <== NOT EXECUTED
138a2e: 57 push %edi <== NOT EXECUTED
138a2f: e8 c6 f3 ff ff call 137dfa <rtems_rfs_inode_time_stamp_now><== NOT EXECUTED
138a34: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc > 0)
138a36: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
138a39: 85 c0 test %eax,%eax <== NOT EXECUTED
138a3b: 7e 10 jle 138a4d <rtems_rfs_link+0xe6> <== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &parent_inode);
138a3d: 50 push %eax <== NOT EXECUTED
138a3e: 50 push %eax <== NOT EXECUTED
138a3f: 57 push %edi <== NOT EXECUTED
138a40: 56 push %esi <== NOT EXECUTED
138a41: e8 26 f6 ff ff call 13806c <rtems_rfs_inode_close> <== NOT EXECUTED
rtems_rfs_inode_close (fs, &target_inode);
138a46: 5a pop %edx <== NOT EXECUTED
138a47: 59 pop %ecx <== NOT EXECUTED
138a48: 8d 45 98 lea -0x68(%ebp),%eax <== NOT EXECUTED
138a4b: eb 17 jmp 138a64 <rtems_rfs_link+0xfd> <== NOT EXECUTED
return rc;
}
rc = rtems_rfs_inode_close (fs, &parent_inode);
138a4d: 50 push %eax <== NOT EXECUTED
138a4e: 50 push %eax <== NOT EXECUTED
138a4f: 57 push %edi <== NOT EXECUTED
138a50: 56 push %esi <== NOT EXECUTED
138a51: e8 16 f6 ff ff call 13806c <rtems_rfs_inode_close> <== NOT EXECUTED
138a56: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc > 0)
138a58: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
138a5b: 85 c0 test %eax,%eax <== NOT EXECUTED
138a5d: 8d 45 98 lea -0x68(%ebp),%eax <== NOT EXECUTED
138a60: 7e 0b jle 138a6d <rtems_rfs_link+0x106> <== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &target_inode);
138a62: 57 push %edi <== NOT EXECUTED
138a63: 57 push %edi <== NOT EXECUTED
138a64: 50 push %eax <== NOT EXECUTED
138a65: 56 push %esi <== NOT EXECUTED
138a66: e8 01 f6 ff ff call 13806c <rtems_rfs_inode_close> <== NOT EXECUTED
138a6b: eb 0b jmp 138a78 <rtems_rfs_link+0x111> <== NOT EXECUTED
return rc;
}
rc = rtems_rfs_inode_close (fs, &target_inode);
138a6d: 53 push %ebx <== NOT EXECUTED
138a6e: 53 push %ebx <== NOT EXECUTED
138a6f: 50 push %eax <== NOT EXECUTED
138a70: 56 push %esi <== NOT EXECUTED
138a71: e8 f6 f5 ff ff call 13806c <rtems_rfs_inode_close> <== NOT EXECUTED
138a76: 89 c3 mov %eax,%ebx <== NOT EXECUTED
return rc;
138a78: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
138a7b: 89 d8 mov %ebx,%eax <== NOT EXECUTED
138a7d: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
138a80: 5b pop %ebx <== NOT EXECUTED
138a81: 5e pop %esi <== NOT EXECUTED
138a82: 5f pop %edi <== NOT EXECUTED
138a83: c9 leave <== NOT EXECUTED
138a84: c3 ret <== NOT EXECUTED
00138aa7 <rtems_rfs_mutex_create>:
RTEMS_NO_INHERIT_PRIORITY | RTEMS_NO_PRIORITY_CEILING | RTEMS_LOCAL)
#endif
int
rtems_rfs_mutex_create (rtems_rfs_mutex* mutex)
{
138aa7: 55 push %ebp <== NOT EXECUTED
138aa8: 89 e5 mov %esp,%ebp <== NOT EXECUTED
138aaa: 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'),
138aad: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
138ab0: 6a 00 push $0x0 <== NOT EXECUTED
138ab2: 6a 24 push $0x24 <== NOT EXECUTED
138ab4: 6a 01 push $0x1 <== NOT EXECUTED
138ab6: 68 6d 53 46 52 push $0x5246536d <== NOT EXECUTED
138abb: e8 c8 7e fd ff call 110988 <rtems_semaphore_create><== NOT EXECUTED
1, RTEMS_RFS_MUTEX_ATTRIBS, 0,
mutex);
if (sc != RTEMS_SUCCESSFUL)
138ac0: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
138ac3: 83 f8 01 cmp $0x1,%eax <== NOT EXECUTED
138ac6: 19 c0 sbb %eax,%eax <== NOT EXECUTED
138ac8: f7 d0 not %eax <== NOT EXECUTED
138aca: 83 e0 05 and $0x5,%eax <== NOT EXECUTED
rtems_status_text (sc));
return EIO;
}
#endif
return 0;
}
138acd: c9 leave <== NOT EXECUTED
138ace: c3 ret <== NOT EXECUTED
00138a88 <rtems_rfs_mutex_destroy>:
return 0;
}
int
rtems_rfs_mutex_destroy (rtems_rfs_mutex* mutex)
{
138a88: 55 push %ebp <== NOT EXECUTED
138a89: 89 e5 mov %esp,%ebp <== NOT EXECUTED
138a8b: 83 ec 14 sub $0x14,%esp <== NOT EXECUTED
#if __rtems__
rtems_status_code sc;
sc = rtems_semaphore_delete (*mutex);
138a8e: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
138a91: ff 30 pushl (%eax) <== NOT EXECUTED
138a93: e8 8c 80 fd ff call 110b24 <rtems_semaphore_delete><== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
138a98: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
138a9b: 83 f8 01 cmp $0x1,%eax <== NOT EXECUTED
138a9e: 19 c0 sbb %eax,%eax <== NOT EXECUTED
138aa0: f7 d0 not %eax <== NOT EXECUTED
138aa2: 83 e0 05 and $0x5,%eax <== NOT EXECUTED
rtems_status_text (sc));
return EIO;
}
#endif
return 0;
}
138aa5: c9 leave <== NOT EXECUTED
138aa6: c3 ret <== NOT EXECUTED
00134e04 <rtems_rfs_release_chain>:
static int
rtems_rfs_release_chain (rtems_chain_control* chain,
uint32_t* count,
bool modified)
{
134e04: 55 push %ebp <== NOT EXECUTED
134e05: 89 e5 mov %esp,%ebp <== NOT EXECUTED
134e07: 57 push %edi <== NOT EXECUTED
134e08: 56 push %esi <== NOT EXECUTED
134e09: 53 push %ebx <== NOT EXECUTED
134e0a: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
134e0d: 89 c3 mov %eax,%ebx <== NOT EXECUTED
134e0f: 89 d6 mov %edx,%esi <== NOT EXECUTED
134e11: 8d 50 04 lea 0x4(%eax),%edx <== NOT EXECUTED
134e14: 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);
134e16: 0f b6 c9 movzbl %cl,%ecx <== NOT EXECUTED
134e19: 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))
134e1c: eb 30 jmp 134e4e <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 );
134e1e: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
134e21: 53 push %ebx <== NOT EXECUTED
134e22: 89 55 e0 mov %edx,-0x20(%ebp) <== NOT EXECUTED
134e25: e8 36 c8 fd ff call 111660 <_Chain_Get> <== NOT EXECUTED
{
buffer = (rtems_rfs_buffer*) rtems_chain_get (chain);
(*count)--;
134e2a: ff 0e decl (%esi) <== NOT EXECUTED
buffer->user = (void*) 0;
134e2c: c7 40 38 00 00 00 00 movl $0x0,0x38(%eax) <== NOT EXECUTED
rc = rtems_rfs_buffer_io_release (buffer, modified);
134e33: 5a pop %edx <== NOT EXECUTED
134e34: 59 pop %ecx <== NOT EXECUTED
134e35: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
134e38: 50 push %eax <== NOT EXECUTED
134e39: e8 22 78 00 00 call 13c660 <rtems_rfs_buffer_bdbuf_release><== NOT EXECUTED
if ((rc > 0) && (rrc == 0))
134e3e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
134e41: 85 c0 test %eax,%eax <== NOT EXECUTED
134e43: 8b 55 e0 mov -0x20(%ebp),%edx <== NOT EXECUTED
134e46: 7e 06 jle 134e4e <rtems_rfs_release_chain+0x4a><== NOT EXECUTED
134e48: 85 ff test %edi,%edi <== NOT EXECUTED
134e4a: 75 02 jne 134e4e <rtems_rfs_release_chain+0x4a><== NOT EXECUTED
134e4c: 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))
134e4e: 39 13 cmp %edx,(%ebx) <== NOT EXECUTED
134e50: 75 cc jne 134e1e <rtems_rfs_release_chain+0x1a><== NOT EXECUTED
rc = rtems_rfs_buffer_io_release (buffer, modified);
if ((rc > 0) && (rrc == 0))
rrc = rc;
}
return rrc;
}
134e52: 89 f8 mov %edi,%eax <== NOT EXECUTED
134e54: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
134e57: 5b pop %ebx <== NOT EXECUTED
134e58: 5e pop %esi <== NOT EXECUTED
134e59: 5f pop %edi <== NOT EXECUTED
134e5a: c9 leave <== NOT EXECUTED
134e5b: c3 ret <== NOT EXECUTED
00121713 <rtems_rfs_rtems_chown>:
static int
rtems_rfs_rtems_chown (rtems_filesystem_location_info_t *pathloc,
uid_t owner,
gid_t group)
{
121713: 55 push %ebp <== NOT EXECUTED
121714: 89 e5 mov %esp,%ebp <== NOT EXECUTED
121716: 57 push %edi <== NOT EXECUTED
121717: 56 push %esi <== NOT EXECUTED
121718: 53 push %ebx <== NOT EXECUTED
121719: 83 ec 5c sub $0x5c,%esp <== NOT EXECUTED
12171c: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
12171f: 8b 7d 0c mov 0xc(%ebp),%edi <== NOT EXECUTED
121722: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
121725: 66 89 55 a8 mov %dx,-0x58(%ebp) <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
121729: 8b 50 10 mov 0x10(%eax),%edx <== NOT EXECUTED
12172c: 8b 5a 34 mov 0x34(%edx),%ebx <== NOT EXECUTED
rtems_rfs_ino ino = rtems_rfs_rtems_get_pathloc_ino (pathloc);
12172f: 8b 10 mov (%eax),%edx <== 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);
121731: 89 d8 mov %ebx,%eax <== NOT EXECUTED
121733: 89 55 a4 mov %edx,-0x5c(%ebp) <== NOT EXECUTED
121736: e8 9f ff ff ff call 1216da <rtems_rfs_rtems_lock> <== NOT EXECUTED
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
12173b: 6a 01 push $0x1 <== NOT EXECUTED
12173d: 8d 75 c0 lea -0x40(%ebp),%esi <== NOT EXECUTED
121740: 56 push %esi <== NOT EXECUTED
121741: 8b 55 a4 mov -0x5c(%ebp),%edx <== NOT EXECUTED
121744: 52 push %edx <== NOT EXECUTED
121745: 53 push %ebx <== NOT EXECUTED
121746: e8 90 69 01 00 call 1380db <rtems_rfs_inode_open> <== NOT EXECUTED
12174b: 89 c2 mov %eax,%edx <== NOT EXECUTED
if (rc > 0)
12174d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
121750: 85 c0 test %eax,%eax <== NOT EXECUTED
121752: 7e 16 jle 12176a <rtems_rfs_rtems_chown+0x57><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
121754: 89 d8 mov %ebx,%eax <== NOT EXECUTED
121756: 89 55 a4 mov %edx,-0x5c(%ebp) <== NOT EXECUTED
121759: e8 95 ff ff ff call 1216f3 <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("chown: opening inode", rc);
12175e: e8 35 b6 01 00 call 13cd98 <__errno> <== NOT EXECUTED
121763: 8b 55 a4 mov -0x5c(%ebp),%edx <== NOT EXECUTED
121766: 89 10 mov %edx,(%eax) <== NOT EXECUTED
121768: eb 56 jmp 1217c0 <rtems_rfs_rtems_chown+0xad><== 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);
12176a: 8b 45 a8 mov -0x58(%ebp),%eax <== NOT EXECUTED
12176d: c1 e0 10 shl $0x10,%eax <== NOT EXECUTED
121770: 0f b7 d7 movzwl %di,%edx <== NOT EXECUTED
121773: 09 d0 or %edx,%eax <== NOT EXECUTED
121775: 89 c1 mov %eax,%ecx <== NOT EXECUTED
121777: c1 e9 18 shr $0x18,%ecx <== NOT EXECUTED
12177a: 8b 55 cc mov -0x34(%ebp),%edx <== NOT EXECUTED
12177d: 88 4a 04 mov %cl,0x4(%edx) <== NOT EXECUTED
121780: 89 c1 mov %eax,%ecx <== NOT EXECUTED
121782: c1 e9 10 shr $0x10,%ecx <== NOT EXECUTED
121785: 8b 55 cc mov -0x34(%ebp),%edx <== NOT EXECUTED
121788: 88 4a 05 mov %cl,0x5(%edx) <== NOT EXECUTED
12178b: c1 e8 08 shr $0x8,%eax <== NOT EXECUTED
12178e: 8b 55 cc mov -0x34(%ebp),%edx <== NOT EXECUTED
121791: 88 42 06 mov %al,0x6(%edx) <== NOT EXECUTED
121794: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED
121797: 89 fa mov %edi,%edx <== NOT EXECUTED
121799: 88 50 07 mov %dl,0x7(%eax) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
12179c: 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);
1217a0: 52 push %edx <== NOT EXECUTED
1217a1: 52 push %edx <== NOT EXECUTED
1217a2: 56 push %esi <== NOT EXECUTED
1217a3: 53 push %ebx <== NOT EXECUTED
1217a4: e8 c3 68 01 00 call 13806c <rtems_rfs_inode_close> <== NOT EXECUTED
1217a9: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc)
1217ab: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1217ae: 85 c0 test %eax,%eax <== NOT EXECUTED
1217b0: 74 13 je 1217c5 <rtems_rfs_rtems_chown+0xb2><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
1217b2: 89 d8 mov %ebx,%eax <== NOT EXECUTED
1217b4: e8 3a ff ff ff call 1216f3 <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("chown: closing inode", rc);
1217b9: e8 da b5 01 00 call 13cd98 <__errno> <== NOT EXECUTED
1217be: 89 30 mov %esi,(%eax) <== NOT EXECUTED
1217c0: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
1217c3: eb 09 jmp 1217ce <rtems_rfs_rtems_chown+0xbb><== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
1217c5: 89 d8 mov %ebx,%eax <== NOT EXECUTED
1217c7: e8 27 ff ff ff call 1216f3 <rtems_rfs_rtems_unlock><== NOT EXECUTED
1217cc: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
}
1217ce: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1217d1: 5b pop %ebx <== NOT EXECUTED
1217d2: 5e pop %esi <== NOT EXECUTED
1217d3: 5f pop %edi <== NOT EXECUTED
1217d4: c9 leave <== NOT EXECUTED
1217d5: c3 ret <== NOT EXECUTED
00138beb <rtems_rfs_rtems_device_close>:
* @return int
*/
static int
rtems_rfs_rtems_device_close (rtems_libio_t* iop)
{
138beb: 55 push %ebp <== NOT EXECUTED
138bec: 89 e5 mov %esp,%ebp <== NOT EXECUTED
138bee: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
138bf1: 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;
138bf4: 8b 50 30 mov 0x30(%eax),%edx <== NOT EXECUTED
minor = (intptr_t) iop->data1;
138bf7: 8b 48 34 mov 0x34(%eax),%ecx <== NOT EXECUTED
args.iop = iop;
138bfa: 89 45 ec mov %eax,-0x14(%ebp) <== NOT EXECUTED
args.flags = 0;
138bfd: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) <== NOT EXECUTED
args.mode = 0;
138c04: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) <== NOT EXECUTED
status = rtems_io_close (major, minor, (void *) &args);
138c0b: 8d 45 ec lea -0x14(%ebp),%eax <== NOT EXECUTED
138c0e: 50 push %eax <== NOT EXECUTED
138c0f: 51 push %ecx <== NOT EXECUTED
138c10: 52 push %edx <== NOT EXECUTED
138c11: e8 de 1b 00 00 call 13a7f4 <rtems_io_close> <== NOT EXECUTED
138c16: 89 c2 mov %eax,%edx <== NOT EXECUTED
if (status)
138c18: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
138c1b: 31 c0 xor %eax,%eax <== NOT EXECUTED
138c1d: 85 d2 test %edx,%edx <== NOT EXECUTED
138c1f: 74 0c je 138c2d <rtems_rfs_rtems_device_close+0x42><== NOT EXECUTED
return rtems_deviceio_errno (status);
138c21: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
138c24: 52 push %edx <== NOT EXECUTED
138c25: e8 06 09 00 00 call 139530 <rtems_deviceio_errno> <== NOT EXECUTED
138c2a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
return 0;
}
138c2d: c9 leave <== NOT EXECUTED
138c2e: c3 ret <== NOT EXECUTED
00138adb <rtems_rfs_rtems_device_ftruncate>:
* @return int
*/
static int
rtems_rfs_rtems_device_ftruncate (rtems_libio_t* iop, rtems_off64_t length)
{
138adb: 55 push %ebp <== NOT EXECUTED
138adc: 89 e5 mov %esp,%ebp <== NOT EXECUTED
return 0;
}
138ade: 31 c0 xor %eax,%eax <== NOT EXECUTED
138ae0: c9 leave <== NOT EXECUTED
138ae1: c3 ret <== NOT EXECUTED
00138ae2 <rtems_rfs_rtems_device_ioctl>:
static int
rtems_rfs_rtems_device_ioctl (rtems_libio_t* iop,
uint32_t command,
void* buffer)
{
138ae2: 55 push %ebp <== NOT EXECUTED
138ae3: 89 e5 mov %esp,%ebp <== NOT EXECUTED
138ae5: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
138ae8: 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;
138aeb: 8b 50 30 mov 0x30(%eax),%edx <== NOT EXECUTED
minor = (intptr_t) iop->data1;
138aee: 8b 48 34 mov 0x34(%eax),%ecx <== NOT EXECUTED
args.iop = iop;
138af1: 89 45 e8 mov %eax,-0x18(%ebp) <== NOT EXECUTED
args.command = command;
138af4: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
138af7: 89 45 ec mov %eax,-0x14(%ebp) <== NOT EXECUTED
args.buffer = buffer;
138afa: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
138afd: 89 45 f0 mov %eax,-0x10(%ebp) <== NOT EXECUTED
status = rtems_io_control (major, minor, (void *) &args);
138b00: 8d 45 e8 lea -0x18(%ebp),%eax <== NOT EXECUTED
138b03: 50 push %eax <== NOT EXECUTED
138b04: 51 push %ecx <== NOT EXECUTED
138b05: 52 push %edx <== NOT EXECUTED
138b06: e8 19 1d 00 00 call 13a824 <rtems_io_control> <== NOT EXECUTED
if (status)
138b0b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
138b0e: 85 c0 test %eax,%eax <== NOT EXECUTED
138b10: 74 0e je 138b20 <rtems_rfs_rtems_device_ioctl+0x3e><== NOT EXECUTED
return rtems_deviceio_errno (status);
138b12: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
138b15: 50 push %eax <== NOT EXECUTED
138b16: e8 15 0a 00 00 call 139530 <rtems_deviceio_errno> <== NOT EXECUTED
138b1b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
138b1e: eb 03 jmp 138b23 <rtems_rfs_rtems_device_ioctl+0x41><== NOT EXECUTED
return args.ioctl_return;
138b20: 8b 45 f4 mov -0xc(%ebp),%eax <== NOT EXECUTED
}
138b23: c9 leave <== NOT EXECUTED
138b24: c3 ret <== NOT EXECUTED
00138ad0 <rtems_rfs_rtems_device_lseek>:
static rtems_off64_t
rtems_rfs_rtems_device_lseek (rtems_libio_t* iop,
rtems_off64_t offset,
int whence)
{
138ad0: 55 push %ebp <== NOT EXECUTED
138ad1: 89 e5 mov %esp,%ebp <== NOT EXECUTED
return offset;
}
138ad3: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
138ad6: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
138ad9: c9 leave <== NOT EXECUTED
138ada: c3 ret <== NOT EXECUTED
00138c4f <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)
{
138c4f: 55 push %ebp <== NOT EXECUTED
138c50: 89 e5 mov %esp,%ebp <== NOT EXECUTED
138c52: 57 push %edi <== NOT EXECUTED
138c53: 56 push %esi <== NOT EXECUTED
138c54: 53 push %ebx <== NOT EXECUTED
138c55: 81 ec 90 00 00 00 sub $0x90,%esp <== NOT EXECUTED
138c5b: 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);
138c5e: 8b 43 28 mov 0x28(%ebx),%eax <== NOT EXECUTED
138c61: 8b 70 34 mov 0x34(%eax),%esi <== NOT EXECUTED
rtems_rfs_ino ino = rtems_rfs_rtems_get_iop_ino (iop);
138c64: 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);
138c67: 6a 00 push $0x0 <== NOT EXECUTED
138c69: 6a 00 push $0x0 <== NOT EXECUTED
138c6b: 8b 46 7c mov 0x7c(%esi),%eax <== NOT EXECUTED
138c6e: ff 30 pushl (%eax) <== NOT EXECUTED
138c70: 89 95 70 ff ff ff mov %edx,-0x90(%ebp) <== NOT EXECUTED
138c76: e8 8d 7f 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);
138c7b: 6a 01 push $0x1 <== NOT EXECUTED
138c7d: 8d 7d b4 lea -0x4c(%ebp),%edi <== NOT EXECUTED
138c80: 57 push %edi <== NOT EXECUTED
138c81: 8b 95 70 ff ff ff mov -0x90(%ebp),%edx <== NOT EXECUTED
138c87: 52 push %edx <== NOT EXECUTED
138c88: 56 push %esi <== NOT EXECUTED
138c89: e8 4d f4 ff ff call 1380db <rtems_rfs_inode_open> <== NOT EXECUTED
138c8e: 89 c2 mov %eax,%edx <== NOT EXECUTED
if (rc > 0)
138c90: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
138c93: 85 c0 test %eax,%eax <== NOT EXECUTED
138c95: 7e 1c jle 138cb3 <rtems_rfs_rtems_device_open+0x64><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
138c97: 89 f0 mov %esi,%eax <== NOT EXECUTED
138c99: 89 95 70 ff ff ff mov %edx,-0x90(%ebp) <== NOT EXECUTED
138c9f: e8 8b ff ff ff call 138c2f <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("device_open: opening inode", rc);
138ca4: e8 ef 40 00 00 call 13cd98 <__errno> <== NOT EXECUTED
138ca9: 8b 95 70 ff ff ff mov -0x90(%ebp),%edx <== NOT EXECUTED
138caf: 89 10 mov %edx,(%eax) <== NOT EXECUTED
138cb1: eb 62 jmp 138d15 <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]);
138cb3: 8b 55 c0 mov -0x40(%ebp),%edx <== NOT EXECUTED
138cb6: 8d 42 1c lea 0x1c(%edx),%eax <== NOT EXECUTED
138cb9: 8a 52 1c mov 0x1c(%edx),%dl <== NOT EXECUTED
138cbc: 88 95 78 ff ff ff mov %dl,-0x88(%ebp) <== NOT EXECUTED
138cc2: 8a 50 01 mov 0x1(%eax),%dl <== NOT EXECUTED
138cc5: 88 95 77 ff ff ff mov %dl,-0x89(%ebp) <== NOT EXECUTED
138ccb: 8a 50 02 mov 0x2(%eax),%dl <== NOT EXECUTED
138cce: 88 95 76 ff ff ff mov %dl,-0x8a(%ebp) <== NOT EXECUTED
138cd4: 8a 50 03 mov 0x3(%eax),%dl <== NOT EXECUTED
138cd7: 88 95 75 ff ff ff mov %dl,-0x8b(%ebp) <== NOT EXECUTED
138cdd: 8a 50 04 mov 0x4(%eax),%dl <== NOT EXECUTED
138ce0: 88 55 98 mov %dl,-0x68(%ebp) <== NOT EXECUTED
138ce3: 8a 50 05 mov 0x5(%eax),%dl <== NOT EXECUTED
138ce6: 88 55 97 mov %dl,-0x69(%ebp) <== NOT EXECUTED
138ce9: 8a 50 06 mov 0x6(%eax),%dl <== NOT EXECUTED
138cec: 88 55 96 mov %dl,-0x6a(%ebp) <== NOT EXECUTED
138cef: 8a 40 07 mov 0x7(%eax),%al <== NOT EXECUTED
138cf2: 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);
138cf5: 50 push %eax <== NOT EXECUTED
138cf6: 50 push %eax <== NOT EXECUTED
138cf7: 57 push %edi <== NOT EXECUTED
138cf8: 56 push %esi <== NOT EXECUTED
138cf9: e8 6e f3 ff ff call 13806c <rtems_rfs_inode_close> <== NOT EXECUTED
138cfe: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc > 0)
138d00: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
138d03: 85 c0 test %eax,%eax <== NOT EXECUTED
138d05: 7e 16 jle 138d1d <rtems_rfs_rtems_device_open+0xce><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
138d07: 89 f0 mov %esi,%eax <== NOT EXECUTED
138d09: e8 21 ff ff ff call 138c2f <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("device_open: closing inode", rc);
138d0e: e8 85 40 00 00 call 13cd98 <__errno> <== NOT EXECUTED
138d13: 89 38 mov %edi,(%eax) <== NOT EXECUTED
138d15: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
138d18: e9 93 00 00 00 jmp 138db0 <rtems_rfs_rtems_device_open+0x161><== NOT EXECUTED
138d1d: 0f b6 bd 75 ff ff ff movzbl -0x8b(%ebp),%edi <== NOT EXECUTED
138d24: 8a 85 78 ff ff ff mov -0x88(%ebp),%al <== NOT EXECUTED
138d2a: c1 e0 18 shl $0x18,%eax <== NOT EXECUTED
138d2d: 09 c7 or %eax,%edi <== NOT EXECUTED
138d2f: 0f b6 85 77 ff ff ff movzbl -0x89(%ebp),%eax <== NOT EXECUTED
138d36: c1 e0 10 shl $0x10,%eax <== NOT EXECUTED
138d39: 09 c7 or %eax,%edi <== NOT EXECUTED
138d3b: 0f b6 85 76 ff ff ff movzbl -0x8a(%ebp),%eax <== NOT EXECUTED
138d42: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
138d45: 09 c7 or %eax,%edi <== NOT EXECUTED
138d47: 8a 55 98 mov -0x68(%ebp),%dl <== NOT EXECUTED
138d4a: c1 e2 18 shl $0x18,%edx <== NOT EXECUTED
138d4d: 0f b6 45 97 movzbl -0x69(%ebp),%eax <== NOT EXECUTED
138d51: c1 e0 10 shl $0x10,%eax <== NOT EXECUTED
138d54: 09 c2 or %eax,%edx <== NOT EXECUTED
138d56: 0f b6 45 95 movzbl -0x6b(%ebp),%eax <== NOT EXECUTED
138d5a: 09 c2 or %eax,%edx <== NOT EXECUTED
138d5c: 0f b6 45 96 movzbl -0x6a(%ebp),%eax <== NOT EXECUTED
138d60: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
138d63: 09 c2 or %eax,%edx <== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
138d65: 89 f0 mov %esi,%eax <== NOT EXECUTED
138d67: 89 95 70 ff ff ff mov %edx,-0x90(%ebp) <== NOT EXECUTED
138d6d: e8 bd fe ff ff call 138c2f <rtems_rfs_rtems_unlock><== NOT EXECUTED
iop->data0 = major;
138d72: 89 7b 30 mov %edi,0x30(%ebx) <== NOT EXECUTED
iop->data1 = (void*)((intptr_t) minor);
138d75: 8b 95 70 ff ff ff mov -0x90(%ebp),%edx <== NOT EXECUTED
138d7b: 89 53 34 mov %edx,0x34(%ebx) <== NOT EXECUTED
args.iop = iop;
138d7e: 89 5d dc mov %ebx,-0x24(%ebp) <== NOT EXECUTED
args.flags = iop->flags;
138d81: 8b 43 14 mov 0x14(%ebx),%eax <== NOT EXECUTED
138d84: 89 45 e0 mov %eax,-0x20(%ebp) <== NOT EXECUTED
args.mode = mode;
138d87: 8b 45 14 mov 0x14(%ebp),%eax <== NOT EXECUTED
138d8a: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
status = rtems_io_open (major, minor, (void *) &args);
138d8d: 51 push %ecx <== NOT EXECUTED
138d8e: 8d 45 dc lea -0x24(%ebp),%eax <== NOT EXECUTED
138d91: 50 push %eax <== NOT EXECUTED
138d92: 52 push %edx <== NOT EXECUTED
138d93: 57 push %edi <== NOT EXECUTED
138d94: e8 bb 1a 00 00 call 13a854 <rtems_io_open> <== NOT EXECUTED
138d99: 89 c2 mov %eax,%edx <== NOT EXECUTED
if (status)
138d9b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
138d9e: 31 c0 xor %eax,%eax <== NOT EXECUTED
138da0: 85 d2 test %edx,%edx <== NOT EXECUTED
138da2: 74 0c je 138db0 <rtems_rfs_rtems_device_open+0x161><== NOT EXECUTED
return rtems_deviceio_errno(status);
138da4: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
138da7: 52 push %edx <== NOT EXECUTED
138da8: e8 83 07 00 00 call 139530 <rtems_deviceio_errno> <== NOT EXECUTED
138dad: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
return 0;
}
138db0: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
138db3: 5b pop %ebx <== NOT EXECUTED
138db4: 5e pop %esi <== NOT EXECUTED
138db5: 5f pop %edi <== NOT EXECUTED
138db6: c9 leave <== NOT EXECUTED
138db7: c3 ret <== NOT EXECUTED
00138b88 <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)
{
138b88: 55 push %ebp <== NOT EXECUTED
138b89: 89 e5 mov %esp,%ebp <== NOT EXECUTED
138b8b: 56 push %esi <== NOT EXECUTED
138b8c: 53 push %ebx <== NOT EXECUTED
138b8d: 83 ec 24 sub $0x24,%esp <== NOT EXECUTED
138b90: 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;
138b93: 8b 50 30 mov 0x30(%eax),%edx <== NOT EXECUTED
minor = (intptr_t) iop->data1;
138b96: 8b 48 34 mov 0x34(%eax),%ecx <== NOT EXECUTED
args.iop = iop;
138b99: 89 45 dc mov %eax,-0x24(%ebp) <== NOT EXECUTED
args.offset = iop->offset;
138b9c: 8b 58 0c mov 0xc(%eax),%ebx <== NOT EXECUTED
138b9f: 8b 70 10 mov 0x10(%eax),%esi <== NOT EXECUTED
138ba2: 89 5d e0 mov %ebx,-0x20(%ebp) <== NOT EXECUTED
138ba5: 89 75 e4 mov %esi,-0x1c(%ebp) <== NOT EXECUTED
args.buffer = buffer;
138ba8: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
138bab: 89 5d e8 mov %ebx,-0x18(%ebp) <== NOT EXECUTED
args.count = count;
138bae: 8b 5d 10 mov 0x10(%ebp),%ebx <== NOT EXECUTED
138bb1: 89 5d ec mov %ebx,-0x14(%ebp) <== NOT EXECUTED
args.flags = iop->flags;
138bb4: 8b 40 14 mov 0x14(%eax),%eax <== NOT EXECUTED
138bb7: 89 45 f0 mov %eax,-0x10(%ebp) <== NOT EXECUTED
args.bytes_moved = 0;
138bba: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) <== NOT EXECUTED
status = rtems_io_read (major, minor, (void *) &args);
138bc1: 8d 45 dc lea -0x24(%ebp),%eax <== NOT EXECUTED
138bc4: 50 push %eax <== NOT EXECUTED
138bc5: 51 push %ecx <== NOT EXECUTED
138bc6: 52 push %edx <== NOT EXECUTED
138bc7: e8 b8 1c 00 00 call 13a884 <rtems_io_read> <== NOT EXECUTED
if (status)
138bcc: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
138bcf: 85 c0 test %eax,%eax <== NOT EXECUTED
138bd1: 74 0e je 138be1 <rtems_rfs_rtems_device_read+0x59><== NOT EXECUTED
return rtems_deviceio_errno (status);
138bd3: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
138bd6: 50 push %eax <== NOT EXECUTED
138bd7: e8 54 09 00 00 call 139530 <rtems_deviceio_errno> <== NOT EXECUTED
138bdc: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
138bdf: eb 03 jmp 138be4 <rtems_rfs_rtems_device_read+0x5c><== NOT EXECUTED
return (ssize_t) args.bytes_moved;
138be1: 8b 45 f4 mov -0xc(%ebp),%eax <== NOT EXECUTED
}
138be4: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
138be7: 5b pop %ebx <== NOT EXECUTED
138be8: 5e pop %esi <== NOT EXECUTED
138be9: c9 leave <== NOT EXECUTED
138bea: c3 ret <== NOT EXECUTED
00138b25 <rtems_rfs_rtems_device_write>:
static ssize_t
rtems_rfs_rtems_device_write (rtems_libio_t* iop,
const void* buffer,
size_t count)
{
138b25: 55 push %ebp <== NOT EXECUTED
138b26: 89 e5 mov %esp,%ebp <== NOT EXECUTED
138b28: 56 push %esi <== NOT EXECUTED
138b29: 53 push %ebx <== NOT EXECUTED
138b2a: 83 ec 24 sub $0x24,%esp <== NOT EXECUTED
138b2d: 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;
138b30: 8b 50 30 mov 0x30(%eax),%edx <== NOT EXECUTED
minor = (intptr_t) iop->data1;
138b33: 8b 48 34 mov 0x34(%eax),%ecx <== NOT EXECUTED
args.iop = iop;
138b36: 89 45 dc mov %eax,-0x24(%ebp) <== NOT EXECUTED
args.offset = iop->offset;
138b39: 8b 58 0c mov 0xc(%eax),%ebx <== NOT EXECUTED
138b3c: 8b 70 10 mov 0x10(%eax),%esi <== NOT EXECUTED
138b3f: 89 5d e0 mov %ebx,-0x20(%ebp) <== NOT EXECUTED
138b42: 89 75 e4 mov %esi,-0x1c(%ebp) <== NOT EXECUTED
args.buffer = (void *) buffer;
138b45: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
138b48: 89 5d e8 mov %ebx,-0x18(%ebp) <== NOT EXECUTED
args.count = count;
138b4b: 8b 5d 10 mov 0x10(%ebp),%ebx <== NOT EXECUTED
138b4e: 89 5d ec mov %ebx,-0x14(%ebp) <== NOT EXECUTED
args.flags = iop->flags;
138b51: 8b 40 14 mov 0x14(%eax),%eax <== NOT EXECUTED
138b54: 89 45 f0 mov %eax,-0x10(%ebp) <== NOT EXECUTED
args.bytes_moved = 0;
138b57: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) <== NOT EXECUTED
status = rtems_io_write (major, minor, (void *) &args);
138b5e: 8d 45 dc lea -0x24(%ebp),%eax <== NOT EXECUTED
138b61: 50 push %eax <== NOT EXECUTED
138b62: 51 push %ecx <== NOT EXECUTED
138b63: 52 push %edx <== NOT EXECUTED
138b64: e8 4b 1d 00 00 call 13a8b4 <rtems_io_write> <== NOT EXECUTED
if (status)
138b69: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
138b6c: 85 c0 test %eax,%eax <== NOT EXECUTED
138b6e: 74 0e je 138b7e <rtems_rfs_rtems_device_write+0x59><== NOT EXECUTED
return rtems_deviceio_errno (status);
138b70: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
138b73: 50 push %eax <== NOT EXECUTED
138b74: e8 b7 09 00 00 call 139530 <rtems_deviceio_errno> <== NOT EXECUTED
138b79: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
138b7c: eb 03 jmp 138b81 <rtems_rfs_rtems_device_write+0x5c><== NOT EXECUTED
return (ssize_t) args.bytes_moved;
138b7e: 8b 45 f4 mov -0xc(%ebp),%eax <== NOT EXECUTED
}
138b81: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
138b84: 5b pop %ebx <== NOT EXECUTED
138b85: 5e pop %esi <== NOT EXECUTED
138b86: c9 leave <== NOT EXECUTED
138b87: c3 ret <== NOT EXECUTED
00138db8 <rtems_rfs_rtems_dir_close>:
* @param iop
* @retval 0 Always no error.
*/
static int
rtems_rfs_rtems_dir_close (rtems_libio_t* iop)
{
138db8: 55 push %ebp <== NOT EXECUTED
138db9: 89 e5 mov %esp,%ebp <== NOT EXECUTED
/*
* The RFS does not hold any resources. Nothing to do.
*/
return 0;
}
138dbb: 31 c0 xor %eax,%eax <== NOT EXECUTED
138dbd: c9 leave <== NOT EXECUTED
138dbe: c3 ret <== NOT EXECUTED
00138dbf <rtems_rfs_rtems_dir_lseek>:
*/
static rtems_off64_t
rtems_rfs_rtems_dir_lseek (rtems_libio_t* iop,
rtems_off64_t offset,
int whence)
{
138dbf: 55 push %ebp <== NOT EXECUTED
138dc0: 89 e5 mov %esp,%ebp <== NOT EXECUTED
138dc2: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
switch (whence)
138dc5: 31 c0 xor %eax,%eax <== NOT EXECUTED
138dc7: 31 d2 xor %edx,%edx <== NOT EXECUTED
138dc9: 83 7d 14 01 cmpl $0x1,0x14(%ebp) <== NOT EXECUTED
138dcd: 76 10 jbe 138ddf <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);
138dcf: e8 c4 3f 00 00 call 13cd98 <__errno> <== NOT EXECUTED
138dd4: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
138dda: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
138ddd: 89 c2 mov %eax,%edx <== NOT EXECUTED
break;
}
return 0;
}
138ddf: c9 leave <== NOT EXECUTED
138de0: c3 ret <== NOT EXECUTED
00138f5a <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)
{
138f5a: 55 push %ebp <== NOT EXECUTED
138f5b: 89 e5 mov %esp,%ebp <== NOT EXECUTED
138f5d: 57 push %edi <== NOT EXECUTED
138f5e: 56 push %esi <== NOT EXECUTED
138f5f: 53 push %ebx <== NOT EXECUTED
138f60: 83 ec 50 sub $0x50,%esp <== NOT EXECUTED
138f63: 8b 7d 08 mov 0x8(%ebp),%edi <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (&iop->pathinfo);
138f66: 8b 47 28 mov 0x28(%edi),%eax <== NOT EXECUTED
138f69: 8b 58 34 mov 0x34(%eax),%ebx <== NOT EXECUTED
rtems_rfs_ino ino = rtems_rfs_rtems_get_iop_ino (iop);
138f6c: 8b 57 38 mov 0x38(%edi),%edx <== NOT EXECUTED
138f6f: 6a 00 push $0x0 <== NOT EXECUTED
138f71: 6a 00 push $0x0 <== NOT EXECUTED
138f73: 8b 43 7c mov 0x7c(%ebx),%eax <== NOT EXECUTED
138f76: ff 30 pushl (%eax) <== NOT EXECUTED
138f78: 89 55 b4 mov %edx,-0x4c(%ebp) <== NOT EXECUTED
138f7b: e8 88 7c 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);
138f80: 6a 01 push $0x1 <== NOT EXECUTED
138f82: 8d 75 c0 lea -0x40(%ebp),%esi <== NOT EXECUTED
138f85: 56 push %esi <== NOT EXECUTED
138f86: 8b 55 b4 mov -0x4c(%ebp),%edx <== NOT EXECUTED
138f89: 52 push %edx <== NOT EXECUTED
138f8a: 53 push %ebx <== NOT EXECUTED
138f8b: e8 4b f1 ff ff call 1380db <rtems_rfs_inode_open> <== NOT EXECUTED
138f90: 89 c2 mov %eax,%edx <== NOT EXECUTED
if (rc)
138f92: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
138f95: 85 c0 test %eax,%eax <== NOT EXECUTED
138f97: 74 19 je 138fb2 <rtems_rfs_rtems_dir_open+0x58><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
138f99: 89 d8 mov %ebx,%eax <== NOT EXECUTED
138f9b: 89 55 b4 mov %edx,-0x4c(%ebp) <== NOT EXECUTED
138f9e: e8 3e fe ff ff call 138de1 <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("dir_open: opening inode", rc);
138fa3: e8 f0 3d 00 00 call 13cd98 <__errno> <== NOT EXECUTED
138fa8: 8b 55 b4 mov -0x4c(%ebp),%edx <== NOT EXECUTED
138fab: 89 10 mov %edx,(%eax) <== NOT EXECUTED
138fad: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
138fb0: eb 59 jmp 13900b <rtems_rfs_rtems_dir_open+0xb1><== NOT EXECUTED
}
if (!RTEMS_RFS_S_ISDIR (rtems_rfs_inode_get_mode (&inode)))
138fb2: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED
138fb5: 0f b6 40 02 movzbl 0x2(%eax),%eax <== NOT EXECUTED
138fb9: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
138fbc: 25 00 f0 00 00 and $0xf000,%eax <== NOT EXECUTED
138fc1: 3d 00 40 00 00 cmp $0x4000,%eax <== NOT EXECUTED
138fc6: 74 20 je 138fe8 <rtems_rfs_rtems_dir_open+0x8e><== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
138fc8: 57 push %edi <== NOT EXECUTED
138fc9: 57 push %edi <== NOT EXECUTED
138fca: 56 push %esi <== NOT EXECUTED
138fcb: 53 push %ebx <== NOT EXECUTED
138fcc: e8 9b f0 ff ff call 13806c <rtems_rfs_inode_close> <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
138fd1: 89 d8 mov %ebx,%eax <== NOT EXECUTED
138fd3: e8 09 fe ff ff call 138de1 <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("dir_open: not dir", ENOTDIR);
138fd8: e8 bb 3d 00 00 call 13cd98 <__errno> <== NOT EXECUTED
138fdd: c7 00 14 00 00 00 movl $0x14,(%eax) <== NOT EXECUTED
138fe3: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
138fe6: eb 20 jmp 139008 <rtems_rfs_rtems_dir_open+0xae><== NOT EXECUTED
}
iop->offset = 0;
138fe8: c7 47 0c 00 00 00 00 movl $0x0,0xc(%edi) <== NOT EXECUTED
138fef: c7 47 10 00 00 00 00 movl $0x0,0x10(%edi) <== NOT EXECUTED
rtems_rfs_inode_close (fs, &inode);
138ff6: 51 push %ecx <== NOT EXECUTED
138ff7: 51 push %ecx <== NOT EXECUTED
138ff8: 56 push %esi <== NOT EXECUTED
138ff9: 53 push %ebx <== NOT EXECUTED
138ffa: e8 6d f0 ff ff call 13806c <rtems_rfs_inode_close> <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
138fff: 89 d8 mov %ebx,%eax <== NOT EXECUTED
139001: e8 db fd ff ff call 138de1 <rtems_rfs_rtems_unlock><== NOT EXECUTED
139006: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
139008: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
13900b: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13900e: 5b pop %ebx <== NOT EXECUTED
13900f: 5e pop %esi <== NOT EXECUTED
139010: 5f pop %edi <== NOT EXECUTED
139011: c9 leave <== NOT EXECUTED
139012: c3 ret <== NOT EXECUTED
00138e81 <rtems_rfs_rtems_dir_read>:
*/
static ssize_t
rtems_rfs_rtems_dir_read (rtems_libio_t* iop,
void* buffer,
size_t count)
{
138e81: 55 push %ebp <== NOT EXECUTED
138e82: 89 e5 mov %esp,%ebp <== NOT EXECUTED
138e84: 57 push %edi <== NOT EXECUTED
138e85: 56 push %esi <== NOT EXECUTED
138e86: 53 push %ebx <== NOT EXECUTED
138e87: 83 ec 50 sub $0x50,%esp <== NOT EXECUTED
138e8a: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
138e8d: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (&iop->pathinfo);
138e90: 8b 56 28 mov 0x28(%esi),%edx <== NOT EXECUTED
138e93: 8b 5a 34 mov 0x34(%edx),%ebx <== NOT EXECUTED
rtems_rfs_ino ino = rtems_rfs_rtems_get_iop_ino (iop);
138e96: 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);
138e99: b9 10 01 00 00 mov $0x110,%ecx <== NOT EXECUTED
138e9e: 31 d2 xor %edx,%edx <== NOT EXECUTED
138ea0: f7 f1 div %ecx <== NOT EXECUTED
138ea2: 89 45 b4 mov %eax,-0x4c(%ebp) <== NOT EXECUTED
138ea5: 6a 00 push $0x0 <== NOT EXECUTED
138ea7: 6a 00 push $0x0 <== NOT EXECUTED
138ea9: 8b 43 7c mov 0x7c(%ebx),%eax <== NOT EXECUTED
138eac: ff 30 pushl (%eax) <== NOT EXECUTED
138eae: e8 55 7d 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);
138eb3: 6a 01 push $0x1 <== NOT EXECUTED
138eb5: 8d 55 bc lea -0x44(%ebp),%edx <== NOT EXECUTED
138eb8: 52 push %edx <== NOT EXECUTED
138eb9: 57 push %edi <== NOT EXECUTED
138eba: 53 push %ebx <== NOT EXECUTED
138ebb: 89 55 b0 mov %edx,-0x50(%ebp) <== NOT EXECUTED
138ebe: e8 18 f2 ff ff call 1380db <rtems_rfs_inode_open> <== NOT EXECUTED
138ec3: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc)
138ec5: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
138ec8: 85 c0 test %eax,%eax <== NOT EXECUTED
138eca: 75 04 jne 138ed0 <rtems_rfs_rtems_dir_read+0x4f><== NOT EXECUTED
138ecc: 31 c9 xor %ecx,%ecx <== NOT EXECUTED
138ece: eb 60 jmp 138f30 <rtems_rfs_rtems_dir_read+0xaf><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
138ed0: 89 d8 mov %ebx,%eax <== NOT EXECUTED
138ed2: e8 0a ff ff ff call 138de1 <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("dir_read: read inode", rc);
138ed7: e8 bc 3e 00 00 call 13cd98 <__errno> <== NOT EXECUTED
138edc: 89 38 mov %edi,(%eax) <== NOT EXECUTED
138ede: 83 cf ff or $0xffffffff,%edi <== NOT EXECUTED
138ee1: eb 6d jmp 138f50 <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);
138ee3: 52 push %edx <== NOT EXECUTED
138ee4: 52 push %edx <== NOT EXECUTED
138ee5: 8d 55 e4 lea -0x1c(%ebp),%edx <== NOT EXECUTED
138ee8: 52 push %edx <== NOT EXECUTED
138ee9: 50 push %eax <== NOT EXECUTED
138eea: ff 76 10 pushl 0x10(%esi) <== NOT EXECUTED
138eed: ff 76 0c pushl 0xc(%esi) <== NOT EXECUTED
138ef0: 8d 45 bc lea -0x44(%ebp),%eax <== NOT EXECUTED
138ef3: 50 push %eax <== NOT EXECUTED
138ef4: 53 push %ebx <== NOT EXECUTED
138ef5: 89 4d b0 mov %ecx,-0x50(%ebp) <== NOT EXECUTED
138ef8: e8 b9 c4 ff ff call 1353b6 <rtems_rfs_dir_read> <== NOT EXECUTED
if (rc == ENOENT)
138efd: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
138f00: 83 f8 02 cmp $0x2,%eax <== NOT EXECUTED
138f03: 8b 4d b0 mov -0x50(%ebp),%ecx <== NOT EXECUTED
138f06: 74 32 je 138f3a <rtems_rfs_rtems_dir_read+0xb9><== NOT EXECUTED
{
rc = 0;
break;
}
if (rc > 0)
138f08: 85 c0 test %eax,%eax <== NOT EXECUTED
138f0a: 7e 12 jle 138f1e <rtems_rfs_rtems_dir_read+0x9d><== NOT EXECUTED
{
bytes_transferred = rtems_rfs_rtems_error ("dir_read: dir read", rc);
138f0c: 89 45 b0 mov %eax,-0x50(%ebp) <== NOT EXECUTED
138f0f: e8 84 3e 00 00 call 13cd98 <__errno> <== NOT EXECUTED
138f14: 8b 55 b0 mov -0x50(%ebp),%edx <== NOT EXECUTED
138f17: 89 10 mov %edx,(%eax) <== NOT EXECUTED
138f19: 83 cf ff or $0xffffffff,%edi <== NOT EXECUTED
138f1c: eb 1c jmp 138f3a <rtems_rfs_rtems_dir_read+0xb9><== NOT EXECUTED
break;
}
iop->offset += size;
138f1e: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
138f21: 31 d2 xor %edx,%edx <== NOT EXECUTED
138f23: 01 46 0c add %eax,0xc(%esi) <== NOT EXECUTED
138f26: 11 56 10 adc %edx,0x10(%esi) <== NOT EXECUTED
138f29: 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++)
138f2f: 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,
138f30: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
138f33: 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++)
138f35: 3b 4d b4 cmp -0x4c(%ebp),%ecx <== NOT EXECUTED
138f38: 72 a9 jb 138ee3 <rtems_rfs_rtems_dir_read+0x62><== NOT EXECUTED
}
iop->offset += size;
bytes_transferred += sizeof (struct dirent);
}
rtems_rfs_inode_close (fs, &inode);
138f3a: 56 push %esi <== NOT EXECUTED
138f3b: 56 push %esi <== NOT EXECUTED
138f3c: 8d 45 bc lea -0x44(%ebp),%eax <== NOT EXECUTED
138f3f: 50 push %eax <== NOT EXECUTED
138f40: 53 push %ebx <== NOT EXECUTED
138f41: e8 26 f1 ff ff call 13806c <rtems_rfs_inode_close> <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
138f46: 89 d8 mov %ebx,%eax <== NOT EXECUTED
138f48: e8 94 fe ff ff call 138de1 <rtems_rfs_rtems_unlock><== NOT EXECUTED
return bytes_transferred;
138f4d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
138f50: 89 f8 mov %edi,%eax <== NOT EXECUTED
138f52: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
138f55: 5b pop %ebx <== NOT EXECUTED
138f56: 5e pop %esi <== NOT EXECUTED
138f57: 5f pop %edi <== NOT EXECUTED
138f58: c9 leave <== NOT EXECUTED
138f59: c3 ret <== NOT EXECUTED
00138e01 <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)
{
138e01: 55 push %ebp <== NOT EXECUTED
138e02: 89 e5 mov %esp,%ebp <== NOT EXECUTED
138e04: 57 push %edi <== NOT EXECUTED
138e05: 56 push %esi <== NOT EXECUTED
138e06: 53 push %ebx <== NOT EXECUTED
138e07: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
138e0a: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
138e0d: 8b 50 10 mov 0x10(%eax),%edx <== NOT EXECUTED
138e10: 8b 5a 34 mov 0x34(%edx),%ebx <== NOT EXECUTED
rtems_rfs_ino parent = rtems_rfs_rtems_get_pathloc_ino (parent_pathloc);
138e13: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
138e16: 8b 3a mov (%edx),%edi <== NOT EXECUTED
rtems_rfs_ino ino = rtems_rfs_rtems_get_pathloc_ino (pathloc);
138e18: 8b 30 mov (%eax),%esi <== NOT EXECUTED
uint32_t doff = rtems_rfs_rtems_get_pathloc_doff (pathloc);
138e1a: 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)
138e1d: 83 fe 01 cmp $0x1,%esi <== NOT EXECUTED
138e20: 75 0d jne 138e2f <rtems_rfs_rtems_dir_rmnod+0x2e><== NOT EXECUTED
return rtems_rfs_rtems_error ("dir_rmnod: root inode", EBUSY);
138e22: e8 71 3f 00 00 call 13cd98 <__errno> <== NOT EXECUTED
138e27: c7 00 10 00 00 00 movl $0x10,(%eax) <== NOT EXECUTED
138e2d: eb 3c jmp 138e6b <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);
138e2f: 51 push %ecx <== NOT EXECUTED
138e30: 6a 00 push $0x0 <== NOT EXECUTED
138e32: 6a 00 push $0x0 <== NOT EXECUTED
138e34: 8b 43 7c mov 0x7c(%ebx),%eax <== NOT EXECUTED
138e37: ff 30 pushl (%eax) <== NOT EXECUTED
138e39: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED
138e3c: e8 c7 7d 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);
138e41: c7 04 24 01 00 00 00 movl $0x1,(%esp) <== NOT EXECUTED
138e48: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
138e4b: 52 push %edx <== NOT EXECUTED
138e4c: 56 push %esi <== NOT EXECUTED
138e4d: 57 push %edi <== NOT EXECUTED
138e4e: 53 push %ebx <== NOT EXECUTED
138e4f: e8 70 f9 ff ff call 1387c4 <rtems_rfs_unlink> <== NOT EXECUTED
138e54: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc)
138e56: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
138e59: 85 c0 test %eax,%eax <== NOT EXECUTED
138e5b: 74 13 je 138e70 <rtems_rfs_rtems_dir_rmnod+0x6f><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
138e5d: 89 d8 mov %ebx,%eax <== NOT EXECUTED
138e5f: e8 7d ff ff ff call 138de1 <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("dir_rmnod: unlinking", rc);
138e64: e8 2f 3f 00 00 call 13cd98 <__errno> <== NOT EXECUTED
138e69: 89 30 mov %esi,(%eax) <== NOT EXECUTED
138e6b: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
138e6e: eb 09 jmp 138e79 <rtems_rfs_rtems_dir_rmnod+0x78><== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
138e70: 89 d8 mov %ebx,%eax <== NOT EXECUTED
138e72: e8 6a ff ff ff call 138de1 <rtems_rfs_rtems_unlock><== NOT EXECUTED
138e77: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
}
138e79: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
138e7c: 5b pop %ebx <== NOT EXECUTED
138e7d: 5e pop %esi <== NOT EXECUTED
138e7e: 5f pop %edi <== NOT EXECUTED
138e7f: c9 leave <== NOT EXECUTED
138e80: c3 ret <== NOT EXECUTED
00122383 <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)
{
122383: 55 push %ebp <== NOT EXECUTED
122384: 89 e5 mov %esp,%ebp <== NOT EXECUTED
122386: 57 push %edi <== NOT EXECUTED
122387: 56 push %esi <== NOT EXECUTED
122388: 53 push %ebx <== NOT EXECUTED
122389: 83 ec 5c sub $0x5c,%esp <== NOT EXECUTED
12238c: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
12238f: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
122392: 8b 42 10 mov 0x10(%edx),%eax <== NOT EXECUTED
122395: 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);
122398: 8b 02 mov (%edx),%eax <== NOT EXECUTED
12239a: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
rtems_rfs_ino node_ino;
uint32_t doff = 0;
12239d: 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);
1223a4: 31 c0 xor %eax,%eax <== NOT EXECUTED
1223a6: 83 c9 ff or $0xffffffff,%ecx <== NOT EXECUTED
1223a9: 89 f7 mov %esi,%edi <== NOT EXECUTED
1223ab: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED
1223ad: f7 d1 not %ecx <== NOT EXECUTED
1223af: 8d 44 0e ff lea -0x1(%esi,%ecx,1),%eax <== NOT EXECUTED
1223b3: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
1223b6: 89 02 mov %eax,(%edx) <== NOT EXECUTED
1223b8: 89 d7 mov %edx,%edi <== NOT EXECUTED
while (*name != path)
1223ba: eb 20 jmp 1223dc <rtems_rfs_rtems_eval_for_make+0x59><== NOT EXECUTED
{
(*name)--;
1223bc: 8d 50 ff lea -0x1(%eax),%edx <== NOT EXECUTED
1223bf: 89 17 mov %edx,(%edi) <== NOT EXECUTED
if (rtems_filesystem_is_separator (**name))
1223c1: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1223c4: 0f be 40 ff movsbl -0x1(%eax),%eax <== NOT EXECUTED
1223c8: 50 push %eax <== NOT EXECUTED
1223c9: e8 3e c0 fe ff call 10e40c <rtems_filesystem_is_separator><== NOT EXECUTED
1223ce: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1223d1: 85 c0 test %eax,%eax <== NOT EXECUTED
1223d3: 74 07 je 1223dc <rtems_rfs_rtems_eval_for_make+0x59><== NOT EXECUTED
{
(*name)++;
1223d5: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
1223d8: ff 00 incl (%eax) <== NOT EXECUTED
break;
1223da: eb 06 jmp 1223e2 <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)
1223dc: 8b 07 mov (%edi),%eax <== NOT EXECUTED
1223de: 39 f0 cmp %esi,%eax <== NOT EXECUTED
1223e0: 75 da jne 1223bc <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));
1223e2: 31 c0 xor %eax,%eax <== NOT EXECUTED
1223e4: 83 c9 ff or $0xffffffff,%ecx <== NOT EXECUTED
1223e7: 89 f7 mov %esi,%edi <== NOT EXECUTED
1223e9: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED
1223eb: f7 d1 not %ecx <== NOT EXECUTED
1223ed: 49 dec %ecx <== NOT EXECUTED
1223ee: 52 push %edx <== NOT EXECUTED
1223ef: 52 push %edx <== NOT EXECUTED
1223f0: 51 push %ecx <== NOT EXECUTED
1223f1: 56 push %esi <== NOT EXECUTED
1223f2: e8 01 a9 fe ff call 10ccf8 <rtems_filesystem_prefix_separators><== NOT EXECUTED
path += stripped;
1223f7: 01 c6 add %eax,%esi <== NOT EXECUTED
1223f9: 89 75 a4 mov %esi,-0x5c(%ebp) <== NOT EXECUTED
rtems_rfs_rtems_lock (fs);
1223fc: 89 d8 mov %ebx,%eax <== NOT EXECUTED
1223fe: e8 d7 f2 ff ff call 1216da <rtems_rfs_rtems_lock> <== NOT EXECUTED
122403: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
while (true)
{
/*
* Open and load the inode.
*/
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
122406: 8d 75 b4 lea -0x4c(%ebp),%esi <== NOT EXECUTED
122409: eb 03 jmp 12240e <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);
12240b: 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);
12240e: 6a 01 push $0x1 <== NOT EXECUTED
122410: 56 push %esi <== NOT EXECUTED
122411: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
122414: 53 push %ebx <== NOT EXECUTED
122415: e8 c1 5c 01 00 call 1380db <rtems_rfs_inode_open> <== NOT EXECUTED
12241a: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc > 0)
12241c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12241f: 85 c0 test %eax,%eax <== NOT EXECUTED
122421: 7e 13 jle 122436 <rtems_rfs_rtems_eval_for_make+0xb3><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
122423: 89 d8 mov %ebx,%eax <== NOT EXECUTED
122425: e8 c9 f2 ff ff call 1216f3 <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("eval_for_make: read ino", rc);
12242a: e8 69 a9 01 00 call 13cd98 <__errno> <== NOT EXECUTED
12242f: 89 38 mov %edi,(%eax) <== NOT EXECUTED
122431: e9 f8 01 00 00 jmp 12262e <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)) &&
122436: 8b 45 c0 mov -0x40(%ebp),%eax <== NOT EXECUTED
122439: 0f b6 40 02 movzbl 0x2(%eax),%eax <== NOT EXECUTED
12243d: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
122440: 25 00 f0 00 00 and $0xf000,%eax <== NOT EXECUTED
122445: 3d 00 40 00 00 cmp $0x4000,%eax <== NOT EXECUTED
12244a: 75 15 jne 122461 <rtems_rfs_rtems_eval_for_make+0xde><== NOT EXECUTED
12244c: 50 push %eax <== NOT EXECUTED
12244d: 50 push %eax <== NOT EXECUTED
12244e: 6a 01 push $0x1 <== NOT EXECUTED
122450: 56 push %esi <== NOT EXECUTED
122451: e8 96 05 00 00 call 1229ec <rtems_rfs_rtems_eval_perms><== NOT EXECUTED
122456: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
122459: 84 c0 test %al,%al <== NOT EXECUTED
12245b: 0f 84 1f 02 00 00 je 122680 <rtems_rfs_rtems_eval_for_make+0x2fd><== NOT EXECUTED
}
/*
* Is this the end of the pathname we where given ?
*/
if (path == *name)
122461: 8b 45 a4 mov -0x5c(%ebp),%eax <== NOT EXECUTED
122464: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
122467: 3b 02 cmp (%edx),%eax <== NOT EXECUTED
122469: 0f 84 c7 01 00 00 je 122636 <rtems_rfs_rtems_eval_for_make+0x2b3><== NOT EXECUTED
12246f: 89 c2 mov %eax,%edx <== NOT EXECUTED
122471: c7 45 a0 00 00 00 00 movl $0x0,-0x60(%ebp) <== NOT EXECUTED
122478: eb 04 jmp 12247e <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++;
12247a: ff 45 a0 incl -0x60(%ebp) <== NOT EXECUTED
path++;
12247d: 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) &&
12247e: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
122481: 0f be 02 movsbl (%edx),%eax <== NOT EXECUTED
122484: 50 push %eax <== NOT EXECUTED
122485: 89 55 98 mov %edx,-0x68(%ebp) <== NOT EXECUTED
122488: e8 7f bf fe ff call 10e40c <rtems_filesystem_is_separator><== NOT EXECUTED
12248d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
122490: 85 c0 test %eax,%eax <== NOT EXECUTED
122492: 8b 55 98 mov -0x68(%ebp),%edx <== NOT EXECUTED
122495: 75 0e jne 1224a5 <rtems_rfs_rtems_eval_for_make+0x122><== NOT EXECUTED
122497: 80 3a 00 cmpb $0x0,(%edx) <== NOT EXECUTED
12249a: 74 09 je 1224a5 <rtems_rfs_rtems_eval_for_make+0x122><== NOT EXECUTED
(*path != '\0') &&
(node_len < (rtems_rfs_fs_max_name (fs) - 1)))
12249c: 8b 43 18 mov 0x18(%ebx),%eax <== NOT EXECUTED
12249f: 48 dec %eax <== NOT EXECUTED
1224a0: 39 45 a0 cmp %eax,-0x60(%ebp) <== NOT EXECUTED
1224a3: 72 d5 jb 12247a <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));
1224a5: 31 c0 xor %eax,%eax <== NOT EXECUTED
1224a7: 83 c9 ff or $0xffffffff,%ecx <== NOT EXECUTED
1224aa: 89 d7 mov %edx,%edi <== NOT EXECUTED
1224ac: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED
1224ae: f7 d1 not %ecx <== NOT EXECUTED
1224b0: 49 dec %ecx <== NOT EXECUTED
1224b1: 57 push %edi <== NOT EXECUTED
1224b2: 57 push %edi <== NOT EXECUTED
1224b3: 51 push %ecx <== NOT EXECUTED
1224b4: 52 push %edx <== NOT EXECUTED
1224b5: 89 55 98 mov %edx,-0x68(%ebp) <== NOT EXECUTED
1224b8: e8 3b a8 fe ff call 10ccf8 <rtems_filesystem_prefix_separators><== NOT EXECUTED
path += stripped;
1224bd: 8b 55 98 mov -0x68(%ebp),%edx <== NOT EXECUTED
1224c0: 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))
1224c3: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1224c6: 8b 55 a4 mov -0x5c(%ebp),%edx <== NOT EXECUTED
1224c9: 80 3a 2e cmpb $0x2e,(%edx) <== NOT EXECUTED
1224cc: 75 34 jne 122502 <rtems_rfs_rtems_eval_for_make+0x17f><== NOT EXECUTED
1224ce: 8a 42 01 mov 0x1(%edx),%al <== NOT EXECUTED
1224d1: 84 c0 test %al,%al <== NOT EXECUTED
1224d3: 74 13 je 1224e8 <rtems_rfs_rtems_eval_for_make+0x165><== NOT EXECUTED
1224d5: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1224d8: 0f be c0 movsbl %al,%eax <== NOT EXECUTED
1224db: 50 push %eax <== NOT EXECUTED
1224dc: e8 2b bf fe ff call 10e40c <rtems_filesystem_is_separator><== NOT EXECUTED
1224e1: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1224e4: 85 c0 test %eax,%eax <== NOT EXECUTED
1224e6: 74 1a je 122502 <rtems_rfs_rtems_eval_for_make+0x17f><== NOT EXECUTED
{
if (*path)
1224e8: 80 3f 00 cmpb $0x0,(%edi) <== NOT EXECUTED
1224eb: 0f 84 45 01 00 00 je 122636 <rtems_rfs_rtems_eval_for_make+0x2b3><== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
1224f1: 50 push %eax <== NOT EXECUTED
1224f2: 50 push %eax <== NOT EXECUTED
1224f3: 56 push %esi <== NOT EXECUTED
1224f4: 53 push %ebx <== NOT EXECUTED
1224f5: e8 72 5b 01 00 call 13806c <rtems_rfs_inode_close> <== NOT EXECUTED
continue;
1224fa: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1224fd: e9 09 ff ff ff jmp 12240b <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))
122502: 80 3f 2e cmpb $0x2e,(%edi) <== NOT EXECUTED
122505: 0f 85 b9 00 00 00 jne 1225c4 <rtems_rfs_rtems_eval_for_make+0x241><== NOT EXECUTED
12250b: 80 7f 01 2e cmpb $0x2e,0x1(%edi) <== NOT EXECUTED
12250f: 0f 85 af 00 00 00 jne 1225c4 <rtems_rfs_rtems_eval_for_make+0x241><== NOT EXECUTED
122515: 8d 47 02 lea 0x2(%edi),%eax <== NOT EXECUTED
122518: 89 45 9c mov %eax,-0x64(%ebp) <== NOT EXECUTED
12251b: 8a 47 02 mov 0x2(%edi),%al <== NOT EXECUTED
12251e: 84 c0 test %al,%al <== NOT EXECUTED
122520: 74 17 je 122539 <rtems_rfs_rtems_eval_for_make+0x1b6><== NOT EXECUTED
122522: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
122525: 0f be c0 movsbl %al,%eax <== NOT EXECUTED
122528: 50 push %eax <== NOT EXECUTED
122529: e8 de be fe ff call 10e40c <rtems_filesystem_is_separator><== NOT EXECUTED
12252e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
122531: 85 c0 test %eax,%eax <== NOT EXECUTED
122533: 0f 84 8b 00 00 00 je 1225c4 <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)
122539: 83 7d e4 01 cmpl $0x1,-0x1c(%ebp) <== NOT EXECUTED
12253d: 75 3c jne 12257b <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);
12253f: 56 push %esi <== NOT EXECUTED
122540: 56 push %esi <== NOT EXECUTED
122541: 8d 45 b4 lea -0x4c(%ebp),%eax <== NOT EXECUTED
122544: 50 push %eax <== NOT EXECUTED
122545: 53 push %ebx <== NOT EXECUTED
122546: e8 21 5b 01 00 call 13806c <rtems_rfs_inode_close> <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
12254b: 89 d8 mov %ebx,%eax <== NOT EXECUTED
12254d: e8 a1 f1 ff ff call 1216f3 <rtems_rfs_rtems_unlock><== NOT EXECUTED
*pathloc = pathloc->mt_entry->mt_point_node;
122552: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
122555: 8b 72 10 mov 0x10(%edx),%esi <== NOT EXECUTED
122558: 83 c6 08 add $0x8,%esi <== NOT EXECUTED
12255b: b9 05 00 00 00 mov $0x5,%ecx <== NOT EXECUTED
122560: 89 d7 mov %edx,%edi <== NOT EXECUTED
122562: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED
return (*pathloc->ops->evalformake_h)(path + 2, pathloc, name);
122564: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
122567: 8b 42 0c mov 0xc(%edx),%eax <== NOT EXECUTED
12256a: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
12256d: 52 push %edx <== NOT EXECUTED
12256e: ff 75 9c pushl -0x64(%ebp) <== NOT EXECUTED
122571: ff 50 04 call *0x4(%eax) <== NOT EXECUTED
122574: 89 c7 mov %eax,%edi <== NOT EXECUTED
122576: e9 bb 01 00 00 jmp 122736 <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)))
12257b: 8b 45 c0 mov -0x40(%ebp),%eax <== NOT EXECUTED
12257e: 0f b6 40 02 movzbl 0x2(%eax),%eax <== NOT EXECUTED
122582: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
122585: 25 00 f0 00 00 and $0xf000,%eax <== NOT EXECUTED
12258a: 3d 00 40 00 00 cmp $0x4000,%eax <== NOT EXECUTED
12258f: 74 20 je 1225b1 <rtems_rfs_rtems_eval_for_make+0x22e><== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
122591: 51 push %ecx <== NOT EXECUTED
122592: 51 push %ecx <== NOT EXECUTED
122593: 56 push %esi <== NOT EXECUTED
122594: 53 push %ebx <== NOT EXECUTED
122595: e8 d2 5a 01 00 call 13806c <rtems_rfs_inode_close> <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
12259a: 89 d8 mov %ebx,%eax <== NOT EXECUTED
12259c: e8 52 f1 ff ff call 1216f3 <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("eval_for_make: not dir", ENOTSUP);
1225a1: e8 f2 a7 01 00 call 13cd98 <__errno> <== NOT EXECUTED
1225a6: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
1225ac: e9 52 01 00 00 jmp 122703 <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);
1225b1: 52 push %edx <== NOT EXECUTED
1225b2: 52 push %edx <== NOT EXECUTED
1225b3: 8d 45 dc lea -0x24(%ebp),%eax <== NOT EXECUTED
1225b6: 50 push %eax <== NOT EXECUTED
1225b7: 8d 55 e4 lea -0x1c(%ebp),%edx <== NOT EXECUTED
1225ba: 52 push %edx <== NOT EXECUTED
1225bb: 6a 02 push $0x2 <== NOT EXECUTED
1225bd: 68 8c 7d 15 00 push $0x157d8c <== NOT EXECUTED
1225c2: eb 10 jmp 1225d4 <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,
1225c4: 50 push %eax <== NOT EXECUTED
1225c5: 50 push %eax <== NOT EXECUTED
1225c6: 8d 45 dc lea -0x24(%ebp),%eax <== NOT EXECUTED
1225c9: 50 push %eax <== NOT EXECUTED
1225ca: 8d 55 e4 lea -0x1c(%ebp),%edx <== NOT EXECUTED
1225cd: 52 push %edx <== NOT EXECUTED
1225ce: ff 75 a0 pushl -0x60(%ebp) <== NOT EXECUTED
1225d1: ff 75 a4 pushl -0x5c(%ebp) <== NOT EXECUTED
1225d4: 56 push %esi <== NOT EXECUTED
1225d5: 53 push %ebx <== NOT EXECUTED
1225d6: e8 d2 35 01 00 call 135bad <rtems_rfs_dir_lookup_ino><== NOT EXECUTED
node, node_len - stripped, &ino, &doff);
if (rc > 0)
1225db: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
1225de: 85 c0 test %eax,%eax <== NOT EXECUTED
1225e0: 7e 22 jle 122604 <rtems_rfs_rtems_eval_for_make+0x281><== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
1225e2: 51 push %ecx <== NOT EXECUTED
1225e3: 51 push %ecx <== NOT EXECUTED
1225e4: 56 push %esi <== NOT EXECUTED
1225e5: 53 push %ebx <== NOT EXECUTED
1225e6: 89 45 98 mov %eax,-0x68(%ebp) <== NOT EXECUTED
1225e9: e8 7e 5a 01 00 call 13806c <rtems_rfs_inode_close> <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
1225ee: 89 d8 mov %ebx,%eax <== NOT EXECUTED
1225f0: e8 fe f0 ff ff call 1216f3 <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("eval_for_make: reading inode", rc);
1225f5: e8 9e a7 01 00 call 13cd98 <__errno> <== NOT EXECUTED
1225fa: 8b 55 98 mov -0x68(%ebp),%edx <== NOT EXECUTED
1225fd: 89 10 mov %edx,(%eax) <== NOT EXECUTED
1225ff: e9 ff 00 00 00 jmp 122703 <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);
122604: 50 push %eax <== NOT EXECUTED
122605: 50 push %eax <== NOT EXECUTED
122606: 56 push %esi <== NOT EXECUTED
122607: 53 push %ebx <== NOT EXECUTED
122608: e8 5f 5a 01 00 call 13806c <rtems_rfs_inode_close> <== NOT EXECUTED
12260d: 89 c2 mov %eax,%edx <== NOT EXECUTED
if (rc > 0)
12260f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
122612: 85 c0 test %eax,%eax <== NOT EXECUTED
122614: 0f 8e f1 fd ff ff jle 12240b <rtems_rfs_rtems_eval_for_make+0x88><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
12261a: 89 d8 mov %ebx,%eax <== NOT EXECUTED
12261c: 89 55 98 mov %edx,-0x68(%ebp) <== NOT EXECUTED
12261f: e8 cf f0 ff ff call 1216f3 <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("eval_for_make: closing node", rc);
122624: e8 6f a7 01 00 call 13cd98 <__errno> <== NOT EXECUTED
122629: 8b 55 98 mov -0x68(%ebp),%edx <== NOT EXECUTED
12262c: 89 10 mov %edx,(%eax) <== NOT EXECUTED
12262e: 83 cf ff or $0xffffffff,%edi <== NOT EXECUTED
122631: e9 03 01 00 00 jmp 122739 <rtems_rfs_rtems_eval_for_make+0x3b6><== NOT EXECUTED
}
}
if (!RTEMS_RFS_S_ISDIR (rtems_rfs_inode_get_mode (&inode)))
122636: 8b 45 c0 mov -0x40(%ebp),%eax <== NOT EXECUTED
122639: 0f b6 40 02 movzbl 0x2(%eax),%eax <== NOT EXECUTED
12263d: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
122640: 25 00 f0 00 00 and $0xf000,%eax <== NOT EXECUTED
122645: 3d 00 40 00 00 cmp $0x4000,%eax <== NOT EXECUTED
12264a: 8d 75 b4 lea -0x4c(%ebp),%esi <== NOT EXECUTED
12264d: 74 20 je 12266f <rtems_rfs_rtems_eval_for_make+0x2ec><== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
12264f: 51 push %ecx <== NOT EXECUTED
122650: 51 push %ecx <== NOT EXECUTED
122651: 56 push %esi <== NOT EXECUTED
122652: 53 push %ebx <== NOT EXECUTED
122653: e8 14 5a 01 00 call 13806c <rtems_rfs_inode_close> <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
122658: 89 d8 mov %ebx,%eax <== NOT EXECUTED
12265a: e8 94 f0 ff ff call 1216f3 <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("eval_for_make: not dir", ENOTDIR);
12265f: e8 34 a7 01 00 call 13cd98 <__errno> <== NOT EXECUTED
122664: c7 00 14 00 00 00 movl $0x14,(%eax) <== NOT EXECUTED
12266a: e9 94 00 00 00 jmp 122703 <rtems_rfs_rtems_eval_for_make+0x380><== NOT EXECUTED
}
if (!rtems_rfs_rtems_eval_perms (&inode, RTEMS_LIBIO_PERMS_WX))
12266f: 52 push %edx <== NOT EXECUTED
122670: 52 push %edx <== NOT EXECUTED
122671: 6a 03 push $0x3 <== NOT EXECUTED
122673: 56 push %esi <== NOT EXECUTED
122674: e8 73 03 00 00 call 1229ec <rtems_rfs_rtems_eval_perms><== NOT EXECUTED
122679: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12267c: 84 c0 test %al,%al <== NOT EXECUTED
12267e: 75 1d jne 12269d <rtems_rfs_rtems_eval_for_make+0x31a><== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
122680: 50 push %eax <== NOT EXECUTED
122681: 50 push %eax <== NOT EXECUTED
122682: 56 push %esi <== NOT EXECUTED
122683: 53 push %ebx <== NOT EXECUTED
122684: e8 e3 59 01 00 call 13806c <rtems_rfs_inode_close> <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
122689: 89 d8 mov %ebx,%eax <== NOT EXECUTED
12268b: e8 63 f0 ff ff call 1216f3 <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("eval_for_make: cannot write", EACCES);
122690: e8 03 a7 01 00 call 13cd98 <__errno> <== NOT EXECUTED
122695: c7 00 0d 00 00 00 movl $0xd,(%eax) <== NOT EXECUTED
12269b: eb 66 jmp 122703 <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),
12269d: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
1226a0: 8b 10 mov (%eax),%edx <== NOT EXECUTED
1226a2: 31 c0 xor %eax,%eax <== NOT EXECUTED
1226a4: 83 c9 ff or $0xffffffff,%ecx <== NOT EXECUTED
1226a7: 89 d7 mov %edx,%edi <== NOT EXECUTED
1226a9: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED
1226ab: f7 d1 not %ecx <== NOT EXECUTED
1226ad: 49 dec %ecx <== NOT EXECUTED
1226ae: 57 push %edi <== NOT EXECUTED
1226af: 57 push %edi <== NOT EXECUTED
1226b0: 8d 45 dc lea -0x24(%ebp),%eax <== NOT EXECUTED
1226b3: 50 push %eax <== NOT EXECUTED
1226b4: 8d 45 e0 lea -0x20(%ebp),%eax <== NOT EXECUTED
1226b7: 50 push %eax <== NOT EXECUTED
1226b8: 51 push %ecx <== NOT EXECUTED
1226b9: 52 push %edx <== NOT EXECUTED
1226ba: 56 push %esi <== NOT EXECUTED
1226bb: 53 push %ebx <== NOT EXECUTED
1226bc: e8 ec 34 01 00 call 135bad <rtems_rfs_dir_lookup_ino><== NOT EXECUTED
1226c1: 89 c7 mov %eax,%edi <== NOT EXECUTED
&node_ino, &doff);
if (rc == 0)
1226c3: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
1226c6: 85 c0 test %eax,%eax <== NOT EXECUTED
1226c8: 75 1d jne 1226e7 <rtems_rfs_rtems_eval_for_make+0x364><== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
1226ca: 52 push %edx <== NOT EXECUTED
1226cb: 52 push %edx <== NOT EXECUTED
1226cc: 56 push %esi <== NOT EXECUTED
1226cd: 53 push %ebx <== NOT EXECUTED
1226ce: e8 99 59 01 00 call 13806c <rtems_rfs_inode_close> <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
1226d3: 89 d8 mov %ebx,%eax <== NOT EXECUTED
1226d5: e8 19 f0 ff ff call 1216f3 <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("eval_for_make: found name", EEXIST);
1226da: e8 b9 a6 01 00 call 13cd98 <__errno> <== NOT EXECUTED
1226df: c7 00 11 00 00 00 movl $0x11,(%eax) <== NOT EXECUTED
1226e5: eb 1c jmp 122703 <rtems_rfs_rtems_eval_for_make+0x380><== NOT EXECUTED
}
if (rc != ENOENT)
1226e7: 83 f8 02 cmp $0x2,%eax <== NOT EXECUTED
1226ea: 74 1c je 122708 <rtems_rfs_rtems_eval_for_make+0x385><== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
1226ec: 50 push %eax <== NOT EXECUTED
1226ed: 50 push %eax <== NOT EXECUTED
1226ee: 56 push %esi <== NOT EXECUTED
1226ef: 53 push %ebx <== NOT EXECUTED
1226f0: e8 77 59 01 00 call 13806c <rtems_rfs_inode_close> <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
1226f5: 89 d8 mov %ebx,%eax <== NOT EXECUTED
1226f7: e8 f7 ef ff ff call 1216f3 <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("eval_for_make: look up", rc);
1226fc: e8 97 a6 01 00 call 13cd98 <__errno> <== NOT EXECUTED
122701: 89 38 mov %edi,(%eax) <== NOT EXECUTED
122703: 83 cf ff or $0xffffffff,%edi <== NOT EXECUTED
122706: eb 2e jmp 122736 <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);
122708: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
12270b: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
12270e: 89 02 mov %eax,(%edx) <== NOT EXECUTED
rtems_rfs_rtems_set_pathloc_doff (pathloc, doff);
122710: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED
122713: 89 42 04 mov %eax,0x4(%edx) <== NOT EXECUTED
rc = rtems_rfs_rtems_set_handlers (pathloc, &inode) ? 0 : EIO;
122716: 57 push %edi <== NOT EXECUTED
122717: 57 push %edi <== NOT EXECUTED
122718: 56 push %esi <== NOT EXECUTED
122719: 52 push %edx <== NOT EXECUTED
12271a: e8 14 03 00 00 call 122a33 <rtems_rfs_rtems_set_handlers><== NOT EXECUTED
12271f: 5a pop %edx <== NOT EXECUTED
122720: 59 pop %ecx <== NOT EXECUTED
122721: 3c 01 cmp $0x1,%al <== NOT EXECUTED
122723: 19 ff sbb %edi,%edi <== NOT EXECUTED
122725: 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);
122728: 56 push %esi <== NOT EXECUTED
122729: 53 push %ebx <== NOT EXECUTED
12272a: e8 3d 59 01 00 call 13806c <rtems_rfs_inode_close> <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
12272f: 89 d8 mov %ebx,%eax <== NOT EXECUTED
122731: e8 bd ef ff ff call 1216f3 <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rc;
122736: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
122739: 89 f8 mov %edi,%eax <== NOT EXECUTED
12273b: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
12273e: 5b pop %ebx <== NOT EXECUTED
12273f: 5e pop %esi <== NOT EXECUTED
122740: 5f pop %edi <== NOT EXECUTED
122741: c9 leave <== NOT EXECUTED
122742: c3 ret <== NOT EXECUTED
00122743 <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)
{
122743: 55 push %ebp <== NOT EXECUTED
122744: 89 e5 mov %esp,%ebp <== NOT EXECUTED
122746: 57 push %edi <== NOT EXECUTED
122747: 56 push %esi <== NOT EXECUTED
122748: 53 push %ebx <== NOT EXECUTED
122749: 83 ec 64 sub $0x64,%esp <== NOT EXECUTED
12274c: 8b 75 0c mov 0xc(%ebp),%esi <== NOT EXECUTED
12274f: 8b 5d 14 mov 0x14(%ebp),%ebx <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
122752: 8b 43 10 mov 0x10(%ebx),%eax <== NOT EXECUTED
122755: 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);
122758: 8b 03 mov (%ebx),%eax <== NOT EXECUTED
12275a: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
uint32_t doff = 0;
12275d: 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);
122764: 56 push %esi <== NOT EXECUTED
122765: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
122768: e8 8b a5 fe ff call 10ccf8 <rtems_filesystem_prefix_separators><== NOT EXECUTED
path += stripped;
12276d: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
122770: 01 c2 add %eax,%edx <== NOT EXECUTED
122772: 89 55 ac mov %edx,-0x54(%ebp) <== NOT EXECUTED
pathlen -= stripped;
122775: 29 c6 sub %eax,%esi <== NOT EXECUTED
122777: 89 75 b0 mov %esi,-0x50(%ebp) <== NOT EXECUTED
rtems_rfs_rtems_lock (fs);
12277a: 89 f8 mov %edi,%eax <== NOT EXECUTED
12277c: e8 59 ef ff ff call 1216da <rtems_rfs_rtems_lock> <== NOT EXECUTED
122781: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
while (true)
{
/*
* Open and load the inode.
*/
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
122784: 8d 75 b8 lea -0x48(%ebp),%esi <== NOT EXECUTED
122787: 89 7d b4 mov %edi,-0x4c(%ebp) <== NOT EXECUTED
12278a: 89 5d a4 mov %ebx,-0x5c(%ebp) <== NOT EXECUTED
12278d: 8b 5d ac mov -0x54(%ebp),%ebx <== NOT EXECUTED
122790: eb 02 jmp 122794 <rtems_rfs_rtems_eval_path+0x51><== NOT EXECUTED
*/
stripped = rtems_filesystem_prefix_separators (path, pathlen);
path += stripped;
pathlen -= stripped;
rtems_rfs_rtems_lock (fs);
122792: 89 fb mov %edi,%ebx <== NOT EXECUTED
while (true)
{
/*
* Open and load the inode.
*/
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
122794: 6a 01 push $0x1 <== NOT EXECUTED
122796: 56 push %esi <== NOT EXECUTED
122797: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
12279a: ff 75 b4 pushl -0x4c(%ebp) <== NOT EXECUTED
12279d: e8 39 59 01 00 call 1380db <rtems_rfs_inode_open> <== NOT EXECUTED
1227a2: 89 c2 mov %eax,%edx <== NOT EXECUTED
if (rc > 0)
1227a4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1227a7: 85 c0 test %eax,%eax <== NOT EXECUTED
1227a9: 7e 1f jle 1227ca <rtems_rfs_rtems_eval_path+0x87><== NOT EXECUTED
1227ab: 8b 7d b4 mov -0x4c(%ebp),%edi <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
1227ae: 89 f8 mov %edi,%eax <== NOT EXECUTED
1227b0: 89 55 a0 mov %edx,-0x60(%ebp) <== NOT EXECUTED
1227b3: e8 3b ef ff ff call 1216f3 <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("eval_path: opening inode", rc);
1227b8: e8 db a5 01 00 call 13cd98 <__errno> <== NOT EXECUTED
1227bd: 8b 55 a0 mov -0x60(%ebp),%edx <== NOT EXECUTED
1227c0: 89 10 mov %edx,(%eax) <== NOT EXECUTED
1227c2: 83 cb ff or $0xffffffff,%ebx <== NOT EXECUTED
1227c5: e9 16 02 00 00 jmp 1229e0 <rtems_rfs_rtems_eval_path+0x29d><== NOT EXECUTED
}
/*
* Is this the end of the pathname we where given ?
*/
if ((*path == '\0') || (pathlen == 0))
1227ca: 80 3b 00 cmpb $0x0,(%ebx) <== NOT EXECUTED
1227cd: 0f 84 d6 01 00 00 je 1229a9 <rtems_rfs_rtems_eval_path+0x266><== NOT EXECUTED
1227d3: 83 7d b0 00 cmpl $0x0,-0x50(%ebp) <== NOT EXECUTED
1227d7: 0f 84 cc 01 00 00 je 1229a9 <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)) &&
1227dd: 8b 45 c4 mov -0x3c(%ebp),%eax <== NOT EXECUTED
1227e0: 0f b6 40 02 movzbl 0x2(%eax),%eax <== NOT EXECUTED
1227e4: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
1227e7: 25 00 f0 00 00 and $0xf000,%eax <== NOT EXECUTED
1227ec: 3d 00 40 00 00 cmp $0x4000,%eax <== NOT EXECUTED
1227f1: 74 0b je 1227fe <rtems_rfs_rtems_eval_path+0xbb><== NOT EXECUTED
1227f3: 89 df mov %ebx,%edi <== NOT EXECUTED
1227f5: c7 45 a8 00 00 00 00 movl $0x0,-0x58(%ebp) <== NOT EXECUTED
1227fc: eb 3b jmp 122839 <rtems_rfs_rtems_eval_path+0xf6><== NOT EXECUTED
1227fe: 57 push %edi <== NOT EXECUTED
1227ff: 57 push %edi <== NOT EXECUTED
122800: 6a 01 push $0x1 <== NOT EXECUTED
122802: 56 push %esi <== NOT EXECUTED
122803: e8 e4 01 00 00 call 1229ec <rtems_rfs_rtems_eval_perms><== NOT EXECUTED
122808: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12280b: 84 c0 test %al,%al <== NOT EXECUTED
12280d: 75 e4 jne 1227f3 <rtems_rfs_rtems_eval_path+0xb0><== NOT EXECUTED
12280f: 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);
122812: 53 push %ebx <== NOT EXECUTED
122813: 53 push %ebx <== NOT EXECUTED
122814: 56 push %esi <== NOT EXECUTED
122815: 57 push %edi <== NOT EXECUTED
122816: e8 51 58 01 00 call 13806c <rtems_rfs_inode_close> <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
12281b: 89 f8 mov %edi,%eax <== NOT EXECUTED
12281d: e8 d1 ee ff ff call 1216f3 <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("eval_path: eval perms", EACCES);
122822: e8 71 a5 01 00 call 13cd98 <__errno> <== NOT EXECUTED
122827: c7 00 0d 00 00 00 movl $0xd,(%eax) <== NOT EXECUTED
12282d: e9 72 01 00 00 jmp 1229a4 <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++;
122832: 47 inc %edi <== NOT EXECUTED
pathlen--;
122833: ff 4d b0 decl -0x50(%ebp) <== NOT EXECUTED
122836: 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) &&
122839: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12283c: 0f be 07 movsbl (%edi),%eax <== NOT EXECUTED
12283f: 50 push %eax <== NOT EXECUTED
122840: e8 c7 bb fe ff call 10e40c <rtems_filesystem_is_separator><== NOT EXECUTED
122845: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
122848: 85 c0 test %eax,%eax <== NOT EXECUTED
12284a: 75 17 jne 122863 <rtems_rfs_rtems_eval_path+0x120><== NOT EXECUTED
12284c: 83 7d b0 00 cmpl $0x0,-0x50(%ebp) <== NOT EXECUTED
122850: 74 11 je 122863 <rtems_rfs_rtems_eval_path+0x120><== NOT EXECUTED
122852: 80 3f 00 cmpb $0x0,(%edi) <== NOT EXECUTED
122855: 74 0c je 122863 <rtems_rfs_rtems_eval_path+0x120><== NOT EXECUTED
(*path != '\0') && pathlen &&
((node_len + 1) < rtems_rfs_fs_max_name (fs)))
122857: 8b 45 a8 mov -0x58(%ebp),%eax <== NOT EXECUTED
12285a: 40 inc %eax <== NOT EXECUTED
12285b: 8b 55 b4 mov -0x4c(%ebp),%edx <== NOT EXECUTED
12285e: 3b 42 18 cmp 0x18(%edx),%eax <== NOT EXECUTED
122861: 72 cf jb 122832 <rtems_rfs_rtems_eval_path+0xef><== NOT EXECUTED
}
/*
* Eat any separators at start of the path.
*/
stripped = rtems_filesystem_prefix_separators (path, pathlen);
122863: 51 push %ecx <== NOT EXECUTED
122864: 51 push %ecx <== NOT EXECUTED
122865: ff 75 b0 pushl -0x50(%ebp) <== NOT EXECUTED
122868: 57 push %edi <== NOT EXECUTED
122869: e8 8a a4 fe ff call 10ccf8 <rtems_filesystem_prefix_separators><== NOT EXECUTED
12286e: 89 45 ac mov %eax,-0x54(%ebp) <== NOT EXECUTED
path += stripped;
122871: 01 c7 add %eax,%edi <== NOT EXECUTED
pathlen -= stripped;
122873: 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))
122876: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
122879: 80 3b 2e cmpb $0x2e,(%ebx) <== NOT EXECUTED
12287c: 75 36 jne 1228b4 <rtems_rfs_rtems_eval_path+0x171><== NOT EXECUTED
12287e: 8a 43 01 mov 0x1(%ebx),%al <== NOT EXECUTED
122881: 84 c0 test %al,%al <== NOT EXECUTED
122883: 74 13 je 122898 <rtems_rfs_rtems_eval_path+0x155><== NOT EXECUTED
122885: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
122888: 0f be c0 movsbl %al,%eax <== NOT EXECUTED
12288b: 50 push %eax <== NOT EXECUTED
12288c: e8 7b bb fe ff call 10e40c <rtems_filesystem_is_separator><== NOT EXECUTED
122891: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
122894: 85 c0 test %eax,%eax <== NOT EXECUTED
122896: 74 1c je 1228b4 <rtems_rfs_rtems_eval_path+0x171><== NOT EXECUTED
{
if (*path)
122898: 80 3f 00 cmpb $0x0,(%edi) <== NOT EXECUTED
12289b: 0f 84 08 01 00 00 je 1229a9 <rtems_rfs_rtems_eval_path+0x266><== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
1228a1: 52 push %edx <== NOT EXECUTED
1228a2: 52 push %edx <== NOT EXECUTED
1228a3: 56 push %esi <== NOT EXECUTED
1228a4: ff 75 b4 pushl -0x4c(%ebp) <== NOT EXECUTED
1228a7: e8 c0 57 01 00 call 13806c <rtems_rfs_inode_close> <== NOT EXECUTED
continue;
1228ac: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1228af: e9 de fe ff ff jmp 122792 <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;
1228b4: 8b 45 ac mov -0x54(%ebp),%eax <== NOT EXECUTED
1228b7: 03 45 a8 add -0x58(%ebp),%eax <== NOT EXECUTED
1228ba: 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))
1228bd: 80 3b 2e cmpb $0x2e,(%ebx) <== NOT EXECUTED
1228c0: 0f 85 82 00 00 00 jne 122948 <rtems_rfs_rtems_eval_path+0x205><== NOT EXECUTED
1228c6: 80 7b 01 2e cmpb $0x2e,0x1(%ebx) <== NOT EXECUTED
1228ca: 75 7c jne 122948 <rtems_rfs_rtems_eval_path+0x205><== NOT EXECUTED
1228cc: 8a 43 02 mov 0x2(%ebx),%al <== NOT EXECUTED
1228cf: 84 c0 test %al,%al <== NOT EXECUTED
1228d1: 74 13 je 1228e6 <rtems_rfs_rtems_eval_path+0x1a3><== NOT EXECUTED
1228d3: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1228d6: 0f be c0 movsbl %al,%eax <== NOT EXECUTED
1228d9: 50 push %eax <== NOT EXECUTED
1228da: e8 2d bb fe ff call 10e40c <rtems_filesystem_is_separator><== NOT EXECUTED
1228df: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1228e2: 85 c0 test %eax,%eax <== NOT EXECUTED
1228e4: 74 62 je 122948 <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)
1228e6: 83 7d e4 01 cmpl $0x1,-0x1c(%ebp) <== NOT EXECUTED
1228ea: 75 49 jne 122935 <rtems_rfs_rtems_eval_path+0x1f2><== NOT EXECUTED
1228ec: 89 7d ac mov %edi,-0x54(%ebp) <== NOT EXECUTED
1228ef: 8b 7d b4 mov -0x4c(%ebp),%edi <== NOT EXECUTED
1228f2: 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);
1228f5: 50 push %eax <== NOT EXECUTED
1228f6: 50 push %eax <== NOT EXECUTED
1228f7: 56 push %esi <== NOT EXECUTED
1228f8: 57 push %edi <== NOT EXECUTED
1228f9: e8 6e 57 01 00 call 13806c <rtems_rfs_inode_close> <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
1228fe: 89 f8 mov %edi,%eax <== NOT EXECUTED
122900: e8 ee ed ff ff call 1216f3 <rtems_rfs_rtems_unlock><== NOT EXECUTED
*pathloc = pathloc->mt_entry->mt_point_node;
122905: 8b 73 10 mov 0x10(%ebx),%esi <== NOT EXECUTED
122908: 83 c6 08 add $0x8,%esi <== NOT EXECUTED
12290b: b9 05 00 00 00 mov $0x5,%ecx <== NOT EXECUTED
122910: 89 df mov %ebx,%edi <== NOT EXECUTED
122912: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED
return (*pathloc->ops->evalpath_h)(path - node_len, pathlen + node_len,
122914: 8b 43 0c mov 0xc(%ebx),%eax <== NOT EXECUTED
122917: 53 push %ebx <== NOT EXECUTED
122918: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
12291b: 8b 55 a8 mov -0x58(%ebp),%edx <== NOT EXECUTED
12291e: 03 55 b0 add -0x50(%ebp),%edx <== NOT EXECUTED
122921: 52 push %edx <== NOT EXECUTED
122922: 8b 55 ac mov -0x54(%ebp),%edx <== NOT EXECUTED
122925: 2b 55 a8 sub -0x58(%ebp),%edx <== NOT EXECUTED
122928: 52 push %edx <== NOT EXECUTED
122929: ff 10 call *(%eax) <== NOT EXECUTED
12292b: 89 c3 mov %eax,%ebx <== NOT EXECUTED
12292d: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
122930: e9 ab 00 00 00 jmp 1229e0 <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);
122935: 53 push %ebx <== NOT EXECUTED
122936: 53 push %ebx <== NOT EXECUTED
122937: 8d 55 e0 lea -0x20(%ebp),%edx <== NOT EXECUTED
12293a: 52 push %edx <== NOT EXECUTED
12293b: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
12293e: 50 push %eax <== NOT EXECUTED
12293f: 6a 02 push $0x2 <== NOT EXECUTED
122941: 68 8c 7d 15 00 push $0x157d8c <== NOT EXECUTED
122946: eb 12 jmp 12295a <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,
122948: 51 push %ecx <== NOT EXECUTED
122949: 51 push %ecx <== NOT EXECUTED
12294a: 8d 55 e0 lea -0x20(%ebp),%edx <== NOT EXECUTED
12294d: 52 push %edx <== NOT EXECUTED
12294e: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
122951: 50 push %eax <== NOT EXECUTED
122952: 8b 45 a8 mov -0x58(%ebp),%eax <== NOT EXECUTED
122955: 2b 45 ac sub -0x54(%ebp),%eax <== NOT EXECUTED
122958: 50 push %eax <== NOT EXECUTED
122959: 53 push %ebx <== NOT EXECUTED
12295a: 56 push %esi <== NOT EXECUTED
12295b: ff 75 b4 pushl -0x4c(%ebp) <== NOT EXECUTED
12295e: e8 4a 32 01 00 call 135bad <rtems_rfs_dir_lookup_ino><== NOT EXECUTED
122963: 89 c2 mov %eax,%edx <== NOT EXECUTED
node, node_len - stripped, &ino, &doff);
if (rc > 0)
122965: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
122968: 85 c0 test %eax,%eax <== NOT EXECUTED
12296a: 7f 18 jg 122984 <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);
12296c: 52 push %edx <== NOT EXECUTED
12296d: 52 push %edx <== NOT EXECUTED
12296e: 56 push %esi <== NOT EXECUTED
12296f: ff 75 b4 pushl -0x4c(%ebp) <== NOT EXECUTED
122972: e8 f5 56 01 00 call 13806c <rtems_rfs_inode_close> <== NOT EXECUTED
122977: 89 c2 mov %eax,%edx <== NOT EXECUTED
if (rc > 0)
122979: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12297c: 85 c0 test %eax,%eax <== NOT EXECUTED
12297e: 0f 8e 0e fe ff ff jle 122792 <rtems_rfs_rtems_eval_path+0x4f><== NOT EXECUTED
122984: 8b 7d b4 mov -0x4c(%ebp),%edi <== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
122987: 50 push %eax <== NOT EXECUTED
122988: 50 push %eax <== NOT EXECUTED
122989: 56 push %esi <== NOT EXECUTED
12298a: 57 push %edi <== NOT EXECUTED
12298b: 89 55 a0 mov %edx,-0x60(%ebp) <== NOT EXECUTED
12298e: e8 d9 56 01 00 call 13806c <rtems_rfs_inode_close> <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
122993: 89 f8 mov %edi,%eax <== NOT EXECUTED
122995: e8 59 ed ff ff call 1216f3 <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("eval_path: closing node", rc);
12299a: e8 f9 a3 01 00 call 13cd98 <__errno> <== NOT EXECUTED
12299f: 8b 55 a0 mov -0x60(%ebp),%edx <== NOT EXECUTED
1229a2: 89 10 mov %edx,(%eax) <== NOT EXECUTED
1229a4: 83 cb ff or $0xffffffff,%ebx <== NOT EXECUTED
1229a7: eb 34 jmp 1229dd <rtems_rfs_rtems_eval_path+0x29a><== NOT EXECUTED
1229a9: 8b 7d b4 mov -0x4c(%ebp),%edi <== NOT EXECUTED
1229ac: 8b 5d a4 mov -0x5c(%ebp),%ebx <== NOT EXECUTED
}
}
rtems_rfs_rtems_set_pathloc_ino (pathloc, ino);
1229af: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
1229b2: 89 03 mov %eax,(%ebx) <== NOT EXECUTED
rtems_rfs_rtems_set_pathloc_doff (pathloc, doff);
1229b4: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
1229b7: 89 43 04 mov %eax,0x4(%ebx) <== NOT EXECUTED
rc = rtems_rfs_rtems_set_handlers (pathloc, &inode) ? 0 : EIO;
1229ba: 56 push %esi <== NOT EXECUTED
1229bb: 56 push %esi <== NOT EXECUTED
1229bc: 8d 75 b8 lea -0x48(%ebp),%esi <== NOT EXECUTED
1229bf: 56 push %esi <== NOT EXECUTED
1229c0: 53 push %ebx <== NOT EXECUTED
1229c1: e8 6d 00 00 00 call 122a33 <rtems_rfs_rtems_set_handlers><== NOT EXECUTED
1229c6: 59 pop %ecx <== NOT EXECUTED
1229c7: 5b pop %ebx <== NOT EXECUTED
1229c8: 3c 01 cmp $0x1,%al <== NOT EXECUTED
1229ca: 19 db sbb %ebx,%ebx <== NOT EXECUTED
1229cc: 83 e3 05 and $0x5,%ebx <== NOT EXECUTED
rtems_rfs_inode_close (fs, &inode);
1229cf: 56 push %esi <== NOT EXECUTED
1229d0: 57 push %edi <== NOT EXECUTED
1229d1: e8 96 56 01 00 call 13806c <rtems_rfs_inode_close> <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
1229d6: 89 f8 mov %edi,%eax <== NOT EXECUTED
1229d8: e8 16 ed ff ff call 1216f3 <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;
1229dd: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
1229e0: 89 d8 mov %ebx,%eax <== NOT EXECUTED
1229e2: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1229e5: 5b pop %ebx <== NOT EXECUTED
1229e6: 5e pop %esi <== NOT EXECUTED
1229e7: 5f pop %edi <== NOT EXECUTED
1229e8: c9 leave <== NOT EXECUTED
1229e9: c3 ret <== NOT EXECUTED
001229ec <rtems_rfs_rtems_eval_perms>:
#include "rtems-rfs-rtems.h"
bool
rtems_rfs_rtems_eval_perms (rtems_rfs_inode_handle* inode, int flags)
{
1229ec: 55 push %ebp <== NOT EXECUTED
1229ed: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1229ef: 53 push %ebx <== NOT EXECUTED
1229f0: 8b 55 0c mov 0xc(%ebp),%edx <== 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);
1229f3: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
1229f6: 8b 58 0c mov 0xc(%eax),%ebx <== 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))
flags_to_test |= flags << 6;
1229f9: 89 d0 mov %edx,%eax <== NOT EXECUTED
1229fb: c1 e0 06 shl $0x6,%eax <== NOT EXECUTED
1229fe: 8d 0c d5 00 00 00 00 lea 0x0(,%edx,8),%ecx <== NOT EXECUTED
122a05: 09 c8 or %ecx,%eax <== NOT EXECUTED
122a07: 09 d0 or %edx,%eax <== NOT EXECUTED
122a09: 25 ff 01 00 00 and $0x1ff,%eax <== NOT EXECUTED
122a0e: 0f b6 4b 02 movzbl 0x2(%ebx),%ecx <== NOT EXECUTED
122a12: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
122a15: 0f b6 53 03 movzbl 0x3(%ebx),%edx <== NOT EXECUTED
122a19: 09 ca or %ecx,%edx <== NOT EXECUTED
122a1b: 85 d0 test %edx,%eax <== NOT EXECUTED
122a1d: 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;
}
122a20: 5b pop %ebx <== NOT EXECUTED
122a21: c9 leave <== NOT EXECUTED
122a22: c3 ret <== NOT EXECUTED
001217d6 <rtems_rfs_rtems_fchmod>:
* @return int
*/
int
rtems_rfs_rtems_fchmod (rtems_filesystem_location_info_t* pathloc,
mode_t mode)
{
1217d6: 55 push %ebp <== NOT EXECUTED
1217d7: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1217d9: 57 push %edi <== NOT EXECUTED
1217da: 56 push %esi <== NOT EXECUTED
1217db: 53 push %ebx <== NOT EXECUTED
1217dc: 83 ec 3c sub $0x3c,%esp <== NOT EXECUTED
1217df: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
1217e2: 8b 50 10 mov 0x10(%eax),%edx <== NOT EXECUTED
1217e5: 8b 5a 34 mov 0x34(%edx),%ebx <== NOT EXECUTED
rtems_rfs_ino ino = rtems_rfs_rtems_get_pathloc_ino (pathloc);
1217e8: 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);
1217ea: 89 d8 mov %ebx,%eax <== NOT EXECUTED
1217ec: e8 e9 fe ff ff call 1216da <rtems_rfs_rtems_lock> <== NOT EXECUTED
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
1217f1: 6a 01 push $0x1 <== NOT EXECUTED
1217f3: 8d 75 c0 lea -0x40(%ebp),%esi <== NOT EXECUTED
1217f6: 56 push %esi <== NOT EXECUTED
1217f7: 57 push %edi <== NOT EXECUTED
1217f8: 53 push %ebx <== NOT EXECUTED
1217f9: e8 dd 68 01 00 call 1380db <rtems_rfs_inode_open> <== NOT EXECUTED
1217fe: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc)
121800: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
121803: 85 c0 test %eax,%eax <== NOT EXECUTED
121805: 74 10 je 121817 <rtems_rfs_rtems_fchmod+0x41><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
121807: 89 d8 mov %ebx,%eax <== NOT EXECUTED
121809: e8 e5 fe ff ff call 1216f3 <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("fchmod: opening inode", rc);
12180e: e8 85 b5 01 00 call 13cd98 <__errno> <== NOT EXECUTED
121813: 89 38 mov %edi,(%eax) <== NOT EXECUTED
121815: eb 4b jmp 121862 <rtems_rfs_rtems_fchmod+0x8c><== 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);
121817: 8b 55 cc mov -0x34(%ebp),%edx <== NOT EXECUTED
12181a: 0f b6 42 02 movzbl 0x2(%edx),%eax <== NOT EXECUTED
12181e: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
return rtems_rfs_rtems_error ("fchmod: not owner", EPERM);
}
#endif
imode &= ~(S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX);
121821: 66 25 00 f0 and $0xf000,%ax <== NOT EXECUTED
imode |= mode & (S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX);
121825: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED
121828: 66 81 e1 ff 0f and $0xfff,%cx <== NOT EXECUTED
12182d: 09 c8 or %ecx,%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);
12182f: 89 c1 mov %eax,%ecx <== NOT EXECUTED
121831: 66 c1 e9 08 shr $0x8,%cx <== NOT EXECUTED
121835: 88 4a 02 mov %cl,0x2(%edx) <== NOT EXECUTED
121838: 8b 55 cc mov -0x34(%ebp),%edx <== NOT EXECUTED
12183b: 88 42 03 mov %al,0x3(%edx) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
12183e: c6 45 d0 01 movb $0x1,-0x30(%ebp) <== NOT EXECUTED
rtems_rfs_inode_set_mode (&inode, imode);
rc = rtems_rfs_inode_close (fs, &inode);
121842: 51 push %ecx <== NOT EXECUTED
121843: 51 push %ecx <== NOT EXECUTED
121844: 56 push %esi <== NOT EXECUTED
121845: 53 push %ebx <== NOT EXECUTED
121846: e8 21 68 01 00 call 13806c <rtems_rfs_inode_close> <== NOT EXECUTED
12184b: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
12184d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
121850: 85 c0 test %eax,%eax <== NOT EXECUTED
121852: 7e 13 jle 121867 <rtems_rfs_rtems_fchmod+0x91><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
121854: 89 d8 mov %ebx,%eax <== NOT EXECUTED
121856: e8 98 fe ff ff call 1216f3 <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("fchmod: closing inode", rc);
12185b: e8 38 b5 01 00 call 13cd98 <__errno> <== NOT EXECUTED
121860: 89 30 mov %esi,(%eax) <== NOT EXECUTED
121862: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
121865: eb 09 jmp 121870 <rtems_rfs_rtems_fchmod+0x9a><== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
121867: 89 d8 mov %ebx,%eax <== NOT EXECUTED
121869: e8 85 fe ff ff call 1216f3 <rtems_rfs_rtems_unlock><== NOT EXECUTED
12186e: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
}
121870: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
121873: 5b pop %ebx <== NOT EXECUTED
121874: 5e pop %esi <== NOT EXECUTED
121875: 5f pop %edi <== NOT EXECUTED
121876: c9 leave <== NOT EXECUTED
121877: c3 ret <== NOT EXECUTED
001216d3 <rtems_rfs_rtems_fcntl>:
*/
int
rtems_rfs_rtems_fcntl (int cmd,
rtems_libio_t* iop)
{
1216d3: 55 push %ebp <== NOT EXECUTED
1216d4: 89 e5 mov %esp,%ebp <== NOT EXECUTED
return 0;
}
1216d6: 31 c0 xor %eax,%eax <== NOT EXECUTED
1216d8: c9 leave <== NOT EXECUTED
1216d9: c3 ret <== NOT EXECUTED
00121e51 <rtems_rfs_rtems_fdatasync>:
* @param iop
* @return int
*/
int
rtems_rfs_rtems_fdatasync (rtems_libio_t* iop)
{
121e51: 55 push %ebp <== NOT EXECUTED
121e52: 89 e5 mov %esp,%ebp <== NOT EXECUTED
121e54: 53 push %ebx <== NOT EXECUTED
121e55: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED
int rc;
rc = rtems_rfs_buffer_sync (rtems_rfs_rtems_pathloc_dev (&iop->pathinfo));
121e58: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
121e5b: 8b 40 28 mov 0x28(%eax),%eax <== NOT EXECUTED
121e5e: ff 70 34 pushl 0x34(%eax) <== NOT EXECUTED
121e61: e8 34 30 01 00 call 134e9a <rtems_rfs_buffer_sync> <== NOT EXECUTED
121e66: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc)
121e68: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
121e6b: 31 c0 xor %eax,%eax <== NOT EXECUTED
121e6d: 85 db test %ebx,%ebx <== NOT EXECUTED
121e6f: 74 0a je 121e7b <rtems_rfs_rtems_fdatasync+0x2a><== NOT EXECUTED
return rtems_rfs_rtems_error ("fdatasync: sync", rc);
121e71: e8 22 af 01 00 call 13cd98 <__errno> <== NOT EXECUTED
121e76: 89 18 mov %ebx,(%eax) <== NOT EXECUTED
121e78: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
return 0;
}
121e7b: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
121e7e: c9 leave <== NOT EXECUTED
121e7f: c3 ret <== NOT EXECUTED
0013903b <rtems_rfs_rtems_file_close>:
* @param iop
* @return int
*/
static int
rtems_rfs_rtems_file_close (rtems_libio_t* iop)
{
13903b: 55 push %ebp <== NOT EXECUTED
13903c: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13903e: 56 push %esi <== NOT EXECUTED
13903f: 53 push %ebx <== NOT EXECUTED
rtems_rfs_file_handle* file = iop->file_info;
139040: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
139043: 8b 58 38 mov 0x38(%eax),%ebx <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_file_fs (file);
139046: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
139049: 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);
13904f: 50 push %eax <== NOT EXECUTED
139050: 6a 00 push $0x0 <== NOT EXECUTED
139052: 6a 00 push $0x0 <== NOT EXECUTED
139054: 8b 46 7c mov 0x7c(%esi),%eax <== NOT EXECUTED
139057: ff 30 pushl (%eax) <== NOT EXECUTED
139059: e8 aa 7b 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);
13905e: 5a pop %edx <== NOT EXECUTED
13905f: 59 pop %ecx <== NOT EXECUTED
139060: 53 push %ebx <== NOT EXECUTED
139061: 56 push %esi <== NOT EXECUTED
139062: e8 b0 d3 ff ff call 136417 <rtems_rfs_file_close> <== NOT EXECUTED
139067: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc > 0)
139069: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13906c: 85 c0 test %eax,%eax <== NOT EXECUTED
13906e: 7e 0a jle 13907a <rtems_rfs_rtems_file_close+0x3f><== NOT EXECUTED
rc = rtems_rfs_rtems_error ("file-close: file close", rc);
139070: e8 23 3d 00 00 call 13cd98 <__errno> <== NOT EXECUTED
139075: 89 18 mov %ebx,(%eax) <== NOT EXECUTED
139077: 83 cb ff or $0xffffffff,%ebx <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
13907a: 89 f0 mov %esi,%eax <== NOT EXECUTED
13907c: e8 9a ff ff ff call 13901b <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rc;
}
139081: 89 d8 mov %ebx,%eax <== NOT EXECUTED
139083: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
139086: 5b pop %ebx <== NOT EXECUTED
139087: 5e pop %esi <== NOT EXECUTED
139088: c9 leave <== NOT EXECUTED
139089: c3 ret <== NOT EXECUTED
0013910f <rtems_rfs_rtems_file_ftruncate>:
* @return int
*/
int
rtems_rfs_rtems_file_ftruncate (rtems_libio_t* iop,
rtems_off64_t length)
{
13910f: 55 push %ebp <== NOT EXECUTED
139110: 89 e5 mov %esp,%ebp <== NOT EXECUTED
139112: 57 push %edi <== NOT EXECUTED
139113: 56 push %esi <== NOT EXECUTED
139114: 53 push %ebx <== NOT EXECUTED
139115: 83 ec 20 sub $0x20,%esp <== NOT EXECUTED
139118: 8b 7d 08 mov 0x8(%ebp),%edi <== NOT EXECUTED
13911b: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
13911e: 8b 4d 10 mov 0x10(%ebp),%ecx <== NOT EXECUTED
rtems_rfs_file_handle* file = iop->file_info;
139121: 8b 77 38 mov 0x38(%edi),%esi <== NOT EXECUTED
139124: 6a 00 push $0x0 <== NOT EXECUTED
139126: 6a 00 push $0x0 <== NOT EXECUTED
139128: 8b 46 1c mov 0x1c(%esi),%eax <== NOT EXECUTED
13912b: 8b 80 98 00 00 00 mov 0x98(%eax),%eax <== NOT EXECUTED
139131: 8b 40 7c mov 0x7c(%eax),%eax <== NOT EXECUTED
139134: ff 30 pushl (%eax) <== NOT EXECUTED
139136: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED
139139: 89 4d e0 mov %ecx,-0x20(%ebp) <== NOT EXECUTED
13913c: e8 c7 7a 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);
139141: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
139144: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
139147: 8b 4d e0 mov -0x20(%ebp),%ecx <== NOT EXECUTED
13914a: 51 push %ecx <== NOT EXECUTED
13914b: 52 push %edx <== NOT EXECUTED
13914c: 56 push %esi <== NOT EXECUTED
13914d: e8 f0 cd ff ff call 135f42 <rtems_rfs_file_set_size><== NOT EXECUTED
139152: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc)
139154: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
139157: 85 c0 test %eax,%eax <== NOT EXECUTED
139159: 74 0a je 139165 <rtems_rfs_rtems_file_ftruncate+0x56><== NOT EXECUTED
rc = rtems_rfs_rtems_error ("file_ftruncate: set size", rc);
13915b: e8 38 3c 00 00 call 13cd98 <__errno> <== NOT EXECUTED
139160: 89 18 mov %ebx,(%eax) <== NOT EXECUTED
139162: 83 cb ff or $0xffffffff,%ebx <== NOT EXECUTED
iop->size = rtems_rfs_file_size (file);
139165: 8b 46 1c mov 0x1c(%esi),%eax <== NOT EXECUTED
139168: 51 push %ecx <== NOT EXECUTED
139169: 51 push %ecx <== NOT EXECUTED
13916a: 8d 90 84 00 00 00 lea 0x84(%eax),%edx <== NOT EXECUTED
139170: 52 push %edx <== NOT EXECUTED
139171: ff b0 98 00 00 00 pushl 0x98(%eax) <== NOT EXECUTED
139177: e8 42 b0 ff ff call 1341be <rtems_rfs_block_get_size><== NOT EXECUTED
13917c: 89 47 04 mov %eax,0x4(%edi) <== NOT EXECUTED
13917f: 89 57 08 mov %edx,0x8(%edi) <== NOT EXECUTED
rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));
139182: 8b 46 1c mov 0x1c(%esi),%eax <== NOT EXECUTED
139185: 8b 80 98 00 00 00 mov 0x98(%eax),%eax <== NOT EXECUTED
13918b: e8 8b fe ff ff call 13901b <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rc;
}
139190: 89 d8 mov %ebx,%eax <== NOT EXECUTED
139192: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
139195: 5b pop %ebx <== NOT EXECUTED
139196: 5e pop %esi <== NOT EXECUTED
139197: 5f pop %edi <== NOT EXECUTED
139198: c9 leave <== NOT EXECUTED
139199: c3 ret <== NOT EXECUTED
00139014 <rtems_rfs_rtems_file_ioctl>:
* @param buffer
*/
int
rtems_rfs_rtems_file_ioctl (rtems_libio_t* iop, uint32_t command, void* buffer)
{
139014: 55 push %ebp <== NOT EXECUTED
139015: 89 e5 mov %esp,%ebp <== NOT EXECUTED
return 0;
}
139017: 31 c0 xor %eax,%eax <== NOT EXECUTED
139019: c9 leave <== NOT EXECUTED
13901a: c3 ret <== NOT EXECUTED
0013919a <rtems_rfs_rtems_file_lseek>:
*/
rtems_off64_t
rtems_rfs_rtems_file_lseek (rtems_libio_t* iop,
rtems_off64_t offset,
int whence)
{
13919a: 55 push %ebp <== NOT EXECUTED
13919b: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13919d: 57 push %edi <== NOT EXECUTED
13919e: 56 push %esi <== NOT EXECUTED
13919f: 53 push %ebx <== NOT EXECUTED
1391a0: 83 ec 20 sub $0x20,%esp <== NOT EXECUTED
1391a3: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
rtems_rfs_file_handle* file = iop->file_info;
1391a6: 8b 73 38 mov 0x38(%ebx),%esi <== NOT EXECUTED
1391a9: 6a 00 push $0x0 <== NOT EXECUTED
1391ab: 6a 00 push $0x0 <== NOT EXECUTED
1391ad: 8b 46 1c mov 0x1c(%esi),%eax <== NOT EXECUTED
1391b0: 8b 80 98 00 00 00 mov 0x98(%eax),%eax <== NOT EXECUTED
1391b6: 8b 40 7c mov 0x7c(%eax),%eax <== NOT EXECUTED
1391b9: ff 30 pushl (%eax) <== NOT EXECUTED
1391bb: e8 48 7a 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;
1391c0: 8b 43 0c mov 0xc(%ebx),%eax <== NOT EXECUTED
1391c3: 8b 53 10 mov 0x10(%ebx),%edx <== NOT EXECUTED
1391c6: 89 45 e0 mov %eax,-0x20(%ebp) <== NOT EXECUTED
1391c9: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED
rc = rtems_rfs_file_seek (file, pos, &pos);
1391cc: 8d 4d e0 lea -0x20(%ebp),%ecx <== NOT EXECUTED
1391cf: 51 push %ecx <== NOT EXECUTED
1391d0: 52 push %edx <== NOT EXECUTED
1391d1: 50 push %eax <== NOT EXECUTED
1391d2: 56 push %esi <== NOT EXECUTED
1391d3: e8 2a d0 ff ff call 136202 <rtems_rfs_file_seek> <== NOT EXECUTED
1391d8: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc)
1391da: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
1391dd: 85 c0 test %eax,%eax <== NOT EXECUTED
1391df: 8b 46 1c mov 0x1c(%esi),%eax <== NOT EXECUTED
1391e2: 74 19 je 1391fd <rtems_rfs_rtems_file_lseek+0x63><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));
1391e4: 8b 80 98 00 00 00 mov 0x98(%eax),%eax <== NOT EXECUTED
1391ea: e8 2c fe ff ff call 13901b <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("file_lseek: lseek", rc);
1391ef: e8 a4 3b 00 00 call 13cd98 <__errno> <== NOT EXECUTED
1391f4: 89 38 mov %edi,(%eax) <== NOT EXECUTED
1391f6: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
1391f9: 89 c2 mov %eax,%edx <== NOT EXECUTED
1391fb: eb 11 jmp 13920e <rtems_rfs_rtems_file_lseek+0x74><== NOT EXECUTED
}
rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));
1391fd: 8b 80 98 00 00 00 mov 0x98(%eax),%eax <== NOT EXECUTED
139203: e8 13 fe ff ff call 13901b <rtems_rfs_rtems_unlock><== NOT EXECUTED
return iop->offset;
139208: 8b 43 0c mov 0xc(%ebx),%eax <== NOT EXECUTED
13920b: 8b 53 10 mov 0x10(%ebx),%edx <== NOT EXECUTED
}
13920e: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
139211: 5b pop %ebx <== NOT EXECUTED
139212: 5e pop %esi <== NOT EXECUTED
139213: 5f pop %edi <== NOT EXECUTED
139214: c9 leave <== NOT EXECUTED
139215: c3 ret <== NOT EXECUTED
0013908a <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)
{
13908a: 55 push %ebp <== NOT EXECUTED
13908b: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13908d: 57 push %edi <== NOT EXECUTED
13908e: 56 push %esi <== NOT EXECUTED
13908f: 53 push %ebx <== NOT EXECUTED
139090: 83 ec 20 sub $0x20,%esp <== NOT EXECUTED
139093: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (&iop->pathinfo);
139096: 8b 46 28 mov 0x28(%esi),%eax <== NOT EXECUTED
139099: 8b 58 34 mov 0x34(%eax),%ebx <== NOT EXECUTED
13909c: 6a 00 push $0x0 <== NOT EXECUTED
13909e: 6a 00 push $0x0 <== NOT EXECUTED
1390a0: 8b 43 7c mov 0x7c(%ebx),%eax <== NOT EXECUTED
1390a3: ff 30 pushl (%eax) <== NOT EXECUTED
1390a5: e8 5e 7b 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);
1390aa: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
1390ad: 50 push %eax <== NOT EXECUTED
1390ae: 6a 00 push $0x0 <== NOT EXECUTED
1390b0: ff 76 38 pushl 0x38(%esi) <== NOT EXECUTED
1390b3: 53 push %ebx <== NOT EXECUTED
1390b4: e8 f1 d4 ff ff call 1365aa <rtems_rfs_file_open> <== NOT EXECUTED
1390b9: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc > 0)
1390bb: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
1390be: 85 c0 test %eax,%eax <== NOT EXECUTED
1390c0: 7e 13 jle 1390d5 <rtems_rfs_rtems_file_open+0x4b><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
1390c2: 89 d8 mov %ebx,%eax <== NOT EXECUTED
1390c4: e8 52 ff ff ff call 13901b <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("file-open: open", rc);
1390c9: e8 ca 3c 00 00 call 13cd98 <__errno> <== NOT EXECUTED
1390ce: 89 38 mov %edi,(%eax) <== NOT EXECUTED
1390d0: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
1390d3: eb 32 jmp 139107 <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);
1390d5: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
1390d8: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED
1390db: 52 push %edx <== NOT EXECUTED
1390dc: 52 push %edx <== NOT EXECUTED
1390dd: 8d 90 84 00 00 00 lea 0x84(%eax),%edx <== NOT EXECUTED
1390e3: 52 push %edx <== NOT EXECUTED
1390e4: ff b0 98 00 00 00 pushl 0x98(%eax) <== NOT EXECUTED
1390ea: e8 cf b0 ff ff call 1341be <rtems_rfs_block_get_size><== NOT EXECUTED
1390ef: 89 46 04 mov %eax,0x4(%esi) <== NOT EXECUTED
1390f2: 89 56 08 mov %edx,0x8(%esi) <== NOT EXECUTED
iop->file_info = file;
1390f5: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
1390f8: 89 46 38 mov %eax,0x38(%esi) <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
1390fb: 89 d8 mov %ebx,%eax <== NOT EXECUTED
1390fd: e8 19 ff ff ff call 13901b <rtems_rfs_rtems_unlock><== NOT EXECUTED
139102: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
139104: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
139107: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13910a: 5b pop %ebx <== NOT EXECUTED
13910b: 5e pop %esi <== NOT EXECUTED
13910c: 5f pop %edi <== NOT EXECUTED
13910d: c9 leave <== NOT EXECUTED
13910e: c3 ret <== NOT EXECUTED
00139386 <rtems_rfs_rtems_file_read>:
*/
ssize_t
rtems_rfs_rtems_file_read (rtems_libio_t* iop,
void* buffer,
size_t count)
{
139386: 55 push %ebp <== NOT EXECUTED
139387: 89 e5 mov %esp,%ebp <== NOT EXECUTED
139389: 57 push %edi <== NOT EXECUTED
13938a: 56 push %esi <== NOT EXECUTED
13938b: 53 push %ebx <== NOT EXECUTED
13938c: 83 ec 30 sub $0x30,%esp <== NOT EXECUTED
13938f: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
rtems_rfs_file_handle* file = iop->file_info;
139392: 8b 5e 38 mov 0x38(%esi),%ebx <== NOT EXECUTED
139395: 6a 00 push $0x0 <== NOT EXECUTED
139397: 6a 00 push $0x0 <== NOT EXECUTED
139399: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
13939c: 8b 80 98 00 00 00 mov 0x98(%eax),%eax <== NOT EXECUTED
1393a2: 8b 40 7c mov 0x7c(%eax),%eax <== NOT EXECUTED
1393a5: ff 30 pushl (%eax) <== NOT EXECUTED
1393a7: e8 5c 78 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;
1393ac: 8b 7e 0c mov 0xc(%esi),%edi <== NOT EXECUTED
1393af: 8b 76 10 mov 0x10(%esi),%esi <== NOT EXECUTED
if (pos < rtems_rfs_file_size (file))
1393b2: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
1393b5: 5a pop %edx <== NOT EXECUTED
1393b6: 59 pop %ecx <== NOT EXECUTED
1393b7: 8d 90 84 00 00 00 lea 0x84(%eax),%edx <== NOT EXECUTED
1393bd: 52 push %edx <== NOT EXECUTED
1393be: ff b0 98 00 00 00 pushl 0x98(%eax) <== NOT EXECUTED
1393c4: e8 f5 ad ff ff call 1341be <rtems_rfs_block_get_size><== NOT EXECUTED
1393c9: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1393cc: 39 d6 cmp %edx,%esi <== NOT EXECUTED
1393ce: 0f 82 85 00 00 00 jb 139459 <rtems_rfs_rtems_file_read+0xd3><== NOT EXECUTED
1393d4: 77 04 ja 1393da <rtems_rfs_rtems_file_read+0x54><== NOT EXECUTED
1393d6: 39 c7 cmp %eax,%edi <== NOT EXECUTED
1393d8: 72 7f jb 139459 <rtems_rfs_rtems_file_read+0xd3><== NOT EXECUTED
1393da: c7 45 d4 00 00 00 00 movl $0x0,-0x2c(%ebp) <== NOT EXECUTED
1393e1: e9 8a 00 00 00 jmp 139470 <rtems_rfs_rtems_file_read+0xea><== NOT EXECUTED
{
while (count)
{
size_t size;
rc = rtems_rfs_file_io_start (file, &size, true);
1393e6: 56 push %esi <== NOT EXECUTED
1393e7: 6a 01 push $0x1 <== NOT EXECUTED
1393e9: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
1393ec: 50 push %eax <== NOT EXECUTED
1393ed: 53 push %ebx <== NOT EXECUTED
1393ee: e8 15 ca ff ff call 135e08 <rtems_rfs_file_io_start><== NOT EXECUTED
1393f3: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
1393f5: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1393f8: 85 c0 test %eax,%eax <== NOT EXECUTED
1393fa: 7e 09 jle 139405 <rtems_rfs_rtems_file_read+0x7f><== NOT EXECUTED
{
read = rtems_rfs_rtems_error ("file-read: read: io-start", rc);
1393fc: e8 97 39 00 00 call 13cd98 <__errno> <== NOT EXECUTED
139401: 89 30 mov %esi,(%eax) <== NOT EXECUTED
139403: eb 4b jmp 139450 <rtems_rfs_rtems_file_read+0xca><== NOT EXECUTED
break;
}
if (size == 0)
139405: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
139408: 85 c0 test %eax,%eax <== NOT EXECUTED
13940a: 74 64 je 139470 <rtems_rfs_rtems_file_read+0xea><== NOT EXECUTED
break;
if (size > count)
13940c: 3b 45 10 cmp 0x10(%ebp),%eax <== NOT EXECUTED
13940f: 76 06 jbe 139417 <rtems_rfs_rtems_file_read+0x91><== NOT EXECUTED
size = count;
139411: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
139414: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
memcpy (data, rtems_rfs_file_data (file), size);
139417: 8b 43 0c mov 0xc(%ebx),%eax <== NOT EXECUTED
13941a: 8b 70 20 mov 0x20(%eax),%esi <== NOT EXECUTED
13941d: 03 73 14 add 0x14(%ebx),%esi <== NOT EXECUTED
139420: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED
139423: 8b 7d d0 mov -0x30(%ebp),%edi <== NOT EXECUTED
139426: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
data += size;
139428: 8b 75 e4 mov -0x1c(%ebp),%esi <== NOT EXECUTED
count -= size;
read += size;
rc = rtems_rfs_file_io_end (file, size, true);
13942b: 51 push %ecx <== NOT EXECUTED
13942c: 6a 01 push $0x1 <== NOT EXECUTED
13942e: 56 push %esi <== NOT EXECUTED
13942f: 53 push %ebx <== NOT EXECUTED
139430: e8 82 ce ff ff call 1362b7 <rtems_rfs_file_io_end> <== NOT EXECUTED
139435: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc > 0)
139437: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13943a: 85 c0 test %eax,%eax <== NOT EXECUTED
13943c: 7f 0b jg 139449 <rtems_rfs_rtems_file_read+0xc3><== NOT EXECUTED
if (size > count)
size = count;
memcpy (data, rtems_rfs_file_data (file), size);
data += size;
13943e: 01 75 d0 add %esi,-0x30(%ebp) <== NOT EXECUTED
count -= size;
139441: 29 75 10 sub %esi,0x10(%ebp) <== NOT EXECUTED
read += size;
139444: 01 75 d4 add %esi,-0x2c(%ebp) <== NOT EXECUTED
139447: eb 1d jmp 139466 <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);
139449: e8 4a 39 00 00 call 13cd98 <__errno> <== NOT EXECUTED
13944e: 89 38 mov %edi,(%eax) <== NOT EXECUTED
139450: c7 45 d4 ff ff ff ff movl $0xffffffff,-0x2c(%ebp) <== NOT EXECUTED
139457: eb 17 jmp 139470 <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;
139459: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
13945c: 89 45 d0 mov %eax,-0x30(%ebp) <== NOT EXECUTED
13945f: 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)
139466: 83 7d 10 00 cmpl $0x0,0x10(%ebp) <== NOT EXECUTED
13946a: 0f 85 76 ff ff ff jne 1393e6 <rtems_rfs_rtems_file_read+0x60><== NOT EXECUTED
break;
}
}
}
rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));
139470: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
139473: 8b 80 98 00 00 00 mov 0x98(%eax),%eax <== NOT EXECUTED
139479: e8 9d fb ff ff call 13901b <rtems_rfs_rtems_unlock><== NOT EXECUTED
return read;
}
13947e: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED
139481: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
139484: 5b pop %ebx <== NOT EXECUTED
139485: 5e pop %esi <== NOT EXECUTED
139486: 5f pop %edi <== NOT EXECUTED
139487: c9 leave <== NOT EXECUTED
139488: c3 ret <== NOT EXECUTED
00139216 <rtems_rfs_rtems_file_write>:
*/
ssize_t
rtems_rfs_rtems_file_write (rtems_libio_t* iop,
const void* buffer,
size_t count)
{
139216: 55 push %ebp <== NOT EXECUTED
139217: 89 e5 mov %esp,%ebp <== NOT EXECUTED
139219: 57 push %edi <== NOT EXECUTED
13921a: 56 push %esi <== NOT EXECUTED
13921b: 53 push %ebx <== NOT EXECUTED
13921c: 83 ec 30 sub $0x30,%esp <== NOT EXECUTED
rtems_rfs_file_handle* file = iop->file_info;
13921f: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
139222: 8b 58 38 mov 0x38(%eax),%ebx <== NOT EXECUTED
139225: 6a 00 push $0x0 <== NOT EXECUTED
139227: 6a 00 push $0x0 <== NOT EXECUTED
139229: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
13922c: 8b 80 98 00 00 00 mov 0x98(%eax),%eax <== NOT EXECUTED
139232: 8b 40 7c mov 0x7c(%eax),%eax <== NOT EXECUTED
139235: ff 30 pushl (%eax) <== NOT EXECUTED
139237: e8 cc 79 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;
13923c: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
13923f: 8b 71 0c mov 0xc(%ecx),%esi <== NOT EXECUTED
139242: 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))
139245: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
139248: 59 pop %ecx <== NOT EXECUTED
139249: 5a pop %edx <== NOT EXECUTED
13924a: 8d 90 84 00 00 00 lea 0x84(%eax),%edx <== NOT EXECUTED
139250: 52 push %edx <== NOT EXECUTED
139251: ff b0 98 00 00 00 pushl 0x98(%eax) <== NOT EXECUTED
139257: e8 62 af ff ff call 1341be <rtems_rfs_block_get_size><== NOT EXECUTED
13925c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13925f: 39 d7 cmp %edx,%edi <== NOT EXECUTED
139261: 72 49 jb 1392ac <rtems_rfs_rtems_file_write+0x96><== NOT EXECUTED
139263: 77 04 ja 139269 <rtems_rfs_rtems_file_write+0x53><== NOT EXECUTED
139265: 39 c6 cmp %eax,%esi <== NOT EXECUTED
139267: 72 43 jb 1392ac <rtems_rfs_rtems_file_write+0x96><== NOT EXECUTED
{
rc = rtems_rfs_file_set_size (file, pos + 1);
139269: 52 push %edx <== NOT EXECUTED
13926a: 89 f0 mov %esi,%eax <== NOT EXECUTED
13926c: 89 fa mov %edi,%edx <== NOT EXECUTED
13926e: 83 c0 01 add $0x1,%eax <== NOT EXECUTED
139271: 83 d2 00 adc $0x0,%edx <== NOT EXECUTED
139274: 52 push %edx <== NOT EXECUTED
139275: 50 push %eax <== NOT EXECUTED
139276: 53 push %ebx <== NOT EXECUTED
139277: e8 c6 cc ff ff call 135f42 <rtems_rfs_file_set_size><== NOT EXECUTED
13927c: 89 c2 mov %eax,%edx <== NOT EXECUTED
if (rc)
13927e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
139281: 85 c0 test %eax,%eax <== NOT EXECUTED
139283: 74 27 je 1392ac <rtems_rfs_rtems_file_write+0x96><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));
139285: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
139288: 8b 80 98 00 00 00 mov 0x98(%eax),%eax <== NOT EXECUTED
13928e: 89 55 cc mov %edx,-0x34(%ebp) <== NOT EXECUTED
139291: e8 85 fd ff ff call 13901b <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("file-write: write extend", rc);
139296: e8 fd 3a 00 00 call 13cd98 <__errno> <== NOT EXECUTED
13929b: 8b 55 cc mov -0x34(%ebp),%edx <== NOT EXECUTED
13929e: 89 10 mov %edx,(%eax) <== NOT EXECUTED
1392a0: c7 45 d4 ff ff ff ff movl $0xffffffff,-0x2c(%ebp) <== NOT EXECUTED
1392a7: e9 cf 00 00 00 jmp 13937b <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;
1392ac: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
1392af: 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);
1392b2: 8d 43 10 lea 0x10(%ebx),%eax <== NOT EXECUTED
1392b5: 50 push %eax <== NOT EXECUTED
1392b6: 57 push %edi <== NOT EXECUTED
1392b7: 56 push %esi <== NOT EXECUTED
1392b8: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
1392bb: ff b0 98 00 00 00 pushl 0x98(%eax) <== NOT EXECUTED
1392c1: e8 42 ae ff ff call 134108 <rtems_rfs_block_get_bpos><== NOT EXECUTED
1392c6: c7 45 d4 00 00 00 00 movl $0x0,-0x2c(%ebp) <== NOT EXECUTED
while (count)
1392cd: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1392d0: eb 72 jmp 139344 <rtems_rfs_rtems_file_write+0x12e><== NOT EXECUTED
{
size_t size = count;
1392d2: 8b 4d 10 mov 0x10(%ebp),%ecx <== NOT EXECUTED
1392d5: 89 4d e4 mov %ecx,-0x1c(%ebp) <== NOT EXECUTED
rc = rtems_rfs_file_io_start (file, &size, false);
1392d8: 50 push %eax <== NOT EXECUTED
1392d9: 6a 00 push $0x0 <== NOT EXECUTED
1392db: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
1392de: 50 push %eax <== NOT EXECUTED
1392df: 53 push %ebx <== NOT EXECUTED
1392e0: e8 23 cb ff ff call 135e08 <rtems_rfs_file_io_start><== NOT EXECUTED
1392e5: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc)
1392e7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1392ea: 85 c0 test %eax,%eax <== NOT EXECUTED
1392ec: 74 09 je 1392f7 <rtems_rfs_rtems_file_write+0xe1><== NOT EXECUTED
{
write = rtems_rfs_rtems_error ("file-write: write open", rc);
1392ee: e8 a5 3a 00 00 call 13cd98 <__errno> <== NOT EXECUTED
1392f3: 89 30 mov %esi,(%eax) <== NOT EXECUTED
1392f5: eb 3b jmp 139332 <rtems_rfs_rtems_file_write+0x11c><== NOT EXECUTED
break;
}
if (size > count)
1392f7: 8b 4d 10 mov 0x10(%ebp),%ecx <== NOT EXECUTED
1392fa: 39 4d e4 cmp %ecx,-0x1c(%ebp) <== NOT EXECUTED
1392fd: 76 03 jbe 139302 <rtems_rfs_rtems_file_write+0xec><== NOT EXECUTED
size = count;
1392ff: 89 4d e4 mov %ecx,-0x1c(%ebp) <== NOT EXECUTED
memcpy (rtems_rfs_file_data (file), data, size);
139302: 8b 43 0c mov 0xc(%ebx),%eax <== NOT EXECUTED
139305: 8b 40 20 mov 0x20(%eax),%eax <== NOT EXECUTED
139308: 03 43 14 add 0x14(%ebx),%eax <== NOT EXECUTED
13930b: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED
13930e: 89 c7 mov %eax,%edi <== NOT EXECUTED
139310: 8b 75 d0 mov -0x30(%ebp),%esi <== NOT EXECUTED
139313: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
data += size;
139315: 8b 75 e4 mov -0x1c(%ebp),%esi <== NOT EXECUTED
count -= size;
write += size;
rc = rtems_rfs_file_io_end (file, size, false);
139318: 57 push %edi <== NOT EXECUTED
139319: 6a 00 push $0x0 <== NOT EXECUTED
13931b: 56 push %esi <== NOT EXECUTED
13931c: 53 push %ebx <== NOT EXECUTED
13931d: e8 95 cf ff ff call 1362b7 <rtems_rfs_file_io_end> <== NOT EXECUTED
139322: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc)
139324: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
139327: 85 c0 test %eax,%eax <== NOT EXECUTED
139329: 74 10 je 13933b <rtems_rfs_rtems_file_write+0x125><== NOT EXECUTED
{
write = rtems_rfs_rtems_error ("file-write: write close", rc);
13932b: e8 68 3a 00 00 call 13cd98 <__errno> <== NOT EXECUTED
139330: 89 38 mov %edi,(%eax) <== NOT EXECUTED
139332: c7 45 d4 ff ff ff ff movl $0xffffffff,-0x2c(%ebp) <== NOT EXECUTED
139339: eb 0f jmp 13934a <rtems_rfs_rtems_file_write+0x134><== NOT EXECUTED
if (size > count)
size = count;
memcpy (rtems_rfs_file_data (file), data, size);
data += size;
13933b: 01 75 d0 add %esi,-0x30(%ebp) <== NOT EXECUTED
count -= size;
13933e: 29 75 10 sub %esi,0x10(%ebp) <== NOT EXECUTED
write += size;
139341: 01 75 d4 add %esi,-0x2c(%ebp) <== NOT EXECUTED
}
}
rtems_rfs_file_set_bpos (file, pos);
while (count)
139344: 83 7d 10 00 cmpl $0x0,0x10(%ebp) <== NOT EXECUTED
139348: 75 88 jne 1392d2 <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);
13934a: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
13934d: 56 push %esi <== NOT EXECUTED
13934e: 56 push %esi <== NOT EXECUTED
13934f: 8d 90 84 00 00 00 lea 0x84(%eax),%edx <== NOT EXECUTED
139355: 52 push %edx <== NOT EXECUTED
139356: ff b0 98 00 00 00 pushl 0x98(%eax) <== NOT EXECUTED
13935c: e8 5d ae ff ff call 1341be <rtems_rfs_block_get_size><== NOT EXECUTED
139361: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
139364: 89 41 04 mov %eax,0x4(%ecx) <== NOT EXECUTED
139367: 89 51 08 mov %edx,0x8(%ecx) <== NOT EXECUTED
rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));
13936a: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
13936d: 8b 80 98 00 00 00 mov 0x98(%eax),%eax <== NOT EXECUTED
139373: e8 a3 fc ff ff call 13901b <rtems_rfs_rtems_unlock><== NOT EXECUTED
return write;
139378: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
13937b: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED
13937e: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
139381: 5b pop %ebx <== NOT EXECUTED
139382: 5e pop %esi <== NOT EXECUTED
139383: 5f pop %edi <== NOT EXECUTED
139384: c9 leave <== NOT EXECUTED
139385: c3 ret <== NOT EXECUTED
001216cc <rtems_rfs_rtems_freenodinfo>:
* @retval 0 Always returned.
*/
int
rtems_rfs_rtems_freenodinfo (rtems_filesystem_location_info_t* pathloc)
{
1216cc: 55 push %ebp <== NOT EXECUTED
1216cd: 89 e5 mov %esp,%ebp <== NOT EXECUTED
return 0;
}
1216cf: 31 c0 xor %eax,%eax <== NOT EXECUTED
1216d1: c9 leave <== NOT EXECUTED
1216d2: c3 ret <== NOT EXECUTED
00122a23 <rtems_rfs_rtems_imode>:
return true;
}
uint16_t
rtems_rfs_rtems_imode (mode_t mode)
{
122a23: 55 push %ebp <== NOT EXECUTED
122a24: 89 e5 mov %esp,%ebp <== NOT EXECUTED
/*
* Mapping matches RTEMS so no need to change.
*/
return mode;
}
122a26: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
122a29: c9 leave <== NOT EXECUTED
122a2a: c3 ret <== NOT EXECUTED
00121a4f <rtems_rfs_rtems_initialise>:
*/
int
rtems_rfs_rtems_initialise (rtems_filesystem_mount_table_entry_t* mt_entry,
const void* data)
{
121a4f: 55 push %ebp <== NOT EXECUTED
121a50: 89 e5 mov %esp,%ebp <== NOT EXECUTED
121a52: 57 push %edi <== NOT EXECUTED
121a53: 56 push %esi <== NOT EXECUTED
121a54: 53 push %ebx <== NOT EXECUTED
121a55: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED
121a58: 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;
121a5b: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
121a5e: c7 45 d4 05 00 00 00 movl $0x5,-0x2c(%ebp) <== NOT EXECUTED
121a65: 31 ff xor %edi,%edi <== NOT EXECUTED
int rc;
/*
* Parse the options the user specifiies.
*/
while (options)
121a67: e9 95 00 00 00 jmp 121b01 <rtems_rfs_rtems_initialise+0xb2><== NOT EXECUTED
{
printf ("options=%s\n", options);
121a6c: 51 push %ecx <== NOT EXECUTED
121a6d: 51 push %ecx <== NOT EXECUTED
121a6e: 53 push %ebx <== NOT EXECUTED
121a6f: 68 ad 8c 15 00 push $0x158cad <== NOT EXECUTED
121a74: e8 3b f2 01 00 call 140cb4 <printf> <== NOT EXECUTED
if (strncmp (options, "hold-bitmaps",
121a79: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
121a7c: 6a 0c push $0xc <== NOT EXECUTED
121a7e: 68 b9 8c 15 00 push $0x158cb9 <== NOT EXECUTED
121a83: 53 push %ebx <== NOT EXECUTED
121a84: e8 db 0f 02 00 call 142a64 <strncmp> <== NOT EXECUTED
121a89: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
121a8c: 85 c0 test %eax,%eax <== NOT EXECUTED
121a8e: 75 05 jne 121a95 <rtems_rfs_rtems_initialise+0x46><== NOT EXECUTED
sizeof ("hold-bitmaps") - 1) == 0)
flags |= RTEMS_RFS_FS_BITMAPS_HOLD;
121a90: 83 cf 01 or $0x1,%edi <== NOT EXECUTED
121a93: eb 52 jmp 121ae7 <rtems_rfs_rtems_initialise+0x98><== NOT EXECUTED
else if (strncmp (options, "no-local-cache",
121a95: 52 push %edx <== NOT EXECUTED
121a96: 6a 0e push $0xe <== NOT EXECUTED
121a98: 68 c6 8c 15 00 push $0x158cc6 <== NOT EXECUTED
121a9d: 53 push %ebx <== NOT EXECUTED
121a9e: e8 c1 0f 02 00 call 142a64 <strncmp> <== NOT EXECUTED
121aa3: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
121aa6: 85 c0 test %eax,%eax <== NOT EXECUTED
121aa8: 75 05 jne 121aaf <rtems_rfs_rtems_initialise+0x60><== NOT EXECUTED
sizeof ("no-local-cache") - 1) == 0)
flags |= RTEMS_RFS_FS_NO_LOCAL_CACHE;
121aaa: 83 cf 02 or $0x2,%edi <== NOT EXECUTED
121aad: eb 38 jmp 121ae7 <rtems_rfs_rtems_initialise+0x98><== NOT EXECUTED
else if (strncmp (options, "max-held-bufs",
121aaf: 50 push %eax <== NOT EXECUTED
121ab0: 6a 0d push $0xd <== NOT EXECUTED
121ab2: 68 d5 8c 15 00 push $0x158cd5 <== NOT EXECUTED
121ab7: 53 push %ebx <== NOT EXECUTED
121ab8: e8 a7 0f 02 00 call 142a64 <strncmp> <== NOT EXECUTED
121abd: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
121ac0: 85 c0 test %eax,%eax <== NOT EXECUTED
121ac2: 75 16 jne 121ada <rtems_rfs_rtems_initialise+0x8b><== NOT EXECUTED
sizeof ("max-held-bufs") - 1) == 0)
{
max_held_buffers = strtoul (options + sizeof ("max-held-bufs"), 0, 0);
121ac4: 51 push %ecx <== NOT EXECUTED
121ac5: 6a 00 push $0x0 <== NOT EXECUTED
121ac7: 6a 00 push $0x0 <== NOT EXECUTED
121ac9: 8d 43 0e lea 0xe(%ebx),%eax <== NOT EXECUTED
121acc: 50 push %eax <== NOT EXECUTED
121acd: e8 72 26 02 00 call 144144 <strtoul> <== NOT EXECUTED
121ad2: 89 45 d4 mov %eax,-0x2c(%ebp) <== NOT EXECUTED
121ad5: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
121ad8: eb 0d jmp 121ae7 <rtems_rfs_rtems_initialise+0x98><== NOT EXECUTED
}
else
return rtems_rfs_rtems_error ("initialise: invalid option", EINVAL);
121ada: e8 b9 b2 01 00 call 13cd98 <__errno> <== NOT EXECUTED
121adf: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
121ae5: eb 40 jmp 121b27 <rtems_rfs_rtems_initialise+0xd8><== NOT EXECUTED
options = strchr (options, ',');
121ae7: 52 push %edx <== NOT EXECUTED
121ae8: 52 push %edx <== NOT EXECUTED
121ae9: 6a 2c push $0x2c <== NOT EXECUTED
121aeb: 53 push %ebx <== NOT EXECUTED
121aec: e8 0f 0a 02 00 call 142500 <strchr> <== NOT EXECUTED
121af1: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
if (options)
121af4: 85 c0 test %eax,%eax <== NOT EXECUTED
121af6: 74 11 je 121b09 <rtems_rfs_rtems_initialise+0xba><== NOT EXECUTED
{
++options;
121af8: 8d 58 01 lea 0x1(%eax),%ebx <== NOT EXECUTED
if (*options == '\0')
121afb: 80 78 01 00 cmpb $0x0,0x1(%eax) <== NOT EXECUTED
121aff: 74 08 je 121b09 <rtems_rfs_rtems_initialise+0xba><== NOT EXECUTED
int rc;
/*
* Parse the options the user specifiies.
*/
while (options)
121b01: 85 db test %ebx,%ebx <== NOT EXECUTED
121b03: 0f 85 63 ff ff ff jne 121a6c <rtems_rfs_rtems_initialise+0x1d><== NOT EXECUTED
if (*options == '\0')
options = NULL;
}
}
rtems = malloc (sizeof (rtems_rfs_rtems_private));
121b09: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
121b0c: 6a 04 push $0x4 <== NOT EXECUTED
121b0e: e8 d5 b8 fe ff call 10d3e8 <malloc> <== NOT EXECUTED
121b13: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (!rtems)
121b15: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
121b18: 85 c0 test %eax,%eax <== NOT EXECUTED
121b1a: 75 13 jne 121b2f <rtems_rfs_rtems_initialise+0xe0><== NOT EXECUTED
return rtems_rfs_rtems_error ("initialise: local data", ENOMEM);
121b1c: e8 77 b2 01 00 call 13cd98 <__errno> <== NOT EXECUTED
121b21: c7 00 0c 00 00 00 movl $0xc,(%eax) <== NOT EXECUTED
121b27: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
121b2a: e9 99 00 00 00 jmp 121bc8 <rtems_rfs_rtems_initialise+0x179><== NOT EXECUTED
memset (rtems, 0, sizeof (rtems_rfs_rtems_private));
121b2f: c7 00 00 00 00 00 movl $0x0,(%eax) <== NOT EXECUTED
rc = rtems_rfs_mutex_create (&rtems->access);
121b35: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
121b38: 50 push %eax <== NOT EXECUTED
121b39: e8 69 6f 01 00 call 138aa7 <rtems_rfs_mutex_create><== NOT EXECUTED
if (rc > 0)
121b3e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
121b41: 85 c0 test %eax,%eax <== NOT EXECUTED
121b43: 7e 18 jle 121b5d <rtems_rfs_rtems_initialise+0x10e><== NOT EXECUTED
{
free (rtems);
121b45: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
121b48: 53 push %ebx <== NOT EXECUTED
121b49: 89 45 d0 mov %eax,-0x30(%ebp) <== NOT EXECUTED
121b4c: e8 4b b3 fe ff call 10ce9c <free> <== NOT EXECUTED
return rtems_rfs_rtems_error ("initialise: cannot create mutex", rc);
121b51: e8 42 b2 01 00 call 13cd98 <__errno> <== NOT EXECUTED
121b56: 8b 55 d0 mov -0x30(%ebp),%edx <== NOT EXECUTED
121b59: 89 10 mov %edx,(%eax) <== NOT EXECUTED
121b5b: eb 41 jmp 121b9e <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);
121b5d: 50 push %eax <== NOT EXECUTED
121b5e: 6a 00 push $0x0 <== NOT EXECUTED
121b60: 6a 00 push $0x0 <== NOT EXECUTED
121b62: ff 33 pushl (%ebx) <== NOT EXECUTED
121b64: e8 9f f0 fe ff call 110c08 <rtems_semaphore_obtain><== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
121b69: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
121b6c: 85 c0 test %eax,%eax <== NOT EXECUTED
121b6e: 74 60 je 121bd0 <rtems_rfs_rtems_initialise+0x181><== NOT EXECUTED
}
rc = rtems_rfs_mutex_lock (&rtems->access);
if (rc > 0)
{
rtems_rfs_mutex_destroy (&rtems->access);
121b70: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
121b73: 53 push %ebx <== NOT EXECUTED
121b74: e8 0f 6f 01 00 call 138a88 <rtems_rfs_mutex_destroy><== NOT EXECUTED
free (rtems);
121b79: 89 1c 24 mov %ebx,(%esp) <== NOT EXECUTED
121b7c: e8 1b b3 fe ff call 10ce9c <free> <== NOT EXECUTED
return rtems_rfs_rtems_error ("initialise: cannot lock access mutex", rc);
121b81: e8 12 b2 01 00 call 13cd98 <__errno> <== NOT EXECUTED
121b86: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
121b8c: eb 10 jmp 121b9e <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);
121b8e: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
121b91: 53 push %ebx <== NOT EXECUTED
121b92: e8 05 b3 fe ff call 10ce9c <free> <== NOT EXECUTED
return rtems_rfs_rtems_error ("initialise: open", rc);
121b97: e8 fc b1 01 00 call 13cd98 <__errno> <== NOT EXECUTED
121b9c: 89 38 mov %edi,(%eax) <== NOT EXECUTED
121b9e: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
121ba1: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
121ba4: eb 22 jmp 121bc8 <rtems_rfs_rtems_initialise+0x179><== NOT EXECUTED
}
mt_entry->fs_info = fs;
121ba6: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
121ba9: 89 46 34 mov %eax,0x34(%esi) <== NOT EXECUTED
mt_entry->mt_fs_root.node_access = (void*) RTEMS_RFS_ROOT_INO;
121bac: c7 46 1c 01 00 00 00 movl $0x1,0x1c(%esi) <== NOT EXECUTED
mt_entry->mt_fs_root.handlers = &rtems_rfs_rtems_dir_handlers;
121bb3: c7 46 24 dc d5 15 00 movl $0x15d5dc,0x24(%esi) <== NOT EXECUTED
mt_entry->mt_fs_root.ops = &rtems_rfs_ops;
121bba: c7 46 28 1c 8d 15 00 movl $0x158d1c,0x28(%esi) <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
121bc1: e8 2d fb ff ff call 1216f3 <rtems_rfs_rtems_unlock><== NOT EXECUTED
121bc6: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
}
121bc8: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
121bcb: 5b pop %ebx <== NOT EXECUTED
121bcc: 5e pop %esi <== NOT EXECUTED
121bcd: 5f pop %edi <== NOT EXECUTED
121bce: c9 leave <== NOT EXECUTED
121bcf: 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);
121bd0: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
121bd3: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
121bd6: 50 push %eax <== NOT EXECUTED
121bd7: ff 75 d4 pushl -0x2c(%ebp) <== NOT EXECUTED
121bda: 57 push %edi <== NOT EXECUTED
121bdb: 53 push %ebx <== NOT EXECUTED
121bdc: ff 76 70 pushl 0x70(%esi) <== NOT EXECUTED
121bdf: e8 7d 4c 01 00 call 136861 <rtems_rfs_fs_open> <== NOT EXECUTED
121be4: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc)
121be6: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
121be9: 85 c0 test %eax,%eax <== NOT EXECUTED
121beb: 75 a1 jne 121b8e <rtems_rfs_rtems_initialise+0x13f><== NOT EXECUTED
121bed: eb b7 jmp 121ba6 <rtems_rfs_rtems_initialise+0x157><== NOT EXECUTED
00121c70 <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)
{
121c70: 55 push %ebp <== NOT EXECUTED
121c71: 89 e5 mov %esp,%ebp <== NOT EXECUTED
121c73: 57 push %edi <== NOT EXECUTED
121c74: 56 push %esi <== NOT EXECUTED
121c75: 53 push %ebx <== NOT EXECUTED
121c76: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
121c79: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (to_loc);
121c7c: 8b 50 10 mov 0x10(%eax),%edx <== NOT EXECUTED
121c7f: 8b 5a 34 mov 0x34(%edx),%ebx <== NOT EXECUTED
rtems_rfs_ino target = rtems_rfs_rtems_get_pathloc_ino (to_loc);
121c82: 8b 30 mov (%eax),%esi <== NOT EXECUTED
rtems_rfs_ino parent = rtems_rfs_rtems_get_pathloc_ino (parent_loc);
121c84: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
121c87: 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);
121c89: 89 d8 mov %ebx,%eax <== NOT EXECUTED
121c8b: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED
121c8e: e8 47 fa ff ff call 1216da <rtems_rfs_rtems_lock> <== NOT EXECUTED
rc = rtems_rfs_link (fs, name, strlen (name), parent, target, false);
121c93: 31 c0 xor %eax,%eax <== NOT EXECUTED
121c95: 83 c9 ff or $0xffffffff,%ecx <== NOT EXECUTED
121c98: 8b 7d 10 mov 0x10(%ebp),%edi <== NOT EXECUTED
121c9b: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED
121c9d: f7 d1 not %ecx <== NOT EXECUTED
121c9f: 49 dec %ecx <== NOT EXECUTED
121ca0: 57 push %edi <== NOT EXECUTED
121ca1: 57 push %edi <== NOT EXECUTED
121ca2: 6a 00 push $0x0 <== NOT EXECUTED
121ca4: 56 push %esi <== NOT EXECUTED
121ca5: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
121ca8: 52 push %edx <== NOT EXECUTED
121ca9: 51 push %ecx <== NOT EXECUTED
121caa: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
121cad: 53 push %ebx <== NOT EXECUTED
121cae: e8 b4 6c 01 00 call 138967 <rtems_rfs_link> <== NOT EXECUTED
121cb3: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc)
121cb5: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
121cb8: 85 c0 test %eax,%eax <== NOT EXECUTED
121cba: 74 13 je 121ccf <rtems_rfs_rtems_link+0x5f><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
121cbc: 89 d8 mov %ebx,%eax <== NOT EXECUTED
121cbe: e8 30 fa ff ff call 1216f3 <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("link: linking", rc);
121cc3: e8 d0 b0 01 00 call 13cd98 <__errno> <== NOT EXECUTED
121cc8: 89 30 mov %esi,(%eax) <== NOT EXECUTED
121cca: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
121ccd: eb 09 jmp 121cd8 <rtems_rfs_rtems_link+0x68><== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
121ccf: 89 d8 mov %ebx,%eax <== NOT EXECUTED
121cd1: e8 1d fa ff ff call 1216f3 <rtems_rfs_rtems_unlock><== NOT EXECUTED
121cd6: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
}
121cd8: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
121cdb: 5b pop %ebx <== NOT EXECUTED
121cdc: 5e pop %esi <== NOT EXECUTED
121cdd: 5f pop %edi <== NOT EXECUTED
121cde: c9 leave <== NOT EXECUTED
121cdf: c3 ret <== NOT EXECUTED
001216da <rtems_rfs_rtems_lock>:
/**
* Lock the RFS file system.
*/
static inline void
rtems_rfs_rtems_lock (rtems_rfs_file_system* fs)
{
1216da: 55 push %ebp <== NOT EXECUTED
1216db: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1216dd: 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);
1216e0: 6a 00 push $0x0 <== NOT EXECUTED
1216e2: 6a 00 push $0x0 <== NOT EXECUTED
1216e4: 8b 40 7c mov 0x7c(%eax),%eax <== NOT EXECUTED
1216e7: ff 30 pushl (%eax) <== NOT EXECUTED
1216e9: e8 1a f5 fe ff call 110c08 <rtems_semaphore_obtain><== NOT EXECUTED
1216ee: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_rfs_rtems_private* rtems = rtems_rfs_fs_user (fs);
rtems_rfs_mutex_lock (&rtems->access);
}
1216f1: c9 leave <== NOT EXECUTED
1216f2: c3 ret <== NOT EXECUTED
00121e80 <rtems_rfs_rtems_mknod>:
int
rtems_rfs_rtems_mknod (const char *name,
mode_t mode,
dev_t dev,
rtems_filesystem_location_info_t *pathloc)
{
121e80: 55 push %ebp <== NOT EXECUTED
121e81: 89 e5 mov %esp,%ebp <== NOT EXECUTED
121e83: 57 push %edi <== NOT EXECUTED
121e84: 56 push %esi <== NOT EXECUTED
121e85: 53 push %ebx <== NOT EXECUTED
121e86: 83 ec 4c sub $0x4c,%esp <== NOT EXECUTED
121e89: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
121e8c: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
121e8f: 89 45 b0 mov %eax,-0x50(%ebp) <== NOT EXECUTED
121e92: 8b 4d 14 mov 0x14(%ebp),%ecx <== NOT EXECUTED
121e95: 89 4d ac mov %ecx,-0x54(%ebp) <== NOT EXECUTED
121e98: 8b 45 18 mov 0x18(%ebp),%eax <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
121e9b: 8b 50 10 mov 0x10(%eax),%edx <== NOT EXECUTED
121e9e: 8b 5a 34 mov 0x34(%edx),%ebx <== NOT EXECUTED
rtems_rfs_ino parent = rtems_rfs_rtems_get_pathloc_ino (pathloc);
121ea1: 8b 00 mov (%eax),%eax <== NOT EXECUTED
121ea3: 89 45 b4 mov %eax,-0x4c(%ebp) <== NOT EXECUTED
#else
uid = 0;
gid = 0;
#endif
rtems_rfs_rtems_lock (fs);
121ea6: 89 d8 mov %ebx,%eax <== NOT EXECUTED
121ea8: e8 2d f8 ff ff call 1216da <rtems_rfs_rtems_lock> <== NOT EXECUTED
rc = rtems_rfs_inode_create (fs, parent, name, strlen (name),
rtems_rfs_rtems_imode (mode),
121ead: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
121eb0: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
121eb3: e8 6b 0b 00 00 call 122a23 <rtems_rfs_rtems_imode> <== NOT EXECUTED
121eb8: 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),
121eba: 31 c0 xor %eax,%eax <== NOT EXECUTED
121ebc: 83 c9 ff or $0xffffffff,%ecx <== NOT EXECUTED
121ebf: 89 f7 mov %esi,%edi <== NOT EXECUTED
121ec1: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED
121ec3: f7 d1 not %ecx <== NOT EXECUTED
121ec5: 49 dec %ecx <== NOT EXECUTED
121ec6: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
121ec9: 89 04 24 mov %eax,(%esp) <== NOT EXECUTED
121ecc: 6a 00 push $0x0 <== NOT EXECUTED
121ece: 6a 00 push $0x0 <== NOT EXECUTED
121ed0: 6a 01 push $0x1 <== NOT EXECUTED
121ed2: 0f b7 d2 movzwl %dx,%edx <== NOT EXECUTED
121ed5: 52 push %edx <== NOT EXECUTED
121ed6: 51 push %ecx <== NOT EXECUTED
121ed7: 56 push %esi <== NOT EXECUTED
121ed8: ff 75 b4 pushl -0x4c(%ebp) <== NOT EXECUTED
121edb: 53 push %ebx <== NOT EXECUTED
121edc: e8 3f 63 01 00 call 138220 <rtems_rfs_inode_create><== NOT EXECUTED
121ee1: 89 c6 mov %eax,%esi <== NOT EXECUTED
rtems_rfs_rtems_imode (mode),
1, uid, gid, &ino);
if (rc > 0)
121ee3: 83 c4 30 add $0x30,%esp <== NOT EXECUTED
121ee6: 85 c0 test %eax,%eax <== NOT EXECUTED
121ee8: 0f 8f f2 00 00 00 jg 121fe0 <rtems_rfs_rtems_mknod+0x160><== 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);
121eee: 6a 01 push $0x1 <== NOT EXECUTED
121ef0: 8d 75 bc lea -0x44(%ebp),%esi <== NOT EXECUTED
121ef3: 56 push %esi <== NOT EXECUTED
121ef4: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
121ef7: 53 push %ebx <== NOT EXECUTED
121ef8: e8 de 61 01 00 call 1380db <rtems_rfs_inode_open> <== NOT EXECUTED
121efd: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc > 0)
121eff: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
121f02: 85 c0 test %eax,%eax <== NOT EXECUTED
121f04: 7e 16 jle 121f1c <rtems_rfs_rtems_mknod+0x9c><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
121f06: 89 d8 mov %ebx,%eax <== NOT EXECUTED
121f08: e8 e6 f7 ff ff call 1216f3 <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("mknod: inode open", rc);
121f0d: e8 86 ae 01 00 call 13cd98 <__errno> <== NOT EXECUTED
121f12: 89 38 mov %edi,(%eax) <== NOT EXECUTED
121f14: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
121f17: e9 e0 00 00 00 jmp 121ffc <rtems_rfs_rtems_mknod+0x17c><== NOT EXECUTED
}
if (S_ISDIR(mode) || S_ISREG(mode))
121f1c: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
121f1f: 25 00 f0 00 00 and $0xf000,%eax <== NOT EXECUTED
121f24: 3d 00 80 00 00 cmp $0x8000,%eax <== NOT EXECUTED
121f29: 0f 84 9c 00 00 00 je 121fcb <rtems_rfs_rtems_mknod+0x14b><== NOT EXECUTED
121f2f: 3d 00 40 00 00 cmp $0x4000,%eax <== NOT EXECUTED
121f34: 0f 84 91 00 00 00 je 121fcb <rtems_rfs_rtems_mknod+0x14b><== NOT EXECUTED
{
}
else if (S_ISCHR (mode) || S_ISBLK (mode))
121f3a: 3d 00 60 00 00 cmp $0x6000,%eax <== NOT EXECUTED
121f3f: 74 07 je 121f48 <rtems_rfs_rtems_mknod+0xc8><== NOT EXECUTED
121f41: 3d 00 20 00 00 cmp $0x2000,%eax <== NOT EXECUTED
121f46: 75 60 jne 121fa8 <rtems_rfs_rtems_mknod+0x128><== NOT EXECUTED
dev_t device
)
{
union __rtems_dev_t temp;
temp.device = device;
121f48: 8b 55 b0 mov -0x50(%ebp),%edx <== NOT EXECUTED
dev_t device
)
{
union __rtems_dev_t temp;
temp.device = device;
121f4b: 8b 45 ac mov -0x54(%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);
121f4e: 89 d6 mov %edx,%esi <== NOT EXECUTED
121f50: c1 ee 18 shr $0x18,%esi <== NOT EXECUTED
121f53: 8b 7d c8 mov -0x38(%ebp),%edi <== NOT EXECUTED
121f56: 89 f1 mov %esi,%ecx <== NOT EXECUTED
121f58: 88 4f 1c mov %cl,0x1c(%edi) <== NOT EXECUTED
121f5b: 89 d6 mov %edx,%esi <== NOT EXECUTED
121f5d: c1 ee 10 shr $0x10,%esi <== NOT EXECUTED
121f60: 8b 7d c8 mov -0x38(%ebp),%edi <== NOT EXECUTED
121f63: 89 f1 mov %esi,%ecx <== NOT EXECUTED
121f65: 88 4f 1d mov %cl,0x1d(%edi) <== NOT EXECUTED
121f68: 89 d6 mov %edx,%esi <== NOT EXECUTED
121f6a: c1 ee 08 shr $0x8,%esi <== NOT EXECUTED
121f6d: 8b 7d c8 mov -0x38(%ebp),%edi <== NOT EXECUTED
121f70: 89 f1 mov %esi,%ecx <== NOT EXECUTED
121f72: 88 4f 1e mov %cl,0x1e(%edi) <== NOT EXECUTED
121f75: 8b 4d c8 mov -0x38(%ebp),%ecx <== NOT EXECUTED
121f78: 88 51 1f mov %dl,0x1f(%ecx) <== NOT EXECUTED
121f7b: 89 c1 mov %eax,%ecx <== NOT EXECUTED
121f7d: c1 e9 18 shr $0x18,%ecx <== NOT EXECUTED
121f80: 8b 55 c8 mov -0x38(%ebp),%edx <== NOT EXECUTED
121f83: 88 4a 20 mov %cl,0x20(%edx) <== NOT EXECUTED
121f86: 89 c1 mov %eax,%ecx <== NOT EXECUTED
121f88: c1 e9 10 shr $0x10,%ecx <== NOT EXECUTED
121f8b: 8b 55 c8 mov -0x38(%ebp),%edx <== NOT EXECUTED
121f8e: 88 4a 21 mov %cl,0x21(%edx) <== NOT EXECUTED
121f91: 89 c1 mov %eax,%ecx <== NOT EXECUTED
121f93: c1 e9 08 shr $0x8,%ecx <== NOT EXECUTED
121f96: 8b 55 c8 mov -0x38(%ebp),%edx <== NOT EXECUTED
121f99: 88 4a 22 mov %cl,0x22(%edx) <== NOT EXECUTED
121f9c: 8b 55 c8 mov -0x38(%ebp),%edx <== NOT EXECUTED
121f9f: 88 42 23 mov %al,0x23(%edx) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
121fa2: c6 45 cc 01 movb $0x1,-0x34(%ebp) <== NOT EXECUTED
121fa6: eb 23 jmp 121fcb <rtems_rfs_rtems_mknod+0x14b><== 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);
121fa8: 51 push %ecx <== NOT EXECUTED
121fa9: 51 push %ecx <== NOT EXECUTED
121faa: 56 push %esi <== NOT EXECUTED
121fab: 53 push %ebx <== NOT EXECUTED
121fac: e8 bb 60 01 00 call 13806c <rtems_rfs_inode_close> <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
121fb1: 89 d8 mov %ebx,%eax <== NOT EXECUTED
121fb3: e8 3b f7 ff ff call 1216f3 <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("mknod: bad mode", EINVAL);
121fb8: e8 db ad 01 00 call 13cd98 <__errno> <== NOT EXECUTED
121fbd: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
121fc3: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
121fc6: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
121fc9: eb 31 jmp 121ffc <rtems_rfs_rtems_mknod+0x17c><== NOT EXECUTED
}
rc = rtems_rfs_inode_close (fs, &inode);
121fcb: 52 push %edx <== NOT EXECUTED
121fcc: 52 push %edx <== NOT EXECUTED
121fcd: 8d 45 bc lea -0x44(%ebp),%eax <== NOT EXECUTED
121fd0: 50 push %eax <== NOT EXECUTED
121fd1: 53 push %ebx <== NOT EXECUTED
121fd2: e8 95 60 01 00 call 13806c <rtems_rfs_inode_close> <== NOT EXECUTED
121fd7: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
121fd9: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
121fdc: 85 c0 test %eax,%eax <== NOT EXECUTED
121fde: 7e 13 jle 121ff3 <rtems_rfs_rtems_mknod+0x173><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
121fe0: 89 d8 mov %ebx,%eax <== NOT EXECUTED
121fe2: e8 0c f7 ff ff call 1216f3 <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("mknod: closing inode", rc);
121fe7: e8 ac ad 01 00 call 13cd98 <__errno> <== NOT EXECUTED
121fec: 89 30 mov %esi,(%eax) <== NOT EXECUTED
121fee: e9 21 ff ff ff jmp 121f14 <rtems_rfs_rtems_mknod+0x94><== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
121ff3: 89 d8 mov %ebx,%eax <== NOT EXECUTED
121ff5: e8 f9 f6 ff ff call 1216f3 <rtems_rfs_rtems_unlock><== NOT EXECUTED
121ffa: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
}
121ffc: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
121fff: 5b pop %ebx <== NOT EXECUTED
122000: 5e pop %esi <== NOT EXECUTED
122001: 5f pop %edi <== NOT EXECUTED
122002: c9 leave <== NOT EXECUTED
122003: c3 ret <== NOT EXECUTED
00122a2b <rtems_rfs_rtems_mode>:
mode_t
rtems_rfs_rtems_mode (int imode)
{
122a2b: 55 push %ebp <== NOT EXECUTED
122a2c: 89 e5 mov %esp,%ebp <== NOT EXECUTED
/*
* Mapping matches RTEMS so no need to change.
*/
return imode;
}
122a2e: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
122a31: c9 leave <== NOT EXECUTED
122a32: c3 ret <== NOT EXECUTED
0012195b <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)
{
12195b: 55 push %ebp <== NOT EXECUTED
12195c: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12195e: 57 push %edi <== NOT EXECUTED
12195f: 56 push %esi <== NOT EXECUTED
121960: 53 push %ebx <== NOT EXECUTED
121961: 83 ec 3c sub $0x3c,%esp <== NOT EXECUTED
121964: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
121967: 8b 50 10 mov 0x10(%eax),%edx <== NOT EXECUTED
12196a: 8b 72 34 mov 0x34(%edx),%esi <== NOT EXECUTED
rtems_rfs_ino ino = rtems_rfs_rtems_get_pathloc_ino (pathloc);
12196d: 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);
12196f: 89 f0 mov %esi,%eax <== NOT EXECUTED
121971: e8 64 fd ff ff call 1216da <rtems_rfs_rtems_lock> <== NOT EXECUTED
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
121976: 6a 01 push $0x1 <== NOT EXECUTED
121978: 8d 45 c0 lea -0x40(%ebp),%eax <== NOT EXECUTED
12197b: 50 push %eax <== NOT EXECUTED
12197c: 53 push %ebx <== NOT EXECUTED
12197d: 56 push %esi <== NOT EXECUTED
12197e: e8 58 67 01 00 call 1380db <rtems_rfs_inode_open> <== NOT EXECUTED
121983: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc > 0)
121985: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
121988: 85 c0 test %eax,%eax <== NOT EXECUTED
12198a: 7e 10 jle 12199c <rtems_rfs_rtems_node_type+0x41><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
12198c: 89 f0 mov %esi,%eax <== NOT EXECUTED
12198e: e8 60 fd ff ff call 1216f3 <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("node_type: opening inode", rc);
121993: e8 00 b4 01 00 call 13cd98 <__errno> <== NOT EXECUTED
121998: 89 18 mov %ebx,(%eax) <== NOT EXECUTED
12199a: eb 5c jmp 1219f8 <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))
12199c: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED
12199f: 0f b6 40 02 movzbl 0x2(%eax),%eax <== NOT EXECUTED
1219a3: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
1219a6: 25 00 f0 00 00 and $0xf000,%eax <== NOT EXECUTED
1219ab: bb 01 00 00 00 mov $0x1,%ebx <== NOT EXECUTED
1219b0: 3d 00 40 00 00 cmp $0x4000,%eax <== NOT EXECUTED
1219b5: 74 1e je 1219d5 <rtems_rfs_rtems_node_type+0x7a><== NOT EXECUTED
type = RTEMS_FILESYSTEM_DIRECTORY;
else if (RTEMS_RFS_S_ISLNK (mode))
1219b7: b3 04 mov $0x4,%bl <== NOT EXECUTED
1219b9: 3d 00 a0 00 00 cmp $0xa000,%eax <== NOT EXECUTED
1219be: 74 15 je 1219d5 <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))
1219c0: 3d 00 20 00 00 cmp $0x2000,%eax <== NOT EXECUTED
1219c5: 74 09 je 1219d0 <rtems_rfs_rtems_node_type+0x75><== NOT EXECUTED
1219c7: b3 05 mov $0x5,%bl <== NOT EXECUTED
1219c9: 3d 00 60 00 00 cmp $0x6000,%eax <== NOT EXECUTED
1219ce: 75 05 jne 1219d5 <rtems_rfs_rtems_node_type+0x7a><== NOT EXECUTED
1219d0: 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);
1219d5: 57 push %edi <== NOT EXECUTED
1219d6: 57 push %edi <== NOT EXECUTED
1219d7: 8d 45 c0 lea -0x40(%ebp),%eax <== NOT EXECUTED
1219da: 50 push %eax <== NOT EXECUTED
1219db: 56 push %esi <== NOT EXECUTED
1219dc: e8 8b 66 01 00 call 13806c <rtems_rfs_inode_close> <== NOT EXECUTED
1219e1: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc > 0)
1219e3: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1219e6: 85 c0 test %eax,%eax <== NOT EXECUTED
1219e8: 7e 13 jle 1219fd <rtems_rfs_rtems_node_type+0xa2><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
1219ea: 89 f0 mov %esi,%eax <== NOT EXECUTED
1219ec: e8 02 fd ff ff call 1216f3 <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("node_type: closing inode", rc);
1219f1: e8 a2 b3 01 00 call 13cd98 <__errno> <== NOT EXECUTED
1219f6: 89 38 mov %edi,(%eax) <== NOT EXECUTED
1219f8: 83 cb ff or $0xffffffff,%ebx <== NOT EXECUTED
1219fb: eb 07 jmp 121a04 <rtems_rfs_rtems_node_type+0xa9><== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
1219fd: 89 f0 mov %esi,%eax <== NOT EXECUTED
1219ff: e8 ef fc ff ff call 1216f3 <rtems_rfs_rtems_unlock><== NOT EXECUTED
return type;
}
121a04: 89 d8 mov %ebx,%eax <== NOT EXECUTED
121a06: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
121a09: 5b pop %ebx <== NOT EXECUTED
121a0a: 5e pop %esi <== NOT EXECUTED
121a0b: 5f pop %edi <== NOT EXECUTED
121a0c: c9 leave <== NOT EXECUTED
121a0d: c3 ret <== NOT EXECUTED
001222ad <rtems_rfs_rtems_readlink>:
int
rtems_rfs_rtems_readlink (rtems_filesystem_location_info_t* pathloc,
char* buf,
size_t bufsize)
{
1222ad: 55 push %ebp <== NOT EXECUTED
1222ae: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1222b0: 56 push %esi <== NOT EXECUTED
1222b1: 53 push %ebx <== NOT EXECUTED
1222b2: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED
1222b5: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
1222b8: 8b 50 10 mov 0x10(%eax),%edx <== NOT EXECUTED
1222bb: 8b 5a 34 mov 0x34(%edx),%ebx <== NOT EXECUTED
rtems_rfs_ino ino = rtems_rfs_rtems_get_pathloc_ino (pathloc);
1222be: 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);
1222c0: 89 d8 mov %ebx,%eax <== NOT EXECUTED
1222c2: e8 13 f4 ff ff call 1216da <rtems_rfs_rtems_lock> <== NOT EXECUTED
rc = rtems_rfs_symlink_read (fs, ino, buf, bufsize, &length);
1222c7: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1222ca: 8d 45 f4 lea -0xc(%ebp),%eax <== NOT EXECUTED
1222cd: 50 push %eax <== NOT EXECUTED
1222ce: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
1222d1: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
1222d4: 56 push %esi <== NOT EXECUTED
1222d5: 53 push %ebx <== NOT EXECUTED
1222d6: e8 65 61 01 00 call 138440 <rtems_rfs_symlink_read><== NOT EXECUTED
1222db: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc)
1222dd: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
1222e0: 85 c0 test %eax,%eax <== NOT EXECUTED
1222e2: 74 13 je 1222f7 <rtems_rfs_rtems_readlink+0x4a><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
1222e4: 89 d8 mov %ebx,%eax <== NOT EXECUTED
1222e6: e8 08 f4 ff ff call 1216f3 <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("readlink: reading link", rc);
1222eb: e8 a8 aa 01 00 call 13cd98 <__errno> <== NOT EXECUTED
1222f0: 89 30 mov %esi,(%eax) <== NOT EXECUTED
1222f2: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
1222f5: eb 0a jmp 122301 <rtems_rfs_rtems_readlink+0x54><== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
1222f7: 89 d8 mov %ebx,%eax <== NOT EXECUTED
1222f9: e8 f5 f3 ff ff call 1216f3 <rtems_rfs_rtems_unlock><== NOT EXECUTED
return (int) length;
1222fe: 8b 45 f4 mov -0xc(%ebp),%eax <== NOT EXECUTED
}
122301: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
122304: 5b pop %ebx <== NOT EXECUTED
122305: 5e pop %esi <== NOT EXECUTED
122306: c9 leave <== NOT EXECUTED
122307: c3 ret <== NOT EXECUTED
00121ce0 <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)
{
121ce0: 55 push %ebp <== NOT EXECUTED
121ce1: 89 e5 mov %esp,%ebp <== NOT EXECUTED
121ce3: 57 push %edi <== NOT EXECUTED
121ce4: 56 push %esi <== NOT EXECUTED
121ce5: 53 push %ebx <== NOT EXECUTED
121ce6: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
121ce9: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (old_loc);
121cec: 8b 50 10 mov 0x10(%eax),%edx <== NOT EXECUTED
121cef: 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);
121cf2: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
121cf5: 8b 12 mov (%edx),%edx <== NOT EXECUTED
121cf7: 89 55 e0 mov %edx,-0x20(%ebp) <== NOT EXECUTED
new_parent = rtems_rfs_rtems_get_pathloc_ino (new_parent_loc);
121cfa: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
121cfd: 8b 12 mov (%edx),%edx <== NOT EXECUTED
ino = rtems_rfs_rtems_get_pathloc_ino (old_loc);
121cff: 8b 30 mov (%eax),%esi <== NOT EXECUTED
doff = rtems_rfs_rtems_get_pathloc_doff (old_loc);
121d01: 8b 40 04 mov 0x4(%eax),%eax <== NOT EXECUTED
121d04: 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);
121d07: 89 d8 mov %ebx,%eax <== NOT EXECUTED
121d09: 89 55 dc mov %edx,-0x24(%ebp) <== NOT EXECUTED
121d0c: e8 c9 f9 ff ff call 1216da <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);
121d11: 31 c0 xor %eax,%eax <== NOT EXECUTED
121d13: 83 c9 ff or $0xffffffff,%ecx <== NOT EXECUTED
121d16: 8b 7d 14 mov 0x14(%ebp),%edi <== NOT EXECUTED
121d19: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED
121d1b: f7 d1 not %ecx <== NOT EXECUTED
121d1d: 49 dec %ecx <== NOT EXECUTED
121d1e: 50 push %eax <== NOT EXECUTED
121d1f: 50 push %eax <== NOT EXECUTED
121d20: 6a 01 push $0x1 <== NOT EXECUTED
121d22: 56 push %esi <== NOT EXECUTED
121d23: 8b 55 dc mov -0x24(%ebp),%edx <== NOT EXECUTED
121d26: 52 push %edx <== NOT EXECUTED
121d27: 51 push %ecx <== NOT EXECUTED
121d28: ff 75 14 pushl 0x14(%ebp) <== NOT EXECUTED
121d2b: 53 push %ebx <== NOT EXECUTED
121d2c: e8 36 6c 01 00 call 138967 <rtems_rfs_link> <== NOT EXECUTED
121d31: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc)
121d33: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
121d36: 85 c0 test %eax,%eax <== NOT EXECUTED
121d38: 74 10 je 121d4a <rtems_rfs_rtems_rename+0x6a><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
121d3a: 89 d8 mov %ebx,%eax <== NOT EXECUTED
121d3c: e8 b2 f9 ff ff call 1216f3 <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("rename: linking", rc);
121d41: e8 52 b0 01 00 call 13cd98 <__errno> <== NOT EXECUTED
121d46: 89 38 mov %edi,(%eax) <== NOT EXECUTED
121d48: eb 29 jmp 121d73 <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,
121d4a: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
121d4d: 6a 02 push $0x2 <== NOT EXECUTED
121d4f: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
121d52: 56 push %esi <== NOT EXECUTED
121d53: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
121d56: 53 push %ebx <== NOT EXECUTED
121d57: e8 68 6a 01 00 call 1387c4 <rtems_rfs_unlink> <== NOT EXECUTED
121d5c: 89 c6 mov %eax,%esi <== NOT EXECUTED
rtems_rfs_unlink_dir_allowed);
if (rc)
121d5e: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
121d61: 85 c0 test %eax,%eax <== NOT EXECUTED
121d63: 74 13 je 121d78 <rtems_rfs_rtems_rename+0x98><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
121d65: 89 d8 mov %ebx,%eax <== NOT EXECUTED
121d67: e8 87 f9 ff ff call 1216f3 <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("rename: unlinking", rc);
121d6c: e8 27 b0 01 00 call 13cd98 <__errno> <== NOT EXECUTED
121d71: 89 30 mov %esi,(%eax) <== NOT EXECUTED
121d73: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
121d76: eb 09 jmp 121d81 <rtems_rfs_rtems_rename+0xa1><== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
121d78: 89 d8 mov %ebx,%eax <== NOT EXECUTED
121d7a: e8 74 f9 ff ff call 1216f3 <rtems_rfs_rtems_unlock><== NOT EXECUTED
121d7f: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
}
121d81: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
121d84: 5b pop %ebx <== NOT EXECUTED
121d85: 5e pop %esi <== NOT EXECUTED
121d86: 5f pop %edi <== NOT EXECUTED
121d87: c9 leave <== NOT EXECUTED
121d88: c3 ret <== NOT EXECUTED
00121d89 <rtems_rfs_rtems_rmnod>:
* @return int
*/
int
rtems_rfs_rtems_rmnod (rtems_filesystem_location_info_t* parent_pathloc,
rtems_filesystem_location_info_t* pathloc)
{
121d89: 55 push %ebp <== NOT EXECUTED
121d8a: 89 e5 mov %esp,%ebp <== NOT EXECUTED
121d8c: 57 push %edi <== NOT EXECUTED
121d8d: 56 push %esi <== NOT EXECUTED
121d8e: 53 push %ebx <== NOT EXECUTED
121d8f: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
121d92: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
121d95: 8b 50 10 mov 0x10(%eax),%edx <== NOT EXECUTED
121d98: 8b 5a 34 mov 0x34(%edx),%ebx <== NOT EXECUTED
rtems_rfs_ino parent = rtems_rfs_rtems_get_pathloc_ino (parent_pathloc);
121d9b: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
121d9e: 8b 32 mov (%edx),%esi <== NOT EXECUTED
rtems_rfs_ino ino = rtems_rfs_rtems_get_pathloc_ino (pathloc);
121da0: 8b 38 mov (%eax),%edi <== NOT EXECUTED
uint32_t doff = rtems_rfs_rtems_get_pathloc_doff (pathloc);
121da2: 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);
121da5: 89 d8 mov %ebx,%eax <== NOT EXECUTED
121da7: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED
121daa: e8 2b f9 ff ff call 1216da <rtems_rfs_rtems_lock> <== NOT EXECUTED
rc = rtems_rfs_unlink (fs, parent, ino, doff, rtems_rfs_unlink_dir_denied);
121daf: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
121db2: 6a 00 push $0x0 <== NOT EXECUTED
121db4: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
121db7: 52 push %edx <== NOT EXECUTED
121db8: 57 push %edi <== NOT EXECUTED
121db9: 56 push %esi <== NOT EXECUTED
121dba: 53 push %ebx <== NOT EXECUTED
121dbb: e8 04 6a 01 00 call 1387c4 <rtems_rfs_unlink> <== NOT EXECUTED
121dc0: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc)
121dc2: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
121dc5: 85 c0 test %eax,%eax <== NOT EXECUTED
121dc7: 74 13 je 121ddc <rtems_rfs_rtems_rmnod+0x53><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
121dc9: 89 d8 mov %ebx,%eax <== NOT EXECUTED
121dcb: e8 23 f9 ff ff call 1216f3 <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("rmnod: unlinking", rc);
121dd0: e8 c3 af 01 00 call 13cd98 <__errno> <== NOT EXECUTED
121dd5: 89 30 mov %esi,(%eax) <== NOT EXECUTED
121dd7: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
121dda: eb 09 jmp 121de5 <rtems_rfs_rtems_rmnod+0x5c><== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
121ddc: 89 d8 mov %ebx,%eax <== NOT EXECUTED
121dde: e8 10 f9 ff ff call 1216f3 <rtems_rfs_rtems_unlock><== NOT EXECUTED
121de3: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
}
121de5: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
121de8: 5b pop %ebx <== NOT EXECUTED
121de9: 5e pop %esi <== NOT EXECUTED
121dea: 5f pop %edi <== NOT EXECUTED
121deb: c9 leave <== NOT EXECUTED
121dec: c3 ret <== NOT EXECUTED
00122a33 <rtems_rfs_rtems_set_handlers>:
*/
bool
rtems_rfs_rtems_set_handlers (rtems_filesystem_location_info_t* loc,
rtems_rfs_inode_handle* inode)
{
122a33: 55 push %ebp <== NOT EXECUTED
122a34: 89 e5 mov %esp,%ebp <== NOT EXECUTED
122a36: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
122a39: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
122a3c: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
122a3f: 8b 52 0c mov 0xc(%edx),%edx <== NOT EXECUTED
122a42: 0f b6 4a 02 movzbl 0x2(%edx),%ecx <== NOT EXECUTED
122a46: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
122a49: 0f b6 52 03 movzbl 0x3(%edx),%edx <== NOT EXECUTED
122a4d: 09 ca or %ecx,%edx <== NOT EXECUTED
uint16_t mode = rtems_rfs_inode_get_mode (inode);
loc->handlers = NULL;
122a4f: c7 40 08 00 00 00 00 movl $0x0,0x8(%eax) <== NOT EXECUTED
if (RTEMS_RFS_S_ISDIR (mode))
122a56: 0f b7 ca movzwl %dx,%ecx <== NOT EXECUTED
122a59: 89 ca mov %ecx,%edx <== NOT EXECUTED
122a5b: 81 e2 00 f0 00 00 and $0xf000,%edx <== NOT EXECUTED
122a61: 81 fa 00 40 00 00 cmp $0x4000,%edx <== NOT EXECUTED
122a67: 75 09 jne 122a72 <rtems_rfs_rtems_set_handlers+0x3f><== NOT EXECUTED
loc->handlers = rtems_rfs_rtems_handlers (dir);
122a69: c7 40 08 dc d5 15 00 movl $0x15d5dc,0x8(%eax) <== NOT EXECUTED
122a70: eb 17 jmp 122a89 <rtems_rfs_rtems_set_handlers+0x56><== NOT EXECUTED
else if (RTEMS_RFS_S_ISCHR (mode) || RTEMS_RFS_S_ISBLK(mode))
122a72: 81 fa 00 60 00 00 cmp $0x6000,%edx <== NOT EXECUTED
122a78: 74 08 je 122a82 <rtems_rfs_rtems_set_handlers+0x4f><== NOT EXECUTED
122a7a: 81 fa 00 20 00 00 cmp $0x2000,%edx <== NOT EXECUTED
122a80: 75 0b jne 122a8d <rtems_rfs_rtems_set_handlers+0x5a><== NOT EXECUTED
loc->handlers = rtems_rfs_rtems_handlers (device);
122a82: c7 40 08 a4 d5 15 00 movl $0x15d5a4,0x8(%eax) <== NOT EXECUTED
122a89: b0 01 mov $0x1,%al <== NOT EXECUTED
122a8b: eb 34 jmp 122ac1 <rtems_rfs_rtems_set_handlers+0x8e><== NOT EXECUTED
else if (RTEMS_RFS_S_ISLNK (mode))
122a8d: 81 fa 00 a0 00 00 cmp $0xa000,%edx <== NOT EXECUTED
122a93: 75 09 jne 122a9e <rtems_rfs_rtems_set_handlers+0x6b><== NOT EXECUTED
loc->handlers = rtems_rfs_rtems_handlers (link);
122a95: c7 40 08 e4 8c 15 00 movl $0x158ce4,0x8(%eax) <== NOT EXECUTED
122a9c: eb eb jmp 122a89 <rtems_rfs_rtems_set_handlers+0x56><== NOT EXECUTED
else if (RTEMS_RFS_S_ISREG (mode))
122a9e: 81 fa 00 80 00 00 cmp $0x8000,%edx <== NOT EXECUTED
122aa4: 75 09 jne 122aaf <rtems_rfs_rtems_set_handlers+0x7c><== NOT EXECUTED
loc->handlers = rtems_rfs_rtems_handlers (file);
122aa6: c7 40 08 14 d6 15 00 movl $0x15d614,0x8(%eax) <== NOT EXECUTED
122aad: eb da jmp 122a89 <rtems_rfs_rtems_set_handlers+0x56><== NOT EXECUTED
else
{
printf ("rtems-rfs: mode type unknown: %04x\n", mode);
122aaf: 50 push %eax <== NOT EXECUTED
122ab0: 50 push %eax <== NOT EXECUTED
122ab1: 51 push %ecx <== NOT EXECUTED
122ab2: 68 64 8d 15 00 push $0x158d64 <== NOT EXECUTED
122ab7: e8 f8 e1 01 00 call 140cb4 <printf> <== NOT EXECUTED
122abc: 31 c0 xor %eax,%eax <== NOT EXECUTED
return false;
122abe: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
return true;
}
122ac1: c9 leave <== NOT EXECUTED
122ac2: c3 ret <== NOT EXECUTED
00121a0e <rtems_rfs_rtems_shutdown>:
/**
* Shutdown the file system.
*/
int
rtems_rfs_rtems_shutdown (rtems_filesystem_mount_table_entry_t* mt_entry)
{
121a0e: 55 push %ebp <== NOT EXECUTED
121a0f: 89 e5 mov %esp,%ebp <== NOT EXECUTED
121a11: 56 push %esi <== NOT EXECUTED
121a12: 53 push %ebx <== NOT EXECUTED
rtems_rfs_file_system* fs = mt_entry->fs_info;
121a13: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
121a16: 8b 40 34 mov 0x34(%eax),%eax <== NOT EXECUTED
rtems_rfs_rtems_private* rtems;
int rc;
rtems = rtems_rfs_fs_user (fs);
121a19: 8b 70 7c mov 0x7c(%eax),%esi <== NOT EXECUTED
rc = rtems_rfs_fs_close(fs);
121a1c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
121a1f: 50 push %eax <== NOT EXECUTED
121a20: e8 d6 4d 01 00 call 1367fb <rtems_rfs_fs_close> <== NOT EXECUTED
121a25: 89 c3 mov %eax,%ebx <== NOT EXECUTED
rtems_rfs_mutex_destroy (&rtems->access);
121a27: 89 34 24 mov %esi,(%esp) <== NOT EXECUTED
121a2a: e8 59 70 01 00 call 138a88 <rtems_rfs_mutex_destroy><== NOT EXECUTED
free (rtems);
121a2f: 89 34 24 mov %esi,(%esp) <== NOT EXECUTED
121a32: e8 65 b4 fe ff call 10ce9c <free> <== NOT EXECUTED
return rtems_rfs_rtems_error ("shutdown: close", rc);
121a37: e8 5c b3 01 00 call 13cd98 <__errno> <== NOT EXECUTED
121a3c: 89 18 mov %ebx,(%eax) <== NOT EXECUTED
121a3e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
121a41: 83 fb 01 cmp $0x1,%ebx <== NOT EXECUTED
121a44: 19 c0 sbb %eax,%eax <== NOT EXECUTED
121a46: f7 d0 not %eax <== NOT EXECUTED
}
121a48: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
121a4b: 5b pop %ebx <== NOT EXECUTED
121a4c: 5e pop %esi <== NOT EXECUTED
121a4d: c9 leave <== NOT EXECUTED
121a4e: c3 ret <== NOT EXECUTED
00122004 <rtems_rfs_rtems_stat>:
*/
int
rtems_rfs_rtems_stat (rtems_filesystem_location_info_t* pathloc,
struct stat* buf)
{
122004: 55 push %ebp <== NOT EXECUTED
122005: 89 e5 mov %esp,%ebp <== NOT EXECUTED
122007: 57 push %edi <== NOT EXECUTED
122008: 56 push %esi <== NOT EXECUTED
122009: 53 push %ebx <== NOT EXECUTED
12200a: 83 ec 4c sub $0x4c,%esp <== NOT EXECUTED
12200d: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
122010: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
122013: 8b 50 10 mov 0x10(%eax),%edx <== NOT EXECUTED
122016: 8b 72 34 mov 0x34(%edx),%esi <== NOT EXECUTED
rtems_rfs_ino ino = rtems_rfs_rtems_get_pathloc_ino (pathloc);
122019: 8b 00 mov (%eax),%eax <== NOT EXECUTED
12201b: 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);
12201e: 89 f0 mov %esi,%eax <== NOT EXECUTED
122020: e8 b5 f6 ff ff call 1216da <rtems_rfs_rtems_lock> <== NOT EXECUTED
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
122025: 6a 01 push $0x1 <== NOT EXECUTED
122027: 8d 45 c0 lea -0x40(%ebp),%eax <== NOT EXECUTED
12202a: 50 push %eax <== NOT EXECUTED
12202b: ff 75 b4 pushl -0x4c(%ebp) <== NOT EXECUTED
12202e: 56 push %esi <== NOT EXECUTED
12202f: e8 a7 60 01 00 call 1380db <rtems_rfs_inode_open> <== NOT EXECUTED
122034: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc)
122036: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
122039: 85 c0 test %eax,%eax <== NOT EXECUTED
12203b: 74 13 je 122050 <rtems_rfs_rtems_stat+0x4c><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
12203d: 89 f0 mov %esi,%eax <== NOT EXECUTED
12203f: e8 af f6 ff ff call 1216f3 <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("stat: opening inode", rc);
122044: e8 4f ad 01 00 call 13cd98 <__errno> <== NOT EXECUTED
122049: 89 38 mov %edi,(%eax) <== NOT EXECUTED
12204b: e9 47 02 00 00 jmp 122297 <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);
122050: 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))
122053: 0f b6 57 02 movzbl 0x2(%edi),%edx <== NOT EXECUTED
122057: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
12205a: 0f b6 47 03 movzbl 0x3(%edi),%eax <== NOT EXECUTED
12205e: 09 d0 or %edx,%eax <== NOT EXECUTED
122060: 0f b7 c0 movzwl %ax,%eax <== NOT EXECUTED
122063: 89 45 b0 mov %eax,-0x50(%ebp) <== NOT EXECUTED
122066: 25 00 f0 00 00 and $0xf000,%eax <== NOT EXECUTED
12206b: 3d 00 60 00 00 cmp $0x6000,%eax <== NOT EXECUTED
122070: 74 07 je 122079 <rtems_rfs_rtems_stat+0x75><== NOT EXECUTED
122072: 3d 00 20 00 00 cmp $0x2000,%eax <== NOT EXECUTED
122077: 75 47 jne 1220c0 <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]);
122079: 8d 4f 1c lea 0x1c(%edi),%ecx <== NOT EXECUTED
12207c: 0f b6 41 04 movzbl 0x4(%ecx),%eax <== NOT EXECUTED
122080: c1 e0 18 shl $0x18,%eax <== NOT EXECUTED
122083: 0f b6 51 05 movzbl 0x5(%ecx),%edx <== NOT EXECUTED
122087: c1 e2 10 shl $0x10,%edx <== NOT EXECUTED
12208a: 09 d0 or %edx,%eax <== NOT EXECUTED
12208c: 0f b6 51 07 movzbl 0x7(%ecx),%edx <== NOT EXECUTED
122090: 09 d0 or %edx,%eax <== NOT EXECUTED
122092: 0f b6 51 06 movzbl 0x6(%ecx),%edx <== NOT EXECUTED
122096: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
122099: 09 d0 or %edx,%eax <== NOT EXECUTED
rtems_device_minor_number _minor
)
{
union __rtems_dev_t temp;
temp.__overlay.major = _major;
12209b: 0f b6 51 03 movzbl 0x3(%ecx),%edx <== NOT EXECUTED
12209f: 0f b6 7f 1c movzbl 0x1c(%edi),%edi <== NOT EXECUTED
1220a3: c1 e7 18 shl $0x18,%edi <== NOT EXECUTED
1220a6: 09 fa or %edi,%edx <== NOT EXECUTED
1220a8: 0f b6 79 01 movzbl 0x1(%ecx),%edi <== NOT EXECUTED
1220ac: c1 e7 10 shl $0x10,%edi <== NOT EXECUTED
1220af: 09 fa or %edi,%edx <== NOT EXECUTED
1220b1: 0f b6 49 02 movzbl 0x2(%ecx),%ecx <== NOT EXECUTED
1220b5: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
1220b8: 09 ca or %ecx,%edx <== NOT EXECUTED
{
buf->st_rdev =
1220ba: 89 53 18 mov %edx,0x18(%ebx) <== NOT EXECUTED
1220bd: 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);
1220c0: 8b 46 0c mov 0xc(%esi),%eax <== NOT EXECUTED
1220c3: 8b 50 04 mov 0x4(%eax),%edx <== NOT EXECUTED
1220c6: 8b 00 mov (%eax),%eax <== NOT EXECUTED
1220c8: 89 03 mov %eax,(%ebx) <== NOT EXECUTED
1220ca: 89 53 04 mov %edx,0x4(%ebx) <== NOT EXECUTED
buf->st_ino = ino;
1220cd: 8b 45 b4 mov -0x4c(%ebp),%eax <== NOT EXECUTED
1220d0: 89 43 08 mov %eax,0x8(%ebx) <== NOT EXECUTED
buf->st_mode = rtems_rfs_rtems_mode (mode);
1220d3: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1220d6: ff 75 b0 pushl -0x50(%ebp) <== NOT EXECUTED
1220d9: e8 4d 09 00 00 call 122a2b <rtems_rfs_rtems_mode> <== NOT EXECUTED
1220de: 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);
1220e1: 8b 55 cc mov -0x34(%ebp),%edx <== NOT EXECUTED
1220e4: 0f b6 0a movzbl (%edx),%ecx <== NOT EXECUTED
1220e7: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
1220ea: 0f b6 42 01 movzbl 0x1(%edx),%eax <== NOT EXECUTED
1220ee: 09 c8 or %ecx,%eax <== NOT EXECUTED
if (links == 0xffff)
1220f0: 59 pop %ecx <== NOT EXECUTED
1220f1: 5f pop %edi <== NOT EXECUTED
1220f2: 31 c9 xor %ecx,%ecx <== NOT EXECUTED
1220f4: 66 83 f8 ff cmp $0xffffffff,%ax <== NOT EXECUTED
1220f8: 0f 95 c1 setne %cl <== NOT EXECUTED
1220fb: f7 d9 neg %ecx <== NOT EXECUTED
1220fd: 21 c8 and %ecx,%eax <== NOT EXECUTED
buf->st_nlink = rtems_rfs_inode_get_links (&inode);
1220ff: 66 89 43 10 mov %ax,0x10(%ebx) <== NOT EXECUTED
buf->st_uid = rtems_rfs_inode_get_uid (&inode);
122103: 0f b6 42 06 movzbl 0x6(%edx),%eax <== NOT EXECUTED
122107: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
12210a: 0f b6 4a 07 movzbl 0x7(%edx),%ecx <== NOT EXECUTED
12210e: 09 c8 or %ecx,%eax <== NOT EXECUTED
122110: 66 89 43 12 mov %ax,0x12(%ebx) <== NOT EXECUTED
buf->st_gid = rtems_rfs_inode_get_gid (&inode);
122114: 0f b6 42 04 movzbl 0x4(%edx),%eax <== NOT EXECUTED
122118: c1 e0 18 shl $0x18,%eax <== NOT EXECUTED
12211b: 0f b6 52 05 movzbl 0x5(%edx),%edx <== NOT EXECUTED
12211f: c1 e2 10 shl $0x10,%edx <== NOT EXECUTED
122122: 09 d0 or %edx,%eax <== NOT EXECUTED
122124: c1 e8 10 shr $0x10,%eax <== NOT EXECUTED
122127: 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);
12212b: ff 75 b4 pushl -0x4c(%ebp) <== NOT EXECUTED
12212e: 56 push %esi <== NOT EXECUTED
12212f: e8 b0 3c 01 00 call 135de4 <rtems_rfs_file_get_shared><== NOT EXECUTED
if (shared)
122134: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
122137: 85 c0 test %eax,%eax <== NOT EXECUTED
122139: 8b 53 0c mov 0xc(%ebx),%edx <== NOT EXECUTED
12213c: 89 55 b4 mov %edx,-0x4c(%ebp) <== NOT EXECUTED
12213f: 74 54 je 122195 <rtems_rfs_rtems_stat+0x191><== NOT EXECUTED
{
buf->st_atime = rtems_rfs_file_shared_get_atime (shared);
122141: 8b 90 8c 00 00 00 mov 0x8c(%eax),%edx <== NOT EXECUTED
122147: 89 53 28 mov %edx,0x28(%ebx) <== NOT EXECUTED
buf->st_mtime = rtems_rfs_file_shared_get_mtime (shared);
12214a: 8b 90 90 00 00 00 mov 0x90(%eax),%edx <== NOT EXECUTED
122150: 89 53 30 mov %edx,0x30(%ebx) <== NOT EXECUTED
buf->st_ctime = rtems_rfs_file_shared_get_ctime (shared);
122153: 8b 90 94 00 00 00 mov 0x94(%eax),%edx <== NOT EXECUTED
122159: 89 53 38 mov %edx,0x38(%ebx) <== NOT EXECUTED
buf->st_blocks = rtems_rfs_file_shared_get_block_count (shared);
12215c: 8b 90 84 00 00 00 mov 0x84(%eax),%edx <== NOT EXECUTED
122162: 89 53 44 mov %edx,0x44(%ebx) <== NOT EXECUTED
if (S_ISLNK (buf->st_mode))
122165: 8b 55 b4 mov -0x4c(%ebp),%edx <== NOT EXECUTED
122168: 81 e2 00 f0 00 00 and $0xf000,%edx <== NOT EXECUTED
12216e: 81 fa 00 a0 00 00 cmp $0xa000,%edx <== NOT EXECUTED
122174: 75 0c jne 122182 <rtems_rfs_rtems_stat+0x17e><== NOT EXECUTED
buf->st_size = rtems_rfs_file_shared_get_block_offset (shared);
122176: 0f b7 80 88 00 00 00 movzwl 0x88(%eax),%eax <== NOT EXECUTED
12217d: e9 cb 00 00 00 jmp 12224d <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);
122182: 52 push %edx <== NOT EXECUTED
122183: 52 push %edx <== NOT EXECUTED
122184: 05 84 00 00 00 add $0x84,%eax <== NOT EXECUTED
122189: 50 push %eax <== NOT EXECUTED
12218a: 56 push %esi <== NOT EXECUTED
12218b: e8 2e 20 01 00 call 1341be <rtems_rfs_block_get_size><== NOT EXECUTED
122190: e9 d0 00 00 00 jmp 122265 <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);
122195: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED
122198: 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);
12219b: 0f b6 51 03 movzbl 0x3(%ecx),%edx <== NOT EXECUTED
12219f: 0f b6 78 10 movzbl 0x10(%eax),%edi <== NOT EXECUTED
1221a3: c1 e7 18 shl $0x18,%edi <== NOT EXECUTED
1221a6: 09 fa or %edi,%edx <== NOT EXECUTED
1221a8: 0f b6 79 01 movzbl 0x1(%ecx),%edi <== NOT EXECUTED
1221ac: c1 e7 10 shl $0x10,%edi <== NOT EXECUTED
1221af: 09 fa or %edi,%edx <== NOT EXECUTED
1221b1: 0f b6 49 02 movzbl 0x2(%ecx),%ecx <== NOT EXECUTED
1221b5: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
1221b8: 09 ca or %ecx,%edx <== NOT EXECUTED
1221ba: 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);
1221bd: 8d 48 14 lea 0x14(%eax),%ecx <== NOT EXECUTED
buf->st_mtime = rtems_rfs_inode_get_mtime (&inode);
1221c0: 0f b6 51 03 movzbl 0x3(%ecx),%edx <== NOT EXECUTED
1221c4: 0f b6 78 14 movzbl 0x14(%eax),%edi <== NOT EXECUTED
1221c8: c1 e7 18 shl $0x18,%edi <== NOT EXECUTED
1221cb: 09 fa or %edi,%edx <== NOT EXECUTED
1221cd: 0f b6 79 01 movzbl 0x1(%ecx),%edi <== NOT EXECUTED
1221d1: c1 e7 10 shl $0x10,%edi <== NOT EXECUTED
1221d4: 09 fa or %edi,%edx <== NOT EXECUTED
1221d6: 0f b6 49 02 movzbl 0x2(%ecx),%ecx <== NOT EXECUTED
1221da: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
1221dd: 09 ca or %ecx,%edx <== NOT EXECUTED
1221df: 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);
1221e2: 8d 48 18 lea 0x18(%eax),%ecx <== NOT EXECUTED
buf->st_ctime = rtems_rfs_inode_get_ctime (&inode);
1221e5: 0f b6 51 03 movzbl 0x3(%ecx),%edx <== NOT EXECUTED
1221e9: 0f b6 78 18 movzbl 0x18(%eax),%edi <== NOT EXECUTED
1221ed: c1 e7 18 shl $0x18,%edi <== NOT EXECUTED
1221f0: 09 fa or %edi,%edx <== NOT EXECUTED
1221f2: 0f b6 79 01 movzbl 0x1(%ecx),%edi <== NOT EXECUTED
1221f6: c1 e7 10 shl $0x10,%edi <== NOT EXECUTED
1221f9: 09 fa or %edi,%edx <== NOT EXECUTED
1221fb: 0f b6 49 02 movzbl 0x2(%ecx),%ecx <== NOT EXECUTED
1221ff: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
122202: 09 ca or %ecx,%edx <== NOT EXECUTED
122204: 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);
122207: 8d 48 0c lea 0xc(%eax),%ecx <== NOT EXECUTED
buf->st_blocks = rtems_rfs_inode_get_block_count (&inode);
12220a: 0f b6 51 03 movzbl 0x3(%ecx),%edx <== NOT EXECUTED
12220e: 0f b6 78 0c movzbl 0xc(%eax),%edi <== NOT EXECUTED
122212: c1 e7 18 shl $0x18,%edi <== NOT EXECUTED
122215: 09 fa or %edi,%edx <== NOT EXECUTED
122217: 0f b6 79 01 movzbl 0x1(%ecx),%edi <== NOT EXECUTED
12221b: c1 e7 10 shl $0x10,%edi <== NOT EXECUTED
12221e: 09 fa or %edi,%edx <== NOT EXECUTED
122220: 0f b6 49 02 movzbl 0x2(%ecx),%ecx <== NOT EXECUTED
122224: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
122227: 09 ca or %ecx,%edx <== NOT EXECUTED
122229: 89 53 44 mov %edx,0x44(%ebx) <== NOT EXECUTED
if (S_ISLNK (buf->st_mode))
12222c: 8b 55 b4 mov -0x4c(%ebp),%edx <== NOT EXECUTED
12222f: 81 e2 00 f0 00 00 and $0xf000,%edx <== NOT EXECUTED
122235: 81 fa 00 a0 00 00 cmp $0xa000,%edx <== NOT EXECUTED
12223b: 75 1c jne 122259 <rtems_rfs_rtems_stat+0x255><== NOT EXECUTED
buf->st_size = rtems_rfs_inode_get_block_offset (&inode);
12223d: 0f b6 50 0a movzbl 0xa(%eax),%edx <== NOT EXECUTED
122241: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
122244: 0f b6 40 0b movzbl 0xb(%eax),%eax <== NOT EXECUTED
122248: 09 d0 or %edx,%eax <== NOT EXECUTED
12224a: 0f b7 c0 movzwl %ax,%eax <== NOT EXECUTED
12224d: 89 43 20 mov %eax,0x20(%ebx) <== NOT EXECUTED
122250: c7 43 24 00 00 00 00 movl $0x0,0x24(%ebx) <== NOT EXECUTED
122257: eb 15 jmp 12226e <rtems_rfs_rtems_stat+0x26a><== NOT EXECUTED
else
buf->st_size = rtems_rfs_inode_get_size (fs, &inode);
122259: 57 push %edi <== NOT EXECUTED
12225a: 57 push %edi <== NOT EXECUTED
12225b: 8d 45 c0 lea -0x40(%ebp),%eax <== NOT EXECUTED
12225e: 50 push %eax <== NOT EXECUTED
12225f: 56 push %esi <== NOT EXECUTED
122260: e8 3f 5b 01 00 call 137da4 <rtems_rfs_inode_get_size><== NOT EXECUTED
122265: 89 43 20 mov %eax,0x20(%ebx) <== NOT EXECUTED
122268: 89 53 24 mov %edx,0x24(%ebx) <== NOT EXECUTED
12226b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
buf->st_blksize = rtems_rfs_fs_block_size (fs);
12226e: 8b 46 08 mov 0x8(%esi),%eax <== NOT EXECUTED
122271: 89 43 40 mov %eax,0x40(%ebx) <== NOT EXECUTED
rc = rtems_rfs_inode_close (fs, &inode);
122274: 53 push %ebx <== NOT EXECUTED
122275: 53 push %ebx <== NOT EXECUTED
122276: 8d 45 c0 lea -0x40(%ebp),%eax <== NOT EXECUTED
122279: 50 push %eax <== NOT EXECUTED
12227a: 56 push %esi <== NOT EXECUTED
12227b: e8 ec 5d 01 00 call 13806c <rtems_rfs_inode_close> <== NOT EXECUTED
122280: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc > 0)
122282: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
122285: 85 c0 test %eax,%eax <== NOT EXECUTED
122287: 7e 13 jle 12229c <rtems_rfs_rtems_stat+0x298><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
122289: 89 f0 mov %esi,%eax <== NOT EXECUTED
12228b: e8 63 f4 ff ff call 1216f3 <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("stat: closing inode", rc);
122290: e8 03 ab 01 00 call 13cd98 <__errno> <== NOT EXECUTED
122295: 89 18 mov %ebx,(%eax) <== NOT EXECUTED
122297: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
12229a: eb 09 jmp 1222a5 <rtems_rfs_rtems_stat+0x2a1><== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
12229c: 89 f0 mov %esi,%eax <== NOT EXECUTED
12229e: e8 50 f4 ff ff call 1216f3 <rtems_rfs_rtems_unlock><== NOT EXECUTED
1222a3: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
}
1222a5: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1222a8: 5b pop %ebx <== NOT EXECUTED
1222a9: 5e pop %esi <== NOT EXECUTED
1222aa: 5f pop %edi <== NOT EXECUTED
1222ab: c9 leave <== NOT EXECUTED
1222ac: c3 ret <== NOT EXECUTED
00121bef <rtems_rfs_rtems_statvfs>:
* @return int
*/
int
rtems_rfs_rtems_statvfs (rtems_filesystem_location_info_t* pathloc,
struct statvfs* sb)
{
121bef: 55 push %ebp <== NOT EXECUTED
121bf0: 89 e5 mov %esp,%ebp <== NOT EXECUTED
121bf2: 56 push %esi <== NOT EXECUTED
121bf3: 53 push %ebx <== NOT EXECUTED
121bf4: 83 ec 14 sub $0x14,%esp <== NOT EXECUTED
121bf7: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
121bfa: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
121bfd: 8b 40 10 mov 0x10(%eax),%eax <== NOT EXECUTED
121c00: 8b 70 34 mov 0x34(%eax),%esi <== NOT EXECUTED
size_t blocks;
size_t inodes;
rtems_rfs_group_usage (fs, &blocks, &inodes);
121c03: 8d 45 f0 lea -0x10(%ebp),%eax <== NOT EXECUTED
121c06: 50 push %eax <== NOT EXECUTED
121c07: 8d 45 f4 lea -0xc(%ebp),%eax <== NOT EXECUTED
121c0a: 50 push %eax <== NOT EXECUTED
121c0b: 56 push %esi <== NOT EXECUTED
121c0c: e8 77 5d 01 00 call 137988 <rtems_rfs_group_usage> <== NOT EXECUTED
sb->f_bsize = rtems_rfs_fs_block_size (fs);
121c11: 8b 46 08 mov 0x8(%esi),%eax <== NOT EXECUTED
121c14: 89 03 mov %eax,(%ebx) <== NOT EXECUTED
sb->f_frsize = rtems_rfs_fs_media_block_size (fs);
121c16: 8b 46 0c mov 0xc(%esi),%eax <== NOT EXECUTED
121c19: 8b 50 24 mov 0x24(%eax),%edx <== NOT EXECUTED
121c1c: 89 53 04 mov %edx,0x4(%ebx) <== NOT EXECUTED
sb->f_blocks = rtems_rfs_fs_media_blocks (fs);
121c1f: 8b 50 1c mov 0x1c(%eax),%edx <== NOT EXECUTED
121c22: 89 53 08 mov %edx,0x8(%ebx) <== NOT EXECUTED
121c25: c7 43 0c 00 00 00 00 movl $0x0,0xc(%ebx) <== NOT EXECUTED
sb->f_bfree = rtems_rfs_fs_blocks (fs) - blocks;
121c2c: 8b 46 04 mov 0x4(%esi),%eax <== NOT EXECUTED
121c2f: 2b 45 f4 sub -0xc(%ebp),%eax <== NOT EXECUTED
121c32: 89 43 10 mov %eax,0x10(%ebx) <== NOT EXECUTED
121c35: c7 43 14 00 00 00 00 movl $0x0,0x14(%ebx) <== NOT EXECUTED
sb->f_bavail = sb->f_bfree;
121c3c: 89 43 18 mov %eax,0x18(%ebx) <== NOT EXECUTED
121c3f: c7 43 1c 00 00 00 00 movl $0x0,0x1c(%ebx) <== NOT EXECUTED
sb->f_files = rtems_rfs_fs_inodes (fs);
121c46: 8b 46 10 mov 0x10(%esi),%eax <== NOT EXECUTED
121c49: 89 43 20 mov %eax,0x20(%ebx) <== NOT EXECUTED
sb->f_ffree = rtems_rfs_fs_inodes (fs) - inodes;
121c4c: 2b 45 f0 sub -0x10(%ebp),%eax <== NOT EXECUTED
121c4f: 89 43 24 mov %eax,0x24(%ebx) <== NOT EXECUTED
sb->f_favail = sb->f_ffree;
121c52: 89 43 28 mov %eax,0x28(%ebx) <== NOT EXECUTED
sb->f_fsid = RTEMS_RFS_SB_MAGIC;
121c55: c7 43 2c 01 20 09 28 movl $0x28092001,0x2c(%ebx) <== NOT EXECUTED
sb->f_flag = rtems_rfs_fs_flags (fs);
121c5c: 8b 06 mov (%esi),%eax <== NOT EXECUTED
121c5e: 89 43 30 mov %eax,0x30(%ebx) <== NOT EXECUTED
sb->f_namemax = rtems_rfs_fs_max_name (fs);
121c61: 8b 46 18 mov 0x18(%esi),%eax <== NOT EXECUTED
121c64: 89 43 34 mov %eax,0x34(%ebx) <== NOT EXECUTED
return 0;
}
121c67: 31 c0 xor %eax,%eax <== NOT EXECUTED
121c69: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
121c6c: 5b pop %ebx <== NOT EXECUTED
121c6d: 5e pop %esi <== NOT EXECUTED
121c6e: c9 leave <== NOT EXECUTED
121c6f: c3 ret <== NOT EXECUTED
00122308 <rtems_rfs_rtems_symlink>:
int
rtems_rfs_rtems_symlink (rtems_filesystem_location_info_t* parent_loc,
const char* link_name,
const char* node_name)
{
122308: 55 push %ebp <== NOT EXECUTED
122309: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12230b: 57 push %edi <== NOT EXECUTED
12230c: 56 push %esi <== NOT EXECUTED
12230d: 53 push %ebx <== NOT EXECUTED
12230e: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
122311: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (parent_loc);
122314: 8b 50 10 mov 0x10(%eax),%edx <== NOT EXECUTED
122317: 8b 5a 34 mov 0x34(%edx),%ebx <== NOT EXECUTED
rtems_rfs_ino parent = rtems_rfs_rtems_get_pathloc_ino (parent_loc);
12231a: 8b 30 mov (%eax),%esi <== NOT EXECUTED
#else
uid = 0;
gid = 0;
#endif
rtems_rfs_rtems_lock (fs);
12231c: 89 d8 mov %ebx,%eax <== NOT EXECUTED
12231e: e8 b7 f3 ff ff call 1216da <rtems_rfs_rtems_lock> <== NOT EXECUTED
rc = rtems_rfs_symlink (fs, node_name, strlen (node_name),
link_name, strlen (link_name),
122323: 83 ca ff or $0xffffffff,%edx <== NOT EXECUTED
122326: 31 c0 xor %eax,%eax <== NOT EXECUTED
122328: 89 d1 mov %edx,%ecx <== NOT EXECUTED
12232a: 8b 7d 0c mov 0xc(%ebp),%edi <== NOT EXECUTED
12232d: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED
12232f: f7 d1 not %ecx <== NOT EXECUTED
122331: 49 dec %ecx <== NOT EXECUTED
122332: 89 4d e4 mov %ecx,-0x1c(%ebp) <== NOT EXECUTED
gid = 0;
#endif
rtems_rfs_rtems_lock (fs);
rc = rtems_rfs_symlink (fs, node_name, strlen (node_name),
122335: 89 d1 mov %edx,%ecx <== NOT EXECUTED
122337: 8b 7d 10 mov 0x10(%ebp),%edi <== NOT EXECUTED
12233a: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED
12233c: 89 ca mov %ecx,%edx <== NOT EXECUTED
12233e: f7 d2 not %edx <== NOT EXECUTED
122340: 4a dec %edx <== NOT EXECUTED
122341: 56 push %esi <== NOT EXECUTED
122342: 6a 00 push $0x0 <== NOT EXECUTED
122344: 6a 00 push $0x0 <== NOT EXECUTED
122346: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
122349: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
12234c: 52 push %edx <== NOT EXECUTED
12234d: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
122350: 53 push %ebx <== NOT EXECUTED
122351: e8 88 62 01 00 call 1385de <rtems_rfs_symlink> <== NOT EXECUTED
122356: 89 c6 mov %eax,%esi <== NOT EXECUTED
link_name, strlen (link_name),
uid, gid, parent);
if (rc)
122358: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
12235b: 85 c0 test %eax,%eax <== NOT EXECUTED
12235d: 74 13 je 122372 <rtems_rfs_rtems_symlink+0x6a><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
12235f: 89 d8 mov %ebx,%eax <== NOT EXECUTED
122361: e8 8d f3 ff ff call 1216f3 <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("symlink: linking", rc);
122366: e8 2d aa 01 00 call 13cd98 <__errno> <== NOT EXECUTED
12236b: 89 30 mov %esi,(%eax) <== NOT EXECUTED
12236d: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
122370: eb 09 jmp 12237b <rtems_rfs_rtems_symlink+0x73><== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
122372: 89 d8 mov %ebx,%eax <== NOT EXECUTED
122374: e8 7a f3 ff ff call 1216f3 <rtems_rfs_rtems_unlock><== NOT EXECUTED
122379: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
}
12237b: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
12237e: 5b pop %ebx <== NOT EXECUTED
12237f: 5e pop %esi <== NOT EXECUTED
122380: 5f pop %edi <== NOT EXECUTED
122381: c9 leave <== NOT EXECUTED
122382: c3 ret <== NOT EXECUTED
00121ded <rtems_rfs_rtems_unlink>:
*/
int
rtems_rfs_rtems_unlink (rtems_filesystem_location_info_t* parent_loc,
rtems_filesystem_location_info_t* loc)
{
121ded: 55 push %ebp <== NOT EXECUTED
121dee: 89 e5 mov %esp,%ebp <== NOT EXECUTED
121df0: 57 push %edi <== NOT EXECUTED
121df1: 56 push %esi <== NOT EXECUTED
121df2: 53 push %ebx <== NOT EXECUTED
121df3: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
121df6: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
121df9: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (parent_loc);
121dfc: 8b 4a 10 mov 0x10(%edx),%ecx <== NOT EXECUTED
121dff: 8b 59 34 mov 0x34(%ecx),%ebx <== NOT EXECUTED
rtems_rfs_ino parent = rtems_rfs_rtems_get_pathloc_ino (parent_loc);
121e02: 8b 32 mov (%edx),%esi <== NOT EXECUTED
rtems_rfs_ino ino = rtems_rfs_rtems_get_pathloc_ino (loc);
121e04: 8b 38 mov (%eax),%edi <== NOT EXECUTED
uint32_t doff = rtems_rfs_rtems_get_pathloc_doff (loc);
121e06: 8b 50 04 mov 0x4(%eax),%edx <== NOT EXECUTED
int rc;
rtems_rfs_rtems_lock (fs);
121e09: 89 d8 mov %ebx,%eax <== NOT EXECUTED
121e0b: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED
121e0e: e8 c7 f8 ff ff call 1216da <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);
121e13: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
121e16: 6a 00 push $0x0 <== NOT EXECUTED
121e18: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
121e1b: 52 push %edx <== NOT EXECUTED
121e1c: 57 push %edi <== NOT EXECUTED
121e1d: 56 push %esi <== NOT EXECUTED
121e1e: 53 push %ebx <== NOT EXECUTED
121e1f: e8 a0 69 01 00 call 1387c4 <rtems_rfs_unlink> <== NOT EXECUTED
121e24: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc)
121e26: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
121e29: 85 c0 test %eax,%eax <== NOT EXECUTED
121e2b: 74 13 je 121e40 <rtems_rfs_rtems_unlink+0x53><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
121e2d: 89 d8 mov %ebx,%eax <== NOT EXECUTED
121e2f: e8 bf f8 ff ff call 1216f3 <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("unlink: unlink inode", rc);
121e34: e8 5f af 01 00 call 13cd98 <__errno> <== NOT EXECUTED
121e39: 89 30 mov %esi,(%eax) <== NOT EXECUTED
121e3b: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
121e3e: eb 09 jmp 121e49 <rtems_rfs_rtems_unlink+0x5c><== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
121e40: 89 d8 mov %ebx,%eax <== NOT EXECUTED
121e42: e8 ac f8 ff ff call 1216f3 <rtems_rfs_rtems_unlock><== NOT EXECUTED
121e47: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
}
121e49: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
121e4c: 5b pop %ebx <== NOT EXECUTED
121e4d: 5e pop %esi <== NOT EXECUTED
121e4e: 5f pop %edi <== NOT EXECUTED
121e4f: c9 leave <== NOT EXECUTED
121e50: c3 ret <== NOT EXECUTED
001216f3 <rtems_rfs_rtems_unlock>:
/**
* Unlock the RFS file system.
*/
static inline void
rtems_rfs_rtems_unlock (rtems_rfs_file_system* fs)
{
1216f3: 55 push %ebp <== NOT EXECUTED
1216f4: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1216f6: 53 push %ebx <== NOT EXECUTED
1216f7: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED
rtems_rfs_rtems_private* rtems = rtems_rfs_fs_user (fs);
1216fa: 8b 58 7c mov 0x7c(%eax),%ebx <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
1216fd: 50 push %eax <== NOT EXECUTED
1216fe: e8 59 37 01 00 call 134e5c <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);
121703: 58 pop %eax <== NOT EXECUTED
121704: ff 33 pushl (%ebx) <== NOT EXECUTED
121706: e8 e9 f5 fe ff call 110cf4 <rtems_semaphore_release><== NOT EXECUTED
12170b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_rfs_mutex_unlock (&rtems->access);
}
12170e: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
121711: c9 leave <== NOT EXECUTED
121712: c3 ret <== NOT EXECUTED
00121878 <rtems_rfs_rtems_utime>:
int
rtems_rfs_rtems_utime(rtems_filesystem_location_info_t* pathloc,
time_t atime,
time_t mtime)
{
121878: 55 push %ebp <== NOT EXECUTED
121879: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12187b: 57 push %edi <== NOT EXECUTED
12187c: 56 push %esi <== NOT EXECUTED
12187d: 53 push %ebx <== NOT EXECUTED
12187e: 83 ec 4c sub $0x4c,%esp <== NOT EXECUTED
121881: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
121884: 8b 75 0c mov 0xc(%ebp),%esi <== NOT EXECUTED
121887: 8b 4d 10 mov 0x10(%ebp),%ecx <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
12188a: 8b 50 10 mov 0x10(%eax),%edx <== NOT EXECUTED
12188d: 8b 5a 34 mov 0x34(%edx),%ebx <== NOT EXECUTED
rtems_rfs_ino ino = rtems_rfs_rtems_get_pathloc_ino (pathloc);
121890: 8b 10 mov (%eax),%edx <== NOT EXECUTED
rtems_rfs_inode_handle inode;
int rc;
rtems_rfs_rtems_lock (fs);
121892: 89 d8 mov %ebx,%eax <== NOT EXECUTED
121894: 89 55 b4 mov %edx,-0x4c(%ebp) <== NOT EXECUTED
121897: 89 4d b0 mov %ecx,-0x50(%ebp) <== NOT EXECUTED
12189a: e8 3b fe ff ff call 1216da <rtems_rfs_rtems_lock> <== NOT EXECUTED
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
12189f: 6a 01 push $0x1 <== NOT EXECUTED
1218a1: 8d 7d c0 lea -0x40(%ebp),%edi <== NOT EXECUTED
1218a4: 57 push %edi <== NOT EXECUTED
1218a5: 8b 55 b4 mov -0x4c(%ebp),%edx <== NOT EXECUTED
1218a8: 52 push %edx <== NOT EXECUTED
1218a9: 53 push %ebx <== NOT EXECUTED
1218aa: e8 2c 68 01 00 call 1380db <rtems_rfs_inode_open> <== NOT EXECUTED
1218af: 89 c2 mov %eax,%edx <== NOT EXECUTED
if (rc)
1218b1: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1218b4: 85 c0 test %eax,%eax <== NOT EXECUTED
1218b6: 8b 4d b0 mov -0x50(%ebp),%ecx <== NOT EXECUTED
1218b9: 74 16 je 1218d1 <rtems_rfs_rtems_utime+0x59><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
1218bb: 89 d8 mov %ebx,%eax <== NOT EXECUTED
1218bd: 89 55 b4 mov %edx,-0x4c(%ebp) <== NOT EXECUTED
1218c0: e8 2e fe ff ff call 1216f3 <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("utime: read inode", rc);
1218c5: e8 ce b4 01 00 call 13cd98 <__errno> <== NOT EXECUTED
1218ca: 8b 55 b4 mov -0x4c(%ebp),%edx <== NOT EXECUTED
1218cd: 89 10 mov %edx,(%eax) <== NOT EXECUTED
1218cf: eb 74 jmp 121945 <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);
1218d1: 89 f2 mov %esi,%edx <== NOT EXECUTED
1218d3: c1 ea 18 shr $0x18,%edx <== NOT EXECUTED
1218d6: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED
1218d9: 88 50 10 mov %dl,0x10(%eax) <== NOT EXECUTED
1218dc: 89 f2 mov %esi,%edx <== NOT EXECUTED
1218de: c1 ea 10 shr $0x10,%edx <== NOT EXECUTED
1218e1: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED
1218e4: 88 50 11 mov %dl,0x11(%eax) <== NOT EXECUTED
1218e7: 89 f2 mov %esi,%edx <== NOT EXECUTED
1218e9: c1 ea 08 shr $0x8,%edx <== NOT EXECUTED
1218ec: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED
1218ef: 88 50 12 mov %dl,0x12(%eax) <== NOT EXECUTED
1218f2: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED
1218f5: 89 f2 mov %esi,%edx <== NOT EXECUTED
1218f7: 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);
1218fa: 89 ca mov %ecx,%edx <== NOT EXECUTED
1218fc: c1 ea 18 shr $0x18,%edx <== NOT EXECUTED
1218ff: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED
121902: 88 50 14 mov %dl,0x14(%eax) <== NOT EXECUTED
121905: 89 ca mov %ecx,%edx <== NOT EXECUTED
121907: c1 ea 10 shr $0x10,%edx <== NOT EXECUTED
12190a: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED
12190d: 88 50 15 mov %dl,0x15(%eax) <== NOT EXECUTED
121910: 89 ca mov %ecx,%edx <== NOT EXECUTED
121912: c1 ea 08 shr $0x8,%edx <== NOT EXECUTED
121915: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED
121918: 88 50 16 mov %dl,0x16(%eax) <== NOT EXECUTED
12191b: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED
12191e: 88 48 17 mov %cl,0x17(%eax) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
121921: 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);
121925: 56 push %esi <== NOT EXECUTED
121926: 56 push %esi <== NOT EXECUTED
121927: 57 push %edi <== NOT EXECUTED
121928: 53 push %ebx <== NOT EXECUTED
121929: e8 3e 67 01 00 call 13806c <rtems_rfs_inode_close> <== NOT EXECUTED
12192e: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc)
121930: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
121933: 85 c0 test %eax,%eax <== NOT EXECUTED
121935: 74 13 je 12194a <rtems_rfs_rtems_utime+0xd2><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
121937: 89 d8 mov %ebx,%eax <== NOT EXECUTED
121939: e8 b5 fd ff ff call 1216f3 <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("utime: closing inode", rc);
12193e: e8 55 b4 01 00 call 13cd98 <__errno> <== NOT EXECUTED
121943: 89 30 mov %esi,(%eax) <== NOT EXECUTED
121945: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
121948: eb 09 jmp 121953 <rtems_rfs_rtems_utime+0xdb><== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
12194a: 89 d8 mov %ebx,%eax <== NOT EXECUTED
12194c: e8 a2 fd ff ff call 1216f3 <rtems_rfs_rtems_unlock><== NOT EXECUTED
121951: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
}
121953: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
121956: 5b pop %ebx <== NOT EXECUTED
121957: 5e pop %esi <== NOT EXECUTED
121958: 5f pop %edi <== NOT EXECUTED
121959: c9 leave <== NOT EXECUTED
12195a: c3 ret <== NOT EXECUTED
00136ca8 <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)
{
136ca8: 55 push %ebp <== NOT EXECUTED
136ca9: 89 e5 mov %esp,%ebp <== NOT EXECUTED
136cab: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
136cae: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED
if (dividend == 0)
136cb1: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
136cb6: 85 d2 test %edx,%edx <== NOT EXECUTED
136cb8: 74 08 je 136cc2 <rtems_rfs_rup_quotient+0x1a><== NOT EXECUTED
return 1;
return ((dividend - 1) / divisor) + 1;
136cba: 8d 42 ff lea -0x1(%edx),%eax <== NOT EXECUTED
136cbd: 31 d2 xor %edx,%edx <== NOT EXECUTED
136cbf: f7 f1 div %ecx <== NOT EXECUTED
136cc1: 40 inc %eax <== NOT EXECUTED
}
136cc2: c9 leave <== NOT EXECUTED
136cc3: c3 ret <== NOT EXECUTED
00123421 <rtems_rfs_shell_block>:
return 0;
}
static int
rtems_rfs_shell_block (rtems_rfs_file_system* fs, int argc, char *argv[])
{
123421: 55 push %ebp <== NOT EXECUTED
123422: 89 e5 mov %esp,%ebp <== NOT EXECUTED
123424: 57 push %edi <== NOT EXECUTED
123425: 56 push %esi <== NOT EXECUTED
123426: 53 push %ebx <== NOT EXECUTED
123427: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED
12342a: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
uint8_t* data;
bool state;
int b;
int rc;
if (argc <= 1)
12342d: 83 7d 0c 01 cmpl $0x1,0xc(%ebp) <== NOT EXECUTED
123431: 7f 17 jg 12344a <rtems_rfs_shell_block+0x29><== NOT EXECUTED
{
printf ("error: no block number provided\n");
123433: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
123436: 68 2a 91 15 00 push $0x15912a <== NOT EXECUTED
12343b: e8 88 da 01 00 call 140ec8 <puts> <== NOT EXECUTED
123440: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
123445: e9 70 01 00 00 jmp 1235ba <rtems_rfs_shell_block+0x199><== NOT EXECUTED
return 1;
}
block = strtoul (argv[1], 0, 0);
12344a: 50 push %eax <== NOT EXECUTED
12344b: 6a 00 push $0x0 <== NOT EXECUTED
12344d: 6a 00 push $0x0 <== NOT EXECUTED
12344f: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
123452: ff 70 04 pushl 0x4(%eax) <== NOT EXECUTED
123455: e8 ea 0c 02 00 call 144144 <strtoul> <== NOT EXECUTED
12345a: 89 c6 mov %eax,%esi <== NOT EXECUTED
12345c: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
12345f: 6a 00 push $0x0 <== NOT EXECUTED
123461: 6a 00 push $0x0 <== NOT EXECUTED
123463: 8b 43 7c mov 0x7c(%ebx),%eax <== NOT EXECUTED
123466: ff 30 pushl (%eax) <== NOT EXECUTED
123468: e8 9b 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);
12346d: 8d 45 e7 lea -0x19(%ebp),%eax <== NOT EXECUTED
123470: 50 push %eax <== NOT EXECUTED
123471: 56 push %esi <== NOT EXECUTED
123472: 6a 00 push $0x0 <== NOT EXECUTED
123474: 53 push %ebx <== NOT EXECUTED
123475: e8 74 45 01 00 call 1379ee <rtems_rfs_group_bitmap_test><== NOT EXECUTED
12347a: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc > 0)
12347c: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
12347f: 85 c0 test %eax,%eax <== NOT EXECUTED
123481: 7e 1a jle 12349d <rtems_rfs_shell_block+0x7c><== NOT EXECUTED
{
rtems_rfs_shell_unlock_rfs (fs);
123483: 89 d8 mov %ebx,%eax <== NOT EXECUTED
123485: e8 2f f8 ff ff call 122cb9 <rtems_rfs_shell_unlock_rfs><== NOT EXECUTED
printf ("error: testing block state: block=%" PRIu32 ": (%d) %s\n",
12348a: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12348d: 57 push %edi <== NOT EXECUTED
12348e: e8 69 f2 01 00 call 1426fc <strerror> <== NOT EXECUTED
123493: 50 push %eax <== NOT EXECUTED
123494: 57 push %edi <== NOT EXECUTED
123495: 56 push %esi <== NOT EXECUTED
123496: 68 4a 91 15 00 push $0x15914a <== NOT EXECUTED
12349b: eb 7d jmp 12351a <rtems_rfs_shell_block+0xf9><== NOT EXECUTED
block, rc, strerror (rc));
return 1;
}
printf (" %5" PRIu32 ": block %s\n", block, state ? "allocated" : "free");
12349d: b8 7a 91 15 00 mov $0x15917a,%eax <== NOT EXECUTED
1234a2: 80 7d e7 00 cmpb $0x0,-0x19(%ebp) <== NOT EXECUTED
1234a6: 75 05 jne 1234ad <rtems_rfs_shell_block+0x8c><== NOT EXECUTED
1234a8: b8 b1 71 15 00 mov $0x1571b1,%eax <== NOT EXECUTED
1234ad: 57 push %edi <== NOT EXECUTED
1234ae: 50 push %eax <== NOT EXECUTED
1234af: 56 push %esi <== NOT EXECUTED
1234b0: 68 84 91 15 00 push $0x159184 <== NOT EXECUTED
1234b5: e8 fa d7 01 00 call 140cb4 <printf> <== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_open (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
handle->dirty = false;
1234ba: c6 45 d8 00 movb $0x0,-0x28(%ebp) <== NOT EXECUTED
handle->bnum = 0;
1234be: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp) <== NOT EXECUTED
handle->buffer = NULL;
1234c5: 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);
1234cc: 6a 01 push $0x1 <== NOT EXECUTED
1234ce: 56 push %esi <== NOT EXECUTED
1234cf: 8d 55 d8 lea -0x28(%ebp),%edx <== NOT EXECUTED
1234d2: 52 push %edx <== NOT EXECUTED
1234d3: 53 push %ebx <== NOT EXECUTED
1234d4: 89 55 d4 mov %edx,-0x2c(%ebp) <== NOT EXECUTED
1234d7: e8 a2 1b 01 00 call 13507e <rtems_rfs_buffer_handle_request><== NOT EXECUTED
1234dc: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc > 0)
1234de: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
1234e1: 85 c0 test %eax,%eax <== NOT EXECUTED
1234e3: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED
1234e6: 7e 44 jle 12352c <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);
1234e8: 51 push %ecx <== NOT EXECUTED
1234e9: 51 push %ecx <== NOT EXECUTED
1234ea: 52 push %edx <== NOT EXECUTED
1234eb: 53 push %ebx <== NOT EXECUTED
1234ec: e8 96 1a 01 00 call 134f87 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
handle->dirty = false;
1234f1: c6 45 d8 00 movb $0x0,-0x28(%ebp) <== NOT EXECUTED
handle->bnum = 0;
1234f5: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp) <== NOT EXECUTED
handle->buffer = NULL;
1234fc: 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);
123503: 89 d8 mov %ebx,%eax <== NOT EXECUTED
123505: e8 af f7 ff ff call 122cb9 <rtems_rfs_shell_unlock_rfs><== NOT EXECUTED
printf ("error: requesting buffer handle: block=%" PRIu32 ": (%d) %s\n",
12350a: 89 3c 24 mov %edi,(%esp) <== NOT EXECUTED
12350d: e8 ea f1 01 00 call 1426fc <strerror> <== NOT EXECUTED
123512: 50 push %eax <== NOT EXECUTED
123513: 57 push %edi <== NOT EXECUTED
123514: 56 push %esi <== NOT EXECUTED
123515: 68 95 91 15 00 push $0x159195 <== NOT EXECUTED
12351a: e8 95 d7 01 00 call 140cb4 <printf> <== NOT EXECUTED
12351f: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
block, rc, strerror (rc));
return 1;
123524: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
123527: e9 91 00 00 00 jmp 1235bd <rtems_rfs_shell_block+0x19c><== NOT EXECUTED
}
for (b = 0, data = rtems_rfs_buffer_data (&buffer);
12352c: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
12352f: 8b 78 20 mov 0x20(%eax),%edi <== NOT EXECUTED
123532: 31 f6 xor %esi,%esi <== NOT EXECUTED
123534: eb 4e jmp 123584 <rtems_rfs_shell_block+0x163><== NOT EXECUTED
b < rtems_rfs_fs_block_size (fs);
b++, data++)
{
int mod = b % 16;
if (mod == 0)
123536: 89 f0 mov %esi,%eax <== NOT EXECUTED
123538: 83 e0 0f and $0xf,%eax <== NOT EXECUTED
12353b: 75 20 jne 12355d <rtems_rfs_shell_block+0x13c><== NOT EXECUTED
{
if (b)
12353d: 85 f6 test %esi,%esi <== NOT EXECUTED
12353f: 74 0d je 12354e <rtems_rfs_shell_block+0x12d><== NOT EXECUTED
printf ("\n");
123541: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
123544: 6a 0a push $0xa <== NOT EXECUTED
123546: e8 c9 d8 01 00 call 140e14 <putchar> <== NOT EXECUTED
12354b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
printf ("%04x ", b);
12354e: 52 push %edx <== NOT EXECUTED
12354f: 52 push %edx <== NOT EXECUTED
123550: 56 push %esi <== NOT EXECUTED
123551: 68 42 45 15 00 push $0x154542 <== NOT EXECUTED
123556: e8 59 d7 01 00 call 140cb4 <printf> <== NOT EXECUTED
12355b: eb 0f jmp 12356c <rtems_rfs_shell_block+0x14b><== NOT EXECUTED
}
if (mod == 8)
12355d: 83 f8 08 cmp $0x8,%eax <== NOT EXECUTED
123560: 75 0d jne 12356f <rtems_rfs_shell_block+0x14e><== NOT EXECUTED
printf (" ");
123562: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
123565: 6a 20 push $0x20 <== NOT EXECUTED
123567: e8 a8 d8 01 00 call 140e14 <putchar> <== NOT EXECUTED
12356c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
printf ("%02x ", *data);
12356f: 50 push %eax <== NOT EXECUTED
123570: 50 push %eax <== NOT EXECUTED
123571: 0f b6 04 37 movzbl (%edi,%esi,1),%eax <== NOT EXECUTED
123575: 50 push %eax <== NOT EXECUTED
123576: 68 4a 92 15 00 push $0x15924a <== NOT EXECUTED
12357b: e8 34 d7 01 00 call 140cb4 <printf> <== NOT EXECUTED
return 1;
}
for (b = 0, data = rtems_rfs_buffer_data (&buffer);
b < rtems_rfs_fs_block_size (fs);
b++, data++)
123580: 46 inc %esi <== NOT EXECUTED
123581: 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);
123584: 3b 73 08 cmp 0x8(%ebx),%esi <== NOT EXECUTED
123587: 72 ad jb 123536 <rtems_rfs_shell_block+0x115><== NOT EXECUTED
if (mod == 8)
printf (" ");
printf ("%02x ", *data);
}
printf ("\n");
123589: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12358c: 6a 0a push $0xa <== NOT EXECUTED
12358e: e8 81 d8 01 00 call 140e14 <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);
123593: 5a pop %edx <== NOT EXECUTED
123594: 59 pop %ecx <== NOT EXECUTED
123595: 8d 45 d8 lea -0x28(%ebp),%eax <== NOT EXECUTED
123598: 50 push %eax <== NOT EXECUTED
123599: 53 push %ebx <== NOT EXECUTED
12359a: e8 e8 19 01 00 call 134f87 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
handle->dirty = false;
12359f: c6 45 d8 00 movb $0x0,-0x28(%ebp) <== NOT EXECUTED
handle->bnum = 0;
1235a3: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp) <== NOT EXECUTED
handle->buffer = NULL;
1235aa: 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);
1235b1: 89 d8 mov %ebx,%eax <== NOT EXECUTED
1235b3: e8 01 f7 ff ff call 122cb9 <rtems_rfs_shell_unlock_rfs><== NOT EXECUTED
1235b8: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
1235ba: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
1235bd: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1235c0: 5b pop %ebx <== NOT EXECUTED
1235c1: 5e pop %esi <== NOT EXECUTED
1235c2: 5f pop %edi <== NOT EXECUTED
1235c3: c9 leave <== NOT EXECUTED
1235c4: c3 ret <== NOT EXECUTED
001235c5 <rtems_rfs_shell_data>:
return rc;
}
static int
rtems_rfs_shell_data (rtems_rfs_file_system* fs, int argc, char *argv[])
{
1235c5: 55 push %ebp <== NOT EXECUTED
1235c6: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1235c8: 56 push %esi <== NOT EXECUTED
1235c9: 53 push %ebx <== NOT EXECUTED
1235ca: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED
1235cd: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
size_t blocks;
size_t inodes;
int bpcent;
int ipcent;
printf ("RFS Filesystem Data\n");
1235d0: 68 50 92 15 00 push $0x159250 <== NOT EXECUTED
1235d5: e8 ee d8 01 00 call 140ec8 <puts> <== NOT EXECUTED
printf (" flags: %08" PRIx32 "\n", fs->flags);
1235da: 5a pop %edx <== NOT EXECUTED
1235db: 59 pop %ecx <== NOT EXECUTED
1235dc: ff 33 pushl (%ebx) <== NOT EXECUTED
1235de: 68 64 92 15 00 push $0x159264 <== NOT EXECUTED
1235e3: e8 cc d6 01 00 call 140cb4 <printf> <== NOT EXECUTED
#if 0
printf (" device: %08lx\n", rtems_rfs_fs_device (fs));
#endif
printf (" blocks: %zu\n", rtems_rfs_fs_blocks (fs));
1235e8: 5e pop %esi <== NOT EXECUTED
1235e9: 58 pop %eax <== NOT EXECUTED
1235ea: ff 73 04 pushl 0x4(%ebx) <== NOT EXECUTED
1235ed: 68 7f 92 15 00 push $0x15927f <== NOT EXECUTED
1235f2: e8 bd d6 01 00 call 140cb4 <printf> <== NOT EXECUTED
printf (" block size: %zu\n", rtems_rfs_fs_block_size (fs));
1235f7: 5a pop %edx <== NOT EXECUTED
1235f8: 59 pop %ecx <== NOT EXECUTED
1235f9: ff 73 08 pushl 0x8(%ebx) <== NOT EXECUTED
1235fc: 68 98 92 15 00 push $0x159298 <== NOT EXECUTED
123601: e8 ae d6 01 00 call 140cb4 <printf> <== NOT EXECUTED
printf (" size: %" PRIu64 "\n", rtems_rfs_fs_size (fs));
123606: 89 1c 24 mov %ebx,(%esp) <== NOT EXECUTED
123609: e8 ce 31 01 00 call 1367dc <rtems_rfs_fs_size> <== NOT EXECUTED
12360e: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
123611: 52 push %edx <== NOT EXECUTED
123612: 50 push %eax <== NOT EXECUTED
123613: 68 b1 92 15 00 push $0x1592b1 <== NOT EXECUTED
123618: e8 97 d6 01 00 call 140cb4 <printf> <== NOT EXECUTED
printf (" media block size: %" PRIu32 "\n", rtems_rfs_fs_media_block_size (fs));
12361d: 5e pop %esi <== NOT EXECUTED
12361e: 58 pop %eax <== NOT EXECUTED
12361f: 8b 43 0c mov 0xc(%ebx),%eax <== NOT EXECUTED
123622: ff 70 24 pushl 0x24(%eax) <== NOT EXECUTED
123625: 68 cb 92 15 00 push $0x1592cb <== NOT EXECUTED
12362a: e8 85 d6 01 00 call 140cb4 <printf> <== NOT EXECUTED
printf (" media size: %" PRIu64 "\n", rtems_rfs_fs_media_size (fs));
12362f: 89 1c 24 mov %ebx,(%esp) <== NOT EXECUTED
123632: e8 b3 31 01 00 call 1367ea <rtems_rfs_fs_media_size><== NOT EXECUTED
123637: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
12363a: 52 push %edx <== NOT EXECUTED
12363b: 50 push %eax <== NOT EXECUTED
12363c: 68 e4 92 15 00 push $0x1592e4 <== NOT EXECUTED
123641: e8 6e d6 01 00 call 140cb4 <printf> <== NOT EXECUTED
printf (" inodes: %" PRIu32 "\n", rtems_rfs_fs_inodes (fs));
123646: 5a pop %edx <== NOT EXECUTED
123647: 59 pop %ecx <== NOT EXECUTED
123648: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED
12364b: 68 fe 92 15 00 push $0x1592fe <== NOT EXECUTED
123650: e8 5f d6 01 00 call 140cb4 <printf> <== NOT EXECUTED
printf (" bad blocks: %" PRIu32 "\n", fs->bad_blocks);
123655: 5e pop %esi <== NOT EXECUTED
123656: 58 pop %eax <== NOT EXECUTED
123657: ff 73 14 pushl 0x14(%ebx) <== NOT EXECUTED
12365a: 68 17 93 15 00 push $0x159317 <== NOT EXECUTED
12365f: e8 50 d6 01 00 call 140cb4 <printf> <== NOT EXECUTED
printf (" max. name length: %" PRIu32 "\n", rtems_rfs_fs_max_name (fs));
123664: 5a pop %edx <== NOT EXECUTED
123665: 59 pop %ecx <== NOT EXECUTED
123666: ff 73 18 pushl 0x18(%ebx) <== NOT EXECUTED
123669: 68 30 93 15 00 push $0x159330 <== NOT EXECUTED
12366e: e8 41 d6 01 00 call 140cb4 <printf> <== NOT EXECUTED
printf (" groups: %d\n", fs->group_count);
123673: 5e pop %esi <== NOT EXECUTED
123674: 58 pop %eax <== NOT EXECUTED
123675: ff 73 20 pushl 0x20(%ebx) <== NOT EXECUTED
123678: 68 49 93 15 00 push $0x159349 <== NOT EXECUTED
12367d: e8 32 d6 01 00 call 140cb4 <printf> <== NOT EXECUTED
printf (" group blocks: %zd\n", fs->group_blocks);
123682: 5a pop %edx <== NOT EXECUTED
123683: 59 pop %ecx <== NOT EXECUTED
123684: ff 73 24 pushl 0x24(%ebx) <== NOT EXECUTED
123687: 68 61 93 15 00 push $0x159361 <== NOT EXECUTED
12368c: e8 23 d6 01 00 call 140cb4 <printf> <== NOT EXECUTED
printf (" group inodes: %zd\n", fs->group_inodes);
123691: 5e pop %esi <== NOT EXECUTED
123692: 58 pop %eax <== NOT EXECUTED
123693: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
123696: 68 7a 93 15 00 push $0x15937a <== NOT EXECUTED
12369b: e8 14 d6 01 00 call 140cb4 <printf> <== NOT EXECUTED
printf (" inodes per block: %zd\n", fs->inodes_per_block);
1236a0: 5a pop %edx <== NOT EXECUTED
1236a1: 59 pop %ecx <== NOT EXECUTED
1236a2: ff 73 2c pushl 0x2c(%ebx) <== NOT EXECUTED
1236a5: 68 93 93 15 00 push $0x159393 <== NOT EXECUTED
1236aa: e8 05 d6 01 00 call 140cb4 <printf> <== NOT EXECUTED
printf (" blocks per block: %zd\n", fs->blocks_per_block);
1236af: 5e pop %esi <== NOT EXECUTED
1236b0: 58 pop %eax <== NOT EXECUTED
1236b1: ff 73 30 pushl 0x30(%ebx) <== NOT EXECUTED
1236b4: 68 ac 93 15 00 push $0x1593ac <== NOT EXECUTED
1236b9: e8 f6 d5 01 00 call 140cb4 <printf> <== NOT EXECUTED
printf (" singly blocks: %zd\n", fs->block_map_singly_blocks);
1236be: 5a pop %edx <== NOT EXECUTED
1236bf: 59 pop %ecx <== NOT EXECUTED
1236c0: ff 73 34 pushl 0x34(%ebx) <== NOT EXECUTED
1236c3: 68 c5 93 15 00 push $0x1593c5 <== NOT EXECUTED
1236c8: e8 e7 d5 01 00 call 140cb4 <printf> <== NOT EXECUTED
printf (" doublly blocks: %zd\n", fs->block_map_doubly_blocks);
1236cd: 5e pop %esi <== NOT EXECUTED
1236ce: 58 pop %eax <== NOT EXECUTED
1236cf: ff 73 38 pushl 0x38(%ebx) <== NOT EXECUTED
1236d2: 68 de 93 15 00 push $0x1593de <== NOT EXECUTED
1236d7: e8 d8 d5 01 00 call 140cb4 <printf> <== NOT EXECUTED
printf (" max. held buffers: %" PRId32 "\n", fs->max_held_buffers);
1236dc: 5a pop %edx <== NOT EXECUTED
1236dd: 59 pop %ecx <== NOT EXECUTED
1236de: ff 73 3c pushl 0x3c(%ebx) <== NOT EXECUTED
1236e1: 68 f7 93 15 00 push $0x1593f7 <== NOT EXECUTED
1236e6: e8 c9 d5 01 00 call 140cb4 <printf> <== NOT EXECUTED
1236eb: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
1236ee: 6a 00 push $0x0 <== NOT EXECUTED
1236f0: 6a 00 push $0x0 <== NOT EXECUTED
1236f2: 8b 43 7c mov 0x7c(%ebx),%eax <== NOT EXECUTED
1236f5: ff 30 pushl (%eax) <== NOT EXECUTED
1236f7: e8 0c d5 fe ff call 110c08 <rtems_semaphore_obtain><== NOT EXECUTED
rtems_rfs_shell_lock_rfs (fs);
rtems_rfs_group_usage (fs, &blocks, &inodes);
1236fc: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
1236ff: 8d 45 f0 lea -0x10(%ebp),%eax <== NOT EXECUTED
123702: 50 push %eax <== NOT EXECUTED
123703: 8d 45 f4 lea -0xc(%ebp),%eax <== NOT EXECUTED
123706: 50 push %eax <== NOT EXECUTED
123707: 53 push %ebx <== NOT EXECUTED
123708: e8 7b 42 01 00 call 137988 <rtems_rfs_group_usage> <== NOT EXECUTED
rtems_rfs_shell_unlock_rfs (fs);
12370d: 89 d8 mov %ebx,%eax <== NOT EXECUTED
12370f: e8 a5 f5 ff ff call 122cb9 <rtems_rfs_shell_unlock_rfs><== NOT EXECUTED
bpcent = (blocks * 1000) / rtems_rfs_fs_blocks (fs);
123714: 8b 75 f4 mov -0xc(%ebp),%esi <== NOT EXECUTED
123717: 69 c6 e8 03 00 00 imul $0x3e8,%esi,%eax <== NOT EXECUTED
12371d: 31 d2 xor %edx,%edx <== NOT EXECUTED
12371f: f7 73 04 divl 0x4(%ebx) <== NOT EXECUTED
123722: 89 c1 mov %eax,%ecx <== NOT EXECUTED
ipcent = (inodes * 1000) / rtems_rfs_fs_inodes (fs);
123724: 69 45 f0 e8 03 00 00 imul $0x3e8,-0x10(%ebp),%eax <== NOT EXECUTED
12372b: 31 d2 xor %edx,%edx <== NOT EXECUTED
12372d: f7 73 10 divl 0x10(%ebx) <== NOT EXECUTED
123730: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
printf (" blocks used: %zd (%d.%d%%)\n",
123733: bb 0a 00 00 00 mov $0xa,%ebx <== NOT EXECUTED
123738: 89 c8 mov %ecx,%eax <== NOT EXECUTED
12373a: 99 cltd <== NOT EXECUTED
12373b: f7 fb idiv %ebx <== NOT EXECUTED
12373d: 52 push %edx <== NOT EXECUTED
12373e: 50 push %eax <== NOT EXECUTED
12373f: 56 push %esi <== NOT EXECUTED
123740: 68 10 94 15 00 push $0x159410 <== NOT EXECUTED
123745: e8 6a d5 01 00 call 140cb4 <printf> <== NOT EXECUTED
blocks, bpcent / 10, bpcent % 10);
printf (" inodes used: %zd (%d.%d%%)\n",
12374a: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
12374d: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
123750: 99 cltd <== NOT EXECUTED
123751: f7 fb idiv %ebx <== NOT EXECUTED
123753: 52 push %edx <== NOT EXECUTED
123754: 50 push %eax <== NOT EXECUTED
123755: ff 75 f0 pushl -0x10(%ebp) <== NOT EXECUTED
123758: 68 33 94 15 00 push $0x159433 <== NOT EXECUTED
12375d: e8 52 d5 01 00 call 140cb4 <printf> <== NOT EXECUTED
inodes, ipcent / 10, ipcent % 10);
return 0;
}
123762: 31 c0 xor %eax,%eax <== NOT EXECUTED
123764: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
123767: 5b pop %ebx <== NOT EXECUTED
123768: 5e pop %esi <== NOT EXECUTED
123769: c9 leave <== NOT EXECUTED
12376a: c3 ret <== NOT EXECUTED
001231aa <rtems_rfs_shell_dir>:
return 0;
}
static int
rtems_rfs_shell_dir (rtems_rfs_file_system* fs, int argc, char *argv[])
{
1231aa: 55 push %ebp <== NOT EXECUTED
1231ab: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1231ad: 57 push %edi <== NOT EXECUTED
1231ae: 56 push %esi <== NOT EXECUTED
1231af: 53 push %ebx <== NOT EXECUTED
1231b0: 83 ec 3c sub $0x3c,%esp <== NOT EXECUTED
1231b3: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
bool state;
int entry;
int b;
int rc;
if (argc <= 1)
1231b6: 83 7d 0c 01 cmpl $0x1,0xc(%ebp) <== NOT EXECUTED
1231ba: 7f 17 jg 1231d3 <rtems_rfs_shell_dir+0x29><== NOT EXECUTED
{
printf ("error: no block number provided\n");
1231bc: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1231bf: 68 2a 91 15 00 push $0x15912a <== NOT EXECUTED
1231c4: e8 ff dc 01 00 call 140ec8 <puts> <== NOT EXECUTED
1231c9: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
1231ce: e9 43 02 00 00 jmp 123416 <rtems_rfs_shell_dir+0x26c><== NOT EXECUTED
return 1;
}
block = strtoul (argv[1], 0, 0);
1231d3: 50 push %eax <== NOT EXECUTED
1231d4: 6a 00 push $0x0 <== NOT EXECUTED
1231d6: 6a 00 push $0x0 <== NOT EXECUTED
1231d8: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
1231db: ff 70 04 pushl 0x4(%eax) <== NOT EXECUTED
1231de: e8 61 0f 02 00 call 144144 <strtoul> <== NOT EXECUTED
1231e3: 89 c3 mov %eax,%ebx <== NOT EXECUTED
1231e5: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
1231e8: 6a 00 push $0x0 <== NOT EXECUTED
1231ea: 6a 00 push $0x0 <== NOT EXECUTED
1231ec: 8b 46 7c mov 0x7c(%esi),%eax <== NOT EXECUTED
1231ef: ff 30 pushl (%eax) <== NOT EXECUTED
1231f1: e8 12 da 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);
1231f6: 8d 45 e7 lea -0x19(%ebp),%eax <== NOT EXECUTED
1231f9: 50 push %eax <== NOT EXECUTED
1231fa: 53 push %ebx <== NOT EXECUTED
1231fb: 6a 00 push $0x0 <== NOT EXECUTED
1231fd: 56 push %esi <== NOT EXECUTED
1231fe: e8 eb 47 01 00 call 1379ee <rtems_rfs_group_bitmap_test><== NOT EXECUTED
123203: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc > 0)
123205: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
123208: 85 c0 test %eax,%eax <== NOT EXECUTED
12320a: 7e 1a jle 123226 <rtems_rfs_shell_dir+0x7c><== NOT EXECUTED
{
rtems_rfs_shell_unlock_rfs (fs);
12320c: 89 f0 mov %esi,%eax <== NOT EXECUTED
12320e: e8 a6 fa ff ff call 122cb9 <rtems_rfs_shell_unlock_rfs><== NOT EXECUTED
printf ("error: testing block state: block=%" PRIu32 ": (%d) %s\n",
123213: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
123216: 57 push %edi <== NOT EXECUTED
123217: e8 e0 f4 01 00 call 1426fc <strerror> <== NOT EXECUTED
12321c: 50 push %eax <== NOT EXECUTED
12321d: 57 push %edi <== NOT EXECUTED
12321e: 53 push %ebx <== NOT EXECUTED
12321f: 68 4a 91 15 00 push $0x15914a <== NOT EXECUTED
123224: eb 7d jmp 1232a3 <rtems_rfs_shell_dir+0xf9><== NOT EXECUTED
block, rc, strerror (rc));
return 1;
}
printf (" %5" PRIu32 ": block %s\n", block, state ? "allocated" : "free");
123226: b8 7a 91 15 00 mov $0x15917a,%eax <== NOT EXECUTED
12322b: 80 7d e7 00 cmpb $0x0,-0x19(%ebp) <== NOT EXECUTED
12322f: 75 05 jne 123236 <rtems_rfs_shell_dir+0x8c><== NOT EXECUTED
123231: b8 b1 71 15 00 mov $0x1571b1,%eax <== NOT EXECUTED
123236: 57 push %edi <== NOT EXECUTED
123237: 50 push %eax <== NOT EXECUTED
123238: 53 push %ebx <== NOT EXECUTED
123239: 68 84 91 15 00 push $0x159184 <== NOT EXECUTED
12323e: e8 71 da 01 00 call 140cb4 <printf> <== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_open (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
handle->dirty = false;
123243: c6 45 d8 00 movb $0x0,-0x28(%ebp) <== NOT EXECUTED
handle->bnum = 0;
123247: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp) <== NOT EXECUTED
handle->buffer = NULL;
12324e: 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);
123255: 6a 01 push $0x1 <== NOT EXECUTED
123257: 53 push %ebx <== NOT EXECUTED
123258: 8d 55 d8 lea -0x28(%ebp),%edx <== NOT EXECUTED
12325b: 52 push %edx <== NOT EXECUTED
12325c: 56 push %esi <== NOT EXECUTED
12325d: 89 55 c4 mov %edx,-0x3c(%ebp) <== NOT EXECUTED
123260: e8 19 1e 01 00 call 13507e <rtems_rfs_buffer_handle_request><== NOT EXECUTED
123265: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc > 0)
123267: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
12326a: 85 c0 test %eax,%eax <== NOT EXECUTED
12326c: 8b 55 c4 mov -0x3c(%ebp),%edx <== NOT EXECUTED
12326f: 7e 44 jle 1232b5 <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);
123271: 51 push %ecx <== NOT EXECUTED
123272: 51 push %ecx <== NOT EXECUTED
123273: 52 push %edx <== NOT EXECUTED
123274: 56 push %esi <== NOT EXECUTED
123275: e8 0d 1d 01 00 call 134f87 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
handle->dirty = false;
12327a: c6 45 d8 00 movb $0x0,-0x28(%ebp) <== NOT EXECUTED
handle->bnum = 0;
12327e: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp) <== NOT EXECUTED
handle->buffer = NULL;
123285: 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);
12328c: 89 f0 mov %esi,%eax <== NOT EXECUTED
12328e: e8 26 fa ff ff call 122cb9 <rtems_rfs_shell_unlock_rfs><== NOT EXECUTED
printf ("error: requesting buffer handle: block=%" PRIu32 ": (%d) %s\n",
123293: 89 3c 24 mov %edi,(%esp) <== NOT EXECUTED
123296: e8 61 f4 01 00 call 1426fc <strerror> <== NOT EXECUTED
12329b: 50 push %eax <== NOT EXECUTED
12329c: 57 push %edi <== NOT EXECUTED
12329d: 53 push %ebx <== NOT EXECUTED
12329e: 68 95 91 15 00 push $0x159195 <== NOT EXECUTED
1232a3: e8 0c da 01 00 call 140cb4 <printf> <== NOT EXECUTED
1232a8: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
block, rc, strerror (rc));
return 1;
1232ad: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
1232b0: e9 64 01 00 00 jmp 123419 <rtems_rfs_shell_dir+0x26f><== NOT EXECUTED
}
b = 0;
entry = 1;
data = rtems_rfs_buffer_data (&buffer);
1232b5: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
1232b8: 8b 58 20 mov 0x20(%eax),%ebx <== NOT EXECUTED
1232bb: c7 45 cc 00 00 00 00 movl $0x0,-0x34(%ebp) <== NOT EXECUTED
1232c2: 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))
1232c9: e9 12 01 00 00 jmp 1233e0 <rtems_rfs_shell_dir+0x236><== NOT EXECUTED
rtems_rfs_ino eino;
int elength;
int length;
int c;
eino = rtems_rfs_dir_entry_ino (data);
1232ce: 8a 03 mov (%ebx),%al <== NOT EXECUTED
1232d0: 8a 53 01 mov 0x1(%ebx),%dl <== NOT EXECUTED
1232d3: 88 55 cb mov %dl,-0x35(%ebp) <== NOT EXECUTED
1232d6: 8a 53 02 mov 0x2(%ebx),%dl <== NOT EXECUTED
1232d9: 88 55 d4 mov %dl,-0x2c(%ebp) <== NOT EXECUTED
1232dc: 8a 4b 03 mov 0x3(%ebx),%cl <== NOT EXECUTED
elength = rtems_rfs_dir_entry_length (data);
1232df: 0f b6 7b 08 movzbl 0x8(%ebx),%edi <== NOT EXECUTED
1232e3: c1 e7 08 shl $0x8,%edi <== NOT EXECUTED
1232e6: 0f b6 53 09 movzbl 0x9(%ebx),%edx <== NOT EXECUTED
1232ea: 09 d7 or %edx,%edi <== NOT EXECUTED
if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)
1232ec: 81 ff ff ff 00 00 cmp $0xffff,%edi <== NOT EXECUTED
1232f2: 0f 84 f7 00 00 00 je 1233ef <rtems_rfs_shell_dir+0x245><== NOT EXECUTED
break;
if ((elength < RTEMS_RFS_DIR_ENTRY_SIZE) ||
1232f8: 83 ff 09 cmp $0x9,%edi <== NOT EXECUTED
1232fb: 7e 05 jle 123302 <rtems_rfs_shell_dir+0x158><== NOT EXECUTED
(elength >= rtems_rfs_fs_max_name (fs)))
1232fd: 3b 7e 18 cmp 0x18(%esi),%edi <== NOT EXECUTED
123300: 72 0c jb 12330e <rtems_rfs_shell_dir+0x164><== NOT EXECUTED
{
printf (" %5d: entry length appears corrupt: %d\n", entry, elength);
123302: 50 push %eax <== NOT EXECUTED
123303: 57 push %edi <== NOT EXECUTED
123304: ff 75 d0 pushl -0x30(%ebp) <== NOT EXECUTED
123307: 68 ca 91 15 00 push $0x1591ca <== NOT EXECUTED
12330c: eb 2b jmp 123339 <rtems_rfs_shell_dir+0x18f><== NOT EXECUTED
rtems_rfs_ino eino;
int elength;
int length;
int c;
eino = rtems_rfs_dir_entry_ino (data);
12330e: 0f b6 c9 movzbl %cl,%ecx <== NOT EXECUTED
123311: c1 e0 18 shl $0x18,%eax <== NOT EXECUTED
123314: 09 c1 or %eax,%ecx <== NOT EXECUTED
123316: 0f b6 45 cb movzbl -0x35(%ebp),%eax <== NOT EXECUTED
12331a: c1 e0 10 shl $0x10,%eax <== NOT EXECUTED
12331d: 09 c1 or %eax,%ecx <== NOT EXECUTED
12331f: 0f b6 45 d4 movzbl -0x2c(%ebp),%eax <== NOT EXECUTED
123323: 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)))
123326: 09 c1 or %eax,%ecx <== NOT EXECUTED
123328: 74 05 je 12332f <rtems_rfs_shell_dir+0x185><== NOT EXECUTED
12332a: 3b 4e 10 cmp 0x10(%esi),%ecx <== NOT EXECUTED
12332d: 72 17 jb 123346 <rtems_rfs_shell_dir+0x19c><== NOT EXECUTED
{
printf (" %5d: entry ino appears corrupt: ino=%" PRId32 "\n", entry, eino);
12332f: 53 push %ebx <== NOT EXECUTED
123330: 51 push %ecx <== NOT EXECUTED
123331: ff 75 d0 pushl -0x30(%ebp) <== NOT EXECUTED
123334: 68 f2 91 15 00 push $0x1591f2 <== NOT EXECUTED
123339: e8 76 d9 01 00 call 140cb4 <printf> <== NOT EXECUTED
break;
12333e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
123341: e9 a9 00 00 00 jmp 1233ef <rtems_rfs_shell_dir+0x245><== NOT EXECUTED
}
length = elength - RTEMS_RFS_DIR_ENTRY_SIZE;
123346: 8d 47 f6 lea -0xa(%edi),%eax <== NOT EXECUTED
123349: 89 45 d4 mov %eax,-0x2c(%ebp) <== NOT EXECUTED
printf (" %5d: %04x inode=%-6" PRIu32 " hash=%08" PRIx32 " name[%03u]=",
12334c: 52 push %edx <== NOT EXECUTED
12334d: 52 push %edx <== NOT EXECUTED
12334e: 50 push %eax <== NOT EXECUTED
12334f: 0f b6 43 04 movzbl 0x4(%ebx),%eax <== NOT EXECUTED
123353: c1 e0 18 shl $0x18,%eax <== NOT EXECUTED
123356: 0f b6 53 05 movzbl 0x5(%ebx),%edx <== NOT EXECUTED
12335a: c1 e2 10 shl $0x10,%edx <== NOT EXECUTED
12335d: 09 d0 or %edx,%eax <== NOT EXECUTED
12335f: 0f b6 53 07 movzbl 0x7(%ebx),%edx <== NOT EXECUTED
123363: 09 d0 or %edx,%eax <== NOT EXECUTED
123365: 0f b6 53 06 movzbl 0x6(%ebx),%edx <== NOT EXECUTED
123369: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
12336c: 09 d0 or %edx,%eax <== NOT EXECUTED
12336e: 50 push %eax <== NOT EXECUTED
12336f: 51 push %ecx <== NOT EXECUTED
123370: ff 75 cc pushl -0x34(%ebp) <== NOT EXECUTED
123373: ff 75 d0 pushl -0x30(%ebp) <== NOT EXECUTED
123376: 68 1c 92 15 00 push $0x15921c <== NOT EXECUTED
12337b: e8 34 d9 01 00 call 140cb4 <printf> <== NOT EXECUTED
123380: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
123383: 8b 4d d4 mov -0x2c(%ebp),%ecx <== NOT EXECUTED
123386: 83 f9 32 cmp $0x32,%ecx <== NOT EXECUTED
123389: 7e 05 jle 123390 <rtems_rfs_shell_dir+0x1e6><== NOT EXECUTED
12338b: b9 32 00 00 00 mov $0x32,%ecx <== NOT EXECUTED
123390: 31 d2 xor %edx,%edx <== NOT EXECUTED
length);
if (length > 50)
length = 50;
for (c = 0; c < length; c++)
123392: eb 1e jmp 1233b2 <rtems_rfs_shell_dir+0x208><== NOT EXECUTED
printf ("%c", data[RTEMS_RFS_DIR_ENTRY_SIZE + c]);
123394: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
123397: 0f b6 44 13 0a movzbl 0xa(%ebx,%edx,1),%eax <== NOT EXECUTED
12339c: 50 push %eax <== NOT EXECUTED
12339d: 89 55 c4 mov %edx,-0x3c(%ebp) <== NOT EXECUTED
1233a0: 89 4d c0 mov %ecx,-0x40(%ebp) <== NOT EXECUTED
1233a3: e8 6c da 01 00 call 140e14 <putchar> <== NOT EXECUTED
length);
if (length > 50)
length = 50;
for (c = 0; c < length; c++)
1233a8: 8b 55 c4 mov -0x3c(%ebp),%edx <== NOT EXECUTED
1233ab: 42 inc %edx <== NOT EXECUTED
1233ac: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1233af: 8b 4d c0 mov -0x40(%ebp),%ecx <== NOT EXECUTED
1233b2: 39 ca cmp %ecx,%edx <== NOT EXECUTED
1233b4: 7c de jl 123394 <rtems_rfs_shell_dir+0x1ea><== NOT EXECUTED
printf ("%c", data[RTEMS_RFS_DIR_ENTRY_SIZE + c]);
if (length < elength - RTEMS_RFS_DIR_ENTRY_SIZE)
1233b6: 3b 4d d4 cmp -0x2c(%ebp),%ecx <== NOT EXECUTED
1233b9: 7d 10 jge 1233cb <rtems_rfs_shell_dir+0x221><== NOT EXECUTED
printf ("...");
1233bb: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1233be: 68 8b 7d 15 00 push $0x157d8b <== NOT EXECUTED
1233c3: e8 ec d8 01 00 call 140cb4 <printf> <== NOT EXECUTED
1233c8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
printf ("\n");
1233cb: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1233ce: 6a 0a push $0xa <== NOT EXECUTED
1233d0: e8 3f da 01 00 call 140e14 <putchar> <== NOT EXECUTED
b += elength;
1233d5: 01 7d cc add %edi,-0x34(%ebp) <== NOT EXECUTED
data += elength;
1233d8: 01 fb add %edi,%ebx <== NOT EXECUTED
entry++;
1233da: ff 45 d0 incl -0x30(%ebp) <== NOT EXECUTED
1233dd: 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))
1233e0: 8b 46 08 mov 0x8(%esi),%eax <== NOT EXECUTED
1233e3: 83 e8 0b sub $0xb,%eax <== NOT EXECUTED
1233e6: 39 45 cc cmp %eax,-0x34(%ebp) <== NOT EXECUTED
1233e9: 0f 82 df fe ff ff jb 1232ce <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);
1233ef: 50 push %eax <== NOT EXECUTED
1233f0: 50 push %eax <== NOT EXECUTED
1233f1: 8d 45 d8 lea -0x28(%ebp),%eax <== NOT EXECUTED
1233f4: 50 push %eax <== NOT EXECUTED
1233f5: 56 push %esi <== NOT EXECUTED
1233f6: e8 8c 1b 01 00 call 134f87 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
handle->dirty = false;
1233fb: c6 45 d8 00 movb $0x0,-0x28(%ebp) <== NOT EXECUTED
handle->bnum = 0;
1233ff: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp) <== NOT EXECUTED
handle->buffer = NULL;
123406: 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);
12340d: 89 f0 mov %esi,%eax <== NOT EXECUTED
12340f: e8 a5 f8 ff ff call 122cb9 <rtems_rfs_shell_unlock_rfs><== NOT EXECUTED
123414: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
123416: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
123419: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
12341c: 5b pop %ebx <== NOT EXECUTED
12341d: 5e pop %esi <== NOT EXECUTED
12341e: 5f pop %edi <== NOT EXECUTED
12341f: c9 leave <== NOT EXECUTED
123420: c3 ret <== NOT EXECUTED
0012308f <rtems_rfs_shell_group>:
return 0;
}
static int
rtems_rfs_shell_group (rtems_rfs_file_system* fs, int argc, char *argv[])
{
12308f: 55 push %ebp <== NOT EXECUTED
123090: 89 e5 mov %esp,%ebp <== NOT EXECUTED
123092: 57 push %edi <== NOT EXECUTED
123093: 56 push %esi <== NOT EXECUTED
123094: 53 push %ebx <== NOT EXECUTED
123095: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
123098: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
12309b: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
12309e: 8b 75 10 mov 0x10(%ebp),%esi <== NOT EXECUTED
int start;
int end;
int g;
start = 0;
end = fs->group_count - 1;
1230a1: 8b 53 20 mov 0x20(%ebx),%edx <== NOT EXECUTED
switch (argc)
1230a4: 83 f8 02 cmp $0x2,%eax <== NOT EXECUTED
1230a7: 74 0a je 1230b3 <rtems_rfs_shell_group+0x24><== NOT EXECUTED
1230a9: 83 f8 03 cmp $0x3,%eax <== NOT EXECUTED
1230ac: 74 18 je 1230c6 <rtems_rfs_shell_group+0x37><== NOT EXECUTED
1230ae: 48 dec %eax <== NOT EXECUTED
1230af: 75 3a jne 1230eb <rtems_rfs_shell_group+0x5c><== NOT EXECUTED
1230b1: eb 47 jmp 1230fa <rtems_rfs_shell_group+0x6b><== NOT EXECUTED
{
case 1:
break;
case 2:
start = end = strtoul (argv[1], 0, 0);
1230b3: 57 push %edi <== NOT EXECUTED
1230b4: 6a 00 push $0x0 <== NOT EXECUTED
1230b6: 6a 00 push $0x0 <== NOT EXECUTED
1230b8: ff 76 04 pushl 0x4(%esi) <== NOT EXECUTED
1230bb: e8 84 10 02 00 call 144144 <strtoul> <== NOT EXECUTED
1230c0: 89 c6 mov %eax,%esi <== NOT EXECUTED
1230c2: 89 c7 mov %eax,%edi <== NOT EXECUTED
1230c4: eb 20 jmp 1230e6 <rtems_rfs_shell_group+0x57><== NOT EXECUTED
break;
case 3:
start = strtoul (argv[1], 0, 0);
1230c6: 51 push %ecx <== NOT EXECUTED
1230c7: 6a 00 push $0x0 <== NOT EXECUTED
1230c9: 6a 00 push $0x0 <== NOT EXECUTED
1230cb: ff 76 04 pushl 0x4(%esi) <== NOT EXECUTED
1230ce: e8 71 10 02 00 call 144144 <strtoul> <== NOT EXECUTED
1230d3: 89 c7 mov %eax,%edi <== NOT EXECUTED
end = strtoul (argv[2], 0, 0);
1230d5: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
1230d8: 6a 00 push $0x0 <== NOT EXECUTED
1230da: 6a 00 push $0x0 <== NOT EXECUTED
1230dc: ff 76 08 pushl 0x8(%esi) <== NOT EXECUTED
1230df: e8 60 10 02 00 call 144144 <strtoul> <== NOT EXECUTED
1230e4: 89 c6 mov %eax,%esi <== NOT EXECUTED
break;
1230e6: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1230e9: eb 14 jmp 1230ff <rtems_rfs_shell_group+0x70><== NOT EXECUTED
default:
printf ("error: too many arguments.\n");
1230eb: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1230ee: 68 a3 90 15 00 push $0x1590a3 <== NOT EXECUTED
1230f3: e8 d0 dd 01 00 call 140ec8 <puts> <== NOT EXECUTED
1230f8: eb 27 jmp 123121 <rtems_rfs_shell_group+0x92><== NOT EXECUTED
int start;
int end;
int g;
start = 0;
end = fs->group_count - 1;
1230fa: 8d 72 ff lea -0x1(%edx),%esi <== NOT EXECUTED
1230fd: 31 ff xor %edi,%edi <== NOT EXECUTED
default:
printf ("error: too many arguments.\n");
return 1;
}
if ((start < 0) || (end < 0) ||
1230ff: 85 f6 test %esi,%esi <== NOT EXECUTED
123101: 78 0f js 123112 <rtems_rfs_shell_group+0x83><== NOT EXECUTED
123103: 85 ff test %edi,%edi <== NOT EXECUTED
123105: 78 0b js 123112 <rtems_rfs_shell_group+0x83><== NOT EXECUTED
(start >= fs->group_count) || (end >= fs->group_count))
123107: 8b 43 20 mov 0x20(%ebx),%eax <== NOT EXECUTED
default:
printf ("error: too many arguments.\n");
return 1;
}
if ((start < 0) || (end < 0) ||
12310a: 39 c7 cmp %eax,%edi <== NOT EXECUTED
12310c: 7d 04 jge 123112 <rtems_rfs_shell_group+0x83><== NOT EXECUTED
12310e: 39 c6 cmp %eax,%esi <== NOT EXECUTED
123110: 7c 19 jl 12312b <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);
123112: 52 push %edx <== NOT EXECUTED
123113: 52 push %edx <== NOT EXECUTED
123114: ff 73 20 pushl 0x20(%ebx) <== NOT EXECUTED
123117: 68 be 90 15 00 push $0x1590be <== NOT EXECUTED
12311c: e8 93 db 01 00 call 140cb4 <printf> <== NOT EXECUTED
123121: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
return 1;
123126: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
123129: eb 77 jmp 1231a2 <rtems_rfs_shell_group+0x113><== NOT EXECUTED
12312b: 50 push %eax <== NOT EXECUTED
12312c: 6a 00 push $0x0 <== NOT EXECUTED
12312e: 6a 00 push $0x0 <== NOT EXECUTED
123130: 8b 43 7c mov 0x7c(%ebx),%eax <== NOT EXECUTED
123133: ff 30 pushl (%eax) <== NOT EXECUTED
123135: e8 ce da fe ff call 110c08 <rtems_semaphore_obtain><== NOT EXECUTED
12313a: 6b c7 50 imul $0x50,%edi,%eax <== NOT EXECUTED
12313d: 89 45 e0 mov %eax,-0x20(%ebp) <== NOT EXECUTED
123140: 89 7d e4 mov %edi,-0x1c(%ebp) <== NOT EXECUTED
}
rtems_rfs_shell_lock_rfs (fs);
for (g = start; g <= end; g++)
123143: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
123146: eb 4c jmp 123194 <rtems_rfs_shell_group+0x105><== NOT EXECUTED
{
rtems_rfs_group* group = &fs->groups[g];
123148: 8b 4d e0 mov -0x20(%ebp),%ecx <== NOT EXECUTED
12314b: 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);
12314e: 8b 79 04 mov 0x4(%ecx),%edi <== NOT EXECUTED
123151: 89 f8 mov %edi,%eax <== NOT EXECUTED
123153: 2b 41 18 sub 0x18(%ecx),%eax <== NOT EXECUTED
123156: 89 45 d8 mov %eax,-0x28(%ebp) <== NOT EXECUTED
inodes = fs->group_inodes - rtems_rfs_bitmap_map_free (&group->inode_bitmap);
123159: 8b 43 28 mov 0x28(%ebx),%eax <== NOT EXECUTED
12315c: 2b 41 3c sub 0x3c(%ecx),%eax <== NOT EXECUTED
12315f: 89 45 dc mov %eax,-0x24(%ebp) <== NOT EXECUTED
printf (" %4d: base=%-7" PRIu32 " size=%-6zu blocks=%-5zu (%3zu%%) inode=%-5zu (%3zu%%)\n",
123162: 6b c0 64 imul $0x64,%eax,%eax <== NOT EXECUTED
123165: 31 d2 xor %edx,%edx <== NOT EXECUTED
123167: f7 73 28 divl 0x28(%ebx) <== NOT EXECUTED
12316a: 50 push %eax <== NOT EXECUTED
12316b: ff 75 dc pushl -0x24(%ebp) <== NOT EXECUTED
12316e: 6b 45 d8 64 imul $0x64,-0x28(%ebp),%eax <== NOT EXECUTED
123172: 31 d2 xor %edx,%edx <== NOT EXECUTED
123174: f7 f7 div %edi <== NOT EXECUTED
123176: 50 push %eax <== NOT EXECUTED
123177: ff 75 d8 pushl -0x28(%ebp) <== NOT EXECUTED
12317a: 57 push %edi <== NOT EXECUTED
12317b: ff 31 pushl (%ecx) <== NOT EXECUTED
12317d: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
123180: 68 e2 90 15 00 push $0x1590e2 <== NOT EXECUTED
123185: e8 2a db 01 00 call 140cb4 <printf> <== NOT EXECUTED
return 1;
}
rtems_rfs_shell_lock_rfs (fs);
for (g = start; g <= end; g++)
12318a: ff 45 e4 incl -0x1c(%ebp) <== NOT EXECUTED
12318d: 83 45 e0 50 addl $0x50,-0x20(%ebp) <== NOT EXECUTED
123191: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
123194: 39 75 e4 cmp %esi,-0x1c(%ebp) <== NOT EXECUTED
123197: 7e af jle 123148 <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);
123199: 89 d8 mov %ebx,%eax <== NOT EXECUTED
12319b: e8 19 fb ff ff call 122cb9 <rtems_rfs_shell_unlock_rfs><== NOT EXECUTED
1231a0: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
}
1231a2: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1231a5: 5b pop %ebx <== NOT EXECUTED
1231a6: 5e pop %esi <== NOT EXECUTED
1231a7: 5f pop %edi <== NOT EXECUTED
1231a8: c9 leave <== NOT EXECUTED
1231a9: c3 ret <== NOT EXECUTED
00122cd9 <rtems_rfs_shell_inode>:
return 0;
}
static int
rtems_rfs_shell_inode (rtems_rfs_file_system* fs, int argc, char *argv[])
{
122cd9: 55 push %ebp <== NOT EXECUTED
122cda: 89 e5 mov %esp,%ebp <== NOT EXECUTED
122cdc: 57 push %edi <== NOT EXECUTED
122cdd: 56 push %esi <== NOT EXECUTED
122cde: 53 push %ebx <== NOT EXECUTED
122cdf: 83 ec 6c sub $0x6c,%esp <== NOT EXECUTED
122ce2: 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;
122ce5: 8b 73 20 mov 0x20(%ebx),%esi <== NOT EXECUTED
122ce8: 0f af 73 28 imul 0x28(%ebx),%esi <== NOT EXECUTED
start = RTEMS_RFS_ROOT_INO;
end = total - 1;
122cec: 8d 46 ff lea -0x1(%esi),%eax <== NOT EXECUTED
122cef: 89 45 ac mov %eax,-0x54(%ebp) <== NOT EXECUTED
122cf2: 89 45 a8 mov %eax,-0x58(%ebp) <== NOT EXECUTED
122cf5: bf 01 00 00 00 mov $0x1,%edi <== NOT EXECUTED
122cfa: c6 45 a7 00 movb $0x0,-0x59(%ebp) <== NOT EXECUTED
122cfe: c6 45 b6 00 movb $0x0,-0x4a(%ebp) <== NOT EXECUTED
122d02: c6 45 a6 00 movb $0x0,-0x5a(%ebp) <== NOT EXECUTED
122d06: c6 45 a5 00 movb $0x0,-0x5b(%ebp) <== NOT EXECUTED
122d0a: c6 45 a4 00 movb $0x0,-0x5c(%ebp) <== NOT EXECUTED
122d0e: 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++)
122d15: eb 7f jmp 122d96 <rtems_rfs_shell_inode+0xbd><== NOT EXECUTED
{
if (argv[arg][0] == '-')
122d17: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
122d1a: 8b 04 ba mov (%edx,%edi,4),%eax <== NOT EXECUTED
122d1d: 80 38 2d cmpb $0x2d,(%eax) <== NOT EXECUTED
122d20: 75 26 jne 122d48 <rtems_rfs_shell_inode+0x6f><== NOT EXECUTED
{
switch (argv[arg][1])
122d22: 8a 50 01 mov 0x1(%eax),%dl <== NOT EXECUTED
122d25: 80 fa 65 cmp $0x65,%dl <== NOT EXECUTED
122d28: 74 0c je 122d36 <rtems_rfs_shell_inode+0x5d><== NOT EXECUTED
122d2a: 80 fa 66 cmp $0x66,%dl <== NOT EXECUTED
122d2d: 74 13 je 122d42 <rtems_rfs_shell_inode+0x69><== NOT EXECUTED
122d2f: 80 fa 61 cmp $0x61,%dl <== NOT EXECUTED
122d32: 75 20 jne 122d54 <rtems_rfs_shell_inode+0x7b><== NOT EXECUTED
122d34: eb 06 jmp 122d3c <rtems_rfs_shell_inode+0x63><== NOT EXECUTED
122d36: c6 45 a5 01 movb $0x1,-0x5b(%ebp) <== NOT EXECUTED
122d3a: eb 59 jmp 122d95 <rtems_rfs_shell_inode+0xbc><== NOT EXECUTED
122d3c: c6 45 a4 01 movb $0x1,-0x5c(%ebp) <== NOT EXECUTED
122d40: eb 53 jmp 122d95 <rtems_rfs_shell_inode+0xbc><== NOT EXECUTED
122d42: c6 45 a6 01 movb $0x1,-0x5a(%ebp) <== NOT EXECUTED
case 'e':
error_check_only = true;
break;
case 'f':
forced = true;
break;
122d46: eb 4d jmp 122d95 <rtems_rfs_shell_inode+0xbc><== NOT EXECUTED
break;
}
}
else
{
if (have_end && have_start)
122d48: 80 7d a7 00 cmpb $0x0,-0x59(%ebp) <== NOT EXECUTED
122d4c: 74 15 je 122d63 <rtems_rfs_shell_inode+0x8a><== NOT EXECUTED
122d4e: 80 7d b6 00 cmpb $0x0,-0x4a(%ebp) <== NOT EXECUTED
122d52: 74 15 je 122d69 <rtems_rfs_shell_inode+0x90><== NOT EXECUTED
printf ("warning: option ignored: %s\n", argv[arg]);
122d54: 51 push %ecx <== NOT EXECUTED
122d55: 51 push %ecx <== NOT EXECUTED
122d56: 50 push %eax <== NOT EXECUTED
122d57: 68 5f 8f 15 00 push $0x158f5f <== NOT EXECUTED
122d5c: e8 53 df 01 00 call 140cb4 <printf> <== NOT EXECUTED
122d61: eb 2f jmp 122d92 <rtems_rfs_shell_inode+0xb9><== NOT EXECUTED
else if (!have_start)
122d63: 80 7d b6 00 cmpb $0x0,-0x4a(%ebp) <== NOT EXECUTED
122d67: 75 17 jne 122d80 <rtems_rfs_shell_inode+0xa7><== NOT EXECUTED
{
start = end = strtoul (argv[arg], 0, 0);
122d69: 52 push %edx <== NOT EXECUTED
122d6a: 6a 00 push $0x0 <== NOT EXECUTED
122d6c: 6a 00 push $0x0 <== NOT EXECUTED
122d6e: 50 push %eax <== NOT EXECUTED
122d6f: e8 d0 13 02 00 call 144144 <strtoul> <== NOT EXECUTED
122d74: 89 45 a8 mov %eax,-0x58(%ebp) <== NOT EXECUTED
122d77: 89 45 b0 mov %eax,-0x50(%ebp) <== NOT EXECUTED
122d7a: c6 45 b6 01 movb $0x1,-0x4a(%ebp) <== NOT EXECUTED
122d7e: eb 12 jmp 122d92 <rtems_rfs_shell_inode+0xb9><== NOT EXECUTED
have_start = true;
}
else
{
end = strtoul (argv[arg], 0, 0);
122d80: 51 push %ecx <== NOT EXECUTED
122d81: 6a 00 push $0x0 <== NOT EXECUTED
122d83: 6a 00 push $0x0 <== NOT EXECUTED
122d85: 50 push %eax <== NOT EXECUTED
122d86: e8 b9 13 02 00 call 144144 <strtoul> <== NOT EXECUTED
122d8b: 89 45 a8 mov %eax,-0x58(%ebp) <== NOT EXECUTED
122d8e: c6 45 a7 01 movb $0x1,-0x59(%ebp) <== NOT EXECUTED
122d92: 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++)
122d95: 47 inc %edi <== NOT EXECUTED
122d96: 3b 7d 0c cmp 0xc(%ebp),%edi <== NOT EXECUTED
122d99: 0f 8c 78 ff ff ff jl 122d17 <rtems_rfs_shell_inode+0x3e><== NOT EXECUTED
have_end = true;
}
}
}
if ((start >= total) || (end >= total))
122d9f: 39 75 a8 cmp %esi,-0x58(%ebp) <== NOT EXECUTED
122da2: 73 05 jae 122da9 <rtems_rfs_shell_inode+0xd0><== NOT EXECUTED
122da4: 39 75 b0 cmp %esi,-0x50(%ebp) <== NOT EXECUTED
122da7: 72 1c jb 122dc5 <rtems_rfs_shell_inode+0xec><== NOT EXECUTED
{
printf ("error: inode out of range (0->%" PRId32 ").\n", total - 1);
122da9: 52 push %edx <== NOT EXECUTED
122daa: 52 push %edx <== NOT EXECUTED
122dab: ff 75 ac pushl -0x54(%ebp) <== NOT EXECUTED
122dae: 68 7c 8f 15 00 push $0x158f7c <== NOT EXECUTED
122db3: e8 fc de 01 00 call 140cb4 <printf> <== NOT EXECUTED
122db8: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
return 1;
122dbd: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
122dc0: e9 c2 02 00 00 jmp 123087 <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);
122dc5: 50 push %eax <== NOT EXECUTED
122dc6: 6a 00 push $0x0 <== NOT EXECUTED
122dc8: 6a 00 push $0x0 <== NOT EXECUTED
122dca: 8b 43 7c mov 0x7c(%ebx),%eax <== NOT EXECUTED
122dcd: ff 30 pushl (%eax) <== NOT EXECUTED
122dcf: e8 34 de fe ff call 110c08 <rtems_semaphore_obtain><== NOT EXECUTED
122dd4: 8b 75 b0 mov -0x50(%ebp),%esi <== NOT EXECUTED
}
rtems_rfs_shell_lock_rfs (fs);
for (ino = start; ino <= end; ino++)
122dd7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
122dda: e9 96 02 00 00 jmp 123075 <rtems_rfs_shell_inode+0x39c><== NOT EXECUTED
{
rtems_rfs_inode_handle inode;
bool allocated;
rc = rtems_rfs_group_bitmap_test (fs, true, ino, &allocated);
122ddf: 8d 7d e7 lea -0x19(%ebp),%edi <== NOT EXECUTED
122de2: 57 push %edi <== NOT EXECUTED
122de3: 56 push %esi <== NOT EXECUTED
122de4: 6a 01 push $0x1 <== NOT EXECUTED
122de6: 53 push %ebx <== NOT EXECUTED
122de7: e8 02 4c 01 00 call 1379ee <rtems_rfs_group_bitmap_test><== NOT EXECUTED
122dec: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc > 0)
122dee: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
122df1: 85 c0 test %eax,%eax <== NOT EXECUTED
122df3: 7e 1a jle 122e0f <rtems_rfs_shell_inode+0x136><== NOT EXECUTED
{
rtems_rfs_shell_unlock_rfs (fs);
122df5: 89 d8 mov %ebx,%eax <== NOT EXECUTED
122df7: e8 bd fe ff ff call 122cb9 <rtems_rfs_shell_unlock_rfs><== NOT EXECUTED
printf ("error: testing inode state: ino=%" PRIu32 ": (%d) %s\n",
122dfc: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
122dff: 57 push %edi <== NOT EXECUTED
122e00: e8 f7 f8 01 00 call 1426fc <strerror> <== NOT EXECUTED
122e05: 50 push %eax <== NOT EXECUTED
122e06: 57 push %edi <== NOT EXECUTED
122e07: 56 push %esi <== NOT EXECUTED
122e08: 68 a1 8f 15 00 push $0x158fa1 <== NOT EXECUTED
122e0d: eb 3e jmp 122e4d <rtems_rfs_shell_inode+0x174><== NOT EXECUTED
ino, rc, strerror (rc));
return 1;
}
if (show_all || allocated)
122e0f: 80 7d a4 00 cmpb $0x0,-0x5c(%ebp) <== NOT EXECUTED
122e13: 75 0a jne 122e1f <rtems_rfs_shell_inode+0x146><== NOT EXECUTED
122e15: 80 7d e7 00 cmpb $0x0,-0x19(%ebp) <== NOT EXECUTED
122e19: 0f 84 55 02 00 00 je 123074 <rtems_rfs_shell_inode+0x39b><== NOT EXECUTED
{
uint16_t mode;
bool error;
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
122e1f: 6a 01 push $0x1 <== NOT EXECUTED
122e21: 8d 45 bc lea -0x44(%ebp),%eax <== NOT EXECUTED
122e24: 50 push %eax <== NOT EXECUTED
122e25: 56 push %esi <== NOT EXECUTED
122e26: 53 push %ebx <== NOT EXECUTED
122e27: e8 af 52 01 00 call 1380db <rtems_rfs_inode_open> <== NOT EXECUTED
122e2c: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc > 0)
122e2e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
122e31: 85 c0 test %eax,%eax <== NOT EXECUTED
122e33: 7e 2a jle 122e5f <rtems_rfs_shell_inode+0x186><== NOT EXECUTED
{
rtems_rfs_shell_unlock_rfs (fs);
122e35: 89 d8 mov %ebx,%eax <== NOT EXECUTED
122e37: e8 7d fe ff ff call 122cb9 <rtems_rfs_shell_unlock_rfs><== NOT EXECUTED
printf ("error: opening inode handle: ino=%" PRIu32 ": (%d) %s\n",
122e3c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
122e3f: 57 push %edi <== NOT EXECUTED
122e40: e8 b7 f8 01 00 call 1426fc <strerror> <== NOT EXECUTED
122e45: 50 push %eax <== NOT EXECUTED
122e46: 57 push %edi <== NOT EXECUTED
122e47: 56 push %esi <== NOT EXECUTED
122e48: 68 cf 8f 15 00 push $0x158fcf <== NOT EXECUTED
122e4d: e8 62 de 01 00 call 140cb4 <printf> <== NOT EXECUTED
122e52: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
ino, rc, strerror (rc));
return 1;
122e57: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
122e5a: e9 28 02 00 00 jmp 123087 <rtems_rfs_shell_inode+0x3ae><== NOT EXECUTED
122e5f: 8b 55 c8 mov -0x38(%ebp),%edx <== NOT EXECUTED
122e62: 0f b6 42 02 movzbl 0x2(%edx),%eax <== NOT EXECUTED
122e66: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
122e69: 0f b6 7a 03 movzbl 0x3(%edx),%edi <== NOT EXECUTED
122e6d: 09 c7 or %eax,%edi <== NOT EXECUTED
error = false;
mode = rtems_rfs_inode_get_mode (&inode);
if (error_check_only)
122e6f: 80 7d a5 00 cmpb $0x0,-0x5b(%ebp) <== NOT EXECUTED
122e73: 74 3e je 122eb3 <rtems_rfs_shell_inode+0x1da><== NOT EXECUTED
{
if (!RTEMS_RFS_S_ISDIR (mode) &&
122e75: 89 f8 mov %edi,%eax <== NOT EXECUTED
122e77: 25 00 f0 00 00 and $0xf000,%eax <== NOT EXECUTED
122e7c: 3d 00 20 00 00 cmp $0x2000,%eax <== NOT EXECUTED
122e81: 0f 84 bb 01 00 00 je 123042 <rtems_rfs_shell_inode+0x369><== NOT EXECUTED
122e87: 3d 00 40 00 00 cmp $0x4000,%eax <== NOT EXECUTED
122e8c: 0f 84 b0 01 00 00 je 123042 <rtems_rfs_shell_inode+0x369><== NOT EXECUTED
122e92: 3d 00 60 00 00 cmp $0x6000,%eax <== NOT EXECUTED
122e97: 0f 84 a5 01 00 00 je 123042 <rtems_rfs_shell_inode+0x369><== NOT EXECUTED
122e9d: 3d 00 80 00 00 cmp $0x8000,%eax <== NOT EXECUTED
122ea2: 0f 84 9a 01 00 00 je 123042 <rtems_rfs_shell_inode+0x369><== NOT EXECUTED
}
#endif
}
}
if (!error_check_only || error)
122ea8: 3d 00 a0 00 00 cmp $0xa000,%eax <== NOT EXECUTED
122ead: 0f 84 8f 01 00 00 je 123042 <rtems_rfs_shell_inode+0x369><== NOT EXECUTED
{
printf (" %5" PRIu32 ": pos=%06" PRIu32 ":%04zx %c ",
122eb3: 80 7d e7 01 cmpb $0x1,-0x19(%ebp) <== NOT EXECUTED
122eb7: 19 c0 sbb %eax,%eax <== NOT EXECUTED
122eb9: 83 e0 05 and $0x5,%eax <== NOT EXECUTED
122ebc: 83 c0 41 add $0x41,%eax <== NOT EXECUTED
122ebf: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
122ec2: 50 push %eax <== NOT EXECUTED
122ec3: 6b 45 dc 38 imul $0x38,-0x24(%ebp),%eax <== NOT EXECUTED
122ec7: 50 push %eax <== NOT EXECUTED
122ec8: ff 75 d0 pushl -0x30(%ebp) <== NOT EXECUTED
122ecb: 56 push %esi <== NOT EXECUTED
122ecc: 68 fe 8f 15 00 push $0x158ffe <== NOT EXECUTED
122ed1: e8 de dd 01 00 call 140cb4 <printf> <== NOT EXECUTED
ino, rtems_rfs_buffer_bnum (&inode.buffer),
inode.offset * RTEMS_RFS_INODE_SIZE,
allocated ? 'A' : 'F');
if (!allocated && !forced)
122ed6: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
122ed9: 80 7d e7 00 cmpb $0x0,-0x19(%ebp) <== NOT EXECUTED
122edd: 75 18 jne 122ef7 <rtems_rfs_shell_inode+0x21e><== NOT EXECUTED
122edf: 80 7d a6 00 cmpb $0x0,-0x5a(%ebp) <== NOT EXECUTED
122ee3: 75 12 jne 122ef7 <rtems_rfs_shell_inode+0x21e><== NOT EXECUTED
printf (" --\n");
122ee5: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
122ee8: 68 19 90 15 00 push $0x159019 <== NOT EXECUTED
122eed: e8 d6 df 01 00 call 140ec8 <puts> <== NOT EXECUTED
122ef2: e9 48 01 00 00 jmp 12303f <rtems_rfs_shell_inode+0x366><== NOT EXECUTED
else
{
const char* type;
type = "UKN";
if (RTEMS_RFS_S_ISDIR (mode))
122ef7: 0f b7 ff movzwl %di,%edi <== NOT EXECUTED
122efa: 89 7d b0 mov %edi,-0x50(%ebp) <== NOT EXECUTED
122efd: 89 f8 mov %edi,%eax <== NOT EXECUTED
122eff: 25 00 f0 00 00 and $0xf000,%eax <== NOT EXECUTED
122f04: ba 1d 90 15 00 mov $0x15901d,%edx <== NOT EXECUTED
122f09: 3d 00 40 00 00 cmp $0x4000,%eax <== NOT EXECUTED
122f0e: 74 35 je 122f45 <rtems_rfs_shell_inode+0x26c><== NOT EXECUTED
type = "DIR";
else if (RTEMS_RFS_S_ISCHR (mode))
122f10: ba 21 90 15 00 mov $0x159021,%edx <== NOT EXECUTED
122f15: 3d 00 20 00 00 cmp $0x2000,%eax <== NOT EXECUTED
122f1a: 74 29 je 122f45 <rtems_rfs_shell_inode+0x26c><== NOT EXECUTED
type = "CHR";
else if (RTEMS_RFS_S_ISBLK (mode))
122f1c: ba 25 90 15 00 mov $0x159025,%edx <== NOT EXECUTED
122f21: 3d 00 60 00 00 cmp $0x6000,%eax <== NOT EXECUTED
122f26: 74 1d je 122f45 <rtems_rfs_shell_inode+0x26c><== NOT EXECUTED
type = "BLK";
else if (RTEMS_RFS_S_ISREG (mode))
122f28: ba 29 90 15 00 mov $0x159029,%edx <== NOT EXECUTED
122f2d: 3d 00 80 00 00 cmp $0x8000,%eax <== NOT EXECUTED
122f32: 74 11 je 122f45 <rtems_rfs_shell_inode+0x26c><== NOT EXECUTED
type = "REG";
else if (RTEMS_RFS_S_ISLNK (mode))
122f34: ba 31 90 15 00 mov $0x159031,%edx <== NOT EXECUTED
122f39: 3d 00 a0 00 00 cmp $0xa000,%eax <== NOT EXECUTED
122f3e: 75 05 jne 122f45 <rtems_rfs_shell_inode+0x26c><== NOT EXECUTED
122f40: ba 2d 90 15 00 mov $0x15902d,%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);
122f45: 8b 4d c8 mov -0x38(%ebp),%ecx <== NOT EXECUTED
122f48: 8d 79 0c lea 0xc(%ecx),%edi <== NOT EXECUTED
122f4b: 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);
122f4e: 0f b6 01 movzbl (%ecx),%eax <== NOT EXECUTED
122f51: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
122f54: 0f b6 79 01 movzbl 0x1(%ecx),%edi <== NOT EXECUTED
122f58: 66 89 7d b6 mov %di,-0x4a(%ebp) <== NOT EXECUTED
122f5c: 66 09 45 b6 or %ax,-0x4a(%ebp) <== NOT EXECUTED
if (links == 0xffff)
122f60: 31 c0 xor %eax,%eax <== NOT EXECUTED
122f62: 66 83 7d b6 ff cmpw $0xffffffff,-0x4a(%ebp) <== NOT EXECUTED
122f67: 0f 95 c0 setne %al <== NOT EXECUTED
122f6a: f7 d8 neg %eax <== NOT EXECUTED
122f6c: 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=[",
122f70: 57 push %edi <== NOT EXECUTED
122f71: 8b 7d ac mov -0x54(%ebp),%edi <== NOT EXECUTED
122f74: 0f b6 47 03 movzbl 0x3(%edi),%eax <== NOT EXECUTED
122f78: 0f b6 79 0c movzbl 0xc(%ecx),%edi <== NOT EXECUTED
122f7c: c1 e7 18 shl $0x18,%edi <== NOT EXECUTED
122f7f: 09 f8 or %edi,%eax <== NOT EXECUTED
122f81: 8b 7d ac mov -0x54(%ebp),%edi <== NOT EXECUTED
122f84: 0f b6 7f 01 movzbl 0x1(%edi),%edi <== NOT EXECUTED
122f88: c1 e7 10 shl $0x10,%edi <== NOT EXECUTED
122f8b: 09 f8 or %edi,%eax <== NOT EXECUTED
122f8d: 8b 7d ac mov -0x54(%ebp),%edi <== NOT EXECUTED
122f90: 0f b6 7f 02 movzbl 0x2(%edi),%edi <== NOT EXECUTED
122f94: c1 e7 08 shl $0x8,%edi <== NOT EXECUTED
122f97: 09 f8 or %edi,%eax <== NOT EXECUTED
122f99: 50 push %eax <== NOT EXECUTED
122f9a: 0f b6 41 0a movzbl 0xa(%ecx),%eax <== NOT EXECUTED
122f9e: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
122fa1: 0f b6 49 0b movzbl 0xb(%ecx),%ecx <== NOT EXECUTED
122fa5: 09 c1 or %eax,%ecx <== NOT EXECUTED
122fa7: 0f b7 c9 movzwl %cx,%ecx <== NOT EXECUTED
122faa: 51 push %ecx <== NOT EXECUTED
122fab: 8b 45 b0 mov -0x50(%ebp),%eax <== NOT EXECUTED
122fae: 25 ff 03 00 00 and $0x3ff,%eax <== NOT EXECUTED
122fb3: 50 push %eax <== NOT EXECUTED
122fb4: 52 push %edx <== NOT EXECUTED
122fb5: ff 75 b0 pushl -0x50(%ebp) <== NOT EXECUTED
122fb8: 0f b7 45 b6 movzwl -0x4a(%ebp),%eax <== NOT EXECUTED
122fbc: 50 push %eax <== NOT EXECUTED
122fbd: 68 35 90 15 00 push $0x159035 <== NOT EXECUTED
122fc2: e8 ed dc 01 00 call 140cb4 <printf> <== NOT EXECUTED
122fc7: 31 ff xor %edi,%edi <== NOT EXECUTED
122fc9: 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]);
122fcc: 8b 4d c8 mov -0x38(%ebp),%ecx <== NOT EXECUTED
122fcf: 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));
122fd2: 50 push %eax <== NOT EXECUTED
122fd3: 50 push %eax <== NOT EXECUTED
122fd4: 0f b6 44 3a 03 movzbl 0x3(%edx,%edi,1),%eax <== NOT EXECUTED
122fd9: 0f b6 4c 39 1c movzbl 0x1c(%ecx,%edi,1),%ecx <== NOT EXECUTED
122fde: c1 e1 18 shl $0x18,%ecx <== NOT EXECUTED
122fe1: 09 c8 or %ecx,%eax <== NOT EXECUTED
122fe3: 0f b6 4c 3a 01 movzbl 0x1(%edx,%edi,1),%ecx <== NOT EXECUTED
122fe8: c1 e1 10 shl $0x10,%ecx <== NOT EXECUTED
122feb: 09 c8 or %ecx,%eax <== NOT EXECUTED
122fed: 0f b6 54 3a 02 movzbl 0x2(%edx,%edi,1),%edx <== NOT EXECUTED
122ff2: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
122ff5: 09 d0 or %edx,%eax <== NOT EXECUTED
122ff7: 50 push %eax <== NOT EXECUTED
122ff8: 68 69 90 15 00 push $0x159069 <== NOT EXECUTED
122ffd: e8 b2 dc 01 00 call 140cb4 <printf> <== NOT EXECUTED
123002: 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++)
123005: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
123008: 83 ff 10 cmp $0x10,%edi <== NOT EXECUTED
12300b: 75 bf jne 122fcc <rtems_rfs_shell_inode+0x2f3><== NOT EXECUTED
12300d: 8b 55 c8 mov -0x38(%ebp),%edx <== NOT EXECUTED
123010: 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));
123013: 57 push %edi <== NOT EXECUTED
123014: 57 push %edi <== NOT EXECUTED
123015: 0f b6 42 10 movzbl 0x10(%edx),%eax <== NOT EXECUTED
123019: c1 e0 18 shl $0x18,%eax <== NOT EXECUTED
12301c: 0f b6 4a 11 movzbl 0x11(%edx),%ecx <== NOT EXECUTED
123020: c1 e1 10 shl $0x10,%ecx <== NOT EXECUTED
123023: 09 c8 or %ecx,%eax <== NOT EXECUTED
123025: 0f b6 4a 13 movzbl 0x13(%edx),%ecx <== NOT EXECUTED
123029: 09 c8 or %ecx,%eax <== NOT EXECUTED
12302b: 0f b6 52 12 movzbl 0x12(%edx),%edx <== NOT EXECUTED
12302f: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
123032: 09 d0 or %edx,%eax <== NOT EXECUTED
123034: 50 push %eax <== NOT EXECUTED
123035: 68 6e 90 15 00 push $0x15906e <== NOT EXECUTED
12303a: e8 75 dc 01 00 call 140cb4 <printf> <== NOT EXECUTED
12303f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
}
rc = rtems_rfs_inode_close (fs, &inode);
123042: 51 push %ecx <== NOT EXECUTED
123043: 51 push %ecx <== NOT EXECUTED
123044: 8d 45 bc lea -0x44(%ebp),%eax <== NOT EXECUTED
123047: 50 push %eax <== NOT EXECUTED
123048: 53 push %ebx <== NOT EXECUTED
123049: e8 1e 50 01 00 call 13806c <rtems_rfs_inode_close> <== NOT EXECUTED
12304e: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc > 0)
123050: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
123053: 85 c0 test %eax,%eax <== NOT EXECUTED
123055: 7e 1d jle 123074 <rtems_rfs_shell_inode+0x39b><== NOT EXECUTED
{
rtems_rfs_shell_unlock_rfs (fs);
123057: 89 d8 mov %ebx,%eax <== NOT EXECUTED
123059: e8 5b fc ff ff call 122cb9 <rtems_rfs_shell_unlock_rfs><== NOT EXECUTED
printf ("error: closing inode handle: ino=%" PRIu32 ": (%d) %s\n",
12305e: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
123061: 57 push %edi <== NOT EXECUTED
123062: e8 95 f6 01 00 call 1426fc <strerror> <== NOT EXECUTED
123067: 50 push %eax <== NOT EXECUTED
123068: 57 push %edi <== NOT EXECUTED
123069: 56 push %esi <== NOT EXECUTED
12306a: 68 74 90 15 00 push $0x159074 <== NOT EXECUTED
12306f: e9 d9 fd ff ff jmp 122e4d <rtems_rfs_shell_inode+0x174><== NOT EXECUTED
return 1;
}
rtems_rfs_shell_lock_rfs (fs);
for (ino = start; ino <= end; ino++)
123074: 46 inc %esi <== NOT EXECUTED
123075: 3b 75 a8 cmp -0x58(%ebp),%esi <== NOT EXECUTED
123078: 0f 86 61 fd ff ff jbe 122ddf <rtems_rfs_shell_inode+0x106><== NOT EXECUTED
return 1;
}
}
}
rtems_rfs_shell_unlock_rfs (fs);
12307e: 89 d8 mov %ebx,%eax <== NOT EXECUTED
123080: e8 34 fc ff ff call 122cb9 <rtems_rfs_shell_unlock_rfs><== NOT EXECUTED
123085: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
}
123087: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
12308a: 5b pop %ebx <== NOT EXECUTED
12308b: 5e pop %esi <== NOT EXECUTED
12308c: 5f pop %edi <== NOT EXECUTED
12308d: c9 leave <== NOT EXECUTED
12308e: c3 ret <== NOT EXECUTED
00122cb9 <rtems_rfs_shell_unlock_rfs>:
/**
* Unlock the file system.
*/
static void
rtems_rfs_shell_unlock_rfs (rtems_rfs_file_system* fs)
{
122cb9: 55 push %ebp <== NOT EXECUTED
122cba: 89 e5 mov %esp,%ebp <== NOT EXECUTED
122cbc: 53 push %ebx <== NOT EXECUTED
122cbd: 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);
122cc0: 8b 58 7c mov 0x7c(%eax),%ebx <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
122cc3: 50 push %eax <== NOT EXECUTED
122cc4: e8 93 21 01 00 call 134e5c <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);
122cc9: 5a pop %edx <== NOT EXECUTED
122cca: ff 33 pushl (%ebx) <== NOT EXECUTED
122ccc: e8 23 e0 fe ff call 110cf4 <rtems_semaphore_release><== NOT EXECUTED
122cd1: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
#if __rtems__
rtems_rfs_rtems_unlock (fs);
#endif
}
122cd4: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
122cd7: c9 leave <== NOT EXECUTED
122cd8: c3 ret <== NOT EXECUTED
00122ac4 <rtems_rfs_shell_usage>:
}
void
rtems_rfs_shell_usage (const char* arg)
{
122ac4: 55 push %ebp <== NOT EXECUTED
122ac5: 89 e5 mov %esp,%ebp <== NOT EXECUTED
122ac7: 53 push %ebx <== NOT EXECUTED
122ac8: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
122acb: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
printf ("%s: RFS debugger\n", arg);
122ace: 53 push %ebx <== NOT EXECUTED
122acf: 68 88 8d 15 00 push $0x158d88 <== NOT EXECUTED
122ad4: e8 db e1 01 00 call 140cb4 <printf> <== NOT EXECUTED
printf (" %s [-hl] <path> <command>\n", arg);
122ad9: 58 pop %eax <== NOT EXECUTED
122ada: 5a pop %edx <== NOT EXECUTED
122adb: 53 push %ebx <== NOT EXECUTED
122adc: 68 9a 8d 15 00 push $0x158d9a <== NOT EXECUTED
122ae1: e8 ce e1 01 00 call 140cb4 <printf> <== NOT EXECUTED
printf (" where:\n");
122ae6: c7 04 24 b7 8d 15 00 movl $0x158db7,(%esp) <== NOT EXECUTED
122aed: e8 d6 e3 01 00 call 140ec8 <puts> <== NOT EXECUTED
printf (" path: Path to the mounted RFS file system\n");
122af2: c7 04 24 c1 8d 15 00 movl $0x158dc1,(%esp) <== NOT EXECUTED
122af9: e8 ca e3 01 00 call 140ec8 <puts> <== NOT EXECUTED
printf (" command: A debugger command. See -l for a list plus help.\n");
122afe: c7 04 24 f3 8d 15 00 movl $0x158df3,(%esp) <== NOT EXECUTED
122b05: e8 be e3 01 00 call 140ec8 <puts> <== NOT EXECUTED
printf (" -h: This help\n");
122b0a: c7 04 24 32 8e 15 00 movl $0x158e32,(%esp) <== NOT EXECUTED
122b11: e8 b2 e3 01 00 call 140ec8 <puts> <== NOT EXECUTED
printf (" -l: The debugger command list.\n");
122b16: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
122b19: c7 45 08 4a 8e 15 00 movl $0x158e4a,0x8(%ebp) <== NOT EXECUTED
}
122b20: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
122b23: 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");
122b24: e9 9f e3 01 00 jmp 140ec8 <puts> <== NOT EXECUTED
001385de <rtems_rfs_symlink>:
const char* link,
int link_length,
uid_t uid,
gid_t gid,
rtems_rfs_ino parent)
{
1385de: 55 push %ebp <== NOT EXECUTED
1385df: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1385e1: 57 push %edi <== NOT EXECUTED
1385e2: 56 push %esi <== NOT EXECUTED
1385e3: 53 push %ebx <== NOT EXECUTED
1385e4: 81 ec ac 00 00 00 sub $0xac,%esp <== NOT EXECUTED
1385ea: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
1385ed: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
1385f0: 8b 45 1c mov 0x1c(%ebp),%eax <== NOT EXECUTED
1385f3: 66 89 85 56 ff ff ff mov %ax,-0xaa(%ebp) <== NOT EXECUTED
1385fa: 8b 45 20 mov 0x20(%ebp),%eax <== NOT EXECUTED
1385fd: 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))
138604: be 5b 00 00 00 mov $0x5b,%esi <== NOT EXECUTED
138609: 8b 45 18 mov 0x18(%ebp),%eax <== NOT EXECUTED
13860c: 3b 43 08 cmp 0x8(%ebx),%eax <== NOT EXECUTED
13860f: 0f 83 a5 01 00 00 jae 1387ba <rtems_rfs_symlink+0x1dc><== NOT EXECUTED
return ENAMETOOLONG;
rc = rtems_rfs_inode_create (fs, parent, name, strlen (name),
138615: 31 c0 xor %eax,%eax <== NOT EXECUTED
138617: 83 c9 ff or $0xffffffff,%ecx <== NOT EXECUTED
13861a: 89 d7 mov %edx,%edi <== NOT EXECUTED
13861c: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED
13861e: f7 d1 not %ecx <== NOT EXECUTED
138620: 49 dec %ecx <== NOT EXECUTED
138621: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
138624: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
138627: 50 push %eax <== NOT EXECUTED
138628: 0f b7 85 54 ff ff ff movzwl -0xac(%ebp),%eax <== NOT EXECUTED
13862f: 50 push %eax <== NOT EXECUTED
138630: 0f b7 85 56 ff ff ff movzwl -0xaa(%ebp),%eax <== NOT EXECUTED
138637: 50 push %eax <== NOT EXECUTED
138638: 6a 01 push $0x1 <== NOT EXECUTED
13863a: 68 ff a1 00 00 push $0xa1ff <== NOT EXECUTED
13863f: 51 push %ecx <== NOT EXECUTED
138640: 52 push %edx <== NOT EXECUTED
138641: ff 75 24 pushl 0x24(%ebp) <== NOT EXECUTED
138644: 53 push %ebx <== NOT EXECUTED
138645: e8 d6 fb ff ff call 138220 <rtems_rfs_inode_create><== NOT EXECUTED
13864a: 89 c6 mov %eax,%esi <== NOT EXECUTED
RTEMS_RFS_S_SYMLINK,
1, uid, gid, &ino);
if (rc > 0)
13864c: 83 c4 30 add $0x30,%esp <== NOT EXECUTED
13864f: 85 c0 test %eax,%eax <== NOT EXECUTED
138651: 0f 8f 63 01 00 00 jg 1387ba <rtems_rfs_symlink+0x1dc><== NOT EXECUTED
return rc;
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
138657: 6a 01 push $0x1 <== NOT EXECUTED
138659: 8d 45 ac lea -0x54(%ebp),%eax <== NOT EXECUTED
13865c: 50 push %eax <== NOT EXECUTED
13865d: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
138660: 53 push %ebx <== NOT EXECUTED
138661: e8 75 fa ff ff call 1380db <rtems_rfs_inode_open> <== NOT EXECUTED
138666: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
138668: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13866b: 85 c0 test %eax,%eax <== NOT EXECUTED
13866d: 0f 8f 47 01 00 00 jg 1387ba <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)
138673: 83 7d 18 13 cmpl $0x13,0x18(%ebp) <== NOT EXECUTED
138677: 77 42 ja 1386bb <rtems_rfs_symlink+0xdd><== NOT EXECUTED
{
memset (inode.node->data.name, 0, RTEMS_RFS_INODE_DATA_NAME_SIZE);
138679: 8b 55 b8 mov -0x48(%ebp),%edx <== NOT EXECUTED
13867c: 83 c2 1c add $0x1c,%edx <== NOT EXECUTED
13867f: b9 05 00 00 00 mov $0x5,%ecx <== NOT EXECUTED
138684: 31 c0 xor %eax,%eax <== NOT EXECUTED
138686: 89 d7 mov %edx,%edi <== NOT EXECUTED
138688: f3 ab rep stos %eax,%es:(%edi) <== NOT EXECUTED
memcpy (inode.node->data.name, link, link_length);
13868a: 8b 45 b8 mov -0x48(%ebp),%eax <== NOT EXECUTED
13868d: 83 c0 1c add $0x1c,%eax <== NOT EXECUTED
138690: 89 c7 mov %eax,%edi <== NOT EXECUTED
138692: 8b 75 14 mov 0x14(%ebp),%esi <== NOT EXECUTED
138695: 8b 4d 18 mov 0x18(%ebp),%ecx <== NOT EXECUTED
138698: 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);
13869a: 8b 45 b8 mov -0x48(%ebp),%eax <== NOT EXECUTED
13869d: c6 40 0c 00 movb $0x0,0xc(%eax) <== NOT EXECUTED
1386a1: 8b 45 b8 mov -0x48(%ebp),%eax <== NOT EXECUTED
1386a4: c6 40 0d 00 movb $0x0,0xd(%eax) <== NOT EXECUTED
1386a8: 8b 45 b8 mov -0x48(%ebp),%eax <== NOT EXECUTED
1386ab: c6 40 0e 00 movb $0x0,0xe(%eax) <== NOT EXECUTED
1386af: 8b 45 b8 mov -0x48(%ebp),%eax <== NOT EXECUTED
1386b2: c6 40 0f 00 movb $0x0,0xf(%eax) <== NOT EXECUTED
1386b6: e9 d5 00 00 00 jmp 138790 <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);
1386bb: 51 push %ecx <== NOT EXECUTED
1386bc: 8d 85 5c ff ff ff lea -0xa4(%ebp),%eax <== NOT EXECUTED
1386c2: 50 push %eax <== NOT EXECUTED
1386c3: 8d 45 ac lea -0x54(%ebp),%eax <== NOT EXECUTED
1386c6: 50 push %eax <== NOT EXECUTED
1386c7: 53 push %ebx <== NOT EXECUTED
1386c8: e8 9c c5 ff ff call 134c69 <rtems_rfs_block_map_open><== NOT EXECUTED
1386cd: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
1386cf: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1386d2: 85 c0 test %eax,%eax <== NOT EXECUTED
1386d4: 0f 8f a8 00 00 00 jg 138782 <rtems_rfs_symlink+0x1a4><== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
return rc;
}
rc = rtems_rfs_block_map_grow (fs, &map, 1, &block);
1386da: 8d 45 e0 lea -0x20(%ebp),%eax <== NOT EXECUTED
1386dd: 50 push %eax <== NOT EXECUTED
1386de: 6a 01 push $0x1 <== NOT EXECUTED
1386e0: 8d 85 5c ff ff ff lea -0xa4(%ebp),%eax <== NOT EXECUTED
1386e6: 50 push %eax <== NOT EXECUTED
1386e7: 53 push %ebx <== NOT EXECUTED
1386e8: e8 41 c1 ff ff call 13482e <rtems_rfs_block_map_grow><== NOT EXECUTED
1386ed: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
1386ef: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1386f2: 85 c0 test %eax,%eax <== NOT EXECUTED
1386f4: 7f 2a jg 138720 <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;
1386f6: c6 45 d4 00 movb $0x0,-0x2c(%ebp) <== NOT EXECUTED
handle->bnum = 0;
1386fa: c7 45 d8 00 00 00 00 movl $0x0,-0x28(%ebp) <== NOT EXECUTED
handle->buffer = NULL;
138701: 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);
138708: 6a 00 push $0x0 <== NOT EXECUTED
13870a: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
13870d: 8d 45 d4 lea -0x2c(%ebp),%eax <== NOT EXECUTED
138710: 50 push %eax <== NOT EXECUTED
138711: 53 push %ebx <== NOT EXECUTED
138712: e8 67 c9 ff ff call 13507e <rtems_rfs_buffer_handle_request><== NOT EXECUTED
138717: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
138719: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13871c: 85 c0 test %eax,%eax <== NOT EXECUTED
13871e: 7e 13 jle 138733 <rtems_rfs_symlink+0x155><== NOT EXECUTED
{
rtems_rfs_block_map_close (fs, &map);
138720: 52 push %edx <== NOT EXECUTED
138721: 52 push %edx <== NOT EXECUTED
138722: 8d 85 5c ff ff ff lea -0xa4(%ebp),%eax <== NOT EXECUTED
138728: 50 push %eax <== NOT EXECUTED
138729: 53 push %ebx <== NOT EXECUTED
13872a: e8 97 c3 ff ff call 134ac6 <rtems_rfs_block_map_close><== NOT EXECUTED
rtems_rfs_inode_close (fs, &inode);
13872f: 5f pop %edi <== NOT EXECUTED
138730: 58 pop %eax <== NOT EXECUTED
138731: eb 51 jmp 138784 <rtems_rfs_symlink+0x1a6><== NOT EXECUTED
return rc;
}
data = rtems_rfs_buffer_data (&buffer);
138733: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED
138736: 8b 50 20 mov 0x20(%eax),%edx <== NOT EXECUTED
memset (data, 0xff, rtems_rfs_fs_block_size (fs));
138739: 8b 4b 08 mov 0x8(%ebx),%ecx <== NOT EXECUTED
13873c: b0 ff mov $0xff,%al <== NOT EXECUTED
13873e: 89 d7 mov %edx,%edi <== NOT EXECUTED
138740: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED
memcpy (data, link, link_length);
138742: 89 d7 mov %edx,%edi <== NOT EXECUTED
138744: 8b 75 14 mov 0x14(%ebp),%esi <== NOT EXECUTED
138747: 8b 4d 18 mov 0x18(%ebp),%ecx <== NOT EXECUTED
13874a: 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);
13874c: 51 push %ecx <== NOT EXECUTED
13874d: 51 push %ecx <== NOT EXECUTED
13874e: 8d 45 d4 lea -0x2c(%ebp),%eax <== NOT EXECUTED
138751: 50 push %eax <== NOT EXECUTED
138752: 53 push %ebx <== NOT EXECUTED
138753: e8 2f c8 ff ff call 134f87 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
handle->dirty = false;
138758: c6 45 d4 00 movb $0x0,-0x2c(%ebp) <== NOT EXECUTED
handle->bnum = 0;
13875c: c7 45 d8 00 00 00 00 movl $0x0,-0x28(%ebp) <== NOT EXECUTED
handle->buffer = NULL;
138763: 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);
13876a: 58 pop %eax <== NOT EXECUTED
13876b: 5a pop %edx <== NOT EXECUTED
13876c: 8d 85 5c ff ff ff lea -0xa4(%ebp),%eax <== NOT EXECUTED
138772: 50 push %eax <== NOT EXECUTED
138773: 53 push %ebx <== NOT EXECUTED
138774: e8 4d c3 ff ff call 134ac6 <rtems_rfs_block_map_close><== NOT EXECUTED
138779: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
13877b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13877e: 85 c0 test %eax,%eax <== NOT EXECUTED
138780: 7e 0e jle 138790 <rtems_rfs_symlink+0x1b2><== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
138782: 57 push %edi <== NOT EXECUTED
138783: 57 push %edi <== NOT EXECUTED
138784: 8d 45 ac lea -0x54(%ebp),%eax <== NOT EXECUTED
138787: 50 push %eax <== NOT EXECUTED
138788: 53 push %ebx <== NOT EXECUTED
138789: e8 de f8 ff ff call 13806c <rtems_rfs_inode_close> <== NOT EXECUTED
13878e: eb 27 jmp 1387b7 <rtems_rfs_symlink+0x1d9><== NOT EXECUTED
return rc;
}
}
rtems_rfs_inode_set_block_offset (&inode, link_length);
138790: 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);
138793: 89 c1 mov %eax,%ecx <== NOT EXECUTED
138795: 66 c1 e9 08 shr $0x8,%cx <== NOT EXECUTED
138799: 8b 55 b8 mov -0x48(%ebp),%edx <== NOT EXECUTED
13879c: 88 4a 0a mov %cl,0xa(%edx) <== NOT EXECUTED
13879f: 8b 55 b8 mov -0x48(%ebp),%edx <== NOT EXECUTED
1387a2: 88 42 0b mov %al,0xb(%edx) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
1387a5: c6 45 bc 01 movb $0x1,-0x44(%ebp) <== NOT EXECUTED
rc = rtems_rfs_inode_close (fs, &inode);
1387a9: 51 push %ecx <== NOT EXECUTED
1387aa: 51 push %ecx <== NOT EXECUTED
1387ab: 8d 45 ac lea -0x54(%ebp),%eax <== NOT EXECUTED
1387ae: 50 push %eax <== NOT EXECUTED
1387af: 53 push %ebx <== NOT EXECUTED
1387b0: e8 b7 f8 ff ff call 13806c <rtems_rfs_inode_close> <== NOT EXECUTED
1387b5: 89 c6 mov %eax,%esi <== NOT EXECUTED
return rc;
1387b7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
1387ba: 89 f0 mov %esi,%eax <== NOT EXECUTED
1387bc: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1387bf: 5b pop %ebx <== NOT EXECUTED
1387c0: 5e pop %esi <== NOT EXECUTED
1387c1: 5f pop %edi <== NOT EXECUTED
1387c2: c9 leave <== NOT EXECUTED
1387c3: c3 ret <== NOT EXECUTED
00138440 <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)
{
138440: 55 push %ebp <== NOT EXECUTED
138441: 89 e5 mov %esp,%ebp <== NOT EXECUTED
138443: 57 push %edi <== NOT EXECUTED
138444: 56 push %esi <== NOT EXECUTED
138445: 53 push %ebx <== NOT EXECUTED
138446: 81 ec ac 00 00 00 sub $0xac,%esp <== NOT EXECUTED
13844c: 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);
13844f: 6a 01 push $0x1 <== NOT EXECUTED
138451: 8d 7d b0 lea -0x50(%ebp),%edi <== NOT EXECUTED
138454: 57 push %edi <== NOT EXECUTED
138455: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
138458: 53 push %ebx <== NOT EXECUTED
138459: e8 7d fc ff ff call 1380db <rtems_rfs_inode_open> <== NOT EXECUTED
13845e: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc)
138460: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
138463: 85 c0 test %eax,%eax <== NOT EXECUTED
138465: 0f 85 69 01 00 00 jne 1385d4 <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);
13846b: 8b 75 bc mov -0x44(%ebp),%esi <== NOT EXECUTED
return rc;
if (!RTEMS_RFS_S_ISLNK (rtems_rfs_inode_get_mode (&inode)))
13846e: 0f b6 46 02 movzbl 0x2(%esi),%eax <== NOT EXECUTED
138472: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
138475: 25 00 f0 00 00 and $0xf000,%eax <== NOT EXECUTED
13847a: 3d 00 a0 00 00 cmp $0xa000,%eax <== NOT EXECUTED
13847f: 75 1a jne 13849b <rtems_rfs_symlink_read+0x5b><== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
return EINVAL;
}
*length = rtems_rfs_inode_get_block_offset (&inode);
138481: 0f b6 46 0a movzbl 0xa(%esi),%eax <== NOT EXECUTED
138485: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
138488: 0f b6 4e 0b movzbl 0xb(%esi),%ecx <== NOT EXECUTED
13848c: 09 c1 or %eax,%ecx <== NOT EXECUTED
13848e: 0f b7 c9 movzwl %cx,%ecx <== NOT EXECUTED
138491: 8b 45 18 mov 0x18(%ebp),%eax <== NOT EXECUTED
138494: 89 08 mov %ecx,(%eax) <== NOT EXECUTED
if (size < *length)
138496: 39 4d 14 cmp %ecx,0x14(%ebp) <== NOT EXECUTED
138499: 73 13 jae 1384ae <rtems_rfs_symlink_read+0x6e><== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
13849b: 52 push %edx <== NOT EXECUTED
13849c: 52 push %edx <== NOT EXECUTED
13849d: 57 push %edi <== NOT EXECUTED
13849e: 53 push %ebx <== NOT EXECUTED
13849f: e8 c8 fb ff ff call 13806c <rtems_rfs_inode_close> <== NOT EXECUTED
1384a4: be 16 00 00 00 mov $0x16,%esi <== NOT EXECUTED
1384a9: e9 23 01 00 00 jmp 1385d1 <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);
1384ae: 8d 46 0c lea 0xc(%esi),%eax <== NOT EXECUTED
return EINVAL;
}
if (rtems_rfs_inode_get_block_count (&inode) == 0)
1384b1: 80 78 03 00 cmpb $0x0,0x3(%eax) <== NOT EXECUTED
1384b5: 75 1f jne 1384d6 <rtems_rfs_symlink_read+0x96><== NOT EXECUTED
1384b7: 80 7e 0c 00 cmpb $0x0,0xc(%esi) <== NOT EXECUTED
1384bb: 75 19 jne 1384d6 <rtems_rfs_symlink_read+0x96><== NOT EXECUTED
1384bd: 80 78 01 00 cmpb $0x0,0x1(%eax) <== NOT EXECUTED
1384c1: 75 13 jne 1384d6 <rtems_rfs_symlink_read+0x96><== NOT EXECUTED
1384c3: 80 78 02 00 cmpb $0x0,0x2(%eax) <== NOT EXECUTED
1384c7: 75 0d jne 1384d6 <rtems_rfs_symlink_read+0x96><== NOT EXECUTED
{
memcpy (path, inode.node->data.name, *length);
1384c9: 83 c6 1c add $0x1c,%esi <== NOT EXECUTED
1384cc: 8b 7d 10 mov 0x10(%ebp),%edi <== NOT EXECUTED
1384cf: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
1384d1: e9 e1 00 00 00 jmp 1385b7 <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);
1384d6: 50 push %eax <== NOT EXECUTED
1384d7: 8d 95 60 ff ff ff lea -0xa0(%ebp),%edx <== NOT EXECUTED
1384dd: 52 push %edx <== NOT EXECUTED
1384de: 8d 45 b0 lea -0x50(%ebp),%eax <== NOT EXECUTED
1384e1: 50 push %eax <== NOT EXECUTED
1384e2: 53 push %ebx <== NOT EXECUTED
1384e3: e8 81 c7 ff ff call 134c69 <rtems_rfs_block_map_open><== NOT EXECUTED
1384e8: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
1384ea: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1384ed: 85 c0 test %eax,%eax <== NOT EXECUTED
1384ef: 7e 0b jle 1384fc <rtems_rfs_symlink_read+0xbc><== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
1384f1: 57 push %edi <== NOT EXECUTED
1384f2: 57 push %edi <== NOT EXECUTED
1384f3: 8d 55 b0 lea -0x50(%ebp),%edx <== NOT EXECUTED
1384f6: 52 push %edx <== NOT EXECUTED
1384f7: e9 b3 00 00 00 jmp 1385af <rtems_rfs_symlink_read+0x16f><== NOT EXECUTED
return rc;
}
rc = rtems_rfs_block_map_seek (fs, &map, 0, &block);
1384fc: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1384ff: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
138502: 50 push %eax <== NOT EXECUTED
138503: 6a 00 push $0x0 <== NOT EXECUTED
138505: 6a 00 push $0x0 <== NOT EXECUTED
138507: 8d 85 60 ff ff ff lea -0xa0(%ebp),%eax <== NOT EXECUTED
13850d: 50 push %eax <== NOT EXECUTED
13850e: 53 push %ebx <== NOT EXECUTED
13850f: e8 b0 be ff ff call 1343c4 <rtems_rfs_block_map_seek><== NOT EXECUTED
138514: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
138516: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
138519: 85 c0 test %eax,%eax <== NOT EXECUTED
13851b: 7f 36 jg 138553 <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;
13851d: c6 45 d8 00 movb $0x0,-0x28(%ebp) <== NOT EXECUTED
handle->bnum = 0;
138521: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp) <== NOT EXECUTED
handle->buffer = NULL;
138528: 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);
13852f: 6a 00 push $0x0 <== NOT EXECUTED
138531: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
138534: 8d 55 d8 lea -0x28(%ebp),%edx <== NOT EXECUTED
138537: 52 push %edx <== NOT EXECUTED
138538: 53 push %ebx <== NOT EXECUTED
138539: 89 95 54 ff ff ff mov %edx,-0xac(%ebp) <== NOT EXECUTED
13853f: e8 3a cb ff ff call 13507e <rtems_rfs_buffer_handle_request><== NOT EXECUTED
138544: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
138546: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
138549: 85 c0 test %eax,%eax <== NOT EXECUTED
13854b: 8b 95 54 ff ff ff mov -0xac(%ebp),%edx <== NOT EXECUTED
138551: 7e 13 jle 138566 <rtems_rfs_symlink_read+0x126><== NOT EXECUTED
{
rtems_rfs_block_map_close (fs, &map);
138553: 51 push %ecx <== NOT EXECUTED
138554: 51 push %ecx <== NOT EXECUTED
138555: 8d 95 60 ff ff ff lea -0xa0(%ebp),%edx <== NOT EXECUTED
13855b: 52 push %edx <== NOT EXECUTED
13855c: 53 push %ebx <== NOT EXECUTED
13855d: e8 64 c5 ff ff call 134ac6 <rtems_rfs_block_map_close><== NOT EXECUTED
rtems_rfs_inode_close (fs, &inode);
138562: 58 pop %eax <== NOT EXECUTED
138563: 5a pop %edx <== NOT EXECUTED
138564: eb 45 jmp 1385ab <rtems_rfs_symlink_read+0x16b><== NOT EXECUTED
return rc;
}
data = rtems_rfs_buffer_data (&buffer);
memcpy (path, data, *length);
138566: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
138569: 8b 70 20 mov 0x20(%eax),%esi <== NOT EXECUTED
13856c: 8b 45 18 mov 0x18(%ebp),%eax <== NOT EXECUTED
13856f: 8b 08 mov (%eax),%ecx <== NOT EXECUTED
138571: 8b 7d 10 mov 0x10(%ebp),%edi <== NOT EXECUTED
138574: 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);
138576: 57 push %edi <== NOT EXECUTED
138577: 57 push %edi <== NOT EXECUTED
138578: 52 push %edx <== NOT EXECUTED
138579: 53 push %ebx <== NOT EXECUTED
13857a: e8 08 ca ff ff call 134f87 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
handle->dirty = false;
13857f: c6 45 d8 00 movb $0x0,-0x28(%ebp) <== NOT EXECUTED
handle->bnum = 0;
138583: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp) <== NOT EXECUTED
handle->buffer = NULL;
13858a: 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);
138591: 59 pop %ecx <== NOT EXECUTED
138592: 5e pop %esi <== NOT EXECUTED
138593: 8d 95 60 ff ff ff lea -0xa0(%ebp),%edx <== NOT EXECUTED
138599: 52 push %edx <== NOT EXECUTED
13859a: 53 push %ebx <== NOT EXECUTED
13859b: e8 26 c5 ff ff call 134ac6 <rtems_rfs_block_map_close><== NOT EXECUTED
1385a0: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
1385a2: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1385a5: 85 c0 test %eax,%eax <== NOT EXECUTED
1385a7: 7e 0e jle 1385b7 <rtems_rfs_symlink_read+0x177><== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
1385a9: 52 push %edx <== NOT EXECUTED
1385aa: 52 push %edx <== NOT EXECUTED
1385ab: 8d 45 b0 lea -0x50(%ebp),%eax <== NOT EXECUTED
1385ae: 50 push %eax <== NOT EXECUTED
1385af: 53 push %ebx <== NOT EXECUTED
1385b0: e8 b7 fa ff ff call 13806c <rtems_rfs_inode_close> <== NOT EXECUTED
1385b5: eb 1a jmp 1385d1 <rtems_rfs_symlink_read+0x191><== NOT EXECUTED
return rc;
}
}
path[*length] = '\0';
1385b7: 8b 55 18 mov 0x18(%ebp),%edx <== NOT EXECUTED
1385ba: 8b 02 mov (%edx),%eax <== NOT EXECUTED
1385bc: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
1385bf: c6 04 02 00 movb $0x0,(%edx,%eax,1) <== NOT EXECUTED
rc = rtems_rfs_inode_close (fs, &inode);
1385c3: 50 push %eax <== NOT EXECUTED
1385c4: 50 push %eax <== NOT EXECUTED
1385c5: 8d 45 b0 lea -0x50(%ebp),%eax <== NOT EXECUTED
1385c8: 50 push %eax <== NOT EXECUTED
1385c9: 53 push %ebx <== NOT EXECUTED
1385ca: e8 9d fa ff ff call 13806c <rtems_rfs_inode_close> <== NOT EXECUTED
1385cf: 89 c6 mov %eax,%esi <== NOT EXECUTED
return rc;
1385d1: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
1385d4: 89 f0 mov %esi,%eax <== NOT EXECUTED
1385d6: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1385d9: 5b pop %ebx <== NOT EXECUTED
1385da: 5e pop %esi <== NOT EXECUTED
1385db: 5f pop %edi <== NOT EXECUTED
1385dc: c9 leave <== NOT EXECUTED
1385dd: c3 ret <== NOT EXECUTED
001387c4 <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)
{
1387c4: 55 push %ebp <== NOT EXECUTED
1387c5: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1387c7: 57 push %edi <== NOT EXECUTED
1387c8: 56 push %esi <== NOT EXECUTED
1387c9: 53 push %ebx <== NOT EXECUTED
1387ca: 83 ec 6c sub $0x6c,%esp <== NOT EXECUTED
1387cd: 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);
1387d0: 6a 01 push $0x1 <== NOT EXECUTED
1387d2: 8d 7d 98 lea -0x68(%ebp),%edi <== NOT EXECUTED
1387d5: 57 push %edi <== NOT EXECUTED
1387d6: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
1387d9: 53 push %ebx <== NOT EXECUTED
1387da: e8 fc f8 ff ff call 1380db <rtems_rfs_inode_open> <== NOT EXECUTED
1387df: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc)
1387e1: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1387e4: 85 c0 test %eax,%eax <== NOT EXECUTED
1387e6: 0f 85 71 01 00 00 jne 13895d <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));
1387ec: 8b 45 a4 mov -0x5c(%ebp),%eax <== NOT EXECUTED
1387ef: 0f b6 40 02 movzbl 0x2(%eax),%eax <== NOT EXECUTED
1387f3: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
1387f6: 25 00 f0 00 00 and $0xf000,%eax <== NOT EXECUTED
1387fb: 3d 00 40 00 00 cmp $0x4000,%eax <== NOT EXECUTED
if (dir)
138800: 0f 94 45 97 sete -0x69(%ebp) <== NOT EXECUTED
138804: 75 3a jne 138840 <rtems_rfs_unlink+0x7c> <== NOT EXECUTED
{
switch (dir_mode)
138806: 83 7d 18 00 cmpl $0x0,0x18(%ebp) <== NOT EXECUTED
13880a: 74 08 je 138814 <rtems_rfs_unlink+0x50> <== NOT EXECUTED
13880c: 83 7d 18 01 cmpl $0x1,0x18(%ebp) <== NOT EXECUTED
138810: 75 2e jne 138840 <rtems_rfs_unlink+0x7c> <== NOT EXECUTED
138812: eb 13 jmp 138827 <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);
138814: 51 push %ecx <== NOT EXECUTED
138815: 51 push %ecx <== NOT EXECUTED
138816: 57 push %edi <== NOT EXECUTED
138817: 53 push %ebx <== NOT EXECUTED
138818: e8 4f f8 ff ff call 13806c <rtems_rfs_inode_close> <== NOT EXECUTED
13881d: be 15 00 00 00 mov $0x15,%esi <== NOT EXECUTED
138822: e9 33 01 00 00 jmp 13895a <rtems_rfs_unlink+0x196><== NOT EXECUTED
return EISDIR;
case rtems_rfs_unlink_dir_if_empty:
rc = rtems_rfs_dir_empty (fs, &target_inode);
138827: 52 push %edx <== NOT EXECUTED
138828: 52 push %edx <== NOT EXECUTED
138829: 57 push %edi <== NOT EXECUTED
13882a: 53 push %ebx <== NOT EXECUTED
13882b: e8 14 ca ff ff call 135244 <rtems_rfs_dir_empty> <== NOT EXECUTED
138830: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
138832: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
138835: 85 c0 test %eax,%eax <== NOT EXECUTED
138837: 7e 07 jle 138840 <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);
138839: 50 push %eax <== NOT EXECUTED
13883a: 50 push %eax <== NOT EXECUTED
13883b: e9 8c 00 00 00 jmp 1388cc <rtems_rfs_unlink+0x108><== NOT EXECUTED
default:
break;
}
}
rc = rtems_rfs_inode_open (fs, parent, &parent_inode, true);
138840: 6a 01 push $0x1 <== NOT EXECUTED
138842: 8d 7d c0 lea -0x40(%ebp),%edi <== NOT EXECUTED
138845: 57 push %edi <== NOT EXECUTED
138846: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
138849: 53 push %ebx <== NOT EXECUTED
13884a: e8 8c f8 ff ff call 1380db <rtems_rfs_inode_open> <== NOT EXECUTED
13884f: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc)
138851: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
138854: 85 c0 test %eax,%eax <== NOT EXECUTED
138856: 74 07 je 13885f <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);
138858: 57 push %edi <== NOT EXECUTED
138859: 57 push %edi <== NOT EXECUTED
13885a: e9 cb 00 00 00 jmp 13892a <rtems_rfs_unlink+0x166><== NOT EXECUTED
return rc;
}
rc = rtems_rfs_dir_del_entry (fs, &parent_inode, target, doff);
13885f: ff 75 14 pushl 0x14(%ebp) <== NOT EXECUTED
138862: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
138865: 57 push %edi <== NOT EXECUTED
138866: 53 push %ebx <== NOT EXECUTED
138867: e8 01 ce ff ff call 13566d <rtems_rfs_dir_del_entry><== NOT EXECUTED
13886c: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
13886e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
138871: 85 c0 test %eax,%eax <== NOT EXECUTED
138873: 0f 8f a6 00 00 00 jg 13891f <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);
138879: 8b 55 a4 mov -0x5c(%ebp),%edx <== NOT EXECUTED
13887c: 0f b6 0a movzbl (%edx),%ecx <== NOT EXECUTED
13887f: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
138882: 0f b6 42 01 movzbl 0x1(%edx),%eax <== NOT EXECUTED
138886: 09 c8 or %ecx,%eax <== NOT EXECUTED
if (links == 0xffff)
138888: 66 83 f8 ff cmp $0xffffffff,%ax <== NOT EXECUTED
13888c: 74 1b je 1388a9 <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)
13888e: 66 83 f8 01 cmp $0x1,%ax <== NOT EXECUTED
138892: 76 15 jbe 1388a9 <rtems_rfs_unlink+0xe5> <== NOT EXECUTED
{
links--;
138894: 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);
138895: 89 c1 mov %eax,%ecx <== NOT EXECUTED
138897: 66 c1 e9 08 shr $0x8,%cx <== NOT EXECUTED
13889b: 88 0a mov %cl,(%edx) <== NOT EXECUTED
13889d: 8b 55 a4 mov -0x5c(%ebp),%edx <== NOT EXECUTED
1388a0: 88 42 01 mov %al,0x1(%edx) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
1388a3: c6 45 a8 01 movb $0x1,-0x58(%ebp) <== NOT EXECUTED
1388a7: eb 5f jmp 138908 <rtems_rfs_unlink+0x144><== NOT EXECUTED
else
{
/*
* Erasing the inode releases all blocks attached to it.
*/
rc = rtems_rfs_inode_delete (fs, &target_inode);
1388a9: 51 push %ecx <== NOT EXECUTED
1388aa: 51 push %ecx <== NOT EXECUTED
1388ab: 8d 7d 98 lea -0x68(%ebp),%edi <== NOT EXECUTED
1388ae: 57 push %edi <== NOT EXECUTED
1388af: 53 push %ebx <== NOT EXECUTED
1388b0: e8 c4 f8 ff ff call 138179 <rtems_rfs_inode_delete><== NOT EXECUTED
1388b5: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
1388b7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1388ba: 85 c0 test %eax,%eax <== NOT EXECUTED
1388bc: 7e 11 jle 1388cf <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);
1388be: 52 push %edx <== NOT EXECUTED
1388bf: 52 push %edx <== NOT EXECUTED
1388c0: 8d 45 c0 lea -0x40(%ebp),%eax <== NOT EXECUTED
1388c3: 50 push %eax <== NOT EXECUTED
1388c4: 53 push %ebx <== NOT EXECUTED
1388c5: e8 a2 f7 ff ff call 13806c <rtems_rfs_inode_close> <== NOT EXECUTED
rtems_rfs_inode_close (fs, &target_inode);
1388ca: 59 pop %ecx <== NOT EXECUTED
1388cb: 58 pop %eax <== NOT EXECUTED
1388cc: 57 push %edi <== NOT EXECUTED
1388cd: eb 78 jmp 138947 <rtems_rfs_unlink+0x183><== NOT EXECUTED
return rc;
}
if (dir)
1388cf: 80 7d 97 00 cmpb $0x0,-0x69(%ebp) <== NOT EXECUTED
1388d3: 74 33 je 138908 <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);
1388d5: 8b 55 cc mov -0x34(%ebp),%edx <== NOT EXECUTED
1388d8: 0f b6 0a movzbl (%edx),%ecx <== NOT EXECUTED
1388db: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
1388de: 0f b6 42 01 movzbl 0x1(%edx),%eax <== NOT EXECUTED
1388e2: 09 c8 or %ecx,%eax <== NOT EXECUTED
if (links == 0xffff)
1388e4: 66 83 f8 ff cmp $0xffffffff,%ax <== NOT EXECUTED
1388e8: 75 04 jne 1388ee <rtems_rfs_unlink+0x12a><== NOT EXECUTED
1388ea: 31 c0 xor %eax,%eax <== NOT EXECUTED
1388ec: eb 08 jmp 1388f6 <rtems_rfs_unlink+0x132><== NOT EXECUTED
{
links = rtems_rfs_inode_get_links (&parent_inode);
if (links > 1)
links--;
1388ee: 66 83 f8 02 cmp $0x2,%ax <== NOT EXECUTED
1388f2: 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);
1388f6: 89 c1 mov %eax,%ecx <== NOT EXECUTED
1388f8: 66 c1 e9 08 shr $0x8,%cx <== NOT EXECUTED
1388fc: 88 0a mov %cl,(%edx) <== NOT EXECUTED
1388fe: 8b 55 cc mov -0x34(%ebp),%edx <== NOT EXECUTED
138901: 88 42 01 mov %al,0x1(%edx) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
138904: 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);
138908: 52 push %edx <== NOT EXECUTED
138909: 6a 01 push $0x1 <== NOT EXECUTED
13890b: 6a 01 push $0x1 <== NOT EXECUTED
13890d: 8d 7d c0 lea -0x40(%ebp),%edi <== NOT EXECUTED
138910: 57 push %edi <== NOT EXECUTED
138911: e8 e4 f4 ff ff call 137dfa <rtems_rfs_inode_time_stamp_now><== NOT EXECUTED
138916: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
138918: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13891b: 85 c0 test %eax,%eax <== NOT EXECUTED
13891d: 7e 10 jle 13892f <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);
13891f: 50 push %eax <== NOT EXECUTED
138920: 50 push %eax <== NOT EXECUTED
138921: 57 push %edi <== NOT EXECUTED
138922: 53 push %ebx <== NOT EXECUTED
138923: e8 44 f7 ff ff call 13806c <rtems_rfs_inode_close> <== NOT EXECUTED
rtems_rfs_inode_close (fs, &target_inode);
138928: 5a pop %edx <== NOT EXECUTED
138929: 59 pop %ecx <== NOT EXECUTED
13892a: 8d 45 98 lea -0x68(%ebp),%eax <== NOT EXECUTED
13892d: eb 17 jmp 138946 <rtems_rfs_unlink+0x182><== NOT EXECUTED
return rc;
}
rc = rtems_rfs_inode_close (fs, &parent_inode);
13892f: 50 push %eax <== NOT EXECUTED
138930: 50 push %eax <== NOT EXECUTED
138931: 57 push %edi <== NOT EXECUTED
138932: 53 push %ebx <== NOT EXECUTED
138933: e8 34 f7 ff ff call 13806c <rtems_rfs_inode_close> <== NOT EXECUTED
138938: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
13893a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13893d: 85 c0 test %eax,%eax <== NOT EXECUTED
13893f: 8d 45 98 lea -0x68(%ebp),%eax <== NOT EXECUTED
138942: 7e 0b jle 13894f <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);
138944: 57 push %edi <== NOT EXECUTED
138945: 57 push %edi <== NOT EXECUTED
138946: 50 push %eax <== NOT EXECUTED
138947: 53 push %ebx <== NOT EXECUTED
138948: e8 1f f7 ff ff call 13806c <rtems_rfs_inode_close> <== NOT EXECUTED
13894d: eb 0b jmp 13895a <rtems_rfs_unlink+0x196><== NOT EXECUTED
return rc;
}
rc = rtems_rfs_inode_close (fs, &target_inode);
13894f: 56 push %esi <== NOT EXECUTED
138950: 56 push %esi <== NOT EXECUTED
138951: 50 push %eax <== NOT EXECUTED
138952: 53 push %ebx <== NOT EXECUTED
138953: e8 14 f7 ff ff call 13806c <rtems_rfs_inode_close> <== NOT EXECUTED
138958: 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;
13895a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
13895d: 89 f0 mov %esi,%eax <== NOT EXECUTED
13895f: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
138962: 5b pop %ebx <== NOT EXECUTED
138963: 5e pop %esi <== NOT EXECUTED
138964: 5f pop %edi <== NOT EXECUTED
138965: c9 leave <== NOT EXECUTED
138966: c3 ret <== NOT EXECUTED
0012376b <rtems_shell_debugrfs>:
printf (" -l: The debugger command list.\n");
}
int
rtems_shell_debugrfs (int argc, char *argv[])
{
12376b: 55 push %ebp <== NOT EXECUTED
12376c: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12376e: 57 push %edi <== NOT EXECUTED
12376f: 56 push %esi <== NOT EXECUTED
123770: 53 push %ebx <== NOT EXECUTED
123771: 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>" }
};
123777: 8d bd 60 ff ff ff lea -0xa0(%ebp),%edi <== NOT EXECUTED
12377d: be 64 96 15 00 mov $0x159664,%esi <== NOT EXECUTED
123782: b9 0f 00 00 00 mov $0xf,%ecx <== NOT EXECUTED
123787: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED
int arg;
int t;
for (arg = 1; arg < argc; arg++)
123789: 83 7d 08 01 cmpl $0x1,0x8(%ebp) <== NOT EXECUTED
12378d: 0f 8e c8 00 00 00 jle 12385b <rtems_shell_debugrfs+0xf0><== NOT EXECUTED
{
if (argv[arg][0] != '-')
123793: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
123796: 8b 58 04 mov 0x4(%eax),%ebx <== NOT EXECUTED
123799: 80 3b 2d cmpb $0x2d,(%ebx) <== NOT EXECUTED
12379c: 0f 85 b3 00 00 00 jne 123855 <rtems_shell_debugrfs+0xea><== NOT EXECUTED
break;
switch (argv[arg][1])
1237a2: 8a 43 01 mov 0x1(%ebx),%al <== NOT EXECUTED
1237a5: 3c 68 cmp $0x68,%al <== NOT EXECUTED
1237a7: 74 0a je 1237b3 <rtems_shell_debugrfs+0x48><== NOT EXECUTED
1237a9: 3c 6c cmp $0x6c,%al <== NOT EXECUTED
1237ab: 0f 85 97 00 00 00 jne 123848 <rtems_shell_debugrfs+0xdd><== NOT EXECUTED
1237b1: eb 0f jmp 1237c2 <rtems_shell_debugrfs+0x57><== NOT EXECUTED
{
case 'h':
rtems_rfs_shell_usage (argv[0]);
1237b3: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1237b6: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
1237b9: ff 30 pushl (%eax) <== NOT EXECUTED
1237bb: e8 04 f3 ff ff call 122ac4 <rtems_rfs_shell_usage> <== NOT EXECUTED
1237c0: eb 7f jmp 123841 <rtems_shell_debugrfs+0xd6><== NOT EXECUTED
return 0;
case 'l':
printf ("%s: commands are:\n", argv[0]);
1237c2: 57 push %edi <== NOT EXECUTED
1237c3: 57 push %edi <== NOT EXECUTED
1237c4: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
1237c7: ff 30 pushl (%eax) <== NOT EXECUTED
1237c9: 68 56 94 15 00 push $0x159456 <== NOT EXECUTED
1237ce: e8 e1 d4 01 00 call 140cb4 <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);
1237d3: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
1237d6: ff b5 68 ff ff ff pushl -0x98(%ebp) <== NOT EXECUTED
1237dc: ff b5 60 ff ff ff pushl -0xa0(%ebp) <== NOT EXECUTED
1237e2: 68 69 94 15 00 push $0x159469 <== NOT EXECUTED
1237e7: e8 c8 d4 01 00 call 140cb4 <printf> <== NOT EXECUTED
1237ec: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
1237ef: ff b5 74 ff ff ff pushl -0x8c(%ebp) <== NOT EXECUTED
1237f5: ff b5 6c ff ff ff pushl -0x94(%ebp) <== NOT EXECUTED
1237fb: 68 69 94 15 00 push $0x159469 <== NOT EXECUTED
123800: e8 af d4 01 00 call 140cb4 <printf> <== NOT EXECUTED
123805: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
123808: ff 75 80 pushl -0x80(%ebp) <== NOT EXECUTED
12380b: ff b5 78 ff ff ff pushl -0x88(%ebp) <== NOT EXECUTED
123811: 68 69 94 15 00 push $0x159469 <== NOT EXECUTED
123816: e8 99 d4 01 00 call 140cb4 <printf> <== NOT EXECUTED
12381b: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
12381e: ff 75 8c pushl -0x74(%ebp) <== NOT EXECUTED
123821: ff 75 84 pushl -0x7c(%ebp) <== NOT EXECUTED
123824: 68 69 94 15 00 push $0x159469 <== NOT EXECUTED
123829: e8 86 d4 01 00 call 140cb4 <printf> <== NOT EXECUTED
12382e: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
123831: ff 75 98 pushl -0x68(%ebp) <== NOT EXECUTED
123834: ff 75 90 pushl -0x70(%ebp) <== NOT EXECUTED
123837: 68 69 94 15 00 push $0x159469 <== NOT EXECUTED
12383c: e8 73 d4 01 00 call 140cb4 <printf> <== NOT EXECUTED
123841: 31 c0 xor %eax,%eax <== NOT EXECUTED
123843: e9 2e 01 00 00 jmp 123976 <rtems_shell_debugrfs+0x20b><== NOT EXECUTED
return 0;
default:
printf ("error: unknown option: %s\n", argv[arg]);
123848: 56 push %esi <== NOT EXECUTED
123849: 56 push %esi <== NOT EXECUTED
12384a: 53 push %ebx <== NOT EXECUTED
12384b: 68 73 94 15 00 push $0x159473 <== NOT EXECUTED
123850: e9 17 01 00 00 jmp 12396c <rtems_shell_debugrfs+0x201><== NOT EXECUTED
return 1;
}
}
if ((argc - arg) < 2)
123855: 83 7d 08 02 cmpl $0x2,0x8(%ebp) <== NOT EXECUTED
123859: 75 11 jne 12386c <rtems_shell_debugrfs+0x101><== NOT EXECUTED
printf ("error: you need at least a path and command, try %s -h\n", argv[0]);
12385b: 53 push %ebx <== NOT EXECUTED
12385c: 53 push %ebx <== NOT EXECUTED
12385d: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
123860: ff 30 pushl (%eax) <== NOT EXECUTED
123862: 68 8e 94 15 00 push $0x15948e <== NOT EXECUTED
123867: e9 00 01 00 00 jmp 12396c <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);
12386c: 51 push %ecx <== NOT EXECUTED
12386d: 51 push %ecx <== NOT EXECUTED
12386e: 8d 45 9c lea -0x64(%ebp),%eax <== NOT EXECUTED
123871: 50 push %eax <== NOT EXECUTED
123872: 53 push %ebx <== NOT EXECUTED
123873: e8 f8 59 00 00 call 129270 <statvfs> <== NOT EXECUTED
if (rc < 0)
123878: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12387b: 85 c0 test %eax,%eax <== NOT EXECUTED
12387d: 79 31 jns 1238b0 <rtems_shell_debugrfs+0x145><== NOT EXECUTED
{
printf ("error: cannot statvfs path: %s: (%d) %s\n",
12387f: e8 14 95 01 00 call 13cd98 <__errno> <== NOT EXECUTED
123884: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
123887: ff 30 pushl (%eax) <== NOT EXECUTED
123889: e8 6e ee 01 00 call 1426fc <strerror> <== NOT EXECUTED
12388e: 89 c6 mov %eax,%esi <== NOT EXECUTED
123890: e8 03 95 01 00 call 13cd98 <__errno> <== NOT EXECUTED
123895: 56 push %esi <== NOT EXECUTED
123896: ff 30 pushl (%eax) <== NOT EXECUTED
123898: 53 push %ebx <== NOT EXECUTED
123899: 68 c6 94 15 00 push $0x1594c6 <== NOT EXECUTED
12389e: e8 11 d4 01 00 call 140cb4 <printf> <== NOT EXECUTED
1238a3: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
1238a8: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
1238ab: e9 c9 00 00 00 jmp 123979 <rtems_shell_debugrfs+0x20e><== NOT EXECUTED
path, errno, strerror (errno));
return -1;
}
if (sb.f_fsid != RTEMS_RFS_SB_MAGIC)
1238b0: 81 7d c8 01 20 09 28 cmpl $0x28092001,-0x38(%ebp) <== NOT EXECUTED
1238b7: 74 0d je 1238c6 <rtems_shell_debugrfs+0x15b><== NOT EXECUTED
{
printf ("error: path '%s' is not on an RFS file system\n", path);
1238b9: 52 push %edx <== NOT EXECUTED
1238ba: 52 push %edx <== NOT EXECUTED
1238bb: 53 push %ebx <== NOT EXECUTED
1238bc: 68 ef 94 15 00 push $0x1594ef <== NOT EXECUTED
1238c1: e9 a6 00 00 00 jmp 12396c <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);
1238c6: 31 c0 xor %eax,%eax <== NOT EXECUTED
1238c8: 83 c9 ff or $0xffffffff,%ecx <== NOT EXECUTED
1238cb: 89 df mov %ebx,%edi <== NOT EXECUTED
1238cd: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED
1238cf: f7 d1 not %ecx <== NOT EXECUTED
1238d1: 49 dec %ecx <== NOT EXECUTED
1238d2: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1238d5: 6a 01 push $0x1 <== NOT EXECUTED
1238d7: 8d 75 d4 lea -0x2c(%ebp),%esi <== NOT EXECUTED
1238da: 56 push %esi <== NOT EXECUTED
1238db: 6a 00 push $0x0 <== NOT EXECUTED
1238dd: 51 push %ecx <== NOT EXECUTED
1238de: 53 push %ebx <== NOT EXECUTED
1238df: e8 4d 95 fe ff call 10ce31 <rtems_filesystem_evaluate_path><== NOT EXECUTED
1238e4: 89 c3 mov %eax,%ebx <== NOT EXECUTED
*fs = rtems_rfs_rtems_pathloc_dev (&pathloc);
1238e6: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
1238e9: 8b 40 34 mov 0x34(%eax),%eax <== NOT EXECUTED
1238ec: 89 85 54 ff ff ff mov %eax,-0xac(%ebp) <== NOT EXECUTED
rtems_filesystem_freenode (&pathloc);
1238f2: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
1238f5: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
1238f8: 85 c0 test %eax,%eax <== NOT EXECUTED
1238fa: 74 10 je 12390c <rtems_shell_debugrfs+0x1a1><== NOT EXECUTED
1238fc: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED
1238ff: 85 c0 test %eax,%eax <== NOT EXECUTED
123901: 74 09 je 12390c <rtems_shell_debugrfs+0x1a1><== NOT EXECUTED
123903: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
123906: 56 push %esi <== NOT EXECUTED
123907: ff d0 call *%eax <== NOT EXECUTED
123909: 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)
12390c: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
123911: 85 db test %ebx,%ebx <== NOT EXECUTED
123913: 75 64 jne 123979 <rtems_shell_debugrfs+0x20e><== NOT EXECUTED
123915: 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)
12391b: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
12391e: 83 c2 08 add $0x8,%edx <== NOT EXECUTED
123921: 8b 3a mov (%edx),%edi <== NOT EXECUTED
123923: 50 push %eax <== NOT EXECUTED
123924: 50 push %eax <== NOT EXECUTED
123925: ff 36 pushl (%esi) <== NOT EXECUTED
123927: 57 push %edi <== NOT EXECUTED
123928: 89 95 50 ff ff ff mov %edx,-0xb0(%ebp) <== NOT EXECUTED
12392e: e8 c9 ec 01 00 call 1425fc <strcmp> <== NOT EXECUTED
123933: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
123936: 83 c6 0c add $0xc,%esi <== NOT EXECUTED
123939: 85 c0 test %eax,%eax <== NOT EXECUTED
12393b: 8b 95 50 ff ff ff mov -0xb0(%ebp),%edx <== NOT EXECUTED
123941: 75 1b jne 12395e <rtems_shell_debugrfs+0x1f3><== NOT EXECUTED
return table[t].handler (fs, argc - 2, argv + 2);
123943: 56 push %esi <== NOT EXECUTED
123944: 6b db 0c imul $0xc,%ebx,%ebx <== NOT EXECUTED
123947: 52 push %edx <== NOT EXECUTED
123948: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
12394b: 83 e8 02 sub $0x2,%eax <== NOT EXECUTED
12394e: 50 push %eax <== NOT EXECUTED
12394f: ff b5 54 ff ff ff pushl -0xac(%ebp) <== NOT EXECUTED
123955: ff 94 1d 64 ff ff ff call *-0x9c(%ebp,%ebx,1) <== NOT EXECUTED
12395c: eb 18 jmp 123976 <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++)
12395e: 43 inc %ebx <== NOT EXECUTED
12395f: 83 fb 05 cmp $0x5,%ebx <== NOT EXECUTED
123962: 75 bd jne 123921 <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]);
123964: 53 push %ebx <== NOT EXECUTED
123965: 53 push %ebx <== NOT EXECUTED
123966: 57 push %edi <== NOT EXECUTED
123967: 68 1e 95 15 00 push $0x15951e <== NOT EXECUTED
12396c: e8 43 d3 01 00 call 140cb4 <printf> <== NOT EXECUTED
123971: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
123976: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
}
return 1;
}
123979: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
12397c: 5b pop %ebx <== NOT EXECUTED
12397d: 5e pop %esi <== NOT EXECUTED
12397e: 5f pop %edi <== NOT EXECUTED
12397f: c9 leave <== NOT EXECUTED
123980: c3 ret <== NOT EXECUTED
00122b29 <rtems_shell_rfs_format>:
return 1;
}
int
rtems_shell_rfs_format (int argc, char* argv[])
{
122b29: 55 push %ebp <== NOT EXECUTED
122b2a: 89 e5 mov %esp,%ebp <== NOT EXECUTED
122b2c: 57 push %edi <== NOT EXECUTED
122b2d: 56 push %esi <== NOT EXECUTED
122b2e: 53 push %ebx <== NOT EXECUTED
122b2f: 83 ec 3c sub $0x3c,%esp <== NOT EXECUTED
122b32: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
122b35: 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));
122b38: 8d 55 d0 lea -0x30(%ebp),%edx <== NOT EXECUTED
122b3b: b9 06 00 00 00 mov $0x6,%ecx <== NOT EXECUTED
122b40: 31 c0 xor %eax,%eax <== NOT EXECUTED
122b42: 89 d7 mov %edx,%edi <== NOT EXECUTED
122b44: f3 ab rep stos %eax,%es:(%edi) <== NOT EXECUTED
122b46: bf 01 00 00 00 mov $0x1,%edi <== NOT EXECUTED
122b4b: c7 45 c4 00 00 00 00 movl $0x0,-0x3c(%ebp) <== NOT EXECUTED
for (arg = 1; arg < argc; arg++)
122b52: e9 fc 00 00 00 jmp 122c53 <rtems_shell_rfs_format+0x12a><== NOT EXECUTED
{
if (argv[arg][0] == '-')
122b57: 8b 04 bb mov (%ebx,%edi,4),%eax <== NOT EXECUTED
122b5a: 80 38 2d cmpb $0x2d,(%eax) <== NOT EXECUTED
122b5d: 0f 85 dc 00 00 00 jne 122c3f <rtems_shell_rfs_format+0x116><== NOT EXECUTED
{
switch (argv[arg][1])
122b63: 8a 50 01 mov 0x1(%eax),%dl <== NOT EXECUTED
122b66: 80 fa 69 cmp $0x69,%dl <== NOT EXECUTED
122b69: 74 79 je 122be4 <rtems_shell_rfs_format+0xbb><== NOT EXECUTED
122b6b: 7f 14 jg 122b81 <rtems_shell_rfs_format+0x58><== NOT EXECUTED
122b6d: 80 fa 49 cmp $0x49,%dl <== NOT EXECUTED
122b70: 0f 84 8f 00 00 00 je 122c05 <rtems_shell_rfs_format+0xdc><== NOT EXECUTED
122b76: 80 fa 62 cmp $0x62,%dl <== NOT EXECUTED
122b79: 0f 85 b6 00 00 00 jne 122c35 <rtems_shell_rfs_format+0x10c><== NOT EXECUTED
122b7f: eb 3f jmp 122bc0 <rtems_shell_rfs_format+0x97><== NOT EXECUTED
122b81: 80 fa 73 cmp $0x73,%dl <== NOT EXECUTED
122b84: 74 16 je 122b9c <rtems_shell_rfs_format+0x73><== NOT EXECUTED
122b86: 80 fa 76 cmp $0x76,%dl <== NOT EXECUTED
122b89: 74 0b je 122b96 <rtems_shell_rfs_format+0x6d><== NOT EXECUTED
122b8b: 80 fa 6f cmp $0x6f,%dl <== NOT EXECUTED
122b8e: 0f 85 a1 00 00 00 jne 122c35 <rtems_shell_rfs_format+0x10c><== NOT EXECUTED
122b94: eb 78 jmp 122c0e <rtems_shell_rfs_format+0xe5><== NOT EXECUTED
{
case 'v':
config.verbose = true;
122b96: c6 45 e5 01 movb $0x1,-0x1b(%ebp) <== NOT EXECUTED
122b9a: eb 6d jmp 122c09 <rtems_shell_rfs_format+0xe0><== NOT EXECUTED
break;
case 's':
arg++;
122b9c: 47 inc %edi <== NOT EXECUTED
if (arg >= argc)
122b9d: 39 f7 cmp %esi,%edi <== NOT EXECUTED
122b9f: 7c 0d jl 122bae <rtems_shell_rfs_format+0x85><== NOT EXECUTED
{
printf ("error: block size needs an argument\n");
122ba1: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
122ba4: 68 73 8e 15 00 push $0x158e73 <== NOT EXECUTED
122ba9: e9 bb 00 00 00 jmp 122c69 <rtems_shell_rfs_format+0x140><== NOT EXECUTED
return 1;
}
config.block_size = strtoul (argv[arg], 0, 0);
122bae: 50 push %eax <== NOT EXECUTED
122baf: 6a 00 push $0x0 <== NOT EXECUTED
122bb1: 6a 00 push $0x0 <== NOT EXECUTED
122bb3: ff 34 bb pushl (%ebx,%edi,4) <== NOT EXECUTED
122bb6: e8 89 15 02 00 call 144144 <strtoul> <== NOT EXECUTED
122bbb: 89 45 d0 mov %eax,-0x30(%ebp) <== NOT EXECUTED
122bbe: eb 6d jmp 122c2d <rtems_shell_rfs_format+0x104><== NOT EXECUTED
break;
case 'b':
arg++;
122bc0: 47 inc %edi <== NOT EXECUTED
if (arg >= argc)
122bc1: 39 f7 cmp %esi,%edi <== NOT EXECUTED
122bc3: 7c 0d jl 122bd2 <rtems_shell_rfs_format+0xa9><== NOT EXECUTED
{
printf ("error: group block count needs an argument\n");
122bc5: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
122bc8: 68 97 8e 15 00 push $0x158e97 <== NOT EXECUTED
122bcd: e9 97 00 00 00 jmp 122c69 <rtems_shell_rfs_format+0x140><== NOT EXECUTED
return 1;
}
config.group_blocks = strtoul (argv[arg], 0, 0);
122bd2: 51 push %ecx <== NOT EXECUTED
122bd3: 6a 00 push $0x0 <== NOT EXECUTED
122bd5: 6a 00 push $0x0 <== NOT EXECUTED
122bd7: ff 34 bb pushl (%ebx,%edi,4) <== NOT EXECUTED
122bda: e8 65 15 02 00 call 144144 <strtoul> <== NOT EXECUTED
122bdf: 89 45 d4 mov %eax,-0x2c(%ebp) <== NOT EXECUTED
122be2: eb 49 jmp 122c2d <rtems_shell_rfs_format+0x104><== NOT EXECUTED
break;
case 'i':
arg++;
122be4: 47 inc %edi <== NOT EXECUTED
if (arg >= argc)
122be5: 39 f7 cmp %esi,%edi <== NOT EXECUTED
122be7: 7c 0a jl 122bf3 <rtems_shell_rfs_format+0xca><== NOT EXECUTED
{
printf ("error: group inode count needs an argument\n");
122be9: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
122bec: 68 c2 8e 15 00 push $0x158ec2 <== NOT EXECUTED
122bf1: eb 76 jmp 122c69 <rtems_shell_rfs_format+0x140><== NOT EXECUTED
return 1;
}
config.group_inodes = strtoul (argv[arg], 0, 0);
122bf3: 52 push %edx <== NOT EXECUTED
122bf4: 6a 00 push $0x0 <== NOT EXECUTED
122bf6: 6a 00 push $0x0 <== NOT EXECUTED
122bf8: ff 34 bb pushl (%ebx,%edi,4) <== NOT EXECUTED
122bfb: e8 44 15 02 00 call 144144 <strtoul> <== NOT EXECUTED
122c00: 89 45 d8 mov %eax,-0x28(%ebp) <== NOT EXECUTED
122c03: eb 28 jmp 122c2d <rtems_shell_rfs_format+0x104><== NOT EXECUTED
break;
case 'I':
config.initialise_inodes = true;
122c05: c6 45 e4 01 movb $0x1,-0x1c(%ebp) <== NOT EXECUTED
122c09: 8b 45 c4 mov -0x3c(%ebp),%eax <== NOT EXECUTED
break;
122c0c: eb 41 jmp 122c4f <rtems_shell_rfs_format+0x126><== NOT EXECUTED
case 'o':
arg++;
122c0e: 47 inc %edi <== NOT EXECUTED
if (arg >= argc)
122c0f: 39 f7 cmp %esi,%edi <== NOT EXECUTED
122c11: 7c 0a jl 122c1d <rtems_shell_rfs_format+0xf4><== NOT EXECUTED
{
printf ("error: inode percentage overhead needs an argument\n");
122c13: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
122c16: 68 ed 8e 15 00 push $0x158eed <== NOT EXECUTED
122c1b: eb 4c jmp 122c69 <rtems_shell_rfs_format+0x140><== NOT EXECUTED
return 1;
}
config.inode_overhead = strtoul (argv[arg], 0, 0);
122c1d: 50 push %eax <== NOT EXECUTED
122c1e: 6a 00 push $0x0 <== NOT EXECUTED
122c20: 6a 00 push $0x0 <== NOT EXECUTED
122c22: ff 34 bb pushl (%ebx,%edi,4) <== NOT EXECUTED
122c25: e8 1a 15 02 00 call 144144 <strtoul> <== NOT EXECUTED
122c2a: 89 45 dc mov %eax,-0x24(%ebp) <== NOT EXECUTED
122c2d: 8b 45 c4 mov -0x3c(%ebp),%eax <== NOT EXECUTED
break;
122c30: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
122c33: eb 1a jmp 122c4f <rtems_shell_rfs_format+0x126><== NOT EXECUTED
default:
printf ("error: invalid option: %s\n", argv[arg]);
122c35: 56 push %esi <== NOT EXECUTED
122c36: 56 push %esi <== NOT EXECUTED
122c37: 50 push %eax <== NOT EXECUTED
122c38: 68 4a 3b 15 00 push $0x153b4a <== NOT EXECUTED
122c3d: eb 65 jmp 122ca4 <rtems_shell_rfs_format+0x17b><== NOT EXECUTED
return 1;
}
}
else
{
if (!driver)
122c3f: 83 7d c4 00 cmpl $0x0,-0x3c(%ebp) <== NOT EXECUTED
122c43: 74 0a je 122c4f <rtems_shell_rfs_format+0x126><== NOT EXECUTED
driver = argv[arg];
else
{
printf ("error: only one driver name allowed: %s\n", argv[arg]);
122c45: 53 push %ebx <== NOT EXECUTED
122c46: 53 push %ebx <== NOT EXECUTED
122c47: 50 push %eax <== NOT EXECUTED
122c48: 68 d7 3c 15 00 push $0x153cd7 <== NOT EXECUTED
122c4d: eb 55 jmp 122ca4 <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++)
122c4f: 47 inc %edi <== NOT EXECUTED
122c50: 89 45 c4 mov %eax,-0x3c(%ebp) <== NOT EXECUTED
122c53: 39 f7 cmp %esi,%edi <== NOT EXECUTED
122c55: 0f 8c fc fe ff ff jl 122b57 <rtems_shell_rfs_format+0x2e><== NOT EXECUTED
return 1;
}
}
}
if (!driver) {
122c5b: 83 7d c4 00 cmpl $0x0,-0x3c(%ebp) <== NOT EXECUTED
122c5f: 75 0f jne 122c70 <rtems_shell_rfs_format+0x147><== NOT EXECUTED
printf ("error: no driver name provided\n");
122c61: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
122c64: 68 20 8f 15 00 push $0x158f20 <== NOT EXECUTED
122c69: e8 5a e2 01 00 call 140ec8 <puts> <== NOT EXECUTED
122c6e: eb 39 jmp 122ca9 <rtems_shell_rfs_format+0x180><== NOT EXECUTED
return 1;
}
if (rtems_rfs_format (driver, &config) < 0)
122c70: 51 push %ecx <== NOT EXECUTED
122c71: 51 push %ecx <== NOT EXECUTED
122c72: 8d 45 d0 lea -0x30(%ebp),%eax <== NOT EXECUTED
122c75: 50 push %eax <== NOT EXECUTED
122c76: ff 75 c4 pushl -0x3c(%ebp) <== NOT EXECUTED
122c79: e8 a6 40 01 00 call 136d24 <rtems_rfs_format> <== NOT EXECUTED
122c7e: 89 c2 mov %eax,%edx <== NOT EXECUTED
122c80: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
122c83: 31 c0 xor %eax,%eax <== NOT EXECUTED
122c85: 85 d2 test %edx,%edx <== NOT EXECUTED
122c87: 79 28 jns 122cb1 <rtems_shell_rfs_format+0x188><== NOT EXECUTED
{
printf ("error: format of %s failed: %s\n",
122c89: e8 0a a1 01 00 call 13cd98 <__errno> <== NOT EXECUTED
122c8e: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
122c91: ff 30 pushl (%eax) <== NOT EXECUTED
122c93: e8 64 fa 01 00 call 1426fc <strerror> <== NOT EXECUTED
122c98: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
122c9b: 50 push %eax <== NOT EXECUTED
122c9c: ff 75 c4 pushl -0x3c(%ebp) <== NOT EXECUTED
122c9f: 68 3f 8f 15 00 push $0x158f3f <== NOT EXECUTED
122ca4: e8 0b e0 01 00 call 140cb4 <printf> <== NOT EXECUTED
122ca9: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
driver, strerror (errno));
return 1;
122cae: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
return 0;
}
122cb1: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
122cb4: 5b pop %ebx <== NOT EXECUTED
122cb5: 5e pop %esi <== NOT EXECUTED
122cb6: 5f pop %edi <== NOT EXECUTED
122cb7: c9 leave <== NOT EXECUTED
122cb8: 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 07 35 00 00 call 1197ac <_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 f0 00 00 00 mov 0xf0(%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 fc e5 13 00 mov 0x13e5fc,%eax
1162d8: 85 c0 test %eax,%eax
1162da: 74 19 je 1162f5 <rtems_signal_send+0x71>
1162dc: 3b 0d 20 e6 13 00 cmp 0x13e620,%ecx
1162e2: 75 11 jne 1162f5 <rtems_signal_send+0x71><== NEVER TAKEN
_ISR_Signals_to_thread_executing = true;
1162e4: c6 05 b4 e6 13 00 01 movb $0x1,0x13e6b4
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 63 34 00 00 call 11975d <_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 5a 34 00 00 call 11975d <_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 c4 00 00 00 mov 0xc4(%eax),%edi
10b668: 83 c7 08 add $0x8,%edi
10b66b: be 38 7a 16 00 mov $0x167a38,%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 c0 00 00 00 mov 0xc0(%edi),%ecx
10ba28: 8b 97 c4 00 00 00 mov 0xc4(%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 60 7c 16 00 mov 0x167c60,%edx
)
{
#if defined(__GNUC__)
void *sp = __builtin_frame_address(0);
if ( sp < the_stack->area ) {
10b8f1: 8b 82 c4 00 00 00 mov 0xc4(%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 c0 00 00 00 mov 0xc0(%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 24 4e 16 00 00 cmpl $0x0,0x164e24
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 38 7a 16 00 push $0x167a38
10b921: 50 push %eax
10b922: e8 61 44 03 00 call 13fd88 <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 60 7c 16 00 pushl 0x167c60 <== 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 28 4e 16 00 mov %esi,0x164e28 <== NOT EXECUTED
print_handler = print;
10b7c9: 89 1d 2c 4e 16 00 mov %ebx,0x164e2c <== NOT EXECUTED
(*print)( context, "Stack usage by thread\n");
10b7cf: 51 push %ecx <== NOT EXECUTED
10b7d0: 51 push %ecx <== NOT EXECUTED
10b7d1: 68 e8 57 15 00 push $0x1557e8 <== 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 ff 57 15 00 push $0x1557ff <== 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 c5 68 00 00 call 1120b4 <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 28 4e 16 00 00 movl $0x0,0x164e28 <== NOT EXECUTED
10b802: 00 00 00
print_handler = NULL;
10b805: c7 05 2c 4e 16 00 00 movl $0x0,0x164e2c <== 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 c4 00 00 00 mov 0xc4(%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 c0 00 00 00 mov 0xc0(%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 38 7a 16 00 push $0x167a38
10b982: 50 push %eax
10b983: 88 55 f4 mov %dl,-0xc(%ebp)
10b986: e8 fd 43 03 00 call 13fd88 <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
0010f050 <rtems_string_to_double>:
rtems_status_code rtems_string_to_double (
const char *s,
double *n,
char **endptr
)
{
10f050: 55 push %ebp
10f051: 89 e5 mov %esp,%ebp
10f053: 57 push %edi
10f054: 56 push %esi
10f055: 53 push %ebx
10f056: 83 ec 2c sub $0x2c,%esp
10f059: 8b 75 08 mov 0x8(%ebp),%esi
10f05c: 8b 5d 0c mov 0xc(%ebp),%ebx
10f05f: 8b 7d 10 mov 0x10(%ebp),%edi
double result;
char *end;
if ( !n )
10f062: b8 09 00 00 00 mov $0x9,%eax
10f067: 85 db test %ebx,%ebx
10f069: 0f 84 90 00 00 00 je 10f0ff <rtems_string_to_double+0xaf>
return RTEMS_INVALID_ADDRESS;
errno = 0;
10f06f: e8 78 1d 00 00 call 110dec <__errno>
10f074: c7 00 00 00 00 00 movl $0x0,(%eax)
*n = 0;
10f07a: c7 03 00 00 00 00 movl $0x0,(%ebx)
10f080: c7 43 04 00 00 00 00 movl $0x0,0x4(%ebx)
result = strtod( s, &end );
10f087: 50 push %eax
10f088: 50 push %eax
10f089: 8d 45 e4 lea -0x1c(%ebp),%eax
10f08c: 50 push %eax
10f08d: 56 push %esi
10f08e: e8 39 48 00 00 call 1138cc <strtod>
if ( endptr )
10f093: 83 c4 10 add $0x10,%esp
10f096: 85 ff test %edi,%edi
10f098: 74 05 je 10f09f <rtems_string_to_double+0x4f>
*endptr = end;
10f09a: 8b 45 e4 mov -0x1c(%ebp),%eax
10f09d: 89 07 mov %eax,(%edi)
if ( end == s )
10f09f: b8 0b 00 00 00 mov $0xb,%eax
10f0a4: 39 75 e4 cmp %esi,-0x1c(%ebp)
10f0a7: 74 54 je 10f0fd <rtems_string_to_double+0xad>
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
10f0a9: dd 5d c8 fstpl -0x38(%ebp)
10f0ac: e8 3b 1d 00 00 call 110dec <__errno>
10f0b1: 83 38 22 cmpl $0x22,(%eax)
10f0b4: dd 45 c8 fldl -0x38(%ebp)
10f0b7: 75 2d jne 10f0e6 <rtems_string_to_double+0x96>
10f0b9: d9 ee fldz
10f0bb: d9 c9 fxch %st(1)
10f0bd: dd e1 fucom %st(1)
10f0bf: df e0 fnstsw %ax
10f0c1: dd d9 fstp %st(1)
10f0c3: 9e sahf
10f0c4: 7a 02 jp 10f0c8 <rtems_string_to_double+0x78><== NEVER TAKEN
10f0c6: 74 24 je 10f0ec <rtems_string_to_double+0x9c><== NEVER TAKEN
10f0c8: dd 05 e8 24 12 00 fldl 0x1224e8
10f0ce: d9 c9 fxch %st(1)
10f0d0: dd e1 fucom %st(1)
10f0d2: df e0 fnstsw %ax
10f0d4: dd d9 fstp %st(1)
10f0d6: 9e sahf
10f0d7: 77 17 ja 10f0f0 <rtems_string_to_double+0xa0><== ALWAYS TAKEN
10f0d9: dd 05 f0 24 12 00 fldl 0x1224f0 <== NOT EXECUTED
10f0df: dd e9 fucomp %st(1) <== NOT EXECUTED
10f0e1: df e0 fnstsw %ax <== NOT EXECUTED
10f0e3: 9e sahf <== NOT EXECUTED
10f0e4: 77 0e ja 10f0f4 <rtems_string_to_double+0xa4><== NOT EXECUTED
(( result == 0 ) || ( result == HUGE_VAL ) || ( result == -HUGE_VAL )))
return RTEMS_INVALID_NUMBER;
*n = result;
10f0e6: dd 1b fstpl (%ebx)
10f0e8: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
10f0ea: eb 13 jmp 10f0ff <rtems_string_to_double+0xaf>
10f0ec: dd d8 fstp %st(0) <== NOT EXECUTED
10f0ee: eb 06 jmp 10f0f6 <rtems_string_to_double+0xa6><== NOT EXECUTED
10f0f0: dd d8 fstp %st(0)
10f0f2: eb 02 jmp 10f0f6 <rtems_string_to_double+0xa6>
10f0f4: dd d8 fstp %st(0) <== NOT EXECUTED
10f0f6: b8 0a 00 00 00 mov $0xa,%eax
10f0fb: eb 02 jmp 10f0ff <rtems_string_to_double+0xaf>
10f0fd: dd d8 fstp %st(0)
}
10f0ff: 8d 65 f4 lea -0xc(%ebp),%esp
10f102: 5b pop %ebx
10f103: 5e pop %esi
10f104: 5f pop %edi
10f105: c9 leave
10f106: c3 ret
0010f108 <rtems_string_to_float>:
rtems_status_code rtems_string_to_float (
const char *s,
float *n,
char **endptr
)
{
10f108: 55 push %ebp
10f109: 89 e5 mov %esp,%ebp
10f10b: 57 push %edi
10f10c: 56 push %esi
10f10d: 53 push %ebx
10f10e: 83 ec 2c sub $0x2c,%esp
10f111: 8b 75 08 mov 0x8(%ebp),%esi
10f114: 8b 5d 0c mov 0xc(%ebp),%ebx
10f117: 8b 7d 10 mov 0x10(%ebp),%edi
float result;
char *end;
if ( !n )
10f11a: b8 09 00 00 00 mov $0x9,%eax
10f11f: 85 db test %ebx,%ebx
10f121: 0f 84 89 00 00 00 je 10f1b0 <rtems_string_to_float+0xa8>
return RTEMS_INVALID_ADDRESS;
errno = 0;
10f127: e8 c0 1c 00 00 call 110dec <__errno>
10f12c: c7 00 00 00 00 00 movl $0x0,(%eax)
*n = 0;
10f132: c7 03 00 00 00 00 movl $0x0,(%ebx)
result = strtof( s, &end );
10f138: 50 push %eax
10f139: 50 push %eax
10f13a: 8d 45 e4 lea -0x1c(%ebp),%eax
10f13d: 50 push %eax
10f13e: 56 push %esi
10f13f: e8 44 47 00 00 call 113888 <strtof>
if ( endptr )
10f144: 83 c4 10 add $0x10,%esp
10f147: 85 ff test %edi,%edi
10f149: 74 05 je 10f150 <rtems_string_to_float+0x48>
*endptr = end;
10f14b: 8b 45 e4 mov -0x1c(%ebp),%eax
10f14e: 89 07 mov %eax,(%edi)
if ( end == s )
10f150: b8 0b 00 00 00 mov $0xb,%eax
10f155: 39 75 e4 cmp %esi,-0x1c(%ebp)
10f158: 74 54 je 10f1ae <rtems_string_to_float+0xa6>
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
10f15a: d9 5d c8 fstps -0x38(%ebp)
10f15d: e8 8a 1c 00 00 call 110dec <__errno>
10f162: 83 38 22 cmpl $0x22,(%eax)
10f165: d9 45 c8 flds -0x38(%ebp)
10f168: 75 2d jne 10f197 <rtems_string_to_float+0x8f>
10f16a: d9 ee fldz
10f16c: d9 c9 fxch %st(1)
10f16e: dd e1 fucom %st(1)
10f170: df e0 fnstsw %ax
10f172: dd d9 fstp %st(1)
10f174: 9e sahf
10f175: 7a 02 jp 10f179 <rtems_string_to_float+0x71><== NEVER TAKEN
10f177: 74 24 je 10f19d <rtems_string_to_float+0x95><== NEVER TAKEN
10f179: d9 05 f8 24 12 00 flds 0x1224f8
10f17f: d9 c9 fxch %st(1)
10f181: dd e1 fucom %st(1)
10f183: df e0 fnstsw %ax
10f185: dd d9 fstp %st(1)
10f187: 9e sahf
10f188: 77 17 ja 10f1a1 <rtems_string_to_float+0x99><== ALWAYS TAKEN
10f18a: d9 05 fc 24 12 00 flds 0x1224fc <== NOT EXECUTED
10f190: dd e9 fucomp %st(1) <== NOT EXECUTED
10f192: df e0 fnstsw %ax <== NOT EXECUTED
10f194: 9e sahf <== NOT EXECUTED
10f195: 77 0e ja 10f1a5 <rtems_string_to_float+0x9d><== NOT EXECUTED
(( result == 0 ) || ( result == HUGE_VALF ) || ( result == -HUGE_VALF )))
return RTEMS_INVALID_NUMBER;
*n = result;
10f197: d9 1b fstps (%ebx)
10f199: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
10f19b: eb 13 jmp 10f1b0 <rtems_string_to_float+0xa8>
10f19d: dd d8 fstp %st(0) <== NOT EXECUTED
10f19f: eb 06 jmp 10f1a7 <rtems_string_to_float+0x9f><== NOT EXECUTED
10f1a1: dd d8 fstp %st(0)
10f1a3: eb 02 jmp 10f1a7 <rtems_string_to_float+0x9f>
10f1a5: dd d8 fstp %st(0) <== NOT EXECUTED
10f1a7: b8 0a 00 00 00 mov $0xa,%eax
10f1ac: eb 02 jmp 10f1b0 <rtems_string_to_float+0xa8>
10f1ae: dd d8 fstp %st(0)
}
10f1b0: 8d 65 f4 lea -0xc(%ebp),%esp
10f1b3: 5b pop %ebx
10f1b4: 5e pop %esi
10f1b5: 5f pop %edi
10f1b6: c9 leave
10f1b7: c3 ret
0011f96c <rtems_string_to_int>:
const char *s,
int *n,
char **endptr,
int base
)
{
11f96c: 55 push %ebp
11f96d: 89 e5 mov %esp,%ebp
11f96f: 57 push %edi
11f970: 56 push %esi
11f971: 53 push %ebx
11f972: 83 ec 2c sub $0x2c,%esp
11f975: 8b 7d 08 mov 0x8(%ebp),%edi
11f978: 8b 75 0c mov 0xc(%ebp),%esi
11f97b: 8b 55 10 mov 0x10(%ebp),%edx
long result;
char *end;
if ( !n )
11f97e: b8 09 00 00 00 mov $0x9,%eax
11f983: 85 f6 test %esi,%esi
11f985: 74 66 je 11f9ed <rtems_string_to_int+0x81>
return RTEMS_INVALID_ADDRESS;
errno = 0;
11f987: 89 55 d4 mov %edx,-0x2c(%ebp)
11f98a: e8 09 d4 01 00 call 13cd98 <__errno>
11f98f: c7 00 00 00 00 00 movl $0x0,(%eax)
*n = 0;
11f995: c7 06 00 00 00 00 movl $0x0,(%esi)
result = strtol( s, &end, base );
11f99b: 50 push %eax
11f99c: ff 75 14 pushl 0x14(%ebp)
11f99f: 8d 45 e4 lea -0x1c(%ebp),%eax
11f9a2: 50 push %eax
11f9a3: 57 push %edi
11f9a4: e8 1f 43 02 00 call 143cc8 <strtol>
11f9a9: 89 c3 mov %eax,%ebx
if ( endptr )
11f9ab: 83 c4 10 add $0x10,%esp
11f9ae: 8b 55 d4 mov -0x2c(%ebp),%edx
11f9b1: 85 d2 test %edx,%edx
11f9b3: 74 05 je 11f9ba <rtems_string_to_int+0x4e>
*endptr = end;
11f9b5: 8b 45 e4 mov -0x1c(%ebp),%eax
11f9b8: 89 02 mov %eax,(%edx)
if ( end == s )
11f9ba: b8 0b 00 00 00 mov $0xb,%eax
11f9bf: 39 7d e4 cmp %edi,-0x1c(%ebp)
11f9c2: 74 29 je 11f9ed <rtems_string_to_int+0x81>
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
11f9c4: e8 cf d3 01 00 call 13cd98 <__errno>
11f9c9: 83 38 22 cmpl $0x22,(%eax)
11f9cc: 75 14 jne 11f9e2 <rtems_string_to_int+0x76>
11f9ce: 81 fb ff ff ff 7f cmp $0x7fffffff,%ebx
11f9d4: 74 12 je 11f9e8 <rtems_string_to_int+0x7c><== ALWAYS TAKEN
11f9d6: 85 db test %ebx,%ebx <== NOT EXECUTED
11f9d8: 74 0e je 11f9e8 <rtems_string_to_int+0x7c><== NOT EXECUTED
11f9da: 81 fb 00 00 00 80 cmp $0x80000000,%ebx <== NOT EXECUTED
11f9e0: 74 06 je 11f9e8 <rtems_string_to_int+0x7c><== NOT EXECUTED
errno = ERANGE;
return RTEMS_INVALID_NUMBER;
}
#endif
*n = result;
11f9e2: 89 1e mov %ebx,(%esi)
11f9e4: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
11f9e6: eb 05 jmp 11f9ed <rtems_string_to_int+0x81>
11f9e8: b8 0a 00 00 00 mov $0xa,%eax
}
11f9ed: 8d 65 f4 lea -0xc(%ebp),%esp
11f9f0: 5b pop %ebx
11f9f1: 5e pop %esi
11f9f2: 5f pop %edi
11f9f3: c9 leave
11f9f4: c3 ret
0010f2e4 <rtems_string_to_long>:
const char *s,
long *n,
char **endptr,
int base
)
{
10f2e4: 55 push %ebp
10f2e5: 89 e5 mov %esp,%ebp
10f2e7: 57 push %edi
10f2e8: 56 push %esi
10f2e9: 53 push %ebx
10f2ea: 83 ec 2c sub $0x2c,%esp
10f2ed: 8b 7d 08 mov 0x8(%ebp),%edi
10f2f0: 8b 75 0c mov 0xc(%ebp),%esi
10f2f3: 8b 55 10 mov 0x10(%ebp),%edx
long result;
char *end;
if ( !n )
10f2f6: b8 09 00 00 00 mov $0x9,%eax
10f2fb: 85 f6 test %esi,%esi
10f2fd: 74 66 je 10f365 <rtems_string_to_long+0x81>
return RTEMS_INVALID_ADDRESS;
errno = 0;
10f2ff: 89 55 d4 mov %edx,-0x2c(%ebp)
10f302: e8 e5 1a 00 00 call 110dec <__errno>
10f307: c7 00 00 00 00 00 movl $0x0,(%eax)
*n = 0;
10f30d: c7 06 00 00 00 00 movl $0x0,(%esi)
result = strtol( s, &end, base );
10f313: 50 push %eax
10f314: ff 75 14 pushl 0x14(%ebp)
10f317: 8d 45 e4 lea -0x1c(%ebp),%eax
10f31a: 50 push %eax
10f31b: 57 push %edi
10f31c: e8 47 47 00 00 call 113a68 <strtol>
10f321: 89 c3 mov %eax,%ebx
if ( endptr )
10f323: 83 c4 10 add $0x10,%esp
10f326: 8b 55 d4 mov -0x2c(%ebp),%edx
10f329: 85 d2 test %edx,%edx
10f32b: 74 05 je 10f332 <rtems_string_to_long+0x4e>
*endptr = end;
10f32d: 8b 45 e4 mov -0x1c(%ebp),%eax
10f330: 89 02 mov %eax,(%edx)
if ( end == s )
10f332: b8 0b 00 00 00 mov $0xb,%eax
10f337: 39 7d e4 cmp %edi,-0x1c(%ebp)
10f33a: 74 29 je 10f365 <rtems_string_to_long+0x81>
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
10f33c: e8 ab 1a 00 00 call 110dec <__errno>
10f341: 83 38 22 cmpl $0x22,(%eax)
10f344: 75 14 jne 10f35a <rtems_string_to_long+0x76>
10f346: 81 fb ff ff ff 7f cmp $0x7fffffff,%ebx
10f34c: 74 12 je 10f360 <rtems_string_to_long+0x7c>
10f34e: 85 db test %ebx,%ebx
10f350: 74 0e je 10f360 <rtems_string_to_long+0x7c><== NEVER TAKEN
10f352: 81 fb 00 00 00 80 cmp $0x80000000,%ebx
10f358: 74 06 je 10f360 <rtems_string_to_long+0x7c><== ALWAYS TAKEN
(( result == 0 ) || ( result == LONG_MAX ) || ( result == LONG_MIN )))
return RTEMS_INVALID_NUMBER;
*n = result;
10f35a: 89 1e mov %ebx,(%esi)
10f35c: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
10f35e: eb 05 jmp 10f365 <rtems_string_to_long+0x81>
10f360: b8 0a 00 00 00 mov $0xa,%eax
}
10f365: 8d 65 f4 lea -0xc(%ebp),%esp
10f368: 5b pop %ebx
10f369: 5e pop %esi
10f36a: 5f pop %edi
10f36b: c9 leave
10f36c: c3 ret
0010f244 <rtems_string_to_long_long>:
const char *s,
long long *n,
char **endptr,
int base
)
{
10f244: 55 push %ebp
10f245: 89 e5 mov %esp,%ebp
10f247: 57 push %edi
10f248: 56 push %esi
10f249: 53 push %ebx
10f24a: 83 ec 2c sub $0x2c,%esp
10f24d: 8b 5d 0c mov 0xc(%ebp),%ebx
10f250: 8b 7d 10 mov 0x10(%ebp),%edi
long long result;
char *end;
if ( !n )
10f253: b8 09 00 00 00 mov $0x9,%eax
10f258: 85 db test %ebx,%ebx
10f25a: 74 7e je 10f2da <rtems_string_to_long_long+0x96>
return RTEMS_INVALID_ADDRESS;
errno = 0;
10f25c: e8 8b 1b 00 00 call 110dec <__errno>
10f261: c7 00 00 00 00 00 movl $0x0,(%eax)
*n = 0;
10f267: c7 03 00 00 00 00 movl $0x0,(%ebx)
10f26d: c7 43 04 00 00 00 00 movl $0x0,0x4(%ebx)
result = strtoll( s, &end, base );
10f274: 50 push %eax
10f275: ff 75 14 pushl 0x14(%ebp)
10f278: 8d 45 e4 lea -0x1c(%ebp),%eax
10f27b: 50 push %eax
10f27c: ff 75 08 pushl 0x8(%ebp)
10f27f: e8 00 48 00 00 call 113a84 <strtoll>
10f284: 89 c6 mov %eax,%esi
if ( endptr )
10f286: 83 c4 10 add $0x10,%esp
10f289: 85 ff test %edi,%edi
10f28b: 74 05 je 10f292 <rtems_string_to_long_long+0x4e>
*endptr = end;
10f28d: 8b 45 e4 mov -0x1c(%ebp),%eax
10f290: 89 07 mov %eax,(%edi)
if ( end == s )
10f292: b8 0b 00 00 00 mov $0xb,%eax
10f297: 8b 4d 08 mov 0x8(%ebp),%ecx
10f29a: 39 4d e4 cmp %ecx,-0x1c(%ebp)
10f29d: 74 3b je 10f2da <rtems_string_to_long_long+0x96>
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
10f29f: 89 55 d4 mov %edx,-0x2c(%ebp)
10f2a2: e8 45 1b 00 00 call 110dec <__errno>
10f2a7: 83 38 22 cmpl $0x22,(%eax)
10f2aa: 8b 55 d4 mov -0x2c(%ebp),%edx
10f2ad: 75 1d jne 10f2cc <rtems_string_to_long_long+0x88>
10f2af: 81 fa ff ff ff 7f cmp $0x7fffffff,%edx
10f2b5: 75 05 jne 10f2bc <rtems_string_to_long_long+0x78>
10f2b7: 83 fe ff cmp $0xffffffff,%esi
10f2ba: 74 19 je 10f2d5 <rtems_string_to_long_long+0x91><== ALWAYS TAKEN
10f2bc: 89 d0 mov %edx,%eax
10f2be: 09 f0 or %esi,%eax
10f2c0: 74 13 je 10f2d5 <rtems_string_to_long_long+0x91><== NEVER TAKEN
10f2c2: 8d 82 00 00 00 80 lea -0x80000000(%edx),%eax
10f2c8: 09 f0 or %esi,%eax
10f2ca: 74 09 je 10f2d5 <rtems_string_to_long_long+0x91><== ALWAYS TAKEN
(( result == 0 ) || ( result == LONG_LONG_MAX ) || ( result == LONG_LONG_MIN )))
return RTEMS_INVALID_NUMBER;
*n = result;
10f2cc: 89 33 mov %esi,(%ebx)
10f2ce: 89 53 04 mov %edx,0x4(%ebx)
10f2d1: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
10f2d3: eb 05 jmp 10f2da <rtems_string_to_long_long+0x96>
10f2d5: b8 0a 00 00 00 mov $0xa,%eax
}
10f2da: 8d 65 f4 lea -0xc(%ebp),%esp
10f2dd: 5b pop %ebx
10f2de: 5e pop %esi
10f2df: 5f pop %edi
10f2e0: c9 leave
10f2e1: c3 ret
0011fa10 <rtems_string_to_unsigned_char>:
const char *s,
unsigned char *n,
char **endptr,
int base
)
{
11fa10: 55 push %ebp
11fa11: 89 e5 mov %esp,%ebp
11fa13: 57 push %edi
11fa14: 56 push %esi
11fa15: 53 push %ebx
11fa16: 83 ec 2c sub $0x2c,%esp
11fa19: 8b 7d 08 mov 0x8(%ebp),%edi
11fa1c: 8b 5d 0c mov 0xc(%ebp),%ebx
11fa1f: 8b 55 10 mov 0x10(%ebp),%edx
unsigned long result;
char *end;
if ( !n )
11fa22: b8 09 00 00 00 mov $0x9,%eax
11fa27: 85 db test %ebx,%ebx
11fa29: 74 71 je 11fa9c <rtems_string_to_unsigned_char+0x8c>
return RTEMS_INVALID_ADDRESS;
errno = 0;
11fa2b: 89 55 d4 mov %edx,-0x2c(%ebp)
11fa2e: e8 65 d3 01 00 call 13cd98 <__errno>
11fa33: c7 00 00 00 00 00 movl $0x0,(%eax)
*n = 0;
11fa39: c6 03 00 movb $0x0,(%ebx)
result = strtoul( s, &end, base );
11fa3c: 50 push %eax
11fa3d: ff 75 14 pushl 0x14(%ebp)
11fa40: 8d 45 e4 lea -0x1c(%ebp),%eax
11fa43: 50 push %eax
11fa44: 57 push %edi
11fa45: e8 fa 46 02 00 call 144144 <strtoul>
11fa4a: 89 c6 mov %eax,%esi
if ( endptr )
11fa4c: 83 c4 10 add $0x10,%esp
11fa4f: 8b 55 d4 mov -0x2c(%ebp),%edx
11fa52: 85 d2 test %edx,%edx
11fa54: 74 05 je 11fa5b <rtems_string_to_unsigned_char+0x4b>
*endptr = end;
11fa56: 8b 45 e4 mov -0x1c(%ebp),%eax
11fa59: 89 02 mov %eax,(%edx)
if ( end == s )
11fa5b: b8 0b 00 00 00 mov $0xb,%eax
11fa60: 39 7d e4 cmp %edi,-0x1c(%ebp)
11fa63: 74 37 je 11fa9c <rtems_string_to_unsigned_char+0x8c>
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
11fa65: e8 2e d3 01 00 call 13cd98 <__errno>
11fa6a: 83 38 22 cmpl $0x22,(%eax)
11fa6d: 75 0d jne 11fa7c <rtems_string_to_unsigned_char+0x6c><== ALWAYS TAKEN
11fa6f: 8d 56 ff lea -0x1(%esi),%edx <== NOT EXECUTED
11fa72: b8 0a 00 00 00 mov $0xa,%eax <== NOT EXECUTED
11fa77: 83 fa fd cmp $0xfffffffd,%edx <== NOT EXECUTED
11fa7a: 77 20 ja 11fa9c <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 ) {
11fa7c: 81 fe ff 00 00 00 cmp $0xff,%esi
11fa82: 76 12 jbe 11fa96 <rtems_string_to_unsigned_char+0x86><== ALWAYS TAKEN
errno = ERANGE;
11fa84: e8 0f d3 01 00 call 13cd98 <__errno> <== NOT EXECUTED
11fa89: c7 00 22 00 00 00 movl $0x22,(%eax) <== NOT EXECUTED
11fa8f: b8 0a 00 00 00 mov $0xa,%eax <== NOT EXECUTED
return RTEMS_INVALID_NUMBER;
11fa94: eb 06 jmp 11fa9c <rtems_string_to_unsigned_char+0x8c><== NOT EXECUTED
}
#endif
*n = result;
11fa96: 89 f0 mov %esi,%eax
11fa98: 88 03 mov %al,(%ebx)
11fa9a: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
}
11fa9c: 8d 65 f4 lea -0xc(%ebp),%esp
11fa9f: 5b pop %ebx
11faa0: 5e pop %esi
11faa1: 5f pop %edi
11faa2: c9 leave
11faa3: c3 ret
0010f41c <rtems_string_to_unsigned_int>:
const char *s,
unsigned int *n,
char **endptr,
int base
)
{
10f41c: 55 push %ebp
10f41d: 89 e5 mov %esp,%ebp
10f41f: 57 push %edi
10f420: 56 push %esi
10f421: 53 push %ebx
10f422: 83 ec 2c sub $0x2c,%esp
10f425: 8b 7d 08 mov 0x8(%ebp),%edi
10f428: 8b 5d 0c mov 0xc(%ebp),%ebx
10f42b: 8b 55 10 mov 0x10(%ebp),%edx
unsigned long result;
char *end;
if ( !n )
10f42e: b8 09 00 00 00 mov $0x9,%eax
10f433: 85 db test %ebx,%ebx
10f435: 74 58 je 10f48f <rtems_string_to_unsigned_int+0x73>
return RTEMS_INVALID_ADDRESS;
errno = 0;
10f437: 89 55 d4 mov %edx,-0x2c(%ebp)
10f43a: e8 ad 19 00 00 call 110dec <__errno>
10f43f: c7 00 00 00 00 00 movl $0x0,(%eax)
*n = 0;
10f445: c7 03 00 00 00 00 movl $0x0,(%ebx)
result = strtoul( s, &end, base );
10f44b: 50 push %eax
10f44c: ff 75 14 pushl 0x14(%ebp)
10f44f: 8d 45 e4 lea -0x1c(%ebp),%eax
10f452: 50 push %eax
10f453: 57 push %edi
10f454: e8 8b 4a 00 00 call 113ee4 <strtoul>
10f459: 89 c6 mov %eax,%esi
if ( endptr )
10f45b: 83 c4 10 add $0x10,%esp
10f45e: 8b 55 d4 mov -0x2c(%ebp),%edx
10f461: 85 d2 test %edx,%edx
10f463: 74 05 je 10f46a <rtems_string_to_unsigned_int+0x4e>
*endptr = end;
10f465: 8b 45 e4 mov -0x1c(%ebp),%eax
10f468: 89 02 mov %eax,(%edx)
if ( end == s )
10f46a: b8 0b 00 00 00 mov $0xb,%eax
10f46f: 39 7d e4 cmp %edi,-0x1c(%ebp)
10f472: 74 1b je 10f48f <rtems_string_to_unsigned_int+0x73>
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
10f474: e8 73 19 00 00 call 110dec <__errno>
10f479: 83 38 22 cmpl $0x22,(%eax)
10f47c: 75 0d jne 10f48b <rtems_string_to_unsigned_int+0x6f>
10f47e: 8d 56 ff lea -0x1(%esi),%edx
10f481: b8 0a 00 00 00 mov $0xa,%eax
10f486: 83 fa fd cmp $0xfffffffd,%edx
10f489: 77 04 ja 10f48f <rtems_string_to_unsigned_int+0x73><== ALWAYS TAKEN
errno = ERANGE;
return RTEMS_INVALID_NUMBER;
}
#endif
*n = result;
10f48b: 89 33 mov %esi,(%ebx)
10f48d: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
}
10f48f: 8d 65 f4 lea -0xc(%ebp),%esp
10f492: 5b pop %ebx
10f493: 5e pop %esi
10f494: 5f pop %edi
10f495: c9 leave
10f496: c3 ret
0011faa4 <rtems_string_to_unsigned_long>:
const char *s,
unsigned long *n,
char **endptr,
int base
)
{
11faa4: 55 push %ebp
11faa5: 89 e5 mov %esp,%ebp
11faa7: 57 push %edi
11faa8: 56 push %esi
11faa9: 53 push %ebx
11faaa: 83 ec 2c sub $0x2c,%esp
11faad: 8b 7d 08 mov 0x8(%ebp),%edi
11fab0: 8b 5d 0c mov 0xc(%ebp),%ebx
11fab3: 8b 55 10 mov 0x10(%ebp),%edx
unsigned long result;
char *end;
if ( !n )
11fab6: b8 09 00 00 00 mov $0x9,%eax
11fabb: 85 db test %ebx,%ebx
11fabd: 74 58 je 11fb17 <rtems_string_to_unsigned_long+0x73>
return RTEMS_INVALID_ADDRESS;
errno = 0;
11fabf: 89 55 d4 mov %edx,-0x2c(%ebp)
11fac2: e8 d1 d2 01 00 call 13cd98 <__errno>
11fac7: c7 00 00 00 00 00 movl $0x0,(%eax)
*n = 0;
11facd: c7 03 00 00 00 00 movl $0x0,(%ebx)
result = strtoul( s, &end, base );
11fad3: 50 push %eax
11fad4: ff 75 14 pushl 0x14(%ebp)
11fad7: 8d 45 e4 lea -0x1c(%ebp),%eax
11fada: 50 push %eax
11fadb: 57 push %edi
11fadc: e8 63 46 02 00 call 144144 <strtoul>
11fae1: 89 c6 mov %eax,%esi
if ( endptr )
11fae3: 83 c4 10 add $0x10,%esp
11fae6: 8b 55 d4 mov -0x2c(%ebp),%edx
11fae9: 85 d2 test %edx,%edx
11faeb: 74 05 je 11faf2 <rtems_string_to_unsigned_long+0x4e>
*endptr = end;
11faed: 8b 45 e4 mov -0x1c(%ebp),%eax
11faf0: 89 02 mov %eax,(%edx)
if ( end == s )
11faf2: b8 0b 00 00 00 mov $0xb,%eax
11faf7: 39 7d e4 cmp %edi,-0x1c(%ebp)
11fafa: 74 1b je 11fb17 <rtems_string_to_unsigned_long+0x73>
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
11fafc: e8 97 d2 01 00 call 13cd98 <__errno>
11fb01: 83 38 22 cmpl $0x22,(%eax)
11fb04: 75 0d jne 11fb13 <rtems_string_to_unsigned_long+0x6f>
11fb06: 8d 56 ff lea -0x1(%esi),%edx
11fb09: b8 0a 00 00 00 mov $0xa,%eax
11fb0e: 83 fa fd cmp $0xfffffffd,%edx
11fb11: 77 04 ja 11fb17 <rtems_string_to_unsigned_long+0x73><== ALWAYS TAKEN
(( result == 0 ) || ( result == ULONG_MAX )))
return RTEMS_INVALID_NUMBER;
*n = result;
11fb13: 89 33 mov %esi,(%ebx)
11fb15: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
}
11fb17: 8d 65 f4 lea -0xc(%ebp),%esp
11fb1a: 5b pop %ebx
11fb1b: 5e pop %esi
11fb1c: 5f pop %edi
11fb1d: c9 leave
11fb1e: c3 ret
0010f498 <rtems_string_to_unsigned_long_long>:
const char *s,
unsigned long long *n,
char **endptr,
int base
)
{
10f498: 55 push %ebp
10f499: 89 e5 mov %esp,%ebp
10f49b: 57 push %edi
10f49c: 56 push %esi
10f49d: 53 push %ebx
10f49e: 83 ec 2c sub $0x2c,%esp
10f4a1: 8b 7d 08 mov 0x8(%ebp),%edi
10f4a4: 8b 5d 0c mov 0xc(%ebp),%ebx
10f4a7: 8b 75 10 mov 0x10(%ebp),%esi
unsigned long long result;
char *end;
if ( !n )
10f4aa: b8 09 00 00 00 mov $0x9,%eax
10f4af: 85 db test %ebx,%ebx
10f4b1: 74 76 je 10f529 <rtems_string_to_unsigned_long_long+0x91>
return RTEMS_INVALID_ADDRESS;
errno = 0;
10f4b3: e8 34 19 00 00 call 110dec <__errno>
10f4b8: c7 00 00 00 00 00 movl $0x0,(%eax)
*n = 0;
10f4be: c7 03 00 00 00 00 movl $0x0,(%ebx)
10f4c4: c7 43 04 00 00 00 00 movl $0x0,0x4(%ebx)
result = strtoull( s, &end, base );
10f4cb: 50 push %eax
10f4cc: ff 75 14 pushl 0x14(%ebp)
10f4cf: 8d 45 e4 lea -0x1c(%ebp),%eax
10f4d2: 50 push %eax
10f4d3: 57 push %edi
10f4d4: e8 27 4a 00 00 call 113f00 <strtoull>
10f4d9: 89 d1 mov %edx,%ecx
10f4db: 89 c2 mov %eax,%edx
if ( endptr )
10f4dd: 83 c4 10 add $0x10,%esp
10f4e0: 85 f6 test %esi,%esi
10f4e2: 74 05 je 10f4e9 <rtems_string_to_unsigned_long_long+0x51>
*endptr = end;
10f4e4: 8b 45 e4 mov -0x1c(%ebp),%eax
10f4e7: 89 06 mov %eax,(%esi)
if ( end == s )
10f4e9: b8 0b 00 00 00 mov $0xb,%eax
10f4ee: 39 7d e4 cmp %edi,-0x1c(%ebp)
10f4f1: 74 36 je 10f529 <rtems_string_to_unsigned_long_long+0x91>
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
10f4f3: 89 55 d4 mov %edx,-0x2c(%ebp)
10f4f6: 89 4d d0 mov %ecx,-0x30(%ebp)
10f4f9: e8 ee 18 00 00 call 110dec <__errno>
10f4fe: 83 38 22 cmpl $0x22,(%eax)
10f501: 8b 55 d4 mov -0x2c(%ebp),%edx
10f504: 8b 4d d0 mov -0x30(%ebp),%ecx
10f507: 75 19 jne 10f522 <rtems_string_to_unsigned_long_long+0x8a>
10f509: 89 d6 mov %edx,%esi
10f50b: 89 cf mov %ecx,%edi
10f50d: 83 c6 ff add $0xffffffff,%esi
10f510: 83 d7 ff adc $0xffffffff,%edi
10f513: 83 ff ff cmp $0xffffffff,%edi
10f516: 72 0a jb 10f522 <rtems_string_to_unsigned_long_long+0x8a><== NEVER TAKEN
10f518: b8 0a 00 00 00 mov $0xa,%eax
10f51d: 83 fe fd cmp $0xfffffffd,%esi
10f520: 77 07 ja 10f529 <rtems_string_to_unsigned_long_long+0x91><== ALWAYS TAKEN
(( result == 0 ) || ( result == ULONG_LONG_MAX )))
return RTEMS_INVALID_NUMBER;
*n = result;
10f522: 89 13 mov %edx,(%ebx)
10f524: 89 4b 04 mov %ecx,0x4(%ebx)
10f527: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
}
10f529: 8d 65 f4 lea -0xc(%ebp),%esp
10f52c: 5b pop %ebx
10f52d: 5e pop %esi
10f52e: 5f pop %edi
10f52f: c9 leave
10f530: 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 f4 41 12 00 movzbl 0x1241f4,%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 f3 1a 00 00 call 10fd40 <_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 d8 15 00 00 call 10f854 <_Thread_Change_priority>
10e27c: 83 c4 10 add $0x10,%esp
}
_Thread_Enable_dispatch();
10e27f: e8 6d 1a 00 00 call 10fcf1 <_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 64 34 12 00 mov %eax,0x123464 <== NOT EXECUTED
rtems_termios_raw_input_size = raw_input;
10855b: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
10855e: a3 68 34 12 00 mov %eax,0x123468 <== NOT EXECUTED
rtems_termios_raw_output_size = raw_output;
108563: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
108566: a3 6c 34 12 00 mov %eax,0x12346c <== 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 84 55 12 00 pushl 0x125584
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 38 52 12 00 mov 0x125238(%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 0f 14 00 00 call 10ab88 <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 88 55 12 00 mov %eax,0x125588
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 8c 55 12 00 mov %eax,0x12558c
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 84 55 12 00 pushl 0x125584
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 04 24 00 00 call 10ab88 <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 e8 52 12 00 mov 0x1252e8,%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 44 52 12 00 00 cmpl $0x0,0x125244(%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 44 52 12 00 call *0x125244(%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 84 55 12 00 00 cmpl $0x0,0x125584
108521: 75 28 jne 10854b <rtems_termios_initialize+0x37>
sc = rtems_semaphore_create (
108523: 83 ec 0c sub $0xc,%esp
108526: 68 84 55 12 00 push $0x125584
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 3d 26 00 00 call 10ab88 <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 4c 52 12 00 mov 0x12524c(%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 38 52 12 00 mov 0x125238(%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 34 52 12 00 mov 0x125234(%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 84 55 12 00 pushl 0x125584
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 8c 55 12 00 mov 0x12558c,%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 68 34 12 00 mov 0x123468,%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 6c 34 12 00 mov 0x12346c,%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 64 34 12 00 pushl 0x123464
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 84 55 12 00 pushl 0x125584 <== 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 8c 55 12 00 mov 0x12558c,%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 8c 55 12 00 mov %ebx,0x12558c
if (rtems_termios_ttyTail == NULL)
1099a0: 83 3d 88 55 12 00 00 cmpl $0x0,0x125588
1099a7: 75 06 jne 1099af <rtems_termios_open+0x163>
rtems_termios_ttyTail = tty;
1099a9: 89 1d 88 55 12 00 mov %ebx,0x125588
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 70 34 12 00 movsbl 0x123470,%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 70 34 12 00 movsbl 0x123470,%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 70 34 12 00 movsbl 0x123470,%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 70 34 12 00 movsbl 0x123470,%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 70 34 12 00 movsbl 0x123470,%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 70 34 12 00 movsbl 0x123470,%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 70 34 12 00 mov 0x123470,%al
109ba1: 8d 48 01 lea 0x1(%eax),%ecx
109ba4: 88 0d 70 34 12 00 mov %cl,0x123470
109baa: 3c 7a cmp $0x7a,%al
109bac: 75 07 jne 109bb5 <rtems_termios_open+0x369><== ALWAYS TAKEN
c = 'a';
109bae: c6 05 70 34 12 00 61 movb $0x61,0x123470 <== 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 55 0f 00 00 call 10ab88 <rtems_fatal_error_occurred><== NOT EXECUTED
}
}
rtems_semaphore_release (rtems_termios_ttyMutex);
109c33: 83 ec 0c sub $0xc,%esp
109c36: ff 35 84 55 12 00 pushl 0x125584
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 ba 20 00 00 call 10ab88 <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 3c 52 12 00 mov 0x12523c(%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 64 34 12 00 mov 0x123464,%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 48 52 12 00 mov 0x125248(%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 40 52 12 00 mov 0x125240(%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 44 e8 13 00 push $0x13e844
116ade: e8 49 24 00 00 call 118f2c <_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 5b 3e 00 00 call 11a960 <_Watchdog_Remove>
116b05: 83 c4 10 add $0x10,%esp
_Thread_Enable_dispatch();
116b08: e8 50 2c 00 00 call 11975d <_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 84 e8 13 00 mov 0x13e884,%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 78 e5 13 00 00 cmpb $0x0,0x13e578
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 f4 e5 13 00 cmp 0x13e5f4,%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 44 e8 13 00 push $0x13e844
116fa5: e8 82 1f 00 00 call 118f2c <_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 9a 39 00 00 call 11a960 <_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 f4 e5 13 00 sub 0x13e5f4,%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 62 27 00 00 call 11975d <_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 b0 b3 12 00 mov 0x12b3b0,%eax <== NOT EXECUTED
10b551: 8d 50 01 lea 0x1(%eax),%edx <== NOT EXECUTED
10b554: 89 15 b0 b3 12 00 mov %edx,0x12b3b0 <== 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 04 b5 12 00 mov 0x12b504,%eax <== NOT EXECUTED
10b563: 40 inc %eax <== NOT EXECUTED
10b564: a3 04 b5 12 00 mov %eax,0x12b504 <== NOT EXECUTED
_Thread_Disable_dispatch(); /* disable task switches */
/* don't aggravate things */
if (rtems_panic_in_progress > 2)
10b569: 83 3d b0 b3 12 00 02 cmpl $0x2,0x12b3b0 <== 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 80 92 12 00 mov 0x129280,%eax <== NOT EXECUTED
10b57e: ff 70 08 pushl 0x8(%eax) <== NOT EXECUTED
10b581: e8 9e ae 00 00 call 116424 <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 08 ab 00 00 call 1160a8 <__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 80 92 12 00 mov 0x129280,%eax <== NOT EXECUTED
10b5ae: ff 70 0c pushl 0xc(%eax) <== NOT EXECUTED
10b5b1: e8 2a 0a 01 00 call 11bfe0 <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 23 40 12 00 push $0x124023 <== NOT EXECUTED
10b5d2: a1 80 92 12 00 mov 0x129280,%eax <== NOT EXECUTED
10b5d7: ff 70 0c pushl 0xc(%eax) <== NOT EXECUTED
10b5da: e8 8d b1 00 00 call 11676c <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 47 b9 00 00 call 116f3c <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 36 b9 00 00 call 116f3c <strerror> <== NOT EXECUTED
10b606: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
10b609: 50 push %eax <== NOT EXECUTED
10b60a: 68 31 40 12 00 push $0x124031 <== 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 3e 40 12 00 push $0x12403e <== NOT EXECUTED
10b618: a1 80 92 12 00 mov 0x129280,%eax <== NOT EXECUTED
10b61d: ff 70 0c pushl 0xc(%eax) <== NOT EXECUTED
10b620: e8 47 b1 00 00 call 11676c <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 3c 47 12 00 push $0x12473c <== NOT EXECUTED
10b632: a1 80 92 12 00 mov 0x129280,%eax <== NOT EXECUTED
10b637: ff 70 0c pushl 0xc(%eax) <== NOT EXECUTED
10b63a: e8 2d b1 00 00 call 11676c <fprintf> <== NOT EXECUTED
10b63f: 89 c7 mov %eax,%edi <== NOT EXECUTED
(void) fflush(stderr);
10b641: 59 pop %ecx <== NOT EXECUTED
10b642: a1 80 92 12 00 mov 0x129280,%eax <== NOT EXECUTED
10b647: ff 70 0c pushl 0xc(%eax) <== NOT EXECUTED
10b64a: e8 d5 ad 00 00 call 116424 <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 52 40 12 00 push $0x124052 <== 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 67 40 12 00 push $0x124067 <== NOT EXECUTED
10b685: 6a 00 push $0x0 <== NOT EXECUTED
10b687: e8 27 00 00 00 call 10b6b3 <rtems_error> <== NOT EXECUTED
abort();
10b68c: e8 e3 a9 00 00 call 116074 <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
00127f52 <scanInt>:
/*
* Extract an integer value from the database
*/
static int
scanInt(FILE *fp, int *val)
{
127f52: 55 push %ebp
127f53: 89 e5 mov %esp,%ebp
127f55: 57 push %edi
127f56: 56 push %esi
127f57: 53 push %ebx
127f58: 83 ec 3c sub $0x3c,%esp
127f5b: 89 c3 mov %eax,%ebx
127f5d: 89 55 e0 mov %edx,-0x20(%ebp)
127f60: 31 f6 xor %esi,%esi
127f62: c7 45 e4 ff ff ff 7f movl $0x7fffffff,-0x1c(%ebp)
127f69: 31 ff xor %edi,%edi
sign = 1;
}
if (!isdigit(c))
return 0;
d = c - '0';
if ((i > (limit / 10))
127f6b: 89 7d c4 mov %edi,-0x3c(%ebp)
unsigned int limit = INT_MAX;
int sign = 0;
int d;
for (;;) {
c = getc(fp);
127f6e: 8b 43 04 mov 0x4(%ebx),%eax
127f71: 48 dec %eax
127f72: 89 43 04 mov %eax,0x4(%ebx)
127f75: 85 c0 test %eax,%eax
127f77: 79 15 jns 127f8e <scanInt+0x3c> <== ALWAYS TAKEN
127f79: 50 push %eax <== NOT EXECUTED
127f7a: 50 push %eax <== NOT EXECUTED
127f7b: 53 push %ebx <== NOT EXECUTED
127f7c: ff 35 a0 29 16 00 pushl 0x1629a0 <== NOT EXECUTED
127f82: e8 09 9c 01 00 call 141b90 <__srget_r> <== NOT EXECUTED
127f87: 89 c1 mov %eax,%ecx <== NOT EXECUTED
127f89: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
127f8c: eb 08 jmp 127f96 <scanInt+0x44> <== NOT EXECUTED
127f8e: 8b 03 mov (%ebx),%eax
127f90: 0f b6 08 movzbl (%eax),%ecx
127f93: 40 inc %eax
127f94: 89 03 mov %eax,(%ebx)
if (c == ':')
127f96: 83 f9 3a cmp $0x3a,%ecx
127f99: 74 4a je 127fe5 <scanInt+0x93>
break;
if (sign == 0) {
127f9b: 85 f6 test %esi,%esi
127f9d: 75 11 jne 127fb0 <scanInt+0x5e> <== NEVER TAKEN
if (c == '-') {
sign = -1;
limit++;
continue;
127f9f: 66 be 01 00 mov $0x1,%si
for (;;) {
c = getc(fp);
if (c == ':')
break;
if (sign == 0) {
if (c == '-') {
127fa3: 83 f9 2d cmp $0x2d,%ecx
127fa6: 75 08 jne 127fb0 <scanInt+0x5e> <== ALWAYS TAKEN
sign = -1;
limit++;
127fa8: ff 45 e4 incl -0x1c(%ebp) <== NOT EXECUTED
127fab: 83 ce ff or $0xffffffff,%esi <== NOT EXECUTED
continue;
127fae: eb be jmp 127f6e <scanInt+0x1c> <== NOT EXECUTED
}
sign = 1;
}
if (!isdigit(c))
127fb0: a1 7c 29 16 00 mov 0x16297c,%eax
127fb5: f6 44 08 01 04 testb $0x4,0x1(%eax,%ecx,1)
127fba: 74 3f je 127ffb <scanInt+0xa9> <== NEVER TAKEN
return 0;
d = c - '0';
if ((i > (limit / 10))
127fbc: 8b 45 e4 mov -0x1c(%ebp),%eax
127fbf: bf 0a 00 00 00 mov $0xa,%edi
127fc4: 31 d2 xor %edx,%edx
127fc6: f7 f7 div %edi
127fc8: 89 55 d4 mov %edx,-0x2c(%ebp)
127fcb: 39 45 c4 cmp %eax,-0x3c(%ebp)
127fce: 77 2b ja 127ffb <scanInt+0xa9> <== NEVER TAKEN
}
sign = 1;
}
if (!isdigit(c))
return 0;
d = c - '0';
127fd0: 83 e9 30 sub $0x30,%ecx
if ((i > (limit / 10))
127fd3: 39 45 c4 cmp %eax,-0x3c(%ebp)
127fd6: 75 04 jne 127fdc <scanInt+0x8a> <== ALWAYS TAKEN
127fd8: 39 d1 cmp %edx,%ecx <== NOT EXECUTED
127fda: 77 1f ja 127ffb <scanInt+0xa9> <== NOT EXECUTED
|| ((i == (limit / 10)) && (d > (limit % 10))))
return 0;
i = i * 10 + d;
127fdc: 6b 7d c4 0a imul $0xa,-0x3c(%ebp),%edi
127fe0: 8d 3c 39 lea (%ecx,%edi,1),%edi
127fe3: eb 86 jmp 127f6b <scanInt+0x19>
127fe5: 8b 7d c4 mov -0x3c(%ebp),%edi
}
if (sign == 0)
127fe8: 85 f6 test %esi,%esi
127fea: 74 0f je 127ffb <scanInt+0xa9> <== NEVER TAKEN
return 0;
*val = i * sign;
127fec: 0f af f7 imul %edi,%esi
127fef: 8b 45 e0 mov -0x20(%ebp),%eax
127ff2: 89 30 mov %esi,(%eax)
127ff4: b8 01 00 00 00 mov $0x1,%eax
return 1;
127ff9: eb 02 jmp 127ffd <scanInt+0xab>
127ffb: 31 c0 xor %eax,%eax
}
127ffd: 8d 65 f4 lea -0xc(%ebp),%esp
128000: 5b pop %ebx
128001: 5e pop %esi
128002: 5f pop %edi
128003: c9 leave
128004: c3 ret
00128005 <scanString>:
/*
* Extract a string value from the database
*/
static int
scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag)
{
128005: 55 push %ebp
128006: 89 e5 mov %esp,%ebp
128008: 57 push %edi
128009: 56 push %esi
12800a: 53 push %ebx
12800b: 83 ec 1c sub $0x1c,%esp
12800e: 89 c3 mov %eax,%ebx
128010: 89 ce mov %ecx,%esi
128012: 8b 7d 08 mov 0x8(%ebp),%edi
128015: 8b 4d 0c mov 0xc(%ebp),%ecx
int c;
*name = *bufp;
128018: 8b 06 mov (%esi),%eax
12801a: 89 02 mov %eax,(%edx)
for (;;) {
c = getc(fp);
12801c: 8b 43 04 mov 0x4(%ebx),%eax
12801f: 48 dec %eax
128020: 89 43 04 mov %eax,0x4(%ebx)
128023: 85 c0 test %eax,%eax
128025: 79 19 jns 128040 <scanString+0x3b>
128027: 52 push %edx
128028: 52 push %edx
128029: 53 push %ebx
12802a: ff 35 a0 29 16 00 pushl 0x1629a0
128030: 89 4d e4 mov %ecx,-0x1c(%ebp)
128033: e8 58 9b 01 00 call 141b90 <__srget_r>
128038: 83 c4 10 add $0x10,%esp
12803b: 8b 4d e4 mov -0x1c(%ebp),%ecx
12803e: eb 08 jmp 128048 <scanString+0x43>
128040: 8b 13 mov (%ebx),%edx
128042: 0f b6 02 movzbl (%edx),%eax
128045: 42 inc %edx
128046: 89 13 mov %edx,(%ebx)
if (c == ':') {
128048: 83 f8 3a cmp $0x3a,%eax
12804b: 75 06 jne 128053 <scanString+0x4e>
if (nlFlag)
12804d: 85 c9 test %ecx,%ecx
12804f: 74 21 je 128072 <scanString+0x6d> <== ALWAYS TAKEN
128051: eb 2f jmp 128082 <scanString+0x7d> <== NOT EXECUTED
return 0;
break;
}
if (c == '\n') {
128053: 83 f8 0a cmp $0xa,%eax
128056: 75 06 jne 12805e <scanString+0x59>
if (!nlFlag)
128058: 85 c9 test %ecx,%ecx
12805a: 75 16 jne 128072 <scanString+0x6d> <== ALWAYS TAKEN
12805c: eb 24 jmp 128082 <scanString+0x7d> <== NOT EXECUTED
return 0;
break;
}
if (c == EOF)
12805e: 83 f8 ff cmp $0xffffffff,%eax
128061: 74 1f je 128082 <scanString+0x7d> <== NEVER TAKEN
return 0;
if (*nleft < 2)
128063: 83 3f 01 cmpl $0x1,(%edi)
128066: 76 1a jbe 128082 <scanString+0x7d> <== NEVER TAKEN
return 0;
**bufp = c;
128068: 8b 16 mov (%esi),%edx
12806a: 88 02 mov %al,(%edx)
++(*bufp);
12806c: ff 06 incl (%esi)
--(*nleft);
12806e: ff 0f decl (%edi)
}
128070: eb aa jmp 12801c <scanString+0x17>
**bufp = '\0';
128072: 8b 06 mov (%esi),%eax
128074: c6 00 00 movb $0x0,(%eax)
++(*bufp);
128077: ff 06 incl (%esi)
--(*nleft);
128079: ff 0f decl (%edi)
12807b: b8 01 00 00 00 mov $0x1,%eax
return 1;
128080: eb 02 jmp 128084 <scanString+0x7f>
128082: 31 c0 xor %eax,%eax
}
128084: 8d 65 f4 lea -0xc(%ebp),%esp
128087: 5b pop %ebx
128088: 5e pop %esi
128089: 5f pop %edi
12808a: c9 leave
12808b: c3 ret
0012808c <scangr>:
FILE *fp,
struct group *grp,
char *buffer,
size_t bufsize
)
{
12808c: 55 push %ebp
12808d: 89 e5 mov %esp,%ebp
12808f: 57 push %edi
128090: 56 push %esi
128091: 53 push %ebx
128092: 83 ec 34 sub $0x34,%esp
128095: 89 c6 mov %eax,%esi
128097: 89 d3 mov %edx,%ebx
128099: 89 4d d4 mov %ecx,-0x2c(%ebp)
int grgid;
char *grmem, *cp;
int memcount;
if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)
12809c: 8d 7d d4 lea -0x2c(%ebp),%edi
12809f: 6a 00 push $0x0
1280a1: 8d 45 08 lea 0x8(%ebp),%eax
1280a4: 50 push %eax
1280a5: 89 f9 mov %edi,%ecx
1280a7: 89 f0 mov %esi,%eax
1280a9: e8 57 ff ff ff call 128005 <scanString>
1280ae: 83 c4 10 add $0x10,%esp
1280b1: 85 c0 test %eax,%eax
1280b3: 0f 84 c8 00 00 00 je 128181 <scangr+0xf5> <== NEVER TAKEN
|| !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0)
1280b9: 50 push %eax
1280ba: 50 push %eax
1280bb: 8d 53 04 lea 0x4(%ebx),%edx
1280be: 6a 00 push $0x0
1280c0: 8d 45 08 lea 0x8(%ebp),%eax
1280c3: 50 push %eax
1280c4: 89 f9 mov %edi,%ecx
1280c6: 89 f0 mov %esi,%eax
1280c8: e8 38 ff ff ff call 128005 <scanString>
{
int grgid;
char *grmem, *cp;
int memcount;
if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)
1280cd: 83 c4 10 add $0x10,%esp
1280d0: 85 c0 test %eax,%eax
1280d2: 0f 84 a9 00 00 00 je 128181 <scangr+0xf5> <== NEVER TAKEN
|| !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0)
|| !scanInt(fp, &grgid)
1280d8: 8d 55 e4 lea -0x1c(%ebp),%edx
1280db: 89 f0 mov %esi,%eax
1280dd: e8 70 fe ff ff call 127f52 <scanInt>
{
int grgid;
char *grmem, *cp;
int memcount;
if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)
1280e2: 85 c0 test %eax,%eax
1280e4: 0f 84 97 00 00 00 je 128181 <scangr+0xf5> <== NEVER TAKEN
|| !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0)
|| !scanInt(fp, &grgid)
|| !scanString(fp, &grmem, &buffer, &bufsize, 1))
1280ea: 51 push %ecx
1280eb: 51 push %ecx
1280ec: 8d 55 e0 lea -0x20(%ebp),%edx
1280ef: 6a 01 push $0x1
1280f1: 8d 45 08 lea 0x8(%ebp),%eax
1280f4: 50 push %eax
1280f5: 89 f9 mov %edi,%ecx
1280f7: 89 f0 mov %esi,%eax
1280f9: e8 07 ff ff ff call 128005 <scanString>
{
int grgid;
char *grmem, *cp;
int memcount;
if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)
1280fe: 83 c4 10 add $0x10,%esp
128101: 85 c0 test %eax,%eax
128103: 74 7c je 128181 <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;
128105: 8b 45 e4 mov -0x1c(%ebp),%eax
128108: 66 89 43 08 mov %ax,0x8(%ebx)
/*
* Determine number of members
*/
for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {
12810c: 8b 7d e0 mov -0x20(%ebp),%edi
12810f: 89 fa mov %edi,%edx
128111: b8 01 00 00 00 mov $0x1,%eax
128116: eb 12 jmp 12812a <scangr+0x9e>
if(*cp == ',')
memcount++;
128118: 80 7d d3 2c cmpb $0x2c,-0x2d(%ebp)
12811c: 0f 94 c1 sete %cl
12811f: 89 ce mov %ecx,%esi
128121: 81 e6 ff 00 00 00 and $0xff,%esi
128127: 01 f0 add %esi,%eax
grp->gr_gid = grgid;
/*
* Determine number of members
*/
for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {
128129: 42 inc %edx
12812a: 8a 0a mov (%edx),%cl
12812c: 88 4d d3 mov %cl,-0x2d(%ebp)
12812f: 84 c9 test %cl,%cl
128131: 75 e5 jne 128118 <scangr+0x8c>
}
/*
* Hack to produce (hopefully) a suitably-aligned array of pointers
*/
if (bufsize < (((memcount+1)*sizeof(char *)) + 15))
128133: 8d 04 85 13 00 00 00 lea 0x13(,%eax,4),%eax
12813a: 39 45 08 cmp %eax,0x8(%ebp)
12813d: 72 42 jb 128181 <scangr+0xf5> <== NEVER TAKEN
return 0;
grp->gr_mem = (char **)(((uintptr_t)buffer + 15) & ~15);
12813f: 8b 45 d4 mov -0x2c(%ebp),%eax
128142: 83 c0 0f add $0xf,%eax
128145: 83 e0 f0 and $0xfffffff0,%eax
128148: 89 43 0c mov %eax,0xc(%ebx)
/*
* Fill in pointer array
*/
grp->gr_mem[0] = grmem;
12814b: 89 38 mov %edi,(%eax)
12814d: 8b 45 e0 mov -0x20(%ebp),%eax
128150: 40 inc %eax
128151: ba 01 00 00 00 mov $0x1,%edx
for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {
128156: eb 11 jmp 128169 <scangr+0xdd>
if(*cp == ',') {
128158: 80 f9 2c cmp $0x2c,%cl
12815b: 75 0b jne 128168 <scangr+0xdc> <== ALWAYS TAKEN
*cp = '\0';
12815d: c6 40 ff 00 movb $0x0,-0x1(%eax) <== NOT EXECUTED
grp->gr_mem[memcount++] = cp + 1;
128161: 8b 4b 0c mov 0xc(%ebx),%ecx <== NOT EXECUTED
128164: 89 04 91 mov %eax,(%ecx,%edx,4) <== NOT EXECUTED
128167: 42 inc %edx <== NOT EXECUTED
128168: 40 inc %eax
/*
* Fill in pointer array
*/
grp->gr_mem[0] = grmem;
for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {
128169: 8a 48 ff mov -0x1(%eax),%cl
12816c: 84 c9 test %cl,%cl
12816e: 75 e8 jne 128158 <scangr+0xcc>
if(*cp == ',') {
*cp = '\0';
grp->gr_mem[memcount++] = cp + 1;
}
}
grp->gr_mem[memcount] = NULL;
128170: 8b 43 0c mov 0xc(%ebx),%eax
128173: c7 04 90 00 00 00 00 movl $0x0,(%eax,%edx,4)
12817a: b8 01 00 00 00 mov $0x1,%eax
return 1;
12817f: eb 02 jmp 128183 <scangr+0xf7>
128181: 31 c0 xor %eax,%eax
}
128183: 8d 65 f4 lea -0xc(%ebp),%esp
128186: 5b pop %ebx
128187: 5e pop %esi
128188: 5f pop %edi
128189: c9 leave
12818a: c3 ret
001281c3 <scanpw>:
FILE *fp,
struct passwd *pwd,
char *buffer,
size_t bufsize
)
{
1281c3: 55 push %ebp
1281c4: 89 e5 mov %esp,%ebp
1281c6: 57 push %edi
1281c7: 56 push %esi
1281c8: 53 push %ebx
1281c9: 83 ec 34 sub $0x34,%esp
1281cc: 89 c6 mov %eax,%esi
1281ce: 89 d3 mov %edx,%ebx
1281d0: 89 4d d4 mov %ecx,-0x2c(%ebp)
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
1281d3: 8d 7d d4 lea -0x2c(%ebp),%edi
1281d6: 6a 00 push $0x0
1281d8: 8d 45 08 lea 0x8(%ebp),%eax
1281db: 50 push %eax
1281dc: 89 f9 mov %edi,%ecx
1281de: 89 f0 mov %esi,%eax
1281e0: e8 20 fe ff ff call 128005 <scanString>
1281e5: 83 c4 10 add $0x10,%esp
1281e8: 85 c0 test %eax,%eax
1281ea: 0f 84 c4 00 00 00 je 1282b4 <scanpw+0xf1> <== NEVER TAKEN
|| !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0)
1281f0: 51 push %ecx
1281f1: 51 push %ecx
1281f2: 8d 53 04 lea 0x4(%ebx),%edx
1281f5: 6a 00 push $0x0
1281f7: 8d 45 08 lea 0x8(%ebp),%eax
1281fa: 50 push %eax
1281fb: 89 f9 mov %edi,%ecx
1281fd: 89 f0 mov %esi,%eax
1281ff: e8 01 fe ff ff call 128005 <scanString>
size_t bufsize
)
{
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
128204: 83 c4 10 add $0x10,%esp
128207: 85 c0 test %eax,%eax
128209: 0f 84 a5 00 00 00 je 1282b4 <scanpw+0xf1> <== NEVER TAKEN
|| !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0)
|| !scanInt(fp, &pwuid)
12820f: 8d 55 e4 lea -0x1c(%ebp),%edx
128212: 89 f0 mov %esi,%eax
128214: e8 39 fd ff ff call 127f52 <scanInt>
size_t bufsize
)
{
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
128219: 85 c0 test %eax,%eax
12821b: 0f 84 93 00 00 00 je 1282b4 <scanpw+0xf1> <== NEVER TAKEN
|| !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0)
|| !scanInt(fp, &pwuid)
|| !scanInt(fp, &pwgid)
128221: 8d 55 e0 lea -0x20(%ebp),%edx
128224: 89 f0 mov %esi,%eax
128226: e8 27 fd ff ff call 127f52 <scanInt>
size_t bufsize
)
{
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
12822b: 85 c0 test %eax,%eax
12822d: 0f 84 81 00 00 00 je 1282b4 <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)
128233: 52 push %edx
128234: 52 push %edx
128235: 8d 53 0c lea 0xc(%ebx),%edx
128238: 6a 00 push $0x0
12823a: 8d 45 08 lea 0x8(%ebp),%eax
12823d: 50 push %eax
12823e: 89 f9 mov %edi,%ecx
128240: 89 f0 mov %esi,%eax
128242: e8 be fd ff ff call 128005 <scanString>
size_t bufsize
)
{
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
128247: 83 c4 10 add $0x10,%esp
12824a: 85 c0 test %eax,%eax
12824c: 74 66 je 1282b4 <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)
12824e: 50 push %eax
12824f: 50 push %eax
128250: 8d 53 10 lea 0x10(%ebx),%edx
128253: 6a 00 push $0x0
128255: 8d 45 08 lea 0x8(%ebp),%eax
128258: 50 push %eax
128259: 89 f9 mov %edi,%ecx
12825b: 89 f0 mov %esi,%eax
12825d: e8 a3 fd ff ff call 128005 <scanString>
size_t bufsize
)
{
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
128262: 83 c4 10 add $0x10,%esp
128265: 85 c0 test %eax,%eax
128267: 74 4b je 1282b4 <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)
128269: 51 push %ecx
12826a: 51 push %ecx
12826b: 8d 53 14 lea 0x14(%ebx),%edx
12826e: 6a 00 push $0x0
128270: 8d 45 08 lea 0x8(%ebp),%eax
128273: 50 push %eax
128274: 89 f9 mov %edi,%ecx
128276: 89 f0 mov %esi,%eax
128278: e8 88 fd ff ff call 128005 <scanString>
size_t bufsize
)
{
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
12827d: 83 c4 10 add $0x10,%esp
128280: 85 c0 test %eax,%eax
128282: 74 30 je 1282b4 <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))
128284: 52 push %edx
128285: 52 push %edx
128286: 8d 53 18 lea 0x18(%ebx),%edx
128289: 6a 01 push $0x1
12828b: 8d 45 08 lea 0x8(%ebp),%eax
12828e: 50 push %eax
12828f: 89 f9 mov %edi,%ecx
128291: 89 f0 mov %esi,%eax
128293: e8 6d fd ff ff call 128005 <scanString>
size_t bufsize
)
{
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
128298: 83 c4 10 add $0x10,%esp
12829b: 85 c0 test %eax,%eax
12829d: 74 15 je 1282b4 <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;
12829f: 8b 45 e4 mov -0x1c(%ebp),%eax
1282a2: 66 89 43 08 mov %ax,0x8(%ebx)
pwd->pw_gid = pwgid;
1282a6: 8b 45 e0 mov -0x20(%ebp),%eax
1282a9: 66 89 43 0a mov %ax,0xa(%ebx)
1282ad: b8 01 00 00 00 mov $0x1,%eax
return 1;
1282b2: eb 02 jmp 1282b6 <scanpw+0xf3>
1282b4: 31 c0 xor %eax,%eax
}
1282b6: 8d 65 f4 lea -0xc(%ebp),%esp
1282b9: 5b pop %ebx
1282ba: 5e pop %esi
1282bb: 5f pop %edi
1282bc: c9 leave
1282bd: c3 ret
00127f05 <setgid>:
*/
int setgid(
gid_t gid
)
{
127f05: 55 push %ebp <== NOT EXECUTED
127f06: 89 e5 mov %esp,%ebp <== NOT EXECUTED
_POSIX_types_Gid = gid;
127f08: a1 fc 21 16 00 mov 0x1621fc,%eax <== NOT EXECUTED
127f0d: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
127f10: 66 89 50 34 mov %dx,0x34(%eax) <== NOT EXECUTED
return 0;
}
127f14: 31 c0 xor %eax,%eax <== NOT EXECUTED
127f16: c9 leave <== NOT EXECUTED
127f17: c3 ret <== NOT EXECUTED
001283c7 <setgrent>:
return NULL;
return &grent;
}
void setgrent(void)
{
1283c7: 55 push %ebp <== NOT EXECUTED
1283c8: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1283ca: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
init_etc_passwd_group();
1283cd: e8 24 ff ff ff call 1282f6 <init_etc_passwd_group> <== NOT EXECUTED
if (group_fp != NULL)
1283d2: a1 8c 76 16 00 mov 0x16768c,%eax <== NOT EXECUTED
1283d7: 85 c0 test %eax,%eax <== NOT EXECUTED
1283d9: 74 0c je 1283e7 <setgrent+0x20> <== NOT EXECUTED
fclose(group_fp);
1283db: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1283de: 50 push %eax <== NOT EXECUTED
1283df: e8 00 4b 01 00 call 13cee4 <fclose> <== NOT EXECUTED
1283e4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
group_fp = fopen("/etc/group", "r");
1283e7: 52 push %edx <== NOT EXECUTED
1283e8: 52 push %edx <== NOT EXECUTED
1283e9: 68 0a 6b 15 00 push $0x156b0a <== NOT EXECUTED
1283ee: 68 d6 38 15 00 push $0x1538d6 <== NOT EXECUTED
1283f3: e8 04 53 01 00 call 13d6fc <fopen> <== NOT EXECUTED
1283f8: a3 8c 76 16 00 mov %eax,0x16768c <== NOT EXECUTED
1283fd: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
128400: c9 leave <== NOT EXECUTED
128401: c3 ret <== NOT EXECUTED
0012856b <setpwent>:
return NULL;
return &pwent;
}
void setpwent(void)
{
12856b: 55 push %ebp <== NOT EXECUTED
12856c: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12856e: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
init_etc_passwd_group();
128571: e8 80 fd ff ff call 1282f6 <init_etc_passwd_group> <== NOT EXECUTED
if (passwd_fp != NULL)
128576: a1 a4 75 16 00 mov 0x1675a4,%eax <== NOT EXECUTED
12857b: 85 c0 test %eax,%eax <== NOT EXECUTED
12857d: 74 0c je 12858b <setpwent+0x20> <== NOT EXECUTED
fclose(passwd_fp);
12857f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
128582: 50 push %eax <== NOT EXECUTED
128583: e8 5c 49 01 00 call 13cee4 <fclose> <== NOT EXECUTED
128588: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
passwd_fp = fopen("/etc/passwd", "r");
12858b: 50 push %eax <== NOT EXECUTED
12858c: 50 push %eax <== NOT EXECUTED
12858d: 68 0a 6b 15 00 push $0x156b0a <== NOT EXECUTED
128592: 68 91 38 15 00 push $0x153891 <== NOT EXECUTED
128597: e8 60 51 01 00 call 13d6fc <fopen> <== NOT EXECUTED
12859c: a3 a4 75 16 00 mov %eax,0x1675a4 <== NOT EXECUTED
1285a1: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
1285a4: c9 leave <== NOT EXECUTED
1285a5: 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 21 16 00 mov 0x1621fc,%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
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 94 ea 02 00 call 13cd98 <__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 3f ea 02 00 call 13cd98 <__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
00129270 <statvfs>:
#include <sys/statvfs.h>
int
statvfs (const char *path, struct statvfs *sb)
{
129270: 55 push %ebp <== NOT EXECUTED
129271: 89 e5 mov %esp,%ebp <== NOT EXECUTED
129273: 57 push %edi <== NOT EXECUTED
129274: 56 push %esi <== NOT EXECUTED
129275: 53 push %ebx <== NOT EXECUTED
129276: 83 ec 38 sub $0x38,%esp <== NOT EXECUTED
129279: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
12927c: 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 ) )
12927f: 31 c0 xor %eax,%eax <== NOT EXECUTED
129281: 83 c9 ff or $0xffffffff,%ecx <== NOT EXECUTED
129284: 89 d7 mov %edx,%edi <== NOT EXECUTED
129286: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED
129288: f7 d1 not %ecx <== NOT EXECUTED
12928a: 49 dec %ecx <== NOT EXECUTED
12928b: 6a 01 push $0x1 <== NOT EXECUTED
12928d: 8d 5d d4 lea -0x2c(%ebp),%ebx <== NOT EXECUTED
129290: 53 push %ebx <== NOT EXECUTED
129291: 6a 00 push $0x0 <== NOT EXECUTED
129293: 51 push %ecx <== NOT EXECUTED
129294: 52 push %edx <== NOT EXECUTED
129295: e8 97 3b fe ff call 10ce31 <rtems_filesystem_evaluate_path><== NOT EXECUTED
12929a: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
12929d: 83 cf ff or $0xffffffff,%edi <== NOT EXECUTED
1292a0: 85 c0 test %eax,%eax <== NOT EXECUTED
1292a2: 75 4b jne 1292ef <statvfs+0x7f> <== NOT EXECUTED
return -1;
mt_entry = loc.mt_entry;
1292a4: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
fs_mount_root = &mt_entry->mt_fs_root;
1292a7: 8b 4a 28 mov 0x28(%edx),%ecx <== NOT EXECUTED
1292aa: 83 79 44 00 cmpl $0x0,0x44(%ecx) <== NOT EXECUTED
1292ae: 75 0d jne 1292bd <statvfs+0x4d> <== NOT EXECUTED
if ( !fs_mount_root->ops->statvfs_h )
rtems_set_errno_and_return_minus_one( ENOTSUP );
1292b0: e8 e3 3a 01 00 call 13cd98 <__errno> <== NOT EXECUTED
1292b5: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
1292bb: eb 32 jmp 1292ef <statvfs+0x7f> <== NOT EXECUTED
memset (sb, 0, sizeof (struct statvfs));
1292bd: b9 0e 00 00 00 mov $0xe,%ecx <== NOT EXECUTED
1292c2: 89 f7 mov %esi,%edi <== NOT EXECUTED
1292c4: f3 ab rep stos %eax,%es:(%edi) <== NOT EXECUTED
result = ( fs_mount_root->ops->statvfs_h )( fs_mount_root, sb );
1292c6: 50 push %eax <== NOT EXECUTED
1292c7: 50 push %eax <== NOT EXECUTED
1292c8: 8b 42 28 mov 0x28(%edx),%eax <== NOT EXECUTED
1292cb: 56 push %esi <== NOT EXECUTED
1292cc: 83 c2 1c add $0x1c,%edx <== NOT EXECUTED
1292cf: 52 push %edx <== NOT EXECUTED
1292d0: ff 50 44 call *0x44(%eax) <== NOT EXECUTED
1292d3: 89 c7 mov %eax,%edi <== NOT EXECUTED
rtems_filesystem_freenode( &loc );
1292d5: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
1292d8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1292db: 85 c0 test %eax,%eax <== NOT EXECUTED
1292dd: 74 10 je 1292ef <statvfs+0x7f> <== NOT EXECUTED
1292df: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED
1292e2: 85 c0 test %eax,%eax <== NOT EXECUTED
1292e4: 74 09 je 1292ef <statvfs+0x7f> <== NOT EXECUTED
1292e6: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1292e9: 53 push %ebx <== NOT EXECUTED
1292ea: ff d0 call *%eax <== NOT EXECUTED
1292ec: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
return result;
}
1292ef: 89 f8 mov %edi,%eax <== NOT EXECUTED
1292f1: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1292f4: 5b pop %ebx <== NOT EXECUTED
1292f5: 5e pop %esi <== NOT EXECUTED
1292f6: 5f pop %edi <== NOT EXECUTED
1292f7: c9 leave <== NOT EXECUTED
1292f8: c3 ret <== NOT EXECUTED
00129344 <symlink>:
int symlink(
const char *actualpath,
const char *sympath
)
{
129344: 55 push %ebp
129345: 89 e5 mov %esp,%ebp
129347: 56 push %esi
129348: 53 push %ebx
129349: 83 ec 24 sub $0x24,%esp
12934c: 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 );
12934f: 8d 5d dc lea -0x24(%ebp),%ebx
129352: 53 push %ebx
129353: 8d 45 f4 lea -0xc(%ebp),%eax
129356: 50 push %eax
129357: 56 push %esi
129358: e8 57 50 fe ff call 10e3b4 <rtems_filesystem_get_start_loc>
if ( !loc.ops->evalformake_h ) {
12935d: 8b 45 e8 mov -0x18(%ebp),%eax
129360: 8b 40 04 mov 0x4(%eax),%eax
129363: 83 c4 10 add $0x10,%esp
129366: 85 c0 test %eax,%eax
129368: 74 30 je 12939a <symlink+0x56> <== NEVER TAKEN
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
result = (*loc.ops->evalformake_h)( &sympath[i], &loc, &name_start );
12936a: 51 push %ecx
12936b: 8d 55 f0 lea -0x10(%ebp),%edx
12936e: 52 push %edx
12936f: 53 push %ebx
129370: 03 75 f4 add -0xc(%ebp),%esi
129373: 56 push %esi
129374: ff d0 call *%eax
if ( result != 0 )
129376: 83 c4 10 add $0x10,%esp
129379: 83 ce ff or $0xffffffff,%esi
12937c: 85 c0 test %eax,%eax
12937e: 75 50 jne 1293d0 <symlink+0x8c>
return -1;
if ( !loc.ops->symlink_h ) {
129380: 8b 55 e8 mov -0x18(%ebp),%edx
129383: 8b 42 38 mov 0x38(%edx),%eax
129386: 85 c0 test %eax,%eax
129388: 75 20 jne 1293aa <symlink+0x66> <== ALWAYS TAKEN
rtems_filesystem_freenode( &loc );
12938a: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED
12938d: 85 c0 test %eax,%eax <== NOT EXECUTED
12938f: 74 09 je 12939a <symlink+0x56> <== NOT EXECUTED
129391: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
129394: 53 push %ebx <== NOT EXECUTED
129395: ff d0 call *%eax <== NOT EXECUTED
129397: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
12939a: e8 f9 39 01 00 call 13cd98 <__errno> <== NOT EXECUTED
12939f: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
1293a5: 83 ce ff or $0xffffffff,%esi <== NOT EXECUTED
1293a8: eb 26 jmp 1293d0 <symlink+0x8c> <== NOT EXECUTED
}
result = (*loc.ops->symlink_h)( &loc, actualpath, name_start);
1293aa: 52 push %edx
1293ab: ff 75 f0 pushl -0x10(%ebp)
1293ae: ff 75 08 pushl 0x8(%ebp)
1293b1: 53 push %ebx
1293b2: ff d0 call *%eax
1293b4: 89 c6 mov %eax,%esi
rtems_filesystem_freenode( &loc );
1293b6: 8b 45 e8 mov -0x18(%ebp),%eax
1293b9: 83 c4 10 add $0x10,%esp
1293bc: 85 c0 test %eax,%eax
1293be: 74 10 je 1293d0 <symlink+0x8c> <== NEVER TAKEN
1293c0: 8b 40 1c mov 0x1c(%eax),%eax
1293c3: 85 c0 test %eax,%eax
1293c5: 74 09 je 1293d0 <symlink+0x8c> <== NEVER TAKEN
1293c7: 83 ec 0c sub $0xc,%esp
1293ca: 53 push %ebx
1293cb: ff d0 call *%eax
1293cd: 83 c4 10 add $0x10,%esp
return result;
}
1293d0: 89 f0 mov %esi,%eax
1293d2: 8d 65 f8 lea -0x8(%ebp),%esp
1293d5: 5b pop %ebx
1293d6: 5e pop %esi
1293d7: c9 leave
1293d8: 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 ec 00 00 00 mov 0xec(%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 2c 62 12 00 mov 0x12622c,%edx
1093ae: 8b 9a ec 00 00 00 mov 0xec(%edx),%ebx
_Thread_Executing->libc_reent = this_reent;
1093b4: 89 8a ec 00 00 00 mov %ecx,0xec(%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 ec 00 00 00 pushl 0xec(%eax)
1093c7: e8 9c a3 00 00 call 113768 <_fwalk>
_Thread_Executing->libc_reent = current_reent;
1093cc: a1 2c 62 12 00 mov 0x12622c,%eax
1093d1: 89 98 ec 00 00 00 mov %ebx,0xec(%eax)
1093d7: 83 c4 10 add $0x10,%esp
}
}
1093da: 8b 5d fc mov -0x4(%ebp),%ebx
1093dd: c9 leave
1093de: c3 ret
001149e0 <tcsetattr>:
int tcsetattr(
int fd,
int opt,
struct termios *tp
)
{
1149e0: 55 push %ebp
1149e1: 89 e5 mov %esp,%ebp
1149e3: 56 push %esi
1149e4: 53 push %ebx
1149e5: 8b 5d 08 mov 0x8(%ebp),%ebx
1149e8: 8b 45 0c mov 0xc(%ebp),%eax
1149eb: 8b 75 10 mov 0x10(%ebp),%esi
switch (opt) {
1149ee: 85 c0 test %eax,%eax
1149f0: 74 22 je 114a14 <tcsetattr+0x34> <== ALWAYS TAKEN
1149f2: 48 dec %eax <== NOT EXECUTED
1149f3: 74 0d je 114a02 <tcsetattr+0x22> <== NOT EXECUTED
default:
rtems_set_errno_and_return_minus_one( ENOTSUP );
1149f5: e8 3e 38 00 00 call 118238 <__errno> <== NOT EXECUTED
1149fa: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
114a00: eb 2a jmp 114a2c <tcsetattr+0x4c> <== NOT EXECUTED
case TCSADRAIN:
if (ioctl( fd, RTEMS_IO_TCDRAIN, NULL ) < 0)
114a02: 50 push %eax <== NOT EXECUTED
114a03: 6a 00 push $0x0 <== NOT EXECUTED
114a05: 6a 03 push $0x3 <== NOT EXECUTED
114a07: 53 push %ebx <== NOT EXECUTED
114a08: e8 8f 31 00 00 call 117b9c <ioctl> <== NOT EXECUTED
114a0d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
114a10: 85 c0 test %eax,%eax <== NOT EXECUTED
114a12: 78 18 js 114a2c <tcsetattr+0x4c> <== NOT EXECUTED
return -1;
/*
* Fall through to....
*/
case TCSANOW:
return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp );
114a14: 89 75 10 mov %esi,0x10(%ebp)
114a17: c7 45 0c 02 00 00 00 movl $0x2,0xc(%ebp)
114a1e: 89 5d 08 mov %ebx,0x8(%ebp)
}
}
114a21: 8d 65 f8 lea -0x8(%ebp),%esp
114a24: 5b pop %ebx
114a25: 5e pop %esi
114a26: c9 leave
return -1;
/*
* Fall through to....
*/
case TCSANOW:
return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp );
114a27: e9 70 31 00 00 jmp 117b9c <ioctl>
}
}
114a2c: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
114a2f: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
114a32: 5b pop %ebx <== NOT EXECUTED
114a33: 5e pop %esi <== NOT EXECUTED
114a34: c9 leave <== NOT EXECUTED
114a35: c3 ret <== NOT EXECUTED
001112e4 <unlink>:
#include <rtems/seterr.h>
int unlink(
const char *path
)
{
1112e4: 55 push %ebp
1112e5: 89 e5 mov %esp,%ebp
1112e7: 57 push %edi
1112e8: 56 push %esi
1112e9: 53 push %ebx
1112ea: 83 ec 58 sub $0x58,%esp
/*
* Get the node to be unlinked. Find the parent path first.
*/
parentpathlen = rtems_filesystem_dirname ( path );
1112ed: ff 75 08 pushl 0x8(%ebp)
1112f0: e8 3f 62 ff ff call 107534 <rtems_filesystem_dirname>
1112f5: 89 45 b4 mov %eax,-0x4c(%ebp)
if ( parentpathlen == 0 )
1112f8: 83 c4 10 add $0x10,%esp
1112fb: 85 c0 test %eax,%eax
1112fd: 8d 45 d0 lea -0x30(%ebp),%eax
111300: 75 15 jne 111317 <unlink+0x33>
rtems_filesystem_get_start_loc( path, &i, &parentloc );
111302: 51 push %ecx
111303: 50 push %eax
111304: 8d 45 e4 lea -0x1c(%ebp),%eax
111307: 50 push %eax
111308: ff 75 08 pushl 0x8(%ebp)
11130b: e8 a0 70 ff ff call 1083b0 <rtems_filesystem_get_start_loc>
111310: 31 db xor %ebx,%ebx
111312: 83 c4 10 add $0x10,%esp
111315: eb 20 jmp 111337 <unlink+0x53>
else {
result = rtems_filesystem_evaluate_path( path, parentpathlen,
111317: 83 ec 0c sub $0xc,%esp
11131a: 6a 00 push $0x0
11131c: 50 push %eax
11131d: 6a 02 push $0x2
11131f: ff 75 b4 pushl -0x4c(%ebp)
111322: ff 75 08 pushl 0x8(%ebp)
111325: e8 07 63 ff ff call 107631 <rtems_filesystem_evaluate_path>
RTEMS_LIBIO_PERMS_WRITE,
&parentloc,
false );
if ( result != 0 )
11132a: 83 c4 20 add $0x20,%esp
11132d: 85 c0 test %eax,%eax
11132f: 0f 85 69 01 00 00 jne 11149e <unlink+0x1ba> <== NEVER TAKEN
111335: b3 01 mov $0x1,%bl
/*
* Start from the parent to find the node that should be under it.
*/
loc = parentloc;
111337: 8d 7d bc lea -0x44(%ebp),%edi
11133a: 8d 75 d0 lea -0x30(%ebp),%esi
11133d: b9 05 00 00 00 mov $0x5,%ecx
111342: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
name = path + parentpathlen;
111344: 8b 75 08 mov 0x8(%ebp),%esi
111347: 03 75 b4 add -0x4c(%ebp),%esi
name += rtems_filesystem_prefix_separators( name, strlen( name ) );
11134a: 83 c9 ff or $0xffffffff,%ecx
11134d: 89 f7 mov %esi,%edi
11134f: 31 c0 xor %eax,%eax
111351: f2 ae repnz scas %es:(%edi),%al
111353: f7 d1 not %ecx
111355: 49 dec %ecx
111356: 52 push %edx
111357: 52 push %edx
111358: 51 push %ecx
111359: 56 push %esi
11135a: e8 99 61 ff ff call 1074f8 <rtems_filesystem_prefix_separators>
11135f: 01 c6 add %eax,%esi
result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
111361: 83 c9 ff or $0xffffffff,%ecx
111364: 89 f7 mov %esi,%edi
111366: 31 c0 xor %eax,%eax
111368: f2 ae repnz scas %es:(%edi),%al
11136a: f7 d1 not %ecx
11136c: 49 dec %ecx
11136d: c7 04 24 00 00 00 00 movl $0x0,(%esp)
111374: 8d 7d bc lea -0x44(%ebp),%edi
111377: 57 push %edi
111378: 6a 00 push $0x0
11137a: 51 push %ecx
11137b: 56 push %esi
11137c: e8 f6 61 ff ff call 107577 <rtems_filesystem_evaluate_relative_path>
0, &loc, false );
if ( result != 0 ) {
111381: 83 c4 20 add $0x20,%esp
111384: 85 c0 test %eax,%eax
111386: 74 2f je 1113b7 <unlink+0xd3>
if ( free_parentloc )
111388: 84 db test %bl,%bl
11138a: 0f 84 0e 01 00 00 je 11149e <unlink+0x1ba> <== NEVER TAKEN
rtems_filesystem_freenode( &parentloc );
111390: 8b 45 dc mov -0x24(%ebp),%eax
111393: 85 c0 test %eax,%eax
111395: 0f 84 03 01 00 00 je 11149e <unlink+0x1ba> <== NEVER TAKEN
11139b: 8b 40 1c mov 0x1c(%eax),%eax
11139e: 85 c0 test %eax,%eax
1113a0: 0f 84 f8 00 00 00 je 11149e <unlink+0x1ba> <== NEVER TAKEN
1113a6: 83 ec 0c sub $0xc,%esp
1113a9: 8d 55 d0 lea -0x30(%ebp),%edx
1113ac: 52 push %edx
1113ad: ff d0 call *%eax
1113af: 83 ce ff or $0xffffffff,%esi
1113b2: e9 e2 00 00 00 jmp 111499 <unlink+0x1b5>
return -1;
}
if ( !loc.ops->node_type_h ) {
1113b7: 8b 55 c8 mov -0x38(%ebp),%edx
1113ba: 8b 42 10 mov 0x10(%edx),%eax
1113bd: 85 c0 test %eax,%eax
1113bf: 75 05 jne 1113c6 <unlink+0xe2> <== ALWAYS TAKEN
rtems_filesystem_freenode( &loc );
1113c1: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED
1113c4: eb 5b jmp 111421 <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 ) {
1113c6: 83 ec 0c sub $0xc,%esp
1113c9: 57 push %edi
1113ca: ff d0 call *%eax
1113cc: 83 c4 10 add $0x10,%esp
1113cf: 48 dec %eax
1113d0: 8b 45 c8 mov -0x38(%ebp),%eax
1113d3: 75 42 jne 111417 <unlink+0x133>
rtems_filesystem_freenode( &loc );
1113d5: 85 c0 test %eax,%eax
1113d7: 74 10 je 1113e9 <unlink+0x105> <== NEVER TAKEN
1113d9: 8b 40 1c mov 0x1c(%eax),%eax
1113dc: 85 c0 test %eax,%eax
1113de: 74 09 je 1113e9 <unlink+0x105> <== NEVER TAKEN
1113e0: 83 ec 0c sub $0xc,%esp
1113e3: 57 push %edi
1113e4: ff d0 call *%eax
1113e6: 83 c4 10 add $0x10,%esp
if ( free_parentloc )
1113e9: 84 db test %bl,%bl
1113eb: 74 1a je 111407 <unlink+0x123> <== ALWAYS TAKEN
rtems_filesystem_freenode( &parentloc );
1113ed: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED
1113f0: 85 c0 test %eax,%eax <== NOT EXECUTED
1113f2: 74 13 je 111407 <unlink+0x123> <== NOT EXECUTED
1113f4: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED
1113f7: 85 c0 test %eax,%eax <== NOT EXECUTED
1113f9: 74 0c je 111407 <unlink+0x123> <== NOT EXECUTED
1113fb: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1113fe: 8d 55 d0 lea -0x30(%ebp),%edx <== NOT EXECUTED
111401: 52 push %edx <== NOT EXECUTED
111402: ff d0 call *%eax <== NOT EXECUTED
111404: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EISDIR );
111407: e8 b4 04 00 00 call 1118c0 <__errno>
11140c: c7 00 15 00 00 00 movl $0x15,(%eax)
111412: e9 87 00 00 00 jmp 11149e <unlink+0x1ba>
}
if ( !loc.ops->unlink_h ) {
111417: 8b 50 0c mov 0xc(%eax),%edx
11141a: 85 d2 test %edx,%edx
11141c: 75 3b jne 111459 <unlink+0x175> <== ALWAYS TAKEN
rtems_filesystem_freenode( &loc );
11141e: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED
111421: 85 c0 test %eax,%eax <== NOT EXECUTED
111423: 74 09 je 11142e <unlink+0x14a> <== NOT EXECUTED
111425: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
111428: 57 push %edi <== NOT EXECUTED
111429: ff d0 call *%eax <== NOT EXECUTED
11142b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
if ( free_parentloc )
11142e: 84 db test %bl,%bl <== NOT EXECUTED
111430: 74 1a je 11144c <unlink+0x168> <== NOT EXECUTED
rtems_filesystem_freenode( &parentloc );
111432: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED
111435: 85 c0 test %eax,%eax <== NOT EXECUTED
111437: 74 13 je 11144c <unlink+0x168> <== NOT EXECUTED
111439: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED
11143c: 85 c0 test %eax,%eax <== NOT EXECUTED
11143e: 74 0c je 11144c <unlink+0x168> <== NOT EXECUTED
111440: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
111443: 8d 55 d0 lea -0x30(%ebp),%edx <== NOT EXECUTED
111446: 52 push %edx <== NOT EXECUTED
111447: ff d0 call *%eax <== NOT EXECUTED
111449: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
11144c: e8 6f 04 00 00 call 1118c0 <__errno> <== NOT EXECUTED
111451: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
111457: eb 45 jmp 11149e <unlink+0x1ba> <== NOT EXECUTED
}
result = (*loc.ops->unlink_h)( &parentloc, &loc );
111459: 50 push %eax
11145a: 50 push %eax
11145b: 57 push %edi
11145c: 8d 45 d0 lea -0x30(%ebp),%eax
11145f: 50 push %eax
111460: ff d2 call *%edx
111462: 89 c6 mov %eax,%esi
rtems_filesystem_freenode( &loc );
111464: 8b 45 c8 mov -0x38(%ebp),%eax
111467: 83 c4 10 add $0x10,%esp
11146a: 85 c0 test %eax,%eax
11146c: 74 10 je 11147e <unlink+0x19a> <== NEVER TAKEN
11146e: 8b 40 1c mov 0x1c(%eax),%eax
111471: 85 c0 test %eax,%eax
111473: 74 09 je 11147e <unlink+0x19a> <== NEVER TAKEN
111475: 83 ec 0c sub $0xc,%esp
111478: 57 push %edi
111479: ff d0 call *%eax
11147b: 83 c4 10 add $0x10,%esp
if ( free_parentloc )
11147e: 84 db test %bl,%bl
111480: 74 1f je 1114a1 <unlink+0x1bd>
rtems_filesystem_freenode( &parentloc );
111482: 8b 45 dc mov -0x24(%ebp),%eax
111485: 85 c0 test %eax,%eax
111487: 74 18 je 1114a1 <unlink+0x1bd> <== NEVER TAKEN
111489: 8b 40 1c mov 0x1c(%eax),%eax
11148c: 85 c0 test %eax,%eax
11148e: 74 11 je 1114a1 <unlink+0x1bd> <== NEVER TAKEN
111490: 83 ec 0c sub $0xc,%esp
111493: 8d 55 d0 lea -0x30(%ebp),%edx
111496: 52 push %edx
111497: ff d0 call *%eax
111499: 83 c4 10 add $0x10,%esp
11149c: eb 03 jmp 1114a1 <unlink+0x1bd>
11149e: 83 ce ff or $0xffffffff,%esi
return result;
}
1114a1: 89 f0 mov %esi,%eax
1114a3: 8d 65 f4 lea -0xc(%ebp),%esp
1114a6: 5b pop %ebx
1114a7: 5e pop %esi
1114a8: 5f pop %edi
1114a9: c9 leave
1114aa: c3 ret
00129471 <unmount>:
*/
int unmount(
const char *path
)
{
129471: 55 push %ebp
129472: 89 e5 mov %esp,%ebp
129474: 57 push %edi
129475: 56 push %esi
129476: 53 push %ebx
129477: 83 ec 38 sub $0x38,%esp
12947a: 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 ) )
12947d: 31 c0 xor %eax,%eax
12947f: 83 c9 ff or $0xffffffff,%ecx
129482: 89 d7 mov %edx,%edi
129484: f2 ae repnz scas %es:(%edi),%al
129486: f7 d1 not %ecx
129488: 49 dec %ecx
129489: 6a 01 push $0x1
12948b: 8d 75 d4 lea -0x2c(%ebp),%esi
12948e: 56 push %esi
12948f: 6a 00 push $0x0
129491: 51 push %ecx
129492: 52 push %edx
129493: e8 99 39 fe ff call 10ce31 <rtems_filesystem_evaluate_path>
129498: 83 c4 20 add $0x20,%esp
12949b: 85 c0 test %eax,%eax
12949d: 0f 85 35 01 00 00 jne 1295d8 <unmount+0x167> <== NEVER TAKEN
return -1;
mt_entry = loc.mt_entry;
1294a3: 8b 5d e4 mov -0x1c(%ebp),%ebx
fs_mount_loc = &mt_entry->mt_point_node;
fs_root_loc = &mt_entry->mt_fs_root;
1294a6: 8b 43 1c mov 0x1c(%ebx),%eax
1294a9: 3b 45 d4 cmp -0x2c(%ebp),%eax
1294ac: 8b 45 e0 mov -0x20(%ebp),%eax
1294af: 74 24 je 1294d5 <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 );
1294b1: 85 c0 test %eax,%eax
1294b3: 74 10 je 1294c5 <unmount+0x54> <== NEVER TAKEN
1294b5: 8b 40 1c mov 0x1c(%eax),%eax
1294b8: 85 c0 test %eax,%eax
1294ba: 74 09 je 1294c5 <unmount+0x54> <== NEVER TAKEN
1294bc: 83 ec 0c sub $0xc,%esp
1294bf: 56 push %esi
1294c0: ff d0 call *%eax
1294c2: 83 c4 10 add $0x10,%esp
rtems_set_errno_and_return_minus_one( EACCES );
1294c5: e8 ce 38 01 00 call 13cd98 <__errno>
1294ca: c7 00 0d 00 00 00 movl $0xd,(%eax)
1294d0: e9 03 01 00 00 jmp 1295d8 <unmount+0x167>
/*
* Free the loc node and just use the nodes from the mt_entry .
*/
rtems_filesystem_freenode( &loc );
1294d5: 85 c0 test %eax,%eax
1294d7: 74 10 je 1294e9 <unmount+0x78> <== NEVER TAKEN
1294d9: 8b 40 1c mov 0x1c(%eax),%eax
1294dc: 85 c0 test %eax,%eax
1294de: 74 09 je 1294e9 <unmount+0x78> <== NEVER TAKEN
1294e0: 83 ec 0c sub $0xc,%esp
1294e3: 56 push %esi
1294e4: ff d0 call *%eax
1294e6: 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;
1294e9: 8b 43 14 mov 0x14(%ebx),%eax
1294ec: 83 78 28 00 cmpl $0x0,0x28(%eax)
1294f0: 74 09 je 1294fb <unmount+0x8a> <== NEVER TAKEN
fs_root_loc = &mt_entry->mt_fs_root;
1294f2: 8b 43 28 mov 0x28(%ebx),%eax
1294f5: 83 78 2c 00 cmpl $0x0,0x2c(%eax)
1294f9: 75 10 jne 12950b <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 );
1294fb: e8 98 38 01 00 call 13cd98 <__errno> <== NOT EXECUTED
129500: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
129506: e9 cd 00 00 00 jmp 1295d8 <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 )
12950b: a1 fc 21 16 00 mov 0x1621fc,%eax
129510: 39 58 14 cmp %ebx,0x14(%eax)
129513: 74 25 je 12953a <unmount+0xc9>
/*
* Verify there are no file systems below the path specified
*/
if ( rtems_filesystem_mount_iterate( is_fs_below_mount_point,
129515: 51 push %ecx
129516: 51 push %ecx
129517: ff 73 2c pushl 0x2c(%ebx)
12951a: 68 60 94 12 00 push $0x129460
12951f: e8 21 41 fe ff call 10d645 <rtems_filesystem_mount_iterate>
129524: 83 c4 10 add $0x10,%esp
129527: 84 c0 test %al,%al
129529: 75 0f jne 12953a <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 )
12952b: 83 ec 0c sub $0xc,%esp
12952e: 53 push %ebx
12952f: e8 fe 3b fe ff call 10d132 <rtems_libio_is_open_files_in_fs>
129534: 83 c4 10 add $0x10,%esp
129537: 48 dec %eax
129538: 75 10 jne 12954a <unmount+0xd9>
rtems_set_errno_and_return_minus_one( EBUSY );
12953a: e8 59 38 01 00 call 13cd98 <__errno>
12953f: c7 00 10 00 00 00 movl $0x10,(%eax)
129545: e9 8e 00 00 00 jmp 1295d8 <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 )
12954a: 83 ec 0c sub $0xc,%esp
12954d: 8b 43 14 mov 0x14(%ebx),%eax
129550: 53 push %ebx
129551: ff 50 28 call *0x28(%eax)
129554: 83 c4 10 add $0x10,%esp
129557: 85 c0 test %eax,%eax
129559: 75 7d jne 1295d8 <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){
12955b: 83 ec 0c sub $0xc,%esp
12955e: 8b 43 28 mov 0x28(%ebx),%eax
129561: 53 push %ebx
129562: ff 50 2c call *0x2c(%eax)
129565: 83 c4 10 add $0x10,%esp
129568: 85 c0 test %eax,%eax
12956a: 74 1b je 129587 <unmount+0x116> <== ALWAYS TAKEN
if (( fs_mount_loc->ops->mount_h )( mt_entry ) != 0 )
12956c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12956f: 8b 43 14 mov 0x14(%ebx),%eax <== NOT EXECUTED
129572: 53 push %ebx <== NOT EXECUTED
129573: ff 50 20 call *0x20(%eax) <== NOT EXECUTED
129576: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
129579: 85 c0 test %eax,%eax <== NOT EXECUTED
12957b: 74 5b je 1295d8 <unmount+0x167> <== NOT EXECUTED
rtems_fatal_error_occurred( 0 );
12957d: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
129580: 6a 00 push $0x0 <== NOT EXECUTED
129582: e8 1d 7d fe ff call 1112a4 <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 );
129587: 52 push %edx
129588: 6a 00 push $0x0
12958a: 6a 00 push $0x0
12958c: ff 35 5c 7a 16 00 pushl 0x167a5c
129592: e8 71 76 fe ff call 110c08 <rtems_semaphore_obtain>
*/
RTEMS_INLINE_ROUTINE void rtems_chain_extract(
rtems_chain_node *the_node
)
{
_Chain_Extract( the_node );
129597: 89 1c 24 mov %ebx,(%esp)
12959a: e8 a9 80 fe ff call 111648 <_Chain_Extract>
}
static inline void rtems_libio_unlock( void )
{
rtems_semaphore_release( rtems_libio_semaphore );
12959f: 58 pop %eax
1295a0: ff 35 5c 7a 16 00 pushl 0x167a5c
1295a6: e8 49 77 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 );
1295ab: 8b 43 14 mov 0x14(%ebx),%eax
1295ae: 83 c4 10 add $0x10,%esp
1295b1: 85 c0 test %eax,%eax
1295b3: 74 13 je 1295c8 <unmount+0x157> <== NEVER TAKEN
1295b5: 8b 40 1c mov 0x1c(%eax),%eax
1295b8: 85 c0 test %eax,%eax
1295ba: 74 0c je 1295c8 <unmount+0x157> <== NEVER TAKEN
1295bc: 83 ec 0c sub $0xc,%esp
1295bf: 8d 53 08 lea 0x8(%ebx),%edx
1295c2: 52 push %edx
1295c3: ff d0 call *%eax
1295c5: 83 c4 10 add $0x10,%esp
free( mt_entry );
1295c8: 83 ec 0c sub $0xc,%esp
1295cb: 53 push %ebx
1295cc: e8 cb 38 fe ff call 10ce9c <free>
1295d1: 31 c0 xor %eax,%eax
return 0;
1295d3: 83 c4 10 add $0x10,%esp
1295d6: eb 03 jmp 1295db <unmount+0x16a>
1295d8: 83 c8 ff or $0xffffffff,%eax
}
1295db: 8d 65 f4 lea -0xc(%ebp),%esp
1295de: 5b pop %ebx
1295df: 5e pop %esi
1295e0: 5f pop %edi
1295e1: c9 leave
1295e2: c3 ret
001295e4 <utime>:
int utime(
const char *path,
const struct utimbuf *times
)
{
1295e4: 55 push %ebp
1295e5: 89 e5 mov %esp,%ebp
1295e7: 57 push %edi
1295e8: 56 push %esi
1295e9: 53 push %ebx
1295ea: 83 ec 38 sub $0x38,%esp
1295ed: 8b 55 08 mov 0x8(%ebp),%edx
1295f0: 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 ) )
1295f3: 31 c0 xor %eax,%eax
1295f5: 83 c9 ff or $0xffffffff,%ecx
1295f8: 89 d7 mov %edx,%edi
1295fa: f2 ae repnz scas %es:(%edi),%al
1295fc: f7 d1 not %ecx
1295fe: 49 dec %ecx
1295ff: 6a 01 push $0x1
129601: 8d 75 d4 lea -0x2c(%ebp),%esi
129604: 56 push %esi
129605: 6a 00 push $0x0
129607: 51 push %ecx
129608: 52 push %edx
129609: e8 23 38 fe ff call 10ce31 <rtems_filesystem_evaluate_path>
12960e: 83 c4 20 add $0x20,%esp
129611: 83 cf ff or $0xffffffff,%edi
129614: 85 c0 test %eax,%eax
129616: 75 4f jne 129667 <utime+0x83>
return -1;
if ( !temp_loc.ops->utime_h ){
129618: 8b 55 e0 mov -0x20(%ebp),%edx
12961b: 8b 42 30 mov 0x30(%edx),%eax
12961e: 85 c0 test %eax,%eax
129620: 75 20 jne 129642 <utime+0x5e> <== ALWAYS TAKEN
rtems_filesystem_freenode( &temp_loc );
129622: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED
129625: 85 c0 test %eax,%eax <== NOT EXECUTED
129627: 74 09 je 129632 <utime+0x4e> <== NOT EXECUTED
129629: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12962c: 56 push %esi <== NOT EXECUTED
12962d: ff d0 call *%eax <== NOT EXECUTED
12962f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
129632: e8 61 37 01 00 call 13cd98 <__errno> <== NOT EXECUTED
129637: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
12963d: 83 cf ff or $0xffffffff,%edi <== NOT EXECUTED
129640: eb 25 jmp 129667 <utime+0x83> <== NOT EXECUTED
}
result = (*temp_loc.ops->utime_h)( &temp_loc, times->actime, times->modtime );
129642: 52 push %edx
129643: ff 73 04 pushl 0x4(%ebx)
129646: ff 33 pushl (%ebx)
129648: 56 push %esi
129649: ff d0 call *%eax
12964b: 89 c7 mov %eax,%edi
rtems_filesystem_freenode( &temp_loc );
12964d: 8b 45 e0 mov -0x20(%ebp),%eax
129650: 83 c4 10 add $0x10,%esp
129653: 85 c0 test %eax,%eax
129655: 74 10 je 129667 <utime+0x83> <== NEVER TAKEN
129657: 8b 40 1c mov 0x1c(%eax),%eax
12965a: 85 c0 test %eax,%eax
12965c: 74 09 je 129667 <utime+0x83> <== NEVER TAKEN
12965e: 83 ec 0c sub $0xc,%esp
129661: 56 push %esi
129662: ff d0 call *%eax
129664: 83 c4 10 add $0x10,%esp
return result;
}
129667: 89 f8 mov %edi,%eax
129669: 8d 65 f4 lea -0xc(%ebp),%esp
12966c: 5b pop %ebx
12966d: 5e pop %esi
12966e: 5f pop %edi
12966f: c9 leave
129670: 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 7c 17 12 00 call *0x12177c
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 25 f0 11 00 mov $0x11f025,%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 7c 17 12 00 call *0x12177c
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 7c 17 12 00 call *0x12177c
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 7c 17 12 00 call *0x12177c
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 7c 17 12 00 call *0x12177c
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 7c 17 12 00 call *0x12177c
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 7c 17 12 00 call *0x12177c
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 26 f0 11 00 movsbl 0x11f026(%edx),%edx
109f87: 52 push %edx
109f88: 89 45 b0 mov %eax,-0x50(%ebp)
109f8b: ff 15 7c 17 12 00 call *0x12177c
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
0011d298 <write>:
ssize_t write(
int fd,
const void *buffer,
size_t count
)
{
11d298: 55 push %ebp
11d299: 89 e5 mov %esp,%ebp
11d29b: 56 push %esi
11d29c: 53 push %ebx
11d29d: 8b 5d 08 mov 0x8(%ebp),%ebx
11d2a0: 8b 55 0c mov 0xc(%ebp),%edx
11d2a3: 8b 4d 10 mov 0x10(%ebp),%ecx
ssize_t rc;
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
11d2a6: 3b 1d 64 16 12 00 cmp 0x121664,%ebx
11d2ac: 73 30 jae 11d2de <write+0x46> <== NEVER TAKEN
iop = rtems_libio_iop( fd );
11d2ae: c1 e3 06 shl $0x6,%ebx
11d2b1: 03 1d 40 55 12 00 add 0x125540,%ebx
rtems_libio_check_is_open( iop );
11d2b7: 8b 73 14 mov 0x14(%ebx),%esi
11d2ba: f7 c6 00 01 00 00 test $0x100,%esi
11d2c0: 74 1c je 11d2de <write+0x46> <== NEVER TAKEN
rtems_libio_check_buffer( buffer );
11d2c2: 85 d2 test %edx,%edx
11d2c4: 75 0d jne 11d2d3 <write+0x3b> <== ALWAYS TAKEN
11d2c6: e8 f5 45 ff ff call 1118c0 <__errno> <== NOT EXECUTED
11d2cb: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
11d2d1: eb 2d jmp 11d300 <write+0x68> <== NOT EXECUTED
rtems_libio_check_count( count );
11d2d3: 31 c0 xor %eax,%eax
11d2d5: 85 c9 test %ecx,%ecx
11d2d7: 74 44 je 11d31d <write+0x85>
rtems_libio_check_permissions_with_error( iop, LIBIO_FLAGS_WRITE, EBADF );
11d2d9: 83 e6 04 and $0x4,%esi
11d2dc: 75 0d jne 11d2eb <write+0x53> <== ALWAYS TAKEN
11d2de: e8 dd 45 ff ff call 1118c0 <__errno> <== NOT EXECUTED
11d2e3: c7 00 09 00 00 00 movl $0x9,(%eax) <== NOT EXECUTED
11d2e9: eb 15 jmp 11d300 <write+0x68> <== NOT EXECUTED
/*
* Now process the write() request.
*/
if ( !iop->handlers->write_h )
11d2eb: 8b 43 3c mov 0x3c(%ebx),%eax
11d2ee: 8b 40 0c mov 0xc(%eax),%eax
11d2f1: 85 c0 test %eax,%eax
11d2f3: 75 10 jne 11d305 <write+0x6d> <== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( ENOTSUP );
11d2f5: e8 c6 45 ff ff call 1118c0 <__errno> <== NOT EXECUTED
11d2fa: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
11d300: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
11d303: eb 18 jmp 11d31d <write+0x85> <== NOT EXECUTED
rc = (*iop->handlers->write_h)( iop, buffer, count );
11d305: 56 push %esi
11d306: 51 push %ecx
11d307: 52 push %edx
11d308: 53 push %ebx
11d309: ff d0 call *%eax
if ( rc > 0 )
11d30b: 83 c4 10 add $0x10,%esp
11d30e: 85 c0 test %eax,%eax
11d310: 7e 0b jle 11d31d <write+0x85> <== NEVER TAKEN
iop->offset += rc;
11d312: 89 c1 mov %eax,%ecx
11d314: c1 f9 1f sar $0x1f,%ecx
11d317: 01 43 0c add %eax,0xc(%ebx)
11d31a: 11 4b 10 adc %ecx,0x10(%ebx)
return rc;
}
11d31d: 8d 65 f8 lea -0x8(%ebp),%esp
11d320: 5b pop %ebx
11d321: 5e pop %esi
11d322: c9 leave
11d323: 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 31 12 00 cmp 0x123144,%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 f0 77 12 00 add 0x1277f0,%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 1b 79 00 00 call 11257c <__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 ef 78 00 00 call 11257c <__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: 31 c0 xor %eax,%eax
10ac97: 31 d2 xor %edx,%edx
10ac99: b1 01 mov $0x1,%cl
* 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 be 78 00 00 call 11257c <__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